From 4c6616486b9a6a6b2155a9b4a2ab12f1773cc22c Mon Sep 17 00:00:00 2001 From: thekiba Date: Tue, 17 Dec 2024 12:00:03 +0400 Subject: [PATCH] chore: rebuild --- docs/assets/{index-9bb25390.js => index-a8f70fec.js} | 2 +- docs/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename docs/assets/{index-9bb25390.js => index-a8f70fec.js} (99%) diff --git a/docs/assets/index-9bb25390.js b/docs/assets/index-a8f70fec.js similarity index 99% rename from docs/assets/index-9bb25390.js rename to docs/assets/index-a8f70fec.js index 67bf447..5dbb226 100644 --- a/docs/assets/index-9bb25390.js +++ b/docs/assets/index-a8f70fec.js @@ -1145,7 +1145,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(zt,gn,Wn){var Gn=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Wn;Yt.call(this,zt,gn,Gn)}}return Et}function xt(Et,Lt){if(Et==null)return{};var jt,$t,It=function(nn,Yt){if(nn==null)return{};var zt,gn,Wn={},Gn=Object.keys(nn);for(gn=0;gn=0||(Wn[zt]=nn[zt]);return Wn}(Et,Lt);if(Object.getOwnPropertySymbols){var an=Object.getOwnPropertySymbols(Et);for($t=0;$t=0||Object.prototype.propertyIsEnumerable.call(Et,jt)&&(It[jt]=Et[jt])}return It}function bt(Et){var Lt=function(jt){return{}.toString.call(jt).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),Ot=function(Et){var Lt=function(jt){return{backgroundColor:jt.base00,ellipsisColor:jt.base09,braceColor:jt.base07,expandedIcon:jt.base0D,collapsedIcon:jt.base0E,keyColor:jt.base07,arrayKeyColor:jt.base0C,objectSize:jt.base04,copyToClipboard:jt.base0F,copyToClipboardCheck:jt.base0D,objectBorder:jt.base02,dataTypes:{boolean:jt.base0E,date:jt.base0D,float:jt.base0B,function:jt.base0D,integer:jt.base0F,string:jt.base09,nan:jt.base08,null:jt.base0A,undefined:jt.base05,regexp:jt.base0A,background:jt.base02},editVariable:{editIcon:jt.base0E,cancelIcon:jt.base09,removeIcon:jt.base09,addIcon:jt.base0E,checkIcon:jt.base0E,background:jt.base01,color:jt.base0A,border:jt.base07},addKeyModal:{background:jt.base05,border:jt.base04,color:jt.base0A,labelColor:jt.base01},validationFailure:{background:jt.base09,iconColor:jt.base01,fontColor:jt.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(jt,$t){return{style:rt({paddingTop:Ct.keyValPaddingTop,paddingRight:Ct.keyValPaddingRight,paddingBottom:Ct.keyValPaddingBottom,borderLeft:Ct.keyValBorderLeft+" "+Lt.objectBorder,":hover":{paddingLeft:$t.paddingLeft-1+"px",borderLeft:Ct.keyValBorderHover+" "+Lt.objectBorder}},$t)}},"object-key-val-no-border":{padding:Ct.keyValPadding},"pushed-content":{marginLeft:Ct.pushedContentMarginLeft},variableValue:function(jt,$t){return{style:rt({display:"inline-block",paddingRight:Ct.variableValuePaddingRight,position:"relative"},$t)}},"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,jt){return Et||console.error("theme has not been set"),function($t){var It=At;return $t!==!1&&$t!=="none"||(It=_t),Object(Mt.createStyling)(Ot,{defaultBase16:It})($t)}(Et)(Lt,jt)}var Wt=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=($t.rjvId,$t.type_name),an=$t.displayDataTypes,nn=$t.theme;return an?st.a.createElement("span",Object.assign({className:"data-type-label"},Rt(nn,"data-type-label")),It):null}}]),jt}(st.a.PureComponent),Jt=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props;return st.a.createElement("div",Rt($t.theme,"boolean"),st.a.createElement(Wt,Object.assign({type_name:"bool"},$t)),$t.value?"true":"false")}}]),jt}(st.a.PureComponent),Qt=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props;return st.a.createElement("div",Rt($t.theme,"date"),st.a.createElement(Wt,Object.assign({type_name:"date"},$t)),st.a.createElement("span",Object.assign({className:"date-value"},Rt($t.theme,"date-value")),$t.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),jt}(st.a.PureComponent),Gt=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props;return st.a.createElement("div",Rt($t.theme,"float"),st.a.createElement(Wt,Object.assign({type_name:"float"},$t)),this.props.value)}}]),jt}(st.a.PureComponent);function Vt(Et,Lt){(Lt==null||Lt>Et.length)&&(Lt=Et.length);for(var jt=0,$t=new Array(Lt);jt"u"||Et[Symbol.iterator]==null){if(Array.isArray(Et)||(jt=dn(Et))||Lt&&Et&&typeof Et.length=="number"){jt&&(Et=jt);var $t=0,It=function(){};return{s:It,n:function(){return $t>=Et.length?{done:!0}:{done:!1,value:Et[$t++]}},e:function(zt){throw zt},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(){jt=Et[Symbol.iterator]()},n:function(){var zt=jt.next();return nn=zt.done,zt},e:function(zt){Yt=!0,an=zt},f:function(){try{nn||jt.return==null||jt.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(jt,Et);var Lt=ut(jt);function jt(){var $t;nt(this,jt);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"},$t)),st.a.createElement("span",Object.assign({className:"string-value"},Yt,{onClick:this.toggleCollapsed}),'"',nn,'"'))}}]),jt}(st.a.PureComponent),ln=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){return st.a.createElement("div",Rt(this.props.theme,"undefined"),"undefined")}}]),jt}(st.a.PureComponent);function Mn(){return(Mn=Object.assign||function(Et){for(var Lt=1;Lt=0||(Bn[hr]=Jn[hr]);return Bn}(Et,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Wn,Gn=gn.value!==void 0,Kn=Object(pt.useRef)(null),er=zn(Kn,Lt),Un=Object(pt.useRef)(0),Qn=Object(pt.useRef)(),ir=function(){var Jn=Kn.current,vr=jt&&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,Or){return Mr[Or]=nr[Or],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,Or=lr.sizingStyle,jr=Or.boxSizing;Object.keys(Or).forEach(function(Nr){var $r=Nr;Ln.style[$r]=Or[$r]}),Zn(Ln),Ln.value=rr;var sn=function(Nr,$r){var Ur=Nr.scrollHeight;return $r.sizingStyle.boxSizing==="border-box"?Ur+$r.borderSize:Ur-$r.paddingSize}(Ln,lr);Ln.value="x";var Lr=Ln.scrollHeight-Ar,Dr=Lr*nr;jr==="border-box"&&(Dr=Dr+Ar+Mr),sn=Math.max(Dr,sn);var Fr=Lr*ar;return jr==="border-box"&&(Fr=Fr+Ar+Mr),[sn=Math.min(Fr,sn),Lr]}(vr,Jn.value||Jn.placeholder||"x",It,$t),jn=hr[0],Bn=hr[1];Un.current!==jn&&(Un.current=jn,Jn.style.setProperty("height",jn+"px","important"),zt(jn,{rowHeight:Bn}))}};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(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"})))}}]),jt}(st.a.PureComponent),tr=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"})))}}]),jt}(st.a.PureComponent),Xn=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"})))}}]),jt}(st.a.PureComponent),gr=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"})))}}]),jt}(st.a.PureComponent),In=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"})))}}]),jt}(st.a.PureComponent),dr=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"})))}}]),jt}(st.a.PureComponent),Vn=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"}))))}}]),jt}(st.a.PureComponent),pr=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"}))))}}]),jt}(st.a.PureComponent),qn=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"}))))}}]),jt}(st.a.PureComponent),Fn=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"}))))}}]),jt}(st.a.PureComponent),sr=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"}))))}}]),jt}(st.a.PureComponent),or=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"}))))}}]),jt}(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(jt,Et);var Lt=ut(jt);function jt($t){var It;return nt(this,jt),(It=Lt.call(this,$t)).copiedTimer=null,It.handleCopy=function(){var an=document.createElement("textarea"),nn=It.props,Yt=nn.clickCallback,zt=nn.src,gn=nn.namespace;an.innerHTML=JSON.stringify(It.clipboardValue(zt),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:zt,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(jt,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var $t=this.props,It=($t.src,$t.theme),an=$t.hidden,nn=$t.rowHovered,Yt=Rt(It,"copy-to-clipboard").style,zt="inline";return an&&(zt="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:zt}),onClick:this.handleCopy},this.getClippyIcon()))}}]),jt}(st.a.PureComponent),kr=function(Et){dt(jt,Et);var Lt=ut(jt);function jt($t){var It;return nt(this,jt),(It=Lt.call(this,$t)).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(zt){var gn;switch(bt(zt)){case"undefined":gn="undefined";break;case"nan":gn="NaN";break;case"string":gn=zt;break;case"date":case"function":case"regexp":gn=zt.toString();break;default:try{gn=JSON.stringify(zt,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,zt=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(zt,"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,zt=ft(It).props;switch(Yt){case!1:return It.getEditInput();case"string":return st.a.createElement(_n,Object.assign({value:an.value},zt));case"integer":return st.a.createElement(bn,Object.assign({value:an.value},zt));case"float":return st.a.createElement(Gt,Object.assign({value:an.value},zt));case"boolean":return st.a.createElement(Jt,Object.assign({value:an.value},zt));case"function":return st.a.createElement(wn,Object.assign({value:an.value},zt));case"null":return st.a.createElement(Sn,zt);case"nan":return st.a.createElement(fn,zt);case"undefined":return st.a.createElement(ln,zt);case"date":return st.a.createElement(Qt,Object.assign({value:an.value},zt));case"regexp":return st.a.createElement(hn,Object.assign({value:an.value},zt));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 zt=Yt.target.value,gn=Tn(zt);It.setState({editValue:zt,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,zt=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:zt,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),zt=(Yt.type,Yt.value,It.getDetectedInput());if(zt)return st.a.createElement("div",null,st.a.createElement("div",Rt(nn,"detected-row"),zt,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,zt=ft(It).props,gn=zt.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},zt));case"integer":return st.a.createElement(bn,Object.assign({value:Yt},zt));case"float":return st.a.createElement(Gt,Object.assign({value:Yt},zt));case"boolean":return st.a.createElement(Jt,Object.assign({value:Yt},zt));case"function":return st.a.createElement(wn,Object.assign({value:Yt},zt));case"null":return st.a.createElement(Sn,zt);case"nan":return st.a.createElement(fn,zt);case"undefined":return st.a.createElement(ln,zt);case"date":return st.a.createElement(Qt,Object.assign({value:new Date(Yt)},zt))}},It.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},It}return at(jt,[{key:"render",value:function(){var $t=this,It=this.props,an=It.variable,nn=It.singleIndent,Yt=It.type,zt=It.theme,gn=It.namespace,Wn=It.indentWidth,Gn=It.enableClipboard,Kn=It.onEdit,er=It.onDelete,Un=It.onSelect,Qn=It.displayArrayKey,ir=It.quotesOnKeys,Jn=this.state.editMode;return st.a.createElement("div",Object.assign({},Rt(zt,"objectKeyVal",{paddingLeft:Wn*nn}),{onMouseEnter:function(){return $t.setState(rt(rt({},$t.state),{},{hovered:!0}))},onMouseLeave:function(){return $t.setState(rt(rt({},$t.state),{},{hovered:!1}))},className:"variable-row",key:an.name}),Yt=="array"?Qn?st.a.createElement("span",Object.assign({},Rt(zt,"array-key"),{key:an.name+"_"+gn}),an.name,st.a.createElement("div",Rt(zt,"colon"),":")):null:st.a.createElement("span",null,st.a.createElement("span",Object.assign({},Rt(zt,"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(zt,"colon"),":")),st.a.createElement("div",Object.assign({className:"variable-value",onClick:Un===!1&&Kn===!1?null:function(vr){var hr=En(gn);(vr.ctrlKey||vr.metaKey)&&Kn!==!1?$t.prepopInput(an):Un!==!1&&(hr.shift(),Un(rt(rt({},an),{},{namespace:hr})))}},Rt(zt,"variableValue",{cursor:Un===!1?"default":"pointer"})),this.getValue(an,Jn)),Gn?st.a.createElement(xr,{rowHovered:this.state.hovered,hidden:Jn,src:an.value,clickCallback:Gn,theme:zt,namespace:[].concat(En(gn),[an.name])}):null,Kn!==!1&&Jn==0?this.getEditIcon():null,er!==!1&&Jn==0?this.getRemoveIcon():null)}}]),jt}(st.a.PureComponent),Tr=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){var $t;nt(this,jt);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])})})}})))},$t.getRemoveObject=function(Yt){var zt=$t.props,gn=zt.theme,Wn=(zt.hover,zt.namespace),Gn=zt.name,Kn=zt.src,er=zt.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}})}})))},$t.render=function(){var Yt=$t.props,zt=Yt.theme,gn=Yt.onDelete,Wn=Yt.onAdd,Gn=Yt.enableClipboard,Kn=Yt.src,er=Yt.namespace,Un=Yt.rowHovered;return st.a.createElement("div",Object.assign({},Rt(zt,"object-meta-data"),{className:"object-meta-data",onClick:function(Qn){Qn.stopPropagation()}}),$t.getObjectSize(),Gn?st.a.createElement(xr,{rowHovered:Un,clickCallback:Gn,src:Kn,theme:zt,namespace:er}):null,Wn!==!1?$t.getAddAttribute(Un):null,gn!==!1?$t.getRemoveObject(Un):null)},$t}return jt}(st.a.PureComponent);function Pr(Et){var Lt=Et.parent_type,jt=Et.namespace,$t=Et.quotesOnKeys,It=Et.theme,an=Et.jsvRoot,nn=Et.name,Yt=Et.displayArrayKey,zt=Et.name?Et.name:"";return!an||nn!==!1&&nn!==null?Lt=="array"?Yt?st.a.createElement("span",Object.assign({},Rt(It,"array-key"),{key:jt}),st.a.createElement("span",{className:"array-key"},zt),st.a.createElement("span",Rt(It,"colon"),":")):st.a.createElement("span",null):st.a.createElement("span",Object.assign({},Rt(It,"object-name"),{key:jt}),st.a.createElement("span",{className:"object-key"},$t&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"'),st.a.createElement("span",null,zt),$t&&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(jt,Et);var Lt=ut(jt);function jt($t){var It;return nt(this,jt),(It=Lt.call(this,$t)).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(jt,[{key:"getExpandedIcon",value:function($t){var It=this.props,an=It.theme,nn=It.iconStyle;return this.state.expanded[$t]?st.a.createElement(Ir,{theme:an,iconStyle:nn}):st.a.createElement(Wr,{theme:an,iconStyle:nn})}},{key:"render",value:function(){var $t=this,It=this.props,an=It.src,nn=It.groupArraysAfterLength,Yt=(It.depth,It.name),zt=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 Un=nn,Qn=Math.ceil(an.length/Un);return st.a.createElement("div",Object.assign({className:"object-key-val"},Rt(zt,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(zt,"objectKeyVal",{marginLeft:6,paddingLeft:er})),st.a.createElement("span",Rt(zt,"brace-row"),st.a.createElement("div",Object.assign({className:"icon-container"},Rt(zt,"icon-container"),{onClick:function(vr){$t.toggleCollapsed(Jn)}}),$t.getExpandedIcon(Jn)),$t.state.expanded[Jn]?st.a.createElement(kt,Object.assign({key:Yt+Jn,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Un,index_offset:Jn*Un,src:an.slice(Jn*Un,Jn*Un+Un),namespace:Wn,type:"array",parent_type:"array_group",theme:zt},Gn)):st.a.createElement("span",Object.assign({},Rt(zt,"brace"),{onClick:function(vr){$t.toggleCollapsed(Jn)},className:"array-group-brace"}),"[",st.a.createElement("div",Object.assign({},Rt(zt,"array-group-meta-data"),{className:"array-group-meta-data"}),st.a.createElement("span",Object.assign({className:"object-size"},Rt(zt,"object-size")),Jn*Un," - ",Jn*Un+Un>an.length?an.length:Jn*Un+Un)),"]")))}))}}]),jt}(st.a.PureComponent),Zr=function(Et){dt(jt,Et);var Lt=ut(jt);function jt($t){var It;nt(this,jt),(It=Lt.call(this,$t)).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,zt){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,zt)))},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,zt=(Yt.rjvId,Yt.theme,It.state),gn=zt.size,Wn=zt.hovered;return st.a.createElement(Tr,Object.assign({rowHovered:Wn,size:gn},It.props))},It.renderObjectContents=function(nn,Yt){var zt,gn=It.props,Wn=gn.depth,Gn=gn.parent_type,Kn=gn.index_offset,er=gn.groupArraysAfterLength,Un=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(zt=new mo(vr,nn[vr]),Gn==="array_group"&&Kn&&(zt.name=parseInt(zt.name)+Kn),nn.hasOwnProperty(vr))if(zt.type==="object")ir.push(st.a.createElement(kt,Object.assign({key:zt.name,depth:Wn+1,name:zt.name,src:zt.value,namespace:Un.concat(zt.name),parent_type:Qn},Yt)));else if(zt.type==="array"){var hr=kt;er&&zt.value.length>er&&(hr=Qr),ir.push(st.a.createElement(hr,Object.assign({key:zt.name,depth:Wn+1,name:zt.name,src:zt.value,namespace:Un.concat(zt.name),type:"array",parent_type:Qn},Yt)))}else ir.push(st.a.createElement(kr,Object.assign({key:zt.name+"_"+Un,variable:zt,singleIndent:5,namespace:Un,type:It.props.type},Yt)))}),ir};var an=jt.getState($t);return It.state=rt(rt({},an),{},{prevProps:{}}),It}return at(jt,[{key:"getBraceStart",value:function($t,It){var an=this,nn=this.props,Yt=nn.src,zt=nn.theme,gn=nn.iconStyle;if(nn.parent_type==="array_group")return st.a.createElement("span",null,st.a.createElement("span",Rt(zt,"brace"),$t==="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(zt,"brace-row")),st.a.createElement("div",Object.assign({className:"icon-container"},Rt(zt,"icon-container")),st.a.createElement(Wn,{theme:zt,iconStyle:gn})),st.a.createElement(Pr,this.props),st.a.createElement("span",Rt(zt,"brace"),$t==="array"?"[":"{")),It?this.getObjectMetaData(Yt):null)}},{key:"render",value:function(){var $t=this,It=this.props,an=It.depth,nn=It.src,Yt=(It.namespace,It.name,It.type,It.parent_type),zt=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,Un=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 $t.setState(rt(rt({},$t.state),{},{hovered:!0}))},onMouseLeave:function(){return $t.setState(rt(rt({},$t.state),{},{hovered:!1}))}},Rt(zt,gn?"jsv-root":"objectKeyVal",Qn)),this.getBraceStart(er,Un),Un?this.getObjectContent(an,nn,rt({theme:zt,iconStyle:Wn},Gn)):this.getEllipsis(),st.a.createElement("span",{className:"brace-row"},st.a.createElement("span",{style:rt(rt({},Rt(zt,"brace").style),{},{paddingLeft:Un?"3px":"0px"})},er==="array"?"]":"}"),Un?null:this.getObjectMetaData(nn)))}}],[{key:"getDerivedStateFromProps",value:function($t,It){var an=It.prevProps;return $t.src!==an.src||$t.collapsed!==an.collapsed||$t.name!==an.name||$t.namespace!==an.namespace||$t.rjvId!==an.rjvId?rt(rt({},jt.getState($t)),{},{prevProps:$t}):null}}]),jt}(st.a.PureComponent);Zr.getState=function(Et){var Lt=Object.keys(Et.src).length,jt=(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",jt),object_type:Et.type==="array"?"array":"object",parent_type:Et.type==="array"?"array":"object",size:Lt,hovered:!1}};var mo=function Et(Lt,jt){nt(this,Et),this.name=Lt,this.value=jt,this.type=bt(jt)};St(Zr);var kt=Zr,Bt=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){var $t;nt(this,jt);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:zt,depth:0,jsvRoot:!0},Yt))))},$t}return jt}(st.a.PureComponent),Pt=function(Et){dt(jt,Et);var Lt=ut(jt);function jt($t){var It;return nt(this,jt),(It=Lt.call(this,$t)).closeModal=function(){Rn.dispatch({rjvId:It.props.rjvId,name:"RESET"})},It.submit=function(){It.props.submit(It.state.input)},It.state={input:$t.input?$t.input:""},It}return at(jt,[{key:"render",value:function(){var $t=this,It=this.props,an=It.theme,nn=It.rjvId,Yt=It.isValid,zt=this.state.input,gn=Yt(zt);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:zt,placeholder:"...",onChange:function(Wn){$t.setState({input:Wn.target.value})},onKeyPress:function(Wn){gn&&Wn.key==="Enter"?$t.submit():Wn.key==="Escape"&&$t.closeModal()}})),gn?st.a.createElement(or,Object.assign({},Rt(an,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Wn){return $t.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"})}})))))}}]),jt}(st.a.PureComponent),gt=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){var $t;nt(this,jt);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:"telegram-wallet",name:"Wallet",imageUrl:"https://wallet.tg/images/logo-288.png",aboutUrl:"https://wallet.tg/",universalLink:"https://t.me/wallet?attach=wallet",bridgeUrl:"https://bridge.ton.space/bridge",platforms:["ios","android","macos","windows","linux"]},{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://tc.nicegram.app/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"tokenpocket",name:"TokenPocket",imageUrl:"https://hk.tpstatic.net/logo/tokenpocket.png",aboutUrl:"https://www.tokenpocket.pro",universalLink:"https://tp-lab.tptool.pro/ton-connect/",jsBridgeKey:"tokenpocket",bridgeUrl:"https://ton-connect.mytokenpocket.vip/bridge",platforms:["ios","android","macos","windows","linux"]},{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:"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"]},{appName:"tomoWallet",name:"Tomo Wallet",imageUrl:"https://pub.tomo.inc/logo.png",aboutUrl:"https://www.tomo.inc/",universalLink:"https://t.me/tomowalletbot?attach=wallet",bridgeUrl:"https://go-bridge.tomo.inc/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"hpyTonWallet",name:"HyperPay Wallet",imageUrl:"https://onchain-oss.hyperpay.online/images/logo.png",aboutUrl:"https://www.hyperpay.tech",universalLink:"https://www.hyperpay.tech/download&deeplink=hyperpay://web3/wallet/tonconnect",jsBridgeKey:"hpyTonWallet",bridgeUrl:"https://onchain-wallet.hyperpay.online/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"unstoppable",name:"Unstoppable Wallet",imageUrl:"https://unstoppable.money/logo288.png",aboutUrl:"https://unstoppable.money/",universalLink:"https://unstoppable.money/ton-connect",bridgeUrl:"https://bridge.unstoppable.money/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"foxwallet",name:"FoxWallet",imageUrl:"https://hc.foxwallet.com/img/logo.png",aboutUrl:"https://foxwallet.com/",universalLink:"https://link.foxwallet.com/tc",jsBridgeKey:"foxwallet",bridgeUrl:"https://connect.foxwallet.com/ton/bridge",platforms:["ios","android"]},{appName:"jambo",name:"Jambo",imageUrl:"https://cdn-prod.jambotechnology.xyz/content/jambo_288x288_02da416a6c.png",aboutUrl:"https://www.jambo.technology/",deepLink:"jambotc://",universalLink:"https://jambophone.xyz/",bridgeUrl:"https://bridge.tonapi.io/bridge",jsBridgeKey:"jambowallet",platforms:["android","macos","windows","linux"]}]},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),ct=d(4331),ht=d.n(ct),ft=d(5610),lt=d.n(ft),ut=d(7483),pt=d.n(ut),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,zn,vn){var Zn=ln.c;Cn==="theme"&&(ln.$container.rmClass(Zn("theme-".concat(vn))).addClass(Zn("theme-".concat(zn))),Jt()(ln.subComponents,function(Ln){return Ln.setOption("theme",zn)}))}),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 zn=Mn[Cn];Mn[Cn]=Pn,ln.emit("optionChange",Cn,Pn,zn)})}},{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,zr){return function(Sr){if(Array.isArray(Sr))return Sr}(Er)||function(Sr,Ut){var Zt=Sr==null?null:typeof Symbol<"u"&&Sr[Symbol.iterator]||Sr["@@iterator"];if(Zt!=null){var mn,$n,br,fr,_r=[],Cr=!0,Rr=!1;try{if(br=(Zt=Zt.call(Sr)).next,Ut===0){if(Object(Zt)!==Zt)return;Cr=!1}else for(;!(Cr=(mn=br.call(Zt)).done)&&(_r.push(mn.value),_r.length!==Ut);Cr=!0);}catch(Yr){Rr=!0,$n=Yr}finally{try{if(!Cr&&Zt.return!=null&&(fr=Zt.return(),Object(fr)!==fr))return}finally{if(Rr)throw $n}}return _r}}(Er,zr)||(0,j.Z)(Er,zr)||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(jt,Et);var Lt=ut(jt);function jt(){var $t;nt(this,jt);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"},$t)),st.a.createElement("span",Object.assign({className:"string-value"},Yt,{onClick:this.toggleCollapsed}),'"',nn,'"'))}}]),jt}(st.a.PureComponent),ln=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){return st.a.createElement("div",Rt(this.props.theme,"undefined"),"undefined")}}]),jt}(st.a.PureComponent);function Mn(){return(Mn=Object.assign||function(Et){for(var Lt=1;Lt=0||(Bn[hr]=Jn[hr]);return Bn}(Et,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Wn,Gn=gn.value!==void 0,Kn=Object(pt.useRef)(null),er=zn(Kn,Lt),Un=Object(pt.useRef)(0),Qn=Object(pt.useRef)(),ir=function(){var Jn=Kn.current,vr=jt&&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,Or){return Mr[Or]=nr[Or],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,Or=lr.sizingStyle,jr=Or.boxSizing;Object.keys(Or).forEach(function(Nr){var $r=Nr;Ln.style[$r]=Or[$r]}),Zn(Ln),Ln.value=rr;var sn=function(Nr,$r){var Ur=Nr.scrollHeight;return $r.sizingStyle.boxSizing==="border-box"?Ur+$r.borderSize:Ur-$r.paddingSize}(Ln,lr);Ln.value="x";var Lr=Ln.scrollHeight-Ar,Dr=Lr*nr;jr==="border-box"&&(Dr=Dr+Ar+Mr),sn=Math.max(Dr,sn);var Fr=Lr*ar;return jr==="border-box"&&(Fr=Fr+Ar+Mr),[sn=Math.min(Fr,sn),Lr]}(vr,Jn.value||Jn.placeholder||"x",It,$t),jn=hr[0],Bn=hr[1];Un.current!==jn&&(Un.current=jn,Jn.style.setProperty("height",jn+"px","important"),zt(jn,{rowHeight:Bn}))}};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(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"})))}}]),jt}(st.a.PureComponent),tr=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"})))}}]),jt}(st.a.PureComponent),Xn=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"})))}}]),jt}(st.a.PureComponent),gr=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"})))}}]),jt}(st.a.PureComponent),In=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"})))}}]),jt}(st.a.PureComponent),dr=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"})))}}]),jt}(st.a.PureComponent),Vn=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"}))))}}]),jt}(st.a.PureComponent),pr=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"}))))}}]),jt}(st.a.PureComponent),qn=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"}))))}}]),jt}(st.a.PureComponent),Fn=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"}))))}}]),jt}(st.a.PureComponent),sr=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"}))))}}]),jt}(st.a.PureComponent),or=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){return nt(this,jt),Lt.apply(this,arguments)}return at(jt,[{key:"render",value:function(){var $t=this.props,It=$t.style,an=xt($t,["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"}))))}}]),jt}(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(jt,Et);var Lt=ut(jt);function jt($t){var It;return nt(this,jt),(It=Lt.call(this,$t)).copiedTimer=null,It.handleCopy=function(){var an=document.createElement("textarea"),nn=It.props,Yt=nn.clickCallback,zt=nn.src,gn=nn.namespace;an.innerHTML=JSON.stringify(It.clipboardValue(zt),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:zt,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(jt,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var $t=this.props,It=($t.src,$t.theme),an=$t.hidden,nn=$t.rowHovered,Yt=Rt(It,"copy-to-clipboard").style,zt="inline";return an&&(zt="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:zt}),onClick:this.handleCopy},this.getClippyIcon()))}}]),jt}(st.a.PureComponent),kr=function(Et){dt(jt,Et);var Lt=ut(jt);function jt($t){var It;return nt(this,jt),(It=Lt.call(this,$t)).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(zt){var gn;switch(bt(zt)){case"undefined":gn="undefined";break;case"nan":gn="NaN";break;case"string":gn=zt;break;case"date":case"function":case"regexp":gn=zt.toString();break;default:try{gn=JSON.stringify(zt,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,zt=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(zt,"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,zt=ft(It).props;switch(Yt){case!1:return It.getEditInput();case"string":return st.a.createElement(_n,Object.assign({value:an.value},zt));case"integer":return st.a.createElement(bn,Object.assign({value:an.value},zt));case"float":return st.a.createElement(Gt,Object.assign({value:an.value},zt));case"boolean":return st.a.createElement(Jt,Object.assign({value:an.value},zt));case"function":return st.a.createElement(wn,Object.assign({value:an.value},zt));case"null":return st.a.createElement(Sn,zt);case"nan":return st.a.createElement(fn,zt);case"undefined":return st.a.createElement(ln,zt);case"date":return st.a.createElement(Qt,Object.assign({value:an.value},zt));case"regexp":return st.a.createElement(hn,Object.assign({value:an.value},zt));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 zt=Yt.target.value,gn=Tn(zt);It.setState({editValue:zt,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,zt=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:zt,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),zt=(Yt.type,Yt.value,It.getDetectedInput());if(zt)return st.a.createElement("div",null,st.a.createElement("div",Rt(nn,"detected-row"),zt,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,zt=ft(It).props,gn=zt.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},zt));case"integer":return st.a.createElement(bn,Object.assign({value:Yt},zt));case"float":return st.a.createElement(Gt,Object.assign({value:Yt},zt));case"boolean":return st.a.createElement(Jt,Object.assign({value:Yt},zt));case"function":return st.a.createElement(wn,Object.assign({value:Yt},zt));case"null":return st.a.createElement(Sn,zt);case"nan":return st.a.createElement(fn,zt);case"undefined":return st.a.createElement(ln,zt);case"date":return st.a.createElement(Qt,Object.assign({value:new Date(Yt)},zt))}},It.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},It}return at(jt,[{key:"render",value:function(){var $t=this,It=this.props,an=It.variable,nn=It.singleIndent,Yt=It.type,zt=It.theme,gn=It.namespace,Wn=It.indentWidth,Gn=It.enableClipboard,Kn=It.onEdit,er=It.onDelete,Un=It.onSelect,Qn=It.displayArrayKey,ir=It.quotesOnKeys,Jn=this.state.editMode;return st.a.createElement("div",Object.assign({},Rt(zt,"objectKeyVal",{paddingLeft:Wn*nn}),{onMouseEnter:function(){return $t.setState(rt(rt({},$t.state),{},{hovered:!0}))},onMouseLeave:function(){return $t.setState(rt(rt({},$t.state),{},{hovered:!1}))},className:"variable-row",key:an.name}),Yt=="array"?Qn?st.a.createElement("span",Object.assign({},Rt(zt,"array-key"),{key:an.name+"_"+gn}),an.name,st.a.createElement("div",Rt(zt,"colon"),":")):null:st.a.createElement("span",null,st.a.createElement("span",Object.assign({},Rt(zt,"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(zt,"colon"),":")),st.a.createElement("div",Object.assign({className:"variable-value",onClick:Un===!1&&Kn===!1?null:function(vr){var hr=En(gn);(vr.ctrlKey||vr.metaKey)&&Kn!==!1?$t.prepopInput(an):Un!==!1&&(hr.shift(),Un(rt(rt({},an),{},{namespace:hr})))}},Rt(zt,"variableValue",{cursor:Un===!1?"default":"pointer"})),this.getValue(an,Jn)),Gn?st.a.createElement(xr,{rowHovered:this.state.hovered,hidden:Jn,src:an.value,clickCallback:Gn,theme:zt,namespace:[].concat(En(gn),[an.name])}):null,Kn!==!1&&Jn==0?this.getEditIcon():null,er!==!1&&Jn==0?this.getRemoveIcon():null)}}]),jt}(st.a.PureComponent),Tr=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){var $t;nt(this,jt);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])})})}})))},$t.getRemoveObject=function(Yt){var zt=$t.props,gn=zt.theme,Wn=(zt.hover,zt.namespace),Gn=zt.name,Kn=zt.src,er=zt.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}})}})))},$t.render=function(){var Yt=$t.props,zt=Yt.theme,gn=Yt.onDelete,Wn=Yt.onAdd,Gn=Yt.enableClipboard,Kn=Yt.src,er=Yt.namespace,Un=Yt.rowHovered;return st.a.createElement("div",Object.assign({},Rt(zt,"object-meta-data"),{className:"object-meta-data",onClick:function(Qn){Qn.stopPropagation()}}),$t.getObjectSize(),Gn?st.a.createElement(xr,{rowHovered:Un,clickCallback:Gn,src:Kn,theme:zt,namespace:er}):null,Wn!==!1?$t.getAddAttribute(Un):null,gn!==!1?$t.getRemoveObject(Un):null)},$t}return jt}(st.a.PureComponent);function Pr(Et){var Lt=Et.parent_type,jt=Et.namespace,$t=Et.quotesOnKeys,It=Et.theme,an=Et.jsvRoot,nn=Et.name,Yt=Et.displayArrayKey,zt=Et.name?Et.name:"";return!an||nn!==!1&&nn!==null?Lt=="array"?Yt?st.a.createElement("span",Object.assign({},Rt(It,"array-key"),{key:jt}),st.a.createElement("span",{className:"array-key"},zt),st.a.createElement("span",Rt(It,"colon"),":")):st.a.createElement("span",null):st.a.createElement("span",Object.assign({},Rt(It,"object-name"),{key:jt}),st.a.createElement("span",{className:"object-key"},$t&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"'),st.a.createElement("span",null,zt),$t&&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(jt,Et);var Lt=ut(jt);function jt($t){var It;return nt(this,jt),(It=Lt.call(this,$t)).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(jt,[{key:"getExpandedIcon",value:function($t){var It=this.props,an=It.theme,nn=It.iconStyle;return this.state.expanded[$t]?st.a.createElement(Ir,{theme:an,iconStyle:nn}):st.a.createElement(Wr,{theme:an,iconStyle:nn})}},{key:"render",value:function(){var $t=this,It=this.props,an=It.src,nn=It.groupArraysAfterLength,Yt=(It.depth,It.name),zt=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 Un=nn,Qn=Math.ceil(an.length/Un);return st.a.createElement("div",Object.assign({className:"object-key-val"},Rt(zt,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(zt,"objectKeyVal",{marginLeft:6,paddingLeft:er})),st.a.createElement("span",Rt(zt,"brace-row"),st.a.createElement("div",Object.assign({className:"icon-container"},Rt(zt,"icon-container"),{onClick:function(vr){$t.toggleCollapsed(Jn)}}),$t.getExpandedIcon(Jn)),$t.state.expanded[Jn]?st.a.createElement(kt,Object.assign({key:Yt+Jn,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Un,index_offset:Jn*Un,src:an.slice(Jn*Un,Jn*Un+Un),namespace:Wn,type:"array",parent_type:"array_group",theme:zt},Gn)):st.a.createElement("span",Object.assign({},Rt(zt,"brace"),{onClick:function(vr){$t.toggleCollapsed(Jn)},className:"array-group-brace"}),"[",st.a.createElement("div",Object.assign({},Rt(zt,"array-group-meta-data"),{className:"array-group-meta-data"}),st.a.createElement("span",Object.assign({className:"object-size"},Rt(zt,"object-size")),Jn*Un," - ",Jn*Un+Un>an.length?an.length:Jn*Un+Un)),"]")))}))}}]),jt}(st.a.PureComponent),Zr=function(Et){dt(jt,Et);var Lt=ut(jt);function jt($t){var It;nt(this,jt),(It=Lt.call(this,$t)).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,zt){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,zt)))},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,zt=(Yt.rjvId,Yt.theme,It.state),gn=zt.size,Wn=zt.hovered;return st.a.createElement(Tr,Object.assign({rowHovered:Wn,size:gn},It.props))},It.renderObjectContents=function(nn,Yt){var zt,gn=It.props,Wn=gn.depth,Gn=gn.parent_type,Kn=gn.index_offset,er=gn.groupArraysAfterLength,Un=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(zt=new mo(vr,nn[vr]),Gn==="array_group"&&Kn&&(zt.name=parseInt(zt.name)+Kn),nn.hasOwnProperty(vr))if(zt.type==="object")ir.push(st.a.createElement(kt,Object.assign({key:zt.name,depth:Wn+1,name:zt.name,src:zt.value,namespace:Un.concat(zt.name),parent_type:Qn},Yt)));else if(zt.type==="array"){var hr=kt;er&&zt.value.length>er&&(hr=Qr),ir.push(st.a.createElement(hr,Object.assign({key:zt.name,depth:Wn+1,name:zt.name,src:zt.value,namespace:Un.concat(zt.name),type:"array",parent_type:Qn},Yt)))}else ir.push(st.a.createElement(kr,Object.assign({key:zt.name+"_"+Un,variable:zt,singleIndent:5,namespace:Un,type:It.props.type},Yt)))}),ir};var an=jt.getState($t);return It.state=rt(rt({},an),{},{prevProps:{}}),It}return at(jt,[{key:"getBraceStart",value:function($t,It){var an=this,nn=this.props,Yt=nn.src,zt=nn.theme,gn=nn.iconStyle;if(nn.parent_type==="array_group")return st.a.createElement("span",null,st.a.createElement("span",Rt(zt,"brace"),$t==="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(zt,"brace-row")),st.a.createElement("div",Object.assign({className:"icon-container"},Rt(zt,"icon-container")),st.a.createElement(Wn,{theme:zt,iconStyle:gn})),st.a.createElement(Pr,this.props),st.a.createElement("span",Rt(zt,"brace"),$t==="array"?"[":"{")),It?this.getObjectMetaData(Yt):null)}},{key:"render",value:function(){var $t=this,It=this.props,an=It.depth,nn=It.src,Yt=(It.namespace,It.name,It.type,It.parent_type),zt=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,Un=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 $t.setState(rt(rt({},$t.state),{},{hovered:!0}))},onMouseLeave:function(){return $t.setState(rt(rt({},$t.state),{},{hovered:!1}))}},Rt(zt,gn?"jsv-root":"objectKeyVal",Qn)),this.getBraceStart(er,Un),Un?this.getObjectContent(an,nn,rt({theme:zt,iconStyle:Wn},Gn)):this.getEllipsis(),st.a.createElement("span",{className:"brace-row"},st.a.createElement("span",{style:rt(rt({},Rt(zt,"brace").style),{},{paddingLeft:Un?"3px":"0px"})},er==="array"?"]":"}"),Un?null:this.getObjectMetaData(nn)))}}],[{key:"getDerivedStateFromProps",value:function($t,It){var an=It.prevProps;return $t.src!==an.src||$t.collapsed!==an.collapsed||$t.name!==an.name||$t.namespace!==an.namespace||$t.rjvId!==an.rjvId?rt(rt({},jt.getState($t)),{},{prevProps:$t}):null}}]),jt}(st.a.PureComponent);Zr.getState=function(Et){var Lt=Object.keys(Et.src).length,jt=(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",jt),object_type:Et.type==="array"?"array":"object",parent_type:Et.type==="array"?"array":"object",size:Lt,hovered:!1}};var mo=function Et(Lt,jt){nt(this,Et),this.name=Lt,this.value=jt,this.type=bt(jt)};St(Zr);var kt=Zr,Bt=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){var $t;nt(this,jt);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:zt,depth:0,jsvRoot:!0},Yt))))},$t}return jt}(st.a.PureComponent),Pt=function(Et){dt(jt,Et);var Lt=ut(jt);function jt($t){var It;return nt(this,jt),(It=Lt.call(this,$t)).closeModal=function(){Rn.dispatch({rjvId:It.props.rjvId,name:"RESET"})},It.submit=function(){It.props.submit(It.state.input)},It.state={input:$t.input?$t.input:""},It}return at(jt,[{key:"render",value:function(){var $t=this,It=this.props,an=It.theme,nn=It.rjvId,Yt=It.isValid,zt=this.state.input,gn=Yt(zt);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:zt,placeholder:"...",onChange:function(Wn){$t.setState({input:Wn.target.value})},onKeyPress:function(Wn){gn&&Wn.key==="Enter"?$t.submit():Wn.key==="Escape"&&$t.closeModal()}})),gn?st.a.createElement(or,Object.assign({},Rt(an,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Wn){return $t.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"})}})))))}}]),jt}(st.a.PureComponent),gt=function(Et){dt(jt,Et);var Lt=ut(jt);function jt(){var $t;nt(this,jt);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:"telegram-wallet",name:"Wallet",imageUrl:"https://wallet.tg/images/logo-288.png",aboutUrl:"https://wallet.tg/",universalLink:"https://t.me/wallet?attach=wallet",bridgeUrl:"https://bridge.ton.space/bridge",platforms:["ios","android","macos","windows","linux"]},{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://tc.nicegram.app/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"tokenpocket",name:"TokenPocket",imageUrl:"https://hk.tpstatic.net/logo/tokenpocket.png",aboutUrl:"https://www.tokenpocket.pro",universalLink:"https://tp-lab.tptool.pro/ton-connect/",jsBridgeKey:"tokenpocket",bridgeUrl:"https://ton-connect.mytokenpocket.vip/bridge",platforms:["ios","android","macos","windows","linux"]},{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",deepLink:"trust://ton-connect",jsBridgeKey:"trustwalletTon",platforms:["chrome","ios","android"]},{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"]},{appName:"tomoWallet",name:"Tomo Wallet",imageUrl:"https://pub.tomo.inc/logo.png",aboutUrl:"https://www.tomo.inc/",universalLink:"https://t.me/tomowalletbot?attach=wallet",bridgeUrl:"https://go-bridge.tomo.inc/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"hpyTonWallet",name:"HyperPay Wallet",imageUrl:"https://onchain-oss.hyperpay.online/images/logo.png",aboutUrl:"https://www.hyperpay.tech",universalLink:"https://www.hyperpay.tech/download&deeplink=hyperpay://web3/wallet/tonconnect",jsBridgeKey:"hpyTonWallet",bridgeUrl:"https://onchain-wallet.hyperpay.online/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"unstoppable",name:"Unstoppable Wallet",imageUrl:"https://unstoppable.money/logo288.png",aboutUrl:"https://unstoppable.money/",universalLink:"https://unstoppable.money/ton-connect",bridgeUrl:"https://bridge.unstoppable.money/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"foxwallet",name:"FoxWallet",imageUrl:"https://hc.foxwallet.com/img/logo.png",aboutUrl:"https://foxwallet.com/",universalLink:"https://link.foxwallet.com/tc",jsBridgeKey:"foxwallet",bridgeUrl:"https://connect.foxwallet.com/ton/bridge",platforms:["ios","android"]},{appName:"jambo",name:"Jambo",imageUrl:"https://cdn-prod.jambotechnology.xyz/content/jambo_288x288_02da416a6c.png",aboutUrl:"https://www.jambo.technology/",deepLink:"jambotc://",universalLink:"https://jambophone.xyz/",bridgeUrl:"https://bridge.tonapi.io/bridge",jsBridgeKey:"jambowallet",platforms:["android","macos","windows","linux"]}]},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),ct=d(4331),ht=d.n(ct),ft=d(5610),lt=d.n(ft),ut=d(7483),pt=d.n(ut),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,zn,vn){var Zn=ln.c;Cn==="theme"&&(ln.$container.rmClass(Zn("theme-".concat(vn))).addClass(Zn("theme-".concat(zn))),Jt()(ln.subComponents,function(Ln){return Ln.setOption("theme",zn)}))}),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 zn=Mn[Cn];Mn[Cn]=Pn,ln.emit("optionChange",Cn,Pn,zn)})}},{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,zr){return function(Sr){if(Array.isArray(Sr))return Sr}(Er)||function(Sr,Ut){var Zt=Sr==null?null:typeof Symbol<"u"&&Sr[Symbol.iterator]||Sr["@@iterator"];if(Zt!=null){var mn,$n,br,fr,_r=[],Cr=!0,Rr=!1;try{if(br=(Zt=Zt.call(Sr)).next,Ut===0){if(Object(Zt)!==Zt)return;Cr=!1}else for(;!(Cr=(mn=br.call(Zt)).done)&&(_r.push(mn.value),_r.length!==Ut);Cr=!0);}catch(Yr){Rr=!0,$n=Yr}finally{try{if(!Cr&&Zt.return!=null&&(fr=Zt.return(),Object(fr)!==fr))return}finally{if(Rr)throw $n}}return _r}}(Er,zr)||(0,j.Z)(Er,zr)||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),ct=d.n(dt),ht=d(3367),ft=d.n(ht),lt=d(6341),ut=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),Ot=d(3023),Rt=d.n(Ot);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 zr="luna-".concat(Er,"-");function Sr(Ut){return Qt()(Vt()(Ut).split(/\s+/),function(Zt){return ut()(Zt,zr)?Zt:Zt.replace(/[\w-]+/,function(mn){return"".concat(zr).concat(mn)})}).join(" ")}return function(Ut){if(/<[^>]*>/g.test(Ut))try{var Zt=yn().parse(Ut);return ln(Zt,function(mn){mn.attrs&&mn.attrs.class&&(mn.attrs.class=Sr(mn.attrs.class))}),yn().stringify(Zt)}catch{return Sr(Ut)}return Sr(Ut)}}function ln(Er,zr){for(var Sr=0,Ut=Er.length;Sr1&&arguments[1]!==void 0?arguments[1]:{},Ut=Sr.topObj,Zt=Sr.level,mn=Zt===void 0?0:Zt,$n=Sr.getterVal,br=$n!==void 0&&$n,fr=Sr.unenumerable,_r=fr===void 0||fr,Cr="",Rr="",Yr=5,Gr=[],oo=[],po="";Ut=Ut||Er;var Hr={getterVal:br,unenumerable:_r,level:mn+1},ao=mn===0,yo=''),bo=''),So=''),Io=''),vo=''),jo=''),Eo=function(Xr){return ct()(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),ut()(Cn,Xr)||st()(Xr,"Array[")?jo+Eo(Xr)+wo:(Xr.length>100&&(Xr=Mt()(Xr,100,{separator:" ",ellipsis:"…"})),Io+Eo('"'.concat(Xr,'"'))+wo)}function Lo(Xr){if(zr>Yr)po=", …";else{var os=Ao(vn(Xr));if(!br){var Bo=Object.getOwnPropertyDescriptor(Er,Xr);if(Bo&&Bo.get)return Gr.push("".concat(os,": ").concat(Co("(...)"))),void zr++}Gr.push("".concat(os,": ").concat(Pn(Ut[Xr],Hr))),zr++}}try{Rr={}.toString.call(Er)}catch{Rr="[object Object]"}var Po,No=Rr=="[object Array]",Fo=Rr=="[object Object]",Ho=Rr=="[object Number]",Oo=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(Oo)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,Ut=(0,at.Z)(Er);if(zr){var Zt=(0,at.Z)(this).constructor;Sr=Reflect.construct(Ut,arguments,Zt)}else Sr=Ut.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 zr=ro(Sr);function Sr(Ut,Zt){var mn,$n=Zt.type,br=$n===void 0?"log":$n,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=zr.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=Ut,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 Ut=this.group,Zt=!1;Ut;){if(Ut.collapsed){Zt=!0;break}Ut=Ut.parent}return Zt!==this.collapsed&&(this.collapsed=Zt,!0)}},{key:"updateIcon",value:function(Ut){var Zt=this.console.c;return this.$container.find(Zt(".icon-container")).find(Zt(".icon")).rmAttr("class").addClass([Zt("icon"),Zt("icon-".concat(Ut))]),this}},{key:"addCount",value:function(){this.count++;var Ut=this.$container,Zt=this.count,mn=this.console.c,$n=Ut.find(mn(".count-container")),br=Ut.find(mn(".icon-container")),fr=$n.find(mn(".count"));return Zt===2&&$n.rmClass(mn("hidden")),fr.text(ft()(Zt)),br.addClass(mn("hidden")),this}},{key:"groupEnd",value:function(){var Ut=this.$container,Zt=this.console.c;return Ut.find(".".concat(Zt("nesting-level"),":not(.").concat(Zt("group-closed"),")")).last().addClass(Zt("group-closed")),this}},{key:"updateTime",value:function(Ut){var Zt=this.$container.find(this.console.c(".time-container"));return this.header&&(Zt.find("span").eq(0).text(Ut),this.header.time=Ut),this}},{key:"isAttached",value:function(){return!!this.container.parentNode}},{key:"isSimple",value:function(){return!nr()(this.args,function(Ut){return Tn()(Ut)})}},{key:"updateSize",value:function(){var Ut=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],Zt=this.container.getBoundingClientRect(),mn=Zt.width,$n=Zt.height-1;this.height!==$n&&(this.height=$n,Ut||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 Ut=this.args,Zt="";St()(Ut,function(mn,$n){$n!==0&&(Zt+=" "),Tn()(mn)?Zt+=Kn()(mn):Zt+=ft()(mn)}),Un()(Zt)}},{key:"bindEvent",value:function(){var Ut=this,Zt=this.console.c,mn=this;this.resizeSensor.addListener(this.onResize),this.$container.on("click",Zt(".dom-viewer"),function($n){return $n.stopPropagation()}).on("click",Zt(".preview"),function($n){$n.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 Ut.click()})}},{key:"renderEl",value:function(){var Ut=this.elements,Zt=this.console.c,mn=this;this.$container.find(Zt(".dom-viewer")).each(function(){var $n=It()(this).data("id");new An.Z(this,{node:Ut[$n],theme:mn.console.getOption("theme")})})}},{key:"renderObjectViewer",value:function(Ut){var Zt=this.console,mn=this.unenumerable,$n=this.accessGetter,br=this.lazyEvaluation,fr=Zt.c,_r=It()(Ut),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:$n});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(Ut){var Zt=this,mn="__LunaConsoleValue",$n=this.columns,br=this.$container,fr=this.console,_r=fr.c,Cr=br.find(_r(".data-grid")),Rr=Ut[0],Yr=new Dn.Z(Cr.get(0),{columns:ur()([{id:"(index)",title:"(index)",sortable:!0}],Qt()($n,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)};$n.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(Ut){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},mn=arguments.length>2?arguments[2]:void 0,$n=this.accessGetter,br=this.unenumerable;Vn()(Zt,{accessGetter:$n,unenumerable:br,symbol:br,timeout:1e3}),function(fr,_r,Cr){var Rr=ir()(fr,_r);vr()(function(){return Cr(Rr)})}(Ut,Zt,function(fr){return mn(JSON.parse(fr))})}},{key:"click",value:function(){var Ut=this.type,Zt=this.$container,mn=this.console,$n=mn.c;switch(Ut){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($n(".stack")).toggleClass($n("hidden"))}}},{key:"formatMsg",value:function(){var Ut=this.args,Zt=this.type,mn=this.id,$n=this.header,br=this.group,fr=this.console.c;Ut=Nt()(Ut);var _r,Cr,Rr="";switch(Zt!=="group"&&Zt!=="groupCollapsed"||Ut.length===0&&(Ut=["console.group"]),Zt){case"log":case"info":case"debug":Rr=this.formatCommon(Ut);break;case"dir":Rr=this.formatDir(Ut);break;case"warn":_r="warn",Rr=this.formatCommon(Ut);break;case"error":yr()(Ut[0])&&Ut.length!==1&&(Ut=this.substituteStr(Ut)),Cr=Ut[0],_r="error",Cr=Xn()(Cr)?Cr:new Error(this.formatCommon(Ut)),Rr=this.formatErr(Cr);break;case"table":Rr=this.formatTable(Ut);break;case"html":Rr=Ut[0];break;case"input":Rr=this.formatJs(Ut[0]),_r="input";break;case"output":Rr=this.formatCommon(Ut),_r="output";break;case"groupCollapsed":Rr=this.formatCommon(Ut),_r="caret-right";break;case"group":Rr=this.formatCommon(Ut),_r="caret-down"}ut()(["log","debug","warn"],Zt)&&this.isSimple()&&(Rr=jn()(Rr,function(Yr){return'').concat(Yr,"")})),Rr=this.render({msg:Rr,type:Zt,icon:_r,id:mn,header:$n,group:br}),this.$container.addClass("".concat(fr("log-container"))).html(Rr),Zt==="table"&&(_t()(this.columns)||this.renderTable(Ut)),_t()(this.elements)||this.renderEl(),this.$content=this.$container.find(fr(".log-content")),this.content=this.$content.get(0)}},{key:"render",value:function(Ut){var Zt=this.console.c,mn="",$n="";if(Ut.group)for(var br=Ut.group.indentLevel,fr=0;fr');Ut.header&&(mn+=Ar()(Zn||(Zn=(0,k.Z)([`
`,` diff --git a/docs/index.html b/docs/index.html index 1cb1b8a..082ea69 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,7 +8,7 @@ Demo Dapp with @tonconnect/ui-react - +