From 6c4b40d29066dddff7b13352de7ac5627503dc7b Mon Sep 17 00:00:00 2001 From: squidfunk Date: Thu, 9 Jul 2026 14:19:22 +0200 Subject: [PATCH] fix: copy search bundle to correct integration path (#187) Signed-off-by: squidfunk --- dist/assets/javascripts/bundle.3809e150.min.js | 10 ---------- dist/assets/javascripts/bundle.d7f30b55.min.js | 10 ++++++++++ dist/base.html | 2 +- .../javascripts/components/search/client/index.js | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) delete mode 100644 dist/assets/javascripts/bundle.3809e150.min.js create mode 100644 dist/assets/javascripts/bundle.d7f30b55.min.js diff --git a/dist/assets/javascripts/bundle.3809e150.min.js b/dist/assets/javascripts/bundle.3809e150.min.js deleted file mode 100644 index 97719093..00000000 --- a/dist/assets/javascripts/bundle.3809e150.min.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict";(()=>{var Fa=Object.create;var Dr=Object.defineProperty,Ua=Object.defineProperties,za=Object.getOwnPropertyDescriptor,Va=Object.getOwnPropertyDescriptors,Wa=Object.getOwnPropertyNames,or=Object.getOwnPropertySymbols,Da=Object.getPrototypeOf,Nr=Object.prototype.hasOwnProperty,In=Object.prototype.propertyIsEnumerable;var Wr=(e,t,r)=>t in e?Dr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))Nr.call(t,r)&&Wr(e,r,t[r]);if(or)for(var r of or(t))In.call(t,r)&&Wr(e,r,t[r]);return e},Tt=(e,t)=>Ua(e,Va(t));var jn=(e,t)=>{var r={};for(var n in e)Nr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&or)for(var n of or(e))t.indexOf(n)<0&&In.call(e,n)&&(r[n]=e[n]);return r};var ir=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Na=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Wa(t))!Nr.call(e,o)&&o!==r&&Dr(e,o,{get:()=>t[o],enumerable:!(n=za(t,o))||n.enumerable});return e};var ct=(e,t,r)=>(r=e!=null?Fa(Da(e)):{},Na(t||!e||!e.__esModule?Dr(r,"default",{value:e,enumerable:!0}):r,e));var qr=(e,t,r)=>Wr(e,typeof t!="symbol"?t+"":t,r);var ge=(e,t,r)=>new Promise((n,o)=>{var i=c=>{try{s(r.next(c))}catch(l){o(l)}},a=c=>{try{s(r.throw(c))}catch(l){o(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,a);s((r=r.apply(e,t)).next())});var Un=ir((Kr,Fn)=>{(function(e,t){typeof Kr=="object"&&typeof Fn!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(Kr,(function(){"use strict";function e(r){var n=!0,o=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(g){return!!(g&&g!==document&&g.nodeName!=="HTML"&&g.nodeName!=="BODY"&&"classList"in g&&"contains"in g.classList)}function c(g){var oe=g.type,ce=g.tagName;return!!(ce==="INPUT"&&a[oe]&&!g.readOnly||ce==="TEXTAREA"&&!g.readOnly||g.isContentEditable)}function l(g){g.classList.contains("focus-visible")||(g.classList.add("focus-visible"),g.setAttribute("data-focus-visible-added",""))}function p(g){g.hasAttribute("data-focus-visible-added")&&(g.classList.remove("focus-visible"),g.removeAttribute("data-focus-visible-added"))}function u(g){g.metaKey||g.altKey||g.ctrlKey||(s(r.activeElement)&&l(r.activeElement),n=!0)}function f(g){n=!1}function d(g){s(g.target)&&(n||c(g.target))&&l(g.target)}function h(g){s(g.target)&&(g.target.classList.contains("focus-visible")||g.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),p(g.target))}function b(g){document.visibilityState==="hidden"&&(o&&(n=!0),y())}function y(){document.addEventListener("mousemove",L),document.addEventListener("mousedown",L),document.addEventListener("mouseup",L),document.addEventListener("pointermove",L),document.addEventListener("pointerdown",L),document.addEventListener("pointerup",L),document.addEventListener("touchmove",L),document.addEventListener("touchstart",L),document.addEventListener("touchend",L)}function _(){document.removeEventListener("mousemove",L),document.removeEventListener("mousedown",L),document.removeEventListener("mouseup",L),document.removeEventListener("pointermove",L),document.removeEventListener("pointerdown",L),document.removeEventListener("pointerup",L),document.removeEventListener("touchmove",L),document.removeEventListener("touchstart",L),document.removeEventListener("touchend",L)}function L(g){g.target.nodeName&&g.target.nodeName.toLowerCase()==="html"||(n=!1,_())}document.addEventListener("keydown",u,!0),document.addEventListener("mousedown",f,!0),document.addEventListener("pointerdown",f,!0),document.addEventListener("touchstart",f,!0),document.addEventListener("visibilitychange",b,!0),y(),r.addEventListener("focus",d,!0),r.addEventListener("blur",h,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)}))});var bn=ir(Zo=>{"use strict";function kr(e,t,r={}){return{name:e,from:t,meta:r}}function dn(e,t){let r=[{value:e,depth:0}];for(let n=0,o=-1,i=0;n>=0;){let{value:a,depth:s}=r[n];if(o<=s&&a.type==="operator"&&a.data.operands.length>0)for(let c=a.data.operands.length;c>0;)r[++n]={value:a.data.operands[--c],depth:s+1};else{let c=t(a,i++,s);if(typeof c<"u")return c;--n}o=s}}var Ar=class extends Error{constructor(e,t){super(t),this.code=e}};function Ro(e,t){let r=Ss(e);for(let n=0;n{let{matches:n}=r;for(let o=0;o{let o=t.get(r);return typeof o>"u"&&t.set(r,o=e(r,...n)),o}}function Cr(e,t){return Object.defineProperty(t,"name",{value:e}),t}function jo(e){return ge(this,null,function*(){let t=[];if(typeof e.plugins<"u")for(let r=0;r32)throw new RangeError("Bit format exceeds 32 bits");return e}function Uo(e,t,r){let n=fn(e),o=fn(t),i=typeof r<"u"?fn(r):32-n-o;return ks({d:n,f:o,x:i})}var je=[0];for(let e=0;e<32;e++)je.push(je[e]|1<=r&&e{t+=n*n}),Math.sqrt(t)}function $s(e,t){e instanceof hn?e.data.forEach((r,n)=>{t(r,n)}):e.forEach((r,n)=>{t({start:r,end:r+1,value:1},n)})}var Yt=class{constructor(e,t=Cs(Math.ceil(e/32))){this.size=e,this.data=t}get(e){return this.data[e>>>5]>>>e&1}set(e){this.data[e>>>5]|=1<<(e&31)}forEach(e){let t=this.size&31;for(let r=0;r>>0;for(let r=0;r0;o++){let{value:i,depth:a}=r[--n],s=t(i,o,a);if(typeof s<"u")return s;for(let c=i.children.length;c>0;)r[n++]={value:i.children[--c],depth:a+1}}}function Rs(e,t){return ge(this,null,function*(){let{fields:r,plugins:n=[]}=t,o=Uo(e.length,r.length),i=[];for(let c=0;c"u")continue;let u=c<{var y;return(y=b.onFilterInput)==null?void 0:y.call(b,h,u,o)},p);let f=i[l],d=Ne();p=Array.isArray(p)?p:[p];for(let h=0;h{let g=f.index.get(y.node);typeof g>"u"&&f.index.set(y.node,g=Ne());let oe=f.terms.length;for(let O=0;O{var l;return(l=c.onFilterStore)==null?void 0:l.call(c,s,t,e)}),s})}function Is(e,t,r,n={}){let o=[];if(t<0||t>=e.count.fields)return o;let i=e.shards[t],a=new Map,{count:s=1/0,depth:c=1/0}=n;for(let l=0;lc)continue;let h=a.get(p);typeof h>"u"&&a.set(p,h={node:u,children:[]});let b=o;d>0&&(b=a.get(i.terms[f]).children),b.length=e.count.fields)return{documents:n,terms:o};let i=e.shards[r];return t.forEach(a=>{let{occurrences:s}=i.terms[a];for(let c=0;c>>e.space.x>>>e.space.f;n.set(l)}o[r].set(a)}),{documents:n,terms:o}}function Fs(e){let{documents:t,terms:r}=$r(e);yt(t,1);for(let n=0;nnew Yt(t.length))}}function Us(e,t,r){let{compiler:n,fields:o,plugins:i=[]}=r,{input:a,scope:s,abort:c=!1}=xt(i,(u,f)=>{var d;return(d=f.onFilterQuery)==null?void 0:d.call(f,u,e,r)},t),l={items:[],query:{select:$r(e),values:[]}},p=new Map;if(c===!1){let u=n(r),{select:f,values:d}=u(a,e);typeof s<"u"&&Hr(f.documents,s);let h=new Map;l.query={select:f,values:d},f.terms.forEach((b,y)=>{b.forEach(_=>{let L=e.shards[y],{occurrences:g}=L.terms[_];for(let oe=0;oe>>e.space.x,Q=O>>>e.space.f;if(!f.documents.get(Q))continue;let re=h.get(O);typeof re>"u"&&h.set(O,re=new Gt(Ne()));let fe=ce&je[e.space.x];re.add(fe,_)}})}),f.documents.forEach(b=>{let y={id:b,matches:[]};l.items.push(y),p.set(b,y)}),h.forEach((b,y)=>{let _=y>>>e.space.f,L=y&je[e.space.f];p.get(_).matches.push({id:y,field:o[L].name,value:{filter:b},score:0})})}return xt(i,(u,f)=>{var d;return(d=f.onFilterResult)==null?void 0:d.call(f,u,e,r)},l)}function Do(e){let{fields:t}=e;return(r,n)=>{if(_s(r))return r;let o=[Fs(n)],i=[],a=0;return dn(r,({type:s,data:c})=>{switch(s){case"value":let l=t.findIndex(({name:f})=>f===c.field);if(l===-1){o[a++]=$r(n);break}let p=c.value;if(typeof p!="object"){let f=new Gt(Ne()),d=n.shards[l],h=d.index.get(p);if(typeof h<"u")for(let b=0;bu+1&&a--;){Rt(o[u].documents,o[a].documents);for(let f=0;fu+1&&a--;){Hr(o[u].documents,o[a].documents);for(let f=0;fu+1&&a--;)Vo(o[u].documents,o[a].documents)}}}),{select:o[0],values:i}}}function zs(e){return{name:e.name,data:e.data,onFilterOptions:e.onFilterOptions,onFilterInput:e.onFilterInput,onFilterStore:e.onFilterStore,onFilterQuery:e.onFilterQuery,onFilterResult:e.onFilterResult}}function No(e){return typeof e=="object"&&e!==null&&"type"in e&&"data"in e}function Vs(e){return typeof e=="object"&&e!==null&&"select"in e&&"values"in e}function Ws(e){return e.normalize("NFKD").toLowerCase()}function Ds(e,t){let r=Math.min(e.length,t.length);for(let n=0;n65535)){let i=t(o=e.codePointAt(r),r);if(typeof i<"u")return i}}function qo(e,t,r=0,n=e.length){let o=Ne();return Ns(e,i=>{o.push(i);let a=t(String.fromCodePoint(...o),o.length);if(typeof a<"u")return a},r,n)}function qs(e,t,r=0,n=e.length){let o=r;for(let i=0;or&&t(r,r=o);continue;case 62:r=o+1}o>r&&t(r,o)}function Ko(e,t,r,n=0){return qs(e,(o,i)=>t(e,(a,s)=>{n=r({value:e.slice(a,s),index:n,start:a,end:s})},o,i)),n}function Ks(e,t,r,n=0){for(let o=0,i=0;o(a.start+=i,a.end+=i,r(a)),n);return n}function Bs(e){let t=new RegExp(e,"gu");return(r,n,o=0,i=r.length)=>{var c;t.lastIndex=o;let a,s=0;do{a=t.exec(r);let l=(c=a==null?void 0:a.index)!=null?c:i;o"u")continue;let h=u<{var _;return(_=y.onTextInput)==null?void 0:_.call(y,b,h,a)},d),d=Array.isArray(d)?d:[d],Ks(d,r,b=>{let y=xt(i,(_,L)=>{var g;return(g=L.onTextTokens)==null?void 0:g.call(L,_)},[b]);for(let _=0;_"u"?s.set(L,[h<{var f;return(f=u.onTextStore)==null?void 0:f.call(u,l,t,e)}),l})}function Gs(e,t,r){let{documents:n,terms:o}=Pr(e);return r<0||r>=e.count.fields?{documents:n,terms:o}:(t.forEach(i=>{let{occurrences:a}=e.terms[i];for(let s=0;s>>e.space.x;if((c&je[e.space.f])!==r)continue;let l=c>>>e.space.f;n.set(l)}o.set(i)}),{documents:n,terms:o})}function Js(e,t){let{documents:r,terms:n}=Pr(e),o=e.space.f+e.space.x;return t.forEach(i=>{let{occurrences:a}=e.terms[i];for(let s=0;s>>o);n.set(i)}),{documents:r,terms:n}}function Pr(e){return{documents:new Yt(e.count.documents),terms:new Yt(e.terms.length)}}function Qs(e,t,r){let{compiler:n,fields:o,plugins:i=[]}=r,{input:a,scope:s,abort:c=!1}=xt(i,(u,f)=>{var d;return(d=f.onTextQuery)==null?void 0:d.call(f,u,e,r)},t),l={items:[],query:{select:Pr(e),values:[]}},p=new Map;if(c===!1){let u=n(r),{select:f,values:d}=u(a,e);typeof s<"u"&&Hr(f.documents,s);let h=new Yt(o.length),b=new Map;l.query={select:f,values:d},f.terms.forEach(y=>{yt(h,0);for(let L=0;L>>e.space.x,ce=oe>>>e.space.f;if(!f.documents.get(ce))continue;let O=oe&je[e.space.f];if(!h.get(O))continue;let Q=b.get(oe);typeof Q>"u"&&b.set(oe,Q=new Gt(Ne()));let re=g&je[e.space.x];Q.add(re,y)}}),f.documents.forEach(y=>{let _={id:y,matches:[]};l.items.push(_),p.set(y,_)}),b.forEach((y,_)=>{let L=_>>>e.space.f,g=_&je[e.space.f];p.get(L).matches.push({id:_,field:o[g].name,value:{text:y},score:0})})}return xt(i,(u,f)=>{var d;return(d=f.onTextResult)==null?void 0:d.call(f,u,e,r)},l)}function Xs(e,t=10){return e.length>1?1+e[e.length-1]-e[0]:t}function Zs(e,t,r,n=10){let o=[];e.value.text.forEach((s,c)=>{for(let l=0;ls.index-c.index);let i=o.slice(0,1),a=0;for(let s=0;sn||l.value===c.value)p=i.map(({index:u})=>u),i=[o[s+1]];else{for(let u=0;ul.index-c.index){let d=i.splice(u+1);p=i.map(({index:h})=>h),i=[...d,o[s+1]]}else p=i.map(({index:d})=>d),i=[o[s+1]];break}}typeof p>"u"&&i.push(o[s+1])}if(typeof p<"u"){let u=r(p,a++);if(typeof u<"u")return u}}if(i.length)return r(i.map(({index:s})=>s),a)}function ec(e){let{transform:t,parser:r,fields:n}=e,o=r(e);return(i,a)=>{if(Vs(i))return i;typeof i=="string"&&(i=o(i));let s=[Pr(a)],c=[],l=0;return dn(i,({type:p,data:u})=>{switch(p){case"value":let f=u.value;if(typeof f=="string"){let h=new Gt(Ne()),b=a.index.get(t(f));typeof b<"u"&&h.add(b,1),f=h}if(u.field==="*")s[l++]=Js(a,f);else{let h=n.findIndex(({name:b})=>b===u.field);s[l++]=Gs(a,f,h)}c.push(Tt(R({},u),{value:f}));break;case"operator":let d=l-u.operands.length;switch(u.operator){case"or":for(;l>d+1&&l--;)Rt(s[d].documents,s[l].documents),Rt(s[d].terms,s[l].terms);break;case"and":for(;l>d+1&&l--;)Hr(s[d].documents,s[l].documents),Rt(s[d].terms,s[l].terms);break;case"not":for(Wo(s[d].documents),yt(s[d].terms,0);l>d+1&&l--;)Vo(s[d].documents,s[l].documents)}}}),{select:s[0],values:c}}}function Bo(e,t){return dn(e,(r,n,o)=>{if(r.type!=="value")return;let i=t(r.data,n,o);if(typeof i<"u")return i})}function Yo(e){if(e.length===0)return[];let t=[],r=[];for(let i=0;ii.index-a.index);let n=new Set([r[0].value]),o=r[0].index;for(let i=1;i{e[l].start>o||e[l].end{t.push({start:o,end:i,value:r})})}return new hn(Yo(t))}function tc(e,t="or",r){let{separator:n}=e;return r!=null||(r=o=>({field:"*",value:o.value})),o=>{let i=[];return Ko(o,n,a=>{let s=r(a);typeof s<"u"&&i.push({type:"value",data:s})}),{type:"operator",data:{operator:t,operands:i}}}}function rc(e,t){return ge(this,null,function*(){let r=yield jo(t),n=yield Ls(r,(i,a)=>{var s;return(s=a.onTextOptions)==null?void 0:s.call(a,i,e)},Tt(R({},t),{plugins:r})),o=yield Ys(e,n);return Cr("text",i=>{if(i.type!=="text")throw new Ar("unsupported");return{type:i.type,data:Qs(o,i.data,n)}})})}function at(e){return{name:e.name,data:e.data,onTextOptions:e.onTextOptions,onTextInput:e.onTextInput,onTextTokens:e.onTextTokens,onTextStore:e.onTextStore,onTextQuery:e.onTextQuery,onTextResult:e.onTextResult}}function nc(e){let{handlers:t}=e,r,n=new Map;return zs({name:"aggregation",onFilterStore(o,i){for(let a=0;a"u")continue;let c=!0;i.documents.forEach(l=>{c=!1}),c&&yt(i.documents,1),o.aggregations.push(s(a,i))}}})}function oc(e={}){let{empty:t=!1,limit:r}=e;return(n,{fields:o})=>{let i=n.space.f+n.space.x;return Cr("term",({type:a,data:s},{documents:c})=>{if(a!=="term")throw new Ar("unsupported");let l=o.findIndex(({name:u})=>u===s.field),p=Is(n,l,u=>{let f=0,{occurrences:d}=u;for(let h=0;h>>i)&&f++;if(!(t===!1&&f===0))return{value:u.value,count:f}},R(R({},r),s.limit));return{type:a,data:{field:s.field,value:p}}})}}function ic(e,t="prefix"){return{type:t,data:e}}function ac(e){return typeof e=="object"&&"type"in e&&typeof e.type=="string"&&"data"in e&&typeof e.data=="string"}function sc(e,t={}){var c;let{prefix:r=2,filter:n=[]}=t,o=e.terms,i=new Map,a=As(o.length),s=Ne();for(let l=0;l{var h;return i.set(f,(h=i.get(f))!=null?h:l),d===r||void 0});let u=l?o[l-1]:"";a[l]=Ds(u,p)}for(let l=0;ll-p),{terms:o,index:i,cover:a,exact:s}}function cc(e,t){let r="",n=-1,o=-1;if(qo(t,s=>{let c=e.index.get(s);if(typeof c>"u")return!0;r=s,n=c}),n!==-1)for(let s=r.length;ss>n&&sa),index:t.index},{prefix:e.prefix,filter:(o=e.filter)==null?void 0:o.map(n)}))},onTextQuery(t,r,n){let{transform:o,parser:i}=n;if(typeof t.input=="string")t.input=i(n)(t.input);else if(!No(t.input))return;Bo(t.input,a=>{var c;let s=a.value;if(ac(s))s=o(s.data);else return;a.value=(c=cc(this.data,s))!=null?c:s})}})}function pc(e){let t=Tt(R({},e),{plugins:[]}),r,n,o;return at({name:"filter",onTextOptions(a,s){return ge(this,null,function*(){t.plugins=yield jo(e),o=yield Rs(s,t)})},onTextQuery(a){typeof a.filter<"u"&&(r=a.filter,n!=null||(n=Do(t)),r.input=n(r.input,o),a.scope=r.input.select.documents)},onTextResult(a){if(typeof r<"u"){let s=!0;a.query.select.documents.forEach(l=>{s=!1}),s||(r.scope=a.query.select.documents);let c=Us(o,r,t);a.aggregations=c.aggregations,r=void 0}}})}function Jo(e,t){let r=[],n=e/t>>>0,o=e%t,i=0;if(n)for(let a=0;as);n.sort((a,s)=>e.terms[a].length-e.terms[s].length||e.terms[a].localeCompare(e.terms[s]));let o=0;for(let a=0;ao&&(o=e.terms[a].length);let i=[];for(let a=0;a"u"?c[p].set(u,[n[a]]):f.push(n[a])}}return{index:i,terms:e.terms,idxmp:n}}var dc=[["id","di","rr"],["dr","rd"],["dd"]];function Qo(e,t,r=2){if(e.lengthr)return;let a,s,c,l=r+1;for(let p of dc[i]){for(c=a=s=0;ar)break;switch(p[c-1]){case"d":a++;break;case"i":s++;break;case"r":a++,s++;break}}else a++,s++;c+=n-a+(o-s),c"u")continue;let a=fc(t,i,2);for(let s=0;s"u"))for(let f of u){let d=e.terms[f].length,h=r(e.terms[f],t);typeof h<"u"&&n.add(f,(d-h)/d)}}}}if(n.data.length)return n}function bc(e={}){return at({name:"fuzzy",onTextStore(t){var r;(r=this.data)!=null||(this.data=mc({terms:t.terms.map(({value:n})=>n)},e))},onTextQuery(t,r,n){let{transform:o,parser:i}=n;if(typeof t.input=="string")t.input=i(n)(t.input);else if(!No(t.input))return;Bo(t.input,a=>{var c;let s=a.value;if(typeof s=="string")s=o(s);else return;r.index.get(s)||(a.value=(c=hc(this.data,s))!=null?c:s)})}})}function vc(){return{tables:new Map}}function gc(e,t={}){let{count:r}=t;return Cr("term",n=>{let o=Go(n);return(i,a)=>{let s=[];return i.value.text.forEach((c,l)=>{let p=a[c]>>>10,u=a[c]&je[10];for(let h=0;hc.start-l.start),{ranges:Yo(s).slice(0,r)}}})}function xc(e){let t,r;return at({name:"highlight",data:vc(),onTextInput(n,o){let{tables:i}=this.data;i.set(o,r=Ne())},onTextTokens(n){for(let o=0;o{let s=o.get(a.id);if(a.value.highlight)return;let c=i(a,s);a.value=Tt(R({},a.value),{highlight:c})})}})}function yc(){return{directives:[]}}function Xo(...e){return(t,r)=>{for(let n=0;n{if(n!=="match")throw new Ar("unsupported");let i=Ec(e),a=Xo(...t.map(s=>s(r)));return Ro(r,({matches:s})=>{s.sort(i)}),(s,c)=>{let l=Math.min(s.matches.length,c.matches.length);for(let p=0,u=0;pn*(o.get(a.field)-o.get(s.field))}function Tc(e,t={}){let r=Go(e.query),n=mn(Zs),o=mn(Xs);return(i,a)=>{let s=n(i,r,u=>u),c=n(a,r,u=>u);if(s.length!==c.length)return c.length-s.length;let l=o(s),p=o(c);return l!==p?l-p:s[0]!==c[0]?s[0]-c[0]:0}}function Oc(e){let t=new Map;return at({name:"order",data:yc(),onTextOptions(n,o){return ge(this,null,function*(){for(let i=0;i"u")throw new Ar("unknown");i.push(c(n,s))}n.items.sort(Xo(...i))}})}function Sc(e){let t=e.handler();return at({name:"pagination",onTextQuery(r){return t.onQuery(r,e)},onTextResult(r){return t.onResult(r,e)}})}function Lc(e){let{id:t,size:r=10,from:n=0}=e;if(n-r>=0)return{id:t,size:r,from:n-r}}function Mc(e,t){let{id:r,size:n=10,from:o=0}=e;if(o+nge(null,null,function*(){let t=e.data;switch(t.type){case 0:Po=yield rc(t.data.items,{separator:Bs(t.data.config.separator),transform:mn(Ws),parser:n=>tc(n,"and",o=>({field:"*",value:ic(o.value),range:{start:o.start,end:o.end,value:o.index}})),compiler:ec,fields:[kr("title",n=>n.title,{weight:3}),kr("text",n=>n.text),kr("path",n=>n.path,{weight:2})],plugins:[lc(),bc(),pc({compiler:Do,fields:[kr("tags",n=>n.tags)],plugins:[nc({handlers:[oc()]})]}),Oc({handlers:[n=>wc({fields:n.fields,comparators:[Tc]})],defaults:{order:[{type:"match",data:{field:"*"}}]}}),()=>at({onTextResult(n){n.total=n.items.length}}),Sc({handler:kc,size:10}),xc({handler:n=>gc(n)}),()=>at({onTextResult(n){let{query:o}=n,i=o.values.map(({range:a,value:s})=>{var l,p;let c=!1;return s.forEach((u,f)=>{!c&&f<1&&(c=!0)}),c?-1:((l=a==null?void 0:a.end)!=null?l:0)-((p=a==null?void 0:a.start)!=null?p:0)});Io(n,a=>{var s;(s=a.value.highlight)==null||s.ranges.forEach(c=>{c.value=i[c.value]})})}})]}),self.postMessage({type:1});break;case 2:let r=Po({type:"text",data:t.data});self.postMessage({type:3,data:r.data});break}})});var Tn=ir(($w,yi)=>{"use strict";var Rc=/["'&<>]/;yi.exports=Ic;function Ic(e){var t=""+e,r=Rc.exec(t);if(!r)return t;var n,o="",i=0,a=0;for(i=r.index;i{(function(t,r){typeof Xt=="object"&&typeof Sn=="object"?Sn.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Xt=="object"?Xt.ClipboardJS=r():t.ClipboardJS=r()})(Xt,function(){return(function(){var e={686:(function(n,o,i){"use strict";i.d(o,{default:function(){return ja}});var a=i(279),s=i.n(a),c=i(370),l=i.n(c),p=i(817),u=i.n(p);function f(K){try{return document.execCommand(K)}catch(C){return!1}}var d=function(C){var A=u()(C);return f("cut"),A},h=d;function b(K){var C=document.documentElement.getAttribute("dir")==="rtl",A=document.createElement("textarea");A.style.fontSize="12pt",A.style.border="0",A.style.padding="0",A.style.margin="0",A.style.position="absolute",A.style[C?"right":"left"]="-9999px";var W=window.pageYOffset||document.documentElement.scrollTop;return A.style.top="".concat(W,"px"),A.setAttribute("readonly",""),A.value=K,A}var y=function(C,A){var W=b(C);A.container.appendChild(W);var q=u()(W);return f("copy"),W.remove(),q},_=function(C){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},W="";return typeof C=="string"?W=y(C,A):C instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(C==null?void 0:C.type)?W=y(C.value,A):(W=u()(C),f("copy")),W},L=_;function g(K){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(A){return typeof A}:g=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},g(K)}var oe=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=C.action,W=A===void 0?"copy":A,q=C.container,X=C.target,ze=C.text;if(W!=="copy"&&W!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(X!==void 0)if(X&&g(X)==="object"&&X.nodeType===1){if(W==="copy"&&X.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(W==="cut"&&(X.hasAttribute("readonly")||X.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(ze)return L(ze,{container:q});if(X)return W==="cut"?h(X):L(X,{container:q})},ce=oe;function O(K){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(A){return typeof A}:O=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},O(K)}function Q(K,C){if(!(K instanceof C))throw new TypeError("Cannot call a class as a function")}function re(K,C){for(var A=0;A0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof q.action=="function"?q.action:this.defaultAction,this.target=typeof q.target=="function"?q.target:this.defaultTarget,this.text=typeof q.text=="function"?q.text:this.defaultText,this.container=O(q.container)==="object"?q.container:document.body}},{key:"listenClick",value:function(q){var X=this;this.listener=l()(q,"click",function(ze){return X.onClick(ze)})}},{key:"onClick",value:function(q){var X=q.delegateTarget||q.currentTarget,ze=this.action(X)||"copy",nr=ce({action:ze,container:this.container,target:this.target(X),text:this.text(X)});this.emit(nr?"success":"error",{action:ze,text:nr,trigger:X,clearSelection:function(){X&&X.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(q){return Vr("action",q)}},{key:"defaultTarget",value:function(q){var X=Vr("target",q);if(X)return document.querySelector(X)}},{key:"defaultText",value:function(q){return Vr("text",q)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(q){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return L(q,X)}},{key:"cut",value:function(q){return h(q)}},{key:"isSupported",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],X=typeof q=="string"?[q]:q,ze=!!document.queryCommandSupported;return X.forEach(function(nr){ze=ze&&!!document.queryCommandSupported(nr)}),ze}}]),A})(s()),ja=Ia}),828:(function(n){var o=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(s,c){for(;s&&s.nodeType!==o;){if(typeof s.matches=="function"&&s.matches(c))return s;s=s.parentNode}}n.exports=a}),438:(function(n,o,i){var a=i(828);function s(p,u,f,d,h){var b=l.apply(this,arguments);return p.addEventListener(f,b,h),{destroy:function(){p.removeEventListener(f,b,h)}}}function c(p,u,f,d,h){return typeof p.addEventListener=="function"?s.apply(null,arguments):typeof f=="function"?s.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(b){return s(b,u,f,d,h)}))}function l(p,u,f,d){return function(h){h.delegateTarget=a(h.target,u),h.delegateTarget&&d.call(p,h)}}n.exports=c}),879:(function(n,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||o.node(i[0]))},o.string=function(i){return typeof i=="string"||i instanceof String},o.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}}),370:(function(n,o,i){var a=i(879),s=i(438);function c(f,d,h){if(!f&&!d&&!h)throw new Error("Missing required arguments");if(!a.string(d))throw new TypeError("Second argument must be a String");if(!a.fn(h))throw new TypeError("Third argument must be a Function");if(a.node(f))return l(f,d,h);if(a.nodeList(f))return p(f,d,h);if(a.string(f))return u(f,d,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function l(f,d,h){return f.addEventListener(d,h),{destroy:function(){f.removeEventListener(d,h)}}}function p(f,d,h){return Array.prototype.forEach.call(f,function(b){b.addEventListener(d,h)}),{destroy:function(){Array.prototype.forEach.call(f,function(b){b.removeEventListener(d,h)})}}}function u(f,d,h){return s(document.body,f,d,h)}n.exports=c}),817:(function(n){function o(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var s=i.hasAttribute("readonly");s||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var c=window.getSelection(),l=document.createRange();l.selectNodeContents(i),c.removeAllRanges(),c.addRange(l),a=c.toString()}return a}n.exports=o}),279:(function(n){function o(){}o.prototype={on:function(i,a,s){var c=this.e||(this.e={});return(c[i]||(c[i]=[])).push({fn:a,ctx:s}),this},once:function(i,a,s){var c=this;function l(){c.off(i,l),a.apply(s,arguments)}return l._=a,this.on(i,l,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),c=0,l=s.length;for(c;c0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function G(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function ee(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n1||c(d,b)})},h&&(o[d]=h(o[d])))}function c(d,h){try{l(n[d](h))}catch(b){f(i[0][3],b)}}function l(d){d.value instanceof lt?Promise.resolve(d.value.v).then(p,u):f(i[0][2],d)}function p(d){c("next",d)}function u(d){c("throw",d)}function f(d,h){d(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Wn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Oe=="function"?Oe(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(s,c){a=e[i](a),o(s,c,a.done,a.value)})}}function o(i,a,s,c){Promise.resolve(c).then(function(l){i({value:l,done:s})},a)}}function F(e){return typeof e=="function"}function Ot(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var sr=Ot(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription: -`+r.map(function(n,o){return o+1+") "+n.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=r}});function Je(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ke=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=Oe(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(b){t={error:b}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var p=this.initialTeardown;if(F(p))try{p()}catch(b){i=b instanceof sr?b.errors:[b]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var f=Oe(u),d=f.next();!d.done;d=f.next()){var h=d.value;try{Dn(h)}catch(b){i=i!=null?i:[],b instanceof sr?i=ee(ee([],G(i)),G(b.errors)):i.push(b)}}}catch(b){n={error:b}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}}if(i)throw new sr(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Dn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Je(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Je(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})();var Yr=Ke.EMPTY;function cr(e){return e instanceof Ke||e&&"closed"in e&&F(e.remove)&&F(e.add)&&F(e.unsubscribe)}function Dn(e){F(e)?e():e.unsubscribe()}var Ve={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var St={setTimeout:function(e,t){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?Yr:(this.currentObservers=null,s.push(r),new Ke(function(){n.currentObservers=null,Je(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new j;return r.source=this,r},t.create=function(r,n){return new Qn(r,n)},t})(j);var Qn=(function(e){ie(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Yr},t})($);var Zr=(function(e){ie(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t})($);var zt={now:function(){return(zt.delegate||Date).now()},delegate:void 0};var Vt=(function(e){ie(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=zt);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,c=n._windowTime;o||(i.push(r),!a&&i.push(s.now()+c)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,a=o._buffer,s=a.slice(),c=0;c0?e.prototype.schedule.call(this,r,n):(this.delay=n,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,n){return n>0||this.closed?e.prototype.execute.call(this,r,n):this._execute(r,n)},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.flush(this),0)},t})(kt);var eo=(function(e){ie(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(At);var rn=new eo(Zn);var to=(function(e){ie(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=_t.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var a=r.actions;n!=null&&n===r._scheduled&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==n&&(_t.cancelAnimationFrame(n),r._scheduled=void 0)},t})(kt);var ro=(function(e){ie(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n;r?n=r.id:(n=this._scheduled,this._scheduled=void 0);var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t})(At);var _e=new ro(to);var w=new j(function(e){return e.complete()});function ur(e){return e&&F(e.schedule)}function nn(e){return e[e.length-1]}function tt(e){return F(nn(e))?e.pop():void 0}function Pe(e){return ur(nn(e))?e.pop():void 0}function fr(e,t){return typeof nn(e)=="number"?e.pop():t}var Ct=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function mr(e){return F(e==null?void 0:e.then)}function dr(e){return F(e[Mt])}function hr(e){return Symbol.asyncIterator&&F(e==null?void 0:e[Symbol.asyncIterator])}function br(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Za(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var vr=Za();function gr(e){return F(e==null?void 0:e[vr])}function xr(e){return Vn(this,arguments,function(){var r,n,o,i;return ar(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,lt(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,lt(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,lt(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function yr(e){return F(e==null?void 0:e.getReader)}function V(e){if(e instanceof j)return e;if(e!=null){if(dr(e))return es(e);if(Ct(e))return ts(e);if(mr(e))return rs(e);if(hr(e))return no(e);if(gr(e))return ns(e);if(yr(e))return os(e)}throw br(e)}function es(e){return new j(function(t){var r=e[Mt]();if(F(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ts(e){return new j(function(t){for(var r=0;r=2;return function(n){return n.pipe(e?S(function(o,i){return e(o,i,n)}):xe,ye(1),r?Ye(t):wo(function(){return new Ht}))}}function ln(e){return e<=0?function(){return w}:T(function(t,r){var n=[];t.subscribe(E(r,function(o){n.push(o),e=2,!0))}function he(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new $}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,c=s===void 0?!0:s;return function(l){var p,u,f,d=0,h=!1,b=!1,y=function(){u==null||u.unsubscribe(),u=void 0},_=function(){y(),p=f=void 0,h=b=!1},L=function(){var g=p;_(),g==null||g.unsubscribe()};return T(function(g,oe){d++,!b&&!h&&y();var ce=f=f!=null?f:r();oe.add(function(){d--,d===0&&!b&&!h&&(u=pn(L,c))}),ce.subscribe(oe),!p&&d>0&&(p=new Qe({next:function(O){return ce.next(O)},error:function(O){b=!0,y(),u=pn(_,o,O),ce.error(O)},complete:function(){h=!0,y(),u=pn(_,a),ce.complete()}}),V(g).subscribe(p))})(l)}}function pn(e,t){for(var r=[],n=2;ne.next(document)),e}function k(e,t=document){return Array.from(t.querySelectorAll(e))}function D(e,t=document){let r=be(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function be(e,t=document){return t.querySelector(e)||void 0}function nt(){var e,t,r,n;return(n=(r=(t=(e=document.activeElement)==null?void 0:e.shadowRoot)==null?void 0:t.activeElement)!=null?r:document.activeElement)!=null?n:void 0}var Es=P(v(document.body,"focusin"),v(document.body,"focusout")).pipe(Ie(1),N(void 0),m(()=>nt()||document.body),J(1));function Pt(e){return Es.pipe(m(t=>e.contains(t)),ne())}function vt(e,t){let{matches:r}=matchMedia("(hover)");return I(()=>(r?P(v(e,"mouseenter").pipe(m(()=>!0)),v(e,"mouseleave").pipe(m(()=>!1))):P(v(e,"touchstart").pipe(m(()=>!0)),v(e,"touchend").pipe(m(()=>!1)),v(e,"touchcancel").pipe(m(()=>!1)))).pipe(t?Dt(o=>He(+!o*t)):xe,N(!0,e.matches(":hover"))))}function So(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)So(e,r)}function M(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="undefined"&&(typeof t[o]!="boolean"?n.setAttribute(o,t[o]):n.setAttribute(o,""));for(let o of r)So(n,o);return n}function Lo(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function Ge(e){let t=M("script",{src:e});return I(()=>(document.head.appendChild(t),P(v(t,"load"),v(t,"error").pipe(x(()=>Er(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(m(()=>{}),z(()=>document.head.removeChild(t)),ye(1))))}function Mo(e){let t=M("link",{rel:"stylesheet",href:e});return document.head.appendChild(t),P(v(t,"load"),v(t,"error").pipe(x(()=>Er(()=>new ReferenceError(`Invalid styles: ${e}`))))).pipe(m(()=>{}),ye(1))}var _o=new $,Ts=I(()=>typeof ResizeObserver=="undefined"?Ge("https://unpkg.com/resize-observer-polyfill"):U(void 0)).pipe(m(()=>new ResizeObserver(e=>e.forEach(t=>_o.next(t)))),x(e=>P(Re,U(e)).pipe(z(()=>e.disconnect()))),J(1));function Ee(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Me(e){let t=e;for(;t.clientWidth===0&&t.parentElement;)t=t.parentElement;return Ts.pipe(H(r=>r.observe(t)),x(r=>_o.pipe(S(n=>n.target===t),z(()=>r.unobserve(t)))),m(()=>Ee(e)),N(Ee(e)))}function Bt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function ko(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}function Ao(e){let t=[],r=e.parentElement;for(;r;)(e.clientWidth>r.clientWidth||e.clientHeight>r.clientHeight)&&t.push(r),r=(e=r).parentElement;return t.length===0&&t.push(document.documentElement),t}function ot(e){return{x:e.offsetLeft,y:e.offsetTop}}function Co(e){let t=e.getBoundingClientRect();return{x:t.x+window.scrollX,y:t.y+window.scrollY}}function Ho(e){return P(v(window,"load"),v(window,"resize")).pipe(We(0,_e),m(()=>ot(e)),N(ot(e)))}function _r(e){return{x:e.scrollLeft,y:e.scrollTop}}function gt(e){return P(v(e,"scroll"),v(window,"scroll"),v(window,"resize")).pipe(We(0,_e),m(()=>_r(e)),N(_r(e)))}var $o=new $,Os=I(()=>U(new IntersectionObserver(e=>{for(let t of e)$o.next(t)},{threshold:0}))).pipe(x(e=>P(Re,U(e)).pipe(z(()=>e.disconnect()))),J(1));function it(e){return Os.pipe(H(t=>t.observe(e)),x(t=>$o.pipe(S(({target:r})=>r===e),z(()=>t.unobserve(e)),m(({isIntersecting:r})=>r))))}var ei=ct(bn());function Ac(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function Cc(){return P(v(window,"compositionstart").pipe(m(()=>!0)),v(window,"compositionend").pipe(m(()=>!1))).pipe(N(!1))}function ti(){let e=v(window,"keydown").pipe(m(t=>({mode:(0,ei.isSearchHidden)()?"global":"search",type:t.key,meta:t.ctrlKey||t.metaKey,claim(){t.preventDefault(),t.stopPropagation()}})),S(({mode:t,type:r})=>{if(t==="global"){let n=nt();if(typeof n!="undefined")return!Ac(n,r)}return!0}),he());return Cc().pipe(x(t=>t?w:e))}function Ae(){return new URL(location.href)}function Xe(e,t=!1){if(B("navigation.instant")&&!t){let r=M("a",{href:e.href});document.body.appendChild(r),r.click(),r.remove()}else location.href=e.href}function ri(){return new $}function ni(){return location.hash.slice(1)}function oi(e){let t=M("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function vn(e){return P(v(window,"hashchange"),e).pipe(m(ni),N(ni()),S(t=>t.length>0),m(decodeURIComponent),J(1))}function ii(e){return vn(e).pipe(m(t=>be(`[id="${t}"]`)),S(t=>typeof t!="undefined"))}function Jt(e){let t=matchMedia(e);return Or(r=>t.addListener(()=>r(t.matches))).pipe(N(t.matches))}function ai(){let e=matchMedia("print");return P(v(window,"beforeprint").pipe(m(()=>!0)),v(window,"afterprint").pipe(m(()=>!1))).pipe(N(e.matches))}function gn(e,t){return e.pipe(x(r=>r?t():w))}function xn(e,t){return new j(r=>{let n=new XMLHttpRequest;return n.open("GET",`${e}`),n.responseType="blob",n.addEventListener("load",()=>{n.status>=200&&n.status<300?(r.next(n.response),r.complete()):r.error(new Error(n.statusText))}),n.addEventListener("error",()=>{r.error(new Error("Network error"))}),n.addEventListener("abort",()=>{r.complete()}),typeof(t==null?void 0:t.progress$)!="undefined"&&(n.addEventListener("progress",o=>{var i;if(o.lengthComputable)t.progress$.next(o.loaded/o.total*100);else{let a=(i=n.getResponseHeader("Content-Length"))!=null?i:0;t.progress$.next(o.loaded/+a*100)}}),t.progress$.next(5)),n.send(),()=>n.abort()})}function qe(e,t){return xn(e,t).pipe(x(r=>r.text()),m(r=>JSON.parse(r)),J(1))}function Rr(e,t){let r=new DOMParser;return xn(e,t).pipe(x(n=>n.text()),m(n=>r.parseFromString(n,"text/html")),J(1))}function si(e,t){let r=new DOMParser;return xn(e,t).pipe(x(n=>n.text()),m(n=>r.parseFromString(n,"text/xml")),J(1))}var yn={drawer:D("[data-md-toggle=drawer]"),search:D("[data-md-toggle=search]")};function wn(e,t){yn[e].checked!==t&&yn[e].click()}function Ir(e){let t=yn[e];return v(t,"change").pipe(m(()=>t.checked),N(t.checked))}function ci(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function li(){return P(v(window,"scroll",{passive:!0}),v(window,"resize",{passive:!0})).pipe(m(ci),N(ci()))}function pi(){return{width:innerWidth,height:innerHeight}}function ui(){return v(window,"resize",{passive:!0}).pipe(m(pi),N(pi()))}function fi(){return Z([li(),ui()]).pipe(m(([e,t])=>({offset:e,size:t})),J(1))}function jr(e,{viewport$:t,header$:r}){let n=t.pipe(pe("size")),o=Z([n,r]).pipe(m(()=>ot(e)));return Z([r,t,o]).pipe(m(([{height:i},{offset:a,size:s},{x:c,y:l}])=>({offset:{x:a.x-c,y:a.y-l+i},size:s})))}var Hc=D("#__config"),It=JSON.parse(Hc.textContent);It.base=`${new URL(It.base,Ae())}`;function Ce(){return It}function B(e){return It.features.includes(e)}function wt(e,t){return typeof t!="undefined"?It.translations[e].replace("#",t.toString()):It.translations[e]}function Ze(e,t=document){return D(`[data-md-component=${e}]`,t)}function ve(e,t=document){return k(`[data-md-component=${e}]`,t)}function $c(e){let t=D(".md-typeset > :first-child",e);return v(t,"click",{once:!0}).pipe(m(()=>D(".md-typeset",e)),m(r=>({hash:__md_hash(r.innerHTML)})))}function mi(e){if(!B("announce.dismiss")||!e.childElementCount)return w;if(!e.hidden){let t=D(".md-typeset",e);__md_hash(t.innerHTML)===__md_get("__announce")&&(e.hidden=!0)}return I(()=>{let t=new $;return t.subscribe(({hash:r})=>{e.hidden=!0,__md_set("__announce",r)}),$c(e).pipe(H(r=>t.next(r)),z(()=>t.complete()),m(r=>R({ref:e},r)))})}function Pc(e,{target$:t}){return t.pipe(m(r=>({hidden:r!==e})))}function di(e,t){let r=new $;return r.subscribe(({hidden:n})=>{e.hidden=n}),Pc(e,t).pipe(H(n=>r.next(n)),z(()=>r.complete()),m(n=>R({ref:e},n)))}function En(e,t){return t==="inline"?M("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},M("div",{class:"md-tooltip__inner md-typeset"})):M("div",{class:"md-tooltip",id:e,role:"tooltip"},M("div",{class:"md-tooltip__inner md-typeset"}))}function Fr(...e){return M("div",{class:"md-tooltip2",role:"dialog"},M("div",{class:"md-tooltip2__inner md-typeset"},e))}function hi(...e){return M("div",{class:"md-tooltip2",role:"tooltip"},M("div",{class:"md-tooltip2__inner md-typeset"},e))}function bi(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return M("aside",{class:"md-annotation",tabIndex:0},En(t),M("a",{href:r,class:"md-annotation__index",tabIndex:-1},M("span",{"data-md-annotation-id":e})))}else return M("aside",{class:"md-annotation",tabIndex:0},En(t),M("span",{class:"md-annotation__index",tabIndex:-1},M("span",{"data-md-annotation-id":e})))}function vi(e){return M("button",{class:"md-code__button",title:wt("clipboard.copy"),"data-clipboard-target":`#${e} > code`,"data-md-type":"copy"})}function gi(){return M("button",{class:"md-code__button",title:"Toggle line selection","data-md-type":"select"})}function xi(){return M("nav",{class:"md-code__nav"})}var jc=ct(Tn());function wi(e){return M("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>M("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?Lo(r):r)))}function On(e){let t=`tabbed-control tabbed-control--${e}`;return M("div",{class:t,hidden:!0},M("button",{class:"tabbed-button",tabIndex:-1,"aria-hidden":"true"}))}function Ei(e){return M("div",{class:"md-typeset__scrollwrap"},M("div",{class:"md-typeset__table"},e))}function Fc(e){var n;let t=Ce(),r=new URL(`../${e.version}/`,t.base);return M("li",{class:"md-version__item"},M("a",{href:`${r}`,class:"md-version__link"},e.title,((n=t.version)==null?void 0:n.alias)&&e.aliases.length>0&&M("span",{class:"md-version__alias"},e.aliases[0])))}function Ti(e,t){var n;let r=Ce();return e=e.filter(o=>{var i;return!((i=o.properties)!=null&&i.hidden)}),M("div",{class:"md-version"},M("button",{class:"md-version__current","aria-label":wt("select.version")},t.title,((n=r.version)==null?void 0:n.alias)&&t.aliases.length>0&&M("span",{class:"md-version__alias"},t.aliases[0])),M("ul",{class:"md-version__list"},e.map(Fc)))}var Uc=0;function zc(e,t=250){let r=Z([Pt(e),vt(e,t)]).pipe(m(([o,i])=>o||i),ne()),n=I(()=>Ao(e)).pipe(te(gt),Kt(1),De(r),m(()=>Co(e)));return r.pipe(Nt(o=>o),x(()=>Z([r,n])),m(([o,i])=>({active:o,offset:i})),he())}function Qt(e,t,r=250){let{content$:n,viewport$:o}=t,i=`__tooltip2_${Uc++}`;return I(()=>{let a=new $,s=new Zr(!1);a.pipe(ue(),de(!1)).subscribe(s);let c=s.pipe(Dt(p=>He(+!p*250,rn)),ne(),x(p=>p?n:w),H(p=>p.id=i),he());Z([a.pipe(m(({active:p})=>p)),c.pipe(x(p=>vt(p,250)),N(!1))]).pipe(m(p=>p.some(u=>u))).subscribe(s);let l=s.pipe(S(p=>p),ae(c,o),m(([p,u,{size:f}])=>{let d=e.getBoundingClientRect(),h=d.width/2;if(u.role==="tooltip")return{x:h,y:8+d.height};if(d.y>=f.height/2){let{height:b}=Ee(u);return{x:h,y:-16-b}}else return{x:h,y:16+d.height}}));return Z([c,a,l]).subscribe(([p,{offset:u},f])=>{p.style.setProperty("--md-tooltip-host-x",`${u.x}px`),p.style.setProperty("--md-tooltip-host-y",`${u.y}px`),p.style.setProperty("--md-tooltip-x",`${f.x}px`),p.style.setProperty("--md-tooltip-y",`${f.y}px`),p.classList.toggle("md-tooltip2--top",f.y<0),p.classList.toggle("md-tooltip2--bottom",f.y>=0)}),s.pipe(S(p=>p),ae(c,(p,u)=>u),S(p=>p.role==="tooltip")).subscribe(p=>{let u=Ee(D(":scope > *",p));p.style.setProperty("--md-tooltip-width",`${u.width}px`),p.style.setProperty("--md-tooltip-tail","0px")}),s.pipe(ne(),Le(_e),ae(c)).subscribe(([p,u])=>{u.classList.toggle("md-tooltip2--active",p)}),Z([s.pipe(S(p=>p)),c]).subscribe(([p,u])=>{u.role==="dialog"?(e.setAttribute("aria-controls",i),e.setAttribute("aria-haspopup","dialog")):e.setAttribute("aria-describedby",i)}),s.pipe(S(p=>!p)).subscribe(()=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-describedby"),e.removeAttribute("aria-haspopup")}),zc(e,r).pipe(H(p=>a.next(p)),z(()=>a.complete()),m(p=>R({ref:e},p)))})}function Fe(e,{viewport$:t},r=document.body){return Qt(e,{content$:new j(n=>{let o=e.title,i=hi(o);return n.next(i),e.removeAttribute("title"),r.append(i),()=>{i.remove(),e.setAttribute("title",o)}}),viewport$:t},0)}function Vc(e,t){let r=I(()=>Z([Ho(e),gt(t)])).pipe(m(([{x:n,y:o},i])=>{let{width:a,height:s}=Ee(e);return{x:n-i.x+a/2,y:o-i.y+s/2}}));return Pt(e).pipe(x(n=>r.pipe(m(o=>({active:n,offset:o})),ye(+!n||1/0))))}function Oi(e,t,{target$:r}){let[n,o]=Array.from(e.children);return I(()=>{let i=new $,a=i.pipe(ue(),de(!0));return i.subscribe({next({offset:s}){e.style.setProperty("--md-tooltip-x",`${s.x}px`),e.style.setProperty("--md-tooltip-y",`${s.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),it(e).pipe(Y(a)).subscribe(s=>{e.toggleAttribute("data-md-visible",s)}),P(i.pipe(S(({active:s})=>s)),i.pipe(Ie(250),S(({active:s})=>!s))).subscribe({next({active:s}){s?e.prepend(n):n.remove()},complete(){e.prepend(n)}}),i.pipe(We(16,_e)).subscribe(({active:s})=>{n.classList.toggle("md-tooltip--active",s)}),i.pipe(Kt(125,_e),S(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:s})=>s)).subscribe({next(s){s?e.style.setProperty("--md-tooltip-0",`${-s}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),v(o,"click").pipe(Y(a),S(s=>!(s.metaKey||s.ctrlKey))).subscribe(s=>{s.stopPropagation(),s.preventDefault()}),v(o,"mousedown").pipe(Y(a),ae(i)).subscribe(([s,{active:c}])=>{var l;if(s.button!==0||s.metaKey||s.ctrlKey)s.preventDefault();else if(c){s.preventDefault();let p=e.parentElement.closest(".md-annotation");p instanceof HTMLElement?p.focus():(l=nt())==null||l.blur()}}),r.pipe(Y(a),S(s=>s===n),dt(125)).subscribe(()=>e.focus()),Vc(e,t).pipe(H(s=>i.next(s)),z(()=>i.complete()),m(s=>R({ref:e},s)))})}function Wc(e){let t=Ce();if(e.tagName!=="CODE")return[e];let r=[".c",".c1",".cm"];if(t.annotate){let n=e.closest("[class|=language]");if(n)for(let o of Array.from(n.classList)){if(!o.startsWith("language-"))continue;let[,i]=o.split("-");i in t.annotate&&r.push(...t.annotate[i])}}return k(r.join(", "),e)}function Dc(e){let t=[];for(let r of Wc(e)){let n=[],o=document.createNodeIterator(r,NodeFilter.SHOW_TEXT);for(let i=o.nextNode();i;i=o.nextNode())n.push(i);for(let i of n){let a;for(;a=/(\(\d+\))(!)?/.exec(i.textContent);){let[,s,c]=a;if(typeof c=="undefined"){let l=i.splitText(a.index);i=l.splitText(s.length),t.push(l)}else{i.textContent=s,t.push(i);break}}}}return t}function Si(e,t){t.append(...Array.from(e.childNodes))}function Ur(e,t,{target$:r,print$:n}){let o=t.closest("[id]"),i=o==null?void 0:o.id,a=new Map;for(let s of Dc(t)){let[,c]=s.textContent.match(/\((\d+)\)/);be(`:scope > li:nth-child(${c})`,e)&&(a.set(c,bi(c,i)),s.replaceWith(a.get(c)))}return a.size===0?w:I(()=>{let s=new $,c=s.pipe(ue(),de(!0)),l=[];for(let[p,u]of a)l.push([D(".md-typeset",u),D(`:scope > li:nth-child(${p})`,e)]);return n.pipe(Y(c)).subscribe(p=>{e.hidden=!p,e.classList.toggle("md-annotation-list",p);for(let[u,f]of l)p?Si(u,f):Si(f,u)}),P(...[...a].map(([,p])=>Oi(p,t,{target$:r}))).pipe(z(()=>s.complete()),he())})}function Li(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Li(t)}}function Mi(e,t){return I(()=>{let r=Li(e);return typeof r!="undefined"?Ur(r,e,t):w})}var ki=ct(Ln());var Nc=0,_i=P(v(window,"keydown").pipe(m(()=>!0)),P(v(window,"keyup"),v(window,"contextmenu")).pipe(m(()=>!1))).pipe(N(!1),J(1));function Ai(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Ai(t)}}function qc(e){return Me(e).pipe(m(({width:t})=>({scrollable:Bt(e).width>t})),pe("scrollable"))}function Ci(e,t){let{matches:r}=matchMedia("(hover)"),n=I(()=>{let o=new $,i=o.pipe(ln(1));o.subscribe(({scrollable:d})=>{d&&r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")});let a=[],s=e.closest("pre"),c=s.closest("[id]"),l=c?c.id:Nc++;s.id=`__code_${l}`;let p=[],u=e.closest(".highlight");if(u instanceof HTMLElement){let d=Ai(u);if(typeof d!="undefined"&&(u.classList.contains("annotate")||B("content.code.annotate"))){let h=Ur(d,e,t);p.push(Me(u).pipe(Y(i),m(({width:b,height:y})=>b&&y),ne(),x(b=>b?h:w)))}}let f=k(":scope > span[id]",e);if(f.length&&(e.classList.add("md-code__content"),e.closest(".select")||B("content.code.select")&&!e.closest(".no-select"))){let d=+f[0].id.split("-").pop(),h=gi();a.push(h),B("content.tooltips")&&p.push(Fe(h,{viewport$}));let b=v(h,"click").pipe(qt(O=>!O,!1),H(()=>h.blur()),he());b.subscribe(O=>{h.classList.toggle("md-code__button--active",O)});let y=le(f).pipe(te(O=>vt(O).pipe(m(Q=>[O,Q]))));b.pipe(x(O=>O?y:w)).subscribe(([O,Q])=>{let re=be(".hll.select",O);if(re&&!Q)re.replaceWith(...Array.from(re.childNodes));else if(!re&&Q){let fe=document.createElement("span");fe.className="hll select",fe.append(...Array.from(O.childNodes).slice(1)),O.append(fe)}});let _=le(f).pipe(te(O=>v(O,"mousedown").pipe(H(Q=>Q.preventDefault()),m(()=>O)))),L=b.pipe(x(O=>O?_:w),ae(_i),m(([O,Q])=>{var fe;let re=f.indexOf(O)+d;if(Q===!1)return[re,re];{let Te=k(".hll",e).map(Ue=>f.indexOf(Ue.parentElement)+d);return(fe=window.getSelection())==null||fe.removeAllRanges(),[Math.min(re,...Te),Math.max(re,...Te)]}})),g=vn(w).pipe(S(O=>O.startsWith(`__codelineno-${l}-`)));g.subscribe(O=>{let[,,Q]=O.split("-"),re=Q.split(":").map(Te=>+Te-d+1);re.length===1&&re.push(re[0]);for(let Te of k(".hll:not(.select)",e))Te.replaceWith(...Array.from(Te.childNodes));let fe=f.slice(re[0]-1,re[1]);for(let Te of fe){let Ue=document.createElement("span");Ue.className="hll",Ue.append(...Array.from(Te.childNodes).slice(1)),Te.append(Ue)}}),g.pipe(ye(1),Le(me)).subscribe(O=>{if(O.includes(":")){let Q=document.getElementById(O.split(":")[0]);Q&&setTimeout(()=>{let re=Q,fe=-64;for(;re!==document.body;)fe+=re.offsetTop,re=re.offsetParent;window.scrollTo({top:fe})},1)}});let ce=le(k('a[href^="#__codelineno"]',u)).pipe(te(O=>v(O,"click").pipe(H(Q=>Q.preventDefault()),m(()=>O)))).pipe(Y(i),ae(_i),m(([O,Q])=>{let fe=+D(`[id="${O.hash.slice(1)}"]`).parentElement.id.split("-").pop();if(Q===!1)return[fe,fe];{let Te=k(".hll",e).map(Ue=>+Ue.parentElement.id.split("-").pop());return[Math.min(fe,...Te),Math.max(fe,...Te)]}}));P(L,ce).subscribe(O=>{let Q=`#__codelineno-${l}-`;O[0]===O[1]?Q+=O[0]:Q+=`${O[0]}:${O[1]}`,history.replaceState({},"",Q),window.dispatchEvent(new HashChangeEvent("hashchange",{newURL:window.location.origin+window.location.pathname+Q,oldURL:window.location.href}))})}if(ki.default.isSupported()&&(e.closest(".copy")||B("content.code.copy")&&!e.closest(".no-copy"))){let d=vi(s.id);a.push(d),B("content.tooltips")&&p.push(Fe(d,{viewport$}))}if(a.length){let d=xi();d.append(...a),s.insertBefore(d,e)}return qc(e).pipe(H(d=>o.next(d)),z(()=>o.complete()),m(d=>R({ref:e},d)),ht(P(...p).pipe(Y(i))))});return B("content.lazy")?it(e).pipe(S(o=>o),ye(1),x(()=>n)):n}function Kc(e,{target$:t,print$:r}){let n=!0;return P(t.pipe(m(o=>o.closest("details:not([open])")),S(o=>e===o),m(()=>({action:"open",reveal:!0}))),r.pipe(S(o=>o||!n),H(()=>n=e.open),m(o=>({action:o?"open":"close"}))))}function Hi(e,t){return I(()=>{let r=new $;return r.subscribe(({action:n,reveal:o})=>{e.toggleAttribute("open",n==="open"),o&&e.scrollIntoView()}),Kc(e,t).pipe(H(n=>r.next(n)),z(()=>r.complete()),m(n=>R({ref:e},n)))})}var $i,Pi,Mn={},Ri=!1;function Ii(e,t){return t()?Ge(e).pipe(se(()=>U(void 0)),m(()=>{})):U(void 0)}function Bc(e){if(!e)return[];if(e.startsWith("[")&&e.endsWith("]"))try{let t=JSON.parse(e);if(Array.isArray(t))return t.filter(r=>typeof r=="string")}catch(t){}return e.split(/[,\s]+/).map(t=>t.trim()).filter(t=>t.length>0)}function Yc(e){var i,a,s;let t=e.querySelector("[id$='--editor']"),r=e.querySelector("[id$='--run']"),n=e.querySelector("[id$='--clear']"),o=e.querySelector("[id$='--output']");if(!t||!r||!n||!o)throw new Error("Invalid Pyodide structure");return{root:e,editor:t,output:o,run:r,clear:n,source:(a=(i=t.textContent)==null?void 0:i.trimEnd())!=null?a:"",session:(s=e.dataset.session)!=null?s:"default",install:Bc(e.dataset.install),minLines:typeof e.dataset.minlines=="undefined"?0:parseInt(e.dataset.minlines),maxLines:typeof e.dataset.maxlines=="undefined"?1/0:parseInt(e.dataset.maxlines)}}function Gc(e,t){return e in Mn||(Mn[e]=t.globals.get("dict")()),Mn[e]}function Zt(e,t){e.textContent=t}function _n(e){e.textContent=""}function Jc(){return new Promise(e=>requestAnimationFrame(()=>e()))}function Qc(e,t,r,n){return ge(this,null,function*(){let o=[];e.setStdout({batched(i){o.push(i),Zt(r,`${o.join(` -`)} -`)}});try{let i=yield e.runPythonAsync(t.getValue(),{globals:Gc(n,e)});typeof i!="undefined"&&i!==null&&(o.push(String(i)),Zt(r,`${o.join(` -`)} -`))}catch(i){o.push(String(i)),Zt(r,`${o.join(` -`)} -`)}})}function Xc(){return Pi||(Pi=Ii("https://unpkg.com/pyodide@314.0.2/pyodide.js",()=>typeof loadPyodide=="undefined"||loadPyodide instanceof Element).pipe(m(()=>ge(null,null,function*(){try{let e=yield loadPyodide({indexURL:"https://cdn.jsdelivr.net/pyodide/v314.0.2/full/"});return yield e.loadPackage("micropip"),e}catch(e){return null}})),J(1))),Pi}function Zc(){Ri||(ace.define("ace/theme/zensical",["require","exports","module","ace/lib/dom"],(e,t)=>{t.isDark=!1,t.cssClass="ace-zensical",t.cssText=""}),Ri=!0)}function ji(e){return $i||($i=Ii("https://unpkg.com/ace-builds@1.44.0/src-noconflict/ace.js",()=>typeof ace=="undefined"||ace instanceof Element).pipe(J(1))),new j(t=>{let r=!0,n,o,i=Yc(e);i.root.setAttribute("data-md-exec-state","ready");let a=()=>_n(i.output),s=()=>ge(null,null,function*(){return o||(o=ge(null,null,function*(){if(i.root.setAttribute("data-md-exec-state","loading"),Zt(i.output,"Initializing..."),yield Jc(),!r)return null;let p=yield Tr(Xc()).then(u=>u);if(!r||!p)return null;if(i.install.length>0)try{let u=p.pyimport("micropip");for(let f of i.install)yield u.install(f)}catch(u){return _n(i.output),Zt(i.output,`Could not install one or more packages: ${i.install.join(", ")} -${String(u)}`),i.root.setAttribute("data-md-exec-state","error"),null}return r?(_n(i.output),i.root.setAttribute("data-md-exec-state","ready"),p):null})),o}),c=()=>{ge(null,null,function*(){let p=yield s();!r||!p||!n||Qc(p,n,i.output,i.session)})},l=p=>{p.ctrlKey&&p.key.toLowerCase()==="enter"&&(p.preventDefault(),i.run.click())};return i.run.addEventListener("click",c),i.clear.addEventListener("click",a),i.root.addEventListener("keydown",l),ge(null,null,function*(){yield Tr($i),r&&(Zc(),i.editor.textContent="",n=ace.edit(i.editor),n.setTheme("ace/theme/zensical"),n.session.setMode("ace/mode/python"),n.setOption("fontFamily","var(--md-code-font)"),n.setOption("minLines",i.minLines),n.setOption("maxLines",i.maxLines),n.session.setValue(i.source),n.gotoLine(1,0,!1),n.clearSelection(),n.resize(),n.renderer.updateFull())}),t.next({ref:i.root}),()=>{r=!1,i.run.removeEventListener("click",c),i.clear.removeEventListener("click",a),i.root.removeEventListener("keydown",l),n==null||n.destroy(),i.root.removeAttribute("data-md-exec-state")}})}var Fi;function el(){return typeof GLightbox=="undefined"||GLightbox instanceof Element?Ge("https://unpkg.com/glightbox@3/dist/js/glightbox.min.js").pipe(se(()=>w),m(()=>{})):U(void 0)}function tl(){return Mo("https://unpkg.com/glightbox@3/dist/css/glightbox.min.css").pipe(se(()=>w),m(()=>{}))}function Ui(e){return Fi||(Fi=el().pipe(m(()=>new GLightbox(R({touchNavigation:!0,loop:!1,zoomable:!0,draggable:!0,openEffect:"zoom",closeEffect:"zoom",slideEffect:"slide",onOpen:()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}},typeof GLightboxOptions!="undefined"?GLightboxOptions:{}))),J(1))),tl().pipe(x(()=>Fi),x(t=>(t.reload(),e.map(r=>({ref:r})))))}var zi=0,Vi=new Map;function rl(e){let t=document.createElement("h3");t.innerHTML=e.innerHTML;let r=[t],n=e.nextElementSibling;for(;n&&!(n instanceof HTMLHeadingElement);)r.push(n.cloneNode(!0)),n=n.nextElementSibling;return r}function nl(e,t){for(let r of k("[href], [src]",e))for(let n of["href","src"]){let o=r.getAttribute(n);if(o&&!/^(?:[a-z]+:)?\/\//i.test(o)){r[n]=new URL(r.getAttribute(n),t).toString();break}}for(let r of k("[name^=__], [for]",e))for(let n of["id","for","name"]){let o=r.getAttribute(n);o&&r.setAttribute(n,`${o}$preview_${zi}`)}return zi++,U(e)}function ol(e){let t=Vi.get(e.toString());return t?U(t):Rr(e).pipe(x(r=>nl(r,e)),m(r=>(Vi.set(e.toString(),r),r)))}function Wi(e,t){let{sitemap$:r}=t;if(!(e instanceof HTMLAnchorElement))return w;if(!(B("navigation.instant.preview")||e.hasAttribute("data-preview")))return w;e.removeAttribute("title");let n=Z([Pt(e),vt(e).pipe(we(1))]).pipe(m(([i,a])=>i||a),ne(),S(i=>i));return ft([r,n]).pipe(x(([i])=>{let a=new URL(e.href);return a.search=a.hash="",i.has(`${a}`)?U(a):w}),x(i=>ol(i)),x(i=>{let a=e.hash?`article [id="${decodeURIComponent(e.hash.slice(1))}"]`:"article h1",s=be(a,i);return typeof s=="undefined"?w:U(rl(s))})).pipe(x(i=>{let a=new j(s=>{let c=Fr(...i);return s.next(c),document.body.append(c),()=>c.remove()});return Qt(e,R({content$:a},t))}))}var Di=".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.marker{fill:var(--md-mermaid-edge-color);stroke:var(--md-mermaid-edge-color)}.edgeLabel .label rect{fill:#0000}.flowchartTitleText{fill:var(--md-mermaid-label-fg-color)}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel p,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel p{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color)}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}.classDiagramTitleText{fill:var(--md-mermaid-label-fg-color)}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs marker.marker.composition.class path,defs marker.marker.dependency.class path,defs marker.marker.extension.class path{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs marker.marker.aggregation.class path{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}.statediagramTitleText{fill:var(--md-mermaid-label-fg-color)}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.nodeLabel p{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}a .nodeLabel{text-decoration:underline}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs [id$=-barbEnd]{fill:var(--md-mermaid-edge-color);stroke:var(--md-mermaid-edge-color)}[id^=entity] path,[id^=entity] rect{fill:var(--md-default-bg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs .marker.oneOrMore.er *,defs .marker.onlyOne.er *,defs .marker.zeroOrMore.er *,defs .marker.zeroOrOne.er *{stroke:var(--md-mermaid-edge-color)!important}text:not([class]):last-child{fill:var(--md-mermaid-label-fg-color)}.actor{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color);font-family:var(--md-mermaid-font-family)}.actor-line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{stroke:none;font-family:var(--md-mermaid-font-family)!important}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan,.sectionTitle{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}[id$=-arrowhead] path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-sequence-label-fg-color);font-family:var(--md-mermaid-font-family)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}[id$=-sequencenumber],defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}[class^=activation]{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-label-fg-color);stroke-width:1.5px}";var kn,al=0;function sl(){return typeof mermaid=="undefined"||mermaid instanceof Element?Ge("https://unpkg.com/mermaid@11/dist/mermaid.min.js"):U(void 0)}function Ni(e){return e.classList.remove("mermaid"),kn||(kn=sl().pipe(H(()=>mermaid.initialize({startOnLoad:!1,themeCSS:Di,sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),m(()=>{}),J(1))),kn.subscribe(()=>ge(null,null,function*(){e.classList.add("mermaid");let t=`__mermaid_${al++}`,r=M("div",{class:"mermaid"}),n=e.textContent,{svg:o,fn:i}=yield mermaid.render(t,n),a=r.attachShadow({mode:"closed"});a.innerHTML=o,e.replaceWith(r),i==null||i(a)})),kn.pipe(m(()=>({ref:e})))}var qi=M("table");function Ki(e){return e.replaceWith(qi),qi.replaceWith(Ei(e)),U({ref:e})}function cl(e){let t=e.find(r=>r.checked)||e[0];return P(...e.map(r=>v(r,"change").pipe(m(()=>D(`label[for="${r.id}"]`))))).pipe(N(D(`label[for="${t.id}"]`)),m(r=>({active:r})))}function Bi(e,{viewport$:t,target$:r}){let n=D(".tabbed-labels",e),o=k(":scope > input",e),i=On("prev");e.append(i);let a=On("next");return e.append(a),I(()=>{let s=new $,c=s.pipe(ue(),de(!0));Z([s,Me(e),it(e)]).pipe(Y(c),We(1,_e)).subscribe({next([{active:l},p]){let u=ot(l),{width:f}=Ee(l);e.style.setProperty("--md-indicator-x",`${u.x}px`),e.style.setProperty("--md-indicator-width",`${f}px`);let d=_r(n);(u.xd.x+p.width)&&n.scrollTo({left:Math.max(0,u.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),Z([gt(n),Me(n)]).pipe(Y(c)).subscribe(([l,p])=>{let u=Bt(n);i.hidden=l.x<16,a.hidden=l.x>u.width-p.width-16}),P(v(i,"click").pipe(m(()=>-1)),v(a,"click").pipe(m(()=>1))).pipe(Y(c)).subscribe(l=>{let{width:p}=Ee(n);n.scrollBy({left:p*l,behavior:"smooth"})}),r.pipe(Y(c),S(l=>o.includes(l))).subscribe(l=>l.click()),n.classList.add("tabbed-labels--linked");for(let l of o){let p=D(`label[for="${l.id}"]`);p.replaceChildren(M("a",{href:`#${p.htmlFor}`,tabIndex:-1},...Array.from(p.childNodes))),v(p.firstElementChild,"click").pipe(Y(c),S(u=>!(u.metaKey||u.ctrlKey)),H(u=>{u.preventDefault(),u.stopPropagation()})).subscribe(()=>{history.replaceState({},"",`#${p.htmlFor}`),p.click()})}return B("content.tabs.link")&&s.pipe(we(1),ae(t)).subscribe(([{active:l},{offset:p}])=>{let u=l.innerText.trim();if(l.hasAttribute("data-md-switching"))l.removeAttribute("data-md-switching");else{let f=e.offsetTop-p.y;for(let h of k("[data-tabs]"))for(let b of k(":scope > input",h)){let y=D(`label[for="${b.id}"]`);if(y!==l&&y.innerText.trim()===u){y.setAttribute("data-md-switching",""),b.click();break}}window.scrollTo({top:e.offsetTop-f});let d=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([u,...d])])}}),s.pipe(Y(c)).subscribe(()=>{for(let l of k("audio, video",e))l.offsetWidth&&l.autoplay?l.play().catch(()=>{}):l.pause()}),cl(o).pipe(H(l=>s.next(l)),z(()=>s.complete()),m(l=>R({ref:e},l)))}).pipe(ut(me))}function Yi(e,t){let{viewport$:r,target$:n,print$:o}=t;return P(...k(".annotate:not(.highlight)",e).map(i=>Mi(i,{target$:n,print$:o})),...k(".pyodide",e).map(i=>ji(i)),...k("pre:not(.mermaid) > code",e).filter(i=>!i.closest(".pyodide")).map(i=>Ci(i,{target$:n,print$:o})),...k("a",e).map(i=>Wi(i,t)),...k("pre.mermaid",e).map(i=>Ni(i)),...[k(".glightbox",e)].filter(i=>i.length>0).map(i=>Ui(i)),...k("table:not([class])",e).map(i=>Ki(i)),...k("details",e).map(i=>Hi(i,{target$:n,print$:o})),...k("[data-tabs]",e).map(i=>Bi(i,{viewport$:r,target$:n})),...k("[title]:not([data-preview])",e).filter(()=>B("content.tooltips")).map(i=>Fe(i,{viewport$:r})),...k(".footnote-ref",e).filter(()=>B("content.footnote.tooltips")).map(i=>Qt(i,{content$:new j(a=>{let s=new URL(i.href).hash.slice(1),c=Array.from(document.getElementById(s).cloneNode(!0).children),l=Fr(...c);return a.next(l),document.body.append(l),()=>l.remove()}),viewport$:r})))}function ll(e,{alert$:t}){return t.pipe(x(r=>P(U(!0),U(!1).pipe(dt(2e3))).pipe(m(n=>({message:r,active:n})))))}function Gi(e,t){let r=D(".md-typeset",e);return I(()=>{let n=new $;return n.subscribe(({message:o,active:i})=>{e.classList.toggle("md-dialog--active",i),r.textContent=o}),ll(e,t).pipe(H(o=>n.next(o)),z(()=>n.complete()),m(o=>R({ref:e},o)))})}function pl({viewport$:e}){if(!B("header.autohide"))return U(!1);let t=e.pipe(m(({offset:{y:o}})=>o),mt(2,1),m(([o,i])=>[oMath.abs(i-o.y)>100),m(([,[o]])=>o),ne()),n=Ir("search");return Z([e,n]).pipe(m(([{offset:o},i])=>o.y>400&&!i),ne(),x(o=>o?r:U(!1)),N(!1))}function Ji(e,t){return I(()=>Z([Me(e),pl(t)])).pipe(m(([{height:r},n])=>({height:r,hidden:n})),ne((r,n)=>r.height===n.height&&r.hidden===n.hidden),J(1))}function Qi(e,{viewport$:t,header$:r,main$:n}){return I(()=>{let o=new $,i=o.pipe(ue(),de(!0));o.pipe(pe("active"),De(r)).subscribe(([{active:s},{hidden:c}])=>{e.classList.toggle("md-header--shadow",s&&!c),e.hidden=c});let a=le(k("[title]",e)).pipe(S(()=>B("content.tooltips")),te(s=>Fe(s,{viewport$:t})));return n.subscribe(o),r.pipe(Y(i),m(s=>R({ref:e},s)),ht(a.pipe(Y(i))))})}function ul(e,{viewport$:t,header$:r}){return jr(e,{viewport$:t,header$:r}).pipe(m(({offset:{y:n}})=>{let{height:o}=Ee(e);return{active:o>0&&n>=o}}),pe("active"))}function Xi(e,t){return I(()=>{let r=new $;r.subscribe({next({active:o}){e.classList.toggle("md-header__title--active",o)},complete(){e.classList.remove("md-header__title--active")}});let n=be(".md-content h1");return typeof n=="undefined"?w:ul(n,t).pipe(H(o=>r.next(o)),z(()=>r.complete()),m(o=>R({ref:e},o)))})}function Zi(e,{viewport$:t,header$:r}){let n=r.pipe(m(({height:i})=>i),ne()),o=n.pipe(x(()=>Me(e).pipe(m(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),pe("bottom"))));return Z([n,o,t]).pipe(m(([i,{top:a,bottom:s},{offset:{y:c},size:{height:l}}])=>(l=Math.max(0,l-Math.max(0,a-c,i)-Math.max(0,l+c-s)),{offset:a-i,height:l,active:a-i<=c})),ne((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function fl(e){let t=__md_get("__palette")||{index:e.findIndex(n=>matchMedia(n.getAttribute("data-md-color-media")).matches)},r=Math.max(0,Math.min(t.index,e.length-1));return U(...e).pipe(te(n=>v(n,"change").pipe(m(()=>n))),N(e[r]),m(n=>({index:e.indexOf(n),color:{media:n.getAttribute("data-md-color-media"),scheme:n.getAttribute("data-md-color-scheme"),primary:n.getAttribute("data-md-color-primary"),accent:n.getAttribute("data-md-color-accent")}})),J(1))}function ea(e){let t=k("input",e),r=M("meta",{name:"theme-color"});document.head.appendChild(r);let n=M("meta",{name:"color-scheme"});document.head.appendChild(n);let o=Jt("(prefers-color-scheme: light)");return I(()=>{let i=new $;return i.subscribe(a=>{if(document.body.setAttribute("data-md-color-switching",""),a.color.media==="(prefers-color-scheme)"){let s=matchMedia("(prefers-color-scheme: light)"),c=document.querySelector(s.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");a.color.scheme=c.getAttribute("data-md-color-scheme"),a.color.primary=c.getAttribute("data-md-color-primary"),a.color.accent=c.getAttribute("data-md-color-accent")}for(let[s,c]of Object.entries(a.color))document.body.setAttribute(`data-md-color-${s}`,c);for(let s=0;sa.key==="Enter"),ae(i,(a,s)=>s)).subscribe(({index:a})=>{a=(a+1)%t.length,t[a].click(),t[a].focus()}),i.pipe(m(()=>{let a=Ze("header"),s=window.getComputedStyle(a);return n.content=s.colorScheme,s.backgroundColor.match(/\d+/g).map(c=>(+c).toString(16).padStart(2,"0")).join("")})).subscribe(a=>r.content=`#${a}`),i.pipe(Le(me)).subscribe(()=>{document.body.removeAttribute("data-md-color-switching")}),fl(t).pipe(Y(o.pipe(we(1))),bt(),H(a=>i.next(a)),z(()=>i.complete()),m(a=>R({ref:e},a)))})}function ta(e,{progress$:t}){return I(()=>{let r=new $;return r.subscribe(({value:n})=>{e.style.setProperty("--md-progress-value",`${n}`)}),t.pipe(H(n=>r.next({value:n})),z(()=>r.complete()),m(n=>({ref:e,value:n})))})}var Et=ct(bn());var ra='.m u{text-decoration:underline!important;text-decoration-style:wavy!important;text-decoration-thickness:1px!important}.p{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-backdrop)/var(--alpha-lighter));cursor:pointer;height:100%;pointer-events:auto;position:absolute;transition:opacity .25s;width:100%}.p.v{opacity:0;pointer-events:none;transition:opacity .35s}.r{align-items:center;background-color:initial;border:none;border-radius:var(--space-2);cursor:pointer;display:flex;flex-shrink:0;font-family:var(--font-family);height:36px;justify-content:center;outline:none;padding:0;position:relative;transition:background-color .25s,color .25s;width:36px;z-index:1}.r svg{stroke:rgb(var(--color-foreground));height:18px;opacity:.5;width:18px}.r:before{background-color:rgb(var(--color-background-subtle));border-radius:var(--border-radius-2);content:"";inset:0;opacity:0;position:absolute;transform:scale(.75);transition:transform 125ms,opacity 125ms;z-index:0}.r:hover:before{opacity:1;transform:scale(1)}.r.c{cursor:auto}.r.c:before{display:none}.n{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-background)/var(--alpha-light));border:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));border-radius:var(--space-3);box-shadow:0 0 60px #0000000d;display:flex;height:480px;overflow:hidden;pointer-events:auto;position:absolute;transition:transform .25s cubic-bezier(.16,1,.3,1),opacity .25s;width:640px}.n.l{opacity:0;pointer-events:none;transform:scale(1.1);transition:transform .25s .15s,opacity .15s}@media (max-width:680px){.n{border-radius:0;height:100%;width:100%}}.y{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;min-width:0}@keyframes d{0%{transform:scale(0)}50%{transform:scale(1.2)}to{transform:scale(1)}}.w{animation:d .25s ease-in-out;background:var(--color-highlight);border-radius:100%;color:#fff;font-size:8px;font-weight:700;height:12px;padding-top:1px;position:absolute;right:4px;top:4px;width:12px}.e{background-color:rgb(var(--color-background-subtle)/var(--alpha-lighter));border-left:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));flex-shrink:0;overflow-y:scroll;position:relative;transition:width .35s cubic-bezier(.16,1,.3,1),opacity .25s;width:200px}.e>*{transform:translate(0);transition:transform .25s cubic-bezier(.16,1,.3,1)}.e.l{opacity:0;width:0}.e.l>*{transform:translate(-48px)}@media (max-width:680px){.e{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-background-subtle)/var(--alpha-light));box-shadow:0 0 60px #00000026;height:100%;position:absolute;right:0;top:0}}.k{border-bottom:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));display:flex;gap:var(--space-1);padding:var(--space-2)}.z{-webkit-overflow-scrolling:touch;flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}.j{padding:8px 10px}.X{color:rgb(var(--color-foreground)/var(--alpha-light));padding:var(--space-2);position:absolute;width:100%}.F,.X{display:flex;flex-direction:column}.F{gap:2px;list-style:none;padding:0}.F,.I{margin:0}.I{font-size:16px;font-weight:400}.I,.R{padding:8px}.R{font-size:14px;margin:4px 0 0;opacity:.5}.R,.o{font-size:12px}.o{cursor:pointer;display:flex;padding:4px 8px;position:relative}.o:before{background-color:var(--color-highlight-transparent);border-radius:var(--space-1);content:"";inset:0;opacity:0;position:absolute;transform:scale(.75);transition:transform 125ms,opacity 125ms;z-index:0}.o.g:before,.o:hover:before{opacity:1;transform:scale(1)}.o.g,.o:hover{color:var(--color-highlight)}.q{flex-grow:1}.A,.q{position:relative}.A{font-weight:700}.f{flex-grow:1}.f input{background:#0000;border:none;color:rgb(var(--color-foreground));font-family:var(--font-family);font-size:16px;height:100%;letter-spacing:-.25px;outline:none;width:100%}.b{color:rgb(var(--color-foreground)/var(--alpha-light));display:flex;flex-direction:column;gap:2px;line-height:1.3;list-style:none;margin:var(--space-2);margin-top:0;padding:0}.B,.b li{margin:0}.B{color:rgb(var(--color-foreground)/var(--alpha-lighter));font-size:12px;margin-top:var(--space-2);padding:0 18px}.i{border-radius:var(--space-2);color:inherit;cursor:pointer;display:flex;flex-direction:row;flex-grow:1;padding:8px 10px;position:relative;text-decoration:none}.i:before{background-color:rgb(var(--color-background-subtle));border-radius:var(--border-radius-2);content:"";display:block;inset:0;opacity:0;position:absolute;transform:scale(.9);transition:transform 125ms,opacity 125ms;z-index:0}@media (pointer:fine){.i.h:before,.i:hover:before{opacity:1;transform:scale(1)}}.i mark{background:#0000;color:var(--color-highlight)}.i u{text-decoration:underline}.C{flex-direction:column;flex-grow:1;gap:5.5px}.C,.D{display:flex;min-width:0}.D{align-items:flex-start;gap:var(--space-2);justify-content:space-between}.s{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:6px;justify-content:flex-end;margin-right:-8px;margin-top:auto;opacity:0;position:relative;transform:translate(-2px);transition:transform 125ms,opacity 125ms;z-index:0}@media (pointer:fine){.h>.s,:hover>.s{opacity:1;transform:none}}.x{font-size:14px;margin:0;position:relative}.x code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);font-size:13px;padding:2px 4px}.t{color:rgb(var(--color-foreground)/.45);display:inline-flex;flex:1 1 auto;flex-wrap:wrap;font-size:12px;gap:var(--space-1);list-style:none;margin:0;min-width:0;padding:0;position:relative}.t li{white-space:nowrap}.t li:after{content:"/";display:inline;margin-left:var(--space-1)}.t li:last-child:after{content:"";display:none}.u{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:rgb(var(--color-foreground));display:-webkit-box;font-size:12px;line-height:1.5;overflow:hidden;position:relative}.u code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);padding:2px 4px}.E,.u code{font-size:11px}.E{color:rgb(var(--color-foreground)/.45);line-height:1;white-space:nowrap;z-index:1}.a{--space-1:4px;--space-2:calc(var(--space-1)*2);--space-3:calc(var(--space-2)*2);--space-4:calc(var(--space-3)*2);--space-5:calc(var(--space-4)*2);--alpha-light:.7;--alpha-lighter:.54;--alpha-lightest:.07;--color-highlight:var(--md-accent-fg-color,#526cfe);--color-highlight-transparent:var( --md-accent-fg-color--transparent,#526cfe1a );--border-radius-1:var(--space-1);--border-radius-2:var(--space-2);--border-radius-3:calc(var(--space-1) + var(--space-2));--font-family:var( --md-text-font-family,Inter,Roboto Flex,system-ui,sans-serif );--font-size:16px;--line-height:1.5;--letter-spacing:-.5px;-webkit-font-smoothing:antialiased;align-items:center;display:flex;font-family:var(--font-family);font-size:var(--font-size);height:100vh;justify-content:center;letter-spacing:var(--letter-spacing);line-height:var(--line-height);pointer-events:none;position:absolute;width:100vw}@media (pointer:coarse){.a{height:-webkit-fill-available}}.a *,.a :after,.a :before{box-sizing:border-box}';function na(e,{index$:t}){let r=Ce(),n=document.createElement("div");document.body.appendChild(n),n.style.position="fixed",n.style.height="100%",n.style.top="0",n.style.zIndex="4";let o=n.attachShadow({mode:"open"});o.appendChild(M("style",{},ra.toString()));try{(0,Et.setup)(r.search,{highlight:r.features.includes("search.highlight")}),le(t).subscribe(i=>{for(let a of i.items)a.location=new URL(`./${a.location}`,r.base).toString();(0,Et.mount)(i,o)}),v(e,"click").subscribe(()=>{(0,Et.open)()}),Ir("search").pipe(we(1)).subscribe(()=>(0,Et.open)())}catch(i){e.hidden=!0;let a=D("label[for=__search]");a.hidden=!0}return Re}var oa=ct(Tn());function ia(e,{index$:t,location$:r}){return Z([t,r.pipe(N(Ae()),S(n=>!!n.searchParams.get("h")))]).pipe(m(([n,o])=>dl(n.config)(o.searchParams.get("h"))),m(n=>{var a;let o=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let s=i.nextNode();s;s=i.nextNode())if((a=s.parentElement)!=null&&a.offsetHeight){let c=s.textContent,l=n(c);l.length>c.length&&o.set(s,l)}for(let[s,c]of o){let{childNodes:l}=M("span",null,c);s.replaceWith(...Array.from(l))}return{ref:e,nodes:o}}))}function dl(e){let t=e.separator.split("|").map(o=>o.replace(/(\(\?[!=<][^)]+\))/g,"").length===0?"\uFFFD":o).join("|"),r=new RegExp(t,"img"),n=(o,i,a)=>`${i}${a}`;return o=>{o=o.replace(/\s+/g," ").replace(/&/g,"&").trim();let i=new RegExp(`(^|${e.separator}|)(${o.split(r).map(a=>a.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")).filter(a=>a.length>=2).join("|")})`,"img");return a=>(0,oa.default)(a).replace(i,n).replace(/<\/mark>(\s+)]*>/img,"$1")}}function hl(e,{viewport$:t,main$:r}){let n=e.closest(".md-grid"),o=n.offsetTop-n.parentElement.offsetTop;return Z([r,t]).pipe(m(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(o,Math.max(0,s-i))-o,{height:a,locked:s>=i+o})),ne((i,a)=>i.height===a.height&&i.locked===a.locked))}function An(e,n){var o=n,{header$:t}=o,r=jn(o,["header$"]);let i=D(".md-sidebar__scrollwrap",e),{y:a}=ot(i);return I(()=>{let s=new $,c=s.pipe(ue(),de(!0)),l=s.pipe(We(0,_e));return l.pipe(ae(t)).subscribe({next([{height:p},{height:u}]){i.style.height=`${p-2*a}px`,e.style.top=`${u}px`},complete(){i.style.height="",e.style.top=""}}),l.pipe(Nt()).subscribe(()=>{for(let p of k(".md-nav__link--active[href]",e)){if(!p.clientHeight)continue;let u=p.closest(".md-sidebar__scrollwrap");if(typeof u!="undefined"){let f=p.offsetTop-u.offsetTop,{height:d}=Ee(u);u.scrollTo({top:f-d/2})}}}),le(k("label[tabindex]",e)).pipe(te(p=>v(p,"click").pipe(Le(me),m(()=>p),Y(c)))).subscribe(p=>{let u=D(`[id="${p.htmlFor}"]`);D(`[aria-labelledby="${p.id}"]`).setAttribute("aria-expanded",`${u.checked}`)}),B("content.tooltips")&&le(k("abbr[title]",e)).pipe(te(p=>Fe(p,{viewport$})),Y(c)).subscribe(),hl(e,r).pipe(H(p=>s.next(p)),z(()=>s.complete()),m(p=>R({ref:e},p)))})}function aa(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return ft(qe(`${r}/releases/latest`).pipe(se(()=>w),m(n=>({version:n.tag_name})),Ye({})),qe(r).pipe(se(()=>w),m(n=>({stars:n.stargazers_count,forks:n.forks_count})),Ye({}))).pipe(m(([n,o])=>R(R({},n),o)))}else{let r=`https://api.github.com/users/${e}`;return qe(r).pipe(m(n=>({repositories:n.public_repos})),Ye({}))}}function sa(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return ft(qe(`${r}/releases/permalink/latest`).pipe(se(()=>w),m(({tag_name:n})=>({version:n})),Ye({})),qe(r).pipe(se(()=>w),m(({star_count:n,forks_count:o})=>({stars:n,forks:o})),Ye({}))).pipe(m(([n,o])=>R(R({},n),o)))}function ca(e){let t=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);if(t){let[,r,n]=t;return aa(r,n)}if(t=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i),t){let[,r,n]=t;return sa(r,n)}return w}var bl;function vl(e){return bl||(bl=I(()=>{let t=__md_get("__source",sessionStorage);if(t)return U(t);if(ve("consent").length){let n=__md_get("__consent");if(!(n&&n.github))return w}return ca(e.href).pipe(H(n=>__md_set("__source",n,sessionStorage)))}).pipe(se(()=>w),S(t=>Object.keys(t).length>0),m(t=>({facts:t})),J(1)))}function la(e){let t=D(":scope > :last-child",e);return I(()=>{let r=new $;return r.subscribe(({facts:n})=>{t.appendChild(wi(n)),t.classList.add("md-source__repository--active")}),vl(e).pipe(H(n=>r.next(n)),z(()=>r.complete()),m(n=>R({ref:e},n)))})}function gl(e,{viewport$:t,header$:r}){return Me(document.body).pipe(x(()=>jr(e,{header$:r,viewport$:t})),m(({offset:{y:n}})=>({hidden:n>=10})),pe("hidden"))}function pa(e,t){return I(()=>{let r=new $;return r.subscribe({next({hidden:n}){e.hidden=n},complete(){e.hidden=!1}}),(B("navigation.tabs.sticky")?U({hidden:!1}):gl(e,t)).pipe(H(n=>r.next(n)),z(()=>r.complete()),m(n=>R({ref:e},n)))})}function xl(e,{viewport$:t,header$:r}){let n=new Map,o=k(".md-nav__link",e);for(let s of o){let c=decodeURIComponent(s.hash.substring(1)),l=be(`[id="${c}"]`);typeof l!="undefined"&&n.set(s,l)}let i=r.pipe(pe("height"),m(({height:s})=>{let c=Ze("main"),l=D(":scope > :first-child",c);return s+.9*(l.offsetTop-c.offsetTop)}),he());return Me(document.body).pipe(pe("height"),x(s=>I(()=>{let c=[];return U([...n].reduce((l,[p,u])=>{for(;c.length&&n.get(c[c.length-1]).tagName>=u.tagName;)c.pop();let f=u.offsetTop;for(;!f&&u.parentElement;)u=u.parentElement,f=u.offsetTop;let d=u.offsetParent;for(;d;d=d.offsetParent)f+=d.offsetTop;return l.set([...c=[...c,p]].reverse(),f)},new Map))}).pipe(m(c=>new Map([...c].sort(([,l],[,p])=>l-p))),De(i),x(([c,l])=>t.pipe(qt(([p,u],{offset:{y:f},size:d})=>{let h=f+d.height>=Math.floor(s.height);for(;u.length;){let[,b]=u[0];if(b-l=f&&!h)u=[p.pop(),...u];else break}return[p,u]},[[],[...c]]),ne((p,u)=>p[0]===u[0]&&p[1]===u[1])))))).pipe(m(([s,c])=>({prev:s.map(([l])=>l),next:c.map(([l])=>l)})),N({prev:[],next:[]}),mt(2,1),m(([s,c])=>s.prev.length{let i=new $,a=i.pipe(ue(),de(!0));i.subscribe(({prev:c,next:l})=>{for(let[p]of l)p.classList.remove("md-nav__link--passed"),p.classList.remove("md-nav__link--active");for(let[p,[u]]of c.entries())u.classList.add("md-nav__link--passed"),u.classList.toggle("md-nav__link--active",p===c.length-1)});let s=be(".md-sidebar--secondary");if(typeof s!="undefined"&&v(document.body,"click").subscribe(c=>{let l=c.target;if(!s.contains(l)){let p=be(".md-nav__toggle",s);typeof p!="undefined"&&(p.checked=!1)}}),B("toc.follow")){let c=P(t.pipe(Ie(1),m(()=>{})),t.pipe(Ie(250),m(()=>"smooth")));i.pipe(S(({prev:l})=>l.length>0),De(n.pipe(Le(me))),ae(c)).subscribe(([[{prev:l}],p])=>{let[u]=l[l.length-1];if(u.offsetHeight){let f=ko(u);if(typeof f!="undefined"){let d=u.offsetTop-f.offsetTop,{height:h}=Ee(f);f.scrollTo({top:d-h/2,behavior:p})}}})}return B("navigation.tracking")&&t.pipe(Y(a),pe("offset"),Ie(250),we(1),Y(o.pipe(we(1))),bt({delay:250}),ae(i)).subscribe(([,{prev:c}])=>{let l=Ae(),p=c[c.length-1];if(p&&p.length){let[u]=p,{hash:f}=new URL(u.href);l.hash!==f&&(l.hash=f,history.replaceState({},"",`${l}`))}else l.hash="",history.replaceState({},"",`${l}`)}),xl(e,{viewport$:t,header$:r}).pipe(H(c=>i.next(c)),z(()=>i.complete()),m(c=>R({ref:e},c)))})}function yl(e,{viewport$:t,main$:r,target$:n}){let o=t.pipe(m(({offset:{y:a}})=>a),mt(2,1),m(([a,s])=>a>s&&s>0),ne()),i=r.pipe(m(({active:a})=>a));return Z([i,o]).pipe(m(([a,s])=>!(a&&s)),ne(),Y(n.pipe(we(1))),de(!0),bt({delay:250}),m(a=>({hidden:a})))}function fa(e,{viewport$:t,header$:r,main$:n,target$:o}){let i=new $,a=i.pipe(ue(),de(!0));return i.subscribe({next({hidden:s}){e.hidden=s,s?(e.setAttribute("tabindex","-1"),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.top="",e.hidden=!0,e.removeAttribute("tabindex")}}),r.pipe(Y(a),pe("height")).subscribe(({height:s})=>{e.style.top=`${s+16}px`}),v(e,"click").subscribe(s=>{s.preventDefault(),window.scrollTo({top:0})}),yl(e,{viewport$:t,main$:n,target$:o}).pipe(H(s=>i.next(s)),z(()=>i.complete()),m(s=>R({ref:e},s)))}function ma(e,t){return e.protocol=t.protocol,e.hostname=t.hostname,t.port&&(e.port=t.port),e}function wl(e,t){let r=new Map;for(let n of k("url",e)){let o=D("loc",n),i=[ma(new URL(o.textContent),t)];r.set(`${i[0]}`,i);for(let a of k("[rel=alternate]",n)){let s=a.getAttribute("href");s!=null&&i.push(ma(new URL(s),t))}}return r}function jt(e){return si(new URL("sitemap.xml",e)).pipe(m(t=>wl(t,new URL(e))),se(()=>U(new Map)),he())}function da({document$:e}){let t=new Map;e.pipe(x(()=>k("link[rel=alternate]")),m(r=>new URL(r.href)),S(r=>!t.has(r.toString())),te(r=>jt(r).pipe(m(n=>[r,n]),se(()=>w)))).subscribe(([r,n])=>{t.set(r.toString().replace(/\/$/,""),n)}),v(document.body,"click").pipe(S(r=>!r.metaKey&&!r.ctrlKey),x(r=>{if(r.target instanceof Element){let n=r.target.closest("a");if(n&&!n.target){let o=[...t].find(([u])=>n.href.startsWith(`${u}/`));if(typeof o=="undefined")return w;let[i,a]=o,s=Ae();if(s.href.startsWith(i))return w;let c=Ce(),l=s.href.replace(c.base,"");l=`${i}/${l}`;let p=a.has(l.split("#")[0])?new URL(l,c.base):new URL(i);return r.preventDefault(),U(p)}}return w})).subscribe(r=>Xe(r,!0))}var Cn=ct(Ln());function El(e){e.setAttribute("data-md-copying","");let t=e.closest("[data-copy]"),r=t?t.getAttribute("data-copy"):e.innerText;return e.removeAttribute("data-md-copying"),r.trimEnd()}function ha({alert$:e}){Cn.default.isSupported()&&new j(t=>{new Cn.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||El(D(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(H(t=>{t.trigger.focus()}),m(()=>wt("clipboard.copied"))).subscribe(e)}function ba(e,t){if(!(e.target instanceof Element))return w;let r=e.target.closest("a");if(r===null)return w;if(r.target||e.metaKey||e.ctrlKey)return w;let n=new URL(r.href);return n.search=n.hash="",t.has(`${n}`)?(e.preventDefault(),U(r)):w}function va(e){let t=new Map;for(let r of k(":scope > *",e.head))t.set(r.outerHTML,r);return t}function ga(e){for(let t of k("[href], [src]",e))for(let r of["href","src"]){let n=t.getAttribute(r);if(n&&!/^(?:[a-z]+:)?\/\//i.test(n)){t[r]=t[r];break}}return U(e)}function Tl(e){var r;if(e.tagName!=="STYLE")return!1;let t=(r=e.textContent)!=null?r:"";return t.includes(".ace_editor")||t.includes(".ace-zensical")||t.includes(".ace_scroller")||t.includes(".ace_gutter")}function Ol(e){for(let n of["[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=outdated]","[data-md-component=logo]","[data-md-component=skip]",...B("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let o=be(n),i=be(n,e);typeof o!="undefined"&&typeof i!="undefined"&&o.replaceWith(i)}let t=va(document);for(let[n,o]of va(e))t.has(n)?t.delete(n):document.head.appendChild(o);for(let n of t.values()){let o=n.getAttribute("name");o!=="theme-color"&&o!=="color-scheme"&&!Tl(n)&&n.remove()}let r=Ze("container");return Be(k("script",r)).pipe(x(n=>{let o=e.createElement("script");if(n.src){for(let i of n.getAttributeNames())o.setAttribute(i,n.getAttribute(i));return n.replaceWith(o),new j(i=>{o.onload=()=>i.complete()})}else return o.textContent=n.textContent,n.replaceWith(o),w}),ue(),de(document))}function xa({sitemap$:e,location$:t,viewport$:r,progress$:n}){if(location.protocol==="file:")return Re;U(document).subscribe(ga);let o=v(document.body,"click").pipe(De(e),x(([s,c])=>ba(s,c)),m(({href:s})=>new URL(s)),he()),i=v(window,"popstate").pipe(m(Ae),he());o.pipe(ae(r)).subscribe(([s,{offset:c}])=>{history.replaceState(c,""),history.pushState(null,"",s)}),P(o,i).subscribe(t);let a=t.pipe(N(Ae()),Mr(),S(([s,c])=>s.pathname!==c.pathname),m(([,s])=>s),x(s=>Rr(s,{progress$:n}).pipe(se(()=>(Xe(s,!0),w)))),x(ga),x(Ol),he());return P(a.pipe(ae(t,(s,c)=>c)),a.pipe(x(()=>t),pe("hash")),t.pipe(N(Ae()),Mr(),S(([s,c])=>s.pathname===c.pathname&&s.hash!==c.hash),m(([,s])=>s)),t.pipe(ne((s,c)=>s.pathname===c.pathname&&s.hash===c.hash),x(()=>o),H(()=>history.back()))).subscribe(s=>{var c,l;history.state!==null||!s.hash?window.scrollTo(0,(l=(c=history.state)==null?void 0:c.y)!=null?l:0):(history.scrollRestoration="auto",oi(s.hash),history.scrollRestoration="manual")}),t.subscribe(()=>{history.scrollRestoration="manual"}),v(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}),r.pipe(pe("offset"),Ie(100)).subscribe(({offset:s})=>{history.replaceState(s,"")}),B("navigation.instant.prefetch")&&P(v(document.body,"mousemove"),v(document.body,"focusin")).pipe(De(e),x(([s,c])=>ba(s,c)),Ie(25),cn(({href:s})=>s),Lr(s=>{let c=document.createElement("link");return c.rel="prefetch",c.href=s.toString(),document.head.appendChild(c),v(c,"load").pipe(m(()=>c),ye(1))})).subscribe(s=>s.remove()),a}function ya(e){var p;let{selectedVersionSitemap:t,selectedVersionBaseURL:r,currentLocation:n,currentBaseURL:o}=e,i=(p=Hn(o))==null?void 0:p.pathname;if(i===void 0)return;let a=Sl(n.pathname,i);if(a===void 0)return;let s=Ml(t.keys());if(!t.has(s))return;let c=Hn(a,s);if(!c||!t.has(c.href))return;let l=Hn(a,r);if(l)return l.hash=n.hash,l.search=n.search,l}function Hn(e,t){try{return new URL(e,t)}catch(r){return}}function Sl(e,t){if(e.startsWith(t))return e.slice(t.length)}function Ll(e,t){let r=Math.min(e.length,t.length),n;for(n=0;nw)),n=r.pipe(m(o=>{let[,i]=t.base.match(/([^/]+)\/?$/);return o.find(({version:a,aliases:s})=>a===i||s.includes(i))||o[0]}));r.pipe(m(o=>new Map(o.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),x(o=>v(document.body,"click").pipe(S(i=>!i.metaKey&&!i.ctrlKey),ae(n),x(([i,a])=>{if(i.target instanceof Element){let s=i.target.closest("a");if(s&&!s.target&&o.has(s.href)){let c=s.href;return!i.target.closest(".md-version")&&o.get(c)===a?w:(i.preventDefault(),U(new URL(c)))}}return w}),x(i=>jt(i).pipe(m(a=>{var s;return(s=ya({selectedVersionSitemap:a,selectedVersionBaseURL:i,currentLocation:Ae(),currentBaseURL:t.base}))!=null?s:i})))))).subscribe(o=>Xe(o,!0)),Z([r,n]).subscribe(([o,i])=>{D(".md-header__topic").appendChild(Ti(o,i))}),e.pipe(x(()=>n)).subscribe(o=>{var s;let i=new URL(t.base),a=__md_get("__outdated",sessionStorage,i);if(a===null){a=!0;let c=((s=t.version)==null?void 0:s.default)||"latest";Array.isArray(c)||(c=[c]);e:for(let l of c)for(let p of o.aliases.concat(o.version))if(new RegExp(l,"i").test(p)){a=!1;break e}__md_set("__outdated",a,sessionStorage,i)}if(a)for(let c of ve("outdated"))c.hidden=!1})}function Ea({document$:e,viewport$:t}){e.pipe(x(()=>k(".md-ellipsis")),te(r=>it(r).pipe(Y(e.pipe(we(1))),S(n=>n),m(()=>r),ye(1))),S(r=>r.offsetWidth{let n=r.innerText,o=r.closest("a")||r;return o.title=n,B("content.tooltips")?Fe(o,{viewport$:t}).pipe(Y(e.pipe(we(1))),z(()=>o.removeAttribute("title"))):w})).subscribe(),B("content.tooltips")&&e.pipe(x(()=>k(".md-status")),te(r=>Fe(r,{viewport$:t}))).subscribe()}function Ta({document$:e,tablet$:t}){e.pipe(x(()=>k(".md-toggle--indeterminate")),H(r=>{r.indeterminate=!0,r.checked=!1}),te(r=>v(r,"change").pipe(un(()=>r.classList.contains("md-toggle--indeterminate")),m(()=>r))),ae(t)).subscribe(([r,n])=>{r.classList.remove("md-toggle--indeterminate"),n&&(r.checked=!1)})}function _l(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Oa({document$:e}){e.pipe(x(()=>k("[data-md-scrollfix]")),H(t=>t.removeAttribute("data-md-scrollfix")),S(_l),te(t=>v(t,"touchstart").pipe(m(()=>t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}Object.entries||(Object.entries=function(e){let t=[];for(let r of Object.keys(e))t.push([r,e[r]]);return t});Object.values||(Object.values=function(e){let t=[];for(let r of Object.keys(e))t.push(e[r]);return t});typeof Element!="undefined"&&(Element.prototype.scrollTo||(Element.prototype.scrollTo=function(e,t){typeof e=="object"?(this.scrollLeft=e.left,this.scrollTop=e.top):(this.scrollLeft=e,this.scrollTop=t)}),Element.prototype.replaceWith||(Element.prototype.replaceWith=function(...e){let t=this.parentNode;if(t){e.length===0&&t.removeChild(this);for(let r=e.length-1;r>=0;r--){let n=e[r];typeof n=="string"?n=document.createTextNode(n):n.parentNode&&n.parentNode.removeChild(n),r?t.insertBefore(this.previousSibling,n):t.replaceChild(n,this)}}}));function kl(){return location.protocol==="file:"?Ge(`${new URL("search.js",zr.base)}`).pipe(m(()=>__index),se(()=>Re),J(1)):qe(new URL("search.json",zr.base))}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var et=Oo(),tr=ri(),Ft=ii(tr),La=ti(),$e=fi(),$n=Jt("(min-width: 60em)"),Ma=Jt("(min-width: 76.25em)"),_a=ai(),zr=Ce(),ka=be(".md-search")?kl():Re,Pn=new $;ha({alert$:Pn});da({document$:et});var Rn=new $,Aa=jt(zr.base);B("navigation.instant")&&xa({sitemap$:Aa,location$:tr,viewport$:$e,progress$:Rn}).subscribe(et);var Sa;((Sa=zr.version)==null?void 0:Sa.provider)==="mike"&&wa({document$:et});P(tr,Ft).pipe(dt(125)).subscribe(()=>{wn("drawer",!1),wn("search",!1)});La.pipe(S(({mode:e,meta:t})=>e==="global"&&!t)).subscribe(e=>{switch(e.type){case",":case"p":let t=document.querySelector("link[rel=prev]");t instanceof HTMLLinkElement&&Xe(t);break;case".":case"n":let r=document.querySelector("link[rel=next]");r instanceof HTMLLinkElement&&Xe(r);break;case"/":let n=document.querySelector("[data-md-component=search] button");n instanceof HTMLButtonElement&&n.click();break;case"Enter":let o=nt();o instanceof HTMLLabelElement&&o.click()}});Ea({viewport$:$e,document$:et});Ta({document$:et,tablet$:$n});Oa({document$:et});var st=Ji(Ze("header"),{viewport$:$e}),er=et.pipe(m(()=>Ze("main")),x(e=>Zi(e,{viewport$:$e,header$:st})),J(1)),Al=P(...ve("consent").map(e=>di(e,{target$:Ft})),...ve("dialog").map(e=>Gi(e,{alert$:Pn})),...ve("palette").map(e=>ea(e)),...ve("progress").map(e=>ta(e,{progress$:Rn})),...ve("search").map(e=>na(e,{index$:ka})),...ve("source").map(e=>la(e))),Cl=I(()=>P(...ve("announce").map(e=>mi(e)),...ve("content").map(e=>Yi(e,{sitemap$:Aa,viewport$:$e,target$:Ft,print$:_a})),...ve("content").map(e=>B("search.highlight")?ia(e,{index$:ka,location$:tr}):w),...ve("header").map(e=>Qi(e,{viewport$:$e,header$:st,main$:er})),...ve("header-title").map(e=>Xi(e,{viewport$:$e,header$:st})),...ve("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?gn(Ma,()=>An(e,{viewport$:$e,header$:st,main$:er})):gn($n,()=>An(e,{viewport$:$e,header$:st,main$:er}))),...ve("tabs").map(e=>pa(e,{viewport$:$e,header$:st})),...ve("toc").map(e=>ua(e,{viewport$:$e,header$:st,main$:er,target$:Ft})),...ve("top").map(e=>fa(e,{viewport$:$e,header$:st,main$:er,target$:Ft})))),Ca=et.pipe(x(()=>Cl),ht(Al),J(1));Ca.subscribe();window.document$=et;window.location$=tr;window.target$=Ft;window.keyboard$=La;window.viewport$=$e;window.tablet$=$n;window.screen$=Ma;window.print$=_a;window.alert$=Pn;window.progress$=Rn;window.component$=Ca;})(); diff --git a/dist/assets/javascripts/bundle.d7f30b55.min.js b/dist/assets/javascripts/bundle.d7f30b55.min.js new file mode 100644 index 00000000..a77dee7f --- /dev/null +++ b/dist/assets/javascripts/bundle.d7f30b55.min.js @@ -0,0 +1,10 @@ +"use strict";(()=>{var Nc=Object.create;var Rn=Object.defineProperty,Dc=Object.defineProperties,Wc=Object.getOwnPropertyDescriptor,Vc=Object.getOwnPropertyDescriptors,zc=Object.getOwnPropertyNames,zr=Object.getOwnPropertySymbols,qc=Object.getPrototypeOf,jn=Object.prototype.hasOwnProperty,zo=Object.prototype.propertyIsEnumerable;var Vo=(e,t,r)=>t in e?Rn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t)=>{for(var r in t||(t={}))jn.call(t,r)&&Vo(e,r,t[r]);if(zr)for(var r of zr(t))zo.call(t,r)&&Vo(e,r,t[r]);return e},He=(e,t)=>Dc(e,Vc(t));var _r=(e,t)=>{var r={};for(var n in e)jn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&zr)for(var n of zr(e))t.indexOf(n)<0&&zo.call(e,n)&&(r[n]=e[n]);return r};var Fn=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Kc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of zc(t))!jn.call(e,o)&&o!==r&&Rn(e,o,{get:()=>t[o],enumerable:!(n=Wc(t,o))||n.enumerable});return e};var xr=(e,t,r)=>(r=e!=null?Nc(qc(e)):{},Kc(t||!e||!e.__esModule?Rn(r,"default",{value:e,enumerable:!0}):r,e));var ut=(e,t,r)=>new Promise((n,o)=>{var i=c=>{try{s(r.next(c))}catch(l){o(l)}},a=c=>{try{s(r.throw(c))}catch(l){o(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,a);s((r=r.apply(e,t)).next())});var Ko=Fn((Un,qo)=>{(function(e,t){typeof Un=="object"&&typeof qo!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(Un,(function(){"use strict";function e(r){var n=!0,o=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(g){return!!(g&&g!==document&&g.nodeName!=="HTML"&&g.nodeName!=="BODY"&&"classList"in g&&"contains"in g.classList)}function c(g){var ee=g.type,ue=g.tagName;return!!(ue==="INPUT"&&a[ee]&&!g.readOnly||ue==="TEXTAREA"&&!g.readOnly||g.isContentEditable)}function l(g){g.classList.contains("focus-visible")||(g.classList.add("focus-visible"),g.setAttribute("data-focus-visible-added",""))}function u(g){g.hasAttribute("data-focus-visible-added")&&(g.classList.remove("focus-visible"),g.removeAttribute("data-focus-visible-added"))}function f(g){g.metaKey||g.altKey||g.ctrlKey||(s(r.activeElement)&&l(r.activeElement),n=!0)}function p(g){n=!1}function m(g){s(g.target)&&(n||c(g.target))&&l(g.target)}function h(g){s(g.target)&&(g.target.classList.contains("focus-visible")||g.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(g.target))}function v(g){document.visibilityState==="hidden"&&(o&&(n=!0),_())}function _(){document.addEventListener("mousemove",x),document.addEventListener("mousedown",x),document.addEventListener("mouseup",x),document.addEventListener("pointermove",x),document.addEventListener("pointerdown",x),document.addEventListener("pointerup",x),document.addEventListener("touchmove",x),document.addEventListener("touchstart",x),document.addEventListener("touchend",x)}function S(){document.removeEventListener("mousemove",x),document.removeEventListener("mousedown",x),document.removeEventListener("mouseup",x),document.removeEventListener("pointermove",x),document.removeEventListener("pointerdown",x),document.removeEventListener("pointerup",x),document.removeEventListener("touchmove",x),document.removeEventListener("touchstart",x),document.removeEventListener("touchend",x)}function x(g){g.target.nodeName&&g.target.nodeName.toLowerCase()==="html"||(n=!1,S())}document.addEventListener("keydown",f,!0),document.addEventListener("mousedown",p,!0),document.addEventListener("pointerdown",p,!0),document.addEventListener("touchstart",p,!0),document.addEventListener("visibilitychange",v,!0),_(),r.addEventListener("focus",m,!0),r.addEventListener("blur",h,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)}))});var ko=Fn((lE,Ms)=>{"use strict";var fp=/["'&<>]/;Ms.exports=mp;function mp(e){var t=""+e,r=fp.exec(t);if(!r)return t;var n,o="",i=0,a=0;for(i=r.index;i{(function(t,r){typeof Ur=="object"&&typeof Co=="object"?Co.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Ur=="object"?Ur.ClipboardJS=r():t.ClipboardJS=r()})(Ur,function(){return(function(){var e={686:(function(n,o,i){"use strict";i.d(o,{default:function(){return gr}});var a=i(279),s=i.n(a),c=i(370),l=i.n(c),u=i(817),f=i.n(u);function p(G){try{return document.execCommand(G)}catch(H){return!1}}var m=function(H){var C=f()(H);return p("cut"),C},h=m;function v(G){var H=document.documentElement.getAttribute("dir")==="rtl",C=document.createElement("textarea");C.style.fontSize="12pt",C.style.border="0",C.style.padding="0",C.style.margin="0",C.style.position="absolute",C.style[H?"right":"left"]="-9999px";var V=window.pageYOffset||document.documentElement.scrollTop;return C.style.top="".concat(V,"px"),C.setAttribute("readonly",""),C.value=G,C}var _=function(H,C){var V=v(H);C.container.appendChild(V);var z=f()(V);return p("copy"),V.remove(),z},S=function(H){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},V="";return typeof H=="string"?V=_(H,C):H instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(H==null?void 0:H.type)?V=_(H.value,C):(V=f()(H),p("copy")),V},x=S;function g(G){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(C){return typeof C}:g=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},g(G)}var ee=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=H.action,V=C===void 0?"copy":C,z=H.container,Z=H.target,We=H.text;if(V!=="copy"&&V!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Z!==void 0)if(Z&&g(Z)==="object"&&Z.nodeType===1){if(V==="copy"&&Z.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(V==="cut"&&(Z.hasAttribute("readonly")||Z.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(We)return x(We,{container:z});if(Z)return V==="cut"?h(Z):x(Z,{container:z})},ue=ee;function L(G){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?L=function(C){return typeof C}:L=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},L(G)}function M(G,H){if(!(G instanceof H))throw new TypeError("Cannot call a class as a function")}function W(G,H){for(var C=0;C0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof z.action=="function"?z.action:this.defaultAction,this.target=typeof z.target=="function"?z.target:this.defaultTarget,this.text=typeof z.text=="function"?z.text:this.defaultText,this.container=L(z.container)==="object"?z.container:document.body}},{key:"listenClick",value:function(z){var Z=this;this.listener=l()(z,"click",function(We){return Z.onClick(We)})}},{key:"onClick",value:function(z){var Z=z.delegateTarget||z.currentTarget,We=this.action(Z)||"copy",Xt=ue({action:We,container:this.container,target:this.target(Z),text:this.text(Z)});this.emit(Xt?"success":"error",{action:We,text:Xt,trigger:Z,clearSelection:function(){Z&&Z.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(z){return Jt("action",z)}},{key:"defaultTarget",value:function(z){var Z=Jt("target",z);if(Z)return document.querySelector(Z)}},{key:"defaultText",value:function(z){return Jt("text",z)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(z){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return x(z,Z)}},{key:"cut",value:function(z){return h(z)}},{key:"isSupported",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Z=typeof z=="string"?[z]:z,We=!!document.queryCommandSupported;return Z.forEach(function(Xt){We=We&&!!document.queryCommandSupported(Xt)}),We}}]),C})(s()),gr=Ht}),828:(function(n){var o=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(s,c){for(;s&&s.nodeType!==o;){if(typeof s.matches=="function"&&s.matches(c))return s;s=s.parentNode}}n.exports=a}),438:(function(n,o,i){var a=i(828);function s(u,f,p,m,h){var v=l.apply(this,arguments);return u.addEventListener(p,v,h),{destroy:function(){u.removeEventListener(p,v,h)}}}function c(u,f,p,m,h){return typeof u.addEventListener=="function"?s.apply(null,arguments):typeof p=="function"?s.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(v){return s(v,f,p,m,h)}))}function l(u,f,p,m){return function(h){h.delegateTarget=a(h.target,f),h.delegateTarget&&m.call(u,h)}}n.exports=c}),879:(function(n,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||o.node(i[0]))},o.string=function(i){return typeof i=="string"||i instanceof String},o.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}}),370:(function(n,o,i){var a=i(879),s=i(438);function c(p,m,h){if(!p&&!m&&!h)throw new Error("Missing required arguments");if(!a.string(m))throw new TypeError("Second argument must be a String");if(!a.fn(h))throw new TypeError("Third argument must be a Function");if(a.node(p))return l(p,m,h);if(a.nodeList(p))return u(p,m,h);if(a.string(p))return f(p,m,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function l(p,m,h){return p.addEventListener(m,h),{destroy:function(){p.removeEventListener(m,h)}}}function u(p,m,h){return Array.prototype.forEach.call(p,function(v){v.addEventListener(m,h)}),{destroy:function(){Array.prototype.forEach.call(p,function(v){v.removeEventListener(m,h)})}}}function f(p,m,h){return s(document.body,p,m,h)}n.exports=c}),817:(function(n){function o(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var s=i.hasAttribute("readonly");s||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var c=window.getSelection(),l=document.createRange();l.selectNodeContents(i),c.removeAllRanges(),c.addRange(l),a=c.toString()}return a}n.exports=o}),279:(function(n){function o(){}o.prototype={on:function(i,a,s){var c=this.e||(this.e={});return(c[i]||(c[i]=[])).push({fn:a,ctx:s}),this},once:function(i,a,s){var c=this;function l(){c.off(i,l),a.apply(s,arguments)}return l._=a,this.on(i,l,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),c=0,l=s.length;for(c;c0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function te(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function ae(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n1||c(m,v)})},h&&(o[m]=h(o[m])))}function c(m,h){try{l(n[m](h))}catch(v){p(i[0][3],v)}}function l(m){m.value instanceof $t?Promise.resolve(m.value.v).then(u,f):p(i[0][2],m)}function u(m){c("next",m)}function f(m){c("throw",m)}function p(m,h){m(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Yo(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof $e=="function"?$e(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(s,c){a=e[i](a),o(s,c,a.done,a.value)})}}function o(i,a,s,c){Promise.resolve(c).then(function(l){i({value:l,done:s})},a)}}function U(e){return typeof e=="function"}function Zt(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Kr=Zt(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription: +`+r.map(function(n,o){return o+1+") "+n.toString()}).join(` + `):"",this.name="UnsubscriptionError",this.errors=r}});function pt(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var rt=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=$e(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(U(u))try{u()}catch(v){i=v instanceof Kr?v.errors:[v]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=$e(f),m=p.next();!m.done;m=p.next()){var h=m.value;try{Jo(h)}catch(v){i=i!=null?i:[],v instanceof Kr?i=ae(ae([],te(i)),te(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(i)throw new Kr(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Jo(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&pt(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&pt(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})();var Dn=rt.EMPTY;function Br(e){return e instanceof rt||e&&"closed"in e&&U(e.remove)&&U(e.add)&&U(e.unsubscribe)}function Jo(e){U(e)?e():e.unsubscribe()}var Je={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Qt={setTimeout:function(e,t){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?Dn:(this.currentObservers=null,s.push(r),new rt(function(){n.currentObservers=null,pt(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new F;return r.source=this,r},t.create=function(r,n){return new oi(r,n)},t})(F);var oi=(function(e){pe(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Dn},t})(I);var Kn=(function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t})(I);var Er={now:function(){return(Er.delegate||Date).now()},delegate:void 0};var Tr=(function(e){pe(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Er);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,c=n._windowTime;o||(i.push(r),!a&&i.push(s.now()+c)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,a=o._buffer,s=a.slice(),c=0;c0?e.prototype.schedule.call(this,r,n):(this.delay=n,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,n){return n>0||this.closed?e.prototype.execute.call(this,r,n):this._execute(r,n)},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.flush(this),0)},t})(nr);var si=(function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(or);var Yn=new si(ai);var ci=(function(e){pe(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=rr.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var a=r.actions;n!=null&&n===r._scheduled&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==n&&(rr.cancelAnimationFrame(n),r._scheduled=void 0)},t})(nr);var li=(function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n;r?n=r.id:(n=this._scheduled,this._scheduled=void 0);var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t})(or);var je=new li(ci);var w=new F(function(e){return e.complete()});function Jr(e){return e&&U(e.schedule)}function Jn(e){return e[e.length-1]}function xt(e){return U(Jn(e))?e.pop():void 0}function Ke(e){return Jr(Jn(e))?e.pop():void 0}function Xr(e,t){return typeof Jn(e)=="number"?e.pop():t}var ir=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function Zr(e){return U(e==null?void 0:e.then)}function Qr(e){return U(e[tr])}function en(e){return Symbol.asyncIterator&&U(e==null?void 0:e[Symbol.asyncIterator])}function tn(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function tl(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var rn=tl();function nn(e){return U(e==null?void 0:e[rn])}function on(e){return Go(this,arguments,function(){var r,n,o,i;return qr(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,$t(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,$t(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,$t(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function an(e){return U(e==null?void 0:e.getReader)}function K(e){if(e instanceof F)return e;if(e!=null){if(Qr(e))return rl(e);if(ir(e))return nl(e);if(Zr(e))return ol(e);if(en(e))return ui(e);if(nn(e))return il(e);if(an(e))return al(e)}throw tn(e)}function rl(e){return new F(function(t){var r=e[tr]();if(U(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function nl(e){return new F(function(t){for(var r=0;r=2;return function(n){return n.pipe(e?O(function(o,i){return e(o,i,n)}):Le,Me(1),r?ot(t):Li(function(){return new ar}))}}function to(e){return e<=0?function(){return w}:T(function(t,r){var n=[];t.subscribe(E(r,function(o){n.push(o),e=2,!0))}function xe(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new I}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,c=s===void 0?!0:s;return function(l){var u,f,p,m=0,h=!1,v=!1,_=function(){f==null||f.unsubscribe(),f=void 0},S=function(){_(),u=p=void 0,h=v=!1},x=function(){var g=u;S(),g==null||g.unsubscribe()};return T(function(g,ee){m++,!v&&!h&&_();var ue=p=p!=null?p:r();ee.add(function(){m--,m===0&&!v&&!h&&(f=ro(x,c))}),ue.subscribe(ee),!u&&m>0&&(u=new ft({next:function(L){return ue.next(L)},error:function(L){v=!0,_(),f=ro(S,o,L),ue.error(L)},complete:function(){h=!0,_(),f=ro(S,a),ue.complete()}}),K(g).subscribe(u))})(l)}}function ro(e,t){for(var r=[],n=2;ne.next(document)),e}function $(e,t=document){return Array.from(t.querySelectorAll(e))}function Y(e,t=document){let r=we(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function we(e,t=document){return t.querySelector(e)||void 0}function Et(){var e,t,r,n;return(n=(r=(t=(e=document.activeElement)==null?void 0:e.shadowRoot)==null?void 0:t.activeElement)!=null?r:document.activeElement)!=null?n:void 0}var Tl=R(b(document.body,"focusin"),b(document.body,"focusout")).pipe(Ge(1),J(void 0),d(()=>Et()||document.body),re(1));function cr(e){return Tl.pipe(d(t=>e.contains(t)),ce())}function Dt(e,t){let{matches:r}=matchMedia("(hover)");return j(()=>(r?R(b(e,"mouseenter").pipe(d(()=>!0)),b(e,"mouseleave").pipe(d(()=>!1))):R(b(e,"touchstart").pipe(d(()=>!0)),b(e,"touchend").pipe(d(()=>!1)),b(e,"touchcancel").pipe(d(()=>!1)))).pipe(t?Or(o=>Ve(+!o*t)):Le,J(!0,e.matches(":hover"))))}function Ci(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)Ci(e,r)}function A(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="undefined"&&(typeof t[o]!="boolean"?n.setAttribute(o,t[o]):n.setAttribute(o,""));for(let o of r)Ci(n,o);return n}function Hi(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function it(e){let t=A("script",{src:e});return j(()=>(document.head.appendChild(t),R(b(t,"load"),b(t,"error").pipe(y(()=>cn(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(d(()=>{}),q(()=>document.head.removeChild(t)),Me(1))))}function $i(e){let t=A("link",{rel:"stylesheet",href:e});return document.head.appendChild(t),R(b(t,"load"),b(t,"error").pipe(y(()=>cn(()=>new ReferenceError(`Invalid styles: ${e}`))))).pipe(d(()=>{}),Me(1))}var Pi=new I,Sl=j(()=>typeof ResizeObserver=="undefined"?it("https://unpkg.com/resize-observer-polyfill"):D(void 0)).pipe(d(()=>new ResizeObserver(e=>e.forEach(t=>Pi.next(t)))),y(e=>R(Be,D(e)).pipe(q(()=>e.disconnect()))),re(1));function Ae(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Re(e){let t=e;for(;t.clientWidth===0&&t.parentElement;)t=t.parentElement;return Sl.pipe(P(r=>r.observe(t)),y(r=>Pi.pipe(O(n=>n.target===t),q(()=>r.unobserve(t)))),d(()=>Ae(e)),J(Ae(e)))}function Ar(e){return{width:e.scrollWidth,height:e.scrollHeight}}function Ii(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}function Ri(e){let t=[],r=e.parentElement;for(;r;)(e.clientWidth>r.clientWidth||e.clientHeight>r.clientHeight)&&t.push(r),r=(e=r).parentElement;return t.length===0&&t.push(document.documentElement),t}function Tt(e){return{x:e.offsetLeft,y:e.offsetTop}}function ji(e){let t=e.getBoundingClientRect();return{x:t.x+window.scrollX,y:t.y+window.scrollY}}function Fi(e){return R(b(window,"load"),b(window,"resize")).pipe(Xe(0,je),d(()=>Tt(e)),J(Tt(e)))}function dn(e){return{x:e.scrollLeft,y:e.scrollTop}}function Wt(e){return R(b(e,"scroll"),b(window,"scroll"),b(window,"resize")).pipe(Xe(0,je),d(()=>dn(e)),J(dn(e)))}var Ui=new I,Ol=j(()=>D(new IntersectionObserver(e=>{for(let t of e)Ui.next(t)},{threshold:0}))).pipe(y(e=>R(Be,D(e)).pipe(q(()=>e.disconnect()))),re(1));function St(e){return Ol.pipe(P(t=>t.observe(e)),y(t=>Ui.pipe(O(({target:r})=>r===e),q(()=>t.unobserve(e)),d(({isIntersecting:r})=>r))))}var Ll=Object.create,ba=Object.defineProperty,Ml=Object.getOwnPropertyDescriptor,kl=Object.getOwnPropertyNames,Al=Object.getPrototypeOf,Cl=Object.prototype.hasOwnProperty,Hl=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$l=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of kl(t))!Cl.call(e,o)&&o!==r&&ba(e,o,{get:()=>t[o],enumerable:!(n=Ml(t,o))||n.enumerable});return e},Pl=(e,t,r)=>(r=e!=null?Ll(Al(e)):{},$l(t||!e||!e.__esModule?ba(r,"default",{value:e,enumerable:!0}):r,e)),Il=Hl((e,t)=>{var r="Expected a function",n=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global=="object"&&global&&global.Object===Object&&global,f=typeof self=="object"&&self&&self.Object===Object&&self,p=u||f||Function("return this")(),m=Object.prototype,h=m.toString,v=Math.max,_=Math.min,S=function(){return p.Date.now()};function x(M,W,ie){var ne,de,Yt,yt,De,lt,tt=0,Jt=!1,Ht=!1,gr=!0;if(typeof M!="function")throw new TypeError(r);W=L(W)||0,g(ie)&&(Jt=!!ie.leading,Ht="maxWait"in ie,Yt=Ht?v(L(ie.maxWait)||0,W):Yt,gr="trailing"in ie?!!ie.trailing:gr);function G(Se){var _t=ne,yr=de;return ne=de=void 0,tt=Se,yt=M.apply(yr,_t),yt}function H(Se){return tt=Se,De=setTimeout(z,W),Jt?G(Se):yt}function C(Se){var _t=Se-lt,yr=Se-tt,Wo=W-_t;return Ht?_(Wo,Yt-yr):Wo}function V(Se){var _t=Se-lt,yr=Se-tt;return lt===void 0||_t>=W||_t<0||Ht&&yr>=Yt}function z(){var Se=S();if(V(Se))return Z(Se);De=setTimeout(z,C(Se))}function Z(Se){return De=void 0,gr&&ne?G(Se):(ne=de=void 0,yt)}function We(){De!==void 0&&clearTimeout(De),tt=0,ne=lt=de=De=void 0}function Xt(){return De===void 0?yt:Z(S())}function Vr(){var Se=S(),_t=V(Se);if(ne=arguments,de=this,lt=Se,_t){if(De===void 0)return H(lt);if(Ht)return De=setTimeout(z,W),G(lt)}return De===void 0&&(De=setTimeout(z,W)),yt}return Vr.cancel=We,Vr.flush=Xt,Vr}function g(M){var W=typeof M;return!!M&&(W=="object"||W=="function")}function ee(M){return!!M&&typeof M=="object"}function ue(M){return typeof M=="symbol"||ee(M)&&h.call(M)==o}function L(M){if(typeof M=="number")return M;if(ue(M))return n;if(g(M)){var W=typeof M.valueOf=="function"?M.valueOf():M;M=g(W)?W+"":W}if(typeof M!="string")return M===0?M:+M;M=M.replace(i,"");var ie=s.test(M);return ie||c.test(M)?l(M.slice(2),ie?2:8):a.test(M)?n:+M}t.exports=x}),Ln,B,ga,ya,Lt,Ni,_a,xa,oo,bn,Cr,wa,ho,co,lo,Rl,xn={},wn=[],jl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Rr=Array.isArray;function dt(e,t){for(var r in t)e[r]=t[r];return e}function vo(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function kt(e,t,r){var n,o,i,a={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?Ln.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return gn(e,a,n,o,null)}function gn(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o!=null?o:++ga,__i:-1,__u:0};return o==null&&B.vnode!=null&&B.vnode(i),i}function ze(e){return e.children}function ct(e,t){this.props=e,this.context=t}function ur(e,t){if(t==null)return e.__?ur(e.__,e.__i+1):null;for(var r;tt&&Lt.sort(xa),e=Lt.shift(),t=Lt.length,Fl(e)}finally{Lt.length=En.__r=0}}function Ta(e,t,r,n,o,i,a,s,c,l,u){var f,p,m,h,v,_,S,x=n&&n.__k||wn,g=t.length;for(c=Ul(r,t,x,c,g),f=0;f0?a=e.__k[i]=gn(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[i]=a,c=i+p,a.__=e,a.__b=e.__b+1,s=null,(l=a.__i=Nl(a,r,c,f))!=-1&&(f--,(s=r[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(o>u?p--:oc?p--:p++,a.__u|=4))):e.__k[i]=null;if(f)for(i=0;i(u?1:0)){for(o=r-1,i=r+1;o>=0||i=0?o--:i++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return a}return-1}function Wi(e,t,r){t[0]=="-"?e.setProperty(t,r!=null?r:""):e[t]=r==null?"":typeof r!="number"||jl.test(t)?r:r+"px"}function hn(e,t,r,n,o){var i,a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Wi(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||Wi(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(wa,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r[Cr]=n[Cr]:(r[Cr]=ho,e.addEventListener(t,i?lo:co,i)):e.removeEventListener(t,i?lo:co,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r!=null?r:"";break e}catch(s){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Vi(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t[bn]==null)t[bn]=ho++;else if(t[bn]0?e:Rr(e)?e.map(Ma):e.constructor!==void 0?null:dt({},e)}function Dl(e,t,r,n,o,i,a,s,c){var l,u,f,p,m,h,v,_=r.props||xn,S=t.props,x=t.type;if(x=="svg"?o="http://www.w3.org/2000/svg":x=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l=r.__.length&&r.__.push({}),r.__[e]}function Tn(e){return Ir=1,zl($a,e)}function zl(e,t,r){var n=yo(Pr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):$a(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,s);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=ge,!ge.__f)){var o=function(s,c,l){if(!n.__c.__H)return!0;var u=!1,f=n.__c.props!==s;if(n.__c.__H.__.some(function(m){if(m.__N){u=!0;var h=m.__[0];m.__=m.__N,m.__N=void 0,h!==m.__[0]&&(f=!0)}}),i){var p=i.call(this,s,c,l);return u?p||f:p}return!u||f};ge.__f=!0;var i=ge.shouldComponentUpdate,a=ge.componentWillUpdate;ge.componentWillUpdate=function(s,c,l){if(this.__e){var u=i;i=void 0,o(s,c,l),i=u}a&&a.call(this,s,c,l)},ge.shouldComponentUpdate=o}return n.__N||n.__}function ht(e,t){var r=yo(Pr++,3);!Ee.__s&&Ha(r.__H,t)&&(r.__=e,r.u=t,ge.__H.__h.push(r))}function zt(e){return Ir=5,fr(function(){return{current:e}},[])}function fr(e,t){var r=yo(Pr++,7);return Ha(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function ql(e,t){return Ir=8,fr(function(){return e},t)}function Xi(){for(var e;e=Aa.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(uo),t.__h.some(Ca),t.__h=[]}catch(r){t.__h=[],Ee.__e(r,e.__v)}}}Ee.__b=function(e){ge=null,qi&&qi(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ji&&Ji(e,t)},Ee.__r=function(e){Ki&&Ki(e),Pr=0;var t=(ge=e.__c).__H;t&&(io===ge?(t.__h=[],ge.__h=[],t.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.length&&Xi(),Pr=0)),io=ge},Ee.diffed=function(e){Bi&&Bi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Aa.push(t)!==1&&zi===Ee.requestAnimationFrame||((zi=Ee.requestAnimationFrame)||Kl)(Xi)),t.__H.__.some(function(r){r.u&&(r.__H=r.u,r.u=void 0)})),io=ge=null},Ee.__c=function(e,t){t.some(function(r){try{r.__h.some(uo),r.__h=r.__h.filter(function(n){return!n.__||Ca(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Ee.__e(n,r.__v)}}),Gi&&Gi(e,t)},Ee.unmount=function(e){Yi&&Yi(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(n){try{uo(n)}catch(o){t=o}}),r.__H=void 0,t&&Ee.__e(t,r.__v))};var Zi=typeof requestAnimationFrame=="function";function Kl(e){var t,r=function(){clearTimeout(n),Zi&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);Zi&&(t=requestAnimationFrame(r))}function uo(e){var t=ge,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ge=t}function Ca(e){var t=ge;e.__c=e.__(),ge=t}function Ha(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function $a(e,t){return typeof t=="function"?t(e):t}function Bl(e,t){for(var r in t)e[r]=t[r];return e}function Qi(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function ea(e,t){this.props=e,this.context=t}(ea.prototype=new ct).isPureReactComponent=!0,ea.prototype.shouldComponentUpdate=function(e,t){return Qi(this.props,e)||Qi(this.state,t)};var ta=B.__b;B.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ta&&ta(e)};var kw=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Gl=B.__e;B.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k||[]),o.__c(e,t)}Gl(e,t,r,n)};var ra=B.unmount;function Pa(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Bl({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Pa(n,t,r)})),e}function Ia(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Ia(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function ao(){this.__u=0,this.o=null,this.__b=null}function Ra(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function vn(){this.i=null,this.l=null}B.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ra&&ra(e)},(ao.prototype=new ct).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=Ra(n.__v),i=!1,a=function(){i||n.__z||(i=!0,r.__R=null,o?o(c):c())};r.__R=a;var s=r.__P;r.__P=null;var c=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=Ia(l,l.__c.__P,l.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.o.pop();)u.__P=s,u.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},ao.prototype.componentWillUnmount=function(){this.o=[]},ao.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Pa(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&kt(ze,null,e.fallback);return o&&(o.__u&=-33),[kt(ze,null,t.__a?null:e.children),o]};var na=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]Object.freeze({get current(){return t.current}}),[])}var ru=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function nu(e,...t){var r;(r=e==null?void 0:e.addEventListener)==null||r.call(e,...t)}function ou(e,...t){var r;(r=e==null?void 0:e.removeEventListener)==null||r.call(e,...t)}var iu=(e,t)=>Object.hasOwn(e,t),au=()=>!0,su=()=>!1;function cu(e=!1){let t=zt(e),r=ql(()=>t.current,[]);return ht(()=>(t.current=!0,()=>{t.current=!1}),[]),r}function lu(e,...t){let r=cu(),n=Fa(t[1]),o=fr(()=>function(...i){r()&&(typeof n.current=="function"?n.current.apply(this,i):typeof n.current.handleEvent=="function"&&n.current.handleEvent.apply(this,i))},[]);ht(()=>{let i=uu(e)?e.current:e;if(!i)return;let a=t.slice(2);return nu(i,t[0],o,...a),()=>{ou(i,t[0],o,...a)}},[e,t[0]])}function uu(e){return e!==null&&typeof e=="object"&&iu(e,"current")}var pu=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:e?au:su,fu=ru?globalThis:null;function Ua(e,t,r=[],n={}){let{event:o="keydown",target:i=fu,eventOptions:a}=n,s=Fa(t),c=fr(()=>{let l=pu(e);return function(u){l(u)&&s.current.call(this,u)}},r);lu(i,o,c,a)}function Na(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t1)Mt--;else{for(var e,t=!1;Hr!==void 0;){var r=Hr;for(Hr=void 0,po++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Va(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(po=0,Mt--,t)throw e}}function hu(e){if(Mt>0)return e();Mt++;try{return e()}finally{Mn()}}var le=void 0;function Da(e){var t=le;le=void 0;try{return e()}finally{le=t}}var Hr=void 0,Mt=0,po=0,Sn=0;function Wa(e){if(le!==void 0){var t=e.n;if(t===void 0||t.t!==le)return t={i:0,S:e,p:le.s,n:void 0,t:le,e:void 0,x:void 0,r:t},le.s!==void 0&&(le.s.n=t),le.s=t,e.n=t,32&le.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=le.s,t.n=void 0,le.s.n=t,le.s=t),t}}function Ce(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Ce.prototype.brand=du;Ce.prototype.h=function(){return!0};Ce.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:Da(function(){var n;(n=t.W)==null||n.call(t)}))};Ce.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,n=e.x;r!==void 0&&(r.x=n,e.e=void 0),n!==void 0&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&Da(function(){var o;(o=t.Z)==null||o.call(t)}))}};Ce.prototype.subscribe=function(e){var t=this;return Kt(function(){var r=t.value,n=le;le=void 0;try{e(r)}finally{le=n}},{name:"sub"})};Ce.prototype.valueOf=function(){return this.value};Ce.prototype.toString=function(){return this.value+""};Ce.prototype.toJSON=function(){return this.value};Ce.prototype.peek=function(){var e=le;le=void 0;try{return this.value}finally{le=e}};Object.defineProperty(Ce.prototype,"value",{get:function(){var e=Wa(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(po>100)throw new Error("Cycle detected");this.v=e,this.i++,Sn++,Mt++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Mn()}}}});function At(e,t){return new Ce(e,t)}function Va(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function za(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function qa(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Bt(e,t){Ce.call(this,void 0),this.x=e,this.s=void 0,this.g=Sn-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Bt.prototype=new Ce;Bt.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Sn))return!0;if(this.g=Sn,this.f|=1,this.i>0&&!Va(this))return this.f&=-2,!0;var e=le;try{za(this),le=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return le=e,qa(this),this.f&=-2,!0};Bt.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Ce.prototype.S.call(this,e)};Bt.prototype.U=function(e){if(this.t!==void 0&&(Ce.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Bt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Bt.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Wa(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function ca(e,t){return new Bt(e,t)}function Ka(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Mt++;var r=le;le=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,_o(e),n}finally{le=r,Mn()}}}function _o(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Ka(e)}function vu(e){if(le!==this)throw new Error("Out-of-order effect");qa(this),le=e,this.f&=-2,8&this.f&&_o(this),Mn()}function mr(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}mr.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};mr.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Ka(this),za(this),Mt++;var e=le;return le=this,vu.bind(this,e)};mr.prototype.N=function(){2&this.f||(this.f|=2,this.o=Hr,Hr=this)};mr.prototype.d=function(){this.f|=8,1&this.f||_o(this)};mr.prototype.dispose=function(){this.d()};function Kt(e,t){var r=new mr(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}var Ba,xo,so,Ga=[];Kt(function(){Ba=this.N})();function dr(e,t){B[e]=t.bind(null,B[e]||function(){})}function On(e){so&&so(),so=e&&e.S()}function Ya(e){var t=this,r=e.data,n=gu(r);n.value=r;var o=fr(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=ca(function(){var m=n.value.value;return m===0?0:m===!0?"":m||""}),u=ca(function(){return!Array.isArray(l.value)&&!ya(l.value)}),f=Kt(function(){if(this.N=Ja,u.value){var m=l.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=m)}}),p=t.__$u.d;return t.__$u.d=function(){f(),p.call(this)},[u,l]},[]),i=o[0],a=o[1];return i.value?a.peek():a.value}Ya.displayName="ReactiveTextNode";Object.defineProperties(Ce.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Ya},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});dr("__b",function(e,t){if(typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof Ce&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)});dr("__r",function(e,t){if(typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==ze){On();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=(function(o){var i;return Kt(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i})())),xo=n,On(r)}e(t)});dr("__e",function(e,t,r,n){typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),On(),xo=void 0,e(t,r,n)});dr("diffed",function(e,t){typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),On(),xo=void 0;var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var a in i){var s=i[a];s!==void 0&&!(a in n)&&(s.d(),i[a]=void 0)}else i={},r.U=i;for(var c in n){var l=i[c],u=n[c];l===void 0?(l=bu(r,c,u,o),i[c]=l):l.o(u,o)}}}e(t)});function bu(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=At(r);return{o:function(a,s){i.value=a,n=s},d:Kt(function(){this.N=Ja;var a=i.value.value;n[t]!==a&&(n[t]=a,o?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}dr("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var o in n){var i=n[o];i&&i.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});dr("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ct.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var i=2&this.__$f;if(!(n||i||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};function gu(e,t){return Tn(function(){return At(e,t)})[0]}var yu=function(e){queueMicrotask(function(){queueMicrotask(e)})};function _u(){hu(function(){for(var e;e=Ga.shift();)Ba.call(e)})}function Ja(){Ga.push(this)===1&&(B.requestAnimationFrame||yu)(_u)}var fo=[0];for(let e=0;e<32;e++)fo.push(fo[e]|1<>>5]>>>e&1}set(e){this.data[e>>>5]|=1<<(e&31)}forEach(e){let t=this.size&31;for(let r=0;r{var r;return(r=t.tags)==null?void 0:r.length})&&(matchMedia("(max-width: 768px)").matches||Xa())}function Vt(){Qe.value=He(k({},Qe.value),{hideSearch:!Qe.value.hideSearch})}function Xa(){Qe.value=He(k({},Qe.value),{hideFilters:!Qe.value.hideFilters})}function yn(){return Qe.value.selectedItem}function mo(e){Qe.value=He(k({},Qe.value),{selectedItem:e})}function Eu(){var e,t;return(t=(e=pr.value)==null?void 0:e.items)!=null?t:[]}function kn(){return typeof Oe.value.input=="string"?Oe.value.input:""}function Za(e){let t=Qa();e.length&&!t.length?Oe.value=He(k({},Oe.value),{page:void 0,input:e}):!e.length&&t.length?Oe.value=He(k({},Oe.value),{page:void 0,input:{type:"operator",data:{operator:"not",operands:[]}}}):Oe.value=He(k({},Oe.value),{page:void 0,input:e})}function Tu(){typeof st.value.pagination.next<"u"&&(Oe.value=He(k({},Oe.value),{page:st.value.pagination.next}))}function Su(e){let t=Oe.value.filter.input;if("type"in t&&t.type==="operator"){for(let r of t.data.operands)if("type"in r&&r.type==="value"&&typeof r.data.value=="string"&&r.data.value===e)return!0}return!1}function Qa(){let e=Oe.value.filter.input,t=[];if("type"in e&&e.type==="operator")for(let r of e.data.operands)"type"in r&&r.type==="value"&&typeof r.data.value=="string"&&t.push(r.data.value);return t}function Ou(e){let t=Oe.value.filter.input,r=[];if("type"in t&&t.type==="operator")for(let n of t.data.operands)"type"in n&&n.type==="value"&&typeof n.data.value=="string"&&r.push(n.data.value);if(r.includes(e)){let n=r.indexOf(e);n>-1&&r.splice(n,1)}else r.push(e);Oe.value=He(k({},Oe.value),{page:void 0,filter:He(k({},Oe.value.filter),{input:{type:"operator",data:{operator:"and",operands:r.map(n=>({type:"value",data:{field:"tags",value:n}}))}}})}),Za(kn())}function Lu(){return st.value.items}function Mu(){return st.value.total}function ku(){var e;for(let t of(e=st.value.aggregations)!=null?e:[])if(t.type==="term")return t.data.value;return[]}function lr(){return Qe.value.hideSearch}function Au(){return Qe.value.hideFilters}function es(){var e;return(e=ts.value.highlight)!=null?e:!1}var Qe=At({hideSearch:!0,hideFilters:!0,selectedItem:0}),ts=At({}),pr=At(),ua=At(),Oe=At({input:"",filter:{input:{type:"operator",data:{operator:"and",operands:[]}},aggregation:{input:[{type:"term",data:{field:"tags"}}]}}}),st=At({items:[],query:{select:{documents:new la(0),terms:new la(0)},values:[]},pagination:{total:0}});function Cu(e,t,r){for(let n=0;tr&&t(0,o,r,r=i);continue;case 62:e.charCodeAt(r+1)===47?t(2,--o,r,r=i+1):Cu(e,r,n)?t(3,o,r,r=i+1):t(1,o++,r,r=i+1)}i>r&&t(0,o,r,i)}function $u(e,t=0,r=e.length){let n=++t;e:for(let l=0;n{let i=[],a=[],{onElement:s,onText:c=Pu}=typeof r=="function"?{onElement:r}:r,l=0,u=0;return e(t,(f,p,m,h)=>{if(f===0)i[l++]=c(t,m,h),a[u++]={value:null,depth:p};else if(f&1&&(a[u++]={value:$u(t,m,h),depth:p}),f&2)for(let v=0;u>=0;v++){let{value:_,depth:S}=a[--u];if(S>p)continue;let x=i.slice(l-=v,l+v);i[l++]=s(_,x),u++;break}},n,o),i.slice(0,l)}}function Ru(e){return e.replace(/[&<>]/g,t=>{switch(t.charCodeAt(0)){case 38:return"&";case 60:return"<";case 62:return">"}})}function _n(e){return e.replace(/&(amp|[lg]t);/g,t=>{switch(t.charCodeAt(1)){case 97:return"&";case 108:return"<";case 103:return">"}})}function ju(e,t){return{start:e.start+t,end:e.end+t,value:e.value}}function Fu(e,t,r){return e.slice(t,r)}function Uu(e){let{onHighlight:t,onText:r=Fu}=typeof e=="function"?{onHighlight:e}:e;return(n,o,i=0,a=n.length)=>{var l;let s=[],c=(l=o==null?void 0:o.ranges)!=null?l:[];for(let u=0,f=i;ua)break;let m=c[u].end;if(mi&&s.push(r(n,i,p));let{value:h}=c[u];s.push(t(n,{start:p,end:i=m,value:h}))}return it!==null&&typeof t<"u"&&t!==!1&&!(typeof t=="string"&&t.trim().length===0))}function os(e,t){let r=rs(e,{onElement(n,o){return kt(n.tag,n.attrs,...o)},onText(n,o,i){return ns(n,t==null?void 0:t.value.highlight,o,i)}});return N(ze,{children:r})}function qu(e,t){var n;let r=[];for(let o=0,i=0;om.start=s||c.push(He(k({},m),{start:Math.max(m.start,a),end:Math.min(m.end,s)}));let l=rs(e,{onElement(m,h){var _;let v=zu(h);if(v.length!==0)return Vu.has(m.tag)?kt(m.tag,(_=m.attrs)!=null?_:{},...v):m.tag==="li"?N(ze,{children:["\u2013 ",v," "]}):Wu.has(m.tag)?N(ze,{children:[" ",v," "]}):N(ze,{children:v})},onText(m,h,v){let _=Math.max(h,a),S=Math.min(v,s);if(!(_>=S))return ns(m,{ranges:c},_,S)}});return N(ze,{children:[a>0&&"...",l]})}function is(e,t={highlight:!0}){ts.value=t;let r=new Worker(e);r.onmessage=n=>{let o=n.data;switch(o.type){case 1:ua.value=!0;break;case 3:typeof o.data.pagination.prev<"u"?st.value=He(k({},st.value),{pagination:o.data.pagination,items:[...st.value.items,...o.data.items]}):(st.value=o.data,mo(0));break}},Kt(()=>{pr.value&&r.postMessage({type:0,data:pr.value})}),Kt(()=>{ua.value&&r.postMessage({type:2,data:Oe.value})})}var pa={container:"p",hidden:"v"};function Bu(e){return N("div",{class:qt(pa.container,{[pa.hidden]:e.hidden}),onClick:()=>Vt()})}var fa={container:"r",disabled:"c"};function ma(e){return N("button",{class:qt(fa.container,{[fa.disabled]:!e.onClick}),onClick:e.onClick,children:e.children})}var da=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Gu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),ha=e=>{let t=Gu(e);return t.charAt(0).toUpperCase()+t.slice(1)},Yu=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Ju={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Xu=c=>{var l=c,{color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,children:o,iconNode:i,class:a=""}=l,s=_r(l,["color","size","strokeWidth","absoluteStrokeWidth","children","iconNode","class"]);return kt("svg",k(He(k({},Ju),{width:String(t),height:t,stroke:e,"stroke-width":n?Number(r)*24/Number(t):r,class:["lucide",a].join(" ")}),s),[...i.map(([u,f])=>kt(u,f)),...$r(o)])},as=(e,t)=>{let r=a=>{var s=a,{class:n="",children:o}=s,i=_r(s,["class","children"]);return kt(Xu,He(k({},i),{iconNode:t,class:Yu(`lucide-${da(ha(e))}`,`lucide-${da(e)}`,n)}),o)};return r.displayName=ha(e),r},Zu=as("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]),Qu=as("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),Aw=Pl(Il(),1);function ep({threshold:e=0,root:t=null,rootMargin:r="0%",freezeOnceVisible:n=!1,initialIsIntersecting:o=!1,onChange:i}={}){var a;let[s,c]=Tn(null),[l,u]=Tn(()=>({isIntersecting:o,entry:void 0})),f=zt();f.current=i;let p=((a=l.entry)==null?void 0:a.isIntersecting)&&n;ht(()=>{if(!s||!("IntersectionObserver"in window)||p)return;let v,_=new IntersectionObserver(S=>{let x=Array.isArray(_.thresholds)?_.thresholds:[_.thresholds];S.forEach(g=>{let ee=g.isIntersecting&&x.some(ue=>g.intersectionRatio>=ue);u({isIntersecting:ee,entry:g}),f.current&&f.current(ee,g),ee&&n&&v&&(v(),v=void 0)})},{threshold:e,root:t,rootMargin:r});return _.observe(s),()=>{_.disconnect()}},[s,JSON.stringify(e),t,r,p,n]);let m=zt(null);ht(()=>{var v;!s&&(v=l.entry)!=null&&v.target&&!n&&!p&&m.current!==l.entry.target&&(m.current=l.entry.target,u({isIntersecting:o,entry:void 0}))},[s,l.entry,n,p,o]);let h=[c,!!l.isIntersecting,l.entry];return h.ref=h[0],h.isIntersecting=h[1],h.entry=h[2],h}var mt={container:"n",hidden:"l",content:"y",pop:"d",badge:"w",sidebar:"e",controls:"k",results:"z",loadmore:"j"};function tp(e){let{isIntersecting:t,ref:r}=ep({threshold:0});ht(()=>{t&&Tu()},[t]);let n=zt(null);ht(()=>{n.current&&typeof Oe.value.page>"u"&&n.current.scrollTo({top:0,behavior:"smooth"})},[Oe.value]);let o=Qa();return N("div",{class:qt(mt.container,{[mt.hidden]:e.hidden}),children:[N("div",{class:mt.content,children:[N("div",{class:mt.controls,children:[N(ma,{onClick:Vt,children:N(Qu,{})}),N(np,{focus:!e.hidden}),N(ma,{onClick:Xa,children:[N(Zu,{}),o.length>0&&N("span",{class:mt.badge,children:o.length})]})]}),N("div",{class:mt.results,ref:n,children:[N(op,{keyboard:!e.hidden}),N("div",{class:mt.loadmore,ref:r})]})]}),N("div",{class:qt(mt.sidebar,{[mt.hidden]:Au()}),children:N(rp,{})})]})}var Ot={container:"X",list:"F",heading:"I",title:"R",item:"o",active:"g",value:"q",count:"A"};function rp(e){let t=ku();return t.sort((r,n)=>n.node.count-r.node.count),N("div",{class:Ot.container,children:[N("h3",{class:Ot.heading,children:"Filters"}),N("h4",{class:Ot.title,children:"Tags"}),N("ol",{class:Ot.list,children:t.map(r=>N("li",{class:qt(Ot.item,{[Ot.active]:Su(r.node.value)}),onClick:()=>Ou(r.node.value),children:[N("span",{class:Ot.value,children:r.node.value}),N("span",{class:Ot.count,children:r.node.count})]},r.node.value))})]})}var va={container:"f"};function np(e){let t=zt(null);return ht(()=>{var r,n;e.focus?(r=t.current)==null||r.focus():(n=t.current)==null||n.blur()},[e.focus]),N("div",{class:va.container,children:N("input",{ref:t,type:"text",class:va.content,value:_n(kn()),onInput:r=>Za(Ru(r.currentTarget.value)),autocapitalize:"off",autocomplete:"off",autocorrect:"off",placeholder:"Search",spellcheck:!1,role:"combobox"})})}var at={container:"b",heading:"B",item:"i",active:"h",wrapper:"C",meta:"D",actions:"s",title:"x",path:"t",excerpt:"u",more:"E"};function ss(){let[e,t]=Tn(!1);return ht(()=>{let r=()=>t(!0),n=()=>t(!1);return document.addEventListener("compositionstart",r),document.addEventListener("compositionend",n),()=>{document.removeEventListener("compositionstart",r),document.removeEventListener("compositionend",n)}},[]),e}function op(e){var s;let t=Eu(),r=Lu(),n=yn(),o=zt([]),i=ss();ht(()=>{let c=o.current[n];c&&c.scrollIntoView({block:"center",behavior:"smooth"})},[n]),Ua(e.keyboard,c=>{if(i)return;let l=yn();c.key==="ArrowDown"?(c.preventDefault(),mo(Math.min(l+1,r.length-1))):c.key==="ArrowUp"&&(c.preventDefault(),mo(Math.max(l-1,0)))},[e.keyboard,i]);let a=(s=Mu())!=null?s:0;return N(ze,{children:[r.length>0&&N("h3",{class:at.heading,children:[N("span",{class:at.bubble,children:new Intl.NumberFormat("en-US").format(a)})," ","results"]}),N("ol",{class:at.container,children:r.map((c,l)=>{var _,S,x,g;let u=c.matches.find(({field:ee})=>ee==="text"),f=os(t[c.id].title,c.matches.find(({field:ee})=>ee==="title")),p=qu((_=t[c.id].path)!=null?_:[],c.matches.find(({field:ee})=>ee==="path")),m=Ku(t[c.id].text,u),h=Math.max(0,((g=(x=(S=u==null?void 0:u.value.highlight)==null?void 0:S.ranges)==null?void 0:x.filter(ee=>ee.start{o.current[l]=ee},href:v,onClick:()=>Vt(),class:qt(at.item,{[at.active]:l===yn()}),children:N("div",{class:at.wrapper,children:[N("div",{class:at.meta,children:N("menu",{class:at.path,children:p.map((ee,ue)=>N("li",{children:ee},ue))})}),N("h2",{class:at.title,children:f}),m&&N("div",{class:at.excerpt,children:m})]})})},c.id)})})]})}var ip={container:"a"};function ap(e){let t=ss();return Ua(!0,r=>{var n,o,i,a,s;if(!t)if((r.metaKey||r.ctrlKey)&&r.key==="k")r.preventDefault(),Vt();else if((r.metaKey||r.ctrlKey)&&r.key==="j")document.body.classList.toggle("dark");else if(r.key==="Enter"&&!lr()){r.preventDefault();let c=yn(),l=(o=(n=st.value)==null?void 0:n.items[c])==null?void 0:o.id;if((a=(i=pr.value)==null?void 0:i.items[l])!=null&&a.location){Vt();let u=(s=pr.value)==null?void 0:s.items[l].location;if(es()){let f=encodeURIComponent(kn()),[p,m]=u.split("#",2);u=`${p}?h=${f.replace(/%20/g,"+")}`,typeof m<"u"&&(u+=`#${m}`)}window.location.href=u}}else r.key==="Escape"&&!lr()&&(r.preventDefault(),Vt())},[t]),N("div",{class:ip.container,children:[N(Bu,{hidden:lr()}),N(tp,{hidden:lr()})]})}function cs(e,t){wu(e),Vl(N(ap,{}),t)}function wo(){Vt()}function sp(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function cp(){return R(b(window,"compositionstart").pipe(d(()=>!0)),b(window,"compositionend").pipe(d(()=>!1))).pipe(J(!1))}function ls(){let e=b(window,"keydown").pipe(d(t=>({mode:lr()?"global":"search",type:t.key,meta:t.ctrlKey||t.metaKey,claim(){t.preventDefault(),t.stopPropagation()}})),O(({mode:t,type:r})=>{if(t==="global"){let n=Et();if(typeof n!="undefined")return!sp(n,r)}return!0}),xe());return cp().pipe(y(t=>t?w:e))}function Ue(){return new URL(location.href)}function vt(e,t=!1){if(X("navigation.instant")&&!t){let r=A("a",{href:e.href});document.body.appendChild(r),r.click(),r.remove()}else location.href=e.href}function us(){return new I}function ps(){return location.hash.slice(1)}function fs(e){let t=A("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Eo(e){return R(b(window,"hashchange"),e).pipe(d(ps),J(ps()),O(t=>t.length>0),d(decodeURIComponent),re(1))}function ms(e){return Eo(e).pipe(d(t=>we(`[id="${t}"]`)),O(t=>typeof t!="undefined"))}function jr(e){let t=matchMedia(e);return un(r=>t.addListener(()=>r(t.matches))).pipe(J(t.matches))}function ds(){let e=matchMedia("print");return R(b(window,"beforeprint").pipe(d(()=>!0)),b(window,"afterprint").pipe(d(()=>!1))).pipe(J(e.matches))}function To(e,t){return e.pipe(y(r=>r?t():w))}function So(e,t){return new F(r=>{let n=new XMLHttpRequest;return n.open("GET",`${e}`),n.responseType="blob",n.addEventListener("load",()=>{n.status>=200&&n.status<300?(r.next(n.response),r.complete()):r.error(new Error(n.statusText))}),n.addEventListener("error",()=>{r.error(new Error("Network error"))}),n.addEventListener("abort",()=>{r.complete()}),typeof(t==null?void 0:t.progress$)!="undefined"&&(n.addEventListener("progress",o=>{var i;if(o.lengthComputable)t.progress$.next(o.loaded/o.total*100);else{let a=(i=n.getResponseHeader("Content-Length"))!=null?i:0;t.progress$.next(o.loaded/+a*100)}}),t.progress$.next(5)),n.send(),()=>n.abort()})}function et(e,t){return So(e,t).pipe(y(r=>r.text()),d(r=>JSON.parse(r)),re(1))}function An(e,t){let r=new DOMParser;return So(e,t).pipe(y(n=>n.text()),d(n=>r.parseFromString(n,"text/html")),re(1))}function hs(e,t){let r=new DOMParser;return So(e,t).pipe(y(n=>n.text()),d(n=>r.parseFromString(n,"text/xml")),re(1))}var Oo={drawer:Y("[data-md-toggle=drawer]"),search:Y("[data-md-toggle=search]")};function Lo(e,t){Oo[e].checked!==t&&Oo[e].click()}function Cn(e){let t=Oo[e];return b(t,"change").pipe(d(()=>t.checked),J(t.checked))}function vs(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function bs(){return R(b(window,"scroll",{passive:!0}),b(window,"resize",{passive:!0})).pipe(d(vs),J(vs()))}function gs(){return{width:innerWidth,height:innerHeight}}function ys(){return b(window,"resize",{passive:!0}).pipe(d(gs),J(gs()))}function _s(){return oe([bs(),ys()]).pipe(d(([e,t])=>({offset:e,size:t})),re(1))}function Hn(e,{viewport$:t,header$:r}){let n=t.pipe(ve("size")),o=oe([n,r]).pipe(d(()=>Tt(e)));return oe([r,t,o]).pipe(d(([{height:i},{offset:a,size:s},{x:c,y:l}])=>({offset:{x:a.x-c,y:a.y-l+i},size:s})))}var lp=Y("#__config"),hr=JSON.parse(lp.textContent);hr.base=`${new URL(hr.base,Ue())}`;function Ne(){return hr}function X(e){return hr.features.includes(e)}function Gt(e,t){return typeof t!="undefined"?hr.translations[e].replace("#",t.toString()):hr.translations[e]}function bt(e,t=document){return Y(`[data-md-component=${e}]`,t)}function Te(e,t=document){return $(`[data-md-component=${e}]`,t)}function up(e){let t=Y(".md-typeset > :first-child",e);return b(t,"click",{once:!0}).pipe(d(()=>Y(".md-typeset",e)),d(r=>({hash:__md_hash(r.innerHTML)})))}function xs(e){if(!X("announce.dismiss")||!e.childElementCount)return w;if(!e.hidden){let t=Y(".md-typeset",e);__md_hash(t.innerHTML)===__md_get("__announce")&&(e.hidden=!0)}return j(()=>{let t=new I;return t.subscribe(({hash:r})=>{e.hidden=!0,__md_set("__announce",r)}),up(e).pipe(P(r=>t.next(r)),q(()=>t.complete()),d(r=>k({ref:e},r)))})}function pp(e,{target$:t}){return t.pipe(d(r=>({hidden:r!==e})))}function ws(e,t){let r=new I;return r.subscribe(({hidden:n})=>{e.hidden=n}),pp(e,t).pipe(P(n=>r.next(n)),q(()=>r.complete()),d(n=>k({ref:e},n)))}function Mo(e,t){return t==="inline"?A("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},A("div",{class:"md-tooltip__inner md-typeset"})):A("div",{class:"md-tooltip",id:e,role:"tooltip"},A("div",{class:"md-tooltip__inner md-typeset"}))}function $n(...e){return A("div",{class:"md-tooltip2",role:"dialog"},A("div",{class:"md-tooltip2__inner md-typeset"},e))}function Es(...e){return A("div",{class:"md-tooltip2",role:"tooltip"},A("div",{class:"md-tooltip2__inner md-typeset"},e))}function Ts(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return A("aside",{class:"md-annotation",tabIndex:0},Mo(t),A("a",{href:r,class:"md-annotation__index",tabIndex:-1},A("span",{"data-md-annotation-id":e})))}else return A("aside",{class:"md-annotation",tabIndex:0},Mo(t),A("span",{class:"md-annotation__index",tabIndex:-1},A("span",{"data-md-annotation-id":e})))}function Ss(e){return A("button",{class:"md-code__button",title:Gt("clipboard.copy"),"data-clipboard-target":`#${e} > code`,"data-md-type":"copy"})}function Os(){return A("button",{class:"md-code__button",title:"Toggle line selection","data-md-type":"select"})}function Ls(){return A("nav",{class:"md-code__nav"})}var dp=xr(ko());function ks(e){return A("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>A("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?Hi(r):r)))}function Ao(e){let t=`tabbed-control tabbed-control--${e}`;return A("div",{class:t,hidden:!0},A("button",{class:"tabbed-button",tabIndex:-1,"aria-hidden":"true"}))}function As(e){return A("div",{class:"md-typeset__scrollwrap"},A("div",{class:"md-typeset__table"},e))}function hp(e){var n;let t=Ne(),r=new URL(`../${e.version}/`,t.base);return A("li",{class:"md-version__item"},A("a",{href:`${r}`,class:"md-version__link"},e.title,((n=t.version)==null?void 0:n.alias)&&e.aliases.length>0&&A("span",{class:"md-version__alias"},e.aliases[0])))}function Cs(e,t){var n;let r=Ne();return e=e.filter(o=>{var i;return!((i=o.properties)!=null&&i.hidden)}),A("div",{class:"md-version"},A("button",{class:"md-version__current","aria-label":Gt("select.version")},t.title,((n=r.version)==null?void 0:n.alias)&&t.aliases.length>0&&A("span",{class:"md-version__alias"},t.aliases[0])),A("ul",{class:"md-version__list"},e.map(hp)))}var vp=0;function bp(e,t=250){let r=oe([cr(e),Dt(e,t)]).pipe(d(([o,i])=>o||i),ce()),n=j(()=>Ri(e)).pipe(se(Wt),kr(1),Ze(r),d(()=>ji(e)));return r.pipe(Lr(o=>o),y(()=>oe([r,n])),d(([o,i])=>({active:o,offset:i})),xe())}function Fr(e,t,r=250){let{content$:n,viewport$:o}=t,i=`__tooltip2_${vp++}`;return j(()=>{let a=new I,s=new Kn(!1);a.pipe(be(),_e(!1)).subscribe(s);let c=s.pipe(Or(u=>Ve(+!u*250,Yn)),ce(),y(u=>u?n:w),P(u=>u.id=i),xe());oe([a.pipe(d(({active:u})=>u)),c.pipe(y(u=>Dt(u,250)),J(!1))]).pipe(d(u=>u.some(f=>f))).subscribe(s);let l=s.pipe(O(u=>u),fe(c,o),d(([u,f,{size:p}])=>{let m=e.getBoundingClientRect(),h=m.width/2;if(f.role==="tooltip")return{x:h,y:8+m.height};if(m.y>=p.height/2){let{height:v}=Ae(f);return{x:h,y:-16-v}}else return{x:h,y:16+m.height}}));return oe([c,a,l]).subscribe(([u,{offset:f},p])=>{u.style.setProperty("--md-tooltip-host-x",`${f.x}px`),u.style.setProperty("--md-tooltip-host-y",`${f.y}px`),u.style.setProperty("--md-tooltip-x",`${p.x}px`),u.style.setProperty("--md-tooltip-y",`${p.y}px`),u.classList.toggle("md-tooltip2--top",p.y<0),u.classList.toggle("md-tooltip2--bottom",p.y>=0)}),s.pipe(O(u=>u),fe(c,(u,f)=>f),O(u=>u.role==="tooltip")).subscribe(u=>{let f=Ae(Y(":scope > *",u));u.style.setProperty("--md-tooltip-width",`${f.width}px`),u.style.setProperty("--md-tooltip-tail","0px")}),s.pipe(ce(),Ie(je),fe(c)).subscribe(([u,f])=>{f.classList.toggle("md-tooltip2--active",u)}),oe([s.pipe(O(u=>u)),c]).subscribe(([u,f])=>{f.role==="dialog"?(e.setAttribute("aria-controls",i),e.setAttribute("aria-haspopup","dialog")):e.setAttribute("aria-describedby",i)}),s.pipe(O(u=>!u)).subscribe(()=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-describedby"),e.removeAttribute("aria-haspopup")}),bp(e,r).pipe(P(u=>a.next(u)),q(()=>a.complete()),d(u=>k({ref:e},u)))})}function Ye(e,{viewport$:t},r=document.body){return Fr(e,{content$:new F(n=>{let o=e.title,i=Es(o);return n.next(i),e.removeAttribute("title"),r.append(i),()=>{i.remove(),e.setAttribute("title",o)}}),viewport$:t},0)}function gp(e,t){let r=j(()=>oe([Fi(e),Wt(t)])).pipe(d(([{x:n,y:o},i])=>{let{width:a,height:s}=Ae(e);return{x:n-i.x+a/2,y:o-i.y+s/2}}));return cr(e).pipe(y(n=>r.pipe(d(o=>({active:n,offset:o})),Me(+!n||1/0))))}function Hs(e,t,{target$:r}){let[n,o]=Array.from(e.children);return j(()=>{let i=new I,a=i.pipe(be(),_e(!0));return i.subscribe({next({offset:s}){e.style.setProperty("--md-tooltip-x",`${s.x}px`),e.style.setProperty("--md-tooltip-y",`${s.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),St(e).pipe(Q(a)).subscribe(s=>{e.toggleAttribute("data-md-visible",s)}),R(i.pipe(O(({active:s})=>s)),i.pipe(Ge(250),O(({active:s})=>!s))).subscribe({next({active:s}){s?e.prepend(n):n.remove()},complete(){e.prepend(n)}}),i.pipe(Xe(16,je)).subscribe(({active:s})=>{n.classList.toggle("md-tooltip--active",s)}),i.pipe(kr(125,je),O(()=>!!e.offsetParent),d(()=>e.offsetParent.getBoundingClientRect()),d(({x:s})=>s)).subscribe({next(s){s?e.style.setProperty("--md-tooltip-0",`${-s}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),b(o,"click").pipe(Q(a),O(s=>!(s.metaKey||s.ctrlKey))).subscribe(s=>{s.stopPropagation(),s.preventDefault()}),b(o,"mousedown").pipe(Q(a),fe(i)).subscribe(([s,{active:c}])=>{var l;if(s.button!==0||s.metaKey||s.ctrlKey)s.preventDefault();else if(c){s.preventDefault();let u=e.parentElement.closest(".md-annotation");u instanceof HTMLElement?u.focus():(l=Et())==null||l.blur()}}),r.pipe(Q(a),O(s=>s===n),Ft(125)).subscribe(()=>e.focus()),gp(e,t).pipe(P(s=>i.next(s)),q(()=>i.complete()),d(s=>k({ref:e},s)))})}function yp(e){let t=Ne();if(e.tagName!=="CODE")return[e];let r=[".c",".c1",".cm"];if(t.annotate){let n=e.closest("[class|=language]");if(n)for(let o of Array.from(n.classList)){if(!o.startsWith("language-"))continue;let[,i]=o.split("-");i in t.annotate&&r.push(...t.annotate[i])}}return $(r.join(", "),e)}function _p(e){let t=[];for(let r of yp(e)){let n=[],o=document.createNodeIterator(r,NodeFilter.SHOW_TEXT);for(let i=o.nextNode();i;i=o.nextNode())n.push(i);for(let i of n){let a;for(;a=/(\(\d+\))(!)?/.exec(i.textContent);){let[,s,c]=a;if(typeof c=="undefined"){let l=i.splitText(a.index);i=l.splitText(s.length),t.push(l)}else{i.textContent=s,t.push(i);break}}}}return t}function $s(e,t){t.append(...Array.from(e.childNodes))}function Pn(e,t,{target$:r,print$:n}){let o=t.closest("[id]"),i=o==null?void 0:o.id,a=new Map;for(let s of _p(t)){let[,c]=s.textContent.match(/\((\d+)\)/);we(`:scope > li:nth-child(${c})`,e)&&(a.set(c,Ts(c,i)),s.replaceWith(a.get(c)))}return a.size===0?w:j(()=>{let s=new I,c=s.pipe(be(),_e(!0)),l=[];for(let[u,f]of a)l.push([Y(".md-typeset",f),Y(`:scope > li:nth-child(${u})`,e)]);return n.pipe(Q(c)).subscribe(u=>{e.hidden=!u,e.classList.toggle("md-annotation-list",u);for(let[f,p]of l)u?$s(f,p):$s(p,f)}),R(...[...a].map(([,u])=>Hs(u,t,{target$:r}))).pipe(q(()=>s.complete()),xe())})}function Ps(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Ps(t)}}function Is(e,t){return j(()=>{let r=Ps(e);return typeof r!="undefined"?Pn(r,e,t):w})}var js=xr(Ho());var xp=0,Rs=R(b(window,"keydown").pipe(d(()=>!0)),R(b(window,"keyup"),b(window,"contextmenu")).pipe(d(()=>!1))).pipe(J(!1),re(1));function Fs(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Fs(t)}}function wp(e){return Re(e).pipe(d(({width:t})=>({scrollable:Ar(e).width>t})),ve("scrollable"))}function Us(e,t){let{matches:r}=matchMedia("(hover)"),n=j(()=>{let o=new I,i=o.pipe(to(1));o.subscribe(({scrollable:m})=>{m&&r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")});let a=[],s=e.closest("pre"),c=s.closest("[id]"),l=c?c.id:xp++;s.id=`__code_${l}`;let u=[],f=e.closest(".highlight");if(f instanceof HTMLElement){let m=Fs(f);if(typeof m!="undefined"&&(f.classList.contains("annotate")||X("content.code.annotate"))){let h=Pn(m,e,t);u.push(Re(f).pipe(Q(i),d(({width:v,height:_})=>v&&_),ce(),y(v=>v?h:w)))}}let p=$(":scope > span[id]",e);if(p.length&&(e.classList.add("md-code__content"),e.closest(".select")||X("content.code.select")&&!e.closest(".no-select"))){let m=+p[0].id.split("-").pop(),h=Os();a.push(h),X("content.tooltips")&&u.push(Ye(h,{viewport$}));let v=b(h,"click").pipe(Mr(L=>!L,!1),P(()=>h.blur()),xe());v.subscribe(L=>{h.classList.toggle("md-code__button--active",L)});let _=he(p).pipe(se(L=>Dt(L).pipe(d(M=>[L,M]))));v.pipe(y(L=>L?_:w)).subscribe(([L,M])=>{let W=we(".hll.select",L);if(W&&!M)W.replaceWith(...Array.from(W.childNodes));else if(!W&&M){let ie=document.createElement("span");ie.className="hll select",ie.append(...Array.from(L.childNodes).slice(1)),L.append(ie)}});let S=he(p).pipe(se(L=>b(L,"mousedown").pipe(P(M=>M.preventDefault()),d(()=>L)))),x=v.pipe(y(L=>L?S:w),fe(Rs),d(([L,M])=>{var ie;let W=p.indexOf(L)+m;if(M===!1)return[W,W];{let ne=$(".hll",e).map(de=>p.indexOf(de.parentElement)+m);return(ie=window.getSelection())==null||ie.removeAllRanges(),[Math.min(W,...ne),Math.max(W,...ne)]}})),g=Eo(w).pipe(O(L=>L.startsWith(`__codelineno-${l}-`)));g.subscribe(L=>{let[,,M]=L.split("-"),W=M.split(":").map(ne=>+ne-m+1);W.length===1&&W.push(W[0]);for(let ne of $(".hll:not(.select)",e))ne.replaceWith(...Array.from(ne.childNodes));let ie=p.slice(W[0]-1,W[1]);for(let ne of ie){let de=document.createElement("span");de.className="hll",de.append(...Array.from(ne.childNodes).slice(1)),ne.append(de)}}),g.pipe(Me(1),Ie(ye)).subscribe(L=>{if(L.includes(":")){let M=document.getElementById(L.split(":")[0]);M&&setTimeout(()=>{let W=M,ie=-64;for(;W!==document.body;)ie+=W.offsetTop,W=W.offsetParent;window.scrollTo({top:ie})},1)}});let ue=he($('a[href^="#__codelineno"]',f)).pipe(se(L=>b(L,"click").pipe(P(M=>M.preventDefault()),d(()=>L)))).pipe(Q(i),fe(Rs),d(([L,M])=>{let ie=+Y(`[id="${L.hash.slice(1)}"]`).parentElement.id.split("-").pop();if(M===!1)return[ie,ie];{let ne=$(".hll",e).map(de=>+de.parentElement.id.split("-").pop());return[Math.min(ie,...ne),Math.max(ie,...ne)]}}));R(x,ue).subscribe(L=>{let M=`#__codelineno-${l}-`;L[0]===L[1]?M+=L[0]:M+=`${L[0]}:${L[1]}`,history.replaceState({},"",M),window.dispatchEvent(new HashChangeEvent("hashchange",{newURL:window.location.origin+window.location.pathname+M,oldURL:window.location.href}))})}if(js.default.isSupported()&&(e.closest(".copy")||X("content.code.copy")&&!e.closest(".no-copy"))){let m=Ss(s.id);a.push(m),X("content.tooltips")&&u.push(Ye(m,{viewport$}))}if(a.length){let m=Ls();m.append(...a),s.insertBefore(m,e)}return wp(e).pipe(P(m=>o.next(m)),q(()=>o.complete()),d(m=>k({ref:e},m)),Ut(R(...u).pipe(Q(i))))});return X("content.lazy")?St(e).pipe(O(o=>o),Me(1),y(()=>n)):n}function Ep(e,{target$:t,print$:r}){let n=!0;return R(t.pipe(d(o=>o.closest("details:not([open])")),O(o=>e===o),d(()=>({action:"open",reveal:!0}))),r.pipe(O(o=>o||!n),P(()=>n=e.open),d(o=>({action:o?"open":"close"}))))}function Ns(e,t){return j(()=>{let r=new I;return r.subscribe(({action:n,reveal:o})=>{e.toggleAttribute("open",n==="open"),o&&e.scrollIntoView()}),Ep(e,t).pipe(P(n=>r.next(n)),q(()=>r.complete()),d(n=>k({ref:e},n)))})}var Ds,Ws,$o={},Vs=!1;function zs(e,t){return t()?it(e).pipe(me(()=>D(void 0)),d(()=>{})):D(void 0)}function Tp(e){if(!e)return[];if(e.startsWith("[")&&e.endsWith("]"))try{let t=JSON.parse(e);if(Array.isArray(t))return t.filter(r=>typeof r=="string")}catch(t){}return e.split(/[,\s]+/).map(t=>t.trim()).filter(t=>t.length>0)}function Sp(e){var i,a,s;let t=e.querySelector("[id$='--editor']"),r=e.querySelector("[id$='--run']"),n=e.querySelector("[id$='--clear']"),o=e.querySelector("[id$='--output']");if(!t||!r||!n||!o)throw new Error("Invalid Pyodide structure");return{root:e,editor:t,output:o,run:r,clear:n,source:(a=(i=t.textContent)==null?void 0:i.trimEnd())!=null?a:"",session:(s=e.dataset.session)!=null?s:"default",install:Tp(e.dataset.install),minLines:typeof e.dataset.minlines=="undefined"?0:parseInt(e.dataset.minlines),maxLines:typeof e.dataset.maxlines=="undefined"?1/0:parseInt(e.dataset.maxlines)}}function Op(e,t){return e in $o||($o[e]=t.globals.get("dict")()),$o[e]}function Nr(e,t){e.textContent=t}function Po(e){e.textContent=""}function Lp(){return new Promise(e=>requestAnimationFrame(()=>e()))}function Mp(e,t,r,n){return ut(this,null,function*(){let o=[];e.setStdout({batched(i){o.push(i),Nr(r,`${o.join(` +`)} +`)}});try{let i=yield e.runPythonAsync(t.getValue(),{globals:Op(n,e)});typeof i!="undefined"&&i!==null&&(o.push(String(i)),Nr(r,`${o.join(` +`)} +`))}catch(i){o.push(String(i)),Nr(r,`${o.join(` +`)} +`)}})}function kp(){return Ws||(Ws=zs("https://unpkg.com/pyodide@314.0.2/pyodide.js",()=>typeof loadPyodide=="undefined"||loadPyodide instanceof Element).pipe(d(()=>ut(null,null,function*(){try{let e=yield loadPyodide({indexURL:"https://cdn.jsdelivr.net/pyodide/v314.0.2/full/"});return yield e.loadPackage("micropip"),e}catch(e){return null}})),re(1))),Ws}function Ap(){Vs||(ace.define("ace/theme/zensical",["require","exports","module","ace/lib/dom"],(e,t)=>{t.isDark=!1,t.cssClass="ace-zensical",t.cssText=""}),Vs=!0)}function qs(e){return Ds||(Ds=zs("https://unpkg.com/ace-builds@1.44.0/src-noconflict/ace.js",()=>typeof ace=="undefined"||ace instanceof Element).pipe(re(1))),new F(t=>{let r=!0,n,o,i=Sp(e);i.root.setAttribute("data-md-exec-state","ready");let a=()=>Po(i.output),s=()=>ut(null,null,function*(){return o||(o=ut(null,null,function*(){if(i.root.setAttribute("data-md-exec-state","loading"),Nr(i.output,"Initializing..."),yield Lp(),!r)return null;let u=yield ln(kp()).then(f=>f);if(!r||!u)return null;if(i.install.length>0)try{let f=u.pyimport("micropip");for(let p of i.install)yield f.install(p)}catch(f){return Po(i.output),Nr(i.output,`Could not install one or more packages: ${i.install.join(", ")} +${String(f)}`),i.root.setAttribute("data-md-exec-state","error"),null}return r?(Po(i.output),i.root.setAttribute("data-md-exec-state","ready"),u):null})),o}),c=()=>{ut(null,null,function*(){let u=yield s();!r||!u||!n||Mp(u,n,i.output,i.session)})},l=u=>{u.ctrlKey&&u.key.toLowerCase()==="enter"&&(u.preventDefault(),i.run.click())};return i.run.addEventListener("click",c),i.clear.addEventListener("click",a),i.root.addEventListener("keydown",l),ut(null,null,function*(){yield ln(Ds),r&&(Ap(),i.editor.textContent="",n=ace.edit(i.editor),n.setTheme("ace/theme/zensical"),n.session.setMode("ace/mode/python"),n.setOption("fontFamily","var(--md-code-font)"),n.setOption("minLines",i.minLines),n.setOption("maxLines",i.maxLines),n.session.setValue(i.source),n.gotoLine(1,0,!1),n.clearSelection(),n.resize(),n.renderer.updateFull())}),t.next({ref:i.root}),()=>{r=!1,i.run.removeEventListener("click",c),i.clear.removeEventListener("click",a),i.root.removeEventListener("keydown",l),n==null||n.destroy(),i.root.removeAttribute("data-md-exec-state")}})}var Ks;function Cp(){return typeof GLightbox=="undefined"||GLightbox instanceof Element?it("https://unpkg.com/glightbox@3/dist/js/glightbox.min.js").pipe(me(()=>w),d(()=>{})):D(void 0)}function Hp(){return $i("https://unpkg.com/glightbox@3/dist/css/glightbox.min.css").pipe(me(()=>w),d(()=>{}))}function Bs(e){return Ks||(Ks=Cp().pipe(d(()=>new GLightbox(k({touchNavigation:!0,loop:!1,zoomable:!0,draggable:!0,openEffect:"zoom",closeEffect:"zoom",slideEffect:"slide",onOpen:()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}},typeof GLightboxOptions!="undefined"?GLightboxOptions:{}))),re(1))),Hp().pipe(y(()=>Ks),y(t=>(t.reload(),e.map(r=>({ref:r})))))}var Gs=0,Ys=new Map;function $p(e){let t=document.createElement("h3");t.innerHTML=e.innerHTML;let r=[t],n=e.nextElementSibling;for(;n&&!(n instanceof HTMLHeadingElement);)r.push(n.cloneNode(!0)),n=n.nextElementSibling;return r}function Pp(e,t){for(let r of $("[href], [src]",e))for(let n of["href","src"]){let o=r.getAttribute(n);if(o&&!/^(?:[a-z]+:)?\/\//i.test(o)){r[n]=new URL(r.getAttribute(n),t).toString();break}}for(let r of $("[name^=__], [for]",e))for(let n of["id","for","name"]){let o=r.getAttribute(n);o&&r.setAttribute(n,`${o}$preview_${Gs}`)}return Gs++,D(e)}function Ip(e){let t=Ys.get(e.toString());return t?D(t):An(e).pipe(y(r=>Pp(r,e)),d(r=>(Ys.set(e.toString(),r),r)))}function Js(e,t){let{sitemap$:r}=t;if(!(e instanceof HTMLAnchorElement))return w;if(!(X("navigation.instant.preview")||e.hasAttribute("data-preview")))return w;e.removeAttribute("title");let n=oe([cr(e),Dt(e).pipe(ke(1))]).pipe(d(([i,a])=>i||a),ce(),O(i=>i));return Rt([r,n]).pipe(y(([i])=>{let a=new URL(e.href);return a.search=a.hash="",i.has(`${a}`)?D(a):w}),y(i=>Ip(i)),y(i=>{let a=e.hash?`article [id="${decodeURIComponent(e.hash.slice(1))}"]`:"article h1",s=we(a,i);return typeof s=="undefined"?w:D($p(s))})).pipe(y(i=>{let a=new F(s=>{let c=$n(...i);return s.next(c),document.body.append(c),()=>c.remove()});return Fr(e,k({content$:a},t))}))}var Xs=".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.marker{fill:var(--md-mermaid-edge-color);stroke:var(--md-mermaid-edge-color)}.edgeLabel .label rect{fill:#0000}.flowchartTitleText{fill:var(--md-mermaid-label-fg-color)}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel p,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel p{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color)}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}.classDiagramTitleText{fill:var(--md-mermaid-label-fg-color)}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs marker.marker.composition.class path,defs marker.marker.dependency.class path,defs marker.marker.extension.class path{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs marker.marker.aggregation.class path{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}.statediagramTitleText{fill:var(--md-mermaid-label-fg-color)}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.nodeLabel p{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}a .nodeLabel{text-decoration:underline}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs [id$=-barbEnd]{fill:var(--md-mermaid-edge-color);stroke:var(--md-mermaid-edge-color)}[id^=entity] path,[id^=entity] rect{fill:var(--md-default-bg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs .marker.oneOrMore.er *,defs .marker.onlyOne.er *,defs .marker.zeroOrMore.er *,defs .marker.zeroOrOne.er *{stroke:var(--md-mermaid-edge-color)!important}text:not([class]):last-child{fill:var(--md-mermaid-label-fg-color)}.actor{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color);font-family:var(--md-mermaid-font-family)}.actor-line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{stroke:none;font-family:var(--md-mermaid-font-family)!important}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan,.sectionTitle{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}[id$=-arrowhead] path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-sequence-label-fg-color);font-family:var(--md-mermaid-font-family)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}[id$=-sequencenumber],defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}[class^=activation]{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-label-fg-color);stroke-width:1.5px}";var Io,jp=0;function Fp(){return typeof mermaid=="undefined"||mermaid instanceof Element?it("https://unpkg.com/mermaid@11/dist/mermaid.min.js"):D(void 0)}function Zs(e){return e.classList.remove("mermaid"),Io||(Io=Fp().pipe(P(()=>mermaid.initialize({startOnLoad:!1,themeCSS:Xs,sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),d(()=>{}),re(1))),Io.subscribe(()=>ut(null,null,function*(){e.classList.add("mermaid");let t=`__mermaid_${jp++}`,r=A("div",{class:"mermaid"}),n=e.textContent,{svg:o,fn:i}=yield mermaid.render(t,n),a=r.attachShadow({mode:"closed"});a.innerHTML=o,e.replaceWith(r),i==null||i(a)})),Io.pipe(d(()=>({ref:e})))}var Qs=A("table");function ec(e){return e.replaceWith(Qs),Qs.replaceWith(As(e)),D({ref:e})}function Up(e){let t=e.find(r=>r.checked)||e[0];return R(...e.map(r=>b(r,"change").pipe(d(()=>Y(`label[for="${r.id}"]`))))).pipe(J(Y(`label[for="${t.id}"]`)),d(r=>({active:r})))}function tc(e,{viewport$:t,target$:r}){let n=Y(".tabbed-labels",e),o=$(":scope > input",e),i=Ao("prev");e.append(i);let a=Ao("next");return e.append(a),j(()=>{let s=new I,c=s.pipe(be(),_e(!0));oe([s,Re(e),St(e)]).pipe(Q(c),Xe(1,je)).subscribe({next([{active:l},u]){let f=Tt(l),{width:p}=Ae(l);e.style.setProperty("--md-indicator-x",`${f.x}px`),e.style.setProperty("--md-indicator-width",`${p}px`);let m=dn(n);(f.xm.x+u.width)&&n.scrollTo({left:Math.max(0,f.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),oe([Wt(n),Re(n)]).pipe(Q(c)).subscribe(([l,u])=>{let f=Ar(n);i.hidden=l.x<16,a.hidden=l.x>f.width-u.width-16}),R(b(i,"click").pipe(d(()=>-1)),b(a,"click").pipe(d(()=>1))).pipe(Q(c)).subscribe(l=>{let{width:u}=Ae(n);n.scrollBy({left:u*l,behavior:"smooth"})}),r.pipe(Q(c),O(l=>o.includes(l))).subscribe(l=>l.click()),n.classList.add("tabbed-labels--linked");for(let l of o){let u=Y(`label[for="${l.id}"]`);u.replaceChildren(A("a",{href:`#${u.htmlFor}`,tabIndex:-1},...Array.from(u.childNodes))),b(u.firstElementChild,"click").pipe(Q(c),O(f=>!(f.metaKey||f.ctrlKey)),P(f=>{f.preventDefault(),f.stopPropagation()})).subscribe(()=>{history.replaceState({},"",`#${u.htmlFor}`),u.click()})}return X("content.tabs.link")&&s.pipe(ke(1),fe(t)).subscribe(([{active:l},{offset:u}])=>{let f=l.innerText.trim();if(l.hasAttribute("data-md-switching"))l.removeAttribute("data-md-switching");else{let p=e.offsetTop-u.y;for(let h of $("[data-tabs]"))for(let v of $(":scope > input",h)){let _=Y(`label[for="${v.id}"]`);if(_!==l&&_.innerText.trim()===f){_.setAttribute("data-md-switching",""),v.click();break}}window.scrollTo({top:e.offsetTop-p});let m=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([f,...m])])}}),s.pipe(Q(c)).subscribe(()=>{for(let l of $("audio, video",e))l.offsetWidth&&l.autoplay?l.play().catch(()=>{}):l.pause()}),Up(o).pipe(P(l=>s.next(l)),q(()=>s.complete()),d(l=>k({ref:e},l)))}).pipe(It(ye))}function rc(e,t){let{viewport$:r,target$:n,print$:o}=t;return R(...$(".annotate:not(.highlight)",e).map(i=>Is(i,{target$:n,print$:o})),...$(".pyodide",e).map(i=>qs(i)),...$("pre:not(.mermaid) > code",e).filter(i=>!i.closest(".pyodide")).map(i=>Us(i,{target$:n,print$:o})),...$("a",e).map(i=>Js(i,t)),...$("pre.mermaid",e).map(i=>Zs(i)),...[$(".glightbox",e)].filter(i=>i.length>0).map(i=>Bs(i)),...$("table:not([class])",e).map(i=>ec(i)),...$("details",e).map(i=>Ns(i,{target$:n,print$:o})),...$("[data-tabs]",e).map(i=>tc(i,{viewport$:r,target$:n})),...$("[title]:not([data-preview])",e).filter(()=>X("content.tooltips")).map(i=>Ye(i,{viewport$:r})),...$(".footnote-ref",e).filter(()=>X("content.footnote.tooltips")).map(i=>Fr(i,{content$:new F(a=>{let s=new URL(i.href).hash.slice(1),c=Array.from(document.getElementById(s).cloneNode(!0).children),l=$n(...c);return a.next(l),document.body.append(l),()=>l.remove()}),viewport$:r})))}function Np(e,{alert$:t}){return t.pipe(y(r=>R(D(!0),D(!1).pipe(Ft(2e3))).pipe(d(n=>({message:r,active:n})))))}function nc(e,t){let r=Y(".md-typeset",e);return j(()=>{let n=new I;return n.subscribe(({message:o,active:i})=>{e.classList.toggle("md-dialog--active",i),r.textContent=o}),Np(e,t).pipe(P(o=>n.next(o)),q(()=>n.complete()),d(o=>k({ref:e},o)))})}function Dp({viewport$:e}){if(!X("header.autohide"))return D(!1);let t=e.pipe(d(({offset:{y:o}})=>o),jt(2,1),d(([o,i])=>[oMath.abs(i-o.y)>100),d(([,[o]])=>o),ce()),n=Cn("search");return oe([e,n]).pipe(d(([{offset:o},i])=>o.y>400&&!i),ce(),y(o=>o?r:D(!1)),J(!1))}function oc(e,t){return j(()=>oe([Re(e),Dp(t)])).pipe(d(([{height:r},n])=>({height:r,hidden:n})),ce((r,n)=>r.height===n.height&&r.hidden===n.hidden),re(1))}function ic(e,{viewport$:t,header$:r,main$:n}){return j(()=>{let o=new I,i=o.pipe(be(),_e(!0));o.pipe(ve("active"),Ze(r)).subscribe(([{active:s},{hidden:c}])=>{e.classList.toggle("md-header--shadow",s&&!c),e.hidden=c});let a=he($("[title]",e)).pipe(O(()=>X("content.tooltips")),se(s=>Ye(s,{viewport$:t})));return n.subscribe(o),r.pipe(Q(i),d(s=>k({ref:e},s)),Ut(a.pipe(Q(i))))})}function Wp(e,{viewport$:t,header$:r}){return Hn(e,{viewport$:t,header$:r}).pipe(d(({offset:{y:n}})=>{let{height:o}=Ae(e);return{active:o>0&&n>=o}}),ve("active"))}function ac(e,t){return j(()=>{let r=new I;r.subscribe({next({active:o}){e.classList.toggle("md-header__title--active",o)},complete(){e.classList.remove("md-header__title--active")}});let n=we(".md-content h1");return typeof n=="undefined"?w:Wp(n,t).pipe(P(o=>r.next(o)),q(()=>r.complete()),d(o=>k({ref:e},o)))})}function sc(e,{viewport$:t,header$:r}){let n=r.pipe(d(({height:i})=>i),ce()),o=n.pipe(y(()=>Re(e).pipe(d(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),ve("bottom"))));return oe([n,o,t]).pipe(d(([i,{top:a,bottom:s},{offset:{y:c},size:{height:l}}])=>(l=Math.max(0,l-Math.max(0,a-c,i)-Math.max(0,l+c-s)),{offset:a-i,height:l,active:a-i<=c})),ce((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function Vp(e){let t=__md_get("__palette")||{index:e.findIndex(n=>matchMedia(n.getAttribute("data-md-color-media")).matches)},r=Math.max(0,Math.min(t.index,e.length-1));return D(...e).pipe(se(n=>b(n,"change").pipe(d(()=>n))),J(e[r]),d(n=>({index:e.indexOf(n),color:{media:n.getAttribute("data-md-color-media"),scheme:n.getAttribute("data-md-color-scheme"),primary:n.getAttribute("data-md-color-primary"),accent:n.getAttribute("data-md-color-accent")}})),re(1))}function cc(e){let t=$("input",e),r=A("meta",{name:"theme-color"});document.head.appendChild(r);let n=A("meta",{name:"color-scheme"});document.head.appendChild(n);let o=jr("(prefers-color-scheme: light)");return j(()=>{let i=new I;return i.subscribe(a=>{if(document.body.setAttribute("data-md-color-switching",""),a.color.media==="(prefers-color-scheme)"){let s=matchMedia("(prefers-color-scheme: light)"),c=document.querySelector(s.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");a.color.scheme=c.getAttribute("data-md-color-scheme"),a.color.primary=c.getAttribute("data-md-color-primary"),a.color.accent=c.getAttribute("data-md-color-accent")}for(let[s,c]of Object.entries(a.color))document.body.setAttribute(`data-md-color-${s}`,c);for(let s=0;sa.key==="Enter"),fe(i,(a,s)=>s)).subscribe(({index:a})=>{a=(a+1)%t.length,t[a].click(),t[a].focus()}),i.pipe(d(()=>{let a=bt("header"),s=window.getComputedStyle(a);return n.content=s.colorScheme,s.backgroundColor.match(/\d+/g).map(c=>(+c).toString(16).padStart(2,"0")).join("")})).subscribe(a=>r.content=`#${a}`),i.pipe(Ie(ye)).subscribe(()=>{document.body.removeAttribute("data-md-color-switching")}),Vp(t).pipe(Q(o.pipe(ke(1))),Nt(),P(a=>i.next(a)),q(()=>i.complete()),d(a=>k({ref:e},a)))})}function lc(e,{progress$:t}){return j(()=>{let r=new I;return r.subscribe(({value:n})=>{e.style.setProperty("--md-progress-value",`${n}`)}),t.pipe(P(n=>r.next({value:n})),q(()=>r.complete()),d(n=>({ref:e,value:n})))})}var uc='.m u{text-decoration:underline!important;text-decoration-style:wavy!important;text-decoration-thickness:1px!important}.p{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-backdrop)/var(--alpha-lighter));cursor:pointer;height:100%;pointer-events:auto;position:absolute;transition:opacity .25s;width:100%}.p.v{opacity:0;pointer-events:none;transition:opacity .35s}.r{align-items:center;background-color:initial;border:none;border-radius:var(--space-2);cursor:pointer;display:flex;flex-shrink:0;font-family:var(--font-family);height:36px;justify-content:center;outline:none;padding:0;position:relative;transition:background-color .25s,color .25s;width:36px;z-index:1}.r svg{stroke:rgb(var(--color-foreground));height:18px;opacity:.5;width:18px}.r:before{background-color:rgb(var(--color-background-subtle));border-radius:var(--border-radius-2);content:"";inset:0;opacity:0;position:absolute;transform:scale(.75);transition:transform 125ms,opacity 125ms;z-index:0}.r:hover:before{opacity:1;transform:scale(1)}.r.c{cursor:auto}.r.c:before{display:none}.n{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-background)/var(--alpha-light));border:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));border-radius:var(--space-3);box-shadow:0 0 60px #0000000d;display:flex;height:480px;overflow:hidden;pointer-events:auto;position:absolute;transition:transform .25s cubic-bezier(.16,1,.3,1),opacity .25s;width:640px}.n.l{opacity:0;pointer-events:none;transform:scale(1.1);transition:transform .25s .15s,opacity .15s}@media (max-width:680px){.n{border-radius:0;height:100%;width:100%}}.y{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;min-width:0}@keyframes d{0%{transform:scale(0)}50%{transform:scale(1.2)}to{transform:scale(1)}}.w{animation:d .25s ease-in-out;background:var(--color-highlight);border-radius:100%;color:#fff;font-size:8px;font-weight:700;height:12px;padding-top:1px;position:absolute;right:4px;top:4px;width:12px}.e{background-color:rgb(var(--color-background-subtle)/var(--alpha-lighter));border-left:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));flex-shrink:0;overflow-y:scroll;position:relative;transition:width .35s cubic-bezier(.16,1,.3,1),opacity .25s;width:200px}.e>*{transform:translate(0);transition:transform .25s cubic-bezier(.16,1,.3,1)}.e.l{opacity:0;width:0}.e.l>*{transform:translate(-48px)}@media (max-width:680px){.e{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-background-subtle)/var(--alpha-light));box-shadow:0 0 60px #00000026;height:100%;position:absolute;right:0;top:0}}.k{border-bottom:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));display:flex;gap:var(--space-1);padding:var(--space-2)}.z{-webkit-overflow-scrolling:touch;flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}.j{padding:8px 10px}.X{color:rgb(var(--color-foreground)/var(--alpha-light));padding:var(--space-2);position:absolute;width:100%}.F,.X{display:flex;flex-direction:column}.F{gap:2px;list-style:none;padding:0}.F,.I{margin:0}.I{font-size:16px;font-weight:400}.I,.R{padding:8px}.R{font-size:14px;margin:4px 0 0;opacity:.5}.R,.o{font-size:12px}.o{cursor:pointer;display:flex;padding:4px 8px;position:relative}.o:before{background-color:var(--color-highlight-transparent);border-radius:var(--space-1);content:"";inset:0;opacity:0;position:absolute;transform:scale(.75);transition:transform 125ms,opacity 125ms;z-index:0}.o.g:before,.o:hover:before{opacity:1;transform:scale(1)}.o.g,.o:hover{color:var(--color-highlight)}.q{flex-grow:1}.A,.q{position:relative}.A{font-weight:700}.f{flex-grow:1}.f input{background:#0000;border:none;color:rgb(var(--color-foreground));font-family:var(--font-family);font-size:16px;height:100%;letter-spacing:-.25px;outline:none;width:100%}.b{color:rgb(var(--color-foreground)/var(--alpha-light));display:flex;flex-direction:column;gap:2px;line-height:1.3;list-style:none;margin:var(--space-2);margin-top:0;padding:0}.B,.b li{margin:0}.B{color:rgb(var(--color-foreground)/var(--alpha-lighter));font-size:12px;margin-top:var(--space-2);padding:0 18px}.i{border-radius:var(--space-2);color:inherit;cursor:pointer;display:flex;flex-direction:row;flex-grow:1;padding:8px 10px;position:relative;text-decoration:none}.i:before{background-color:rgb(var(--color-background-subtle));border-radius:var(--border-radius-2);content:"";display:block;inset:0;opacity:0;position:absolute;transform:scale(.9);transition:transform 125ms,opacity 125ms;z-index:0}@media (pointer:fine){.i.h:before,.i:hover:before{opacity:1;transform:scale(1)}}.i mark{background:#0000;color:var(--color-highlight)}.i u{text-decoration:underline}.C{flex-direction:column;flex-grow:1;gap:5.5px}.C,.D{display:flex;min-width:0}.D{align-items:flex-start;gap:var(--space-2);justify-content:space-between}.s{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:6px;justify-content:flex-end;margin-right:-8px;margin-top:auto;opacity:0;position:relative;transform:translate(-2px);transition:transform 125ms,opacity 125ms;z-index:0}@media (pointer:fine){.h>.s,:hover>.s{opacity:1;transform:none}}.x{font-size:14px;margin:0;position:relative}.x code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);font-size:13px;padding:2px 4px}.t{color:rgb(var(--color-foreground)/.45);display:inline-flex;flex:1 1 auto;flex-wrap:wrap;font-size:12px;gap:var(--space-1);list-style:none;margin:0;min-width:0;padding:0;position:relative}.t li{white-space:nowrap}.t li:after{content:"/";display:inline;margin-left:var(--space-1)}.t li:last-child:after{content:"";display:none}.u{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:rgb(var(--color-foreground));display:-webkit-box;font-size:12px;line-height:1.5;overflow:hidden;position:relative}.u code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);padding:2px 4px}.E,.u code{font-size:11px}.E{color:rgb(var(--color-foreground)/.45);line-height:1;white-space:nowrap;z-index:1}.a{--space-1:4px;--space-2:calc(var(--space-1)*2);--space-3:calc(var(--space-2)*2);--space-4:calc(var(--space-3)*2);--space-5:calc(var(--space-4)*2);--alpha-light:.7;--alpha-lighter:.54;--alpha-lightest:.07;--color-highlight:var(--md-accent-fg-color,#526cfe);--color-highlight-transparent:var( --md-accent-fg-color--transparent,#526cfe1a );--border-radius-1:var(--space-1);--border-radius-2:var(--space-2);--border-radius-3:calc(var(--space-1) + var(--space-2));--font-family:var( --md-text-font-family,Inter,Roboto Flex,system-ui,sans-serif );--font-size:16px;--line-height:1.5;--letter-spacing:-.5px;-webkit-font-smoothing:antialiased;align-items:center;display:flex;font-family:var(--font-family);font-size:var(--font-size);height:100vh;justify-content:center;letter-spacing:var(--letter-spacing);line-height:var(--line-height);pointer-events:none;position:absolute;width:100vw}@media (pointer:coarse){.a{height:-webkit-fill-available}}.a *,.a :after,.a :before{box-sizing:border-box}';function pc(e,{index$:t}){let r=Ne(),n=document.createElement("div");document.body.appendChild(n),n.style.position="fixed",n.style.height="100%",n.style.top="0",n.style.zIndex="4";let o=n.attachShadow({mode:"open"});o.appendChild(A("style",{},uc.toString()));try{is(r.search,{highlight:r.features.includes("search.highlight")}),he(t).subscribe(i=>{for(let a of i.items)a.location=new URL(`./${a.location}`,r.base).toString();cs(i,o)}),b(e,"click").subscribe(()=>{wo()}),Cn("search").pipe(ke(1)).subscribe(()=>wo())}catch(i){e.hidden=!0;let a=Y("label[for=__search]");a.hidden=!0}return Be}var fc=xr(ko());function mc(e,{index$:t,location$:r}){return oe([t,r.pipe(J(Ue()),O(n=>!!n.searchParams.get("h")))]).pipe(d(([n,o])=>qp(n.config)(o.searchParams.get("h"))),d(n=>{var a;let o=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let s=i.nextNode();s;s=i.nextNode())if((a=s.parentElement)!=null&&a.offsetHeight){let c=s.textContent,l=n(c);l.length>c.length&&o.set(s,l)}for(let[s,c]of o){let{childNodes:l}=A("span",null,c);s.replaceWith(...Array.from(l))}return{ref:e,nodes:o}}))}function qp(e){let t=e.separator.split("|").map(o=>o.replace(/(\(\?[!=<][^)]+\))/g,"").length===0?"\uFFFD":o).join("|"),r=new RegExp(t,"img"),n=(o,i,a)=>`${i}${a}`;return o=>{o=o.replace(/\s+/g," ").replace(/&/g,"&").trim();let i=new RegExp(`(^|${e.separator}|)(${o.split(r).map(a=>a.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")).filter(a=>a.length>=2).join("|")})`,"img");return a=>(0,fc.default)(a).replace(i,n).replace(/<\/mark>(\s+)]*>/img,"$1")}}function Kp(e,{viewport$:t,main$:r}){let n=e.closest(".md-grid"),o=n.offsetTop-n.parentElement.offsetTop;return oe([r,t]).pipe(d(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(o,Math.max(0,s-i))-o,{height:a,locked:s>=i+o})),ce((i,a)=>i.height===a.height&&i.locked===a.locked))}function Ro(e,n){var o=n,{header$:t}=o,r=_r(o,["header$"]);let i=Y(".md-sidebar__scrollwrap",e),{y:a}=Tt(i);return j(()=>{let s=new I,c=s.pipe(be(),_e(!0)),l=s.pipe(Xe(0,je));return l.pipe(fe(t)).subscribe({next([{height:u},{height:f}]){i.style.height=`${u-2*a}px`,e.style.top=`${f}px`},complete(){i.style.height="",e.style.top=""}}),l.pipe(Lr()).subscribe(()=>{for(let u of $(".md-nav__link--active[href]",e)){if(!u.clientHeight)continue;let f=u.closest(".md-sidebar__scrollwrap");if(typeof f!="undefined"){let p=u.offsetTop-f.offsetTop,{height:m}=Ae(f);f.scrollTo({top:p-m/2})}}}),he($("label[tabindex]",e)).pipe(se(u=>b(u,"click").pipe(Ie(ye),d(()=>u),Q(c)))).subscribe(u=>{let f=Y(`[id="${u.htmlFor}"]`);Y(`[aria-labelledby="${u.id}"]`).setAttribute("aria-expanded",`${f.checked}`)}),X("content.tooltips")&&he($("abbr[title]",e)).pipe(se(u=>Ye(u,{viewport$})),Q(c)).subscribe(),Kp(e,r).pipe(P(u=>s.next(u)),q(()=>s.complete()),d(u=>k({ref:e},u)))})}function dc(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return Rt(et(`${r}/releases/latest`).pipe(me(()=>w),d(n=>({version:n.tag_name})),ot({})),et(r).pipe(me(()=>w),d(n=>({stars:n.stargazers_count,forks:n.forks_count})),ot({}))).pipe(d(([n,o])=>k(k({},n),o)))}else{let r=`https://api.github.com/users/${e}`;return et(r).pipe(d(n=>({repositories:n.public_repos})),ot({}))}}function hc(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return Rt(et(`${r}/releases/permalink/latest`).pipe(me(()=>w),d(({tag_name:n})=>({version:n})),ot({})),et(r).pipe(me(()=>w),d(({star_count:n,forks_count:o})=>({stars:n,forks:o})),ot({}))).pipe(d(([n,o])=>k(k({},n),o)))}function vc(e){let t=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);if(t){let[,r,n]=t;return dc(r,n)}if(t=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i),t){let[,r,n]=t;return hc(r,n)}return w}var Bp;function Gp(e){return Bp||(Bp=j(()=>{let t=__md_get("__source",sessionStorage);if(t)return D(t);if(Te("consent").length){let n=__md_get("__consent");if(!(n&&n.github))return w}return vc(e.href).pipe(P(n=>__md_set("__source",n,sessionStorage)))}).pipe(me(()=>w),O(t=>Object.keys(t).length>0),d(t=>({facts:t})),re(1)))}function bc(e){let t=Y(":scope > :last-child",e);return j(()=>{let r=new I;return r.subscribe(({facts:n})=>{t.appendChild(ks(n)),t.classList.add("md-source__repository--active")}),Gp(e).pipe(P(n=>r.next(n)),q(()=>r.complete()),d(n=>k({ref:e},n)))})}function Yp(e,{viewport$:t,header$:r}){return Re(document.body).pipe(y(()=>Hn(e,{header$:r,viewport$:t})),d(({offset:{y:n}})=>({hidden:n>=10})),ve("hidden"))}function gc(e,t){return j(()=>{let r=new I;return r.subscribe({next({hidden:n}){e.hidden=n},complete(){e.hidden=!1}}),(X("navigation.tabs.sticky")?D({hidden:!1}):Yp(e,t)).pipe(P(n=>r.next(n)),q(()=>r.complete()),d(n=>k({ref:e},n)))})}function Jp(e,{viewport$:t,header$:r}){let n=new Map,o=$(".md-nav__link",e);for(let s of o){let c=decodeURIComponent(s.hash.substring(1)),l=we(`[id="${c}"]`);typeof l!="undefined"&&n.set(s,l)}let i=r.pipe(ve("height"),d(({height:s})=>{let c=bt("main"),l=Y(":scope > :first-child",c);return s+.9*(l.offsetTop-c.offsetTop)}),xe());return Re(document.body).pipe(ve("height"),y(s=>j(()=>{let c=[];return D([...n].reduce((l,[u,f])=>{for(;c.length&&n.get(c[c.length-1]).tagName>=f.tagName;)c.pop();let p=f.offsetTop;for(;!p&&f.parentElement;)f=f.parentElement,p=f.offsetTop;let m=f.offsetParent;for(;m;m=m.offsetParent)p+=m.offsetTop;return l.set([...c=[...c,u]].reverse(),p)},new Map))}).pipe(d(c=>new Map([...c].sort(([,l],[,u])=>l-u))),Ze(i),y(([c,l])=>t.pipe(Mr(([u,f],{offset:{y:p},size:m})=>{let h=p+m.height>=Math.floor(s.height);for(;f.length;){let[,v]=f[0];if(v-l=p&&!h)f=[u.pop(),...f];else break}return[u,f]},[[],[...c]]),ce((u,f)=>u[0]===f[0]&&u[1]===f[1])))))).pipe(d(([s,c])=>({prev:s.map(([l])=>l),next:c.map(([l])=>l)})),J({prev:[],next:[]}),jt(2,1),d(([s,c])=>s.prev.length{let i=new I,a=i.pipe(be(),_e(!0));i.subscribe(({prev:c,next:l})=>{for(let[u]of l)u.classList.remove("md-nav__link--passed"),u.classList.remove("md-nav__link--active");for(let[u,[f]]of c.entries())f.classList.add("md-nav__link--passed"),f.classList.toggle("md-nav__link--active",u===c.length-1)});let s=we(".md-sidebar--secondary");if(typeof s!="undefined"&&b(document.body,"click").subscribe(c=>{let l=c.target;if(!s.contains(l)){let u=we(".md-nav__toggle",s);typeof u!="undefined"&&(u.checked=!1)}}),X("toc.follow")){let c=R(t.pipe(Ge(1),d(()=>{})),t.pipe(Ge(250),d(()=>"smooth")));i.pipe(O(({prev:l})=>l.length>0),Ze(n.pipe(Ie(ye))),fe(c)).subscribe(([[{prev:l}],u])=>{let[f]=l[l.length-1];if(f.offsetHeight){let p=Ii(f);if(typeof p!="undefined"){let m=f.offsetTop-p.offsetTop,{height:h}=Ae(p);p.scrollTo({top:m-h/2,behavior:u})}}})}return X("navigation.tracking")&&t.pipe(Q(a),ve("offset"),Ge(250),ke(1),Q(o.pipe(ke(1))),Nt({delay:250}),fe(i)).subscribe(([,{prev:c}])=>{let l=Ue(),u=c[c.length-1];if(u&&u.length){let[f]=u,{hash:p}=new URL(f.href);l.hash!==p&&(l.hash=p,history.replaceState({},"",`${l}`))}else l.hash="",history.replaceState({},"",`${l}`)}),Jp(e,{viewport$:t,header$:r}).pipe(P(c=>i.next(c)),q(()=>i.complete()),d(c=>k({ref:e},c)))})}function Xp(e,{viewport$:t,main$:r,target$:n}){let o=t.pipe(d(({offset:{y:a}})=>a),jt(2,1),d(([a,s])=>a>s&&s>0),ce()),i=r.pipe(d(({active:a})=>a));return oe([i,o]).pipe(d(([a,s])=>!(a&&s)),ce(),Q(n.pipe(ke(1))),_e(!0),Nt({delay:250}),d(a=>({hidden:a})))}function _c(e,{viewport$:t,header$:r,main$:n,target$:o}){let i=new I,a=i.pipe(be(),_e(!0));return i.subscribe({next({hidden:s}){e.hidden=s,s?(e.setAttribute("tabindex","-1"),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.top="",e.hidden=!0,e.removeAttribute("tabindex")}}),r.pipe(Q(a),ve("height")).subscribe(({height:s})=>{e.style.top=`${s+16}px`}),b(e,"click").subscribe(s=>{s.preventDefault(),window.scrollTo({top:0})}),Xp(e,{viewport$:t,main$:n,target$:o}).pipe(P(s=>i.next(s)),q(()=>i.complete()),d(s=>k({ref:e},s)))}function xc(e,t){return e.protocol=t.protocol,e.hostname=t.hostname,t.port&&(e.port=t.port),e}function Zp(e,t){let r=new Map;for(let n of $("url",e)){let o=Y("loc",n),i=[xc(new URL(o.textContent),t)];r.set(`${i[0]}`,i);for(let a of $("[rel=alternate]",n)){let s=a.getAttribute("href");s!=null&&i.push(xc(new URL(s),t))}}return r}function vr(e){return hs(new URL("sitemap.xml",e)).pipe(d(t=>Zp(t,new URL(e))),me(()=>D(new Map)),xe())}function wc({document$:e}){let t=new Map;e.pipe(y(()=>$("link[rel=alternate]")),d(r=>new URL(r.href)),O(r=>!t.has(r.toString())),se(r=>vr(r).pipe(d(n=>[r,n]),me(()=>w)))).subscribe(([r,n])=>{t.set(r.toString().replace(/\/$/,""),n)}),b(document.body,"click").pipe(O(r=>!r.metaKey&&!r.ctrlKey),y(r=>{if(r.target instanceof Element){let n=r.target.closest("a");if(n&&!n.target){let o=[...t].find(([f])=>n.href.startsWith(`${f}/`));if(typeof o=="undefined")return w;let[i,a]=o,s=Ue();if(s.href.startsWith(i))return w;let c=Ne(),l=s.href.replace(c.base,"");l=`${i}/${l}`;let u=a.has(l.split("#")[0])?new URL(l,c.base):new URL(i);return r.preventDefault(),D(u)}}return w})).subscribe(r=>vt(r,!0))}var jo=xr(Ho());function Qp(e){e.setAttribute("data-md-copying","");let t=e.closest("[data-copy]"),r=t?t.getAttribute("data-copy"):e.innerText;return e.removeAttribute("data-md-copying"),r.trimEnd()}function Ec({alert$:e}){jo.default.isSupported()&&new F(t=>{new jo.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||Qp(Y(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(P(t=>{t.trigger.focus()}),d(()=>Gt("clipboard.copied"))).subscribe(e)}function Tc(e,t){if(!(e.target instanceof Element))return w;let r=e.target.closest("a");if(r===null)return w;if(r.target||e.metaKey||e.ctrlKey)return w;let n=new URL(r.href);return n.search=n.hash="",t.has(`${n}`)?(e.preventDefault(),D(r)):w}function Sc(e){let t=new Map;for(let r of $(":scope > *",e.head))t.set(r.outerHTML,r);return t}function Oc(e){for(let t of $("[href], [src]",e))for(let r of["href","src"]){let n=t.getAttribute(r);if(n&&!/^(?:[a-z]+:)?\/\//i.test(n)){t[r]=t[r];break}}return D(e)}function ef(e){var r;if(e.tagName!=="STYLE")return!1;let t=(r=e.textContent)!=null?r:"";return t.includes(".ace_editor")||t.includes(".ace-zensical")||t.includes(".ace_scroller")||t.includes(".ace_gutter")}function tf(e){for(let n of["[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=outdated]","[data-md-component=logo]","[data-md-component=skip]",...X("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let o=we(n),i=we(n,e);typeof o!="undefined"&&typeof i!="undefined"&&o.replaceWith(i)}let t=Sc(document);for(let[n,o]of Sc(e))t.has(n)?t.delete(n):document.head.appendChild(o);for(let n of t.values()){let o=n.getAttribute("name");o!=="theme-color"&&o!=="color-scheme"&&!ef(n)&&n.remove()}let r=bt("container");return nt($("script",r)).pipe(y(n=>{let o=e.createElement("script");if(n.src){for(let i of n.getAttributeNames())o.setAttribute(i,n.getAttribute(i));return n.replaceWith(o),new F(i=>{o.onload=()=>i.complete()})}else return o.textContent=n.textContent,n.replaceWith(o),w}),be(),_e(document))}function Lc({sitemap$:e,location$:t,viewport$:r,progress$:n}){if(location.protocol==="file:")return Be;D(document).subscribe(Oc);let o=b(document.body,"click").pipe(Ze(e),y(([s,c])=>Tc(s,c)),d(({href:s})=>new URL(s)),xe()),i=b(window,"popstate").pipe(d(Ue),xe());o.pipe(fe(r)).subscribe(([s,{offset:c}])=>{history.replaceState(c,""),history.pushState(null,"",s)}),R(o,i).subscribe(t);let a=t.pipe(J(Ue()),mn(),O(([s,c])=>s.pathname!==c.pathname),d(([,s])=>s),y(s=>An(s,{progress$:n}).pipe(me(()=>(vt(s,!0),w)))),y(Oc),y(tf),xe());return R(a.pipe(fe(t,(s,c)=>c)),a.pipe(y(()=>t),ve("hash")),t.pipe(J(Ue()),mn(),O(([s,c])=>s.pathname===c.pathname&&s.hash!==c.hash),d(([,s])=>s)),t.pipe(ce((s,c)=>s.pathname===c.pathname&&s.hash===c.hash),y(()=>o),P(()=>history.back()))).subscribe(s=>{var c,l;history.state!==null||!s.hash?window.scrollTo(0,(l=(c=history.state)==null?void 0:c.y)!=null?l:0):(history.scrollRestoration="auto",fs(s.hash),history.scrollRestoration="manual")}),t.subscribe(()=>{history.scrollRestoration="manual"}),b(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}),r.pipe(ve("offset"),Ge(100)).subscribe(({offset:s})=>{history.replaceState(s,"")}),X("navigation.instant.prefetch")&&R(b(document.body,"mousemove"),b(document.body,"focusin")).pipe(Ze(e),y(([s,c])=>Tc(s,c)),Ge(25),eo(({href:s})=>s),fn(s=>{let c=document.createElement("link");return c.rel="prefetch",c.href=s.toString(),document.head.appendChild(c),b(c,"load").pipe(d(()=>c),Me(1))})).subscribe(s=>s.remove()),a}function Mc(e){var u;let{selectedVersionSitemap:t,selectedVersionBaseURL:r,currentLocation:n,currentBaseURL:o}=e,i=(u=Fo(o))==null?void 0:u.pathname;if(i===void 0)return;let a=rf(n.pathname,i);if(a===void 0)return;let s=of(t.keys());if(!t.has(s))return;let c=Fo(a,s);if(!c||!t.has(c.href))return;let l=Fo(a,r);if(l)return l.hash=n.hash,l.search=n.search,l}function Fo(e,t){try{return new URL(e,t)}catch(r){return}}function rf(e,t){if(e.startsWith(t))return e.slice(t.length)}function nf(e,t){let r=Math.min(e.length,t.length),n;for(n=0;nw)),n=r.pipe(d(o=>{let[,i]=t.base.match(/([^/]+)\/?$/);return o.find(({version:a,aliases:s})=>a===i||s.includes(i))||o[0]}));r.pipe(d(o=>new Map(o.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),y(o=>b(document.body,"click").pipe(O(i=>!i.metaKey&&!i.ctrlKey),fe(n),y(([i,a])=>{if(i.target instanceof Element){let s=i.target.closest("a");if(s&&!s.target&&o.has(s.href)){let c=s.href;return!i.target.closest(".md-version")&&o.get(c)===a?w:(i.preventDefault(),D(new URL(c)))}}return w}),y(i=>vr(i).pipe(d(a=>{var s;return(s=Mc({selectedVersionSitemap:a,selectedVersionBaseURL:i,currentLocation:Ue(),currentBaseURL:t.base}))!=null?s:i})))))).subscribe(o=>vt(o,!0)),oe([r,n]).subscribe(([o,i])=>{Y(".md-header__topic").appendChild(Cs(o,i))}),e.pipe(y(()=>n)).subscribe(o=>{var s;let i=new URL(t.base),a=__md_get("__outdated",sessionStorage,i);if(a===null){a=!0;let c=((s=t.version)==null?void 0:s.default)||"latest";Array.isArray(c)||(c=[c]);e:for(let l of c)for(let u of o.aliases.concat(o.version))if(new RegExp(l,"i").test(u)){a=!1;break e}__md_set("__outdated",a,sessionStorage,i)}if(a)for(let c of Te("outdated"))c.hidden=!1})}function Ac({document$:e,viewport$:t}){e.pipe(y(()=>$(".md-ellipsis")),se(r=>St(r).pipe(Q(e.pipe(ke(1))),O(n=>n),d(()=>r),Me(1))),O(r=>r.offsetWidth{let n=r.innerText,o=r.closest("a")||r;return o.title=n,X("content.tooltips")?Ye(o,{viewport$:t}).pipe(Q(e.pipe(ke(1))),q(()=>o.removeAttribute("title"))):w})).subscribe(),X("content.tooltips")&&e.pipe(y(()=>$(".md-status")),se(r=>Ye(r,{viewport$:t}))).subscribe()}function Cc({document$:e,tablet$:t}){e.pipe(y(()=>$(".md-toggle--indeterminate")),P(r=>{r.indeterminate=!0,r.checked=!1}),se(r=>b(r,"change").pipe(no(()=>r.classList.contains("md-toggle--indeterminate")),d(()=>r))),fe(t)).subscribe(([r,n])=>{r.classList.remove("md-toggle--indeterminate"),n&&(r.checked=!1)})}function af(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Hc({document$:e}){e.pipe(y(()=>$("[data-md-scrollfix]")),P(t=>t.removeAttribute("data-md-scrollfix")),O(af),se(t=>b(t,"touchstart").pipe(d(()=>t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}Object.entries||(Object.entries=function(e){let t=[];for(let r of Object.keys(e))t.push([r,e[r]]);return t});Object.values||(Object.values=function(e){let t=[];for(let r of Object.keys(e))t.push(e[r]);return t});typeof Element!="undefined"&&(Element.prototype.scrollTo||(Element.prototype.scrollTo=function(e,t){typeof e=="object"?(this.scrollLeft=e.left,this.scrollTop=e.top):(this.scrollLeft=e,this.scrollTop=t)}),Element.prototype.replaceWith||(Element.prototype.replaceWith=function(...e){let t=this.parentNode;if(t){e.length===0&&t.removeChild(this);for(let r=e.length-1;r>=0;r--){let n=e[r];typeof n=="string"?n=document.createTextNode(n):n.parentNode&&n.parentNode.removeChild(n),r?t.insertBefore(this.previousSibling,n):t.replaceChild(n,this)}}}));function sf(){return location.protocol==="file:"?it(`${new URL("search.js",In.base)}`).pipe(d(()=>__index),me(()=>Be),re(1)):et(new URL("search.json",In.base))}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var gt=Ai(),Wr=us(),br=ms(Wr),Pc=ls(),qe=_s(),Uo=jr("(min-width: 60em)"),Ic=jr("(min-width: 76.25em)"),Rc=ds(),In=Ne(),jc=we(".md-search")?sf():Be,No=new I;Ec({alert$:No});wc({document$:gt});var Do=new I,Fc=vr(In.base);X("navigation.instant")&&Lc({sitemap$:Fc,location$:Wr,viewport$:qe,progress$:Do}).subscribe(gt);var $c;(($c=In.version)==null?void 0:$c.provider)==="mike"&&kc({document$:gt});R(Wr,br).pipe(Ft(125)).subscribe(()=>{Lo("drawer",!1),Lo("search",!1)});Pc.pipe(O(({mode:e,meta:t})=>e==="global"&&!t)).subscribe(e=>{switch(e.type){case",":case"p":let t=document.querySelector("link[rel=prev]");t instanceof HTMLLinkElement&&vt(t);break;case".":case"n":let r=document.querySelector("link[rel=next]");r instanceof HTMLLinkElement&&vt(r);break;case"/":let n=document.querySelector("[data-md-component=search] button");n instanceof HTMLButtonElement&&n.click();break;case"Enter":let o=Et();o instanceof HTMLLabelElement&&o.click()}});Ac({viewport$:qe,document$:gt});Cc({document$:gt,tablet$:Uo});Hc({document$:gt});var Ct=oc(bt("header"),{viewport$:qe}),Dr=gt.pipe(d(()=>bt("main")),y(e=>sc(e,{viewport$:qe,header$:Ct})),re(1)),cf=R(...Te("consent").map(e=>ws(e,{target$:br})),...Te("dialog").map(e=>nc(e,{alert$:No})),...Te("palette").map(e=>cc(e)),...Te("progress").map(e=>lc(e,{progress$:Do})),...Te("search").map(e=>pc(e,{index$:jc})),...Te("source").map(e=>bc(e))),lf=j(()=>R(...Te("announce").map(e=>xs(e)),...Te("content").map(e=>rc(e,{sitemap$:Fc,viewport$:qe,target$:br,print$:Rc})),...Te("content").map(e=>X("search.highlight")?mc(e,{index$:jc,location$:Wr}):w),...Te("header").map(e=>ic(e,{viewport$:qe,header$:Ct,main$:Dr})),...Te("header-title").map(e=>ac(e,{viewport$:qe,header$:Ct})),...Te("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?To(Ic,()=>Ro(e,{viewport$:qe,header$:Ct,main$:Dr})):To(Uo,()=>Ro(e,{viewport$:qe,header$:Ct,main$:Dr}))),...Te("tabs").map(e=>gc(e,{viewport$:qe,header$:Ct})),...Te("toc").map(e=>yc(e,{viewport$:qe,header$:Ct,main$:Dr,target$:br})),...Te("top").map(e=>_c(e,{viewport$:qe,header$:Ct,main$:Dr,target$:br})))),Uc=gt.pipe(y(()=>lf),Ut(cf),re(1));Uc.subscribe();window.document$=gt;window.location$=Wr;window.target$=br;window.keyboard$=Pc;window.viewport$=qe;window.tablet$=Uo;window.screen$=Ic;window.print$=Rc;window.alert$=No;window.progress$=Do;window.component$=Uc;})(); diff --git a/dist/base.html b/dist/base.html index de0ee778..029d4239 100644 --- a/dist/base.html +++ b/dist/base.html @@ -273,7 +273,7 @@ {% endblock %} {% block scripts %} - + {% for script in config.extra_javascript %} {{ script | script_tag }} {% endfor %} diff --git a/src/assets/javascripts/components/search/client/index.js b/src/assets/javascripts/components/search/client/index.js index a58df616..3d81179b 100644 --- a/src/assets/javascripts/components/search/client/index.js +++ b/src/assets/javascripts/components/search/client/index.js @@ -1,2 +1,2 @@ -function z(e,r,t={}){return{name:e,from:r,meta:t}}function H(e,r){let t=[{value:e,depth:0}];for(let o=0,n=-1,s=0;o>=0;){let{value:i,depth:p}=t[o];if(n<=p&&i.type==="operator"&&i.data.operands.length>0)for(let u=i.data.operands.length;u>0;)t[++o]={value:i.data.operands[--u],depth:p+1};else{let u=r(i,s++,p);if(typeof u<"u")return u;--o}n=p}}var b=class extends Error{constructor(t,o){super(o);this.code=t}};function K(e,r){let t=at(e);for(let o=0;o{let{matches:o}=t;for(let n=0;n{let n=r.get(t);return typeof n>"u"&&r.set(t,n=e(t,...o)),n}}function R(e,r){return Object.defineProperty(r,"name",{value:e}),r}async function Q(e){let r=[];if(typeof e.plugins<"u")for(let t=0;t32)throw new RangeError("Bit format exceeds 32 bits");return e}function Y(e,r,t){let o=Z(e),n=Z(r),s=typeof t<"u"?Z(t):32-o-n;return ge({d:o,f:n,x:s})}var I=[0];for(let e=0;e<32;e++)I.push(I[e]|1<=o&&r{r+=o*o}),Math.sqrt(r)}function he(e,r){e instanceof L?e.data.forEach((t,o)=>{r(t,o)}):e.forEach((t,o)=>{r({start:t,end:t+1,value:1},o)})}var O=class{constructor(r,t=pe(Math.ceil(r/32))){this.size=r;this.data=t}get(r){return this.data[r>>>5]>>>r&1}set(r){this.data[r>>>5]|=1<<(r&31)}forEach(r){let t=this.size&31;for(let o=0;o>>0;for(let t=0;t0;n++){let{value:s,depth:i}=t[--o],p=r(s,n,i);if(typeof p<"u")return p;for(let u=s.children.length;u>0;)t[o++]={value:s.children[--u],depth:i+1}}}async function ue(e,r){let{fields:t,plugins:o=[]}=r,n=Y(e.length,t.length),s=[];for(let u=0;u"u")continue;let m=u<d.onFilterInput?.(x,m,n),c);let l=s[f],a=E();c=Array.isArray(c)?c:[c];for(let x=0;x{let h=l.index.get(g.node);typeof h>"u"&&l.index.set(g.node,h=E());let V=l.terms.length;for(let A=0;Au.onFilterStore?.(p,r,e)),p}function Ie(e,r,t,o={}){let n=[];if(r<0||r>=e.count.fields)return n;let s=e.shards[r],i=new Map,{count:p=1/0,depth:u=1/0}=o;for(let f=0;fu)continue;let x=i.get(c);typeof x>"u"&&i.set(c,x={node:m,children:[]});let d=n;a>0&&(d=i.get(s.terms[l]).children),d.length=e.count.fields)return{documents:o,terms:n};let s=e.shards[t];return r.forEach(i=>{let{occurrences:p}=s.terms[i];for(let u=0;u>>e.space.x>>>e.space.f;o.set(m)}n[t].set(i)}),{documents:o,terms:n}}function be(e){let{documents:r,terms:t}=M(e);F(r,1);for(let o=0;onew O(r.length))}}function me(e,r,t){let{compiler:o,fields:n,plugins:s=[]}=t,{input:i,scope:p,abort:u=!1}=v(s,(m,l)=>l.onFilterQuery?.(m,e,t),r),f={items:[],query:{select:M(e),values:[]}},c=new Map;if(u===!1){let m=o(t),{select:l,values:a}=m(i,e);typeof p<"u"&&N(l.documents,p);let x=new Map;f.query={select:l,values:a},l.terms.forEach((d,g)=>{d.forEach(y=>{let T=e.shards[g],{occurrences:h}=T.terms[y];for(let V=0;V>>e.space.x,_=A>>>e.space.f;if(!l.documents.get(_))continue;let D=x.get(A);typeof D>"u"&&x.set(A,D=new S(E()));let lt=w&I[e.space.x];D.add(lt,y)}})}),l.documents.forEach(d=>{let g={id:d,matches:[]};f.items.push(g),c.set(d,g)}),x.forEach((d,g)=>{let y=g>>>e.space.f,T=g&I[e.space.f];c.get(y).matches.push({id:g,field:n[T].name,value:{filter:d},score:0})})}return v(s,(m,l)=>l.onFilterResult?.(m,e,t),f)}function ee(e){let{fields:r}=e;return(t,o)=>{if(de(t))return t;let n=[be(o)],s=[],i=0;return H(t,({type:p,data:u})=>{switch(p){case"value":let f=r.findIndex(({name:l})=>l===u.field);if(f===-1){n[i++]=M(o);break}let c=u.value;if(typeof c!="object"){let l=new S(E()),a=o.shards[f],x=a.index.get(c);if(typeof x<"u")for(let d=0;dm+1&&i--;){k(n[m].documents,n[i].documents);for(let l=0;lm+1&&i--;){N(n[m].documents,n[i].documents);for(let l=0;lm+1&&i--;)$(n[m].documents,n[i].documents)}}}),{select:n[0],values:s}}}function fe(e){return{name:e.name,data:e.data,onFilterOptions:e.onFilterOptions,onFilterInput:e.onFilterInput,onFilterStore:e.onFilterStore,onFilterQuery:e.onFilterQuery,onFilterResult:e.onFilterResult}}function te(e){return typeof e=="object"&&e!==null&&"type"in e&&"data"in e}function Re(e){return typeof e=="object"&&e!==null&&"select"in e&&"values"in e}function Se(e){return e.normalize("NFKD").toLowerCase()}function Oe(e,r){let t=Math.min(e.length,r.length);for(let o=0;o65535)){let s=r(n=e.codePointAt(t),t);if(typeof s<"u")return s}}function oe(e,r,t=0,o=e.length){let n=E();return ce(e,s=>{n.push(s);let i=r(String.fromCodePoint(...n),n.length);if(typeof i<"u")return i},t,o)}function Pe(e,r,t=0,o=e.length){let n=t;for(let s=0;nt&&r(t,t=n);continue;case 62:t=n+1}n>t&&r(t,n)}function le(e,r,t,o=0){return Pe(e,(n,s)=>r(e,(i,p)=>{o=t({value:e.slice(i,p),index:o,start:i,end:p})},n,s)),o}function ve(e,r,t,o=0){for(let n=0,s=0;n(i.start+=s,i.end+=s,t(i)),o);return o}function Fe(e){let r=new RegExp(e,"gu");return(t,o,n=0,s=t.length)=>{r.lastIndex=n;let i,p=0;do{i=r.exec(t);let u=i?.index??s;n"u")continue;let x=m<g.onTextInput?.(d,x,i),a),a=Array.isArray(a)?a:[a],ve(a,t,d=>{let g=v(s,(y,T)=>T.onTextTokens?.(y),[d]);for(let y=0;y"u"?p.set(T,[x<m.onTextStore?.(f,r,e)),f}function Le(e,r,t){let{documents:o,terms:n}=B(e);return t<0||t>=e.count.fields?{documents:o,terms:n}:(r.forEach(s=>{let{occurrences:i}=e.terms[s];for(let p=0;p>>e.space.x;if((f&I[e.space.f])!==t)continue;let m=f>>>e.space.f;o.set(m)}n.set(s)}),{documents:o,terms:n})}function _e(e,r){let{documents:t,terms:o}=B(e),n=e.space.f+e.space.x;return r.forEach(s=>{let{occurrences:i}=e.terms[s];for(let p=0;p>>n);o.set(s)}),{documents:t,terms:o}}function B(e){return{documents:new O(e.count.documents),terms:new O(e.terms.length)}}function Ne(e,r,t){let{compiler:o,fields:n,plugins:s=[]}=t,{input:i,scope:p,abort:u=!1}=v(s,(m,l)=>l.onTextQuery?.(m,e,t),r),f={items:[],query:{select:B(e),values:[]}},c=new Map;if(u===!1){let m=o(t),{select:l,values:a}=m(i,e);typeof p<"u"&&N(l.documents,p);let x=new O(n.length),d=new Map;f.query={select:l,values:a},l.terms.forEach(g=>{F(x,0);for(let T=0;T>>e.space.x,w=V>>>e.space.f;if(!l.documents.get(w))continue;let A=V&I[e.space.f];if(!x.get(A))continue;let _=d.get(V);typeof _>"u"&&d.set(V,_=new S(E()));let D=h&I[e.space.x];_.add(D,g)}}),l.documents.forEach(g=>{let y={id:g,matches:[]};f.items.push(y),c.set(g,y)}),d.forEach((g,y)=>{let T=y>>>e.space.f,h=y&I[e.space.f];c.get(T).matches.push({id:y,field:n[h].name,value:{text:g},score:0})})}return v(s,(m,l)=>l.onTextResult?.(m,e,t),f)}function ke(e,r=10){return e.length>1?1+e[e.length-1]-e[0]:r}function ae(e,r,t,o=10){let n=[];e.value.text.forEach((p,u)=>{for(let f=0;fp.index-u.index);let s=n.slice(0,1),i=0;for(let p=0;po||f.value===u.value)c=s.map(({index:m})=>m),s=[n[p+1]];else{for(let m=0;mf.index-u.index){let a=s.splice(m+1);c=s.map(({index:x})=>x),s=[...a,n[p+1]]}else c=s.map(({index:a})=>a),s=[n[p+1]];break}}typeof c>"u"&&s.push(n[p+1])}if(typeof c<"u"){let m=t(c,i++);if(typeof m<"u")return m}}if(s.length)return t(s.map(({index:p})=>p),i)}function He(e){let{transform:r,parser:t,fields:o}=e,n=t(e);return(s,i)=>{if(Re(s))return s;typeof s=="string"&&(s=n(s));let p=[B(i)],u=[],f=0;return H(s,({type:c,data:m})=>{switch(c){case"value":let l=m.value;if(typeof l=="string"){let x=new S(E()),d=i.index.get(r(l));typeof d<"u"&&x.add(d,1),l=x}if(m.field==="*")p[f++]=_e(i,l);else{let x=o.findIndex(({name:d})=>d===m.field);p[f++]=Le(i,l,x)}u.push({...m,value:l});break;case"operator":let a=f-m.operands.length;switch(m.operator){case"or":for(;f>a+1&&f--;)k(p[a].documents,p[f].documents),k(p[a].terms,p[f].terms);break;case"and":for(;f>a+1&&f--;)N(p[a].documents,p[f].documents),k(p[a].terms,p[f].terms);break;case"not":for(C(p[a].documents),F(p[a].terms,0);f>a+1&&f--;)$(p[a].documents,p[f].documents)}}}),{select:p[0],values:u}}}function ne(e,r){return H(e,(t,o,n)=>{if(t.type!=="value")return;let s=r(t.data,o,n);if(typeof s<"u")return s})}function re(e){if(e.length===0)return[];let r=[],t=[];for(let s=0;ss.index-i.index);let o=new Set([t[0].value]),n=t[0].index;for(let s=1;s{e[f].start>n||e[f].end{r.push({start:n,end:s,value:t})})}return new L(re(r))}function Qe(e,r="or",t){let{separator:o}=e;return t??=n=>({field:"*",value:n.value}),n=>{let s=[];return le(n,o,i=>{let p=t(i);typeof p<"u"&&s.push({type:"value",data:p})}),{type:"operator",data:{operator:r,operands:s}}}}async function Me(e,r){let t=await Q(r),o=await J(t,(s,i)=>i.onTextOptions?.(s,e),{...r,plugins:t}),n=await we(e,o);return R("text",s=>{if(s.type!=="text")throw new b("unsupported");return{type:s.type,data:Ne(n,s.data,o)}})}function P(e){return{name:e.name,data:e.data,onTextOptions:e.onTextOptions,onTextInput:e.onTextInput,onTextTokens:e.onTextTokens,onTextStore:e.onTextStore,onTextQuery:e.onTextQuery,onTextResult:e.onTextResult}}function Be(e){let{handlers:r}=e,t,o=new Map;return fe({name:"aggregation",onFilterStore(n,s){for(let i=0;i"u")continue;let u=!0;s.documents.forEach(f=>{u=!1}),u&&F(s.documents,1),n.aggregations.push(p(i,s))}}})}function Ue(e={}){let{empty:r=!1,limit:t}=e;return(o,{fields:n})=>{let s=o.space.f+o.space.x;return R("term",({type:i,data:p},{documents:u})=>{if(i!=="term")throw new b("unsupported");let f=n.findIndex(({name:m})=>m===p.field),c=Ie(o,f,m=>{let l=0,{occurrences:a}=m;for(let x=0;x>>s)&&l++;if(!(r===!1&&l===0))return{value:m.value,count:l}},{...t,...p.limit});return{type:i,data:{field:p.field,value:c}}})}}function De(e,r="prefix"){return{type:r,data:e}}function ze(e){return typeof e=="object"&&"type"in e&&typeof e.type=="string"&&"data"in e&&typeof e.data=="string"}function Ke(e,r={}){let{prefix:t=2,filter:o=[]}=r,n=e.terms,s=new Map,i=Te(n.length),p=E();for(let u=0;u(s.set(m,s.get(m)??u),l===t||void 0));let c=u?n[u-1]:"";i[u]=Oe(c,f)}for(let u=0;uu-f),{terms:n,index:s,cover:i,exact:p}}function We(e,r){let t="",o=-1,n=-1;if(oe(r,p=>{let u=e.index.get(p);if(typeof u>"u")return!0;t=p,o=u}),o!==-1)for(let p=t.length;pp>o&&pn),index:r.index},{prefix:e.prefix,filter:e.filter?.map(o)})},onTextQuery(r,t,o){let{transform:n,parser:s}=o;if(typeof r.input=="string")r.input=s(o)(r.input);else if(!te(r.input))return;ne(r.input,i=>{let p=i.value;if(ze(p))p=n(p.data);else return;i.value=We(this.data,p)??p})}})}function Ye(e){let r={...e,plugins:[]},t,o,n;return P({name:"filter",async onTextOptions(s,i){r.plugins=await Q(e),n=await ue(i,r)},onTextQuery(s){typeof s.filter<"u"&&(t=s.filter,o??=ee(r),t.input=o(t.input,n),s.scope=t.input.select.documents)},onTextResult(s){if(typeof t<"u"){let i=!0;s.query.select.documents.forEach(u=>{i=!1}),i||(t.scope=s.query.select.documents);let p=me(n,t,r);s.aggregations=p.aggregations,t=void 0}}})}function je(e,r){let t=[],o=e/r>>>0,n=e%r,s=0;if(o)for(let i=0;ip);o.sort((i,p)=>e.terms[i].length-e.terms[p].length||e.terms[i].localeCompare(e.terms[p]));let n=0;for(let i=0;in&&(n=e.terms[i].length);let s=[];for(let i=0;i"u"?u[c].set(m,[o[i]]):l.push(o[i])}}return{index:s,terms:e.terms,idxmp:o}}var xt=[["id","di","rr"],["dr","rd"],["dd"]];function ie(e,r,t=2){if(e.lengtht)return;let i,p,u,f=t+1;for(let c of xt[s]){for(u=i=p=0;it)break;switch(c[u-1]){case"d":i++;break;case"i":p++;break;case"r":i++,p++;break}}else i++,p++;u+=o-i+(n-p),u"u")continue;let p=qe(r,i,2);for(let u=0;u"u"))for(let a of l){let x=e.terms[a].length,d=t(e.terms[a],r);typeof d<"u"&&n.add(a,(x-d)/x)}}}}if(n.data.length)return n}function $e(e={}){return P({name:"fuzzy",onTextStore(r){this.data??=Je({terms:r.terms.map(({value:t})=>t)},e)},onTextQuery(r,t,o){let{transform:n,parser:s}=o;if(typeof r.input=="string")r.input=s(o)(r.input);else if(!te(r.input))return;ne(r.input,i=>{let p=i.value;if(typeof p=="string")p=n(p);else return;t.index.get(p)||(i.value=Ze(this.data,p)??p)})}})}function Ce(){return{tables:new Map}}function et(e,r={}){let{count:t}=r;return R("term",o=>{let n=U(o);return(s,i)=>{let p=[];return s.value.text.forEach((u,f)=>{let c=i[u]>>>10,m=i[u]&I[10];for(let x=0;xu.start-f.start),{ranges:re(p).slice(0,t)}}})}function tt(e){let r,t;return P({name:"highlight",data:Ce(),onTextInput(o,n){let{tables:s}=this.data;s.set(n,t=E())},onTextTokens(o){for(let n=0;n{let p=n.get(i.id);if(i.value.highlight)return;let u=s(i,p);i.value={...i.value,highlight:u}})}})}function ot(){return{directives:[]}}function se(...e){return(r,t)=>{for(let o=0;o{if(o!=="match")throw new b("unsupported");let s=dt(e),i=se(...r.map(p=>p(t)));return K(t,({matches:p})=>void p.sort(s)),(p,u)=>{let f=Math.min(p.matches.length,u.matches.length);for(let c=0,m=0;co*(n.get(s.field)-n.get(i.field))}function rt(e,r={}){let t=U(e.query),o=W(ae),n=W(ke);return(s,i)=>{let p=o(s,t,m=>m),u=o(i,t,m=>m);if(p.length!==u.length)return u.length-p.length;let f=n(p),c=n(u);return f!==c?f-c:p[0]!==u[0]?p[0]-u[0]:0}}function it(e){let r=new Map;return P({name:"order",data:ot(),async onTextOptions(t,o){for(let n=0;n"u")throw new b("unknown");n.push(p(t,i))}t.items.sort(se(...n))}})}function st(e){let r=e.handler();return P({name:"pagination",onTextQuery(t){return r.onQuery(t,e)},onTextResult(t){return r.onResult(t,e)}})}function pt(e){let{id:r,size:t=10,from:o=0}=e;if(o-t>=0)return{id:r,size:t,from:o-t}}function ut(e,r){let{id:t,size:o=10,from:n=0}=e;if(n+o{let r=e.data;switch(r.type){case 0:ct=await Me(r.data.items,{separator:Fe(r.data.config.separator),transform:W(Se),parser:o=>Qe(o,"and",n=>({field:"*",value:De(n.value),range:{start:n.start,end:n.end,value:n.index}})),compiler:He,fields:[z("title",o=>o.title,{weight:3}),z("text",o=>o.text),z("path",o=>o.path,{weight:2})],plugins:[Ge(),$e(),Ye({compiler:ee,fields:[z("tags",o=>o.tags)],plugins:[Be({handlers:[Ue()]})]}),it({handlers:[o=>nt({fields:o.fields,comparators:[rt]})],defaults:{order:[{type:"match",data:{field:"*"}}]}}),()=>P({onTextResult(o){o.total=o.items.length}}),st({handler:ft,size:10}),tt({handler:o=>et(o)}),()=>P({onTextResult(o){let{query:n}=o,s=n.values.map(({range:i,value:p})=>{let u=!1;return p.forEach((f,c)=>{!u&&c<1&&(u=!0)}),u?-1:(i?.end??0)-(i?.start??0)});q(o,i=>{i.value.highlight?.ranges.forEach(p=>{p.value=s[p.value]})})}})]}),self.postMessage({type:1});break;case 2:let t=ct({type:"text",data:r.data});self.postMessage({type:3,data:t.data});break}}; -//# sourceMappingURL=bundle.Q5Z2Y6JE.js.map +var mo=Object.create;var Sa=Object.defineProperty;var xo=Object.getOwnPropertyDescriptor;var Lo=Object.getOwnPropertyNames;var Io=Object.getPrototypeOf,ho=Object.prototype.hasOwnProperty;var go=(a,e)=>()=>(e||a((e={exports:{}}).exports,e),e.exports);var So=(a,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of Lo(e))!ho.call(a,u)&&u!==t&&Sa(a,u,{get:()=>e[u],enumerable:!(o=xo(e,u))||o.enumerable});return a};var Co=(a,e,t)=>(t=a!=null?mo(Io(a)):{},So(e||!a||!a.__esModule?Sa(t,"default",{value:a,enumerable:!0}):t,a));var uo=go((ym,ro)=>{var hr="Expected a function",to=NaN,gr="[object Symbol]",Sr=/^\s+|\s+$/g,Cr=/^[-+]0x[0-9a-f]+$/i,_r=/^0b[01]+$/i,vr=/^0o[0-7]+$/i,wr=parseInt,yr=typeof global=="object"&&global&&global.Object===Object&&global,kr=typeof self=="object"&&self&&self.Object===Object&&self,br=yr||kr||Function("return this")(),Pr=Object.prototype,Tr=Pr.toString,Ar=Math.max,Rr=Math.min,La=function(){return br.Date.now()};function Br(a,e,t){var o,u,r,l,s,n,f=0,i=!1,m=!1,d=!0;if(typeof a!="function")throw new TypeError(hr);e=oo(e)||0,Ia(t)&&(i=!!t.leading,m="maxWait"in t,r=m?Ar(oo(t.maxWait)||0,e):r,d="trailing"in t?!!t.trailing:d);function c(_){var q=o,G=u;return o=u=void 0,f=_,l=a.apply(G,q),l}function L(_){return f=_,s=setTimeout(S,e),i?c(_):l}function I(_){var q=_-n,G=_-f,ue=e-q;return m?Rr(ue,r-G):ue}function g(_){var q=_-n,G=_-f;return n===void 0||q>=e||q<0||m&&G>=r}function S(){var _=La();if(g(_))return h(_);s=setTimeout(S,I(_))}function h(_){return s=void 0,d&&o?c(_):(o=u=void 0,l)}function k(){s!==void 0&&clearTimeout(s),f=0,o=n=u=s=void 0}function U(){return s===void 0?l:h(La())}function R(){var _=La(),q=g(_);if(o=arguments,u=this,n=_,q){if(s===void 0)return L(n);if(m)return s=setTimeout(S,e),c(n)}return s===void 0&&(s=setTimeout(S,e)),l}return R.cancel=k,R.flush=U,R}function Ia(a){var e=typeof a;return!!a&&(e=="object"||e=="function")}function Fr(a){return!!a&&typeof a=="object"}function Mr(a){return typeof a=="symbol"||Fr(a)&&Tr.call(a)==gr}function oo(a){if(typeof a=="number")return a;if(Mr(a))return to;if(Ia(a)){var e=typeof a.valueOf=="function"?a.valueOf():a;a=Ia(e)?e+"":e}if(typeof a!="string")return a===0?a:+a;a=a.replace(Sr,"");var t=_r.test(a);return t||vr.test(a)?wr(a.slice(2),t?2:8):Cr.test(a)?to:+a}ro.exports=Br});var Pe,x,ya,We,Z,Ca,ka,ba,Ve,ve,pe,Pa,ze,He,Ne,_o,ye={},ke=[],vo=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,me=Array.isArray;function $(a,e){for(var t in e)a[t]=e[t];return a}function Ge(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function F(a,e,t){var o,u,r,l={};for(r in e)r=="key"?o=e[r]:r=="ref"?u=e[r]:l[r]=e[r];if(arguments.length>2&&(l.children=arguments.length>3?Pe.call(arguments,2):t),typeof a=="function"&&a.defaultProps!=null)for(r in a.defaultProps)l[r]===void 0&&(l[r]=a.defaultProps[r]);return we(a,l,o,u,null)}function we(a,e,t,o,u){var r={type:a,props:e,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:u??++ya,__i:-1,__u:0};return u==null&&x.vnode!=null&&x.vnode(r),r}function v(a){return a.children}function B(a,e){this.props=a,this.context=e}function se(a,e){if(e==null)return a.__?se(a.__,a.__i+1):null;for(var t;ee&&Z.sort(ba),a=Z.shift(),e=Z.length,wo(a)}finally{Z.length=be.__r=0}}function Aa(a,e,t,o,u,r,l,s,n,f,i){var m,d,c,L,I,g,S,h=o&&o.__k||ke,k=e.length;for(n=yo(t,e,h,n,k),m=0;m0?l=a.__k[r]=we(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):a.__k[r]=l,n=r+d,l.__=a,l.__b=a.__b+1,s=null,(f=l.__i=ko(l,t,n,m))!=-1&&(m--,(s=t[f])&&(s.__u|=2)),s==null||s.__v==null?(f==-1&&(u>i?d--:un?d--:d++,l.__u|=4))):a.__k[r]=null;if(m)for(r=0;r(i?1:0)){for(u=t-1,r=t+1;u>=0||r=0?u--:r++])!=null&&!(2&f.__u)&&s==f.key&&n==f.type)return l}return-1}function va(a,e,t){e[0]=="-"?a.setProperty(e,t??""):a[e]=t==null?"":typeof t!="number"||vo.test(e)?t:t+"px"}function _e(a,e,t,o,u){var r,l;e:if(e=="style")if(typeof t=="string")a.style.cssText=t;else{if(typeof o=="string"&&(a.style.cssText=o=""),o)for(e in o)t&&e in t||va(a.style,e,"");if(t)for(e in t)o&&t[e]==o[e]||va(a.style,e,t[e])}else if(e[0]=="o"&&e[1]=="n")r=e!=(e=e.replace(Pa,"$1")),l=e.toLowerCase(),e=l in a||e=="onFocusOut"||e=="onFocusIn"?l.slice(2):e.slice(2),a.l||(a.l={}),a.l[e+r]=t,t?o?t[pe]=o[pe]:(t[pe]=ze,a.addEventListener(e,r?Ne:He,r)):a.removeEventListener(e,r?Ne:He,r);else{if(u=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in a)try{a[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!="-"?a.removeAttribute(e):a.setAttribute(e,e=="popover"&&t==1?"":t))}}function wa(a){return function(e){if(this.l){var t=this.l[e.type+a];if(e[ve]==null)e[ve]=ze++;else if(e[ve]0?a:me(a)?a.map(Ma):a.constructor!==void 0?null:$({},a)}function bo(a,e,t,o,u,r,l,s,n){var f,i,m,d,c,L,I,g=t.props||ye,S=e.props,h=e.type;if(h=="svg"?u="http://www.w3.org/2000/svg":h=="math"?u="http://www.w3.org/1998/Math/MathML":u||(u="http://www.w3.org/1999/xhtml"),r!=null){for(f=0;f=t.__.length&&t.__.push({}),t.__[a]}function j(a){return Le=1,Xa($a,a)}function Xa(a,e,t){var o=Ze(xe++,2);if(o.t=a,!o.__c&&(o.__=[t?t(e):$a(void 0,e),function(s){var n=o.__N?o.__N[0]:o.__[0],f=o.t(n,s);n!==f&&(o.__N=[f,o.__[1]],o.__c.setState({}))}],o.__c=w,!w.__f)){var u=function(s,n,f){if(!o.__c.__H)return!0;var i=!1,m=o.__c.props!==s;if(o.__c.__H.__.some(function(c){if(c.__N){i=!0;var L=c.__[0];c.__=c.__N,c.__N=void 0,L!==c.__[0]&&(m=!0)}}),r){var d=r.call(this,s,n,f);return i?d||m:d}return!i||m};w.__f=!0;var r=w.shouldComponentUpdate,l=w.componentWillUpdate;w.componentWillUpdate=function(s,n,f){if(this.__e){var i=r;r=void 0,u(s,n,f),r=i}l&&l.call(this,s,n,f)},w.shouldComponentUpdate=u}return o.__N||o.__}function T(a,e){var t=Ze(xe++,3);!b.__s&&Qa(t.__H,e)&&(t.__=a,t.u=e,w.__H.__h.push(t))}function A(a){return Le=5,D(function(){return{current:a}},[])}function D(a,e){var t=Ze(xe++,7);return Qa(t.__H,e)&&(t.__=a(),t.__H=e,t.__h=a),t.__}function Te(a,e){return Le=8,D(function(){return a},e)}function Wa(){for(var a;a=Ga.shift();){var e=a.__H;if(a.__P&&e)try{e.__h.some(Je),e.__h.some(Ka),e.__h=[]}catch(t){e.__h=[],b.__e(t,a.__v)}}}b.__b=function(a){w=null,Oa&&Oa(a)},b.__=function(a,e){a&&e.__k&&e.__k.__m&&(a.__m=e.__k.__m),Na&&Na(a,e)},b.__r=function(a){Ua&&Ua(a),xe=0;var e=(w=a.__c).__H;e&&($e===w?(e.__h=[],w.__h=[],e.__.some(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(e.__h.length&&Wa(),xe=0)),$e=w},b.diffed=function(a){qa&&qa(a);var e=a.__c;e&&e.__H&&(e.__H.__h.length&&(Ga.push(e)!==1&&Ea===b.requestAnimationFrame||((Ea=b.requestAnimationFrame)||To)(Wa)),e.__H.__.some(function(t){t.u&&(t.__H=t.u,t.u=void 0)})),$e=w=null},b.__c=function(a,e){e.some(function(t){try{t.__h.some(Je),t.__h=t.__h.filter(function(o){return!o.__||Ka(o)})}catch(o){e.some(function(u){u.__h&&(u.__h=[])}),e=[],b.__e(o,t.__v)}}),Va&&Va(a,e)},b.unmount=function(a){Ha&&Ha(a);var e,t=a.__c;t&&t.__H&&(t.__H.__.some(function(o){try{Je(o)}catch(u){e=u}}),t.__H=void 0,e&&b.__e(e,t.__v))};var za=typeof requestAnimationFrame=="function";function To(a){var e,t=function(){clearTimeout(o),za&&cancelAnimationFrame(e),setTimeout(a)},o=setTimeout(t,35);za&&(e=requestAnimationFrame(t))}function Je(a){var e=w,t=a.__c;typeof t=="function"&&(a.__c=void 0,t()),w=e}function Ka(a){var e=w;a.__c=a.__(),w=e}function Qa(a,e){return!a||a.length!==e.length||e.some(function(t,o){return t!==a[o]})}function $a(a,e){return typeof e=="function"?e(a):e}function Fo(a,e){for(var t in e)a[t]=e[t];return a}function Ja(a,e){for(var t in a)if(t!=="__source"&&!(t in e))return!0;for(var o in e)if(o!=="__source"&&a[o]!==e[o])return!0;return!1}function Za(a,e){this.props=a,this.context=e}(Za.prototype=new B).isPureReactComponent=!0,Za.prototype.shouldComponentUpdate=function(a,e){return Ja(this.props,a)||Ja(this.state,e)};var ja=x.__b;x.__b=function(a){a.type&&a.type.__f&&a.ref&&(a.props.ref=a.ref,a.ref=null),ja&&ja(a)};var Yr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var Mo=x.__e;x.__e=function(a,e,t,o){if(a.then){for(var u,r=e;r=r.__;)if((u=r.__c)&&u.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k||[]),u.__c(a,e)}Mo(a,e,t,o)};var Ya=x.unmount;function ut(a,e,t){return a&&(a.__c&&a.__c.__H&&(a.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),a.__c.__H=null),(a=Fo({},a)).__c!=null&&(a.__c.__P===t&&(a.__c.__P=e),a.__c.__e=!0,a.__c=null),a.__k=a.__k&&a.__k.map(function(o){return ut(o,e,t)})),a}function lt(a,e,t){return a&&t&&(a.__v=null,a.__k=a.__k&&a.__k.map(function(o){return lt(o,e,t)}),a.__c&&a.__c.__P===e&&(a.__e&&t.appendChild(a.__e),a.__c.__e=!0,a.__c.__P=t)),a}function je(){this.__u=0,this.o=null,this.__b=null}function st(a){var e=a.__&&a.__.__c;return e&&e.__a&&e.__a(a)}function Ae(){this.i=null,this.l=null}x.unmount=function(a){var e=a.__c;e&&(e.__z=!0),e&&e.__R&&e.__R(),e&&32&a.__u&&(a.type=null),Ya&&Ya(a)},(je.prototype=new B).__c=function(a,e){var t=e.__c,o=this;o.o==null&&(o.o=[]),o.o.push(t);var u=st(o.__v),r=!1,l=function(){r||o.__z||(r=!0,t.__R=null,u?u(n):n())};t.__R=l;var s=t.__P;t.__P=null;var n=function(){if(!--o.__u){if(o.state.__a){var f=o.state.__a;o.__v.__k[0]=lt(f,f.__c.__P,f.__c.__O)}var i;for(o.setState({__a:o.__b=null});i=o.o.pop();)i.__P=s,i.forceUpdate()}};o.__u++||32&e.__u||o.setState({__a:o.__b=o.__v.__k[0]}),a.then(l,l)},je.prototype.componentWillUnmount=function(){this.o=[]},je.prototype.render=function(a,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=ut(this.__b,t,o.__O=o.__P)}this.__b=null}var u=e.__a&&F(v,null,a.fallback);return u&&(u.__u&=-33),[F(v,null,e.__a?null:a.children),u]};var et=function(a,e,t){if(++t[1]===t[0]&&a.l.delete(e),a.props.revealOrder&&(a.props.revealOrder[0]!=="t"||!a.l.size))for(t=a.i;t;){for(;t.length>3;)t.pop()();if(t[1]Object.freeze({get current(){return e.current}}),[])}var ft=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function nt(a,...e){a?.addEventListener?.(...e)}function it(a,...e){a?.removeEventListener?.(...e)}var ct=(a,e)=>Object.hasOwn(a,e),pt=()=>!0,mt=()=>!1;function xt(a=!1){let e=A(a),t=Te(()=>e.current,[]);return T(()=>(e.current=!0,()=>{e.current=!1}),[]),t}function Lt(a,...e){let t=xt(),o=Re(e[1]),u=D(()=>function(...r){t()&&(typeof o.current=="function"?o.current.apply(this,r):typeof o.current.handleEvent=="function"&&o.current.handleEvent.apply(this,r))},[]);T(()=>{let r=No(a)?a.current:a;if(!r)return;let l=e.slice(2);return nt(r,e[0],u,...l),()=>{it(r,e[0],u,...l)}},[a,e[0]])}function No(a){return a!==null&&typeof a=="object"&&ct(a,"current")}var Wo=a=>typeof a=="function"?a:typeof a=="string"?e=>e.key===a:a?pt:mt,zo=ft?globalThis:null;function Be(a,e,t=[],o={}){let{event:u="keydown",target:r=zo,eventOptions:l}=o,s=Re(e),n=D(()=>{let f=Wo(a);return function(i){f(i)&&s.current.call(this,i)}},t);Lt(r,u,n,l)}function It(a){var e,t,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var u=a.length;for(e=0;e1)Y--;else{for(var a,e=!1;Ie!==void 0;){var t=Ie;for(Ie=void 0,Ye++;t!==void 0;){var o=t.o;if(t.o=void 0,t.f&=-3,!(8&t.f)&>(t))try{t.c()}catch(u){e||(a=u,e=!0)}t=o}}if(Ye=0,Y--,e)throw a}}function ea(a){if(Y>0)return a();Y++;try{return a()}finally{Me()}}var C=void 0;function aa(a){var e=C;C=void 0;try{return a()}finally{C=e}}var Ie=void 0,Y=0,Ye=0,Fe=0;function ht(a){if(C!==void 0){var e=a.n;if(e===void 0||e.t!==C)return e={i:0,S:a,p:C.s,n:void 0,t:C,e:void 0,x:void 0,r:e},C.s!==void 0&&(C.s.n=e),C.s=e,a.n=e,32&C.f&&a.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=C.s,e.n=void 0,C.s.n=e,C.s=e),e}}function P(a,e){this.v=a,this.i=0,this.n=void 0,this.t=void 0,this.W=e?.watched,this.Z=e?.unwatched,this.name=e?.name}P.prototype.brand=Xo;P.prototype.h=function(){return!0};P.prototype.S=function(a){var e=this,t=this.t;t!==a&&a.e===void 0&&(a.x=t,this.t=a,t!==void 0?t.e=a:aa(function(){var o;(o=e.W)==null||o.call(e)}))};P.prototype.U=function(a){var e=this;if(this.t!==void 0){var t=a.e,o=a.x;t!==void 0&&(t.x=o,a.e=void 0),o!==void 0&&(o.e=t,a.x=void 0),a===this.t&&(this.t=o,o===void 0&&aa(function(){var u;(u=e.Z)==null||u.call(e)}))}};P.prototype.subscribe=function(a){var e=this;return K(function(){var t=e.value,o=C;C=void 0;try{a(t)}finally{C=o}},{name:"sub"})};P.prototype.valueOf=function(){return this.value};P.prototype.toString=function(){return this.value+""};P.prototype.toJSON=function(){return this.value};P.prototype.peek=function(){var a=C;C=void 0;try{return this.value}finally{C=a}};Object.defineProperty(P.prototype,"value",{get:function(){var a=ht(this);return a!==void 0&&(a.i=this.i),this.v},set:function(a){if(a!==this.v){if(Ye>100)throw new Error("Cycle detected");this.v=a,this.i++,Fe++,Y++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{Me()}}}});function V(a,e){return new P(a,e)}function gt(a){for(var e=a.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function St(a){for(var e=a.s;e!==void 0;e=e.n){var t=e.S.n;if(t!==void 0&&(e.r=t),e.S.n=e,e.i=-1,e.n===void 0){a.s=e;break}}}function Ct(a){for(var e=a.s,t=void 0;e!==void 0;){var o=e.p;e.i===-1?(e.S.U(e),o!==void 0&&(o.n=e.n),e.n!==void 0&&(e.n.p=o)):t=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=o}a.s=t}function te(a,e){P.call(this,void 0),this.x=a,this.s=void 0,this.g=Fe-1,this.f=4,this.W=e?.watched,this.Z=e?.unwatched,this.name=e?.name}te.prototype=new P;te.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Fe))return!0;if(this.g=Fe,this.f|=1,this.i>0&&!gt(this))return this.f&=-2,!0;var a=C;try{St(this),C=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return C=a,Ct(this),this.f&=-2,!0};te.prototype.S=function(a){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}P.prototype.S.call(this,a)};te.prototype.U=function(a){if(this.t!==void 0&&(P.prototype.U.call(this,a),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}};te.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var a=this.t;a!==void 0;a=a.x)a.t.N()}};Object.defineProperty(te.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var a=ht(this);if(this.h(),a!==void 0&&(a.i=this.i),16&this.f)throw this.v;return this.v}});function De(a,e){return new te(a,e)}function _t(a){var e=a.u;if(a.u=void 0,typeof e=="function"){Y++;var t=C;C=void 0;try{e()}catch(o){throw a.f&=-2,a.f|=8,ta(a),o}finally{C=t,Me()}}}function ta(a){for(var e=a.s;e!==void 0;e=e.n)e.S.U(e);a.x=void 0,a.s=void 0,_t(a)}function Ko(a){if(C!==this)throw new Error("Out-of-order effect");Ct(this),C=a,this.f&=-2,8&this.f&&ta(this),Me()}function de(a,e){this.x=a,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=e?.name}de.prototype.c=function(){var a=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e)}finally{a()}};de.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,_t(this),St(this),Y++;var a=C;return C=this,Ko.bind(this,a)};de.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ie,Ie=this)};de.prototype.d=function(){this.f|=8,1&this.f||ta(this)};de.prototype.dispose=function(){this.d()};function K(a,e){var t=new de(a,e);try{t.c()}catch(u){throw t.d(),u}var o=t.d.bind(t);return o[Symbol.dispose]=o,o}var vt,ra,oa;var wt=[];K(function(){vt=this.N})();function fe(a,e){x[a]=e.bind(null,x[a]||function(){})}function Ee(a){oa&&oa(),oa=a&&a.S()}function yt(a){var e=this,t=a.data,o=$o(t);o.value=t;var u=D(function(){for(var s=e,n=e.__v;n=n.__;)if(n.__c){n.__c.__$f|=4;break}var f=De(function(){var c=o.value.value;return c===0?0:c===!0?"":c||""}),i=De(function(){return!Array.isArray(f.value)&&!We(f.value)}),m=K(function(){if(this.N=kt,i.value){var c=f.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=c)}}),d=e.__$u.d;return e.__$u.d=function(){m(),d.call(this)},[i,f]},[]),r=u[0],l=u[1];return r.value?l.peek():l.value}yt.displayName="ReactiveTextNode";Object.defineProperties(P.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:yt},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});fe("__b",function(a,e){if(typeof e.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),typeof e.type=="string"){var t,o=e.props;for(var u in o)if(u!=="children"){var r=o[u];r instanceof P&&(t||(e.__np=t={}),t[u]=r,o[u]=r.peek())}}a(e)});fe("__r",function(a,e){if(typeof e.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(e),e.type!==v){Ee();var t,o=e.__c;o&&(o.__$f&=-2,(t=o.__$u)===void 0&&(o.__$u=t=function(u){var r;return K(function(){r=this}),r.c=function(){o.__$f|=1,o.setState({})},r}())),ra=o,Ee(t)}a(e)});fe("__e",function(a,e,t,o){typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),Ee(),ra=void 0,a(e,t,o)});fe("diffed",function(a,e){typeof e.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),Ee(),ra=void 0;var t;if(typeof e.type=="string"&&(t=e.__e)){var o=e.__np,u=e.props;if(o){var r=t.U;if(r)for(var l in r){var s=r[l];s!==void 0&&!(l in o)&&(s.d(),r[l]=void 0)}else r={},t.U=r;for(var n in o){var f=r[n],i=o[n];f===void 0?(f=Qo(t,n,i,u),r[n]=f):f.o(i,u)}}}a(e)});function Qo(a,e,t,o){var u=e in a&&a.ownerSVGElement===void 0,r=V(t);return{o:function(l,s){r.value=l,o=s},d:K(function(){this.N=kt;var l=r.value.value;o[e]!==l&&(o[e]=l,u?a[e]=l:l?a.setAttribute(e,l):a.removeAttribute(e))})}}fe("unmount",function(a,e){if(typeof e.type=="string"){var t=e.__e;if(t){var o=t.U;if(o){t.U=void 0;for(var u in o){var r=o[u];r&&r.d()}}}}else{var l=e.__c;if(l){var s=l.__$u;s&&(l.__$u=void 0,s.d())}}a(e)});fe("__h",function(a,e,t,o){(o<3||o===9)&&(e.__$f|=2),a(e,t,o)});B.prototype.shouldComponentUpdate=function(a,e){var t=this.__$u,o=t&&t.s!==void 0;for(var u in e)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var r=2&this.__$f;if(!(o||r||4&this.__$f)||1&this.__$f)return!0}else if(!(o||4&this.__$f)||3&this.__$f)return!0;for(var l in a)if(l!=="__source"&&a[l]!==this.props[l])return!0;for(var s in this.props)if(!(s in a))return!0;return!1};function $o(a,e){return j(function(){return V(a,e)})[0]}var Jo=function(a){queueMicrotask(function(){queueMicrotask(a)})};function Zo(){ea(function(){for(var a;a=wt.shift();)vt.call(a)})}function kt(){wt.push(this)===1&&(x.requestAnimationFrame||Jo)(Zo)}var H=[0];for(let a=0;a<32;a++)H.push(H[a]|1<>>5]>>>e&1}set(e){this.data[e>>>5]|=1<<(e&31)}forEach(e){let t=this.size&31;for(let o=0;oe.tags?.length)&&(matchMedia("(max-width: 768px)").matches||ua())}function O(){W.value={...W.value,hideSearch:!W.value.hideSearch}}function ua(){W.value={...W.value,hideFilters:!W.value.hideFilters}}function ne(){return W.value.selectedItem}function he(a){W.value={...W.value,selectedItem:a}}function Rt(){return ee.value?.items??[]}function re(){return typeof y.value.input=="string"?y.value.input:""}function la(a){let e=sa();a.length&&!e.length?y.value={...y.value,page:void 0,input:a}:!a.length&&e.length?y.value={...y.value,page:void 0,input:{type:"operator",data:{operator:"not",operands:[]}}}:y.value={...y.value,page:void 0,input:a}}function Bt(){typeof E.value.pagination.next<"u"&&(y.value={...y.value,page:E.value.pagination.next})}function Ft(a){let e=y.value.filter.input;if("type"in e&&e.type==="operator"){for(let t of e.data.operands)if("type"in t&&t.type==="value"&&typeof t.data.value=="string"&&t.data.value===a)return!0}return!1}function sa(){let a=y.value.filter.input,e=[];if("type"in a&&a.type==="operator")for(let t of a.data.operands)"type"in t&&t.type==="value"&&typeof t.data.value=="string"&&e.push(t.data.value);return e}function Mt(a){let e=y.value.filter.input,t=[];if("type"in e&&e.type==="operator")for(let o of e.data.operands)"type"in o&&o.type==="value"&&typeof o.data.value=="string"&&t.push(o.data.value);if(t.includes(a)){let o=t.indexOf(a);o>-1&&t.splice(o,1)}else t.push(a);y.value={...y.value,page:void 0,filter:{...y.value.filter,input:{type:"operator",data:{operator:"and",operands:t.map(o=>({type:"value",data:{field:"tags",value:o}}))}}}},la(re())}function Dt(){return E.value.items}function Et(){return E.value.total}function Ot(){for(let a of E.value.aggregations??[])if(a.type==="term")return a.data.value;return[]}function ie(){return W.value.hideSearch}function Ut(){return W.value.hideFilters}function Ue(){return da.value.highlight??!1}var W=V({hideSearch:!0,hideFilters:!0,selectedItem:0}),da=V({}),ee=V(),fa=V(),y=V({input:"",filter:{input:{type:"operator",data:{operator:"and",operands:[]}},aggregation:{input:[{type:"term",data:{field:"tags"}}]}}}),E=V({items:[],query:{select:{documents:new N(0),terms:new N(0)},values:[]},pagination:{total:0}});function Yo(a,e,t){for(let o=0;et&&e(0,u,t,t=r);continue;case 62:a.charCodeAt(t+1)===47?e(2,--u,t,t=r+1):Yo(a,t,o)?e(3,u,t,t=r+1):e(1,u++,t,t=r+1)}r>t&&e(0,u,t,r)}function Ht(a,e=0,t=a.length){let o=++e;e:for(let f=0;o{let r=[],l=[],{onElement:s,onText:n=er}=typeof t=="function"?{onElement:t}:t,f=0,i=0;return a(e,(m,d,c,L)=>{if(m===0)r[f++]=n(e,c,L),l[i++]={value:null,depth:d};else if(m&1&&(l[i++]={value:Ht(e,c,L),depth:d}),m&2)for(let I=0;i>=0;I++){let{value:g,depth:S}=l[--i];if(S>d)continue;let h=r.slice(f-=I,f+I);r[f++]=s(g,h),i++;break}},o,u),r.slice(0,f)}}function Wt(a){return a.replace(/[&<>]/g,e=>{switch(e.charCodeAt(0)){case 38:return"&";case 60:return"<";case 62:return">"}})}function ce(a){return a.replace(/&(amp|[lg]t);/g,e=>{switch(e.charCodeAt(1)){case 97:return"&";case 108:return"<";case 103:return">"}})}function zt(a,e){return{start:a.start+e,end:a.end+e,value:a.value}}function dr(a,e,t){return a.slice(e,t)}function Xt(a){let{onHighlight:e,onText:t=dr}=typeof a=="function"?{onHighlight:a}:a;return(o,u,r=0,l=o.length)=>{let s=[],n=u?.ranges??[];for(let f=0,i=r;fl)break;let d=n[f].end;if(dr&&s.push(t(o,r,m));let{value:c}=n[f];s.push(e(o,{start:m,end:r=d,value:c}))}return re!==null&&typeof e<"u"&&e!==!1&&!(typeof e=="string"&&e.trim().length===0))}function na(a,e){let t=Qt(a,{onElement(o,u){return F(o.tag,o.attrs,...u)},onText(o,u,r){return $t(o,e?.value.highlight,u,r)}});return p(v,{children:t})}function Jt(a,e){let t=[];for(let o=0,u=0;oi.start=s||n.push({...i,start:Math.max(i.start,l),end:Math.min(i.end,s)});let f=Qt(a,{onElement(i,m){let d=pr(m);if(d.length!==0)return cr.has(i.tag)?F(i.tag,i.attrs??{},...d):i.tag==="li"?p(v,{children:["\u2013 ",d," "]}):ir.has(i.tag)?p(v,{children:[" ",d," "]}):p(v,{children:d})},onText(i,m,d){let c=Math.max(m,l),L=Math.min(d,s);if(!(c>=L))return $t(i,{ranges:n},c,L)}});return p(v,{children:[l>0&&"...",f]})}function mr(a,e={highlight:!0}){da.value=e;let t=new Worker(a);t.onmessage=o=>{let u=o.data;switch(u.type){case 1:fa.value=!0;break;case 3:typeof u.data.pagination.prev<"u"?E.value={...E.value,pagination:u.data.pagination,items:[...E.value.items,...u.data.items]}:(E.value=u.data,he(0));break}},K(()=>{ee.value&&t.postMessage({type:0,data:ee.value})}),K(()=>{fa.value&&t.postMessage({type:2,data:y.value})})}var ia={container:"p",hidden:"v"};function jt(a){return p("div",{class:M(ia.container,{[ia.hidden]:a.hidden}),onClick:()=>O()})}var ca={container:"r",disabled:"c"};function pa(a){return p("button",{class:M(ca.container,{[ca.disabled]:!a.onClick}),onClick:a.onClick,children:a.children})}var ma=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ir=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,o)=>o?o.toUpperCase():t.toLowerCase()),xa=a=>{let e=Ir(a);return e.charAt(0).toUpperCase()+e.slice(1)},Yt=(...a)=>a.filter((e,t,o)=>!!e&&e.trim()!==""&&o.indexOf(e)===t).join(" ").trim();var eo={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"};var ao=({color:a="currentColor",size:e=24,strokeWidth:t=2,absoluteStrokeWidth:o,children:u,iconNode:r,class:l="",...s})=>F("svg",{...eo,width:String(e),height:e,stroke:a,"stroke-width":o?Number(t)*24/Number(e):t,class:["lucide",l].join(" "),...s},[...r.map(([n,f])=>F(n,f)),...ae(u)]);var qe=(a,e)=>{let t=({class:o="",children:u,...r})=>F(ao,{...r,iconNode:e,class:Yt(`lucide-${ma(xa(a))}`,`lucide-${ma(a)}`,o)},u);return t.displayName=xa(a),t};var Se=qe("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]);var Ce=qe("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var Dr=Co(uo(),1);function lo({threshold:a=0,root:e=null,rootMargin:t="0%",freezeOnceVisible:o=!1,initialIsIntersecting:u=!1,onChange:r}={}){var l;let[s,n]=j(null),[f,i]=j(()=>({isIntersecting:u,entry:void 0})),m=A();m.current=r;let d=((l=f.entry)==null?void 0:l.isIntersecting)&&o;T(()=>{if(!s||!("IntersectionObserver"in window)||d)return;let I,g=new IntersectionObserver(S=>{let h=Array.isArray(g.thresholds)?g.thresholds:[g.thresholds];S.forEach(k=>{let U=k.isIntersecting&&h.some(R=>k.intersectionRatio>=R);i({isIntersecting:U,entry:k}),m.current&&m.current(U,k),U&&o&&I&&(I(),I=void 0)})},{threshold:a,root:e,rootMargin:t});return g.observe(s),()=>{g.disconnect()}},[s,JSON.stringify(a),e,t,d,o]);let c=A(null);T(()=>{var I;!s&&((I=f.entry)!=null&&I.target)&&!o&&!d&&c.current!==f.entry.target&&(c.current=f.entry.target,i({isIntersecting:u,entry:void 0}))},[s,f.entry,o,d,u]);let L=[n,!!f.isIntersecting,f.entry];return L.ref=L[0],L.isIntersecting=L[1],L.entry=L[2],L}var Q={container:"n",hidden:"l",content:"y",pop:"d",badge:"w",sidebar:"e",controls:"k",results:"z",loadmore:"j"};function so(a){let{isIntersecting:e,ref:t}=lo({threshold:0});T(()=>{e&&Bt()},[e]);let o=A(null);T(()=>{o.current&&typeof y.value.page>"u"&&o.current.scrollTo({top:0,behavior:"smooth"})},[y.value]);let u=sa();return p("div",{class:M(Q.container,{[Q.hidden]:a.hidden}),children:[p("div",{class:Q.content,children:[p("div",{class:Q.controls,children:[p(pa,{onClick:O,children:p(Ce,{})}),p(no,{focus:!a.hidden}),p(pa,{onClick:ua,children:[p(Se,{}),u.length>0&&p("span",{class:Q.badge,children:u.length})]})]}),p("div",{class:Q.results,ref:o,children:[p(io,{keyboard:!a.hidden}),p("div",{class:Q.loadmore,ref:t})]})]}),p("div",{class:M(Q.sidebar,{[Q.hidden]:Ut()}),children:p(fo,{})})]})}var J={container:"X",list:"F",heading:"I",title:"R",item:"o",active:"g",value:"q",count:"A"};function fo(a){let e=Ot();return e.sort((t,o)=>o.node.count-t.node.count),p("div",{class:J.container,children:[p("h3",{class:J.heading,children:"Filters"}),p("h4",{class:J.title,children:"Tags"}),p("ol",{class:J.list,children:e.map(t=>p("li",{class:M(J.item,{[J.active]:Ft(t.node.value)}),onClick:()=>Mt(t.node.value),children:[p("span",{class:J.value,children:t.node.value}),p("span",{class:J.count,children:t.node.count})]},t.node.value))})]})}var ha={container:"f"};function no(a){let e=A(null);return T(()=>{a.focus?e.current?.focus():e.current?.blur()},[a.focus]),p("div",{class:ha.container,children:p("input",{ref:e,type:"text",class:ha.content,value:ce(re()),onInput:t=>la(Wt(t.currentTarget.value)),autocapitalize:"off",autocomplete:"off",autocorrect:"off",placeholder:"Search",spellcheck:!1,role:"combobox"})})}var z={container:"b",heading:"B",item:"i",active:"h",wrapper:"C",meta:"D",actions:"s",title:"x",path:"t",excerpt:"u",more:"E"};function ga(){let[a,e]=j(!1);return T(()=>{let t=()=>e(!0),o=()=>e(!1);return document.addEventListener("compositionstart",t),document.addEventListener("compositionend",o),()=>{document.removeEventListener("compositionstart",t),document.removeEventListener("compositionend",o)}},[]),a}function io(a){let e=Rt(),t=Dt(),o=ne(),u=A([]),r=ga();T(()=>{let s=u.current[o];s&&s.scrollIntoView({block:"center",behavior:"smooth"})},[o]),Be(a.keyboard,s=>{if(r)return;let n=ne();s.key==="ArrowDown"?(s.preventDefault(),he(Math.min(n+1,t.length-1))):s.key==="ArrowUp"&&(s.preventDefault(),he(Math.max(n-1,0)))},[a.keyboard,r]);let l=Et()??0;return p(v,{children:[t.length>0&&p("h3",{class:z.heading,children:[p("span",{class:z.bubble,children:new Intl.NumberFormat("en-US").format(l)})," ","results"]}),p("ol",{class:z.container,children:t.map((s,n)=>{let f=s.matches.find(({field:I})=>I==="text"),i=na(e[s.id].title,s.matches.find(({field:I})=>I==="title")),m=Jt(e[s.id].path??[],s.matches.find(({field:I})=>I==="path")),d=Zt(e[s.id].text,f),c=Math.max(0,(f?.value.highlight?.ranges?.filter(I=>I.start{u.current[n]=I},href:L,onClick:()=>O(),class:M(z.item,{[z.active]:n===ne()}),children:p("div",{class:z.wrapper,children:[p("div",{class:z.meta,children:p("menu",{class:z.path,children:m.map((I,g)=>p("li",{children:I},g))})}),p("h2",{class:z.title,children:i}),d&&p("div",{class:z.excerpt,children:d})]})})},s.id)})})]})}var co={container:"a"};function po(a){let e=ga();return Be(!0,t=>{if(!e)if((t.metaKey||t.ctrlKey)&&t.key==="k")t.preventDefault(),O();else if((t.metaKey||t.ctrlKey)&&t.key==="j")document.body.classList.toggle("dark");else if(t.key==="Enter"&&!ie()){t.preventDefault();let o=ne(),u=E.value?.items[o]?.id;if(ee.value?.items[u]?.location){O();let r=ee.value?.items[u].location;if(Ue()){let l=encodeURIComponent(re()),[s,n]=r.split("#",2);r=`${s}?h=${l.replace(/%20/g,"+")}`,typeof n<"u"&&(r+=`#${n}`)}window.location.href=r}}else t.key==="Escape"&&!ie()&&(t.preventDefault(),O())},[e]),p("div",{class:co.container,children:[p(jt,{hidden:ie()}),p(so,{hidden:ie()})]})}function vx(a,e){At(a),Qe(p(po,{}),e)}function wx(){O()}export{ie as isSearchHidden,vx as mount,wx as open,mr as setup}; +//# sourceMappingURL=bundle.WIM37S6A.js.map