1AppRegistry.registerBundle({applicationId:'se.soleil.searchField|2.0.0',bundle: {}}); 2AppRegistry.registerModule({applicationId:'se.soleil.searchField|2.0.0',path:'/main',module:function(define){'use strict';define(["router","app"],function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var r=n(e);const o=(r.default?.portletId||"preview").replace(".","_");document.documentElement.classList.contains("sv-edit-mode");let i={};function a(t){return t?i[t]:i}function c(t,{target:e,props:n,intro:r=!1,hydrate:o=e.hasChildNodes()}={}){return i=n,new t({hydrate:o,target:e,props:n,intro:r})}function s(){}const l=t=>t;function u(t){return t()}function d(){return Object.create(null)}function f(t){t.forEach(u)}function h(t){return"function"==typeof t}function p(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function m(t){return t&&h(t.destroy)?t.destroy:s}const $="undefined"!=typeof window;let g=$?()=>window.performance.now():()=>Date.now(),y=$?t=>requestAnimationFrame(t):s;const v=new Set;function b(t){v.forEach(e=>{e.c(t)||(v.delete(e),e.f())}),0!==v.size&&y(b)}let _=!1;function x(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function w(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function E(t){const e=S("style");return function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(w(t),e),e.sheet}function P(t,e){if(_){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let o=0;for(let t=0;t<e.length;t++){const i=e[t].claim_order,a=(o>0&&e[n[o]].claim_order<=i?o+1:x(1,o,t=>e[n[t]].claim_order,i))-1;r[t]=n[a]+1;const c=a+1;n[c]=t,o=Math.max(c,o)}const i=[],a=[];let c=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);c>=t;c--)a.push(e[c]);c--}for(;c>=0;c--)a.push(e[c]);i.reverse(),a.sort((t,e)=>t.claim_order-e.claim_order);for(let e=0,n=0;e<a.length;e++){for(;n<i.length&&a[e].claim_order>=i[n].claim_order;)n++;const r=n<i.length?i[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function k(t,e,n){_&&!n?P(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function N(t){t.parentNode&&t.parentNode.removeChild(t)}function S(t){return document.createElement(t)}function A(t){return document.createTextNode(t)}function j(){return A(" ")}function U(){return A("")}function T(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function q(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function D(t){return Array.from(t.childNodes)}function C(t,e,n,r,o=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const i=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),i}}for(let r=t.claim_info.last_index-1;r>=0;r--){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,i}}return r()})();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function I(t,e,n){return function(t,e,n,r){return C(t,t=>t.nodeName===e,t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach(e=>t.removeAttribute(e))},()=>r(e))}(t,e,n,S)}function L(t,e){return C(t,t=>3===t.nodeType,t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n},()=>A(e),!0)}function O(t){return L(t," ")}function F(t,e){e=""+e,t.data!==e&&(t.data=e)}function R(t,e){t.value=null==e?"":e}function M(t,e,n){t.classList[n?"add":"remove"](e)}function B(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,r,e),o}const z=new Map;let V,W=0;function H(t,e,n,r,o,i,a,c=0){const s=16.666/r;let l="{\n";for(let t=0;t<=1;t+=s){const r=e+(n-e)*i(t);l+=100*t+`%{${a(r,1-r)}}\n`}const u=l+`100% {${a(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${c}`,f=w(t),{stylesheet:h,rules:p}=z.get(f)||function(t,e){const n={stylesheet:E(e),rules:{}};return z.set(t,n),n}(f,t);p[d]||(p[d]=!0,h.insertRule(`@keyframes ${d} ${u}`,h.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${d} ${r}ms linear ${o}ms 1 both`,W+=1,d}function Q(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),o=n.length-r.length;o&&(t.style.animation=r.join(", "),W-=o,W||y(()=>{W||(z.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&N(e)}),z.clear())}))}function G(t){V=t}function J(){const t=function(){if(!V)throw new Error("Function called outside component initialization");return V}();return(e,n,{cancelable:r=!1}={})=>{const o=t.$$.callbacks[e];if(o){const i=B(e,n,{cancelable:r});
2return o.slice().forEach(e=>{e.call(t,i)}),!i.defaultPrevented}return!0}}function K(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(t=>t.call(this,e))}const X=[],Y=[];let Z=[];const tt=[],et=Promise.resolve();let nt=!1;function rt(){nt||(nt=!0,et.then(ut))}function ot(){return rt(),et}function it(t){Z.push(t)}function at(t){tt.push(t)}const ct=new Set;let st,lt=0;function ut(){if(0!==lt)return;const t=V;do{try{for(;lt<X.length;){const t=X[lt];lt++,G(t),dt(t.$$)}}catch(t){throw X.length=0,lt=0,t}for(G(null),X.length=0,lt=0;Y.length;)Y.pop()();for(let t=0;t<Z.length;t+=1){const e=Z[t];ct.has(e)||(ct.add(e),e())}Z.length=0}while(X.length);for(;tt.length;)tt.pop()();nt=!1,ct.clear(),G(t)}function dt(t){if(null!==t.fragment){t.update(),f(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(it)}}function ft(t,e,n){t.dispatchEvent(B(`${e?"intro":"outro"}${n}`))}const ht=new Set;let pt;function mt(){pt={r:0,c:[],p:pt}}function $t(){pt.r||f(pt.c),pt=pt.p}function gt(t,e){t&&t.i&&(ht.delete(t),t.i(e))}function yt(t,e,n,r){if(t&&t.o){if(ht.has(t))return;ht.add(t),pt.c.push(()=>{ht.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}const vt={duration:0};function bt(t,e,n,r){const o={direction:"both"};let i=e(t,n,o),a=r?0:1,c=null,u=null,d=null;function p(){d&&Q(t,d)}function m(t,e){const n=t.b-a;return e*=Math.abs(n),{a:a,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function $(e){const{delay:n=0,duration:r=300,easing:o=l,tick:h=s,css:$}=i||vt,_={start:g()+n,b:e};e||(_.group=pt,pt.r+=1),c||u?u=_:($&&(p(),d=H(t,a,e,r,n,o,$)),e&&h(0,1),c=m(_,r),it(()=>ft(t,e,"start")),function(t){let e;0===v.size&&y(b),new Promise(n=>{v.add(e={c:t,f:n})})}(e=>{if(u&&e>u.start&&(c=m(u,r),u=null,ft(t,c.b,"start"),$&&(p(),d=H(t,a,c.b,c.duration,0,o,i.css))),c)if(e>=c.end)h(a=c.b,1-a),ft(t,c.b,"end"),u||(c.b?p():--c.group.r||f(c.group.c)),c=null;else if(e>=c.start){const t=e-c.start;a=c.a+c.d*o(t/c.duration),h(a,1-a)}return!(!c&&!u)}))}return{run(t){h(i)?(st||(st=Promise.resolve(),st.then(()=>{st=null})),st).then(()=>{i=i(o),$(t)}):$(t)},end(){p(),c=u=null}}}function _t(t,e,n){const r=t.$$.props[e];void 0!==r&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}function xt(t){t&&t.c()}function wt(t,e){t&&t.l(e)}function Et(t,e,n,r){const{fragment:o,after_update:i}=t.$$;o&&o.m(e,n),r||it(()=>{const e=t.$$.on_mount.map(u).filter(h);t.$$.on_destroy?t.$$.on_destroy.push(...e):f(e),t.$$.on_mount=[]}),i.forEach(it)}function Pt(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];Z.forEach(r=>-1===t.indexOf(r)?e.push(r):n.push(r)),n.forEach(t=>t()),Z=e}(n.after_update),f(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function kt(t,e,n,r,o,i,a,c=[-1]){const l=V;G(t);const u=t.$$={fragment:null,ctx:[],props:i,update:s,not_equal:o,bound:d(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:d(),dirty:c,skip_bound:!1,root:e.target||l.$$.root};a&&a(u.root);let h=!1;if(u.ctx=n?n(t,e.props||{},(e,n,...r)=>{const i=r.length?r[0]:n;return u.ctx&&o(u.ctx[e],u.ctx[e]=i)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](i),h&&function(t,e){-1===t.$$.dirty[0]&&(X.push(t),rt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n}):[],u.update(),h=!0,f(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){_=!0;const t=D(e.target);u.fragment&&u.fragment.l(t),t.forEach(N)}else u.fragment&&u.fragment.c();e.intro&>(t.$$.fragment),Et(t,e.target,e.anchor,e.customElement),_=!1,ut()}G(l)}class Nt{$destroy(){Pt(this,1),this.$destroy=s}$on(t,e){if(!h(e))return s;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function St(t){const e=t-1;return e*e*e+1}function At(t,{delay:e=0,duration:n=400,easing:r=St,axis:o="y"}={}){const i=getComputedStyle(t),a=+i.opacity,c="y"===o?"height":"width",s=parseFloat(i[c]),l="y"===o?["top","bottom"]:["left","right"],u=l.map(t=>`${t[0].toUpperCase()}${t.slice(1)}`),d=parseFloat(i[`padding${u[0]}`]),f=parseFloat(i[`padding${u[1]}`]),h=parseFloat(i[`margin${u[0]}`]),p=parseFloat(i[`margin${u[1]}`]),m=parseFloat(i[`border${u[0]}Width`]),$=parseFloat(i[`border${u[1]}Width`]);return{delay:e,duration:n,easing:r,css:t=>`overflow: hidden;opacity: ${Math.min(20*t,1)*a};${c}: ${t*s}px;padding-${l[0]}: ${t*d}px;padding-${l[1]}: ${t*f}px;margin-${l[0]}: ${t*h}px;margin-${l[1]}: ${t*p}px;border-${l[0]}-width: ${t*m}px;border-${l[1]}-width: ${t*$}px;`}}function jt(t,e){const{enabled:n,params:r}=e||{},o=()=>
2{if(!n)return;const e=window.$svjq;if(e&&"function"==typeof e.fn.rekAutoComplete){const n=r&&(r.subtree||r.excludetree);e(t).rekAutoComplete(n?{params:r}:void 0)}};"function"==typeof window.svDocReady?window.svDocReady(o):o()}function Ut(t,e){const n=n=>{!t||t.contains(n.target)||n.defaultPrevented||e({node:t,target:n.target})};return document.addEventListener("click",n),{destroy(){document.removeEventListener("click",n)}}}function Tt(t,{onEscape:e,onArrowUp:n,onArrowDown:r}){const o=t=>{switch(t.keyCode){case 27:e&&e(t);break;case 38:n&&(t.preventDefault(),n(t));break;case 40:r&&(t.preventDefault(),r(t))}};return t.addEventListener("keydown",o),{destroy(){t.removeEventListener("keydown",o)}}}let qt;function Dt(){const{index:t,types:e,excluded:n,included:r}=a()||{},o=`/rest-api/1/1/${t}/search`,i=e&&e.length?`+svtype:(${e.join(" ")})`:void 0,c=n&&n.length?`-path:(${n.join(" ")})`:void 0,s=r&&r.length?`+path:(${r.join(" ")})`:void 0,l=(u=function(t){return e=t.json(),n=function(e){if(!t.ok)throw Error(e?.message||t?.statusText);return e},r?n?n(e):e:(e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e);var e,n,r},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];try{return Promise.resolve(u.apply(this,t))}catch(t){return Promise.reject(t)}});var u;const d=(t,e)=>{if(t.indexOf("*")>-1)return t;return t.split(" ").map(t=>`+${e?e.concat(":"):""}(${t} ${t}*)`).join(" ")};return t=>{const e={query:d(t,"name.analyzed"),fields:["id","name"],filterQuery:[i,c,s].filter(t=>!!t).join(" ")};return fetch(o+function(t){const e=new URLSearchParams;return Object.entries(t).forEach(([t,n])=>{Array.isArray(n)?n.forEach(n=>e.append(`${t}[]`,n)):n&&e.append(t,n)}),`?${e.toString()}`}(e)).then(l).then(t=>t.map(({id:t,name:e})=>({id:t.replace(".","_"),name:e})))}}function Ct(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}function It(t,e,n){const r=t.slice();return r[14]=e[n].id,r[15]=e[n].name,r[17]=n,r}function Lt(t){let e,n,r,o,i,a,c,s=t[15]+"";function l(){return t[9](t[14])}return{c(){e=S("li"),n=A(s),r=j(),this.h()},l(t){e=I(t,"LI",{id:!0,role:!0,"aria-selected":!0,class:!0});var o=D(e);n=L(o,s),r=O(o),o.forEach(N),this.h()},h(){q(e,"id",o=t[14]),q(e,"role","option"),q(e,"aria-selected",i=t[0]?.id===t[14]),q(e,"class","suggestions-listbox-13j9x5s")},m(t,o){k(t,e,o),P(e,n),P(e,r),a||(c=T(e,"click",l),a=!0)},p(r,a){t=r,8&a&&s!==(s=t[15]+"")&&F(n,s),8&a&&o!==(o=t[14])&&q(e,"id",o),9&a&&i!==(i=t[0]?.id===t[14])&&q(e,"aria-selected",i)},d(t){t&&N(e),a=!1,c()}}}function Ot(t){let e,n,r,i,a,c,l,u=t[3],d=[];for(let e=0;e<u.length;e+=1)d[e]=Lt(It(t,u,e));return{c(){e=S("ul");for(let t=0;t<d.length;t+=1)d[t].c();r=j(),i=S("div"),a=A(t[4]),this.h()},l(n){e=I(n,"UL",{role:!0,id:!0,"aria-labelledby":!0,class:!0});var o=D(e);for(let t=0;t<d.length;t+=1)d[t].l(o);o.forEach(N),r=O(n),i=I(n,"DIV",{"aria-live":!0,class:!0,"aria-atomic":!0});var c=D(i);a=L(c,t[4]),c.forEach(N),this.h()},h(){e.hidden=n=!t[1],q(e,"role","listbox"),q(e,"id",`list_${o}`),q(e,"aria-labelledby",`label_${o}`),q(e,"class","suggestions-listbox-13j9x5s"),q(i,"aria-live","assertive"),q(i,"class","sr-only"),q(i,"aria-atomic","true")},m(n,o){k(n,e,o);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(e,null);k(n,r,o),k(n,i,o),P(i,a),c||(l=m(Tt.call(null,window,{onEscape:t[2]})),c=!0)},p(t,[r]){if(41&r){let n;for(u=t[3],n=0;n<u.length;n+=1){const o=It(t,u,n);d[n]?d[n].p(o,r):(d[n]=Lt(o),d[n].c(),d[n].m(e,null))}for(;n<d.length;n+=1)d[n].d(1);d.length=u.length}2&r&&n!==(n=!t[1])&&(e.hidden=n),16&r&&F(a,t[4])},i:s,o:s,d(t){t&&N(e),function(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}(d,t),t&&N(r),t&&N(i),c=!1,l()}}}function Ft(t,e,n){let{query:r}=e,{selected:o}=e,{hasSuggestions:i=!1}=e;const a=J(),c=Dt();let s=[],l="";const u=Ct(function(){return t=c(r),e=function(t){n(3,s=t),n(1,i=!!s.length),i&&((t="")=>{n(4,l=t),setTimeout(()=>{n(4,l="")},500)})(`${s.length} sökförslag. Använd piltangent upp och ner för att navigera och enter för att välja. Pekskärmsanvändare, använd pekskärmen eller svepgester.`)},o?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t);var t,e,o}),d=Ct(function(t){return n(0,o=s.find(e=>e.id===t)),function(t,e,n){if(n)return e?e(t()):t();try{var r=Promise.resolve(t());return e?r.then(e):r}catch(t){return Promise.reject(t)}}(ot,function(){a("click")})});return t.$$set=t=>{"query"in t&&n(6,r=t.query),"selected"in t&&n(0,o=t.selected),"hasSuggestions"in t&&n(1,i=t.hasSuggestions)},t.$$.update=()=>{var e,o;64&t.$$.dirty&&(r&&r.length>1?(e=u,o=300,clearTimeout(qt),qt=setTimeout(e,o)):(n(3,s=[]),n(1,i=!1)))},[o,i,()=>{n(3,s=[]),n(1,i=!1),n(0,o=void 0)},s,l,d,r,()=>{const t=s.findIndex(({id:t})=>t===o?.id);n(0,o=s[t+1]||s[0])},()=>{const t=s.findIndex(({id:t})=>t===o?.id);n(0,o=s[t-1]||s[s.length-1])},t=>d(t)]}class Rt extends Nt{constructor(t){super(),kt(this,t,Ft,Ot,p,{query:6,selected:0,hasSuggestions:1,selectNext:7,selectPrevious:8,reset:2})}get selectNext(){return this.$$.ctx[7]}get selectPrevious(){return this.$$.ctx[8]}get reset(){return this.$$.ctx[2]}}function Mt(t){let e,n,r,i,a,c,s,l,u,d;function h(e){t[11](e)}function p(e){t[12](e)}let $={query:t[1]};return void 0!==t[0]&&($.selected=t[0]),void 0!==t[2]&&($.hasSuggestions=t[2]),a=new Rt({props:$}),t[10](a),Y.push(()=>_t(a,"selected",h)),Y.push(()=>_t(a,"hasSuggestions",p)),a.$on("click",t[13]),{c(){e=S("div"),n=S("input"),i=j(),xt(a.$$.fragment),this.h()},l(t){e=I(t,"DIV",{id:!0,role:!0,"aria-expanded":!0,"aria-owns":!0,"aria-haspopup":!0,"aria-labelledby":!0,"aria-controls":!0,class:!0});var r=D(e);n=I(r,"INPUT",{id:!0,type:!0,placeholder:!0,autocomplete:!0,"aria-controls":!0,"aria-autocomplete":!0,"aria-activedescendant":!0}),i=O(r),wt(a.$$.fragment,r),r.forEach(N),this.h()},h(){q(n,"id",`input_${o}`),q(n,"type","search"),q(n,"placeholder",t[4]),q(n,"autocomplete","off"),q(n,"aria-controls",`list_${o}`),q(n,"aria-autocomplete","list"),q(n,"aria-activedescendant",r=t[0]?.id),q(e,"id",`combobox_${o}`),q(e,"role","combobox"),q(e,"aria-expanded",t[2]),q(e,"aria-owns",`list_${o}`),q(e,"aria-haspopup","listbox"),q(e,"aria-labelledby",`input_${o}`),q(e,"aria-controls",`combobox_${o}`),q(e,"class","suggestions-mcekk9")},m(r,o){k(r,e,o),P(e,n),R(n,t[1]),P(e,i),Et(a,e,null),l=!0,u||(d=[T(n,"input",t[9]),m(Tt.call(null,n,{onArrowUp:t[6],onArrowDown:t[5]}
2)),T(n,"focusout",t[8]),m(Ut.call(null,e,t[7]))],u=!0)},p(t,[o]){(!l||1&o&&r!==(r=t[0]?.id))&&q(n,"aria-activedescendant",r),2&o&&n.value!==t[1]&&R(n,t[1]);const i={};2&o&&(i.query=t[1]),!c&&1&o&&(c=!0,i.selected=t[0],at(()=>c=!1)),!s&&4&o&&(s=!0,i.hasSuggestions=t[2],at(()=>s=!1)),a.$set(i),(!l||4&o)&&q(e,"aria-expanded",t[2])},i(t){l||(gt(a.$$.fragment,t),l=!0)},o(t){yt(a.$$.fragment,t),l=!1},d(n){n&&N(e),t[10](null),Pt(a),u=!1,f(d)}}}function Bt(t,e,n){const{placeholder:r}=a();let o,i,{selected:c}=e,{query:s}=e;return t.$$set=t=>{"selected"in t&&n(0,c=t.selected),"query"in t&&n(1,s=t.query)},[c,s,o,i,r,()=>{i.selectNext()},()=>{i.selectPrevious()},({node:t,target:e})=>{t.parentNode.contains(e)||i.reset()},({relatedTarget:t})=>{t&&i.reset()},function(){s=this.value,n(1,s)},function(t){Y[t?"unshift":"push"](()=>{i=t,n(3,i)})},function(t){c=t,n(0,c)},function(t){o=t,n(2,o)},function(e){K.call(this,t,e)}]}class zt extends Nt{constructor(t){super(),kt(this,t,Bt,Mt,p,{selected:0,query:1})}}function Vt(t){let e,n,r;return{c(){e=S("input"),this.h()},l(t){e=I(t,"INPUT",{id:!0,type:!0,placeholder:!0,autocomplete:!0,name:!0}),this.h()},h(){q(e,"id",`input_${o}`),q(e,"type","search"),q(e,"placeholder",t[5]),q(e,"autocomplete","off"),q(e,"name","query")},m(o,i){k(o,e,i),R(e,t[1]),n||(r=[m(jt.call(null,e,{enabled:t[8],params:t[9]})),T(e,"input",t[13])],n=!0)},p(t,n){2&n&&e.value!==t[1]&&R(e,t[1])},i:s,o:s,d(t){t&&N(e),n=!1,f(r)}}}function Wt(t){let e,n,r,o,i,a,c;function s(e){t[11](e)}function l(e){t[12](e)}let u={};return void 0!==t[2]&&(u.selected=t[2]),void 0!==t[1]&&(u.query=t[1]),e=new zt({props:u}),Y.push(()=>_t(e,"selected",s)),Y.push(()=>_t(e,"query",l)),e.$on("click",t[10]),{c(){xt(e.$$.fragment),o=j(),i=S("input"),this.h()},l(t){wt(e.$$.fragment,t),o=O(t),i=I(t,"INPUT",{type:!0,name:!0}),this.h()},h(){q(i,"type","hidden"),q(i,"name","query"),i.value=a=t[2]?.name||t[1]},m(t,n){Et(e,t,n),k(t,o,n),k(t,i,n),c=!0},p(t,o){const s={};!n&&4&o&&(n=!0,s.selected=t[2],at(()=>n=!1)),!r&&2&o&&(r=!0,s.query=t[1],at(()=>r=!1)),e.$set(s),(!c||6&o&&a!==(a=t[2]?.name||t[1]))&&(i.value=a)},i(t){c||(gt(e.$$.fragment,t),c=!0)},o(t){yt(e.$$.fragment,t),c=!1},d(t){Pt(e,t),t&&N(o),t&&N(i)}}}function Ht(t){let e,n,r,i,a,c,s,l,u,d,f,h,p;const m=[Wt,Vt],$=[];return a=function(t){return t[7]?0:1}(t),c=$[a]=m[a](t),{c(){e=S("form"),n=S("label"),r=A(t[4]),i=j(),c.c(),s=j(),l=S("span"),u=j(),d=S("button"),f=S("span"),h=A(t[6]),this.h()},l(o){e=I(o,"FORM",{method:!0,action:!0,class:!0});var a=D(e);n=I(a,"LABEL",{id:!0,for:!0,class:!0});var p=D(n);r=L(p,t[4]),p.forEach(N),i=O(a),c.l(a),s=O(a),l=I(a,"SPAN",{class:!0,"aria-hidden":!0}),D(l).forEach(N),u=O(a),d=I(a,"BUTTON",{class:!0,type:!0});var m=D(d);f=I(m,"SPAN",{});var $=D(f);h=L($,t[6]),$.forEach(N),m.forEach(N),a.forEach(N),this.h()},h(){q(n,"id",`label_${o}`),q(n,"for",`input_${o}`),q(n,"class","sr-only"),q(l,"class","bi bi-search search-form-15pc7iy"),q(l,"aria-hidden","true"),q(d,"class","env-button env-button--default search-form-15pc7iy"),q(d,"type","submit"),q(e,"method","get"),q(e,"action",t[0]),q(e,"class","search-form-15pc7iy")},m(o,c){k(o,e,c),P(e,n),P(n,r),P(e,i),$[a].m(e,null),P(e,s),P(e,l),P(e,u),P(e,d),P(d,f),P(f,h),t[14](e),p=!0},p(t,[n]){c.p(t,n),(!p||1&n)&&q(e,"action",t[0])},i(t){p||(gt(c),p=!0)},o(t){yt(c),p=!1},d(n){n&&N(e),$[a].d(),t[14](null)}}}function Qt(t,e,n){const{label:r,placeholder:o,buttonText:i,showSuggestions:c,useRekai:s,rekaiParams:l}=a();let u,d,{searchPageUri:f}=e,h="";return t.$$set=t=>{"searchPageUri"in t&&n(0,f=t.searchPageUri)},[f,h,u,d,r,o,i,c,s,l,()=>{d.submit()},function(t){u=t,n(2,u)},function(t){h=t,n(1,h)},function(){h=this.value,n(1,h)},function(t){Y[t?"unshift":"push"](()=>{d=t,n(3,d)})}]}class Gt extends Nt{constructor(t){super(),kt(this,t,Qt,Ht,p,{searchPageUri:0})}}function Jt(t){let e,n;return e=new Gt({props:{searchPageUri:t[0]}}),{c(){xt(e.$$.fragment)},l(t){wt(e.$$.fragment,t)},m(t,r){Et(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.searchPageUri=t[0]),e.$set(r)},i(t){n||(gt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Pt(e,t)}}}function Kt(t){let e,n,r;let o=Xt(t),i=t[3]&&Yt(t);return{c(){o.c(),e=j(),i&&i.c(),n=U()},l(t){o.l(t),e=O(t),i&&i.l(t),n=U()},m(t,a){o.m(t,a),k(t,e,a),i&&i.m(t,a),k(t,n,a),r=!0}
2,p(t,e){o.p(t,e),t[3]?i?(i.p(t,e),8&e&>(i,1)):(i=Yt(t),i.c(),gt(i,1),i.m(n.parentNode,n)):i&&(mt(),yt(i,1,1,()=>{i=null}),$t())},i(t){r||(gt(i),r=!0)},o(t){yt(i),r=!1},d(t){o.d(t),t&&N(e),i&&i.d(t),t&&N(n)}}}function Xt(t){let e,n,r,o,i,a,c,s;return{c(){e=S("button"),n=S("span"),r=A(t[2]),o=j(),i=S("span"),this.h()},l(a){e=I(a,"BUTTON",{class:!0,"aria-expanded":!0});var c=D(e);n=I(c,"SPAN",{class:!0});var s=D(n);r=L(s,t[2]),s.forEach(N),o=O(c),i=I(c,"SPAN",{class:!0,"aria-hidden":!0}),D(i).forEach(N),c.forEach(N),this.h()},h(){q(n,"class","button-label app-y0cf8j"),q(i,"class","bi bi-search app-y0cf8j"),q(i,"aria-hidden","true"),q(e,"class","expand-button app-y0cf8j"),q(e,"aria-expanded",a=t[3].toString()),M(e,"active",t[3])},m(a,l){k(a,e,l),P(e,n),P(n,r),P(e,o),P(e,i),c||(s=T(e,"click",t[5]),c=!0)},p(t,n){4&n&&F(r,t[2]),8&n&&a!==(a=t[3].toString())&&q(e,"aria-expanded",a),8&n&&M(e,"active",t[3])},d(t){t&&N(e),c=!1,s()}}}function Yt(t){let e,n,r,o,i,a;return n=new Gt({props:{searchPageUri:t[0]}}),{c(){e=S("div"),xt(n.$$.fragment),this.h()},l(t){e=I(t,"DIV",{class:!0});var r=D(e);wt(n.$$.fragment,r),r.forEach(N),this.h()},h(){q(e,"class","container app-y0cf8j")},m(r,c){k(r,e,c),Et(n,e,null),o=!0,i||(a=T(e,"introend",t[8]),i=!0)},p(t,e){const r={};1&e&&(r.searchPageUri=t[0]),n.$set(r)},i(t){o||(gt(n.$$.fragment,t),it(()=>{o&&(r||(r=bt(e,At,{duration:200},!0)),r.run(1))}),o=!0)},o(t){yt(n.$$.fragment,t),r||(r=bt(e,At,{duration:200},!1)),r.run(0),o=!1},d(t){t&&N(e),Pt(n),t&&r&&r.end(),i=!1,a()}}}function Zt(t){let e,n,r,o,i,a;const c=[Kt,Jt],s=[];function l(t,e){return t[1]?0:1}return n=l(t),r=s[n]=c[n](t),{c(){e=S("div"),r.c()},l(t){e=I(t,"DIV",{});var n=D(e);r.l(n),n.forEach(N)},m(r,c){k(r,e,c),s[n].m(e,null),t[9](e),o=!0,i||(a=[T(e,"focusout",t[7]),m(Ut.call(null,e,t[6]))],i=!0)},p(t,[o]){let i=n;n=l(t),n===i?s[n].p(t,o):(mt(),yt(s[i],1,1,()=>{s[i]=null}),$t(),r=s[n],r?r.p(t,o):(r=s[n]=c[n](t),r.c()),gt(r,1),r.m(e,null))},i(t){o||(gt(r),o=!0)},o(t){yt(r),o=!1},d(r){r&&N(e),s[n].d(),t[9](null),i=!1,f(a)}}}function te(t,e,n){let r,{searchPageUri:o}=e,{isExpandable:i}=e,{buttonText:a}=e,c=!1;const s=()=>{c&&n(3,c=!1)};return t.$$set=t=>{"searchPageUri"in t&&n(0,o=t.searchPageUri),"isExpandable"in t&&n(1,i=t.isExpandable),"buttonText"in t&&n(2,a=t.buttonText)},[o,i,a,c,r,()=>{n(3,c=!c)},s,({relatedTarget:t})=>{t&&!r.contains(t)&&s()},()=>{r.querySelector("input")?.focus()},function(t){Y[t?"unshift":"push"](()=>{r=t,n(4,r)})}]}class ee extends Nt{constructor(t){super(),kt(this,t,te,Zt,p,{searchPageUri:0,isExpandable:1,buttonText:2})}}return(t,e)=>{!function(t,e){c(t,e)}(ee,{props:t,target:e})}}); 3}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.