From a2de1d6bc5ea905da3c3c3ae5ce117905c35221a Mon Sep 17 00:00:00 2001
From: thekiba
Date: Thu, 17 Oct 2024 21:33:00 +0800
Subject: [PATCH] chore: rebuild
---
docs/assets/{index-6d99548d.js => index-ea3a1866.js} | 2 +-
docs/assets/{worker-2c344dd1.js => worker-7201ecfc.js} | 2 +-
docs/index.html | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
rename docs/assets/{index-6d99548d.js => index-ea3a1866.js} (99%)
rename docs/assets/{worker-2c344dd1.js => worker-7201ecfc.js} (99%)
diff --git a/docs/assets/index-6d99548d.js b/docs/assets/index-ea3a1866.js
similarity index 99%
rename from docs/assets/index-6d99548d.js
rename to docs/assets/index-ea3a1866.js
index ba7a943..1556a9a 100644
--- a/docs/assets/index-6d99548d.js
+++ b/docs/assets/index-ea3a1866.js
@@ -1471,4 +1471,4 @@ 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 It.getDerivedStateFromProps=="function"&&(Nt.componentWillMount=Ct,Nt.componentWillReceiveProps=xt),typeof Nt.getSnapshotBeforeUpdate=="function"){if(typeof Nt.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");Nt.componentWillUpdate=wt;var tn=Nt.componentDidUpdate;Nt.componentDidUpdate=function(Gt,xn,Gn){var Jn=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Gn;tn.call(this,Gt,xn,Jn)}}return It}function kt(It,Nt){if(It==null)return{};var Rt,Wt,Pt=function(un,tn){if(un==null)return{};var Gt,xn,Gn={},Jn=Object.keys(un);for(xn=0;xn=0||(Gn[Gt]=un[Gt]);return Gn}(It,Nt);if(Object.getOwnPropertySymbols){var hn=Object.getOwnPropertySymbols(It);for(Wt=0;Wt=0||Object.prototype.propertyIsEnumerable.call(It,Rt)&&(Pt[Rt]=It[Rt])}return Pt}function _t(It){var Nt=function(Rt){return{}.toString.call(Rt).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(It);return Nt==="number"&&(Nt=isNaN(It)?"nan":(0|It)!=It?"float":"integer"),Nt}Ct.__suppressDeprecationWarning=!0,xt.__suppressDeprecationWarning=!0,wt.__suppressDeprecationWarning=!0;var Tt={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"},At={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)"},Et={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"},jt=$(45),Lt=function(It){var Nt=function(Rt){return{backgroundColor:Rt.base00,ellipsisColor:Rt.base09,braceColor:Rt.base07,expandedIcon:Rt.base0D,collapsedIcon:Rt.base0E,keyColor:Rt.base07,arrayKeyColor:Rt.base0C,objectSize:Rt.base04,copyToClipboard:Rt.base0F,copyToClipboardCheck:Rt.base0D,objectBorder:Rt.base02,dataTypes:{boolean:Rt.base0E,date:Rt.base0D,float:Rt.base0B,function:Rt.base0D,integer:Rt.base0F,string:Rt.base09,nan:Rt.base08,null:Rt.base0A,undefined:Rt.base05,regexp:Rt.base0A,background:Rt.base02},editVariable:{editIcon:Rt.base0E,cancelIcon:Rt.base09,removeIcon:Rt.base09,addIcon:Rt.base0E,checkIcon:Rt.base0E,background:Rt.base01,color:Rt.base0A,border:Rt.base07},addKeyModal:{background:Rt.base05,border:Rt.base04,color:Rt.base0A,labelColor:Rt.base01},validationFailure:{background:Rt.base09,iconColor:Rt.base01,fontColor:Rt.base01}}}(It);return{"app-container":{fontFamily:Et.globalFontFamily,cursor:Et.globalCursor,backgroundColor:Nt.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:Nt.ellipsisColor,fontSize:Et.ellipsisFontSize,lineHeight:Et.ellipsisLineHeight,cursor:Et.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:Et.braceCursor,fontWeight:Et.braceFontWeight,color:Nt.braceColor},"expanded-icon":{color:Nt.expandedIcon},"collapsed-icon":{color:Nt.collapsedIcon},colon:{display:"inline-block",margin:Et.keyMargin,color:Nt.keyColor,verticalAlign:"top"},objectKeyVal:function(Rt,Wt){return{style:rt({paddingTop:Et.keyValPaddingTop,paddingRight:Et.keyValPaddingRight,paddingBottom:Et.keyValPaddingBottom,borderLeft:Et.keyValBorderLeft+" "+Nt.objectBorder,":hover":{paddingLeft:Wt.paddingLeft-1+"px",borderLeft:Et.keyValBorderHover+" "+Nt.objectBorder}},Wt)}},"object-key-val-no-border":{padding:Et.keyValPadding},"pushed-content":{marginLeft:Et.pushedContentMarginLeft},variableValue:function(Rt,Wt){return{style:rt({display:"inline-block",paddingRight:Et.variableValuePaddingRight,position:"relative"},Wt)}},"object-name":{display:"inline-block",color:Nt.keyColor,letterSpacing:Et.keyLetterSpacing,fontStyle:Et.keyFontStyle,verticalAlign:Et.keyVerticalAlign,opacity:Et.keyOpacity,":hover":{opacity:Et.keyOpacityHover}},"array-key":{display:"inline-block",color:Nt.arrayKeyColor,letterSpacing:Et.keyLetterSpacing,fontStyle:Et.keyFontStyle,verticalAlign:Et.keyVerticalAlign,opacity:Et.keyOpacity,":hover":{opacity:Et.keyOpacityHover}},"object-size":{color:Nt.objectSize,borderRadius:Et.objectSizeBorderRadius,fontStyle:Et.objectSizeFontStyle,margin:Et.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:Et.dataTypeFontSize,marginRight:Et.dataTypeMarginRight,opacity:Et.datatypeOpacity},boolean:{display:"inline-block",color:Nt.dataTypes.boolean},date:{display:"inline-block",color:Nt.dataTypes.date},"date-value":{marginLeft:Et.dateValueMarginLeft},float:{display:"inline-block",color:Nt.dataTypes.float},function:{display:"inline-block",color:Nt.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:Nt.dataTypes.integer},string:{display:"inline-block",color:Nt.dataTypes.string},nan:{display:"inline-block",color:Nt.dataTypes.nan,fontSize:Et.nanFontSize,fontWeight:Et.nanFontWeight,backgroundColor:Nt.dataTypes.background,padding:Et.nanPadding,borderRadius:Et.nanBorderRadius},null:{display:"inline-block",color:Nt.dataTypes.null,fontSize:Et.nullFontSize,fontWeight:Et.nullFontWeight,backgroundColor:Nt.dataTypes.background,padding:Et.nullPadding,borderRadius:Et.nullBorderRadius},undefined:{display:"inline-block",color:Nt.dataTypes.undefined,fontSize:Et.undefinedFontSize,padding:Et.undefinedPadding,borderRadius:Et.undefinedBorderRadius,backgroundColor:Nt.dataTypes.background},regexp:{display:"inline-block",color:Nt.dataTypes.regexp},"copy-to-clipboard":{cursor:Et.clipboardCursor},"copy-icon":{color:Nt.copyToClipboard,fontSize:Et.iconFontSize,marginRight:Et.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:Nt.copyToClipboardCheck,marginLeft:Et.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:Et.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:Et.metaDataPadding},"icon-container":{display:"inline-block",width:Et.iconContainerWidth},tooltip:{padding:Et.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:Nt.editVariable.removeIcon,cursor:Et.iconCursor,fontSize:Et.iconFontSize,marginRight:Et.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:Nt.editVariable.addIcon,cursor:Et.iconCursor,fontSize:Et.iconFontSize,marginRight:Et.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:Nt.editVariable.editIcon,cursor:Et.iconCursor,fontSize:Et.iconFontSize,marginRight:Et.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:Et.iconCursor,color:Nt.editVariable.checkIcon,fontSize:Et.iconFontSize,paddingRight:Et.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:Et.iconCursor,color:Nt.editVariable.cancelIcon,fontSize:Et.iconFontSize,paddingRight:Et.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:Et.editInputMinWidth,borderRadius:Et.editInputBorderRadius,backgroundColor:Nt.editVariable.background,color:Nt.editVariable.color,padding:Et.editInputPadding,marginRight:Et.editInputMarginRight,fontFamily:Et.editInputFontFamily},"detected-row":{paddingTop:Et.detectedRowPaddingTop},"key-modal-request":{position:Et.addKeyCoverPosition,top:Et.addKeyCoverPositionPx,left:Et.addKeyCoverPositionPx,right:Et.addKeyCoverPositionPx,bottom:Et.addKeyCoverPositionPx,backgroundColor:Et.addKeyCoverBackground},"key-modal":{width:Et.addKeyModalWidth,backgroundColor:Nt.addKeyModal.background,marginLeft:Et.addKeyModalMargin,marginRight:Et.addKeyModalMargin,padding:Et.addKeyModalPadding,borderRadius:Et.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:Nt.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:Nt.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:Nt.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:Nt.addKeyModal.labelColor,fontSize:Et.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:Nt.editVariable.addIcon,fontSize:Et.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:Nt.ellipsisColor,fontSize:Et.ellipsisFontSize,lineHeight:Et.ellipsisLineHeight,cursor:Et.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:Nt.validationFailure.fontColor,backgroundColor:Nt.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:Nt.validationFailure.iconColor,fontSize:Et.iconFontSize,transform:"rotate(45deg)"}}};function Bt(It,Nt,Rt){return It||console.error("theme has not been set"),function(Wt){var Pt=Tt;return Wt!==!1&&Wt!=="none"||(Pt=At),Object(jt.createStyling)(Lt,{defaultBase16:Pt})(Wt)}(It)(Nt,Rt)}var Zt=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=(Wt.rjvId,Wt.type_name),hn=Wt.displayDataTypes,un=Wt.theme;return hn?st.a.createElement("span",Object.assign({className:"data-type-label"},Bt(un,"data-type-label")),Pt):null}}]),Rt}(st.a.PureComponent),rn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props;return st.a.createElement("div",Bt(Wt.theme,"boolean"),st.a.createElement(Zt,Object.assign({type_name:"bool"},Wt)),Wt.value?"true":"false")}}]),Rt}(st.a.PureComponent),nn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props;return st.a.createElement("div",Bt(Wt.theme,"date"),st.a.createElement(Zt,Object.assign({type_name:"date"},Wt)),st.a.createElement("span",Object.assign({className:"date-value"},Bt(Wt.theme,"date-value")),Wt.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),Rt}(st.a.PureComponent),Qt=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props;return st.a.createElement("div",Bt(Wt.theme,"float"),st.a.createElement(Zt,Object.assign({type_name:"float"},Wt)),this.props.value)}}]),Rt}(st.a.PureComponent);function Vt(It,Nt){(Nt==null||Nt>It.length)&&(Nt=It.length);for(var Rt=0,Wt=new Array(Nt);Rt"u"||It[Symbol.iterator]==null){if(Array.isArray(It)||(Rt=fn(It))||Nt&&It&&typeof It.length=="number"){Rt&&(It=Rt);var Wt=0,Pt=function(){};return{s:Pt,n:function(){return Wt>=It.length?{done:!0}:{done:!1,value:It[Wt++]}},e:function(Gt){throw Gt},f:Pt}}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 hn,un=!0,tn=!1;return{s:function(){Rt=It[Symbol.iterator]()},n:function(){var Gt=Rt.next();return un=Gt.done,Gt},e:function(Gt){tn=!0,hn=Gt},f:function(){try{un||Rt.return==null||Rt.return()}finally{if(tn)throw hn}}}}function jn(It){return function(Nt){if(Array.isArray(Nt))return Vt(Nt)}(It)||function(Nt){if(typeof Symbol<"u"&&Symbol.iterator in Object(Nt))return Array.from(Nt)}(It)||fn(It)||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 _n=$(46),Bn=new($(47)).Dispatcher,Yn=new(function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){var Wt;nt(this,Rt);for(var Pt=arguments.length,hn=new Array(Pt),un=0;unPt&&(tn.style.cursor="pointer",this.state.collapsed&&(un=st.a.createElement("span",null,un.substring(0,Pt),st.a.createElement("span",Bt(hn,"ellipsis")," ...")))),st.a.createElement("div",Bt(hn,"string"),st.a.createElement(Zt,Object.assign({type_name:"string"},Wt)),st.a.createElement("span",Object.assign({className:"string-value"},tn,{onClick:this.toggleCollapsed}),'"',un,'"'))}}]),Rt}(st.a.PureComponent),gn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){return st.a.createElement("div",Bt(this.props.theme,"undefined"),"undefined")}}]),Rt}(st.a.PureComponent);function Ln(){return(Ln=Object.assign||function(It){for(var Nt=1;Nt=0||(Hn[mr]=rr[mr]);return Hn}(It,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Gn,Jn=xn.value!==void 0,er=Object(gt.useRef)(null),ir=zn(er,Nt),Kn=Object(gt.useRef)(0),nr=Object(gt.useRef)(),ur=function(){var rr=er.current,yr=Rt&&nr.current?nr.current:function(hr){var lr=window.getComputedStyle(hr);if(lr===null)return null;var sr,dr=(sr=lr,bn.reduce(function(Mr,Or){return Mr[Or]=sr[Or],Mr},{})),Ar=dr.boxSizing;return Ar===""?null:(Yt&&Ar==="border-box"&&(dr.width=parseFloat(dr.width)+parseFloat(dr.borderRightWidth)+parseFloat(dr.borderLeftWidth)+parseFloat(dr.paddingRight)+parseFloat(dr.paddingLeft)+"px"),{sizingStyle:dr,paddingSize:parseFloat(dr.paddingBottom)+parseFloat(dr.paddingTop),borderSize:parseFloat(dr.borderBottomWidth)+parseFloat(dr.borderTopWidth)})}(rr);if(yr){nr.current=yr;var mr=function(hr,lr,sr,dr){sr===void 0&&(sr=1),dr===void 0&&(dr=1/0),Wn||((Wn=document.createElement("textarea")).setAttribute("tab-index","-1"),Wn.setAttribute("aria-hidden","true"),Nn(Wn)),Wn.parentNode===null&&document.body.appendChild(Wn);var Ar=hr.paddingSize,Mr=hr.borderSize,Or=hr.sizingStyle,Ir=Or.boxSizing;Object.keys(Or).forEach(function(Pr){var $r=Pr;Wn.style[$r]=Or[$r]}),Nn(Wn),Wn.value=lr;var pn=function(Pr,$r){var Wr=Pr.scrollHeight;return $r.sizingStyle.boxSizing==="border-box"?Wr+$r.borderSize:Wr-$r.paddingSize}(Wn,hr);Wn.value="x";var Lr=Wn.scrollHeight-Ar,Fr=Lr*sr;Ir==="border-box"&&(Fr=Fr+Ar+Mr),pn=Math.max(Fr,pn);var Dr=Lr*dr;return Ir==="border-box"&&(Dr=Dr+Ar+Mr),[pn=Math.min(Dr,pn),Lr]}(yr,rr.value||rr.placeholder||"x",Pt,Wt),Pn=mr[0],Hn=mr[1];Kn.current!==Pn&&(Kn.current=Pn,rr.style.setProperty("height",Pn+"px","important"),Gt(Pn,{rowHeight:Hn}))}};return Object(gt.useLayoutEffect)(ur),Gn=Un(ur),Object(gt.useLayoutEffect)(function(){var rr=function(yr){Gn.current(yr)};return window.addEventListener("resize",rr),function(){window.removeEventListener("resize",rr)}},[]),Object(gt.createElement)("textarea",Ln({},xn,{onChange:function(rr){Jn||ur(),un(rr)},ref:ir}))},pt=Object(gt.forwardRef)(bt);function yt(It){It=It.trim();try{if((It=JSON.stringify(JSON.parse(It)))[0]==="[")return Ut("array",JSON.parse(It));if(It[0]==="{")return Ut("object",JSON.parse(It));if(It.match(/\-?\d+\.\d+/)&&It.match(/\-?\d+\.\d+/)[0]===It)return Ut("float",parseFloat(It));if(It.match(/\-?\d+e-\d+/)&&It.match(/\-?\d+e-\d+/)[0]===It)return Ut("float",Number(It));if(It.match(/\-?\d+/)&&It.match(/\-?\d+/)[0]===It)return Ut("integer",parseInt(It));if(It.match(/\-?\d+e\+\d+/)&&It.match(/\-?\d+e\+\d+/)[0]===It)return Ut("integer",Number(It))}catch{}switch(It=It.toLowerCase()){case"undefined":return Ut("undefined",void 0);case"nan":return Ut("nan",NaN);case"null":return Ut("null",null);case"true":return Ut("boolean",!0);case"false":return Ut("boolean",!1);default:if(It=Date.parse(It))return Ut("date",new Date(It))}return Ut(!1,null)}function Ut(It,Nt){return{type:It,value:Nt}}var an=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{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"})))}}]),Rt}(st.a.PureComponent),sn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{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"})))}}]),Rt}(st.a.PureComponent),Sn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]),un=pr(Pt).style;return st.a.createElement("span",hn,st.a.createElement("svg",{fill:un.color,width:un.height,height:un.width,style:un,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"})))}}]),Rt}(st.a.PureComponent),or=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]),un=pr(Pt).style;return st.a.createElement("span",hn,st.a.createElement("svg",{fill:un.color,width:un.height,height:un.width,style:un,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"})))}}]),Rt}(st.a.PureComponent),Rn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",{style:rt(rt({},pr(Pt).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},st.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),Rt}(st.a.PureComponent),Xn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",{style:rt(rt({},pr(Pt).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},st.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),Rt}(st.a.PureComponent),$n=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{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"}))))}}]),Rt}(st.a.PureComponent),ar=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{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"}))))}}]),Rt}(st.a.PureComponent),Qn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{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"}))))}}]),Rt}(st.a.PureComponent),qn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{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"}))))}}]),Rt}(st.a.PureComponent),fr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{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"}))))}}]),Rt}(st.a.PureComponent),cr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{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"}))))}}]),Rt}(st.a.PureComponent);function pr(It){return It||(It={}),{style:rt(rt({verticalAlign:"middle"},It),{},{color:It.color?It.color:"#000000",height:"1em",width:"1em"})}}var xr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(Wt){var Pt;return nt(this,Rt),(Pt=Nt.call(this,Wt)).copiedTimer=null,Pt.handleCopy=function(){var hn=document.createElement("textarea"),un=Pt.props,tn=un.clickCallback,Gt=un.src,xn=un.namespace;hn.innerHTML=JSON.stringify(Pt.clipboardValue(Gt),null," "),document.body.appendChild(hn),hn.select(),document.execCommand("copy"),document.body.removeChild(hn),Pt.copiedTimer=setTimeout(function(){Pt.setState({copied:!1})},5500),Pt.setState({copied:!0},function(){typeof tn=="function"&&tn({src:Gt,namespace:xn,name:xn[xn.length-1]})})},Pt.getClippyIcon=function(){var hn=Pt.props.theme;return Pt.state.copied?st.a.createElement("span",null,st.a.createElement($n,Object.assign({className:"copy-icon"},Bt(hn,"copy-icon"))),st.a.createElement("span",Bt(hn,"copy-icon-copied"),"✔")):st.a.createElement($n,Object.assign({className:"copy-icon"},Bt(hn,"copy-icon")))},Pt.clipboardValue=function(hn){switch(_t(hn)){case"function":case"regexp":return hn.toString();default:return hn}},Pt.state={copied:!1},Pt}return at(Rt,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var Wt=this.props,Pt=(Wt.src,Wt.theme),hn=Wt.hidden,un=Wt.rowHovered,tn=Bt(Pt,"copy-to-clipboard").style,Gt="inline";return hn&&(Gt="none"),st.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:un?"inline-block":"none"}},st.a.createElement("span",{style:rt(rt({},tn),{},{display:Gt}),onClick:this.handleCopy},this.getClippyIcon()))}}]),Rt}(st.a.PureComponent),kr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(Wt){var Pt;return nt(this,Rt),(Pt=Nt.call(this,Wt)).getEditIcon=function(){var hn=Pt.props,un=hn.variable,tn=hn.theme;return st.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:Pt.state.hovered?"inline-block":"none"}},st.a.createElement(fr,Object.assign({className:"click-to-edit-icon"},Bt(tn,"editVarIcon"),{onClick:function(){Pt.prepopInput(un)}})))},Pt.prepopInput=function(hn){if(Pt.props.onEdit!==!1){var un=function(Gt){var xn;switch(_t(Gt)){case"undefined":xn="undefined";break;case"nan":xn="NaN";break;case"string":xn=Gt;break;case"date":case"function":case"regexp":xn=Gt.toString();break;default:try{xn=JSON.stringify(Gt,null," ")}catch{xn=""}}return xn}(hn.value),tn=yt(un);Pt.setState({editMode:!0,editValue:un,parsedInput:{type:tn.type,value:tn.value}})}},Pt.getRemoveIcon=function(){var hn=Pt.props,un=hn.variable,tn=hn.namespace,Gt=hn.theme,xn=hn.rjvId;return st.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:Pt.state.hovered?"inline-block":"none"}},st.a.createElement(ar,Object.assign({className:"click-to-remove-icon"},Bt(Gt,"removeVarIcon"),{onClick:function(){Bn.dispatch({name:"VARIABLE_REMOVED",rjvId:xn,data:{name:un.name,namespace:tn,existing_value:un.value,variable_removed:!0}})}})))},Pt.getValue=function(hn,un){var tn=!un&&hn.type,Gt=ft(Pt).props;switch(tn){case!1:return Pt.getEditInput();case"string":return st.a.createElement(En,Object.assign({value:hn.value},Gt));case"integer":return st.a.createElement(kn,Object.assign({value:hn.value},Gt));case"float":return st.a.createElement(Qt,Object.assign({value:hn.value},Gt));case"boolean":return st.a.createElement(rn,Object.assign({value:hn.value},Gt));case"function":return st.a.createElement(An,Object.assign({value:hn.value},Gt));case"null":return st.a.createElement(On,Gt);case"nan":return st.a.createElement(mn,Gt);case"undefined":return st.a.createElement(gn,Gt);case"date":return st.a.createElement(nn,Object.assign({value:hn.value},Gt));case"regexp":return st.a.createElement(vn,Object.assign({value:hn.value},Gt));default:return st.a.createElement("div",{className:"object-value"},JSON.stringify(hn.value))}},Pt.getEditInput=function(){var hn=Pt.props.theme,un=Pt.state.editValue;return st.a.createElement("div",null,st.a.createElement(pt,Object.assign({type:"text",inputRef:function(tn){return tn&&tn.focus()},value:un,className:"variable-editor",onChange:function(tn){var Gt=tn.target.value,xn=yt(Gt);Pt.setState({editValue:Gt,parsedInput:{type:xn.type,value:xn.value}})},onKeyDown:function(tn){switch(tn.key){case"Escape":Pt.setState({editMode:!1,editValue:""});break;case"Enter":(tn.ctrlKey||tn.metaKey)&&Pt.submitEdit(!0)}tn.stopPropagation()},placeholder:"update this value",minRows:2},Bt(hn,"edit-input"))),st.a.createElement("div",Bt(hn,"edit-icon-container"),st.a.createElement(ar,Object.assign({className:"edit-cancel"},Bt(hn,"cancel-icon"),{onClick:function(){Pt.setState({editMode:!1,editValue:""})}})),st.a.createElement(cr,Object.assign({className:"edit-check string-value"},Bt(hn,"check-icon"),{onClick:function(){Pt.submitEdit()}})),st.a.createElement("div",null,Pt.showDetected())))},Pt.submitEdit=function(hn){var un=Pt.props,tn=un.variable,Gt=un.namespace,xn=un.rjvId,Gn=Pt.state,Jn=Gn.editValue,er=Gn.parsedInput,ir=Jn;hn&&er.type&&(ir=er.value),Pt.setState({editMode:!1}),Bn.dispatch({name:"VARIABLE_UPDATED",rjvId:xn,data:{name:tn.name,namespace:Gt,existing_value:tn.value,new_value:ir,variable_removed:!1}})},Pt.showDetected=function(){var hn=Pt.props,un=hn.theme,tn=(hn.variable,hn.namespace,hn.rjvId,Pt.state.parsedInput),Gt=(tn.type,tn.value,Pt.getDetectedInput());if(Gt)return st.a.createElement("div",null,st.a.createElement("div",Bt(un,"detected-row"),Gt,st.a.createElement(cr,{className:"edit-check detected",style:rt({verticalAlign:"top",paddingLeft:"3px"},Bt(un,"check-icon").style),onClick:function(){Pt.submitEdit(!0)}})))},Pt.getDetectedInput=function(){var hn=Pt.state.parsedInput,un=hn.type,tn=hn.value,Gt=ft(Pt).props,xn=Gt.theme;if(un!==!1)switch(un.toLowerCase()){case"object":return st.a.createElement("span",null,st.a.createElement("span",{style:rt(rt({},Bt(xn,"brace").style),{},{cursor:"default"})},"{"),st.a.createElement("span",{style:rt(rt({},Bt(xn,"ellipsis").style),{},{cursor:"default"})},"..."),st.a.createElement("span",{style:rt(rt({},Bt(xn,"brace").style),{},{cursor:"default"})},"}"));case"array":return st.a.createElement("span",null,st.a.createElement("span",{style:rt(rt({},Bt(xn,"brace").style),{},{cursor:"default"})},"["),st.a.createElement("span",{style:rt(rt({},Bt(xn,"ellipsis").style),{},{cursor:"default"})},"..."),st.a.createElement("span",{style:rt(rt({},Bt(xn,"brace").style),{},{cursor:"default"})},"]"));case"string":return st.a.createElement(En,Object.assign({value:tn},Gt));case"integer":return st.a.createElement(kn,Object.assign({value:tn},Gt));case"float":return st.a.createElement(Qt,Object.assign({value:tn},Gt));case"boolean":return st.a.createElement(rn,Object.assign({value:tn},Gt));case"function":return st.a.createElement(An,Object.assign({value:tn},Gt));case"null":return st.a.createElement(On,Gt);case"nan":return st.a.createElement(mn,Gt);case"undefined":return st.a.createElement(gn,Gt);case"date":return st.a.createElement(nn,Object.assign({value:new Date(tn)},Gt))}},Pt.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},Pt}return at(Rt,[{key:"render",value:function(){var Wt=this,Pt=this.props,hn=Pt.variable,un=Pt.singleIndent,tn=Pt.type,Gt=Pt.theme,xn=Pt.namespace,Gn=Pt.indentWidth,Jn=Pt.enableClipboard,er=Pt.onEdit,ir=Pt.onDelete,Kn=Pt.onSelect,nr=Pt.displayArrayKey,ur=Pt.quotesOnKeys,rr=this.state.editMode;return st.a.createElement("div",Object.assign({},Bt(Gt,"objectKeyVal",{paddingLeft:Gn*un}),{onMouseEnter:function(){return Wt.setState(rt(rt({},Wt.state),{},{hovered:!0}))},onMouseLeave:function(){return Wt.setState(rt(rt({},Wt.state),{},{hovered:!1}))},className:"variable-row",key:hn.name}),tn=="array"?nr?st.a.createElement("span",Object.assign({},Bt(Gt,"array-key"),{key:hn.name+"_"+xn}),hn.name,st.a.createElement("div",Bt(Gt,"colon"),":")):null:st.a.createElement("span",null,st.a.createElement("span",Object.assign({},Bt(Gt,"object-name"),{className:"object-key",key:hn.name+"_"+xn}),!!ur&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"'),st.a.createElement("span",{style:{display:"inline-block"}},hn.name),!!ur&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"')),st.a.createElement("span",Bt(Gt,"colon"),":")),st.a.createElement("div",Object.assign({className:"variable-value",onClick:Kn===!1&&er===!1?null:function(yr){var mr=jn(xn);(yr.ctrlKey||yr.metaKey)&&er!==!1?Wt.prepopInput(hn):Kn!==!1&&(mr.shift(),Kn(rt(rt({},hn),{},{namespace:mr})))}},Bt(Gt,"variableValue",{cursor:Kn===!1?"default":"pointer"})),this.getValue(hn,rr)),Jn?st.a.createElement(xr,{rowHovered:this.state.hovered,hidden:rr,src:hn.value,clickCallback:Jn,theme:Gt,namespace:[].concat(jn(xn),[hn.name])}):null,er!==!1&&rr==0?this.getEditIcon():null,ir!==!1&&rr==0?this.getRemoveIcon():null)}}]),Rt}(st.a.PureComponent),Tr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){var Wt;nt(this,Rt);for(var Pt=arguments.length,hn=new Array(Pt),un=0;un0?Jn:null,namespace:Gn.splice(0,Gn.length-1),existing_value:er,variable_removed:!1,key_name:null};_t(er)==="object"?Bn.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:ir,data:nr}):Bn.dispatch({name:"VARIABLE_ADDED",rjvId:ir,data:rt(rt({},nr),{},{new_value:[].concat(jn(er),[null])})})}})))},Wt.getRemoveObject=function(tn){var Gt=Wt.props,xn=Gt.theme,Gn=(Gt.hover,Gt.namespace),Jn=Gt.name,er=Gt.src,ir=Gt.rjvId;if(Gn.length!==1)return st.a.createElement("span",{className:"click-to-remove",style:{display:tn?"inline-block":"none"}},st.a.createElement(ar,Object.assign({className:"click-to-remove-icon"},Bt(xn,"removeVarIcon"),{onClick:function(){Bn.dispatch({name:"VARIABLE_REMOVED",rjvId:ir,data:{name:Jn,namespace:Gn.splice(0,Gn.length-1),existing_value:er,variable_removed:!0}})}})))},Wt.render=function(){var tn=Wt.props,Gt=tn.theme,xn=tn.onDelete,Gn=tn.onAdd,Jn=tn.enableClipboard,er=tn.src,ir=tn.namespace,Kn=tn.rowHovered;return st.a.createElement("div",Object.assign({},Bt(Gt,"object-meta-data"),{className:"object-meta-data",onClick:function(nr){nr.stopPropagation()}}),Wt.getObjectSize(),Jn?st.a.createElement(xr,{rowHovered:Kn,clickCallback:Jn,src:er,theme:Gt,namespace:ir}):null,Gn!==!1?Wt.getAddAttribute(Kn):null,xn!==!1?Wt.getRemoveObject(Kn):null)},Wt}return Rt}(st.a.PureComponent);function Br(It){var Nt=It.parent_type,Rt=It.namespace,Wt=It.quotesOnKeys,Pt=It.theme,hn=It.jsvRoot,un=It.name,tn=It.displayArrayKey,Gt=It.name?It.name:"";return!hn||un!==!1&&un!==null?Nt=="array"?tn?st.a.createElement("span",Object.assign({},Bt(Pt,"array-key"),{key:Rt}),st.a.createElement("span",{className:"array-key"},Gt),st.a.createElement("span",Bt(Pt,"colon"),":")):st.a.createElement("span",null):st.a.createElement("span",Object.assign({},Bt(Pt,"object-name"),{key:Rt}),st.a.createElement("span",{className:"object-key"},Wt&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"'),st.a.createElement("span",null,Gt),Wt&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"')),st.a.createElement("span",Bt(Pt,"colon"),":")):st.a.createElement("span",null)}function Rr(It){var Nt=It.theme;switch(It.iconStyle){case"triangle":return st.a.createElement(Xn,Object.assign({},Bt(Nt,"expanded-icon"),{className:"expanded-icon"}));case"square":return st.a.createElement(Sn,Object.assign({},Bt(Nt,"expanded-icon"),{className:"expanded-icon"}));default:return st.a.createElement(an,Object.assign({},Bt(Nt,"expanded-icon"),{className:"expanded-icon"}))}}function Ur(It){var Nt=It.theme;switch(It.iconStyle){case"triangle":return st.a.createElement(Rn,Object.assign({},Bt(Nt,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return st.a.createElement(or,Object.assign({},Bt(Nt,"collapsed-icon"),{className:"collapsed-icon"}));default:return st.a.createElement(sn,Object.assign({},Bt(Nt,"collapsed-icon"),{className:"collapsed-icon"}))}}var Qr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(Wt){var Pt;return nt(this,Rt),(Pt=Nt.call(this,Wt)).toggleCollapsed=function(hn){var un=[];for(var tn in Pt.state.expanded)un.push(Pt.state.expanded[tn]);un[hn]=!un[hn],Pt.setState({expanded:un})},Pt.state={expanded:[]},Pt}return at(Rt,[{key:"getExpandedIcon",value:function(Wt){var Pt=this.props,hn=Pt.theme,un=Pt.iconStyle;return this.state.expanded[Wt]?st.a.createElement(Rr,{theme:hn,iconStyle:un}):st.a.createElement(Ur,{theme:hn,iconStyle:un})}},{key:"render",value:function(){var Wt=this,Pt=this.props,hn=Pt.src,un=Pt.groupArraysAfterLength,tn=(Pt.depth,Pt.name),Gt=Pt.theme,xn=Pt.jsvRoot,Gn=Pt.namespace,Jn=(Pt.parent_type,kt(Pt,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),er=0,ir=5*this.props.indentWidth;xn||(er=5*this.props.indentWidth);var Kn=un,nr=Math.ceil(hn.length/Kn);return st.a.createElement("div",Object.assign({className:"object-key-val"},Bt(Gt,xn?"jsv-root":"objectKeyVal",{paddingLeft:er})),st.a.createElement(Br,this.props),st.a.createElement("span",null,st.a.createElement(Tr,Object.assign({size:hn.length},this.props))),jn(Array(nr)).map(function(ur,rr){return st.a.createElement("div",Object.assign({key:rr,className:"object-key-val array-group"},Bt(Gt,"objectKeyVal",{marginLeft:6,paddingLeft:ir})),st.a.createElement("span",Bt(Gt,"brace-row"),st.a.createElement("div",Object.assign({className:"icon-container"},Bt(Gt,"icon-container"),{onClick:function(yr){Wt.toggleCollapsed(rr)}}),Wt.getExpandedIcon(rr)),Wt.state.expanded[rr]?st.a.createElement(St,Object.assign({key:tn+rr,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Kn,index_offset:rr*Kn,src:hn.slice(rr*Kn,rr*Kn+Kn),namespace:Gn,type:"array",parent_type:"array_group",theme:Gt},Jn)):st.a.createElement("span",Object.assign({},Bt(Gt,"brace"),{onClick:function(yr){Wt.toggleCollapsed(rr)},className:"array-group-brace"}),"[",st.a.createElement("div",Object.assign({},Bt(Gt,"array-group-meta-data"),{className:"array-group-meta-data"}),st.a.createElement("span",Object.assign({className:"object-size"},Bt(Gt,"object-size")),rr*Kn," - ",rr*Kn+Kn>hn.length?hn.length:rr*Kn+Kn)),"]")))}))}}]),Rt}(st.a.PureComponent),Zr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(Wt){var Pt;nt(this,Rt),(Pt=Nt.call(this,Wt)).toggleCollapsed=function(){Pt.setState({expanded:!Pt.state.expanded},function(){dn.set(Pt.props.rjvId,Pt.props.namespace,"expanded",Pt.state.expanded)})},Pt.getObjectContent=function(un,tn,Gt){return st.a.createElement("div",{className:"pushed-content object-container"},st.a.createElement("div",Object.assign({className:"object-content"},Bt(Pt.props.theme,"pushed-content")),Pt.renderObjectContents(tn,Gt)))},Pt.getEllipsis=function(){return Pt.state.size===0?null:st.a.createElement("div",Object.assign({},Bt(Pt.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:Pt.toggleCollapsed}),"...")},Pt.getObjectMetaData=function(un){var tn=Pt.props,Gt=(tn.rjvId,tn.theme,Pt.state),xn=Gt.size,Gn=Gt.hovered;return st.a.createElement(Tr,Object.assign({rowHovered:Gn,size:xn},Pt.props))},Pt.renderObjectContents=function(un,tn){var Gt,xn=Pt.props,Gn=xn.depth,Jn=xn.parent_type,er=xn.index_offset,ir=xn.groupArraysAfterLength,Kn=xn.namespace,nr=Pt.state.object_type,ur=[],rr=Object.keys(un||{});return Pt.props.sortKeys&&nr!=="array"&&(rr=rr.sort()),rr.forEach(function(yr){if(Gt=new mo(yr,un[yr]),Jn==="array_group"&&er&&(Gt.name=parseInt(Gt.name)+er),un.hasOwnProperty(yr))if(Gt.type==="object")ur.push(st.a.createElement(St,Object.assign({key:Gt.name,depth:Gn+1,name:Gt.name,src:Gt.value,namespace:Kn.concat(Gt.name),parent_type:nr},tn)));else if(Gt.type==="array"){var mr=St;ir&&Gt.value.length>ir&&(mr=Qr),ur.push(st.a.createElement(mr,Object.assign({key:Gt.name,depth:Gn+1,name:Gt.name,src:Gt.value,namespace:Kn.concat(Gt.name),type:"array",parent_type:nr},tn)))}else ur.push(st.a.createElement(kr,Object.assign({key:Gt.name+"_"+Kn,variable:Gt,singleIndent:5,namespace:Kn,type:Pt.props.type},tn)))}),ur};var hn=Rt.getState(Wt);return Pt.state=rt(rt({},hn),{},{prevProps:{}}),Pt}return at(Rt,[{key:"getBraceStart",value:function(Wt,Pt){var hn=this,un=this.props,tn=un.src,Gt=un.theme,xn=un.iconStyle;if(un.parent_type==="array_group")return st.a.createElement("span",null,st.a.createElement("span",Bt(Gt,"brace"),Wt==="array"?"[":"{"),Pt?this.getObjectMetaData(tn):null);var Gn=Pt?Rr:Ur;return st.a.createElement("span",null,st.a.createElement("span",Object.assign({onClick:function(Jn){hn.toggleCollapsed()}},Bt(Gt,"brace-row")),st.a.createElement("div",Object.assign({className:"icon-container"},Bt(Gt,"icon-container")),st.a.createElement(Gn,{theme:Gt,iconStyle:xn})),st.a.createElement(Br,this.props),st.a.createElement("span",Bt(Gt,"brace"),Wt==="array"?"[":"{")),Pt?this.getObjectMetaData(tn):null)}},{key:"render",value:function(){var Wt=this,Pt=this.props,hn=Pt.depth,un=Pt.src,tn=(Pt.namespace,Pt.name,Pt.type,Pt.parent_type),Gt=Pt.theme,xn=Pt.jsvRoot,Gn=Pt.iconStyle,Jn=kt(Pt,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),er=this.state,ir=er.object_type,Kn=er.expanded,nr={};return xn||tn==="array_group"?tn==="array_group"&&(nr.borderLeft=0,nr.display="inline"):nr.paddingLeft=5*this.props.indentWidth,st.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return Wt.setState(rt(rt({},Wt.state),{},{hovered:!0}))},onMouseLeave:function(){return Wt.setState(rt(rt({},Wt.state),{},{hovered:!1}))}},Bt(Gt,xn?"jsv-root":"objectKeyVal",nr)),this.getBraceStart(ir,Kn),Kn?this.getObjectContent(hn,un,rt({theme:Gt,iconStyle:Gn},Jn)):this.getEllipsis(),st.a.createElement("span",{className:"brace-row"},st.a.createElement("span",{style:rt(rt({},Bt(Gt,"brace").style),{},{paddingLeft:Kn?"3px":"0px"})},ir==="array"?"]":"}"),Kn?null:this.getObjectMetaData(un)))}}],[{key:"getDerivedStateFromProps",value:function(Wt,Pt){var hn=Pt.prevProps;return Wt.src!==hn.src||Wt.collapsed!==hn.collapsed||Wt.name!==hn.name||Wt.namespace!==hn.namespace||Wt.rjvId!==hn.rjvId?rt(rt({},Rt.getState(Wt)),{},{prevProps:Wt}):null}}]),Rt}(st.a.PureComponent);Zr.getState=function(It){var Nt=Object.keys(It.src).length,Rt=(It.collapsed===!1||It.collapsed!==!0&&It.collapsed>It.depth)&&(!It.shouldCollapse||It.shouldCollapse({name:It.name,src:It.src,type:_t(It.src),namespace:It.namespace})===!1)&&Nt!==0;return{expanded:dn.get(It.rjvId,It.namespace,"expanded",Rt),object_type:It.type==="array"?"array":"object",parent_type:It.type==="array"?"array":"object",size:Nt,hovered:!1}};var mo=function It(Nt,Rt){nt(this,It),this.name=Nt,this.value=Rt,this.type=_t(Rt)};Mt(Zr);var St=Zr,Dt=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){var Wt;nt(this,Rt);for(var Pt=arguments.length,hn=new Array(Pt),un=0;untn.groupArraysAfterLength&&(xn=Qr),st.a.createElement("div",{className:"pretty-json-container object-container"},st.a.createElement("div",{className:"object-content"},st.a.createElement(xn,Object.assign({namespace:Gt,depth:0,jsvRoot:!0},tn))))},Wt}return Rt}(st.a.PureComponent),$t=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(Wt){var Pt;return nt(this,Rt),(Pt=Nt.call(this,Wt)).closeModal=function(){Bn.dispatch({rjvId:Pt.props.rjvId,name:"RESET"})},Pt.submit=function(){Pt.props.submit(Pt.state.input)},Pt.state={input:Wt.input?Wt.input:""},Pt}return at(Rt,[{key:"render",value:function(){var Wt=this,Pt=this.props,hn=Pt.theme,un=Pt.rjvId,tn=Pt.isValid,Gt=this.state.input,xn=tn(Gt);return st.a.createElement("div",Object.assign({className:"key-modal-request"},Bt(hn,"key-modal-request"),{onClick:this.closeModal}),st.a.createElement("div",Object.assign({},Bt(hn,"key-modal"),{onClick:function(Gn){Gn.stopPropagation()}}),st.a.createElement("div",Bt(hn,"key-modal-label"),"Key Name:"),st.a.createElement("div",{style:{position:"relative"}},st.a.createElement("input",Object.assign({},Bt(hn,"key-modal-input"),{className:"key-modal-input",ref:function(Gn){return Gn&&Gn.focus()},spellCheck:!1,value:Gt,placeholder:"...",onChange:function(Gn){Wt.setState({input:Gn.target.value})},onKeyPress:function(Gn){xn&&Gn.key==="Enter"?Wt.submit():Gn.key==="Escape"&&Wt.closeModal()}})),xn?st.a.createElement(cr,Object.assign({},Bt(hn,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Gn){return Wt.submit()}})):null),st.a.createElement("span",Bt(hn,"key-modal-cancel"),st.a.createElement(qn,Object.assign({},Bt(hn,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Bn.dispatch({rjvId:un,name:"RESET"})}})))))}}]),Rt}(st.a.PureComponent),mt=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){var Wt;nt(this,Rt);for(var Pt=arguments.length,hn=new Array(Pt),un=0;un{_($.updated_src)},[]);return jsxs("div",{className:"send-tx-form",children:[jsx$1("h3",{children:"Configure and send transaction"}),jsx$1(ReactJson,{theme:"ocean",src:defaultTx,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"})]})}const footer="",style$3="",defaultColors={[THEME.LIGHT]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#0098EA",telegramButton:"#0098EA",icon:{primary:"#0F0F0F",secondary:"#7A8999",tertiary:"#C1CAD2",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#FFFFFF",secondary:"#F1F3F5",segment:"#FFFFFF",tint:"#F1F3F5",qr:"#F1F3F5"},text:{primary:"#0F0F0F",secondary:"#6A7785"}},[THEME.DARK]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#E5E5EA",telegramButton:"#31A6F5",icon:{primary:"#E5E5EA",secondary:"#909099",tertiary:"#434347",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#121214",secondary:"#18181A",segment:"#262629",tint:"#222224",qr:"#F1F3F5"},text:{primary:"#E5E5EA",secondary:"#7D7D85"}}},ColorsSelect=({theme:b})=>{const[_,d]=useTonConnectUI(),[k,j]=reactExports.useState(defaultColors[b]);reactExports.useEffect(()=>{j(defaultColors[b])},[b]);const $=(et,tt,rt)=>{d({uiPreferences:{colorsSet:{[b]:{[tt]:rt?{...k[tt],[rt]:et}:et}}}}),j(nt=>({...nt,[tt]:rt?{...nt[tt],[rt]:et}:et})),defaultColors[b]={...defaultColors[b],[tt]:rt?{...k[tt],[rt]:et}:et}};return jsx$1("div",{className:"colors-container",children:Object.entries(k).map(([et,tt])=>typeof tt=="object"?jsxs("div",{children:[jsxs("span",{children:[et,":"]}),Object.entries(tt).map(([rt,nt])=>jsxs("label",{children:[rt,jsx$1("input",{type:"color",value:k[et][rt],onChange:ot=>$(ot.target.value,et,rt)})]},et+rt))]},et):jsxs("div",{children:[jsxs("span",{children:[et,":"]}),jsx$1("label",{children:jsx$1("input",{type:"color",value:k[et],onChange:rt=>$(rt.target.value,et)})})]}))})},style$2="",ColorsModal=()=>{const[b,_]=reactExports.useState(!1),[d,k]=reactExports.useState(THEME.LIGHT);return jsxs(Fragment,{children:[jsx$1("button",{onClick:()=>_(!0),children:"change colors"}),b&&jsxs("div",{className:"modal",children:[jsx$1("button",{onClick:()=>_(!1),children:"close"}),jsxs("div",{className:"modal__toggle",children:[jsx$1("a",{href:"#",style:{color:d===THEME.LIGHT?"blue":"white"},onClick:()=>k(THEME.LIGHT),children:"LIGHT"}),jsx$1("a",{href:"#",style:{color:d===THEME.DARK?"blue":"white"},onClick:()=>k(THEME.DARK),children:"DARK"})]}),jsx$1(ColorsSelect,{theme:d})]})]})},Footer=()=>{const[b,_]=reactExports.useState([!0,!1,!1,!0,!0,!0]),[d,k]=reactExports.useState("back"),[j,$]=reactExports.useState("ios"),[et,tt]=reactExports.useState(!0),[rt,nt]=useTonConnectUI(),ot=lt=>{nt({language:lt})},at=lt=>{nt({uiPreferences:{theme:lt}})},it=lt=>{nt({uiPreferences:{borderRadius:lt}})},dt=lt=>{_(ct=>ct.map((gt,st)=>st===lt?!gt:gt))},ut=lt=>{tt(lt)},ht=()=>{if(!d){k("back");return}nt({actionsConfiguration:{returnStrategy:d}})},ft=()=>{if(!j){$("ios");return}nt({actionsConfiguration:{skipRedirectToWallet:j}})};return reactExports.useEffect(()=>{const lt=["before","success","error"],ct=lt.map((st,Ct)=>b[Ct]?st:void 0).filter(st=>st),gt=lt.map((st,Ct)=>b[Ct+3]?st:void 0).filter(st=>st);nt({actionsConfiguration:{modals:ct,notifications:gt}})},[b]),reactExports.useEffect(()=>{nt({enableAndroidBackHandler:et})},[et]),jsxs("footer",{className:"footer",children:[jsxs("div",{children:[jsx$1("label",{children:"language"}),jsxs("select",{onChange:lt=>ot(lt.target.value),children:[jsx$1("option",{value:"en",children:"en"}),jsx$1("option",{value:"ru",children:"ru"})]})]}),jsxs("div",{children:[jsx$1("label",{children:"theme"}),jsxs("select",{onChange:lt=>at(lt.target.value),children:[jsx$1("option",{value:THEME.DARK,children:"dark"}),jsx$1("option",{value:THEME.LIGHT,children:"light"}),jsx$1("option",{value:"SYSTEM",children:"system"})]})]}),jsxs("div",{children:[jsx$1("label",{children:"borders"}),jsxs("select",{onChange:lt=>it(lt.target.value),children:[jsx$1("option",{value:"m",children:"m"}),jsx$1("option",{value:"s",children:"s"}),jsx$1("option",{value:"none",children:"none"})]})]}),jsxs("div",{children:[jsx$1("label",{children:"enable android back handler"}),jsxs("select",{onChange:lt=>ut(lt.target.value==="true"),value:et.toString(),children:[jsx$1("option",{value:"true",children:"true"}),jsx$1("option",{value:"false",children:"false"})]})]}),jsxs("div",{className:"footer-checkbox-container",children:[jsx$1("span",{children:"modals"}),jsxs("label",{children:["before",jsx$1("input",{type:"checkbox",checked:b[0],onChange:()=>dt(0)})]}),jsxs("label",{children:["success",jsx$1("input",{type:"checkbox",checked:b[1],onChange:()=>dt(1)})]}),jsxs("label",{children:["error",jsx$1("input",{type:"checkbox",checked:b[2],onChange:()=>dt(2)})]})]}),jsxs("div",{className:"footer-checkbox-container",children:[jsx$1("span",{children:"notifications"}),jsxs("label",{children:["before",jsx$1("input",{type:"checkbox",checked:b[3],onChange:()=>dt(3)})]}),jsxs("label",{children:["success",jsx$1("input",{type:"checkbox",checked:b[4],onChange:()=>dt(4)})]}),jsxs("label",{children:["error",jsx$1("input",{type:"checkbox",checked:b[5],onChange:()=>dt(5)})]})]}),jsx$1("div",{children:jsx$1(ColorsModal,{})}),jsx$1("div",{children:jsxs("label",{children:["return strategy:",jsx$1("input",{style:{width:"200px"},value:d,onChange:lt=>k(lt.target.value),onBlur:ht})]})}),jsx$1("div",{children:jsxs("label",{children:[jsx$1("div",{children:"skip redirect to wallet:"}),jsx$1("div",{children:"('ios', 'never', 'always')"}),jsx$1("input",{style:{width:"200px"},value:j,onChange:lt=>$(lt.target.value),onBlur:ft})]})})]})},style$1="";class TonProofDemoApiService{constructor(){Jo(this,"localStorageKey","demo-api-access-token");Jo(this,"host",document.baseURI.replace(/\/$/,""));Jo(this,"accessToken",null);Jo(this,"refreshIntervalMs",9*60*1e3);this.accessToken=localStorage.getItem(this.localStorageKey),this.accessToken||this.generatePayload()}async generatePayload(){try{return{tonProof:(await(await fetch(`${this.host}/api/generate_payload`,{method:"POST"})).json()).payload}}catch{return null}}async checkProof(_,d){try{const k={address:d.address,network:d.chain,public_key:d.publicKey,proof:{..._,state_init:d.walletStateInit}},j=await(await fetch(`${this.host}/api/check_proof`,{method:"POST",body:JSON.stringify(k)})).json();j!=null&&j.token&&(localStorage.setItem(this.localStorageKey,j.token),this.accessToken=j.token)}catch(k){console.log("checkProof error:",k)}}async getAccountInfo(_){return await(await fetch(`${this.host}/api/get_account_info`,{headers:{Authorization:`Bearer ${this.accessToken}`,"Content-Type":"application/json"}})).json()}async createJetton(_){return await(await fetch(`${this.host}/api/create_jetton`,{body:JSON.stringify(_),headers:{Authorization:`Bearer ${this.accessToken}`,"Content-Type":"application/json"},method:"POST"})).json()}reset(){this.accessToken=null,localStorage.removeItem(this.localStorageKey),this.generatePayload()}}const TonProofDemoApi=new TonProofDemoApiService;function useInterval(b,_){const d=reactExports.useRef(b);reactExports.useLayoutEffect(()=>{d.current=b},[b]),reactExports.useEffect(()=>{if(!_&&_!==0)return;const k=setInterval(()=>d.current(),_);return()=>clearInterval(k)},[_])}const TonProofDemo=()=>{const b=reactExports.useRef(!0),[_,d]=reactExports.useState({}),k=useTonWallet(),[j,$]=reactExports.useState(!1),[et]=useTonConnectUI(),tt=reactExports.useCallback(async()=>{b.current&&(et.setConnectRequestParameters({state:"loading"}),b.current=!1);const nt=await TonProofDemoApi.generatePayload();nt?et.setConnectRequestParameters({state:"ready",value:nt}):et.setConnectRequestParameters(null)},[et,b]);b.current&&tt(),useInterval(tt,TonProofDemoApi.refreshIntervalMs),reactExports.useEffect(()=>et.onStatusChange(async nt=>{var ot;if(!nt){TonProofDemoApi.reset(),$(!1);return}if((ot=nt.connectItems)!=null&&ot.tonProof&&"proof"in nt.connectItems.tonProof&&await TonProofDemoApi.checkProof(nt.connectItems.tonProof.proof,nt.account),!TonProofDemoApi.accessToken){et.disconnect(),$(!1);return}$(!0)}),[et]);const rt=reactExports.useCallback(async()=>{if(!k)return;const nt=await TonProofDemoApi.getAccountInfo(k.account);d(nt)},[k]);return j?jsxs("div",{className:"ton-proof-demo",children:[jsx$1("h3",{children:"Demo backend API with ton_proof verification"}),j?jsx$1("button",{onClick:rt,children:"Call backend getAccountInfo()"}):jsx$1("div",{className:"ton-proof-demo__error",children:"Connect wallet to call API"}),jsx$1(ReactJson,{src:_,name:"response",theme:"ocean"})]}):null},style="",jetton={name:"Joint Photographic Experts Group",description:"JPEG is a commonly used method of lossy compression for digital images, particularly for those images produced by digital photography. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and image quality.",image_data:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAdVBMVEX///8rKytSUlITExPT09Pm5uYcHBzKysqXl5cZGRmnp6cnJydISEjr6+tOTk5LS0swMDAhISHa2tq3t7fg4OBra2sKCgrw8PB3d3dCQkJeXl49PT29vb2goKCvr68AAADOzs5jY2ODg4ONjY1wcHA2NjaSkpJ0yRZUAAAFXklEQVR4nO3de3eaMBgGcCEIxkgVCiiIVG3t9/+IS8LFS+1ERy665/ljZwW3k99yeV9x5zgaIQiCIAiCIAiCIAiCIAhiLGFQTf85iWnF7wkKQui/Z2Yt8TuLnCEyn1tKnGSD+BznzbVzFuOPgYBc6Fo5i1/DLNFa+PZmIZEMBRRC152NTYMuMx5YaN9e9IYWurYtVAVCy46b4YW27UUVQrv2ohKhVUVDidCqhapIaNFCVSW0p4FTJrSmaCgTWrMXFQot2YsqhXY0cGqFNuxFpUIrFqpioQVFQ7XQfAOnWmi+aKgXmt6LGoSG96IOodmioUNodi/qEZrci5qEBhs4bUJjs6hLaG6h6hOaKhoahYYaOI1CQ0VDq9DIXtQrNFE0dAv1HzeahQb2onah9r2oX6i7aOgX8gZO60I1INS8UI0ItTZwZoQ696IZoc6iYUqoby8aE2pr4AwKNR03Awrn9wl1LdQBhbN7hXqIAwrXdwu1FI0BhYu7hVqKxoDCByZRx0IdUsjyB4jKT9QhhY/Nouq9OKzQcQ757N4cwqcS3h+WBS8udAiEEEJoGgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQWCJmM3cIFz/F34gdCaMROb5/llEejfO6689whfb+Uz4CQlHEczyQoiD2ZIKj2efNSWjUXm8QTv/ORYrpNxstwnHhVyvoZTQi34TicS2EcjuuEYTiu6rVH3tuLza1NKyRFEHb3wtBbZX0WqwlhwAfYCGtcKAcexmvWCsNjlo2Q0c2yvtP8Ml4Ghx7TaF64X61WmyoR4962cxhWk2NS+VLmlJIWTNKiSPel/AOxe5toXpj7UeSTw7cY8affCHfE71IvRSqnNiiIHzEWRWQ9FT8nhycQ1mcOIxM+4rgVppdzQ8XtcEO76/zU4dPY42tObRE6bCF2Vs6uC9laAs++edefe4Xv3Iw1QifzuCH9RSgvBvSC3avw2yaMrgpZLia4eOibd+0RMoGYX5/DaCWm8LEO0Boh+eQ7LaHtSUOjLk5zbdJj01kpzIXCJ6u2fak1qy7iuCRbPr+7O9ptq4SrNE33E08W8AP70dMsY3GAij0664R+1uX2yjUvPOnaZu2KPG1LvYzXikRMdiv0N8su3s3Tx7ywa73LtRytFB7fXsT8gLkUTo7/BsGTCJO43BTNO8T6pHHO3x6erdJ2DsMnEYqBM+bTdvzXqoU4aY7X2KyQSZPnEZ7dviIUbTdvStsf6wcZ0fqFhKLij7cXfxfLX0jI1qLh+dHKvZDQIRWfRM85e+lrCdlBtAHv9PS17JX2Ia8Q8hlAuTj2pkw2ek8r3GW0S42ilezrVhnvyZloZNfywrMKx+W06rKpr0fvdWs33afu12ojHyyG2/xmO26p8ORpYui1NyZ1+8q78bB5pvje412+YSEf6FXhWevd3qFFuTx5Irws+zymMSwsgyC4XGf+Zhuc5b27xWix8Zq3IsG3S29PoBlhtO3WJuH5MUyfnOf0+ROj2drdpUXuE7/nG2ITnz3xNwrJ7RPit4iO1O5P1+Rzs3hxZSxqolkY+X72yetdqe+zYb3CaL/5rMRBuH/o0ecTCOl0KQuZ98toXkPIK1n9QeFLCtmuCoLyM9II1H3SMMoLnL49aEBoIBBC+N8LEwuEnlLhKLs9BMXJlmqFO72l4WfYTC1wtP0wLPwoFQtHe7M7kaaqgaPRV6//X6cmjOzUA0ej6pBR30RotpjqAPJ404mJTLeKj1EEQRAEQRAEQRAEQRAEQf6SP4jPv7WHGoGuAAAAAElFTkSuQmCC",symbol:"JPEG",decimals:9,amount:"1000000000000000"},CreateJettonDemo=()=>{const[b,_]=reactExports.useState({}),[d]=useTonConnectUI(),k=useTonWallet();return jsxs("div",{className:"create-jetton-demo",children:[jsx$1("h3",{children:"Create Jetton"}),k?jsx$1("button",{onClick:async()=>{const $=await TonProofDemoApi.createJetton(jetton);_($),"error"in $||await d.sendTransaction($)},children:"Send create jetton"}):jsx$1("div",{className:"ton-proof-demo__error",children:"Connect wallet to send transaction"}),jsx$1(ReactJson,{src:b,name:"response",theme:"ocean"})]})};function App(){return jsx$1(TonConnectUIProvider$1,{manifestUrl:"https://ton-connect.github.io/demo-dapp-with-react-ui/tonconnect-manifest.json",uiPreferences:{theme:THEME.DARK},walletsListConfiguration:{includeWallets:[{appName:"tonwallet",name:"TON Wallet",imageUrl:"https://wallet.ton.org/assets/ui/qr-logo.png",aboutUrl:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",universalLink:"https://wallet.ton.org/ton-connect",jsBridgeKey:"tonwallet",bridgeUrl:"https://bridge.tonapi.io/bridge",platforms:["chrome","android"]},{appName:"nicegramWallet",name:"Nicegram Wallet",imageUrl:"https://static.nicegram.app/icon.png",aboutUrl:"https://nicegram.app",universalLink:"https://nicegram.app/tc",deepLink:"nicegram-tc://",jsBridgeKey:"nicegramWallet",bridgeUrl:"https://bridge.tonapi.io/bridge",platforms:["ios","android"]},{appName:"fintopio-tg",name:"Fintopio Telegram",imageUrl:"https://fintopio.com/tonconnect-icon.png",aboutUrl:"https://fintopio.com",universalLink:"https://t.me/fintopio?attach=wallet",bridgeUrl:"https://wallet-bridge.fintopio.com/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"tokenpocket",name:"TokenPocket",imageUrl:"https://hk.tpstatic.net/logo/tokenpocket.png",aboutUrl:"https://tokenpocket.pro",jsBridgeKey:"tokenpocket",platforms:["ios","android"]},{appName:"dewallet",name:"DeWallet",imageUrl:"https://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png",aboutUrl:"https://delabwallet.com",universalLink:"https://t.me/dewallet?attach=wallet",bridgeUrl:"https://bridge.dewallet.pro/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"BitgetWeb3",name:"BitgetWeb3",imageUrl:"https://img.bitgetimg.com/image/third/1723701408284.png",aboutUrl:"https://www.bitget.com",universalLink:"https://t.me/BitgetOfficialBot?attach=wallet",bridgeUrl:"https://ton-connect-bridge.bgwapi.io/bridge",platforms:["ios","android","windows","macos","linux"]},{appName:"cdcTonWallet",name:"Crypto.com DeFi Wallet",imageUrl:"https://apro-ncw-api-file.crypto.com/wallet/logo",aboutUrl:"https://crypto.com/defi-wallet",universalLink:"https://wallet.crypto.com/deeplink/ton-connect",deepLink:"dfw://",jsBridgeKey:"cdcTonWallet",bridgeUrl:"https://wallet.crypto.com/sse/tonbridge",platforms:["ios","android","chrome"]},{appName:"tobi",name:"Tobi",imageUrl:"https://app.tobiwallet.app/icons/logo.png",aboutUrl:"https://tobi.fun",universalLink:"https://t.me/TobiWalletBot?attach=wallet",bridgeUrl:"https://bridge.tonapi.io/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/",jsBridgeKey:"trustwalletTon",platforms:["chrome","ios","android"]}]},actionsConfiguration:{twaReturnUrl:"https://t.me/DemoDappWithTonConnectBot/demo"},children:jsxs("div",{className:"app",children:[jsx$1(Header,{}),jsx$1(TxForm,{}),jsx$1(CreateJettonDemo,{}),jsx$1(TonProofDemo,{}),jsx$1(Footer,{})]})})}const index="";function runSingleInstance(b){let _=!1;return async()=>{if(!_){_=!0;try{await b()}catch(d){console.error(d)}finally{_=!1}}}}eruda.init();async function enableMocking(){const b=document.baseURI.replace(/\/$/,"");return new Promise(async _=>{const{worker:d}=await __vitePreload(()=>import("./worker-2c344dd1.js"),[]),k=()=>d.start({onUnhandledRequest:"bypass",quiet:!1,serviceWorker:{url:"/demo-dapp-with-react-ui/mockServiceWorker.js"}});let j=await k();_(j);const $=runSingleInstance(async()=>{var et;try{const rt=(await((et=navigator.serviceWorker)==null?void 0:et.getRegistrations())||[]).length>0,nt=await fetch(`${b}/api/healthz`).then(ot=>ot.status===200?ot.json().then(at=>at.ok).catch(()=>!1):!1).catch(()=>!1);(!rt||!nt)&&(await(j==null?void 0:j.unregister().catch(()=>{})),j=await k().catch(()=>null))}catch(tt){console.error("Error in verifyAndRestartWorker:",tt),j=await k().catch(()=>null)}});setInterval($,1e3)})}enableMocking().then(()=>reactDomExports.render(jsx$1(reactExports.StrictMode,{children:jsx$1(App,{})}),document.getElementById("root")));export{CHAIN as C,buffer as b,commonjsGlobal as c,getAugmentedNamespace as g,naclFastExports as n,require$$4 as r};
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var _n=$(46),Bn=new($(47)).Dispatcher,Yn=new(function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){var Wt;nt(this,Rt);for(var Pt=arguments.length,hn=new Array(Pt),un=0;unPt&&(tn.style.cursor="pointer",this.state.collapsed&&(un=st.a.createElement("span",null,un.substring(0,Pt),st.a.createElement("span",Bt(hn,"ellipsis")," ...")))),st.a.createElement("div",Bt(hn,"string"),st.a.createElement(Zt,Object.assign({type_name:"string"},Wt)),st.a.createElement("span",Object.assign({className:"string-value"},tn,{onClick:this.toggleCollapsed}),'"',un,'"'))}}]),Rt}(st.a.PureComponent),gn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){return st.a.createElement("div",Bt(this.props.theme,"undefined"),"undefined")}}]),Rt}(st.a.PureComponent);function Ln(){return(Ln=Object.assign||function(It){for(var Nt=1;Nt=0||(Hn[mr]=rr[mr]);return Hn}(It,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Gn,Jn=xn.value!==void 0,er=Object(gt.useRef)(null),ir=zn(er,Nt),Kn=Object(gt.useRef)(0),nr=Object(gt.useRef)(),ur=function(){var rr=er.current,yr=Rt&&nr.current?nr.current:function(hr){var lr=window.getComputedStyle(hr);if(lr===null)return null;var sr,dr=(sr=lr,bn.reduce(function(Mr,Or){return Mr[Or]=sr[Or],Mr},{})),Ar=dr.boxSizing;return Ar===""?null:(Yt&&Ar==="border-box"&&(dr.width=parseFloat(dr.width)+parseFloat(dr.borderRightWidth)+parseFloat(dr.borderLeftWidth)+parseFloat(dr.paddingRight)+parseFloat(dr.paddingLeft)+"px"),{sizingStyle:dr,paddingSize:parseFloat(dr.paddingBottom)+parseFloat(dr.paddingTop),borderSize:parseFloat(dr.borderBottomWidth)+parseFloat(dr.borderTopWidth)})}(rr);if(yr){nr.current=yr;var mr=function(hr,lr,sr,dr){sr===void 0&&(sr=1),dr===void 0&&(dr=1/0),Wn||((Wn=document.createElement("textarea")).setAttribute("tab-index","-1"),Wn.setAttribute("aria-hidden","true"),Nn(Wn)),Wn.parentNode===null&&document.body.appendChild(Wn);var Ar=hr.paddingSize,Mr=hr.borderSize,Or=hr.sizingStyle,Ir=Or.boxSizing;Object.keys(Or).forEach(function(Pr){var $r=Pr;Wn.style[$r]=Or[$r]}),Nn(Wn),Wn.value=lr;var pn=function(Pr,$r){var Wr=Pr.scrollHeight;return $r.sizingStyle.boxSizing==="border-box"?Wr+$r.borderSize:Wr-$r.paddingSize}(Wn,hr);Wn.value="x";var Lr=Wn.scrollHeight-Ar,Fr=Lr*sr;Ir==="border-box"&&(Fr=Fr+Ar+Mr),pn=Math.max(Fr,pn);var Dr=Lr*dr;return Ir==="border-box"&&(Dr=Dr+Ar+Mr),[pn=Math.min(Dr,pn),Lr]}(yr,rr.value||rr.placeholder||"x",Pt,Wt),Pn=mr[0],Hn=mr[1];Kn.current!==Pn&&(Kn.current=Pn,rr.style.setProperty("height",Pn+"px","important"),Gt(Pn,{rowHeight:Hn}))}};return Object(gt.useLayoutEffect)(ur),Gn=Un(ur),Object(gt.useLayoutEffect)(function(){var rr=function(yr){Gn.current(yr)};return window.addEventListener("resize",rr),function(){window.removeEventListener("resize",rr)}},[]),Object(gt.createElement)("textarea",Ln({},xn,{onChange:function(rr){Jn||ur(),un(rr)},ref:ir}))},pt=Object(gt.forwardRef)(bt);function yt(It){It=It.trim();try{if((It=JSON.stringify(JSON.parse(It)))[0]==="[")return Ut("array",JSON.parse(It));if(It[0]==="{")return Ut("object",JSON.parse(It));if(It.match(/\-?\d+\.\d+/)&&It.match(/\-?\d+\.\d+/)[0]===It)return Ut("float",parseFloat(It));if(It.match(/\-?\d+e-\d+/)&&It.match(/\-?\d+e-\d+/)[0]===It)return Ut("float",Number(It));if(It.match(/\-?\d+/)&&It.match(/\-?\d+/)[0]===It)return Ut("integer",parseInt(It));if(It.match(/\-?\d+e\+\d+/)&&It.match(/\-?\d+e\+\d+/)[0]===It)return Ut("integer",Number(It))}catch{}switch(It=It.toLowerCase()){case"undefined":return Ut("undefined",void 0);case"nan":return Ut("nan",NaN);case"null":return Ut("null",null);case"true":return Ut("boolean",!0);case"false":return Ut("boolean",!1);default:if(It=Date.parse(It))return Ut("date",new Date(It))}return Ut(!1,null)}function Ut(It,Nt){return{type:It,value:Nt}}var an=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{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"})))}}]),Rt}(st.a.PureComponent),sn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{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"})))}}]),Rt}(st.a.PureComponent),Sn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]),un=pr(Pt).style;return st.a.createElement("span",hn,st.a.createElement("svg",{fill:un.color,width:un.height,height:un.width,style:un,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"})))}}]),Rt}(st.a.PureComponent),or=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]),un=pr(Pt).style;return st.a.createElement("span",hn,st.a.createElement("svg",{fill:un.color,width:un.height,height:un.width,style:un,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"})))}}]),Rt}(st.a.PureComponent),Rn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",{style:rt(rt({},pr(Pt).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},st.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),Rt}(st.a.PureComponent),Xn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",{style:rt(rt({},pr(Pt).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},st.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),Rt}(st.a.PureComponent),$n=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{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"}))))}}]),Rt}(st.a.PureComponent),ar=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{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"}))))}}]),Rt}(st.a.PureComponent),Qn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{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"}))))}}]),Rt}(st.a.PureComponent),qn=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{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"}))))}}]),Rt}(st.a.PureComponent),fr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{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"}))))}}]),Rt}(st.a.PureComponent),cr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){return nt(this,Rt),Nt.apply(this,arguments)}return at(Rt,[{key:"render",value:function(){var Wt=this.props,Pt=Wt.style,hn=kt(Wt,["style"]);return st.a.createElement("span",hn,st.a.createElement("svg",Object.assign({},pr(Pt),{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"}))))}}]),Rt}(st.a.PureComponent);function pr(It){return It||(It={}),{style:rt(rt({verticalAlign:"middle"},It),{},{color:It.color?It.color:"#000000",height:"1em",width:"1em"})}}var xr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(Wt){var Pt;return nt(this,Rt),(Pt=Nt.call(this,Wt)).copiedTimer=null,Pt.handleCopy=function(){var hn=document.createElement("textarea"),un=Pt.props,tn=un.clickCallback,Gt=un.src,xn=un.namespace;hn.innerHTML=JSON.stringify(Pt.clipboardValue(Gt),null," "),document.body.appendChild(hn),hn.select(),document.execCommand("copy"),document.body.removeChild(hn),Pt.copiedTimer=setTimeout(function(){Pt.setState({copied:!1})},5500),Pt.setState({copied:!0},function(){typeof tn=="function"&&tn({src:Gt,namespace:xn,name:xn[xn.length-1]})})},Pt.getClippyIcon=function(){var hn=Pt.props.theme;return Pt.state.copied?st.a.createElement("span",null,st.a.createElement($n,Object.assign({className:"copy-icon"},Bt(hn,"copy-icon"))),st.a.createElement("span",Bt(hn,"copy-icon-copied"),"✔")):st.a.createElement($n,Object.assign({className:"copy-icon"},Bt(hn,"copy-icon")))},Pt.clipboardValue=function(hn){switch(_t(hn)){case"function":case"regexp":return hn.toString();default:return hn}},Pt.state={copied:!1},Pt}return at(Rt,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var Wt=this.props,Pt=(Wt.src,Wt.theme),hn=Wt.hidden,un=Wt.rowHovered,tn=Bt(Pt,"copy-to-clipboard").style,Gt="inline";return hn&&(Gt="none"),st.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:un?"inline-block":"none"}},st.a.createElement("span",{style:rt(rt({},tn),{},{display:Gt}),onClick:this.handleCopy},this.getClippyIcon()))}}]),Rt}(st.a.PureComponent),kr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(Wt){var Pt;return nt(this,Rt),(Pt=Nt.call(this,Wt)).getEditIcon=function(){var hn=Pt.props,un=hn.variable,tn=hn.theme;return st.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:Pt.state.hovered?"inline-block":"none"}},st.a.createElement(fr,Object.assign({className:"click-to-edit-icon"},Bt(tn,"editVarIcon"),{onClick:function(){Pt.prepopInput(un)}})))},Pt.prepopInput=function(hn){if(Pt.props.onEdit!==!1){var un=function(Gt){var xn;switch(_t(Gt)){case"undefined":xn="undefined";break;case"nan":xn="NaN";break;case"string":xn=Gt;break;case"date":case"function":case"regexp":xn=Gt.toString();break;default:try{xn=JSON.stringify(Gt,null," ")}catch{xn=""}}return xn}(hn.value),tn=yt(un);Pt.setState({editMode:!0,editValue:un,parsedInput:{type:tn.type,value:tn.value}})}},Pt.getRemoveIcon=function(){var hn=Pt.props,un=hn.variable,tn=hn.namespace,Gt=hn.theme,xn=hn.rjvId;return st.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:Pt.state.hovered?"inline-block":"none"}},st.a.createElement(ar,Object.assign({className:"click-to-remove-icon"},Bt(Gt,"removeVarIcon"),{onClick:function(){Bn.dispatch({name:"VARIABLE_REMOVED",rjvId:xn,data:{name:un.name,namespace:tn,existing_value:un.value,variable_removed:!0}})}})))},Pt.getValue=function(hn,un){var tn=!un&&hn.type,Gt=ft(Pt).props;switch(tn){case!1:return Pt.getEditInput();case"string":return st.a.createElement(En,Object.assign({value:hn.value},Gt));case"integer":return st.a.createElement(kn,Object.assign({value:hn.value},Gt));case"float":return st.a.createElement(Qt,Object.assign({value:hn.value},Gt));case"boolean":return st.a.createElement(rn,Object.assign({value:hn.value},Gt));case"function":return st.a.createElement(An,Object.assign({value:hn.value},Gt));case"null":return st.a.createElement(On,Gt);case"nan":return st.a.createElement(mn,Gt);case"undefined":return st.a.createElement(gn,Gt);case"date":return st.a.createElement(nn,Object.assign({value:hn.value},Gt));case"regexp":return st.a.createElement(vn,Object.assign({value:hn.value},Gt));default:return st.a.createElement("div",{className:"object-value"},JSON.stringify(hn.value))}},Pt.getEditInput=function(){var hn=Pt.props.theme,un=Pt.state.editValue;return st.a.createElement("div",null,st.a.createElement(pt,Object.assign({type:"text",inputRef:function(tn){return tn&&tn.focus()},value:un,className:"variable-editor",onChange:function(tn){var Gt=tn.target.value,xn=yt(Gt);Pt.setState({editValue:Gt,parsedInput:{type:xn.type,value:xn.value}})},onKeyDown:function(tn){switch(tn.key){case"Escape":Pt.setState({editMode:!1,editValue:""});break;case"Enter":(tn.ctrlKey||tn.metaKey)&&Pt.submitEdit(!0)}tn.stopPropagation()},placeholder:"update this value",minRows:2},Bt(hn,"edit-input"))),st.a.createElement("div",Bt(hn,"edit-icon-container"),st.a.createElement(ar,Object.assign({className:"edit-cancel"},Bt(hn,"cancel-icon"),{onClick:function(){Pt.setState({editMode:!1,editValue:""})}})),st.a.createElement(cr,Object.assign({className:"edit-check string-value"},Bt(hn,"check-icon"),{onClick:function(){Pt.submitEdit()}})),st.a.createElement("div",null,Pt.showDetected())))},Pt.submitEdit=function(hn){var un=Pt.props,tn=un.variable,Gt=un.namespace,xn=un.rjvId,Gn=Pt.state,Jn=Gn.editValue,er=Gn.parsedInput,ir=Jn;hn&&er.type&&(ir=er.value),Pt.setState({editMode:!1}),Bn.dispatch({name:"VARIABLE_UPDATED",rjvId:xn,data:{name:tn.name,namespace:Gt,existing_value:tn.value,new_value:ir,variable_removed:!1}})},Pt.showDetected=function(){var hn=Pt.props,un=hn.theme,tn=(hn.variable,hn.namespace,hn.rjvId,Pt.state.parsedInput),Gt=(tn.type,tn.value,Pt.getDetectedInput());if(Gt)return st.a.createElement("div",null,st.a.createElement("div",Bt(un,"detected-row"),Gt,st.a.createElement(cr,{className:"edit-check detected",style:rt({verticalAlign:"top",paddingLeft:"3px"},Bt(un,"check-icon").style),onClick:function(){Pt.submitEdit(!0)}})))},Pt.getDetectedInput=function(){var hn=Pt.state.parsedInput,un=hn.type,tn=hn.value,Gt=ft(Pt).props,xn=Gt.theme;if(un!==!1)switch(un.toLowerCase()){case"object":return st.a.createElement("span",null,st.a.createElement("span",{style:rt(rt({},Bt(xn,"brace").style),{},{cursor:"default"})},"{"),st.a.createElement("span",{style:rt(rt({},Bt(xn,"ellipsis").style),{},{cursor:"default"})},"..."),st.a.createElement("span",{style:rt(rt({},Bt(xn,"brace").style),{},{cursor:"default"})},"}"));case"array":return st.a.createElement("span",null,st.a.createElement("span",{style:rt(rt({},Bt(xn,"brace").style),{},{cursor:"default"})},"["),st.a.createElement("span",{style:rt(rt({},Bt(xn,"ellipsis").style),{},{cursor:"default"})},"..."),st.a.createElement("span",{style:rt(rt({},Bt(xn,"brace").style),{},{cursor:"default"})},"]"));case"string":return st.a.createElement(En,Object.assign({value:tn},Gt));case"integer":return st.a.createElement(kn,Object.assign({value:tn},Gt));case"float":return st.a.createElement(Qt,Object.assign({value:tn},Gt));case"boolean":return st.a.createElement(rn,Object.assign({value:tn},Gt));case"function":return st.a.createElement(An,Object.assign({value:tn},Gt));case"null":return st.a.createElement(On,Gt);case"nan":return st.a.createElement(mn,Gt);case"undefined":return st.a.createElement(gn,Gt);case"date":return st.a.createElement(nn,Object.assign({value:new Date(tn)},Gt))}},Pt.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},Pt}return at(Rt,[{key:"render",value:function(){var Wt=this,Pt=this.props,hn=Pt.variable,un=Pt.singleIndent,tn=Pt.type,Gt=Pt.theme,xn=Pt.namespace,Gn=Pt.indentWidth,Jn=Pt.enableClipboard,er=Pt.onEdit,ir=Pt.onDelete,Kn=Pt.onSelect,nr=Pt.displayArrayKey,ur=Pt.quotesOnKeys,rr=this.state.editMode;return st.a.createElement("div",Object.assign({},Bt(Gt,"objectKeyVal",{paddingLeft:Gn*un}),{onMouseEnter:function(){return Wt.setState(rt(rt({},Wt.state),{},{hovered:!0}))},onMouseLeave:function(){return Wt.setState(rt(rt({},Wt.state),{},{hovered:!1}))},className:"variable-row",key:hn.name}),tn=="array"?nr?st.a.createElement("span",Object.assign({},Bt(Gt,"array-key"),{key:hn.name+"_"+xn}),hn.name,st.a.createElement("div",Bt(Gt,"colon"),":")):null:st.a.createElement("span",null,st.a.createElement("span",Object.assign({},Bt(Gt,"object-name"),{className:"object-key",key:hn.name+"_"+xn}),!!ur&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"'),st.a.createElement("span",{style:{display:"inline-block"}},hn.name),!!ur&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"')),st.a.createElement("span",Bt(Gt,"colon"),":")),st.a.createElement("div",Object.assign({className:"variable-value",onClick:Kn===!1&&er===!1?null:function(yr){var mr=jn(xn);(yr.ctrlKey||yr.metaKey)&&er!==!1?Wt.prepopInput(hn):Kn!==!1&&(mr.shift(),Kn(rt(rt({},hn),{},{namespace:mr})))}},Bt(Gt,"variableValue",{cursor:Kn===!1?"default":"pointer"})),this.getValue(hn,rr)),Jn?st.a.createElement(xr,{rowHovered:this.state.hovered,hidden:rr,src:hn.value,clickCallback:Jn,theme:Gt,namespace:[].concat(jn(xn),[hn.name])}):null,er!==!1&&rr==0?this.getEditIcon():null,ir!==!1&&rr==0?this.getRemoveIcon():null)}}]),Rt}(st.a.PureComponent),Tr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){var Wt;nt(this,Rt);for(var Pt=arguments.length,hn=new Array(Pt),un=0;un0?Jn:null,namespace:Gn.splice(0,Gn.length-1),existing_value:er,variable_removed:!1,key_name:null};_t(er)==="object"?Bn.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:ir,data:nr}):Bn.dispatch({name:"VARIABLE_ADDED",rjvId:ir,data:rt(rt({},nr),{},{new_value:[].concat(jn(er),[null])})})}})))},Wt.getRemoveObject=function(tn){var Gt=Wt.props,xn=Gt.theme,Gn=(Gt.hover,Gt.namespace),Jn=Gt.name,er=Gt.src,ir=Gt.rjvId;if(Gn.length!==1)return st.a.createElement("span",{className:"click-to-remove",style:{display:tn?"inline-block":"none"}},st.a.createElement(ar,Object.assign({className:"click-to-remove-icon"},Bt(xn,"removeVarIcon"),{onClick:function(){Bn.dispatch({name:"VARIABLE_REMOVED",rjvId:ir,data:{name:Jn,namespace:Gn.splice(0,Gn.length-1),existing_value:er,variable_removed:!0}})}})))},Wt.render=function(){var tn=Wt.props,Gt=tn.theme,xn=tn.onDelete,Gn=tn.onAdd,Jn=tn.enableClipboard,er=tn.src,ir=tn.namespace,Kn=tn.rowHovered;return st.a.createElement("div",Object.assign({},Bt(Gt,"object-meta-data"),{className:"object-meta-data",onClick:function(nr){nr.stopPropagation()}}),Wt.getObjectSize(),Jn?st.a.createElement(xr,{rowHovered:Kn,clickCallback:Jn,src:er,theme:Gt,namespace:ir}):null,Gn!==!1?Wt.getAddAttribute(Kn):null,xn!==!1?Wt.getRemoveObject(Kn):null)},Wt}return Rt}(st.a.PureComponent);function Br(It){var Nt=It.parent_type,Rt=It.namespace,Wt=It.quotesOnKeys,Pt=It.theme,hn=It.jsvRoot,un=It.name,tn=It.displayArrayKey,Gt=It.name?It.name:"";return!hn||un!==!1&&un!==null?Nt=="array"?tn?st.a.createElement("span",Object.assign({},Bt(Pt,"array-key"),{key:Rt}),st.a.createElement("span",{className:"array-key"},Gt),st.a.createElement("span",Bt(Pt,"colon"),":")):st.a.createElement("span",null):st.a.createElement("span",Object.assign({},Bt(Pt,"object-name"),{key:Rt}),st.a.createElement("span",{className:"object-key"},Wt&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"'),st.a.createElement("span",null,Gt),Wt&&st.a.createElement("span",{style:{verticalAlign:"top"}},'"')),st.a.createElement("span",Bt(Pt,"colon"),":")):st.a.createElement("span",null)}function Rr(It){var Nt=It.theme;switch(It.iconStyle){case"triangle":return st.a.createElement(Xn,Object.assign({},Bt(Nt,"expanded-icon"),{className:"expanded-icon"}));case"square":return st.a.createElement(Sn,Object.assign({},Bt(Nt,"expanded-icon"),{className:"expanded-icon"}));default:return st.a.createElement(an,Object.assign({},Bt(Nt,"expanded-icon"),{className:"expanded-icon"}))}}function Ur(It){var Nt=It.theme;switch(It.iconStyle){case"triangle":return st.a.createElement(Rn,Object.assign({},Bt(Nt,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return st.a.createElement(or,Object.assign({},Bt(Nt,"collapsed-icon"),{className:"collapsed-icon"}));default:return st.a.createElement(sn,Object.assign({},Bt(Nt,"collapsed-icon"),{className:"collapsed-icon"}))}}var Qr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(Wt){var Pt;return nt(this,Rt),(Pt=Nt.call(this,Wt)).toggleCollapsed=function(hn){var un=[];for(var tn in Pt.state.expanded)un.push(Pt.state.expanded[tn]);un[hn]=!un[hn],Pt.setState({expanded:un})},Pt.state={expanded:[]},Pt}return at(Rt,[{key:"getExpandedIcon",value:function(Wt){var Pt=this.props,hn=Pt.theme,un=Pt.iconStyle;return this.state.expanded[Wt]?st.a.createElement(Rr,{theme:hn,iconStyle:un}):st.a.createElement(Ur,{theme:hn,iconStyle:un})}},{key:"render",value:function(){var Wt=this,Pt=this.props,hn=Pt.src,un=Pt.groupArraysAfterLength,tn=(Pt.depth,Pt.name),Gt=Pt.theme,xn=Pt.jsvRoot,Gn=Pt.namespace,Jn=(Pt.parent_type,kt(Pt,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),er=0,ir=5*this.props.indentWidth;xn||(er=5*this.props.indentWidth);var Kn=un,nr=Math.ceil(hn.length/Kn);return st.a.createElement("div",Object.assign({className:"object-key-val"},Bt(Gt,xn?"jsv-root":"objectKeyVal",{paddingLeft:er})),st.a.createElement(Br,this.props),st.a.createElement("span",null,st.a.createElement(Tr,Object.assign({size:hn.length},this.props))),jn(Array(nr)).map(function(ur,rr){return st.a.createElement("div",Object.assign({key:rr,className:"object-key-val array-group"},Bt(Gt,"objectKeyVal",{marginLeft:6,paddingLeft:ir})),st.a.createElement("span",Bt(Gt,"brace-row"),st.a.createElement("div",Object.assign({className:"icon-container"},Bt(Gt,"icon-container"),{onClick:function(yr){Wt.toggleCollapsed(rr)}}),Wt.getExpandedIcon(rr)),Wt.state.expanded[rr]?st.a.createElement(St,Object.assign({key:tn+rr,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Kn,index_offset:rr*Kn,src:hn.slice(rr*Kn,rr*Kn+Kn),namespace:Gn,type:"array",parent_type:"array_group",theme:Gt},Jn)):st.a.createElement("span",Object.assign({},Bt(Gt,"brace"),{onClick:function(yr){Wt.toggleCollapsed(rr)},className:"array-group-brace"}),"[",st.a.createElement("div",Object.assign({},Bt(Gt,"array-group-meta-data"),{className:"array-group-meta-data"}),st.a.createElement("span",Object.assign({className:"object-size"},Bt(Gt,"object-size")),rr*Kn," - ",rr*Kn+Kn>hn.length?hn.length:rr*Kn+Kn)),"]")))}))}}]),Rt}(st.a.PureComponent),Zr=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(Wt){var Pt;nt(this,Rt),(Pt=Nt.call(this,Wt)).toggleCollapsed=function(){Pt.setState({expanded:!Pt.state.expanded},function(){dn.set(Pt.props.rjvId,Pt.props.namespace,"expanded",Pt.state.expanded)})},Pt.getObjectContent=function(un,tn,Gt){return st.a.createElement("div",{className:"pushed-content object-container"},st.a.createElement("div",Object.assign({className:"object-content"},Bt(Pt.props.theme,"pushed-content")),Pt.renderObjectContents(tn,Gt)))},Pt.getEllipsis=function(){return Pt.state.size===0?null:st.a.createElement("div",Object.assign({},Bt(Pt.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:Pt.toggleCollapsed}),"...")},Pt.getObjectMetaData=function(un){var tn=Pt.props,Gt=(tn.rjvId,tn.theme,Pt.state),xn=Gt.size,Gn=Gt.hovered;return st.a.createElement(Tr,Object.assign({rowHovered:Gn,size:xn},Pt.props))},Pt.renderObjectContents=function(un,tn){var Gt,xn=Pt.props,Gn=xn.depth,Jn=xn.parent_type,er=xn.index_offset,ir=xn.groupArraysAfterLength,Kn=xn.namespace,nr=Pt.state.object_type,ur=[],rr=Object.keys(un||{});return Pt.props.sortKeys&&nr!=="array"&&(rr=rr.sort()),rr.forEach(function(yr){if(Gt=new mo(yr,un[yr]),Jn==="array_group"&&er&&(Gt.name=parseInt(Gt.name)+er),un.hasOwnProperty(yr))if(Gt.type==="object")ur.push(st.a.createElement(St,Object.assign({key:Gt.name,depth:Gn+1,name:Gt.name,src:Gt.value,namespace:Kn.concat(Gt.name),parent_type:nr},tn)));else if(Gt.type==="array"){var mr=St;ir&&Gt.value.length>ir&&(mr=Qr),ur.push(st.a.createElement(mr,Object.assign({key:Gt.name,depth:Gn+1,name:Gt.name,src:Gt.value,namespace:Kn.concat(Gt.name),type:"array",parent_type:nr},tn)))}else ur.push(st.a.createElement(kr,Object.assign({key:Gt.name+"_"+Kn,variable:Gt,singleIndent:5,namespace:Kn,type:Pt.props.type},tn)))}),ur};var hn=Rt.getState(Wt);return Pt.state=rt(rt({},hn),{},{prevProps:{}}),Pt}return at(Rt,[{key:"getBraceStart",value:function(Wt,Pt){var hn=this,un=this.props,tn=un.src,Gt=un.theme,xn=un.iconStyle;if(un.parent_type==="array_group")return st.a.createElement("span",null,st.a.createElement("span",Bt(Gt,"brace"),Wt==="array"?"[":"{"),Pt?this.getObjectMetaData(tn):null);var Gn=Pt?Rr:Ur;return st.a.createElement("span",null,st.a.createElement("span",Object.assign({onClick:function(Jn){hn.toggleCollapsed()}},Bt(Gt,"brace-row")),st.a.createElement("div",Object.assign({className:"icon-container"},Bt(Gt,"icon-container")),st.a.createElement(Gn,{theme:Gt,iconStyle:xn})),st.a.createElement(Br,this.props),st.a.createElement("span",Bt(Gt,"brace"),Wt==="array"?"[":"{")),Pt?this.getObjectMetaData(tn):null)}},{key:"render",value:function(){var Wt=this,Pt=this.props,hn=Pt.depth,un=Pt.src,tn=(Pt.namespace,Pt.name,Pt.type,Pt.parent_type),Gt=Pt.theme,xn=Pt.jsvRoot,Gn=Pt.iconStyle,Jn=kt(Pt,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),er=this.state,ir=er.object_type,Kn=er.expanded,nr={};return xn||tn==="array_group"?tn==="array_group"&&(nr.borderLeft=0,nr.display="inline"):nr.paddingLeft=5*this.props.indentWidth,st.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return Wt.setState(rt(rt({},Wt.state),{},{hovered:!0}))},onMouseLeave:function(){return Wt.setState(rt(rt({},Wt.state),{},{hovered:!1}))}},Bt(Gt,xn?"jsv-root":"objectKeyVal",nr)),this.getBraceStart(ir,Kn),Kn?this.getObjectContent(hn,un,rt({theme:Gt,iconStyle:Gn},Jn)):this.getEllipsis(),st.a.createElement("span",{className:"brace-row"},st.a.createElement("span",{style:rt(rt({},Bt(Gt,"brace").style),{},{paddingLeft:Kn?"3px":"0px"})},ir==="array"?"]":"}"),Kn?null:this.getObjectMetaData(un)))}}],[{key:"getDerivedStateFromProps",value:function(Wt,Pt){var hn=Pt.prevProps;return Wt.src!==hn.src||Wt.collapsed!==hn.collapsed||Wt.name!==hn.name||Wt.namespace!==hn.namespace||Wt.rjvId!==hn.rjvId?rt(rt({},Rt.getState(Wt)),{},{prevProps:Wt}):null}}]),Rt}(st.a.PureComponent);Zr.getState=function(It){var Nt=Object.keys(It.src).length,Rt=(It.collapsed===!1||It.collapsed!==!0&&It.collapsed>It.depth)&&(!It.shouldCollapse||It.shouldCollapse({name:It.name,src:It.src,type:_t(It.src),namespace:It.namespace})===!1)&&Nt!==0;return{expanded:dn.get(It.rjvId,It.namespace,"expanded",Rt),object_type:It.type==="array"?"array":"object",parent_type:It.type==="array"?"array":"object",size:Nt,hovered:!1}};var mo=function It(Nt,Rt){nt(this,It),this.name=Nt,this.value=Rt,this.type=_t(Rt)};Mt(Zr);var St=Zr,Dt=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){var Wt;nt(this,Rt);for(var Pt=arguments.length,hn=new Array(Pt),un=0;untn.groupArraysAfterLength&&(xn=Qr),st.a.createElement("div",{className:"pretty-json-container object-container"},st.a.createElement("div",{className:"object-content"},st.a.createElement(xn,Object.assign({namespace:Gt,depth:0,jsvRoot:!0},tn))))},Wt}return Rt}(st.a.PureComponent),$t=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(Wt){var Pt;return nt(this,Rt),(Pt=Nt.call(this,Wt)).closeModal=function(){Bn.dispatch({rjvId:Pt.props.rjvId,name:"RESET"})},Pt.submit=function(){Pt.props.submit(Pt.state.input)},Pt.state={input:Wt.input?Wt.input:""},Pt}return at(Rt,[{key:"render",value:function(){var Wt=this,Pt=this.props,hn=Pt.theme,un=Pt.rjvId,tn=Pt.isValid,Gt=this.state.input,xn=tn(Gt);return st.a.createElement("div",Object.assign({className:"key-modal-request"},Bt(hn,"key-modal-request"),{onClick:this.closeModal}),st.a.createElement("div",Object.assign({},Bt(hn,"key-modal"),{onClick:function(Gn){Gn.stopPropagation()}}),st.a.createElement("div",Bt(hn,"key-modal-label"),"Key Name:"),st.a.createElement("div",{style:{position:"relative"}},st.a.createElement("input",Object.assign({},Bt(hn,"key-modal-input"),{className:"key-modal-input",ref:function(Gn){return Gn&&Gn.focus()},spellCheck:!1,value:Gt,placeholder:"...",onChange:function(Gn){Wt.setState({input:Gn.target.value})},onKeyPress:function(Gn){xn&&Gn.key==="Enter"?Wt.submit():Gn.key==="Escape"&&Wt.closeModal()}})),xn?st.a.createElement(cr,Object.assign({},Bt(hn,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Gn){return Wt.submit()}})):null),st.a.createElement("span",Bt(hn,"key-modal-cancel"),st.a.createElement(qn,Object.assign({},Bt(hn,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Bn.dispatch({rjvId:un,name:"RESET"})}})))))}}]),Rt}(st.a.PureComponent),mt=function(It){dt(Rt,It);var Nt=ct(Rt);function Rt(){var Wt;nt(this,Rt);for(var Pt=arguments.length,hn=new Array(Pt),un=0;un{_($.updated_src)},[]);return jsxs("div",{className:"send-tx-form",children:[jsx$1("h3",{children:"Configure and send transaction"}),jsx$1(ReactJson,{theme:"ocean",src:defaultTx,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"})]})}const footer="",style$3="",defaultColors={[THEME.LIGHT]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#0098EA",telegramButton:"#0098EA",icon:{primary:"#0F0F0F",secondary:"#7A8999",tertiary:"#C1CAD2",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#FFFFFF",secondary:"#F1F3F5",segment:"#FFFFFF",tint:"#F1F3F5",qr:"#F1F3F5"},text:{primary:"#0F0F0F",secondary:"#6A7785"}},[THEME.DARK]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#E5E5EA",telegramButton:"#31A6F5",icon:{primary:"#E5E5EA",secondary:"#909099",tertiary:"#434347",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#121214",secondary:"#18181A",segment:"#262629",tint:"#222224",qr:"#F1F3F5"},text:{primary:"#E5E5EA",secondary:"#7D7D85"}}},ColorsSelect=({theme:b})=>{const[_,d]=useTonConnectUI(),[k,j]=reactExports.useState(defaultColors[b]);reactExports.useEffect(()=>{j(defaultColors[b])},[b]);const $=(et,tt,rt)=>{d({uiPreferences:{colorsSet:{[b]:{[tt]:rt?{...k[tt],[rt]:et}:et}}}}),j(nt=>({...nt,[tt]:rt?{...nt[tt],[rt]:et}:et})),defaultColors[b]={...defaultColors[b],[tt]:rt?{...k[tt],[rt]:et}:et}};return jsx$1("div",{className:"colors-container",children:Object.entries(k).map(([et,tt])=>typeof tt=="object"?jsxs("div",{children:[jsxs("span",{children:[et,":"]}),Object.entries(tt).map(([rt,nt])=>jsxs("label",{children:[rt,jsx$1("input",{type:"color",value:k[et][rt],onChange:ot=>$(ot.target.value,et,rt)})]},et+rt))]},et):jsxs("div",{children:[jsxs("span",{children:[et,":"]}),jsx$1("label",{children:jsx$1("input",{type:"color",value:k[et],onChange:rt=>$(rt.target.value,et)})})]}))})},style$2="",ColorsModal=()=>{const[b,_]=reactExports.useState(!1),[d,k]=reactExports.useState(THEME.LIGHT);return jsxs(Fragment,{children:[jsx$1("button",{onClick:()=>_(!0),children:"change colors"}),b&&jsxs("div",{className:"modal",children:[jsx$1("button",{onClick:()=>_(!1),children:"close"}),jsxs("div",{className:"modal__toggle",children:[jsx$1("a",{href:"#",style:{color:d===THEME.LIGHT?"blue":"white"},onClick:()=>k(THEME.LIGHT),children:"LIGHT"}),jsx$1("a",{href:"#",style:{color:d===THEME.DARK?"blue":"white"},onClick:()=>k(THEME.DARK),children:"DARK"})]}),jsx$1(ColorsSelect,{theme:d})]})]})},Footer=()=>{const[b,_]=reactExports.useState([!0,!1,!1,!0,!0,!0]),[d,k]=reactExports.useState("back"),[j,$]=reactExports.useState("ios"),[et,tt]=reactExports.useState(!0),[rt,nt]=useTonConnectUI(),ot=lt=>{nt({language:lt})},at=lt=>{nt({uiPreferences:{theme:lt}})},it=lt=>{nt({uiPreferences:{borderRadius:lt}})},dt=lt=>{_(ct=>ct.map((gt,st)=>st===lt?!gt:gt))},ut=lt=>{tt(lt)},ht=()=>{if(!d){k("back");return}nt({actionsConfiguration:{returnStrategy:d}})},ft=()=>{if(!j){$("ios");return}nt({actionsConfiguration:{skipRedirectToWallet:j}})};return reactExports.useEffect(()=>{const lt=["before","success","error"],ct=lt.map((st,Ct)=>b[Ct]?st:void 0).filter(st=>st),gt=lt.map((st,Ct)=>b[Ct+3]?st:void 0).filter(st=>st);nt({actionsConfiguration:{modals:ct,notifications:gt}})},[b]),reactExports.useEffect(()=>{nt({enableAndroidBackHandler:et})},[et]),jsxs("footer",{className:"footer",children:[jsxs("div",{children:[jsx$1("label",{children:"language"}),jsxs("select",{onChange:lt=>ot(lt.target.value),children:[jsx$1("option",{value:"en",children:"en"}),jsx$1("option",{value:"ru",children:"ru"})]})]}),jsxs("div",{children:[jsx$1("label",{children:"theme"}),jsxs("select",{onChange:lt=>at(lt.target.value),children:[jsx$1("option",{value:THEME.DARK,children:"dark"}),jsx$1("option",{value:THEME.LIGHT,children:"light"}),jsx$1("option",{value:"SYSTEM",children:"system"})]})]}),jsxs("div",{children:[jsx$1("label",{children:"borders"}),jsxs("select",{onChange:lt=>it(lt.target.value),children:[jsx$1("option",{value:"m",children:"m"}),jsx$1("option",{value:"s",children:"s"}),jsx$1("option",{value:"none",children:"none"})]})]}),jsxs("div",{children:[jsx$1("label",{children:"enable android back handler"}),jsxs("select",{onChange:lt=>ut(lt.target.value==="true"),value:et.toString(),children:[jsx$1("option",{value:"true",children:"true"}),jsx$1("option",{value:"false",children:"false"})]})]}),jsxs("div",{className:"footer-checkbox-container",children:[jsx$1("span",{children:"modals"}),jsxs("label",{children:["before",jsx$1("input",{type:"checkbox",checked:b[0],onChange:()=>dt(0)})]}),jsxs("label",{children:["success",jsx$1("input",{type:"checkbox",checked:b[1],onChange:()=>dt(1)})]}),jsxs("label",{children:["error",jsx$1("input",{type:"checkbox",checked:b[2],onChange:()=>dt(2)})]})]}),jsxs("div",{className:"footer-checkbox-container",children:[jsx$1("span",{children:"notifications"}),jsxs("label",{children:["before",jsx$1("input",{type:"checkbox",checked:b[3],onChange:()=>dt(3)})]}),jsxs("label",{children:["success",jsx$1("input",{type:"checkbox",checked:b[4],onChange:()=>dt(4)})]}),jsxs("label",{children:["error",jsx$1("input",{type:"checkbox",checked:b[5],onChange:()=>dt(5)})]})]}),jsx$1("div",{children:jsx$1(ColorsModal,{})}),jsx$1("div",{children:jsxs("label",{children:["return strategy:",jsx$1("input",{style:{width:"200px"},value:d,onChange:lt=>k(lt.target.value),onBlur:ht})]})}),jsx$1("div",{children:jsxs("label",{children:[jsx$1("div",{children:"skip redirect to wallet:"}),jsx$1("div",{children:"('ios', 'never', 'always')"}),jsx$1("input",{style:{width:"200px"},value:j,onChange:lt=>$(lt.target.value),onBlur:ft})]})})]})},style$1="";class TonProofDemoApiService{constructor(){Jo(this,"localStorageKey","demo-api-access-token");Jo(this,"host",document.baseURI.replace(/\/$/,""));Jo(this,"accessToken",null);Jo(this,"refreshIntervalMs",9*60*1e3);this.accessToken=localStorage.getItem(this.localStorageKey),this.accessToken||this.generatePayload()}async generatePayload(){try{return{tonProof:(await(await fetch(`${this.host}/api/generate_payload`,{method:"POST"})).json()).payload}}catch{return null}}async checkProof(_,d){try{const k={address:d.address,network:d.chain,public_key:d.publicKey,proof:{..._,state_init:d.walletStateInit}},j=await(await fetch(`${this.host}/api/check_proof`,{method:"POST",body:JSON.stringify(k)})).json();j!=null&&j.token&&(localStorage.setItem(this.localStorageKey,j.token),this.accessToken=j.token)}catch(k){console.log("checkProof error:",k)}}async getAccountInfo(_){return await(await fetch(`${this.host}/api/get_account_info`,{headers:{Authorization:`Bearer ${this.accessToken}`,"Content-Type":"application/json"}})).json()}async createJetton(_){return await(await fetch(`${this.host}/api/create_jetton`,{body:JSON.stringify(_),headers:{Authorization:`Bearer ${this.accessToken}`,"Content-Type":"application/json"},method:"POST"})).json()}reset(){this.accessToken=null,localStorage.removeItem(this.localStorageKey),this.generatePayload()}}const TonProofDemoApi=new TonProofDemoApiService;function useInterval(b,_){const d=reactExports.useRef(b);reactExports.useLayoutEffect(()=>{d.current=b},[b]),reactExports.useEffect(()=>{if(!_&&_!==0)return;const k=setInterval(()=>d.current(),_);return()=>clearInterval(k)},[_])}const TonProofDemo=()=>{const b=reactExports.useRef(!0),[_,d]=reactExports.useState({}),k=useTonWallet(),[j,$]=reactExports.useState(!1),[et]=useTonConnectUI(),tt=reactExports.useCallback(async()=>{b.current&&(et.setConnectRequestParameters({state:"loading"}),b.current=!1);const nt=await TonProofDemoApi.generatePayload();nt?et.setConnectRequestParameters({state:"ready",value:nt}):et.setConnectRequestParameters(null)},[et,b]);b.current&&tt(),useInterval(tt,TonProofDemoApi.refreshIntervalMs),reactExports.useEffect(()=>et.onStatusChange(async nt=>{var ot;if(!nt){TonProofDemoApi.reset(),$(!1);return}if((ot=nt.connectItems)!=null&&ot.tonProof&&"proof"in nt.connectItems.tonProof&&await TonProofDemoApi.checkProof(nt.connectItems.tonProof.proof,nt.account),!TonProofDemoApi.accessToken){et.disconnect(),$(!1);return}$(!0)}),[et]);const rt=reactExports.useCallback(async()=>{if(!k)return;const nt=await TonProofDemoApi.getAccountInfo(k.account);d(nt)},[k]);return j?jsxs("div",{className:"ton-proof-demo",children:[jsx$1("h3",{children:"Demo backend API with ton_proof verification"}),j?jsx$1("button",{onClick:rt,children:"Call backend getAccountInfo()"}):jsx$1("div",{className:"ton-proof-demo__error",children:"Connect wallet to call API"}),jsx$1(ReactJson,{src:_,name:"response",theme:"ocean"})]}):null},style="",jetton={name:"Joint Photographic Experts Group",description:"JPEG is a commonly used method of lossy compression for digital images, particularly for those images produced by digital photography. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and image quality.",image_data:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAdVBMVEX///8rKytSUlITExPT09Pm5uYcHBzKysqXl5cZGRmnp6cnJydISEjr6+tOTk5LS0swMDAhISHa2tq3t7fg4OBra2sKCgrw8PB3d3dCQkJeXl49PT29vb2goKCvr68AAADOzs5jY2ODg4ONjY1wcHA2NjaSkpJ0yRZUAAAFXklEQVR4nO3de3eaMBgGcCEIxkgVCiiIVG3t9/+IS8LFS+1ERy665/ljZwW3k99yeV9x5zgaIQiCIAiCIAiCIAiCIAhiLGFQTf85iWnF7wkKQui/Z2Yt8TuLnCEyn1tKnGSD+BznzbVzFuOPgYBc6Fo5i1/DLNFa+PZmIZEMBRRC152NTYMuMx5YaN9e9IYWurYtVAVCy46b4YW27UUVQrv2ohKhVUVDidCqhapIaNFCVSW0p4FTJrSmaCgTWrMXFQot2YsqhXY0cGqFNuxFpUIrFqpioQVFQ7XQfAOnWmi+aKgXmt6LGoSG96IOodmioUNodi/qEZrci5qEBhs4bUJjs6hLaG6h6hOaKhoahYYaOI1CQ0VDq9DIXtQrNFE0dAv1HzeahQb2onah9r2oX6i7aOgX8gZO60I1INS8UI0ItTZwZoQ696IZoc6iYUqoby8aE2pr4AwKNR03Awrn9wl1LdQBhbN7hXqIAwrXdwu1FI0BhYu7hVqKxoDCByZRx0IdUsjyB4jKT9QhhY/Nouq9OKzQcQ757N4cwqcS3h+WBS8udAiEEEJoGgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQWCJmM3cIFz/F34gdCaMROb5/llEejfO6689whfb+Uz4CQlHEczyQoiD2ZIKj2efNSWjUXm8QTv/ORYrpNxstwnHhVyvoZTQi34TicS2EcjuuEYTiu6rVH3tuLza1NKyRFEHb3wtBbZX0WqwlhwAfYCGtcKAcexmvWCsNjlo2Q0c2yvtP8Ml4Ghx7TaF64X61WmyoR4962cxhWk2NS+VLmlJIWTNKiSPel/AOxe5toXpj7UeSTw7cY8affCHfE71IvRSqnNiiIHzEWRWQ9FT8nhycQ1mcOIxM+4rgVppdzQ8XtcEO76/zU4dPY42tObRE6bCF2Vs6uC9laAs++edefe4Xv3Iw1QifzuCH9RSgvBvSC3avw2yaMrgpZLia4eOibd+0RMoGYX5/DaCWm8LEO0Boh+eQ7LaHtSUOjLk5zbdJj01kpzIXCJ6u2fak1qy7iuCRbPr+7O9ptq4SrNE33E08W8AP70dMsY3GAij0664R+1uX2yjUvPOnaZu2KPG1LvYzXikRMdiv0N8su3s3Tx7ywa73LtRytFB7fXsT8gLkUTo7/BsGTCJO43BTNO8T6pHHO3x6erdJ2DsMnEYqBM+bTdvzXqoU4aY7X2KyQSZPnEZ7dviIUbTdvStsf6wcZ0fqFhKLij7cXfxfLX0jI1qLh+dHKvZDQIRWfRM85e+lrCdlBtAHv9PS17JX2Ia8Q8hlAuTj2pkw2ek8r3GW0S42ilezrVhnvyZloZNfywrMKx+W06rKpr0fvdWs33afu12ojHyyG2/xmO26p8ORpYui1NyZ1+8q78bB5pvje412+YSEf6FXhWevd3qFFuTx5Irws+zymMSwsgyC4XGf+Zhuc5b27xWix8Zq3IsG3S29PoBlhtO3WJuH5MUyfnOf0+ROj2drdpUXuE7/nG2ITnz3xNwrJ7RPit4iO1O5P1+Rzs3hxZSxqolkY+X72yetdqe+zYb3CaL/5rMRBuH/o0ecTCOl0KQuZ98toXkPIK1n9QeFLCtmuCoLyM9II1H3SMMoLnL49aEBoIBBC+N8LEwuEnlLhKLs9BMXJlmqFO72l4WfYTC1wtP0wLPwoFQtHe7M7kaaqgaPRV6//X6cmjOzUA0ej6pBR30RotpjqAPJ404mJTLeKj1EEQRAEQRAEQRAEQRAEQf6SP4jPv7WHGoGuAAAAAElFTkSuQmCC",symbol:"JPEG",decimals:9,amount:"1000000000000000"},CreateJettonDemo=()=>{const[b,_]=reactExports.useState({}),[d]=useTonConnectUI(),k=useTonWallet();return jsxs("div",{className:"create-jetton-demo",children:[jsx$1("h3",{children:"Create Jetton"}),k?jsx$1("button",{onClick:async()=>{const $=await TonProofDemoApi.createJetton(jetton);_($),"error"in $||await d.sendTransaction($)},children:"Send create jetton"}):jsx$1("div",{className:"ton-proof-demo__error",children:"Connect wallet to send transaction"}),jsx$1(ReactJson,{src:b,name:"response",theme:"ocean"})]})};function App(){return jsx$1(TonConnectUIProvider$1,{manifestUrl:"https://ton-connect.github.io/demo-dapp-with-react-ui/tonconnect-manifest.json",uiPreferences:{theme:THEME.DARK},walletsListConfiguration:{includeWallets:[{appName:"tonwallet",name:"TON Wallet",imageUrl:"https://wallet.ton.org/assets/ui/qr-logo.png",aboutUrl:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",universalLink:"https://wallet.ton.org/ton-connect",jsBridgeKey:"tonwallet",bridgeUrl:"https://bridge.tonapi.io/bridge",platforms:["chrome","android"]},{appName:"nicegramWallet",name:"Nicegram Wallet",imageUrl:"https://static.nicegram.app/icon.png",aboutUrl:"https://nicegram.app",universalLink:"https://nicegram.app/tc",deepLink:"nicegram-tc://",jsBridgeKey:"nicegramWallet",bridgeUrl:"https://bridge.tonapi.io/bridge",platforms:["ios","android"]},{appName:"tokenpocket",name:"TokenPocket",imageUrl:"https://hk.tpstatic.net/logo/tokenpocket.png",aboutUrl:"https://tokenpocket.pro",jsBridgeKey:"tokenpocket",platforms:["ios","android"]},{appName:"dewallet",name:"DeWallet",imageUrl:"https://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png",aboutUrl:"https://delabwallet.com",universalLink:"https://t.me/dewallet?attach=wallet",bridgeUrl:"https://bridge.dewallet.pro/bridge",platforms:["ios","android","macos","windows","linux"]},{appName:"BitgetWeb3",name:"BitgetWeb3",imageUrl:"https://img.bitgetimg.com/image/third/1723701408284.png",aboutUrl:"https://www.bitget.com",universalLink:"https://t.me/BitgetOfficialBot?attach=wallet",bridgeUrl:"https://ton-connect-bridge.bgwapi.io/bridge",platforms:["ios","android","windows","macos","linux"]},{appName:"cdcTonWallet",name:"Crypto.com DeFi Wallet",imageUrl:"https://apro-ncw-api-file.crypto.com/wallet/logo",aboutUrl:"https://crypto.com/defi-wallet",universalLink:"https://wallet.crypto.com/deeplink/ton-connect",deepLink:"dfw://",jsBridgeKey:"cdcTonWallet",bridgeUrl:"https://wallet.crypto.com/sse/tonbridge",platforms:["ios","android","chrome"]},{appName:"tobi",name:"Tobi",imageUrl:"https://app.tobiwallet.app/icons/logo.png",aboutUrl:"https://tobi.fun",universalLink:"https://t.me/TobiWalletBot?attach=wallet",bridgeUrl:"https://bridge.tonapi.io/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/",jsBridgeKey:"trustwalletTon",platforms:["chrome","ios","android"]}]},actionsConfiguration:{twaReturnUrl:"https://t.me/DemoDappWithTonConnectBot/demo"},children:jsxs("div",{className:"app",children:[jsx$1(Header,{}),jsx$1(TxForm,{}),jsx$1(CreateJettonDemo,{}),jsx$1(TonProofDemo,{}),jsx$1(Footer,{})]})})}const index="";function runSingleInstance(b){let _=!1;return async()=>{if(!_){_=!0;try{await b()}catch(d){console.error(d)}finally{_=!1}}}}eruda.init();async function enableMocking(){const b=document.baseURI.replace(/\/$/,"");return new Promise(async _=>{const{worker:d}=await __vitePreload(()=>import("./worker-7201ecfc.js"),[]),k=()=>d.start({onUnhandledRequest:"bypass",quiet:!1,serviceWorker:{url:"/demo-dapp-with-react-ui/mockServiceWorker.js"}});let j=await k();_(j);const $=runSingleInstance(async()=>{var et;try{const rt=(await((et=navigator.serviceWorker)==null?void 0:et.getRegistrations())||[]).length>0,nt=await fetch(`${b}/api/healthz`).then(ot=>ot.status===200?ot.json().then(at=>at.ok).catch(()=>!1):!1).catch(()=>!1);(!rt||!nt)&&(await(j==null?void 0:j.unregister().catch(()=>{})),j=await k().catch(()=>null))}catch(tt){console.error("Error in verifyAndRestartWorker:",tt),j=await k().catch(()=>null)}});setInterval($,1e3)})}enableMocking().then(()=>reactDomExports.render(jsx$1(reactExports.StrictMode,{children:jsx$1(App,{})}),document.getElementById("root")));export{CHAIN as C,buffer as b,commonjsGlobal as c,getAugmentedNamespace as g,naclFastExports as n,require$$4 as r};
diff --git a/docs/assets/worker-2c344dd1.js b/docs/assets/worker-7201ecfc.js
similarity index 99%
rename from docs/assets/worker-2c344dd1.js
rename to docs/assets/worker-7201ecfc.js
index 3e0c7ae..6727878 100644
--- a/docs/assets/worker-2c344dd1.js
+++ b/docs/assets/worker-7201ecfc.js
@@ -1,4 +1,4 @@
-var eb=Object.defineProperty;var tb=(e,t,r)=>t in e?eb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ae=(e,t,r)=>(tb(e,typeof t!="symbol"?t+"":t,r),r),ql=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var fo=(e,t,r)=>(ql(e,t,"read from private field"),r?r.call(e):t.get(e)),$l=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Ku=(e,t,r,n)=>(ql(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Hs=(e,t,r)=>(ql(e,t,"access private method"),r);import{C as Yo,c as J,n as oi,g as rb,b as Ue,r as Qo}from"./index-6d99548d.js";var nb=/(%?)(%([sdijo]))/g;function ab(e,t){switch(t){case"s":return e;case"d":case"i":return Number(e);case"j":return JSON.stringify(e);case"o":{if(typeof e=="string")return e;const r=JSON.stringify(e);return r==="{}"||r==="[]"||/^\[object .+?\]$/.test(r)?e:r}}}function Wc(e,...t){if(t.length===0)return e;let r=0,n=e.replace(nb,(a,o,s,i)=>{const l=t[r],c=ab(l,i);return o?a:(r++,c)});return rt in e?eb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ae=(e,t,r)=>(tb(e,typeof t!="symbol"?t+"":t,r),r),ql=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var fo=(e,t,r)=>(ql(e,t,"read from private field"),r?r.call(e):t.get(e)),$l=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Ku=(e,t,r,n)=>(ql(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Hs=(e,t,r)=>(ql(e,t,"access private method"),r);import{C as Yo,c as J,n as oi,g as rb,b as Ue,r as Qo}from"./index-ea3a1866.js";var nb=/(%?)(%([sdijo]))/g;function ab(e,t){switch(t){case"s":return e;case"d":case"i":return Number(e);case"j":return JSON.stringify(e);case"o":{if(typeof e=="string")return e;const r=JSON.stringify(e);return r==="{}"||r==="[]"||/^\[object .+?\]$/.test(r)?e:r}}}function Wc(e,...t){if(t.length===0)return e;let r=0,n=e.replace(nb,(a,o,s,i)=>{const l=t[r],c=ab(l,i);return o?a:(r++,c)});return r{if(!e)throw new ib(t,...r)};Zo.as=(e,t,r,...n)=>{if(!t){const a=n.length===0?r:Wc(r,n);let o;try{o=Reflect.construct(e,[a])}catch{o=e(a)}throw o}};const lb="[MSW]";function Jc(e,...t){const r=Wc(e,...t);return`${lb} ${r}`}function cb(e,...t){console.warn(Jc(e,...t))}function ub(e,...t){console.error(Jc(e,...t))}const ke={formatMessage:Jc,warn:cb,error:ub};class Gu extends Error{constructor(t){super(t),this.name="InternalError"}}function db(){Zo(typeof URL<"u",ke.formatMessage(`Global "URL" class is not defined. This likely means that you're running MSW in an environment that doesn't support all Node.js standard API (e.g. React Native). If that's the case, please use an appropriate polyfill for the "URL" class, like "react-native-url-polyfill".`))}var fb=class extends Error{constructor(t,r,n){super(`Possible EventEmitter memory leak detected. ${n} ${r.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`),this.emitter=t,this.type=r,this.count=n,this.name="MaxListenersExceededWarning"}},qf=class{static listenerCount(t,r){return t.listenerCount(r)}constructor(){this.events=new Map,this.maxListeners=qf.defaultMaxListeners,this.hasWarnedAboutPotentialMemoryLeak=!1}_emitInternalEvent(t,r,n){this.emit(t,r,n)}_getListeners(t){return Array.prototype.concat.apply([],this.events.get(t))||[]}_removeListener(t,r){const n=t.indexOf(r);return n>-1&&t.splice(n,1),[]}_wrapOnceListener(t,r){const n=(...a)=>(this.removeListener(t,n),r.apply(this,a));return Object.defineProperty(n,"name",{value:r.name}),n}setMaxListeners(t){return this.maxListeners=t,this}getMaxListeners(){return this.maxListeners}eventNames(){return Array.from(this.events.keys())}emit(t,...r){const n=this._getListeners(t);return n.forEach(a=>{a.apply(this,r)}),n.length>0}addListener(t,r){this._emitInternalEvent("newListener",t,r);const n=this._getListeners(t).concat(r);if(this.events.set(t,n),this.maxListeners>0&&this.listenerCount(t)>this.maxListeners&&!this.hasWarnedAboutPotentialMemoryLeak){this.hasWarnedAboutPotentialMemoryLeak=!0;const a=new fb(this,t,this.listenerCount(t));console.warn(a)}return this}on(t,r){return this.addListener(t,r)}once(t,r){return this.addListener(t,this._wrapOnceListener(t,r))}prependListener(t,r){const n=this._getListeners(t);if(n.length>0){const a=[r].concat(n);this.events.set(t,a)}else this.events.set(t,n.concat(r));return this}prependOnceListener(t,r){return this.prependListener(t,this._wrapOnceListener(t,r))}removeListener(t,r){const n=this._getListeners(t);return n.length>0&&(this._removeListener(n,r),this.events.set(t,n),this._emitInternalEvent("removeListener",t,r)),this}off(t,r){return this.removeListener(t,r)}removeAllListeners(t){return t?this.events.delete(t):this.events.clear(),this}listeners(t){return Array.from(this._getListeners(t))}listenerCount(t){return this._getListeners(t).length}rawListeners(t){return this.listeners(t)}},mc=qf;mc.defaultMaxListeners=10;function hb(e,t){const r=e.emit;if(r._isPiped)return;const n=function(o,...s){return t.emit(o,...s),r.call(this,o,...s)};n._isPiped=!0,e.emit=n}function gb(e){const t=[...e];return Object.freeze(t),t}class pb{constructor(){Ae(this,"subscriptions",[])}dispose(){let t;for(;t=this.subscriptions.shift();)t()}}class mb{constructor(t){Ae(this,"handlers");this.initialHandlers=t,this.handlers=[...t]}prepend(t){this.handlers.unshift(...t)}reset(t){this.handlers=t.length>0?[...t]:[...this.initialHandlers]}currentHandlers(){return this.handlers}}class yb extends pb{constructor(...r){super();Ae(this,"handlersController");Ae(this,"emitter");Ae(this,"publicEmitter");Ae(this,"events");Zo(this.validateHandlers(r),ke.formatMessage("Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?")),this.handlersController=new mb(r),this.emitter=new mc,this.publicEmitter=new mc,hb(this.emitter,this.publicEmitter),this.events=this.createLifeCycleEvents(),this.subscriptions.push(()=>{this.emitter.removeAllListeners(),this.publicEmitter.removeAllListeners()})}validateHandlers(r){return r.every(n=>!Array.isArray(n))}use(...r){Zo(this.validateHandlers(r),ke.formatMessage('Failed to call "use()" with the given request handlers: invalid input. Did you forget to spread the array of request handlers?')),this.handlersController.prepend(r)}restoreHandlers(){this.handlersController.currentHandlers().forEach(r=>{r.isUsed=!1})}resetHandlers(...r){this.handlersController.reset(r)}listHandlers(){return gb(this.handlersController.currentHandlers())}createLifeCycleEvents(){return{on:(...r)=>this.publicEmitter.on(...r),removeListener:(...r)=>this.publicEmitter.removeListener(...r),removeAllListeners:(...r)=>this.publicEmitter.removeAllListeners(...r)}}}const bb=/[\/\\]msw[\/\\]src[\/\\](.+)/,wb=/(node_modules)?[\/\\]lib[\/\\](core|browser|node|native|iife)[\/\\]|^[^\/\\]*$/;function vb(e){const t=e.stack;if(!t)return;const n=t.split(`
`).slice(1).find(o=>!(bb.test(o)||wb.test(o)));return n?n.replace(/\s*at [^()]*\(([^)]+)\)/,"$1").replace(/^@/,""):void 0}function _b(e){return e?typeof e[Symbol.iterator]=="function":!1}const Go=class Go{constructor(t){Ae(this,"info");Ae(this,"isUsed");Ae(this,"resolver");Ae(this,"resolverGenerator");Ae(this,"resolverGeneratorResult");Ae(this,"options");this.resolver=t.resolver,this.options=t.options;const r=vb(new Error);this.info={...t.info,callFrame:r},this.isUsed=!1}async parse(t){return{}}async test(t){const r=await this.parse({request:t.request,resolutionContext:t.resolutionContext});return this.predicate({request:t.request,parsedResult:r,resolutionContext:t.resolutionContext})}extendResolverArgs(t){return{}}cloneRequestOrGetFromCache(t){const r=Go.cache.get(t);if(typeof r<"u")return r;const n=t.clone();return Go.cache.set(t,n),n}async run(t){var u,d;if(this.isUsed&&((u=this.options)!=null&&u.once))return null;const r=this.cloneRequestOrGetFromCache(t.request),n=await this.parse({request:t.request,resolutionContext:t.resolutionContext});if(!this.predicate({request:t.request,parsedResult:n,resolutionContext:t.resolutionContext})||this.isUsed&&((d=this.options)!=null&&d.once))return null;this.isUsed=!0;const o=this.wrapResolver(this.resolver),s=this.extendResolverArgs({request:t.request,parsedResult:n}),l=await o({...s,requestId:t.requestId,request:t.request}).catch(g=>{if(g instanceof Response)return g;throw g});return this.createExecutionResult({request:r,requestId:t.requestId,response:l,parsedResult:n})}wrapResolver(t){return async r=>{const n=this.resolverGenerator||await t(r);if(_b(n)){this.isUsed=!1;const{value:a,done:o}=n[Symbol.iterator]().next(),s=await a;return o&&(this.isUsed=!0),!s&&o?(Zo(this.resolverGeneratorResult,"Failed to returned a previously stored generator response: the value is not a valid Response."),this.resolverGeneratorResult.clone()):(this.resolverGenerator||(this.resolverGenerator=n),s&&(this.resolverGeneratorResult=s==null?void 0:s.clone()),s)}return n}}createExecutionResult(t){return{handler:this,request:t.request,requestId:t.requestId,response:t.response,parsedResult:t.parsedResult}}};Ae(Go,"cache",new WeakMap);let si=Go;function Cb(e,t){return e.toLowerCase()===t.toLowerCase()}function Ab(e){return e<300?"#69AB32":e<400?"#F0BB4B":"#E95F5D"}function Eb(){const e=new Date;return[e.getHours(),e.getMinutes(),e.getSeconds()].map(String).map(t=>t.slice(0,2)).map(t=>t.padStart(2,"0")).join(":")}async function Sb(e){const r=await e.clone().text();return{url:new URL(e.url),method:e.method,headers:Object.fromEntries(e.headers.entries()),body:r}}var kb=Object.create,$f=Object.defineProperty,Pb=Object.getOwnPropertyDescriptor,Hf=Object.getOwnPropertyNames,Tb=Object.getPrototypeOf,Bb=Object.prototype.hasOwnProperty,Vf=(e,t)=>function(){return t||(0,e[Hf(e)[0]])((t={exports:{}}).exports,t),t.exports},Mb=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Hf(t))!Bb.call(e,a)&&a!==r&&$f(e,a,{get:()=>t[a],enumerable:!(n=Pb(t,a))||n.enumerable});return e},Ob=(e,t,r)=>(r=e!=null?kb(Tb(e)):{},Mb(t||!e||!e.__esModule?$f(r,"default",{value:e,enumerable:!0}):r,e)),Ib=Vf({"node_modules/statuses/codes.json"(e,t){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}}}),Nb=Vf({"node_modules/statuses/index.js"(e,t){var r=Ib();t.exports=i,i.message=r,i.code=n(r),i.codes=a(r),i.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},i.empty={204:!0,205:!0,304:!0},i.retry={502:!0,503:!0,504:!0};function n(l){var c={};return Object.keys(l).forEach(function(d){var g=l[d],y=Number(d);c[g.toLowerCase()]=y}),c}function a(l){return Object.keys(l).map(function(u){return Number(u)})}function o(l){var c=l.toLowerCase();if(!Object.prototype.hasOwnProperty.call(i.code,c))throw new Error('invalid status message: "'+l+'"');return i.code[c]}function s(l){if(!Object.prototype.hasOwnProperty.call(i.message,l))throw new Error("invalid status code: "+l);return i.message[l]}function i(l){if(typeof l=="number")return s(l);if(typeof l!="string")throw new TypeError("code must be a number or string");var c=parseInt(l,10);return isNaN(c)?o(l):s(c)}}}),Rb=Ob(Nb(),1),Wf=Rb.default;/*! Bundled license information:
diff --git a/docs/index.html b/docs/index.html
index 3bacde1..7c91afe 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -9,7 +9,7 @@
Demo Dapp with @tonconnect/ui-react
-
+