impaktapps-ui-builder 0.0.101-alpha.35 → 0.0.101-alpha.351

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,28 +1,28 @@
1
- (function(n,s){typeof exports=="object"&&typeof module!="undefined"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(n=typeof globalThis!="undefined"?globalThis:n||self,s(n.MyLib={}))})(this,function(exports){"use strict";const PageMasterSchema={type:"object",properties:{name:{type:"string",minLength:6},label:{type:"string"},layout:{type:"array",items:{type:"object",properties:{layout_key:{type:"string"},layout_value:{type:"string"}}}},template:{oneOf:[{const:"Template-1",title:"template1"},{const:"Template-2",title:"template2"},{const:"Template-3",title:"template3"}]},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},RemoveItemButton:{disabled:!0}},required:["template","name","label"]},PageMasterUiSchema=n=>{var i;return{type:"HorizontalLayout",heading:"Page",elements:[{type:"WrapperLayout",config:{main:{label:"Basic Details",isAccordion:!0,gap:"8px"}},elements:[{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Page Name",options:[],color:"secondary",errorMessage:"Name should be start with 'page_'",helperText:'Name should be start with "page_"',required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Page Heading",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:0,sm:0,md:4,lg:6}},options:{widget:"EmptyBox"}}]},{type:"TabLayout",config:{layout:12,main:{tabLabels:["Page Components","Page Events"]},style:{TabPanelStyle:{padding:0}},TabsStyle:{borderTop:`1px solid ${n.palette.common.black}29`,marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}},TabContainerStyle:{marginTop:"-16px"}},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:"onAddClickHandler",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",size:300,type:"string"},{accessorKey:"type",header:"Type",size:300,type:"string"},{header:"Edit",field:"Reject_Records",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"TableEditIcon",onClick:"Edit_Components",tooltipMessage:"Edit 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",flex:1,widget:{type:"Control",scope:"#/properties/Copy_Component",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!0}}}}]},{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",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}}}}]}]},{scope:"#/properties/Remarks Container",type:"WrapperLayout",config:{layout:12,main:{divider:!1,rowSpacing:0,gap:0},componentsBoxStyle:{padding:"8px 8px 8px 24px"}},elements:[{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Save",variant:"contained",type:"text",onClick:"saveHandler",size:"medium"}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:8,sm:9.5,md:10,lg:10.5}},options:{widget:"EmptyBox"}}]},{type:"Control",scope:"#/properties/popUpPageMasterComponent",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popText",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",startIcon:"ApproveIcon",variant:"contained",color:"info",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",startIcon:"ApproveIcon",variant:"contained",color:"error",type:"text",onClick:"Delete_Components",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/popUpPageMasterEvent",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popText1",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/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%)"}}}]}]}};var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},lodash={exports:{}};/**
1
+ (function(n,s){typeof exports=="object"&&typeof module!="undefined"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(n=typeof globalThis!="undefined"?globalThis:n||self,s(n.MyLib={}))})(this,function(exports){"use strict";const PageMasterSchema={type:"object",properties:{name:{type:"string",minLength:6},label:{type:"string"},layout:{type:"array",items:{type:"object",properties:{layout_key:{type:"string"},layout_value:{type:"string"}}}},template:{oneOf:[{const:"Template-1",title:"template1"},{const:"Template-2",title:"template2"},{const:"Template-3",title:"template3"}]},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},RemoveItemButton:{disabled:!0}},required:["template","name","label"]},PageMasterUiSchema=n=>{var i;return{type:"HorizontalLayout",heading:"Page",elements:[{type:"WrapperLayout",config:{main:{label:"Basic Details",isAccordion:!0,gap:"8px"}},elements:[{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Page Name",options:[],color:"secondary",errorMessage:"Name should be start with 'page_'",helperText:'Name should be start with "page_"',required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Page Heading",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:0,sm:0,md:4,lg:6}},options:{widget:"EmptyBox"}}]},{type:"TabLayout",config:{layout:12,main:{tabLabels:["Page Components","Page Events"]},style:{TabPanelStyle:{padding:0}},TabsStyle:{borderTop:`1px solid ${n.palette.common.black}29`,marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}},TabContainerStyle:{marginTop:"-16px"}},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:"onAddClickHandler",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,title:""},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"name",header:"Name",size:300,type:"string"},{accessorKey:"type",header:"Type",size:300,type:"string"},{header:"Edit",field:"Reject_Records",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"TableEditIcon",onClick:"Edit_Components",tooltipMessage:"Edit 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",flex:1,widget:{type:"Control",scope:"#/properties/Copy_Component",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!0}}}}]},{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",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}}}}]}]},{scope:"#/properties/Remarks Container",type:"WrapperLayout",config:{layout:12,main:{divider:!1,rowSpacing:0,gap:0},componentsBoxStyle:{padding:"8px 8px 8px 24px"}},elements:[{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Save",variant:"contained",type:"text",onClick:"saveHandler",size:"medium"}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:8,sm:9.5,md:10,lg:10.5}},options:{widget:"EmptyBox"}}]},{type:"Control",scope:"#/properties/popUpPageMasterComponent",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popText",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Component ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpComponent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"Delete_Components",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/popUpPageMasterEvent",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popText1",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Event ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/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%)"}}}]}]}};var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},lodash={exports:{}};/**
2
2
  * @license
3
3
  * Lodash <https://lodash.com/>
4
4
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
5
5
  * Released under MIT license <https://lodash.com/license>
6
6
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7
7
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8
- */(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__",O=1,Z=2,G=4,Ee=1,$e=2,ie=1,xe=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",xe],["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,_l=/\b(__p \+=) '' \+/g,wl=/(__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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xs={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},bs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ss=parseFloat,Cs=parseInt,ji=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_s=typeof self=="object"&&self&&self.Object===Object&&self,ae=ji||_s||Function("return this")(),_r=s&&!s.nodeType&&s,xt=_r&&!0&&n&&!n.nodeType&&n,eo=xt&&xt.exports===_r,wr=eo&&ji.process,Le=function(){try{var m=xt&&xt.require&&xt.require("util").types;return m||wr&&wr.binding&&wr.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 be(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 ws(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 _n(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):_n(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 Se(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 wn(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,_o=x.isFinite,ip=In.join,op=yo(V.keys,V),re=ne.max,ue=ne.min,ap=A.now,lp=x.parseInt,wo=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(!Q(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__=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 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,we=N.type,me=W(R);if(we==ul)R=me;else if(!me){if(we==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 _p(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 wp(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=_p,Xe.prototype.get=wp,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),_t(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:xi(e,t[r]);return a}function _t(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&O,y=t&Z,S=t&G;if(r&&(u=a?r(e,o,a,p):r(e)),u!==i)return u;if(!Q(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?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?he: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,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&&!_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 wt(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?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,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:be(o,e,r)}function ko(e){return j(e)&&de(e)==Ft}function Xp(e){return j(e)&&de(e)==Zt}function Zp(e){return j(e)&&de(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&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 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,Ee|$e,o,w):E))return!1}}return!0}function Mo(e){if(!Q(e)||ku(e))return!1;var t=nt(e)?js:Gl;return t.test(Et(e))}function eu(e){return j(e)&&de(e)==qt}function tu(e){return j(e)&&ce(e)==Ne}function nu(e){return j(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(!Q(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]?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,Ee|$e)}}function Wn(e,t,r,o,a){e!==t&&Ur(t,function(p,u){if(a||(a=new ze),Q(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:ee(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):(!Q(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 wt(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 bi(e,o)})}function Go(e,t,r){for(var o=-1,a=t.length,p={};++o<a;){var u=t[o],f=wt(e,u);r(f,u)&&pn(p,mt(u,e),f)}return p}function au(e){return function(t){return wt(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(wo()*(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(ba(e,t,ve),e+"")}function su(e){return Ao($t(e))}function pu(e,t){var r=$t(e);return Qn(r,_t(t,0,r.length))}function pn(e,t,r,o){if(!Q(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=Q(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&&!_e(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=_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 Ce(e){if(typeof e=="string")return e;if(P(e))return X(e,Ce)+"";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:_u(e);if(S)return wn(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(wt(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: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=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 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 xu(e,t){return Ve(e,ga(e),t)}function Yn(e,t){return function(r,o){var a=P(r)?ws: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 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 Q(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 be(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&xe,T=t&(se|Ae),B=t&Tt,M=E?i:un(e);function R(){for(var N=arguments.length,W=v(N),we=N;we--;)W[we]=arguments[we];if(T)var me=Wt(R),Ie=Ds(W,me);if(o&&(W=ta(W,o,a,T)),p&&(W=na(W,p,u,T)),N-=Ie,T&&N<S){var te=ut(W,me);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=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 be(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 be(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|xe));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,_a(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&&_o(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 _u=Ht&&1/wn(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&xe;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 _a(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 Q(e)&&Q(t)&&(p.set(t,e),Wn(e,t,i,fa,p),p.delete(t)),e}function wu(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(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&Ee;if(f||(f=wn),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 N=e[E],W=t[E];if(o)var we=u?o(W,N,E,t,e,p):o(N,W,E,e,t,p);if(!(we===i?N===W||a(N,W,r,o,p):we)){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(ba(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||_i;return e=e===_i?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=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,`{
8
+ */(function(n,s){(function(){var i,d="4.17.21",y=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",x="Invalid `variable` option passed into `_.template`",I="__lodash_hash_undefined__",E=500,B="__lodash_placeholder__",L=1,Y=2,k=4,X=1,K=2,U=1,ie=2,ue=4,V=8,he=16,le=32,ve=64,ce=128,Ce=256,we=512,qe=30,gn="...",yn=800,hn=16,Yt=1,vn=2,bn=3,bt=1/0,pt=9007199254740991,dl=17976931348623157e292,xn=0/0,Je=4294967295,fl=Je-1,ml=Je>>>1,gl=[["ary",ce],["bind",U],["bindKey",ie],["curry",V],["curryRight",he],["flip",we],["partial",le],["partialRight",ve],["rearg",Ce]],Tt="[object Arguments]",Sn="[object Array]",yl="[object AsyncFunction]",Kt="[object Boolean]",Vt="[object Date]",hl="[object DOMException]",Cn="[object Error]",wn="[object Function]",Pi="[object GeneratorFunction]",Ue="[object Map]",qt="[object Number]",vl="[object Null]",je="[object Object]",ki="[object Promise]",bl="[object Proxy]",Jt="[object RegExp]",We="[object Set]",Xt="[object String]",_n="[object Symbol]",xl="[object Undefined]",Zt="[object WeakMap]",Sl="[object WeakSet]",Qt="[object ArrayBuffer]",Lt="[object DataView]",fr="[object Float32Array]",mr="[object Float64Array]",gr="[object Int8Array]",yr="[object Int16Array]",hr="[object Int32Array]",vr="[object Uint8Array]",br="[object Uint8ClampedArray]",xr="[object Uint16Array]",Sr="[object Uint32Array]",Cl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,_l=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mi=/&(?:amp|lt|gt|quot|#39);/g,Ni=/[&<>"']/g,Il=RegExp(Mi.source),El=RegExp(Ni.source),Fl=/<%-([\s\S]+?)%>/g,Al=/<%([\s\S]+?)%>/g,Hi=/<%=([\s\S]+?)%>/g,Tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ll=/^\w*$/,Bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cr=/[\\^$.*+?()[\]{}|]/g,Rl=RegExp(Cr.source),wr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Ml=/,? & /,Nl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Hl=/[()=,{}\[\]\/\s]/,Ol=/\\(\\)?/g,zl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Oi=/\w*$/,$l=/^[-+]0x[0-9a-f]+$/i,Ul=/^0b[01]+$/i,Wl=/^\[object .+?Constructor\]$/,Gl=/^0o[0-7]+$/i,Yl=/^(?:0|[1-9]\d*)$/,Kl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,In=/($^)/,Vl=/['\n\r\u2028\u2029\\]/g,En="\\ud800-\\udfff",ql="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Xl="\\u20d0-\\u20ff",zi=ql+Jl+Xl,$i="\\u2700-\\u27bf",Ui="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",Wi="A-Z\\xc0-\\xd6\\xd8-\\xde",Gi="\\ufe0e\\ufe0f",Yi=Zl+Ql+jl+es,_r="['\u2019]",ts="["+En+"]",Ki="["+Yi+"]",Fn="["+zi+"]",Vi="\\d+",ns="["+$i+"]",qi="["+Ui+"]",Ji="[^"+En+Yi+Vi+$i+Ui+Wi+"]",Ir="\\ud83c[\\udffb-\\udfff]",rs="(?:"+Fn+"|"+Ir+")",Xi="[^"+En+"]",Er="(?:\\ud83c[\\udde6-\\uddff]){2}",Fr="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+Wi+"]",Zi="\\u200d",Qi="(?:"+qi+"|"+Ji+")",is="(?:"+Bt+"|"+Ji+")",ji="(?:"+_r+"(?:d|ll|m|re|s|t|ve))?",eo="(?:"+_r+"(?:D|LL|M|RE|S|T|VE))?",to=rs+"?",no="["+Gi+"]?",os="(?:"+Zi+"(?:"+[Xi,Er,Fr].join("|")+")"+no+to+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ro=no+to+os,ss="(?:"+[ns,Er,Fr].join("|")+")"+ro,ps="(?:"+[Xi+Fn+"?",Fn,Er,Fr,ts].join("|")+")",us=RegExp(_r,"g"),cs=RegExp(Fn,"g"),Ar=RegExp(Ir+"(?="+Ir+")|"+ps+ro,"g"),ds=RegExp([Bt+"?"+qi+"+"+ji+"(?="+[Ki,Bt,"$"].join("|")+")",is+"+"+eo+"(?="+[Ki,Bt+Qi,"$"].join("|")+")",Bt+"?"+Qi+"+"+ji,Bt+"+"+eo,ls,as,Vi,ss].join("|"),"g"),fs=RegExp("["+Zi+En+zi+Gi+"]"),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,ee={};ee[fr]=ee[mr]=ee[gr]=ee[yr]=ee[hr]=ee[vr]=ee[br]=ee[xr]=ee[Sr]=!0,ee[Tt]=ee[Sn]=ee[Qt]=ee[Kt]=ee[Lt]=ee[Vt]=ee[Cn]=ee[wn]=ee[Ue]=ee[qt]=ee[je]=ee[Jt]=ee[We]=ee[Xt]=ee[Zt]=!1;var j={};j[Tt]=j[Sn]=j[Qt]=j[Lt]=j[Kt]=j[Vt]=j[fr]=j[mr]=j[gr]=j[yr]=j[hr]=j[Ue]=j[qt]=j[je]=j[Jt]=j[We]=j[Xt]=j[_n]=j[vr]=j[br]=j[xr]=j[Sr]=!0,j[Cn]=j[wn]=j[Zt]=!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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bs={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},xs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ss=parseFloat,Cs=parseInt,io=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,fe=io||ws||Function("return this")(),Tr=s&&!s.nodeType&&s,xt=Tr&&!0&&n&&!n.nodeType&&n,oo=xt&&xt.exports===Tr,Lr=oo&&io.process,Pe=function(){try{var m=xt&&xt.require&&xt.require("util").types;return m||Lr&&Lr.binding&&Lr.binding("util")}catch{}}(),ao=Pe&&Pe.isArrayBuffer,lo=Pe&&Pe.isDate,so=Pe&&Pe.isMap,po=Pe&&Pe.isRegExp,uo=Pe&&Pe.isSet,co=Pe&&Pe.isTypedArray;function Ae(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 M=-1,q=m==null?0:m.length;++M<q;){var se=m[M];b(A,se,v(se),m)}return A}function ke(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 fo(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 ut(m,b){for(var v=-1,A=m==null?0:m.length,M=0,q=[];++v<A;){var se=m[v];b(se,v,m)&&(q[M++]=se)}return q}function An(m,b){var v=m==null?0:m.length;return!!v&&Rt(m,b,0)>-1}function Br(m,b,v){for(var A=-1,M=m==null?0:m.length;++A<M;)if(v(b,m[A]))return!0;return!1}function te(m,b){for(var v=-1,A=m==null?0:m.length,M=Array(A);++v<A;)M[v]=b(m[v],v,m);return M}function ct(m,b){for(var v=-1,A=b.length,M=m.length;++v<A;)m[M+v]=b[v];return m}function Rr(m,b,v,A){var M=-1,q=m==null?0:m.length;for(A&&q&&(v=m[++M]);++M<q;)v=b(v,m[M],M,m);return v}function Es(m,b,v,A){var M=m==null?0:m.length;for(A&&M&&(v=m[--M]);M--;)v=b(v,m[M],M,m);return v}function Dr(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 Fs=Pr("length");function As(m){return m.split("")}function Ts(m){return m.match(Nl)||[]}function mo(m,b,v){var A;return v(m,function(M,q,se){if(b(M,q,se))return A=q,!1}),A}function Tn(m,b,v,A){for(var M=m.length,q=v+(A?1:-1);A?q--:++q<M;)if(b(m[q],q,m))return q;return-1}function Rt(m,b,v){return b===b?$s(m,b,v):Tn(m,go,v)}function Ls(m,b,v,A){for(var M=v-1,q=m.length;++M<q;)if(A(m[M],b))return M;return-1}function go(m){return m!==m}function yo(m,b){var v=m==null?0:m.length;return v?Mr(m,b)/v:xn}function Pr(m){return function(b){return b==null?i:b[m]}}function kr(m){return function(b){return m==null?i:m[b]}}function ho(m,b,v,A,M){return M(m,function(q,se,Q){v=A?(A=!1,q):b(v,q,se,Q)}),v}function Bs(m,b){var v=m.length;for(m.sort(b);v--;)m[v]=m[v].value;return m}function Mr(m,b){for(var v,A=-1,M=m.length;++A<M;){var q=b(m[A]);q!==i&&(v=v===i?q:v+q)}return v}function Nr(m,b){for(var v=-1,A=Array(m);++v<m;)A[v]=b(v);return A}function Rs(m,b){return te(b,function(v){return[v,m[v]]})}function vo(m){return m&&m.slice(0,Co(m)+1).replace(wr,"")}function Te(m){return function(b){return m(b)}}function Hr(m,b){return te(b,function(v){return m[v]})}function jt(m,b){return m.has(b)}function bo(m,b){for(var v=-1,A=m.length;++v<A&&Rt(b,m[v],0)>-1;);return v}function xo(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=kr(hs),ks=kr(vs);function Ms(m){return"\\"+xs[m]}function Ns(m,b){return m==null?i:m[b]}function Dt(m){return fs.test(m)}function Hs(m){return ms.test(m)}function Os(m){for(var b,v=[];!(b=m.next()).done;)v.push(b.value);return v}function Or(m){var b=-1,v=Array(m.size);return m.forEach(function(A,M){v[++b]=[M,A]}),v}function So(m,b){return function(v){return m(b(v))}}function dt(m,b){for(var v=-1,A=m.length,M=0,q=[];++v<A;){var se=m[v];(se===b||se===B)&&(m[v]=B,q[M++]=v)}return q}function Ln(m){var b=-1,v=Array(m.size);return m.forEach(function(A){v[++b]=A}),v}function zs(m){var b=-1,v=Array(m.size);return m.forEach(function(A){v[++b]=[A,A]}),v}function $s(m,b,v){for(var A=v-1,M=m.length;++A<M;)if(m[A]===b)return A;return-1}function Us(m,b,v){for(var A=v+1;A--;)if(m[A]===b)return A;return A}function Pt(m){return Dt(m)?Gs(m):Fs(m)}function Ge(m){return Dt(m)?Ys(m):As(m)}function Co(m){for(var b=m.length;b--&&Dl.test(m.charAt(b)););return b}var Ws=kr(bs);function Gs(m){for(var b=Ar.lastIndex=0;Ar.test(m);)++b;return b}function Ys(m){return m.match(Ar)||[]}function Ks(m){return m.match(ds)||[]}var Vs=function m(b){b=b==null?fe:kt.defaults(fe.Object(),b,kt.pick(fe,gs));var v=b.Array,A=b.Date,M=b.Error,q=b.Function,se=b.Math,Q=b.Object,zr=b.RegExp,qs=b.String,Me=b.TypeError,Bn=v.prototype,Js=q.prototype,Mt=Q.prototype,Rn=b["__core-js_shared__"],Dn=Js.toString,Z=Mt.hasOwnProperty,Xs=0,wo=function(){var e=/[^.]+$/.exec(Rn&&Rn.keys&&Rn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Pn=Mt.toString,Zs=Dn.call(Q),Qs=fe._,js=zr("^"+Dn.call(Z).replace(Cr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kn=oo?b.Buffer:i,ft=b.Symbol,Mn=b.Uint8Array,_o=kn?kn.allocUnsafe:i,Nn=So(Q.getPrototypeOf,Q),Io=Q.create,Eo=Mt.propertyIsEnumerable,Hn=Bn.splice,Fo=ft?ft.isConcatSpreadable:i,en=ft?ft.iterator:i,St=ft?ft.toStringTag:i,On=function(){try{var e=Et(Q,"defineProperty");return e({},"",{}),e}catch{}}(),ep=b.clearTimeout!==fe.clearTimeout&&b.clearTimeout,tp=A&&A.now!==fe.Date.now&&A.now,np=b.setTimeout!==fe.setTimeout&&b.setTimeout,zn=se.ceil,$n=se.floor,$r=Q.getOwnPropertySymbols,rp=kn?kn.isBuffer:i,Ao=b.isFinite,ip=Bn.join,op=So(Q.keys,Q),pe=se.max,ge=se.min,ap=A.now,lp=b.parseInt,To=se.random,sp=Bn.reverse,Ur=Et(b,"DataView"),tn=Et(b,"Map"),Wr=Et(b,"Promise"),Nt=Et(b,"Set"),nn=Et(b,"WeakMap"),rn=Et(Q,"create"),Un=nn&&new nn,Ht={},pp=Ft(Ur),up=Ft(tn),cp=Ft(Wr),dp=Ft(Nt),fp=Ft(nn),Wn=ft?ft.prototype:i,on=Wn?Wn.valueOf:i,Lo=Wn?Wn.toString:i;function l(e){if(re(e)&&!N(e)&&!(e instanceof W)){if(e instanceof Ne)return e;if(Z.call(e,"__wrapped__"))return Ba(e)}return new Ne(e)}var Ot=function(){function e(){}return function(t){if(!ne(t))return{};if(Io)return Io(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function Gn(){}function Ne(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}l.templateSettings={escape:Fl,evaluate:Al,interpolate:Hi,variable:"",imports:{_:l}},l.prototype=Gn.prototype,l.prototype.constructor=l,Ne.prototype=Ot(Gn.prototype),Ne.prototype.constructor=Ne;function W(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Je,this.__views__=[]}function mp(){var e=new W(this.__wrapped__);return e.__actions__=_e(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=_e(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=_e(this.__views__),e}function gp(){if(this.__filtered__){var e=new W(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=N(e),o=t<0,a=r?e.length:0,p=Au(0,a,this.__views__),c=p.start,f=p.end,g=f-c,S=o?f:c-1,C=this.__iteratees__,w=C.length,F=0,T=ge(g,this.__takeCount__);if(!r||!o&&a==g&&T==g)return ea(e,this.__actions__);var D=[];e:for(;g--&&F<T;){S+=t;for(var O=-1,P=e[S];++O<w;){var $=C[O],G=$.iteratee,Re=$.type,Se=G(P);if(Re==vn)P=Se;else if(!Se){if(Re==Yt)continue e;break e}}D[F++]=P}return D}W.prototype=Ot(Gn.prototype),W.prototype.constructor=W;function Ct(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__=rn?rn(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(rn){var r=t[e];return r===I?i:r}return Z.call(t,e)?t[e]:i}function xp(e){var t=this.__data__;return rn?t[e]!==i:Z.call(t,e)}function Sp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=rn&&t===i?I:t,this}Ct.prototype.clear=hp,Ct.prototype.delete=vp,Ct.prototype.get=bp,Ct.prototype.has=xp,Ct.prototype.set=Sp;function et(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=Yn(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():Hn.call(t,r,1),--this.size,!0}function _p(e){var t=this.__data__,r=Yn(t,e);return r<0?i:t[r][1]}function Ip(e){return Yn(this.__data__,e)>-1}function Ep(e,t){var r=this.__data__,o=Yn(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}et.prototype.clear=Cp,et.prototype.delete=wp,et.prototype.get=_p,et.prototype.has=Ip,et.prototype.set=Ep;function tt(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 Fp(){this.size=0,this.__data__={hash:new Ct,map:new(tn||et),string:new Ct}}function Ap(e){var t=rr(this,e).delete(e);return this.size-=t?1:0,t}function Tp(e){return rr(this,e).get(e)}function Lp(e){return rr(this,e).has(e)}function Bp(e,t){var r=rr(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}tt.prototype.clear=Fp,tt.prototype.delete=Ap,tt.prototype.get=Tp,tt.prototype.has=Lp,tt.prototype.set=Bp;function wt(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new tt;++t<r;)this.add(e[t])}function Rp(e){return this.__data__.set(e,I),this}function Dp(e){return this.__data__.has(e)}wt.prototype.add=wt.prototype.push=Rp,wt.prototype.has=Dp;function Ye(e){var t=this.__data__=new et(e);this.size=t.size}function Pp(){this.__data__=new et,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 Np(e){return this.__data__.has(e)}function Hp(e,t){var r=this.__data__;if(r instanceof et){var o=r.__data__;if(!tn||o.length<y-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new tt(o)}return r.set(e,t),this.size=r.size,this}Ye.prototype.clear=Pp,Ye.prototype.delete=kp,Ye.prototype.get=Mp,Ye.prototype.has=Np,Ye.prototype.set=Hp;function Bo(e,t){var r=N(e),o=!r&&At(e),a=!r&&!o&&vt(e),p=!r&&!o&&!a&&Wt(e),c=r||o||a||p,f=c?Nr(e.length,qs):[],g=f.length;for(var S in e)(t||Z.call(e,S))&&!(c&&(S=="length"||a&&(S=="offset"||S=="parent")||p&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||ot(S,g)))&&f.push(S);return f}function Ro(e){var t=e.length;return t?e[ei(0,t-1)]:i}function Op(e,t){return ir(_e(e),_t(t,0,e.length))}function zp(e){return ir(_e(e))}function Gr(e,t,r){(r!==i&&!Ke(e[t],r)||r===i&&!(t in e))&&nt(e,t,r)}function an(e,t,r){var o=e[t];(!(Z.call(e,t)&&Ke(o,r))||r===i&&!(t in e))&&nt(e,t,r)}function Yn(e,t){for(var r=e.length;r--;)if(Ke(e[r][0],t))return r;return-1}function $p(e,t,r,o){return mt(e,function(a,p,c){t(o,a,r(a),c)}),o}function Do(e,t){return e&&Ze(t,de(t),e)}function Up(e,t){return e&&Ze(t,Ee(t),e)}function nt(e,t,r){t=="__proto__"&&On?On(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Yr(e,t){for(var r=-1,o=t.length,a=v(o),p=e==null;++r<o;)a[r]=p?i:Ii(e,t[r]);return a}function _t(e,t,r){return e===e&&(r!==i&&(e=e<=r?e:r),t!==i&&(e=e>=t?e:t)),e}function He(e,t,r,o,a,p){var c,f=t&L,g=t&Y,S=t&k;if(r&&(c=a?r(e,o,a,p):r(e)),c!==i)return c;if(!ne(e))return e;var C=N(e);if(C){if(c=Lu(e),!f)return _e(e,c)}else{var w=ye(e),F=w==wn||w==Pi;if(vt(e))return ra(e,f);if(w==je||w==Tt||F&&!a){if(c=g||F?{}:Ca(e),!f)return g?bu(e,Up(c,e)):vu(e,Do(c,e))}else{if(!j[w])return a?e:{};c=Bu(e,w,f)}}p||(p=new Ye);var T=p.get(e);if(T)return T;p.set(e,c),Za(e)?e.forEach(function(P){c.add(He(P,t,r,P,e,p))}):Ja(e)&&e.forEach(function(P,$){c.set($,He(P,t,r,$,e,p))});var D=S?g?ci:ui:g?Ee:de,O=C?i:D(e);return ke(O||e,function(P,$){O&&($=P,P=e[$]),an(c,$,He(P,t,r,$,e,p))}),c}function Wp(e){var t=de(e);return function(r){return Po(r,e,t)}}function Po(e,t,r){var o=r.length;if(e==null)return!o;for(e=Q(e);o--;){var a=r[o],p=t[a],c=e[a];if(c===i&&!(a in e)||!p(c))return!1}return!0}function ko(e,t,r){if(typeof e!="function")throw new Me(h);return fn(function(){e.apply(i,r)},t)}function ln(e,t,r,o){var a=-1,p=An,c=!0,f=e.length,g=[],S=t.length;if(!f)return g;r&&(t=te(t,Te(r))),o?(p=Br,c=!1):t.length>=y&&(p=jt,c=!1,t=new wt(t));e:for(;++a<f;){var C=e[a],w=r==null?C:r(C);if(C=o||C!==0?C:0,c&&w===w){for(var F=S;F--;)if(t[F]===w)continue e;g.push(C)}else p(t,w,o)||g.push(C)}return g}var mt=sa(Xe),Mo=sa(Vr,!0);function Gp(e,t){var r=!0;return mt(e,function(o,a,p){return r=!!t(o,a,p),r}),r}function Kn(e,t,r){for(var o=-1,a=e.length;++o<a;){var p=e[o],c=t(p);if(c!=null&&(f===i?c===c&&!Be(c):r(c,f)))var f=c,g=p}return g}function Yp(e,t,r,o){var a=e.length;for(r=H(r),r<0&&(r=-r>a?0:a+r),o=o===i||o>a?a:H(o),o<0&&(o+=a),o=r>o?0:ja(o);r<o;)e[r++]=t;return e}function No(e,t){var r=[];return mt(e,function(o,a,p){t(o,a,p)&&r.push(o)}),r}function me(e,t,r,o,a){var p=-1,c=e.length;for(r||(r=Du),a||(a=[]);++p<c;){var f=e[p];t>0&&r(f)?t>1?me(f,t-1,r,o,a):ct(a,f):o||(a[a.length]=f)}return a}var Kr=pa(),Ho=pa(!0);function Xe(e,t){return e&&Kr(e,t,de)}function Vr(e,t){return e&&Ho(e,t,de)}function Vn(e,t){return ut(t,function(r){return at(e[r])})}function It(e,t){t=yt(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 Oo(e,t,r){var o=t(e);return N(e)?o:ct(o,r(e))}function be(e){return e==null?e===i?xl:vl:St&&St in Q(e)?Fu(e):zu(e)}function qr(e,t){return e>t}function Kp(e,t){return e!=null&&Z.call(e,t)}function Vp(e,t){return e!=null&&t in Q(e)}function qp(e,t,r){return e>=ge(t,r)&&e<pe(t,r)}function Jr(e,t,r){for(var o=r?Br:An,a=e[0].length,p=e.length,c=p,f=v(p),g=1/0,S=[];c--;){var C=e[c];c&&t&&(C=te(C,Te(t))),g=ge(C.length,g),f[c]=!r&&(t||a>=120&&C.length>=120)?new wt(c&&C):i}C=e[0];var w=-1,F=f[0];e:for(;++w<a&&S.length<g;){var T=C[w],D=t?t(T):T;if(T=r||T!==0?T:0,!(F?jt(F,D):o(S,D,r))){for(c=p;--c;){var O=f[c];if(!(O?jt(O,D):o(e[c],D,r)))continue e}F&&F.push(D),S.push(T)}}return S}function Jp(e,t,r,o){return Xe(e,function(a,p,c){t(o,r(a),p,c)}),o}function sn(e,t,r){t=yt(t,e),e=Ea(e,t);var o=e==null?e:e[Qe(ze(t))];return o==null?i:Ae(o,e,r)}function zo(e){return re(e)&&be(e)==Tt}function Xp(e){return re(e)&&be(e)==Qt}function Zp(e){return re(e)&&be(e)==Vt}function pn(e,t,r,o,a){return e===t?!0:e==null||t==null||!re(e)&&!re(t)?e!==e&&t!==t:Qp(e,t,r,o,pn,a)}function Qp(e,t,r,o,a,p){var c=N(e),f=N(t),g=c?Sn:ye(e),S=f?Sn:ye(t);g=g==Tt?je:g,S=S==Tt?je:S;var C=g==je,w=S==je,F=g==S;if(F&&vt(e)){if(!vt(t))return!1;c=!0,C=!1}if(F&&!C)return p||(p=new Ye),c||Wt(e)?ba(e,t,r,o,a,p):Iu(e,t,g,r,o,a,p);if(!(r&X)){var T=C&&Z.call(e,"__wrapped__"),D=w&&Z.call(t,"__wrapped__");if(T||D){var O=T?e.value():e,P=D?t.value():t;return p||(p=new Ye),a(O,P,r,o,p)}}return F?(p||(p=new Ye),Eu(e,t,r,o,a,p)):!1}function jp(e){return re(e)&&ye(e)==Ue}function Xr(e,t,r,o){var a=r.length,p=a,c=!o;if(e==null)return!p;for(e=Q(e);a--;){var f=r[a];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++a<p;){f=r[a];var g=f[0],S=e[g],C=f[1];if(c&&f[2]){if(S===i&&!(g in e))return!1}else{var w=new Ye;if(o)var F=o(S,C,g,e,t,w);if(!(F===i?pn(C,S,X|K,o,w):F))return!1}}return!0}function $o(e){if(!ne(e)||ku(e))return!1;var t=at(e)?js:Wl;return t.test(Ft(e))}function eu(e){return re(e)&&be(e)==Jt}function tu(e){return re(e)&&ye(e)==We}function nu(e){return re(e)&&ur(e.length)&&!!ee[be(e)]}function Uo(e){return typeof e=="function"?e:e==null?Fe:typeof e=="object"?N(e)?Yo(e[0],e[1]):Go(e):ul(e)}function Zr(e){if(!dn(e))return op(e);var t=[];for(var r in Q(e))Z.call(e,r)&&r!="constructor"&&t.push(r);return t}function ru(e){if(!ne(e))return Ou(e);var t=dn(e),r=[];for(var o in e)o=="constructor"&&(t||!Z.call(e,o))||r.push(o);return r}function Qr(e,t){return e<t}function Wo(e,t){var r=-1,o=Ie(e)?v(e.length):[];return mt(e,function(a,p,c){o[++r]=t(a,p,c)}),o}function Go(e){var t=fi(e);return t.length==1&&t[0][2]?_a(t[0][0],t[0][1]):function(r){return r===e||Xr(r,e,t)}}function Yo(e,t){return gi(e)&&wa(t)?_a(Qe(e),t):function(r){var o=Ii(r,e);return o===i&&o===t?Ei(r,e):pn(t,o,X|K)}}function qn(e,t,r,o,a){e!==t&&Kr(t,function(p,c){if(a||(a=new Ye),ne(p))iu(e,t,c,r,qn,o,a);else{var f=o?o(hi(e,c),p,c+"",e,t,a):i;f===i&&(f=p),Gr(e,c,f)}},Ee)}function iu(e,t,r,o,a,p,c){var f=hi(e,r),g=hi(t,r),S=c.get(g);if(S){Gr(e,r,S);return}var C=p?p(f,g,r+"",e,t,c):i,w=C===i;if(w){var F=N(g),T=!F&&vt(g),D=!F&&!T&&Wt(g);C=g,F||T||D?N(f)?C=f:oe(f)?C=_e(f):T?(w=!1,C=ra(g,!0)):D?(w=!1,C=ia(g,!0)):C=[]:mn(g)||At(g)?(C=f,At(f)?C=el(f):(!ne(f)||at(f))&&(C=Ca(g))):w=!1}w&&(c.set(g,C),a(C,g,o,p,c),c.delete(g)),Gr(e,r,C)}function Ko(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,ot(t,r)?e[t]:i}function Vo(e,t,r){t.length?t=te(t,function(p){return N(p)?function(c){return It(c,p.length===1?p[0]:p)}:p}):t=[Fe];var o=-1;t=te(t,Te(R()));var a=Wo(e,function(p,c,f){var g=te(t,function(S){return S(p)});return{criteria:g,index:++o,value:p}});return Bs(a,function(p,c){return hu(p,c,r)})}function ou(e,t){return qo(e,t,function(r,o){return Ei(e,o)})}function qo(e,t,r){for(var o=-1,a=t.length,p={};++o<a;){var c=t[o],f=It(e,c);r(f,c)&&un(p,yt(c,e),f)}return p}function au(e){return function(t){return It(t,e)}}function jr(e,t,r,o){var a=o?Ls:Rt,p=-1,c=t.length,f=e;for(e===t&&(t=_e(t)),r&&(f=te(e,Te(r)));++p<c;)for(var g=0,S=t[p],C=r?r(S):S;(g=a(f,C,g,o))>-1;)f!==e&&Hn.call(f,g,1),Hn.call(e,g,1);return e}function Jo(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;ot(a)?Hn.call(e,a,1):ri(e,a)}}return e}function ei(e,t){return e+$n(To()*(t-e+1))}function lu(e,t,r,o){for(var a=-1,p=pe(zn((t-e)/(r||1)),0),c=v(p);p--;)c[o?p:++a]=e,e+=r;return c}function ti(e,t){var r="";if(!e||t<1||t>pt)return r;do t%2&&(r+=e),t=$n(t/2),t&&(e+=e);while(t);return r}function z(e,t){return vi(Ia(e,t,Fe),e+"")}function su(e){return Ro(Gt(e))}function pu(e,t){var r=Gt(e);return ir(r,_t(t,0,r.length))}function un(e,t,r,o){if(!ne(e))return e;t=yt(t,e);for(var a=-1,p=t.length,c=p-1,f=e;f!=null&&++a<p;){var g=Qe(t[a]),S=r;if(g==="__proto__"||g==="constructor"||g==="prototype")return e;if(a!=c){var C=f[g];S=o?o(C,g,f):i,S===i&&(S=ne(C)?C:ot(t[a+1])?[]:{})}an(f,g,S),f=f[g]}return e}var Xo=Un?function(e,t){return Un.set(e,t),e}:Fe,uu=On?function(e,t){return On(e,"toString",{configurable:!0,enumerable:!1,value:Ai(t),writable:!0})}:Fe;function cu(e){return ir(Gt(e))}function Oe(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 mt(e,function(o,a,p){return r=t(o,a,p),!r}),!!r}function Jn(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,c=e[p];c!==null&&!Be(c)&&(r?c<=t:c<t)?o=p+1:a=p}return a}return ni(e,t,Fe,r)}function ni(e,t,r,o){var a=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var c=t!==t,f=t===null,g=Be(t),S=t===i;a<p;){var C=$n((a+p)/2),w=r(e[C]),F=w!==i,T=w===null,D=w===w,O=Be(w);if(c)var P=o||D;else S?P=D&&(o||F):f?P=D&&F&&(o||!T):g?P=D&&F&&!T&&(o||!O):T||O?P=!1:P=o?w<=t:w<t;P?a=C+1:p=C}return ge(p,fl)}function Zo(e,t){for(var r=-1,o=e.length,a=0,p=[];++r<o;){var c=e[r],f=t?t(c):c;if(!r||!Ke(f,g)){var g=f;p[a++]=c===0?0:c}}return p}function Qo(e){return typeof e=="number"?e:Be(e)?xn:+e}function Le(e){if(typeof e=="string")return e;if(N(e))return te(e,Le)+"";if(Be(e))return Lo?Lo.call(e):"";var t=e+"";return t=="0"&&1/e==-bt?"-0":t}function gt(e,t,r){var o=-1,a=An,p=e.length,c=!0,f=[],g=f;if(r)c=!1,a=Br;else if(p>=y){var S=t?null:wu(e);if(S)return Ln(S);c=!1,a=jt,g=new wt}else g=t?[]:f;e:for(;++o<p;){var C=e[o],w=t?t(C):C;if(C=r||C!==0?C:0,c&&w===w){for(var F=g.length;F--;)if(g[F]===w)continue e;t&&g.push(w),f.push(C)}else a(g,w,r)||(g!==f&&g.push(w),f.push(C))}return f}function ri(e,t){return t=yt(t,e),e=Ea(e,t),e==null||delete e[Qe(ze(t))]}function jo(e,t,r,o){return un(e,t,r(It(e,t)),o)}function Xn(e,t,r,o){for(var a=e.length,p=o?a:-1;(o?p--:++p<a)&&t(e[p],p,e););return r?Oe(e,o?0:p,o?p+1:a):Oe(e,o?p+1:0,o?a:p)}function ea(e,t){var r=e;return r instanceof W&&(r=r.value()),Rr(t,function(o,a){return a.func.apply(a.thisArg,ct([o],a.args))},r)}function ii(e,t,r){var o=e.length;if(o<2)return o?gt(e[0]):[];for(var a=-1,p=v(o);++a<o;)for(var c=e[a],f=-1;++f<o;)f!=a&&(p[a]=ln(p[a]||c,e[f],t,r));return gt(me(p,1),t,r)}function ta(e,t,r){for(var o=-1,a=e.length,p=t.length,c={};++o<a;){var f=o<p?t[o]:i;r(c,e[o],f)}return c}function oi(e){return oe(e)?e:[]}function ai(e){return typeof e=="function"?e:Fe}function yt(e,t){return N(e)?e:gi(e,t)?[e]:La(J(e))}var fu=z;function ht(e,t,r){var o=e.length;return r=r===i?o:r,!t&&r>=o?e:Oe(e,t,r)}var na=ep||function(e){return fe.clearTimeout(e)};function ra(e,t){if(t)return e.slice();var r=e.length,o=_o?_o(r):new e.constructor(r);return e.copy(o),o}function li(e){var t=new e.constructor(e.byteLength);return new Mn(t).set(new Mn(e)),t}function mu(e,t){var r=t?li(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function gu(e){var t=new e.constructor(e.source,Oi.exec(e));return t.lastIndex=e.lastIndex,t}function yu(e){return on?Q(on.call(e)):{}}function ia(e,t){var r=t?li(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function oa(e,t){if(e!==t){var r=e!==i,o=e===null,a=e===e,p=Be(e),c=t!==i,f=t===null,g=t===t,S=Be(t);if(!f&&!S&&!p&&e>t||p&&c&&g&&!f&&!S||o&&c&&g||!r&&g||!a)return 1;if(!o&&!p&&!S&&e<t||S&&r&&a&&!o&&!p||f&&r&&a||!c&&a||!g)return-1}return 0}function hu(e,t,r){for(var o=-1,a=e.criteria,p=t.criteria,c=a.length,f=r.length;++o<c;){var g=oa(a[o],p[o]);if(g){if(o>=f)return g;var S=r[o];return g*(S=="desc"?-1:1)}}return e.index-t.index}function aa(e,t,r,o){for(var a=-1,p=e.length,c=r.length,f=-1,g=t.length,S=pe(p-c,0),C=v(g+S),w=!o;++f<g;)C[f]=t[f];for(;++a<c;)(w||a<p)&&(C[r[a]]=e[a]);for(;S--;)C[f++]=e[a++];return C}function la(e,t,r,o){for(var a=-1,p=e.length,c=-1,f=r.length,g=-1,S=t.length,C=pe(p-f,0),w=v(C+S),F=!o;++a<C;)w[a]=e[a];for(var T=a;++g<S;)w[T+g]=t[g];for(;++c<f;)(F||a<p)&&(w[T+r[c]]=e[a++]);return w}function _e(e,t){var r=-1,o=e.length;for(t||(t=v(o));++r<o;)t[r]=e[r];return t}function Ze(e,t,r,o){var a=!r;r||(r={});for(var p=-1,c=t.length;++p<c;){var f=t[p],g=o?o(r[f],e[f],f,r,e):i;g===i&&(g=e[f]),a?nt(r,f,g):an(r,f,g)}return r}function vu(e,t){return Ze(e,mi(e),t)}function bu(e,t){return Ze(e,xa(e),t)}function Zn(e,t){return function(r,o){var a=N(r)?_s:$p,p=t?t():{};return a(r,e,R(o,2),p)}}function zt(e){return z(function(t,r){var o=-1,a=r.length,p=a>1?r[a-1]:i,c=a>2?r[2]:i;for(p=e.length>3&&typeof p=="function"?(a--,p):i,c&&xe(r[0],r[1],c)&&(p=a<3?i:p,a=1),t=Q(t);++o<a;){var f=r[o];f&&e(t,f,o,p)}return t})}function sa(e,t){return function(r,o){if(r==null)return r;if(!Ie(r))return e(r,o);for(var a=r.length,p=t?a:-1,c=Q(r);(t?p--:++p<a)&&o(c[p],p,c)!==!1;);return r}}function pa(e){return function(t,r,o){for(var a=-1,p=Q(t),c=o(t),f=c.length;f--;){var g=c[e?f:++a];if(r(p[g],g,p)===!1)break}return t}}function xu(e,t,r){var o=t&U,a=cn(e);function p(){var c=this&&this!==fe&&this instanceof p?a:e;return c.apply(o?r:this,arguments)}return p}function ua(e){return function(t){t=J(t);var r=Dt(t)?Ge(t):i,o=r?r[0]:t.charAt(0),a=r?ht(r,1).join(""):t.slice(1);return o[e]()+a}}function $t(e){return function(t){return Rr(sl(ll(t).replace(us,"")),e,"")}}function cn(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=Ot(e.prototype),o=e.apply(r,t);return ne(o)?o:r}}function Su(e,t,r){var o=cn(e);function a(){for(var p=arguments.length,c=v(p),f=p,g=Ut(a);f--;)c[f]=arguments[f];var S=p<3&&c[0]!==g&&c[p-1]!==g?[]:dt(c,g);if(p-=S.length,p<r)return ga(e,t,Qn,a.placeholder,i,c,S,i,i,r-p);var C=this&&this!==fe&&this instanceof a?o:e;return Ae(C,this,c)}return a}function ca(e){return function(t,r,o){var a=Q(t);if(!Ie(t)){var p=R(r,3);t=de(t),r=function(f){return p(a[f],f,a)}}var c=e(t,r,o);return c>-1?a[p?t[c]:c]:i}}function da(e){return it(function(t){var r=t.length,o=r,a=Ne.prototype.thru;for(e&&t.reverse();o--;){var p=t[o];if(typeof p!="function")throw new Me(h);if(a&&!c&&nr(p)=="wrapper")var c=new Ne([],!0)}for(o=c?o:r;++o<r;){p=t[o];var f=nr(p),g=f=="wrapper"?di(p):i;g&&yi(g[0])&&g[1]==(ce|V|le|Ce)&&!g[4].length&&g[9]==1?c=c[nr(g[0])].apply(c,g[3]):c=p.length==1&&yi(p)?c[f]():c.thru(p)}return function(){var S=arguments,C=S[0];if(c&&S.length==1&&N(C))return c.plant(C).value();for(var w=0,F=r?t[w].apply(this,S):C;++w<r;)F=t[w].call(this,F);return F}})}function Qn(e,t,r,o,a,p,c,f,g,S){var C=t&ce,w=t&U,F=t&ie,T=t&(V|he),D=t&we,O=F?i:cn(e);function P(){for(var $=arguments.length,G=v($),Re=$;Re--;)G[Re]=arguments[Re];if(T)var Se=Ut(P),De=Ds(G,Se);if(o&&(G=aa(G,o,a,T)),p&&(G=la(G,p,c,T)),$-=De,T&&$<S){var ae=dt(G,Se);return ga(e,t,Qn,P.placeholder,r,G,ae,f,g,S-$)}var Ve=w?r:this,st=F?Ve[e]:e;return $=G.length,f?G=$u(G,f):D&&$>1&&G.reverse(),C&&g<$&&(G.length=g),this&&this!==fe&&this instanceof P&&(st=O||cn(st)),st.apply(Ve,G)}return P}function fa(e,t){return function(r,o){return Jp(r,e,t(o),{})}}function jn(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=Le(r),o=Le(o)):(r=Qo(r),o=Qo(o)),a=e(r,o)}return a}}function si(e){return it(function(t){return t=te(t,Te(R())),z(function(r){var o=this;return e(t,function(a){return Ae(a,o,r)})})})}function er(e,t){t=t===i?" ":Le(t);var r=t.length;if(r<2)return r?ti(t,e):t;var o=ti(t,zn(e/Pt(t)));return Dt(t)?ht(Ge(o),0,e).join(""):o.slice(0,e)}function Cu(e,t,r,o){var a=t&U,p=cn(e);function c(){for(var f=-1,g=arguments.length,S=-1,C=o.length,w=v(C+g),F=this&&this!==fe&&this instanceof c?p:e;++S<C;)w[S]=o[S];for(;g--;)w[S++]=arguments[++f];return Ae(F,a?r:this,w)}return c}function ma(e){return function(t,r,o){return o&&typeof o!="number"&&xe(t,r,o)&&(r=o=i),t=lt(t),r===i?(r=t,t=0):r=lt(r),o=o===i?t<r?1:-1:lt(o),lu(t,r,o,e)}}function tr(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=$e(t),r=$e(r)),e(t,r)}}function ga(e,t,r,o,a,p,c,f,g,S){var C=t&V,w=C?c:i,F=C?i:c,T=C?p:i,D=C?i:p;t|=C?le:ve,t&=~(C?ve:le),t&ue||(t&=~(U|ie));var O=[e,t,a,T,w,D,F,f,g,S],P=r.apply(i,O);return yi(e)&&Fa(P,O),P.placeholder=o,Aa(P,e,t)}function pi(e){var t=se[e];return function(r,o){if(r=$e(r),o=o==null?0:ge(H(o),292),o&&Ao(r)){var a=(J(r)+"e").split("e"),p=t(a[0]+"e"+(+a[1]+o));return a=(J(p)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(r)}}var wu=Nt&&1/Ln(new Nt([,-0]))[1]==bt?function(e){return new Nt(e)}:Bi;function ya(e){return function(t){var r=ye(t);return r==Ue?Or(t):r==We?zs(t):Rs(t,e(t))}}function rt(e,t,r,o,a,p,c,f){var g=t&ie;if(!g&&typeof e!="function")throw new Me(h);var S=o?o.length:0;if(S||(t&=~(le|ve),o=a=i),c=c===i?c:pe(H(c),0),f=f===i?f:H(f),S-=a?a.length:0,t&ve){var C=o,w=a;o=a=i}var F=g?i:di(e),T=[e,t,r,o,a,C,w,p,c,f];if(F&&Hu(T,F),e=T[0],t=T[1],r=T[2],o=T[3],a=T[4],f=T[9]=T[9]===i?g?0:e.length:pe(T[9]-S,0),!f&&t&(V|he)&&(t&=~(V|he)),!t||t==U)var D=xu(e,t,r);else t==V||t==he?D=Su(e,t,f):(t==le||t==(U|le))&&!a.length?D=Cu(e,t,r,o):D=Qn.apply(i,T);var O=F?Xo:Fa;return Aa(O(D,T),e,t)}function ha(e,t,r,o){return e===i||Ke(e,Mt[r])&&!Z.call(o,r)?t:e}function va(e,t,r,o,a,p){return ne(e)&&ne(t)&&(p.set(t,e),qn(e,t,i,va,p),p.delete(t)),e}function _u(e){return mn(e)?i:e}function ba(e,t,r,o,a,p){var c=r&X,f=e.length,g=t.length;if(f!=g&&!(c&&g>f))return!1;var S=p.get(e),C=p.get(t);if(S&&C)return S==t&&C==e;var w=-1,F=!0,T=r&K?new wt:i;for(p.set(e,t),p.set(t,e);++w<f;){var D=e[w],O=t[w];if(o)var P=c?o(O,D,w,t,e,p):o(D,O,w,e,t,p);if(P!==i){if(P)continue;F=!1;break}if(T){if(!Dr(t,function($,G){if(!jt(T,G)&&(D===$||a(D,$,r,o,p)))return T.push(G)})){F=!1;break}}else if(!(D===O||a(D,O,r,o,p))){F=!1;break}}return p.delete(e),p.delete(t),F}function Iu(e,t,r,o,a,p,c){switch(r){case Lt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Qt:return!(e.byteLength!=t.byteLength||!p(new Mn(e),new Mn(t)));case Kt:case Vt:case qt:return Ke(+e,+t);case Cn:return e.name==t.name&&e.message==t.message;case Jt:case Xt:return e==t+"";case Ue:var f=Or;case We:var g=o&X;if(f||(f=Ln),e.size!=t.size&&!g)return!1;var S=c.get(e);if(S)return S==t;o|=K,c.set(e,t);var C=ba(f(e),f(t),o,a,p,c);return c.delete(e),C;case _n:if(on)return on.call(e)==on.call(t)}return!1}function Eu(e,t,r,o,a,p){var c=r&X,f=ui(e),g=f.length,S=ui(t),C=S.length;if(g!=C&&!c)return!1;for(var w=g;w--;){var F=f[w];if(!(c?F in t:Z.call(t,F)))return!1}var T=p.get(e),D=p.get(t);if(T&&D)return T==t&&D==e;var O=!0;p.set(e,t),p.set(t,e);for(var P=c;++w<g;){F=f[w];var $=e[F],G=t[F];if(o)var Re=c?o(G,$,F,t,e,p):o($,G,F,e,t,p);if(!(Re===i?$===G||a($,G,r,o,p):Re)){O=!1;break}P||(P=F=="constructor")}if(O&&!P){var Se=e.constructor,De=t.constructor;Se!=De&&"constructor"in e&&"constructor"in t&&!(typeof Se=="function"&&Se instanceof Se&&typeof De=="function"&&De instanceof De)&&(O=!1)}return p.delete(e),p.delete(t),O}function it(e){return vi(Ia(e,i,Pa),e+"")}function ui(e){return Oo(e,de,mi)}function ci(e){return Oo(e,Ee,xa)}var di=Un?function(e){return Un.get(e)}:Bi;function nr(e){for(var t=e.name+"",r=Ht[t],o=Z.call(Ht,t)?r.length:0;o--;){var a=r[o],p=a.func;if(p==null||p==e)return a.name}return t}function Ut(e){var t=Z.call(l,"placeholder")?l:e;return t.placeholder}function R(){var e=l.iteratee||Ti;return e=e===Ti?Uo:e,arguments.length?e(arguments[0],arguments[1]):e}function rr(e,t){var r=e.__data__;return Pu(t)?r[typeof t=="string"?"string":"hash"]:r.map}function fi(e){for(var t=de(e),r=t.length;r--;){var o=t[r],a=e[o];t[r]=[o,a,wa(a)]}return t}function Et(e,t){var r=Ns(e,t);return $o(r)?r:i}function Fu(e){var t=Z.call(e,St),r=e[St];try{e[St]=i;var o=!0}catch{}var a=Pn.call(e);return o&&(t?e[St]=r:delete e[St]),a}var mi=$r?function(e){return e==null?[]:(e=Q(e),ut($r(e),function(t){return Eo.call(e,t)}))}:Ri,xa=$r?function(e){for(var t=[];e;)ct(t,mi(e)),e=Nn(e);return t}:Ri,ye=be;(Ur&&ye(new Ur(new ArrayBuffer(1)))!=Lt||tn&&ye(new tn)!=Ue||Wr&&ye(Wr.resolve())!=ki||Nt&&ye(new Nt)!=We||nn&&ye(new nn)!=Zt)&&(ye=function(e){var t=be(e),r=t==je?e.constructor:i,o=r?Ft(r):"";if(o)switch(o){case pp:return Lt;case up:return Ue;case cp:return ki;case dp:return We;case fp:return Zt}return t});function Au(e,t,r){for(var o=-1,a=r.length;++o<a;){var p=r[o],c=p.size;switch(p.type){case"drop":e+=c;break;case"dropRight":t-=c;break;case"take":t=ge(t,e+c);break;case"takeRight":e=pe(e,t-c);break}}return{start:e,end:t}}function Tu(e){var t=e.match(kl);return t?t[1].split(Ml):[]}function Sa(e,t,r){t=yt(t,e);for(var o=-1,a=t.length,p=!1;++o<a;){var c=Qe(t[o]);if(!(p=e!=null&&r(e,c)))break;e=e[c]}return p||++o!=a?p:(a=e==null?0:e.length,!!a&&ur(a)&&ot(c,a)&&(N(e)||At(e)))}function Lu(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Z.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function Ca(e){return typeof e.constructor=="function"&&!dn(e)?Ot(Nn(e)):{}}function Bu(e,t,r){var o=e.constructor;switch(t){case Qt:return li(e);case Kt:case Vt:return new o(+e);case Lt:return mu(e,r);case fr:case mr:case gr:case yr:case hr:case vr:case br:case xr:case Sr:return ia(e,r);case Ue:return new o;case qt:case Xt:return new o(e);case Jt:return gu(e);case We:return new o;case _n: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 fe(e,t,r){if(!Q(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||_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&&!Q(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|xe|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),be(e,this,f)}}function Sa(e,t){return t.length<2?e:wt(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=wa(Yo),dn=np||function(e,t){return ae.setTimeout(e,t)},di=wa(uu);function _a(e,t,r){var o=t+"";return di(e,Ru(o,Wu(Fu(o),r)))}function wa(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__=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 ee(e)?an(e,le(t,1,ee,!0)):[]}),Vu=H(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=H(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"&&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)),_n(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)),_n(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):_n(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 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 _c(e){return e&&e.length?Ko(e):[]}function wc(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,ee,!0))}),Bc=H(function(e){var t=Me(e);return ee(t)&&(t=i),ft(le(e,1,ee,!0),L(t,2))}),Rc=H(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 be(t,i,o)})}var Mc=H(function(e,t){return ee(e)?an(e,t):[]}),Hc=H(function(e){return Qr(st(e,ee))}),Oc=H(function(e){var t=Me(e);return ee(t)&&(t=i),Qr(st(e,ee),L(t,2))}),Nc=H(function(e){var t=Me(e);return t=typeof t=="function"?t:i,Qr(st(e,ee),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 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&&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?be(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 xd(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 bd(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|xe;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,Q(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 we(){f!==i&&Zo(f),S=0,o=y=a=f=i}function me(){return f===i?u:W(tr())}function Ie(){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 Ie.cancel=we,Ie.flush=me,Ie}var _d=H(function(e,t){return Lo(e,1,t)}),wd=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 be(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),be(e,this,a)})}function Bd(e,t,r){var o=!0,a=!0;if(typeof e!="function")throw new Re(g);return Q(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,O|G)}function Od(e,t){return t=typeof t=="function"?t:i,Pe(e,O|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?Se(to):Xp;function ye(e){return e!=null&&ir(e.length)&&!nt(e)}function ee(e){return j(e)&&ye(e)}function Gd(e){return e===!0||e===!1||j(e)&&de(e)==Yt}var yt=rp||Ai,$d=no?Se(no):Zp;function Yd(e){return j(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(!j(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"&&_o(e)}function nt(e){if(!Q(e))return!1;var t=de(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 Q(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function j(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"||j(e)&&de(e)==Vt}function fn(e){if(!j(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)&&j(e)&&de(e)==Jt}function _e(e){return typeof e=="symbol"||j(e)&&de(e)==vn}var Gt=ao?Se(ao):nu;function rf(e){return e===i}function of(e){return j(e)&&ce(e)==Xt}function af(e){return j(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?wn:$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?_t(k(e),0,Ye):0}function He(e){if(typeof e=="number")return e;if(_e(e))return mn;if(Q(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Q(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fo(e);var 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?_t(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),be(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 xf(e,t){return e==null?e:Do(e,L(t,3),he)}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 _f(e){return e==null?[]:zn(e,he(e))}function xi(e,t,r){var o=e==null?i:wt(e,t);return o===i?r:o}function wf(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(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,O|Z|G,wu));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:[]:Q(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),_t(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=wo();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:_t(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:_t(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||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,N,W,we,me,Ie){return W||(W=we),w+=e.slice(S,Ie).replace(Vl,Ms),N&&(f=!0,w+=`' +
12
- __e(`+N+`) +
13
- '`),me&&(y=!0,w+=`';
14
- `+me+`;
15
- __p += '`),W&&(w+=`' +
16
- ((__t = (`+W+`)) == null ? '' : __t) +
17
- '`),S=Ie+R.length,R}),w+=`';
18
- `;var B=K.call(t,"variable")&&t.variable;if(!B)w=`with (obj) {
10
+ `)}function Du(e){return N(e)||At(e)||!!(Fo&&e&&e[Fo])}function ot(e,t){var r=typeof e;return t=t==null?pt:t,!!t&&(r=="number"||r!="symbol"&&Yl.test(e))&&e>-1&&e%1==0&&e<t}function xe(e,t,r){if(!ne(r))return!1;var o=typeof t;return(o=="number"?Ie(r)&&ot(t,r.length):o=="string"&&t in r)?Ke(r[t],e):!1}function gi(e,t){if(N(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Be(e)?!0:Ll.test(e)||!Tl.test(e)||t!=null&&e in Q(t)}function Pu(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function yi(e){var t=nr(e),r=l[t];if(typeof r!="function"||!(t in W.prototype))return!1;if(e===r)return!0;var o=di(r);return!!o&&e===o[0]}function ku(e){return!!wo&&wo in e}var Mu=Rn?at:Di;function dn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Mt;return e===r}function wa(e){return e===e&&!ne(e)}function _a(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==i||e in Q(r))}}function Nu(e){var t=sr(e,function(o){return r.size===E&&r.clear(),o}),r=t.cache;return t}function Hu(e,t){var r=e[1],o=t[1],a=r|o,p=a<(U|ie|ce),c=o==ce&&r==V||o==ce&&r==Ce&&e[7].length<=t[8]||o==(ce|Ce)&&t[7].length<=t[8]&&r==V;if(!(p||c))return e;o&U&&(e[2]=t[2],a|=r&U?0:ue);var f=t[3];if(f){var g=e[3];e[3]=g?aa(g,f,t[4]):f,e[4]=g?dt(e[3],B):t[4]}return f=t[5],f&&(g=e[5],e[5]=g?la(g,f,t[6]):f,e[6]=g?dt(e[5],B):t[6]),f=t[7],f&&(e[7]=f),o&ce&&(e[8]=e[8]==null?t[8]:ge(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Ou(e){var t=[];if(e!=null)for(var r in Q(e))t.push(r);return t}function zu(e){return Pn.call(e)}function Ia(e,t,r){return t=pe(t===i?e.length-1:t,0),function(){for(var o=arguments,a=-1,p=pe(o.length-t,0),c=v(p);++a<p;)c[a]=o[t+a];a=-1;for(var f=v(t+1);++a<t;)f[a]=o[a];return f[t]=r(c),Ae(e,this,f)}}function Ea(e,t){return t.length<2?e:It(e,Oe(t,0,-1))}function $u(e,t){for(var r=e.length,o=ge(t.length,r),a=_e(e);o--;){var p=t[o];e[o]=ot(p,r)?a[p]:i}return e}function hi(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Fa=Ta(Xo),fn=np||function(e,t){return fe.setTimeout(e,t)},vi=Ta(uu);function Aa(e,t,r){var o=t+"";return vi(e,Ru(o,Uu(Tu(o),r)))}function Ta(e){var t=0,r=0;return function(){var o=ap(),a=hn-(o-r);if(r=o,a>0){if(++t>=yn)return arguments[0]}else t=0;return e.apply(i,arguments)}}function ir(e,t){var r=-1,o=e.length,a=o-1;for(t=t===i?o:t;++r<t;){var p=ei(r,a),c=e[p];e[p]=e[r],e[r]=c}return e.length=t,e}var La=Nu(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bl,function(r,o,a,p){t.push(a?p.replace(Ol,"$1"):o||r)}),t});function Qe(e){if(typeof e=="string"||Be(e))return e;var t=e+"";return t=="0"&&1/e==-bt?"-0":t}function Ft(e){if(e!=null){try{return Dn.call(e)}catch{}try{return e+""}catch{}}return""}function Uu(e,t){return ke(gl,function(r){var o="_."+r[0];t&r[1]&&!An(e,o)&&e.push(o)}),e.sort()}function Ba(e){if(e instanceof W)return e.clone();var t=new Ne(e.__wrapped__,e.__chain__);return t.__actions__=_e(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Wu(e,t,r){(r?xe(e,t,r):t===i)?t=1:t=pe(H(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var a=0,p=0,c=v(zn(o/t));a<o;)c[p++]=Oe(e,a,a+=t);return c}function Gu(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 ct(N(r)?_e(r):[r],me(t,1))}var Ku=z(function(e,t){return oe(e)?ln(e,me(t,1,oe,!0)):[]}),Vu=z(function(e,t){var r=ze(t);return oe(r)&&(r=i),oe(e)?ln(e,me(t,1,oe,!0),R(r,2)):[]}),qu=z(function(e,t){var r=ze(t);return oe(r)&&(r=i),oe(e)?ln(e,me(t,1,oe,!0),i,r):[]});function Ju(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:H(t),Oe(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:H(t),t=o-t,Oe(e,0,t<0?0:t)):[]}function Zu(e,t){return e&&e.length?Xn(e,R(t,3),!0,!0):[]}function Qu(e,t){return e&&e.length?Xn(e,R(t,3),!0):[]}function ju(e,t,r,o){var a=e==null?0:e.length;return a?(r&&typeof r!="number"&&xe(e,t,r)&&(r=0,o=a),Yp(e,t,r,o)):[]}function Ra(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=r==null?0:H(r);return a<0&&(a=pe(o+a,0)),Tn(e,R(t,3),a)}function Da(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=o-1;return r!==i&&(a=H(r),a=r<0?pe(o+a,0):ge(a,o-1)),Tn(e,R(t,3),a,!0)}function Pa(e){var t=e==null?0:e.length;return t?me(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?me(e,bt):[]}function tc(e,t){var r=e==null?0:e.length;return r?(t=t===i?1:H(t),me(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 ka(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:H(r);return a<0&&(a=pe(o+a,0)),Rt(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Oe(e,0,-1):[]}var oc=z(function(e){var t=te(e,oi);return t.length&&t[0]===e[0]?Jr(t):[]}),ac=z(function(e){var t=ze(e),r=te(e,oi);return t===ze(r)?t=i:r.pop(),r.length&&r[0]===e[0]?Jr(r,R(t,2)):[]}),lc=z(function(e){var t=ze(e),r=te(e,oi);return t=typeof t=="function"?t:i,t&&r.pop(),r.length&&r[0]===e[0]?Jr(r,i,t):[]});function sc(e,t){return e==null?"":ip.call(e,t)}function ze(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=H(r),a=a<0?pe(o+a,0):ge(a,o-1)),t===t?Us(e,t,a):Tn(e,go,a,!0)}function uc(e,t){return e&&e.length?Ko(e,H(t)):i}var cc=z(Ma);function Ma(e,t){return e&&e.length&&t&&t.length?jr(e,t):e}function dc(e,t,r){return e&&e.length&&t&&t.length?jr(e,t,R(r,2)):e}function fc(e,t,r){return e&&e.length&&t&&t.length?jr(e,t,i,r):e}var mc=it(function(e,t){var r=e==null?0:e.length,o=Yr(e,t);return Jo(e,te(t,function(a){return ot(a,r)?+a:a}).sort(oa)),o});function gc(e,t){var r=[];if(!(e&&e.length))return r;var o=-1,a=[],p=e.length;for(t=R(t,3);++o<p;){var c=e[o];t(c,o,e)&&(r.push(c),a.push(o))}return Jo(e,a),r}function bi(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"&&xe(e,t,r)?(t=0,r=o):(t=t==null?0:H(t),r=r===i?o:H(r)),Oe(e,t,r)):[]}function hc(e,t){return Jn(e,t)}function vc(e,t,r){return ni(e,t,R(r,2))}function bc(e,t){var r=e==null?0:e.length;if(r){var o=Jn(e,t);if(o<r&&Ke(e[o],t))return o}return-1}function xc(e,t){return Jn(e,t,!0)}function Sc(e,t,r){return ni(e,t,R(r,2),!0)}function Cc(e,t){var r=e==null?0:e.length;if(r){var o=Jn(e,t,!0)-1;if(Ke(e[o],t))return o}return-1}function wc(e){return e&&e.length?Zo(e):[]}function _c(e,t){return e&&e.length?Zo(e,R(t,2)):[]}function Ic(e){var t=e==null?0:e.length;return t?Oe(e,1,t):[]}function Ec(e,t,r){return e&&e.length?(t=r||t===i?1:H(t),Oe(e,0,t<0?0:t)):[]}function Fc(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:H(t),t=o-t,Oe(e,t<0?0:t,o)):[]}function Ac(e,t){return e&&e.length?Xn(e,R(t,3),!1,!0):[]}function Tc(e,t){return e&&e.length?Xn(e,R(t,3)):[]}var Lc=z(function(e){return gt(me(e,1,oe,!0))}),Bc=z(function(e){var t=ze(e);return oe(t)&&(t=i),gt(me(e,1,oe,!0),R(t,2))}),Rc=z(function(e){var t=ze(e);return t=typeof t=="function"?t:i,gt(me(e,1,oe,!0),i,t)});function Dc(e){return e&&e.length?gt(e):[]}function Pc(e,t){return e&&e.length?gt(e,R(t,2)):[]}function kc(e,t){return t=typeof t=="function"?t:i,e&&e.length?gt(e,i,t):[]}function xi(e){if(!(e&&e.length))return[];var t=0;return e=ut(e,function(r){if(oe(r))return t=pe(r.length,t),!0}),Nr(t,function(r){return te(e,Pr(r))})}function Na(e,t){if(!(e&&e.length))return[];var r=xi(e);return t==null?r:te(r,function(o){return Ae(t,i,o)})}var Mc=z(function(e,t){return oe(e)?ln(e,t):[]}),Nc=z(function(e){return ii(ut(e,oe))}),Hc=z(function(e){var t=ze(e);return oe(t)&&(t=i),ii(ut(e,oe),R(t,2))}),Oc=z(function(e){var t=ze(e);return t=typeof t=="function"?t:i,ii(ut(e,oe),i,t)}),zc=z(xi);function $c(e,t){return ta(e||[],t||[],an)}function Uc(e,t){return ta(e||[],t||[],un)}var Wc=z(function(e){var t=e.length,r=t>1?e[t-1]:i;return r=typeof r=="function"?(e.pop(),r):i,Na(e,r)});function Ha(e){var t=l(e);return t.__chain__=!0,t}function Gc(e,t){return t(e),e}function or(e,t){return t(e)}var Yc=it(function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,a=function(p){return Yr(p,e)};return t>1||this.__actions__.length||!(o instanceof W)||!ot(r)?this.thru(a):(o=o.slice(r,+r+(t?1:0)),o.__actions__.push({func:or,args:[a],thisArg:i}),new Ne(o,this.__chain__).thru(function(p){return t&&!p.length&&p.push(i),p}))});function Kc(){return Ha(this)}function Vc(){return new Ne(this.value(),this.__chain__)}function qc(){this.__values__===i&&(this.__values__=Qa(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Xc(e){for(var t,r=this;r instanceof Gn;){var o=Ba(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 W){var t=e;return this.__actions__.length&&(t=new W(this)),t=t.reverse(),t.__actions__.push({func:or,args:[bi],thisArg:i}),new Ne(t,this.__chain__)}return this.thru(bi)}function Qc(){return ea(this.__wrapped__,this.__actions__)}var jc=Zn(function(e,t,r){Z.call(e,r)?++e[r]:nt(e,r,1)});function ed(e,t,r){var o=N(e)?fo:Gp;return r&&xe(e,t,r)&&(t=i),o(e,R(t,3))}function td(e,t){var r=N(e)?ut:No;return r(e,R(t,3))}var nd=ca(Ra),rd=ca(Da);function id(e,t){return me(ar(e,t),1)}function od(e,t){return me(ar(e,t),bt)}function ad(e,t,r){return r=r===i?1:H(r),me(ar(e,t),r)}function Oa(e,t){var r=N(e)?ke:mt;return r(e,R(t,3))}function za(e,t){var r=N(e)?Is:Mo;return r(e,R(t,3))}var ld=Zn(function(e,t,r){Z.call(e,r)?e[r].push(t):nt(e,r,[t])});function sd(e,t,r,o){e=Ie(e)?e:Gt(e),r=r&&!o?H(r):0;var a=e.length;return r<0&&(r=pe(a+r,0)),cr(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&Rt(e,t,r)>-1}var pd=z(function(e,t,r){var o=-1,a=typeof t=="function",p=Ie(e)?v(e.length):[];return mt(e,function(c){p[++o]=a?Ae(t,c,r):sn(c,t,r)}),p}),ud=Zn(function(e,t,r){nt(e,r,t)});function ar(e,t){var r=N(e)?te:Wo;return r(e,R(t,3))}function cd(e,t,r,o){return e==null?[]:(N(t)||(t=t==null?[]:[t]),r=o?i:r,N(r)||(r=r==null?[]:[r]),Vo(e,t,r))}var dd=Zn(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function fd(e,t,r){var o=N(e)?Rr:ho,a=arguments.length<3;return o(e,R(t,4),r,a,mt)}function md(e,t,r){var o=N(e)?Es:ho,a=arguments.length<3;return o(e,R(t,4),r,a,Mo)}function gd(e,t){var r=N(e)?ut:No;return r(e,pr(R(t,3)))}function yd(e){var t=N(e)?Ro:su;return t(e)}function hd(e,t,r){(r?xe(e,t,r):t===i)?t=1:t=H(t);var o=N(e)?Op:pu;return o(e,t)}function vd(e){var t=N(e)?zp:cu;return t(e)}function bd(e){if(e==null)return 0;if(Ie(e))return cr(e)?Pt(e):e.length;var t=ye(e);return t==Ue||t==We?e.size:Zr(e).length}function xd(e,t,r){var o=N(e)?Dr:du;return r&&xe(e,t,r)&&(t=i),o(e,R(t,3))}var Sd=z(function(e,t){if(e==null)return[];var r=t.length;return r>1&&xe(e,t[0],t[1])?t=[]:r>2&&xe(t[0],t[1],t[2])&&(t=[t[0]]),Vo(e,me(t,1),[])}),lr=tp||function(){return fe.Date.now()};function Cd(e,t){if(typeof t!="function")throw new Me(h);return e=H(e),function(){if(--e<1)return t.apply(this,arguments)}}function $a(e,t,r){return t=r?i:t,t=e&&t==null?e.length:t,rt(e,ce,i,i,i,i,t)}function Ua(e,t){var r;if(typeof t!="function")throw new Me(h);return e=H(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var Si=z(function(e,t,r){var o=U;if(r.length){var a=dt(r,Ut(Si));o|=le}return rt(e,o,t,r,a)}),Wa=z(function(e,t,r){var o=U|ie;if(r.length){var a=dt(r,Ut(Wa));o|=le}return rt(t,o,e,r,a)});function Ga(e,t,r){t=r?i:t;var o=rt(e,V,i,i,i,i,i,t);return o.placeholder=Ga.placeholder,o}function Ya(e,t,r){t=r?i:t;var o=rt(e,he,i,i,i,i,i,t);return o.placeholder=Ya.placeholder,o}function Ka(e,t,r){var o,a,p,c,f,g,S=0,C=!1,w=!1,F=!0;if(typeof e!="function")throw new Me(h);t=$e(t)||0,ne(r)&&(C=!!r.leading,w="maxWait"in r,p=w?pe($e(r.maxWait)||0,t):p,F="trailing"in r?!!r.trailing:F);function T(ae){var Ve=o,st=a;return o=a=i,S=ae,c=e.apply(st,Ve),c}function D(ae){return S=ae,f=fn($,t),C?T(ae):c}function O(ae){var Ve=ae-g,st=ae-S,cl=t-Ve;return w?ge(cl,p-st):cl}function P(ae){var Ve=ae-g,st=ae-S;return g===i||Ve>=t||Ve<0||w&&st>=p}function $(){var ae=lr();if(P(ae))return G(ae);f=fn($,O(ae))}function G(ae){return f=i,F&&o?T(ae):(o=a=i,c)}function Re(){f!==i&&na(f),S=0,o=g=a=f=i}function Se(){return f===i?c:G(lr())}function De(){var ae=lr(),Ve=P(ae);if(o=arguments,a=this,g=ae,Ve){if(f===i)return D(g);if(w)return na(f),f=fn($,t),T(g)}return f===i&&(f=fn($,t)),c}return De.cancel=Re,De.flush=Se,De}var wd=z(function(e,t){return ko(e,1,t)}),_d=z(function(e,t,r){return ko(e,$e(t)||0,r)});function Id(e){return rt(e,we)}function sr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Me(h);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 c=e.apply(this,o);return r.cache=p.set(a,c)||p,c};return r.cache=new(sr.Cache||tt),r}sr.Cache=tt;function pr(e){if(typeof e!="function")throw new Me(h);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ed(e){return Ua(2,e)}var Fd=fu(function(e,t){t=t.length==1&&N(t[0])?te(t[0],Te(R())):te(me(t,1),Te(R()));var r=t.length;return z(function(o){for(var a=-1,p=ge(o.length,r);++a<p;)o[a]=t[a].call(this,o[a]);return Ae(e,this,o)})}),Ci=z(function(e,t){var r=dt(t,Ut(Ci));return rt(e,le,i,t,r)}),Va=z(function(e,t){var r=dt(t,Ut(Va));return rt(e,ve,i,t,r)}),Ad=it(function(e,t){return rt(e,Ce,i,i,i,t)});function Td(e,t){if(typeof e!="function")throw new Me(h);return t=t===i?t:H(t),z(e,t)}function Ld(e,t){if(typeof e!="function")throw new Me(h);return t=t==null?0:pe(H(t),0),z(function(r){var o=r[t],a=ht(r,0,t);return o&&ct(a,o),Ae(e,this,a)})}function Bd(e,t,r){var o=!0,a=!0;if(typeof e!="function")throw new Me(h);return ne(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),Ka(e,t,{leading:o,maxWait:t,trailing:a})}function Rd(e){return $a(e,1)}function Dd(e,t){return Ci(ai(t),e)}function Pd(){if(!arguments.length)return[];var e=arguments[0];return N(e)?e:[e]}function kd(e){return He(e,k)}function Md(e,t){return t=typeof t=="function"?t:i,He(e,k,t)}function Nd(e){return He(e,L|k)}function Hd(e,t){return t=typeof t=="function"?t:i,He(e,L|k,t)}function Od(e,t){return t==null||Po(e,t,de(t))}function Ke(e,t){return e===t||e!==e&&t!==t}var zd=tr(qr),$d=tr(function(e,t){return e>=t}),At=zo(function(){return arguments}())?zo:function(e){return re(e)&&Z.call(e,"callee")&&!Eo.call(e,"callee")},N=v.isArray,Ud=ao?Te(ao):Xp;function Ie(e){return e!=null&&ur(e.length)&&!at(e)}function oe(e){return re(e)&&Ie(e)}function Wd(e){return e===!0||e===!1||re(e)&&be(e)==Kt}var vt=rp||Di,Gd=lo?Te(lo):Zp;function Yd(e){return re(e)&&e.nodeType===1&&!mn(e)}function Kd(e){if(e==null)return!0;if(Ie(e)&&(N(e)||typeof e=="string"||typeof e.splice=="function"||vt(e)||Wt(e)||At(e)))return!e.length;var t=ye(e);if(t==Ue||t==We)return!e.size;if(dn(e))return!Zr(e).length;for(var r in e)if(Z.call(e,r))return!1;return!0}function Vd(e,t){return pn(e,t)}function qd(e,t,r){r=typeof r=="function"?r:i;var o=r?r(e,t):i;return o===i?pn(e,t,i,r):!!o}function wi(e){if(!re(e))return!1;var t=be(e);return t==Cn||t==hl||typeof e.message=="string"&&typeof e.name=="string"&&!mn(e)}function Jd(e){return typeof e=="number"&&Ao(e)}function at(e){if(!ne(e))return!1;var t=be(e);return t==wn||t==Pi||t==yl||t==bl}function qa(e){return typeof e=="number"&&e==H(e)}function ur(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=pt}function ne(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function re(e){return e!=null&&typeof e=="object"}var Ja=so?Te(so):jp;function Xd(e,t){return e===t||Xr(e,t,fi(t))}function Zd(e,t,r){return r=typeof r=="function"?r:i,Xr(e,t,fi(t),r)}function Qd(e){return Xa(e)&&e!=+e}function jd(e){if(Mu(e))throw new M(u);return $o(e)}function ef(e){return e===null}function tf(e){return e==null}function Xa(e){return typeof e=="number"||re(e)&&be(e)==qt}function mn(e){if(!re(e)||be(e)!=je)return!1;var t=Nn(e);if(t===null)return!0;var r=Z.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Dn.call(r)==Zs}var _i=po?Te(po):eu;function nf(e){return qa(e)&&e>=-pt&&e<=pt}var Za=uo?Te(uo):tu;function cr(e){return typeof e=="string"||!N(e)&&re(e)&&be(e)==Xt}function Be(e){return typeof e=="symbol"||re(e)&&be(e)==_n}var Wt=co?Te(co):nu;function rf(e){return e===i}function of(e){return re(e)&&ye(e)==Zt}function af(e){return re(e)&&be(e)==Sl}var lf=tr(Qr),sf=tr(function(e,t){return e<=t});function Qa(e){if(!e)return[];if(Ie(e))return cr(e)?Ge(e):_e(e);if(en&&e[en])return Os(e[en]());var t=ye(e),r=t==Ue?Or:t==We?Ln:Gt;return r(e)}function lt(e){if(!e)return e===0?e:0;if(e=$e(e),e===bt||e===-bt){var t=e<0?-1:1;return t*dl}return e===e?e:0}function H(e){var t=lt(e),r=t%1;return t===t?r?t-r:t:0}function ja(e){return e?_t(H(e),0,Je):0}function $e(e){if(typeof e=="number")return e;if(Be(e))return xn;if(ne(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ne(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=vo(e);var r=Ul.test(e);return r||Gl.test(e)?Cs(e.slice(2),r?2:8):$l.test(e)?xn:+e}function el(e){return Ze(e,Ee(e))}function pf(e){return e?_t(H(e),-pt,pt):e===0?e:0}function J(e){return e==null?"":Le(e)}var uf=zt(function(e,t){if(dn(t)||Ie(t)){Ze(t,de(t),e);return}for(var r in t)Z.call(t,r)&&an(e,r,t[r])}),tl=zt(function(e,t){Ze(t,Ee(t),e)}),dr=zt(function(e,t,r,o){Ze(t,Ee(t),e,o)}),cf=zt(function(e,t,r,o){Ze(t,de(t),e,o)}),df=it(Yr);function ff(e,t){var r=Ot(e);return t==null?r:Do(r,t)}var mf=z(function(e,t){e=Q(e);var r=-1,o=t.length,a=o>2?t[2]:i;for(a&&xe(t[0],t[1],a)&&(o=1);++r<o;)for(var p=t[r],c=Ee(p),f=-1,g=c.length;++f<g;){var S=c[f],C=e[S];(C===i||Ke(C,Mt[S])&&!Z.call(e,S))&&(e[S]=p[S])}return e}),gf=z(function(e){return e.push(i,va),Ae(nl,i,e)});function yf(e,t){return mo(e,R(t,3),Xe)}function hf(e,t){return mo(e,R(t,3),Vr)}function vf(e,t){return e==null?e:Kr(e,R(t,3),Ee)}function bf(e,t){return e==null?e:Ho(e,R(t,3),Ee)}function xf(e,t){return e&&Xe(e,R(t,3))}function Sf(e,t){return e&&Vr(e,R(t,3))}function Cf(e){return e==null?[]:Vn(e,de(e))}function wf(e){return e==null?[]:Vn(e,Ee(e))}function Ii(e,t,r){var o=e==null?i:It(e,t);return o===i?r:o}function _f(e,t){return e!=null&&Sa(e,t,Kp)}function Ei(e,t){return e!=null&&Sa(e,t,Vp)}var If=fa(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Pn.call(t)),e[t]=r},Ai(Fe)),Ef=fa(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Pn.call(t)),Z.call(e,t)?e[t].push(r):e[t]=[r]},R),Ff=z(sn);function de(e){return Ie(e)?Bo(e):Zr(e)}function Ee(e){return Ie(e)?Bo(e,!0):ru(e)}function Af(e,t){var r={};return t=R(t,3),Xe(e,function(o,a,p){nt(r,t(o,a,p),o)}),r}function Tf(e,t){var r={};return t=R(t,3),Xe(e,function(o,a,p){nt(r,a,t(o,a,p))}),r}var Lf=zt(function(e,t,r){qn(e,t,r)}),nl=zt(function(e,t,r,o){qn(e,t,r,o)}),Bf=it(function(e,t){var r={};if(e==null)return r;var o=!1;t=te(t,function(p){return p=yt(p,e),o||(o=p.length>1),p}),Ze(e,ci(e),r),o&&(r=He(r,L|Y|k,_u));for(var a=t.length;a--;)ri(r,t[a]);return r});function Rf(e,t){return rl(e,pr(R(t)))}var Df=it(function(e,t){return e==null?{}:ou(e,t)});function rl(e,t){if(e==null)return{};var r=te(ci(e),function(o){return[o]});return t=R(t),qo(e,r,function(o,a){return t(o,a[0])})}function Pf(e,t,r){t=yt(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=at(p)?p.call(e):p}return e}function kf(e,t,r){return e==null?e:un(e,t,r)}function Mf(e,t,r,o){return o=typeof o=="function"?o:i,e==null?e:un(e,t,r,o)}var il=ya(de),ol=ya(Ee);function Nf(e,t,r){var o=N(e),a=o||vt(e)||Wt(e);if(t=R(t,4),r==null){var p=e&&e.constructor;a?r=o?new p:[]:ne(e)?r=at(p)?Ot(Nn(e)):{}:r={}}return(a?ke:Xe)(e,function(c,f,g){return t(r,c,f,g)}),r}function Hf(e,t){return e==null?!0:ri(e,t)}function Of(e,t,r){return e==null?e:jo(e,t,ai(r))}function zf(e,t,r,o){return o=typeof o=="function"?o:i,e==null?e:jo(e,t,ai(r),o)}function Gt(e){return e==null?[]:Hr(e,de(e))}function $f(e){return e==null?[]:Hr(e,Ee(e))}function Uf(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=$e(r),r=r===r?r:0),t!==i&&(t=$e(t),t=t===t?t:0),_t($e(e),t,r)}function Wf(e,t,r){return t=lt(t),r===i?(r=t,t=0):r=lt(r),e=$e(e),qp(e,t,r)}function Gf(e,t,r){if(r&&typeof r!="boolean"&&xe(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=lt(e),t===i?(t=e,e=0):t=lt(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var a=To();return ge(e+a*(t-e+Ss("1e-"+((a+"").length-1))),t)}return ei(e,t)}var Yf=$t(function(e,t,r){return t=t.toLowerCase(),e+(r?al(t):t)});function al(e){return Fi(J(e).toLowerCase())}function ll(e){return e=J(e),e&&e.replace(Kl,Ps).replace(cs,"")}function Kf(e,t,r){e=J(e),t=Le(t);var o=e.length;r=r===i?o:_t(H(r),0,o);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Vf(e){return e=J(e),e&&El.test(e)?e.replace(Ni,ks):e}function qf(e){return e=J(e),e&&Rl.test(e)?e.replace(Cr,"\\$&"):e}var Jf=$t(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Xf=$t(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Zf=ua("toLowerCase");function Qf(e,t,r){e=J(e),t=H(t);var o=t?Pt(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return er($n(a),r)+e+er(zn(a),r)}function jf(e,t,r){e=J(e),t=H(t);var o=t?Pt(e):0;return t&&o<t?e+er(t-o,r):e}function em(e,t,r){e=J(e),t=H(t);var o=t?Pt(e):0;return t&&o<t?er(t-o,r)+e:e}function tm(e,t,r){return r||t==null?t=0:t&&(t=+t),lp(J(e).replace(wr,""),t||0)}function nm(e,t,r){return(r?xe(e,t,r):t===i)?t=1:t=H(t),ti(J(e),t)}function rm(){var e=arguments,t=J(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var im=$t(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function om(e,t,r){return r&&typeof r!="number"&&xe(e,t,r)&&(t=r=i),r=r===i?Je:r>>>0,r?(e=J(e),e&&(typeof t=="string"||t!=null&&!_i(t))&&(t=Le(t),!t&&Dt(e))?ht(Ge(e),0,r):e.split(t,r)):[]}var am=$t(function(e,t,r){return e+(r?" ":"")+Fi(t)});function lm(e,t,r){return e=J(e),r=r==null?0:_t(H(r),0,e.length),t=Le(t),e.slice(r,r+t.length)==t}function sm(e,t,r){var o=l.templateSettings;r&&xe(e,t,r)&&(t=i),e=J(e),t=dr({},t,o,ha);var a=dr({},t.imports,o.imports,ha),p=de(a),c=Hr(a,p),f,g,S=0,C=t.interpolate||In,w="__p += '",F=zr((t.escape||In).source+"|"+C.source+"|"+(C===Hi?zl:In).source+"|"+(t.evaluate||In).source+"|$","g"),T="//# sourceURL="+(Z.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ys+"]")+`
11
+ `;e.replace(F,function(P,$,G,Re,Se,De){return G||(G=Re),w+=e.slice(S,De).replace(Vl,Ms),$&&(f=!0,w+=`' +
12
+ __e(`+$+`) +
13
+ '`),Se&&(g=!0,w+=`';
14
+ `+Se+`;
15
+ __p += '`),G&&(w+=`' +
16
+ ((__t = (`+G+`)) == null ? '' : __t) +
17
+ '`),S=De+P.length,P}),w+=`';
18
+ `;var D=Z.call(t,"variable")&&t.variable;if(!D)w=`with (obj) {
19
19
  `+w+`
20
20
  }
21
- `;else if(Ol.test(B))throw new D(b);w=(y?w.replace(Cl,""):w).replace(_l,"$1").replace(wl,"$1;"),w="function("+(B||"obj")+`) {
22
- `+(B?"":`obj || (obj = {});
23
- `)+"var __t, __p = ''"+(f?", __e = _.escape":"")+(y?`, __j = Array.prototype.join;
21
+ `;else if(Hl.test(D))throw new M(x);w=(g?w.replace(Cl,""):w).replace(wl,"$1").replace(_l,"$1;"),w="function("+(D||"obj")+`) {
22
+ `+(D?"":`obj || (obj = {});
23
+ `)+"var __t, __p = ''"+(f?", __e = _.escape":"")+(g?`, __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=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(Q(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 be(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(be(p[0],this,o))return be(p[1],this,o)}})}function xm(e){return Gp(Pe(e,O))}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 ve(e){return e}function _i(e){return Ho(typeof e=="function"?e:Pe(e,O))}function _m(e){return No(Pe(e,O))}function wm(e,t){return Uo(e,Pe(t,O))}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 wi(e,t,r){var o=oe(t),a=zn(t,o);r==null&&!(Q(t)&&(a.length||!o.length))&&(r=t,t=e,e=this,a=zn(t,oe(t)));var p=!(Q(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:wt(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]: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=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=_d,l.delay=wd,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=_f,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=_i,l.keyBy=ud,l.keys=oe,l.keysIn=he,l.map=er,l.mapKeys=Tf,l.mapValues=Ff,l.matches=_m,l.matchesProperty=wm,l.memoize=nr,l.merge=Lf,l.mergeWith=Za,l.method=Im,l.methodOf=Em,l.mixin=wi,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=_c,l.sortedUniqBy=wc,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,wi(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=wf,l.hasIn=bi,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=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=Q,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,wi(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(ve)},U.prototype.find=function(e){return this.filter(e).head()},U.prototype.findLast=function(e){return this.reverse().find(e)},U.prototype.invokeMap=H(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,xe).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,_r._=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 g,b;const i=_.cloneDeep(componentBasicUiSchema(s.theme.myTheme));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(z=>I[z]);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 c=((b=s.searchParams)==null?void 0:b.get("path")).split(".").reduce((I,F)=>{var Z;const z=F.split("[")[1],O=parseInt(z.slice(0,-1));return console.log(I),(Z=I==null?void 0:I.elements)==null?void 0:Z[O]},i);console.log("UiSchema",i),console.log("parentObj",c),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 O=`${(F=n.searchParams)==null?void 0:F.get("path")}.elements[${h}]`;n.searchParams.set("path",O),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 Z;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=(Z=n.searchParams)==null?void 0:Z.get("path"),z=this.elementPathHandler(F,I,c),O=getFormdataFromSessionStorage(z);this.ElementPathSetter(b,O),sessionStorage.setItem("copiedConfig",JSON.stringify(O)),n.setSchema(g),n.setUiSchema(b)},PasteElement:function(h,c){var Z;if(!sessionStorage.getItem("copiedConfig")){n.setNotify({FailMessage:"No item has been copied.",Fail:!0});return}const g=(Z=n.searchParams)==null?void 0:Z.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")),O={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:O.Events,Fail:!0}):z.name&&c==="Events"?n.setNotify({FailMessage:O.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,O;const I=(O=(z=n.config)==null?void 0:z.events)==null?void 0:O.filter(Z=>Z.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 O=c.value.substring(11);h[c.key]=_.get(i,O)}else if((b=c==null?void 0:c.value)!=null&&b.startsWith("$urlParams")){const O=c.value.substring(11),Z=(I=d==null?void 0:d.searchParams)==null?void 0:I.get(O);h[c.key]=Z}else if((F=c==null?void 0:c.value)!=null&&F.startsWith("$local")){const O=c.value.substring(7),Z=JSON.parse(sessionStorage.getItem(O)||'""');h[c.key]=Z}else if((z=c==null?void 0:c.value)!=null&&z.startsWith("$")){const O=c.value.substring(1);h[c.key]=_.get(s,O)}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,O,Z,G,Ee,$e,ie,xe,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:((Z=(O=b==null?void 0:b.palette)==null?void 0:O.text)==null?void 0:Z.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=b==null?void 0:b.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=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=(xe=b==null?void 0:b.palette)==null?void 0:xe.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(O=>O.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,O,Z;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"&&((O=n.value)==null?void 0:O.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")&&((Z=n.value)==null?void 0:Z.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,xe,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=(xe=exports.schema.properties)==null?void 0:xe[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 O=pl(function(){return q(p,T+"return "+w).apply(i,c)});if(O.source=w,wi(O))throw O;return O}function pm(e){return J(e).toLowerCase()}function um(e){return J(e).toUpperCase()}function cm(e,t,r){if(e=J(e),e&&(r||t===i))return vo(e);if(!e||!(t=Le(t)))return e;var o=Ge(e),a=Ge(t),p=bo(o,a),c=xo(o,a)+1;return ht(o,p,c).join("")}function dm(e,t,r){if(e=J(e),e&&(r||t===i))return e.slice(0,Co(e)+1);if(!e||!(t=Le(t)))return e;var o=Ge(e),a=xo(o,Ge(t))+1;return ht(o,0,a).join("")}function fm(e,t,r){if(e=J(e),e&&(r||t===i))return e.replace(wr,"");if(!e||!(t=Le(t)))return e;var o=Ge(e),a=bo(o,Ge(t));return ht(o,a).join("")}function mm(e,t){var r=qe,o=gn;if(ne(t)){var a="separator"in t?t.separator:a;r="length"in t?H(t.length):r,o="omission"in t?Le(t.omission):o}e=J(e);var p=e.length;if(Dt(e)){var c=Ge(e);p=c.length}if(r>=p)return e;var f=r-Pt(o);if(f<1)return o;var g=c?ht(c,0,f).join(""):e.slice(0,f);if(a===i)return g+o;if(c&&(f+=g.length-f),_i(a)){if(e.slice(f).search(a)){var S,C=g;for(a.global||(a=zr(a.source,J(Oi.exec(a))+"g")),a.lastIndex=0;S=a.exec(C);)var w=S.index;g=g.slice(0,w===i?f:w)}}else if(e.indexOf(Le(a),f)!=f){var F=g.lastIndexOf(a);F>-1&&(g=g.slice(0,F))}return g+o}function gm(e){return e=J(e),e&&Il.test(e)?e.replace(Mi,Ws):e}var ym=$t(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Fi=ua("toUpperCase");function sl(e,t,r){return e=J(e),t=r?i:t,t===i?Hs(e)?Ks(e):Ts(e):e.match(t)||[]}var pl=z(function(e,t){try{return Ae(e,i,t)}catch(r){return wi(r)?r:new M(r)}}),hm=it(function(e,t){return ke(t,function(r){r=Qe(r),nt(e,r,Si(e[r],e))}),e});function vm(e){var t=e==null?0:e.length,r=R();return e=t?te(e,function(o){if(typeof o[1]!="function")throw new Me(h);return[r(o[0]),o[1]]}):[],z(function(o){for(var a=-1;++a<t;){var p=e[a];if(Ae(p[0],this,o))return Ae(p[1],this,o)}})}function bm(e){return Wp(He(e,L))}function Ai(e){return function(){return e}}function xm(e,t){return e==null||e!==e?t:e}var Sm=da(),Cm=da(!0);function Fe(e){return e}function Ti(e){return Uo(typeof e=="function"?e:He(e,L))}function wm(e){return Go(He(e,L))}function _m(e,t){return Yo(e,He(t,L))}var Im=z(function(e,t){return function(r){return sn(r,e,t)}}),Em=z(function(e,t){return function(r){return sn(e,r,t)}});function Li(e,t,r){var o=de(t),a=Vn(t,o);r==null&&!(ne(t)&&(a.length||!o.length))&&(r=t,t=e,e=this,a=Vn(t,de(t)));var p=!(ne(r)&&"chain"in r)||!!r.chain,c=at(e);return ke(a,function(f){var g=t[f];e[f]=g,c&&(e.prototype[f]=function(){var S=this.__chain__;if(p||S){var C=e(this.__wrapped__),w=C.__actions__=_e(this.__actions__);return w.push({func:g,args:arguments,thisArg:e}),C.__chain__=S,C}return g.apply(e,ct([this.value()],arguments))})}),e}function Fm(){return fe._===this&&(fe._=Qs),this}function Bi(){}function Am(e){return e=H(e),z(function(t){return Ko(t,e)})}var Tm=si(te),Lm=si(fo),Bm=si(Dr);function ul(e){return gi(e)?Pr(Qe(e)):au(e)}function Rm(e){return function(t){return e==null?i:It(e,t)}}var Dm=ma(),Pm=ma(!0);function Ri(){return[]}function Di(){return!1}function km(){return{}}function Mm(){return""}function Nm(){return!0}function Hm(e,t){if(e=H(e),e<1||e>pt)return[];var r=Je,o=ge(e,Je);t=R(t),e-=Je;for(var a=Nr(o,t);++r<e;)t(r);return a}function Om(e){return N(e)?te(e,Qe):Be(e)?[e]:_e(La(J(e)))}function zm(e){var t=++Xs;return J(e)+t}var $m=jn(function(e,t){return e+t},0),Um=pi("ceil"),Wm=jn(function(e,t){return e/t},1),Gm=pi("floor");function Ym(e){return e&&e.length?Kn(e,Fe,qr):i}function Km(e,t){return e&&e.length?Kn(e,R(t,2),qr):i}function Vm(e){return yo(e,Fe)}function qm(e,t){return yo(e,R(t,2))}function Jm(e){return e&&e.length?Kn(e,Fe,Qr):i}function Xm(e,t){return e&&e.length?Kn(e,R(t,2),Qr):i}var Zm=jn(function(e,t){return e*t},1),Qm=pi("round"),jm=jn(function(e,t){return e-t},0);function eg(e){return e&&e.length?Mr(e,Fe):0}function tg(e,t){return e&&e.length?Mr(e,R(t,2)):0}return l.after=Cd,l.ary=$a,l.assign=uf,l.assignIn=tl,l.assignInWith=dr,l.assignWith=cf,l.at=df,l.before=Ua,l.bind=Si,l.bindAll=hm,l.bindKey=Wa,l.castArray=Pd,l.chain=Ha,l.chunk=Wu,l.compact=Gu,l.concat=Yu,l.cond=vm,l.conforms=bm,l.constant=Ai,l.countBy=jc,l.create=ff,l.curry=Ga,l.curryRight=Ya,l.debounce=Ka,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=Pa,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=Ti,l.keyBy=ud,l.keys=de,l.keysIn=Ee,l.map=ar,l.mapKeys=Af,l.mapValues=Tf,l.matches=wm,l.matchesProperty=_m,l.memoize=sr,l.merge=Lf,l.mergeWith=nl,l.method=Im,l.methodOf=Em,l.mixin=Li,l.negate=pr,l.nthArg=Am,l.omit=Bf,l.omitBy=Rf,l.once=Ed,l.orderBy=cd,l.over=Tm,l.overArgs=Fd,l.overEvery=Lm,l.overSome=Bm,l.partial=Ci,l.partialRight=Va,l.partition=dd,l.pick=Df,l.pickBy=rl,l.property=ul,l.propertyOf=Rm,l.pull=cc,l.pullAll=Ma,l.pullAllBy=dc,l.pullAllWith=fc,l.pullAt=mc,l.range=Dm,l.rangeRight=Pm,l.rearg=Ad,l.reject=gd,l.remove=gc,l.rest=Td,l.reverse=bi,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=Fc,l.takeRightWhile=Ac,l.takeWhile=Tc,l.tap=Gc,l.throttle=Bd,l.thru=or,l.toArray=Qa,l.toPairs=il,l.toPairsIn=ol,l.toPath=Om,l.toPlainObject=el,l.transform=Nf,l.unary=Rd,l.union=Lc,l.unionBy=Bc,l.unionWith=Rc,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=kc,l.unset=Hf,l.unzip=xi,l.unzipWith=Na,l.update=Of,l.updateWith=zf,l.values=Gt,l.valuesIn=$f,l.without=Mc,l.words=sl,l.wrap=Dd,l.xor=Nc,l.xorBy=Hc,l.xorWith=Oc,l.zip=zc,l.zipObject=$c,l.zipObjectDeep=Uc,l.zipWith=Wc,l.entries=il,l.entriesIn=ol,l.extend=tl,l.extendWith=dr,Li(l,l),l.add=$m,l.attempt=pl,l.camelCase=Yf,l.capitalize=al,l.ceil=Um,l.clamp=Uf,l.clone=kd,l.cloneDeep=Nd,l.cloneDeepWith=Hd,l.cloneWith=Md,l.conformsTo=Od,l.deburr=ll,l.defaultTo=xm,l.divide=Wm,l.endsWith=Kf,l.eq=Ke,l.escape=Vf,l.escapeRegExp=qf,l.every=ed,l.find=nd,l.findIndex=Ra,l.findKey=yf,l.findLast=rd,l.findLastIndex=Da,l.findLastKey=hf,l.floor=Gm,l.forEach=Oa,l.forEachRight=za,l.forIn=vf,l.forInRight=bf,l.forOwn=xf,l.forOwnRight=Sf,l.get=Ii,l.gt=zd,l.gte=$d,l.has=_f,l.hasIn=Ei,l.head=ka,l.identity=Fe,l.includes=sd,l.indexOf=rc,l.inRange=Wf,l.invoke=Ff,l.isArguments=At,l.isArray=N,l.isArrayBuffer=Ud,l.isArrayLike=Ie,l.isArrayLikeObject=oe,l.isBoolean=Wd,l.isBuffer=vt,l.isDate=Gd,l.isElement=Yd,l.isEmpty=Kd,l.isEqual=Vd,l.isEqualWith=qd,l.isError=wi,l.isFinite=Jd,l.isFunction=at,l.isInteger=qa,l.isLength=ur,l.isMap=Ja,l.isMatch=Xd,l.isMatchWith=Zd,l.isNaN=Qd,l.isNative=jd,l.isNil=tf,l.isNull=ef,l.isNumber=Xa,l.isObject=ne,l.isObjectLike=re,l.isPlainObject=mn,l.isRegExp=_i,l.isSafeInteger=nf,l.isSet=Za,l.isString=cr,l.isSymbol=Be,l.isTypedArray=Wt,l.isUndefined=rf,l.isWeakMap=of,l.isWeakSet=af,l.join=sc,l.kebabCase=Jf,l.last=ze,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=Ri,l.stubFalse=Di,l.stubObject=km,l.stubString=Mm,l.stubTrue=Nm,l.multiply=Zm,l.nth=uc,l.noConflict=Fm,l.noop=Bi,l.now=lr,l.pad=Qf,l.padEnd=jf,l.padStart=em,l.parseInt=tm,l.random=Gf,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=Hm,l.toFinite=lt,l.toInteger=H,l.toLength=ja,l.toLower=pm,l.toNumber=$e,l.toSafeInteger=pf,l.toString=J,l.toUpper=um,l.trim=cm,l.trimEnd=dm,l.trimStart=fm,l.truncate=mm,l.unescape=gm,l.uniqueId=zm,l.upperCase=ym,l.upperFirst=Fi,l.each=Oa,l.eachRight=za,l.first=ka,Li(l,function(){var e={};return Xe(l,function(t,r){Z.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=d,ke(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),ke(["drop","take"],function(e,t){W.prototype[e]=function(r){r=r===i?1:pe(H(r),0);var o=this.__filtered__&&!t?new W(this):this.clone();return o.__filtered__?o.__takeCount__=ge(r,o.__takeCount__):o.__views__.push({size:ge(r,Je),type:e+(o.__dir__<0?"Right":"")}),o},W.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),ke(["filter","map","takeWhile"],function(e,t){var r=t+1,o=r==Yt||r==bn;W.prototype[e]=function(a){var p=this.clone();return p.__iteratees__.push({iteratee:R(a,3),type:r}),p.__filtered__=p.__filtered__||o,p}}),ke(["head","last"],function(e,t){var r="take"+(t?"Right":"");W.prototype[e]=function(){return this[r](1).value()[0]}}),ke(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");W.prototype[e]=function(){return this.__filtered__?new W(this):this[r](1)}}),W.prototype.compact=function(){return this.filter(Fe)},W.prototype.find=function(e){return this.filter(e).head()},W.prototype.findLast=function(e){return this.reverse().find(e)},W.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new W(this):this.map(function(r){return sn(r,e,t)})}),W.prototype.reject=function(e){return this.filter(pr(R(e)))},W.prototype.slice=function(e,t){e=H(e);var r=this;return r.__filtered__&&(e>0||t<0)?new W(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(t=H(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},W.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},W.prototype.toArray=function(){return this.take(Je)},Xe(W.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 c=this.__wrapped__,f=o?[1]:arguments,g=c instanceof W,S=f[0],C=g||N(c),w=function($){var G=a.apply(l,ct([$],f));return o&&F?G[0]:G};C&&r&&typeof S=="function"&&S.length!=1&&(g=C=!1);var F=this.__chain__,T=!!this.__actions__.length,D=p&&!F,O=g&&!T;if(!p&&C){c=O?c:new W(this);var P=e.apply(c,f);return P.__actions__.push({func:or,args:[w],thisArg:i}),new Ne(P,F)}return D&&O?e.apply(this,f):(P=this.thru(w),D?o?P.value()[0]:P.value():P)})}),ke(["pop","push","shift","sort","splice","unshift"],function(e){var t=Bn[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(N(p)?p:[],a)}return this[r](function(c){return t.apply(N(c)?c:[],a)})}}),Xe(W.prototype,function(e,t){var r=l[t];if(r){var o=r.name+"";Z.call(Ht,o)||(Ht[o]=[]),Ht[o].push({name:t,func:r})}}),Ht[Qn(i,ie).name]=[{name:"wrapper",func:i}],W.prototype.clone=mp,W.prototype.reverse=gp,W.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,en&&(l.prototype[en]=Jc),l},kt=Vs();xt?((xt.exports=kt)._=kt,Tr._=kt):fe._=kt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"Masked Aadhar Card",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"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"}]},pageName:{path:[]},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 this Component ?"},style:{"&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpComponent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteComponents",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/popUpEventSection",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText1",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Event ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/pageName",options:{widget:"Breadcrumb"},config:{layout:12,main:{},style:{paddingLeft:n.spacing(3),color:n.palette.grey[600],fontSize:"10px",position:"fixed",bottom:"24px",borderBottom:`1px solid ${n.palette.common.black}29`,borderTop:`1px solid ${n.palette.common.black}29`,backgroundColor:n.palette.background.default}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((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"),getRadioInputField("multiline","Multiline",["YES","NO"]),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("."),y=[];return d.map((u,h)=>{if(h===0){y.push(u);return}y.push(`${y[h-1]}.${u}`)}),y.map(u=>{const h=_.get(n,u);h?i=i+` > ${(h==null?void 0:h.name)||(h==null?void 0:h.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 u,h;(u=n.searchParams)==null||u.get("id");const d=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,d);const y=JSON.parse(sessionStorage.getItem("pageFormdata"));if(_.isEmpty(n.ctx.core.errors))try{const x=await i(n,s,y);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 I,E;const i=_.cloneDeep(componentBasicUiSchema(s.theme.myTheme)),d=JSON.parse(sessionStorage.getItem("pageFormdata"));if(n){const B={Core:CoreSection,Value:ValueTab,Style:StyleSection,Events:EventSection(s.theme.myTheme),Components:TableSection(s.theme.myTheme),Properties:buildPropertiesSection(n),Validation:ValidationSection},L=(I=sectionLabels[n])==null?void 0:I.map(Y=>B[Y]);i.elements[0].config.main.tabLabels=sectionLabels[n]||["Core","Style","Events","Validation"],i.elements[0].elements=L||[CoreSection,StyleSection,EventSection(s.theme.myTheme),ValidationSection]}const y=(E=s.searchParams)==null?void 0:E.get("path"),u=y.lastIndexOf("."),h=y.slice(0,u),x=_.get(d,h);(x==null?void 0:x.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[6]={type:"Control",scope:"#/properties/filteringOptions",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Filter Mode",multiple:!0}}},i.elements[0].elements[0].elements[5]={type:"Control",scope:"#/properties/enableFilter",options:{widget:"RadioInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Enable Filter",options:["Yes","No"]}}},i.elements[0].elements[0].elements[7]={type:"Control",scope:"#/properties/enableSorting",options:{widget:"RadioInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Enable Sorting",options:["Yes","No"]}}},i.elements[0].elements[0].elements[8]={type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:6,md:8,lg:3}},options:{widget:"EmptyBox"}}),sessionStorage.getItem("copiedConfig")&&this.ElementPathSetter(i),s.setUiSchema(i)}var Component=(n,s,i,d)=>({setPage:async function(){const y=await this.getFormdata();n.setFormdata(y);const u=this.getSchema();n.setSchema(u),this.refreshPage(y==null?void 0:y.type,n)},refreshPage,getFormdata:function(){var u;const y=(u=n.searchParams)==null?void 0:u.get("path");return getFormdataFromSessionStorage(y)},getSchema:function(){var E,B,L;const y=_.cloneDeep(ComponentSchema);sessionStorage.getItem("copiedConfig")&&(y.properties.RemoveItemButton.disabled=!1);const u=JSON.parse(sessionStorage.getItem("pageFormdata")),h=(E=n.searchParams)==null?void 0:E.get("path"),x=(B=n.searchParams)==null?void 0:B.get("id");let I=[{label:(L=u.name)!=null?L:"NewPage",path:`/PageMaster${x?`?id=${x}`:""}`}];if(h){const Y=h.split("."),k=[];Y.map((X,K)=>{if(K===0){k.push(X);return}k.push(`${k[K-1]}.${X}`)}),k.map(X=>{const K=_.get(u,X);I.push({label:(K==null?void 0:K.name)||(K==null?void 0:K.eventType)||"NewComponent",path:`/Component?path=${X}${x?`&id=${x}`:""}`})})}return y.properties.pageName.path=I,y},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,d,i),onChange:function(){var y,u,h,x;((y=n==null?void 0:n.formData)==null?void 0:y.type)!==((u=n==null?void 0:n.newData)==null?void 0:u.type)&&((h=n==null?void 0:n.newData)==null?void 0:h.type)!==void 0&&this.refreshPage((x=n==null?void 0:n.newData)==null?void 0:x.type,n)},editComponents:function(){var x,I,E;const y=s.path.split(".")[1],u=(x=n.searchParams)==null?void 0:x.get("path"),h=(I=n.searchParams)==null?void 0:I.get("id");if(saveFormdataInSessionStorage(n.ctx.core.data,u),u){const L=`${(E=n.searchParams)==null?void 0:E.get("path")}.elements[${y}]`;n.searchParams.set("path",L),n.setSearchParams(n.searchParams),this.setPage()}else n.navigate(`/Component?path=${`elements[${y}]`}&id=${h}`)},deleteComponents:function(y=!0){var E;const u=(E=n.searchParams)==null?void 0:E.get("path"),h=sessionStorage.getItem("rowId");n.formData.elements.splice(h,1);const x=saveFormdataInSessionStorage(n.ctx.core.data,u),I=u?_.get(x,u):x;n.setFormdata(I),y&&n.updateDialog("popUpComponentSection"),sessionStorage.removeItem("rowId")},deleteEvent:function(y=!0){var I;const u=(I=n.searchParams)==null?void 0:I.get("path"),h=sessionStorage.getItem("rowId");n.formData.events.splice(h,1);const x=saveFormdataInSessionStorage(n.ctx.core.data,u);n.setFormdata(_.get(x,u)),y&&n.updateDialog("popUpEventSection"),sessionStorage.removeItem("rowId")},widgetAddClickHandler:function(){var h;Array.isArray(n.formData.elements)||(n.formData.elements=[]);const y=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,y);const u=`${y}.elements[${n.formData.elements.length}]`;n.searchParams.set("path",u),n.setSearchParams(n.searchParams),this.setPage()},eventEditHandler:function(){var I,E;const y=s.path.split(".")[1],u=(I=n.searchParams)==null?void 0:I.get("path"),h=(E=n.searchParams)==null?void 0:E.get("id");saveFormdataInSessionStorage(n.ctx.core.data,u);const x=`${u}.events[${y}]`;n.navigate(`/ComponentEvents?path=${x}&id=${h}`)},eventAddHandler:function(){var x,I;const y=(x=n.searchParams)==null?void 0:x.get("path"),u=(I=n.searchParams)==null?void 0:I.get("id");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,y);const h=`${y}.events[${n.formData.events.length}]`;n.navigate(`/ComponentEvents?path=${h}&id=${u}`)},backHandler:function(){n.navigate(-1)},deletePopUpComponent:function(){const y=s.path.split(".")[1];sessionStorage.setItem("rowId",y),n.updateDialog("popUpComponentSection")},deletePopUpEvent:function(){const y=s.path.split(".")[1];sessionStorage.setItem("rowId",y),n.updateDialog("popUpEventSection")},copyPasteElement:function(y,u=this.setPage.bind(this)){var I;const[h,x]=(I=s.path.split(".").pop())==null?void 0:I.split("_");h==="Copy"?this.CopyElement(y,x):this.PasteElement(u,x)},CopyElement:function(y=n,u){var Y;const h=lodash.exports.cloneDeep(y.schema),x=lodash.exports.cloneDeep(y.uiSchema);h.properties.RemoveItemButton.disabled=!1;const I=s.path.split(".")[1],E=(Y=n.searchParams)==null?void 0:Y.get("path"),B=this.elementPathHandler(E,I,u),L=getFormdataFromSessionStorage(B);this.ElementPathSetter(x,L),sessionStorage.setItem("copiedConfig",JSON.stringify(L)),n.setNotify({SuccessMessage:`${u} Copied Successfully`,Success:!0}),n.setSchema(h),n.setUiSchema(x)},PasteElement:function(y,u){var Y;if(!sessionStorage.getItem("copiedConfig")){n.setNotify({FailMessage:"No item has been copied.",Fail:!0});return}const h=(Y=n.searchParams)==null?void 0:Y.get("path");Array.isArray(n.formData.elements)||(n.formData.elements=[]),Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,h);const x=getFormdataFromSessionStorage(h),I=u==="Component"?x.elements.length:x.events.length,E=this.elementPathHandler(h,I,u),B=JSON.parse(sessionStorage.getItem("copiedConfig")),L={Events:" The Events cannot be integrated into the component section.",Component:"The component cannot be integrated into the Events section."};B.Handler&&u==="Component"?n.setNotify({FailMessage:L.Events,Fail:!0}):B.name&&u==="Events"?n.setNotify({FailMessage:L.Component,Fail:!0}):(saveFormdataInSessionStorage(B,E),y())},RemoveItemButton:function(y=n){const u=lodash.exports.cloneDeep(y.schema),h=lodash.exports.cloneDeep(y.uiSchema);u.properties.RemoveItemButton.disabled=!0,h.elements[2].elements[1].config.main.heading="No element copied",sessionStorage.removeItem("copiedConfig"),n.setSchema(u),n.setUiSchema(h)},elementPathHandler:function(y,u,h){return h==="Component"?y?`${y}.elements[${u}]`:`elements[${u}]`:y?`${y}.events[${u}]`:`events[${u}]`},ElementPathSetter:function(y,u){var x,I,E,B,L,Y,k,X,K,U,ie,ue,V,he,le,ve,ce,Ce,we,qe,gn,yn,hn,Yt,vn,bn;const h=u||JSON.parse(sessionStorage.getItem("copiedConfig"));(Y=(L=(B=(E=(I=(x=y==null?void 0:y.elements)==null?void 0:x[1])==null?void 0:I.elements)==null?void 0:E[0])==null?void 0:B.config)==null?void 0:L.main)!=null&&Y.headerIcons?y.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`:(he=(V=(ue=(ie=(U=(K=(X=(k=y==null?void 0:y.elements)==null?void 0:k[0])==null?void 0:X.elements)==null?void 0:K[1])==null?void 0:U.elements)==null?void 0:ie[0])==null?void 0:ue.config)==null?void 0:V.main)!=null&&he.headerIcons&&(y.elements[0].elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`),(qe=(we=(Ce=(ce=(ve=(le=y==null?void 0:y.elements)==null?void 0:le[1])==null?void 0:ve.elements)==null?void 0:ce[1])==null?void 0:Ce.config)==null?void 0:we.main)!=null&&qe.headerIcons?y.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Event: ${h.eventType}`:(bn=(vn=(Yt=(hn=(yn=(gn=y==null?void 0:y.elements)==null?void 0:gn[0])==null?void 0:yn.elements)==null?void 0:hn[1])==null?void 0:Yt.config)==null?void 0:vn.main)!=null&&bn.headerIcons&&(y.elements[0].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.eventType}`)}}),pageMaster=n=>{const{store:s,dynamicData:i,submitHandler:d,service:y}=n;return{setPage:async function(){const u=await this.getFormdata();s.setFormdata(u);const h=await this.getUiSchema(),x=await this.getSchema();s.setSchema(x),s.setUiSchema(h)},getFormdata:async function(){var I;const u=(I=s.searchParams)==null?void 0:I.get("id"),h=await n.pageConfigProvider(u),x=getFormdataFromSessionStorage();return x||(saveFormdataInSessionStorage(h),h)},getUiSchema:function(){const u=_.cloneDeep(PageMasterUiSchema(s.theme.myTheme));return sessionStorage.getItem("copiedConfig")&&Component(s,i,d,y).ElementPathSetter(u),u},getSchema:()=>{const u=_.cloneDeep(PageMasterSchema);return sessionStorage.getItem("copiedConfig")&&(u.properties.RemoveItemButton.disabled=!1),u},backHandler:()=>{sessionStorage.removeItem("pageFormdata"),s.navigate("/PageMasterRecords")},onAddClickHandler:function(){var x;const u=(x=s.searchParams)==null?void 0:x.get("id");Array.isArray(s.formData.elements)||(s.formData.elements=[]);const h=saveFormdataInSessionStorage(s.ctx.core.data);u?s.navigate(`/Component?path=${`elements[${h==null?void 0:h.elements.length}]`}&id=${u}`):s.navigate(`/Component?path=${`elements[${h==null?void 0:h.elements.length}]`}`)},saveHandler:async()=>await saveHandler(s,y,d),Edit_Components:Component(s,i,d,y).editComponents,Delete_Components:async function(){await Component(s,i,d,y).deleteComponents(!1),s.updateDialog("popUpPageMasterComponent")},eventAddHandler:function(){var x;const u=(x=s.searchParams)==null?void 0:x.get("id");Array.isArray(s.formData.events)||(s.formData.events=[]),saveFormdataInSessionStorage(s.ctx.core.data);const h=`events[${s.formData.events.length}]`;s.navigate(`/ComponentEvents?path=${h}&id=${u}`)},editEvent:function(){var I;const u=i.path.split(".")[1],h=(I=s.searchParams)==null?void 0:I.get("id");saveFormdataInSessionStorage(s.ctx.core.data);const x=`events[${u}]`;s.navigate(`/ComponentEvents?path=${x}&id=${h}`)},deleteEvent:function(){const u=sessionStorage.getItem("rowId");s.formData.events.splice(u,1);const h=saveFormdataInSessionStorage(s.ctx.core.data);s.setFormdata(h),s.updateDialog("popUpPageMasterEvent"),sessionStorage.removeItem("rowId")},deletePopUpComponent:function(){const u=i.path.split(".")[1];sessionStorage.setItem("rowId",u),s.updateDialog("popUpPageMasterComponent")},deletePopUpEvent:function(){const u=i.path.split(".")[1];sessionStorage.setItem("rowId",u),s.updateDialog("popUpPageMasterEvent")},copyPasteElement:function(){Component(s,i,d,y).copyPasteElement(s,this.setPage.bind(this))},RemoveItemButton:function(){Component(s,i,d,y).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},pageName:{path:[{label:"defaultLabel",path:"defaultPath"}]}},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 this Event ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",startIcon:"ApproveIcon",variant:"contained",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/pageName",options:{widget:"Breadcrumb"},config:{layout:12,main:{},style:{paddingLeft:n.spacing(3),color:n.palette.grey[600],fontSize:"10px",position:"fixed",bottom:"24px",borderBottom:`1px solid ${n.palette.common.black}29`,borderTop:`1px solid ${n.palette.common.black}29`,backgroundColor:n.palette.background.default}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((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,y)=>({setPage:async function(){const u=await this.getFormData();n.setFormdata(u);const h=await this.getSchema();console.log("SettingSchema>>",h),n.setSchema(h),this.refreshPage(u.Handler,n)},refreshPage:(u,h)=>{var k,X,K;const x=_.cloneDeep(EventUiSchema(h.theme.myTheme)),I=_.cloneDeep(EventSchema);u&&(u==="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"]):u==="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"]):u==="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"]):u==="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"])),y&&(I.properties.inBuiltFunctionType.oneOf=[...I.properties.inBuiltFunctionType.oneOf,...y]),sessionStorage.getItem("copiedConfig")&&(Component(h,s,i,d).ElementPathSetter(x),I.properties.RemoveItemButton.disabled=!1);const E=JSON.parse(sessionStorage.getItem("pageFormdata")),B=(k=h.searchParams)==null?void 0:k.get("path"),L=(X=h.searchParams)==null?void 0:X.get("id");let Y=[{label:(K=E.name)!=null?K:"NewPage",path:`/PageMaster${L?`?id=${L}`:""}`}];if(B){const U=B.split("."),ie=[];U.map((ue,V)=>{if(V===0){ie.push(ue);return}ie.push(`${ie[V-1]}.${ue}`)}),ie.map(ue=>{const V=_.get(E,ue);Y.push({label:(V==null?void 0:V.name)||(V==null?void 0:V.eventType)||"NewComponent",path:V!=null&&V.eventType?`/ComponentEvents?path=${ue}${L?`&id=${L}`:""}`:`/Component?path=${ue}${L?`&id=${L}`:""}`})})}I.properties.pageName.path=Y,h.setSchema(I),h.setUiSchema(x)},getFormData:Component(n,s,i,d).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>{var B,L,Y;const u=_.cloneDeep(EventSchema);sessionStorage.getItem("copiedConfig")&&(u.properties.RemoveItemButton.disabled=!1);const h=JSON.parse(sessionStorage.getItem("pageFormdata")),x=(B=n.searchParams)==null?void 0:B.get("path"),I=(L=n.searchParams)==null?void 0:L.get("id");let E=[{label:(Y=h.name)!=null?Y:"NewPage",path:`/PageMaster${I?`?id=${I}`:""}`}];if(x){const k=x.split("."),X=[];k.map((K,U)=>{if(U===0){X.push(K);return}X.push(`${X[U-1]}.${K}`)}),X.map(K=>{const U=_.get(h,K);E.push({label:(U==null?void 0:U.name)||(U==null?void 0:U.eventType)||"NewComponent",path:U!=null&&U.eventType?`/ComponentEvents?path=${K}${I?`&id=${I}`:""}`:`/Component?path=${K}${I?`&id=${I}`:""}`})})}return u.properties.pageName.path=_.cloneDeep(E),u},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,d,i),onChange:function(){var u,h,x;((u=n==null?void 0:n.formData)==null?void 0:u.Handler)!==((h=n==null?void 0:n.newData)==null?void 0:h.Handler)&&((x=n==null?void 0:n.newData)==null?void 0:x.Handler)!==void 0&&this.refreshPage(n.newData.Handler||n.formdata.Handler,n)},addEvent:function(){var x,I,E;const u=(x=n.searchParams)==null?void 0:x.get("path");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,u);const h=`${u}.events[${(E=(I=n.formData)==null?void 0:I.events)==null?void 0:E.length}]`;n.searchParams.set("path",h),n.setSearchParams(n.searchParams),this.setPage()},editEvent:function(){var I;const u=s.path.split(".")[1],h=(I=n.searchParams)==null?void 0:I.get("path");saveFormdataInSessionStorage(n.ctx.core.data,h);const x=`${h}.events[${u}]`;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 u=s.path.split(".")[1];sessionStorage.setItem("rowId",u),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 y;y=new File([d],s[s.length-1]);const u=URL.createObjectURL(y),h=document.createElement("a");h.href=s[s.length-1]==="pdf"?"data:application/octet-stream;base64,"+i:u,h.download=`${n.name}`,document.body.appendChild(h),h.click(),URL.revokeObjectURL(u),document.body.removeChild(h)},doDownload=(n,s)=>{let i=`${s.defaults.baseURL}/${n.path}`;n!=null&&n.params&&Object.keys(n==null?void 0:n.params).map((u,h)=>{i=i+`${h===0?"?":"&"}${u}=${n==null?void 0:n.params[u]}`});const d=document.createElement("a");d.href=i,document.body.appendChild(d),d.click(),d.parentNode.removeChild(d)},executeEvents=n=>{var y,u,h;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 E;i=x,s=(E=n.config)==null?void 0:E.events.filter(B=>B.eventType==="Success")}).catch(x=>{var B,L;const I=(L=(B=n.config)==null?void 0:B.events)==null?void 0:L.filter(Y=>Y.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=(y=n.config)==null?void 0:y.events.filter(E=>E.eventType==="Success")}catch{const x=(h=(u=n.config)==null?void 0:u.events)==null?void 0:h.filter(E=>E.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(y=>y.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(y=>executeEvents({...n,config:y,componentName:i}))):Promise.resolve()}))}function executeApiRequest(n){var y;const s={...(y=n.userValue)==null?void 0:y.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(u=>u)}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,y,u){var h,x,I;i.type==="Select"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||d.setSchema(E=>{var B;return{...E,properties:{...E.properties,[s]:{...(B=E.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(E=>{var B;return{...E,properties:{...E.properties,[s]:{...(B=E.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(E=>({...E,...n==null?void 0:n.data}))):i.type==="Table"&&i.lazyLoading?n&&(n==null?void 0:n.data)&&(u[s]=(h=n.data)==null?void 0:h.data,u[`${s}_RowCount`]=(I=(x=n.data)==null?void 0:x.meta)==null?void 0:I.totalRowCount,d.setFormdata(E=>({...E,...u}))):n&&(u[s]=n.data,d.setFormdata(E=>({...E,...u})))}const buildBodyFormat=(n,s,i,d)=>{let y={...i==null?void 0:i.payload};return n.map(u=>{var h,x,I,E,B;if(typeof(u==null?void 0:u.value)!="string")y[u.key]=u.value;else if((h=u==null?void 0:u.value)!=null&&h.startsWith("$userValue")){const L=u.value.substring(11);y[u.key]=_.get(i,L)}else if((x=u==null?void 0:u.value)!=null&&x.startsWith("$urlParams")){const L=u.value.substring(11),Y=(I=d==null?void 0:d.searchParams)==null?void 0:I.get(L);y[u.key]=Y}else if((E=u==null?void 0:u.value)!=null&&E.startsWith("$local")){const L=u.value.substring(7),Y=JSON.parse(sessionStorage.getItem(L)||'""');y[u.key]=Y}else if((B=u==null?void 0:u.value)!=null&&B.startsWith("$")){const L=u.value.substring(1);y[u.key]=_.get(s,L)}else(u==null?void 0:u.value)==="*"&&(u==null?void 0:u.key)==="*"?y={...y,...s}:(u==null?void 0:u.value)==="*"?y[u.key]=s:y[u.key]=u.value}),y},buildHeadersFormat=n=>{const s={"X-Requested-With":"XMLHttpRequest"};return n.map(i=>{s[i.key]=i.value}),s};function shouldEventExecute(n){var i,d,y;const s=(d=(i=n.config)==null?void 0:i.events)==null?void 0:d.filter(u=>u.eventType==="onStart");return(s==null?void 0:s.length)>0?((y=s[0])==null?void 0:y.isSync)!=="Yes"?executeEventsHandler({...n,config:s[0]}).then(u=>u):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 u;i.type&&(compType=i.type),eventGroups[d.eventType]||(eventGroups[d.eventType]={}),eventGroups[d.eventType][i.name]||(eventGroups[d.eventType][i.name]=[]);const y=(u=d==null?void 0:d.events)==null?void 0:u.find(h=>h.eventType==="Success");!y&&d.eventType==="onLoad"&&(d.events||(d.events=[]),d.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),!y&&(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 L,Y,k,X,K,U,ie,ue,V,he,le,ve,ce,Ce;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 y=pageData==null?void 0:pageData.config,u=n.store.location.pathname.split("/"),h=((L=JSON.parse(window.sessionStorage.getItem("ProgramID")||"{}"))==null?void 0:L.value)||"programID";(u==null?void 0:u[1])==="page"&&h!=="programID"&&n.store.setFormdata(we=>({...we,programId:h}));const x=pageData==null?void 0:pageData.uiSchema,I=new CustomEvent("pageNameChanged",{detail:{pageName:y.label}});window.dispatchEvent(I);const E=(k=(Y=n==null?void 0:n.store)==null?void 0:Y.theme)==null?void 0:k.myTheme;x.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:((K=(X=E==null?void 0:E.palette)==null?void 0:X.text)==null?void 0:K.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:(ie=(U=E==null?void 0:E.palette)==null?void 0:U.primary)==null?void 0:ie.main,width:20,height:0,top:0,right:{xs:"12px",sm:"84px"},position:"absolute",fontSize:"12px",cursor:"pointer",":hover":{fill:(V=(ue=E==null?void 0:E.palette)==null?void 0:ue.primary)==null?void 0:V.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:(le=(he=E==null?void 0:E.palette)==null?void 0:he.primary)==null?void 0:le.main,fontSize:"12px",cursor:"pointer",marginLeft:"2px",top:3,right:"12px",position:"absolute",":hover":{color:(ce=(ve=E==null?void 0:E.palette)==null?void 0:ve.primary)==null?void 0:ce.dark},marginRight:"4px"}}}]});const B=(Ce=pageData==null?void 0:pageData.schema)!=null?Ce:{type:"object",properties:{}};eventGroups=extractEvents(y),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:{}}),n.store.setSchema(we=>({...B,...we,properties:{...B.properties,...we.properties}})),x.elements.push(notifyUiSchema),n.store.setUiSchema(x)},onCellRenderer:d=>{var y,u,h,x;if(eventGroups.onCellRenderer){let I={};const E=((y=n.dynamicData)==null?void 0:y.tableButtonPath)||((h=(u=n==null?void 0:n.dynamicData)==null?void 0:u.path)==null?void 0:h.split(".")[0]);for(const B of(x=eventGroups==null?void 0:eventGroups.onCellRenderer)==null?void 0:x[E])i.store.functionParameters=d,I=executeEvents({...i,config:B,componentName:E});return I}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 y=[{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},y,"onRowMovement");const u=await this.callExecuteEvents({path:d==null?void 0:d.path},y,"onLoad");return u==null?void 0:u.data},onPaginationChange:async function(d){var h;const y=[{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:(h=d.globalFilter)!=null?h:""}],u=await this.callExecuteEvents(d,y,"onLoad");return u==null?void 0:u.data},getSelectOptions:async function(d){if(d.serachValue!==""&&d.serachValue!==void 0){const y=[{key:"searchValue",value:d.serachValue},{key:"currentValue",value:d.currentValue}],u=await this.callExecuteEvents(d,y);return u==null?void 0:u.data}},onChange:async function(){if(eventGroups.onChange){const d=Object.keys(eventGroups.onChange);Promise.all(d.map(async y=>{var u,h;if(((u=n.store)==null?void 0:u.formData[y])!==n.store.newData[y]&&((h=n.store)==null?void 0:h.newData[y])!==void 0)for(const x of eventGroups.onChange[y])await executeEvents({...i,config:x,componentName:y})}))}},callExecuteEvents:async function(d,y,u){var x,I;let h;for(const E of(x=eventGroups==null?void 0:eventGroups[u])==null?void 0:x[d.path]){E.body?E.body=[...E.body,...y]:E.body=y;const B=(I=E==null?void 0:E.events)==null?void 0:I.filter(L=>L.Handler!=="mergeFormdata");E.events=B!=null?B:[],h=await executeEvents({...i,config:E,componentName:d.path})}return h},onBack:async function(d){var u,h;const y=((u=n.dynamicData)==null?void 0:u.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onBack",d),((h=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:h[y])===void 0&&(d==null||d.handleBack())},onNext:async function(d){var u,h;const y=((u=n.dynamicData)==null?void 0:u.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onNext",d),((h=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:h[y])===void 0&&(d==null||d.handleNext())},onReset:async function(d){var u,h;const y=((u=n.dynamicData)==null?void 0:u.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onReset",d),((h=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:h[y])===void 0&&(d==null||d.handleReset())},callHandler:async function(d,y){var h,x,I;const u=((h=n.dynamicData)==null?void 0:h.tableButtonPath)||n.dynamicData.path.split(".")[0];((x=eventGroups==null?void 0:eventGroups[d])==null?void 0:x[u])!==void 0&&Promise.all((I=eventGroups==null?void 0:eventGroups[d])==null?void 0:I[u].map(E=>{i.store.functionParameters=y,executeEvents({...i,config:E,componentName:u})}))},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,y)=>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.multiline&&(i.config.main.multiline=n.multiline==="YES"),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,y)=>({label:d.label,id:y}))),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,y,u,h,x,I,E,B,L,Y;i?(u=(y=(d=exports.schema.properties)==null?void 0:d[s])==null?void 0:y.items)!=null&&u.properties&&((E=(I=(x=(h=exports.schema.properties)==null?void 0:h[s])==null?void 0:x.items)==null?void 0:I.properties)!=null&&E[n.name]||(exports.schema.properties[s].items.properties[n.name]={},n.type==="Select"&&((B=n.value)==null?void 0:B.length)>0?exports.schema.properties[s].items.properties[n.name]={oneOf:n.value.map(k=>({const:k.value,title:k.label}))}:n.type==="MultipleSelect"&&((L=n.value)==null?void 0:L.length)>0&&(exports.schema.properties[s].items.properties[n.name]={items:{oneOf:n.value.map(k=>({const:k.value,title:k.label}))}}))):(n.type==="Select"||n.type==="MultipleSelect")&&((Y=n.value)==null?void 0:Y.length)>0&&(n.type==="Select"?exports.schema.properties[n.name]={oneOf:n.value.map(k=>({const:k.value,title:k.label}))}:n.type==="MultipleSelect"&&(exports.schema.properties[n.name]={items:{oneOf:n.value.map(k=>({const:k.value,title:k.label}))}})),n.validation&&n.validation.forEach(k=>{var X,K,U,ie,ue,V,he,le,ve,ce,Ce,we;s?(U=(K=(X=exports.schema.properties)==null?void 0:X[s])==null?void 0:K.items)!=null&&U.properties&&((he=(V=(ue=(ie=exports.schema.properties)==null?void 0:ie[s])==null?void 0:ue.items)==null?void 0:V.properties)!=null&&he[n.name]||(exports.schema.properties[s].items.properties[n.name]={},n.type==="Select"||((le=n.value)==null?void 0:le.length)>0?exports.schema.properties[s].items.properties[n.name]={oneOf:n.value.map(qe=>({const:qe.value,title:qe.label}))}:(n.type==="MultipleSelect"||((ve=n.value)==null?void 0:ve.length)>0)&&(exports.schema.properties[s].items.properties[n.name]={items:{oneOf:n.value.map(qe=>({const:qe.value,title:qe.label}))}})),k.validationType==="required"?(we=(Ce=(ce=exports.schema.properties)==null?void 0:ce[s])==null?void 0:Ce.items)==null||we.required.push(n.name):(exports.schema.properties[s].items.properties[n.name].type="string",exports.schema.properties[s].items.properties[n.name][k.validationType]=isNaN(k.validationValue)?k.validationValue:Number(k.validationValue))):(exports.schema.properties[n.name]||(exports.schema.properties[n.name]={}),k.validationType==="required"?exports.schema.required.push(n.name):(exports.schema.properties[n.name].type="string",exports.schema.properties[n.name][k.validationType]=isNaN(k.validationValue)?k.validationValue:Number(k.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,y)=>{buildSchema(d,n.name,n.type==="Array")})):n.elements.map((d,y)=>{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 y={};n.sizeHolder&&n.sizeHolder.map((u,h)=>{y[u.keyName]=u.value}),i.elements=n.elements.map((u,h)=>({accessorKey:u.name,header:u.label||u.name,size:y[u.name]||180,type:u.columnFormat,elements:u.type=="ColumnGroup"?u.elements.map(x=>buildUiSchema(x,s)):[]}))}else if(n.type=="Table"){const y={};n.sizeHolder&&n.sizeHolder.map((u,h)=>{y[u.keyName]=u.value}),i.elements=n.elements.map((u,h)=>u.type?{accessorKey:u.name,header:u.label||u.name,size:y[u.name]||180,type:u.columnFormat,widget:u.type!="ColumnGroup"?buildUiSchema(u,s):void 0,elements:u.type=="ColumnGroup"?u.elements.map(x=>buildUiSchema(x,s)):[],columnFilterModeOptions:u.filteringOptions,enableColumnFilter:u.enableFilter==="Yes",enableSorting:u.enableSorting==="Yes"}:{accessorKey:u.name,type:u.columnFormat,header:u.label||u.name,size:y[u.name]||180,columnFilterModeOptions:u.filteringOptions,enableColumnFilter:u.enableFilter==="Yes",enableSorting:u.enableSorting==="Yes"})}else n.type=="Array"?i.options.detail.elements=n.elements.map((y,u)=>buildUiSchema(y,s)):i.elements=n.elements.map((y,u)=>buildUiSchema(y,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