import{g as H}from"./index-91b358e1.js";function L(b,x){for(var f=0;fg[M]})}}}return Object.freeze(Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}))}var E={exports:{}};(function(b,x){ace.define("ace/occur",["require","exports","module","ace/lib/oop","ace/search","ace/edit_session","ace/search_highlight","ace/lib/dom"],function(f,g,M){var y=this&&this.__extends||function(){var u=function(h,l){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,e){d.__proto__=e}||function(d,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(d[n]=e[n])},u(h,l)};return function(h,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");u(h,l);function d(){this.constructor=h}h.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),$=f("./lib/oop"),v=f("./search").Search,k=f("./edit_session").EditSession,C=f("./search_highlight").SearchHighlight,s=function(u){y(h,u);function h(){return u!==null&&u.apply(this,arguments)||this}return h.prototype.enter=function(l,d){if(!d.needle)return!1;var e=l.getCursorPosition();this.displayOccurContent(l,d);var n=this.originalToOccurPosition(l.session,e);return l.moveCursorToPosition(n),!0},h.prototype.exit=function(l,d){var e=d.translatePosition&&l.getCursorPosition(),n=e&&this.occurToOriginalPosition(l.session,e);return this.displayOriginalContent(l),n&&l.moveCursorToPosition(n),!0},h.prototype.highlight=function(l,d){var e=l.$occurHighlight=l.$occurHighlight||l.addDynamicMarker(new C(null,"ace_occur-highlight","text"));e.setRegexp(d),l._emit("changeBackMarker")},h.prototype.displayOccurContent=function(l,d){this.$originalSession=l.session;var e=this.matchingLines(l.session,d),n=e.map(function(c){return c.content}),a=new k(n.join(` `));a.$occur=this,a.$occurMatchingLines=e,l.setSession(a),this.$useEmacsStyleLineStart=this.$originalSession.$useEmacsStyleLineStart,a.$useEmacsStyleLineStart=this.$useEmacsStyleLineStart,this.highlight(a,d.re),a._emit("changeBackMarker")},h.prototype.displayOriginalContent=function(l){l.setSession(this.$originalSession),this.$originalSession.$useEmacsStyleLineStart=this.$useEmacsStyleLineStart},h.prototype.originalToOccurPosition=function(l,d){var e=l.$occurMatchingLines,n={row:0,column:0};if(!e)return n;for(var a=0;a30&&this.$data.shift()},append:function(e){var n=this.$data.length-1,a=this.$data[n]||"";e&&(a+=e),a&&(this.$data[n]=a)},get:function(e){return e=e||1,this.$data.slice(this.$data.length-e,this.$data.length).reverse().join(` `)},pop:function(){return this.$data.length>1&&this.$data.pop(),this.get()},rotate:function(){return this.$data.unshift(this.$data.pop()),this.get()}}}),function(){ace.require(["ace/keyboard/emacs"],function(f){b&&(b.exports=f)})}()})(E);var _=E.exports;const T=H(_),A=L({__proto__:null,default:T},[_]);export{A as k}; //# sourceMappingURL=keybinding-emacs-3733e368.js.map