(self.webpackChunk=self.webpackChunk||[]).push([[820,823],{2820:function(e,n,o){!function(e){"use strict";function n(e,n){var o=Number(n);return/^[-+]/.test(n)?e.getCursor().line+o:o-1}e.defineOption("search",{bottom:!1}),e.commands.jumpToLine=function(e){var o=e.getCursor();!function(e,n,o,t,i){e.openDialog?e.openDialog(n,i,{value:t,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(o,t))}(e,function(e){return e.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>"}(e),e.phrase("Jump to line:"),o.line+1+":"+o.ch,(function(t){var i;if(t)if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(t))e.setCursor(n(e,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(t)){var r=Math.round(e.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(r=o.line+r+1),e.setCursor(r-1,o.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(t))&&e.setCursor(n(e,i[1]),o.ch)}))},e.keyMap.default["Alt-G"]="jumpToLine"}(o(709),o(3823))},3823:function(e,n,o){!function(e){function n(n,o,t){var i,r=n.getWrapperElement();return(i=r.appendChild(document.createElement("div"))).className=t?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof o?i.innerHTML=o:i.appendChild(o),e.addClass(r,"dialog-opened"),i}function o(e,n){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=n}e.defineExtension("openDialog",(function(t,i,r){r||(r={}),o(this,null);var u=n(this,t,r.bottom),s=!1,l=this;function a(n){if("string"==typeof n)f.value=n;else{if(s)return;s=!0,e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),l.focus(),r.onClose&&r.onClose(u)}}var c,f=u.getElementsByTagName("input")[0];return f?(f.focus(),r.value&&(f.value=r.value,!1!==r.selectValueOnOpen&&f.select()),r.onInput&&e.on(f,"input",(function(e){r.onInput(e,f.value,a)})),r.onKeyUp&&e.on(f,"keyup",(function(e){r.onKeyUp(e,f.value,a)})),e.on(f,"keydown",(function(n){r&&r.onKeyDown&&r.onKeyDown(n,f.value,a)||((27==n.keyCode||!1!==r.closeOnEnter&&13==n.keyCode)&&(f.blur(),e.e_stop(n),a()),13==n.keyCode&&i(f.value,n))})),!1!==r.closeOnBlur&&e.on(u,"focusout",(function(e){null!==e.relatedTarget&&a()}))):(c=u.getElementsByTagName("button")[0])&&(e.on(c,"click",(function(){a(),l.focus()})),!1!==r.closeOnBlur&&e.on(c,"blur",a),c.focus()),a})),e.defineExtension("openConfirm",(function(t,i,r){o(this,null);var u=n(this,t,r&&r.bottom),s=u.getElementsByTagName("button"),l=!1,a=this,c=1;function f(){l||(l=!0,e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),a.focus())}s[0].focus();for(var d=0;d<s.length;++d){var p=s[d];!function(n){e.on(p,"click",(function(o){e.e_preventDefault(o),f(),n&&n(a)}))}(i[d]),e.on(p,"blur",(function(){--c,setTimeout((function(){c<=0&&f()}),200)})),e.on(p,"focus",(function(){++c}))}})),e.defineExtension("openNotification",(function(t,i){o(this,a);var r,u=n(this,t,i&&i.bottom),s=!1,l=i&&void 0!==i.duration?i.duration:5e3;function a(){s||(s=!0,clearTimeout(r),e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u))}return e.on(u,"click",(function(n){e.e_preventDefault(n),a()})),l&&(r=setTimeout(a,l)),a}))}(o(709))}}]);
//# sourceMappingURL=820.js.map