text: var app=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function s(t){t.forEach(e)}function r(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(t,e){t.appendChild(e)}function o(t,e,n){t.insertBefore(e,n||null)}function a(t){t.parentNode.removeChild(t)}function h(t){return document.createElement(t)}function l(t){return document.createTextNode(t)}function u(){return l(" ")}function d(t,e,n,s){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}function f(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function p(t,e){t.value=null==e?"":e}function g(t,e,n){t.classList[n?"add":"remove"](e)}let m;function x(t){m=t}function y(t){(function(){if(!m)throw new Error("Function called outside component initialization");return m})().$$.on_mount.push(t)}const v=[],M=[],b=[],k=[],w=Promise.resolve();let $=!1;function _(t){b.push(t)}let C=!1;const S=new Set;function L(){if(!C){C=!0;do{for(let t=0;t<v.length;t+=1){const e=v[t];x(e),E(e.$$)}for(v.length=0;M.length;)M.pop()();for(let t=0;t<b.length;t+=1){const e=b[t];S.has(e)||(S.add(e),e())}b.length=0}while(v.length);for(;k.length;)k.pop()();$=!1,C=!1,S.clear()}}function E(t){if(null!==t.fragment){t.update(),s(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(_)}}const A=new Set;let I;function F(){I={r:0,c:[],p:I}}function O(){I.r||s(I.c),I=I.p}function R(t,e){t&&t.i&&(A.delete(t),t.i(e))}function j(t,e,n,s){if(t&&t.o){if(A.has(t))return;A.add(t),I.c.push(()=>{A.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}}function N(t,e){j(t,1,1,()=>{e.delete(t.key)})}function q(t,n,i){const{fragment:c,on_mount:o,on_destroy:a,after_update:h}=t.$$;c&&c.m(n,i),_(()=>{const n=o.map(e).filter(r);a?a.push(...n):s(n),t.$$.on_mount=[]}),h.forEach(_)}function z(t,e){const n=t.$$;null!==n.fragment&&(s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function P(t,e){-1===t.$$.dirty[0]&&(v.push(t),$||($=!0,w.then(L)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function W(e,r,i,c,o,h,l=[-1]){const u=m;x(e);const d=r.props||{},f=e.$$={fragment:null,ctx:null,props:h,update:t,not_equal:o,bound:n(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:[]),callbacks:n(),dirty:l};let p=!1;if(f.ctx=i?i(e,d,(t,n,...s)=>{const r=s.length?s[0]:n;return f.ctx&&o(f.ctx[t],f.ctx[t]=r)&&(f.bound[t]&&f.bound[t](r),p&&P(e,t)),n}):[],f.update(),p=!0,s(f.before_update),f.fragment=!!c&&c(f.ctx),r.target){if(r.hydrate){const t=function(t){return Array.from(t.childNodes)}(r.target);f.fragment&&f.fragment.l(t),t.forEach(a)}else f.fragment&&f.fragment.c();r.intro&&R(e.$$.fragment),q(e,r.target,r.anchor),L()}x(u)}class B{$destroy(){z(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(){}}function J(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function K(t){return"string"==typeof t}function T(t){return"number"==typeof t}function Q(t){return null!=t}function U(t){return!t.trim().length}const Y=Object.prototype.hasOwnProperty;class D{constructor(t){this._keys={},this._keyNames=[];let e=0;t.forEach(t=>{let n,s=1;if(K(t))n=t;else{if(!Y.call(t,"name"))throw new Error(`Missing ${"name"} property in key`);if(n=t.name,Y.call(t,"weight")&&(s=t.weight,s<=0))throw new Error((t=>`Property 'weight' in key '${t}' must be a positive integer`)(n))}this._keyNames.push(n),this._keys[n]={weight:s},e+=s}),this._keyNames.forEach(t=>{this._keys[t].weight/=e})}get(t,e){return this._keys[t]&&this._keys[t][e]}keys(){return this._keyNames}toJSON(){return JSON.stringify(this._keys)}}var G={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...{useExtendedSearch:!1,getFn:function(t,e){let n=[],s=!1;const r=(t,e)=>{if(e){const i=e.indexOf(".");let c=e,o=null;-1!==i&&(c=e.slice(0,i),o=e.slice(i+1));const a=t[c];if(!Q(a))return;if(o||!K(a)&&!T(a))if(J(a)){s=!0;for(let t=0,e=a.length;t<e;t+=1)r(a[t],o)}else o&&r(a,o);else n.push(function(t){return null==t?"":function(t){if("string"==typeof t)return t;let e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(t)}(a))}else n.push(t)};return r(t,e),s?n:n[0]}}};const H=/[^ ]+/g;class V{constructor({getFn:t=G.getFn}={}){this.norm=function(t=3){const e=new Map;return{get(n){const s=n.match(H).length;if(e.has(s))return e.get(s);const r=parseFloat((1/Math.sqrt(s)).toFixed(t));return e.set(s,r),r},clear(){e.clear()}}}(3),this.getFn=t,this.isCreated=!1,this.setRecords()}setCollection(t=[]){this.docs=t}setRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,K(this.docs[0])?this.docs.forEach((t,e)=>{this._addString(t,e)}):this.docs.forEach((t,e)=>{this._addObject(t,e)}),this.norm.clear())}add(t){const e=this.size();K(t)?this._addString(t,e):this._addObject(t,e)}removeAt(t){this.records.splice(t,1);for(let e=t,n=this.size();e<n;e+=1)this.records[e].i-=1}size(){return this.records.length}_addString(t,e){if(!Q(t)||U(t))return;let n={v:t,i:e,n:this.norm.get(t)};this.records.push(n)}_addObject(t,e){let n={i:e,$:{}};this.keys.forEach((e,s)=>{let r=this.getFn(t,e);if(Q(r))if(J(r)){let t=[];const e=[{nestedArrIndex:-1,value:r}];for(;e.length;){const{nestedArrIndex:n,value:s}=e.pop();if(Q(s))if(K(s)&&!U(s)){let e={v:s,i:n,n:this.norm.get(s)};t.push(e)}else J(s)&&s.forEach((t,n)=>{e.push({nestedArrIndex:n,value:t})})}n.$[s]=t}else if(!U(r)){let t={v:r,n:this.norm.get(r)};n.$[s]=t}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function X(t,e,{getFn:n=G.getFn}={}){let s=new V({getFn:n});return s.setKeys(t),s.setCollection(e),s.create(),s}function Z(t,e){const n=t.matches;e.matches=[],Q(n)&&n.forEach(t=>{if(!Q(t.indices)||!t.indices.length)return;const{indices:n,value:s}=t;let r={indices:n,value:s};t.key&&(r.key=t.key),t.idx>-1&&(r.refIndex=t.idx),e.matches.push(r)})}function tt(t,e){e.score=t.score}function et(t,{errors:e=0,currentLocation:n=0,expectedLocation:s=0,distance:r=G.distance}={}){const i=e/t.length,c=Math.abs(s-n);return r?i+c/r:c?1:i}function nt(t,e,n,{location:s=G.location,distance:r=G.distance,threshold:i=G.threshold,findAllMatches:c=G.findAllMatches,minMatchCharLength:o=G.minMatchCharLength,includeMatches:a=G.includeMatches}={}){if(e.length>32)throw new Error(`Pattern length exceeds max of ${32}.`);const h=e.length,l=t.length,u=Math.max(0,Math.min(s,l));let d=i,f=u;const p=[];if(a)for(let t=0;t<l;t+=1)p[t]=0;let g;for(;(g=t.indexOf(e,f))>-1;){let t=et(e,{currentLocation:g,expectedLocation:u,distance:r});if(d=Math.min(t,d),f=g+h,a){let t=0;for(;t<h;)p[g+t]=1,t+=1}}f=-1;let m=[],x=1,y=h+l;const v=1<<(h<=31?h-1:30);for(let s=0;s<h;s+=1){let i=0,o=y;for(;i<o;){et(e,{errors:s,currentLocation:u+o,expectedLocation:u,distance:r})<=d?i=o:y=o,o=Math.floor((y-i)/2+i)}y=o;let g=Math.max(1,u-o+1),M=c?l:Math.min(u+o,l)+h,b=Array(M+2);b[M+1]=(1<<s)-1;for(let i=M;i>=g;i-=1){let c=i-1,o=n[t.charAt(c)];if(o&&a&&(p[c]=1),b[i]=(b[i+1]<<1|1)&o,0!==s&&(b[i]|=(m[i+1]|m[i])<<1|1|m[i+1]),b[i]&v&&(x=et(e,{errors:s,currentLocation:c,expectedLocation:u,distance:r}),x<=d)){if(d=x,f=c,f<=u)break;g=Math.max(1,2*u-f)}}if(et(e,{errors:s+1,currentLocation:u,expectedLocation:u,distance:r})>d)break;m=b}let M={isMatch:f>=0,score:Math.max(.001,x)};return a&&(M.indices=function(t=[],e=G.minMatchCharLength){let n=[],s=-1,r=-1,i=0;for(let c=t.length;i<c;i+=1){let c=t[i];c&&-1===s?s=i:c||-1===s||(r=i-1,r-s+1>=e&&n.push([s,r]),s=-1)}return t[i-1]&&i-s>=e&&n.push([s,i-1]),n}(p,o)),M}function st(t){let e={},n=t.length;for(let s=0;s<n;s+=1)e[t.charAt(s)]=0;for(let s=0;s<n;s+=1)e[t.charAt(s)]|=1<<n-s-1;return e}class rt{constructor(t,{location:e=G.location,threshold:n=G.threshold,distance:s=G.distance,includeMatches:r=G.includeMatches,findAllMatches:i=G.findAllMatches,minMatchCharLength:c=G.minMatchCharLength,isCaseSensitive:o=G.isCaseSensitive}={}){this.options={location:e,threshold:n,distance:s,includeMatches:r,findAllMatches:i,minMatchCharLength:c,isCaseSensitive:o},this.pattern=o?t:t.toLowerCase(),this.chunks=[];let a=0;for(;a<this.pattern.length;){let t=this.pattern.substring(a,a+32);this.chunks.push({pattern:t,alphabet:st(t)}),a+=32}}searchIn(t){const{isCaseSensitive:e,includeMatches:n}=this.options;if(e||(t=t.toLowerCase()),this.pattern===t){let e={isMatch:!0,score:0};return n&&(e.indices=[[0,t.length-1]]),e}const{location:s,distance:r,threshold:i,findAllMatches:c,minMatchCharLength:o}=this.options;let a=[],h=0,l=!1;this.chunks.forEach(({pattern:e,alphabet:u},d)=>{const{isMatch:f,score:p,indices:g}=nt(t,e,u,{location:s+32*d,distance:r,threshold:i,findAllMatches:c,minMatchCharLength:o,includeMatches:n});f&&(l=!0),h+=p,f&&g&&(a=[...a,...g])});let u={isMatch:l,score:l?h/this.chunks.length:1};return l&&n&&(u.indices=a),u}}class it{constructor(t){this.pattern=t}static isMultiMatch(t){return ct(t,this.multiRegex)}static isSingleMatch(t){return ct(t,this.singleRegex)}search(){}}function ct(t,e){const n=t.match(e);return n?n[1]:null}class ot extends it{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e,n=0;const s=[],r=this.pattern.length;for(;(e=t.indexOf(this.pattern,n))>-1;)n=e+r,s.push([e,n-1]);const i=!!s.length;return{isMatch:i,score:i?1:0,indices:s}}}class at extends it{constructor(t,{location:e=G.location,threshold:n=G.threshold,distance:s=G.distance,includeMatches:r=G.includeMatches,findAllMatches:i=G.findAllMatches,minMatchCharLength:c=G.minMatchCharLength,isCaseSensitive:o=G.isCaseSensitive}={}){super(t),this._bitapSearch=new rt(t,{location:e,threshold:n,distance:s,includeMatches:r,findAllMatches:i,minMatchCharLength:c,isCaseSensitive:o})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}const ht=[ot,class extends it{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class extends it{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends it{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends it{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class extends it{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const e=-1===t.indexOf(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},at],lt=ht.length,ut=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;const dt=new Set([at.type,ot.type]);class ft{constructor(t,{isCaseSensitive:e=G.isCaseSensitive,includeMatches:n=G.includeMatches,minMatchCharLength:s=G.minMatchCharLength,findAllMatches:r=G.findAllMatches,location:i=G.location,threshold:c=G.threshold,distance:o=G.distance}={}){this.query=null,this.options={isCaseSensitive:e,includeMatches:n,minMatchCharLength:s,findAllMatches:r,location:i,threshold:c,distance:o},this.pattern=e?t:t.toLowerCase(),this.query=function(t,e={}){return t.split("|").map(t=>{let n=t.trim().split(ut).filter(t=>t&&!!t.trim()),s=[];for(let t=0,r=n.length;t<r;t+=1){const r=n[t];let i=!1,c=-1;for(;!i&&++c<lt;){const t=ht[c];let n=t.isMultiMatch(r);n&&(s.push(new t(n,e)),i=!0)}if(!i)for(c=-1;++c<lt;){const t=ht[c];let n=t.isSingleMatch(r);if(n){s.push(new t(n,e));break}}}return s})}(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:s}=this.options;t=s?t:t.toLowerCase();let r=0,i=[],c=0;for(let s=0,o=e.length;s<o;s+=1){const o=e[s];i.length=0,r=0;for(let e=0,s=o.length;e<s;e+=1){const s=o[e],{isMatch:a,indices:h,score:l}=s.search(t);if(!a){c=0,r=0,i.length=0;break}if(r+=1,c+=l,n){const t=s.constructor.type;dt.has(t)?i=[...i,...h]:i.push(h)}}if(r){let t={isMatch:!0,score:c/r};return n&&(t.indices=i),t}}return{isMatch:!1,score:1}}}const pt=[];function gt(t,e){for(let n=0,s=pt.length;n<s;n+=1){let s=pt[n];if(s.condition(t,e))return new s(t,e)}return new rt(t,e)}const mt="$and",xt="$or",yt=t=>!(!t[mt]&&!t[xt]),vt=t=>({[mt]:Object.keys(t).map(e=>({[e]:t[e]}))});function Mt(t,e,{auto:n=!0}={}){const s=t=>{let r=Object.keys(t);if(r.length>1&&!yt(t))return s(vt(t));let i=r[0];if((t=>!J(t)&&"object"==typeof t&&!yt(t))(t)){const s=t[i];if(!K(s))throw new Error((t=>"Invalid value for key "+t)(i));const r={key:i,pattern:s};return n&&(r.searcher=gt(s,e)),r}let c={children:[],operator:i};return r.forEach(e=>{const n=t[e];J(n)&&n.forEach(t=>{c.children.push(s(t))})}),c};return yt(t)||(t=vt(t)),s(t)}class bt{constructor(t,e={},n){this.options={...G,...e},this.options.useExtendedSearch,this._keyStore=new D(this.options.keys),this.setCollection(t,n)}setCollection(t,e){if(this._docs=t,e&&!(e instanceof V))throw new Error("Incorrect 'index' type");this._myIndex=e||X(this._keyStore.keys(),this._docs,{getFn:this.options.getFn})}add(t){Q(t)&&(this._docs.push(t),this._myIndex.add(t))}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:e=-1}={}){const{includeMatches:n,includeScore:s,shouldSort:r,sortFn:i}=this.options;let c=K(t)?K(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return function(t,e){t.forEach(t=>{let n=1;t.matches.forEach(({key:t,norm:s,score:r})=>{const i=e.get(t,"weight");n*=Math.pow(0===r&&i?Number.EPSILON:r,(i||1)*s)}),t.score=n})}(c,this._keyStore),r&&c.sort(i),T(e)&&e>-1&&(c=c.slice(0,e)),function(t,e,{includeMatches:n=G.includeMatches,includeScore:s=G.includeScore}={}){const r=[];n&&r.push(Z);s&&r.push(tt);return t.map(t=>{const{idx:n}=t,s={item:e[n],refIndex:n};return r.length&&r.forEach(e=>{e(t,s)}),s})}(c,this._docs,{includeMatches:n,includeScore:s})}_searchStringList(t){const e=gt(t,this.options),{records:n}=this._myIndex,s=[];return n.forEach(({v:t,i:n,n:r})=>{if(!Q(t))return;const{isMatch:i,score:c,indices:o}=e.searchIn(t);i&&s.push({item:t,idx:n,matches:[{score:c,value:t,norm:r,indices:o}]})}),s}_searchLogical(t){const e=Mt(t,this.options),{keys:n,records:s}=this._myIndex,r={},i=[],c=(t,e,s)=>{if(!t.children){const{key:s,searcher:r}=t,i=e[n.indexOf(s)];return this._findMatches({key:s,value:i,searcher:r})}{const n=t.operator;let o=[];for(let r=0;r<t.children.length;r+=1){let i=t.children[r],a=c(i,e,s);if(a&&a.length){if(o.push({idx:s,item:e,matches:a}),n===xt)break}else if(n===mt){o.length=0;break}}o.length&&(r[s]||(r[s]={idx:s,item:e,matches:[]},i.push(r[s])),o.forEach(({matches:t})=>{r[s].matches.push(...t)}))}};return s.forEach(({$:t,i:n})=>{Q(t)&&c(e,t,n)}),i}_searchObjectList(t){const e=gt(t,this.options),{keys:n,records:s}=this._myIndex,r=[];return s.forEach(({$:t,i:s})=>{if(!Q(t))return;let i=[];n.forEach((n,s)=>{i.push(...this._findMatches({key:n,value:t[s],searcher:e}))}),i.length&&r.push({idx:s,item:t,matches:i})}),r}_findMatches({key:t,value:e,searcher:n}){if(!Q(e))return[];let s=[];if(J(e))e.forEach(({v:e,i:r,n:i})=>{if(!Q(e))return;const{isMatch:c,score:o,indices:a}=n.searchIn(e);c&&s.push({score:o,key:t,value:e,idx:r,norm:i,indices:a})});else{const{v:r,n:i}=e,{isMatch:c,score:o,indices:a}=n.searchIn(r);c&&s.push({score:o,key:t,value:r,norm:i,indices:a})}return s}}bt.version="6.0.0",bt.createIndex=X,bt.parseIndex=function(t,{getFn:e=G.getFn}={}){const{keys:n,records:s}=t;let r=new V({getFn:e});return r.setKeys(n),r.setRecords(s),r},bt.config=G,bt.parseQuery=Mt,function(...t){pt.push(...t)}(ft);function kt(e){let n,s,r,i,d,p,g,m=e[0].item.title+"";return{c(){n=h("a"),s=h("span"),r=l(m),i=u(),d=h("p"),d.textContent=""+e[1],p=u(),g=h("sup"),g.textContent=""+e[3],f(s,"class","search-card-title eg-mb-0-5 eg-text--color-black svelte-1yb4ch7"),f(d,"class","eg-text__group-paragraph eg-text--color-black eg-mb-0"),f(g,"class","search-card-label svelte-1yb4ch7"),f(n,"href",e[2]),f(n,"class","eg-text search-card-container svelte-1yb4ch7")},m(t,e){o(t,n,e),c(n,s),c(s,r),c(n,i),c(n,d),c(n,p),c(n,g)},p(t,[e]){1&e&&m!==(m=t[0].item.title+"")&&function(t,e){e=""+e,t.data!==e&&(t.data=e)}(r,m)},i:t,o:t,d(t){t&&a(n)}}}function wt(t,e,n){let{content:s}=e;const r=s.item.subtitle||s.item.contents,i=r.length>249?r.slice(0,250)+"...":r,c=s.item.link||s.item.permalink,o=(t=>t.match(/news/)?"news":t.match(/blog/)?"blog":"page")(s.item.permalink);return t.$set=t=>{"content"in t&&n(0,s=t.content)},[s,i,c,o]}class $t extends B{constructor(t){var e;super(),document.getElementById("svelte-1yb4ch7-style")||((e=h("style")).id="svelte-1yb4ch7-style",e.textContent=".eg-text + .eg-text{margin-top:1.5rem}.search-card-label.svelte-1yb4ch7{padding:0 4px;background-color:#FF4221;color:#fff;display:inline-block;font-size:.714285714285714rem;font-weight:700;line-height:1.071428571428571rem;min-width:1.071428571428571rem;border-radius:8px;text-align:center;position:absolute;left:16px;top:-8px;vertical-align:baseline}.search-card-container.svelte-1yb4ch7{box-shadow:0px 3px 12px rgba(0, 0, 0, 0.1);border-radius:5px;padding:1.5rem 1rem;position:relative;display:flex;flex-direction:column;text-decoration:none}.search-card-container.svelte-1yb4ch7:hover{box-shadow:0 5px 10px 0 rgba(0, 0, 0, 0.12)}.search-card-title.svelte-1yb4ch7{position:relative;display:inline-block;font-size:22px}",c(document.head,e)),W(this,t,wt,kt,i,{content:0})}}function _t(t,e,n){const s=t.slice();return s[12]=e[n],s}function Ct(t){let e,n,s=[],r=new Map,i=t[0];const c=t=>t[12].refIndex;for(let e=0;e<i.length;e+=1){let n=_t(t,i,e),o=c(n);r.set(o,s[e]=Et(o,n))}return{c(){e=h("div");for(let t=0;t<s.length;t+=1)s[t].c()},m(t,r){o(t,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);n=!0},p(t,n){if(1&n){const i=t[0];F(),s=function(t,e,n,s,r,i,c,o,a,h,l,u){let d=t.length,f=i.length,p=d;const g={};for(;p--;)g[t[p].key]=p;const m=[],x=new Map,y=new Map;for(p=f;p--;){const t=u(r,i,p),o=n(t);let a=c.get(o);a?s&&a.p(t,e):(a=h(o,t),a.c()),x.set(o,m[p]=a),o in g&&y.set(o,Math.abs(p-g[o]))}const v=new Set,M=new Set;function b(t){R(t,1),t.m(o,l),c.set(t.key,t),l=t.first,f--}for(;d&&f;){const e=m[f-1],n=t[d-1],s=e.key,r=n.key;e===n?(l=e.first,d--,f--):x.has(r)?!c.has(s)||v.has(s)?b(e):M.has(r)?d--:y.get(s)>y.get(r)?(M.add(s),b(e)):(v.add(r),d--):(a(n,c),d--)}for(;d--;){const e=t[d];x.has(e.key)||a(e,c)}for(;f;)b(m[f-1]);return m}(s,n,c,1,t,i,r,e,N,Et,null,_t),O()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)R(s[t]);n=!0}},o(t){for(let t=0;t<s.length;t+=1)j(s[t]);n=!1},d(t){t&&a(e);for(let t=0;t<s.length;t+=1)s[t].d()}}}function St(e){let n;return{c(){n=h("p"),n.textContent="Unrecognized search pattern. Please try searching by entering news, pages, blog posts etc."},m(t,e){o(t,n,e)},p:t,i:t,o:t,d(t){t&&a(n)}}}function Lt(e){let n;return{c(){n=h("p"),n.textContent="You need to enter a search query",f(n,"class","eg-text__paragraph eg-text__paragraph--18")},m(t,e){o(t,n,e)},p:t,i:t,o:t,d(t){t&&a(n)}}}function Et(t,e){let n,s;const r=new $t({props:{content:e[12]}});return{key:t,first:null,c(){var t;n=l(""),(t=r.$$.fragment)&&t.c(),this.first=n},m(t,e){o(t,n,e),q(r,t,e),s=!0},p(t,e){const n={};1&e&&(n.content=t[12]),r.$set(n)},i(t){s||(R(r.$$.fragment,t),s=!0)},o(t){j(r.$$.fragment,t),s=!1},d(t){t&&a(n),z(r,t)}}}function At(t){let e,n,r,i,l,m,x,y,v,M,b;const k=[Lt,St,Ct],w=[];function $(t,e){return 2&e&&(m=!(""!==t[1].trim())),m?0:0===t[0].length?1:t[0].length>0?2:-1}return~(x=$(t,-1))&&(y=w[x]=k[x](t)),{c(){e=h("div"),n=h("div"),r=h("input"),i=u(),l=h("div"),y&&y.c(),f(r,"type","text"),f(r,"placeholder","Search query"),f(r,"class","svelte-44o8k7"),f(n,"class","input-wrapper svelte-44o8k7"),g(n,"active",t[3]),f(e,"class","input-container svelte-44o8k7"),f(l,"class","query-div eg-text svelte-44o8k7")},m(s,a){o(s,e,a),c(e,n),c(n,r),t[8](r),p(r,t[1]),o(s,i,a),o(s,l,a),~x&&w[x].m(l,null),v=!0,M||(b=[d(r,"input",t[9]),d(r,"input",t[4]),d(r,"focus",t[10]),d(r,"blur",t[11])],M=!0)},p(t,[e]){2&e&&r.value!==t[1]&&p(r,t[1]),8&e&&g(n,"active",t[3]);let s=x;x=$(t,e),x===s?~x&&w[x].p(t,e):(y&&(F(),j(w[s],1,1,()=>{w[s]=null}),O()),~x?(y=w[x],y||(y=w[x]=k[x](t),y.c()),R(y,1),y.m(l,null)):y=null)},i(t){v||(R(y),v=!0)},o(t){j(y),v=!1},d(n){n&&a(e),t[8](null),n&&a(i),n&&a(l),~x&&w[x].d(),M=!1,s(b)}}}function It(t,e,n){let s,r,i={shouldSort:!0,includeMatches:!1,matchAllTokens:!0,threshold:.3,location:0,distance:2e3,maxPatternLength:64,minMatchCharLength:3,keys:[{name:"title",weight:.8},{name:"contents",weight:.4},{name:"subtitle",weight:.4}]},c=[],o=[],a="";y(async()=>{c=await fetch(window.location.href+"index.json").then(t=>t.json()),s=new bt(c,i),r.focus(),n(1,a=r.value),h()});const h=()=>{""!==a.trim()&&n(0,o=s.search(a))};let l=!1;return[o,a,r,l,h,c,s,i,function(t){M[t?"unshift":"push"](()=>{n(2,r=t)})},function(){a=this.value,n(1,a)},()=>n(3,l=!0),()=>n(3,l=!1)]}return new class extends B{constructor(t){var e;super(),document.getElementById("svelte-44o8k7-style")||((e=h("style")).id="svelte-44o8k7-style",e.textContent=".query-div.svelte-44o8k7.svelte-44o8k7{margin:20px 0}.input-container.svelte-44o8k7.svelte-44o8k7{margin-top:6px;display:inline-flex;align-items:center;width:initial;height:36px}.input-container.svelte-44o8k7 .input-wrapper.svelte-44o8k7{display:inline-flex;vertical-align:middle;align-items:center;height:100%;user-select:none;flex:1 1 0%;border-radius:5px;border-width:1px;border-style:solid;border-color:#eaeaea;border-image:initial;transition:border 0.2s ease 0s, color 0.2s ease 0s}.input-container.svelte-44o8k7 .input-wrapper.active.svelte-44o8k7{border-color:#FF4221}.input-container.svelte-44o8k7 .input-wrapper input.svelte-44o8k7{box-shadow:none;font-size:0.875rem;background-color:transparent;color:black;width:100%;min-width:0px;margin:4px 10px;padding:0px;border-width:initial;border-style:none;border-color:initial;border-image:initial;outline:none;border-radius:0px}",c(document.head,e)),W(this,t,It,At,i,{})}}({target:document.querySelector("#search")})}();
  //# sourceMappingURL=search.js.map
  