impaktapps-ui-builder 0.0.101-alpha.41 → 0.0.101-alpha.43
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 +16 -27
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +11 -11
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -3
- package/src/impaktapps-ui-builder/builder/services/component.ts +12 -10
|
@@ -5,24 +5,24 @@
|
|
|
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,s){(function(){var i,d="4.17.21",h=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",b="Invalid `variable` option passed into `_.template`",I="__lodash_hash_undefined__",F=500,z="__lodash_placeholder__",H=1,Q=2,G=4,de=1,$e=2,ie=1,be=2,ot=4,se=8,Ae=16,pe=32,Te=64,Fe=128,at=256,Tt=512,ht=30,ll="...",sl=800,pl=16,Ti=1,ul=2,cl=3,vt=1/0,lt=9007199254740991,dl=17976931348623157e292,mn=0/0,Ye=4294967295,fl=Ye-1,ml=Ye>>>1,gl=[["ary",Fe],["bind",ie],["bindKey",be],["curry",se],["curryRight",Ae],["flip",Tt],["partial",pe],["partialRight",Te],["rearg",at]],Ft="[object Arguments]",gn="[object Array]",yl="[object AsyncFunction]",Yt="[object Boolean]",Kt="[object Date]",hl="[object DOMException]",yn="[object Error]",hn="[object Function]",Fi="[object GeneratorFunction]",Oe="[object Map]",Vt="[object Number]",vl="[object Null]",Je="[object Object]",Li="[object Promise]",xl="[object Proxy]",qt="[object RegExp]",Ne="[object Set]",Jt="[object String]",vn="[object Symbol]",bl="[object Undefined]",Xt="[object WeakMap]",Sl="[object WeakSet]",Zt="[object ArrayBuffer]",Lt="[object DataView]",lr="[object Float32Array]",sr="[object Float64Array]",pr="[object Int8Array]",ur="[object Int16Array]",cr="[object Int32Array]",dr="[object Uint8Array]",fr="[object Uint8ClampedArray]",mr="[object Uint16Array]",gr="[object Uint32Array]",Cl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,_l=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bi=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Il=RegExp(Bi.source),El=RegExp(Ri.source),Al=/<%-([\s\S]+?)%>/g,Tl=/<%([\s\S]+?)%>/g,Di=/<%=([\s\S]+?)%>/g,Fl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ll=/^\w*$/,Bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yr=/[\\^$.*+?()[\]{}|]/g,Rl=RegExp(yr.source),hr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Ml=/,? & /,Hl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ol=/[()=,{}\[\]\/\s]/,Nl=/\\(\\)?/g,Ul=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pi=/\w*$/,zl=/^[-+]0x[0-9a-f]+$/i,Wl=/^0b[01]+$/i,Gl=/^\[object .+?Constructor\]$/,$l=/^0o[0-7]+$/i,Yl=/^(?:0|[1-9]\d*)$/,Kl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xn=/($^)/,Vl=/['\n\r\u2028\u2029\\]/g,bn="\\ud800-\\udfff",ql="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Xl="\\u20d0-\\u20ff",ki=ql+Jl+Xl,Mi="\\u2700-\\u27bf",Hi="a-z\\xdf-\\xf6\\xf8-\\xff",Zl="\\xac\\xb1\\xd7\\xf7",Ql="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jl="\\u2000-\\u206f",es=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oi="A-Z\\xc0-\\xd6\\xd8-\\xde",Ni="\\ufe0e\\ufe0f",Ui=Zl+Ql+jl+es,vr="['\u2019]",ts="["+bn+"]",zi="["+Ui+"]",Sn="["+ki+"]",Wi="\\d+",ns="["+Mi+"]",Gi="["+Hi+"]",$i="[^"+bn+Ui+Wi+Mi+Hi+Oi+"]",xr="\\ud83c[\\udffb-\\udfff]",rs="(?:"+Sn+"|"+xr+")",Yi="[^"+bn+"]",br="(?:\\ud83c[\\udde6-\\uddff]){2}",Sr="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+Oi+"]",Ki="\\u200d",Vi="(?:"+Gi+"|"+$i+")",is="(?:"+Bt+"|"+$i+")",qi="(?:"+vr+"(?:d|ll|m|re|s|t|ve))?",Ji="(?:"+vr+"(?:D|LL|M|RE|S|T|VE))?",Xi=rs+"?",Zi="["+Ni+"]?",os="(?:"+Ki+"(?:"+[Yi,br,Sr].join("|")+")"+Zi+Xi+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qi=Zi+Xi+os,ss="(?:"+[ns,br,Sr].join("|")+")"+Qi,ps="(?:"+[Yi+Sn+"?",Sn,br,Sr,ts].join("|")+")",us=RegExp(vr,"g"),cs=RegExp(Sn,"g"),Cr=RegExp(xr+"(?="+xr+")|"+ps+Qi,"g"),ds=RegExp([Bt+"?"+Gi+"+"+qi+"(?="+[zi,Bt,"$"].join("|")+")",is+"+"+Ji+"(?="+[zi,Bt+Vi,"$"].join("|")+")",Bt+"?"+Vi+"+"+qi,Bt+"+"+Ji,ls,as,Wi,ss].join("|"),"g"),fs=RegExp("["+Ki+bn+ki+Ni+"]"),ms=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ys=-1,J={};J[lr]=J[sr]=J[pr]=J[ur]=J[cr]=J[dr]=J[fr]=J[mr]=J[gr]=!0,J[Ft]=J[gn]=J[Zt]=J[Yt]=J[Lt]=J[Kt]=J[yn]=J[hn]=J[Oe]=J[Vt]=J[Je]=J[qt]=J[Ne]=J[Jt]=J[Xt]=!1;var q={};q[Ft]=q[gn]=q[Zt]=q[Lt]=q[Yt]=q[Kt]=q[lr]=q[sr]=q[pr]=q[ur]=q[cr]=q[Oe]=q[Vt]=q[Je]=q[qt]=q[Ne]=q[Jt]=q[vn]=q[dr]=q[fr]=q[mr]=q[gr]=!0,q[yn]=q[hn]=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"},vs={"&":"&","<":"<",">":">",'"':""","'":"'"},xs={"&":"&","<":"<",">":">",""":'"',"'":"'"},bs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ss=parseFloat,Cs=parseInt,ji=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,ae=ji||ws||Function("return this")(),wr=s&&!s.nodeType&&s,xt=wr&&!0&&n&&!n.nodeType&&n,eo=xt&&xt.exports===wr,_r=eo&&ji.process,Le=function(){try{var m=xt&&xt.require&&xt.require("util").types;return m||_r&&_r.binding&&_r.binding("util")}catch{}}(),to=Le&&Le.isArrayBuffer,no=Le&&Le.isDate,ro=Le&&Le.isMap,io=Le&&Le.isRegExp,oo=Le&&Le.isSet,ao=Le&&Le.isTypedArray;function Se(m,x,v){switch(v.length){case 0:return m.call(x);case 1:return m.call(x,v[0]);case 2:return m.call(x,v[0],v[1]);case 3:return m.call(x,v[0],v[1],v[2])}return m.apply(x,v)}function _s(m,x,v,A){for(var D=-1,$=m==null?0:m.length;++D<$;){var ne=m[D];x(A,ne,v(ne),m)}return A}function Be(m,x){for(var v=-1,A=m==null?0:m.length;++v<A&&x(m[v],v,m)!==!1;);return m}function Is(m,x){for(var v=m==null?0:m.length;v--&&x(m[v],v,m)!==!1;);return m}function lo(m,x){for(var v=-1,A=m==null?0:m.length;++v<A;)if(!x(m[v],v,m))return!1;return!0}function st(m,x){for(var v=-1,A=m==null?0:m.length,D=0,$=[];++v<A;){var ne=m[v];x(ne,v,m)&&($[D++]=ne)}return $}function Cn(m,x){var v=m==null?0:m.length;return!!v&&Rt(m,x,0)>-1}function Ir(m,x,v){for(var A=-1,D=m==null?0:m.length;++A<D;)if(v(x,m[A]))return!0;return!1}function X(m,x){for(var v=-1,A=m==null?0:m.length,D=Array(A);++v<A;)D[v]=x(m[v],v,m);return D}function pt(m,x){for(var v=-1,A=x.length,D=m.length;++v<A;)m[D+v]=x[v];return m}function Er(m,x,v,A){var D=-1,$=m==null?0:m.length;for(A&&$&&(v=m[++D]);++D<$;)v=x(v,m[D],D,m);return v}function Es(m,x,v,A){var D=m==null?0:m.length;for(A&&D&&(v=m[--D]);D--;)v=x(v,m[D],D,m);return v}function Ar(m,x){for(var v=-1,A=m==null?0:m.length;++v<A;)if(x(m[v],v,m))return!0;return!1}var As=Tr("length");function Ts(m){return m.split("")}function Fs(m){return m.match(Hl)||[]}function so(m,x,v){var A;return v(m,function(D,$,ne){if(x(D,$,ne))return A=$,!1}),A}function wn(m,x,v,A){for(var D=m.length,$=v+(A?1:-1);A?$--:++$<D;)if(x(m[$],$,m))return $;return-1}function Rt(m,x,v){return x===x?zs(m,x,v):wn(m,po,v)}function Ls(m,x,v,A){for(var D=v-1,$=m.length;++D<$;)if(A(m[D],x))return D;return-1}function po(m){return m!==m}function uo(m,x){var v=m==null?0:m.length;return v?Lr(m,x)/v:mn}function Tr(m){return function(x){return x==null?i:x[m]}}function Fr(m){return function(x){return m==null?i:m[x]}}function co(m,x,v,A,D){return D(m,function($,ne,V){v=A?(A=!1,$):x(v,$,ne,V)}),v}function Bs(m,x){var v=m.length;for(m.sort(x);v--;)m[v]=m[v].value;return m}function Lr(m,x){for(var v,A=-1,D=m.length;++A<D;){var $=x(m[A]);$!==i&&(v=v===i?$:v+$)}return v}function Br(m,x){for(var v=-1,A=Array(m);++v<m;)A[v]=x(v);return A}function Rs(m,x){return X(x,function(v){return[v,m[v]]})}function fo(m){return m&&m.slice(0,ho(m)+1).replace(hr,"")}function Ce(m){return function(x){return m(x)}}function Rr(m,x){return X(x,function(v){return m[v]})}function Qt(m,x){return m.has(x)}function mo(m,x){for(var v=-1,A=m.length;++v<A&&Rt(x,m[v],0)>-1;);return v}function go(m,x){for(var v=m.length;v--&&Rt(x,m[v],0)>-1;);return v}function Ds(m,x){for(var v=m.length,A=0;v--;)m[v]===x&&++A;return A}var Ps=Fr(hs),ks=Fr(vs);function Ms(m){return"\\"+bs[m]}function Hs(m,x){return m==null?i:m[x]}function Dt(m){return fs.test(m)}function Os(m){return ms.test(m)}function Ns(m){for(var x,v=[];!(x=m.next()).done;)v.push(x.value);return v}function Dr(m){var x=-1,v=Array(m.size);return m.forEach(function(A,D){v[++x]=[D,A]}),v}function yo(m,x){return function(v){return m(x(v))}}function ut(m,x){for(var v=-1,A=m.length,D=0,$=[];++v<A;){var ne=m[v];(ne===x||ne===z)&&(m[v]=z,$[D++]=v)}return $}function _n(m){var x=-1,v=Array(m.size);return m.forEach(function(A){v[++x]=A}),v}function Us(m){var x=-1,v=Array(m.size);return m.forEach(function(A){v[++x]=[A,A]}),v}function zs(m,x,v){for(var A=v-1,D=m.length;++A<D;)if(m[A]===x)return A;return-1}function Ws(m,x,v){for(var A=v+1;A--;)if(m[A]===x)return A;return A}function Pt(m){return Dt(m)?$s(m):As(m)}function Ue(m){return Dt(m)?Ys(m):Ts(m)}function ho(m){for(var x=m.length;x--&&Dl.test(m.charAt(x)););return x}var Gs=Fr(xs);function $s(m){for(var x=Cr.lastIndex=0;Cr.test(m);)++x;return x}function Ys(m){return m.match(Cr)||[]}function Ks(m){return m.match(ds)||[]}var Vs=function m(x){x=x==null?ae:kt.defaults(ae.Object(),x,kt.pick(ae,gs));var v=x.Array,A=x.Date,D=x.Error,$=x.Function,ne=x.Math,V=x.Object,Pr=x.RegExp,qs=x.String,Re=x.TypeError,In=v.prototype,Js=$.prototype,Mt=V.prototype,En=x["__core-js_shared__"],An=Js.toString,K=Mt.hasOwnProperty,Xs=0,vo=function(){var e=/[^.]+$/.exec(En&&En.keys&&En.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Tn=Mt.toString,Zs=An.call(V),Qs=ae._,js=Pr("^"+An.call(K).replace(yr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fn=eo?x.Buffer:i,ct=x.Symbol,Ln=x.Uint8Array,xo=Fn?Fn.allocUnsafe:i,Bn=yo(V.getPrototypeOf,V),bo=V.create,So=Mt.propertyIsEnumerable,Rn=In.splice,Co=ct?ct.isConcatSpreadable:i,jt=ct?ct.iterator:i,bt=ct?ct.toStringTag:i,Dn=function(){try{var e=It(V,"defineProperty");return e({},"",{}),e}catch{}}(),ep=x.clearTimeout!==ae.clearTimeout&&x.clearTimeout,tp=A&&A.now!==ae.Date.now&&A.now,np=x.setTimeout!==ae.setTimeout&&x.setTimeout,Pn=ne.ceil,kn=ne.floor,kr=V.getOwnPropertySymbols,rp=Fn?Fn.isBuffer:i,wo=x.isFinite,ip=In.join,op=yo(V.keys,V),re=ne.max,ue=ne.min,ap=A.now,lp=x.parseInt,_o=ne.random,sp=In.reverse,Mr=It(x,"DataView"),en=It(x,"Map"),Hr=It(x,"Promise"),Ht=It(x,"Set"),tn=It(x,"WeakMap"),nn=It(V,"create"),Mn=tn&&new tn,Ot={},pp=Et(Mr),up=Et(en),cp=Et(Hr),dp=Et(Ht),fp=Et(tn),Hn=ct?ct.prototype:i,rn=Hn?Hn.valueOf:i,Io=Hn?Hn.toString:i;function l(e){if(j(e)&&!P(e)&&!(e instanceof U)){if(e instanceof De)return e;if(K.call(e,"__wrapped__"))return Ea(e)}return new De(e)}var Nt=function(){function e(){}return function(t){if(!Z(t))return{};if(bo)return bo(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function On(){}function De(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}l.templateSettings={escape:Al,evaluate:Tl,interpolate:Di,variable:"",imports:{_:l}},l.prototype=On.prototype,l.prototype.constructor=l,De.prototype=Nt(On.prototype),De.prototype.constructor=De;function U(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ye,this.__views__=[]}function mp(){var e=new U(this.__wrapped__);return e.__actions__=ye(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ye(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ye(this.__views__),e}function gp(){if(this.__filtered__){var e=new U(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__,r=P(e),o=t<0,a=r?e.length:0,p=Tu(0,a,this.__views__),u=p.start,f=p.end,y=f-u,S=o?f:u-1,C=this.__iteratees__,w=C.length,E=0,T=ue(y,this.__takeCount__);if(!r||!o&&a==y&&T==y)return Jo(e,this.__actions__);var B=[];e:for(;y--&&E<T;){S+=t;for(var M=-1,R=e[S];++M<w;){var N=C[M],W=N.iteratee,Ie=N.type,ge=W(R);if(Ie==ul)R=ge;else if(!ge){if(Ie==Ti)continue e;break e}}B[E++]=R}return B}U.prototype=Nt(On.prototype),U.prototype.constructor=U;function St(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function hp(){this.__data__=nn?nn(null):{},this.size=0}function vp(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 r=t[e];return r===I?i:r}return K.call(t,e)?t[e]:i}function bp(e){var t=this.__data__;return nn?t[e]!==i:K.call(t,e)}function Sp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nn&&t===i?I:t,this}St.prototype.clear=hp,St.prototype.delete=vp,St.prototype.get=xp,St.prototype.has=bp,St.prototype.set=Sp;function Xe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function Cp(){this.__data__=[],this.size=0}function wp(e){var t=this.__data__,r=Nn(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():Rn.call(t,r,1),--this.size,!0}function _p(e){var t=this.__data__,r=Nn(t,e);return r<0?i:t[r][1]}function Ip(e){return Nn(this.__data__,e)>-1}function Ep(e,t){var r=this.__data__,o=Nn(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}Xe.prototype.clear=Cp,Xe.prototype.delete=wp,Xe.prototype.get=_p,Xe.prototype.has=Ip,Xe.prototype.set=Ep;function Ze(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function Ap(){this.size=0,this.__data__={hash:new St,map:new(en||Xe),string:new St}}function Tp(e){var t=Zn(this,e).delete(e);return this.size-=t?1:0,t}function Fp(e){return Zn(this,e).get(e)}function Lp(e){return Zn(this,e).has(e)}function Bp(e,t){var r=Zn(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}Ze.prototype.clear=Ap,Ze.prototype.delete=Tp,Ze.prototype.get=Fp,Ze.prototype.has=Lp,Ze.prototype.set=Bp;function Ct(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ze;++t<r;)this.add(e[t])}function Rp(e){return this.__data__.set(e,I),this}function Dp(e){return this.__data__.has(e)}Ct.prototype.add=Ct.prototype.push=Rp,Ct.prototype.has=Dp;function ze(e){var t=this.__data__=new Xe(e);this.size=t.size}function Pp(){this.__data__=new Xe,this.size=0}function kp(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Mp(e){return this.__data__.get(e)}function Hp(e){return this.__data__.has(e)}function Op(e,t){var r=this.__data__;if(r instanceof Xe){var o=r.__data__;if(!en||o.length<h-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ze(o)}return r.set(e,t),this.size=r.size,this}ze.prototype.clear=Pp,ze.prototype.delete=kp,ze.prototype.get=Mp,ze.prototype.has=Hp,ze.prototype.set=Op;function Eo(e,t){var r=P(e),o=!r&&At(e),a=!r&&!o&&yt(e),p=!r&&!o&&!a&&Gt(e),u=r||o||a||p,f=u?Br(e.length,qs):[],y=f.length;for(var S in e)(t||K.call(e,S))&&!(u&&(S=="length"||a&&(S=="offset"||S=="parent")||p&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||tt(S,y)))&&f.push(S);return f}function Ao(e){var t=e.length;return t?e[qr(0,t-1)]:i}function Np(e,t){return Qn(ye(e),wt(t,0,e.length))}function Up(e){return Qn(ye(e))}function Or(e,t,r){(r!==i&&!We(e[t],r)||r===i&&!(t in e))&&Qe(e,t,r)}function on(e,t,r){var o=e[t];(!(K.call(e,t)&&We(o,r))||r===i&&!(t in e))&&Qe(e,t,r)}function Nn(e,t){for(var r=e.length;r--;)if(We(e[r][0],t))return r;return-1}function zp(e,t,r,o){return dt(e,function(a,p,u){t(o,a,r(a),u)}),o}function To(e,t){return e&&Ve(t,oe(t),e)}function Wp(e,t){return e&&Ve(t,ve(t),e)}function Qe(e,t,r){t=="__proto__"&&Dn?Dn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Nr(e,t){for(var r=-1,o=t.length,a=v(o),p=e==null;++r<o;)a[r]=p?i:xi(e,t[r]);return a}function wt(e,t,r){return e===e&&(r!==i&&(e=e<=r?e:r),t!==i&&(e=e>=t?e:t)),e}function Pe(e,t,r,o,a,p){var u,f=t&H,y=t&Q,S=t&G;if(r&&(u=a?r(e,o,a,p):r(e)),u!==i)return u;if(!Z(e))return e;var C=P(e);if(C){if(u=Lu(e),!f)return ye(e,u)}else{var w=ce(e),E=w==hn||w==Fi;if(yt(e))return Qo(e,f);if(w==Je||w==Ft||E&&!a){if(u=y||E?{}:ha(e),!f)return y?xu(e,Wp(u,e)):vu(e,To(u,e))}else{if(!q[w])return a?e:{};u=Bu(e,w,f)}}p||(p=new ze);var T=p.get(e);if(T)return T;p.set(e,u),Ka(e)?e.forEach(function(R){u.add(Pe(R,t,r,R,e,p))}):$a(e)&&e.forEach(function(R,N){u.set(N,Pe(R,t,r,N,e,p))});var B=S?y?oi:ii:y?ve:oe,M=C?i:B(e);return Be(M||e,function(R,N){M&&(N=R,R=e[N]),on(u,N,Pe(R,t,r,N,e,p))}),u}function Gp(e){var t=oe(e);return function(r){return Fo(r,e,t)}}function Fo(e,t,r){var o=r.length;if(e==null)return!o;for(e=V(e);o--;){var a=r[o],p=t[a],u=e[a];if(u===i&&!(a in e)||!p(u))return!1}return!0}function Lo(e,t,r){if(typeof e!="function")throw new Re(g);return dn(function(){e.apply(i,r)},t)}function an(e,t,r,o){var a=-1,p=Cn,u=!0,f=e.length,y=[],S=t.length;if(!f)return y;r&&(t=X(t,Ce(r))),o?(p=Ir,u=!1):t.length>=h&&(p=Qt,u=!1,t=new Ct(t));e:for(;++a<f;){var C=e[a],w=r==null?C:r(C);if(C=o||C!==0?C:0,u&&w===w){for(var E=S;E--;)if(t[E]===w)continue e;y.push(C)}else p(t,w,o)||y.push(C)}return y}var dt=ra(Ke),Bo=ra(zr,!0);function $p(e,t){var r=!0;return dt(e,function(o,a,p){return r=!!t(o,a,p),r}),r}function Un(e,t,r){for(var o=-1,a=e.length;++o<a;){var p=e[o],u=t(p);if(u!=null&&(f===i?u===u&&!_e(u):r(u,f)))var f=u,y=p}return y}function Yp(e,t,r,o){var a=e.length;for(r=k(r),r<0&&(r=-r>a?0:a+r),o=o===i||o>a?a:k(o),o<0&&(o+=a),o=r>o?0:qa(o);r<o;)e[r++]=t;return e}function Ro(e,t){var r=[];return dt(e,function(o,a,p){t(o,a,p)&&r.push(o)}),r}function le(e,t,r,o,a){var p=-1,u=e.length;for(r||(r=Du),a||(a=[]);++p<u;){var f=e[p];t>0&&r(f)?t>1?le(f,t-1,r,o,a):pt(a,f):o||(a[a.length]=f)}return a}var Ur=ia(),Do=ia(!0);function Ke(e,t){return e&&Ur(e,t,oe)}function zr(e,t){return e&&Do(e,t,oe)}function zn(e,t){return st(t,function(r){return nt(e[r])})}function _t(e,t){t=mt(t,e);for(var r=0,o=t.length;e!=null&&r<o;)e=e[qe(t[r++])];return r&&r==o?e:i}function Po(e,t,r){var o=t(e);return P(e)?o:pt(o,r(e))}function fe(e){return e==null?e===i?bl:vl:bt&&bt in V(e)?Au(e):Uu(e)}function Wr(e,t){return e>t}function Kp(e,t){return e!=null&&K.call(e,t)}function Vp(e,t){return e!=null&&t in V(e)}function qp(e,t,r){return e>=ue(t,r)&&e<re(t,r)}function Gr(e,t,r){for(var o=r?Ir:Cn,a=e[0].length,p=e.length,u=p,f=v(p),y=1/0,S=[];u--;){var C=e[u];u&&t&&(C=X(C,Ce(t))),y=ue(C.length,y),f[u]=!r&&(t||a>=120&&C.length>=120)?new Ct(u&&C):i}C=e[0];var w=-1,E=f[0];e:for(;++w<a&&S.length<y;){var T=C[w],B=t?t(T):T;if(T=r||T!==0?T:0,!(E?Qt(E,B):o(S,B,r))){for(u=p;--u;){var M=f[u];if(!(M?Qt(M,B):o(e[u],B,r)))continue e}E&&E.push(B),S.push(T)}}return S}function Jp(e,t,r,o){return Ke(e,function(a,p,u){t(o,r(a),p,u)}),o}function ln(e,t,r){t=mt(t,e),e=Sa(e,t);var o=e==null?e:e[qe(Me(t))];return o==null?i:Se(o,e,r)}function ko(e){return j(e)&&fe(e)==Ft}function Xp(e){return j(e)&&fe(e)==Zt}function Zp(e){return j(e)&&fe(e)==Kt}function sn(e,t,r,o,a){return e===t?!0:e==null||t==null||!j(e)&&!j(t)?e!==e&&t!==t:Qp(e,t,r,o,sn,a)}function Qp(e,t,r,o,a,p){var u=P(e),f=P(t),y=u?gn:ce(e),S=f?gn:ce(t);y=y==Ft?Je:y,S=S==Ft?Je:S;var C=y==Je,w=S==Je,E=y==S;if(E&&yt(e)){if(!yt(t))return!1;u=!0,C=!1}if(E&&!C)return p||(p=new ze),u||Gt(e)?ma(e,t,r,o,a,p):Iu(e,t,y,r,o,a,p);if(!(r&de)){var T=C&&K.call(e,"__wrapped__"),B=w&&K.call(t,"__wrapped__");if(T||B){var M=T?e.value():e,R=B?t.value():t;return p||(p=new ze),a(M,R,r,o,p)}}return E?(p||(p=new ze),Eu(e,t,r,o,a,p)):!1}function jp(e){return j(e)&&ce(e)==Oe}function $r(e,t,r,o){var a=r.length,p=a,u=!o;if(e==null)return!p;for(e=V(e);a--;){var f=r[a];if(u&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++a<p;){f=r[a];var y=f[0],S=e[y],C=f[1];if(u&&f[2]){if(S===i&&!(y in e))return!1}else{var w=new ze;if(o)var E=o(S,C,y,e,t,w);if(!(E===i?sn(C,S,de|$e,o,w):E))return!1}}return!0}function Mo(e){if(!Z(e)||ku(e))return!1;var t=nt(e)?js:Gl;return t.test(Et(e))}function eu(e){return j(e)&&fe(e)==qt}function tu(e){return j(e)&&ce(e)==Ne}function nu(e){return j(e)&&ir(e.length)&&!!J[fe(e)]}function Ho(e){return typeof e=="function"?e:e==null?xe:typeof e=="object"?P(e)?Uo(e[0],e[1]):No(e):ol(e)}function Yr(e){if(!cn(e))return op(e);var t=[];for(var r in V(e))K.call(e,r)&&r!="constructor"&&t.push(r);return t}function ru(e){if(!Z(e))return Nu(e);var t=cn(e),r=[];for(var o in e)o=="constructor"&&(t||!K.call(e,o))||r.push(o);return r}function Kr(e,t){return e<t}function Oo(e,t){var r=-1,o=he(e)?v(e.length):[];return dt(e,function(a,p,u){o[++r]=t(a,p,u)}),o}function No(e){var t=li(e);return t.length==1&&t[0][2]?xa(t[0][0],t[0][1]):function(r){return r===e||$r(r,e,t)}}function Uo(e,t){return pi(e)&&va(t)?xa(qe(e),t):function(r){var o=xi(r,e);return o===i&&o===t?bi(r,e):sn(t,o,de|$e)}}function Wn(e,t,r,o,a){e!==t&&Ur(t,function(p,u){if(a||(a=new ze),Z(p))iu(e,t,u,r,Wn,o,a);else{var f=o?o(ci(e,u),p,u+"",e,t,a):i;f===i&&(f=p),Or(e,u,f)}},ve)}function iu(e,t,r,o,a,p,u){var f=ci(e,r),y=ci(t,r),S=u.get(y);if(S){Or(e,r,S);return}var C=p?p(f,y,r+"",e,t,u):i,w=C===i;if(w){var E=P(y),T=!E&&yt(y),B=!E&&!T&&Gt(y);C=y,E||T||B?P(f)?C=f:ee(f)?C=ye(f):T?(w=!1,C=Qo(y,!0)):B?(w=!1,C=jo(y,!0)):C=[]:fn(y)||At(y)?(C=f,At(f)?C=Ja(f):(!Z(f)||nt(f))&&(C=ha(y))):w=!1}w&&(u.set(y,C),a(C,y,o,p,u),u.delete(y)),Or(e,r,C)}function zo(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,tt(t,r)?e[t]:i}function Wo(e,t,r){t.length?t=X(t,function(p){return P(p)?function(u){return _t(u,p.length===1?p[0]:p)}:p}):t=[xe];var o=-1;t=X(t,Ce(L()));var a=Oo(e,function(p,u,f){var y=X(t,function(S){return S(p)});return{criteria:y,index:++o,value:p}});return Bs(a,function(p,u){return hu(p,u,r)})}function ou(e,t){return Go(e,t,function(r,o){return bi(e,o)})}function Go(e,t,r){for(var o=-1,a=t.length,p={};++o<a;){var u=t[o],f=_t(e,u);r(f,u)&&pn(p,mt(u,e),f)}return p}function au(e){return function(t){return _t(t,e)}}function Vr(e,t,r,o){var a=o?Ls:Rt,p=-1,u=t.length,f=e;for(e===t&&(t=ye(t)),r&&(f=X(e,Ce(r)));++p<u;)for(var y=0,S=t[p],C=r?r(S):S;(y=a(f,C,y,o))>-1;)f!==e&&Rn.call(f,y,1),Rn.call(e,y,1);return e}function $o(e,t){for(var r=e?t.length:0,o=r-1;r--;){var a=t[r];if(r==o||a!==p){var p=a;tt(a)?Rn.call(e,a,1):Zr(e,a)}}return e}function qr(e,t){return e+kn(_o()*(t-e+1))}function lu(e,t,r,o){for(var a=-1,p=re(Pn((t-e)/(r||1)),0),u=v(p);p--;)u[o?p:++a]=e,e+=r;return u}function Jr(e,t){var r="";if(!e||t<1||t>lt)return r;do t%2&&(r+=e),t=kn(t/2),t&&(e+=e);while(t);return r}function O(e,t){return di(ba(e,t,xe),e+"")}function su(e){return Ao($t(e))}function pu(e,t){var r=$t(e);return Qn(r,wt(t,0,r.length))}function pn(e,t,r,o){if(!Z(e))return e;t=mt(t,e);for(var a=-1,p=t.length,u=p-1,f=e;f!=null&&++a<p;){var y=qe(t[a]),S=r;if(y==="__proto__"||y==="constructor"||y==="prototype")return e;if(a!=u){var C=f[y];S=o?o(C,y,f):i,S===i&&(S=Z(C)?C:tt(t[a+1])?[]:{})}on(f,y,S),f=f[y]}return e}var Yo=Mn?function(e,t){return Mn.set(e,t),e}:xe,uu=Dn?function(e,t){return Dn(e,"toString",{configurable:!0,enumerable:!1,value:Ci(t),writable:!0})}:xe;function cu(e){return Qn($t(e))}function ke(e,t,r){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var p=v(a);++o<a;)p[o]=e[o+t];return p}function du(e,t){var r;return dt(e,function(o,a,p){return r=t(o,a,p),!r}),!!r}function Gn(e,t,r){var o=0,a=e==null?o:e.length;if(typeof t=="number"&&t===t&&a<=ml){for(;o<a;){var p=o+a>>>1,u=e[p];u!==null&&!_e(u)&&(r?u<=t:u<t)?o=p+1:a=p}return a}return Xr(e,t,xe,r)}function Xr(e,t,r,o){var a=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var u=t!==t,f=t===null,y=_e(t),S=t===i;a<p;){var C=kn((a+p)/2),w=r(e[C]),E=w!==i,T=w===null,B=w===w,M=_e(w);if(u)var R=o||B;else S?R=B&&(o||E):f?R=B&&E&&(o||!T):y?R=B&&E&&!T&&(o||!M):T||M?R=!1:R=o?w<=t:w<t;R?a=C+1:p=C}return ue(p,fl)}function Ko(e,t){for(var r=-1,o=e.length,a=0,p=[];++r<o;){var u=e[r],f=t?t(u):u;if(!r||!We(f,y)){var y=f;p[a++]=u===0?0:u}}return p}function Vo(e){return typeof e=="number"?e:_e(e)?mn:+e}function we(e){if(typeof e=="string")return e;if(P(e))return X(e,we)+"";if(_e(e))return Io?Io.call(e):"";var t=e+"";return t=="0"&&1/e==-vt?"-0":t}function ft(e,t,r){var o=-1,a=Cn,p=e.length,u=!0,f=[],y=f;if(r)u=!1,a=Ir;else if(p>=h){var S=t?null:wu(e);if(S)return _n(S);u=!1,a=Qt,y=new Ct}else y=t?[]:f;e:for(;++o<p;){var C=e[o],w=t?t(C):C;if(C=r||C!==0?C:0,u&&w===w){for(var E=y.length;E--;)if(y[E]===w)continue e;t&&y.push(w),f.push(C)}else a(y,w,r)||(y!==f&&y.push(w),f.push(C))}return f}function Zr(e,t){return t=mt(t,e),e=Sa(e,t),e==null||delete e[qe(Me(t))]}function qo(e,t,r,o){return pn(e,t,r(_t(e,t)),o)}function $n(e,t,r,o){for(var a=e.length,p=o?a:-1;(o?p--:++p<a)&&t(e[p],p,e););return r?ke(e,o?0:p,o?p+1:a):ke(e,o?p+1:0,o?a:p)}function Jo(e,t){var r=e;return r instanceof U&&(r=r.value()),Er(t,function(o,a){return a.func.apply(a.thisArg,pt([o],a.args))},r)}function Qr(e,t,r){var o=e.length;if(o<2)return o?ft(e[0]):[];for(var a=-1,p=v(o);++a<o;)for(var u=e[a],f=-1;++f<o;)f!=a&&(p[a]=an(p[a]||u,e[f],t,r));return ft(le(p,1),t,r)}function Xo(e,t,r){for(var o=-1,a=e.length,p=t.length,u={};++o<a;){var f=o<p?t[o]:i;r(u,e[o],f)}return u}function jr(e){return ee(e)?e:[]}function ei(e){return typeof e=="function"?e:xe}function mt(e,t){return P(e)?e:pi(e,t)?[e]:Ia(Y(e))}var fu=O;function gt(e,t,r){var o=e.length;return r=r===i?o:r,!t&&r>=o?e:ke(e,t,r)}var Zo=ep||function(e){return ae.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var r=e.length,o=xo?xo(r):new e.constructor(r);return e.copy(o),o}function ti(e){var t=new e.constructor(e.byteLength);return new Ln(t).set(new Ln(e)),t}function mu(e,t){var r=t?ti(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function gu(e){var t=new e.constructor(e.source,Pi.exec(e));return t.lastIndex=e.lastIndex,t}function yu(e){return rn?V(rn.call(e)):{}}function jo(e,t){var r=t?ti(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var r=e!==i,o=e===null,a=e===e,p=_e(e),u=t!==i,f=t===null,y=t===t,S=_e(t);if(!f&&!S&&!p&&e>t||p&&u&&y&&!f&&!S||o&&u&&y||!r&&y||!a)return 1;if(!o&&!p&&!S&&e<t||S&&r&&a&&!o&&!p||f&&r&&a||!u&&a||!y)return-1}return 0}function hu(e,t,r){for(var o=-1,a=e.criteria,p=t.criteria,u=a.length,f=r.length;++o<u;){var y=ea(a[o],p[o]);if(y){if(o>=f)return y;var S=r[o];return y*(S=="desc"?-1:1)}}return e.index-t.index}function ta(e,t,r,o){for(var a=-1,p=e.length,u=r.length,f=-1,y=t.length,S=re(p-u,0),C=v(y+S),w=!o;++f<y;)C[f]=t[f];for(;++a<u;)(w||a<p)&&(C[r[a]]=e[a]);for(;S--;)C[f++]=e[a++];return C}function na(e,t,r,o){for(var a=-1,p=e.length,u=-1,f=r.length,y=-1,S=t.length,C=re(p-f,0),w=v(C+S),E=!o;++a<C;)w[a]=e[a];for(var T=a;++y<S;)w[T+y]=t[y];for(;++u<f;)(E||a<p)&&(w[T+r[u]]=e[a++]);return w}function ye(e,t){var r=-1,o=e.length;for(t||(t=v(o));++r<o;)t[r]=e[r];return t}function Ve(e,t,r,o){var a=!r;r||(r={});for(var p=-1,u=t.length;++p<u;){var f=t[p],y=o?o(r[f],e[f],f,r,e):i;y===i&&(y=e[f]),a?Qe(r,f,y):on(r,f,y)}return r}function vu(e,t){return Ve(e,si(e),t)}function xu(e,t){return Ve(e,ga(e),t)}function Yn(e,t){return function(r,o){var a=P(r)?_s:zp,p=t?t():{};return a(r,e,L(o,2),p)}}function Ut(e){return O(function(t,r){var o=-1,a=r.length,p=a>1?r[a-1]:i,u=a>2?r[2]:i;for(p=e.length>3&&typeof p=="function"?(a--,p):i,u&&me(r[0],r[1],u)&&(p=a<3?i:p,a=1),t=V(t);++o<a;){var f=r[o];f&&e(t,f,o,p)}return t})}function ra(e,t){return function(r,o){if(r==null)return r;if(!he(r))return e(r,o);for(var a=r.length,p=t?a:-1,u=V(r);(t?p--:++p<a)&&o(u[p],p,u)!==!1;);return r}}function ia(e){return function(t,r,o){for(var a=-1,p=V(t),u=o(t),f=u.length;f--;){var y=u[e?f:++a];if(r(p[y],y,p)===!1)break}return t}}function bu(e,t,r){var o=t&ie,a=un(e);function p(){var u=this&&this!==ae&&this instanceof p?a:e;return u.apply(o?r:this,arguments)}return p}function oa(e){return function(t){t=Y(t);var r=Dt(t)?Ue(t):i,o=r?r[0]:t.charAt(0),a=r?gt(r,1).join(""):t.slice(1);return o[e]()+a}}function zt(e){return function(t){return Er(rl(nl(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 r=Nt(e.prototype),o=e.apply(r,t);return Z(o)?o:r}}function Su(e,t,r){var o=un(e);function a(){for(var p=arguments.length,u=v(p),f=p,y=Wt(a);f--;)u[f]=arguments[f];var S=p<3&&u[0]!==y&&u[p-1]!==y?[]:ut(u,y);if(p-=S.length,p<r)return ua(e,t,Kn,a.placeholder,i,u,S,i,i,r-p);var C=this&&this!==ae&&this instanceof a?o:e;return Se(C,this,u)}return a}function aa(e){return function(t,r,o){var a=V(t);if(!he(t)){var p=L(r,3);t=oe(t),r=function(f){return p(a[f],f,a)}}var u=e(t,r,o);return u>-1?a[p?t[u]:u]:i}}function la(e){return et(function(t){var r=t.length,o=r,a=De.prototype.thru;for(e&&t.reverse();o--;){var p=t[o];if(typeof p!="function")throw new Re(g);if(a&&!u&&Xn(p)=="wrapper")var u=new De([],!0)}for(o=u?o:r;++o<r;){p=t[o];var f=Xn(p),y=f=="wrapper"?ai(p):i;y&&ui(y[0])&&y[1]==(Fe|se|pe|at)&&!y[4].length&&y[9]==1?u=u[Xn(y[0])].apply(u,y[3]):u=p.length==1&&ui(p)?u[f]():u.thru(p)}return function(){var S=arguments,C=S[0];if(u&&S.length==1&&P(C))return u.plant(C).value();for(var w=0,E=r?t[w].apply(this,S):C;++w<r;)E=t[w].call(this,E);return E}})}function Kn(e,t,r,o,a,p,u,f,y,S){var C=t&Fe,w=t&ie,E=t&be,T=t&(se|Ae),B=t&Tt,M=E?i:un(e);function R(){for(var N=arguments.length,W=v(N),Ie=N;Ie--;)W[Ie]=arguments[Ie];if(T)var ge=Wt(R),Ee=Ds(W,ge);if(o&&(W=ta(W,o,a,T)),p&&(W=na(W,p,u,T)),N-=Ee,T&&N<S){var te=ut(W,ge);return ua(e,t,Kn,R.placeholder,r,W,te,f,y,S-N)}var Ge=w?r:this,it=E?Ge[e]:e;return N=W.length,f?W=zu(W,f):B&&N>1&&W.reverse(),C&&y<N&&(W.length=y),this&&this!==ae&&this instanceof R&&(it=M||un(it)),it.apply(Ge,W)}return R}function sa(e,t){return function(r,o){return Jp(r,e,t(o),{})}}function Vn(e,t){return function(r,o){var a;if(r===i&&o===i)return t;if(r!==i&&(a=r),o!==i){if(a===i)return o;typeof r=="string"||typeof o=="string"?(r=we(r),o=we(o)):(r=Vo(r),o=Vo(o)),a=e(r,o)}return a}}function ni(e){return et(function(t){return t=X(t,Ce(L())),O(function(r){var o=this;return e(t,function(a){return Se(a,o,r)})})})}function qn(e,t){t=t===i?" ":we(t);var r=t.length;if(r<2)return r?Jr(t,e):t;var o=Jr(t,Pn(e/Pt(t)));return Dt(t)?gt(Ue(o),0,e).join(""):o.slice(0,e)}function Cu(e,t,r,o){var a=t&ie,p=un(e);function u(){for(var f=-1,y=arguments.length,S=-1,C=o.length,w=v(C+y),E=this&&this!==ae&&this instanceof u?p:e;++S<C;)w[S]=o[S];for(;y--;)w[S++]=arguments[++f];return Se(E,a?r:this,w)}return u}function pa(e){return function(t,r,o){return o&&typeof o!="number"&&me(t,r,o)&&(r=o=i),t=rt(t),r===i?(r=t,t=0):r=rt(r),o=o===i?t<r?1:-1:rt(o),lu(t,r,o,e)}}function Jn(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=He(t),r=He(r)),e(t,r)}}function ua(e,t,r,o,a,p,u,f,y,S){var C=t&se,w=C?u:i,E=C?i:u,T=C?p:i,B=C?i:p;t|=C?pe:Te,t&=~(C?Te:pe),t&ot||(t&=~(ie|be));var M=[e,t,a,T,w,B,E,f,y,S],R=r.apply(i,M);return ui(e)&&Ca(R,M),R.placeholder=o,wa(R,e,t)}function ri(e){var t=ne[e];return function(r,o){if(r=He(r),o=o==null?0:ue(k(o),292),o&&wo(r)){var a=(Y(r)+"e").split("e"),p=t(a[0]+"e"+(+a[1]+o));return a=(Y(p)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(r)}}var wu=Ht&&1/_n(new Ht([,-0]))[1]==vt?function(e){return new Ht(e)}:Ii;function ca(e){return function(t){var r=ce(t);return r==Oe?Dr(t):r==Ne?Us(t):Rs(t,e(t))}}function je(e,t,r,o,a,p,u,f){var y=t&be;if(!y&&typeof e!="function")throw new Re(g);var S=o?o.length:0;if(S||(t&=~(pe|Te),o=a=i),u=u===i?u:re(k(u),0),f=f===i?f:k(f),S-=a?a.length:0,t&Te){var C=o,w=a;o=a=i}var E=y?i:ai(e),T=[e,t,r,o,a,C,w,p,u,f];if(E&&Ou(T,E),e=T[0],t=T[1],r=T[2],o=T[3],a=T[4],f=T[9]=T[9]===i?y?0:e.length:re(T[9]-S,0),!f&&t&(se|Ae)&&(t&=~(se|Ae)),!t||t==ie)var B=bu(e,t,r);else t==se||t==Ae?B=Su(e,t,f):(t==pe||t==(ie|pe))&&!a.length?B=Cu(e,t,r,o):B=Kn.apply(i,T);var M=E?Yo:Ca;return wa(M(B,T),e,t)}function da(e,t,r,o){return e===i||We(e,Mt[r])&&!K.call(o,r)?t:e}function fa(e,t,r,o,a,p){return Z(e)&&Z(t)&&(p.set(t,e),Wn(e,t,i,fa,p),p.delete(t)),e}function _u(e){return fn(e)?i:e}function ma(e,t,r,o,a,p){var u=r&de,f=e.length,y=t.length;if(f!=y&&!(u&&y>f))return!1;var S=p.get(e),C=p.get(t);if(S&&C)return S==t&&C==e;var w=-1,E=!0,T=r&$e?new Ct:i;for(p.set(e,t),p.set(t,e);++w<f;){var B=e[w],M=t[w];if(o)var R=u?o(M,B,w,t,e,p):o(B,M,w,e,t,p);if(R!==i){if(R)continue;E=!1;break}if(T){if(!Ar(t,function(N,W){if(!Qt(T,W)&&(B===N||a(B,N,r,o,p)))return T.push(W)})){E=!1;break}}else if(!(B===M||a(B,M,r,o,p))){E=!1;break}}return p.delete(e),p.delete(t),E}function Iu(e,t,r,o,a,p,u){switch(r){case Lt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zt:return!(e.byteLength!=t.byteLength||!p(new Ln(e),new Ln(t)));case Yt:case Kt:case Vt:return We(+e,+t);case yn:return e.name==t.name&&e.message==t.message;case qt:case Jt:return e==t+"";case Oe:var f=Dr;case Ne:var y=o&de;if(f||(f=_n),e.size!=t.size&&!y)return!1;var S=u.get(e);if(S)return S==t;o|=$e,u.set(e,t);var C=ma(f(e),f(t),o,a,p,u);return u.delete(e),C;case vn:if(rn)return rn.call(e)==rn.call(t)}return!1}function Eu(e,t,r,o,a,p){var u=r&de,f=ii(e),y=f.length,S=ii(t),C=S.length;if(y!=C&&!u)return!1;for(var w=y;w--;){var E=f[w];if(!(u?E in t:K.call(t,E)))return!1}var T=p.get(e),B=p.get(t);if(T&&B)return T==t&&B==e;var M=!0;p.set(e,t),p.set(t,e);for(var R=u;++w<y;){E=f[w];var N=e[E],W=t[E];if(o)var Ie=u?o(W,N,E,t,e,p):o(N,W,E,e,t,p);if(!(Ie===i?N===W||a(N,W,r,o,p):Ie)){M=!1;break}R||(R=E=="constructor")}if(M&&!R){var ge=e.constructor,Ee=t.constructor;ge!=Ee&&"constructor"in e&&"constructor"in t&&!(typeof ge=="function"&&ge instanceof ge&&typeof Ee=="function"&&Ee instanceof Ee)&&(M=!1)}return p.delete(e),p.delete(t),M}function et(e){return di(ba(e,i,Fa),e+"")}function ii(e){return Po(e,oe,si)}function oi(e){return Po(e,ve,ga)}var ai=Mn?function(e){return Mn.get(e)}:Ii;function Xn(e){for(var t=e.name+"",r=Ot[t],o=K.call(Ot,t)?r.length:0;o--;){var a=r[o],p=a.func;if(p==null||p==e)return a.name}return t}function Wt(e){var t=K.call(l,"placeholder")?l:e;return t.placeholder}function L(){var e=l.iteratee||wi;return e=e===wi?Ho:e,arguments.length?e(arguments[0],arguments[1]):e}function Zn(e,t){var r=e.__data__;return Pu(t)?r[typeof t=="string"?"string":"hash"]:r.map}function li(e){for(var t=oe(e),r=t.length;r--;){var o=t[r],a=e[o];t[r]=[o,a,va(a)]}return t}function It(e,t){var r=Hs(e,t);return Mo(r)?r:i}function Au(e){var t=K.call(e,bt),r=e[bt];try{e[bt]=i;var o=!0}catch{}var a=Tn.call(e);return o&&(t?e[bt]=r:delete e[bt]),a}var si=kr?function(e){return e==null?[]:(e=V(e),st(kr(e),function(t){return So.call(e,t)}))}:Ei,ga=kr?function(e){for(var t=[];e;)pt(t,si(e)),e=Bn(e);return t}:Ei,ce=fe;(Mr&&ce(new Mr(new ArrayBuffer(1)))!=Lt||en&&ce(new en)!=Oe||Hr&&ce(Hr.resolve())!=Li||Ht&&ce(new Ht)!=Ne||tn&&ce(new tn)!=Xt)&&(ce=function(e){var t=fe(e),r=t==Je?e.constructor:i,o=r?Et(r):"";if(o)switch(o){case pp:return Lt;case up:return Oe;case cp:return Li;case dp:return Ne;case fp:return Xt}return t});function Tu(e,t,r){for(var o=-1,a=r.length;++o<a;){var p=r[o],u=p.size;switch(p.type){case"drop":e+=u;break;case"dropRight":t-=u;break;case"take":t=ue(t,e+u);break;case"takeRight":e=re(e,t-u);break}}return{start:e,end:t}}function Fu(e){var t=e.match(kl);return t?t[1].split(Ml):[]}function ya(e,t,r){t=mt(t,e);for(var o=-1,a=t.length,p=!1;++o<a;){var u=qe(t[o]);if(!(p=e!=null&&r(e,u)))break;e=e[u]}return p||++o!=a?p:(a=e==null?0:e.length,!!a&&ir(a)&&tt(u,a)&&(P(e)||At(e)))}function Lu(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&K.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function ha(e){return typeof e.constructor=="function"&&!cn(e)?Nt(Bn(e)):{}}function Bu(e,t,r){var o=e.constructor;switch(t){case Zt:return ti(e);case Yt:case Kt:return new o(+e);case Lt:return mu(e,r);case lr:case sr:case pr:case ur:case cr:case dr:case fr:case mr:case gr:return jo(e,r);case Oe:return new o;case Vt:case Jt:return new o(e);case qt:return gu(e);case Ne:return new o;case vn:return yu(e)}}function Ru(e,t){var r=t.length;if(!r)return e;var o=r-1;return t[o]=(r>1?"& ":"")+t[o],t=t.join(r>2?", ":" "),e.replace(Pl,`{
|
|
8
|
+
*/(function(n,s){(function(){var i,d="4.17.21",h=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",x="Invalid `variable` option passed into `_.template`",I="__lodash_hash_undefined__",F=500,W="__lodash_placeholder__",U=1,te=2,G=4,Ee=1,$e=2,ie=1,be=2,ot=4,se=8,Ae=16,pe=32,Te=64,Fe=128,at=256,Tt=512,ht=30,ll="...",sl=800,pl=16,Ti=1,ul=2,cl=3,vt=1/0,lt=9007199254740991,dl=17976931348623157e292,mn=0/0,Ye=4294967295,fl=Ye-1,ml=Ye>>>1,gl=[["ary",Fe],["bind",ie],["bindKey",be],["curry",se],["curryRight",Ae],["flip",Tt],["partial",pe],["partialRight",Te],["rearg",at]],Ft="[object Arguments]",gn="[object Array]",yl="[object AsyncFunction]",Yt="[object Boolean]",Kt="[object Date]",hl="[object DOMException]",yn="[object Error]",hn="[object Function]",Fi="[object GeneratorFunction]",Oe="[object Map]",Vt="[object Number]",vl="[object Null]",Je="[object Object]",Li="[object Promise]",bl="[object Proxy]",qt="[object RegExp]",Ne="[object Set]",Jt="[object String]",vn="[object Symbol]",xl="[object Undefined]",Xt="[object WeakMap]",Sl="[object WeakSet]",Zt="[object ArrayBuffer]",Lt="[object DataView]",lr="[object Float32Array]",sr="[object Float64Array]",pr="[object Int8Array]",ur="[object Int16Array]",cr="[object Int32Array]",dr="[object Uint8Array]",fr="[object Uint8ClampedArray]",mr="[object Uint16Array]",gr="[object Uint32Array]",Cl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,_l=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bi=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Il=RegExp(Bi.source),El=RegExp(Ri.source),Al=/<%-([\s\S]+?)%>/g,Tl=/<%([\s\S]+?)%>/g,Di=/<%=([\s\S]+?)%>/g,Fl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ll=/^\w*$/,Bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yr=/[\\^$.*+?()[\]{}|]/g,Rl=RegExp(yr.source),hr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Ml=/,? & /,Hl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ol=/[()=,{}\[\]\/\s]/,Nl=/\\(\\)?/g,Ul=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pi=/\w*$/,zl=/^[-+]0x[0-9a-f]+$/i,Wl=/^0b[01]+$/i,Gl=/^\[object .+?Constructor\]$/,$l=/^0o[0-7]+$/i,Yl=/^(?:0|[1-9]\d*)$/,Kl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bn=/($^)/,Vl=/['\n\r\u2028\u2029\\]/g,xn="\\ud800-\\udfff",ql="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Xl="\\u20d0-\\u20ff",ki=ql+Jl+Xl,Mi="\\u2700-\\u27bf",Hi="a-z\\xdf-\\xf6\\xf8-\\xff",Zl="\\xac\\xb1\\xd7\\xf7",Ql="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jl="\\u2000-\\u206f",es=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oi="A-Z\\xc0-\\xd6\\xd8-\\xde",Ni="\\ufe0e\\ufe0f",Ui=Zl+Ql+jl+es,vr="['\u2019]",ts="["+xn+"]",zi="["+Ui+"]",Sn="["+ki+"]",Wi="\\d+",ns="["+Mi+"]",Gi="["+Hi+"]",$i="[^"+xn+Ui+Wi+Mi+Hi+Oi+"]",br="\\ud83c[\\udffb-\\udfff]",rs="(?:"+Sn+"|"+br+")",Yi="[^"+xn+"]",xr="(?:\\ud83c[\\udde6-\\uddff]){2}",Sr="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+Oi+"]",Ki="\\u200d",Vi="(?:"+Gi+"|"+$i+")",is="(?:"+Bt+"|"+$i+")",qi="(?:"+vr+"(?:d|ll|m|re|s|t|ve))?",Ji="(?:"+vr+"(?:D|LL|M|RE|S|T|VE))?",Xi=rs+"?",Zi="["+Ni+"]?",os="(?:"+Ki+"(?:"+[Yi,xr,Sr].join("|")+")"+Zi+Xi+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qi=Zi+Xi+os,ss="(?:"+[ns,xr,Sr].join("|")+")"+Qi,ps="(?:"+[Yi+Sn+"?",Sn,xr,Sr,ts].join("|")+")",us=RegExp(vr,"g"),cs=RegExp(Sn,"g"),Cr=RegExp(br+"(?="+br+")|"+ps+Qi,"g"),ds=RegExp([Bt+"?"+Gi+"+"+qi+"(?="+[zi,Bt,"$"].join("|")+")",is+"+"+Ji+"(?="+[zi,Bt+Vi,"$"].join("|")+")",Bt+"?"+Vi+"+"+qi,Bt+"+"+Ji,ls,as,Wi,ss].join("|"),"g"),fs=RegExp("["+Ki+xn+ki+Ni+"]"),ms=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ys=-1,J={};J[lr]=J[sr]=J[pr]=J[ur]=J[cr]=J[dr]=J[fr]=J[mr]=J[gr]=!0,J[Ft]=J[gn]=J[Zt]=J[Yt]=J[Lt]=J[Kt]=J[yn]=J[hn]=J[Oe]=J[Vt]=J[Je]=J[qt]=J[Ne]=J[Jt]=J[Xt]=!1;var q={};q[Ft]=q[gn]=q[Zt]=q[Lt]=q[Yt]=q[Kt]=q[lr]=q[sr]=q[pr]=q[ur]=q[cr]=q[Oe]=q[Vt]=q[Je]=q[qt]=q[Ne]=q[Jt]=q[vn]=q[dr]=q[fr]=q[mr]=q[gr]=!0,q[yn]=q[hn]=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"},vs={"&":"&","<":"<",">":">",'"':""","'":"'"},bs={"&":"&","<":"<",">":">",""":'"',"'":"'"},xs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ss=parseFloat,Cs=parseInt,ji=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,ae=ji||ws||Function("return this")(),wr=s&&!s.nodeType&&s,bt=wr&&!0&&n&&!n.nodeType&&n,eo=bt&&bt.exports===wr,_r=eo&&ji.process,Le=function(){try{var m=bt&&bt.require&&bt.require("util").types;return m||_r&&_r.binding&&_r.binding("util")}catch{}}(),to=Le&&Le.isArrayBuffer,no=Le&&Le.isDate,ro=Le&&Le.isMap,io=Le&&Le.isRegExp,oo=Le&&Le.isSet,ao=Le&&Le.isTypedArray;function xe(m,b,v){switch(v.length){case 0:return m.call(b);case 1:return m.call(b,v[0]);case 2:return m.call(b,v[0],v[1]);case 3:return m.call(b,v[0],v[1],v[2])}return m.apply(b,v)}function _s(m,b,v,A){for(var D=-1,$=m==null?0:m.length;++D<$;){var ne=m[D];b(A,ne,v(ne),m)}return A}function Be(m,b){for(var v=-1,A=m==null?0:m.length;++v<A&&b(m[v],v,m)!==!1;);return m}function Is(m,b){for(var v=m==null?0:m.length;v--&&b(m[v],v,m)!==!1;);return m}function lo(m,b){for(var v=-1,A=m==null?0:m.length;++v<A;)if(!b(m[v],v,m))return!1;return!0}function st(m,b){for(var v=-1,A=m==null?0:m.length,D=0,$=[];++v<A;){var ne=m[v];b(ne,v,m)&&($[D++]=ne)}return $}function Cn(m,b){var v=m==null?0:m.length;return!!v&&Rt(m,b,0)>-1}function Ir(m,b,v){for(var A=-1,D=m==null?0:m.length;++A<D;)if(v(b,m[A]))return!0;return!1}function X(m,b){for(var v=-1,A=m==null?0:m.length,D=Array(A);++v<A;)D[v]=b(m[v],v,m);return D}function pt(m,b){for(var v=-1,A=b.length,D=m.length;++v<A;)m[D+v]=b[v];return m}function Er(m,b,v,A){var D=-1,$=m==null?0:m.length;for(A&&$&&(v=m[++D]);++D<$;)v=b(v,m[D],D,m);return v}function Es(m,b,v,A){var D=m==null?0:m.length;for(A&&D&&(v=m[--D]);D--;)v=b(v,m[D],D,m);return v}function Ar(m,b){for(var v=-1,A=m==null?0:m.length;++v<A;)if(b(m[v],v,m))return!0;return!1}var As=Tr("length");function Ts(m){return m.split("")}function Fs(m){return m.match(Hl)||[]}function so(m,b,v){var A;return v(m,function(D,$,ne){if(b(D,$,ne))return A=$,!1}),A}function wn(m,b,v,A){for(var D=m.length,$=v+(A?1:-1);A?$--:++$<D;)if(b(m[$],$,m))return $;return-1}function Rt(m,b,v){return b===b?zs(m,b,v):wn(m,po,v)}function Ls(m,b,v,A){for(var D=v-1,$=m.length;++D<$;)if(A(m[D],b))return D;return-1}function po(m){return m!==m}function uo(m,b){var v=m==null?0:m.length;return v?Lr(m,b)/v:mn}function Tr(m){return function(b){return b==null?i:b[m]}}function Fr(m){return function(b){return m==null?i:m[b]}}function co(m,b,v,A,D){return D(m,function($,ne,V){v=A?(A=!1,$):b(v,$,ne,V)}),v}function Bs(m,b){var v=m.length;for(m.sort(b);v--;)m[v]=m[v].value;return m}function Lr(m,b){for(var v,A=-1,D=m.length;++A<D;){var $=b(m[A]);$!==i&&(v=v===i?$:v+$)}return v}function Br(m,b){for(var v=-1,A=Array(m);++v<m;)A[v]=b(v);return A}function Rs(m,b){return X(b,function(v){return[v,m[v]]})}function fo(m){return m&&m.slice(0,ho(m)+1).replace(hr,"")}function Se(m){return function(b){return m(b)}}function Rr(m,b){return X(b,function(v){return m[v]})}function Qt(m,b){return m.has(b)}function mo(m,b){for(var v=-1,A=m.length;++v<A&&Rt(b,m[v],0)>-1;);return v}function go(m,b){for(var v=m.length;v--&&Rt(b,m[v],0)>-1;);return v}function Ds(m,b){for(var v=m.length,A=0;v--;)m[v]===b&&++A;return A}var Ps=Fr(hs),ks=Fr(vs);function Ms(m){return"\\"+xs[m]}function Hs(m,b){return m==null?i:m[b]}function Dt(m){return fs.test(m)}function Os(m){return ms.test(m)}function Ns(m){for(var b,v=[];!(b=m.next()).done;)v.push(b.value);return v}function Dr(m){var b=-1,v=Array(m.size);return m.forEach(function(A,D){v[++b]=[D,A]}),v}function yo(m,b){return function(v){return m(b(v))}}function ut(m,b){for(var v=-1,A=m.length,D=0,$=[];++v<A;){var ne=m[v];(ne===b||ne===W)&&(m[v]=W,$[D++]=v)}return $}function _n(m){var b=-1,v=Array(m.size);return m.forEach(function(A){v[++b]=A}),v}function Us(m){var b=-1,v=Array(m.size);return m.forEach(function(A){v[++b]=[A,A]}),v}function zs(m,b,v){for(var A=v-1,D=m.length;++A<D;)if(m[A]===b)return A;return-1}function Ws(m,b,v){for(var A=v+1;A--;)if(m[A]===b)return A;return A}function Pt(m){return Dt(m)?$s(m):As(m)}function Ue(m){return Dt(m)?Ys(m):Ts(m)}function ho(m){for(var b=m.length;b--&&Dl.test(m.charAt(b)););return b}var Gs=Fr(bs);function $s(m){for(var b=Cr.lastIndex=0;Cr.test(m);)++b;return b}function Ys(m){return m.match(Cr)||[]}function Ks(m){return m.match(ds)||[]}var Vs=function m(b){b=b==null?ae:kt.defaults(ae.Object(),b,kt.pick(ae,gs));var v=b.Array,A=b.Date,D=b.Error,$=b.Function,ne=b.Math,V=b.Object,Pr=b.RegExp,qs=b.String,Re=b.TypeError,In=v.prototype,Js=$.prototype,Mt=V.prototype,En=b["__core-js_shared__"],An=Js.toString,K=Mt.hasOwnProperty,Xs=0,vo=function(){var e=/[^.]+$/.exec(En&&En.keys&&En.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Tn=Mt.toString,Zs=An.call(V),Qs=ae._,js=Pr("^"+An.call(K).replace(yr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fn=eo?b.Buffer:i,ct=b.Symbol,Ln=b.Uint8Array,bo=Fn?Fn.allocUnsafe:i,Bn=yo(V.getPrototypeOf,V),xo=V.create,So=Mt.propertyIsEnumerable,Rn=In.splice,Co=ct?ct.isConcatSpreadable:i,jt=ct?ct.iterator:i,xt=ct?ct.toStringTag:i,Dn=function(){try{var e=It(V,"defineProperty");return e({},"",{}),e}catch{}}(),ep=b.clearTimeout!==ae.clearTimeout&&b.clearTimeout,tp=A&&A.now!==ae.Date.now&&A.now,np=b.setTimeout!==ae.setTimeout&&b.setTimeout,Pn=ne.ceil,kn=ne.floor,kr=V.getOwnPropertySymbols,rp=Fn?Fn.isBuffer:i,wo=b.isFinite,ip=In.join,op=yo(V.keys,V),re=ne.max,ue=ne.min,ap=A.now,lp=b.parseInt,_o=ne.random,sp=In.reverse,Mr=It(b,"DataView"),en=It(b,"Map"),Hr=It(b,"Promise"),Ht=It(b,"Set"),tn=It(b,"WeakMap"),nn=It(V,"create"),Mn=tn&&new tn,Ot={},pp=Et(Mr),up=Et(en),cp=Et(Hr),dp=Et(Ht),fp=Et(tn),Hn=ct?ct.prototype:i,rn=Hn?Hn.valueOf:i,Io=Hn?Hn.toString:i;function l(e){if(Q(e)&&!P(e)&&!(e instanceof N)){if(e instanceof De)return e;if(K.call(e,"__wrapped__"))return Ea(e)}return new De(e)}var Nt=function(){function e(){}return function(t){if(!Z(t))return{};if(xo)return xo(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function On(){}function De(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}l.templateSettings={escape:Al,evaluate:Tl,interpolate:Di,variable:"",imports:{_:l}},l.prototype=On.prototype,l.prototype.constructor=l,De.prototype=Nt(On.prototype),De.prototype.constructor=De;function N(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ye,this.__views__=[]}function mp(){var e=new N(this.__wrapped__);return e.__actions__=ge(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ge(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ge(this.__views__),e}function gp(){if(this.__filtered__){var e=new N(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__,r=P(e),o=t<0,a=r?e.length:0,p=Tu(0,a,this.__views__),u=p.start,f=p.end,y=f-u,S=o?f:u-1,C=this.__iteratees__,w=C.length,E=0,T=ue(y,this.__takeCount__);if(!r||!o&&a==y&&T==y)return Jo(e,this.__actions__);var B=[];e:for(;y--&&E<T;){S+=t;for(var M=-1,R=e[S];++M<w;){var O=C[M],z=O.iteratee,_e=O.type,me=z(R);if(_e==ul)R=me;else if(!me){if(_e==Ti)continue e;break e}}B[E++]=R}return B}N.prototype=Nt(On.prototype),N.prototype.constructor=N;function St(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function hp(){this.__data__=nn?nn(null):{},this.size=0}function vp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bp(e){var t=this.__data__;if(nn){var r=t[e];return r===I?i:r}return K.call(t,e)?t[e]:i}function xp(e){var t=this.__data__;return nn?t[e]!==i:K.call(t,e)}function Sp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nn&&t===i?I:t,this}St.prototype.clear=hp,St.prototype.delete=vp,St.prototype.get=bp,St.prototype.has=xp,St.prototype.set=Sp;function Xe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function Cp(){this.__data__=[],this.size=0}function wp(e){var t=this.__data__,r=Nn(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():Rn.call(t,r,1),--this.size,!0}function _p(e){var t=this.__data__,r=Nn(t,e);return r<0?i:t[r][1]}function Ip(e){return Nn(this.__data__,e)>-1}function Ep(e,t){var r=this.__data__,o=Nn(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}Xe.prototype.clear=Cp,Xe.prototype.delete=wp,Xe.prototype.get=_p,Xe.prototype.has=Ip,Xe.prototype.set=Ep;function Ze(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function Ap(){this.size=0,this.__data__={hash:new St,map:new(en||Xe),string:new St}}function Tp(e){var t=Zn(this,e).delete(e);return this.size-=t?1:0,t}function Fp(e){return Zn(this,e).get(e)}function Lp(e){return Zn(this,e).has(e)}function Bp(e,t){var r=Zn(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}Ze.prototype.clear=Ap,Ze.prototype.delete=Tp,Ze.prototype.get=Fp,Ze.prototype.has=Lp,Ze.prototype.set=Bp;function Ct(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ze;++t<r;)this.add(e[t])}function Rp(e){return this.__data__.set(e,I),this}function Dp(e){return this.__data__.has(e)}Ct.prototype.add=Ct.prototype.push=Rp,Ct.prototype.has=Dp;function ze(e){var t=this.__data__=new Xe(e);this.size=t.size}function Pp(){this.__data__=new Xe,this.size=0}function kp(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Mp(e){return this.__data__.get(e)}function Hp(e){return this.__data__.has(e)}function Op(e,t){var r=this.__data__;if(r instanceof Xe){var o=r.__data__;if(!en||o.length<h-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ze(o)}return r.set(e,t),this.size=r.size,this}ze.prototype.clear=Pp,ze.prototype.delete=kp,ze.prototype.get=Mp,ze.prototype.has=Hp,ze.prototype.set=Op;function Eo(e,t){var r=P(e),o=!r&&At(e),a=!r&&!o&&yt(e),p=!r&&!o&&!a&&Gt(e),u=r||o||a||p,f=u?Br(e.length,qs):[],y=f.length;for(var S in e)(t||K.call(e,S))&&!(u&&(S=="length"||a&&(S=="offset"||S=="parent")||p&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||tt(S,y)))&&f.push(S);return f}function Ao(e){var t=e.length;return t?e[qr(0,t-1)]:i}function Np(e,t){return Qn(ge(e),wt(t,0,e.length))}function Up(e){return Qn(ge(e))}function Or(e,t,r){(r!==i&&!We(e[t],r)||r===i&&!(t in e))&&Qe(e,t,r)}function on(e,t,r){var o=e[t];(!(K.call(e,t)&&We(o,r))||r===i&&!(t in e))&&Qe(e,t,r)}function Nn(e,t){for(var r=e.length;r--;)if(We(e[r][0],t))return r;return-1}function zp(e,t,r,o){return dt(e,function(a,p,u){t(o,a,r(a),u)}),o}function To(e,t){return e&&Ve(t,oe(t),e)}function Wp(e,t){return e&&Ve(t,he(t),e)}function Qe(e,t,r){t=="__proto__"&&Dn?Dn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Nr(e,t){for(var r=-1,o=t.length,a=v(o),p=e==null;++r<o;)a[r]=p?i:bi(e,t[r]);return a}function wt(e,t,r){return e===e&&(r!==i&&(e=e<=r?e:r),t!==i&&(e=e>=t?e:t)),e}function Pe(e,t,r,o,a,p){var u,f=t&U,y=t&te,S=t&G;if(r&&(u=a?r(e,o,a,p):r(e)),u!==i)return u;if(!Z(e))return e;var C=P(e);if(C){if(u=Lu(e),!f)return ge(e,u)}else{var w=ce(e),E=w==hn||w==Fi;if(yt(e))return Qo(e,f);if(w==Je||w==Ft||E&&!a){if(u=y||E?{}:ha(e),!f)return y?bu(e,Wp(u,e)):vu(e,To(u,e))}else{if(!q[w])return a?e:{};u=Bu(e,w,f)}}p||(p=new ze);var T=p.get(e);if(T)return T;p.set(e,u),Ka(e)?e.forEach(function(R){u.add(Pe(R,t,r,R,e,p))}):$a(e)&&e.forEach(function(R,O){u.set(O,Pe(R,t,r,O,e,p))});var B=S?y?oi:ii:y?he:oe,M=C?i:B(e);return Be(M||e,function(R,O){M&&(O=R,R=e[O]),on(u,O,Pe(R,t,r,O,e,p))}),u}function Gp(e){var t=oe(e);return function(r){return Fo(r,e,t)}}function Fo(e,t,r){var o=r.length;if(e==null)return!o;for(e=V(e);o--;){var a=r[o],p=t[a],u=e[a];if(u===i&&!(a in e)||!p(u))return!1}return!0}function Lo(e,t,r){if(typeof e!="function")throw new Re(g);return dn(function(){e.apply(i,r)},t)}function an(e,t,r,o){var a=-1,p=Cn,u=!0,f=e.length,y=[],S=t.length;if(!f)return y;r&&(t=X(t,Se(r))),o?(p=Ir,u=!1):t.length>=h&&(p=Qt,u=!1,t=new Ct(t));e:for(;++a<f;){var C=e[a],w=r==null?C:r(C);if(C=o||C!==0?C:0,u&&w===w){for(var E=S;E--;)if(t[E]===w)continue e;y.push(C)}else p(t,w,o)||y.push(C)}return y}var dt=ra(Ke),Bo=ra(zr,!0);function $p(e,t){var r=!0;return dt(e,function(o,a,p){return r=!!t(o,a,p),r}),r}function Un(e,t,r){for(var o=-1,a=e.length;++o<a;){var p=e[o],u=t(p);if(u!=null&&(f===i?u===u&&!we(u):r(u,f)))var f=u,y=p}return y}function Yp(e,t,r,o){var a=e.length;for(r=k(r),r<0&&(r=-r>a?0:a+r),o=o===i||o>a?a:k(o),o<0&&(o+=a),o=r>o?0:qa(o);r<o;)e[r++]=t;return e}function Ro(e,t){var r=[];return dt(e,function(o,a,p){t(o,a,p)&&r.push(o)}),r}function le(e,t,r,o,a){var p=-1,u=e.length;for(r||(r=Du),a||(a=[]);++p<u;){var f=e[p];t>0&&r(f)?t>1?le(f,t-1,r,o,a):pt(a,f):o||(a[a.length]=f)}return a}var Ur=ia(),Do=ia(!0);function Ke(e,t){return e&&Ur(e,t,oe)}function zr(e,t){return e&&Do(e,t,oe)}function zn(e,t){return st(t,function(r){return nt(e[r])})}function _t(e,t){t=mt(t,e);for(var r=0,o=t.length;e!=null&&r<o;)e=e[qe(t[r++])];return r&&r==o?e:i}function Po(e,t,r){var o=t(e);return P(e)?o:pt(o,r(e))}function de(e){return e==null?e===i?xl:vl:xt&&xt in V(e)?Au(e):Uu(e)}function Wr(e,t){return e>t}function Kp(e,t){return e!=null&&K.call(e,t)}function Vp(e,t){return e!=null&&t in V(e)}function qp(e,t,r){return e>=ue(t,r)&&e<re(t,r)}function Gr(e,t,r){for(var o=r?Ir:Cn,a=e[0].length,p=e.length,u=p,f=v(p),y=1/0,S=[];u--;){var C=e[u];u&&t&&(C=X(C,Se(t))),y=ue(C.length,y),f[u]=!r&&(t||a>=120&&C.length>=120)?new Ct(u&&C):i}C=e[0];var w=-1,E=f[0];e:for(;++w<a&&S.length<y;){var T=C[w],B=t?t(T):T;if(T=r||T!==0?T:0,!(E?Qt(E,B):o(S,B,r))){for(u=p;--u;){var M=f[u];if(!(M?Qt(M,B):o(e[u],B,r)))continue e}E&&E.push(B),S.push(T)}}return S}function Jp(e,t,r,o){return Ke(e,function(a,p,u){t(o,r(a),p,u)}),o}function ln(e,t,r){t=mt(t,e),e=Sa(e,t);var o=e==null?e:e[qe(Me(t))];return o==null?i:xe(o,e,r)}function ko(e){return Q(e)&&de(e)==Ft}function Xp(e){return Q(e)&&de(e)==Zt}function Zp(e){return Q(e)&&de(e)==Kt}function sn(e,t,r,o,a){return e===t?!0:e==null||t==null||!Q(e)&&!Q(t)?e!==e&&t!==t:Qp(e,t,r,o,sn,a)}function Qp(e,t,r,o,a,p){var u=P(e),f=P(t),y=u?gn:ce(e),S=f?gn:ce(t);y=y==Ft?Je:y,S=S==Ft?Je:S;var C=y==Je,w=S==Je,E=y==S;if(E&&yt(e)){if(!yt(t))return!1;u=!0,C=!1}if(E&&!C)return p||(p=new ze),u||Gt(e)?ma(e,t,r,o,a,p):Iu(e,t,y,r,o,a,p);if(!(r&Ee)){var T=C&&K.call(e,"__wrapped__"),B=w&&K.call(t,"__wrapped__");if(T||B){var M=T?e.value():e,R=B?t.value():t;return p||(p=new ze),a(M,R,r,o,p)}}return E?(p||(p=new ze),Eu(e,t,r,o,a,p)):!1}function jp(e){return Q(e)&&ce(e)==Oe}function $r(e,t,r,o){var a=r.length,p=a,u=!o;if(e==null)return!p;for(e=V(e);a--;){var f=r[a];if(u&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++a<p;){f=r[a];var y=f[0],S=e[y],C=f[1];if(u&&f[2]){if(S===i&&!(y in e))return!1}else{var w=new ze;if(o)var E=o(S,C,y,e,t,w);if(!(E===i?sn(C,S,Ee|$e,o,w):E))return!1}}return!0}function Mo(e){if(!Z(e)||ku(e))return!1;var t=nt(e)?js:Gl;return t.test(Et(e))}function eu(e){return Q(e)&&de(e)==qt}function tu(e){return Q(e)&&ce(e)==Ne}function nu(e){return Q(e)&&ir(e.length)&&!!J[de(e)]}function Ho(e){return typeof e=="function"?e:e==null?ve:typeof e=="object"?P(e)?Uo(e[0],e[1]):No(e):ol(e)}function Yr(e){if(!cn(e))return op(e);var t=[];for(var r in V(e))K.call(e,r)&&r!="constructor"&&t.push(r);return t}function ru(e){if(!Z(e))return Nu(e);var t=cn(e),r=[];for(var o in e)o=="constructor"&&(t||!K.call(e,o))||r.push(o);return r}function Kr(e,t){return e<t}function Oo(e,t){var r=-1,o=ye(e)?v(e.length):[];return dt(e,function(a,p,u){o[++r]=t(a,p,u)}),o}function No(e){var t=li(e);return t.length==1&&t[0][2]?ba(t[0][0],t[0][1]):function(r){return r===e||$r(r,e,t)}}function Uo(e,t){return pi(e)&&va(t)?ba(qe(e),t):function(r){var o=bi(r,e);return o===i&&o===t?xi(r,e):sn(t,o,Ee|$e)}}function Wn(e,t,r,o,a){e!==t&&Ur(t,function(p,u){if(a||(a=new ze),Z(p))iu(e,t,u,r,Wn,o,a);else{var f=o?o(ci(e,u),p,u+"",e,t,a):i;f===i&&(f=p),Or(e,u,f)}},he)}function iu(e,t,r,o,a,p,u){var f=ci(e,r),y=ci(t,r),S=u.get(y);if(S){Or(e,r,S);return}var C=p?p(f,y,r+"",e,t,u):i,w=C===i;if(w){var E=P(y),T=!E&&yt(y),B=!E&&!T&&Gt(y);C=y,E||T||B?P(f)?C=f:j(f)?C=ge(f):T?(w=!1,C=Qo(y,!0)):B?(w=!1,C=jo(y,!0)):C=[]:fn(y)||At(y)?(C=f,At(f)?C=Ja(f):(!Z(f)||nt(f))&&(C=ha(y))):w=!1}w&&(u.set(y,C),a(C,y,o,p,u),u.delete(y)),Or(e,r,C)}function zo(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,tt(t,r)?e[t]:i}function Wo(e,t,r){t.length?t=X(t,function(p){return P(p)?function(u){return _t(u,p.length===1?p[0]:p)}:p}):t=[ve];var o=-1;t=X(t,Se(L()));var a=Oo(e,function(p,u,f){var y=X(t,function(S){return S(p)});return{criteria:y,index:++o,value:p}});return Bs(a,function(p,u){return hu(p,u,r)})}function ou(e,t){return Go(e,t,function(r,o){return xi(e,o)})}function Go(e,t,r){for(var o=-1,a=t.length,p={};++o<a;){var u=t[o],f=_t(e,u);r(f,u)&&pn(p,mt(u,e),f)}return p}function au(e){return function(t){return _t(t,e)}}function Vr(e,t,r,o){var a=o?Ls:Rt,p=-1,u=t.length,f=e;for(e===t&&(t=ge(t)),r&&(f=X(e,Se(r)));++p<u;)for(var y=0,S=t[p],C=r?r(S):S;(y=a(f,C,y,o))>-1;)f!==e&&Rn.call(f,y,1),Rn.call(e,y,1);return e}function $o(e,t){for(var r=e?t.length:0,o=r-1;r--;){var a=t[r];if(r==o||a!==p){var p=a;tt(a)?Rn.call(e,a,1):Zr(e,a)}}return e}function qr(e,t){return e+kn(_o()*(t-e+1))}function lu(e,t,r,o){for(var a=-1,p=re(Pn((t-e)/(r||1)),0),u=v(p);p--;)u[o?p:++a]=e,e+=r;return u}function Jr(e,t){var r="";if(!e||t<1||t>lt)return r;do t%2&&(r+=e),t=kn(t/2),t&&(e+=e);while(t);return r}function H(e,t){return di(xa(e,t,ve),e+"")}function su(e){return Ao($t(e))}function pu(e,t){var r=$t(e);return Qn(r,wt(t,0,r.length))}function pn(e,t,r,o){if(!Z(e))return e;t=mt(t,e);for(var a=-1,p=t.length,u=p-1,f=e;f!=null&&++a<p;){var y=qe(t[a]),S=r;if(y==="__proto__"||y==="constructor"||y==="prototype")return e;if(a!=u){var C=f[y];S=o?o(C,y,f):i,S===i&&(S=Z(C)?C:tt(t[a+1])?[]:{})}on(f,y,S),f=f[y]}return e}var Yo=Mn?function(e,t){return Mn.set(e,t),e}:ve,uu=Dn?function(e,t){return Dn(e,"toString",{configurable:!0,enumerable:!1,value:Ci(t),writable:!0})}:ve;function cu(e){return Qn($t(e))}function ke(e,t,r){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var p=v(a);++o<a;)p[o]=e[o+t];return p}function du(e,t){var r;return dt(e,function(o,a,p){return r=t(o,a,p),!r}),!!r}function Gn(e,t,r){var o=0,a=e==null?o:e.length;if(typeof t=="number"&&t===t&&a<=ml){for(;o<a;){var p=o+a>>>1,u=e[p];u!==null&&!we(u)&&(r?u<=t:u<t)?o=p+1:a=p}return a}return Xr(e,t,ve,r)}function Xr(e,t,r,o){var a=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var u=t!==t,f=t===null,y=we(t),S=t===i;a<p;){var C=kn((a+p)/2),w=r(e[C]),E=w!==i,T=w===null,B=w===w,M=we(w);if(u)var R=o||B;else S?R=B&&(o||E):f?R=B&&E&&(o||!T):y?R=B&&E&&!T&&(o||!M):T||M?R=!1:R=o?w<=t:w<t;R?a=C+1:p=C}return ue(p,fl)}function Ko(e,t){for(var r=-1,o=e.length,a=0,p=[];++r<o;){var u=e[r],f=t?t(u):u;if(!r||!We(f,y)){var y=f;p[a++]=u===0?0:u}}return p}function Vo(e){return typeof e=="number"?e:we(e)?mn:+e}function Ce(e){if(typeof e=="string")return e;if(P(e))return X(e,Ce)+"";if(we(e))return Io?Io.call(e):"";var t=e+"";return t=="0"&&1/e==-vt?"-0":t}function ft(e,t,r){var o=-1,a=Cn,p=e.length,u=!0,f=[],y=f;if(r)u=!1,a=Ir;else if(p>=h){var S=t?null:wu(e);if(S)return _n(S);u=!1,a=Qt,y=new Ct}else y=t?[]:f;e:for(;++o<p;){var C=e[o],w=t?t(C):C;if(C=r||C!==0?C:0,u&&w===w){for(var E=y.length;E--;)if(y[E]===w)continue e;t&&y.push(w),f.push(C)}else a(y,w,r)||(y!==f&&y.push(w),f.push(C))}return f}function Zr(e,t){return t=mt(t,e),e=Sa(e,t),e==null||delete e[qe(Me(t))]}function qo(e,t,r,o){return pn(e,t,r(_t(e,t)),o)}function $n(e,t,r,o){for(var a=e.length,p=o?a:-1;(o?p--:++p<a)&&t(e[p],p,e););return r?ke(e,o?0:p,o?p+1:a):ke(e,o?p+1:0,o?a:p)}function Jo(e,t){var r=e;return r instanceof N&&(r=r.value()),Er(t,function(o,a){return a.func.apply(a.thisArg,pt([o],a.args))},r)}function Qr(e,t,r){var o=e.length;if(o<2)return o?ft(e[0]):[];for(var a=-1,p=v(o);++a<o;)for(var u=e[a],f=-1;++f<o;)f!=a&&(p[a]=an(p[a]||u,e[f],t,r));return ft(le(p,1),t,r)}function Xo(e,t,r){for(var o=-1,a=e.length,p=t.length,u={};++o<a;){var f=o<p?t[o]:i;r(u,e[o],f)}return u}function jr(e){return j(e)?e:[]}function ei(e){return typeof e=="function"?e:ve}function mt(e,t){return P(e)?e:pi(e,t)?[e]:Ia(Y(e))}var fu=H;function gt(e,t,r){var o=e.length;return r=r===i?o:r,!t&&r>=o?e:ke(e,t,r)}var Zo=ep||function(e){return ae.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var r=e.length,o=bo?bo(r):new e.constructor(r);return e.copy(o),o}function ti(e){var t=new e.constructor(e.byteLength);return new Ln(t).set(new Ln(e)),t}function mu(e,t){var r=t?ti(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function gu(e){var t=new e.constructor(e.source,Pi.exec(e));return t.lastIndex=e.lastIndex,t}function yu(e){return rn?V(rn.call(e)):{}}function jo(e,t){var r=t?ti(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var r=e!==i,o=e===null,a=e===e,p=we(e),u=t!==i,f=t===null,y=t===t,S=we(t);if(!f&&!S&&!p&&e>t||p&&u&&y&&!f&&!S||o&&u&&y||!r&&y||!a)return 1;if(!o&&!p&&!S&&e<t||S&&r&&a&&!o&&!p||f&&r&&a||!u&&a||!y)return-1}return 0}function hu(e,t,r){for(var o=-1,a=e.criteria,p=t.criteria,u=a.length,f=r.length;++o<u;){var y=ea(a[o],p[o]);if(y){if(o>=f)return y;var S=r[o];return y*(S=="desc"?-1:1)}}return e.index-t.index}function ta(e,t,r,o){for(var a=-1,p=e.length,u=r.length,f=-1,y=t.length,S=re(p-u,0),C=v(y+S),w=!o;++f<y;)C[f]=t[f];for(;++a<u;)(w||a<p)&&(C[r[a]]=e[a]);for(;S--;)C[f++]=e[a++];return C}function na(e,t,r,o){for(var a=-1,p=e.length,u=-1,f=r.length,y=-1,S=t.length,C=re(p-f,0),w=v(C+S),E=!o;++a<C;)w[a]=e[a];for(var T=a;++y<S;)w[T+y]=t[y];for(;++u<f;)(E||a<p)&&(w[T+r[u]]=e[a++]);return w}function ge(e,t){var r=-1,o=e.length;for(t||(t=v(o));++r<o;)t[r]=e[r];return t}function Ve(e,t,r,o){var a=!r;r||(r={});for(var p=-1,u=t.length;++p<u;){var f=t[p],y=o?o(r[f],e[f],f,r,e):i;y===i&&(y=e[f]),a?Qe(r,f,y):on(r,f,y)}return r}function vu(e,t){return Ve(e,si(e),t)}function bu(e,t){return Ve(e,ga(e),t)}function Yn(e,t){return function(r,o){var a=P(r)?_s:zp,p=t?t():{};return a(r,e,L(o,2),p)}}function Ut(e){return H(function(t,r){var o=-1,a=r.length,p=a>1?r[a-1]:i,u=a>2?r[2]:i;for(p=e.length>3&&typeof p=="function"?(a--,p):i,u&&fe(r[0],r[1],u)&&(p=a<3?i:p,a=1),t=V(t);++o<a;){var f=r[o];f&&e(t,f,o,p)}return t})}function ra(e,t){return function(r,o){if(r==null)return r;if(!ye(r))return e(r,o);for(var a=r.length,p=t?a:-1,u=V(r);(t?p--:++p<a)&&o(u[p],p,u)!==!1;);return r}}function ia(e){return function(t,r,o){for(var a=-1,p=V(t),u=o(t),f=u.length;f--;){var y=u[e?f:++a];if(r(p[y],y,p)===!1)break}return t}}function xu(e,t,r){var o=t&ie,a=un(e);function p(){var u=this&&this!==ae&&this instanceof p?a:e;return u.apply(o?r:this,arguments)}return p}function oa(e){return function(t){t=Y(t);var r=Dt(t)?Ue(t):i,o=r?r[0]:t.charAt(0),a=r?gt(r,1).join(""):t.slice(1);return o[e]()+a}}function zt(e){return function(t){return Er(rl(nl(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 r=Nt(e.prototype),o=e.apply(r,t);return Z(o)?o:r}}function Su(e,t,r){var o=un(e);function a(){for(var p=arguments.length,u=v(p),f=p,y=Wt(a);f--;)u[f]=arguments[f];var S=p<3&&u[0]!==y&&u[p-1]!==y?[]:ut(u,y);if(p-=S.length,p<r)return ua(e,t,Kn,a.placeholder,i,u,S,i,i,r-p);var C=this&&this!==ae&&this instanceof a?o:e;return xe(C,this,u)}return a}function aa(e){return function(t,r,o){var a=V(t);if(!ye(t)){var p=L(r,3);t=oe(t),r=function(f){return p(a[f],f,a)}}var u=e(t,r,o);return u>-1?a[p?t[u]:u]:i}}function la(e){return et(function(t){var r=t.length,o=r,a=De.prototype.thru;for(e&&t.reverse();o--;){var p=t[o];if(typeof p!="function")throw new Re(g);if(a&&!u&&Xn(p)=="wrapper")var u=new De([],!0)}for(o=u?o:r;++o<r;){p=t[o];var f=Xn(p),y=f=="wrapper"?ai(p):i;y&&ui(y[0])&&y[1]==(Fe|se|pe|at)&&!y[4].length&&y[9]==1?u=u[Xn(y[0])].apply(u,y[3]):u=p.length==1&&ui(p)?u[f]():u.thru(p)}return function(){var S=arguments,C=S[0];if(u&&S.length==1&&P(C))return u.plant(C).value();for(var w=0,E=r?t[w].apply(this,S):C;++w<r;)E=t[w].call(this,E);return E}})}function Kn(e,t,r,o,a,p,u,f,y,S){var C=t&Fe,w=t&ie,E=t&be,T=t&(se|Ae),B=t&Tt,M=E?i:un(e);function R(){for(var O=arguments.length,z=v(O),_e=O;_e--;)z[_e]=arguments[_e];if(T)var me=Wt(R),Ie=Ds(z,me);if(o&&(z=ta(z,o,a,T)),p&&(z=na(z,p,u,T)),O-=Ie,T&&O<S){var ee=ut(z,me);return ua(e,t,Kn,R.placeholder,r,z,ee,f,y,S-O)}var Ge=w?r:this,it=E?Ge[e]:e;return O=z.length,f?z=zu(z,f):B&&O>1&&z.reverse(),C&&y<O&&(z.length=y),this&&this!==ae&&this instanceof R&&(it=M||un(it)),it.apply(Ge,z)}return R}function sa(e,t){return function(r,o){return Jp(r,e,t(o),{})}}function Vn(e,t){return function(r,o){var a;if(r===i&&o===i)return t;if(r!==i&&(a=r),o!==i){if(a===i)return o;typeof r=="string"||typeof o=="string"?(r=Ce(r),o=Ce(o)):(r=Vo(r),o=Vo(o)),a=e(r,o)}return a}}function ni(e){return et(function(t){return t=X(t,Se(L())),H(function(r){var o=this;return e(t,function(a){return xe(a,o,r)})})})}function qn(e,t){t=t===i?" ":Ce(t);var r=t.length;if(r<2)return r?Jr(t,e):t;var o=Jr(t,Pn(e/Pt(t)));return Dt(t)?gt(Ue(o),0,e).join(""):o.slice(0,e)}function Cu(e,t,r,o){var a=t&ie,p=un(e);function u(){for(var f=-1,y=arguments.length,S=-1,C=o.length,w=v(C+y),E=this&&this!==ae&&this instanceof u?p:e;++S<C;)w[S]=o[S];for(;y--;)w[S++]=arguments[++f];return xe(E,a?r:this,w)}return u}function pa(e){return function(t,r,o){return o&&typeof o!="number"&&fe(t,r,o)&&(r=o=i),t=rt(t),r===i?(r=t,t=0):r=rt(r),o=o===i?t<r?1:-1:rt(o),lu(t,r,o,e)}}function Jn(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=He(t),r=He(r)),e(t,r)}}function ua(e,t,r,o,a,p,u,f,y,S){var C=t&se,w=C?u:i,E=C?i:u,T=C?p:i,B=C?i:p;t|=C?pe:Te,t&=~(C?Te:pe),t&ot||(t&=~(ie|be));var M=[e,t,a,T,w,B,E,f,y,S],R=r.apply(i,M);return ui(e)&&Ca(R,M),R.placeholder=o,wa(R,e,t)}function ri(e){var t=ne[e];return function(r,o){if(r=He(r),o=o==null?0:ue(k(o),292),o&&wo(r)){var a=(Y(r)+"e").split("e"),p=t(a[0]+"e"+(+a[1]+o));return a=(Y(p)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(r)}}var wu=Ht&&1/_n(new Ht([,-0]))[1]==vt?function(e){return new Ht(e)}:Ii;function ca(e){return function(t){var r=ce(t);return r==Oe?Dr(t):r==Ne?Us(t):Rs(t,e(t))}}function je(e,t,r,o,a,p,u,f){var y=t&be;if(!y&&typeof e!="function")throw new Re(g);var S=o?o.length:0;if(S||(t&=~(pe|Te),o=a=i),u=u===i?u:re(k(u),0),f=f===i?f:k(f),S-=a?a.length:0,t&Te){var C=o,w=a;o=a=i}var E=y?i:ai(e),T=[e,t,r,o,a,C,w,p,u,f];if(E&&Ou(T,E),e=T[0],t=T[1],r=T[2],o=T[3],a=T[4],f=T[9]=T[9]===i?y?0:e.length:re(T[9]-S,0),!f&&t&(se|Ae)&&(t&=~(se|Ae)),!t||t==ie)var B=xu(e,t,r);else t==se||t==Ae?B=Su(e,t,f):(t==pe||t==(ie|pe))&&!a.length?B=Cu(e,t,r,o):B=Kn.apply(i,T);var M=E?Yo:Ca;return wa(M(B,T),e,t)}function da(e,t,r,o){return e===i||We(e,Mt[r])&&!K.call(o,r)?t:e}function fa(e,t,r,o,a,p){return Z(e)&&Z(t)&&(p.set(t,e),Wn(e,t,i,fa,p),p.delete(t)),e}function _u(e){return fn(e)?i:e}function ma(e,t,r,o,a,p){var u=r&Ee,f=e.length,y=t.length;if(f!=y&&!(u&&y>f))return!1;var S=p.get(e),C=p.get(t);if(S&&C)return S==t&&C==e;var w=-1,E=!0,T=r&$e?new Ct:i;for(p.set(e,t),p.set(t,e);++w<f;){var B=e[w],M=t[w];if(o)var R=u?o(M,B,w,t,e,p):o(B,M,w,e,t,p);if(R!==i){if(R)continue;E=!1;break}if(T){if(!Ar(t,function(O,z){if(!Qt(T,z)&&(B===O||a(B,O,r,o,p)))return T.push(z)})){E=!1;break}}else if(!(B===M||a(B,M,r,o,p))){E=!1;break}}return p.delete(e),p.delete(t),E}function Iu(e,t,r,o,a,p,u){switch(r){case Lt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zt:return!(e.byteLength!=t.byteLength||!p(new Ln(e),new Ln(t)));case Yt:case Kt:case Vt:return We(+e,+t);case yn:return e.name==t.name&&e.message==t.message;case qt:case Jt:return e==t+"";case Oe:var f=Dr;case Ne:var y=o&Ee;if(f||(f=_n),e.size!=t.size&&!y)return!1;var S=u.get(e);if(S)return S==t;o|=$e,u.set(e,t);var C=ma(f(e),f(t),o,a,p,u);return u.delete(e),C;case vn:if(rn)return rn.call(e)==rn.call(t)}return!1}function Eu(e,t,r,o,a,p){var u=r&Ee,f=ii(e),y=f.length,S=ii(t),C=S.length;if(y!=C&&!u)return!1;for(var w=y;w--;){var E=f[w];if(!(u?E in t:K.call(t,E)))return!1}var T=p.get(e),B=p.get(t);if(T&&B)return T==t&&B==e;var M=!0;p.set(e,t),p.set(t,e);for(var R=u;++w<y;){E=f[w];var O=e[E],z=t[E];if(o)var _e=u?o(z,O,E,t,e,p):o(O,z,E,e,t,p);if(!(_e===i?O===z||a(O,z,r,o,p):_e)){M=!1;break}R||(R=E=="constructor")}if(M&&!R){var me=e.constructor,Ie=t.constructor;me!=Ie&&"constructor"in e&&"constructor"in t&&!(typeof me=="function"&&me instanceof me&&typeof Ie=="function"&&Ie instanceof Ie)&&(M=!1)}return p.delete(e),p.delete(t),M}function et(e){return di(xa(e,i,Fa),e+"")}function ii(e){return Po(e,oe,si)}function oi(e){return Po(e,he,ga)}var ai=Mn?function(e){return Mn.get(e)}:Ii;function Xn(e){for(var t=e.name+"",r=Ot[t],o=K.call(Ot,t)?r.length:0;o--;){var a=r[o],p=a.func;if(p==null||p==e)return a.name}return t}function Wt(e){var t=K.call(l,"placeholder")?l:e;return t.placeholder}function L(){var e=l.iteratee||wi;return e=e===wi?Ho:e,arguments.length?e(arguments[0],arguments[1]):e}function Zn(e,t){var r=e.__data__;return Pu(t)?r[typeof t=="string"?"string":"hash"]:r.map}function li(e){for(var t=oe(e),r=t.length;r--;){var o=t[r],a=e[o];t[r]=[o,a,va(a)]}return t}function It(e,t){var r=Hs(e,t);return Mo(r)?r:i}function Au(e){var t=K.call(e,xt),r=e[xt];try{e[xt]=i;var o=!0}catch{}var a=Tn.call(e);return o&&(t?e[xt]=r:delete e[xt]),a}var si=kr?function(e){return e==null?[]:(e=V(e),st(kr(e),function(t){return So.call(e,t)}))}:Ei,ga=kr?function(e){for(var t=[];e;)pt(t,si(e)),e=Bn(e);return t}:Ei,ce=de;(Mr&&ce(new Mr(new ArrayBuffer(1)))!=Lt||en&&ce(new en)!=Oe||Hr&&ce(Hr.resolve())!=Li||Ht&&ce(new Ht)!=Ne||tn&&ce(new tn)!=Xt)&&(ce=function(e){var t=de(e),r=t==Je?e.constructor:i,o=r?Et(r):"";if(o)switch(o){case pp:return Lt;case up:return Oe;case cp:return Li;case dp:return Ne;case fp:return Xt}return t});function Tu(e,t,r){for(var o=-1,a=r.length;++o<a;){var p=r[o],u=p.size;switch(p.type){case"drop":e+=u;break;case"dropRight":t-=u;break;case"take":t=ue(t,e+u);break;case"takeRight":e=re(e,t-u);break}}return{start:e,end:t}}function Fu(e){var t=e.match(kl);return t?t[1].split(Ml):[]}function ya(e,t,r){t=mt(t,e);for(var o=-1,a=t.length,p=!1;++o<a;){var u=qe(t[o]);if(!(p=e!=null&&r(e,u)))break;e=e[u]}return p||++o!=a?p:(a=e==null?0:e.length,!!a&&ir(a)&&tt(u,a)&&(P(e)||At(e)))}function Lu(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&K.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function ha(e){return typeof e.constructor=="function"&&!cn(e)?Nt(Bn(e)):{}}function Bu(e,t,r){var o=e.constructor;switch(t){case Zt:return ti(e);case Yt:case Kt:return new o(+e);case Lt:return mu(e,r);case lr:case sr:case pr:case ur:case cr:case dr:case fr:case mr:case gr:return jo(e,r);case Oe:return new o;case Vt:case Jt:return new o(e);case qt:return gu(e);case Ne:return new o;case vn:return yu(e)}}function Ru(e,t){var r=t.length;if(!r)return e;var o=r-1;return t[o]=(r>1?"& ":"")+t[o],t=t.join(r>2?", ":" "),e.replace(Pl,`{
|
|
9
9
|
/* [wrapped with `+t+`] */
|
|
10
|
-
`)}function Du(e){return P(e)||At(e)||!!(Co&&e&&e[Co])}function tt(e,t){var r=typeof e;return t=t==null?lt:t,!!t&&(r=="number"||r!="symbol"&&Yl.test(e))&&e>-1&&e%1==0&&e<t}function me(e,t,r){if(!Z(r))return!1;var o=typeof t;return(o=="number"?he(r)&&tt(t,r.length):o=="string"&&t in r)?We(r[t],e):!1}function pi(e,t){if(P(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||_e(e)?!0:Ll.test(e)||!Fl.test(e)||t!=null&&e in V(t)}function Pu(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ui(e){var t=Xn(e),r=l[t];if(typeof r!="function"||!(t in U.prototype))return!1;if(e===r)return!0;var o=ai(r);return!!o&&e===o[0]}function ku(e){return!!vo&&vo in e}var Mu=En?nt:Ai;function cn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Mt;return e===r}function va(e){return e===e&&!Z(e)}function xa(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==i||e in V(r))}}function Hu(e){var t=nr(e,function(o){return r.size===F&&r.clear(),o}),r=t.cache;return t}function Ou(e,t){var r=e[1],o=t[1],a=r|o,p=a<(ie|be|Fe),u=o==Fe&&r==se||o==Fe&&r==at&&e[7].length<=t[8]||o==(Fe|at)&&t[7].length<=t[8]&&r==se;if(!(p||u))return e;o&ie&&(e[2]=t[2],a|=r&ie?0:ot);var f=t[3];if(f){var y=e[3];e[3]=y?ta(y,f,t[4]):f,e[4]=y?ut(e[3],z):t[4]}return f=t[5],f&&(y=e[5],e[5]=y?na(y,f,t[6]):f,e[6]=y?ut(e[5],z):t[6]),f=t[7],f&&(e[7]=f),o&Fe&&(e[8]=e[8]==null?t[8]:ue(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Nu(e){var t=[];if(e!=null)for(var r in V(e))t.push(r);return t}function Uu(e){return Tn.call(e)}function ba(e,t,r){return t=re(t===i?e.length-1:t,0),function(){for(var o=arguments,a=-1,p=re(o.length-t,0),u=v(p);++a<p;)u[a]=o[t+a];a=-1;for(var f=v(t+1);++a<t;)f[a]=o[a];return f[t]=r(u),Se(e,this,f)}}function Sa(e,t){return t.length<2?e:_t(e,ke(t,0,-1))}function zu(e,t){for(var r=e.length,o=ue(t.length,r),a=ye(e);o--;){var p=t[o];e[o]=tt(p,r)?a[p]:i}return e}function ci(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ca=_a(Yo),dn=np||function(e,t){return ae.setTimeout(e,t)},di=_a(uu);function wa(e,t,r){var o=t+"";return di(e,Ru(o,Wu(Fu(o),r)))}function _a(e){var t=0,r=0;return function(){var o=ap(),a=pl-(o-r);if(r=o,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Qn(e,t){var r=-1,o=e.length,a=o-1;for(t=t===i?o:t;++r<t;){var p=qr(r,a),u=e[p];e[p]=e[r],e[r]=u}return e.length=t,e}var Ia=Hu(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bl,function(r,o,a,p){t.push(a?p.replace(Nl,"$1"):o||r)}),t});function qe(e){if(typeof e=="string"||_e(e))return e;var t=e+"";return t=="0"&&1/e==-vt?"-0":t}function Et(e){if(e!=null){try{return An.call(e)}catch{}try{return e+""}catch{}}return""}function Wu(e,t){return Be(gl,function(r){var o="_."+r[0];t&r[1]&&!Cn(e,o)&&e.push(o)}),e.sort()}function Ea(e){if(e instanceof U)return e.clone();var t=new De(e.__wrapped__,e.__chain__);return t.__actions__=ye(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Gu(e,t,r){(r?me(e,t,r):t===i)?t=1:t=re(k(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var a=0,p=0,u=v(Pn(o/t));a<o;)u[p++]=ke(e,a,a+=t);return u}function $u(e){for(var t=-1,r=e==null?0:e.length,o=0,a=[];++t<r;){var p=e[t];p&&(a[o++]=p)}return a}function Yu(){var e=arguments.length;if(!e)return[];for(var t=v(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return pt(P(r)?ye(r):[r],le(t,1))}var Ku=O(function(e,t){return ee(e)?an(e,le(t,1,ee,!0)):[]}),Vu=O(function(e,t){var r=Me(t);return ee(r)&&(r=i),ee(e)?an(e,le(t,1,ee,!0),L(r,2)):[]}),qu=O(function(e,t){var r=Me(t);return ee(r)&&(r=i),ee(e)?an(e,le(t,1,ee,!0),i,r):[]});function Ju(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:k(t),ke(e,t<0?0:t,o)):[]}function Xu(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:k(t),t=o-t,ke(e,0,t<0?0:t)):[]}function Zu(e,t){return e&&e.length?$n(e,L(t,3),!0,!0):[]}function Qu(e,t){return e&&e.length?$n(e,L(t,3),!0):[]}function ju(e,t,r,o){var a=e==null?0:e.length;return a?(r&&typeof r!="number"&&me(e,t,r)&&(r=0,o=a),Yp(e,t,r,o)):[]}function Aa(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=r==null?0:k(r);return a<0&&(a=re(o+a,0)),wn(e,L(t,3),a)}function Ta(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=o-1;return r!==i&&(a=k(r),a=r<0?re(o+a,0):ue(a,o-1)),wn(e,L(t,3),a,!0)}function Fa(e){var t=e==null?0:e.length;return t?le(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?le(e,vt):[]}function tc(e,t){var r=e==null?0:e.length;return r?(t=t===i?1:k(t),le(e,t)):[]}function nc(e){for(var t=-1,r=e==null?0:e.length,o={};++t<r;){var a=e[t];o[a[0]]=a[1]}return o}function La(e){return e&&e.length?e[0]:i}function rc(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=r==null?0:k(r);return a<0&&(a=re(o+a,0)),Rt(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?ke(e,0,-1):[]}var oc=O(function(e){var t=X(e,jr);return t.length&&t[0]===e[0]?Gr(t):[]}),ac=O(function(e){var t=Me(e),r=X(e,jr);return t===Me(r)?t=i:r.pop(),r.length&&r[0]===e[0]?Gr(r,L(t,2)):[]}),lc=O(function(e){var t=Me(e),r=X(e,jr);return t=typeof t=="function"?t:i,t&&r.pop(),r.length&&r[0]===e[0]?Gr(r,i,t):[]});function sc(e,t){return e==null?"":ip.call(e,t)}function Me(e){var t=e==null?0:e.length;return t?e[t-1]:i}function pc(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=o;return r!==i&&(a=k(r),a=a<0?re(o+a,0):ue(a,o-1)),t===t?Ws(e,t,a):wn(e,po,a,!0)}function uc(e,t){return e&&e.length?zo(e,k(t)):i}var cc=O(Ba);function Ba(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}function dc(e,t,r){return e&&e.length&&t&&t.length?Vr(e,t,L(r,2)):e}function fc(e,t,r){return e&&e.length&&t&&t.length?Vr(e,t,i,r):e}var mc=et(function(e,t){var r=e==null?0:e.length,o=Nr(e,t);return $o(e,X(t,function(a){return tt(a,r)?+a:a}).sort(ea)),o});function gc(e,t){var r=[];if(!(e&&e.length))return r;var o=-1,a=[],p=e.length;for(t=L(t,3);++o<p;){var u=e[o];t(u,o,e)&&(r.push(u),a.push(o))}return $o(e,a),r}function fi(e){return e==null?e:sp.call(e)}function yc(e,t,r){var o=e==null?0:e.length;return o?(r&&typeof r!="number"&&me(e,t,r)?(t=0,r=o):(t=t==null?0:k(t),r=r===i?o:k(r)),ke(e,t,r)):[]}function hc(e,t){return Gn(e,t)}function vc(e,t,r){return Xr(e,t,L(r,2))}function xc(e,t){var r=e==null?0:e.length;if(r){var o=Gn(e,t);if(o<r&&We(e[o],t))return o}return-1}function bc(e,t){return Gn(e,t,!0)}function Sc(e,t,r){return Xr(e,t,L(r,2),!0)}function Cc(e,t){var r=e==null?0:e.length;if(r){var o=Gn(e,t,!0)-1;if(We(e[o],t))return o}return-1}function wc(e){return e&&e.length?Ko(e):[]}function _c(e,t){return e&&e.length?Ko(e,L(t,2)):[]}function Ic(e){var t=e==null?0:e.length;return t?ke(e,1,t):[]}function Ec(e,t,r){return e&&e.length?(t=r||t===i?1:k(t),ke(e,0,t<0?0:t)):[]}function Ac(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:k(t),t=o-t,ke(e,t<0?0:t,o)):[]}function Tc(e,t){return e&&e.length?$n(e,L(t,3),!1,!0):[]}function Fc(e,t){return e&&e.length?$n(e,L(t,3)):[]}var Lc=O(function(e){return ft(le(e,1,ee,!0))}),Bc=O(function(e){var t=Me(e);return ee(t)&&(t=i),ft(le(e,1,ee,!0),L(t,2))}),Rc=O(function(e){var t=Me(e);return t=typeof t=="function"?t:i,ft(le(e,1,ee,!0),i,t)});function Dc(e){return e&&e.length?ft(e):[]}function Pc(e,t){return e&&e.length?ft(e,L(t,2)):[]}function kc(e,t){return t=typeof t=="function"?t:i,e&&e.length?ft(e,i,t):[]}function mi(e){if(!(e&&e.length))return[];var t=0;return e=st(e,function(r){if(ee(r))return t=re(r.length,t),!0}),Br(t,function(r){return X(e,Tr(r))})}function Ra(e,t){if(!(e&&e.length))return[];var r=mi(e);return t==null?r:X(r,function(o){return Se(t,i,o)})}var Mc=O(function(e,t){return ee(e)?an(e,t):[]}),Hc=O(function(e){return Qr(st(e,ee))}),Oc=O(function(e){var t=Me(e);return ee(t)&&(t=i),Qr(st(e,ee),L(t,2))}),Nc=O(function(e){var t=Me(e);return t=typeof t=="function"?t:i,Qr(st(e,ee),i,t)}),Uc=O(mi);function zc(e,t){return Xo(e||[],t||[],on)}function Wc(e,t){return Xo(e||[],t||[],pn)}var Gc=O(function(e){var t=e.length,r=t>1?e[t-1]:i;return r=typeof r=="function"?(e.pop(),r):i,Ra(e,r)});function Da(e){var t=l(e);return t.__chain__=!0,t}function $c(e,t){return t(e),e}function jn(e,t){return t(e)}var Yc=et(function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,a=function(p){return Nr(p,e)};return t>1||this.__actions__.length||!(o instanceof U)||!tt(r)?this.thru(a):(o=o.slice(r,+r+(t?1:0)),o.__actions__.push({func:jn,args:[a],thisArg:i}),new De(o,this.__chain__).thru(function(p){return t&&!p.length&&p.push(i),p}))});function Kc(){return Da(this)}function Vc(){return new De(this.value(),this.__chain__)}function qc(){this.__values__===i&&(this.__values__=Va(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Xc(e){for(var t,r=this;r instanceof On;){var o=Ea(r);o.__index__=0,o.__values__=i,t?a.__wrapped__=o:t=o;var a=o;r=r.__wrapped__}return a.__wrapped__=e,t}function Zc(){var e=this.__wrapped__;if(e instanceof U){var t=e;return this.__actions__.length&&(t=new U(this)),t=t.reverse(),t.__actions__.push({func:jn,args:[fi],thisArg:i}),new De(t,this.__chain__)}return this.thru(fi)}function Qc(){return Jo(this.__wrapped__,this.__actions__)}var jc=Yn(function(e,t,r){K.call(e,r)?++e[r]:Qe(e,r,1)});function ed(e,t,r){var o=P(e)?lo:$p;return r&&me(e,t,r)&&(t=i),o(e,L(t,3))}function td(e,t){var r=P(e)?st:Ro;return r(e,L(t,3))}var nd=aa(Aa),rd=aa(Ta);function id(e,t){return le(er(e,t),1)}function od(e,t){return le(er(e,t),vt)}function ad(e,t,r){return r=r===i?1:k(r),le(er(e,t),r)}function Pa(e,t){var r=P(e)?Be:dt;return r(e,L(t,3))}function ka(e,t){var r=P(e)?Is:Bo;return r(e,L(t,3))}var ld=Yn(function(e,t,r){K.call(e,r)?e[r].push(t):Qe(e,r,[t])});function sd(e,t,r,o){e=he(e)?e:$t(e),r=r&&!o?k(r):0;var a=e.length;return r<0&&(r=re(a+r,0)),or(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&Rt(e,t,r)>-1}var pd=O(function(e,t,r){var o=-1,a=typeof t=="function",p=he(e)?v(e.length):[];return dt(e,function(u){p[++o]=a?Se(t,u,r):ln(u,t,r)}),p}),ud=Yn(function(e,t,r){Qe(e,r,t)});function er(e,t){var r=P(e)?X:Oo;return r(e,L(t,3))}function cd(e,t,r,o){return e==null?[]:(P(t)||(t=t==null?[]:[t]),r=o?i:r,P(r)||(r=r==null?[]:[r]),Wo(e,t,r))}var dd=Yn(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function fd(e,t,r){var o=P(e)?Er:co,a=arguments.length<3;return o(e,L(t,4),r,a,dt)}function md(e,t,r){var o=P(e)?Es:co,a=arguments.length<3;return o(e,L(t,4),r,a,Bo)}function gd(e,t){var r=P(e)?st:Ro;return r(e,rr(L(t,3)))}function yd(e){var t=P(e)?Ao:su;return t(e)}function hd(e,t,r){(r?me(e,t,r):t===i)?t=1:t=k(t);var o=P(e)?Np:pu;return o(e,t)}function vd(e){var t=P(e)?Up:cu;return t(e)}function xd(e){if(e==null)return 0;if(he(e))return or(e)?Pt(e):e.length;var t=ce(e);return t==Oe||t==Ne?e.size:Yr(e).length}function bd(e,t,r){var o=P(e)?Ar:du;return r&&me(e,t,r)&&(t=i),o(e,L(t,3))}var Sd=O(function(e,t){if(e==null)return[];var r=t.length;return r>1&&me(e,t[0],t[1])?t=[]:r>2&&me(t[0],t[1],t[2])&&(t=[t[0]]),Wo(e,le(t,1),[])}),tr=tp||function(){return ae.Date.now()};function Cd(e,t){if(typeof t!="function")throw new Re(g);return e=k(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ma(e,t,r){return t=r?i:t,t=e&&t==null?e.length:t,je(e,Fe,i,i,i,i,t)}function Ha(e,t){var r;if(typeof t!="function")throw new Re(g);return e=k(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var gi=O(function(e,t,r){var o=ie;if(r.length){var a=ut(r,Wt(gi));o|=pe}return je(e,o,t,r,a)}),Oa=O(function(e,t,r){var o=ie|be;if(r.length){var a=ut(r,Wt(Oa));o|=pe}return je(t,o,e,r,a)});function Na(e,t,r){t=r?i:t;var o=je(e,se,i,i,i,i,i,t);return o.placeholder=Na.placeholder,o}function Ua(e,t,r){t=r?i:t;var o=je(e,Ae,i,i,i,i,i,t);return o.placeholder=Ua.placeholder,o}function za(e,t,r){var o,a,p,u,f,y,S=0,C=!1,w=!1,E=!0;if(typeof e!="function")throw new Re(g);t=He(t)||0,Z(r)&&(C=!!r.leading,w="maxWait"in r,p=w?re(He(r.maxWait)||0,t):p,E="trailing"in r?!!r.trailing:E);function T(te){var Ge=o,it=a;return o=a=i,S=te,u=e.apply(it,Ge),u}function B(te){return S=te,f=dn(N,t),C?T(te):u}function M(te){var Ge=te-y,it=te-S,al=t-Ge;return w?ue(al,p-it):al}function R(te){var Ge=te-y,it=te-S;return y===i||Ge>=t||Ge<0||w&&it>=p}function N(){var te=tr();if(R(te))return W(te);f=dn(N,M(te))}function W(te){return f=i,E&&o?T(te):(o=a=i,u)}function Ie(){f!==i&&Zo(f),S=0,o=y=a=f=i}function ge(){return f===i?u:W(tr())}function Ee(){var te=tr(),Ge=R(te);if(o=arguments,a=this,y=te,Ge){if(f===i)return B(y);if(w)return Zo(f),f=dn(N,t),T(y)}return f===i&&(f=dn(N,t)),u}return Ee.cancel=Ie,Ee.flush=ge,Ee}var wd=O(function(e,t){return Lo(e,1,t)}),_d=O(function(e,t,r){return Lo(e,He(t)||0,r)});function Id(e){return je(e,Tt)}function nr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Re(g);var r=function(){var o=arguments,a=t?t.apply(this,o):o[0],p=r.cache;if(p.has(a))return p.get(a);var u=e.apply(this,o);return r.cache=p.set(a,u)||p,u};return r.cache=new(nr.Cache||Ze),r}nr.Cache=Ze;function rr(e){if(typeof e!="function")throw new Re(g);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 Ed(e){return Ha(2,e)}var Ad=fu(function(e,t){t=t.length==1&&P(t[0])?X(t[0],Ce(L())):X(le(t,1),Ce(L()));var r=t.length;return O(function(o){for(var a=-1,p=ue(o.length,r);++a<p;)o[a]=t[a].call(this,o[a]);return Se(e,this,o)})}),yi=O(function(e,t){var r=ut(t,Wt(yi));return je(e,pe,i,t,r)}),Wa=O(function(e,t){var r=ut(t,Wt(Wa));return je(e,Te,i,t,r)}),Td=et(function(e,t){return je(e,at,i,i,i,t)});function Fd(e,t){if(typeof e!="function")throw new Re(g);return t=t===i?t:k(t),O(e,t)}function Ld(e,t){if(typeof e!="function")throw new Re(g);return t=t==null?0:re(k(t),0),O(function(r){var o=r[t],a=gt(r,0,t);return o&&pt(a,o),Se(e,this,a)})}function Bd(e,t,r){var o=!0,a=!0;if(typeof e!="function")throw new Re(g);return Z(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),za(e,t,{leading:o,maxWait:t,trailing:a})}function Rd(e){return Ma(e,1)}function Dd(e,t){return yi(ei(t),e)}function Pd(){if(!arguments.length)return[];var e=arguments[0];return P(e)?e:[e]}function kd(e){return Pe(e,G)}function Md(e,t){return t=typeof t=="function"?t:i,Pe(e,G,t)}function Hd(e){return Pe(e,H|G)}function Od(e,t){return t=typeof t=="function"?t:i,Pe(e,H|G,t)}function Nd(e,t){return t==null||Fo(e,t,oe(t))}function We(e,t){return e===t||e!==e&&t!==t}var Ud=Jn(Wr),zd=Jn(function(e,t){return e>=t}),At=ko(function(){return arguments}())?ko:function(e){return j(e)&&K.call(e,"callee")&&!So.call(e,"callee")},P=v.isArray,Wd=to?Ce(to):Xp;function he(e){return e!=null&&ir(e.length)&&!nt(e)}function ee(e){return j(e)&&he(e)}function Gd(e){return e===!0||e===!1||j(e)&&fe(e)==Yt}var yt=rp||Ai,$d=no?Ce(no):Zp;function Yd(e){return j(e)&&e.nodeType===1&&!fn(e)}function Kd(e){if(e==null)return!0;if(he(e)&&(P(e)||typeof e=="string"||typeof e.splice=="function"||yt(e)||Gt(e)||At(e)))return!e.length;var t=ce(e);if(t==Oe||t==Ne)return!e.size;if(cn(e))return!Yr(e).length;for(var r in e)if(K.call(e,r))return!1;return!0}function Vd(e,t){return sn(e,t)}function qd(e,t,r){r=typeof r=="function"?r:i;var o=r?r(e,t):i;return o===i?sn(e,t,i,r):!!o}function hi(e){if(!j(e))return!1;var t=fe(e);return t==yn||t==hl||typeof e.message=="string"&&typeof e.name=="string"&&!fn(e)}function Jd(e){return typeof e=="number"&&wo(e)}function nt(e){if(!Z(e))return!1;var t=fe(e);return t==hn||t==Fi||t==yl||t==xl}function Ga(e){return typeof e=="number"&&e==k(e)}function ir(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lt}function Z(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function j(e){return e!=null&&typeof e=="object"}var $a=ro?Ce(ro):jp;function Xd(e,t){return e===t||$r(e,t,li(t))}function Zd(e,t,r){return r=typeof r=="function"?r:i,$r(e,t,li(t),r)}function Qd(e){return Ya(e)&&e!=+e}function jd(e){if(Mu(e))throw new D(c);return Mo(e)}function ef(e){return e===null}function tf(e){return e==null}function Ya(e){return typeof e=="number"||j(e)&&fe(e)==Vt}function fn(e){if(!j(e)||fe(e)!=Je)return!1;var t=Bn(e);if(t===null)return!0;var r=K.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&An.call(r)==Zs}var vi=io?Ce(io):eu;function nf(e){return Ga(e)&&e>=-lt&&e<=lt}var Ka=oo?Ce(oo):tu;function or(e){return typeof e=="string"||!P(e)&&j(e)&&fe(e)==Jt}function _e(e){return typeof e=="symbol"||j(e)&&fe(e)==vn}var Gt=ao?Ce(ao):nu;function rf(e){return e===i}function of(e){return j(e)&&ce(e)==Xt}function af(e){return j(e)&&fe(e)==Sl}var lf=Jn(Kr),sf=Jn(function(e,t){return e<=t});function Va(e){if(!e)return[];if(he(e))return or(e)?Ue(e):ye(e);if(jt&&e[jt])return Ns(e[jt]());var t=ce(e),r=t==Oe?Dr:t==Ne?_n:$t;return r(e)}function rt(e){if(!e)return e===0?e:0;if(e=He(e),e===vt||e===-vt){var t=e<0?-1:1;return t*dl}return e===e?e:0}function k(e){var t=rt(e),r=t%1;return t===t?r?t-r:t:0}function qa(e){return e?wt(k(e),0,Ye):0}function He(e){if(typeof e=="number")return e;if(_e(e))return mn;if(Z(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Z(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fo(e);var r=Wl.test(e);return r||$l.test(e)?Cs(e.slice(2),r?2:8):zl.test(e)?mn:+e}function Ja(e){return Ve(e,ve(e))}function pf(e){return e?wt(k(e),-lt,lt):e===0?e:0}function Y(e){return e==null?"":we(e)}var uf=Ut(function(e,t){if(cn(t)||he(t)){Ve(t,oe(t),e);return}for(var r in t)K.call(t,r)&&on(e,r,t[r])}),Xa=Ut(function(e,t){Ve(t,ve(t),e)}),ar=Ut(function(e,t,r,o){Ve(t,ve(t),e,o)}),cf=Ut(function(e,t,r,o){Ve(t,oe(t),e,o)}),df=et(Nr);function ff(e,t){var r=Nt(e);return t==null?r:To(r,t)}var mf=O(function(e,t){e=V(e);var r=-1,o=t.length,a=o>2?t[2]:i;for(a&&me(t[0],t[1],a)&&(o=1);++r<o;)for(var p=t[r],u=ve(p),f=-1,y=u.length;++f<y;){var S=u[f],C=e[S];(C===i||We(C,Mt[S])&&!K.call(e,S))&&(e[S]=p[S])}return e}),gf=O(function(e){return e.push(i,fa),Se(Za,i,e)});function yf(e,t){return so(e,L(t,3),Ke)}function hf(e,t){return so(e,L(t,3),zr)}function vf(e,t){return e==null?e:Ur(e,L(t,3),ve)}function xf(e,t){return e==null?e:Do(e,L(t,3),ve)}function bf(e,t){return e&&Ke(e,L(t,3))}function Sf(e,t){return e&&zr(e,L(t,3))}function Cf(e){return e==null?[]:zn(e,oe(e))}function wf(e){return e==null?[]:zn(e,ve(e))}function xi(e,t,r){var o=e==null?i:_t(e,t);return o===i?r:o}function _f(e,t){return e!=null&&ya(e,t,Kp)}function bi(e,t){return e!=null&&ya(e,t,Vp)}var If=sa(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Tn.call(t)),e[t]=r},Ci(xe)),Ef=sa(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Tn.call(t)),K.call(e,t)?e[t].push(r):e[t]=[r]},L),Af=O(ln);function oe(e){return he(e)?Eo(e):Yr(e)}function ve(e){return he(e)?Eo(e,!0):ru(e)}function Tf(e,t){var r={};return t=L(t,3),Ke(e,function(o,a,p){Qe(r,t(o,a,p),o)}),r}function Ff(e,t){var r={};return t=L(t,3),Ke(e,function(o,a,p){Qe(r,a,t(o,a,p))}),r}var Lf=Ut(function(e,t,r){Wn(e,t,r)}),Za=Ut(function(e,t,r,o){Wn(e,t,r,o)}),Bf=et(function(e,t){var r={};if(e==null)return r;var o=!1;t=X(t,function(p){return p=mt(p,e),o||(o=p.length>1),p}),Ve(e,oi(e),r),o&&(r=Pe(r,H|Q|G,_u));for(var a=t.length;a--;)Zr(r,t[a]);return r});function Rf(e,t){return Qa(e,rr(L(t)))}var Df=et(function(e,t){return e==null?{}:ou(e,t)});function Qa(e,t){if(e==null)return{};var r=X(oi(e),function(o){return[o]});return t=L(t),Go(e,r,function(o,a){return t(o,a[0])})}function Pf(e,t,r){t=mt(t,e);var o=-1,a=t.length;for(a||(a=1,e=i);++o<a;){var p=e==null?i:e[qe(t[o])];p===i&&(o=a,p=r),e=nt(p)?p.call(e):p}return e}function kf(e,t,r){return e==null?e:pn(e,t,r)}function Mf(e,t,r,o){return o=typeof o=="function"?o:i,e==null?e:pn(e,t,r,o)}var ja=ca(oe),el=ca(ve);function Hf(e,t,r){var o=P(e),a=o||yt(e)||Gt(e);if(t=L(t,4),r==null){var p=e&&e.constructor;a?r=o?new p:[]:Z(e)?r=nt(p)?Nt(Bn(e)):{}:r={}}return(a?Be:Ke)(e,function(u,f,y){return t(r,u,f,y)}),r}function Of(e,t){return e==null?!0:Zr(e,t)}function Nf(e,t,r){return e==null?e:qo(e,t,ei(r))}function Uf(e,t,r,o){return o=typeof o=="function"?o:i,e==null?e:qo(e,t,ei(r),o)}function $t(e){return e==null?[]:Rr(e,oe(e))}function zf(e){return e==null?[]:Rr(e,ve(e))}function Wf(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=He(r),r=r===r?r:0),t!==i&&(t=He(t),t=t===t?t:0),wt(He(e),t,r)}function Gf(e,t,r){return t=rt(t),r===i?(r=t,t=0):r=rt(r),e=He(e),qp(e,t,r)}function $f(e,t,r){if(r&&typeof r!="boolean"&&me(e,t,r)&&(t=r=i),r===i&&(typeof t=="boolean"?(r=t,t=i):typeof e=="boolean"&&(r=e,e=i)),e===i&&t===i?(e=0,t=1):(e=rt(e),t===i?(t=e,e=0):t=rt(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var a=_o();return ue(e+a*(t-e+Ss("1e-"+((a+"").length-1))),t)}return qr(e,t)}var Yf=zt(function(e,t,r){return t=t.toLowerCase(),e+(r?tl(t):t)});function tl(e){return Si(Y(e).toLowerCase())}function nl(e){return e=Y(e),e&&e.replace(Kl,Ps).replace(cs,"")}function Kf(e,t,r){e=Y(e),t=we(t);var o=e.length;r=r===i?o:wt(k(r),0,o);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Vf(e){return e=Y(e),e&&El.test(e)?e.replace(Ri,ks):e}function qf(e){return e=Y(e),e&&Rl.test(e)?e.replace(yr,"\\$&"):e}var Jf=zt(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Xf=zt(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Zf=oa("toLowerCase");function Qf(e,t,r){e=Y(e),t=k(t);var o=t?Pt(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return qn(kn(a),r)+e+qn(Pn(a),r)}function jf(e,t,r){e=Y(e),t=k(t);var o=t?Pt(e):0;return t&&o<t?e+qn(t-o,r):e}function em(e,t,r){e=Y(e),t=k(t);var o=t?Pt(e):0;return t&&o<t?qn(t-o,r)+e:e}function tm(e,t,r){return r||t==null?t=0:t&&(t=+t),lp(Y(e).replace(hr,""),t||0)}function nm(e,t,r){return(r?me(e,t,r):t===i)?t=1:t=k(t),Jr(Y(e),t)}function rm(){var e=arguments,t=Y(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var im=zt(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function om(e,t,r){return r&&typeof r!="number"&&me(e,t,r)&&(t=r=i),r=r===i?Ye:r>>>0,r?(e=Y(e),e&&(typeof t=="string"||t!=null&&!vi(t))&&(t=we(t),!t&&Dt(e))?gt(Ue(e),0,r):e.split(t,r)):[]}var am=zt(function(e,t,r){return e+(r?" ":"")+Si(t)});function lm(e,t,r){return e=Y(e),r=r==null?0:wt(k(r),0,e.length),t=we(t),e.slice(r,r+t.length)==t}function sm(e,t,r){var o=l.templateSettings;r&&me(e,t,r)&&(t=i),e=Y(e),t=ar({},t,o,da);var a=ar({},t.imports,o.imports,da),p=oe(a),u=Rr(a,p),f,y,S=0,C=t.interpolate||xn,w="__p += '",E=Pr((t.escape||xn).source+"|"+C.source+"|"+(C===Di?Ul:xn).source+"|"+(t.evaluate||xn).source+"|$","g"),T="//# sourceURL="+(K.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ys+"]")+`
|
|
11
|
-
`;e.replace(E,function(R,
|
|
12
|
-
__e(`+
|
|
13
|
-
'`),
|
|
14
|
-
`+
|
|
15
|
-
__p += '`),
|
|
16
|
-
((__t = (`+
|
|
17
|
-
'`),S=
|
|
10
|
+
`)}function Du(e){return P(e)||At(e)||!!(Co&&e&&e[Co])}function tt(e,t){var r=typeof e;return t=t==null?lt:t,!!t&&(r=="number"||r!="symbol"&&Yl.test(e))&&e>-1&&e%1==0&&e<t}function fe(e,t,r){if(!Z(r))return!1;var o=typeof t;return(o=="number"?ye(r)&&tt(t,r.length):o=="string"&&t in r)?We(r[t],e):!1}function pi(e,t){if(P(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||we(e)?!0:Ll.test(e)||!Fl.test(e)||t!=null&&e in V(t)}function Pu(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ui(e){var t=Xn(e),r=l[t];if(typeof r!="function"||!(t in N.prototype))return!1;if(e===r)return!0;var o=ai(r);return!!o&&e===o[0]}function ku(e){return!!vo&&vo in e}var Mu=En?nt:Ai;function cn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Mt;return e===r}function va(e){return e===e&&!Z(e)}function ba(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==i||e in V(r))}}function Hu(e){var t=nr(e,function(o){return r.size===F&&r.clear(),o}),r=t.cache;return t}function Ou(e,t){var r=e[1],o=t[1],a=r|o,p=a<(ie|be|Fe),u=o==Fe&&r==se||o==Fe&&r==at&&e[7].length<=t[8]||o==(Fe|at)&&t[7].length<=t[8]&&r==se;if(!(p||u))return e;o&ie&&(e[2]=t[2],a|=r&ie?0:ot);var f=t[3];if(f){var y=e[3];e[3]=y?ta(y,f,t[4]):f,e[4]=y?ut(e[3],W):t[4]}return f=t[5],f&&(y=e[5],e[5]=y?na(y,f,t[6]):f,e[6]=y?ut(e[5],W):t[6]),f=t[7],f&&(e[7]=f),o&Fe&&(e[8]=e[8]==null?t[8]:ue(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Nu(e){var t=[];if(e!=null)for(var r in V(e))t.push(r);return t}function Uu(e){return Tn.call(e)}function xa(e,t,r){return t=re(t===i?e.length-1:t,0),function(){for(var o=arguments,a=-1,p=re(o.length-t,0),u=v(p);++a<p;)u[a]=o[t+a];a=-1;for(var f=v(t+1);++a<t;)f[a]=o[a];return f[t]=r(u),xe(e,this,f)}}function Sa(e,t){return t.length<2?e:_t(e,ke(t,0,-1))}function zu(e,t){for(var r=e.length,o=ue(t.length,r),a=ge(e);o--;){var p=t[o];e[o]=tt(p,r)?a[p]:i}return e}function ci(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ca=_a(Yo),dn=np||function(e,t){return ae.setTimeout(e,t)},di=_a(uu);function wa(e,t,r){var o=t+"";return di(e,Ru(o,Wu(Fu(o),r)))}function _a(e){var t=0,r=0;return function(){var o=ap(),a=pl-(o-r);if(r=o,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Qn(e,t){var r=-1,o=e.length,a=o-1;for(t=t===i?o:t;++r<t;){var p=qr(r,a),u=e[p];e[p]=e[r],e[r]=u}return e.length=t,e}var Ia=Hu(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bl,function(r,o,a,p){t.push(a?p.replace(Nl,"$1"):o||r)}),t});function qe(e){if(typeof e=="string"||we(e))return e;var t=e+"";return t=="0"&&1/e==-vt?"-0":t}function Et(e){if(e!=null){try{return An.call(e)}catch{}try{return e+""}catch{}}return""}function Wu(e,t){return Be(gl,function(r){var o="_."+r[0];t&r[1]&&!Cn(e,o)&&e.push(o)}),e.sort()}function Ea(e){if(e instanceof N)return e.clone();var t=new De(e.__wrapped__,e.__chain__);return t.__actions__=ge(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Gu(e,t,r){(r?fe(e,t,r):t===i)?t=1:t=re(k(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var a=0,p=0,u=v(Pn(o/t));a<o;)u[p++]=ke(e,a,a+=t);return u}function $u(e){for(var t=-1,r=e==null?0:e.length,o=0,a=[];++t<r;){var p=e[t];p&&(a[o++]=p)}return a}function Yu(){var e=arguments.length;if(!e)return[];for(var t=v(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return pt(P(r)?ge(r):[r],le(t,1))}var Ku=H(function(e,t){return j(e)?an(e,le(t,1,j,!0)):[]}),Vu=H(function(e,t){var r=Me(t);return j(r)&&(r=i),j(e)?an(e,le(t,1,j,!0),L(r,2)):[]}),qu=H(function(e,t){var r=Me(t);return j(r)&&(r=i),j(e)?an(e,le(t,1,j,!0),i,r):[]});function Ju(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:k(t),ke(e,t<0?0:t,o)):[]}function Xu(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:k(t),t=o-t,ke(e,0,t<0?0:t)):[]}function Zu(e,t){return e&&e.length?$n(e,L(t,3),!0,!0):[]}function Qu(e,t){return e&&e.length?$n(e,L(t,3),!0):[]}function ju(e,t,r,o){var a=e==null?0:e.length;return a?(r&&typeof r!="number"&&fe(e,t,r)&&(r=0,o=a),Yp(e,t,r,o)):[]}function Aa(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=r==null?0:k(r);return a<0&&(a=re(o+a,0)),wn(e,L(t,3),a)}function Ta(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=o-1;return r!==i&&(a=k(r),a=r<0?re(o+a,0):ue(a,o-1)),wn(e,L(t,3),a,!0)}function Fa(e){var t=e==null?0:e.length;return t?le(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?le(e,vt):[]}function tc(e,t){var r=e==null?0:e.length;return r?(t=t===i?1:k(t),le(e,t)):[]}function nc(e){for(var t=-1,r=e==null?0:e.length,o={};++t<r;){var a=e[t];o[a[0]]=a[1]}return o}function La(e){return e&&e.length?e[0]:i}function rc(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=r==null?0:k(r);return a<0&&(a=re(o+a,0)),Rt(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?ke(e,0,-1):[]}var oc=H(function(e){var t=X(e,jr);return t.length&&t[0]===e[0]?Gr(t):[]}),ac=H(function(e){var t=Me(e),r=X(e,jr);return t===Me(r)?t=i:r.pop(),r.length&&r[0]===e[0]?Gr(r,L(t,2)):[]}),lc=H(function(e){var t=Me(e),r=X(e,jr);return t=typeof t=="function"?t:i,t&&r.pop(),r.length&&r[0]===e[0]?Gr(r,i,t):[]});function sc(e,t){return e==null?"":ip.call(e,t)}function Me(e){var t=e==null?0:e.length;return t?e[t-1]:i}function pc(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=o;return r!==i&&(a=k(r),a=a<0?re(o+a,0):ue(a,o-1)),t===t?Ws(e,t,a):wn(e,po,a,!0)}function uc(e,t){return e&&e.length?zo(e,k(t)):i}var cc=H(Ba);function Ba(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}function dc(e,t,r){return e&&e.length&&t&&t.length?Vr(e,t,L(r,2)):e}function fc(e,t,r){return e&&e.length&&t&&t.length?Vr(e,t,i,r):e}var mc=et(function(e,t){var r=e==null?0:e.length,o=Nr(e,t);return $o(e,X(t,function(a){return tt(a,r)?+a:a}).sort(ea)),o});function gc(e,t){var r=[];if(!(e&&e.length))return r;var o=-1,a=[],p=e.length;for(t=L(t,3);++o<p;){var u=e[o];t(u,o,e)&&(r.push(u),a.push(o))}return $o(e,a),r}function fi(e){return e==null?e:sp.call(e)}function yc(e,t,r){var o=e==null?0:e.length;return o?(r&&typeof r!="number"&&fe(e,t,r)?(t=0,r=o):(t=t==null?0:k(t),r=r===i?o:k(r)),ke(e,t,r)):[]}function hc(e,t){return Gn(e,t)}function vc(e,t,r){return Xr(e,t,L(r,2))}function bc(e,t){var r=e==null?0:e.length;if(r){var o=Gn(e,t);if(o<r&&We(e[o],t))return o}return-1}function xc(e,t){return Gn(e,t,!0)}function Sc(e,t,r){return Xr(e,t,L(r,2),!0)}function Cc(e,t){var r=e==null?0:e.length;if(r){var o=Gn(e,t,!0)-1;if(We(e[o],t))return o}return-1}function wc(e){return e&&e.length?Ko(e):[]}function _c(e,t){return e&&e.length?Ko(e,L(t,2)):[]}function Ic(e){var t=e==null?0:e.length;return t?ke(e,1,t):[]}function Ec(e,t,r){return e&&e.length?(t=r||t===i?1:k(t),ke(e,0,t<0?0:t)):[]}function Ac(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:k(t),t=o-t,ke(e,t<0?0:t,o)):[]}function Tc(e,t){return e&&e.length?$n(e,L(t,3),!1,!0):[]}function Fc(e,t){return e&&e.length?$n(e,L(t,3)):[]}var Lc=H(function(e){return ft(le(e,1,j,!0))}),Bc=H(function(e){var t=Me(e);return j(t)&&(t=i),ft(le(e,1,j,!0),L(t,2))}),Rc=H(function(e){var t=Me(e);return t=typeof t=="function"?t:i,ft(le(e,1,j,!0),i,t)});function Dc(e){return e&&e.length?ft(e):[]}function Pc(e,t){return e&&e.length?ft(e,L(t,2)):[]}function kc(e,t){return t=typeof t=="function"?t:i,e&&e.length?ft(e,i,t):[]}function mi(e){if(!(e&&e.length))return[];var t=0;return e=st(e,function(r){if(j(r))return t=re(r.length,t),!0}),Br(t,function(r){return X(e,Tr(r))})}function Ra(e,t){if(!(e&&e.length))return[];var r=mi(e);return t==null?r:X(r,function(o){return xe(t,i,o)})}var Mc=H(function(e,t){return j(e)?an(e,t):[]}),Hc=H(function(e){return Qr(st(e,j))}),Oc=H(function(e){var t=Me(e);return j(t)&&(t=i),Qr(st(e,j),L(t,2))}),Nc=H(function(e){var t=Me(e);return t=typeof t=="function"?t:i,Qr(st(e,j),i,t)}),Uc=H(mi);function zc(e,t){return Xo(e||[],t||[],on)}function Wc(e,t){return Xo(e||[],t||[],pn)}var Gc=H(function(e){var t=e.length,r=t>1?e[t-1]:i;return r=typeof r=="function"?(e.pop(),r):i,Ra(e,r)});function Da(e){var t=l(e);return t.__chain__=!0,t}function $c(e,t){return t(e),e}function jn(e,t){return t(e)}var Yc=et(function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,a=function(p){return Nr(p,e)};return t>1||this.__actions__.length||!(o instanceof N)||!tt(r)?this.thru(a):(o=o.slice(r,+r+(t?1:0)),o.__actions__.push({func:jn,args:[a],thisArg:i}),new De(o,this.__chain__).thru(function(p){return t&&!p.length&&p.push(i),p}))});function Kc(){return Da(this)}function Vc(){return new De(this.value(),this.__chain__)}function qc(){this.__values__===i&&(this.__values__=Va(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Xc(e){for(var t,r=this;r instanceof On;){var o=Ea(r);o.__index__=0,o.__values__=i,t?a.__wrapped__=o:t=o;var a=o;r=r.__wrapped__}return a.__wrapped__=e,t}function Zc(){var e=this.__wrapped__;if(e instanceof N){var t=e;return this.__actions__.length&&(t=new N(this)),t=t.reverse(),t.__actions__.push({func:jn,args:[fi],thisArg:i}),new De(t,this.__chain__)}return this.thru(fi)}function Qc(){return Jo(this.__wrapped__,this.__actions__)}var jc=Yn(function(e,t,r){K.call(e,r)?++e[r]:Qe(e,r,1)});function ed(e,t,r){var o=P(e)?lo:$p;return r&&fe(e,t,r)&&(t=i),o(e,L(t,3))}function td(e,t){var r=P(e)?st:Ro;return r(e,L(t,3))}var nd=aa(Aa),rd=aa(Ta);function id(e,t){return le(er(e,t),1)}function od(e,t){return le(er(e,t),vt)}function ad(e,t,r){return r=r===i?1:k(r),le(er(e,t),r)}function Pa(e,t){var r=P(e)?Be:dt;return r(e,L(t,3))}function ka(e,t){var r=P(e)?Is:Bo;return r(e,L(t,3))}var ld=Yn(function(e,t,r){K.call(e,r)?e[r].push(t):Qe(e,r,[t])});function sd(e,t,r,o){e=ye(e)?e:$t(e),r=r&&!o?k(r):0;var a=e.length;return r<0&&(r=re(a+r,0)),or(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&Rt(e,t,r)>-1}var pd=H(function(e,t,r){var o=-1,a=typeof t=="function",p=ye(e)?v(e.length):[];return dt(e,function(u){p[++o]=a?xe(t,u,r):ln(u,t,r)}),p}),ud=Yn(function(e,t,r){Qe(e,r,t)});function er(e,t){var r=P(e)?X:Oo;return r(e,L(t,3))}function cd(e,t,r,o){return e==null?[]:(P(t)||(t=t==null?[]:[t]),r=o?i:r,P(r)||(r=r==null?[]:[r]),Wo(e,t,r))}var dd=Yn(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function fd(e,t,r){var o=P(e)?Er:co,a=arguments.length<3;return o(e,L(t,4),r,a,dt)}function md(e,t,r){var o=P(e)?Es:co,a=arguments.length<3;return o(e,L(t,4),r,a,Bo)}function gd(e,t){var r=P(e)?st:Ro;return r(e,rr(L(t,3)))}function yd(e){var t=P(e)?Ao:su;return t(e)}function hd(e,t,r){(r?fe(e,t,r):t===i)?t=1:t=k(t);var o=P(e)?Np:pu;return o(e,t)}function vd(e){var t=P(e)?Up:cu;return t(e)}function bd(e){if(e==null)return 0;if(ye(e))return or(e)?Pt(e):e.length;var t=ce(e);return t==Oe||t==Ne?e.size:Yr(e).length}function xd(e,t,r){var o=P(e)?Ar:du;return r&&fe(e,t,r)&&(t=i),o(e,L(t,3))}var Sd=H(function(e,t){if(e==null)return[];var r=t.length;return r>1&&fe(e,t[0],t[1])?t=[]:r>2&&fe(t[0],t[1],t[2])&&(t=[t[0]]),Wo(e,le(t,1),[])}),tr=tp||function(){return ae.Date.now()};function Cd(e,t){if(typeof t!="function")throw new Re(g);return e=k(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ma(e,t,r){return t=r?i:t,t=e&&t==null?e.length:t,je(e,Fe,i,i,i,i,t)}function Ha(e,t){var r;if(typeof t!="function")throw new Re(g);return e=k(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var gi=H(function(e,t,r){var o=ie;if(r.length){var a=ut(r,Wt(gi));o|=pe}return je(e,o,t,r,a)}),Oa=H(function(e,t,r){var o=ie|be;if(r.length){var a=ut(r,Wt(Oa));o|=pe}return je(t,o,e,r,a)});function Na(e,t,r){t=r?i:t;var o=je(e,se,i,i,i,i,i,t);return o.placeholder=Na.placeholder,o}function Ua(e,t,r){t=r?i:t;var o=je(e,Ae,i,i,i,i,i,t);return o.placeholder=Ua.placeholder,o}function za(e,t,r){var o,a,p,u,f,y,S=0,C=!1,w=!1,E=!0;if(typeof e!="function")throw new Re(g);t=He(t)||0,Z(r)&&(C=!!r.leading,w="maxWait"in r,p=w?re(He(r.maxWait)||0,t):p,E="trailing"in r?!!r.trailing:E);function T(ee){var Ge=o,it=a;return o=a=i,S=ee,u=e.apply(it,Ge),u}function B(ee){return S=ee,f=dn(O,t),C?T(ee):u}function M(ee){var Ge=ee-y,it=ee-S,al=t-Ge;return w?ue(al,p-it):al}function R(ee){var Ge=ee-y,it=ee-S;return y===i||Ge>=t||Ge<0||w&&it>=p}function O(){var ee=tr();if(R(ee))return z(ee);f=dn(O,M(ee))}function z(ee){return f=i,E&&o?T(ee):(o=a=i,u)}function _e(){f!==i&&Zo(f),S=0,o=y=a=f=i}function me(){return f===i?u:z(tr())}function Ie(){var ee=tr(),Ge=R(ee);if(o=arguments,a=this,y=ee,Ge){if(f===i)return B(y);if(w)return Zo(f),f=dn(O,t),T(y)}return f===i&&(f=dn(O,t)),u}return Ie.cancel=_e,Ie.flush=me,Ie}var wd=H(function(e,t){return Lo(e,1,t)}),_d=H(function(e,t,r){return Lo(e,He(t)||0,r)});function Id(e){return je(e,Tt)}function nr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Re(g);var r=function(){var o=arguments,a=t?t.apply(this,o):o[0],p=r.cache;if(p.has(a))return p.get(a);var u=e.apply(this,o);return r.cache=p.set(a,u)||p,u};return r.cache=new(nr.Cache||Ze),r}nr.Cache=Ze;function rr(e){if(typeof e!="function")throw new Re(g);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 Ed(e){return Ha(2,e)}var Ad=fu(function(e,t){t=t.length==1&&P(t[0])?X(t[0],Se(L())):X(le(t,1),Se(L()));var r=t.length;return H(function(o){for(var a=-1,p=ue(o.length,r);++a<p;)o[a]=t[a].call(this,o[a]);return xe(e,this,o)})}),yi=H(function(e,t){var r=ut(t,Wt(yi));return je(e,pe,i,t,r)}),Wa=H(function(e,t){var r=ut(t,Wt(Wa));return je(e,Te,i,t,r)}),Td=et(function(e,t){return je(e,at,i,i,i,t)});function Fd(e,t){if(typeof e!="function")throw new Re(g);return t=t===i?t:k(t),H(e,t)}function Ld(e,t){if(typeof e!="function")throw new Re(g);return t=t==null?0:re(k(t),0),H(function(r){var o=r[t],a=gt(r,0,t);return o&&pt(a,o),xe(e,this,a)})}function Bd(e,t,r){var o=!0,a=!0;if(typeof e!="function")throw new Re(g);return Z(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),za(e,t,{leading:o,maxWait:t,trailing:a})}function Rd(e){return Ma(e,1)}function Dd(e,t){return yi(ei(t),e)}function Pd(){if(!arguments.length)return[];var e=arguments[0];return P(e)?e:[e]}function kd(e){return Pe(e,G)}function Md(e,t){return t=typeof t=="function"?t:i,Pe(e,G,t)}function Hd(e){return Pe(e,U|G)}function Od(e,t){return t=typeof t=="function"?t:i,Pe(e,U|G,t)}function Nd(e,t){return t==null||Fo(e,t,oe(t))}function We(e,t){return e===t||e!==e&&t!==t}var Ud=Jn(Wr),zd=Jn(function(e,t){return e>=t}),At=ko(function(){return arguments}())?ko:function(e){return Q(e)&&K.call(e,"callee")&&!So.call(e,"callee")},P=v.isArray,Wd=to?Se(to):Xp;function ye(e){return e!=null&&ir(e.length)&&!nt(e)}function j(e){return Q(e)&&ye(e)}function Gd(e){return e===!0||e===!1||Q(e)&&de(e)==Yt}var yt=rp||Ai,$d=no?Se(no):Zp;function Yd(e){return Q(e)&&e.nodeType===1&&!fn(e)}function Kd(e){if(e==null)return!0;if(ye(e)&&(P(e)||typeof e=="string"||typeof e.splice=="function"||yt(e)||Gt(e)||At(e)))return!e.length;var t=ce(e);if(t==Oe||t==Ne)return!e.size;if(cn(e))return!Yr(e).length;for(var r in e)if(K.call(e,r))return!1;return!0}function Vd(e,t){return sn(e,t)}function qd(e,t,r){r=typeof r=="function"?r:i;var o=r?r(e,t):i;return o===i?sn(e,t,i,r):!!o}function hi(e){if(!Q(e))return!1;var t=de(e);return t==yn||t==hl||typeof e.message=="string"&&typeof e.name=="string"&&!fn(e)}function Jd(e){return typeof e=="number"&&wo(e)}function nt(e){if(!Z(e))return!1;var t=de(e);return t==hn||t==Fi||t==yl||t==bl}function Ga(e){return typeof e=="number"&&e==k(e)}function ir(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lt}function Z(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Q(e){return e!=null&&typeof e=="object"}var $a=ro?Se(ro):jp;function Xd(e,t){return e===t||$r(e,t,li(t))}function Zd(e,t,r){return r=typeof r=="function"?r:i,$r(e,t,li(t),r)}function Qd(e){return Ya(e)&&e!=+e}function jd(e){if(Mu(e))throw new D(c);return Mo(e)}function ef(e){return e===null}function tf(e){return e==null}function Ya(e){return typeof e=="number"||Q(e)&&de(e)==Vt}function fn(e){if(!Q(e)||de(e)!=Je)return!1;var t=Bn(e);if(t===null)return!0;var r=K.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&An.call(r)==Zs}var vi=io?Se(io):eu;function nf(e){return Ga(e)&&e>=-lt&&e<=lt}var Ka=oo?Se(oo):tu;function or(e){return typeof e=="string"||!P(e)&&Q(e)&&de(e)==Jt}function we(e){return typeof e=="symbol"||Q(e)&&de(e)==vn}var Gt=ao?Se(ao):nu;function rf(e){return e===i}function of(e){return Q(e)&&ce(e)==Xt}function af(e){return Q(e)&&de(e)==Sl}var lf=Jn(Kr),sf=Jn(function(e,t){return e<=t});function Va(e){if(!e)return[];if(ye(e))return or(e)?Ue(e):ge(e);if(jt&&e[jt])return Ns(e[jt]());var t=ce(e),r=t==Oe?Dr:t==Ne?_n:$t;return r(e)}function rt(e){if(!e)return e===0?e:0;if(e=He(e),e===vt||e===-vt){var t=e<0?-1:1;return t*dl}return e===e?e:0}function k(e){var t=rt(e),r=t%1;return t===t?r?t-r:t:0}function qa(e){return e?wt(k(e),0,Ye):0}function He(e){if(typeof e=="number")return e;if(we(e))return mn;if(Z(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Z(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fo(e);var r=Wl.test(e);return r||$l.test(e)?Cs(e.slice(2),r?2:8):zl.test(e)?mn:+e}function Ja(e){return Ve(e,he(e))}function pf(e){return e?wt(k(e),-lt,lt):e===0?e:0}function Y(e){return e==null?"":Ce(e)}var uf=Ut(function(e,t){if(cn(t)||ye(t)){Ve(t,oe(t),e);return}for(var r in t)K.call(t,r)&&on(e,r,t[r])}),Xa=Ut(function(e,t){Ve(t,he(t),e)}),ar=Ut(function(e,t,r,o){Ve(t,he(t),e,o)}),cf=Ut(function(e,t,r,o){Ve(t,oe(t),e,o)}),df=et(Nr);function ff(e,t){var r=Nt(e);return t==null?r:To(r,t)}var mf=H(function(e,t){e=V(e);var r=-1,o=t.length,a=o>2?t[2]:i;for(a&&fe(t[0],t[1],a)&&(o=1);++r<o;)for(var p=t[r],u=he(p),f=-1,y=u.length;++f<y;){var S=u[f],C=e[S];(C===i||We(C,Mt[S])&&!K.call(e,S))&&(e[S]=p[S])}return e}),gf=H(function(e){return e.push(i,fa),xe(Za,i,e)});function yf(e,t){return so(e,L(t,3),Ke)}function hf(e,t){return so(e,L(t,3),zr)}function vf(e,t){return e==null?e:Ur(e,L(t,3),he)}function bf(e,t){return e==null?e:Do(e,L(t,3),he)}function xf(e,t){return e&&Ke(e,L(t,3))}function Sf(e,t){return e&&zr(e,L(t,3))}function Cf(e){return e==null?[]:zn(e,oe(e))}function wf(e){return e==null?[]:zn(e,he(e))}function bi(e,t,r){var o=e==null?i:_t(e,t);return o===i?r:o}function _f(e,t){return e!=null&&ya(e,t,Kp)}function xi(e,t){return e!=null&&ya(e,t,Vp)}var If=sa(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Tn.call(t)),e[t]=r},Ci(ve)),Ef=sa(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Tn.call(t)),K.call(e,t)?e[t].push(r):e[t]=[r]},L),Af=H(ln);function oe(e){return ye(e)?Eo(e):Yr(e)}function he(e){return ye(e)?Eo(e,!0):ru(e)}function Tf(e,t){var r={};return t=L(t,3),Ke(e,function(o,a,p){Qe(r,t(o,a,p),o)}),r}function Ff(e,t){var r={};return t=L(t,3),Ke(e,function(o,a,p){Qe(r,a,t(o,a,p))}),r}var Lf=Ut(function(e,t,r){Wn(e,t,r)}),Za=Ut(function(e,t,r,o){Wn(e,t,r,o)}),Bf=et(function(e,t){var r={};if(e==null)return r;var o=!1;t=X(t,function(p){return p=mt(p,e),o||(o=p.length>1),p}),Ve(e,oi(e),r),o&&(r=Pe(r,U|te|G,_u));for(var a=t.length;a--;)Zr(r,t[a]);return r});function Rf(e,t){return Qa(e,rr(L(t)))}var Df=et(function(e,t){return e==null?{}:ou(e,t)});function Qa(e,t){if(e==null)return{};var r=X(oi(e),function(o){return[o]});return t=L(t),Go(e,r,function(o,a){return t(o,a[0])})}function Pf(e,t,r){t=mt(t,e);var o=-1,a=t.length;for(a||(a=1,e=i);++o<a;){var p=e==null?i:e[qe(t[o])];p===i&&(o=a,p=r),e=nt(p)?p.call(e):p}return e}function kf(e,t,r){return e==null?e:pn(e,t,r)}function Mf(e,t,r,o){return o=typeof o=="function"?o:i,e==null?e:pn(e,t,r,o)}var ja=ca(oe),el=ca(he);function Hf(e,t,r){var o=P(e),a=o||yt(e)||Gt(e);if(t=L(t,4),r==null){var p=e&&e.constructor;a?r=o?new p:[]:Z(e)?r=nt(p)?Nt(Bn(e)):{}:r={}}return(a?Be:Ke)(e,function(u,f,y){return t(r,u,f,y)}),r}function Of(e,t){return e==null?!0:Zr(e,t)}function Nf(e,t,r){return e==null?e:qo(e,t,ei(r))}function Uf(e,t,r,o){return o=typeof o=="function"?o:i,e==null?e:qo(e,t,ei(r),o)}function $t(e){return e==null?[]:Rr(e,oe(e))}function zf(e){return e==null?[]:Rr(e,he(e))}function Wf(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=He(r),r=r===r?r:0),t!==i&&(t=He(t),t=t===t?t:0),wt(He(e),t,r)}function Gf(e,t,r){return t=rt(t),r===i?(r=t,t=0):r=rt(r),e=He(e),qp(e,t,r)}function $f(e,t,r){if(r&&typeof r!="boolean"&&fe(e,t,r)&&(t=r=i),r===i&&(typeof t=="boolean"?(r=t,t=i):typeof e=="boolean"&&(r=e,e=i)),e===i&&t===i?(e=0,t=1):(e=rt(e),t===i?(t=e,e=0):t=rt(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var a=_o();return ue(e+a*(t-e+Ss("1e-"+((a+"").length-1))),t)}return qr(e,t)}var Yf=zt(function(e,t,r){return t=t.toLowerCase(),e+(r?tl(t):t)});function tl(e){return Si(Y(e).toLowerCase())}function nl(e){return e=Y(e),e&&e.replace(Kl,Ps).replace(cs,"")}function Kf(e,t,r){e=Y(e),t=Ce(t);var o=e.length;r=r===i?o:wt(k(r),0,o);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Vf(e){return e=Y(e),e&&El.test(e)?e.replace(Ri,ks):e}function qf(e){return e=Y(e),e&&Rl.test(e)?e.replace(yr,"\\$&"):e}var Jf=zt(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Xf=zt(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Zf=oa("toLowerCase");function Qf(e,t,r){e=Y(e),t=k(t);var o=t?Pt(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return qn(kn(a),r)+e+qn(Pn(a),r)}function jf(e,t,r){e=Y(e),t=k(t);var o=t?Pt(e):0;return t&&o<t?e+qn(t-o,r):e}function em(e,t,r){e=Y(e),t=k(t);var o=t?Pt(e):0;return t&&o<t?qn(t-o,r)+e:e}function tm(e,t,r){return r||t==null?t=0:t&&(t=+t),lp(Y(e).replace(hr,""),t||0)}function nm(e,t,r){return(r?fe(e,t,r):t===i)?t=1:t=k(t),Jr(Y(e),t)}function rm(){var e=arguments,t=Y(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var im=zt(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function om(e,t,r){return r&&typeof r!="number"&&fe(e,t,r)&&(t=r=i),r=r===i?Ye:r>>>0,r?(e=Y(e),e&&(typeof t=="string"||t!=null&&!vi(t))&&(t=Ce(t),!t&&Dt(e))?gt(Ue(e),0,r):e.split(t,r)):[]}var am=zt(function(e,t,r){return e+(r?" ":"")+Si(t)});function lm(e,t,r){return e=Y(e),r=r==null?0:wt(k(r),0,e.length),t=Ce(t),e.slice(r,r+t.length)==t}function sm(e,t,r){var o=l.templateSettings;r&&fe(e,t,r)&&(t=i),e=Y(e),t=ar({},t,o,da);var a=ar({},t.imports,o.imports,da),p=oe(a),u=Rr(a,p),f,y,S=0,C=t.interpolate||bn,w="__p += '",E=Pr((t.escape||bn).source+"|"+C.source+"|"+(C===Di?Ul:bn).source+"|"+(t.evaluate||bn).source+"|$","g"),T="//# sourceURL="+(K.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ys+"]")+`
|
|
11
|
+
`;e.replace(E,function(R,O,z,_e,me,Ie){return z||(z=_e),w+=e.slice(S,Ie).replace(Vl,Ms),O&&(f=!0,w+=`' +
|
|
12
|
+
__e(`+O+`) +
|
|
13
|
+
'`),me&&(y=!0,w+=`';
|
|
14
|
+
`+me+`;
|
|
15
|
+
__p += '`),z&&(w+=`' +
|
|
16
|
+
((__t = (`+z+`)) == null ? '' : __t) +
|
|
17
|
+
'`),S=Ie+R.length,R}),w+=`';
|
|
18
18
|
`;var B=K.call(t,"variable")&&t.variable;if(!B)w=`with (obj) {
|
|
19
19
|
`+w+`
|
|
20
20
|
}
|
|
21
|
-
`;else if(Ol.test(B))throw new D(
|
|
21
|
+
`;else if(Ol.test(B))throw new D(x);w=(y?w.replace(Cl,""):w).replace(wl,"$1").replace(_l,"$1;"),w="function("+(B||"obj")+`) {
|
|
22
22
|
`+(B?"":`obj || (obj = {});
|
|
23
23
|
`)+"var __t, __p = ''"+(f?", __e = _.escape":"")+(y?`, __j = Array.prototype.join;
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+w+`return __p
|
|
27
|
-
}`;var M=il(function(){return $(p,T+"return "+w).apply(i,u)});if(M.source=w,hi(M))throw M;return M}function pm(e){return Y(e).toLowerCase()}function um(e){return Y(e).toUpperCase()}function cm(e,t,r){if(e=Y(e),e&&(r||t===i))return fo(e);if(!e||!(t=we(t)))return e;var o=Ue(e),a=Ue(t),p=mo(o,a),u=go(o,a)+1;return gt(o,p,u).join("")}function dm(e,t,r){if(e=Y(e),e&&(r||t===i))return e.slice(0,ho(e)+1);if(!e||!(t=we(t)))return e;var o=Ue(e),a=go(o,Ue(t))+1;return gt(o,0,a).join("")}function fm(e,t,r){if(e=Y(e),e&&(r||t===i))return e.replace(hr,"");if(!e||!(t=we(t)))return e;var o=Ue(e),a=mo(o,Ue(t));return gt(o,a).join("")}function mm(e,t){var r=ht,o=ll;if(Z(t)){var a="separator"in t?t.separator:a;r="length"in t?k(t.length):r,o="omission"in t?we(t.omission):o}e=Y(e);var p=e.length;if(Dt(e)){var u=Ue(e);p=u.length}if(r>=p)return e;var f=r-Pt(o);if(f<1)return o;var y=u?gt(u,0,f).join(""):e.slice(0,f);if(a===i)return y+o;if(u&&(f+=y.length-f),vi(a)){if(e.slice(f).search(a)){var S,C=y;for(a.global||(a=Pr(a.source,Y(Pi.exec(a))+"g")),a.lastIndex=0;S=a.exec(C);)var w=S.index;y=y.slice(0,w===i?f:w)}}else if(e.indexOf(we(a),f)!=f){var E=y.lastIndexOf(a);E>-1&&(y=y.slice(0,E))}return y+o}function gm(e){return e=Y(e),e&&Il.test(e)?e.replace(Bi,Gs):e}var ym=zt(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Si=oa("toUpperCase");function rl(e,t,r){return e=Y(e),t=r?i:t,t===i?Os(e)?Ks(e):Fs(e):e.match(t)||[]}var il=O(function(e,t){try{return Se(e,i,t)}catch(r){return hi(r)?r:new D(r)}}),hm=et(function(e,t){return Be(t,function(r){r=qe(r),Qe(e,r,gi(e[r],e))}),e});function vm(e){var t=e==null?0:e.length,r=L();return e=t?X(e,function(o){if(typeof o[1]!="function")throw new Re(g);return[r(o[0]),o[1]]}):[],O(function(o){for(var a=-1;++a<t;){var p=e[a];if(Se(p[0],this,o))return Se(p[1],this,o)}})}function xm(e){return Gp(Pe(e,H))}function Ci(e){return function(){return e}}function bm(e,t){return e==null||e!==e?t:e}var Sm=la(),Cm=la(!0);function xe(e){return e}function wi(e){return Ho(typeof e=="function"?e:Pe(e,H))}function wm(e){return No(Pe(e,H))}function _m(e,t){return Uo(e,Pe(t,H))}var Im=O(function(e,t){return function(r){return ln(r,e,t)}}),Em=O(function(e,t){return function(r){return ln(e,r,t)}});function _i(e,t,r){var o=oe(t),a=zn(t,o);r==null&&!(Z(t)&&(a.length||!o.length))&&(r=t,t=e,e=this,a=zn(t,oe(t)));var p=!(Z(r)&&"chain"in r)||!!r.chain,u=nt(e);return Be(a,function(f){var y=t[f];e[f]=y,u&&(e.prototype[f]=function(){var S=this.__chain__;if(p||S){var C=e(this.__wrapped__),w=C.__actions__=ye(this.__actions__);return w.push({func:y,args:arguments,thisArg:e}),C.__chain__=S,C}return y.apply(e,pt([this.value()],arguments))})}),e}function Am(){return ae._===this&&(ae._=Qs),this}function Ii(){}function Tm(e){return e=k(e),O(function(t){return zo(t,e)})}var Fm=ni(X),Lm=ni(lo),Bm=ni(Ar);function ol(e){return pi(e)?Tr(qe(e)):au(e)}function Rm(e){return function(t){return e==null?i:_t(e,t)}}var Dm=pa(),Pm=pa(!0);function Ei(){return[]}function Ai(){return!1}function km(){return{}}function Mm(){return""}function Hm(){return!0}function Om(e,t){if(e=k(e),e<1||e>lt)return[];var r=Ye,o=ue(e,Ye);t=L(t),e-=Ye;for(var a=Br(o,t);++r<e;)t(r);return a}function Nm(e){return P(e)?X(e,qe):_e(e)?[e]:ye(Ia(Y(e)))}function Um(e){var t=++Xs;return Y(e)+t}var zm=Vn(function(e,t){return e+t},0),Wm=ri("ceil"),Gm=Vn(function(e,t){return e/t},1),$m=ri("floor");function Ym(e){return e&&e.length?Un(e,xe,Wr):i}function Km(e,t){return e&&e.length?Un(e,L(t,2),Wr):i}function Vm(e){return uo(e,xe)}function qm(e,t){return uo(e,L(t,2))}function Jm(e){return e&&e.length?Un(e,xe,Kr):i}function Xm(e,t){return e&&e.length?Un(e,L(t,2),Kr):i}var Zm=Vn(function(e,t){return e*t},1),Qm=ri("round"),jm=Vn(function(e,t){return e-t},0);function eg(e){return e&&e.length?Lr(e,xe):0}function tg(e,t){return e&&e.length?Lr(e,L(t,2)):0}return l.after=Cd,l.ary=Ma,l.assign=uf,l.assignIn=Xa,l.assignInWith=ar,l.assignWith=cf,l.at=df,l.before=Ha,l.bind=gi,l.bindAll=hm,l.bindKey=Oa,l.castArray=Pd,l.chain=Da,l.chunk=Gu,l.compact=$u,l.concat=Yu,l.cond=vm,l.conforms=xm,l.constant=Ci,l.countBy=jc,l.create=ff,l.curry=Na,l.curryRight=Ua,l.debounce=za,l.defaults=mf,l.defaultsDeep=gf,l.defer=wd,l.delay=_d,l.difference=Ku,l.differenceBy=Vu,l.differenceWith=qu,l.drop=Ju,l.dropRight=Xu,l.dropRightWhile=Zu,l.dropWhile=Qu,l.fill=ju,l.filter=td,l.flatMap=id,l.flatMapDeep=od,l.flatMapDepth=ad,l.flatten=Fa,l.flattenDeep=ec,l.flattenDepth=tc,l.flip=Id,l.flow=Sm,l.flowRight=Cm,l.fromPairs=nc,l.functions=Cf,l.functionsIn=wf,l.groupBy=ld,l.initial=ic,l.intersection=oc,l.intersectionBy=ac,l.intersectionWith=lc,l.invert=If,l.invertBy=Ef,l.invokeMap=pd,l.iteratee=wi,l.keyBy=ud,l.keys=oe,l.keysIn=ve,l.map=er,l.mapKeys=Tf,l.mapValues=Ff,l.matches=wm,l.matchesProperty=_m,l.memoize=nr,l.merge=Lf,l.mergeWith=Za,l.method=Im,l.methodOf=Em,l.mixin=_i,l.negate=rr,l.nthArg=Tm,l.omit=Bf,l.omitBy=Rf,l.once=Ed,l.orderBy=cd,l.over=Fm,l.overArgs=Ad,l.overEvery=Lm,l.overSome=Bm,l.partial=yi,l.partialRight=Wa,l.partition=dd,l.pick=Df,l.pickBy=Qa,l.property=ol,l.propertyOf=Rm,l.pull=cc,l.pullAll=Ba,l.pullAllBy=dc,l.pullAllWith=fc,l.pullAt=mc,l.range=Dm,l.rangeRight=Pm,l.rearg=Td,l.reject=gd,l.remove=gc,l.rest=Fd,l.reverse=fi,l.sampleSize=hd,l.set=kf,l.setWith=Mf,l.shuffle=vd,l.slice=yc,l.sortBy=Sd,l.sortedUniq=wc,l.sortedUniqBy=_c,l.split=om,l.spread=Ld,l.tail=Ic,l.take=Ec,l.takeRight=Ac,l.takeRightWhile=Tc,l.takeWhile=Fc,l.tap=$c,l.throttle=Bd,l.thru=jn,l.toArray=Va,l.toPairs=ja,l.toPairsIn=el,l.toPath=Nm,l.toPlainObject=Ja,l.transform=Hf,l.unary=Rd,l.union=Lc,l.unionBy=Bc,l.unionWith=Rc,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=kc,l.unset=Of,l.unzip=mi,l.unzipWith=Ra,l.update=Nf,l.updateWith=Uf,l.values=$t,l.valuesIn=zf,l.without=Mc,l.words=rl,l.wrap=Dd,l.xor=Hc,l.xorBy=Oc,l.xorWith=Nc,l.zip=Uc,l.zipObject=zc,l.zipObjectDeep=Wc,l.zipWith=Gc,l.entries=ja,l.entriesIn=el,l.extend=Xa,l.extendWith=ar,_i(l,l),l.add=zm,l.attempt=il,l.camelCase=Yf,l.capitalize=tl,l.ceil=Wm,l.clamp=Wf,l.clone=kd,l.cloneDeep=Hd,l.cloneDeepWith=Od,l.cloneWith=Md,l.conformsTo=Nd,l.deburr=nl,l.defaultTo=bm,l.divide=Gm,l.endsWith=Kf,l.eq=We,l.escape=Vf,l.escapeRegExp=qf,l.every=ed,l.find=nd,l.findIndex=Aa,l.findKey=yf,l.findLast=rd,l.findLastIndex=Ta,l.findLastKey=hf,l.floor=$m,l.forEach=Pa,l.forEachRight=ka,l.forIn=vf,l.forInRight=xf,l.forOwn=bf,l.forOwnRight=Sf,l.get=xi,l.gt=Ud,l.gte=zd,l.has=_f,l.hasIn=bi,l.head=La,l.identity=xe,l.includes=sd,l.indexOf=rc,l.inRange=Gf,l.invoke=Af,l.isArguments=At,l.isArray=P,l.isArrayBuffer=Wd,l.isArrayLike=he,l.isArrayLikeObject=ee,l.isBoolean=Gd,l.isBuffer=yt,l.isDate=$d,l.isElement=Yd,l.isEmpty=Kd,l.isEqual=Vd,l.isEqualWith=qd,l.isError=hi,l.isFinite=Jd,l.isFunction=nt,l.isInteger=Ga,l.isLength=ir,l.isMap=$a,l.isMatch=Xd,l.isMatchWith=Zd,l.isNaN=Qd,l.isNative=jd,l.isNil=tf,l.isNull=ef,l.isNumber=Ya,l.isObject=Z,l.isObjectLike=j,l.isPlainObject=fn,l.isRegExp=vi,l.isSafeInteger=nf,l.isSet=Ka,l.isString=or,l.isSymbol=_e,l.isTypedArray=Gt,l.isUndefined=rf,l.isWeakMap=of,l.isWeakSet=af,l.join=sc,l.kebabCase=Jf,l.last=Me,l.lastIndexOf=pc,l.lowerCase=Xf,l.lowerFirst=Zf,l.lt=lf,l.lte=sf,l.max=Ym,l.maxBy=Km,l.mean=Vm,l.meanBy=qm,l.min=Jm,l.minBy=Xm,l.stubArray=Ei,l.stubFalse=Ai,l.stubObject=km,l.stubString=Mm,l.stubTrue=Hm,l.multiply=Zm,l.nth=uc,l.noConflict=Am,l.noop=Ii,l.now=tr,l.pad=Qf,l.padEnd=jf,l.padStart=em,l.parseInt=tm,l.random=$f,l.reduce=fd,l.reduceRight=md,l.repeat=nm,l.replace=rm,l.result=Pf,l.round=Qm,l.runInContext=m,l.sample=yd,l.size=xd,l.snakeCase=im,l.some=bd,l.sortedIndex=hc,l.sortedIndexBy=vc,l.sortedIndexOf=xc,l.sortedLastIndex=bc,l.sortedLastIndexBy=Sc,l.sortedLastIndexOf=Cc,l.startCase=am,l.startsWith=lm,l.subtract=jm,l.sum=eg,l.sumBy=tg,l.template=sm,l.times=Om,l.toFinite=rt,l.toInteger=k,l.toLength=qa,l.toLower=pm,l.toNumber=He,l.toSafeInteger=pf,l.toString=Y,l.toUpper=um,l.trim=cm,l.trimEnd=dm,l.trimStart=fm,l.truncate=mm,l.unescape=gm,l.uniqueId=Um,l.upperCase=ym,l.upperFirst=Si,l.each=Pa,l.eachRight=ka,l.first=La,_i(l,function(){var e={};return Ke(l,function(t,r){K.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=d,Be(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Be(["drop","take"],function(e,t){U.prototype[e]=function(r){r=r===i?1:re(k(r),0);var o=this.__filtered__&&!t?new U(this):this.clone();return o.__filtered__?o.__takeCount__=ue(r,o.__takeCount__):o.__views__.push({size:ue(r,Ye),type:e+(o.__dir__<0?"Right":"")}),o},U.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Be(["filter","map","takeWhile"],function(e,t){var r=t+1,o=r==Ti||r==cl;U.prototype[e]=function(a){var p=this.clone();return p.__iteratees__.push({iteratee:L(a,3),type:r}),p.__filtered__=p.__filtered__||o,p}}),Be(["head","last"],function(e,t){var r="take"+(t?"Right":"");U.prototype[e]=function(){return this[r](1).value()[0]}}),Be(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");U.prototype[e]=function(){return this.__filtered__?new U(this):this[r](1)}}),U.prototype.compact=function(){return this.filter(xe)},U.prototype.find=function(e){return this.filter(e).head()},U.prototype.findLast=function(e){return this.reverse().find(e)},U.prototype.invokeMap=O(function(e,t){return typeof e=="function"?new U(this):this.map(function(r){return ln(r,e,t)})}),U.prototype.reject=function(e){return this.filter(rr(L(e)))},U.prototype.slice=function(e,t){e=k(e);var r=this;return r.__filtered__&&(e>0||t<0)?new U(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(t=k(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},U.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},U.prototype.toArray=function(){return this.take(Ye)},Ke(U.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=l[o?"take"+(t=="last"?"Right":""):t],p=o||/^find/.test(t);!a||(l.prototype[t]=function(){var u=this.__wrapped__,f=o?[1]:arguments,y=u instanceof U,S=f[0],C=y||P(u),w=function(N){var W=a.apply(l,pt([N],f));return o&&E?W[0]:W};C&&r&&typeof S=="function"&&S.length!=1&&(y=C=!1);var E=this.__chain__,T=!!this.__actions__.length,B=p&&!E,M=y&&!T;if(!p&&C){u=M?u:new U(this);var R=e.apply(u,f);return R.__actions__.push({func:jn,args:[w],thisArg:i}),new De(R,E)}return B&&M?e.apply(this,f):(R=this.thru(w),B?o?R.value()[0]:R.value():R)})}),Be(["pop","push","shift","sort","splice","unshift"],function(e){var t=In[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(o&&!this.__chain__){var p=this.value();return t.apply(P(p)?p:[],a)}return this[r](function(u){return t.apply(P(u)?u:[],a)})}}),Ke(U.prototype,function(e,t){var r=l[t];if(r){var o=r.name+"";K.call(Ot,o)||(Ot[o]=[]),Ot[o].push({name:t,func:r})}}),Ot[Kn(i,be).name]=[{name:"wrapper",func:i}],U.prototype.clone=mp,U.prototype.reverse=gp,U.prototype.value=yp,l.prototype.at=Yc,l.prototype.chain=Kc,l.prototype.commit=Vc,l.prototype.next=qc,l.prototype.plant=Xc,l.prototype.reverse=Zc,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qc,l.prototype.first=l.prototype.head,jt&&(l.prototype[jt]=Jc),l},kt=Vs();xt?((xt.exports=kt)._=kt,wr._=kt):ae._=kt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"Masked Aadhaar",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"Data Card",const:"card"},{title:"Check Box",const:"CheckBox"},{title:"Container",const:"WrapperSection"},{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:"Input Slider",const:"InputSlider"},{title:"Label",const:"Box"},{title:"Leaderboard",const:"LeaderBoard"},{title:"Multi-Select Dropdown",const:"MultipleSelect"},{title:"Pan Card Masked",const:"PanCardText"},{title:"Pop Up",const:"PopUp"},{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:"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:"Column Group",const:"ColumnGroup"},{title:"Thought of the day",const:"Thought"},{title:"Pdf Viewer",const:"PdfViewer"}]},columnFormat:{oneOf:[{title:"Date Column",const:"date"},{title:"DateTime Column",const:"dateTime"},{title:"Amount Column",const:"amount"}]},orientation:{oneOf:[{title:"Horizontal",const:"horizontal"},{title:"Vertical",const:"vertical"}]},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},layout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},cardLayout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},value:{type:"array",items:{type:"object",properties:{label:{type:"string"},value:{type:"string"}}}},columns:{type:"array",items:{type:"object",properties:{header:{type:"string"},accessorKey:{type:"string"},widgetType:{type:"string"}}}},events:{type:"array",items:{type:"object",properties:{eventType:{type:"string"},configType:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},Table_Download_Keys_Name:{type:"array",items:{type:"object",properties:{KeyName:{type:"string"}}}},sizeHolder:{type:"array",items:{type:"object",properties:{keyName:{type:"string"},value:{type:"string"}}}},enableColumnFilter:{type:"array",items:{type:"object",properties:{keyName:{type:"string"}}}},filteringOptions:{type:"array",items:{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:{label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},InputFormatingAndMasking:{type:"array",items:{type:"object",properties:{formatElement:{type:"string"}}}},validation:{type:"array",items:{type:"object",properties:{componentName:{type:"string"},validationType:{type:"string",oneOf:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"}]},validationValue:{type:"string"}}}},buttonType:{type:"string",oneOf:[{title:"Button",const:"Button"},{title:"IconButton",const:"IconButton"},{title:"HybridButton",const:"ButtonWithIconAndText"}]},defaultStyle:{type:"string",oneOf:[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]},graphType:{type:"string",oneOf:[{title:"Bar Graph",const:"BarGraph"},{title:"Stack Bar Graph",const:"StackBarGraph"},{title:"Line Graph",const:"LineGraph"},{title:"Pie Graph",const:"PieGraph"},{title:"Horizontal Bar Graph",const:"HorizontalBarGraph"},{title:"Stack Horizontal Bar Graph",const:"HorizontalStackBarGraph"}]},iconName:{type:"string",oneOf:[{title:"Search Icon",const:"SearchIcon"},{title:"Edit Icon",const:"EditIcon"},{title:"Add Icon",const:"AddIcon"},{title:"Send Icon",const:"SendIcon"},{title:"Approve Icon",const:"ApproveIcon"},{title:"RejectIcon",const:"RejectIcon"},{title:"Back Icon",const:"BackIcon"},{title:"Back Icon Second ",const:"BackIcon2"},{title:"Pending Icon",const:"PendingIcon"},{title:"View Icon",const:"ViewIcon"},{title:"Notification Icon",const:"NotificationIcon"},{title:"Person Icon",const:"PersonIcon"},{title:"Report Icon",const:"ReportIcon"},{title:"Error Icon",const:"ErrorIcon"},{title:"Refresh Icon",const:"RefreshIcon"},{title:"Download Icon",const:"DownloadIcon"},{title:"Exception Icon",const:"ExceptionIcon"}]},color:{type:"string",oneOf:[{title:"Primary",const:"primary"},{title:"Secondary",const:"secondary"},{title:"Error",const:"error"},{title:"Success",const:"success"},{title:"Info",const:"info"}]},name:{type:"string"},label:{type:"string"},RemoveItemButton:{disabled:!0}},required:["name"]},componentBasicUiSchema=n=>{var i;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/proc",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",options:{widget:"Array"},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 ?"},style:{marginTop:"-20px",fontSize:"20px","&.MuiTypography-root":{padding:"10px 30px 20px 30px",textAlign:"center",lineHeight:"1"}}}},{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",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",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 ?"},style:{marginTop:"-20px",fontSize:"20px","&.MuiTypography-root":{padding:"10px 30px 20px 30px",textAlign:"center",lineHeight:"1"}}}},{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",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",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:"Box"},config:{layout:12,main:{heading:""},style:{paddingLeft:n.spacing(3),width:"100%",fontSize:"10px",color:n.palette.grey[600],position:"fixed",bottom:"24px",backgroundColor:n.palette.background.default,borderBottom:`1px solid ${n.palette.common.black}29`,borderTop:`1px solid ${n.palette.common.black}29`}}},{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:((i=n==null?void 0:n.palette)==null?void 0:i.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/proc",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",options:{widget:"Array"},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}},elements:[{accessorKey:"eventType",header:"Event's Type",type:"string",size:300},{accessorKey:"Handler",header:"Handler",type:"string",size:200},{accessorKey:"Edit_Approve_Records",header:"Edit",size:150,type:"action",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{size:"small",icon:"TableEditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{accessorKey:"Reject_Records",header:"Delete",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"IconButton"},config:{main:{icon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Event",size:150,type:"action",widget:{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",tooltipMessage:"Reject This Record",styleDefault:!0}}}}]}]}),emptyBox$1=(n,s)=>s!==void 0?{type:"Control",scope:`#/properties/${n}`,options:{widget:"EmptyBox"},config:{layout:s}}:{type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}},cardLayout={type:"Control",scope:"#/properties/cardLayout",options:{widget:"Array"},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: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."}}},emptyBox$1("cardEmpty")]},getArrayControl=(n,s,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"Array"},config:{layout:12,main:{label:i,childElementLabel:i},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:`#/properties/${s}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:i||"Labels for Tab"}}},emptyBox$1("ArrayControlEmpty1",{xs:6,sm:6,md:8,lg:8})]}),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,s)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:s}}}),getRadioInputField=(n,s,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:s,options:i}}}),buildWrapper=(n,s)=>({type:"WrapperLayout",config:{main:{label:n||"Details",isAccordion:!0}},elements:s||[]}),getTextArea=(n,s,i,d)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"TextArea"},config:{layout:d||12,main:{label:s,minRows:8,hideButton:i,enableCodeEditor:!0}}}),getSelectField=(n,s,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:s,type:"text"}}}),getMultiSelectField=(n,s)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{multiple:!0,label:s,options:[]}}}),BaseSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[]},buildPropertiesSection=function(n){let s=_.cloneDeep(BaseSection);switch(n){case"TreeMap":s.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":s.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":s.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":s.elements=[getRadioInputField("resetButton","Reset Button",["YES","NO"]),getRadioInputField("defaultButtonAvailable","Use Default Buttons ",["YES","NO"]),getInputField("resetText","Reset Text"),getInputField("completeText","Complete Text"),getSelectField("orientation","Orientation Type"),emptyBox$1("Stepper",{xs:6,sm:6,md:4,lg:4}),getArrayControl("sectionLabels","label")];break;case"PopUp":s.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"Text":s.elements=[getInputField("placeholder","Placeholder"),emptyBox$1("TextEmpty1",{xs:6,sm:6,md:4,lg:4}),emptyBox$1("TextEmpty1",{xs:0,sm:0,md:4,lg:4}),getArrayControl("InputFormatingAndMasking","formatElement","Format Element")];break;case"TextArea":s.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":s.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":s.elements=[getInputField("rank","Rank"),getInputField("height","Height"),emptyBox$1("RankCardEmpty1",{xs:0,sm:0,md:4,lg:4})];break;case"LeaderBoard":s.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"),emptyBox$1("LeaderBoardEmpty1",{xs:6,sm:6,md:0,lg:0})];break;case"CardSlider":s.elements=[getInputField("heading","Heading"),getInputField("iconName","Icon Name")];break;case"ProgressBar":case"ProgressBarCard":s.elements=[getInputField("heading","Heading"),getInputField("bottomLabel_1","First BottomLabel"),getInputField("bottomLabel_2","Second BottomLabel"),getInputField("bottomLabel_3","Third BottomLabel"),emptyBox$1("ProgressBarCardEmpty1"),emptyBox$1("ProgressBarCardEmpty2")];break;case"card":s.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"Button":s.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"Graph":s.elements=[getInputField("height","Height"),getInputField("heading","Heading"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getInputField("bottomLabel","Bottom Label"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:0,lg:0}),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getInputField("yAxisValue","Y-AxisValue"),getInputField("xAxisValue","X-AxisValue"),getRadioInputField("bottomAxisAngle","Bottom Axis Angled",["YES","No"]),getInputField("leftMargin","Left Margin"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:8,lg:6}),getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")];break;case"WrapperSection":s.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("isAccordion","Accordion",["YES","No"]),getRadioInputField("defaultStyle","Default Style",["YES","No"]),getInputField("rowSpacing","Row Spacing"),emptyBox$1("WrapperSectionEmpty1",{xs:6,sm:0,md:4,lg:4}),emptyBox$1("WrapperSectionEmpty2")];break;case"TabSection":s.elements=[getRadioInputField("verticalOrientation","Vertical Orientation",["YES","NO"]),getRadioInputField("lazyLoad","Lazy Load",["YES","NO"]),emptyBox$1("TabEmpty"),getArrayControl("sectionLabels","label")];break;case"Table":s.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"),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"]),emptyBox$1("LazyLoadingTableEmpty2"),emptyBox$1("LazyLoadingTableEmpty3")]),getArrayControl("Table_Download_Keys_Name","KeyName","Table Key Name"),sizeHolder,getArrayControl("enableColumnFilter","keyName","Component Name")];break;case"Radio":s.elements=[getArrayControl("sectionLabels","label","Options Of Radio")];break;case"Select":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"]),emptyBox$1("SelectEmpty")];break;case"MultipleSelect":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),emptyBox$1("MultipleSelectEmpty1",{xs:0,sm:6,md:4,lg:4}),emptyBox$1("MultipleSelectEmpty2")];break;case"Thought":s.elements=[getTextArea("thought","Today's thought",!1)];break}return s},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}},elements:[{accessorKey:"name",header:"Name",type:"string",size:300},{accessorKey:"type",header:"Type",type:"string",size:200},{header:"Edit Record",field:"Reject_Records",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"TableEditIcon",size:"small",onClick:"editComponents",tooltipMessage:"Reject This Record"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Delete",field:"Reject_Records",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"Bin",onClick:"deletePopUpComponent",tooltipMessage:"Reject This Record"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Component",size:150,type:"action",widget:{type:"Control",scope:"#/properties/Copy_Component",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!0,disabled:!1}}}}]}]}),ValueTab={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/value",options:{widget:"Array"},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",options:{widget:"Array"},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 s=_.cloneDeep(n);let i={};return s.pageName&&delete s.pageName,s.eventsSelected&&delete s.eventsSelected,(s.type==="Table"||s.type==="WrapperSection"||s.type==="TabSection")&&(i.elements=s.elements||[],s.elements&&delete s.elements),i.events=s.events||[],s.events&&delete s.events,i={...s,...i},i};const createLayoutFormat=n=>{if(_.isEmpty(n))return{xs:12,sm:12,md:12,lg:12};let s={xs:12,sm:12,md:6,lg:6};return n.map(i=>{s[i.key||"xs"]=+i.value||5.5}),s},flatObjectValueInArray=(n=[])=>{if(n.length<1)return;const s=Object.keys(n[0])[0];return n.map(d=>d[s])},clearFromSessionStorage=()=>{sessionStorage.removeItem("pageFormdata")},getNavigationHistory=(n,s)=>{if(s){let i=n.name;const d=s.split("."),h=[];return d.map((c,g)=>{if(g===0){h.push(c);return}h.push(`${h[g-1]}.${c}`)}),h.map(c=>{const g=_.get(n,c);g?i=i+` > ${(g==null?void 0:g.name)||(g==null?void 0:g.eventType)}`:i=i+" > NewComponent"}),{pageName:i}}},saveFormdataInSessionStorage=(n,s)=>{let i;if(s){const d=getFormdataFromSessionStorage();i=_.set(d,s,buildConfig(n))}else i=buildConfig(n);return sessionStorage.setItem("pageFormdata",JSON.stringify(i)),i},getFormdataFromSessionStorage=n=>{const s=sessionStorage.getItem("pageFormdata")?JSON.parse(sessionStorage.getItem("pageFormdata")):void 0;let i;return n&&(i=_.get(s,n),i={...i,...getNavigationHistory(s,n)}),i||(i=getNavigationHistory(s,n)),i||s};async function saveHandler(n,s,i){var c,g;(c=n.searchParams)==null||c.get("id");const d=(g=n.searchParams)==null?void 0:g.get("path");saveFormdataInSessionStorage(n.ctx.core.data,d);const h=JSON.parse(sessionStorage.getItem("pageFormdata"));if(_.isEmpty(n.ctx.core.errors))try{const b=await i(n,s,h);navigateHandler(n,!0,"/PageMasterRecords")}catch{navigateHandler(n,!1)}}const navigateHandler=(n,s,i)=>{s?(sessionStorage.removeItem("pageFormdata"),n.navigate(i||-1),n.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Errors on Page"}))};function okHandler(n){var i;const s=(i=n.searchParams)==null?void 0:i.get("path");_.isEmpty(n.ctx.core.errors)?(saveFormdataInSessionStorage(n.ctx.core.data,s),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","Validation"],LeaderBoard:["Core","Components","Properties","Events","Style","Validation"],WrapperSection:["Core","Components","Properties","Style","Validation"],TabSection:["Core","Components","Properties","Style","Validation"],SpeedoMeter:["Core","Properties","Events","Style","Validation"],card:["Core","Properties","Events","Style","Validation"],UploadFile:["Core","Events","Style","Validation"],Graph:["Core","Properties","Events","Style","Validation"],DownloadFile:["Core","Events","Style","Validation"],Box:["Core","Events","Style","Validation"],Properties:["Core","Properties","Events","Style","Validation"],ProgressBarCard:["Core","Properties","Events","Style","Validation"],RankCard:["Core","Properties","Events","Style","Validation"],Slider:["Core","Components","Events","Style","Validation"],Timer:["Core","Events","Style","Validation"],Rank:["Core","Events","Style","Validation"],Button:["Core","Properties","Events","Style","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","Events","Style","Validation"],Text:["Core","Properties","Events","Style","Validation"],TextArea:["Core","Properties","Events","Style","Validation"],PopUp:["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","Validation"]};function refreshPage(n,s){var b,I;const i=_.cloneDeep(componentBasicUiSchema(s.theme.myTheme)),d=JSON.parse(sessionStorage.getItem("pageFormdata"));if(n){const F={Core:CoreSection,Value:ValueTab,Style:StyleSection,Events:EventSection(s.theme.myTheme),Components:TableSection(s.theme.myTheme),Properties:buildPropertiesSection(n),Validation:ValidationSection},z=(b=sectionLabels[n])==null?void 0:b.map(H=>F[H]);i.elements[0].config.main.tabLabels=sectionLabels[n]||["Core","Style","Events","Validation"],i.elements[0].elements=z||[CoreSection,StyleSection,EventSection(s.theme.myTheme),ValidationSection]}const c=((I=s.searchParams)==null?void 0:I.get("path")).split("."),g=c.reduce((F,z,H)=>{var de;if(H===c.length-1)return F;const Q=z.split("[")[1],G=parseInt(Q.slice(0,-1));return(de=F==null?void 0:F.elements)==null?void 0:de[G]},d);(g==null?void 0:g.type)==="Table"&&(i.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"}}},i.elements[0].elements[0].elements[5]={type:"Control",scope:"#/properties/filteringOptions",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Filter Mode",multiple:!0}}},i.elements[0].elements[0].elements[6]={type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:6,md:4,lg:9}},options:{widget:"EmptyBox"}}),sessionStorage.getItem("copiedConfig")&&this.ElementPathSetter(i),s.setUiSchema(i)}var Component=(n,s,i,d)=>({setPage:async function(){const h=await this.getFormdata();n.setFormdata(h);const c=this.getSchema();n.setSchema(c),this.refreshPage(h==null?void 0:h.type,n)},refreshPage,getFormdata:function(){var c;const h=(c=n.searchParams)==null?void 0:c.get("path");return getFormdataFromSessionStorage(h)},getSchema:function(){const h=_.cloneDeep(ComponentSchema);return sessionStorage.getItem("copiedConfig")&&(h.properties.RemoveItemButton.disabled=!1),h},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,d,i),onChange:function(){var h,c,g,b;((h=n==null?void 0:n.formData)==null?void 0:h.type)!==((c=n==null?void 0:n.newData)==null?void 0:c.type)&&((g=n==null?void 0:n.newData)==null?void 0:g.type)!==void 0&&this.refreshPage((b=n==null?void 0:n.newData)==null?void 0:b.type,n)},editComponents:function(){var b,I,F;const h=s.path.split(".")[1],c=(b=n.searchParams)==null?void 0:b.get("path"),g=(I=n.searchParams)==null?void 0:I.get("id");if(saveFormdataInSessionStorage(n.ctx.core.data,c),c){const H=`${(F=n.searchParams)==null?void 0:F.get("path")}.elements[${h}]`;n.searchParams.set("path",H),n.setSearchParams(n.searchParams),this.setPage()}else n.navigate(`/Component?path=${`elements[${h}]`}&id=${g}`)},deleteComponents:function(h=!0){var F;const c=(F=n.searchParams)==null?void 0:F.get("path"),g=sessionStorage.getItem("rowId");n.formData.elements.splice(g,1);const b=saveFormdataInSessionStorage(n.ctx.core.data,c),I=c?_.get(b,c):b;n.setFormdata(I),h&&n.updateDialog("popUpComponentSection"),sessionStorage.removeItem("rowId")},deleteEvent:function(h=!0){var I;const c=(I=n.searchParams)==null?void 0:I.get("path"),g=sessionStorage.getItem("rowId");n.formData.events.splice(g,1);const b=saveFormdataInSessionStorage(n.ctx.core.data,c);n.setFormdata(_.get(b,c)),h&&n.updateDialog("popUpEventSection"),sessionStorage.removeItem("rowId")},widgetAddClickHandler:function(){var g;Array.isArray(n.formData.elements)||(n.formData.elements=[]);const h=(g=n.searchParams)==null?void 0:g.get("path");saveFormdataInSessionStorage(n.ctx.core.data,h);const c=`${h}.elements[${n.formData.elements.length}]`;n.searchParams.set("path",c),n.setSearchParams(n.searchParams),this.setPage()},eventEditHandler:function(){var I,F;const h=s.path.split(".")[1],c=(I=n.searchParams)==null?void 0:I.get("path"),g=(F=n.searchParams)==null?void 0:F.get("id");saveFormdataInSessionStorage(n.ctx.core.data,c);const b=`${c}.events[${h}]`;n.navigate(`/ComponentEvents?path=${b}&id=${g}`)},eventAddHandler:function(){var b,I;const h=(b=n.searchParams)==null?void 0:b.get("path"),c=(I=n.searchParams)==null?void 0:I.get("id");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,h);const g=`${h}.events[${n.formData.events.length}]`;n.navigate(`/ComponentEvents?path=${g}&id=${c}`)},backHandler:function(){n.navigate(-1)},deletePopUpComponent:function(){const h=s.path.split(".")[1];sessionStorage.setItem("rowId",h),n.updateDialog("popUpComponentSection")},deletePopUpEvent:function(){const h=s.path.split(".")[1];sessionStorage.setItem("rowId",h),n.updateDialog("popUpEventSection")},copyPasteElement:function(h,c=this.setPage.bind(this)){var I;const[g,b]=(I=s.path.split(".").pop())==null?void 0:I.split("_");g==="Copy"?this.CopyElement(h,b):this.PasteElement(c,b)},CopyElement:function(h=n,c){var Q;const g=lodash.exports.cloneDeep(h.schema),b=lodash.exports.cloneDeep(h.uiSchema);g.properties.RemoveItemButton.disabled=!1;const I=s.path.split(".")[1],F=(Q=n.searchParams)==null?void 0:Q.get("path"),z=this.elementPathHandler(F,I,c),H=getFormdataFromSessionStorage(z);this.ElementPathSetter(b,H),sessionStorage.setItem("copiedConfig",JSON.stringify(H)),n.setSchema(g),n.setUiSchema(b)},PasteElement:function(h,c){var Q;if(!sessionStorage.getItem("copiedConfig")){n.setNotify({FailMessage:"No item has been copied.",Fail:!0});return}const g=(Q=n.searchParams)==null?void 0:Q.get("path");Array.isArray(n.formData.elements)||(n.formData.elements=[]),Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,g);const b=getFormdataFromSessionStorage(g),I=c==="Component"?b.elements.length:b.events.length,F=this.elementPathHandler(g,I,c),z=JSON.parse(sessionStorage.getItem("copiedConfig")),H={Events:" The Events cannot be integrated into the component section.",Component:"The component cannot be integrated into the Events section."};z.Handler&&c==="Component"?n.setNotify({FailMessage:H.Events,Fail:!0}):z.name&&c==="Events"?n.setNotify({FailMessage:H.Component,Fail:!0}):(saveFormdataInSessionStorage(z,F),h())},RemoveItemButton:function(h=n){const c=lodash.exports.cloneDeep(h.schema),g=lodash.exports.cloneDeep(h.uiSchema);c.properties.RemoveItemButton.disabled=!0,g.elements[2].elements[1].config.main.heading="No element copied",sessionStorage.removeItem("copiedConfig"),n.setSchema(c),n.setUiSchema(g)},elementPathHandler:function(h,c,g){return g==="Component"?h?`${h}.elements[${c}]`:`elements[${c}]`:h?`${h}.events[${c}]`:`events[${c}]`},ElementPathSetter:function(h,c){const g=c||JSON.parse(sessionStorage.getItem("copiedConfig"));h.elements[2].elements[1].config.main.heading=`Copied Path: ${g.pageName}`}}),pageMaster=n=>{const{store:s,dynamicData:i,submitHandler:d,service:h}=n;return{setPage:async function(){const c=await this.getFormdata();s.setFormdata(c);const g=await this.getUiSchema(),b=await this.getSchema();s.setSchema(b),s.setUiSchema(g)},getFormdata:async function(){var I;const c=(I=s.searchParams)==null?void 0:I.get("id"),g=await n.pageConfigProvider(c),b=getFormdataFromSessionStorage();return b||(saveFormdataInSessionStorage(g),g)},getUiSchema:function(){const c=_.cloneDeep(PageMasterUiSchema(s.theme.myTheme));return sessionStorage.getItem("copiedConfig")&&Component(s,i,d,h).ElementPathSetter(c),c},getSchema:()=>{const c=_.cloneDeep(PageMasterSchema);return sessionStorage.getItem("copiedConfig")&&(c.properties.RemoveItemButton.disabled=!1),c},backHandler:()=>{sessionStorage.removeItem("pageFormdata"),s.navigate("/PageMasterRecords")},onAddClickHandler:function(){var b;const c=(b=s.searchParams)==null?void 0:b.get("id");Array.isArray(s.formData.elements)||(s.formData.elements=[]);const g=saveFormdataInSessionStorage(s.ctx.core.data);c?s.navigate(`/Component?path=${`elements[${g==null?void 0:g.elements.length}]`}&id=${c}`):s.navigate(`/Component?path=${`elements[${g==null?void 0:g.elements.length}]`}`)},saveHandler:async()=>await saveHandler(s,h,d),Edit_Components:Component(s,i,d,h).editComponents,Delete_Components:async function(){await Component(s,i,d,h).deleteComponents(!1),s.updateDialog("popUpPageMasterComponent")},eventAddHandler:function(){var b;const c=(b=s.searchParams)==null?void 0:b.get("id");Array.isArray(s.formData.events)||(s.formData.events=[]),saveFormdataInSessionStorage(s.ctx.core.data);const g=`events[${s.formData.events.length}]`;s.navigate(`/ComponentEvents?path=${g}&id=${c}`)},editEvent:function(){var I;const c=i.path.split(".")[1],g=(I=s.searchParams)==null?void 0:I.get("id");saveFormdataInSessionStorage(s.ctx.core.data);const b=`events[${c}]`;s.navigate(`/ComponentEvents?path=${b}&id=${g}`)},deleteEvent:function(){const c=sessionStorage.getItem("rowId");s.formData.events.splice(c,1);const g=saveFormdataInSessionStorage(s.ctx.core.data);s.setFormdata(g),s.updateDialog("popUpPageMasterEvent"),sessionStorage.removeItem("rowId")},deletePopUpComponent:function(){const c=i.path.split(".")[1];sessionStorage.setItem("rowId",c),s.updateDialog("popUpPageMasterComponent")},deletePopUpEvent:function(){const c=i.path.split(".")[1];sessionStorage.setItem("rowId",c),s.updateDialog("popUpPageMasterEvent")},copyPasteElement:function(){Component(s,i,d,h).copyPasteElement(s,this.setPage.bind(this))},RemoveItemButton:function(){Component(s,i,d,h).RemoveItemButton(s)}}};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:"Back",const:"onBack"},{title:"Next",const:"onNext"},{title:"Row Movement",const:"onRowMovement"},{title:"Download",const:"onDownload"},{title:"Fail",const:"Fail"}]},Handler:{type:"string",oneOf:[{title:"Custom",const:"custom"},{title:"API",const:"api"},{title:"Inbuilt Function",const:"inBuiltFunction"},{title:"Refresh",const:"refresh"}]},inBuiltFunctionType:{type:"string",oneOf:[{title:"RankProvider",const:"RankProvider"},{title:"Download File",const:"downloadFile"},{title:"Download",const:"download"}]},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}},RemoveItemButton:{disabled:!0}},required:["eventType","Handler"]},EventUiSchema=n=>{var i;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}},elements:[{accessorKey:"eventType",header:"Event's Type",size:300,type:"string"},{accessorKey:"Handler",header:"Handler",size:200,type:"string"},{accessorKey:"Edit_Approve_Records",header:"Edit",type:"action",size:150,widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{size:"small",icon:"TableEditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{accessorKey:"Reject_Records",header:"Delete",type:"action",size:150,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Event",type:"action",size:150,widget:{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!0}}}}]}]},{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 ?"},style:{marginTop:"-20px",fontSize:"20px","&.MuiTypography-root":{padding:"10px 30px 20px 30px",textAlign:"center",lineHeight:"1"}}}},{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",color:"info",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",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",startIcon:"ApproveIcon",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",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:"Box"},config:{layout:12,main:{heading:""},style:{paddingLeft:n.spacing(3),width:"100%",fontSize:"10px",color:n.palette.grey[600],position:"fixed",bottom:"24px",backgroundColor:n.palette.background.default,borderBottom:`1px solid ${n.palette.common.black}29`,borderTop:`1px solid ${n.palette.common.black}29`}}},{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:((i=n==null?void 0:n.palette)==null?void 0:i.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",options:{widget:"Array"},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",options:{widget:"Array"},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",options:{widget:"Array"},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,s,i,d,h)=>({setPage:async function(){const c=await this.getFormData();n.setFormdata(c);const g=await this.getSchema();n.setSchema(g),this.refreshPage(c.Handler,n)},refreshPage:(c,g)=>{const b=_.cloneDeep(EventUiSchema(g.theme.myTheme)),I=_.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),I.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,I.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),I.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,I.properties.refreshElements.required=["value"],I.properties.refreshElements.items.required=["value"],I.required=["eventType","Handler","refreshElements"])),h&&(I.properties.inBuiltFunctionType.oneOf=[...I.properties.inBuiltFunctionType.oneOf,...h]),sessionStorage.getItem("copiedConfig")&&(Component(g,s,i,d).ElementPathSetter(b),I.properties.RemoveItemButton.disabled=!1),g.setSchema(I),g.setUiSchema(b)},getFormData:Component(n,s,i,d).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>{const c=_.cloneDeep(EventSchema);return sessionStorage.getItem("copiedConfig")&&(c.properties.RemoveItemButton.disabled=!1),c},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,d,i),onChange:function(){var c,g,b;((c=n==null?void 0:n.formData)==null?void 0:c.Handler)!==((g=n==null?void 0:n.newData)==null?void 0:g.Handler)&&((b=n==null?void 0:n.newData)==null?void 0:b.Handler)!==void 0&&this.refreshPage(n.newData.Handler||n.formdata.Handler,n)},addEvent:function(){var b,I,F;const c=(b=n.searchParams)==null?void 0:b.get("path");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,c);const g=`${c}.events[${(F=(I=n.formData)==null?void 0:I.events)==null?void 0:F.length}]`;n.searchParams.set("path",g),n.setSearchParams(n.searchParams),this.setPage()},editEvent:function(){var I;const c=s.path.split(".")[1],g=(I=n.searchParams)==null?void 0:I.get("path");saveFormdataInSessionStorage(n.ctx.core.data,g);const b=`${g}.events[${c}]`;n.searchParams.set("path",b),n.setSearchParams(n.searchParams),this.setPage()},deleteEvent:async function(){await Component(n,s,i,d).deleteEvent(!1),n.updateDialog("popUpEvent")},backHandler:function(){n.navigate(-1)},deletePopUpEvent:function(){const c=s.path.split(".")[1];sessionStorage.setItem("rowId",c),n.updateDialog("popUpEvent")},copyPasteElement:function(){Component(n,s,i,d).copyPasteElement(n,this.setPage.bind(this))},RemoveItemButton:function(){Component(n,s,i,d).RemoveItemButton(n)}});const downloadFile$1=n=>{const s=n.name.split("."),i=n.data,d=window.atob(i);let h;h=new File([d],s[s.length-1]);const c=URL.createObjectURL(h),g=document.createElement("a");g.href=s[s.length-1]==="pdf"?"data:application/octet-stream;base64,"+i:c,g.download=`${n.name}`,document.body.appendChild(g),g.click(),URL.revokeObjectURL(c),document.body.removeChild(g)},doDownload=(n,s)=>{let i=`${s.defaults.baseURL}/${n.path}`;n!=null&&n.params&&Object.keys(n==null?void 0:n.params).map((c,g)=>{i=i+`${g===0?"?":"&"}${c}=${n==null?void 0:n.params[c]}`});const d=document.createElement("a");d.href=i,document.body.appendChild(d),d.click(),d.parentNode.removeChild(d)},executeEvents=n=>{var h,c,g;let s=[],i=null;if(n.config.isSync!=="Yes")return shouldEventExecute(n).then(b=>{if(!b)throw new Error("onStart Event not allow to run Parent Events");return executeEventsHandler(n)}).then(b=>{var F;i=b,s=(F=n.config)==null?void 0:F.events.filter(z=>z.eventType==="Success")}).catch(b=>{var z,H;const I=(H=(z=n.config)==null?void 0:z.events)==null?void 0:H.filter(Q=>Q.eventType==="Fail");s=(I==null?void 0:I.length)>0?I:[]}).then(()=>{if((s==null?void 0:s.length)>0)return s.reduce((b,I)=>b.then(()=>executeEvents({...n,config:I,parentEventOutput:i})),Promise.resolve())}).then(()=>i);if(!shouldEventExecute(n))return{response:void 0,events:void 0};try{i=executeEventsHandler(n),s=(h=n.config)==null?void 0:h.events.filter(F=>F.eventType==="Success")}catch{const b=(g=(c=n.config)==null?void 0:c.events)==null?void 0:g.filter(F=>F.eventType==="Fail");s=(b==null?void 0:b.length)>0?b:[]}if((s==null?void 0:s.length)>0)for(const b of s)executeEvents({...n,config:b,parentEventOutput:i});return i};function executeEventsHandler(n){var s,i,d;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.service,n.formDataHolder);if(n.config.Handler==="onBackHandler")return(s=n.store.functionParameters)==null?void 0:s.handleBack();if(n.config.Handler==="onNextHandler")return(i=n.store.functionParameters)==null?void 0:i.handleNext();if(n.config.Handler==="onResetHandler")return(d=n.store.functionParameters)==null?void 0:d.handleReset()}function getRefreshElements(n,s){var d;let i=[];return((d=n==null?void 0:n.refreshElements)==null?void 0:d.length)>0?i=n.refreshElements.map(h=>h.value):s!=null&&s.onLoad&&(i=Object.keys(s==null?void 0:s.onLoad)),i}async function executeRefreshHandler(n){const s=getRefreshElements(n.config,n.eventGroups);return Promise.allSettled(s.map(i=>{const d=n.eventGroups.onLoad[i];return d?Promise.allSettled(d.map(h=>executeEvents({...n,config:h,componentName:i}))):Promise.resolve()}))}function executeApiRequest(n){var h;const s={...(h=n.userValue)==null?void 0:h.payload},i={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},d=buildApiPayload(n.config,s,i,n.store,n.dynamicData,n.userValue,n.service);return n.service[n.config.method](n.config.path,d.body,{headers:d.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,s,i,d,h,c){i.type==="Select"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||d.setSchema(g=>{var b;return{...g,properties:{...g.properties,[s]:{...(b=g.properties)==null?void 0:b[s],oneOf:n.data}}}}):i.type==="MultipleSelect"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||d.setSchema(g=>{var b;return{...g,properties:{...g.properties,[s]:{...(b=g.properties)==null?void 0:b[s],type:"array",items:{oneOf:n==null?void 0:n.data}}}}}):i.type==="page"?_.isEmpty(n==null?void 0:n.data)&&(n==null?void 0:n.data)||(d.newData={...d.newData,...n==null?void 0:n.data},d.setFormdata(g=>({...g,...n==null?void 0:n.data}))):n&&(c[s]=n.data,d.setFormdata(g=>({...g,...c})))}const buildBodyFormat=(n,s,i,d)=>{let h={...i==null?void 0:i.payload};return n.map(c=>{var g,b,I,F,z;if(typeof(c==null?void 0:c.value)!="string")h[c.key]=c.value;else if((g=c==null?void 0:c.value)!=null&&g.startsWith("$userValue")){const H=c.value.substring(11);h[c.key]=_.get(i,H)}else if((b=c==null?void 0:c.value)!=null&&b.startsWith("$urlParams")){const H=c.value.substring(11),Q=(I=d==null?void 0:d.searchParams)==null?void 0:I.get(H);h[c.key]=Q}else if((F=c==null?void 0:c.value)!=null&&F.startsWith("$local")){const H=c.value.substring(7),Q=JSON.parse(sessionStorage.getItem(H)||'""');h[c.key]=Q}else if((z=c==null?void 0:c.value)!=null&&z.startsWith("$")){const H=c.value.substring(1);h[c.key]=_.get(s,H)}else(c==null?void 0:c.value)==="*"&&(c==null?void 0:c.key)==="*"?h={...h,...s}:(c==null?void 0:c.value)==="*"?h[c.key]=s:h[c.key]=c.value}),h},buildHeadersFormat=n=>{const s={"X-Requested-With":"XMLHttpRequest"};return n.map(i=>{s[i.key]=i.value}),s};function shouldEventExecute(n){var i,d,h;const s=(d=(i=n.config)==null?void 0:i.events)==null?void 0:d.filter(c=>c.eventType==="onStart");return(s==null?void 0:s.length)>0?((h=s[0])==null?void 0:h.isSync)!=="Yes"?executeEventsHandler({...n,config:s[0]}).then(c=>c):executeEventsHandler({...n,config:s[0]}):n.config.isSync!=="Yes"?Promise.resolve(!0):!0}function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var n,s;compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((s=(n=store==null?void 0:store.ctx)==null?void 0:n.core)==null?void 0:s.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 s(i){i.events&&i.events.forEach(d=>{var c;i.type&&(compType=i.type),eventGroups[d.eventType]||(eventGroups[d.eventType]={}),eventGroups[d.eventType][i.name]||(eventGroups[d.eventType][i.name]=[]);const h=(c=d==null?void 0:d.events)==null?void 0:c.find(g=>g.eventType==="Success");!h&&d.eventType==="onLoad"&&(d.events||(d.events=[]),d.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),!h&&(d.eventType==="onBack"||d.eventType==="onNext"||d.eventType==="onReset")&&(d.events||(d.events=[]),d.events.push({Handler:`${d.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),eventGroups[d.eventType][i.name].push({...d,type:compType})})}return s(n),n!=null&&n.elements&&n.elements.forEach(extractEvents),eventGroups};var service=n=>{eventGroups={};const s={};pageData&&!lodash.exports.isEmpty(pageData)&&typeof pageData=="object"&&(eventGroups=extractEvents(pageData==null?void 0:pageData.config));let i={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:{downloadFile:downloadFile$1,download:doDownload,...n.functionsProvider},eventGroups,functionsProvider:n.functionsProvider,formDataHolder:s};return{setPage:async function(){var F,z,H,Q,G,de,$e,ie,be,ot,se,Ae,pe;n.store.setFormdata({}),n.store.newData={};const d=sessionStorage.getItem("pagemasterMetaData");d?pageData=JSON.parse(d):(pageData=await n.pageDataProvider(),sessionStorage.setItem("pagemasterMetaData",JSON.stringify({schema:pageData==null?void 0:pageData.schema,uiSchema:pageData==null?void 0:pageData.uiSchema,config:pageData==null?void 0:pageData.config})));const h=pageData==null?void 0:pageData.config,c=pageData==null?void 0:pageData.uiSchema,g=new CustomEvent("pageNameChanged",{detail:{pageName:h.label}});window.dispatchEvent(g);const b=(z=(F=n==null?void 0:n.store)==null?void 0:F.theme)==null?void 0:z.myTheme;c.elements.push({type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:0,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:((Q=(H=b==null?void 0:b.palette)==null?void 0:H.text)==null?void 0:Q.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:2,width:"fit-content",left:"50%",position:"relative",margin:0,flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}},{type:"Control",scope:"#/properties/FooterBackIcon",options:{widget:"Box"},config:{main:{iconName:"PrevIcon",onClick:"backHandler",width:"fit-content"},style:{fill:(de=(G=b==null?void 0:b.palette)==null?void 0:G.primary)==null?void 0:de.main,width:20,height:0,top:0,right:{xs:"12px",sm:"84px"},position:"absolute",fontSize:"12px",cursor:"pointer",":hover":{fill:(ie=($e=b==null?void 0:b.palette)==null?void 0:$e.primary)==null?void 0:ie.dark},marginRight:"20px"}}},{type:"Control",scope:"#/properties/FooterBackHandlerText",options:{widget:"Box"},config:{main:{heading:"Previous Page",onClick:"backHandler"},style:{display:{xs:"none",sm:"flex"},textAlign:"left",lineHeight:1,height:0,width:"fit-content",color:(ot=(be=b==null?void 0:b.palette)==null?void 0:be.primary)==null?void 0:ot.main,fontSize:"12px",cursor:"pointer",marginLeft:"2px",top:3,right:"12px",position:"absolute",":hover":{color:(Ae=(se=b==null?void 0:b.palette)==null?void 0:se.primary)==null?void 0:Ae.dark},marginRight:"4px"}}}]});const I=(pe=pageData==null?void 0:pageData.schema)!=null?pe:{type:"object",properties:{}};eventGroups=extractEvents(h),i={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,functionsProvider:n.functionsProvider,serviceHolder:this,eventGroups,formDataHolder:s},await executeRefreshHandler({config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:this,eventGroups,formDataHolder:s}),n.store.setSchema(Te=>({...I,...Te,properties:{...I.properties,...Te.properties}})),c.elements.push(notifyUiSchema),n.store.setUiSchema(c)},onCellRenderer:d=>{var h,c,g;if(eventGroups.onCellRenderer){let b={};const I=((h=n.dynamicData)==null?void 0:h.tableButtonPath)||((g=(c=n==null?void 0:n.dynamicData)==null?void 0:c.path)==null?void 0:g.split(".")[0]);for(const F of eventGroups==null?void 0:eventGroups.onCellRenderer[I])i.store.functionParameters=d,b=executeEvents({...i,config:F,componentName:I});return b}return{}},onClick:function(){this.callHandler("onClick")},onMount:function(){this.callHandler("onMount")},onFileDownload:function(){this.callHandler("onDownload")},onFileUpload:function(){this.callHandler("onUpload")},backHandler:function(){n.store.navigate(-1)},onRowMovement:async function(d){const h=[{key:"direction",value:d.rowMovement.direction},{key:"movedRowId",value:d.rowMovement.movedRowId},{key:"targetRowId",value:d.rowMovement.targetRowId||[]}];await this.callExecuteEvents({path:d==null?void 0:d.path},h,"onRowMovement");const c=await this.callExecuteEvents({path:d==null?void 0:d.path},h,"onLoad");return c==null?void 0:c.data},onPaginationChange:async function(d){var g;const h=[{key:"size",value:d.pagination.pageSize},{key:"pageIndex",value:d.pagination.pageIndex},{key:"sorting",value:d.sorting||[]},{key:"filters",value:d.columnFilters||[]},{key:"globalFilter",value:(g=d.globalFilter)!=null?g:""}],c=await this.callExecuteEvents(d,h,"onLoad");return c==null?void 0:c.data},getSelectOptions:async function(d){if(d.serachValue!==""&&d.serachValue!==void 0){const h=[{key:"searchValue",value:d.serachValue},{key:"currentValue",value:d.currentValue}],c=await this.callExecuteEvents(d,h);return c==null?void 0:c.data}},onChange:async function(){if(eventGroups.onChange){const d=Object.keys(eventGroups.onChange);Promise.all(d.map(async h=>{var c,g;if(((c=n.store)==null?void 0:c.formData[h])!==n.store.newData[h]&&((g=n.store)==null?void 0:g.newData[h])!==void 0)for(const b of eventGroups.onChange[h])await executeEvents({...i,config:b,componentName:h})}))}},callExecuteEvents:async function(d,h,c){var b,I;let g;for(const F of(b=eventGroups==null?void 0:eventGroups[c])==null?void 0:b[d.path]){F.body?F.body=[...F.body,...h]:F.body=h;const z=(I=F==null?void 0:F.events)==null?void 0:I.filter(H=>H.Handler!=="mergeFormdata");F.events=z!=null?z:[],g=await executeEvents({...i,config:F,componentName:d.path})}return g},onBack:async function(d){var c,g;const h=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onBack",d),((g=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:g[h])===void 0&&(d==null||d.handleBack())},onNext:async function(d){var c,g;const h=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onNext",d),((g=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:g[h])===void 0&&(d==null||d.handleNext())},onReset:async function(d){var c,g;const h=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onReset",d),((g=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:g[h])===void 0&&(d==null||d.handleReset())},callHandler:async function(d,h){var g,b,I;const c=((g=n.dynamicData)==null?void 0:g.tableButtonPath)||n.dynamicData.path.split(".")[0];((b=eventGroups==null?void 0:eventGroups[d])==null?void 0:b[c])!==void 0&&Promise.all((I=eventGroups==null?void 0:eventGroups[d])==null?void 0:I[c].map(F=>{i.store.functionParameters=h,executeEvents({...i,config:F,componentName:c})}))},downloadFile:downloadFile$1,download:doDownload,...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 s=_.cloneDeep(leaderBoard);if(n.elements){const i=n.elements.map((d,h)=>d.type?{...{widget:buildUiSchema(d),accessorKey:d.name,header:d.label||d.name}}:{accessorKey:d.name,header:d.label||d.name});s.elements=i}return s.config.main.label=n.label,n.name&&(s.scope=`#/properties/${n.name}`),n.firstImage&&(s.config.main.firstImage=n.firstImage),n.secondImage&&(s.config.main.secondImage=n.secondImage),n.thirdImage&&(s.config.main.thirdImage=n.thirdImage),n.nameKey&&(s.config.main.nameKey=n.nameKey),n.imageKey&&(s.config.main.imageKey=n.imageKey),n.scoreKey&&(s.config.main.scoreKey=n.scoreKey),n.layout&&(s.config.layout=createLayoutFormat(n.layout)),n.style&&(s.config.style=JSON.parse(n.style)),s};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,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,n.heading&&(i.config.main.heading=n.heading),n.bottomLabel_3&&(i.config.main.bottomLabel_3=n.bottomLabel_3),n.bottomLabel_2&&(i.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(i.elements[0].config.main.bottomLabel_1=n.bottomLabel_1),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},buildProgressBar=(n,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,n.layout&&(i.config.layout=n.layout),i.config.main.heading=n.label,n.bottomLabel_3&&(i.config.main.bottomLabel_3=n.bottomLabel_3),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.bottomLabel_2&&(i.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(i.config.main.bottomLabel_1=n.bottomLabel_1),i},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:{}},barStyle:{}}}},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:{}},pieStyle:{}}}},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:{}},lineStyle:{}}}},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:{}},barStyle:{}}}},buildHorizontalBarGraph=(n,s)=>{const i=_.cloneDeep(HorizontalBarGraph);return i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.type=n.graphType,i.scope=s,i.config.main.header=n.heading,n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.barStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),i};var SpeedoMeter={type:"Control",scope:"#/properties/emptyBox",options:{widget:"SpeedoMeter"},config:{layout:{xs:12,sm:12,md:11.7,lg:11.7},width:350,segments:"5",main:{currentValueText:"Your Score",customSegmentLabels:[],data:{maxValue:1e5,value:5e4,minValue:0}},style:{segmentColors:[],ringWidth:57,needleHeightRatio:.7,needleColor:"#3f51b5",startColor:"red",textColor:"black",endColor:"green",containerStyle:{background:"white",padding:"20px",borderRadius:"20px",display:"flex",flexDirection:"column",margin:"auto",justifyContent:"center",fontFamily:"Roboto",fontWeight:500},headerStyle:{textAlign:"left",width:"100%",paddingBottom:"20px"}}}};const buildSpeedoMeter=(n,s)=>{const i=_.cloneDeep(SpeedoMeter);if(i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.heading&&(i.config.main.header=n.heading),n.segments&&(i.config.main.segments=n.segments),n.style){const d=JSON.parse(n.style);d!=null&&d.style&&(i.config.style={...i.config.style,...d.style}),d!=null&&d.containerStyle&&(i.config.style.containerStyle={...i.config.style.containerStyle,...d.containerStyle})}return n.width&&(i.config.main.width=n.width),n.speedoCaption&&(i.config.main.currentValueText=n.speedoCaption),n.data&&(i.config.main.data=n.data),n.needleColor&&(i.config.style.needleColor=n.needleColor),n.segments&&(i.config.style.segments=n.segments),n.endColor&&(i.config.style.endColor=n.endColor),n.startColor&&(i.config.style.startColor=n.startColor),n.segmentColors&&(i.config.style.segmentColors=n.segmentColors),i},buildPieGraph=(n,s)=>{const i=_.cloneDeep(PieGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.height&&(i.config.style.containerStyle.height=n.height),n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),i.scope=s,i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.pieArcColors&&(i.config.style.pieStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),i},buildStackbarGraph=(n,s)=>{var d;const i=_.cloneDeep(BarGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.legendHide&&(i.config.main.legendAvailable=n.legendHide,i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),i.config.main.type=(d=n==null?void 0:n.graphType)!=null?d:"BarGraph",i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.barStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),i.scope=s,i};var RunnerBoyProgressBar={type:"Control",scope:"#/properties/path",options:{widget:"RunnerBoyProgressBar"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{}}};const RunnerBoyProgressbar=(n,s)=>{const i=_.cloneDeep(RunnerBoyProgressBar);return i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(n,s)=>{const i=_.cloneDeep(Tabsection);return i.scope=s,n.lazyLoad&&(i.config.main.lazyLoad=n.lazyLoad==="YES"),n.orientation&&(i.config.main.orientation=n.orientation==="YES"?"vertical":"horizontal"),n.sectionLabels&&(i.config.main.tabLabels=n.sectionLabels.map(d=>d.label)),i.config.main.id=n.name,i};var WrapperSection={type:"WrapperLayout",config:{main:{rowSpacing:3,divider:!0,label:"Default Label"},defaultStyle:!0},elements:[]};const buildWrapperSection=(n,s)=>{const i=_.cloneDeep(WrapperSection);return i.scope=s,i.config.main.label=n.label,i.config.main.divider=n.divider==="YES",i.config.main.isAccordion=n.isAccordion!=="No",n.defaultStyle&&(i.config.defaultStyle=n.defaultStyle==="YES"),n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var TextInputField={type:"Control",scope:"#/properties/text",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:""},style:{}}};const buildTextField=(n,s)=>{const i=_.cloneDeep(TextInputField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.InputFormatingAndMasking&&(i.config.main.formatStrArray=n.InputFormatingAndMasking.map(d=>d.formatElement)),n.placeholder&&(i.config.main.placeholder=n.placeholder),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,i};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"",type:"text",freeSole:!1}}};const buildSelect=(n,s)=>{const i=_.cloneDeep(SelectInputField);return i.config.main.label=n.label,n.value&&(i.config.main.options=n.value),n.freeSolo&&(i.config.main.freeSolo=n.freeSolo==="YES"),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.scope=s,i};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:3,main:{name:"Compare",variant:"contained",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(n,s)=>{const i=_.cloneDeep(Button);return n.buttonType&&(i.options.widget=n.buttonType==="IconButton"?"IconButton":"Button",n.buttonType==="ButtonWithIconAndText"?i.config.main.startIcon=n.iconName:i.config.main.icon=n.iconName),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.tooltipMessage&&(i.config.main.tooltipMessage=n.tooltipMessage),n.defaultStyle&&(n.buttonType==="IconButton"?i.config.main.styleDefault=n.defaultStyle==="true":i.config.main.enableDefaultStyle=n.defaultStyle!=="true"),i.scope=s,n.style&&(i.config.style=JSON.parse(n.style)),n.size&&(i.config.main.size=n.size),n.color&&(i.config.main.color=n.color),n.label&&(i.config.main.name=n.label),i};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{onMount:"onMount",enableExpandAll:!0,allRowData:[],downloadAllData:!1,columns:{dataColumns:[],actionColumns:[]}}}};const buildTable=(n,s)=>{const i=_.cloneDeep(Table);return i.scope=s,n.style&&(i.config.style=JSON.parse(n.style)),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),n.enableRowMovement&&(i.config.main.enableRowMovement=n.enableRowMovement==="YES"),n.enableExpanding&&(i.config.main.enableExpanding=n.enableExpanding==="YES"),n.enableExpandAll&&(i.config.main.enableExpandAll=n.enableExpandAll==="YES"),n.paginateExpandedRows&&(i.config.main.paginateExpandedRows=n.paginateExpandedRows==="YES"),n.treeStructure&&(i.config.main.treeStructure=n.treeStructure==="YES"?"flatTreeMap":!1),n.SelectionAvailable&&(i.config.main.Selection=n.SelectionAvailable==="YES"),n.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=n.ColumnResizingAvailable!=="YES"),n.DragAvailable&&(i.config.main.enableDrag=n.DragAvailable==="YES"),n.downloadAllData&&(i.config.main.downloadAllData=n.downloadAllData==="YES"),n.disableGlobalSearch&&(i.config.main.disableGlobalSearch=n.disableGlobalSearch==="YES"),n.disableColumnFilter&&(i.config.main.disableColumnFilter=n.disableColumnFilter==="YES"),n.disableSorting&&(i.config.main.disableSorting=n.disableSorting==="YES"),n.disableEditColumn&&(i.config.main.disableEditColumn=n.disableEditColumn==="YES"),n.disableFullScreenToggle&&(i.config.main.disableFullScreenToggle=n.disableFullScreenToggle==="YES"),n.disableDensityToggle&&(i.config.main.disableDensityToggle=n.disableDensityToggle==="YES"),n.disableDownloadFile&&(i.config.main.disableDownloadFile=n.disableDownloadFile==="YES"),n.disablePagination&&(i.config.main.disablePagination=n.disablePagination==="YES"),n.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=n.Table_Download_Keys_Name.map(d=>d.KeyName)),n.selectKey&&(i.config.main.selectKey=n.selectKey),i},Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}},buildLabel=(n,s)=>{const i=_.cloneDeep(Box);return i.scope=s,i.config.main.heading=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},uploadFile={type:"Control",scope:"#/properties/attachment",config:{main:{label:"AttachmentFile",onClick:"onClick",required:!0,errorMessage:"Attachment File is not uploaded"},style:{backgroundColor:"none"},layout:{xs:6,sm:6,md:4,lg:4}},options:{widget:"UploadFile"}},downloadFile={type:"Control",scope:"#/properties/downloadAttachment",config:{main:{onClick:"onClick",required:!1},style:{backgroundColor:"none"},layout:{xs:12,sm:6,md:4,lg:4}},options:{widget:"DownloadFile"}},buildUploadFile=(n,s)=>{const i=_.cloneDeep(uploadFile);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=n.style),n.required&&(i.config.main.required=!0),i.config.main.errorMessage=n.errorMessage,i},buildDownloadFile=(n,s)=>{const i=_.cloneDeep(downloadFile);return i.scope=s,n.layout&&(i.config.layout=n.layout),n.style&&(i.config.style=n.style),n.required&&(i.config.main.required=!0),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.errorMessage&&(i.config.main.errorMessage=n.errorMessage),i};function Card(n){return{type:"WrapperLayout",config:{main:{},wrapperStyle:{position:"relative",top:"50%",transform:"translateY(-50%)"},componentsBoxStyle:{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.1)",flexDirection:"row",flexWrap:"nowrap",width:"100% !important",background:"transparent",border:`1.5px solid ${n.palette.primary.light}`,borderRadius:"8px",padding:"0px 4px",height:"100%",alignItems:"center",marginLeft:"0px","&: hover":{background:`${n.palette.primary.main}`,border:"1.5px solid black","& p":{color:"white"}}},layout:{xs:12,sm:12,md:6,lg:6}},elements:[{type:"HorizontalLayout",config:{layout:8},elements:[{type:"WrapperLayout",config:{main:{columnSpacing:0,gap:0},wrapperStyle:{background:"transparent"},componentsBoxStyle:{flexDirection:"column",flexWrap:"nowrap",width:"100%",height:"inherit",background:"transparent",borderRadius:"0px"},layout:12},elements:[{type:"WrapperLayout",config:{main:{columnSpacing:0,gap:0},wrapperStyle:{background:"transparent"},componentsBoxStyle:{flexDirection:"row",flexWrap:"nowrap",width:"100%",height:"0",background:"transparent",borderRadius:"0px",marginLeft:"-10px",marginTop:"-8px",justifyContent:"start",position:"relative"},layout:12},elements:[{type:"Control",scope:"#/properties/programType",config:{main:{heading:""},style:{color:"black",display:"flex",fontSize:{xs:"24px",md:"28px"},fontWeight:"bold",background:"inherit",justifyContent:"flex-start",width:"auto",margin:"-8px",height:0}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"5000.00"},style:{color:"black",display:"flex",fontSize:{xs:"24px",md:"28px"},fontWeight:"bold",background:"inherit",justifyContent:"flex-start",width:"auto",margin:"-8px",position:"absolute",left:"8px"}},options:{widget:"Box"}}]},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"Total Earnings"},style:{color:"black",fontSize:"16px",justifyContent:"center",textWrap:"wrap",background:"inherit",width:"calc(100%+8px)",margin:"-8px",marginTop:{xs:"0px",md:"12px"},lineHeight:"1"},layout:12},options:{widget:"Box"}}]}]},{type:"Control",scope:"#/properties/programType",config:{main:{url:"https://www.svgrepo.com/show/500606/loading.svg"},style:{containerStyle:{height:"100%",display:"flex",justifyContent:"end"},imageStyle:{width:"unset",fontSize:"none",padding:"4px",margin:"0px 0px 0px 8px",height:"64px"}},layout:4},options:{widget:"Image"}}]}}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].elements[0].elements[0].elements[1].scope=`#/properties/${config.name}/properties/value`,card.elements[1].scope=`#/properties/${config.name}/properties/url`,card.elements[0].elements[0].elements[1].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[0].elements[0].elements[0].elements[1].config.main.heading=config.label),config.url&&(card.elements[1].config.main.url=config.url),config.description&&(card.elements[0].elements[0].elements[1].config.main.heading=config.description),card};var DateInputField={type:"Control",scope:"#/properties/date",options:{widget:"DateInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"",type:"date"}}};const DateTime={type:"Control",scope:"#/properties/date",options:{widget:"DateTimeInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"DateTime",type:"date"}}},buildDate=(n,s)=>{const i=_.cloneDeep(DateInputField);return i.config.main.label=n.label,i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},buildDateTime=(n,s)=>{const i=_.cloneDeep(DateTime);return i.config.main.label=n.label,i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var RankCard={type:"Control",scope:"#/properties/path",options:{widget:"RankCard"},config:{layout:{xs:12,sm:6,md:6,lg:6},main:{}}};const buildRankCard=(n,s)=>{const i=_.cloneDeep(RankCard);return i.scope=s,n.rank&&(i.config.main.rank=`${n.rank}`),n.height&&(i.config.main.height=`${n.height}px`),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var RollAndDice={type:"Control",scope:"#/properties/path",options:{widget:"RollAndDice"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRollAndDice=(n,s)=>{const i=_.cloneDeep(RollAndDice);return n.name&&(i.scope=s),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};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,s)=>{const i=_.cloneDeep(Timer);return i.scope=s,n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var MultipleSelect={type:"Control",scope:"#/properties/path",options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"",type:"text",multiple:!0,variant:"standard",options:[]}}};const buildMultiSelect=(n,s)=>{const i=_.cloneDeep(MultipleSelect);return i.scope=s,n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.value&&(i.config.main.options=n.value),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),i},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:{xs:12,sm:12,md:5.5,lg:5.5},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px",background:"white",color:"black"}},main:{heading:"TextArea",minRows:4,hideButton:!0}}},buildTextArea=(n,s)=>{const i=_.cloneDeep(TextArea);return i.config.main.heading=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),n.placeholder&&(i.config.main.placeholder=n.placeholder),n.enableCodeEditor&&(i.config.main.enableCodeEditor=n.enableCodeEditor==="YES"),n.codeEditorLanguage&&(i.config.main.codeEditorLanguage=n.codeEditorLanguage),i.scope=s,i};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(n,s)=>{const i=_.cloneDeep(cardSlider);return n.name&&(i.scope=s),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(n,s)=>{const i=_.cloneDeep(Checkbox);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},buildLineGraph=(n,s)=>{const i=_.cloneDeep(LineGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.header=n.heading,n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.yAxisValue&&(i.config.main.yAxisValue=n.yAxisValue),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.lineStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),i.scope=s,i},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"Enabled",options:["YES","NO"],errorMessage:"Enabled is not marked as YES or NO"}}},buildRadio=(n,s)=>{const i=_.cloneDeep(RadioUiSchema);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.sectionLabels&&(i.config.main.options=n.sectionLabels.map(d=>d.label||d.Options)),n.style&&(i.config.style=JSON.parse(n.style)),i};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:4,md:4,lg:4},main:{},style:{}}};const buildEmptyBox=(n,s)=>{const i=_.cloneDeep(emptyBox);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[]}}},buildArray=(n,s)=>{const i=_.cloneDeep(ArrayUiSchema);return i.scope=s,i},TextField={type:"Control",scope:"#/properties/AAdhar",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"Adhaar Card",formatStrArray:["9","9","9","9"," ","9","9","9","9"," ","X9","X9","X9","X9"],placeholder:"XXXX XXXX XXXX"}}},buildAdhaarField=(n,s)=>{const i=_.cloneDeep(TextField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,i},PanField={type:"Control",scope:"#/properties/pan",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"Pan Card",placeholder:"AAAAA0000A",formatStrArray:["A","A","A","A","A","9","9","9","9","A"]}}},buildPanField=(n,s)=>{const i=_.cloneDeep(PanField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,i},FileInput={type:"Control",scope:"#/properties/docAggrementCopy",options:{widget:"FileInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{required:!1,onUpload:"onFileUpload",onDownload:"onFileDownload",label:"Aggrement Copy"},style:{backgroundColor:"none"}}},buildFileInput=(n,s)=>{const i=_.cloneDeep(FileInput);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},Stepper={type:"Control",scope:"#/properties/Stepper",options:{widget:"Stepper"},config:{main:{steps:[{label:"First"},{label:"Second"},{label:"Third"}],resetButton:!1,resetText:"Reset",orientation:"vertical"}},elements:[]},buildStepper=(n,s)=>{const i=_.cloneDeep(Stepper);return i.scope=s,i.config.main.resetButton=n.resetButton==="YES",n.defaultButtonAvailable&&(i.config.main.defaultButtonAvailable=n.defaultButtonAvailable==="YES"),i.config.main.resetText=n.resetText||"ResetData",i.config.main.completeText=n.completeText||"Complete Text",i.config.main.orientation=n.orientation||"horizontal",n.sectionLabels&&(i.config.main.steps=n.sectionLabels.map((d,h)=>({label:d.label,id:h}))),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},PopUP={type:"Control",scope:"#/properties/text",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{label:"PopUp",fullScreen:!1,fullWidth:!1,maxWidth:!1,alignItems:!1,spacing:2},style:{}}},buildPopUp=(n,s)=>{const i=_.cloneDeep(PopUP);return i.scope=s,i.config.main.title=n.label,i.config.main.fullScreen=n.fullScreen==="YES",i.config.main.fullWidth=n.fullWidth==="YES",i.config.main.maxWidth=n.maxWidth||!1,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(PopUP.config.style=JSON.parse(n.style)),i},dataGrid={type:"Control",scope:"#/properties/dataGrid",layout:12,options:{widget:"DataGrid"},elements:[],config:{main:{elevation:0,useWrapper:!1},style:{}}},buildDataGrid=(n,s)=>{const i=_.cloneDeep(dataGrid);return i.scope=s,n.elevation&&(i.config.main.elevation=+n.elevation),i.config.main.divider=n.divider!=="NO",n.height&&(i.config.main.height=`${n.height}px`),n.justifyContent&&(i.config.main.justifyContent=n.justifyContent),n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.cardLayout&&(i.config.cardLayout=createLayoutFormat(n.cardLayout)),n.style&&(i.config.style=JSON.parse(n.style)),i},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,s)=>{const i=_.cloneDeep(InputSlider);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.limitToMax&&(i.config.main.limitToMax=n.limitToMax==="YES"),n.max&&(i.config.main.max=n.max),n.step&&(i.config.main.step=n.step),n.min&&(i.config.main.min=n.min),n.style&&(i.config.main.defaultStyle=JSON.parse(n.style)),i},TreeMap={type:"Control",scope:"#/properties/TreeMap2",config:{main:{layout:"cartsian",orientation:"vertical",header:"Territory Hierarchy",linkType:"step",graphHeight:"500px"},style:{BoxStyle:{borderRadius:"5px"}}},options:{widget:"TreeMap"},elements:[]},buildTreeMap=(n,s)=>{const i=_.cloneDeep(TreeMap);return i.scope=s,n.label&&(i.config.main.header=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.orientation&&(i.config.main.orientation=n.orientation),n.linkType&&(i.config.main.linkType=n.linkType),n.graphHeight&&(i.config.main.graphHeight=n.graphHeight),n.graphWidth&&(i.config.main.graphWidth=n.graphWidth),n.graphZoomHeight&&(i.config.main.graphZoomHeight=n.graphZoomHeight),n.graphZoomWidth&&(i.config.main.graphZoomWidth=n.graphZoomWidth),n.style&&(i.config.style=JSON.parse(n.style)),i};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,s)=>{const i=_.cloneDeep(Thought);return i.scope=s,n.thought&&(i.config.main.thought=`${n.thought}`),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.label&&(i.config.main.label=n.label),n.style&&(i.config.style=JSON.parse(n.style)),i};var pdfViewer={type:"Control",scope:"#/properties/pdfviewer",options:{widget:"PdfViewer"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"PDF"}}};const buildPdfViewer=n=>{const s=_.cloneDeep(pdfViewer);return s.config.main.label=n.label,n.name&&(s.scope=`#/properties/${n.name}`),n.layout&&(s.config.layout=createLayoutFormat(n.layout)),n.label&&(s.config.main.title=n.label),n.style&&(s.config.style=JSON.parse(n.style)),s};exports.schema={type:"object",properties:{},required:[]};function buildRule(n,s,i){var d,h,c,g,b,I,F,z,H,Q;i?(c=(h=(d=exports.schema.properties)==null?void 0:d[s])==null?void 0:h.items)!=null&&c.properties&&((F=(I=(b=(g=exports.schema.properties)==null?void 0:g[s])==null?void 0:b.items)==null?void 0:I.properties)!=null&&F[n.name]||(exports.schema.properties[s].items.properties[n.name]={},n.type==="Select"&&((z=n.value)==null?void 0:z.length)>0?exports.schema.properties[s].items.properties[n.name]={oneOf:n.value.map(G=>({const:G.value,title:G.label}))}:n.type==="MultipleSelect"&&((H=n.value)==null?void 0:H.length)>0&&(exports.schema.properties[s].items.properties[n.name]={items:{oneOf:n.value.map(G=>({const:G.value,title:G.label}))}}))):(n.type==="Select"||n.type==="MultipleSelect")&&((Q=n.value)==null?void 0:Q.length)>0&&(n.type==="Select"?exports.schema.properties[n.name]={oneOf:n.value.map(G=>({const:G.value,title:G.label}))}:n.type==="MultipleSelect"&&(exports.schema.properties[n.name]={items:{oneOf:n.value.map(G=>({const:G.value,title:G.label}))}})),n.validation&&n.validation.forEach(G=>{var de,$e,ie,be,ot,se,Ae,pe,Te,Fe,at,Tt;s?(ie=($e=(de=exports.schema.properties)==null?void 0:de[s])==null?void 0:$e.items)!=null&&ie.properties&&((Ae=(se=(ot=(be=exports.schema.properties)==null?void 0:be[s])==null?void 0:ot.items)==null?void 0:se.properties)!=null&&Ae[n.name]||(exports.schema.properties[s].items.properties[n.name]={},n.type==="Select"||((pe=n.value)==null?void 0:pe.length)>0?exports.schema.properties[s].items.properties[n.name]={oneOf:n.value.map(ht=>({const:ht.value,title:ht.label}))}:(n.type==="MultipleSelect"||((Te=n.value)==null?void 0:Te.length)>0)&&(exports.schema.properties[s].items.properties[n.name]={items:{oneOf:n.value.map(ht=>({const:ht.value,title:ht.label}))}})),G.validationType==="required"?(Tt=(at=(Fe=exports.schema.properties)==null?void 0:Fe[s])==null?void 0:at.items)==null||Tt.required.push(n.name):(exports.schema.properties[s].items.properties[n.name].type="string",exports.schema.properties[s].items.properties[n.name][G.validationType]=isNaN(G.validationValue)?G.validationValue:Number(G.validationValue))):(exports.schema.properties[n.name]||(exports.schema.properties[n.name]={}),G.validationType==="required"?exports.schema.required.push(n.name):(exports.schema.properties[n.name].type="string",exports.schema.properties[n.name][G.validationType]=isNaN(G.validationValue)?G.validationValue:Number(G.validationValue)))})}const buildSchema=(n,s,i)=>(buildRule(n,s,i),n!=null&&n.elements&&(n.type=="Table"||n.type=="Array"?(exports.schema.properties[n.name]||(exports.schema.properties[n.name]={type:"array",items:{type:"object",properties:{},required:[]}}),n.elements.map((d,h)=>{buildSchema(d,n.name,n.type==="Array")})):n.elements.map((d,h)=>{buildSchema(d)})),exports.schema),buildUiSchema=(n,s)=>{let i={};const d=`#/properties/${n.name}`;switch(n.type){case"TreeMap":i=buildTreeMap(n,d);break;case"DateTime":i=buildDateTime(n,d);break;case"InputSlider":i=buildInputSlider(n,d);break;case"DataGrid":i=buildDataGrid(n,d);break;case"Stepper":i=buildStepper(n,d);break;case"PopUp":i=buildPopUp(n,d);break;case"FileInput":i=buildFileInput(n,d);break;case"AadharcardText":i=buildAdhaarField(n,d);break;case"PanCardText":i=buildPanField(n,d);break;case"TabSection":i=buildTabSection(n,d);break;case"RunnerBoyProgressBar":i=RunnerBoyProgressbar(n,d);break;case"WrapperSection":i=buildWrapperSection(n,d);break;case"Text":i=buildTextField(n,d);break;case"TextArea":i=buildTextArea(n,d);break;case"Date":i=buildDate(n,d);break;case"Select":i=buildSelect(n,d);break;case"Radio":i=buildRadio(n,d);break;case"Button":i=buildButton(n,d);break;case"Table":i=buildTable(n,d);break;case"Array":i=buildArray(n,d);break;case"Box":i=buildLabel(n,d);break;case"CheckBox":i=buildCheckbox(n,d);break;case"UploadFile":i=buildUploadFile(n,d);break;case"DownloadFile":i=buildDownloadFile(n,d);break;case"EmptyBox":i=buildEmptyBox(n);break;case"card":i=buildCard(n,d,s);break;case"Graph":switch(n.graphType){case"BarGraph":case"StackBarGraph":i=buildStackbarGraph(n,d);break;case"LineGraph":i=buildLineGraph(n,d);break;case"PieGraph":i=buildPieGraph(n,d);break;case"HorizontalBarGraph":case"HorizontalStackBarGraph":i=buildHorizontalBarGraph(n,d);break;default:i=buildStackbarGraph(n,d);break}break;case"ProgressBar":i=buildProgressBar(n,d);break;case"SpeedoMeter":i=buildSpeedoMeter(n,d);break;case"ProgressBarCard":i=buildProgressBarCard(n,d);break;case"RankCard":i=buildRankCard(n,d);break;case"Rank":i=buildRollAndDice(n,d);break;case"Slider":i=buildSlider(n,d);break;case"Timer":i=buildTimer(n,d);break;case"ColumnGroup":i={accessorKey:n.name,header:n.label||n.name,elements:[]};break;case"MultipleSelect":i=buildMultiSelect(n,d);break;case"LeaderBoard":i=buildLeaderBoard(n);break;case"Thought":i=buildThoughtOfTheDay(n,d);break;case"PdfViewer":i=buildPdfViewer(n);break;default:exports.schema={type:"object",properties:{},required:[]},i=buildBasicUiSchema(n)}if(n!=null&&n.elements){if((n==null?void 0:n.type)==="LeaderBoard")return i;if(n.type=="ColumnGroup"){const h={};n.sizeHolder&&n.sizeHolder.map((c,g)=>{h[c.keyName]=c.value}),i.elements=n.elements.map((c,g)=>({accessorKey:c.name,header:c.label||c.name,size:h[c.name]||180,type:c.columnFormat,elements:c.type=="ColumnGroup"?c.elements.map(b=>buildUiSchema(b,s)):[]}))}else if(n.type=="Table"){const h={},c={};n.sizeHolder&&n.sizeHolder.map((g,b)=>{h[g.keyName]=g.value}),n.enableColumnFilter&&n.enableColumnFilter.map(g=>{c[g.keyName]=!0}),i.elements=n.elements.map((g,b)=>{var I,F;return g.type?{accessorKey:g.name,header:g.label||g.name,size:h[g.name]||180,type:g.columnFormat,widget:g.type!="ColumnGroup"?buildUiSchema(g,s):void 0,elements:g.type=="ColumnGroup"?g.elements.map(z=>buildUiSchema(z,s)):[],enableColumnFilter:Object.keys(c).length===0?!0:(I=c[g.name])!=null?I:!1,columnFilterModeOptions:n.filteringOptions}:{accessorKey:g.name,type:g.columnFormat,header:g.label||g.name,size:h[g.name]||180,enableColumnFilter:Object.keys(c).length===0?!0:(F=c[g.name])!=null?F:!1,columnFilterModeOptions:n.filteringOptions}})}else n.type=="Array"?i.options.detail.elements=n.elements.map((h,c)=>buildUiSchema(h,s)):i.elements=n.elements.map((h,c)=>buildUiSchema(h,s))}return i};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,exports.buildUiSchema=buildUiSchema,exports.clearFromSessionStorage=clearFromSessionStorage,exports.pageMaster=pageMaster,exports.pageMasterComponents=Component,exports.pageMasterEvents=event,exports.pageService=service,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
27
|
+
}`;var M=il(function(){return $(p,T+"return "+w).apply(i,u)});if(M.source=w,hi(M))throw M;return M}function pm(e){return Y(e).toLowerCase()}function um(e){return Y(e).toUpperCase()}function cm(e,t,r){if(e=Y(e),e&&(r||t===i))return fo(e);if(!e||!(t=Ce(t)))return e;var o=Ue(e),a=Ue(t),p=mo(o,a),u=go(o,a)+1;return gt(o,p,u).join("")}function dm(e,t,r){if(e=Y(e),e&&(r||t===i))return e.slice(0,ho(e)+1);if(!e||!(t=Ce(t)))return e;var o=Ue(e),a=go(o,Ue(t))+1;return gt(o,0,a).join("")}function fm(e,t,r){if(e=Y(e),e&&(r||t===i))return e.replace(hr,"");if(!e||!(t=Ce(t)))return e;var o=Ue(e),a=mo(o,Ue(t));return gt(o,a).join("")}function mm(e,t){var r=ht,o=ll;if(Z(t)){var a="separator"in t?t.separator:a;r="length"in t?k(t.length):r,o="omission"in t?Ce(t.omission):o}e=Y(e);var p=e.length;if(Dt(e)){var u=Ue(e);p=u.length}if(r>=p)return e;var f=r-Pt(o);if(f<1)return o;var y=u?gt(u,0,f).join(""):e.slice(0,f);if(a===i)return y+o;if(u&&(f+=y.length-f),vi(a)){if(e.slice(f).search(a)){var S,C=y;for(a.global||(a=Pr(a.source,Y(Pi.exec(a))+"g")),a.lastIndex=0;S=a.exec(C);)var w=S.index;y=y.slice(0,w===i?f:w)}}else if(e.indexOf(Ce(a),f)!=f){var E=y.lastIndexOf(a);E>-1&&(y=y.slice(0,E))}return y+o}function gm(e){return e=Y(e),e&&Il.test(e)?e.replace(Bi,Gs):e}var ym=zt(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Si=oa("toUpperCase");function rl(e,t,r){return e=Y(e),t=r?i:t,t===i?Os(e)?Ks(e):Fs(e):e.match(t)||[]}var il=H(function(e,t){try{return xe(e,i,t)}catch(r){return hi(r)?r:new D(r)}}),hm=et(function(e,t){return Be(t,function(r){r=qe(r),Qe(e,r,gi(e[r],e))}),e});function vm(e){var t=e==null?0:e.length,r=L();return e=t?X(e,function(o){if(typeof o[1]!="function")throw new Re(g);return[r(o[0]),o[1]]}):[],H(function(o){for(var a=-1;++a<t;){var p=e[a];if(xe(p[0],this,o))return xe(p[1],this,o)}})}function bm(e){return Gp(Pe(e,U))}function Ci(e){return function(){return e}}function xm(e,t){return e==null||e!==e?t:e}var Sm=la(),Cm=la(!0);function ve(e){return e}function wi(e){return Ho(typeof e=="function"?e:Pe(e,U))}function wm(e){return No(Pe(e,U))}function _m(e,t){return Uo(e,Pe(t,U))}var Im=H(function(e,t){return function(r){return ln(r,e,t)}}),Em=H(function(e,t){return function(r){return ln(e,r,t)}});function _i(e,t,r){var o=oe(t),a=zn(t,o);r==null&&!(Z(t)&&(a.length||!o.length))&&(r=t,t=e,e=this,a=zn(t,oe(t)));var p=!(Z(r)&&"chain"in r)||!!r.chain,u=nt(e);return Be(a,function(f){var y=t[f];e[f]=y,u&&(e.prototype[f]=function(){var S=this.__chain__;if(p||S){var C=e(this.__wrapped__),w=C.__actions__=ge(this.__actions__);return w.push({func:y,args:arguments,thisArg:e}),C.__chain__=S,C}return y.apply(e,pt([this.value()],arguments))})}),e}function Am(){return ae._===this&&(ae._=Qs),this}function Ii(){}function Tm(e){return e=k(e),H(function(t){return zo(t,e)})}var Fm=ni(X),Lm=ni(lo),Bm=ni(Ar);function ol(e){return pi(e)?Tr(qe(e)):au(e)}function Rm(e){return function(t){return e==null?i:_t(e,t)}}var Dm=pa(),Pm=pa(!0);function Ei(){return[]}function Ai(){return!1}function km(){return{}}function Mm(){return""}function Hm(){return!0}function Om(e,t){if(e=k(e),e<1||e>lt)return[];var r=Ye,o=ue(e,Ye);t=L(t),e-=Ye;for(var a=Br(o,t);++r<e;)t(r);return a}function Nm(e){return P(e)?X(e,qe):we(e)?[e]:ge(Ia(Y(e)))}function Um(e){var t=++Xs;return Y(e)+t}var zm=Vn(function(e,t){return e+t},0),Wm=ri("ceil"),Gm=Vn(function(e,t){return e/t},1),$m=ri("floor");function Ym(e){return e&&e.length?Un(e,ve,Wr):i}function Km(e,t){return e&&e.length?Un(e,L(t,2),Wr):i}function Vm(e){return uo(e,ve)}function qm(e,t){return uo(e,L(t,2))}function Jm(e){return e&&e.length?Un(e,ve,Kr):i}function Xm(e,t){return e&&e.length?Un(e,L(t,2),Kr):i}var Zm=Vn(function(e,t){return e*t},1),Qm=ri("round"),jm=Vn(function(e,t){return e-t},0);function eg(e){return e&&e.length?Lr(e,ve):0}function tg(e,t){return e&&e.length?Lr(e,L(t,2)):0}return l.after=Cd,l.ary=Ma,l.assign=uf,l.assignIn=Xa,l.assignInWith=ar,l.assignWith=cf,l.at=df,l.before=Ha,l.bind=gi,l.bindAll=hm,l.bindKey=Oa,l.castArray=Pd,l.chain=Da,l.chunk=Gu,l.compact=$u,l.concat=Yu,l.cond=vm,l.conforms=bm,l.constant=Ci,l.countBy=jc,l.create=ff,l.curry=Na,l.curryRight=Ua,l.debounce=za,l.defaults=mf,l.defaultsDeep=gf,l.defer=wd,l.delay=_d,l.difference=Ku,l.differenceBy=Vu,l.differenceWith=qu,l.drop=Ju,l.dropRight=Xu,l.dropRightWhile=Zu,l.dropWhile=Qu,l.fill=ju,l.filter=td,l.flatMap=id,l.flatMapDeep=od,l.flatMapDepth=ad,l.flatten=Fa,l.flattenDeep=ec,l.flattenDepth=tc,l.flip=Id,l.flow=Sm,l.flowRight=Cm,l.fromPairs=nc,l.functions=Cf,l.functionsIn=wf,l.groupBy=ld,l.initial=ic,l.intersection=oc,l.intersectionBy=ac,l.intersectionWith=lc,l.invert=If,l.invertBy=Ef,l.invokeMap=pd,l.iteratee=wi,l.keyBy=ud,l.keys=oe,l.keysIn=he,l.map=er,l.mapKeys=Tf,l.mapValues=Ff,l.matches=wm,l.matchesProperty=_m,l.memoize=nr,l.merge=Lf,l.mergeWith=Za,l.method=Im,l.methodOf=Em,l.mixin=_i,l.negate=rr,l.nthArg=Tm,l.omit=Bf,l.omitBy=Rf,l.once=Ed,l.orderBy=cd,l.over=Fm,l.overArgs=Ad,l.overEvery=Lm,l.overSome=Bm,l.partial=yi,l.partialRight=Wa,l.partition=dd,l.pick=Df,l.pickBy=Qa,l.property=ol,l.propertyOf=Rm,l.pull=cc,l.pullAll=Ba,l.pullAllBy=dc,l.pullAllWith=fc,l.pullAt=mc,l.range=Dm,l.rangeRight=Pm,l.rearg=Td,l.reject=gd,l.remove=gc,l.rest=Fd,l.reverse=fi,l.sampleSize=hd,l.set=kf,l.setWith=Mf,l.shuffle=vd,l.slice=yc,l.sortBy=Sd,l.sortedUniq=wc,l.sortedUniqBy=_c,l.split=om,l.spread=Ld,l.tail=Ic,l.take=Ec,l.takeRight=Ac,l.takeRightWhile=Tc,l.takeWhile=Fc,l.tap=$c,l.throttle=Bd,l.thru=jn,l.toArray=Va,l.toPairs=ja,l.toPairsIn=el,l.toPath=Nm,l.toPlainObject=Ja,l.transform=Hf,l.unary=Rd,l.union=Lc,l.unionBy=Bc,l.unionWith=Rc,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=kc,l.unset=Of,l.unzip=mi,l.unzipWith=Ra,l.update=Nf,l.updateWith=Uf,l.values=$t,l.valuesIn=zf,l.without=Mc,l.words=rl,l.wrap=Dd,l.xor=Hc,l.xorBy=Oc,l.xorWith=Nc,l.zip=Uc,l.zipObject=zc,l.zipObjectDeep=Wc,l.zipWith=Gc,l.entries=ja,l.entriesIn=el,l.extend=Xa,l.extendWith=ar,_i(l,l),l.add=zm,l.attempt=il,l.camelCase=Yf,l.capitalize=tl,l.ceil=Wm,l.clamp=Wf,l.clone=kd,l.cloneDeep=Hd,l.cloneDeepWith=Od,l.cloneWith=Md,l.conformsTo=Nd,l.deburr=nl,l.defaultTo=xm,l.divide=Gm,l.endsWith=Kf,l.eq=We,l.escape=Vf,l.escapeRegExp=qf,l.every=ed,l.find=nd,l.findIndex=Aa,l.findKey=yf,l.findLast=rd,l.findLastIndex=Ta,l.findLastKey=hf,l.floor=$m,l.forEach=Pa,l.forEachRight=ka,l.forIn=vf,l.forInRight=bf,l.forOwn=xf,l.forOwnRight=Sf,l.get=bi,l.gt=Ud,l.gte=zd,l.has=_f,l.hasIn=xi,l.head=La,l.identity=ve,l.includes=sd,l.indexOf=rc,l.inRange=Gf,l.invoke=Af,l.isArguments=At,l.isArray=P,l.isArrayBuffer=Wd,l.isArrayLike=ye,l.isArrayLikeObject=j,l.isBoolean=Gd,l.isBuffer=yt,l.isDate=$d,l.isElement=Yd,l.isEmpty=Kd,l.isEqual=Vd,l.isEqualWith=qd,l.isError=hi,l.isFinite=Jd,l.isFunction=nt,l.isInteger=Ga,l.isLength=ir,l.isMap=$a,l.isMatch=Xd,l.isMatchWith=Zd,l.isNaN=Qd,l.isNative=jd,l.isNil=tf,l.isNull=ef,l.isNumber=Ya,l.isObject=Z,l.isObjectLike=Q,l.isPlainObject=fn,l.isRegExp=vi,l.isSafeInteger=nf,l.isSet=Ka,l.isString=or,l.isSymbol=we,l.isTypedArray=Gt,l.isUndefined=rf,l.isWeakMap=of,l.isWeakSet=af,l.join=sc,l.kebabCase=Jf,l.last=Me,l.lastIndexOf=pc,l.lowerCase=Xf,l.lowerFirst=Zf,l.lt=lf,l.lte=sf,l.max=Ym,l.maxBy=Km,l.mean=Vm,l.meanBy=qm,l.min=Jm,l.minBy=Xm,l.stubArray=Ei,l.stubFalse=Ai,l.stubObject=km,l.stubString=Mm,l.stubTrue=Hm,l.multiply=Zm,l.nth=uc,l.noConflict=Am,l.noop=Ii,l.now=tr,l.pad=Qf,l.padEnd=jf,l.padStart=em,l.parseInt=tm,l.random=$f,l.reduce=fd,l.reduceRight=md,l.repeat=nm,l.replace=rm,l.result=Pf,l.round=Qm,l.runInContext=m,l.sample=yd,l.size=bd,l.snakeCase=im,l.some=xd,l.sortedIndex=hc,l.sortedIndexBy=vc,l.sortedIndexOf=bc,l.sortedLastIndex=xc,l.sortedLastIndexBy=Sc,l.sortedLastIndexOf=Cc,l.startCase=am,l.startsWith=lm,l.subtract=jm,l.sum=eg,l.sumBy=tg,l.template=sm,l.times=Om,l.toFinite=rt,l.toInteger=k,l.toLength=qa,l.toLower=pm,l.toNumber=He,l.toSafeInteger=pf,l.toString=Y,l.toUpper=um,l.trim=cm,l.trimEnd=dm,l.trimStart=fm,l.truncate=mm,l.unescape=gm,l.uniqueId=Um,l.upperCase=ym,l.upperFirst=Si,l.each=Pa,l.eachRight=ka,l.first=La,_i(l,function(){var e={};return Ke(l,function(t,r){K.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=d,Be(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Be(["drop","take"],function(e,t){N.prototype[e]=function(r){r=r===i?1:re(k(r),0);var o=this.__filtered__&&!t?new N(this):this.clone();return o.__filtered__?o.__takeCount__=ue(r,o.__takeCount__):o.__views__.push({size:ue(r,Ye),type:e+(o.__dir__<0?"Right":"")}),o},N.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Be(["filter","map","takeWhile"],function(e,t){var r=t+1,o=r==Ti||r==cl;N.prototype[e]=function(a){var p=this.clone();return p.__iteratees__.push({iteratee:L(a,3),type:r}),p.__filtered__=p.__filtered__||o,p}}),Be(["head","last"],function(e,t){var r="take"+(t?"Right":"");N.prototype[e]=function(){return this[r](1).value()[0]}}),Be(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");N.prototype[e]=function(){return this.__filtered__?new N(this):this[r](1)}}),N.prototype.compact=function(){return this.filter(ve)},N.prototype.find=function(e){return this.filter(e).head()},N.prototype.findLast=function(e){return this.reverse().find(e)},N.prototype.invokeMap=H(function(e,t){return typeof e=="function"?new N(this):this.map(function(r){return ln(r,e,t)})}),N.prototype.reject=function(e){return this.filter(rr(L(e)))},N.prototype.slice=function(e,t){e=k(e);var r=this;return r.__filtered__&&(e>0||t<0)?new N(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(t=k(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},N.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},N.prototype.toArray=function(){return this.take(Ye)},Ke(N.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=l[o?"take"+(t=="last"?"Right":""):t],p=o||/^find/.test(t);!a||(l.prototype[t]=function(){var u=this.__wrapped__,f=o?[1]:arguments,y=u instanceof N,S=f[0],C=y||P(u),w=function(O){var z=a.apply(l,pt([O],f));return o&&E?z[0]:z};C&&r&&typeof S=="function"&&S.length!=1&&(y=C=!1);var E=this.__chain__,T=!!this.__actions__.length,B=p&&!E,M=y&&!T;if(!p&&C){u=M?u:new N(this);var R=e.apply(u,f);return R.__actions__.push({func:jn,args:[w],thisArg:i}),new De(R,E)}return B&&M?e.apply(this,f):(R=this.thru(w),B?o?R.value()[0]:R.value():R)})}),Be(["pop","push","shift","sort","splice","unshift"],function(e){var t=In[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(o&&!this.__chain__){var p=this.value();return t.apply(P(p)?p:[],a)}return this[r](function(u){return t.apply(P(u)?u:[],a)})}}),Ke(N.prototype,function(e,t){var r=l[t];if(r){var o=r.name+"";K.call(Ot,o)||(Ot[o]=[]),Ot[o].push({name:t,func:r})}}),Ot[Kn(i,be).name]=[{name:"wrapper",func:i}],N.prototype.clone=mp,N.prototype.reverse=gp,N.prototype.value=yp,l.prototype.at=Yc,l.prototype.chain=Kc,l.prototype.commit=Vc,l.prototype.next=qc,l.prototype.plant=Xc,l.prototype.reverse=Zc,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qc,l.prototype.first=l.prototype.head,jt&&(l.prototype[jt]=Jc),l},kt=Vs();bt?((bt.exports=kt)._=kt,wr._=kt):ae._=kt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"Masked Aadhaar",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"Data Card",const:"card"},{title:"Check Box",const:"CheckBox"},{title:"Container",const:"WrapperSection"},{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:"Input Slider",const:"InputSlider"},{title:"Label",const:"Box"},{title:"Leaderboard",const:"LeaderBoard"},{title:"Multi-Select Dropdown",const:"MultipleSelect"},{title:"Pan Card Masked",const:"PanCardText"},{title:"Pop Up",const:"PopUp"},{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:"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:"Column Group",const:"ColumnGroup"},{title:"Thought of the day",const:"Thought"},{title:"Pdf Viewer",const:"PdfViewer"}]},columnFormat:{oneOf:[{title:"Date Column",const:"date"},{title:"DateTime Column",const:"dateTime"},{title:"Amount Column",const:"amount"}]},orientation:{oneOf:[{title:"Horizontal",const:"horizontal"},{title:"Vertical",const:"vertical"}]},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},layout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},cardLayout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},value:{type:"array",items:{type:"object",properties:{label:{type:"string"},value:{type:"string"}}}},columns:{type:"array",items:{type:"object",properties:{header:{type:"string"},accessorKey:{type:"string"},widgetType:{type:"string"}}}},events:{type:"array",items:{type:"object",properties:{eventType:{type:"string"},configType:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},Table_Download_Keys_Name:{type:"array",items:{type:"object",properties:{KeyName:{type:"string"}}}},sizeHolder:{type:"array",items:{type:"object",properties:{keyName:{type:"string"},value:{type:"string"}}}},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:{label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},InputFormatingAndMasking:{type:"array",items:{type:"object",properties:{formatElement:{type:"string"}}}},validation:{type:"array",items:{type:"object",properties:{componentName:{type:"string"},validationType:{type:"string",oneOf:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"}]},validationValue:{type:"string"}}}},buttonType:{type:"string",oneOf:[{title:"Button",const:"Button"},{title:"IconButton",const:"IconButton"},{title:"HybridButton",const:"ButtonWithIconAndText"}]},defaultStyle:{type:"string",oneOf:[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]},graphType:{type:"string",oneOf:[{title:"Bar Graph",const:"BarGraph"},{title:"Stack Bar Graph",const:"StackBarGraph"},{title:"Line Graph",const:"LineGraph"},{title:"Pie Graph",const:"PieGraph"},{title:"Horizontal Bar Graph",const:"HorizontalBarGraph"},{title:"Stack Horizontal Bar Graph",const:"HorizontalStackBarGraph"}]},iconName:{type:"string",oneOf:[{title:"Search Icon",const:"SearchIcon"},{title:"Edit Icon",const:"EditIcon"},{title:"Add Icon",const:"AddIcon"},{title:"Send Icon",const:"SendIcon"},{title:"Approve Icon",const:"ApproveIcon"},{title:"RejectIcon",const:"RejectIcon"},{title:"Back Icon",const:"BackIcon"},{title:"Back Icon Second ",const:"BackIcon2"},{title:"Pending Icon",const:"PendingIcon"},{title:"View Icon",const:"ViewIcon"},{title:"Notification Icon",const:"NotificationIcon"},{title:"Person Icon",const:"PersonIcon"},{title:"Report Icon",const:"ReportIcon"},{title:"Error Icon",const:"ErrorIcon"},{title:"Refresh Icon",const:"RefreshIcon"},{title:"Download Icon",const:"DownloadIcon"},{title:"Exception Icon",const:"ExceptionIcon"}]},color:{type:"string",oneOf:[{title:"Primary",const:"primary"},{title:"Secondary",const:"secondary"},{title:"Error",const:"error"},{title:"Success",const:"success"},{title:"Info",const:"info"}]},name:{type:"string"},label:{type:"string"},RemoveItemButton:{disabled:!0}},required:["name"]},componentBasicUiSchema=n=>{var i;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/proc",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",options:{widget:"Array"},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 ?"},style:{marginTop:"-20px",fontSize:"20px","&.MuiTypography-root":{padding:"10px 30px 20px 30px",textAlign:"center",lineHeight:"1"}}}},{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",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",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 ?"},style:{marginTop:"-20px",fontSize:"20px","&.MuiTypography-root":{padding:"10px 30px 20px 30px",textAlign:"center",lineHeight:"1"}}}},{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",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",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:"Box"},config:{layout:12,main:{heading:""},style:{paddingLeft:n.spacing(3),width:"100%",fontSize:"10px",color:n.palette.grey[600],position:"fixed",bottom:"24px",backgroundColor:n.palette.background.default,borderBottom:`1px solid ${n.palette.common.black}29`,borderTop:`1px solid ${n.palette.common.black}29`}}},{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:((i=n==null?void 0:n.palette)==null?void 0:i.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/proc",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",options:{widget:"Array"},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}},elements:[{accessorKey:"eventType",header:"Event's Type",type:"string",size:300},{accessorKey:"Handler",header:"Handler",type:"string",size:200},{accessorKey:"Edit_Approve_Records",header:"Edit",size:150,type:"action",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{size:"small",icon:"TableEditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{accessorKey:"Reject_Records",header:"Delete",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"IconButton"},config:{main:{icon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Event",size:150,type:"action",widget:{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",tooltipMessage:"Reject This Record",styleDefault:!0}}}}]}]}),emptyBox$1=(n,s)=>s!==void 0?{type:"Control",scope:`#/properties/${n}`,options:{widget:"EmptyBox"},config:{layout:s}}:{type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}},cardLayout={type:"Control",scope:"#/properties/cardLayout",options:{widget:"Array"},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: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."}}},emptyBox$1("cardEmpty")]},getArrayControl=(n,s,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"Array"},config:{layout:12,main:{label:i,childElementLabel:i},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:`#/properties/${s}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:i||"Labels for Tab"}}},emptyBox$1("ArrayControlEmpty1",{xs:6,sm:6,md:8,lg:8})]}),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,s)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:s}}}),getRadioInputField=(n,s,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:s,options:i}}}),buildWrapper=(n,s)=>({type:"WrapperLayout",config:{main:{label:n||"Details",isAccordion:!0}},elements:s||[]}),getTextArea=(n,s,i,d)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"TextArea"},config:{layout:d||12,main:{label:s,minRows:8,hideButton:i,enableCodeEditor:!0}}}),getSelectField=(n,s,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:s,type:"text"}}}),getMultiSelectField=(n,s)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{multiple:!0,label:s,options:[]}}}),BaseSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[]},buildPropertiesSection=function(n){let s=_.cloneDeep(BaseSection);switch(n){case"TreeMap":s.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":s.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":s.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":s.elements=[getRadioInputField("resetButton","Reset Button",["YES","NO"]),getRadioInputField("defaultButtonAvailable","Use Default Buttons ",["YES","NO"]),getInputField("resetText","Reset Text"),getInputField("completeText","Complete Text"),getSelectField("orientation","Orientation Type"),emptyBox$1("Stepper",{xs:6,sm:6,md:4,lg:4}),getArrayControl("sectionLabels","label")];break;case"PopUp":s.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"Text":s.elements=[getInputField("placeholder","Placeholder"),emptyBox$1("TextEmpty1",{xs:6,sm:6,md:4,lg:4}),emptyBox$1("TextEmpty1",{xs:0,sm:0,md:4,lg:4}),getArrayControl("InputFormatingAndMasking","formatElement","Format Element")];break;case"TextArea":s.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":s.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":s.elements=[getInputField("rank","Rank"),getInputField("height","Height"),emptyBox$1("RankCardEmpty1",{xs:0,sm:0,md:4,lg:4})];break;case"LeaderBoard":s.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"),emptyBox$1("LeaderBoardEmpty1",{xs:6,sm:6,md:0,lg:0})];break;case"CardSlider":s.elements=[getInputField("heading","Heading"),getInputField("iconName","Icon Name")];break;case"ProgressBar":case"ProgressBarCard":s.elements=[getInputField("heading","Heading"),getInputField("bottomLabel_1","First BottomLabel"),getInputField("bottomLabel_2","Second BottomLabel"),getInputField("bottomLabel_3","Third BottomLabel"),emptyBox$1("ProgressBarCardEmpty1"),emptyBox$1("ProgressBarCardEmpty2")];break;case"card":s.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"Button":s.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"Graph":s.elements=[getInputField("height","Height"),getInputField("heading","Heading"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getInputField("bottomLabel","Bottom Label"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:0,lg:0}),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getInputField("yAxisValue","Y-AxisValue"),getInputField("xAxisValue","X-AxisValue"),getRadioInputField("bottomAxisAngle","Bottom Axis Angled",["YES","No"]),getInputField("leftMargin","Left Margin"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:8,lg:6}),getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")];break;case"WrapperSection":s.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("isAccordion","Accordion",["YES","No"]),getRadioInputField("defaultStyle","Default Style",["YES","No"]),getInputField("rowSpacing","Row Spacing"),emptyBox$1("WrapperSectionEmpty1",{xs:6,sm:0,md:4,lg:4}),emptyBox$1("WrapperSectionEmpty2")];break;case"TabSection":s.elements=[getRadioInputField("verticalOrientation","Vertical Orientation",["YES","NO"]),getRadioInputField("lazyLoad","Lazy Load",["YES","NO"]),emptyBox$1("TabEmpty"),getArrayControl("sectionLabels","label")];break;case"Table":s.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"),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"]),emptyBox$1("LazyLoadingTableEmpty2"),emptyBox$1("LazyLoadingTableEmpty3")]),getArrayControl("Table_Download_Keys_Name","KeyName","Table Key Name"),sizeHolder,getArrayControl("enableColumnFilter","keyName","Component Name")];break;case"Radio":s.elements=[getArrayControl("sectionLabels","label","Options Of Radio")];break;case"Select":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"]),emptyBox$1("SelectEmpty")];break;case"MultipleSelect":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),emptyBox$1("MultipleSelectEmpty1",{xs:0,sm:6,md:4,lg:4}),emptyBox$1("MultipleSelectEmpty2")];break;case"Thought":s.elements=[getTextArea("thought","Today's thought",!1)];break}return s},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}},elements:[{accessorKey:"name",header:"Name",type:"string",size:300},{accessorKey:"type",header:"Type",type:"string",size:200},{header:"Edit Record",field:"Reject_Records",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"TableEditIcon",size:"small",onClick:"editComponents",tooltipMessage:"Reject This Record"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Delete",field:"Reject_Records",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"Bin",onClick:"deletePopUpComponent",tooltipMessage:"Reject This Record"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Component",size:150,type:"action",widget:{type:"Control",scope:"#/properties/Copy_Component",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!0,disabled:!1}}}}]}]}),ValueTab={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/value",options:{widget:"Array"},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",options:{widget:"Array"},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 s=_.cloneDeep(n);let i={};return s.pageName&&delete s.pageName,s.eventsSelected&&delete s.eventsSelected,(s.type==="Table"||s.type==="WrapperSection"||s.type==="TabSection")&&(i.elements=s.elements||[],s.elements&&delete s.elements),i.events=s.events||[],s.events&&delete s.events,i={...s,...i},i};const createLayoutFormat=n=>{if(_.isEmpty(n))return{xs:12,sm:12,md:12,lg:12};let s={xs:12,sm:12,md:6,lg:6};return n.map(i=>{s[i.key||"xs"]=+i.value||5.5}),s},flatObjectValueInArray=(n=[])=>{if(n.length<1)return;const s=Object.keys(n[0])[0];return n.map(d=>d[s])},clearFromSessionStorage=()=>{sessionStorage.removeItem("pageFormdata")},getNavigationHistory=(n,s)=>{if(s){let i=n.name;const d=s.split("."),h=[];return d.map((c,g)=>{if(g===0){h.push(c);return}h.push(`${h[g-1]}.${c}`)}),h.map(c=>{const g=_.get(n,c);g?i=i+` > ${(g==null?void 0:g.name)||(g==null?void 0:g.eventType)}`:i=i+" > NewComponent"}),{pageName:i}}},saveFormdataInSessionStorage=(n,s)=>{let i;if(s){const d=getFormdataFromSessionStorage();i=_.set(d,s,buildConfig(n))}else i=buildConfig(n);return sessionStorage.setItem("pageFormdata",JSON.stringify(i)),i},getFormdataFromSessionStorage=n=>{const s=sessionStorage.getItem("pageFormdata")?JSON.parse(sessionStorage.getItem("pageFormdata")):void 0;let i;return n&&(i=_.get(s,n),i={...i,...getNavigationHistory(s,n)}),i||(i=getNavigationHistory(s,n)),i||s};async function saveHandler(n,s,i){var c,g;(c=n.searchParams)==null||c.get("id");const d=(g=n.searchParams)==null?void 0:g.get("path");saveFormdataInSessionStorage(n.ctx.core.data,d);const h=JSON.parse(sessionStorage.getItem("pageFormdata"));if(_.isEmpty(n.ctx.core.errors))try{const x=await i(n,s,h);navigateHandler(n,!0,"/PageMasterRecords")}catch{navigateHandler(n,!1)}}const navigateHandler=(n,s,i)=>{s?(sessionStorage.removeItem("pageFormdata"),n.navigate(i||-1),n.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Errors on Page"}))};function okHandler(n){var i;const s=(i=n.searchParams)==null?void 0:i.get("path");_.isEmpty(n.ctx.core.errors)?(saveFormdataInSessionStorage(n.ctx.core.data,s),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","Validation"],LeaderBoard:["Core","Components","Properties","Events","Style","Validation"],WrapperSection:["Core","Components","Properties","Style","Validation"],TabSection:["Core","Components","Properties","Style","Validation"],SpeedoMeter:["Core","Properties","Events","Style","Validation"],card:["Core","Properties","Events","Style","Validation"],UploadFile:["Core","Events","Style","Validation"],Graph:["Core","Properties","Events","Style","Validation"],DownloadFile:["Core","Events","Style","Validation"],Box:["Core","Events","Style","Validation"],Properties:["Core","Properties","Events","Style","Validation"],ProgressBarCard:["Core","Properties","Events","Style","Validation"],RankCard:["Core","Properties","Events","Style","Validation"],Slider:["Core","Components","Events","Style","Validation"],Timer:["Core","Events","Style","Validation"],Rank:["Core","Events","Style","Validation"],Button:["Core","Properties","Events","Style","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","Events","Style","Validation"],Text:["Core","Properties","Events","Style","Validation"],TextArea:["Core","Properties","Events","Style","Validation"],PopUp:["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","Validation"]};function refreshPage(n,s){var g,x;const i=_.cloneDeep(componentBasicUiSchema(s.theme.myTheme)),d=JSON.parse(sessionStorage.getItem("pageFormdata"));if(n){const I={Core:CoreSection,Value:ValueTab,Style:StyleSection,Events:EventSection(s.theme.myTheme),Components:TableSection(s.theme.myTheme),Properties:buildPropertiesSection(n),Validation:ValidationSection},F=(g=sectionLabels[n])==null?void 0:g.map(W=>I[W]);i.elements[0].config.main.tabLabels=sectionLabels[n]||["Core","Style","Events","Validation"],i.elements[0].elements=F||[CoreSection,StyleSection,EventSection(s.theme.myTheme),ValidationSection]}const h=(x=s.searchParams)==null?void 0:x.get("path");h.split(".");const c=_.get(d,h);(c==null?void 0:c.type)==="Table"&&(i.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"}}},i.elements[0].elements[0].elements[5]={type:"Control",scope:"#/properties/filteringOptions",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Filter Mode",multiple:!0}}},i.elements[0].elements[0].elements[6]={type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:6,md:4,lg:9}},options:{widget:"EmptyBox"}}),sessionStorage.getItem("copiedConfig")&&this.ElementPathSetter(i),s.setUiSchema(i)}var Component=(n,s,i,d)=>({setPage:async function(){const h=await this.getFormdata();n.setFormdata(h);const c=this.getSchema();n.setSchema(c),this.refreshPage(h==null?void 0:h.type,n)},refreshPage,getFormdata:function(){var c;const h=(c=n.searchParams)==null?void 0:c.get("path");return getFormdataFromSessionStorage(h)},getSchema:function(){const h=_.cloneDeep(ComponentSchema);return sessionStorage.getItem("copiedConfig")&&(h.properties.RemoveItemButton.disabled=!1),h},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,d,i),onChange:function(){var h,c,g,x;((h=n==null?void 0:n.formData)==null?void 0:h.type)!==((c=n==null?void 0:n.newData)==null?void 0:c.type)&&((g=n==null?void 0:n.newData)==null?void 0:g.type)!==void 0&&this.refreshPage((x=n==null?void 0:n.newData)==null?void 0:x.type,n)},editComponents:function(){var x,I,F;const h=s.path.split(".")[1],c=(x=n.searchParams)==null?void 0:x.get("path"),g=(I=n.searchParams)==null?void 0:I.get("id");if(saveFormdataInSessionStorage(n.ctx.core.data,c),c){const U=`${(F=n.searchParams)==null?void 0:F.get("path")}.elements[${h}]`;n.searchParams.set("path",U),n.setSearchParams(n.searchParams),this.setPage()}else n.navigate(`/Component?path=${`elements[${h}]`}&id=${g}`)},deleteComponents:function(h=!0){var F;const c=(F=n.searchParams)==null?void 0:F.get("path"),g=sessionStorage.getItem("rowId");n.formData.elements.splice(g,1);const x=saveFormdataInSessionStorage(n.ctx.core.data,c),I=c?_.get(x,c):x;n.setFormdata(I),h&&n.updateDialog("popUpComponentSection"),sessionStorage.removeItem("rowId")},deleteEvent:function(h=!0){var I;const c=(I=n.searchParams)==null?void 0:I.get("path"),g=sessionStorage.getItem("rowId");n.formData.events.splice(g,1);const x=saveFormdataInSessionStorage(n.ctx.core.data,c);n.setFormdata(_.get(x,c)),h&&n.updateDialog("popUpEventSection"),sessionStorage.removeItem("rowId")},widgetAddClickHandler:function(){var g;Array.isArray(n.formData.elements)||(n.formData.elements=[]);const h=(g=n.searchParams)==null?void 0:g.get("path");saveFormdataInSessionStorage(n.ctx.core.data,h);const c=`${h}.elements[${n.formData.elements.length}]`;n.searchParams.set("path",c),n.setSearchParams(n.searchParams),this.setPage()},eventEditHandler:function(){var I,F;const h=s.path.split(".")[1],c=(I=n.searchParams)==null?void 0:I.get("path"),g=(F=n.searchParams)==null?void 0:F.get("id");saveFormdataInSessionStorage(n.ctx.core.data,c);const x=`${c}.events[${h}]`;n.navigate(`/ComponentEvents?path=${x}&id=${g}`)},eventAddHandler:function(){var x,I;const h=(x=n.searchParams)==null?void 0:x.get("path"),c=(I=n.searchParams)==null?void 0:I.get("id");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,h);const g=`${h}.events[${n.formData.events.length}]`;n.navigate(`/ComponentEvents?path=${g}&id=${c}`)},backHandler:function(){n.navigate(-1)},deletePopUpComponent:function(){const h=s.path.split(".")[1];sessionStorage.setItem("rowId",h),n.updateDialog("popUpComponentSection")},deletePopUpEvent:function(){const h=s.path.split(".")[1];sessionStorage.setItem("rowId",h),n.updateDialog("popUpEventSection")},copyPasteElement:function(h,c=this.setPage.bind(this)){var I;const[g,x]=(I=s.path.split(".").pop())==null?void 0:I.split("_");g==="Copy"?this.CopyElement(h,x):this.PasteElement(c,x)},CopyElement:function(h=n,c){var te;const g=lodash.exports.cloneDeep(h.schema),x=lodash.exports.cloneDeep(h.uiSchema);g.properties.RemoveItemButton.disabled=!1;const I=s.path.split(".")[1],F=(te=n.searchParams)==null?void 0:te.get("path"),W=this.elementPathHandler(F,I,c),U=getFormdataFromSessionStorage(W);this.ElementPathSetter(x,U),sessionStorage.setItem("copiedConfig",JSON.stringify(U)),n.setSchema(g),n.setUiSchema(x)},PasteElement:function(h,c){var te;if(!sessionStorage.getItem("copiedConfig")){n.setNotify({FailMessage:"No item has been copied.",Fail:!0});return}const g=(te=n.searchParams)==null?void 0:te.get("path");Array.isArray(n.formData.elements)||(n.formData.elements=[]),Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,g);const x=getFormdataFromSessionStorage(g),I=c==="Component"?x.elements.length:x.events.length,F=this.elementPathHandler(g,I,c),W=JSON.parse(sessionStorage.getItem("copiedConfig")),U={Events:" The Events cannot be integrated into the component section.",Component:"The component cannot be integrated into the Events section."};W.Handler&&c==="Component"?n.setNotify({FailMessage:U.Events,Fail:!0}):W.name&&c==="Events"?n.setNotify({FailMessage:U.Component,Fail:!0}):(saveFormdataInSessionStorage(W,F),h())},RemoveItemButton:function(h=n){const c=lodash.exports.cloneDeep(h.schema),g=lodash.exports.cloneDeep(h.uiSchema);c.properties.RemoveItemButton.disabled=!0,g.elements[2].elements[1].config.main.heading="No element copied",sessionStorage.removeItem("copiedConfig"),n.setSchema(c),n.setUiSchema(g)},elementPathHandler:function(h,c,g){return g==="Component"?h?`${h}.elements[${c}]`:`elements[${c}]`:h?`${h}.events[${c}]`:`events[${c}]`},ElementPathSetter:function(h,c){const g=c||JSON.parse(sessionStorage.getItem("copiedConfig"));h.elements[2].elements[1].config.main.heading=`Copied Path: ${g.pageName}`}}),pageMaster=n=>{const{store:s,dynamicData:i,submitHandler:d,service:h}=n;return{setPage:async function(){const c=await this.getFormdata();s.setFormdata(c);const g=await this.getUiSchema(),x=await this.getSchema();s.setSchema(x),s.setUiSchema(g)},getFormdata:async function(){var I;const c=(I=s.searchParams)==null?void 0:I.get("id"),g=await n.pageConfigProvider(c),x=getFormdataFromSessionStorage();return x||(saveFormdataInSessionStorage(g),g)},getUiSchema:function(){const c=_.cloneDeep(PageMasterUiSchema(s.theme.myTheme));return sessionStorage.getItem("copiedConfig")&&Component(s,i,d,h).ElementPathSetter(c),c},getSchema:()=>{const c=_.cloneDeep(PageMasterSchema);return sessionStorage.getItem("copiedConfig")&&(c.properties.RemoveItemButton.disabled=!1),c},backHandler:()=>{sessionStorage.removeItem("pageFormdata"),s.navigate("/PageMasterRecords")},onAddClickHandler:function(){var x;const c=(x=s.searchParams)==null?void 0:x.get("id");Array.isArray(s.formData.elements)||(s.formData.elements=[]);const g=saveFormdataInSessionStorage(s.ctx.core.data);c?s.navigate(`/Component?path=${`elements[${g==null?void 0:g.elements.length}]`}&id=${c}`):s.navigate(`/Component?path=${`elements[${g==null?void 0:g.elements.length}]`}`)},saveHandler:async()=>await saveHandler(s,h,d),Edit_Components:Component(s,i,d,h).editComponents,Delete_Components:async function(){await Component(s,i,d,h).deleteComponents(!1),s.updateDialog("popUpPageMasterComponent")},eventAddHandler:function(){var x;const c=(x=s.searchParams)==null?void 0:x.get("id");Array.isArray(s.formData.events)||(s.formData.events=[]),saveFormdataInSessionStorage(s.ctx.core.data);const g=`events[${s.formData.events.length}]`;s.navigate(`/ComponentEvents?path=${g}&id=${c}`)},editEvent:function(){var I;const c=i.path.split(".")[1],g=(I=s.searchParams)==null?void 0:I.get("id");saveFormdataInSessionStorage(s.ctx.core.data);const x=`events[${c}]`;s.navigate(`/ComponentEvents?path=${x}&id=${g}`)},deleteEvent:function(){const c=sessionStorage.getItem("rowId");s.formData.events.splice(c,1);const g=saveFormdataInSessionStorage(s.ctx.core.data);s.setFormdata(g),s.updateDialog("popUpPageMasterEvent"),sessionStorage.removeItem("rowId")},deletePopUpComponent:function(){const c=i.path.split(".")[1];sessionStorage.setItem("rowId",c),s.updateDialog("popUpPageMasterComponent")},deletePopUpEvent:function(){const c=i.path.split(".")[1];sessionStorage.setItem("rowId",c),s.updateDialog("popUpPageMasterEvent")},copyPasteElement:function(){Component(s,i,d,h).copyPasteElement(s,this.setPage.bind(this))},RemoveItemButton:function(){Component(s,i,d,h).RemoveItemButton(s)}}};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:"Back",const:"onBack"},{title:"Next",const:"onNext"},{title:"Row Movement",const:"onRowMovement"},{title:"Download",const:"onDownload"},{title:"Fail",const:"Fail"}]},Handler:{type:"string",oneOf:[{title:"Custom",const:"custom"},{title:"API",const:"api"},{title:"Inbuilt Function",const:"inBuiltFunction"},{title:"Refresh",const:"refresh"}]},inBuiltFunctionType:{type:"string",oneOf:[{title:"RankProvider",const:"RankProvider"},{title:"Download File",const:"downloadFile"},{title:"Download",const:"download"}]},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}},RemoveItemButton:{disabled:!0}},required:["eventType","Handler"]},EventUiSchema=n=>{var i;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}},elements:[{accessorKey:"eventType",header:"Event's Type",size:300,type:"string"},{accessorKey:"Handler",header:"Handler",size:200,type:"string"},{accessorKey:"Edit_Approve_Records",header:"Edit",type:"action",size:150,widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{size:"small",icon:"TableEditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{accessorKey:"Reject_Records",header:"Delete",type:"action",size:150,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Event",type:"action",size:150,widget:{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!0}}}}]}]},{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 ?"},style:{marginTop:"-20px",fontSize:"20px","&.MuiTypography-root":{padding:"10px 30px 20px 30px",textAlign:"center",lineHeight:"1"}}}},{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",color:"info",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",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",startIcon:"ApproveIcon",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",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:"Box"},config:{layout:12,main:{heading:""},style:{paddingLeft:n.spacing(3),width:"100%",fontSize:"10px",color:n.palette.grey[600],position:"fixed",bottom:"24px",backgroundColor:n.palette.background.default,borderBottom:`1px solid ${n.palette.common.black}29`,borderTop:`1px solid ${n.palette.common.black}29`}}},{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:((i=n==null?void 0:n.palette)==null?void 0:i.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",options:{widget:"Array"},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",options:{widget:"Array"},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",options:{widget:"Array"},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,s,i,d,h)=>({setPage:async function(){const c=await this.getFormData();n.setFormdata(c);const g=await this.getSchema();n.setSchema(g),this.refreshPage(c.Handler,n)},refreshPage:(c,g)=>{const x=_.cloneDeep(EventUiSchema(g.theme.myTheme)),I=_.cloneDeep(EventSchema);c&&(c==="custom"?(x.elements[0].elements[0].elements[2]=getRadioInputField("isSync","Run in Sync",["Yes","No"]),x.elements[0].elements[0].elements[3]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:0,lg:3},main:{},style:{}}},x.elements[0].elements[0].elements[4]=getTextArea("eventCode","Write Custom Code",!1),I.required=["eventType","Handler","eventCode"]):c==="api"?(x.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),x.elements[0].elements[0].elements[3]=APISection,I.required=["eventType","Handler","method","path"]):c==="inBuiltFunction"?(x.elements[0].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name"),x.elements[0].elements[0].elements[3]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:0,lg:3},main:{},style:{}}},x.elements[0].elements[0].elements[4]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0),I.required=["eventType","Handler","inBuiltFunctionType"]):c==="refresh"&&(x.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),x.elements[0].elements[0].elements[3]=refreshSectionUiSchema,I.properties.refreshElements.required=["value"],I.properties.refreshElements.items.required=["value"],I.required=["eventType","Handler","refreshElements"])),h&&(I.properties.inBuiltFunctionType.oneOf=[...I.properties.inBuiltFunctionType.oneOf,...h]),sessionStorage.getItem("copiedConfig")&&(Component(g,s,i,d).ElementPathSetter(x),I.properties.RemoveItemButton.disabled=!1),g.setSchema(I),g.setUiSchema(x)},getFormData:Component(n,s,i,d).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>{const c=_.cloneDeep(EventSchema);return sessionStorage.getItem("copiedConfig")&&(c.properties.RemoveItemButton.disabled=!1),c},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,d,i),onChange:function(){var c,g,x;((c=n==null?void 0:n.formData)==null?void 0:c.Handler)!==((g=n==null?void 0:n.newData)==null?void 0:g.Handler)&&((x=n==null?void 0:n.newData)==null?void 0:x.Handler)!==void 0&&this.refreshPage(n.newData.Handler||n.formdata.Handler,n)},addEvent:function(){var x,I,F;const c=(x=n.searchParams)==null?void 0:x.get("path");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,c);const g=`${c}.events[${(F=(I=n.formData)==null?void 0:I.events)==null?void 0:F.length}]`;n.searchParams.set("path",g),n.setSearchParams(n.searchParams),this.setPage()},editEvent:function(){var I;const c=s.path.split(".")[1],g=(I=n.searchParams)==null?void 0:I.get("path");saveFormdataInSessionStorage(n.ctx.core.data,g);const x=`${g}.events[${c}]`;n.searchParams.set("path",x),n.setSearchParams(n.searchParams),this.setPage()},deleteEvent:async function(){await Component(n,s,i,d).deleteEvent(!1),n.updateDialog("popUpEvent")},backHandler:function(){n.navigate(-1)},deletePopUpEvent:function(){const c=s.path.split(".")[1];sessionStorage.setItem("rowId",c),n.updateDialog("popUpEvent")},copyPasteElement:function(){Component(n,s,i,d).copyPasteElement(n,this.setPage.bind(this))},RemoveItemButton:function(){Component(n,s,i,d).RemoveItemButton(n)}});const downloadFile$1=n=>{const s=n.name.split("."),i=n.data,d=window.atob(i);let h;h=new File([d],s[s.length-1]);const c=URL.createObjectURL(h),g=document.createElement("a");g.href=s[s.length-1]==="pdf"?"data:application/octet-stream;base64,"+i:c,g.download=`${n.name}`,document.body.appendChild(g),g.click(),URL.revokeObjectURL(c),document.body.removeChild(g)},doDownload=(n,s)=>{let i=`${s.defaults.baseURL}/${n.path}`;n!=null&&n.params&&Object.keys(n==null?void 0:n.params).map((c,g)=>{i=i+`${g===0?"?":"&"}${c}=${n==null?void 0:n.params[c]}`});const d=document.createElement("a");d.href=i,document.body.appendChild(d),d.click(),d.parentNode.removeChild(d)},executeEvents=n=>{var h,c,g;let s=[],i=null;if(n.config.isSync!=="Yes")return shouldEventExecute(n).then(x=>{if(!x)throw new Error("onStart Event not allow to run Parent Events");return executeEventsHandler(n)}).then(x=>{var F;i=x,s=(F=n.config)==null?void 0:F.events.filter(W=>W.eventType==="Success")}).catch(x=>{var W,U;const I=(U=(W=n.config)==null?void 0:W.events)==null?void 0:U.filter(te=>te.eventType==="Fail");s=(I==null?void 0:I.length)>0?I:[]}).then(()=>{if((s==null?void 0:s.length)>0)return s.reduce((x,I)=>x.then(()=>executeEvents({...n,config:I,parentEventOutput:i})),Promise.resolve())}).then(()=>i);if(!shouldEventExecute(n))return{response:void 0,events:void 0};try{i=executeEventsHandler(n),s=(h=n.config)==null?void 0:h.events.filter(F=>F.eventType==="Success")}catch{const x=(g=(c=n.config)==null?void 0:c.events)==null?void 0:g.filter(F=>F.eventType==="Fail");s=(x==null?void 0:x.length)>0?x:[]}if((s==null?void 0:s.length)>0)for(const x of s)executeEvents({...n,config:x,parentEventOutput:i});return i};function executeEventsHandler(n){var s,i,d;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.service,n.formDataHolder);if(n.config.Handler==="onBackHandler")return(s=n.store.functionParameters)==null?void 0:s.handleBack();if(n.config.Handler==="onNextHandler")return(i=n.store.functionParameters)==null?void 0:i.handleNext();if(n.config.Handler==="onResetHandler")return(d=n.store.functionParameters)==null?void 0:d.handleReset()}function getRefreshElements(n,s){var d;let i=[];return((d=n==null?void 0:n.refreshElements)==null?void 0:d.length)>0?i=n.refreshElements.map(h=>h.value):s!=null&&s.onLoad&&(i=Object.keys(s==null?void 0:s.onLoad)),i}async function executeRefreshHandler(n){const s=getRefreshElements(n.config,n.eventGroups);return Promise.allSettled(s.map(i=>{const d=n.eventGroups.onLoad[i];return d?Promise.allSettled(d.map(h=>executeEvents({...n,config:h,componentName:i}))):Promise.resolve()}))}function executeApiRequest(n){var h;const s={...(h=n.userValue)==null?void 0:h.payload},i={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},d=buildApiPayload(n.config,s,i,n.store,n.dynamicData,n.userValue,n.service);return n.service[n.config.method](n.config.path,d.body,{headers:d.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,s,i,d,h,c){i.type==="Select"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||d.setSchema(g=>{var x;return{...g,properties:{...g.properties,[s]:{...(x=g.properties)==null?void 0:x[s],oneOf:n.data}}}}):i.type==="MultipleSelect"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||d.setSchema(g=>{var x;return{...g,properties:{...g.properties,[s]:{...(x=g.properties)==null?void 0:x[s],type:"array",items:{oneOf:n==null?void 0:n.data}}}}}):i.type==="page"?_.isEmpty(n==null?void 0:n.data)&&(n==null?void 0:n.data)||(d.newData={...d.newData,...n==null?void 0:n.data},d.setFormdata(g=>({...g,...n==null?void 0:n.data}))):n&&(c[s]=n.data,d.setFormdata(g=>({...g,...c})))}const buildBodyFormat=(n,s,i,d)=>{let h={...i==null?void 0:i.payload};return n.map(c=>{var g,x,I,F,W;if(typeof(c==null?void 0:c.value)!="string")h[c.key]=c.value;else if((g=c==null?void 0:c.value)!=null&&g.startsWith("$userValue")){const U=c.value.substring(11);h[c.key]=_.get(i,U)}else if((x=c==null?void 0:c.value)!=null&&x.startsWith("$urlParams")){const U=c.value.substring(11),te=(I=d==null?void 0:d.searchParams)==null?void 0:I.get(U);h[c.key]=te}else if((F=c==null?void 0:c.value)!=null&&F.startsWith("$local")){const U=c.value.substring(7),te=JSON.parse(sessionStorage.getItem(U)||'""');h[c.key]=te}else if((W=c==null?void 0:c.value)!=null&&W.startsWith("$")){const U=c.value.substring(1);h[c.key]=_.get(s,U)}else(c==null?void 0:c.value)==="*"&&(c==null?void 0:c.key)==="*"?h={...h,...s}:(c==null?void 0:c.value)==="*"?h[c.key]=s:h[c.key]=c.value}),h},buildHeadersFormat=n=>{const s={"X-Requested-With":"XMLHttpRequest"};return n.map(i=>{s[i.key]=i.value}),s};function shouldEventExecute(n){var i,d,h;const s=(d=(i=n.config)==null?void 0:i.events)==null?void 0:d.filter(c=>c.eventType==="onStart");return(s==null?void 0:s.length)>0?((h=s[0])==null?void 0:h.isSync)!=="Yes"?executeEventsHandler({...n,config:s[0]}).then(c=>c):executeEventsHandler({...n,config:s[0]}):n.config.isSync!=="Yes"?Promise.resolve(!0):!0}function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var n,s;compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((s=(n=store==null?void 0:store.ctx)==null?void 0:n.core)==null?void 0:s.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 s(i){i.events&&i.events.forEach(d=>{var c;i.type&&(compType=i.type),eventGroups[d.eventType]||(eventGroups[d.eventType]={}),eventGroups[d.eventType][i.name]||(eventGroups[d.eventType][i.name]=[]);const h=(c=d==null?void 0:d.events)==null?void 0:c.find(g=>g.eventType==="Success");!h&&d.eventType==="onLoad"&&(d.events||(d.events=[]),d.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),!h&&(d.eventType==="onBack"||d.eventType==="onNext"||d.eventType==="onReset")&&(d.events||(d.events=[]),d.events.push({Handler:`${d.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),eventGroups[d.eventType][i.name].push({...d,type:compType})})}return s(n),n!=null&&n.elements&&n.elements.forEach(extractEvents),eventGroups};var service=n=>{eventGroups={};const s={};pageData&&!lodash.exports.isEmpty(pageData)&&typeof pageData=="object"&&(eventGroups=extractEvents(pageData==null?void 0:pageData.config));let i={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:{downloadFile:downloadFile$1,download:doDownload,...n.functionsProvider},eventGroups,functionsProvider:n.functionsProvider,formDataHolder:s};return{setPage:async function(){var F,W,U,te,G,Ee,$e,ie,be,ot,se,Ae,pe;n.store.setFormdata({}),n.store.newData={};const d=sessionStorage.getItem("pagemasterMetaData");d?pageData=JSON.parse(d):(pageData=await n.pageDataProvider(),sessionStorage.setItem("pagemasterMetaData",JSON.stringify({schema:pageData==null?void 0:pageData.schema,uiSchema:pageData==null?void 0:pageData.uiSchema,config:pageData==null?void 0:pageData.config})));const h=pageData==null?void 0:pageData.config,c=pageData==null?void 0:pageData.uiSchema,g=new CustomEvent("pageNameChanged",{detail:{pageName:h.label}});window.dispatchEvent(g);const x=(W=(F=n==null?void 0:n.store)==null?void 0:F.theme)==null?void 0:W.myTheme;c.elements.push({type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:0,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:((te=(U=x==null?void 0:x.palette)==null?void 0:U.text)==null?void 0:te.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:2,width:"fit-content",left:"50%",position:"relative",margin:0,flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}},{type:"Control",scope:"#/properties/FooterBackIcon",options:{widget:"Box"},config:{main:{iconName:"PrevIcon",onClick:"backHandler",width:"fit-content"},style:{fill:(Ee=(G=x==null?void 0:x.palette)==null?void 0:G.primary)==null?void 0:Ee.main,width:20,height:0,top:0,right:{xs:"12px",sm:"84px"},position:"absolute",fontSize:"12px",cursor:"pointer",":hover":{fill:(ie=($e=x==null?void 0:x.palette)==null?void 0:$e.primary)==null?void 0:ie.dark},marginRight:"20px"}}},{type:"Control",scope:"#/properties/FooterBackHandlerText",options:{widget:"Box"},config:{main:{heading:"Previous Page",onClick:"backHandler"},style:{display:{xs:"none",sm:"flex"},textAlign:"left",lineHeight:1,height:0,width:"fit-content",color:(ot=(be=x==null?void 0:x.palette)==null?void 0:be.primary)==null?void 0:ot.main,fontSize:"12px",cursor:"pointer",marginLeft:"2px",top:3,right:"12px",position:"absolute",":hover":{color:(Ae=(se=x==null?void 0:x.palette)==null?void 0:se.primary)==null?void 0:Ae.dark},marginRight:"4px"}}}]});const I=(pe=pageData==null?void 0:pageData.schema)!=null?pe:{type:"object",properties:{}};eventGroups=extractEvents(h),i={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,functionsProvider:n.functionsProvider,serviceHolder:this,eventGroups,formDataHolder:s},await executeRefreshHandler({config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:this,eventGroups,formDataHolder:s}),n.store.setSchema(Te=>({...I,...Te,properties:{...I.properties,...Te.properties}})),c.elements.push(notifyUiSchema),n.store.setUiSchema(c)},onCellRenderer:d=>{var h,c,g;if(eventGroups.onCellRenderer){let x={};const I=((h=n.dynamicData)==null?void 0:h.tableButtonPath)||((g=(c=n==null?void 0:n.dynamicData)==null?void 0:c.path)==null?void 0:g.split(".")[0]);for(const F of eventGroups==null?void 0:eventGroups.onCellRenderer[I])i.store.functionParameters=d,x=executeEvents({...i,config:F,componentName:I});return x}return{}},onClick:function(){this.callHandler("onClick")},onMount:function(){this.callHandler("onMount")},onFileDownload:function(){this.callHandler("onDownload")},onFileUpload:function(){this.callHandler("onUpload")},backHandler:function(){n.store.navigate(-1)},onRowMovement:async function(d){const h=[{key:"direction",value:d.rowMovement.direction},{key:"movedRowId",value:d.rowMovement.movedRowId},{key:"targetRowId",value:d.rowMovement.targetRowId||[]}];await this.callExecuteEvents({path:d==null?void 0:d.path},h,"onRowMovement");const c=await this.callExecuteEvents({path:d==null?void 0:d.path},h,"onLoad");return c==null?void 0:c.data},onPaginationChange:async function(d){var g;const h=[{key:"size",value:d.pagination.pageSize},{key:"pageIndex",value:d.pagination.pageIndex},{key:"sorting",value:d.sorting||[]},{key:"filters",value:d.columnFilters||[]},{key:"globalFilter",value:(g=d.globalFilter)!=null?g:""}],c=await this.callExecuteEvents(d,h,"onLoad");return c==null?void 0:c.data},getSelectOptions:async function(d){if(d.serachValue!==""&&d.serachValue!==void 0){const h=[{key:"searchValue",value:d.serachValue},{key:"currentValue",value:d.currentValue}],c=await this.callExecuteEvents(d,h);return c==null?void 0:c.data}},onChange:async function(){if(eventGroups.onChange){const d=Object.keys(eventGroups.onChange);Promise.all(d.map(async h=>{var c,g;if(((c=n.store)==null?void 0:c.formData[h])!==n.store.newData[h]&&((g=n.store)==null?void 0:g.newData[h])!==void 0)for(const x of eventGroups.onChange[h])await executeEvents({...i,config:x,componentName:h})}))}},callExecuteEvents:async function(d,h,c){var x,I;let g;for(const F of(x=eventGroups==null?void 0:eventGroups[c])==null?void 0:x[d.path]){F.body?F.body=[...F.body,...h]:F.body=h;const W=(I=F==null?void 0:F.events)==null?void 0:I.filter(U=>U.Handler!=="mergeFormdata");F.events=W!=null?W:[],g=await executeEvents({...i,config:F,componentName:d.path})}return g},onBack:async function(d){var c,g;const h=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onBack",d),((g=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:g[h])===void 0&&(d==null||d.handleBack())},onNext:async function(d){var c,g;const h=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onNext",d),((g=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:g[h])===void 0&&(d==null||d.handleNext())},onReset:async function(d){var c,g;const h=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onReset",d),((g=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:g[h])===void 0&&(d==null||d.handleReset())},callHandler:async function(d,h){var g,x,I;const c=((g=n.dynamicData)==null?void 0:g.tableButtonPath)||n.dynamicData.path.split(".")[0];((x=eventGroups==null?void 0:eventGroups[d])==null?void 0:x[c])!==void 0&&Promise.all((I=eventGroups==null?void 0:eventGroups[d])==null?void 0:I[c].map(F=>{i.store.functionParameters=h,executeEvents({...i,config:F,componentName:c})}))},downloadFile:downloadFile$1,download:doDownload,...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 s=_.cloneDeep(leaderBoard);if(n.elements){const i=n.elements.map((d,h)=>d.type?{...{widget:buildUiSchema(d),accessorKey:d.name,header:d.label||d.name}}:{accessorKey:d.name,header:d.label||d.name});s.elements=i}return s.config.main.label=n.label,n.name&&(s.scope=`#/properties/${n.name}`),n.firstImage&&(s.config.main.firstImage=n.firstImage),n.secondImage&&(s.config.main.secondImage=n.secondImage),n.thirdImage&&(s.config.main.thirdImage=n.thirdImage),n.nameKey&&(s.config.main.nameKey=n.nameKey),n.imageKey&&(s.config.main.imageKey=n.imageKey),n.scoreKey&&(s.config.main.scoreKey=n.scoreKey),n.layout&&(s.config.layout=createLayoutFormat(n.layout)),n.style&&(s.config.style=JSON.parse(n.style)),s};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,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,n.heading&&(i.config.main.heading=n.heading),n.bottomLabel_3&&(i.config.main.bottomLabel_3=n.bottomLabel_3),n.bottomLabel_2&&(i.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(i.elements[0].config.main.bottomLabel_1=n.bottomLabel_1),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},buildProgressBar=(n,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,n.layout&&(i.config.layout=n.layout),i.config.main.heading=n.label,n.bottomLabel_3&&(i.config.main.bottomLabel_3=n.bottomLabel_3),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.bottomLabel_2&&(i.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(i.config.main.bottomLabel_1=n.bottomLabel_1),i},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:{}},barStyle:{}}}},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:{}},pieStyle:{}}}},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:{}},lineStyle:{}}}},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:{}},barStyle:{}}}},buildHorizontalBarGraph=(n,s)=>{const i=_.cloneDeep(HorizontalBarGraph);return i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.type=n.graphType,i.scope=s,i.config.main.header=n.heading,n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.barStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),i};var SpeedoMeter={type:"Control",scope:"#/properties/emptyBox",options:{widget:"SpeedoMeter"},config:{layout:{xs:12,sm:12,md:11.7,lg:11.7},width:350,segments:"5",main:{currentValueText:"Your Score",customSegmentLabels:[],data:{maxValue:1e5,value:5e4,minValue:0}},style:{segmentColors:[],ringWidth:57,needleHeightRatio:.7,needleColor:"#3f51b5",startColor:"red",textColor:"black",endColor:"green",containerStyle:{background:"white",padding:"20px",borderRadius:"20px",display:"flex",flexDirection:"column",margin:"auto",justifyContent:"center",fontFamily:"Roboto",fontWeight:500},headerStyle:{textAlign:"left",width:"100%",paddingBottom:"20px"}}}};const buildSpeedoMeter=(n,s)=>{const i=_.cloneDeep(SpeedoMeter);if(i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.heading&&(i.config.main.header=n.heading),n.segments&&(i.config.main.segments=n.segments),n.style){const d=JSON.parse(n.style);d!=null&&d.style&&(i.config.style={...i.config.style,...d.style}),d!=null&&d.containerStyle&&(i.config.style.containerStyle={...i.config.style.containerStyle,...d.containerStyle})}return n.width&&(i.config.main.width=n.width),n.speedoCaption&&(i.config.main.currentValueText=n.speedoCaption),n.data&&(i.config.main.data=n.data),n.needleColor&&(i.config.style.needleColor=n.needleColor),n.segments&&(i.config.style.segments=n.segments),n.endColor&&(i.config.style.endColor=n.endColor),n.startColor&&(i.config.style.startColor=n.startColor),n.segmentColors&&(i.config.style.segmentColors=n.segmentColors),i},buildPieGraph=(n,s)=>{const i=_.cloneDeep(PieGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.height&&(i.config.style.containerStyle.height=n.height),n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),i.scope=s,i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.pieArcColors&&(i.config.style.pieStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),i},buildStackbarGraph=(n,s)=>{var d;const i=_.cloneDeep(BarGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.legendHide&&(i.config.main.legendAvailable=n.legendHide,i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),i.config.main.type=(d=n==null?void 0:n.graphType)!=null?d:"BarGraph",i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.barStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),i.scope=s,i};var RunnerBoyProgressBar={type:"Control",scope:"#/properties/path",options:{widget:"RunnerBoyProgressBar"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{}}};const RunnerBoyProgressbar=(n,s)=>{const i=_.cloneDeep(RunnerBoyProgressBar);return i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(n,s)=>{const i=_.cloneDeep(Tabsection);return i.scope=s,n.lazyLoad&&(i.config.main.lazyLoad=n.lazyLoad==="YES"),n.orientation&&(i.config.main.orientation=n.orientation==="YES"?"vertical":"horizontal"),n.sectionLabels&&(i.config.main.tabLabels=n.sectionLabels.map(d=>d.label)),i.config.main.id=n.name,i};var WrapperSection={type:"WrapperLayout",config:{main:{rowSpacing:3,divider:!0,label:"Default Label"},defaultStyle:!0},elements:[]};const buildWrapperSection=(n,s)=>{const i=_.cloneDeep(WrapperSection);return i.scope=s,i.config.main.label=n.label,i.config.main.divider=n.divider==="YES",i.config.main.isAccordion=n.isAccordion!=="No",n.defaultStyle&&(i.config.defaultStyle=n.defaultStyle==="YES"),n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var TextInputField={type:"Control",scope:"#/properties/text",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:""},style:{}}};const buildTextField=(n,s)=>{const i=_.cloneDeep(TextInputField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.InputFormatingAndMasking&&(i.config.main.formatStrArray=n.InputFormatingAndMasking.map(d=>d.formatElement)),n.placeholder&&(i.config.main.placeholder=n.placeholder),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,i};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"",type:"text",freeSole:!1}}};const buildSelect=(n,s)=>{const i=_.cloneDeep(SelectInputField);return i.config.main.label=n.label,n.value&&(i.config.main.options=n.value),n.freeSolo&&(i.config.main.freeSolo=n.freeSolo==="YES"),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.scope=s,i};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:3,main:{name:"Compare",variant:"contained",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(n,s)=>{const i=_.cloneDeep(Button);return n.buttonType&&(i.options.widget=n.buttonType==="IconButton"?"IconButton":"Button",n.buttonType==="ButtonWithIconAndText"?i.config.main.startIcon=n.iconName:i.config.main.icon=n.iconName),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.tooltipMessage&&(i.config.main.tooltipMessage=n.tooltipMessage),n.defaultStyle&&(n.buttonType==="IconButton"?i.config.main.styleDefault=n.defaultStyle==="true":i.config.main.enableDefaultStyle=n.defaultStyle!=="true"),i.scope=s,n.style&&(i.config.style=JSON.parse(n.style)),n.size&&(i.config.main.size=n.size),n.color&&(i.config.main.color=n.color),n.label&&(i.config.main.name=n.label),i};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{onMount:"onMount",enableExpandAll:!0,allRowData:[],downloadAllData:!1,columns:{dataColumns:[],actionColumns:[]}}}};const buildTable=(n,s)=>{const i=_.cloneDeep(Table);return i.scope=s,n.style&&(i.config.style=JSON.parse(n.style)),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),n.enableRowMovement&&(i.config.main.enableRowMovement=n.enableRowMovement==="YES"),n.enableExpanding&&(i.config.main.enableExpanding=n.enableExpanding==="YES"),n.enableExpandAll&&(i.config.main.enableExpandAll=n.enableExpandAll==="YES"),n.paginateExpandedRows&&(i.config.main.paginateExpandedRows=n.paginateExpandedRows==="YES"),n.treeStructure&&(i.config.main.treeStructure=n.treeStructure==="YES"?"flatTreeMap":!1),n.SelectionAvailable&&(i.config.main.Selection=n.SelectionAvailable==="YES"),n.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=n.ColumnResizingAvailable!=="YES"),n.DragAvailable&&(i.config.main.enableDrag=n.DragAvailable==="YES"),n.downloadAllData&&(i.config.main.downloadAllData=n.downloadAllData==="YES"),n.disableGlobalSearch&&(i.config.main.disableGlobalSearch=n.disableGlobalSearch==="YES"),n.disableColumnFilter&&(i.config.main.disableColumnFilter=n.disableColumnFilter==="YES"),n.disableSorting&&(i.config.main.disableSorting=n.disableSorting==="YES"),n.disableEditColumn&&(i.config.main.disableEditColumn=n.disableEditColumn==="YES"),n.disableFullScreenToggle&&(i.config.main.disableFullScreenToggle=n.disableFullScreenToggle==="YES"),n.disableDensityToggle&&(i.config.main.disableDensityToggle=n.disableDensityToggle==="YES"),n.disableDownloadFile&&(i.config.main.disableDownloadFile=n.disableDownloadFile==="YES"),n.disablePagination&&(i.config.main.disablePagination=n.disablePagination==="YES"),n.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=n.Table_Download_Keys_Name.map(d=>d.KeyName)),n.selectKey&&(i.config.main.selectKey=n.selectKey),i},Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}},buildLabel=(n,s)=>{const i=_.cloneDeep(Box);return i.scope=s,i.config.main.heading=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},uploadFile={type:"Control",scope:"#/properties/attachment",config:{main:{label:"AttachmentFile",onClick:"onClick",required:!0,errorMessage:"Attachment File is not uploaded"},style:{backgroundColor:"none"},layout:{xs:6,sm:6,md:4,lg:4}},options:{widget:"UploadFile"}},downloadFile={type:"Control",scope:"#/properties/downloadAttachment",config:{main:{onClick:"onClick",required:!1},style:{backgroundColor:"none"},layout:{xs:12,sm:6,md:4,lg:4}},options:{widget:"DownloadFile"}},buildUploadFile=(n,s)=>{const i=_.cloneDeep(uploadFile);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=n.style),n.required&&(i.config.main.required=!0),i.config.main.errorMessage=n.errorMessage,i},buildDownloadFile=(n,s)=>{const i=_.cloneDeep(downloadFile);return i.scope=s,n.layout&&(i.config.layout=n.layout),n.style&&(i.config.style=n.style),n.required&&(i.config.main.required=!0),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.errorMessage&&(i.config.main.errorMessage=n.errorMessage),i};function Card(n){return{type:"WrapperLayout",config:{main:{},wrapperStyle:{position:"relative",top:"50%",transform:"translateY(-50%)"},componentsBoxStyle:{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.1)",flexDirection:"row",flexWrap:"nowrap",width:"100% !important",background:"transparent",border:`1.5px solid ${n.palette.primary.light}`,borderRadius:"8px",padding:"0px 4px",height:"100%",alignItems:"center",marginLeft:"0px","&: hover":{background:`${n.palette.primary.main}`,border:"1.5px solid black","& p":{color:"white"}}},layout:{xs:12,sm:12,md:6,lg:6}},elements:[{type:"HorizontalLayout",config:{layout:8},elements:[{type:"WrapperLayout",config:{main:{columnSpacing:0,gap:0},wrapperStyle:{background:"transparent"},componentsBoxStyle:{flexDirection:"column",flexWrap:"nowrap",width:"100%",height:"inherit",background:"transparent",borderRadius:"0px"},layout:12},elements:[{type:"WrapperLayout",config:{main:{columnSpacing:0,gap:0},wrapperStyle:{background:"transparent"},componentsBoxStyle:{flexDirection:"row",flexWrap:"nowrap",width:"100%",height:"0",background:"transparent",borderRadius:"0px",marginLeft:"-10px",marginTop:"-8px",justifyContent:"start",position:"relative"},layout:12},elements:[{type:"Control",scope:"#/properties/programType",config:{main:{heading:""},style:{color:"black",display:"flex",fontSize:{xs:"24px",md:"28px"},fontWeight:"bold",background:"inherit",justifyContent:"flex-start",width:"auto",margin:"-8px",height:0}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"5000.00"},style:{color:"black",display:"flex",fontSize:{xs:"24px",md:"28px"},fontWeight:"bold",background:"inherit",justifyContent:"flex-start",width:"auto",margin:"-8px",position:"absolute",left:"8px"}},options:{widget:"Box"}}]},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"Total Earnings"},style:{color:"black",fontSize:"16px",justifyContent:"center",textWrap:"wrap",background:"inherit",width:"calc(100%+8px)",margin:"-8px",marginTop:{xs:"0px",md:"12px"},lineHeight:"1"},layout:12},options:{widget:"Box"}}]}]},{type:"Control",scope:"#/properties/programType",config:{main:{url:"https://www.svgrepo.com/show/500606/loading.svg"},style:{containerStyle:{height:"100%",display:"flex",justifyContent:"end"},imageStyle:{width:"unset",fontSize:"none",padding:"4px",margin:"0px 0px 0px 8px",height:"64px"}},layout:4},options:{widget:"Image"}}]}}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].elements[0].elements[0].elements[1].scope=`#/properties/${config.name}/properties/value`,card.elements[1].scope=`#/properties/${config.name}/properties/url`,card.elements[0].elements[0].elements[1].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[0].elements[0].elements[0].elements[1].config.main.heading=config.label),config.url&&(card.elements[1].config.main.url=config.url),config.description&&(card.elements[0].elements[0].elements[1].config.main.heading=config.description),card};var DateInputField={type:"Control",scope:"#/properties/date",options:{widget:"DateInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"",type:"date"}}};const DateTime={type:"Control",scope:"#/properties/date",options:{widget:"DateTimeInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"DateTime",type:"date"}}},buildDate=(n,s)=>{const i=_.cloneDeep(DateInputField);return i.config.main.label=n.label,i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},buildDateTime=(n,s)=>{const i=_.cloneDeep(DateTime);return i.config.main.label=n.label,i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var RankCard={type:"Control",scope:"#/properties/path",options:{widget:"RankCard"},config:{layout:{xs:12,sm:6,md:6,lg:6},main:{}}};const buildRankCard=(n,s)=>{const i=_.cloneDeep(RankCard);return i.scope=s,n.rank&&(i.config.main.rank=`${n.rank}`),n.height&&(i.config.main.height=`${n.height}px`),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var RollAndDice={type:"Control",scope:"#/properties/path",options:{widget:"RollAndDice"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRollAndDice=(n,s)=>{const i=_.cloneDeep(RollAndDice);return n.name&&(i.scope=s),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};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,s)=>{const i=_.cloneDeep(Timer);return i.scope=s,n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var MultipleSelect={type:"Control",scope:"#/properties/path",options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"",type:"text",multiple:!0,variant:"standard",options:[]}}};const buildMultiSelect=(n,s)=>{const i=_.cloneDeep(MultipleSelect);return i.scope=s,n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.value&&(i.config.main.options=n.value),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),i},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:{xs:12,sm:12,md:5.5,lg:5.5},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px",background:"white",color:"black"}},main:{heading:"TextArea",minRows:4,hideButton:!0}}},buildTextArea=(n,s)=>{const i=_.cloneDeep(TextArea);return i.config.main.heading=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),n.placeholder&&(i.config.main.placeholder=n.placeholder),n.enableCodeEditor&&(i.config.main.enableCodeEditor=n.enableCodeEditor==="YES"),n.codeEditorLanguage&&(i.config.main.codeEditorLanguage=n.codeEditorLanguage),i.scope=s,i};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(n,s)=>{const i=_.cloneDeep(cardSlider);return n.name&&(i.scope=s),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(n,s)=>{const i=_.cloneDeep(Checkbox);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},buildLineGraph=(n,s)=>{const i=_.cloneDeep(LineGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.header=n.heading,n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.yAxisValue&&(i.config.main.yAxisValue=n.yAxisValue),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.lineStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),i.scope=s,i},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"Enabled",options:["YES","NO"],errorMessage:"Enabled is not marked as YES or NO"}}},buildRadio=(n,s)=>{const i=_.cloneDeep(RadioUiSchema);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.sectionLabels&&(i.config.main.options=n.sectionLabels.map(d=>d.label||d.Options)),n.style&&(i.config.style=JSON.parse(n.style)),i};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:4,md:4,lg:4},main:{},style:{}}};const buildEmptyBox=(n,s)=>{const i=_.cloneDeep(emptyBox);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[]}}},buildArray=(n,s)=>{const i=_.cloneDeep(ArrayUiSchema);return i.scope=s,i},TextField={type:"Control",scope:"#/properties/AAdhar",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"Adhaar Card",formatStrArray:["9","9","9","9"," ","9","9","9","9"," ","X9","X9","X9","X9"],placeholder:"XXXX XXXX XXXX"}}},buildAdhaarField=(n,s)=>{const i=_.cloneDeep(TextField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,i},PanField={type:"Control",scope:"#/properties/pan",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"Pan Card",placeholder:"AAAAA0000A",formatStrArray:["A","A","A","A","A","9","9","9","9","A"]}}},buildPanField=(n,s)=>{const i=_.cloneDeep(PanField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,i},FileInput={type:"Control",scope:"#/properties/docAggrementCopy",options:{widget:"FileInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{required:!1,onUpload:"onFileUpload",onDownload:"onFileDownload",label:"Aggrement Copy"},style:{backgroundColor:"none"}}},buildFileInput=(n,s)=>{const i=_.cloneDeep(FileInput);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},Stepper={type:"Control",scope:"#/properties/Stepper",options:{widget:"Stepper"},config:{main:{steps:[{label:"First"},{label:"Second"},{label:"Third"}],resetButton:!1,resetText:"Reset",orientation:"vertical"}},elements:[]},buildStepper=(n,s)=>{const i=_.cloneDeep(Stepper);return i.scope=s,i.config.main.resetButton=n.resetButton==="YES",n.defaultButtonAvailable&&(i.config.main.defaultButtonAvailable=n.defaultButtonAvailable==="YES"),i.config.main.resetText=n.resetText||"ResetData",i.config.main.completeText=n.completeText||"Complete Text",i.config.main.orientation=n.orientation||"horizontal",n.sectionLabels&&(i.config.main.steps=n.sectionLabels.map((d,h)=>({label:d.label,id:h}))),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},PopUP={type:"Control",scope:"#/properties/text",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{label:"PopUp",fullScreen:!1,fullWidth:!1,maxWidth:!1,alignItems:!1,spacing:2},style:{}}},buildPopUp=(n,s)=>{const i=_.cloneDeep(PopUP);return i.scope=s,i.config.main.title=n.label,i.config.main.fullScreen=n.fullScreen==="YES",i.config.main.fullWidth=n.fullWidth==="YES",i.config.main.maxWidth=n.maxWidth||!1,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(PopUP.config.style=JSON.parse(n.style)),i},dataGrid={type:"Control",scope:"#/properties/dataGrid",layout:12,options:{widget:"DataGrid"},elements:[],config:{main:{elevation:0,useWrapper:!1},style:{}}},buildDataGrid=(n,s)=>{const i=_.cloneDeep(dataGrid);return i.scope=s,n.elevation&&(i.config.main.elevation=+n.elevation),i.config.main.divider=n.divider!=="NO",n.height&&(i.config.main.height=`${n.height}px`),n.justifyContent&&(i.config.main.justifyContent=n.justifyContent),n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.cardLayout&&(i.config.cardLayout=createLayoutFormat(n.cardLayout)),n.style&&(i.config.style=JSON.parse(n.style)),i},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,s)=>{const i=_.cloneDeep(InputSlider);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.limitToMax&&(i.config.main.limitToMax=n.limitToMax==="YES"),n.max&&(i.config.main.max=n.max),n.step&&(i.config.main.step=n.step),n.min&&(i.config.main.min=n.min),n.style&&(i.config.main.defaultStyle=JSON.parse(n.style)),i},TreeMap={type:"Control",scope:"#/properties/TreeMap2",config:{main:{layout:"cartsian",orientation:"vertical",header:"Territory Hierarchy",linkType:"step",graphHeight:"500px"},style:{BoxStyle:{borderRadius:"5px"}}},options:{widget:"TreeMap"},elements:[]},buildTreeMap=(n,s)=>{const i=_.cloneDeep(TreeMap);return i.scope=s,n.label&&(i.config.main.header=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.orientation&&(i.config.main.orientation=n.orientation),n.linkType&&(i.config.main.linkType=n.linkType),n.graphHeight&&(i.config.main.graphHeight=n.graphHeight),n.graphWidth&&(i.config.main.graphWidth=n.graphWidth),n.graphZoomHeight&&(i.config.main.graphZoomHeight=n.graphZoomHeight),n.graphZoomWidth&&(i.config.main.graphZoomWidth=n.graphZoomWidth),n.style&&(i.config.style=JSON.parse(n.style)),i};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,s)=>{const i=_.cloneDeep(Thought);return i.scope=s,n.thought&&(i.config.main.thought=`${n.thought}`),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.label&&(i.config.main.label=n.label),n.style&&(i.config.style=JSON.parse(n.style)),i};var pdfViewer={type:"Control",scope:"#/properties/pdfviewer",options:{widget:"PdfViewer"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"PDF"}}};const buildPdfViewer=n=>{const s=_.cloneDeep(pdfViewer);return s.config.main.label=n.label,n.name&&(s.scope=`#/properties/${n.name}`),n.layout&&(s.config.layout=createLayoutFormat(n.layout)),n.label&&(s.config.main.title=n.label),n.style&&(s.config.style=JSON.parse(n.style)),s};exports.schema={type:"object",properties:{},required:[]};function buildRule(n,s,i){var d,h,c,g,x,I,F,W,U,te;i?(c=(h=(d=exports.schema.properties)==null?void 0:d[s])==null?void 0:h.items)!=null&&c.properties&&((F=(I=(x=(g=exports.schema.properties)==null?void 0:g[s])==null?void 0:x.items)==null?void 0:I.properties)!=null&&F[n.name]||(exports.schema.properties[s].items.properties[n.name]={},n.type==="Select"&&((W=n.value)==null?void 0:W.length)>0?exports.schema.properties[s].items.properties[n.name]={oneOf:n.value.map(G=>({const:G.value,title:G.label}))}:n.type==="MultipleSelect"&&((U=n.value)==null?void 0:U.length)>0&&(exports.schema.properties[s].items.properties[n.name]={items:{oneOf:n.value.map(G=>({const:G.value,title:G.label}))}}))):(n.type==="Select"||n.type==="MultipleSelect")&&((te=n.value)==null?void 0:te.length)>0&&(n.type==="Select"?exports.schema.properties[n.name]={oneOf:n.value.map(G=>({const:G.value,title:G.label}))}:n.type==="MultipleSelect"&&(exports.schema.properties[n.name]={items:{oneOf:n.value.map(G=>({const:G.value,title:G.label}))}})),n.validation&&n.validation.forEach(G=>{var Ee,$e,ie,be,ot,se,Ae,pe,Te,Fe,at,Tt;s?(ie=($e=(Ee=exports.schema.properties)==null?void 0:Ee[s])==null?void 0:$e.items)!=null&&ie.properties&&((Ae=(se=(ot=(be=exports.schema.properties)==null?void 0:be[s])==null?void 0:ot.items)==null?void 0:se.properties)!=null&&Ae[n.name]||(exports.schema.properties[s].items.properties[n.name]={},n.type==="Select"||((pe=n.value)==null?void 0:pe.length)>0?exports.schema.properties[s].items.properties[n.name]={oneOf:n.value.map(ht=>({const:ht.value,title:ht.label}))}:(n.type==="MultipleSelect"||((Te=n.value)==null?void 0:Te.length)>0)&&(exports.schema.properties[s].items.properties[n.name]={items:{oneOf:n.value.map(ht=>({const:ht.value,title:ht.label}))}})),G.validationType==="required"?(Tt=(at=(Fe=exports.schema.properties)==null?void 0:Fe[s])==null?void 0:at.items)==null||Tt.required.push(n.name):(exports.schema.properties[s].items.properties[n.name].type="string",exports.schema.properties[s].items.properties[n.name][G.validationType]=isNaN(G.validationValue)?G.validationValue:Number(G.validationValue))):(exports.schema.properties[n.name]||(exports.schema.properties[n.name]={}),G.validationType==="required"?exports.schema.required.push(n.name):(exports.schema.properties[n.name].type="string",exports.schema.properties[n.name][G.validationType]=isNaN(G.validationValue)?G.validationValue:Number(G.validationValue)))})}const buildSchema=(n,s,i)=>(buildRule(n,s,i),n!=null&&n.elements&&(n.type=="Table"||n.type=="Array"?(exports.schema.properties[n.name]||(exports.schema.properties[n.name]={type:"array",items:{type:"object",properties:{},required:[]}}),n.elements.map((d,h)=>{buildSchema(d,n.name,n.type==="Array")})):n.elements.map((d,h)=>{buildSchema(d)})),exports.schema),buildUiSchema=(n,s)=>{let i={};const d=`#/properties/${n.name}`;switch(n.type){case"TreeMap":i=buildTreeMap(n,d);break;case"DateTime":i=buildDateTime(n,d);break;case"InputSlider":i=buildInputSlider(n,d);break;case"DataGrid":i=buildDataGrid(n,d);break;case"Stepper":i=buildStepper(n,d);break;case"PopUp":i=buildPopUp(n,d);break;case"FileInput":i=buildFileInput(n,d);break;case"AadharcardText":i=buildAdhaarField(n,d);break;case"PanCardText":i=buildPanField(n,d);break;case"TabSection":i=buildTabSection(n,d);break;case"RunnerBoyProgressBar":i=RunnerBoyProgressbar(n,d);break;case"WrapperSection":i=buildWrapperSection(n,d);break;case"Text":i=buildTextField(n,d);break;case"TextArea":i=buildTextArea(n,d);break;case"Date":i=buildDate(n,d);break;case"Select":i=buildSelect(n,d);break;case"Radio":i=buildRadio(n,d);break;case"Button":i=buildButton(n,d);break;case"Table":i=buildTable(n,d);break;case"Array":i=buildArray(n,d);break;case"Box":i=buildLabel(n,d);break;case"CheckBox":i=buildCheckbox(n,d);break;case"UploadFile":i=buildUploadFile(n,d);break;case"DownloadFile":i=buildDownloadFile(n,d);break;case"EmptyBox":i=buildEmptyBox(n);break;case"card":i=buildCard(n,d,s);break;case"Graph":switch(n.graphType){case"BarGraph":case"StackBarGraph":i=buildStackbarGraph(n,d);break;case"LineGraph":i=buildLineGraph(n,d);break;case"PieGraph":i=buildPieGraph(n,d);break;case"HorizontalBarGraph":case"HorizontalStackBarGraph":i=buildHorizontalBarGraph(n,d);break;default:i=buildStackbarGraph(n,d);break}break;case"ProgressBar":i=buildProgressBar(n,d);break;case"SpeedoMeter":i=buildSpeedoMeter(n,d);break;case"ProgressBarCard":i=buildProgressBarCard(n,d);break;case"RankCard":i=buildRankCard(n,d);break;case"Rank":i=buildRollAndDice(n,d);break;case"Slider":i=buildSlider(n,d);break;case"Timer":i=buildTimer(n,d);break;case"ColumnGroup":i={accessorKey:n.name,header:n.label||n.name,elements:[]};break;case"MultipleSelect":i=buildMultiSelect(n,d);break;case"LeaderBoard":i=buildLeaderBoard(n);break;case"Thought":i=buildThoughtOfTheDay(n,d);break;case"PdfViewer":i=buildPdfViewer(n);break;default:exports.schema={type:"object",properties:{},required:[]},i=buildBasicUiSchema(n)}if(n!=null&&n.elements){if((n==null?void 0:n.type)==="LeaderBoard")return i;if(n.type=="ColumnGroup"){const h={};n.sizeHolder&&n.sizeHolder.map((c,g)=>{h[c.keyName]=c.value}),i.elements=n.elements.map((c,g)=>({accessorKey:c.name,header:c.label||c.name,size:h[c.name]||180,type:c.columnFormat,elements:c.type=="ColumnGroup"?c.elements.map(x=>buildUiSchema(x,s)):[]}))}else if(n.type=="Table"){const h={},c={};n.sizeHolder&&n.sizeHolder.map((g,x)=>{h[g.keyName]=g.value}),n.enableColumnFilter&&n.enableColumnFilter.map(g=>{c[g.keyName]=!0}),i.elements=n.elements.map((g,x)=>{var I,F;return g.type?{accessorKey:g.name,header:g.label||g.name,size:h[g.name]||180,type:g.columnFormat,widget:g.type!="ColumnGroup"?buildUiSchema(g,s):void 0,elements:g.type=="ColumnGroup"?g.elements.map(W=>buildUiSchema(W,s)):[],enableColumnFilter:Object.keys(c).length===0?!0:(I=c[g.name])!=null?I:!1,columnFilterModeOptions:n.filteringOptions}:{accessorKey:g.name,type:g.columnFormat,header:g.label||g.name,size:h[g.name]||180,enableColumnFilter:Object.keys(c).length===0?!0:(F=c[g.name])!=null?F:!1,columnFilterModeOptions:n.filteringOptions}})}else n.type=="Array"?i.options.detail.elements=n.elements.map((h,c)=>buildUiSchema(h,s)):i.elements=n.elements.map((h,c)=>buildUiSchema(h,s))}return i};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,exports.buildUiSchema=buildUiSchema,exports.clearFromSessionStorage=clearFromSessionStorage,exports.pageMaster=pageMaster,exports.pageMasterComponents=Component,exports.pageMasterEvents=event,exports.pageService=service,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
28
28
|
//# sourceMappingURL=impaktapps-ui-builder.umd.js.map
|