e.exports=function(e){vart={};functioni(n){if(t[n])returnt[n].exports;vars=t[n]={i:n,l:!1,exports:{}};returne[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}returni.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)returne;if(4&t&&"object"==typeofe&&e&&e.__esModule)returne;varn=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeofe)for(varsine)i.d(n,s,function(t){returne[t]}.bind(null,s));returnn},i.n=function(e){vart=e&&e.__esModule?function(){returne.default}:function(){returne};returni.d(t,"a",t),t},i.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=1)}([function(e,t){e.exports=function(e){returnArray.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,i){functionn(e){return(n="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe})(e)}functions(e,t){for(vari=0;i<t.length;i++){varn=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}varo=i(2),r=i(8),a=i(0),l=function(){functione(t,i){varn=i.location,s=void0===n?0:n,o=i.distance,a=void0===o?100:o,l=i.threshold,c=void0===l?.6:l,h=i.maxPatternLength,u=void0===h?32:h,d=i.caseSensitive,p=void0!==d&&d,f=i.tokenSeparator,m=void0===f?/ +/g:f,v=i.findAllMatches,g=void0!==v&&v,_=i.minMatchCharLength,b=void0===_?1:_,y=i.id,E=void0===y?null:y,S=i.keys,I=void0===S?[]:S,w=i.shouldSort,O=void0===w||w,C=i.getFn,A=void0===C?r:C,x=i.sortFn,T=void0===x?function(e,t){returne.score-t.score}:x,L=i.tokenize,k=void0!==L&&L,D=i.matchAllTokens,P=void0!==D&&D,F=i.includeMatches,M=void0!==F&&F,N=i.includeScore,j=void0!==N&&N,K=i.verbose,R=void0!==K&&K;!function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,e),this.options={location:s,distance:a,threshold:c,maxPatternLength:u,isCaseSensitive:p,tokenSeparator:m,findAllMatches:g,minMatchCharLength:b,id:E,keys:I,includeMatches:M,includeScore:j,shouldSort:O,getFn:A,sortFn:T,verbose:R,tokenize:k,matchAllTokens:P},this.setCollection(t)}vart,i;returnt=e,(i=[{key:"setCollection",value:function(e){returnthis.list=e,e}},{key:"search",value:function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:{limit:!1};this._log('---------\nSearch pattern: "'.concat(e,'"'));vari=this._prepareSearchers(e),n=i.tokenSearchers,s=i.fullSearcher,o=this._search(n,s),r=o.weights,a=o.results;returnthis._computeScore(r,a),this.options.shouldSort&&this._sort(a),t.limit&&"number"==typeoft.limit&&(a=a.slice(0,t.limit)),this._format(a)}},{key:"_prepareSearchers",value:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:"",t=[];if(this.options.tokenize)for(vari=e.split(this.options.tokenSeparator),n=0,s=i.length;n<s;n+=1)t.push(newo(i[n],this.options));return{tokenSearchers:t,fullSearcher:newo(e,this.options)}}},{key:"_search",value:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void0,i=this.list,n={},s=[];if("string"==typeofi[0]){for(varo=0,r=i.length;o<r;o+=1)this._analyze({key:"",value:i[o],record:o,index:o},{resultMap:n,results:s,tokenSearchers:e,fullSearcher:t});return{weights:null,results:s}}for(vara={},l=0,c=i.length;l<c;l+=1)for(varh=i[l],u=0,d=this.options.keys.length;u<d;u+=1){varp=this.options.keys[u];if("string"!=typeofp){if(a[p.name]={weight:1-p.weight||1},p.weight<=0||p.weight>1)thrownewError("Key weight has to be > 0 and <= 1");p=p.name}elsea[p]={weight:1};this._analyze({key:p,value:this.options.getFn(h,p),record:h,index:l},{resultMap:n,results:s,tokenSearchers:e,fullSearcher:t})}r