0;i--)n.removeChild(n.firstChild);if(t.lastRow>e.lastRow)for(i=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);i>0;i--)n.removeChild(n.lastChild);if(e.firstRowt.lastRow){r=this.$renderLinesFragment(e,t.lastRow+1,e.lastRow);n.appendChild(r)}},this.$renderLinesFragment=function(e,t,n){var i=this.element.ownerDocument.createDocumentFragment(),s=t,o=this.session.getNextFoldLine(s),a=o?o.start.row:1/0;while(1){if(s>a&&(s=o.end.row+1,o=this.session.getNextFoldLine(s,o),a=o?o.start.row:1/0),s>n)break;var c=r.createElement("div"),l=[];if(this.$renderLine(l,s,!1,s==a&&o),c.innerHTML=l.join(""),this.$useLineGroups())c.className="ace_line_group",i.appendChild(c),c.style.height=e.lineHeight*this.session.getRowLength(s)+"px";else while(c.firstChild)i.appendChild(c.firstChild);s++}return i},this.update=function(e){this.config=e;var t=[],n=e.firstRow,i=e.lastRow,r=n,s=this.session.getNextFoldLine(r),o=s?s.start.row:1/0;while(1){if(r>o&&(r=s.end.row+1,s=this.session.getNextFoldLine(r,s),o=s?s.start.row:1/0),r>i)break;this.$useLineGroups()&&t.push(""),this.$renderLine(t,r,!1,r==o&&s),this.$useLineGroups()&&t.push("
"),r++}this.element.innerHTML=t.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,i){var r=this,o=/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,a=function(e,n,i,o,a){if(n)return r.showInvisibles?""+s.stringRepeat(r.SPACE_CHAR,e.length)+" ":e;if("&"==e)return"&";if("<"==e)return"<";if(">"==e)return">";if("\t"==e){var c=r.session.getScreenTabSize(t+o);return t+=c-1,r.$tabStrings[c]}if(" "==e){var l=r.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",u=r.showInvisibles?r.SPACE_CHAR:"";return t+=1,""+u+" "}return i?""+r.SPACE_CHAR+" ":(t+=1,""+e+" ")},c=i.replace(o,a);if(this.$textToken[n.type])e.push(c);else{var l="ace_"+n.type.replace(/\./g," ace_"),u="";"fold"==n.type&&(u=" style='width:"+n.value.length*this.config.characterWidth+"px;' "),e.push("",c," ")}return t+i.length},this.renderIndentGuide=function(e,t,n){var i=t.search(this.$indentGuideRe);return i<=0||i>=n?t:" "==t[0]?(i-=i%this.tabSize,e.push(s.stringRepeat(this.$tabStrings[" "],i/this.tabSize)),t.substr(i)):"\t"==t[0]?(e.push(s.stringRepeat(this.$tabStrings["\t"],i)),t.substr(i)):t},this.$renderWrappedLine=function(e,t,n,i){for(var r=0,o=0,a=n[0],c=0,l=0;l=a)c=this.$renderToken(e,c,u,h.substring(0,a-r)),h=h.substring(a-r),r=a,i||e.push("",""),e.push(s.stringRepeat(" ",n.indent)),o++,c=0,a=n[o]||Number.MAX_VALUE;0!=h.length&&(r+=h.length,c=this.$renderToken(e,c,u,h))}}},this.$renderSimpleLine=function(e,t){var n=0,i=t[0],r=i.value;this.displayIndentGuides&&(r=this.renderIndentGuide(e,r)),r&&(n=this.$renderToken(e,n,i,r));for(var s=1;s"),r.length){var s=this.session.getRowSplitData(t);s&&s.length?this.$renderWrappedLine(e,r,s,n):this.$renderSimpleLine(e,r)}this.showInvisibles&&(i&&(t=i.end.row),e.push("",t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR," ")),n||e.push("
")},this.$getFoldLineTokens=function(e,t){var n=this.session,i=[];function r(e,t,n){var r=0,s=0;while(s+e[r].value.lengthn-t&&(o=o.substring(0,n-t)),i.push({type:e[r].type,value:o}),s=t+o.length,r+=1}while(sn?i.push({type:e[r].type,value:o.substring(0,n-s)}):i.push(e[r]),s+=o.length,r+=1}}var s=n.getTokens(e);return t.walk((function(e,t,o,a,c){null!=e?i.push({type:"fold",value:e}):(c&&(s=n.getTokens(t)),s.length&&r(s,a,o))}),t.end.row,this.session.getLine(t.end.row).length),i},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(a.prototype),t.Text=a})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i,r=e("../lib/dom"),s=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),void 0===i&&(i=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(i?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.visibility=e?"":"hidden"},this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.opacity=e?"":"0"},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e==this.smoothBlinking||i||(this.smoothBlinking=e,r.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var e=r.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&r.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible){this.smoothBlinking&&setTimeout(function(){r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this));var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e),i=this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),r=(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:i,top:r}},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,i=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]);n=0;for(var r=t.length;ne.height+e.offset||s.top<0)&&n>1)){var o=(this.cursors[i++]||this.addCursor()).style;this.drawCursor?this.drawCursor(o,s,e,t[n],this.session):(o.left=s.left+"px",o.top=s.top+"px",o.width=e.characterWidth+"px",o.height=e.lineHeight+"px")}}while(this.cursors.length>i)this.removeCursor();var a=this.session.getOverwrite();this.$setOverwrite(a),this.$pixelPos=s,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(s.prototype),t.Cursor=s})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/dom"),s=e("./lib/event"),o=e("./lib/event_emitter").EventEmitter,a=32768,c=function(e){this.element=r.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=r.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addListener(this.element,"scroll",this.onScroll.bind(this)),s.addListener(this.element,"mousedown",s.preventDefault)};(function(){i.implement(this,o),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(c.prototype);var l=function(e,t){c.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=r.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};i.inherits(l,c),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>a?(this.coeff=a/e,e=a):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(l.prototype);var u=function(e,t){c.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};i.inherits(u,c),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(u.prototype),t.ScrollBar=l,t.ScrollBarV=l,t.ScrollBarH=u,t.VScrollBar=l,t.HScrollBar=u})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){"use strict";var i=e("./lib/event"),r=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.window=t||window};(function(){this.schedule=function(e){if(this.changes=this.changes|e,!this.pending&&this.changes){this.pending=!0;var t=this;i.nextFrame((function(){var e;t.pending=!1;while(e=t.changes)t.changes=0,t.onRender(e)}),this.window)}}}).call(r.prototype),t.RenderLoop=r})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var i=e("../lib/oop"),r=e("../lib/dom"),s=e("../lib/lang"),o=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,c=0,l=t.FontMetrics=function(e){this.el=r.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=r.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=r.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),c||this.$testFractionalRect(),this.$measureNode.innerHTML=s.stringRepeat("X",c),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){i.implement(this,a),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var e=r.createElement("div");this.$setMeasureNodeStyles(e.style),e.style.width="0.2px",document.documentElement.appendChild(e);var t=e.getBoundingClientRect().width;c=t>0&&t<1?50:100,e.parentNode.removeChild(e)},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",o.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(){var e=this.$measureSizes();if(e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=setInterval((function(){e.checkForSizeChanges()}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(50===c){var e=null;try{e=this.$measureNode.getBoundingClientRect()}catch(n){e={width:0,height:0}}var t={height:e.height,width:e.width/c}}else t={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/c};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){this.$main.innerHTML=s.stringRepeat(e,c);var t=this.$main.getBoundingClientRect();return t.width/c},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(l.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/dom"),s=e("./config"),o=e("./lib/useragent"),a=e("./layer/gutter").Gutter,c=e("./layer/marker").Marker,l=e("./layer/text").Text,u=e("./layer/cursor").Cursor,h=e("./scrollbar").HScrollBar,f=e("./scrollbar").VScrollBar,d=e("./renderloop").RenderLoop,p=e("./layer/font_metrics").FontMetrics,g=e("./lib/event_emitter").EventEmitter,m='.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_text-input-ios {position: absolute !important;top: -100000px !important;left: -100000px !important;}';r.importCssString(m,"ace_editor.css");var v=function(e,t){var n=this;this.container=e||r.createElement("div"),this.$keepTextAreaAtCursor=!o.isOldIE,r.addCssClass(this.container,"ace_editor"),this.setTheme(t),this.$gutter=r.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=r.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=r.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new c(this.content);var i=this.$textLayer=new l(this.content);this.canvas=i.element,this.$markerFront=new c(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new f(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.addEventListener("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new p(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$loop=new d(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),s.resetOptions(this),s._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,i.implement(this,g),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin()},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,i){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var r=this.container;i||(i=r.clientHeight||r.scrollHeight),n||(n=r.clientWidth||r.scrollWidth);var s=this.$updateCachedSize(e,t,n,i);if(!this.$size.scrollerHeight||!n&&!i)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(s|this.$changes,!0):this.$loop.schedule(s|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,i){i-=this.$extraHeight||0;var r=0,s=this.$size,o={width:s.width,height:s.height,scrollerHeight:s.scrollerHeight,scrollerWidth:s.scrollerWidth};return i&&(e||s.height!=i)&&(s.height=i,r|=this.CHANGE_SIZE,s.scrollerHeight=s.height,this.$horizScroll&&(s.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",r|=this.CHANGE_SCROLL),n&&(e||s.width!=n)&&(r|=this.CHANGE_SIZE,s.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,this.scrollBarH.element.style.left=this.scroller.style.left=t+"px",s.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(r|=this.CHANGE_FULL)),s.$dirty=!n||!i,r&&this._signal("resize",o),r},this.onGutterResize=function(){var e=this.$showGutter?this.$gutter.offsetWidth:0;e!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,e,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):(this.$computeLayerConfig(),this.$loop.schedule(this.CHANGE_MARKER))},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var e=this.$cursorLayer.$pixelPos,t=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var n=this.session.selection.getCursor();n.column=0,e=this.$cursorLayer.getPixelPosition(n,!0),t*=this.session.getRowLength(n.row)}this.$gutterLineHighlight.style.top=e.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=t+"px"},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=r.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=r.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=this.characterWidth*this.$printMarginColumn+this.$padding+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var e=this.layerConfig,t=this.$cursorLayer.$pixelPos.top,n=this.$cursorLayer.$pixelPos.left;t-=e.offset;var i=this.textarea.style,r=this.lineHeight;if(t<0||t>e.height-r)i.top=i.left="0";else{var s=this.characterWidth;if(this.$composition){var o=this.textarea.value.replace(/^\x01+/,"");s*=this.session.$getStringScreenWidth(o)[0]+2,r+=2}n-=this.scrollLeft,n>this.$size.scrollerWidth-s&&(n=this.$size.scrollerWidth-s),n+=this.gutterWidth,i.height=r+"px",i.width=s+"px",i.left=Math.min(n,this.$size.scrollerWidth-s)+"px",i.top=Math.min(t,this.$size.height-r)+"px"}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow,n=this.session.documentToScreenRow(t,0)*e.lineHeight;return n-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,i){var r=this.scrollMargin;r.top=0|e,r.bottom=0|t,r.right=0|i,r.left=0|n,r.v=r.top+r.bottom,r.h=r.left+r.right,r.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-r.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender"),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var i=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;i>0&&(this.scrollTop=i,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-n.offset+"px",this.content.style.marginTop=-n.offset+"px",this.content.style.width=n.width+2*this.$padding+"px",this.content.style.height=n.minHeight+"px"}if(e&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),void this._signal("afterRender");if(e&this.CHANGE_SCROLL)return e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor(),void this._signal("afterRender");e&this.CHANGE_TEXT?(this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):(e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender")}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var i=e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||i!=this.$vScroll){i!=this.$vScroll&&(this.$vScroll=i,this.scrollBarV.setVisible(i));var r=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,r,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,i=this.session.getScreenLength(),r=i*this.lineHeight,s=this.$getLongestLine(),o=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-s-2*this.$padding<0),a=this.$horizScroll!==o;a&&(this.$horizScroll=o,this.scrollBarH.setVisible(o));var c=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var l=this.scrollTop%this.lineHeight,u=t.scrollerHeight+this.lineHeight,h=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;r+=h;var f=this.scrollMargin;this.session.setScrollTop(Math.max(-f.top,Math.min(this.scrollTop,r-t.scrollerHeight+f.bottom))),this.session.setScrollLeft(Math.max(-f.left,Math.min(this.scrollLeft,s+2*this.$padding-t.scrollerWidth+f.right)));var d=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-r+h<0||this.scrollTop>f.top),p=c!==d;p&&(this.$vScroll=d,this.scrollBarV.setVisible(d));var g,m,v=Math.ceil(u/this.lineHeight)-1,b=Math.max(0,Math.round((this.scrollTop-l)/this.lineHeight)),w=b+v,y=this.lineHeight;b=e.screenToDocumentRow(b,0);var A=e.getFoldLine(b);A&&(b=A.start.row),g=e.documentToScreenRow(b,0),m=e.getRowLength(b)*y,w=Math.min(e.screenToDocumentRow(w,0),e.getLength()-1),u=t.scrollerHeight+e.getRowLength(w)*y+m,l=this.scrollTop-g*y;var E=0;return this.layerConfig.width!=s&&(E=this.CHANGE_H_SCROLL),(a||p)&&(E=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),p&&(s=this.$getLongestLine())),this.layerConfig={width:s,padding:this.$padding,firstRow:b,firstRowScreen:g,lastRow:w,lineHeight:y,characterWidth:this.characterWidth,minHeight:u,maxHeight:r,offset:l,gutterOffset:y?Math.max(0,Math.ceil((l+t.height-t.scrollerHeight)/y)):0,height:this.$size.scrollerHeight},E},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1)&&!(ts?(t&&c+o>s+this.lineHeight&&(s-=t*this.$size.scrollerHeight),0===s&&(s=-this.scrollMargin.top),this.session.setScrollTop(s)):c+this.$size.scrollerHeight-ar?(r=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=e+this.scrollLeft-n.left-this.$padding,r=i/this.characterWidth,s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),o=Math.round(r);return{row:s,column:o,side:r-o>0?1:-1,offsetX:i}},this.screenToTextCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=e+this.scrollLeft-n.left-this.$padding,r=Math.round(i/this.characterWidth),s=(t+this.scrollTop-n.top)/this.lineHeight;return this.session.screenToDocumentPosition(s,Math.max(r,0),i)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=this.session.documentToScreenPosition(e,t),r=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,e)?this.session.$bidiHandler.getPosLeft(i.column):Math.round(i.column*this.characterWidth)),s=i.row*this.lineHeight;return{pageX:n.left+r-this.scrollLeft,pageY:n.top+s-this.scrollTop}},this.visualizeFocus=function(){r.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){r.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,r.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(e){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(r.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(e,t){var n=this;if(this.$themeId=e,n._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e)o(e);else{var i=e||this.$options.theme.initialValue;s.loadModule(["theme",i],o)}function o(i){if(n.$themeId!=e)return t&&t();if(!i||!i.cssClass)throw new Error("couldn't load module "+e+" or it didn't call define");r.importCssString(i.cssText,i.cssClass,n.container.ownerDocument),n.theme&&r.removeCssClass(n.container,n.theme.cssClass);var s="padding"in i?i.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&s!=n.$padding&&n.setPadding(s),n.$theme=i.cssClass,n.theme=i,r.addCssClass(n.container,i.cssClass),r.setCssClass(n.container,"ace_dark",i.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:i}),t&&t()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){r.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){r.removeCssClass(this.container,e)},this.setCursorStyle=function(e){this.scroller.style.cursor!=e&&(this.scroller.style.cursor=e)},this.setMouseCursor=function(e){this.scroller.style.cursor=e},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(v.prototype),s.defineOptions(v.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){r.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e)},initialValue:!0},showLineNumbers:{set:function(e){this.$gutterLayer.setShowLineNumbers(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(e){if(!this.$gutterLineHighlight)return this.$gutterLineHighlight=r.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",void this.$gutter.appendChild(this.$gutterLineHighlight);this.$gutterLineHighlight.style.display=e?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),t.VirtualRenderer=v})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(e,t,n){"use strict";var i=e("../lib/oop"),r=e("../lib/net"),s=e("../lib/event_emitter").EventEmitter,o=e("../config");function a(e,t){var n=t.src;r.qualifyURL(e);try{return new Blob([n],{type:"application/javascript"})}catch(o){var i=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,s=new i;return s.append(n),s.getBlob("application/javascript")}}function c(e,t){var n=a(e,t),i=window.URL||window.webkitURL,r=i.createObjectURL(n);return new Worker(r)}var l=function(t,n,i,r,s){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),o.get("packaged")||!e.toUrl)r=r||o.moduleUrl(n.id,"worker");else{var a=this.$normalizePath;r=r||a(e.toUrl("ace/worker/worker.js",null,"_"));var l={};t.forEach((function(t){l[t]=a(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}this.$worker=c(r,n),s&&this.send("importScripts",s),this.$worker.postMessage({init:!0,tlns:l,module:n.id,classname:i}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){i.implement(this,s),this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data);break}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return r.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var i=this.callbackId++;this.callbacks[i]=n,t.push(i)}this.send(e,t)},this.emit=function(e,t){try{this.$worker.postMessage({event:e,data:{data:t.data}})}catch(n){console.error(n.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(l.prototype);var u=function(e,t,n){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var i=null,r=!1,a=Object.create(s),c=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(e){c.messageBuffer.push(e),i&&(r?setTimeout(l):l())},this.setEmitSync=function(e){r=e};var l=function(){var e=c.messageBuffer.shift();e.command?i[e.command].apply(i,e.args):e.event&&a._signal(e.event,e.data)};a.postMessage=function(e){c.onMessage({data:e})},a.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},a.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},o.loadModule(["worker",t],(function(e){i=new e[n](a);while(c.messageBuffer.length)l()}))};u.prototype=l.prototype,t.UIWorkerClient=u,t.WorkerClient=l,t.createWorker=c})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){"use strict";var i=e("./range").Range,r=e("./lib/event_emitter").EventEmitter,s=e("./lib/oop"),o=function(e,t,n,i,r,s){var o=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=r,this.othersClass=s,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=i,this.$onCursorChange=function(){setTimeout((function(){o.onCursorChange()}))},this.$pos=n;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){s.implement(this,r),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var r=this.pos;r.$insertRight=!0,r.detach(),r.markerId=n.addMarker(new i(r.row,r.column,r.row,r.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var i=t.createAnchor(n.row,n.column);i.$insertRight=!0,i.detach(),e.others.push(i)})),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new i(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e=this.pos.column&&t.start.column<=this.pos.column+this.length+1,s=t.start.column-this.pos.column;if(this.updateAnchors(e),r&&(this.length+=n),r&&!this.session.$fromUndo)if("insert"===e.action)for(var o=this.others.length-1;o>=0;o--){var a=this.others[o],c={row:a.row,column:a.column+s};this.doc.insertMergedLines(c,e.lines)}else if("remove"===e.action)for(o=this.others.length-1;o>=0;o--){a=this.others[o],c={row:a.row,column:a.column+s};this.doc.remove(new i(c.row,c.column,c.row,c.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,r){t.removeMarker(n.markerId),n.markerId=t.addMarker(new i(n.row,n.column,n.row,n.column+e.length),r,null,!1)};n(this.pos,this.mainClass);for(var r=this.others.length;r--;)n(this.others[r],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length?this.$onRemoveRange(e):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var i=this.ranges.indexOf(e[n]);this.ranges.splice(i,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),t=t||this.ranges[0],t&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new i,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=r.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{n=this.getRange();var i=this.isBackwards(),s=n.start.row,o=n.end.row;if(s==o){if(i)var a=n.end,c=n.start;else a=n.start,c=n.end;return this.addRange(r.fromPoints(c,c)),void this.addRange(r.fromPoints(a,a))}var l=[],u=this.getLineRange(s,!0);u.start.column=n.start.column,l.push(u);for(var h=s+1;h1){var e=this.rangeList.ranges,t=e[e.length-1],n=r.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var i=this.session.documentToScreenPosition(this.selectionLead),s=this.session.documentToScreenPosition(this.selectionAnchor),o=this.rectangularRangeBlock(i,s);o.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var i=[],s=e.column0)v--;if(v>0){var b=0;while(i[b].isEmpty())b++}for(var w=v;w>=b;w--)i[w].isEmpty()&&i.splice(w,1)}return i}}.call(s.prototype);var p=e("./editor").Editor;function g(e,t){return e.row==t.row&&e.column==t.column}function m(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",o),e.commands.addCommands(l.defaultCommands),v(e))}function v(e){var t=e.textInput.getElement(),n=!1;function i(t){n&&(e.renderer.setMouseCursor(""),n=!1)}a.addListener(t,"keydown",(function(t){var r=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&r?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&i()})),a.addListener(t,"keyup",i),a.addListener(t,"blur",i)}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var i=e[n];if(i.marker){this.session.removeMarker(i.marker);var r=t.indexOf(i);-1!=r&&t.splice(r,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?i=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?i=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),i=t.exec(n,e.args||{})):i=t.multiSelectAction(n,e.args||{});else{var i=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return i}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var i,r=n&&n.keepOrder,o=1==n||n&&n.$byLines,a=this.session,c=this.selection,l=c.rangeList,u=(r?c:l).ranges;if(!u.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var h=c._eventRegistry;c._eventRegistry={};var f=new s(a);this.inVirtualSelectionMode=!0;for(var d=u.length;d--;){if(o)while(d>0&&u[d].start.row==u[d-1].end.row)d--;f.fromOrientedRange(u[d]),f.index=d,this.selection=a.selection=f;var p=e.exec?e.exec(this,t||{}):e(this,t||{});i||void 0===p||(i=p),f.toOrientedRange(u[d])}f.detach(),this.selection=a.selection=c,this.inVirtualSelectionMode=!1,c._eventRegistry=h,c.mergeOverlappingRanges();var g=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),g&&g.from==g.to&&this.renderer.animateScrolling(g.from),i}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],i=0;io&&(o=n.column),ru?e.insert(i,c.stringRepeat(" ",s-u)):e.remove(new r(i.row,i.column,i.row,i.column-s+u)),t.start.column=t.end.column=o,t.start.row=t.end.row=i.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var u=this.selection.getRange(),h=u.start.row,f=u.end.row,d=h==f;if(d){var p,g=this.session.getLength();do{p=this.session.getLine(f)}while(/[=:]/.test(p)&&++f0);h<0&&(h=0),f>=g&&(f=g-1)}var m=this.session.removeFullLines(h,f);m=this.$reAlignText(m,d),this.session.insert({row:h,column:0},m.join("\n")+"\n"),d||(u.start.column=0,u.end.column=m[m.length-1].length),this.selection.setRange(u)}},this.$reAlignText=function(e,t){var n,i,r,s=!0,o=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,i=t[2].length,r=t[3].length,t):(n+i+r!=t[1].length+t[2].length+t[3].length&&(o=!1),n!=t[1].length&&(s=!1),n>t[1].length&&(n=t[1].length),it[3].length&&(r=t[3].length),t):[e]})).map(t?l:s?o?u:l:h);function a(e){return c.stringRepeat(" ",e)}function l(e){return e[2]?a(n)+e[2]+a(i-e[2].length+r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function u(e){return e[2]?a(n+i-e[2].length)+e[2]+a(r," ")+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function h(e){return e[2]?a(n)+e[2]+a(r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(p.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=m,e("./config").defineOptions(p.prototype,"editor",{enableMultiselect:{set:function(e){m(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",o)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",o))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../../range").Range,r=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return this.foldingStartMarker.test(i)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var r=/\S/,s=e.getLine(t),o=s.search(r);if(-1!=o){var a=n||s.length,c=e.getLength(),l=t,u=t;while(++tl){var f=e.getLine(u).length;return new i(l,a,u,f)}}},this.openingBracketBlock=function(e,t,n,r,s){var o={row:n,column:r+1},a=e.$findClosingBracket(t,o,s);if(a){var c=e.foldWidgets[a.row];return null==c&&(c=e.getFoldWidget(a.row)),"start"==c&&a.row>o.row&&(a.row--,a.column=e.getLine(a.row).length),i.fromPoints(o,a)}},this.closingBracketBlock=function(e,t,n,r,s){var o={row:n,column:r},a=e.$findOpeningBracket(t,o);if(a)return a.column++,o.column--,i.fromPoints(a,o)}}).call(r.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var i=e("../lib/dom");i.importCssString(t.cssText,t.cssClass)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";e("./lib/oop");var i=e("./lib/dom");e("./range").Range;function r(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var i=e.data,r=i.start.row,s=i.end.row,o="add"==e.action,a=r+1;a0&&!i[r])r--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var o=r;o<=s;o++){var a=i[o];if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+"px";else{a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var c=t.$cursorLayer.getPixelPosition({row:o,column:0},!0).top;a.coverLine||(c+=n.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=c-n.offset+"px";var l=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(l-=t.scrollLeft),a.el.style.left=l+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=n.width+2*n.padding+"px"),a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+"px":a.el.style.right=""}}}}}).call(r.prototype),t.LineWidgets=r})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";var i=e("../line_widgets").LineWidgets,r=e("../lib/dom"),s=e("../range").Range;function o(e,t,n){var i=0,r=e.length-1;while(i<=r){var s=i+r>>1,o=n(t,e[s]);if(o>0)i=s+1;else{if(!(o<0))return s;r=s-1}}return-(i+1)}function a(e,t,n){var i=e.getAnnotations().sort(s.comparePoints);if(i.length){var r=o(i,{row:t,column:-1},s.comparePoints);r<0&&(r=-r-1),r>=i.length?r=n>0?0:i.length-1:0===r&&n<0&&(r=i.length-1);var a=i[r];if(a&&n){if(a.row===t){do{a=i[r+=n]}while(a&&a.row===t);if(!a)return i.slice()}var c=[];t=a.row;do{c[n<0?"unshift":"push"](a),a=i[r+=n]}while(a&&a.row==t);return c.length&&c}}}t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new i(n),n.widgetManager.attach(e));var s=e.getCursorPosition(),o=s.row,c=n.widgetManager.getWidgetsAtRow(o).filter((function(e){return"errorMarker"==e.type}))[0];c?c.destroy():o-=t;var l,u=a(n,o,t);if(u){var h=u[0];s.column=(h.pos&&"number"!=typeof h.column?h.pos.sc:h.column)||0,s.row=h.row,l=e.renderer.$gutterLayer.$annotations[s.row]}else{if(c)return;l={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(s.row),e.selection.moveToPosition(s);var f={row:s.row,fixedWidth:!0,coverGutter:!0,el:r.createElement("div"),type:"errorMarker"},d=f.el.appendChild(r.createElement("div")),p=f.el.appendChild(r.createElement("div"));p.className="error_widget_arrow "+l.className;var g=e.renderer.$cursorLayer.getPixelPosition(s).left;p.style.left=g+e.renderer.gutterWidth-5+"px",f.el.className="error_widget_wrapper",d.className="error_widget "+l.className,d.innerHTML=l.text.join(" "),d.appendChild(r.createElement("div"));var m=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return f.destroy(),{command:"null"}};f.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(m),n.widgetManager.removeLineWidget(f),e.off("changeSelection",f.destroy),e.off("changeSession",f.destroy),e.off("mouseup",f.destroy),e.off("change",f.destroy))},e.keyBinding.addKeyboardHandler(m),e.on("changeSelection",f.destroy),e.on("changeSession",f.destroy),e.on("mouseup",f.destroy),e.on("change",f.destroy),e.session.widgetManager.addLineWidget(f),f.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:f.el.offsetHeight})},r.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(e,t,i){"use strict";e("./lib/fixoldbrowsers");var r=e("./lib/dom"),s=e("./lib/event"),o=e("./editor").Editor,a=e("./edit_session").EditSession,c=e("./undomanager").UndoManager,l=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.acequire=e,t.define=n("07d6"),t.edit=function(e){if("string"==typeof e){var n=e;if(e=document.getElementById(n),!e)throw new Error("ace.edit can't find div #"+n)}if(e&&e.env&&e.env.editor instanceof o)return e.env.editor;var i="";if(e&&/input|textarea/i.test(e.tagName)){var a=e;i=a.value,e=r.createElement("pre"),a.parentNode.replaceChild(e,a)}else e&&(i=r.getInnerText(e),e.innerHTML="");var c=t.createEditSession(i),u=new o(new l(e));u.setSession(c);var h={document:c,editor:u,onResize:u.resize.bind(u,null)};return a&&(h.textarea=a),s.addListener(window,"resize",h.onResize),u.on("destroy",(function(){s.removeListener(window,"resize",h.onResize),h.editor.container.env=null})),u.container.env=u.env=h,u},t.createEditSession=function(e,t){var n=new a(e,t);return n.setUndoManager(new c),n},t.EditSession=a,t.UndoManager=c,t.version="1.2.9"})),function(){ace.acequire(["ace/ace"],(function(e){for(var t in e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t])}))}(),e.exports=window.ace.acequire("ace/ace")},"0624":function(e,t,n){"use strict";const i=n("a262"),r=n("42a7"),s=n("1c6f"),o=n("35ea"),a=n("6027"),c=[["base1","1","","1"],["base2","0",r,"01"],["base8","7",r,"01234567"],["base10","9",r,"0123456789"],["base16","f",s,"0123456789abcdef"],["base32","b",o,"abcdefghijklmnopqrstuvwxyz234567"],["base32pad","c",o,"abcdefghijklmnopqrstuvwxyz234567="],["base32hex","v",o,"0123456789abcdefghijklmnopqrstuv"],["base32hexpad","t",o,"0123456789abcdefghijklmnopqrstuv="],["base32z","h",o,"ybndrfg8ejkmcpqxot1uwisza345h769"],["base58flickr","Z",r,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base58btc","z",r,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base64","m",a,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",a,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",a,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",a,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],l=c.reduce((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e),{}),u=c.reduce((e,t)=>(e[t[1]]=l[t[0]],e),{});e.exports={names:l,codes:u}},"06b1":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("2540"),s=n("9878"),o=n("15e4");e.exports=s(e=>async function*(t,n={}){const s=await e.post("files/read",{timeout:n.timeout,signal:n.signal,searchParams:o({arg:t,count:n.count||n.length,...n}),headers:n.headers});for await(const e of r(s.body))yield i.from(e)})},"06cf":function(e,t,n){var i=n("83ab"),r=n("d1e7"),s=n("5c6c"),o=n("fc6a"),a=n("c04e"),c=n("5135"),l=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(n){}if(c(e,t))return s(!r.f.call(e,t),e[t])}},"0701":function(e,t,n){"use strict";const i=n("9878"),r=n("15e4");e.exports=i(e=>async(t={})=>{const n=await e.post("bootstrap/list",{timeout:t.timeout,signal:t.signal,searchParams:r(t),headers:t.headers});return n.json()})},"0725":function(e,t,n){"use strict";const i=n("2054"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t={})=>{const n=await(await e.post("swarm/peers",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers})).json();return(n.Peers||[]).map(e=>{const t={};try{t.addr=i(e.Addr),t.peer=e.Peer}catch(n){t.error=n,t.rawPeerInfo=e}return e.Muxer&&(t.muxer=e.Muxer),e.Latency&&(t.latency=e.Latency),e.Streams&&(t.streams=e.Streams),null!=e.Direction&&(t.direction=e.Direction),t})})},"07d6":function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},"08df":function(e,t,n){var i=n("91f5"),r=n("0d0f");e.exports=i,e.exports.parse=i,e.exports.stringify=r},"0ab2":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=e=>{const t=new Array(4);for(let n=0;n<4;n++)t[n]=255&e,e>>=8;return i.from(t)};e.exports={fromNumberTo32BitBuf:r}},"0abd":function(e,t,n){"use strict";const i=n("2054"),r=n("ff0e"),{isBrowser:s,isWebWorker:o}=n("2984"),{URL:a}=n("16af"),c=n("3cb9").default,l=n("34eb")("ipfs-http-client:lib:error-handler"),u=n("670b"),h=n("4fcb"),f=e=>{try{return i(e),!0}catch(t){return!1}},d=(e={})=>{f(e)?e={url:r(e)}:"string"===typeof e&&(e={url:e});const t=new a(e.url);return e.apiPath?t.pathname=e.apiPath:"/"!==t.pathname&&void 0!==t.pathname||(t.pathname="api/v0"),e.url||(s||o?(t.protocol=e.protocol||location.protocol,t.hostname=e.host||location.hostname,t.port=e.port||location.port):(t.hostname=e.host||"localhost",t.port=e.port||"5001",t.protocol=e.protocol||"http")),e.url=t,e},p=async e=>{let t;try{if((e.headers.get("Content-Type")||"").startsWith("application/json")){const n=await e.json();l(n),t=n.Message||n.message}else t=await e.text()}catch(i){l("Failed to parse error response",i),t=i.message}let n=new u.HTTPError(e);throw t&&t.includes("context deadline exceeded")&&(n=new u.TimeoutError(e)),t&&(n.message=t),n},g=/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,m=e=>e.replace(g,(function(e){return"-"+e.toLowerCase()})),v=e=>"string"===typeof e?c(e):e;class b extends u{constructor(e={}){const t=d(e);super({timeout:v(t.timeout)||12e5,headers:t.headers,base:d(t.url).toString(),handleError:p,transformSearchParams:e=>{const t=new URLSearchParams;for(const[n,i]of e)"undefined"!==i&&"null"!==i&&"signal"!==n&&t.append(m(n),i),"timeout"!==n||isNaN(i)||t.append(m(n),i);return t}}),delete this.get,delete this.put,delete this.delete,delete this.options;const n=this.fetch;this.fetch=(e,t={})=>n.call(this,e,h(t,{method:"POST"}))}}b.errorHandler=p,e.exports=b},"0ae1":function(e,t,n){"use strict";const i=n("7766"),r=n("9878"),s=n("15e4");e.exports=r(e=>async function*(t={}){const n=await e.post("refs/local",{timeout:t.timeout,signal:t.signal,transform:i,searchParams:s(t),headers:t.headers});yield*n.ndjson()})},"0cfb":function(e,t,n){var i=n("83ab"),r=n("d039"),s=n("cc12");e.exports=!i&&!r((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},"0d0f":function(e,t){var n=function(e,t){var n=e.repeated?"repeated":e.required?"required":"optional";"map"===e.type&&(n="map<"+e.map.from+","+e.map.to+">"),e.oneof&&(n="");var i=Object.keys(e.options||{}).map((function(t){return t+" = "+e.options[t]})).join(",");return i&&(i=" ["+i+"]"),t.push((n?n+" ":"")+("map"===e.map?"":e.type+" ")+e.name+" = "+e.tag+i+";"),t},i=function(e,t){t.push("message "+e.name+" {"),e.options||(e.options={}),o(e.options,t),e.enums||(e.enums=[]),e.enums.forEach((function(e){t.push(r(e,[]))})),e.messages||(e.messages=[]),e.messages.forEach((function(e){t.push(i(e,[]))}));var s={};return e.fields||(e.fields=[]),e.fields.forEach((function(e){e.oneof?(s[e.oneof]||(s[e.oneof]=[]),s[e.oneof].push(n(e,[]))):t.push(n(e,[]))})),Object.keys(s).forEach((function(e){s[e].unshift("oneof "+e+" {"),s[e].push("}"),t.push(s[e])})),t.push("}",""),t},r=function(e,t){t.push("enum "+e.name+" {"),e.options||(e.options={});var n=o(e.options,[]);return n.length>1&&t.push(n.slice(0,-1)),Object.keys(e.values).map((function(n){var i=s(e.values[n]);t.push([n+" = "+i+";"])})),t.push("}",""),t},s=function(e,t){var n=Object.keys(e.options||{}).map((function(t){return t+" = "+e.options[t]})).join(",");n&&(n=" ["+n+"]");var i=e.value+n;return i},o=function(e,t){var n=Object.keys(e);return n.forEach((function(n){var i=e[n];~n.indexOf(".")&&(n="("+n+")");var r=typeof i;"object"===r?(i=a(i,[]),i.length&&t.push("option "+n+" = {",i,"};")):("string"===r&&"optimize_for"!==n&&(i='"'+i+'"'),t.push("option "+n+" = "+i+";"))})),n.length>0&&t.push(""),t},a=function(e,t){var n=Object.keys(e);return n.forEach((function(n){var i=e[n],r=typeof i;"object"===r?Array.isArray(i)?i.forEach((function(e){e=a(e,[]),e.length&&t.push(n+" {",e,"}")})):(i=a(i,[]),i.length&&t.push(n+" {",i,"}")):("string"===r&&(i='"'+i+'"'),t.push(n+": "+i))})),t},c=function(e,t){return t.push("service "+e.name+" {"),e.options||(e.options={}),o(e.options,t),e.methods||(e.methods=[]),e.methods.forEach((function(e){t.push(l(e,[]))})),t.push("}",""),t},l=function(e,t){var n="rpc "+e.name+"(";e.client_streaming&&(n+="stream "),n+=e.input_type+") returns (",e.server_streaming&&(n+="stream "),n+=e.output_type+")",e.options||(e.options={});var i=o(e.options,[]);return i.length>1?t.push(n+" {",i.slice(0,-1),"}"):t.push(n+";"),t},u=function(e){return function(t){return Array.isArray(t)?t.map(u(e+" ")).join("\n"):e+t}};e.exports=function(e){var t=[];return t.push('syntax = "proto'+e.syntax+'";',""),e.package&&t.push("package "+e.package+";",""),e.options||(e.options={}),o(e.options,t),e.enums||(e.enums=[]),e.enums.forEach((function(e){r(e,t)})),e.messages||(e.messages=[]),e.messages.forEach((function(e){i(e,t)})),e.services&&e.services.forEach((function(e){c(e,t)})),t.map(u("")).join("\n")}},"0db3":function(e,t,n){"use strict";const i=n("7766"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t,n={})=>{const r=await e.post("key/rm",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:t,...n}),headers:n.headers}),o=await r.json();return i(o.Keys[0])})},"0db8":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("c449"),s=n("9878"),o=n("15e4");e.exports=s(e=>async function(t,n={}){const s=await e.post("object/data",{timeout:n.timeout,signal:n.signal,searchParams:o({arg:""+(i.isBuffer(t)?new r(t):t),...n}),headers:n.headers}),a=await s.arrayBuffer();return i.from(a)})},"0de0":function(e,t,n){"use strict";e.exports=AbortController},"0e02":function(e,t,n){"use strict";const i=n("aef6"),r=n("c449"),{Buffer:s}=n("b639"),o=n("9878"),a=n("15e4");e.exports=o(e=>async(t,n={})=>{t=new r(t);const o=await e.post("block/get",{timeout:n.timeout,signal:n.signal,searchParams:a({arg:t.toString(),...n}),headers:n.headers});return new i(s.from(await o.arrayBuffer()),t)})},"0e68":function(e,t,n){"use strict";const i=n("c449"),r=n("2054"),s=n("9878"),o=n("15e4"),{Provider:a}=n("a36d");e.exports=s(e=>async function*(t,n={}){const s=await e.post("dht/findprovs",{timeout:n.timeout,signal:n.signal,searchParams:o({arg:""+new i(t),...n}),headers:n.headers});for await(const e of s.ndjson())if(e.Type===a&&e.Responses)for(const{ID:t,Addrs:n}of e.Responses)yield{id:t,addrs:(n||[]).map(e=>r(e))}})},"0e80":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("b6aa"),s=n("354e"),o=n("4064");async function a(e,t,n){const i=await a.digest(e,t,n);return s.encode(i,t,n)}a.Buffer=i,a.multihash=s,a.digest=async(e,t,n)=>{const i=a.createHash(t),r=await i(e);return n?r.slice(0,n):r},a.createHash=function(e){if(!e)throw r(new Error("hash algorithm must be specified"),"ERR_HASH_ALGORITHM_NOT_SPECIFIED");if(e=s.coerceCode(e),!a.functions[e])throw r(new Error(`multihash function '${e}' not yet supported`),"ERR_HASH_ALGORITHM_NOT_SUPPORTED");return a.functions[e]},a.functions={0:o.identity,17:o.sha1,18:o.sha2256,19:o.sha2512,20:o.sha3512,21:o.sha3384,22:o.sha3256,23:o.sha3224,24:o.shake128,25:o.shake256,26:o.keccak224,27:o.keccak256,28:o.keccak384,29:o.keccak512,34:o.murmur3128,35:o.murmur332,86:o.dblSha2256},o.addBlake(a.functions),a.validate=async(e,t)=>{const n=await a(e,s.decode(t).name);return 0===i.compare(t,n)},e.exports=a},"0eff":function(e,t,n){"use strict";const i=n("c449"),r=n("ec12"),{Buffer:s}=n("b639");class o{constructor(e,t,n){if(!n)throw new Error("A link requires a cid to point to");Object.defineProperties(this,{Name:{value:e||"",writable:!1,enumerable:!0},Tsize:{value:t,writable:!1,enumerable:!0},Hash:{value:new i(n),writable:!1,enumerable:!0},_nameBuf:{value:null,writable:!0,enumerable:!1}})}toString(){return`DAGLink <${this.Hash.toBaseEncodedString()} - name: "${this.Name}", size: ${this.Tsize}>`}toJSON(){return this._json||(this._json=Object.freeze({name:this.Name,size:this.Tsize,cid:this.Hash.toBaseEncodedString()})),Object.assign({},this._json)}get nameAsBuffer(){return null!==this._nameBuf||(this._nameBuf=s.from(this.Name)),this._nameBuf}}e.exports=r(o,{className:"DAGLink",symbolName:"@ipld/js-ipld-dag-pb/daglink"})},"0f5d":function(e,t,n){const{Buffer:i}=n("b639"),r=n("3301");var s="0".charCodeAt(0),o=i.from("ustar\0","binary"),a=i.from("ustar ","binary"),c=i.from(" \0","binary"),l=257,u=263,h=function(e,t,n){return"number"!==typeof e?n:(e=~~e,e>=t?t:e>=0?e:(e+=t,e>=0?e:0))},f=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null},d=function(e,t,n,i){for(;n0;r--){var s=e.get(r);t?i.push(s):n&&0===s?i.push(0):n?(n=!1,i.push(256-s)):i.push(255-s)}var o=0,a=i.length;for(r=0;r{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},"0fc0":function(e,t,n){"use strict";const i=n("ec12"),{Buffer:r}=n("b639"),s=n("23bc"),o=n("0eff"),{serializeDAGNode:a}=n("f140"),c=n("adf6"),l=n("4706"),u=n("3e7a");class h{constructor(e,t=[],n=null){if(e||(e=r.alloc(0)),"string"===typeof e&&(e=r.from(e)),!r.isBuffer(e))throw new Error("Passed 'data' is not a buffer or a string!");if(null!==n&&"number"!==typeof n)throw new Error("Passed 'serializedSize' must be a number!");t=t.map(e=>o.isDAGLink(e)?e:o.util.createDagLinkFromB58EncodedHash(e)),s(t),Object.defineProperties(this,{Data:{value:e,writable:!1,enumerable:!0},Links:{value:t,writable:!1,enumerable:!0},_serializedSize:{value:n,writable:!0,enumerable:!1},_size:{value:null,writable:!0,enumerable:!1}})}toJSON(){return this._json||(this._json=Object.freeze({data:this.Data,links:this.Links.map(e=>e.toJSON()),size:this.size})),Object.assign({},this._json)}toString(){return`DAGNode `}_invalidateCached(){this._serializedSize=null,this._size=null}addLink(e){return this._invalidateCached(),l(this,e)}rmLink(e){return this._invalidateCached(),u(this,e)}toDAGLink(e){return c(this,e)}serialize(){return a(this)}get size(){return null===this._size&&(null===this._serializedSize&&(this._serializedSize=this.serialize().length),this._size=this.Links.reduce((e,t)=>e+t.Tsize,this._serializedSize)),this._size}set size(e){throw new Error("Can't set property: 'size' is immutable")}}e.exports=i(h,{className:"DAGNode",symbolName:"@ipld/js-ipld-dag-pb/dagnode"})},"0fcf":function(e,t,n){"use strict";const i=n("b6aa"),{Blob:r}=n("4196"),s=n("a127"),o=n("6017"),{isBytes:a,isBlob:c}=n("abb1");async function l(e){if(a(e)||"string"===typeof e||e instanceof String)return new r([e]);if(c(e))return e;if("function"===typeof e.getReader&&(e=o(e)),e[Symbol.iterator]||e[Symbol.asyncIterator]){const t=s(e),{value:n,done:i}=await t.peek();if(i)return u(t);if(t.push(n),Number.isInteger(n))return u(t);if(a(n)||"string"===typeof n||n instanceof String)return u(t)}throw i(new Error("Unexpected input: "+e),"ERR_UNEXPECTED_INPUT")}async function u(e){const t=[];for await(const n of e)t.push(n);return new r(t)}e.exports=l},1175:function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("e03b"),s=r,o=r.v4,a=r.v6,c=function(e,t,n){var r;if(n=~~n,o(e))r=t||i.alloc(n+4),e.split(/\./g).map((function(e){r[n++]=255&parseInt(e,10)}));else if(a(e)){var s,l=e.split(":",8);for(s=0;s0;s--)f.push("0");l.splice.apply(l,f)}for(r=t||i.alloc(n+16),s=0;s>8&255,r[n++]=255&d}}if(!r)throw Error("Invalid ip address: "+e);return r},l=function(e,t,n){t=~~t,n=n||e.length-t;var i,r=[];if(4===n){for(let i=0;iasync(t,n,r,o={})=>{"string"!==typeof r&&(o=r||{},r=null);const a=await e.post("key/import",{timeout:o.timeout,signal:o.signal,searchParams:s({arg:t,pem:n,password:r,...o}),headers:o.headers}),c=await a.json();return i(c)})},"12a6":function(e,t,n){"use strict";const i=n("c449"),r=n("2054"),s=n("7766"),o=n("9878"),a=n("15e4");e.exports=o(e=>async function*(t,n={}){t=Array.isArray(t)?t:[t];const o=await e.post("dht/provide",{timeout:n.timeout,signal:n.signal,searchParams:a({arg:t.map(e=>new i(e).toString()),...n}),headers:n.headers});for await(let e of o.ndjson())e=s(e),e.id=new i(e.id),e.responses?e.responses=e.responses.map(({ID:e,Addrs:t})=>({id:e,addrs:(t||[]).map(e=>r(e))})):e.responses=[],yield e})},"13c8":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("c8f6"),s=45569,o=45633,a={init:r.blake2bInit,update:r.blake2bUpdate,digest:r.blake2bFinal},c={init:r.blake2sInit,update:r.blake2sUpdate,digest:r.blake2sFinal},l=(e,t)=>async n=>{const r=t.init(e,null);return t.update(r,n),i.from(t.digest(r))};e.exports=e=>{for(let t=0;t<64;t++)e[s+t]=l(t+1,a);for(let t=0;t<32;t++)e[o+t]=l(t+1,c)}},1468:function(e,t){var n=1e3,i=60*n,r=60*i,s=24*r,o=7*s,a=365.25*s;function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]),l=(t[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return c*a;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*i;case"seconds":case"second":case"secs":case"sec":case"s":return c*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=s?Math.round(e/s)+"d":t>=r?Math.round(e/r)+"h":t>=i?Math.round(e/i)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}function u(e){var t=Math.abs(e);return t>=s?h(e,t,s,"day"):t>=r?h(e,t,r,"hour"):t>=i?h(e,t,i,"minute"):t>=n?h(e,t,n,"second"):e+" ms"}function h(e,t,n,i){var r=t>=1.5*n;return Math.round(e/n)+" "+i+(r?"s":"")}e.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return c(e);if("number"===n&&isFinite(e))return t.long?u(e):l(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},"14c3":function(e,t,n){var i=n("c6b6"),r=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var s=n.call(e,t);if("object"!==typeof s)throw TypeError("RegExp exec method returned something other than an Object or null");return s}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},"14ec":function(e,t,n){var i=n("8327");function r(e,t,n){var i=e[t]+e[n],r=e[t+1]+e[n+1];i>=4294967296&&r++,e[t]=i,e[t+1]=r}function s(e,t,n,i){var r=e[t]+n;n<0&&(r+=4294967296);var s=e[t+1]+i;r>=4294967296&&s++,e[t]=r,e[t+1]=s}function o(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function a(e,t,n,i,o,a){var c=f[o],l=f[o+1],u=f[a],d=f[a+1];r(h,e,t),s(h,e,c,l);var p=h[i]^h[e],g=h[i+1]^h[e+1];h[i]=g,h[i+1]=p,r(h,n,i),p=h[t]^h[n],g=h[t+1]^h[n+1],h[t]=p>>>24^g<<8,h[t+1]=g>>>24^p<<8,r(h,e,t),s(h,e,u,d),p=h[i]^h[e],g=h[i+1]^h[e+1],h[i]=p>>>16^g<<16,h[i+1]=g>>>16^p<<16,r(h,n,i),p=h[t]^h[n],g=h[t+1]^h[n+1],h[t]=g>>>31^p<<1,h[t+1]=p>>>31^g<<1}var c=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],u=new Uint8Array(l.map((function(e){return 2*e}))),h=new Uint32Array(32),f=new Uint32Array(32);function d(e,t){var n=0;for(n=0;n<16;n++)h[n]=e.h[n],h[n+16]=c[n];for(h[24]=h[24]^e.t,h[25]=h[25]^e.t/4294967296,t&&(h[28]=~h[28],h[29]=~h[29]),n=0;n<32;n++)f[n]=o(e.b,4*n);for(n=0;n<12;n++)a(0,8,16,24,u[16*n+0],u[16*n+1]),a(2,10,18,26,u[16*n+2],u[16*n+3]),a(4,12,20,28,u[16*n+4],u[16*n+5]),a(6,14,22,30,u[16*n+6],u[16*n+7]),a(0,10,20,30,u[16*n+8],u[16*n+9]),a(2,12,22,24,u[16*n+10],u[16*n+11]),a(4,14,16,26,u[16*n+12],u[16*n+13]),a(6,8,18,28,u[16*n+14],u[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^h[n]^h[n+16]}function p(e,t){if(0===e||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");for(var n={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e},i=0;i<16;i++)n.h[i]=c[i];var r=t?t.length:0;return n.h[0]^=16842752^r<<8^e,t&&(g(n,t),n.c=128),n}function g(e,t){for(var n=0;n>2]>>8*(3&n);return t}function v(e,t,n){n=n||64,e=i.normalizeInput(e);var r=p(n,t);return g(r,e),m(r)}function b(e,t,n){var r=v(e,t,n);return i.toHex(r)}e.exports={blake2b:v,blake2bHex:b,blake2bInit:p,blake2bUpdate:g,blake2bFinal:m}},"15e4":function(e,t,n){"use strict";const i=n("257d"),r=n("82ad");e.exports=({arg:e,searchParams:t,hashAlg:n,mtime:s,mode:o,...a}={})=>{t&&(a={...a,...t}),n&&(a.hash=n),null!=s&&(s=r(s),a.mtime=s.secs,a.mtimeNsecs=s.nsecs),null!=o&&(a.mode=i(o)),a.timeout&&!isNaN(a.timeout)&&(a.timeout=a.timeout+"ms"),void 0===e||null===e?e=[]:Array.isArray(e)||(e=[e]);const c=new URLSearchParams(a);return e.forEach(e=>c.append("arg",e)),c}},"15f7":function(e,t,n){"use strict";const i=n("9878"),r=n("15e4");e.exports=i(e=>async(t,n={})=>{t=Array.isArray(t)?t:[t];const i=await e.post("swarm/disconnect",{timeout:n.timeout,signal:n.signal,searchParams:r({arg:t.map(e=>""+e),...n}),headers:n.headers}),{Strings:s}=await i.json();return s||[]})},"16af":function(e,t,n){"use strict";const{URLWithLegacySupport:i,format:r,URLSearchParams:s,defaultBase:o}=n("1f0b"),a=n("3d5e");e.exports={URL:i,URLSearchParams:s,format:r,relative:a,defaultBase:o}},"17b2":function(e,t,n){"use strict";const i=n("cfab"),r={};for(const[s,o]of Object.entries(i))void 0===r[o]&&(r[o]=s);e.exports=Object.freeze(r)},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"1bc1":function(e,t,n){"use strict";const i=(e,t,n)=>{const i={};for(let l=0;l=8&&(o-=8,s[c++]=255&a>>o)}if(o>=n||255&a<<8-o)throw new SyntaxError("Unexpected end of data");return s},r=(e,t,n)=>{const i="="===t[t.length-1],r=(1<n)o-=n,s+=t[r&a>>o]}if(o&&(s+=t[r&a<t=>({encode(n){return r(n,t,e)},decode(n){return i(n,t,e)}})},"1be4":function(e,t,n){var i=n("d066");e.exports=i("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c13":function(e,t,n){"use strict";const i=n("2612"),{Buffer:r}=n("b639");function s(e){return parseInt(e.toString("hex"),16)}function o(e){let t=e.toString(16);return t.length%2===1&&(t="0"+t),r.from(t,"hex")}function a(e){return r.from(i.encode(s(e)))}function c(e){return o(i.decode(e))}function l(e){return r.from(i.encode(e))}e.exports={numberToBuffer:o,bufferToNumber:s,varintBufferEncode:a,varintBufferDecode:c,varintEncode:l}},"1c55":function(e,t,n){(function(i,r){var s;
+/**
+ * [js-sha3]{@link https://github.com/emn178/js-sha3}
+ *
+ * @version 0.8.0
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
+ * @copyright Chen, Yi-Cyuan 2015-2018
+ * @license MIT
+ */(function(){"use strict";var o="input is invalid type",a="finalize already called",c="object"===typeof window,l=c?window:{};l.JS_SHA3_NO_WINDOW&&(c=!1);var u=!c&&"object"===typeof self,h=!l.JS_SHA3_NO_NODE_JS&&"object"===typeof i&&i.versions&&i.versions.node;h?l=r:u&&(l=self);var f=!l.JS_SHA3_NO_COMMON_JS&&"object"===typeof e&&e.exports,d=n("3c35"),p=!l.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,g="0123456789abcdef".split(""),m=[31,7936,2031616,520093696],v=[4,1024,262144,67108864],b=[1,256,65536,16777216],w=[6,1536,393216,100663296],y=[0,8,16,24],A=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],E=[224,256,384,512],C=[128,256],F=["hex","buffer","arrayBuffer","array","digest"],k={128:168,256:136};!l.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!p||!l.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var S=function(e,t,n){return function(i){return new W(e,t,e).update(i)[n]()}},x=function(e,t,n){return function(i,r){return new W(e,t,r).update(i)[n]()}},_=function(e,t,n){return function(t,i,r,s){return M["cshake"+e].update(t,i,r,s)[n]()}},B=function(e,t,n){return function(t,i,r,s){return M["kmac"+e].update(t,i,r,s)[n]()}},$=function(e,t,n,i){for(var r=0;r>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var i=0;i<50;++i)this.s[i]=0}function V(e,t,n){W.call(this,e,t,n)}W.prototype.update=function(e){if(this.finalized)throw new Error(a);var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(o);if(null===e)throw new Error(o);if(p&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!p||!ArrayBuffer.isView(e)))throw new Error(o);t=!0}var i,r,s=this.blocks,c=this.byteCount,l=e.length,u=this.blockCount,h=0,f=this.s;while(h>2]|=e[h]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<=c){for(this.start=i-c,this.block=s[u],i=0;i>=8,n=255&e;while(n>0)r.unshift(n),e>>=8,n=255&e,++i;return t?r.push(i):r.unshift(i),this.update(r),r.length},W.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(o);if(null===e)throw new Error(o);if(p&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!p||!ArrayBuffer.isView(e)))throw new Error(o);t=!0}var i=0,r=e.length;if(t)i=r;else for(var s=0;s=57344?i+=3:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++s)),i+=4)}return i+=this.encode(8*i),this.update(e),i},W.prototype.bytepad=function(e,t){for(var n=this.encode(t),i=0;i>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t>4&15]+g[15&e]+g[e>>12&15]+g[e>>8&15]+g[e>>20&15]+g[e>>16&15]+g[e>>28&15]+g[e>>24&15];o%t===0&&(G(n),s=0)}return r&&(e=n[s],a+=g[e>>4&15]+g[15&e],r>1&&(a+=g[e>>12&15]+g[e>>8&15]),r>2&&(a+=g[e>>20&15]+g[e>>16&15])),a},W.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,i=this.outputBlocks,r=this.extraBytes,s=0,o=0,a=this.outputBits>>3;e=r?new ArrayBuffer(i+1<<2):new ArrayBuffer(a);var c=new Uint32Array(e);while(o>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;a%n===0&&G(i)}return s&&(e=a<<2,t=i[o],c[e]=255&t,s>1&&(c[e+1]=t>>8&255),s>2&&(c[e+2]=t>>16&255)),c},V.prototype=new W,V.prototype.finalize=function(){return this.encode(this.outputBits,!0),W.prototype.finalize.call(this)};var G=function(e){var t,n,i,r,s,o,a,c,l,u,h,f,d,p,g,m,v,b,w,y,E,C,F,k,S,x,_,B,$,D,L,T,R,O,M,I,P,N,j,U,H,z,W,V,G,K,Y,q,X,Q,J,Z,ee,te,ne,ie,re,se,oe,ae,ce,le,ue;for(i=0;i<48;i+=2)r=e[0]^e[10]^e[20]^e[30]^e[40],s=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],h=e[7]^e[17]^e[27]^e[37]^e[47],f=e[8]^e[18]^e[28]^e[38]^e[48],d=e[9]^e[19]^e[29]^e[39]^e[49],t=f^(o<<1|a>>>31),n=d^(a<<1|o>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=r^(c<<1|l>>>31),n=s^(l<<1|c>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=o^(u<<1|h>>>31),n=a^(h<<1|u>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=c^(f<<1|d>>>31),n=l^(d<<1|f>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=u^(r<<1|s>>>31),n=h^(s<<1|r>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,p=e[0],g=e[1],K=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,B=e[20]<<3|e[21]>>>29,$=e[21]<<3|e[20]>>>29,ae=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,W=e[41]<<18|e[40]>>>14,O=e[2]<<1|e[3]>>>31,M=e[3]<<1|e[2]>>>31,m=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,q=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,D=e[33]<<13|e[32]>>>19,L=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,I=e[14]<<6|e[15]>>>26,P=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Q=e[34]<<15|e[35]>>>17,J=e[35]<<15|e[34]>>>17,T=e[45]<<29|e[44]>>>3,R=e[44]<<29|e[45]>>>3,k=e[6]<<28|e[7]>>>4,S=e[7]<<28|e[6]>>>4,ie=e[17]<<23|e[16]>>>9,re=e[16]<<23|e[17]>>>9,N=e[26]<<25|e[27]>>>7,j=e[27]<<25|e[26]>>>7,y=e[36]<<21|e[37]>>>11,E=e[37]<<21|e[36]>>>11,Z=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,G=e[9]<<27|e[8]>>>5,x=e[18]<<20|e[19]>>>12,_=e[19]<<20|e[18]>>>12,se=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,U=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,C=e[48]<<14|e[49]>>>18,F=e[49]<<14|e[48]>>>18,e[0]=p^~m&b,e[1]=g^~v&w,e[10]=k^~x&B,e[11]=S^~_&$,e[20]=O^~I&N,e[21]=M^~P&j,e[30]=V^~K&q,e[31]=G^~Y&X,e[40]=te^~ie&se,e[41]=ne^~re&oe,e[2]=m^~b&y,e[3]=v^~w&E,e[12]=x^~B&D,e[13]=_^~$&L,e[22]=I^~N&U,e[23]=P^~j&H,e[32]=K^~q&Q,e[33]=Y^~X&J,e[42]=ie^~se&ae,e[43]=re^~oe&ce,e[4]=b^~y&C,e[5]=w^~E&F,e[14]=B^~D&T,e[15]=$^~L&R,e[24]=N^~U&z,e[25]=j^~H&W,e[34]=q^~Q&Z,e[35]=X^~J&ee,e[44]=se^~ae&le,e[45]=oe^~ce&ue,e[6]=y^~C&p,e[7]=E^~F&g,e[16]=D^~T&k,e[17]=L^~R&S,e[26]=U^~z&O,e[27]=H^~W&M,e[36]=Q^~Z&V,e[37]=J^~ee&G,e[46]=ae^~le&te,e[47]=ce^~ue&ne,e[8]=C^~p&m,e[9]=F^~g&v,e[18]=T^~k&x,e[19]=R^~S&_,e[28]=z^~O&I,e[29]=W^~M&P,e[38]=Z^~V&K,e[39]=ee^~G&Y,e[48]=le^~te&ie,e[49]=ue^~ne&re,e[0]^=A[i],e[1]^=A[i+1]};if(f)e.exports=M;else{for(P=0;Pasync function(t,n={}){const o=await e.post("dht/findpeer",{timeout:n.timeout,signal:n.signal,searchParams:a({arg:""+(i.isBuffer(t)?new r(t):t),...n}),headers:n.headers});for await(const e of o.ndjson())if(e.Type===c&&e.Responses){const{ID:t,Addrs:n}=e.Responses[0];return{id:t,addrs:(n||[]).map(e=>s(e))}}throw new Error("not found")})},"1c6f":function(e,t,n){"use strict";const{Buffer:i}=n("b639");e.exports=function(e){return{encode(e){return"string"===typeof e?i.from(e).toString("hex"):e.toString("hex")},decode(t){for(const n of t)if(e.indexOf(n)<0)throw new Error("invalid base16 character");return i.from(t,"hex")}}}},"1c7e":function(e,t,n){var i=n("b622"),r=i("iterator"),s=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){s=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!s)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(c){}return n}},"1cba":function(e,t,n){"use strict";const i=n("c449"),{DAGNode:r}=n("8141"),{Buffer:s}=n("b639"),o=n("542b"),a=n("9878"),c=n("15e4"),l=n("74fd"),u=n("91d3");e.exports=a(e=>async(t,n={})=>{let a,h={Data:null,Links:[]};if(s.isBuffer(t))n.enc||(h={Data:t.toString(),Links:[]});else if(r.isDAGNode(t))h={Data:t.Data.toString(),Links:t.Links.map(e=>({Name:e.Name,Hash:e.Hash.toString(),Size:e.Tsize}))};else{if("object"!==typeof t)throw new Error("obj not recognized");h.Data=t.Data.toString(),h.Links=t.Links}s.isBuffer(t)&&n.enc?a=t:(n.enc="json",a=s.from(JSON.stringify(h)));const f=new u,d=l([f.signal,n.signal]),p=await e.post("object/put",{timeout:n.timeout,signal:d,searchParams:c(n),...await o(a,f,n.headers)}),{Hash:g}=await p.json();return new i(g)})},"1cdc":function(e,t,n){var i=n("342f");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(i)},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1da1":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("d3b7");function i(e,t,n,i,r,s,o){try{var a=e[s](o),c=a.value}catch(l){return void n(l)}a.done?t(c):Promise.resolve(c).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,s){var o=e.apply(t,n);function a(e){i(o,r,s,a,c,"next",e)}function c(e){i(o,r,s,a,c,"throw",e)}a(void 0)}))}}},"1f0b":function(e,t,n){"use strict";const i=self.location?self.location.protocol+"//"+self.location.host:"",r=self.URL;class s{constructor(e="",t=i){this.super=new r(e,t),this.path=this.pathname+this.search,this.auth=this.username&&this.password?this.username+":"+this.password:null,this.query=this.search&&this.search.startsWith("?")?this.search.slice(1):null}get hash(){return this.super.hash}get host(){return this.super.host}get hostname(){return this.super.hostname}get href(){return this.super.href}get origin(){return this.super.origin}get password(){return this.super.password}get pathname(){return this.super.pathname}get port(){return this.super.port}get protocol(){return this.super.protocol}get search(){return this.super.search}get searchParams(){return this.super.searchParams}get username(){return this.super.username}set hash(e){this.super.hash=e}set host(e){this.super.host=e}set hostname(e){this.super.hostname=e}set href(e){this.super.href=e}set origin(e){this.super.origin=e}set password(e){this.super.password=e}set pathname(e){this.super.pathname=e}set port(e){this.super.port=e}set protocol(e){this.super.protocol=e}set search(e){this.super.search=e}set searchParams(e){this.super.searchParams=e}set username(e){this.super.username=e}createObjectURL(e){return this.super.createObjectURL(e)}revokeObjectURL(e){this.super.revokeObjectURL(e)}toJSON(){return this.super.toJSON()}toString(){return this.super.toString()}format(){return this.toString()}}function o(e){if("string"===typeof e){const t=new r(e);return t.toString()}if(!(e instanceof r)){const t=e.username&&e.password?`${e.username}:${e.password}@`:"",n=e.auth?e.auth+"@":"",i=e.port?":"+e.port:"",r=e.protocol?e.protocol+"//":"",s=e.host||"",o=e.hostname||"",a=e.search||(e.query?"?"+e.query:""),c=e.hash||"",l=e.pathname||"",u=e.path||l+a;return`${r}${t||n}${s||o+i}${u}${c}`}}e.exports={URLWithLegacySupport:s,URLSearchParams:self.URLSearchParams,defaultBase:i,format:o}},"1f2a":function(e,t,n){"use strict";const i=n("c449"),r=n("2054"),s=n("7766"),o=n("9878"),a=n("15e4"),c=n("542b");e.exports=o(e=>async function*(t,n,o={}){const l=await e.post("dht/put",{timeout:o.timeout,signal:o.signal,searchParams:a({arg:t,...o}),...await c(n,o.headers)});for await(let e of l.ndjson())e=s(e),e.id=new i(e.id),e.responses&&(e.responses=e.responses.map(({ID:e,Addrs:t})=>({id:e,addrs:(t||[]).map(e=>r(e))}))),yield e})},"1fb5":function(e,t,n){"use strict";t.byteLength=u,t.toByteArray=f,t.fromByteArray=g;for(var i=[],r=[],s="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function u(e){var t=l(e),n=t[0],i=t[1];return 3*(n+i)/4-i}function h(e,t,n){return 3*(t+n)/4-n}function f(e){var t,n,i=l(e),o=i[0],a=i[1],c=new s(h(e,o,a)),u=0,f=a>0?o-4:o;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c}function d(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}function p(e,t,n){for(var i,r=[],s=t;sc?c:a+o));return 1===r?(t=e[n-1],s.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],s.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},2054:function(e,t,n){"use strict";const i=n("ba1f"),{Buffer:r}=n("b639"),s=n("956c"),o=n("2612"),a=n("40ff"),c=n("c449"),l=n("ec12"),u=Symbol.for("nodejs.util.inspect.custom"),h=l.proto((function(e){if(!(this instanceof h))return new h(e);if(null==e&&(e=""),e instanceof r)this.buffer=i.fromBuffer(e);else if("string"===typeof e||e instanceof String){if(e.length>0&&"/"!==e.charAt(0))throw new Error(`multiaddr "${e}" must start with a "/"`);this.buffer=i.fromString(e)}else{if(!(e.buffer&&e.protos&&e.protoCodes))throw new Error("addr must be a string, Buffer, or another Multiaddr");this.buffer=i.fromBuffer(e.buffer)}}),{className:"Multiaddr",symbolName:"@multiformats/js-multiaddr/multiaddr"});h.prototype.toString=function(){return i.bufferToString(this.buffer)},h.prototype.toJSON=h.prototype.toString,h.prototype.toOptions=function(){const e={},t=this.toString().split("/");return e.family="ip4"===t[1]?"ipv4":"ipv6",e.host=t[2],e.transport=t[3],e.port=parseInt(t[4]),e},h.prototype[u]=function(){return""},h.prototype.inspect=function(){return""},h.prototype.protos=function(){return this.protoCodes().map(e=>Object.assign({},s(e)))},h.prototype.protoCodes=function(){const e=[],t=this.buffer;let n=0;while(ne.name)},h.prototype.tuples=function(){return i.bufferToTuples(this.buffer)},h.prototype.stringTuples=function(){const e=i.bufferToTuples(this.buffer);return i.tuplesToStringTuples(e)},h.prototype.encapsulate=function(e){return e=h(e),h(this.toString()+e.toString())},h.prototype.decapsulate=function(e){e=e.toString();const t=this.toString(),n=t.lastIndexOf(e);if(n<0)throw new Error("Address "+this+" does not contain subaddress: "+e);return h(t.slice(0,n))},h.prototype.decapsulateCode=function(e){const t=this.tuples();for(let n=t.length-1;n>=0;n--)if(t[n][0]===e)return h(i.tuplesToBuffer(t.slice(0,n)));return this},h.prototype.getPeerId=function(){let e=null;try{const t=this.stringTuples().filter(e=>{if(e[0]===s.names.ipfs.code)return!0});e=t.pop()[1],e=a.encode("base58btc",new c(e).multihash).toString().slice(1)}catch(t){e=null}return e},h.prototype.getPath=function(){let e=null;try{e=this.stringTuples().filter(e=>{const t=s(e[0]);if(t.path)return!0})[0][1]}catch(t){e=null}return e},h.prototype.equals=function(e){return this.buffer.equals(e.buffer)},h.prototype.nodeAddress=function(){const e=this.protoCodes(),t=this.protoNames(),n=this.toString().split("/").slice(1);if(n.length<4)throw new Error('multiaddr must have a valid format: "/{ip4, ip6, dns4, dns6}/{address}/{tcp, udp}/{port}".');if(4!==e[0]&&41!==e[0]&&54!==e[0]&&55!==e[0])throw new Error(`no protocol with name: "'${t[0]}'". Must have a valid family name: "{ip4, ip6, dns4, dns6}".`);if("tcp"!==n[2]&&"udp"!==n[2])throw new Error(`no protocol with name: "'${t[1]}'". Must have a valid transport protocol: "{tcp, udp}".`);return{family:41===e[0]||55===e[0]?6:4,address:n[1],port:parseInt(n[3])}},h.fromNodeAddress=function(e,t){if(!e)throw new Error("requires node address object");if(!t)throw new Error("requires transport protocol");let n;switch(e.family){case"IPv4":n="ip4";break;case"IPv6":n="ip6";break;default:throw Error(`Invalid addr family. Got '${e.family}' instead of 'IPv4' or 'IPv6'`)}return h("/"+[n,e.address,t,e.port].join("/"))},h.prototype.isThinWaistAddress=function(e){const t=(e||this).protos();return 2===t.length&&((4===t[0].code||41===t[0].code)&&(6===t[1].code||273===t[1].code))},h.protocols=s,h.isName=function(e){return!!h.isMultiaddr(e)&&e.protos().some(e=>e.resolvable)},h.resolve=function(e){return h.isMultiaddr(e)&&h.isName(e)?Promise.reject(new Error("not implemented yet")):Promise.reject(Error("not a valid name"))},e.exports=h},2266:function(e,t,n){var i=n("825a"),r=n("e95a"),s=n("50c4"),o=n("0366"),a=n("35a1"),c=n("9bdd"),l=function(e,t){this.stopped=e,this.result=t},u=e.exports=function(e,t,n,u,h){var f,d,p,g,m,v,b,w=o(t,n,u?2:1);if(h)f=e;else{if(d=a(e),"function"!=typeof d)throw TypeError("Target is not iterable");if(r(d)){for(p=0,g=s(e.length);g>p;p++)if(m=u?w(i(b=e[p])[0],b[1]):w(e[p]),m&&m instanceof l)return m;return new l(!1)}f=d.call(e)}v=f.next;while(!(b=v.call(f)).done)if(m=c(f,w,b.value,u),"object"==typeof m&&m&&m instanceof l)return m;return new l(!1)};u.stop=function(e){return new l(!0,e)}},"22b4":function(e,t,n){"use strict";class i{constructor(e,t,n){if(this.tag=e,this.value=t,this.err=n,"number"!==typeof this.tag)throw new Error("Invalid tag type ("+typeof this.tag+")");if(this.tag<0||(0|this.tag)!==this.tag)throw new Error("Tag must be a positive integer: "+this.tag)}toString(){return`${this.tag}(${JSON.stringify(this.value)})`}encodeCBOR(e){return e._pushTag(this.tag),e.pushAny(this.value)}convert(e){var t,n;if(n=null!=e?e[this.tag]:void 0,"function"!==typeof n&&(n=i["_tag"+this.tag],"function"!==typeof n))return this;try{return n.call(i,this.value)}catch(r){return t=r,this.err=t,this}}}e.exports=i},"22bb":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("354e"),s=self.crypto||self.msCrypto,o=async(e,t)=>{if("undefined"===typeof self||!self.crypto&&!self.msCrypto)throw new Error("Please use a browser with webcrypto support and ensure the code has been delivered securely via HTTPS/TLS and run within a Secure Context");switch(t){case"sha1":return i.from(await s.subtle.digest({name:"SHA-1"},e));case"sha2-256":return i.from(await s.subtle.digest({name:"SHA-256"},e));case"sha2-512":return i.from(await s.subtle.digest({name:"SHA-512"},e));case"dbl-sha2-256":{const t=await s.subtle.digest({name:"SHA-256"},e);return i.from(await s.subtle.digest({name:"SHA-256"},t))}default:throw new Error(t+" is not a supported algorithm")}};e.exports={factory:e=>async t=>o(t,e),digest:o,multihashing:async(e,t,n)=>{const i=await o(e,t,n);return r.encode(i,t,n)}}},"23bc":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("7e03"),s=(e,t)=>i.compare(e.nameAsBuffer,t.nameAsBuffer),o=e=>{r.inplace(e,s)};e.exports=o},"23cb":function(e,t,n){var i=n("a691"),r=Math.max,s=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):s(n,t)}},"23e7":function(e,t,n){var i=n("da84"),r=n("06cf").f,s=n("9112"),o=n("6eeb"),a=n("ce4e"),c=n("e893"),l=n("94ca");e.exports=function(e,t){var n,u,h,f,d,p,g=e.target,m=e.global,v=e.stat;if(u=m?i:v?i[g]||a(g,{}):(i[g]||{}).prototype,u)for(h in t){if(d=t[h],e.noTargetGet?(p=r(u,h),f=p&&p.value):f=u[h],n=l(m?h:g+(v?".":"#")+h,e.forced),!n&&void 0!==f){if(typeof d===typeof f)continue;c(d,f)}(e.sham||f&&f.sham)&&s(d,"sham",!0),o(u,h,d,e)}}},"241c":function(e,t,n){var i=n("ca84"),r=n("7839"),s=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,s)}},"24d2":function(e,t,n){(function(n,i){"use strict";var r={version:"3.0.0",x86:{},x64:{},inputValidation:!0};function s(e){if(!Array.isArray(e)&&!ArrayBuffer.isView(e))return!1;for(var t=0;t255)return!1;return!0}function o(e,t){return(65535&e)*t+(((e>>>16)*t&65535)<<16)}function a(e,t){return e<>>32-t}function c(e){return e^=e>>>16,e=o(e,2246822507),e^=e>>>13,e=o(e,3266489909),e^=e>>>16,e}function l(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function u(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function h(e,t){return t%=64,32===t?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}function f(e,t){return t%=64,0===t?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=u(e,[4283543511,3981806797]),e=d(e,[0,e[0]>>>1]),e=u(e,[3301882366,444984403]),e=d(e,[0,e[0]>>>1]),e}r.x86.hash32=function(e,t){if(r.inputValidation&&!s(e))return i;t=t||0;for(var n=e.length%4,l=e.length-n,u=t,h=0,f=3432918353,d=461845907,p=0;p>>0},r.x86.hash128=function(e,t){if(r.inputValidation&&!s(e))return i;t=t||0;for(var n=e.length%16,l=e.length-n,u=t,h=t,f=t,d=t,p=0,g=0,m=0,v=0,b=597399067,w=2869860233,y=951274213,A=2716044179,E=0;E>>0).toString(16)).slice(-8)+("00000000"+(h>>>0).toString(16)).slice(-8)+("00000000"+(f>>>0).toString(16)).slice(-8)+("00000000"+(d>>>0).toString(16)).slice(-8)},r.x64.hash128=function(e,t){if(r.inputValidation&&!s(e))return i;t=t||0;for(var n=e.length%16,o=e.length-n,a=[0,t],c=[0,t],g=[0,0],m=[0,0],v=[2277735313,289559509],b=[1291169091,658871167],w=0;w>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)},e.exports&&(t=e.exports=r),t.murmurHash3=r})()},2540:function(e,t){e.exports=e=>{if(e[Symbol.asyncIterator])return e;if(e.getReader)return async function*(){const t=e.getReader();try{while(1){const{done:e,value:n}=await t.read();if(e)return;yield n}}finally{t.releaseLock()}}();throw new Error("unknown stream")}},"257d":function(e,t,n){"use strict";e.exports=e=>{if(void 0!==e&&null!==e)return"string"===typeof e||e instanceof String?e:e.toString(8).padStart(4,"0")}},2612:function(e,t,n){e.exports={encode:n("af3a"),decode:n("fa45"),encodingLength:n("61f1")}},2626:function(e,t,n){"use strict";var i=n("d066"),r=n("9bf2"),s=n("b622"),o=n("83ab"),a=s("species");e.exports=function(e){var t=i(e),n=r.f;o&&t&&!t[a]&&n(t,a,{configurable:!0,get:function(){return this}})}},"26d5":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("354e"),s=self.crypto||self.msCrypto,o=async(e,t)=>{if("undefined"===typeof self||!self.crypto&&!self.msCrypto)throw new Error("Please use a browser with webcrypto support and ensure the code has been delivered securely via HTTPS/TLS and run within a Secure Context");switch(t){case"sha1":return i.from(await s.subtle.digest({name:"SHA-1"},e));case"sha2-256":return i.from(await s.subtle.digest({name:"SHA-256"},e));case"sha2-512":return i.from(await s.subtle.digest({name:"SHA-512"},e));case"dbl-sha2-256":{const t=await s.subtle.digest({name:"SHA-256"},e);return i.from(await s.subtle.digest({name:"SHA-256"},t))}default:throw new Error(t+" is not a supported algorithm")}};e.exports={factory:e=>async t=>o(t,e),digest:o,multihashing:async(e,t,n)=>{const i=await o(e,t,n);return r.encode(i,t,n)}}},"271f":function(e,t,n){"use strict";const i=n("9878"),r=n("15e4");e.exports=i(e=>async(t={})=>{const n=await e.post("name/pubsub/subs",{timeout:t.timeout,signal:t.signal,searchParams:r(t),headers:t.headers}),i=await n.json();return i.Strings||[]})},"273a":function(e,t,n){"use strict";const{TimeoutError:i,AbortError:r}=n("d2aa"),s=(e,t={})=>{const n=new XMLHttpRequest;n.open(t.method||"GET",e.toString(),!0);const{timeout:s}=t;if(s>0&&s<1/0&&(n.timeout=t.timeout),null!=t.overrideMimeType&&n.overrideMimeType(t.overrideMimeType),t.headers)for(const[i,r]of t.headers.entries())n.setRequestHeader(i,r);return t.signal&&(t.signal.onabort=()=>n.abort()),t.onDownloadProgress&&(n.onprogress=t.onDownloadProgress),t.onUploadProgress&&(n.upload.onprogress=t.onUploadProgress),new Promise((e,s)=>{const c=t=>{switch(t.type){case"error":e(Response.error());break;case"load":e(new a(n.responseURL,n.response,{status:n.status,statusText:n.statusText,headers:o(n.getAllResponseHeaders())}));break;case"timeout":s(new i);break;case"abort":s(new r);break;default:break}};n.onerror=c,n.onload=c,n.ontimeout=c,n.onabort=c,n.send(t.body)})};t.fetch=s,t.Request=Request,t.Headers=Headers;const o=e=>{const t=new Headers;for(const n of e.trim().split(/[\r\n]+/)){const e=n.indexOf(": ");e>0&&t.set(n.slice(0,e),n.slice(e+1))}return t};class a extends Response{constructor(e,t,n){super(t,n),Object.defineProperty(this,"url",{value:e})}}},2877:function(e,t,n){"use strict";function i(e,t,n,i,r,s,o,a){var c,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),s&&(l._scopeId="data-v-"+s),o?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=c):r&&(c=a?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:l}}n.d(t,"a",(function(){return i}))},2984:function(e,t,n){"use strict";(function(t){const i=n("63a6"),r="object"===typeof window&&"object"===typeof document&&9===document.nodeType,s=i(),o=r&&!s,a=s&&!r,c=s&&r,l="undefined"!==typeof t&&"undefined"!==typeof t.release&&"node"===t.release.name&&!s,u="function"===typeof importScripts&&"undefined"!==typeof self&&"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,h="undefined"!==typeof t&&!1;e.exports={isTest:h,isElectron:s,isElectronMain:a,isElectronRenderer:c,isNode:l,isBrowser:o,isWebWorker:u,isEnvWithDom:r}}).call(this,n("4362"))},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){
+/*!
+ * Vue.js v2.6.12
+ * (c) 2014-2020 Evan You
+ * Released under the MIT License.
+ */
+var n=Object.freeze({});function i(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function s(e){return!0===e}function o(e){return!1===e}function a(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function c(e){return null!==e&&"object"===typeof e}var l=Object.prototype.toString;function u(e){return"[object Object]"===l.call(e)}function h(e){return"[object RegExp]"===l.call(e)}function f(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return r(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function g(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r-1)return e.splice(n,1)}}var w=Object.prototype.hasOwnProperty;function y(e,t){return w.call(e,t)}function A(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var E=/-(\w)/g,C=A((function(e){return e.replace(E,(function(e,t){return t?t.toUpperCase():""}))})),F=A((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),k=/\B([A-Z])/g,S=A((function(e){return e.replace(k,"-$1").toLowerCase()}));function x(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function _(e,t){return e.bind(t)}var B=Function.prototype.bind?_:x;function $(e,t){t=t||0;var n=e.length-t,i=new Array(n);while(n--)i[n]=e[n+t];return i}function D(e,t){for(var n in t)e[n]=t[n];return e}function L(e){for(var t={},n=0;n0,ne=Z&&Z.indexOf("edge/")>0,ie=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===J),re=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),se={}.watch,oe=!1;if(X)try{var ae={};Object.defineProperty(ae,"passive",{get:function(){oe=!0}}),window.addEventListener("test-passive",null,ae)}catch(Co){}var ce=function(){return void 0===Y&&(Y=!X&&!Q&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),Y},le=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ue(e){return"function"===typeof e&&/native code/.test(e.toString())}var he,fe="undefined"!==typeof Symbol&&ue(Symbol)&&"undefined"!==typeof Reflect&&ue(Reflect.ownKeys);he="undefined"!==typeof Set&&ue(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var de=T,pe=0,ge=function(){this.id=pe++,this.subs=[]};ge.prototype.addSub=function(e){this.subs.push(e)},ge.prototype.removeSub=function(e){b(this.subs,e)},ge.prototype.depend=function(){ge.target&&ge.target.addDep(this)},ge.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(s&&!y(r,"default"))o=!1;else if(""===o||o===S(e)){var c=et(String,r.type);(c<0||a0&&(o=xt(o,(t||"")+"_"+n),St(o[0])&&St(l)&&(u[c]=Ee(l.text+o[0].text),o.shift()),u.push.apply(u,o)):a(o)?St(l)?u[c]=Ee(l.text+o):""!==o&&u.push(Ee(o)):St(o)&&St(l)?u[c]=Ee(l.text+o.text):(s(e._isVList)&&r(o.tag)&&i(o.key)&&r(t)&&(o.key="__vlist"+t+"_"+n+"__"),u.push(o)));return u}function _t(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Bt(e){var t=$t(e.$options.inject,e);t&&(Be(!1),Object.keys(t).forEach((function(n){Re(e,n,t[n])})),Be(!0))}function $t(e,t){if(e){for(var n=Object.create(null),i=fe?Reflect.ownKeys(e):Object.keys(e),r=0;r0,o=e?!!e.$stable:!s,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&i&&i!==n&&a===i.$key&&!s&&!i.$hasNormal)return i;for(var c in r={},e)e[c]&&"$"!==c[0]&&(r[c]=Rt(t,c,e[c]))}else r={};for(var l in t)l in r||(r[l]=Ot(t,l));return e&&Object.isExtensible(e)&&(e._normalized=r),V(r,"$stable",o),V(r,"$key",a),V(r,"$hasNormal",s),r}function Rt(e,t,n){var i=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:kt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:i,enumerable:!0,configurable:!0}),i}function Ot(e,t){return function(){return e[t]}}function Mt(e,t){var n,i,s,o,a;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),i=0,s=e.length;i1?$(n):n;for(var i=$(arguments,1),r='event handler for "'+e+'"',s=0,o=n.length;sdocument.createEvent("Event").timeStamp&&(Yn=function(){return qn.now()})}function Xn(){var e,t;for(Kn=Yn(),Wn=!0,jn.sort((function(e,t){return e.id-t.id})),Vn=0;VnVn&&jn[n].id>e.id)n--;jn.splice(n+1,0,e)}else jn.push(e);zn||(zn=!0,pt(Xn))}}var ti=0,ni=function(e,t,n,i,r){this.vm=e,r&&(e._watcher=this),e._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ti,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new he,this.newDepIds=new he,this.expression="","function"===typeof t?this.getter=t:(this.getter=K(t),this.getter||(this.getter=T)),this.value=this.lazy?void 0:this.get()};ni.prototype.get=function(){var e;ve(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Co){if(!this.user)throw Co;tt(Co,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&mt(e),be(),this.cleanupDeps()}return e},ni.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},ni.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ni.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ei(this)},ni.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Co){tt(Co,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},ni.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ni.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},ni.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var ii={enumerable:!0,configurable:!0,get:T,set:T};function ri(e,t,n){ii.get=function(){return this[t][n]},ii.set=function(e){this[t][n]=e},Object.defineProperty(e,n,ii)}function si(e){e._watchers=[];var t=e.$options;t.props&&oi(e,t.props),t.methods&&pi(e,t.methods),t.data?ai(e):Te(e._data={},!0),t.computed&&ui(e,t.computed),t.watch&&t.watch!==se&&gi(e,t.watch)}function oi(e,t){var n=e.$options.propsData||{},i=e._props={},r=e.$options._propKeys=[],s=!e.$parent;s||Be(!1);var o=function(s){r.push(s);var o=Xe(s,t,n,e);Re(i,s,o),s in e||ri(e,"_props",s)};for(var a in t)o(a);Be(!0)}function ai(e){var t=e.$options.data;t=e._data="function"===typeof t?ci(t,e):t||{},u(t)||(t={});var n=Object.keys(t),i=e.$options.props,r=(e.$options.methods,n.length);while(r--){var s=n[r];0,i&&y(i,s)||W(s)||ri(e,"_data",s)}Te(t,!0)}function ci(e,t){ve();try{return e.call(t,t)}catch(Co){return tt(Co,t,"data()"),{}}finally{be()}}var li={lazy:!0};function ui(e,t){var n=e._computedWatchers=Object.create(null),i=ce();for(var r in t){var s=t[r],o="function"===typeof s?s:s.get;0,i||(n[r]=new ni(e,o||T,T,li)),r in e||hi(e,r,s)}}function hi(e,t,n){var i=!ce();"function"===typeof n?(ii.get=i?fi(t):di(n),ii.set=T):(ii.get=n.get?i&&!1!==n.cache?fi(t):di(n.get):T,ii.set=n.set||T),Object.defineProperty(e,t,ii)}function fi(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ge.target&&t.depend(),t.value}}function di(e){return function(){return e.call(this,this)}}function pi(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?T:B(t[n],e)}function gi(e,t){for(var n in t){var i=t[n];if(Array.isArray(i))for(var r=0;r-1)return this;var n=$(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function ki(e){e.mixin=function(e){return this.options=Ye(this.options,e),this}}function Si(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,i=n.cid,r=e._Ctor||(e._Ctor={});if(r[i])return r[i];var s=e.name||n.options.name;var o=function(e){this._init(e)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=t++,o.options=Ye(n.options,e),o["super"]=n,o.options.props&&xi(o),o.options.computed&&_i(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,j.forEach((function(e){o[e]=n[e]})),s&&(o.options.components[s]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=D({},o.options),r[i]=o,o}}function xi(e){var t=e.options.props;for(var n in t)ri(e.prototype,"_props",n)}function _i(e){var t=e.options.computed;for(var n in t)hi(e.prototype,n,t[n])}function Bi(e){j.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function $i(e){return e&&(e.Ctor.options.name||e.tag)}function Di(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!h(e)&&e.test(t)}function Li(e,t){var n=e.cache,i=e.keys,r=e._vnode;for(var s in n){var o=n[s];if(o){var a=$i(o.componentOptions);a&&!t(a)&&Ti(n,s,i,r)}}}function Ti(e,t,n,i){var r=e[t];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),e[t]=null,b(n,t)}wi(Ci),vi(Ci),Bn(Ci),Tn(Ci),bn(Ci);var Ri=[String,RegExp,Array],Oi={name:"keep-alive",abstract:!0,props:{include:Ri,exclude:Ri,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Ti(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Li(e,(function(e){return Di(t,e)}))})),this.$watch("exclude",(function(t){Li(e,(function(e){return!Di(t,e)}))}))},render:function(){var e=this.$slots.default,t=Cn(e),n=t&&t.componentOptions;if(n){var i=$i(n),r=this,s=r.include,o=r.exclude;if(s&&(!i||!Di(s,i))||o&&i&&Di(o,i))return t;var a=this,c=a.cache,l=a.keys,u=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;c[u]?(t.componentInstance=c[u].componentInstance,b(l,u),l.push(u)):(c[u]=t,l.push(u),this.max&&l.length>parseInt(this.max)&&Ti(c,l[0],l,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Mi={KeepAlive:Oi};function Ii(e){var t={get:function(){return H}};Object.defineProperty(e,"config",t),e.util={warn:de,extend:D,mergeOptions:Ye,defineReactive:Re},e.set=Oe,e.delete=Me,e.nextTick=pt,e.observable=function(e){return Te(e),e},e.options=Object.create(null),j.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,D(e.options.components,Mi),Fi(e),ki(e),Si(e),Bi(e)}Ii(Ci),Object.defineProperty(Ci.prototype,"$isServer",{get:ce}),Object.defineProperty(Ci.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ci,"FunctionalRenderContext",{value:Qt}),Ci.version="2.6.12";var Pi=m("style,class"),Ni=m("input,textarea,option,select,progress"),ji=function(e,t,n){return"value"===n&&Ni(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Ui=m("contenteditable,draggable,spellcheck"),Hi=m("events,caret,typing,plaintext-only"),zi=function(e,t){return Yi(t)||"false"===t?"false":"contenteditable"===e&&Hi(t)?t:"true"},Wi=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Vi="http://www.w3.org/1999/xlink",Gi=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ki=function(e){return Gi(e)?e.slice(6,e.length):""},Yi=function(e){return null==e||!1===e};function qi(e){var t=e.data,n=e,i=e;while(r(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(t=Xi(i.data,t));while(r(n=n.parent))n&&n.data&&(t=Xi(t,n.data));return Qi(t.staticClass,t.class)}function Xi(e,t){return{staticClass:Ji(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Qi(e,t){return r(e)||r(t)?Ji(e,Zi(t)):""}function Ji(e,t){return e?t?e+" "+t:e:t||""}function Zi(e){return Array.isArray(e)?er(e):c(e)?tr(e):"string"===typeof e?e:""}function er(e){for(var t,n="",i=0,s=e.length;i-1?ar[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ar[e]=/HTMLUnknownElement/.test(t.toString())}var lr=m("text,number,password,search,email,tel,url");function ur(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function hr(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function fr(e,t){return document.createElementNS(nr[e],t)}function dr(e){return document.createTextNode(e)}function pr(e){return document.createComment(e)}function gr(e,t,n){e.insertBefore(t,n)}function mr(e,t){e.removeChild(t)}function vr(e,t){e.appendChild(t)}function br(e){return e.parentNode}function wr(e){return e.nextSibling}function yr(e){return e.tagName}function Ar(e,t){e.textContent=t}function Er(e,t){e.setAttribute(t,"")}var Cr=Object.freeze({createElement:hr,createElementNS:fr,createTextNode:dr,createComment:pr,insertBefore:gr,removeChild:mr,appendChild:vr,parentNode:br,nextSibling:wr,tagName:yr,setTextContent:Ar,setStyleScope:Er}),Fr={create:function(e,t){kr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(kr(e,!0),kr(t))},destroy:function(e){kr(e,!0)}};function kr(e,t){var n=e.data.ref;if(r(n)){var i=e.context,s=e.componentInstance||e.elm,o=i.$refs;t?Array.isArray(o[n])?b(o[n],s):o[n]===s&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])?o[n].indexOf(s)<0&&o[n].push(s):o[n]=[s]:o[n]=s}}var Sr=new we("",{},[]),xr=["create","activate","update","remove","destroy"];function _r(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&Br(e,t)||s(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&i(t.asyncFactory.error))}function Br(e,t){if("input"!==e.tag)return!0;var n,i=r(n=e.data)&&r(n=n.attrs)&&n.type,s=r(n=t.data)&&r(n=n.attrs)&&n.type;return i===s||lr(i)&&lr(s)}function $r(e,t,n){var i,s,o={};for(i=t;i<=n;++i)s=e[i].key,r(s)&&(o[s]=i);return o}function Dr(e){var t,n,o={},c=e.modules,l=e.nodeOps;for(t=0;tg?(h=i(n[b+1])?null:n[b+1].elm,C(e,h,n,p,b,s)):p>b&&k(t,f,g)}function _(e,t,n,i){for(var s=n;s-1?Hr(e,t,n):Wi(t)?Yi(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Ui(t)?e.setAttribute(t,zi(t,n)):Gi(t)?Yi(n)?e.removeAttributeNS(Vi,Ki(t)):e.setAttributeNS(Vi,t,n):Hr(e,t,n)}function Hr(e,t,n){if(Yi(n))e.removeAttribute(t);else{if(ee&&!te&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var i=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",i)};e.addEventListener("input",i),e.__ieph=!0}e.setAttribute(t,n)}}var zr={create:jr,update:jr};function Wr(e,t){var n=t.elm,s=t.data,o=e.data;if(!(i(s.staticClass)&&i(s.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var a=qi(t),c=n._transitionClasses;r(c)&&(a=Ji(a,Zi(c))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var Vr,Gr={create:Wr,update:Wr},Kr="__r",Yr="__c";function qr(e){if(r(e[Kr])){var t=ee?"change":"input";e[t]=[].concat(e[Kr],e[t]||[]),delete e[Kr]}r(e[Yr])&&(e.change=[].concat(e[Yr],e.change||[]),delete e[Yr])}function Xr(e,t,n){var i=Vr;return function r(){var s=t.apply(null,arguments);null!==s&&Zr(e,r,n,i)}}var Qr=ot&&!(re&&Number(re[1])<=53);function Jr(e,t,n,i){if(Qr){var r=Kn,s=t;t=s._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return s.apply(this,arguments)}}Vr.addEventListener(e,t,oe?{capture:n,passive:i}:n)}function Zr(e,t,n,i){(i||Vr).removeEventListener(e,t._wrapper||t,n)}function es(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Vr=t.elm,qr(n),yt(n,r,Jr,Zr,Xr,t.context),Vr=void 0}}var ts,ns={create:es,update:es};function is(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,s,o=t.elm,a=e.data.domProps||{},c=t.data.domProps||{};for(n in r(c.__ob__)&&(c=t.data.domProps=D({},c)),a)n in c||(o[n]="");for(n in c){if(s=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),s===a[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=s;var l=i(s)?"":String(s);rs(o,l)&&(o.value=l)}else if("innerHTML"===n&&rr(o.tagName)&&i(o.innerHTML)){ts=ts||document.createElement("div"),ts.innerHTML=""+s+" ";var u=ts.firstChild;while(o.firstChild)o.removeChild(o.firstChild);while(u.firstChild)o.appendChild(u.firstChild)}else if(s!==a[n])try{o[n]=s}catch(Co){}}}}function rs(e,t){return!e.composing&&("OPTION"===e.tagName||ss(e,t)||os(e,t))}function ss(e,t){var n=!0;try{n=document.activeElement!==e}catch(Co){}return n&&e.value!==t}function os(e,t){var n=e.value,i=e._vModifiers;if(r(i)){if(i.number)return g(n)!==g(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}var as={create:is,update:is},cs=A((function(e){var t={},n=/;(?![^(]*\))/g,i=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function ls(e){var t=us(e.style);return e.staticStyle?D(e.staticStyle,t):t}function us(e){return Array.isArray(e)?L(e):"string"===typeof e?cs(e):e}function hs(e,t){var n,i={};if(t){var r=e;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=ls(r.data))&&D(i,n)}(n=ls(e.data))&&D(i,n);var s=e;while(s=s.parent)s.data&&(n=ls(s.data))&&D(i,n);return i}var fs,ds=/^--/,ps=/\s*!important$/,gs=function(e,t,n){if(ds.test(t))e.style.setProperty(t,n);else if(ps.test(n))e.style.setProperty(S(t),n.replace(ps,""),"important");else{var i=vs(t);if(Array.isArray(n))for(var r=0,s=n.length;r-1?t.split(ys).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Es(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(ys).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",i=" "+t+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Cs(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&D(t,Fs(e.name||"v")),D(t,e),t}return"string"===typeof e?Fs(e):void 0}}var Fs=A((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),ks=X&&!te,Ss="transition",xs="animation",_s="transition",Bs="transitionend",$s="animation",Ds="animationend";ks&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(_s="WebkitTransition",Bs="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&($s="WebkitAnimation",Ds="webkitAnimationEnd"));var Ls=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ts(e){Ls((function(){Ls(e)}))}function Rs(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),As(e,t))}function Os(e,t){e._transitionClasses&&b(e._transitionClasses,t),Es(e,t)}function Ms(e,t,n){var i=Ps(e,t),r=i.type,s=i.timeout,o=i.propCount;if(!r)return n();var a=r===Ss?Bs:Ds,c=0,l=function(){e.removeEventListener(a,u),n()},u=function(t){t.target===e&&++c>=o&&l()};setTimeout((function(){c0&&(n=Ss,u=o,h=s.length):t===xs?l>0&&(n=xs,u=l,h=c.length):(u=Math.max(o,l),n=u>0?o>l?Ss:xs:null,h=n?n===Ss?s.length:c.length:0);var f=n===Ss&&Is.test(i[_s+"Property"]);return{type:n,timeout:u,propCount:h,hasTransform:f}}function Ns(e,t){while(e.length1}function Vs(e,t){!0!==t.data.show&&Us(t)}var Gs=X?{create:Vs,activate:Vs,remove:function(e,t){!0!==e.data.show?Hs(e,t):t()}}:{},Ks=[zr,Gr,ns,as,ws,Gs],Ys=Ks.concat(Nr),qs=Dr({nodeOps:Cr,modules:Ys});te&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&io(e,"input")}));var Xs={inserted:function(e,t,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?At(n,"postpatch",(function(){Xs.componentUpdated(e,t,n)})):Qs(e,t,n.context),e._vOptions=[].map.call(e.options,eo)):("textarea"===n.tag||lr(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",to),e.addEventListener("compositionend",no),e.addEventListener("change",no),te&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Qs(e,t,n.context);var i=e._vOptions,r=e._vOptions=[].map.call(e.options,eo);if(r.some((function(e,t){return!M(e,i[t])}))){var s=e.multiple?t.value.some((function(e){return Zs(e,r)})):t.value!==t.oldValue&&Zs(t.value,r);s&&io(e,"change")}}}};function Qs(e,t,n){Js(e,t,n),(ee||ne)&&setTimeout((function(){Js(e,t,n)}),0)}function Js(e,t,n){var i=t.value,r=e.multiple;if(!r||Array.isArray(i)){for(var s,o,a=0,c=e.options.length;a-1,o.selected!==s&&(o.selected=s);else if(M(eo(o),i))return void(e.selectedIndex!==a&&(e.selectedIndex=a));r||(e.selectedIndex=-1)}}function Zs(e,t){return t.every((function(t){return!M(t,e)}))}function eo(e){return"_value"in e?e._value:e.value}function to(e){e.target.composing=!0}function no(e){e.target.composing&&(e.target.composing=!1,io(e.target,"input"))}function io(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ro(e){return!e.componentInstance||e.data&&e.data.transition?e:ro(e.componentInstance._vnode)}var so={bind:function(e,t,n){var i=t.value;n=ro(n);var r=n.data&&n.data.transition,s=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;i&&r?(n.data.show=!0,Us(n,(function(){e.style.display=s}))):e.style.display=i?s:"none"},update:function(e,t,n){var i=t.value,r=t.oldValue;if(!i!==!r){n=ro(n);var s=n.data&&n.data.transition;s?(n.data.show=!0,i?Us(n,(function(){e.style.display=e.__vOriginalDisplay})):Hs(n,(function(){e.style.display="none"}))):e.style.display=i?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,i,r){r||(e.style.display=e.__vOriginalDisplay)}},oo={model:Xs,show:so},ao={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function co(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?co(Cn(t.children)):e}function lo(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var r=n._parentListeners;for(var s in r)t[C(s)]=r[s];return t}function uo(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function ho(e){while(e=e.parent)if(e.data.transition)return!0}function fo(e,t){return t.key===e.key&&t.tag===e.tag}var po=function(e){return e.tag||En(e)},go=function(e){return"show"===e.name},mo={name:"transition",props:ao,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(po),n.length)){0;var i=this.mode;0;var r=n[0];if(ho(this.$vnode))return r;var s=co(r);if(!s)return r;if(this._leaving)return uo(e,r);var o="__transition-"+this._uid+"-";s.key=null==s.key?s.isComment?o+"comment":o+s.tag:a(s.key)?0===String(s.key).indexOf(o)?s.key:o+s.key:s.key;var c=(s.data||(s.data={})).transition=lo(this),l=this._vnode,u=co(l);if(s.data.directives&&s.data.directives.some(go)&&(s.data.show=!0),u&&u.data&&!fo(s,u)&&!En(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=D({},c);if("out-in"===i)return this._leaving=!0,At(h,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),uo(e,r);if("in-out"===i){if(En(s))return l;var f,d=function(){f()};At(c,"afterEnter",d),At(c,"enterCancelled",d),At(h,"delayLeave",(function(e){f=e}))}}return r}}},vo=D({tag:String,moveClass:String},ao);delete vo.mode;var bo={props:vo,beforeMount:function(){var e=this,t=this._update;this._update=function(n,i){var r=Dn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,r(),t.call(e,n,i)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],s=this.children=[],o=lo(this),a=0;aasync(t,n={})=>{const s=new c,l=a([s.signal,n.signal]),u=await e.post("config/replace",{timeout:n.timeout,signal:l,searchParams:o(n),...await r(i.from(JSON.stringify(t)),s,n.headers)});return u.text()})},"2bb8":function(e,t,n){"use strict";const{BigNumber:i}=n("901e"),r=n("9878"),s=n("15e4");e.exports=r(e=>async function*(t={}){const n=await e.post("stats/bw",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers,transform:e=>({totalIn:new i(e.TotalIn),totalOut:new i(e.TotalOut),rateIn:new i(e.RateIn),rateOut:new i(e.RateOut)})});yield*n.ndjson()})},"2bbf":function(e,t,n){"use strict";const i="[a-fA-F\\d:]",r=e=>e&&e.includeBoundaries?`(?:(?<=\\s|^)(?=${i})|(?<=${i})(?=\\s|$))`:"",s="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",a=`\n(\n(?:${o}:){7}(?:${o}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${o}:){6}(?:${s}|:${o}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${o}:){5}(?::${s}|(:${o}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${o}:){4}(?:(:${o}){0,1}:${s}|(:${o}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${o}:){3}(?:(:${o}){0,2}:${s}|(:${o}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${o}:){2}(?:(:${o}){0,3}:${s}|(:${o}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${o}:){1}(?:(:${o}){0,4}:${s}|(:${o}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::((?::${o}){0,5}:${s}|(?::${o}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),c=e=>e&&e.exact?new RegExp(`(?:^${s}$)|(?:^${a}$)`):new RegExp(`(?:${r(e)}${s}${r(e)})|(?:${r(e)}${a}${r(e)})`,"g");c.v4=e=>e&&e.exact?new RegExp(`^${s}$`):new RegExp(`${r(e)}${s}${r(e)}`,"g"),c.v6=e=>e&&e.exact?new RegExp(`^${a}$`):new RegExp(`${r(e)}${a}${r(e)}`,"g"),e.exports=c},"2c76":function(e,t,n){"use strict";const i=n("9878"),r=n("15e4");e.exports=i(e=>async(t={})=>{const n=await e.post("config/show",{timeout:t.timeout,signal:t.signal,searchParams:r({...t}),headers:t.headers}),i=await n.json();return i})},"2cdb":function(e,t,n){"use strict";const i=n("c449"),r=n("85b8");t.resolve=(e,t)=>{let n=r.deserialize(e);const s=t.split("/").filter(Boolean);while(s.length){const e=s.shift();if(void 0===n[e]){for(const t of n.Links)if(t.Name===e)return{value:t.Hash,remainderPath:s.join("/")};throw new Error(`Object has no property '${e}'`)}if(n=n[e],i.isCID(n))return{value:n,remainderPath:s.join("/")}}return{value:n,remainderPath:""}},t.tree=function*(e){const t=r.deserialize(e);yield"Data",yield"Links";for(let n=0;nn)t.push(arguments[n++]);return y[++w]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(w),w},g=function(e){delete y[e]},"process"==c(m)?i=function(e){m.nextTick(C(e))}:b&&b.now?i=function(e){b.now(C(e))}:v&&!f?(r=new v,s=r.port2,r.port1.onmessage=F,i=l(s.postMessage,s,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||a(k)||"file:"===d.protocol?i=A in h("script")?function(e){u.appendChild(h("script"))[A]=function(){u.removeChild(this),E(e)}}:function(e){setTimeout(C(e),0)}:(i=k,o.addEventListener("message",F,!1))),e.exports={set:p,clear:g}},"2d00":function(e,t,n){var i,r,s=n("da84"),o=n("342f"),a=s.process,c=a&&a.versions,l=c&&c.v8;l?(i=l.split("."),r=i[0]+i[1]):o&&(i=o.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/),i&&(r=i[1]))),e.exports=r&&+r},"2dc7":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),{URL:r}=n("16af"),s=n("901e").BigNumber,o=n("5ee5"),a=n("85be"),c=a.MT,l=a.NUMBYTES,u=a.SHIFT32,h=a.SYMS,f=a.TAG,d=a.MT.SIMPLE_FLOAT<<5|a.NUMBYTES.TWO,p=a.MT.SIMPLE_FLOAT<<5|a.NUMBYTES.FOUR,g=a.MT.SIMPLE_FLOAT<<5|a.NUMBYTES.EIGHT,m=a.MT.SIMPLE_FLOAT<<5|a.SIMPLE.TRUE,v=a.MT.SIMPLE_FLOAT<<5|a.SIMPLE.FALSE,b=a.MT.SIMPLE_FLOAT<<5|a.SIMPLE.UNDEFINED,w=a.MT.SIMPLE_FLOAT<<5|a.SIMPLE.NULL,y=new s("0x20000000000000"),A=i.from("f97e00","hex"),E=i.from("f9fc00","hex"),C=i.from("f97c00","hex");function F(e){return{}.toString.call(e).slice(8,-1)}class k{constructor(e){e=e||{},this.streaming="function"===typeof e.stream,this.onData=e.stream,this.semanticTypes=[[r,this._pushUrl],[s,this._pushBigNumber]];const t=e.genTypes||[],n=t.length;for(let i=0;i[t,e[t]]))}_pushRawMap(e,t){t=t.map((function(e){return e[0]=k.encode(e[0]),e})).sort(o.keySorter);for(var n=0;n({data:n("0db8")(e),get:n("c0dd")(e),links:n("4eff")(e),new:n("cc31")(e),patch:n("c8c2")(e),put:n("1cba")(e),stat:n("34ca")(e)})},3124:function(e,t,n){"use strict";const i=n("4ce8"),{Buffer:r}=n("b639"),s=n("c449"),o=n("9878"),a=n("15e4");e.exports=o(e=>async function*(t,n={}){const o=await e.post("get",{timeout:n.timeout,signal:n.signal,searchParams:a({arg:""+(r.isBuffer(t)?new s(t):t),...n}),headers:n.headers}),c=i.extract();for await(const{header:e,body:i}of c(o.iterator()))"directory"===e.type?yield{path:e.name}:yield{path:e.name,content:i}})},3156:function(e,t,n){"use strict";const i=n("c449"),r=n("9878"),s=n("15e4");function o(e){const t={cid:new i(e.Hash)};return e.Error&&(t.error=new Error(e.Error)),t}e.exports=r(e=>async function*(t,n={}){Array.isArray(t)||(t=[t]);const r=await e.post("block/rm",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:t.map(e=>new i(e).toString()),"stream-channels":!0,...n}),headers:n.headers});for await(const e of r.ndjson())yield o(e)})},3193:function(e,t,n){var i=n("8327");function r(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,i,r,s){l[e]=l[e]+l[t]+r,l[i]=o(l[i]^l[e],16),l[n]=l[n]+l[i],l[t]=o(l[t]^l[n],12),l[e]=l[e]+l[t]+s,l[i]=o(l[i]^l[e],8),l[n]=l[n]+l[i],l[t]=o(l[t]^l[n],7)}function o(e,t){return e>>>t^e<<32-t}var a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function h(e,t){var n=0;for(n=0;n<8;n++)l[n]=e.h[n],l[n+8]=a[n];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),n=0;n<16;n++)u[n]=r(e.b,4*n);for(n=0;n<10;n++)s(0,4,8,12,u[c[16*n+0]],u[c[16*n+1]]),s(1,5,9,13,u[c[16*n+2]],u[c[16*n+3]]),s(2,6,10,14,u[c[16*n+4]],u[c[16*n+5]]),s(3,7,11,15,u[c[16*n+6]],u[c[16*n+7]]),s(0,5,10,15,u[c[16*n+8]],u[c[16*n+9]]),s(1,6,11,12,u[c[16*n+10]],u[c[16*n+11]]),s(2,7,8,13,u[c[16*n+12]],u[c[16*n+13]]),s(3,4,9,14,u[c[16*n+14]],u[c[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=l[n]^l[n+8]}function f(e,t){if(!(e>0&&e<=32))throw new Error("Incorrect output length, should be in [1, 32]");var n=t?t.length:0;if(t&&!(n>0&&n<=32))throw new Error("Incorrect key length, should be in [1, 32]");var i={h:new Uint32Array(a),b:new Uint32Array(64),c:0,t:0,outlen:e};return i.h[0]^=16842752^n<<8^e,n>0&&(d(i,t),i.c=64),i}function d(e,t){for(var n=0;n>2]>>8*(3&n)&255;return t}function g(e,t,n){n=n||32,e=i.normalizeInput(e);var r=f(n,t);return d(r,e),p(r)}function m(e,t,n){var r=g(e,t,n);return i.toHex(r)}e.exports={blake2s:g,blake2sHex:m,blake2sInit:f,blake2sUpdate:d,blake2sFinal:p}},3301:function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=Symbol.for("BufferList");function s(e){if(!(this instanceof s))return new s(e);s._init.call(this,e)}s._init=function(e){Object.defineProperty(this,r,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)},s.prototype._new=function(e){return new s(e)},s.prototype._offset=function(e){if(0===e)return[0,0];let t=0;for(let n=0;nthis.length||e<0)return;const t=this._offset(e);return this._bufs[t[0]][t[1]]},s.prototype.slice=function(e,t){return"number"===typeof e&&e<0&&(e+=this.length),"number"===typeof t&&t<0&&(t+=this.length),this.copy(null,0,e,t)},s.prototype.copy=function(e,t,n,r){if(("number"!==typeof n||n<0)&&(n=0),("number"!==typeof r||r>this.length)&&(r=this.length),n>=this.length)return e||i.alloc(0);if(r<=0)return e||i.alloc(0);const s=!!e,o=this._offset(n),a=r-n;let c=a,l=s&&t||0,u=o[1];if(0===n&&r===this.length){if(!s)return 1===this._bufs.length?this._bufs[0]:i.concat(this._bufs,this.length);for(let t=0;tt)){this._bufs[i].copy(e,l,u,u+c);break}this._bufs[i].copy(e,l,u),l+=t,c-=t,u&&(u=0)}return e},s.prototype.shallowSlice=function(e,t){if(e=e||0,t="number"!==typeof t?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();const n=this._offset(e),i=this._offset(t),r=this._bufs.slice(n[0],i[0]+1);return 0===i[1]?r.pop():r[r.length-1]=r[r.length-1].slice(0,i[1]),0!==n[1]&&(r[0]=r[0].slice(n[1])),this._new(r)},s.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},s.prototype.consume=function(e){while(this._bufs.length){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},s.prototype.duplicate=function(){const e=this._new();for(let t=0;tthis.length?this.length:t;const r=this._offset(t);let s=r[0],o=r[1];for(;s=e.length){const n=t.indexOf(e,o);if(-1!==n)return this._reverseOffset([s,n]);o=t.length-e.length+1}else{const t=this._reverseOffset([s,o]);if(this._match(t,e))return t;o++}}o=0}return-1},s.prototype._match=function(e,t){if(this.length-e({tail:n("42d2")(e),ls:n("74ab")(e),level:n("3bf2")(e)})},"342f":function(e,t,n){var i=n("d066");e.exports=i("navigator","userAgent")||""},3464:function(e,t,n){"use strict";const i=n("2054"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t={})=>{const n=await e.post("swarm/addrs/local",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers}),{Strings:r}=await n.json();return(r||[]).map(e=>i(e))})},"34ca":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("c449"),s=n("9878"),o=n("15e4");e.exports=s(e=>async(t,n={})=>{const s=await e.post("object/stat",{timeout:n.timeout,signal:n.signal,searchParams:o({arg:""+(i.isBuffer(t)?new r(t):t),...n}),headers:n.headers});return s.json()})},"34eb":function(e,t,n){(function(i){function r(){return!("undefined"===typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"===typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function s(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,r=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(r=i))}),t.splice(r,0,n)}function o(...e){return"object"===typeof console&&console.log&&console.log(...e)}function a(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}}function c(){let e;try{e=t.storage.getItem("debug")}catch(n){}return!e&&"undefined"!==typeof i&&"env"in i&&(e=Object({NODE_ENV:"production",BASE_URL:"/"}).DEBUG),e}function l(){try{return localStorage}catch(e){}}t.log=o,t.formatArgs=s,t.save=a,t.load=c,t.useColors=r,t.storage=l(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n("dc90")(t);const{formatters:u}=e.exports;u.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,n("4362"))},"354e":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("675c"),s=n("2612"),{names:o}=n("479a"),a={};for(const l in o)a[o[l]]=l;function c(e){t.decode(e)}t.names=o,t.codes=Object.freeze(a),t.toHexString=function(e){if(!i.isBuffer(e))throw new Error("must be passed a buffer");return e.toString("hex")},t.fromHexString=function(e){return i.from(e,"hex")},t.toB58String=function(e){if(!i.isBuffer(e))throw new Error("must be passed a buffer");return r.encode("base58btc",e).toString().slice(1)},t.fromB58String=function(e){let t=e;return i.isBuffer(e)&&(t=e.toString()),r.decode("z"+t)},t.decode=function(e){if(!i.isBuffer(e))throw new Error("multihash must be a Buffer");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");const n=s.decode(e);if(!t.isValidCode(n))throw new Error("multihash unknown function code: 0x"+n.toString(16));e=e.slice(s.decode.bytes);const r=s.decode(e);if(r<0)throw new Error("multihash invalid length: "+r);if(e=e.slice(s.decode.bytes),e.length!==r)throw new Error("multihash length inconsistent: 0x"+e.toString("hex"));return{code:n,name:a[n],length:r,digest:e}},t.encode=function(e,n,r){if(!e||void 0===n)throw new Error("multihash encode requires at least two args: digest, code");const o=t.coerceCode(n);if(!i.isBuffer(e))throw new Error("digest should be a Buffer");if(null==r&&(r=e.length),r&&e.length!==r)throw new Error("digest length should be equal to specified length.");return i.concat([i.from(s.encode(o)),i.from(s.encode(r)),e])},t.coerceCode=function(e){let n=e;if("string"===typeof e){if(void 0===o[e])throw new Error("Unrecognized hash function named: "+e);n=o[e]}if("number"!==typeof n)throw new Error("Hash function code should be a number. Got: "+n);if(void 0===a[n]&&!t.isAppCode(n))throw new Error("Unrecognized function code: "+n);return n},t.isAppCode=function(e){return e>0&&e<16},t.isValidCode=function(e){return!!t.isAppCode(e)||!!a[e]},t.validate=c,t.prefix=function(e){return c(e),e.slice(0,2)}},"35a1":function(e,t,n){var i=n("f5df"),r=n("3f8c"),s=n("b622"),o=s("iterator");e.exports=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||r[i(e)]}},"35ea":function(e,t,n){"use strict";function i(e,t){e=e.replace(new RegExp("=","g"),"");const n=e.length;let i=0,r=0,s=0;const o=new Uint8Array(5*n/8|0);for(let a=0;a=8&&(o[s++]=r>>>i-8&255,i-=8);return o.buffer}function r(e,t){const n=e.byteLength,i=new Uint8Array(e),r=t.indexOf("=")===t.length-1;r&&(t=t.substring(0,t.length-1));let s=0,o=0,a="";for(let c=0;c=5)a+=t[o>>>s-5&31],s-=5}if(s>0&&(a+=t[o<<5-s&31]),r)while(a.length%8!==0)a+="=";return a}e.exports=function(e){return{encode(t){return r("string"===typeof t?Uint8Array.from(t):t,e)},decode(t){for(const n of t)if(e.indexOf(n)<0)throw new Error("invalid base32 character");return i(t,e)}}}},"37e8":function(e,t,n){var i=n("83ab"),r=n("9bf2"),s=n("825a"),o=n("df75");e.exports=i?Object.defineProperties:function(e,t){s(e);var n,i=o(t),a=i.length,c=0;while(a>c)r.f(e,n=i[c++],t[n]);return e}},"3ae7":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("c449"),s=n("9878"),o=n("15e4");e.exports=s(e=>async(t,n,s={})=>{const a=await e.post("object/patch/add-link",{timeout:s.timeout,signal:s.signal,searchParams:o({arg:[""+(i.isBuffer(t)?new r(t):t),n.Name||n.name||"",(n.Hash||n.cid||"").toString()||null],...s}),headers:s.headers}),{Hash:c}=await a.json();return new r(c)})},"3bbe":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3bd5":function(e,t,n){"use strict";const i=n("7ae7");e.exports=e=>{const t=i.singleton();return async(e,n)=>t.unsubscribe(e,n)}},"3bf2":function(e,t,n){"use strict";const i=n("7766"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t,n,r={})=>{const o=await e.post("log/level",{timeout:r.timeout,signal:r.signal,searchParams:s({arg:[t,n],...r}),headers:r.headers});return i(await o.json())})},"3c35":function(e,t){(function(t){e.exports=t}).call(this,{})},"3cb9":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return r}));let i=/(-?(?:\d+\.?\d*|\d*\.?\d+)(?:e[-+]?\d+)?)\s*([a-zµμ]*)/gi;function r(e="",t="ms"){var n=null;return e=e.replace(/(\d),(\d)/g,"$1$2"),e.replace(i,(function(e,t,i){i=r[i]||r[i.toLowerCase().replace(/s$/,"")],i&&(n=(n||0)+parseFloat(t,10)*i)})),n&&n/r[t]}r.nanosecond=r.ns=1e-6,r["µs"]=r["μs"]=r.us=r.microsecond=.001,r.millisecond=r.ms=1,r.second=r.sec=r.s=1e3*r.ms,r.minute=r.min=r.m=60*r.s,r.hour=r.hr=r.h=60*r.m,r.day=r.d=24*r.h,r.week=r.wk=r.w=7*r.d,r.month=r.b=30.4375*r.d,r.year=r.yr=r.y=365.25*r.d},"3d5e":function(e,t,n){"use strict";const{URLWithLegacySupport:i,format:r}=n("1f0b");e.exports=(e,t={},n={},s)=>{let o,a=t.protocol?t.protocol.replace(":",""):"http";a=(n[a]||s||a)+":";try{o=new i(e)}catch(l){o={}}const c=Object.assign({},t,{protocol:a||o.protocol,host:t.host||o.host});return new i(e,r(c)).toString()}},"3e7a":function(e,t,n){"use strict";const i=n("c449"),{Buffer:r}=n("b639"),s=(e,t)=>{let n=null;if("string"===typeof t?n=e=>e.Name===t:(r.isBuffer(t)||i.isCID(t))&&(n=e=>e.Hash.equals(t)),!n)throw new Error("second arg needs to be a name or CID");{const t=e.Links;let i=0;while(iasync(t,n,r={})=>{if("string"!==typeof t)throw new Error("Invalid key type");const o={arg:[t,n],...r};"boolean"===typeof n?(o.arg[1]=n.toString(),o.bool=!0):"string"!==typeof n&&(o.arg[1]=JSON.stringify(n),o.json=!0);const a=await e.post("config",{timeout:r.timeout,signal:r.signal,searchParams:s(o),headers:r.headers});return i(await a.json())})},"3ed3":function(e,t,n){"use strict";t.util=n("b623"),t.resolver=n("5669"),t.codec=t.util.codec,t.defaultHashAlg=t.util.defaultHashAlg},"3f8c":function(e,t){e.exports={}},4064:function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("1c55"),s=n("416a"),{factory:o}=n("26d5"),{fromNumberTo32BitBuf:a}=n("9c49"),c=e=>async t=>{switch(e){case"sha3-224":return i.from(r.sha3_224.arrayBuffer(t));case"sha3-256":return i.from(r.sha3_256.arrayBuffer(t));case"sha3-384":return i.from(r.sha3_384.arrayBuffer(t));case"sha3-512":return i.from(r.sha3_512.arrayBuffer(t));case"shake-128":return i.from(r.shake128.create(128).update(t).arrayBuffer());case"shake-256":return i.from(r.shake256.create(256).update(t).arrayBuffer());case"keccak-224":return i.from(r.keccak224.arrayBuffer(t));case"keccak-256":return i.from(r.keccak256.arrayBuffer(t));case"keccak-384":return i.from(r.keccak384.arrayBuffer(t));case"keccak-512":return i.from(r.keccak512.arrayBuffer(t));case"murmur3-128":return i.from(s.x64.hash128(t),"hex");case"murmur3-32":return a(s.x86.hash32(t));default:throw new TypeError(e+" is not a supported algorithm")}},l=e=>i.from(e);e.exports={identity:l,sha1:o("sha1"),sha2256:o("sha2-256"),sha2512:o("sha2-512"),dblSha2256:o("dbl-sha2-256"),sha3224:c("sha3-224"),sha3256:c("sha3-256"),sha3384:c("sha3-384"),sha3512:c("sha3-512"),shake128:c("shake-128"),shake256:c("shake-256"),keccak224:c("keccak-224"),keccak256:c("keccak-256"),keccak384:c("keccak-384"),keccak512:c("keccak-512"),murmur3128:c("murmur3-128"),murmur332:c("murmur3-32"),addBlake:n("5a38")}},"40d5":function(e,t,n){"use strict";e.exports=e=>({ls:n("9398")(e),peers:n("4912")(e),publish:n("ea64")(e),subscribe:n("ddcd")(e),unsubscribe:n("3bd5")(e)})},"40ff":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("0624");function s(e,t){if(!t)throw new Error("requires an encoded buffer");const n=u(e),r=i.from(n.code),s=n.name;return l(s,t),i.concat([r,t])}function o(e,t){const n=u(e),r=n.name;return s(r,i.from(n.encode(t)))}function a(e){i.isBuffer(e)&&(e=e.toString());const t=e.substring(0,1);e=e.substring(1,e.length),"string"===typeof e&&(e=i.from(e));const n=u(t);return i.from(n.decode(e.toString()))}function c(e){if(i.isBuffer(e)&&(e=e.toString()),"[object String]"!==Object.prototype.toString.call(e))return!1;const t=e.substring(0,1);try{const e=u(t);return e.name}catch(n){return!1}}function l(e,t){const n=u(e);n.decode(t.toString())}function u(e){let t;if(r.names[e])t=r.names[e];else{if(!r.codes[e])throw new Error("Unsupported encoding");t=r.codes[e]}if(!t.isImplemented())throw new Error("Base "+e+" is not implemented yet");return t}t=e.exports=s,t.encode=o,t.decode=a,t.isEncoded=c,t.names=Object.freeze(Object.keys(r.names)),t.codes=Object.freeze(Object.keys(r.codes))},"416a":function(e,t,n){e.exports=n("24d2")},4196:function(e,t){(function(){"object"!==typeof globalThis&&(Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})(),e.exports=globalThis},"423e":function(e,t,n){"use strict";const i=n("7766"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t={})=>{const n=await e.post("dns",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers});return i(await n.json())})},"428f":function(e,t,n){var i=n("da84");e.exports=i},"42a6":function(e,t,n){"use strict";const i=n("354e"),{Buffer:r}=n("b639");var s={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!==typeof e.codec)return"codec must be string";if(0===e.version){if("dag-pb"!==e.codec)return"codec must be 'dag-pb' for CIDv0";if("base58btc"!==e.multibaseName)return"multibaseName must be 'base58btc' for CIDv0"}if(!r.isBuffer(e.multihash))return"multihash must be a Buffer";try{i.validate(e.multihash)}catch(t){let e=t.message;return e||(e="Multihash validation failed"),e}}};e.exports=s},"42a7":function(e,t,n){"use strict";var i=n("8707").Buffer;function r(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,h=new Uint8Array(l);while(s!==o){for(var f=t[s],d=0,p=l-1;(0!==f||d>>0,h[p]=f%a>>>0,f=f/a>>>0;if(0!==f)throw new Error("Non-zero carry");r=d,s++}var g=l-r;while(g!==l&&0===h[g])g++;for(var m=c.repeat(n);g>>0,u=new Uint8Array(o);while(e[n]){var h=t[e.charCodeAt(n)];if(255===h)return;for(var f=0,d=o-1;(0!==h||f>>0,u[d]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");s=f,n++}if(" "!==e[n]){var p=o-s;while(p!==o&&0===u[p])p++;var g=i.allocUnsafe(r+(o-p));g.fill(0,0,r);var m=r;while(p!==o)g[m++]=u[p++];return g}}}function d(e){var t=f(e);if(t)return t;throw new Error("Non-base"+a+" character")}return{encode:h,decodeUnsafe:f,decode:d}}e.exports=r},"42d2":function(e,t,n){"use strict";const i=n("9878"),r=n("15e4");e.exports=i(e=>async function*(t={}){const n=await e.post("log/tail",{timeout:t.timeout,signal:t.signal,searchParams:r(t),headers:t.headers});yield*n.ndjson()})},"431e":function(e,t,n){"use strict";const i=n("9878"),r=n("15e4");e.exports=i(e=>async(t={})=>{const n=await e.post("bootstrap/add",{timeout:t.timeout,signal:t.signal,searchParams:r({...t,default:!0}),headers:t.headers});return n.json()})},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,i="/";t.cwd=function(){return i},t.chdir=function(t){e||(e=n("df7c")),i=e.resolve(t,i)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"43c2":function(e,t,n){"use strict";const i=n("7766"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t,n,r={})=>{const o=await e.post("key/rename",{timeout:r.timeout,signal:r.signal,searchParams:s({arg:[t,n],...r}),headers:r.headers});return i(await o.json())})},"449d":function(e,t,n){"use strict";const i=n("670b");e.exports=async function*(e,t){const n=new i,r=await n.get(e,t);yield{path:decodeURIComponent(new URL(e).pathname.split("/").pop()||""),content:r.iterator()}}},"44ad":function(e,t,n){var i=n("d039"),r=n("c6b6"),s="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?s.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var i=n("b622"),r=n("7c73"),s=n("9bf2"),o=i("unscopables"),a=Array.prototype;void 0==a[o]&&s.f(a,o,{configurable:!0,value:r(null)}),e.exports=function(e){a[o][e]=!0}},"44de":function(e,t,n){var i=n("da84");e.exports=function(e,t){var n=i.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},"451a":function(e,t,n){"use strict";const i=()=>{const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e};e.exports=i},4706:function(e,t,n){"use strict";const i=n("23bc"),r=n("ef4d"),s=e=>{if(r.isDAGLink(e))return e;if(!("cid"in e||"hash"in e||"Hash"in e||"multihash"in e))throw new Error("Link must be a DAGLink or DAGLink-like. Convert the DAGNode into a DAGLink via `node.toDAGLink()`.");return new r(e.Name||e.name,e.Tsize||e.size,e.Hash||e.multihash||e.hash||e.cid)},o=(e,t)=>{const n=s(t);e.Links.push(n),i(e.Links)};e.exports=o},"479a":function(e,t,n){"use strict";const i=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});e.exports={names:i}},4815:function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("9878"),s=n("15e4"),{Value:o}=n("a36d");e.exports=r(e=>async function(t,n={}){const r=await e.post("dht/get",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:i.isBuffer(t)?t.toString():t,...n}),headers:n.headers});for await(const e of r.ndjson())if(e.Type===o)return i.from(e.Extra,"base64");throw new Error("not found")})},4840:function(e,t,n){var i=n("825a"),r=n("1c0b"),s=n("b622"),o=s("species");e.exports=function(e,t){var n,s=i(e).constructor;return void 0===s||void 0==(n=i(s)[o])?t:r(n)}},4912:function(e,t,n){"use strict";const i=n("9878"),r=n("15e4");e.exports=i(e=>async(t,n={})=>{n||"object"!==typeof t||(n=t||{},t=null);const i=await e.post("pubsub/peers",{timeout:n.timeout,signal:n.signal,searchParams:r({arg:t,...n}),headers:n.headers}),{Strings:s}=await i.json();return s||[]})},"491e":function(e,t,n){"use strict";const i=n("c449"),r=n("9878"),s=n("15e4");e.exports=r(e=>async function*(t={}){const n=await e.post("repo/gc",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers,transform:e=>({err:e.Error?new Error(e.Error):null,cid:(e.Key||{})["/"]?new i(e.Key["/"]):null})});yield*n.ndjson()})},4923:function(e,t,n){"use strict";e.exports=e=>({add:n("a5e1")(e),clear:n("6832")(e),rm:n("f0e2")(e),reset:n("431e")(e),list:n("0701")(e)})},4930:function(e,t,n){var i=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},"4bf1":function(e,t,n){"use strict";const i=n("7766"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t={})=>{const n=await e.post("config/profile/list",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers}),r=await n.json();return r.map(e=>i(e))})},"4ce8":function(e,t,n){t.extract=n("9058"),t.pack=n("dac4")},"4d2d":function(e,t,n){"use strict";const i=n("0fcf"),r=n("ce8a");e.exports=e=>r(e,i)},"4d59":function(e,t,n){"use strict";e.exports=e=>({add:n("c4f2")(e),rm:n("5912")(e),ls:n("e166")(e)})},"4d64":function(e,t,n){var i=n("fc6a"),r=n("50c4"),s=n("23cb"),o=function(e){return function(t,n,o){var a,c=i(t),l=r(c.length),u=s(o,l);if(e&&n!=n){while(l>u)if(a=c[u++],a!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},"4e03":function(e,t,n){"use strict";const i=n("c449"),r=n("77d0"),s=n("5d98");e.exports={codec:s.RAW,defaultHashAlg:s.SHA2_256,resolver:{resolve:(e,t)=>{if("/"!==t)throw new Error("Only the root path / may be resolved");return{value:e,remainderPath:""}},tree:e=>({done:!0})},util:{deserialize:e=>e,serialize:e=>e,cid:async(t,n)=>{const o={cidVersion:1,hashAlg:e.exports.defaultHashAlg},a=Object.assign(o,n),c=await r(t,a.hashAlg),l=s.print[e.exports.codec],u=new i(a.cidVersion,l,c);return u}}}},"4eff":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("c449"),{DAGLink:s}=n("8141"),o=n("9878"),a=n("15e4");e.exports=o(e=>async(t,n={})=>{const o=await e.post("object/links",{timeout:n.timeout,signal:n.signal,searchParams:a({arg:""+(i.isBuffer(t)?new r(t):t),...n}),headers:n.headers}),c=await o.json();return(c.Links||[]).map(e=>new s(e.Name,e.Size,e.Hash))})},"4f82":function(e,t,n){"use strict";const i=n("9878"),r=n("15e4");e.exports=i(e=>async(t={})=>{const n=await e.post("diag/cmds",{timeout:t.timeout,signal:t.signal,searchParams:r(t),headers:t.headers});return n.json()})},"4fcb":function(e,t,n){"use strict";const i=n("0f6c"),{hasOwnProperty:r}=Object.prototype,{propertyIsEnumerable:s}=Object,o=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}),a=this,c={concatArrays:!1,ignoreUndefined:!1},l=e=>{const t=[];for(const n in e)r.call(e,n)&&t.push(n);if(Object.getOwnPropertySymbols){const n=Object.getOwnPropertySymbols(e);for(const i of n)s.call(e,i)&&t.push(i)}return t};function u(e){return Array.isArray(e)?h(e):i(e)?f(e):e}function h(e){const t=e.slice(0,0);return l(e).forEach(n=>{o(t,n,u(e[n]))}),t}function f(e){const t=null===Object.getPrototypeOf(e)?Object.create(null):{};return l(e).forEach(n=>{o(t,n,u(e[n]))}),t}const d=(e,t,n,i)=>(n.forEach(n=>{"undefined"===typeof t[n]&&i.ignoreUndefined||(n in e&&e[n]!==Object.getPrototypeOf(e)?o(e,n,g(e[n],t[n],i)):o(e,n,u(t[n])))}),e),p=(e,t,n)=>{let i=e.slice(0,0),s=0;return[e,t].forEach(t=>{const a=[];for(let n=0;n!a.includes(e)),n)}),i};function g(e,t,n){return n.concatArrays&&Array.isArray(e)&&Array.isArray(t)?p(e,t,n):i(t)&&i(e)?d(e,t,l(t),n):u(t)}e.exports=function(...e){const t=g(u(c),this!==a&&this||{},c);let n={_:{}};for(const r of e)if(void 0!==r){if(!i(r))throw new TypeError("`"+r+"` is not an Option Object");n=g(n,{_:r},t)}return n._}},5076:function(e,t,n){"use strict";const i=n("85be"),r=i.MT,s=i.SIMPLE,o=i.SYMS;class a{constructor(e){if("number"!==typeof e)throw new Error("Invalid Simple type: "+typeof e);if(e<0||e>255||(0|e)!==e)throw new Error("value must be a small positive integer: "+e);this.value=e}toString(){return"simple("+this.value+")"}inspect(){return"simple("+this.value+")"}encodeCBOR(e){return e._pushInt(this.value,r.SIMPLE_FLOAT)}static isSimple(e){return e instanceof a}static decode(e,t){switch(null==t&&(t=!0),e){case s.FALSE:return!1;case s.TRUE:return!0;case s.NULL:return t?null:o.NULL;case s.UNDEFINED:return t?void 0:o.UNDEFINED;case-1:if(!t)throw new Error("Invalid BREAK");return o.BREAK;default:return new a(e)}}}e.exports=a},"50c4":function(e,t,n){var i=n("a691"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5144:function(e,t,n){"use strict";const i=n("7766"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t={})=>{const n=await e.post("version",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers}),r=await n.json();return i(r)})},"51a1":function(e,t,n){"use strict";const i=n("c449"),r=n("61cc"),s=n("9878"),o=n("15e4");function a(e){return e.cid=new i(e.hash),delete e.hash,e}e.exports=s(e=>async(t,n={})=>{"string"!==typeof t&&(n=t||{},t="/");const i=await e.post("files/stat",{timeout:n.timeout,signal:n.signal,searchParams:o({arg:t,...n}),headers:n.headers}),s=await i.json();return s.WithLocality=s.WithLocality||!1,a(r(s))})},"526a":function(e,t,n){"use strict";const i=n("c449"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t,n={})=>{const r=await e.post("block/stat",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:new i(t).toString(),...n}),headers:n.headers}),o=await r.json();return{cid:new i(o.Key),size:o.Size}})},5319:function(e,t,n){"use strict";var i=n("d784"),r=n("825a"),s=n("7b0b"),o=n("50c4"),a=n("a691"),c=n("1d80"),l=n("8aa5"),u=n("14c3"),h=Math.max,f=Math.min,d=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g,m=function(e){return void 0===e?e:String(e)};i("replace",2,(function(e,t,n,i){var v=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,b=i.REPLACE_KEEPS_$0,w=v?"$":"$0";return[function(n,i){var r=c(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,r,i):t.call(String(r),n,i)},function(e,i){if(!v&&b||"string"===typeof i&&-1===i.indexOf(w)){var s=n(t,e,this,i);if(s.done)return s.value}var c=r(e),d=String(this),p="function"===typeof i;p||(i=String(i));var g=c.global;if(g){var A=c.unicode;c.lastIndex=0}var E=[];while(1){var C=u(c,d);if(null===C)break;if(E.push(C),!g)break;var F=String(C[0]);""===F&&(c.lastIndex=l(d,o(c.lastIndex),A))}for(var k="",S=0,x=0;x=S&&(k+=d.slice(S,B)+R,S=B+_.length)}return k+d.slice(S)}];function y(e,n,i,r,o,a){var c=i+e.length,l=r.length,u=g;return void 0!==o&&(o=s(o),u=p),t.call(a,u,(function(t,s){var a;switch(s.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,i);case"'":return n.slice(c);case"<":a=o[s.slice(1,-1)];break;default:var u=+s;if(0===u)return t;if(u>l){var h=d(u/10);return 0===h?t:h<=l?void 0===r[h-1]?s.charAt(1):r[h-1]+s.charAt(1):t}a=r[u-1]}return void 0===a?"":a}))}}))},5365:function(e,t,n){"use strict";const i=n("c449"),r=n("61cc"),s=n("9878"),o=n("15e4");function a(e){return e.hash&&(e.cid=new i(e.hash)),delete e.hash,e}e.exports=s(e=>async function*(t,n={}){if(!t||"string"!==typeof t)throw new Error("ipfs.files.ls requires a path");const s=await e.post("files/ls",{timeout:n.timeout,signal:n.signal,searchParams:o({arg:i.isCID(t)?"/ipfs/"+t:t,long:!0,...n,stream:!0}),headers:n.headers});for await(const e of s.ndjson())if("Entries"in e)for(const t of e.Entries||[])yield a(r(t));else yield a(r(e))})},"542b":function(e,t,n){"use strict";const i=n("4d2d"),r=n("257d"),s=n("82ad"),{File:o,FormData:a}=n("4196");async function c(e="",t,n={}){const c=new a;let l=0;for await(const{content:a,path:u,mode:h,mtime:f}of i(e)){let e="";const t=a?"file":"dir";l>0&&(e="-"+l);let n=t+e;const i=[];if(null!==h&&void 0!==h&&i.push("mode="+r(h)),null!=f){const{secs:e,nsecs:t}=s(f);i.push("mtime="+e),null!=t&&i.push("mtime-nsecs="+t)}i.length&&(n=`${n}?${i.join("&")}`),a?c.set(n,a,encodeURIComponent(u)):c.set(n,new o([""],encodeURIComponent(u),{type:"application/x-directory"})),l++}return{headers:n,body:c}}e.exports=c},"546f":function(e,t,n){"use strict";e.exports=e=>({addrs:n("d72a")(e),connect:n("f5e5")(e),disconnect:n("15f7")(e),localAddrs:n("3464")(e),peers:n("0725")(e)})},5669:function(e,t,n){"use strict";const i=n("c449"),{Buffer:r}=n("b639"),s=n("b623");t.resolve=(e,t)=>{let n=s.deserialize(e);const r=t.split("/").filter(Boolean);while(r.length){const e=r.shift();if(void 0===n[e])throw new Error(`Object has no property '${e}'`);if(n=n[e],i.isCID(n))return{value:n,remainderPath:r.join("/")}}return{value:n,remainderPath:""}};const o=function*(e,t){if(!r.isBuffer(e)&&!i.isCID(e)&&"string"!==typeof e&&null!==e)for(const n of Object.keys(e)){const i=void 0===t?n:t+"/"+n;yield i,yield*o(e[n],i)}};t.tree=function*(e){const t=s.deserialize(e);yield*o(t)}},5692:function(e,t,n){var i=n("c430"),r=n("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"569b":function(e,t,n){"use strict";const i=n("8141"),r=n("3ed3"),s=n("4e03"),o=n("9878"),a={"dag-cbor":r.resolver,"dag-pb":i.resolver,raw:s.resolver};e.exports=o((e,t)=>{const i=n("0e02")(t),r=n("6fff")(t);return async(e,t={})=>{const n=await r(e,t),s=await i(n.cid,t),o=a[s.cid.codec];if(!o)throw Object.assign(new Error(`Missing IPLD format "${s.cid.codec}"`),{missingMulticodec:e.codec});return"raw"!==s.cid.codec||n.remPath||(n.remainderPath="/"),o.resolve(s.data,n.remainderPath)}})},"56ef":function(e,t,n){var i=n("d066"),r=n("241c"),s=n("7418"),o=n("825a");e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(o(e)),n=s.f;return n?t.concat(n(e)):t}},"578c":function(e,t,n){"use strict";const i=n("9878"),r=n("15e4");e.exports=i(e=>async function(t,n={}){const i=await e.post("files/touch",{timeout:n.timeout,signal:n.signal,searchParams:r({arg:t,...n}),headers:n.headers});await i.text()})},5912:function(e,t,n){"use strict";const i=n("c449"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t,n={})=>{const r=await e.post("pin/rm",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:""+t,...n}),headers:n.headers}),o=await r.json();return(o.Pins||[]).map(e=>({cid:new i(e)}))})},"59bb":function(e,t,n){"use strict";const i=n("74f2"),r=n("9975"),s=n("9878");e.exports=e=>{const t=i(e);return s(()=>async function(e,n={}){return r(t(e,n))})(e)}},"5a38":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("c8f6"),s=45569,o=45633,a={init:r.blake2bInit,update:r.blake2bUpdate,digest:r.blake2bFinal},c={init:r.blake2sInit,update:r.blake2sUpdate,digest:r.blake2sFinal},l=(e,t)=>async n=>{const r=t.init(e,null);return t.update(r,n),i.from(t.digest(r))};e.exports=e=>{for(let t=0;t<64;t++)e[s+t]=l(t+1,a);for(let t=0;t<32;t++)e[o+t]=l(t+1,c)}},"5a45":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("1c55"),s=n("416a"),{factory:o}=n("22bb"),{fromNumberTo32BitBuf:a}=n("0ab2"),c=e=>async t=>{switch(e){case"sha3-224":return i.from(r.sha3_224.arrayBuffer(t));case"sha3-256":return i.from(r.sha3_256.arrayBuffer(t));case"sha3-384":return i.from(r.sha3_384.arrayBuffer(t));case"sha3-512":return i.from(r.sha3_512.arrayBuffer(t));case"shake-128":return i.from(r.shake128.create(128).update(t).arrayBuffer());case"shake-256":return i.from(r.shake256.create(256).update(t).arrayBuffer());case"keccak-224":return i.from(r.keccak224.arrayBuffer(t));case"keccak-256":return i.from(r.keccak256.arrayBuffer(t));case"keccak-384":return i.from(r.keccak384.arrayBuffer(t));case"keccak-512":return i.from(r.keccak512.arrayBuffer(t));case"murmur3-128":return i.from(s.x64.hash128(t),"hex");case"murmur3-32":return a(s.x86.hash32(t));default:throw new TypeError(e+" is not a supported algorithm")}},l=e=>i.from(e);e.exports={identity:l,sha1:o("sha1"),sha2256:o("sha2-256"),sha2512:o("sha2-512"),dblSha2256:o("dbl-sha2-256"),sha3224:c("sha3-224"),sha3256:c("sha3-256"),sha3384:c("sha3-384"),sha3512:c("sha3-512"),shake128:c("shake-128"),shake256:c("shake-256"),keccak224:c("keccak-224"),keccak256:c("keccak-256"),keccak384:c("keccak-384"),keccak512:c("keccak-512"),murmur3128:c("murmur3-128"),murmur332:c("murmur3-32"),addBlake:n("13c8")}},"5a90":function(e,t,n){"use strict";e.exports=e=>({gen:n("857d")(e),list:n("9b35")(e),rename:n("43c2")(e),rm:n("0db3")(e),import:n("1247")(e)})},"5ab1":function(e,t,n){"use strict";const i=n("cfab"),r=new Map;for(const s in i){const e=i[s];r.set(e,s)}e.exports=Object.freeze(r)},"5ae5":function(e,t,n){"use strict";e.exports=e=>({get:n("569b")(e),put:n("6356")(e),resolve:n("6fff")(e)})},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5d6d":function(e,t,n){"use strict";const i=async function*(e,t){for await(const n of e)yield t(n)};e.exports=i},"5d98":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("2612"),s=n("5ab1"),o=n("cc3c"),a=n("1c13");t=e.exports,t.addPrefix=(e,t)=>{let n;if(i.isBuffer(e))n=a.varintBufferEncode(e);else{if(!o[e])throw new Error("multicodec not recognized");n=o[e]}return i.concat([n,t])},t.rmPrefix=e=>(r.decode(e),e.slice(r.decode.bytes)),t.getCodec=e=>{const t=r.decode(e),n=s.get(t);if(void 0===n)throw new Error(`Code ${t} not found`);return n},t.getName=e=>s.get(e),t.getNumber=e=>{const t=o[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return a.varintBufferDecode(t)[0]},t.getCode=e=>r.decode(e),t.getCodeVarint=e=>{const t=o[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return t},t.getVarint=e=>r.encode(e);const c=n("8111");Object.assign(t,c),t.print=n("17b2")},"5ee5":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("901e").BigNumber,s=n("85be"),o=s.SHIFT32,a=s.SHIFT16,c=2097151;function l(e){return e<16?"0"+e.toString(16):e.toString(16)}t.parseHalf=function(e){var t,n,i;return i=128&e[0]?-1:1,t=(124&e[0])>>2,n=(3&e[0])<<8|e[1],t?31===t?i*(n?NaN:Infinity):i*Math.pow(2,t-25)*(1024+n):5.960464477539063e-8*i*n},t.arrayBufferToBignumber=function(e){const t=e.byteLength;let n="";for(let i=0;i{const t=new Map,n=Object.keys(e),i=n.length;for(let r=0;re*a+t,t.buildInt64=(e,n,i,s)=>{const a=t.buildInt32(e,n),l=t.buildInt32(i,s);return a>c?new r(a).times(o).plus(l):a*o+l},t.writeHalf=function(e,t){const n=i.allocUnsafe(4);n.writeFloatBE(t,0);const r=n.readUInt32BE(0);if(0!==(8191&r))return!1;var s=r>>16&32768;const o=r>>23&255,a=8388607&r;if(o>=113&&o<=142)s+=(o-112<<10)+(a>>13);else{if(!(o>=103&&o<113))return!1;if(a&(1<<126-o)-1)return!1;s+=a+8388608>>126-o}return e.writeUInt16BE(s,0),!0},t.keySorter=function(e,t){var n=e[0].byteLength,i=t[0].byteLength;return n>i?1:i>n?-1:e[0].compare(t[0])},t.isNegativeZero=e=>0===e&&1/e<0,t.nextPowerOf2=e=>{let t=0;if(e&&!(e&e-1))return e;while(0!==e)e>>=1,t+=1;return 1<-1,n=e.indexOf("-")>-1&&e.indexOf("_")>-1;return{encode(e){let r="";r="string"===typeof e?i.from(e).toString("base64"):e.toString("base64"),n&&(r=r.replace(/\+/g,"-").replace(/\//g,"_"));const s=r.indexOf("=");return s>0&&!t&&(r=r.substring(0,s)),r},decode(t){for(const n of t)if(e.indexOf(n)<0)throw new Error("invalid base64 character");return i.from(t,"base64")}}}},"60da":function(e,t,n){"use strict";var i=n("83ab"),r=n("d039"),s=n("df75"),o=n("7418"),a=n("d1e7"),c=n("7b0b"),l=n("44ad"),u=Object.assign,h=Object.defineProperty;e.exports=!u||r((function(){if(i&&1!==u({b:1},u(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||s(u({},t)).join("")!=r}))?function(e,t){var n=c(e),r=arguments.length,u=1,h=o.f,f=a.f;while(r>u){var d,p=l(arguments[u++]),g=h?s(p).concat(h(p)):s(p),m=g.length,v=0;while(m>v)d=g[v++],i&&!f.call(p,d)||(n[d]=p[d])}return n}:u},"61cc":function(e,t,n){"use strict";const i=n("7766");function r(e){const t=i(e);return Object.prototype.hasOwnProperty.call(t,"mode")&&(t.mode=parseInt(t.mode,8)),Object.prototype.hasOwnProperty.call(t,"mtime")&&(t.mtime={secs:t.mtime,nsecs:t.mtimeNsecs||0},delete t.mtimeNsecs),t}e.exports=r},"61f1":function(e,t){var n=Math.pow(2,7),i=Math.pow(2,14),r=Math.pow(2,21),s=Math.pow(2,28),o=Math.pow(2,35),a=Math.pow(2,42),c=Math.pow(2,49),l=Math.pow(2,56),u=Math.pow(2,63);e.exports=function(e){return e{const n={[d.DAG_PB]:r,[d.DAG_CBOR]:i,[d.RAW]:s},c=t&&t.ipld||{},p=c&&c.formats||[];return p.forEach(e=>{n[e.codec]=e}),async(i,r={})=>{if(r.cid&&(r.format||r.hashAlg))throw new Error("Failed to put DAG node. Provide either `cid` OR `format` and `hashAlg` options");if(r.format&&!r.hashAlg||!r.format&&r.hashAlg)throw new Error("Failed to put DAG node. Provide `format` AND `hashAlg` options");if(r.cid){const e=new o(r.cid);r={...r,format:e.codec,hashAlg:a.decode(e.multihash).name},delete r.cid}r={format:"dag-cbor",hashAlg:"sha2-256",inputEnc:"raw",...r};const s=d.getNumber(r.format);let c=n[s];if(!c&&(t&&t.ipld&&t.ipld.loadFormat&&(c=await t.ipld.loadFormat(r.format)),!c))throw new Error("Format unsupported - please add support using the options.ipld.formats or options.ipld.loadFormat options");if(!c.util||!c.util.serialize)throw new Error("Format does not support utils.serialize function");const p=c.util.serialize(i),g=new f,m=h([g.signal,r.signal]),v=await e.post("dag/put",{timeout:r.timeout,signal:m,searchParams:u(r),...await l(p,g,r.headers)}),b=await v.json();return new o(b.Cid["/"])}})},"63a6":function(e,t,n){(function(t){function n(){return"undefined"!==typeof window&&"object"===typeof window.process&&"renderer"===window.process.type||(!("undefined"===typeof t||"object"!==typeof t.versions||!t.versions.electron)||"object"===typeof navigator&&"string"===typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron")>=0)}e.exports=n}).call(this,n("4362"))},6547:function(e,t,n){var i=n("a691"),r=n("1d80"),s=function(e){return function(t,n){var s,o,a=String(r(t)),c=i(n),l=a.length;return c<0||c>=l?e?"":void 0:(s=a.charCodeAt(c),s<55296||s>56319||c+1===l||(o=a.charCodeAt(c+1))<56320||o>57343?e?a.charAt(c):s:e?a.slice(c,c+2):o-56320+(s-55296<<10)+65536)}};e.exports={codeAt:s(!1),charAt:s(!0)}},"670b":function(e,t,n){"use strict";const{fetch:i,Request:r,Headers:s}=n("273a"),{TimeoutError:o,HTTPError:a}=n("d2aa"),c=n("4fcb").bind({ignoreUndefined:!0}),{URL:l,URLSearchParams:u}=n("16af"),h=n("7980"),f=n("91d3"),d=n("74fd"),p=(e,t,n)=>{if(void 0===t)return e;const i=Date.now(),r=()=>{const e=Date.now()-i;return e>=t};return new Promise((i,s)=>{const a=setTimeout(()=>{r()&&(s(new o),n.abort())},t),c=e=>t=>{clearTimeout(a),r()?s(new o):e(t)};e.then(c(i),c(s))})},g={headers:{},throwHttpErrors:!0,credentials:"same-origin",transformSearchParams:e=>e};class m{constructor(e={}){this.opts=c(g,e)}async fetch(e,t={}){const n=c(this.opts,t);if(n.headers=new s(n.headers),"string"!==typeof e&&!(e instanceof l||e instanceof r))throw new TypeError("`resource` must be a string, URL, or Request");if(n.base&&"string"===typeof n.base&&"string"===typeof e){if(e.startsWith("/"))throw new Error("`resource` must not begin with a slash when using `base`");n.base.endsWith("/")||(n.base+="/"),e=n.base+e}const o=new l(e,n.base);n.searchParams&&(o.search=n.transformSearchParams(new u(n.searchParams))),void 0!==n.json&&(n.body=JSON.stringify(n.json),n.headers.set("content-type","application/json"));const h=new f,g=d([h.signal,n.signal]),m=await p(i(o,{...n,signal:g,timeout:void 0}),n.timeout,h);if(!m.ok&&n.throwHttpErrors)throw n.handleError&&await n.handleError(m),new a(m);return m.iterator=function(){const e=b(m.body);if(!w(e))throw new Error("Can't convert fetch body into a Async Iterator:");return e},m.ndjson=async function*(){for await(const e of v(m.iterator()))t.transform?yield t.transform(e):yield e},m}post(e,t={}){return this.fetch(e,{...t,method:"POST"})}get(e,t={}){return this.fetch(e,{...t,method:"GET"})}put(e,t={}){return this.fetch(e,{...t,method:"PUT"})}delete(e,t={}){return this.fetch(e,{...t,method:"DELETE"})}options(e,t={}){return this.fetch(e,{...t,method:"OPTIONS"})}}const v=async function*(e){const t=new h;let n="";for await(const i of e){n+=t.decode(i,{stream:!0});const e=n.split(/\r?\n/);for(let t=0;t0&&(yield JSON.parse(n))}n=e[e.length-1]}n+=t.decode(),n=n.trim(),0!==n.length&&(yield JSON.parse(n))},b=function(e){if(w(e)){if(Object.prototype.hasOwnProperty.call(e,"readable")&&Object.prototype.hasOwnProperty.call(e,"writable")){const t=e[Symbol.asyncIterator](),n={next:t.next.bind(t),return:()=>(e.destroy(),t.return()),[Symbol.asyncIterator]:()=>n};return n}return e}const t=e.getReader();return{next(){return t.read()},return(){return t.releaseLock(),{}},[Symbol.asyncIterator](){return this}}},w=e=>"object"===typeof e&&null!==e&&"function"===typeof e[Symbol.asyncIterator];m.HTTPError=a,m.TimeoutError=o,m.streamToAsyncIterator=b,m.post=(e,t)=>new m(t).post(e,t),m.get=(e,t)=>new m(t).get(e,t),m.put=(e,t)=>new m(t).put(e,t),m.delete=(e,t)=>new m(t).delete(e,t),m.options=(e,t)=>new m(t).options(e,t),e.exports=m},"675c":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("ab3a");function s(e,t){if(!t)throw new Error("requires an encoded buffer");const n=u(e);return l(n.name,t),i.concat([n.codeBuf,t])}function o(e,t){const n=u(e);return i.concat([n.codeBuf,i.from(n.encode(t))])}function a(e){i.isBuffer(e)&&(e=e.toString());const t=e[0];["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.toLowerCase());const n=u(e[0]);return i.from(n.decode(e.substring(1)))}function c(e){if(i.isBuffer(e)&&(e=e.toString()),"[object String]"!==Object.prototype.toString.call(e))return!1;try{const t=u(e[0]);return t.name}catch(t){return!1}}function l(e,t){const n=u(e);n.decode(t.toString())}function u(e){if(r.names[e])return r.names[e];if(r.codes[e])return r.codes[e];throw new Error("Unsupported encoding: "+e)}function h(e){return i.isBuffer(e)&&(e=e.toString()),u(e[0])}t=e.exports=s,t.encode=o,t.decode=a,t.isEncoded=c,t.encoding=u,t.encodingFromData=h,t.names=Object.freeze(r.names),t.codes=Object.freeze(r.codes)},"67d1":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("c449"),s=n("9878"),o=n("15e4");e.exports=s(e=>async(t,n,s={})=>{const a=await e.post("object/patch/rm-link",{timeout:s.timeout,signal:s.signal,searchParams:o({arg:[""+(i.isBuffer(t)?new r(t):t),n.Name||n.name||null],...s}),headers:s.headers}),{Hash:c}=await a.json();return new r(c)})},"67ed":function(e,t,n){"use strict";const i=n("c449"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t,n={})=>{t="string"===typeof t?t:new i(t).toString();const r=await(await e.post("bitswap/wantlist",{timeout:n.timeout,signal:n.signal,searchParams:s({...n,peer:t}),headers:n.headers})).json();return(r.Keys||[]).map(e=>new i(e["/"]))})},6832:function(e,t,n){"use strict";const i=n("9878"),r=n("15e4");e.exports=i(e=>async(t={})=>{const n=await e.post("bootstrap/rm",{timeout:t.timeout,signal:t.signal,searchParams:r({...t,all:!0}),headers:t.headers});return n.json()})},"69f3":function(e,t,n){var i,r,s,o=n("7f9a"),a=n("da84"),c=n("861d"),l=n("9112"),u=n("5135"),h=n("f772"),f=n("d012"),d=a.WeakMap,p=function(e){return s(e)?r(e):i(e,{})},g=function(e){return function(t){var n;if(!c(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(o){var m=new d,v=m.get,b=m.has,w=m.set;i=function(e,t){return w.call(m,e,t),t},r=function(e){return v.call(m,e)||{}},s=function(e){return b.call(m,e)}}else{var y=h("state");f[y]=!0,i=function(e,t){return l(e,y,t),t},r=function(e){return u(e,y)?e[y]:{}},s=function(e){return u(e,y)}}e.exports={set:i,get:r,has:s,enforce:p,getterFor:g}},"6aa7":function(e,t,n){"use strict";e.exports={RTLD_LAZY:1,RTLD_NOW:2,RTLD_GLOBAL:256,RTLD_LOCAL:0,RTLD_DEEPBIND:8,E2BIG:7,EACCES:13,EADDRINUSE:98,EADDRNOTAVAIL:99,EAFNOSUPPORT:97,EAGAIN:11,EALREADY:114,EBADF:9,EBADMSG:74,EBUSY:16,ECANCELED:125,ECHILD:10,ECONNABORTED:103,ECONNREFUSED:111,ECONNRESET:104,EDEADLK:35,EDESTADDRREQ:89,EDOM:33,EDQUOT:122,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:113,EIDRM:43,EILSEQ:84,EINPROGRESS:115,EINTR:4,EINVAL:22,EIO:5,EISCONN:106,EISDIR:21,ELOOP:40,EMFILE:24,EMLINK:31,EMSGSIZE:90,EMULTIHOP:72,ENAMETOOLONG:36,ENETDOWN:100,ENETRESET:102,ENETUNREACH:101,ENFILE:23,ENOBUFS:105,ENODATA:61,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:37,ENOLINK:67,ENOMEM:12,ENOMSG:42,ENOPROTOOPT:92,ENOSPC:28,ENOSR:63,ENOSTR:60,ENOSYS:38,ENOTCONN:107,ENOTDIR:20,ENOTEMPTY:39,ENOTSOCK:88,ENOTSUP:95,ENOTTY:25,ENXIO:6,EOPNOTSUPP:95,EOVERFLOW:75,EPERM:1,EPIPE:32,EPROTO:71,EPROTONOSUPPORT:93,EPROTOTYPE:91,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:116,ETIME:62,ETIMEDOUT:110,ETXTBSY:26,EWOULDBLOCK:11,EXDEV:18,PRIORITY_LOW:19,PRIORITY_BELOW_NORMAL:10,PRIORITY_NORMAL:0,PRIORITY_ABOVE_NORMAL:-7,PRIORITY_HIGH:-14,PRIORITY_HIGHEST:-20,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:7,SIGFPE:8,SIGKILL:9,SIGUSR1:10,SIGSEGV:11,SIGUSR2:12,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:17,SIGSTKFLT:16,SIGCONT:18,SIGSTOP:19,SIGTSTP:20,SIGTTIN:21,SIGTTOU:22,SIGURG:23,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:29,SIGPOLL:29,SIGPWR:30,SIGSYS:31,SIGUNUSED:31,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,O_RDONLY:0,O_WRONLY:1,O_RDWR:2,UV_DIRENT_UNKNOWN:0,UV_DIRENT_FILE:1,UV_DIRENT_DIR:2,UV_DIRENT_LINK:3,UV_DIRENT_FIFO:4,UV_DIRENT_SOCKET:5,UV_DIRENT_CHAR:6,UV_DIRENT_BLOCK:7,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,UV_FS_O_FILEMAP:0,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_DSYNC:4096,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_COPYFILE_EXCL:1,COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_FICLONE_FORCE:4,OPENSSL_VERSION_NUMBER:269488255,SSL_OP_ALL:2147485780,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:0,SSL_OP_MICROSOFT_SESS_ID_BUG:0,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:0,SSL_OP_NETSCAPE_CHALLENGE_BUG:0,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:0,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:0,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:0,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:0,SSL_OP_SINGLE_ECDH_USE:0,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:0,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:0,SSL_OP_TLS_D5_BUG:0,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_RSA:1,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_EC:2048,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,RSA_PSS_SALTLEN_DIGEST:-1,RSA_PSS_SALTLEN_MAX_SIGN:-2,RSA_PSS_SALTLEN_AUTO:-2,defaultCoreCipherList:"TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA",TLS1_VERSION:769,TLS1_1_VERSION:770,TLS1_2_VERSION:771,TLS1_3_VERSION:772,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},"6eeb":function(e,t,n){var i=n("da84"),r=n("9112"),s=n("5135"),o=n("ce4e"),a=n("8925"),c=n("69f3"),l=c.get,u=c.enforce,h=String(String).split("String");(e.exports=function(e,t,n,a){var c=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||s(n,"name")||r(n,"name",t),u(n).source=h.join("string"==typeof t?t:"")),e!==i?(c?!f&&e[t]&&(l=!0):delete e[t],l?e[t]=n:r(e,t,n)):l?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||a(this)}))},"6fff":function(e,t,n){"use strict";const i=n("c449"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t,n={})=>{const r=await e.post("dag/resolve",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:`${t}${n.path?("/"+n.path).replace(/\/[/]+/g,"/"):""}`,...n}),headers:n.headers}),o=await r.json();return{cid:new i(o.Cid["/"]),remainderPath:o.RemPath}})},"71ef":function(e,t,n){"use strict";const i=n("9878"),{findSources:r}=n("d6ea"),s=n("15e4");e.exports=i(e=>async(...t)=>{const{sources:n,options:i}=r(t),o=await e.post("files/rm",{timeout:i.timeout,signal:i.signal,searchParams:s({arg:n,...i}),headers:i.headers});await o.text()})},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"74ab":function(e,t,n){"use strict";const i=n("9878"),r=n("15e4");e.exports=i(e=>async(t={})=>{const n=await e.post("log/ls",{timeout:t.timeout,signal:t.signal,searchParams:r(t),headers:t.headers}),i=await n.json();return i.Strings})},"74f2":function(e,t,n){"use strict";const i=n("c449"),r=n("7766"),s=n("9878"),o=n("542b"),a=n("15e4"),c=n("74fd"),l=n("91d3");function u({name:e,hash:t,size:n,mode:r,mtime:s,mtimeNsecs:o}){const a={path:e,cid:new i(t),size:parseInt(n)};return null!=r&&(a.mode=parseInt(r,8)),null!=s&&(a.mtime={secs:s,nsecs:o||0}),a}e.exports=s(e=>async function*(t,n={}){const i=n.progress,s=new l,h=c([s.signal,n.signal]),f=await e.post("add",{searchParams:a({"stream-channels":!0,...n,progress:Boolean(i)}),timeout:n.timeout,signal:h,...await o(t,s,n.headers)});for await(let e of f.ndjson())e=r(e),i&&e.bytes?i(e.bytes):yield u(e)})},"74fd":function(e,t,n){const i=n("0de0");function r(e){const t=new i;function n(){t.abort();for(const t of e)t&&t.removeEventListener&&t.removeEventListener("abort",n)}for(const i of e)if(i&&i.addEventListener){if(i.aborted){n();break}i.addEventListener("abort",n)}return t.signal}e.exports=r,e.exports.anySignal=r},"76b6":function(e,t,n){const{Buffer:i}=n("b639");var r=i.alloc,s="0000000000000000000",o="7777777777777777777",a="0".charCodeAt(0),c=i.from("ustar\0","binary"),l=i.from("00","binary"),u=parseInt("7777",8),h=257,f=263,d=function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0},p=function(e){for(var t=256,n=0;n<148;n++)t+=e[n];for(var i=156;i<512;i++)t+=e[i];return t},g=function(e,t){return e=e.toString(8),e.length>t?o.slice(0,t)+" ":s.slice(0,t-e.length)+e+" "},m=function(e){var t=i.byteLength(e),n=Math.floor(Math.log(t)/Math.log(10))+1;return t+n>=Math.pow(10,n)&&n++,t+n+e};t.encodePax=function(e){var t="";e.name&&(t+=m(" path="+e.name+"\n")),e.linkname&&(t+=m(" linkpath="+e.linkname+"\n"));var n=e.pax;if(n)for(var r in n)t+=m(" "+r+"="+n[r]+"\n");return i.from(t)},t.encode=function(e){var t=r(512),n=e.name,s="";if(5===e.typeflag&&"/"!==n[n.length-1]&&(n+="/"),i.byteLength(n)!==n.length)return null;while(i.byteLength(n)>100){var o=n.indexOf("/");if(-1===o)return null;s+=s?"/"+n.slice(0,o):n.slice(0,o),n=n.slice(o+1)}return i.byteLength(n)>100||i.byteLength(s)>155||e.linkname&&i.byteLength(e.linkname)>100?null:(t.write(n),t.write(g(e.mode&u,6),100),t.write(g(e.uid,6),108),t.write(g(e.gid,6),116),t.write(g(e.size,11),124),t.write(g(e.mtime.getTime()/1e3|0,11),136),t[156]=a+d(e.type),e.linkname&&t.write(e.linkname,157),c.copy(t,h),l.copy(t,f),e.uname&&t.write(e.uname,265),e.gname&&t.write(e.gname,297),t.write(g(e.devmajor||0,6),329),t.write(g(e.devminor||0,6),337),s&&t.write(s,345),t.write(g(p(t),6),148),t)}},7766:function(e,t,n){"use strict";e.exports=e=>{if(null==e)return e;const t=/^[A-Z]+$/;return Object.keys(e).reduce((n,i)=>(t.test(i)?n[i.toLowerCase()]=e[i]:t.test(i[0])?n[i[0].toLowerCase()+i.slice(1)]=e[i]:n[i]=e[i],n),{})}},"77d0":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("b6aa"),s=n("354e"),o=n("5a45");async function a(e,t,n){const i=await a.digest(e,t,n);return s.encode(i,t,n)}a.Buffer=i,a.multihash=s,a.digest=async(e,t,n)=>{const i=a.createHash(t),r=await i(e);return n?r.slice(0,n):r},a.createHash=function(e){if(!e)throw r(new Error("hash algorithm must be specified"),"ERR_HASH_ALGORITHM_NOT_SPECIFIED");if(e=s.coerceCode(e),!a.functions[e])throw r(new Error(`multihash function '${e}' not yet supported`),"ERR_HASH_ALGORITHM_NOT_SUPPORTED");return a.functions[e]},a.functions={0:o.identity,17:o.sha1,18:o.sha2256,19:o.sha2512,20:o.sha3512,21:o.sha3384,22:o.sha3256,23:o.sha3224,24:o.shake128,25:o.shake256,26:o.keccak224,27:o.keccak256,28:o.keccak384,29:o.keccak512,34:o.murmur3128,35:o.murmur332,86:o.dblSha2256},o.addBlake(a.functions),a.validate=async(e,t)=>{const n=await a(e,s.decode(t).name);return 0===i.compare(t,n)},e.exports=a},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"786a":function(e,t,n){"use strict";const i=n("c449"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t,n={})=>{if(!t||"string"!==typeof t)throw new Error("ipfs.files.flush requires a path");const r=await e.post("files/flush",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:t,...n}),headers:n.headers}),o=await r.json();return new i(o.Cid)})},"796b":function(e,t,n){const i=n("3301");e.exports=e=>{const t=async function*(){let t=yield,n=new i;for await(const r of e)if(t){n.append(r);while(n.length>=t){const e=n.shallowSlice(0,t);if(n.consume(t),t=yield e,!t){n.length&&(t=yield n,n=new i);break}}}else t=yield n.append(r),n=new i;if(t)throw Object.assign(new Error(`stream ended before ${t} bytes became available`),{code:"ERR_UNDER_READ",buffer:n})}();return t.next(),t}},7980:function(e,t,n){"use strict";e.exports=n("4196").TextDecoder},7996:function(e,t,n){"use strict";const i=n("257d"),r=n("82ad"),s=n("9878"),o=n("542b"),a=n("15e4"),c=n("74fd"),l=n("91d3");e.exports=s(e=>async(t,n,s={})=>{const u=new l,h=c([u.signal,s.signal]),f=await e.post("files/write",{timeout:s.timeout,signal:h,searchParams:a({arg:t,streamChannels:!0,count:s.count||s.length,...s}),...await o({content:n,path:"arg",mode:i(s.mode),mtime:r(s.mtime)},u,s.headers)});await f.text()})},"7ae7":function(e,t,n){"use strict";const i=n("91d3");class r{constructor(){this._subs=new Map}static singleton(){return r.instance||(r.instance=new r),r.instance}subscribe(e,t,n){const r=this._subs.get(e)||[];if(r.find(e=>e.handler===t))throw new Error(`Already subscribed to ${e} with this handler`);const s=new i;return this._subs.set(e,[{handler:t,controller:s}].concat(r)),n&&n.addEventListener("abort",()=>this.unsubscribe(e,t)),s.signal}unsubscribe(e,t){const n=this._subs.get(e)||[];let i;t?(this._subs.set(e,n.filter(e=>e.handler!==t)),i=n.filter(e=>e.handler===t)):(this._subs.set(e,[]),i=n),i.forEach(e=>e.controller.abort())}}r.instance=null,e.exports=r},"7b0b":function(e,t,n){var i=n("1d80");e.exports=function(e){return Object(i(e))}},"7b28":function(e,t,n){"use strict";e.exports=n("0fc0")},"7b5f":function(e,t,n){"use strict";const i=n("c449"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t={})=>{const n=await(await e.post("bitswap/wantlist",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers})).json();return(n.Keys||[]).map(e=>new i(e["/"]))})},"7c73":function(e,t,n){var i,r=n("825a"),s=n("37e8"),o=n("7839"),a=n("d012"),c=n("1be4"),l=n("cc12"),u=n("f772"),h=">",f="<",d="prototype",p="script",g=u("IE_PROTO"),m=function(){},v=function(e){return f+p+h+e+f+"/"+p+h},b=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},w=function(){var e,t=l("iframe"),n="java"+p+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},y=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}y=i?b(i):w();var e=o.length;while(e--)delete y[d][o[e]];return y()};a[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[d]=r(e),n=new m,m[d]=null,n[g]=e):n=y(),void 0===t?n:s(n,t)}},"7c9e":function(e,t,n){var i=n("061c");e.exports={render:function(e){var t=this.height?this.px(this.height):"100%",n=this.width?this.px(this.width):"100%";return e("div",{attrs:{style:"height: "+t+"; width: "+n}})},props:{value:String,lang:!0,theme:String,height:!0,width:!0,options:Object},data:function(){return{editor:null,contentBackup:""}},methods:{px:function(e){return/^\d*$/.test(e)?e+"px":e}},watch:{value:function(e){this.contentBackup!==e&&(this.editor.session.setValue(e,1),this.contentBackup=e)},theme:function(e){this.editor.setTheme("ace/theme/"+e)},lang:function(e){this.editor.getSession().setMode("string"===typeof e?"ace/mode/"+e:e)},options:function(e){this.editor.setOptions(e)},height:function(){this.$nextTick((function(){this.editor.resize()}))},width:function(){this.$nextTick((function(){this.editor.resize()}))}},beforeDestroy:function(){this.editor.destroy(),this.editor.container.remove()},mounted:function(){var e=this,t=this.lang||"text",r=this.theme||"chrome";n("b378");var s=e.editor=i.edit(this.$el);s.$blockScrolling=1/0,this.$emit("init",s),s.getSession().setMode("string"===typeof t?"ace/mode/"+t:t),s.setTheme("ace/theme/"+r),this.value&&s.setValue(this.value,1),this.contentBackup=this.value,s.on("change",(function(){var t=s.getValue();e.$emit("input",t),e.contentBackup=t})),e.options&&s.setOptions(e.options)}}},"7dd0":function(e,t,n){"use strict";var i=n("23e7"),r=n("9ed3"),s=n("e163"),o=n("d2bb"),a=n("d44e"),c=n("9112"),l=n("6eeb"),u=n("b622"),h=n("c430"),f=n("3f8c"),d=n("ae93"),p=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,m=u("iterator"),v="keys",b="values",w="entries",y=function(){return this};e.exports=function(e,t,n,u,d,A,E){r(n,t,u);var C,F,k,S=function(e){if(e===d&&D)return D;if(!g&&e in B)return B[e];switch(e){case v:return function(){return new n(this,e)};case b:return function(){return new n(this,e)};case w:return function(){return new n(this,e)}}return function(){return new n(this)}},x=t+" Iterator",_=!1,B=e.prototype,$=B[m]||B["@@iterator"]||d&&B[d],D=!g&&$||S(d),L="Array"==t&&B.entries||$;if(L&&(C=s(L.call(new e)),p!==Object.prototype&&C.next&&(h||s(C)===p||(o?o(C,p):"function"!=typeof C[m]&&c(C,m,y)),a(C,x,!0,!0),h&&(f[x]=y))),d==b&&$&&$.name!==b&&(_=!0,D=function(){return $.call(this)}),h&&!E||B[m]===D||c(B,m,D),f[t]=D,d)if(F={values:S(b),keys:A?D:S(v),entries:S(w)},E)for(k in F)(g||_||!(k in B))&&l(B,k,F[k]);else i({target:t,proto:!0,forced:g||_},F);return F}},"7e03":function(e,t,n){
+//! stable.js 0.1.8, https://github.com/Two-Screen/stable
+//! © 2018 Angry Bytes and contributors. MIT licensed.
+(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e,n){return t(e.slice(),n)};function t(e,t){"function"!==typeof t&&(t=function(e,t){return String(e).localeCompare(t)});var i=e.length;if(i<=1)return e;for(var r=new Array(i),s=1;sl&&(s=l),o>l&&(o=l),a=r,c=s;while(1)if(aasync(t,n={})=>{const i=await e.post("files/mkdir",{timeout:n.timeout,signal:n.signal,searchParams:r({arg:t,...n}),headers:n.headers});await i.text()})},"7f99":function(e,t,n){"use strict";const i=n("7766"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t,n={})=>{const r=await e.post("name/pubsub/cancel",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:t,...n}),headers:n.headers});return i(await r.json())})},"7f9a":function(e,t,n){var i=n("da84"),r=n("8925"),s=i.WeakMap;e.exports="function"===typeof s&&/native code/.test(r(s))},8111:function(e,t,n){"use strict";const i=n("cfab"),r={};for(const[s,o]of Object.entries(i))r[s.toUpperCase().replace(/-/g,"_")]=o;e.exports=Object.freeze(r)},8141:function(e,t,n){"use strict";t.DAGNode=n("7b28"),t.DAGLink=n("ef4d"),t.resolver=n("2cdb"),t.util=n("85b8"),t.codec=t.util.codec,t.defaultHashAlg=t.util.defaultHashAlg},"818c":function(e,t){e.exports=function(e,t,n){"use asm";var i=new e.Uint8Array(n);var r=t.pushInt;var s=t.pushInt32;var o=t.pushInt32Neg;var a=t.pushInt64;var c=t.pushInt64Neg;var l=t.pushFloat;var u=t.pushFloatSingle;var h=t.pushFloatDouble;var f=t.pushTrue;var d=t.pushFalse;var p=t.pushUndefined;var g=t.pushNull;var m=t.pushInfinity;var v=t.pushInfinityNeg;var b=t.pushNaN;var w=t.pushNaNNeg;var y=t.pushArrayStart;var A=t.pushArrayStartFixed;var E=t.pushArrayStartFixed32;var C=t.pushArrayStartFixed64;var F=t.pushObjectStart;var k=t.pushObjectStartFixed;var S=t.pushObjectStartFixed32;var x=t.pushObjectStartFixed64;var _=t.pushByteString;var B=t.pushByteStringStart;var $=t.pushUtf8String;var D=t.pushUtf8StringStart;var L=t.pushSimpleUnassigned;var T=t.pushTagStart;var R=t.pushTagStart4;var O=t.pushTagStart8;var M=t.pushTagUnassigned;var I=t.pushBreak;var P=e.Math.pow;var N=0;var j=0;var U=0;function H(e){e=e|0;N=0;j=e;while((N|0)<(j|0)){U=Xe[i[N]&255](i[N]|0)|0;if((U|0)>0){break}}return U|0}function z(e){e=e|0;if(((N|0)+(e|0)|0)<(j|0)){return 0}return 1}function W(e){e=e|0;return i[e|0]<<8|i[e+1|0]|0}function V(e){e=e|0;return i[e|0]<<24|i[e+1|0]<<16|i[e+2|0]<<8|i[e+3|0]|0}function G(e){e=e|0;r(e|0);N=N+1|0;return 0}function K(e){e=e|0;if(z(1)|0){return 1}r(i[N+1|0]|0);N=N+2|0;return 0}function Y(e){e=e|0;if(z(2)|0){return 1}r(W(N+1|0)|0);N=N+3|0;return 0}function q(e){e=e|0;if(z(4)|0){return 1}s(W(N+1|0)|0,W(N+3|0)|0);N=N+5|0;return 0}function X(e){e=e|0;if(z(8)|0){return 1}a(W(N+1|0)|0,W(N+3|0)|0,W(N+5|0)|0,W(N+7|0)|0);N=N+9|0;return 0}function Q(e){e=e|0;r(-1-(e-32|0)|0);N=N+1|0;return 0}function J(e){e=e|0;if(z(1)|0){return 1}r(-1-(i[N+1|0]|0)|0);N=N+2|0;return 0}function Z(e){e=e|0;var t=0;if(z(2)|0){return 1}t=W(N+1|0)|0;r(-1-(t|0)|0);N=N+3|0;return 0}function ee(e){e=e|0;if(z(4)|0){return 1}o(W(N+1|0)|0,W(N+3|0)|0);N=N+5|0;return 0}function te(e){e=e|0;if(z(8)|0){return 1}c(W(N+1|0)|0,W(N+3|0)|0,W(N+5|0)|0,W(N+7|0)|0);N=N+9|0;return 0}function ne(e){e=e|0;var t=0;var n=0;var i=0;i=e-64|0;if(z(i|0)|0){return 1}t=N+1|0;n=(N+1|0)+(i|0)|0;_(t|0,n|0);N=n|0;return 0}function ie(e){e=e|0;var t=0;var n=0;var r=0;if(z(1)|0){return 1}r=i[N+1|0]|0;t=N+2|0;n=(N+2|0)+(r|0)|0;if(z(r+1|0)|0){return 1}_(t|0,n|0);N=n|0;return 0}function re(e){e=e|0;var t=0;var n=0;var i=0;if(z(2)|0){return 1}i=W(N+1|0)|0;t=N+3|0;n=(N+3|0)+(i|0)|0;if(z(i+2|0)|0){return 1}_(t|0,n|0);N=n|0;return 0}function se(e){e=e|0;var t=0;var n=0;var i=0;if(z(4)|0){return 1}i=V(N+1|0)|0;t=N+5|0;n=(N+5|0)+(i|0)|0;if(z(i+4|0)|0){return 1}_(t|0,n|0);N=n|0;return 0}function oe(e){e=e|0;return 1}function ae(e){e=e|0;B();N=N+1|0;return 0}function ce(e){e=e|0;var t=0;var n=0;var i=0;i=e-96|0;if(z(i|0)|0){return 1}t=N+1|0;n=(N+1|0)+(i|0)|0;$(t|0,n|0);N=n|0;return 0}function le(e){e=e|0;var t=0;var n=0;var r=0;if(z(1)|0){return 1}r=i[N+1|0]|0;t=N+2|0;n=(N+2|0)+(r|0)|0;if(z(r+1|0)|0){return 1}$(t|0,n|0);N=n|0;return 0}function ue(e){e=e|0;var t=0;var n=0;var i=0;if(z(2)|0){return 1}i=W(N+1|0)|0;t=N+3|0;n=(N+3|0)+(i|0)|0;if(z(i+2|0)|0){return 1}$(t|0,n|0);N=n|0;return 0}function he(e){e=e|0;var t=0;var n=0;var i=0;if(z(4)|0){return 1}i=V(N+1|0)|0;t=N+5|0;n=(N+5|0)+(i|0)|0;if(z(i+4|0)|0){return 1}$(t|0,n|0);N=n|0;return 0}function fe(e){e=e|0;return 1}function de(e){e=e|0;D();N=N+1|0;return 0}function pe(e){e=e|0;A(e-128|0);N=N+1|0;return 0}function ge(e){e=e|0;if(z(1)|0){return 1}A(i[N+1|0]|0);N=N+2|0;return 0}function me(e){e=e|0;if(z(2)|0){return 1}A(W(N+1|0)|0);N=N+3|0;return 0}function ve(e){e=e|0;if(z(4)|0){return 1}E(W(N+1|0)|0,W(N+3|0)|0);N=N+5|0;return 0}function be(e){e=e|0;if(z(8)|0){return 1}C(W(N+1|0)|0,W(N+3|0)|0,W(N+5|0)|0,W(N+7|0)|0);N=N+9|0;return 0}function we(e){e=e|0;y();N=N+1|0;return 0}function ye(e){e=e|0;var t=0;t=e-160|0;if(z(t|0)|0){return 1}k(t|0);N=N+1|0;return 0}function Ae(e){e=e|0;if(z(1)|0){return 1}k(i[N+1|0]|0);N=N+2|0;return 0}function Ee(e){e=e|0;if(z(2)|0){return 1}k(W(N+1|0)|0);N=N+3|0;return 0}function Ce(e){e=e|0;if(z(4)|0){return 1}S(W(N+1|0)|0,W(N+3|0)|0);N=N+5|0;return 0}function Fe(e){e=e|0;if(z(8)|0){return 1}x(W(N+1|0)|0,W(N+3|0)|0,W(N+5|0)|0,W(N+7|0)|0);N=N+9|0;return 0}function ke(e){e=e|0;F();N=N+1|0;return 0}function Se(e){e=e|0;T(e-192|0|0);N=N+1|0;return 0}function xe(e){e|0;T(e|0);N=N+1|0;return 0}function _e(e){e|0;T(e|0);N=N+1|0;return 0}function Be(e){e|0;T(e|0);N=N+1|0;return 0}function $e(e){e|0;T(e|0);N=N+1|0;return 0}function De(e){e=e|0;T(e-192|0|0);N=N+1|0;return 0}function Le(e){e|0;T(e|0);N=N+1|0;return 0}function Te(e){e|0;T(e|0);N=N+1|0;return 0}function Re(e){e|0;T(e|0);N=N+1|0;return 0}function Oe(e){e=e|0;if(z(1)|0){return 1}T(i[N+1|0]|0);N=N+2|0;return 0}function Me(e){e=e|0;if(z(2)|0){return 1}T(W(N+1|0)|0);N=N+3|0;return 0}function Ie(e){e=e|0;if(z(4)|0){return 1}R(W(N+1|0)|0,W(N+3|0)|0);N=N+5|0;return 0}function Pe(e){e=e|0;if(z(8)|0){return 1}O(W(N+1|0)|0,W(N+3|0)|0,W(N+5|0)|0,W(N+7|0)|0);N=N+9|0;return 0}function Ne(e){e=e|0;L((e|0)-224|0);N=N+1|0;return 0}function je(e){e=e|0;d();N=N+1|0;return 0}function Ue(e){e=e|0;f();N=N+1|0;return 0}function He(e){e=e|0;g();N=N+1|0;return 0}function ze(e){e=e|0;p();N=N+1|0;return 0}function We(e){e=e|0;if(z(1)|0){return 1}L(i[N+1|0]|0);N=N+2|0;return 0}function Ve(e){e=e|0;var t=0;var n=0;var r=1.0;var s=0.0;var o=0.0;var a=0.0;if(z(2)|0){return 1}t=i[N+1|0]|0;n=i[N+2|0]|0;if((t|0)&0x80){r=-1.0}s=+(((t|0)&0x7C)>>2);o=+(((t|0)&0x03)<<8|n);if(+s==0.0){l(+(+r*+5.9604644775390625e-8*+o))}else if(+s==31.0){if(+r==1.0){if(+o>0.0){b()}else{m()}}else{if(+o>0.0){w()}else{v()}}}else{l(+(+r*P(+2,+(+s-25.0))*+(1024.0+o)))}N=N+3|0;return 0}function Ge(e){e=e|0;if(z(4)|0){return 1}u(i[N+1|0]|0,i[N+2|0]|0,i[N+3|0]|0,i[N+4|0]|0);N=N+5|0;return 0}function Ke(e){e=e|0;if(z(8)|0){return 1}h(i[N+1|0]|0,i[N+2|0]|0,i[N+3|0]|0,i[N+4|0]|0,i[N+5|0]|0,i[N+6|0]|0,i[N+7|0]|0,i[N+8|0]|0);N=N+9|0;return 0}function Ye(e){e=e|0;return 1}function qe(e){e=e|0;I();N=N+1|0;return 0}var Xe=[G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,K,Y,q,X,Ye,Ye,Ye,Ye,Q,Q,Q,Q,Q,Q,Q,Q,Q,Q,Q,Q,Q,Q,Q,Q,Q,Q,Q,Q,Q,Q,Q,Q,J,Z,ee,te,Ye,Ye,Ye,Ye,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ie,re,se,oe,Ye,Ye,Ye,ae,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,ce,le,ue,he,fe,Ye,Ye,Ye,de,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,ge,me,ve,be,Ye,Ye,Ye,we,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,Ae,Ee,Ce,Fe,Ye,Ye,Ye,ke,Se,Se,Se,Se,Se,Se,De,De,De,De,De,De,De,De,De,De,De,De,De,De,De,De,De,De,Oe,Me,Ie,Pe,Ye,Ye,Ye,Ye,Ne,Ne,Ne,Ne,Ne,Ne,Ne,Ne,Ne,Ne,Ne,Ne,Ne,Ne,Ne,Ne,Ne,Ne,Ne,Ne,je,Ue,He,ze,We,Ve,Ge,Ke,Ye,Ye,Ye,qe];return{parse:H}}},"825a":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},"82ad":function(e,t,n){"use strict";e.exports=function(e){if(null!=e){if(e instanceof Date){const t=e.getTime(),n=Math.floor(t/1e3);return{secs:n,nsecs:1e3*(t-1e3*n)}}return Object.prototype.hasOwnProperty.call(e,"secs")?{secs:e.secs,nsecs:e.nsecs}:Object.prototype.hasOwnProperty.call(e,"Seconds")?{secs:e.Seconds,nsecs:e.FractionalNanoseconds}:Array.isArray(e)?{secs:e[0],nsecs:e[1]}:void 0}}},8327:function(e,t,n){(function(t){var n="Input must be an string, Buffer or Uint8Array";function i(e){var i;if(e instanceof Uint8Array)i=e;else if(e instanceof t)i=new Uint8Array(e);else{if("string"!==typeof e)throw new Error(n);i=new Uint8Array(t.from(e,"utf8"))}return i}function r(e){return Array.prototype.map.call(e,(function(e){return(e<16?"0":"")+e.toString(16)})).join("")}function s(e){return(4294967296+e).toString(16).substring(1)}function o(e,t,n){for(var i="\n"+e+" = ",r=0;rnew Date(e),1:e=>new Date(1e3*e),2:e=>a.arrayBufferToBignumber(e),3:e=>c.NEG_ONE.minus(a.arrayBufferToBignumber(e)),4:e=>c.TEN.pow(e[0]).times(e[1]),5:e=>c.TWO.pow(e[0]).times(e[1]),32:e=>new h(e),35:e=>new RegExp(e)},e.tags),this.parser=o(t,{log:console.log.bind(console),pushInt:this.pushInt.bind(this),pushInt32:this.pushInt32.bind(this),pushInt32Neg:this.pushInt32Neg.bind(this),pushInt64:this.pushInt64.bind(this),pushInt64Neg:this.pushInt64Neg.bind(this),pushFloat:this.pushFloat.bind(this),pushFloatSingle:this.pushFloatSingle.bind(this),pushFloatDouble:this.pushFloatDouble.bind(this),pushTrue:this.pushTrue.bind(this),pushFalse:this.pushFalse.bind(this),pushUndefined:this.pushUndefined.bind(this),pushNull:this.pushNull.bind(this),pushInfinity:this.pushInfinity.bind(this),pushInfinityNeg:this.pushInfinityNeg.bind(this),pushNaN:this.pushNaN.bind(this),pushNaNNeg:this.pushNaNNeg.bind(this),pushArrayStart:this.pushArrayStart.bind(this),pushArrayStartFixed:this.pushArrayStartFixed.bind(this),pushArrayStartFixed32:this.pushArrayStartFixed32.bind(this),pushArrayStartFixed64:this.pushArrayStartFixed64.bind(this),pushObjectStart:this.pushObjectStart.bind(this),pushObjectStartFixed:this.pushObjectStartFixed.bind(this),pushObjectStartFixed32:this.pushObjectStartFixed32.bind(this),pushObjectStartFixed64:this.pushObjectStartFixed64.bind(this),pushByteString:this.pushByteString.bind(this),pushByteStringStart:this.pushByteStringStart.bind(this),pushUtf8String:this.pushUtf8String.bind(this),pushUtf8StringStart:this.pushUtf8StringStart.bind(this),pushSimpleUnassigned:this.pushSimpleUnassigned.bind(this),pushTagUnassigned:this.pushTagUnassigned.bind(this),pushTagStart:this.pushTagStart.bind(this),pushTagStart4:this.pushTagStart4.bind(this),pushTagStart8:this.pushTagStart8.bind(this),pushBreak:this.pushBreak.bind(this)},this._heap)}get _depth(){return this._parents.length}get _currentParent(){return this._parents[this._depth-1]}get _ref(){return this._currentParent.ref}_closeParent(){var e=this._parents.pop();if(e.length>0)throw new Error(`Missing ${e.length} elements`);switch(e.type){case c.PARENT.TAG:this._push(this.createTag(e.ref[0],e.ref[1]));break;case c.PARENT.BYTE_STRING:this._push(this.createByteString(e.ref,e.length));break;case c.PARENT.UTF8_STRING:this._push(this.createUtf8String(e.ref,e.length));break;case c.PARENT.MAP:if(e.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createMap(e.ref,e.length));break;case c.PARENT.OBJECT:if(e.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createObject(e.ref,e.length));break;case c.PARENT.ARRAY:this._push(this.createArray(e.ref,e.length));break;default:break}this._currentParent&&this._currentParent.type===c.PARENT.TAG&&this._dec()}_dec(){const e=this._currentParent;e.length<0||(e.length--,0===e.length&&this._closeParent())}_push(e,t){const n=this._currentParent;switch(n.values++,n.type){case c.PARENT.ARRAY:case c.PARENT.BYTE_STRING:case c.PARENT.UTF8_STRING:n.length>-1?this._ref[this._ref.length-n.length]=e:this._ref.push(e),this._dec();break;case c.PARENT.OBJECT:null!=n.tmpKey?(this._ref[n.tmpKey]=e,n.tmpKey=null,this._dec()):(n.tmpKey=e,"string"!==typeof n.tmpKey&&(n.type=c.PARENT.MAP,n.ref=a.buildMap(n.ref)));break;case c.PARENT.MAP:null!=n.tmpKey?(this._ref.set(n.tmpKey,e),n.tmpKey=null,this._dec()):n.tmpKey=e;break;case c.PARENT.TAG:this._ref.push(e),t||this._dec();break;default:throw new Error("Unknown parent type")}}_createParent(e,t,n){this._parents[this._depth]={type:t,length:n,ref:e,values:0,tmpKey:null}}_reset(){this._res=[],this._parents=[{type:c.PARENT.ARRAY,length:-1,ref:this._res,values:0,tmpKey:null}]}createTag(e,t){const n=this._knownTags[e];return n?n(t):new u(e,t)}createMap(e,t){return e}createObject(e,t){return e}createArray(e,t){return e}createByteString(e,t){return i.concat(e)}createByteStringFromHeap(e,t){return e===t?i.alloc(0):i.from(this._heap.slice(e,t))}createInt(e){return e}createInt32(e,t){return a.buildInt32(e,t)}createInt64(e,t,n,i){return a.buildInt64(e,t,n,i)}createFloat(e){return e}createFloatSingle(e,t,n,i){return r.read([e,t,n,i],0,!1,23,4)}createFloatDouble(e,t,n,i,s,o,a,c){return r.read([e,t,n,i,s,o,a,c],0,!1,52,8)}createInt32Neg(e,t){return-1-a.buildInt32(e,t)}createInt64Neg(e,t,n,i){const r=a.buildInt32(e,t),o=a.buildInt32(n,i);return r>c.MAX_SAFE_HIGH?c.NEG_ONE.minus(new s(r).times(c.SHIFT32).plus(o)):-1-(r*c.SHIFT32+o)}createTrue(){return!0}createFalse(){return!1}createNull(){return null}createUndefined(){}createInfinity(){return 1/0}createInfinityNeg(){return-1/0}createNaN(){return NaN}createNaNNeg(){return NaN}createUtf8String(e,t){return e.join("")}createUtf8StringFromHeap(e,t){return e===t?"":this._buffer.toString("utf8",e,t)}createSimpleUnassigned(e){return new l(e)}pushInt(e){this._push(this.createInt(e))}pushInt32(e,t){this._push(this.createInt32(e,t))}pushInt64(e,t,n,i){this._push(this.createInt64(e,t,n,i))}pushFloat(e){this._push(this.createFloat(e))}pushFloatSingle(e,t,n,i){this._push(this.createFloatSingle(e,t,n,i))}pushFloatDouble(e,t,n,i,r,s,o,a){this._push(this.createFloatDouble(e,t,n,i,r,s,o,a))}pushInt32Neg(e,t){this._push(this.createInt32Neg(e,t))}pushInt64Neg(e,t,n,i){this._push(this.createInt64Neg(e,t,n,i))}pushTrue(){this._push(this.createTrue())}pushFalse(){this._push(this.createFalse())}pushNull(){this._push(this.createNull())}pushUndefined(){this._push(this.createUndefined())}pushInfinity(){this._push(this.createInfinity())}pushInfinityNeg(){this._push(this.createInfinityNeg())}pushNaN(){this._push(this.createNaN())}pushNaNNeg(){this._push(this.createNaNNeg())}pushArrayStart(){this._createParent([],c.PARENT.ARRAY,-1)}pushArrayStartFixed(e){this._createArrayStartFixed(e)}pushArrayStartFixed32(e,t){const n=a.buildInt32(e,t);this._createArrayStartFixed(n)}pushArrayStartFixed64(e,t,n,i){const r=a.buildInt64(e,t,n,i);this._createArrayStartFixed(r)}pushObjectStart(){this._createObjectStartFixed(-1)}pushObjectStartFixed(e){this._createObjectStartFixed(e)}pushObjectStartFixed32(e,t){const n=a.buildInt32(e,t);this._createObjectStartFixed(n)}pushObjectStartFixed64(e,t,n,i){const r=a.buildInt64(e,t,n,i);this._createObjectStartFixed(r)}pushByteStringStart(){this._parents[this._depth]={type:c.PARENT.BYTE_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushByteString(e,t){this._push(this.createByteStringFromHeap(e,t))}pushUtf8StringStart(){this._parents[this._depth]={type:c.PARENT.UTF8_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushUtf8String(e,t){this._push(this.createUtf8StringFromHeap(e,t))}pushSimpleUnassigned(e){this._push(this.createSimpleUnassigned(e))}pushTagStart(e){this._parents[this._depth]={type:c.PARENT.TAG,length:1,ref:[e]}}pushTagStart4(e,t){this.pushTagStart(a.buildInt32(e,t))}pushTagStart8(e,t,n,i){this.pushTagStart(a.buildInt64(e,t,n,i))}pushTagUnassigned(e){this._push(this.createTag(e))}pushBreak(){if(this._currentParent.length>-1)throw new Error("Unexpected break");this._closeParent()}_createObjectStartFixed(e){0!==e?this._createParent({},c.PARENT.OBJECT,e):this._push(this.createObject({}))}_createArrayStartFixed(e){0!==e?this._createParent(new Array(e),c.PARENT.ARRAY,e):this._push(this.createArray([]))}_decode(e){if(0===e.byteLength)throw new Error("Input too short");this._reset(),this._heap8.set(e);const t=this.parser.parse(e.byteLength);if(this._depth>1){while(0===this._currentParent.length)this._closeParent();if(this._depth>1)throw new Error("Undeterminated nesting")}if(t>0)throw new Error("Failed to parse");if(0===this._res.length)throw new Error("No valid result")}decodeFirst(e){return this._decode(e),this._res[0]}decodeAll(e){return this._decode(e),this._res}static decode(e,t){"string"===typeof e&&(e=i.from(e,t||"hex"));const n=new f({size:e.length});return n.decodeFirst(e)}static decodeAll(e,t){"string"===typeof e&&(e=i.from(e,t||"hex"));const n=new f({size:e.length});return n.decodeAll(e)}}f.decodeFirst=f.decode,e.exports=f}).call(this,n("c8ba"))},"857d":function(e,t,n){"use strict";const i=n("7766"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t,n={})=>{const r=await e.post("key/gen",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:t,...n}),headers:n.headers}),o=await r.json();return i(o)})},"85b8":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("96a8"),s=r(n("c2c8")),o=n("0eff"),a=n("0fc0"),{serializeDAGNodeLike:c}=n("f140"),l=n("94bf");t=e.exports,t.codec=l.codec,t.defaultHashAlg=l.defaultHashAlg;const u=(e,t)=>l.cid(e,t),h=e=>a.isDAGNode(e)?e.serialize():c(e.Data,e.Links),f=e=>{const t=s.PBNode.decode(e),n=t.Links.map(e=>new o(e.Name,e.Tsize,e.Hash)),r=null==t.Data?i.alloc(0):t.Data;return new a(r,n,e.length)};t.serialize=h,t.deserialize=f,t.cid=u},"85be":function(e,t,n){"use strict";const i=n("901e").BigNumber;t.MT={POS_INT:0,NEG_INT:1,BYTE_STRING:2,UTF8_STRING:3,ARRAY:4,MAP:5,TAG:6,SIMPLE_FLOAT:7},t.TAG={DATE_STRING:0,DATE_EPOCH:1,POS_BIGINT:2,NEG_BIGINT:3,DECIMAL_FRAC:4,BIGFLOAT:5,BASE64URL_EXPECTED:21,BASE64_EXPECTED:22,BASE16_EXPECTED:23,CBOR:24,URI:32,BASE64URL:33,BASE64:34,REGEXP:35,MIME:36},t.NUMBYTES={ZERO:0,ONE:24,TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31},t.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23},t.SYMS={NULL:Symbol("null"),UNDEFINED:Symbol("undef"),PARENT:Symbol("parent"),BREAK:Symbol("break"),STREAM:Symbol("stream")},t.SHIFT32=Math.pow(2,32),t.SHIFT16=Math.pow(2,16),t.MAX_SAFE_HIGH=2097151,t.NEG_ONE=new i(-1),t.TEN=new i(10),t.TWO=new i(2),t.PARENT={ARRAY:0,OBJECT:1,MAP:2,TAG:3,BYTE_STRING:4,UTF8_STRING:5}},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8707:function(e,t,n){var i=n("b639"),r=i.Buffer;function s(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=i:(s(i,t),t.Buffer=o),s(r,o),o.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},o.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"===typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},8741:function(e,t,n){"use strict";var i=n("cfce").defined,r=n("2612");function s(e,t,n){for(var s=Object.keys(n),o=t.length,a=new Array(o),c=0;cnew r(e["/"])),peers:e.Peers||[],blocksReceived:new i(e.BlocksReceived),dataReceived:new i(e.DataReceived),blocksSent:new i(e.BlocksSent),dataSent:new i(e.DataSent),dupBlksReceived:new i(e.DupBlksReceived),dupDataReceived:new i(e.DupDataReceived)}}e.exports=s(e=>async(t={})=>{const n=await e.post("bitswap/stat",{searchParams:o(t),timeout:t.timeout,signal:t.signal,headers:t.headers});return a(await n.json())})},"8c04":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("c449"),s=n("542b"),o=n("9878"),a=n("15e4"),c=n("74fd"),l=n("91d3");e.exports=o(e=>async(t,n,o={})=>{const u=new l,h=c([u.signal,o.signal]),f=await e.post("object/patch/append-data",{timeout:o.timeout,signal:h,searchParams:a({arg:""+(i.isBuffer(t)?new r(t):t),...o}),...await s(n,u,o.headers)}),{Hash:d}=await f.json();return new r(d)})},"8e99":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("8431"),s=n("5ee5");class o extends r{createTag(e,t){return`${e}(${t})`}createInt(e){return super.createInt(e).toString()}createInt32(e,t){return super.createInt32(e,t).toString()}createInt64(e,t,n,i){return super.createInt64(e,t,n,i).toString()}createInt32Neg(e,t){return super.createInt32Neg(e,t).toString()}createInt64Neg(e,t,n,i){return super.createInt64Neg(e,t,n,i).toString()}createTrue(){return"true"}createFalse(){return"false"}createFloat(e){const t=super.createFloat(e);return s.isNegativeZero(e)?"-0_1":t+"_1"}createFloatSingle(e,t,n,i){const r=super.createFloatSingle(e,t,n,i);return r+"_2"}createFloatDouble(e,t,n,i,r,s,o,a){const c=super.createFloatDouble(e,t,n,i,r,s,o,a);return c+"_3"}createByteString(e,t){const n=e.join(", ");return-1===t?`(_ ${n})`:"h'"+n}createByteStringFromHeap(e,t){const n=i.from(super.createByteStringFromHeap(e,t)).toString("hex");return`h'${n}'`}createInfinity(){return"Infinity_1"}createInfinityNeg(){return"-Infinity_1"}createNaN(){return"NaN_1"}createNaNNeg(){return"-NaN_1"}createNull(){return"null"}createUndefined(){return"undefined"}createSimpleUnassigned(e){return`simple(${e})`}createArray(e,t){const n=super.createArray(e,t);return-1===t?`[_ ${n.join(", ")}]`:`[${n.join(", ")}]`}createMap(e,t){const n=super.createMap(e),i=Array.from(n.keys()).reduce(a(n),"");return-1===t?`{_ ${i}}`:`{${i}}`}createObject(e,t){const n=super.createObject(e),i=Object.keys(n).reduce(a(n),"");return-1===t?`{_ ${i}}`:`{${i}}`}createUtf8String(e,t){const n=e.join(", ");return-1===t?`(_ ${n})`:`"${n}"`}createUtf8StringFromHeap(e,t){const n=i.from(super.createUtf8StringFromHeap(e,t)).toString("utf8");return`"${n}"`}static diagnose(e,t){"string"===typeof e&&(e=i.from(e,t||"hex"));const n=new o;return n.decodeFirst(e)}}function a(e){return(t,n)=>t?`${t}, ${n}: ${e[n]}`:`${n}: ${e[n]}`}e.exports=o},"901e":function(e,t,n){var i;(function(r){"use strict";var s,o=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,c=Math.floor,l="[BigNumber Error] ",u=l+"Number primitive has more than 15 significant digits: ",h=1e14,f=14,d=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],g=1e7,m=1e9;function v(e){var t,n,i,r=M.prototype={constructor:M,toString:null,valueOf:null},s=new M(1),k=20,S=4,x=-7,_=21,B=-1e7,$=1e7,D=!1,L=1,T=0,R={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},O="0123456789abcdefghijklmnopqrstuvwxyz";function M(e,t){var r,s,a,l,h,p,g,m,v=this;if(!(v instanceof M))return new M(e,t);if(null==t){if(e&&!0===e._isBigNumber)return v.s=e.s,void(!e.c||e.e>$?v.c=v.e=null:e.e=10;h/=10,l++);return void(l>$?v.c=v.e=null:(v.e=l,v.c=[e]))}m=String(e)}else{if(!o.test(m=String(e)))return i(v,m,p);v.s=45==m.charCodeAt(0)?(m=m.slice(1),-1):1}(l=m.indexOf("."))>-1&&(m=m.replace(".","")),(h=m.search(/e/i))>0?(l<0&&(l=h),l+=+m.slice(h+1),m=m.substring(0,h)):l<0&&(l=m.length)}else{if(A(t,2,O.length,"Base"),10==t)return v=new M(e),j(v,k+v.e+1,S);if(m=String(e),p="number"==typeof e){if(0*e!=0)return i(v,m,p,t);if(v.s=1/e<0?(m=m.slice(1),-1):1,M.DEBUG&&m.replace(/^0\.0*|\./,"").length>15)throw Error(u+e)}else v.s=45===m.charCodeAt(0)?(m=m.slice(1),-1):1;for(r=O.slice(0,t),l=h=0,g=m.length;hl){l=g;continue}}else if(!a&&(m==m.toUpperCase()&&(m=m.toLowerCase())||m==m.toLowerCase()&&(m=m.toUpperCase()))){a=!0,h=-1,l=0;continue}return i(v,String(e),p,t)}p=!1,m=n(m,t,10,v.s),(l=m.indexOf("."))>-1?m=m.replace(".",""):l=m.length}for(h=0;48===m.charCodeAt(h);h++);for(g=m.length;48===m.charCodeAt(--g););if(m=m.slice(h,++g)){if(g-=h,p&&M.DEBUG&&g>15&&(e>d||e!==c(e)))throw Error(u+v.s*e);if((l=l-h-1)>$)v.c=v.e=null;else if(l=_)?C(c,o):F(c,o,"0");else if(e=j(new M(e),t,n),s=e.e,c=w(e.c),a=c.length,1==i||2==i&&(t<=s||s<=x)){for(;aa){if(--t>0)for(c+=".";t--;c+="0");}else if(t+=s-a,t>0)for(s+1==a&&(c+=".");t--;c+="0");return e.s<0&&r?"-"+c:c}function P(e,t){for(var n,i=1,r=new M(e[0]);i=10;r/=10,i++);return(n=i+n*f-1)>$?e.c=e.e=null:n=10;l/=10,r++);if(s=t-r,s<0)s+=f,o=t,u=m[d=0],g=u/v[r-o-1]%10|0;else if(d=a((s+1)/f),d>=m.length){if(!i)break e;for(;m.length<=d;m.push(0));u=g=0,r=1,s%=f,o=s-f+1}else{for(u=l=m[d],r=1;l>=10;l/=10,r++);s%=f,o=s-f+r,g=o<0?0:u/v[r-o-1]%10|0}if(i=i||t<0||null!=m[d+1]||(o<0?u:u%v[r-o-1]),i=n<4?(g||i)&&(0==n||n==(e.s<0?3:2)):g>5||5==g&&(4==n||i||6==n&&(s>0?o>0?u/v[r-o]:0:m[d-1])%10&1||n==(e.s<0?8:7)),t<1||!m[0])return m.length=0,i?(t-=e.e+1,m[0]=v[(f-t%f)%f],e.e=-t||0):m[0]=e.e=0,e;if(0==s?(m.length=d,l=1,d--):(m.length=d+1,l=v[f-s],m[d]=o>0?c(u/v[r-o]%v[o])*l:0),i)for(;;){if(0==d){for(s=1,o=m[0];o>=10;o/=10,s++);for(o=m[0]+=l,l=1;o>=10;o/=10,l++);s!=l&&(e.e++,m[0]==h&&(m[0]=1));break}if(m[d]+=l,m[d]!=h)break;m[d--]=0,l=1}for(s=m.length;0===m[--s];m.pop());}e.e>$?e.c=e.e=null:e.e=_?C(t,n):F(t,n,"0"),e.s<0?"-"+t:t)}return M.clone=v,M.ROUND_UP=0,M.ROUND_DOWN=1,M.ROUND_CEIL=2,M.ROUND_FLOOR=3,M.ROUND_HALF_UP=4,M.ROUND_HALF_DOWN=5,M.ROUND_HALF_EVEN=6,M.ROUND_HALF_CEIL=7,M.ROUND_HALF_FLOOR=8,M.EUCLID=9,M.config=M.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(l+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(n=e[t],A(n,0,m,t),k=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(n=e[t],A(n,0,8,t),S=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&(n=e[t],n&&n.pop?(A(n[0],-m,0,t),A(n[1],0,m,t),x=n[0],_=n[1]):(A(n,-m,m,t),x=-(_=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if(n=e[t],n&&n.pop)A(n[0],-m,-1,t),A(n[1],1,m,t),B=n[0],$=n[1];else{if(A(n,-m,m,t),!n)throw Error(l+t+" cannot be zero: "+n);B=-($=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if(n=e[t],n!==!!n)throw Error(l+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw D=!n,Error(l+"crypto unavailable");D=n}else D=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(n=e[t],A(n,0,9,t),L=n),e.hasOwnProperty(t="POW_PRECISION")&&(n=e[t],A(n,0,m,t),T=n),e.hasOwnProperty(t="FORMAT")){if(n=e[t],"object"!=typeof n)throw Error(l+t+" not an object: "+n);R=n}if(e.hasOwnProperty(t="ALPHABET")){if(n=e[t],"string"!=typeof n||/^.$|[+-.\s]|(.).*\1/.test(n))throw Error(l+t+" invalid: "+n);O=n}}return{DECIMAL_PLACES:k,ROUNDING_MODE:S,EXPONENTIAL_AT:[x,_],RANGE:[B,$],CRYPTO:D,MODULO_MODE:L,POW_PRECISION:T,FORMAT:R,ALPHABET:O}},M.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!M.DEBUG)return!0;var t,n,i=e.c,r=e.e,s=e.s;e:if("[object Array]"=={}.toString.call(i)){if((1===s||-1===s)&&r>=-m&&r<=m&&r===c(r)){if(0===i[0]){if(0===r&&1===i.length)return!0;break e}if(t=(r+1)%f,t<1&&(t+=f),String(i[0]).length==t){for(t=0;t=h||n!==c(n))break e;if(0!==n)return!0}}}else if(null===i&&null===r&&(null===s||1===s||-1===s))return!0;throw Error(l+"Invalid BigNumber: "+e)},M.maximum=M.max=function(){return P(arguments,r.lt)},M.minimum=M.min=function(){return P(arguments,r.gt)},M.random=function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return c(Math.random()*e)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(e){var n,i,r,o,u,h=0,d=[],g=new M(s);if(null==e?e=k:A(e,0,m),o=a(e/f),D)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(o*=2));h>>11),u>=9e15?(i=crypto.getRandomValues(new Uint32Array(2)),n[h]=i[0],n[h+1]=i[1]):(d.push(u%1e14),h+=2);h=o/2}else{if(!crypto.randomBytes)throw D=!1,Error(l+"crypto unavailable");for(n=crypto.randomBytes(o*=7);h=9e15?crypto.randomBytes(7).copy(n,h):(d.push(u%1e14),h+=7);h=o/7}if(!D)for(;h=10;u/=10,h++);hn-1&&(null==o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}return function(i,r,s,o,a){var c,l,u,h,f,d,p,g,m=i.indexOf("."),v=k,b=S;for(m>=0&&(h=T,T=0,i=i.replace(".",""),g=new M(r),d=g.pow(i.length-m),T=h,g.c=n(F(w(d.c),d.e,"0"),10,s,e),g.e=g.c.length),p=n(i,r,s,a?(c=O,e):(c=e,O)),u=h=p.length;0==p[--h];p.pop());if(!p[0])return c.charAt(0);if(m<0?--u:(d.c=p,d.e=u,d.s=o,d=t(d,g,v,b,s),p=d.c,f=d.r,u=d.e),l=u+v+1,m=p[l],h=s/2,f=f||l<0||null!=p[l+1],f=b<4?(null!=m||f)&&(0==b||b==(d.s<0?3:2)):m>h||m==h&&(4==b||f||6==b&&1&p[l-1]||b==(d.s<0?8:7)),l<1||!p[0])i=f?F(c.charAt(1),-v,c.charAt(0)):c.charAt(0);else{if(p.length=l,f)for(--s;++p[--l]>s;)p[l]=0,l||(++u,p=[1].concat(p));for(h=p.length;!p[--h];);for(m=0,i="";m<=h;i+=c.charAt(p[m++]));i=F(i,u,c.charAt(0))}return i}}(),t=function(){function e(e,t,n){var i,r,s,o,a=0,c=e.length,l=t%g,u=t/g|0;for(e=e.slice();c--;)s=e[c]%g,o=e[c]/g|0,i=u*s+o*l,r=l*s+i%g*g+a,a=(r/n|0)+(i/g|0)+u*o,e[c]=r%n;return a&&(e=[a].concat(e)),e}function t(e,t,n,i){var r,s;if(n!=i)s=n>i?1:-1;else for(r=s=0;rt[r]?1:-1;break}return s}function n(e,t,n,i){for(var r=0;n--;)e[n]-=r,r=e[n]1;e.splice(0,1));}return function(i,r,s,o,a){var l,u,d,p,g,m,v,w,y,A,E,C,F,k,S,x,_,B=i.s==r.s?1:-1,$=i.c,D=r.c;if(!$||!$[0]||!D||!D[0])return new M(i.s&&r.s&&($?!D||$[0]!=D[0]:D)?$&&0==$[0]||!D?0*B:B/0:NaN);for(w=new M(B),y=w.c=[],u=i.e-r.e,B=s+u+1,a||(a=h,u=b(i.e/f)-b(r.e/f),B=B/f|0),d=0;D[d]==($[d]||0);d++);if(D[d]>($[d]||0)&&u--,B<0)y.push(1),p=!0;else{for(k=$.length,x=D.length,d=0,B+=2,g=c(a/(D[0]+1)),g>1&&(D=e(D,g,a),$=e($,g,a),x=D.length,k=$.length),F=x,A=$.slice(0,x),E=A.length;E=a/2&&S++;do{if(g=0,l=t(D,A,x,E),l<0){if(C=A[0],x!=E&&(C=C*a+(A[1]||0)),g=c(C/S),g>1){g>=a&&(g=a-1),m=e(D,g,a),v=m.length,E=A.length;while(1==t(m,A,v,E))g--,n(m,x=10;B/=10,d++);j(w,s+(w.e=d+u*f-1)+1,o,p)}else w.e=u,w.r=+p;return w}}(),i=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,i=/^-?(Infinity|NaN)$/,r=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(s,o,a,c){var u,h=a?o:o.replace(r,"");if(i.test(h))s.s=isNaN(h)?null:h<0?-1:1;else{if(!a&&(h=h.replace(e,(function(e,t,n){return u="x"==(n=n.toLowerCase())?16:"b"==n?2:8,c&&c!=u?e:t})),c&&(u=c,h=h.replace(t,"$1").replace(n,"0.$1")),o!=h))return new M(h,u);if(M.DEBUG)throw Error(l+"Not a"+(c?" base "+c:"")+" number: "+o);s.s=null}s.c=s.e=null}}(),r.absoluteValue=r.abs=function(){var e=new M(this);return e.s<0&&(e.s=1),e},r.comparedTo=function(e,t){return y(this,new M(e,t))},r.decimalPlaces=r.dp=function(e,t){var n,i,r,s=this;if(null!=e)return A(e,0,m),null==t?t=S:A(t,0,8),j(new M(s),e+s.e+1,t);if(!(n=s.c))return null;if(i=((r=n.length-1)-b(this.e/f))*f,r=n[r])for(;r%10==0;r/=10,i--);return i<0&&(i=0),i},r.dividedBy=r.div=function(e,n){return t(this,new M(e,n),k,S)},r.dividedToIntegerBy=r.idiv=function(e,n){return t(this,new M(e,n),0,1)},r.exponentiatedBy=r.pow=function(e,t){var n,i,r,o,u,h,d,p,g,m=this;if(e=new M(e),e.c&&!e.isInteger())throw Error(l+"Exponent not an integer: "+U(e));if(null!=t&&(t=new M(t)),h=e.e>14,!m.c||!m.c[0]||1==m.c[0]&&!m.e&&1==m.c.length||!e.c||!e.c[0])return g=new M(Math.pow(+U(m),h?2-E(e):+U(e))),t?g.mod(t):g;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new M(NaN);i=!d&&m.isInteger()&&t.isInteger(),i&&(m=m.mod(t))}else{if(e.e>9&&(m.e>0||m.e<-1||(0==m.e?m.c[0]>1||h&&m.c[1]>=24e7:m.c[0]<8e13||h&&m.c[0]<=9999975e7)))return o=m.s<0&&E(e)?-0:0,m.e>-1&&(o=1/o),new M(d?1/o:o);T&&(o=a(T/f+2))}for(h?(n=new M(.5),d&&(e.s=1),p=E(e)):(r=Math.abs(+U(e)),p=r%2),g=new M(s);;){if(p){if(g=g.times(m),!g.c)break;o?g.c.length>o&&(g.c.length=o):i&&(g=g.mod(t))}if(r){if(r=c(r/2),0===r)break;p=r%2}else if(e=e.times(n),j(e,e.e+1,1),e.e>14)p=E(e);else{if(r=+U(e),0===r)break;p=r%2}m=m.times(m),o?m.c&&m.c.length>o&&(m.c.length=o):i&&(m=m.mod(t))}return i?g:(d&&(g=s.div(g)),t?g.mod(t):o?j(g,T,S,u):g)},r.integerValue=function(e){var t=new M(this);return null==e?e=S:A(e,0,8),j(t,t.e+1,e)},r.isEqualTo=r.eq=function(e,t){return 0===y(this,new M(e,t))},r.isFinite=function(){return!!this.c},r.isGreaterThan=r.gt=function(e,t){return y(this,new M(e,t))>0},r.isGreaterThanOrEqualTo=r.gte=function(e,t){return 1===(t=y(this,new M(e,t)))||0===t},r.isInteger=function(){return!!this.c&&b(this.e/f)>this.c.length-2},r.isLessThan=r.lt=function(e,t){return y(this,new M(e,t))<0},r.isLessThanOrEqualTo=r.lte=function(e,t){return-1===(t=y(this,new M(e,t)))||0===t},r.isNaN=function(){return!this.s},r.isNegative=function(){return this.s<0},r.isPositive=function(){return this.s>0},r.isZero=function(){return!!this.c&&0==this.c[0]},r.minus=function(e,t){var n,i,r,s,o=this,a=o.s;if(e=new M(e,t),t=e.s,!a||!t)return new M(NaN);if(a!=t)return e.s=-t,o.plus(e);var c=o.e/f,l=e.e/f,u=o.c,d=e.c;if(!c||!l){if(!u||!d)return u?(e.s=-t,e):new M(d?o:NaN);if(!u[0]||!d[0])return d[0]?(e.s=-t,e):new M(u[0]?o:3==S?-0:0)}if(c=b(c),l=b(l),u=u.slice(),a=c-l){for((s=a<0)?(a=-a,r=u):(l=c,r=d),r.reverse(),t=a;t--;r.push(0));r.reverse()}else for(i=(s=(a=u.length)<(t=d.length))?a:t,a=t=0;t0)for(;t--;u[n++]=0);for(t=h-1;i>a;){if(u[--i]=0;){for(n=0,p=C[r]%y,m=C[r]/y|0,o=c,s=r+o;s>r;)l=E[--o]%y,u=E[o]/y|0,a=m*l+u*p,l=p*l+a%y*y+v[s]+n,n=(l/w|0)+(a/y|0)+m*u,v[s--]=l%w;v[s]=n}return n?++i:v.splice(0,1),N(e,v,i)},r.negated=function(){var e=new M(this);return e.s=-e.s||null,e},r.plus=function(e,t){var n,i=this,r=i.s;if(e=new M(e,t),t=e.s,!r||!t)return new M(NaN);if(r!=t)return e.s=-t,i.minus(e);var s=i.e/f,o=e.e/f,a=i.c,c=e.c;if(!s||!o){if(!a||!c)return new M(r/0);if(!a[0]||!c[0])return c[0]?e:new M(a[0]?i:0*r)}if(s=b(s),o=b(o),a=a.slice(),r=s-o){for(r>0?(o=s,n=c):(r=-r,n=a),n.reverse();r--;n.push(0));n.reverse()}for(r=a.length,t=c.length,r-t<0&&(n=c,c=a,a=n,t=r),r=0;t;)r=(a[--t]=a[t]+c[t]+r)/h|0,a[t]=h===a[t]?0:a[t]%h;return r&&(a=[r].concat(a),++o),N(e,a,o)},r.precision=r.sd=function(e,t){var n,i,r,s=this;if(null!=e&&e!==!!e)return A(e,1,m),null==t?t=S:A(t,0,8),j(new M(s),e,t);if(!(n=s.c))return null;if(r=n.length-1,i=r*f+1,r=n[r]){for(;r%10==0;r/=10,i--);for(r=n[0];r>=10;r/=10,i++);}return e&&s.e+1>i&&(i=s.e+1),i},r.shiftedBy=function(e){return A(e,-d,d),this.times("1e"+e)},r.squareRoot=r.sqrt=function(){var e,n,i,r,s,o=this,a=o.c,c=o.s,l=o.e,u=k+4,h=new M("0.5");if(1!==c||!a||!a[0])return new M(!c||c<0&&(!a||a[0])?NaN:a?o:1/0);if(c=Math.sqrt(+U(o)),0==c||c==1/0?(n=w(a),(n.length+l)%2==0&&(n+="0"),c=Math.sqrt(+n),l=b((l+1)/2)-(l<0||l%2),c==1/0?n="1e"+l:(n=c.toExponential(),n=n.slice(0,n.indexOf("e")+1)+l),i=new M(n)):i=new M(c+""),i.c[0])for(l=i.e,c=l+u,c<3&&(c=0);;)if(s=i,i=h.times(s.plus(t(o,s,u,1))),w(s.c).slice(0,c)===(n=w(i.c)).slice(0,c)){if(i.e0&&g>0){for(s=g%a||a,h=p.substr(0,s);s0&&(h+=u+p.slice(s)),d&&(h="-"+h)}i=f?h+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?f.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):f):h}return(n.prefix||"")+i+(n.suffix||"")},r.toFraction=function(e){var n,i,r,o,a,c,u,h,d,g,m,v,b=this,y=b.c;if(null!=e&&(u=new M(e),!u.isInteger()&&(u.c||1!==u.s)||u.lt(s)))throw Error(l+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+U(u));if(!y)return new M(b);for(n=new M(s),d=i=new M(s),r=h=new M(s),v=w(y),a=n.e=v.length-b.e-1,n.c[0]=p[(c=a%f)<0?f+c:c],e=!e||u.comparedTo(n)>0?a>0?n:d:u,c=$,$=1/0,u=new M(v),h.c[0]=0;;){if(g=t(u,n,0,1),o=i.plus(g.times(r)),1==o.comparedTo(e))break;i=r,r=o,d=h.plus(g.times(o=d)),h=o,n=u.minus(g.times(o=n)),u=o}return o=t(e.minus(i),r,0,1),h=h.plus(o.times(d)),i=i.plus(o.times(r)),h.s=d.s=b.s,a*=2,m=t(d,r,a,S).minus(b).abs().comparedTo(t(h,i,a,S).minus(b).abs())<1?[d,r]:[h,i],$=c,m},r.toNumber=function(){return+U(this)},r.toPrecision=function(e,t){return null!=e&&A(e,1,m),I(this,e,t,2)},r.toString=function(e){var t,i=this,r=i.s,s=i.e;return null===s?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=s<=x||s>=_?C(w(i.c),s):F(w(i.c),s,"0"):10===e?(i=j(new M(i),k+s+1,S),t=F(w(i.c),i.e,"0")):(A(e,2,O.length,"Base"),t=n(F(w(i.c),s,"0"),10,e,r,!0)),r<0&&i.c[0]&&(t="-"+t)),t},r.valueOf=r.toJSON=function(){return U(this)},r._isBigNumber=!0,null!=e&&M.set(e),M}function b(e){var t=0|e;return e>0||e===t?t:t-1}function w(e){for(var t,n,i=1,r=e.length,s=e[0]+"";il^n?1:-1;for(a=(c=r.length)<(l=s.length)?c:l,o=0;os[o]^n?1:-1;return c==l?0:c>l^n?1:-1}function A(e,t,n,i){if(en||e!==c(e))throw Error(l+(i||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function E(e){var t=e.c.length-1;return b(e.e/f)==t&&e.c[t]%2!=0}function C(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function F(e,t,n){var i,r;if(t<0){for(r=n+".";++t;r+=n);e=r+e}else if(i=e.length,++t>i){for(r=n,t-=i;--t;r+=n);e+=r}else t({get:n("0e02")(e),stat:n("526a")(e),put:n("bfac")(e),rm:n("3156")(e)})},9058:function(e,t,n){const i=n("451a"),r=n("0f5d"),s=n("be97");function o(e){return e&=511,e&&512-e}async function a(e,t){const n=o(t);n&&await e.next(n)}e.exports=e=>(e=e||{},e.highWaterMark=e.highWaterMark||16384,t=>async function*(){const n=s(t);let o,c,l,u;try{while(1){let t;try{const{done:e,value:i}=await n.next(512);if(e)return;t=i}catch(h){if("ERR_UNDER_READ"===h.code)return;throw h}const s=r.decode(t,e.filenameEncoding);if(!s)continue;if("gnu-long-path"===s.type){const{done:t,value:i}=await n.next(s.size);if(t)return;o=r.decodeLongPath(i,e.filenameEncoding),await a(n,s.size);continue}if("gnu-long-link-path"===s.type){const{done:t,value:i}=await n.next(s.size);if(t)return;c=r.decodeLongPath(i,e.filenameEncoding),await a(n,s.size);continue}if("pax-global-header"===s.type){const{done:t,value:i}=await n.next(s.size);if(t)return;l=r.decodePax(i,e.filenameEncoding),await a(n,s.size);continue}if("pax-header"===s.type){const{done:t,value:i}=await n.next(s.size);if(t)return;u=r.decodePax(i,e.filenameEncoding),l&&(u={...l,...u}),await a(n,s.size);continue}if(o&&(s.name=o,o=null),c&&(s.linkname=c,c=null),u&&(u.path&&(s.name=u.path),u.linkpath&&(s.linkname=u.linkpath),u.size&&(s.size=parseInt(u.size,10)),s.pax=u,u=null),!s.size||"directory"===s.type){yield{header:s,body:async function*(){}()};continue}let f=s.size;const d=i(),p=await n.nextLte(Math.min(f,e.highWaterMark));f-=p.value.length,f||d.resolve();const g=async function*(){try{yield p.value;while(f){const{done:e,value:t}=await n.nextLte(f);if(e)return void(f=0);f-=t.length,yield t}}finally{d.resolve()}}();if(yield{header:s,body:g},await d.promise,f)for await(const e of g);await a(n,s.size)}}finally{await n.return()}}())},"90a6":function(e,t,n){"use strict";const i=n("9878"),r=n("15e4");e.exports=i(e=>async(t={})=>{const n=await e.post("shutdown",{timeout:t.timeout,signal:t.signal,searchParams:r(t),headers:t.headers});await n.text()})},"90e3":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},9112:function(e,t,n){var i=n("83ab"),r=n("9bf2"),s=n("5c6c");e.exports=i?function(e,t,n){return r.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},9152:function(e,t){t.read=function(e,t,n,i,r){var s,o,a=8*r-i-1,c=(1<>1,u=-7,h=n?r-1:0,f=n?-1:1,d=e[t+h];for(h+=f,s=d&(1<<-u)-1,d>>=-u,u+=a;u>0;s=256*s+e[t+h],h+=f,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=i;u>0;o=256*o+e[t+h],h+=f,u-=8);if(0===s)s=1-l;else{if(s===c)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,i),s-=l}return(d?-1:1)*o*Math.pow(2,s-i)},t.write=function(e,t,n,i,r,s){var o,a,c,l=8*s-r-1,u=(1<>1,f=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:s-1,p=i?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),t+=o+h>=1?f/c:f*Math.pow(2,1-h),t*c>=2&&(o++,c/=2),o+h>=u?(a=0,o=u):o+h>=1?(a=(t*c-1)*Math.pow(2,r),o+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,r),o=0));r>=8;e[n+d]=255&a,d+=p,a/=256,r-=8);for(o=o<0;e[n+d]=255&o,d+=p,o/=256,l-=8);e[n+d-p]|=128*g}},"91d3":function(e,t,n){"use strict";const{AbortController:i,AbortSignal:r}="undefined"!==typeof self?self:"undefined"!==typeof window?window:void 0;e.exports=i,e.exports.AbortSignal=r,e.exports.default=i},"91f5":function(e,t,n){var i=n("95e9"),r=536870911,s=["int32","int64","uint32","uint64","sint32","sint64","bool","fixed64","sfixed64","double","fixed32","sfixed32","float"],o=function(e){var t={};while(e.length)switch(e[0]){case"[":case",":e.shift();var n=e.shift();if("("===n&&(n=e.shift(),e.shift()),"="!==e[0])throw new Error("Unexpected token in field options: "+e[0]);if(e.shift(),"]"===e[0])throw new Error("Unexpected ] in field option");t[n]=e.shift();break;case"]":return e.shift(),t;default:throw new Error("Unexpected token in field options: "+e[0])}throw new Error("No closing tag for field options")},a=function(e){var t={name:null,type:null,tag:-1,map:null,oneof:null,required:!1,repeated:!1,options:{}};while(e.length)switch(e[0]){case"=":e.shift(),t.tag=Number(e.shift());break;case"map":if(t.type="map",t.map={from:null,to:null},e.shift(),"<"!==e[0])throw new Error("Unexpected token in map type: "+e[0]);if(e.shift(),t.map.from=e.shift(),","!==e[0])throw new Error("Unexpected token in map type: "+e[0]);if(e.shift(),t.map.to=e.shift(),">"!==e[0])throw new Error("Unexpected token in map type: "+e[0]);e.shift(),t.name=e.shift();break;case"repeated":case"required":case"optional":var n=e.shift();t.required="required"===n,t.repeated="repeated"===n,t.type=e.shift(),t.name=e.shift();break;case"[":t.options=o(e);break;case";":if(null===t.name)throw new Error("Missing field name");if(null===t.type)throw new Error("Missing type in message field: "+t.name);if(-1===t.tag)throw new Error("Missing tag number in message field: "+t.name);return e.shift(),t;default:throw new Error("Unexpected token in message field: "+e[0])}throw new Error("No ; found for message field")},c=function(e){var t={enums:[],options:{},messages:[],fields:[],extends:[],extensions:null};while(e.length)switch(e[0]){case"map":case"repeated":case"optional":case"required":t.fields.push(a(e));break;case"enum":t.enums.push(g(e));break;case"message":t.messages.push(h(e));break;case"extensions":t.extensions=u(e);break;case"oneof":e.shift();var n=e.shift();if("{"!==e[0])throw new Error("Unexpected token in oneof: "+e[0]);e.shift();while("}"!==e[0]){e.unshift("optional");var i=a(e);i.oneof=n,t.fields.push(i)}e.shift();break;case"extend":t.extends.push(l(e));break;case";":e.shift();break;case"reserved":e.shift();while(";"!==e[0])e.shift();break;case"option":var r=m(e);if(void 0!==t.options[r.name])throw new Error("Duplicate option "+r.name);t.options[r.name]=r.value;break;default:e.unshift("optional"),t.fields.push(a(e))}return t},l=function(e){var t={name:e[1],message:h(e)};return t},u=function(e){e.shift();var t=Number(e.shift());if(isNaN(t))throw new Error("Invalid from in extensions definition");if("to"!==e.shift())throw new Error("Expected keyword 'to' in extensions definition");var n=e.shift();if("max"===n&&(n=r),n=Number(n),isNaN(n))throw new Error("Invalid to in extensions definition");if(";"!==e.shift())throw new Error("Missing ; in extensions definition");return{from:t,to:n}},h=function(e){e.shift();var t=1,n=[],i={name:e.shift(),options:{},enums:[],extends:[],messages:[],fields:[]};if("{"!==e[0])throw new Error("Expected { but found "+e[0]);e.shift();while(e.length){if("{"===e[0]?t++:"}"===e[0]&&t--,!t)return e.shift(),n=c(n),i.enums=n.enums,i.messages=n.messages,i.fields=n.fields,i.extends=n.extends,i.extensions=n.extensions,i.options=n.options,i;n.push(e.shift())}if(t)throw new Error("No closing tag for message")},f=function(e){e.shift();var t=e.shift();if(";"!==e[0])throw new Error("Expected ; but found "+e[0]);return e.shift(),t},d=function(e){if(e.shift(),"="!==e[0])throw new Error("Expected = but found "+e[0]);e.shift();var t=e.shift();switch(t){case'"proto2"':t=2;break;case'"proto3"':t=3;break;default:throw new Error("Expected protobuf syntax version but found "+t)}if(";"!==e[0])throw new Error("Expected ; but found "+e[0]);return e.shift(),t},p=function(e){if(e.length<4)throw new Error("Invalid enum value: "+e.slice(0,3).join(" "));if("="!==e[1])throw new Error("Expected = but found "+e[1]);if(";"!==e[3]&&"["!==e[3])throw new Error("Expected ; or [ but found "+e[1]);var t=e.shift();e.shift();var n={value:null,options:{}};return n.value=Number(e.shift()),"["===e[0]&&(n.options=o(e)),e.shift(),{name:t,val:n}},g=function(e){e.shift();var t={},n={name:e.shift(),values:{},options:{}};if("{"!==e[0])throw new Error("Expected { but found "+e[0]);e.shift();while(e.length){if("}"===e[0])return e.shift(),";"===e[0]&&e.shift(),n;if("option"!==e[0]){var i=p(e);n.values[i.name]=i.val}else t=m(e),n.options[t.name]=t.value}throw new Error("No closing tag for enum")},m=function(e){var t=null,n=null,i=function(e){return"true"===e||"false"!==e&&e.replace(/^"+|"+$/gm,"")};while(e.length){if(";"===e[0])return e.shift(),{name:t,value:n};switch(e[0]){case"option":e.shift();var r="("===e[0];if(r&&e.shift(),t=e.shift(),r){if(")"!==e[0])throw new Error("Expected ) but found "+e[0]);e.shift()}"."===e[0][0]&&(t+=e.shift());break;case"=":if(e.shift(),null===t)throw new Error("Expected key for option with value: "+e[0]);if(n=i(e.shift()),"optimize_for"===t&&!/^(SPEED|CODE_SIZE|LITE_RUNTIME)$/.test(n))throw new Error("Unexpected value for option optimize_for: "+n);"{"===n&&(n=v(e));break;default:throw new Error("Unexpected token in option: "+e[0])}}},v=function(e){var t=function(e){return"true"===e||"false"!==e&&e.replace(/^"+|"+$/gm,"")},n={};while(e.length){if("}"===e[0])return e.shift(),n;var i="("===e[0];i&&e.shift();var r=e.shift();if(i){if(")"!==e[0])throw new Error("Expected ) but found "+e[0]);e.shift()}var s=null;switch(e[0]){case":":if(void 0!==n[r])throw new Error("Duplicate option map key "+r);e.shift(),s=t(e.shift()),"{"===s&&(s=v(e)),n[r]=s,";"===e[0]&&e.shift();break;case"{":if(e.shift(),s=v(e),void 0===n[r]&&(n[r]=[]),!Array.isArray(n[r]))throw new Error("Duplicate option map key "+r);n[r].push(s);break;default:throw new Error("Unexpected token in option map: "+e[0])}}throw new Error("No closing tag for option map")},b=function(e){e.shift();var t=e.shift().replace(/^"+|"+$/gm,"");if(";"!==e[0])throw new Error("Unexpected token: "+e[0]+'. Expected ";"');return e.shift(),t},w=function(e){e.shift();var t={name:e.shift(),methods:[],options:{}};if("{"!==e[0])throw new Error("Expected { but found "+e[0]);e.shift();while(e.length){if("}"===e[0])return e.shift(),";"===e[0]&&e.shift(),t;switch(e[0]){case"option":var n=m(e);if(void 0!==t.options[n.name])throw new Error("Duplicate option "+n.name);t.options[n.name]=n.value;break;case"rpc":t.methods.push(y(e));break;default:throw new Error("Unexpected token in service: "+e[0])}}throw new Error("No closing tag for service")},y=function(e){e.shift();var t={name:e.shift(),input_type:null,output_type:null,client_streaming:!1,server_streaming:!1,options:{}};if("("!==e[0])throw new Error("Expected ( but found "+e[0]);if(e.shift(),"stream"===e[0]&&(e.shift(),t.client_streaming=!0),t.input_type=e.shift(),")"!==e[0])throw new Error("Expected ) but found "+e[0]);if(e.shift(),"returns"!==e[0])throw new Error("Expected returns but found "+e[0]);if(e.shift(),"("!==e[0])throw new Error("Expected ( but found "+e[0]);if(e.shift(),"stream"===e[0]&&(e.shift(),t.server_streaming=!0),t.output_type=e.shift(),")"!==e[0])throw new Error("Expected ) but found "+e[0]);if(e.shift(),";"===e[0])return e.shift(),t;if("{"!==e[0])throw new Error("Expected { but found "+e[0]);e.shift();while(e.length){if("}"===e[0])return e.shift(),";"===e[0]&&e.shift(),t;if("option"!==e[0])throw new Error("Unexpected token in rpc options: "+e[0]);var n=m(e);if(void 0!==t.options[n.name])throw new Error("Duplicate option "+n.name);t.options[n.name]=n.value}throw new Error("No closing tag for rpc")},A=function(e){for(var t=i(e.toString()),n=0;nt.extensions.to)throw new Error(t.name+" does not declare "+e.tag+" as an extension number");t.fields.push(e)}))}))})),o.messages.forEach((function(e){e.fields.forEach((function(t){var n,i,r,a;function c(e){return e.name===t.type}function l(e){return e.name===r}if(t.options&&"true"===t.options.packed&&-1===s.indexOf(t.type)){if(-1===t.type.indexOf(".")){if(e.enums&&e.enums.some(c))return}else{if(n=t.type.split("."),n.length>2)throw new Error("what is this?");if(i=n[0],r=n[1],o.messages.some((function(e){if(e.name===i)return a=e,e})),a&&a.enums&&a.enums.some(l))return}throw new Error("Fields of type "+t.type+' cannot be declared [packed=true]. Only repeated fields of primitive numeric types (types which use the varint, 32-bit, or 64-bit wire types) can be declared "packed". See https://developers.google.com/protocol-buffers/docs/encoding#optional')}}))})),o};e.exports=A},"921e":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("c449"),s=n("7766"),o=n("9878"),a=n("15e4");e.exports=o((e,t)=>{const o=async function*(t,n={}){Array.isArray(t)||(t=[t]);const o=await e.post("refs",{timeout:n.timeout,signal:n.signal,searchParams:a({arg:t.map(e=>""+(i.isBuffer(e)?new r(e):e)),...n}),headers:n.headers,transform:s});yield*o.ndjson()};return o.local=n("0ae1")(t),o})},9263:function(e,t,n){"use strict";var i=n("ad6d"),r=n("9f7f"),s=RegExp.prototype.exec,o=String.prototype.replace,a=s,c=function(){var e=/a/,t=/b*/g;return s.call(e,"a"),s.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),l=r.UNSUPPORTED_Y||r.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],h=c||u||l;h&&(a=function(e){var t,n,r,a,h=this,f=l&&h.sticky,d=i.call(h),p=h.source,g=0,m=e;return f&&(d=d.replace("y",""),-1===d.indexOf("g")&&(d+="g"),m=String(e).slice(h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==e[h.lastIndex-1])&&(p="(?: "+p+")",m=" "+m,g++),n=new RegExp("^(?:"+p+")",d)),u&&(n=new RegExp("^"+p+"$(?!\\s)",d)),c&&(t=h.lastIndex),r=s.call(f?n:h,m),f?r?(r.input=r.input.slice(g),r[0]=r[0].slice(g),r.index=h.lastIndex,h.lastIndex+=r[0].length):h.lastIndex=0:c&&r&&(h.lastIndex=h.global?r.index+r[0].length:t),u&&r&&r.length>1&&o.call(r[0],n,(function(){for(a=1;aasync(t={})=>{const{Strings:n}=await(await e.post("pubsub/ls",{timeout:t.timeout,signal:t.signal,searchParams:r(t),headers:t.headers})).json();return n||[]})},"94bf":function(e,t,n){"use strict";const i=n("c449"),r=n("5d98"),s=n("0e80");t=e.exports,t.codec=r.DAG_PB,t.defaultHashAlg=r.SHA2_256;const o=async(e,n)=>{const o={cidVersion:1,hashAlg:t.defaultHashAlg},a=Object.assign(o,n),c=await s(e,a.hashAlg),l=r.print[t.codec],u=new i(a.cidVersion,l,c);return u};t.cid=o},"94ca":function(e,t,n){var i=n("d039"),r=/#|\.prototype\./,s=function(e,t){var n=a[o(e)];return n==l||n!=c&&("function"==typeof t?i(t):!!t)},o=s.normalize=function(e){return String(e).replace(r,".").toLowerCase()},a=s.data={},c=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},"94e4":function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("c449"),s=n("2054"),o=n("675c"),a=n("5d98"),c=n("354e"),l=n(1),u=n("449d");function h(e={}){return{add:n("59bb")(e),addAll:n("74f2")(e),bitswap:n("f97d")(e),block:n("904e")(e),bootstrap:n("4923")(e),cat:n("de5e")(e),commands:n("a4b7")(e),config:n("af58")(e),dag:n("5ae5")(e),dht:n("ffe1")(e),diag:n("0150")(e),dns:n("e798")(e),files:n("f278")(e),get:n("3124")(e),getEndpointConfig:n("ac7d")(e),id:n("abe8")(e),key:n("5a90")(e),log:n("333d")(e),ls:n("c16b")(e),mount:n("423e")(e),name:n("05a4")(e),object:n("2f06")(e),pin:n("4d59")(e),ping:n("ac98")(e),pubsub:n("40d5")(e),refs:n("921e")(e),repo:n("ca35")(e),resolve:n("9a3b")(e),stats:n("ecf4")(e),stop:n("90a6")(e),shutdown:n("90a6")(e),swarm:n("546f")(e),version:n("5144")(e)}}Object.assign(h,{Buffer:i,CID:r,multiaddr:s,multibase:o,multicodec:a,multihash:c,globSource:l,urlSource:u}),e.exports=h},"956c":function(e,t,n){"use strict";function i(e){if("number"===typeof e){if(i.codes[e])return i.codes[e];throw new Error("no protocol with code: "+e)}if("string"===typeof e||e instanceof String){if(i.names[e])return i.names[e];throw new Error("no protocol with name: "+e)}throw new Error("invalid protocol id type: "+e)}const r=-1;function s(e,t,n,i,r){return{code:e,size:t,name:n,resolvable:Boolean(i),path:Boolean(r)}}i.lengthPrefixedVarSize=r,i.V=r,i.table=[[4,32,"ip4"],[6,16,"tcp"],[33,16,"dccp"],[41,128,"ip6"],[42,r,"ip6zone"],[53,r,"dns","resolvable"],[54,r,"dns4","resolvable"],[55,r,"dns6","resolvable"],[56,r,"dnsaddr","resolvable"],[132,16,"sctp"],[273,16,"udp"],[275,0,"p2p-webrtc-star"],[276,0,"p2p-webrtc-direct"],[277,0,"p2p-stardust"],[290,0,"p2p-circuit"],[301,0,"udt"],[302,0,"utp"],[400,r,"unix",!1,"path"],[421,r,"ipfs"],[421,r,"p2p"],[443,0,"https"],[444,96,"onion"],[445,296,"onion3"],[446,r,"garlic64"],[460,0,"quic"],[477,0,"ws"],[478,0,"wss"],[479,0,"p2p-websocket-star"],[480,0,"http"],[777,r,"memory"]],i.names={},i.codes={},i.table.map(e=>{const t=s.apply(null,e);i.codes[t.code]=t,i.names[t.name]=t}),i.object=s,e.exports=i},"95e9":function(e,t){e.exports=function(e){var t=function(e){var t=e.indexOf("//");return t>-1?e.slice(0,t):e},n=function(){var e=!1;return function(t){return"/*"===t?(e=!0,!1):"*/"===t?(e=!1,!1):!e}},i=function(e){return e.trim()};return e.replace(/([;,{}()=:[\]<>]|\/\*|\*\/)/g," $1 ").split(/\n/).map(i).filter(Boolean).map(t).map(i).filter(Boolean).join("\n").split(/\s+|\n+/gm).filter(n())}},"96a8":function(e,t,n){"use strict";var i=n("08df");const{Buffer:r}=n("b639");var s=n("d0f1"),o=function(e){if(!e)return null;var t={};return Object.keys(e).forEach((function(n){t[n]=e[n].value})),t};e.exports=function(e,t){if(t||(t={}),!e)throw new Error("Pass in a .proto string or a protobuf-schema parsed object");var n="object"!==typeof e||r.isBuffer(e)?i.parse(e):e,a=function(){var e=this;s(n,t.encodings||{}).forEach((function(t){e[t.name]=o(t.values)||t}))};return a.prototype.toString=function(){return i.stringify(n)},a.prototype.toJSON=function(){return n},new a}},"96cf":function(e,t,n){var i=function(e){"use strict";var t,n=Object.prototype,i=n.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},s=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(L){c=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var r=t&&t.prototype instanceof m?t:m,s=Object.create(r.prototype),o=new B(i||[]);return s._invoke=k(e,n,o),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(L){return{type:"throw",arg:L}}}e.wrap=l;var h="suspendedStart",f="suspendedYield",d="executing",p="completed",g={};function m(){}function v(){}function b(){}var w={};w[s]=function(){return this};var y=Object.getPrototypeOf,A=y&&y(y($([])));A&&A!==n&&i.call(A,s)&&(w=A);var E=b.prototype=m.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function F(e,t){function n(r,s,o,a){var c=u(e[r],e,s);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"===typeof h&&i.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,o,a)}),(function(e){n("throw",e,o,a)})):t.resolve(h).then((function(e){l.value=e,o(l)}),(function(e){return n("throw",e,o,a)}))}a(c.arg)}var r;function s(e,i){function s(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(s,s):s()}this._invoke=s}function k(e,t,n){var i=h;return function(r,s){if(i===d)throw new Error("Generator is already running");if(i===p){if("throw"===r)throw s;return D()}n.method=r,n.arg=s;while(1){var o=n.delegate;if(o){var a=S(o,n);if(a){if(a===g)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var c=u(e,t,n);if("normal"===c.type){if(i=n.done?p:f,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function S(e,n){var i=e.iterator[n.method];if(i===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=u(i,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var s=r.arg;return s?s.done?(n[e.resultName]=s.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function $(e){if(e){var n=e[s];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){while(++r=0;--s){var o=this.tryEntries[s],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;_(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:$(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=i}catch(r){Function("r","regeneratorRuntime = r")(i)}},9878:function(e,t,n){"use strict";const i=n("0abd"),r=e=>t=>e(new i(t),t);e.exports=r},9975:function(e,t,n){"use strict";const i=async e=>{let t;for await(const n of e)t=n;return t};e.exports=i},"9a3b":function(e,t,n){"use strict";const i=n("9878"),r=n("15e4");e.exports=i(e=>async(t,n={})=>{const i=await e.post("resolve",{timeout:n.timeout,signal:n.signal,searchParams:r({arg:t,...n}),headers:n.headers}),{Path:s}=await i.json();return s})},"9b35":function(e,t,n){"use strict";const i=n("7766"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t={})=>{const n=await e.post("key/list",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers}),r=await n.json();return(r.Keys||[]).map(e=>i(e))})},"9bd8":function(e,t,n){"use strict";const i=n("c449"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t,n={})=>{const r=await e.post("bitswap/unwant",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:"string"===typeof t?t:new i(t).toString(),...n}),headers:n.headers});return r.json()})},"9bdd":function(e,t,n){var i=n("825a");e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(o){var s=e["return"];throw void 0!==s&&i(s.call(e)),o}}},"9bf2":function(e,t,n){var i=n("83ab"),r=n("0cfb"),s=n("825a"),o=n("c04e"),a=Object.defineProperty;t.f=i?a:function(e,t,n){if(s(e),t=o(t,!0),s(n),r)try{return a(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9c3b":function(e,t,n){"use strict";const{Buffer:i}=n("b639");var r=n("cfce").defined,s=n("2612");function o(e,t,n,o,a){for(var c=Object.keys(o),l=n.length,u={},h=0;h-1){if(b)throw new Error("only one of the properties defined in oneof "+w+" can be set");b=!0}}for(v=0;v{const t=new Array(4);for(let n=0;n<4;n++)t[n]=255&e,e>>=8;return i.from(t)};e.exports={fromNumberTo32BitBuf:r}},"9ed3":function(e,t,n){"use strict";var i=n("ae93").IteratorPrototype,r=n("7c73"),s=n("5c6c"),o=n("d44e"),a=n("3f8c"),c=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=r(i,{next:s(1,n)}),o(e,l,!1,!0),a[l]=c,e}},"9ef7":function(e,t,n){"use strict";const i=n("9878"),r=n("15e4");e.exports=i(e=>async function(t,n,i={}){const s=await e.post("files/chmod",{timeout:i.timeout,signal:i.signal,searchParams:r({arg:t,mode:n,...i}),headers:i.headers});await s.text()})},"9f7f":function(e,t,n){"use strict";var i=n("d039");function r(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=i((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=i((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a127:function(e,t,n){"use strict";function i(e){const t=e[Symbol.asyncIterator]?e[Symbol.asyncIterator]():e[Symbol.iterator](),n=[],i={peek:()=>t.next(),push:e=>{n.push(e)},next:()=>n.length?{done:!1,value:n.shift()}:t.next()};return e[Symbol.asyncIterator]?i[Symbol.asyncIterator]=()=>i:i[Symbol.iterator]=()=>i,i}e.exports=i},a1a8:function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("1175"),s=n("956c"),o=n("c449"),a=n("40ff"),c=n("2612");function l(e,t){return t instanceof i?l.toString(e,t):l.toBuffer(e,t)}function u(e){if(!r.isIP(e))throw new Error("invalid ip address");return r.toBuffer(e)}function h(e){const t=r.toString(e);if(!t||!r.isIP(t))throw new Error("invalid ip address");return t}function f(e){const t=i.alloc(2);return t.writeUInt16BE(e,0),t}function d(e){return e.readUInt16BE(0)}function p(e){const t=i.from(e),n=i.from(c.encode(t.length));return i.concat([n,t])}function g(e){const t=c.decode(e);if(e=e.slice(c.decode.bytes),e.length!==t)throw new Error("inconsistent lengths");return e.toString()}function m(e){const t=new o(e).multihash,n=i.from(c.encode(t.length));return i.concat([n,t])}function v(e){const t=c.decode(e),n=e.slice(c.decode.bytes);if(n.length!==t)throw new Error("inconsistent lengths");return a.encode("base58btc",n).toString().slice(1)}function b(e){const t=e.split(":");if(2!==t.length)throw new Error("failed to parse onion addr: "+t+" does not contain a port number");if(16!==t[0].length)throw new Error("failed to parse onion addr: "+t[0]+" not a Tor onion address.");const n=a.decode("b"+t[0]),r=parseInt(t[1],10);if(r<1||r>65536)throw new Error("Port number is not in range(1, 65536)");const s=f(r);return i.concat([n,s])}function w(e){const t=e.split(":");if(2!==t.length)throw new Error("failed to parse onion addr: "+t+" does not contain a port number");if(56!==t[0].length)throw new Error("failed to parse onion addr: "+t[0]+" not a Tor onion3 address.");const n=a.decode("b"+t[0]),r=parseInt(t[1],10);if(r<1||r>65536)throw new Error("Port number is not in range(1, 65536)");const s=f(r);return i.concat([n,s])}function y(e){const t=e.slice(0,e.length-2),n=e.slice(e.length-2),i=a.encode("base32",t).toString().slice(1),r=d(n);return i+":"+r}e.exports=l,l.toString=function(e,t){switch(e=s(e),e.code){case 4:case 41:return h(t);case 6:case 273:case 33:case 132:return d(t);case 53:case 54:case 55:case 56:case 400:case 777:return g(t);case 421:return v(t);case 444:return y(t);case 445:return y(t);default:return t.toString("hex")}},l.toBuffer=function(e,t){switch(e=s(e),e.code){case 4:return u(t);case 41:return u(t);case 6:case 273:case 33:case 132:return f(parseInt(t,10));case 53:case 54:case 55:case 56:case 400:case 777:return p(t);case 421:return m(t);case 444:return b(t);case 445:return w(t);default:return i.from(t,"hex")}}},a262:function(e,t,n){"use strict";class i{constructor(e,t,n,i){this.name=e,this.code=t,this.alphabet=i,n&&i&&(this.engine=n(i))}encode(e){return this.engine.encode(e)}decode(e){return this.engine.decode(e)}isImplemented(){return this.engine}}e.exports=i},a36d:function(e,t,n){"use strict";e.exports={SendingQuery:0,PeerResponse:1,FinalPeer:2,QueryError:3,Provider:4,Value:5,AddingPeer:6,DialingPeer:7}},a390:function(e,t,n){"use strict";const{Buffer:i}=n("b639");class r{constructor(e,t,n,r){this.name=e,this.code=t,this.codeBuf=i.from(this.code),this.alphabet=r,this.engine=n(r)}encode(e){return this.engine.encode(e)}decode(e){for(const t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.engine.decode(e)}}e.exports=r},a3b6:function(e,t,n){"use strict";const{BigNumber:i}=n("901e"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t={})=>{const n=await e.post("repo/stat",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers}),r=await n.json();return{numObjects:new i(r.NumObjects),repoSize:new i(r.RepoSize),repoPath:r.RepoPath,version:r.Version,storageMax:new i(r.StorageMax)}})},a41e:function(e,t,n){"use strict";const i=n("9878"),r=n("15e4");e.exports=i(e=>async function*(t,n={}){const i=await e.post("name/resolve",{timeout:n.timeout,signal:n.signal,searchParams:r({arg:t,stream:!0,...n}),headers:n.headers});for await(const e of i.ndjson())yield e.Path})},a4b7:function(e,t,n){"use strict";const i=n("9878"),r=n("15e4");e.exports=i(e=>async(t={})=>{const n=await e.post("commands",{timeout:t.timeout,signal:t.signal,searchParams:r(t),headers:t.headers});return n.json()})},a5e1:function(e,t,n){"use strict";const i=n("2054"),r=n("9878"),s=n("15e4");e.exports=r(e=>async(t,n={})=>{t&&"object"===typeof t&&!i.isMultiaddr(t)&&(n=t,t=null);const r=await e.post("bootstrap/add",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:t,...n}),headers:n.headers});return r.json()})},a691:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},a79d:function(e,t,n){"use strict";var i=n("23e7"),r=n("c430"),s=n("fea9"),o=n("d039"),a=n("d066"),c=n("4840"),l=n("cdf9"),u=n("6eeb"),h=!!s&&o((function(){s.prototype["finally"].call({then:function(){}},(function(){}))}));i({target:"Promise",proto:!0,real:!0,forced:h},{finally:function(e){var t=c(this,a("Promise")),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),r||"function"!=typeof s||s.prototype["finally"]||u(s.prototype,"finally",a("Promise").prototype["finally"])},aa4d:function(e,t,n){"use strict";const i=n("9878"),r=n("15e4");e.exports=i(e=>async(t={})=>{const n=await(await e.post("repo/version",{timeout:t.timeout,signal:t.signal,searchParams:r(t),headers:t.headers})).json();return n.Version})},ab3a:function(e,t,n){"use strict";const i=n("42a7"),{Buffer:r}=n("b639"),s=n("a390"),o=n("1bc1"),a=()=>({encode:e=>r.from(e).toString(),decode:e=>r.from(e)}),c=[["identity","\0",a,""],["base2","0",o(1),"01"],["base8","7",o(3),"01234567"],["base10","9",i,"0123456789"],["base16","f",o(4),"0123456789abcdef"],["base16upper","F",o(4),"0123456789ABCDEF"],["base32hex","v",o(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",o(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",o(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",o(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",o(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",i,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",i,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",i,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",i,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],l=c.reduce((e,t)=>(e[t[0]]=new s(t[0],t[1],t[2],t[3]),e),{}),u=c.reduce((e,t)=>(e[t[1]]=l[t[0]],e),{});e.exports={names:l,codes:u}},abb1:function(e,t,n){"use strict";const{Blob:i}=n("4196");function r(e){return ArrayBuffer.isView(e)||e instanceof ArrayBuffer}function s(e){return"undefined"!==typeof i&&e instanceof i}function o(e){return"object"===typeof e&&(e.path||e.content)}e.exports={isBytes:r,isBlob:s,isFileObject:o}},abe8:function(e,t,n){"use strict";const i=n("7766"),r=n("2054"),s=n("9878"),o=n("15e4");e.exports=s(e=>async(t={})=>{const n=await e.post("id",{timeout:t.timeout,signal:t.signal,searchParams:o(t),headers:t.headers}),s=await n.json(),a=i(s);return a.addresses&&(a.addresses=a.addresses.map(e=>r(e))),a})},ac1f:function(e,t,n){"use strict";var i=n("23e7"),r=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ac7d:function(e,t,n){"use strict";const i=n("9878");e.exports=i(e=>()=>{const t=new URL(e.opts.base);return{host:t.hostname,port:t.port,protocol:t.protocol,pathname:t.pathname,"api-path":t.pathname}})},ac7f:function(e,t,n){"use strict";const i=n("9878"),r=n("15e4");e.exports=i(e=>async(t={})=>{const n=await e.post("diag/net",{timeout:t.timeout,signal:t.signal,searchParams:r(t),headers:t.headers});return n.json()})},ac98:function(e,t,n){"use strict";const i=n("7766"),r=n("9878"),s=n("15e4");e.exports=r(e=>async function*(t,n={}){const r=await e.post("ping",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:""+t,...n}),headers:n.headers,transform:i});yield*r.ndjson()})},ad3d:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return E}));var i=n("ecee"),r="undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{};function s(e,t){return t={exports:{}},e(t,t.exports),t.exports}var o=s((function(e){(function(t){var n=function(e,t,i){if(!l(t)||h(t)||f(t)||d(t)||c(t))return t;var r,s=0,o=0;if(u(t))for(r=[],o=t.length;s=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n},h=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=(t.children||[]).map(g.bind(null,e)),s=Object.keys(t.attributes||{}).reduce((function(e,n){var i=t.attributes[n];switch(n){case"class":e["class"]=d(i);break;case"style":e["style"]=f(i);break;default:e.attrs[n]=i}return e}),{class:{},style:{},attrs:{}}),o=i.class,a=void 0===o?{}:o,c=i.style,h=void 0===c?{}:c,m=i.attrs,v=void 0===m?{}:m,b=u(i,["class","style","attrs"]);return"string"===typeof t?t:e(t.tag,l({class:p(s.class,a),style:l({},s.style,h),attrs:l({},s.attrs,v)},b,{props:n}),r)}var m=!1;try{m=!0}catch(C){}function v(){var e;!m&&console&&"function"===typeof console.error&&(e=console).error.apply(e,arguments)}function b(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?c({},e,t):{}}function w(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip-horizontal":"horizontal"===e.flip||"both"===e.flip,"fa-flip-vertical":"vertical"===e.flip||"both"===e.flip},c(t,"fa-"+e.size,null!==e.size),c(t,"fa-rotate-"+e.rotation,null!==e.rotation),c(t,"fa-pull-"+e.pull,null!==e.pull),c(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(n).map((function(e){return n[e]?e:null})).filter((function(e){return e}))}function y(e,t){var n=0===(e||"").length?[]:[e];return n.concat(t).join(" ")}function A(e){return null===e?null:"object"===("undefined"===typeof e?"undefined":a(e))&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"===typeof e?{prefix:"fas",iconName:e}:void 0}var E={name:"FontAwesomeIcon",functional:!0,props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:String,default:null,validator:function(e){return["horizontal","vertical","both"].indexOf(e)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(e){return["right","left"].indexOf(e)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(e){return[90,180,270].indexOf(parseInt(e,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(e){return["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(e)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1}},render:function(e,t){var n=t.props,r=n.icon,s=n.mask,o=n.symbol,a=n.title,c=A(r),u=b("classes",w(n)),h=b("transform","string"===typeof n.transform?i["d"].transform(n.transform):n.transform),f=b("mask",A(s)),d=Object(i["b"])(c,l({},u,h,f,{symbol:o,title:a}));if(!d)return v("Could not find one or more icon(s)",c,f);var p=d.abstract,m=g.bind(null,e);return m(p[0],{},t.data)}};Boolean,Boolean}).call(this,n("c8ba"))},ad6d:function(e,t,n){"use strict";var i=n("825a");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},adf6:function(e,t,n){"use strict";const i=n("0eff"),r=n("94bf"),s=async(e,t={})=>{const n=await r.cid(e.serialize(),t);return new i(t.name||"",e.size,n)};e.exports=s},ae93:function(e,t,n){"use strict";var i,r,s,o=n("e163"),a=n("9112"),c=n("5135"),l=n("b622"),u=n("c430"),h=l("iterator"),f=!1,d=function(){return this};[].keys&&(s=[].keys(),"next"in s?(r=o(o(s)),r!==Object.prototype&&(i=r)):f=!0),void 0==i&&(i={}),u||c(i,h)||a(i,h,d),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:f}},aef6:function(e,t,n){"use strict";const{Buffer:i}=n("b639"),r=n("c449"),s=n("ec12");class o{constructor(e,t){if(!e||!ArrayBuffer.isView(e))throw new Error("first argument must be a buffer or typed array");if(i.isBuffer(e)||(e=i.from(e.buffer,e.byteOffset,e.byteLength)),!t||!r.isCID(t))throw new Error("second argument must be a CID");this._data=e,this._cid=t}get data(){return this._data}set data(e){throw new Error("Tried to change an immutable block")}get cid(){return this._cid}set cid(e){throw new Error("Tried to change an immutable block")}}e.exports=s(o,{className:"Block",symbolName:"@ipld/js-ipld-block/block"})},af3a:function(e,t){e.exports=o;var n=128,i=127,r=~i,s=Math.pow(2,31);function o(e,t,i){t=t||[],i=i||0;var a=i;while(e>=s)t[i++]=255&e|n,e/=128;while(e&r)t[i++]=255&e|n,e>>>=7;return t[i]=0|e,o.bytes=i-a+1,t}},af58:function(e,t,n){"use strict";e.exports=e=>({getAll:n("2c76")(e),get:n("bbb1")(e),set:n("3eb9")(e),replace:n("2b68")(e),profiles:n("f382")(e)})},b041:function(e,t,n){"use strict";var i=n("00ee"),r=n("f5df");e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},b378:function(e,t){ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/anchor","ace/keyboard/hash_handler","ace/tokenizer","ace/lib/dom","ace/editor"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,s=e("./lib/lang"),o=e("./range").Range,a=e("./anchor").Anchor,c=e("./keyboard/hash_handler").HashHandler,l=e("./tokenizer").Tokenizer,u=o.comparePoints,h=function(){this.snippetMap={},this.snippetNameMap={}};(function(){i.implement(this,r),this.getTokenizer=function(){function e(e,t,n){return e=e.substr(1),/^\d+$/.test(e)&&!n.inFormatString?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}return h.$tokenizer=new l({start:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectIf?(n[0].expectIf=!1,n[0].elseBranch=n[0],[n[0]]):":"}},{regex:/\\./,onMatch:function(e,t,n){var i=e[1];return"}"==i&&n.length||-1!="`$\\".indexOf(i)?e=i:n.inFormatString&&("n"==i||"t"==i?e="\n":-1!="ulULE".indexOf(i)&&(e={changeCase:i,local:i>"a"})),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,n,i){var r=e(t.substr(1),n,i);return i.unshift(r[0]),r},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,n){n[0].choices=e.slice(1,-1).split(",")},next:"start"},{regex:"/("+t("/")+"+)/(?:("+t("/")+"*)/)(\\w*):?",onMatch:function(e,t,n){var i=n[0];return i.fmtString=e,e=this.splitRegex.exec(e),i.guard=e[1],i.fmt=e[2],i.flag=e[3],""},next:"start"},{regex:"`"+t("`")+"*`",onMatch:function(e,t,n){return n[0].code=e.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(e,t,n){n[0]&&(n[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+t("/")+"+)/",token:"regex"},{regex:"",onMatch:function(e,t,n){n.inFormatString=!0},next:"start"}]}),h.prototype.getTokenizer=function(){return h.$tokenizer},h.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},this.$getDefaultValue=function(e,t){if(/^[A-Z]\d+$/.test(t)){var n=t.substr(1);return(this.variables[t[0]+"__"]||{})[n]}if(/^\d+$/.test(t))return(this.variables.__||{})[t];if(t=t.replace(/^TM_/,""),e){var i=e.session;switch(t){case"CURRENT_WORD":var r=i.getWordRange();case"SELECTION":case"SELECTED_TEXT":return i.getTextRange(r);case"CURRENT_LINE":return i.getLine(e.getCursorPosition().row);case"PREV_LINE":return i.getLine(e.getCursorPosition().row-1);case"LINE_INDEX":return e.getCursorPosition().column;case"LINE_NUMBER":return e.getCursorPosition().row+1;case"SOFT_TABS":return i.getUseSoftTabs()?"YES":"NO";case"TAB_SIZE":return i.getTabSize();case"FILENAME":case"FILEPATH":return"";case"FULLNAME":return"Ace"}}},this.variables={},this.getVariableValue=function(e,t){return this.variables.hasOwnProperty(t)?this.variables[t](e,t)||"":this.$getDefaultValue(e,t)||""},this.tmStrFormat=function(e,t,n){var i=t.flag||"",r=t.guard;r=new RegExp(r,i.replace(/[^gi]/,""));var s=this.tokenizeTmSnippet(t.fmt,"formatString"),o=this,a=e.replace(r,(function(){o.variables.__=arguments;for(var e=o.resolveVariables(s,n),t="E",i=0;i1?(b=t[t.length-1].length,v+=t.length-1):b+=e.length,w+=e}else e.start?e.end={row:v,column:b}:e.start={row:v,column:b}}));var y=e.getSelectionRange(),A=e.session.replace(y,w),E=new f(e),C=e.inVirtualSelectionMode&&e.selection.index;E.addTabstops(a,y.start,A,C)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection((function(){n.insertSnippetForSelection(e,t)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if(t=t.split("/").pop(),"html"===t||"php"===t){"php"!==t||e.session.$mode.inlinePhp||(t="html");var n=e.getCursorPosition(),i=e.session.getState(n.row);"object"===typeof i&&(i=i[0]),i.substring&&("js-"==i.substring(0,3)?t="javascript":"css-"==i.substring(0,4)?t="css":"php-"==i.substring(0,4)&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],i=this.snippetMap;return i[t]&&i[t].includeScopes&&n.push.apply(n,i[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,i=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return i&&e.tabstopManager&&e.tabstopManager.tabNext(),i},this.expandSnippetForSelection=function(e,t){var n,i=e.getCursorPosition(),r=e.session.getLine(i.row),s=r.substring(0,i.column),o=r.substr(i.column),a=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=a[e];return t&&(n=this.findMatchingSnippet(t,s,o)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(i.row,i.column-n.replaceBefore.length,i.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(e,t,n){for(var i=e.length;i--;){var r=e[i];if((!r.startRe||r.startRe.test(t))&&((!r.endRe||r.endRe.test(n))&&(r.startRe||r.endRe)))return r.matchBefore=r.startRe?r.startRe.exec(t):[""],r.matchAfter=r.endRe?r.endRe.exec(n):[""],r.replaceBefore=r.triggerRe?r.triggerRe.exec(t)[0]:"",r.replaceAfter=r.endTriggerRe?r.endTriggerRe.exec(n)[0]:"",r}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){var n=this.snippetMap,i=this.snippetNameMap,r=this;function o(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function a(e,t,n){return e=o(e),t=o(t),n?(e=t+e,e&&"$"!=e[e.length-1]&&(e+="$")):(e+=t,e&&"^"!=e[0]&&(e="^"+e)),new RegExp(e)}function c(e){e.scope||(e.scope=t||"_"),t=e.scope,n[t]||(n[t]=[],i[t]={});var o=i[t];if(e.name){var c=o[e.name];c&&r.unregister(c),o[e.name]=e}n[t].push(e),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=s.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=a(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger,"",!0),e.endRe=a(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger,"",!0))}e||(e=[]),e&&e.content?c(e):Array.isArray(e)&&e.forEach(c),this._signal("registerSnippets",{scope:t})},this.unregister=function(e,t){var n=this.snippetMap,i=this.snippetNameMap;function r(e){var r=i[e.scope||t];if(r&&r[e.name]){delete r[e.name];var s=n[e.scope||t],o=s&&s.indexOf(e);o>=0&&s.splice(o,1)}}e.content?r(e):Array.isArray(e)&&e.forEach(r)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");var t,n=[],i={},r=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;while(t=r.exec(e)){if(t[1])try{i=JSON.parse(t[1]),n.push(i)}catch(c){}if(t[4])i.content=t[4].replace(/^\t/gm,""),n.push(i),i={};else{var s=t[2],o=t[3];if("regex"==s){var a=/\/((?:[^\/\\]|\\.)*)|$/g;i.guard=a.exec(o)[1],i.trigger=a.exec(o)[1],i.endTrigger=a.exec(o)[1],i.endGuard=a.exec(o)[1]}else"snippet"==s?(i.tabTrigger=o.match(/^\S*/)[0],i.name||(i.name=o)):i[s]=o}}return n},this.getSnippetByName=function(e,t){var n,i=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var r=i[t];return r&&(n=r[e]),!!n}),this),n}}).call(h.prototype);var f=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){var t="r"==e.action[0],n=e.start,i=e.end,r=n.row,s=i.row,o=s-r,a=i.column-n.column;if(t&&(o=-o,a=-a),!this.$inChange&&t){var c=this.selectedTabstop,l=c&&!c.some((function(e){return u(e.start,n)<=0&&u(e.end,i)>=0}));if(l)return this.detach()}for(var h=this.ranges,f=0;f0?(this.removeRange(d),f--):(d.start.row==r&&d.start.column>n.column&&(d.start.column+=a),d.end.row==r&&d.end.column>=n.column&&(d.end.column+=a),d.start.row>=r&&(d.start.row+=o),d.end.row>=r&&(d.end.row+=o),u(d.start,d.end)>0&&this.removeRange(d)))}h.length||this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges){this.$inChange=!0;for(var n=this.editor.session,i=n.getTextRange(e.firstNonLinked),r=e.length;r--;){var s=e[r];if(s.linked){var o=t.snippetManager.tmStrFormat(i,s.original);n.replace(s,o)}}this.$inChange=!1}},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),i=this.ranges.length;i--;)if(!this.ranges[i].linked){var r=this.ranges[i].contains(e.row,e.column),s=n||this.ranges[i].contains(t.row,t.column);if(r&&s)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);n=Math.min(Math.max(n,1),t),n==t&&(n=0),this.selectTabstop(n),0===n&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,t=this.tabstops[this.index],t&&t.length){if(this.selectedTabstop=t,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(t.firstNonLinked);else{var n=this.editor.multiSelect;n.toSingleRange(t.firstNonLinked.clone());for(var i=t.length;i--;)t.hasLinkedRanges&&t[i].linked||n.addRange(t[i].clone(),!0);n.ranges[0]&&n.addRange(n.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(e,t,n){if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var i=o.fromPoints(n,n);g(i.start,t),g(i.end,t),e[0]=[i],e[0].index=0}var r=this.index,s=[r+1,0],a=this.ranges;e.forEach((function(e,n){for(var i=this.$openTabstops[n]||e,r=e.length;r--;){var c=e[r],l=o.fromPoints(c.start,c.end||c.start);p(l.start,t),p(l.end,t),l.original=c,l.tabstop=i,a.push(l),i!=e?i.unshift(l):i[r]=l,c.fmtString?(l.linked=!0,i.hasLinkedRanges=!0):i.firstNonLinked||(i.firstNonLinked=l)}i.firstNonLinked||(i.hasLinkedRanges=!1),i===e&&(s.push(i),this.$openTabstops[n]=i),this.addTabstopMarkers(i)}),this),s.length>2&&(this.tabstops.length&&s.push(s.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,s))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))}))},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},this.removeRange=function(e){var t=e.tabstop.indexOf(e);e.tabstop.splice(t,1),t=this.ranges.indexOf(e),this.ranges.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(t=this.tabstops.indexOf(e.tabstop),-1!=t&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new c,this.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||e.tabstopManager.tabNext(1)},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1)},Esc:function(e){e.tabstopManager.detach()},Return:function(e){return!1}})}).call(f.prototype);var d={};d.onChange=a.prototype.onChange,d.setPosition=function(e,t){this.pos.row=e,this.pos.column=t},d.update=function(e,t,n){this.$insertRight=n,this.pos=e,this.onChange(t)};var p=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},g=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),t.snippetManager=new h;var m=e("./editor").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(m.prototype)})),ace.define("ace/ext/emmet",["require","exports","module","ace/keyboard/hash_handler","ace/editor","ace/snippets","ace/range","resources","resources","tabStops","resources","utils","actions","ace/config","ace/config"],(function(e,t,n){"use strict";var i,r,s=e("ace/keyboard/hash_handler").HashHandler,o=e("ace/editor").Editor,a=e("ace/snippets").snippetManager,c=e("ace/range").Range;function l(){}l.prototype={setupContext:function(e){this.ace=e,this.indentation=e.session.getTabString(),i||(i=window.emmet);var t=i.resources||i.require("resources");t.setVariable("indentation",this.indentation),this.$syntax=null,this.$syntax=this.getSyntax()},getSelectionRange:function(){var e=this.ace.getSelectionRange(),t=this.ace.session.doc;return{start:t.positionToIndex(e.start),end:t.positionToIndex(e.end)}},createSelection:function(e,t){var n=this.ace.session.doc;this.ace.selection.setRange({start:n.indexToPosition(e),end:n.indexToPosition(t)})},getCurrentLineRange:function(){var e=this.ace,t=e.getCursorPosition().row,n=e.session.getLine(t).length,i=e.session.doc.positionToIndex({row:t,column:0});return{start:i,end:i+n}},getCaretPos:function(){var e=this.ace.getCursorPosition();return this.ace.session.doc.positionToIndex(e)},setCaretPos:function(e){var t=this.ace.session.doc.indexToPosition(e);this.ace.selection.moveToPosition(t)},getCurrentLine:function(){var e=this.ace.getCursorPosition().row;return this.ace.session.getLine(e)},replaceContent:function(e,t,n,i){null==n&&(n=null==t?this.getContent().length:t),null==t&&(t=0);var r=this.ace,s=r.session.doc,o=c.fromPoints(s.indexToPosition(t),s.indexToPosition(n));r.session.remove(o),o.end=o.start,e=this.$updateTabstops(e),a.insertSnippet(r,e)},getContent:function(){return this.ace.getValue()},getSyntax:function(){if(this.$syntax)return this.$syntax;var e=this.ace.session.$modeId.split("/").pop();if("html"==e||"php"==e){var t=this.ace.getCursorPosition(),n=this.ace.session.getState(t.row);"string"!=typeof n&&(n=n[0]),n&&(n=n.split("-"),n.length>1?e=n[0]:"php"==e&&(e="html"))}return e},getProfileName:function(){var e=i.resources||i.require("resources");switch(this.getSyntax()){case"css":return"css";case"xml":case"xsl":return"xml";case"html":var t=e.getVariable("profile");return t||(t=-1!=this.ace.session.getLines(0,2).join("").search(/]+XHTML/i)?"xhtml":"html"),t;default:var n=this.ace.session.$mode;return n.emmetConfig&&n.emmetConfig.profile||"xhtml"}},prompt:function(e){return prompt(e)},getSelection:function(){return this.ace.session.getTextRange()},getFilePath:function(){return""},$updateTabstops:function(e){var t=1e3,n=0,r=null,s=i.tabStops||i.require("tabStops"),o=i.resources||i.require("resources"),a=o.getVocabulary("user"),c={tabstop:function(e){var i=parseInt(e.group,10),o=0===i;o?i=++n:i+=t;var a=e.placeholder;a&&(a=s.processText(a,c));var l="${"+i+(a?":"+a:"")+"}";return o&&(r=[e.start,l]),l},escape:function(e){return"$"==e?"\\$":"\\"==e?"\\\\":e}};if(e=s.processText(e,c),a.variables["insert_final_tabstop"]&&!/\$\{0\}$/.test(e))e+="${0}";else if(r){var l=i.utils?i.utils.common:i.require("utils");e=l.replaceSubstring(e,"${0}",r[0],r[1])}return e}};var u={expand_abbreviation:{mac:"ctrl+alt+e",win:"alt+e"},match_pair_outward:{mac:"ctrl+d",win:"ctrl+,"},match_pair_inward:{mac:"ctrl+j",win:"ctrl+shift+0"},matching_pair:{mac:"ctrl+alt+j",win:"alt+j"},next_edit_point:"alt+right",prev_edit_point:"alt+left",toggle_comment:{mac:"command+/",win:"ctrl+/"},split_join_tag:{mac:"shift+command+'",win:"shift+ctrl+`"},remove_tag:{mac:"command+'",win:"shift+ctrl+;"},evaluate_math_expression:{mac:"shift+command+y",win:"shift+ctrl+y"},increment_number_by_1:"ctrl+up",decrement_number_by_1:"ctrl+down",increment_number_by_01:"alt+up",decrement_number_by_01:"alt+down",increment_number_by_10:{mac:"alt+command+up",win:"shift+alt+up"},decrement_number_by_10:{mac:"alt+command+down",win:"shift+alt+down"},select_next_item:{mac:"shift+command+.",win:"shift+ctrl+."},select_previous_item:{mac:"shift+command+,",win:"shift+ctrl+,"},reflect_css_value:{mac:"shift+command+r",win:"shift+ctrl+r"},encode_decode_data_url:{mac:"shift+ctrl+d",win:"ctrl+'"},expand_abbreviation_with_tab:"Tab",wrap_with_abbreviation:{mac:"shift+ctrl+a",win:"shift+ctrl+a"}},h=new l;for(var f in t.commands=new s,t.runEmmetCommand=function e(t){try{h.setupContext(t);var n=i.actions||i.require("actions");if("expand_abbreviation_with_tab"==this.action){if(!t.selection.isEmpty())return!1;var r=t.selection.lead,s=t.session.getTokenAt(r.row,r.column);if(s&&/\btag\b/.test(s.type))return!1}if("wrap_with_abbreviation"==this.action)return setTimeout((function(){n.run("wrap_with_abbreviation",h)}),0);var o=n.run(this.action,h)}catch(a){if(!i)return p(e.bind(this,t)),!0;t._signal("changeStatus","string"==typeof a?a:a.message),console.log(a),o=!1}return o},u)t.commands.addCommand({name:"emmet:"+f,action:f,bindKey:u[f],exec:t.runEmmetCommand,multiSelectAction:"forEach"});t.updateCommands=function(e,n){n?e.keyBinding.addKeyboardHandler(t.commands):e.keyBinding.removeKeyboardHandler(t.commands)},t.isSupportedMode=function(e){if(!e)return!1;if(e.emmetConfig)return!0;var t=e.$id||e;return/css|less|scss|sass|stylus|html|php|twig|ejs|handlebars/.test(t)},t.isAvailable=function(e,n){if(/(evaluate_math_expression|expand_abbreviation)$/.test(n))return!0;var i=e.session.$mode,r=t.isSupportedMode(i);if(r&&i.$modes)try{h.setupContext(e),/js|php/.test(h.getSyntax())&&(r=!1)}catch(s){}return r};var d=function(e,n){var i=n;if(i){var r=t.isSupportedMode(i.session.$mode);!1===e.enableEmmet&&(r=!1),r&&p(),t.updateCommands(i,r)}},p=function(t){"string"==typeof r&&e("ace/config").loadModule(r,(function(){r=null,t&&t()}))};t.AceEmmetEditor=l,e("ace/config").defineOptions(o.prototype,"editor",{enableEmmet:{set:function(e){this[e?"on":"removeListener"]("changeMode",d),d({enableEmmet:!!e},this)},value:!0}}),t.setCore=function(e){"string"==typeof e?r=e:i=e}})),function(){ace.acequire(["ace/ext/emmet"],(function(){}))}()},b575:function(e,t,n){var i,r,s,o,a,c,l,u,h=n("da84"),f=n("06cf").f,d=n("c6b6"),p=n("2cf4").set,g=n("1cdc"),m=h.MutationObserver||h.WebKitMutationObserver,v=h.process,b=h.Promise,w="process"==d(v),y=f(h,"queueMicrotask"),A=y&&y.value;A||(i=function(){var e,t;w&&(e=v.domain)&&e.exit();while(r){t=r.fn,r=r.next;try{t()}catch(n){throw r?o():s=void 0,n}}s=void 0,e&&e.enter()},w?o=function(){v.nextTick(i)}:m&&!g?(a=!0,c=document.createTextNode(""),new m(i).observe(c,{characterData:!0}),o=function(){c.data=a=!a}):b&&b.resolve?(l=b.resolve(void 0),u=l.then,o=function(){u.call(l,i)}):o=function(){p.call(h,i)}),e.exports=A||function(e){var t={fn:e,next:void 0};s&&(s.next=t),r||(r=t,o()),s=t}},b622:function(e,t,n){var i=n("da84"),r=n("5692"),s=n("5135"),o=n("90e3"),a=n("4930"),c=n("fdbf"),l=r("wks"),u=i.Symbol,h=c?u:u&&u.withoutSetter||o;e.exports=function(e){return s(l,e)||(a&&s(u,e)?l[e]=u[e]:l[e]=h("Symbol."+e)),l[e]}},b623:function(e,t,n){"use strict";const i=n("0111"),{Buffer:r}=n("b639"),s=n("5d98"),o=n("0e80"),a=n("c449"),c=n("fa4e"),l=42;function u(e){return"string"===typeof e?e=new a(e).buffer:a.isCID(e)&&(e=e.buffer),new i.Tagged(l,r.concat([r.from("00","hex"),e]))}function h(e){let t;try{t=c(e)}catch(i){t=!1}if(t)throw new Error("The object passed has circular references");function n(e){if(!e||e instanceof Uint8Array||"string"===typeof e)return e;if(Array.isArray(e))return e.map(n);if(a.isCID(e))return u(e);const t=Object.keys(e);if(t.length>0){const i={};return t.forEach(t=>{"object"===typeof e[t]?i[t]=n(e[t]):i[t]=e[t]}),i}return e}return n(e)}t=e.exports,t.codec=s.DAG_CBOR,t.defaultHashAlg=s.SHA2_256;const f={[l]:e=>(e=e.slice(1),new a(e))},d=65536;let p=d;const g=67108864;let m=g,v=null;t.configureDecoder=e=>{let t=f;e?("number"===typeof e.size&&(p=e.size),"number"===typeof e.maxSize&&(m=e.maxSize),e.tags&&(t=Object.assign({},f,e&&e.tags))):(p=d,m=g);const n={tags:t,size:p};v=new i.Decoder(n),p=n.size},t.configureDecoder(),t.serialize=e=>{const t=h(e),n=i.encode(t);return n},t.deserialize=e=>{if(e.length>p&&e.length<=m&&t.configureDecoder({size:e.length}),e.length>p)throw new Error("Data is too large to deserialize with current decoder");const n=v.decodeAll(e);if(1!==n.length)throw new Error("Extraneous CBOR data found beyond initial top-level object");return n[0]},t.cid=async(e,n)=>{const i={cidVersion:1,hashAlg:t.defaultHashAlg},r=Object.assign(i,n),c=await o(e,r.hashAlg),l=s.print[t.codec],u=new a(r.cidVersion,l,c);return u}},b639:function(e,t,n){"use strict";(function(e){
+/*!
+ * The buffer module from node.js, for the browser.
+ *
+ * @author Feross Aboukhadijeh
+ * @license MIT
+ */
+var i=n("1fb5"),r=n("9152"),s=n("e3db");function o(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function w(e){return+e!=e&&(e=0),l.alloc(+e)}function y(e,t){if(l.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(e).length;default:if(i)return X(e).length;t=(""+t).toLowerCase(),i=!0}}function A(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return L(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return D(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function E(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function C(e,t,n,i,r){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:F(e,t,n,i,r);if("number"===typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):F(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function F(e,t,n,i,r){var s,o=1,a=e.length,c=t.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;o=2,a/=2,c/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){var u=-1;for(s=n;sa&&(n=a-c),s=n;s>=0;s--){for(var h=!0,f=0;f