1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d4eccfdc-bdbe-459e-a0f4-1f5d24e18058",e._sentryDebugIdIdentifier="sentry-dbid-d4eccfdc-bdbe-459e-a0f4-1f5d24e18058")}catch(e){}}();var _global="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};_global.SENTRY_RELEASE={id:"sakura@3ddbb22ab0d9a1ffcbcd2dd660d5ba55b62e03eb"};"use strict";(self.webpackChunksakura_frontend=self.webpackChunksakura_frontend||[]).push([["6003"],{671704(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(271841),a=o(860894),l=o(514041),p=o(418677),h=o(153894),d=(0,h.getAceInstance)();t.default=function(e){function t(t){var o=e.call(this,t)||this;return h.editorEvents.forEach(function(e){o[e]=o[e].bind(o)}),o.debounce=h.debounce,o}return r(t,e),t.prototype.isInShadow=function(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1},t.prototype.componentDidMount=function(){var e=this,t=this.props,o=t.className,n=t.onBeforeLoad,r=t.onValidate,i=t.mode,s=t.focus,a=t.theme,l=t.fontSize,p=t.lineHeight,c=t.value,u=t.defaultValue,f=t.showGutter,g=t.wrapEnabled,y=t.showPrintMargin,b=t.scrollMargin,m=void 0===b?[0,0,0,0]:b,v=t.keyboardHandler,S=t.onLoad,w=t.commands,O=t.annotations,C=t.markers,P=t.placeholder;this.editor=d.edit(this.refEditor),n&&n(d);for(var M=Object.keys(this.props.editorProps),E=0;E<M.length;E++)this.editor[M[E]]=this.props.editorProps[M[E]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(m[0],m[1],m[2],m[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode("string"==typeof i?"ace/mode/".concat(i):i),a&&""!==a&&this.editor.setTheme("ace/theme/".concat(a)),this.editor.setFontSize("number"==typeof l?"".concat(l,"px"):l),p&&(this.editor.container.style.lineHeight="number"==typeof p?"".concat(p,"px"):"".concat(p),this.editor.renderer.updateFontSize()),this.editor.getSession().setValue(u||c||""),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter(f),this.editor.getSession().setUseWrapMode(g),this.editor.setShowPrintMargin(y),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),P&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),r&&this.editor.getSession().on("changeAnnotation",function(){var t=e.editor.getSession().getAnnotations();e.props.onValidate(t)}),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(O||[]),C&&C.length>0&&this.handleMarkers(C);var L=this.editor.$options;h.editorOptions.forEach(function(t){L.hasOwnProperty(t)?e.editor.setOption(t,e.props[t]):e.props[t]&&console.warn("ReactAce: editor option ".concat(t," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}
1),this.handleOptions(this.props),Array.isArray(w)&&w.forEach(function(t){"string"==typeof t.exec?e.editor.commands.bindKey(t.bindKey,t.exec):e.editor.commands.addCommand(t)}),v&&this.editor.setKeyboardHandler("ace/keyboard/"+v),o&&(this.refEditor.className+=" "+o),S&&S(this.editor),this.editor.resize(),s&&this.editor.focus()},t.prototype.componentDidUpdate=function(e){for(var t=this.props,o=0;o<h.editorOptions.length;o++){var n=h.editorOptions[o];t[n]!==e[n]&&this.editor.setOption(n,t[n])}if(t.className!==e.className){var r=this.refEditor.className.trim().split(" ");e.className.trim().split(" ").forEach(function(e){var t=r.indexOf(e);r.splice(t,1)}),this.refEditor.className=" "+t.className+" "+r.join(" ")}var i=this.editor&&null!=t.value&&this.editor.getValue()!==t.value;if(i){this.silent=!0;var s=this.editor.session.selection.toJSON();this.editor.setValue(t.value,t.cursorStart),this.editor.session.selection.fromJSON(s),this.silent=!1}t.placeholder!==e.placeholder&&this.updatePlaceholder(),t.mode!==e.mode&&this.editor.getSession().setMode("string"==typeof t.mode?"ace/mode/".concat(t.mode):t.mode),t.theme!==e.theme&&this.editor.setTheme("ace/theme/"+t.theme),t.keyboardHandler!==e.keyboardHandler&&(t.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+t.keyboardHandler):this.editor.setKeyboardHandler(null)),t.fontSize!==e.fontSize&&this.editor.setFontSize("number"==typeof t.fontSize?"".concat(t.fontSize,"px"):t.fontSize),t.lineHeight!==e.lineHeight&&(this.editor.container.style.lineHeight="number"==typeof t.lineHeight?"".concat(t.lineHeight,"px"):t.lineHeight,this.editor.renderer.updateFontSize()),t.wrapEnabled!==e.wrapEnabled&&this.editor.getSession().setUseWrapMode(t.wrapEnabled),t.showPrintMargin!==e.showPrintMargin&&this.editor.setShowPrintMargin(t.showPrintMargin),t.showGutter!==e.showGutter&&this.editor.renderer.setShowGutter(t.showGutter),p(t.setOptions,e.setOptions)||this.handleOptions(t),(i||!p(t.annotations,e.annotations))&&this.editor.getSession().setAnnotations(t.annotations||[]),!p(t.markers,e.markers)&&Array.isArray(t.markers)&&this.handleMarkers(t.markers),p(t.scrollMargin,e.scrollMargin)||this.handleScrollMargins(t.scrollMargin),(e.height!==this.props.height||e.width!==this.props.width)&&this.editor.resize(),this.props.focus&&!e.focus&&this.editor.focus()},t.prototype.handleScrollMargins=function(e){void 0===e&&(e=[0,0,0,0]),this.editor.renderer.setScrollMargin(e[0],e[1],e[2],e[3])},t.prototype.componentWillUnmount=function(){this.editor&&(this.editor.destroy(),this.editor=null)},t.prototype.onChange=function(e){if(this.editor&&this.props.onChange&&!this.silent){var t=this.editor.getValue();this.props.onChange(t,e)}},t.prototype.onSelectionChange=function(e){if(this.props.onSelectionChange){var t=this.editor.getSelection();this.props.onSelectionChange(t,e)}},t.prototype.onCursorChange=function(e){if(this.props.onCursorChange){var t=this.editor.getSelection();this.props.onCursorChange(t,e)}},t.prototype.onInput=function(e){this.props.onInput&&this.props.onInput(e),this.props.placeholder&&this.updatePlaceholder()},t.prototype.onFocus=function(e){this.props.onFocus&&this.props.onFocus(e,this.editor)},t.prototype.onBlur=function(e){this.props.onBlur&&this.props.onBlur(e,this.editor)},t.prototype.onCopy=function(e){var t=e.text;this.props.onCopy&&this.props.onCopy(t)},t.prototype.onPaste=function(e){var t=e.text;this.props.onPaste&&this.props.onPaste(t)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(e){for(var t=Object.keys(e.setOptions),o=0;o<t.length;o++)this.editor.setOption(t[o],e.setOptions[t[o]])},t.prototype.handleMarkers=function(e){var t=this,o=this.editor.getSession().getMarkers(!0);for(var n in o)o.hasOwnProperty(n)&&this.editor.getSession().removeMarker(o[n].id);for(var n in o=this.editor.getSession().getMarkers(!1))o.hasOwnProperty(n)&&"ace_active-line"!==o[n].clazz&&"ace_selected-word"!==o[n].clazz&&this.editor.getSession().removeMarker(o[n].id);e.forEach(function(e){var o=e.startRow,n=e.startCol,r=e.endRow,i=e.endCol,a=e.className,l=e.type,p=e.inFront,h=new s.Range(o,n,r,i);t.editor.getSession().addMarker(h,a,l,void 0!==p&&p)})},t.prototype.updatePlaceholder=function(){var e=this.editor,t=this.props.placeholder,o=!e.session.getValue().length,n=e.renderer.placeholderNode;!o&&n?(e.renderer.scroller.removeChild(e.renderer.placeholderNode),e.renderer.placeholderNode=null):o&&!n?((n=e.renderer.placeholderNode=document.createElement("div")).textContent=t||"",n.className="ace_comment ace_placeholder",n.style.padding="0 9px",n.style.position="absolute",n.style.zIndex="3",e.renderer.scroller.appendChild(n)):o&&n&&(n.textContent=t)},t.prototype.updateRef=function(e){this.refEditor=e},t.prototype.render=function(){var e=this.props,t=e.name,o=e.width,n=e.he
1ight,r=e.style,s=i({width:o,height:n},r);return l.createElement("div",{ref:this.updateRef,id:t,style:s})},t.propTypes={mode:a.oneOfType([a.string,a.object]),focus:a.bool,theme:a.string,name:a.string,className:a.string,height:a.string,width:a.string,fontSize:a.oneOfType([a.number,a.string]),lineHeight:a.oneOfType([a.number,a.string]),showGutter:a.bool,onChange:a.func,onCopy:a.func,onPaste:a.func,onFocus:a.func,onInput:a.func,onBlur:a.func,onScroll:a.func,value:a.string,defaultValue:a.string,onLoad:a.func,onSelectionChange:a.func,onCursorChange:a.func,onBeforeLoad:a.func,onValidate:a.func,minLines:a.number,maxLines:a.number,readOnly:a.bool,highlightActiveLine:a.bool,tabSize:a.number,showPrintMargin:a.bool,cursorStart:a.number,debounceChangePeriod:a.number,editorProps:a.object,setOptions:a.object,style:a.object,scrollMargin:a.array,annotations:a.array,markers:a.array,keyboardHandler:a.string,wrapEnabled:a.bool,enableSnippets:a.bool,enableBasicAutocompletion:a.oneOfType([a.bool,a.array]),enableLiveAutocompletion:a.oneOfType([a.bool,a.array]),navigateToFileEnd:a.bool,commands:a.array,placeholder:a.string},t.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},t}(l.Component)},951856(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var i=o(860894),s=o(514041),a=o(853275),l=o(56022);t.default=function(e){function t(t){var o=e.call(this,t)||this;return o.state={value:o.props.value},o.onChange=o.onChange.bind(o),o.diff=o.diff.bind(o),o}return r(t,e),t.prototype.componentDidUpdate=function(){var e=this.props.value;e!==this.state.value&&this.setState({value:e})},t.prototype.onChange=function(e){this.setState({value:e}),this.props.onChange&&this.props.onChange(e)},t.prototype.diff=function(){var e=new l,t=this.state.value[0],o=this.state.value[1];if(0===t.length&&0===o.length)return[];var n=e.diff_main(t,o);e.diff_cleanupSemantic(n);var r=this.generateDiffedLines(n);return this.setCodeMarkers(r)},t.prototype.generateDiffedLines=function(e){var t={left:[],right:[]},o={left:1,right:1};return e.forEach(function(e){var n=e[0],r=e[1],i=r.split("\n").length-1;if(0!==r.length){var s=r[0],a=r[r.length-1],l=0;switch(n){case 0:o.left+=i,o.right+=i;break;case -1:"\n"===s&&(o.left++,i--),0===(l=i)&&t.right.push({startLine:o.right,endLine:o.right}),"\n"===a&&(l-=1),t.left.push({startLine:o.left,endLine:o.left+l}),o.left+=i;break;case 1:"\n"===s&&(o.right++,i--),0===(l=i)&&t.left.push({startLine:o.left,endLine:o.left}),"\n"===a&&(l-=1),t.right.push({startLine:o.right,endLine:o.right+l}),o.right+=i;break;default:throw Error("Diff type was not defined.")}}}),t},t.prototype.setCodeMarkers=function(e){void 0===e&&(e={left:[],right:[]});for(var t=[],o=[],n=[],r=0;r<e.left.length;r++){var i={startRow:e.left[r].startLine-1,endRow:e.left[r].endLine,type:"text",className:"codeMarker"};o.push(i)}for(var r=0;r<e.right.length;r++){var i={startRow:e.right[r].startLine-1,endRow:e.right[r].endLine,type:"text",className:"codeMarker"};n.push(i)}return t[0]=o,t[1]=n,t},t.prototype.render=function(){var e=this.diff();return s.createElement(a.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:e})}
1,t.propTypes={cursorStart:i.number,editorProps:i.object,enableBasicAutocompletion:i.bool,enableLiveAutocompletion:i.bool,focus:i.bool,fontSize:i.number,height:i.string,highlightActiveLine:i.bool,maxLines:i.number,minLines:i.number,mode:i.string,name:i.string,className:i.string,onLoad:i.func,onPaste:i.func,onScroll:i.func,onChange:i.func,orientation:i.string,readOnly:i.bool,scrollMargin:i.array,setOptions:i.object,showGutter:i.bool,showPrintMargin:i.bool,splits:i.number,style:i.object,tabSize:i.number,theme:i.string,value:i.array,width:i.string,wrapEnabled:i.bool},t.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},t}(s.Component)},153894(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.getAceInstance=t.debounce=t.editorEvents=t.editorOptions=void 0,t.editorOptions=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"],t.editorEvents=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"],t.getAceInstance=function(){var e;return"u"<typeof window?(o.g.window={},e=o(271841),delete o.g.window):window.ace?(e=window.ace).acequire=window.ace.require||window.ace.acequire:e=o(271841),e},t.debounce=function(e,t){var o=null;return function(){var n=this,r=arguments;clearTimeout(o),o=setTimeout(function(){e.apply(n,r)},t)}}},356271(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.diff=t.split=void 0;var n=o(671704);t.diff=o(951856).default,t.split=o(853275).default,t.default=n.default},853275(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(153894),a=(0,s.getAceInstance)(),l=o(271841),p=o(553828),h=o(860894),d=o(514041),c=o(418677),u=o(605157);t.default=function(e){function t(t){var o=e.call(this,t)||this;return s.editorEvents.forEach(function(e){o[e]=o[e].bind(o)}),o.debounce=s.debounce,o}return r(t,e),t.prototype.isInShadow=function(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1},t.prototype.componentDidMount=function(){var e=this,t=this.props,o=t.className,n=t.onBeforeLoad,r=t.mode,i=t.focus,l=t.theme,h=t.fontSize,d=t.value,c=t.defaultValue,f=t.cursorStart,g=t.showGutter,y=t.wrapEnabled,b=t.showPrintMargin,m=t.scrollMargin,v=void 0===m?[0,0,0,0]:m,S=t.keyboardHandler,w=t.onLoad,O=t.commands,C=t.annotations,P=t.markers,M=t.splits;this.editor=a.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/".concat(l)),n&&n(a);var E=Object.keys(this.props.editorProps),L=new p.Split(this.editor.container,"ace/theme/".concat(l),M);this.editor.env.split=L,this.splitEditor=L.getEditor(0),this.split=L,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var k=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),L.forEach(function(t,o){for(var n=0;n<E.length;n++)t[E[n]]=e.props.editorProps[E[n]];var i=u(c,o),p=u(d,o,"");t.session.setUndoManager(new a.UndoManager),t.setTheme("ace/theme/".concat(l)),t.renderer.setScrollMargin(v[0],v[1],v[2],v[3]),t.getSession().setMode("ace/mode/".concat(r)),t.setFontSize(h),t.renderer.setShowGutter(g),t.getSession().setUseWrapMode(y),t.setShowPrintMargin(b),t.on("focus",e.onFocus),t.on("blur",e.onBlur),t.on("input",e.onInput),t.on("copy",e.onCopy),t.on("paste",e.onPaste),t.on("change",e.onChange),t.getSession().selection.on("changeSelection",e.onSelectionChange),t.getSession().selection.on("changeCursor",e.onCursorChange),t.session.on("changeScrollTop",e.onScroll),t.setValue(void 0===i?p:i,f);var m=u(C,o,[]),w=u(P,o,[]);t.getSession().setAnnotations(m),w&&w.length>0&&e.handleMarkers(w,t);for(var n=0;n<s.editorOptions.length;n++){var M=s.editorOptions[n];k.hasOwnProperty(M)?t.setOption(M,e.props[M]):e.props[M]&&console.warn("ReaceAce: editor option ".concat(M," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}e.handleOptions(e.props,t),Array.isArray(O)&&O.forEach(function(e){"string"==typeof e.exec?t.commands.bindKey(e.bindKey,e.exec):t.commands.addCommand(e)}),S&&t.setKeyboardHandler("ace/keyboard/"+S)}),o&&(this.refEditor.className+=" "+o),i&&this.splitEditor.focus();var _=this.editor.env.split;_.setOrientation("below"===this.props.orientation?_.BELOW:_.BESIDE),_.resize(!0),w&&w(_)},t.prototype.componentDidUpdate=function(e){var t=this,o=this.props,n=this.editor.env.split;if(o.splits!==e.splits&&n.setSplits(o.splits),o.orientation!==e.orientation&&n.setOrientation("below"===o.orientation?n.BELOW:n.BESI
1DE),n.forEach(function(n,r){o.mode!==e.mode&&n.getSession().setMode("ace/mode/"+o.mode),o.keyboardHandler!==e.keyboardHandler&&(o.keyboardHandler?n.setKeyboardHandler("ace/keyboard/"+o.keyboardHandler):n.setKeyboardHandler(null)),o.fontSize!==e.fontSize&&n.setFontSize(o.fontSize),o.wrapEnabled!==e.wrapEnabled&&n.getSession().setUseWrapMode(o.wrapEnabled),o.showPrintMargin!==e.showPrintMargin&&n.setShowPrintMargin(o.showPrintMargin),o.showGutter!==e.showGutter&&n.renderer.setShowGutter(o.showGutter);for(var i=0;i<s.editorOptions.length;i++){var a=s.editorOptions[i];o[a]!==e[a]&&n.setOption(a,o[a])}c(o.setOptions,e.setOptions)||t.handleOptions(o,n);var l=u(o.value,r,"");if(n.getValue()!==l){t.silent=!0;var p=n.session.selection.toJSON();n.setValue(l,o.cursorStart),n.session.selection.fromJSON(p),t.silent=!1}var h=u(o.annotations,r,[]);c(h,u(e.annotations,r,[]))||n.getSession().setAnnotations(h);var d=u(o.markers,r,[]);!c(d,u(e.markers,r,[]))&&Array.isArray(d)&&t.handleMarkers(d,n)}),o.className!==e.className){var r=this.refEditor.className.trim().split(" ");e.className.trim().split(" ").forEach(function(e){var t=r.indexOf(e);r.splice(t,1)}),this.refEditor.className=" "+o.className+" "+r.join(" ")}o.theme!==e.theme&&n.setTheme("ace/theme/"+o.theme),o.focus&&!e.focus&&this.splitEditor.focus(),(o.height!==this.props.height||o.width!==this.props.width)&&this.editor.resize()},t.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},t.prototype.onChange=function(e){if(this.props.onChange&&!this.silent){var t=[];this.editor.env.split.forEach(function(e){t.push(e.getValue())}),this.props.onChange(t,e)}},t.prototype.onSelectionChange=function(e){if(this.props.onSelectionChange){var t=[];this.editor.env.split.forEach(function(e){t.push(e.getSelection())}),this.props.onSelectionChange(t,e)}},t.prototype.onCursorChange=function(e){if(this.props.onCursorChange){var t=[];this.editor.env.split.forEach(function(e){t.push(e.getSelection())}),this.props.onCursorChange(t,e)}},t.prototype.onFocus=function(e){this.props.onFocus&&this.props.onFocus(e)},t.prototype.onInput=function(e){this.props.onInput&&this.props.onInput(e)},t.prototype.onBlur=function(e){this.props.onBlur&&this.props.onBlur(e)},t.prototype.onCopy=function(e){this.props.onCopy&&this.props.onCopy(e)},t.prototype.onPaste=function(e){this.props.onPaste&&this.props.onPaste(e)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(e,t){for(var o=Object.keys(e.setOptions),n=0;n<o.length;n++)t.setOption(o[n],e.setOptions[o[n]])},t.prototype.handleMarkers=function(e,t){var o=t.getSession().getMarkers(!0);for(var n in o)o.hasOwnProperty(n)&&t.getSession().removeMarker(o[n].id);for(var n in o=t.getSession().getMarkers(!1))o.hasOwnProperty(n)&&t.getSession().removeMarker(o[n].id);e.forEach(function(e){var o=e.startRow,n=e.startCol,r=e.endRow,i=e.endCol,s=e.className,a=e.type,p=e.inFront,h=new l.Range(o,n,r,i);t.getSession().addMarker(h,s,a,void 0!==p&&p)})},t.prototype.updateRef=function(e){this.refEditor=e},t.prototype.render=function(){var e=this.props,t=e.name,o=e.width,n=e.height,r=e.style,s=i({width:o,height:n},r);return d.createElement("div",{ref:this.updateRef,id:t,style:s})}
1,t.propTypes={className:h.string,debounceChangePeriod:h.number,defaultValue:h.arrayOf(h.string),focus:h.bool,fontSize:h.oneOfType([h.number,h.string]),height:h.string,mode:h.string,name:h.string,onBlur:h.func,onChange:h.func,onCopy:h.func,onFocus:h.func,onInput:h.func,onLoad:h.func,onPaste:h.func,onScroll:h.func,orientation:h.string,showGutter:h.bool,splits:h.number,theme:h.string,value:h.arrayOf(h.string),width:h.string,onSelectionChange:h.func,onCursorChange:h.func,onBeforeLoad:h.func,minLines:h.number,maxLines:h.number,readOnly:h.bool,highlightActiveLine:h.bool,tabSize:h.number,showPrintMargin:h.bool,cursorStart:h.number,editorProps:h.object,setOptions:h.object,style:h.object,scrollMargin:h.array,annotations:h.array,markers:h.array,keyboardHandler:h.string,wrapEnabled:h.bool,enableBasicAutocompletion:h.oneOfType([h.bool,h.array]),enableLiveAutocompletion:h.oneOfType([h.bool,h.array]),commands:h.array},t.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},t}(d.Component)}}]); 2//# sourceMappingURL=npm.react-ace.86bdf380175236df.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.