vendor: 2,390 bytes, lines 1-4
1var Rt=Object.defineProperty;var At=(a,e,t)=>e in a?Rt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Oe=(a,e,t)=>At(a,typeof e!="symbol"?e+"":e,t);import{V as Ot,q as je,am as Ct,h as me,an as tt,ao as Mt,ap as Lt,p as re,d as Dt,aq as nt,ar as Pt,as as zt,s as Vt,at as jt,v as Ce,P as fe,O as ye,au as $t,av as Bt,W as Wt,R as Kt,$ as Jt,o as J,b as qt,j as _,a0 as Ut,k as L,a3 as Ht,a4 as Gt,aw as Qt,c as Q,n as rt,e as we,B as st,F as it,a as he,t as ve,a7 as Yt,G as Se,ax as at,ay as Zt,ab as Xt,ag as en,az as tn,_ as nn}from"./framework.b3K37OPx.js";import{u as rn,c as sn}from"./theme.e8RGdRJ6.js";const an={root:()=>Ot(()=>import("./@localSearchIndexroot.CgPonOGg.js"),[])};/*! 2* tabbable 6.5.0 3* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 4*/var mt=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Ee=mt.join(","),gt=typeof Element>"u",ie=gt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ie=!gt&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a==null?void 0:a.ownerDocument},ke=function(e,t){var n;t===void 0&&(t=!0);var r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),i=r===""||r==="true",s=i||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):ke(e.parentNode));return s},on=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},bt=function(e,t,n){if(ke(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Ee));return t&&ie.call(e,Ee)&&r.unshift(e),r=r.filter(n),r},Ne=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var s=i.shift();if(!ke(s,!1))if(s.tagName==="SLOT"){var o=s.assignedElements(),l=o.length?o:s.children,c=Ne(l,!0,n);
vendor: 5,369 bytes, lines 4-8
4n.flatten?r.push.apply(r,c):r.push({scopeParent:s,candidates:c})}else{var v=ie.call(s,Ee);v&&n.filter(s)&&(t||!e.includes(s))&&r.push(s);var m=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),p=!ke(m,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(m&&p){var b=Ne(m===!0?s.children:m.children,!0,n);n.flatten?r.push.apply(r,b):r.push({scopeParent:s,candidates:b})}else i.unshift.apply(i,s.children)}}return r},yt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},se=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||on(e))&&!yt(e)?0:e.tabIndex},ln=function(e,t){var n=se(e);return n<0&&t&&!yt(e)?0:n},cn=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},wt=function(e){return e.tagName==="INPUT"},un=function(e){return wt(e)&&e.type==="hidden"},dn=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},fn=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},hn=function(e){if(!e.name)return!0;var t=e.form||Ie(e),n=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=fn(r,e.form);return!i||i===e},vn=function(e){return wt(e)&&e.type==="radio"},pn=function(e){return vn(e)&&!hn(e)},mn=function(e){var t,n=e&&Ie(e),r=(t=n)===null||t===void 0?void 0:t.host,i=!1;if(n&&n!==e){var s,o,l;for(i=!!((s=r)!==null&&s!==void 0&&(o=s.ownerDocument)!==null&&o!==void 0&&o.contains(r)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!i&&r;){var c,v,m;n=Ie(r),r=(c=n)===null||c===void 0?void 0:c.host,i=!!((v=r)!==null&&v!==void 0&&(m=v.ownerDocument)!==null&&m!==void 0&&m.contains(r))}}return i},ot=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},gn=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n==="full-native"&&"checkVisibility"in e){var i=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!i}var s=getComputedStyle(e),o=s.visibility;if(o==="hidden"||o==="collapse")return!0;var l=ie.call(e,"details>summary:first-of-type"),c=l?e.parentElement:e;if(ie.call(c,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof r=="function"){for(var v=e;e;){var m=e.parentElement,p=Ie(e);if(m&&!m.shadowRoot&&r(m)===!0)return ot(e);e.assignedSlot?e=e.assignedSlot:!m&&p!==e.ownerDocument?e=p.host:e=m}e=v}if(mn(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return ot(e);return!1},bn=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName==="LEGEND")return ie.call(t,"fieldset[disabled] *")?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},Fe=function(e,t){return!(t.disabled||un(t)||gn(t,e)||dn(t)||bn(t))},$e=function(e,t){return!(pn(t)||se(t)<0||!Fe(e,t))},yn=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},St=function(e){var t=[],n=[];return e.forEach(function(r,i){var s=!!r.scopeParent,o=s?r.scopeParent:r,l=ln(o,s),c=s?St(r.candidates):o;l===0?s?t.push.apply(t,c):t.push(o):n.push({documentOrder:i,tabIndex:l,item:r,isScope:s,content:c})}),n.sort(cn).reduce(function(r,i){return i.isScope?r.push.apply(r,i.content):r.push(i.content),r},[]).concat(t)},wn=function(e,t){t=t||{};var n;return t.getShadowRoot?n=Ne([e],t.includeContainer,{filter:$e.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:yn}):n=bt(e,t.includeContainer,$e.bind(null,t)),St(n)},Sn=function(e,t){t=t||{};var n;return t.getShadowRoot?n=Ne([e],t.includeContainer,{filter:Fe.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=bt(e,t.includeContainer,Fe.bind(null,t)),n},oe=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ie.call(e,Ee)===!1?!1:$e(t,e)},xn=mt.concat("iframe:not([inert]):not([inert] *)").join(","),Me=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ie.call(e,xn)===!1?!1:Fe(t,e)};/*! 5* focus-trap 7.8.0 6* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE 7*/function Be(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,n=Array(e);t<e;t++)n[t]=a[t];return n}function _n(a){if(Array.isArray(a))return Be(a)}function lt(a,e){var t=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!t){if(Array.isArray(a)||(t=xt(a))||e){t&&(a=t);var n=0,r=function(){};return{s:r,n:function(){return n>=a.length?{done:!0}:{done:!1,value:a[n++]}},e:function(l){throw l},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 8In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,s=!0,o=!1;return{s:function(){t=t.call(a)},n:function(){var l=t.next();return s=l.done,l},e:function(l){o=!0,i=l}
vendor: 4,131 bytes, lines 8-9
8,f:function(){try{s||t.return==null||t.return()}finally{if(o)throw i}}}}function Tn(a,e,t){return(e=Fn(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function En(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function In(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 9In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ct(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(a,r).enumerable})),t.push.apply(t,n)}return t}function ut(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ct(Object(t),!0).forEach(function(n){Tn(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):ct(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function kn(a){return _n(a)||En(a)||xt(a)||In()}function Nn(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function Fn(a){var e=Nn(a,"string");return typeof e=="symbol"?e:e+""}function xt(a,e){if(a){if(typeof a=="string")return Be(a,e);var t={}.toString.call(a).slice(8,-1);return t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set"?Array.from(a):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Be(a,e):void 0}}var q={getActiveTrap:function(e){return(e==null?void 0:e.length)>0?e[e.length-1]:null},activateTrap:function(e,t){var n=q.getActiveTrap(e);t!==n&&q.pauseTrap(e);var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),q.unpauseTrap(e)},pauseTrap:function(e){var t=q.getActiveTrap(e);t==null||t._setPausedState(!0)},unpauseTrap:function(e){var t=q.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},Rn=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},An=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},ge=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},On=function(e){return ge(e)&&!e.shiftKey},Cn=function(e){return ge(e)&&e.shiftKey},dt=function(e){return setTimeout(e,0)},pe=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return typeof e=="function"?e.apply(void 0,n):e},xe=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Mn=[],Ln=function(e,t){var n=(t==null?void 0:t.document)||document,r=(t==null?void 0:t.trapStack)||Mn,i=ut({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:On,isKeyBackward:Cn},t),s={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,l=function(u,d,g){return u&&u[d]!==void 0?u[d]:i[g||d]},c=function(u,d){var g=typeof(d==null?void 0:d.composedPath)=="function"?d.composedPath():void 0;return s.containerGroups.findIndex(function(T){var x=T.container,E=T.tabbableNodes;return x.contains(u)||(g==null?void 0:g.includes(x))||E.find(function(h){return h===u})})},v=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=d.hasFallback,T=g===void 0?!1:g,x=d.params,E=x===void 0?[]:x,h=i[u];if(typeof h=="function"&&(h=h.apply(void 0,kn(E))),h===!0&&(h=void 0),!h){if(h===void 0||h===!1)return h;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var f=h;if(typeof h=="string"){try{f=n.querySelector(h)}catch(y){throw new Error("`".concat(u,'` appears to be an invali
9d selector; error="').concat(y.message,'"'))}if(!f&&!T)throw new Error("`".concat(u,"` as selector refers to no known node"))}return f},m=function(){var u=v("initialFocus",{hasFallback:!0});if(u===!1)return!1;if(u===void 0||u&&!Me(u,i.tabbableOptions))if(c(n.activeElement)>=0)u=n.activeElement;else{var d=s.tabbableGroups[0],g=d&&d.firstTabbableNode;u=g||v("fallbackFocus")}else u===null&&(u=v("fallbackFocus"));if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},p=function(){if(s.containerGroups=s.containers.map(function(u){var d=wn(u,i.tabbableOptions),g=Sn(u,i.tabbableOptions),T=d.length>0?d[0]:void 0,x=d.length>0?d[d.length-1]:void 0,E=g.find(function(y){return oe(y)}),h=g.slice().reverse().find(function(y){return oe(y)}),f=!!d.find(function(y){return se(y)>0});return{container:u,tabbableNodes:d,focusableNodes:g,posTabIndexesFound:f,firstTabbableNode:T,lastTabbableNode:x,firstDomTabbableNode:E,lastDomTabbableNode:h,nextTabbableNode:function(F){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,R=d.indexOf(F);return R<0?C?g.slice(g.indexOf(F)+1).find(function(k){return oe(k)}):g.slice(0,g.indexOf(F)).reverse().find(function(k){return oe(k)}):d[R+(C?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!v("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(u){return u.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},b=function(u){var d=u.activeElement;if(d)return d.shadowRoot&&d.shadowRoot.activeElement!==null?b(d.shadowRoot):d},S=function(u){if(u!==!1&&u!==b(document)){if(!u||!u.focus){S(m());return}u.focus({preventScroll:!!i.preventScroll}),s.mostRecentlyFocusedNode=u,Rn(u)&&u.select()}},I=function(u){var d=v("setReturnFocus",{params:[u]});return d||(d===!1?!1:u)},w=function(u){var d=u.target,g=u.event,T=u.isBackward,x=T===void 0?!1:T;d=d||xe(g),p();var E=null;if(s.tabbableGroups.length>0){var h=c(d,g),f=h>=0?s.containerGroups[h]:void 0;if(h<0)x?E=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:E=s.tabbableGroups[0].firstTabbableNode;else if(x){var y=s.tabbableGroups.findIndex(function(z){var H=z.firstTabbableNode;return d===H});if(y<0&&(f.container===d||Me(d,i.tabbableOptions)&&!oe(d,i.tabbableOptions)&&!f.nextTabbableNode(d,!1))&&(y=h),y>=0){var F=y===0?s.tabbableGroups.length-1:y-1,C=s.tabbableGroups[F];E=se(d)>=0?C.lastTabbableNode:C.lastDomTabbableNode}else ge(g)||(E=f.nextTabbableNode(d,!1))}else{var R=s.tabbableGroups.findIndex(function(z){var H=z.lastTabbableNode;return d===H});if(R<0&&(f.container===d||Me(d,i.tabbableOptions)&&!oe(d,i.tabbableOptions)&&!f.nextTabbableNode(d))&&(R=h),R>=0){var k=R===s.tabbableGroups.length-1?0:R+1,O=s.tabbableGroups[k];E=se(d)>=0?O.firstTabbableNode:O.firstDomTabbableNode}else ge(g)||(E=f.nextTabbableNode(d))}}else E=v("fallbackFocus");return E},A=function(u){var d=xe(u);if(!(c(d,u)>=0)){if(pe(i.clickOutsideDeactivates,u)){o.deactivate({returnFocus:i.returnFocusOnDeactivate});return}pe(i.allowOutsideClick,u)||u.preventDefault()}},M=function(u){var d=xe(u),g=c(d,u)>=0;if(g||d instanceof Document)g&&(s.mostRecentlyFocusedNode=d);else{u.stopImmediatePropagation();var T,x=!0;if(s.mostRecentlyFocusedNode)if(se(s.mostRecentlyFocusedNode)>0){var E=c(s.mostRecentlyFocusedNode),h=s.containerGroups[E].tabbableNodes;if(h.length>0){var f=h.findIndex(function(y){return y===s.mostRecentlyFocusedNode});f>=0&&(i.isKeyForward(s.recentNavEvent)?f+1<h.length&&(T=h[f+1],x=!1):f-1>=0&&(T=h[f-1],x=!1))}}else s.containerGroups.some(function(y){return y.tabbableNodes.some(function(F){return se(F)>0})})||(x=!1);else x=!1;x&&(T=w({target:s.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(s.recentNavEvent)})),S(T||s.mostRecentlyFocusedNode||m())}s.recentNavEvent=void 0},W=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=u;var g=w({event:u,isBackward:d});g&&(ge(u)&&u.preventDefault(),S(g))},U=function(u){(i.isKeyForward(u)||i.isKeyBackward(u))&&W(u,i.isKeyBackward(u))},B=function(u){An(u)&&pe(i.escapeDeactivates,u)!==!1&&(u.preventDefault(),o.deactivate())},V=function(u){var d=xe(u);c(d,u)>=0||pe(i.clickOutsideDeactivates,u)||pe(i.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},j=function(){if(s.active)return q.activateTrap(r,o),s.delayInitialFocusTimer=i.delayInitialFocus?dt(function(){S(m())}):S(m()),n.addEventListener("focusin",M,!0),n.addEventListener("mousedown",A,{capture:!0,passive:!1}),n.addEventListener("touchstart",A,{capture:!0,passive:!1}),n.addEventListener("click",V,{capture:!0,passive:!1}),n.addEventListener("keydown",U,{capture:!0,passive:!1}),n.addEventListener("keydown",B),o},Ae=function(u){s.active&&!s.paused&&o._setSubtreeIsolation(!1),s.adjacentElements.clear(),s.alreadySilent.clear();var d=new Set,g=new Set,T=lt(u),x;try{for(T.s();!(x=T.n()).done;){var E=x.value;d.add(E);for(var h=typeof ShadowRoot<"u"&&E.getRootNode()instanceof ShadowRoot,f=E;f;){d.add(f);var y=f.parentElement,F=[];y?F=y.children:!y&&h&&(F=f.getRootNode().children,y=f.getRootNode().host,h=typeof ShadowRoot<"u"&&y.getRootNode()instanceof ShadowRoot);var C=lt(F),R;try{for(C.s();!(R=C.n()).done;){var k=R.value;g.add(k)}}catch(O){C.e(O)}finally{C.f()}f=y}}}catch(O){T.e(O)}finally{T.f()}
9d.forEach(function(O){g.delete(O)}),s.adjacentElements=g},P=function(){if(s.active)return n.removeEventListener("focusin",M,!0),n.removeEventListener("mousedown",A,!0),n.removeEventListener("touchstart",A,!0),n.removeEventListener("click",V,!0),n.removeEventListener("keydown",U,!0),n.removeEventListener("keydown",B),o},ae=function(u){var d=u.some(function(g){var T=Array.from(g.removedNodes);return T.some(function(x){return x===s.mostRecentlyFocusedNode})});d&&S(m())},Z=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(ae):void 0,X=function(){Z&&(Z.disconnect(),s.active&&!s.paused&&s.containers.map(function(u){Z.observe(u,{subtree:!0,childList:!0})}))};return o={get active(){return s.active},get paused(){return s.paused},activate:function(u){if(s.active)return this;var d=l(u,"onActivate"),g=l(u,"onPostActivate"),T=l(u,"checkCanFocusTrap"),x=q.getActiveTrap(r),E=!1;if(x&&!x.paused){var h;(h=x._setSubtreeIsolation)===null||h===void 0||h.call(x,!1),E=!0}try{T||p(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=b(n),d==null||d();var f=function(){T&&p(),j(),X(),i.isolateSubtrees&&o._setSubtreeIsolation(!0),g==null||g()};if(T)return T(s.containers.concat()).then(f,f),this;f()}catch(F){if(x===q.getActiveTrap(r)&&E){var y;(y=x._setSubtreeIsolation)===null||y===void 0||y.call(x,!0)}throw F}return this},deactivate:function(u){if(!s.active)return this;var d=ut({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},u);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,s.paused||o._setSubtreeIsolation(!1),s.alreadySilent.clear(),P(),s.active=!1,s.paused=!1,X(),q.deactivateTrap(r,o);var g=l(d,"onDeactivate"),T=l(d,"onPostDeactivate"),x=l(d,"checkCanReturnFocus"),E=l(d,"returnFocus","returnFocusOnDeactivate");g==null||g();var h=function(){dt(function(){E&&S(I(s.nodeFocusedBeforeActivation)),T==null||T()})};return E&&x?(x(I(s.nodeFocusedBeforeActivation)).then(h,h),this):(h(),this)},pause:function(u){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,u)):this},unpause:function(u){return s.active?(s.manuallyPaused=!1,r[r.length-1]!==this?this:this._setPausedState(!1,u)):this},updateContainerElements:function(u){var d=[].concat(u).filter(Boolean);return s.containers=d.map(function(g){return typeof g=="string"?n.querySelector(g):g}),i.isolateSubtrees&&Ae(s.containers),s.active&&(p(),i.isolateSubtrees&&!s.paused&&o._setSubtreeIsolation(!0)),X(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(u,d){if(s.paused===u)return this;if(s.paused=u,u){var g=l(d,"onPause"),T=l(d,"onPostPause");g==null||g(),P(),X(),o._setSubtreeIsolation(!1),T==null||T()}else{var x=l(d,"onUnpause"),E=l(d,"onPostUnpause");x==null||x(),o._setSubtreeIsolation(!0),p(),j(),X(),E==null||E()}return this}},_setSubtreeIsolation:{value:function(u){i.isolateSubtrees&&s.adjacentElements.forEach(function(d){var g;if(u)switch(i.isolateSubtrees){case"aria-hidden":(d.ariaHidden==="true"||((g=d.getAttribute("aria-hidden"))===null||g===void 0?void 0:g.toLowerCase())==="true")&&s.alreadySilent.add(d),d.setAttribute("aria-hidden","true");break;default:(d.inert||d.hasAttribute("inert"))&&s.alreadySilent.add(d),d.setAttribute("inert",!0);break}else if(!s.alreadySilent.has(d))switch(i.isolateSubtrees){case"aria-hidden":d.removeAttribute("aria-hidden");break;default:d.removeAttribute("inert");break}})}}}),o.updateContainerElements(e),o};function Dn(a,e={}){let t;const{immediate:n,...r}=e,i=re(!1),s=re(!1),o=p=>t&&t.activate(p),l=p=>t&&t.deactivate(p),c=()=>{t&&(t.pause(),s.value=!0)},v=()=>{t&&(t.unpause(),s.value=!1)},m=me(()=>{const p=tt(a);return(Array.isArray(p)?p:[p]).map(b=>{const S=tt(b);return typeof S=="string"?S:Mt(S)}).filter(Lt)});return je(m,p=>{p.length&&(t=Ln(p,{...r,onActivate(){i.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){i.value=!1,e.onDeactivate&&e.onDeactivate()}}),n&&o())},{flush:"post"}),Ct(()=>l()),{hasFocus:i,isPaused:s,activate:o,deactivate:l,pause:c,unpause:v}}class ce{constructor(e,t=!0,n=[],r=5e3){this.ctx=e,this.iframes=t,this.exclude=n,this.iframesTimeout=r}static matches(e,t){const n=typeof t=="string"?[t]:t,r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(r){let i=!1;return n.every(s=>r.call(e,s)?(i=!0,!1):!0),i}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="str
9ing"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(n=>{const r=t.filter(i=>i.contains(n)).length>0;t.indexOf(n)===-1&&!r&&t.push(n)}),t}getIframeContents(e,t,n=()=>{}){let r;try{const i=e.contentWindow;if(r=i.document,!i||!r)throw new Error("iframe inaccessible")}catch{n()}r&&t(r)}isIframeBlank(e){const t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}observeIframeLoad(e,t,n){let r=!1,i=null;const s=()=>{if(!r){r=!0,clearTimeout(i);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener("load",s),i=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,n){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch{n()}}waitForIframes(e,t){let n=0;this.forEachIframe(e,()=>!0,r=>{n++,this.waitForIframes(r.querySelector("html"),()=>{--n||t()})},r=>{r||t()})}forEachIframe(e,t,n,r=()=>{}){let i=e.querySelectorAll("iframe"),s=i.length,o=0;i=Array.prototype.slice.call(i);const l=()=>{--s<=0&&r(o)};s||l(),i.forEach(c=>{ce.matches(c,this.exclude)?l():this.onIframeReady(c,v=>{t(c)&&(o++,n(v)),l()},l)})}createIterator(e,t,n){return document.createNodeIterator(e,t,n,!1)}createInstanceOnIframe(e){return new ce(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,n){const r=e.compareDocumentPosition(n),i=Node.DOCUMENT_POSITION_PRECEDING;if(r&i)if(t!==null){const s=t.compareDocumentPosition(n),o=Node.DOCUMENT_POSITION_FOLLOWING;if(s&o)return!0}else return!0;return!1}getIteratorNode(e){const t=e.previousNode();let n;return t===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:t,node:n}}checkIframeFilter(e,t,n,r){let i=!1,s=!1;return r.forEach((o,l)=>{o.val===n&&(i=l,s=o.handled)}),this.compareNodeIframe(e,t,n)?(i===!1&&!s?r.push({val:n,handled:!0}):i!==!1&&!s&&(r[i].handled=!0),!0):(i===!1&&r.push({val:n,handled:!1}),!1)}handleOpenIframes(e,t,n,r){e.forEach(i=>{i.handled||this.getIframeContents(i.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,n,r)})})}iterateThroughNodes(e,t,n,r,i){const s=this.createIterator(t,e,r);let o=[],l=[],c,v,m=()=>({prevNode:v,node:c}=this.getIteratorNode(s),c);for(;m();)this.iframes&&this.forEachIframe(t,p=>this.checkIframeFilter(c,v,p,o),p=>{this.createInstanceOnIframe(p).forEachNode(e,b=>l.push(b),r)}),l.push(c);l.forEach(p=>{n(p)}),this.iframes&&this.handleOpenIframes(o,e,n,r),i()}forEachNode(e,t,n,r=()=>{}){const i=this.getContexts();let s=i.length;
vendor: 9,011 bytes, line 9
9s||r(),i.forEach(o=>{const l=()=>{this.iterateThroughNodes(e,o,t,n,()=>{--s<=0&&r()})};this.iframes?this.waitForIframes(o,l):l()})}}let Pn=class{constructor(e){this.ctx=e,this.ie=!1;const t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new ce(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){const n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[t]=="function"&&n[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){const t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let i in t)if(t.hasOwnProperty(i)){const s=t[i],o=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);o!==""&&l!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(o)}|${this.escapeStr(l)})`,`gm${n}`),r+`(${this.processSynomyms(o)}|${this.processSynomyms(l)})`+r))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":"�"),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"�")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,n,r)=>{let i=r.charAt(n+1);return/[(|)\\]/.test(i)||i===""?t:t+"\0"})}createJoinersRegExp(e){let t=[];const n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){const t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aà áảãạÄằắẳẵặâầấẩẫáºÃ¤Ã¥ÄÄ
","AÃÃẢÃẠÄẰẮẲẴẶÃẦẤẨẪẬÃÃ
ÄÄ","cçÄÄ","CÃÄÄ","dÄÄ","DÄÄ","eèéẻẽẹêá»áº¿á»á»
á»Ã«ÄÄÄ","EÃÃẺẼẸÃá»áº¾á»á»á»ÃÄÄÄ","iìÃá»Ä©á»Ã®Ã¯Ä«","IÃÃá»Ä¨á»ÃÃĪ","lÅ","LÅ","nñÅÅ","NÃÅÅ","oòóá»Ãµá»Ã´á»á»á»á»á»Æ¡á»á»¡á»á»á»£Ã¶Ã¸Å","OÃÃá»Ãá»Ãá»á»á»á»á»Æ á»á» á»á»á»¢ÃÃÅ","rÅ","RÅ","sÅ¡ÅÈÅ","SÅ ÅÈÅ","tÅ¥ÈÅ£","TŤÈÅ¢","uùúủũụưừứá»á»¯á»±Ã»Ã¼Å¯Å«","UÃÃỦŨỤƯỪỨỬỮỰÃÃŮŪ","yýỳỷỹỵÿ","YÃỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aà áảãạÄằắẳẵặâầấẩẫáºÃ¤Ã¥ÄÄ
AÃÃẢÃẠÄẰẮẲẴẶÃẦẤẨẪẬÃÃ
ÄÄ","cçÄÄCÃÄÄ","dÄÄDÄÄ","eèéẻẽẹêá»áº¿á»á»
á»Ã«ÄÄÄEÃÃẺẼẸÃá»áº¾á»á»á»ÃÄÄÄ","iìÃá»Ä©á»Ã®Ã¯Ä«IÃÃá»Ä¨á»ÃÃĪ","lÅLÅ","nñÅÅNÃÅÅ","oòóá»Ãµá»Ã´á»á»á»á»á»Æ¡á»á»¡á»á»á»£Ã¶Ã¸ÅOÃÃá»Ãá»Ãá»á»á»á»á»Æ á»á» á»á»á»¢ÃÃÅ","rÅRÅ","sÅ¡ÅÈÅSÅ ÅÈÅ","tÅ¥ÈÅ£TŤÈÅ¢","uùúủũụưừứá»á»¯á»±Ã»Ã¼Å¯Å«UÃÃỦŨỤƯỪỨỬỮỰÃÃŮŪ","yýỳỷỹỵÿYÃỲỶỸỴŸ","zžżźZŽŻŹ"];let r=[];return e.split("").forEach(i=>{n.every(s=>{if(s.indexOf(i)!==-1){if(r.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),r.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){const t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let n=this.opt.accuracy,r=typeof n=="string"?n:n.value,i=typeof n=="string"?[]:n.limiters,s="";switch(i.forEach(o=>{s+=`|${this.escapeStr(o)}`}),r){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(r=>{r.trim()&&t.indexOf(r)===-1&&t.push(r)}):n.trim()&&t.indexOf(n)===-1&&t.push(n)}),{keywords:t.sort((n,r)=>r.length-n.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];const t=[];let n=0;return e.sort((r,i)=>r.start-i.start).forEach(r=>{let{start:i,end:s,valid:o}=this.callNoMatchOnInvalidRanges(r,n);o&&(r.start=i,r.length=s-i,t.push(r),n=s)}),t}callNoMatchOnInvalidRanges(e,t){let n,r,i=!1;return e&&typeof e.start<"u"?(n=parseInt(e.start,10),r=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&r-t>0&&r-n>0?i=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:n,end:r,valid:i}}checkWhitespaceRanges(e,t,n){let r,i=!0,s=n.length,o=t-s,l=parseInt(e.start,10)-o;return l=l>s?s:l,r=l+parseInt(e.length,10),r>s&&(r=s,this.log(`End range automatically set to the max value of ${s}`)),l<0||r-l<0||l>s||r>s?(i=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(l,r).replace(/\s+/g,"")===""&&(i=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:l,end:r,valid:i}}getTextNodes(e){let t="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,r=>{n.push({start:t.length,end:(t+=r.textContent).length,node:r})},r=>this.matchesExclude(r.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:n})})}matchesExclude(e){return ce.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,n){const r=this.opt.element?this.opt.element:"mark",i=e.splitText(t),s=i.splitText(n-t);let o=document.createElement(r);return o.setAttribute("data-markjs","true"),this.opt.className&&o.setAttribute("class",this.opt.className),o.textContent=i.textContent,i.parentNode.replaceChild(o,i),s}wrapRangeInMappedTextNode(e,t,n,r,i){e.nodes.every((s,o)=>{const l=e.nodes[o+1];if(typeof l>"u"||l.start>t){if(!r(s.node))return!1;const c=t-s.start,v=(n>s.end?s.end:n)-s.start,m=e.value.substr(0,s.start),p=e.value.substr(v+s.start);if(s.node=this.wrapRangeInTextNode(s.node,c,v),e.value=m+p,e.nodes.forEach((b,S)=>{S>=o&&(e.nodes[S].start>0&&S!==o&&(e.nodes[S].start-=v),e.nodes[S].end-=v)}),n-=v,i(s.node.previousSibling,s.start),n>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,n,r,i){const s=t===0?0:t+1;this.getTextNodes(o=>{o.nodes.forEach(l=>{l=l.node;let c;for(;(c=e.exec(l.textContent))!==null&&c[s]!=="";){if(!n(c[s],l))continue;let v=c.index;if(s!==0)for(let m=1;m<s;m++)v+=c[m].length;l=this.wrapRangeInTextNode(l,v,v+c[s].length),r(l.previousSibling),e.lastIndex=0}}),i()})}wrapMatchesAcrossElements(e,t,n,r,i){const s=t===0?0:t+1;this.getTextNodes(o=>{let l;for(;(l=e.exec(o.value))!==null&&l[s]!=="";){let c=l.index;if(s!==0)for(let m=1;m<s;m++)c+=l[m].length;const v=c+l[s].length;this.wrapRangeInMappedTextNode(o,c,v,m=>n(l[s],m),(m,p)=>{e.lastIndex=p,r(m)})}i()})}wrapRangeFromIndex(e,t,n,r){this.getTextNodes(i=>{const s=i.value.length;e.forEach((o,l)=>{let{start:c,end:v,valid:m}=this.checkWhitespaceRanges(o,s,i.value);m&&this.wrapRangeInMappedTextNode(i,c,v,p=>t(p,o,i.value.substring(c,v),l),p=>{n(p,o)})}),r()})}unwrapMatches(e){const t=e.parentNode;let n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let n=0,r="wrapMatches";const i=s=>{n++,this.opt.each(s)};this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),this[r](e,this.opt.ignoreGroups,
9(s,o)=>this.opt.filter(o,s,n),i,()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,t){this.opt=t;let n=0,r="wrapMatches";const{keywords:i,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),o=this.opt.caseSensitive?"":"i",l=c=>{let v=new RegExp(this.createRegExp(c),`gm${o}`),m=0;this.log(`Searching with expression "${v}"`),this[r](v,1,(p,b)=>this.opt.filter(b,c,n,m),p=>{m++,n++,this.opt.each(p)},()=>{m===0&&this.opt.noMatch(c),i[s-1]===c?this.opt.done(n):l(i[i.indexOf(c)+1])})};this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),s===0?this.opt.done(n):l(i[0])}markRanges(e,t){this.opt=t;let n=0,r=this.checkRanges(e);r&&r.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(r)),this.wrapRangeFromIndex(r,(i,s,o,l)=>this.opt.filter(i,s,o,l),(i,s)=>{n++,this.opt.each(i,s)},()=>{this.opt.done(n)})):this.opt.done(n)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,n=>{this.unwrapMatches(n)},n=>{const r=ce.matches(n,t),i=this.matchesExclude(n);return!r||i?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function zn(a){const e=new Pn(a);return this.mark=(t,n)=>(e.mark(t,n),this),this.markRegExp=(t,n)=>(e.markRegExp(t,n),this),this.markRanges=(t,n)=>(e.markRanges(t,n),this),this.unmark=t=>(e.unmark(t),this),this}const Vn="ENTRIES",_t="KEYS",Tt="VALUES",D="";class Le{constructor(e,t){const n=e._tree,r=Array.from(n.keys());this.set=e,this._type=t,this._path=r.length>0?[{node:n,keys:r}]:[]}next(){const e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:e,keys:t}=le(this._path);if(le(t)===D)return{done:!1,value:this.result()};const n=e.get(le(t));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const e=le(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>le(e)).filter(e=>e!==D).join("")}value(){return le(this._path).node.get(D)}result(){switch(this._type){case Tt:return this.value();case _t:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const le=a=>a[a.length-1],jn=(a,e,t)=>{const n=new Map;if(e===void 0)return n;const r=e.length+1,i=r+t,s=new Uint8Array(i*r).fill(t+1);for(let o=0;o<r;++o)s[o]=o;for(let o=1;o<i;++o)s[o*r]=o;return Et(a,e,t,n,s,1,r,""),n},Et=(a,e,t,n,r,i,s,o)=>{const l=i*s;e:for(const c of a.keys())if(c===D){const v=r[l-1];v<=t&&n.set(o,[a.get(c),v])}else{let v=i;for(let m=0;m<c.length;++m,++v){const p=c[m],b=s*v,S=b-s;let I=r[b];const w=Math.max(0,v-t-1),A=Math.min(s-1,v+t);for(let M=w;M<A;++M){const W=p!==e[M],U=r[S+M]+ +W,B=r[S+M+1]+1,V=r[b+M]+1,j=r[b+M+1]=Math.min(U,B,V);j<I&&(I=j)}if(I>t)continue e}Et(a.get(c),e,t,n,r,v,s,o+c)}};class Y{constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,n]=Re(this._tree,e.slice(this._prefix.length));if(t===void 0){const[r,i]=qe(n);for(const s of r.keys())if(s!==D&&s.startsWith(i)){const o=new Map;return o.set(s.slice(i.length),r.get(s)),new Y(o,e)}}return new Y(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,$n(this._tree,e)}entries(){return new Le(this,Vn)}forEach(e){for(const[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return jn(this._tree,e,t)}get(e){const t=We(this._tree,e);return t!==void 0?t.get(D):void 0}has(e){const t=We(this._tree,e);return t!==void 0&&t.has(D)}keys(){return new Le(this,_t)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,De(this._tree,e).set(D,t),this}get size(){if(this._size)return this._size;this._size=0;const e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=De(this._tree,e);return n.set(D,t(n.get(D))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=De(this._tree,e);let r=n.get(D);return r===void 0&&n.set(D,r=t()),r}values(){return new Le(this,Tt)}[Symbol.iterator](){return this.entries()}static from(e){const t=new Y;for(const[n,r]of e)t.set(n,r);return t}static fromObject(e){return Y.from(Object.entries(e))}}const Re=(a,e,t=[])=>{if(e.length===0||a==null)return[a,t];for(const n of a.keys())if(n!==D&&e.startsWith(n))return t.push([a,n]),Re(a.get(n),e.slice(n.length),t);return t.push([a,e]),Re(void 0,"",t)},We=(a,e)=>{if(e.length===0||a==null)return a;for(const t of a.keys())if(t!==D&&e.startsWith(t))return We(a.get(t),e.slice(t.length))},De=(a,e)=>{const t=e.length;e:for(let n=0;a&&n<t;){for(const i of a.keys())if(i!==D&&e[n]===i[0]){const s=Math.min(t-n,i.length);let o=1;for(;o<s&&e[n+o]===i[o];)++o;const l=a.get(i);if(o===i.length)a=l;else{const c=new Map;c.set(i.slice(o),l),a.set(e.slice(n,n+o),c),a.delete(i),a=c}n+=o;continue e}const r=new Map;return a.set(e.slice(n),r),r}return a},$n=(a,e)=>{const[t,n]=Re(a,e);
9if(t!==void 0){if(t.delete(D),t.size===0)It(n);else if(t.size===1){const[r,i]=t.entries().next().value;kt(n,r,i)}}},It=a=>{if(a.length===0)return;const[e,t]=qe(a);if(e.delete(t),e.size===0)It(a.slice(0,-1));else if(e.size===1){const[n,r]=e.entries().next().value;n!==D&&kt(a.slice(0,-1),n,r)}},kt=(a,e,t)=>{if(a.length===0)return;const[n,r]=qe(a);n.set(r+e,t),n.delete(r)},qe=a=>a[a.length-1],Ue="or",Nt="and",Bn="and_not";class ue{constructor(e){if((e==null?void 0:e.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const t=e.autoVacuum==null||e.autoVacuum===!0?Ve:e.autoVacuum;this._options={...ze,...e,autoVacuum:t,searchOptions:{...ft,...e.searchOptions||{}},autoSuggestOptions:{...Un,...e.autoSuggestOptions||{}}},this._index=new Y,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Je,this.addFields(this._options.fields)}add(e){const{extractField:t,stringifyField:n,tokenize:r,processTerm:i,fields:s,idField:o}=this._options,l=t(e,o);if(l==null)throw new Error(`MiniSearch: document does not have ID field "${o}"`);if(this._idToShortId.has(l))throw new Error(`MiniSearch: duplicate ID ${l}`);const c=this.addDocumentId(l);this.saveStoredFields(c,e);for(const v of s){const m=t(e,v);if(m==null)continue;const p=r(n(m,v),v),b=this._fieldIds[v],S=new Set(p).size;this.addFieldLength(c,b,this._documentCount-1,S);for(const I of p){const w=i(I,v);if(Array.isArray(w))for(const A of w)this.addTerm(b,c,A);else w&&this.addTerm(b,c,w)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:n=10}=t,r={chunk:[],promise:Promise.resolve()},{chunk:i,promise:s}=e.reduce(({chunk:o,promise:l},c,v)=>(o.push(c),(v+1)%n===0?{chunk:[],promise:l.then(()=>new Promise(m=>setTimeout(m,0))).then(()=>this.addAll(o))}:{chunk:o,promise:l}),r);return s.then(()=>this.addAll(i))}remove(e){const{tokenize:t,processTerm:n,extractField:r,stringifyField:i,fields:s,idField:o}=this._options,l=r(e,o);if(l==null)throw new Error(`MiniSearch: document does not have ID field "${o}"`);const c=this._idToShortId.get(l);if(c==null)throw new Error(`MiniSearch: cannot remove document with ID ${l}: it is not in the index`);for(const v of s){const m=r(e,v);if(m==null)continue;const p=t(i(m,v),v),b=this._fieldIds[v],S=new Set(p).size;this.removeFieldLength(c,b,this._documentCount,S);for(const I of p){const w=n(I,v);if(Array.isArray(w))for(const A of w)this.removeTerm(b,c,A);else w&&this.removeTerm(b,c,w)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(l),this._fieldLength.delete(c),this._documentCount-=1}removeAll(e){if(e)for(const t of e)this.remove(t);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new Y,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((n,r)=>{this.removeFieldLength(t,r,this._documentCount,n)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:e,minDirtCount:t,batchSize:n,batchWait:r}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:r},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const n of e)this.discard(n)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:n}=this._options,r=n(e,t);this.discard(r),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const n=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Je,this.performVacuuming(e,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,t){const n=this._dirtCount;if(this.vacuumConditionsMet(t)){const r=e.batchSize||Ke.batchSize,i=e.batchWait||Ke.batchWait;let s=1;for(const[o,l]of this._index){for(const[c,v]of l)for(const[m]of v)this._documentIds.has(m)||(v.size<=1?l.delete(c):v.delete(m));this._index.get(o).size===0&&this._index.delete(o),s%r===0&&await new Promise(c=>setTimeout(c,i)),s+=1}this._dirtCount-=n}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:n}=e;return t=t||Ve.minDirtCount,n=n||Ve.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=n}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){const t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(e,t={}){const{searchOptions:n}=this._options,r={...n,...t},i=this.executeQuery(e,t),s=[];for(const[o,{score:l,terms:c,match:v}]of i){const m=c.length||1,p={id:this._documentIds.get(o),score:l*m,terms:Object.keys(v),queryTerms:c,match:v};Object.assign(p,this._storedFields.get(o)),(r.filter==null||r.filter(p))&&s.push(p)}return e===ue.wildcard&&r.boostDocument==null||s.sort(vt),s}autoSuggest(e,t={}){t={...this._options.autoSuggestOptions,...t};const n=new Map;for(const{score:i,terms:s}of this.search(e,t)){const o=s.join(" "),l=n.get(o);l!=null?(l.score+=i,l.count+=1):n.set(o,{score:i,terms:s,count:1})}const r=[];for(const[i,{score:s,terms:o,count:l}]of n)r.push({suggestion:i,terms:o,score:s/l});return r.sort(vt),r}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static async loadJSONAsync(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)}static getDefault(e){if(ze.hasOwnProperty(e))return Pe(ze,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:n,documentIds:r,fieldLength:i,storedFields:s,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=_e(r),l._fieldLength=_e(i),l._storedFields=_e(s);for(const[c,v]of l._documentIds)l._idToShortId.set(v,c);for(const[c,v]of n){const m=new Map;for(const p of Object.keys(v)){let b=v[p];o===1&&(b=b.ds),m.set(parseInt(p,10),_e(b))}l._index.set(c,m)}return l}static async loadJSAsync(e,t){const{index:n,documentIds:r,fieldLength:i,storedFields:s,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=await Te(r),l._fieldLength=await Te(i),l._storedFields=await Te(s);for(const[v,m]of l._documentIds)l._idToShortId.set(m,v);let c=0;for(const[v,m]of n){const p=new Map;for(const b of Object.keys(m)){let S=m[b];o===1&&(S=S.ds),p.set(parseInt(b,10),await Te(S))}++c%1e3===0&&await Ft(0),l._index.set(v,p)}return l}static instantiateMiniSearch(e,t){const{documentCount:n,nextId:r,fieldIds:i,averageFieldLength:s,dirtCount:o,serializationVersion:l}=e;if(l!==1&&l!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const c=new ue(t);return c._documentCount=n,c._nextId=r,c._idToShortId=new Map,c._fieldIds=i,c._avgFieldLength=s,c._dirtCount=o||0,c._index=new Y,c}executeQuery(e,t={}){if(e===ue.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){const p={...t,...e,queries:void 0},b=e.queries.map(S=>this.executeQuery(S,p));return this.combineResults(b,p.combineWith)}const{tokenize:n,processTerm:r,searchOptions:i}=this._options,s={tokenize:n,processTerm:r,...i,...t},{tokenize:o,processTerm:l}=s,m=o(e).flatMap(p=>l(p)).filter(p=>!!p).map(qn(s)).map(p=>this.executeQuerySpec(p,s));return this.combineResults(m,s.combineWith)}executeQuerySpec(e,t){const n={...this._options.searchOptions,...t},r=(n.fields||this._options.fields).reduce((I,w)=>({...I,[w]:Pe(n.boost,w)||1}),{}),{boostDocument:i,weights:s,maxFuzzy:o,bm25:l}=n,{fuzzy:c,prefix:v}={...ft.weights,...s},m=this._index.get(e.term),p=this.termResults(e.term,e.term,1,e.termBoost,m,r,i,l);
9let b,S;if(e.prefix&&(b=this._index.atPrefix(e.term)),e.fuzzy){const I=e.fuzzy===!0?.2:e.fuzzy,w=I<1?Math.min(o,Math.round(e.term.length*I)):I;w&&(S=this._index.fuzzyGet(e.term,w))}if(b)for(const[I,w]of b){const A=I.length-e.term.length;if(!A)continue;S==null||S.delete(I);const M=v*I.length/(I.length+.3*A);this.termResults(e.term,I,M,e.termBoost,w,r,i,l,p)}if(S)for(const I of S.keys()){const[w,A]=S.get(I);if(!A)continue;const M=c*I.length/(I.length+A);this.termResults(e.term,I,M,e.termBoost,w,r,i,l,p)}return p}executeWildcardQuery(e){const t=new Map,n={...this._options.searchOptions,...e};for(const[r,i]of this._documentIds){const s=n.boostDocument?n.boostDocument(i,"",this._storedFields.get(r)):1;t.set(r,{score:s,terms:[],match:{}})}return t}combineResults(e,t=Ue){if(e.length===0)return new Map;const n=t.toLowerCase(),r=Wn[n];if(!r)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(r)||new Map}toJSON(){const e=[];for(const[t,n]of this._index){const r={};for(const[i,s]of n)r[i]=Object.fromEntries(s);e.push([t,r])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,n,r,i,s,o,l,c=new Map){if(i==null)return c;for(const v of Object.keys(s)){const m=s[v],p=this._fieldIds[v],b=i.get(p);if(b==null)continue;let S=b.size;const I=this._avgFieldLength[p];for(const w of b.keys()){if(!this._documentIds.has(w)){this.removeTerm(p,w,t),S-=1;continue}const A=o?o(this._documentIds.get(w),t,this._storedFields.get(w)):1;if(!A)continue;const M=b.get(w),W=this._fieldLength.get(w)[p],U=Jn(M,S,this._documentCount,W,I,l),B=n*r*m*A*U,V=c.get(w);if(V){V.score+=B,Hn(V.terms,e);const j=Pe(V.match,t);j?j.push(v):V.match[t]=[v]}else c.set(w,{score:B,terms:[e],match:{[t]:[v]}})}}return c}addTerm(e,t,n){const r=this._index.fetch(n,pt);let i=r.get(e);if(i==null)i=new Map,i.set(t,1),r.set(e,i);else{const s=i.get(t);i.set(t,(s||0)+1)}}removeTerm(e,t,n){if(!this._index.has(n)){this.warnDocumentChanged(t,e,n);return}const r=this._index.fetch(n,pt),i=r.get(e);i==null||i.get(t)==null?this.warnDocumentChanged(t,e,n):i.get(t)<=1?i.size<=1?r.delete(e):i.delete(t):i.set(t,i.get(t)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(e,t,n){for(const r of Object.keys(this._fieldIds))if(this._fieldIds[r]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${n}" was not present in field "${r}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(e){const t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,n,r){let i=this._fieldLength.get(e);i==null&&this._fieldLength.set(e,i=[]),i[t]=r;const o=(this._avgFieldLength[t]||0)*n+r;this._avgFieldLength[t]=o/(n+1)}removeFieldLength(e,t,n,r){if(n===1){this._avgFieldLength[t]=0;return}const i=this._avgFieldLength[t]*n-r;this._avgFieldLength[t]=i/(n-1)}saveStoredFields(e,t){const{storeFields:n,extractField:r}=this._options;if(n==null||n.length===0)return;let i=this._storedFields.get(e);i==null&&this._storedFields.set(e,i={});for(const s of n){const o=r(t,s);o!==void 0&&(i[s]=o)}}}ue.wildcard=Symbol("*");const Pe=(a,e)=>Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0,Wn={[Ue]:(a,e)=>{for(const t of e.keys()){const n=a.get(t);if(n==null)a.set(t,e.get(t));else{const{score:r,terms:i,match:s}=e.get(t);n.score=n.score+r,n.match=Object.assign(n.match,s),ht(n.terms,i)}}return a},[Nt]:(a,e)=>{const t=new Map;for(const n of e.keys()){const r=a.get(n);if(r==null)continue;const{score:i,terms:s,match:o}=e.get(n);ht(r.terms,s),t.set(n,{score:r.score+i,terms:r.terms,match:Object.assign(r.match,o)})}return t},[Bn]:(a,e)=>{for(const t of e.keys())a.delete(t);return a}},Kn={k:1.2,b:.7,d:.5},Jn=(a,e,t,n,r,i)=>{const{k:s,b:o,d:l}=i;return Math.log(1+(t-e+.5)/(e+.5))*(l+a*(s+1)/(a+s*(1-o+o*n/r)))},qn=a=>(e,t,n)=>{const r=typeof a.fuzzy=="function"?a.fuzzy(e,t,n):a.fuzzy||!1,i=typeof a.prefix=="function"?a.prefix(e,t,n):a.prefix===!0,s=typeof a.boostTerm=="function"?a.boostTerm(e,t,n):1;return{term:e,fuzzy:r,prefix:i,termBoost:s}},ze={idField:"id",extractField:(a,e)=>a[e],stringifyField:(a,e)=>a.toString(),tokenize:a=>a.split(Gn),processTerm:a=>a.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(a,e)=>{typeof(console==null?void 0:console[a])=="function"&&console[a](e)},autoVacuum:!0},ft={combineWith:Ue,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:Kn}
9,Un={combineWith:Nt,prefix:(a,e,t)=>e===t.length-1},Ke={batchSize:1e3,batchWait:10},Je={minDirtFactor:.1,minDirtCount:20},Ve={...Ke,...Je},Hn=(a,e)=>{a.includes(e)||a.push(e)},ht=(a,e)=>{for(const t of e)a.includes(t)||a.push(t)},vt=({score:a},{score:e})=>e-a,pt=()=>new Map,_e=a=>{const e=new Map;for(const t of Object.keys(a))e.set(parseInt(t,10),a[t]);return e},Te=async a=>{const e=new Map;let t=0;for(const n of Object.keys(a))e.set(parseInt(n,10),a[n]),++t%1e3===0&&await Ft(0);return e},Ft=a=>new Promise(e=>setTimeout(e,a)),Gn=/[\n\r\p{Z}\p{P}]+/u;class Qn{constructor(e=10){Oe(this,"max");Oe(this,"cache");this.max=e,this.cache=new Map}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){this.cache.has(e)?this.cache.delete(e):this.cache.size===this.max&&this.cache.delete(this.first()),this.cache.set(e,t)}first(){return this.cache.keys().next().value}clear(){this.cache.clear()}}const Yn=["aria-owns"],Zn={class:"shell"},Xn=["title"],er={class:"search-actions before"},tr=["title"],nr=["placeholder"],rr={class:"search-actions"},sr=["title"],ir=["disabled","title"],ar=["id","role","aria-labelledby"],or=["aria-selected"],lr=["href","aria-label","onMouseenter","onFocusin"],cr={class:"titles"},ur=["innerHTML"],dr={class:"title main"},fr=["innerHTML"],hr={key:0,class:"excerpt-wrapper"},vr={key:0,class:"excerpt",inert:""},pr=["innerHTML"],mr={key:0,class:"no-results"},gr={class:"search-keyboard-shortcuts"},br=["aria-label"],yr=["aria-label"],wr=["aria-label"],Sr=["aria-label"],xr=Dt({__name:"VPLocalSearchBox",emits:["close"],setup(a,{emit:e}){var x,E;const t=e,n=Se(),r=Se(),i=Se(an),s=rn(),{activate:o}=Dn(n,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:l,theme:c}=s,v=nt(async()=>{var h,f,y,F,C,R,k,O,z;return at(ue.loadJSON((y=await((f=(h=i.value)[l.value])==null?void 0:f.call(h)))==null?void 0:y.default,{fields:["title","titles","text"],storeFields:["title","titles"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1},...((F=c.value.search)==null?void 0:F.provider)==="local"&&((R=(C=c.value.search.options)==null?void 0:C.miniSearch)==null?void 0:R.searchOptions)},...((k=c.value.search)==null?void 0:k.provider)==="local"&&((z=(O=c.value.search.options)==null?void 0:O.miniSearch)==null?void 0:z.options)}))}),p=me(()=>{var h,f;return((h=c.value.search)==null?void 0:h.provider)==="local"&&((f=c.value.search.options)==null?void 0:f.disableQueryPersistence)===!0}).value?re(""):Pt("vitepress:local-search-filter",""),b=zt("vitepress:local-search-detailed-list",((x=c.value.search)==null?void 0:x.provider)==="local"&&((E=c.value.search.options)==null?void 0:E.detailedView)===!0),S=me(()=>{var h,f,y;return((h=c.value.search)==null?void 0:h.provider)==="local"&&(((f=c.value.search.options)==null?void 0:f.disableDetailedView)===!0||((y=c.value.search.options)==null?void 0:y.detailedView)===!1)}),I=me(()=>{var f,y,F,C,R,k,O;const h=((f=c.value.search)==null?void 0:f.options)??c.value.algolia;return((R=(C=(F=(y=h==null?void 0:h.locales)==null?void 0:y[l.value])==null?void 0:F.translations)==null?void 0:C.button)==null?void 0:R.buttonText)||((O=(k=h==null?void 0:h.translations)==null?void 0:k.button)==null?void 0:O.buttonText)||"Search"});Vt(()=>{S.value&&(b.value=!1)});const w=Se([]),A=re(!1);je(p,()=>{A.value=!1});const M=nt(async()=>{if(r.value)return at(new zn(r.value))},null),W=new Qn(16);jt(()=>[v.value,p.value,b.value],async([h,f,y],F,C)=>{var H,He,Ge,Qe;(F==null?void 0:F[0])!==h&&W.clear();let R=!1;if(C(()=>{R=!0}),!h)return;w.value=h.search(f).slice(0,16),A.value=!0;const k=y?await Promise.all(w.value.map($=>U($.id))):[];if(R)return;for(const{id:$,mod:ee}of k){const te=$.slice(0,$.indexOf("#"));let G=W.get(te);if(G)continue;G=new Map,W.set(te,G);const K=ee.default??ee;if(K!=null&&K.render||K!=null&&K.setup){const ne=Zt(K);ne.config.warnHandler=()=>{},ne.provide(Xt,s),Object.defineProperties(ne.config.globalProperties,{$frontmatter:{get(){return s.frontmatter.value}},$params:{get(){return s.page.value.params}}});const Ye=document.createElement("div");ne.mount(Ye),Ye.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(de=>{var et;const be=(et=de.querySelector("a"))==null?void 0:et.getAttribute("href"),Ze=(be==null?void 0:be.startsWith("#"))&&be.slice(1);if(!Ze)return;let Xe="";for(;(de=de.nextElementSibling)&&!/^h[1-6]$/i.test(de.tagName);)Xe+=de.outerHTML;G.set(Ze,Xe)}),ne.unmount()}if(R)return}const O=new Set;if(w.value=w.value.map($=>{const[ee,te]=$.id.split("#"),G=W.get(ee),K=(G==null?void 0:G.get(te))??"";for(const ne in $.match)O.add(ne);return{...$,text:K}}),await fe(),R)return;await new Promise($=>{var ee;(ee=M.value)==null||ee.unmark({done:()=>{var te;(te=M.value)==null||te.markRegExp(T(O),{done:$})}})});const z=((H=n.value)==null?void 0:H.querySelectorAll(".result .excerpt"))??[];for(const $ of z)(He=$.querySelector('mark[data-markjs="true"]'))==null||He.scrollIntoView({block:"center"});(Qe=(Ge=r.value)==null?void 0:Ge.firstElementChild)==null||Qe.scrollIntoView({block:"start"})},{debounce:200,immediate:!0});async function U(h){const f=en(h.slice(0,h.indexOf("#")));try{if(!f)throw new Error(`Cannot find file for id: ${h}`);return{id:h,mod:await import(f)}}catch(y){return console.error(y),{id:h,mod:{}}}}const B=re(),V=me(()=>{var h;return((h=p.value)==null?void 0:h.length)<=0});function j(h=!0){var f,y;
9(f=B.value)==null||f.focus(),h&&((y=B.value)==null||y.select())}Ce(()=>{j()});function Ae(h){h.pointerType==="mouse"&&j()}const P=re(-1),ae=re(!1);je(w,h=>{P.value=h.length?0:-1,Z()});function Z(){fe(()=>{const h=document.querySelector(".result.selected");h==null||h.scrollIntoView({block:"nearest"})})}ye("ArrowUp",h=>{h.preventDefault(),P.value--,P.value<0&&(P.value=w.value.length-1),ae.value=!0,Z()}),ye("ArrowDown",h=>{h.preventDefault(),P.value++,P.value>=w.value.length&&(P.value=0),ae.value=!0,Z()});const X=$t();ye("Enter",h=>{if(h.isComposing||h.target instanceof HTMLButtonElement&&h.target.type!=="submit")return;const f=w.value[P.value];if(h.target instanceof HTMLInputElement&&!f){h.preventDefault();return}f&&(X.go(f.id),t("close"))}),ye("Escape",()=>{t("close")});const u=sn({modal:{displayDetails:"Display detailed list",resetButtonTitle:"Reset search",backButtonTitle:"Close search",noResultsText:"No results for",footer:{selectText:"to select",selectKeyAriaLabel:"enter",navigateText:"to navigate",navigateUpKeyAriaLabel:"up arrow",navigateDownKeyAriaLabel:"down arrow",closeText:"to close",closeKeyAriaLabel:"escape"}}});Ce(()=>{window.history.pushState(null,"",null)}),Bt("popstate",h=>{h.preventDefault(),t("close")});const d=Wt(Kt?document.body:null);Ce(()=>{fe(()=>{d.value=!0,fe().then(()=>o())})}),Jt(()=>{d.value=!1});function g(){p.value="",fe().then(()=>j(!1))}function T(h){return new RegExp([...h].sort((f,y)=>y.length-f.length).map(f=>`(${tn(f)})`).join("|"),"gi")}return(h,f)=>{var y,F,C,R;return J(),qt(Yt,{to:"body"},[_("div",{ref_key:"el",ref:n,role:"button","aria-owns":(y=w.value)!=null&&y.length?"localsearch-list":void 0,"aria-expanded":"true","aria-haspopup":"listbox","aria-labelledby":"localsearch-label",class:"VPLocalSearchBox"},[_("div",{class:"backdrop",onClick:f[0]||(f[0]=k=>h.$emit("close"))}),_("div",Zn,[_("form",{class:"search-bar",onPointerup:f[4]||(f[4]=k=>Ae(k)),onSubmit:f[5]||(f[5]=Ut(()=>{},["prevent"]))},[_("label",{title:I.value,id:"localsearch-label",for:"localsearch-input"},[...f[8]||(f[8]=[_("span",{"aria-hidden":"true",class:"vpi-search search-icon local-search-icon"},null,-1)])],8,Xn),_("div",er,[_("button",{class:"back-button",title:L(u)("modal.backButtonTitle"),onClick:f[1]||(f[1]=k=>h.$emit("close"))},[...f[9]||(f[9]=[_("span",{class:"vpi-arrow-left local-search-icon"},null,-1)])],8,tr)]),Ht(_("input",{ref_key:"searchInput",ref:B,"onUpdate:modelValue":f[2]||(f[2]=k=>Qt(p)?p.value=k:null),placeholder:I.value,id:"localsearch-input","aria-labelledby":"localsearch-label",class:"search-input"},null,8,nr),[[Gt,L(p)]]),_("div",rr,[S.value?we("",!0):(J(),Q("button",{key:0,class:rt(["toggle-layout-button",{"detailed-list":L(b)}]),type:"button",title:L(u)("modal.displayDetails"),onClick:f[3]||(f[3]=k=>P.value>-1&&(b.value=!L(b)))},[...f[10]||(f[10]=[_("span",{class:"vpi-layout-list local-search-icon"},null,-1)])],10,sr)),_("button",{class:"clear-button",type:"reset",disabled:V.value,title:L(u)("modal.resetButtonTitle"),onClick:g},[...f[11]||(f[11]=[_("span",{class:"vpi-delete local-search-icon"},null,-1)])],8,ir)])],32),_("ul",{ref_key:"resultsEl",ref:r,id:(F=w.value)!=null&&F.length?"localsearch-list":void 0,role:(C=w.value)!=null&&C.length?"listbox":void 0,"aria-labelledby":(R=w.value)!=null&&R.length?"localsearch-label":void 0,class:"results",onMousemove:f[7]||(f[7]=k=>ae.value=!1)},[(J(!0),Q(it,null,st(w.value,(k,O)=>(J(),Q("li",{key:k.id,role:"option","aria-selected":P.value===O?"true":"false"},[_("a",{href:k.id,class:rt(["result",{selected:P.value===O}]),"aria-label":[...k.titles,k.title].join(" > "),onMouseenter:z=>!ae.value&&(P.value=O),onFocusin:z=>P.value=O,onClick:f[6]||(f[6]=z=>h.$emit("close"))},[_("div",null,[_("div",cr,[f[13]||(f[13]=_("span",{class:"title-icon"},"#",-1)),(J(!0),Q(it,null,st(k.titles,(z,H)=>(J(),Q("span",{key:H,class:"title"},[_("span",{class:"text",innerHTML:z},null,8,ur),f[12]||(f[12]=_("span",{class:"vpi-chevron-right local-search-icon"},null,-1))]))),128)),_("span",dr,[_("span",{class:"text",innerHTML:k.title},null,8,fr)])]),L(b)?(J(),Q("div",hr,[k.text?(J(),Q("div",vr,[_("div",{class:"vp-doc",innerHTML:k.text},null,8,pr)])):we("",!0),f[14]||(f[14]=_("div",{class:"excerpt-gradient-bottom"},null,-1)),f[15]||(f[15]=_("div",{class:"excerpt-gradient-top"},null,-1))])):we("",!0)])],42,lr)],8,or))),128)),L(p)&&!w.value.length&&A.value?(J(),Q("li",mr,[he(ve(L(u)("modal.noResultsText"))+' "',1),_("strong",null,ve(L(p)),1),f[16]||(f[16]=he('" ',-1))])):we("",!0)],40,ar),_("div",gr,[_("span",null,[_("kbd",{"aria-label":L(u)("modal.footer.navigateUpKeyAriaLabel")},[...f[17]||(f[17]=[_("span",{class:"vpi-arrow-up navigate-icon"},null,-1)])],8,br),_("kbd",{"aria-label":L(u)("modal.footer.navigateDownKeyAriaLabel")},[...f[18]||(f[18]=[_("span",{class:"vpi-arrow-down navigate-icon"},null,-1)])],8,yr),he(" "+ve(L(u)("modal.footer.navigateText")),1)]),_("span",null,[_("kbd",{"aria-label":L(u)("modal.footer.selectKeyAriaLabel")},[...f[19]||(f[19]=[_("span",{class:"vpi-corner-down-left navigate-icon"},null,-1)])],8,wr),he(" "+ve(L(u)("modal.footer.selectText")),1)]),_("span",null,[_("kbd",{"aria-label":L(u)("modal.footer.closeKeyAri
9aLabel")},"esc",8,Sr),he(" "+ve(L(u)("modal.footer.closeText")),1)])])])],8,Yn)])}}}),Nr=nn(xr,[["__scopeId","data-v-5540cd84"]]);export{Nr as default};
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.