Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

minisearch

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minisearch - npm Package Compare versions

Comparing version 0.1.17 to 0.1.18

2

dist/minisearch.js

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("minisearch",[],n):"object"==typeof exports?exports.minisearch=n():t.minisearch=n()}("undefined"!=typeof self?self:this,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=88)}([function(t,n,e){var r=e(33)("wks"),i=e(16),o=e(1).Symbol,u="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=r},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){var r=e(1),i=e(12),o=e(3),u=e(13),c=e(30),f=function(t,n,e){var a,s,l,h,v=t&f.F,p=t&f.G,d=t&f.S,y=t&f.P,g=t&f.B,m=p?r:d?r[n]||(r[n]={}):(r[n]||{}).prototype,b=p?i:i[n]||(i[n]={}),x=b.prototype||(b.prototype={});for(a in p&&(e=n),e)l=((s=!v&&m&&void 0!==m[a])?m:e)[a],h=g&&s?c(l,r):y&&"function"==typeof l?c(Function.call,l):l,m&&u(m,a,l,t&f.U),b[a]!=l&&o(b,a,h),y&&x[a]!=l&&(x[a]=l)};r.core=i,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,n,e){var r=e(4),i=e(15);t.exports=e(5)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(7),i=e(40),o=e(29),u=Object.defineProperty;n.f=e(5)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){t.exports=!e(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(8);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(43),i=e(34);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n,e){var r=e(31),i=e(14);t.exports=function(t){return r(i(t))}},function(t,n){var e=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(1),i=e(3),o=e(9),u=e(16)("src"),c=Function.toString,f=(""+c).split("toString");e(12).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,e,c){var a="function"==typeof e;a&&(o(e,"name")||i(e,"name",n)),t[n]!==e&&(a&&(o(e,u)||i(e,u,t[n]?""+t[n]:f.join(String(n)))),t===r?t[n]=e:c?t[n]?t[n]=e:i(t,n,e):(delete t[n],i(t,n,e)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){t.exports={}},function(t,n,e){var r=e(14);t.exports=function(t){return Object(r(t))}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){"use strict";var r=e(52),i=e(80),o=e(17),u=e(11);t.exports=e(39)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,i(1)):i(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,n){t.exports=!1},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(28),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n,e){e(48)("asyncIterator")},function(t,n,e){"use strict";var r=e(1),i=e(9),o=e(5),u=e(2),c=e(13),f=e(73).KEY,a=e(6),s=e(33),l=e(35),h=e(16),v=e(0),p=e(49),d=e(48),y=e(74),g=e(50),m=e(7),b=e(8),x=e(11),_=e(29),O=e(15),w=e(42),S=e(75),j=e(76),k=e(4),E=e(10),P=j.f,L=k.f,A=S.f,I=r.Symbol,z=r.JSON,T=z&&z.stringify,F=v("_hidden"),C=v("toPrimitive"),M={}.propertyIsEnumerable,N=s("symbol-registry"),R=s("symbols"),D=s("op-symbols"),W=Object.prototype,G="function"==typeof I,J=r.QObject,V=!J||!J.prototype||!J.prototype.findChild,H=o&&a(function(){return 7!=w(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=P(W,n);r&&delete W[n],L(t,n,e),r&&t!==W&&L(W,n,r)}:L,K=function(t){var n=R[t]=w(I.prototype);return n._k=t,n},U=G&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},B=function(t,n,e){return t===W&&B(D,n,e),m(t),n=_(n,!0),m(e),i(R,n)?(e.enumerable?(i(t,F)&&t[F][n]&&(t[F][n]=!1),e=w(e,{enumerable:O(0,!1)})):(i(t,F)||L(t,F,O(1,{})),t[F][n]=!0),H(t,n,e)):L(t,n,e)},Q=function(t,n){m(t);for(var e,r=y(n=x(n)),i=0,o=r.length;o>i;)B(t,e=r[i++],n[e]);return t},Y=function(t){var n=M.call(this,t=_(t,!0));return!(this===W&&i(R,t)&&!i(D,t))&&(!(n||!i(this,t)||!i(R,t)||i(this,F)&&this[F][t])||n)},q=function(t,n){if(t=x(t),n=_(n,!0),t!==W||!i(R,n)||i(D,n)){var e=P(t,n);return!e||!i(R,n)||i(t,F)&&t[F][n]||(e.enumerable=!0),e}},$=function(t){for(var n,e=A(x(t)),r=[],o=0;e.length>o;)i(R,n=e[o++])||n==F||n==f||r.push(n);return r},X=function(t){for(var n,e=t===W,r=A(e?D:x(t)),o=[],u=0;r.length>u;)!i(R,n=r[u++])||e&&!i(W,n)||o.push(R[n]);return o};G||(c((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(e){this===W&&n.call(D,e),i(this,F)&&i(this[F],t)&&(this[F][t]=!1),H(this,t,O(1,e))};return o&&V&&H(W,t,{configurable:!0,set:n}),K(t)}).prototype,"toString",function(){return this._k}),j.f=q,k.f=B,e(51).f=S.f=$,e(19).f=Y,e(37).f=X,o&&!e(21)&&c(W,"propertyIsEnumerable",Y,!0),p.f=function(t){return K(v(t))}),u(u.G+u.W+u.F*!G,{Symbol:I});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)v(Z[tt++]);for(var nt=E(v.store),et=0;nt.length>et;)d(nt[et++]);u(u.S+u.F*!G,"Symbol",{for:function(t){return i(N,t+="")?N[t]:N[t]=I(t)},keyFor:function(t){if(!U(t))throw TypeError(t+" is not a symbol!");for(var n in N)if(N[n]===t)return n},useSetter:function(){V=!0},useSimple:function(){V=!1}}),u(u.S+u.F*!G,"Object",{create:function(t,n){return void 0===n?w(t):Q(w(t),n)},defineProperty:B,defineProperties:Q,getOwnPropertyDescriptor:q,getOwnPropertyNames:$,getOwnPropertySymbols:X}),z&&u(u.S+u.F*(!G||a(function(){var t=I();return"[null]"!=T([t])||"{}"!=T({a:t})||"{}"!=T(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(e=n=r[1],(b(n)||void 0!==t)&&!U(t))return g(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!U(n))return n}),r[1]=n,T.apply(z,r)}}),I.prototype[C]||e(3)(I.prototype,C,I.prototype.valueOf),l(I,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){var r=e(18),i=e(10);e(77)("keys",function(){return function(t){return i(r(t))}})},function(t,n,e){for(var r=e(20),i=e(10),o=e(13),u=e(1),c=e(3),f=e(17),a=e(0),s=a("iterator"),l=a("toStringTag"),h=f.Array,v={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(v),d=0;d<p.length;d++){var y,g=p[d],m=v[g],b=u[g],x=b&&b.prototype;if(x&&(x[s]||c(x,s,h),x[l]||c(x,l,g),f[g]=h,m))for(y in r)x[y]||o(x,y,r[y],!0)}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(8);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(56);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(22);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(33)("keys"),i=e(16);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n,e){var r=e(12),i=e(1),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(21)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(4).f,i=e(9),o=e(0)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},function(t,n,e){"use strict";var r=e(3),i=e(13),o=e(6),u=e(14),c=e(0);t.exports=function(t,n,e){var f=c(t),a=e(u,f,""[t]),s=a[0],l=a[1];o(function(){var n={};return n[f]=function(){return 7},7!=""[t](n)})&&(i(String.prototype,t,s),r(RegExp.prototype,f,2==n?function(t,n){return l.call(t,this,n)}:function(t){return l.call(t,this)}))}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){"use strict";var r=e(55)(!0);e(39)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){"use strict";var r=e(21),i=e(2),o=e(13),u=e(3),c=e(17),f=e(57),a=e(35),s=e(62),l=e(0)("iterator"),h=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,e,p,d,y,g){f(e,n,p);var m,b,x,_=function(t){if(!h&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},O=n+" Iterator",w="values"==d,S=!1,j=t.prototype,k=j[l]||j["@@iterator"]||d&&j[d],E=k||_(d),P=d?w?_("entries"):E:void 0,L="Array"==n&&j.entries||k;if(L&&(x=s(L.call(new t)))!==Object.prototype&&x.next&&(a(x,O,!0),r||"function"==typeof x[l]||u(x,l,v)),w&&k&&"values"!==k.name&&(S=!0,E=function(){return k.call(this)}),r&&!g||!h&&!S&&j[l]||u(j,l,E),c[n]=E,c[O]=v,d)if(m={values:w?E:_("values"),keys:y?E:_("keys"),entries:P},g)for(b in m)b in j||o(j,b,m[b]);else i(i.P+i.F*(h||S),n,m);return m}},function(t,n,e){t.exports=!e(5)&&!e(6)(function(){return 7!=Object.defineProperty(e(41)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(8),i=e(1).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,e){var r=e(7),i=e(58),o=e(34),u=e(32)("IE_PROTO"),c=function(){},f=function(){var t,n=e(41)("iframe"),r=o.length;for(n.style.display="none",e(61).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;r--;)delete f.prototype[o[r]];return f()};t.exports=Object.create||function(t,n){var e;return null!==t?(c.prototype=r(t),e=new c,c.prototype=null,e[u]=t):e=f(),void 0===n?e:i(e,n)}},function(t,n,e){var r=e(9),i=e(11),o=e(59)(!1),u=e(32)("IE_PROTO");t.exports=function(t,n){var e,c=i(t),f=0,a=[];for(e in c)e!=u&&r(c,e)&&a.push(e);for(;n.length>f;)r(c,e=n[f++])&&(~o(a,e)||a.push(e));return a}},function(t,n,e){"use strict";var r=e(30),i=e(2),o=e(18),u=e(63),c=e(64),f=e(23),a=e(65),s=e(66);i(i.S+i.F*!e(68)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,i,l,h=o(t),v="function"==typeof this?this:Array,p=arguments.length,d=p>1?arguments[1]:void 0,y=void 0!==d,g=0,m=s(h);if(y&&(d=r(d,p>2?arguments[2]:void 0,2)),void 0==m||v==Array&&c(m))for(e=new v(n=f(h.length));n>g;g++)a(e,g,y?d(h[g],g):h[g]);else for(l=m.call(h),e=new v;!(i=l.next()).done;g++)a(e,g,y?u(l,d,[i.value,g],!0):i.value);return e.length=g,e}})},function(t,n,e){"use strict";e(69);var r=e(7),i=e(46),o=e(5),u=/./.toString,c=function(t){e(13)(RegExp.prototype,"toString",t,!0)};e(6)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?c(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):"toString"!=u.name&&c(function(){return u.call(this)})},function(t,n,e){"use strict";var r=e(7);t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,e){var r=e(8),i=e(22),o=e(0)("match");t.exports=function(t){var n;return r(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},function(t,n,e){var r=e(1),i=e(12),o=e(21),u=e(49),c=e(4).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,e){n.f=e(0)},function(t,n,e){var r=e(22);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(43),i=e(34).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,n,e){var r=e(0)("unscopables"),i=Array.prototype;void 0==i[r]&&e(3)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,n,e){var r=e(2),i=e(81)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,n,e){"use strict";var r=e(2),i=e(82)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e(52)("find")},function(t,n,e){var r=e(28),i=e(14);t.exports=function(t){return function(n,e){var o,u,c=String(i(n)),f=r(e),a=c.length;return f<0||f>=a?t?"":void 0:(o=c.charCodeAt(f))<55296||o>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):o:t?c.slice(f,f+2):u-56320+(o-55296<<10)+65536}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){"use strict";var r=e(42),i=e(15),o=e(35),u={};e(3)(u,e(0)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:i(1,e)}),o(t,n+" Iterator")}},function(t,n,e){var r=e(4),i=e(7),o=e(10);t.exports=e(5)?Object.defineProperties:function(t,n){i(t);for(var e,u=o(n),c=u.length,f=0;c>f;)r.f(t,e=u[f++],n[e]);return t}},function(t,n,e){var r=e(11),i=e(23),o=e(60);t.exports=function(t){return function(n,e,u){var c,f=r(n),a=i(f.length),s=o(u,a);if(t&&e!=e){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===e)return t||s||0;return!t&&-1}}},function(t,n,e){var r=e(28),i=Math.max,o=Math.min;t.exports=function(t,n){return(t=r(t))<0?i(t+n,0):o(t,n)}},function(t,n,e){var r=e(1).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(9),i=e(18),o=e(32)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(7);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&r(o.call(t)),n}}},function(t,n,e){var r=e(17),i=e(0)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,n,e){"use strict";var r=e(4),i=e(15);t.exports=function(t,n,e){n in t?r.f(t,n,i(0,e)):t[n]=e}},function(t,n,e){var r=e(67),i=e(0)("iterator"),o=e(17);t.exports=e(12).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,n,e){var r=e(22),i=e(0)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var n,e,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?e:o?r(n):"Object"==(u=r(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,e){var r=e(0)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var o=[7],u=o[r]();u.next=function(){return{done:e=!0}},o[r]=function(){return u},t(o)}catch(t){}return e}},function(t,n,e){e(5)&&"g"!=/./g.flags&&e(4).f(RegExp.prototype,"flags",{configurable:!0,get:e(46)})},function(t,n,e){e(36)("split",2,function(t,n,r){"use strict";var i=e(47),o=r,u=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var c=void 0===/()??/.exec("")[1];r=function(t,n){var e=String(this);if(void 0===t&&0===n)return[];if(!i(t))return o.call(e,t,n);var r,f,a,s,l,h=[],v=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,d=void 0===n?4294967295:n>>>0,y=new RegExp(t.source,v+"g");for(c||(r=new RegExp("^"+y.source+"$(?!\\s)",v));(f=y.exec(e))&&!((a=f.index+f[0].length)>p&&(h.push(e.slice(p,f.index)),!c&&f.length>1&&f[0].replace(r,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(f[l]=void 0)}),f.length>1&&f.index<e.length&&u.apply(h,f.slice(1)),s=f[0].length,p=a,h.length>=d));)y.lastIndex===f.index&&y.lastIndex++;return p===e.length?!s&&y.test("")||h.push(""):h.push(e.slice(p)),h.length>d?h.slice(0,d):h}}else"0".split(void 0,0).length&&(r=function(t,n){return void 0===t&&0===n?[]:o.call(this,t,n)});return[function(e,i){var o=t(this),u=void 0==e?void 0:e[n];return void 0!==u?u.call(e,o,i):r.call(String(o),e,i)},r]})},function(t,n,e){var r=e(2);r(r.S+r.F,"Object",{assign:e(72)})},function(t,n,e){"use strict";var r=e(10),i=e(37),o=e(19),u=e(18),c=e(31),f=Object.assign;t.exports=!f||e(6)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=f({},t)[e]||Object.keys(f({},n)).join("")!=r})?function(t,n){for(var e=u(t),f=arguments.length,a=1,s=i.f,l=o.f;f>a;)for(var h,v=c(arguments[a++]),p=s?r(v).concat(s(v)):r(v),d=p.length,y=0;d>y;)l.call(v,h=p[y++])&&(e[h]=v[h]);return e}:f},function(t,n,e){var r=e(16)("meta"),i=e(8),o=e(9),u=e(4).f,c=0,f=Object.isExtensible||function(){return!0},a=!e(6)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!f(t))return"F";if(!n)return"E";s(t)}return t[r].i},getWeak:function(t,n){if(!o(t,r)){if(!f(t))return!0;if(!n)return!1;s(t)}return t[r].w},onFreeze:function(t){return a&&l.NEED&&f(t)&&!o(t,r)&&s(t),t}}},function(t,n,e){var r=e(10),i=e(37),o=e(19);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var u,c=e(t),f=o.f,a=0;c.length>a;)f.call(t,u=c[a++])&&n.push(u);return n}},function(t,n,e){var r=e(11),i=e(51).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return u.slice()}}(t):i(r(t))}},function(t,n,e){var r=e(19),i=e(15),o=e(11),u=e(29),c=e(9),f=e(40),a=Object.getOwnPropertyDescriptor;n.f=e(5)?a:function(t,n){if(t=o(t),n=u(n,!0),f)try{return a(t,n)}catch(t){}if(c(t,n))return i(!r.f.call(t,n),t[n])}},function(t,n,e){var r=e(2),i=e(12),o=e(6);t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*o(function(){e(1)}),"Object",u)}},function(t,n,e){e(36)("search",1,function(t,n,e){return[function(e){"use strict";var r=t(this),i=void 0==e?void 0:e[n];return void 0!==i?i.call(e,r):new RegExp(e)[n](String(r))},e]})},function(t,n,e){e(36)("match",1,function(t,n,e){return[function(e){"use strict";var r=t(this),i=void 0==e?void 0:e[n];return void 0!==i?i.call(e,r):new RegExp(e)[n](String(r))},e]})},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(10),i=e(11),o=e(19).f;t.exports=function(t){return function(n){for(var e,u=i(n),c=r(u),f=c.length,a=0,s=[];f>a;)o.call(u,e=c[a++])&&s.push(t?[e,u[e]]:u[e]);return s}}},function(t,n,e){var r=e(30),i=e(31),o=e(18),u=e(23),c=e(83);t.exports=function(t,n){var e=1==t,f=2==t,a=3==t,s=4==t,l=6==t,h=5==t||l,v=n||c;return function(n,c,p){for(var d,y,g=o(n),m=i(g),b=r(c,p,3),x=u(m.length),_=0,O=e?v(n,x):f?v(n,0):void 0;x>_;_++)if((h||_ in m)&&(y=b(d=m[_],_,g),t))if(e)O[_]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return _;case 2:O.push(d)}else if(s)return!1;return l?-1:a||s?s:O}}},function(t,n,e){var r=e(84);t.exports=function(t,n){return new(r(t))(n)}},function(t,n,e){var r=e(8),i=e(50),o=e(0)("species");t.exports=function(t){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)||(n=void 0),r(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}},function(t,n,e){"use strict";var r=e(2),i=e(23),o=e(86),u="".startsWith;r(r.P+r.F*e(87)("startsWith"),"String",{startsWith:function(t){var n=o(this,t,"startsWith"),e=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),r=String(t);return u?u.call(n,r,e):n.slice(e,e+r.length)===r}})},function(t,n,e){var r=e(47),i=e(14);t.exports=function(t,n,e){if(r(n))throw TypeError("String#"+e+" doesn't accept regex!");return String(i(t))}},function(t,n,e){var r=e(0)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,e){"use strict";e.r(n);e(38),e(44),e(45),e(70),e(71),e(24),e(25),e(26),e(78),e(79),e(20),e(53),e(54),e(27),e(85);function r(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t);var r=n._tree,i=Object.keys(r);this.set=n,this.type=e,this.path=i.length>0?[{node:r,keys:i}]:[]}return function(t,n,e){n&&r(t.prototype,n),e&&r(t,e)}(t,[{key:"next",value:function(){var t=this.dive();return this.backtrack(),t}},{key:"dive",value:function(){if(0===this.path.length)return{done:!0};var t=a(this.path),n=t.node,e=t.keys;return a(e)===f?{done:!1,value:this.result()}:(this.path.push({node:n[a(e)],keys:Object.keys(n[a(e)])}),this.dive())}},{key:"backtrack",value:function(){0!==this.path.length&&(a(this.path).keys.pop(),a(this.path).keys.length>0||(this.path.pop(),this.backtrack()))}},{key:"key",value:function(){return this.set._prefix+this.path.map(function(t){var n=t.keys;return a(n)}).filter(function(t){return t!==f}).join("")}},{key:"value",value:function(){return a(this.path).node[f]}},{key:"result",value:function(){return this.type===c?this.value():this.type===u?this.key():[this.key(),this.value()]}},{key:Symbol.iterator,value:function(){return this}}]),t}(),o="ENTRIES",u="KEYS",c="VALUES",f="",a=function(t){return t[t.length-1]};function s(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=[],r=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(e.push(u.value),!n||e.length!==n);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return e}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var l=function(t,n,e){for(var r=[{distance:0,ia:arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,ib:0,edit:arguments.length>4&&void 0!==arguments[4]?arguments[4]:h}],i=[],o=[];r.length>0;){var u=r.pop(),c=u.distance,f=u.ia,a=u.ib,s=u.edit;if(i[f]=i[f]||[],!(i[f][a]&&i[f][a]<=c))if(i[f][a]=c,a!==n.length)if(t[f]===n[a])r.push({distance:c,ia:f+1,ib:a+1,edit:h});else{if(c>=e)continue;s!==p&&r.push({distance:c+1,ia:f,ib:a+1,edit:d}),f<t.length&&(s!==d&&r.push({distance:c+1,ia:f+1,ib:a,edit:p}),s!==d&&s!==p&&r.push({distance:c+1,ia:f+1,ib:a+1,edit:v}))}else o.push({distance:c,i:f,edit:s})}return o},h=0,v=1,p=2,d=3,y=function(t,n,e){for(var r=[{distance:0,i:0,key:"",node:t}],i={},o=function(){var t=r.pop(),o=t.node,u=t.distance,c=t.key,a=t.i,h=t.edit;Object.keys(o).forEach(function(t){if(t===f){var v=u+(n.length-a),p=s(i[c]||[null,1/0],2)[1];v<=e&&v<p&&(i[c]=[o[t],v])}else l(n,t,e-u,a,h).forEach(function(n){var e=n.distance,i=n.i,f=n.edit;r.push({node:o[t],distance:u+e,key:c+t,i:i,edit:f})})})};r.length>0;)o();return i};function g(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function m(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function b(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=[],r=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(e.push(u.value),!n||e.length!==n);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return e}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function x(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var _=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this._tree=n,this._prefix=e}return function(t,n,e){n&&x(t.prototype,n),e&&x(t,e)}(t,[{key:"atPrefix",value:function(n){if(!n.startsWith(this._prefix))throw new Error("Mismatched prefix");var e=b(w(this._tree,n.slice(this._prefix.length)),2),r=e[0],i=e[1];if(void 0===r){var o=b(A(i),2),u=o[0],c=o[1],a=Object.keys(u).find(function(t){return t!==f&&t.startsWith(c)});if(void 0!==a)return new t(m({},a.slice(c.length),u[a]),n)}return new t(r||{},n)}},{key:"clear",value:function(){delete this._size,this._tree={}}},{key:"delete",value:function(t){return delete this._size,E(this._tree,t)}},{key:"entries",value:function(){return new i(this,o)}},{key:"forEach",value:function(t){var n=!0,e=!1,r=void 0;try{for(var i,o=this[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var u=b(i.value,2);t(u[0],u[1],this)}}catch(t){e=!0,r=t}finally{try{n||null==o.return||o.return()}finally{if(e)throw r}}}},{key:"fuzzyGet",value:function(t,n){return y(this._tree,t,n)}},{key:"get",value:function(t){var n=S(this._tree,t);return void 0!==n?n[f]:void 0}},{key:"has",value:function(t){var n=S(this._tree,t);return void 0!==n&&n.hasOwnProperty(f)}},{key:"keys",value:function(){return new i(this,u)}},{key:"set",value:function(t,n){if("string"!=typeof t)throw new Error("key must be a string");return delete this._size,j(this._tree,t)[f]=n,this}},{key:"update",value:function(t,n){if("string"!=typeof t)throw new Error("key must be a string");delete this._size;var e=j(this._tree,t);return e[f]=n(e[f]),this}},{key:"values",value:function(){return new i(this,c)}},{key:Symbol.iterator,value:function(){return this.entries()}},{key:"size",get:function(){var t=this;return this._size?this._size:(this._size=0,this.forEach(function(){t._size+=1}),this._size)}}]),t}();_.from=function(t){var n=new _,e=!0,r=!1,i=void 0;try{for(var o,u=t[Symbol.iterator]();!(e=(o=u.next()).done);e=!0){var c=b(o.value,2),f=c[0],a=c[1];n.set(f,a)}}catch(t){r=!0,i=t}finally{try{e||null==u.return||u.return()}finally{if(r)throw i}}return n},_.fromObject=function(t){return _.from(Object.entries(t))};var O,w=function t(n,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(0===e.length)return[n,r];var i=Object.keys(n).find(function(t){return t!==f&&e.startsWith(t)});return void 0===i?t(void 0,"",g(r).concat([[n,e]])):t(n[i],e.slice(i.length),g(r).concat([[n,i]]))},S=function t(n,e){if(0===e.length)return n;var r=Object.keys(n).find(function(t){return t!==f&&e.startsWith(t)});return void 0!==r?t(n[r],e.slice(r.length)):void 0},j=function t(n,e){if(0===e.length)return n;var r=Object.keys(n).find(function(t){return t!==f&&e.startsWith(t)});if(void 0===r){var i=Object.keys(n).find(function(t){return t!==f&&t.startsWith(e[0])});if(void 0!==i){var o=k(e,i);return n[o]=m({},i.slice(o.length),n[i]),delete n[i],t(n[o],e.slice(o.length))}return n[e]={},n[e]}return t(n[r],e.slice(r.length))},k=function t(n,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Math.min(n.length,e.length),o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return r>=i?o:n[r]!==e[r]?o:t(n,e,r+1,i,o+n[r])},E=function(t,n){var e=b(w(t,n),2),r=e[0],i=e[1];if(void 0!==r){delete r[f];var o=Object.keys(r);0===o.length&&P(i),1===o.length&&L(i,o[0],r[o[0]])}},P=function t(n){if(0!==n.length){var e=b(A(n),2),r=e[0];delete r[e[1]],0===Object.keys(r).length&&t(n.slice(0,-1))}},L=function(t,n,e){if(0!==t.length){var r=b(A(t),2),i=r[0],o=r[1];i[o+n]=e,delete i[o]}},A=function(t){return t[t.length-1]},I=_;function z(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function T(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=[],r=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(e.push(u.value),!n||e.length!==n);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return e}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function F(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.forEach(function(n){C(t,n,e[n])})}return t}function C(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function M(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var N=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this._options=F({},Y,n),this._options.searchOptions=F({},q,this._options.searchOptions||{});var e=this._options.fields;if(null==e)throw new Error('Option "fields" must be provided');this._index=new I,this._documentCount=0,this._documentIds={},this._fieldIds={},this._fieldLength={},this._averageFieldLength={},J(this,e)}return function(t,n,e){n&&M(t.prototype,n),e&&M(t,e)}(t,[{key:"add",value:function(t){var n=this,e=this._options,r=e.tokenize,i=e.processTerm,o=e.fields,u=e.idField;if(null==t[u])throw new Error('Document does not have ID field "'.concat(u,'"'));var c=G(this,t[u]);o.forEach(function(e){var o=r(t[e]||"");H(n,c,n._fieldIds[e],n.documentCount-1,o.length),o.forEach(function(t){R(n,n._fieldIds[e],c,i(t))})})}},{key:"addAll",value:function(t){var n=this;t.forEach(function(t){return n.add(t)})}},{key:"remove",value:function(t){var n=this,e=this._options,r=e.tokenize,i=e.processTerm,o=e.fields,u=e.idField;if(null==t[u])throw new Error('Document does not have ID field "'.concat(u,'"'));var c=T(Object.entries(this._documentIds).find(function(n){var e=T(n,2),r=(e[0],e[1]);return t[u]===r})||[],1)[0];if(null==c)throw new Error("Cannot remove document with ID ".concat(t[u],": it is not in the index"));o.filter(function(n){return null!=t[n]}).forEach(function(e){r(t[e]).forEach(function(t){D(n,n._fieldIds[e],c,i(t))})}),this._documentCount-=1}},{key:"search",value:function(t){var n=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this._options,i=r.tokenize,o=r.processTerm,u=r.searchOptions;e=F({},u,e);var c=i(t).map(o).map(B(e)).map(function(t){return n.executeQuery(t,e)}),f=this.combineResults(c,e.combineWith);return Object.entries(f).map(function(t){var e=T(t,2),r=e[0],i=e[1],o=i.score,u=i.match,c=i.terms;return{id:n._documentIds[r],terms:Q(c),score:o,match:u}}).sort(function(t,n){return t.score<n.score?1:-1})}},{key:"autoSuggest",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=F({},$,n);var e=this.search(t,n).reduce(function(t,n){var e=n.score,r=n.terms,i=r.join(" ");return null==t[i]?t[i]={score:e,terms:r,count:1}:(t[i].score+=e,t[i].count+=1),t},{});return Object.entries(e).map(function(t){var n=T(t,2),e=n[0],r=n[1],i=r.score;return{suggestion:e,terms:r.terms,score:i/r.count}}).sort(function(t,n){return t.score<n.score?1:-1})}},{key:"executeQuery",value:function(t){var n=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=((e=F({},this._options.searchOptions,e)).fields||this._options.fields).reduce(function(t,n){return F({},t,C({},n,t[n]||1))},e.boost||{}),i=e,o=i.boostDocument,u=i.weights,c=u.fuzzy,f=void 0===c?.9:c,a=u.prefix,s=void 0===a?.75:a,l=V(this,t.term,r,o,this._index.get(t.term));if(!t.fuzzy&&!t.prefix)return l;var h=[l];if(t.prefix&&this._index.atPrefix(t.term).forEach(function(e,i){var u=.3*(e.length-t.term.length)/e.length;h.push(V(n,e,r,o,i,s,u))}),t.fuzzy){var v=t.fuzzy<1?Math.round(t.term.length*t.fuzzy):t.fuzzy;Object.entries(this._index.fuzzyGet(t.term,v)).forEach(function(t){var e=T(t,2),i=e[0],u=T(e[1],2),c=u[0],a=u[1]/i.length;h.push(V(n,i,r,o,c,f,a))})}return h.reduce(K.or,{})}},{key:"combineResults",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"or";if(0===t.length)return{};var e=n.toLowerCase();return t.reduce(K[e],null)}},{key:"toJSON",value:function(){return{index:this._index,documentCount:this._documentCount,documentIds:this._documentIds,fieldIds:this._fieldIds,fieldLength:this._fieldLength,averageFieldLength:this._averageFieldLength}}},{key:"documentCount",get:function(){return this._documentCount}}]),t}();N.loadJSON=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return N.loadJS(JSON.parse(t),n)},N.loadJS=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.index,r=e._tree,i=e._prefix,o=t.documentCount,u=t.documentIds,c=t.fieldIds,f=t.fieldLength,a=t.averageFieldLength,s=new N(n);return s._index=new I(r,i),s._documentCount=o,s._documentIds=u,s._fieldIds=c,s._fieldLength=f,s._averageFieldLength=a,s._fieldIds=c,s},N.SearchableMap=I;var R=function(t,n,e,r){t._index.update(r,function(t){var r=(t=t||{})[n]||{df:0,ds:{}};return null==r.ds[e]&&(r.df+=1),r.ds[e]=(r.ds[e]||0)+1,F({},t,C({},n,r))})},D=function(t,n,e,r){t._index.has(r)?(t._index.update(r,function(i){var o=i[n];return null==o||null==o.ds[e]?(W(t,e,n,r),i):o.df<=1?(delete i[n],i):(o.df-=1,o.ds[e]<=1?(delete o.ds[e],i):(o.ds[e]-=1,F({},i,C({},n,o))))}),0===Object.keys(t._index.get(r)).length&&t._index.delete(r)):W(t,e,n,r)},W=function(t,n,e,r){if(null!=console&&null!=console.warn){var i=Object.entries(t._fieldIds).find(function(t){var n=T(t,2);n[0];return n[1]===e})[0];console.warn("MiniSearch: document with ID ".concat(t._documentIds[n],' has changed before removal: term "').concat(r,'" was not present in field "').concat(i,'". Removing a document after it has changed can corrupt the index!'))}},G=function(t,n){var e=t._documentCount;return t._documentIds[e]=n,t._documentCount+=1,e},J=function(t,n){n.forEach(function(n,e){t._fieldIds[n]=e})},V=function(t,n,e,r,i){arguments.length>5&&void 0!==arguments[5]&&arguments[5];var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;return null==i?{}:Object.entries(e).reduce(function(e,u){var c=T(u,2),f=c[0],a=c[1],s=t._fieldIds[f],l=i[s]||{ds:{}},h=l.df,v=l.ds;return Object.entries(v).forEach(function(i){var u=T(i,2),c=u[0],l=u[1],v=r?r(t._documentIds[c],n):1;if(v){var p=t._fieldLength[c][s]/t._averageFieldLength[s];e[c]=e[c]||{score:0,match:{},terms:[]},e[c].terms.push(n),e[c].match[n]=e[c].match[n]||[],e[c].score+=v*U(l,h,t._documentCount,p,a,o),e[c].match[n].push(f)}}),e},{})},H=function(t,n,e,r,i){t._averageFieldLength[e]=t._averageFieldLength[e]||0;var o=t._averageFieldLength[e]*r+i;t._fieldLength[n]=t._fieldLength[n]||{},t._fieldLength[n][e]=i,t._averageFieldLength[e]=o/(r+1)},K=(C(O={},"or",function(t,n){return Object.entries(n).reduce(function(t,n){var e=T(n,2),r=e[0],i=e[1],o=i.score,u=i.match,c=i.terms;return null==t[r]?t[r]={score:o,match:u,terms:c}:(t[r].score+=o,t[r].score*=1.5,t[r].terms=z(t[r].terms).concat(z(c)),Object.assign(t[r].match,u)),t},t||{})}),C(O,"and",function(t,n){return null==t?n:Object.entries(n).reduce(function(n,e){var r=T(e,2),i=r[0],o=r[1],u=o.score,c=o.match,f=o.terms;return void 0===t[i]?n:(n[i]=n[i]||{},n[i].score=t[i].score+u,n[i].match=F({},t[i].match,c),n[i].terms=z(t[i].terms).concat(z(f)),n)},{})}),O),U=function(t,n,e,r,i,o){return i/(1+.333*i*o)*function(t,n,e){return t*Math.log(e/n)}(t,n,e)/r},B=function(t){return function(n,e,r){return{term:n,fuzzy:"function"==typeof t.fuzzy?t.fuzzy(n,e,r):t.fuzzy,prefix:"function"==typeof t.prefix?t.prefix(n,e,r):t.prefix}}},Q=function(t){return t.filter(function(t,n,e){return e.indexOf(t)===n})},Y={idField:"id",tokenize:function(t){return t.split(/\W+/).filter(function(t){return t.length>1})},processTerm:function(t){return t.toLowerCase()}},q={combineWith:"or",prefix:!1,fuzzy:!1,weights:{}},$={prefix:!0},X=N;n.default=X}]).default});
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("minisearch",[],n):"object"==typeof exports?exports.minisearch=n():t.minisearch=n()}("undefined"!=typeof self?self:this,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=88)}([function(t,n,e){var r=e(33)("wks"),i=e(16),o=e(1).Symbol,u="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=r},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){var r=e(1),i=e(12),o=e(3),u=e(13),c=e(30),f=function(t,n,e){var a,s,l,h,v=t&f.F,d=t&f.G,p=t&f.S,y=t&f.P,g=t&f.B,m=d?r:p?r[n]||(r[n]={}):(r[n]||{}).prototype,b=d?i:i[n]||(i[n]={}),x=b.prototype||(b.prototype={});for(a in d&&(e=n),e)l=((s=!v&&m&&void 0!==m[a])?m:e)[a],h=g&&s?c(l,r):y&&"function"==typeof l?c(Function.call,l):l,m&&u(m,a,l,t&f.U),b[a]!=l&&o(b,a,h),y&&x[a]!=l&&(x[a]=l)};r.core=i,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,n,e){var r=e(4),i=e(15);t.exports=e(5)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(7),i=e(40),o=e(29),u=Object.defineProperty;n.f=e(5)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){t.exports=!e(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(8);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(43),i=e(34);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n,e){var r=e(31),i=e(14);t.exports=function(t){return r(i(t))}},function(t,n){var e=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(1),i=e(3),o=e(9),u=e(16)("src"),c=Function.toString,f=(""+c).split("toString");e(12).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,e,c){var a="function"==typeof e;a&&(o(e,"name")||i(e,"name",n)),t[n]!==e&&(a&&(o(e,u)||i(e,u,t[n]?""+t[n]:f.join(String(n)))),t===r?t[n]=e:c?t[n]?t[n]=e:i(t,n,e):(delete t[n],i(t,n,e)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){t.exports={}},function(t,n,e){var r=e(14);t.exports=function(t){return Object(r(t))}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){"use strict";var r=e(52),i=e(80),o=e(17),u=e(11);t.exports=e(39)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,i(1)):i(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,n){t.exports=!1},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(28),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n,e){e(48)("asyncIterator")},function(t,n,e){"use strict";var r=e(1),i=e(9),o=e(5),u=e(2),c=e(13),f=e(73).KEY,a=e(6),s=e(33),l=e(35),h=e(16),v=e(0),d=e(49),p=e(48),y=e(74),g=e(50),m=e(7),b=e(8),x=e(11),_=e(29),O=e(15),w=e(42),S=e(75),j=e(76),k=e(4),E=e(10),I=j.f,P=k.f,L=S.f,A=r.Symbol,z=r.JSON,T=z&&z.stringify,F=v("_hidden"),M=v("toPrimitive"),C={}.propertyIsEnumerable,N=s("symbol-registry"),R=s("symbols"),D=s("op-symbols"),W=Object.prototype,G="function"==typeof A,J=r.QObject,V=!J||!J.prototype||!J.prototype.findChild,H=o&&a(function(){return 7!=w(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=I(W,n);r&&delete W[n],P(t,n,e),r&&t!==W&&P(W,n,r)}:P,K=function(t){var n=R[t]=w(A.prototype);return n._k=t,n},U=G&&"symbol"==typeof A.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof A},B=function(t,n,e){return t===W&&B(D,n,e),m(t),n=_(n,!0),m(e),i(R,n)?(e.enumerable?(i(t,F)&&t[F][n]&&(t[F][n]=!1),e=w(e,{enumerable:O(0,!1)})):(i(t,F)||P(t,F,O(1,{})),t[F][n]=!0),H(t,n,e)):P(t,n,e)},Q=function(t,n){m(t);for(var e,r=y(n=x(n)),i=0,o=r.length;o>i;)B(t,e=r[i++],n[e]);return t},Y=function(t){var n=C.call(this,t=_(t,!0));return!(this===W&&i(R,t)&&!i(D,t))&&(!(n||!i(this,t)||!i(R,t)||i(this,F)&&this[F][t])||n)},q=function(t,n){if(t=x(t),n=_(n,!0),t!==W||!i(R,n)||i(D,n)){var e=I(t,n);return!e||!i(R,n)||i(t,F)&&t[F][n]||(e.enumerable=!0),e}},$=function(t){for(var n,e=L(x(t)),r=[],o=0;e.length>o;)i(R,n=e[o++])||n==F||n==f||r.push(n);return r},X=function(t){for(var n,e=t===W,r=L(e?D:x(t)),o=[],u=0;r.length>u;)!i(R,n=r[u++])||e&&!i(W,n)||o.push(R[n]);return o};G||(c((A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(e){this===W&&n.call(D,e),i(this,F)&&i(this[F],t)&&(this[F][t]=!1),H(this,t,O(1,e))};return o&&V&&H(W,t,{configurable:!0,set:n}),K(t)}).prototype,"toString",function(){return this._k}),j.f=q,k.f=B,e(51).f=S.f=$,e(19).f=Y,e(37).f=X,o&&!e(21)&&c(W,"propertyIsEnumerable",Y,!0),d.f=function(t){return K(v(t))}),u(u.G+u.W+u.F*!G,{Symbol:A});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)v(Z[tt++]);for(var nt=E(v.store),et=0;nt.length>et;)p(nt[et++]);u(u.S+u.F*!G,"Symbol",{for:function(t){return i(N,t+="")?N[t]:N[t]=A(t)},keyFor:function(t){if(!U(t))throw TypeError(t+" is not a symbol!");for(var n in N)if(N[n]===t)return n},useSetter:function(){V=!0},useSimple:function(){V=!1}}),u(u.S+u.F*!G,"Object",{create:function(t,n){return void 0===n?w(t):Q(w(t),n)},defineProperty:B,defineProperties:Q,getOwnPropertyDescriptor:q,getOwnPropertyNames:$,getOwnPropertySymbols:X}),z&&u(u.S+u.F*(!G||a(function(){var t=A();return"[null]"!=T([t])||"{}"!=T({a:t})||"{}"!=T(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(e=n=r[1],(b(n)||void 0!==t)&&!U(t))return g(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!U(n))return n}),r[1]=n,T.apply(z,r)}}),A.prototype[M]||e(3)(A.prototype,M,A.prototype.valueOf),l(A,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){var r=e(18),i=e(10);e(77)("keys",function(){return function(t){return i(r(t))}})},function(t,n,e){for(var r=e(20),i=e(10),o=e(13),u=e(1),c=e(3),f=e(17),a=e(0),s=a("iterator"),l=a("toStringTag"),h=f.Array,v={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(v),p=0;p<d.length;p++){var y,g=d[p],m=v[g],b=u[g],x=b&&b.prototype;if(x&&(x[s]||c(x,s,h),x[l]||c(x,l,g),f[g]=h,m))for(y in r)x[y]||o(x,y,r[y],!0)}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(8);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(56);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(22);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(33)("keys"),i=e(16);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n,e){var r=e(12),i=e(1),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(21)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(4).f,i=e(9),o=e(0)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},function(t,n,e){"use strict";var r=e(3),i=e(13),o=e(6),u=e(14),c=e(0);t.exports=function(t,n,e){var f=c(t),a=e(u,f,""[t]),s=a[0],l=a[1];o(function(){var n={};return n[f]=function(){return 7},7!=""[t](n)})&&(i(String.prototype,t,s),r(RegExp.prototype,f,2==n?function(t,n){return l.call(t,this,n)}:function(t){return l.call(t,this)}))}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){"use strict";var r=e(55)(!0);e(39)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){"use strict";var r=e(21),i=e(2),o=e(13),u=e(3),c=e(17),f=e(57),a=e(35),s=e(62),l=e(0)("iterator"),h=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,e,d,p,y,g){f(e,n,d);var m,b,x,_=function(t){if(!h&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},O=n+" Iterator",w="values"==p,S=!1,j=t.prototype,k=j[l]||j["@@iterator"]||p&&j[p],E=k||_(p),I=p?w?_("entries"):E:void 0,P="Array"==n&&j.entries||k;if(P&&(x=s(P.call(new t)))!==Object.prototype&&x.next&&(a(x,O,!0),r||"function"==typeof x[l]||u(x,l,v)),w&&k&&"values"!==k.name&&(S=!0,E=function(){return k.call(this)}),r&&!g||!h&&!S&&j[l]||u(j,l,E),c[n]=E,c[O]=v,p)if(m={values:w?E:_("values"),keys:y?E:_("keys"),entries:I},g)for(b in m)b in j||o(j,b,m[b]);else i(i.P+i.F*(h||S),n,m);return m}},function(t,n,e){t.exports=!e(5)&&!e(6)(function(){return 7!=Object.defineProperty(e(41)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(8),i=e(1).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,e){var r=e(7),i=e(58),o=e(34),u=e(32)("IE_PROTO"),c=function(){},f=function(){var t,n=e(41)("iframe"),r=o.length;for(n.style.display="none",e(61).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;r--;)delete f.prototype[o[r]];return f()};t.exports=Object.create||function(t,n){var e;return null!==t?(c.prototype=r(t),e=new c,c.prototype=null,e[u]=t):e=f(),void 0===n?e:i(e,n)}},function(t,n,e){var r=e(9),i=e(11),o=e(59)(!1),u=e(32)("IE_PROTO");t.exports=function(t,n){var e,c=i(t),f=0,a=[];for(e in c)e!=u&&r(c,e)&&a.push(e);for(;n.length>f;)r(c,e=n[f++])&&(~o(a,e)||a.push(e));return a}},function(t,n,e){"use strict";var r=e(30),i=e(2),o=e(18),u=e(63),c=e(64),f=e(23),a=e(65),s=e(66);i(i.S+i.F*!e(68)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,i,l,h=o(t),v="function"==typeof this?this:Array,d=arguments.length,p=d>1?arguments[1]:void 0,y=void 0!==p,g=0,m=s(h);if(y&&(p=r(p,d>2?arguments[2]:void 0,2)),void 0==m||v==Array&&c(m))for(e=new v(n=f(h.length));n>g;g++)a(e,g,y?p(h[g],g):h[g]);else for(l=m.call(h),e=new v;!(i=l.next()).done;g++)a(e,g,y?u(l,p,[i.value,g],!0):i.value);return e.length=g,e}})},function(t,n,e){"use strict";e(69);var r=e(7),i=e(46),o=e(5),u=/./.toString,c=function(t){e(13)(RegExp.prototype,"toString",t,!0)};e(6)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?c(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):"toString"!=u.name&&c(function(){return u.call(this)})},function(t,n,e){"use strict";var r=e(7);t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,e){var r=e(8),i=e(22),o=e(0)("match");t.exports=function(t){var n;return r(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},function(t,n,e){var r=e(1),i=e(12),o=e(21),u=e(49),c=e(4).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,e){n.f=e(0)},function(t,n,e){var r=e(22);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(43),i=e(34).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,n,e){var r=e(0)("unscopables"),i=Array.prototype;void 0==i[r]&&e(3)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,n,e){var r=e(2),i=e(81)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,n,e){"use strict";var r=e(2),i=e(82)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e(52)("find")},function(t,n,e){var r=e(28),i=e(14);t.exports=function(t){return function(n,e){var o,u,c=String(i(n)),f=r(e),a=c.length;return f<0||f>=a?t?"":void 0:(o=c.charCodeAt(f))<55296||o>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):o:t?c.slice(f,f+2):u-56320+(o-55296<<10)+65536}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){"use strict";var r=e(42),i=e(15),o=e(35),u={};e(3)(u,e(0)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:i(1,e)}),o(t,n+" Iterator")}},function(t,n,e){var r=e(4),i=e(7),o=e(10);t.exports=e(5)?Object.defineProperties:function(t,n){i(t);for(var e,u=o(n),c=u.length,f=0;c>f;)r.f(t,e=u[f++],n[e]);return t}},function(t,n,e){var r=e(11),i=e(23),o=e(60);t.exports=function(t){return function(n,e,u){var c,f=r(n),a=i(f.length),s=o(u,a);if(t&&e!=e){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===e)return t||s||0;return!t&&-1}}},function(t,n,e){var r=e(28),i=Math.max,o=Math.min;t.exports=function(t,n){return(t=r(t))<0?i(t+n,0):o(t,n)}},function(t,n,e){var r=e(1).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(9),i=e(18),o=e(32)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(7);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&r(o.call(t)),n}}},function(t,n,e){var r=e(17),i=e(0)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,n,e){"use strict";var r=e(4),i=e(15);t.exports=function(t,n,e){n in t?r.f(t,n,i(0,e)):t[n]=e}},function(t,n,e){var r=e(67),i=e(0)("iterator"),o=e(17);t.exports=e(12).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,n,e){var r=e(22),i=e(0)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var n,e,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?e:o?r(n):"Object"==(u=r(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,e){var r=e(0)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var o=[7],u=o[r]();u.next=function(){return{done:e=!0}},o[r]=function(){return u},t(o)}catch(t){}return e}},function(t,n,e){e(5)&&"g"!=/./g.flags&&e(4).f(RegExp.prototype,"flags",{configurable:!0,get:e(46)})},function(t,n,e){e(36)("split",2,function(t,n,r){"use strict";var i=e(47),o=r,u=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var c=void 0===/()??/.exec("")[1];r=function(t,n){var e=String(this);if(void 0===t&&0===n)return[];if(!i(t))return o.call(e,t,n);var r,f,a,s,l,h=[],v=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,p=void 0===n?4294967295:n>>>0,y=new RegExp(t.source,v+"g");for(c||(r=new RegExp("^"+y.source+"$(?!\\s)",v));(f=y.exec(e))&&!((a=f.index+f[0].length)>d&&(h.push(e.slice(d,f.index)),!c&&f.length>1&&f[0].replace(r,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(f[l]=void 0)}),f.length>1&&f.index<e.length&&u.apply(h,f.slice(1)),s=f[0].length,d=a,h.length>=p));)y.lastIndex===f.index&&y.lastIndex++;return d===e.length?!s&&y.test("")||h.push(""):h.push(e.slice(d)),h.length>p?h.slice(0,p):h}}else"0".split(void 0,0).length&&(r=function(t,n){return void 0===t&&0===n?[]:o.call(this,t,n)});return[function(e,i){var o=t(this),u=void 0==e?void 0:e[n];return void 0!==u?u.call(e,o,i):r.call(String(o),e,i)},r]})},function(t,n,e){var r=e(2);r(r.S+r.F,"Object",{assign:e(72)})},function(t,n,e){"use strict";var r=e(10),i=e(37),o=e(19),u=e(18),c=e(31),f=Object.assign;t.exports=!f||e(6)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=f({},t)[e]||Object.keys(f({},n)).join("")!=r})?function(t,n){for(var e=u(t),f=arguments.length,a=1,s=i.f,l=o.f;f>a;)for(var h,v=c(arguments[a++]),d=s?r(v).concat(s(v)):r(v),p=d.length,y=0;p>y;)l.call(v,h=d[y++])&&(e[h]=v[h]);return e}:f},function(t,n,e){var r=e(16)("meta"),i=e(8),o=e(9),u=e(4).f,c=0,f=Object.isExtensible||function(){return!0},a=!e(6)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!f(t))return"F";if(!n)return"E";s(t)}return t[r].i},getWeak:function(t,n){if(!o(t,r)){if(!f(t))return!0;if(!n)return!1;s(t)}return t[r].w},onFreeze:function(t){return a&&l.NEED&&f(t)&&!o(t,r)&&s(t),t}}},function(t,n,e){var r=e(10),i=e(37),o=e(19);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var u,c=e(t),f=o.f,a=0;c.length>a;)f.call(t,u=c[a++])&&n.push(u);return n}},function(t,n,e){var r=e(11),i=e(51).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return u.slice()}}(t):i(r(t))}},function(t,n,e){var r=e(19),i=e(15),o=e(11),u=e(29),c=e(9),f=e(40),a=Object.getOwnPropertyDescriptor;n.f=e(5)?a:function(t,n){if(t=o(t),n=u(n,!0),f)try{return a(t,n)}catch(t){}if(c(t,n))return i(!r.f.call(t,n),t[n])}},function(t,n,e){var r=e(2),i=e(12),o=e(6);t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*o(function(){e(1)}),"Object",u)}},function(t,n,e){e(36)("search",1,function(t,n,e){return[function(e){"use strict";var r=t(this),i=void 0==e?void 0:e[n];return void 0!==i?i.call(e,r):new RegExp(e)[n](String(r))},e]})},function(t,n,e){e(36)("match",1,function(t,n,e){return[function(e){"use strict";var r=t(this),i=void 0==e?void 0:e[n];return void 0!==i?i.call(e,r):new RegExp(e)[n](String(r))},e]})},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(10),i=e(11),o=e(19).f;t.exports=function(t){return function(n){for(var e,u=i(n),c=r(u),f=c.length,a=0,s=[];f>a;)o.call(u,e=c[a++])&&s.push(t?[e,u[e]]:u[e]);return s}}},function(t,n,e){var r=e(30),i=e(31),o=e(18),u=e(23),c=e(83);t.exports=function(t,n){var e=1==t,f=2==t,a=3==t,s=4==t,l=6==t,h=5==t||l,v=n||c;return function(n,c,d){for(var p,y,g=o(n),m=i(g),b=r(c,d,3),x=u(m.length),_=0,O=e?v(n,x):f?v(n,0):void 0;x>_;_++)if((h||_ in m)&&(y=b(p=m[_],_,g),t))if(e)O[_]=y;else if(y)switch(t){case 3:return!0;case 5:return p;case 6:return _;case 2:O.push(p)}else if(s)return!1;return l?-1:a||s?s:O}}},function(t,n,e){var r=e(84);t.exports=function(t,n){return new(r(t))(n)}},function(t,n,e){var r=e(8),i=e(50),o=e(0)("species");t.exports=function(t){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)||(n=void 0),r(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}},function(t,n,e){"use strict";var r=e(2),i=e(23),o=e(86),u="".startsWith;r(r.P+r.F*e(87)("startsWith"),"String",{startsWith:function(t){var n=o(this,t,"startsWith"),e=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),r=String(t);return u?u.call(n,r,e):n.slice(e,e+r.length)===r}})},function(t,n,e){var r=e(47),i=e(14);t.exports=function(t,n,e){if(r(n))throw TypeError("String#"+e+" doesn't accept regex!");return String(i(t))}},function(t,n,e){var r=e(0)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,e){"use strict";e.r(n);e(38),e(44),e(45),e(70),e(71),e(24),e(25),e(26),e(78),e(79),e(20),e(53),e(54),e(27),e(85);function r(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t);var r=n._tree,i=Object.keys(r);this.set=n,this.type=e,this.path=i.length>0?[{node:r,keys:i}]:[]}return function(t,n,e){n&&r(t.prototype,n),e&&r(t,e)}(t,[{key:"next",value:function(){var t=this.dive();return this.backtrack(),t}},{key:"dive",value:function(){if(0===this.path.length)return{done:!0};var t=a(this.path),n=t.node,e=t.keys;return a(e)===f?{done:!1,value:this.result()}:(this.path.push({node:n[a(e)],keys:Object.keys(n[a(e)])}),this.dive())}},{key:"backtrack",value:function(){0!==this.path.length&&(a(this.path).keys.pop(),a(this.path).keys.length>0||(this.path.pop(),this.backtrack()))}},{key:"key",value:function(){return this.set._prefix+this.path.map(function(t){var n=t.keys;return a(n)}).filter(function(t){return t!==f}).join("")}},{key:"value",value:function(){return a(this.path).node[f]}},{key:"result",value:function(){return this.type===c?this.value():this.type===u?this.key():[this.key(),this.value()]}},{key:Symbol.iterator,value:function(){return this}}]),t}(),o="ENTRIES",u="KEYS",c="VALUES",f="",a=function(t){return t[t.length-1]};function s(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=[],r=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(e.push(u.value),!n||e.length!==n);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return e}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var l=function(t,n,e){for(var r=[{distance:0,ia:arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,ib:0,edit:arguments.length>4&&void 0!==arguments[4]?arguments[4]:h}],i=[],o=[];r.length>0;){var u=r.pop(),c=u.distance,f=u.ia,a=u.ib,s=u.edit;if(i[f]=i[f]||[],!(i[f][a]&&i[f][a]<=c))if(i[f][a]=c,a!==n.length)if(t[f]===n[a])r.push({distance:c,ia:f+1,ib:a+1,edit:h});else{if(c>=e)continue;s!==d&&r.push({distance:c+1,ia:f,ib:a+1,edit:p}),f<t.length&&(s!==p&&r.push({distance:c+1,ia:f+1,ib:a,edit:d}),s!==p&&s!==d&&r.push({distance:c+1,ia:f+1,ib:a+1,edit:v}))}else o.push({distance:c,i:f,edit:s})}return o},h=0,v=1,d=2,p=3,y=function(t,n,e){for(var r=[{distance:0,i:0,key:"",node:t}],i={},o=function(){var t=r.pop(),o=t.node,u=t.distance,c=t.key,a=t.i,h=t.edit;Object.keys(o).forEach(function(t){if(t===f){var v=u+(n.length-a),d=s(i[c]||[null,1/0],2)[1];v<=e&&v<d&&(i[c]=[o[t],v])}else l(n,t,e-u,a,h).forEach(function(n){var e=n.distance,i=n.i,f=n.edit;r.push({node:o[t],distance:u+e,key:c+t,i:i,edit:f})})})};r.length>0;)o();return i};function g(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function m(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function b(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=[],r=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(e.push(u.value),!n||e.length!==n);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return e}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function x(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var _=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this._tree=n,this._prefix=e}return function(t,n,e){n&&x(t.prototype,n),e&&x(t,e)}(t,[{key:"atPrefix",value:function(n){if(!n.startsWith(this._prefix))throw new Error("Mismatched prefix");var e=b(w(this._tree,n.slice(this._prefix.length)),2),r=e[0],i=e[1];if(void 0===r){var o=b(L(i),2),u=o[0],c=o[1],a=Object.keys(u).find(function(t){return t!==f&&t.startsWith(c)});if(void 0!==a)return new t(m({},a.slice(c.length),u[a]),n)}return new t(r||{},n)}},{key:"clear",value:function(){delete this._size,this._tree={}}},{key:"delete",value:function(t){return delete this._size,E(this._tree,t)}},{key:"entries",value:function(){return new i(this,o)}},{key:"forEach",value:function(t){var n=!0,e=!1,r=void 0;try{for(var i,o=this[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var u=b(i.value,2);t(u[0],u[1],this)}}catch(t){e=!0,r=t}finally{try{n||null==o.return||o.return()}finally{if(e)throw r}}}},{key:"fuzzyGet",value:function(t,n){return y(this._tree,t,n)}},{key:"get",value:function(t){var n=S(this._tree,t);return void 0!==n?n[f]:void 0}},{key:"has",value:function(t){var n=S(this._tree,t);return void 0!==n&&n.hasOwnProperty(f)}},{key:"keys",value:function(){return new i(this,u)}},{key:"set",value:function(t,n){if("string"!=typeof t)throw new Error("key must be a string");return delete this._size,j(this._tree,t)[f]=n,this}},{key:"update",value:function(t,n){if("string"!=typeof t)throw new Error("key must be a string");delete this._size;var e=j(this._tree,t);return e[f]=n(e[f]),this}},{key:"values",value:function(){return new i(this,c)}},{key:Symbol.iterator,value:function(){return this.entries()}},{key:"size",get:function(){var t=this;return this._size?this._size:(this._size=0,this.forEach(function(){t._size+=1}),this._size)}}]),t}();_.from=function(t){var n=new _,e=!0,r=!1,i=void 0;try{for(var o,u=t[Symbol.iterator]();!(e=(o=u.next()).done);e=!0){var c=b(o.value,2),f=c[0],a=c[1];n.set(f,a)}}catch(t){r=!0,i=t}finally{try{e||null==u.return||u.return()}finally{if(r)throw i}}return n},_.fromObject=function(t){return _.from(Object.entries(t))};var O,w=function t(n,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(0===e.length)return[n,r];var i=Object.keys(n).find(function(t){return t!==f&&e.startsWith(t)});return void 0===i?t(void 0,"",g(r).concat([[n,e]])):t(n[i],e.slice(i.length),g(r).concat([[n,i]]))},S=function t(n,e){if(0===e.length)return n;var r=Object.keys(n).find(function(t){return t!==f&&e.startsWith(t)});return void 0!==r?t(n[r],e.slice(r.length)):void 0},j=function t(n,e){if(0===e.length)return n;var r=Object.keys(n).find(function(t){return t!==f&&e.startsWith(t)});if(void 0===r){var i=Object.keys(n).find(function(t){return t!==f&&t.startsWith(e[0])});if(void 0!==i){var o=k(e,i);return n[o]=m({},i.slice(o.length),n[i]),delete n[i],t(n[o],e.slice(o.length))}return n[e]={},n[e]}return t(n[r],e.slice(r.length))},k=function t(n,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Math.min(n.length,e.length),o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return r>=i?o:n[r]!==e[r]?o:t(n,e,r+1,i,o+n[r])},E=function(t,n){var e=b(w(t,n),2),r=e[0],i=e[1];if(void 0!==r){delete r[f];var o=Object.keys(r);0===o.length&&I(i),1===o.length&&P(i,o[0],r[o[0]])}},I=function t(n){if(0!==n.length){var e=b(L(n),2),r=e[0];delete r[e[1]],0===Object.keys(r).length&&t(n.slice(0,-1))}},P=function(t,n,e){if(0!==t.length){var r=b(L(t),2),i=r[0],o=r[1];i[o+n]=e,delete i[o]}},L=function(t){return t[t.length-1]},A=_;function z(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function T(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=[],r=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(e.push(u.value),!n||e.length!==n);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return e}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function F(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.forEach(function(n){M(t,n,e[n])})}return t}function M(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function C(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var N=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this._options=F({},Y,n),this._options.searchOptions=F({},q,this._options.searchOptions||{});var e=this._options.fields;if(null==e)throw new Error('Option "fields" must be provided');this._index=new A,this._documentCount=0,this._documentIds={},this._fieldIds={},this._fieldLength={},this._averageFieldLength={},this._nextId=0,J(this,e)}return function(t,n,e){n&&C(t.prototype,n),e&&C(t,e)}(t,[{key:"add",value:function(t){var n=this,e=this._options,r=e.tokenize,i=e.processTerm,o=e.fields,u=e.idField;if(null==t[u])throw new Error('Document does not have ID field "'.concat(u,'"'));var c=G(this,t[u]);o.forEach(function(e){var o=r(t[e]||"");H(n,c,n._fieldIds[e],n.documentCount-1,o.length),o.forEach(function(t){R(n,n._fieldIds[e],c,i(t))})})}},{key:"addAll",value:function(t){var n=this;t.forEach(function(t){return n.add(t)})}},{key:"remove",value:function(t){var n=this,e=this._options,r=e.tokenize,i=e.processTerm,o=e.fields,u=e.idField;if(null==t[u])throw new Error('Document does not have ID field "'.concat(u,'"'));var c=T(Object.entries(this._documentIds).find(function(n){var e=T(n,2),r=(e[0],e[1]);return t[u]===r})||[],1)[0];if(null==c)throw new Error("Cannot remove document with ID ".concat(t[u],": it is not in the index"));o.filter(function(n){return null!=t[n]}).forEach(function(e){r(t[e]).forEach(function(t){D(n,n._fieldIds[e],c,i(t))})}),this._documentCount-=1}},{key:"search",value:function(t){var n=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this._options,i=r.tokenize,o=r.processTerm,u=r.searchOptions;e=F({},u,e);var c=i(t).map(o).map(B(e)).map(function(t){return n.executeQuery(t,e)}),f=this.combineResults(c,e.combineWith);return Object.entries(f).map(function(t){var e=T(t,2),r=e[0],i=e[1],o=i.score,u=i.match,c=i.terms;return{id:n._documentIds[r],terms:Q(c),score:o,match:u}}).sort(function(t,n){return t.score<n.score?1:-1})}},{key:"autoSuggest",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=F({},$,n);var e=this.search(t,n).reduce(function(t,n){var e=n.score,r=n.terms,i=r.join(" ");return null==t[i]?t[i]={score:e,terms:r,count:1}:(t[i].score+=e,t[i].count+=1),t},{});return Object.entries(e).map(function(t){var n=T(t,2),e=n[0],r=n[1],i=r.score;return{suggestion:e,terms:r.terms,score:i/r.count}}).sort(function(t,n){return t.score<n.score?1:-1})}},{key:"executeQuery",value:function(t){var n=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=((e=F({},this._options.searchOptions,e)).fields||this._options.fields).reduce(function(t,n){return F({},t,M({},n,t[n]||1))},e.boost||{}),i=e,o=i.boostDocument,u=i.weights,c=u.fuzzy,f=void 0===c?.9:c,a=u.prefix,s=void 0===a?.75:a,l=V(this,t.term,r,o,this._index.get(t.term));if(!t.fuzzy&&!t.prefix)return l;var h=[l];if(t.prefix&&this._index.atPrefix(t.term).forEach(function(e,i){var u=.3*(e.length-t.term.length)/e.length;h.push(V(n,e,r,o,i,s,u))}),t.fuzzy){var v=t.fuzzy<1?Math.round(t.term.length*t.fuzzy):t.fuzzy;Object.entries(this._index.fuzzyGet(t.term,v)).forEach(function(t){var e=T(t,2),i=e[0],u=T(e[1],2),c=u[0],a=u[1]/i.length;h.push(V(n,i,r,o,c,f,a))})}return h.reduce(K.or,{})}},{key:"combineResults",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"or";if(0===t.length)return{};var e=n.toLowerCase();return t.reduce(K[e],null)}},{key:"toJSON",value:function(){return{index:this._index,documentCount:this._documentCount,nextId:this._nextId,documentIds:this._documentIds,fieldIds:this._fieldIds,fieldLength:this._fieldLength,averageFieldLength:this._averageFieldLength}}},{key:"documentCount",get:function(){return this._documentCount}}]),t}();N.loadJSON=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return N.loadJS(JSON.parse(t),n)},N.loadJS=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.index,r=e._tree,i=e._prefix,o=t.documentCount,u=t.nextId,c=t.documentIds,f=t.fieldIds,a=t.fieldLength,s=t.averageFieldLength,l=new N(n);return l._index=new A(r,i),l._documentCount=o,l._nextId=u,l._documentIds=c,l._fieldIds=f,l._fieldLength=a,l._averageFieldLength=s,l._fieldIds=f,l},N.SearchableMap=A;var R=function(t,n,e,r){t._index.update(r,function(t){var r=(t=t||{})[n]||{df:0,ds:{}};return null==r.ds[e]&&(r.df+=1),r.ds[e]=(r.ds[e]||0)+1,F({},t,M({},n,r))})},D=function(t,n,e,r){t._index.has(r)?(t._index.update(r,function(i){var o=i[n];return null==o||null==o.ds[e]?(W(t,e,n,r),i):o.df<=1?(delete i[n],i):(o.df-=1,o.ds[e]<=1?(delete o.ds[e],i):(o.ds[e]-=1,F({},i,M({},n,o))))}),0===Object.keys(t._index.get(r)).length&&t._index.delete(r)):W(t,e,n,r)},W=function(t,n,e,r){if(null!=console&&null!=console.warn){var i=Object.entries(t._fieldIds).find(function(t){var n=T(t,2);n[0];return n[1]===e})[0];console.warn("MiniSearch: document with ID ".concat(t._documentIds[n],' has changed before removal: term "').concat(r,'" was not present in field "').concat(i,'". Removing a document after it has changed can corrupt the index!'))}},G=function(t,n){var e=t._nextId;return t._documentIds[e]=n,t._documentCount+=1,t._nextId+=1,e},J=function(t,n){n.forEach(function(n,e){t._fieldIds[n]=e})},V=function(t,n,e,r,i){arguments.length>5&&void 0!==arguments[5]&&arguments[5];var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;return null==i?{}:Object.entries(e).reduce(function(e,u){var c=T(u,2),f=c[0],a=c[1],s=t._fieldIds[f],l=i[s]||{ds:{}},h=l.df,v=l.ds;return Object.entries(v).forEach(function(i){var u=T(i,2),c=u[0],l=u[1],v=r?r(t._documentIds[c],n):1;if(v){var d=t._fieldLength[c][s]/t._averageFieldLength[s];e[c]=e[c]||{score:0,match:{},terms:[]},e[c].terms.push(n),e[c].match[n]=e[c].match[n]||[],e[c].score+=v*U(l,h,t._documentCount,d,a,o),e[c].match[n].push(f)}}),e},{})},H=function(t,n,e,r,i){t._averageFieldLength[e]=t._averageFieldLength[e]||0;var o=t._averageFieldLength[e]*r+i;t._fieldLength[n]=t._fieldLength[n]||{},t._fieldLength[n][e]=i,t._averageFieldLength[e]=o/(r+1)},K=(M(O={},"or",function(t,n){return Object.entries(n).reduce(function(t,n){var e=T(n,2),r=e[0],i=e[1],o=i.score,u=i.match,c=i.terms;return null==t[r]?t[r]={score:o,match:u,terms:c}:(t[r].score+=o,t[r].score*=1.5,t[r].terms=z(t[r].terms).concat(z(c)),Object.assign(t[r].match,u)),t},t||{})}),M(O,"and",function(t,n){return null==t?n:Object.entries(n).reduce(function(n,e){var r=T(e,2),i=r[0],o=r[1],u=o.score,c=o.match,f=o.terms;return void 0===t[i]?n:(n[i]=n[i]||{},n[i].score=t[i].score+u,n[i].match=F({},t[i].match,c),n[i].terms=z(t[i].terms).concat(z(f)),n)},{})}),O),U=function(t,n,e,r,i,o){return i/(1+.333*i*o)*function(t,n,e){return t*Math.log(e/n)}(t,n,e)/r},B=function(t){return function(n,e,r){return{term:n,fuzzy:"function"==typeof t.fuzzy?t.fuzzy(n,e,r):t.fuzzy,prefix:"function"==typeof t.prefix?t.prefix(n,e,r):t.prefix}}},Q=function(t){return t.filter(function(t,n,e){return e.indexOf(t)===n})},Y={idField:"id",tokenize:function(t){return t.split(/\W+/).filter(function(t){return t.length>1})},processTerm:function(t){return t.toLowerCase()}},q={combineWith:"or",prefix:!1,fuzzy:!1,weights:{}},$={prefix:!0},X=N;n.default=X}]).default});
{
"name": "minisearch",
"version": "0.1.17",
"version": "0.1.18",
"description": "fun with fulltext search",

@@ -5,0 +5,0 @@ "main": "dist/minisearch.js",

@@ -101,2 +101,5 @@ import SearchableMap from './SearchableMap/SearchableMap.js'

/** @private */
this._nextId = 0
addFields(this, fields)

@@ -349,2 +352,3 @@ }

documentCount: this._documentCount,
nextId: this._nextId,
documentIds: this._documentIds,

@@ -375,6 +379,7 @@ fieldIds: this._fieldIds,

MiniSearch.loadJS = function (js, options = {}) {
const { index: { _tree, _prefix }, documentCount, documentIds, fieldIds, fieldLength, averageFieldLength } = js
const { index: { _tree, _prefix }, documentCount, nextId, documentIds, fieldIds, fieldLength, averageFieldLength } = js
const miniSearch = new MiniSearch(options)
miniSearch._index = new SearchableMap(_tree, _prefix)
miniSearch._documentCount = documentCount
miniSearch._nextId = nextId
miniSearch._documentIds = documentIds

@@ -435,5 +440,6 @@ miniSearch._fieldIds = fieldIds

const addDocumentId = function (self, documentId) {
const shortDocumentId = self._documentCount
const shortDocumentId = self._nextId
self._documentIds[shortDocumentId] = documentId
self._documentCount += 1
self._nextId += 1
return shortDocumentId

@@ -440,0 +446,0 @@ }

@@ -78,2 +78,9 @@ /* eslint-env jest */

it('does not reassign IDs', () => {
ms.remove(documents[0])
ms.add(documents[0])
expect(ms.search('commedia').map(result => result.id)).toEqual([documents[0].id])
expect(ms.search('nova').map(result => result.id)).toEqual([documents[documents.length - 1].id])
})
describe('when the document was not in the index', () => {

@@ -80,0 +87,0 @@ it('throws an error', () => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc