impaktapps-ui-builder 1.0.441 → 1.0.442
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/impaktapps-ui-builder.es.js +12 -6
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +5 -5
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +6 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +4 -3
- package/src/impaktapps-ui-builder/runtime/services/service.ts +4 -1
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* Released under MIT license <https://lodash.com/license>
|
|
6
6
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
7
7
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
8
|
-
*/(function(n,l){(function(){var o,u="4.17.21",g=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",x="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",E=500,F="__lodash_placeholder__",B=1,z=2,j=4,X=1,V=2,M=1,ae=2,Fe=4,Z=8,qe=16,Se=32,Je=64,Le=128,at=256,Et=512,fn=30,gn="...",yn=800,hn=16,Gt=1,bn=2,xn=3,ht=1/0,lt=9007199254740991,dl=17976931348623157e292,vn=0/0,Ge=4294967295,ml=Ge-1,fl=Ge>>>1,gl=[["ary",Le],["bind",M],["bindKey",ae],["curry",Z],["curryRight",qe],["flip",Et],["partial",Se],["partialRight",Je],["rearg",at]],Ft="[object Arguments]",Sn="[object Array]",yl="[object AsyncFunction]",Wt="[object Boolean]",Vt="[object Date]",hl="[object DOMException]",Cn="[object Error]",wn="[object Function]",Mi="[object GeneratorFunction]",Oe="[object Map]",Kt="[object Number]",bl="[object Null]",Xe="[object Object]",Ni="[object Promise]",xl="[object Proxy]",qt="[object RegExp]",He="[object Set]",Jt="[object String]",_n="[object Symbol]",vl="[object Undefined]",Xt="[object WeakMap]",Sl="[object WeakSet]",Zt="[object ArrayBuffer]",Lt="[object DataView]",fo="[object Float32Array]",go="[object Float64Array]",yo="[object Int8Array]",ho="[object Int16Array]",bo="[object Int32Array]",xo="[object Uint8Array]",vo="[object Uint8ClampedArray]",So="[object Uint16Array]",Co="[object Uint32Array]",Cl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,_l=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ki=/&(?:amp|lt|gt|quot|#39);/g,Oi=/[&<>"']/g,Il=RegExp(ki.source),Tl=RegExp(Oi.source),El=/<%-([\s\S]+?)%>/g,Fl=/<%([\s\S]+?)%>/g,Hi=/<%=([\s\S]+?)%>/g,Ll=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Al=/^\w*$/,Bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wo=/[\\^$.*+?()[\]{}|]/g,Dl=RegExp(wo.source),_o=/^\s+/,Pl=/\s/,Rl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ml=/\{\n\/\* \[wrapped with (.+)\] \*/,Nl=/,? & /,kl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ol=/[()=,{}\[\]\/\s]/,Hl=/\\(\\)?/g,Ul=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ui=/\w*$/,zl=/^[-+]0x[0-9a-f]+$/i,Yl=/^0b[01]+$/i,$l=/^\[object .+?Constructor\]$/,Gl=/^0o[0-7]+$/i,Wl=/^(?:0|[1-9]\d*)$/,Vl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,In=/($^)/,Kl=/['\n\r\u2028\u2029\\]/g,Tn="\\ud800-\\udfff",ql="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Xl="\\u20d0-\\u20ff",zi=ql+Jl+Xl,Yi="\\u2700-\\u27bf",$i="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",Gi="A-Z\\xc0-\\xd6\\xd8-\\xde",Wi="\\ufe0e\\ufe0f",Vi=Zl+Ql+jl+es,Io="['\u2019]",ts="["+Tn+"]",Ki="["+Vi+"]",En="["+zi+"]",qi="\\d+",ns="["+Yi+"]",Ji="["+$i+"]",Xi="[^"+Tn+Vi+qi+Yi+$i+Gi+"]",To="\\ud83c[\\udffb-\\udfff]",os="(?:"+En+"|"+To+")",Zi="[^"+Tn+"]",Eo="(?:\\ud83c[\\udde6-\\uddff]){2}",Fo="[\\ud800-\\udbff][\\udc00-\\udfff]",At="["+Gi+"]",Qi="\\u200d",ji="(?:"+Ji+"|"+Xi+")",is="(?:"+At+"|"+Xi+")",er="(?:"+Io+"(?:d|ll|m|re|s|t|ve))?",tr="(?:"+Io+"(?:D|LL|M|RE|S|T|VE))?",nr=os+"?",or="["+Wi+"]?",rs="(?:"+Qi+"(?:"+[Zi,Eo,Fo].join("|")+")"+or+nr+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ir=or+nr+rs,ss="(?:"+[ns,Eo,Fo].join("|")+")"+ir,ps="(?:"+[Zi+En+"?",En,Eo,Fo,ts].join("|")+")",us=RegExp(Io,"g"),cs=RegExp(En,"g"),Lo=RegExp(To+"(?="+To+")|"+ps+ir,"g"),ds=RegExp([At+"?"+Ji+"+"+er+"(?="+[Ki,At,"$"].join("|")+")",is+"+"+tr+"(?="+[Ki,At+ji,"$"].join("|")+")",At+"?"+ji+"+"+er,At+"+"+tr,ls,as,qi,ss].join("|"),"g"),ms=RegExp("["+Qi+Tn+zi+Wi+"]"),fs=/[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"],ys=-1,ee={};ee[fo]=ee[go]=ee[yo]=ee[ho]=ee[bo]=ee[xo]=ee[vo]=ee[So]=ee[Co]=!0,ee[Ft]=ee[Sn]=ee[Zt]=ee[Wt]=ee[Lt]=ee[Vt]=ee[Cn]=ee[wn]=ee[Oe]=ee[Kt]=ee[Xe]=ee[qt]=ee[He]=ee[Jt]=ee[Xt]=!1;var Q={};Q[Ft]=Q[Sn]=Q[Zt]=Q[Lt]=Q[Wt]=Q[Vt]=Q[fo]=Q[go]=Q[yo]=Q[ho]=Q[bo]=Q[Oe]=Q[Kt]=Q[Xe]=Q[qt]=Q[He]=Q[Jt]=Q[_n]=Q[xo]=Q[vo]=Q[So]=Q[Co]=!0,Q[Cn]=Q[wn]=Q[Xt]=!1;var hs={\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"},bs={"&":"&","<":"<",">":">",'"':""","'":"'"},xs={"&":"&","<":"<",">":">",""":'"',"'":"'"},vs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ss=parseFloat,Cs=parseInt,rr=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,ue=rr||ws||Function("return this")(),Ao=l&&!l.nodeType&&l,bt=Ao&&!0&&n&&!n.nodeType&&n,ar=bt&&bt.exports===Ao,Bo=ar&&rr.process,Ae=function(){try{var f=bt&&bt.require&&bt.require("util").types;return f||Bo&&Bo.binding&&Bo.binding("util")}catch{}}(),lr=Ae&&Ae.isArrayBuffer,sr=Ae&&Ae.isDate,pr=Ae&&Ae.isMap,ur=Ae&&Ae.isRegExp,cr=Ae&&Ae.isSet,dr=Ae&&Ae.isTypedArray;function Ce(f,S,b){switch(b.length){case 0:return f.call(S);case 1:return f.call(S,b[0]);case 2:return f.call(S,b[0],b[1]);case 3:return f.call(S,b[0],b[1],b[2])}return f.apply(S,b)}function _s(f,S,b,L){for(var N=-1,W=f==null?0:f.length;++N<W;){var le=f[N];S(L,le,b(le),f)}return L}function Be(f,S){for(var b=-1,L=f==null?0:f.length;++b<L&&S(f[b],b,f)!==!1;);return f}function Is(f,S){for(var b=f==null?0:f.length;b--&&S(f[b],b,f)!==!1;);return f}function mr(f,S){for(var b=-1,L=f==null?0:f.length;++b<L;)if(!S(f[b],b,f))return!1;return!0}function st(f,S){for(var b=-1,L=f==null?0:f.length,N=0,W=[];++b<L;){var le=f[b];S(le,b,f)&&(W[N++]=le)}return W}function Fn(f,S){var b=f==null?0:f.length;return!!b&&Bt(f,S,0)>-1}function Do(f,S,b){for(var L=-1,N=f==null?0:f.length;++L<N;)if(b(S,f[L]))return!0;return!1}function te(f,S){for(var b=-1,L=f==null?0:f.length,N=Array(L);++b<L;)N[b]=S(f[b],b,f);return N}function pt(f,S){for(var b=-1,L=S.length,N=f.length;++b<L;)f[N+b]=S[b];return f}function Po(f,S,b,L){var N=-1,W=f==null?0:f.length;for(L&&W&&(b=f[++N]);++N<W;)b=S(b,f[N],N,f);return b}function Ts(f,S,b,L){var N=f==null?0:f.length;for(L&&N&&(b=f[--N]);N--;)b=S(b,f[N],N,f);return b}function Ro(f,S){for(var b=-1,L=f==null?0:f.length;++b<L;)if(S(f[b],b,f))return!0;return!1}var Es=Mo("length");function Fs(f){return f.split("")}function Ls(f){return f.match(kl)||[]}function fr(f,S,b){var L;return b(f,function(N,W,le){if(S(N,W,le))return L=W,!1}),L}function Ln(f,S,b,L){for(var N=f.length,W=b+(L?1:-1);L?W--:++W<N;)if(S(f[W],W,f))return W;return-1}function Bt(f,S,b){return S===S?zs(f,S,b):Ln(f,gr,b)}function As(f,S,b,L){for(var N=b-1,W=f.length;++N<W;)if(L(f[N],S))return N;return-1}function gr(f){return f!==f}function yr(f,S){var b=f==null?0:f.length;return b?ko(f,S)/b:vn}function Mo(f){return function(S){return S==null?o:S[f]}}function No(f){return function(S){return f==null?o:f[S]}}function hr(f,S,b,L,N){return N(f,function(W,le,J){b=L?(L=!1,W):S(b,W,le,J)}),b}function Bs(f,S){var b=f.length;for(f.sort(S);b--;)f[b]=f[b].value;return f}function ko(f,S){for(var b,L=-1,N=f.length;++L<N;){var W=S(f[L]);W!==o&&(b=b===o?W:b+W)}return b}function Oo(f,S){for(var b=-1,L=Array(f);++b<f;)L[b]=S(b);return L}function Ds(f,S){return te(S,function(b){return[b,f[b]]})}function br(f){return f&&f.slice(0,Cr(f)+1).replace(_o,"")}function we(f){return function(S){return f(S)}}function Ho(f,S){return te(S,function(b){return f[b]})}function Qt(f,S){return f.has(S)}function xr(f,S){for(var b=-1,L=f.length;++b<L&&Bt(S,f[b],0)>-1;);return b}function vr(f,S){for(var b=f.length;b--&&Bt(S,f[b],0)>-1;);return b}function Ps(f,S){for(var b=f.length,L=0;b--;)f[b]===S&&++L;return L}var Rs=No(hs),Ms=No(bs);function Ns(f){return"\\"+vs[f]}function ks(f,S){return f==null?o:f[S]}function Dt(f){return ms.test(f)}function Os(f){return fs.test(f)}function Hs(f){for(var S,b=[];!(S=f.next()).done;)b.push(S.value);return b}function Uo(f){var S=-1,b=Array(f.size);return f.forEach(function(L,N){b[++S]=[N,L]}),b}function Sr(f,S){return function(b){return f(S(b))}}function ut(f,S){for(var b=-1,L=f.length,N=0,W=[];++b<L;){var le=f[b];(le===S||le===F)&&(f[b]=F,W[N++]=b)}return W}function An(f){var S=-1,b=Array(f.size);return f.forEach(function(L){b[++S]=L}),b}function Us(f){var S=-1,b=Array(f.size);return f.forEach(function(L){b[++S]=[L,L]}),b}function zs(f,S,b){for(var L=b-1,N=f.length;++L<N;)if(f[L]===S)return L;return-1}function Ys(f,S,b){for(var L=b+1;L--;)if(f[L]===S)return L;return L}function Pt(f){return Dt(f)?Gs(f):Es(f)}function Ue(f){return Dt(f)?Ws(f):Fs(f)}function Cr(f){for(var S=f.length;S--&&Pl.test(f.charAt(S)););return S}var $s=No(xs);function Gs(f){for(var S=Lo.lastIndex=0;Lo.test(f);)++S;return S}function Ws(f){return f.match(Lo)||[]}function Vs(f){return f.match(ds)||[]}var Ks=function f(S){S=S==null?ue:Rt.defaults(ue.Object(),S,Rt.pick(ue,gs));var b=S.Array,L=S.Date,N=S.Error,W=S.Function,le=S.Math,J=S.Object,zo=S.RegExp,qs=S.String,De=S.TypeError,Bn=b.prototype,Js=W.prototype,Mt=J.prototype,Dn=S["__core-js_shared__"],Pn=Js.toString,q=Mt.hasOwnProperty,Xs=0,wr=function(){var e=/[^.]+$/.exec(Dn&&Dn.keys&&Dn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Rn=Mt.toString,Zs=Pn.call(J),Qs=ue._,js=zo("^"+Pn.call(q).replace(wo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Mn=ar?S.Buffer:o,ct=S.Symbol,Nn=S.Uint8Array,_r=Mn?Mn.allocUnsafe:o,kn=Sr(J.getPrototypeOf,J),Ir=J.create,Tr=Mt.propertyIsEnumerable,On=Bn.splice,Er=ct?ct.isConcatSpreadable:o,jt=ct?ct.iterator:o,xt=ct?ct.toStringTag:o,Hn=function(){try{var e=_t(J,"defineProperty");return e({},"",{}),e}catch{}}(),ep=S.clearTimeout!==ue.clearTimeout&&S.clearTimeout,tp=L&&L.now!==ue.Date.now&&L.now,np=S.setTimeout!==ue.setTimeout&&S.setTimeout,Un=le.ceil,zn=le.floor,Yo=J.getOwnPropertySymbols,op=Mn?Mn.isBuffer:o,Fr=S.isFinite,ip=Bn.join,rp=Sr(J.keys,J),se=le.max,de=le.min,ap=L.now,lp=S.parseInt,Lr=le.random,sp=Bn.reverse,$o=_t(S,"DataView"),en=_t(S,"Map"),Go=_t(S,"Promise"),Nt=_t(S,"Set"),tn=_t(S,"WeakMap"),nn=_t(J,"create"),Yn=tn&&new tn,kt={},pp=It($o),up=It(en),cp=It(Go),dp=It(Nt),mp=It(tn),$n=ct?ct.prototype:o,on=$n?$n.valueOf:o,Ar=$n?$n.toString:o;function s(e){if(oe(e)&&!k(e)&&!(e instanceof $)){if(e instanceof Pe)return e;if(q.call(e,"__wrapped__"))return Ba(e)}return new Pe(e)}var Ot=function(){function e(){}return function(t){if(!ne(t))return{};if(Ir)return Ir(t);e.prototype=t;var i=new e;return e.prototype=o,i}}();function Gn(){}function Pe(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}s.templateSettings={escape:El,evaluate:Fl,interpolate:Hi,variable:"",imports:{_:s}},s.prototype=Gn.prototype,s.prototype.constructor=s,Pe.prototype=Ot(Gn.prototype),Pe.prototype.constructor=Pe;function $(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ge,this.__views__=[]}function fp(){var e=new $(this.__wrapped__);return e.__actions__=he(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=he(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=he(this.__views__),e}function gp(){if(this.__filtered__){var e=new $(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function yp(){var e=this.__wrapped__.value(),t=this.__dir__,i=k(e),r=t<0,a=i?e.length:0,p=Fu(0,a,this.__views__),d=p.start,m=p.end,y=m-d,C=r?m:d-1,w=this.__iteratees__,I=w.length,T=0,A=de(y,this.__takeCount__);if(!i||!r&&a==y&&A==y)return ea(e,this.__actions__);var P=[];e:for(;y--&&T<A;){C+=t;for(var H=-1,R=e[C];++H<I;){var Y=w[H],G=Y.iteratee,Te=Y.type,ye=G(R);if(Te==bn)R=ye;else if(!ye){if(Te==Gt)continue e;break e}}P[T++]=R}return P}$.prototype=Ot(Gn.prototype),$.prototype.constructor=$;function vt(e){var t=-1,i=e==null?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function hp(){this.__data__=nn?nn(null):{},this.size=0}function bp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function xp(e){var t=this.__data__;if(nn){var i=t[e];return i===v?o:i}return q.call(t,e)?t[e]:o}function vp(e){var t=this.__data__;return nn?t[e]!==o:q.call(t,e)}function Sp(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=nn&&t===o?v:t,this}vt.prototype.clear=hp,vt.prototype.delete=bp,vt.prototype.get=xp,vt.prototype.has=vp,vt.prototype.set=Sp;function Ze(e){var t=-1,i=e==null?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Cp(){this.__data__=[],this.size=0}function wp(e){var t=this.__data__,i=Wn(t,e);if(i<0)return!1;var r=t.length-1;return i==r?t.pop():On.call(t,i,1),--this.size,!0}function _p(e){var t=this.__data__,i=Wn(t,e);return i<0?o:t[i][1]}function Ip(e){return Wn(this.__data__,e)>-1}function Tp(e,t){var i=this.__data__,r=Wn(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this}Ze.prototype.clear=Cp,Ze.prototype.delete=wp,Ze.prototype.get=_p,Ze.prototype.has=Ip,Ze.prototype.set=Tp;function Qe(e){var t=-1,i=e==null?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Ep(){this.size=0,this.__data__={hash:new vt,map:new(en||Ze),string:new vt}}function Fp(e){var t=oo(this,e).delete(e);return this.size-=t?1:0,t}function Lp(e){return oo(this,e).get(e)}function Ap(e){return oo(this,e).has(e)}function Bp(e,t){var i=oo(this,e),r=i.size;return i.set(e,t),this.size+=i.size==r?0:1,this}Qe.prototype.clear=Ep,Qe.prototype.delete=Fp,Qe.prototype.get=Lp,Qe.prototype.has=Ap,Qe.prototype.set=Bp;function St(e){var t=-1,i=e==null?0:e.length;for(this.__data__=new Qe;++t<i;)this.add(e[t])}function Dp(e){return this.__data__.set(e,v),this}function Pp(e){return this.__data__.has(e)}St.prototype.add=St.prototype.push=Dp,St.prototype.has=Pp;function ze(e){var t=this.__data__=new Ze(e);this.size=t.size}function Rp(){this.__data__=new Ze,this.size=0}function Mp(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}function Np(e){return this.__data__.get(e)}function kp(e){return this.__data__.has(e)}function Op(e,t){var i=this.__data__;if(i instanceof Ze){var r=i.__data__;if(!en||r.length<g-1)return r.push([e,t]),this.size=++i.size,this;i=this.__data__=new Qe(r)}return i.set(e,t),this.size=i.size,this}ze.prototype.clear=Rp,ze.prototype.delete=Mp,ze.prototype.get=Np,ze.prototype.has=kp,ze.prototype.set=Op;function Br(e,t){var i=k(e),r=!i&&Tt(e),a=!i&&!r&&yt(e),p=!i&&!r&&!a&&Yt(e),d=i||r||a||p,m=d?Oo(e.length,qs):[],y=m.length;for(var C in e)(t||q.call(e,C))&&!(d&&(C=="length"||a&&(C=="offset"||C=="parent")||p&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||nt(C,y)))&&m.push(C);return m}function Dr(e){var t=e.length;return t?e[ti(0,t-1)]:o}function Hp(e,t){return io(he(e),Ct(t,0,e.length))}function Up(e){return io(he(e))}function Wo(e,t,i){(i!==o&&!Ye(e[t],i)||i===o&&!(t in e))&&je(e,t,i)}function rn(e,t,i){var r=e[t];(!(q.call(e,t)&&Ye(r,i))||i===o&&!(t in e))&&je(e,t,i)}function Wn(e,t){for(var i=e.length;i--;)if(Ye(e[i][0],t))return i;return-1}function zp(e,t,i,r){return dt(e,function(a,p,d){t(r,a,i(a),d)}),r}function Pr(e,t){return e&&Ve(t,pe(t),e)}function Yp(e,t){return e&&Ve(t,xe(t),e)}function je(e,t,i){t=="__proto__"&&Hn?Hn(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function Vo(e,t){for(var i=-1,r=t.length,a=b(r),p=e==null;++i<r;)a[i]=p?o:Ti(e,t[i]);return a}function Ct(e,t,i){return e===e&&(i!==o&&(e=e<=i?e:i),t!==o&&(e=e>=t?e:t)),e}function Re(e,t,i,r,a,p){var d,m=t&B,y=t&z,C=t&j;if(i&&(d=a?i(e,r,a,p):i(e)),d!==o)return d;if(!ne(e))return e;var w=k(e);if(w){if(d=Au(e),!m)return he(e,d)}else{var I=me(e),T=I==wn||I==Mi;if(yt(e))return oa(e,m);if(I==Xe||I==Ft||T&&!a){if(d=y||T?{}:Ca(e),!m)return y?xu(e,Yp(d,e)):bu(e,Pr(d,e))}else{if(!Q[I])return a?e:{};d=Bu(e,I,m)}}p||(p=new ze);var A=p.get(e);if(A)return A;p.set(e,d),Za(e)?e.forEach(function(R){d.add(Re(R,t,i,R,e,p))}):Ja(e)&&e.forEach(function(R,Y){d.set(Y,Re(R,t,i,Y,e,p))});var P=C?y?di:ci:y?xe:pe,H=w?o:P(e);return Be(H||e,function(R,Y){H&&(Y=R,R=e[Y]),rn(d,Y,Re(R,t,i,Y,e,p))}),d}function $p(e){var t=pe(e);return function(i){return Rr(i,e,t)}}function Rr(e,t,i){var r=i.length;if(e==null)return!r;for(e=J(e);r--;){var a=i[r],p=t[a],d=e[a];if(d===o&&!(a in e)||!p(d))return!1}return!0}function Mr(e,t,i){if(typeof e!="function")throw new De(h);return dn(function(){e.apply(o,i)},t)}function an(e,t,i,r){var a=-1,p=Fn,d=!0,m=e.length,y=[],C=t.length;if(!m)return y;i&&(t=te(t,we(i))),r?(p=Do,d=!1):t.length>=g&&(p=Qt,d=!1,t=new St(t));e:for(;++a<m;){var w=e[a],I=i==null?w:i(w);if(w=r||w!==0?w:0,d&&I===I){for(var T=C;T--;)if(t[T]===I)continue e;y.push(w)}else p(t,I,r)||y.push(w)}return y}var dt=sa(We),Nr=sa(qo,!0);function Gp(e,t){var i=!0;return dt(e,function(r,a,p){return i=!!t(r,a,p),i}),i}function Vn(e,t,i){for(var r=-1,a=e.length;++r<a;){var p=e[r],d=t(p);if(d!=null&&(m===o?d===d&&!Ie(d):i(d,m)))var m=d,y=p}return y}function Wp(e,t,i,r){var a=e.length;for(i=O(i),i<0&&(i=-i>a?0:a+i),r=r===o||r>a?a:O(r),r<0&&(r+=a),r=i>r?0:ja(r);i<r;)e[i++]=t;return e}function kr(e,t){var i=[];return dt(e,function(r,a,p){t(r,a,p)&&i.push(r)}),i}function ce(e,t,i,r,a){var p=-1,d=e.length;for(i||(i=Pu),a||(a=[]);++p<d;){var m=e[p];t>0&&i(m)?t>1?ce(m,t-1,i,r,a):pt(a,m):r||(a[a.length]=m)}return a}var Ko=pa(),Or=pa(!0);function We(e,t){return e&&Ko(e,t,pe)}function qo(e,t){return e&&Or(e,t,pe)}function Kn(e,t){return st(t,function(i){return ot(e[i])})}function wt(e,t){t=ft(t,e);for(var i=0,r=t.length;e!=null&&i<r;)e=e[Ke(t[i++])];return i&&i==r?e:o}function Hr(e,t,i){var r=t(e);return k(e)?r:pt(r,i(e))}function fe(e){return e==null?e===o?vl:bl:xt&&xt in J(e)?Eu(e):Uu(e)}function Jo(e,t){return e>t}function Vp(e,t){return e!=null&&q.call(e,t)}function Kp(e,t){return e!=null&&t in J(e)}function qp(e,t,i){return e>=de(t,i)&&e<se(t,i)}function Xo(e,t,i){for(var r=i?Do:Fn,a=e[0].length,p=e.length,d=p,m=b(p),y=1/0,C=[];d--;){var w=e[d];d&&t&&(w=te(w,we(t))),y=de(w.length,y),m[d]=!i&&(t||a>=120&&w.length>=120)?new St(d&&w):o}w=e[0];var I=-1,T=m[0];e:for(;++I<a&&C.length<y;){var A=w[I],P=t?t(A):A;if(A=i||A!==0?A:0,!(T?Qt(T,P):r(C,P,i))){for(d=p;--d;){var H=m[d];if(!(H?Qt(H,P):r(e[d],P,i)))continue e}T&&T.push(P),C.push(A)}}return C}function Jp(e,t,i,r){return We(e,function(a,p,d){t(r,i(a),p,d)}),r}function ln(e,t,i){t=ft(t,e),e=Ta(e,t);var r=e==null?e:e[Ke(Ne(t))];return r==null?o:Ce(r,e,i)}function Ur(e){return oe(e)&&fe(e)==Ft}function Xp(e){return oe(e)&&fe(e)==Zt}function Zp(e){return oe(e)&&fe(e)==Vt}function sn(e,t,i,r,a){return e===t?!0:e==null||t==null||!oe(e)&&!oe(t)?e!==e&&t!==t:Qp(e,t,i,r,sn,a)}function Qp(e,t,i,r,a,p){var d=k(e),m=k(t),y=d?Sn:me(e),C=m?Sn:me(t);y=y==Ft?Xe:y,C=C==Ft?Xe:C;var w=y==Xe,I=C==Xe,T=y==C;if(T&&yt(e)){if(!yt(t))return!1;d=!0,w=!1}if(T&&!w)return p||(p=new ze),d||Yt(e)?xa(e,t,i,r,a,p):Iu(e,t,y,i,r,a,p);if(!(i&X)){var A=w&&q.call(e,"__wrapped__"),P=I&&q.call(t,"__wrapped__");if(A||P){var H=A?e.value():e,R=P?t.value():t;return p||(p=new ze),a(H,R,i,r,p)}}return T?(p||(p=new ze),Tu(e,t,i,r,a,p)):!1}function jp(e){return oe(e)&&me(e)==Oe}function Zo(e,t,i,r){var a=i.length,p=a,d=!r;if(e==null)return!p;for(e=J(e);a--;){var m=i[a];if(d&&m[2]?m[1]!==e[m[0]]:!(m[0]in e))return!1}for(;++a<p;){m=i[a];var y=m[0],C=e[y],w=m[1];if(d&&m[2]){if(C===o&&!(y in e))return!1}else{var I=new ze;if(r)var T=r(C,w,y,e,t,I);if(!(T===o?sn(w,C,X|V,r,I):T))return!1}}return!0}function zr(e){if(!ne(e)||Mu(e))return!1;var t=ot(e)?js:$l;return t.test(It(e))}function eu(e){return oe(e)&&fe(e)==qt}function tu(e){return oe(e)&&me(e)==He}function nu(e){return oe(e)&&uo(e.length)&&!!ee[fe(e)]}function Yr(e){return typeof e=="function"?e:e==null?ve:typeof e=="object"?k(e)?Wr(e[0],e[1]):Gr(e):ul(e)}function Qo(e){if(!cn(e))return rp(e);var t=[];for(var i in J(e))q.call(e,i)&&i!="constructor"&&t.push(i);return t}function ou(e){if(!ne(e))return Hu(e);var t=cn(e),i=[];for(var r in e)r=="constructor"&&(t||!q.call(e,r))||i.push(r);return i}function jo(e,t){return e<t}function $r(e,t){var i=-1,r=be(e)?b(e.length):[];return dt(e,function(a,p,d){r[++i]=t(a,p,d)}),r}function Gr(e){var t=fi(e);return t.length==1&&t[0][2]?_a(t[0][0],t[0][1]):function(i){return i===e||Zo(i,e,t)}}function Wr(e,t){return yi(e)&&wa(t)?_a(Ke(e),t):function(i){var r=Ti(i,e);return r===o&&r===t?Ei(i,e):sn(t,r,X|V)}}function qn(e,t,i,r,a){e!==t&&Ko(t,function(p,d){if(a||(a=new ze),ne(p))iu(e,t,d,i,qn,r,a);else{var m=r?r(bi(e,d),p,d+"",e,t,a):o;m===o&&(m=p),Wo(e,d,m)}},xe)}function iu(e,t,i,r,a,p,d){var m=bi(e,i),y=bi(t,i),C=d.get(y);if(C){Wo(e,i,C);return}var w=p?p(m,y,i+"",e,t,d):o,I=w===o;if(I){var T=k(y),A=!T&&yt(y),P=!T&&!A&&Yt(y);w=y,T||A||P?k(m)?w=m:ie(m)?w=he(m):A?(I=!1,w=oa(y,!0)):P?(I=!1,w=ia(y,!0)):w=[]:mn(y)||Tt(y)?(w=m,Tt(m)?w=el(m):(!ne(m)||ot(m))&&(w=Ca(y))):I=!1}I&&(d.set(y,w),a(w,y,r,p,d),d.delete(y)),Wo(e,i,w)}function Vr(e,t){var i=e.length;if(!!i)return t+=t<0?i:0,nt(t,i)?e[t]:o}function Kr(e,t,i){t.length?t=te(t,function(p){return k(p)?function(d){return wt(d,p.length===1?p[0]:p)}:p}):t=[ve];var r=-1;t=te(t,we(D()));var a=$r(e,function(p,d,m){var y=te(t,function(C){return C(p)});return{criteria:y,index:++r,value:p}});return Bs(a,function(p,d){return hu(p,d,i)})}function ru(e,t){return qr(e,t,function(i,r){return Ei(e,r)})}function qr(e,t,i){for(var r=-1,a=t.length,p={};++r<a;){var d=t[r],m=wt(e,d);i(m,d)&&pn(p,ft(d,e),m)}return p}function au(e){return function(t){return wt(t,e)}}function ei(e,t,i,r){var a=r?As:Bt,p=-1,d=t.length,m=e;for(e===t&&(t=he(t)),i&&(m=te(e,we(i)));++p<d;)for(var y=0,C=t[p],w=i?i(C):C;(y=a(m,w,y,r))>-1;)m!==e&&On.call(m,y,1),On.call(e,y,1);return e}function Jr(e,t){for(var i=e?t.length:0,r=i-1;i--;){var a=t[i];if(i==r||a!==p){var p=a;nt(a)?On.call(e,a,1):ii(e,a)}}return e}function ti(e,t){return e+zn(Lr()*(t-e+1))}function lu(e,t,i,r){for(var a=-1,p=se(Un((t-e)/(i||1)),0),d=b(p);p--;)d[r?p:++a]=e,e+=i;return d}function ni(e,t){var i="";if(!e||t<1||t>lt)return i;do t%2&&(i+=e),t=zn(t/2),t&&(e+=e);while(t);return i}function U(e,t){return xi(Ia(e,t,ve),e+"")}function su(e){return Dr($t(e))}function pu(e,t){var i=$t(e);return io(i,Ct(t,0,i.length))}function pn(e,t,i,r){if(!ne(e))return e;t=ft(t,e);for(var a=-1,p=t.length,d=p-1,m=e;m!=null&&++a<p;){var y=Ke(t[a]),C=i;if(y==="__proto__"||y==="constructor"||y==="prototype")return e;if(a!=d){var w=m[y];C=r?r(w,y,m):o,C===o&&(C=ne(w)?w:nt(t[a+1])?[]:{})}rn(m,y,C),m=m[y]}return e}var Xr=Yn?function(e,t){return Yn.set(e,t),e}:ve,uu=Hn?function(e,t){return Hn(e,"toString",{configurable:!0,enumerable:!1,value:Li(t),writable:!0})}:ve;function cu(e){return io($t(e))}function Me(e,t,i){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),i=i>a?a:i,i<0&&(i+=a),a=t>i?0:i-t>>>0,t>>>=0;for(var p=b(a);++r<a;)p[r]=e[r+t];return p}function du(e,t){var i;return dt(e,function(r,a,p){return i=t(r,a,p),!i}),!!i}function Jn(e,t,i){var r=0,a=e==null?r:e.length;if(typeof t=="number"&&t===t&&a<=fl){for(;r<a;){var p=r+a>>>1,d=e[p];d!==null&&!Ie(d)&&(i?d<=t:d<t)?r=p+1:a=p}return a}return oi(e,t,ve,i)}function oi(e,t,i,r){var a=0,p=e==null?0:e.length;if(p===0)return 0;t=i(t);for(var d=t!==t,m=t===null,y=Ie(t),C=t===o;a<p;){var w=zn((a+p)/2),I=i(e[w]),T=I!==o,A=I===null,P=I===I,H=Ie(I);if(d)var R=r||P;else C?R=P&&(r||T):m?R=P&&T&&(r||!A):y?R=P&&T&&!A&&(r||!H):A||H?R=!1:R=r?I<=t:I<t;R?a=w+1:p=w}return de(p,ml)}function Zr(e,t){for(var i=-1,r=e.length,a=0,p=[];++i<r;){var d=e[i],m=t?t(d):d;if(!i||!Ye(m,y)){var y=m;p[a++]=d===0?0:d}}return p}function Qr(e){return typeof e=="number"?e:Ie(e)?vn:+e}function _e(e){if(typeof e=="string")return e;if(k(e))return te(e,_e)+"";if(Ie(e))return Ar?Ar.call(e):"";var t=e+"";return t=="0"&&1/e==-ht?"-0":t}function mt(e,t,i){var r=-1,a=Fn,p=e.length,d=!0,m=[],y=m;if(i)d=!1,a=Do;else if(p>=g){var C=t?null:wu(e);if(C)return An(C);d=!1,a=Qt,y=new St}else y=t?[]:m;e:for(;++r<p;){var w=e[r],I=t?t(w):w;if(w=i||w!==0?w:0,d&&I===I){for(var T=y.length;T--;)if(y[T]===I)continue e;t&&y.push(I),m.push(w)}else a(y,I,i)||(y!==m&&y.push(I),m.push(w))}return m}function ii(e,t){return t=ft(t,e),e=Ta(e,t),e==null||delete e[Ke(Ne(t))]}function jr(e,t,i,r){return pn(e,t,i(wt(e,t)),r)}function Xn(e,t,i,r){for(var a=e.length,p=r?a:-1;(r?p--:++p<a)&&t(e[p],p,e););return i?Me(e,r?0:p,r?p+1:a):Me(e,r?p+1:0,r?a:p)}function ea(e,t){var i=e;return i instanceof $&&(i=i.value()),Po(t,function(r,a){return a.func.apply(a.thisArg,pt([r],a.args))},i)}function ri(e,t,i){var r=e.length;if(r<2)return r?mt(e[0]):[];for(var a=-1,p=b(r);++a<r;)for(var d=e[a],m=-1;++m<r;)m!=a&&(p[a]=an(p[a]||d,e[m],t,i));return mt(ce(p,1),t,i)}function ta(e,t,i){for(var r=-1,a=e.length,p=t.length,d={};++r<a;){var m=r<p?t[r]:o;i(d,e[r],m)}return d}function ai(e){return ie(e)?e:[]}function li(e){return typeof e=="function"?e:ve}function ft(e,t){return k(e)?e:yi(e,t)?[e]:Aa(K(e))}var mu=U;function gt(e,t,i){var r=e.length;return i=i===o?r:i,!t&&i>=r?e:Me(e,t,i)}var na=ep||function(e){return ue.clearTimeout(e)};function oa(e,t){if(t)return e.slice();var i=e.length,r=_r?_r(i):new e.constructor(i);return e.copy(r),r}function si(e){var t=new e.constructor(e.byteLength);return new Nn(t).set(new Nn(e)),t}function fu(e,t){var i=t?si(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}function gu(e){var t=new e.constructor(e.source,Ui.exec(e));return t.lastIndex=e.lastIndex,t}function yu(e){return on?J(on.call(e)):{}}function ia(e,t){var i=t?si(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function ra(e,t){if(e!==t){var i=e!==o,r=e===null,a=e===e,p=Ie(e),d=t!==o,m=t===null,y=t===t,C=Ie(t);if(!m&&!C&&!p&&e>t||p&&d&&y&&!m&&!C||r&&d&&y||!i&&y||!a)return 1;if(!r&&!p&&!C&&e<t||C&&i&&a&&!r&&!p||m&&i&&a||!d&&a||!y)return-1}return 0}function hu(e,t,i){for(var r=-1,a=e.criteria,p=t.criteria,d=a.length,m=i.length;++r<d;){var y=ra(a[r],p[r]);if(y){if(r>=m)return y;var C=i[r];return y*(C=="desc"?-1:1)}}return e.index-t.index}function aa(e,t,i,r){for(var a=-1,p=e.length,d=i.length,m=-1,y=t.length,C=se(p-d,0),w=b(y+C),I=!r;++m<y;)w[m]=t[m];for(;++a<d;)(I||a<p)&&(w[i[a]]=e[a]);for(;C--;)w[m++]=e[a++];return w}function la(e,t,i,r){for(var a=-1,p=e.length,d=-1,m=i.length,y=-1,C=t.length,w=se(p-m,0),I=b(w+C),T=!r;++a<w;)I[a]=e[a];for(var A=a;++y<C;)I[A+y]=t[y];for(;++d<m;)(T||a<p)&&(I[A+i[d]]=e[a++]);return I}function he(e,t){var i=-1,r=e.length;for(t||(t=b(r));++i<r;)t[i]=e[i];return t}function Ve(e,t,i,r){var a=!i;i||(i={});for(var p=-1,d=t.length;++p<d;){var m=t[p],y=r?r(i[m],e[m],m,i,e):o;y===o&&(y=e[m]),a?je(i,m,y):rn(i,m,y)}return i}function bu(e,t){return Ve(e,gi(e),t)}function xu(e,t){return Ve(e,va(e),t)}function Zn(e,t){return function(i,r){var a=k(i)?_s:zp,p=t?t():{};return a(i,e,D(r,2),p)}}function Ht(e){return U(function(t,i){var r=-1,a=i.length,p=a>1?i[a-1]:o,d=a>2?i[2]:o;for(p=e.length>3&&typeof p=="function"?(a--,p):o,d&&ge(i[0],i[1],d)&&(p=a<3?o:p,a=1),t=J(t);++r<a;){var m=i[r];m&&e(t,m,r,p)}return t})}function sa(e,t){return function(i,r){if(i==null)return i;if(!be(i))return e(i,r);for(var a=i.length,p=t?a:-1,d=J(i);(t?p--:++p<a)&&r(d[p],p,d)!==!1;);return i}}function pa(e){return function(t,i,r){for(var a=-1,p=J(t),d=r(t),m=d.length;m--;){var y=d[e?m:++a];if(i(p[y],y,p)===!1)break}return t}}function vu(e,t,i){var r=t&M,a=un(e);function p(){var d=this&&this!==ue&&this instanceof p?a:e;return d.apply(r?i:this,arguments)}return p}function ua(e){return function(t){t=K(t);var i=Dt(t)?Ue(t):o,r=i?i[0]:t.charAt(0),a=i?gt(i,1).join(""):t.slice(1);return r[e]()+a}}function Ut(e){return function(t){return Po(sl(ll(t).replace(us,"")),e,"")}}function un(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 i=Ot(e.prototype),r=e.apply(i,t);return ne(r)?r:i}}function Su(e,t,i){var r=un(e);function a(){for(var p=arguments.length,d=b(p),m=p,y=zt(a);m--;)d[m]=arguments[m];var C=p<3&&d[0]!==y&&d[p-1]!==y?[]:ut(d,y);if(p-=C.length,p<i)return ga(e,t,Qn,a.placeholder,o,d,C,o,o,i-p);var w=this&&this!==ue&&this instanceof a?r:e;return Ce(w,this,d)}return a}function ca(e){return function(t,i,r){var a=J(t);if(!be(t)){var p=D(i,3);t=pe(t),i=function(m){return p(a[m],m,a)}}var d=e(t,i,r);return d>-1?a[p?t[d]:d]:o}}function da(e){return tt(function(t){var i=t.length,r=i,a=Pe.prototype.thru;for(e&&t.reverse();r--;){var p=t[r];if(typeof p!="function")throw new De(h);if(a&&!d&&no(p)=="wrapper")var d=new Pe([],!0)}for(r=d?r:i;++r<i;){p=t[r];var m=no(p),y=m=="wrapper"?mi(p):o;y&&hi(y[0])&&y[1]==(Le|Z|Se|at)&&!y[4].length&&y[9]==1?d=d[no(y[0])].apply(d,y[3]):d=p.length==1&&hi(p)?d[m]():d.thru(p)}return function(){var C=arguments,w=C[0];if(d&&C.length==1&&k(w))return d.plant(w).value();for(var I=0,T=i?t[I].apply(this,C):w;++I<i;)T=t[I].call(this,T);return T}})}function Qn(e,t,i,r,a,p,d,m,y,C){var w=t&Le,I=t&M,T=t&ae,A=t&(Z|qe),P=t&Et,H=T?o:un(e);function R(){for(var Y=arguments.length,G=b(Y),Te=Y;Te--;)G[Te]=arguments[Te];if(A)var ye=zt(R),Ee=Ps(G,ye);if(r&&(G=aa(G,r,a,A)),p&&(G=la(G,p,d,A)),Y-=Ee,A&&Y<C){var re=ut(G,ye);return ga(e,t,Qn,R.placeholder,i,G,re,m,y,C-Y)}var $e=I?i:this,rt=T?$e[e]:e;return Y=G.length,m?G=zu(G,m):P&&Y>1&&G.reverse(),w&&y<Y&&(G.length=y),this&&this!==ue&&this instanceof R&&(rt=H||un(rt)),rt.apply($e,G)}return R}function ma(e,t){return function(i,r){return Jp(i,e,t(r),{})}}function jn(e,t){return function(i,r){var a;if(i===o&&r===o)return t;if(i!==o&&(a=i),r!==o){if(a===o)return r;typeof i=="string"||typeof r=="string"?(i=_e(i),r=_e(r)):(i=Qr(i),r=Qr(r)),a=e(i,r)}return a}}function pi(e){return tt(function(t){return t=te(t,we(D())),U(function(i){var r=this;return e(t,function(a){return Ce(a,r,i)})})})}function eo(e,t){t=t===o?" ":_e(t);var i=t.length;if(i<2)return i?ni(t,e):t;var r=ni(t,Un(e/Pt(t)));return Dt(t)?gt(Ue(r),0,e).join(""):r.slice(0,e)}function Cu(e,t,i,r){var a=t&M,p=un(e);function d(){for(var m=-1,y=arguments.length,C=-1,w=r.length,I=b(w+y),T=this&&this!==ue&&this instanceof d?p:e;++C<w;)I[C]=r[C];for(;y--;)I[C++]=arguments[++m];return Ce(T,a?i:this,I)}return d}function fa(e){return function(t,i,r){return r&&typeof r!="number"&&ge(t,i,r)&&(i=r=o),t=it(t),i===o?(i=t,t=0):i=it(i),r=r===o?t<i?1:-1:it(r),lu(t,i,r,e)}}function to(e){return function(t,i){return typeof t=="string"&&typeof i=="string"||(t=ke(t),i=ke(i)),e(t,i)}}function ga(e,t,i,r,a,p,d,m,y,C){var w=t&Z,I=w?d:o,T=w?o:d,A=w?p:o,P=w?o:p;t|=w?Se:Je,t&=~(w?Je:Se),t&Fe||(t&=~(M|ae));var H=[e,t,a,A,I,P,T,m,y,C],R=i.apply(o,H);return hi(e)&&Ea(R,H),R.placeholder=r,Fa(R,e,t)}function ui(e){var t=le[e];return function(i,r){if(i=ke(i),r=r==null?0:de(O(r),292),r&&Fr(i)){var a=(K(i)+"e").split("e"),p=t(a[0]+"e"+(+a[1]+r));return a=(K(p)+"e").split("e"),+(a[0]+"e"+(+a[1]-r))}return t(i)}}var wu=Nt&&1/An(new Nt([,-0]))[1]==ht?function(e){return new Nt(e)}:Di;function ya(e){return function(t){var i=me(t);return i==Oe?Uo(t):i==He?Us(t):Ds(t,e(t))}}function et(e,t,i,r,a,p,d,m){var y=t&ae;if(!y&&typeof e!="function")throw new De(h);var C=r?r.length:0;if(C||(t&=~(Se|Je),r=a=o),d=d===o?d:se(O(d),0),m=m===o?m:O(m),C-=a?a.length:0,t&Je){var w=r,I=a;r=a=o}var T=y?o:mi(e),A=[e,t,i,r,a,w,I,p,d,m];if(T&&Ou(A,T),e=A[0],t=A[1],i=A[2],r=A[3],a=A[4],m=A[9]=A[9]===o?y?0:e.length:se(A[9]-C,0),!m&&t&(Z|qe)&&(t&=~(Z|qe)),!t||t==M)var P=vu(e,t,i);else t==Z||t==qe?P=Su(e,t,m):(t==Se||t==(M|Se))&&!a.length?P=Cu(e,t,i,r):P=Qn.apply(o,A);var H=T?Xr:Ea;return Fa(H(P,A),e,t)}function ha(e,t,i,r){return e===o||Ye(e,Mt[i])&&!q.call(r,i)?t:e}function ba(e,t,i,r,a,p){return ne(e)&&ne(t)&&(p.set(t,e),qn(e,t,o,ba,p),p.delete(t)),e}function _u(e){return mn(e)?o:e}function xa(e,t,i,r,a,p){var d=i&X,m=e.length,y=t.length;if(m!=y&&!(d&&y>m))return!1;var C=p.get(e),w=p.get(t);if(C&&w)return C==t&&w==e;var I=-1,T=!0,A=i&V?new St:o;for(p.set(e,t),p.set(t,e);++I<m;){var P=e[I],H=t[I];if(r)var R=d?r(H,P,I,t,e,p):r(P,H,I,e,t,p);if(R!==o){if(R)continue;T=!1;break}if(A){if(!Ro(t,function(Y,G){if(!Qt(A,G)&&(P===Y||a(P,Y,i,r,p)))return A.push(G)})){T=!1;break}}else if(!(P===H||a(P,H,i,r,p))){T=!1;break}}return p.delete(e),p.delete(t),T}function Iu(e,t,i,r,a,p,d){switch(i){case Lt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zt:return!(e.byteLength!=t.byteLength||!p(new Nn(e),new Nn(t)));case Wt:case Vt:case Kt:return Ye(+e,+t);case Cn:return e.name==t.name&&e.message==t.message;case qt:case Jt:return e==t+"";case Oe:var m=Uo;case He:var y=r&X;if(m||(m=An),e.size!=t.size&&!y)return!1;var C=d.get(e);if(C)return C==t;r|=V,d.set(e,t);var w=xa(m(e),m(t),r,a,p,d);return d.delete(e),w;case _n:if(on)return on.call(e)==on.call(t)}return!1}function Tu(e,t,i,r,a,p){var d=i&X,m=ci(e),y=m.length,C=ci(t),w=C.length;if(y!=w&&!d)return!1;for(var I=y;I--;){var T=m[I];if(!(d?T in t:q.call(t,T)))return!1}var A=p.get(e),P=p.get(t);if(A&&P)return A==t&&P==e;var H=!0;p.set(e,t),p.set(t,e);for(var R=d;++I<y;){T=m[I];var Y=e[T],G=t[T];if(r)var Te=d?r(G,Y,T,t,e,p):r(Y,G,T,e,t,p);if(!(Te===o?Y===G||a(Y,G,i,r,p):Te)){H=!1;break}R||(R=T=="constructor")}if(H&&!R){var ye=e.constructor,Ee=t.constructor;ye!=Ee&&"constructor"in e&&"constructor"in t&&!(typeof ye=="function"&&ye instanceof ye&&typeof Ee=="function"&&Ee instanceof Ee)&&(H=!1)}return p.delete(e),p.delete(t),H}function tt(e){return xi(Ia(e,o,Ra),e+"")}function ci(e){return Hr(e,pe,gi)}function di(e){return Hr(e,xe,va)}var mi=Yn?function(e){return Yn.get(e)}:Di;function no(e){for(var t=e.name+"",i=kt[t],r=q.call(kt,t)?i.length:0;r--;){var a=i[r],p=a.func;if(p==null||p==e)return a.name}return t}function zt(e){var t=q.call(s,"placeholder")?s:e;return t.placeholder}function D(){var e=s.iteratee||Ai;return e=e===Ai?Yr:e,arguments.length?e(arguments[0],arguments[1]):e}function oo(e,t){var i=e.__data__;return Ru(t)?i[typeof t=="string"?"string":"hash"]:i.map}function fi(e){for(var t=pe(e),i=t.length;i--;){var r=t[i],a=e[r];t[i]=[r,a,wa(a)]}return t}function _t(e,t){var i=ks(e,t);return zr(i)?i:o}function Eu(e){var t=q.call(e,xt),i=e[xt];try{e[xt]=o;var r=!0}catch{}var a=Rn.call(e);return r&&(t?e[xt]=i:delete e[xt]),a}var gi=Yo?function(e){return e==null?[]:(e=J(e),st(Yo(e),function(t){return Tr.call(e,t)}))}:Pi,va=Yo?function(e){for(var t=[];e;)pt(t,gi(e)),e=kn(e);return t}:Pi,me=fe;($o&&me(new $o(new ArrayBuffer(1)))!=Lt||en&&me(new en)!=Oe||Go&&me(Go.resolve())!=Ni||Nt&&me(new Nt)!=He||tn&&me(new tn)!=Xt)&&(me=function(e){var t=fe(e),i=t==Xe?e.constructor:o,r=i?It(i):"";if(r)switch(r){case pp:return Lt;case up:return Oe;case cp:return Ni;case dp:return He;case mp:return Xt}return t});function Fu(e,t,i){for(var r=-1,a=i.length;++r<a;){var p=i[r],d=p.size;switch(p.type){case"drop":e+=d;break;case"dropRight":t-=d;break;case"take":t=de(t,e+d);break;case"takeRight":e=se(e,t-d);break}}return{start:e,end:t}}function Lu(e){var t=e.match(Ml);return t?t[1].split(Nl):[]}function Sa(e,t,i){t=ft(t,e);for(var r=-1,a=t.length,p=!1;++r<a;){var d=Ke(t[r]);if(!(p=e!=null&&i(e,d)))break;e=e[d]}return p||++r!=a?p:(a=e==null?0:e.length,!!a&&uo(a)&&nt(d,a)&&(k(e)||Tt(e)))}function Au(e){var t=e.length,i=new e.constructor(t);return t&&typeof e[0]=="string"&&q.call(e,"index")&&(i.index=e.index,i.input=e.input),i}function Ca(e){return typeof e.constructor=="function"&&!cn(e)?Ot(kn(e)):{}}function Bu(e,t,i){var r=e.constructor;switch(t){case Zt:return si(e);case Wt:case Vt:return new r(+e);case Lt:return fu(e,i);case fo:case go:case yo:case ho:case bo:case xo:case vo:case So:case Co:return ia(e,i);case Oe:return new r;case Kt:case Jt:return new r(e);case qt:return gu(e);case He:return new r;case _n:return yu(e)}}function Du(e,t){var i=t.length;if(!i)return e;var r=i-1;return t[r]=(i>1?"& ":"")+t[r],t=t.join(i>2?", ":" "),e.replace(Rl,`{
|
|
8
|
+
*/(function(n,l){(function(){var o,u="4.17.21",g=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",x="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",E=500,F="__lodash_placeholder__",B=1,U=2,j=4,X=1,K=2,M=1,ae=2,Fe=4,Z=8,qe=16,Se=32,Je=64,Le=128,at=256,Et=512,fn=30,gn="...",yn=800,hn=16,Gt=1,bn=2,xn=3,ht=1/0,lt=9007199254740991,dl=17976931348623157e292,vn=0/0,Ge=4294967295,ml=Ge-1,fl=Ge>>>1,gl=[["ary",Le],["bind",M],["bindKey",ae],["curry",Z],["curryRight",qe],["flip",Et],["partial",Se],["partialRight",Je],["rearg",at]],Ft="[object Arguments]",Sn="[object Array]",yl="[object AsyncFunction]",Wt="[object Boolean]",Kt="[object Date]",hl="[object DOMException]",Cn="[object Error]",wn="[object Function]",Mi="[object GeneratorFunction]",Oe="[object Map]",Vt="[object Number]",bl="[object Null]",Xe="[object Object]",ki="[object Promise]",xl="[object Proxy]",qt="[object RegExp]",He="[object Set]",Jt="[object String]",_n="[object Symbol]",vl="[object Undefined]",Xt="[object WeakMap]",Sl="[object WeakSet]",Zt="[object ArrayBuffer]",Lt="[object DataView]",fo="[object Float32Array]",go="[object Float64Array]",yo="[object Int8Array]",ho="[object Int16Array]",bo="[object Int32Array]",xo="[object Uint8Array]",vo="[object Uint8ClampedArray]",So="[object Uint16Array]",Co="[object Uint32Array]",Cl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,_l=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ni=/&(?:amp|lt|gt|quot|#39);/g,Oi=/[&<>"']/g,Il=RegExp(Ni.source),Tl=RegExp(Oi.source),El=/<%-([\s\S]+?)%>/g,Fl=/<%([\s\S]+?)%>/g,Hi=/<%=([\s\S]+?)%>/g,Ll=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Al=/^\w*$/,Bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wo=/[\\^$.*+?()[\]{}|]/g,Dl=RegExp(wo.source),_o=/^\s+/,Pl=/\s/,Rl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ml=/\{\n\/\* \[wrapped with (.+)\] \*/,kl=/,? & /,Nl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ol=/[()=,{}\[\]\/\s]/,Hl=/\\(\\)?/g,zl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zi=/\w*$/,Ul=/^[-+]0x[0-9a-f]+$/i,Yl=/^0b[01]+$/i,$l=/^\[object .+?Constructor\]$/,Gl=/^0o[0-7]+$/i,Wl=/^(?:0|[1-9]\d*)$/,Kl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,In=/($^)/,Vl=/['\n\r\u2028\u2029\\]/g,Tn="\\ud800-\\udfff",ql="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Xl="\\u20d0-\\u20ff",Ui=ql+Jl+Xl,Yi="\\u2700-\\u27bf",$i="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",Gi="A-Z\\xc0-\\xd6\\xd8-\\xde",Wi="\\ufe0e\\ufe0f",Ki=Zl+Ql+jl+es,Io="['\u2019]",ts="["+Tn+"]",Vi="["+Ki+"]",En="["+Ui+"]",qi="\\d+",ns="["+Yi+"]",Ji="["+$i+"]",Xi="[^"+Tn+Ki+qi+Yi+$i+Gi+"]",To="\\ud83c[\\udffb-\\udfff]",os="(?:"+En+"|"+To+")",Zi="[^"+Tn+"]",Eo="(?:\\ud83c[\\udde6-\\uddff]){2}",Fo="[\\ud800-\\udbff][\\udc00-\\udfff]",At="["+Gi+"]",Qi="\\u200d",ji="(?:"+Ji+"|"+Xi+")",is="(?:"+At+"|"+Xi+")",er="(?:"+Io+"(?:d|ll|m|re|s|t|ve))?",tr="(?:"+Io+"(?:D|LL|M|RE|S|T|VE))?",nr=os+"?",or="["+Wi+"]?",rs="(?:"+Qi+"(?:"+[Zi,Eo,Fo].join("|")+")"+or+nr+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ir=or+nr+rs,ss="(?:"+[ns,Eo,Fo].join("|")+")"+ir,ps="(?:"+[Zi+En+"?",En,Eo,Fo,ts].join("|")+")",us=RegExp(Io,"g"),cs=RegExp(En,"g"),Lo=RegExp(To+"(?="+To+")|"+ps+ir,"g"),ds=RegExp([At+"?"+Ji+"+"+er+"(?="+[Vi,At,"$"].join("|")+")",is+"+"+tr+"(?="+[Vi,At+ji,"$"].join("|")+")",At+"?"+ji+"+"+er,At+"+"+tr,ls,as,qi,ss].join("|"),"g"),ms=RegExp("["+Qi+Tn+Ui+Wi+"]"),fs=/[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"],ys=-1,ee={};ee[fo]=ee[go]=ee[yo]=ee[ho]=ee[bo]=ee[xo]=ee[vo]=ee[So]=ee[Co]=!0,ee[Ft]=ee[Sn]=ee[Zt]=ee[Wt]=ee[Lt]=ee[Kt]=ee[Cn]=ee[wn]=ee[Oe]=ee[Vt]=ee[Xe]=ee[qt]=ee[He]=ee[Jt]=ee[Xt]=!1;var Q={};Q[Ft]=Q[Sn]=Q[Zt]=Q[Lt]=Q[Wt]=Q[Kt]=Q[fo]=Q[go]=Q[yo]=Q[ho]=Q[bo]=Q[Oe]=Q[Vt]=Q[Xe]=Q[qt]=Q[He]=Q[Jt]=Q[_n]=Q[xo]=Q[vo]=Q[So]=Q[Co]=!0,Q[Cn]=Q[wn]=Q[Xt]=!1;var hs={\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"},bs={"&":"&","<":"<",">":">",'"':""","'":"'"},xs={"&":"&","<":"<",">":">",""":'"',"'":"'"},vs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ss=parseFloat,Cs=parseInt,rr=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,ue=rr||ws||Function("return this")(),Ao=l&&!l.nodeType&&l,bt=Ao&&!0&&n&&!n.nodeType&&n,ar=bt&&bt.exports===Ao,Bo=ar&&rr.process,Ae=function(){try{var f=bt&&bt.require&&bt.require("util").types;return f||Bo&&Bo.binding&&Bo.binding("util")}catch{}}(),lr=Ae&&Ae.isArrayBuffer,sr=Ae&&Ae.isDate,pr=Ae&&Ae.isMap,ur=Ae&&Ae.isRegExp,cr=Ae&&Ae.isSet,dr=Ae&&Ae.isTypedArray;function Ce(f,S,b){switch(b.length){case 0:return f.call(S);case 1:return f.call(S,b[0]);case 2:return f.call(S,b[0],b[1]);case 3:return f.call(S,b[0],b[1],b[2])}return f.apply(S,b)}function _s(f,S,b,L){for(var k=-1,W=f==null?0:f.length;++k<W;){var le=f[k];S(L,le,b(le),f)}return L}function Be(f,S){for(var b=-1,L=f==null?0:f.length;++b<L&&S(f[b],b,f)!==!1;);return f}function Is(f,S){for(var b=f==null?0:f.length;b--&&S(f[b],b,f)!==!1;);return f}function mr(f,S){for(var b=-1,L=f==null?0:f.length;++b<L;)if(!S(f[b],b,f))return!1;return!0}function st(f,S){for(var b=-1,L=f==null?0:f.length,k=0,W=[];++b<L;){var le=f[b];S(le,b,f)&&(W[k++]=le)}return W}function Fn(f,S){var b=f==null?0:f.length;return!!b&&Bt(f,S,0)>-1}function Do(f,S,b){for(var L=-1,k=f==null?0:f.length;++L<k;)if(b(S,f[L]))return!0;return!1}function te(f,S){for(var b=-1,L=f==null?0:f.length,k=Array(L);++b<L;)k[b]=S(f[b],b,f);return k}function pt(f,S){for(var b=-1,L=S.length,k=f.length;++b<L;)f[k+b]=S[b];return f}function Po(f,S,b,L){var k=-1,W=f==null?0:f.length;for(L&&W&&(b=f[++k]);++k<W;)b=S(b,f[k],k,f);return b}function Ts(f,S,b,L){var k=f==null?0:f.length;for(L&&k&&(b=f[--k]);k--;)b=S(b,f[k],k,f);return b}function Ro(f,S){for(var b=-1,L=f==null?0:f.length;++b<L;)if(S(f[b],b,f))return!0;return!1}var Es=Mo("length");function Fs(f){return f.split("")}function Ls(f){return f.match(Nl)||[]}function fr(f,S,b){var L;return b(f,function(k,W,le){if(S(k,W,le))return L=W,!1}),L}function Ln(f,S,b,L){for(var k=f.length,W=b+(L?1:-1);L?W--:++W<k;)if(S(f[W],W,f))return W;return-1}function Bt(f,S,b){return S===S?Us(f,S,b):Ln(f,gr,b)}function As(f,S,b,L){for(var k=b-1,W=f.length;++k<W;)if(L(f[k],S))return k;return-1}function gr(f){return f!==f}function yr(f,S){var b=f==null?0:f.length;return b?No(f,S)/b:vn}function Mo(f){return function(S){return S==null?o:S[f]}}function ko(f){return function(S){return f==null?o:f[S]}}function hr(f,S,b,L,k){return k(f,function(W,le,J){b=L?(L=!1,W):S(b,W,le,J)}),b}function Bs(f,S){var b=f.length;for(f.sort(S);b--;)f[b]=f[b].value;return f}function No(f,S){for(var b,L=-1,k=f.length;++L<k;){var W=S(f[L]);W!==o&&(b=b===o?W:b+W)}return b}function Oo(f,S){for(var b=-1,L=Array(f);++b<f;)L[b]=S(b);return L}function Ds(f,S){return te(S,function(b){return[b,f[b]]})}function br(f){return f&&f.slice(0,Cr(f)+1).replace(_o,"")}function we(f){return function(S){return f(S)}}function Ho(f,S){return te(S,function(b){return f[b]})}function Qt(f,S){return f.has(S)}function xr(f,S){for(var b=-1,L=f.length;++b<L&&Bt(S,f[b],0)>-1;);return b}function vr(f,S){for(var b=f.length;b--&&Bt(S,f[b],0)>-1;);return b}function Ps(f,S){for(var b=f.length,L=0;b--;)f[b]===S&&++L;return L}var Rs=ko(hs),Ms=ko(bs);function ks(f){return"\\"+vs[f]}function Ns(f,S){return f==null?o:f[S]}function Dt(f){return ms.test(f)}function Os(f){return fs.test(f)}function Hs(f){for(var S,b=[];!(S=f.next()).done;)b.push(S.value);return b}function zo(f){var S=-1,b=Array(f.size);return f.forEach(function(L,k){b[++S]=[k,L]}),b}function Sr(f,S){return function(b){return f(S(b))}}function ut(f,S){for(var b=-1,L=f.length,k=0,W=[];++b<L;){var le=f[b];(le===S||le===F)&&(f[b]=F,W[k++]=b)}return W}function An(f){var S=-1,b=Array(f.size);return f.forEach(function(L){b[++S]=L}),b}function zs(f){var S=-1,b=Array(f.size);return f.forEach(function(L){b[++S]=[L,L]}),b}function Us(f,S,b){for(var L=b-1,k=f.length;++L<k;)if(f[L]===S)return L;return-1}function Ys(f,S,b){for(var L=b+1;L--;)if(f[L]===S)return L;return L}function Pt(f){return Dt(f)?Gs(f):Es(f)}function ze(f){return Dt(f)?Ws(f):Fs(f)}function Cr(f){for(var S=f.length;S--&&Pl.test(f.charAt(S)););return S}var $s=ko(xs);function Gs(f){for(var S=Lo.lastIndex=0;Lo.test(f);)++S;return S}function Ws(f){return f.match(Lo)||[]}function Ks(f){return f.match(ds)||[]}var Vs=function f(S){S=S==null?ue:Rt.defaults(ue.Object(),S,Rt.pick(ue,gs));var b=S.Array,L=S.Date,k=S.Error,W=S.Function,le=S.Math,J=S.Object,Uo=S.RegExp,qs=S.String,De=S.TypeError,Bn=b.prototype,Js=W.prototype,Mt=J.prototype,Dn=S["__core-js_shared__"],Pn=Js.toString,q=Mt.hasOwnProperty,Xs=0,wr=function(){var e=/[^.]+$/.exec(Dn&&Dn.keys&&Dn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Rn=Mt.toString,Zs=Pn.call(J),Qs=ue._,js=Uo("^"+Pn.call(q).replace(wo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Mn=ar?S.Buffer:o,ct=S.Symbol,kn=S.Uint8Array,_r=Mn?Mn.allocUnsafe:o,Nn=Sr(J.getPrototypeOf,J),Ir=J.create,Tr=Mt.propertyIsEnumerable,On=Bn.splice,Er=ct?ct.isConcatSpreadable:o,jt=ct?ct.iterator:o,xt=ct?ct.toStringTag:o,Hn=function(){try{var e=_t(J,"defineProperty");return e({},"",{}),e}catch{}}(),ep=S.clearTimeout!==ue.clearTimeout&&S.clearTimeout,tp=L&&L.now!==ue.Date.now&&L.now,np=S.setTimeout!==ue.setTimeout&&S.setTimeout,zn=le.ceil,Un=le.floor,Yo=J.getOwnPropertySymbols,op=Mn?Mn.isBuffer:o,Fr=S.isFinite,ip=Bn.join,rp=Sr(J.keys,J),se=le.max,de=le.min,ap=L.now,lp=S.parseInt,Lr=le.random,sp=Bn.reverse,$o=_t(S,"DataView"),en=_t(S,"Map"),Go=_t(S,"Promise"),kt=_t(S,"Set"),tn=_t(S,"WeakMap"),nn=_t(J,"create"),Yn=tn&&new tn,Nt={},pp=It($o),up=It(en),cp=It(Go),dp=It(kt),mp=It(tn),$n=ct?ct.prototype:o,on=$n?$n.valueOf:o,Ar=$n?$n.toString:o;function s(e){if(oe(e)&&!N(e)&&!(e instanceof $)){if(e instanceof Pe)return e;if(q.call(e,"__wrapped__"))return Ba(e)}return new Pe(e)}var Ot=function(){function e(){}return function(t){if(!ne(t))return{};if(Ir)return Ir(t);e.prototype=t;var i=new e;return e.prototype=o,i}}();function Gn(){}function Pe(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}s.templateSettings={escape:El,evaluate:Fl,interpolate:Hi,variable:"",imports:{_:s}},s.prototype=Gn.prototype,s.prototype.constructor=s,Pe.prototype=Ot(Gn.prototype),Pe.prototype.constructor=Pe;function $(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ge,this.__views__=[]}function fp(){var e=new $(this.__wrapped__);return e.__actions__=he(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=he(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=he(this.__views__),e}function gp(){if(this.__filtered__){var e=new $(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function yp(){var e=this.__wrapped__.value(),t=this.__dir__,i=N(e),r=t<0,a=i?e.length:0,p=Fu(0,a,this.__views__),d=p.start,m=p.end,y=m-d,C=r?m:d-1,w=this.__iteratees__,I=w.length,T=0,A=de(y,this.__takeCount__);if(!i||!r&&a==y&&A==y)return ea(e,this.__actions__);var P=[];e:for(;y--&&T<A;){C+=t;for(var H=-1,R=e[C];++H<I;){var Y=w[H],G=Y.iteratee,Te=Y.type,ye=G(R);if(Te==bn)R=ye;else if(!ye){if(Te==Gt)continue e;break e}}P[T++]=R}return P}$.prototype=Ot(Gn.prototype),$.prototype.constructor=$;function vt(e){var t=-1,i=e==null?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function hp(){this.__data__=nn?nn(null):{},this.size=0}function bp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function xp(e){var t=this.__data__;if(nn){var i=t[e];return i===v?o:i}return q.call(t,e)?t[e]:o}function vp(e){var t=this.__data__;return nn?t[e]!==o:q.call(t,e)}function Sp(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=nn&&t===o?v:t,this}vt.prototype.clear=hp,vt.prototype.delete=bp,vt.prototype.get=xp,vt.prototype.has=vp,vt.prototype.set=Sp;function Ze(e){var t=-1,i=e==null?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Cp(){this.__data__=[],this.size=0}function wp(e){var t=this.__data__,i=Wn(t,e);if(i<0)return!1;var r=t.length-1;return i==r?t.pop():On.call(t,i,1),--this.size,!0}function _p(e){var t=this.__data__,i=Wn(t,e);return i<0?o:t[i][1]}function Ip(e){return Wn(this.__data__,e)>-1}function Tp(e,t){var i=this.__data__,r=Wn(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this}Ze.prototype.clear=Cp,Ze.prototype.delete=wp,Ze.prototype.get=_p,Ze.prototype.has=Ip,Ze.prototype.set=Tp;function Qe(e){var t=-1,i=e==null?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Ep(){this.size=0,this.__data__={hash:new vt,map:new(en||Ze),string:new vt}}function Fp(e){var t=oo(this,e).delete(e);return this.size-=t?1:0,t}function Lp(e){return oo(this,e).get(e)}function Ap(e){return oo(this,e).has(e)}function Bp(e,t){var i=oo(this,e),r=i.size;return i.set(e,t),this.size+=i.size==r?0:1,this}Qe.prototype.clear=Ep,Qe.prototype.delete=Fp,Qe.prototype.get=Lp,Qe.prototype.has=Ap,Qe.prototype.set=Bp;function St(e){var t=-1,i=e==null?0:e.length;for(this.__data__=new Qe;++t<i;)this.add(e[t])}function Dp(e){return this.__data__.set(e,v),this}function Pp(e){return this.__data__.has(e)}St.prototype.add=St.prototype.push=Dp,St.prototype.has=Pp;function Ue(e){var t=this.__data__=new Ze(e);this.size=t.size}function Rp(){this.__data__=new Ze,this.size=0}function Mp(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}function kp(e){return this.__data__.get(e)}function Np(e){return this.__data__.has(e)}function Op(e,t){var i=this.__data__;if(i instanceof Ze){var r=i.__data__;if(!en||r.length<g-1)return r.push([e,t]),this.size=++i.size,this;i=this.__data__=new Qe(r)}return i.set(e,t),this.size=i.size,this}Ue.prototype.clear=Rp,Ue.prototype.delete=Mp,Ue.prototype.get=kp,Ue.prototype.has=Np,Ue.prototype.set=Op;function Br(e,t){var i=N(e),r=!i&&Tt(e),a=!i&&!r&&yt(e),p=!i&&!r&&!a&&Yt(e),d=i||r||a||p,m=d?Oo(e.length,qs):[],y=m.length;for(var C in e)(t||q.call(e,C))&&!(d&&(C=="length"||a&&(C=="offset"||C=="parent")||p&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||nt(C,y)))&&m.push(C);return m}function Dr(e){var t=e.length;return t?e[ti(0,t-1)]:o}function Hp(e,t){return io(he(e),Ct(t,0,e.length))}function zp(e){return io(he(e))}function Wo(e,t,i){(i!==o&&!Ye(e[t],i)||i===o&&!(t in e))&&je(e,t,i)}function rn(e,t,i){var r=e[t];(!(q.call(e,t)&&Ye(r,i))||i===o&&!(t in e))&&je(e,t,i)}function Wn(e,t){for(var i=e.length;i--;)if(Ye(e[i][0],t))return i;return-1}function Up(e,t,i,r){return dt(e,function(a,p,d){t(r,a,i(a),d)}),r}function Pr(e,t){return e&&Ke(t,pe(t),e)}function Yp(e,t){return e&&Ke(t,xe(t),e)}function je(e,t,i){t=="__proto__"&&Hn?Hn(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function Ko(e,t){for(var i=-1,r=t.length,a=b(r),p=e==null;++i<r;)a[i]=p?o:Ti(e,t[i]);return a}function Ct(e,t,i){return e===e&&(i!==o&&(e=e<=i?e:i),t!==o&&(e=e>=t?e:t)),e}function Re(e,t,i,r,a,p){var d,m=t&B,y=t&U,C=t&j;if(i&&(d=a?i(e,r,a,p):i(e)),d!==o)return d;if(!ne(e))return e;var w=N(e);if(w){if(d=Au(e),!m)return he(e,d)}else{var I=me(e),T=I==wn||I==Mi;if(yt(e))return oa(e,m);if(I==Xe||I==Ft||T&&!a){if(d=y||T?{}:Ca(e),!m)return y?xu(e,Yp(d,e)):bu(e,Pr(d,e))}else{if(!Q[I])return a?e:{};d=Bu(e,I,m)}}p||(p=new Ue);var A=p.get(e);if(A)return A;p.set(e,d),Za(e)?e.forEach(function(R){d.add(Re(R,t,i,R,e,p))}):Ja(e)&&e.forEach(function(R,Y){d.set(Y,Re(R,t,i,Y,e,p))});var P=C?y?di:ci:y?xe:pe,H=w?o:P(e);return Be(H||e,function(R,Y){H&&(Y=R,R=e[Y]),rn(d,Y,Re(R,t,i,Y,e,p))}),d}function $p(e){var t=pe(e);return function(i){return Rr(i,e,t)}}function Rr(e,t,i){var r=i.length;if(e==null)return!r;for(e=J(e);r--;){var a=i[r],p=t[a],d=e[a];if(d===o&&!(a in e)||!p(d))return!1}return!0}function Mr(e,t,i){if(typeof e!="function")throw new De(h);return dn(function(){e.apply(o,i)},t)}function an(e,t,i,r){var a=-1,p=Fn,d=!0,m=e.length,y=[],C=t.length;if(!m)return y;i&&(t=te(t,we(i))),r?(p=Do,d=!1):t.length>=g&&(p=Qt,d=!1,t=new St(t));e:for(;++a<m;){var w=e[a],I=i==null?w:i(w);if(w=r||w!==0?w:0,d&&I===I){for(var T=C;T--;)if(t[T]===I)continue e;y.push(w)}else p(t,I,r)||y.push(w)}return y}var dt=sa(We),kr=sa(qo,!0);function Gp(e,t){var i=!0;return dt(e,function(r,a,p){return i=!!t(r,a,p),i}),i}function Kn(e,t,i){for(var r=-1,a=e.length;++r<a;){var p=e[r],d=t(p);if(d!=null&&(m===o?d===d&&!Ie(d):i(d,m)))var m=d,y=p}return y}function Wp(e,t,i,r){var a=e.length;for(i=O(i),i<0&&(i=-i>a?0:a+i),r=r===o||r>a?a:O(r),r<0&&(r+=a),r=i>r?0:ja(r);i<r;)e[i++]=t;return e}function Nr(e,t){var i=[];return dt(e,function(r,a,p){t(r,a,p)&&i.push(r)}),i}function ce(e,t,i,r,a){var p=-1,d=e.length;for(i||(i=Pu),a||(a=[]);++p<d;){var m=e[p];t>0&&i(m)?t>1?ce(m,t-1,i,r,a):pt(a,m):r||(a[a.length]=m)}return a}var Vo=pa(),Or=pa(!0);function We(e,t){return e&&Vo(e,t,pe)}function qo(e,t){return e&&Or(e,t,pe)}function Vn(e,t){return st(t,function(i){return ot(e[i])})}function wt(e,t){t=ft(t,e);for(var i=0,r=t.length;e!=null&&i<r;)e=e[Ve(t[i++])];return i&&i==r?e:o}function Hr(e,t,i){var r=t(e);return N(e)?r:pt(r,i(e))}function fe(e){return e==null?e===o?vl:bl:xt&&xt in J(e)?Eu(e):zu(e)}function Jo(e,t){return e>t}function Kp(e,t){return e!=null&&q.call(e,t)}function Vp(e,t){return e!=null&&t in J(e)}function qp(e,t,i){return e>=de(t,i)&&e<se(t,i)}function Xo(e,t,i){for(var r=i?Do:Fn,a=e[0].length,p=e.length,d=p,m=b(p),y=1/0,C=[];d--;){var w=e[d];d&&t&&(w=te(w,we(t))),y=de(w.length,y),m[d]=!i&&(t||a>=120&&w.length>=120)?new St(d&&w):o}w=e[0];var I=-1,T=m[0];e:for(;++I<a&&C.length<y;){var A=w[I],P=t?t(A):A;if(A=i||A!==0?A:0,!(T?Qt(T,P):r(C,P,i))){for(d=p;--d;){var H=m[d];if(!(H?Qt(H,P):r(e[d],P,i)))continue e}T&&T.push(P),C.push(A)}}return C}function Jp(e,t,i,r){return We(e,function(a,p,d){t(r,i(a),p,d)}),r}function ln(e,t,i){t=ft(t,e),e=Ta(e,t);var r=e==null?e:e[Ve(ke(t))];return r==null?o:Ce(r,e,i)}function zr(e){return oe(e)&&fe(e)==Ft}function Xp(e){return oe(e)&&fe(e)==Zt}function Zp(e){return oe(e)&&fe(e)==Kt}function sn(e,t,i,r,a){return e===t?!0:e==null||t==null||!oe(e)&&!oe(t)?e!==e&&t!==t:Qp(e,t,i,r,sn,a)}function Qp(e,t,i,r,a,p){var d=N(e),m=N(t),y=d?Sn:me(e),C=m?Sn:me(t);y=y==Ft?Xe:y,C=C==Ft?Xe:C;var w=y==Xe,I=C==Xe,T=y==C;if(T&&yt(e)){if(!yt(t))return!1;d=!0,w=!1}if(T&&!w)return p||(p=new Ue),d||Yt(e)?xa(e,t,i,r,a,p):Iu(e,t,y,i,r,a,p);if(!(i&X)){var A=w&&q.call(e,"__wrapped__"),P=I&&q.call(t,"__wrapped__");if(A||P){var H=A?e.value():e,R=P?t.value():t;return p||(p=new Ue),a(H,R,i,r,p)}}return T?(p||(p=new Ue),Tu(e,t,i,r,a,p)):!1}function jp(e){return oe(e)&&me(e)==Oe}function Zo(e,t,i,r){var a=i.length,p=a,d=!r;if(e==null)return!p;for(e=J(e);a--;){var m=i[a];if(d&&m[2]?m[1]!==e[m[0]]:!(m[0]in e))return!1}for(;++a<p;){m=i[a];var y=m[0],C=e[y],w=m[1];if(d&&m[2]){if(C===o&&!(y in e))return!1}else{var I=new Ue;if(r)var T=r(C,w,y,e,t,I);if(!(T===o?sn(w,C,X|K,r,I):T))return!1}}return!0}function Ur(e){if(!ne(e)||Mu(e))return!1;var t=ot(e)?js:$l;return t.test(It(e))}function eu(e){return oe(e)&&fe(e)==qt}function tu(e){return oe(e)&&me(e)==He}function nu(e){return oe(e)&&uo(e.length)&&!!ee[fe(e)]}function Yr(e){return typeof e=="function"?e:e==null?ve:typeof e=="object"?N(e)?Wr(e[0],e[1]):Gr(e):ul(e)}function Qo(e){if(!cn(e))return rp(e);var t=[];for(var i in J(e))q.call(e,i)&&i!="constructor"&&t.push(i);return t}function ou(e){if(!ne(e))return Hu(e);var t=cn(e),i=[];for(var r in e)r=="constructor"&&(t||!q.call(e,r))||i.push(r);return i}function jo(e,t){return e<t}function $r(e,t){var i=-1,r=be(e)?b(e.length):[];return dt(e,function(a,p,d){r[++i]=t(a,p,d)}),r}function Gr(e){var t=fi(e);return t.length==1&&t[0][2]?_a(t[0][0],t[0][1]):function(i){return i===e||Zo(i,e,t)}}function Wr(e,t){return yi(e)&&wa(t)?_a(Ve(e),t):function(i){var r=Ti(i,e);return r===o&&r===t?Ei(i,e):sn(t,r,X|K)}}function qn(e,t,i,r,a){e!==t&&Vo(t,function(p,d){if(a||(a=new Ue),ne(p))iu(e,t,d,i,qn,r,a);else{var m=r?r(bi(e,d),p,d+"",e,t,a):o;m===o&&(m=p),Wo(e,d,m)}},xe)}function iu(e,t,i,r,a,p,d){var m=bi(e,i),y=bi(t,i),C=d.get(y);if(C){Wo(e,i,C);return}var w=p?p(m,y,i+"",e,t,d):o,I=w===o;if(I){var T=N(y),A=!T&&yt(y),P=!T&&!A&&Yt(y);w=y,T||A||P?N(m)?w=m:ie(m)?w=he(m):A?(I=!1,w=oa(y,!0)):P?(I=!1,w=ia(y,!0)):w=[]:mn(y)||Tt(y)?(w=m,Tt(m)?w=el(m):(!ne(m)||ot(m))&&(w=Ca(y))):I=!1}I&&(d.set(y,w),a(w,y,r,p,d),d.delete(y)),Wo(e,i,w)}function Kr(e,t){var i=e.length;if(!!i)return t+=t<0?i:0,nt(t,i)?e[t]:o}function Vr(e,t,i){t.length?t=te(t,function(p){return N(p)?function(d){return wt(d,p.length===1?p[0]:p)}:p}):t=[ve];var r=-1;t=te(t,we(D()));var a=$r(e,function(p,d,m){var y=te(t,function(C){return C(p)});return{criteria:y,index:++r,value:p}});return Bs(a,function(p,d){return hu(p,d,i)})}function ru(e,t){return qr(e,t,function(i,r){return Ei(e,r)})}function qr(e,t,i){for(var r=-1,a=t.length,p={};++r<a;){var d=t[r],m=wt(e,d);i(m,d)&&pn(p,ft(d,e),m)}return p}function au(e){return function(t){return wt(t,e)}}function ei(e,t,i,r){var a=r?As:Bt,p=-1,d=t.length,m=e;for(e===t&&(t=he(t)),i&&(m=te(e,we(i)));++p<d;)for(var y=0,C=t[p],w=i?i(C):C;(y=a(m,w,y,r))>-1;)m!==e&&On.call(m,y,1),On.call(e,y,1);return e}function Jr(e,t){for(var i=e?t.length:0,r=i-1;i--;){var a=t[i];if(i==r||a!==p){var p=a;nt(a)?On.call(e,a,1):ii(e,a)}}return e}function ti(e,t){return e+Un(Lr()*(t-e+1))}function lu(e,t,i,r){for(var a=-1,p=se(zn((t-e)/(i||1)),0),d=b(p);p--;)d[r?p:++a]=e,e+=i;return d}function ni(e,t){var i="";if(!e||t<1||t>lt)return i;do t%2&&(i+=e),t=Un(t/2),t&&(e+=e);while(t);return i}function z(e,t){return xi(Ia(e,t,ve),e+"")}function su(e){return Dr($t(e))}function pu(e,t){var i=$t(e);return io(i,Ct(t,0,i.length))}function pn(e,t,i,r){if(!ne(e))return e;t=ft(t,e);for(var a=-1,p=t.length,d=p-1,m=e;m!=null&&++a<p;){var y=Ve(t[a]),C=i;if(y==="__proto__"||y==="constructor"||y==="prototype")return e;if(a!=d){var w=m[y];C=r?r(w,y,m):o,C===o&&(C=ne(w)?w:nt(t[a+1])?[]:{})}rn(m,y,C),m=m[y]}return e}var Xr=Yn?function(e,t){return Yn.set(e,t),e}:ve,uu=Hn?function(e,t){return Hn(e,"toString",{configurable:!0,enumerable:!1,value:Li(t),writable:!0})}:ve;function cu(e){return io($t(e))}function Me(e,t,i){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),i=i>a?a:i,i<0&&(i+=a),a=t>i?0:i-t>>>0,t>>>=0;for(var p=b(a);++r<a;)p[r]=e[r+t];return p}function du(e,t){var i;return dt(e,function(r,a,p){return i=t(r,a,p),!i}),!!i}function Jn(e,t,i){var r=0,a=e==null?r:e.length;if(typeof t=="number"&&t===t&&a<=fl){for(;r<a;){var p=r+a>>>1,d=e[p];d!==null&&!Ie(d)&&(i?d<=t:d<t)?r=p+1:a=p}return a}return oi(e,t,ve,i)}function oi(e,t,i,r){var a=0,p=e==null?0:e.length;if(p===0)return 0;t=i(t);for(var d=t!==t,m=t===null,y=Ie(t),C=t===o;a<p;){var w=Un((a+p)/2),I=i(e[w]),T=I!==o,A=I===null,P=I===I,H=Ie(I);if(d)var R=r||P;else C?R=P&&(r||T):m?R=P&&T&&(r||!A):y?R=P&&T&&!A&&(r||!H):A||H?R=!1:R=r?I<=t:I<t;R?a=w+1:p=w}return de(p,ml)}function Zr(e,t){for(var i=-1,r=e.length,a=0,p=[];++i<r;){var d=e[i],m=t?t(d):d;if(!i||!Ye(m,y)){var y=m;p[a++]=d===0?0:d}}return p}function Qr(e){return typeof e=="number"?e:Ie(e)?vn:+e}function _e(e){if(typeof e=="string")return e;if(N(e))return te(e,_e)+"";if(Ie(e))return Ar?Ar.call(e):"";var t=e+"";return t=="0"&&1/e==-ht?"-0":t}function mt(e,t,i){var r=-1,a=Fn,p=e.length,d=!0,m=[],y=m;if(i)d=!1,a=Do;else if(p>=g){var C=t?null:wu(e);if(C)return An(C);d=!1,a=Qt,y=new St}else y=t?[]:m;e:for(;++r<p;){var w=e[r],I=t?t(w):w;if(w=i||w!==0?w:0,d&&I===I){for(var T=y.length;T--;)if(y[T]===I)continue e;t&&y.push(I),m.push(w)}else a(y,I,i)||(y!==m&&y.push(I),m.push(w))}return m}function ii(e,t){return t=ft(t,e),e=Ta(e,t),e==null||delete e[Ve(ke(t))]}function jr(e,t,i,r){return pn(e,t,i(wt(e,t)),r)}function Xn(e,t,i,r){for(var a=e.length,p=r?a:-1;(r?p--:++p<a)&&t(e[p],p,e););return i?Me(e,r?0:p,r?p+1:a):Me(e,r?p+1:0,r?a:p)}function ea(e,t){var i=e;return i instanceof $&&(i=i.value()),Po(t,function(r,a){return a.func.apply(a.thisArg,pt([r],a.args))},i)}function ri(e,t,i){var r=e.length;if(r<2)return r?mt(e[0]):[];for(var a=-1,p=b(r);++a<r;)for(var d=e[a],m=-1;++m<r;)m!=a&&(p[a]=an(p[a]||d,e[m],t,i));return mt(ce(p,1),t,i)}function ta(e,t,i){for(var r=-1,a=e.length,p=t.length,d={};++r<a;){var m=r<p?t[r]:o;i(d,e[r],m)}return d}function ai(e){return ie(e)?e:[]}function li(e){return typeof e=="function"?e:ve}function ft(e,t){return N(e)?e:yi(e,t)?[e]:Aa(V(e))}var mu=z;function gt(e,t,i){var r=e.length;return i=i===o?r:i,!t&&i>=r?e:Me(e,t,i)}var na=ep||function(e){return ue.clearTimeout(e)};function oa(e,t){if(t)return e.slice();var i=e.length,r=_r?_r(i):new e.constructor(i);return e.copy(r),r}function si(e){var t=new e.constructor(e.byteLength);return new kn(t).set(new kn(e)),t}function fu(e,t){var i=t?si(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}function gu(e){var t=new e.constructor(e.source,zi.exec(e));return t.lastIndex=e.lastIndex,t}function yu(e){return on?J(on.call(e)):{}}function ia(e,t){var i=t?si(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function ra(e,t){if(e!==t){var i=e!==o,r=e===null,a=e===e,p=Ie(e),d=t!==o,m=t===null,y=t===t,C=Ie(t);if(!m&&!C&&!p&&e>t||p&&d&&y&&!m&&!C||r&&d&&y||!i&&y||!a)return 1;if(!r&&!p&&!C&&e<t||C&&i&&a&&!r&&!p||m&&i&&a||!d&&a||!y)return-1}return 0}function hu(e,t,i){for(var r=-1,a=e.criteria,p=t.criteria,d=a.length,m=i.length;++r<d;){var y=ra(a[r],p[r]);if(y){if(r>=m)return y;var C=i[r];return y*(C=="desc"?-1:1)}}return e.index-t.index}function aa(e,t,i,r){for(var a=-1,p=e.length,d=i.length,m=-1,y=t.length,C=se(p-d,0),w=b(y+C),I=!r;++m<y;)w[m]=t[m];for(;++a<d;)(I||a<p)&&(w[i[a]]=e[a]);for(;C--;)w[m++]=e[a++];return w}function la(e,t,i,r){for(var a=-1,p=e.length,d=-1,m=i.length,y=-1,C=t.length,w=se(p-m,0),I=b(w+C),T=!r;++a<w;)I[a]=e[a];for(var A=a;++y<C;)I[A+y]=t[y];for(;++d<m;)(T||a<p)&&(I[A+i[d]]=e[a++]);return I}function he(e,t){var i=-1,r=e.length;for(t||(t=b(r));++i<r;)t[i]=e[i];return t}function Ke(e,t,i,r){var a=!i;i||(i={});for(var p=-1,d=t.length;++p<d;){var m=t[p],y=r?r(i[m],e[m],m,i,e):o;y===o&&(y=e[m]),a?je(i,m,y):rn(i,m,y)}return i}function bu(e,t){return Ke(e,gi(e),t)}function xu(e,t){return Ke(e,va(e),t)}function Zn(e,t){return function(i,r){var a=N(i)?_s:Up,p=t?t():{};return a(i,e,D(r,2),p)}}function Ht(e){return z(function(t,i){var r=-1,a=i.length,p=a>1?i[a-1]:o,d=a>2?i[2]:o;for(p=e.length>3&&typeof p=="function"?(a--,p):o,d&&ge(i[0],i[1],d)&&(p=a<3?o:p,a=1),t=J(t);++r<a;){var m=i[r];m&&e(t,m,r,p)}return t})}function sa(e,t){return function(i,r){if(i==null)return i;if(!be(i))return e(i,r);for(var a=i.length,p=t?a:-1,d=J(i);(t?p--:++p<a)&&r(d[p],p,d)!==!1;);return i}}function pa(e){return function(t,i,r){for(var a=-1,p=J(t),d=r(t),m=d.length;m--;){var y=d[e?m:++a];if(i(p[y],y,p)===!1)break}return t}}function vu(e,t,i){var r=t&M,a=un(e);function p(){var d=this&&this!==ue&&this instanceof p?a:e;return d.apply(r?i:this,arguments)}return p}function ua(e){return function(t){t=V(t);var i=Dt(t)?ze(t):o,r=i?i[0]:t.charAt(0),a=i?gt(i,1).join(""):t.slice(1);return r[e]()+a}}function zt(e){return function(t){return Po(sl(ll(t).replace(us,"")),e,"")}}function un(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 i=Ot(e.prototype),r=e.apply(i,t);return ne(r)?r:i}}function Su(e,t,i){var r=un(e);function a(){for(var p=arguments.length,d=b(p),m=p,y=Ut(a);m--;)d[m]=arguments[m];var C=p<3&&d[0]!==y&&d[p-1]!==y?[]:ut(d,y);if(p-=C.length,p<i)return ga(e,t,Qn,a.placeholder,o,d,C,o,o,i-p);var w=this&&this!==ue&&this instanceof a?r:e;return Ce(w,this,d)}return a}function ca(e){return function(t,i,r){var a=J(t);if(!be(t)){var p=D(i,3);t=pe(t),i=function(m){return p(a[m],m,a)}}var d=e(t,i,r);return d>-1?a[p?t[d]:d]:o}}function da(e){return tt(function(t){var i=t.length,r=i,a=Pe.prototype.thru;for(e&&t.reverse();r--;){var p=t[r];if(typeof p!="function")throw new De(h);if(a&&!d&&no(p)=="wrapper")var d=new Pe([],!0)}for(r=d?r:i;++r<i;){p=t[r];var m=no(p),y=m=="wrapper"?mi(p):o;y&&hi(y[0])&&y[1]==(Le|Z|Se|at)&&!y[4].length&&y[9]==1?d=d[no(y[0])].apply(d,y[3]):d=p.length==1&&hi(p)?d[m]():d.thru(p)}return function(){var C=arguments,w=C[0];if(d&&C.length==1&&N(w))return d.plant(w).value();for(var I=0,T=i?t[I].apply(this,C):w;++I<i;)T=t[I].call(this,T);return T}})}function Qn(e,t,i,r,a,p,d,m,y,C){var w=t&Le,I=t&M,T=t&ae,A=t&(Z|qe),P=t&Et,H=T?o:un(e);function R(){for(var Y=arguments.length,G=b(Y),Te=Y;Te--;)G[Te]=arguments[Te];if(A)var ye=Ut(R),Ee=Ps(G,ye);if(r&&(G=aa(G,r,a,A)),p&&(G=la(G,p,d,A)),Y-=Ee,A&&Y<C){var re=ut(G,ye);return ga(e,t,Qn,R.placeholder,i,G,re,m,y,C-Y)}var $e=I?i:this,rt=T?$e[e]:e;return Y=G.length,m?G=Uu(G,m):P&&Y>1&&G.reverse(),w&&y<Y&&(G.length=y),this&&this!==ue&&this instanceof R&&(rt=H||un(rt)),rt.apply($e,G)}return R}function ma(e,t){return function(i,r){return Jp(i,e,t(r),{})}}function jn(e,t){return function(i,r){var a;if(i===o&&r===o)return t;if(i!==o&&(a=i),r!==o){if(a===o)return r;typeof i=="string"||typeof r=="string"?(i=_e(i),r=_e(r)):(i=Qr(i),r=Qr(r)),a=e(i,r)}return a}}function pi(e){return tt(function(t){return t=te(t,we(D())),z(function(i){var r=this;return e(t,function(a){return Ce(a,r,i)})})})}function eo(e,t){t=t===o?" ":_e(t);var i=t.length;if(i<2)return i?ni(t,e):t;var r=ni(t,zn(e/Pt(t)));return Dt(t)?gt(ze(r),0,e).join(""):r.slice(0,e)}function Cu(e,t,i,r){var a=t&M,p=un(e);function d(){for(var m=-1,y=arguments.length,C=-1,w=r.length,I=b(w+y),T=this&&this!==ue&&this instanceof d?p:e;++C<w;)I[C]=r[C];for(;y--;)I[C++]=arguments[++m];return Ce(T,a?i:this,I)}return d}function fa(e){return function(t,i,r){return r&&typeof r!="number"&&ge(t,i,r)&&(i=r=o),t=it(t),i===o?(i=t,t=0):i=it(i),r=r===o?t<i?1:-1:it(r),lu(t,i,r,e)}}function to(e){return function(t,i){return typeof t=="string"&&typeof i=="string"||(t=Ne(t),i=Ne(i)),e(t,i)}}function ga(e,t,i,r,a,p,d,m,y,C){var w=t&Z,I=w?d:o,T=w?o:d,A=w?p:o,P=w?o:p;t|=w?Se:Je,t&=~(w?Je:Se),t&Fe||(t&=~(M|ae));var H=[e,t,a,A,I,P,T,m,y,C],R=i.apply(o,H);return hi(e)&&Ea(R,H),R.placeholder=r,Fa(R,e,t)}function ui(e){var t=le[e];return function(i,r){if(i=Ne(i),r=r==null?0:de(O(r),292),r&&Fr(i)){var a=(V(i)+"e").split("e"),p=t(a[0]+"e"+(+a[1]+r));return a=(V(p)+"e").split("e"),+(a[0]+"e"+(+a[1]-r))}return t(i)}}var wu=kt&&1/An(new kt([,-0]))[1]==ht?function(e){return new kt(e)}:Di;function ya(e){return function(t){var i=me(t);return i==Oe?zo(t):i==He?zs(t):Ds(t,e(t))}}function et(e,t,i,r,a,p,d,m){var y=t&ae;if(!y&&typeof e!="function")throw new De(h);var C=r?r.length:0;if(C||(t&=~(Se|Je),r=a=o),d=d===o?d:se(O(d),0),m=m===o?m:O(m),C-=a?a.length:0,t&Je){var w=r,I=a;r=a=o}var T=y?o:mi(e),A=[e,t,i,r,a,w,I,p,d,m];if(T&&Ou(A,T),e=A[0],t=A[1],i=A[2],r=A[3],a=A[4],m=A[9]=A[9]===o?y?0:e.length:se(A[9]-C,0),!m&&t&(Z|qe)&&(t&=~(Z|qe)),!t||t==M)var P=vu(e,t,i);else t==Z||t==qe?P=Su(e,t,m):(t==Se||t==(M|Se))&&!a.length?P=Cu(e,t,i,r):P=Qn.apply(o,A);var H=T?Xr:Ea;return Fa(H(P,A),e,t)}function ha(e,t,i,r){return e===o||Ye(e,Mt[i])&&!q.call(r,i)?t:e}function ba(e,t,i,r,a,p){return ne(e)&&ne(t)&&(p.set(t,e),qn(e,t,o,ba,p),p.delete(t)),e}function _u(e){return mn(e)?o:e}function xa(e,t,i,r,a,p){var d=i&X,m=e.length,y=t.length;if(m!=y&&!(d&&y>m))return!1;var C=p.get(e),w=p.get(t);if(C&&w)return C==t&&w==e;var I=-1,T=!0,A=i&K?new St:o;for(p.set(e,t),p.set(t,e);++I<m;){var P=e[I],H=t[I];if(r)var R=d?r(H,P,I,t,e,p):r(P,H,I,e,t,p);if(R!==o){if(R)continue;T=!1;break}if(A){if(!Ro(t,function(Y,G){if(!Qt(A,G)&&(P===Y||a(P,Y,i,r,p)))return A.push(G)})){T=!1;break}}else if(!(P===H||a(P,H,i,r,p))){T=!1;break}}return p.delete(e),p.delete(t),T}function Iu(e,t,i,r,a,p,d){switch(i){case Lt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zt:return!(e.byteLength!=t.byteLength||!p(new kn(e),new kn(t)));case Wt:case Kt:case Vt:return Ye(+e,+t);case Cn:return e.name==t.name&&e.message==t.message;case qt:case Jt:return e==t+"";case Oe:var m=zo;case He:var y=r&X;if(m||(m=An),e.size!=t.size&&!y)return!1;var C=d.get(e);if(C)return C==t;r|=K,d.set(e,t);var w=xa(m(e),m(t),r,a,p,d);return d.delete(e),w;case _n:if(on)return on.call(e)==on.call(t)}return!1}function Tu(e,t,i,r,a,p){var d=i&X,m=ci(e),y=m.length,C=ci(t),w=C.length;if(y!=w&&!d)return!1;for(var I=y;I--;){var T=m[I];if(!(d?T in t:q.call(t,T)))return!1}var A=p.get(e),P=p.get(t);if(A&&P)return A==t&&P==e;var H=!0;p.set(e,t),p.set(t,e);for(var R=d;++I<y;){T=m[I];var Y=e[T],G=t[T];if(r)var Te=d?r(G,Y,T,t,e,p):r(Y,G,T,e,t,p);if(!(Te===o?Y===G||a(Y,G,i,r,p):Te)){H=!1;break}R||(R=T=="constructor")}if(H&&!R){var ye=e.constructor,Ee=t.constructor;ye!=Ee&&"constructor"in e&&"constructor"in t&&!(typeof ye=="function"&&ye instanceof ye&&typeof Ee=="function"&&Ee instanceof Ee)&&(H=!1)}return p.delete(e),p.delete(t),H}function tt(e){return xi(Ia(e,o,Ra),e+"")}function ci(e){return Hr(e,pe,gi)}function di(e){return Hr(e,xe,va)}var mi=Yn?function(e){return Yn.get(e)}:Di;function no(e){for(var t=e.name+"",i=Nt[t],r=q.call(Nt,t)?i.length:0;r--;){var a=i[r],p=a.func;if(p==null||p==e)return a.name}return t}function Ut(e){var t=q.call(s,"placeholder")?s:e;return t.placeholder}function D(){var e=s.iteratee||Ai;return e=e===Ai?Yr:e,arguments.length?e(arguments[0],arguments[1]):e}function oo(e,t){var i=e.__data__;return Ru(t)?i[typeof t=="string"?"string":"hash"]:i.map}function fi(e){for(var t=pe(e),i=t.length;i--;){var r=t[i],a=e[r];t[i]=[r,a,wa(a)]}return t}function _t(e,t){var i=Ns(e,t);return Ur(i)?i:o}function Eu(e){var t=q.call(e,xt),i=e[xt];try{e[xt]=o;var r=!0}catch{}var a=Rn.call(e);return r&&(t?e[xt]=i:delete e[xt]),a}var gi=Yo?function(e){return e==null?[]:(e=J(e),st(Yo(e),function(t){return Tr.call(e,t)}))}:Pi,va=Yo?function(e){for(var t=[];e;)pt(t,gi(e)),e=Nn(e);return t}:Pi,me=fe;($o&&me(new $o(new ArrayBuffer(1)))!=Lt||en&&me(new en)!=Oe||Go&&me(Go.resolve())!=ki||kt&&me(new kt)!=He||tn&&me(new tn)!=Xt)&&(me=function(e){var t=fe(e),i=t==Xe?e.constructor:o,r=i?It(i):"";if(r)switch(r){case pp:return Lt;case up:return Oe;case cp:return ki;case dp:return He;case mp:return Xt}return t});function Fu(e,t,i){for(var r=-1,a=i.length;++r<a;){var p=i[r],d=p.size;switch(p.type){case"drop":e+=d;break;case"dropRight":t-=d;break;case"take":t=de(t,e+d);break;case"takeRight":e=se(e,t-d);break}}return{start:e,end:t}}function Lu(e){var t=e.match(Ml);return t?t[1].split(kl):[]}function Sa(e,t,i){t=ft(t,e);for(var r=-1,a=t.length,p=!1;++r<a;){var d=Ve(t[r]);if(!(p=e!=null&&i(e,d)))break;e=e[d]}return p||++r!=a?p:(a=e==null?0:e.length,!!a&&uo(a)&&nt(d,a)&&(N(e)||Tt(e)))}function Au(e){var t=e.length,i=new e.constructor(t);return t&&typeof e[0]=="string"&&q.call(e,"index")&&(i.index=e.index,i.input=e.input),i}function Ca(e){return typeof e.constructor=="function"&&!cn(e)?Ot(Nn(e)):{}}function Bu(e,t,i){var r=e.constructor;switch(t){case Zt:return si(e);case Wt:case Kt:return new r(+e);case Lt:return fu(e,i);case fo:case go:case yo:case ho:case bo:case xo:case vo:case So:case Co:return ia(e,i);case Oe:return new r;case Vt:case Jt:return new r(e);case qt:return gu(e);case He:return new r;case _n:return yu(e)}}function Du(e,t){var i=t.length;if(!i)return e;var r=i-1;return t[r]=(i>1?"& ":"")+t[r],t=t.join(i>2?", ":" "),e.replace(Rl,`{
|
|
9
9
|
/* [wrapped with `+t+`] */
|
|
10
|
-
`)}function Pu(e){return k(e)||Tt(e)||!!(Er&&e&&e[Er])}function nt(e,t){var i=typeof e;return t=t==null?lt:t,!!t&&(i=="number"||i!="symbol"&&Wl.test(e))&&e>-1&&e%1==0&&e<t}function ge(e,t,i){if(!ne(i))return!1;var r=typeof t;return(r=="number"?be(i)&&nt(t,i.length):r=="string"&&t in i)?Ye(i[t],e):!1}function yi(e,t){if(k(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||Ie(e)?!0:Al.test(e)||!Ll.test(e)||t!=null&&e in J(t)}function Ru(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function hi(e){var t=no(e),i=s[t];if(typeof i!="function"||!(t in $.prototype))return!1;if(e===i)return!0;var r=mi(i);return!!r&&e===r[0]}function Mu(e){return!!wr&&wr in e}var Nu=Dn?ot:Ri;function cn(e){var t=e&&e.constructor,i=typeof t=="function"&&t.prototype||Mt;return e===i}function wa(e){return e===e&&!ne(e)}function _a(e,t){return function(i){return i==null?!1:i[e]===t&&(t!==o||e in J(i))}}function ku(e){var t=so(e,function(r){return i.size===E&&i.clear(),r}),i=t.cache;return t}function Ou(e,t){var i=e[1],r=t[1],a=i|r,p=a<(M|ae|Le),d=r==Le&&i==Z||r==Le&&i==at&&e[7].length<=t[8]||r==(Le|at)&&t[7].length<=t[8]&&i==Z;if(!(p||d))return e;r&M&&(e[2]=t[2],a|=i&M?0:Fe);var m=t[3];if(m){var y=e[3];e[3]=y?aa(y,m,t[4]):m,e[4]=y?ut(e[3],F):t[4]}return m=t[5],m&&(y=e[5],e[5]=y?la(y,m,t[6]):m,e[6]=y?ut(e[5],F):t[6]),m=t[7],m&&(e[7]=m),r&Le&&(e[8]=e[8]==null?t[8]:de(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Hu(e){var t=[];if(e!=null)for(var i in J(e))t.push(i);return t}function Uu(e){return Rn.call(e)}function Ia(e,t,i){return t=se(t===o?e.length-1:t,0),function(){for(var r=arguments,a=-1,p=se(r.length-t,0),d=b(p);++a<p;)d[a]=r[t+a];a=-1;for(var m=b(t+1);++a<t;)m[a]=r[a];return m[t]=i(d),Ce(e,this,m)}}function Ta(e,t){return t.length<2?e:wt(e,Me(t,0,-1))}function zu(e,t){for(var i=e.length,r=de(t.length,i),a=he(e);r--;){var p=t[r];e[r]=nt(p,i)?a[p]:o}return e}function bi(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ea=La(Xr),dn=np||function(e,t){return ue.setTimeout(e,t)},xi=La(uu);function Fa(e,t,i){var r=t+"";return xi(e,Du(r,Yu(Lu(r),i)))}function La(e){var t=0,i=0;return function(){var r=ap(),a=hn-(r-i);if(i=r,a>0){if(++t>=yn)return arguments[0]}else t=0;return e.apply(o,arguments)}}function io(e,t){var i=-1,r=e.length,a=r-1;for(t=t===o?r:t;++i<t;){var p=ti(i,a),d=e[p];e[p]=e[i],e[i]=d}return e.length=t,e}var Aa=ku(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bl,function(i,r,a,p){t.push(a?p.replace(Hl,"$1"):r||i)}),t});function Ke(e){if(typeof e=="string"||Ie(e))return e;var t=e+"";return t=="0"&&1/e==-ht?"-0":t}function It(e){if(e!=null){try{return Pn.call(e)}catch{}try{return e+""}catch{}}return""}function Yu(e,t){return Be(gl,function(i){var r="_."+i[0];t&i[1]&&!Fn(e,r)&&e.push(r)}),e.sort()}function Ba(e){if(e instanceof $)return e.clone();var t=new Pe(e.__wrapped__,e.__chain__);return t.__actions__=he(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function $u(e,t,i){(i?ge(e,t,i):t===o)?t=1:t=se(O(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var a=0,p=0,d=b(Un(r/t));a<r;)d[p++]=Me(e,a,a+=t);return d}function Gu(e){for(var t=-1,i=e==null?0:e.length,r=0,a=[];++t<i;){var p=e[t];p&&(a[r++]=p)}return a}function Wu(){var e=arguments.length;if(!e)return[];for(var t=b(e-1),i=arguments[0],r=e;r--;)t[r-1]=arguments[r];return pt(k(i)?he(i):[i],ce(t,1))}var Vu=U(function(e,t){return ie(e)?an(e,ce(t,1,ie,!0)):[]}),Ku=U(function(e,t){var i=Ne(t);return ie(i)&&(i=o),ie(e)?an(e,ce(t,1,ie,!0),D(i,2)):[]}),qu=U(function(e,t){var i=Ne(t);return ie(i)&&(i=o),ie(e)?an(e,ce(t,1,ie,!0),o,i):[]});function Ju(e,t,i){var r=e==null?0:e.length;return r?(t=i||t===o?1:O(t),Me(e,t<0?0:t,r)):[]}function Xu(e,t,i){var r=e==null?0:e.length;return r?(t=i||t===o?1:O(t),t=r-t,Me(e,0,t<0?0:t)):[]}function Zu(e,t){return e&&e.length?Xn(e,D(t,3),!0,!0):[]}function Qu(e,t){return e&&e.length?Xn(e,D(t,3),!0):[]}function ju(e,t,i,r){var a=e==null?0:e.length;return a?(i&&typeof i!="number"&&ge(e,t,i)&&(i=0,r=a),Wp(e,t,i,r)):[]}function Da(e,t,i){var r=e==null?0:e.length;if(!r)return-1;var a=i==null?0:O(i);return a<0&&(a=se(r+a,0)),Ln(e,D(t,3),a)}function Pa(e,t,i){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return i!==o&&(a=O(i),a=i<0?se(r+a,0):de(a,r-1)),Ln(e,D(t,3),a,!0)}function Ra(e){var t=e==null?0:e.length;return t?ce(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?ce(e,ht):[]}function tc(e,t){var i=e==null?0:e.length;return i?(t=t===o?1:O(t),ce(e,t)):[]}function nc(e){for(var t=-1,i=e==null?0:e.length,r={};++t<i;){var a=e[t];r[a[0]]=a[1]}return r}function Ma(e){return e&&e.length?e[0]:o}function oc(e,t,i){var r=e==null?0:e.length;if(!r)return-1;var a=i==null?0:O(i);return a<0&&(a=se(r+a,0)),Bt(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Me(e,0,-1):[]}var rc=U(function(e){var t=te(e,ai);return t.length&&t[0]===e[0]?Xo(t):[]}),ac=U(function(e){var t=Ne(e),i=te(e,ai);return t===Ne(i)?t=o:i.pop(),i.length&&i[0]===e[0]?Xo(i,D(t,2)):[]}),lc=U(function(e){var t=Ne(e),i=te(e,ai);return t=typeof t=="function"?t:o,t&&i.pop(),i.length&&i[0]===e[0]?Xo(i,o,t):[]});function sc(e,t){return e==null?"":ip.call(e,t)}function Ne(e){var t=e==null?0:e.length;return t?e[t-1]:o}function pc(e,t,i){var r=e==null?0:e.length;if(!r)return-1;var a=r;return i!==o&&(a=O(i),a=a<0?se(r+a,0):de(a,r-1)),t===t?Ys(e,t,a):Ln(e,gr,a,!0)}function uc(e,t){return e&&e.length?Vr(e,O(t)):o}var cc=U(Na);function Na(e,t){return e&&e.length&&t&&t.length?ei(e,t):e}function dc(e,t,i){return e&&e.length&&t&&t.length?ei(e,t,D(i,2)):e}function mc(e,t,i){return e&&e.length&&t&&t.length?ei(e,t,o,i):e}var fc=tt(function(e,t){var i=e==null?0:e.length,r=Vo(e,t);return Jr(e,te(t,function(a){return nt(a,i)?+a:a}).sort(ra)),r});function gc(e,t){var i=[];if(!(e&&e.length))return i;var r=-1,a=[],p=e.length;for(t=D(t,3);++r<p;){var d=e[r];t(d,r,e)&&(i.push(d),a.push(r))}return Jr(e,a),i}function vi(e){return e==null?e:sp.call(e)}function yc(e,t,i){var r=e==null?0:e.length;return r?(i&&typeof i!="number"&&ge(e,t,i)?(t=0,i=r):(t=t==null?0:O(t),i=i===o?r:O(i)),Me(e,t,i)):[]}function hc(e,t){return Jn(e,t)}function bc(e,t,i){return oi(e,t,D(i,2))}function xc(e,t){var i=e==null?0:e.length;if(i){var r=Jn(e,t);if(r<i&&Ye(e[r],t))return r}return-1}function vc(e,t){return Jn(e,t,!0)}function Sc(e,t,i){return oi(e,t,D(i,2),!0)}function Cc(e,t){var i=e==null?0:e.length;if(i){var r=Jn(e,t,!0)-1;if(Ye(e[r],t))return r}return-1}function wc(e){return e&&e.length?Zr(e):[]}function _c(e,t){return e&&e.length?Zr(e,D(t,2)):[]}function Ic(e){var t=e==null?0:e.length;return t?Me(e,1,t):[]}function Tc(e,t,i){return e&&e.length?(t=i||t===o?1:O(t),Me(e,0,t<0?0:t)):[]}function Ec(e,t,i){var r=e==null?0:e.length;return r?(t=i||t===o?1:O(t),t=r-t,Me(e,t<0?0:t,r)):[]}function Fc(e,t){return e&&e.length?Xn(e,D(t,3),!1,!0):[]}function Lc(e,t){return e&&e.length?Xn(e,D(t,3)):[]}var Ac=U(function(e){return mt(ce(e,1,ie,!0))}),Bc=U(function(e){var t=Ne(e);return ie(t)&&(t=o),mt(ce(e,1,ie,!0),D(t,2))}),Dc=U(function(e){var t=Ne(e);return t=typeof t=="function"?t:o,mt(ce(e,1,ie,!0),o,t)});function Pc(e){return e&&e.length?mt(e):[]}function Rc(e,t){return e&&e.length?mt(e,D(t,2)):[]}function Mc(e,t){return t=typeof t=="function"?t:o,e&&e.length?mt(e,o,t):[]}function Si(e){if(!(e&&e.length))return[];var t=0;return e=st(e,function(i){if(ie(i))return t=se(i.length,t),!0}),Oo(t,function(i){return te(e,Mo(i))})}function ka(e,t){if(!(e&&e.length))return[];var i=Si(e);return t==null?i:te(i,function(r){return Ce(t,o,r)})}var Nc=U(function(e,t){return ie(e)?an(e,t):[]}),kc=U(function(e){return ri(st(e,ie))}),Oc=U(function(e){var t=Ne(e);return ie(t)&&(t=o),ri(st(e,ie),D(t,2))}),Hc=U(function(e){var t=Ne(e);return t=typeof t=="function"?t:o,ri(st(e,ie),o,t)}),Uc=U(Si);function zc(e,t){return ta(e||[],t||[],rn)}function Yc(e,t){return ta(e||[],t||[],pn)}var $c=U(function(e){var t=e.length,i=t>1?e[t-1]:o;return i=typeof i=="function"?(e.pop(),i):o,ka(e,i)});function Oa(e){var t=s(e);return t.__chain__=!0,t}function Gc(e,t){return t(e),e}function ro(e,t){return t(e)}var Wc=tt(function(e){var t=e.length,i=t?e[0]:0,r=this.__wrapped__,a=function(p){return Vo(p,e)};return t>1||this.__actions__.length||!(r instanceof $)||!nt(i)?this.thru(a):(r=r.slice(i,+i+(t?1:0)),r.__actions__.push({func:ro,args:[a],thisArg:o}),new Pe(r,this.__chain__).thru(function(p){return t&&!p.length&&p.push(o),p}))});function Vc(){return Oa(this)}function Kc(){return new Pe(this.value(),this.__chain__)}function qc(){this.__values__===o&&(this.__values__=Qa(this.value()));var e=this.__index__>=this.__values__.length,t=e?o:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Xc(e){for(var t,i=this;i instanceof Gn;){var r=Ba(i);r.__index__=0,r.__values__=o,t?a.__wrapped__=r:t=r;var a=r;i=i.__wrapped__}return a.__wrapped__=e,t}function Zc(){var e=this.__wrapped__;if(e instanceof $){var t=e;return this.__actions__.length&&(t=new $(this)),t=t.reverse(),t.__actions__.push({func:ro,args:[vi],thisArg:o}),new Pe(t,this.__chain__)}return this.thru(vi)}function Qc(){return ea(this.__wrapped__,this.__actions__)}var jc=Zn(function(e,t,i){q.call(e,i)?++e[i]:je(e,i,1)});function ed(e,t,i){var r=k(e)?mr:Gp;return i&&ge(e,t,i)&&(t=o),r(e,D(t,3))}function td(e,t){var i=k(e)?st:kr;return i(e,D(t,3))}var nd=ca(Da),od=ca(Pa);function id(e,t){return ce(ao(e,t),1)}function rd(e,t){return ce(ao(e,t),ht)}function ad(e,t,i){return i=i===o?1:O(i),ce(ao(e,t),i)}function Ha(e,t){var i=k(e)?Be:dt;return i(e,D(t,3))}function Ua(e,t){var i=k(e)?Is:Nr;return i(e,D(t,3))}var ld=Zn(function(e,t,i){q.call(e,i)?e[i].push(t):je(e,i,[t])});function sd(e,t,i,r){e=be(e)?e:$t(e),i=i&&!r?O(i):0;var a=e.length;return i<0&&(i=se(a+i,0)),co(e)?i<=a&&e.indexOf(t,i)>-1:!!a&&Bt(e,t,i)>-1}var pd=U(function(e,t,i){var r=-1,a=typeof t=="function",p=be(e)?b(e.length):[];return dt(e,function(d){p[++r]=a?Ce(t,d,i):ln(d,t,i)}),p}),ud=Zn(function(e,t,i){je(e,i,t)});function ao(e,t){var i=k(e)?te:$r;return i(e,D(t,3))}function cd(e,t,i,r){return e==null?[]:(k(t)||(t=t==null?[]:[t]),i=r?o:i,k(i)||(i=i==null?[]:[i]),Kr(e,t,i))}var dd=Zn(function(e,t,i){e[i?0:1].push(t)},function(){return[[],[]]});function md(e,t,i){var r=k(e)?Po:hr,a=arguments.length<3;return r(e,D(t,4),i,a,dt)}function fd(e,t,i){var r=k(e)?Ts:hr,a=arguments.length<3;return r(e,D(t,4),i,a,Nr)}function gd(e,t){var i=k(e)?st:kr;return i(e,po(D(t,3)))}function yd(e){var t=k(e)?Dr:su;return t(e)}function hd(e,t,i){(i?ge(e,t,i):t===o)?t=1:t=O(t);var r=k(e)?Hp:pu;return r(e,t)}function bd(e){var t=k(e)?Up:cu;return t(e)}function xd(e){if(e==null)return 0;if(be(e))return co(e)?Pt(e):e.length;var t=me(e);return t==Oe||t==He?e.size:Qo(e).length}function vd(e,t,i){var r=k(e)?Ro:du;return i&&ge(e,t,i)&&(t=o),r(e,D(t,3))}var Sd=U(function(e,t){if(e==null)return[];var i=t.length;return i>1&&ge(e,t[0],t[1])?t=[]:i>2&&ge(t[0],t[1],t[2])&&(t=[t[0]]),Kr(e,ce(t,1),[])}),lo=tp||function(){return ue.Date.now()};function Cd(e,t){if(typeof t!="function")throw new De(h);return e=O(e),function(){if(--e<1)return t.apply(this,arguments)}}function za(e,t,i){return t=i?o:t,t=e&&t==null?e.length:t,et(e,Le,o,o,o,o,t)}function Ya(e,t){var i;if(typeof t!="function")throw new De(h);return e=O(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=o),i}}var Ci=U(function(e,t,i){var r=M;if(i.length){var a=ut(i,zt(Ci));r|=Se}return et(e,r,t,i,a)}),$a=U(function(e,t,i){var r=M|ae;if(i.length){var a=ut(i,zt($a));r|=Se}return et(t,r,e,i,a)});function Ga(e,t,i){t=i?o:t;var r=et(e,Z,o,o,o,o,o,t);return r.placeholder=Ga.placeholder,r}function Wa(e,t,i){t=i?o:t;var r=et(e,qe,o,o,o,o,o,t);return r.placeholder=Wa.placeholder,r}function Va(e,t,i){var r,a,p,d,m,y,C=0,w=!1,I=!1,T=!0;if(typeof e!="function")throw new De(h);t=ke(t)||0,ne(i)&&(w=!!i.leading,I="maxWait"in i,p=I?se(ke(i.maxWait)||0,t):p,T="trailing"in i?!!i.trailing:T);function A(re){var $e=r,rt=a;return r=a=o,C=re,d=e.apply(rt,$e),d}function P(re){return C=re,m=dn(Y,t),w?A(re):d}function H(re){var $e=re-y,rt=re-C,cl=t-$e;return I?de(cl,p-rt):cl}function R(re){var $e=re-y,rt=re-C;return y===o||$e>=t||$e<0||I&&rt>=p}function Y(){var re=lo();if(R(re))return G(re);m=dn(Y,H(re))}function G(re){return m=o,T&&r?A(re):(r=a=o,d)}function Te(){m!==o&&na(m),C=0,r=y=a=m=o}function ye(){return m===o?d:G(lo())}function Ee(){var re=lo(),$e=R(re);if(r=arguments,a=this,y=re,$e){if(m===o)return P(y);if(I)return na(m),m=dn(Y,t),A(y)}return m===o&&(m=dn(Y,t)),d}return Ee.cancel=Te,Ee.flush=ye,Ee}var wd=U(function(e,t){return Mr(e,1,t)}),_d=U(function(e,t,i){return Mr(e,ke(t)||0,i)});function Id(e){return et(e,Et)}function so(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new De(h);var i=function(){var r=arguments,a=t?t.apply(this,r):r[0],p=i.cache;if(p.has(a))return p.get(a);var d=e.apply(this,r);return i.cache=p.set(a,d)||p,d};return i.cache=new(so.Cache||Qe),i}so.Cache=Qe;function po(e){if(typeof e!="function")throw new De(h);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 Td(e){return Ya(2,e)}var Ed=mu(function(e,t){t=t.length==1&&k(t[0])?te(t[0],we(D())):te(ce(t,1),we(D()));var i=t.length;return U(function(r){for(var a=-1,p=de(r.length,i);++a<p;)r[a]=t[a].call(this,r[a]);return Ce(e,this,r)})}),wi=U(function(e,t){var i=ut(t,zt(wi));return et(e,Se,o,t,i)}),Ka=U(function(e,t){var i=ut(t,zt(Ka));return et(e,Je,o,t,i)}),Fd=tt(function(e,t){return et(e,at,o,o,o,t)});function Ld(e,t){if(typeof e!="function")throw new De(h);return t=t===o?t:O(t),U(e,t)}function Ad(e,t){if(typeof e!="function")throw new De(h);return t=t==null?0:se(O(t),0),U(function(i){var r=i[t],a=gt(i,0,t);return r&&pt(a,r),Ce(e,this,a)})}function Bd(e,t,i){var r=!0,a=!0;if(typeof e!="function")throw new De(h);return ne(i)&&(r="leading"in i?!!i.leading:r,a="trailing"in i?!!i.trailing:a),Va(e,t,{leading:r,maxWait:t,trailing:a})}function Dd(e){return za(e,1)}function Pd(e,t){return wi(li(t),e)}function Rd(){if(!arguments.length)return[];var e=arguments[0];return k(e)?e:[e]}function Md(e){return Re(e,j)}function Nd(e,t){return t=typeof t=="function"?t:o,Re(e,j,t)}function kd(e){return Re(e,B|j)}function Od(e,t){return t=typeof t=="function"?t:o,Re(e,B|j,t)}function Hd(e,t){return t==null||Rr(e,t,pe(t))}function Ye(e,t){return e===t||e!==e&&t!==t}var Ud=to(Jo),zd=to(function(e,t){return e>=t}),Tt=Ur(function(){return arguments}())?Ur:function(e){return oe(e)&&q.call(e,"callee")&&!Tr.call(e,"callee")},k=b.isArray,Yd=lr?we(lr):Xp;function be(e){return e!=null&&uo(e.length)&&!ot(e)}function ie(e){return oe(e)&&be(e)}function $d(e){return e===!0||e===!1||oe(e)&&fe(e)==Wt}var yt=op||Ri,Gd=sr?we(sr):Zp;function Wd(e){return oe(e)&&e.nodeType===1&&!mn(e)}function Vd(e){if(e==null)return!0;if(be(e)&&(k(e)||typeof e=="string"||typeof e.splice=="function"||yt(e)||Yt(e)||Tt(e)))return!e.length;var t=me(e);if(t==Oe||t==He)return!e.size;if(cn(e))return!Qo(e).length;for(var i in e)if(q.call(e,i))return!1;return!0}function Kd(e,t){return sn(e,t)}function qd(e,t,i){i=typeof i=="function"?i:o;var r=i?i(e,t):o;return r===o?sn(e,t,o,i):!!r}function _i(e){if(!oe(e))return!1;var t=fe(e);return t==Cn||t==hl||typeof e.message=="string"&&typeof e.name=="string"&&!mn(e)}function Jd(e){return typeof e=="number"&&Fr(e)}function ot(e){if(!ne(e))return!1;var t=fe(e);return t==wn||t==Mi||t==yl||t==xl}function qa(e){return typeof e=="number"&&e==O(e)}function uo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lt}function ne(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function oe(e){return e!=null&&typeof e=="object"}var Ja=pr?we(pr):jp;function Xd(e,t){return e===t||Zo(e,t,fi(t))}function Zd(e,t,i){return i=typeof i=="function"?i:o,Zo(e,t,fi(t),i)}function Qd(e){return Xa(e)&&e!=+e}function jd(e){if(Nu(e))throw new N(c);return zr(e)}function em(e){return e===null}function tm(e){return e==null}function Xa(e){return typeof e=="number"||oe(e)&&fe(e)==Kt}function mn(e){if(!oe(e)||fe(e)!=Xe)return!1;var t=kn(e);if(t===null)return!0;var i=q.call(t,"constructor")&&t.constructor;return typeof i=="function"&&i instanceof i&&Pn.call(i)==Zs}var Ii=ur?we(ur):eu;function nm(e){return qa(e)&&e>=-lt&&e<=lt}var Za=cr?we(cr):tu;function co(e){return typeof e=="string"||!k(e)&&oe(e)&&fe(e)==Jt}function Ie(e){return typeof e=="symbol"||oe(e)&&fe(e)==_n}var Yt=dr?we(dr):nu;function om(e){return e===o}function im(e){return oe(e)&&me(e)==Xt}function rm(e){return oe(e)&&fe(e)==Sl}var am=to(jo),lm=to(function(e,t){return e<=t});function Qa(e){if(!e)return[];if(be(e))return co(e)?Ue(e):he(e);if(jt&&e[jt])return Hs(e[jt]());var t=me(e),i=t==Oe?Uo:t==He?An:$t;return i(e)}function it(e){if(!e)return e===0?e:0;if(e=ke(e),e===ht||e===-ht){var t=e<0?-1:1;return t*dl}return e===e?e:0}function O(e){var t=it(e),i=t%1;return t===t?i?t-i:t:0}function ja(e){return e?Ct(O(e),0,Ge):0}function ke(e){if(typeof e=="number")return e;if(Ie(e))return vn;if(ne(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ne(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=br(e);var i=Yl.test(e);return i||Gl.test(e)?Cs(e.slice(2),i?2:8):zl.test(e)?vn:+e}function el(e){return Ve(e,xe(e))}function sm(e){return e?Ct(O(e),-lt,lt):e===0?e:0}function K(e){return e==null?"":_e(e)}var pm=Ht(function(e,t){if(cn(t)||be(t)){Ve(t,pe(t),e);return}for(var i in t)q.call(t,i)&&rn(e,i,t[i])}),tl=Ht(function(e,t){Ve(t,xe(t),e)}),mo=Ht(function(e,t,i,r){Ve(t,xe(t),e,r)}),um=Ht(function(e,t,i,r){Ve(t,pe(t),e,r)}),cm=tt(Vo);function dm(e,t){var i=Ot(e);return t==null?i:Pr(i,t)}var mm=U(function(e,t){e=J(e);var i=-1,r=t.length,a=r>2?t[2]:o;for(a&&ge(t[0],t[1],a)&&(r=1);++i<r;)for(var p=t[i],d=xe(p),m=-1,y=d.length;++m<y;){var C=d[m],w=e[C];(w===o||Ye(w,Mt[C])&&!q.call(e,C))&&(e[C]=p[C])}return e}),fm=U(function(e){return e.push(o,ba),Ce(nl,o,e)});function gm(e,t){return fr(e,D(t,3),We)}function ym(e,t){return fr(e,D(t,3),qo)}function hm(e,t){return e==null?e:Ko(e,D(t,3),xe)}function bm(e,t){return e==null?e:Or(e,D(t,3),xe)}function xm(e,t){return e&&We(e,D(t,3))}function vm(e,t){return e&&qo(e,D(t,3))}function Sm(e){return e==null?[]:Kn(e,pe(e))}function Cm(e){return e==null?[]:Kn(e,xe(e))}function Ti(e,t,i){var r=e==null?o:wt(e,t);return r===o?i:r}function wm(e,t){return e!=null&&Sa(e,t,Vp)}function Ei(e,t){return e!=null&&Sa(e,t,Kp)}var _m=ma(function(e,t,i){t!=null&&typeof t.toString!="function"&&(t=Rn.call(t)),e[t]=i},Li(ve)),Im=ma(function(e,t,i){t!=null&&typeof t.toString!="function"&&(t=Rn.call(t)),q.call(e,t)?e[t].push(i):e[t]=[i]},D),Tm=U(ln);function pe(e){return be(e)?Br(e):Qo(e)}function xe(e){return be(e)?Br(e,!0):ou(e)}function Em(e,t){var i={};return t=D(t,3),We(e,function(r,a,p){je(i,t(r,a,p),r)}),i}function Fm(e,t){var i={};return t=D(t,3),We(e,function(r,a,p){je(i,a,t(r,a,p))}),i}var Lm=Ht(function(e,t,i){qn(e,t,i)}),nl=Ht(function(e,t,i,r){qn(e,t,i,r)}),Am=tt(function(e,t){var i={};if(e==null)return i;var r=!1;t=te(t,function(p){return p=ft(p,e),r||(r=p.length>1),p}),Ve(e,di(e),i),r&&(i=Re(i,B|z|j,_u));for(var a=t.length;a--;)ii(i,t[a]);return i});function Bm(e,t){return ol(e,po(D(t)))}var Dm=tt(function(e,t){return e==null?{}:ru(e,t)});function ol(e,t){if(e==null)return{};var i=te(di(e),function(r){return[r]});return t=D(t),qr(e,i,function(r,a){return t(r,a[0])})}function Pm(e,t,i){t=ft(t,e);var r=-1,a=t.length;for(a||(a=1,e=o);++r<a;){var p=e==null?o:e[Ke(t[r])];p===o&&(r=a,p=i),e=ot(p)?p.call(e):p}return e}function Rm(e,t,i){return e==null?e:pn(e,t,i)}function Mm(e,t,i,r){return r=typeof r=="function"?r:o,e==null?e:pn(e,t,i,r)}var il=ya(pe),rl=ya(xe);function Nm(e,t,i){var r=k(e),a=r||yt(e)||Yt(e);if(t=D(t,4),i==null){var p=e&&e.constructor;a?i=r?new p:[]:ne(e)?i=ot(p)?Ot(kn(e)):{}:i={}}return(a?Be:We)(e,function(d,m,y){return t(i,d,m,y)}),i}function km(e,t){return e==null?!0:ii(e,t)}function Om(e,t,i){return e==null?e:jr(e,t,li(i))}function Hm(e,t,i,r){return r=typeof r=="function"?r:o,e==null?e:jr(e,t,li(i),r)}function $t(e){return e==null?[]:Ho(e,pe(e))}function Um(e){return e==null?[]:Ho(e,xe(e))}function zm(e,t,i){return i===o&&(i=t,t=o),i!==o&&(i=ke(i),i=i===i?i:0),t!==o&&(t=ke(t),t=t===t?t:0),Ct(ke(e),t,i)}function Ym(e,t,i){return t=it(t),i===o?(i=t,t=0):i=it(i),e=ke(e),qp(e,t,i)}function $m(e,t,i){if(i&&typeof i!="boolean"&&ge(e,t,i)&&(t=i=o),i===o&&(typeof t=="boolean"?(i=t,t=o):typeof e=="boolean"&&(i=e,e=o)),e===o&&t===o?(e=0,t=1):(e=it(e),t===o?(t=e,e=0):t=it(t)),e>t){var r=e;e=t,t=r}if(i||e%1||t%1){var a=Lr();return de(e+a*(t-e+Ss("1e-"+((a+"").length-1))),t)}return ti(e,t)}var Gm=Ut(function(e,t,i){return t=t.toLowerCase(),e+(i?al(t):t)});function al(e){return Fi(K(e).toLowerCase())}function ll(e){return e=K(e),e&&e.replace(Vl,Rs).replace(cs,"")}function Wm(e,t,i){e=K(e),t=_e(t);var r=e.length;i=i===o?r:Ct(O(i),0,r);var a=i;return i-=t.length,i>=0&&e.slice(i,a)==t}function Vm(e){return e=K(e),e&&Tl.test(e)?e.replace(Oi,Ms):e}function Km(e){return e=K(e),e&&Dl.test(e)?e.replace(wo,"\\$&"):e}var qm=Ut(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()}),Jm=Ut(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()}),Xm=ua("toLowerCase");function Zm(e,t,i){e=K(e),t=O(t);var r=t?Pt(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return eo(zn(a),i)+e+eo(Un(a),i)}function Qm(e,t,i){e=K(e),t=O(t);var r=t?Pt(e):0;return t&&r<t?e+eo(t-r,i):e}function jm(e,t,i){e=K(e),t=O(t);var r=t?Pt(e):0;return t&&r<t?eo(t-r,i)+e:e}function ef(e,t,i){return i||t==null?t=0:t&&(t=+t),lp(K(e).replace(_o,""),t||0)}function tf(e,t,i){return(i?ge(e,t,i):t===o)?t=1:t=O(t),ni(K(e),t)}function nf(){var e=arguments,t=K(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var of=Ut(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()});function rf(e,t,i){return i&&typeof i!="number"&&ge(e,t,i)&&(t=i=o),i=i===o?Ge:i>>>0,i?(e=K(e),e&&(typeof t=="string"||t!=null&&!Ii(t))&&(t=_e(t),!t&&Dt(e))?gt(Ue(e),0,i):e.split(t,i)):[]}var af=Ut(function(e,t,i){return e+(i?" ":"")+Fi(t)});function lf(e,t,i){return e=K(e),i=i==null?0:Ct(O(i),0,e.length),t=_e(t),e.slice(i,i+t.length)==t}function sf(e,t,i){var r=s.templateSettings;i&&ge(e,t,i)&&(t=o),e=K(e),t=mo({},t,r,ha);var a=mo({},t.imports,r.imports,ha),p=pe(a),d=Ho(a,p),m,y,C=0,w=t.interpolate||In,I="__p += '",T=zo((t.escape||In).source+"|"+w.source+"|"+(w===Hi?Ul:In).source+"|"+(t.evaluate||In).source+"|$","g"),A="//# sourceURL="+(q.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ys+"]")+`
|
|
11
|
-
`;e.replace(T,function(R,Y,G,Te,ye,Ee){return G||(G=Te),I+=e.slice(C,Ee).replace(
|
|
10
|
+
`)}function Pu(e){return N(e)||Tt(e)||!!(Er&&e&&e[Er])}function nt(e,t){var i=typeof e;return t=t==null?lt:t,!!t&&(i=="number"||i!="symbol"&&Wl.test(e))&&e>-1&&e%1==0&&e<t}function ge(e,t,i){if(!ne(i))return!1;var r=typeof t;return(r=="number"?be(i)&&nt(t,i.length):r=="string"&&t in i)?Ye(i[t],e):!1}function yi(e,t){if(N(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||Ie(e)?!0:Al.test(e)||!Ll.test(e)||t!=null&&e in J(t)}function Ru(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function hi(e){var t=no(e),i=s[t];if(typeof i!="function"||!(t in $.prototype))return!1;if(e===i)return!0;var r=mi(i);return!!r&&e===r[0]}function Mu(e){return!!wr&&wr in e}var ku=Dn?ot:Ri;function cn(e){var t=e&&e.constructor,i=typeof t=="function"&&t.prototype||Mt;return e===i}function wa(e){return e===e&&!ne(e)}function _a(e,t){return function(i){return i==null?!1:i[e]===t&&(t!==o||e in J(i))}}function Nu(e){var t=so(e,function(r){return i.size===E&&i.clear(),r}),i=t.cache;return t}function Ou(e,t){var i=e[1],r=t[1],a=i|r,p=a<(M|ae|Le),d=r==Le&&i==Z||r==Le&&i==at&&e[7].length<=t[8]||r==(Le|at)&&t[7].length<=t[8]&&i==Z;if(!(p||d))return e;r&M&&(e[2]=t[2],a|=i&M?0:Fe);var m=t[3];if(m){var y=e[3];e[3]=y?aa(y,m,t[4]):m,e[4]=y?ut(e[3],F):t[4]}return m=t[5],m&&(y=e[5],e[5]=y?la(y,m,t[6]):m,e[6]=y?ut(e[5],F):t[6]),m=t[7],m&&(e[7]=m),r&Le&&(e[8]=e[8]==null?t[8]:de(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Hu(e){var t=[];if(e!=null)for(var i in J(e))t.push(i);return t}function zu(e){return Rn.call(e)}function Ia(e,t,i){return t=se(t===o?e.length-1:t,0),function(){for(var r=arguments,a=-1,p=se(r.length-t,0),d=b(p);++a<p;)d[a]=r[t+a];a=-1;for(var m=b(t+1);++a<t;)m[a]=r[a];return m[t]=i(d),Ce(e,this,m)}}function Ta(e,t){return t.length<2?e:wt(e,Me(t,0,-1))}function Uu(e,t){for(var i=e.length,r=de(t.length,i),a=he(e);r--;){var p=t[r];e[r]=nt(p,i)?a[p]:o}return e}function bi(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ea=La(Xr),dn=np||function(e,t){return ue.setTimeout(e,t)},xi=La(uu);function Fa(e,t,i){var r=t+"";return xi(e,Du(r,Yu(Lu(r),i)))}function La(e){var t=0,i=0;return function(){var r=ap(),a=hn-(r-i);if(i=r,a>0){if(++t>=yn)return arguments[0]}else t=0;return e.apply(o,arguments)}}function io(e,t){var i=-1,r=e.length,a=r-1;for(t=t===o?r:t;++i<t;){var p=ti(i,a),d=e[p];e[p]=e[i],e[i]=d}return e.length=t,e}var Aa=Nu(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bl,function(i,r,a,p){t.push(a?p.replace(Hl,"$1"):r||i)}),t});function Ve(e){if(typeof e=="string"||Ie(e))return e;var t=e+"";return t=="0"&&1/e==-ht?"-0":t}function It(e){if(e!=null){try{return Pn.call(e)}catch{}try{return e+""}catch{}}return""}function Yu(e,t){return Be(gl,function(i){var r="_."+i[0];t&i[1]&&!Fn(e,r)&&e.push(r)}),e.sort()}function Ba(e){if(e instanceof $)return e.clone();var t=new Pe(e.__wrapped__,e.__chain__);return t.__actions__=he(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function $u(e,t,i){(i?ge(e,t,i):t===o)?t=1:t=se(O(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var a=0,p=0,d=b(zn(r/t));a<r;)d[p++]=Me(e,a,a+=t);return d}function Gu(e){for(var t=-1,i=e==null?0:e.length,r=0,a=[];++t<i;){var p=e[t];p&&(a[r++]=p)}return a}function Wu(){var e=arguments.length;if(!e)return[];for(var t=b(e-1),i=arguments[0],r=e;r--;)t[r-1]=arguments[r];return pt(N(i)?he(i):[i],ce(t,1))}var Ku=z(function(e,t){return ie(e)?an(e,ce(t,1,ie,!0)):[]}),Vu=z(function(e,t){var i=ke(t);return ie(i)&&(i=o),ie(e)?an(e,ce(t,1,ie,!0),D(i,2)):[]}),qu=z(function(e,t){var i=ke(t);return ie(i)&&(i=o),ie(e)?an(e,ce(t,1,ie,!0),o,i):[]});function Ju(e,t,i){var r=e==null?0:e.length;return r?(t=i||t===o?1:O(t),Me(e,t<0?0:t,r)):[]}function Xu(e,t,i){var r=e==null?0:e.length;return r?(t=i||t===o?1:O(t),t=r-t,Me(e,0,t<0?0:t)):[]}function Zu(e,t){return e&&e.length?Xn(e,D(t,3),!0,!0):[]}function Qu(e,t){return e&&e.length?Xn(e,D(t,3),!0):[]}function ju(e,t,i,r){var a=e==null?0:e.length;return a?(i&&typeof i!="number"&&ge(e,t,i)&&(i=0,r=a),Wp(e,t,i,r)):[]}function Da(e,t,i){var r=e==null?0:e.length;if(!r)return-1;var a=i==null?0:O(i);return a<0&&(a=se(r+a,0)),Ln(e,D(t,3),a)}function Pa(e,t,i){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return i!==o&&(a=O(i),a=i<0?se(r+a,0):de(a,r-1)),Ln(e,D(t,3),a,!0)}function Ra(e){var t=e==null?0:e.length;return t?ce(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?ce(e,ht):[]}function tc(e,t){var i=e==null?0:e.length;return i?(t=t===o?1:O(t),ce(e,t)):[]}function nc(e){for(var t=-1,i=e==null?0:e.length,r={};++t<i;){var a=e[t];r[a[0]]=a[1]}return r}function Ma(e){return e&&e.length?e[0]:o}function oc(e,t,i){var r=e==null?0:e.length;if(!r)return-1;var a=i==null?0:O(i);return a<0&&(a=se(r+a,0)),Bt(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Me(e,0,-1):[]}var rc=z(function(e){var t=te(e,ai);return t.length&&t[0]===e[0]?Xo(t):[]}),ac=z(function(e){var t=ke(e),i=te(e,ai);return t===ke(i)?t=o:i.pop(),i.length&&i[0]===e[0]?Xo(i,D(t,2)):[]}),lc=z(function(e){var t=ke(e),i=te(e,ai);return t=typeof t=="function"?t:o,t&&i.pop(),i.length&&i[0]===e[0]?Xo(i,o,t):[]});function sc(e,t){return e==null?"":ip.call(e,t)}function ke(e){var t=e==null?0:e.length;return t?e[t-1]:o}function pc(e,t,i){var r=e==null?0:e.length;if(!r)return-1;var a=r;return i!==o&&(a=O(i),a=a<0?se(r+a,0):de(a,r-1)),t===t?Ys(e,t,a):Ln(e,gr,a,!0)}function uc(e,t){return e&&e.length?Kr(e,O(t)):o}var cc=z(ka);function ka(e,t){return e&&e.length&&t&&t.length?ei(e,t):e}function dc(e,t,i){return e&&e.length&&t&&t.length?ei(e,t,D(i,2)):e}function mc(e,t,i){return e&&e.length&&t&&t.length?ei(e,t,o,i):e}var fc=tt(function(e,t){var i=e==null?0:e.length,r=Ko(e,t);return Jr(e,te(t,function(a){return nt(a,i)?+a:a}).sort(ra)),r});function gc(e,t){var i=[];if(!(e&&e.length))return i;var r=-1,a=[],p=e.length;for(t=D(t,3);++r<p;){var d=e[r];t(d,r,e)&&(i.push(d),a.push(r))}return Jr(e,a),i}function vi(e){return e==null?e:sp.call(e)}function yc(e,t,i){var r=e==null?0:e.length;return r?(i&&typeof i!="number"&&ge(e,t,i)?(t=0,i=r):(t=t==null?0:O(t),i=i===o?r:O(i)),Me(e,t,i)):[]}function hc(e,t){return Jn(e,t)}function bc(e,t,i){return oi(e,t,D(i,2))}function xc(e,t){var i=e==null?0:e.length;if(i){var r=Jn(e,t);if(r<i&&Ye(e[r],t))return r}return-1}function vc(e,t){return Jn(e,t,!0)}function Sc(e,t,i){return oi(e,t,D(i,2),!0)}function Cc(e,t){var i=e==null?0:e.length;if(i){var r=Jn(e,t,!0)-1;if(Ye(e[r],t))return r}return-1}function wc(e){return e&&e.length?Zr(e):[]}function _c(e,t){return e&&e.length?Zr(e,D(t,2)):[]}function Ic(e){var t=e==null?0:e.length;return t?Me(e,1,t):[]}function Tc(e,t,i){return e&&e.length?(t=i||t===o?1:O(t),Me(e,0,t<0?0:t)):[]}function Ec(e,t,i){var r=e==null?0:e.length;return r?(t=i||t===o?1:O(t),t=r-t,Me(e,t<0?0:t,r)):[]}function Fc(e,t){return e&&e.length?Xn(e,D(t,3),!1,!0):[]}function Lc(e,t){return e&&e.length?Xn(e,D(t,3)):[]}var Ac=z(function(e){return mt(ce(e,1,ie,!0))}),Bc=z(function(e){var t=ke(e);return ie(t)&&(t=o),mt(ce(e,1,ie,!0),D(t,2))}),Dc=z(function(e){var t=ke(e);return t=typeof t=="function"?t:o,mt(ce(e,1,ie,!0),o,t)});function Pc(e){return e&&e.length?mt(e):[]}function Rc(e,t){return e&&e.length?mt(e,D(t,2)):[]}function Mc(e,t){return t=typeof t=="function"?t:o,e&&e.length?mt(e,o,t):[]}function Si(e){if(!(e&&e.length))return[];var t=0;return e=st(e,function(i){if(ie(i))return t=se(i.length,t),!0}),Oo(t,function(i){return te(e,Mo(i))})}function Na(e,t){if(!(e&&e.length))return[];var i=Si(e);return t==null?i:te(i,function(r){return Ce(t,o,r)})}var kc=z(function(e,t){return ie(e)?an(e,t):[]}),Nc=z(function(e){return ri(st(e,ie))}),Oc=z(function(e){var t=ke(e);return ie(t)&&(t=o),ri(st(e,ie),D(t,2))}),Hc=z(function(e){var t=ke(e);return t=typeof t=="function"?t:o,ri(st(e,ie),o,t)}),zc=z(Si);function Uc(e,t){return ta(e||[],t||[],rn)}function Yc(e,t){return ta(e||[],t||[],pn)}var $c=z(function(e){var t=e.length,i=t>1?e[t-1]:o;return i=typeof i=="function"?(e.pop(),i):o,Na(e,i)});function Oa(e){var t=s(e);return t.__chain__=!0,t}function Gc(e,t){return t(e),e}function ro(e,t){return t(e)}var Wc=tt(function(e){var t=e.length,i=t?e[0]:0,r=this.__wrapped__,a=function(p){return Ko(p,e)};return t>1||this.__actions__.length||!(r instanceof $)||!nt(i)?this.thru(a):(r=r.slice(i,+i+(t?1:0)),r.__actions__.push({func:ro,args:[a],thisArg:o}),new Pe(r,this.__chain__).thru(function(p){return t&&!p.length&&p.push(o),p}))});function Kc(){return Oa(this)}function Vc(){return new Pe(this.value(),this.__chain__)}function qc(){this.__values__===o&&(this.__values__=Qa(this.value()));var e=this.__index__>=this.__values__.length,t=e?o:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Xc(e){for(var t,i=this;i instanceof Gn;){var r=Ba(i);r.__index__=0,r.__values__=o,t?a.__wrapped__=r:t=r;var a=r;i=i.__wrapped__}return a.__wrapped__=e,t}function Zc(){var e=this.__wrapped__;if(e instanceof $){var t=e;return this.__actions__.length&&(t=new $(this)),t=t.reverse(),t.__actions__.push({func:ro,args:[vi],thisArg:o}),new Pe(t,this.__chain__)}return this.thru(vi)}function Qc(){return ea(this.__wrapped__,this.__actions__)}var jc=Zn(function(e,t,i){q.call(e,i)?++e[i]:je(e,i,1)});function ed(e,t,i){var r=N(e)?mr:Gp;return i&&ge(e,t,i)&&(t=o),r(e,D(t,3))}function td(e,t){var i=N(e)?st:Nr;return i(e,D(t,3))}var nd=ca(Da),od=ca(Pa);function id(e,t){return ce(ao(e,t),1)}function rd(e,t){return ce(ao(e,t),ht)}function ad(e,t,i){return i=i===o?1:O(i),ce(ao(e,t),i)}function Ha(e,t){var i=N(e)?Be:dt;return i(e,D(t,3))}function za(e,t){var i=N(e)?Is:kr;return i(e,D(t,3))}var ld=Zn(function(e,t,i){q.call(e,i)?e[i].push(t):je(e,i,[t])});function sd(e,t,i,r){e=be(e)?e:$t(e),i=i&&!r?O(i):0;var a=e.length;return i<0&&(i=se(a+i,0)),co(e)?i<=a&&e.indexOf(t,i)>-1:!!a&&Bt(e,t,i)>-1}var pd=z(function(e,t,i){var r=-1,a=typeof t=="function",p=be(e)?b(e.length):[];return dt(e,function(d){p[++r]=a?Ce(t,d,i):ln(d,t,i)}),p}),ud=Zn(function(e,t,i){je(e,i,t)});function ao(e,t){var i=N(e)?te:$r;return i(e,D(t,3))}function cd(e,t,i,r){return e==null?[]:(N(t)||(t=t==null?[]:[t]),i=r?o:i,N(i)||(i=i==null?[]:[i]),Vr(e,t,i))}var dd=Zn(function(e,t,i){e[i?0:1].push(t)},function(){return[[],[]]});function md(e,t,i){var r=N(e)?Po:hr,a=arguments.length<3;return r(e,D(t,4),i,a,dt)}function fd(e,t,i){var r=N(e)?Ts:hr,a=arguments.length<3;return r(e,D(t,4),i,a,kr)}function gd(e,t){var i=N(e)?st:Nr;return i(e,po(D(t,3)))}function yd(e){var t=N(e)?Dr:su;return t(e)}function hd(e,t,i){(i?ge(e,t,i):t===o)?t=1:t=O(t);var r=N(e)?Hp:pu;return r(e,t)}function bd(e){var t=N(e)?zp:cu;return t(e)}function xd(e){if(e==null)return 0;if(be(e))return co(e)?Pt(e):e.length;var t=me(e);return t==Oe||t==He?e.size:Qo(e).length}function vd(e,t,i){var r=N(e)?Ro:du;return i&&ge(e,t,i)&&(t=o),r(e,D(t,3))}var Sd=z(function(e,t){if(e==null)return[];var i=t.length;return i>1&&ge(e,t[0],t[1])?t=[]:i>2&&ge(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,ce(t,1),[])}),lo=tp||function(){return ue.Date.now()};function Cd(e,t){if(typeof t!="function")throw new De(h);return e=O(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ua(e,t,i){return t=i?o:t,t=e&&t==null?e.length:t,et(e,Le,o,o,o,o,t)}function Ya(e,t){var i;if(typeof t!="function")throw new De(h);return e=O(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=o),i}}var Ci=z(function(e,t,i){var r=M;if(i.length){var a=ut(i,Ut(Ci));r|=Se}return et(e,r,t,i,a)}),$a=z(function(e,t,i){var r=M|ae;if(i.length){var a=ut(i,Ut($a));r|=Se}return et(t,r,e,i,a)});function Ga(e,t,i){t=i?o:t;var r=et(e,Z,o,o,o,o,o,t);return r.placeholder=Ga.placeholder,r}function Wa(e,t,i){t=i?o:t;var r=et(e,qe,o,o,o,o,o,t);return r.placeholder=Wa.placeholder,r}function Ka(e,t,i){var r,a,p,d,m,y,C=0,w=!1,I=!1,T=!0;if(typeof e!="function")throw new De(h);t=Ne(t)||0,ne(i)&&(w=!!i.leading,I="maxWait"in i,p=I?se(Ne(i.maxWait)||0,t):p,T="trailing"in i?!!i.trailing:T);function A(re){var $e=r,rt=a;return r=a=o,C=re,d=e.apply(rt,$e),d}function P(re){return C=re,m=dn(Y,t),w?A(re):d}function H(re){var $e=re-y,rt=re-C,cl=t-$e;return I?de(cl,p-rt):cl}function R(re){var $e=re-y,rt=re-C;return y===o||$e>=t||$e<0||I&&rt>=p}function Y(){var re=lo();if(R(re))return G(re);m=dn(Y,H(re))}function G(re){return m=o,T&&r?A(re):(r=a=o,d)}function Te(){m!==o&&na(m),C=0,r=y=a=m=o}function ye(){return m===o?d:G(lo())}function Ee(){var re=lo(),$e=R(re);if(r=arguments,a=this,y=re,$e){if(m===o)return P(y);if(I)return na(m),m=dn(Y,t),A(y)}return m===o&&(m=dn(Y,t)),d}return Ee.cancel=Te,Ee.flush=ye,Ee}var wd=z(function(e,t){return Mr(e,1,t)}),_d=z(function(e,t,i){return Mr(e,Ne(t)||0,i)});function Id(e){return et(e,Et)}function so(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new De(h);var i=function(){var r=arguments,a=t?t.apply(this,r):r[0],p=i.cache;if(p.has(a))return p.get(a);var d=e.apply(this,r);return i.cache=p.set(a,d)||p,d};return i.cache=new(so.Cache||Qe),i}so.Cache=Qe;function po(e){if(typeof e!="function")throw new De(h);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 Td(e){return Ya(2,e)}var Ed=mu(function(e,t){t=t.length==1&&N(t[0])?te(t[0],we(D())):te(ce(t,1),we(D()));var i=t.length;return z(function(r){for(var a=-1,p=de(r.length,i);++a<p;)r[a]=t[a].call(this,r[a]);return Ce(e,this,r)})}),wi=z(function(e,t){var i=ut(t,Ut(wi));return et(e,Se,o,t,i)}),Va=z(function(e,t){var i=ut(t,Ut(Va));return et(e,Je,o,t,i)}),Fd=tt(function(e,t){return et(e,at,o,o,o,t)});function Ld(e,t){if(typeof e!="function")throw new De(h);return t=t===o?t:O(t),z(e,t)}function Ad(e,t){if(typeof e!="function")throw new De(h);return t=t==null?0:se(O(t),0),z(function(i){var r=i[t],a=gt(i,0,t);return r&&pt(a,r),Ce(e,this,a)})}function Bd(e,t,i){var r=!0,a=!0;if(typeof e!="function")throw new De(h);return ne(i)&&(r="leading"in i?!!i.leading:r,a="trailing"in i?!!i.trailing:a),Ka(e,t,{leading:r,maxWait:t,trailing:a})}function Dd(e){return Ua(e,1)}function Pd(e,t){return wi(li(t),e)}function Rd(){if(!arguments.length)return[];var e=arguments[0];return N(e)?e:[e]}function Md(e){return Re(e,j)}function kd(e,t){return t=typeof t=="function"?t:o,Re(e,j,t)}function Nd(e){return Re(e,B|j)}function Od(e,t){return t=typeof t=="function"?t:o,Re(e,B|j,t)}function Hd(e,t){return t==null||Rr(e,t,pe(t))}function Ye(e,t){return e===t||e!==e&&t!==t}var zd=to(Jo),Ud=to(function(e,t){return e>=t}),Tt=zr(function(){return arguments}())?zr:function(e){return oe(e)&&q.call(e,"callee")&&!Tr.call(e,"callee")},N=b.isArray,Yd=lr?we(lr):Xp;function be(e){return e!=null&&uo(e.length)&&!ot(e)}function ie(e){return oe(e)&&be(e)}function $d(e){return e===!0||e===!1||oe(e)&&fe(e)==Wt}var yt=op||Ri,Gd=sr?we(sr):Zp;function Wd(e){return oe(e)&&e.nodeType===1&&!mn(e)}function Kd(e){if(e==null)return!0;if(be(e)&&(N(e)||typeof e=="string"||typeof e.splice=="function"||yt(e)||Yt(e)||Tt(e)))return!e.length;var t=me(e);if(t==Oe||t==He)return!e.size;if(cn(e))return!Qo(e).length;for(var i in e)if(q.call(e,i))return!1;return!0}function Vd(e,t){return sn(e,t)}function qd(e,t,i){i=typeof i=="function"?i:o;var r=i?i(e,t):o;return r===o?sn(e,t,o,i):!!r}function _i(e){if(!oe(e))return!1;var t=fe(e);return t==Cn||t==hl||typeof e.message=="string"&&typeof e.name=="string"&&!mn(e)}function Jd(e){return typeof e=="number"&&Fr(e)}function ot(e){if(!ne(e))return!1;var t=fe(e);return t==wn||t==Mi||t==yl||t==xl}function qa(e){return typeof e=="number"&&e==O(e)}function uo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lt}function ne(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function oe(e){return e!=null&&typeof e=="object"}var Ja=pr?we(pr):jp;function Xd(e,t){return e===t||Zo(e,t,fi(t))}function Zd(e,t,i){return i=typeof i=="function"?i:o,Zo(e,t,fi(t),i)}function Qd(e){return Xa(e)&&e!=+e}function jd(e){if(ku(e))throw new k(c);return Ur(e)}function em(e){return e===null}function tm(e){return e==null}function Xa(e){return typeof e=="number"||oe(e)&&fe(e)==Vt}function mn(e){if(!oe(e)||fe(e)!=Xe)return!1;var t=Nn(e);if(t===null)return!0;var i=q.call(t,"constructor")&&t.constructor;return typeof i=="function"&&i instanceof i&&Pn.call(i)==Zs}var Ii=ur?we(ur):eu;function nm(e){return qa(e)&&e>=-lt&&e<=lt}var Za=cr?we(cr):tu;function co(e){return typeof e=="string"||!N(e)&&oe(e)&&fe(e)==Jt}function Ie(e){return typeof e=="symbol"||oe(e)&&fe(e)==_n}var Yt=dr?we(dr):nu;function om(e){return e===o}function im(e){return oe(e)&&me(e)==Xt}function rm(e){return oe(e)&&fe(e)==Sl}var am=to(jo),lm=to(function(e,t){return e<=t});function Qa(e){if(!e)return[];if(be(e))return co(e)?ze(e):he(e);if(jt&&e[jt])return Hs(e[jt]());var t=me(e),i=t==Oe?zo:t==He?An:$t;return i(e)}function it(e){if(!e)return e===0?e:0;if(e=Ne(e),e===ht||e===-ht){var t=e<0?-1:1;return t*dl}return e===e?e:0}function O(e){var t=it(e),i=t%1;return t===t?i?t-i:t:0}function ja(e){return e?Ct(O(e),0,Ge):0}function Ne(e){if(typeof e=="number")return e;if(Ie(e))return vn;if(ne(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ne(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=br(e);var i=Yl.test(e);return i||Gl.test(e)?Cs(e.slice(2),i?2:8):Ul.test(e)?vn:+e}function el(e){return Ke(e,xe(e))}function sm(e){return e?Ct(O(e),-lt,lt):e===0?e:0}function V(e){return e==null?"":_e(e)}var pm=Ht(function(e,t){if(cn(t)||be(t)){Ke(t,pe(t),e);return}for(var i in t)q.call(t,i)&&rn(e,i,t[i])}),tl=Ht(function(e,t){Ke(t,xe(t),e)}),mo=Ht(function(e,t,i,r){Ke(t,xe(t),e,r)}),um=Ht(function(e,t,i,r){Ke(t,pe(t),e,r)}),cm=tt(Ko);function dm(e,t){var i=Ot(e);return t==null?i:Pr(i,t)}var mm=z(function(e,t){e=J(e);var i=-1,r=t.length,a=r>2?t[2]:o;for(a&&ge(t[0],t[1],a)&&(r=1);++i<r;)for(var p=t[i],d=xe(p),m=-1,y=d.length;++m<y;){var C=d[m],w=e[C];(w===o||Ye(w,Mt[C])&&!q.call(e,C))&&(e[C]=p[C])}return e}),fm=z(function(e){return e.push(o,ba),Ce(nl,o,e)});function gm(e,t){return fr(e,D(t,3),We)}function ym(e,t){return fr(e,D(t,3),qo)}function hm(e,t){return e==null?e:Vo(e,D(t,3),xe)}function bm(e,t){return e==null?e:Or(e,D(t,3),xe)}function xm(e,t){return e&&We(e,D(t,3))}function vm(e,t){return e&&qo(e,D(t,3))}function Sm(e){return e==null?[]:Vn(e,pe(e))}function Cm(e){return e==null?[]:Vn(e,xe(e))}function Ti(e,t,i){var r=e==null?o:wt(e,t);return r===o?i:r}function wm(e,t){return e!=null&&Sa(e,t,Kp)}function Ei(e,t){return e!=null&&Sa(e,t,Vp)}var _m=ma(function(e,t,i){t!=null&&typeof t.toString!="function"&&(t=Rn.call(t)),e[t]=i},Li(ve)),Im=ma(function(e,t,i){t!=null&&typeof t.toString!="function"&&(t=Rn.call(t)),q.call(e,t)?e[t].push(i):e[t]=[i]},D),Tm=z(ln);function pe(e){return be(e)?Br(e):Qo(e)}function xe(e){return be(e)?Br(e,!0):ou(e)}function Em(e,t){var i={};return t=D(t,3),We(e,function(r,a,p){je(i,t(r,a,p),r)}),i}function Fm(e,t){var i={};return t=D(t,3),We(e,function(r,a,p){je(i,a,t(r,a,p))}),i}var Lm=Ht(function(e,t,i){qn(e,t,i)}),nl=Ht(function(e,t,i,r){qn(e,t,i,r)}),Am=tt(function(e,t){var i={};if(e==null)return i;var r=!1;t=te(t,function(p){return p=ft(p,e),r||(r=p.length>1),p}),Ke(e,di(e),i),r&&(i=Re(i,B|U|j,_u));for(var a=t.length;a--;)ii(i,t[a]);return i});function Bm(e,t){return ol(e,po(D(t)))}var Dm=tt(function(e,t){return e==null?{}:ru(e,t)});function ol(e,t){if(e==null)return{};var i=te(di(e),function(r){return[r]});return t=D(t),qr(e,i,function(r,a){return t(r,a[0])})}function Pm(e,t,i){t=ft(t,e);var r=-1,a=t.length;for(a||(a=1,e=o);++r<a;){var p=e==null?o:e[Ve(t[r])];p===o&&(r=a,p=i),e=ot(p)?p.call(e):p}return e}function Rm(e,t,i){return e==null?e:pn(e,t,i)}function Mm(e,t,i,r){return r=typeof r=="function"?r:o,e==null?e:pn(e,t,i,r)}var il=ya(pe),rl=ya(xe);function km(e,t,i){var r=N(e),a=r||yt(e)||Yt(e);if(t=D(t,4),i==null){var p=e&&e.constructor;a?i=r?new p:[]:ne(e)?i=ot(p)?Ot(Nn(e)):{}:i={}}return(a?Be:We)(e,function(d,m,y){return t(i,d,m,y)}),i}function Nm(e,t){return e==null?!0:ii(e,t)}function Om(e,t,i){return e==null?e:jr(e,t,li(i))}function Hm(e,t,i,r){return r=typeof r=="function"?r:o,e==null?e:jr(e,t,li(i),r)}function $t(e){return e==null?[]:Ho(e,pe(e))}function zm(e){return e==null?[]:Ho(e,xe(e))}function Um(e,t,i){return i===o&&(i=t,t=o),i!==o&&(i=Ne(i),i=i===i?i:0),t!==o&&(t=Ne(t),t=t===t?t:0),Ct(Ne(e),t,i)}function Ym(e,t,i){return t=it(t),i===o?(i=t,t=0):i=it(i),e=Ne(e),qp(e,t,i)}function $m(e,t,i){if(i&&typeof i!="boolean"&&ge(e,t,i)&&(t=i=o),i===o&&(typeof t=="boolean"?(i=t,t=o):typeof e=="boolean"&&(i=e,e=o)),e===o&&t===o?(e=0,t=1):(e=it(e),t===o?(t=e,e=0):t=it(t)),e>t){var r=e;e=t,t=r}if(i||e%1||t%1){var a=Lr();return de(e+a*(t-e+Ss("1e-"+((a+"").length-1))),t)}return ti(e,t)}var Gm=zt(function(e,t,i){return t=t.toLowerCase(),e+(i?al(t):t)});function al(e){return Fi(V(e).toLowerCase())}function ll(e){return e=V(e),e&&e.replace(Kl,Rs).replace(cs,"")}function Wm(e,t,i){e=V(e),t=_e(t);var r=e.length;i=i===o?r:Ct(O(i),0,r);var a=i;return i-=t.length,i>=0&&e.slice(i,a)==t}function Km(e){return e=V(e),e&&Tl.test(e)?e.replace(Oi,Ms):e}function Vm(e){return e=V(e),e&&Dl.test(e)?e.replace(wo,"\\$&"):e}var qm=zt(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()}),Jm=zt(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()}),Xm=ua("toLowerCase");function Zm(e,t,i){e=V(e),t=O(t);var r=t?Pt(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return eo(Un(a),i)+e+eo(zn(a),i)}function Qm(e,t,i){e=V(e),t=O(t);var r=t?Pt(e):0;return t&&r<t?e+eo(t-r,i):e}function jm(e,t,i){e=V(e),t=O(t);var r=t?Pt(e):0;return t&&r<t?eo(t-r,i)+e:e}function ef(e,t,i){return i||t==null?t=0:t&&(t=+t),lp(V(e).replace(_o,""),t||0)}function tf(e,t,i){return(i?ge(e,t,i):t===o)?t=1:t=O(t),ni(V(e),t)}function nf(){var e=arguments,t=V(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var of=zt(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()});function rf(e,t,i){return i&&typeof i!="number"&&ge(e,t,i)&&(t=i=o),i=i===o?Ge:i>>>0,i?(e=V(e),e&&(typeof t=="string"||t!=null&&!Ii(t))&&(t=_e(t),!t&&Dt(e))?gt(ze(e),0,i):e.split(t,i)):[]}var af=zt(function(e,t,i){return e+(i?" ":"")+Fi(t)});function lf(e,t,i){return e=V(e),i=i==null?0:Ct(O(i),0,e.length),t=_e(t),e.slice(i,i+t.length)==t}function sf(e,t,i){var r=s.templateSettings;i&&ge(e,t,i)&&(t=o),e=V(e),t=mo({},t,r,ha);var a=mo({},t.imports,r.imports,ha),p=pe(a),d=Ho(a,p),m,y,C=0,w=t.interpolate||In,I="__p += '",T=Uo((t.escape||In).source+"|"+w.source+"|"+(w===Hi?zl:In).source+"|"+(t.evaluate||In).source+"|$","g"),A="//# sourceURL="+(q.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ys+"]")+`
|
|
11
|
+
`;e.replace(T,function(R,Y,G,Te,ye,Ee){return G||(G=Te),I+=e.slice(C,Ee).replace(Vl,ks),Y&&(m=!0,I+=`' +
|
|
12
12
|
__e(`+Y+`) +
|
|
13
13
|
'`),ye&&(y=!0,I+=`';
|
|
14
14
|
`+ye+`;
|
|
@@ -18,11 +18,11 @@ __p += '`),G&&(I+=`' +
|
|
|
18
18
|
`;var P=q.call(t,"variable")&&t.variable;if(!P)I=`with (obj) {
|
|
19
19
|
`+I+`
|
|
20
20
|
}
|
|
21
|
-
`;else if(Ol.test(P))throw new
|
|
21
|
+
`;else if(Ol.test(P))throw new k(x);I=(y?I.replace(Cl,""):I).replace(wl,"$1").replace(_l,"$1;"),I="function("+(P||"obj")+`) {
|
|
22
22
|
`+(P?"":`obj || (obj = {});
|
|
23
23
|
`)+"var __t, __p = ''"+(m?", __e = _.escape":"")+(y?`, __j = Array.prototype.join;
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+I+`return __p
|
|
27
|
-
}`;var H=pl(function(){return W(p,A+"return "+I).apply(o,d)});if(H.source=I,_i(H))throw H;return H}function pf(e){return K(e).toLowerCase()}function uf(e){return K(e).toUpperCase()}function cf(e,t,i){if(e=K(e),e&&(i||t===o))return br(e);if(!e||!(t=_e(t)))return e;var r=Ue(e),a=Ue(t),p=xr(r,a),d=vr(r,a)+1;return gt(r,p,d).join("")}function df(e,t,i){if(e=K(e),e&&(i||t===o))return e.slice(0,Cr(e)+1);if(!e||!(t=_e(t)))return e;var r=Ue(e),a=vr(r,Ue(t))+1;return gt(r,0,a).join("")}function mf(e,t,i){if(e=K(e),e&&(i||t===o))return e.replace(_o,"");if(!e||!(t=_e(t)))return e;var r=Ue(e),a=xr(r,Ue(t));return gt(r,a).join("")}function ff(e,t){var i=fn,r=gn;if(ne(t)){var a="separator"in t?t.separator:a;i="length"in t?O(t.length):i,r="omission"in t?_e(t.omission):r}e=K(e);var p=e.length;if(Dt(e)){var d=Ue(e);p=d.length}if(i>=p)return e;var m=i-Pt(r);if(m<1)return r;var y=d?gt(d,0,m).join(""):e.slice(0,m);if(a===o)return y+r;if(d&&(m+=y.length-m),Ii(a)){if(e.slice(m).search(a)){var C,w=y;for(a.global||(a=zo(a.source,K(Ui.exec(a))+"g")),a.lastIndex=0;C=a.exec(w);)var I=C.index;y=y.slice(0,I===o?m:I)}}else if(e.indexOf(_e(a),m)!=m){var T=y.lastIndexOf(a);T>-1&&(y=y.slice(0,T))}return y+r}function gf(e){return e=K(e),e&&Il.test(e)?e.replace(ki,$s):e}var yf=Ut(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),Fi=ua("toUpperCase");function sl(e,t,i){return e=K(e),t=i?o:t,t===o?Os(e)?Vs(e):Ls(e):e.match(t)||[]}var pl=U(function(e,t){try{return Ce(e,o,t)}catch(i){return _i(i)?i:new N(i)}}),hf=tt(function(e,t){return Be(t,function(i){i=Ke(i),je(e,i,Ci(e[i],e))}),e});function bf(e){var t=e==null?0:e.length,i=D();return e=t?te(e,function(r){if(typeof r[1]!="function")throw new De(h);return[i(r[0]),r[1]]}):[],U(function(r){for(var a=-1;++a<t;){var p=e[a];if(Ce(p[0],this,r))return Ce(p[1],this,r)}})}function xf(e){return $p(Re(e,B))}function Li(e){return function(){return e}}function vf(e,t){return e==null||e!==e?t:e}var Sf=da(),Cf=da(!0);function ve(e){return e}function Ai(e){return Yr(typeof e=="function"?e:Re(e,B))}function wf(e){return Gr(Re(e,B))}function _f(e,t){return Wr(e,Re(t,B))}var If=U(function(e,t){return function(i){return ln(i,e,t)}}),Tf=U(function(e,t){return function(i){return ln(e,i,t)}});function Bi(e,t,i){var r=pe(t),a=Kn(t,r);i==null&&!(ne(t)&&(a.length||!r.length))&&(i=t,t=e,e=this,a=Kn(t,pe(t)));var p=!(ne(i)&&"chain"in i)||!!i.chain,d=ot(e);return Be(a,function(m){var y=t[m];e[m]=y,d&&(e.prototype[m]=function(){var C=this.__chain__;if(p||C){var w=e(this.__wrapped__),I=w.__actions__=he(this.__actions__);return I.push({func:y,args:arguments,thisArg:e}),w.__chain__=C,w}return y.apply(e,pt([this.value()],arguments))})}),e}function Ef(){return ue._===this&&(ue._=Qs),this}function Di(){}function Ff(e){return e=O(e),U(function(t){return Vr(t,e)})}var Lf=pi(te),Af=pi(mr),Bf=pi(Ro);function ul(e){return yi(e)?Mo(Ke(e)):au(e)}function Df(e){return function(t){return e==null?o:wt(e,t)}}var Pf=fa(),Rf=fa(!0);function Pi(){return[]}function Ri(){return!1}function Mf(){return{}}function Nf(){return""}function kf(){return!0}function Of(e,t){if(e=O(e),e<1||e>lt)return[];var i=Ge,r=de(e,Ge);t=D(t),e-=Ge;for(var a=Oo(r,t);++i<e;)t(i);return a}function Hf(e){return k(e)?te(e,Ke):Ie(e)?[e]:he(Aa(K(e)))}function Uf(e){var t=++Xs;return K(e)+t}var zf=jn(function(e,t){return e+t},0),Yf=ui("ceil"),$f=jn(function(e,t){return e/t},1),Gf=ui("floor");function Wf(e){return e&&e.length?Vn(e,ve,Jo):o}function Vf(e,t){return e&&e.length?Vn(e,D(t,2),Jo):o}function Kf(e){return yr(e,ve)}function qf(e,t){return yr(e,D(t,2))}function Jf(e){return e&&e.length?Vn(e,ve,jo):o}function Xf(e,t){return e&&e.length?Vn(e,D(t,2),jo):o}var Zf=jn(function(e,t){return e*t},1),Qf=ui("round"),jf=jn(function(e,t){return e-t},0);function eg(e){return e&&e.length?ko(e,ve):0}function tg(e,t){return e&&e.length?ko(e,D(t,2)):0}return s.after=Cd,s.ary=za,s.assign=pm,s.assignIn=tl,s.assignInWith=mo,s.assignWith=um,s.at=cm,s.before=Ya,s.bind=Ci,s.bindAll=hf,s.bindKey=$a,s.castArray=Rd,s.chain=Oa,s.chunk=$u,s.compact=Gu,s.concat=Wu,s.cond=bf,s.conforms=xf,s.constant=Li,s.countBy=jc,s.create=dm,s.curry=Ga,s.curryRight=Wa,s.debounce=Va,s.defaults=mm,s.defaultsDeep=fm,s.defer=wd,s.delay=_d,s.difference=Vu,s.differenceBy=Ku,s.differenceWith=qu,s.drop=Ju,s.dropRight=Xu,s.dropRightWhile=Zu,s.dropWhile=Qu,s.fill=ju,s.filter=td,s.flatMap=id,s.flatMapDeep=rd,s.flatMapDepth=ad,s.flatten=Ra,s.flattenDeep=ec,s.flattenDepth=tc,s.flip=Id,s.flow=Sf,s.flowRight=Cf,s.fromPairs=nc,s.functions=Sm,s.functionsIn=Cm,s.groupBy=ld,s.initial=ic,s.intersection=rc,s.intersectionBy=ac,s.intersectionWith=lc,s.invert=_m,s.invertBy=Im,s.invokeMap=pd,s.iteratee=Ai,s.keyBy=ud,s.keys=pe,s.keysIn=xe,s.map=ao,s.mapKeys=Em,s.mapValues=Fm,s.matches=wf,s.matchesProperty=_f,s.memoize=so,s.merge=Lm,s.mergeWith=nl,s.method=If,s.methodOf=Tf,s.mixin=Bi,s.negate=po,s.nthArg=Ff,s.omit=Am,s.omitBy=Bm,s.once=Td,s.orderBy=cd,s.over=Lf,s.overArgs=Ed,s.overEvery=Af,s.overSome=Bf,s.partial=wi,s.partialRight=Ka,s.partition=dd,s.pick=Dm,s.pickBy=ol,s.property=ul,s.propertyOf=Df,s.pull=cc,s.pullAll=Na,s.pullAllBy=dc,s.pullAllWith=mc,s.pullAt=fc,s.range=Pf,s.rangeRight=Rf,s.rearg=Fd,s.reject=gd,s.remove=gc,s.rest=Ld,s.reverse=vi,s.sampleSize=hd,s.set=Rm,s.setWith=Mm,s.shuffle=bd,s.slice=yc,s.sortBy=Sd,s.sortedUniq=wc,s.sortedUniqBy=_c,s.split=rf,s.spread=Ad,s.tail=Ic,s.take=Tc,s.takeRight=Ec,s.takeRightWhile=Fc,s.takeWhile=Lc,s.tap=Gc,s.throttle=Bd,s.thru=ro,s.toArray=Qa,s.toPairs=il,s.toPairsIn=rl,s.toPath=Hf,s.toPlainObject=el,s.transform=Nm,s.unary=Dd,s.union=Ac,s.unionBy=Bc,s.unionWith=Dc,s.uniq=Pc,s.uniqBy=Rc,s.uniqWith=Mc,s.unset=km,s.unzip=Si,s.unzipWith=ka,s.update=Om,s.updateWith=Hm,s.values=$t,s.valuesIn=Um,s.without=Nc,s.words=sl,s.wrap=Pd,s.xor=kc,s.xorBy=Oc,s.xorWith=Hc,s.zip=Uc,s.zipObject=zc,s.zipObjectDeep=Yc,s.zipWith=$c,s.entries=il,s.entriesIn=rl,s.extend=tl,s.extendWith=mo,Bi(s,s),s.add=zf,s.attempt=pl,s.camelCase=Gm,s.capitalize=al,s.ceil=Yf,s.clamp=zm,s.clone=Md,s.cloneDeep=kd,s.cloneDeepWith=Od,s.cloneWith=Nd,s.conformsTo=Hd,s.deburr=ll,s.defaultTo=vf,s.divide=$f,s.endsWith=Wm,s.eq=Ye,s.escape=Vm,s.escapeRegExp=Km,s.every=ed,s.find=nd,s.findIndex=Da,s.findKey=gm,s.findLast=od,s.findLastIndex=Pa,s.findLastKey=ym,s.floor=Gf,s.forEach=Ha,s.forEachRight=Ua,s.forIn=hm,s.forInRight=bm,s.forOwn=xm,s.forOwnRight=vm,s.get=Ti,s.gt=Ud,s.gte=zd,s.has=wm,s.hasIn=Ei,s.head=Ma,s.identity=ve,s.includes=sd,s.indexOf=oc,s.inRange=Ym,s.invoke=Tm,s.isArguments=Tt,s.isArray=k,s.isArrayBuffer=Yd,s.isArrayLike=be,s.isArrayLikeObject=ie,s.isBoolean=$d,s.isBuffer=yt,s.isDate=Gd,s.isElement=Wd,s.isEmpty=Vd,s.isEqual=Kd,s.isEqualWith=qd,s.isError=_i,s.isFinite=Jd,s.isFunction=ot,s.isInteger=qa,s.isLength=uo,s.isMap=Ja,s.isMatch=Xd,s.isMatchWith=Zd,s.isNaN=Qd,s.isNative=jd,s.isNil=tm,s.isNull=em,s.isNumber=Xa,s.isObject=ne,s.isObjectLike=oe,s.isPlainObject=mn,s.isRegExp=Ii,s.isSafeInteger=nm,s.isSet=Za,s.isString=co,s.isSymbol=Ie,s.isTypedArray=Yt,s.isUndefined=om,s.isWeakMap=im,s.isWeakSet=rm,s.join=sc,s.kebabCase=qm,s.last=Ne,s.lastIndexOf=pc,s.lowerCase=Jm,s.lowerFirst=Xm,s.lt=am,s.lte=lm,s.max=Wf,s.maxBy=Vf,s.mean=Kf,s.meanBy=qf,s.min=Jf,s.minBy=Xf,s.stubArray=Pi,s.stubFalse=Ri,s.stubObject=Mf,s.stubString=Nf,s.stubTrue=kf,s.multiply=Zf,s.nth=uc,s.noConflict=Ef,s.noop=Di,s.now=lo,s.pad=Zm,s.padEnd=Qm,s.padStart=jm,s.parseInt=ef,s.random=$m,s.reduce=md,s.reduceRight=fd,s.repeat=tf,s.replace=nf,s.result=Pm,s.round=Qf,s.runInContext=f,s.sample=yd,s.size=xd,s.snakeCase=of,s.some=vd,s.sortedIndex=hc,s.sortedIndexBy=bc,s.sortedIndexOf=xc,s.sortedLastIndex=vc,s.sortedLastIndexBy=Sc,s.sortedLastIndexOf=Cc,s.startCase=af,s.startsWith=lf,s.subtract=jf,s.sum=eg,s.sumBy=tg,s.template=sf,s.times=Of,s.toFinite=it,s.toInteger=O,s.toLength=ja,s.toLower=pf,s.toNumber=ke,s.toSafeInteger=sm,s.toString=K,s.toUpper=uf,s.trim=cf,s.trimEnd=df,s.trimStart=mf,s.truncate=ff,s.unescape=gf,s.uniqueId=Uf,s.upperCase=yf,s.upperFirst=Fi,s.each=Ha,s.eachRight=Ua,s.first=Ma,Bi(s,function(){var e={};return We(s,function(t,i){q.call(s.prototype,i)||(e[i]=t)}),e}(),{chain:!1}),s.VERSION=u,Be(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){s[e].placeholder=s}),Be(["drop","take"],function(e,t){$.prototype[e]=function(i){i=i===o?1:se(O(i),0);var r=this.__filtered__&&!t?new $(this):this.clone();return r.__filtered__?r.__takeCount__=de(i,r.__takeCount__):r.__views__.push({size:de(i,Ge),type:e+(r.__dir__<0?"Right":"")}),r},$.prototype[e+"Right"]=function(i){return this.reverse()[e](i).reverse()}}),Be(["filter","map","takeWhile"],function(e,t){var i=t+1,r=i==Gt||i==xn;$.prototype[e]=function(a){var p=this.clone();return p.__iteratees__.push({iteratee:D(a,3),type:i}),p.__filtered__=p.__filtered__||r,p}}),Be(["head","last"],function(e,t){var i="take"+(t?"Right":"");$.prototype[e]=function(){return this[i](1).value()[0]}}),Be(["initial","tail"],function(e,t){var i="drop"+(t?"":"Right");$.prototype[e]=function(){return this.__filtered__?new $(this):this[i](1)}}),$.prototype.compact=function(){return this.filter(ve)},$.prototype.find=function(e){return this.filter(e).head()},$.prototype.findLast=function(e){return this.reverse().find(e)},$.prototype.invokeMap=U(function(e,t){return typeof e=="function"?new $(this):this.map(function(i){return ln(i,e,t)})}),$.prototype.reject=function(e){return this.filter(po(D(e)))},$.prototype.slice=function(e,t){e=O(e);var i=this;return i.__filtered__&&(e>0||t<0)?new $(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==o&&(t=O(t),i=t<0?i.dropRight(-t):i.take(t-e)),i)},$.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$.prototype.toArray=function(){return this.take(Ge)},We($.prototype,function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=s[r?"take"+(t=="last"?"Right":""):t],p=r||/^find/.test(t);!a||(s.prototype[t]=function(){var d=this.__wrapped__,m=r?[1]:arguments,y=d instanceof $,C=m[0],w=y||k(d),I=function(Y){var G=a.apply(s,pt([Y],m));return r&&T?G[0]:G};w&&i&&typeof C=="function"&&C.length!=1&&(y=w=!1);var T=this.__chain__,A=!!this.__actions__.length,P=p&&!T,H=y&&!A;if(!p&&w){d=H?d:new $(this);var R=e.apply(d,m);return R.__actions__.push({func:ro,args:[I],thisArg:o}),new Pe(R,T)}return P&&H?e.apply(this,m):(R=this.thru(I),P?r?R.value()[0]:R.value():R)})}),Be(["pop","push","shift","sort","splice","unshift"],function(e){var t=Bn[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var a=arguments;if(r&&!this.__chain__){var p=this.value();return t.apply(k(p)?p:[],a)}return this[i](function(d){return t.apply(k(d)?d:[],a)})}}),We($.prototype,function(e,t){var i=s[t];if(i){var r=i.name+"";q.call(kt,r)||(kt[r]=[]),kt[r].push({name:t,func:i})}}),kt[Qn(o,ae).name]=[{name:"wrapper",func:o}],$.prototype.clone=fp,$.prototype.reverse=gp,$.prototype.value=yp,s.prototype.at=Wc,s.prototype.chain=Vc,s.prototype.commit=Kc,s.prototype.next=qc,s.prototype.plant=Xc,s.prototype.reverse=Zc,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Qc,s.prototype.first=s.prototype.head,jt&&(s.prototype[jt]=Jc),s},Rt=Ks();bt?((bt.exports=Rt)._=Rt,Ao._=Rt):ue._=Rt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"Masked Aadhar Card",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"ButtonGroup",const:"ButtonGroup"},{title:"Data Card",const:"card"},{title:"Check Box",const:"CheckBox"},{title:"Camera",const:"Camera"},{title:"Column Group",const:"ColumnGroup"},{title:"Container",const:"WrapperSection"},{title:"Tab Container",const:"HorizontalLayout"},{title:"Data Grid",const:"DataGrid"},{title:"Date",const:"Date"},{title:"Time Stamp",const:"DateTime"},{title:"Download",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"File Handler",const:"FileInput"},{title:"Graph",const:"Graph"},{title:"Image",const:"Image"},{title:"Input Slider",const:"InputSlider"},{title:"Label",const:"Box"},{title:"Leaderboard",const:"LeaderBoard"},{title:"Multi-Select Dropdown",const:"MultipleSelect"},{title:"OTP_Input",const:"OTP_Input"},{title:"Pan Card Masked",const:"PanCardText"},{title:"Pop Up",const:"PopUp"},{title:"Pop Over",const:"PopOver"},{title:"Progress Bar",const:"ProgressBar"},{title:"Progress Bar Card",const:"ProgressBarCard"},{title:"Dropdown",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:"Metric Card",const:"MetricCard"},{title:"Runner Boy",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",const:"UploadFile"},{title:"Tree ",const:"TreeMap"},{title:"Thought of the day",const:"Thought"},{title:"PDF",const:"PdfViewer"}]},elementType:{oneOf:[{title:"Table Action Element",const:"action"},{title:"Table Header Element",const:"tableHeader"},{title:"Table Element",const:"element"}]},columnFormat:{oneOf:[{title:"Date Column",const:"date"},{title:"DateTime Column",const:"dateTime"},{title:"Amount Column",const:"amount"},{title:"Center Column",const:"action"}]},dateFormat:{oneOf:[{title:"YYYY-MM-DDTHH:mm:ss.SSSZ",const:"YYYY-MM-DDTHH:mm:ss.SSSZ"},{title:"YYYY-MM-DDTHH:mm:ssZ",const:"YYYY-MM-DDTHH:mm:ssZ"},{title:"YYYY-MM-DDTHH:mm:ss",const:"YYYY-MM-DDTHH:mm:ss"},{title:"YYYY-MM-DD",const:"YYYY-MM-DD"},{title:"DD-MM-YYYY",const:"DD-MM-YYYY"},{title:"MM/DD/YYYY",const:"MM/DD/YYYY"},{title:"YYYY-MM-DD HH:mm:ss",const:"YYYY-MM-DD HH:mm:ss"},{title:"YYYY-MM-DD HH:mm:ss.SSS",const:"YYYY-MM-DD HH:mm:ss.SSS"},{title:"Milliseconds",const:"x"},{title:"Seconds",const:"X"}]},variant:{oneOf:[{title:"Outlined",const:"outlined"},{title:"Filled",const:"filled"},{title:"Standard",const:"standard"}]},positionVertical:{oneOf:[{title:"Top",const:"top"},{title:"Center",const:"center"},{title:"Bottom",const:"bottom"}]},positionHorizontal:{oneOf:[{title:"Left",const:"left"},{title:"Center",const:"center"},{title:"Right",const:"right"}]},contentVertical:{oneOf:[{title:"Top",const:"top"},{title:"Center",const:"center"},{title:"Bottom",const:"bottom"}]},contentHorizontal:{oneOf:[{title:"Left",const:"left"},{title:"Center",const:"center"},{title:"Right",const:"right"}]},toolTipPosition:{oneOf:[{title:"Top",const:"top"},{title:"Left",const:"left"},{title:"Right",const:"right"},{title:"Bottom",const:"bottom"}]},growthRate:{oneOf:[{title:"Positive",const:"positive"},{title:"Negative",const:"negative"}]},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"}]},maxPageSize:{type:"number",oneOf:[{title:"10",const:10},{title:"20",const:20},{title:"30",const:30},{title:"50",const:50},{title:"100",const:100},{title:"500",const:500}]},initialDensity:{type:"string",oneOf:[{title:"Compact",const:"compact"},{title:"Comfortable",const:"comfortable"},{title:"Spacious",const:"spacious"}]},xAxisFormatType:{type:"string",oneOf:[{title:"Date and Month",const:"Date and Month"},{title:"Month and Year",const:"Month and Year"}]},xAxisType:{type:"string",oneOf:[{title:"Date",const:"date"},{title:"String",const:"string"},{title:"Number",const:"number"}]},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"}}}},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"}}}},enableColumnFilter:{type:"array",items:{type:"object",properties:{keyName:{type:"string"}}}},filteringOptions:{oneOf:[{const:"fuzzy",title:"Fuzzy"},{const:"contains",title:"Contain"},{const:"startsWith",title:"Starts with"},{const:"endsWith",title:"Ends with"},{const:"equals",title:"Equals"},{const:"notEquals",title:"Not Equals"},{const:"between",title:"Between"},{const:"betweenInclusive",title:"Between inclusive"},{const:"greaterThan",title:"Greater than"},{const:"greaterThanOrEqualTo",title:"Greater than or equal to"},{const:"lessThan",title:"Less than"},{const:"lessThanOrEqualTo",title:"Less than or equal to"}]},legendLabels:{type:"array",items:{type:"object",properties:{key:{type:"string"},label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{key:{type:"string"},label:{type:"string"}}}},tabIcons:{type:"array",items:{type:"object",properties:{url:{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"},{const:"readOnly",title:"Read Only"}]},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"},{title:"Stack Horizontal Bar Graph",const:"HorizontalStackBarGraph"},{title:"Area Graph",const:"AreaGraph"},{title:"StackBar And Line Graph",const:"StackBarLineGraph"}]},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:"Download All Icon",const:"DownloadAllIcon"},{title:"Exception Icon",const:"ExceptionIcon"},{title:"Alarm Icon",const:"AlarmIcon"},{title:"Click Icon",const:"ClickIcon"},{title:"Content Copy Icon",const:"ContentCopyIcon"},{title:"File Copy Icon",const:"FileCopyIcon"},{title:"Pause Icon",const:"PauseIcon"},{title:"Play Icon",const:"PlayIcon"},{title:"Close Icon",const:"CloseIcon"},{title:"Replay Icon",const:"ReplayIcon"},{title:"Delete Icon",const:"DeleteIcon"},{title:"Drafts Icon",const:"DraftsIcon"},{title:"Perm Phone Msg Icon",const:"PermPhoneMsgIcon"},{title:"Paste Icon",const:"PasteIcon"},{title:"Calendar",const:"Calendar"},{title:"Prev Icon",const:"PrevIcon"},{title:"Verified Icon",const:"VerifiedIcon"},{title:"Table Add Icon",const:"TableAddIcon"},{title:"Table Download Icon",const:"TableDownloadIcon"},{title:"Audit Trail Icon",const:"AuditTrailIcon"},{title:"View Component",const:"View"},{title:"Table Edit Icon",const:"TableEditIcon"},{title:"Maximize Icon",const:"Maximize"},{title:"Minimize Icon",const:"Minimize"},{title:"Subtract Icon",const:"Subtract"},{title:"Bin Icon",const:"Bin"},{title:"Export Icon",const:"Export"},{title:"Table Paste Icon",const:"TablePaste"},{title:"Clone Icon",const:"CloneIcon"},{title:"Detail Icon",const:"DetailIcon"},{title:"Report View Icon",const:"ReportViewIcon"},{title:"Payout",const:"Payout"}]},color:{type:"string",oneOf:[{title:"Primary",const:"primary"},{title:"Secondary",const:"secondary"},{title:"Error",const:"error"},{title:"Success",const:"success"},{title:"Info",const:"info"}]},pageName:{path:[]},name:{type:"string"},label:{type:"string"},RemoveItemButton:{disabled:!0}},required:["name"]},componentBasicUiSchema=n=>{var o;return{type:"HorizontalLayout",heading:"Page-Component",elements:[{type:"TabLayout",config:{main:{tabLabels:["Core"],id:"component"},style:{TabPanelStyle:{padding:0}},TabsStyle:{marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}}},elements:[{type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Type"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:0,md:0,lg:0}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Component ID",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/proc5",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc6",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc7",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc8",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc9",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc10",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc11",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",config:{layout:12,main:{label:"Layout",childElementLabel:"Layout"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},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:0,sm:0,md:4,lg:4}},options:{widget:"EmptyBox"}}]}]}]},{type:"WrapperLayout",config:{main:{gap:"8px"}},elements:[{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Ok",variant:"contained",type:"text",onClick:"okHandler",size:"medium"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Save & Exit",variant:"contained",type:"text",onClick:"saveHandler",size:"medium"}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:4,sm:7,md:8,lg:9}},options:{widget:"EmptyBox"}}]},{type:"Control",scope:"#/properties/popUpComponentSection",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Component ?"},style:{"&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpComponent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteComponents",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/popUpEventSection",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText1",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Event ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/pageName",options:{widget:"Breadcrumb"},config:{layout:12,main:{onNavigatePopupNo:"onNavigatePopupNo",onNavigatePopupYes:"onNavigatePopupYes"},style:{paddingLeft:n.spacing(3),color:n.palette.grey[600],fontSize:"10px",position:"fixed",bottom:"24px",borderBottom:`1px solid ${n.palette.common.black}29`,borderTop:`1px solid ${n.palette.common.black}29`,backgroundColor:n.palette.background.default}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((o=n==null?void 0:n.palette)==null?void 0:o.text.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:0,width:"fit-content",left:"50%",position:"relative",margin:"revert",flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}}]}]}},CoreSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Type",type:"text"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:0,md:0,lg:0}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Component ID",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Label",required:!0}}},{type:"Control",scope:"#/properties/proc5",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc6",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc7",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc8",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc9",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc10",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc11",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",config:{layout:12,main:{label:"Layout",childElementLabel:"Layout"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},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:0,sm:0,md:4,lg:4}},options:{widget:"EmptyBox"}}]}]},EventSection=n=>({type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"eventAddHandler",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Event",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0},action:[{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"Button"},config:{main:{size:"small",startIcon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler",name:"Edit"}}},{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"Button"},config:{main:{startIcon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent",name:"Delete",size:"small"}}},{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"Button"},config:{main:{startIcon:"FileCopyIcon",onClick:"copyPasteElement",tooltipMessage:"Reject This Record",styleDefault:!1,name:"Copy"}}}]},elements:[{accessorKey:"eventType",header:"Event's Type",type:"string",size:300},{accessorKey:"Handler",header:"Handler",type:"string",size:200}]}]}),emptyBox$1=(n,l)=>l!==void 0?{type:"Control",scope:`#/properties/${n}`,options:{widget:"EmptyBox"},config:{layout:l}}:{type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}},cardLayout={type:"Control",scope:"#/properties/cardLayout",config:{layout:12,main:{label:"Card Layout",childElementLabel:"Card Layout"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},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."}}},emptyBox$1("cardEmpty")]},getArrayControl=(n,l,o)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"Array"},config:{layout:12,main:{label:o,childElementLabel:o},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:`#/properties/${l}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:o||"Labels for Tab"}}},emptyBox$1("ArrayControlEmpty1",{xs:6,sm:6,md:8,lg:8})]}),getArrayControlMultiField=(n,l,o,u,g,c)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"Array"},config:{layout:12,main:{label:c},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:`#/properties/${l}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:u||"Labels for Tab"}}},{type:"Control",scope:`#/properties/${o}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:g||"Labels for Tab"}}},emptyBox$1("ArrayControlEmpty2",{xs:6,sm:6,md:4,lg:4})]}),sizeHolder=getArrayControl("sizeHolder","keyName","Component Name");sizeHolder.elements[1]={type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Size"}}},sizeHolder.elements[2]=emptyBox$1("sizeHolderempty");const getInputField=(n,l)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:l}}}),getRadioInputField=(n,l,o)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:l,options:o}}}),buildWrapper=(n,l)=>({type:"WrapperLayout",config:{main:{label:n||"Details",isAccordion:!0}},elements:l||[]}),getTextArea=(n,l,o,u)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"TextArea"},config:{layout:u||12,main:{label:l,minRows:8,hideButton:o,enableCodeEditor:!0}}}),getSelectField=(n,l,o)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:l,type:"text"}}}),getMultiSelectField=(n,l)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{multiple:!0,label:l,options:[]}}}),BaseSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[]},buildPropertiesSection=function(n){let l=_.cloneDeep(BaseSection);switch(n){case"OTP_Input":l.elements=[getInputField("seperator","Seperator"),getInputField("length","OTP Length"),getRadioInputField("masking","OTP Masking",["YES","NO"]),emptyBox$1("empty1",{xs:12,sm:6,md:4,lg:3})];break;case"Array":l.elements=[getRadioInputField("allExpanded","Initial Expand",["YES","NO"]),getRadioInputField("disableAddButton","Disable Add Button",["YES","NO"]),getRadioInputField("disableExpandAllButton","Disable Expand Buttons",["YES","NO"]),getRadioInputField("disableRowActions","Disable Row Actions",["YES","NO"]),getInputField("childElementLabel","Child Element Label"),getInputField("showKeyAsLabel","ShowKey As Label"),getInputField("rowSpacing","Row Spacing"),getInputField("columnSpacing","Column Spacing"),getInputField("spacing","Spacing"),emptyBox$1("empty1",{xs:12,sm:6,md:4,lg:3})];break;case"TreeMap":l.elements=[getSelectField("orientation","orientation"),getInputField("linkType","linkType"),getInputField("graphHeight","Graph Height"),getInputField("graphWidth","Graph Width"),getInputField("graphZoomHeight","Zoom Height"),emptyBox$1("TreeEmpty",{xs:6,sm:6,md:4,lg:4})];break;case"InputSlider":l.elements=[getInputField("max","Max Limit"),getInputField("step","Step"),getInputField("min","Min Limit"),emptyBox$1("InputSliderEmpty1",{xs:6,sm:0,md:0,lg:0}),getRadioInputField("limitToMax","Applly Max. Limit",["YES","NO"]),emptyBox$1("InputSliderEmpty2",{xs:0,sm:0,md:8,lg:8})];break;case"DataGrid":l.elements=[getRadioInputField("divider","Use Header divider",["YES","NO"]),getInputField("elevation","Card Elevation"),getInputField("height","Grid height"),getInputField("justifyContent","justifyContent"),emptyBox$1("DataGridEmpty1",{xs:6,sm:0,md:4,lg:4}),emptyBox$1("DataGridEmpty1",{xs:0,sm:0,md:4,lg:4}),cardLayout];break;case"Stepper":l.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"),emptyBox$1("Stepper",{xs:6,sm:6,md:4,lg:4}),getArrayControl("sectionLabels","label")];break;case"PopUp":l.elements=[getRadioInputField("fullScreen","FullScreen",["YES","NO"]),getRadioInputField("fullWidth","FullWidth",["YES","NO"]),getInputField("maxWidth","Max. Width"),emptyBox$1("PopUpEmpty",{xs:6,sm:6,md:0,lg:0})];break;case"PopOver":l.elements=[getSelectField("positionVertical","Attach To (Vertical)"),getSelectField("positionHorizontal","Attach To (Horizontal)"),getSelectField("contentVertical","Popover Start (Vertical)"),getSelectField("contentHorizontal","Popover Start (Horizontal)"),getInputField("width","Width"),getInputField("gap","Gap"),emptyBox$1("PopUpEmpty",{xs:6,sm:0,md:8,lg:6})];break;case"Text":l.elements=[getInputField("placeholder","Placeholder"),getRadioInputField("multiline","Multiline",["YES","NO"]),getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("Radio",{xs:6,sm:6,md:8,lg:9}),getArrayControl("InputFormatingAndMasking","formatElement","Format Element"),getInputField("keyName","Event Key Name")];break;case"TextArea":l.elements=[getInputField("placeholder","Placeholder"),getRadioInputField("enableCodeEditor","Enable Code Editor",["YES","NO"]),getInputField("codeEditorLanguage","Enter Code Language"),emptyBox$1("TextEmpty1",{xs:0,sm:0,md:0,lg:3})];break;case"SpeedoMeter":l.elements=[getInputField("segments","Segments Count"),getInputField("heading","Container Heading"),getInputField("heading","Container Heading"),getInputField("speedoCaption","Speedometer Caption"),getInputField("width","Speedometer Width"),emptyBox$1("SpeedoMeterEmpty1",{xs:6,sm:6,md:4,lg:4})];break;case"RankCard":l.elements=[getInputField("rank","Rank"),getInputField("height","Height"),emptyBox$1("RankCardEmpty1",{xs:0,sm:0,md:4,lg:4})];break;case"LeaderBoard":l.elements=[getInputField("firstImage","First Image url"),getInputField("secondImage","Second Image url"),getInputField("thirdImage","Third Image url"),getInputField("nameKey","Key for Name"),getInputField("imageKey","Key for Image"),getInputField("scoreKey","Key for comparing parameter"),getRadioInputField("isScoreAmount","Is Score an Amount Type",["YES","No"]),emptyBox$1("LeaderBoardEmpty1",{xs:6,sm:6,md:0,lg:3})];break;case"CardSlider":l.elements=[getInputField("heading","Heading"),getInputField("iconName","Icon Name")];break;case"ProgressBar":case"ProgressBarCard":l.elements=[getInputField("heading","Heading"),getInputField("bottomLabel_1","First BottomLabel"),getInputField("bottomLabel_2","Second BottomLabel"),getInputField("bottomLabel_3","Third BottomLabel"),getInputField("size","Size"),getRadioInputField("variant","Variant",["circular","horizontal"]),getArrayControl("pieArcColors","color","Color")];break;case"card":l.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("titleIcon","Unicode of Icon for title"),getInputField("description","Description"),emptyBox$1("cardEmpty",{xs:0,sm:0,md:8,lg:8})];break;case"MetricCard":l.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("cardValue","Value"),getInputField("description","Description"),getSelectField("growthRate","Growth Rate"),getInputField("color","Card Color"),emptyBox$1("MetricEmpty1",{xs:6,sm:6,md:4,lg:3})];break;case"Button":l.elements=[getSelectField("buttonType","Button Type"),getSelectField("iconName","Icon Name"),getSelectField("color","Color"),getInputField("tooltipMessage","Tooltip Message"),getSelectField("defaultStyle","Default Style"),emptyBox$1("ButtonEmpty1",{xs:6,sm:6,md:4,lg:4})];break;case"ButtonGroup":l.elements=[getRadioInputField("multiSelect","Enable multiSelect",["YES","No"]),getInputField("size","Size"),getSelectField("color","Color"),emptyBox$1("ButtonEmpty1",{xs:6,sm:6,md:8,lg:9})];break;case"Box":l.elements=[getSelectField("iconName","Icon Name"),emptyBox$1("BoxEmpty1",{xs:6,sm:6,md:4,lg:8})];break;case"Graph":l.elements=[getInputField("height","Height"),getInputField("heading","Heading"),getInputField("subHeader","Sub Header"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getInputField("rightLabel","Right Label"),getRadioInputField("disableLeftLabel","Disable Left Label",["YES","No"]),getInputField("bottomLabel","Bottom Label"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:0,lg:0}),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getRadioInputField("legendDirection","Legend Direction",["Row","Column"]),getInputField("yAxisValue","Y-Axis Key"),getInputField("xAxisValue","X-Axis Key"),getSelectField("xAxisType","X-AxisType"),getRadioInputField("bottomAxisAngle","Bottom Axis Angled",["YES","No"]),getInputField("leftMargin","Left Margin"),getInputField("yAxisTickCount","Y Axis TickCount"),getInputField("xAxisTickCount","X Axis TickCount"),getSelectField("xAxisFormatType","X Axis Format Type"),getInputField("growthRateKey","Growth Rate Key"),getInputField("tooltipUnit","Tooltip Unit"),getArrayControlMultiField("legendLabels","key","value","Key","Label","Configure Bar Labels"),getArrayControlMultiField("pieArcColors","key","value","Key","Color","Configure Bar Colors")];break;case"WrapperSection":l.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("isAccordion","Accordion",["YES","No"]),getRadioInputField("defaultStyle","Default Style",["YES","No"]),getRadioInputField("defaultClosed","Default Closed",["YES","No"]),getInputField("rowSpacing","Row Spacing"),getInputField("columnSpacing","Column Spacing"),getInputField("spacing","Spacing"),getInputField("iconUrl","Icon Url"),emptyBox$1("WrapperSectionEmpty1",{xs:0,sm:0,md:4,lg:6}),emptyBox$1("WrapperSectionEmpty2")];break;case"TabSection":l.elements=[getRadioInputField("verticalOrientation","Vertical Orientation",["YES","NO"]),getRadioInputField("lazyLoad","Lazy Load",["YES","NO"]),emptyBox$1("TabEmpty"),getArrayControlMultiField("sectionLabels","label","icon","Label","Icon")];break;case"Table":l.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("SelectionAvailable","Row Selection",["YES","NO"]),getRadioInputField("ColumnResizingAvailable","ColumnResizing ",["YES","NO"]),getRadioInputField("DragAvailable","Row Dragging",["YES","NO"]),getRadioInputField("downloadAllData","Download All Data",["YES","NO"]),getRadioInputField("disableGlobalSearch","Disable Global Search",["YES","NO"]),getRadioInputField("disableColumnFilter","Disable Column Filter",["YES","NO"]),getRadioInputField("disableSorting","Disable Sorting",["YES","NO"]),getRadioInputField("disableEditColumn","Disable Edit Column",["YES","NO"]),getRadioInputField("disableFullScreenToggle","Disable Full Screen",["YES","NO"]),getRadioInputField("disableDensityToggle","Disable Density Toggle",["YES","NO"]),getRadioInputField("disableDownloadFile","Disable Download File",["YES","NO"]),getRadioInputField("disablePagination","Disable Pagination",["YES","NO"]),getInputField("selectKey","Selection Key"),getMultiSelectField("filteringOptions","Filtering Options"),getSelectField("maxPageSize","Max Page Size"),getSelectField("initialDensity","Initial Toggle Density"),buildWrapper("Tree Table Properties",[getRadioInputField("enableRowMovement","Row Rearrangement",["YES","NO"]),getRadioInputField("enableExpanding","Row Expanding",["YES","NO"]),getRadioInputField("paginateExpandedRows","Multi Page Expansion",["YES","NO"]),getRadioInputField("treeStructure","Flat Tree Structure",["YES","NO"]),getRadioInputField("filterFromLeafRows","Filter from tree rows",["YES","NO"]),getInputField("defaultColumnSize","Default Column Size"),,emptyBox$1("LazyLoadingTableEmpty3")]),getArrayControl("Table_Download_Keys_Name","KeyName","Table Key Name"),sizeHolder,getArrayControl("enableColumnFilter","keyName","Component Name")];break;case"Radio":l.elements=[getInputField("errorMessage","Error Message"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("RadioEmpty1",{xs:6,sm:6,md:4,lg:3}),getArrayControl("sectionLabels","label","Options Of Radio")];break;case"Select":l.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"]),getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("SelectEmpty",{xs:6,sm:6,md:8,lg:9})];break;case"MultipleSelect":l.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position")];break;case"PdfViewer":l.elements=[getInputField("scale","Zoom"),emptyBox$1("PdfViewer",{xs:6,sm:6,md:8,lg:9})];break;case"Date":l.elements=[getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("imageEmpty",{xs:0,sm:0,md:4,lg:6})];break;case"DateTime":l.elements=[getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("imageEmpty",{xs:0,sm:0,md:4,lg:6})];break;case"Thought":l.elements=[getTextArea("thought","Today's thought",!1)];break;case"Image":l.elements=[getInputField("imageUrl","Image URL"),getInputField("height","Image Height"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("imageEmpty",{xs:0,sm:0,md:4,lg:6})];break;case"FileInput":l.elements=[getRadioInputField("variant","Variant",["Outlined","Standard"]),getRadioInputField("disableUpload","Disable Upload",["YES","NO"]),getRadioInputField("disableDelete","Disable Delete",["YES","NO"]),getRadioInputField("disableDownload","Disable Download",["YES","NO"]),getInputField("description","Enter description"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),getInputField("chooseButtonLabel","ChooseButton Label"),getInputField("noFileAvailableMessage","No Found Message"),getRadioInputField("useLabel","Use Button",["YES","NO"]),getRadioInputField("externalUpload","External Upload",["YES","NO"]),emptyBox$1("imageEmpty",{xs:0,sm:0,md:4,lg:6})];break;case"Camera":l.elements=[getSelectField("iconName","Icon Name"),getRadioInputField("multiUplaod","Multiple Uplaod",["YES","NO"]),getSelectField("color","Color"),getInputField("tooltipMessage","Tooltip Message"),getSelectField("variant","Variant"),emptyBox$1("ButtonEmpty1",{xs:6,sm:6,md:4,lg:4})]}return l},StyleSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/style",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:12,lg:12},style:{"& .MuiFormLabel-root:not(.MuiInputLabel-shrink)":{}},main:{heading:"JSON Style",minRows:8,hideButton:!0}}}]},TableSection=(n,l="elements")=>({type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/${l}`,options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:`#/properties/${l}_New_Record`,options:{widget:"IconButton"},config:{main:{onClick:"widgetAddClickHandler",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:l==="elements"?"#/properties/Paste_Component":"#/properties/Paste_TabsComponent",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0},action:[{type:"Control",scope:"#/properties/RejectButton",options:{widget:"Button"},config:{main:{startIcon:"EditIcon",size:"small",onClick:"editComponents",tooltipMessage:"Reject This Record",name:"Edit"}}},{type:"Control",scope:"#/properties/RejectButton",options:{widget:"Button"},config:{main:{startIcon:"Bin",onClick:"deletePopUpComponent",tooltipMessage:"Reject This Record",name:"Delete",size:"small"}}},{type:"Control",scope:l==="elements"?"#/properties/Copy_Component":"#/properties/Copy_TabsComponent",options:{widget:"Button"},config:{main:{startIcon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!1,name:"Copy"}}}]},elements:[{accessorKey:"name",header:"Name",type:"string",size:300},{accessorKey:"type",header:"Type",type:"string",size:200}]}]}),ValueTab={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/value",config:{layout:12,main:{label:"Value",childElementLabel:"Value"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Label"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]}]},ValidationSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/validation",config:{layout:12,main:{label:"Validation",childElementLabel:"Validation"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/validationType",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Validation Type"}}},{type:"Control",scope:"#/properties/validationValue",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Validation Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]}]};var buildConfig=n=>{const l=_.cloneDeep(n);let o={};return l.pageName&&delete l.pageName,l.eventsSelected&&delete l.eventsSelected,(l.type==="Table"||l.type==="WrapperSection"||l.type==="TabSection")&&(o.elements=l.elements||[],l.elements&&delete l.elements),o.events=l.events||[],l.events&&delete l.events,l.tabLabelElements&&(o.tabLabelElements=l.tabLabelElements||[],delete l.tabLabelElements),o={...l,...o},o};const createLayoutFormat=(n,l)=>{if(_.isEmpty(n))return["WrapperSection","DataGrid","LeaderBoard","PopUp","TextArea","TreeMap","Thought","HorizontalLayout","Table"].includes(l)?{xs:12,sm:12,md:12,lg:12}:l==="Graph"?{xs:12,sm:12,md:12,lg:6}:l==="Button"?{xs:4,sm:2.5,md:2,lg:1.5}:{xs:6,sm:6,md:4,lg:3};let o={};return n.map(u=>{o[u.key||"xs"]=u.value===null||u.value===void 0||u.value===""?5.5:+u.value}),o},flatObjectValueInArray=(n=[])=>{if(n.length<1)return;const l=Object.keys(n[0])[0];return n.map(u=>u[l])},createKeyValueMap=(n=[])=>n.reduce((l,o)=>(o.key&&(l[o.key]=o.value),l),{}),clearFromSessionStorage=()=>{sessionStorage.removeItem("pageFormdata")},validateAndShowErrors=n=>_.isEmpty(n.ctx.core.errors)?!1:(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Error on Page"}),!0),getNavigationHistory=(n,l)=>{if(l){let o=n.name;const u=l.split("."),g=[];return u.map((c,h)=>{if(h===0){g.push(c);return}g.push(`${g[h-1]}.${c}`)}),g.map(c=>{const h=_.get(n,c);h?o=o+` > ${(h==null?void 0:h.name)||(h==null?void 0:h.eventType)}`:o=o+" > NewComponent"}),{pageName:o}}},saveFormdataInSessionStorage=(n,l)=>{let o;if(l){const u=getFormdataFromSessionStorage();o=_.set(u,l,buildConfig(n))}else o=buildConfig(n);return sessionStorage.setItem("pageFormdata",JSON.stringify(o)),o},getFormdataFromSessionStorage=n=>{const l=sessionStorage.getItem("pageFormdata")?JSON.parse(sessionStorage.getItem("pageFormdata")):void 0;let o;return n&&(o=_.get(l,n),o={...o,...getNavigationHistory(l,n)}),o||(o=getNavigationHistory(l,n)),o||l};async function saveHandler(n,l,o){var c,h;(c=n.searchParams)==null||c.get("id");const u=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,u);const g=JSON.parse(sessionStorage.getItem("pageFormdata"));if(_.isEmpty(n.ctx.core.errors))try{const x=await o(n,l,g);navigateHandler(n,!0,"/PageMasterRecords")}catch(x){navigateHandler(n,!1,void 0,x.message)}else navigateHandler(n,!1)}const navigateHandler=(n,l,o,u)=>{l?(sessionStorage.removeItem("pageFormdata"),n.navigate(o||-1),n.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:u||"Errors on Page"}))};function okHandler(n){var o;const l=(o=n.searchParams)==null?void 0:o.get("path");_.isEmpty(n.ctx.core.errors)?(saveFormdataInSessionStorage(n.ctx.core.data,l),n.navigate(-1),n.setNotify({SuccessMessage:"Save Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Errors on Page"}))}const sectionLabels={Select:["Core","Properties","Value","Events","Style","Validation"],MultipleSelect:["Core","Properties","Value","Events","Style","Validation"],Table:["Core","Components","Properties","Events","Style"],LeaderBoard:["Core","Components","Properties","Events","Style"],WrapperSection:["Core","Components","Properties","Style"],HorizontalLayout:["Core","Components","Properties","Style"],TabSection:["Core","Components","TabTitles","Properties","Style","Validation"],SpeedoMeter:["Core","Properties","Events","Style"],card:["Core","Properties","Events","Style","Validation"],UploadFile:["Core","Events","Style","Validation"],Graph:["Core","Properties","Events","Style","Validation"],DownloadFile:["Core","Events","Style","Validation"],Box:["Core","Properties","Events","Style","Validation"],Properties:["Core","Properties","Events","Style","Validation"],ProgressBarCard:["Core","Properties","Events","Style"],ProgressBar:["Core","Properties","Events","Style"],RankCard:["Core","Properties","Events","Style"],MetricCard:["Core","Properties","Events","Style","Validation"],Slider:["Core","Components","Events","Style","Validation"],Timer:["Core","Events","Style"],Rank:["Core","Events","Style"],Button:["Core","Properties","Events","Style","Validation"],ButtonGroup:["Core","Components","Properties","Events","Style","Validation"],Array:["Core","Components","Properties","Events","Style","Validation"],Radio:["Core","Properties","Events","Style","Validation"],Text:["Core","Properties","Events","Style","Validation"],TextArea:["Core","Properties","Events","Style","Validation"],PopUp:["Core","Components","Properties","Events","Style"],PopOver:["Core","Components","Properties","Style"],PdfViewer:["Core","Properties","Style"],Stepper:["Core","Components","Properties","Events","Style"],DataGrid:["Core","Components","Properties","Events","Style"],InputSlider:["Core","Properties","Events","Style","Validation"],TreeMap:["Core","Components","Properties","Events","Style"],ColumnGroup:["Core","Components"],Thought:["Core","Properties","Events","Style"],Date:["Core","Properties","Events","Style","Validation"],DateTime:["Core","Properties","Events","Style","Validation"],Image:["Core","Properties","Events","Style"],FileInput:["Core","Properties","Events","Style","Validation"],Camera:["Core","Properties","Events","Style","Validation"],OTP_Input:["Core","Properties","Events","Style","Validation"]};function refreshPage(n,l){var v,E;const o=_.cloneDeep(componentBasicUiSchema(l.theme.myTheme)),u=JSON.parse(sessionStorage.getItem("pageFormdata"));if(n){const F={Core:CoreSection,Value:ValueTab,Style:StyleSection,Events:EventSection(l.theme.myTheme),Components:TableSection(l.theme.myTheme),TabTitles:TableSection(l.theme.myTheme,"tabLabelElements"),Properties:buildPropertiesSection(n),Validation:ValidationSection},B=(v=sectionLabels[n])==null?void 0:v.map(z=>F[z]);o.elements[0].config.main.tabLabels=sectionLabels[n]||["Core","Style","Events","Validation"],o.elements[0].elements=B||[CoreSection,StyleSection,EventSection(l.theme.myTheme),ValidationSection]}const g=(E=l.searchParams)==null?void 0:E.get("path"),c=g.lastIndexOf("."),h=g.slice(0,c),x=_.get(u,h);((x==null?void 0:x.type)==="Table"||(x==null?void 0:x.type)==="ColumnGroup")&&(o.elements[0].elements[0].elements[4]={type:"Control",scope:"#/properties/columnFormat",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Column Format"}}},o.elements[0].elements[0].elements[6]={type:"Control",scope:"#/properties/filteringOptions",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Filter Mode",multiple:!0}}},o.elements[0].elements[0].elements[5]={type:"Control",scope:"#/properties/enableFilter",options:{widget:"RadioInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Enable Filter",options:["Yes","No"]}}},o.elements[0].elements[0].elements[7]={type:"Control",scope:"#/properties/enableSorting",options:{widget:"RadioInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Enable Sorting",options:["Yes","No"]}}},o.elements[0].elements[0].elements[8]={type:"Control",scope:"#/properties/columnKey",config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Column Key"}},options:{widget:"InputField"}},o.elements[0].elements[0].elements[9]={type:"Control",scope:"#/properties/elementType",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Element Type"}}},o.elements[0].elements[0].elements[10]={type:"Control",scope:"#/properties/dateFormat",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Date Time Format"}}},o.elements[0].elements[0].elements[11]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:0,lg:6}}}),(x==null?void 0:x.type)==="LeaderBoard"&&(o.elements[0].elements[0].elements[4]={type:"Control",scope:"#/properties/columnFormat",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Column Format"}}}),sessionStorage.getItem("copiedConfig")&&this.ElementPathSetter(o),l.setUiSchema(o)}var Component=(n,l,o,u)=>({setPage:async function(){const g=await this.getFormdata();n.setFormdata(g);const c=this.getSchema();n.setSchema(c),this.refreshPage(g==null?void 0:g.type,n)},refreshPage,getFormdata:function(){var c;const g=(c=n.searchParams)==null?void 0:c.get("path");return getFormdataFromSessionStorage(g)},getSchema:function(){var E,F,B;const g=_.cloneDeep(ComponentSchema);sessionStorage.getItem("copiedConfig")&&(g.properties.RemoveItemButton.disabled=!1);const c=JSON.parse(sessionStorage.getItem("pageFormdata")),h=(E=n.searchParams)==null?void 0:E.get("path"),x=(F=n.searchParams)==null?void 0:F.get("id");let v=[{label:(B=c.name)!=null?B:"NewPage",path:`/PageMaster${x?`?id=${x}`:""}`}];if(h){const z=h.split("."),j=[];z.map((X,V)=>{if(V===0){j.push(X);return}j.push(`${j[V-1]}.${X}`)}),j.map(X=>{const V=_.get(c,X);v.push({label:(V==null?void 0:V.name)||(V==null?void 0:V.eventType)||"NewComponent",path:`/Component?path=${X}${x?`&id=${x}`:""}`})})}return g.properties.pageName.path=v,g},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,u,o),onChange:function(){var g,c,h,x;((g=n==null?void 0:n.formData)==null?void 0:g.type)!==((c=n==null?void 0:n.newData)==null?void 0:c.type)&&((h=n==null?void 0:n.newData)==null?void 0:h.type)!==void 0&&this.refreshPage((x=n==null?void 0:n.newData)==null?void 0:x.type,n)},editComponents:function(){var x,v,E;if(validateAndShowErrors(n))return;const g=l.path.split(".")[1],c=(x=n.searchParams)==null?void 0:x.get("path"),h=(v=n.searchParams)==null?void 0:v.get("id");if(saveFormdataInSessionStorage(n.ctx.core.data,c),c){let F=`${c}`;(E=l==null?void 0:l.path)!=null&&E.startsWith("tabLabel")?F=`${F}.tabLabelElements[${g}]`:F=`${F}.elements[${g}]`,n.searchParams.set("path",F),n.setSearchParams(n.searchParams),this.setPage()}else n.navigate(`/Component?path=${`elements[${g}]`}&id=${h}`)},deleteComponents:function(g=!0){var F;const c=(F=n.searchParams)==null?void 0:F.get("path"),h=sessionStorage.getItem("rowId");sessionStorage.getItem("isTabLabelElements")==="true"?n.formData.tabLabelElements.splice(h,1):n.formData.elements.splice(h,1);const v=saveFormdataInSessionStorage(n.ctx.core.data,c),E=c?_.get(v,c):v;n.setFormdata(E),g&&n.updateDialog("popUpComponentSection"),sessionStorage.removeItem("rowId"),sessionStorage.removeItem("isTabLabelElements")},deleteEvent:function(g=!0){var v;const c=(v=n.searchParams)==null?void 0:v.get("path"),h=sessionStorage.getItem("rowId");n.formData.events.splice(h,1);const x=saveFormdataInSessionStorage(n.ctx.core.data,c);n.setFormdata(_.get(x,c)),g&&n.updateDialog("popUpEventSection"),sessionStorage.removeItem("rowId")},widgetAddClickHandler:function(){var h;if(validateAndShowErrors(n))return;Array.isArray(n.formData.elements)||(n.formData.elements=[]),Array.isArray(n.formData.tabLabelElements)||(n.formData.tabLabelElements=[]);const g=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,g);let c=`${g}`;l.path.startsWith("tabLabel")?c=`${c}.tabLabelElements[${n.formData.tabLabelElements.length}]`:c=`${c}.elements[${n.formData.elements.length}]`,n.searchParams.set("path",c),n.setSearchParams(n.searchParams),this.setPage()},eventEditHandler:function(){var v,E;if(validateAndShowErrors(n))return;const g=l.path.split(".")[1],c=(v=n.searchParams)==null?void 0:v.get("path"),h=(E=n.searchParams)==null?void 0:E.get("id");saveFormdataInSessionStorage(n.ctx.core.data,c);const x=`${c}.events[${g}]`;n.navigate(`/ComponentEvents?path=${x}&id=${h}`)},eventAddHandler:function(){var x,v;if(validateAndShowErrors(n))return;const g=(x=n.searchParams)==null?void 0:x.get("path"),c=(v=n.searchParams)==null?void 0:v.get("id");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,g);const h=`${g}.events[${n.formData.events.length}]`;n.navigate(`/ComponentEvents?path=${h}&id=${c}`)},backHandler:function(){n.navigate(-1)},deletePopUpComponent:function(){const g=l.path.split(".")[1];sessionStorage.setItem("rowId",g),sessionStorage.setItem("isTabLabelElements",l.path.startsWith("tabLabel")?"true":"false"),n.updateDialog("popUpComponentSection")},deletePopUpEvent:function(){const g=l.path.split(".")[1];sessionStorage.setItem("rowId",g),n.updateDialog("popUpEventSection")},copyPasteElement:function(g,c=this.setPage.bind(this)){var v;const[h,x]=(v=l.path.split(".").pop())==null?void 0:v.split("_");h==="Copy"?this.CopyElement(g,x):this.PasteElement(c,x)},CopyElement:function(g=n,c){var z;const h=lodash.exports.cloneDeep(g.schema),x=lodash.exports.cloneDeep(g.uiSchema);h.properties.RemoveItemButton.disabled=!1;const v=l.path.split(".")[1],E=(z=n.searchParams)==null?void 0:z.get("path"),F=this.elementPathHandler(E,v,c),B=getFormdataFromSessionStorage(F);this.ElementPathSetter(x,B),sessionStorage.setItem("copiedConfig",JSON.stringify(B)),n.setNotify({SuccessMessage:`${c} Copied Successfully`,Success:!0}),n.setSchema(h),n.setUiSchema(x)},PasteElement:function(g,c){var j;if(!sessionStorage.getItem("copiedConfig")){n.setNotify({FailMessage:"No item has been copied.",Fail:!0});return}const h=(j=n.searchParams)==null?void 0:j.get("path");Array.isArray(n.formData.elements)||(n.formData.elements=[]),Array.isArray(n.formData.events)||(n.formData.events=[]),Array.isArray(n.formData.tabLabelElements)||(n.formData.tabLabelElements=[]),saveFormdataInSessionStorage(n.ctx.core.data,h);const x=getFormdataFromSessionStorage(h),E={TabsComponent:x.tabLabelElements.length,Component:x.elements.length,Events:x.events.length}[c]||0,F=this.elementPathHandler(h,E,c),B=JSON.parse(sessionStorage.getItem("copiedConfig")),z={Events:" The Events cannot be integrated into the component section.",Component:"The component cannot be integrated into the Events section."};B.Handler&&c==="Component"?n.setNotify({FailMessage:z.Events,Fail:!0}):B.name&&c==="Events"?n.setNotify({FailMessage:z.Component,Fail:!0}):(saveFormdataInSessionStorage(B,F),g())},RemoveItemButton:function(g=n){const c=lodash.exports.cloneDeep(g.schema),h=lodash.exports.cloneDeep(g.uiSchema);c.properties.RemoveItemButton.disabled=!0,h.elements[2].elements[1].config.main.heading="No element copied",sessionStorage.removeItem("copiedConfig"),n.setSchema(c),n.setUiSchema(h)},elementPathHandler:function(g,c,h){return h==="Component"?g?`${g}.elements[${c}]`:`elements[${c}]`:h==="TabsComponent"?`${g}.tabLabelElements[${c}]`:g?`${g}.events[${c}]`:`events[${c}]`},ElementPathSetter:function(g,c){var x,v,E,F,B,z,j,X,V,M,ae,Fe,Z,qe,Se,Je,Le,at,Et,fn,gn,yn,hn,Gt,bn,xn;const h=c||JSON.parse(sessionStorage.getItem("copiedConfig"));(z=(B=(F=(E=(v=(x=g==null?void 0:g.elements)==null?void 0:x[1])==null?void 0:v.elements)==null?void 0:E[0])==null?void 0:F.config)==null?void 0:B.main)!=null&&z.headerIcons?g.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`:(qe=(Z=(Fe=(ae=(M=(V=(X=(j=g==null?void 0:g.elements)==null?void 0:j[0])==null?void 0:X.elements)==null?void 0:V[1])==null?void 0:M.elements)==null?void 0:ae[0])==null?void 0:Fe.config)==null?void 0:Z.main)!=null&&qe.headerIcons&&(g.elements[0].elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`),(fn=(Et=(at=(Le=(Je=(Se=g==null?void 0:g.elements)==null?void 0:Se[1])==null?void 0:Je.elements)==null?void 0:Le[1])==null?void 0:at.config)==null?void 0:Et.main)!=null&&fn.headerIcons?g.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Event: ${h.eventType}`:(xn=(bn=(Gt=(hn=(yn=(gn=g==null?void 0:g.elements)==null?void 0:gn[0])==null?void 0:yn.elements)==null?void 0:hn[1])==null?void 0:Gt.config)==null?void 0:bn.main)!=null&&xn.headerIcons&&(g.elements[0].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.eventType}`)},onNavigatePopupYes:function(){try{n.navigate(sessionStorage.getItem("pendingNavigatePath")),n.updateDialog("pageNamepopup")}catch{n.updateDialog("pageNamepopup"),n.setNotify({FailMessage:"Couldn't navigate page",Fail:!0})}},onNavigatePopupNo:function(){n.updateDialog("pageNamepopup")}}),pageMaster=n=>{const{store:l,dynamicData:o,submitHandler:u,service:g}=n;return{setPage:async function(){const c=await this.getFormdata();l.setFormdata(c);const h=await this.getUiSchema(),x=await this.getSchema();l.setSchema(x),l.setUiSchema(h)},getFormdata:async function(){var v;const c=(v=l.searchParams)==null?void 0:v.get("id"),h=await n.pageConfigProvider(c),x=getFormdataFromSessionStorage();return x||(saveFormdataInSessionStorage(h),{...h,type:"page"})},getUiSchema:function(){const c=_.cloneDeep(PageMasterUiSchema(l.theme.myTheme));return sessionStorage.getItem("copiedConfig")&&Component(l,o,u,g).ElementPathSetter(c),c},getSchema:()=>{const c=_.cloneDeep(PageMasterSchema);return sessionStorage.getItem("copiedConfig")&&(c.properties.RemoveItemButton.disabled=!1),c},backHandler:()=>{sessionStorage.removeItem("pageFormdata"),l.navigate("/PageMasterRecords")},onAddClickHandler:function(){var x;if(validateAndShowErrors(l))return;const c=(x=l.searchParams)==null?void 0:x.get("id");Array.isArray(l.formData.elements)||(l.formData.elements=[]);const h=saveFormdataInSessionStorage(l.ctx.core.data);c?l.navigate(`/Component?path=${`elements[${h==null?void 0:h.elements.length}]`}&id=${c}`):l.navigate(`/Component?path=${`elements[${h==null?void 0:h.elements.length}]`}`)},saveHandler:async()=>await saveHandler(l,g,u),Edit_Components:Component(l,o,u,g).editComponents,Delete_Components:async function(){await Component(l,o,u,g).deleteComponents(!1),l.updateDialog("popUpPageMasterComponent")},eventAddHandler:function(){var x;if(validateAndShowErrors(l))return;const c=(x=l.searchParams)==null?void 0:x.get("id");Array.isArray(l.formData.events)||(l.formData.events=[]),saveFormdataInSessionStorage(l.ctx.core.data);const h=`events[${l.formData.events.length}]`;l.navigate(`/ComponentEvents?path=${h}&id=${c}`)},editEvent:function(){var v;if(validateAndShowErrors(l))return;const c=o.path.split(".")[1],h=(v=l.searchParams)==null?void 0:v.get("id");saveFormdataInSessionStorage(l.ctx.core.data);const x=`events[${c}]`;l.navigate(`/ComponentEvents?path=${x}&id=${h}`)},deleteEvent:function(){const c=sessionStorage.getItem("rowId");l.formData.events.splice(c,1);const h=saveFormdataInSessionStorage(l.ctx.core.data);l.setFormdata(h),l.updateDialog("popUpPageMasterEvent"),sessionStorage.removeItem("rowId")},deletePopUpComponent:function(){const c=o.path.split(".")[1];sessionStorage.setItem("rowId",c),l.updateDialog("popUpPageMasterComponent")},deletePopUpEvent:function(){const c=o.path.split(".")[1];sessionStorage.setItem("rowId",c),l.updateDialog("popUpPageMasterEvent")},copyPasteElement:function(){Component(l,o,u,g).copyPasteElement(l,this.setPage.bind(this))},RemoveItemButton:function(){Component(l,o,u,g).RemoveItemButton(l)}}};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",const:"onClick"},{title:"Load",const:"onLoad"},{title:"Change",const:"onChange"},{title:"Mount",const:"onMount"},{title:"Success",const:"Success"},{title:"Start",const:"onStart"},{title:"Cell Render",const:"onCellRenderer"},{title:"Upload",const:"onUpload"},{title:"FileDelete",const:"onFileDelete"},{title:"Download",const:"onDownload"},{title:"Back",const:"onBack"},{title:"Next",const:"onNext"},{title:"Row Movement",const:"onRowMovement"},{title:"Download",const:"onDownload"},{title:"Fail",const:"Fail"},{title:"onClose",const:"onClose"},{title:"Key Down",const:"onKeyDown"},{title:"Set Style",const:"setStyle"}]},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:"downloadFileFromUrl",const:"downloadFileFromUrl"}]},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}},RemoveItemButton:{disabled:!0},pageName:{path:[{label:"defaultLabel",path:"defaultPath"}]}},required:["eventType","Handler"]},EventUiSchema=n=>{var o;return{type:"HorizontalLayout",heading:"Page-Events",elements:[{type:"TabLayout",config:{main:{tabLabels:["Core","Response Events"],id:"event"},style:{TabPanelStyle:{padding:0}},TabsStyle:{marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}}},elements:[{type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/eventType",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Event's Type",type:"text"}}},getSelectField("Handler","Handler"),{type:"Control",scope:"#/properties/EmptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:6}}}]},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"addEvent",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Event",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0},action:[{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"Button"},config:{main:{size:"small",startIcon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent",name:"Edit"}}},{type:"Control",scope:"#/properties/RejectButton",options:{widget:"Button"},config:{main:{startIcon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent",name:"Delete",size:"small"}}},{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"Button"},config:{main:{startIcon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!1,name:"Copy",size:"small"}}}]},elements:[{accessorKey:"eventType",header:"Event's Type",size:300,type:"string"},{accessorKey:"Handler",header:"Handler",size:200,type:"string"}]}]},{type:"WrapperLayout",config:{main:{gap:"8px"}},elements:[{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Ok",variant:"contained",type:"text",onClick:"okHandler",size:"medium"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Save & Exit",variant:"contained",type:"text",onClick:"saveHandler",size:"medium"}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:4,sm:7,md:8,lg:9}},options:{widget:"EmptyBox"}}]},{type:"Control",scope:"#/properties/popUpEvent",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Event ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",startIcon:"ApproveIcon",variant:"contained",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/pageName",options:{widget:"Breadcrumb"},config:{layout:12,main:{onNavigatePopupNo:"onNavigatePopupNo",onNavigatePopupYes:"onNavigatePopupYes"},style:{paddingLeft:n.spacing(3),color:n.palette.grey[600],fontSize:"10px",position:"fixed",bottom:"24px",borderBottom:`1px solid ${n.palette.common.black}29`,borderTop:`1px solid ${n.palette.common.black}29`,backgroundColor:n.palette.background.default}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((o=n==null?void 0:n.palette)==null?void 0:o.text.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:0,width:"fit-content",left:"50%",position:"relative",margin:"revert",flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}}]}]}},APISection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/method",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Method",type:"text"}}},{type:"Control",scope:"#/properties/path",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Path",type:"text",multiple:!1,options:[]}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:6}}},{type:"Control",scope:"#/properties/headers",config:{layout:12,main:{label:"Headers",childElementLabel:"Headers"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]},{type:"Control",scope:"#/properties/body",config:{layout:12,main:{label:"Body",childElementLabel:"Body"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]},getTextArea("apiBody","Transformer",!0,12)]},refreshSectionUiSchema={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/refreshElements",config:{layout:12,main:{label:"Refresh Elements",childElementLabel:"Refresh Elements"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:8,lg:8},main:{}}}]}]};var event=(n,l,o,u,g)=>({setPage:async function(){const c=await this.getFormData();n.setFormdata(c);const h=await this.getSchema();console.log("SettingSchema>>",h),n.setSchema(h),this.refreshPage(c.Handler,n)},refreshPage:(c,h)=>{var j,X,V;const x=_.cloneDeep(EventUiSchema(h.theme.myTheme)),v=_.cloneDeep(EventSchema);c&&(c==="custom"?(x.elements[0].elements[0].elements[2]=getRadioInputField("isSync","Run in Sync",["Yes","No"]),x.elements[0].elements[0].elements[3]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:0,lg:3},main:{},style:{}}},x.elements[0].elements[0].elements[4]=getTextArea("eventCode","Write Custom Code",!1),v.required=["eventType","Handler","eventCode"]):c==="api"?(x.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),x.elements[0].elements[0].elements[3]=APISection,v.required=["eventType","Handler","method","path"]):c==="inBuiltFunction"?(x.elements[0].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name"),x.elements[0].elements[0].elements[3]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:0,lg:3},main:{},style:{}}},x.elements[0].elements[0].elements[4]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0),v.required=["eventType","Handler","inBuiltFunctionType"]):c==="refresh"&&(x.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),x.elements[0].elements[0].elements[3]=refreshSectionUiSchema,v.properties.refreshElements.required=["value"],v.properties.refreshElements.items.required=["value"],v.required=["eventType","Handler","refreshElements"])),g&&(v.properties.inBuiltFunctionType.oneOf=[...v.properties.inBuiltFunctionType.oneOf,...g]),sessionStorage.getItem("copiedConfig")&&(Component(h,l,o,u).ElementPathSetter(x),v.properties.RemoveItemButton.disabled=!1);const E=JSON.parse(sessionStorage.getItem("pageFormdata")),F=(j=h.searchParams)==null?void 0:j.get("path"),B=(X=h.searchParams)==null?void 0:X.get("id");let z=[{label:(V=E.name)!=null?V:"NewPage",path:`/PageMaster${B?`?id=${B}`:""}`}];if(F){const M=F.split("."),ae=[];M.map((Fe,Z)=>{if(Z===0){ae.push(Fe);return}ae.push(`${ae[Z-1]}.${Fe}`)}),ae.map(Fe=>{const Z=_.get(E,Fe);z.push({label:(Z==null?void 0:Z.name)||(Z==null?void 0:Z.eventType)||"NewComponent",path:Z!=null&&Z.eventType?`/ComponentEvents?path=${Fe}${B?`&id=${B}`:""}`:`/Component?path=${Fe}${B?`&id=${B}`:""}`})})}v.properties.pageName.path=z,h.setSchema(v),h.setUiSchema(x)},getFormData:Component(n,l,o,u).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>{var F,B,z;const c=_.cloneDeep(EventSchema);sessionStorage.getItem("copiedConfig")&&(c.properties.RemoveItemButton.disabled=!1);const h=JSON.parse(sessionStorage.getItem("pageFormdata")),x=(F=n.searchParams)==null?void 0:F.get("path"),v=(B=n.searchParams)==null?void 0:B.get("id");let E=[{label:(z=h.name)!=null?z:"NewPage",path:`/PageMaster${v?`?id=${v}`:""}`}];if(x){const j=x.split("."),X=[];j.map((V,M)=>{if(M===0){X.push(V);return}X.push(`${X[M-1]}.${V}`)}),X.map(V=>{const M=_.get(h,V);E.push({label:(M==null?void 0:M.name)||(M==null?void 0:M.eventType)||"NewComponent",path:M!=null&&M.eventType?`/ComponentEvents?path=${V}${v?`&id=${v}`:""}`:`/Component?path=${V}${v?`&id=${v}`:""}`})})}return c.properties.pageName.path=_.cloneDeep(E),c},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,u,o),onChange:function(){var c,h,x;((c=n==null?void 0:n.formData)==null?void 0:c.Handler)!==((h=n==null?void 0:n.newData)==null?void 0:h.Handler)&&((x=n==null?void 0:n.newData)==null?void 0:x.Handler)!==void 0&&this.refreshPage(n.newData.Handler||n.formdata.Handler,n)},addEvent:function(){var x,v,E;if(validateAndShowErrors(n))return;const c=(x=n.searchParams)==null?void 0:x.get("path");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,c);const h=`${c}.events[${(E=(v=n.formData)==null?void 0:v.events)==null?void 0:E.length}]`;n.searchParams.set("path",h),n.setSearchParams(n.searchParams),this.setPage()},editEvent:function(){var v;if(validateAndShowErrors(n))return;const c=l.path.split(".")[1],h=(v=n.searchParams)==null?void 0:v.get("path");saveFormdataInSessionStorage(n.ctx.core.data,h);const x=`${h}.events[${c}]`;n.searchParams.set("path",x),n.setSearchParams(n.searchParams),this.setPage()},deleteEvent:async function(){await Component(n,l,o,u).deleteEvent(!1),n.updateDialog("popUpEvent")},backHandler:function(){n.navigate(-1)},deletePopUpEvent:function(){const c=l.path.split(".")[1];sessionStorage.setItem("rowId",c),n.updateDialog("popUpEvent")},copyPasteElement:function(){Component(n,l,o,u).copyPasteElement(n,this.setPage.bind(this))},RemoveItemButton:function(){Component(n,l,o,u).RemoveItemButton(n)},onNavigatePopupYes:function(){try{n.navigate(sessionStorage.getItem("pendingNavigatePath")),n.updateDialog("pageNamepopup")}catch{n.updateDialog("pageNamepopup"),n.setNotify({FailMessage:"Couldn't navigate page",Fail:!0})}},onNavigatePopupNo:function(){n.updateDialog("pageNamepopup")}});function downloadFile$1({data:n,name:l}){var E;const o=window.atob(n),u=new Uint8Array(o.length);for(let F=0;F<o.length;F++)u[F]=o.charCodeAt(F);const g=(E=l.split(".").pop())==null?void 0:E.toLowerCase(),c={pdf:"application/pdf",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",csv:"text/csv"},h=new Blob([u],{type:c[g]||"application/octet-stream"}),x=URL.createObjectURL(h),v=document.createElement("a");v.href=x,v.download=l,v.click(),URL.revokeObjectURL(x)}const downloadFileFromUrl=(n,l)=>{let o=`${l.defaults.baseURL}/${n.path}`;n!=null&&n.params&&Object.keys(n==null?void 0:n.params).map((c,h)=>{o=o+`${h===0?"?":"&"}${c}=${n==null?void 0:n.params[c]}`});const u=document.createElement("a");u.href=o,document.body.appendChild(u),u.click(),u.parentNode.removeChild(u)},executeEvents=n=>{var g,c,h;let l=[],o=null;if(n.config.isSync!=="Yes")return shouldEventExecute(n).then(x=>{if(!x)throw new Error("onStart Event not allow to run Parent Events");return executeEventsHandler(n)}).then(x=>{var E;o=x,l=(E=n.config)==null?void 0:E.events.filter(F=>F.eventType==="Success")}).catch(x=>{var F,B;const v=(B=(F=n.config)==null?void 0:F.events)==null?void 0:B.filter(z=>z.eventType==="Fail");l=(v==null?void 0:v.length)>0?v:[]}).then(()=>{if((l==null?void 0:l.length)>0)return l.reduce((x,v)=>x.then(()=>executeEvents({...n,config:v,parentEventOutput:o})),Promise.resolve())}).then(()=>o);if(!shouldEventExecute(n))return{response:void 0,events:void 0};try{o=executeEventsHandler(n),l=(g=n.config)==null?void 0:g.events.filter(E=>E.eventType==="Success")}catch{const x=(h=(c=n.config)==null?void 0:c.events)==null?void 0:h.filter(E=>E.eventType==="Fail");l=(x==null?void 0:x.length)>0?x:[]}if((l==null?void 0:l.length)>0)for(const x of l)executeEvents({...n,config:x,parentEventOutput:o});return o};function executeEventsHandler(n){var l,o,u;if(n.config.Handler==="api")return executeApiRequest(n);if(n.config.Handler==="inBuiltFunction")return executeInBuiltFunctionHandler(n);if(n.config.Handler==="custom")return executeCustomHandler(n);if(n.config.Handler==="refresh")return executeRefreshHandler(n);if(n.config.Handler==="mergeFormdata")return mergeFormdata(n.parentEventOutput,n.componentName,n.config,n.store,n.formDataHolder);if(n.config.Handler==="onBackHandler")return(l=n.store.functionParameters)==null?void 0:l.handleBack();if(n.config.Handler==="onNextHandler")return(o=n.store.functionParameters)==null?void 0:o.handleNext();if(n.config.Handler==="onResetHandler")return(u=n.store.functionParameters)==null?void 0:u.handleReset()}function getRefreshElements(n,l){var u;let o=[];return((u=n==null?void 0:n.refreshElements)==null?void 0:u.length)>0?o=n.refreshElements.map(g=>g.value):l!=null&&l.onLoad&&(o=Object.keys(l==null?void 0:l.onLoad)),o}async function executeRefreshHandler(n){const l=getRefreshElements(n.config,n.eventGroups);return Promise.allSettled(l.map(o=>{const u=n.eventGroups.onLoad[o];return u?Promise.allSettled(u.map(g=>executeEvents({...n,config:g,componentName:o}))):Promise.resolve()}))}function executeApiRequest(n){var g;const l={...(g=n.userValue)==null?void 0:g.payload},o={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},u=buildApiPayload(n.config,l,o,n.store,n.dynamicData,n.userValue,n.service);return n.service[n.config.method](n.config.path,u.body,{headers:u.headers}).then(c=>c)}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)}function executeCustomHandler(params){const makeFunc=eval(params.config.eventCode);return params.config.isSync!=="Yes"?makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName).then(n=>n):makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName)}function mergeFormdata(n,l,o,u,g){var c,h,x;o.type==="Select"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||u.setSchema(v=>{var E;return{...v,properties:{...v.properties,[l]:{...(E=v.properties)==null?void 0:E[l],oneOf:n.data}}}}):o.type==="MultipleSelect"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||u.setSchema(v=>{var E;return{...v,properties:{...v.properties,[l]:{...(E=v.properties)==null?void 0:E[l],type:"array",items:{oneOf:n==null?void 0:n.data}}}}}):o.type==="page"?_.isEmpty(n==null?void 0:n.data)&&(n==null?void 0:n.data)&&lodash.exports.isObject(n.data)||(u.newData={...u.newData,...n==null?void 0:n.data},Object.keys(n.data).forEach(v=>{g[v]=n.data[v]})):o.type==="Table"&&o.lazyLoading?n&&(n==null?void 0:n.data)&&(g[l]=(c=n.data)==null?void 0:c.data,g[`${l}_RowCount`]=(x=(h=n.data)==null?void 0:h.meta)==null?void 0:x.totalRowCount):n!=null&&n.data&&(g[l]=n.data)}const buildBodyFormat=(n,l,o,u)=>{let g={...o==null?void 0:o.payload};return n.map(c=>{var h,x,v,E,F;if(typeof(c==null?void 0:c.value)!="string")g[c.key]=c.value;else if((h=c==null?void 0:c.value)!=null&&h.startsWith("$userValue")){const B=c.value.substring(11);g[c.key]=_.get(o,B)}else if((x=c==null?void 0:c.value)!=null&&x.startsWith("$urlParams")){const B=c.value.substring(11),z=(v=u==null?void 0:u.searchParams)==null?void 0:v.get(B);g[c.key]=z}else if((E=c==null?void 0:c.value)!=null&&E.startsWith("$local")){const B=c.value.substring(7),z=JSON.parse(sessionStorage.getItem(B)||'""');g[c.key]=z}else if((F=c==null?void 0:c.value)!=null&&F.startsWith("$")){const B=c.value.substring(1);g[c.key]=_.get(l,B)}else(c==null?void 0:c.value)==="*"&&(c==null?void 0:c.key)==="*"?g={...g,...l}:(c==null?void 0:c.value)==="*"?g[c.key]=l:g[c.key]=c.value}),g},buildHeadersFormat=n=>{const l={"X-Requested-With":"XMLHttpRequest"};return n.map(o=>{l[o.key]=o.value}),l};function shouldEventExecute(n){var o,u,g;const l=(u=(o=n.config)==null?void 0:o.events)==null?void 0:u.filter(c=>c.eventType==="onStart");return(l==null?void 0:l.length)>0?((g=l[0])==null?void 0:g.isSync)!=="Yes"?executeEventsHandler({...n,config:l[0]}).then(c=>c):executeEventsHandler({...n,config:l[0]}):n.config.isSync!=="Yes"?Promise.resolve(!0):!0}function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var n,l;compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((l=(n=store==null?void 0:store.ctx)==null?void 0:n.core)==null?void 0:l.data)||store.formData,userValue,store)});const promiseChain={body,headers};if(compConfig.apiBody){const makeFunc=eval(compConfig.apiBody);return{body:makeFunc(store,dynamicData,userValue,promiseChain.body),headers:promiseChain.headers}}return promiseChain}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6};let pageData=!1;const extractEvents=n=>{function l(o){o.events&&o.events.forEach(u=>{var c;o.type&&(compType=o.type),eventGroups[u.eventType]||(eventGroups[u.eventType]={}),eventGroups[u.eventType][o.name]||(eventGroups[u.eventType][o.name]=[]);const g=(c=u==null?void 0:u.events)==null?void 0:c.find(h=>h.eventType==="Success");!g&&u.eventType==="onLoad"&&(u.events||(u.events=[]),u.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),!g&&(u.eventType==="onBack"||u.eventType==="onNext"||u.eventType==="onReset")&&(u.events||(u.events=[]),u.events.push({Handler:`${u.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),eventGroups[u.eventType][o.name].push({...u,type:compType})})}return l(n),n!=null&&n.elements&&n.elements.forEach(extractEvents),eventGroups};var service=n=>{const l={};let o={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:{downloadFile:downloadFile$1,download:downloadFileFromUrl,...n.functionsProvider},eventGroups,functionsProvider:n.functionsProvider,formDataHolder:l};return{setPage:async function(){var x,v,E;n.store.setAdditionalErrors([]),n.store.setFormdata((n==null?void 0:n.initFormData())||{}),n.store.setSchema({type:"object",properties:{}}),n.store.newData={},eventGroups={},pageData=await n.pageDataProvider();const u=pageData==null?void 0:pageData.config,g=pageData==null?void 0:pageData.uiSchema,c=new CustomEvent("pageNameChanged",{detail:{pageName:u.label,pageIconUrl:u.pageIconUrl,hasBackIcon:u.hasBackIcon!=="NO"}});window.dispatchEvent(c),(v=(x=n==null?void 0:n.store)==null?void 0:x.theme)==null||v.myTheme;const h=(E=pageData==null?void 0:pageData.schema)!=null?E:{type:"object",properties:{}};eventGroups=extractEvents(u),o={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,functionsProvider:n.functionsProvider,serviceHolder:this,eventGroups,formDataHolder:l},n.store.setSchema(F=>({...h,...F,properties:{...h.properties,...F.properties}})),executeRefreshHandler({config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:this,eventGroups,formDataHolder:l}).then(F=>{n.store.setFormdata(B=>({...B,...l})),g.elements.push(notifyUiSchema),n.store.setUiSchema(g)})},getStyle:()=>{var g,c,h,x;const u=_.cloneDeep(eventGroups);if(u.setStyle){let v={};const E=((g=n.dynamicData)==null?void 0:g.tableButtonPath)||((c=n==null?void 0:n.dynamicData.path)==null?void 0:c.split(".").pop());if((h=u==null?void 0:u.setStyle)!=null&&h[E]){for(const F of(x=u==null?void 0:u.setStyle)==null?void 0:x[E])v=executeEvents({...o,config:F,componentName:E});return v}}return{}},onCellRenderer:u=>{var c,h,x,v,E;const g=_.cloneDeep(eventGroups);if(g.onCellRenderer){let F={};const B=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||((x=(h=n==null?void 0:n.dynamicData)==null?void 0:h.path)==null?void 0:x.split(".")[0]);if((v=g==null?void 0:g.onCellRenderer)!=null&&v[B]){for(const z of(E=g==null?void 0:g.onCellRenderer)==null?void 0:E[B])o.store.functionParameters=u,F=executeEvents({...o,config:z,componentName:B});return F}}return{}},onClick:function(){this.callHandler("onClick")},onKeyDown:function(){this.callHandler("onKeyDown")},onFileDelete:async function(){this.callHandler("onFileDelete")},onClose:function(){this.callHandler("onClose")},onMount:function(){this.callHandler("onMount")},onFileDownload:function(){this.callHandler("onDownload")},onFileUpload:function(){this.callHandler("onUpload")},backHandler:function(){n.store.navigate(-1)},onRowMovement:async function(u){const g=[{key:"direction",value:u.rowMovement.direction},{key:"movedRowId",value:u.rowMovement.movedRowId},{key:"targetRowId",value:u.rowMovement.targetRowId||[]}];await this.callExecuteEvents({path:u==null?void 0:u.path},g,"onRowMovement");const c=await this.callExecuteEvents({path:u==null?void 0:u.path},g,"onLoad");return c==null?void 0:c.data},onPaginationChange:async function(u){var h,x;const g=[{key:"size",value:u.pagination.pageSize},{key:"pageIndex",value:u.pagination.pageIndex},{key:"sorting",value:u.sorting||[]},{key:"filters",value:u.tableColumnConfig||[]},{key:"globalFilter",value:(h=u.globalFilter)!=null?h:""},{key:"expandedRowIds",value:(x=u.expandedRowIds)!=null?x:[]}],c=await this.callExecuteEvents(u,g,"onLoad");return c==null?void 0:c.data},getSelectOptions:async function(u){if(u.serachValue!==""&&u.serachValue!==void 0){const g=[{key:"searchValue",value:u.serachValue},{key:"currentValue",value:u.currentValue}],c=await this.callExecuteEvents(u,g,"onLoad");return c==null?void 0:c.data}},onChange:function(){if(!eventGroups.onChange)return;const g=Object.keys(eventGroups.onChange).flatMap(c=>{var h;return((h=n.store)==null?void 0:h.formData[c])===n.store.newData[c]?[]:eventGroups.onChange[c].map(x=>Promise.resolve(executeEvents({...o,config:x,componentName:c,formDataHolder:l})).then(()=>{lodash.exports.isEmpty(l)||n.store.setFormdata(v=>({...v,...l}))}))});Promise.allSettled(g)},callExecuteEvents:async function(u,g,c){var v,E;let h;const x=_.cloneDeep(eventGroups);for(const F of(v=x==null?void 0:x[c])==null?void 0:v[u.path]){F.body?F.body=[...F.body,...g]:F.body=g;const B=(E=F==null?void 0:F.events)==null?void 0:E.filter(z=>z.Handler!=="mergeFormdata");F.events=B!=null?B:[],h=await executeEvents({...o,config:F,componentName:u.path})}return h},onBack:async function(u){var c,h;const g=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];this.callHandler("onBack",u),((h=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:h[g])===void 0&&(u==null||u.handleBack())},onNext:async function(u){var c,h;const g=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];this.callHandler("onNext",u),((h=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:h[g])===void 0&&(u==null||u.handleNext())},onReset:async function(u){var c,h;const g=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];this.callHandler("onReset",u),((h=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:h[g])===void 0&&(u==null||u.handleReset())},callHandler:function(u,g){var x,v;const c=((x=n.dynamicData)==null?void 0:x.tableButtonPath)||n.dynamicData.path.split(".").pop();if(!((v=eventGroups==null?void 0:eventGroups[u])!=null&&v[c]))return;const h=eventGroups[u][c].map(E=>(o.store.functionParameters=g,Promise.resolve(executeEvents({...o,config:E,componentName:c,formDataHolder:l})).then(()=>{lodash.exports.isEmpty(l)||n.store.setFormdata(F=>({...F,...l}))})));Promise.allSettled(h)},downloadFile:downloadFile$1,downloadFileFromUrl,...n.functionsProvider}},leaderBoard={type:"Control",scope:"#/properties/path",options:{widget:"LeaderBoard"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{}}};const buildLeaderBoard=n=>{const l=_.cloneDeep(leaderBoard);if(n.elements){const o=n.elements.map((u,g)=>u.type?{...{widget:buildUiSchema(u),accessorKey:u.name,header:u.label||u.name}}:{accessorKey:u.name,header:u.label||u.name});l.elements=o}return l.config.main.label=n.label,n.name&&(l.scope=`#/properties/${n.name}`),n.firstImage&&(l.config.main.firstImage=n.firstImage),n.secondImage&&(l.config.main.secondImage=n.secondImage),n.thirdImage&&(l.config.main.thirdImage=n.thirdImage),n.nameKey&&(l.config.main.nameKey=n.nameKey),n.imageKey&&(l.config.main.imageKey=n.imageKey),n.scoreKey&&(l.config.main.scoreKey=n.scoreKey),n.isScoreAmount&&(l.config.main.isScoreAmount=n.isScoreAmount==="YES"),n.layout&&(l.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(l.config.style=JSON.parse(n.style)),l};var progressBar={type:"Control",scope:"#/properties/pbc_progress",options:{widget:"ProgressBar"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{developOnlyProgresBar:!1,bottomLabel_3:"Remaining",heading:"PBC Details"}}};const buildProgressBarCard=(n,l)=>{const o=_.cloneDeep(progressBar);return o.scope=l,n.heading&&(o.config.main.heading=n.heading),n.bottomLabel_3&&(o.config.main.bottomLabel_3=n.bottomLabel_3),n.bottomLabel_2&&(o.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(o.elements[0].config.main.bottomLabel_1=n.bottomLabel_1),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o},buildProgressBar=(n,l)=>{const o=_.cloneDeep(progressBar);return o.scope=l,n.layout&&(o.config.layout=n.layout),o.config.main.heading=n.label,n.variant&&(o.config.main.variant=n.variant),n.pieArcColors&&(o.config.main.colorRange=flatObjectValueInArray(n.pieArcColors)),n.size&&(o.config.main.size=Number(n.size)),n.bottomLabel_3&&(o.config.main.bottomLabel_3=n.bottomLabel_3),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.bottomLabel_2&&(o.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(o.config.main.bottomLabel_1=n.bottomLabel_1),o},BarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"BarGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}}}}},PieGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"PieGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}}}}},LineGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"LineGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}}}}},HorizontalBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"HorizontalBarGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}}}}},AreaBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{type:"AreaGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}}}}},StackBarLineG={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{type:"StackBarLineGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}}}}},buildHorizontalBarGraph=(n,l)=>{const o=_.cloneDeep(HorizontalBarGraph);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o.config.main.type=n.graphType,o.scope=l,o.config.main.header=n.heading,n.legendHide&&(o.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(o.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.height&&(o.config.style.containerStyle.height=n.height),n.leftMargin&&(o.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(o.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(o.config.main.leftLabel=n.leftLabel),n.disableLeftLabel&&(o.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),o};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=(n,l)=>{const o=_.cloneDeep(SpeedoMeter);if(o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.heading&&(o.config.main.header=n.heading),n.segments&&(o.config.main.segments=n.segments),n.style){const u=JSON.parse(n.style);u!=null&&u.style&&(o.config.style={...o.config.style,...u.style}),u!=null&&u.containerStyle&&(o.config.style.containerStyle={...o.config.style.containerStyle,...u.containerStyle})}return n.width&&(o.config.main.width=n.width),n.speedoCaption&&(o.config.main.currentValueText=n.speedoCaption),n.data&&(o.config.main.data=n.data),n.needleColor&&(o.config.style.needleColor=n.needleColor),n.segments&&(o.config.style.segments=n.segments),n.endColor&&(o.config.style.endColor=n.endColor),n.startColor&&(o.config.style.startColor=n.startColor),n.segmentColors&&(o.config.style.segmentColors=n.segmentColors),o},buildPieGraph=(n,l)=>{const o=_.cloneDeep(PieGraph);return n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.height&&(o.config.style.containerStyle.height=n.height),n.legendHide&&(o.config.main.legendAvailable=n.legendHide!=="YES"),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),o.scope=l,o.config.main.header=n.heading,n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),o},buildStackbarGraph=(n,l)=>{var u;const o=_.cloneDeep(BarGraph);return n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.legendHide&&(o.config.main.legendAvailable=n.legendHide,o.config.main.legendAvailable=n.legendHide!=="YES"),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.bottomAxisAngle&&(o.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),o.config.main.type=(u=n==null?void 0:n.graphType)!=null?u:"BarGraph",o.config.main.header=n.heading,n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.height&&(o.config.style.containerStyle.height=n.height),n.leftMargin&&(o.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(o.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(o.config.main.leftLabel=n.leftLabel),n.disableLeftLabel&&(o.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),o.scope=l,o};var RunnerBoyProgressBar={type:"Control",scope:"#/properties/path",options:{widget:"RunnerBoyProgressBar"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{}}};const RunnerBoyProgressbar=(n,l)=>{const o=_.cloneDeep(RunnerBoyProgressBar);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(n,l)=>{const o=_.cloneDeep(Tabsection);return o.scope=l,n.lazyLoad&&(o.config.main.lazyLoad=n.lazyLoad==="YES"),n.orientation&&(o.config.main.orientation=n.orientation==="YES"?"vertical":"horizontal"),n.sectionLabels&&(o.config.main.tabLabels=n.sectionLabels.map(u=>u.label),o.config.main.tabIcons=n.sectionLabels.map(u=>u.icon)),n.style&&(o.config.style=JSON.parse(n.style)),o.config.main.id=n.name,o};var WrapperSection={type:"WrapperLayout",config:{layout:12,main:{divider:!0,label:"Default Label",rowSpacing:2,columnSpacing:2,spacing:2},defaultStyle:!0},elements:[]};const buildWrapperSection=(n,l)=>{const o=_.cloneDeep(WrapperSection);return o.scope=l,o.config.main.label=n.label,o.config.main.divider=n.divider==="YES",o.config.main.isAccordion=n.isAccordion!=="No",o.config.main.defaultClosed=n.defaultClosed==="YES",o.config.main.icon=n.iconUrl,o.config.main.rowSpacing=Number(n.rowSpacing),o.config.main.columnSpacing=Number(n.columnSpacing),o.config.main.spacing=Number(n.spacing),n.defaultStyle&&(o.config.defaultStyle=n.defaultStyle==="YES"),n.style&&(o.config.style=JSON.parse(n.style)),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o};var TextInputField={type:"Control",scope:"#/properties/text",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:""},style:{}}};const buildTextField=(n,l)=>{const o=_.cloneDeep(TextInputField);return o.config.main.label=n.label,n.style&&(o.config.style=JSON.parse(n.style)),n.multiline&&(o.config.main.multiline=n.multiline==="YES"),n.keyName&&(o.config.main.keyName=n.keyName),n.InputFormatingAndMasking&&(o.config.main.formatStrArray=n.InputFormatingAndMasking.map(u=>u.formatElement)),n.placeholder&&(o.config.main.placeholder=n.placeholder),n.variant&&(o.config.main.variant=n.variant),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o.config.main.errorMessage=`${n.name} is empty or invalid`,o.scope=l,o};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"",type:"text",freeSole:!1},style:{}}};const buildSelect=(n,l)=>{const o=_.cloneDeep(SelectInputField);return o.config.main.label=n.label,n.value&&(o.config.main.options=n.value),n.freeSolo&&(o.config.main.freeSolo=n.freeSolo==="YES"),n.lazyLoading&&(o.config.main.lazyLoading=n.lazyLoading==="YES"),n.variant&&(o.config.main.variant=n.variant),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),n.style&&(o.config.style=JSON.parse(n.style)),o.scope=l,o};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Compare",variant:"contained",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(n,l)=>{const o=_.cloneDeep(Button);return n.buttonType&&(o.options.widget=n.buttonType==="IconButton"?"IconButton":"Button",n.buttonType==="ButtonWithIconAndText"?o.config.main.startIcon=n.iconName:o.config.main.icon=n.iconName),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.tooltipMessage&&(o.config.main.tooltipMessage=n.tooltipMessage),n.defaultStyle&&(n.buttonType==="IconButton"?o.config.main.styleDefault=n.defaultStyle==="true":o.config.main.enableDefaultStyle=n.defaultStyle!=="true"),o.scope=l,n.style&&(o.config.style=JSON.parse(n.style)),n.size&&(o.config.main.size=n.size),n.color&&(o.config.main.color=n.color),n.label&&(o.config.main.name=n.label),o};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{layout:12,main:{onMount:"onMount",enableExpandAll:!0,headerIcons:{},allRowData:[],downloadAllData:!1,columns:{dataColumns:[],actionColumns:[]}}}};const buildTable=(n,l)=>{const o=_.cloneDeep(Table);return o.scope=l,n.style&&(o.config.style=JSON.parse(n.style)),n.lazyLoading&&(o.config.main.lazyLoading=n.lazyLoading==="YES"),n.defaultColumnSize&&(o.config.main.defaultColumnSize=n.defaultColumnSize),n.enableRowMovement&&(o.config.main.enableRowMovement=n.enableRowMovement==="YES"),n.enableExpanding&&(o.config.main.enableExpanding=n.enableExpanding==="YES"),n.enableExpandAll&&(o.config.main.enableExpandAll=n.enableExpandAll==="YES"),n.filterFromLeafRows&&(o.config.main.filterFromLeafRows=n.filterFromLeafRows==="YES"),n.paginateExpandedRows&&(o.config.main.paginateExpandedRows=n.paginateExpandedRows==="YES"),n.treeStructure&&(o.config.main.treeStructure=n.treeStructure==="YES"?"flatTreeMap":!1),n.SelectionAvailable&&(o.config.main.Selection=n.SelectionAvailable==="YES"),n.ColumnResizingAvailable&&(o.config.main.disableColumnResizing=n.ColumnResizingAvailable!=="YES"),n.DragAvailable&&(o.config.main.enableDrag=n.DragAvailable==="YES"),n.downloadAllData&&(o.config.main.downloadAllData=n.downloadAllData==="YES"),n.disableGlobalSearch&&(o.config.main.disableGlobalSearch=n.disableGlobalSearch==="YES"),n.disableColumnFilter&&(o.config.main.disableColumnFilter=n.disableColumnFilter==="YES"),n.disableSorting&&(o.config.main.disableSorting=n.disableSorting==="YES"),n.disableEditColumn&&(o.config.main.disableEditColumn=n.disableEditColumn==="YES"),n.disableFullScreenToggle&&(o.config.main.disableFullScreenToggle=n.disableFullScreenToggle==="YES"),n.disableDensityToggle&&(o.config.main.disableDensityToggle=n.disableDensityToggle==="YES"),n.disableDownloadFile&&(o.config.main.disableDownloadFile=n.disableDownloadFile==="YES"),n.disablePagination&&(o.config.main.disablePagination=n.disablePagination==="YES"),n.Table_Download_Keys_Name&&(o.config.main.TableDownloadKeysName=n.Table_Download_Keys_Name.map(u=>u.KeyName)),n.selectKey&&(o.config.main.selectKey=n.selectKey),n.maxPageSize&&(o.config.main.maxPageSize=n.maxPageSize),n.initialDensity&&(o.config.main.initialDensity=n.initialDensity),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o},Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{iconName:"",onClick:"onClick"},style:{}}},buildLabel=(n,l)=>{const o=_.cloneDeep(Box);return o.scope=l,o.config.main.heading=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.iconName&&(o.config.main.iconName=n.iconName),n.style&&(o.config.style=JSON.parse(n.style)),o},uploadFile={type:"Control",scope:"#/properties/attachment",config:{main:{label:"AttachmentFile",onClick:"onClick",required:!0,errorMessage:"Attachment File is not uploaded"},style:{backgroundColor:"none"},layout:{xs:6,sm:6,md:4,lg:3}},options:{widget:"UploadFile"}},downloadFile={type:"Control",scope:"#/properties/downloadAttachment",config:{main:{onClick:"onClick",required:!1},style:{backgroundColor:"none"},layout:{xs:6,sm:6,md:4,lg:3}},options:{widget:"DownloadFile"}},buildUploadFile=(n,l)=>{const o=_.cloneDeep(uploadFile);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=n.style),n.required&&(o.config.main.required=!0),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o.config.main.errorMessage=n.errorMessage,o},buildDownloadFile=(n,l)=>{const o=_.cloneDeep(downloadFile);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=n.layout),n.style&&(o.config.style=n.style),n.required&&(o.config.main.required=!0),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.errorMessage&&(o.config.main.errorMessage=n.errorMessage),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o};function Card(n){return{type:"WrapperLayout",config:{main:{},style:{wrapperStyle:{position:"relative",top:"50%",transform:"translateY(-50%)",marginBottom:0,borderRadius:"12px",fontFamily:"poppins"},componentsBoxStyle:{boxShadow:"0 0 6px 1px rgba(149, 147, 147, 0.25)",flexDirection:"column",overflow:"hidden",flexWrap:"nowrap",width:"100% !important",background:"transparent",borderRadius:"12px",padding:"20px 20px 20px 14px",height:"100%",minHeight:"100px",position:"relative",marginLeft:"0px","&: hover":{background:`${n.palette.primary.main}`,color:`${n.palette.primary.contrastText}`}}},layout:{xs:12,sm:12,md:3,lg:3}},elements:[{type:"Control",scope:"#/properties/initilCardScope",config:{main:{url:"https://www.svgrepo.com/show/500606/loading.svg"},style:{containerStyle:{position:"absolute",color:"inherit",top:"4px",right:"4px",display:"flex",justifyContent:"flex-end",alignItems:"flex-start"},imageStyle:{color:"inherit",width:"32px",height:"32px",padding:"0px",margin:"0px"}}},options:{widget:"Image"}},{type:"Control",scope:"#/properties/initilCardScope",config:{main:{heading:"Total Earnings"},style:{color:"inherit",fontSize:"16px",fontWeight:300,fontFamily:"Poppins",justifyContent:"flex-start",background:"inherit",position:"absolute",top:"8px",left:"12px",display:"flex",maxWidth:"200px",whiteSpace:"nowrap",overflowX:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/initilCardScope",config:{main:{heading:"5000.00"},style:{color:"inherit",display:"flex",fontSize:{xs:"22px",md:"40px"},fontWeight:600,background:"inherit",justifyContent:"flex-start",width:"100%",margin:"0px",marginBottom:"4px",marginTop:"8px",lineHeight:"1",maxWidth:"300px",whiteSpace:"nowrap",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/initilCardScope",config:{main:{heading:"Increased from last month"},style:{color:"inherit",fontSize:"12px",fontWeight:"400",justifyContent:"flex-start",background:"inherit",margin:"0px",paddingLeft:"2px",marginBottom:"8px",maxWidth:"200px",whiteSpace:"nowrap",overflowX:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},options:{widget:"Box"}}]}}const buildCard=(config,componentScope,store)=>{const card=_.cloneDeep(Card(store.theme.myTheme));return config.style&&(card.config.wrapperStyle=JSON.parse(config.style)),card.elements[0].scope=`#/properties/${config.name}/properties/url`,card.elements[1].scope=`#/properties/${config.name}/properties/label`,card.elements[2].scope=`#/properties/${config.name}/properties/value`,card.elements[3].scope=`#/properties/${config.name}/properties/description`,config.layout&&(card.config.layout=createLayoutFormat(config.layout)),config!=null&&config.titleIcon&&(card.elements[0].elements[0].elements[0].elements[0].config.main.heading=eval(`'\\${config.titleIcon}'`),card.elements[0].elements[0].elements[0].elements[1].config.style.left="24px"),config.label&&(card.elements[1].config.main.heading=config.label),config.url&&(card.elements[0].config.main.url=config.url),config.description&&(card.elements[3].config.main.heading=config.description),card};var MetricCard={type:"Control",scope:"#/properties/metricpath",options:{widget:"MetricCard"},config:{layout:{xs:12,sm:12,md:3,lg:3},main:{}}};const buildMetricCard=(n,l,o)=>{const u=_.cloneDeep(MetricCard);return u.scope=l,n.style&&(u.config.style=JSON.parse(n.style)),n.layout&&(u.config.layout=createLayoutFormat(n.layout)),n.label&&(u.config.main.label=n.label),n.url&&(u.config.main.url=n.url),n.description&&(u.config.main.description=n.description),n.cardValue&&(u.config.main.cardValue=n.cardValue),n.growthRate&&(u.config.main.growthRate=n.growthRate),n.color&&(u.config.main.color=n.color),u};var DateInputField={type:"Control",scope:"#/properties/date",options:{widget:"DateInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"",type:"date"}}};const DateTime={type:"Control",scope:"#/properties/date",options:{widget:"DateTimeInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"DateTime",type:"date"}}},buildDate=(n,l)=>{const o=_.cloneDeep(DateInputField);return o.config.main.label=n.label,o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.variant&&(o.config.main.variant=n.variant),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),n.style&&(o.config.style=JSON.parse(n.style)),o},buildDateTime=(n,l)=>{const o=_.cloneDeep(DateTime);return o.config.main.label=n.label,o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.variant&&(o.config.main.variant=n.variant),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),n.style&&(o.config.style=JSON.parse(n.style)),o};var RankCard={type:"Control",scope:"#/properties/path",options:{widget:"RankCard"},config:{layout:{xs:12,sm:6,md:6,lg:6},main:{}}};const buildRankCard=(n,l)=>{const o=_.cloneDeep(RankCard);return o.scope=l,n.rank&&(o.config.main.rank=`${n.rank}`),n.height&&(o.config.main.height=`${n.height}px`),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o};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=(n,l)=>{const o=_.cloneDeep(RollAndDice);return n.name&&(o.scope=l),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o};var Timer={type:"Control",scope:"#/properties/timer",options:{widget:"Timer"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{},style:{}}};const buildTimer=(n,l)=>{const o=_.cloneDeep(Timer);return o.scope=l,n.label&&(o.config.main.label=n.label),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o};var MultipleSelect={type:"Control",scope:"#/properties/path",options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"",type:"text",multiple:!0,variant:"outlined",options:[]},style:{}}};const buildMultiSelect=(n,l)=>{const o=_.cloneDeep(MultipleSelect);return o.scope=l,n.label&&(o.config.main.label=n.label),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.value&&(o.config.main.options=n.value),n.variant&&(o.config.main.variant=n.variant),n.lazyLoading&&(o.config.main.lazyLoading=n.lazyLoading==="YES"),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),n.style&&(o.config.style=JSON.parse(n.style)),o},buildBasicUiSchema=n=>({type:"HorizontalLayout",pageName:n.name,name:n.name,accessorKey:n.name,heading:n.label||n.name,elements:[]}),TextArea={type:"Control",scope:"#/properties/textarea",options:{widget:"TextArea"},config:{layout:12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px",background:"white",color:"black"}},main:{heading:"TextArea",minRows:4,hideButton:!0}}},buildTextArea=(n,l)=>{const o=_.cloneDeep(TextArea);return o.config.main.heading=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(o.config.style=JSON.parse(n.style)),n.placeholder&&(o.config.main.placeholder=n.placeholder),n.enableCodeEditor&&(o.config.main.enableCodeEditor=n.enableCodeEditor==="YES"),n.codeEditorLanguage&&(o.config.main.codeEditorLanguage=n.codeEditorLanguage),o.scope=l,o};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(n,l)=>{const o=_.cloneDeep(cardSlider);return n.name&&(o.scope=l),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o},Checkbox={type:"Control",scope:"#/properties/username1",options:{widget:"CheckBox"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Welcome to Hyperform"}}},buildCheckbox=(n,l)=>{const o=_.cloneDeep(Checkbox);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),o},buildLineGraph=(n,l)=>{const o=_.cloneDeep(LineGraph);return n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o.config.main.header=n.heading,n.height&&(o.config.style.containerStyle.height=n.height),n.leftMargin&&(o.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(o.config.main.bottomLabel=n.bottomLabel),n.yAxisValue&&(o.config.main.yAxisValue=n.yAxisValue),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.leftLabel&&(o.config.main.leftLabel=n.leftLabel),n.disableLeftLabel&&(o.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),n.legendHide&&(o.config.main.legendAvailable=n.legendHide!=="YES"),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.bottomAxisAngle&&(o.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),o.scope=l,o},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Enabled",options:["YES","NO"]}}},buildRadio=(n,l)=>{const o=_.cloneDeep(RadioUiSchema);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.sectionLabels&&(o.config.main.options=n.sectionLabels.map(u=>u.label||u.Options)),n.style&&(o.config.style=JSON.parse(n.style)),n.errorMessage&&(o.config.main.errorMessage=n.errorMessage),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{},style:{}}};const buildEmptyBox=(n,l)=>{const o=_.cloneDeep(emptyBox);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:12,elements:[],config:{main:{}}},buildArray=(n,l)=>{const o=_.cloneDeep(ArrayUiSchema);return n.allExpanded&&(o.config.main.allExpanded=n.allExpanded==="YES"),n.disableAddButton&&(o.config.main.disableAddButton=n.disableAddButton==="YES"),n.disableExpandAllButton&&(o.config.main.disableExpandAllButton=n.disableExpandAllButton==="YES"),n.disableRowActions&&(o.config.main.disableRowActions=n.disableRowActions==="YES"),n.style&&(o.config.style=JSON.parse(n.style)),o.config.main.rowSpacing=Number(n.rowSpacing),o.config.main.columnSpacing=Number(n.columnSpacing),o.config.main.spacing=Number(n.spacing),o.config.main.childElementLabel=n.childElementLabel,o.config.main.showKeyAsLabel=n.showKeyAsLabel,o.config.main.label=n.label,o.scope=l,o},TextField={type:"Control",scope:"#/properties/AAdhar",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Adhaar Card",formatStrArray:["9","9","9","9"," ","9","9","9","9"," ","X9","X9","X9","X9"],placeholder:"XXXX XXXX XXXX"}}},buildAdhaarField=(n,l)=>{const o=_.cloneDeep(TextField);return o.config.main.label=n.label,n.style&&(o.config.style=JSON.parse(n.style)),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o.config.main.errorMessage=`${n.name} is empty or invalid`,o.scope=l,o},PanField={type:"Control",scope:"#/properties/pan",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Pan Card",placeholder:"AAAAA0000A",formatStrArray:["A","A","A","A","A","9","9","9","9","A"]}}},buildPanField=(n,l)=>{const o=_.cloneDeep(PanField);return o.config.main.label=n.label,n.style&&(o.config.style=JSON.parse(n.style)),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o.config.main.errorMessage=`${n.name} is empty or invalid`,o.scope=l,o},FileInput={type:"Control",scope:"#/properties/docAggrementCopy",options:{widget:"FileInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{required:!1,onUpload:"onFileUpload",onDownload:"onFileDownload",label:"Aggrement Copy",onClick:"onClick"},style:{backgroundColor:"none"}}},buildFileInput=(n,l)=>{const o=_.cloneDeep(FileInput);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),o.config.main.variant=n.variant,o.config.main.disableUpload=n.disableUpload==="YES",o.config.main.disableDownload=n.disableDownload==="YES",o.config.main.disableDelete=n.disableDelete==="YES",o.config.main.useLabel=n.useLabel==="YES",o.config.main.description=n.description,o.config.main.toolTip=n.toolTip,o.config.main.chooseButtonLabel=n.chooseButtonLabel,o.config.main.noFileAvailableMessage=n.noFileAvailableMessage,n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o.config.main.externalUpload=n.externalUpload==="YES",o},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=(n,l)=>{const o=_.cloneDeep(Stepper);return o.scope=l,o.config.main.resetButton=n.resetButton==="YES",n.defaultButtonAvailable&&(o.config.main.defaultButtonAvailable=n.defaultButtonAvailable==="YES"),o.config.main.resetText=n.resetText||"ResetData",o.config.main.completeText=n.completeText||"Complete Text",o.config.main.orientation=n.orientation||"horizontal",n.sectionLabels&&(o.config.main.steps=n.sectionLabels.map((u,g)=>({label:u.label,id:g}))),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),o},PopUP={type:"Control",scope:"#/properties/text",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{label:"PopUp",onClose:"onClose",fullScreen:!1,fullWidth:!1,maxWidth:!1,alignItems:!1,spacing:2},style:{}}},buildPopUp=(n,l)=>{const o=_.cloneDeep(PopUP);return o.scope=l,o.config.main.title=n.label,o.config.main.fullScreen=n.fullScreen==="YES",o.config.main.fullWidth=n.fullWidth==="YES",o.config.main.maxWidth=n.maxWidth||!1,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(o.config.style=JSON.parse(n.style)),o},dataGrid={type:"Control",scope:"#/properties/dataGrid",layout:12,options:{widget:"DataGrid"},elements:[],config:{main:{elevation:0,useWrapper:!1},style:{}}},buildDataGrid=(n,l)=>{const o=_.cloneDeep(dataGrid);return o.scope=l,n.elevation&&(o.config.main.elevation=+n.elevation),o.config.main.divider=n.divider!=="NO",n.height&&(o.config.main.height=`${n.height}px`),n.justifyContent&&(o.config.main.justifyContent=n.justifyContent),n.label&&(o.config.main.label=n.label),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.cardLayout&&(o.config.cardLayout=createLayoutFormat(n.cardLayout,n.type)),n.style&&(o.config.style=JSON.parse(n.style)),o},InputSlider={type:"Control",scope:"#/properties/inputSlider",options:{widget:"InputSlider"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{limitToMax:!1,max:1e4,step:1e3,min:0,label:"Slider"}}},buildInputSlider=(n,l)=>{const o=_.cloneDeep(InputSlider);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.limitToMax&&(o.config.main.limitToMax=n.limitToMax==="YES"),n.max&&(o.config.main.max=n.max),n.step&&(o.config.main.step=n.step),n.min&&(o.config.main.min=n.min),n.style&&(o.config.main.defaultStyle=JSON.parse(n.style)),o},TreeMap={type:"Control",scope:"#/properties/TreeMap2",config:{layout:12,main:{layout:"cartsian",orientation:"vertical",header:"Territory Hierarchy",linkType:"step",graphHeight:"500px"},style:{BoxStyle:{borderRadius:"5px"}}},options:{widget:"TreeMap"},elements:[]},buildTreeMap=(n,l)=>{const o=_.cloneDeep(TreeMap);return o.scope=l,n.label&&(o.config.main.header=n.label),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.orientation&&(o.config.main.orientation=n.orientation),n.linkType&&(o.config.main.linkType=n.linkType),n.graphHeight&&(o.config.main.graphHeight=n.graphHeight),n.graphWidth&&(o.config.main.graphWidth=n.graphWidth),n.graphZoomHeight&&(o.config.main.graphZoomHeight=n.graphZoomHeight),n.graphZoomWidth&&(o.config.main.graphZoomWidth=n.graphZoomWidth),n.style&&(o.config.style=JSON.parse(n.style)),o};var Thought={type:"Control",scope:"#/properties/path",options:{widget:"Thought"},config:{layout:{xs:11.5,sm:11.5,md:8,lg:8},main:{}}};const buildThoughtOfTheDay=(n,l)=>{const o=_.cloneDeep(Thought);return o.scope=l,n.thought&&(o.config.main.thought=`${n.thought}`),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.label&&(o.config.main.label=n.label),n.style&&(o.config.style=JSON.parse(n.style)),o};var horizontalLayout={type:"HorizontalLayout",config:{layout:12,main:{rowSpacing:3,divider:!1},defaultStyle:!0},elements:[]};const buildHorizontalLayout=(n,l)=>{const o=_.cloneDeep(horizontalLayout);return o.scope=l,n.style&&(o.config.style=JSON.parse(n.style)),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o},imageUiSchema={type:"Control",scope:"#/properties/Logo",options:{widget:"Image"},config:{layout:3,main:{url:"",onClick:"onClick"},style:{}}},buildImage=(n,l)=>{const o=_.cloneDeep(imageUiSchema);return o.scope=l,o.config.main.url=n.imageUrl,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),n.height&&(o.config.style.imageStyle={...o.config.style.imageStyle,height:n.height}),o.config.main.toolTip=n.toolTip,o.config.main.toolTipPosition=n.toolTipPosition,o},buildAreaGraph=(n,l)=>{const o=_.cloneDeep(AreaBarGraph);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o.config.main.type=n.graphType,o.scope=l,o.config.main.header=n.heading,o.config.main.subHeader=n.subHeader,n.legendHide&&(o.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(o.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.height&&(o.config.style.containerStyle.height=n.height),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),n.xAxisFormatType&&(o.config.main.xAxisFormatType=n.xAxisFormatType),n.yAxisTickCount&&(o.config.main.yAxisTickCount=n.yAxisTickCount),n.xAxisTickCount&&(o.config.main.xAxisTickCount=n.xAxisTickCount),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.xAxisType&&(o.config.main.xAxisType=n.xAxisType),n.bottomLabel&&(o.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(o.config.main.leftLabel=n.leftLabel),n.disableLeftLabel&&(o.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),n.leftMargin&&(o.config.style.labelStyle.margin={left:n.leftMargin}),o},buildStackBarLineGraph=(n,l)=>{const o=_.cloneDeep(StackBarLineG);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o.config.main.type=n.graphType,o.scope=l,o.config.main.header=n.heading,o.config.main.subHeader=n.subHeader,n.legendHide&&(o.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(o.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.height&&(o.config.style.containerStyle.height=n.height),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),n.yAxisTickCount&&(o.config.main.yAxisTickCount=n.yAxisTickCount),n.xAxisTickCount&&(o.config.main.xAxisTickCount=n.xAxisTickCount),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.xAxisType&&(o.config.main.xAxisType=n.xAxisType),n.bottomLabel&&(o.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(o.config.main.leftLabel=n.leftLabel),n.rightLabel&&(o.config.main.rightLabel=n.rightLabel),n.disableLeftLabel&&(o.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),n.growthRateKey&&(o.config.main.growthRateKey=n.growthRateKey),n.tooltipUnit&&(o.config.main.tooltipUnit=n.tooltipUnit),n.leftMargin&&(o.config.style.labelStyle.margin={left:n.leftMargin}),o},cameraUiSchema={type:"Control",scope:"#/properties/camera",options:{widget:"Camera"},config:{main:{label:"Upload Photo",multiUplaod:!1,onUpload:"onFileUpload"}}},buildCamera=(n,l)=>{const o=_.cloneDeep(cameraUiSchema);return o.scope=l,n.iconName&&(o.config.main.startIcon=n.iconName),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.tooltipMessage&&(o.config.main.tooltipMessage=n.tooltipMessage),o.config.main.multiUplaod=n.multiUplaod==="YES",n.style&&(o.config.style=JSON.parse(n.style)),n.size&&(o.config.main.size=n.size),n.variant&&(o.config.main.variant=n.variant),n.color&&(o.config.main.color=n.color),n.label&&(o.config.main.label=n.label),o};var ButtonGroup={type:"Control",scope:"#/properties/buttonGroup",options:{widget:"ButtonGroup"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{variant:"contained",styleDefault:!1,size:"small"},style:{}}};const buildButtonGroup=(n,l)=>{const o=_.cloneDeep(ButtonGroup);return n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o.scope=l,n.multiSelect&&(o.config.main.multiSelect=n.multiSelect==="YES"),n.style&&(o.config.style=JSON.parse(n.style)),n.size&&(o.config.main.size=n.size),n.color&&(o.config.main.color=n.color),o},PopOver={type:"Control",scope:"#/properties/text",options:{widget:"Popover"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{label:"PopOver"},style:{}}},buildPopOver=(n,l)=>{const o=_.cloneDeep(PopOver);return o.scope=l,o.config.main.positionVertical=n.positionVertical,o.config.main.positionHorizontal=n.positionHorizontal,o.config.main.contentVertical=n.contentVertical,o.config.main.contentHorizontal=n.contentHorizontal,o.config.main.width=n.width,o.config.main.gap=n.gap,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(o.config.style=JSON.parse(n.style)),o},OTPSchema={type:"Control",scope:"#/properties/OTPInput",options:{widget:"OTPInput"},config:{layout:{xs:12,sm:12,md:3,lg:3},main:{seperator:"",length:4,type:"number",masking:!0}}},buildOTP_Input=(n,l)=>{const o=_.cloneDeep(OTPSchema);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),n.errorMessage&&(o.config.main.errorMessage=n.errorMessage),n.toolTip&&(o.config.main.toolTip=n.toolTip),o.config.main.masking=n.masking==="YES",o.config.main.type=n.OTP_Format,o.config.main.seperator=n.seperator,o.config.main.length=+n.length,o};var pdfViewer={type:"Control",scope:"#/properties/pdfviewer",options:{widget:"PdfViewer"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"PDF"}}};const buildPdfViewer=(n,l)=>{const o=_.cloneDeep(pdfViewer);return o.scope=l,o.config.main.scale=n.scale,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),o};exports.schema={type:"object",properties:{},required:[]};function buildSchemaFromConfig(n,l){var u,g,c,h,x,v,E,F,B,z,j,X,V;if(n.elements)if(n.type==="Array"){(u=l.properties)!=null||(l.properties={}),(h=(g=l.properties)[c=n.name])!=null||(g[c]={type:"array",items:{type:"object",properties:{},required:[]}});const M=l.properties[n.name].items;(x=n.elements)==null||x.forEach(ae=>buildSchemaFromConfig(ae,M));return}else{(v=n.elements)==null||v.forEach(M=>buildSchemaFromConfig(M,l));return}(E=l.properties)!=null||(l.properties={}),(z=(F=l.properties)[B=n.name])!=null||(F[B]={});const o=l.properties[n.name];(j=n.validation)==null||j.forEach(M=>{var ae;M.validationType==="required"?((ae=l.required)!=null||(l.required=[]),l.required.push(n.name)):M.validationType==="readOnly"?(o.type="string",o.disabled=!0):(o.type="string",o[M.validationType]=isNaN(M.validationValue)?M.validationValue:Number(M.validationValue))}),n.type==="Select"&&((X=n.value)==null?void 0:X.length)&&(o.oneOf=n.value.map(M=>({const:M.value,title:M.label}))),n.type==="MultipleSelect"&&((V=n.value)==null?void 0:V.length)&&(o.type="array",o.items={oneOf:n.value.map(M=>({const:M.value,title:M.label}))})}const buildSchema=n=>(buildSchemaFromConfig(n,exports.schema),exports.schema),buildUiSchema=(n,l)=>{let o={};const u=`#/properties/${n.name}`;switch(n.type){case"OTP_Input":o=buildOTP_Input(n,u);break;case"TreeMap":o=buildTreeMap(n,u);break;case"DateTime":o=buildDateTime(n,u);break;case"InputSlider":o=buildInputSlider(n,u);break;case"DataGrid":o=buildDataGrid(n,u);break;case"Stepper":o=buildStepper(n,u);break;case"PopUp":o=buildPopUp(n,u);break;case"PopOver":o=buildPopOver(n,u);break;case"FileInput":o=buildFileInput(n,u);break;case"AadharcardText":o=buildAdhaarField(n,u);break;case"PanCardText":o=buildPanField(n,u);break;case"TabSection":o=buildTabSection(n,u);break;case"RunnerBoyProgressBar":o=RunnerBoyProgressbar(n,u);break;case"WrapperSection":o=buildWrapperSection(n,u);break;case"HorizontalLayout":o=buildHorizontalLayout(n,u);break;case"Text":o=buildTextField(n,u);break;case"TextArea":o=buildTextArea(n,u);break;case"Date":o=buildDate(n,u);break;case"Select":o=buildSelect(n,u);break;case"Radio":o=buildRadio(n,u);break;case"Button":o=buildButton(n,u);break;case"ButtonGroup":o=buildButtonGroup(n,u);break;case"Table":o=buildTable(n,u);break;case"Array":o=buildArray(n,u);break;case"Box":o=buildLabel(n,u);break;case"CheckBox":o=buildCheckbox(n,u);break;case"UploadFile":o=buildUploadFile(n,u);break;case"DownloadFile":o=buildDownloadFile(n,u);break;case"EmptyBox":o=buildEmptyBox(n,u);break;case"card":o=buildCard(n,u,l);break;case"MetricCard":o=buildMetricCard(n,u);break;case"Graph":switch(n.graphType){case"BarGraph":case"StackBarGraph":o=buildStackbarGraph(n,u);break;case"LineGraph":o=buildLineGraph(n,u);break;case"PieGraph":o=buildPieGraph(n,u);break;case"HorizontalBarGraph":case"HorizontalStackBarGraph":o=buildHorizontalBarGraph(n,u);break;case"AreaGraph":o=buildAreaGraph(n,u);break;case"StackBarLineGraph":o=buildStackBarLineGraph(n,u);break;default:o=buildStackbarGraph(n,u);break}break;case"ProgressBar":o=buildProgressBar(n,u);break;case"SpeedoMeter":o=buildSpeedoMeter(n,u);break;case"ProgressBarCard":o=buildProgressBarCard(n,u);break;case"RankCard":o=buildRankCard(n,u);break;case"Rank":o=buildRollAndDice(n,u);break;case"Slider":o=buildSlider(n,u);break;case"Timer":o=buildTimer(n,u);break;case"ColumnGroup":o={accessorKey:n.name,header:n.label||n.name,elements:[]};break;case"MultipleSelect":o=buildMultiSelect(n,u);break;case"LeaderBoard":o=buildLeaderBoard(n);break;case"Thought":o=buildThoughtOfTheDay(n,u);break;case"Image":o=buildImage(n,u);break;case"Camera":o=buildCamera(n,u);break;case"PdfViewer":o=buildPdfViewer(n,u);break;default:exports.schema={type:"object",properties:{},required:[]},o=buildBasicUiSchema(n)}if(n!=null&&n.elements)if((n==null?void 0:n.type)==="LeaderBoard"){const g=[];n.elements.map(c=>{const h={accessorKey:c.name,type:c.type==="ColumnGroup"?"ColumnGroup":c.columnFormat,header:c.label||c.name,columnKey:c.columnKey};g.push({...h})}),o.elements=g}else if(n.type=="ColumnGroup"){const g={};n.sizeHolder&&n.sizeHolder.map((c,h)=>{g[c.keyName]=c.value}),o.elements=n.elements.map((c,h)=>{const x={accessorKey:c.name,type:c.type==="ColumnGroup"?"ColumnGroup":c.columnFormat,header:c.label||c.name,size:g[c.name]||180,enableColumnFilter:c.enableFilter!=="No",columnFilterModeOptions:c.filteringOptions,enableSorting:c.enableSorting!=="No",columnKey:c.columnKey,dateFormat:c.dateFormat};return c.type?{widget:c.type!="ColumnGroup"?buildUiSchema(c,l):void 0,...x,...c.type==="ColumnGroup"?buildUiSchema(c,l):{}}:{...x}})}else if(n.type=="Table"){const g={};n.sizeHolder&&n.sizeHolder.map((v,E)=>{g[v.keyName]=v.value});const c=[],h=[],x=[];n.elements.filter((v,E)=>{const F={accessorKey:v.name,type:v.type==="ColumnGroup"?"ColumnGroup":v.columnFormat,header:v.label||v.name,size:g[v.name]||180,enableColumnFilter:v.enableFilter!=="No",columnFilterModeOptions:v.filteringOptions,enableSorting:v.enableSorting!=="No",columnKey:v.columnKey,dateFormat:v.dateFormat};if(v.type){if(v.elementType=="action"){const z=buildUiSchema(v,l);return h.push(z),!1}if(v.elementType=="tableHeader"){const z=buildUiSchema(v,l);return c.push({widget:z}),!1}const B={widget:v.type!="ColumnGroup"?buildUiSchema(v,l):void 0,...F,...v.type==="ColumnGroup"?buildUiSchema(v,l):{}};x.push(B)}else x.push({...F})}),o.elements=x,o.config.action=h,o.config.main.headerIcons.elements=c}else o.elements=n.elements.map((g,c)=>buildUiSchema(g,l));return n.tabLabelElements&&(o.tabLabelElements=n.tabLabelElements.map((g,c)=>buildUiSchema(g,l))),o};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,exports.buildUiSchema=buildUiSchema,exports.clearFromSessionStorage=clearFromSessionStorage,exports.downloadFile=downloadFile$1,exports.downloadFileFromUrl=downloadFileFromUrl,exports.pageMaster=pageMaster,exports.pageMasterComponents=Component,exports.pageMasterEvents=event,exports.pageService=service,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
27
|
+
}`;var H=pl(function(){return W(p,A+"return "+I).apply(o,d)});if(H.source=I,_i(H))throw H;return H}function pf(e){return V(e).toLowerCase()}function uf(e){return V(e).toUpperCase()}function cf(e,t,i){if(e=V(e),e&&(i||t===o))return br(e);if(!e||!(t=_e(t)))return e;var r=ze(e),a=ze(t),p=xr(r,a),d=vr(r,a)+1;return gt(r,p,d).join("")}function df(e,t,i){if(e=V(e),e&&(i||t===o))return e.slice(0,Cr(e)+1);if(!e||!(t=_e(t)))return e;var r=ze(e),a=vr(r,ze(t))+1;return gt(r,0,a).join("")}function mf(e,t,i){if(e=V(e),e&&(i||t===o))return e.replace(_o,"");if(!e||!(t=_e(t)))return e;var r=ze(e),a=xr(r,ze(t));return gt(r,a).join("")}function ff(e,t){var i=fn,r=gn;if(ne(t)){var a="separator"in t?t.separator:a;i="length"in t?O(t.length):i,r="omission"in t?_e(t.omission):r}e=V(e);var p=e.length;if(Dt(e)){var d=ze(e);p=d.length}if(i>=p)return e;var m=i-Pt(r);if(m<1)return r;var y=d?gt(d,0,m).join(""):e.slice(0,m);if(a===o)return y+r;if(d&&(m+=y.length-m),Ii(a)){if(e.slice(m).search(a)){var C,w=y;for(a.global||(a=Uo(a.source,V(zi.exec(a))+"g")),a.lastIndex=0;C=a.exec(w);)var I=C.index;y=y.slice(0,I===o?m:I)}}else if(e.indexOf(_e(a),m)!=m){var T=y.lastIndexOf(a);T>-1&&(y=y.slice(0,T))}return y+r}function gf(e){return e=V(e),e&&Il.test(e)?e.replace(Ni,$s):e}var yf=zt(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),Fi=ua("toUpperCase");function sl(e,t,i){return e=V(e),t=i?o:t,t===o?Os(e)?Ks(e):Ls(e):e.match(t)||[]}var pl=z(function(e,t){try{return Ce(e,o,t)}catch(i){return _i(i)?i:new k(i)}}),hf=tt(function(e,t){return Be(t,function(i){i=Ve(i),je(e,i,Ci(e[i],e))}),e});function bf(e){var t=e==null?0:e.length,i=D();return e=t?te(e,function(r){if(typeof r[1]!="function")throw new De(h);return[i(r[0]),r[1]]}):[],z(function(r){for(var a=-1;++a<t;){var p=e[a];if(Ce(p[0],this,r))return Ce(p[1],this,r)}})}function xf(e){return $p(Re(e,B))}function Li(e){return function(){return e}}function vf(e,t){return e==null||e!==e?t:e}var Sf=da(),Cf=da(!0);function ve(e){return e}function Ai(e){return Yr(typeof e=="function"?e:Re(e,B))}function wf(e){return Gr(Re(e,B))}function _f(e,t){return Wr(e,Re(t,B))}var If=z(function(e,t){return function(i){return ln(i,e,t)}}),Tf=z(function(e,t){return function(i){return ln(e,i,t)}});function Bi(e,t,i){var r=pe(t),a=Vn(t,r);i==null&&!(ne(t)&&(a.length||!r.length))&&(i=t,t=e,e=this,a=Vn(t,pe(t)));var p=!(ne(i)&&"chain"in i)||!!i.chain,d=ot(e);return Be(a,function(m){var y=t[m];e[m]=y,d&&(e.prototype[m]=function(){var C=this.__chain__;if(p||C){var w=e(this.__wrapped__),I=w.__actions__=he(this.__actions__);return I.push({func:y,args:arguments,thisArg:e}),w.__chain__=C,w}return y.apply(e,pt([this.value()],arguments))})}),e}function Ef(){return ue._===this&&(ue._=Qs),this}function Di(){}function Ff(e){return e=O(e),z(function(t){return Kr(t,e)})}var Lf=pi(te),Af=pi(mr),Bf=pi(Ro);function ul(e){return yi(e)?Mo(Ve(e)):au(e)}function Df(e){return function(t){return e==null?o:wt(e,t)}}var Pf=fa(),Rf=fa(!0);function Pi(){return[]}function Ri(){return!1}function Mf(){return{}}function kf(){return""}function Nf(){return!0}function Of(e,t){if(e=O(e),e<1||e>lt)return[];var i=Ge,r=de(e,Ge);t=D(t),e-=Ge;for(var a=Oo(r,t);++i<e;)t(i);return a}function Hf(e){return N(e)?te(e,Ve):Ie(e)?[e]:he(Aa(V(e)))}function zf(e){var t=++Xs;return V(e)+t}var Uf=jn(function(e,t){return e+t},0),Yf=ui("ceil"),$f=jn(function(e,t){return e/t},1),Gf=ui("floor");function Wf(e){return e&&e.length?Kn(e,ve,Jo):o}function Kf(e,t){return e&&e.length?Kn(e,D(t,2),Jo):o}function Vf(e){return yr(e,ve)}function qf(e,t){return yr(e,D(t,2))}function Jf(e){return e&&e.length?Kn(e,ve,jo):o}function Xf(e,t){return e&&e.length?Kn(e,D(t,2),jo):o}var Zf=jn(function(e,t){return e*t},1),Qf=ui("round"),jf=jn(function(e,t){return e-t},0);function eg(e){return e&&e.length?No(e,ve):0}function tg(e,t){return e&&e.length?No(e,D(t,2)):0}return s.after=Cd,s.ary=Ua,s.assign=pm,s.assignIn=tl,s.assignInWith=mo,s.assignWith=um,s.at=cm,s.before=Ya,s.bind=Ci,s.bindAll=hf,s.bindKey=$a,s.castArray=Rd,s.chain=Oa,s.chunk=$u,s.compact=Gu,s.concat=Wu,s.cond=bf,s.conforms=xf,s.constant=Li,s.countBy=jc,s.create=dm,s.curry=Ga,s.curryRight=Wa,s.debounce=Ka,s.defaults=mm,s.defaultsDeep=fm,s.defer=wd,s.delay=_d,s.difference=Ku,s.differenceBy=Vu,s.differenceWith=qu,s.drop=Ju,s.dropRight=Xu,s.dropRightWhile=Zu,s.dropWhile=Qu,s.fill=ju,s.filter=td,s.flatMap=id,s.flatMapDeep=rd,s.flatMapDepth=ad,s.flatten=Ra,s.flattenDeep=ec,s.flattenDepth=tc,s.flip=Id,s.flow=Sf,s.flowRight=Cf,s.fromPairs=nc,s.functions=Sm,s.functionsIn=Cm,s.groupBy=ld,s.initial=ic,s.intersection=rc,s.intersectionBy=ac,s.intersectionWith=lc,s.invert=_m,s.invertBy=Im,s.invokeMap=pd,s.iteratee=Ai,s.keyBy=ud,s.keys=pe,s.keysIn=xe,s.map=ao,s.mapKeys=Em,s.mapValues=Fm,s.matches=wf,s.matchesProperty=_f,s.memoize=so,s.merge=Lm,s.mergeWith=nl,s.method=If,s.methodOf=Tf,s.mixin=Bi,s.negate=po,s.nthArg=Ff,s.omit=Am,s.omitBy=Bm,s.once=Td,s.orderBy=cd,s.over=Lf,s.overArgs=Ed,s.overEvery=Af,s.overSome=Bf,s.partial=wi,s.partialRight=Va,s.partition=dd,s.pick=Dm,s.pickBy=ol,s.property=ul,s.propertyOf=Df,s.pull=cc,s.pullAll=ka,s.pullAllBy=dc,s.pullAllWith=mc,s.pullAt=fc,s.range=Pf,s.rangeRight=Rf,s.rearg=Fd,s.reject=gd,s.remove=gc,s.rest=Ld,s.reverse=vi,s.sampleSize=hd,s.set=Rm,s.setWith=Mm,s.shuffle=bd,s.slice=yc,s.sortBy=Sd,s.sortedUniq=wc,s.sortedUniqBy=_c,s.split=rf,s.spread=Ad,s.tail=Ic,s.take=Tc,s.takeRight=Ec,s.takeRightWhile=Fc,s.takeWhile=Lc,s.tap=Gc,s.throttle=Bd,s.thru=ro,s.toArray=Qa,s.toPairs=il,s.toPairsIn=rl,s.toPath=Hf,s.toPlainObject=el,s.transform=km,s.unary=Dd,s.union=Ac,s.unionBy=Bc,s.unionWith=Dc,s.uniq=Pc,s.uniqBy=Rc,s.uniqWith=Mc,s.unset=Nm,s.unzip=Si,s.unzipWith=Na,s.update=Om,s.updateWith=Hm,s.values=$t,s.valuesIn=zm,s.without=kc,s.words=sl,s.wrap=Pd,s.xor=Nc,s.xorBy=Oc,s.xorWith=Hc,s.zip=zc,s.zipObject=Uc,s.zipObjectDeep=Yc,s.zipWith=$c,s.entries=il,s.entriesIn=rl,s.extend=tl,s.extendWith=mo,Bi(s,s),s.add=Uf,s.attempt=pl,s.camelCase=Gm,s.capitalize=al,s.ceil=Yf,s.clamp=Um,s.clone=Md,s.cloneDeep=Nd,s.cloneDeepWith=Od,s.cloneWith=kd,s.conformsTo=Hd,s.deburr=ll,s.defaultTo=vf,s.divide=$f,s.endsWith=Wm,s.eq=Ye,s.escape=Km,s.escapeRegExp=Vm,s.every=ed,s.find=nd,s.findIndex=Da,s.findKey=gm,s.findLast=od,s.findLastIndex=Pa,s.findLastKey=ym,s.floor=Gf,s.forEach=Ha,s.forEachRight=za,s.forIn=hm,s.forInRight=bm,s.forOwn=xm,s.forOwnRight=vm,s.get=Ti,s.gt=zd,s.gte=Ud,s.has=wm,s.hasIn=Ei,s.head=Ma,s.identity=ve,s.includes=sd,s.indexOf=oc,s.inRange=Ym,s.invoke=Tm,s.isArguments=Tt,s.isArray=N,s.isArrayBuffer=Yd,s.isArrayLike=be,s.isArrayLikeObject=ie,s.isBoolean=$d,s.isBuffer=yt,s.isDate=Gd,s.isElement=Wd,s.isEmpty=Kd,s.isEqual=Vd,s.isEqualWith=qd,s.isError=_i,s.isFinite=Jd,s.isFunction=ot,s.isInteger=qa,s.isLength=uo,s.isMap=Ja,s.isMatch=Xd,s.isMatchWith=Zd,s.isNaN=Qd,s.isNative=jd,s.isNil=tm,s.isNull=em,s.isNumber=Xa,s.isObject=ne,s.isObjectLike=oe,s.isPlainObject=mn,s.isRegExp=Ii,s.isSafeInteger=nm,s.isSet=Za,s.isString=co,s.isSymbol=Ie,s.isTypedArray=Yt,s.isUndefined=om,s.isWeakMap=im,s.isWeakSet=rm,s.join=sc,s.kebabCase=qm,s.last=ke,s.lastIndexOf=pc,s.lowerCase=Jm,s.lowerFirst=Xm,s.lt=am,s.lte=lm,s.max=Wf,s.maxBy=Kf,s.mean=Vf,s.meanBy=qf,s.min=Jf,s.minBy=Xf,s.stubArray=Pi,s.stubFalse=Ri,s.stubObject=Mf,s.stubString=kf,s.stubTrue=Nf,s.multiply=Zf,s.nth=uc,s.noConflict=Ef,s.noop=Di,s.now=lo,s.pad=Zm,s.padEnd=Qm,s.padStart=jm,s.parseInt=ef,s.random=$m,s.reduce=md,s.reduceRight=fd,s.repeat=tf,s.replace=nf,s.result=Pm,s.round=Qf,s.runInContext=f,s.sample=yd,s.size=xd,s.snakeCase=of,s.some=vd,s.sortedIndex=hc,s.sortedIndexBy=bc,s.sortedIndexOf=xc,s.sortedLastIndex=vc,s.sortedLastIndexBy=Sc,s.sortedLastIndexOf=Cc,s.startCase=af,s.startsWith=lf,s.subtract=jf,s.sum=eg,s.sumBy=tg,s.template=sf,s.times=Of,s.toFinite=it,s.toInteger=O,s.toLength=ja,s.toLower=pf,s.toNumber=Ne,s.toSafeInteger=sm,s.toString=V,s.toUpper=uf,s.trim=cf,s.trimEnd=df,s.trimStart=mf,s.truncate=ff,s.unescape=gf,s.uniqueId=zf,s.upperCase=yf,s.upperFirst=Fi,s.each=Ha,s.eachRight=za,s.first=Ma,Bi(s,function(){var e={};return We(s,function(t,i){q.call(s.prototype,i)||(e[i]=t)}),e}(),{chain:!1}),s.VERSION=u,Be(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){s[e].placeholder=s}),Be(["drop","take"],function(e,t){$.prototype[e]=function(i){i=i===o?1:se(O(i),0);var r=this.__filtered__&&!t?new $(this):this.clone();return r.__filtered__?r.__takeCount__=de(i,r.__takeCount__):r.__views__.push({size:de(i,Ge),type:e+(r.__dir__<0?"Right":"")}),r},$.prototype[e+"Right"]=function(i){return this.reverse()[e](i).reverse()}}),Be(["filter","map","takeWhile"],function(e,t){var i=t+1,r=i==Gt||i==xn;$.prototype[e]=function(a){var p=this.clone();return p.__iteratees__.push({iteratee:D(a,3),type:i}),p.__filtered__=p.__filtered__||r,p}}),Be(["head","last"],function(e,t){var i="take"+(t?"Right":"");$.prototype[e]=function(){return this[i](1).value()[0]}}),Be(["initial","tail"],function(e,t){var i="drop"+(t?"":"Right");$.prototype[e]=function(){return this.__filtered__?new $(this):this[i](1)}}),$.prototype.compact=function(){return this.filter(ve)},$.prototype.find=function(e){return this.filter(e).head()},$.prototype.findLast=function(e){return this.reverse().find(e)},$.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new $(this):this.map(function(i){return ln(i,e,t)})}),$.prototype.reject=function(e){return this.filter(po(D(e)))},$.prototype.slice=function(e,t){e=O(e);var i=this;return i.__filtered__&&(e>0||t<0)?new $(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==o&&(t=O(t),i=t<0?i.dropRight(-t):i.take(t-e)),i)},$.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$.prototype.toArray=function(){return this.take(Ge)},We($.prototype,function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=s[r?"take"+(t=="last"?"Right":""):t],p=r||/^find/.test(t);!a||(s.prototype[t]=function(){var d=this.__wrapped__,m=r?[1]:arguments,y=d instanceof $,C=m[0],w=y||N(d),I=function(Y){var G=a.apply(s,pt([Y],m));return r&&T?G[0]:G};w&&i&&typeof C=="function"&&C.length!=1&&(y=w=!1);var T=this.__chain__,A=!!this.__actions__.length,P=p&&!T,H=y&&!A;if(!p&&w){d=H?d:new $(this);var R=e.apply(d,m);return R.__actions__.push({func:ro,args:[I],thisArg:o}),new Pe(R,T)}return P&&H?e.apply(this,m):(R=this.thru(I),P?r?R.value()[0]:R.value():R)})}),Be(["pop","push","shift","sort","splice","unshift"],function(e){var t=Bn[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var a=arguments;if(r&&!this.__chain__){var p=this.value();return t.apply(N(p)?p:[],a)}return this[i](function(d){return t.apply(N(d)?d:[],a)})}}),We($.prototype,function(e,t){var i=s[t];if(i){var r=i.name+"";q.call(Nt,r)||(Nt[r]=[]),Nt[r].push({name:t,func:i})}}),Nt[Qn(o,ae).name]=[{name:"wrapper",func:o}],$.prototype.clone=fp,$.prototype.reverse=gp,$.prototype.value=yp,s.prototype.at=Wc,s.prototype.chain=Kc,s.prototype.commit=Vc,s.prototype.next=qc,s.prototype.plant=Xc,s.prototype.reverse=Zc,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Qc,s.prototype.first=s.prototype.head,jt&&(s.prototype[jt]=Jc),s},Rt=Vs();bt?((bt.exports=Rt)._=Rt,Ao._=Rt):ue._=Rt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"Masked Aadhar Card",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"ButtonGroup",const:"ButtonGroup"},{title:"Data Card",const:"card"},{title:"Check Box",const:"CheckBox"},{title:"Camera",const:"Camera"},{title:"Column Group",const:"ColumnGroup"},{title:"Container",const:"WrapperSection"},{title:"Tab Container",const:"HorizontalLayout"},{title:"Data Grid",const:"DataGrid"},{title:"Date",const:"Date"},{title:"Time Stamp",const:"DateTime"},{title:"Download",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"File Handler",const:"FileInput"},{title:"Graph",const:"Graph"},{title:"Image",const:"Image"},{title:"Input Slider",const:"InputSlider"},{title:"Label",const:"Box"},{title:"Leaderboard",const:"LeaderBoard"},{title:"Multi-Select Dropdown",const:"MultipleSelect"},{title:"OTP_Input",const:"OTP_Input"},{title:"Pan Card Masked",const:"PanCardText"},{title:"Pop Up",const:"PopUp"},{title:"Pop Over",const:"PopOver"},{title:"Progress Bar",const:"ProgressBar"},{title:"Progress Bar Card",const:"ProgressBarCard"},{title:"Dropdown",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:"Metric Card",const:"MetricCard"},{title:"Runner Boy",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",const:"UploadFile"},{title:"Tree ",const:"TreeMap"},{title:"Thought of the day",const:"Thought"},{title:"PDF",const:"PdfViewer"}]},elementType:{oneOf:[{title:"Table Action Element",const:"action"},{title:"Table Header Element",const:"tableHeader"},{title:"Table Element",const:"element"}]},columnFormat:{oneOf:[{title:"Date Column",const:"date"},{title:"DateTime Column",const:"dateTime"},{title:"Amount Column",const:"amount"},{title:"Center Column",const:"action"}]},dateFormat:{oneOf:[{title:"YYYY-MM-DDTHH:mm:ss.SSSZ",const:"YYYY-MM-DDTHH:mm:ss.SSSZ"},{title:"YYYY-MM-DDTHH:mm:ssZ",const:"YYYY-MM-DDTHH:mm:ssZ"},{title:"YYYY-MM-DDTHH:mm:ss",const:"YYYY-MM-DDTHH:mm:ss"},{title:"YYYY-MM-DD",const:"YYYY-MM-DD"},{title:"DD-MM-YYYY",const:"DD-MM-YYYY"},{title:"MM/DD/YYYY",const:"MM/DD/YYYY"},{title:"YYYY-MM-DD HH:mm:ss",const:"YYYY-MM-DD HH:mm:ss"},{title:"YYYY-MM-DD HH:mm:ss.SSS",const:"YYYY-MM-DD HH:mm:ss.SSS"},{title:"Milliseconds",const:"x"},{title:"Seconds",const:"X"}]},variant:{oneOf:[{title:"Outlined",const:"outlined"},{title:"Filled",const:"filled"},{title:"Standard",const:"standard"}]},positionVertical:{oneOf:[{title:"Top",const:"top"},{title:"Center",const:"center"},{title:"Bottom",const:"bottom"}]},positionHorizontal:{oneOf:[{title:"Left",const:"left"},{title:"Center",const:"center"},{title:"Right",const:"right"}]},contentVertical:{oneOf:[{title:"Top",const:"top"},{title:"Center",const:"center"},{title:"Bottom",const:"bottom"}]},contentHorizontal:{oneOf:[{title:"Left",const:"left"},{title:"Center",const:"center"},{title:"Right",const:"right"}]},toolTipPosition:{oneOf:[{title:"Top",const:"top"},{title:"Left",const:"left"},{title:"Right",const:"right"},{title:"Bottom",const:"bottom"}]},growthRate:{oneOf:[{title:"Positive",const:"positive"},{title:"Negative",const:"negative"}]},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"}]},maxPageSize:{type:"number",oneOf:[{title:"10",const:10},{title:"20",const:20},{title:"30",const:30},{title:"50",const:50},{title:"100",const:100},{title:"500",const:500}]},initialDensity:{type:"string",oneOf:[{title:"Compact",const:"compact"},{title:"Comfortable",const:"comfortable"},{title:"Spacious",const:"spacious"}]},xAxisFormatType:{type:"string",oneOf:[{title:"Date and Month",const:"Date and Month"},{title:"Month and Year",const:"Month and Year"}]},xAxisType:{type:"string",oneOf:[{title:"Date",const:"date"},{title:"String",const:"string"},{title:"Number",const:"number"}]},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"}}}},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"}}}},enableColumnFilter:{type:"array",items:{type:"object",properties:{keyName:{type:"string"}}}},filteringOptions:{oneOf:[{const:"fuzzy",title:"Fuzzy"},{const:"contains",title:"Contain"},{const:"startsWith",title:"Starts with"},{const:"endsWith",title:"Ends with"},{const:"equals",title:"Equals"},{const:"notEquals",title:"Not Equals"},{const:"between",title:"Between"},{const:"betweenInclusive",title:"Between inclusive"},{const:"greaterThan",title:"Greater than"},{const:"greaterThanOrEqualTo",title:"Greater than or equal to"},{const:"lessThan",title:"Less than"},{const:"lessThanOrEqualTo",title:"Less than or equal to"}]},legendLabels:{type:"array",items:{type:"object",properties:{key:{type:"string"},label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{key:{type:"string"},label:{type:"string"}}}},tabIcons:{type:"array",items:{type:"object",properties:{url:{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"},{const:"readOnly",title:"Read Only"}]},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"},{title:"Stack Horizontal Bar Graph",const:"HorizontalStackBarGraph"},{title:"Area Graph",const:"AreaGraph"},{title:"StackBar And Line Graph",const:"StackBarLineGraph"}]},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:"Download All Icon",const:"DownloadAllIcon"},{title:"Exception Icon",const:"ExceptionIcon"},{title:"Alarm Icon",const:"AlarmIcon"},{title:"Click Icon",const:"ClickIcon"},{title:"Content Copy Icon",const:"ContentCopyIcon"},{title:"File Copy Icon",const:"FileCopyIcon"},{title:"Pause Icon",const:"PauseIcon"},{title:"Play Icon",const:"PlayIcon"},{title:"Close Icon",const:"CloseIcon"},{title:"Replay Icon",const:"ReplayIcon"},{title:"Delete Icon",const:"DeleteIcon"},{title:"Drafts Icon",const:"DraftsIcon"},{title:"Perm Phone Msg Icon",const:"PermPhoneMsgIcon"},{title:"Paste Icon",const:"PasteIcon"},{title:"Calendar",const:"Calendar"},{title:"Prev Icon",const:"PrevIcon"},{title:"Verified Icon",const:"VerifiedIcon"},{title:"Table Add Icon",const:"TableAddIcon"},{title:"Table Download Icon",const:"TableDownloadIcon"},{title:"Audit Trail Icon",const:"AuditTrailIcon"},{title:"View Component",const:"View"},{title:"Table Edit Icon",const:"TableEditIcon"},{title:"Maximize Icon",const:"Maximize"},{title:"Minimize Icon",const:"Minimize"},{title:"Subtract Icon",const:"Subtract"},{title:"Bin Icon",const:"Bin"},{title:"Export Icon",const:"Export"},{title:"Table Paste Icon",const:"TablePaste"},{title:"Clone Icon",const:"CloneIcon"},{title:"Detail Icon",const:"DetailIcon"},{title:"Report View Icon",const:"ReportViewIcon"},{title:"Payout",const:"Payout"}]},color:{type:"string",oneOf:[{title:"Primary",const:"primary"},{title:"Secondary",const:"secondary"},{title:"Error",const:"error"},{title:"Success",const:"success"},{title:"Info",const:"info"}]},pageName:{path:[]},name:{type:"string"},label:{type:"string"},RemoveItemButton:{disabled:!0}},required:["name"]},componentBasicUiSchema=n=>{var o;return{type:"HorizontalLayout",heading:"Page-Component",elements:[{type:"TabLayout",config:{main:{tabLabels:["Core"],id:"component"},style:{TabPanelStyle:{padding:0}},TabsStyle:{marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}}},elements:[{type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Type"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:0,md:0,lg:0}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Component ID",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/proc5",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc6",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc7",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc8",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc9",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc10",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc11",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",config:{layout:12,main:{label:"Layout",childElementLabel:"Layout"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},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:0,sm:0,md:4,lg:4}},options:{widget:"EmptyBox"}}]}]}]},{type:"WrapperLayout",config:{main:{gap:"8px"}},elements:[{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Ok",variant:"contained",type:"text",onClick:"okHandler",size:"medium"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Save & Exit",variant:"contained",type:"text",onClick:"saveHandler",size:"medium"}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:4,sm:7,md:8,lg:9}},options:{widget:"EmptyBox"}}]},{type:"Control",scope:"#/properties/popUpComponentSection",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Component ?"},style:{"&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpComponent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteComponents",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/popUpEventSection",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText1",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Event ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/pageName",options:{widget:"Breadcrumb"},config:{layout:12,main:{onNavigatePopupNo:"onNavigatePopupNo",onNavigatePopupYes:"onNavigatePopupYes"},style:{paddingLeft:n.spacing(3),color:n.palette.grey[600],fontSize:"10px",position:"fixed",bottom:"24px",borderBottom:`1px solid ${n.palette.common.black}29`,borderTop:`1px solid ${n.palette.common.black}29`,backgroundColor:n.palette.background.default}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((o=n==null?void 0:n.palette)==null?void 0:o.text.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:0,width:"fit-content",left:"50%",position:"relative",margin:"revert",flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}}]}]}},CoreSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Type",type:"text"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:0,md:0,lg:0}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Component ID",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Label",required:!0}}},{type:"Control",scope:"#/properties/proc5",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc6",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc7",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc8",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc9",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc10",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc11",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",config:{layout:12,main:{label:"Layout",childElementLabel:"Layout"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},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:0,sm:0,md:4,lg:4}},options:{widget:"EmptyBox"}}]}]},EventSection=n=>({type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"eventAddHandler",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Event",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0},action:[{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"Button"},config:{main:{size:"small",startIcon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler",name:"Edit"}}},{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"Button"},config:{main:{startIcon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent",name:"Delete",size:"small"}}},{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"Button"},config:{main:{startIcon:"FileCopyIcon",onClick:"copyPasteElement",tooltipMessage:"Reject This Record",styleDefault:!1,name:"Copy"}}}]},elements:[{accessorKey:"eventType",header:"Event's Type",type:"string",size:300},{accessorKey:"Handler",header:"Handler",type:"string",size:200}]}]}),emptyBox$1=(n,l)=>l!==void 0?{type:"Control",scope:`#/properties/${n}`,options:{widget:"EmptyBox"},config:{layout:l}}:{type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}},cardLayout={type:"Control",scope:"#/properties/cardLayout",config:{layout:12,main:{label:"Card Layout",childElementLabel:"Card Layout"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},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."}}},emptyBox$1("cardEmpty")]},getArrayControl=(n,l,o)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"Array"},config:{layout:12,main:{label:o,childElementLabel:o},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:`#/properties/${l}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:o||"Labels for Tab"}}},emptyBox$1("ArrayControlEmpty1",{xs:6,sm:6,md:8,lg:8})]}),getArrayControlMultiField=(n,l,o,u,g,c)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"Array"},config:{layout:12,main:{label:c},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:`#/properties/${l}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:u||"Labels for Tab"}}},{type:"Control",scope:`#/properties/${o}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:g||"Labels for Tab"}}},emptyBox$1("ArrayControlEmpty2",{xs:6,sm:6,md:4,lg:4})]}),sizeHolder=getArrayControl("sizeHolder","keyName","Component Name");sizeHolder.elements[1]={type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Size"}}},sizeHolder.elements[2]=emptyBox$1("sizeHolderempty");const getInputField=(n,l)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:l}}}),getRadioInputField=(n,l,o)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:l,options:o}}}),buildWrapper=(n,l)=>({type:"WrapperLayout",config:{main:{label:n||"Details",isAccordion:!0}},elements:l||[]}),getTextArea=(n,l,o,u)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"TextArea"},config:{layout:u||12,main:{label:l,minRows:8,hideButton:o,enableCodeEditor:!0}}}),getSelectField=(n,l,o)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:l,type:"text"}}}),getMultiSelectField=(n,l)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{multiple:!0,label:l,options:[]}}}),BaseSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[]},buildPropertiesSection=function(n){let l=_.cloneDeep(BaseSection);switch(n){case"OTP_Input":l.elements=[getInputField("seperator","Seperator"),getInputField("length","OTP Length"),getRadioInputField("masking","OTP Masking",["YES","NO"]),emptyBox$1("empty1",{xs:12,sm:6,md:4,lg:3})];break;case"Array":l.elements=[getRadioInputField("allExpanded","Initial Expand",["YES","NO"]),getRadioInputField("disableAddButton","Disable Add Button",["YES","NO"]),getRadioInputField("disableExpandAllButton","Disable Expand Buttons",["YES","NO"]),getRadioInputField("disableRowActions","Disable Row Actions",["YES","NO"]),getInputField("childElementLabel","Child Element Label"),getInputField("showKeyAsLabel","ShowKey As Label"),getInputField("rowSpacing","Row Spacing"),getInputField("columnSpacing","Column Spacing"),getInputField("spacing","Spacing"),emptyBox$1("empty1",{xs:12,sm:6,md:4,lg:3})];break;case"TreeMap":l.elements=[getSelectField("orientation","orientation"),getInputField("linkType","linkType"),getInputField("graphHeight","Graph Height"),getInputField("graphWidth","Graph Width"),getInputField("graphZoomHeight","Zoom Height"),emptyBox$1("TreeEmpty",{xs:6,sm:6,md:4,lg:4})];break;case"InputSlider":l.elements=[getInputField("max","Max Limit"),getInputField("step","Step"),getInputField("min","Min Limit"),emptyBox$1("InputSliderEmpty1",{xs:6,sm:0,md:0,lg:0}),getRadioInputField("limitToMax","Applly Max. Limit",["YES","NO"]),emptyBox$1("InputSliderEmpty2",{xs:0,sm:0,md:8,lg:8})];break;case"DataGrid":l.elements=[getRadioInputField("divider","Use Header divider",["YES","NO"]),getInputField("elevation","Card Elevation"),getInputField("height","Grid height"),getInputField("justifyContent","justifyContent"),emptyBox$1("DataGridEmpty1",{xs:6,sm:0,md:4,lg:4}),emptyBox$1("DataGridEmpty1",{xs:0,sm:0,md:4,lg:4}),cardLayout];break;case"Stepper":l.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"),emptyBox$1("Stepper",{xs:6,sm:6,md:4,lg:4}),getArrayControl("sectionLabels","label")];break;case"PopUp":l.elements=[getRadioInputField("fullScreen","FullScreen",["YES","NO"]),getRadioInputField("fullWidth","FullWidth",["YES","NO"]),getInputField("maxWidth","Max. Width"),emptyBox$1("PopUpEmpty",{xs:6,sm:6,md:0,lg:0})];break;case"PopOver":l.elements=[getSelectField("positionVertical","Attach To (Vertical)"),getSelectField("positionHorizontal","Attach To (Horizontal)"),getSelectField("contentVertical","Popover Start (Vertical)"),getSelectField("contentHorizontal","Popover Start (Horizontal)"),getInputField("width","Width"),getInputField("gap","Gap"),emptyBox$1("PopUpEmpty",{xs:6,sm:0,md:8,lg:6})];break;case"Text":l.elements=[getInputField("placeholder","Placeholder"),getRadioInputField("multiline","Multiline",["YES","NO"]),getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("Radio",{xs:6,sm:6,md:8,lg:9}),getArrayControl("InputFormatingAndMasking","formatElement","Format Element"),getInputField("keyName","Event Key Name")];break;case"TextArea":l.elements=[getInputField("placeholder","Placeholder"),getRadioInputField("enableCodeEditor","Enable Code Editor",["YES","NO"]),getInputField("codeEditorLanguage","Enter Code Language"),emptyBox$1("TextEmpty1",{xs:0,sm:0,md:0,lg:3})];break;case"SpeedoMeter":l.elements=[getInputField("segments","Segments Count"),getInputField("heading","Container Heading"),getInputField("heading","Container Heading"),getInputField("speedoCaption","Speedometer Caption"),getInputField("width","Speedometer Width"),emptyBox$1("SpeedoMeterEmpty1",{xs:6,sm:6,md:4,lg:4})];break;case"RankCard":l.elements=[getInputField("rank","Rank"),getInputField("height","Height"),emptyBox$1("RankCardEmpty1",{xs:0,sm:0,md:4,lg:4})];break;case"LeaderBoard":l.elements=[getInputField("firstImage","First Image url"),getInputField("secondImage","Second Image url"),getInputField("thirdImage","Third Image url"),getInputField("nameKey","Key for Name"),getInputField("imageKey","Key for Image"),getInputField("scoreKey","Key for comparing parameter"),getRadioInputField("isScoreAmount","Is Score an Amount Type",["YES","No"]),emptyBox$1("LeaderBoardEmpty1",{xs:6,sm:6,md:0,lg:3})];break;case"CardSlider":l.elements=[getInputField("heading","Heading"),getInputField("iconName","Icon Name")];break;case"ProgressBar":case"ProgressBarCard":l.elements=[getInputField("heading","Heading"),getInputField("bottomLabel_1","First BottomLabel"),getInputField("bottomLabel_2","Second BottomLabel"),getInputField("bottomLabel_3","Third BottomLabel"),getInputField("size","Size"),getRadioInputField("variant","Variant",["circular","horizontal"]),getArrayControl("pieArcColors","color","Color")];break;case"card":l.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("titleIcon","Unicode of Icon for title"),getInputField("description","Description"),emptyBox$1("cardEmpty",{xs:0,sm:0,md:8,lg:8})];break;case"MetricCard":l.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("cardValue","Value"),getInputField("description","Description"),getSelectField("growthRate","Growth Rate"),getInputField("color","Card Color"),emptyBox$1("MetricEmpty1",{xs:6,sm:6,md:4,lg:3})];break;case"Button":l.elements=[getSelectField("buttonType","Button Type"),getSelectField("iconName","Icon Name"),getSelectField("color","Color"),getInputField("tooltipMessage","Tooltip Message"),getSelectField("defaultStyle","Default Style"),emptyBox$1("ButtonEmpty1",{xs:6,sm:6,md:4,lg:4})];break;case"ButtonGroup":l.elements=[getRadioInputField("multiSelect","Enable multiSelect",["YES","No"]),getInputField("size","Size"),getSelectField("color","Color"),emptyBox$1("ButtonEmpty1",{xs:6,sm:6,md:8,lg:9})];break;case"Box":l.elements=[getSelectField("iconName","Icon Name"),emptyBox$1("BoxEmpty1",{xs:6,sm:6,md:4,lg:8})];break;case"Graph":l.elements=[getInputField("height","Height"),getInputField("heading","Heading"),getInputField("subHeader","Sub Header"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getInputField("rightLabel","Right Label"),getRadioInputField("disableLeftLabel","Disable Left Label",["YES","No"]),getInputField("bottomLabel","Bottom Label"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:0,lg:0}),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getRadioInputField("legendDirection","Legend Direction",["Row","Column"]),getInputField("yAxisValue","Y-Axis Key"),getInputField("xAxisValue","X-Axis Key"),getSelectField("xAxisType","X-AxisType"),getRadioInputField("bottomAxisAngle","Bottom Axis Angled",["YES","No"]),getInputField("leftMargin","Left Margin"),getInputField("yAxisTickCount","Y Axis TickCount"),getInputField("xAxisTickCount","X Axis TickCount"),getSelectField("xAxisFormatType","X Axis Format Type"),getInputField("growthRateKey","Growth Rate Key"),getInputField("tooltipUnit","Tooltip Unit"),getArrayControlMultiField("legendLabels","key","value","Key","Label","Configure Bar Labels"),getArrayControlMultiField("pieArcColors","key","value","Key","Color","Configure Bar Colors")];break;case"WrapperSection":l.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("isAccordion","Accordion",["YES","No"]),getRadioInputField("defaultStyle","Default Style",["YES","No"]),getRadioInputField("defaultClosed","Default Closed",["YES","No"]),getInputField("rowSpacing","Row Spacing"),getInputField("columnSpacing","Column Spacing"),getInputField("spacing","Spacing"),getInputField("iconUrl","Icon Url"),emptyBox$1("WrapperSectionEmpty1",{xs:0,sm:0,md:4,lg:6}),emptyBox$1("WrapperSectionEmpty2")];break;case"TabSection":l.elements=[getRadioInputField("verticalOrientation","Vertical Orientation",["YES","NO"]),getRadioInputField("lazyLoad","Lazy Load",["YES","NO"]),emptyBox$1("TabEmpty"),getArrayControlMultiField("sectionLabels","label","icon","Label","Icon")];break;case"Table":l.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("SelectionAvailable","Row Selection",["YES","NO"]),getRadioInputField("ColumnResizingAvailable","ColumnResizing ",["YES","NO"]),getRadioInputField("DragAvailable","Row Dragging",["YES","NO"]),getRadioInputField("downloadAllData","Download All Data",["YES","NO"]),getRadioInputField("disableGlobalSearch","Disable Global Search",["YES","NO"]),getRadioInputField("disableColumnFilter","Disable Column Filter",["YES","NO"]),getRadioInputField("disableSorting","Disable Sorting",["YES","NO"]),getRadioInputField("disableEditColumn","Disable Edit Column",["YES","NO"]),getRadioInputField("disableFullScreenToggle","Disable Full Screen",["YES","NO"]),getRadioInputField("disableDensityToggle","Disable Density Toggle",["YES","NO"]),getRadioInputField("disableDownloadFile","Disable Download File",["YES","NO"]),getRadioInputField("disablePagination","Disable Pagination",["YES","NO"]),getInputField("selectKey","Selection Key"),getMultiSelectField("filteringOptions","Filtering Options"),getSelectField("maxPageSize","Max Page Size"),getSelectField("initialDensity","Initial Toggle Density"),buildWrapper("Tree Table Properties",[getRadioInputField("enableRowMovement","Row Rearrangement",["YES","NO"]),getRadioInputField("enableExpanding","Row Expanding",["YES","NO"]),getRadioInputField("lazyLoadTree","Lazy Load Tree",["YES","NO"]),getRadioInputField("paginateExpandedRows","Multi Page Expansion",["YES","NO"]),getRadioInputField("filterFromLeafRows","Filter from tree rows",["YES","NO"]),getInputField("defaultColumnSize","Default Column Size"),getInputField("subRowsExpansionPageSize","Page Size for Subrows Expansion"),emptyBox$1("LazyLoadingTableEmpty3")]),getArrayControl("Table_Download_Keys_Name","KeyName","Table Key Name"),sizeHolder,getArrayControl("enableColumnFilter","keyName","Component Name")];break;case"Radio":l.elements=[getInputField("errorMessage","Error Message"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("RadioEmpty1",{xs:6,sm:6,md:4,lg:3}),getArrayControl("sectionLabels","label","Options Of Radio")];break;case"Select":l.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"]),getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("SelectEmpty",{xs:6,sm:6,md:8,lg:9})];break;case"MultipleSelect":l.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position")];break;case"PdfViewer":l.elements=[getInputField("scale","Zoom"),emptyBox$1("PdfViewer",{xs:6,sm:6,md:8,lg:9})];break;case"Date":l.elements=[getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("imageEmpty",{xs:0,sm:0,md:4,lg:6})];break;case"DateTime":l.elements=[getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("imageEmpty",{xs:0,sm:0,md:4,lg:6})];break;case"Thought":l.elements=[getTextArea("thought","Today's thought",!1)];break;case"Image":l.elements=[getInputField("imageUrl","Image URL"),getInputField("height","Image Height"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("imageEmpty",{xs:0,sm:0,md:4,lg:6})];break;case"FileInput":l.elements=[getRadioInputField("variant","Variant",["Outlined","Standard"]),getRadioInputField("disableUpload","Disable Upload",["YES","NO"]),getRadioInputField("disableDelete","Disable Delete",["YES","NO"]),getRadioInputField("disableDownload","Disable Download",["YES","NO"]),getInputField("description","Enter description"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),getInputField("chooseButtonLabel","ChooseButton Label"),getInputField("noFileAvailableMessage","No Found Message"),getRadioInputField("useLabel","Use Button",["YES","NO"]),getRadioInputField("externalUpload","External Upload",["YES","NO"]),emptyBox$1("imageEmpty",{xs:0,sm:0,md:4,lg:6})];break;case"Camera":l.elements=[getSelectField("iconName","Icon Name"),getRadioInputField("multiUplaod","Multiple Uplaod",["YES","NO"]),getSelectField("color","Color"),getInputField("tooltipMessage","Tooltip Message"),getSelectField("variant","Variant"),emptyBox$1("ButtonEmpty1",{xs:6,sm:6,md:4,lg:4})]}return l},StyleSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/style",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:12,lg:12},style:{"& .MuiFormLabel-root:not(.MuiInputLabel-shrink)":{}},main:{heading:"JSON Style",minRows:8,hideButton:!0}}}]},TableSection=(n,l="elements")=>({type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/${l}`,options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:`#/properties/${l}_New_Record`,options:{widget:"IconButton"},config:{main:{onClick:"widgetAddClickHandler",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:l==="elements"?"#/properties/Paste_Component":"#/properties/Paste_TabsComponent",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0},action:[{type:"Control",scope:"#/properties/RejectButton",options:{widget:"Button"},config:{main:{startIcon:"EditIcon",size:"small",onClick:"editComponents",tooltipMessage:"Reject This Record",name:"Edit"}}},{type:"Control",scope:"#/properties/RejectButton",options:{widget:"Button"},config:{main:{startIcon:"Bin",onClick:"deletePopUpComponent",tooltipMessage:"Reject This Record",name:"Delete",size:"small"}}},{type:"Control",scope:l==="elements"?"#/properties/Copy_Component":"#/properties/Copy_TabsComponent",options:{widget:"Button"},config:{main:{startIcon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!1,name:"Copy"}}}]},elements:[{accessorKey:"name",header:"Name",type:"string",size:300},{accessorKey:"type",header:"Type",type:"string",size:200}]}]}),ValueTab={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/value",config:{layout:12,main:{label:"Value",childElementLabel:"Value"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Label"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]}]},ValidationSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/validation",config:{layout:12,main:{label:"Validation",childElementLabel:"Validation"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/validationType",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Validation Type"}}},{type:"Control",scope:"#/properties/validationValue",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Validation Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]}]};var buildConfig=n=>{const l=_.cloneDeep(n);let o={};return l.pageName&&delete l.pageName,l.eventsSelected&&delete l.eventsSelected,(l.type==="Table"||l.type==="WrapperSection"||l.type==="TabSection")&&(o.elements=l.elements||[],l.elements&&delete l.elements),o.events=l.events||[],l.events&&delete l.events,l.tabLabelElements&&(o.tabLabelElements=l.tabLabelElements||[],delete l.tabLabelElements),o={...l,...o},o};const createLayoutFormat=(n,l)=>{if(_.isEmpty(n))return["WrapperSection","DataGrid","LeaderBoard","PopUp","TextArea","TreeMap","Thought","HorizontalLayout","Table"].includes(l)?{xs:12,sm:12,md:12,lg:12}:l==="Graph"?{xs:12,sm:12,md:12,lg:6}:l==="Button"?{xs:4,sm:2.5,md:2,lg:1.5}:{xs:6,sm:6,md:4,lg:3};let o={};return n.map(u=>{o[u.key||"xs"]=u.value===null||u.value===void 0||u.value===""?5.5:+u.value}),o},flatObjectValueInArray=(n=[])=>{if(n.length<1)return;const l=Object.keys(n[0])[0];return n.map(u=>u[l])},createKeyValueMap=(n=[])=>n.reduce((l,o)=>(o.key&&(l[o.key]=o.value),l),{}),clearFromSessionStorage=()=>{sessionStorage.removeItem("pageFormdata")},validateAndShowErrors=n=>_.isEmpty(n.ctx.core.errors)?!1:(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Error on Page"}),!0),getNavigationHistory=(n,l)=>{if(l){let o=n.name;const u=l.split("."),g=[];return u.map((c,h)=>{if(h===0){g.push(c);return}g.push(`${g[h-1]}.${c}`)}),g.map(c=>{const h=_.get(n,c);h?o=o+` > ${(h==null?void 0:h.name)||(h==null?void 0:h.eventType)}`:o=o+" > NewComponent"}),{pageName:o}}},saveFormdataInSessionStorage=(n,l)=>{let o;if(l){const u=getFormdataFromSessionStorage();o=_.set(u,l,buildConfig(n))}else o=buildConfig(n);return sessionStorage.setItem("pageFormdata",JSON.stringify(o)),o},getFormdataFromSessionStorage=n=>{const l=sessionStorage.getItem("pageFormdata")?JSON.parse(sessionStorage.getItem("pageFormdata")):void 0;let o;return n&&(o=_.get(l,n),o={...o,...getNavigationHistory(l,n)}),o||(o=getNavigationHistory(l,n)),o||l};async function saveHandler(n,l,o){var c,h;(c=n.searchParams)==null||c.get("id");const u=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,u);const g=JSON.parse(sessionStorage.getItem("pageFormdata"));if(_.isEmpty(n.ctx.core.errors))try{const x=await o(n,l,g);navigateHandler(n,!0,"/PageMasterRecords")}catch(x){navigateHandler(n,!1,void 0,x.message)}else navigateHandler(n,!1)}const navigateHandler=(n,l,o,u)=>{l?(sessionStorage.removeItem("pageFormdata"),n.navigate(o||-1),n.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:u||"Errors on Page"}))};function okHandler(n){var o;const l=(o=n.searchParams)==null?void 0:o.get("path");_.isEmpty(n.ctx.core.errors)?(saveFormdataInSessionStorage(n.ctx.core.data,l),n.navigate(-1),n.setNotify({SuccessMessage:"Save Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Errors on Page"}))}const sectionLabels={Select:["Core","Properties","Value","Events","Style","Validation"],MultipleSelect:["Core","Properties","Value","Events","Style","Validation"],Table:["Core","Components","Properties","Events","Style"],LeaderBoard:["Core","Components","Properties","Events","Style"],WrapperSection:["Core","Components","Properties","Style"],HorizontalLayout:["Core","Components","Properties","Style"],TabSection:["Core","Components","TabTitles","Properties","Style","Validation"],SpeedoMeter:["Core","Properties","Events","Style"],card:["Core","Properties","Events","Style","Validation"],UploadFile:["Core","Events","Style","Validation"],Graph:["Core","Properties","Events","Style","Validation"],DownloadFile:["Core","Events","Style","Validation"],Box:["Core","Properties","Events","Style","Validation"],Properties:["Core","Properties","Events","Style","Validation"],ProgressBarCard:["Core","Properties","Events","Style"],ProgressBar:["Core","Properties","Events","Style"],RankCard:["Core","Properties","Events","Style"],MetricCard:["Core","Properties","Events","Style","Validation"],Slider:["Core","Components","Events","Style","Validation"],Timer:["Core","Events","Style"],Rank:["Core","Events","Style"],Button:["Core","Properties","Events","Style","Validation"],ButtonGroup:["Core","Components","Properties","Events","Style","Validation"],Array:["Core","Components","Properties","Events","Style","Validation"],Radio:["Core","Properties","Events","Style","Validation"],Text:["Core","Properties","Events","Style","Validation"],TextArea:["Core","Properties","Events","Style","Validation"],PopUp:["Core","Components","Properties","Events","Style"],PopOver:["Core","Components","Properties","Style"],PdfViewer:["Core","Properties","Style"],Stepper:["Core","Components","Properties","Events","Style"],DataGrid:["Core","Components","Properties","Events","Style"],InputSlider:["Core","Properties","Events","Style","Validation"],TreeMap:["Core","Components","Properties","Events","Style"],ColumnGroup:["Core","Components"],Thought:["Core","Properties","Events","Style"],Date:["Core","Properties","Events","Style","Validation"],DateTime:["Core","Properties","Events","Style","Validation"],Image:["Core","Properties","Events","Style"],FileInput:["Core","Properties","Events","Style","Validation"],Camera:["Core","Properties","Events","Style","Validation"],OTP_Input:["Core","Properties","Events","Style","Validation"]};function refreshPage(n,l){var v,E;const o=_.cloneDeep(componentBasicUiSchema(l.theme.myTheme)),u=JSON.parse(sessionStorage.getItem("pageFormdata"));if(n){const F={Core:CoreSection,Value:ValueTab,Style:StyleSection,Events:EventSection(l.theme.myTheme),Components:TableSection(l.theme.myTheme),TabTitles:TableSection(l.theme.myTheme,"tabLabelElements"),Properties:buildPropertiesSection(n),Validation:ValidationSection},B=(v=sectionLabels[n])==null?void 0:v.map(U=>F[U]);o.elements[0].config.main.tabLabels=sectionLabels[n]||["Core","Style","Events","Validation"],o.elements[0].elements=B||[CoreSection,StyleSection,EventSection(l.theme.myTheme),ValidationSection]}const g=(E=l.searchParams)==null?void 0:E.get("path"),c=g.lastIndexOf("."),h=g.slice(0,c),x=_.get(u,h);((x==null?void 0:x.type)==="Table"||(x==null?void 0:x.type)==="ColumnGroup")&&(o.elements[0].elements[0].elements[4]={type:"Control",scope:"#/properties/columnFormat",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Column Format"}}},o.elements[0].elements[0].elements[6]={type:"Control",scope:"#/properties/filteringOptions",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Filter Mode",multiple:!0}}},o.elements[0].elements[0].elements[5]={type:"Control",scope:"#/properties/enableFilter",options:{widget:"RadioInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Enable Filter",options:["Yes","No"]}}},o.elements[0].elements[0].elements[7]={type:"Control",scope:"#/properties/enableSorting",options:{widget:"RadioInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Enable Sorting",options:["Yes","No"]}}},o.elements[0].elements[0].elements[8]={type:"Control",scope:"#/properties/columnKey",config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Column Key"}},options:{widget:"InputField"}},o.elements[0].elements[0].elements[9]={type:"Control",scope:"#/properties/elementType",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Element Type"}}},o.elements[0].elements[0].elements[10]={type:"Control",scope:"#/properties/dateFormat",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Date Time Format"}}},o.elements[0].elements[0].elements[11]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:0,lg:6}}}),(x==null?void 0:x.type)==="LeaderBoard"&&(o.elements[0].elements[0].elements[4]={type:"Control",scope:"#/properties/columnFormat",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Column Format"}}}),sessionStorage.getItem("copiedConfig")&&this.ElementPathSetter(o),l.setUiSchema(o)}var Component=(n,l,o,u)=>({setPage:async function(){const g=await this.getFormdata();n.setFormdata(g);const c=this.getSchema();n.setSchema(c),this.refreshPage(g==null?void 0:g.type,n)},refreshPage,getFormdata:function(){var c;const g=(c=n.searchParams)==null?void 0:c.get("path");return getFormdataFromSessionStorage(g)},getSchema:function(){var E,F,B;const g=_.cloneDeep(ComponentSchema);sessionStorage.getItem("copiedConfig")&&(g.properties.RemoveItemButton.disabled=!1);const c=JSON.parse(sessionStorage.getItem("pageFormdata")),h=(E=n.searchParams)==null?void 0:E.get("path"),x=(F=n.searchParams)==null?void 0:F.get("id");let v=[{label:(B=c.name)!=null?B:"NewPage",path:`/PageMaster${x?`?id=${x}`:""}`}];if(h){const U=h.split("."),j=[];U.map((X,K)=>{if(K===0){j.push(X);return}j.push(`${j[K-1]}.${X}`)}),j.map(X=>{const K=_.get(c,X);v.push({label:(K==null?void 0:K.name)||(K==null?void 0:K.eventType)||"NewComponent",path:`/Component?path=${X}${x?`&id=${x}`:""}`})})}return g.properties.pageName.path=v,g},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,u,o),onChange:function(){var g,c,h,x;((g=n==null?void 0:n.formData)==null?void 0:g.type)!==((c=n==null?void 0:n.newData)==null?void 0:c.type)&&((h=n==null?void 0:n.newData)==null?void 0:h.type)!==void 0&&this.refreshPage((x=n==null?void 0:n.newData)==null?void 0:x.type,n)},editComponents:function(){var x,v,E;if(validateAndShowErrors(n))return;const g=l.path.split(".")[1],c=(x=n.searchParams)==null?void 0:x.get("path"),h=(v=n.searchParams)==null?void 0:v.get("id");if(saveFormdataInSessionStorage(n.ctx.core.data,c),c){let F=`${c}`;(E=l==null?void 0:l.path)!=null&&E.startsWith("tabLabel")?F=`${F}.tabLabelElements[${g}]`:F=`${F}.elements[${g}]`,n.searchParams.set("path",F),n.setSearchParams(n.searchParams),this.setPage()}else n.navigate(`/Component?path=${`elements[${g}]`}&id=${h}`)},deleteComponents:function(g=!0){var F;const c=(F=n.searchParams)==null?void 0:F.get("path"),h=sessionStorage.getItem("rowId");sessionStorage.getItem("isTabLabelElements")==="true"?n.formData.tabLabelElements.splice(h,1):n.formData.elements.splice(h,1);const v=saveFormdataInSessionStorage(n.ctx.core.data,c),E=c?_.get(v,c):v;n.setFormdata(E),g&&n.updateDialog("popUpComponentSection"),sessionStorage.removeItem("rowId"),sessionStorage.removeItem("isTabLabelElements")},deleteEvent:function(g=!0){var v;const c=(v=n.searchParams)==null?void 0:v.get("path"),h=sessionStorage.getItem("rowId");n.formData.events.splice(h,1);const x=saveFormdataInSessionStorage(n.ctx.core.data,c);n.setFormdata(_.get(x,c)),g&&n.updateDialog("popUpEventSection"),sessionStorage.removeItem("rowId")},widgetAddClickHandler:function(){var h;if(validateAndShowErrors(n))return;Array.isArray(n.formData.elements)||(n.formData.elements=[]),Array.isArray(n.formData.tabLabelElements)||(n.formData.tabLabelElements=[]);const g=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,g);let c=`${g}`;l.path.startsWith("tabLabel")?c=`${c}.tabLabelElements[${n.formData.tabLabelElements.length}]`:c=`${c}.elements[${n.formData.elements.length}]`,n.searchParams.set("path",c),n.setSearchParams(n.searchParams),this.setPage()},eventEditHandler:function(){var v,E;if(validateAndShowErrors(n))return;const g=l.path.split(".")[1],c=(v=n.searchParams)==null?void 0:v.get("path"),h=(E=n.searchParams)==null?void 0:E.get("id");saveFormdataInSessionStorage(n.ctx.core.data,c);const x=`${c}.events[${g}]`;n.navigate(`/ComponentEvents?path=${x}&id=${h}`)},eventAddHandler:function(){var x,v;if(validateAndShowErrors(n))return;const g=(x=n.searchParams)==null?void 0:x.get("path"),c=(v=n.searchParams)==null?void 0:v.get("id");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,g);const h=`${g}.events[${n.formData.events.length}]`;n.navigate(`/ComponentEvents?path=${h}&id=${c}`)},backHandler:function(){n.navigate(-1)},deletePopUpComponent:function(){const g=l.path.split(".")[1];sessionStorage.setItem("rowId",g),sessionStorage.setItem("isTabLabelElements",l.path.startsWith("tabLabel")?"true":"false"),n.updateDialog("popUpComponentSection")},deletePopUpEvent:function(){const g=l.path.split(".")[1];sessionStorage.setItem("rowId",g),n.updateDialog("popUpEventSection")},copyPasteElement:function(g,c=this.setPage.bind(this)){var v;const[h,x]=(v=l.path.split(".").pop())==null?void 0:v.split("_");h==="Copy"?this.CopyElement(g,x):this.PasteElement(c,x)},CopyElement:function(g=n,c){var U;const h=lodash.exports.cloneDeep(g.schema),x=lodash.exports.cloneDeep(g.uiSchema);h.properties.RemoveItemButton.disabled=!1;const v=l.path.split(".")[1],E=(U=n.searchParams)==null?void 0:U.get("path"),F=this.elementPathHandler(E,v,c),B=getFormdataFromSessionStorage(F);this.ElementPathSetter(x,B),sessionStorage.setItem("copiedConfig",JSON.stringify(B)),n.setNotify({SuccessMessage:`${c} Copied Successfully`,Success:!0}),n.setSchema(h),n.setUiSchema(x)},PasteElement:function(g,c){var j;if(!sessionStorage.getItem("copiedConfig")){n.setNotify({FailMessage:"No item has been copied.",Fail:!0});return}const h=(j=n.searchParams)==null?void 0:j.get("path");Array.isArray(n.formData.elements)||(n.formData.elements=[]),Array.isArray(n.formData.events)||(n.formData.events=[]),Array.isArray(n.formData.tabLabelElements)||(n.formData.tabLabelElements=[]),saveFormdataInSessionStorage(n.ctx.core.data,h);const x=getFormdataFromSessionStorage(h),E={TabsComponent:x.tabLabelElements.length,Component:x.elements.length,Events:x.events.length}[c]||0,F=this.elementPathHandler(h,E,c),B=JSON.parse(sessionStorage.getItem("copiedConfig")),U={Events:" The Events cannot be integrated into the component section.",Component:"The component cannot be integrated into the Events section."};B.Handler&&c==="Component"?n.setNotify({FailMessage:U.Events,Fail:!0}):B.name&&c==="Events"?n.setNotify({FailMessage:U.Component,Fail:!0}):(saveFormdataInSessionStorage(B,F),g())},RemoveItemButton:function(g=n){const c=lodash.exports.cloneDeep(g.schema),h=lodash.exports.cloneDeep(g.uiSchema);c.properties.RemoveItemButton.disabled=!0,h.elements[2].elements[1].config.main.heading="No element copied",sessionStorage.removeItem("copiedConfig"),n.setSchema(c),n.setUiSchema(h)},elementPathHandler:function(g,c,h){return h==="Component"?g?`${g}.elements[${c}]`:`elements[${c}]`:h==="TabsComponent"?`${g}.tabLabelElements[${c}]`:g?`${g}.events[${c}]`:`events[${c}]`},ElementPathSetter:function(g,c){var x,v,E,F,B,U,j,X,K,M,ae,Fe,Z,qe,Se,Je,Le,at,Et,fn,gn,yn,hn,Gt,bn,xn;const h=c||JSON.parse(sessionStorage.getItem("copiedConfig"));(U=(B=(F=(E=(v=(x=g==null?void 0:g.elements)==null?void 0:x[1])==null?void 0:v.elements)==null?void 0:E[0])==null?void 0:F.config)==null?void 0:B.main)!=null&&U.headerIcons?g.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`:(qe=(Z=(Fe=(ae=(M=(K=(X=(j=g==null?void 0:g.elements)==null?void 0:j[0])==null?void 0:X.elements)==null?void 0:K[1])==null?void 0:M.elements)==null?void 0:ae[0])==null?void 0:Fe.config)==null?void 0:Z.main)!=null&&qe.headerIcons&&(g.elements[0].elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`),(fn=(Et=(at=(Le=(Je=(Se=g==null?void 0:g.elements)==null?void 0:Se[1])==null?void 0:Je.elements)==null?void 0:Le[1])==null?void 0:at.config)==null?void 0:Et.main)!=null&&fn.headerIcons?g.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Event: ${h.eventType}`:(xn=(bn=(Gt=(hn=(yn=(gn=g==null?void 0:g.elements)==null?void 0:gn[0])==null?void 0:yn.elements)==null?void 0:hn[1])==null?void 0:Gt.config)==null?void 0:bn.main)!=null&&xn.headerIcons&&(g.elements[0].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.eventType}`)},onNavigatePopupYes:function(){try{n.navigate(sessionStorage.getItem("pendingNavigatePath")),n.updateDialog("pageNamepopup")}catch{n.updateDialog("pageNamepopup"),n.setNotify({FailMessage:"Couldn't navigate page",Fail:!0})}},onNavigatePopupNo:function(){n.updateDialog("pageNamepopup")}}),pageMaster=n=>{const{store:l,dynamicData:o,submitHandler:u,service:g}=n;return{setPage:async function(){const c=await this.getFormdata();l.setFormdata(c);const h=await this.getUiSchema(),x=await this.getSchema();l.setSchema(x),l.setUiSchema(h)},getFormdata:async function(){var v;const c=(v=l.searchParams)==null?void 0:v.get("id"),h=await n.pageConfigProvider(c),x=getFormdataFromSessionStorage();return x||(saveFormdataInSessionStorage(h),{...h,type:"page"})},getUiSchema:function(){const c=_.cloneDeep(PageMasterUiSchema(l.theme.myTheme));return sessionStorage.getItem("copiedConfig")&&Component(l,o,u,g).ElementPathSetter(c),c},getSchema:()=>{const c=_.cloneDeep(PageMasterSchema);return sessionStorage.getItem("copiedConfig")&&(c.properties.RemoveItemButton.disabled=!1),c},backHandler:()=>{sessionStorage.removeItem("pageFormdata"),l.navigate("/PageMasterRecords")},onAddClickHandler:function(){var x;if(validateAndShowErrors(l))return;const c=(x=l.searchParams)==null?void 0:x.get("id");Array.isArray(l.formData.elements)||(l.formData.elements=[]);const h=saveFormdataInSessionStorage(l.ctx.core.data);c?l.navigate(`/Component?path=${`elements[${h==null?void 0:h.elements.length}]`}&id=${c}`):l.navigate(`/Component?path=${`elements[${h==null?void 0:h.elements.length}]`}`)},saveHandler:async()=>await saveHandler(l,g,u),Edit_Components:Component(l,o,u,g).editComponents,Delete_Components:async function(){await Component(l,o,u,g).deleteComponents(!1),l.updateDialog("popUpPageMasterComponent")},eventAddHandler:function(){var x;if(validateAndShowErrors(l))return;const c=(x=l.searchParams)==null?void 0:x.get("id");Array.isArray(l.formData.events)||(l.formData.events=[]),saveFormdataInSessionStorage(l.ctx.core.data);const h=`events[${l.formData.events.length}]`;l.navigate(`/ComponentEvents?path=${h}&id=${c}`)},editEvent:function(){var v;if(validateAndShowErrors(l))return;const c=o.path.split(".")[1],h=(v=l.searchParams)==null?void 0:v.get("id");saveFormdataInSessionStorage(l.ctx.core.data);const x=`events[${c}]`;l.navigate(`/ComponentEvents?path=${x}&id=${h}`)},deleteEvent:function(){const c=sessionStorage.getItem("rowId");l.formData.events.splice(c,1);const h=saveFormdataInSessionStorage(l.ctx.core.data);l.setFormdata(h),l.updateDialog("popUpPageMasterEvent"),sessionStorage.removeItem("rowId")},deletePopUpComponent:function(){const c=o.path.split(".")[1];sessionStorage.setItem("rowId",c),l.updateDialog("popUpPageMasterComponent")},deletePopUpEvent:function(){const c=o.path.split(".")[1];sessionStorage.setItem("rowId",c),l.updateDialog("popUpPageMasterEvent")},copyPasteElement:function(){Component(l,o,u,g).copyPasteElement(l,this.setPage.bind(this))},RemoveItemButton:function(){Component(l,o,u,g).RemoveItemButton(l)}}};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",const:"onClick"},{title:"Load",const:"onLoad"},{title:"Change",const:"onChange"},{title:"Mount",const:"onMount"},{title:"Success",const:"Success"},{title:"Start",const:"onStart"},{title:"Cell Render",const:"onCellRenderer"},{title:"Upload",const:"onUpload"},{title:"FileDelete",const:"onFileDelete"},{title:"Download",const:"onDownload"},{title:"Back",const:"onBack"},{title:"Next",const:"onNext"},{title:"Row Movement",const:"onRowMovement"},{title:"Download",const:"onDownload"},{title:"Fail",const:"Fail"},{title:"onClose",const:"onClose"},{title:"Key Down",const:"onKeyDown"},{title:"Set Style",const:"setStyle"}]},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:"downloadFileFromUrl",const:"downloadFileFromUrl"}]},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}},RemoveItemButton:{disabled:!0},pageName:{path:[{label:"defaultLabel",path:"defaultPath"}]}},required:["eventType","Handler"]},EventUiSchema=n=>{var o;return{type:"HorizontalLayout",heading:"Page-Events",elements:[{type:"TabLayout",config:{main:{tabLabels:["Core","Response Events"],id:"event"},style:{TabPanelStyle:{padding:0}},TabsStyle:{marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}}},elements:[{type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/eventType",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Event's Type",type:"text"}}},getSelectField("Handler","Handler"),{type:"Control",scope:"#/properties/EmptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:6}}}]},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"addEvent",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Event",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0},action:[{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"Button"},config:{main:{size:"small",startIcon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent",name:"Edit"}}},{type:"Control",scope:"#/properties/RejectButton",options:{widget:"Button"},config:{main:{startIcon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent",name:"Delete",size:"small"}}},{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"Button"},config:{main:{startIcon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!1,name:"Copy",size:"small"}}}]},elements:[{accessorKey:"eventType",header:"Event's Type",size:300,type:"string"},{accessorKey:"Handler",header:"Handler",size:200,type:"string"}]}]},{type:"WrapperLayout",config:{main:{gap:"8px"}},elements:[{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Ok",variant:"contained",type:"text",onClick:"okHandler",size:"medium"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Save & Exit",variant:"contained",type:"text",onClick:"saveHandler",size:"medium"}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:4,sm:7,md:8,lg:9}},options:{widget:"EmptyBox"}}]},{type:"Control",scope:"#/properties/popUpEvent",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Event ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",startIcon:"ApproveIcon",variant:"contained",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/pageName",options:{widget:"Breadcrumb"},config:{layout:12,main:{onNavigatePopupNo:"onNavigatePopupNo",onNavigatePopupYes:"onNavigatePopupYes"},style:{paddingLeft:n.spacing(3),color:n.palette.grey[600],fontSize:"10px",position:"fixed",bottom:"24px",borderBottom:`1px solid ${n.palette.common.black}29`,borderTop:`1px solid ${n.palette.common.black}29`,backgroundColor:n.palette.background.default}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((o=n==null?void 0:n.palette)==null?void 0:o.text.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:0,width:"fit-content",left:"50%",position:"relative",margin:"revert",flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}}]}]}},APISection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/method",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Method",type:"text"}}},{type:"Control",scope:"#/properties/path",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Path",type:"text",multiple:!1,options:[]}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:6}}},{type:"Control",scope:"#/properties/headers",config:{layout:12,main:{label:"Headers",childElementLabel:"Headers"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]},{type:"Control",scope:"#/properties/body",config:{layout:12,main:{label:"Body",childElementLabel:"Body"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]},getTextArea("apiBody","Transformer",!0,12)]},refreshSectionUiSchema={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/refreshElements",config:{layout:12,main:{label:"Refresh Elements",childElementLabel:"Refresh Elements"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:8,lg:8},main:{}}}]}]};var event=(n,l,o,u,g)=>({setPage:async function(){const c=await this.getFormData();n.setFormdata(c);const h=await this.getSchema();console.log("SettingSchema>>",h),n.setSchema(h),this.refreshPage(c.Handler,n)},refreshPage:(c,h)=>{var j,X,K;const x=_.cloneDeep(EventUiSchema(h.theme.myTheme)),v=_.cloneDeep(EventSchema);c&&(c==="custom"?(x.elements[0].elements[0].elements[2]=getRadioInputField("isSync","Run in Sync",["Yes","No"]),x.elements[0].elements[0].elements[3]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:0,lg:3},main:{},style:{}}},x.elements[0].elements[0].elements[4]=getTextArea("eventCode","Write Custom Code",!1),v.required=["eventType","Handler","eventCode"]):c==="api"?(x.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),x.elements[0].elements[0].elements[3]=APISection,v.required=["eventType","Handler","method","path"]):c==="inBuiltFunction"?(x.elements[0].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name"),x.elements[0].elements[0].elements[3]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:0,lg:3},main:{},style:{}}},x.elements[0].elements[0].elements[4]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0),v.required=["eventType","Handler","inBuiltFunctionType"]):c==="refresh"&&(x.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),x.elements[0].elements[0].elements[3]=refreshSectionUiSchema,v.properties.refreshElements.required=["value"],v.properties.refreshElements.items.required=["value"],v.required=["eventType","Handler","refreshElements"])),g&&(v.properties.inBuiltFunctionType.oneOf=[...v.properties.inBuiltFunctionType.oneOf,...g]),sessionStorage.getItem("copiedConfig")&&(Component(h,l,o,u).ElementPathSetter(x),v.properties.RemoveItemButton.disabled=!1);const E=JSON.parse(sessionStorage.getItem("pageFormdata")),F=(j=h.searchParams)==null?void 0:j.get("path"),B=(X=h.searchParams)==null?void 0:X.get("id");let U=[{label:(K=E.name)!=null?K:"NewPage",path:`/PageMaster${B?`?id=${B}`:""}`}];if(F){const M=F.split("."),ae=[];M.map((Fe,Z)=>{if(Z===0){ae.push(Fe);return}ae.push(`${ae[Z-1]}.${Fe}`)}),ae.map(Fe=>{const Z=_.get(E,Fe);U.push({label:(Z==null?void 0:Z.name)||(Z==null?void 0:Z.eventType)||"NewComponent",path:Z!=null&&Z.eventType?`/ComponentEvents?path=${Fe}${B?`&id=${B}`:""}`:`/Component?path=${Fe}${B?`&id=${B}`:""}`})})}v.properties.pageName.path=U,h.setSchema(v),h.setUiSchema(x)},getFormData:Component(n,l,o,u).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>{var F,B,U;const c=_.cloneDeep(EventSchema);sessionStorage.getItem("copiedConfig")&&(c.properties.RemoveItemButton.disabled=!1);const h=JSON.parse(sessionStorage.getItem("pageFormdata")),x=(F=n.searchParams)==null?void 0:F.get("path"),v=(B=n.searchParams)==null?void 0:B.get("id");let E=[{label:(U=h.name)!=null?U:"NewPage",path:`/PageMaster${v?`?id=${v}`:""}`}];if(x){const j=x.split("."),X=[];j.map((K,M)=>{if(M===0){X.push(K);return}X.push(`${X[M-1]}.${K}`)}),X.map(K=>{const M=_.get(h,K);E.push({label:(M==null?void 0:M.name)||(M==null?void 0:M.eventType)||"NewComponent",path:M!=null&&M.eventType?`/ComponentEvents?path=${K}${v?`&id=${v}`:""}`:`/Component?path=${K}${v?`&id=${v}`:""}`})})}return c.properties.pageName.path=_.cloneDeep(E),c},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,u,o),onChange:function(){var c,h,x;((c=n==null?void 0:n.formData)==null?void 0:c.Handler)!==((h=n==null?void 0:n.newData)==null?void 0:h.Handler)&&((x=n==null?void 0:n.newData)==null?void 0:x.Handler)!==void 0&&this.refreshPage(n.newData.Handler||n.formdata.Handler,n)},addEvent:function(){var x,v,E;if(validateAndShowErrors(n))return;const c=(x=n.searchParams)==null?void 0:x.get("path");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,c);const h=`${c}.events[${(E=(v=n.formData)==null?void 0:v.events)==null?void 0:E.length}]`;n.searchParams.set("path",h),n.setSearchParams(n.searchParams),this.setPage()},editEvent:function(){var v;if(validateAndShowErrors(n))return;const c=l.path.split(".")[1],h=(v=n.searchParams)==null?void 0:v.get("path");saveFormdataInSessionStorage(n.ctx.core.data,h);const x=`${h}.events[${c}]`;n.searchParams.set("path",x),n.setSearchParams(n.searchParams),this.setPage()},deleteEvent:async function(){await Component(n,l,o,u).deleteEvent(!1),n.updateDialog("popUpEvent")},backHandler:function(){n.navigate(-1)},deletePopUpEvent:function(){const c=l.path.split(".")[1];sessionStorage.setItem("rowId",c),n.updateDialog("popUpEvent")},copyPasteElement:function(){Component(n,l,o,u).copyPasteElement(n,this.setPage.bind(this))},RemoveItemButton:function(){Component(n,l,o,u).RemoveItemButton(n)},onNavigatePopupYes:function(){try{n.navigate(sessionStorage.getItem("pendingNavigatePath")),n.updateDialog("pageNamepopup")}catch{n.updateDialog("pageNamepopup"),n.setNotify({FailMessage:"Couldn't navigate page",Fail:!0})}},onNavigatePopupNo:function(){n.updateDialog("pageNamepopup")}});function downloadFile$1({data:n,name:l}){var E;const o=window.atob(n),u=new Uint8Array(o.length);for(let F=0;F<o.length;F++)u[F]=o.charCodeAt(F);const g=(E=l.split(".").pop())==null?void 0:E.toLowerCase(),c={pdf:"application/pdf",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",csv:"text/csv"},h=new Blob([u],{type:c[g]||"application/octet-stream"}),x=URL.createObjectURL(h),v=document.createElement("a");v.href=x,v.download=l,v.click(),URL.revokeObjectURL(x)}const downloadFileFromUrl=(n,l)=>{let o=`${l.defaults.baseURL}/${n.path}`;n!=null&&n.params&&Object.keys(n==null?void 0:n.params).map((c,h)=>{o=o+`${h===0?"?":"&"}${c}=${n==null?void 0:n.params[c]}`});const u=document.createElement("a");u.href=o,document.body.appendChild(u),u.click(),u.parentNode.removeChild(u)},executeEvents=n=>{var g,c,h;let l=[],o=null;if(n.config.isSync!=="Yes")return shouldEventExecute(n).then(x=>{if(!x)throw new Error("onStart Event not allow to run Parent Events");return executeEventsHandler(n)}).then(x=>{var E;o=x,l=(E=n.config)==null?void 0:E.events.filter(F=>F.eventType==="Success")}).catch(x=>{var F,B;const v=(B=(F=n.config)==null?void 0:F.events)==null?void 0:B.filter(U=>U.eventType==="Fail");l=(v==null?void 0:v.length)>0?v:[]}).then(()=>{if((l==null?void 0:l.length)>0)return l.reduce((x,v)=>x.then(()=>executeEvents({...n,config:v,parentEventOutput:o})),Promise.resolve())}).then(()=>o);if(!shouldEventExecute(n))return{response:void 0,events:void 0};try{o=executeEventsHandler(n),l=(g=n.config)==null?void 0:g.events.filter(E=>E.eventType==="Success")}catch{const x=(h=(c=n.config)==null?void 0:c.events)==null?void 0:h.filter(E=>E.eventType==="Fail");l=(x==null?void 0:x.length)>0?x:[]}if((l==null?void 0:l.length)>0)for(const x of l)executeEvents({...n,config:x,parentEventOutput:o});return o};function executeEventsHandler(n){var l,o,u;if(n.config.Handler==="api")return executeApiRequest(n);if(n.config.Handler==="inBuiltFunction")return executeInBuiltFunctionHandler(n);if(n.config.Handler==="custom")return executeCustomHandler(n);if(n.config.Handler==="refresh")return executeRefreshHandler(n);if(n.config.Handler==="mergeFormdata")return mergeFormdata(n.parentEventOutput,n.componentName,n.config,n.store,n.formDataHolder);if(n.config.Handler==="onBackHandler")return(l=n.store.functionParameters)==null?void 0:l.handleBack();if(n.config.Handler==="onNextHandler")return(o=n.store.functionParameters)==null?void 0:o.handleNext();if(n.config.Handler==="onResetHandler")return(u=n.store.functionParameters)==null?void 0:u.handleReset()}function getRefreshElements(n,l){var u;let o=[];return((u=n==null?void 0:n.refreshElements)==null?void 0:u.length)>0?o=n.refreshElements.map(g=>g.value):l!=null&&l.onLoad&&(o=Object.keys(l==null?void 0:l.onLoad)),o}async function executeRefreshHandler(n){const l=getRefreshElements(n.config,n.eventGroups);return Promise.allSettled(l.map(o=>{const u=n.eventGroups.onLoad[o];return u?Promise.allSettled(u.map(g=>executeEvents({...n,config:g,componentName:o}))):Promise.resolve()}))}function executeApiRequest(n){var g;const l={...(g=n.userValue)==null?void 0:g.payload},o={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},u=buildApiPayload(n.config,l,o,n.store,n.dynamicData,n.userValue,n.service);return n.service[n.config.method](n.config.path,u.body,{headers:u.headers}).then(c=>c)}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)}function executeCustomHandler(params){const makeFunc=eval(params.config.eventCode);return params.config.isSync!=="Yes"?makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName).then(n=>n):makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName)}function mergeFormdata(n,l,o,u,g){var c,h,x;o.type==="Select"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||u.setSchema(v=>{var E;return{...v,properties:{...v.properties,[l]:{...(E=v.properties)==null?void 0:E[l],oneOf:n.data}}}}):o.type==="MultipleSelect"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||u.setSchema(v=>{var E;return{...v,properties:{...v.properties,[l]:{...(E=v.properties)==null?void 0:E[l],type:"array",items:{oneOf:n==null?void 0:n.data}}}}}):o.type==="page"?_.isEmpty(n==null?void 0:n.data)&&(n==null?void 0:n.data)&&lodash.exports.isObject(n.data)||(u.newData={...u.newData,...n==null?void 0:n.data},Object.keys(n.data).forEach(v=>{g[v]=n.data[v]})):o.type==="Table"&&o.lazyLoading?n&&(n==null?void 0:n.data)&&(g[l]=(c=n.data)==null?void 0:c.data,g[`${l}_RowCount`]=(x=(h=n.data)==null?void 0:h.meta)==null?void 0:x.totalRowCount):n!=null&&n.data&&(g[l]=n.data)}const buildBodyFormat=(n,l,o,u)=>{let g={...o==null?void 0:o.payload};return n.map(c=>{var h,x,v,E,F;if(typeof(c==null?void 0:c.value)!="string")g[c.key]=c.value;else if((h=c==null?void 0:c.value)!=null&&h.startsWith("$userValue")){const B=c.value.substring(11);g[c.key]=_.get(o,B)}else if((x=c==null?void 0:c.value)!=null&&x.startsWith("$urlParams")){const B=c.value.substring(11),U=(v=u==null?void 0:u.searchParams)==null?void 0:v.get(B);g[c.key]=U}else if((E=c==null?void 0:c.value)!=null&&E.startsWith("$local")){const B=c.value.substring(7),U=JSON.parse(sessionStorage.getItem(B)||'""');g[c.key]=U}else if((F=c==null?void 0:c.value)!=null&&F.startsWith("$")){const B=c.value.substring(1);g[c.key]=_.get(l,B)}else(c==null?void 0:c.value)==="*"&&(c==null?void 0:c.key)==="*"?g={...g,...l}:(c==null?void 0:c.value)==="*"?g[c.key]=l:g[c.key]=c.value}),g},buildHeadersFormat=n=>{const l={"X-Requested-With":"XMLHttpRequest"};return n.map(o=>{l[o.key]=o.value}),l};function shouldEventExecute(n){var o,u,g;const l=(u=(o=n.config)==null?void 0:o.events)==null?void 0:u.filter(c=>c.eventType==="onStart");return(l==null?void 0:l.length)>0?((g=l[0])==null?void 0:g.isSync)!=="Yes"?executeEventsHandler({...n,config:l[0]}).then(c=>c):executeEventsHandler({...n,config:l[0]}):n.config.isSync!=="Yes"?Promise.resolve(!0):!0}function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var n,l;compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((l=(n=store==null?void 0:store.ctx)==null?void 0:n.core)==null?void 0:l.data)||store.formData,userValue,store)});const promiseChain={body,headers};if(compConfig.apiBody){const makeFunc=eval(compConfig.apiBody);return{body:makeFunc(store,dynamicData,userValue,promiseChain.body),headers:promiseChain.headers}}return promiseChain}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6};let pageData=!1;const extractEvents=n=>{function l(o){o.events&&o.events.forEach(u=>{var c;o.type&&(compType=o.type),eventGroups[u.eventType]||(eventGroups[u.eventType]={}),eventGroups[u.eventType][o.name]||(eventGroups[u.eventType][o.name]=[]);const g=(c=u==null?void 0:u.events)==null?void 0:c.find(h=>h.eventType==="Success");!g&&u.eventType==="onLoad"&&(u.events||(u.events=[]),u.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),!g&&(u.eventType==="onBack"||u.eventType==="onNext"||u.eventType==="onReset")&&(u.events||(u.events=[]),u.events.push({Handler:`${u.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),eventGroups[u.eventType][o.name].push({...u,type:compType})})}return l(n),n!=null&&n.elements&&n.elements.forEach(extractEvents),eventGroups};var service=n=>{const l={};let o={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:{downloadFile:downloadFile$1,download:downloadFileFromUrl,...n.functionsProvider},eventGroups,functionsProvider:n.functionsProvider,formDataHolder:l};return{setPage:async function(){var x,v,E;n.store.setAdditionalErrors([]),n.store.setFormdata((n==null?void 0:n.initFormData())||{}),n.store.setSchema({type:"object",properties:{}}),n.store.newData={},eventGroups={},pageData=await n.pageDataProvider();const u=pageData==null?void 0:pageData.config,g=pageData==null?void 0:pageData.uiSchema,c=new CustomEvent("pageNameChanged",{detail:{pageName:u.label,pageIconUrl:u.pageIconUrl,hasBackIcon:u.hasBackIcon!=="NO"}});window.dispatchEvent(c),(v=(x=n==null?void 0:n.store)==null?void 0:x.theme)==null||v.myTheme;const h=(E=pageData==null?void 0:pageData.schema)!=null?E:{type:"object",properties:{}};eventGroups=extractEvents(u),o={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,functionsProvider:n.functionsProvider,serviceHolder:this,eventGroups,formDataHolder:l},n.store.setSchema(F=>({...h,...F,properties:{...h.properties,...F.properties}})),executeRefreshHandler({config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:this,eventGroups,formDataHolder:l}).then(F=>{n.store.setFormdata(B=>({...B,...l})),g.elements.push(notifyUiSchema),n.store.setUiSchema(g)})},getStyle:()=>{var g,c,h,x;const u=_.cloneDeep(eventGroups);if(u.setStyle){let v={};const E=((g=n.dynamicData)==null?void 0:g.tableButtonPath)||((c=n==null?void 0:n.dynamicData.path)==null?void 0:c.split(".").pop());if((h=u==null?void 0:u.setStyle)!=null&&h[E]){for(const F of(x=u==null?void 0:u.setStyle)==null?void 0:x[E])v=executeEvents({...o,config:F,componentName:E});return v}}return{}},onCellRenderer:u=>{var c,h,x,v,E;const g=_.cloneDeep(eventGroups);if(g.onCellRenderer){let F={};const B=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||((x=(h=n==null?void 0:n.dynamicData)==null?void 0:h.path)==null?void 0:x.split(".")[0]);if((v=g==null?void 0:g.onCellRenderer)!=null&&v[B]){for(const U of(E=g==null?void 0:g.onCellRenderer)==null?void 0:E[B])o.store.functionParameters=u,F=executeEvents({...o,config:U,componentName:B});return F}}return{}},onClick:function(){this.callHandler("onClick")},onKeyDown:function(){this.callHandler("onKeyDown")},onFileDelete:async function(){this.callHandler("onFileDelete")},onClose:function(){this.callHandler("onClose")},onMount:function(){this.callHandler("onMount")},onFileDownload:function(){this.callHandler("onDownload")},onFileUpload:function(){this.callHandler("onUpload")},backHandler:function(){n.store.navigate(-1)},onRowMovement:async function(u){const g=[{key:"direction",value:u.rowMovement.direction},{key:"movedRowId",value:u.rowMovement.movedRowId},{key:"targetRowId",value:u.rowMovement.targetRowId||[]}];await this.callExecuteEvents({path:u==null?void 0:u.path},g,"onRowMovement");const c=await this.callExecuteEvents({path:u==null?void 0:u.path},g,"onLoad");return c==null?void 0:c.data},onPaginationChange:async function(u){var h,x;const g=[{key:"size",value:u.pagination.pageSize},{key:"pageIndex",value:u.pagination.pageIndex},{key:"sorting",value:u.sorting||[]},{key:"filters",value:u.tableColumnConfig||[]},{key:"globalFilter",value:(h=u.globalFilter)!=null?h:""},{key:"expandedRowIds",value:(x=u.expandedRowIds)!=null?x:[]},{key:"parentId",value:u.parentId},{key:"prevRowCount",value:u.prevRowCount},{key:"newDataCount",value:u.newDataCount}],c=await this.callExecuteEvents(u,g,"onLoad");return c==null?void 0:c.data},getSelectOptions:async function(u){if(u.serachValue!==""&&u.serachValue!==void 0){const g=[{key:"searchValue",value:u.serachValue},{key:"currentValue",value:u.currentValue}],c=await this.callExecuteEvents(u,g,"onLoad");return c==null?void 0:c.data}},onChange:function(){if(!eventGroups.onChange)return;const g=Object.keys(eventGroups.onChange).flatMap(c=>{var h;return((h=n.store)==null?void 0:h.formData[c])===n.store.newData[c]?[]:eventGroups.onChange[c].map(x=>Promise.resolve(executeEvents({...o,config:x,componentName:c,formDataHolder:l})).then(()=>{lodash.exports.isEmpty(l)||n.store.setFormdata(v=>({...v,...l}))}))});Promise.allSettled(g)},callExecuteEvents:async function(u,g,c){var v,E;let h;const x=_.cloneDeep(eventGroups);for(const F of(v=x==null?void 0:x[c])==null?void 0:v[u.path]){F.body?F.body=[...F.body,...g]:F.body=g;const B=(E=F==null?void 0:F.events)==null?void 0:E.filter(U=>U.Handler!=="mergeFormdata");F.events=B!=null?B:[],h=await executeEvents({...o,config:F,componentName:u.path})}return h},onBack:async function(u){var c,h;const g=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];this.callHandler("onBack",u),((h=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:h[g])===void 0&&(u==null||u.handleBack())},onNext:async function(u){var c,h;const g=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];this.callHandler("onNext",u),((h=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:h[g])===void 0&&(u==null||u.handleNext())},onReset:async function(u){var c,h;const g=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];this.callHandler("onReset",u),((h=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:h[g])===void 0&&(u==null||u.handleReset())},callHandler:function(u,g){var x,v;const c=((x=n.dynamicData)==null?void 0:x.tableButtonPath)||n.dynamicData.path.split(".").pop();if(!((v=eventGroups==null?void 0:eventGroups[u])!=null&&v[c]))return;const h=eventGroups[u][c].map(E=>(o.store.functionParameters=g,Promise.resolve(executeEvents({...o,config:E,componentName:c,formDataHolder:l})).then(()=>{lodash.exports.isEmpty(l)||n.store.setFormdata(F=>({...F,...l}))})));Promise.allSettled(h)},downloadFile:downloadFile$1,downloadFileFromUrl,...n.functionsProvider}},leaderBoard={type:"Control",scope:"#/properties/path",options:{widget:"LeaderBoard"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{}}};const buildLeaderBoard=n=>{const l=_.cloneDeep(leaderBoard);if(n.elements){const o=n.elements.map((u,g)=>u.type?{...{widget:buildUiSchema(u),accessorKey:u.name,header:u.label||u.name}}:{accessorKey:u.name,header:u.label||u.name});l.elements=o}return l.config.main.label=n.label,n.name&&(l.scope=`#/properties/${n.name}`),n.firstImage&&(l.config.main.firstImage=n.firstImage),n.secondImage&&(l.config.main.secondImage=n.secondImage),n.thirdImage&&(l.config.main.thirdImage=n.thirdImage),n.nameKey&&(l.config.main.nameKey=n.nameKey),n.imageKey&&(l.config.main.imageKey=n.imageKey),n.scoreKey&&(l.config.main.scoreKey=n.scoreKey),n.isScoreAmount&&(l.config.main.isScoreAmount=n.isScoreAmount==="YES"),n.layout&&(l.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(l.config.style=JSON.parse(n.style)),l};var progressBar={type:"Control",scope:"#/properties/pbc_progress",options:{widget:"ProgressBar"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{developOnlyProgresBar:!1,bottomLabel_3:"Remaining",heading:"PBC Details"}}};const buildProgressBarCard=(n,l)=>{const o=_.cloneDeep(progressBar);return o.scope=l,n.heading&&(o.config.main.heading=n.heading),n.bottomLabel_3&&(o.config.main.bottomLabel_3=n.bottomLabel_3),n.bottomLabel_2&&(o.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(o.elements[0].config.main.bottomLabel_1=n.bottomLabel_1),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o},buildProgressBar=(n,l)=>{const o=_.cloneDeep(progressBar);return o.scope=l,n.layout&&(o.config.layout=n.layout),o.config.main.heading=n.label,n.variant&&(o.config.main.variant=n.variant),n.pieArcColors&&(o.config.main.colorRange=flatObjectValueInArray(n.pieArcColors)),n.size&&(o.config.main.size=Number(n.size)),n.bottomLabel_3&&(o.config.main.bottomLabel_3=n.bottomLabel_3),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.bottomLabel_2&&(o.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(o.config.main.bottomLabel_1=n.bottomLabel_1),o},BarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"BarGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}}}}},PieGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"PieGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}}}}},LineGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"LineGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}}}}},HorizontalBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"HorizontalBarGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}}}}},AreaBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{type:"AreaGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}}}}},StackBarLineG={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{type:"StackBarLineGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}}}}},buildHorizontalBarGraph=(n,l)=>{const o=_.cloneDeep(HorizontalBarGraph);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o.config.main.type=n.graphType,o.scope=l,o.config.main.header=n.heading,n.legendHide&&(o.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(o.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.height&&(o.config.style.containerStyle.height=n.height),n.leftMargin&&(o.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(o.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(o.config.main.leftLabel=n.leftLabel),n.disableLeftLabel&&(o.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),o};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=(n,l)=>{const o=_.cloneDeep(SpeedoMeter);if(o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.heading&&(o.config.main.header=n.heading),n.segments&&(o.config.main.segments=n.segments),n.style){const u=JSON.parse(n.style);u!=null&&u.style&&(o.config.style={...o.config.style,...u.style}),u!=null&&u.containerStyle&&(o.config.style.containerStyle={...o.config.style.containerStyle,...u.containerStyle})}return n.width&&(o.config.main.width=n.width),n.speedoCaption&&(o.config.main.currentValueText=n.speedoCaption),n.data&&(o.config.main.data=n.data),n.needleColor&&(o.config.style.needleColor=n.needleColor),n.segments&&(o.config.style.segments=n.segments),n.endColor&&(o.config.style.endColor=n.endColor),n.startColor&&(o.config.style.startColor=n.startColor),n.segmentColors&&(o.config.style.segmentColors=n.segmentColors),o},buildPieGraph=(n,l)=>{const o=_.cloneDeep(PieGraph);return n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.height&&(o.config.style.containerStyle.height=n.height),n.legendHide&&(o.config.main.legendAvailable=n.legendHide!=="YES"),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),o.scope=l,o.config.main.header=n.heading,n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),o},buildStackbarGraph=(n,l)=>{var u;const o=_.cloneDeep(BarGraph);return n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.legendHide&&(o.config.main.legendAvailable=n.legendHide,o.config.main.legendAvailable=n.legendHide!=="YES"),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.bottomAxisAngle&&(o.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),o.config.main.type=(u=n==null?void 0:n.graphType)!=null?u:"BarGraph",o.config.main.header=n.heading,n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.height&&(o.config.style.containerStyle.height=n.height),n.leftMargin&&(o.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(o.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(o.config.main.leftLabel=n.leftLabel),n.disableLeftLabel&&(o.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),o.scope=l,o};var RunnerBoyProgressBar={type:"Control",scope:"#/properties/path",options:{widget:"RunnerBoyProgressBar"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{}}};const RunnerBoyProgressbar=(n,l)=>{const o=_.cloneDeep(RunnerBoyProgressBar);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(n,l)=>{const o=_.cloneDeep(Tabsection);return o.scope=l,n.lazyLoad&&(o.config.main.lazyLoad=n.lazyLoad==="YES"),n.orientation&&(o.config.main.orientation=n.orientation==="YES"?"vertical":"horizontal"),n.sectionLabels&&(o.config.main.tabLabels=n.sectionLabels.map(u=>u.label),o.config.main.tabIcons=n.sectionLabels.map(u=>u.icon)),n.style&&(o.config.style=JSON.parse(n.style)),o.config.main.id=n.name,o};var WrapperSection={type:"WrapperLayout",config:{layout:12,main:{divider:!0,label:"Default Label",rowSpacing:2,columnSpacing:2,spacing:2},defaultStyle:!0},elements:[]};const buildWrapperSection=(n,l)=>{const o=_.cloneDeep(WrapperSection);return o.scope=l,o.config.main.label=n.label,o.config.main.divider=n.divider==="YES",o.config.main.isAccordion=n.isAccordion!=="No",o.config.main.defaultClosed=n.defaultClosed==="YES",o.config.main.icon=n.iconUrl,o.config.main.rowSpacing=Number(n.rowSpacing),o.config.main.columnSpacing=Number(n.columnSpacing),o.config.main.spacing=Number(n.spacing),n.defaultStyle&&(o.config.defaultStyle=n.defaultStyle==="YES"),n.style&&(o.config.style=JSON.parse(n.style)),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o};var TextInputField={type:"Control",scope:"#/properties/text",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:""},style:{}}};const buildTextField=(n,l)=>{const o=_.cloneDeep(TextInputField);return o.config.main.label=n.label,n.style&&(o.config.style=JSON.parse(n.style)),n.multiline&&(o.config.main.multiline=n.multiline==="YES"),n.keyName&&(o.config.main.keyName=n.keyName),n.InputFormatingAndMasking&&(o.config.main.formatStrArray=n.InputFormatingAndMasking.map(u=>u.formatElement)),n.placeholder&&(o.config.main.placeholder=n.placeholder),n.variant&&(o.config.main.variant=n.variant),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o.config.main.errorMessage=`${n.name} is empty or invalid`,o.scope=l,o};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"",type:"text",freeSole:!1},style:{}}};const buildSelect=(n,l)=>{const o=_.cloneDeep(SelectInputField);return o.config.main.label=n.label,n.value&&(o.config.main.options=n.value),n.freeSolo&&(o.config.main.freeSolo=n.freeSolo==="YES"),n.lazyLoading&&(o.config.main.lazyLoading=n.lazyLoading==="YES"),n.variant&&(o.config.main.variant=n.variant),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),n.style&&(o.config.style=JSON.parse(n.style)),o.scope=l,o};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Compare",variant:"contained",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(n,l)=>{const o=_.cloneDeep(Button);return n.buttonType&&(o.options.widget=n.buttonType==="IconButton"?"IconButton":"Button",n.buttonType==="ButtonWithIconAndText"?o.config.main.startIcon=n.iconName:o.config.main.icon=n.iconName),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.tooltipMessage&&(o.config.main.tooltipMessage=n.tooltipMessage),n.defaultStyle&&(n.buttonType==="IconButton"?o.config.main.styleDefault=n.defaultStyle==="true":o.config.main.enableDefaultStyle=n.defaultStyle!=="true"),o.scope=l,n.style&&(o.config.style=JSON.parse(n.style)),n.size&&(o.config.main.size=n.size),n.color&&(o.config.main.color=n.color),n.label&&(o.config.main.name=n.label),o};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{layout:12,main:{onMount:"onMount",enableExpandAll:!0,headerIcons:{},allRowData:[],downloadAllData:!1,columns:{dataColumns:[],actionColumns:[]}}}};const buildTable=(n,l)=>{const o=_.cloneDeep(Table);return o.scope=l,n.style&&(o.config.style=JSON.parse(n.style)),n.lazyLoading&&(o.config.main.lazyLoading=n.lazyLoading==="YES"),n.lazyLoadTree&&(o.config.main.lazyTree=n.lazyLoadTree==="YES"),n.defaultColumnSize&&(o.config.main.defaultColumnSize=n.defaultColumnSize),n.subRowsExpansionPageSize&&(o.config.main.subRowsExpansionPageSize=n.subRowsExpansionPageSize),n.enableRowMovement&&(o.config.main.enableRowMovement=n.enableRowMovement==="YES"),n.enableExpanding&&(o.config.main.enableExpanding=n.enableExpanding==="YES"),n.enableExpandAll&&(o.config.main.enableExpandAll=n.enableExpandAll==="YES"),n.filterFromLeafRows&&(o.config.main.filterFromLeafRows=n.filterFromLeafRows==="YES"),n.paginateExpandedRows&&(o.config.main.paginateExpandedRows=n.paginateExpandedRows==="YES"),n.SelectionAvailable&&(o.config.main.Selection=n.SelectionAvailable==="YES"),n.ColumnResizingAvailable&&(o.config.main.disableColumnResizing=n.ColumnResizingAvailable!=="YES"),n.DragAvailable&&(o.config.main.enableDrag=n.DragAvailable==="YES"),n.downloadAllData&&(o.config.main.downloadAllData=n.downloadAllData==="YES"),n.disableGlobalSearch&&(o.config.main.disableGlobalSearch=n.disableGlobalSearch==="YES"),n.disableColumnFilter&&(o.config.main.disableColumnFilter=n.disableColumnFilter==="YES"),n.disableSorting&&(o.config.main.disableSorting=n.disableSorting==="YES"),n.disableEditColumn&&(o.config.main.disableEditColumn=n.disableEditColumn==="YES"),n.disableFullScreenToggle&&(o.config.main.disableFullScreenToggle=n.disableFullScreenToggle==="YES"),n.disableDensityToggle&&(o.config.main.disableDensityToggle=n.disableDensityToggle==="YES"),n.disableDownloadFile&&(o.config.main.disableDownloadFile=n.disableDownloadFile==="YES"),n.disablePagination&&(o.config.main.disablePagination=n.disablePagination==="YES"),n.Table_Download_Keys_Name&&(o.config.main.TableDownloadKeysName=n.Table_Download_Keys_Name.map(u=>u.KeyName)),n.selectKey&&(o.config.main.selectKey=n.selectKey),n.maxPageSize&&(o.config.main.maxPageSize=n.maxPageSize),n.initialDensity&&(o.config.main.initialDensity=n.initialDensity),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o},Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{iconName:"",onClick:"onClick"},style:{}}},buildLabel=(n,l)=>{const o=_.cloneDeep(Box);return o.scope=l,o.config.main.heading=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.iconName&&(o.config.main.iconName=n.iconName),n.style&&(o.config.style=JSON.parse(n.style)),o},uploadFile={type:"Control",scope:"#/properties/attachment",config:{main:{label:"AttachmentFile",onClick:"onClick",required:!0,errorMessage:"Attachment File is not uploaded"},style:{backgroundColor:"none"},layout:{xs:6,sm:6,md:4,lg:3}},options:{widget:"UploadFile"}},downloadFile={type:"Control",scope:"#/properties/downloadAttachment",config:{main:{onClick:"onClick",required:!1},style:{backgroundColor:"none"},layout:{xs:6,sm:6,md:4,lg:3}},options:{widget:"DownloadFile"}},buildUploadFile=(n,l)=>{const o=_.cloneDeep(uploadFile);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=n.style),n.required&&(o.config.main.required=!0),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o.config.main.errorMessage=n.errorMessage,o},buildDownloadFile=(n,l)=>{const o=_.cloneDeep(downloadFile);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=n.layout),n.style&&(o.config.style=n.style),n.required&&(o.config.main.required=!0),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.errorMessage&&(o.config.main.errorMessage=n.errorMessage),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o};function Card(n){return{type:"WrapperLayout",config:{main:{},style:{wrapperStyle:{position:"relative",top:"50%",transform:"translateY(-50%)",marginBottom:0,borderRadius:"12px",fontFamily:"poppins"},componentsBoxStyle:{boxShadow:"0 0 6px 1px rgba(149, 147, 147, 0.25)",flexDirection:"column",overflow:"hidden",flexWrap:"nowrap",width:"100% !important",background:"transparent",borderRadius:"12px",padding:"20px 20px 20px 14px",height:"100%",minHeight:"100px",position:"relative",marginLeft:"0px","&: hover":{background:`${n.palette.primary.main}`,color:`${n.palette.primary.contrastText}`}}},layout:{xs:12,sm:12,md:3,lg:3}},elements:[{type:"Control",scope:"#/properties/initilCardScope",config:{main:{url:"https://www.svgrepo.com/show/500606/loading.svg"},style:{containerStyle:{position:"absolute",color:"inherit",top:"4px",right:"4px",display:"flex",justifyContent:"flex-end",alignItems:"flex-start"},imageStyle:{color:"inherit",width:"32px",height:"32px",padding:"0px",margin:"0px"}}},options:{widget:"Image"}},{type:"Control",scope:"#/properties/initilCardScope",config:{main:{heading:"Total Earnings"},style:{color:"inherit",fontSize:"16px",fontWeight:300,fontFamily:"Poppins",justifyContent:"flex-start",background:"inherit",position:"absolute",top:"8px",left:"12px",display:"flex",maxWidth:"200px",whiteSpace:"nowrap",overflowX:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/initilCardScope",config:{main:{heading:"5000.00"},style:{color:"inherit",display:"flex",fontSize:{xs:"22px",md:"40px"},fontWeight:600,background:"inherit",justifyContent:"flex-start",width:"100%",margin:"0px",marginBottom:"4px",marginTop:"8px",lineHeight:"1",maxWidth:"300px",whiteSpace:"nowrap",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/initilCardScope",config:{main:{heading:"Increased from last month"},style:{color:"inherit",fontSize:"12px",fontWeight:"400",justifyContent:"flex-start",background:"inherit",margin:"0px",paddingLeft:"2px",marginBottom:"8px",maxWidth:"200px",whiteSpace:"nowrap",overflowX:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},options:{widget:"Box"}}]}}const buildCard=(config,componentScope,store)=>{const card=_.cloneDeep(Card(store.theme.myTheme));return config.style&&(card.config.wrapperStyle=JSON.parse(config.style)),card.elements[0].scope=`#/properties/${config.name}/properties/url`,card.elements[1].scope=`#/properties/${config.name}/properties/label`,card.elements[2].scope=`#/properties/${config.name}/properties/value`,card.elements[3].scope=`#/properties/${config.name}/properties/description`,config.layout&&(card.config.layout=createLayoutFormat(config.layout)),config!=null&&config.titleIcon&&(card.elements[0].elements[0].elements[0].elements[0].config.main.heading=eval(`'\\${config.titleIcon}'`),card.elements[0].elements[0].elements[0].elements[1].config.style.left="24px"),config.label&&(card.elements[1].config.main.heading=config.label),config.url&&(card.elements[0].config.main.url=config.url),config.description&&(card.elements[3].config.main.heading=config.description),card};var MetricCard={type:"Control",scope:"#/properties/metricpath",options:{widget:"MetricCard"},config:{layout:{xs:12,sm:12,md:3,lg:3},main:{}}};const buildMetricCard=(n,l,o)=>{const u=_.cloneDeep(MetricCard);return u.scope=l,n.style&&(u.config.style=JSON.parse(n.style)),n.layout&&(u.config.layout=createLayoutFormat(n.layout)),n.label&&(u.config.main.label=n.label),n.url&&(u.config.main.url=n.url),n.description&&(u.config.main.description=n.description),n.cardValue&&(u.config.main.cardValue=n.cardValue),n.growthRate&&(u.config.main.growthRate=n.growthRate),n.color&&(u.config.main.color=n.color),u};var DateInputField={type:"Control",scope:"#/properties/date",options:{widget:"DateInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"",type:"date"}}};const DateTime={type:"Control",scope:"#/properties/date",options:{widget:"DateTimeInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"DateTime",type:"date"}}},buildDate=(n,l)=>{const o=_.cloneDeep(DateInputField);return o.config.main.label=n.label,o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.variant&&(o.config.main.variant=n.variant),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),n.style&&(o.config.style=JSON.parse(n.style)),o},buildDateTime=(n,l)=>{const o=_.cloneDeep(DateTime);return o.config.main.label=n.label,o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.variant&&(o.config.main.variant=n.variant),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),n.style&&(o.config.style=JSON.parse(n.style)),o};var RankCard={type:"Control",scope:"#/properties/path",options:{widget:"RankCard"},config:{layout:{xs:12,sm:6,md:6,lg:6},main:{}}};const buildRankCard=(n,l)=>{const o=_.cloneDeep(RankCard);return o.scope=l,n.rank&&(o.config.main.rank=`${n.rank}`),n.height&&(o.config.main.height=`${n.height}px`),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o};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=(n,l)=>{const o=_.cloneDeep(RollAndDice);return n.name&&(o.scope=l),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o};var Timer={type:"Control",scope:"#/properties/timer",options:{widget:"Timer"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{},style:{}}};const buildTimer=(n,l)=>{const o=_.cloneDeep(Timer);return o.scope=l,n.label&&(o.config.main.label=n.label),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o};var MultipleSelect={type:"Control",scope:"#/properties/path",options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"",type:"text",multiple:!0,variant:"outlined",options:[]},style:{}}};const buildMultiSelect=(n,l)=>{const o=_.cloneDeep(MultipleSelect);return o.scope=l,n.label&&(o.config.main.label=n.label),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.value&&(o.config.main.options=n.value),n.variant&&(o.config.main.variant=n.variant),n.lazyLoading&&(o.config.main.lazyLoading=n.lazyLoading==="YES"),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),n.style&&(o.config.style=JSON.parse(n.style)),o},buildBasicUiSchema=n=>({type:"HorizontalLayout",pageName:n.name,name:n.name,accessorKey:n.name,heading:n.label||n.name,elements:[]}),TextArea={type:"Control",scope:"#/properties/textarea",options:{widget:"TextArea"},config:{layout:12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px",background:"white",color:"black"}},main:{heading:"TextArea",minRows:4,hideButton:!0}}},buildTextArea=(n,l)=>{const o=_.cloneDeep(TextArea);return o.config.main.heading=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(o.config.style=JSON.parse(n.style)),n.placeholder&&(o.config.main.placeholder=n.placeholder),n.enableCodeEditor&&(o.config.main.enableCodeEditor=n.enableCodeEditor==="YES"),n.codeEditorLanguage&&(o.config.main.codeEditorLanguage=n.codeEditorLanguage),o.scope=l,o};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(n,l)=>{const o=_.cloneDeep(cardSlider);return n.name&&(o.scope=l),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o},Checkbox={type:"Control",scope:"#/properties/username1",options:{widget:"CheckBox"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Welcome to Hyperform"}}},buildCheckbox=(n,l)=>{const o=_.cloneDeep(Checkbox);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),o},buildLineGraph=(n,l)=>{const o=_.cloneDeep(LineGraph);return n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o.config.main.header=n.heading,n.height&&(o.config.style.containerStyle.height=n.height),n.leftMargin&&(o.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(o.config.main.bottomLabel=n.bottomLabel),n.yAxisValue&&(o.config.main.yAxisValue=n.yAxisValue),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.leftLabel&&(o.config.main.leftLabel=n.leftLabel),n.disableLeftLabel&&(o.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),n.legendHide&&(o.config.main.legendAvailable=n.legendHide!=="YES"),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.bottomAxisAngle&&(o.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),o.scope=l,o},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Enabled",options:["YES","NO"]}}},buildRadio=(n,l)=>{const o=_.cloneDeep(RadioUiSchema);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.sectionLabels&&(o.config.main.options=n.sectionLabels.map(u=>u.label||u.Options)),n.style&&(o.config.style=JSON.parse(n.style)),n.errorMessage&&(o.config.main.errorMessage=n.errorMessage),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{},style:{}}};const buildEmptyBox=(n,l)=>{const o=_.cloneDeep(emptyBox);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:12,elements:[],config:{main:{}}},buildArray=(n,l)=>{const o=_.cloneDeep(ArrayUiSchema);return n.allExpanded&&(o.config.main.allExpanded=n.allExpanded==="YES"),n.disableAddButton&&(o.config.main.disableAddButton=n.disableAddButton==="YES"),n.disableExpandAllButton&&(o.config.main.disableExpandAllButton=n.disableExpandAllButton==="YES"),n.disableRowActions&&(o.config.main.disableRowActions=n.disableRowActions==="YES"),n.style&&(o.config.style=JSON.parse(n.style)),o.config.main.rowSpacing=Number(n.rowSpacing),o.config.main.columnSpacing=Number(n.columnSpacing),o.config.main.spacing=Number(n.spacing),o.config.main.childElementLabel=n.childElementLabel,o.config.main.showKeyAsLabel=n.showKeyAsLabel,o.config.main.label=n.label,o.scope=l,o},TextField={type:"Control",scope:"#/properties/AAdhar",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Adhaar Card",formatStrArray:["9","9","9","9"," ","9","9","9","9"," ","X9","X9","X9","X9"],placeholder:"XXXX XXXX XXXX"}}},buildAdhaarField=(n,l)=>{const o=_.cloneDeep(TextField);return o.config.main.label=n.label,n.style&&(o.config.style=JSON.parse(n.style)),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o.config.main.errorMessage=`${n.name} is empty or invalid`,o.scope=l,o},PanField={type:"Control",scope:"#/properties/pan",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Pan Card",placeholder:"AAAAA0000A",formatStrArray:["A","A","A","A","A","9","9","9","9","A"]}}},buildPanField=(n,l)=>{const o=_.cloneDeep(PanField);return o.config.main.label=n.label,n.style&&(o.config.style=JSON.parse(n.style)),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o.config.main.errorMessage=`${n.name} is empty or invalid`,o.scope=l,o},FileInput={type:"Control",scope:"#/properties/docAggrementCopy",options:{widget:"FileInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{required:!1,onUpload:"onFileUpload",onDownload:"onFileDownload",label:"Aggrement Copy",onClick:"onClick"},style:{backgroundColor:"none"}}},buildFileInput=(n,l)=>{const o=_.cloneDeep(FileInput);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),o.config.main.variant=n.variant,o.config.main.disableUpload=n.disableUpload==="YES",o.config.main.disableDownload=n.disableDownload==="YES",o.config.main.disableDelete=n.disableDelete==="YES",o.config.main.useLabel=n.useLabel==="YES",o.config.main.description=n.description,o.config.main.toolTip=n.toolTip,o.config.main.chooseButtonLabel=n.chooseButtonLabel,o.config.main.noFileAvailableMessage=n.noFileAvailableMessage,n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o.config.main.externalUpload=n.externalUpload==="YES",o},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=(n,l)=>{const o=_.cloneDeep(Stepper);return o.scope=l,o.config.main.resetButton=n.resetButton==="YES",n.defaultButtonAvailable&&(o.config.main.defaultButtonAvailable=n.defaultButtonAvailable==="YES"),o.config.main.resetText=n.resetText||"ResetData",o.config.main.completeText=n.completeText||"Complete Text",o.config.main.orientation=n.orientation||"horizontal",n.sectionLabels&&(o.config.main.steps=n.sectionLabels.map((u,g)=>({label:u.label,id:g}))),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),o},PopUP={type:"Control",scope:"#/properties/text",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{label:"PopUp",onClose:"onClose",fullScreen:!1,fullWidth:!1,maxWidth:!1,alignItems:!1,spacing:2},style:{}}},buildPopUp=(n,l)=>{const o=_.cloneDeep(PopUP);return o.scope=l,o.config.main.title=n.label,o.config.main.fullScreen=n.fullScreen==="YES",o.config.main.fullWidth=n.fullWidth==="YES",o.config.main.maxWidth=n.maxWidth||!1,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(o.config.style=JSON.parse(n.style)),o},dataGrid={type:"Control",scope:"#/properties/dataGrid",layout:12,options:{widget:"DataGrid"},elements:[],config:{main:{elevation:0,useWrapper:!1},style:{}}},buildDataGrid=(n,l)=>{const o=_.cloneDeep(dataGrid);return o.scope=l,n.elevation&&(o.config.main.elevation=+n.elevation),o.config.main.divider=n.divider!=="NO",n.height&&(o.config.main.height=`${n.height}px`),n.justifyContent&&(o.config.main.justifyContent=n.justifyContent),n.label&&(o.config.main.label=n.label),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.cardLayout&&(o.config.cardLayout=createLayoutFormat(n.cardLayout,n.type)),n.style&&(o.config.style=JSON.parse(n.style)),o},InputSlider={type:"Control",scope:"#/properties/inputSlider",options:{widget:"InputSlider"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{limitToMax:!1,max:1e4,step:1e3,min:0,label:"Slider"}}},buildInputSlider=(n,l)=>{const o=_.cloneDeep(InputSlider);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.limitToMax&&(o.config.main.limitToMax=n.limitToMax==="YES"),n.max&&(o.config.main.max=n.max),n.step&&(o.config.main.step=n.step),n.min&&(o.config.main.min=n.min),n.style&&(o.config.main.defaultStyle=JSON.parse(n.style)),o},TreeMap={type:"Control",scope:"#/properties/TreeMap2",config:{layout:12,main:{layout:"cartsian",orientation:"vertical",header:"Territory Hierarchy",linkType:"step",graphHeight:"500px"},style:{BoxStyle:{borderRadius:"5px"}}},options:{widget:"TreeMap"},elements:[]},buildTreeMap=(n,l)=>{const o=_.cloneDeep(TreeMap);return o.scope=l,n.label&&(o.config.main.header=n.label),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.orientation&&(o.config.main.orientation=n.orientation),n.linkType&&(o.config.main.linkType=n.linkType),n.graphHeight&&(o.config.main.graphHeight=n.graphHeight),n.graphWidth&&(o.config.main.graphWidth=n.graphWidth),n.graphZoomHeight&&(o.config.main.graphZoomHeight=n.graphZoomHeight),n.graphZoomWidth&&(o.config.main.graphZoomWidth=n.graphZoomWidth),n.style&&(o.config.style=JSON.parse(n.style)),o};var Thought={type:"Control",scope:"#/properties/path",options:{widget:"Thought"},config:{layout:{xs:11.5,sm:11.5,md:8,lg:8},main:{}}};const buildThoughtOfTheDay=(n,l)=>{const o=_.cloneDeep(Thought);return o.scope=l,n.thought&&(o.config.main.thought=`${n.thought}`),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.label&&(o.config.main.label=n.label),n.style&&(o.config.style=JSON.parse(n.style)),o};var horizontalLayout={type:"HorizontalLayout",config:{layout:12,main:{rowSpacing:3,divider:!1},defaultStyle:!0},elements:[]};const buildHorizontalLayout=(n,l)=>{const o=_.cloneDeep(horizontalLayout);return o.scope=l,n.style&&(o.config.style=JSON.parse(n.style)),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o},imageUiSchema={type:"Control",scope:"#/properties/Logo",options:{widget:"Image"},config:{layout:3,main:{url:"",onClick:"onClick"},style:{}}},buildImage=(n,l)=>{const o=_.cloneDeep(imageUiSchema);return o.scope=l,o.config.main.url=n.imageUrl,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),n.height&&(o.config.style.imageStyle={...o.config.style.imageStyle,height:n.height}),o.config.main.toolTip=n.toolTip,o.config.main.toolTipPosition=n.toolTipPosition,o},buildAreaGraph=(n,l)=>{const o=_.cloneDeep(AreaBarGraph);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o.config.main.type=n.graphType,o.scope=l,o.config.main.header=n.heading,o.config.main.subHeader=n.subHeader,n.legendHide&&(o.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(o.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.height&&(o.config.style.containerStyle.height=n.height),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),n.xAxisFormatType&&(o.config.main.xAxisFormatType=n.xAxisFormatType),n.yAxisTickCount&&(o.config.main.yAxisTickCount=n.yAxisTickCount),n.xAxisTickCount&&(o.config.main.xAxisTickCount=n.xAxisTickCount),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.xAxisType&&(o.config.main.xAxisType=n.xAxisType),n.bottomLabel&&(o.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(o.config.main.leftLabel=n.leftLabel),n.disableLeftLabel&&(o.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),n.leftMargin&&(o.config.style.labelStyle.margin={left:n.leftMargin}),o},buildStackBarLineGraph=(n,l)=>{const o=_.cloneDeep(StackBarLineG);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o.config.main.type=n.graphType,o.scope=l,o.config.main.header=n.heading,o.config.main.subHeader=n.subHeader,n.legendHide&&(o.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(o.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.height&&(o.config.style.containerStyle.height=n.height),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),n.yAxisTickCount&&(o.config.main.yAxisTickCount=n.yAxisTickCount),n.xAxisTickCount&&(o.config.main.xAxisTickCount=n.xAxisTickCount),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.xAxisType&&(o.config.main.xAxisType=n.xAxisType),n.bottomLabel&&(o.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(o.config.main.leftLabel=n.leftLabel),n.rightLabel&&(o.config.main.rightLabel=n.rightLabel),n.disableLeftLabel&&(o.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),n.growthRateKey&&(o.config.main.growthRateKey=n.growthRateKey),n.tooltipUnit&&(o.config.main.tooltipUnit=n.tooltipUnit),n.leftMargin&&(o.config.style.labelStyle.margin={left:n.leftMargin}),o},cameraUiSchema={type:"Control",scope:"#/properties/camera",options:{widget:"Camera"},config:{main:{label:"Upload Photo",multiUplaod:!1,onUpload:"onFileUpload"}}},buildCamera=(n,l)=>{const o=_.cloneDeep(cameraUiSchema);return o.scope=l,n.iconName&&(o.config.main.startIcon=n.iconName),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.tooltipMessage&&(o.config.main.tooltipMessage=n.tooltipMessage),o.config.main.multiUplaod=n.multiUplaod==="YES",n.style&&(o.config.style=JSON.parse(n.style)),n.size&&(o.config.main.size=n.size),n.variant&&(o.config.main.variant=n.variant),n.color&&(o.config.main.color=n.color),n.label&&(o.config.main.label=n.label),o};var ButtonGroup={type:"Control",scope:"#/properties/buttonGroup",options:{widget:"ButtonGroup"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{variant:"contained",styleDefault:!1,size:"small"},style:{}}};const buildButtonGroup=(n,l)=>{const o=_.cloneDeep(ButtonGroup);return n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o.scope=l,n.multiSelect&&(o.config.main.multiSelect=n.multiSelect==="YES"),n.style&&(o.config.style=JSON.parse(n.style)),n.size&&(o.config.main.size=n.size),n.color&&(o.config.main.color=n.color),o},PopOver={type:"Control",scope:"#/properties/text",options:{widget:"Popover"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{label:"PopOver"},style:{}}},buildPopOver=(n,l)=>{const o=_.cloneDeep(PopOver);return o.scope=l,o.config.main.positionVertical=n.positionVertical,o.config.main.positionHorizontal=n.positionHorizontal,o.config.main.contentVertical=n.contentVertical,o.config.main.contentHorizontal=n.contentHorizontal,o.config.main.width=n.width,o.config.main.gap=n.gap,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(o.config.style=JSON.parse(n.style)),o},OTPSchema={type:"Control",scope:"#/properties/OTPInput",options:{widget:"OTPInput"},config:{layout:{xs:12,sm:12,md:3,lg:3},main:{seperator:"",length:4,type:"number",masking:!0}}},buildOTP_Input=(n,l)=>{const o=_.cloneDeep(OTPSchema);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),n.errorMessage&&(o.config.main.errorMessage=n.errorMessage),n.toolTip&&(o.config.main.toolTip=n.toolTip),o.config.main.masking=n.masking==="YES",o.config.main.type=n.OTP_Format,o.config.main.seperator=n.seperator,o.config.main.length=+n.length,o};var pdfViewer={type:"Control",scope:"#/properties/pdfviewer",options:{widget:"PdfViewer"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"PDF"}}};const buildPdfViewer=(n,l)=>{const o=_.cloneDeep(pdfViewer);return o.scope=l,o.config.main.scale=n.scale,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),o};exports.schema={type:"object",properties:{},required:[]};function buildSchemaFromConfig(n,l){var u,g,c,h,x,v,E,F,B,U,j,X,K;if(n.elements)if(n.type==="Array"){(u=l.properties)!=null||(l.properties={}),(h=(g=l.properties)[c=n.name])!=null||(g[c]={type:"array",items:{type:"object",properties:{},required:[]}});const M=l.properties[n.name].items;(x=n.elements)==null||x.forEach(ae=>buildSchemaFromConfig(ae,M));return}else{(v=n.elements)==null||v.forEach(M=>buildSchemaFromConfig(M,l));return}(E=l.properties)!=null||(l.properties={}),(U=(F=l.properties)[B=n.name])!=null||(F[B]={});const o=l.properties[n.name];(j=n.validation)==null||j.forEach(M=>{var ae;M.validationType==="required"?((ae=l.required)!=null||(l.required=[]),l.required.push(n.name)):M.validationType==="readOnly"?(o.type="string",o.disabled=!0):(o.type="string",o[M.validationType]=isNaN(M.validationValue)?M.validationValue:Number(M.validationValue))}),n.type==="Select"&&((X=n.value)==null?void 0:X.length)&&(o.oneOf=n.value.map(M=>({const:M.value,title:M.label}))),n.type==="MultipleSelect"&&((K=n.value)==null?void 0:K.length)&&(o.type="array",o.items={oneOf:n.value.map(M=>({const:M.value,title:M.label}))})}const buildSchema=n=>(buildSchemaFromConfig(n,exports.schema),exports.schema),buildUiSchema=(n,l)=>{let o={};const u=`#/properties/${n.name}`;switch(n.type){case"OTP_Input":o=buildOTP_Input(n,u);break;case"TreeMap":o=buildTreeMap(n,u);break;case"DateTime":o=buildDateTime(n,u);break;case"InputSlider":o=buildInputSlider(n,u);break;case"DataGrid":o=buildDataGrid(n,u);break;case"Stepper":o=buildStepper(n,u);break;case"PopUp":o=buildPopUp(n,u);break;case"PopOver":o=buildPopOver(n,u);break;case"FileInput":o=buildFileInput(n,u);break;case"AadharcardText":o=buildAdhaarField(n,u);break;case"PanCardText":o=buildPanField(n,u);break;case"TabSection":o=buildTabSection(n,u);break;case"RunnerBoyProgressBar":o=RunnerBoyProgressbar(n,u);break;case"WrapperSection":o=buildWrapperSection(n,u);break;case"HorizontalLayout":o=buildHorizontalLayout(n,u);break;case"Text":o=buildTextField(n,u);break;case"TextArea":o=buildTextArea(n,u);break;case"Date":o=buildDate(n,u);break;case"Select":o=buildSelect(n,u);break;case"Radio":o=buildRadio(n,u);break;case"Button":o=buildButton(n,u);break;case"ButtonGroup":o=buildButtonGroup(n,u);break;case"Table":o=buildTable(n,u);break;case"Array":o=buildArray(n,u);break;case"Box":o=buildLabel(n,u);break;case"CheckBox":o=buildCheckbox(n,u);break;case"UploadFile":o=buildUploadFile(n,u);break;case"DownloadFile":o=buildDownloadFile(n,u);break;case"EmptyBox":o=buildEmptyBox(n,u);break;case"card":o=buildCard(n,u,l);break;case"MetricCard":o=buildMetricCard(n,u);break;case"Graph":switch(n.graphType){case"BarGraph":case"StackBarGraph":o=buildStackbarGraph(n,u);break;case"LineGraph":o=buildLineGraph(n,u);break;case"PieGraph":o=buildPieGraph(n,u);break;case"HorizontalBarGraph":case"HorizontalStackBarGraph":o=buildHorizontalBarGraph(n,u);break;case"AreaGraph":o=buildAreaGraph(n,u);break;case"StackBarLineGraph":o=buildStackBarLineGraph(n,u);break;default:o=buildStackbarGraph(n,u);break}break;case"ProgressBar":o=buildProgressBar(n,u);break;case"SpeedoMeter":o=buildSpeedoMeter(n,u);break;case"ProgressBarCard":o=buildProgressBarCard(n,u);break;case"RankCard":o=buildRankCard(n,u);break;case"Rank":o=buildRollAndDice(n,u);break;case"Slider":o=buildSlider(n,u);break;case"Timer":o=buildTimer(n,u);break;case"ColumnGroup":o={accessorKey:n.name,header:n.label||n.name,elements:[]};break;case"MultipleSelect":o=buildMultiSelect(n,u);break;case"LeaderBoard":o=buildLeaderBoard(n);break;case"Thought":o=buildThoughtOfTheDay(n,u);break;case"Image":o=buildImage(n,u);break;case"Camera":o=buildCamera(n,u);break;case"PdfViewer":o=buildPdfViewer(n,u);break;default:exports.schema={type:"object",properties:{},required:[]},o=buildBasicUiSchema(n)}if(n!=null&&n.elements)if((n==null?void 0:n.type)==="LeaderBoard"){const g=[];n.elements.map(c=>{const h={accessorKey:c.name,type:c.type==="ColumnGroup"?"ColumnGroup":c.columnFormat,header:c.label||c.name,columnKey:c.columnKey};g.push({...h})}),o.elements=g}else if(n.type=="ColumnGroup"){const g={};n.sizeHolder&&n.sizeHolder.map((c,h)=>{g[c.keyName]=c.value}),o.elements=n.elements.map((c,h)=>{const x={accessorKey:c.name,type:c.type==="ColumnGroup"?"ColumnGroup":c.columnFormat,header:c.label||c.name,size:g[c.name]||180,enableColumnFilter:c.enableFilter!=="No",columnFilterModeOptions:c.filteringOptions,enableSorting:c.enableSorting!=="No",columnKey:c.columnKey,dateFormat:c.dateFormat};return c.type?{widget:c.type!="ColumnGroup"?buildUiSchema(c,l):void 0,...x,...c.type==="ColumnGroup"?buildUiSchema(c,l):{}}:{...x}})}else if(n.type=="Table"){const g={};n.sizeHolder&&n.sizeHolder.map((v,E)=>{g[v.keyName]=v.value});const c=[],h=[],x=[];n.elements.filter((v,E)=>{const F={accessorKey:v.name,type:v.type==="ColumnGroup"?"ColumnGroup":v.columnFormat,header:v.label||v.name,size:g[v.name]||180,enableColumnFilter:v.enableFilter!=="No",columnFilterModeOptions:v.filteringOptions,enableSorting:v.enableSorting!=="No",columnKey:v.columnKey,dateFormat:v.dateFormat};if(v.type){if(v.elementType=="action"){const U=buildUiSchema(v,l);return h.push(U),!1}if(v.elementType=="tableHeader"){const U=buildUiSchema(v,l);return c.push({widget:U}),!1}const B={widget:v.type!="ColumnGroup"?buildUiSchema(v,l):void 0,...F,...v.type==="ColumnGroup"?buildUiSchema(v,l):{}};x.push(B)}else x.push({...F})}),o.elements=x,o.config.action=h,o.config.main.headerIcons.elements=c}else o.elements=n.elements.map((g,c)=>buildUiSchema(g,l));return n.tabLabelElements&&(o.tabLabelElements=n.tabLabelElements.map((g,c)=>buildUiSchema(g,l))),o};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,exports.buildUiSchema=buildUiSchema,exports.clearFromSessionStorage=clearFromSessionStorage,exports.downloadFile=downloadFile$1,exports.downloadFileFromUrl=downloadFileFromUrl,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
|