!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).search=e()}}(function(){return function o(s,l,f){function a(t,e){if(!l[t]){if(!s[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(c)return c(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var i=l[t]={exports:{}};s[t][0].call(i.exports,function(e){return a(s[t][1][e]||e)},i,i.exports,o,s,l,f)}return l[t].exports}for(var c="function"==typeof require&&require,e=0;e?",i=function(){function e(e){this._terminal=e}return e.prototype.findNext=function(e,t){if(!e||0===e.length)return!1;var r,n=this._terminal._core.buffer.ydisp;this._terminal._core.selectionManager.selectionEnd&&0!==this._terminal.getSelection().length&&(n=this._terminal._core.selectionManager.selectionEnd[1]);for(var i=n+1;i=this._terminal.cols&&(t+=Math.floor(s/this._terminal.cols),s%=this._terminal.cols),r.wholeWord&&!this._isWholeWord(s,i,e))return;for(var a=this._terminal._core.buffer.lines.get(t),c=0;c