impaktapps-ui-builder 1.0.308 → 1.0.310
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 +18 -16
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +7 -7
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +16 -13
|
@@ -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",v="Invalid `variable` option passed into `_.template`",b="__lodash_hash_undefined__",F=500,E="__lodash_placeholder__",B=1,k=2,X=4,Z=1,K=2,M=1,ie=2,Ge=4,le=8,ne=16,Ce=32,Je=64,Ae=128,at=256,Tt=512,mn=30,gn="...",yn=800,hn=16,Gt=1,bn=2,xn=3,ht=1/0,lt=9007199254740991,dl=17976931348623157e292,vn=0/0,We=4294967295,fl=We-1,ml=We>>>1,gl=[["ary",Ae],["bind",M],["bindKey",ie],["curry",le],["curryRight",ne],["flip",Tt],["partial",Ce],["partialRight",Je],["rearg",at]],Et="[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]",ke="[object Map]",Vt="[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]",At="[object DataView]",mo="[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,Oi=/&(?:amp|lt|gt|quot|#39);/g,ki=/[&<>"']/g,Il=RegExp(Oi.source),Fl=RegExp(ki.source),Tl=/<%-([\s\S]+?)%>/g,El=/<%([\s\S]+?)%>/g,Hi=/<%=([\s\S]+?)%>/g,Al=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ll=/^\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=/,? & /,Ol=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,kl=/[()=,{}\[\]\/\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,Fn="\\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="["+Fn+"]",Vi="["+Ki+"]",Tn="["+Ui+"]",qi="\\d+",ns="["+Yi+"]",Ji="["+$i+"]",Xi="[^"+Fn+Ki+qi+Yi+$i+Gi+"]",Fo="\\ud83c[\\udffb-\\udfff]",os="(?:"+Tn+"|"+Fo+")",Zi="[^"+Fn+"]",To="(?:\\ud83c[\\udde6-\\uddff]){2}",Eo="[\\ud800-\\udbff][\\udc00-\\udfff]",Lt="["+Gi+"]",Qi="\\u200d",ji="(?:"+Ji+"|"+Xi+")",is="(?:"+Lt+"|"+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,To,Eo].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,To,Eo].join("|")+")"+ir,ps="(?:"+[Zi+Tn+"?",Tn,To,Eo,ts].join("|")+")",us=RegExp(Io,"g"),cs=RegExp(Tn,"g"),Ao=RegExp(Fo+"(?="+Fo+")|"+ps+ir,"g"),ds=RegExp([Lt+"?"+Ji+"+"+er+"(?="+[Vi,Lt,"$"].join("|")+")",is+"+"+tr+"(?="+[Vi,Lt+ji,"$"].join("|")+")",Lt+"?"+ji+"+"+er,Lt+"+"+tr,ls,as,qi,ss].join("|"),"g"),fs=RegExp("["+Qi+Fn+Ui+Wi+"]"),ms=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ys=-1,j={};j[mo]=j[go]=j[yo]=j[ho]=j[bo]=j[xo]=j[vo]=j[So]=j[Co]=!0,j[Et]=j[Sn]=j[Zt]=j[Wt]=j[At]=j[Kt]=j[Cn]=j[wn]=j[ke]=j[Vt]=j[Xe]=j[qt]=j[He]=j[Jt]=j[Xt]=!1;var Q={};Q[Et]=Q[Sn]=Q[Zt]=Q[At]=Q[Wt]=Q[Kt]=Q[mo]=Q[go]=Q[yo]=Q[ho]=Q[bo]=Q[ke]=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,ce=rr||ws||Function("return this")(),Lo=l&&!l.nodeType&&l,bt=Lo&&!0&&n&&!n.nodeType&&n,ar=bt&&bt.exports===Lo,Bo=ar&&rr.process,Le=function(){try{var m=bt&&bt.require&&bt.require("util").types;return m||Bo&&Bo.binding&&Bo.binding("util")}catch{}}(),lr=Le&&Le.isArrayBuffer,sr=Le&&Le.isDate,pr=Le&&Le.isMap,ur=Le&&Le.isRegExp,cr=Le&&Le.isSet,dr=Le&&Le.isTypedArray;function we(m,S,x){switch(x.length){case 0:return m.call(S);case 1:return m.call(S,x[0]);case 2:return m.call(S,x[0],x[1]);case 3:return m.call(S,x[0],x[1],x[2])}return m.apply(S,x)}function _s(m,S,x,A){for(var N=-1,W=m==null?0:m.length;++N<W;){var se=m[N];S(A,se,x(se),m)}return A}function Be(m,S){for(var x=-1,A=m==null?0:m.length;++x<A&&S(m[x],x,m)!==!1;);return m}function Is(m,S){for(var x=m==null?0:m.length;x--&&S(m[x],x,m)!==!1;);return m}function fr(m,S){for(var x=-1,A=m==null?0:m.length;++x<A;)if(!S(m[x],x,m))return!1;return!0}function st(m,S){for(var x=-1,A=m==null?0:m.length,N=0,W=[];++x<A;){var se=m[x];S(se,x,m)&&(W[N++]=se)}return W}function En(m,S){var x=m==null?0:m.length;return!!x&&Bt(m,S,0)>-1}function Do(m,S,x){for(var A=-1,N=m==null?0:m.length;++A<N;)if(x(S,m[A]))return!0;return!1}function ee(m,S){for(var x=-1,A=m==null?0:m.length,N=Array(A);++x<A;)N[x]=S(m[x],x,m);return N}function pt(m,S){for(var x=-1,A=S.length,N=m.length;++x<A;)m[N+x]=S[x];return m}function Po(m,S,x,A){var N=-1,W=m==null?0:m.length;for(A&&W&&(x=m[++N]);++N<W;)x=S(x,m[N],N,m);return x}function Fs(m,S,x,A){var N=m==null?0:m.length;for(A&&N&&(x=m[--N]);N--;)x=S(x,m[N],N,m);return x}function Ro(m,S){for(var x=-1,A=m==null?0:m.length;++x<A;)if(S(m[x],x,m))return!0;return!1}var Ts=Mo("length");function Es(m){return m.split("")}function As(m){return m.match(Ol)||[]}function mr(m,S,x){var A;return x(m,function(N,W,se){if(S(N,W,se))return A=W,!1}),A}function An(m,S,x,A){for(var N=m.length,W=x+(A?1:-1);A?W--:++W<N;)if(S(m[W],W,m))return W;return-1}function Bt(m,S,x){return S===S?Us(m,S,x):An(m,gr,x)}function Ls(m,S,x,A){for(var N=x-1,W=m.length;++N<W;)if(A(m[N],S))return N;return-1}function gr(m){return m!==m}function yr(m,S){var x=m==null?0:m.length;return x?Oo(m,S)/x:vn}function Mo(m){return function(S){return S==null?o:S[m]}}function No(m){return function(S){return m==null?o:m[S]}}function hr(m,S,x,A,N){return N(m,function(W,se,J){x=A?(A=!1,W):S(x,W,se,J)}),x}function Bs(m,S){var x=m.length;for(m.sort(S);x--;)m[x]=m[x].value;return m}function Oo(m,S){for(var x,A=-1,N=m.length;++A<N;){var W=S(m[A]);W!==o&&(x=x===o?W:x+W)}return x}function ko(m,S){for(var x=-1,A=Array(m);++x<m;)A[x]=S(x);return A}function Ds(m,S){return ee(S,function(x){return[x,m[x]]})}function br(m){return m&&m.slice(0,Cr(m)+1).replace(_o,"")}function _e(m){return function(S){return m(S)}}function Ho(m,S){return ee(S,function(x){return m[x]})}function Qt(m,S){return m.has(S)}function xr(m,S){for(var x=-1,A=m.length;++x<A&&Bt(S,m[x],0)>-1;);return x}function vr(m,S){for(var x=m.length;x--&&Bt(S,m[x],0)>-1;);return x}function Ps(m,S){for(var x=m.length,A=0;x--;)m[x]===S&&++A;return A}var Rs=No(hs),Ms=No(bs);function Ns(m){return"\\"+vs[m]}function Os(m,S){return m==null?o:m[S]}function Dt(m){return fs.test(m)}function ks(m){return ms.test(m)}function Hs(m){for(var S,x=[];!(S=m.next()).done;)x.push(S.value);return x}function zo(m){var S=-1,x=Array(m.size);return m.forEach(function(A,N){x[++S]=[N,A]}),x}function Sr(m,S){return function(x){return m(S(x))}}function ut(m,S){for(var x=-1,A=m.length,N=0,W=[];++x<A;){var se=m[x];(se===S||se===E)&&(m[x]=E,W[N++]=x)}return W}function Ln(m){var S=-1,x=Array(m.size);return m.forEach(function(A){x[++S]=A}),x}function zs(m){var S=-1,x=Array(m.size);return m.forEach(function(A){x[++S]=[A,A]}),x}function Us(m,S,x){for(var A=x-1,N=m.length;++A<N;)if(m[A]===S)return A;return-1}function Ys(m,S,x){for(var A=x+1;A--;)if(m[A]===S)return A;return A}function Pt(m){return Dt(m)?Gs(m):Ts(m)}function ze(m){return Dt(m)?Ws(m):Es(m)}function Cr(m){for(var S=m.length;S--&&Pl.test(m.charAt(S)););return S}var $s=No(xs);function Gs(m){for(var S=Ao.lastIndex=0;Ao.test(m);)++S;return S}function Ws(m){return m.match(Ao)||[]}function Ks(m){return m.match(ds)||[]}var Vs=function m(S){S=S==null?ce:Rt.defaults(ce.Object(),S,Rt.pick(ce,gs));var x=S.Array,A=S.Date,N=S.Error,W=S.Function,se=S.Math,J=S.Object,Uo=S.RegExp,qs=S.String,De=S.TypeError,Bn=x.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=ce._,js=Uo("^"+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,On=Sr(J.getPrototypeOf,J),Ir=J.create,Fr=Mt.propertyIsEnumerable,kn=Bn.splice,Tr=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!==ce.clearTimeout&&S.clearTimeout,tp=A&&A.now!==ce.Date.now&&A.now,np=S.setTimeout!==ce.setTimeout&&S.setTimeout,zn=se.ceil,Un=se.floor,Yo=J.getOwnPropertySymbols,op=Mn?Mn.isBuffer:o,Er=S.isFinite,ip=Bn.join,rp=Sr(J.keys,J),pe=se.max,fe=se.min,ap=A.now,lp=S.parseInt,Ar=se.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,Ot={},pp=It($o),up=It(en),cp=It(Go),dp=It(Nt),fp=It(tn),$n=ct?ct.prototype:o,on=$n?$n.valueOf:o,Lr=$n?$n.toString:o;function s(e){if(oe(e)&&!O(e)&&!(e instanceof $)){if(e instanceof Pe)return e;if(q.call(e,"__wrapped__"))return Ba(e)}return new Pe(e)}var kt=function(){function e(){}return function(t){if(!te(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:Tl,evaluate:El,interpolate:Hi,variable:"",imports:{_:s}},s.prototype=Gn.prototype,s.prototype.constructor=s,Pe.prototype=kt(Gn.prototype),Pe.prototype.constructor=Pe;function $(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=We,this.__views__=[]}function mp(){var e=new $(this.__wrapped__);return e.__actions__=be(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=be(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=be(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=O(e),r=t<0,a=i?e.length:0,p=Eu(0,a,this.__views__),d=p.start,f=p.end,y=f-d,C=r?f:d-1,w=this.__iteratees__,I=w.length,T=0,L=fe(y,this.__takeCount__);if(!i||!r&&a==y&&L==y)return ea(e,this.__actions__);var P=[];e:for(;y--&&T<L;){C+=t;for(var z=-1,R=e[C];++z<I;){var Y=w[z],G=Y.iteratee,Te=Y.type,he=G(R);if(Te==bn)R=he;else if(!he){if(Te==Gt)continue e;break e}}P[T++]=R}return P}$.prototype=kt(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===b?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?b: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():kn.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 Fp(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=Fp;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 Tp(){this.size=0,this.__data__={hash:new vt,map:new(en||Ze),string:new vt}}function Ep(e){var t=oo(this,e).delete(e);return this.size-=t?1:0,t}function Ap(e){return oo(this,e).get(e)}function Lp(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=Tp,Qe.prototype.delete=Ep,Qe.prototype.get=Ap,Qe.prototype.has=Lp,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,b),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 Np(e){return this.__data__.get(e)}function Op(e){return this.__data__.has(e)}function kp(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=Np,Ue.prototype.has=Op,Ue.prototype.set=kp;function Br(e,t){var i=O(e),r=!i&&Ft(e),a=!i&&!r&&yt(e),p=!i&&!r&&!a&&Yt(e),d=i||r||a||p,f=d?ko(e.length,qs):[],y=f.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)))&&f.push(C);return f}function Dr(e){var t=e.length;return t?e[ti(0,t-1)]:o}function Hp(e,t){return io(be(e),Ct(t,0,e.length))}function zp(e){return io(be(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&&Ve(t,ue(t),e)}function Yp(e,t){return e&&Ve(t,ve(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=x(r),p=e==null;++i<r;)a[i]=p?o:Fi(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,f=t&B,y=t&k,C=t&X;if(i&&(d=a?i(e,r,a,p):i(e)),d!==o)return d;if(!te(e))return e;var w=O(e);if(w){if(d=Lu(e),!f)return be(e,d)}else{var I=me(e),T=I==wn||I==Mi;if(yt(e))return oa(e,f);if(I==Xe||I==Et||T&&!a){if(d=y||T?{}:Ca(e),!f)return y?xu(e,Yp(d,e)):bu(e,Pr(d,e))}else{if(!Q[I])return a?e:{};d=Bu(e,I,f)}}p||(p=new Ue);var L=p.get(e);if(L)return L;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?ve:ue,z=w?o:P(e);return Be(z||e,function(R,Y){z&&(Y=R,R=e[Y]),rn(d,Y,Re(R,t,i,Y,e,p))}),d}function $p(e){var t=ue(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=En,d=!0,f=e.length,y=[],C=t.length;if(!f)return y;i&&(t=ee(t,_e(i))),r?(p=Do,d=!1):t.length>=g&&(p=Qt,d=!1,t=new St(t));e:for(;++a<f;){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(Ke),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 Kn(e,t,i){for(var r=-1,a=e.length;++r<a;){var p=e[r],d=t(p);if(d!=null&&(f===o?d===d&&!Fe(d):i(d,f)))var f=d,y=p}return y}function Wp(e,t,i,r){var a=e.length;for(i=H(i),i<0&&(i=-i>a?0:a+i),r=r===o||r>a?a:H(r),r<0&&(r+=a),r=i>r?0:ja(r);i<r;)e[i++]=t;return e}function Or(e,t){var i=[];return dt(e,function(r,a,p){t(r,a,p)&&i.push(r)}),i}function de(e,t,i,r,a){var p=-1,d=e.length;for(i||(i=Pu),a||(a=[]);++p<d;){var f=e[p];t>0&&i(f)?t>1?de(f,t-1,i,r,a):pt(a,f):r||(a[a.length]=f)}return a}var Vo=pa(),kr=pa(!0);function Ke(e,t){return e&&Vo(e,t,ue)}function qo(e,t){return e&&kr(e,t,ue)}function Vn(e,t){return st(t,function(i){return ot(e[i])})}function wt(e,t){t=mt(t,e);for(var i=0,r=t.length;e!=null&&i<r;)e=e[qe(t[i++])];return i&&i==r?e:o}function Hr(e,t,i){var r=t(e);return O(e)?r:pt(r,i(e))}function ge(e){return e==null?e===o?vl:bl:xt&&xt in J(e)?Tu(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>=fe(t,i)&&e<pe(t,i)}function Xo(e,t,i){for(var r=i?Do:En,a=e[0].length,p=e.length,d=p,f=x(p),y=1/0,C=[];d--;){var w=e[d];d&&t&&(w=ee(w,_e(t))),y=fe(w.length,y),f[d]=!i&&(t||a>=120&&w.length>=120)?new St(d&&w):o}w=e[0];var I=-1,T=f[0];e:for(;++I<a&&C.length<y;){var L=w[I],P=t?t(L):L;if(L=i||L!==0?L:0,!(T?Qt(T,P):r(C,P,i))){for(d=p;--d;){var z=f[d];if(!(z?Qt(z,P):r(e[d],P,i)))continue e}T&&T.push(P),C.push(L)}}return C}function Jp(e,t,i,r){return Ke(e,function(a,p,d){t(r,i(a),p,d)}),r}function ln(e,t,i){t=mt(t,e),e=Fa(e,t);var r=e==null?e:e[qe(Ne(t))];return r==null?o:we(r,e,i)}function zr(e){return oe(e)&&ge(e)==Et}function Xp(e){return oe(e)&&ge(e)==Zt}function Zp(e){return oe(e)&&ge(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=O(e),f=O(t),y=d?Sn:me(e),C=f?Sn:me(t);y=y==Et?Xe:y,C=C==Et?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&Z)){var L=w&&q.call(e,"__wrapped__"),P=I&&q.call(t,"__wrapped__");if(L||P){var z=L?e.value():e,R=P?t.value():t;return p||(p=new Ue),a(z,R,i,r,p)}}return T?(p||(p=new Ue),Fu(e,t,i,r,a,p)):!1}function jp(e){return oe(e)&&me(e)==ke}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 f=i[a];if(d&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++a<p;){f=i[a];var y=f[0],C=e[y],w=f[1];if(d&&f[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,Z|K,r,I):T))return!1}}return!0}function Ur(e){if(!te(e)||Mu(e))return!1;var t=ot(e)?js:$l;return t.test(It(e))}function eu(e){return oe(e)&&ge(e)==qt}function tu(e){return oe(e)&&me(e)==He}function nu(e){return oe(e)&&uo(e.length)&&!!j[ge(e)]}function Yr(e){return typeof e=="function"?e:e==null?Se:typeof e=="object"?O(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(!te(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=xe(e)?x(e.length):[];return dt(e,function(a,p,d){r[++i]=t(a,p,d)}),r}function Gr(e){var t=mi(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(qe(e),t):function(i){var r=Fi(i,e);return r===o&&r===t?Ti(i,e):sn(t,r,Z|K)}}function qn(e,t,i,r,a){e!==t&&Vo(t,function(p,d){if(a||(a=new Ue),te(p))iu(e,t,d,i,qn,r,a);else{var f=r?r(bi(e,d),p,d+"",e,t,a):o;f===o&&(f=p),Wo(e,d,f)}},ve)}function iu(e,t,i,r,a,p,d){var f=bi(e,i),y=bi(t,i),C=d.get(y);if(C){Wo(e,i,C);return}var w=p?p(f,y,i+"",e,t,d):o,I=w===o;if(I){var T=O(y),L=!T&&yt(y),P=!T&&!L&&Yt(y);w=y,T||L||P?O(f)?w=f:re(f)?w=be(f):L?(I=!1,w=oa(y,!0)):P?(I=!1,w=ia(y,!0)):w=[]:fn(y)||Ft(y)?(w=f,Ft(f)?w=el(f):(!te(f)||ot(f))&&(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=ee(t,function(p){return O(p)?function(d){return wt(d,p.length===1?p[0]:p)}:p}):t=[Se];var r=-1;t=ee(t,_e(D()));var a=$r(e,function(p,d,f){var y=ee(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 Ti(e,r)})}function qr(e,t,i){for(var r=-1,a=t.length,p={};++r<a;){var d=t[r],f=wt(e,d);i(f,d)&&pn(p,mt(d,e),f)}return p}function au(e){return function(t){return wt(t,e)}}function ei(e,t,i,r){var a=r?Ls:Bt,p=-1,d=t.length,f=e;for(e===t&&(t=be(t)),i&&(f=ee(e,_e(i)));++p<d;)for(var y=0,C=t[p],w=i?i(C):C;(y=a(f,w,y,r))>-1;)f!==e&&kn.call(f,y,1),kn.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)?kn.call(e,a,1):ii(e,a)}}return e}function ti(e,t){return e+Un(Ar()*(t-e+1))}function lu(e,t,i,r){for(var a=-1,p=pe(zn((t-e)/(i||1)),0),d=x(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 U(e,t){return xi(Ia(e,t,Se),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(!te(e))return e;t=mt(t,e);for(var a=-1,p=t.length,d=p-1,f=e;f!=null&&++a<p;){var y=qe(t[a]),C=i;if(y==="__proto__"||y==="constructor"||y==="prototype")return e;if(a!=d){var w=f[y];C=r?r(w,y,f):o,C===o&&(C=te(w)?w:nt(t[a+1])?[]:{})}rn(f,y,C),f=f[y]}return e}var Xr=Yn?function(e,t){return Yn.set(e,t),e}:Se,uu=Hn?function(e,t){return Hn(e,"toString",{configurable:!0,enumerable:!1,value:Ai(t),writable:!0})}:Se;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=x(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<=ml){for(;r<a;){var p=r+a>>>1,d=e[p];d!==null&&!Fe(d)&&(i?d<=t:d<t)?r=p+1:a=p}return a}return oi(e,t,Se,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,f=t===null,y=Fe(t),C=t===o;a<p;){var w=Un((a+p)/2),I=i(e[w]),T=I!==o,L=I===null,P=I===I,z=Fe(I);if(d)var R=r||P;else C?R=P&&(r||T):f?R=P&&T&&(r||!L):y?R=P&&T&&!L&&(r||!z):L||z?R=!1:R=r?I<=t:I<t;R?a=w+1:p=w}return fe(p,fl)}function Zr(e,t){for(var i=-1,r=e.length,a=0,p=[];++i<r;){var d=e[i],f=t?t(d):d;if(!i||!Ye(f,y)){var y=f;p[a++]=d===0?0:d}}return p}function Qr(e){return typeof e=="number"?e:Fe(e)?vn:+e}function Ie(e){if(typeof e=="string")return e;if(O(e))return ee(e,Ie)+"";if(Fe(e))return Lr?Lr.call(e):"";var t=e+"";return t=="0"&&1/e==-ht?"-0":t}function ft(e,t,i){var r=-1,a=En,p=e.length,d=!0,f=[],y=f;if(i)d=!1,a=Do;else if(p>=g){var C=t?null:wu(e);if(C)return Ln(C);d=!1,a=Qt,y=new St}else y=t?[]:f;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),f.push(w)}else a(y,I,i)||(y!==f&&y.push(I),f.push(w))}return f}function ii(e,t){return t=mt(t,e),e=Fa(e,t),e==null||delete e[qe(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?ft(e[0]):[];for(var a=-1,p=x(r);++a<r;)for(var d=e[a],f=-1;++f<r;)f!=a&&(p[a]=an(p[a]||d,e[f],t,i));return ft(de(p,1),t,i)}function ta(e,t,i){for(var r=-1,a=e.length,p=t.length,d={};++r<a;){var f=r<p?t[r]:o;i(d,e[r],f)}return d}function ai(e){return re(e)?e:[]}function li(e){return typeof e=="function"?e:Se}function mt(e,t){return O(e)?e:yi(e,t)?[e]:La(V(e))}var fu=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 ce.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 mu(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=Fe(e),d=t!==o,f=t===null,y=t===t,C=Fe(t);if(!f&&!C&&!p&&e>t||p&&d&&y&&!f&&!C||r&&d&&y||!i&&y||!a)return 1;if(!r&&!p&&!C&&e<t||C&&i&&a&&!r&&!p||f&&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,f=i.length;++r<d;){var y=ra(a[r],p[r]);if(y){if(r>=f)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,f=-1,y=t.length,C=pe(p-d,0),w=x(y+C),I=!r;++f<y;)w[f]=t[f];for(;++a<d;)(I||a<p)&&(w[i[a]]=e[a]);for(;C--;)w[f++]=e[a++];return w}function la(e,t,i,r){for(var a=-1,p=e.length,d=-1,f=i.length,y=-1,C=t.length,w=pe(p-f,0),I=x(w+C),T=!r;++a<w;)I[a]=e[a];for(var L=a;++y<C;)I[L+y]=t[y];for(;++d<f;)(T||a<p)&&(I[L+i[d]]=e[a++]);return I}function be(e,t){var i=-1,r=e.length;for(t||(t=x(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 f=t[p],y=r?r(i[f],e[f],f,i,e):o;y===o&&(y=e[f]),a?je(i,f,y):rn(i,f,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=O(i)?_s:Up,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&&ye(i[0],i[1],d)&&(p=a<3?o:p,a=1),t=J(t);++r<a;){var f=i[r];f&&e(t,f,r,p)}return t})}function sa(e,t){return function(i,r){if(i==null)return i;if(!xe(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),f=d.length;f--;){var y=d[e?f:++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!==ce&&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=kt(e.prototype),r=e.apply(i,t);return te(r)?r:i}}function Su(e,t,i){var r=un(e);function a(){for(var p=arguments.length,d=x(p),f=p,y=Ut(a);f--;)d[f]=arguments[f];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!==ce&&this instanceof a?r:e;return we(w,this,d)}return a}function ca(e){return function(t,i,r){var a=J(t);if(!xe(t)){var p=D(i,3);t=ue(t),i=function(f){return p(a[f],f,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 f=no(p),y=f=="wrapper"?fi(p):o;y&&hi(y[0])&&y[1]==(Ae|le|Ce|at)&&!y[4].length&&y[9]==1?d=d[no(y[0])].apply(d,y[3]):d=p.length==1&&hi(p)?d[f]():d.thru(p)}return function(){var C=arguments,w=C[0];if(d&&C.length==1&&O(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,f,y,C){var w=t&Ae,I=t&M,T=t&ie,L=t&(le|ne),P=t&Tt,z=T?o:un(e);function R(){for(var Y=arguments.length,G=x(Y),Te=Y;Te--;)G[Te]=arguments[Te];if(L)var he=Ut(R),Ee=Ps(G,he);if(r&&(G=aa(G,r,a,L)),p&&(G=la(G,p,d,L)),Y-=Ee,L&&Y<C){var ae=ut(G,he);return ga(e,t,Qn,R.placeholder,i,G,ae,f,y,C-Y)}var $e=I?i:this,rt=T?$e[e]:e;return Y=G.length,f?G=Uu(G,f):P&&Y>1&&G.reverse(),w&&y<Y&&(G.length=y),this&&this!==ce&&this instanceof R&&(rt=z||un(rt)),rt.apply($e,G)}return R}function fa(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=Ie(i),r=Ie(r)):(i=Qr(i),r=Qr(r)),a=e(i,r)}return a}}function pi(e){return tt(function(t){return t=ee(t,_e(D())),U(function(i){var r=this;return e(t,function(a){return we(a,r,i)})})})}function eo(e,t){t=t===o?" ":Ie(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 f=-1,y=arguments.length,C=-1,w=r.length,I=x(w+y),T=this&&this!==ce&&this instanceof d?p:e;++C<w;)I[C]=r[C];for(;y--;)I[C++]=arguments[++f];return we(T,a?i:this,I)}return d}function ma(e){return function(t,i,r){return r&&typeof r!="number"&&ye(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=Oe(t),i=Oe(i)),e(t,i)}}function ga(e,t,i,r,a,p,d,f,y,C){var w=t&le,I=w?d:o,T=w?o:d,L=w?p:o,P=w?o:p;t|=w?Ce:Je,t&=~(w?Je:Ce),t&Ge||(t&=~(M|ie));var z=[e,t,a,L,I,P,T,f,y,C],R=i.apply(o,z);return hi(e)&&Ta(R,z),R.placeholder=r,Ea(R,e,t)}function ui(e){var t=se[e];return function(i,r){if(i=Oe(i),r=r==null?0:fe(H(r),292),r&&Er(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=Nt&&1/Ln(new Nt([,-0]))[1]==ht?function(e){return new Nt(e)}:Di;function ya(e){return function(t){var i=me(t);return i==ke?zo(t):i==He?zs(t):Ds(t,e(t))}}function et(e,t,i,r,a,p,d,f){var y=t&ie;if(!y&&typeof e!="function")throw new De(h);var C=r?r.length:0;if(C||(t&=~(Ce|Je),r=a=o),d=d===o?d:pe(H(d),0),f=f===o?f:H(f),C-=a?a.length:0,t&Je){var w=r,I=a;r=a=o}var T=y?o:fi(e),L=[e,t,i,r,a,w,I,p,d,f];if(T&&ku(L,T),e=L[0],t=L[1],i=L[2],r=L[3],a=L[4],f=L[9]=L[9]===o?y?0:e.length:pe(L[9]-C,0),!f&&t&(le|ne)&&(t&=~(le|ne)),!t||t==M)var P=vu(e,t,i);else t==le||t==ne?P=Su(e,t,f):(t==Ce||t==(M|Ce))&&!a.length?P=Cu(e,t,i,r):P=Qn.apply(o,L);var z=T?Xr:Ta;return Ea(z(P,L),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 te(e)&&te(t)&&(p.set(t,e),qn(e,t,o,ba,p),p.delete(t)),e}function _u(e){return fn(e)?o:e}function xa(e,t,i,r,a,p){var d=i&Z,f=e.length,y=t.length;if(f!=y&&!(d&&y>f))return!1;var C=p.get(e),w=p.get(t);if(C&&w)return C==t&&w==e;var I=-1,T=!0,L=i&K?new St:o;for(p.set(e,t),p.set(t,e);++I<f;){var P=e[I],z=t[I];if(r)var R=d?r(z,P,I,t,e,p):r(P,z,I,e,t,p);if(R!==o){if(R)continue;T=!1;break}if(L){if(!Ro(t,function(Y,G){if(!Qt(L,G)&&(P===Y||a(P,Y,i,r,p)))return L.push(G)})){T=!1;break}}else if(!(P===z||a(P,z,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 At: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 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 ke:var f=zo;case He:var y=r&Z;if(f||(f=Ln),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(f(e),f(t),r,a,p,d);return d.delete(e),w;case _n:if(on)return on.call(e)==on.call(t)}return!1}function Fu(e,t,i,r,a,p){var d=i&Z,f=ci(e),y=f.length,C=ci(t),w=C.length;if(y!=w&&!d)return!1;for(var I=y;I--;){var T=f[I];if(!(d?T in t:q.call(t,T)))return!1}var L=p.get(e),P=p.get(t);if(L&&P)return L==t&&P==e;var z=!0;p.set(e,t),p.set(t,e);for(var R=d;++I<y;){T=f[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)){z=!1;break}R||(R=T=="constructor")}if(z&&!R){var he=e.constructor,Ee=t.constructor;he!=Ee&&"constructor"in e&&"constructor"in t&&!(typeof he=="function"&&he instanceof he&&typeof Ee=="function"&&Ee instanceof Ee)&&(z=!1)}return p.delete(e),p.delete(t),z}function tt(e){return xi(Ia(e,o,Ra),e+"")}function ci(e){return Hr(e,ue,gi)}function di(e){return Hr(e,ve,va)}var fi=Yn?function(e){return Yn.get(e)}:Di;function no(e){for(var t=e.name+"",i=Ot[t],r=q.call(Ot,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||Li;return e=e===Li?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 mi(e){for(var t=ue(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=Os(e,t);return Ur(i)?i:o}function Tu(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 Fr.call(e,t)}))}:Pi,va=Yo?function(e){for(var t=[];e;)pt(t,gi(e)),e=On(e);return t}:Pi,me=ge;($o&&me(new $o(new ArrayBuffer(1)))!=At||en&&me(new en)!=ke||Go&&me(Go.resolve())!=Ni||Nt&&me(new Nt)!=He||tn&&me(new tn)!=Xt)&&(me=function(e){var t=ge(e),i=t==Xe?e.constructor:o,r=i?It(i):"";if(r)switch(r){case pp:return At;case up:return ke;case cp:return Ni;case dp:return He;case fp:return Xt}return t});function Eu(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=fe(t,e+d);break;case"takeRight":e=pe(e,t-d);break}}return{start:e,end:t}}function Au(e){var t=e.match(Ml);return t?t[1].split(Nl):[]}function Sa(e,t,i){t=mt(t,e);for(var r=-1,a=t.length,p=!1;++r<a;){var d=qe(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)&&(O(e)||Ft(e)))}function Lu(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)?kt(On(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 At:return mu(e,i);case mo:case go:case yo:case ho:case bo:case xo:case vo:case So:case Co:return ia(e,i);case ke: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,`{
|
|
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",v="Invalid `variable` option passed into `_.template`",b="__lodash_hash_undefined__",F=500,E="__lodash_placeholder__",B=1,k=2,X=4,Z=1,K=2,M=1,ie=2,Ge=4,le=8,ne=16,Ce=32,Je=64,Ae=128,at=256,Tt=512,fn=30,gn="...",yn=800,hn=16,Gt=1,bn=2,xn=3,ht=1/0,lt=9007199254740991,dl=17976931348623157e292,vn=0/0,We=4294967295,ml=We-1,fl=We>>>1,gl=[["ary",Ae],["bind",M],["bindKey",ie],["curry",le],["curryRight",ne],["flip",Tt],["partial",Ce],["partialRight",Je],["rearg",at]],Et="[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]",ke="[object Map]",Vt="[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]",At="[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,Oi=/&(?:amp|lt|gt|quot|#39);/g,ki=/[&<>"']/g,Il=RegExp(Oi.source),Fl=RegExp(ki.source),Tl=/<%-([\s\S]+?)%>/g,El=/<%([\s\S]+?)%>/g,Hi=/<%=([\s\S]+?)%>/g,Al=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ll=/^\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=/,? & /,Ol=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,kl=/[()=,{}\[\]\/\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,Fn="\\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="["+Fn+"]",Vi="["+Ki+"]",Tn="["+Ui+"]",qi="\\d+",ns="["+Yi+"]",Ji="["+$i+"]",Xi="[^"+Fn+Ki+qi+Yi+$i+Gi+"]",Fo="\\ud83c[\\udffb-\\udfff]",os="(?:"+Tn+"|"+Fo+")",Zi="[^"+Fn+"]",To="(?:\\ud83c[\\udde6-\\uddff]){2}",Eo="[\\ud800-\\udbff][\\udc00-\\udfff]",Lt="["+Gi+"]",Qi="\\u200d",ji="(?:"+Ji+"|"+Xi+")",is="(?:"+Lt+"|"+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,To,Eo].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,To,Eo].join("|")+")"+ir,ps="(?:"+[Zi+Tn+"?",Tn,To,Eo,ts].join("|")+")",us=RegExp(Io,"g"),cs=RegExp(Tn,"g"),Ao=RegExp(Fo+"(?="+Fo+")|"+ps+ir,"g"),ds=RegExp([Lt+"?"+Ji+"+"+er+"(?="+[Vi,Lt,"$"].join("|")+")",is+"+"+tr+"(?="+[Vi,Lt+ji,"$"].join("|")+")",Lt+"?"+ji+"+"+er,Lt+"+"+tr,ls,as,qi,ss].join("|"),"g"),ms=RegExp("["+Qi+Fn+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,j={};j[fo]=j[go]=j[yo]=j[ho]=j[bo]=j[xo]=j[vo]=j[So]=j[Co]=!0,j[Et]=j[Sn]=j[Zt]=j[Wt]=j[At]=j[Kt]=j[Cn]=j[wn]=j[ke]=j[Vt]=j[Xe]=j[qt]=j[He]=j[Jt]=j[Xt]=!1;var Q={};Q[Et]=Q[Sn]=Q[Zt]=Q[At]=Q[Wt]=Q[Kt]=Q[fo]=Q[go]=Q[yo]=Q[ho]=Q[bo]=Q[ke]=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,ce=rr||ws||Function("return this")(),Lo=l&&!l.nodeType&&l,bt=Lo&&!0&&n&&!n.nodeType&&n,ar=bt&&bt.exports===Lo,Bo=ar&&rr.process,Le=function(){try{var f=bt&&bt.require&&bt.require("util").types;return f||Bo&&Bo.binding&&Bo.binding("util")}catch{}}(),lr=Le&&Le.isArrayBuffer,sr=Le&&Le.isDate,pr=Le&&Le.isMap,ur=Le&&Le.isRegExp,cr=Le&&Le.isSet,dr=Le&&Le.isTypedArray;function we(f,S,x){switch(x.length){case 0:return f.call(S);case 1:return f.call(S,x[0]);case 2:return f.call(S,x[0],x[1]);case 3:return f.call(S,x[0],x[1],x[2])}return f.apply(S,x)}function _s(f,S,x,A){for(var N=-1,W=f==null?0:f.length;++N<W;){var se=f[N];S(A,se,x(se),f)}return A}function Be(f,S){for(var x=-1,A=f==null?0:f.length;++x<A&&S(f[x],x,f)!==!1;);return f}function Is(f,S){for(var x=f==null?0:f.length;x--&&S(f[x],x,f)!==!1;);return f}function mr(f,S){for(var x=-1,A=f==null?0:f.length;++x<A;)if(!S(f[x],x,f))return!1;return!0}function st(f,S){for(var x=-1,A=f==null?0:f.length,N=0,W=[];++x<A;){var se=f[x];S(se,x,f)&&(W[N++]=se)}return W}function En(f,S){var x=f==null?0:f.length;return!!x&&Bt(f,S,0)>-1}function Do(f,S,x){for(var A=-1,N=f==null?0:f.length;++A<N;)if(x(S,f[A]))return!0;return!1}function ee(f,S){for(var x=-1,A=f==null?0:f.length,N=Array(A);++x<A;)N[x]=S(f[x],x,f);return N}function pt(f,S){for(var x=-1,A=S.length,N=f.length;++x<A;)f[N+x]=S[x];return f}function Po(f,S,x,A){var N=-1,W=f==null?0:f.length;for(A&&W&&(x=f[++N]);++N<W;)x=S(x,f[N],N,f);return x}function Fs(f,S,x,A){var N=f==null?0:f.length;for(A&&N&&(x=f[--N]);N--;)x=S(x,f[N],N,f);return x}function Ro(f,S){for(var x=-1,A=f==null?0:f.length;++x<A;)if(S(f[x],x,f))return!0;return!1}var Ts=Mo("length");function Es(f){return f.split("")}function As(f){return f.match(Ol)||[]}function fr(f,S,x){var A;return x(f,function(N,W,se){if(S(N,W,se))return A=W,!1}),A}function An(f,S,x,A){for(var N=f.length,W=x+(A?1:-1);A?W--:++W<N;)if(S(f[W],W,f))return W;return-1}function Bt(f,S,x){return S===S?Us(f,S,x):An(f,gr,x)}function Ls(f,S,x,A){for(var N=x-1,W=f.length;++N<W;)if(A(f[N],S))return N;return-1}function gr(f){return f!==f}function yr(f,S){var x=f==null?0:f.length;return x?Oo(f,S)/x: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,x,A,N){return N(f,function(W,se,J){x=A?(A=!1,W):S(x,W,se,J)}),x}function Bs(f,S){var x=f.length;for(f.sort(S);x--;)f[x]=f[x].value;return f}function Oo(f,S){for(var x,A=-1,N=f.length;++A<N;){var W=S(f[A]);W!==o&&(x=x===o?W:x+W)}return x}function ko(f,S){for(var x=-1,A=Array(f);++x<f;)A[x]=S(x);return A}function Ds(f,S){return ee(S,function(x){return[x,f[x]]})}function br(f){return f&&f.slice(0,Cr(f)+1).replace(_o,"")}function _e(f){return function(S){return f(S)}}function Ho(f,S){return ee(S,function(x){return f[x]})}function Qt(f,S){return f.has(S)}function xr(f,S){for(var x=-1,A=f.length;++x<A&&Bt(S,f[x],0)>-1;);return x}function vr(f,S){for(var x=f.length;x--&&Bt(S,f[x],0)>-1;);return x}function Ps(f,S){for(var x=f.length,A=0;x--;)f[x]===S&&++A;return A}var Rs=No(hs),Ms=No(bs);function Ns(f){return"\\"+vs[f]}function Os(f,S){return f==null?o:f[S]}function Dt(f){return ms.test(f)}function ks(f){return fs.test(f)}function Hs(f){for(var S,x=[];!(S=f.next()).done;)x.push(S.value);return x}function zo(f){var S=-1,x=Array(f.size);return f.forEach(function(A,N){x[++S]=[N,A]}),x}function Sr(f,S){return function(x){return f(S(x))}}function ut(f,S){for(var x=-1,A=f.length,N=0,W=[];++x<A;){var se=f[x];(se===S||se===E)&&(f[x]=E,W[N++]=x)}return W}function Ln(f){var S=-1,x=Array(f.size);return f.forEach(function(A){x[++S]=A}),x}function zs(f){var S=-1,x=Array(f.size);return f.forEach(function(A){x[++S]=[A,A]}),x}function Us(f,S,x){for(var A=x-1,N=f.length;++A<N;)if(f[A]===S)return A;return-1}function Ys(f,S,x){for(var A=x+1;A--;)if(f[A]===S)return A;return A}function Pt(f){return Dt(f)?Gs(f):Ts(f)}function ze(f){return Dt(f)?Ws(f):Es(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=Ao.lastIndex=0;Ao.test(f);)++S;return S}function Ws(f){return f.match(Ao)||[]}function Ks(f){return f.match(ds)||[]}var Vs=function f(S){S=S==null?ce:Rt.defaults(ce.Object(),S,Rt.pick(ce,gs));var x=S.Array,A=S.Date,N=S.Error,W=S.Function,se=S.Math,J=S.Object,Uo=S.RegExp,qs=S.String,De=S.TypeError,Bn=x.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=ce._,js=Uo("^"+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,On=Sr(J.getPrototypeOf,J),Ir=J.create,Fr=Mt.propertyIsEnumerable,kn=Bn.splice,Tr=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!==ce.clearTimeout&&S.clearTimeout,tp=A&&A.now!==ce.Date.now&&A.now,np=S.setTimeout!==ce.setTimeout&&S.setTimeout,zn=se.ceil,Un=se.floor,Yo=J.getOwnPropertySymbols,op=Mn?Mn.isBuffer:o,Er=S.isFinite,ip=Bn.join,rp=Sr(J.keys,J),pe=se.max,me=se.min,ap=A.now,lp=S.parseInt,Ar=se.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,Ot={},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,Lr=$n?$n.toString:o;function s(e){if(oe(e)&&!O(e)&&!(e instanceof $)){if(e instanceof Pe)return e;if(q.call(e,"__wrapped__"))return Ba(e)}return new Pe(e)}var kt=function(){function e(){}return function(t){if(!te(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:Tl,evaluate:El,interpolate:Hi,variable:"",imports:{_:s}},s.prototype=Gn.prototype,s.prototype.constructor=s,Pe.prototype=kt(Gn.prototype),Pe.prototype.constructor=Pe;function $(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=We,this.__views__=[]}function fp(){var e=new $(this.__wrapped__);return e.__actions__=be(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=be(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=be(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=O(e),r=t<0,a=i?e.length:0,p=Eu(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,L=me(y,this.__takeCount__);if(!i||!r&&a==y&&L==y)return ea(e,this.__actions__);var P=[];e:for(;y--&&T<L;){C+=t;for(var z=-1,R=e[C];++z<I;){var Y=w[z],G=Y.iteratee,Te=Y.type,he=G(R);if(Te==bn)R=he;else if(!he){if(Te==Gt)continue e;break e}}P[T++]=R}return P}$.prototype=kt(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===b?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?b: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():kn.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 Fp(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=Fp;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 Tp(){this.size=0,this.__data__={hash:new vt,map:new(en||Ze),string:new vt}}function Ep(e){var t=oo(this,e).delete(e);return this.size-=t?1:0,t}function Ap(e){return oo(this,e).get(e)}function Lp(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=Tp,Qe.prototype.delete=Ep,Qe.prototype.get=Ap,Qe.prototype.has=Lp,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,b),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 Np(e){return this.__data__.get(e)}function Op(e){return this.__data__.has(e)}function kp(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=Np,Ue.prototype.has=Op,Ue.prototype.set=kp;function Br(e,t){var i=O(e),r=!i&&Ft(e),a=!i&&!r&&yt(e),p=!i&&!r&&!a&&Yt(e),d=i||r||a||p,m=d?ko(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(be(e),Ct(t,0,e.length))}function zp(e){return io(be(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&&Ve(t,ue(t),e)}function Yp(e,t){return e&&Ve(t,ve(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=x(r),p=e==null;++i<r;)a[i]=p?o:Fi(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&k,C=t&X;if(i&&(d=a?i(e,r,a,p):i(e)),d!==o)return d;if(!te(e))return e;var w=O(e);if(w){if(d=Lu(e),!m)return be(e,d)}else{var I=fe(e),T=I==wn||I==Mi;if(yt(e))return oa(e,m);if(I==Xe||I==Et||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 L=p.get(e);if(L)return L;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?ve:ue,z=w?o:P(e);return Be(z||e,function(R,Y){z&&(Y=R,R=e[Y]),rn(d,Y,Re(R,t,i,Y,e,p))}),d}function $p(e){var t=ue(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=En,d=!0,m=e.length,y=[],C=t.length;if(!m)return y;i&&(t=ee(t,_e(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(Ke),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 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&&!Fe(d):i(d,m)))var m=d,y=p}return y}function Wp(e,t,i,r){var a=e.length;for(i=H(i),i<0&&(i=-i>a?0:a+i),r=r===o||r>a?a:H(r),r<0&&(r+=a),r=i>r?0:ja(r);i<r;)e[i++]=t;return e}function Or(e,t){var i=[];return dt(e,function(r,a,p){t(r,a,p)&&i.push(r)}),i}function de(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?de(m,t-1,i,r,a):pt(a,m):r||(a[a.length]=m)}return a}var Vo=pa(),kr=pa(!0);function Ke(e,t){return e&&Vo(e,t,ue)}function qo(e,t){return e&&kr(e,t,ue)}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[qe(t[i++])];return i&&i==r?e:o}function Hr(e,t,i){var r=t(e);return O(e)?r:pt(r,i(e))}function ge(e){return e==null?e===o?vl:bl:xt&&xt in J(e)?Tu(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>=me(t,i)&&e<pe(t,i)}function Xo(e,t,i){for(var r=i?Do:En,a=e[0].length,p=e.length,d=p,m=x(p),y=1/0,C=[];d--;){var w=e[d];d&&t&&(w=ee(w,_e(t))),y=me(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 L=w[I],P=t?t(L):L;if(L=i||L!==0?L:0,!(T?Qt(T,P):r(C,P,i))){for(d=p;--d;){var z=m[d];if(!(z?Qt(z,P):r(e[d],P,i)))continue e}T&&T.push(P),C.push(L)}}return C}function Jp(e,t,i,r){return Ke(e,function(a,p,d){t(r,i(a),p,d)}),r}function ln(e,t,i){t=ft(t,e),e=Fa(e,t);var r=e==null?e:e[qe(Ne(t))];return r==null?o:we(r,e,i)}function zr(e){return oe(e)&&ge(e)==Et}function Xp(e){return oe(e)&&ge(e)==Zt}function Zp(e){return oe(e)&&ge(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=O(e),m=O(t),y=d?Sn:fe(e),C=m?Sn:fe(t);y=y==Et?Xe:y,C=C==Et?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&Z)){var L=w&&q.call(e,"__wrapped__"),P=I&&q.call(t,"__wrapped__");if(L||P){var z=L?e.value():e,R=P?t.value():t;return p||(p=new Ue),a(z,R,i,r,p)}}return T?(p||(p=new Ue),Fu(e,t,i,r,a,p)):!1}function jp(e){return oe(e)&&fe(e)==ke}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,Z|K,r,I):T))return!1}}return!0}function Ur(e){if(!te(e)||Mu(e))return!1;var t=ot(e)?js:$l;return t.test(It(e))}function eu(e){return oe(e)&&ge(e)==qt}function tu(e){return oe(e)&&fe(e)==He}function nu(e){return oe(e)&&uo(e.length)&&!!j[ge(e)]}function Yr(e){return typeof e=="function"?e:e==null?Se:typeof e=="object"?O(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(!te(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=xe(e)?x(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(qe(e),t):function(i){var r=Fi(i,e);return r===o&&r===t?Ti(i,e):sn(t,r,Z|K)}}function qn(e,t,i,r,a){e!==t&&Vo(t,function(p,d){if(a||(a=new Ue),te(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)}},ve)}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=O(y),L=!T&&yt(y),P=!T&&!L&&Yt(y);w=y,T||L||P?O(m)?w=m:re(m)?w=be(m):L?(I=!1,w=oa(y,!0)):P?(I=!1,w=ia(y,!0)):w=[]:mn(y)||Ft(y)?(w=m,Ft(m)?w=el(m):(!te(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=ee(t,function(p){return O(p)?function(d){return wt(d,p.length===1?p[0]:p)}:p}):t=[Se];var r=-1;t=ee(t,_e(D()));var a=$r(e,function(p,d,m){var y=ee(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 Ti(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?Ls:Bt,p=-1,d=t.length,m=e;for(e===t&&(t=be(t)),i&&(m=ee(e,_e(i)));++p<d;)for(var y=0,C=t[p],w=i?i(C):C;(y=a(m,w,y,r))>-1;)m!==e&&kn.call(m,y,1),kn.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)?kn.call(e,a,1):ii(e,a)}}return e}function ti(e,t){return e+Un(Ar()*(t-e+1))}function lu(e,t,i,r){for(var a=-1,p=pe(zn((t-e)/(i||1)),0),d=x(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 U(e,t){return xi(Ia(e,t,Se),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(!te(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=qe(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=te(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}:Se,uu=Hn?function(e,t){return Hn(e,"toString",{configurable:!0,enumerable:!1,value:Ai(t),writable:!0})}:Se;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=x(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&&!Fe(d)&&(i?d<=t:d<t)?r=p+1:a=p}return a}return oi(e,t,Se,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=Fe(t),C=t===o;a<p;){var w=Un((a+p)/2),I=i(e[w]),T=I!==o,L=I===null,P=I===I,z=Fe(I);if(d)var R=r||P;else C?R=P&&(r||T):m?R=P&&T&&(r||!L):y?R=P&&T&&!L&&(r||!z):L||z?R=!1:R=r?I<=t:I<t;R?a=w+1:p=w}return me(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:Fe(e)?vn:+e}function Ie(e){if(typeof e=="string")return e;if(O(e))return ee(e,Ie)+"";if(Fe(e))return Lr?Lr.call(e):"";var t=e+"";return t=="0"&&1/e==-ht?"-0":t}function mt(e,t,i){var r=-1,a=En,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 Ln(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=Fa(e,t),e==null||delete e[qe(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=x(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(de(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 re(e)?e:[]}function li(e){return typeof e=="function"?e:Se}function ft(e,t){return O(e)?e:yi(e,t)?[e]:La(V(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 ce.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,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=Fe(e),d=t!==o,m=t===null,y=t===t,C=Fe(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=pe(p-d,0),w=x(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=pe(p-m,0),I=x(w+C),T=!r;++a<w;)I[a]=e[a];for(var L=a;++y<C;)I[L+y]=t[y];for(;++d<m;)(T||a<p)&&(I[L+i[d]]=e[a++]);return I}function be(e,t){var i=-1,r=e.length;for(t||(t=x(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=O(i)?_s:Up,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&&ye(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(!xe(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!==ce&&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=kt(e.prototype),r=e.apply(i,t);return te(r)?r:i}}function Su(e,t,i){var r=un(e);function a(){for(var p=arguments.length,d=x(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!==ce&&this instanceof a?r:e;return we(w,this,d)}return a}function ca(e){return function(t,i,r){var a=J(t);if(!xe(t)){var p=D(i,3);t=ue(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]==(Ae|le|Ce|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&&O(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&Ae,I=t&M,T=t&ie,L=t&(le|ne),P=t&Tt,z=T?o:un(e);function R(){for(var Y=arguments.length,G=x(Y),Te=Y;Te--;)G[Te]=arguments[Te];if(L)var he=Ut(R),Ee=Ps(G,he);if(r&&(G=aa(G,r,a,L)),p&&(G=la(G,p,d,L)),Y-=Ee,L&&Y<C){var ae=ut(G,he);return ga(e,t,Qn,R.placeholder,i,G,ae,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!==ce&&this instanceof R&&(rt=z||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=Ie(i),r=Ie(r)):(i=Qr(i),r=Qr(r)),a=e(i,r)}return a}}function pi(e){return tt(function(t){return t=ee(t,_e(D())),U(function(i){var r=this;return e(t,function(a){return we(a,r,i)})})})}function eo(e,t){t=t===o?" ":Ie(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=x(w+y),T=this&&this!==ce&&this instanceof d?p:e;++C<w;)I[C]=r[C];for(;y--;)I[C++]=arguments[++m];return we(T,a?i:this,I)}return d}function fa(e){return function(t,i,r){return r&&typeof r!="number"&&ye(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=Oe(t),i=Oe(i)),e(t,i)}}function ga(e,t,i,r,a,p,d,m,y,C){var w=t&le,I=w?d:o,T=w?o:d,L=w?p:o,P=w?o:p;t|=w?Ce:Je,t&=~(w?Je:Ce),t&Ge||(t&=~(M|ie));var z=[e,t,a,L,I,P,T,m,y,C],R=i.apply(o,z);return hi(e)&&Ta(R,z),R.placeholder=r,Ea(R,e,t)}function ui(e){var t=se[e];return function(i,r){if(i=Oe(i),r=r==null?0:me(H(r),292),r&&Er(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=Nt&&1/Ln(new Nt([,-0]))[1]==ht?function(e){return new Nt(e)}:Di;function ya(e){return function(t){var i=fe(t);return i==ke?zo(t):i==He?zs(t):Ds(t,e(t))}}function et(e,t,i,r,a,p,d,m){var y=t&ie;if(!y&&typeof e!="function")throw new De(h);var C=r?r.length:0;if(C||(t&=~(Ce|Je),r=a=o),d=d===o?d:pe(H(d),0),m=m===o?m:H(m),C-=a?a.length:0,t&Je){var w=r,I=a;r=a=o}var T=y?o:mi(e),L=[e,t,i,r,a,w,I,p,d,m];if(T&&ku(L,T),e=L[0],t=L[1],i=L[2],r=L[3],a=L[4],m=L[9]=L[9]===o?y?0:e.length:pe(L[9]-C,0),!m&&t&(le|ne)&&(t&=~(le|ne)),!t||t==M)var P=vu(e,t,i);else t==le||t==ne?P=Su(e,t,m):(t==Ce||t==(M|Ce))&&!a.length?P=Cu(e,t,i,r):P=Qn.apply(o,L);var z=T?Xr:Ta;return Ea(z(P,L),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 te(e)&&te(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&Z,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,L=i&K?new St:o;for(p.set(e,t),p.set(t,e);++I<m;){var P=e[I],z=t[I];if(r)var R=d?r(z,P,I,t,e,p):r(P,z,I,e,t,p);if(R!==o){if(R)continue;T=!1;break}if(L){if(!Ro(t,function(Y,G){if(!Qt(L,G)&&(P===Y||a(P,Y,i,r,p)))return L.push(G)})){T=!1;break}}else if(!(P===z||a(P,z,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 At: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 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 ke:var m=zo;case He:var y=r&Z;if(m||(m=Ln),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 Fu(e,t,i,r,a,p){var d=i&Z,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 L=p.get(e),P=p.get(t);if(L&&P)return L==t&&P==e;var z=!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)){z=!1;break}R||(R=T=="constructor")}if(z&&!R){var he=e.constructor,Ee=t.constructor;he!=Ee&&"constructor"in e&&"constructor"in t&&!(typeof he=="function"&&he instanceof he&&typeof Ee=="function"&&Ee instanceof Ee)&&(z=!1)}return p.delete(e),p.delete(t),z}function tt(e){return xi(Ia(e,o,Ra),e+"")}function ci(e){return Hr(e,ue,gi)}function di(e){return Hr(e,ve,va)}var mi=Yn?function(e){return Yn.get(e)}:Di;function no(e){for(var t=e.name+"",i=Ot[t],r=q.call(Ot,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||Li;return e=e===Li?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=ue(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=Os(e,t);return Ur(i)?i:o}function Tu(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 Fr.call(e,t)}))}:Pi,va=Yo?function(e){for(var t=[];e;)pt(t,gi(e)),e=On(e);return t}:Pi,fe=ge;($o&&fe(new $o(new ArrayBuffer(1)))!=At||en&&fe(new en)!=ke||Go&&fe(Go.resolve())!=Ni||Nt&&fe(new Nt)!=He||tn&&fe(new tn)!=Xt)&&(fe=function(e){var t=ge(e),i=t==Xe?e.constructor:o,r=i?It(i):"";if(r)switch(r){case pp:return At;case up:return ke;case cp:return Ni;case dp:return He;case mp:return Xt}return t});function Eu(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=me(t,e+d);break;case"takeRight":e=pe(e,t-d);break}}return{start:e,end:t}}function Au(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=qe(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)&&(O(e)||Ft(e)))}function Lu(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)?kt(On(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 At: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 ke: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 O(e)||Ft(e)||!!(Tr&&e&&e[Tr])}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 ye(e,t,i){if(!te(i))return!1;var r=typeof t;return(r=="number"?xe(i)&&nt(t,i.length):r=="string"&&t in i)?Ye(i[t],e):!1}function yi(e,t){if(O(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||Fe(e)?!0:Ll.test(e)||!Al.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=fi(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&&!te(e)}function _a(e,t){return function(i){return i==null?!1:i[e]===t&&(t!==o||e in J(i))}}function Ou(e){var t=so(e,function(r){return i.size===F&&i.clear(),r}),i=t.cache;return t}function ku(e,t){var i=e[1],r=t[1],a=i|r,p=a<(M|ie|Ae),d=r==Ae&&i==le||r==Ae&&i==at&&e[7].length<=t[8]||r==(Ae|at)&&t[7].length<=t[8]&&i==le;if(!(p||d))return e;r&M&&(e[2]=t[2],a|=i&M?0:Ge);var f=t[3];if(f){var y=e[3];e[3]=y?aa(y,f,t[4]):f,e[4]=y?ut(e[3],E):t[4]}return f=t[5],f&&(y=e[5],e[5]=y?la(y,f,t[6]):f,e[6]=y?ut(e[5],E):t[6]),f=t[7],f&&(e[7]=f),r&Ae&&(e[8]=e[8]==null?t[8]:fe(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=pe(t===o?e.length-1:t,0),function(){for(var r=arguments,a=-1,p=pe(r.length-t,0),d=x(p);++a<p;)d[a]=r[t+a];a=-1;for(var f=x(t+1);++a<t;)f[a]=r[a];return f[t]=i(d),we(e,this,f)}}function Fa(e,t){return t.length<2?e:wt(e,Me(t,0,-1))}function Uu(e,t){for(var i=e.length,r=fe(t.length,i),a=be(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 Ta=Aa(Xr),dn=np||function(e,t){return ce.setTimeout(e,t)},xi=Aa(uu);function Ea(e,t,i){var r=t+"";return xi(e,Du(r,Yu(Au(r),i)))}function Aa(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 La=Ou(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 qe(e){if(typeof e=="string"||Fe(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]&&!En(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__=be(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function $u(e,t,i){(i?ye(e,t,i):t===o)?t=1:t=pe(H(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var a=0,p=0,d=x(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=x(e-1),i=arguments[0],r=e;r--;)t[r-1]=arguments[r];return pt(O(i)?be(i):[i],de(t,1))}var Ku=U(function(e,t){return re(e)?an(e,de(t,1,re,!0)):[]}),Vu=U(function(e,t){var i=Ne(t);return re(i)&&(i=o),re(e)?an(e,de(t,1,re,!0),D(i,2)):[]}),qu=U(function(e,t){var i=Ne(t);return re(i)&&(i=o),re(e)?an(e,de(t,1,re,!0),o,i):[]});function Ju(e,t,i){var r=e==null?0:e.length;return r?(t=i||t===o?1:H(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:H(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"&&ye(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:H(i);return a<0&&(a=pe(r+a,0)),An(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=H(i),a=i<0?pe(r+a,0):fe(a,r-1)),An(e,D(t,3),a,!0)}function Ra(e){var t=e==null?0:e.length;return t?de(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?de(e,ht):[]}function tc(e,t){var i=e==null?0:e.length;return i?(t=t===o?1:H(t),de(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:H(i);return a<0&&(a=pe(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=ee(e,ai);return t.length&&t[0]===e[0]?Xo(t):[]}),ac=U(function(e){var t=Ne(e),i=ee(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=ee(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=H(i),a=a<0?pe(r+a,0):fe(a,r-1)),t===t?Ys(e,t,a):An(e,gr,a,!0)}function uc(e,t){return e&&e.length?Kr(e,H(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 fc(e,t,i){return e&&e.length&&t&&t.length?ei(e,t,o,i):e}var mc=tt(function(e,t){var i=e==null?0:e.length,r=Ko(e,t);return Jr(e,ee(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"&&ye(e,t,i)?(t=0,i=r):(t=t==null?0:H(t),i=i===o?r:H(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 Fc(e,t,i){return e&&e.length?(t=i||t===o?1:H(t),Me(e,0,t<0?0:t)):[]}function Tc(e,t,i){var r=e==null?0:e.length;return r?(t=i||t===o?1:H(t),t=r-t,Me(e,t<0?0:t,r)):[]}function Ec(e,t){return e&&e.length?Xn(e,D(t,3),!1,!0):[]}function Ac(e,t){return e&&e.length?Xn(e,D(t,3)):[]}var Lc=U(function(e){return ft(de(e,1,re,!0))}),Bc=U(function(e){var t=Ne(e);return re(t)&&(t=o),ft(de(e,1,re,!0),D(t,2))}),Dc=U(function(e){var t=Ne(e);return t=typeof t=="function"?t:o,ft(de(e,1,re,!0),o,t)});function Pc(e){return e&&e.length?ft(e):[]}function Rc(e,t){return e&&e.length?ft(e,D(t,2)):[]}function Mc(e,t){return t=typeof t=="function"?t:o,e&&e.length?ft(e,o,t):[]}function Si(e){if(!(e&&e.length))return[];var t=0;return e=st(e,function(i){if(re(i))return t=pe(i.length,t),!0}),ko(t,function(i){return ee(e,Mo(i))})}function Oa(e,t){if(!(e&&e.length))return[];var i=Si(e);return t==null?i:ee(i,function(r){return we(t,o,r)})}var Nc=U(function(e,t){return re(e)?an(e,t):[]}),Oc=U(function(e){return ri(st(e,re))}),kc=U(function(e){var t=Ne(e);return re(t)&&(t=o),ri(st(e,re),D(t,2))}),Hc=U(function(e){var t=Ne(e);return t=typeof t=="function"?t:o,ri(st(e,re),o,t)}),zc=U(Si);function Uc(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,Oa(e,i)});function ka(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 ka(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=O(e)?fr:Gp;return i&&ye(e,t,i)&&(t=o),r(e,D(t,3))}function td(e,t){var i=O(e)?st:Or;return i(e,D(t,3))}var nd=ca(Da),od=ca(Pa);function id(e,t){return de(ao(e,t),1)}function rd(e,t){return de(ao(e,t),ht)}function ad(e,t,i){return i=i===o?1:H(i),de(ao(e,t),i)}function Ha(e,t){var i=O(e)?Be:dt;return i(e,D(t,3))}function za(e,t){var i=O(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=xe(e)?e:$t(e),i=i&&!r?H(i):0;var a=e.length;return i<0&&(i=pe(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=xe(e)?x(e.length):[];return dt(e,function(d){p[++r]=a?we(t,d,i):ln(d,t,i)}),p}),ud=Zn(function(e,t,i){je(e,i,t)});function ao(e,t){var i=O(e)?ee:$r;return i(e,D(t,3))}function cd(e,t,i,r){return e==null?[]:(O(t)||(t=t==null?[]:[t]),i=r?o:i,O(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 fd(e,t,i){var r=O(e)?Po:hr,a=arguments.length<3;return r(e,D(t,4),i,a,dt)}function md(e,t,i){var r=O(e)?Fs:hr,a=arguments.length<3;return r(e,D(t,4),i,a,Nr)}function gd(e,t){var i=O(e)?st:Or;return i(e,po(D(t,3)))}function yd(e){var t=O(e)?Dr:su;return t(e)}function hd(e,t,i){(i?ye(e,t,i):t===o)?t=1:t=H(t);var r=O(e)?Hp:pu;return r(e,t)}function bd(e){var t=O(e)?zp:cu;return t(e)}function xd(e){if(e==null)return 0;if(xe(e))return co(e)?Pt(e):e.length;var t=me(e);return t==ke||t==He?e.size:Qo(e).length}function vd(e,t,i){var r=O(e)?Ro:du;return i&&ye(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&&ye(e,t[0],t[1])?t=[]:i>2&&ye(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,de(t,1),[])}),lo=tp||function(){return ce.Date.now()};function Cd(e,t){if(typeof t!="function")throw new De(h);return e=H(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,Ae,o,o,o,o,t)}function Ya(e,t){var i;if(typeof t!="function")throw new De(h);return e=H(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,Ut(Ci));r|=Ce}return et(e,r,t,i,a)}),$a=U(function(e,t,i){var r=M|ie;if(i.length){var a=ut(i,Ut($a));r|=Ce}return et(t,r,e,i,a)});function Ga(e,t,i){t=i?o:t;var r=et(e,le,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,ne,o,o,o,o,o,t);return r.placeholder=Wa.placeholder,r}function Ka(e,t,i){var r,a,p,d,f,y,C=0,w=!1,I=!1,T=!0;if(typeof e!="function")throw new De(h);t=Oe(t)||0,te(i)&&(w=!!i.leading,I="maxWait"in i,p=I?pe(Oe(i.maxWait)||0,t):p,T="trailing"in i?!!i.trailing:T);function L(ae){var $e=r,rt=a;return r=a=o,C=ae,d=e.apply(rt,$e),d}function P(ae){return C=ae,f=dn(Y,t),w?L(ae):d}function z(ae){var $e=ae-y,rt=ae-C,cl=t-$e;return I?fe(cl,p-rt):cl}function R(ae){var $e=ae-y,rt=ae-C;return y===o||$e>=t||$e<0||I&&rt>=p}function Y(){var ae=lo();if(R(ae))return G(ae);f=dn(Y,z(ae))}function G(ae){return f=o,T&&r?L(ae):(r=a=o,d)}function Te(){f!==o&&na(f),C=0,r=y=a=f=o}function he(){return f===o?d:G(lo())}function Ee(){var ae=lo(),$e=R(ae);if(r=arguments,a=this,y=ae,$e){if(f===o)return P(y);if(I)return na(f),f=dn(Y,t),L(y)}return f===o&&(f=dn(Y,t)),d}return Ee.cancel=Te,Ee.flush=he,Ee}var wd=U(function(e,t){return Mr(e,1,t)}),_d=U(function(e,t,i){return Mr(e,Oe(t)||0,i)});function Id(e){return et(e,Tt)}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 Fd(e){return Ya(2,e)}var Td=fu(function(e,t){t=t.length==1&&O(t[0])?ee(t[0],_e(D())):ee(de(t,1),_e(D()));var i=t.length;return U(function(r){for(var a=-1,p=fe(r.length,i);++a<p;)r[a]=t[a].call(this,r[a]);return we(e,this,r)})}),wi=U(function(e,t){var i=ut(t,Ut(wi));return et(e,Ce,o,t,i)}),Va=U(function(e,t){var i=ut(t,Ut(Va));return et(e,Je,o,t,i)}),Ed=tt(function(e,t){return et(e,at,o,o,o,t)});function Ad(e,t){if(typeof e!="function")throw new De(h);return t=t===o?t:H(t),U(e,t)}function Ld(e,t){if(typeof e!="function")throw new De(h);return t=t==null?0:pe(H(t),0),U(function(i){var r=i[t],a=gt(i,0,t);return r&&pt(a,r),we(e,this,a)})}function Bd(e,t,i){var r=!0,a=!0;if(typeof e!="function")throw new De(h);return te(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 O(e)?e:[e]}function Md(e){return Re(e,X)}function Nd(e,t){return t=typeof t=="function"?t:o,Re(e,X,t)}function Od(e){return Re(e,B|X)}function kd(e,t){return t=typeof t=="function"?t:o,Re(e,B|X,t)}function Hd(e,t){return t==null||Rr(e,t,ue(t))}function Ye(e,t){return e===t||e!==e&&t!==t}var zd=to(Jo),Ud=to(function(e,t){return e>=t}),Ft=zr(function(){return arguments}())?zr:function(e){return oe(e)&&q.call(e,"callee")&&!Fr.call(e,"callee")},O=x.isArray,Yd=lr?_e(lr):Xp;function xe(e){return e!=null&&uo(e.length)&&!ot(e)}function re(e){return oe(e)&&xe(e)}function $d(e){return e===!0||e===!1||oe(e)&&ge(e)==Wt}var yt=op||Ri,Gd=sr?_e(sr):Zp;function Wd(e){return oe(e)&&e.nodeType===1&&!fn(e)}function Kd(e){if(e==null)return!0;if(xe(e)&&(O(e)||typeof e=="string"||typeof e.splice=="function"||yt(e)||Yt(e)||Ft(e)))return!e.length;var t=me(e);if(t==ke||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=ge(e);return t==Cn||t==hl||typeof e.message=="string"&&typeof e.name=="string"&&!fn(e)}function Jd(e){return typeof e=="number"&&Er(e)}function ot(e){if(!te(e))return!1;var t=ge(e);return t==wn||t==Mi||t==yl||t==xl}function qa(e){return typeof e=="number"&&e==H(e)}function uo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lt}function te(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function oe(e){return e!=null&&typeof e=="object"}var Ja=pr?_e(pr):jp;function Xd(e,t){return e===t||Zo(e,t,mi(t))}function Zd(e,t,i){return i=typeof i=="function"?i:o,Zo(e,t,mi(t),i)}function Qd(e){return Xa(e)&&e!=+e}function jd(e){if(Nu(e))throw new N(c);return Ur(e)}function ef(e){return e===null}function tf(e){return e==null}function Xa(e){return typeof e=="number"||oe(e)&&ge(e)==Vt}function fn(e){if(!oe(e)||ge(e)!=Xe)return!1;var t=On(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?_e(ur):eu;function nf(e){return qa(e)&&e>=-lt&&e<=lt}var Za=cr?_e(cr):tu;function co(e){return typeof e=="string"||!O(e)&&oe(e)&&ge(e)==Jt}function Fe(e){return typeof e=="symbol"||oe(e)&&ge(e)==_n}var Yt=dr?_e(dr):nu;function of(e){return e===o}function rf(e){return oe(e)&&me(e)==Xt}function af(e){return oe(e)&&ge(e)==Sl}var lf=to(jo),sf=to(function(e,t){return e<=t});function Qa(e){if(!e)return[];if(xe(e))return co(e)?ze(e):be(e);if(jt&&e[jt])return Hs(e[jt]());var t=me(e),i=t==ke?zo:t==He?Ln:$t;return i(e)}function it(e){if(!e)return e===0?e:0;if(e=Oe(e),e===ht||e===-ht){var t=e<0?-1:1;return t*dl}return e===e?e:0}function H(e){var t=it(e),i=t%1;return t===t?i?t-i:t:0}function ja(e){return e?Ct(H(e),0,We):0}function Oe(e){if(typeof e=="number")return e;if(Fe(e))return vn;if(te(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=te(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 Ve(e,ve(e))}function pf(e){return e?Ct(H(e),-lt,lt):e===0?e:0}function V(e){return e==null?"":Ie(e)}var uf=Ht(function(e,t){if(cn(t)||xe(t)){Ve(t,ue(t),e);return}for(var i in t)q.call(t,i)&&rn(e,i,t[i])}),tl=Ht(function(e,t){Ve(t,ve(t),e)}),fo=Ht(function(e,t,i,r){Ve(t,ve(t),e,r)}),cf=Ht(function(e,t,i,r){Ve(t,ue(t),e,r)}),df=tt(Ko);function ff(e,t){var i=kt(e);return t==null?i:Pr(i,t)}var mf=U(function(e,t){e=J(e);var i=-1,r=t.length,a=r>2?t[2]:o;for(a&&ye(t[0],t[1],a)&&(r=1);++i<r;)for(var p=t[i],d=ve(p),f=-1,y=d.length;++f<y;){var C=d[f],w=e[C];(w===o||Ye(w,Mt[C])&&!q.call(e,C))&&(e[C]=p[C])}return e}),gf=U(function(e){return e.push(o,ba),we(nl,o,e)});function yf(e,t){return mr(e,D(t,3),Ke)}function hf(e,t){return mr(e,D(t,3),qo)}function bf(e,t){return e==null?e:Vo(e,D(t,3),ve)}function xf(e,t){return e==null?e:kr(e,D(t,3),ve)}function vf(e,t){return e&&Ke(e,D(t,3))}function Sf(e,t){return e&&qo(e,D(t,3))}function Cf(e){return e==null?[]:Vn(e,ue(e))}function wf(e){return e==null?[]:Vn(e,ve(e))}function Fi(e,t,i){var r=e==null?o:wt(e,t);return r===o?i:r}function _f(e,t){return e!=null&&Sa(e,t,Kp)}function Ti(e,t){return e!=null&&Sa(e,t,Vp)}var If=fa(function(e,t,i){t!=null&&typeof t.toString!="function"&&(t=Rn.call(t)),e[t]=i},Ai(Se)),Ff=fa(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),Tf=U(ln);function ue(e){return xe(e)?Br(e):Qo(e)}function ve(e){return xe(e)?Br(e,!0):ou(e)}function Ef(e,t){var i={};return t=D(t,3),Ke(e,function(r,a,p){je(i,t(r,a,p),r)}),i}function Af(e,t){var i={};return t=D(t,3),Ke(e,function(r,a,p){je(i,a,t(r,a,p))}),i}var Lf=Ht(function(e,t,i){qn(e,t,i)}),nl=Ht(function(e,t,i,r){qn(e,t,i,r)}),Bf=tt(function(e,t){var i={};if(e==null)return i;var r=!1;t=ee(t,function(p){return p=mt(p,e),r||(r=p.length>1),p}),Ve(e,di(e),i),r&&(i=Re(i,B|k|X,_u));for(var a=t.length;a--;)ii(i,t[a]);return i});function Df(e,t){return ol(e,po(D(t)))}var Pf=tt(function(e,t){return e==null?{}:ru(e,t)});function ol(e,t){if(e==null)return{};var i=ee(di(e),function(r){return[r]});return t=D(t),qr(e,i,function(r,a){return t(r,a[0])})}function Rf(e,t,i){t=mt(t,e);var r=-1,a=t.length;for(a||(a=1,e=o);++r<a;){var p=e==null?o:e[qe(t[r])];p===o&&(r=a,p=i),e=ot(p)?p.call(e):p}return e}function Mf(e,t,i){return e==null?e:pn(e,t,i)}function Nf(e,t,i,r){return r=typeof r=="function"?r:o,e==null?e:pn(e,t,i,r)}var il=ya(ue),rl=ya(ve);function Of(e,t,i){var r=O(e),a=r||yt(e)||Yt(e);if(t=D(t,4),i==null){var p=e&&e.constructor;a?i=r?new p:[]:te(e)?i=ot(p)?kt(On(e)):{}:i={}}return(a?Be:Ke)(e,function(d,f,y){return t(i,d,f,y)}),i}function kf(e,t){return e==null?!0:ii(e,t)}function Hf(e,t,i){return e==null?e:jr(e,t,li(i))}function zf(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,ue(e))}function Uf(e){return e==null?[]:Ho(e,ve(e))}function Yf(e,t,i){return i===o&&(i=t,t=o),i!==o&&(i=Oe(i),i=i===i?i:0),t!==o&&(t=Oe(t),t=t===t?t:0),Ct(Oe(e),t,i)}function $f(e,t,i){return t=it(t),i===o?(i=t,t=0):i=it(i),e=Oe(e),qp(e,t,i)}function Gf(e,t,i){if(i&&typeof i!="boolean"&&ye(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=Ar();return fe(e+a*(t-e+Ss("1e-"+((a+"").length-1))),t)}return ti(e,t)}var Wf=zt(function(e,t,i){return t=t.toLowerCase(),e+(i?al(t):t)});function al(e){return Ei(V(e).toLowerCase())}function ll(e){return e=V(e),e&&e.replace(Kl,Rs).replace(cs,"")}function Kf(e,t,i){e=V(e),t=Ie(t);var r=e.length;i=i===o?r:Ct(H(i),0,r);var a=i;return i-=t.length,i>=0&&e.slice(i,a)==t}function Vf(e){return e=V(e),e&&Fl.test(e)?e.replace(ki,Ms):e}function qf(e){return e=V(e),e&&Dl.test(e)?e.replace(wo,"\\$&"):e}var Jf=zt(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()}),Xf=zt(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()}),Zf=ua("toLowerCase");function Qf(e,t,i){e=V(e),t=H(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 jf(e,t,i){e=V(e),t=H(t);var r=t?Pt(e):0;return t&&r<t?e+eo(t-r,i):e}function em(e,t,i){e=V(e),t=H(t);var r=t?Pt(e):0;return t&&r<t?eo(t-r,i)+e:e}function tm(e,t,i){return i||t==null?t=0:t&&(t=+t),lp(V(e).replace(_o,""),t||0)}function nm(e,t,i){return(i?ye(e,t,i):t===o)?t=1:t=H(t),ni(V(e),t)}function om(){var e=arguments,t=V(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var im=zt(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()});function rm(e,t,i){return i&&typeof i!="number"&&ye(e,t,i)&&(t=i=o),i=i===o?We:i>>>0,i?(e=V(e),e&&(typeof t=="string"||t!=null&&!Ii(t))&&(t=Ie(t),!t&&Dt(e))?gt(ze(e),0,i):e.split(t,i)):[]}var am=zt(function(e,t,i){return e+(i?" ":"")+Ei(t)});function lm(e,t,i){return e=V(e),i=i==null?0:Ct(H(i),0,e.length),t=Ie(t),e.slice(i,i+t.length)==t}function sm(e,t,i){var r=s.templateSettings;i&&ye(e,t,i)&&(t=o),e=V(e),t=fo({},t,r,ha);var a=fo({},t.imports,r.imports,ha),p=ue(a),d=Ho(a,p),f,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"),L="//# sourceURL="+(q.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ys+"]")+`
|
|
11
|
-
`;e.replace(T,function(R,Y,G,Te,he,Ee){return G||(G=Te),I+=e.slice(C,Ee).replace(Vl,Ns),Y&&(
|
|
10
|
+
`)}function Pu(e){return O(e)||Ft(e)||!!(Tr&&e&&e[Tr])}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 ye(e,t,i){if(!te(i))return!1;var r=typeof t;return(r=="number"?xe(i)&&nt(t,i.length):r=="string"&&t in i)?Ye(i[t],e):!1}function yi(e,t){if(O(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||Fe(e)?!0:Ll.test(e)||!Al.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&&!te(e)}function _a(e,t){return function(i){return i==null?!1:i[e]===t&&(t!==o||e in J(i))}}function Ou(e){var t=so(e,function(r){return i.size===F&&i.clear(),r}),i=t.cache;return t}function ku(e,t){var i=e[1],r=t[1],a=i|r,p=a<(M|ie|Ae),d=r==Ae&&i==le||r==Ae&&i==at&&e[7].length<=t[8]||r==(Ae|at)&&t[7].length<=t[8]&&i==le;if(!(p||d))return e;r&M&&(e[2]=t[2],a|=i&M?0:Ge);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],E):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],E):t[6]),m=t[7],m&&(e[7]=m),r&Ae&&(e[8]=e[8]==null?t[8]:me(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=pe(t===o?e.length-1:t,0),function(){for(var r=arguments,a=-1,p=pe(r.length-t,0),d=x(p);++a<p;)d[a]=r[t+a];a=-1;for(var m=x(t+1);++a<t;)m[a]=r[a];return m[t]=i(d),we(e,this,m)}}function Fa(e,t){return t.length<2?e:wt(e,Me(t,0,-1))}function Uu(e,t){for(var i=e.length,r=me(t.length,i),a=be(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 Ta=Aa(Xr),dn=np||function(e,t){return ce.setTimeout(e,t)},xi=Aa(uu);function Ea(e,t,i){var r=t+"";return xi(e,Du(r,Yu(Au(r),i)))}function Aa(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 La=Ou(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 qe(e){if(typeof e=="string"||Fe(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]&&!En(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__=be(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function $u(e,t,i){(i?ye(e,t,i):t===o)?t=1:t=pe(H(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var a=0,p=0,d=x(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=x(e-1),i=arguments[0],r=e;r--;)t[r-1]=arguments[r];return pt(O(i)?be(i):[i],de(t,1))}var Ku=U(function(e,t){return re(e)?an(e,de(t,1,re,!0)):[]}),Vu=U(function(e,t){var i=Ne(t);return re(i)&&(i=o),re(e)?an(e,de(t,1,re,!0),D(i,2)):[]}),qu=U(function(e,t){var i=Ne(t);return re(i)&&(i=o),re(e)?an(e,de(t,1,re,!0),o,i):[]});function Ju(e,t,i){var r=e==null?0:e.length;return r?(t=i||t===o?1:H(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:H(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"&&ye(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:H(i);return a<0&&(a=pe(r+a,0)),An(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=H(i),a=i<0?pe(r+a,0):me(a,r-1)),An(e,D(t,3),a,!0)}function Ra(e){var t=e==null?0:e.length;return t?de(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?de(e,ht):[]}function tc(e,t){var i=e==null?0:e.length;return i?(t=t===o?1:H(t),de(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:H(i);return a<0&&(a=pe(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=ee(e,ai);return t.length&&t[0]===e[0]?Xo(t):[]}),ac=U(function(e){var t=Ne(e),i=ee(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=ee(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=H(i),a=a<0?pe(r+a,0):me(a,r-1)),t===t?Ys(e,t,a):An(e,gr,a,!0)}function uc(e,t){return e&&e.length?Kr(e,H(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=Ko(e,t);return Jr(e,ee(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"&&ye(e,t,i)?(t=0,i=r):(t=t==null?0:H(t),i=i===o?r:H(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 Fc(e,t,i){return e&&e.length?(t=i||t===o?1:H(t),Me(e,0,t<0?0:t)):[]}function Tc(e,t,i){var r=e==null?0:e.length;return r?(t=i||t===o?1:H(t),t=r-t,Me(e,t<0?0:t,r)):[]}function Ec(e,t){return e&&e.length?Xn(e,D(t,3),!1,!0):[]}function Ac(e,t){return e&&e.length?Xn(e,D(t,3)):[]}var Lc=U(function(e){return mt(de(e,1,re,!0))}),Bc=U(function(e){var t=Ne(e);return re(t)&&(t=o),mt(de(e,1,re,!0),D(t,2))}),Dc=U(function(e){var t=Ne(e);return t=typeof t=="function"?t:o,mt(de(e,1,re,!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(re(i))return t=pe(i.length,t),!0}),ko(t,function(i){return ee(e,Mo(i))})}function Oa(e,t){if(!(e&&e.length))return[];var i=Si(e);return t==null?i:ee(i,function(r){return we(t,o,r)})}var Nc=U(function(e,t){return re(e)?an(e,t):[]}),Oc=U(function(e){return ri(st(e,re))}),kc=U(function(e){var t=Ne(e);return re(t)&&(t=o),ri(st(e,re),D(t,2))}),Hc=U(function(e){var t=Ne(e);return t=typeof t=="function"?t:o,ri(st(e,re),o,t)}),zc=U(Si);function Uc(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,Oa(e,i)});function ka(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 ka(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=O(e)?mr:Gp;return i&&ye(e,t,i)&&(t=o),r(e,D(t,3))}function td(e,t){var i=O(e)?st:Or;return i(e,D(t,3))}var nd=ca(Da),od=ca(Pa);function id(e,t){return de(ao(e,t),1)}function rd(e,t){return de(ao(e,t),ht)}function ad(e,t,i){return i=i===o?1:H(i),de(ao(e,t),i)}function Ha(e,t){var i=O(e)?Be:dt;return i(e,D(t,3))}function za(e,t){var i=O(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=xe(e)?e:$t(e),i=i&&!r?H(i):0;var a=e.length;return i<0&&(i=pe(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=xe(e)?x(e.length):[];return dt(e,function(d){p[++r]=a?we(t,d,i):ln(d,t,i)}),p}),ud=Zn(function(e,t,i){je(e,i,t)});function ao(e,t){var i=O(e)?ee:$r;return i(e,D(t,3))}function cd(e,t,i,r){return e==null?[]:(O(t)||(t=t==null?[]:[t]),i=r?o:i,O(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=O(e)?Po:hr,a=arguments.length<3;return r(e,D(t,4),i,a,dt)}function fd(e,t,i){var r=O(e)?Fs:hr,a=arguments.length<3;return r(e,D(t,4),i,a,Nr)}function gd(e,t){var i=O(e)?st:Or;return i(e,po(D(t,3)))}function yd(e){var t=O(e)?Dr:su;return t(e)}function hd(e,t,i){(i?ye(e,t,i):t===o)?t=1:t=H(t);var r=O(e)?Hp:pu;return r(e,t)}function bd(e){var t=O(e)?zp:cu;return t(e)}function xd(e){if(e==null)return 0;if(xe(e))return co(e)?Pt(e):e.length;var t=fe(e);return t==ke||t==He?e.size:Qo(e).length}function vd(e,t,i){var r=O(e)?Ro:du;return i&&ye(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&&ye(e,t[0],t[1])?t=[]:i>2&&ye(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,de(t,1),[])}),lo=tp||function(){return ce.Date.now()};function Cd(e,t){if(typeof t!="function")throw new De(h);return e=H(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,Ae,o,o,o,o,t)}function Ya(e,t){var i;if(typeof t!="function")throw new De(h);return e=H(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,Ut(Ci));r|=Ce}return et(e,r,t,i,a)}),$a=U(function(e,t,i){var r=M|ie;if(i.length){var a=ut(i,Ut($a));r|=Ce}return et(t,r,e,i,a)});function Ga(e,t,i){t=i?o:t;var r=et(e,le,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,ne,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=Oe(t)||0,te(i)&&(w=!!i.leading,I="maxWait"in i,p=I?pe(Oe(i.maxWait)||0,t):p,T="trailing"in i?!!i.trailing:T);function L(ae){var $e=r,rt=a;return r=a=o,C=ae,d=e.apply(rt,$e),d}function P(ae){return C=ae,m=dn(Y,t),w?L(ae):d}function z(ae){var $e=ae-y,rt=ae-C,cl=t-$e;return I?me(cl,p-rt):cl}function R(ae){var $e=ae-y,rt=ae-C;return y===o||$e>=t||$e<0||I&&rt>=p}function Y(){var ae=lo();if(R(ae))return G(ae);m=dn(Y,z(ae))}function G(ae){return m=o,T&&r?L(ae):(r=a=o,d)}function Te(){m!==o&&na(m),C=0,r=y=a=m=o}function he(){return m===o?d:G(lo())}function Ee(){var ae=lo(),$e=R(ae);if(r=arguments,a=this,y=ae,$e){if(m===o)return P(y);if(I)return na(m),m=dn(Y,t),L(y)}return m===o&&(m=dn(Y,t)),d}return Ee.cancel=Te,Ee.flush=he,Ee}var wd=U(function(e,t){return Mr(e,1,t)}),_d=U(function(e,t,i){return Mr(e,Oe(t)||0,i)});function Id(e){return et(e,Tt)}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 Fd(e){return Ya(2,e)}var Td=mu(function(e,t){t=t.length==1&&O(t[0])?ee(t[0],_e(D())):ee(de(t,1),_e(D()));var i=t.length;return U(function(r){for(var a=-1,p=me(r.length,i);++a<p;)r[a]=t[a].call(this,r[a]);return we(e,this,r)})}),wi=U(function(e,t){var i=ut(t,Ut(wi));return et(e,Ce,o,t,i)}),Va=U(function(e,t){var i=ut(t,Ut(Va));return et(e,Je,o,t,i)}),Ed=tt(function(e,t){return et(e,at,o,o,o,t)});function Ad(e,t){if(typeof e!="function")throw new De(h);return t=t===o?t:H(t),U(e,t)}function Ld(e,t){if(typeof e!="function")throw new De(h);return t=t==null?0:pe(H(t),0),U(function(i){var r=i[t],a=gt(i,0,t);return r&&pt(a,r),we(e,this,a)})}function Bd(e,t,i){var r=!0,a=!0;if(typeof e!="function")throw new De(h);return te(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 O(e)?e:[e]}function Md(e){return Re(e,X)}function Nd(e,t){return t=typeof t=="function"?t:o,Re(e,X,t)}function Od(e){return Re(e,B|X)}function kd(e,t){return t=typeof t=="function"?t:o,Re(e,B|X,t)}function Hd(e,t){return t==null||Rr(e,t,ue(t))}function Ye(e,t){return e===t||e!==e&&t!==t}var zd=to(Jo),Ud=to(function(e,t){return e>=t}),Ft=zr(function(){return arguments}())?zr:function(e){return oe(e)&&q.call(e,"callee")&&!Fr.call(e,"callee")},O=x.isArray,Yd=lr?_e(lr):Xp;function xe(e){return e!=null&&uo(e.length)&&!ot(e)}function re(e){return oe(e)&&xe(e)}function $d(e){return e===!0||e===!1||oe(e)&&ge(e)==Wt}var yt=op||Ri,Gd=sr?_e(sr):Zp;function Wd(e){return oe(e)&&e.nodeType===1&&!mn(e)}function Kd(e){if(e==null)return!0;if(xe(e)&&(O(e)||typeof e=="string"||typeof e.splice=="function"||yt(e)||Yt(e)||Ft(e)))return!e.length;var t=fe(e);if(t==ke||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=ge(e);return t==Cn||t==hl||typeof e.message=="string"&&typeof e.name=="string"&&!mn(e)}function Jd(e){return typeof e=="number"&&Er(e)}function ot(e){if(!te(e))return!1;var t=ge(e);return t==wn||t==Mi||t==yl||t==xl}function qa(e){return typeof e=="number"&&e==H(e)}function uo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lt}function te(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function oe(e){return e!=null&&typeof e=="object"}var Ja=pr?_e(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 Ur(e)}function em(e){return e===null}function tm(e){return e==null}function Xa(e){return typeof e=="number"||oe(e)&&ge(e)==Vt}function mn(e){if(!oe(e)||ge(e)!=Xe)return!1;var t=On(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?_e(ur):eu;function nm(e){return qa(e)&&e>=-lt&&e<=lt}var Za=cr?_e(cr):tu;function co(e){return typeof e=="string"||!O(e)&&oe(e)&&ge(e)==Jt}function Fe(e){return typeof e=="symbol"||oe(e)&&ge(e)==_n}var Yt=dr?_e(dr):nu;function om(e){return e===o}function im(e){return oe(e)&&fe(e)==Xt}function rm(e){return oe(e)&&ge(e)==Sl}var am=to(jo),lm=to(function(e,t){return e<=t});function Qa(e){if(!e)return[];if(xe(e))return co(e)?ze(e):be(e);if(jt&&e[jt])return Hs(e[jt]());var t=fe(e),i=t==ke?zo:t==He?Ln:$t;return i(e)}function it(e){if(!e)return e===0?e:0;if(e=Oe(e),e===ht||e===-ht){var t=e<0?-1:1;return t*dl}return e===e?e:0}function H(e){var t=it(e),i=t%1;return t===t?i?t-i:t:0}function ja(e){return e?Ct(H(e),0,We):0}function Oe(e){if(typeof e=="number")return e;if(Fe(e))return vn;if(te(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=te(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 Ve(e,ve(e))}function sm(e){return e?Ct(H(e),-lt,lt):e===0?e:0}function V(e){return e==null?"":Ie(e)}var pm=Ht(function(e,t){if(cn(t)||xe(t)){Ve(t,ue(t),e);return}for(var i in t)q.call(t,i)&&rn(e,i,t[i])}),tl=Ht(function(e,t){Ve(t,ve(t),e)}),mo=Ht(function(e,t,i,r){Ve(t,ve(t),e,r)}),um=Ht(function(e,t,i,r){Ve(t,ue(t),e,r)}),cm=tt(Ko);function dm(e,t){var i=kt(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&&ye(t[0],t[1],a)&&(r=1);++i<r;)for(var p=t[i],d=ve(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),we(nl,o,e)});function gm(e,t){return fr(e,D(t,3),Ke)}function ym(e,t){return fr(e,D(t,3),qo)}function hm(e,t){return e==null?e:Vo(e,D(t,3),ve)}function bm(e,t){return e==null?e:kr(e,D(t,3),ve)}function xm(e,t){return e&&Ke(e,D(t,3))}function vm(e,t){return e&&qo(e,D(t,3))}function Sm(e){return e==null?[]:Vn(e,ue(e))}function Cm(e){return e==null?[]:Vn(e,ve(e))}function Fi(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 Ti(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},Ai(Se)),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),Fm=U(ln);function ue(e){return xe(e)?Br(e):Qo(e)}function ve(e){return xe(e)?Br(e,!0):ou(e)}function Tm(e,t){var i={};return t=D(t,3),Ke(e,function(r,a,p){je(i,t(r,a,p),r)}),i}function Em(e,t){var i={};return t=D(t,3),Ke(e,function(r,a,p){je(i,a,t(r,a,p))}),i}var Am=Ht(function(e,t,i){qn(e,t,i)}),nl=Ht(function(e,t,i,r){qn(e,t,i,r)}),Lm=tt(function(e,t){var i={};if(e==null)return i;var r=!1;t=ee(t,function(p){return p=ft(p,e),r||(r=p.length>1),p}),Ve(e,di(e),i),r&&(i=Re(i,B|k|X,_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=ee(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[qe(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(ue),rl=ya(ve);function Nm(e,t,i){var r=O(e),a=r||yt(e)||Yt(e);if(t=D(t,4),i==null){var p=e&&e.constructor;a?i=r?new p:[]:te(e)?i=ot(p)?kt(On(e)):{}:i={}}return(a?Be:Ke)(e,function(d,m,y){return t(i,d,m,y)}),i}function Om(e,t){return e==null?!0:ii(e,t)}function km(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,ue(e))}function zm(e){return e==null?[]:Ho(e,ve(e))}function Um(e,t,i){return i===o&&(i=t,t=o),i!==o&&(i=Oe(i),i=i===i?i:0),t!==o&&(t=Oe(t),t=t===t?t:0),Ct(Oe(e),t,i)}function Ym(e,t,i){return t=it(t),i===o?(i=t,t=0):i=it(i),e=Oe(e),qp(e,t,i)}function $m(e,t,i){if(i&&typeof i!="boolean"&&ye(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=Ar();return me(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 Ei(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=Ie(t);var r=e.length;i=i===o?r:Ct(H(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&&Fl.test(e)?e.replace(ki,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=H(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=H(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=H(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?ye(e,t,i):t===o)?t=1:t=H(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"&&ye(e,t,i)&&(t=i=o),i=i===o?We:i>>>0,i?(e=V(e),e&&(typeof t=="string"||t!=null&&!Ii(t))&&(t=Ie(t),!t&&Dt(e))?gt(ze(e),0,i):e.split(t,i)):[]}var af=zt(function(e,t,i){return e+(i?" ":"")+Ei(t)});function lf(e,t,i){return e=V(e),i=i==null?0:Ct(H(i),0,e.length),t=Ie(t),e.slice(i,i+t.length)==t}function sf(e,t,i){var r=s.templateSettings;i&&ye(e,t,i)&&(t=o),e=V(e),t=mo({},t,r,ha);var a=mo({},t.imports,r.imports,ha),p=ue(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"),L="//# sourceURL="+(q.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ys+"]")+`
|
|
11
|
+
`;e.replace(T,function(R,Y,G,Te,he,Ee){return G||(G=Te),I+=e.slice(C,Ee).replace(Vl,Ns),Y&&(m=!0,I+=`' +
|
|
12
12
|
__e(`+Y+`) +
|
|
13
13
|
'`),he&&(y=!0,I+=`';
|
|
14
14
|
`+he+`;
|
|
@@ -20,15 +20,15 @@ __p += '`),G&&(I+=`' +
|
|
|
20
20
|
}
|
|
21
21
|
`;else if(kl.test(P))throw new N(v);I=(y?I.replace(Cl,""):I).replace(wl,"$1").replace(_l,"$1;"),I="function("+(P||"obj")+`) {
|
|
22
22
|
`+(P?"":`obj || (obj = {});
|
|
23
|
-
`)+"var __t, __p = ''"+(
|
|
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 z=pl(function(){return W(p,L+"return "+I).apply(o,d)});if(z.source=I,_i(z))throw z;return z}function pm(e){return V(e).toLowerCase()}function um(e){return V(e).toUpperCase()}function cm(e,t,i){if(e=V(e),e&&(i||t===o))return br(e);if(!e||!(t=Ie(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 dm(e,t,i){if(e=V(e),e&&(i||t===o))return e.slice(0,Cr(e)+1);if(!e||!(t=Ie(t)))return e;var r=ze(e),a=vr(r,ze(t))+1;return gt(r,0,a).join("")}function fm(e,t,i){if(e=V(e),e&&(i||t===o))return e.replace(_o,"");if(!e||!(t=Ie(t)))return e;var r=ze(e),a=xr(r,ze(t));return gt(r,a).join("")}function mm(e,t){var i=mn,r=gn;if(te(t)){var a="separator"in t?t.separator:a;i="length"in t?H(t.length):i,r="omission"in t?Ie(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 f=i-Pt(r);if(f<1)return r;var y=d?gt(d,0,f).join(""):e.slice(0,f);if(a===o)return y+r;if(d&&(f+=y.length-f),Ii(a)){if(e.slice(f).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?f:I)}}else if(e.indexOf(Ie(a),f)!=f){var T=y.lastIndexOf(a);T>-1&&(y=y.slice(0,T))}return y+r}function gm(e){return e=V(e),e&&Il.test(e)?e.replace(Oi,$s):e}var ym=zt(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),Ei=ua("toUpperCase");function sl(e,t,i){return e=V(e),t=i?o:t,t===o?ks(e)?Ks(e):As(e):e.match(t)||[]}var pl=U(function(e,t){try{return we(e,o,t)}catch(i){return _i(i)?i:new N(i)}}),hm=tt(function(e,t){return Be(t,function(i){i=qe(i),je(e,i,Ci(e[i],e))}),e});function bm(e){var t=e==null?0:e.length,i=D();return e=t?ee(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(we(p[0],this,r))return we(p[1],this,r)}})}function xm(e){return $p(Re(e,B))}function Ai(e){return function(){return e}}function vm(e,t){return e==null||e!==e?t:e}var Sm=da(),Cm=da(!0);function Se(e){return e}function Li(e){return Yr(typeof e=="function"?e:Re(e,B))}function wm(e){return Gr(Re(e,B))}function _m(e,t){return Wr(e,Re(t,B))}var Im=U(function(e,t){return function(i){return ln(i,e,t)}}),Fm=U(function(e,t){return function(i){return ln(e,i,t)}});function Bi(e,t,i){var r=ue(t),a=Vn(t,r);i==null&&!(te(t)&&(a.length||!r.length))&&(i=t,t=e,e=this,a=Vn(t,ue(t)));var p=!(te(i)&&"chain"in i)||!!i.chain,d=ot(e);return Be(a,function(f){var y=t[f];e[f]=y,d&&(e.prototype[f]=function(){var C=this.__chain__;if(p||C){var w=e(this.__wrapped__),I=w.__actions__=be(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 Tm(){return ce._===this&&(ce._=Qs),this}function Di(){}function Em(e){return e=H(e),U(function(t){return Kr(t,e)})}var Am=pi(ee),Lm=pi(fr),Bm=pi(Ro);function ul(e){return yi(e)?Mo(qe(e)):au(e)}function Dm(e){return function(t){return e==null?o:wt(e,t)}}var Pm=ma(),Rm=ma(!0);function Pi(){return[]}function Ri(){return!1}function Mm(){return{}}function Nm(){return""}function Om(){return!0}function km(e,t){if(e=H(e),e<1||e>lt)return[];var i=We,r=fe(e,We);t=D(t),e-=We;for(var a=ko(r,t);++i<e;)t(i);return a}function Hm(e){return O(e)?ee(e,qe):Fe(e)?[e]:be(La(V(e)))}function zm(e){var t=++Xs;return V(e)+t}var Um=jn(function(e,t){return e+t},0),Ym=ui("ceil"),$m=jn(function(e,t){return e/t},1),Gm=ui("floor");function Wm(e){return e&&e.length?Kn(e,Se,Jo):o}function Km(e,t){return e&&e.length?Kn(e,D(t,2),Jo):o}function Vm(e){return yr(e,Se)}function qm(e,t){return yr(e,D(t,2))}function Jm(e){return e&&e.length?Kn(e,Se,jo):o}function Xm(e,t){return e&&e.length?Kn(e,D(t,2),jo):o}var Zm=jn(function(e,t){return e*t},1),Qm=ui("round"),jm=jn(function(e,t){return e-t},0);function eg(e){return e&&e.length?Oo(e,Se):0}function tg(e,t){return e&&e.length?Oo(e,D(t,2)):0}return s.after=Cd,s.ary=Ua,s.assign=uf,s.assignIn=tl,s.assignInWith=fo,s.assignWith=cf,s.at=df,s.before=Ya,s.bind=Ci,s.bindAll=hm,s.bindKey=$a,s.castArray=Rd,s.chain=ka,s.chunk=$u,s.compact=Gu,s.concat=Wu,s.cond=bm,s.conforms=xm,s.constant=Ai,s.countBy=jc,s.create=ff,s.curry=Ga,s.curryRight=Wa,s.debounce=Ka,s.defaults=mf,s.defaultsDeep=gf,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=Sm,s.flowRight=Cm,s.fromPairs=nc,s.functions=Cf,s.functionsIn=wf,s.groupBy=ld,s.initial=ic,s.intersection=rc,s.intersectionBy=ac,s.intersectionWith=lc,s.invert=If,s.invertBy=Ff,s.invokeMap=pd,s.iteratee=Li,s.keyBy=ud,s.keys=ue,s.keysIn=ve,s.map=ao,s.mapKeys=Ef,s.mapValues=Af,s.matches=wm,s.matchesProperty=_m,s.memoize=so,s.merge=Lf,s.mergeWith=nl,s.method=Im,s.methodOf=Fm,s.mixin=Bi,s.negate=po,s.nthArg=Em,s.omit=Bf,s.omitBy=Df,s.once=Fd,s.orderBy=cd,s.over=Am,s.overArgs=Td,s.overEvery=Lm,s.overSome=Bm,s.partial=wi,s.partialRight=Va,s.partition=dd,s.pick=Pf,s.pickBy=ol,s.property=ul,s.propertyOf=Dm,s.pull=cc,s.pullAll=Na,s.pullAllBy=dc,s.pullAllWith=fc,s.pullAt=mc,s.range=Pm,s.rangeRight=Rm,s.rearg=Ed,s.reject=gd,s.remove=gc,s.rest=Ad,s.reverse=vi,s.sampleSize=hd,s.set=Mf,s.setWith=Nf,s.shuffle=bd,s.slice=yc,s.sortBy=Sd,s.sortedUniq=wc,s.sortedUniqBy=_c,s.split=rm,s.spread=Ld,s.tail=Ic,s.take=Fc,s.takeRight=Tc,s.takeRightWhile=Ec,s.takeWhile=Ac,s.tap=Gc,s.throttle=Bd,s.thru=ro,s.toArray=Qa,s.toPairs=il,s.toPairsIn=rl,s.toPath=Hm,s.toPlainObject=el,s.transform=Of,s.unary=Dd,s.union=Lc,s.unionBy=Bc,s.unionWith=Dc,s.uniq=Pc,s.uniqBy=Rc,s.uniqWith=Mc,s.unset=kf,s.unzip=Si,s.unzipWith=Oa,s.update=Hf,s.updateWith=zf,s.values=$t,s.valuesIn=Uf,s.without=Nc,s.words=sl,s.wrap=Pd,s.xor=Oc,s.xorBy=kc,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=fo,Bi(s,s),s.add=Um,s.attempt=pl,s.camelCase=Wf,s.capitalize=al,s.ceil=Ym,s.clamp=Yf,s.clone=Md,s.cloneDeep=Od,s.cloneDeepWith=kd,s.cloneWith=Nd,s.conformsTo=Hd,s.deburr=ll,s.defaultTo=vm,s.divide=$m,s.endsWith=Kf,s.eq=Ye,s.escape=Vf,s.escapeRegExp=qf,s.every=ed,s.find=nd,s.findIndex=Da,s.findKey=yf,s.findLast=od,s.findLastIndex=Pa,s.findLastKey=hf,s.floor=Gm,s.forEach=Ha,s.forEachRight=za,s.forIn=bf,s.forInRight=xf,s.forOwn=vf,s.forOwnRight=Sf,s.get=Fi,s.gt=zd,s.gte=Ud,s.has=_f,s.hasIn=Ti,s.head=Ma,s.identity=Se,s.includes=sd,s.indexOf=oc,s.inRange=$f,s.invoke=Tf,s.isArguments=Ft,s.isArray=O,s.isArrayBuffer=Yd,s.isArrayLike=xe,s.isArrayLikeObject=re,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=tf,s.isNull=ef,s.isNumber=Xa,s.isObject=te,s.isObjectLike=oe,s.isPlainObject=fn,s.isRegExp=Ii,s.isSafeInteger=nf,s.isSet=Za,s.isString=co,s.isSymbol=Fe,s.isTypedArray=Yt,s.isUndefined=of,s.isWeakMap=rf,s.isWeakSet=af,s.join=sc,s.kebabCase=Jf,s.last=Ne,s.lastIndexOf=pc,s.lowerCase=Xf,s.lowerFirst=Zf,s.lt=lf,s.lte=sf,s.max=Wm,s.maxBy=Km,s.mean=Vm,s.meanBy=qm,s.min=Jm,s.minBy=Xm,s.stubArray=Pi,s.stubFalse=Ri,s.stubObject=Mm,s.stubString=Nm,s.stubTrue=Om,s.multiply=Zm,s.nth=uc,s.noConflict=Tm,s.noop=Di,s.now=lo,s.pad=Qf,s.padEnd=jf,s.padStart=em,s.parseInt=tm,s.random=Gf,s.reduce=fd,s.reduceRight=md,s.repeat=nm,s.replace=om,s.result=Rf,s.round=Qm,s.runInContext=m,s.sample=yd,s.size=xd,s.snakeCase=im,s.some=vd,s.sortedIndex=hc,s.sortedIndexBy=bc,s.sortedIndexOf=xc,s.sortedLastIndex=vc,s.sortedLastIndexBy=Sc,s.sortedLastIndexOf=Cc,s.startCase=am,s.startsWith=lm,s.subtract=jm,s.sum=eg,s.sumBy=tg,s.template=sm,s.times=km,s.toFinite=it,s.toInteger=H,s.toLength=ja,s.toLower=pm,s.toNumber=Oe,s.toSafeInteger=pf,s.toString=V,s.toUpper=um,s.trim=cm,s.trimEnd=dm,s.trimStart=fm,s.truncate=mm,s.unescape=gm,s.uniqueId=zm,s.upperCase=ym,s.upperFirst=Ei,s.each=Ha,s.eachRight=za,s.first=Ma,Bi(s,function(){var e={};return Ke(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:pe(H(i),0);var r=this.__filtered__&&!t?new $(this):this.clone();return r.__filtered__?r.__takeCount__=fe(i,r.__takeCount__):r.__views__.push({size:fe(i,We),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(Se)},$.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=H(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=H(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(We)},Ke($.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__,f=r?[1]:arguments,y=d instanceof $,C=f[0],w=y||O(d),I=function(Y){var G=a.apply(s,pt([Y],f));return r&&T?G[0]:G};w&&i&&typeof C=="function"&&C.length!=1&&(y=w=!1);var T=this.__chain__,L=!!this.__actions__.length,P=p&&!T,z=y&&!L;if(!p&&w){d=z?d:new $(this);var R=e.apply(d,f);return R.__actions__.push({func:ro,args:[I],thisArg:o}),new Pe(R,T)}return P&&z?e.apply(this,f):(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(O(p)?p:[],a)}return this[i](function(d){return t.apply(O(d)?d:[],a)})}}),Ke($.prototype,function(e,t){var i=s[t];if(i){var r=i.name+"";q.call(Ot,r)||(Ot[r]=[]),Ot[r].push({name:t,func:i})}}),Ot[Qn(o,ie).name]=[{name:"wrapper",func:o}],$.prototype.clone=mp,$.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,Lo._=Rt):ce._=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"}]},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"}]},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)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"Array"},config:{layout:12,main:{},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:0,md:8,lg:6})];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"),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-AxisValue"),getInputField("xAxisValue","X-AxisValue"),getSelectField("xAxisType","X-AxisType"),getRadioInputField("bottomAxisAngle","Bottom Axis Angled",["YES","No"]),getInputField("leftMargin","Left Margin"),getInputField("xAxisTickCount","X Axis TickCount"),getInputField("yAxisTickCount","Y Axis TickCount"),getSelectField("xAxisFormatType","X Axis Format Type"),emptyBox$1("GraphEmpty1",{xs:0,sm:0,md:4,lg:6}),getArrayControlMultiField("legendLabels","key","value","Key","Label"),getArrayControlMultiField("pieArcColors","key","value","Key","Color")];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"),emptyBox$1("WrapperSectionEmpty1",{xs:6,sm:0,md:4,lg:3})];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"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=>({type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/elements",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/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:"#/properties/Paste_Component",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:"#/properties/Copy_Component",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,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},collectScopeNames=(n,l={})=>!n||typeof n!="object"?l:Array.isArray(n)?(n.forEach(o=>collectScopeNames(o,l)),l):(n.name&&(l[n.name]=!0),Array.isArray(n.elements)&&collectScopeNames(n.elements,l),l),initialiseScopeKey=()=>{const n=sessionStorage.getItem("pageFormdata")?JSON.parse(sessionStorage.getItem("pageFormdata")):void 0,l=n?collectScopeNames(n):{};sessionStorage.setItem("scopeKey",JSON.stringify(l))},getScopeKey=()=>{const n=sessionStorage.getItem("scopeKey");return n?JSON.parse(n):{}},addToScopeKey=n=>{if(!n)return;const l=getScopeKey();l[n]=!0,sessionStorage.setItem("scopeKey",JSON.stringify(l))},doesScopeNameExist=n=>n?!!getScopeKey()[n]:!1,findDuplicateScopeNames=n=>{const l={},o=u=>{if(!(!u||typeof u!="object")){if(Array.isArray(u)){u.forEach(o);return}u.name&&(l[u.name]=(l[u.name]||0)+1),Array.isArray(u.elements)&&o(u.elements)}};return o(n),Object.keys(l).filter(u=>l[u]>1)};async function saveHandler(n,l,o){var h;const u=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,u);const g=JSON.parse(sessionStorage.getItem("pageFormdata")),c=findDuplicateScopeNames(g);if(c.length>0){n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:`Duplicate names found: ${c.join(", ")}`});return}if(_.isEmpty(n.ctx.core.errors))try{const v=await o(n,l,g);navigateHandler(n,!0,"/PageMasterRecords")}catch(v){navigateHandler(n,!1,void 0,v.message)}else navigateHandler(n,!1)}const navigateHandler=(n,l,o,u)=>{l?(sessionStorage.removeItem("pageFormdata"),sessionStorage.removeItem("scopeKey"),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),addToScopeKey(n.ctx.core.data),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","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","Style"],PopOver:["Core","Components","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,o){var F,E;const u=_.cloneDeep(componentBasicUiSchema(l.theme.myTheme)),g=JSON.parse(sessionStorage.getItem("pageFormdata"));if(n){const B={Core:CoreSection,Value:ValueTab,Style:StyleSection,Events:EventSection(l.theme.myTheme),Components:TableSection(l.theme.myTheme),Properties:buildPropertiesSection(n),Validation:ValidationSection},k=(F=sectionLabels[n])==null?void 0:F.map(X=>B[X]);o!=null&&o.style||l.setFormdata(X=>({...X,style:`{
|
|
28
|
-
}`})),u.elements[0].config.main.tabLabels=sectionLabels[n]||["Core","Style","Events","Validation"],u.elements[0].elements=k||[CoreSection,StyleSection,EventSection(l.theme.myTheme),ValidationSection]}const c=(E=l.searchParams)==null?void 0:E.get("path"),h=c.lastIndexOf("."),v=c.slice(0,h),b=_.get(g,v);((b==null?void 0:b.type)==="Table"||(b==null?void 0:b.type)==="ColumnGroup")&&(u.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"}}},u.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}}},u.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"]}}},u.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"]}}},u.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"}},u.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"}}},u.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"}}},u.elements[0].elements[0].elements[11]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:0,lg:6}}}),(b==null?void 0:b.type)==="LeaderBoard"&&(u.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(u),l.setUiSchema(u)}const debouncedNameValidator=_.debounce((n,l)=>{doesScopeNameExist(l)&&(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:`Name "${l}" already exists. Please use a unique name.`}))},400);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,g)},refreshPage,getFormdata:function(){var c;const g=(c=n.searchParams)==null?void 0:c.get("path");return getFormdataFromSessionStorage(g)},getSchema:function(){var F,E,B;const g=_.cloneDeep(ComponentSchema);sessionStorage.getItem("copiedConfig")&&(g.properties.RemoveItemButton.disabled=!1);const c=JSON.parse(sessionStorage.getItem("pageFormdata")),h=(F=n.searchParams)==null?void 0:F.get("path"),v=(E=n.searchParams)==null?void 0:E.get("id");let b=[{label:(B=c.name)!=null?B:"NewPage",path:`/PageMaster${v?`?id=${v}`:""}`}];if(h){const k=h.split("."),X=[];k.map((Z,K)=>{if(K===0){X.push(Z);return}X.push(`${X[K-1]}.${Z}`)}),X.map(Z=>{const K=_.get(c,Z);b.push({label:(K==null?void 0:K.name)||(K==null?void 0:K.eventType)||"NewComponent",path:`/Component?path=${Z}${v?`&id=${v}`:""}`})})}return g.properties.pageName.path=b,g},okHandler:()=>{okHandler(n),addToScopeKey(n.ctx.core.data)},saveHandler:async()=>await saveHandler(n,u,o),onChange:function(){var g,c,h,v,b,F,E;((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((v=n==null?void 0:n.newData)==null?void 0:v.type,n),((b=n==null?void 0:n.formData)==null?void 0:b.name)!==((F=n==null?void 0:n.newData)==null?void 0:F.name)&&((E=n==null?void 0:n.newData)==null?void 0:E.name)!==void 0&&debouncedNameValidator(n,n.newData.name)},editComponents:function(){var v,b,F;if(validateAndShowErrors(n))return;const g=l.path.split(".")[1],c=(v=n.searchParams)==null?void 0:v.get("path"),h=(b=n.searchParams)==null?void 0:b.get("id");if(saveFormdataInSessionStorage(n.ctx.core.data,c),addToScopeKey(n.ctx.core.data),c){const B=`${(F=n.searchParams)==null?void 0:F.get("path")}.elements[${g}]`;n.searchParams.set("path",B),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");n.formData.elements.splice(h,1);const v=saveFormdataInSessionStorage(n.ctx.core.data,c),b=c?_.get(v,c):v;n.setFormdata(b),g&&n.updateDialog("popUpComponentSection"),sessionStorage.removeItem("rowId")},deleteEvent:function(g=!0){var b;const c=(b=n.searchParams)==null?void 0:b.get("path"),h=sessionStorage.getItem("rowId");n.formData.events.splice(h,1);const v=saveFormdataInSessionStorage(n.ctx.core.data,c);n.setFormdata(_.get(v,c)),g&&n.updateDialog("popUpEventSection"),sessionStorage.removeItem("rowId")},widgetAddClickHandler:function(){var h;if(validateAndShowErrors(n))return;Array.isArray(n.formData.elements)||(n.formData.elements=[]);const g=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,g),addToScopeKey(n.ctx.core.data);const c=`${g}.elements[${n.formData.elements.length}]`;n.searchParams.set("path",c),n.setSearchParams(n.searchParams),this.setPage()},eventEditHandler:function(){var b,F;if(validateAndShowErrors(n))return;const g=l.path.split(".")[1],c=(b=n.searchParams)==null?void 0:b.get("path"),h=(F=n.searchParams)==null?void 0:F.get("id");saveFormdataInSessionStorage(n.ctx.core.data,c);const v=`${c}.events[${g}]`;n.navigate(`/ComponentEvents?path=${v}&id=${h}`)},eventAddHandler:function(){var v,b;if(validateAndShowErrors(n))return;const g=(v=n.searchParams)==null?void 0:v.get("path"),c=(b=n.searchParams)==null?void 0:b.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),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 b;const[h,v]=(b=l.path.split(".").pop())==null?void 0:b.split("_");h==="Copy"?this.CopyElement(g,v):this.PasteElement(c,v)},CopyElement:function(g=n,c){var k;const h=lodash.exports.cloneDeep(g.schema),v=lodash.exports.cloneDeep(g.uiSchema);h.properties.RemoveItemButton.disabled=!1;const b=l.path.split(".")[1],F=(k=n.searchParams)==null?void 0:k.get("path"),E=this.elementPathHandler(F,b,c),B=getFormdataFromSessionStorage(E);this.ElementPathSetter(v,B),sessionStorage.setItem("copiedConfig",JSON.stringify(B)),n.setNotify({SuccessMessage:`${c} Copied Successfully`,Success:!0}),n.setSchema(h),n.setUiSchema(v)},PasteElement:function(g,c){var k;if(!sessionStorage.getItem("copiedConfig")){n.setNotify({FailMessage:"No item has been copied.",Fail:!0});return}const h=(k=n.searchParams)==null?void 0:k.get("path");Array.isArray(n.formData.elements)||(n.formData.elements=[]),Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,h);const v=getFormdataFromSessionStorage(h),b=c==="Component"?v.elements.length:v.events.length,F=this.elementPathHandler(h,b,c),E=JSON.parse(sessionStorage.getItem("copiedConfig")),B={Events:" The Events cannot be integrated into the component section.",Component:"The component cannot be integrated into the Events section."};E.Handler&&c==="Component"?n.setNotify({FailMessage:B.Events,Fail:!0}):E.name&&c==="Events"?n.setNotify({FailMessage:B.Component,Fail:!0}):(saveFormdataInSessionStorage(E,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}]`:g?`${g}.events[${c}]`:`events[${c}]`},ElementPathSetter:function(g,c){var v,b,F,E,B,k,X,Z,K,M,ie,Ge,le,ne,Ce,Je,Ae,at,Tt,mn,gn,yn,hn,Gt,bn,xn;const h=c||JSON.parse(sessionStorage.getItem("copiedConfig"));(k=(B=(E=(F=(b=(v=g==null?void 0:g.elements)==null?void 0:v[1])==null?void 0:b.elements)==null?void 0:F[0])==null?void 0:E.config)==null?void 0:B.main)!=null&&k.headerIcons?g.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`:(ne=(le=(Ge=(ie=(M=(K=(Z=(X=g==null?void 0:g.elements)==null?void 0:X[0])==null?void 0:Z.elements)==null?void 0:K[1])==null?void 0:M.elements)==null?void 0:ie[0])==null?void 0:Ge.config)==null?void 0:le.main)!=null&&ne.headerIcons&&(g.elements[0].elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`),(mn=(Tt=(at=(Ae=(Je=(Ce=g==null?void 0:g.elements)==null?void 0:Ce[1])==null?void 0:Je.elements)==null?void 0:Ae[1])==null?void 0:at.config)==null?void 0:Tt.main)!=null&&mn.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(),v=await this.getSchema();l.setSchema(v),l.setUiSchema(h),initialiseScopeKey()},getFormdata:async function(){var b;const c=(b=l.searchParams)==null?void 0:b.get("id"),h=await n.pageConfigProvider(c),v=getFormdataFromSessionStorage();return v||(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"),sessionStorage.removeItem("scopeKey"),l.navigate("/PageMasterRecords")},onAddClickHandler:function(){var v;if(validateAndShowErrors(l))return;const c=(v=l.searchParams)==null?void 0:v.get("id");Array.isArray(l.formData.elements)||(l.formData.elements=[]);const h=saveFormdataInSessionStorage(l.ctx.core.data);addToScopeKey(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 v;if(validateAndShowErrors(l))return;const c=(v=l.searchParams)==null?void 0:v.get("id");Array.isArray(l.formData.events)||(l.formData.events=[]),saveFormdataInSessionStorage(l.ctx.core.data),addToScopeKey(l.ctx.core.data);const h=`events[${l.formData.events.length}]`;l.navigate(`/ComponentEvents?path=${h}&id=${c}`)},editEvent:function(){var b;if(validateAndShowErrors(l))return;const c=o.path.split(".")[1],h=(b=l.searchParams)==null?void 0:b.get("id");saveFormdataInSessionStorage(l.ctx.core.data),addToScopeKey(l.ctx.core.data);const v=`events[${c}]`;l.navigate(`/ComponentEvents?path=${v}&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:"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,c)},refreshPage:(c,h,v)=>{var Z,K,M;const b=_.cloneDeep(EventUiSchema(h.theme.myTheme)),F=_.cloneDeep(EventSchema);c&&(c==="custom"?(b.elements[0].elements[0].elements[2]=getRadioInputField("isSync","Run in Sync",["Yes","No"]),b.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:{}}},b.elements[0].elements[0].elements[4]=getTextArea("eventCode","Write Custom Code",!1),v!=null&&v.eventCode||h.setFormdata(ie=>({...ie,eventCode:`async (store, dynamicData, user, parentEventOutput, service, componentName) => {
|
|
27
|
+
}`;var z=pl(function(){return W(p,L+"return "+I).apply(o,d)});if(z.source=I,_i(z))throw z;return z}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=Ie(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=Ie(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=Ie(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(te(t)){var a="separator"in t?t.separator:a;i="length"in t?H(t.length):i,r="omission"in t?Ie(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(Ie(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(Oi,$s):e}var yf=zt(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),Ei=ua("toUpperCase");function sl(e,t,i){return e=V(e),t=i?o:t,t===o?ks(e)?Ks(e):As(e):e.match(t)||[]}var pl=U(function(e,t){try{return we(e,o,t)}catch(i){return _i(i)?i:new N(i)}}),hf=tt(function(e,t){return Be(t,function(i){i=qe(i),je(e,i,Ci(e[i],e))}),e});function bf(e){var t=e==null?0:e.length,i=D();return e=t?ee(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(we(p[0],this,r))return we(p[1],this,r)}})}function xf(e){return $p(Re(e,B))}function Ai(e){return function(){return e}}function vf(e,t){return e==null||e!==e?t:e}var Sf=da(),Cf=da(!0);function Se(e){return e}function Li(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)}}),Ff=U(function(e,t){return function(i){return ln(e,i,t)}});function Bi(e,t,i){var r=ue(t),a=Vn(t,r);i==null&&!(te(t)&&(a.length||!r.length))&&(i=t,t=e,e=this,a=Vn(t,ue(t)));var p=!(te(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__=be(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 Tf(){return ce._===this&&(ce._=Qs),this}function Di(){}function Ef(e){return e=H(e),U(function(t){return Kr(t,e)})}var Af=pi(ee),Lf=pi(mr),Bf=pi(Ro);function ul(e){return yi(e)?Mo(qe(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 Of(){return!0}function kf(e,t){if(e=H(e),e<1||e>lt)return[];var i=We,r=me(e,We);t=D(t),e-=We;for(var a=ko(r,t);++i<e;)t(i);return a}function Hf(e){return O(e)?ee(e,qe):Fe(e)?[e]:be(La(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,Se,Jo):o}function Kf(e,t){return e&&e.length?Kn(e,D(t,2),Jo):o}function Vf(e){return yr(e,Se)}function qf(e,t){return yr(e,D(t,2))}function Jf(e){return e&&e.length?Kn(e,Se,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?Oo(e,Se):0}function tg(e,t){return e&&e.length?Oo(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=ka,s.chunk=$u,s.compact=Gu,s.concat=Wu,s.cond=bf,s.conforms=xf,s.constant=Ai,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=Li,s.keyBy=ud,s.keys=ue,s.keysIn=ve,s.map=ao,s.mapKeys=Tm,s.mapValues=Em,s.matches=wf,s.matchesProperty=_f,s.memoize=so,s.merge=Am,s.mergeWith=nl,s.method=If,s.methodOf=Ff,s.mixin=Bi,s.negate=po,s.nthArg=Ef,s.omit=Lm,s.omitBy=Bm,s.once=Fd,s.orderBy=cd,s.over=Af,s.overArgs=Td,s.overEvery=Lf,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=Na,s.pullAllBy=dc,s.pullAllWith=mc,s.pullAt=fc,s.range=Pf,s.rangeRight=Rf,s.rearg=Ed,s.reject=gd,s.remove=gc,s.rest=Ad,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=Ld,s.tail=Ic,s.take=Fc,s.takeRight=Tc,s.takeRightWhile=Ec,s.takeWhile=Ac,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=Lc,s.unionBy=Bc,s.unionWith=Dc,s.uniq=Pc,s.uniqBy=Rc,s.uniqWith=Mc,s.unset=Om,s.unzip=Si,s.unzipWith=Oa,s.update=km,s.updateWith=Hm,s.values=$t,s.valuesIn=zm,s.without=Nc,s.words=sl,s.wrap=Pd,s.xor=Oc,s.xorBy=kc,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=Od,s.cloneDeepWith=kd,s.cloneWith=Nd,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=Fi,s.gt=zd,s.gte=Ud,s.has=wm,s.hasIn=Ti,s.head=Ma,s.identity=Se,s.includes=sd,s.indexOf=oc,s.inRange=Ym,s.invoke=Fm,s.isArguments=Ft,s.isArray=O,s.isArrayBuffer=Yd,s.isArrayLike=xe,s.isArrayLikeObject=re,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=te,s.isObjectLike=oe,s.isPlainObject=mn,s.isRegExp=Ii,s.isSafeInteger=nm,s.isSet=Za,s.isString=co,s.isSymbol=Fe,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=Kf,s.mean=Vf,s.meanBy=qf,s.min=Jf,s.minBy=Xf,s.stubArray=Pi,s.stubFalse=Ri,s.stubObject=Mf,s.stubString=Nf,s.stubTrue=Of,s.multiply=Zf,s.nth=uc,s.noConflict=Tf,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=kf,s.toFinite=it,s.toInteger=H,s.toLength=ja,s.toLower=pf,s.toNumber=Oe,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=Ei,s.each=Ha,s.eachRight=za,s.first=Ma,Bi(s,function(){var e={};return Ke(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:pe(H(i),0);var r=this.__filtered__&&!t?new $(this):this.clone();return r.__filtered__?r.__takeCount__=me(i,r.__takeCount__):r.__views__.push({size:me(i,We),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(Se)},$.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=H(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=H(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(We)},Ke($.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||O(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__,L=!!this.__actions__.length,P=p&&!T,z=y&&!L;if(!p&&w){d=z?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&&z?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(O(p)?p:[],a)}return this[i](function(d){return t.apply(O(d)?d:[],a)})}}),Ke($.prototype,function(e,t){var i=s[t];if(i){var r=i.name+"";q.call(Ot,r)||(Ot[r]=[]),Ot[r].push({name:t,func:i})}}),Ot[Qn(o,ie).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,Lo._=Rt):ce._=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"}]},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"}]},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:l},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:`#/properties/${o}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:g||"Labels for Tab"}}},{type:"Control",scope:`#/properties/${u}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:c||"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:0,sm:0,md:0,lg:3})];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:6,sm:0,md:8,lg:6})];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"]),emptyBox$1("ProgressBarCardEmpty",{xs:6,sm:0,md:8,lg:6}),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:0,md:8,lg:6})];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:0,md:4,lg:3})];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"),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-AxisValue"),getInputField("xAxisValue","X-AxisValue"),getSelectField("xAxisType","X-AxisType"),getRadioInputField("bottomAxisAngle","Bottom Axis Angled",["YES","No"]),getInputField("leftMargin","Left Margin"),getInputField("xAxisTickCount","X Axis TickCount"),getInputField("yAxisTickCount","Y Axis TickCount"),getSelectField("xAxisFormatType","X Axis Format Type"),emptyBox$1("GraphEmpty1",{xs:0,sm:0,md:4,lg:6}),getArrayControlMultiField("legendLabels","Legend Labels","key","value","Key","Label"),getArrayControlMultiField("pieArcColors","Colors","key","value","Key","Color")];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"),emptyBox$1("WrapperSectionEmpty1",{xs:6,sm:0,md:4,lg:3})];break;case"TabSection":l.elements=[getRadioInputField("verticalOrientation","Vertical Orientation",["YES","NO"]),getRadioInputField("lazyLoad","Lazy Load",["YES","NO"]),emptyBox$1("TabEmpty"),getArrayControlMultiField("sectionLabels","Display Element","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",{xs:0,sm:0,md:4,lg:6})]),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"Date":l.elements=[getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("dateEmpty",{xs:6,sm:6,md:4,lg:3})];break;case"DateTime":l.elements=[getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("dateTimeEmpty",{xs:6,sm:6,md:4,lg:3})];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("fileInputEmpty",{xs:6,sm:6,md:4,lg:3})];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=>({type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/elements",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/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:"#/properties/Paste_Component",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:"#/properties/Copy_Component",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,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},collectScopeNames=(n,l={})=>!n||typeof n!="object"?l:Array.isArray(n)?(n.forEach(o=>collectScopeNames(o,l)),l):(n.name&&(l[n.name]=!0),Array.isArray(n.elements)&&collectScopeNames(n.elements,l),l),initialiseScopeKey=()=>{const n=sessionStorage.getItem("pageFormdata")?JSON.parse(sessionStorage.getItem("pageFormdata")):void 0,l=n?collectScopeNames(n):{};sessionStorage.setItem("scopeKey",JSON.stringify(l))},getScopeKey=()=>{const n=sessionStorage.getItem("scopeKey");return n?JSON.parse(n):{}},addToScopeKey=n=>{if(!n)return;const l=getScopeKey();l[n]=!0,sessionStorage.setItem("scopeKey",JSON.stringify(l))},doesScopeNameExist=n=>n?!!getScopeKey()[n]:!1,findDuplicateScopeNames=n=>{const l={},o=u=>{if(!(!u||typeof u!="object")){if(Array.isArray(u)){u.forEach(o);return}u.name&&(l[u.name]=(l[u.name]||0)+1),Array.isArray(u.elements)&&o(u.elements)}};return o(n),Object.keys(l).filter(u=>l[u]>1)};async function saveHandler(n,l,o){var h;const u=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,u);const g=JSON.parse(sessionStorage.getItem("pageFormdata")),c=findDuplicateScopeNames(g);if(c.length>0){n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:`Duplicate names found: ${c.join(", ")}`});return}if(_.isEmpty(n.ctx.core.errors))try{const v=await o(n,l,g);navigateHandler(n,!0,"/PageMasterRecords")}catch(v){navigateHandler(n,!1,void 0,v.message)}else navigateHandler(n,!1)}const navigateHandler=(n,l,o,u)=>{l?(sessionStorage.removeItem("pageFormdata"),sessionStorage.removeItem("scopeKey"),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),addToScopeKey(n.ctx.core.data),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","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","Style"],PopOver:["Core","Components","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,o){var F,E;const u=_.cloneDeep(componentBasicUiSchema(l.theme.myTheme)),g=JSON.parse(sessionStorage.getItem("pageFormdata"));if(n){const B={Core:CoreSection,Value:ValueTab,Style:StyleSection,Events:EventSection(l.theme.myTheme),Components:TableSection(l.theme.myTheme),Properties:buildPropertiesSection(n),Validation:ValidationSection},k=(F=sectionLabels[n])==null?void 0:F.map(X=>B[X]);o!=null&&o.style||l.setFormdata(X=>({...X,style:`{
|
|
28
|
+
}`})),u.elements[0].config.main.tabLabels=sectionLabels[n]||["Core","Style","Events","Validation"],u.elements[0].elements=k||[CoreSection,StyleSection,EventSection(l.theme.myTheme),ValidationSection]}const c=(E=l.searchParams)==null?void 0:E.get("path"),h=c.lastIndexOf("."),v=c.slice(0,h),b=_.get(g,v);((b==null?void 0:b.type)==="Table"||(b==null?void 0:b.type)==="ColumnGroup")&&(u.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"}}},u.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}}},u.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"]}}},u.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"]}}},u.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"}},u.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"}}},u.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"}}},u.elements[0].elements[0].elements[11]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:0,lg:6}}}),(b==null?void 0:b.type)==="LeaderBoard"&&(u.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(u),l.setUiSchema(u)}const debouncedScopeNameValidator=_.debounce((n,l)=>{doesScopeNameExist(l)&&(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:`Name "${l}" already exists. Please use a unique name.`}))},400);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,g)},refreshPage,getFormdata:function(){var c;const g=(c=n.searchParams)==null?void 0:c.get("path");return getFormdataFromSessionStorage(g)},getSchema:function(){var F,E,B;const g=_.cloneDeep(ComponentSchema);sessionStorage.getItem("copiedConfig")&&(g.properties.RemoveItemButton.disabled=!1);const c=JSON.parse(sessionStorage.getItem("pageFormdata")),h=(F=n.searchParams)==null?void 0:F.get("path"),v=(E=n.searchParams)==null?void 0:E.get("id");let b=[{label:(B=c.name)!=null?B:"NewPage",path:`/PageMaster${v?`?id=${v}`:""}`}];if(h){const k=h.split("."),X=[];k.map((Z,K)=>{if(K===0){X.push(Z);return}X.push(`${X[K-1]}.${Z}`)}),X.map(Z=>{const K=_.get(c,Z);b.push({label:(K==null?void 0:K.name)||(K==null?void 0:K.eventType)||"NewComponent",path:`/Component?path=${Z}${v?`&id=${v}`:""}`})})}return g.properties.pageName.path=b,g},okHandler:()=>{okHandler(n),addToScopeKey(n.ctx.core.data)},saveHandler:async()=>await saveHandler(n,u,o),onChange:function(){var g,c,h,v,b,F,E;((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((v=n==null?void 0:n.newData)==null?void 0:v.type,n),((b=n==null?void 0:n.formData)==null?void 0:b.name)!==((F=n==null?void 0:n.newData)==null?void 0:F.name)&&((E=n==null?void 0:n.newData)==null?void 0:E.name)!==void 0&&debouncedScopeNameValidator(n,n.newData.name)},editComponents:function(){var v,b,F;if(validateAndShowErrors(n))return;const g=l.path.split(".")[1],c=(v=n.searchParams)==null?void 0:v.get("path"),h=(b=n.searchParams)==null?void 0:b.get("id");if(saveFormdataInSessionStorage(n.ctx.core.data,c),addToScopeKey(n.ctx.core.data),c){const B=`${(F=n.searchParams)==null?void 0:F.get("path")}.elements[${g}]`;n.searchParams.set("path",B),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");n.formData.elements.splice(h,1);const v=saveFormdataInSessionStorage(n.ctx.core.data,c),b=c?_.get(v,c):v;n.setFormdata(b),g&&n.updateDialog("popUpComponentSection"),sessionStorage.removeItem("rowId")},deleteEvent:function(g=!0){var b;const c=(b=n.searchParams)==null?void 0:b.get("path"),h=sessionStorage.getItem("rowId");n.formData.events.splice(h,1);const v=saveFormdataInSessionStorage(n.ctx.core.data,c);n.setFormdata(_.get(v,c)),g&&n.updateDialog("popUpEventSection"),sessionStorage.removeItem("rowId")},widgetAddClickHandler:function(){var h;if(validateAndShowErrors(n))return;Array.isArray(n.formData.elements)||(n.formData.elements=[]);const g=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,g),addToScopeKey(n.ctx.core.data);const c=`${g}.elements[${n.formData.elements.length}]`;n.searchParams.set("path",c),n.setSearchParams(n.searchParams),this.setPage()},eventEditHandler:function(){var b,F;if(validateAndShowErrors(n))return;const g=l.path.split(".")[1],c=(b=n.searchParams)==null?void 0:b.get("path"),h=(F=n.searchParams)==null?void 0:F.get("id");saveFormdataInSessionStorage(n.ctx.core.data,c);const v=`${c}.events[${g}]`;n.navigate(`/ComponentEvents?path=${v}&id=${h}`)},eventAddHandler:function(){var v,b;if(validateAndShowErrors(n))return;const g=(v=n.searchParams)==null?void 0:v.get("path"),c=(b=n.searchParams)==null?void 0:b.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),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 b;const[h,v]=(b=l.path.split(".").pop())==null?void 0:b.split("_");h==="Copy"?this.CopyElement(g,v):this.PasteElement(c,v)},CopyElement:function(g=n,c){var k;const h=lodash.exports.cloneDeep(g.schema),v=lodash.exports.cloneDeep(g.uiSchema);h.properties.RemoveItemButton.disabled=!1;const b=l.path.split(".")[1],F=(k=n.searchParams)==null?void 0:k.get("path"),E=this.elementPathHandler(F,b,c),B=getFormdataFromSessionStorage(E);this.ElementPathSetter(v,B),sessionStorage.setItem("copiedConfig",JSON.stringify(B)),n.setNotify({SuccessMessage:`${c} Copied Successfully`,Success:!0}),n.setSchema(h),n.setUiSchema(v)},PasteElement:function(g,c){var k;if(!sessionStorage.getItem("copiedConfig")){n.setNotify({FailMessage:"No item has been copied.",Fail:!0});return}const h=(k=n.searchParams)==null?void 0:k.get("path");Array.isArray(n.formData.elements)||(n.formData.elements=[]),Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,h);const v=getFormdataFromSessionStorage(h),b=c==="Component"?v.elements.length:v.events.length,F=this.elementPathHandler(h,b,c),E=JSON.parse(sessionStorage.getItem("copiedConfig")),B={Events:" The Events cannot be integrated into the component section.",Component:"The component cannot be integrated into the Events section."};E.Handler&&c==="Component"?n.setNotify({FailMessage:B.Events,Fail:!0}):E.name&&c==="Events"?n.setNotify({FailMessage:B.Component,Fail:!0}):(saveFormdataInSessionStorage(E,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}]`:g?`${g}.events[${c}]`:`events[${c}]`},ElementPathSetter:function(g,c){var v,b,F,E,B,k,X,Z,K,M,ie,Ge,le,ne,Ce,Je,Ae,at,Tt,fn,gn,yn,hn,Gt,bn,xn;const h=c||JSON.parse(sessionStorage.getItem("copiedConfig"));(k=(B=(E=(F=(b=(v=g==null?void 0:g.elements)==null?void 0:v[1])==null?void 0:b.elements)==null?void 0:F[0])==null?void 0:E.config)==null?void 0:B.main)!=null&&k.headerIcons?g.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`:(ne=(le=(Ge=(ie=(M=(K=(Z=(X=g==null?void 0:g.elements)==null?void 0:X[0])==null?void 0:Z.elements)==null?void 0:K[1])==null?void 0:M.elements)==null?void 0:ie[0])==null?void 0:Ge.config)==null?void 0:le.main)!=null&&ne.headerIcons&&(g.elements[0].elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`),(fn=(Tt=(at=(Ae=(Je=(Ce=g==null?void 0:g.elements)==null?void 0:Ce[1])==null?void 0:Je.elements)==null?void 0:Ae[1])==null?void 0:at.config)==null?void 0:Tt.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(),v=await this.getSchema();l.setSchema(v),l.setUiSchema(h),initialiseScopeKey()},getFormdata:async function(){var b;const c=(b=l.searchParams)==null?void 0:b.get("id"),h=await n.pageConfigProvider(c),v=getFormdataFromSessionStorage();return v||(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"),sessionStorage.removeItem("scopeKey"),l.navigate("/PageMasterRecords")},onAddClickHandler:function(){var v;if(validateAndShowErrors(l))return;const c=(v=l.searchParams)==null?void 0:v.get("id");Array.isArray(l.formData.elements)||(l.formData.elements=[]);const h=saveFormdataInSessionStorage(l.ctx.core.data);addToScopeKey(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 v;if(validateAndShowErrors(l))return;const c=(v=l.searchParams)==null?void 0:v.get("id");Array.isArray(l.formData.events)||(l.formData.events=[]),saveFormdataInSessionStorage(l.ctx.core.data),addToScopeKey(l.ctx.core.data);const h=`events[${l.formData.events.length}]`;l.navigate(`/ComponentEvents?path=${h}&id=${c}`)},editEvent:function(){var b;if(validateAndShowErrors(l))return;const c=o.path.split(".")[1],h=(b=l.searchParams)==null?void 0:b.get("id");saveFormdataInSessionStorage(l.ctx.core.data),addToScopeKey(l.ctx.core.data);const v=`events[${c}]`;l.navigate(`/ComponentEvents?path=${v}&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:"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,c)},refreshPage:(c,h,v)=>{var Z,K,M;const b=_.cloneDeep(EventUiSchema(h.theme.myTheme)),F=_.cloneDeep(EventSchema);c&&(c==="custom"?(b.elements[0].elements[0].elements[2]=getRadioInputField("isSync","Run in Sync",["Yes","No"]),b.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:{}}},b.elements[0].elements[0].elements[4]=getTextArea("eventCode","Write Custom Code",!1),v!=null&&v.eventCode||h.setFormdata(ie=>({...ie,eventCode:`async (store, dynamicData, user, parentEventOutput, service, componentName) => {
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
}`})),F.required=["eventType","Handler","eventCode"]):c==="api"?(b.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),b.elements[0].elements[0].elements[3]=APISection,v!=null&&v.apiBody||h.setFormdata(ie=>({...ie,apiBody:`
|
|
31
|
+
}`})),F.required=["eventType","Handler","eventCode"]):c==="api"?(b.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),b.elements[0].elements[0].elements[3]=APISection,v!=null&&v.apiBody||h.setFormdata(ie=>({...ie,apiBody:`(store, dynamicData, user, body, service) => {
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
}`})),F.required=["eventType","Handler","method","path"]):c==="inBuiltFunction"?(b.elements[0].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name"),b.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:{}}},b.elements[0].elements[0].elements[4]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0),F.required=["eventType","Handler","inBuiltFunctionType"]):c==="refresh"&&(b.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),b.elements[0].elements[0].elements[3]=refreshSectionUiSchema,F.properties.refreshElements.required=["value"],F.properties.refreshElements.items.required=["value"],F.required=["eventType","Handler","refreshElements"])),g&&(F.properties.inBuiltFunctionType.oneOf=[...F.properties.inBuiltFunctionType.oneOf,...g]),sessionStorage.getItem("copiedConfig")&&(Component(h,l,o,u).ElementPathSetter(b),F.properties.RemoveItemButton.disabled=!1);const E=JSON.parse(sessionStorage.getItem("pageFormdata")),B=(Z=h.searchParams)==null?void 0:Z.get("path"),k=(K=h.searchParams)==null?void 0:K.get("id");let X=[{label:(M=E.name)!=null?M:"NewPage",path:`/PageMaster${k?`?id=${k}`:""}`}];if(B){const ie=B.split("."),Ge=[];ie.map((le,ne)=>{if(ne===0){Ge.push(le);return}Ge.push(`${Ge[ne-1]}.${le}`)}),Ge.map(le=>{const ne=_.get(E,le);X.push({label:(ne==null?void 0:ne.name)||(ne==null?void 0:ne.eventType)||"NewComponent",path:ne!=null&&ne.eventType?`/ComponentEvents?path=${le}${k?`&id=${k}`:""}`:`/Component?path=${le}${k?`&id=${k}`:""}`})})}F.properties.pageName.path=X,h.setSchema(F),h.setUiSchema(b)},getFormData:Component(n,l,o,u).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>{var E,B,k;const c=_.cloneDeep(EventSchema);sessionStorage.getItem("copiedConfig")&&(c.properties.RemoveItemButton.disabled=!1);const h=JSON.parse(sessionStorage.getItem("pageFormdata")),v=(E=n.searchParams)==null?void 0:E.get("path"),b=(B=n.searchParams)==null?void 0:B.get("id");let F=[{label:(k=h.name)!=null?k:"NewPage",path:`/PageMaster${b?`?id=${b}`:""}`}];if(v){const X=v.split("."),Z=[];X.map((K,M)=>{if(M===0){Z.push(K);return}Z.push(`${Z[M-1]}.${K}`)}),Z.map(K=>{const M=_.get(h,K);F.push({label:(M==null?void 0:M.name)||(M==null?void 0:M.eventType)||"NewComponent",path:M!=null&&M.eventType?`/ComponentEvents?path=${K}${b?`&id=${b}`:""}`:`/Component?path=${K}${b?`&id=${b}`:""}`})})}return c.properties.pageName.path=_.cloneDeep(F),c},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,u,o),onChange:function(){var c,h,v;((c=n==null?void 0:n.formData)==null?void 0:c.Handler)!==((h=n==null?void 0:n.newData)==null?void 0:h.Handler)&&((v=n==null?void 0:n.newData)==null?void 0:v.Handler)!==void 0&&this.refreshPage(n.newData.Handler||n.formdata.Handler,n)},addEvent:function(){var v,b,F;if(validateAndShowErrors(n))return;const c=(v=n.searchParams)==null?void 0:v.get("path");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,c);const h=`${c}.events[${(F=(b=n.formData)==null?void 0:b.events)==null?void 0:F.length}]`;n.searchParams.set("path",h),n.setSearchParams(n.searchParams),this.setPage()},editEvent:function(){var b;if(validateAndShowErrors(n))return;const c=l.path.split(".")[1],h=(b=n.searchParams)==null?void 0:b.get("path");saveFormdataInSessionStorage(n.ctx.core.data,h);const v=`${h}.events[${c}]`;n.searchParams.set("path",v),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 F;const o=window.atob(n),u=new Uint8Array(o.length);for(let E=0;E<o.length;E++)u[E]=o.charCodeAt(E);const g=(F=l.split(".").pop())==null?void 0:F.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"}),v=URL.createObjectURL(h),b=document.createElement("a");b.href=v,b.download=l,b.click(),URL.revokeObjectURL(v)}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(v=>{if(!v)throw new Error("onStart Event not allow to run Parent Events");return executeEventsHandler(n)}).then(v=>{var F;o=v,l=(F=n.config)==null?void 0:F.events.filter(E=>E.eventType==="Success")}).catch(v=>{var E,B;const b=(B=(E=n.config)==null?void 0:E.events)==null?void 0:B.filter(k=>k.eventType==="Fail");l=(b==null?void 0:b.length)>0?b:[]}).then(()=>{if((l==null?void 0:l.length)>0)return l.reduce((v,b)=>v.then(()=>executeEvents({...n,config:b,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(F=>F.eventType==="Success")}catch{const v=(h=(c=n.config)==null?void 0:c.events)==null?void 0:h.filter(F=>F.eventType==="Fail");l=(v==null?void 0:v.length)>0?v:[]}if((l==null?void 0:l.length)>0)for(const v of l)executeEvents({...n,config:v,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,v;o.type==="Select"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||u.setSchema(b=>{var F;return{...b,properties:{...b.properties,[l]:{...(F=b.properties)==null?void 0:F[l],oneOf:n.data}}}}):o.type==="MultipleSelect"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||u.setSchema(b=>{var F;return{...b,properties:{...b.properties,[l]:{...(F=b.properties)==null?void 0:F[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(b=>{g[b]=n.data[b]})):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`]=(v=(h=n.data)==null?void 0:h.meta)==null?void 0:v.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,v,b,F,E;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((v=c==null?void 0:c.value)!=null&&v.startsWith("$urlParams")){const B=c.value.substring(11),k=(b=u==null?void 0:u.searchParams)==null?void 0:b.get(B);g[c.key]=k}else if((F=c==null?void 0:c.value)!=null&&F.startsWith("$local")){const B=c.value.substring(7),k=JSON.parse(sessionStorage.getItem(B)||'""');g[c.key]=k}else if((E=c==null?void 0:c.value)!=null&&E.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 v,b,F;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),(b=(v=n==null?void 0:n.store)==null?void 0:v.theme)==null||b.myTheme;const h=(F=pageData==null?void 0:pageData.schema)!=null?F:{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(E=>({...h,...E,properties:{...h.properties,...E.properties}})),executeRefreshHandler({config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:this,eventGroups,formDataHolder:l}).then(E=>{n.store.setFormdata(B=>({...B,...l})),g.elements.push(notifyUiSchema),n.store.setUiSchema(g)})},getStyle:()=>{var g,c,h,v,b;const u=_.cloneDeep(eventGroups);if(u.setStyle){let F={};const E=((g=n.dynamicData)==null?void 0:g.tableButtonPath)||((h=(c=n==null?void 0:n.dynamicData)==null?void 0:c.path)==null?void 0:h.split(".")[0]);if((v=u==null?void 0:u.setStyle)!=null&&v[E]){for(const B of(b=u==null?void 0:u.setStyle)==null?void 0:b[E])F=executeEvents({...o,config:B,componentName:E});return F}}return{}},onCellRenderer:u=>{var c,h,v,b,F;const g=_.cloneDeep(eventGroups);if(g.onCellRenderer){let E={};const B=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||((v=(h=n==null?void 0:n.dynamicData)==null?void 0:h.path)==null?void 0:v.split(".")[0]);if((b=g==null?void 0:g.onCellRenderer)!=null&&b[B]){for(const k of(F=g==null?void 0:g.onCellRenderer)==null?void 0:F[B])o.store.functionParameters=u,E=executeEvents({...o,config:k,componentName:B});return E}}return{}},onClick:function(){this.callHandler("onClick")},onKeyDown:function(){this.callHandler("onKeyDown")},onFileDelete:async function(){this.callHandler("onFileDelete")},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,v;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:(v=u.expandedRowIds)!=null?v:[]}],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,v;return((h=n.store)==null?void 0:h.formData[c])===n.store.newData[c]||((v=n.store)==null?void 0:v.newData[c])===void 0?[]:eventGroups.onChange[c].map(b=>Promise.resolve(executeEvents({...o,config:b,componentName:c,formDataHolder:l})).then(()=>{lodash.exports.isEmpty(l)||n.store.setFormdata(F=>({...F,...l}))}))});Promise.allSettled(g)},callExecuteEvents:async function(u,g,c){var b,F;let h;const v=_.cloneDeep(eventGroups);for(const E of(b=v==null?void 0:v[c])==null?void 0:b[u.path]){E.body?E.body=[...E.body,...g]:E.body=g;const B=(F=E==null?void 0:E.events)==null?void 0:F.filter(k=>k.Handler!=="mergeFormdata");E.events=B!=null?B:[],h=await executeEvents({...o,config:E,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 v,b;const c=((v=n.dynamicData)==null?void 0:v.tableButtonPath)||n.dynamicData.path.split(".").pop();if(!((b=eventGroups==null?void 0:eventGroups[u])!=null&&b[c]))return;const h=eventGroups[u][c].map(F=>(o.store.functionParameters=g,Promise.resolve(executeEvents({...o,config:F,componentName:c,formDataHolder:l})).then(()=>{lodash.exports.isEmpty(l)||n.store.setFormdata(E=>({...E,...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:{}}}}},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.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",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.xAxisTickCount&&(o.config.main.xAxisTickCount=n.xAxisTickCount),n.yAxisTickCount&&(o.config.main.yAxisTickCount=n.yAxisTickCount),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},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};exports.schema={type:"object",properties:{},required:[]};function buildSchemaFromConfig(n,l){var u,g,c,h,v,b,F,E,B,k,X,Z,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;(v=n.elements)==null||v.forEach(ie=>buildSchemaFromConfig(ie,M));return}else{(b=n.elements)==null||b.forEach(M=>buildSchemaFromConfig(M,l));return}(F=l.properties)!=null||(l.properties={}),(k=(E=l.properties)[B=n.name])!=null||(E[B]={});const o=l.properties[n.name];(X=n.validation)==null||X.forEach(M=>{var ie;M.validationType==="required"?((ie=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"&&((Z=n.value)==null?void 0:Z.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;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;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 v={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,...v,...c.type==="ColumnGroup"?buildUiSchema(c,l):{}}:{...v}})}else if(n.type=="Table"){const g={};n.sizeHolder&&n.sizeHolder.map((b,F)=>{g[b.keyName]=b.value});const c=[],h=[],v=[];n.elements.filter((b,F)=>{const E={accessorKey:b.name,type:b.type==="ColumnGroup"?"ColumnGroup":b.columnFormat,header:b.label||b.name,size:g[b.name]||180,enableColumnFilter:b.enableFilter!=="No",columnFilterModeOptions:b.filteringOptions,enableSorting:b.enableSorting!=="No",columnKey:b.columnKey,dateFormat:b.dateFormat};if(b.type){if(b.elementType=="action"){const k=buildUiSchema(b,l);return h.push(k),!1}if(b.elementType=="tableHeader"){const k=buildUiSchema(b,l);return c.push({widget:k}),!1}const B={widget:b.type!="ColumnGroup"?buildUiSchema(b,l):void 0,...E,...b.type==="ColumnGroup"?buildUiSchema(b,l):{}};v.push(B)}else v.push({...E})}),o.elements=v,o.config.action=h,o.config.main.headerIcons.elements=c}else o.elements=n.elements.map((g,c)=>buildUiSchema(g,l));return 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"}})});
|