impaktapps-ui-builder 0.0.400 → 0.0.401

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.
@@ -5,10 +5,10 @@
5
5
  * Released under MIT license <https://lodash.com/license>
6
6
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7
7
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8
- */(function(r,s){(function(){var i,m="4.17.21",h=200,S="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",I="Invalid `variable` option passed into `_.template`",F="__lodash_hash_undefined__",Q=500,nt="__lodash_placeholder__",me=1,Gt=2,U=4,Ge=1,mt=2,ae=1,Oe=2,$t=4,ge=8,$e=16,he=32,Ke=64,we=128,rt=256,Lt=512,gt=30,ll="...",sl=800,ul=16,Fi=1,pl=2,cl=3,ht=1/0,it=9007199254740991,dl=17976931348623157e292,mn=0/0,Ne=4294967295,fl=Ne-1,ml=Ne>>>1,gl=[["ary",we],["bind",ae],["bindKey",Oe],["curry",ge],["curryRight",$e],["flip",Lt],["partial",he],["partialRight",Ke],["rearg",rt]],At="[object Arguments]",gn="[object Array]",hl="[object AsyncFunction]",Kt="[object Boolean]",Yt="[object Date]",yl="[object DOMException]",hn="[object Error]",yn="[object Function]",Ti="[object GeneratorFunction]",Re="[object Map]",qt="[object Number]",vl="[object Null]",Ye="[object Object]",Ei="[object Promise]",bl="[object Proxy]",Vt="[object RegExp]",De="[object Set]",Xt="[object String]",vn="[object Symbol]",xl="[object Undefined]",Jt="[object WeakMap]",_l="[object WeakSet]",Zt="[object ArrayBuffer]",Ft="[object DataView]",lr="[object Float32Array]",sr="[object Float64Array]",ur="[object Int8Array]",pr="[object Int16Array]",cr="[object Int32Array]",dr="[object Uint8Array]",fr="[object Uint8ClampedArray]",mr="[object Uint16Array]",gr="[object Uint32Array]",Sl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,Cl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bi=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Il=RegExp(Bi.source),Ll=RegExp(Ri.source),Al=/<%-([\s\S]+?)%>/g,Fl=/<%([\s\S]+?)%>/g,Di=/<%=([\s\S]+?)%>/g,Tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,El=/^\w*$/,Bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hr=/[\\^$.*+?()[\]{}|]/g,Rl=RegExp(hr.source),yr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Hl=/,? & /,Ml=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ol=/[()=,{}\[\]\/\s]/,Nl=/\\(\\)?/g,zl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pi=/\w*$/,Wl=/^[-+]0x[0-9a-f]+$/i,Ul=/^0b[01]+$/i,Gl=/^\[object .+?Constructor\]$/,$l=/^0o[0-7]+$/i,Kl=/^(?:0|[1-9]\d*)$/,Yl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bn=/($^)/,ql=/['\n\r\u2028\u2029\\]/g,xn="\\ud800-\\udfff",Vl="\\u0300-\\u036f",Xl="\\ufe20-\\ufe2f",Jl="\\u20d0-\\u20ff",ki=Vl+Xl+Jl,Hi="\\u2700-\\u27bf",Mi="a-z\\xdf-\\xf6\\xf8-\\xff",Zl="\\xac\\xb1\\xd7\\xf7",Ql="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jl="\\u2000-\\u206f",es=" \\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",Oi="A-Z\\xc0-\\xd6\\xd8-\\xde",Ni="\\ufe0e\\ufe0f",zi=Zl+Ql+jl+es,vr="['\u2019]",ts="["+xn+"]",Wi="["+zi+"]",_n="["+ki+"]",Ui="\\d+",ns="["+Hi+"]",Gi="["+Mi+"]",$i="[^"+xn+zi+Ui+Hi+Mi+Oi+"]",br="\\ud83c[\\udffb-\\udfff]",rs="(?:"+_n+"|"+br+")",Ki="[^"+xn+"]",xr="(?:\\ud83c[\\udde6-\\uddff]){2}",_r="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+Oi+"]",Yi="\\u200d",qi="(?:"+Gi+"|"+$i+")",is="(?:"+Tt+"|"+$i+")",Vi="(?:"+vr+"(?:d|ll|m|re|s|t|ve))?",Xi="(?:"+vr+"(?:D|LL|M|RE|S|T|VE))?",Ji=rs+"?",Zi="["+Ni+"]?",os="(?:"+Yi+"(?:"+[Ki,xr,_r].join("|")+")"+Zi+Ji+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qi=Zi+Ji+os,ss="(?:"+[ns,xr,_r].join("|")+")"+Qi,us="(?:"+[Ki+_n+"?",_n,xr,_r,ts].join("|")+")",ps=RegExp(vr,"g"),cs=RegExp(_n,"g"),Sr=RegExp(br+"(?="+br+")|"+us+Qi,"g"),ds=RegExp([Tt+"?"+Gi+"+"+Vi+"(?="+[Wi,Tt,"$"].join("|")+")",is+"+"+Xi+"(?="+[Wi,Tt+qi,"$"].join("|")+")",Tt+"?"+qi+"+"+Vi,Tt+"+"+Xi,ls,as,Ui,ss].join("|"),"g"),fs=RegExp("["+Yi+xn+ki+Ni+"]"),ms=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gs=["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"],hs=-1,Y={};Y[lr]=Y[sr]=Y[ur]=Y[pr]=Y[cr]=Y[dr]=Y[fr]=Y[mr]=Y[gr]=!0,Y[At]=Y[gn]=Y[Zt]=Y[Kt]=Y[Ft]=Y[Yt]=Y[hn]=Y[yn]=Y[Re]=Y[qt]=Y[Ye]=Y[Vt]=Y[De]=Y[Xt]=Y[Jt]=!1;var K={};K[At]=K[gn]=K[Zt]=K[Ft]=K[Kt]=K[Yt]=K[lr]=K[sr]=K[ur]=K[pr]=K[cr]=K[Re]=K[qt]=K[Ye]=K[Vt]=K[De]=K[Xt]=K[vn]=K[dr]=K[fr]=K[mr]=K[gr]=!0,K[hn]=K[yn]=K[Jt]=!1;var ys={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},vs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bs={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},xs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_s=parseFloat,Ss=parseInt,ji=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,ne=ji||ws||Function("return this")(),wr=s&&!s.nodeType&&s,yt=wr&&!0&&r&&!r.nodeType&&r,eo=yt&&yt.exports===wr,Cr=eo&&ji.process,Ce=function(){try{var d=yt&&yt.require&&yt.require("util").types;return d||Cr&&Cr.binding&&Cr.binding("util")}catch{}}(),to=Ce&&Ce.isArrayBuffer,no=Ce&&Ce.isDate,ro=Ce&&Ce.isMap,io=Ce&&Ce.isRegExp,oo=Ce&&Ce.isSet,ao=Ce&&Ce.isTypedArray;function ye(d,y,g){switch(g.length){case 0:return d.call(y);case 1:return d.call(y,g[0]);case 2:return d.call(y,g[0],g[1]);case 3:return d.call(y,g[0],g[1],g[2])}return d.apply(y,g)}function Cs(d,y,g,L){for(var R=-1,z=d==null?0:d.length;++R<z;){var j=d[R];y(L,j,g(j),d)}return L}function Ie(d,y){for(var g=-1,L=d==null?0:d.length;++g<L&&y(d[g],g,d)!==!1;);return d}function Is(d,y){for(var g=d==null?0:d.length;g--&&y(d[g],g,d)!==!1;);return d}function lo(d,y){for(var g=-1,L=d==null?0:d.length;++g<L;)if(!y(d[g],g,d))return!1;return!0}function ot(d,y){for(var g=-1,L=d==null?0:d.length,R=0,z=[];++g<L;){var j=d[g];y(j,g,d)&&(z[R++]=j)}return z}function Sn(d,y){var g=d==null?0:d.length;return!!g&&Et(d,y,0)>-1}function Ir(d,y,g){for(var L=-1,R=d==null?0:d.length;++L<R;)if(g(y,d[L]))return!0;return!1}function q(d,y){for(var g=-1,L=d==null?0:d.length,R=Array(L);++g<L;)R[g]=y(d[g],g,d);return R}function at(d,y){for(var g=-1,L=y.length,R=d.length;++g<L;)d[R+g]=y[g];return d}function Lr(d,y,g,L){var R=-1,z=d==null?0:d.length;for(L&&z&&(g=d[++R]);++R<z;)g=y(g,d[R],R,d);return g}function Ls(d,y,g,L){var R=d==null?0:d.length;for(L&&R&&(g=d[--R]);R--;)g=y(g,d[R],R,d);return g}function Ar(d,y){for(var g=-1,L=d==null?0:d.length;++g<L;)if(y(d[g],g,d))return!0;return!1}var As=Fr("length");function Fs(d){return d.split("")}function Ts(d){return d.match(Ml)||[]}function so(d,y,g){var L;return g(d,function(R,z,j){if(y(R,z,j))return L=z,!1}),L}function wn(d,y,g,L){for(var R=d.length,z=g+(L?1:-1);L?z--:++z<R;)if(y(d[z],z,d))return z;return-1}function Et(d,y,g){return y===y?Ws(d,y,g):wn(d,uo,g)}function Es(d,y,g,L){for(var R=g-1,z=d.length;++R<z;)if(L(d[R],y))return R;return-1}function uo(d){return d!==d}function po(d,y){var g=d==null?0:d.length;return g?Er(d,y)/g:mn}function Fr(d){return function(y){return y==null?i:y[d]}}function Tr(d){return function(y){return d==null?i:d[y]}}function co(d,y,g,L,R){return R(d,function(z,j,$){g=L?(L=!1,z):y(g,z,j,$)}),g}function Bs(d,y){var g=d.length;for(d.sort(y);g--;)d[g]=d[g].value;return d}function Er(d,y){for(var g,L=-1,R=d.length;++L<R;){var z=y(d[L]);z!==i&&(g=g===i?z:g+z)}return g}function Br(d,y){for(var g=-1,L=Array(d);++g<d;)L[g]=y(g);return L}function Rs(d,y){return q(y,function(g){return[g,d[g]]})}function fo(d){return d&&d.slice(0,yo(d)+1).replace(yr,"")}function ve(d){return function(y){return d(y)}}function Rr(d,y){return q(y,function(g){return d[g]})}function Qt(d,y){return d.has(y)}function mo(d,y){for(var g=-1,L=d.length;++g<L&&Et(y,d[g],0)>-1;);return g}function go(d,y){for(var g=d.length;g--&&Et(y,d[g],0)>-1;);return g}function Ds(d,y){for(var g=d.length,L=0;g--;)d[g]===y&&++L;return L}var Ps=Tr(ys),ks=Tr(vs);function Hs(d){return"\\"+xs[d]}function Ms(d,y){return d==null?i:d[y]}function Bt(d){return fs.test(d)}function Os(d){return ms.test(d)}function Ns(d){for(var y,g=[];!(y=d.next()).done;)g.push(y.value);return g}function Dr(d){var y=-1,g=Array(d.size);return d.forEach(function(L,R){g[++y]=[R,L]}),g}function ho(d,y){return function(g){return d(y(g))}}function lt(d,y){for(var g=-1,L=d.length,R=0,z=[];++g<L;){var j=d[g];(j===y||j===nt)&&(d[g]=nt,z[R++]=g)}return z}function Cn(d){var y=-1,g=Array(d.size);return d.forEach(function(L){g[++y]=L}),g}function zs(d){var y=-1,g=Array(d.size);return d.forEach(function(L){g[++y]=[L,L]}),g}function Ws(d,y,g){for(var L=g-1,R=d.length;++L<R;)if(d[L]===y)return L;return-1}function Us(d,y,g){for(var L=g+1;L--;)if(d[L]===y)return L;return L}function Rt(d){return Bt(d)?$s(d):As(d)}function Pe(d){return Bt(d)?Ks(d):Fs(d)}function yo(d){for(var y=d.length;y--&&Dl.test(d.charAt(y)););return y}var Gs=Tr(bs);function $s(d){for(var y=Sr.lastIndex=0;Sr.test(d);)++y;return y}function Ks(d){return d.match(Sr)||[]}function Ys(d){return d.match(ds)||[]}var qs=function d(y){y=y==null?ne:Dt.defaults(ne.Object(),y,Dt.pick(ne,gs));var g=y.Array,L=y.Date,R=y.Error,z=y.Function,j=y.Math,$=y.Object,Pr=y.RegExp,Vs=y.String,Le=y.TypeError,In=g.prototype,Xs=z.prototype,Pt=$.prototype,Ln=y["__core-js_shared__"],An=Xs.toString,G=Pt.hasOwnProperty,Js=0,vo=function(){var e=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fn=Pt.toString,Zs=An.call($),Qs=ne._,js=Pr("^"+An.call(G).replace(hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tn=eo?y.Buffer:i,st=y.Symbol,En=y.Uint8Array,bo=Tn?Tn.allocUnsafe:i,Bn=ho($.getPrototypeOf,$),xo=$.create,_o=Pt.propertyIsEnumerable,Rn=In.splice,So=st?st.isConcatSpreadable:i,jt=st?st.iterator:i,vt=st?st.toStringTag:i,Dn=function(){try{var e=wt($,"defineProperty");return e({},"",{}),e}catch{}}(),eu=y.clearTimeout!==ne.clearTimeout&&y.clearTimeout,tu=L&&L.now!==ne.Date.now&&L.now,nu=y.setTimeout!==ne.setTimeout&&y.setTimeout,Pn=j.ceil,kn=j.floor,kr=$.getOwnPropertySymbols,ru=Tn?Tn.isBuffer:i,wo=y.isFinite,iu=In.join,ou=ho($.keys,$),ee=j.max,ie=j.min,au=L.now,lu=y.parseInt,Co=j.random,su=In.reverse,Hr=wt(y,"DataView"),en=wt(y,"Map"),Mr=wt(y,"Promise"),kt=wt(y,"Set"),tn=wt(y,"WeakMap"),nn=wt($,"create"),Hn=tn&&new tn,Ht={},uu=Ct(Hr),pu=Ct(en),cu=Ct(Mr),du=Ct(kt),fu=Ct(tn),Mn=st?st.prototype:i,rn=Mn?Mn.valueOf:i,Io=Mn?Mn.toString:i;function l(e){if(X(e)&&!D(e)&&!(e instanceof O)){if(e instanceof Ae)return e;if(G.call(e,"__wrapped__"))return La(e)}return new Ae(e)}var Mt=function(){function e(){}return function(t){if(!V(t))return{};if(xo)return xo(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function On(){}function Ae(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}l.templateSettings={escape:Al,evaluate:Fl,interpolate:Di,variable:"",imports:{_:l}},l.prototype=On.prototype,l.prototype.constructor=l,Ae.prototype=Mt(On.prototype),Ae.prototype.constructor=Ae;function O(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ne,this.__views__=[]}function mu(){var e=new O(this.__wrapped__);return e.__actions__=pe(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=pe(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=pe(this.__views__),e}function gu(){if(this.__filtered__){var e=new O(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function hu(){var e=this.__wrapped__.value(),t=this.__dir__,n=D(e),o=t<0,a=n?e.length:0,u=Fp(0,a,this.__views__),p=u.start,c=u.end,f=c-p,b=o?c:p-1,x=this.__iteratees__,w=x.length,C=0,A=ie(f,this.__takeCount__);if(!n||!o&&a==f&&A==f)return Xo(e,this.__actions__);var E=[];e:for(;f--&&C<A;){b+=t;for(var k=-1,B=e[b];++k<w;){var M=x[k],N=M.iteratee,_e=M.type,ue=N(B);if(_e==pl)B=ue;else if(!ue){if(_e==Fi)continue e;break e}}E[C++]=B}return E}O.prototype=Mt(On.prototype),O.prototype.constructor=O;function bt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function yu(){this.__data__=nn?nn(null):{},this.size=0}function vu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bu(e){var t=this.__data__;if(nn){var n=t[e];return n===F?i:n}return G.call(t,e)?t[e]:i}function xu(e){var t=this.__data__;return nn?t[e]!==i:G.call(t,e)}function _u(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nn&&t===i?F:t,this}bt.prototype.clear=yu,bt.prototype.delete=vu,bt.prototype.get=bu,bt.prototype.has=xu,bt.prototype.set=_u;function qe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Su(){this.__data__=[],this.size=0}function wu(e){var t=this.__data__,n=Nn(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():Rn.call(t,n,1),--this.size,!0}function Cu(e){var t=this.__data__,n=Nn(t,e);return n<0?i:t[n][1]}function Iu(e){return Nn(this.__data__,e)>-1}function Lu(e,t){var n=this.__data__,o=Nn(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}qe.prototype.clear=Su,qe.prototype.delete=wu,qe.prototype.get=Cu,qe.prototype.has=Iu,qe.prototype.set=Lu;function Ve(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Au(){this.size=0,this.__data__={hash:new bt,map:new(en||qe),string:new bt}}function Fu(e){var t=Zn(this,e).delete(e);return this.size-=t?1:0,t}function Tu(e){return Zn(this,e).get(e)}function Eu(e){return Zn(this,e).has(e)}function Bu(e,t){var n=Zn(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}Ve.prototype.clear=Au,Ve.prototype.delete=Fu,Ve.prototype.get=Tu,Ve.prototype.has=Eu,Ve.prototype.set=Bu;function xt(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ve;++t<n;)this.add(e[t])}function Ru(e){return this.__data__.set(e,F),this}function Du(e){return this.__data__.has(e)}xt.prototype.add=xt.prototype.push=Ru,xt.prototype.has=Du;function ke(e){var t=this.__data__=new qe(e);this.size=t.size}function Pu(){this.__data__=new qe,this.size=0}function ku(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hu(e){return this.__data__.get(e)}function Mu(e){return this.__data__.has(e)}function Ou(e,t){var n=this.__data__;if(n instanceof qe){var o=n.__data__;if(!en||o.length<h-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ve(o)}return n.set(e,t),this.size=n.size,this}ke.prototype.clear=Pu,ke.prototype.delete=ku,ke.prototype.get=Hu,ke.prototype.has=Mu,ke.prototype.set=Ou;function Lo(e,t){var n=D(e),o=!n&&It(e),a=!n&&!o&&ft(e),u=!n&&!o&&!a&&Wt(e),p=n||o||a||u,c=p?Br(e.length,Vs):[],f=c.length;for(var b in e)(t||G.call(e,b))&&!(p&&(b=="length"||a&&(b=="offset"||b=="parent")||u&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||Qe(b,f)))&&c.push(b);return c}function Ao(e){var t=e.length;return t?e[Vr(0,t-1)]:i}function Nu(e,t){return Qn(pe(e),_t(t,0,e.length))}function zu(e){return Qn(pe(e))}function Or(e,t,n){(n!==i&&!He(e[t],n)||n===i&&!(t in e))&&Xe(e,t,n)}function on(e,t,n){var o=e[t];(!(G.call(e,t)&&He(o,n))||n===i&&!(t in e))&&Xe(e,t,n)}function Nn(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n;return-1}function Wu(e,t,n,o){return ut(e,function(a,u,p){t(o,a,n(a),p)}),o}function Fo(e,t){return e&&We(t,te(t),e)}function Uu(e,t){return e&&We(t,de(t),e)}function Xe(e,t,n){t=="__proto__"&&Dn?Dn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Nr(e,t){for(var n=-1,o=t.length,a=g(o),u=e==null;++n<o;)a[n]=u?i:bi(e,t[n]);return a}function _t(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function Fe(e,t,n,o,a,u){var p,c=t&me,f=t&Gt,b=t&U;if(n&&(p=a?n(e,o,a,u):n(e)),p!==i)return p;if(!V(e))return e;var x=D(e);if(x){if(p=Ep(e),!c)return pe(e,p)}else{var w=oe(e),C=w==yn||w==Ti;if(ft(e))return Qo(e,c);if(w==Ye||w==At||C&&!a){if(p=f||C?{}:ya(e),!c)return f?bp(e,Uu(p,e)):vp(e,Fo(p,e))}else{if(!K[w])return a?e:{};p=Bp(e,w,c)}}u||(u=new ke);var A=u.get(e);if(A)return A;u.set(e,p),Ya(e)?e.forEach(function(B){p.add(Fe(B,t,n,B,e,u))}):$a(e)&&e.forEach(function(B,M){p.set(M,Fe(B,t,n,M,e,u))});var E=b?f?oi:ii:f?de:te,k=x?i:E(e);return Ie(k||e,function(B,M){k&&(M=B,B=e[M]),on(p,M,Fe(B,t,n,M,e,u))}),p}function Gu(e){var t=te(e);return function(n){return To(n,e,t)}}function To(e,t,n){var o=n.length;if(e==null)return!o;for(e=$(e);o--;){var a=n[o],u=t[a],p=e[a];if(p===i&&!(a in e)||!u(p))return!1}return!0}function Eo(e,t,n){if(typeof e!="function")throw new Le(v);return dn(function(){e.apply(i,n)},t)}function an(e,t,n,o){var a=-1,u=Sn,p=!0,c=e.length,f=[],b=t.length;if(!c)return f;n&&(t=q(t,ve(n))),o?(u=Ir,p=!1):t.length>=h&&(u=Qt,p=!1,t=new xt(t));e:for(;++a<c;){var x=e[a],w=n==null?x:n(x);if(x=o||x!==0?x:0,p&&w===w){for(var C=b;C--;)if(t[C]===w)continue e;f.push(x)}else u(t,w,o)||f.push(x)}return f}var ut=ra(ze),Bo=ra(Wr,!0);function $u(e,t){var n=!0;return ut(e,function(o,a,u){return n=!!t(o,a,u),n}),n}function zn(e,t,n){for(var o=-1,a=e.length;++o<a;){var u=e[o],p=t(u);if(p!=null&&(c===i?p===p&&!xe(p):n(p,c)))var c=p,f=u}return f}function Ku(e,t,n,o){var a=e.length;for(n=P(n),n<0&&(n=-n>a?0:a+n),o=o===i||o>a?a:P(o),o<0&&(o+=a),o=n>o?0:Va(o);n<o;)e[n++]=t;return e}function Ro(e,t){var n=[];return ut(e,function(o,a,u){t(o,a,u)&&n.push(o)}),n}function re(e,t,n,o,a){var u=-1,p=e.length;for(n||(n=Dp),a||(a=[]);++u<p;){var c=e[u];t>0&&n(c)?t>1?re(c,t-1,n,o,a):at(a,c):o||(a[a.length]=c)}return a}var zr=ia(),Do=ia(!0);function ze(e,t){return e&&zr(e,t,te)}function Wr(e,t){return e&&Do(e,t,te)}function Wn(e,t){return ot(t,function(n){return je(e[n])})}function St(e,t){t=ct(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[Ue(t[n++])];return n&&n==o?e:i}function Po(e,t,n){var o=t(e);return D(e)?o:at(o,n(e))}function le(e){return e==null?e===i?xl:vl:vt&&vt in $(e)?Ap(e):zp(e)}function Ur(e,t){return e>t}function Yu(e,t){return e!=null&&G.call(e,t)}function qu(e,t){return e!=null&&t in $(e)}function Vu(e,t,n){return e>=ie(t,n)&&e<ee(t,n)}function Gr(e,t,n){for(var o=n?Ir:Sn,a=e[0].length,u=e.length,p=u,c=g(u),f=1/0,b=[];p--;){var x=e[p];p&&t&&(x=q(x,ve(t))),f=ie(x.length,f),c[p]=!n&&(t||a>=120&&x.length>=120)?new xt(p&&x):i}x=e[0];var w=-1,C=c[0];e:for(;++w<a&&b.length<f;){var A=x[w],E=t?t(A):A;if(A=n||A!==0?A:0,!(C?Qt(C,E):o(b,E,n))){for(p=u;--p;){var k=c[p];if(!(k?Qt(k,E):o(e[p],E,n)))continue e}C&&C.push(E),b.push(A)}}return b}function Xu(e,t,n,o){return ze(e,function(a,u,p){t(o,n(a),u,p)}),o}function ln(e,t,n){t=ct(t,e),e=_a(e,t);var o=e==null?e:e[Ue(Ee(t))];return o==null?i:ye(o,e,n)}function ko(e){return X(e)&&le(e)==At}function Ju(e){return X(e)&&le(e)==Zt}function Zu(e){return X(e)&&le(e)==Yt}function sn(e,t,n,o,a){return e===t?!0:e==null||t==null||!X(e)&&!X(t)?e!==e&&t!==t:Qu(e,t,n,o,sn,a)}function Qu(e,t,n,o,a,u){var p=D(e),c=D(t),f=p?gn:oe(e),b=c?gn:oe(t);f=f==At?Ye:f,b=b==At?Ye:b;var x=f==Ye,w=b==Ye,C=f==b;if(C&&ft(e)){if(!ft(t))return!1;p=!0,x=!1}if(C&&!x)return u||(u=new ke),p||Wt(e)?ma(e,t,n,o,a,u):Ip(e,t,f,n,o,a,u);if(!(n&Ge)){var A=x&&G.call(e,"__wrapped__"),E=w&&G.call(t,"__wrapped__");if(A||E){var k=A?e.value():e,B=E?t.value():t;return u||(u=new ke),a(k,B,n,o,u)}}return C?(u||(u=new ke),Lp(e,t,n,o,a,u)):!1}function ju(e){return X(e)&&oe(e)==Re}function $r(e,t,n,o){var a=n.length,u=a,p=!o;if(e==null)return!u;for(e=$(e);a--;){var c=n[a];if(p&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<u;){c=n[a];var f=c[0],b=e[f],x=c[1];if(p&&c[2]){if(b===i&&!(f in e))return!1}else{var w=new ke;if(o)var C=o(b,x,f,e,t,w);if(!(C===i?sn(x,b,Ge|mt,o,w):C))return!1}}return!0}function Ho(e){if(!V(e)||kp(e))return!1;var t=je(e)?js:Gl;return t.test(Ct(e))}function ep(e){return X(e)&&le(e)==Vt}function tp(e){return X(e)&&oe(e)==De}function np(e){return X(e)&&ir(e.length)&&!!Y[le(e)]}function Mo(e){return typeof e=="function"?e:e==null?fe:typeof e=="object"?D(e)?zo(e[0],e[1]):No(e):ol(e)}function Kr(e){if(!cn(e))return ou(e);var t=[];for(var n in $(e))G.call(e,n)&&n!="constructor"&&t.push(n);return t}function rp(e){if(!V(e))return Np(e);var t=cn(e),n=[];for(var o in e)o=="constructor"&&(t||!G.call(e,o))||n.push(o);return n}function Yr(e,t){return e<t}function Oo(e,t){var n=-1,o=ce(e)?g(e.length):[];return ut(e,function(a,u,p){o[++n]=t(a,u,p)}),o}function No(e){var t=li(e);return t.length==1&&t[0][2]?ba(t[0][0],t[0][1]):function(n){return n===e||$r(n,e,t)}}function zo(e,t){return ui(e)&&va(t)?ba(Ue(e),t):function(n){var o=bi(n,e);return o===i&&o===t?xi(n,e):sn(t,o,Ge|mt)}}function Un(e,t,n,o,a){e!==t&&zr(t,function(u,p){if(a||(a=new ke),V(u))ip(e,t,p,n,Un,o,a);else{var c=o?o(ci(e,p),u,p+"",e,t,a):i;c===i&&(c=u),Or(e,p,c)}},de)}function ip(e,t,n,o,a,u,p){var c=ci(e,n),f=ci(t,n),b=p.get(f);if(b){Or(e,n,b);return}var x=u?u(c,f,n+"",e,t,p):i,w=x===i;if(w){var C=D(f),A=!C&&ft(f),E=!C&&!A&&Wt(f);x=f,C||A||E?D(c)?x=c:J(c)?x=pe(c):A?(w=!1,x=Qo(f,!0)):E?(w=!1,x=jo(f,!0)):x=[]:fn(f)||It(f)?(x=c,It(c)?x=Xa(c):(!V(c)||je(c))&&(x=ya(f))):w=!1}w&&(p.set(f,x),a(x,f,o,u,p),p.delete(f)),Or(e,n,x)}function Wo(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,Qe(t,n)?e[t]:i}function Uo(e,t,n){t.length?t=q(t,function(u){return D(u)?function(p){return St(p,u.length===1?u[0]:u)}:u}):t=[fe];var o=-1;t=q(t,ve(T()));var a=Oo(e,function(u,p,c){var f=q(t,function(b){return b(u)});return{criteria:f,index:++o,value:u}});return Bs(a,function(u,p){return yp(u,p,n)})}function op(e,t){return Go(e,t,function(n,o){return xi(e,o)})}function Go(e,t,n){for(var o=-1,a=t.length,u={};++o<a;){var p=t[o],c=St(e,p);n(c,p)&&un(u,ct(p,e),c)}return u}function ap(e){return function(t){return St(t,e)}}function qr(e,t,n,o){var a=o?Es:Et,u=-1,p=t.length,c=e;for(e===t&&(t=pe(t)),n&&(c=q(e,ve(n)));++u<p;)for(var f=0,b=t[u],x=n?n(b):b;(f=a(c,x,f,o))>-1;)c!==e&&Rn.call(c,f,1),Rn.call(e,f,1);return e}function $o(e,t){for(var n=e?t.length:0,o=n-1;n--;){var a=t[n];if(n==o||a!==u){var u=a;Qe(a)?Rn.call(e,a,1):Zr(e,a)}}return e}function Vr(e,t){return e+kn(Co()*(t-e+1))}function lp(e,t,n,o){for(var a=-1,u=ee(Pn((t-e)/(n||1)),0),p=g(u);u--;)p[o?u:++a]=e,e+=n;return p}function Xr(e,t){var n="";if(!e||t<1||t>it)return n;do t%2&&(n+=e),t=kn(t/2),t&&(e+=e);while(t);return n}function H(e,t){return di(xa(e,t,fe),e+"")}function sp(e){return Ao(Ut(e))}function up(e,t){var n=Ut(e);return Qn(n,_t(t,0,n.length))}function un(e,t,n,o){if(!V(e))return e;t=ct(t,e);for(var a=-1,u=t.length,p=u-1,c=e;c!=null&&++a<u;){var f=Ue(t[a]),b=n;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(a!=p){var x=c[f];b=o?o(x,f,c):i,b===i&&(b=V(x)?x:Qe(t[a+1])?[]:{})}on(c,f,b),c=c[f]}return e}var Ko=Hn?function(e,t){return Hn.set(e,t),e}:fe,pp=Dn?function(e,t){return Dn(e,"toString",{configurable:!0,enumerable:!1,value:Si(t),writable:!0})}:fe;function cp(e){return Qn(Ut(e))}function Te(e,t,n){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var u=g(a);++o<a;)u[o]=e[o+t];return u}function dp(e,t){var n;return ut(e,function(o,a,u){return n=t(o,a,u),!n}),!!n}function Gn(e,t,n){var o=0,a=e==null?o:e.length;if(typeof t=="number"&&t===t&&a<=ml){for(;o<a;){var u=o+a>>>1,p=e[u];p!==null&&!xe(p)&&(n?p<=t:p<t)?o=u+1:a=u}return a}return Jr(e,t,fe,n)}function Jr(e,t,n,o){var a=0,u=e==null?0:e.length;if(u===0)return 0;t=n(t);for(var p=t!==t,c=t===null,f=xe(t),b=t===i;a<u;){var x=kn((a+u)/2),w=n(e[x]),C=w!==i,A=w===null,E=w===w,k=xe(w);if(p)var B=o||E;else b?B=E&&(o||C):c?B=E&&C&&(o||!A):f?B=E&&C&&!A&&(o||!k):A||k?B=!1:B=o?w<=t:w<t;B?a=x+1:u=x}return ie(u,fl)}function Yo(e,t){for(var n=-1,o=e.length,a=0,u=[];++n<o;){var p=e[n],c=t?t(p):p;if(!n||!He(c,f)){var f=c;u[a++]=p===0?0:p}}return u}function qo(e){return typeof e=="number"?e:xe(e)?mn:+e}function be(e){if(typeof e=="string")return e;if(D(e))return q(e,be)+"";if(xe(e))return Io?Io.call(e):"";var t=e+"";return t=="0"&&1/e==-ht?"-0":t}function pt(e,t,n){var o=-1,a=Sn,u=e.length,p=!0,c=[],f=c;if(n)p=!1,a=Ir;else if(u>=h){var b=t?null:wp(e);if(b)return Cn(b);p=!1,a=Qt,f=new xt}else f=t?[]:c;e:for(;++o<u;){var x=e[o],w=t?t(x):x;if(x=n||x!==0?x:0,p&&w===w){for(var C=f.length;C--;)if(f[C]===w)continue e;t&&f.push(w),c.push(x)}else a(f,w,n)||(f!==c&&f.push(w),c.push(x))}return c}function Zr(e,t){return t=ct(t,e),e=_a(e,t),e==null||delete e[Ue(Ee(t))]}function Vo(e,t,n,o){return un(e,t,n(St(e,t)),o)}function $n(e,t,n,o){for(var a=e.length,u=o?a:-1;(o?u--:++u<a)&&t(e[u],u,e););return n?Te(e,o?0:u,o?u+1:a):Te(e,o?u+1:0,o?a:u)}function Xo(e,t){var n=e;return n instanceof O&&(n=n.value()),Lr(t,function(o,a){return a.func.apply(a.thisArg,at([o],a.args))},n)}function Qr(e,t,n){var o=e.length;if(o<2)return o?pt(e[0]):[];for(var a=-1,u=g(o);++a<o;)for(var p=e[a],c=-1;++c<o;)c!=a&&(u[a]=an(u[a]||p,e[c],t,n));return pt(re(u,1),t,n)}function Jo(e,t,n){for(var o=-1,a=e.length,u=t.length,p={};++o<a;){var c=o<u?t[o]:i;n(p,e[o],c)}return p}function jr(e){return J(e)?e:[]}function ei(e){return typeof e=="function"?e:fe}function ct(e,t){return D(e)?e:ui(e,t)?[e]:Ia(W(e))}var fp=H;function dt(e,t,n){var o=e.length;return n=n===i?o:n,!t&&n>=o?e:Te(e,t,n)}var Zo=eu||function(e){return ne.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var n=e.length,o=bo?bo(n):new e.constructor(n);return e.copy(o),o}function ti(e){var t=new e.constructor(e.byteLength);return new En(t).set(new En(e)),t}function mp(e,t){var n=t?ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function gp(e){var t=new e.constructor(e.source,Pi.exec(e));return t.lastIndex=e.lastIndex,t}function hp(e){return rn?$(rn.call(e)):{}}function jo(e,t){var n=t?ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==i,o=e===null,a=e===e,u=xe(e),p=t!==i,c=t===null,f=t===t,b=xe(t);if(!c&&!b&&!u&&e>t||u&&p&&f&&!c&&!b||o&&p&&f||!n&&f||!a)return 1;if(!o&&!u&&!b&&e<t||b&&n&&a&&!o&&!u||c&&n&&a||!p&&a||!f)return-1}return 0}function yp(e,t,n){for(var o=-1,a=e.criteria,u=t.criteria,p=a.length,c=n.length;++o<p;){var f=ea(a[o],u[o]);if(f){if(o>=c)return f;var b=n[o];return f*(b=="desc"?-1:1)}}return e.index-t.index}function ta(e,t,n,o){for(var a=-1,u=e.length,p=n.length,c=-1,f=t.length,b=ee(u-p,0),x=g(f+b),w=!o;++c<f;)x[c]=t[c];for(;++a<p;)(w||a<u)&&(x[n[a]]=e[a]);for(;b--;)x[c++]=e[a++];return x}function na(e,t,n,o){for(var a=-1,u=e.length,p=-1,c=n.length,f=-1,b=t.length,x=ee(u-c,0),w=g(x+b),C=!o;++a<x;)w[a]=e[a];for(var A=a;++f<b;)w[A+f]=t[f];for(;++p<c;)(C||a<u)&&(w[A+n[p]]=e[a++]);return w}function pe(e,t){var n=-1,o=e.length;for(t||(t=g(o));++n<o;)t[n]=e[n];return t}function We(e,t,n,o){var a=!n;n||(n={});for(var u=-1,p=t.length;++u<p;){var c=t[u],f=o?o(n[c],e[c],c,n,e):i;f===i&&(f=e[c]),a?Xe(n,c,f):on(n,c,f)}return n}function vp(e,t){return We(e,si(e),t)}function bp(e,t){return We(e,ga(e),t)}function Kn(e,t){return function(n,o){var a=D(n)?Cs:Wu,u=t?t():{};return a(n,e,T(o,2),u)}}function Ot(e){return H(function(t,n){var o=-1,a=n.length,u=a>1?n[a-1]:i,p=a>2?n[2]:i;for(u=e.length>3&&typeof u=="function"?(a--,u):i,p&&se(n[0],n[1],p)&&(u=a<3?i:u,a=1),t=$(t);++o<a;){var c=n[o];c&&e(t,c,o,u)}return t})}function ra(e,t){return function(n,o){if(n==null)return n;if(!ce(n))return e(n,o);for(var a=n.length,u=t?a:-1,p=$(n);(t?u--:++u<a)&&o(p[u],u,p)!==!1;);return n}}function ia(e){return function(t,n,o){for(var a=-1,u=$(t),p=o(t),c=p.length;c--;){var f=p[e?c:++a];if(n(u[f],f,u)===!1)break}return t}}function xp(e,t,n){var o=t&ae,a=pn(e);function u(){var p=this&&this!==ne&&this instanceof u?a:e;return p.apply(o?n:this,arguments)}return u}function oa(e){return function(t){t=W(t);var n=Bt(t)?Pe(t):i,o=n?n[0]:t.charAt(0),a=n?dt(n,1).join(""):t.slice(1);return o[e]()+a}}function Nt(e){return function(t){return Lr(rl(nl(t).replace(ps,"")),e,"")}}function pn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Mt(e.prototype),o=e.apply(n,t);return V(o)?o:n}}function _p(e,t,n){var o=pn(e);function a(){for(var u=arguments.length,p=g(u),c=u,f=zt(a);c--;)p[c]=arguments[c];var b=u<3&&p[0]!==f&&p[u-1]!==f?[]:lt(p,f);if(u-=b.length,u<n)return pa(e,t,Yn,a.placeholder,i,p,b,i,i,n-u);var x=this&&this!==ne&&this instanceof a?o:e;return ye(x,this,p)}return a}function aa(e){return function(t,n,o){var a=$(t);if(!ce(t)){var u=T(n,3);t=te(t),n=function(c){return u(a[c],c,a)}}var p=e(t,n,o);return p>-1?a[u?t[p]:p]:i}}function la(e){return Ze(function(t){var n=t.length,o=n,a=Ae.prototype.thru;for(e&&t.reverse();o--;){var u=t[o];if(typeof u!="function")throw new Le(v);if(a&&!p&&Jn(u)=="wrapper")var p=new Ae([],!0)}for(o=p?o:n;++o<n;){u=t[o];var c=Jn(u),f=c=="wrapper"?ai(u):i;f&&pi(f[0])&&f[1]==(we|ge|he|rt)&&!f[4].length&&f[9]==1?p=p[Jn(f[0])].apply(p,f[3]):p=u.length==1&&pi(u)?p[c]():p.thru(u)}return function(){var b=arguments,x=b[0];if(p&&b.length==1&&D(x))return p.plant(x).value();for(var w=0,C=n?t[w].apply(this,b):x;++w<n;)C=t[w].call(this,C);return C}})}function Yn(e,t,n,o,a,u,p,c,f,b){var x=t&we,w=t&ae,C=t&Oe,A=t&(ge|$e),E=t&Lt,k=C?i:pn(e);function B(){for(var M=arguments.length,N=g(M),_e=M;_e--;)N[_e]=arguments[_e];if(A)var ue=zt(B),Se=Ds(N,ue);if(o&&(N=ta(N,o,a,A)),u&&(N=na(N,u,p,A)),M-=Se,A&&M<b){var Z=lt(N,ue);return pa(e,t,Yn,B.placeholder,n,N,Z,c,f,b-M)}var Me=w?n:this,tt=C?Me[e]:e;return M=N.length,c?N=Wp(N,c):E&&M>1&&N.reverse(),x&&f<M&&(N.length=f),this&&this!==ne&&this instanceof B&&(tt=k||pn(tt)),tt.apply(Me,N)}return B}function sa(e,t){return function(n,o){return Xu(n,e,t(o),{})}}function qn(e,t){return function(n,o){var a;if(n===i&&o===i)return t;if(n!==i&&(a=n),o!==i){if(a===i)return o;typeof n=="string"||typeof o=="string"?(n=be(n),o=be(o)):(n=qo(n),o=qo(o)),a=e(n,o)}return a}}function ni(e){return Ze(function(t){return t=q(t,ve(T())),H(function(n){var o=this;return e(t,function(a){return ye(a,o,n)})})})}function Vn(e,t){t=t===i?" ":be(t);var n=t.length;if(n<2)return n?Xr(t,e):t;var o=Xr(t,Pn(e/Rt(t)));return Bt(t)?dt(Pe(o),0,e).join(""):o.slice(0,e)}function Sp(e,t,n,o){var a=t&ae,u=pn(e);function p(){for(var c=-1,f=arguments.length,b=-1,x=o.length,w=g(x+f),C=this&&this!==ne&&this instanceof p?u:e;++b<x;)w[b]=o[b];for(;f--;)w[b++]=arguments[++c];return ye(C,a?n:this,w)}return p}function ua(e){return function(t,n,o){return o&&typeof o!="number"&&se(t,n,o)&&(n=o=i),t=et(t),n===i?(n=t,t=0):n=et(n),o=o===i?t<n?1:-1:et(o),lp(t,n,o,e)}}function Xn(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Be(t),n=Be(n)),e(t,n)}}function pa(e,t,n,o,a,u,p,c,f,b){var x=t&ge,w=x?p:i,C=x?i:p,A=x?u:i,E=x?i:u;t|=x?he:Ke,t&=~(x?Ke:he),t&$t||(t&=~(ae|Oe));var k=[e,t,a,A,w,E,C,c,f,b],B=n.apply(i,k);return pi(e)&&Sa(B,k),B.placeholder=o,wa(B,e,t)}function ri(e){var t=j[e];return function(n,o){if(n=Be(n),o=o==null?0:ie(P(o),292),o&&wo(n)){var a=(W(n)+"e").split("e"),u=t(a[0]+"e"+(+a[1]+o));return a=(W(u)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(n)}}var wp=kt&&1/Cn(new kt([,-0]))[1]==ht?function(e){return new kt(e)}:Ii;function ca(e){return function(t){var n=oe(t);return n==Re?Dr(t):n==De?zs(t):Rs(t,e(t))}}function Je(e,t,n,o,a,u,p,c){var f=t&Oe;if(!f&&typeof e!="function")throw new Le(v);var b=o?o.length:0;if(b||(t&=~(he|Ke),o=a=i),p=p===i?p:ee(P(p),0),c=c===i?c:P(c),b-=a?a.length:0,t&Ke){var x=o,w=a;o=a=i}var C=f?i:ai(e),A=[e,t,n,o,a,x,w,u,p,c];if(C&&Op(A,C),e=A[0],t=A[1],n=A[2],o=A[3],a=A[4],c=A[9]=A[9]===i?f?0:e.length:ee(A[9]-b,0),!c&&t&(ge|$e)&&(t&=~(ge|$e)),!t||t==ae)var E=xp(e,t,n);else t==ge||t==$e?E=_p(e,t,c):(t==he||t==(ae|he))&&!a.length?E=Sp(e,t,n,o):E=Yn.apply(i,A);var k=C?Ko:Sa;return wa(k(E,A),e,t)}function da(e,t,n,o){return e===i||He(e,Pt[n])&&!G.call(o,n)?t:e}function fa(e,t,n,o,a,u){return V(e)&&V(t)&&(u.set(t,e),Un(e,t,i,fa,u),u.delete(t)),e}function Cp(e){return fn(e)?i:e}function ma(e,t,n,o,a,u){var p=n&Ge,c=e.length,f=t.length;if(c!=f&&!(p&&f>c))return!1;var b=u.get(e),x=u.get(t);if(b&&x)return b==t&&x==e;var w=-1,C=!0,A=n&mt?new xt:i;for(u.set(e,t),u.set(t,e);++w<c;){var E=e[w],k=t[w];if(o)var B=p?o(k,E,w,t,e,u):o(E,k,w,e,t,u);if(B!==i){if(B)continue;C=!1;break}if(A){if(!Ar(t,function(M,N){if(!Qt(A,N)&&(E===M||a(E,M,n,o,u)))return A.push(N)})){C=!1;break}}else if(!(E===k||a(E,k,n,o,u))){C=!1;break}}return u.delete(e),u.delete(t),C}function Ip(e,t,n,o,a,u,p){switch(n){case Ft:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zt:return!(e.byteLength!=t.byteLength||!u(new En(e),new En(t)));case Kt:case Yt:case qt:return He(+e,+t);case hn:return e.name==t.name&&e.message==t.message;case Vt:case Xt:return e==t+"";case Re:var c=Dr;case De:var f=o&Ge;if(c||(c=Cn),e.size!=t.size&&!f)return!1;var b=p.get(e);if(b)return b==t;o|=mt,p.set(e,t);var x=ma(c(e),c(t),o,a,u,p);return p.delete(e),x;case vn:if(rn)return rn.call(e)==rn.call(t)}return!1}function Lp(e,t,n,o,a,u){var p=n&Ge,c=ii(e),f=c.length,b=ii(t),x=b.length;if(f!=x&&!p)return!1;for(var w=f;w--;){var C=c[w];if(!(p?C in t:G.call(t,C)))return!1}var A=u.get(e),E=u.get(t);if(A&&E)return A==t&&E==e;var k=!0;u.set(e,t),u.set(t,e);for(var B=p;++w<f;){C=c[w];var M=e[C],N=t[C];if(o)var _e=p?o(N,M,C,t,e,u):o(M,N,C,e,t,u);if(!(_e===i?M===N||a(M,N,n,o,u):_e)){k=!1;break}B||(B=C=="constructor")}if(k&&!B){var ue=e.constructor,Se=t.constructor;ue!=Se&&"constructor"in e&&"constructor"in t&&!(typeof ue=="function"&&ue instanceof ue&&typeof Se=="function"&&Se instanceof Se)&&(k=!1)}return u.delete(e),u.delete(t),k}function Ze(e){return di(xa(e,i,Ta),e+"")}function ii(e){return Po(e,te,si)}function oi(e){return Po(e,de,ga)}var ai=Hn?function(e){return Hn.get(e)}:Ii;function Jn(e){for(var t=e.name+"",n=Ht[t],o=G.call(Ht,t)?n.length:0;o--;){var a=n[o],u=a.func;if(u==null||u==e)return a.name}return t}function zt(e){var t=G.call(l,"placeholder")?l:e;return t.placeholder}function T(){var e=l.iteratee||wi;return e=e===wi?Mo:e,arguments.length?e(arguments[0],arguments[1]):e}function Zn(e,t){var n=e.__data__;return Pp(t)?n[typeof t=="string"?"string":"hash"]:n.map}function li(e){for(var t=te(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,va(a)]}return t}function wt(e,t){var n=Ms(e,t);return Ho(n)?n:i}function Ap(e){var t=G.call(e,vt),n=e[vt];try{e[vt]=i;var o=!0}catch{}var a=Fn.call(e);return o&&(t?e[vt]=n:delete e[vt]),a}var si=kr?function(e){return e==null?[]:(e=$(e),ot(kr(e),function(t){return _o.call(e,t)}))}:Li,ga=kr?function(e){for(var t=[];e;)at(t,si(e)),e=Bn(e);return t}:Li,oe=le;(Hr&&oe(new Hr(new ArrayBuffer(1)))!=Ft||en&&oe(new en)!=Re||Mr&&oe(Mr.resolve())!=Ei||kt&&oe(new kt)!=De||tn&&oe(new tn)!=Jt)&&(oe=function(e){var t=le(e),n=t==Ye?e.constructor:i,o=n?Ct(n):"";if(o)switch(o){case uu:return Ft;case pu:return Re;case cu:return Ei;case du:return De;case fu:return Jt}return t});function Fp(e,t,n){for(var o=-1,a=n.length;++o<a;){var u=n[o],p=u.size;switch(u.type){case"drop":e+=p;break;case"dropRight":t-=p;break;case"take":t=ie(t,e+p);break;case"takeRight":e=ee(e,t-p);break}}return{start:e,end:t}}function Tp(e){var t=e.match(kl);return t?t[1].split(Hl):[]}function ha(e,t,n){t=ct(t,e);for(var o=-1,a=t.length,u=!1;++o<a;){var p=Ue(t[o]);if(!(u=e!=null&&n(e,p)))break;e=e[p]}return u||++o!=a?u:(a=e==null?0:e.length,!!a&&ir(a)&&Qe(p,a)&&(D(e)||It(e)))}function Ep(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&G.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ya(e){return typeof e.constructor=="function"&&!cn(e)?Mt(Bn(e)):{}}function Bp(e,t,n){var o=e.constructor;switch(t){case Zt:return ti(e);case Kt:case Yt:return new o(+e);case Ft:return mp(e,n);case lr:case sr:case ur:case pr:case cr:case dr:case fr:case mr:case gr:return jo(e,n);case Re:return new o;case qt:case Xt:return new o(e);case Vt:return gp(e);case De:return new o;case vn:return hp(e)}}function Rp(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(Pl,`{
8
+ */(function(r,s){(function(){var i,g="4.17.21",m=200,S="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",I="Invalid `variable` option passed into `_.template`",F="__lodash_hash_undefined__",Q=500,nt="__lodash_placeholder__",ge=1,Gt=2,U=4,Ge=1,gt=2,ae=1,Oe=2,$t=4,me=8,$e=16,he=32,Ke=64,we=128,rt=256,Lt=512,mt=30,ll="...",sl=800,ul=16,Fi=1,pl=2,cl=3,ht=1/0,it=9007199254740991,dl=17976931348623157e292,gn=0/0,Ne=4294967295,fl=Ne-1,gl=Ne>>>1,ml=[["ary",we],["bind",ae],["bindKey",Oe],["curry",me],["curryRight",$e],["flip",Lt],["partial",he],["partialRight",Ke],["rearg",rt]],At="[object Arguments]",mn="[object Array]",hl="[object AsyncFunction]",Kt="[object Boolean]",Yt="[object Date]",yl="[object DOMException]",hn="[object Error]",yn="[object Function]",Ti="[object GeneratorFunction]",Re="[object Map]",Vt="[object Number]",vl="[object Null]",Ye="[object Object]",Ei="[object Promise]",bl="[object Proxy]",qt="[object RegExp]",De="[object Set]",Xt="[object String]",vn="[object Symbol]",xl="[object Undefined]",Jt="[object WeakMap]",_l="[object WeakSet]",Zt="[object ArrayBuffer]",Ft="[object DataView]",lr="[object Float32Array]",sr="[object Float64Array]",ur="[object Int8Array]",pr="[object Int16Array]",cr="[object Int32Array]",dr="[object Uint8Array]",fr="[object Uint8ClampedArray]",gr="[object Uint16Array]",mr="[object Uint32Array]",Sl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,Cl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bi=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Il=RegExp(Bi.source),Ll=RegExp(Ri.source),Al=/<%-([\s\S]+?)%>/g,Fl=/<%([\s\S]+?)%>/g,Di=/<%=([\s\S]+?)%>/g,Tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,El=/^\w*$/,Bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hr=/[\\^$.*+?()[\]{}|]/g,Rl=RegExp(hr.source),yr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Hl=/,? & /,Ml=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ol=/[()=,{}\[\]\/\s]/,Nl=/\\(\\)?/g,zl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pi=/\w*$/,Wl=/^[-+]0x[0-9a-f]+$/i,Ul=/^0b[01]+$/i,Gl=/^\[object .+?Constructor\]$/,$l=/^0o[0-7]+$/i,Kl=/^(?:0|[1-9]\d*)$/,Yl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bn=/($^)/,Vl=/['\n\r\u2028\u2029\\]/g,xn="\\ud800-\\udfff",ql="\\u0300-\\u036f",Xl="\\ufe20-\\ufe2f",Jl="\\u20d0-\\u20ff",ki=ql+Xl+Jl,Hi="\\u2700-\\u27bf",Mi="a-z\\xdf-\\xf6\\xf8-\\xff",Zl="\\xac\\xb1\\xd7\\xf7",Ql="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jl="\\u2000-\\u206f",es=" \\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",Oi="A-Z\\xc0-\\xd6\\xd8-\\xde",Ni="\\ufe0e\\ufe0f",zi=Zl+Ql+jl+es,vr="['\u2019]",ts="["+xn+"]",Wi="["+zi+"]",_n="["+ki+"]",Ui="\\d+",ns="["+Hi+"]",Gi="["+Mi+"]",$i="[^"+xn+zi+Ui+Hi+Mi+Oi+"]",br="\\ud83c[\\udffb-\\udfff]",rs="(?:"+_n+"|"+br+")",Ki="[^"+xn+"]",xr="(?:\\ud83c[\\udde6-\\uddff]){2}",_r="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+Oi+"]",Yi="\\u200d",Vi="(?:"+Gi+"|"+$i+")",is="(?:"+Tt+"|"+$i+")",qi="(?:"+vr+"(?:d|ll|m|re|s|t|ve))?",Xi="(?:"+vr+"(?:D|LL|M|RE|S|T|VE))?",Ji=rs+"?",Zi="["+Ni+"]?",os="(?:"+Yi+"(?:"+[Ki,xr,_r].join("|")+")"+Zi+Ji+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qi=Zi+Ji+os,ss="(?:"+[ns,xr,_r].join("|")+")"+Qi,us="(?:"+[Ki+_n+"?",_n,xr,_r,ts].join("|")+")",ps=RegExp(vr,"g"),cs=RegExp(_n,"g"),Sr=RegExp(br+"(?="+br+")|"+us+Qi,"g"),ds=RegExp([Tt+"?"+Gi+"+"+qi+"(?="+[Wi,Tt,"$"].join("|")+")",is+"+"+Xi+"(?="+[Wi,Tt+Vi,"$"].join("|")+")",Tt+"?"+Vi+"+"+qi,Tt+"+"+Xi,ls,as,Ui,ss].join("|"),"g"),fs=RegExp("["+Yi+xn+ki+Ni+"]"),gs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ms=["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"],hs=-1,Y={};Y[lr]=Y[sr]=Y[ur]=Y[pr]=Y[cr]=Y[dr]=Y[fr]=Y[gr]=Y[mr]=!0,Y[At]=Y[mn]=Y[Zt]=Y[Kt]=Y[Ft]=Y[Yt]=Y[hn]=Y[yn]=Y[Re]=Y[Vt]=Y[Ye]=Y[qt]=Y[De]=Y[Xt]=Y[Jt]=!1;var K={};K[At]=K[mn]=K[Zt]=K[Ft]=K[Kt]=K[Yt]=K[lr]=K[sr]=K[ur]=K[pr]=K[cr]=K[Re]=K[Vt]=K[Ye]=K[qt]=K[De]=K[Xt]=K[vn]=K[dr]=K[fr]=K[gr]=K[mr]=!0,K[hn]=K[yn]=K[Jt]=!1;var ys={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},vs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bs={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},xs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_s=parseFloat,Ss=parseInt,ji=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,ne=ji||ws||Function("return this")(),wr=s&&!s.nodeType&&s,yt=wr&&!0&&r&&!r.nodeType&&r,eo=yt&&yt.exports===wr,Cr=eo&&ji.process,Ce=function(){try{var d=yt&&yt.require&&yt.require("util").types;return d||Cr&&Cr.binding&&Cr.binding("util")}catch{}}(),to=Ce&&Ce.isArrayBuffer,no=Ce&&Ce.isDate,ro=Ce&&Ce.isMap,io=Ce&&Ce.isRegExp,oo=Ce&&Ce.isSet,ao=Ce&&Ce.isTypedArray;function ye(d,y,h){switch(h.length){case 0:return d.call(y);case 1:return d.call(y,h[0]);case 2:return d.call(y,h[0],h[1]);case 3:return d.call(y,h[0],h[1],h[2])}return d.apply(y,h)}function Cs(d,y,h,L){for(var R=-1,z=d==null?0:d.length;++R<z;){var j=d[R];y(L,j,h(j),d)}return L}function Ie(d,y){for(var h=-1,L=d==null?0:d.length;++h<L&&y(d[h],h,d)!==!1;);return d}function Is(d,y){for(var h=d==null?0:d.length;h--&&y(d[h],h,d)!==!1;);return d}function lo(d,y){for(var h=-1,L=d==null?0:d.length;++h<L;)if(!y(d[h],h,d))return!1;return!0}function ot(d,y){for(var h=-1,L=d==null?0:d.length,R=0,z=[];++h<L;){var j=d[h];y(j,h,d)&&(z[R++]=j)}return z}function Sn(d,y){var h=d==null?0:d.length;return!!h&&Et(d,y,0)>-1}function Ir(d,y,h){for(var L=-1,R=d==null?0:d.length;++L<R;)if(h(y,d[L]))return!0;return!1}function V(d,y){for(var h=-1,L=d==null?0:d.length,R=Array(L);++h<L;)R[h]=y(d[h],h,d);return R}function at(d,y){for(var h=-1,L=y.length,R=d.length;++h<L;)d[R+h]=y[h];return d}function Lr(d,y,h,L){var R=-1,z=d==null?0:d.length;for(L&&z&&(h=d[++R]);++R<z;)h=y(h,d[R],R,d);return h}function Ls(d,y,h,L){var R=d==null?0:d.length;for(L&&R&&(h=d[--R]);R--;)h=y(h,d[R],R,d);return h}function Ar(d,y){for(var h=-1,L=d==null?0:d.length;++h<L;)if(y(d[h],h,d))return!0;return!1}var As=Fr("length");function Fs(d){return d.split("")}function Ts(d){return d.match(Ml)||[]}function so(d,y,h){var L;return h(d,function(R,z,j){if(y(R,z,j))return L=z,!1}),L}function wn(d,y,h,L){for(var R=d.length,z=h+(L?1:-1);L?z--:++z<R;)if(y(d[z],z,d))return z;return-1}function Et(d,y,h){return y===y?Ws(d,y,h):wn(d,uo,h)}function Es(d,y,h,L){for(var R=h-1,z=d.length;++R<z;)if(L(d[R],y))return R;return-1}function uo(d){return d!==d}function po(d,y){var h=d==null?0:d.length;return h?Er(d,y)/h:gn}function Fr(d){return function(y){return y==null?i:y[d]}}function Tr(d){return function(y){return d==null?i:d[y]}}function co(d,y,h,L,R){return R(d,function(z,j,$){h=L?(L=!1,z):y(h,z,j,$)}),h}function Bs(d,y){var h=d.length;for(d.sort(y);h--;)d[h]=d[h].value;return d}function Er(d,y){for(var h,L=-1,R=d.length;++L<R;){var z=y(d[L]);z!==i&&(h=h===i?z:h+z)}return h}function Br(d,y){for(var h=-1,L=Array(d);++h<d;)L[h]=y(h);return L}function Rs(d,y){return V(y,function(h){return[h,d[h]]})}function fo(d){return d&&d.slice(0,yo(d)+1).replace(yr,"")}function ve(d){return function(y){return d(y)}}function Rr(d,y){return V(y,function(h){return d[h]})}function Qt(d,y){return d.has(y)}function go(d,y){for(var h=-1,L=d.length;++h<L&&Et(y,d[h],0)>-1;);return h}function mo(d,y){for(var h=d.length;h--&&Et(y,d[h],0)>-1;);return h}function Ds(d,y){for(var h=d.length,L=0;h--;)d[h]===y&&++L;return L}var Ps=Tr(ys),ks=Tr(vs);function Hs(d){return"\\"+xs[d]}function Ms(d,y){return d==null?i:d[y]}function Bt(d){return fs.test(d)}function Os(d){return gs.test(d)}function Ns(d){for(var y,h=[];!(y=d.next()).done;)h.push(y.value);return h}function Dr(d){var y=-1,h=Array(d.size);return d.forEach(function(L,R){h[++y]=[R,L]}),h}function ho(d,y){return function(h){return d(y(h))}}function lt(d,y){for(var h=-1,L=d.length,R=0,z=[];++h<L;){var j=d[h];(j===y||j===nt)&&(d[h]=nt,z[R++]=h)}return z}function Cn(d){var y=-1,h=Array(d.size);return d.forEach(function(L){h[++y]=L}),h}function zs(d){var y=-1,h=Array(d.size);return d.forEach(function(L){h[++y]=[L,L]}),h}function Ws(d,y,h){for(var L=h-1,R=d.length;++L<R;)if(d[L]===y)return L;return-1}function Us(d,y,h){for(var L=h+1;L--;)if(d[L]===y)return L;return L}function Rt(d){return Bt(d)?$s(d):As(d)}function Pe(d){return Bt(d)?Ks(d):Fs(d)}function yo(d){for(var y=d.length;y--&&Dl.test(d.charAt(y)););return y}var Gs=Tr(bs);function $s(d){for(var y=Sr.lastIndex=0;Sr.test(d);)++y;return y}function Ks(d){return d.match(Sr)||[]}function Ys(d){return d.match(ds)||[]}var Vs=function d(y){y=y==null?ne:Dt.defaults(ne.Object(),y,Dt.pick(ne,ms));var h=y.Array,L=y.Date,R=y.Error,z=y.Function,j=y.Math,$=y.Object,Pr=y.RegExp,qs=y.String,Le=y.TypeError,In=h.prototype,Xs=z.prototype,Pt=$.prototype,Ln=y["__core-js_shared__"],An=Xs.toString,G=Pt.hasOwnProperty,Js=0,vo=function(){var e=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fn=Pt.toString,Zs=An.call($),Qs=ne._,js=Pr("^"+An.call(G).replace(hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tn=eo?y.Buffer:i,st=y.Symbol,En=y.Uint8Array,bo=Tn?Tn.allocUnsafe:i,Bn=ho($.getPrototypeOf,$),xo=$.create,_o=Pt.propertyIsEnumerable,Rn=In.splice,So=st?st.isConcatSpreadable:i,jt=st?st.iterator:i,vt=st?st.toStringTag:i,Dn=function(){try{var e=wt($,"defineProperty");return e({},"",{}),e}catch{}}(),eu=y.clearTimeout!==ne.clearTimeout&&y.clearTimeout,tu=L&&L.now!==ne.Date.now&&L.now,nu=y.setTimeout!==ne.setTimeout&&y.setTimeout,Pn=j.ceil,kn=j.floor,kr=$.getOwnPropertySymbols,ru=Tn?Tn.isBuffer:i,wo=y.isFinite,iu=In.join,ou=ho($.keys,$),ee=j.max,ie=j.min,au=L.now,lu=y.parseInt,Co=j.random,su=In.reverse,Hr=wt(y,"DataView"),en=wt(y,"Map"),Mr=wt(y,"Promise"),kt=wt(y,"Set"),tn=wt(y,"WeakMap"),nn=wt($,"create"),Hn=tn&&new tn,Ht={},uu=Ct(Hr),pu=Ct(en),cu=Ct(Mr),du=Ct(kt),fu=Ct(tn),Mn=st?st.prototype:i,rn=Mn?Mn.valueOf:i,Io=Mn?Mn.toString:i;function l(e){if(X(e)&&!D(e)&&!(e instanceof O)){if(e instanceof Ae)return e;if(G.call(e,"__wrapped__"))return La(e)}return new Ae(e)}var Mt=function(){function e(){}return function(t){if(!q(t))return{};if(xo)return xo(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function On(){}function Ae(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}l.templateSettings={escape:Al,evaluate:Fl,interpolate:Di,variable:"",imports:{_:l}},l.prototype=On.prototype,l.prototype.constructor=l,Ae.prototype=Mt(On.prototype),Ae.prototype.constructor=Ae;function O(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ne,this.__views__=[]}function gu(){var e=new O(this.__wrapped__);return e.__actions__=pe(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=pe(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=pe(this.__views__),e}function mu(){if(this.__filtered__){var e=new O(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function hu(){var e=this.__wrapped__.value(),t=this.__dir__,n=D(e),o=t<0,a=n?e.length:0,u=Fp(0,a,this.__views__),p=u.start,c=u.end,f=c-p,b=o?c:p-1,x=this.__iteratees__,w=x.length,C=0,A=ie(f,this.__takeCount__);if(!n||!o&&a==f&&A==f)return Xo(e,this.__actions__);var E=[];e:for(;f--&&C<A;){b+=t;for(var k=-1,B=e[b];++k<w;){var M=x[k],N=M.iteratee,_e=M.type,ue=N(B);if(_e==pl)B=ue;else if(!ue){if(_e==Fi)continue e;break e}}E[C++]=B}return E}O.prototype=Mt(On.prototype),O.prototype.constructor=O;function bt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function yu(){this.__data__=nn?nn(null):{},this.size=0}function vu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bu(e){var t=this.__data__;if(nn){var n=t[e];return n===F?i:n}return G.call(t,e)?t[e]:i}function xu(e){var t=this.__data__;return nn?t[e]!==i:G.call(t,e)}function _u(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nn&&t===i?F:t,this}bt.prototype.clear=yu,bt.prototype.delete=vu,bt.prototype.get=bu,bt.prototype.has=xu,bt.prototype.set=_u;function Ve(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Su(){this.__data__=[],this.size=0}function wu(e){var t=this.__data__,n=Nn(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():Rn.call(t,n,1),--this.size,!0}function Cu(e){var t=this.__data__,n=Nn(t,e);return n<0?i:t[n][1]}function Iu(e){return Nn(this.__data__,e)>-1}function Lu(e,t){var n=this.__data__,o=Nn(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}Ve.prototype.clear=Su,Ve.prototype.delete=wu,Ve.prototype.get=Cu,Ve.prototype.has=Iu,Ve.prototype.set=Lu;function qe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Au(){this.size=0,this.__data__={hash:new bt,map:new(en||Ve),string:new bt}}function Fu(e){var t=Zn(this,e).delete(e);return this.size-=t?1:0,t}function Tu(e){return Zn(this,e).get(e)}function Eu(e){return Zn(this,e).has(e)}function Bu(e,t){var n=Zn(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}qe.prototype.clear=Au,qe.prototype.delete=Fu,qe.prototype.get=Tu,qe.prototype.has=Eu,qe.prototype.set=Bu;function xt(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new qe;++t<n;)this.add(e[t])}function Ru(e){return this.__data__.set(e,F),this}function Du(e){return this.__data__.has(e)}xt.prototype.add=xt.prototype.push=Ru,xt.prototype.has=Du;function ke(e){var t=this.__data__=new Ve(e);this.size=t.size}function Pu(){this.__data__=new Ve,this.size=0}function ku(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hu(e){return this.__data__.get(e)}function Mu(e){return this.__data__.has(e)}function Ou(e,t){var n=this.__data__;if(n instanceof Ve){var o=n.__data__;if(!en||o.length<m-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new qe(o)}return n.set(e,t),this.size=n.size,this}ke.prototype.clear=Pu,ke.prototype.delete=ku,ke.prototype.get=Hu,ke.prototype.has=Mu,ke.prototype.set=Ou;function Lo(e,t){var n=D(e),o=!n&&It(e),a=!n&&!o&&ft(e),u=!n&&!o&&!a&&Wt(e),p=n||o||a||u,c=p?Br(e.length,qs):[],f=c.length;for(var b in e)(t||G.call(e,b))&&!(p&&(b=="length"||a&&(b=="offset"||b=="parent")||u&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||Qe(b,f)))&&c.push(b);return c}function Ao(e){var t=e.length;return t?e[qr(0,t-1)]:i}function Nu(e,t){return Qn(pe(e),_t(t,0,e.length))}function zu(e){return Qn(pe(e))}function Or(e,t,n){(n!==i&&!He(e[t],n)||n===i&&!(t in e))&&Xe(e,t,n)}function on(e,t,n){var o=e[t];(!(G.call(e,t)&&He(o,n))||n===i&&!(t in e))&&Xe(e,t,n)}function Nn(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n;return-1}function Wu(e,t,n,o){return ut(e,function(a,u,p){t(o,a,n(a),p)}),o}function Fo(e,t){return e&&We(t,te(t),e)}function Uu(e,t){return e&&We(t,de(t),e)}function Xe(e,t,n){t=="__proto__"&&Dn?Dn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Nr(e,t){for(var n=-1,o=t.length,a=h(o),u=e==null;++n<o;)a[n]=u?i:bi(e,t[n]);return a}function _t(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function Fe(e,t,n,o,a,u){var p,c=t&ge,f=t&Gt,b=t&U;if(n&&(p=a?n(e,o,a,u):n(e)),p!==i)return p;if(!q(e))return e;var x=D(e);if(x){if(p=Ep(e),!c)return pe(e,p)}else{var w=oe(e),C=w==yn||w==Ti;if(ft(e))return Qo(e,c);if(w==Ye||w==At||C&&!a){if(p=f||C?{}:ya(e),!c)return f?bp(e,Uu(p,e)):vp(e,Fo(p,e))}else{if(!K[w])return a?e:{};p=Bp(e,w,c)}}u||(u=new ke);var A=u.get(e);if(A)return A;u.set(e,p),Ya(e)?e.forEach(function(B){p.add(Fe(B,t,n,B,e,u))}):$a(e)&&e.forEach(function(B,M){p.set(M,Fe(B,t,n,M,e,u))});var E=b?f?oi:ii:f?de:te,k=x?i:E(e);return Ie(k||e,function(B,M){k&&(M=B,B=e[M]),on(p,M,Fe(B,t,n,M,e,u))}),p}function Gu(e){var t=te(e);return function(n){return To(n,e,t)}}function To(e,t,n){var o=n.length;if(e==null)return!o;for(e=$(e);o--;){var a=n[o],u=t[a],p=e[a];if(p===i&&!(a in e)||!u(p))return!1}return!0}function Eo(e,t,n){if(typeof e!="function")throw new Le(v);return dn(function(){e.apply(i,n)},t)}function an(e,t,n,o){var a=-1,u=Sn,p=!0,c=e.length,f=[],b=t.length;if(!c)return f;n&&(t=V(t,ve(n))),o?(u=Ir,p=!1):t.length>=m&&(u=Qt,p=!1,t=new xt(t));e:for(;++a<c;){var x=e[a],w=n==null?x:n(x);if(x=o||x!==0?x:0,p&&w===w){for(var C=b;C--;)if(t[C]===w)continue e;f.push(x)}else u(t,w,o)||f.push(x)}return f}var ut=ra(ze),Bo=ra(Wr,!0);function $u(e,t){var n=!0;return ut(e,function(o,a,u){return n=!!t(o,a,u),n}),n}function zn(e,t,n){for(var o=-1,a=e.length;++o<a;){var u=e[o],p=t(u);if(p!=null&&(c===i?p===p&&!xe(p):n(p,c)))var c=p,f=u}return f}function Ku(e,t,n,o){var a=e.length;for(n=P(n),n<0&&(n=-n>a?0:a+n),o=o===i||o>a?a:P(o),o<0&&(o+=a),o=n>o?0:qa(o);n<o;)e[n++]=t;return e}function Ro(e,t){var n=[];return ut(e,function(o,a,u){t(o,a,u)&&n.push(o)}),n}function re(e,t,n,o,a){var u=-1,p=e.length;for(n||(n=Dp),a||(a=[]);++u<p;){var c=e[u];t>0&&n(c)?t>1?re(c,t-1,n,o,a):at(a,c):o||(a[a.length]=c)}return a}var zr=ia(),Do=ia(!0);function ze(e,t){return e&&zr(e,t,te)}function Wr(e,t){return e&&Do(e,t,te)}function Wn(e,t){return ot(t,function(n){return je(e[n])})}function St(e,t){t=ct(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[Ue(t[n++])];return n&&n==o?e:i}function Po(e,t,n){var o=t(e);return D(e)?o:at(o,n(e))}function le(e){return e==null?e===i?xl:vl:vt&&vt in $(e)?Ap(e):zp(e)}function Ur(e,t){return e>t}function Yu(e,t){return e!=null&&G.call(e,t)}function Vu(e,t){return e!=null&&t in $(e)}function qu(e,t,n){return e>=ie(t,n)&&e<ee(t,n)}function Gr(e,t,n){for(var o=n?Ir:Sn,a=e[0].length,u=e.length,p=u,c=h(u),f=1/0,b=[];p--;){var x=e[p];p&&t&&(x=V(x,ve(t))),f=ie(x.length,f),c[p]=!n&&(t||a>=120&&x.length>=120)?new xt(p&&x):i}x=e[0];var w=-1,C=c[0];e:for(;++w<a&&b.length<f;){var A=x[w],E=t?t(A):A;if(A=n||A!==0?A:0,!(C?Qt(C,E):o(b,E,n))){for(p=u;--p;){var k=c[p];if(!(k?Qt(k,E):o(e[p],E,n)))continue e}C&&C.push(E),b.push(A)}}return b}function Xu(e,t,n,o){return ze(e,function(a,u,p){t(o,n(a),u,p)}),o}function ln(e,t,n){t=ct(t,e),e=_a(e,t);var o=e==null?e:e[Ue(Ee(t))];return o==null?i:ye(o,e,n)}function ko(e){return X(e)&&le(e)==At}function Ju(e){return X(e)&&le(e)==Zt}function Zu(e){return X(e)&&le(e)==Yt}function sn(e,t,n,o,a){return e===t?!0:e==null||t==null||!X(e)&&!X(t)?e!==e&&t!==t:Qu(e,t,n,o,sn,a)}function Qu(e,t,n,o,a,u){var p=D(e),c=D(t),f=p?mn:oe(e),b=c?mn:oe(t);f=f==At?Ye:f,b=b==At?Ye:b;var x=f==Ye,w=b==Ye,C=f==b;if(C&&ft(e)){if(!ft(t))return!1;p=!0,x=!1}if(C&&!x)return u||(u=new ke),p||Wt(e)?ga(e,t,n,o,a,u):Ip(e,t,f,n,o,a,u);if(!(n&Ge)){var A=x&&G.call(e,"__wrapped__"),E=w&&G.call(t,"__wrapped__");if(A||E){var k=A?e.value():e,B=E?t.value():t;return u||(u=new ke),a(k,B,n,o,u)}}return C?(u||(u=new ke),Lp(e,t,n,o,a,u)):!1}function ju(e){return X(e)&&oe(e)==Re}function $r(e,t,n,o){var a=n.length,u=a,p=!o;if(e==null)return!u;for(e=$(e);a--;){var c=n[a];if(p&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<u;){c=n[a];var f=c[0],b=e[f],x=c[1];if(p&&c[2]){if(b===i&&!(f in e))return!1}else{var w=new ke;if(o)var C=o(b,x,f,e,t,w);if(!(C===i?sn(x,b,Ge|gt,o,w):C))return!1}}return!0}function Ho(e){if(!q(e)||kp(e))return!1;var t=je(e)?js:Gl;return t.test(Ct(e))}function ep(e){return X(e)&&le(e)==qt}function tp(e){return X(e)&&oe(e)==De}function np(e){return X(e)&&ir(e.length)&&!!Y[le(e)]}function Mo(e){return typeof e=="function"?e:e==null?fe:typeof e=="object"?D(e)?zo(e[0],e[1]):No(e):ol(e)}function Kr(e){if(!cn(e))return ou(e);var t=[];for(var n in $(e))G.call(e,n)&&n!="constructor"&&t.push(n);return t}function rp(e){if(!q(e))return Np(e);var t=cn(e),n=[];for(var o in e)o=="constructor"&&(t||!G.call(e,o))||n.push(o);return n}function Yr(e,t){return e<t}function Oo(e,t){var n=-1,o=ce(e)?h(e.length):[];return ut(e,function(a,u,p){o[++n]=t(a,u,p)}),o}function No(e){var t=li(e);return t.length==1&&t[0][2]?ba(t[0][0],t[0][1]):function(n){return n===e||$r(n,e,t)}}function zo(e,t){return ui(e)&&va(t)?ba(Ue(e),t):function(n){var o=bi(n,e);return o===i&&o===t?xi(n,e):sn(t,o,Ge|gt)}}function Un(e,t,n,o,a){e!==t&&zr(t,function(u,p){if(a||(a=new ke),q(u))ip(e,t,p,n,Un,o,a);else{var c=o?o(ci(e,p),u,p+"",e,t,a):i;c===i&&(c=u),Or(e,p,c)}},de)}function ip(e,t,n,o,a,u,p){var c=ci(e,n),f=ci(t,n),b=p.get(f);if(b){Or(e,n,b);return}var x=u?u(c,f,n+"",e,t,p):i,w=x===i;if(w){var C=D(f),A=!C&&ft(f),E=!C&&!A&&Wt(f);x=f,C||A||E?D(c)?x=c:J(c)?x=pe(c):A?(w=!1,x=Qo(f,!0)):E?(w=!1,x=jo(f,!0)):x=[]:fn(f)||It(f)?(x=c,It(c)?x=Xa(c):(!q(c)||je(c))&&(x=ya(f))):w=!1}w&&(p.set(f,x),a(x,f,o,u,p),p.delete(f)),Or(e,n,x)}function Wo(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,Qe(t,n)?e[t]:i}function Uo(e,t,n){t.length?t=V(t,function(u){return D(u)?function(p){return St(p,u.length===1?u[0]:u)}:u}):t=[fe];var o=-1;t=V(t,ve(T()));var a=Oo(e,function(u,p,c){var f=V(t,function(b){return b(u)});return{criteria:f,index:++o,value:u}});return Bs(a,function(u,p){return yp(u,p,n)})}function op(e,t){return Go(e,t,function(n,o){return xi(e,o)})}function Go(e,t,n){for(var o=-1,a=t.length,u={};++o<a;){var p=t[o],c=St(e,p);n(c,p)&&un(u,ct(p,e),c)}return u}function ap(e){return function(t){return St(t,e)}}function Vr(e,t,n,o){var a=o?Es:Et,u=-1,p=t.length,c=e;for(e===t&&(t=pe(t)),n&&(c=V(e,ve(n)));++u<p;)for(var f=0,b=t[u],x=n?n(b):b;(f=a(c,x,f,o))>-1;)c!==e&&Rn.call(c,f,1),Rn.call(e,f,1);return e}function $o(e,t){for(var n=e?t.length:0,o=n-1;n--;){var a=t[n];if(n==o||a!==u){var u=a;Qe(a)?Rn.call(e,a,1):Zr(e,a)}}return e}function qr(e,t){return e+kn(Co()*(t-e+1))}function lp(e,t,n,o){for(var a=-1,u=ee(Pn((t-e)/(n||1)),0),p=h(u);u--;)p[o?u:++a]=e,e+=n;return p}function Xr(e,t){var n="";if(!e||t<1||t>it)return n;do t%2&&(n+=e),t=kn(t/2),t&&(e+=e);while(t);return n}function H(e,t){return di(xa(e,t,fe),e+"")}function sp(e){return Ao(Ut(e))}function up(e,t){var n=Ut(e);return Qn(n,_t(t,0,n.length))}function un(e,t,n,o){if(!q(e))return e;t=ct(t,e);for(var a=-1,u=t.length,p=u-1,c=e;c!=null&&++a<u;){var f=Ue(t[a]),b=n;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(a!=p){var x=c[f];b=o?o(x,f,c):i,b===i&&(b=q(x)?x:Qe(t[a+1])?[]:{})}on(c,f,b),c=c[f]}return e}var Ko=Hn?function(e,t){return Hn.set(e,t),e}:fe,pp=Dn?function(e,t){return Dn(e,"toString",{configurable:!0,enumerable:!1,value:Si(t),writable:!0})}:fe;function cp(e){return Qn(Ut(e))}function Te(e,t,n){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var u=h(a);++o<a;)u[o]=e[o+t];return u}function dp(e,t){var n;return ut(e,function(o,a,u){return n=t(o,a,u),!n}),!!n}function Gn(e,t,n){var o=0,a=e==null?o:e.length;if(typeof t=="number"&&t===t&&a<=gl){for(;o<a;){var u=o+a>>>1,p=e[u];p!==null&&!xe(p)&&(n?p<=t:p<t)?o=u+1:a=u}return a}return Jr(e,t,fe,n)}function Jr(e,t,n,o){var a=0,u=e==null?0:e.length;if(u===0)return 0;t=n(t);for(var p=t!==t,c=t===null,f=xe(t),b=t===i;a<u;){var x=kn((a+u)/2),w=n(e[x]),C=w!==i,A=w===null,E=w===w,k=xe(w);if(p)var B=o||E;else b?B=E&&(o||C):c?B=E&&C&&(o||!A):f?B=E&&C&&!A&&(o||!k):A||k?B=!1:B=o?w<=t:w<t;B?a=x+1:u=x}return ie(u,fl)}function Yo(e,t){for(var n=-1,o=e.length,a=0,u=[];++n<o;){var p=e[n],c=t?t(p):p;if(!n||!He(c,f)){var f=c;u[a++]=p===0?0:p}}return u}function Vo(e){return typeof e=="number"?e:xe(e)?gn:+e}function be(e){if(typeof e=="string")return e;if(D(e))return V(e,be)+"";if(xe(e))return Io?Io.call(e):"";var t=e+"";return t=="0"&&1/e==-ht?"-0":t}function pt(e,t,n){var o=-1,a=Sn,u=e.length,p=!0,c=[],f=c;if(n)p=!1,a=Ir;else if(u>=m){var b=t?null:wp(e);if(b)return Cn(b);p=!1,a=Qt,f=new xt}else f=t?[]:c;e:for(;++o<u;){var x=e[o],w=t?t(x):x;if(x=n||x!==0?x:0,p&&w===w){for(var C=f.length;C--;)if(f[C]===w)continue e;t&&f.push(w),c.push(x)}else a(f,w,n)||(f!==c&&f.push(w),c.push(x))}return c}function Zr(e,t){return t=ct(t,e),e=_a(e,t),e==null||delete e[Ue(Ee(t))]}function qo(e,t,n,o){return un(e,t,n(St(e,t)),o)}function $n(e,t,n,o){for(var a=e.length,u=o?a:-1;(o?u--:++u<a)&&t(e[u],u,e););return n?Te(e,o?0:u,o?u+1:a):Te(e,o?u+1:0,o?a:u)}function Xo(e,t){var n=e;return n instanceof O&&(n=n.value()),Lr(t,function(o,a){return a.func.apply(a.thisArg,at([o],a.args))},n)}function Qr(e,t,n){var o=e.length;if(o<2)return o?pt(e[0]):[];for(var a=-1,u=h(o);++a<o;)for(var p=e[a],c=-1;++c<o;)c!=a&&(u[a]=an(u[a]||p,e[c],t,n));return pt(re(u,1),t,n)}function Jo(e,t,n){for(var o=-1,a=e.length,u=t.length,p={};++o<a;){var c=o<u?t[o]:i;n(p,e[o],c)}return p}function jr(e){return J(e)?e:[]}function ei(e){return typeof e=="function"?e:fe}function ct(e,t){return D(e)?e:ui(e,t)?[e]:Ia(W(e))}var fp=H;function dt(e,t,n){var o=e.length;return n=n===i?o:n,!t&&n>=o?e:Te(e,t,n)}var Zo=eu||function(e){return ne.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var n=e.length,o=bo?bo(n):new e.constructor(n);return e.copy(o),o}function ti(e){var t=new e.constructor(e.byteLength);return new En(t).set(new En(e)),t}function gp(e,t){var n=t?ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function mp(e){var t=new e.constructor(e.source,Pi.exec(e));return t.lastIndex=e.lastIndex,t}function hp(e){return rn?$(rn.call(e)):{}}function jo(e,t){var n=t?ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==i,o=e===null,a=e===e,u=xe(e),p=t!==i,c=t===null,f=t===t,b=xe(t);if(!c&&!b&&!u&&e>t||u&&p&&f&&!c&&!b||o&&p&&f||!n&&f||!a)return 1;if(!o&&!u&&!b&&e<t||b&&n&&a&&!o&&!u||c&&n&&a||!p&&a||!f)return-1}return 0}function yp(e,t,n){for(var o=-1,a=e.criteria,u=t.criteria,p=a.length,c=n.length;++o<p;){var f=ea(a[o],u[o]);if(f){if(o>=c)return f;var b=n[o];return f*(b=="desc"?-1:1)}}return e.index-t.index}function ta(e,t,n,o){for(var a=-1,u=e.length,p=n.length,c=-1,f=t.length,b=ee(u-p,0),x=h(f+b),w=!o;++c<f;)x[c]=t[c];for(;++a<p;)(w||a<u)&&(x[n[a]]=e[a]);for(;b--;)x[c++]=e[a++];return x}function na(e,t,n,o){for(var a=-1,u=e.length,p=-1,c=n.length,f=-1,b=t.length,x=ee(u-c,0),w=h(x+b),C=!o;++a<x;)w[a]=e[a];for(var A=a;++f<b;)w[A+f]=t[f];for(;++p<c;)(C||a<u)&&(w[A+n[p]]=e[a++]);return w}function pe(e,t){var n=-1,o=e.length;for(t||(t=h(o));++n<o;)t[n]=e[n];return t}function We(e,t,n,o){var a=!n;n||(n={});for(var u=-1,p=t.length;++u<p;){var c=t[u],f=o?o(n[c],e[c],c,n,e):i;f===i&&(f=e[c]),a?Xe(n,c,f):on(n,c,f)}return n}function vp(e,t){return We(e,si(e),t)}function bp(e,t){return We(e,ma(e),t)}function Kn(e,t){return function(n,o){var a=D(n)?Cs:Wu,u=t?t():{};return a(n,e,T(o,2),u)}}function Ot(e){return H(function(t,n){var o=-1,a=n.length,u=a>1?n[a-1]:i,p=a>2?n[2]:i;for(u=e.length>3&&typeof u=="function"?(a--,u):i,p&&se(n[0],n[1],p)&&(u=a<3?i:u,a=1),t=$(t);++o<a;){var c=n[o];c&&e(t,c,o,u)}return t})}function ra(e,t){return function(n,o){if(n==null)return n;if(!ce(n))return e(n,o);for(var a=n.length,u=t?a:-1,p=$(n);(t?u--:++u<a)&&o(p[u],u,p)!==!1;);return n}}function ia(e){return function(t,n,o){for(var a=-1,u=$(t),p=o(t),c=p.length;c--;){var f=p[e?c:++a];if(n(u[f],f,u)===!1)break}return t}}function xp(e,t,n){var o=t&ae,a=pn(e);function u(){var p=this&&this!==ne&&this instanceof u?a:e;return p.apply(o?n:this,arguments)}return u}function oa(e){return function(t){t=W(t);var n=Bt(t)?Pe(t):i,o=n?n[0]:t.charAt(0),a=n?dt(n,1).join(""):t.slice(1);return o[e]()+a}}function Nt(e){return function(t){return Lr(rl(nl(t).replace(ps,"")),e,"")}}function pn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Mt(e.prototype),o=e.apply(n,t);return q(o)?o:n}}function _p(e,t,n){var o=pn(e);function a(){for(var u=arguments.length,p=h(u),c=u,f=zt(a);c--;)p[c]=arguments[c];var b=u<3&&p[0]!==f&&p[u-1]!==f?[]:lt(p,f);if(u-=b.length,u<n)return pa(e,t,Yn,a.placeholder,i,p,b,i,i,n-u);var x=this&&this!==ne&&this instanceof a?o:e;return ye(x,this,p)}return a}function aa(e){return function(t,n,o){var a=$(t);if(!ce(t)){var u=T(n,3);t=te(t),n=function(c){return u(a[c],c,a)}}var p=e(t,n,o);return p>-1?a[u?t[p]:p]:i}}function la(e){return Ze(function(t){var n=t.length,o=n,a=Ae.prototype.thru;for(e&&t.reverse();o--;){var u=t[o];if(typeof u!="function")throw new Le(v);if(a&&!p&&Jn(u)=="wrapper")var p=new Ae([],!0)}for(o=p?o:n;++o<n;){u=t[o];var c=Jn(u),f=c=="wrapper"?ai(u):i;f&&pi(f[0])&&f[1]==(we|me|he|rt)&&!f[4].length&&f[9]==1?p=p[Jn(f[0])].apply(p,f[3]):p=u.length==1&&pi(u)?p[c]():p.thru(u)}return function(){var b=arguments,x=b[0];if(p&&b.length==1&&D(x))return p.plant(x).value();for(var w=0,C=n?t[w].apply(this,b):x;++w<n;)C=t[w].call(this,C);return C}})}function Yn(e,t,n,o,a,u,p,c,f,b){var x=t&we,w=t&ae,C=t&Oe,A=t&(me|$e),E=t&Lt,k=C?i:pn(e);function B(){for(var M=arguments.length,N=h(M),_e=M;_e--;)N[_e]=arguments[_e];if(A)var ue=zt(B),Se=Ds(N,ue);if(o&&(N=ta(N,o,a,A)),u&&(N=na(N,u,p,A)),M-=Se,A&&M<b){var Z=lt(N,ue);return pa(e,t,Yn,B.placeholder,n,N,Z,c,f,b-M)}var Me=w?n:this,tt=C?Me[e]:e;return M=N.length,c?N=Wp(N,c):E&&M>1&&N.reverse(),x&&f<M&&(N.length=f),this&&this!==ne&&this instanceof B&&(tt=k||pn(tt)),tt.apply(Me,N)}return B}function sa(e,t){return function(n,o){return Xu(n,e,t(o),{})}}function Vn(e,t){return function(n,o){var a;if(n===i&&o===i)return t;if(n!==i&&(a=n),o!==i){if(a===i)return o;typeof n=="string"||typeof o=="string"?(n=be(n),o=be(o)):(n=Vo(n),o=Vo(o)),a=e(n,o)}return a}}function ni(e){return Ze(function(t){return t=V(t,ve(T())),H(function(n){var o=this;return e(t,function(a){return ye(a,o,n)})})})}function qn(e,t){t=t===i?" ":be(t);var n=t.length;if(n<2)return n?Xr(t,e):t;var o=Xr(t,Pn(e/Rt(t)));return Bt(t)?dt(Pe(o),0,e).join(""):o.slice(0,e)}function Sp(e,t,n,o){var a=t&ae,u=pn(e);function p(){for(var c=-1,f=arguments.length,b=-1,x=o.length,w=h(x+f),C=this&&this!==ne&&this instanceof p?u:e;++b<x;)w[b]=o[b];for(;f--;)w[b++]=arguments[++c];return ye(C,a?n:this,w)}return p}function ua(e){return function(t,n,o){return o&&typeof o!="number"&&se(t,n,o)&&(n=o=i),t=et(t),n===i?(n=t,t=0):n=et(n),o=o===i?t<n?1:-1:et(o),lp(t,n,o,e)}}function Xn(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Be(t),n=Be(n)),e(t,n)}}function pa(e,t,n,o,a,u,p,c,f,b){var x=t&me,w=x?p:i,C=x?i:p,A=x?u:i,E=x?i:u;t|=x?he:Ke,t&=~(x?Ke:he),t&$t||(t&=~(ae|Oe));var k=[e,t,a,A,w,E,C,c,f,b],B=n.apply(i,k);return pi(e)&&Sa(B,k),B.placeholder=o,wa(B,e,t)}function ri(e){var t=j[e];return function(n,o){if(n=Be(n),o=o==null?0:ie(P(o),292),o&&wo(n)){var a=(W(n)+"e").split("e"),u=t(a[0]+"e"+(+a[1]+o));return a=(W(u)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(n)}}var wp=kt&&1/Cn(new kt([,-0]))[1]==ht?function(e){return new kt(e)}:Ii;function ca(e){return function(t){var n=oe(t);return n==Re?Dr(t):n==De?zs(t):Rs(t,e(t))}}function Je(e,t,n,o,a,u,p,c){var f=t&Oe;if(!f&&typeof e!="function")throw new Le(v);var b=o?o.length:0;if(b||(t&=~(he|Ke),o=a=i),p=p===i?p:ee(P(p),0),c=c===i?c:P(c),b-=a?a.length:0,t&Ke){var x=o,w=a;o=a=i}var C=f?i:ai(e),A=[e,t,n,o,a,x,w,u,p,c];if(C&&Op(A,C),e=A[0],t=A[1],n=A[2],o=A[3],a=A[4],c=A[9]=A[9]===i?f?0:e.length:ee(A[9]-b,0),!c&&t&(me|$e)&&(t&=~(me|$e)),!t||t==ae)var E=xp(e,t,n);else t==me||t==$e?E=_p(e,t,c):(t==he||t==(ae|he))&&!a.length?E=Sp(e,t,n,o):E=Yn.apply(i,A);var k=C?Ko:Sa;return wa(k(E,A),e,t)}function da(e,t,n,o){return e===i||He(e,Pt[n])&&!G.call(o,n)?t:e}function fa(e,t,n,o,a,u){return q(e)&&q(t)&&(u.set(t,e),Un(e,t,i,fa,u),u.delete(t)),e}function Cp(e){return fn(e)?i:e}function ga(e,t,n,o,a,u){var p=n&Ge,c=e.length,f=t.length;if(c!=f&&!(p&&f>c))return!1;var b=u.get(e),x=u.get(t);if(b&&x)return b==t&&x==e;var w=-1,C=!0,A=n&gt?new xt:i;for(u.set(e,t),u.set(t,e);++w<c;){var E=e[w],k=t[w];if(o)var B=p?o(k,E,w,t,e,u):o(E,k,w,e,t,u);if(B!==i){if(B)continue;C=!1;break}if(A){if(!Ar(t,function(M,N){if(!Qt(A,N)&&(E===M||a(E,M,n,o,u)))return A.push(N)})){C=!1;break}}else if(!(E===k||a(E,k,n,o,u))){C=!1;break}}return u.delete(e),u.delete(t),C}function Ip(e,t,n,o,a,u,p){switch(n){case Ft:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zt:return!(e.byteLength!=t.byteLength||!u(new En(e),new En(t)));case Kt:case Yt:case Vt:return He(+e,+t);case hn:return e.name==t.name&&e.message==t.message;case qt:case Xt:return e==t+"";case Re:var c=Dr;case De:var f=o&Ge;if(c||(c=Cn),e.size!=t.size&&!f)return!1;var b=p.get(e);if(b)return b==t;o|=gt,p.set(e,t);var x=ga(c(e),c(t),o,a,u,p);return p.delete(e),x;case vn:if(rn)return rn.call(e)==rn.call(t)}return!1}function Lp(e,t,n,o,a,u){var p=n&Ge,c=ii(e),f=c.length,b=ii(t),x=b.length;if(f!=x&&!p)return!1;for(var w=f;w--;){var C=c[w];if(!(p?C in t:G.call(t,C)))return!1}var A=u.get(e),E=u.get(t);if(A&&E)return A==t&&E==e;var k=!0;u.set(e,t),u.set(t,e);for(var B=p;++w<f;){C=c[w];var M=e[C],N=t[C];if(o)var _e=p?o(N,M,C,t,e,u):o(M,N,C,e,t,u);if(!(_e===i?M===N||a(M,N,n,o,u):_e)){k=!1;break}B||(B=C=="constructor")}if(k&&!B){var ue=e.constructor,Se=t.constructor;ue!=Se&&"constructor"in e&&"constructor"in t&&!(typeof ue=="function"&&ue instanceof ue&&typeof Se=="function"&&Se instanceof Se)&&(k=!1)}return u.delete(e),u.delete(t),k}function Ze(e){return di(xa(e,i,Ta),e+"")}function ii(e){return Po(e,te,si)}function oi(e){return Po(e,de,ma)}var ai=Hn?function(e){return Hn.get(e)}:Ii;function Jn(e){for(var t=e.name+"",n=Ht[t],o=G.call(Ht,t)?n.length:0;o--;){var a=n[o],u=a.func;if(u==null||u==e)return a.name}return t}function zt(e){var t=G.call(l,"placeholder")?l:e;return t.placeholder}function T(){var e=l.iteratee||wi;return e=e===wi?Mo:e,arguments.length?e(arguments[0],arguments[1]):e}function Zn(e,t){var n=e.__data__;return Pp(t)?n[typeof t=="string"?"string":"hash"]:n.map}function li(e){for(var t=te(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,va(a)]}return t}function wt(e,t){var n=Ms(e,t);return Ho(n)?n:i}function Ap(e){var t=G.call(e,vt),n=e[vt];try{e[vt]=i;var o=!0}catch{}var a=Fn.call(e);return o&&(t?e[vt]=n:delete e[vt]),a}var si=kr?function(e){return e==null?[]:(e=$(e),ot(kr(e),function(t){return _o.call(e,t)}))}:Li,ma=kr?function(e){for(var t=[];e;)at(t,si(e)),e=Bn(e);return t}:Li,oe=le;(Hr&&oe(new Hr(new ArrayBuffer(1)))!=Ft||en&&oe(new en)!=Re||Mr&&oe(Mr.resolve())!=Ei||kt&&oe(new kt)!=De||tn&&oe(new tn)!=Jt)&&(oe=function(e){var t=le(e),n=t==Ye?e.constructor:i,o=n?Ct(n):"";if(o)switch(o){case uu:return Ft;case pu:return Re;case cu:return Ei;case du:return De;case fu:return Jt}return t});function Fp(e,t,n){for(var o=-1,a=n.length;++o<a;){var u=n[o],p=u.size;switch(u.type){case"drop":e+=p;break;case"dropRight":t-=p;break;case"take":t=ie(t,e+p);break;case"takeRight":e=ee(e,t-p);break}}return{start:e,end:t}}function Tp(e){var t=e.match(kl);return t?t[1].split(Hl):[]}function ha(e,t,n){t=ct(t,e);for(var o=-1,a=t.length,u=!1;++o<a;){var p=Ue(t[o]);if(!(u=e!=null&&n(e,p)))break;e=e[p]}return u||++o!=a?u:(a=e==null?0:e.length,!!a&&ir(a)&&Qe(p,a)&&(D(e)||It(e)))}function Ep(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&G.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ya(e){return typeof e.constructor=="function"&&!cn(e)?Mt(Bn(e)):{}}function Bp(e,t,n){var o=e.constructor;switch(t){case Zt:return ti(e);case Kt:case Yt:return new o(+e);case Ft:return gp(e,n);case lr:case sr:case ur:case pr:case cr:case dr:case fr:case gr:case mr:return jo(e,n);case Re:return new o;case Vt:case Xt:return new o(e);case qt:return mp(e);case De:return new o;case vn:return hp(e)}}function Rp(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(Pl,`{
9
9
  /* [wrapped with `+t+`] */
10
- `)}function Dp(e){return D(e)||It(e)||!!(So&&e&&e[So])}function Qe(e,t){var n=typeof e;return t=t==null?it:t,!!t&&(n=="number"||n!="symbol"&&Kl.test(e))&&e>-1&&e%1==0&&e<t}function se(e,t,n){if(!V(n))return!1;var o=typeof t;return(o=="number"?ce(n)&&Qe(t,n.length):o=="string"&&t in n)?He(n[t],e):!1}function ui(e,t){if(D(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||xe(e)?!0:El.test(e)||!Tl.test(e)||t!=null&&e in $(t)}function Pp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function pi(e){var t=Jn(e),n=l[t];if(typeof n!="function"||!(t in O.prototype))return!1;if(e===n)return!0;var o=ai(n);return!!o&&e===o[0]}function kp(e){return!!vo&&vo in e}var Hp=Ln?je:Ai;function cn(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Pt;return e===n}function va(e){return e===e&&!V(e)}function ba(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==i||e in $(n))}}function Mp(e){var t=nr(e,function(o){return n.size===Q&&n.clear(),o}),n=t.cache;return t}function Op(e,t){var n=e[1],o=t[1],a=n|o,u=a<(ae|Oe|we),p=o==we&&n==ge||o==we&&n==rt&&e[7].length<=t[8]||o==(we|rt)&&t[7].length<=t[8]&&n==ge;if(!(u||p))return e;o&ae&&(e[2]=t[2],a|=n&ae?0:$t);var c=t[3];if(c){var f=e[3];e[3]=f?ta(f,c,t[4]):c,e[4]=f?lt(e[3],nt):t[4]}return c=t[5],c&&(f=e[5],e[5]=f?na(f,c,t[6]):c,e[6]=f?lt(e[5],nt):t[6]),c=t[7],c&&(e[7]=c),o&we&&(e[8]=e[8]==null?t[8]:ie(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Np(e){var t=[];if(e!=null)for(var n in $(e))t.push(n);return t}function zp(e){return Fn.call(e)}function xa(e,t,n){return t=ee(t===i?e.length-1:t,0),function(){for(var o=arguments,a=-1,u=ee(o.length-t,0),p=g(u);++a<u;)p[a]=o[t+a];a=-1;for(var c=g(t+1);++a<t;)c[a]=o[a];return c[t]=n(p),ye(e,this,c)}}function _a(e,t){return t.length<2?e:St(e,Te(t,0,-1))}function Wp(e,t){for(var n=e.length,o=ie(t.length,n),a=pe(e);o--;){var u=t[o];e[o]=Qe(u,n)?a[u]:i}return e}function ci(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Sa=Ca(Ko),dn=nu||function(e,t){return ne.setTimeout(e,t)},di=Ca(pp);function wa(e,t,n){var o=t+"";return di(e,Rp(o,Up(Tp(o),n)))}function Ca(e){var t=0,n=0;return function(){var o=au(),a=ul-(o-n);if(n=o,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Qn(e,t){var n=-1,o=e.length,a=o-1;for(t=t===i?o:t;++n<t;){var u=Vr(n,a),p=e[u];e[u]=e[n],e[n]=p}return e.length=t,e}var Ia=Mp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bl,function(n,o,a,u){t.push(a?u.replace(Nl,"$1"):o||n)}),t});function Ue(e){if(typeof e=="string"||xe(e))return e;var t=e+"";return t=="0"&&1/e==-ht?"-0":t}function Ct(e){if(e!=null){try{return An.call(e)}catch{}try{return e+""}catch{}}return""}function Up(e,t){return Ie(gl,function(n){var o="_."+n[0];t&n[1]&&!Sn(e,o)&&e.push(o)}),e.sort()}function La(e){if(e instanceof O)return e.clone();var t=new Ae(e.__wrapped__,e.__chain__);return t.__actions__=pe(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Gp(e,t,n){(n?se(e,t,n):t===i)?t=1:t=ee(P(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var a=0,u=0,p=g(Pn(o/t));a<o;)p[u++]=Te(e,a,a+=t);return p}function $p(e){for(var t=-1,n=e==null?0:e.length,o=0,a=[];++t<n;){var u=e[t];u&&(a[o++]=u)}return a}function Kp(){var e=arguments.length;if(!e)return[];for(var t=g(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return at(D(n)?pe(n):[n],re(t,1))}var Yp=H(function(e,t){return J(e)?an(e,re(t,1,J,!0)):[]}),qp=H(function(e,t){var n=Ee(t);return J(n)&&(n=i),J(e)?an(e,re(t,1,J,!0),T(n,2)):[]}),Vp=H(function(e,t){var n=Ee(t);return J(n)&&(n=i),J(e)?an(e,re(t,1,J,!0),i,n):[]});function Xp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:P(t),Te(e,t<0?0:t,o)):[]}function Jp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:P(t),t=o-t,Te(e,0,t<0?0:t)):[]}function Zp(e,t){return e&&e.length?$n(e,T(t,3),!0,!0):[]}function Qp(e,t){return e&&e.length?$n(e,T(t,3),!0):[]}function jp(e,t,n,o){var a=e==null?0:e.length;return a?(n&&typeof n!="number"&&se(e,t,n)&&(n=0,o=a),Ku(e,t,n,o)):[]}function Aa(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:P(n);return a<0&&(a=ee(o+a,0)),wn(e,T(t,3),a)}function Fa(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o-1;return n!==i&&(a=P(n),a=n<0?ee(o+a,0):ie(a,o-1)),wn(e,T(t,3),a,!0)}function Ta(e){var t=e==null?0:e.length;return t?re(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?re(e,ht):[]}function tc(e,t){var n=e==null?0:e.length;return n?(t=t===i?1:P(t),re(e,t)):[]}function nc(e){for(var t=-1,n=e==null?0:e.length,o={};++t<n;){var a=e[t];o[a[0]]=a[1]}return o}function Ea(e){return e&&e.length?e[0]:i}function rc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:P(n);return a<0&&(a=ee(o+a,0)),Et(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Te(e,0,-1):[]}var oc=H(function(e){var t=q(e,jr);return t.length&&t[0]===e[0]?Gr(t):[]}),ac=H(function(e){var t=Ee(e),n=q(e,jr);return t===Ee(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Gr(n,T(t,2)):[]}),lc=H(function(e){var t=Ee(e),n=q(e,jr);return t=typeof t=="function"?t:i,t&&n.pop(),n.length&&n[0]===e[0]?Gr(n,i,t):[]});function sc(e,t){return e==null?"":iu.call(e,t)}function Ee(e){var t=e==null?0:e.length;return t?e[t-1]:i}function uc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o;return n!==i&&(a=P(n),a=a<0?ee(o+a,0):ie(a,o-1)),t===t?Us(e,t,a):wn(e,uo,a,!0)}function pc(e,t){return e&&e.length?Wo(e,P(t)):i}var cc=H(Ba);function Ba(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}function dc(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,T(n,2)):e}function fc(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,i,n):e}var mc=Ze(function(e,t){var n=e==null?0:e.length,o=Nr(e,t);return $o(e,q(t,function(a){return Qe(a,n)?+a:a}).sort(ea)),o});function gc(e,t){var n=[];if(!(e&&e.length))return n;var o=-1,a=[],u=e.length;for(t=T(t,3);++o<u;){var p=e[o];t(p,o,e)&&(n.push(p),a.push(o))}return $o(e,a),n}function fi(e){return e==null?e:su.call(e)}function hc(e,t,n){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&se(e,t,n)?(t=0,n=o):(t=t==null?0:P(t),n=n===i?o:P(n)),Te(e,t,n)):[]}function yc(e,t){return Gn(e,t)}function vc(e,t,n){return Jr(e,t,T(n,2))}function bc(e,t){var n=e==null?0:e.length;if(n){var o=Gn(e,t);if(o<n&&He(e[o],t))return o}return-1}function xc(e,t){return Gn(e,t,!0)}function _c(e,t,n){return Jr(e,t,T(n,2),!0)}function Sc(e,t){var n=e==null?0:e.length;if(n){var o=Gn(e,t,!0)-1;if(He(e[o],t))return o}return-1}function wc(e){return e&&e.length?Yo(e):[]}function Cc(e,t){return e&&e.length?Yo(e,T(t,2)):[]}function Ic(e){var t=e==null?0:e.length;return t?Te(e,1,t):[]}function Lc(e,t,n){return e&&e.length?(t=n||t===i?1:P(t),Te(e,0,t<0?0:t)):[]}function Ac(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:P(t),t=o-t,Te(e,t<0?0:t,o)):[]}function Fc(e,t){return e&&e.length?$n(e,T(t,3),!1,!0):[]}function Tc(e,t){return e&&e.length?$n(e,T(t,3)):[]}var Ec=H(function(e){return pt(re(e,1,J,!0))}),Bc=H(function(e){var t=Ee(e);return J(t)&&(t=i),pt(re(e,1,J,!0),T(t,2))}),Rc=H(function(e){var t=Ee(e);return t=typeof t=="function"?t:i,pt(re(e,1,J,!0),i,t)});function Dc(e){return e&&e.length?pt(e):[]}function Pc(e,t){return e&&e.length?pt(e,T(t,2)):[]}function kc(e,t){return t=typeof t=="function"?t:i,e&&e.length?pt(e,i,t):[]}function mi(e){if(!(e&&e.length))return[];var t=0;return e=ot(e,function(n){if(J(n))return t=ee(n.length,t),!0}),Br(t,function(n){return q(e,Fr(n))})}function Ra(e,t){if(!(e&&e.length))return[];var n=mi(e);return t==null?n:q(n,function(o){return ye(t,i,o)})}var Hc=H(function(e,t){return J(e)?an(e,t):[]}),Mc=H(function(e){return Qr(ot(e,J))}),Oc=H(function(e){var t=Ee(e);return J(t)&&(t=i),Qr(ot(e,J),T(t,2))}),Nc=H(function(e){var t=Ee(e);return t=typeof t=="function"?t:i,Qr(ot(e,J),i,t)}),zc=H(mi);function Wc(e,t){return Jo(e||[],t||[],on)}function Uc(e,t){return Jo(e||[],t||[],un)}var Gc=H(function(e){var t=e.length,n=t>1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ra(e,n)});function Da(e){var t=l(e);return t.__chain__=!0,t}function $c(e,t){return t(e),e}function jn(e,t){return t(e)}var Kc=Ze(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,a=function(u){return Nr(u,e)};return t>1||this.__actions__.length||!(o instanceof O)||!Qe(n)?this.thru(a):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:jn,args:[a],thisArg:i}),new Ae(o,this.__chain__).thru(function(u){return t&&!u.length&&u.push(i),u}))});function Yc(){return Da(this)}function qc(){return new Ae(this.value(),this.__chain__)}function Vc(){this.__values__===i&&(this.__values__=qa(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Xc(){return this}function Jc(e){for(var t,n=this;n instanceof On;){var o=La(n);o.__index__=0,o.__values__=i,t?a.__wrapped__=o:t=o;var a=o;n=n.__wrapped__}return a.__wrapped__=e,t}function Zc(){var e=this.__wrapped__;if(e instanceof O){var t=e;return this.__actions__.length&&(t=new O(this)),t=t.reverse(),t.__actions__.push({func:jn,args:[fi],thisArg:i}),new Ae(t,this.__chain__)}return this.thru(fi)}function Qc(){return Xo(this.__wrapped__,this.__actions__)}var jc=Kn(function(e,t,n){G.call(e,n)?++e[n]:Xe(e,n,1)});function ed(e,t,n){var o=D(e)?lo:$u;return n&&se(e,t,n)&&(t=i),o(e,T(t,3))}function td(e,t){var n=D(e)?ot:Ro;return n(e,T(t,3))}var nd=aa(Aa),rd=aa(Fa);function id(e,t){return re(er(e,t),1)}function od(e,t){return re(er(e,t),ht)}function ad(e,t,n){return n=n===i?1:P(n),re(er(e,t),n)}function Pa(e,t){var n=D(e)?Ie:ut;return n(e,T(t,3))}function ka(e,t){var n=D(e)?Is:Bo;return n(e,T(t,3))}var ld=Kn(function(e,t,n){G.call(e,n)?e[n].push(t):Xe(e,n,[t])});function sd(e,t,n,o){e=ce(e)?e:Ut(e),n=n&&!o?P(n):0;var a=e.length;return n<0&&(n=ee(a+n,0)),or(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Et(e,t,n)>-1}var ud=H(function(e,t,n){var o=-1,a=typeof t=="function",u=ce(e)?g(e.length):[];return ut(e,function(p){u[++o]=a?ye(t,p,n):ln(p,t,n)}),u}),pd=Kn(function(e,t,n){Xe(e,n,t)});function er(e,t){var n=D(e)?q:Oo;return n(e,T(t,3))}function cd(e,t,n,o){return e==null?[]:(D(t)||(t=t==null?[]:[t]),n=o?i:n,D(n)||(n=n==null?[]:[n]),Uo(e,t,n))}var dd=Kn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function fd(e,t,n){var o=D(e)?Lr:co,a=arguments.length<3;return o(e,T(t,4),n,a,ut)}function md(e,t,n){var o=D(e)?Ls:co,a=arguments.length<3;return o(e,T(t,4),n,a,Bo)}function gd(e,t){var n=D(e)?ot:Ro;return n(e,rr(T(t,3)))}function hd(e){var t=D(e)?Ao:sp;return t(e)}function yd(e,t,n){(n?se(e,t,n):t===i)?t=1:t=P(t);var o=D(e)?Nu:up;return o(e,t)}function vd(e){var t=D(e)?zu:cp;return t(e)}function bd(e){if(e==null)return 0;if(ce(e))return or(e)?Rt(e):e.length;var t=oe(e);return t==Re||t==De?e.size:Kr(e).length}function xd(e,t,n){var o=D(e)?Ar:dp;return n&&se(e,t,n)&&(t=i),o(e,T(t,3))}var _d=H(function(e,t){if(e==null)return[];var n=t.length;return n>1&&se(e,t[0],t[1])?t=[]:n>2&&se(t[0],t[1],t[2])&&(t=[t[0]]),Uo(e,re(t,1),[])}),tr=tu||function(){return ne.Date.now()};function Sd(e,t){if(typeof t!="function")throw new Le(v);return e=P(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ha(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Je(e,we,i,i,i,i,t)}function Ma(e,t){var n;if(typeof t!="function")throw new Le(v);return e=P(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var gi=H(function(e,t,n){var o=ae;if(n.length){var a=lt(n,zt(gi));o|=he}return Je(e,o,t,n,a)}),Oa=H(function(e,t,n){var o=ae|Oe;if(n.length){var a=lt(n,zt(Oa));o|=he}return Je(t,o,e,n,a)});function Na(e,t,n){t=n?i:t;var o=Je(e,ge,i,i,i,i,i,t);return o.placeholder=Na.placeholder,o}function za(e,t,n){t=n?i:t;var o=Je(e,$e,i,i,i,i,i,t);return o.placeholder=za.placeholder,o}function Wa(e,t,n){var o,a,u,p,c,f,b=0,x=!1,w=!1,C=!0;if(typeof e!="function")throw new Le(v);t=Be(t)||0,V(n)&&(x=!!n.leading,w="maxWait"in n,u=w?ee(Be(n.maxWait)||0,t):u,C="trailing"in n?!!n.trailing:C);function A(Z){var Me=o,tt=a;return o=a=i,b=Z,p=e.apply(tt,Me),p}function E(Z){return b=Z,c=dn(M,t),x?A(Z):p}function k(Z){var Me=Z-f,tt=Z-b,al=t-Me;return w?ie(al,u-tt):al}function B(Z){var Me=Z-f,tt=Z-b;return f===i||Me>=t||Me<0||w&&tt>=u}function M(){var Z=tr();if(B(Z))return N(Z);c=dn(M,k(Z))}function N(Z){return c=i,C&&o?A(Z):(o=a=i,p)}function _e(){c!==i&&Zo(c),b=0,o=f=a=c=i}function ue(){return c===i?p:N(tr())}function Se(){var Z=tr(),Me=B(Z);if(o=arguments,a=this,f=Z,Me){if(c===i)return E(f);if(w)return Zo(c),c=dn(M,t),A(f)}return c===i&&(c=dn(M,t)),p}return Se.cancel=_e,Se.flush=ue,Se}var wd=H(function(e,t){return Eo(e,1,t)}),Cd=H(function(e,t,n){return Eo(e,Be(t)||0,n)});function Id(e){return Je(e,Lt)}function nr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Le(v);var n=function(){var o=arguments,a=t?t.apply(this,o):o[0],u=n.cache;if(u.has(a))return u.get(a);var p=e.apply(this,o);return n.cache=u.set(a,p)||u,p};return n.cache=new(nr.Cache||Ve),n}nr.Cache=Ve;function rr(e){if(typeof e!="function")throw new Le(v);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ld(e){return Ma(2,e)}var Ad=fp(function(e,t){t=t.length==1&&D(t[0])?q(t[0],ve(T())):q(re(t,1),ve(T()));var n=t.length;return H(function(o){for(var a=-1,u=ie(o.length,n);++a<u;)o[a]=t[a].call(this,o[a]);return ye(e,this,o)})}),hi=H(function(e,t){var n=lt(t,zt(hi));return Je(e,he,i,t,n)}),Ua=H(function(e,t){var n=lt(t,zt(Ua));return Je(e,Ke,i,t,n)}),Fd=Ze(function(e,t){return Je(e,rt,i,i,i,t)});function Td(e,t){if(typeof e!="function")throw new Le(v);return t=t===i?t:P(t),H(e,t)}function Ed(e,t){if(typeof e!="function")throw new Le(v);return t=t==null?0:ee(P(t),0),H(function(n){var o=n[t],a=dt(n,0,t);return o&&at(a,o),ye(e,this,a)})}function Bd(e,t,n){var o=!0,a=!0;if(typeof e!="function")throw new Le(v);return V(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),Wa(e,t,{leading:o,maxWait:t,trailing:a})}function Rd(e){return Ha(e,1)}function Dd(e,t){return hi(ei(t),e)}function Pd(){if(!arguments.length)return[];var e=arguments[0];return D(e)?e:[e]}function kd(e){return Fe(e,U)}function Hd(e,t){return t=typeof t=="function"?t:i,Fe(e,U,t)}function Md(e){return Fe(e,me|U)}function Od(e,t){return t=typeof t=="function"?t:i,Fe(e,me|U,t)}function Nd(e,t){return t==null||To(e,t,te(t))}function He(e,t){return e===t||e!==e&&t!==t}var zd=Xn(Ur),Wd=Xn(function(e,t){return e>=t}),It=ko(function(){return arguments}())?ko:function(e){return X(e)&&G.call(e,"callee")&&!_o.call(e,"callee")},D=g.isArray,Ud=to?ve(to):Ju;function ce(e){return e!=null&&ir(e.length)&&!je(e)}function J(e){return X(e)&&ce(e)}function Gd(e){return e===!0||e===!1||X(e)&&le(e)==Kt}var ft=ru||Ai,$d=no?ve(no):Zu;function Kd(e){return X(e)&&e.nodeType===1&&!fn(e)}function Yd(e){if(e==null)return!0;if(ce(e)&&(D(e)||typeof e=="string"||typeof e.splice=="function"||ft(e)||Wt(e)||It(e)))return!e.length;var t=oe(e);if(t==Re||t==De)return!e.size;if(cn(e))return!Kr(e).length;for(var n in e)if(G.call(e,n))return!1;return!0}function qd(e,t){return sn(e,t)}function Vd(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?sn(e,t,i,n):!!o}function yi(e){if(!X(e))return!1;var t=le(e);return t==hn||t==yl||typeof e.message=="string"&&typeof e.name=="string"&&!fn(e)}function Xd(e){return typeof e=="number"&&wo(e)}function je(e){if(!V(e))return!1;var t=le(e);return t==yn||t==Ti||t==hl||t==bl}function Ga(e){return typeof e=="number"&&e==P(e)}function ir(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=it}function V(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function X(e){return e!=null&&typeof e=="object"}var $a=ro?ve(ro):ju;function Jd(e,t){return e===t||$r(e,t,li(t))}function Zd(e,t,n){return n=typeof n=="function"?n:i,$r(e,t,li(t),n)}function Qd(e){return Ka(e)&&e!=+e}function jd(e){if(Hp(e))throw new R(S);return Ho(e)}function ef(e){return e===null}function tf(e){return e==null}function Ka(e){return typeof e=="number"||X(e)&&le(e)==qt}function fn(e){if(!X(e)||le(e)!=Ye)return!1;var t=Bn(e);if(t===null)return!0;var n=G.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&An.call(n)==Zs}var vi=io?ve(io):ep;function nf(e){return Ga(e)&&e>=-it&&e<=it}var Ya=oo?ve(oo):tp;function or(e){return typeof e=="string"||!D(e)&&X(e)&&le(e)==Xt}function xe(e){return typeof e=="symbol"||X(e)&&le(e)==vn}var Wt=ao?ve(ao):np;function rf(e){return e===i}function of(e){return X(e)&&oe(e)==Jt}function af(e){return X(e)&&le(e)==_l}var lf=Xn(Yr),sf=Xn(function(e,t){return e<=t});function qa(e){if(!e)return[];if(ce(e))return or(e)?Pe(e):pe(e);if(jt&&e[jt])return Ns(e[jt]());var t=oe(e),n=t==Re?Dr:t==De?Cn:Ut;return n(e)}function et(e){if(!e)return e===0?e:0;if(e=Be(e),e===ht||e===-ht){var t=e<0?-1:1;return t*dl}return e===e?e:0}function P(e){var t=et(e),n=t%1;return t===t?n?t-n:t:0}function Va(e){return e?_t(P(e),0,Ne):0}function Be(e){if(typeof e=="number")return e;if(xe(e))return mn;if(V(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=V(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fo(e);var n=Ul.test(e);return n||$l.test(e)?Ss(e.slice(2),n?2:8):Wl.test(e)?mn:+e}function Xa(e){return We(e,de(e))}function uf(e){return e?_t(P(e),-it,it):e===0?e:0}function W(e){return e==null?"":be(e)}var pf=Ot(function(e,t){if(cn(t)||ce(t)){We(t,te(t),e);return}for(var n in t)G.call(t,n)&&on(e,n,t[n])}),Ja=Ot(function(e,t){We(t,de(t),e)}),ar=Ot(function(e,t,n,o){We(t,de(t),e,o)}),cf=Ot(function(e,t,n,o){We(t,te(t),e,o)}),df=Ze(Nr);function ff(e,t){var n=Mt(e);return t==null?n:Fo(n,t)}var mf=H(function(e,t){e=$(e);var n=-1,o=t.length,a=o>2?t[2]:i;for(a&&se(t[0],t[1],a)&&(o=1);++n<o;)for(var u=t[n],p=de(u),c=-1,f=p.length;++c<f;){var b=p[c],x=e[b];(x===i||He(x,Pt[b])&&!G.call(e,b))&&(e[b]=u[b])}return e}),gf=H(function(e){return e.push(i,fa),ye(Za,i,e)});function hf(e,t){return so(e,T(t,3),ze)}function yf(e,t){return so(e,T(t,3),Wr)}function vf(e,t){return e==null?e:zr(e,T(t,3),de)}function bf(e,t){return e==null?e:Do(e,T(t,3),de)}function xf(e,t){return e&&ze(e,T(t,3))}function _f(e,t){return e&&Wr(e,T(t,3))}function Sf(e){return e==null?[]:Wn(e,te(e))}function wf(e){return e==null?[]:Wn(e,de(e))}function bi(e,t,n){var o=e==null?i:St(e,t);return o===i?n:o}function Cf(e,t){return e!=null&&ha(e,t,Yu)}function xi(e,t){return e!=null&&ha(e,t,qu)}var If=sa(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Fn.call(t)),e[t]=n},Si(fe)),Lf=sa(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Fn.call(t)),G.call(e,t)?e[t].push(n):e[t]=[n]},T),Af=H(ln);function te(e){return ce(e)?Lo(e):Kr(e)}function de(e){return ce(e)?Lo(e,!0):rp(e)}function Ff(e,t){var n={};return t=T(t,3),ze(e,function(o,a,u){Xe(n,t(o,a,u),o)}),n}function Tf(e,t){var n={};return t=T(t,3),ze(e,function(o,a,u){Xe(n,a,t(o,a,u))}),n}var Ef=Ot(function(e,t,n){Un(e,t,n)}),Za=Ot(function(e,t,n,o){Un(e,t,n,o)}),Bf=Ze(function(e,t){var n={};if(e==null)return n;var o=!1;t=q(t,function(u){return u=ct(u,e),o||(o=u.length>1),u}),We(e,oi(e),n),o&&(n=Fe(n,me|Gt|U,Cp));for(var a=t.length;a--;)Zr(n,t[a]);return n});function Rf(e,t){return Qa(e,rr(T(t)))}var Df=Ze(function(e,t){return e==null?{}:op(e,t)});function Qa(e,t){if(e==null)return{};var n=q(oi(e),function(o){return[o]});return t=T(t),Go(e,n,function(o,a){return t(o,a[0])})}function Pf(e,t,n){t=ct(t,e);var o=-1,a=t.length;for(a||(a=1,e=i);++o<a;){var u=e==null?i:e[Ue(t[o])];u===i&&(o=a,u=n),e=je(u)?u.call(e):u}return e}function kf(e,t,n){return e==null?e:un(e,t,n)}function Hf(e,t,n,o){return o=typeof o=="function"?o:i,e==null?e:un(e,t,n,o)}var ja=ca(te),el=ca(de);function Mf(e,t,n){var o=D(e),a=o||ft(e)||Wt(e);if(t=T(t,4),n==null){var u=e&&e.constructor;a?n=o?new u:[]:V(e)?n=je(u)?Mt(Bn(e)):{}:n={}}return(a?Ie:ze)(e,function(p,c,f){return t(n,p,c,f)}),n}function Of(e,t){return e==null?!0:Zr(e,t)}function Nf(e,t,n){return e==null?e:Vo(e,t,ei(n))}function zf(e,t,n,o){return o=typeof o=="function"?o:i,e==null?e:Vo(e,t,ei(n),o)}function Ut(e){return e==null?[]:Rr(e,te(e))}function Wf(e){return e==null?[]:Rr(e,de(e))}function Uf(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=Be(n),n=n===n?n:0),t!==i&&(t=Be(t),t=t===t?t:0),_t(Be(e),t,n)}function Gf(e,t,n){return t=et(t),n===i?(n=t,t=0):n=et(n),e=Be(e),Vu(e,t,n)}function $f(e,t,n){if(n&&typeof n!="boolean"&&se(e,t,n)&&(t=n=i),n===i&&(typeof t=="boolean"?(n=t,t=i):typeof e=="boolean"&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=et(e),t===i?(t=e,e=0):t=et(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var a=Co();return ie(e+a*(t-e+_s("1e-"+((a+"").length-1))),t)}return Vr(e,t)}var Kf=Nt(function(e,t,n){return t=t.toLowerCase(),e+(n?tl(t):t)});function tl(e){return _i(W(e).toLowerCase())}function nl(e){return e=W(e),e&&e.replace(Yl,Ps).replace(cs,"")}function Yf(e,t,n){e=W(e),t=be(t);var o=e.length;n=n===i?o:_t(P(n),0,o);var a=n;return n-=t.length,n>=0&&e.slice(n,a)==t}function qf(e){return e=W(e),e&&Ll.test(e)?e.replace(Ri,ks):e}function Vf(e){return e=W(e),e&&Rl.test(e)?e.replace(hr,"\\$&"):e}var Xf=Nt(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Jf=Nt(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Zf=oa("toLowerCase");function Qf(e,t,n){e=W(e),t=P(t);var o=t?Rt(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return Vn(kn(a),n)+e+Vn(Pn(a),n)}function jf(e,t,n){e=W(e),t=P(t);var o=t?Rt(e):0;return t&&o<t?e+Vn(t-o,n):e}function em(e,t,n){e=W(e),t=P(t);var o=t?Rt(e):0;return t&&o<t?Vn(t-o,n)+e:e}function tm(e,t,n){return n||t==null?t=0:t&&(t=+t),lu(W(e).replace(yr,""),t||0)}function nm(e,t,n){return(n?se(e,t,n):t===i)?t=1:t=P(t),Xr(W(e),t)}function rm(){var e=arguments,t=W(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var im=Nt(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function om(e,t,n){return n&&typeof n!="number"&&se(e,t,n)&&(t=n=i),n=n===i?Ne:n>>>0,n?(e=W(e),e&&(typeof t=="string"||t!=null&&!vi(t))&&(t=be(t),!t&&Bt(e))?dt(Pe(e),0,n):e.split(t,n)):[]}var am=Nt(function(e,t,n){return e+(n?" ":"")+_i(t)});function lm(e,t,n){return e=W(e),n=n==null?0:_t(P(n),0,e.length),t=be(t),e.slice(n,n+t.length)==t}function sm(e,t,n){var o=l.templateSettings;n&&se(e,t,n)&&(t=i),e=W(e),t=ar({},t,o,da);var a=ar({},t.imports,o.imports,da),u=te(a),p=Rr(a,u),c,f,b=0,x=t.interpolate||bn,w="__p += '",C=Pr((t.escape||bn).source+"|"+x.source+"|"+(x===Di?zl:bn).source+"|"+(t.evaluate||bn).source+"|$","g"),A="//# sourceURL="+(G.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hs+"]")+`
11
- `;e.replace(C,function(B,M,N,_e,ue,Se){return N||(N=_e),w+=e.slice(b,Se).replace(ql,Hs),M&&(c=!0,w+=`' +
10
+ `)}function Dp(e){return D(e)||It(e)||!!(So&&e&&e[So])}function Qe(e,t){var n=typeof e;return t=t==null?it:t,!!t&&(n=="number"||n!="symbol"&&Kl.test(e))&&e>-1&&e%1==0&&e<t}function se(e,t,n){if(!q(n))return!1;var o=typeof t;return(o=="number"?ce(n)&&Qe(t,n.length):o=="string"&&t in n)?He(n[t],e):!1}function ui(e,t){if(D(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||xe(e)?!0:El.test(e)||!Tl.test(e)||t!=null&&e in $(t)}function Pp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function pi(e){var t=Jn(e),n=l[t];if(typeof n!="function"||!(t in O.prototype))return!1;if(e===n)return!0;var o=ai(n);return!!o&&e===o[0]}function kp(e){return!!vo&&vo in e}var Hp=Ln?je:Ai;function cn(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Pt;return e===n}function va(e){return e===e&&!q(e)}function ba(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==i||e in $(n))}}function Mp(e){var t=nr(e,function(o){return n.size===Q&&n.clear(),o}),n=t.cache;return t}function Op(e,t){var n=e[1],o=t[1],a=n|o,u=a<(ae|Oe|we),p=o==we&&n==me||o==we&&n==rt&&e[7].length<=t[8]||o==(we|rt)&&t[7].length<=t[8]&&n==me;if(!(u||p))return e;o&ae&&(e[2]=t[2],a|=n&ae?0:$t);var c=t[3];if(c){var f=e[3];e[3]=f?ta(f,c,t[4]):c,e[4]=f?lt(e[3],nt):t[4]}return c=t[5],c&&(f=e[5],e[5]=f?na(f,c,t[6]):c,e[6]=f?lt(e[5],nt):t[6]),c=t[7],c&&(e[7]=c),o&we&&(e[8]=e[8]==null?t[8]:ie(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Np(e){var t=[];if(e!=null)for(var n in $(e))t.push(n);return t}function zp(e){return Fn.call(e)}function xa(e,t,n){return t=ee(t===i?e.length-1:t,0),function(){for(var o=arguments,a=-1,u=ee(o.length-t,0),p=h(u);++a<u;)p[a]=o[t+a];a=-1;for(var c=h(t+1);++a<t;)c[a]=o[a];return c[t]=n(p),ye(e,this,c)}}function _a(e,t){return t.length<2?e:St(e,Te(t,0,-1))}function Wp(e,t){for(var n=e.length,o=ie(t.length,n),a=pe(e);o--;){var u=t[o];e[o]=Qe(u,n)?a[u]:i}return e}function ci(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Sa=Ca(Ko),dn=nu||function(e,t){return ne.setTimeout(e,t)},di=Ca(pp);function wa(e,t,n){var o=t+"";return di(e,Rp(o,Up(Tp(o),n)))}function Ca(e){var t=0,n=0;return function(){var o=au(),a=ul-(o-n);if(n=o,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Qn(e,t){var n=-1,o=e.length,a=o-1;for(t=t===i?o:t;++n<t;){var u=qr(n,a),p=e[u];e[u]=e[n],e[n]=p}return e.length=t,e}var Ia=Mp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bl,function(n,o,a,u){t.push(a?u.replace(Nl,"$1"):o||n)}),t});function Ue(e){if(typeof e=="string"||xe(e))return e;var t=e+"";return t=="0"&&1/e==-ht?"-0":t}function Ct(e){if(e!=null){try{return An.call(e)}catch{}try{return e+""}catch{}}return""}function Up(e,t){return Ie(ml,function(n){var o="_."+n[0];t&n[1]&&!Sn(e,o)&&e.push(o)}),e.sort()}function La(e){if(e instanceof O)return e.clone();var t=new Ae(e.__wrapped__,e.__chain__);return t.__actions__=pe(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Gp(e,t,n){(n?se(e,t,n):t===i)?t=1:t=ee(P(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var a=0,u=0,p=h(Pn(o/t));a<o;)p[u++]=Te(e,a,a+=t);return p}function $p(e){for(var t=-1,n=e==null?0:e.length,o=0,a=[];++t<n;){var u=e[t];u&&(a[o++]=u)}return a}function Kp(){var e=arguments.length;if(!e)return[];for(var t=h(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return at(D(n)?pe(n):[n],re(t,1))}var Yp=H(function(e,t){return J(e)?an(e,re(t,1,J,!0)):[]}),Vp=H(function(e,t){var n=Ee(t);return J(n)&&(n=i),J(e)?an(e,re(t,1,J,!0),T(n,2)):[]}),qp=H(function(e,t){var n=Ee(t);return J(n)&&(n=i),J(e)?an(e,re(t,1,J,!0),i,n):[]});function Xp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:P(t),Te(e,t<0?0:t,o)):[]}function Jp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:P(t),t=o-t,Te(e,0,t<0?0:t)):[]}function Zp(e,t){return e&&e.length?$n(e,T(t,3),!0,!0):[]}function Qp(e,t){return e&&e.length?$n(e,T(t,3),!0):[]}function jp(e,t,n,o){var a=e==null?0:e.length;return a?(n&&typeof n!="number"&&se(e,t,n)&&(n=0,o=a),Ku(e,t,n,o)):[]}function Aa(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:P(n);return a<0&&(a=ee(o+a,0)),wn(e,T(t,3),a)}function Fa(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o-1;return n!==i&&(a=P(n),a=n<0?ee(o+a,0):ie(a,o-1)),wn(e,T(t,3),a,!0)}function Ta(e){var t=e==null?0:e.length;return t?re(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?re(e,ht):[]}function tc(e,t){var n=e==null?0:e.length;return n?(t=t===i?1:P(t),re(e,t)):[]}function nc(e){for(var t=-1,n=e==null?0:e.length,o={};++t<n;){var a=e[t];o[a[0]]=a[1]}return o}function Ea(e){return e&&e.length?e[0]:i}function rc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:P(n);return a<0&&(a=ee(o+a,0)),Et(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Te(e,0,-1):[]}var oc=H(function(e){var t=V(e,jr);return t.length&&t[0]===e[0]?Gr(t):[]}),ac=H(function(e){var t=Ee(e),n=V(e,jr);return t===Ee(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Gr(n,T(t,2)):[]}),lc=H(function(e){var t=Ee(e),n=V(e,jr);return t=typeof t=="function"?t:i,t&&n.pop(),n.length&&n[0]===e[0]?Gr(n,i,t):[]});function sc(e,t){return e==null?"":iu.call(e,t)}function Ee(e){var t=e==null?0:e.length;return t?e[t-1]:i}function uc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o;return n!==i&&(a=P(n),a=a<0?ee(o+a,0):ie(a,o-1)),t===t?Us(e,t,a):wn(e,uo,a,!0)}function pc(e,t){return e&&e.length?Wo(e,P(t)):i}var cc=H(Ba);function Ba(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}function dc(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,T(n,2)):e}function fc(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,i,n):e}var gc=Ze(function(e,t){var n=e==null?0:e.length,o=Nr(e,t);return $o(e,V(t,function(a){return Qe(a,n)?+a:a}).sort(ea)),o});function mc(e,t){var n=[];if(!(e&&e.length))return n;var o=-1,a=[],u=e.length;for(t=T(t,3);++o<u;){var p=e[o];t(p,o,e)&&(n.push(p),a.push(o))}return $o(e,a),n}function fi(e){return e==null?e:su.call(e)}function hc(e,t,n){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&se(e,t,n)?(t=0,n=o):(t=t==null?0:P(t),n=n===i?o:P(n)),Te(e,t,n)):[]}function yc(e,t){return Gn(e,t)}function vc(e,t,n){return Jr(e,t,T(n,2))}function bc(e,t){var n=e==null?0:e.length;if(n){var o=Gn(e,t);if(o<n&&He(e[o],t))return o}return-1}function xc(e,t){return Gn(e,t,!0)}function _c(e,t,n){return Jr(e,t,T(n,2),!0)}function Sc(e,t){var n=e==null?0:e.length;if(n){var o=Gn(e,t,!0)-1;if(He(e[o],t))return o}return-1}function wc(e){return e&&e.length?Yo(e):[]}function Cc(e,t){return e&&e.length?Yo(e,T(t,2)):[]}function Ic(e){var t=e==null?0:e.length;return t?Te(e,1,t):[]}function Lc(e,t,n){return e&&e.length?(t=n||t===i?1:P(t),Te(e,0,t<0?0:t)):[]}function Ac(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:P(t),t=o-t,Te(e,t<0?0:t,o)):[]}function Fc(e,t){return e&&e.length?$n(e,T(t,3),!1,!0):[]}function Tc(e,t){return e&&e.length?$n(e,T(t,3)):[]}var Ec=H(function(e){return pt(re(e,1,J,!0))}),Bc=H(function(e){var t=Ee(e);return J(t)&&(t=i),pt(re(e,1,J,!0),T(t,2))}),Rc=H(function(e){var t=Ee(e);return t=typeof t=="function"?t:i,pt(re(e,1,J,!0),i,t)});function Dc(e){return e&&e.length?pt(e):[]}function Pc(e,t){return e&&e.length?pt(e,T(t,2)):[]}function kc(e,t){return t=typeof t=="function"?t:i,e&&e.length?pt(e,i,t):[]}function gi(e){if(!(e&&e.length))return[];var t=0;return e=ot(e,function(n){if(J(n))return t=ee(n.length,t),!0}),Br(t,function(n){return V(e,Fr(n))})}function Ra(e,t){if(!(e&&e.length))return[];var n=gi(e);return t==null?n:V(n,function(o){return ye(t,i,o)})}var Hc=H(function(e,t){return J(e)?an(e,t):[]}),Mc=H(function(e){return Qr(ot(e,J))}),Oc=H(function(e){var t=Ee(e);return J(t)&&(t=i),Qr(ot(e,J),T(t,2))}),Nc=H(function(e){var t=Ee(e);return t=typeof t=="function"?t:i,Qr(ot(e,J),i,t)}),zc=H(gi);function Wc(e,t){return Jo(e||[],t||[],on)}function Uc(e,t){return Jo(e||[],t||[],un)}var Gc=H(function(e){var t=e.length,n=t>1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ra(e,n)});function Da(e){var t=l(e);return t.__chain__=!0,t}function $c(e,t){return t(e),e}function jn(e,t){return t(e)}var Kc=Ze(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,a=function(u){return Nr(u,e)};return t>1||this.__actions__.length||!(o instanceof O)||!Qe(n)?this.thru(a):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:jn,args:[a],thisArg:i}),new Ae(o,this.__chain__).thru(function(u){return t&&!u.length&&u.push(i),u}))});function Yc(){return Da(this)}function Vc(){return new Ae(this.value(),this.__chain__)}function qc(){this.__values__===i&&(this.__values__=Va(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Xc(){return this}function Jc(e){for(var t,n=this;n instanceof On;){var o=La(n);o.__index__=0,o.__values__=i,t?a.__wrapped__=o:t=o;var a=o;n=n.__wrapped__}return a.__wrapped__=e,t}function Zc(){var e=this.__wrapped__;if(e instanceof O){var t=e;return this.__actions__.length&&(t=new O(this)),t=t.reverse(),t.__actions__.push({func:jn,args:[fi],thisArg:i}),new Ae(t,this.__chain__)}return this.thru(fi)}function Qc(){return Xo(this.__wrapped__,this.__actions__)}var jc=Kn(function(e,t,n){G.call(e,n)?++e[n]:Xe(e,n,1)});function ed(e,t,n){var o=D(e)?lo:$u;return n&&se(e,t,n)&&(t=i),o(e,T(t,3))}function td(e,t){var n=D(e)?ot:Ro;return n(e,T(t,3))}var nd=aa(Aa),rd=aa(Fa);function id(e,t){return re(er(e,t),1)}function od(e,t){return re(er(e,t),ht)}function ad(e,t,n){return n=n===i?1:P(n),re(er(e,t),n)}function Pa(e,t){var n=D(e)?Ie:ut;return n(e,T(t,3))}function ka(e,t){var n=D(e)?Is:Bo;return n(e,T(t,3))}var ld=Kn(function(e,t,n){G.call(e,n)?e[n].push(t):Xe(e,n,[t])});function sd(e,t,n,o){e=ce(e)?e:Ut(e),n=n&&!o?P(n):0;var a=e.length;return n<0&&(n=ee(a+n,0)),or(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Et(e,t,n)>-1}var ud=H(function(e,t,n){var o=-1,a=typeof t=="function",u=ce(e)?h(e.length):[];return ut(e,function(p){u[++o]=a?ye(t,p,n):ln(p,t,n)}),u}),pd=Kn(function(e,t,n){Xe(e,n,t)});function er(e,t){var n=D(e)?V:Oo;return n(e,T(t,3))}function cd(e,t,n,o){return e==null?[]:(D(t)||(t=t==null?[]:[t]),n=o?i:n,D(n)||(n=n==null?[]:[n]),Uo(e,t,n))}var dd=Kn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function fd(e,t,n){var o=D(e)?Lr:co,a=arguments.length<3;return o(e,T(t,4),n,a,ut)}function gd(e,t,n){var o=D(e)?Ls:co,a=arguments.length<3;return o(e,T(t,4),n,a,Bo)}function md(e,t){var n=D(e)?ot:Ro;return n(e,rr(T(t,3)))}function hd(e){var t=D(e)?Ao:sp;return t(e)}function yd(e,t,n){(n?se(e,t,n):t===i)?t=1:t=P(t);var o=D(e)?Nu:up;return o(e,t)}function vd(e){var t=D(e)?zu:cp;return t(e)}function bd(e){if(e==null)return 0;if(ce(e))return or(e)?Rt(e):e.length;var t=oe(e);return t==Re||t==De?e.size:Kr(e).length}function xd(e,t,n){var o=D(e)?Ar:dp;return n&&se(e,t,n)&&(t=i),o(e,T(t,3))}var _d=H(function(e,t){if(e==null)return[];var n=t.length;return n>1&&se(e,t[0],t[1])?t=[]:n>2&&se(t[0],t[1],t[2])&&(t=[t[0]]),Uo(e,re(t,1),[])}),tr=tu||function(){return ne.Date.now()};function Sd(e,t){if(typeof t!="function")throw new Le(v);return e=P(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ha(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Je(e,we,i,i,i,i,t)}function Ma(e,t){var n;if(typeof t!="function")throw new Le(v);return e=P(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var mi=H(function(e,t,n){var o=ae;if(n.length){var a=lt(n,zt(mi));o|=he}return Je(e,o,t,n,a)}),Oa=H(function(e,t,n){var o=ae|Oe;if(n.length){var a=lt(n,zt(Oa));o|=he}return Je(t,o,e,n,a)});function Na(e,t,n){t=n?i:t;var o=Je(e,me,i,i,i,i,i,t);return o.placeholder=Na.placeholder,o}function za(e,t,n){t=n?i:t;var o=Je(e,$e,i,i,i,i,i,t);return o.placeholder=za.placeholder,o}function Wa(e,t,n){var o,a,u,p,c,f,b=0,x=!1,w=!1,C=!0;if(typeof e!="function")throw new Le(v);t=Be(t)||0,q(n)&&(x=!!n.leading,w="maxWait"in n,u=w?ee(Be(n.maxWait)||0,t):u,C="trailing"in n?!!n.trailing:C);function A(Z){var Me=o,tt=a;return o=a=i,b=Z,p=e.apply(tt,Me),p}function E(Z){return b=Z,c=dn(M,t),x?A(Z):p}function k(Z){var Me=Z-f,tt=Z-b,al=t-Me;return w?ie(al,u-tt):al}function B(Z){var Me=Z-f,tt=Z-b;return f===i||Me>=t||Me<0||w&&tt>=u}function M(){var Z=tr();if(B(Z))return N(Z);c=dn(M,k(Z))}function N(Z){return c=i,C&&o?A(Z):(o=a=i,p)}function _e(){c!==i&&Zo(c),b=0,o=f=a=c=i}function ue(){return c===i?p:N(tr())}function Se(){var Z=tr(),Me=B(Z);if(o=arguments,a=this,f=Z,Me){if(c===i)return E(f);if(w)return Zo(c),c=dn(M,t),A(f)}return c===i&&(c=dn(M,t)),p}return Se.cancel=_e,Se.flush=ue,Se}var wd=H(function(e,t){return Eo(e,1,t)}),Cd=H(function(e,t,n){return Eo(e,Be(t)||0,n)});function Id(e){return Je(e,Lt)}function nr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Le(v);var n=function(){var o=arguments,a=t?t.apply(this,o):o[0],u=n.cache;if(u.has(a))return u.get(a);var p=e.apply(this,o);return n.cache=u.set(a,p)||u,p};return n.cache=new(nr.Cache||qe),n}nr.Cache=qe;function rr(e){if(typeof e!="function")throw new Le(v);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ld(e){return Ma(2,e)}var Ad=fp(function(e,t){t=t.length==1&&D(t[0])?V(t[0],ve(T())):V(re(t,1),ve(T()));var n=t.length;return H(function(o){for(var a=-1,u=ie(o.length,n);++a<u;)o[a]=t[a].call(this,o[a]);return ye(e,this,o)})}),hi=H(function(e,t){var n=lt(t,zt(hi));return Je(e,he,i,t,n)}),Ua=H(function(e,t){var n=lt(t,zt(Ua));return Je(e,Ke,i,t,n)}),Fd=Ze(function(e,t){return Je(e,rt,i,i,i,t)});function Td(e,t){if(typeof e!="function")throw new Le(v);return t=t===i?t:P(t),H(e,t)}function Ed(e,t){if(typeof e!="function")throw new Le(v);return t=t==null?0:ee(P(t),0),H(function(n){var o=n[t],a=dt(n,0,t);return o&&at(a,o),ye(e,this,a)})}function Bd(e,t,n){var o=!0,a=!0;if(typeof e!="function")throw new Le(v);return q(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),Wa(e,t,{leading:o,maxWait:t,trailing:a})}function Rd(e){return Ha(e,1)}function Dd(e,t){return hi(ei(t),e)}function Pd(){if(!arguments.length)return[];var e=arguments[0];return D(e)?e:[e]}function kd(e){return Fe(e,U)}function Hd(e,t){return t=typeof t=="function"?t:i,Fe(e,U,t)}function Md(e){return Fe(e,ge|U)}function Od(e,t){return t=typeof t=="function"?t:i,Fe(e,ge|U,t)}function Nd(e,t){return t==null||To(e,t,te(t))}function He(e,t){return e===t||e!==e&&t!==t}var zd=Xn(Ur),Wd=Xn(function(e,t){return e>=t}),It=ko(function(){return arguments}())?ko:function(e){return X(e)&&G.call(e,"callee")&&!_o.call(e,"callee")},D=h.isArray,Ud=to?ve(to):Ju;function ce(e){return e!=null&&ir(e.length)&&!je(e)}function J(e){return X(e)&&ce(e)}function Gd(e){return e===!0||e===!1||X(e)&&le(e)==Kt}var ft=ru||Ai,$d=no?ve(no):Zu;function Kd(e){return X(e)&&e.nodeType===1&&!fn(e)}function Yd(e){if(e==null)return!0;if(ce(e)&&(D(e)||typeof e=="string"||typeof e.splice=="function"||ft(e)||Wt(e)||It(e)))return!e.length;var t=oe(e);if(t==Re||t==De)return!e.size;if(cn(e))return!Kr(e).length;for(var n in e)if(G.call(e,n))return!1;return!0}function Vd(e,t){return sn(e,t)}function qd(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?sn(e,t,i,n):!!o}function yi(e){if(!X(e))return!1;var t=le(e);return t==hn||t==yl||typeof e.message=="string"&&typeof e.name=="string"&&!fn(e)}function Xd(e){return typeof e=="number"&&wo(e)}function je(e){if(!q(e))return!1;var t=le(e);return t==yn||t==Ti||t==hl||t==bl}function Ga(e){return typeof e=="number"&&e==P(e)}function ir(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=it}function q(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function X(e){return e!=null&&typeof e=="object"}var $a=ro?ve(ro):ju;function Jd(e,t){return e===t||$r(e,t,li(t))}function Zd(e,t,n){return n=typeof n=="function"?n:i,$r(e,t,li(t),n)}function Qd(e){return Ka(e)&&e!=+e}function jd(e){if(Hp(e))throw new R(S);return Ho(e)}function ef(e){return e===null}function tf(e){return e==null}function Ka(e){return typeof e=="number"||X(e)&&le(e)==Vt}function fn(e){if(!X(e)||le(e)!=Ye)return!1;var t=Bn(e);if(t===null)return!0;var n=G.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&An.call(n)==Zs}var vi=io?ve(io):ep;function nf(e){return Ga(e)&&e>=-it&&e<=it}var Ya=oo?ve(oo):tp;function or(e){return typeof e=="string"||!D(e)&&X(e)&&le(e)==Xt}function xe(e){return typeof e=="symbol"||X(e)&&le(e)==vn}var Wt=ao?ve(ao):np;function rf(e){return e===i}function of(e){return X(e)&&oe(e)==Jt}function af(e){return X(e)&&le(e)==_l}var lf=Xn(Yr),sf=Xn(function(e,t){return e<=t});function Va(e){if(!e)return[];if(ce(e))return or(e)?Pe(e):pe(e);if(jt&&e[jt])return Ns(e[jt]());var t=oe(e),n=t==Re?Dr:t==De?Cn:Ut;return n(e)}function et(e){if(!e)return e===0?e:0;if(e=Be(e),e===ht||e===-ht){var t=e<0?-1:1;return t*dl}return e===e?e:0}function P(e){var t=et(e),n=t%1;return t===t?n?t-n:t:0}function qa(e){return e?_t(P(e),0,Ne):0}function Be(e){if(typeof e=="number")return e;if(xe(e))return gn;if(q(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=q(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fo(e);var n=Ul.test(e);return n||$l.test(e)?Ss(e.slice(2),n?2:8):Wl.test(e)?gn:+e}function Xa(e){return We(e,de(e))}function uf(e){return e?_t(P(e),-it,it):e===0?e:0}function W(e){return e==null?"":be(e)}var pf=Ot(function(e,t){if(cn(t)||ce(t)){We(t,te(t),e);return}for(var n in t)G.call(t,n)&&on(e,n,t[n])}),Ja=Ot(function(e,t){We(t,de(t),e)}),ar=Ot(function(e,t,n,o){We(t,de(t),e,o)}),cf=Ot(function(e,t,n,o){We(t,te(t),e,o)}),df=Ze(Nr);function ff(e,t){var n=Mt(e);return t==null?n:Fo(n,t)}var gf=H(function(e,t){e=$(e);var n=-1,o=t.length,a=o>2?t[2]:i;for(a&&se(t[0],t[1],a)&&(o=1);++n<o;)for(var u=t[n],p=de(u),c=-1,f=p.length;++c<f;){var b=p[c],x=e[b];(x===i||He(x,Pt[b])&&!G.call(e,b))&&(e[b]=u[b])}return e}),mf=H(function(e){return e.push(i,fa),ye(Za,i,e)});function hf(e,t){return so(e,T(t,3),ze)}function yf(e,t){return so(e,T(t,3),Wr)}function vf(e,t){return e==null?e:zr(e,T(t,3),de)}function bf(e,t){return e==null?e:Do(e,T(t,3),de)}function xf(e,t){return e&&ze(e,T(t,3))}function _f(e,t){return e&&Wr(e,T(t,3))}function Sf(e){return e==null?[]:Wn(e,te(e))}function wf(e){return e==null?[]:Wn(e,de(e))}function bi(e,t,n){var o=e==null?i:St(e,t);return o===i?n:o}function Cf(e,t){return e!=null&&ha(e,t,Yu)}function xi(e,t){return e!=null&&ha(e,t,Vu)}var If=sa(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Fn.call(t)),e[t]=n},Si(fe)),Lf=sa(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Fn.call(t)),G.call(e,t)?e[t].push(n):e[t]=[n]},T),Af=H(ln);function te(e){return ce(e)?Lo(e):Kr(e)}function de(e){return ce(e)?Lo(e,!0):rp(e)}function Ff(e,t){var n={};return t=T(t,3),ze(e,function(o,a,u){Xe(n,t(o,a,u),o)}),n}function Tf(e,t){var n={};return t=T(t,3),ze(e,function(o,a,u){Xe(n,a,t(o,a,u))}),n}var Ef=Ot(function(e,t,n){Un(e,t,n)}),Za=Ot(function(e,t,n,o){Un(e,t,n,o)}),Bf=Ze(function(e,t){var n={};if(e==null)return n;var o=!1;t=V(t,function(u){return u=ct(u,e),o||(o=u.length>1),u}),We(e,oi(e),n),o&&(n=Fe(n,ge|Gt|U,Cp));for(var a=t.length;a--;)Zr(n,t[a]);return n});function Rf(e,t){return Qa(e,rr(T(t)))}var Df=Ze(function(e,t){return e==null?{}:op(e,t)});function Qa(e,t){if(e==null)return{};var n=V(oi(e),function(o){return[o]});return t=T(t),Go(e,n,function(o,a){return t(o,a[0])})}function Pf(e,t,n){t=ct(t,e);var o=-1,a=t.length;for(a||(a=1,e=i);++o<a;){var u=e==null?i:e[Ue(t[o])];u===i&&(o=a,u=n),e=je(u)?u.call(e):u}return e}function kf(e,t,n){return e==null?e:un(e,t,n)}function Hf(e,t,n,o){return o=typeof o=="function"?o:i,e==null?e:un(e,t,n,o)}var ja=ca(te),el=ca(de);function Mf(e,t,n){var o=D(e),a=o||ft(e)||Wt(e);if(t=T(t,4),n==null){var u=e&&e.constructor;a?n=o?new u:[]:q(e)?n=je(u)?Mt(Bn(e)):{}:n={}}return(a?Ie:ze)(e,function(p,c,f){return t(n,p,c,f)}),n}function Of(e,t){return e==null?!0:Zr(e,t)}function Nf(e,t,n){return e==null?e:qo(e,t,ei(n))}function zf(e,t,n,o){return o=typeof o=="function"?o:i,e==null?e:qo(e,t,ei(n),o)}function Ut(e){return e==null?[]:Rr(e,te(e))}function Wf(e){return e==null?[]:Rr(e,de(e))}function Uf(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=Be(n),n=n===n?n:0),t!==i&&(t=Be(t),t=t===t?t:0),_t(Be(e),t,n)}function Gf(e,t,n){return t=et(t),n===i?(n=t,t=0):n=et(n),e=Be(e),qu(e,t,n)}function $f(e,t,n){if(n&&typeof n!="boolean"&&se(e,t,n)&&(t=n=i),n===i&&(typeof t=="boolean"?(n=t,t=i):typeof e=="boolean"&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=et(e),t===i?(t=e,e=0):t=et(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var a=Co();return ie(e+a*(t-e+_s("1e-"+((a+"").length-1))),t)}return qr(e,t)}var Kf=Nt(function(e,t,n){return t=t.toLowerCase(),e+(n?tl(t):t)});function tl(e){return _i(W(e).toLowerCase())}function nl(e){return e=W(e),e&&e.replace(Yl,Ps).replace(cs,"")}function Yf(e,t,n){e=W(e),t=be(t);var o=e.length;n=n===i?o:_t(P(n),0,o);var a=n;return n-=t.length,n>=0&&e.slice(n,a)==t}function Vf(e){return e=W(e),e&&Ll.test(e)?e.replace(Ri,ks):e}function qf(e){return e=W(e),e&&Rl.test(e)?e.replace(hr,"\\$&"):e}var Xf=Nt(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Jf=Nt(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Zf=oa("toLowerCase");function Qf(e,t,n){e=W(e),t=P(t);var o=t?Rt(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return qn(kn(a),n)+e+qn(Pn(a),n)}function jf(e,t,n){e=W(e),t=P(t);var o=t?Rt(e):0;return t&&o<t?e+qn(t-o,n):e}function eg(e,t,n){e=W(e),t=P(t);var o=t?Rt(e):0;return t&&o<t?qn(t-o,n)+e:e}function tg(e,t,n){return n||t==null?t=0:t&&(t=+t),lu(W(e).replace(yr,""),t||0)}function ng(e,t,n){return(n?se(e,t,n):t===i)?t=1:t=P(t),Xr(W(e),t)}function rg(){var e=arguments,t=W(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ig=Nt(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function og(e,t,n){return n&&typeof n!="number"&&se(e,t,n)&&(t=n=i),n=n===i?Ne:n>>>0,n?(e=W(e),e&&(typeof t=="string"||t!=null&&!vi(t))&&(t=be(t),!t&&Bt(e))?dt(Pe(e),0,n):e.split(t,n)):[]}var ag=Nt(function(e,t,n){return e+(n?" ":"")+_i(t)});function lg(e,t,n){return e=W(e),n=n==null?0:_t(P(n),0,e.length),t=be(t),e.slice(n,n+t.length)==t}function sg(e,t,n){var o=l.templateSettings;n&&se(e,t,n)&&(t=i),e=W(e),t=ar({},t,o,da);var a=ar({},t.imports,o.imports,da),u=te(a),p=Rr(a,u),c,f,b=0,x=t.interpolate||bn,w="__p += '",C=Pr((t.escape||bn).source+"|"+x.source+"|"+(x===Di?zl:bn).source+"|"+(t.evaluate||bn).source+"|$","g"),A="//# sourceURL="+(G.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hs+"]")+`
11
+ `;e.replace(C,function(B,M,N,_e,ue,Se){return N||(N=_e),w+=e.slice(b,Se).replace(Vl,Hs),M&&(c=!0,w+=`' +
12
12
  __e(`+M+`) +
13
13
  '`),ue&&(f=!0,w+=`';
14
14
  `+ue+`;
@@ -24,5 +24,5 @@ __p += '`),N&&(w+=`' +
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
26
  `)+w+`return __p
27
- }`;var k=il(function(){return z(u,A+"return "+w).apply(i,p)});if(k.source=w,yi(k))throw k;return k}function um(e){return W(e).toLowerCase()}function pm(e){return W(e).toUpperCase()}function cm(e,t,n){if(e=W(e),e&&(n||t===i))return fo(e);if(!e||!(t=be(t)))return e;var o=Pe(e),a=Pe(t),u=mo(o,a),p=go(o,a)+1;return dt(o,u,p).join("")}function dm(e,t,n){if(e=W(e),e&&(n||t===i))return e.slice(0,yo(e)+1);if(!e||!(t=be(t)))return e;var o=Pe(e),a=go(o,Pe(t))+1;return dt(o,0,a).join("")}function fm(e,t,n){if(e=W(e),e&&(n||t===i))return e.replace(yr,"");if(!e||!(t=be(t)))return e;var o=Pe(e),a=mo(o,Pe(t));return dt(o,a).join("")}function mm(e,t){var n=gt,o=ll;if(V(t)){var a="separator"in t?t.separator:a;n="length"in t?P(t.length):n,o="omission"in t?be(t.omission):o}e=W(e);var u=e.length;if(Bt(e)){var p=Pe(e);u=p.length}if(n>=u)return e;var c=n-Rt(o);if(c<1)return o;var f=p?dt(p,0,c).join(""):e.slice(0,c);if(a===i)return f+o;if(p&&(c+=f.length-c),vi(a)){if(e.slice(c).search(a)){var b,x=f;for(a.global||(a=Pr(a.source,W(Pi.exec(a))+"g")),a.lastIndex=0;b=a.exec(x);)var w=b.index;f=f.slice(0,w===i?c:w)}}else if(e.indexOf(be(a),c)!=c){var C=f.lastIndexOf(a);C>-1&&(f=f.slice(0,C))}return f+o}function gm(e){return e=W(e),e&&Il.test(e)?e.replace(Bi,Gs):e}var hm=Nt(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),_i=oa("toUpperCase");function rl(e,t,n){return e=W(e),t=n?i:t,t===i?Os(e)?Ys(e):Ts(e):e.match(t)||[]}var il=H(function(e,t){try{return ye(e,i,t)}catch(n){return yi(n)?n:new R(n)}}),ym=Ze(function(e,t){return Ie(t,function(n){n=Ue(n),Xe(e,n,gi(e[n],e))}),e});function vm(e){var t=e==null?0:e.length,n=T();return e=t?q(e,function(o){if(typeof o[1]!="function")throw new Le(v);return[n(o[0]),o[1]]}):[],H(function(o){for(var a=-1;++a<t;){var u=e[a];if(ye(u[0],this,o))return ye(u[1],this,o)}})}function bm(e){return Gu(Fe(e,me))}function Si(e){return function(){return e}}function xm(e,t){return e==null||e!==e?t:e}var _m=la(),Sm=la(!0);function fe(e){return e}function wi(e){return Mo(typeof e=="function"?e:Fe(e,me))}function wm(e){return No(Fe(e,me))}function Cm(e,t){return zo(e,Fe(t,me))}var Im=H(function(e,t){return function(n){return ln(n,e,t)}}),Lm=H(function(e,t){return function(n){return ln(e,n,t)}});function Ci(e,t,n){var o=te(t),a=Wn(t,o);n==null&&!(V(t)&&(a.length||!o.length))&&(n=t,t=e,e=this,a=Wn(t,te(t)));var u=!(V(n)&&"chain"in n)||!!n.chain,p=je(e);return Ie(a,function(c){var f=t[c];e[c]=f,p&&(e.prototype[c]=function(){var b=this.__chain__;if(u||b){var x=e(this.__wrapped__),w=x.__actions__=pe(this.__actions__);return w.push({func:f,args:arguments,thisArg:e}),x.__chain__=b,x}return f.apply(e,at([this.value()],arguments))})}),e}function Am(){return ne._===this&&(ne._=Qs),this}function Ii(){}function Fm(e){return e=P(e),H(function(t){return Wo(t,e)})}var Tm=ni(q),Em=ni(lo),Bm=ni(Ar);function ol(e){return ui(e)?Fr(Ue(e)):ap(e)}function Rm(e){return function(t){return e==null?i:St(e,t)}}var Dm=ua(),Pm=ua(!0);function Li(){return[]}function Ai(){return!1}function km(){return{}}function Hm(){return""}function Mm(){return!0}function Om(e,t){if(e=P(e),e<1||e>it)return[];var n=Ne,o=ie(e,Ne);t=T(t),e-=Ne;for(var a=Br(o,t);++n<e;)t(n);return a}function Nm(e){return D(e)?q(e,Ue):xe(e)?[e]:pe(Ia(W(e)))}function zm(e){var t=++Js;return W(e)+t}var Wm=qn(function(e,t){return e+t},0),Um=ri("ceil"),Gm=qn(function(e,t){return e/t},1),$m=ri("floor");function Km(e){return e&&e.length?zn(e,fe,Ur):i}function Ym(e,t){return e&&e.length?zn(e,T(t,2),Ur):i}function qm(e){return po(e,fe)}function Vm(e,t){return po(e,T(t,2))}function Xm(e){return e&&e.length?zn(e,fe,Yr):i}function Jm(e,t){return e&&e.length?zn(e,T(t,2),Yr):i}var Zm=qn(function(e,t){return e*t},1),Qm=ri("round"),jm=qn(function(e,t){return e-t},0);function eg(e){return e&&e.length?Er(e,fe):0}function tg(e,t){return e&&e.length?Er(e,T(t,2)):0}return l.after=Sd,l.ary=Ha,l.assign=pf,l.assignIn=Ja,l.assignInWith=ar,l.assignWith=cf,l.at=df,l.before=Ma,l.bind=gi,l.bindAll=ym,l.bindKey=Oa,l.castArray=Pd,l.chain=Da,l.chunk=Gp,l.compact=$p,l.concat=Kp,l.cond=vm,l.conforms=bm,l.constant=Si,l.countBy=jc,l.create=ff,l.curry=Na,l.curryRight=za,l.debounce=Wa,l.defaults=mf,l.defaultsDeep=gf,l.defer=wd,l.delay=Cd,l.difference=Yp,l.differenceBy=qp,l.differenceWith=Vp,l.drop=Xp,l.dropRight=Jp,l.dropRightWhile=Zp,l.dropWhile=Qp,l.fill=jp,l.filter=td,l.flatMap=id,l.flatMapDeep=od,l.flatMapDepth=ad,l.flatten=Ta,l.flattenDeep=ec,l.flattenDepth=tc,l.flip=Id,l.flow=_m,l.flowRight=Sm,l.fromPairs=nc,l.functions=Sf,l.functionsIn=wf,l.groupBy=ld,l.initial=ic,l.intersection=oc,l.intersectionBy=ac,l.intersectionWith=lc,l.invert=If,l.invertBy=Lf,l.invokeMap=ud,l.iteratee=wi,l.keyBy=pd,l.keys=te,l.keysIn=de,l.map=er,l.mapKeys=Ff,l.mapValues=Tf,l.matches=wm,l.matchesProperty=Cm,l.memoize=nr,l.merge=Ef,l.mergeWith=Za,l.method=Im,l.methodOf=Lm,l.mixin=Ci,l.negate=rr,l.nthArg=Fm,l.omit=Bf,l.omitBy=Rf,l.once=Ld,l.orderBy=cd,l.over=Tm,l.overArgs=Ad,l.overEvery=Em,l.overSome=Bm,l.partial=hi,l.partialRight=Ua,l.partition=dd,l.pick=Df,l.pickBy=Qa,l.property=ol,l.propertyOf=Rm,l.pull=cc,l.pullAll=Ba,l.pullAllBy=dc,l.pullAllWith=fc,l.pullAt=mc,l.range=Dm,l.rangeRight=Pm,l.rearg=Fd,l.reject=gd,l.remove=gc,l.rest=Td,l.reverse=fi,l.sampleSize=yd,l.set=kf,l.setWith=Hf,l.shuffle=vd,l.slice=hc,l.sortBy=_d,l.sortedUniq=wc,l.sortedUniqBy=Cc,l.split=om,l.spread=Ed,l.tail=Ic,l.take=Lc,l.takeRight=Ac,l.takeRightWhile=Fc,l.takeWhile=Tc,l.tap=$c,l.throttle=Bd,l.thru=jn,l.toArray=qa,l.toPairs=ja,l.toPairsIn=el,l.toPath=Nm,l.toPlainObject=Xa,l.transform=Mf,l.unary=Rd,l.union=Ec,l.unionBy=Bc,l.unionWith=Rc,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=kc,l.unset=Of,l.unzip=mi,l.unzipWith=Ra,l.update=Nf,l.updateWith=zf,l.values=Ut,l.valuesIn=Wf,l.without=Hc,l.words=rl,l.wrap=Dd,l.xor=Mc,l.xorBy=Oc,l.xorWith=Nc,l.zip=zc,l.zipObject=Wc,l.zipObjectDeep=Uc,l.zipWith=Gc,l.entries=ja,l.entriesIn=el,l.extend=Ja,l.extendWith=ar,Ci(l,l),l.add=Wm,l.attempt=il,l.camelCase=Kf,l.capitalize=tl,l.ceil=Um,l.clamp=Uf,l.clone=kd,l.cloneDeep=Md,l.cloneDeepWith=Od,l.cloneWith=Hd,l.conformsTo=Nd,l.deburr=nl,l.defaultTo=xm,l.divide=Gm,l.endsWith=Yf,l.eq=He,l.escape=qf,l.escapeRegExp=Vf,l.every=ed,l.find=nd,l.findIndex=Aa,l.findKey=hf,l.findLast=rd,l.findLastIndex=Fa,l.findLastKey=yf,l.floor=$m,l.forEach=Pa,l.forEachRight=ka,l.forIn=vf,l.forInRight=bf,l.forOwn=xf,l.forOwnRight=_f,l.get=bi,l.gt=zd,l.gte=Wd,l.has=Cf,l.hasIn=xi,l.head=Ea,l.identity=fe,l.includes=sd,l.indexOf=rc,l.inRange=Gf,l.invoke=Af,l.isArguments=It,l.isArray=D,l.isArrayBuffer=Ud,l.isArrayLike=ce,l.isArrayLikeObject=J,l.isBoolean=Gd,l.isBuffer=ft,l.isDate=$d,l.isElement=Kd,l.isEmpty=Yd,l.isEqual=qd,l.isEqualWith=Vd,l.isError=yi,l.isFinite=Xd,l.isFunction=je,l.isInteger=Ga,l.isLength=ir,l.isMap=$a,l.isMatch=Jd,l.isMatchWith=Zd,l.isNaN=Qd,l.isNative=jd,l.isNil=tf,l.isNull=ef,l.isNumber=Ka,l.isObject=V,l.isObjectLike=X,l.isPlainObject=fn,l.isRegExp=vi,l.isSafeInteger=nf,l.isSet=Ya,l.isString=or,l.isSymbol=xe,l.isTypedArray=Wt,l.isUndefined=rf,l.isWeakMap=of,l.isWeakSet=af,l.join=sc,l.kebabCase=Xf,l.last=Ee,l.lastIndexOf=uc,l.lowerCase=Jf,l.lowerFirst=Zf,l.lt=lf,l.lte=sf,l.max=Km,l.maxBy=Ym,l.mean=qm,l.meanBy=Vm,l.min=Xm,l.minBy=Jm,l.stubArray=Li,l.stubFalse=Ai,l.stubObject=km,l.stubString=Hm,l.stubTrue=Mm,l.multiply=Zm,l.nth=pc,l.noConflict=Am,l.noop=Ii,l.now=tr,l.pad=Qf,l.padEnd=jf,l.padStart=em,l.parseInt=tm,l.random=$f,l.reduce=fd,l.reduceRight=md,l.repeat=nm,l.replace=rm,l.result=Pf,l.round=Qm,l.runInContext=d,l.sample=hd,l.size=bd,l.snakeCase=im,l.some=xd,l.sortedIndex=yc,l.sortedIndexBy=vc,l.sortedIndexOf=bc,l.sortedLastIndex=xc,l.sortedLastIndexBy=_c,l.sortedLastIndexOf=Sc,l.startCase=am,l.startsWith=lm,l.subtract=jm,l.sum=eg,l.sumBy=tg,l.template=sm,l.times=Om,l.toFinite=et,l.toInteger=P,l.toLength=Va,l.toLower=um,l.toNumber=Be,l.toSafeInteger=uf,l.toString=W,l.toUpper=pm,l.trim=cm,l.trimEnd=dm,l.trimStart=fm,l.truncate=mm,l.unescape=gm,l.uniqueId=zm,l.upperCase=hm,l.upperFirst=_i,l.each=Pa,l.eachRight=ka,l.first=Ea,Ci(l,function(){var e={};return ze(l,function(t,n){G.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=m,Ie(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Ie(["drop","take"],function(e,t){O.prototype[e]=function(n){n=n===i?1:ee(P(n),0);var o=this.__filtered__&&!t?new O(this):this.clone();return o.__filtered__?o.__takeCount__=ie(n,o.__takeCount__):o.__views__.push({size:ie(n,Ne),type:e+(o.__dir__<0?"Right":"")}),o},O.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Ie(["filter","map","takeWhile"],function(e,t){var n=t+1,o=n==Fi||n==cl;O.prototype[e]=function(a){var u=this.clone();return u.__iteratees__.push({iteratee:T(a,3),type:n}),u.__filtered__=u.__filtered__||o,u}}),Ie(["head","last"],function(e,t){var n="take"+(t?"Right":"");O.prototype[e]=function(){return this[n](1).value()[0]}}),Ie(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");O.prototype[e]=function(){return this.__filtered__?new O(this):this[n](1)}}),O.prototype.compact=function(){return this.filter(fe)},O.prototype.find=function(e){return this.filter(e).head()},O.prototype.findLast=function(e){return this.reverse().find(e)},O.prototype.invokeMap=H(function(e,t){return typeof e=="function"?new O(this):this.map(function(n){return ln(n,e,t)})}),O.prototype.reject=function(e){return this.filter(rr(T(e)))},O.prototype.slice=function(e,t){e=P(e);var n=this;return n.__filtered__&&(e>0||t<0)?new O(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=P(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},O.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},O.prototype.toArray=function(){return this.take(Ne)},ze(O.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=l[o?"take"+(t=="last"?"Right":""):t],u=o||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,c=o?[1]:arguments,f=p instanceof O,b=c[0],x=f||D(p),w=function(M){var N=a.apply(l,at([M],c));return o&&C?N[0]:N};x&&n&&typeof b=="function"&&b.length!=1&&(f=x=!1);var C=this.__chain__,A=!!this.__actions__.length,E=u&&!C,k=f&&!A;if(!u&&x){p=k?p:new O(this);var B=e.apply(p,c);return B.__actions__.push({func:jn,args:[w],thisArg:i}),new Ae(B,C)}return E&&k?e.apply(this,c):(B=this.thru(w),E?o?B.value()[0]:B.value():B)})}),Ie(["pop","push","shift","sort","splice","unshift"],function(e){var t=In[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(o&&!this.__chain__){var u=this.value();return t.apply(D(u)?u:[],a)}return this[n](function(p){return t.apply(D(p)?p:[],a)})}}),ze(O.prototype,function(e,t){var n=l[t];if(n){var o=n.name+"";G.call(Ht,o)||(Ht[o]=[]),Ht[o].push({name:t,func:n})}}),Ht[Yn(i,Oe).name]=[{name:"wrapper",func:i}],O.prototype.clone=mu,O.prototype.reverse=gu,O.prototype.value=hu,l.prototype.at=Kc,l.prototype.chain=Yc,l.prototype.commit=qc,l.prototype.next=Vc,l.prototype.plant=Jc,l.prototype.reverse=Zc,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qc,l.prototype.first=l.prototype.head,jt&&(l.prototype[jt]=Xc),l},Dt=qs();yt?((yt.exports=Dt)._=Dt,wr._=Dt):ne._=Dt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"AadharcardText",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"Card",const:"card"},{title:"CheckBox",const:"CheckBox"},{title:"Container",const:"WrapperSection"},{title:"DataGrid",const:"DataGrid"},{title:"Date",const:"Date"},{title:"Download File",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"File",const:"FileInput"},{title:"Graph",const:"Graph"},{title:"Input Slider",const:"InputSlider"},{title:"Label",const:"Box"},{title:"LeaderBoard",const:"LeaderBoard"},{title:"MultipleSelect",const:"MultipleSelect"},{title:"PanCardText",const:"PanCardText"},{title:"Popup Container",const:"PopUp"},{title:"ProgressBar",const:"ProgressBar"},{title:"ProgressBar Card",const:"ProgressBarCard"},{title:"Select",const:"Select"},{title:"Slider",const:"Slider"},{title:"SpeedoMeter",const:"SpeedoMeter"},{title:"Stepper Container",const:"Stepper"},{title:"Radio",const:"Radio"},{title:"Rank",const:"Rank"},{title:"Rank Card",const:"RankCard"},{title:"Runner Boy Progress Bar",const:"RunnerBoyProgressBar"},{title:"Table",const:"Table"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Text Area",const:"TextArea"},{title:"Timer",const:"Timer"},{title:"Upload File",const:"UploadFile"}]},orientation:{oneOf:[{title:"Horizontal",const:"horizontal"},{title:"Vertical",const:"vertical"}]},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},layout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},cardLayout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},value:{type:"array",items:{type:"object",properties:{label:{type:"string"},value:{type:"string"}}}},columns:{type:"array",items:{type:"object",properties:{header:{type:"string"},accessorKey:{type:"string"},widgetType:{type:"string"}}}},events:{type:"array",items:{type:"object",properties:{eventType:{type:"string"},configType:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},Table_Download_Keys_Name:{type:"array",items:{type:"object",properties:{KeyName:{type:"string"}}}},sizeHolder:{type:"array",items:{type:"object",properties:{keyName:{type:"string"},value:{type:"string"}}}},legendLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},InputFormatingAndMasking:{type:"array",items:{type:"object",properties:{formatElement:{type:"string"}}}},validation:{type:"array",items:{type:"object",properties:{componentName:{type:"string"},validationType:{type:"string",oneOf:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"}]},validationValue:{type:"string"}}}},buttonType:{type:"string",oneOf:[{title:"Button",const:"Button"},{title:"IconButton",const:"IconButton"},{title:"HybridButton",const:"ButtonWithIconAndText"}]},defaultStyle:{type:"string",oneOf:[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]},graphType:{type:"string",oneOf:[{title:"Bar Graph",const:"BarGraph"},{title:"Stack Bar Graph",const:"StackBarGraph"},{title:"Line Graph",const:"LineGraph"},{title:"Pie Graph",const:"PieGraph"},{title:"Horizontal Bar Graph",const:"HorizontalBarGraph"}]},iconName:{type:"string",oneOf:[{title:"Search Icon",const:"SearchIcon"},{title:"Edit Icon",const:"EditIcon"},{title:"Add Icon",const:"AddIcon"},{title:"Send Icon",const:"SendIcon"},{title:"Approve Icon",const:"ApproveIcon"},{title:"RejectIcon",const:"RejectIcon"},{title:"Back Icon",const:"BackIcon"},{title:"Back Icon Second ",const:"BackIcon2"},{title:"Pending Icon",const:"PendingIcon"},{title:"View Icon",const:"ViewIcon"},{title:"Notification Icon",const:"NotificationIcon"},{title:"Person Icon",const:"PersonIcon"},{title:"Report Icon",const:"ReportIcon"},{title:"Error Icon",const:"ErrorIcon"},{title:"Refresh Icon",const:"RefreshIcon"},{title:"Download Icon",const:"DownloadIcon"},{title:"Exception Icon",const:"ExceptionIcon"}]},color:{type:"string",oneOf:[{title:"Primary",const:"primary"},{title:"Secondary",const:"secondary"},{title:"Error",const:"error"},{title:"Success",const:"success"},{title:"Info",const:"info"}]},name:{type:"string"},label:{type:"string"}},required:["name"]},componentBasicUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/Component",options:{widget:"Box"},config:{layout:{xs:12,sm:12,md:2},main:{heading:"Component"},style:{float:"left"}}},{type:"Control",scope:"#/properties/pageName",options:{widget:"Box"},config:{layout:{xs:7,sm:7,md:9},main:{heading:" "},style:{float:"right",width:"auto",fontSize:"12px",color:"gray",paddingTop:"10px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:{xs:2,sm:2,md:.5},main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"TabLayout",config:{main:{tabLabels:["Core"],defaultStyle:!0,id:"component"}},elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type"}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}}]}}}]}]},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Ok",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"okHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Save & Exit",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6}]},CoreSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type",type:"text"}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name"}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}}]}}}]},EventSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{divider:!0},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Event Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"eventAddHandler",tooltipMessage:"Back"},style:{float:"right"}}},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]}]},EmptyBox={type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}},cardLayout={type:"Control",scope:"#/properties/cardLayout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}}]}}},getArrayControl=(r,s,i)=>({type:"Control",scope:`#/properties/${r}`,layout:11.5,options:{elementLabelProp:s,detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/${s}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:i||"Labels for Tab"}}},EmptyBox]}}}),sizeHolder=getArrayControl("sizeHolder","keyName","Component Name");sizeHolder.options.detail.elements[1]={type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Size"}}};const getInputField=(r,s)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:s}}}),getRadioInputField=(r,s,i)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:s,options:i}}}),getTextArea=(r,s,i,m)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"TextArea"},config:{layout:m||12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:s,minRows:8,hideButton:i}}}),getSelectField=(r,s,i)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:s,type:"text"}}}),GraphSection={type:"HorizontalLayout",elements:[]},buildPropertiesSection=function(r){let s=_.cloneDeep(GraphSection);switch(r){case"InputSlider":s.elements=[getInputField("max","Max Limit"),getInputField("step","Step"),getInputField("min","Min Limit"),getRadioInputField("limitToMax","Applly Max. Limit",["YES","NO"])];break;case"DataGrid":s.elements=[getRadioInputField("divider","Use Header divider",["YES","NO"]),getInputField("elevation","Card Elevation"),getInputField("height","Grid height"),getInputField("justifyContent","justifyContent"),cardLayout];break;case"Stepper":s.elements=[getRadioInputField("resetButton","Reset Button",["YES","NO"]),getRadioInputField("defaultButtonAvailable","Use Default Buttons ",["YES","NO"]),getInputField("resetText","Reset Text"),getInputField("completeText","Complete Text"),getSelectField("orientation","Orientation Type"),getArrayControl("sectionLabels","label")];break;case"PopUp":s.elements=[getRadioInputField("fullScreen","FullScreen",["YES","NO"]),getRadioInputField("fullWidth","FullWidth",["YES","NO"]),getInputField("maxWidth","Max. Width"),EmptyBox];break;case"Text":s.elements=[getInputField("placeholder","Placeholder"),EmptyBox,getArrayControl("InputFormatingAndMasking","formatElement","Format Element")];break;case"TextArea":s.elements=[getInputField("placeholder","Placeholder"),EmptyBox];break;case"SpeedoMeter":s.elements=[getInputField("segments","Segments Count"),getInputField("heading","Container Heading"),getInputField("heading","Container Heading"),getInputField("speedoCaption","Speedometer Caption"),getInputField("width","Speedometer Width")];break;case"RankCard":s.elements=[getInputField("rank","Rank"),getInputField("image","Image Url"),getInputField("title","Card Title"),getInputField("description","Card Description")];break;case"LeaderBoard":s.elements=[getInputField("valueLabel","Value Label"),getInputField("firstImage","First Image url"),getInputField("secondImage","Second Image url"),getInputField("thirdImage","Third Image url"),getTextArea("functionCode","Write Compare Code",!1)];break;case"CardSlider":s.elements=[getInputField("heading","Heading"),getInputField("iconName","Icon Name")];break;case"ProgressBar":case"ProgressBarCard":s.elements=[getInputField("heading","Heading"),getInputField("bottomLabel_1","First BottomLabel"),getInputField("bottomLabel_2","Second BottomLabel"),getInputField("bottomLabel_3","Third BottomLabel")];break;case"card":s.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("description","Description"),EmptyBox];break;case"Button":s.elements=[getSelectField("buttonType","Button Type"),getSelectField("iconName","Icon Name"),getSelectField("color","Color"),getInputField("tooltipMessage","Tooltip Message"),getSelectField("defaultStyle","Default Style"),EmptyBox];break;case"Graph":s.elements=[getInputField("height","Height"),getInputField("heading","Heading"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getInputField("bottomLabel","Bottom Label"),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")];break;case"WrapperSection":s.elements=[getRadioInputField("divider","Divider",["YES","No"]),EmptyBox];break;case"TabSection":s.elements=[getRadioInputField("verticalOrientation","Vertical Orientation",["YES","NO"]),getRadioInputField("lazyLoad","Lazy Load",["YES","NO"]),getArrayControl("sectionLabels","label")];break;case"Table":case"LazyLoadingTable":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("SelectionAvailable","Selection Available",["YES","NO"]),getRadioInputField("ColumnResizingAvailable","ColumnResizing Available",["YES","NO"]),getRadioInputField("DragAvailable","Drag Available",["YES","NO"]),getRadioInputField("downloadAllData","Download All Data",["YES","NO"]),getInputField("selectKey","Selection Key"),getArrayControl("Table_Download_Keys_Name","KeyName","Table Key Name"),sizeHolder];break;case"Radio":s.elements=[getArrayControl("sectionLabels","label","Options Of Radio")];break;case"Select":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"])];break;case"MultipleSelect":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),EmptyBox];break}return s},StyleSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/style",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:12,lg:12},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:"JSON Style",minRows:8,hideButton:!0}}}]},TableSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Components Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"widgetAddClickHandler",tooltipMessage:"Add New"},style:{float:"right"}}},{type:"Control",scope:"#/properties/elements",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"name",header:"Name"},{accessorKey:"type",header:"Type"},{header:"Edit Record",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"EditIcon",color:"primary",onClick:"editComponents",tooltipMessage:"Reject This Record"}}}},{header:"Delete",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",onClick:"deleteComponents",tooltipMessage:"Reject This Record"}}}}]}]}]},ValueTab={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/value",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Label"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}}]},ValidationSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/validation",layout:11.5,options:{elementLabelProp:"validationType",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/validationType",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Type"}}},{type:"Control",scope:"#/properties/validationValue",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Value"}}}]}}}]};var buildConfig=r=>{const s=_.cloneDeep(r);let i={};return s.pageName&&delete s.pageName,s.eventsSelected&&delete s.eventsSelected,(s.type==="Table"||s.type==="WrapperSection"||s.type==="TabSection")&&(i.elements=s.elements||[],s.elements&&delete s.elements),i.events=s.events||[],s.events&&delete s.events,i={...s,...i},i};const createLayoutFormat=r=>{if(_.isEmpty(r))return{xs:11,sm:11,md:5.5,lg:5.5};let s={};return r.map(i=>{s[i.key||"xs"]=+i.value||5.5}),s},flatObjectValueInArray=r=>{const s=Object.keys(r[0])[0];return r.map(m=>m[s])},clearFromLocalStorage=()=>{localStorage.removeItem("pageFormdata")},getNavigationHistory=(r,s)=>{if(s){let i=r.name;const m=s.split("."),h=[];return m.map((S,v)=>{if(v===0){h.push(S);return}h.push(`${h[v-1]}.${S}`)}),h.map(S=>{const v=_.get(r,S);v?i=i+` > ${(v==null?void 0:v.name)||(v==null?void 0:v.eventType)}`:i=i+" > NewComponent"}),{pageName:i}}},saveFormdataInLocalStorage=(r,s)=>{let i;if(s){const m=getFormdataFromLocalStorage();i=_.set(m,s,buildConfig(r))}else i=buildConfig(r);return localStorage.setItem("pageFormdata",JSON.stringify(i)),i},getFormdataFromLocalStorage=r=>{const s=localStorage.getItem("pageFormdata")?JSON.parse(localStorage.getItem("pageFormdata")):void 0;let i;return r&&(i=_.get(s,r),i={...i,...getNavigationHistory(s,r)}),i||(i=getNavigationHistory(s,r)),i||s};async function saveHandler(r,s,i,m){var v,I;(v=r.searchParams)==null||v.get("id");const h=(I=r.searchParams)==null?void 0:I.get("path");saveFormdataInLocalStorage(r.ctx.core.data,h);const S=JSON.parse(localStorage.getItem("pageFormdata"));if(_.isEmpty(r.ctx.core.errors))try{const F=await i(r,s,S);navigateHandler(r,!0,m?`/${m}?id=${F.id}`:"/PageMasterRecords")}catch{navigateHandler(r,!1)}}const navigateHandler=(r,s,i)=>{s?(localStorage.removeItem("pageFormdata"),r.navigate(i||-1),r.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(r.setValidation("ValidateAndShow"),r.setNotify({Fail:!0,FailMessage:"Errors on Page"}))};function okHandler(r){var i;const s=(i=r.searchParams)==null?void 0:i.get("path");console.log(r.ctx.core.errors),_.isEmpty(r.ctx.core.errors)?(saveFormdataInLocalStorage(r.ctx.core.data,s),r.navigate(-1),r.setNotify({SuccessMessage:"Save Successfully",Success:!0})):(r.setValidation("ValidateAndShow"),r.setNotify({Fail:!0,FailMessage:"Errors on Page"}))}const sectionLabels={Select:["Core","Properties","Value","style","Event","Validation"],MultipleSelect:["Core","Properties","Value","style","Event","Validation"],Table:["Core","Components","Properties","style","Event","Validation"],LeaderBoard:["Core","Components","Properties","style","Event","Validation"],WrapperSection:["Core","Components","Properties","style","Validation"],TabSection:["Core","Components","Properties","style","Validation"],SpeedoMeter:["Core","Properties","style","Event","Validation"],card:["Core","Properties","style","Event","Validation"],UploadFile:["Core","style","Event","Validation"],Graph:["Core","Properties","style","Event","Validation"],DownloadFile:["Core","style","Event","Validation"],Box:["Core","style","Event","Validation"],Properties:["Core","Properties","style","Event","Validation"],ProgressBarCard:["Core","Properties","style","Event","Validation"],RankCard:["Core","Properties","style","Event","Validation"],Slider:["Core","Components","style","Event","Validation"],Timer:["Core","style","Event","Validation"],Rank:["Core","style","Event","Validation"],Button:["Core","Properties","style","Event","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","style","Event","Validation"],Text:["Core","Properties","style","Event","Validation"],TextArea:["Core","Properties","style","Event","Validation"],PopUp:["Core","Components","Properties","style"],Stepper:["Core","Components","Properties","Event","style"],DataGrid:["Core","Components","Properties","Event","style"],InputSlider:["Core","Properties","style","Event","Validation"]},refreshPage=(r,s)=>{var m;const i=_.cloneDeep(componentBasicUiSchema);if(r){const h={Core:CoreSection,Value:ValueTab,style:StyleSection,Event:EventSection,Components:TableSection,Properties:buildPropertiesSection(r),Validation:ValidationSection},S=(m=sectionLabels[r])==null?void 0:m.map(v=>h[v]);i.elements[1].config.main.tabLabels=sectionLabels[r]||["Core","style","Event","Validation"],i.elements[1].elements=S||[CoreSection,StyleSection,EventSection,ValidationSection]}s.setUiSchema(i)};var Component=(r,s,i,m)=>({setPage:async function(){const h=await this.getFormdata();r.setFormdata(h);const S=this.getSchema();r.setSchema(S),this.refreshPage(h==null?void 0:h.type,r)},refreshPage,getFormdata:function(){var S;const h=(S=r.searchParams)==null?void 0:S.get("path");return getFormdataFromLocalStorage(h)},getSchema:function(){return ComponentSchema},okHandler:()=>okHandler(r),saveHandler:async()=>await saveHandler(r,m,i,"PageMaster"),onChange:function(){var h,S,v,I;((h=r==null?void 0:r.formData)==null?void 0:h.type)!==((S=r==null?void 0:r.newData)==null?void 0:S.type)&&((v=r==null?void 0:r.newData)==null?void 0:v.type)!==void 0&&this.refreshPage((I=r==null?void 0:r.newData)==null?void 0:I.type,r)},editComponents:function(){var I,F,Q;const h=s.path.split(".")[1],S=(I=r.searchParams)==null?void 0:I.get("path"),v=(F=r.searchParams)==null?void 0:F.get("id");if(saveFormdataInLocalStorage(r.ctx.core.data,S),S){const me=`${(Q=r.searchParams)==null?void 0:Q.get("path")}.elements[${h}]`;r.searchParams.set("path",me),r.setSearchParams(r.searchParams),this.setPage()}else r.navigate(`/Component?path=${`elements[${h}]`}&id=${v}`)},deleteComponents:function(){var F;const h=(F=r.searchParams)==null?void 0:F.get("path"),S=s.path.split(".")[1];r.formData.elements.splice(S,1);const v=saveFormdataInLocalStorage(r.ctx.core.data,h),I=h?_.get(v,h):v;r.setFormdata(I)},deleteEvent:function(){var I;const h=(I=r.searchParams)==null?void 0:I.get("path"),S=s.path.split(".")[1];r.formData.events.splice(S,1);const v=saveFormdataInLocalStorage(r.ctx.core.data,h);r.setFormdata(_.get(v,h))},widgetAddClickHandler:function(){var v;Array.isArray(r.formData.elements)||(r.formData.elements=[]);const h=(v=r.searchParams)==null?void 0:v.get("path");saveFormdataInLocalStorage(r.ctx.core.data,h);const S=`${h}.elements[${r.formData.elements.length}]`;r.searchParams.set("path",S),r.setSearchParams(r.searchParams),this.setPage()},eventEditHandler:function(){var F,Q;const h=s.path.split(".")[1],S=(F=r.searchParams)==null?void 0:F.get("path"),v=(Q=r.searchParams)==null?void 0:Q.get("id");saveFormdataInLocalStorage(r.ctx.core.data,S);const I=`${S}.events[${h}]`;r.navigate(`/ComponentEvents?path=${I}&id=${v}`)},eventAddHandler:function(){var I,F;const h=(I=r.searchParams)==null?void 0:I.get("path"),S=(F=r.searchParams)==null?void 0:F.get("id");Array.isArray(r.formData.events)||(r.formData.events=[]),saveFormdataInLocalStorage(r.ctx.core.data,h);const v=`${h}.events[${r.formData.events.length}]`;r.navigate(`/ComponentEvents?path=${v}&id=${S}`)},backHandler:function(){r.navigate(-1)}}),pageMaster=r=>{const{store:s,dynamicData:i,config:m,submitHandler:h,service:S}=r;return{setPage:async function(){const v=await this.getFormdata();s.setFormdata(v);const I=await this.getUiSchema(),F=await this.getSchema();s.setSchema(F),s.setUiSchema(I)},getFormdata:function(){var I;(I=s.searchParams)==null||I.get("id");const v=getFormdataFromLocalStorage();return v||(saveFormdataInLocalStorage(m),m)},getUiSchema:function(){return PageMasterUiSchema},getSchema:()=>PageMasterSchema,backHandler:()=>{localStorage.removeItem("pageFormdata"),s.navigate("/PageMasterRecords")},onAddClickHandler:function(){var F;const v=(F=s.searchParams)==null?void 0:F.get("id");Array.isArray(s.formData.elements)||(s.formData.elements=[]);const I=saveFormdataInLocalStorage(s.ctx.core.data);v?s.navigate(`/Component?path=${`elements[${I==null?void 0:I.elements.length}]`}&id=${v}`):s.navigate(`/Component?path=${`elements[${I==null?void 0:I.elements.length}]`}`)},saveHandler:async()=>await saveHandler(s,S,h),Edit_Components:Component(s,i,h,S).editComponents,Delete_Components:Component(s,i,h,S).deleteComponents,eventAddHandler:function(){var F;const v=(F=s.searchParams)==null?void 0:F.get("id");Array.isArray(s.formData.events)||(s.formData.events=[]),saveFormdataInLocalStorage(s.ctx.core.data);const I=`events[${s.formData.events.length}]`;s.navigate(`/ComponentEvents?path=${I}&id=${v}`)},editEvent:function(){var Q;const v=i.path.split(".")[1],I=(Q=s.searchParams)==null?void 0:Q.get("id");saveFormdataInLocalStorage(s.ctx.core.data);const F=`events[${v}]`;s.navigate(`/ComponentEvents?path=${F}&id=${I}`)},deleteEvent:function(){const v=i.path.split(".")[1];s.formData.events.splice(v,1);const I=saveFormdataInLocalStorage(s.ctx.core.data);s.setFormdata(I)}}};const EventSchema={type:"object",properties:{headers:{type:"array",items:{type:"object",properties:{headers_key:{type:"string"},headers_value:{type:"string"}}}},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},refreshElements:{type:"array",items:{type:"object",properties:{value:{type:"string"}}}},eventType:{type:"string",oneOf:[{title:"Click Event",const:"onClick"},{title:"Load Event",const:"onLoad"},{title:"Change Event",const:"onChange"},{title:"Mount Event",const:"onMount"},{title:"Success",const:"Success"},{title:"onStart",const:"onStart"},{title:"File Upload Event",const:"onUpload"},{title:"Back Event",const:"onBack"},{title:"Next Event",const:"onNext"},{title:"File Download Event",const:"onDownload"},{title:"Fail",const:"Fail"}]},Handler:{type:"string",oneOf:[{title:"Custom",const:"custom"},{title:"Api",const:"api"},{title:"Inbuilt Function",const:"inBuiltFunction"},{title:"Refresh",const:"refresh"}]},inBuiltFunctionType:{type:"string",oneOf:[{title:"RankProvider",const:"RankProvider"},{title:"Download File",const:"downloadFile"},{title:"Download",const:"download"}]},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}}},required:["eventType","Handler"]},EventUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/Component",options:{widget:"Box"},config:{layout:{xs:12,sm:12,md:2},main:{heading:"Component"},style:{float:"left"}}},{type:"Control",scope:"#/properties/pageName",options:{widget:"Box"},config:{layout:{xs:7,sm:7,md:9},main:{heading:" "},style:{float:"right",width:"auto",fontSize:"12px",color:"gray",paddingTop:"10px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:{xs:2,sm:2,md:.5},main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"TabLayout",config:{main:{tabLabels:["Core","Response Event"],defaultStyle:!0,id:"event"}},elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/eventType",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Event Type",type:"text"}}},getSelectField("Handler","Handler")]},{type:"WrapperLayout",config:{main:{divider:!0},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/heading",options:{widget:"Box"},config:{layout:8,main:{heading:"Response Event"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/AddButton",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"addEvent",tooltipMessage:"Back"},style:{float:"right"}}},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]}]},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Ok",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"okHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Save & Exit",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6}]},APISection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/method",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Method",type:"text"}}},{type:"Control",scope:"#/properties/path",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Path",type:"text",multiple:!1,options:[]}}},{type:"Control",scope:"#/properties/headers",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}},{type:"Control",scope:"#/properties/body",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}},getTextArea("apiBody","Transformer",!0,12)]},refreshSectionUiSchema={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/refreshElements",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}}]}}}]};var event=(r,s,i,m,h)=>({setPage:async function(){const S=await this.getFormData();r.setFormdata(S);const v=await this.getSchema();r.setSchema(v),this.refreshPage(S.Handler,r)},refreshPage:(S,v)=>{const I=_.cloneDeep(EventUiSchema),F=_.cloneDeep(EventSchema);S&&(S==="custom"?(I.elements[1].elements[0].elements[2]=getTextArea("eventCode","Write Custom Code",!1),F.required=["eventType","Handler","eventCode"]):S==="api"?(I.elements[1].elements[0].elements[2]=APISection,F.required=["eventType","Handler","method","path"]):S==="inBuiltFunction"?(I.elements[1].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name"),I.elements[1].elements[0].elements[3]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0,{xs:12,sm:12,md:6}),F.required=["eventType","Handler","inBuiltFunctionType"]):S==="refresh"&&(I.elements[1].elements[0].elements[2]=refreshSectionUiSchema,F.properties.refreshElements.required=["value"],F.properties.refreshElements.items.required=["value"],F.required=["eventType","Handler","refreshElements"])),h&&(F.properties.inBuiltFunctionType.oneOf=[...F.properties.inBuiltFunctionType.oneOf,...h]),v.setSchema(F),v.setUiSchema(I)},getFormData:Component(r,s,i,m).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>EventSchema,okHandler:()=>okHandler(r),saveHandler:async()=>await saveHandler(r,m,i,"PageMaster"),onChange:function(){var S,v,I;((S=r==null?void 0:r.formData)==null?void 0:S.Handler)!==((v=r==null?void 0:r.newData)==null?void 0:v.Handler)&&((I=r==null?void 0:r.newData)==null?void 0:I.Handler)!==void 0&&this.refreshPage(r.newData.Handler||r.formdata.Handler,r)},addEvent:function(){var I,F,Q;const S=(I=r.searchParams)==null?void 0:I.get("path");Array.isArray(r.formData.events)||(r.formData.events=[]),saveFormdataInLocalStorage(r.ctx.core.data,S);const v=`${S}.events[${(Q=(F=r.formData)==null?void 0:F.events)==null?void 0:Q.length}]`;r.searchParams.set("path",v),r.setSearchParams(r.searchParams),this.setPage()},editEvent:function(){var F;const S=s.path.split(".")[1],v=(F=r.searchParams)==null?void 0:F.get("path");saveFormdataInLocalStorage(r.ctx.core.data,v);const I=`${v}.events[${S}]`;r.searchParams.set("path",I),r.setSearchParams(r.searchParams),this.setPage()},deleteEvent:Component(r,s,i,m).deleteEvent,backHandler:function(){r.navigate(-1)}});const downloadFile$1=r=>{const s=r.name.split("."),i=r.data,m=window.atob(i);let h;h=new File([m],s[s.length-1]);const S=URL.createObjectURL(h),v=document.createElement("a");v.href=s[s.length-1]==="pdf"?"data:application/octet-stream;base64,"+i:S,v.download=`${r.name}`,document.body.appendChild(v),v.click(),URL.revokeObjectURL(S),document.body.removeChild(v)},doDownload=(r,s)=>{let i=`${s.defaults.baseURL}/${r.path}`;r!=null&&r.params&&Object.keys(r==null?void 0:r.params).map((S,v)=>{i=i+`${v===0?"?":"&"}${S}=${r==null?void 0:r.params[S]}`});const m=document.createElement("a");m.href=i,document.body.appendChild(m),m.click(),m.parentNode.removeChild(m)},executeEvents=async r=>{var m,h,S;let s=[],i=null;try{if(!await shouldEventExecute(r))return{response:void 0,events:void 0};i=await executeEventsHandler(r),s=(m=r.config)==null?void 0:m.events.filter(Q=>Q.eventType==="Success")}catch{const I=(S=(h=r.config)==null?void 0:h.events)==null?void 0:S.filter(Q=>Q.eventType==="Fail");s=(I==null?void 0:I.length)>0?I:[]}if((s==null?void 0:s.length)>0)for(const v of s)await executeEvents({...r,config:v,parentEventOutput:i});return i};async function executeEventsHandler(r){var s,i,m;if(r.config.Handler==="api")return await executeApiEventHandler(r);if(r.config.Handler==="inBuiltFunction")return await executeInBuiltFunctionHandler(r);if(r.config.Handler==="custom")return await executeCustomHandler(r);if(r.config.Handler==="refresh")return await executeRefreshHandler(r);if(r.config.Handler==="mergeFormdata")return await mergeFormdata(r.parentEventOutput,r.componentName,r.config,r.store,r.service);if(r.config.Handler==="onBackHandler")return(s=r.store.functionParameters)==null?void 0:s.handleBack();if(r.config.Handler==="onNextHandler")return(i=r.store.functionParameters)==null?void 0:i.handleNext();if(r.config.Handler==="onResetHandler")return(m=r.store.functionParameters)==null?void 0:m.handleReset()}async function executeRefreshHandler(r){const s=getRefreshElements(r.config,r.eventGroups);for(const i of s)for(const m of r.eventGroups.onLoad[i])await executeEvents({...r,config:m,componentName:i})}async function executeApiEventHandler(r){var v;const s={...(v=r.userValue)==null?void 0:v.payload},i={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},{body:m,headers:h}=await buildApiPayload(r.config,s,i,r.store,r.dynamicData,r.userValue,r.service);return await r.service[r.config.method](r.config.path,m,h&&{headers:h})}async function executeInBuiltFunctionHandler(params){let parameter={};if(params.config.funcParametersCode){const makeFunc=eval(params.config.funcParametersCode);parameter=makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service)}params.serviceHolder[params.config.inBuiltFunctionType](parameter,params.service)}async function executeCustomHandler(params){const makeFunc=eval(params.config.eventCode),response=await makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName);return response}async function mergeFormdata(r,s,i,m,h){i.type==="Select"&&!(_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data))?m.setSchema(S=>{var v;return{...S,properties:{...S.properties,[s]:{...(v=S.properties)==null?void 0:v[s],oneOf:r.data}}}}):i.type==="MultipleSelect"&&!(_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data))?m.setSchema(S=>{var v;return{...S,properties:{...S.properties,[s]:{...(v=S.properties)==null?void 0:v[s],type:"array",items:{oneOf:r==null?void 0:r.data}}}}}):i.type==="page"?_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data)||m.setFormdata(S=>({...S,...r==null?void 0:r.data})):r&&(m.setFormdata(S=>{var v;return{...S,[s]:i.lazyLoading?(v=r==null?void 0:r.data)==null?void 0:v.data:r.data}}),await asyncOperation())}const buildBodyFormat=(r,s,i)=>{const m={...i==null?void 0:i.payload};return r.map(h=>{var S,v;if(typeof(h==null?void 0:h.value)!="string")m[h.key]=h.value;else if((S=h==null?void 0:h.value)!=null&&S.startsWith("$userValue")){const I=h.value.substring(11);m[h.key]=_.get(i,I)}else if((v=h==null?void 0:h.value)!=null&&v.startsWith("$")){const I=h.value.substring(1);m[h.key]=_.get(s,I)}else m[h.key]=h.value}),m},buildHeadersFormat=r=>{const s={"X-Requested-With":"XMLHttpRequest"};return r.map(i=>{s[i.key]=i.value}),s};async function shouldEventExecute(r){var i,m;const s=(m=(i=r.config)==null?void 0:i.events)==null?void 0:m.filter(h=>h.eventType==="onStart");return(s==null?void 0:s.length)>0?await executeEventsHandler({...r,config:s[0]}):!0}async function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var r,s;if(compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((s=(r=store==null?void 0:store.ctx)==null?void 0:r.core)==null?void 0:s.data)||store.formData,userValue)}),compConfig.apiBody){const makeFunc=eval(compConfig.apiBody),data=await makeFunc(store,dynamicData,userValue,body);body=data}return{body,headers}}function getRefreshElements(r,s){var m;let i=[];return((m=r==null?void 0:r.refreshElements)==null?void 0:m.length)>0?i=r.refreshElements.map(h=>h.value):s!=null&&s.onLoad&&(i=Object.keys(s==null?void 0:s.onLoad),i.push(i[0])),console.log(i),i}function asyncOperation(){return new Promise((r,s)=>{setTimeout(()=>{r("Operation completed successfully!"),s(new Error("Operation failed!"))},50)})}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},extractEvents=r=>{function s(i){i.events&&i.events.forEach(m=>{var S;i.type&&(compType=i.type),eventGroups[m.eventType]||(eventGroups[m.eventType]={}),eventGroups[m.eventType][i.name]||(eventGroups[m.eventType][i.name]=[]);const h=(S=m==null?void 0:m.events)==null?void 0:S.find(v=>v.eventType==="Success");!h&&m.eventType==="onLoad"&&m.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:r.lazyLoading==="YES"}),!h&&(m.eventType==="onBack"||m.eventType==="onNext"||m.eventType==="onReset")&&m.events.push({Handler:`${m.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:r.lazyLoading==="YES"}),eventGroups[m.eventType][i.name].push({...m,type:compType})})}return s(r),r!=null&&r.elements&&r.elements.forEach(extractEvents),eventGroups};var service=r=>{eventGroups={},eventGroups=extractEvents(r.config);let s={config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:{downloadFile:downloadFile$1,download:doDownload,...r.functionsProvider},eventGroups,functionsProvider:r.functionsProvider};return{setPage:async function(){r.store.setFormdata({}),s={config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,functionsProvider:r.functionsProvider,serviceHolder:this,eventGroups},r.store.setSchema(i=>({...r.schema,properties:{...r.schema.properties,...i.properties}})),r.uiSchema.elements.push(notifyUiSchema),r.store.setUiSchema(r.uiSchema),await executeRefreshHandler({config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:this,eventGroups})},onClick:async function(){await this.callHandler("onClick")},onMount:async function(){await this.callHandler("onMount")},onFileDownload:async function(){await this.callHandler("onDownload")},onFileUpload:async function(){await this.callHandler("onUpload")},onPaginationChange:async function(i){var S;const m=[{key:"size",value:i.pagination.pageSize},{key:"pageIndex",value:i.pagination.pageIndex},{key:"sorting",value:i.sorting||[]},{key:"filters",value:i.columnFilters||[]},{key:"globalFilter",value:(S=i.globalFilter)!=null?S:""}],h=await this.updateConfigApiBody(i,m);return h==null?void 0:h.data},getSelectOptions:async function(i){if(i.serachValue!==""&&i.serachValue!==void 0){const m=[{key:"searchValue",value:i.serachValue},{key:"currentValue",value:i.currentValue}];return await this.updateConfigApiBody(i,m)}},onChange:async function(){if(eventGroups.onChange){const i=Object.keys(eventGroups.onChange);Promise.all(i.map(async m=>{var h,S;if(((h=r.store)==null?void 0:h.formData[m])!==r.store.newData[m]&&((S=r.store)==null?void 0:S.newData[m])!==void 0)for(const v of eventGroups.onChange[m])await executeEvents({...s,config:v,componentName:m})}))}},updateConfigApiBody:async function(i,m){var S;let h;for(const v of eventGroups==null?void 0:eventGroups.onLoad[i.path]){v.body?v.body=[...v.body,...m]:v.body=m;const I=(S=v==null?void 0:v.events)==null?void 0:S.filter(F=>F.Handler!=="mergeFormdata");v.events=I!=null?I:[],h=await executeEvents({...s,config:v,componentName:i.path})}return h},onBack:async function(i){var h,S;const m=((h=r.dynamicData)==null?void 0:h.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onBack",i),((S=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:S[m])===void 0&&(i==null||i.handleBack())},onNext:async function(i){var h,S;const m=((h=r.dynamicData)==null?void 0:h.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onNext",i),((S=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:S[m])===void 0&&(i==null||i.handleNext())},onReset:async function(i){var h,S;const m=((h=r.dynamicData)==null?void 0:h.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onReset",i),((S=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:S[m])===void 0&&(i==null||i.handleReset())},callHandler:async function(i,m){var S,v,I;const h=((S=r.dynamicData)==null?void 0:S.tableButtonPath)||r.dynamicData.path.split(".")[0];if(((v=eventGroups==null?void 0:eventGroups[i])==null?void 0:v[h])!==void 0)for(const F of(I=eventGroups==null?void 0:eventGroups[i])==null?void 0:I[h])s.store.functionParameters=m,await executeEvents({...s,config:F,componentName:h})},downloadFile:downloadFile$1,download:doDownload,...r.functionsProvider}},leaderBoard={type:"WrapperLayout",config:{main:{rowSpacing:3,header:!0,label:"LeaderBoard",divider:!0},style:{wrapperStyle:{height:{xs:850,sm:1e3}}},wrapperStyle:{position:"relative",width:"100%"}},elements:[{type:"Control",scope:"#/properties/leaderBoard/properties/firstImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"90px",md:"60px"},left:{xs:"calc(50% - 50px)",sm:"calc(50% - 50px)",md:"calc(50% - 100px)"},width:{xs:"100px",sm:"100px",md:"200px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"100px",sm:"100px",md:"200px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(25% - 45px)",sm:"calc(25% - 45px)",md:"calc(25% - 90px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(75% - 42.5px)",sm:"calc(75% - 42.5px)",md:"calc(75% - 85px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/firstName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"190px",md:"270px"},fontSize:{xs:"12px",md:"20px"},left:"calc(50% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%",zIndex:7},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(25% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(75% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/econd",config:{main:{heading:"2"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(25% - 12px)",md:"calc(25% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/first",config:{main:{heading:"1"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"175px",md:"230px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(50% - 12px)",md:"calc(50% - 16px)"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/third",config:{main:{heading:"3"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(75% - 12px)",md:"calc(75% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/table",options:{widget:"Table"},elements:[],config:{style:{tableHeadstyle:{fontWeight:900,background:"rgb(179, 198, 255)"},position:"absolute",top:{xs:"300px",sm:"300px",md:"390px",lg:"390px"},border:"2px solid rgb(179, 198, 255)",width:"95%",left:"2.5%"},main:{disableAction:!0,disableSelection:!0}}}]};const buildLeaderBoard=r=>{const s=_.cloneDeep(leaderBoard);if(r.elements){const i=r.elements.map((m,h)=>m.type?{...{widget:buildUiSchema(m),accessorKey:m.name,header:m.label||m.name}}:{accessorKey:m.name,header:m.label||m.name});s.elements[9].elements=i}return s.config.main.label=r.label,r.name&&(s.elements[0].scope=`#/properties/${r.name}/properties/firstImage`,s.elements[3].scope=`#/properties/${r.name}/properties/firstName`,s.elements[1].scope=`#/properties/${r.name}/properties/secondImage`,s.elements[4].scope=`#/properties/${r.name}/properties/secondName`,s.elements[2].scope=`#/properties/${r.name}/properties/thirdImage`,s.elements[5].scope=`#/properties/${r.name}/properties/thirdName`,s.elements[9].scope=`#/properties/${r.name}/properties/table`),r.firstImage&&(s.elements[0].config.main.url=r.firstImage),r.secondImage&&(s.elements[1].config.main.url=r.secondImage),r.secondImage&&(s.elements[2].config.main.url=r.thirdImage),r.layout&&(s.config.layout=createLayoutFormat(r.layout)),s};var progressBar={type:"Control",scope:"#/properties/pbc_progress",options:{widget:"ProgressBar"},config:{layout:6,main:{developOnlyProgresBar:!1,bottomLabel_3:"Remaining",heading:"PBC Details"}}};const buildProgressBarCard=(r,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,r.heading&&(i.config.main.heading=r.heading),r.bottomLabel_3&&(i.config.main.bottomLabel_3=r.bottomLabel_3),r.bottomLabel_2&&(i.config.main.bottomLabel_2=r.bottomLabel_2),r.bottomLabel_1&&(i.elements[0].config.main.bottomLabel_1=r.bottomLabel_1),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},buildProgressBar=(r,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,r.layout&&(i.config.layout=r.layout),i.config.main.heading=r.heading,r.bottomLabel_3&&(i.config.main.bottomLabel_3=r.bottomLabel_3),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.bottomLabel_2&&(i.config.main.bottomLabel_2=r.bottomLabel_2),r.bottomLabel_1&&(i.config.main.bottomLabel_1=r.bottomLabel_1),i},BarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:"Bar Graph",bottomLabel:"Name of Employe",numTicks:6,leftLabel:"Value in lakhs",axisLeft:!0,axisBottom:!0,hideTicks:!1,hideLeftAxisLine:!1,hideBottomAxisLine:!1,bottomAxisWidth:"10px",legend:{labelColor:"green",legendTitle:"",direction:"row",align:"none"}},style:{containerStyle:{width:"100%",height:300},headerStyle:{},tooltipStyle:{},labelStyle:{margin:{left:80,bottom:20},leftLabelOffset:50,bottomLabelOffset:10},barStyle:{color:{firstBarColor:"#6c5efb",secondBarColor:"#3f51b5"}},legendStyle:{legend:{lineHeight:"0.9em",fontSize:"8px",fontFamily:"arial",padding:"10px 10px",width:"30%",display:"flex",justifyContent:"center",border:"1px solid rgba(255, 255, 255, 0.3)",borderRadius:" 8px",marginRight:"auto"},legendTitle:{fontSize:"10px",marginBottom:"10px",fontWeight:"100"}}}}},PieGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:"Incentive Branch category wise",type:"PieGraph",bottomLabel:"Name of Employe",leftLabel:"Value",axisLeft:!0,axisBottom:!0,legendAvailable:!0,legend:{labelColor:"green",legendTitle:"Branches",direction:"row",align:"right"}},style:{containerStyle:{height:"340"},headerStyle:{},tooltipStyle:{backgroundColor:"black",width:"80px"},labelStyle:{},legendStyle:{legend:{},legendTitle:{}},pieStyle:{}}}},LineGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:12,main:{type:"LineGraph",header:"Quartely Incentive in Thousand",bottomLabel:"Years",leftLabel:"Incentive",gridHidden:!0,numHidden:!1,tooltipDataKey:["MAMA New Project","Second","Third"],axisLeft:!0,axisBottom:!0,hideLeftAxisLine:!1,hideBottomAxisLine:!1,legend:{labelColor:"green",legendTitle:"Our Assests",direction:"row",align:"right",colorRectWidth:20}},style:{containerStyle:{},headerStyle:{},labelStyle:{},lineStyle:{}}}},HorizontalBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:" ",type:"HorizontalBarGraph",bottomLabel:" ",leftLabel:"Value",axisLeft:!1,axisBottom:!0,hideBottomTicks:!1,hideLeftTicks:!1,hideLeftAxisLine:!0,hideBottomAxisLine:!1,bottomAxisWidth:"10px"},style:{containerStyle:{width:"100%"},headerStyle:{},tooltipStyle:{},labelStyle:{},barStyle:{color:"#6c5efb"}}}},buildHorizontalBarGraph=(r,s)=>{const i=_.cloneDeep(HorizontalBarGraph);return i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.scope=s,i.config.main.header=r.heading,r.barColor&&(i.config.barStyle.color=r.barColor),r.containerBackground&&(i.config.containerStyle.background=r.containerBackground),r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),i};var SpeedoMeter={type:"Control",scope:"#/properties/emptyBox",options:{widget:"SpeedoMeter"},config:{layout:{xs:12,sm:12,md:11.7,lg:11.7},width:350,segments:"5",main:{currentValueText:"Your Score",customSegmentLabels:[],data:{maxValue:1e5,value:5e4,minValue:0}},style:{segmentColors:[],ringWidth:57,needleHeightRatio:.7,needleColor:"#3f51b5",startColor:"red",textColor:"black",endColor:"green",containerStyle:{background:"white",padding:"20px",borderRadius:"20px",display:"flex",flexDirection:"column",margin:"auto",justifyContent:"center",fontFamily:"Roboto",fontWeight:500},headerStyle:{textAlign:"left",width:"100%",paddingBottom:"20px"}}}};const buildSpeedoMeter=(r,s)=>{const i=_.cloneDeep(SpeedoMeter);if(i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.heading&&(i.config.main.header=r.heading),r.segments&&(i.config.main.segments=r.segments),r.style){const m=JSON.parse(r.style);m!=null&&m.style&&(i.config.style={...i.config.style,...m.style}),m!=null&&m.containerStyle&&(i.config.style.containerStyle={...i.config.style.containerStyle,...m.containerStyle})}return r.width&&(i.config.main.width=r.width),r.speedoCaption&&(i.config.main.currentValueText=r.speedoCaption),r.data&&(i.config.main.data=r.data),r.needleColor&&(i.config.style.needleColor=r.needleColor),r.segments&&(i.config.style.segments=r.segments),r.endColor&&(i.config.style.endColor=r.endColor),r.startColor&&(i.config.style.startColor=r.startColor),r.segmentColors&&(i.config.style.segmentColors=r.segmentColors),i},buildPieGraph=(r,s)=>{const i=_.cloneDeep(PieGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.height&&(i.config.style.containerStyle.height=r.height),r.legendHide&&(i.config.main.legendAvailabe=r.legendHide!=="YES"),i.scope=s,i.config.main.header=r.heading,r.legendLabels&&(i.config.main.tooltipDataKey=flatObjectValueInArray(r.legendLabels)),r.pieArcColors&&(i.config.style.pieStyle.colorRange=flatObjectValueInArray(r.pieArcColors)),i},buildStackbarGraph=(r,s)=>{const i=_.cloneDeep(BarGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.legendHide&&(i.config.main.legendAvailable=!1),i.config.main.type=r.graphType,i.config.main.header=r.heading,r.barColor&&(i.config.barStyle.color=r.barColor),r.containerBackground&&(i.config.containerStyle.background=r.containerBackground),r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),i.scope=s,i};var RunnerBoyProgressBar={type:"Control",scope:"#/properties/path",options:{widget:"RunnerBoyProgressBar"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const RunnerBoyProgressbar=(r,s)=>{const i=_.cloneDeep(RunnerBoyProgressBar);return i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(r,s)=>{const i=_.cloneDeep(Tabsection);return i.scope=s,r.lazyLoad&&(i.config.main.lazyLoad=r.lazyLoad==="YES"),r.orientation&&(i.config.main.orientation=r.orientation==="YES"?"vertical":"horizontal"),r.sectionLabels&&(i.config.main.tabLabels=r.sectionLabels.map(m=>m.label)),i.config.main.id=r.name,i};var WrapperSection={type:"WrapperLayout",config:{main:{label:"Default Label",divider:!0},defaultStyle:!0},elements:[]};const buildWrapperSection=(r,s)=>{const i=_.cloneDeep(WrapperSection);return i.scope=s,i.config.main.label=r.label,i.config.main.divider=r.divider==="YES",r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var TextInputField={type:"Control",scope:"#/properties/text",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:""},style:{}}};const buildTextField=(r,s)=>{const i=_.cloneDeep(TextInputField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.InputFormatingAndMasking&&(i.config.main.formatStrArray=r.InputFormatingAndMasking.map(m=>m.formatElement)),r.placeholder&&(i.config.main.placeholder=r.placeholder),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,i};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"text",freeSole:!1}}};const buildSelect=(r,s)=>{const i=_.cloneDeep(SelectInputField);return i.config.main.label=r.label,r.value&&(i.config.main.options=r.value),r.freeSolo&&(i.config.main.freeSolo=r.freeSolo==="YES"),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.scope=s,i};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{name:"Compare",variant:"contained",color:"info",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(r,s)=>{const i=_.cloneDeep(Button);return r.buttonType&&(i.options.widget=r.buttonType==="IconButton"?"IconButton":"Button",r.buttonType==="ButtonWithIconAndText"?i.config.main.startIcon=r.iconName:i.config.main.icon=r.iconName),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.tooltipMessage&&(i.config.main.tooltipMessage=r.tooltipMessage),r.defaultStyle&&(r.buttonType==="IconButton"?i.config.main.styleDefault=r.defaultStyle==="true":i.config.main.enableDefaultStyle=r.defaultStyle!=="true"),i.scope=s,r.style&&(i.config.style=JSON.parse(r.style)),r.size&&(i.config.main.size=r.size),r.color&&(i.config.main.color=r.color),r.label&&(i.config.main.name=r.label),i};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{onMount:"onMount",allRowData:[],downloadAllData:!1,columns:{dataColumns:[],actionColumns:[]}}}},lazyLoadingTable={type:"Control",scope:"#/properties/LazyLoadingTable",options:{widget:"LazyLoadingTable"},elements:[],config:{main:{onMount:"onMount",columns:{}}}};const buildTable=(r,s)=>{const i=_.cloneDeep(Table);return i.scope=s,r.style&&(i.config.style=JSON.parse(r.style)),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),r.SelectionAvailable&&(i.config.main.Selection=r.SelectionAvailable==="YES"),r.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=r.ColumnResizingAvailable!=="YES"),r.DragAvailable&&(i.config.main.enableDrag=r.DragAvailable==="YES"),r.downloadAllData&&(i.config.main.downloadAllData=r.downloadAllData==="YES"),r.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=r.Table_Download_Keys_Name.map(m=>m.KeyName)),r.selectKey&&(i.config.main.selectKey=r.selectKey),i},buildLazyLoadingTable=(r,s)=>{const i=_.cloneDeep(lazyLoadingTable);return i.scope=s,r.style&&(i.config.style=JSON.parse(r.style)),r.SelectionAvailable&&(i.config.main.Selection=r.SelectionAvailable==="YES"),r.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=r.ColumnResizingAvailable!=="YES"),r.DragAvailable&&(i.config.main.enableDrag=r.DragAvailable==="YES"),r.selectKey&&(i.config.main.selectKey=r.selectKey),r.downloadAllData&&(i.config.main.downloadAllData=r.downloadAllData==="YES"),r.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=r.Table_Download_Keys_Name.map(m=>m.KeyName)),i.config.main.label=r.label,i};var Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}};const buildLabel=(r,s)=>{const i=_.cloneDeep(Box);return i.scope=s,i.config.main.heading=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},uploadFile={type:"Control",scope:"#/properties/attachment",config:{main:{label:"AttachmentFile",onClick:"onClick",required:!0,errorMessage:"Attachment File is not uploaded"},style:{backgroundColor:"none"},layout:{lg:5.5,md:5.5,sm:11,xs:11}},options:{widget:"UploadFile"}},downloadFile={type:"Control",scope:"#/properties/downloadAttachment",config:{main:{onClick:"onClick",required:!1},style:{backgroundColor:"none"},layout:{lg:5.5,md:5.5,sm:11,xs:11}},options:{widget:"DownloadFile"}},buildUploadFile=(r,s)=>{const i=_.cloneDeep(uploadFile);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=r.layout),r.layout&&(uploadFile.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=r.style),r.required&&(i.config.main.required=!0),i.config.main.errorMessage=r.errorMessage,i},buildDownloadFile=(r,s)=>{const i=_.cloneDeep(downloadFile);return i.scope=s,r.layout&&(i.config.layout=r.layout),r.style&&(i.config.style=r.style),r.required&&(i.config.main.required=!0),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.errorMessage&&(i.config.main.errorMessage=r.errorMessage),i};var Card={type:"WrapperLayout",config:{main:{rowSpacing:.5},style:{wrapperStyle:{position:"relative",color:"white",height:{xs:"120px",md:"160px"},width:"100%",textAlign:"left",background:"#3f51b5",borderRadius:"20px"}},layout:{xs:12,sm:12,md:6,lg:6}},elements:[{type:"Control",scope:"#/properties/programType",config:{main:{heading:"$5000.00"},style:{position:"absolute",left:"10%",top:"15%",color:"#f5effc",height:"80px",display:"flex",fontSize:{xs:"24px",md:"32px"},alignItems:"center",background:"inherit",justifyContent:"flex-start"},layout:5},options:{widget:"Box"}},{type:"Control",scope:"#/properties/programType",config:{main:{url:"$"},style:{color:"#f5effc",objectFit:"contain",position:"absolute",top:"10px",right:"10px",height:"80%",width:"35%",display:"flex",fontSize:"34px",alignItems:"center",background:"inherit",padding:"20px",justifyContent:"left"},layout:5},options:{widget:"Image"}},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"Total Earnings"},style:{position:"absolute",top:"calc(60%)",alignItems:"center",color:"#8999e8",fontSize:"16px",left:"10%",background:"inherit",justifyContent:"center"},layout:12},options:{widget:"Box"}}]};const buildCard=(r,s)=>{const i=_.cloneDeep(Card);return r.style&&(i.config.style=JSON.parse(r.style)),i.elements[0].scope=`#/properties/${r.name}/properties/value`,i.elements[1].scope=`#/properties/${r.name}/properties/url`,i.elements[2].scope=`#/properties/${r.name}/properties/description`,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.label&&(i.elements[0].config.main.heading=r.label),r.url&&(i.elements[1].config.main.url=r.url),r.description&&(i.elements[2].config.main.heading=r.description),i};var DateInputField={type:"Control",scope:"#/properties/date",options:{widget:"DateInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"date"}}};const buildDate=(r,s)=>{const i=_.cloneDeep(DateInputField);return i.config.main.label=r.label,i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var RankCard={type:"Control",scope:"#/properties/path",options:{widget:"RankCard"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRankCard=(r,s)=>{const i=_.cloneDeep(RankCard);return i.scope=s,r.image&&(i.config.main.url=r.image),r.title&&(i.config.main.title=r.title),r.description&&(i.config.main.description=r.description),r.rank&&(i.config.main.rank=`#${r.rank}`),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var RollAndDice={type:"Control",scope:"#/properties/path",options:{widget:"RollAndDice"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRollAndDice=(r,s)=>{const i=_.cloneDeep(RollAndDice);return r.name&&(i.scope=s),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var Timer={type:"Control",scope:"#/properties/timer",options:{widget:"Timer"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{},style:{digitContainer:{borderRadius:"4px",textShawdow:"none",width:"22%"},container:{backgroundColor:"#FFFFFF",borderRadius:"18px"},containerLabelColor:{color:"red"}}}};const buildTimer=(r,s)=>{const i=_.cloneDeep(Timer);return i.scope=s,r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var MultipleSelect={type:"Control",scope:"#/properties/path",options:{widget:"MultipleSelect"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"text",multiple:!0,variant:"standard",options:[]}}};const buildMultiSelect=(r,s)=>{const i=_.cloneDeep(MultipleSelect);return i.scope=s,r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.value&&(i.config.main.options=r.value),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),i},buildBasicUiSchema=r=>({type:"HorizontalLayout",pageName:`${r.name}`,scope:`${r.name}`,elements:[]}),TextArea={type:"Control",scope:"#/properties/textarea",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px",background:"white",color:"black"}},main:{heading:"TextArea",minRows:4,hideButton:!0}}},buildTextArea=(r,s)=>{const i=_.cloneDeep(TextArea);return i.config.main.heading=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),r.placeholder&&(i.config.main.placeholder=r.placeholder),i.scope=s,i};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(r,s)=>{const i=_.cloneDeep(cardSlider);return r.name&&(i.scope=s),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(r,s)=>{const i=_.cloneDeep(Checkbox);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},buildLineGraph=(r,s)=>{const i=_.cloneDeep(LineGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.header=r.heading,r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),r.legendHide&&(i.config.main.legendAvailabe=r.legendHide!=="YES"),r.legendLabels&&(i.config.main.tooltipDataKey=flatObjectValueInArray(r.legendLabels)),r.pieArcColors&&(i.config.style.lineStyle.colorRange=flatObjectValueInArray(r.pieArcColors)),i.scope=s,i},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Enabled",options:["YES","NO"],errorMessage:"Enabled is not marked as YES or NO"}}},buildRadio=(r,s)=>{const i=_.cloneDeep(RadioUiSchema);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.sectionLabels&&(i.config.main.options=r.sectionLabels.map(m=>m.label||m.Options)),r.style&&(i.config.style=JSON.parse(r.style)),i};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},main:{},style:{}}};const buildEmptyBox=(r,s)=>{const i=_.cloneDeep(emptyBox);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[]}}},buildArray=(r,s)=>{const i=_.cloneDeep(ArrayUiSchema);return i.scope=s,i},TextField={type:"Control",scope:"#/properties/AAdhar",layout:12,options:{widget:"InputField"},config:{main:{label:"Adhaar Card",formatStrArray:["9","9","9","9"," ","9","9","9","9"," ","X9","X9","X9","X9"],placeholder:"XXXX XXXX XXXX"}}},buildAdhaarField=(r,s)=>{const i=_.cloneDeep(TextField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,i},PanField={type:"Control",scope:"#/properties/pan",layout:12,options:{widget:"InputField"},config:{main:{label:"Pan Card",placeholder:"AAAAA0000A",formatStrArray:["A","A","A","A","A","9","9","9","9","A"]}}},buildPanField=(r,s)=>{const i=_.cloneDeep(PanField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,i},FileInput={type:"Control",scope:"#/properties/docAggrementCopy",options:{widget:"FileInputField"},config:{layout:11.5,main:{required:!1,onUpload:"onFileUpload",onDownload:"onFileDownload",label:"Aggrement Copy"},style:{backgroundColor:"none"}}},buildFileInput=(r,s)=>{const i=_.cloneDeep(FileInput);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},Stepper={type:"Control",scope:"#/properties/Stepper",options:{widget:"Stepper"},config:{main:{steps:[{label:"First"},{label:"Second"},{label:"Third"}],resetButton:!1,resetText:"Reset",orientation:"vertical"}},elements:[]},buildStepper=(r,s)=>{const i=_.cloneDeep(Stepper);return i.scope=s,i.config.main.resetButton=r.resetButton==="YES",r.defaultButtonAvailable&&(i.config.main.defaultButtonAvailable=r.defaultButtonAvailable==="YES"),i.config.main.resetText=r.resetText||"ResetData",i.config.main.completeText=r.completeText||"Complete Text",i.config.main.orientation=r.orientation||"horizontal",r.sectionLabels&&(i.config.main.steps=r.sectionLabels.map((m,h)=>({label:m.label,id:h}))),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},PopUP={type:"Control",scope:"#/properties/text",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{label:"PopUp",fullScreen:!1,fullWidth:!1,maxWidth:!1,alignItems:!1,spacing:2},style:{}}},buildPopUp=(r,s)=>{const i=_.cloneDeep(PopUP);return i.scope=s,i.config.main.title=r.label,i.config.main.fullScreen=r.fullScreen==="YES",i.config.main.fullWidth=r.fullWidth==="YES",i.config.main.maxWidth=r.maxWidth||!1,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(PopUP.config.style=JSON.parse(r.style)),i},dataGrid={type:"Control",scope:"#/properties/dataGrid",layout:12,options:{widget:"DataGrid"},elements:[],config:{main:{elevation:0,useWrapper:!1},style:{}}},buildDataGrid=(r,s)=>{const i=_.cloneDeep(dataGrid);return i.scope=s,r.elevation&&(i.config.main.elevation=+r.elevation),i.config.main.divider=r.divider!=="NO",r.height&&(i.config.main.height=`${r.height}px`),r.justifyContent&&(i.config.main.justifyContent=r.justifyContent),r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.cardLayout&&(i.config.cardLayout=createLayoutFormat(r.cardLayout)),r.style&&(i.config.style=JSON.parse(r.style)),i},InputSlider={type:"Control",scope:"#/properties/inputSlider",options:{widget:"InputSlider"},config:{layout:12,main:{limitToMax:!1,max:1e4,step:1e3,min:0,label:"Slider"}}},buildInputSlider=(r,s)=>{const i=_.cloneDeep(InputSlider);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.limitToMax&&(i.config.main.limitToMax=r.limitToMax==="YES"),r.max&&(i.config.main.max=r.max),r.step&&(i.config.main.step=r.step),r.min&&(i.config.main.min=r.min),r.style&&(i.config.main.defaultStyle=JSON.parse(r.style)),i};exports.schema={type:"object",properties:{},required:[]};function buildRule(r,s,i){var m,h,S,v,I,F,Q,nt,me,Gt;i?(S=(h=(m=exports.schema.properties)==null?void 0:m[s])==null?void 0:h.items)!=null&&S.properties&&((Q=(F=(I=(v=exports.schema.properties)==null?void 0:v[s])==null?void 0:I.items)==null?void 0:F.properties)!=null&&Q[r.name]||(exports.schema.properties[s].items.properties[r.name]={},r.type==="Select"&&((nt=r.value)==null?void 0:nt.length)>0?exports.schema.properties[s].items.properties[r.name]={oneOf:r.value.map(U=>({const:U.value,title:U.label}))}:r.type==="MultipleSelect"&&((me=r.value)==null?void 0:me.length)>0&&(exports.schema.properties[s].items.properties[r.name]={items:{oneOf:r.value.map(U=>({const:U.value,title:U.label}))}}))):(r.type==="Select"||r.type==="MultipleSelect")&&((Gt=r.value)==null?void 0:Gt.length)>0&&(r.type==="Select"?exports.schema.properties[r.name]={oneOf:r.value.map(U=>({const:U.value,title:U.label}))}:r.type==="MultipleSelect"&&(exports.schema.properties[r.name]={items:{oneOf:r.value.map(U=>({const:U.value,title:U.label}))}})),r.validation&&r.validation.forEach(U=>{var Ge,mt,ae,Oe,$t,ge,$e,he,Ke,we,rt,Lt;s?(ae=(mt=(Ge=exports.schema.properties)==null?void 0:Ge[s])==null?void 0:mt.items)!=null&&ae.properties&&(($e=(ge=($t=(Oe=exports.schema.properties)==null?void 0:Oe[s])==null?void 0:$t.items)==null?void 0:ge.properties)!=null&&$e[r.name]||(exports.schema.properties[s].items.properties[r.name]={},r.type==="Select"||((he=r.value)==null?void 0:he.length)>0?exports.schema.properties[s].items.properties[r.name]={oneOf:r.value.map(gt=>({const:gt.value,title:gt.label}))}:(r.type==="MultipleSelect"||((Ke=r.value)==null?void 0:Ke.length)>0)&&(exports.schema.properties[s].items.properties[r.name]={items:{oneOf:r.value.map(gt=>({const:gt.value,title:gt.label}))}})),U.validationType==="required"?(Lt=(rt=(we=exports.schema.properties)==null?void 0:we[s])==null?void 0:rt.items)==null||Lt.required.push(r.name):(exports.schema.properties[s].items.properties[r.name].type="string",exports.schema.properties[s].items.properties[r.name][U.validationType]=isNaN(U.validationValue)?U.validationValue:Number(U.validationValue))):(exports.schema.properties[r.name]||(exports.schema.properties[r.name]={}),U.validationType==="required"?exports.schema.required.push(r.name):(exports.schema.properties[r.name].type="string",exports.schema.properties[r.name][U.validationType]=isNaN(U.validationValue)?U.validationValue:Number(U.validationValue)))})}const buildSchema=(r,s,i)=>(buildRule(r,s,i),r!=null&&r.elements&&(r.type=="Table"||r.type=="Array"?(exports.schema.properties[r.name]||(exports.schema.properties[r.name]={type:"array",items:{type:"object",properties:{},required:[]}}),r.elements.map((m,h)=>{buildSchema(m,r.name,r.type==="Array")})):r.elements.map((m,h)=>{buildSchema(m)})),exports.schema),buildUiSchema=r=>{let s={};const i=`#/properties/${r.name}`;switch(r.type){case"InputSlider":s=buildInputSlider(r,i);break;case"DataGrid":s=buildDataGrid(r,i);break;case"Stepper":s=buildStepper(r,i);break;case"PopUp":s=buildPopUp(r,i);break;case"FileInput":s=buildFileInput(r,i);break;case"AadharcardText":s=buildAdhaarField(r,i);break;case"PanCardText":s=buildPanField(r,i);break;case"TabSection":s=buildTabSection(r,i);break;case"RunnerBoyProgressBar":s=RunnerBoyProgressbar(r,i);break;case"WrapperSection":s=buildWrapperSection(r,i);break;case"Text":s=buildTextField(r,i);break;case"TextArea":s=buildTextArea(r,i);break;case"Date":s=buildDate(r,i);break;case"Select":s=buildSelect(r,i);break;case"Radio":s=buildRadio(r,i);break;case"Button":s=buildButton(r,i);break;case"Table":s=buildTable(r,i);break;case"Array":s=buildArray(r,i);break;case"LazyLoadingTable":s=buildLazyLoadingTable(r,i);break;case"Box":s=buildLabel(r,i);break;case"CheckBox":s=buildCheckbox(r,i);break;case"UploadFile":s=buildUploadFile(r,i);break;case"DownloadFile":s=buildDownloadFile(r,i);break;case"EmptyBox":s=buildEmptyBox(r);break;case"card":s=buildCard(r);break;case"Graph":switch(r.graphType){case"BarGraph":case"StackBarGraph":s=buildStackbarGraph(r,i);break;case"LineGraph":s=buildLineGraph(r,i);break;case"PieGraph":s=buildPieGraph(r,i);break;case"HorizontalBarGraph":s=buildHorizontalBarGraph(r,i);break}break;case"ProgressBar":s=buildProgressBar(r,i);break;case"SpeedoMeter":s=buildSpeedoMeter(r,i);break;case"ProgressBarCard":s=buildProgressBarCard(r,i);break;case"RankCard":s=buildRankCard(r,i);break;case"Rank":s=buildRollAndDice(r,i);break;case"Slider":s=buildSlider(r,i);break;case"Timer":s=buildTimer(r,i);break;case"MultipleSelect":s=buildMultiSelect(r,i);break;case"LeaderBoard":s=buildLeaderBoard(r);break;default:exports.schema={type:"object",properties:{},required:[]},s=buildBasicUiSchema(r)}if(r!=null&&r.elements){if((r==null?void 0:r.type)==="LeaderBoard")return s;if(r.type=="Table"){const m={};r.sizeHolder&&r.sizeHolder.map((h,S)=>{m[h.keyName]=h.value}),s.elements=r.elements.map((h,S)=>h.type?{accessorKey:h.name,header:h.label||h.name,size:m[h.name]||180,widget:buildUiSchema(h)}:{accessorKey:h.name,header:h.label||h.name,size:m[h.name]||180})}else r.type=="Array"?s.options.detail.elements=r.elements.map((m,h)=>buildUiSchema(m)):s.elements=r.elements.map((m,h)=>buildUiSchema(m))}return s};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,exports.buildUiSchema=buildUiSchema,exports.clearFromLocalStorage=clearFromLocalStorage,exports.pageMaster=pageMaster,exports.pageMasterComponents=Component,exports.pageMasterEvents=event,exports.pageService=service,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
27
+ }`;var k=il(function(){return z(u,A+"return "+w).apply(i,p)});if(k.source=w,yi(k))throw k;return k}function ug(e){return W(e).toLowerCase()}function pg(e){return W(e).toUpperCase()}function cg(e,t,n){if(e=W(e),e&&(n||t===i))return fo(e);if(!e||!(t=be(t)))return e;var o=Pe(e),a=Pe(t),u=go(o,a),p=mo(o,a)+1;return dt(o,u,p).join("")}function dg(e,t,n){if(e=W(e),e&&(n||t===i))return e.slice(0,yo(e)+1);if(!e||!(t=be(t)))return e;var o=Pe(e),a=mo(o,Pe(t))+1;return dt(o,0,a).join("")}function fg(e,t,n){if(e=W(e),e&&(n||t===i))return e.replace(yr,"");if(!e||!(t=be(t)))return e;var o=Pe(e),a=go(o,Pe(t));return dt(o,a).join("")}function gg(e,t){var n=mt,o=ll;if(q(t)){var a="separator"in t?t.separator:a;n="length"in t?P(t.length):n,o="omission"in t?be(t.omission):o}e=W(e);var u=e.length;if(Bt(e)){var p=Pe(e);u=p.length}if(n>=u)return e;var c=n-Rt(o);if(c<1)return o;var f=p?dt(p,0,c).join(""):e.slice(0,c);if(a===i)return f+o;if(p&&(c+=f.length-c),vi(a)){if(e.slice(c).search(a)){var b,x=f;for(a.global||(a=Pr(a.source,W(Pi.exec(a))+"g")),a.lastIndex=0;b=a.exec(x);)var w=b.index;f=f.slice(0,w===i?c:w)}}else if(e.indexOf(be(a),c)!=c){var C=f.lastIndexOf(a);C>-1&&(f=f.slice(0,C))}return f+o}function mg(e){return e=W(e),e&&Il.test(e)?e.replace(Bi,Gs):e}var hg=Nt(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),_i=oa("toUpperCase");function rl(e,t,n){return e=W(e),t=n?i:t,t===i?Os(e)?Ys(e):Ts(e):e.match(t)||[]}var il=H(function(e,t){try{return ye(e,i,t)}catch(n){return yi(n)?n:new R(n)}}),yg=Ze(function(e,t){return Ie(t,function(n){n=Ue(n),Xe(e,n,mi(e[n],e))}),e});function vg(e){var t=e==null?0:e.length,n=T();return e=t?V(e,function(o){if(typeof o[1]!="function")throw new Le(v);return[n(o[0]),o[1]]}):[],H(function(o){for(var a=-1;++a<t;){var u=e[a];if(ye(u[0],this,o))return ye(u[1],this,o)}})}function bg(e){return Gu(Fe(e,ge))}function Si(e){return function(){return e}}function xg(e,t){return e==null||e!==e?t:e}var _g=la(),Sg=la(!0);function fe(e){return e}function wi(e){return Mo(typeof e=="function"?e:Fe(e,ge))}function wg(e){return No(Fe(e,ge))}function Cg(e,t){return zo(e,Fe(t,ge))}var Ig=H(function(e,t){return function(n){return ln(n,e,t)}}),Lg=H(function(e,t){return function(n){return ln(e,n,t)}});function Ci(e,t,n){var o=te(t),a=Wn(t,o);n==null&&!(q(t)&&(a.length||!o.length))&&(n=t,t=e,e=this,a=Wn(t,te(t)));var u=!(q(n)&&"chain"in n)||!!n.chain,p=je(e);return Ie(a,function(c){var f=t[c];e[c]=f,p&&(e.prototype[c]=function(){var b=this.__chain__;if(u||b){var x=e(this.__wrapped__),w=x.__actions__=pe(this.__actions__);return w.push({func:f,args:arguments,thisArg:e}),x.__chain__=b,x}return f.apply(e,at([this.value()],arguments))})}),e}function Ag(){return ne._===this&&(ne._=Qs),this}function Ii(){}function Fg(e){return e=P(e),H(function(t){return Wo(t,e)})}var Tg=ni(V),Eg=ni(lo),Bg=ni(Ar);function ol(e){return ui(e)?Fr(Ue(e)):ap(e)}function Rg(e){return function(t){return e==null?i:St(e,t)}}var Dg=ua(),Pg=ua(!0);function Li(){return[]}function Ai(){return!1}function kg(){return{}}function Hg(){return""}function Mg(){return!0}function Og(e,t){if(e=P(e),e<1||e>it)return[];var n=Ne,o=ie(e,Ne);t=T(t),e-=Ne;for(var a=Br(o,t);++n<e;)t(n);return a}function Ng(e){return D(e)?V(e,Ue):xe(e)?[e]:pe(Ia(W(e)))}function zg(e){var t=++Js;return W(e)+t}var Wg=Vn(function(e,t){return e+t},0),Ug=ri("ceil"),Gg=Vn(function(e,t){return e/t},1),$g=ri("floor");function Kg(e){return e&&e.length?zn(e,fe,Ur):i}function Yg(e,t){return e&&e.length?zn(e,T(t,2),Ur):i}function Vg(e){return po(e,fe)}function qg(e,t){return po(e,T(t,2))}function Xg(e){return e&&e.length?zn(e,fe,Yr):i}function Jg(e,t){return e&&e.length?zn(e,T(t,2),Yr):i}var Zg=Vn(function(e,t){return e*t},1),Qg=ri("round"),jg=Vn(function(e,t){return e-t},0);function em(e){return e&&e.length?Er(e,fe):0}function tm(e,t){return e&&e.length?Er(e,T(t,2)):0}return l.after=Sd,l.ary=Ha,l.assign=pf,l.assignIn=Ja,l.assignInWith=ar,l.assignWith=cf,l.at=df,l.before=Ma,l.bind=mi,l.bindAll=yg,l.bindKey=Oa,l.castArray=Pd,l.chain=Da,l.chunk=Gp,l.compact=$p,l.concat=Kp,l.cond=vg,l.conforms=bg,l.constant=Si,l.countBy=jc,l.create=ff,l.curry=Na,l.curryRight=za,l.debounce=Wa,l.defaults=gf,l.defaultsDeep=mf,l.defer=wd,l.delay=Cd,l.difference=Yp,l.differenceBy=Vp,l.differenceWith=qp,l.drop=Xp,l.dropRight=Jp,l.dropRightWhile=Zp,l.dropWhile=Qp,l.fill=jp,l.filter=td,l.flatMap=id,l.flatMapDeep=od,l.flatMapDepth=ad,l.flatten=Ta,l.flattenDeep=ec,l.flattenDepth=tc,l.flip=Id,l.flow=_g,l.flowRight=Sg,l.fromPairs=nc,l.functions=Sf,l.functionsIn=wf,l.groupBy=ld,l.initial=ic,l.intersection=oc,l.intersectionBy=ac,l.intersectionWith=lc,l.invert=If,l.invertBy=Lf,l.invokeMap=ud,l.iteratee=wi,l.keyBy=pd,l.keys=te,l.keysIn=de,l.map=er,l.mapKeys=Ff,l.mapValues=Tf,l.matches=wg,l.matchesProperty=Cg,l.memoize=nr,l.merge=Ef,l.mergeWith=Za,l.method=Ig,l.methodOf=Lg,l.mixin=Ci,l.negate=rr,l.nthArg=Fg,l.omit=Bf,l.omitBy=Rf,l.once=Ld,l.orderBy=cd,l.over=Tg,l.overArgs=Ad,l.overEvery=Eg,l.overSome=Bg,l.partial=hi,l.partialRight=Ua,l.partition=dd,l.pick=Df,l.pickBy=Qa,l.property=ol,l.propertyOf=Rg,l.pull=cc,l.pullAll=Ba,l.pullAllBy=dc,l.pullAllWith=fc,l.pullAt=gc,l.range=Dg,l.rangeRight=Pg,l.rearg=Fd,l.reject=md,l.remove=mc,l.rest=Td,l.reverse=fi,l.sampleSize=yd,l.set=kf,l.setWith=Hf,l.shuffle=vd,l.slice=hc,l.sortBy=_d,l.sortedUniq=wc,l.sortedUniqBy=Cc,l.split=og,l.spread=Ed,l.tail=Ic,l.take=Lc,l.takeRight=Ac,l.takeRightWhile=Fc,l.takeWhile=Tc,l.tap=$c,l.throttle=Bd,l.thru=jn,l.toArray=Va,l.toPairs=ja,l.toPairsIn=el,l.toPath=Ng,l.toPlainObject=Xa,l.transform=Mf,l.unary=Rd,l.union=Ec,l.unionBy=Bc,l.unionWith=Rc,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=kc,l.unset=Of,l.unzip=gi,l.unzipWith=Ra,l.update=Nf,l.updateWith=zf,l.values=Ut,l.valuesIn=Wf,l.without=Hc,l.words=rl,l.wrap=Dd,l.xor=Mc,l.xorBy=Oc,l.xorWith=Nc,l.zip=zc,l.zipObject=Wc,l.zipObjectDeep=Uc,l.zipWith=Gc,l.entries=ja,l.entriesIn=el,l.extend=Ja,l.extendWith=ar,Ci(l,l),l.add=Wg,l.attempt=il,l.camelCase=Kf,l.capitalize=tl,l.ceil=Ug,l.clamp=Uf,l.clone=kd,l.cloneDeep=Md,l.cloneDeepWith=Od,l.cloneWith=Hd,l.conformsTo=Nd,l.deburr=nl,l.defaultTo=xg,l.divide=Gg,l.endsWith=Yf,l.eq=He,l.escape=Vf,l.escapeRegExp=qf,l.every=ed,l.find=nd,l.findIndex=Aa,l.findKey=hf,l.findLast=rd,l.findLastIndex=Fa,l.findLastKey=yf,l.floor=$g,l.forEach=Pa,l.forEachRight=ka,l.forIn=vf,l.forInRight=bf,l.forOwn=xf,l.forOwnRight=_f,l.get=bi,l.gt=zd,l.gte=Wd,l.has=Cf,l.hasIn=xi,l.head=Ea,l.identity=fe,l.includes=sd,l.indexOf=rc,l.inRange=Gf,l.invoke=Af,l.isArguments=It,l.isArray=D,l.isArrayBuffer=Ud,l.isArrayLike=ce,l.isArrayLikeObject=J,l.isBoolean=Gd,l.isBuffer=ft,l.isDate=$d,l.isElement=Kd,l.isEmpty=Yd,l.isEqual=Vd,l.isEqualWith=qd,l.isError=yi,l.isFinite=Xd,l.isFunction=je,l.isInteger=Ga,l.isLength=ir,l.isMap=$a,l.isMatch=Jd,l.isMatchWith=Zd,l.isNaN=Qd,l.isNative=jd,l.isNil=tf,l.isNull=ef,l.isNumber=Ka,l.isObject=q,l.isObjectLike=X,l.isPlainObject=fn,l.isRegExp=vi,l.isSafeInteger=nf,l.isSet=Ya,l.isString=or,l.isSymbol=xe,l.isTypedArray=Wt,l.isUndefined=rf,l.isWeakMap=of,l.isWeakSet=af,l.join=sc,l.kebabCase=Xf,l.last=Ee,l.lastIndexOf=uc,l.lowerCase=Jf,l.lowerFirst=Zf,l.lt=lf,l.lte=sf,l.max=Kg,l.maxBy=Yg,l.mean=Vg,l.meanBy=qg,l.min=Xg,l.minBy=Jg,l.stubArray=Li,l.stubFalse=Ai,l.stubObject=kg,l.stubString=Hg,l.stubTrue=Mg,l.multiply=Zg,l.nth=pc,l.noConflict=Ag,l.noop=Ii,l.now=tr,l.pad=Qf,l.padEnd=jf,l.padStart=eg,l.parseInt=tg,l.random=$f,l.reduce=fd,l.reduceRight=gd,l.repeat=ng,l.replace=rg,l.result=Pf,l.round=Qg,l.runInContext=d,l.sample=hd,l.size=bd,l.snakeCase=ig,l.some=xd,l.sortedIndex=yc,l.sortedIndexBy=vc,l.sortedIndexOf=bc,l.sortedLastIndex=xc,l.sortedLastIndexBy=_c,l.sortedLastIndexOf=Sc,l.startCase=ag,l.startsWith=lg,l.subtract=jg,l.sum=em,l.sumBy=tm,l.template=sg,l.times=Og,l.toFinite=et,l.toInteger=P,l.toLength=qa,l.toLower=ug,l.toNumber=Be,l.toSafeInteger=uf,l.toString=W,l.toUpper=pg,l.trim=cg,l.trimEnd=dg,l.trimStart=fg,l.truncate=gg,l.unescape=mg,l.uniqueId=zg,l.upperCase=hg,l.upperFirst=_i,l.each=Pa,l.eachRight=ka,l.first=Ea,Ci(l,function(){var e={};return ze(l,function(t,n){G.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=g,Ie(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Ie(["drop","take"],function(e,t){O.prototype[e]=function(n){n=n===i?1:ee(P(n),0);var o=this.__filtered__&&!t?new O(this):this.clone();return o.__filtered__?o.__takeCount__=ie(n,o.__takeCount__):o.__views__.push({size:ie(n,Ne),type:e+(o.__dir__<0?"Right":"")}),o},O.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Ie(["filter","map","takeWhile"],function(e,t){var n=t+1,o=n==Fi||n==cl;O.prototype[e]=function(a){var u=this.clone();return u.__iteratees__.push({iteratee:T(a,3),type:n}),u.__filtered__=u.__filtered__||o,u}}),Ie(["head","last"],function(e,t){var n="take"+(t?"Right":"");O.prototype[e]=function(){return this[n](1).value()[0]}}),Ie(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");O.prototype[e]=function(){return this.__filtered__?new O(this):this[n](1)}}),O.prototype.compact=function(){return this.filter(fe)},O.prototype.find=function(e){return this.filter(e).head()},O.prototype.findLast=function(e){return this.reverse().find(e)},O.prototype.invokeMap=H(function(e,t){return typeof e=="function"?new O(this):this.map(function(n){return ln(n,e,t)})}),O.prototype.reject=function(e){return this.filter(rr(T(e)))},O.prototype.slice=function(e,t){e=P(e);var n=this;return n.__filtered__&&(e>0||t<0)?new O(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=P(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},O.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},O.prototype.toArray=function(){return this.take(Ne)},ze(O.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=l[o?"take"+(t=="last"?"Right":""):t],u=o||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,c=o?[1]:arguments,f=p instanceof O,b=c[0],x=f||D(p),w=function(M){var N=a.apply(l,at([M],c));return o&&C?N[0]:N};x&&n&&typeof b=="function"&&b.length!=1&&(f=x=!1);var C=this.__chain__,A=!!this.__actions__.length,E=u&&!C,k=f&&!A;if(!u&&x){p=k?p:new O(this);var B=e.apply(p,c);return B.__actions__.push({func:jn,args:[w],thisArg:i}),new Ae(B,C)}return E&&k?e.apply(this,c):(B=this.thru(w),E?o?B.value()[0]:B.value():B)})}),Ie(["pop","push","shift","sort","splice","unshift"],function(e){var t=In[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(o&&!this.__chain__){var u=this.value();return t.apply(D(u)?u:[],a)}return this[n](function(p){return t.apply(D(p)?p:[],a)})}}),ze(O.prototype,function(e,t){var n=l[t];if(n){var o=n.name+"";G.call(Ht,o)||(Ht[o]=[]),Ht[o].push({name:t,func:n})}}),Ht[Yn(i,Oe).name]=[{name:"wrapper",func:i}],O.prototype.clone=gu,O.prototype.reverse=mu,O.prototype.value=hu,l.prototype.at=Kc,l.prototype.chain=Yc,l.prototype.commit=Vc,l.prototype.next=qc,l.prototype.plant=Jc,l.prototype.reverse=Zc,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qc,l.prototype.first=l.prototype.head,jt&&(l.prototype[jt]=Xc),l},Dt=Vs();yt?((yt.exports=Dt)._=Dt,wr._=Dt):ne._=Dt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"AadharcardText",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"Card",const:"card"},{title:"CheckBox",const:"CheckBox"},{title:"Container",const:"WrapperSection"},{title:"DataGrid",const:"DataGrid"},{title:"Date",const:"Date"},{title:"Download File",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"File",const:"FileInput"},{title:"Graph",const:"Graph"},{title:"Input Slider",const:"InputSlider"},{title:"Label",const:"Box"},{title:"LeaderBoard",const:"LeaderBoard"},{title:"MultipleSelect",const:"MultipleSelect"},{title:"PanCardText",const:"PanCardText"},{title:"Popup Container",const:"PopUp"},{title:"ProgressBar",const:"ProgressBar"},{title:"ProgressBar Card",const:"ProgressBarCard"},{title:"Select",const:"Select"},{title:"Slider",const:"Slider"},{title:"SpeedoMeter",const:"SpeedoMeter"},{title:"Stepper Container",const:"Stepper"},{title:"Radio",const:"Radio"},{title:"Rank",const:"Rank"},{title:"Rank Card",const:"RankCard"},{title:"Runner Boy Progress Bar",const:"RunnerBoyProgressBar"},{title:"Table",const:"Table"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Text Area",const:"TextArea"},{title:"Timer",const:"Timer"},{title:"Upload File",const:"UploadFile"}]},orientation:{oneOf:[{title:"Horizontal",const:"horizontal"},{title:"Vertical",const:"vertical"}]},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},layout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},cardLayout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},value:{type:"array",items:{type:"object",properties:{label:{type:"string"},value:{type:"string"}}}},columns:{type:"array",items:{type:"object",properties:{header:{type:"string"},accessorKey:{type:"string"},widgetType:{type:"string"}}}},events:{type:"array",items:{type:"object",properties:{eventType:{type:"string"},configType:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},Table_Download_Keys_Name:{type:"array",items:{type:"object",properties:{KeyName:{type:"string"}}}},sizeHolder:{type:"array",items:{type:"object",properties:{keyName:{type:"string"},value:{type:"string"}}}},legendLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},InputFormatingAndMasking:{type:"array",items:{type:"object",properties:{formatElement:{type:"string"}}}},validation:{type:"array",items:{type:"object",properties:{componentName:{type:"string"},validationType:{type:"string",oneOf:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"}]},validationValue:{type:"string"}}}},buttonType:{type:"string",oneOf:[{title:"Button",const:"Button"},{title:"IconButton",const:"IconButton"},{title:"HybridButton",const:"ButtonWithIconAndText"}]},defaultStyle:{type:"string",oneOf:[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]},graphType:{type:"string",oneOf:[{title:"Bar Graph",const:"BarGraph"},{title:"Stack Bar Graph",const:"StackBarGraph"},{title:"Line Graph",const:"LineGraph"},{title:"Pie Graph",const:"PieGraph"},{title:"Horizontal Bar Graph",const:"HorizontalBarGraph"}]},iconName:{type:"string",oneOf:[{title:"Search Icon",const:"SearchIcon"},{title:"Edit Icon",const:"EditIcon"},{title:"Add Icon",const:"AddIcon"},{title:"Send Icon",const:"SendIcon"},{title:"Approve Icon",const:"ApproveIcon"},{title:"RejectIcon",const:"RejectIcon"},{title:"Back Icon",const:"BackIcon"},{title:"Back Icon Second ",const:"BackIcon2"},{title:"Pending Icon",const:"PendingIcon"},{title:"View Icon",const:"ViewIcon"},{title:"Notification Icon",const:"NotificationIcon"},{title:"Person Icon",const:"PersonIcon"},{title:"Report Icon",const:"ReportIcon"},{title:"Error Icon",const:"ErrorIcon"},{title:"Refresh Icon",const:"RefreshIcon"},{title:"Download Icon",const:"DownloadIcon"},{title:"Exception Icon",const:"ExceptionIcon"}]},color:{type:"string",oneOf:[{title:"Primary",const:"primary"},{title:"Secondary",const:"secondary"},{title:"Error",const:"error"},{title:"Success",const:"success"},{title:"Info",const:"info"}]},name:{type:"string"},label:{type:"string"}},required:["name"]},componentBasicUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/Component",options:{widget:"Box"},config:{layout:{xs:12,sm:12,md:2},main:{heading:"Component"},style:{float:"left"}}},{type:"Control",scope:"#/properties/pageName",options:{widget:"Box"},config:{layout:{xs:7,sm:7,md:9},main:{heading:" "},style:{float:"right",width:"auto",fontSize:"12px",color:"gray",paddingTop:"10px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:{xs:2,sm:2,md:.5},main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"TabLayout",config:{main:{tabLabels:["Core"],defaultStyle:!0,id:"component"}},elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type"}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}}]}}}]}]},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Ok",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"okHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Save & Exit",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6}]},CoreSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type",type:"text"}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name"}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}}]}}}]},EventSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{divider:!0},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Event Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"eventAddHandler",tooltipMessage:"Back"},style:{float:"right"}}},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]}]},EmptyBox={type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}},cardLayout={type:"Control",scope:"#/properties/cardLayout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}}]}}},getArrayControl=(r,s,i)=>({type:"Control",scope:`#/properties/${r}`,layout:11.5,options:{elementLabelProp:s,detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/${s}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:i||"Labels for Tab"}}},EmptyBox]}}}),sizeHolder=getArrayControl("sizeHolder","keyName","Component Name");sizeHolder.options.detail.elements[1]={type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Size"}}};const getInputField=(r,s)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:s}}}),getRadioInputField=(r,s,i)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:s,options:i}}}),getTextArea=(r,s,i,g)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"TextArea"},config:{layout:g||12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:s,minRows:8,hideButton:i}}}),getSelectField=(r,s,i)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:s,type:"text"}}}),GraphSection={type:"HorizontalLayout",elements:[]},buildPropertiesSection=function(r){let s=_.cloneDeep(GraphSection);switch(r){case"InputSlider":s.elements=[getInputField("max","Max Limit"),getInputField("step","Step"),getInputField("min","Min Limit"),getRadioInputField("limitToMax","Applly Max. Limit",["YES","NO"])];break;case"DataGrid":s.elements=[getRadioInputField("divider","Use Header divider",["YES","NO"]),getInputField("elevation","Card Elevation"),getInputField("height","Grid height"),getInputField("justifyContent","justifyContent"),cardLayout];break;case"Stepper":s.elements=[getRadioInputField("resetButton","Reset Button",["YES","NO"]),getRadioInputField("defaultButtonAvailable","Use Default Buttons ",["YES","NO"]),getInputField("resetText","Reset Text"),getInputField("completeText","Complete Text"),getSelectField("orientation","Orientation Type"),getArrayControl("sectionLabels","label")];break;case"PopUp":s.elements=[getRadioInputField("fullScreen","FullScreen",["YES","NO"]),getRadioInputField("fullWidth","FullWidth",["YES","NO"]),getInputField("maxWidth","Max. Width"),EmptyBox];break;case"Text":s.elements=[getInputField("placeholder","Placeholder"),EmptyBox,getArrayControl("InputFormatingAndMasking","formatElement","Format Element")];break;case"TextArea":s.elements=[getInputField("placeholder","Placeholder"),EmptyBox];break;case"SpeedoMeter":s.elements=[getInputField("segments","Segments Count"),getInputField("heading","Container Heading"),getInputField("heading","Container Heading"),getInputField("speedoCaption","Speedometer Caption"),getInputField("width","Speedometer Width")];break;case"RankCard":s.elements=[getInputField("rank","Rank"),getInputField("image","Image Url"),getInputField("title","Card Title"),getInputField("description","Card Description")];break;case"LeaderBoard":s.elements=[getInputField("valueLabel","Value Label"),getInputField("firstImage","First Image url"),getInputField("secondImage","Second Image url"),getInputField("thirdImage","Third Image url"),getTextArea("functionCode","Write Compare Code",!1)];break;case"CardSlider":s.elements=[getInputField("heading","Heading"),getInputField("iconName","Icon Name")];break;case"ProgressBar":case"ProgressBarCard":s.elements=[getInputField("heading","Heading"),getInputField("bottomLabel_1","First BottomLabel"),getInputField("bottomLabel_2","Second BottomLabel"),getInputField("bottomLabel_3","Third BottomLabel")];break;case"card":s.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("description","Description"),EmptyBox];break;case"Button":s.elements=[getSelectField("buttonType","Button Type"),getSelectField("iconName","Icon Name"),getSelectField("color","Color"),getInputField("tooltipMessage","Tooltip Message"),getSelectField("defaultStyle","Default Style"),EmptyBox];break;case"Graph":s.elements=[getInputField("height","Height"),getInputField("heading","Heading"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getInputField("bottomLabel","Bottom Label"),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")];break;case"WrapperSection":s.elements=[getRadioInputField("divider","Divider",["YES","No"]),EmptyBox];break;case"TabSection":s.elements=[getRadioInputField("verticalOrientation","Vertical Orientation",["YES","NO"]),getRadioInputField("lazyLoad","Lazy Load",["YES","NO"]),getArrayControl("sectionLabels","label")];break;case"Table":case"LazyLoadingTable":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("SelectionAvailable","Selection Available",["YES","NO"]),getRadioInputField("ColumnResizingAvailable","ColumnResizing Available",["YES","NO"]),getRadioInputField("DragAvailable","Drag Available",["YES","NO"]),getRadioInputField("downloadAllData","Download All Data",["YES","NO"]),getInputField("selectKey","Selection Key"),getArrayControl("Table_Download_Keys_Name","KeyName","Table Key Name"),sizeHolder];break;case"Radio":s.elements=[getArrayControl("sectionLabels","label","Options Of Radio")];break;case"Select":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"])];break;case"MultipleSelect":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),EmptyBox];break}return s},StyleSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/style",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:12,lg:12},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:"JSON Style",minRows:8,hideButton:!0}}}]},TableSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Components Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"widgetAddClickHandler",tooltipMessage:"Add New"},style:{float:"right"}}},{type:"Control",scope:"#/properties/elements",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"name",header:"Name"},{accessorKey:"type",header:"Type"},{header:"Edit Record",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"EditIcon",color:"primary",onClick:"editComponents",tooltipMessage:"Reject This Record"}}}},{header:"Delete",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",onClick:"deleteComponents",tooltipMessage:"Reject This Record"}}}}]}]}]},ValueTab={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/value",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Label"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}}]},ValidationSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/validation",layout:11.5,options:{elementLabelProp:"validationType",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/validationType",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Type"}}},{type:"Control",scope:"#/properties/validationValue",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Value"}}}]}}}]};var buildConfig=r=>{const s=_.cloneDeep(r);let i={};return s.pageName&&delete s.pageName,s.eventsSelected&&delete s.eventsSelected,(s.type==="Table"||s.type==="WrapperSection"||s.type==="TabSection")&&(i.elements=s.elements||[],s.elements&&delete s.elements),i.events=s.events||[],s.events&&delete s.events,i={...s,...i},i};const createLayoutFormat=r=>{if(_.isEmpty(r))return{xs:11,sm:11,md:5.5,lg:5.5};let s={};return r.map(i=>{s[i.key||"xs"]=+i.value||5.5}),s},flatObjectValueInArray=r=>{const s=Object.keys(r[0])[0];return r.map(g=>g[s])},clearFromLocalStorage=()=>{localStorage.removeItem("pageFormdata")},getNavigationHistory=(r,s)=>{if(s){let i=r.name;const g=s.split("."),m=[];return g.map((S,v)=>{if(v===0){m.push(S);return}m.push(`${m[v-1]}.${S}`)}),m.map(S=>{const v=_.get(r,S);v?i=i+` > ${(v==null?void 0:v.name)||(v==null?void 0:v.eventType)}`:i=i+" > NewComponent"}),{pageName:i}}},saveFormdataInLocalStorage=(r,s)=>{let i;if(s){const g=getFormdataFromLocalStorage();i=_.set(g,s,buildConfig(r))}else i=buildConfig(r);return localStorage.setItem("pageFormdata",JSON.stringify(i)),i},getFormdataFromLocalStorage=r=>{const s=localStorage.getItem("pageFormdata")?JSON.parse(localStorage.getItem("pageFormdata")):void 0;let i;return r&&(i=_.get(s,r),i={...i,...getNavigationHistory(s,r)}),i||(i=getNavigationHistory(s,r)),i||s};async function saveHandler(r,s,i,g){var v,I;(v=r.searchParams)==null||v.get("id");const m=(I=r.searchParams)==null?void 0:I.get("path");saveFormdataInLocalStorage(r.ctx.core.data,m);const S=JSON.parse(localStorage.getItem("pageFormdata"));if(_.isEmpty(r.ctx.core.errors))try{const F=await i(r,s,S);navigateHandler(r,!0,g?`/${g}?id=${F.id}`:"/PageMasterRecords")}catch{navigateHandler(r,!1)}}const navigateHandler=(r,s,i)=>{s?(localStorage.removeItem("pageFormdata"),r.navigate(i||-1),r.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(r.setValidation("ValidateAndShow"),r.setNotify({Fail:!0,FailMessage:"Errors on Page"}))};function okHandler(r){var i;const s=(i=r.searchParams)==null?void 0:i.get("path");console.log(r.ctx.core.errors),_.isEmpty(r.ctx.core.errors)?(saveFormdataInLocalStorage(r.ctx.core.data,s),r.navigate(-1),r.setNotify({SuccessMessage:"Save Successfully",Success:!0})):(r.setValidation("ValidateAndShow"),r.setNotify({Fail:!0,FailMessage:"Errors on Page"}))}const sectionLabels={Select:["Core","Properties","Value","style","Event","Validation"],MultipleSelect:["Core","Properties","Value","style","Event","Validation"],Table:["Core","Components","Properties","style","Event","Validation"],LeaderBoard:["Core","Components","Properties","style","Event","Validation"],WrapperSection:["Core","Components","Properties","style","Validation"],TabSection:["Core","Components","Properties","style","Validation"],SpeedoMeter:["Core","Properties","style","Event","Validation"],card:["Core","Properties","style","Event","Validation"],UploadFile:["Core","style","Event","Validation"],Graph:["Core","Properties","style","Event","Validation"],DownloadFile:["Core","style","Event","Validation"],Box:["Core","style","Event","Validation"],Properties:["Core","Properties","style","Event","Validation"],ProgressBarCard:["Core","Properties","style","Event","Validation"],RankCard:["Core","Properties","style","Event","Validation"],Slider:["Core","Components","style","Event","Validation"],Timer:["Core","style","Event","Validation"],Rank:["Core","style","Event","Validation"],Button:["Core","Properties","style","Event","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","style","Event","Validation"],Text:["Core","Properties","style","Event","Validation"],TextArea:["Core","Properties","style","Event","Validation"],PopUp:["Core","Components","Properties","style"],Stepper:["Core","Components","Properties","Event","style"],DataGrid:["Core","Components","Properties","Event","style"],InputSlider:["Core","Properties","style","Event","Validation"]},refreshPage=(r,s)=>{var g;const i=_.cloneDeep(componentBasicUiSchema);if(r){const m={Core:CoreSection,Value:ValueTab,style:StyleSection,Event:EventSection,Components:TableSection,Properties:buildPropertiesSection(r),Validation:ValidationSection},S=(g=sectionLabels[r])==null?void 0:g.map(v=>m[v]);i.elements[1].config.main.tabLabels=sectionLabels[r]||["Core","style","Event","Validation"],i.elements[1].elements=S||[CoreSection,StyleSection,EventSection,ValidationSection]}s.setUiSchema(i)};var Component=(r,s,i,g)=>({setPage:async function(){const m=await this.getFormdata();r.setFormdata(m);const S=this.getSchema();r.setSchema(S),this.refreshPage(m==null?void 0:m.type,r)},refreshPage,getFormdata:function(){var S;const m=(S=r.searchParams)==null?void 0:S.get("path");return getFormdataFromLocalStorage(m)},getSchema:function(){return ComponentSchema},okHandler:()=>okHandler(r),saveHandler:async()=>await saveHandler(r,g,i,"PageMaster"),onChange:function(){var m,S,v,I;((m=r==null?void 0:r.formData)==null?void 0:m.type)!==((S=r==null?void 0:r.newData)==null?void 0:S.type)&&((v=r==null?void 0:r.newData)==null?void 0:v.type)!==void 0&&this.refreshPage((I=r==null?void 0:r.newData)==null?void 0:I.type,r)},editComponents:function(){var I,F,Q;const m=s.path.split(".")[1],S=(I=r.searchParams)==null?void 0:I.get("path"),v=(F=r.searchParams)==null?void 0:F.get("id");if(saveFormdataInLocalStorage(r.ctx.core.data,S),S){const ge=`${(Q=r.searchParams)==null?void 0:Q.get("path")}.elements[${m}]`;r.searchParams.set("path",ge),r.setSearchParams(r.searchParams),this.setPage()}else r.navigate(`/Component?path=${`elements[${m}]`}&id=${v}`)},deleteComponents:function(){var F;const m=(F=r.searchParams)==null?void 0:F.get("path"),S=s.path.split(".")[1];r.formData.elements.splice(S,1);const v=saveFormdataInLocalStorage(r.ctx.core.data,m),I=m?_.get(v,m):v;r.setFormdata(I)},deleteEvent:function(){var I;const m=(I=r.searchParams)==null?void 0:I.get("path"),S=s.path.split(".")[1];r.formData.events.splice(S,1);const v=saveFormdataInLocalStorage(r.ctx.core.data,m);r.setFormdata(_.get(v,m))},widgetAddClickHandler:function(){var v;Array.isArray(r.formData.elements)||(r.formData.elements=[]);const m=(v=r.searchParams)==null?void 0:v.get("path");saveFormdataInLocalStorage(r.ctx.core.data,m);const S=`${m}.elements[${r.formData.elements.length}]`;r.searchParams.set("path",S),r.setSearchParams(r.searchParams),this.setPage()},eventEditHandler:function(){var F,Q;const m=s.path.split(".")[1],S=(F=r.searchParams)==null?void 0:F.get("path"),v=(Q=r.searchParams)==null?void 0:Q.get("id");saveFormdataInLocalStorage(r.ctx.core.data,S);const I=`${S}.events[${m}]`;r.navigate(`/ComponentEvents?path=${I}&id=${v}`)},eventAddHandler:function(){var I,F;const m=(I=r.searchParams)==null?void 0:I.get("path"),S=(F=r.searchParams)==null?void 0:F.get("id");Array.isArray(r.formData.events)||(r.formData.events=[]),saveFormdataInLocalStorage(r.ctx.core.data,m);const v=`${m}.events[${r.formData.events.length}]`;r.navigate(`/ComponentEvents?path=${v}&id=${S}`)},backHandler:function(){r.navigate(-1)}}),pageMaster=r=>{const{store:s,dynamicData:i,config:g,submitHandler:m,service:S}=r;return{setPage:async function(){const v=await this.getFormdata();s.setFormdata(v);const I=await this.getUiSchema(),F=await this.getSchema();s.setSchema(F),s.setUiSchema(I)},getFormdata:function(){var I;(I=s.searchParams)==null||I.get("id");const v=getFormdataFromLocalStorage();return v||(saveFormdataInLocalStorage(g),g)},getUiSchema:function(){return PageMasterUiSchema},getSchema:()=>PageMasterSchema,backHandler:()=>{localStorage.removeItem("pageFormdata"),s.navigate("/PageMasterRecords")},onAddClickHandler:function(){var F;const v=(F=s.searchParams)==null?void 0:F.get("id");Array.isArray(s.formData.elements)||(s.formData.elements=[]);const I=saveFormdataInLocalStorage(s.ctx.core.data);v?s.navigate(`/Component?path=${`elements[${I==null?void 0:I.elements.length}]`}&id=${v}`):s.navigate(`/Component?path=${`elements[${I==null?void 0:I.elements.length}]`}`)},saveHandler:async()=>await saveHandler(s,S,m),Edit_Components:Component(s,i,m,S).editComponents,Delete_Components:Component(s,i,m,S).deleteComponents,eventAddHandler:function(){var F;const v=(F=s.searchParams)==null?void 0:F.get("id");Array.isArray(s.formData.events)||(s.formData.events=[]),saveFormdataInLocalStorage(s.ctx.core.data);const I=`events[${s.formData.events.length}]`;s.navigate(`/ComponentEvents?path=${I}&id=${v}`)},editEvent:function(){var Q;const v=i.path.split(".")[1],I=(Q=s.searchParams)==null?void 0:Q.get("id");saveFormdataInLocalStorage(s.ctx.core.data);const F=`events[${v}]`;s.navigate(`/ComponentEvents?path=${F}&id=${I}`)},deleteEvent:function(){const v=i.path.split(".")[1];s.formData.events.splice(v,1);const I=saveFormdataInLocalStorage(s.ctx.core.data);s.setFormdata(I)}}};const EventSchema={type:"object",properties:{headers:{type:"array",items:{type:"object",properties:{headers_key:{type:"string"},headers_value:{type:"string"}}}},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},refreshElements:{type:"array",items:{type:"object",properties:{value:{type:"string"}}}},eventType:{type:"string",oneOf:[{title:"Click Event",const:"onClick"},{title:"Load Event",const:"onLoad"},{title:"Change Event",const:"onChange"},{title:"Mount Event",const:"onMount"},{title:"Success",const:"Success"},{title:"onStart",const:"onStart"},{title:"File Upload Event",const:"onUpload"},{title:"Back Event",const:"onBack"},{title:"Next Event",const:"onNext"},{title:"File Download Event",const:"onDownload"},{title:"Fail",const:"Fail"}]},Handler:{type:"string",oneOf:[{title:"Custom",const:"custom"},{title:"Api",const:"api"},{title:"Inbuilt Function",const:"inBuiltFunction"},{title:"Refresh",const:"refresh"}]},inBuiltFunctionType:{type:"string",oneOf:[{title:"RankProvider",const:"RankProvider"},{title:"Download File",const:"downloadFile"},{title:"Download",const:"download"}]},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}}},required:["eventType","Handler"]},EventUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/Component",options:{widget:"Box"},config:{layout:{xs:12,sm:12,md:2},main:{heading:"Component"},style:{float:"left"}}},{type:"Control",scope:"#/properties/pageName",options:{widget:"Box"},config:{layout:{xs:7,sm:7,md:9},main:{heading:" "},style:{float:"right",width:"auto",fontSize:"12px",color:"gray",paddingTop:"10px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:{xs:2,sm:2,md:.5},main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"TabLayout",config:{main:{tabLabels:["Core","Response Event"],defaultStyle:!0,id:"event"}},elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/eventType",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Event Type",type:"text"}}},getSelectField("Handler","Handler")]},{type:"WrapperLayout",config:{main:{divider:!0},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/heading",options:{widget:"Box"},config:{layout:8,main:{heading:"Response Event"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/AddButton",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"addEvent",tooltipMessage:"Back"},style:{float:"right"}}},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]}]},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Ok",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"okHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Save & Exit",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6}]},APISection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/method",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Method",type:"text"}}},{type:"Control",scope:"#/properties/path",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Path",type:"text",multiple:!1,options:[]}}},{type:"Control",scope:"#/properties/headers",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}},{type:"Control",scope:"#/properties/body",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}},getTextArea("apiBody","Transformer",!0,12)]},refreshSectionUiSchema={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/refreshElements",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}}]}}}]};var event=(r,s,i,g,m)=>({setPage:async function(){const S=await this.getFormData();r.setFormdata(S);const v=await this.getSchema();r.setSchema(v),this.refreshPage(S.Handler,r)},refreshPage:(S,v)=>{const I=_.cloneDeep(EventUiSchema),F=_.cloneDeep(EventSchema);S&&(S==="custom"?(I.elements[1].elements[0].elements[2]=getTextArea("eventCode","Write Custom Code",!1),F.required=["eventType","Handler","eventCode"]):S==="api"?(I.elements[1].elements[0].elements[2]=APISection,F.required=["eventType","Handler","method","path"]):S==="inBuiltFunction"?(I.elements[1].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name"),I.elements[1].elements[0].elements[3]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0,{xs:12,sm:12,md:6}),F.required=["eventType","Handler","inBuiltFunctionType"]):S==="refresh"&&(I.elements[1].elements[0].elements[2]=refreshSectionUiSchema,F.properties.refreshElements.required=["value"],F.properties.refreshElements.items.required=["value"],F.required=["eventType","Handler","refreshElements"])),m&&(F.properties.inBuiltFunctionType.oneOf=[...F.properties.inBuiltFunctionType.oneOf,...m]),v.setSchema(F),v.setUiSchema(I)},getFormData:Component(r,s,i,g).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>EventSchema,okHandler:()=>okHandler(r),saveHandler:async()=>await saveHandler(r,g,i,"PageMaster"),onChange:function(){var S,v,I;((S=r==null?void 0:r.formData)==null?void 0:S.Handler)!==((v=r==null?void 0:r.newData)==null?void 0:v.Handler)&&((I=r==null?void 0:r.newData)==null?void 0:I.Handler)!==void 0&&this.refreshPage(r.newData.Handler||r.formdata.Handler,r)},addEvent:function(){var I,F,Q;const S=(I=r.searchParams)==null?void 0:I.get("path");Array.isArray(r.formData.events)||(r.formData.events=[]),saveFormdataInLocalStorage(r.ctx.core.data,S);const v=`${S}.events[${(Q=(F=r.formData)==null?void 0:F.events)==null?void 0:Q.length}]`;r.searchParams.set("path",v),r.setSearchParams(r.searchParams),this.setPage()},editEvent:function(){var F;const S=s.path.split(".")[1],v=(F=r.searchParams)==null?void 0:F.get("path");saveFormdataInLocalStorage(r.ctx.core.data,v);const I=`${v}.events[${S}]`;r.searchParams.set("path",I),r.setSearchParams(r.searchParams),this.setPage()},deleteEvent:Component(r,s,i,g).deleteEvent,backHandler:function(){r.navigate(-1)}});const downloadFile$1=r=>{const s=r.name.split("."),i=r.data,g=window.atob(i);let m;m=new File([g],s[s.length-1]);const S=URL.createObjectURL(m),v=document.createElement("a");v.href=s[s.length-1]==="pdf"?"data:application/octet-stream;base64,"+i:S,v.download=`${r.name}`,document.body.appendChild(v),v.click(),URL.revokeObjectURL(S),document.body.removeChild(v)},doDownload=(r,s)=>{let i=`${s.defaults.baseURL}/${r.path}`;r!=null&&r.params&&Object.keys(r==null?void 0:r.params).map((S,v)=>{i=i+`${v===0?"?":"&"}${S}=${r==null?void 0:r.params[S]}`});const g=document.createElement("a");g.href=i,document.body.appendChild(g),g.click(),g.parentNode.removeChild(g)},executeEvents=async r=>{var g,m,S;let s=[],i=null;try{if(!await shouldEventExecute(r))return{response:void 0,events:void 0};i=await executeEventsHandler(r),s=(g=r.config)==null?void 0:g.events.filter(Q=>Q.eventType==="Success")}catch{const I=(S=(m=r.config)==null?void 0:m.events)==null?void 0:S.filter(Q=>Q.eventType==="Fail");s=(I==null?void 0:I.length)>0?I:[]}if((s==null?void 0:s.length)>0)for(const v of s)await executeEvents({...r,config:v,parentEventOutput:i});return i};async function executeEventsHandler(r){var s,i,g;if(r.config.Handler==="api")return await executeApiEventHandler(r);if(r.config.Handler==="inBuiltFunction")return await executeInBuiltFunctionHandler(r);if(r.config.Handler==="custom")return await executeCustomHandler(r);if(r.config.Handler==="refresh")return await executeRefreshHandler(r);if(r.config.Handler==="mergeFormdata")return await mergeFormdata(r.parentEventOutput,r.componentName,r.config,r.store,r.service);if(r.config.Handler==="onBackHandler")return(s=r.store.functionParameters)==null?void 0:s.handleBack();if(r.config.Handler==="onNextHandler")return(i=r.store.functionParameters)==null?void 0:i.handleNext();if(r.config.Handler==="onResetHandler")return(g=r.store.functionParameters)==null?void 0:g.handleReset()}async function executeRefreshHandler(r){const s=getRefreshElements(r.config,r.eventGroups);for(const i of s)for(const g of r.eventGroups.onLoad[i])await executeEvents({...r,config:g,componentName:i})}async function executeApiEventHandler(r){var v;const s={...(v=r.userValue)==null?void 0:v.payload},i={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},{body:g,headers:m}=await buildApiPayload(r.config,s,i,r.store,r.dynamicData,r.userValue,r.service);return await r.service[r.config.method](r.config.path,g,m&&{headers:m})}async function executeInBuiltFunctionHandler(params){let parameter={};if(params.config.funcParametersCode){const makeFunc=eval(params.config.funcParametersCode);parameter=makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service),params.serviceHolder[params.config.inBuiltFunctionType](parameter,params.service)}else params.serviceHolder[params.config.inBuiltFunctionType](params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service)}async function executeCustomHandler(params){const makeFunc=eval(params.config.eventCode),response=await makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName);return response}async function mergeFormdata(r,s,i,g,m){i.type==="Select"&&!(_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data))?g.setSchema(S=>{var v;return{...S,properties:{...S.properties,[s]:{...(v=S.properties)==null?void 0:v[s],oneOf:r.data}}}}):i.type==="MultipleSelect"&&!(_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data))?g.setSchema(S=>{var v;return{...S,properties:{...S.properties,[s]:{...(v=S.properties)==null?void 0:v[s],type:"array",items:{oneOf:r==null?void 0:r.data}}}}}):i.type==="page"?_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data)||g.setFormdata(S=>({...S,...r==null?void 0:r.data})):r&&(g.setFormdata(S=>{var v;return{...S,[s]:i.lazyLoading?(v=r==null?void 0:r.data)==null?void 0:v.data:r.data}}),await asyncOperation())}const buildBodyFormat=(r,s,i)=>{let g={...i==null?void 0:i.payload};return r.map(m=>{var S,v;if(typeof(m==null?void 0:m.value)!="string")g[m.key]=m.value;else if((S=m==null?void 0:m.value)!=null&&S.startsWith("$userValue")){const I=m.value.substring(11);g[m.key]=_.get(i,I)}else if((v=m==null?void 0:m.value)!=null&&v.startsWith("$")){const I=m.value.substring(1);g[m.key]=_.get(s,I)}else(m==null?void 0:m.value)==="*"&&(m==null?void 0:m.key)==="*"?g={...g,...s}:(m==null?void 0:m.value)==="*"?g[m.key]=s:g[m.key]=m.value}),g},buildHeadersFormat=r=>{const s={"X-Requested-With":"XMLHttpRequest"};return r.map(i=>{s[i.key]=i.value}),s};async function shouldEventExecute(r){var i,g;const s=(g=(i=r.config)==null?void 0:i.events)==null?void 0:g.filter(m=>m.eventType==="onStart");return(s==null?void 0:s.length)>0?await executeEventsHandler({...r,config:s[0]}):!0}async function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var r,s;if(compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((s=(r=store==null?void 0:store.ctx)==null?void 0:r.core)==null?void 0:s.data)||store.formData,userValue)}),compConfig.apiBody){const makeFunc=eval(compConfig.apiBody),data=await makeFunc(store,dynamicData,userValue,body);body=data}return{body,headers}}function getRefreshElements(r,s){var g;let i=[];return((g=r==null?void 0:r.refreshElements)==null?void 0:g.length)>0?i=r.refreshElements.map(m=>m.value):s!=null&&s.onLoad&&(i=Object.keys(s==null?void 0:s.onLoad),i.push(i[0])),console.log(i),i}function asyncOperation(){return new Promise((r,s)=>{setTimeout(()=>{r("Operation completed successfully!"),s(new Error("Operation failed!"))},50)})}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},extractEvents=r=>{function s(i){i.events&&i.events.forEach(g=>{var S;i.type&&(compType=i.type),eventGroups[g.eventType]||(eventGroups[g.eventType]={}),eventGroups[g.eventType][i.name]||(eventGroups[g.eventType][i.name]=[]);const m=(S=g==null?void 0:g.events)==null?void 0:S.find(v=>v.eventType==="Success");!m&&g.eventType==="onLoad"&&g.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:r.lazyLoading==="YES"}),!m&&(g.eventType==="onBack"||g.eventType==="onNext"||g.eventType==="onReset")&&g.events.push({Handler:`${g.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:r.lazyLoading==="YES"}),eventGroups[g.eventType][i.name].push({...g,type:compType})})}return s(r),r!=null&&r.elements&&r.elements.forEach(extractEvents),eventGroups};var service=r=>{eventGroups={},eventGroups=extractEvents(r.config);let s={config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:{downloadFile:downloadFile$1,download:doDownload,...r.functionsProvider},eventGroups,functionsProvider:r.functionsProvider};return{setPage:async function(){r.store.setFormdata({}),s={config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,functionsProvider:r.functionsProvider,serviceHolder:this,eventGroups},r.store.setSchema(i=>({...r.schema,properties:{...r.schema.properties,...i.properties}})),r.uiSchema.elements.push(notifyUiSchema),r.store.setUiSchema(r.uiSchema),await executeRefreshHandler({config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:this,eventGroups})},onClick:async function(){await this.callHandler("onClick")},onMount:async function(){await this.callHandler("onMount")},onFileDownload:async function(){await this.callHandler("onDownload")},onFileUpload:async function(){await this.callHandler("onUpload")},onPaginationChange:async function(i){var S;const g=[{key:"size",value:i.pagination.pageSize},{key:"pageIndex",value:i.pagination.pageIndex},{key:"sorting",value:i.sorting||[]},{key:"filters",value:i.columnFilters||[]},{key:"globalFilter",value:(S=i.globalFilter)!=null?S:""}],m=await this.updateConfigApiBody(i,g);return m==null?void 0:m.data},getSelectOptions:async function(i){if(i.serachValue!==""&&i.serachValue!==void 0){const g=[{key:"searchValue",value:i.serachValue},{key:"currentValue",value:i.currentValue}];return await this.updateConfigApiBody(i,g)}},onChange:async function(){if(eventGroups.onChange){const i=Object.keys(eventGroups.onChange);Promise.all(i.map(async g=>{var m,S;if(((m=r.store)==null?void 0:m.formData[g])!==r.store.newData[g]&&((S=r.store)==null?void 0:S.newData[g])!==void 0)for(const v of eventGroups.onChange[g])await executeEvents({...s,config:v,componentName:g})}))}},updateConfigApiBody:async function(i,g){var S;let m;for(const v of eventGroups==null?void 0:eventGroups.onLoad[i.path]){v.body?v.body=[...v.body,...g]:v.body=g;const I=(S=v==null?void 0:v.events)==null?void 0:S.filter(F=>F.Handler!=="mergeFormdata");v.events=I!=null?I:[],m=await executeEvents({...s,config:v,componentName:i.path})}return m},onBack:async function(i){var m,S;const g=((m=r.dynamicData)==null?void 0:m.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onBack",i),((S=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:S[g])===void 0&&(i==null||i.handleBack())},onNext:async function(i){var m,S;const g=((m=r.dynamicData)==null?void 0:m.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onNext",i),((S=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:S[g])===void 0&&(i==null||i.handleNext())},onReset:async function(i){var m,S;const g=((m=r.dynamicData)==null?void 0:m.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onReset",i),((S=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:S[g])===void 0&&(i==null||i.handleReset())},callHandler:async function(i,g){var S,v,I;const m=((S=r.dynamicData)==null?void 0:S.tableButtonPath)||r.dynamicData.path.split(".")[0];if(((v=eventGroups==null?void 0:eventGroups[i])==null?void 0:v[m])!==void 0)for(const F of(I=eventGroups==null?void 0:eventGroups[i])==null?void 0:I[m])s.store.functionParameters=g,await executeEvents({...s,config:F,componentName:m})},downloadFile:downloadFile$1,download:doDownload,...r.functionsProvider}},leaderBoard={type:"WrapperLayout",config:{main:{rowSpacing:3,header:!0,label:"LeaderBoard",divider:!0},style:{wrapperStyle:{height:{xs:850,sm:1e3}}},wrapperStyle:{position:"relative",width:"100%"}},elements:[{type:"Control",scope:"#/properties/leaderBoard/properties/firstImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"90px",md:"60px"},left:{xs:"calc(50% - 50px)",sm:"calc(50% - 50px)",md:"calc(50% - 100px)"},width:{xs:"100px",sm:"100px",md:"200px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"100px",sm:"100px",md:"200px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(25% - 45px)",sm:"calc(25% - 45px)",md:"calc(25% - 90px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(75% - 42.5px)",sm:"calc(75% - 42.5px)",md:"calc(75% - 85px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/firstName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"190px",md:"270px"},fontSize:{xs:"12px",md:"20px"},left:"calc(50% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%",zIndex:7},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(25% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(75% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/econd",config:{main:{heading:"2"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(25% - 12px)",md:"calc(25% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/first",config:{main:{heading:"1"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"175px",md:"230px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(50% - 12px)",md:"calc(50% - 16px)"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/third",config:{main:{heading:"3"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(75% - 12px)",md:"calc(75% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/table",options:{widget:"Table"},elements:[],config:{style:{tableHeadstyle:{fontWeight:900,background:"rgb(179, 198, 255)"},position:"absolute",top:{xs:"300px",sm:"300px",md:"390px",lg:"390px"},border:"2px solid rgb(179, 198, 255)",width:"95%",left:"2.5%"},main:{disableAction:!0,disableSelection:!0}}}]};const buildLeaderBoard=r=>{const s=_.cloneDeep(leaderBoard);if(r.elements){const i=r.elements.map((g,m)=>g.type?{...{widget:buildUiSchema(g),accessorKey:g.name,header:g.label||g.name}}:{accessorKey:g.name,header:g.label||g.name});s.elements[9].elements=i}return s.config.main.label=r.label,r.name&&(s.elements[0].scope=`#/properties/${r.name}/properties/firstImage`,s.elements[3].scope=`#/properties/${r.name}/properties/firstName`,s.elements[1].scope=`#/properties/${r.name}/properties/secondImage`,s.elements[4].scope=`#/properties/${r.name}/properties/secondName`,s.elements[2].scope=`#/properties/${r.name}/properties/thirdImage`,s.elements[5].scope=`#/properties/${r.name}/properties/thirdName`,s.elements[9].scope=`#/properties/${r.name}/properties/table`),r.firstImage&&(s.elements[0].config.main.url=r.firstImage),r.secondImage&&(s.elements[1].config.main.url=r.secondImage),r.secondImage&&(s.elements[2].config.main.url=r.thirdImage),r.layout&&(s.config.layout=createLayoutFormat(r.layout)),s};var progressBar={type:"Control",scope:"#/properties/pbc_progress",options:{widget:"ProgressBar"},config:{layout:6,main:{developOnlyProgresBar:!1,bottomLabel_3:"Remaining",heading:"PBC Details"}}};const buildProgressBarCard=(r,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,r.heading&&(i.config.main.heading=r.heading),r.bottomLabel_3&&(i.config.main.bottomLabel_3=r.bottomLabel_3),r.bottomLabel_2&&(i.config.main.bottomLabel_2=r.bottomLabel_2),r.bottomLabel_1&&(i.elements[0].config.main.bottomLabel_1=r.bottomLabel_1),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},buildProgressBar=(r,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,r.layout&&(i.config.layout=r.layout),i.config.main.heading=r.heading,r.bottomLabel_3&&(i.config.main.bottomLabel_3=r.bottomLabel_3),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.bottomLabel_2&&(i.config.main.bottomLabel_2=r.bottomLabel_2),r.bottomLabel_1&&(i.config.main.bottomLabel_1=r.bottomLabel_1),i},BarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:"Bar Graph",bottomLabel:"Name of Employe",numTicks:6,leftLabel:"Value in lakhs",axisLeft:!0,axisBottom:!0,hideTicks:!1,hideLeftAxisLine:!1,hideBottomAxisLine:!1,bottomAxisWidth:"10px",legend:{labelColor:"green",legendTitle:"",direction:"row",align:"none"}},style:{containerStyle:{width:"100%",height:300},headerStyle:{},tooltipStyle:{},labelStyle:{margin:{left:80,bottom:20},leftLabelOffset:50,bottomLabelOffset:10},barStyle:{color:{firstBarColor:"#6c5efb",secondBarColor:"#3f51b5"}},legendStyle:{legend:{lineHeight:"0.9em",fontSize:"8px",fontFamily:"arial",padding:"10px 10px",width:"30%",display:"flex",justifyContent:"center",border:"1px solid rgba(255, 255, 255, 0.3)",borderRadius:" 8px",marginRight:"auto"},legendTitle:{fontSize:"10px",marginBottom:"10px",fontWeight:"100"}}}}},PieGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:"Incentive Branch category wise",type:"PieGraph",bottomLabel:"Name of Employe",leftLabel:"Value",axisLeft:!0,axisBottom:!0,legendAvailable:!0,legend:{labelColor:"green",legendTitle:"Branches",direction:"row",align:"right"}},style:{containerStyle:{height:"340"},headerStyle:{},tooltipStyle:{backgroundColor:"black",width:"80px"},labelStyle:{},legendStyle:{legend:{},legendTitle:{}},pieStyle:{}}}},LineGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:12,main:{type:"LineGraph",header:"Quartely Incentive in Thousand",bottomLabel:"Years",leftLabel:"Incentive",gridHidden:!0,numHidden:!1,tooltipDataKey:["MAMA New Project","Second","Third"],axisLeft:!0,axisBottom:!0,hideLeftAxisLine:!1,hideBottomAxisLine:!1,legend:{labelColor:"green",legendTitle:"Our Assests",direction:"row",align:"right",colorRectWidth:20}},style:{containerStyle:{},headerStyle:{},labelStyle:{},lineStyle:{}}}},HorizontalBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:" ",type:"HorizontalBarGraph",bottomLabel:" ",leftLabel:"Value",axisLeft:!1,axisBottom:!0,hideBottomTicks:!1,hideLeftTicks:!1,hideLeftAxisLine:!0,hideBottomAxisLine:!1,bottomAxisWidth:"10px"},style:{containerStyle:{width:"100%"},headerStyle:{},tooltipStyle:{},labelStyle:{},barStyle:{color:"#6c5efb"}}}},buildHorizontalBarGraph=(r,s)=>{const i=_.cloneDeep(HorizontalBarGraph);return i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.scope=s,i.config.main.header=r.heading,r.barColor&&(i.config.barStyle.color=r.barColor),r.containerBackground&&(i.config.containerStyle.background=r.containerBackground),r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),i};var SpeedoMeter={type:"Control",scope:"#/properties/emptyBox",options:{widget:"SpeedoMeter"},config:{layout:{xs:12,sm:12,md:11.7,lg:11.7},width:350,segments:"5",main:{currentValueText:"Your Score",customSegmentLabels:[],data:{maxValue:1e5,value:5e4,minValue:0}},style:{segmentColors:[],ringWidth:57,needleHeightRatio:.7,needleColor:"#3f51b5",startColor:"red",textColor:"black",endColor:"green",containerStyle:{background:"white",padding:"20px",borderRadius:"20px",display:"flex",flexDirection:"column",margin:"auto",justifyContent:"center",fontFamily:"Roboto",fontWeight:500},headerStyle:{textAlign:"left",width:"100%",paddingBottom:"20px"}}}};const buildSpeedoMeter=(r,s)=>{const i=_.cloneDeep(SpeedoMeter);if(i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.heading&&(i.config.main.header=r.heading),r.segments&&(i.config.main.segments=r.segments),r.style){const g=JSON.parse(r.style);g!=null&&g.style&&(i.config.style={...i.config.style,...g.style}),g!=null&&g.containerStyle&&(i.config.style.containerStyle={...i.config.style.containerStyle,...g.containerStyle})}return r.width&&(i.config.main.width=r.width),r.speedoCaption&&(i.config.main.currentValueText=r.speedoCaption),r.data&&(i.config.main.data=r.data),r.needleColor&&(i.config.style.needleColor=r.needleColor),r.segments&&(i.config.style.segments=r.segments),r.endColor&&(i.config.style.endColor=r.endColor),r.startColor&&(i.config.style.startColor=r.startColor),r.segmentColors&&(i.config.style.segmentColors=r.segmentColors),i},buildPieGraph=(r,s)=>{const i=_.cloneDeep(PieGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.height&&(i.config.style.containerStyle.height=r.height),r.legendHide&&(i.config.main.legendAvailabe=r.legendHide!=="YES"),i.scope=s,i.config.main.header=r.heading,r.legendLabels&&(i.config.main.tooltipDataKey=flatObjectValueInArray(r.legendLabels)),r.pieArcColors&&(i.config.style.pieStyle.colorRange=flatObjectValueInArray(r.pieArcColors)),i},buildStackbarGraph=(r,s)=>{const i=_.cloneDeep(BarGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.legendHide&&(i.config.main.legendAvailable=!1),i.config.main.type=r.graphType,i.config.main.header=r.heading,r.barColor&&(i.config.barStyle.color=r.barColor),r.containerBackground&&(i.config.containerStyle.background=r.containerBackground),r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),i.scope=s,i};var RunnerBoyProgressBar={type:"Control",scope:"#/properties/path",options:{widget:"RunnerBoyProgressBar"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const RunnerBoyProgressbar=(r,s)=>{const i=_.cloneDeep(RunnerBoyProgressBar);return i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(r,s)=>{const i=_.cloneDeep(Tabsection);return i.scope=s,r.lazyLoad&&(i.config.main.lazyLoad=r.lazyLoad==="YES"),r.orientation&&(i.config.main.orientation=r.orientation==="YES"?"vertical":"horizontal"),r.sectionLabels&&(i.config.main.tabLabels=r.sectionLabels.map(g=>g.label)),i.config.main.id=r.name,i};var WrapperSection={type:"WrapperLayout",config:{main:{label:"Default Label",divider:!0},defaultStyle:!0},elements:[]};const buildWrapperSection=(r,s)=>{const i=_.cloneDeep(WrapperSection);return i.scope=s,i.config.main.label=r.label,i.config.main.divider=r.divider==="YES",r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var TextInputField={type:"Control",scope:"#/properties/text",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:""},style:{}}};const buildTextField=(r,s)=>{const i=_.cloneDeep(TextInputField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.InputFormatingAndMasking&&(i.config.main.formatStrArray=r.InputFormatingAndMasking.map(g=>g.formatElement)),r.placeholder&&(i.config.main.placeholder=r.placeholder),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,i};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"text",freeSole:!1}}};const buildSelect=(r,s)=>{const i=_.cloneDeep(SelectInputField);return i.config.main.label=r.label,r.value&&(i.config.main.options=r.value),r.freeSolo&&(i.config.main.freeSolo=r.freeSolo==="YES"),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.scope=s,i};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{name:"Compare",variant:"contained",color:"info",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(r,s)=>{const i=_.cloneDeep(Button);return r.buttonType&&(i.options.widget=r.buttonType==="IconButton"?"IconButton":"Button",r.buttonType==="ButtonWithIconAndText"?i.config.main.startIcon=r.iconName:i.config.main.icon=r.iconName),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.tooltipMessage&&(i.config.main.tooltipMessage=r.tooltipMessage),r.defaultStyle&&(r.buttonType==="IconButton"?i.config.main.styleDefault=r.defaultStyle==="true":i.config.main.enableDefaultStyle=r.defaultStyle!=="true"),i.scope=s,r.style&&(i.config.style=JSON.parse(r.style)),r.size&&(i.config.main.size=r.size),r.color&&(i.config.main.color=r.color),r.label&&(i.config.main.name=r.label),i};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{onMount:"onMount",allRowData:[],downloadAllData:!1,columns:{dataColumns:[],actionColumns:[]}}}},lazyLoadingTable={type:"Control",scope:"#/properties/LazyLoadingTable",options:{widget:"LazyLoadingTable"},elements:[],config:{main:{onMount:"onMount",columns:{}}}};const buildTable=(r,s)=>{const i=_.cloneDeep(Table);return i.scope=s,r.style&&(i.config.style=JSON.parse(r.style)),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),r.SelectionAvailable&&(i.config.main.Selection=r.SelectionAvailable==="YES"),r.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=r.ColumnResizingAvailable!=="YES"),r.DragAvailable&&(i.config.main.enableDrag=r.DragAvailable==="YES"),r.downloadAllData&&(i.config.main.downloadAllData=r.downloadAllData==="YES"),r.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=r.Table_Download_Keys_Name.map(g=>g.KeyName)),r.selectKey&&(i.config.main.selectKey=r.selectKey),i},buildLazyLoadingTable=(r,s)=>{const i=_.cloneDeep(lazyLoadingTable);return i.scope=s,r.style&&(i.config.style=JSON.parse(r.style)),r.SelectionAvailable&&(i.config.main.Selection=r.SelectionAvailable==="YES"),r.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=r.ColumnResizingAvailable!=="YES"),r.DragAvailable&&(i.config.main.enableDrag=r.DragAvailable==="YES"),r.selectKey&&(i.config.main.selectKey=r.selectKey),r.downloadAllData&&(i.config.main.downloadAllData=r.downloadAllData==="YES"),r.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=r.Table_Download_Keys_Name.map(g=>g.KeyName)),i.config.main.label=r.label,i};var Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}};const buildLabel=(r,s)=>{const i=_.cloneDeep(Box);return i.scope=s,i.config.main.heading=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},uploadFile={type:"Control",scope:"#/properties/attachment",config:{main:{label:"AttachmentFile",onClick:"onClick",required:!0,errorMessage:"Attachment File is not uploaded"},style:{backgroundColor:"none"},layout:{lg:5.5,md:5.5,sm:11,xs:11}},options:{widget:"UploadFile"}},downloadFile={type:"Control",scope:"#/properties/downloadAttachment",config:{main:{onClick:"onClick",required:!1},style:{backgroundColor:"none"},layout:{lg:5.5,md:5.5,sm:11,xs:11}},options:{widget:"DownloadFile"}},buildUploadFile=(r,s)=>{const i=_.cloneDeep(uploadFile);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=r.layout),r.layout&&(uploadFile.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=r.style),r.required&&(i.config.main.required=!0),i.config.main.errorMessage=r.errorMessage,i},buildDownloadFile=(r,s)=>{const i=_.cloneDeep(downloadFile);return i.scope=s,r.layout&&(i.config.layout=r.layout),r.style&&(i.config.style=r.style),r.required&&(i.config.main.required=!0),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.errorMessage&&(i.config.main.errorMessage=r.errorMessage),i};var Card={type:"WrapperLayout",config:{main:{rowSpacing:.5},style:{wrapperStyle:{position:"relative",color:"white",height:{xs:"120px",md:"160px"},width:"100%",textAlign:"left",background:"#3f51b5",borderRadius:"20px"}},layout:{xs:12,sm:12,md:6,lg:6}},elements:[{type:"Control",scope:"#/properties/programType",config:{main:{heading:"$5000.00"},style:{position:"absolute",left:"10%",top:"15%",color:"#f5effc",height:"80px",display:"flex",fontSize:{xs:"24px",md:"32px"},alignItems:"center",background:"inherit",justifyContent:"flex-start"},layout:5},options:{widget:"Box"}},{type:"Control",scope:"#/properties/programType",config:{main:{url:"$"},style:{color:"#f5effc",objectFit:"contain",position:"absolute",top:"10px",right:"10px",height:"80%",width:"35%",display:"flex",fontSize:"34px",alignItems:"center",background:"inherit",padding:"20px",justifyContent:"left"},layout:5},options:{widget:"Image"}},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"Total Earnings"},style:{position:"absolute",top:"calc(60%)",alignItems:"center",color:"#8999e8",fontSize:"16px",left:"10%",background:"inherit",justifyContent:"center"},layout:12},options:{widget:"Box"}}]};const buildCard=(r,s)=>{const i=_.cloneDeep(Card);return r.style&&(i.config.style=JSON.parse(r.style)),i.elements[0].scope=`#/properties/${r.name}/properties/value`,i.elements[1].scope=`#/properties/${r.name}/properties/url`,i.elements[2].scope=`#/properties/${r.name}/properties/description`,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.label&&(i.elements[0].config.main.heading=r.label),r.url&&(i.elements[1].config.main.url=r.url),r.description&&(i.elements[2].config.main.heading=r.description),i};var DateInputField={type:"Control",scope:"#/properties/date",options:{widget:"DateInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"date"}}};const buildDate=(r,s)=>{const i=_.cloneDeep(DateInputField);return i.config.main.label=r.label,i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var RankCard={type:"Control",scope:"#/properties/path",options:{widget:"RankCard"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRankCard=(r,s)=>{const i=_.cloneDeep(RankCard);return i.scope=s,r.image&&(i.config.main.url=r.image),r.title&&(i.config.main.title=r.title),r.description&&(i.config.main.description=r.description),r.rank&&(i.config.main.rank=`#${r.rank}`),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var RollAndDice={type:"Control",scope:"#/properties/path",options:{widget:"RollAndDice"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRollAndDice=(r,s)=>{const i=_.cloneDeep(RollAndDice);return r.name&&(i.scope=s),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var Timer={type:"Control",scope:"#/properties/timer",options:{widget:"Timer"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{},style:{digitContainer:{borderRadius:"4px",textShawdow:"none",width:"22%"},container:{backgroundColor:"#FFFFFF",borderRadius:"18px"},containerLabelColor:{color:"red"}}}};const buildTimer=(r,s)=>{const i=_.cloneDeep(Timer);return i.scope=s,r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var MultipleSelect={type:"Control",scope:"#/properties/path",options:{widget:"MultipleSelect"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"text",multiple:!0,variant:"standard",options:[]}}};const buildMultiSelect=(r,s)=>{const i=_.cloneDeep(MultipleSelect);return i.scope=s,r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.value&&(i.config.main.options=r.value),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),i},buildBasicUiSchema=r=>({type:"HorizontalLayout",pageName:`${r.name}`,scope:`${r.name}`,elements:[]}),TextArea={type:"Control",scope:"#/properties/textarea",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px",background:"white",color:"black"}},main:{heading:"TextArea",minRows:4,hideButton:!0}}},buildTextArea=(r,s)=>{const i=_.cloneDeep(TextArea);return i.config.main.heading=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),r.placeholder&&(i.config.main.placeholder=r.placeholder),i.scope=s,i};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(r,s)=>{const i=_.cloneDeep(cardSlider);return r.name&&(i.scope=s),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(r,s)=>{const i=_.cloneDeep(Checkbox);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},buildLineGraph=(r,s)=>{const i=_.cloneDeep(LineGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.header=r.heading,r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),r.legendHide&&(i.config.main.legendAvailabe=r.legendHide!=="YES"),r.legendLabels&&(i.config.main.tooltipDataKey=flatObjectValueInArray(r.legendLabels)),r.pieArcColors&&(i.config.style.lineStyle.colorRange=flatObjectValueInArray(r.pieArcColors)),i.scope=s,i},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Enabled",options:["YES","NO"],errorMessage:"Enabled is not marked as YES or NO"}}},buildRadio=(r,s)=>{const i=_.cloneDeep(RadioUiSchema);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.sectionLabels&&(i.config.main.options=r.sectionLabels.map(g=>g.label||g.Options)),r.style&&(i.config.style=JSON.parse(r.style)),i};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},main:{},style:{}}};const buildEmptyBox=(r,s)=>{const i=_.cloneDeep(emptyBox);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[]}}},buildArray=(r,s)=>{const i=_.cloneDeep(ArrayUiSchema);return i.scope=s,i},TextField={type:"Control",scope:"#/properties/AAdhar",layout:12,options:{widget:"InputField"},config:{main:{label:"Adhaar Card",formatStrArray:["9","9","9","9"," ","9","9","9","9"," ","X9","X9","X9","X9"],placeholder:"XXXX XXXX XXXX"}}},buildAdhaarField=(r,s)=>{const i=_.cloneDeep(TextField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,i},PanField={type:"Control",scope:"#/properties/pan",layout:12,options:{widget:"InputField"},config:{main:{label:"Pan Card",placeholder:"AAAAA0000A",formatStrArray:["A","A","A","A","A","9","9","9","9","A"]}}},buildPanField=(r,s)=>{const i=_.cloneDeep(PanField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,i},FileInput={type:"Control",scope:"#/properties/docAggrementCopy",options:{widget:"FileInputField"},config:{layout:11.5,main:{required:!1,onUpload:"onFileUpload",onDownload:"onFileDownload",label:"Aggrement Copy"},style:{backgroundColor:"none"}}},buildFileInput=(r,s)=>{const i=_.cloneDeep(FileInput);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},Stepper={type:"Control",scope:"#/properties/Stepper",options:{widget:"Stepper"},config:{main:{steps:[{label:"First"},{label:"Second"},{label:"Third"}],resetButton:!1,resetText:"Reset",orientation:"vertical"}},elements:[]},buildStepper=(r,s)=>{const i=_.cloneDeep(Stepper);return i.scope=s,i.config.main.resetButton=r.resetButton==="YES",r.defaultButtonAvailable&&(i.config.main.defaultButtonAvailable=r.defaultButtonAvailable==="YES"),i.config.main.resetText=r.resetText||"ResetData",i.config.main.completeText=r.completeText||"Complete Text",i.config.main.orientation=r.orientation||"horizontal",r.sectionLabels&&(i.config.main.steps=r.sectionLabels.map((g,m)=>({label:g.label,id:m}))),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},PopUP={type:"Control",scope:"#/properties/text",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{label:"PopUp",fullScreen:!1,fullWidth:!1,maxWidth:!1,alignItems:!1,spacing:2},style:{}}},buildPopUp=(r,s)=>{const i=_.cloneDeep(PopUP);return i.scope=s,i.config.main.title=r.label,i.config.main.fullScreen=r.fullScreen==="YES",i.config.main.fullWidth=r.fullWidth==="YES",i.config.main.maxWidth=r.maxWidth||!1,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(PopUP.config.style=JSON.parse(r.style)),i},dataGrid={type:"Control",scope:"#/properties/dataGrid",layout:12,options:{widget:"DataGrid"},elements:[],config:{main:{elevation:0,useWrapper:!1},style:{}}},buildDataGrid=(r,s)=>{const i=_.cloneDeep(dataGrid);return i.scope=s,r.elevation&&(i.config.main.elevation=+r.elevation),i.config.main.divider=r.divider!=="NO",r.height&&(i.config.main.height=`${r.height}px`),r.justifyContent&&(i.config.main.justifyContent=r.justifyContent),r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.cardLayout&&(i.config.cardLayout=createLayoutFormat(r.cardLayout)),r.style&&(i.config.style=JSON.parse(r.style)),i},InputSlider={type:"Control",scope:"#/properties/inputSlider",options:{widget:"InputSlider"},config:{layout:12,main:{limitToMax:!1,max:1e4,step:1e3,min:0,label:"Slider"}}},buildInputSlider=(r,s)=>{const i=_.cloneDeep(InputSlider);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.limitToMax&&(i.config.main.limitToMax=r.limitToMax==="YES"),r.max&&(i.config.main.max=r.max),r.step&&(i.config.main.step=r.step),r.min&&(i.config.main.min=r.min),r.style&&(i.config.main.defaultStyle=JSON.parse(r.style)),i};exports.schema={type:"object",properties:{},required:[]};function buildRule(r,s,i){var g,m,S,v,I,F,Q,nt,ge,Gt;i?(S=(m=(g=exports.schema.properties)==null?void 0:g[s])==null?void 0:m.items)!=null&&S.properties&&((Q=(F=(I=(v=exports.schema.properties)==null?void 0:v[s])==null?void 0:I.items)==null?void 0:F.properties)!=null&&Q[r.name]||(exports.schema.properties[s].items.properties[r.name]={},r.type==="Select"&&((nt=r.value)==null?void 0:nt.length)>0?exports.schema.properties[s].items.properties[r.name]={oneOf:r.value.map(U=>({const:U.value,title:U.label}))}:r.type==="MultipleSelect"&&((ge=r.value)==null?void 0:ge.length)>0&&(exports.schema.properties[s].items.properties[r.name]={items:{oneOf:r.value.map(U=>({const:U.value,title:U.label}))}}))):(r.type==="Select"||r.type==="MultipleSelect")&&((Gt=r.value)==null?void 0:Gt.length)>0&&(r.type==="Select"?exports.schema.properties[r.name]={oneOf:r.value.map(U=>({const:U.value,title:U.label}))}:r.type==="MultipleSelect"&&(exports.schema.properties[r.name]={items:{oneOf:r.value.map(U=>({const:U.value,title:U.label}))}})),r.validation&&r.validation.forEach(U=>{var Ge,gt,ae,Oe,$t,me,$e,he,Ke,we,rt,Lt;s?(ae=(gt=(Ge=exports.schema.properties)==null?void 0:Ge[s])==null?void 0:gt.items)!=null&&ae.properties&&(($e=(me=($t=(Oe=exports.schema.properties)==null?void 0:Oe[s])==null?void 0:$t.items)==null?void 0:me.properties)!=null&&$e[r.name]||(exports.schema.properties[s].items.properties[r.name]={},r.type==="Select"||((he=r.value)==null?void 0:he.length)>0?exports.schema.properties[s].items.properties[r.name]={oneOf:r.value.map(mt=>({const:mt.value,title:mt.label}))}:(r.type==="MultipleSelect"||((Ke=r.value)==null?void 0:Ke.length)>0)&&(exports.schema.properties[s].items.properties[r.name]={items:{oneOf:r.value.map(mt=>({const:mt.value,title:mt.label}))}})),U.validationType==="required"?(Lt=(rt=(we=exports.schema.properties)==null?void 0:we[s])==null?void 0:rt.items)==null||Lt.required.push(r.name):(exports.schema.properties[s].items.properties[r.name].type="string",exports.schema.properties[s].items.properties[r.name][U.validationType]=isNaN(U.validationValue)?U.validationValue:Number(U.validationValue))):(exports.schema.properties[r.name]||(exports.schema.properties[r.name]={}),U.validationType==="required"?exports.schema.required.push(r.name):(exports.schema.properties[r.name].type="string",exports.schema.properties[r.name][U.validationType]=isNaN(U.validationValue)?U.validationValue:Number(U.validationValue)))})}const buildSchema=(r,s,i)=>(buildRule(r,s,i),r!=null&&r.elements&&(r.type=="Table"||r.type=="Array"?(exports.schema.properties[r.name]||(exports.schema.properties[r.name]={type:"array",items:{type:"object",properties:{},required:[]}}),r.elements.map((g,m)=>{buildSchema(g,r.name,r.type==="Array")})):r.elements.map((g,m)=>{buildSchema(g)})),exports.schema),buildUiSchema=r=>{let s={};const i=`#/properties/${r.name}`;switch(r.type){case"InputSlider":s=buildInputSlider(r,i);break;case"DataGrid":s=buildDataGrid(r,i);break;case"Stepper":s=buildStepper(r,i);break;case"PopUp":s=buildPopUp(r,i);break;case"FileInput":s=buildFileInput(r,i);break;case"AadharcardText":s=buildAdhaarField(r,i);break;case"PanCardText":s=buildPanField(r,i);break;case"TabSection":s=buildTabSection(r,i);break;case"RunnerBoyProgressBar":s=RunnerBoyProgressbar(r,i);break;case"WrapperSection":s=buildWrapperSection(r,i);break;case"Text":s=buildTextField(r,i);break;case"TextArea":s=buildTextArea(r,i);break;case"Date":s=buildDate(r,i);break;case"Select":s=buildSelect(r,i);break;case"Radio":s=buildRadio(r,i);break;case"Button":s=buildButton(r,i);break;case"Table":s=buildTable(r,i);break;case"Array":s=buildArray(r,i);break;case"LazyLoadingTable":s=buildLazyLoadingTable(r,i);break;case"Box":s=buildLabel(r,i);break;case"CheckBox":s=buildCheckbox(r,i);break;case"UploadFile":s=buildUploadFile(r,i);break;case"DownloadFile":s=buildDownloadFile(r,i);break;case"EmptyBox":s=buildEmptyBox(r);break;case"card":s=buildCard(r);break;case"Graph":switch(r.graphType){case"BarGraph":case"StackBarGraph":s=buildStackbarGraph(r,i);break;case"LineGraph":s=buildLineGraph(r,i);break;case"PieGraph":s=buildPieGraph(r,i);break;case"HorizontalBarGraph":s=buildHorizontalBarGraph(r,i);break}break;case"ProgressBar":s=buildProgressBar(r,i);break;case"SpeedoMeter":s=buildSpeedoMeter(r,i);break;case"ProgressBarCard":s=buildProgressBarCard(r,i);break;case"RankCard":s=buildRankCard(r,i);break;case"Rank":s=buildRollAndDice(r,i);break;case"Slider":s=buildSlider(r,i);break;case"Timer":s=buildTimer(r,i);break;case"MultipleSelect":s=buildMultiSelect(r,i);break;case"LeaderBoard":s=buildLeaderBoard(r);break;default:exports.schema={type:"object",properties:{},required:[]},s=buildBasicUiSchema(r)}if(r!=null&&r.elements){if((r==null?void 0:r.type)==="LeaderBoard")return s;if(r.type=="Table"){const g={};r.sizeHolder&&r.sizeHolder.map((m,S)=>{g[m.keyName]=m.value}),s.elements=r.elements.map((m,S)=>m.type?{accessorKey:m.name,header:m.label||m.name,size:g[m.name]||180,widget:buildUiSchema(m)}:{accessorKey:m.name,header:m.label||m.name,size:g[m.name]||180})}else r.type=="Array"?s.options.detail.elements=r.elements.map((g,m)=>buildUiSchema(g)):s.elements=r.elements.map((g,m)=>buildUiSchema(g))}return s};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,exports.buildUiSchema=buildUiSchema,exports.clearFromLocalStorage=clearFromLocalStorage,exports.pageMaster=pageMaster,exports.pageMasterComponents=Component,exports.pageMasterEvents=event,exports.pageService=service,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
28
28
  //# sourceMappingURL=impaktapps-ui-builder.umd.js.map