From df00332aa9ca4ace4b644e59d08b7e03d7f18cd1 Mon Sep 17 00:00:00 2001 From: thekiba Date: Mon, 11 Nov 2024 18:47:59 +0400 Subject: [PATCH] chore: rebuild --- docs/assets/{index-8dc326ac.js => index-842a270c.js} | 2 +- docs/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename docs/assets/{index-8dc326ac.js => index-842a270c.js} (99%) diff --git a/docs/assets/index-8dc326ac.js b/docs/assets/index-842a270c.js similarity index 99% rename from docs/assets/index-8dc326ac.js rename to docs/assets/index-842a270c.js index 0eebbe9..52d50c1 100644 --- a/docs/assets/index-8dc326ac.js +++ b/docs/assets/index-842a270c.js @@ -1113,7 +1113,7 @@ PERFORMANCE OF THIS SOFTWARE. The above lifecycles should be removed. Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof Et.getDerivedStateFromProps=="function"&&(Lt.componentWillMount=wt,Lt.componentWillReceiveProps=yt),typeof Lt.getSnapshotBeforeUpdate=="function"){if(typeof Lt.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");Lt.componentWillUpdate=vt;var Yt=Lt.componentDidUpdate;Lt.componentDidUpdate=function(Ut,gn,Wn){var Gn=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Wn;Yt.call(this,Ut,gn,Gn)}}return Et}function xt(Et,Lt){if(Et==null)return{};var Ot,Bt,It=function(nn,Yt){if(nn==null)return{};var Ut,gn,Wn={},Gn=Object.keys(nn);for(gn=0;gn=0||(Wn[Ut]=nn[Ut]);return Wn}(Et,Lt);if(Object.getOwnPropertySymbols){var an=Object.getOwnPropertySymbols(Et);for(Bt=0;Bt=0||Object.prototype.propertyIsEnumerable.call(Et,Ot)&&(It[Ot]=Et[Ot])}return It}function bt(Et){var Lt=function(Ot){return{}.toString.call(Ot).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(Et);return Lt==="number"&&(Lt=isNaN(Et)?"nan":(0|Et)!=Et?"float":"integer"),Lt}wt.__suppressDeprecationWarning=!0,yt.__suppressDeprecationWarning=!0,vt.__suppressDeprecationWarning=!0;var At={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},_t={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},Ct={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},Mt=$(45),jt=function(Et){var Lt=function(Ot){return{backgroundColor:Ot.base00,ellipsisColor:Ot.base09,braceColor:Ot.base07,expandedIcon:Ot.base0D,collapsedIcon:Ot.base0E,keyColor:Ot.base07,arrayKeyColor:Ot.base0C,objectSize:Ot.base04,copyToClipboard:Ot.base0F,copyToClipboardCheck:Ot.base0D,objectBorder:Ot.base02,dataTypes:{boolean:Ot.base0E,date:Ot.base0D,float:Ot.base0B,function:Ot.base0D,integer:Ot.base0F,string:Ot.base09,nan:Ot.base08,null:Ot.base0A,undefined:Ot.base05,regexp:Ot.base0A,background:Ot.base02},editVariable:{editIcon:Ot.base0E,cancelIcon:Ot.base09,removeIcon:Ot.base09,addIcon:Ot.base0E,checkIcon:Ot.base0E,background:Ot.base01,color:Ot.base0A,border:Ot.base07},addKeyModal:{background:Ot.base05,border:Ot.base04,color:Ot.base0A,labelColor:Ot.base01},validationFailure:{background:Ot.base09,iconColor:Ot.base01,fontColor:Ot.base01}}}(Et);return{"app-container":{fontFamily:Ct.globalFontFamily,cursor:Ct.globalCursor,backgroundColor:Lt.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:Lt.ellipsisColor,fontSize:Ct.ellipsisFontSize,lineHeight:Ct.ellipsisLineHeight,cursor:Ct.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:Ct.braceCursor,fontWeight:Ct.braceFontWeight,color:Lt.braceColor},"expanded-icon":{color:Lt.expandedIcon},"collapsed-icon":{color:Lt.collapsedIcon},colon:{display:"inline-block",margin:Ct.keyMargin,color:Lt.keyColor,verticalAlign:"top"},objectKeyVal:function(Ot,Bt){return{style:rt({paddingTop:Ct.keyValPaddingTop,paddingRight:Ct.keyValPaddingRight,paddingBottom:Ct.keyValPaddingBottom,borderLeft:Ct.keyValBorderLeft+" "+Lt.objectBorder,":hover":{paddingLeft:Bt.paddingLeft-1+"px",borderLeft:Ct.keyValBorderHover+" "+Lt.objectBorder}},Bt)}},"object-key-val-no-border":{padding:Ct.keyValPadding},"pushed-content":{marginLeft:Ct.pushedContentMarginLeft},variableValue:function(Ot,Bt){return{style:rt({display:"inline-block",paddingRight:Ct.variableValuePaddingRight,position:"relative"},Bt)}},"object-name":{display:"inline-block",color:Lt.keyColor,letterSpacing:Ct.keyLetterSpacing,fontStyle:Ct.keyFontStyle,verticalAlign:Ct.keyVerticalAlign,opacity:Ct.keyOpacity,":hover":{opacity:Ct.keyOpacityHover}},"array-key":{display:"inline-block",color:Lt.arrayKeyColor,letterSpacing:Ct.keyLetterSpacing,fontStyle:Ct.keyFontStyle,verticalAlign:Ct.keyVerticalAlign,opacity:Ct.keyOpacity,":hover":{opacity:Ct.keyOpacityHover}},"object-size":{color:Lt.objectSize,borderRadius:Ct.objectSizeBorderRadius,fontStyle:Ct.objectSizeFontStyle,margin:Ct.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:Ct.dataTypeFontSize,marginRight:Ct.dataTypeMarginRight,opacity:Ct.datatypeOpacity},boolean:{display:"inline-block",color:Lt.dataTypes.boolean},date:{display:"inline-block",color:Lt.dataTypes.date},"date-value":{marginLeft:Ct.dateValueMarginLeft},float:{display:"inline-block",color:Lt.dataTypes.float},function:{display:"inline-block",color:Lt.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:Lt.dataTypes.integer},string:{display:"inline-block",color:Lt.dataTypes.string},nan:{display:"inline-block",color:Lt.dataTypes.nan,fontSize:Ct.nanFontSize,fontWeight:Ct.nanFontWeight,backgroundColor:Lt.dataTypes.background,padding:Ct.nanPadding,borderRadius:Ct.nanBorderRadius},null:{display:"inline-block",color:Lt.dataTypes.null,fontSize:Ct.nullFontSize,fontWeight:Ct.nullFontWeight,backgroundColor:Lt.dataTypes.background,padding:Ct.nullPadding,borderRadius:Ct.nullBorderRadius},undefined:{display:"inline-block",color:Lt.dataTypes.undefined,fontSize:Ct.undefinedFontSize,padding:Ct.undefinedPadding,borderRadius:Ct.undefinedBorderRadius,backgroundColor:Lt.dataTypes.background},regexp:{display:"inline-block",color:Lt.dataTypes.regexp},"copy-to-clipboard":{cursor:Ct.clipboardCursor},"copy-icon":{color:Lt.copyToClipboard,fontSize:Ct.iconFontSize,marginRight:Ct.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:Lt.copyToClipboardCheck,marginLeft:Ct.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:Ct.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:Ct.metaDataPadding},"icon-container":{display:"inline-block",width:Ct.iconContainerWidth},tooltip:{padding:Ct.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:Lt.editVariable.removeIcon,cursor:Ct.iconCursor,fontSize:Ct.iconFontSize,marginRight:Ct.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:Lt.editVariable.addIcon,cursor:Ct.iconCursor,fontSize:Ct.iconFontSize,marginRight:Ct.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:Lt.editVariable.editIcon,cursor:Ct.iconCursor,fontSize:Ct.iconFontSize,marginRight:Ct.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:Ct.iconCursor,color:Lt.editVariable.checkIcon,fontSize:Ct.iconFontSize,paddingRight:Ct.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:Ct.iconCursor,color:Lt.editVariable.cancelIcon,fontSize:Ct.iconFontSize,paddingRight:Ct.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:Ct.editInputMinWidth,borderRadius:Ct.editInputBorderRadius,backgroundColor:Lt.editVariable.background,color:Lt.editVariable.color,padding:Ct.editInputPadding,marginRight:Ct.editInputMarginRight,fontFamily:Ct.editInputFontFamily},"detected-row":{paddingTop:Ct.detectedRowPaddingTop},"key-modal-request":{position:Ct.addKeyCoverPosition,top:Ct.addKeyCoverPositionPx,left:Ct.addKeyCoverPositionPx,right:Ct.addKeyCoverPositionPx,bottom:Ct.addKeyCoverPositionPx,backgroundColor:Ct.addKeyCoverBackground},"key-modal":{width:Ct.addKeyModalWidth,backgroundColor:Lt.addKeyModal.background,marginLeft:Ct.addKeyModalMargin,marginRight:Ct.addKeyModalMargin,padding:Ct.addKeyModalPadding,borderRadius:Ct.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:Lt.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:Lt.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:Lt.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:Lt.addKeyModal.labelColor,fontSize:Ct.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:Lt.editVariable.addIcon,fontSize:Ct.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:Lt.ellipsisColor,fontSize:Ct.ellipsisFontSize,lineHeight:Ct.ellipsisLineHeight,cursor:Ct.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:Lt.validationFailure.fontColor,backgroundColor:Lt.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:Lt.validationFailure.iconColor,fontSize:Ct.iconFontSize,transform:"rotate(45deg)"}}};function Rt(Et,Lt,Ot){return Et||console.error("theme has not been set"),function(Bt){var It=At;return Bt!==!1&&Bt!=="none"||(It=_t),Object(Mt.createStyling)(jt,{defaultBase16:It})(Bt)}(Et)(Lt,Ot)}var Wt=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=(Bt.rjvId,Bt.type_name),an=Bt.displayDataTypes,nn=Bt.theme;return an?st.a.createElement("span",Object.assign({className:"data-type-label"},Rt(nn,"data-type-label")),It):null}}]),Ot}(st.a.PureComponent),Jt=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props;return st.a.createElement("div",Rt(Bt.theme,"boolean"),st.a.createElement(Wt,Object.assign({type_name:"bool"},Bt)),Bt.value?"true":"false")}}]),Ot}(st.a.PureComponent),Qt=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props;return st.a.createElement("div",Rt(Bt.theme,"date"),st.a.createElement(Wt,Object.assign({type_name:"date"},Bt)),st.a.createElement("span",Object.assign({className:"date-value"},Rt(Bt.theme,"date-value")),Bt.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),Ot}(st.a.PureComponent),Gt=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props;return st.a.createElement("div",Rt(Bt.theme,"float"),st.a.createElement(Wt,Object.assign({type_name:"float"},Bt)),this.props.value)}}]),Ot}(st.a.PureComponent);function Vt(Et,Lt){(Lt==null||Lt>Et.length)&&(Lt=Et.length);for(var Ot=0,Bt=new Array(Lt);Ot"u"||Et[Symbol.iterator]==null){if(Array.isArray(Et)||(Ot=dn(Et))||Lt&&Et&&typeof Et.length=="number"){Ot&&(Et=Ot);var Bt=0,It=function(){};return{s:It,n:function(){return Bt>=Et.length?{done:!0}:{done:!1,value:Et[Bt++]}},e:function(Ut){throw Ut},f:It}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var an,nn=!0,Yt=!1;return{s:function(){Ot=Et[Symbol.iterator]()},n:function(){var Ut=Ot.next();return nn=Ut.done,Ut},e:function(Ut){Yt=!0,an=Ut},f:function(){try{nn||Ot.return==null||Ot.return()}finally{if(Yt)throw an}}}}function En(Et){return function(Lt){if(Array.isArray(Lt))return Vt(Lt)}(Et)||function(Lt){if(typeof Symbol<"u"&&Symbol.iterator in Object(Lt))return Array.from(Lt)}(Et)||dn(Et)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var yn=$(46),Rn=new($(47)).Dispatcher,Hn=new(function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){var Bt;nt(this,Ot);for(var It=arguments.length,an=new Array(It),nn=0;nnIt&&(Yt.style.cursor="pointer",this.state.collapsed&&(nn=st.a.createElement("span",null,nn.substring(0,It),st.a.createElement("span",Rt(an,"ellipsis")," ...")))),st.a.createElement("div",Rt(an,"string"),st.a.createElement(Wt,Object.assign({type_name:"string"},Bt)),st.a.createElement("span",Object.assign({className:"string-value"},Yt,{onClick:this.toggleCollapsed}),'"',nn,'"'))}}]),Ot}(st.a.PureComponent),ln=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){return st.a.createElement("div",Rt(this.props.theme,"undefined"),"undefined")}}]),Ot}(st.a.PureComponent);function Mn(){return(Mn=Object.assign||function(Et){for(var Lt=1;Lt=0||($n[hr]=Jn[hr]);return $n}(Et,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Wn,Gn=gn.value!==void 0,Kn=Object(pt.useRef)(null),er=Un(Kn,Lt),zn=Object(pt.useRef)(0),Qn=Object(pt.useRef)(),ir=function(){var Jn=Kn.current,vr=Ot&&Qn.current?Qn.current:function(lr){var rr=window.getComputedStyle(lr);if(rr===null)return null;var nr,ar=(nr=rr,An.reduce(function(Mr,jr){return Mr[jr]=nr[jr],Mr},{})),Ar=ar.boxSizing;return Ar===""?null:(Ht&&Ar==="border-box"&&(ar.width=parseFloat(ar.width)+parseFloat(ar.borderRightWidth)+parseFloat(ar.borderLeftWidth)+parseFloat(ar.paddingRight)+parseFloat(ar.paddingLeft)+"px"),{sizingStyle:ar,paddingSize:parseFloat(ar.paddingBottom)+parseFloat(ar.paddingTop),borderSize:parseFloat(ar.borderBottomWidth)+parseFloat(ar.borderTopWidth)})}(Jn);if(vr){Qn.current=vr;var hr=function(lr,rr,nr,ar){nr===void 0&&(nr=1),ar===void 0&&(ar=1/0),Ln||((Ln=document.createElement("textarea")).setAttribute("tab-index","-1"),Ln.setAttribute("aria-hidden","true"),Zn(Ln)),Ln.parentNode===null&&document.body.appendChild(Ln);var Ar=lr.paddingSize,Mr=lr.borderSize,jr=lr.sizingStyle,Or=jr.boxSizing;Object.keys(jr).forEach(function(Nr){var Br=Nr;Ln.style[Br]=jr[Br]}),Zn(Ln),Ln.value=rr;var sn=function(Nr,Br){var zr=Nr.scrollHeight;return Br.sizingStyle.boxSizing==="border-box"?zr+Br.borderSize:zr-Br.paddingSize}(Ln,lr);Ln.value="x";var Lr=Ln.scrollHeight-Ar,Dr=Lr*nr;Or==="border-box"&&(Dr=Dr+Ar+Mr),sn=Math.max(Dr,sn);var Fr=Lr*ar;return Or==="border-box"&&(Fr=Fr+Ar+Mr),[sn=Math.min(Fr,sn),Lr]}(vr,Jn.value||Jn.placeholder||"x",It,Bt),On=hr[0],$n=hr[1];zn.current!==On&&(zn.current=On,Jn.style.setProperty("height",On+"px","important"),Ut(On,{rowHeight:$n}))}};return Object(pt.useLayoutEffect)(ir),Wn=Pn(ir),Object(pt.useLayoutEffect)(function(){var Jn=function(vr){Wn.current(vr)};return window.addEventListener("resize",Jn),function(){window.removeEventListener("resize",Jn)}},[]),Object(pt.createElement)("textarea",Mn({},gn,{onChange:function(Jn){Gn||ir(),nn(Jn)},ref:er}))},pn=Object(pt.forwardRef)(Xt);function Tn(Et){Et=Et.trim();try{if((Et=JSON.stringify(JSON.parse(Et)))[0]==="[")return cr("array",JSON.parse(Et));if(Et[0]==="{")return cr("object",JSON.parse(Et));if(Et.match(/\-?\d+\.\d+/)&&Et.match(/\-?\d+\.\d+/)[0]===Et)return cr("float",parseFloat(Et));if(Et.match(/\-?\d+e-\d+/)&&Et.match(/\-?\d+e-\d+/)[0]===Et)return cr("float",Number(Et));if(Et.match(/\-?\d+/)&&Et.match(/\-?\d+/)[0]===Et)return cr("integer",parseInt(Et));if(Et.match(/\-?\d+e\+\d+/)&&Et.match(/\-?\d+e\+\d+/)[0]===Et)return cr("integer",Number(Et))}catch{}switch(Et=Et.toLowerCase()){case"undefined":return cr("undefined",void 0);case"nan":return cr("nan",NaN);case"null":return cr("null",null);case"true":return cr("boolean",!0);case"false":return cr("boolean",!1);default:if(Et=Date.parse(Et))return cr("date",new Date(Et))}return cr(!1,null)}function cr(Et,Lt){return{type:Et,value:Lt}}var yr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",Object.assign({},ur(It),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),Ot}(st.a.PureComponent),tr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",Object.assign({},ur(It),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),Ot}(st.a.PureComponent),Xn=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]),nn=ur(It).style;return st.a.createElement("span",an,st.a.createElement("svg",{fill:nn.color,width:nn.height,height:nn.width,style:nn,viewBox:"0 0 1792 1792"},st.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),Ot}(st.a.PureComponent),gr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]),nn=ur(It).style;return st.a.createElement("span",an,st.a.createElement("svg",{fill:nn.color,width:nn.height,height:nn.width,style:nn,viewBox:"0 0 1792 1792"},st.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),Ot}(st.a.PureComponent),In=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",{style:rt(rt({},ur(It).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},st.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),Ot}(st.a.PureComponent),dr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",{style:rt(rt({},ur(It).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},st.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),Ot}(st.a.PureComponent),Vn=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",Object.assign({},ur(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),Ot}(st.a.PureComponent),pr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",Object.assign({},ur(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Ot}(st.a.PureComponent),qn=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",Object.assign({},ur(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Ot}(st.a.PureComponent),Fn=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",Object.assign({},ur(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),Ot}(st.a.PureComponent),sr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",Object.assign({},ur(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),Ot}(st.a.PureComponent),or=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",Object.assign({},ur(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Ot}(st.a.PureComponent);function ur(Et){return Et||(Et={}),{style:rt(rt({verticalAlign:"middle"},Et),{},{color:Et.color?Et.color:"#000000",height:"1em",width:"1em"})}}var xr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;return nt(this,Ot),(It=Lt.call(this,Bt)).copiedTimer=null,It.handleCopy=function(){var an=document.createElement("textarea"),nn=It.props,Yt=nn.clickCallback,Ut=nn.src,gn=nn.namespace;an.innerHTML=JSON.stringify(It.clipboardValue(Ut),null," "),document.body.appendChild(an),an.select(),document.execCommand("copy"),document.body.removeChild(an),It.copiedTimer=setTimeout(function(){It.setState({copied:!1})},5500),It.setState({copied:!0},function(){typeof Yt=="function"&&Yt({src:Ut,namespace:gn,name:gn[gn.length-1]})})},It.getClippyIcon=function(){var an=It.props.theme;return It.state.copied?st.a.createElement("span",null,st.a.createElement(Vn,Object.assign({className:"copy-icon"},Rt(an,"copy-icon"))),st.a.createElement("span",Rt(an,"copy-icon-copied"),"✔")):st.a.createElement(Vn,Object.assign({className:"copy-icon"},Rt(an,"copy-icon")))},It.clipboardValue=function(an){switch(bt(an)){case"function":case"regexp":return an.toString();default:return an}},It.state={copied:!1},It}return at(Ot,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var Bt=this.props,It=(Bt.src,Bt.theme),an=Bt.hidden,nn=Bt.rowHovered,Yt=Rt(It,"copy-to-clipboard").style,Ut="inline";return an&&(Ut="none"),st.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:nn?"inline-block":"none"}},st.a.createElement("span",{style:rt(rt({},Yt),{},{display:Ut}),onClick:this.handleCopy},this.getClippyIcon()))}}]),Ot}(st.a.PureComponent),kr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;return nt(this,Ot),(It=Lt.call(this,Bt)).getEditIcon=function(){var an=It.props,nn=an.variable,Yt=an.theme;return st.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:It.state.hovered?"inline-block":"none"}},st.a.createElement(sr,Object.assign({className:"click-to-edit-icon"},Rt(Yt,"editVarIcon"),{onClick:function(){It.prepopInput(nn)}})))},It.prepopInput=function(an){if(It.props.onEdit!==!1){var nn=function(Ut){var gn;switch(bt(Ut)){case"undefined":gn="undefined";break;case"nan":gn="NaN";break;case"string":gn=Ut;break;case"date":case"function":case"regexp":gn=Ut.toString();break;default:try{gn=JSON.stringify(Ut,null," ")}catch{gn=""}}return gn}(an.value),Yt=Tn(nn);It.setState({editMode:!0,editValue:nn,parsedInput:{type:Yt.type,value:Yt.value}})}},It.getRemoveIcon=function(){var an=It.props,nn=an.variable,Yt=an.namespace,Ut=an.theme,gn=an.rjvId;return st.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:It.state.hovered?"inline-block":"none"}},st.a.createElement(pr,Object.assign({className:"click-to-remove-icon"},Rt(Ut,"removeVarIcon"),{onClick:function(){Rn.dispatch({name:"VARIABLE_REMOVED",rjvId:gn,data:{name:nn.name,namespace:Yt,existing_value:nn.value,variable_removed:!0}})}})))},It.getValue=function(an,nn){var Yt=!nn&&an.type,Ut=ft(It).props;switch(Yt){case!1:return It.getEditInput();case"string":return st.a.createElement(_n,Object.assign({value:an.value},Ut));case"integer":return st.a.createElement(bn,Object.assign({value:an.value},Ut));case"float":return st.a.createElement(Gt,Object.assign({value:an.value},Ut));case"boolean":return st.a.createElement(Jt,Object.assign({value:an.value},Ut));case"function":return st.a.createElement(wn,Object.assign({value:an.value},Ut));case"null":return st.a.createElement(Sn,Ut);case"nan":return st.a.createElement(fn,Ut);case"undefined":return st.a.createElement(ln,Ut);case"date":return st.a.createElement(Qt,Object.assign({value:an.value},Ut));case"regexp":return st.a.createElement(hn,Object.assign({value:an.value},Ut));default:return st.a.createElement("div",{className:"object-value"},JSON.stringify(an.value))}},It.getEditInput=function(){var an=It.props.theme,nn=It.state.editValue;return st.a.createElement("div",null,st.a.createElement(pn,Object.assign({type:"text",inputRef:function(Yt){return Yt&&Yt.focus()},value:nn,className:"variable-editor",onChange:function(Yt){var Ut=Yt.target.value,gn=Tn(Ut);It.setState({editValue:Ut,parsedInput:{type:gn.type,value:gn.value}})},onKeyDown:function(Yt){switch(Yt.key){case"Escape":It.setState({editMode:!1,editValue:""});break;case"Enter":(Yt.ctrlKey||Yt.metaKey)&&It.submitEdit(!0)}Yt.stopPropagation()},placeholder:"update this value",minRows:2},Rt(an,"edit-input"))),st.a.createElement("div",Rt(an,"edit-icon-container"),st.a.createElement(pr,Object.assign({className:"edit-cancel"},Rt(an,"cancel-icon"),{onClick:function(){It.setState({editMode:!1,editValue:""})}})),st.a.createElement(or,Object.assign({className:"edit-check string-value"},Rt(an,"check-icon"),{onClick:function(){It.submitEdit()}})),st.a.createElement("div",null,It.showDetected())))},It.submitEdit=function(an){var nn=It.props,Yt=nn.variable,Ut=nn.namespace,gn=nn.rjvId,Wn=It.state,Gn=Wn.editValue,Kn=Wn.parsedInput,er=Gn;an&&Kn.type&&(er=Kn.value),It.setState({editMode:!1}),Rn.dispatch({name:"VARIABLE_UPDATED",rjvId:gn,data:{name:Yt.name,namespace:Ut,existing_value:Yt.value,new_value:er,variable_removed:!1}})},It.showDetected=function(){var an=It.props,nn=an.theme,Yt=(an.variable,an.namespace,an.rjvId,It.state.parsedInput),Ut=(Yt.type,Yt.value,It.getDetectedInput());if(Ut)return st.a.createElement("div",null,st.a.createElement("div",Rt(nn,"detected-row"),Ut,st.a.createElement(or,{className:"edit-check detected",style:rt({verticalAlign:"top",paddingLeft:"3px"},Rt(nn,"check-icon").style),onClick:function(){It.submitEdit(!0)}})))},It.getDetectedInput=function(){var an=It.state.parsedInput,nn=an.type,Yt=an.value,Ut=ft(It).props,gn=Ut.theme;if(nn!==!1)switch(nn.toLowerCase()){case"object":return st.a.createElement("span",null,st.a.createElement("span",{style:rt(rt({},Rt(gn,"brace").style),{},{cursor:"default"})},"{"),st.a.createElement("span",{style:rt(rt({},Rt(gn,"ellipsis").style),{},{cursor:"default"})},"..."),st.a.createElement("span",{style:rt(rt({},Rt(gn,"brace").style),{},{cursor:"default"})},"}"));case"array":return st.a.createElement("span",null,st.a.createElement("span",{style:rt(rt({},Rt(gn,"brace").style),{},{cursor:"default"})},"["),st.a.createElement("span",{style:rt(rt({},Rt(gn,"ellipsis").style),{},{cursor:"default"})},"..."),st.a.createElement("span",{style:rt(rt({},Rt(gn,"brace").style),{},{cursor:"default"})},"]"));case"string":return st.a.createElement(_n,Object.assign({value:Yt},Ut));case"integer":return st.a.createElement(bn,Object.assign({value:Yt},Ut));case"float":return st.a.createElement(Gt,Object.assign({value:Yt},Ut));case"boolean":return st.a.createElement(Jt,Object.assign({value:Yt},Ut));case"function":return st.a.createElement(wn,Object.assign({value:Yt},Ut));case"null":return st.a.createElement(Sn,Ut);case"nan":return st.a.createElement(fn,Ut);case"undefined":return st.a.createElement(ln,Ut);case"date":return st.a.createElement(Qt,Object.assign({value:new Date(Yt)},Ut))}},It.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},It}return at(Ot,[{key:"render",value:function(){var Bt=this,It=this.props,an=It.variable,nn=It.singleIndent,Yt=It.type,Ut=It.theme,gn=It.namespace,Wn=It.indentWidth,Gn=It.enableClipboard,Kn=It.onEdit,er=It.onDelete,zn=It.onSelect,Qn=It.displayArrayKey,ir=It.quotesOnKeys,Jn=this.state.editMode;return st.a.createElement("div",Object.assign({},Rt(Ut,"objectKeyVal",{paddingLeft:Wn*nn}),{onMouseEnter:function(){return Bt.setState(rt(rt({},Bt.state),{},{hovered:!0}))},onMouseLeave:function(){return Bt.setState(rt(rt({},Bt.state),{},{hovered:!1}))},className:"variable-row",key:an.name}),Yt=="array"?Qn?st.a.createElement("span",Object.assign({},Rt(Ut,"array-key"),{key:an.name+"_"+gn}),an.name,st.a.createElement("div",Rt(Ut,"colon"),":")):null:st.a.createElement("span",null,st.a.createElement("span",Object.assign({},Rt(Ut,"object-name"),{className:"object-key",key:an.name+"_"+gn}),!!ir&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"'),st.a.createElement("span",{style:{display:"inline-block"}},an.name),!!ir&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"')),st.a.createElement("span",Rt(Ut,"colon"),":")),st.a.createElement("div",Object.assign({className:"variable-value",onClick:zn===!1&&Kn===!1?null:function(vr){var hr=En(gn);(vr.ctrlKey||vr.metaKey)&&Kn!==!1?Bt.prepopInput(an):zn!==!1&&(hr.shift(),zn(rt(rt({},an),{},{namespace:hr})))}},Rt(Ut,"variableValue",{cursor:zn===!1?"default":"pointer"})),this.getValue(an,Jn)),Gn?st.a.createElement(xr,{rowHovered:this.state.hovered,hidden:Jn,src:an.value,clickCallback:Gn,theme:Ut,namespace:[].concat(En(gn),[an.name])}):null,Kn!==!1&&Jn==0?this.getEditIcon():null,er!==!1&&Jn==0?this.getRemoveIcon():null)}}]),Ot}(st.a.PureComponent),Tr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){var Bt;nt(this,Ot);for(var It=arguments.length,an=new Array(It),nn=0;nn0?Gn:null,namespace:Wn.splice(0,Wn.length-1),existing_value:Kn,variable_removed:!1,key_name:null};bt(Kn)==="object"?Rn.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:er,data:Qn}):Rn.dispatch({name:"VARIABLE_ADDED",rjvId:er,data:rt(rt({},Qn),{},{new_value:[].concat(En(Kn),[null])})})}})))},Bt.getRemoveObject=function(Yt){var Ut=Bt.props,gn=Ut.theme,Wn=(Ut.hover,Ut.namespace),Gn=Ut.name,Kn=Ut.src,er=Ut.rjvId;if(Wn.length!==1)return st.a.createElement("span",{className:"click-to-remove",style:{display:Yt?"inline-block":"none"}},st.a.createElement(pr,Object.assign({className:"click-to-remove-icon"},Rt(gn,"removeVarIcon"),{onClick:function(){Rn.dispatch({name:"VARIABLE_REMOVED",rjvId:er,data:{name:Gn,namespace:Wn.splice(0,Wn.length-1),existing_value:Kn,variable_removed:!0}})}})))},Bt.render=function(){var Yt=Bt.props,Ut=Yt.theme,gn=Yt.onDelete,Wn=Yt.onAdd,Gn=Yt.enableClipboard,Kn=Yt.src,er=Yt.namespace,zn=Yt.rowHovered;return st.a.createElement("div",Object.assign({},Rt(Ut,"object-meta-data"),{className:"object-meta-data",onClick:function(Qn){Qn.stopPropagation()}}),Bt.getObjectSize(),Gn?st.a.createElement(xr,{rowHovered:zn,clickCallback:Gn,src:Kn,theme:Ut,namespace:er}):null,Wn!==!1?Bt.getAddAttribute(zn):null,gn!==!1?Bt.getRemoveObject(zn):null)},Bt}return Ot}(st.a.PureComponent);function Pr(Et){var Lt=Et.parent_type,Ot=Et.namespace,Bt=Et.quotesOnKeys,It=Et.theme,an=Et.jsvRoot,nn=Et.name,Yt=Et.displayArrayKey,Ut=Et.name?Et.name:"";return!an||nn!==!1&&nn!==null?Lt=="array"?Yt?st.a.createElement("span",Object.assign({},Rt(It,"array-key"),{key:Ot}),st.a.createElement("span",{className:"array-key"},Ut),st.a.createElement("span",Rt(It,"colon"),":")):st.a.createElement("span",null):st.a.createElement("span",Object.assign({},Rt(It,"object-name"),{key:Ot}),st.a.createElement("span",{className:"object-key"},Bt&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"'),st.a.createElement("span",null,Ut),Bt&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"')),st.a.createElement("span",Rt(It,"colon"),":")):st.a.createElement("span",null)}function Ir(Et){var Lt=Et.theme;switch(Et.iconStyle){case"triangle":return st.a.createElement(dr,Object.assign({},Rt(Lt,"expanded-icon"),{className:"expanded-icon"}));case"square":return st.a.createElement(Xn,Object.assign({},Rt(Lt,"expanded-icon"),{className:"expanded-icon"}));default:return st.a.createElement(yr,Object.assign({},Rt(Lt,"expanded-icon"),{className:"expanded-icon"}))}}function Wr(Et){var Lt=Et.theme;switch(Et.iconStyle){case"triangle":return st.a.createElement(In,Object.assign({},Rt(Lt,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return st.a.createElement(gr,Object.assign({},Rt(Lt,"collapsed-icon"),{className:"collapsed-icon"}));default:return st.a.createElement(tr,Object.assign({},Rt(Lt,"collapsed-icon"),{className:"collapsed-icon"}))}}var Qr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;return nt(this,Ot),(It=Lt.call(this,Bt)).toggleCollapsed=function(an){var nn=[];for(var Yt in It.state.expanded)nn.push(It.state.expanded[Yt]);nn[an]=!nn[an],It.setState({expanded:nn})},It.state={expanded:[]},It}return at(Ot,[{key:"getExpandedIcon",value:function(Bt){var It=this.props,an=It.theme,nn=It.iconStyle;return this.state.expanded[Bt]?st.a.createElement(Ir,{theme:an,iconStyle:nn}):st.a.createElement(Wr,{theme:an,iconStyle:nn})}},{key:"render",value:function(){var Bt=this,It=this.props,an=It.src,nn=It.groupArraysAfterLength,Yt=(It.depth,It.name),Ut=It.theme,gn=It.jsvRoot,Wn=It.namespace,Gn=(It.parent_type,xt(It,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),Kn=0,er=5*this.props.indentWidth;gn||(Kn=5*this.props.indentWidth);var zn=nn,Qn=Math.ceil(an.length/zn);return st.a.createElement("div",Object.assign({className:"object-key-val"},Rt(Ut,gn?"jsv-root":"objectKeyVal",{paddingLeft:Kn})),st.a.createElement(Pr,this.props),st.a.createElement("span",null,st.a.createElement(Tr,Object.assign({size:an.length},this.props))),En(Array(Qn)).map(function(ir,Jn){return st.a.createElement("div",Object.assign({key:Jn,className:"object-key-val array-group"},Rt(Ut,"objectKeyVal",{marginLeft:6,paddingLeft:er})),st.a.createElement("span",Rt(Ut,"brace-row"),st.a.createElement("div",Object.assign({className:"icon-container"},Rt(Ut,"icon-container"),{onClick:function(vr){Bt.toggleCollapsed(Jn)}}),Bt.getExpandedIcon(Jn)),Bt.state.expanded[Jn]?st.a.createElement(kt,Object.assign({key:Yt+Jn,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:zn,index_offset:Jn*zn,src:an.slice(Jn*zn,Jn*zn+zn),namespace:Wn,type:"array",parent_type:"array_group",theme:Ut},Gn)):st.a.createElement("span",Object.assign({},Rt(Ut,"brace"),{onClick:function(vr){Bt.toggleCollapsed(Jn)},className:"array-group-brace"}),"[",st.a.createElement("div",Object.assign({},Rt(Ut,"array-group-meta-data"),{className:"array-group-meta-data"}),st.a.createElement("span",Object.assign({className:"object-size"},Rt(Ut,"object-size")),Jn*zn," - ",Jn*zn+zn>an.length?an.length:Jn*zn+zn)),"]")))}))}}]),Ot}(st.a.PureComponent),Zr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;nt(this,Ot),(It=Lt.call(this,Bt)).toggleCollapsed=function(){It.setState({expanded:!It.state.expanded},function(){rn.set(It.props.rjvId,It.props.namespace,"expanded",It.state.expanded)})},It.getObjectContent=function(nn,Yt,Ut){return st.a.createElement("div",{className:"pushed-content object-container"},st.a.createElement("div",Object.assign({className:"object-content"},Rt(It.props.theme,"pushed-content")),It.renderObjectContents(Yt,Ut)))},It.getEllipsis=function(){return It.state.size===0?null:st.a.createElement("div",Object.assign({},Rt(It.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:It.toggleCollapsed}),"...")},It.getObjectMetaData=function(nn){var Yt=It.props,Ut=(Yt.rjvId,Yt.theme,It.state),gn=Ut.size,Wn=Ut.hovered;return st.a.createElement(Tr,Object.assign({rowHovered:Wn,size:gn},It.props))},It.renderObjectContents=function(nn,Yt){var Ut,gn=It.props,Wn=gn.depth,Gn=gn.parent_type,Kn=gn.index_offset,er=gn.groupArraysAfterLength,zn=gn.namespace,Qn=It.state.object_type,ir=[],Jn=Object.keys(nn||{});return It.props.sortKeys&&Qn!=="array"&&(Jn=Jn.sort()),Jn.forEach(function(vr){if(Ut=new mo(vr,nn[vr]),Gn==="array_group"&&Kn&&(Ut.name=parseInt(Ut.name)+Kn),nn.hasOwnProperty(vr))if(Ut.type==="object")ir.push(st.a.createElement(kt,Object.assign({key:Ut.name,depth:Wn+1,name:Ut.name,src:Ut.value,namespace:zn.concat(Ut.name),parent_type:Qn},Yt)));else if(Ut.type==="array"){var hr=kt;er&&Ut.value.length>er&&(hr=Qr),ir.push(st.a.createElement(hr,Object.assign({key:Ut.name,depth:Wn+1,name:Ut.name,src:Ut.value,namespace:zn.concat(Ut.name),type:"array",parent_type:Qn},Yt)))}else ir.push(st.a.createElement(kr,Object.assign({key:Ut.name+"_"+zn,variable:Ut,singleIndent:5,namespace:zn,type:It.props.type},Yt)))}),ir};var an=Ot.getState(Bt);return It.state=rt(rt({},an),{},{prevProps:{}}),It}return at(Ot,[{key:"getBraceStart",value:function(Bt,It){var an=this,nn=this.props,Yt=nn.src,Ut=nn.theme,gn=nn.iconStyle;if(nn.parent_type==="array_group")return st.a.createElement("span",null,st.a.createElement("span",Rt(Ut,"brace"),Bt==="array"?"[":"{"),It?this.getObjectMetaData(Yt):null);var Wn=It?Ir:Wr;return st.a.createElement("span",null,st.a.createElement("span",Object.assign({onClick:function(Gn){an.toggleCollapsed()}},Rt(Ut,"brace-row")),st.a.createElement("div",Object.assign({className:"icon-container"},Rt(Ut,"icon-container")),st.a.createElement(Wn,{theme:Ut,iconStyle:gn})),st.a.createElement(Pr,this.props),st.a.createElement("span",Rt(Ut,"brace"),Bt==="array"?"[":"{")),It?this.getObjectMetaData(Yt):null)}},{key:"render",value:function(){var Bt=this,It=this.props,an=It.depth,nn=It.src,Yt=(It.namespace,It.name,It.type,It.parent_type),Ut=It.theme,gn=It.jsvRoot,Wn=It.iconStyle,Gn=xt(It,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),Kn=this.state,er=Kn.object_type,zn=Kn.expanded,Qn={};return gn||Yt==="array_group"?Yt==="array_group"&&(Qn.borderLeft=0,Qn.display="inline"):Qn.paddingLeft=5*this.props.indentWidth,st.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return Bt.setState(rt(rt({},Bt.state),{},{hovered:!0}))},onMouseLeave:function(){return Bt.setState(rt(rt({},Bt.state),{},{hovered:!1}))}},Rt(Ut,gn?"jsv-root":"objectKeyVal",Qn)),this.getBraceStart(er,zn),zn?this.getObjectContent(an,nn,rt({theme:Ut,iconStyle:Wn},Gn)):this.getEllipsis(),st.a.createElement("span",{className:"brace-row"},st.a.createElement("span",{style:rt(rt({},Rt(Ut,"brace").style),{},{paddingLeft:zn?"3px":"0px"})},er==="array"?"]":"}"),zn?null:this.getObjectMetaData(nn)))}}],[{key:"getDerivedStateFromProps",value:function(Bt,It){var an=It.prevProps;return Bt.src!==an.src||Bt.collapsed!==an.collapsed||Bt.name!==an.name||Bt.namespace!==an.namespace||Bt.rjvId!==an.rjvId?rt(rt({},Ot.getState(Bt)),{},{prevProps:Bt}):null}}]),Ot}(st.a.PureComponent);Zr.getState=function(Et){var Lt=Object.keys(Et.src).length,Ot=(Et.collapsed===!1||Et.collapsed!==!0&&Et.collapsed>Et.depth)&&(!Et.shouldCollapse||Et.shouldCollapse({name:Et.name,src:Et.src,type:bt(Et.src),namespace:Et.namespace})===!1)&&Lt!==0;return{expanded:rn.get(Et.rjvId,Et.namespace,"expanded",Ot),object_type:Et.type==="array"?"array":"object",parent_type:Et.type==="array"?"array":"object",size:Lt,hovered:!1}};var mo=function Et(Lt,Ot){nt(this,Et),this.name=Lt,this.value=Ot,this.type=bt(Ot)};St(Zr);var kt=Zr,$t=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){var Bt;nt(this,Ot);for(var It=arguments.length,an=new Array(It),nn=0;nnYt.groupArraysAfterLength&&(gn=Qr),st.a.createElement("div",{className:"pretty-json-container object-container"},st.a.createElement("div",{className:"object-content"},st.a.createElement(gn,Object.assign({namespace:Ut,depth:0,jsvRoot:!0},Yt))))},Bt}return Ot}(st.a.PureComponent),Pt=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;return nt(this,Ot),(It=Lt.call(this,Bt)).closeModal=function(){Rn.dispatch({rjvId:It.props.rjvId,name:"RESET"})},It.submit=function(){It.props.submit(It.state.input)},It.state={input:Bt.input?Bt.input:""},It}return at(Ot,[{key:"render",value:function(){var Bt=this,It=this.props,an=It.theme,nn=It.rjvId,Yt=It.isValid,Ut=this.state.input,gn=Yt(Ut);return st.a.createElement("div",Object.assign({className:"key-modal-request"},Rt(an,"key-modal-request"),{onClick:this.closeModal}),st.a.createElement("div",Object.assign({},Rt(an,"key-modal"),{onClick:function(Wn){Wn.stopPropagation()}}),st.a.createElement("div",Rt(an,"key-modal-label"),"Key Name:"),st.a.createElement("div",{style:{position:"relative"}},st.a.createElement("input",Object.assign({},Rt(an,"key-modal-input"),{className:"key-modal-input",ref:function(Wn){return Wn&&Wn.focus()},spellCheck:!1,value:Ut,placeholder:"...",onChange:function(Wn){Bt.setState({input:Wn.target.value})},onKeyPress:function(Wn){gn&&Wn.key==="Enter"?Bt.submit():Wn.key==="Escape"&&Bt.closeModal()}})),gn?st.a.createElement(or,Object.assign({},Rt(an,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Wn){return Bt.submit()}})):null),st.a.createElement("span",Rt(an,"key-modal-cancel"),st.a.createElement(Fn,Object.assign({},Rt(an,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Rn.dispatch({rjvId:nn,name:"RESET"})}})))))}}]),Ot}(st.a.PureComponent),gt=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){var Bt;nt(this,Ot);for(var It=arguments.length,an=new Array(It),nn=0;nn_($.updated_src),[]);return jsxs("div",{className:"send-tx-form",children:[jsx$1("h3",{children:"Configure and send transaction"}),jsx$1(ReactJson,{src:defaultTx,theme:"ocean",onEdit:j,onAdd:j,onDelete:j}),d?jsx$1("button",{onClick:()=>k.sendTransaction(b),children:"Send transaction"}):jsx$1("button",{onClick:()=>k.openModal(),children:"Connect wallet to send the transaction"})]})}function App(){return jsx$1(TonConnectUIProvider$1,{manifestUrl:"https://ton-connect.github.io/demo-dapp-with-wallet/tonconnect-manifest.json",uiPreferences:{theme:THEME.DARK},walletsListConfiguration:{includeWallets:[{appName:"tonwallet",name:"TON Wallet",imageUrl:"https://wallet.ton.org/assets/ui/qr-logo.png",aboutUrl:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",universalLink:"https://wallet.ton.org/ton-connect",jsBridgeKey:"tonwallet",bridgeUrl:"https://bridge.tonapi.io/bridge",platforms:["chrome","android"]},{appName:"nicegramWallet",name:"Nicegram Wallet",imageUrl:"https://static.nicegram.app/icon.png",aboutUrl:"https://nicegram.app",universalLink:"https://nicegram.app/tc",deepLink:"nicegram-tc://",jsBridgeKey:"nicegramWallet",bridgeUrl:"https://bridge.tonapi.io/bridge",platforms:["ios","android"]},{appName:"tokenpocket",name:"TokenPocket",imageUrl:"https://hk.tpstatic.net/logo/tokenpocket.png",aboutUrl:"https://tokenpocket.pro",jsBridgeKey:"tokenpocket",platforms:["ios","android"]},{appName:"dewallet",name:"DeWallet",imageUrl:"https://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png",aboutUrl:"https://delabwallet.com",universalLink:"https://t.me/dewallet?attach=wallet",bridgeUrl:"https://bridge.dewallet.pro/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"BitgetWeb3",name:"BitgetWeb3",imageUrl:"https://img.bitgetimg.com/image/third/1723701408284.png",aboutUrl:"https://www.bitget.com",universalLink:"https://t.me/BitgetOfficialBot?attach=wallet",bridgeUrl:"https://ton-connect-bridge.bgwapi.io/bridge",platforms:["ios","android","windows","macos","linux"]},{appName:"cdcTonWallet",name:"Crypto.com DeFi Wallet",imageUrl:"https://apro-ncw-api-file.crypto.com/wallet/logo",aboutUrl:"https://crypto.com/defi-wallet",universalLink:"https://wallet.crypto.com/deeplink/ton-connect",deepLink:"dfw://",jsBridgeKey:"cdcTonWallet",bridgeUrl:"https://wallet.crypto.com/sse/tonbridge",platforms:["ios","android","chrome"]},{appName:"tobi",name:"Tobi",imageUrl:"https://app.tobiwallet.app/icons/logo.png",aboutUrl:"https://tobi.fun",universalLink:"https://t.me/TobiCopilotBot?attach=wallet",bridgeUrl:"https://ton-bridge.tobiwallet.app/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"trustwalletTon",name:"Trust",imageUrl:"https://assets-cdn.trustwallet.com/dapps/trust.logo.png",aboutUrl:"https://trustwallet.com/about-us",bridgeUrl:"https://tonconnect.trustwallet.com/bridge",jsBridgeKey:"trustwalletTon",platforms:["chrome","ios","android"]},{appName:"BitgetWeb3",name:"BitgetWeb3",imageUrl:"https://img.bitgetimg.com/image/third/1723701408284.png",aboutUrl:"https://www.bitget.com",universalLink:"https://t.me/BitgetOfficialBot?attach=wallet",bridgeUrl:"https://ton-connect-bridge.bgwapi.io/bridge",platforms:["ios","android","windows","macos","linux"]},{appName:"bitgetWalletLite",name:"Bitget Wallet Lite",imageUrl:"https://raw.githubusercontent.com/bitgetwallet/download/main/logo/png/bitget_wallet_lite_logo.png",aboutUrl:"https://web3.bitget.com",universalLink:"https://t.me/BitgetWallet_TGBot?attach=wallet",bridgeUrl:"https://ton-connect-bridge.bgwapi.io/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"onekey",name:"OneKey",imageUrl:"https://common.onekey-asset.com/logo/onekey-x288.png",aboutUrl:"https://onekey.so",jsBridgeKey:"onekeyTonWallet",platforms:["chrome"]}]},actionsConfiguration:{twaReturnUrl:"https://t.me/tc_twa_demo_bot/start"},children:jsxs("div",{className:"app",children:[jsx$1(Header,{}),jsx$1(TxForm,{}),jsx$1(Footer,{})]})})}const index="";var eruda$1={exports:{}};/*! eruda v2.11.3 https://eruda.liriliri.io/ */(function(module,exports){(function(b,_){module.exports=_()})(self,function(){return function(){var __webpack_modules__={422:function(b,_,d){d.d(_,{Z:function(){return rn}});var k=d(5671),j=d(3144),$=d(9340),et=d(2963),tt=d(1120),rt=d(2461),nt=d.n(rt),ot=d(3990),at=d.n(ot),it=d(6768),dt=d.n(it),ut=d(4331),ht=d.n(ut),ft=d(5610),lt=d.n(ft),ct=d(7483),pt=d.n(ct),st=d(6341),wt=d.n(st),yt=d(3875),vt=d.n(yt),St=d(6954),xt=d.n(St);d(9585);function bt(fn){var Sn="luna-".concat(fn,"-");function bn(hn){return nt()(ht()(hn).split(/\s+/),function(_n){return wt()(_n,Sn)?_n:_n.replace(/[\w-]+/,function(ln){return"".concat(Sn).concat(ln)})}).join(" ")}return function(hn){if(/<[^>]*>/g.test(hn))try{var _n=pt().parse(hn);return At(_n,function(ln){ln.attrs&&ln.attrs.class&&(ln.attrs.class=bn(ln.attrs.class))}),pt().stringify(_n)}catch{return bn(hn)}return bn(hn)}}function At(fn,Sn){for(var bn=0,hn=fn.length;bn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var bn,hn=(0,tt.Z)(fn);if(Sn){var _n=(0,tt.Z)(this).constructor;bn=Reflect.construct(hn,arguments,_n)}else bn=hn.apply(this,arguments);return(0,et.Z)(this,bn)}}var Rn=function(fn){(0,$.Z)(bn,fn);var Sn=yn(bn);function bn(hn,_n){var ln,Mn=_n.compName,Nn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Pn=Nn===void 0?"light":Nn;return(0,k.Z)(this,bn),(ln=Sn.call(this)).subComponents=[],ln.compName=Mn,ln.c=bt(Mn),ln.options={},ln.container=hn,ln.$container=Rt()(hn),ln.$container.addClass(["luna-".concat(Mn),ln.c("platform-".concat(_t()))]),ln.on("optionChange",function(Cn,Un,vn){var Zn=ln.c;Cn==="theme"&&(ln.$container.rmClass(Zn("theme-".concat(vn))).addClass(Zn("theme-".concat(Un))),Jt()(ln.subComponents,function(Ln){return Ln.setOption("theme",Un)}))}),ln.setOption("theme",Pn),ln}return(0,j.Z)(bn,[{key:"destroy",value:function(){this.destroySubComponents();var hn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(hn("platform-".concat(_t()))).rmClass(hn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(hn,_n){var ln=this,Mn=this.options,Nn={};typeof hn=="string"?Nn[hn]=_n:Nn=hn,Jt()(Nn,function(Pn,Cn){var Un=Mn[Cn];Mn[Cn]=Pn,ln.emit("optionChange",Cn,Pn,Un)})}},{key:"getOption",value:function(hn){return this.options[hn]}},{key:"addSubComponent",value:function(hn){hn.setOption("theme",this.options.theme),this.subComponents.push(hn)}},{key:"removeSubComponent",value:function(hn){En()(this.subComponents,function(_n){return _n===hn})}},{key:"destroySubComponents",value:function(){Jt()(this.subComponents,function(hn){return hn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(hn){var _n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};dn()(hn,_n),Gt()(this.options,hn)}},{key:"find",value:function(hn){return this.$container.find(this.c(hn))}}]),bn}(Mt());function Hn(fn){var Sn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var bn,hn=(0,tt.Z)(fn);if(Sn){var _n=(0,tt.Z)(this).constructor;bn=Reflect.construct(hn,arguments,_n)}else bn=hn.apply(this,arguments);return(0,et.Z)(this,bn)}}b=d.hmd(b);var rn=function(fn){(0,$.Z)(bn,fn);var Sn=Hn(bn);function bn(hn){var _n,ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,k.Z)(this,bn),(_n=Sn.call(this,hn,{compName:"box-model"})).initOptions(ln),_n.options.element&&_n.render(),_n.bindEvent(),_n}return(0,j.Z)(bn,[{key:"bindEvent",value:function(){var hn=this;this.on("optionChange",function(_n){_n==="element"&&hn.render()})}},{key:"render",value:function(){var hn=this.c,_n=this.getBoxModelData();this.$container.html(['
'),_n.position?'
'):"",_n.position?'
position
').concat(_n.position.top,'

').concat(_n.position.left,"
"):"",'
'),'
margin
').concat(_n.margin.top,'

').concat(_n.margin.left,"
"),'
'),'
border
').concat(_n.border.top,'

').concat(_n.border.left,"
"),'
'),'
padding
').concat(_n.padding.top,'

').concat(_n.padding.left,"
"),'
'),"".concat(_n.content.width," × ").concat(_n.content.height,""),"
",'
').concat(_n.padding.right,'

').concat(_n.padding.bottom,"
"),"
",'
').concat(_n.border.right,'

').concat(_n.border.bottom,"
"),"
",'
').concat(_n.margin.right,'

').concat(_n.margin.bottom,"
"),"
",_n.position?'
').concat(_n.position.right,'

').concat(_n.position.bottom,"
"):"",_n.position?"
":"","
"].join(""))}},{key:"getBoxModelData",value:function(){var hn=this.options.element,_n=window.getComputedStyle(hn);function ln(Nn){var Pn=["top","left","right","bottom"];return Nn!=="position"&&(Pn=nt()(Pn,function(Cn){return"".concat(Nn,"-").concat(Cn)})),Nn==="border"&&(Pn=nt()(Pn,function(Cn){return"".concat(Cn,"-width")})),{top:wn(_n[Pn[0]],Nn),left:wn(_n[Pn[1]],Nn),right:wn(_n[Pn[2]],Nn),bottom:wn(_n[Pn[3]],Nn)}}var Mn={margin:ln("margin"),border:ln("border"),padding:ln("padding"),content:{width:wn(_n.width),height:wn(_n.height)}};return _n.position!=="static"&&(Mn.position=ln("position")),Mn}}]),bn}(Rn);function wn(fn,Sn){if(at()(fn))return fn;if(!dt()(fn))return"‒";var bn,hn=(bn=fn,vt()(bn.replace("px","")));return isNaN(hn)?fn:Sn==="position"?hn:hn===0?"‒":hn}(function(fn,Sn){try{fn.exports=Sn,fn.exports.default=Sn}catch{}})(b,rn)},8816:function(b,_,d){d.d(_,{Z:function(){return ts}});var k=d(168),j=d(181);function $(Er,Ur){return function(Sr){if(Array.isArray(Sr))return Sr}(Er)||function(Sr,zt){var Zt=Sr==null?null:typeof Symbol<"u"&&Sr[Symbol.iterator]||Sr["@@iterator"];if(Zt!=null){var mn,Bn,br,fr,_r=[],Cr=!0,Rr=!1;try{if(br=(Zt=Zt.call(Sr)).next,zt===0){if(Object(Zt)!==Zt)return;Cr=!1}else for(;!(Cr=(mn=br.call(Zt)).done)&&(_r.push(mn.value),_r.length!==zt);Cr=!0);}catch(Yr){Rr=!0,Bn=Yr}finally{try{if(!Cr&&Zt.return!=null&&(fr=Zt.return(),Object(fr)!==fr))return}finally{if(Rr)throw Bn}}return _r}}(Er,Ur)||(0,j.Z)(Er,Ur)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var yn=$(46),Rn=new($(47)).Dispatcher,Hn=new(function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){var Bt;nt(this,Ot);for(var It=arguments.length,an=new Array(It),nn=0;nnIt&&(Yt.style.cursor="pointer",this.state.collapsed&&(nn=st.a.createElement("span",null,nn.substring(0,It),st.a.createElement("span",Rt(an,"ellipsis")," ...")))),st.a.createElement("div",Rt(an,"string"),st.a.createElement(Wt,Object.assign({type_name:"string"},Bt)),st.a.createElement("span",Object.assign({className:"string-value"},Yt,{onClick:this.toggleCollapsed}),'"',nn,'"'))}}]),Ot}(st.a.PureComponent),ln=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){return st.a.createElement("div",Rt(this.props.theme,"undefined"),"undefined")}}]),Ot}(st.a.PureComponent);function Mn(){return(Mn=Object.assign||function(Et){for(var Lt=1;Lt=0||($n[hr]=Jn[hr]);return $n}(Et,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Wn,Gn=gn.value!==void 0,Kn=Object(pt.useRef)(null),er=Un(Kn,Lt),zn=Object(pt.useRef)(0),Qn=Object(pt.useRef)(),ir=function(){var Jn=Kn.current,vr=Ot&&Qn.current?Qn.current:function(lr){var rr=window.getComputedStyle(lr);if(rr===null)return null;var nr,ar=(nr=rr,An.reduce(function(Mr,jr){return Mr[jr]=nr[jr],Mr},{})),Ar=ar.boxSizing;return Ar===""?null:(Ht&&Ar==="border-box"&&(ar.width=parseFloat(ar.width)+parseFloat(ar.borderRightWidth)+parseFloat(ar.borderLeftWidth)+parseFloat(ar.paddingRight)+parseFloat(ar.paddingLeft)+"px"),{sizingStyle:ar,paddingSize:parseFloat(ar.paddingBottom)+parseFloat(ar.paddingTop),borderSize:parseFloat(ar.borderBottomWidth)+parseFloat(ar.borderTopWidth)})}(Jn);if(vr){Qn.current=vr;var hr=function(lr,rr,nr,ar){nr===void 0&&(nr=1),ar===void 0&&(ar=1/0),Ln||((Ln=document.createElement("textarea")).setAttribute("tab-index","-1"),Ln.setAttribute("aria-hidden","true"),Zn(Ln)),Ln.parentNode===null&&document.body.appendChild(Ln);var Ar=lr.paddingSize,Mr=lr.borderSize,jr=lr.sizingStyle,Or=jr.boxSizing;Object.keys(jr).forEach(function(Nr){var Br=Nr;Ln.style[Br]=jr[Br]}),Zn(Ln),Ln.value=rr;var sn=function(Nr,Br){var zr=Nr.scrollHeight;return Br.sizingStyle.boxSizing==="border-box"?zr+Br.borderSize:zr-Br.paddingSize}(Ln,lr);Ln.value="x";var Lr=Ln.scrollHeight-Ar,Dr=Lr*nr;Or==="border-box"&&(Dr=Dr+Ar+Mr),sn=Math.max(Dr,sn);var Fr=Lr*ar;return Or==="border-box"&&(Fr=Fr+Ar+Mr),[sn=Math.min(Fr,sn),Lr]}(vr,Jn.value||Jn.placeholder||"x",It,Bt),On=hr[0],$n=hr[1];zn.current!==On&&(zn.current=On,Jn.style.setProperty("height",On+"px","important"),Ut(On,{rowHeight:$n}))}};return Object(pt.useLayoutEffect)(ir),Wn=Pn(ir),Object(pt.useLayoutEffect)(function(){var Jn=function(vr){Wn.current(vr)};return window.addEventListener("resize",Jn),function(){window.removeEventListener("resize",Jn)}},[]),Object(pt.createElement)("textarea",Mn({},gn,{onChange:function(Jn){Gn||ir(),nn(Jn)},ref:er}))},pn=Object(pt.forwardRef)(Xt);function Tn(Et){Et=Et.trim();try{if((Et=JSON.stringify(JSON.parse(Et)))[0]==="[")return cr("array",JSON.parse(Et));if(Et[0]==="{")return cr("object",JSON.parse(Et));if(Et.match(/\-?\d+\.\d+/)&&Et.match(/\-?\d+\.\d+/)[0]===Et)return cr("float",parseFloat(Et));if(Et.match(/\-?\d+e-\d+/)&&Et.match(/\-?\d+e-\d+/)[0]===Et)return cr("float",Number(Et));if(Et.match(/\-?\d+/)&&Et.match(/\-?\d+/)[0]===Et)return cr("integer",parseInt(Et));if(Et.match(/\-?\d+e\+\d+/)&&Et.match(/\-?\d+e\+\d+/)[0]===Et)return cr("integer",Number(Et))}catch{}switch(Et=Et.toLowerCase()){case"undefined":return cr("undefined",void 0);case"nan":return cr("nan",NaN);case"null":return cr("null",null);case"true":return cr("boolean",!0);case"false":return cr("boolean",!1);default:if(Et=Date.parse(Et))return cr("date",new Date(Et))}return cr(!1,null)}function cr(Et,Lt){return{type:Et,value:Lt}}var yr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",Object.assign({},ur(It),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),Ot}(st.a.PureComponent),tr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",Object.assign({},ur(It),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),Ot}(st.a.PureComponent),Xn=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]),nn=ur(It).style;return st.a.createElement("span",an,st.a.createElement("svg",{fill:nn.color,width:nn.height,height:nn.width,style:nn,viewBox:"0 0 1792 1792"},st.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),Ot}(st.a.PureComponent),gr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]),nn=ur(It).style;return st.a.createElement("span",an,st.a.createElement("svg",{fill:nn.color,width:nn.height,height:nn.width,style:nn,viewBox:"0 0 1792 1792"},st.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),Ot}(st.a.PureComponent),In=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",{style:rt(rt({},ur(It).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},st.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),Ot}(st.a.PureComponent),dr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",{style:rt(rt({},ur(It).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},st.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),Ot}(st.a.PureComponent),Vn=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",Object.assign({},ur(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),Ot}(st.a.PureComponent),pr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",Object.assign({},ur(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Ot}(st.a.PureComponent),qn=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",Object.assign({},ur(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Ot}(st.a.PureComponent),Fn=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",Object.assign({},ur(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),Ot}(st.a.PureComponent),sr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",Object.assign({},ur(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),Ot}(st.a.PureComponent),or=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return st.a.createElement("span",an,st.a.createElement("svg",Object.assign({},ur(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),st.a.createElement("g",null,st.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Ot}(st.a.PureComponent);function ur(Et){return Et||(Et={}),{style:rt(rt({verticalAlign:"middle"},Et),{},{color:Et.color?Et.color:"#000000",height:"1em",width:"1em"})}}var xr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;return nt(this,Ot),(It=Lt.call(this,Bt)).copiedTimer=null,It.handleCopy=function(){var an=document.createElement("textarea"),nn=It.props,Yt=nn.clickCallback,Ut=nn.src,gn=nn.namespace;an.innerHTML=JSON.stringify(It.clipboardValue(Ut),null," "),document.body.appendChild(an),an.select(),document.execCommand("copy"),document.body.removeChild(an),It.copiedTimer=setTimeout(function(){It.setState({copied:!1})},5500),It.setState({copied:!0},function(){typeof Yt=="function"&&Yt({src:Ut,namespace:gn,name:gn[gn.length-1]})})},It.getClippyIcon=function(){var an=It.props.theme;return It.state.copied?st.a.createElement("span",null,st.a.createElement(Vn,Object.assign({className:"copy-icon"},Rt(an,"copy-icon"))),st.a.createElement("span",Rt(an,"copy-icon-copied"),"✔")):st.a.createElement(Vn,Object.assign({className:"copy-icon"},Rt(an,"copy-icon")))},It.clipboardValue=function(an){switch(bt(an)){case"function":case"regexp":return an.toString();default:return an}},It.state={copied:!1},It}return at(Ot,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var Bt=this.props,It=(Bt.src,Bt.theme),an=Bt.hidden,nn=Bt.rowHovered,Yt=Rt(It,"copy-to-clipboard").style,Ut="inline";return an&&(Ut="none"),st.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:nn?"inline-block":"none"}},st.a.createElement("span",{style:rt(rt({},Yt),{},{display:Ut}),onClick:this.handleCopy},this.getClippyIcon()))}}]),Ot}(st.a.PureComponent),kr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;return nt(this,Ot),(It=Lt.call(this,Bt)).getEditIcon=function(){var an=It.props,nn=an.variable,Yt=an.theme;return st.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:It.state.hovered?"inline-block":"none"}},st.a.createElement(sr,Object.assign({className:"click-to-edit-icon"},Rt(Yt,"editVarIcon"),{onClick:function(){It.prepopInput(nn)}})))},It.prepopInput=function(an){if(It.props.onEdit!==!1){var nn=function(Ut){var gn;switch(bt(Ut)){case"undefined":gn="undefined";break;case"nan":gn="NaN";break;case"string":gn=Ut;break;case"date":case"function":case"regexp":gn=Ut.toString();break;default:try{gn=JSON.stringify(Ut,null," ")}catch{gn=""}}return gn}(an.value),Yt=Tn(nn);It.setState({editMode:!0,editValue:nn,parsedInput:{type:Yt.type,value:Yt.value}})}},It.getRemoveIcon=function(){var an=It.props,nn=an.variable,Yt=an.namespace,Ut=an.theme,gn=an.rjvId;return st.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:It.state.hovered?"inline-block":"none"}},st.a.createElement(pr,Object.assign({className:"click-to-remove-icon"},Rt(Ut,"removeVarIcon"),{onClick:function(){Rn.dispatch({name:"VARIABLE_REMOVED",rjvId:gn,data:{name:nn.name,namespace:Yt,existing_value:nn.value,variable_removed:!0}})}})))},It.getValue=function(an,nn){var Yt=!nn&&an.type,Ut=ft(It).props;switch(Yt){case!1:return It.getEditInput();case"string":return st.a.createElement(_n,Object.assign({value:an.value},Ut));case"integer":return st.a.createElement(bn,Object.assign({value:an.value},Ut));case"float":return st.a.createElement(Gt,Object.assign({value:an.value},Ut));case"boolean":return st.a.createElement(Jt,Object.assign({value:an.value},Ut));case"function":return st.a.createElement(wn,Object.assign({value:an.value},Ut));case"null":return st.a.createElement(Sn,Ut);case"nan":return st.a.createElement(fn,Ut);case"undefined":return st.a.createElement(ln,Ut);case"date":return st.a.createElement(Qt,Object.assign({value:an.value},Ut));case"regexp":return st.a.createElement(hn,Object.assign({value:an.value},Ut));default:return st.a.createElement("div",{className:"object-value"},JSON.stringify(an.value))}},It.getEditInput=function(){var an=It.props.theme,nn=It.state.editValue;return st.a.createElement("div",null,st.a.createElement(pn,Object.assign({type:"text",inputRef:function(Yt){return Yt&&Yt.focus()},value:nn,className:"variable-editor",onChange:function(Yt){var Ut=Yt.target.value,gn=Tn(Ut);It.setState({editValue:Ut,parsedInput:{type:gn.type,value:gn.value}})},onKeyDown:function(Yt){switch(Yt.key){case"Escape":It.setState({editMode:!1,editValue:""});break;case"Enter":(Yt.ctrlKey||Yt.metaKey)&&It.submitEdit(!0)}Yt.stopPropagation()},placeholder:"update this value",minRows:2},Rt(an,"edit-input"))),st.a.createElement("div",Rt(an,"edit-icon-container"),st.a.createElement(pr,Object.assign({className:"edit-cancel"},Rt(an,"cancel-icon"),{onClick:function(){It.setState({editMode:!1,editValue:""})}})),st.a.createElement(or,Object.assign({className:"edit-check string-value"},Rt(an,"check-icon"),{onClick:function(){It.submitEdit()}})),st.a.createElement("div",null,It.showDetected())))},It.submitEdit=function(an){var nn=It.props,Yt=nn.variable,Ut=nn.namespace,gn=nn.rjvId,Wn=It.state,Gn=Wn.editValue,Kn=Wn.parsedInput,er=Gn;an&&Kn.type&&(er=Kn.value),It.setState({editMode:!1}),Rn.dispatch({name:"VARIABLE_UPDATED",rjvId:gn,data:{name:Yt.name,namespace:Ut,existing_value:Yt.value,new_value:er,variable_removed:!1}})},It.showDetected=function(){var an=It.props,nn=an.theme,Yt=(an.variable,an.namespace,an.rjvId,It.state.parsedInput),Ut=(Yt.type,Yt.value,It.getDetectedInput());if(Ut)return st.a.createElement("div",null,st.a.createElement("div",Rt(nn,"detected-row"),Ut,st.a.createElement(or,{className:"edit-check detected",style:rt({verticalAlign:"top",paddingLeft:"3px"},Rt(nn,"check-icon").style),onClick:function(){It.submitEdit(!0)}})))},It.getDetectedInput=function(){var an=It.state.parsedInput,nn=an.type,Yt=an.value,Ut=ft(It).props,gn=Ut.theme;if(nn!==!1)switch(nn.toLowerCase()){case"object":return st.a.createElement("span",null,st.a.createElement("span",{style:rt(rt({},Rt(gn,"brace").style),{},{cursor:"default"})},"{"),st.a.createElement("span",{style:rt(rt({},Rt(gn,"ellipsis").style),{},{cursor:"default"})},"..."),st.a.createElement("span",{style:rt(rt({},Rt(gn,"brace").style),{},{cursor:"default"})},"}"));case"array":return st.a.createElement("span",null,st.a.createElement("span",{style:rt(rt({},Rt(gn,"brace").style),{},{cursor:"default"})},"["),st.a.createElement("span",{style:rt(rt({},Rt(gn,"ellipsis").style),{},{cursor:"default"})},"..."),st.a.createElement("span",{style:rt(rt({},Rt(gn,"brace").style),{},{cursor:"default"})},"]"));case"string":return st.a.createElement(_n,Object.assign({value:Yt},Ut));case"integer":return st.a.createElement(bn,Object.assign({value:Yt},Ut));case"float":return st.a.createElement(Gt,Object.assign({value:Yt},Ut));case"boolean":return st.a.createElement(Jt,Object.assign({value:Yt},Ut));case"function":return st.a.createElement(wn,Object.assign({value:Yt},Ut));case"null":return st.a.createElement(Sn,Ut);case"nan":return st.a.createElement(fn,Ut);case"undefined":return st.a.createElement(ln,Ut);case"date":return st.a.createElement(Qt,Object.assign({value:new Date(Yt)},Ut))}},It.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},It}return at(Ot,[{key:"render",value:function(){var Bt=this,It=this.props,an=It.variable,nn=It.singleIndent,Yt=It.type,Ut=It.theme,gn=It.namespace,Wn=It.indentWidth,Gn=It.enableClipboard,Kn=It.onEdit,er=It.onDelete,zn=It.onSelect,Qn=It.displayArrayKey,ir=It.quotesOnKeys,Jn=this.state.editMode;return st.a.createElement("div",Object.assign({},Rt(Ut,"objectKeyVal",{paddingLeft:Wn*nn}),{onMouseEnter:function(){return Bt.setState(rt(rt({},Bt.state),{},{hovered:!0}))},onMouseLeave:function(){return Bt.setState(rt(rt({},Bt.state),{},{hovered:!1}))},className:"variable-row",key:an.name}),Yt=="array"?Qn?st.a.createElement("span",Object.assign({},Rt(Ut,"array-key"),{key:an.name+"_"+gn}),an.name,st.a.createElement("div",Rt(Ut,"colon"),":")):null:st.a.createElement("span",null,st.a.createElement("span",Object.assign({},Rt(Ut,"object-name"),{className:"object-key",key:an.name+"_"+gn}),!!ir&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"'),st.a.createElement("span",{style:{display:"inline-block"}},an.name),!!ir&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"')),st.a.createElement("span",Rt(Ut,"colon"),":")),st.a.createElement("div",Object.assign({className:"variable-value",onClick:zn===!1&&Kn===!1?null:function(vr){var hr=En(gn);(vr.ctrlKey||vr.metaKey)&&Kn!==!1?Bt.prepopInput(an):zn!==!1&&(hr.shift(),zn(rt(rt({},an),{},{namespace:hr})))}},Rt(Ut,"variableValue",{cursor:zn===!1?"default":"pointer"})),this.getValue(an,Jn)),Gn?st.a.createElement(xr,{rowHovered:this.state.hovered,hidden:Jn,src:an.value,clickCallback:Gn,theme:Ut,namespace:[].concat(En(gn),[an.name])}):null,Kn!==!1&&Jn==0?this.getEditIcon():null,er!==!1&&Jn==0?this.getRemoveIcon():null)}}]),Ot}(st.a.PureComponent),Tr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){var Bt;nt(this,Ot);for(var It=arguments.length,an=new Array(It),nn=0;nn0?Gn:null,namespace:Wn.splice(0,Wn.length-1),existing_value:Kn,variable_removed:!1,key_name:null};bt(Kn)==="object"?Rn.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:er,data:Qn}):Rn.dispatch({name:"VARIABLE_ADDED",rjvId:er,data:rt(rt({},Qn),{},{new_value:[].concat(En(Kn),[null])})})}})))},Bt.getRemoveObject=function(Yt){var Ut=Bt.props,gn=Ut.theme,Wn=(Ut.hover,Ut.namespace),Gn=Ut.name,Kn=Ut.src,er=Ut.rjvId;if(Wn.length!==1)return st.a.createElement("span",{className:"click-to-remove",style:{display:Yt?"inline-block":"none"}},st.a.createElement(pr,Object.assign({className:"click-to-remove-icon"},Rt(gn,"removeVarIcon"),{onClick:function(){Rn.dispatch({name:"VARIABLE_REMOVED",rjvId:er,data:{name:Gn,namespace:Wn.splice(0,Wn.length-1),existing_value:Kn,variable_removed:!0}})}})))},Bt.render=function(){var Yt=Bt.props,Ut=Yt.theme,gn=Yt.onDelete,Wn=Yt.onAdd,Gn=Yt.enableClipboard,Kn=Yt.src,er=Yt.namespace,zn=Yt.rowHovered;return st.a.createElement("div",Object.assign({},Rt(Ut,"object-meta-data"),{className:"object-meta-data",onClick:function(Qn){Qn.stopPropagation()}}),Bt.getObjectSize(),Gn?st.a.createElement(xr,{rowHovered:zn,clickCallback:Gn,src:Kn,theme:Ut,namespace:er}):null,Wn!==!1?Bt.getAddAttribute(zn):null,gn!==!1?Bt.getRemoveObject(zn):null)},Bt}return Ot}(st.a.PureComponent);function Pr(Et){var Lt=Et.parent_type,Ot=Et.namespace,Bt=Et.quotesOnKeys,It=Et.theme,an=Et.jsvRoot,nn=Et.name,Yt=Et.displayArrayKey,Ut=Et.name?Et.name:"";return!an||nn!==!1&&nn!==null?Lt=="array"?Yt?st.a.createElement("span",Object.assign({},Rt(It,"array-key"),{key:Ot}),st.a.createElement("span",{className:"array-key"},Ut),st.a.createElement("span",Rt(It,"colon"),":")):st.a.createElement("span",null):st.a.createElement("span",Object.assign({},Rt(It,"object-name"),{key:Ot}),st.a.createElement("span",{className:"object-key"},Bt&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"'),st.a.createElement("span",null,Ut),Bt&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"')),st.a.createElement("span",Rt(It,"colon"),":")):st.a.createElement("span",null)}function Ir(Et){var Lt=Et.theme;switch(Et.iconStyle){case"triangle":return st.a.createElement(dr,Object.assign({},Rt(Lt,"expanded-icon"),{className:"expanded-icon"}));case"square":return st.a.createElement(Xn,Object.assign({},Rt(Lt,"expanded-icon"),{className:"expanded-icon"}));default:return st.a.createElement(yr,Object.assign({},Rt(Lt,"expanded-icon"),{className:"expanded-icon"}))}}function Wr(Et){var Lt=Et.theme;switch(Et.iconStyle){case"triangle":return st.a.createElement(In,Object.assign({},Rt(Lt,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return st.a.createElement(gr,Object.assign({},Rt(Lt,"collapsed-icon"),{className:"collapsed-icon"}));default:return st.a.createElement(tr,Object.assign({},Rt(Lt,"collapsed-icon"),{className:"collapsed-icon"}))}}var Qr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;return nt(this,Ot),(It=Lt.call(this,Bt)).toggleCollapsed=function(an){var nn=[];for(var Yt in It.state.expanded)nn.push(It.state.expanded[Yt]);nn[an]=!nn[an],It.setState({expanded:nn})},It.state={expanded:[]},It}return at(Ot,[{key:"getExpandedIcon",value:function(Bt){var It=this.props,an=It.theme,nn=It.iconStyle;return this.state.expanded[Bt]?st.a.createElement(Ir,{theme:an,iconStyle:nn}):st.a.createElement(Wr,{theme:an,iconStyle:nn})}},{key:"render",value:function(){var Bt=this,It=this.props,an=It.src,nn=It.groupArraysAfterLength,Yt=(It.depth,It.name),Ut=It.theme,gn=It.jsvRoot,Wn=It.namespace,Gn=(It.parent_type,xt(It,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),Kn=0,er=5*this.props.indentWidth;gn||(Kn=5*this.props.indentWidth);var zn=nn,Qn=Math.ceil(an.length/zn);return st.a.createElement("div",Object.assign({className:"object-key-val"},Rt(Ut,gn?"jsv-root":"objectKeyVal",{paddingLeft:Kn})),st.a.createElement(Pr,this.props),st.a.createElement("span",null,st.a.createElement(Tr,Object.assign({size:an.length},this.props))),En(Array(Qn)).map(function(ir,Jn){return st.a.createElement("div",Object.assign({key:Jn,className:"object-key-val array-group"},Rt(Ut,"objectKeyVal",{marginLeft:6,paddingLeft:er})),st.a.createElement("span",Rt(Ut,"brace-row"),st.a.createElement("div",Object.assign({className:"icon-container"},Rt(Ut,"icon-container"),{onClick:function(vr){Bt.toggleCollapsed(Jn)}}),Bt.getExpandedIcon(Jn)),Bt.state.expanded[Jn]?st.a.createElement(kt,Object.assign({key:Yt+Jn,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:zn,index_offset:Jn*zn,src:an.slice(Jn*zn,Jn*zn+zn),namespace:Wn,type:"array",parent_type:"array_group",theme:Ut},Gn)):st.a.createElement("span",Object.assign({},Rt(Ut,"brace"),{onClick:function(vr){Bt.toggleCollapsed(Jn)},className:"array-group-brace"}),"[",st.a.createElement("div",Object.assign({},Rt(Ut,"array-group-meta-data"),{className:"array-group-meta-data"}),st.a.createElement("span",Object.assign({className:"object-size"},Rt(Ut,"object-size")),Jn*zn," - ",Jn*zn+zn>an.length?an.length:Jn*zn+zn)),"]")))}))}}]),Ot}(st.a.PureComponent),Zr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;nt(this,Ot),(It=Lt.call(this,Bt)).toggleCollapsed=function(){It.setState({expanded:!It.state.expanded},function(){rn.set(It.props.rjvId,It.props.namespace,"expanded",It.state.expanded)})},It.getObjectContent=function(nn,Yt,Ut){return st.a.createElement("div",{className:"pushed-content object-container"},st.a.createElement("div",Object.assign({className:"object-content"},Rt(It.props.theme,"pushed-content")),It.renderObjectContents(Yt,Ut)))},It.getEllipsis=function(){return It.state.size===0?null:st.a.createElement("div",Object.assign({},Rt(It.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:It.toggleCollapsed}),"...")},It.getObjectMetaData=function(nn){var Yt=It.props,Ut=(Yt.rjvId,Yt.theme,It.state),gn=Ut.size,Wn=Ut.hovered;return st.a.createElement(Tr,Object.assign({rowHovered:Wn,size:gn},It.props))},It.renderObjectContents=function(nn,Yt){var Ut,gn=It.props,Wn=gn.depth,Gn=gn.parent_type,Kn=gn.index_offset,er=gn.groupArraysAfterLength,zn=gn.namespace,Qn=It.state.object_type,ir=[],Jn=Object.keys(nn||{});return It.props.sortKeys&&Qn!=="array"&&(Jn=Jn.sort()),Jn.forEach(function(vr){if(Ut=new mo(vr,nn[vr]),Gn==="array_group"&&Kn&&(Ut.name=parseInt(Ut.name)+Kn),nn.hasOwnProperty(vr))if(Ut.type==="object")ir.push(st.a.createElement(kt,Object.assign({key:Ut.name,depth:Wn+1,name:Ut.name,src:Ut.value,namespace:zn.concat(Ut.name),parent_type:Qn},Yt)));else if(Ut.type==="array"){var hr=kt;er&&Ut.value.length>er&&(hr=Qr),ir.push(st.a.createElement(hr,Object.assign({key:Ut.name,depth:Wn+1,name:Ut.name,src:Ut.value,namespace:zn.concat(Ut.name),type:"array",parent_type:Qn},Yt)))}else ir.push(st.a.createElement(kr,Object.assign({key:Ut.name+"_"+zn,variable:Ut,singleIndent:5,namespace:zn,type:It.props.type},Yt)))}),ir};var an=Ot.getState(Bt);return It.state=rt(rt({},an),{},{prevProps:{}}),It}return at(Ot,[{key:"getBraceStart",value:function(Bt,It){var an=this,nn=this.props,Yt=nn.src,Ut=nn.theme,gn=nn.iconStyle;if(nn.parent_type==="array_group")return st.a.createElement("span",null,st.a.createElement("span",Rt(Ut,"brace"),Bt==="array"?"[":"{"),It?this.getObjectMetaData(Yt):null);var Wn=It?Ir:Wr;return st.a.createElement("span",null,st.a.createElement("span",Object.assign({onClick:function(Gn){an.toggleCollapsed()}},Rt(Ut,"brace-row")),st.a.createElement("div",Object.assign({className:"icon-container"},Rt(Ut,"icon-container")),st.a.createElement(Wn,{theme:Ut,iconStyle:gn})),st.a.createElement(Pr,this.props),st.a.createElement("span",Rt(Ut,"brace"),Bt==="array"?"[":"{")),It?this.getObjectMetaData(Yt):null)}},{key:"render",value:function(){var Bt=this,It=this.props,an=It.depth,nn=It.src,Yt=(It.namespace,It.name,It.type,It.parent_type),Ut=It.theme,gn=It.jsvRoot,Wn=It.iconStyle,Gn=xt(It,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),Kn=this.state,er=Kn.object_type,zn=Kn.expanded,Qn={};return gn||Yt==="array_group"?Yt==="array_group"&&(Qn.borderLeft=0,Qn.display="inline"):Qn.paddingLeft=5*this.props.indentWidth,st.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return Bt.setState(rt(rt({},Bt.state),{},{hovered:!0}))},onMouseLeave:function(){return Bt.setState(rt(rt({},Bt.state),{},{hovered:!1}))}},Rt(Ut,gn?"jsv-root":"objectKeyVal",Qn)),this.getBraceStart(er,zn),zn?this.getObjectContent(an,nn,rt({theme:Ut,iconStyle:Wn},Gn)):this.getEllipsis(),st.a.createElement("span",{className:"brace-row"},st.a.createElement("span",{style:rt(rt({},Rt(Ut,"brace").style),{},{paddingLeft:zn?"3px":"0px"})},er==="array"?"]":"}"),zn?null:this.getObjectMetaData(nn)))}}],[{key:"getDerivedStateFromProps",value:function(Bt,It){var an=It.prevProps;return Bt.src!==an.src||Bt.collapsed!==an.collapsed||Bt.name!==an.name||Bt.namespace!==an.namespace||Bt.rjvId!==an.rjvId?rt(rt({},Ot.getState(Bt)),{},{prevProps:Bt}):null}}]),Ot}(st.a.PureComponent);Zr.getState=function(Et){var Lt=Object.keys(Et.src).length,Ot=(Et.collapsed===!1||Et.collapsed!==!0&&Et.collapsed>Et.depth)&&(!Et.shouldCollapse||Et.shouldCollapse({name:Et.name,src:Et.src,type:bt(Et.src),namespace:Et.namespace})===!1)&&Lt!==0;return{expanded:rn.get(Et.rjvId,Et.namespace,"expanded",Ot),object_type:Et.type==="array"?"array":"object",parent_type:Et.type==="array"?"array":"object",size:Lt,hovered:!1}};var mo=function Et(Lt,Ot){nt(this,Et),this.name=Lt,this.value=Ot,this.type=bt(Ot)};St(Zr);var kt=Zr,$t=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){var Bt;nt(this,Ot);for(var It=arguments.length,an=new Array(It),nn=0;nnYt.groupArraysAfterLength&&(gn=Qr),st.a.createElement("div",{className:"pretty-json-container object-container"},st.a.createElement("div",{className:"object-content"},st.a.createElement(gn,Object.assign({namespace:Ut,depth:0,jsvRoot:!0},Yt))))},Bt}return Ot}(st.a.PureComponent),Pt=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;return nt(this,Ot),(It=Lt.call(this,Bt)).closeModal=function(){Rn.dispatch({rjvId:It.props.rjvId,name:"RESET"})},It.submit=function(){It.props.submit(It.state.input)},It.state={input:Bt.input?Bt.input:""},It}return at(Ot,[{key:"render",value:function(){var Bt=this,It=this.props,an=It.theme,nn=It.rjvId,Yt=It.isValid,Ut=this.state.input,gn=Yt(Ut);return st.a.createElement("div",Object.assign({className:"key-modal-request"},Rt(an,"key-modal-request"),{onClick:this.closeModal}),st.a.createElement("div",Object.assign({},Rt(an,"key-modal"),{onClick:function(Wn){Wn.stopPropagation()}}),st.a.createElement("div",Rt(an,"key-modal-label"),"Key Name:"),st.a.createElement("div",{style:{position:"relative"}},st.a.createElement("input",Object.assign({},Rt(an,"key-modal-input"),{className:"key-modal-input",ref:function(Wn){return Wn&&Wn.focus()},spellCheck:!1,value:Ut,placeholder:"...",onChange:function(Wn){Bt.setState({input:Wn.target.value})},onKeyPress:function(Wn){gn&&Wn.key==="Enter"?Bt.submit():Wn.key==="Escape"&&Bt.closeModal()}})),gn?st.a.createElement(or,Object.assign({},Rt(an,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Wn){return Bt.submit()}})):null),st.a.createElement("span",Rt(an,"key-modal-cancel"),st.a.createElement(Fn,Object.assign({},Rt(an,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Rn.dispatch({rjvId:nn,name:"RESET"})}})))))}}]),Ot}(st.a.PureComponent),gt=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){var Bt;nt(this,Ot);for(var It=arguments.length,an=new Array(It),nn=0;nn_($.updated_src),[]);return jsxs("div",{className:"send-tx-form",children:[jsx$1("h3",{children:"Configure and send transaction"}),jsx$1(ReactJson,{src:defaultTx,theme:"ocean",onEdit:j,onAdd:j,onDelete:j}),d?jsx$1("button",{onClick:()=>k.sendTransaction(b),children:"Send transaction"}):jsx$1("button",{onClick:()=>k.openModal(),children:"Connect wallet to send the transaction"})]})}function App(){return jsx$1(TonConnectUIProvider$1,{manifestUrl:"https://ton-connect.github.io/demo-dapp-with-wallet/tonconnect-manifest.json",uiPreferences:{theme:THEME.DARK},walletsListConfiguration:{includeWallets:[{appName:"tonwallet",name:"TON Wallet",imageUrl:"https://wallet.ton.org/assets/ui/qr-logo.png",aboutUrl:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",universalLink:"https://wallet.ton.org/ton-connect",jsBridgeKey:"tonwallet",bridgeUrl:"https://bridge.tonapi.io/bridge",platforms:["chrome","android"]},{appName:"nicegramWallet",name:"Nicegram Wallet",imageUrl:"https://static.nicegram.app/icon.png",aboutUrl:"https://nicegram.app",universalLink:"https://nicegram.app/tc",deepLink:"nicegram-tc://",jsBridgeKey:"nicegramWallet",bridgeUrl:"https://bridge.tonapi.io/bridge",platforms:["ios","android"]},{appName:"tokenpocket",name:"TokenPocket",imageUrl:"https://hk.tpstatic.net/logo/tokenpocket.png",aboutUrl:"https://tokenpocket.pro",jsBridgeKey:"tokenpocket",platforms:["ios","android"]},{appName:"dewallet",name:"DeWallet",imageUrl:"https://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png",aboutUrl:"https://delabwallet.com",universalLink:"https://t.me/dewallet?attach=wallet",bridgeUrl:"https://bridge.dewallet.pro/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"cdcTonWallet",name:"Crypto.com DeFi Wallet",imageUrl:"https://apro-ncw-api-file.crypto.com/wallet/logo",aboutUrl:"https://crypto.com/defi-wallet",universalLink:"https://wallet.crypto.com/deeplink/ton-connect",deepLink:"dfw://",jsBridgeKey:"cdcTonWallet",bridgeUrl:"https://wallet.crypto.com/sse/tonbridge",platforms:["ios","android","chrome"]},{appName:"tobi",name:"Tobi",imageUrl:"https://app.tobiwallet.app/icons/logo.png",aboutUrl:"https://tobi.fun",universalLink:"https://t.me/TobiCopilotBot?attach=wallet",bridgeUrl:"https://ton-bridge.tobiwallet.app/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"trustwalletTon",name:"Trust",imageUrl:"https://assets-cdn.trustwallet.com/dapps/trust.logo.png",aboutUrl:"https://trustwallet.com/about-us",bridgeUrl:"https://tonconnect.trustwallet.com/bridge",jsBridgeKey:"trustwalletTon",platforms:["chrome","ios","android"]},{appName:"BitgetWeb3",name:"BitgetWeb3",imageUrl:"https://img.bitgetimg.com/image/third/1723701408284.png",aboutUrl:"https://www.bitget.com",universalLink:"https://t.me/BitgetOfficialBot?attach=wallet",bridgeUrl:"https://ton-connect-bridge.bgwapi.io/bridge",platforms:["ios","android","windows","macos","linux"]},{appName:"bitgetWalletLite",name:"Bitget Wallet Lite",imageUrl:"https://raw.githubusercontent.com/bitgetwallet/download/main/logo/png/bitget_wallet_lite_logo.png",aboutUrl:"https://web3.bitget.com",universalLink:"https://t.me/BitgetWallet_TGBot?attach=wallet",bridgeUrl:"https://ton-connect-bridge.bgwapi.io/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"onekey",name:"OneKey",imageUrl:"https://common.onekey-asset.com/logo/onekey-x288.png",aboutUrl:"https://onekey.so",jsBridgeKey:"onekeyTonWallet",platforms:["chrome"]}]},actionsConfiguration:{twaReturnUrl:"https://t.me/tc_twa_demo_bot/start"},children:jsxs("div",{className:"app",children:[jsx$1(Header,{}),jsx$1(TxForm,{}),jsx$1(Footer,{})]})})}const index="";var eruda$1={exports:{}};/*! eruda v2.11.3 https://eruda.liriliri.io/ */(function(module,exports){(function(b,_){module.exports=_()})(self,function(){return function(){var __webpack_modules__={422:function(b,_,d){d.d(_,{Z:function(){return rn}});var k=d(5671),j=d(3144),$=d(9340),et=d(2963),tt=d(1120),rt=d(2461),nt=d.n(rt),ot=d(3990),at=d.n(ot),it=d(6768),dt=d.n(it),ut=d(4331),ht=d.n(ut),ft=d(5610),lt=d.n(ft),ct=d(7483),pt=d.n(ct),st=d(6341),wt=d.n(st),yt=d(3875),vt=d.n(yt),St=d(6954),xt=d.n(St);d(9585);function bt(fn){var Sn="luna-".concat(fn,"-");function bn(hn){return nt()(ht()(hn).split(/\s+/),function(_n){return wt()(_n,Sn)?_n:_n.replace(/[\w-]+/,function(ln){return"".concat(Sn).concat(ln)})}).join(" ")}return function(hn){if(/<[^>]*>/g.test(hn))try{var _n=pt().parse(hn);return At(_n,function(ln){ln.attrs&&ln.attrs.class&&(ln.attrs.class=bn(ln.attrs.class))}),pt().stringify(_n)}catch{return bn(hn)}return bn(hn)}}function At(fn,Sn){for(var bn=0,hn=fn.length;bn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var bn,hn=(0,tt.Z)(fn);if(Sn){var _n=(0,tt.Z)(this).constructor;bn=Reflect.construct(hn,arguments,_n)}else bn=hn.apply(this,arguments);return(0,et.Z)(this,bn)}}var Rn=function(fn){(0,$.Z)(bn,fn);var Sn=yn(bn);function bn(hn,_n){var ln,Mn=_n.compName,Nn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Pn=Nn===void 0?"light":Nn;return(0,k.Z)(this,bn),(ln=Sn.call(this)).subComponents=[],ln.compName=Mn,ln.c=bt(Mn),ln.options={},ln.container=hn,ln.$container=Rt()(hn),ln.$container.addClass(["luna-".concat(Mn),ln.c("platform-".concat(_t()))]),ln.on("optionChange",function(Cn,Un,vn){var Zn=ln.c;Cn==="theme"&&(ln.$container.rmClass(Zn("theme-".concat(vn))).addClass(Zn("theme-".concat(Un))),Jt()(ln.subComponents,function(Ln){return Ln.setOption("theme",Un)}))}),ln.setOption("theme",Pn),ln}return(0,j.Z)(bn,[{key:"destroy",value:function(){this.destroySubComponents();var hn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(hn("platform-".concat(_t()))).rmClass(hn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(hn,_n){var ln=this,Mn=this.options,Nn={};typeof hn=="string"?Nn[hn]=_n:Nn=hn,Jt()(Nn,function(Pn,Cn){var Un=Mn[Cn];Mn[Cn]=Pn,ln.emit("optionChange",Cn,Pn,Un)})}},{key:"getOption",value:function(hn){return this.options[hn]}},{key:"addSubComponent",value:function(hn){hn.setOption("theme",this.options.theme),this.subComponents.push(hn)}},{key:"removeSubComponent",value:function(hn){En()(this.subComponents,function(_n){return _n===hn})}},{key:"destroySubComponents",value:function(){Jt()(this.subComponents,function(hn){return hn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(hn){var _n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};dn()(hn,_n),Gt()(this.options,hn)}},{key:"find",value:function(hn){return this.$container.find(this.c(hn))}}]),bn}(Mt());function Hn(fn){var Sn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var bn,hn=(0,tt.Z)(fn);if(Sn){var _n=(0,tt.Z)(this).constructor;bn=Reflect.construct(hn,arguments,_n)}else bn=hn.apply(this,arguments);return(0,et.Z)(this,bn)}}b=d.hmd(b);var rn=function(fn){(0,$.Z)(bn,fn);var Sn=Hn(bn);function bn(hn){var _n,ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,k.Z)(this,bn),(_n=Sn.call(this,hn,{compName:"box-model"})).initOptions(ln),_n.options.element&&_n.render(),_n.bindEvent(),_n}return(0,j.Z)(bn,[{key:"bindEvent",value:function(){var hn=this;this.on("optionChange",function(_n){_n==="element"&&hn.render()})}},{key:"render",value:function(){var hn=this.c,_n=this.getBoxModelData();this.$container.html(['
'),_n.position?'
'):"",_n.position?'
position
').concat(_n.position.top,'

').concat(_n.position.left,"
"):"",'
'),'
margin
').concat(_n.margin.top,'

').concat(_n.margin.left,"
"),'
'),'
border
').concat(_n.border.top,'

').concat(_n.border.left,"
"),'
'),'
padding
').concat(_n.padding.top,'

').concat(_n.padding.left,"
"),'
'),"".concat(_n.content.width," × ").concat(_n.content.height,""),"
",'
').concat(_n.padding.right,'

').concat(_n.padding.bottom,"
"),"
",'
').concat(_n.border.right,'

').concat(_n.border.bottom,"
"),"
",'
').concat(_n.margin.right,'

').concat(_n.margin.bottom,"
"),"
",_n.position?'
').concat(_n.position.right,'

').concat(_n.position.bottom,"
"):"",_n.position?"
":"","
"].join(""))}},{key:"getBoxModelData",value:function(){var hn=this.options.element,_n=window.getComputedStyle(hn);function ln(Nn){var Pn=["top","left","right","bottom"];return Nn!=="position"&&(Pn=nt()(Pn,function(Cn){return"".concat(Nn,"-").concat(Cn)})),Nn==="border"&&(Pn=nt()(Pn,function(Cn){return"".concat(Cn,"-width")})),{top:wn(_n[Pn[0]],Nn),left:wn(_n[Pn[1]],Nn),right:wn(_n[Pn[2]],Nn),bottom:wn(_n[Pn[3]],Nn)}}var Mn={margin:ln("margin"),border:ln("border"),padding:ln("padding"),content:{width:wn(_n.width),height:wn(_n.height)}};return _n.position!=="static"&&(Mn.position=ln("position")),Mn}}]),bn}(Rn);function wn(fn,Sn){if(at()(fn))return fn;if(!dt()(fn))return"‒";var bn,hn=(bn=fn,vt()(bn.replace("px","")));return isNaN(hn)?fn:Sn==="position"?hn:hn===0?"‒":hn}(function(fn,Sn){try{fn.exports=Sn,fn.exports.default=Sn}catch{}})(b,rn)},8816:function(b,_,d){d.d(_,{Z:function(){return ts}});var k=d(168),j=d(181);function $(Er,Ur){return function(Sr){if(Array.isArray(Sr))return Sr}(Er)||function(Sr,zt){var Zt=Sr==null?null:typeof Symbol<"u"&&Sr[Symbol.iterator]||Sr["@@iterator"];if(Zt!=null){var mn,Bn,br,fr,_r=[],Cr=!0,Rr=!1;try{if(br=(Zt=Zt.call(Sr)).next,zt===0){if(Object(Zt)!==Zt)return;Cr=!1}else for(;!(Cr=(mn=br.call(Zt)).done)&&(_r.push(mn.value),_r.length!==zt);Cr=!0);}catch(Yr){Rr=!0,Bn=Yr}finally{try{if(!Cr&&Zt.return!=null&&(fr=Zt.return(),Object(fr)!==fr))return}finally{if(Rr)throw Bn}}return _r}}(Er,Ur)||(0,j.Z)(Er,Ur)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var et=d(5671),tt=d(3144),rt=d(1752),nt=d(9340),ot=d(2963),at=d(1120),it=d(7326),dt=d(8901),ut=d.n(dt),ht=d(3367),ft=d.n(ht),lt=d(6341),ct=d.n(lt),pt=d(6930),st=d.n(pt),wt=d(4187),yt=d.n(wt),vt=d(3783),St=d.n(vt),xt=d(4858),bt=d.n(xt),At=d(8887),_t=d.n(At),Ct=d(7756),Mt=d.n(Ct),jt=d(3023),Rt=d.n(jt);function Wt(Er){return Er.constructor&&Er.constructor.name?Er.constructor.name:Rt()({}.toString.call(Er).replace(/(\[object )|]/g,""))}var Jt=d(2461),Qt=d.n(Jt),Gt=d(4331),Vt=d.n(Gt),dn=d(5610),kn=d.n(dn),En=d(7483),yn=d.n(En),Rn=d(3990),Hn=d.n(Rn),rn=d(3875),wn=d.n(rn),fn=d(6954),Sn=d.n(fn),bn=d(9585),hn=d.n(bn);function _n(Er){var Ur="luna-".concat(Er,"-");function Sr(zt){return Qt()(Vt()(zt).split(/\s+/),function(Zt){return ct()(Zt,Ur)?Zt:Zt.replace(/[\w-]+/,function(mn){return"".concat(Ur).concat(mn)})}).join(" ")}return function(zt){if(/<[^>]*>/g.test(zt))try{var Zt=yn().parse(zt);return ln(Zt,function(mn){mn.attrs&&mn.attrs.class&&(mn.attrs.class=Sr(mn.attrs.class))}),yn().stringify(Zt)}catch{return Sr(zt)}return Sr(zt)}}function ln(Er,Ur){for(var Sr=0,zt=Er.length;Sr1&&arguments[1]!==void 0?arguments[1]:{},zt=Sr.topObj,Zt=Sr.level,mn=Zt===void 0?0:Zt,Bn=Sr.getterVal,br=Bn!==void 0&&Bn,fr=Sr.unenumerable,_r=fr===void 0||fr,Cr="",Rr="",Yr=5,Gr=[],oo=[],po="";zt=zt||Er;var Hr={getterVal:br,unenumerable:_r,level:mn+1},ao=mn===0,yo=''),bo=''),So=''),Io=''),vo=''),Oo=''),Eo=function(Xr){return ut()(Xr).replace(/\\n/g,"↵").replace(/\\f|\\r|\\t/g,"").replace(/\\/g,"")},wo="",Ao=function(Xr){return yo+Eo(Xr)+wo};function Co(Xr){return Xr=ft()(Xr),ct()(Cn,Xr)||st()(Xr,"Array[")?Oo+Eo(Xr)+wo:(Xr.length>100&&(Xr=Mt()(Xr,100,{separator:" ",ellipsis:"…"})),Io+Eo('"'.concat(Xr,'"'))+wo)}function Lo(Xr){if(Ur>Yr)po=", …";else{var os=Ao(vn(Xr));if(!br){var $o=Object.getOwnPropertyDescriptor(Er,Xr);if($o&&$o.get)return Gr.push("".concat(os,": ").concat(Co("(...)"))),void Ur++}Gr.push("".concat(os,": ").concat(Pn(zt[Xr],Hr))),Ur++}}try{Rr={}.toString.call(Er)}catch{Rr="[object Object]"}var Po,No=Rr=="[object Array]",Fo=Rr=="[object Object]",Ho=Rr=="[object Number]",jo=Rr=="[object RegExp]",Ro=Rr=="[object Symbol]",Ls=Rr=="[object Function]",Ps=Rr=="[object Boolean]";if(Rr=="[object String]")Cr=Co(vn(Er));else if(jo)Po=vn(Er.toString()),Cr=Io+Po+wo;else if(Ls)Cr=Co("ƒ");else if(No)if(ao){Cr="[";var Zo=Er.length,rs="";Zo>100&&(Zo=100,rs=", …");for(var Vo=0;Vo"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Sr,zt=(0,at.Z)(Er);if(Ur){var Zt=(0,at.Z)(this).constructor;Sr=Reflect.construct(zt,arguments,Zt)}else Sr=zt.apply(this,arguments);return(0,ot.Z)(this,Sr)}}var qr=/https?:\/\/([0-9.\-A-Za-z]+)(?::(\d+))?\/[A-Z.a-z0-9/]*\.js/g,eo={comment:"",string:"",number:"",keyword:"",operator:""},to=function(Er){(0,nt.Z)(Sr,Er);var Ur=ro(Sr);function Sr(zt,Zt){var mn,Bn=Zt.type,br=Bn===void 0?"log":Bn,fr=Zt.args,_r=fr===void 0?[]:fr,Cr=Zt.id,Rr=Zt.group,Yr=Zt.targetGroup,Gr=Zt.header,oo=Zt.ignoreFilter,po=oo!==void 0&&oo,Hr=Zt.accessGetter,ao=Zt.unenumerable,yo=Zt.lazyEvaluation;(0,et.Z)(this,Sr),(mn=Ur.call(this)).container=nn()("div"),mn.count=1,mn.width=0,mn.height=0,mn.isHidden=!1,mn.columns=[],mn.elements={},mn.objects={},mn.console=zt,mn.type=br,mn.group=Rr,mn.targetGroup=Yr,mn.args=_r,mn.id=Cr,mn.header=Gr,mn.ignoreFilter=po,mn.collapsed=!1,mn.container.log=(0,it.Z)(mn),mn.height=0,mn.width=0,mn.$container=It()(mn.container),mn.accessGetter=Hr,mn.unenumerable=ao,mn.lazyEvaluation=yo;var bo="info";switch(br){case"debug":bo="verbose";break;case"error":bo="error";break;case"warn":bo="warning"}return mn.level=bo,mn.resizeSensor=new(Xt())(mn.container),mn.onResize=Wn()(function(){hn()(mn.container)?mn.isHidden=!0:(mn.isHidden||mn.updateSize(!1),mn.isHidden=!1)},16),mn.formatMsg(),mn.group&&mn.checkGroup(),mn.bindEvent(),mn}return(0,tt.Z)(Sr,[{key:"checkGroup",value:function(){for(var zt=this.group,Zt=!1;zt;){if(zt.collapsed){Zt=!0;break}zt=zt.parent}return Zt!==this.collapsed&&(this.collapsed=Zt,!0)}},{key:"updateIcon",value:function(zt){var Zt=this.console.c;return this.$container.find(Zt(".icon-container")).find(Zt(".icon")).rmAttr("class").addClass([Zt("icon"),Zt("icon-".concat(zt))]),this}},{key:"addCount",value:function(){this.count++;var zt=this.$container,Zt=this.count,mn=this.console.c,Bn=zt.find(mn(".count-container")),br=zt.find(mn(".icon-container")),fr=Bn.find(mn(".count"));return Zt===2&&Bn.rmClass(mn("hidden")),fr.text(ft()(Zt)),br.addClass(mn("hidden")),this}},{key:"groupEnd",value:function(){var zt=this.$container,Zt=this.console.c;return zt.find(".".concat(Zt("nesting-level"),":not(.").concat(Zt("group-closed"),")")).last().addClass(Zt("group-closed")),this}},{key:"updateTime",value:function(zt){var Zt=this.$container.find(this.console.c(".time-container"));return this.header&&(Zt.find("span").eq(0).text(zt),this.header.time=zt),this}},{key:"isAttached",value:function(){return!!this.container.parentNode}},{key:"isSimple",value:function(){return!nr()(this.args,function(zt){return Tn()(zt)})}},{key:"updateSize",value:function(){var zt=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],Zt=this.container.getBoundingClientRect(),mn=Zt.width,Bn=Zt.height-1;this.height!==Bn&&(this.height=Bn,zt||this.emit("updateHeight")),this.width!==mn&&(this.width=mn)}},{key:"html",value:function(){return this.container.outerHTML}},{key:"text",value:function(){return this.content.textContent||""}},{key:"select",value:function(){this.$container.addClass(this.console.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.console.c("selected"))}},{key:"copy",value:function(){var zt=this.args,Zt="";St()(zt,function(mn,Bn){Bn!==0&&(Zt+=" "),Tn()(mn)?Zt+=Kn()(mn):Zt+=ft()(mn)}),zn()(Zt)}},{key:"bindEvent",value:function(){var zt=this,Zt=this.console.c,mn=this;this.resizeSensor.addListener(this.onResize),this.$container.on("click",Zt(".dom-viewer"),function(Bn){return Bn.stopPropagation()}).on("click",Zt(".preview"),function(Bn){Bn.stopPropagation();var br=It()(this).find(Zt(".preview-icon-container")).find(Zt(".icon")),fr="caret-down";br.hasClass(Zt("icon-caret-down"))&&(fr="caret-right"),br.rmAttr("class").addClass([Zt("icon"),Zt("icon-".concat(fr))]),mn.renderObjectViewer(this)}).on("click",function(){return zt.click()})}},{key:"renderEl",value:function(){var zt=this.elements,Zt=this.console.c,mn=this;this.$container.find(Zt(".dom-viewer")).each(function(){var Bn=It()(this).data("id");new An.Z(this,{node:zt[Bn],theme:mn.console.getOption("theme")})})}},{key:"renderObjectViewer",value:function(zt){var Zt=this.console,mn=this.unenumerable,Bn=this.accessGetter,br=this.lazyEvaluation,fr=Zt.c,_r=It()(zt),Cr=_r.data("id");if(Cr){var Rr=this.objects[Cr],Yr=_r.find(fr(".json"));if(Yr.hasClass(fr("hidden"))){if(Yr.data("init")!=="true"){if(br){var Gr=new Ln.Z(Yr.get(0),{unenumerable:mn,accessGetter:Bn});Gr.setOption("theme",Zt.getOption("theme")),Gr.set(Rr)}else{var oo=new Ln.q(Yr.get(0));oo.setOption("theme",Zt.getOption("theme")),oo.set(Rr)}Yr.data("init","true")}Yr.rmClass(fr("hidden"))}else Yr.addClass(fr("hidden"))}}},{key:"renderTable",value:function(zt){var Zt=this,mn="__LunaConsoleValue",Bn=this.columns,br=this.$container,fr=this.console,_r=fr.c,Cr=br.find(_r(".data-grid")),Rr=zt[0],Yr=new Dn.Z(Cr.get(0),{columns:ur()([{id:"(index)",title:"(index)",sortable:!0}],Qt()(Bn,function(Gr){return{id:Gr,title:Gr===mn?"Value":Gr,sortable:!0}})),theme:fr.getOption("theme")});St()(Rr,function(Gr,oo){var po={"(index)":ft()(oo)};Bn.forEach(function(Hr){Tn()(Gr)?po[Hr]=Hr===mn?"":Zt.formatTableVal(Gr[Hr]):In()(Gr)&&(po[Hr]=Hr===mn?Zt.formatTableVal(Gr):"")}),Yr.append(po)})}},{key:"extractObj",value:function(zt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},mn=arguments.length>2?arguments[2]:void 0,Bn=this.accessGetter,br=this.unenumerable;Vn()(Zt,{accessGetter:Bn,unenumerable:br,symbol:br,timeout:1e3}),function(fr,_r,Cr){var Rr=ir()(fr,_r);vr()(function(){return Cr(Rr)})}(zt,Zt,function(fr){return mn(JSON.parse(fr))})}},{key:"click",value:function(){var zt=this.type,Zt=this.$container,mn=this.console,Bn=mn.c;switch(zt){case"log":case"warn":case"info":case"debug":case"output":case"table":case"dir":break;case"group":case"groupCollapsed":mn.toggleGroup(this);break;case"error":Zt.find(Bn(".stack")).toggleClass(Bn("hidden"))}}},{key:"formatMsg",value:function(){var zt=this.args,Zt=this.type,mn=this.id,Bn=this.header,br=this.group,fr=this.console.c;zt=Nt()(zt);var _r,Cr,Rr="";switch(Zt!=="group"&&Zt!=="groupCollapsed"||zt.length===0&&(zt=["console.group"]),Zt){case"log":case"info":case"debug":Rr=this.formatCommon(zt);break;case"dir":Rr=this.formatDir(zt);break;case"warn":_r="warn",Rr=this.formatCommon(zt);break;case"error":yr()(zt[0])&&zt.length!==1&&(zt=this.substituteStr(zt)),Cr=zt[0],_r="error",Cr=Xn()(Cr)?Cr:new Error(this.formatCommon(zt)),Rr=this.formatErr(Cr);break;case"table":Rr=this.formatTable(zt);break;case"html":Rr=zt[0];break;case"input":Rr=this.formatJs(zt[0]),_r="input";break;case"output":Rr=this.formatCommon(zt),_r="output";break;case"groupCollapsed":Rr=this.formatCommon(zt),_r="caret-right";break;case"group":Rr=this.formatCommon(zt),_r="caret-down"}ct()(["log","debug","warn"],Zt)&&this.isSimple()&&(Rr=On()(Rr,function(Yr){return'').concat(Yr,"")})),Rr=this.render({msg:Rr,type:Zt,icon:_r,id:mn,header:Bn,group:br}),this.$container.addClass("".concat(fr("log-container"))).html(Rr),Zt==="table"&&(_t()(this.columns)||this.renderTable(zt)),_t()(this.elements)||this.renderEl(),this.$content=this.$container.find(fr(".log-content")),this.content=this.$content.get(0)}},{key:"render",value:function(zt){var Zt=this.console.c,mn="",Bn="";if(zt.group)for(var br=zt.group.indentLevel,fr=0;fr');zt.header&&(mn+=Ar()(Zn||(Zn=(0,k.Z)([`
`,` diff --git a/docs/index.html b/docs/index.html index 4eb1be8..6160d2a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,7 +8,7 @@ Demo Dapp with @tonconnect/ui-react - +