/*! * Fuse.js v3.2.0 - Lightweight fuzzy-search (http://fusejs.io) * * Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me) * All Rights Reserved. Apache Software License 2.0 * * http://www.apache.org/licenses/LICENSE-2.0 */(()=>{var e,t,i=Object.create,n=Object.defineProperty,h=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,o=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,a=(e,t)=>function(){return t||(0,e[s(e)[0]])((t={exports:{}}).exports,t),t.exports},r=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of s(t))!u.call(e,a)&&a!==o&&n(e,a,{get:()=>t[a],enumerable:!(i=h(t,a))||i.enumerable});return e},c=(e,t,s)=>(s=e!=null?i(o(e)):{},r(t||!e||!e.__esModule?n(s,"default",{value:e,enumerable:!0}):s,e)),l=a({"ns-hugo:/home/aaro/assets/bakedbyclaire/themes/tasty/assets/js/fuse.min.js"(e,t){!function(n,s){"object"==typeof e&&"object"==typeof t?t.exports=s():"function"==typeof define&&define.amd?define("Fuse",[],s):"object"==typeof e?e.Fuse=s():n.Fuse=s()}(e,function(){return function(e){function t(s){if(n[s])return n[s].exports;var o=n[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,s){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:s})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=8)}([function(e){"use strict";e.exports=function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var n,s=0;ss)return i(e,this.pattern,o);var t=this.options,r=t.location,c=t.distance,l=t.threshold,d=t.findAllMatches,u=t.minMatchCharLength;return a(e,this.pattern,this.patternAlphabet,{location:r,distance:c,threshold:l,findAllMatches:d,minMatchCharLength:u})}}]),e}();e.exports=c},function(e,t,n){"use strict";var s=n(0),o=function e(t,n,o){if(n){{var i,r,d,c=n.indexOf("."),l=n,a=null;if(-1!==c&&(l=n.slice(0,c),a=n.slice(c+1)),i=t[l],i!=null)if(a||"string"!=typeof i&&"number"!=typeof i)if(s(i))for(r=0,d=i.length;r0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=[],e=-1,o=-1,t=0,r=n.length;t=a&&s.push([e,o]),e=-1);return n[t-1]&&t-e>=a&&s.push([e,t-1]),s}},function(e){"use strict";e.exports=function(e){for(var t,n={},s=e.length,o=0;o2&&void 0!==arguments[2]?arguments[2]:/ +/g,l=new RegExp(t.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&").replace(c,"|")),s=e.match(l),o=!!s,a=[];if(o)for(n=0,r=s.length;n=A;r-=1)if(p=r-1,O=n[e.charAt(p)],O&&(w[p]=1),h[r]=(h[r+1]<<1|1)&O,0!==u&&(h[r]|=(j[r+1]|j[r])<<1|1|j[r+1]),h[r]&D&&(b=s(t,{errors:u,currentLocation:p,expectedLocation:a,distance:f}))<=d){if(d=b,(l=p)<=a)break;A=Math.max(1,2*a-l)}if(s(t,{errors:u+1,currentLocation:a,expectedLocation:a,distance:f})>d)break;j=h}return{isMatch:l>=0,score:0===b?.001:b,matchedIndices:o(w,z)}}},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n,s=0;s0&&void 0!==arguments[0]?arguments[0]:"",t=[],this.options.tokenize)for(var e,t,o=e.split(this.options.tokenSeparator),n=0,i=o.length;n0&&void 0!==arguments[0]?arguments[0]:[],u=arguments[1],n=this.list,d={},s=[];if("string"==typeof n[0]){for(t=0,r=n.length;t1)throw new Error("Key weight has to be > 0 and <= 1");e=e.name}else i[e]={weight:1};this._analyze({key:e,value:this.options.getFn(l,e),record:l,index:o},{resultMap:d,results:s,tokenSearchers:c,fullSearcher:u})}return{weights:i,results:s}}},{key:"_analyze",value:function(e,t){var s,i,c,h,p,g,j,y,_,w,L,a=e.key,N=e.arrayIndex,D=void 0===N?-1:N,n=e.value,z=e.record,u=e.index,T=t.tokenSearchers,f=void 0===T?[]:T,x=t.fullSearcher,F=void 0===x?[]:x,M=t.resultMap,m=void 0===M?{}:M,S=t.results,A=void 0===S?[]:S;if(n!=null){var k=!1,o=-1,E=0;if("string"==typeof n){if(this._log(` Key: `+(""===a?"-":a)),s=F.search(n),this._log('Full text: "'+n+'", score: '+s.score),this.options.tokenize){for(var C=n.split(this.options.tokenSeparator),l=[],O=0;O-1&&(i=(i+o)/2),this._log("Score average:",i),y=!this.options.tokenize||!this.options.matchAllTokens||E>=f.length,(this._log(` Check Matches: `+y),(k||s.isMatch)&&y)&&(w=m[u],w?w.output.push({key:a,arrayIndex:D,value:n,score:i,matchedIndices:s.matchedIndices}):(m[u]={item:z,output:[{key:a,arrayIndex:D,value:n,score:i,matchedIndices:s.matchedIndices}]},A.push(m[u])))}else if(r(n))for(c=0,L=n.length;c-1&&(s.arrayIndex=n.arrayIndex),t.matches.push(s))}),this.options.includeScore&&t.push(function(e,t){t.score=e.score});for(o=0,a=e.length;o=200&&this.status<400){var e=JSON.parse(this.response);t(e)}else n()},s.onerror=function(){n()},s.send()}function f(e){m(indexURL,function(n){var o=n,i=new d.default(o,t),s=i.search(e);if(s.length>0)p(s);else{let e=document.querySelector("#search-results");e.innerHTML+='

No matches found

'}},function(){console.log("Request failed")})}function p(n){Array.prototype.forEach.call(n,function(n,s){var r,c,o=n.item.contents,i="",a=[],d=[];t.tokenize?a.push(e):Array.prototype.forEach.call(n.matches,function(e){e.key=="tags"||e.key=="categories"?a.push(e.value):e.key=="contents"&&(start=e.indices[0][0]-summaryInclude>0?e.indices[0][0]-summaryInclude:0,end=e.indices[0][1]+summaryInclude