imdhemy-jekyll-theme 1.9.0 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4bda3fa635ef82186fc95de53cb349dd09d93e69ef8eed45bcf96d8cb5208ad9
4
- data.tar.gz: 10f420021130e71a599ffdc799d5b45edfaa0b7b0baa31fde06c6aaab39acca1
3
+ metadata.gz: 97081fde5e9977df1581d8008aba347d7ec10a3d4f588972f813ec09851dcbbb
4
+ data.tar.gz: ccabc4d54fe1b9bb9a800c858e91416bfc30643f2bc7832a337b23f8fbc083c9
5
5
  SHA512:
6
- metadata.gz: 7f518f91b3daaf97848de59d3b90dd58a77ae8624fbcd20801556bd7c824d012788fbd461a5331fa3e480abd1fa0f5e9c8458c981927ad684bdfe9fccabe2b8c
7
- data.tar.gz: 10b89758bc2009bcdbdfe81e4cf710590dcd5c20d897e651d40835f3ac2cc2bac479fc5cecd1ad7752c6d309bb68443594518a46218c514503f66235a78ae011
6
+ metadata.gz: 06a8a99c02edfbd7944f7a18cb002e9c8d04a22257592c189aa5710d4d97bb72eb4cb6f160a0051dc8f15c8584b86c58008dfd9f8dd52dc36be6db3c375e4684
7
+ data.tar.gz: 04a16e1dfee01ae4e3d9780b20b2854ebd2b3884ed352f2e669e51e4a97077f7c50a24e3446509437c6c0bdfa3e5855f6727b7d081cd6307e1652ee1ea1534c4
data/_includes/math.html CHANGED
@@ -1,12 +1,15 @@
1
1
  <script>
2
- MathJax = {
2
+ window.MathJax = {
3
+ chtml: {
4
+ displayOverflow: 'linebreak',
5
+ linebreaks: {
6
+ inline: true,
7
+ width: '100%',
8
+ },
9
+ },
3
10
  tex: {
4
11
  inlineMath: [['$', '$'], ['\\(', '\\)']],
5
12
  },
6
- svg: {
7
- fontCache: 'global',
8
- },
9
13
  };
10
14
  </script>
11
- <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
12
- <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
15
+ <script defer src="https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js"></script>
@@ -2,20 +2,20 @@
2
2
  <html lang="{{ page.lang | default: site.lang | default: 'en' }}">
3
3
  <head>
4
4
  <meta charset="UTF-8">
5
- <meta name="viewport"
6
- content="width=device-width, initial-scale=1.0">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
6
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+
8
8
  {% include seo-meta.html %}
9
9
 
10
10
  <link rel="preconnect" href="https://fonts.googleapis.com">
11
11
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
12
- <link href="https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&display=swap"
13
- rel="stylesheet">
14
12
 
15
13
  <link rel="stylesheet" href="{{ '/assets/css/main.css?v=' | append: site.github.build_revision | relative_url }}">
14
+
16
15
  {% if site.favicon %}
17
16
  <link rel="icon" type="image/png" href="{{ site.favicon | relative_url }}">
18
17
  {% endif %}
18
+
19
19
  {% if page.math %}
20
20
  {% include math.html %}
21
21
  {% endif %}
@@ -2068,11 +2068,6 @@
2068
2068
  margin-bottom: 1.5rem;
2069
2069
  }
2070
2070
 
2071
- mjx-container {
2072
- max-width: 100%;
2073
- overflow: auto;
2074
- }
2075
-
2076
2071
  blockquote {
2077
2072
  position: relative;
2078
2073
  margin-top: 1.5rem;
data/assets/css/main.scss CHANGED
@@ -4,7 +4,9 @@ sitemap: false
4
4
  ---
5
5
 
6
6
  @charset "utf-8";
7
- @use "style";
7
+ @use "sass:meta";
8
+ @import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&display=swap");
9
+ @include meta.load-css("style");
8
10
 
9
11
  :root {
10
12
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
@@ -1 +1 @@
1
- (function(){var e,t=()=>{if(typeof window>`u`)return new Map;if(!e){let t=window;t.Ionicons=t.Ionicons||{},e=t.Ionicons.map=t.Ionicons.map||new Map}return e},n=e=>{Object.keys(e).forEach(t=>{r(t,e[t]);let n=t.replace(/([a-z0-9]|(?=[A-Z]))([A-Z0-9])/g,`$1-$2`).toLowerCase();t!==n&&r(n,e[t])})},r=(e,n)=>{let r=t(),i=r.get(e);i===void 0?r.set(e,n):i!==n&&console.warn(`[Ionicons Warning]: Multiple icons were mapped to name "${e}". Ensure that multiple icons are not mapped to the same icon name.`)},i=`ionicons`,a={hydratedSelectorName:`hydrated`,lazyLoad:!1,updatable:!0},o=Object.defineProperty,s=(e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})},c=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},l=(e,t)=>{let n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e[`s-p`]=[],e[`s-rc`]=[];let r=n;return e.__stencil__getHostRef=()=>r,r},u=(e,t)=>t in e,d=(e,t)=>(0,console.error)(e,t),f=new Map,p=`slot-fb{display:contents}slot-fb[hidden]{display:none}`,m=`http://www.w3.org/1999/xlink`,h=typeof window<`u`?window:{},g=h.HTMLElement||class{},_={$flags$:0,$resourcesUrl$:``,jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)},ee=e=>Promise.resolve(e),te=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync==`function`}catch{}return!1})(),v=!1,ne=[],re=[],ie=(e,t)=>n=>{e.push(n),v||(v=!0,t&&_.$flags$&4?b(y):_.raf(y))},ae=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){d(e)}e.length=0},y=()=>{ae(ne),ae(re),(v=ne.length>0)&&_.raf(y)},b=e=>ee().then(e),oe=ie(re,!0),se=e=>{let t=new URL(e,_.$resourcesUrl$);return t.origin===h.location.origin?t.pathname:t.href},x=e=>(e=typeof e,e===`object`||e===`function`);function ce(e){return(e.head?.querySelector(`meta[name="csp-nonce"]`))?.getAttribute(`content`)??void 0}var le=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);s({},{err:()=>ue,map:()=>de,ok:()=>S,unwrap:()=>fe,unwrapErr:()=>pe});var S=e=>({isOk:!0,isErr:!1,value:e}),ue=e=>({isOk:!1,isErr:!0,value:e});function de(e,t){if(e.isOk){let n=t(e.value);return n instanceof Promise?n.then(e=>S(e)):S(n)}if(e.isErr){let t=e.value;return ue(t)}throw`should never get here`}var fe=e=>{if(e.isOk)return e.value;throw e.value},pe=e=>{if(e.isErr)return e.value;throw e.value},C;function me(e){let t=this.attachShadow({mode:`open`});C===void 0&&(C=null),C&&t.adoptedStyleSheets.push(C)}var w=(e,t=``)=>()=>{},T=new WeakMap,he=(e,t,n)=>{let r=f.get(e);te&&n?(r||=new CSSStyleSheet,typeof r==`string`?r=t:r.replaceSync(t)):r=t,f.set(e,r)},ge=(e,t,n)=>{let r=ve(t),i=f.get(r);if(!h.document)return r;if(e=e.nodeType===11?e:h.document,i)if(typeof i==`string`){e=e.head||e;let n=T.get(e),a;if(n||T.set(e,n=new Set),!n.has(r)){{a=h.document.createElement(`style`),a.innerHTML=i;let n=_.$nonce$??ce(h.document);if(n!=null&&a.setAttribute(`nonce`,n),!(t.$flags$&1))if(e.nodeName===`HEAD`){let t=e.querySelectorAll(`link[rel=preconnect]`),n=t.length>0?t[t.length-1].nextSibling:e.querySelector(`style`);e.insertBefore(a,n?.parentNode===e?n:null)}else if(`host`in e)if(te){let t=new CSSStyleSheet;t.replaceSync(i),e.adoptedStyleSheets.unshift(t)}else{let t=e.querySelector(`style`);t?t.innerHTML=i+t.innerHTML:e.prepend(a)}else e.append(a);t.$flags$&1&&e.insertBefore(a,null)}t.$flags$&4&&(a.innerHTML+=p),n&&n.add(r)}}else e.adoptedStyleSheets.includes(i)||e.adoptedStyleSheets.push(i);return r},_e=e=>{let t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,i=w(`attachStyles`,t.$tagName$),a=ge(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);r&10&&(n[`s-sc`]=a,n.classList.add(a+`-h`)),i()},ve=(e,t)=>`sc-`+e.$tagName$,E=(e,t,...n)=>{let r=null,i=null,a=!1,o=!1,s=[],c=t=>{for(let n=0;n<t.length;n++)r=t[n],Array.isArray(r)?c(r):r!=null&&typeof r!=`boolean`&&((a=typeof e!=`function`&&!x(r))&&(r=String(r)),a&&o?s[s.length-1].$text$+=r:s.push(a?D(null,r):r),o=a)};if(c(n),t){t.key&&(i=t.key);{let e=t.className||t.class;e&&(t.class=typeof e==`object`?Object.keys(e).filter(t=>e[t]).join(` `):e)}}let l=D(e,null);return l.$attrs$=t,s.length>0&&(l.$children$=s),l.$key$=i,l},D=(e,t)=>{let n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},O={},ye=e=>e&&e.$tag$===O,k=e=>{let t=le(e);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,`g`)};k(`::slotted`),k(`:host`),k(`:host-context`);var A=(e,t,n)=>e!=null&&!x(e)?t&4?e===`false`?!1:e===``||!!e:t&1?String(e):e:e,be=(e,t,n)=>{let r=_.ce(t,n);return e.dispatchEvent(r),r},j=(e,t,n,r,i,a,o)=>{if(n===r)return;let s=u(e,t),c=t.toLowerCase();if(t===`class`){let t=e.classList,i=M(n),a=M(r);t.remove(...i.filter(e=>e&&!a.includes(e))),t.add(...a.filter(e=>e&&!i.includes(e)))}else if(t===`style`){for(let t in n)(!r||r[t]==null)&&(t.includes(`-`)?e.style.removeProperty(t):e.style[t]=``);for(let t in r)(!n||r[t]!==n[t])&&(t.includes(`-`)?e.style.setProperty(t,r[t]):e.style[t]=r[t])}else if(t!==`key`)if(t===`ref`)r&&r(e);else if(!e.__lookupSetter__(t)&&t[0]===`o`&&t[1]===`n`){if(t=t[2]===`-`?t.slice(3):u(h,c)?c.slice(2):c[2]+t.slice(3),n||r){let i=t.endsWith(N);t=t.replace(Se,``),n&&_.rel(e,t,n,i),r&&_.ael(e,t,r,i)}}else{let o=x(r);if(s||o&&r!==null)try{if(e.tagName.includes(`-`))e[t]!==r&&(e[t]=r);else{let i=r??``;t===`list`?s=!1:(n==null||e[t]!=i)&&(typeof e.__lookupSetter__(t)==`function`?e[t]=i:e.setAttribute(t,i))}}catch{}let l=!1;c!==(c=c.replace(/^xlink\:?/,``))&&(t=c,l=!0),r==null||r===!1?(r!==!1||e.getAttribute(t)===``)&&(l?e.removeAttributeNS(m,t):e.removeAttribute(t)):(!s||a&4||i)&&!o&&e.nodeType===1&&(r=r===!0?``:r,l?e.setAttributeNS(m,t,r):e.setAttribute(t,r))}},xe=/\s/,M=e=>(typeof e==`object`&&e&&`baseVal`in e&&(e=e.baseVal),!e||typeof e!=`string`?[]:e.split(xe)),N=`Capture`,Se=RegExp(N+`$`),P=(e,t,n,r)=>{let i=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,a=e&&e.$attrs$||{},o=t.$attrs$||{};for(let e of Ce(Object.keys(a)))e in o||j(i,e,a[e],void 0,n,t.$flags$);for(let e of Ce(Object.keys(o)))j(i,e,a[e],o[e],n,t.$flags$)};function Ce(e){return e.includes(`ref`)?[...e.filter(e=>e!==`ref`),`ref`]:e}var F,we=!1,I=(e,t,n)=>{let r=t.$children$[n],i=0,a,o;if(r.$text$!==null)a=r.$elm$=h.document.createTextNode(r.$text$);else{if(!h.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(a=r.$elm$=h.document.createElement(r.$tag$),P(null,r,we),r.$children$)for(i=0;i<r.$children$.length;++i)o=I(e,r,i),o&&a.appendChild(o)}return a[`s-hn`]=F,a},Te=(e,t,n,r,i,a)=>{let o=e,s;for(o.shadowRoot&&o.tagName===F&&(o=o.shadowRoot);i<=a;++i)r[i]&&(s=I(null,n,i),s&&(r[i].$elm$=s,z(o,s,t)))},Ee=(e,t,n)=>{for(let r=t;r<=n;++r){let t=e[r];if(t){let e=t.$elm$;Oe(t),e&&e.remove()}}},De=(e,t,n,r,i=!1)=>{let a=0,o=0,s=0,c=0,l=t.length-1,u=t[0],d=t[l],f=r.length-1,p=r[0],m=r[f],h,g;for(;a<=l&&o<=f;)if(u==null)u=t[++a];else if(d==null)d=t[--l];else if(p==null)p=r[++o];else if(m==null)m=r[--f];else if(L(u,p,i))R(u,p,i),u=t[++a],p=r[++o];else if(L(d,m,i))R(d,m,i),d=t[--l],m=r[--f];else if(L(u,m,i))R(u,m,i),z(e,u.$elm$,d.$elm$.nextSibling),u=t[++a],m=r[--f];else if(L(d,p,i))R(d,p,i),z(e,d.$elm$,u.$elm$),d=t[--l],p=r[++o];else{for(s=-1,c=a;c<=l;++c)if(t[c]&&t[c].$key$!==null&&t[c].$key$===p.$key$){s=c;break}s>=0?(g=t[s],g.$tag$===p.$tag$?(R(g,p,i),t[s]=void 0,h=g.$elm$):h=I(t&&t[o],n,s),p=r[++o]):(h=I(t&&t[o],n,o),p=r[++o]),h&&z(u.$elm$.parentNode,h,u.$elm$)}a>l?Te(e,r[f+1]==null?null:r[f+1].$elm$,n,r,o,f):o>f&&Ee(t,a,l)},L=(e,t,n=!1)=>e.$tag$===t.$tag$?n?(n&&!e.$key$&&t.$key$&&(e.$key$=t.$key$),!0):e.$key$===t.$key$:!1,R=(e,t,n=!1)=>{let r=t.$elm$=e.$elm$,i=e.$children$,o=t.$children$,s=t.$text$;s===null?(P(e,t,we),i!==null&&o!==null?De(r,i,t,o,n):o===null?!n&&a.updatable&&i!==null&&Ee(i,0,i.length-1):(e.$text$!==null&&(r.textContent=``),Te(r,null,t,o,0,o.length-1))):e.$text$!==s&&(r.data=s)},Oe=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Oe)},z=(e,t,n)=>e?.insertBefore(t,n),ke=(e,t,n=!1)=>{let r=e.$hostElement$,i=e.$cmpMeta$,a=e.$vnode$||D(null,null),o=ye(t)?t:E(null,null,t);if(F=r.tagName,i.$attrsToReflect$&&(o.$attrs$=o.$attrs$||{},i.$attrsToReflect$.map(([e,t])=>o.$attrs$[t]=r[e])),n&&o.$attrs$)for(let e of Object.keys(o.$attrs$))r.hasAttribute(e)&&![`key`,`ref`,`style`,`class`].includes(e)&&(o.$attrs$[e]=r[e]);o.$tag$=null,o.$flags$|=4,e.$vnode$=o,o.$elm$=a.$elm$=r.shadowRoot||r,R(a,o,n)},Ae=(e,t)=>{if(t&&!e.$onRenderResolve$&&t[`s-p`]){let n=t[`s-p`].push(new Promise(r=>e.$onRenderResolve$=()=>{t[`s-p`].splice(n-1,1),r()}))}},B=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return Ae(e,e.$ancestorComponent$),oe(()=>je(e,t))},je=(e,t)=>{let n=e.$hostElement$,r=w(`scheduleUpdate`,e.$cmpMeta$.$tagName$),i=n;if(!i)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return a=t?V(i,`componentWillLoad`,void 0,n):V(i,`componentWillUpdate`,void 0,n),a=Me(a,()=>V(i,`componentWillRender`,void 0,n)),r(),Me(a,()=>Pe(e,i,t))},Me=(e,t)=>Ne(e)?e.then(t).catch(e=>{console.error(e),t()}):t(),Ne=e=>e instanceof Promise||e&&e.then&&typeof e.then==`function`,Pe=async(e,t,n)=>{let r=e.$hostElement$,i=w(`update`,e.$cmpMeta$.$tagName$),a=r[`s-rc`];n&&_e(e);let o=w(`render`,e.$cmpMeta$.$tagName$);Fe(e,t,r,n),a&&(a.map(e=>e()),r[`s-rc`]=void 0),o(),i();{let t=r[`s-p`]??[],n=()=>Ie(e);t.length===0?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}},Fe=(e,t,n,r)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,ke(e,t,r)}catch(t){d(t,e.$hostElement$)}return null},Ie=e=>{let t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,r=w(`postUpdate`,t),i=n,a=e.$ancestorComponent$;V(i,`componentDidRender`,void 0,n),e.$flags$&64?(V(i,`componentDidUpdate`,void 0,n),r()):(e.$flags$|=64,Re(n),V(i,`componentDidLoad`,void 0,n),r(),e.$onReadyResolve$(n),a||Le()),e.$onRenderResolve$&&=(e.$onRenderResolve$(),void 0),e.$flags$&512&&b(()=>B(e,!1)),e.$flags$&=-517},Le=e=>{b(()=>be(h,`appload`,{detail:{namespace:i}}))},V=(e,t,n,r)=>{if(e&&e[t])try{return e[t](n)}catch(e){d(e,r)}},Re=e=>e.classList.add(a.hydratedSelectorName??`hydrated`),ze=(e,t)=>c(e).$instanceValues$.get(t),Be=(e,t,n,r)=>{let i=c(e),a=e,o=i.$instanceValues$.get(t),s=i.$flags$,l=a;if(n=A(n,r.$members$[t][0]),n!==o&&!(Number.isNaN(o)&&Number.isNaN(n))){if(i.$instanceValues$.set(t,n),r.$watchers$&&s&128){let e=r.$watchers$[t];e&&e.map(e=>{try{l[e](n,o,t)}catch(e){d(e,a)}})}if((s&18)==2){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,o,t)===!1)return;B(i,!1)}}},Ve=(e,t,n)=>{let r=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);let n=Object.entries(t.$members$??{});n.map(([e,[n]])=>{if(n&31||n&32){let{get:i,set:a}=Object.getOwnPropertyDescriptor(r,e)||{};i&&(t.$members$[e][0]|=2048),a&&(t.$members$[e][0]|=4096),Object.defineProperty(r,e,{get(){return i?i.apply(this):ze(this,e)},configurable:!0,enumerable:!0}),Object.defineProperty(r,e,{set(r){let i=c(this);if(a){let o=n&32?this[e]:i.$hostElement$[e];o===void 0&&i.$instanceValues$.get(e)?r=i.$instanceValues$.get(e):!i.$instanceValues$.get(e)&&o&&i.$instanceValues$.set(e,o),a.apply(this,[A(r,n)]),r=n&32?this[e]:i.$hostElement$[e],Be(this,e,r,t);return}Be(this,e,r,t)}})}});{let i=new Map;r.attributeChangedCallback=function(e,n,o){_.jmp(()=>{let s=i.get(e);if(!(this.hasOwnProperty(s)&&a.lazyLoad)){if(r.hasOwnProperty(s)&&typeof this[s]==`number`&&this[s]==o)return;if(s==null){let r=c(this)?.$flags$;if(r&&!(r&8)&&r&128&&o!==n){let r=this;(t.$watchers$?.[e])?.forEach(t=>{r[t]!=null&&r[t].call(r,o,n,e)})}return}}let l=Object.getOwnPropertyDescriptor(r,s);o=o===null&&typeof this[s]==`boolean`?!1:o,o!==this[s]&&(!l.get||l.set)&&(this[s]=o)})},e.observedAttributes=Array.from(new Set([...Object.keys(t.$watchers$??{}),...n.filter(([e,t])=>t[0]&15).map(([e,n])=>{var r;let a=n[1]||e;return i.set(a,e),n[0]&512&&((r=t.$attrsToReflect$)==null||r.push([e,a])),a})]))}}return e},He=async(e,t,n,r)=>{let i;if(!(t.$flags$&32)){t.$flags$|=32;{i=e.constructor;let n=e.localName;customElements.whenDefined(n).then(()=>t.$flags$|=128)}if(i&&i.style){let e;typeof i.style==`string`&&(e=i.style);let t=ve(n);if(!f.has(t)){let r=w(`registerStyles`,n.$tagName$);he(t,e,!!(n.$flags$&1)),r()}}}let a=t.$ancestorComponent$,o=()=>B(t,!0);a&&a[`s-rc`]?a[`s-rc`].push(o):o()},Ue=e=>{if(!(_.$flags$&1)){let t=c(e),n=t.$cmpMeta$,r=w(`connectedCallback`,n.$tagName$);if(t.$flags$&1)t?.$lazyInstance$||t?.$onReadyPromise$&&t.$onReadyPromise$.then(()=>void 0);else{t.$flags$|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n[`s-p`]){Ae(t,t.$ancestorComponent$=n);break}}n.$members$&&Object.entries(n.$members$).map(([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){let n=e[t];delete e[t],e[t]=n}}),a.initializeNextTick?b(()=>He(e,t,n)):He(e,t,n)}r()}},We=async e=>{_.$flags$&1||c(e),T.has(e)&&T.delete(e),e.shadowRoot&&T.has(e.shadowRoot)&&T.delete(e.shadowRoot)},Ge=(e,t)=>{let n={$flags$:t[0],$tagName$:t[1]};n.$members$=t[2],n.$watchers$=e.$watchers$,n.$attrsToReflect$=[];let r=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){l(this,n)},connectedCallback(){this.__hasHostListenerAttached||=(c(this),!0),Ue(this),r&&r.call(this)},disconnectedCallback(){We(this),i&&i.call(this)},__attachShadow(){if(!this.shadowRoot)me.call(this,n);else if(this.shadowRoot.mode!==`open`)throw Error(`Unable to re-use existing shadow root for ${n.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}),e.is=n.$tagName$,Ve(e,n)},H,Ke=()=>{if(typeof window>`u`)return new Map;if(!H){let e=window;e.Ionicons=e.Ionicons||{},H=e.Ionicons.map=e.Ionicons.map||new Map}return H},qe=e=>{let t=U(e.src);return t||(t=Ye(e.name,e.icon,e.mode,e.ios,e.md),t?Je(t,e):e.icon&&(t=U(e.icon),t||(t=U(e.icon[e.mode]),t))?t:null)},Je=(e,t)=>{let n=Ke().get(e);if(n)return n;try{return se(`svg/${e}.svg`)}catch(n){console.log(`e`,n),console.warn(`[Ionicons Warning]: Could not load icon with name "${e}". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`,t)}},Ye=(e,t,n,r,i)=>(n=(n&&K(n))===`ios`?`ios`:`md`,r&&n===`ios`?e=K(r):i&&n===`md`?e=K(i):(!e&&t&&!W(t)&&(e=t),G(e)&&(e=K(e))),!G(e)||e.trim()===``||e.replace(/[a-z]|-|\d/gi,``)!==``?null:e),U=e=>G(e)&&(e=e.trim(),W(e))?e:null,W=e=>e.length>0&&/(\/|\.)/.test(e),G=e=>typeof e==`string`,K=e=>e.toLowerCase(),Xe=(e,t=[])=>{let n={};return t.forEach(t=>{e.hasAttribute(t)&&(e.getAttribute(t)!==null&&(n[t]=e.getAttribute(t)),e.removeAttribute(t))}),n},Ze=e=>e&&e.dir!==``?e.dir.toLowerCase()===`rtl`:(document==null?void 0:document.dir.toLowerCase())===`rtl`,Qe=e=>{let t=document.createElement(`div`);t.innerHTML=e;for(let e=t.childNodes.length-1;e>=0;e--)t.childNodes[e].nodeName.toLowerCase()!==`svg`&&t.removeChild(t.childNodes[e]);let n=t.firstElementChild;if(n&&n.nodeName.toLowerCase()===`svg`){let e=n.getAttribute(`class`)||``;if(n.setAttribute(`class`,(e+` s-ion-icon`).trim()),$e(n))return t.innerHTML}return``},$e=e=>{if(e.nodeType===1){if(e.nodeName.toLowerCase()===`script`)return!1;for(let t=0;t<e.attributes.length;t++){let n=e.attributes[t].name;if(G(n)&&n.toLowerCase().indexOf(`on`)===0)return!1}for(let t=0;t<e.childNodes.length;t++)if(!$e(e.childNodes[t]))return!1}return!0},et=e=>e.startsWith(`data:image/svg+xml`),tt=e=>e.indexOf(`;utf8,`)!==-1,q=new Map,nt=new Map,rt;function J(e){return q.set(e,``),``}var it=(e,t)=>nt.get(e)||(typeof fetch<`u`&&typeof document<`u`?et(e)&&tt(e)?Promise.resolve(at(e)):ot(e,t):Promise.resolve(J(e)));function at(e){rt||=new DOMParser;let t=rt.parseFromString(e,`text/html`).querySelector(`svg`);if(t)return q.set(e,t.outerHTML),t.outerHTML;throw Error(`Could not parse svg from ${e}`)}function ot(e,t){let n=fetch(e).then(n=>n.text().then(n=>{n&&t!==!1&&(n=Qe(n));let r=n||``;return q.set(e,r),r}).catch(()=>J(e))).catch(()=>J(e));return nt.set(e,n),n}var st=`:host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}@supports (background: -webkit-named-image(i)){:host(.icon-rtl) .icon-inner{transform:scaleX(-1)}}@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])){:host(.icon-rtl) .icon-inner{transform:scaleX(-1)}}:host(.flip-rtl):host-context([dir='rtl']) .icon-inner{transform:scaleX(-1)}@supports selector(:dir(rtl)){:host(.flip-rtl:dir(rtl)) .icon-inner{transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{transform:scaleX(1)}}:host(.icon-small){font-size:1.125rem !important}:host(.icon-large){font-size:2rem !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}`,ct=Ge(class extends g{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.didLoadIcon=!1,this.isVisible=!1,this.mode=lt(),this.lazy=!1,this.sanitize=!0}componentWillLoad(){this.inheritedAttributes=Xe(this.el,[`aria-label`])}connectedCallback(){this.waitUntilVisible(this.el,`50px`,()=>{this.isVisible=!0,this.loadIcon()})}componentDidLoad(){this.didLoadIcon||this.loadIcon()}disconnectedCallback(){this.io&&=(this.io.disconnect(),void 0)}waitUntilVisible(e,t,n){if(!(this.lazy&&typeof window<`u`&&window.IntersectionObserver))return n();let r=this.io=new window.IntersectionObserver(e=>{e[0].isIntersecting&&(r.disconnect(),this.io=void 0,n())},{rootMargin:t});r.observe(e)}loadIcon(){if(this.isVisible){let e=qe(this);e&&(q.has(e)?this.svgContent=q.get(e):it(e,this.sanitize).then(()=>this.svgContent=q.get(e)),this.didLoadIcon=!0)}this.iconName=Ye(this.name,this.icon,this.mode,this.ios,this.md)}render(){let{flipRtl:e,iconName:t,inheritedAttributes:n,el:r}=this,i=this.mode||`md`,a=t?(t.includes(`arrow`)||t.includes(`chevron`))&&e!==!1:!1,o=e||a;return E(O,Object.assign({key:`0578c899781ca145dd8205acd9670af39b57cf2e`,role:`img`,class:Object.assign(Object.assign({[i]:!0},ut(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":o,"icon-rtl":o&&Ze(r)})},n),this.svgContent?E(`div`,{class:`icon-inner`,innerHTML:this.svgContent}):E(`div`,{class:`icon-inner`}))}static get assetsDirs(){return[`svg`]}get el(){return this}static get watchers(){return{name:[`loadIcon`],src:[`loadIcon`],icon:[`loadIcon`],ios:[`loadIcon`],md:[`loadIcon`]}}static get style(){return st}},[1,`ion-icon`,{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,`flip-rtl`],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32]},void 0,{name:[`loadIcon`],src:[`loadIcon`],icon:[`loadIcon`],ios:[`loadIcon`],md:[`loadIcon`]}]),lt=()=>typeof document<`u`&&document.documentElement.getAttribute(`mode`)||`md`,ut=e=>e?{"ion-color":!0,[`ion-color-${e}`]:!0}:null;function dt(){typeof customElements>`u`||[`ion-icon`].forEach(e=>{switch(e){case`ion-icon`:customElements.get(e)||customElements.define(e,ct);break}})}var ft=dt,pt=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='M328 112 184 256l144 144' stroke-linecap='round' stroke-linejoin='round' stroke-width='48px' class='ionicon-fill-none'/></svg>`,mt=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='m112 184 144 144 144-144' stroke-linecap='round' stroke-linejoin='round' stroke-width='48px' class='ionicon-fill-none'/></svg>`,ht=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='m184 112 144 144-144 144' stroke-linecap='round' stroke-linejoin='round' stroke-width='48px' class='ionicon-fill-none'/></svg>`,gt=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34Z'/></svg>`,_t=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='M256 32C132.3 32 32 134.9 32 261.7c0 101.5 64.2 187.5 153.2 217.9a17.6 17.6 0 0 0 3.8.4c8.3 0 11.5-6.1 11.5-11.4 0-5.5-.2-19.9-.3-39.1a102.4 102.4 0 0 1-22.6 2.7c-43.1 0-52.9-33.5-52.9-33.5-10.2-26.5-24.9-33.6-24.9-33.6-19.5-13.7-.1-14.1 1.4-14.1h.1c22.5 2 34.3 23.8 34.3 23.8 11.2 19.6 26.2 25.1 39.6 25.1a63 63 0 0 0 25.6-6c2-14.8 7.8-24.9 14.2-30.7-49.7-5.8-102-25.5-102-113.5 0-25.1 8.7-45.6 23-61.6-2.3-5.8-10-29.2 2.2-60.8a18.6 18.6 0 0 1 5-.5c8.1 0 26.4 3.1 56.6 24.1a208.2 208.2 0 0 1 112.2 0c30.2-21 48.5-24.1 56.6-24.1a18.6 18.6 0 0 1 5 .5c12.2 31.6 4.5 55 2.2 60.8 14.3 16.1 23 36.6 23 61.6 0 88.2-52.4 107.6-102.3 113.3 8 7.1 15.2 21.1 15.2 42.5 0 30.7-.3 55.5-.3 63 0 5.4 3.1 11.5 11.4 11.5a19.4 19.4 0 0 0 4-.4C415.9 449.2 480 363.1 480 261.7 480 134.9 379.7 32 256 32'/></svg>`,vt=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='M444.17 32H70.28C49.85 32 32 46.7 32 66.89v374.72C32 461.91 49.85 480 70.28 480h373.78c20.54 0 35.94-18.21 35.94-38.39V66.89C480.12 46.7 464.6 32 444.17 32m-273.3 373.43h-64.18V205.88h64.18ZM141 175.54h-.46c-20.54 0-33.84-15.29-33.84-34.43 0-19.49 13.65-34.42 34.65-34.42s33.85 14.82 34.31 34.42c-.01 19.14-13.31 34.43-34.66 34.43m264.43 229.89h-64.18V296.32c0-26.14-9.34-44-32.56-44-17.74 0-28.24 12-32.91 23.69-1.75 4.2-2.22 9.92-2.22 15.76v113.66h-64.18V205.88h64.18v27.77c9.34-13.3 23.93-32.44 57.88-32.44 42.13 0 74 27.77 74 87.64Z'/></svg>`,yt=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='M496 109.5a201.8 201.8 0 0 1-56.55 15.3 97.5 97.5 0 0 0 43.33-53.6 197.7 197.7 0 0 1-62.56 23.5A99.14 99.14 0 0 0 348.31 64c-54.42 0-98.46 43.4-98.46 96.9a93.2 93.2 0 0 0 2.54 22.1 280.7 280.7 0 0 1-203-101.3A95.7 95.7 0 0 0 36 130.4c0 33.6 17.53 63.3 44 80.7A97.5 97.5 0 0 1 35.22 199v1.2c0 47 34 86.1 79 95a100.8 100.8 0 0 1-25.94 3.4 94.4 94.4 0 0 1-18.51-1.8c12.51 38.5 48.92 66.5 92.05 67.3A199.6 199.6 0 0 1 39.5 405.6a203 203 0 0 1-23.5-1.4A278.7 278.7 0 0 0 166.74 448c181.36 0 280.44-147.7 280.44-275.8 0-4.2-.11-8.4-.31-12.5A198.5 198.5 0 0 0 496 109.5'/></svg>`,bt=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='M508.64 148.79c0-45-33.1-81.2-74-81.2C379.24 65 322.74 64 265 64h-18c-57.6 0-114.2 1-169.6 3.6C36.6 67.6 3.5 104 3.5 149 1 184.59-.06 220.19 0 255.79q-.15 53.4 3.4 106.9c0 45 33.1 81.5 73.9 81.5 58.2 2.7 117.9 3.9 178.6 3.8q91.2.3 178.6-3.8c40.9 0 74-36.5 74-81.5 2.4-35.7 3.5-71.3 3.4-107q.34-53.4-3.26-106.9M207 353.89v-196.5l145 98.2Z'/></svg>`,xt=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='M80 160h352M80 256h352M80 352h352' stroke-linecap='round' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/></svg>`,St=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64Z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path d='M338.29 338.29 448 448' stroke-linecap='round' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/></svg>`,Ct=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='M256 64C150 64 64 150 64 256s86 192 192 192 192-86 192-192S362 64 256 64Z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path d='M256 128v144h96' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>`,wt=`menu-outline`,Tt=`close`,Et=()=>{let e=document.querySelector(`.site-header__toggle`);if(!e)return;let t=document.querySelector(e.dataset.target);if(!t)return;let n=e.querySelector(`.sr-only`),r=e.dataset.openLabel||`Open navigation menu`,i=e.dataset.closeLabel||`Close navigation menu`,a=a=>{e.setAttribute(`aria-expanded`,a?`true`:`false`),e.setAttribute(`aria-label`,a?i:r),n&&(n.textContent=a?i:r);let o=e.querySelector(`ion-icon`);o&&(o.name=a?Tt:wt),t.hidden=!a,t.classList.toggle(`is-hidden`,!a)},o=()=>{t.hidden||a(!1)};a(!1),e.addEventListener(`click`,()=>{let n=e.getAttribute(`aria-expanded`)!==`true`;if(a(n),n){let e=t.querySelector(`a, button, input, [tabindex]:not([tabindex="-1"])`);e&&e.focus();return}e.focus()}),document.addEventListener(`click`,n=>{let r=t.contains(n.target),i=e.contains(n.target);!r&&!i&&o()}),document.addEventListener(`keydown`,n=>{if(n.key===`Escape`){let n=!t.hidden;o(),n&&e.focus()}})},Dt=()=>window.matchMedia(`(prefers-reduced-motion: reduce)`).matches?`auto`:`smooth`,Ot=(e,t,n)=>{let r=e.scrollWidth-e.clientWidth,i=r>1,a=e.scrollLeft<=1,o=e.scrollLeft>=r-1;t.disabled=!i||a,n.disabled=!i||o},kt=e=>{let t=e.querySelector(`[data-carousel-track]`),n=e.querySelector(`[data-carousel-prev]`),r=e.querySelector(`[data-carousel-next]`);if(!t||!n||!r)return;let i=e=>{t.scrollBy({left:e*t.clientWidth,behavior:Dt()})},a=null,o=()=>{a!==null&&window.cancelAnimationFrame(a),a=window.requestAnimationFrame(()=>{Ot(t,n,r),a=null})};n.addEventListener(`click`,()=>i(-1)),r.addEventListener(`click`,()=>i(1)),t.addEventListener(`scroll`,o,{passive:!0}),window.addEventListener(`resize`,o),Ot(t,n,r)},At=()=>{document.querySelectorAll(`[data-carousel]`).forEach(kt)},Y=null,jt=e=>{e&&e.open&&e.close()},Mt=()=>{let e=document.querySelectorAll(`[data-certificate-open]`),t=document.querySelectorAll(`[data-certificate-modal]`);!e.length||!t.length||(e.forEach(e=>{e.addEventListener(`click`,()=>{let t=document.getElementById(e.dataset.certificateOpen);!t||typeof t.showModal!=`function`||t.open||(Y=e,t.showModal())})}),t.forEach(e=>{e.querySelector(`[data-certificate-close]`)?.addEventListener(`click`,()=>{jt(e)}),e.addEventListener(`click`,t=>{t.target===e&&jt(e)}),e.addEventListener(`close`,()=>{Y&&=(Y.focus(),null)})}))},Nt={category:`data-category`,categoryId:`data-category-id`,emitMetadata:`data-emit-metadata`,inputPosition:`data-input-position`,lang:`data-lang`,loading:`data-loading`,mapping:`data-mapping`,reactionsEnabled:`data-reactions-enabled`,repo:`data-repo`,repoId:`data-repo-id`,strict:`data-strict`,term:`data-term`,theme:`data-theme`},Pt=e=>{if(!e||e.dataset.giscusLoaded===`true`)return;let t=document.createElement(`script`);t.src=e.dataset.giscusScriptSrc||`https://giscus.app/client.js`,t.async=!0,t.crossOrigin=`anonymous`;for(let[n,r]of Object.entries(Nt)){let i=e.dataset[`giscus${n.charAt(0).toUpperCase()}${n.slice(1)}`];i&&t.setAttribute(r,i)}e.append(t),e.dataset.giscusLoaded=`true`},Ft=()=>{let e=document.querySelectorAll(`[data-comments-collapsible]`);e.length&&e.forEach(e=>{let t=e.querySelector(`[data-comments-toggle]`),n=e.querySelector(`[data-comments-panel]`),r=e.querySelector(`[data-giscus-mount]`);!t||!n||!r||t.addEventListener(`click`,()=>{let i=t.getAttribute(`aria-expanded`)!==`true`;t.setAttribute(`aria-expanded`,i?`true`:`false`),e.classList.toggle(`is-open`,i),n.hidden=!i,i&&Pt(r)})})},It=()=>{let e=document.querySelector(`#main-header`);if(!e)return;let t=()=>{if(window.scrollY>8){e.classList.add(`is-scrolled`);return}e.classList.remove(`is-scrolled`)};t(),window.addEventListener(`scroll`,t,{passive:!0})},Lt=()=>{let e=document.querySelectorAll(`[data-series-collapsible]`);e.length&&e.forEach(e=>{let t=e.querySelector(`[data-series-toggle]`),n=e.querySelector(`[data-series-panel]`);if(!t||!n)return;let r=()=>{let r=t.getAttribute(`aria-expanded`)===`true`;e.classList.toggle(`is-open`,r),n.hidden=!r};r(),t.addEventListener(`click`,()=>{let e=t.getAttribute(`aria-expanded`)===`true`;t.setAttribute(`aria-expanded`,e?`false`:`true`),r()});let i=e.querySelectorAll(`[data-series-overflow-toggle]`);i.length&&i.forEach(t=>{t.addEventListener(`click`,()=>{let n=t.dataset.seriesOverflowGroup,r=n?`[data-series-overflow-item][data-series-overflow-group="${n}"]`:`[data-series-overflow-item]`;e.querySelectorAll(r).forEach(e=>{e.hidden=!1}),t.setAttribute(`aria-expanded`,`true`),t.hidden=!0})})})},Rt=()=>{let e=document.querySelector(`[data-reading-progress]`),t=document.querySelector(`.content`);if(!e||!t)return;let n=()=>{let n=t.offsetTop,r=t.offsetHeight,i=window.innerHeight,a=window.scrollY,o=Math.max(r-i,1),s=Math.min(Math.max(a-n,0),o)/o*100;e.style.transform=`scaleX(${s/100})`};n(),window.addEventListener(`scroll`,n,{passive:!0}),window.addEventListener(`resize`,n)},zt=`[data-search-root]`,X,Z=e=>(e||``).toString().normalize(`NFKD`).replace(/[\u0300-\u036f]/g,``).toLowerCase().replace(/[^a-z0-9\s-]/g,` `).replace(/\s+/g,` `).trim(),Bt=e=>Z(e).split(` `).filter(e=>e.length>0),Vt=e=>[...new Set(Bt(e))],Ht=(e,t)=>{let n=e.date?Date.parse(e.date):0,r=t.date?Date.parse(t.date):0;return Number.isNaN(n)||Number.isNaN(r)?0:r-n},Ut=e=>{let t=e.title||``,n=e.content||``,r=Array.isArray(e.tags)?e.tags:[],i=Array.isArray(e.categories)?e.categories:[];return{...e,title:t,content:n,tags:r,categories:i,normalizedTitle:Z(t),normalizedContent:Z(n),normalizedTags:r.map(Z).filter(Boolean),normalizedCategories:i.map(Z).filter(Boolean)}},Wt=async e=>(X||=fetch(e,{headers:{Accept:`application/json`}}).then(e=>{if(!e.ok)throw Error(`Search index request failed with ${e.status}`);return e.json()}).then(e=>e.map(Ut)).catch(e=>{throw X=void 0,e}),X),Gt=(e,t,n)=>{let r=0;e.normalizedTitle.includes(t)&&(r+=140),e.normalizedContent.includes(t)&&(r+=30),n.forEach(t=>{e.normalizedTitle.includes(t)&&(r+=60),e.normalizedTags.some(e=>e.includes(t))&&(r+=30),e.normalizedCategories.some(e=>e.includes(t))&&(r+=18),e.normalizedContent.includes(t)&&(r+=10)});let i=n.filter(t=>e.normalizedTitle.includes(t)||e.normalizedTags.some(e=>e.includes(t))||e.normalizedCategories.some(e=>e.includes(t))||e.normalizedContent.includes(t)).length;return i===0?0:(i===n.length&&(r+=24),e.type===`post`&&(r+=4),r)},Kt=(e,t,n)=>{let r=Z(t),i=Vt(t);return!r||i.length===0?[]:e.map(e=>({searchDocument:e,score:Gt(e,r,i)})).filter(e=>e.score>0).sort((e,t)=>t.score-e.score||Ht(e.searchDocument,t.searchDocument)).slice(0,n).map(e=>e.searchDocument)},qt=(e,t,n)=>{let r=e.replace(/\s+/g,` `).trim();if(!r)return``;let i=Z(t),a=Z(r).indexOf(i);if(a===-1)return r.length>n?`${r.slice(0,n).trimEnd()}...`:r;let o=Math.max(a-Math.floor(n/3),0),s=Math.min(o+n,r.length),c=o>0?`...`:``,l=s<r.length?`...`:``;return`${c}${r.slice(o,s).trim()}${l}`},Jt=e=>{let t=[];return e.type&&t.push(e.type===`post`?`Post`:`Page`),e.tags.length>0&&t.push(e.tags.slice(0,2).join(`, `)),t.join(` • `)},Yt=(e,t,n,r)=>{let i=e.querySelector(`[data-search-results]`),a=e.querySelector(`[data-search-status]`);i.innerHTML=``,a.textContent=r,t.forEach(t=>{let r=window.document.createElement(`li`);r.className=`site-search__result-item`;let a=window.document.createElement(`a`);a.className=`site-search__result-link`,a.href=t.url;let o=window.document.createElement(`span`);o.className=`site-search__result-title`,o.textContent=t.title,a.append(o);let s=Jt(t);if(s){let e=window.document.createElement(`span`);e.className=`site-search__result-meta`,e.textContent=s,a.append(e)}let c=Number(e.dataset.searchContentPreviewLength||`140`),l=qt(t.content,n,c);if(l){let e=window.document.createElement(`span`);e.className=`site-search__result-snippet`,e.textContent=l,a.append(e)}r.append(a),i.append(r)})},Xt=e=>{let t=e.querySelector(`[data-search-panel]`),n=e.querySelector(`[data-search-input]`);t.hidden=!1,n.setAttribute(`aria-expanded`,`true`),t.setAttribute(`aria-hidden`,`false`)},Q=e=>{let t=e.querySelector(`[data-search-panel]`),n=e.querySelector(`[data-search-input]`);t.hidden=!0,n.setAttribute(`aria-expanded`,`false`),t.setAttribute(`aria-hidden`,`true`)},$=(e,t)=>{let n=[...e.querySelectorAll(`.site-search__result-link`)];if(n.length===0)return;let r=n.findIndex(e=>e===window.document.activeElement);n[r===-1?t>0?0:n.length-1:(r+t+n.length)%n.length].focus()},Zt=e=>{let t=e.querySelector(`[data-search-input]`),n=e.querySelector(`[data-search-clear]`),r=e.querySelector(`.site-search__form`),i=e.dataset.searchUrl,a=Number(e.dataset.searchMaxResults||`8`),o=Number(e.dataset.searchMinQueryLength||`2`),s=e.dataset.searchIdleText||`Start typing to search the site.`,c=e.dataset.searchTooShortText||`Type at least %d characters to search.`,l=e.dataset.searchLoadingText||`Loading search index...`,u=e.dataset.searchEmptyText||`No results found.`,d=e.dataset.searchErrorText||`Search is unavailable right now.`,f=t=>{let n=e.querySelector(`[data-search-status]`);n.textContent=t},p=()=>{e.querySelector(`[data-search-results]`).innerHTML=``},m=()=>{n.hidden=t.value.length===0},h=async()=>{let n=t.value.trim();if(m(),n.length===0){p(),f(s),Q(e);return}if(Xt(e),n.length<o){p(),f(c.replace(`%d`,`${o}`));return}f(l);try{let t=Kt(await Wt(i),n,a);if(t.length===0){Yt(e,[],n,u);return}Yt(e,t,n,`${t.length} result${t.length===1?``:`s`} for "${n}"`)}catch{p(),f(d)}};t.addEventListener(`focus`,()=>{t.value.trim().length>0&&h()}),t.addEventListener(`input`,()=>{h()}),t.addEventListener(`keydown`,t=>{t.key===`ArrowDown`&&(t.preventDefault(),e.querySelector(`.site-search__result-link`)&&Xt(e),$(e,1)),t.key===`Escape`&&Q(e)}),e.addEventListener(`keydown`,n=>{if(n.key===`Escape`&&(Q(e),t.focus()),n.key===`ArrowDown`&&n.target.matches(`.site-search__result-link`)&&(n.preventDefault(),$(e,1)),n.key===`ArrowUp`&&n.target.matches(`.site-search__result-link`)){if(n.preventDefault(),n.target===e.querySelector(`.site-search__result-link`)){t.focus();return}$(e,-1)}}),n.addEventListener(`click`,()=>{t.value=``,m(),p(),f(s),Q(e),t.focus()}),r.addEventListener(`submit`,t=>{t.preventDefault();let n=e.querySelector(`.site-search__result-link`);if(n){window.location.assign(n.href);return}h()}),window.document.addEventListener(`click`,t=>{e.contains(t.target)||Q(e)}),Q(e)};n({"chevron-back-outline":pt,"chevron-down-outline":mt,"chevron-forward-outline":ht,close:gt,"logo-github":_t,"logo-linkedin":vt,"logo-twitter":yt,"logo-youtube":bt,"menu-outline":xt,"search-outline":St,"time-outline":Ct}),ft(),Et(),At(),Mt(),Ft(),It(),Lt(),Rt(),(()=>{let e=window.document.querySelectorAll(zt);e.length!==0&&e.forEach(Zt)})()})();
1
+ (function(){var e,t=()=>{if(typeof window>`u`)return new Map;if(!e){let t=window;t.Ionicons=t.Ionicons||{},e=t.Ionicons.map=t.Ionicons.map||new Map}return e},n=e=>{Object.keys(e).forEach(t=>{r(t,e[t]);let n=t.replace(/([a-z0-9]|(?=[A-Z]))([A-Z0-9])/g,`$1-$2`).toLowerCase();t!==n&&r(n,e[t])})},r=(e,n)=>{let r=t(),i=r.get(e);i===void 0?r.set(e,n):i!==n&&console.warn(`[Ionicons Warning]: Multiple icons were mapped to name "${e}". Ensure that multiple icons are not mapped to the same icon name.`)};function i(e,t,n){let r=typeof HTMLElement<`u`?HTMLElement.prototype:null;for(;e&&e!==r;){let r=Object.getOwnPropertyDescriptor(e,t);if(r&&(!n||r.get))return r;e=Object.getPrototypeOf(e)}}var a,o=(e,t)=>{Object.entries(t.o.t??{}).map((([n,[r]])=>{if(31&r||32&r){let r=e[n],a=i(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);a&&Object.defineProperty(e,n,{get(){return a.get.call(this)},set(e){a.set.call(this,e)},configurable:!0,enumerable:!0}),t.l.has(n)?e[n]=t.l.get(n):r!==void 0&&(e[n]=r)}}))},s=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},c=(e,t)=>t in e,l=(e,t)=>(0,console.error)(e,t),u=new Map,d=`http://www.w3.org/1999/xlink`,f=typeof window<`u`?window:{},p=f.HTMLElement||class{},m={i:0,u:``,jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)},h=(()=>{try{return!!f.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync==`function`)}catch{}return!1})(),g=!!h&&!!f.document&&Object.getOwnPropertyDescriptor(f.document.adoptedStyleSheets,`length`).writable,_=!1,v=[],ee=[],te=(e,t)=>n=>{e.push(n),_||(_=!0,t&&4&m.i?x(b):m.raf(b))},y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},b=()=>{y(v),y(ee),(_=v.length>0)&&m.raf(b)},x=e=>Promise.resolve(void 0).then(e),ne=te(ee,!0),re=e=>{let t=new URL(e,m.u);return t.origin===f.location.origin?t.pathname:t.href};function ie(){let e=this.attachShadow({mode:`open`});a===void 0&&(a=null),a&&(g?e.adoptedStyleSheets.push(a):e.adoptedStyleSheets=[...e.adoptedStyleSheets,a])}var S,C=new WeakMap,w=e=>`sc-`+e.p,T=e=>(e=typeof e)==`object`||e===`function`,E=(e,t,...n)=>{let r=null,i=null,a=!1,o=!1,s=[],c=t=>{for(let n=0;n<t.length;n++)r=t[n],Array.isArray(r)?c(r):r!=null&&typeof r!=`boolean`&&((a=typeof e!=`function`&&!T(r))&&(r+=``),a&&o?s[s.length-1].h+=r:s.push(a?D(null,r):r),o=a)};if(c(n),t){t.key&&(i=t.key);{let e=t.className||t.class;e&&(t.class=typeof e==`object`?Object.keys(e).filter((t=>e[t])).join(` `):e)}}let l=D(e,null);return l.m=t,s.length>0&&(l.$=s),l.v=i,l},D=(e,t)=>({i:0,j:e,h:t??null,O:null,$:null,m:null,v:null}),ae={},oe=e=>{if(!e)return;let t=Object.keys(e);if(t.length===0)return;let n=!1;for(let r of t){if(n)break;for(let t of e[r])if(typeof t==`string`){n=!0;break}}if(!n)return e;let r={};for(let n of t)r[n]=e[n].map((e=>typeof e==`string`?{[e]:0}:e));return r},se=(e,t)=>e==null||T(e)?e:4&t?e!==`false`&&(e===``||!!e):1&t?e+``:e,ce=(e,t,n,r,i,a)=>{if(n===r)return;let o=c(e,t),l=t.toLowerCase();if(t===`class`){let t=e.classList,i=ue(n),a=ue(r);t.remove(...i.filter((e=>e&&!a.includes(e)))),t.add(...a.filter((e=>e&&!i.includes(e))))}else if(t===`style`){for(let t in n)r&&r[t]!=null||(t.includes(`-`)?e.style.removeProperty(t):e.style[t]=``);for(let t in r)n&&r[t]===n[t]||(t.includes(`-`)?e.style.setProperty(t,r[t]):e.style[t]=r[t])}else if(t!==`key`){if(t===`ref`)r&&ge(r,e);else if(e.__lookupSetter__(t)||t[0]!==`o`||t[1]!==`n`){if(t[0]===`a`&&t.startsWith(`attr:`)){let n=t.slice(5),i;{let t=s(e);if(t&&t.o&&t.o.t){let e=t.o.t[n];e&&e[1]&&(i=e[1])}}i||=n.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),r==null||!1===r?!1===r&&e.getAttribute(i)!==``||e.removeAttribute(i):e.setAttribute(i,!0===r?``:r);return}if(t[0]===`p`&&t.startsWith(`prop:`)){let n=t.slice(5);try{e[n]=r}catch{}return}{let s=T(r);if((o||s&&r!==null)&&!i)try{if(e.tagName.includes(`-`))e[t]!==r&&(e[t]=r);else{let i=r??``;t===`list`?o=!1:n!=null&&e[t]===i||(typeof e.__lookupSetter__(t)==`function`?e[t]=i:e.setAttribute(t,i))}}catch{}let c=!1;l!==(l=l.replace(/^xlink\:?/,``))&&(t=l,c=!0),r==null||!1===r?!1===r&&e.getAttribute(t)!==``||(c?e.removeAttributeNS(d,t):e.removeAttribute(t)):(!o||4&a||i)&&!s&&e.nodeType===1&&(r=!0===r?``:r,c?e.setAttributeNS(d,t,r):e.setAttribute(t,r))}}else if(t=t[2]===`-`?t.slice(3):c(f,l)?l.slice(2):l[2]+t.slice(3),n||r){let i=t.endsWith(de);t=t.replace(fe,``),n&&m.rel(e,t,n,i),r&&m.ael(e,t,r,i)}}},le=/\s/,ue=e=>(typeof e==`object`&&e&&`baseVal`in e&&(e=e.baseVal),e&&typeof e==`string`?e.split(le):[]),de=`Capture`,fe=RegExp(de+`$`),pe=(e,t,n)=>{let r=t.O.nodeType===11&&t.O.host?t.O.host:t.O,i=e&&e.m||{},a=t.m||{};for(let e of me(Object.keys(i)))e in a||ce(r,e,i[e],void 0,n,t.i);for(let e of me(Object.keys(a)))ce(r,e,i[e],a[e],n,t.i)};function me(e){return e.includes(`ref`)?[...e.filter((e=>e!==`ref`)),`ref`]:e}var he=!1,O=!1,k=[],A=[],j=(e,t,n)=>{let r=t.$[n],i,a,o=0;if(r.h!=null)i=r.O=f.document.createTextNode(r.h);else{if(!f.document)throw Error(`You are trying to render a Stencil component in an environment that doesn't support the DOM.`);if(i=r.O=f.document.createElement(r.j),pe(null,r,O),r.$){let t=r.j===`template`?i.content:i;for(o=0;o<r.$.length;++o)a=j(e,r,o),a&&t.appendChild(a)}}return i[`s-hn`]=S,i},M=(e,t,n,r,i,a)=>{let o,s=e;for(s.shadowRoot&&s.tagName===S&&(s=s.shadowRoot),n.j===`template`&&(s=s.content);i<=a;++i)r[i]&&(o=j(null,n,i),o&&(r[i].O=o,L(s,o,t)))},N=(e,t,n)=>{for(let r=t;r<=n;++r){let t=e[r];if(t){let e=t.O;I(t),e&&e.remove()}}},P=(e,t,n=!1)=>e.j===t.j&&(n?(n&&!e.v&&t.v&&(e.v=t.v),!0):e.v===t.v),F=(e,t,n=!1)=>{let r=t.O=e.O,i=e.$,a=t.$,o=t.h;o==null?(t.j!==`slot`||he||e.S!==t.S&&(t.O[`s-sn`]=t.S||``,(e=>{m.i|=1;let t=e.closest(S.toLowerCase());if(t!=null){let n=Array.from(t.__childNodes||t.childNodes).find((e=>e[`s-cr`])),r=Array.from(e.__childNodes||e.childNodes);for(let e of n?r.reverse():r)e[`s-sh`]!=null&&(L(t,e,n??null),e[`s-sh`]=void 0)}m.i&=-2})(t.O.parentElement)),pe(e,t,O),i!==null&&a!==null?((e,t,n,r,i=!1)=>{let a,o,s=0,c=0,l=0,u=0,d=t.length-1,f=t[0],p=t[d],m=r.length-1,h=r[0],g=r[m],_=n.j===`template`?e.content:e;for(;s<=d&&c<=m;)if(f==null)f=t[++s];else if(p==null)p=t[--d];else if(h==null)h=r[++c];else if(g==null)g=r[--m];else if(P(f,h,i))F(f,h,i),f=t[++s],h=r[++c];else if(P(p,g,i))F(p,g,i),p=t[--d],g=r[--m];else if(P(f,g,i))F(f,g,i),L(_,f.O,p.O.nextSibling),f=t[++s],g=r[--m];else if(P(p,h,i))F(p,h,i),L(_,p.O,f.O),p=t[--d],h=r[++c];else{for(l=-1,u=s;u<=d;++u)if(t[u]&&t[u].v!==null&&t[u].v===h.v){l=u;break}l>=0?(o=t[l],o.j===h.j?(F(o,h,i),t[l]=void 0,a=o.O):a=j(t&&t[c],n,l),h=r[++c]):(a=j(t&&t[c],n,c),h=r[++c]),a&&L(f.O.parentNode,a,f.O)}s>d?M(e,r[m+1]==null?null:r[m+1].O,n,r,c,m):c>m&&N(t,s,d)})(r,i,t,a,n):a===null?!n&&i!==null&&N(i,0,i.length-1):(e.h!==null&&(r.textContent=``),M(r,null,t,a,0,a.length-1))):e.h!==o&&(r.data=o)},I=e=>{e.m&&e.m.ref&&k.push((()=>e.m.ref(null))),e.$&&e.$.map(I)},ge=(e,t)=>{A.push((()=>e(t)))},L=(e,t,n)=>e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n),_e=(e,t,n=!1)=>{let r=e.$hostElement$,i=e.o,a=e.M||D(null,null),o=(e=>e&&e.j===ae)(t)?t:E(null,null,t);if(S=r.tagName,i.k&&(o.m=o.m||{},i.k.forEach((([e,t])=>{o.m[t]=r[e]}))),n&&o.m)for(let e of Object.keys(o.m))r.hasAttribute(e)&&![`key`,`ref`,`style`,`class`].includes(e)&&(o.m[e]=r[e]);o.j=null,o.i|=4,e.M=o,o.O=a.O=r.shadowRoot||r,he=!(!(1&i.i)||128&i.i),F(a,o,n),k.forEach((e=>e())),k.length=0,A.forEach((e=>e())),A.length=0},R=(e,t)=>{if(t&&!e.A&&t[`s-p`]){let n=t[`s-p`].push(new Promise((r=>e.A=()=>{t[`s-p`].splice(n-1,1),r()})))}},z=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);R(e,e.C);let n=()=>ve(e,t);if(!t)return ne(n);queueMicrotask((()=>{n()}))},ve=(e,t)=>{let n=e.$hostElement$,r=n;if(!r)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=B(r,t?`componentWillLoad`:`componentWillUpdate`,void 0,n),i=ye(i,(()=>B(r,`componentWillRender`,void 0,n))),ye(i,(()=>xe(e,r,t)))},ye=(e,t)=>be(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),be=e=>e instanceof Promise||e&&e.then&&typeof e.then==`function`,xe=async(e,t,n)=>{let r=e.$hostElement$,i=r[`s-rc`];n&&(e=>{let t=e.o,n=e.$hostElement$,r=t.i,i=((e,t)=>{let n=w(t),r=u.get(n);if(!f.document)return n;if(e=e.nodeType===11?e:f.document,r){if(typeof r==`string`){let i,a=C.get(e=e.head||e);if(a||C.set(e,a=new Set),!a.has(n)){i=f.document.createElement(`style`),i.textContent=r;let o=m.W??function(){return(f.document.head?.querySelector(`meta[name="csp-nonce"]`))?.getAttribute(`content`)??void 0}();if(o!=null&&i.setAttribute(`nonce`,o),!(1&t.i)){if(e.nodeName===`HEAD`){let t=e.querySelectorAll(`link[rel=preconnect]`),n=t.length>0?t[t.length-1].nextSibling:e.querySelector(`style`);e.insertBefore(i,n?.parentNode===e?n:null)}else if(`host`in e){if(h){let t=new(e.defaultView??e.ownerDocument.defaultView).CSSStyleSheet;t.replaceSync(r),g?e.adoptedStyleSheets.unshift(t):e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{let t=e.querySelector(`style`);t?t.textContent=r+t.textContent:e.prepend(i)}}else e.append(i)}1&t.i&&e.insertBefore(i,null),4&t.i&&(i.textContent+=`slot-fb{display:contents}slot-fb[hidden]{display:none}`),a&&a.add(n)}}else{let t=C.get(e);if(t||C.set(e,t=new Set),!t.has(n)){let i=e.defaultView??e.ownerDocument.defaultView,a;if(r.constructor===i.CSSStyleSheet)a=r;else{a=new i.CSSStyleSheet;for(let e=0;e<r.cssRules.length;e++)a.insertRule(r.cssRules[e].cssText,e)}g?e.adoptedStyleSheets.push(a):e.adoptedStyleSheets=[...e.adoptedStyleSheets,a],t.add(n)}}}return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&r&&(n[`s-sc`]=i,n.classList.add(i+`-h`))})(e),Se(e,t,r,n),i&&(i.map((e=>e())),r[`s-rc`]=void 0);{let t=r[`s-p`]??[],n=()=>Ce(e);t.length===0?n():(Promise.all(t).then(n).catch(n),e.i|=4,t.length=0)}},Se=(e,t,n,r)=>{try{t=t.render(),e.i&=-17,e.i|=2,_e(e,t,r)}catch(t){l(t,e.$hostElement$)}return null},Ce=e=>{let t=e.$hostElement$,n=t,r=e.C;B(n,`componentDidRender`,void 0,t),64&e.i?B(n,`componentDidUpdate`,void 0,t):(e.i|=64,Te(t),B(n,`componentDidLoad`,void 0,t),e.L(t),r||we()),e.A&&=(e.A(),void 0),512&e.i&&x((()=>z(e,!1))),e.i&=-517},we=()=>{x((()=>(e=>{let t=m.ce(`appload`,{detail:{namespace:`ionicons`}});return e.dispatchEvent(t),t})(f)))},B=(e,t,n,r)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e,r)}},Te=e=>e.classList.add(`hydrated`),Ee=(e,t,n,r)=>{let i=s(e);if(!i)return;let a=e,o=i.l.get(t),c=i.i,u=a;if(!((n=se(n,r.t[t][0]))===o||Number.isNaN(o)&&Number.isNaN(n))){if(i.l.set(t,n),r._){let e=r._[t];e&&e.map((e=>{try{let[[r,a]]=Object.entries(e);(128&c||1&a)&&(u?u[r](n,o,t):i.D.push((()=>{i.H[r](n,o,t)})))}catch(e){l(e,a)}}))}if(2&c){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(n,o,t)&&!(16&c))return;16&c||z(i,!1)}}},De=(e,t)=>{let n=e.prototype;{e.watchers&&!t._&&(t._=oe(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.R&&(t.R=e.serializers);let r=Object.entries(t.t??{});r.map((([e,[r]])=>{if(31&r||32&r){let{get:a,set:o}=i(n,e)||{};a&&(t.t[e][0]|=2048),o&&(t.t[e][0]|=4096),Object.defineProperty(n,e,{get(){return a?a.apply(this):((e,t)=>s(this).l.get(t))(0,e)},configurable:!0,enumerable:!0}),Object.defineProperty(n,e,{set(n){let i=s(this);if(i){if(o)return(32&r?this[e]:i.$hostElement$[e])===void 0&&i.l.get(e)&&(n=i.l.get(e)),o.call(this,se(n,r)),void Ee(this,e,n=32&r?this[e]:i.$hostElement$[e],t);Ee(this,e,n,t)}}})}}));{let i=new Map;n.attributeChangedCallback=function(e,a,o){m.jmp((()=>{let c=i.get(e),l=s(this);if(this.hasOwnProperty(c),n.hasOwnProperty(c)&&typeof this[c]==`number`&&this[c]==o)return;if(c==null){let n=l?.i;if(l&&n&&!(8&n)&&o!==a){let r=this;(t._?.[e])?.forEach((t=>{let[[i,s]]=Object.entries(t);r[i]!=null&&(128&n||1&s)&&r[i].call(r,o,a,e)}))}return}let u=r.find((([e])=>e===c)),d=u&&4&u[1][0],f=d&&o===null&&this[c]===void 0;d&&(o=o!==null&&o!==`false`);let p=Object.getOwnPropertyDescriptor(n,c);f||o==this[c]||p.get&&!p.set||(this[c]=o)}))},e.observedAttributes=Array.from(new Set([...Object.keys(t._??{}),...r.filter((([e,t])=>31&t[0])).map((([e,n])=>{var r;let a=n[1]||e;return i.set(a,e),512&n[0]&&((r=t.k)==null||r.push([e,a])),a}))]))}}return e},Oe=(e,t)=>{let n={i:t[0],p:t[1]};try{n.t=t[2],n._=oe(e._),n.P=e.P,n.R=e.R,n.k=[];let r=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((e,t)=>{let n={i:0,$hostElement$:e,o:t,l:new Map,U:new Map};n.N=new Promise((e=>n.L=e)),e[`s-p`]=[],e[`s-rc`]=[];let r=n;e.__stencil__getHostRef=()=>r,512&t.i&&o(e,n)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!s(this))return;this.__hasHostListenerAttached=!0}(e=>{if(!(1&m.i)){let t=s(e);if(!t)return;let n=t.o;if(1&t.i)t!=null&&t.H||t!=null&&t.N&&t.N.then((()=>{}));else{t.i|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n[`s-p`]){R(t,t.C=n);break}}n.t&&Object.entries(n.t).map((([t,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let r;try{if(!(32&t.i)&&(t.i|=32,r=e.constructor,customElements.whenDefined(e.localName).then((()=>t.i|=128)),r&&r.style)){let e;typeof r.style==`string`&&(e=r.style);let t=w(n);u.has(t)||((e,t,n)=>{let r=u.get(e);h&&n?(r||=new CSSStyleSheet,typeof r==`string`?r=t:r.replaceSync(t)):r=t,u.set(e,r)})(t,e,!!(1&n.i))}let i=t.C,a=()=>z(t,!0);i&&i[`s-rc`]?i[`s-rc`].push(a):a()}catch(n){l(n,e),t.A&&=(t.A(),void 0),t.L&&t.L(e)}})(e,t,n)}}})(this),r&&r.call(this)},disconnectedCallback(){(async e=>{C.has(e)&&C.delete(e),e.shadowRoot&&C.has(e.shadowRoot)&&C.delete(e.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!==`open`)throw Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ie.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),De(e,n)}catch(t){return l(t),e}};function ke(e){return e}var V,Ae=()=>{if(typeof window>`u`)return new Map;if(!V){let e=window;e.Ionicons=e.Ionicons||{},V=e.Ionicons.map=e.Ionicons.map||new Map}return V},je=e=>{let t=H(e.src);return t||(t=Ne(e.name,e.icon,e.mode,e.ios,e.md),t?Me(t,e):e.icon&&(t=H(e.icon),t||(t=H(e.icon[e.mode]),t))?t:null)},Me=(e,t)=>{let n=Ae().get(e);if(n)return n;try{return re(`svg/${e}.svg`)}catch(n){console.log(`e`,n),console.warn(`[Ionicons Warning]: Could not load icon with name "${e}". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`,t)}},Ne=(e,t,n,r,i)=>(n=(n&&W(n))===`ios`?`ios`:`md`,r&&n===`ios`?e=W(r):i&&n===`md`?e=W(i):(e||!t||Pe(t)||(e=t),U(e)&&(e=W(e))),U(e)&&e.trim()!==``&&e.replace(/[a-z]|-|\d/gi,``)===``?e:null),H=e=>U(e)&&(e=e.trim(),Pe(e))?e:null,Pe=e=>e.length>0&&/(\/|\.)/.test(e),U=e=>typeof e==`string`,W=e=>e.toLowerCase(),Fe=(e,t=[])=>{let n={};return t.forEach((t=>{e.hasAttribute(t)&&(e.getAttribute(t)!==null&&(n[t]=e.getAttribute(t)),e.removeAttribute(t))})),n},Ie=e=>e&&e.dir!==``?e.dir.toLowerCase()===`rtl`:(document==null?void 0:document.dir.toLowerCase())===`rtl`,G=e=>{for(let t=e.children.length-1;t>=0;t--){let n=e.children[t];n.nodeName.toLowerCase()===`foreignobject`?n.remove():G(n)}},Le=new Set([`script`,`foreignobject`,`iframe`,`embed`,`object`]),Re=e=>e.replace(/[\u0000-\u0020]/g,``).toLowerCase().includes(`javascript:`),ze=e=>{if(e.nodeType===1){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||Le.has(e.nodeName.toLowerCase()))return!1;for(let t=0;t<e.attributes.length;t++){let{name:n,value:r}=e.attributes[t];if(U(n)&&n.toLowerCase().indexOf(`on`)===0||U(r)&&Re(r))return!1}for(let t=0;t<e.childNodes.length;t++)if(!ze(e.childNodes[t]))return!1}return!0},K=new Map,Be=new Map,Ve,q=(e,t)=>`${!1===t?`unsanitized`:`sanitized`}:${e}`,He=(e,t)=>((e,t)=>{let n=document.createElement(`template`);n.innerHTML=e;let r=n.content;for(let e=r.childNodes.length-1;e>=0;e--)r.childNodes[e].nodeName.toLowerCase()!==`svg`&&r.removeChild(r.childNodes[e]);let i=r.firstElementChild;if(i&&i.nodeName.toLowerCase()===`svg`){let e=i.getAttribute(`class`)||``;if(i.setAttribute(`class`,(e+` s-ion-icon`).trim()),G(i),r.children.length===1&&ze(i))return n.innerHTML;t?.()}return``})(t,(()=>{let t=e.length>100?e.slice(0,100)+`...`:e;console.warn(`[Ionicons Warning]: The SVG from "${t}" was not rendered because it failed sanitization. Only set sanitize="false" for SVG content from a trusted source.`)}));function J(e){return K.set(e,``),``}var Ue=Oe(class extends p{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.didLoadIcon=!1,this.isVisible=!1,this.mode=We(),this.lazy=!1,this.sanitize=!0}componentWillLoad(){this.inheritedAttributes=Fe(this.el,[`aria-label`])}connectedCallback(){this.waitUntilVisible(this.el,`50px`,(()=>{this.isVisible=!0,this.loadIcon()}))}componentDidLoad(){this.didLoadIcon||this.loadIcon()}disconnectedCallback(){this.io&&=(this.io.disconnect(),void 0)}waitUntilVisible(e,t,n){if(!this.lazy||typeof window>`u`||!window.IntersectionObserver)return n();let r=this.io=new window.IntersectionObserver((e=>{e[0].isIntersecting&&(r.disconnect(),this.io=void 0,n())}),{rootMargin:t});r.observe(e)}loadIcon(){if(this.isVisible){let e=je(this);if(e){let t=q(e,this.sanitize);K.has(t)?this.svgContent=K.get(t):((e,t)=>{let n=q(e,t);return Be.get(n)||(typeof fetch<`u`&&typeof document<`u`?(e=>e.startsWith(`data:image/svg+xml`))(e)&&(e=>e.indexOf(`;utf8,`)!==-1)(e)?Promise.resolve(function(e,t){Ve||=new DOMParser;let n=Ve.parseFromString(e,`text/html`).querySelector(`svg`);if(n){let r=!1===t?n.outerHTML:He(e,n.outerHTML);return K.set(q(e,t),r),r}throw Error(`Could not parse svg from `+e)}(e,t)):function(e,t){let n=q(e,t),r=fetch(e).then((r=>r.text().then((r=>{r&&!1!==t&&(r=He(e,r));let i=r||``;return K.set(n,i),i})).catch((()=>J(n))))).catch((()=>J(n)));return Be.set(n,r),r}(e,t):Promise.resolve(J(n)))})(e,this.sanitize).then((()=>this.svgContent=K.get(t))),this.didLoadIcon=!0}}this.iconName=Ne(this.name,this.icon,this.mode,this.ios,this.md)}render(){let{flipRtl:e,iconName:t,inheritedAttributes:n,el:r}=this,i=this.mode||`md`,a=!!t&&(t.includes(`arrow`)||t.includes(`chevron`))&&!1!==e,o=e||a;return E(ae,Object.assign({key:`d2d2ba17fc8933d6e411bb95a1dc89accb12b909`,role:`img`,class:Object.assign(Object.assign({[i]:!0},Ge(this.color)),{[`icon-`+this.size]:!!this.size,"flip-rtl":o,"icon-rtl":o&&Ie(r)})},n),this.svgContent?E(`div`,{class:`icon-inner`,innerHTML:this.svgContent}):E(`div`,{class:`icon-inner`},E(`slot`,null)))}static get assetsDirs(){return[`svg`]}get el(){return this}static get watchers(){return{name:[{loadIcon:0}],src:[{loadIcon:0}],icon:[{loadIcon:0}],ios:[{loadIcon:0}],md:[{loadIcon:0}]}}static get style(){return`:host{display:inline-block;width:1em;height:1em;font-size:1em;contain:layout style;fill:currentColor;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.ionicon,svg{display:block;height:100%;width:100%}::slotted(*){font-size:inherit !important}@supports (background: -webkit-named-image(i)){:host(.icon-rtl) .icon-inner{transform:scaleX(-1)}}@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])){:host(.icon-rtl) .icon-inner{transform:scaleX(-1)}}:host(.flip-rtl):host-context([dir='rtl']) .icon-inner{transform:scaleX(-1)}@supports selector(:dir(rtl)){:host(.flip-rtl:dir(rtl)) .icon-inner{transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{transform:scaleX(1)}}:host(.icon-small){font-size:1.125rem !important}:host(.icon-large){font-size:2rem !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}`}},[257,`ion-icon`,{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,`flip-rtl`],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32]},void 0,{name:[{loadIcon:0}],src:[{loadIcon:0}],icon:[{loadIcon:0}],ios:[{loadIcon:0}],md:[{loadIcon:0}]}]),We=()=>typeof document<`u`&&document.documentElement.getAttribute(`mode`)||`md`,Ge=e=>e?{"ion-color":!0,[`ion-color-`+e]:!0}:null,Ke=function(){typeof customElements<`u`&&[`ion-icon`].forEach((e=>{e===`ion-icon`&&(customElements.get(ke(e))||customElements.define(ke(e),Ue))}))},qe=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='M328 112 184 256l144 144' stroke-linecap='round' stroke-linejoin='round' stroke-width='48px' class='ionicon-fill-none'/></svg>`,Je=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='m112 184 144 144 144-144' stroke-linecap='round' stroke-linejoin='round' stroke-width='48px' class='ionicon-fill-none'/></svg>`,Ye=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='m184 112 144 144-144 144' stroke-linecap='round' stroke-linejoin='round' stroke-width='48px' class='ionicon-fill-none'/></svg>`,Xe=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34Z'/></svg>`,Ze=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='M256 32C132.3 32 32 134.9 32 261.7c0 101.5 64.2 187.5 153.2 217.9a17.6 17.6 0 0 0 3.8.4c8.3 0 11.5-6.1 11.5-11.4 0-5.5-.2-19.9-.3-39.1a102.4 102.4 0 0 1-22.6 2.7c-43.1 0-52.9-33.5-52.9-33.5-10.2-26.5-24.9-33.6-24.9-33.6-19.5-13.7-.1-14.1 1.4-14.1h.1c22.5 2 34.3 23.8 34.3 23.8 11.2 19.6 26.2 25.1 39.6 25.1a63 63 0 0 0 25.6-6c2-14.8 7.8-24.9 14.2-30.7-49.7-5.8-102-25.5-102-113.5 0-25.1 8.7-45.6 23-61.6-2.3-5.8-10-29.2 2.2-60.8a18.6 18.6 0 0 1 5-.5c8.1 0 26.4 3.1 56.6 24.1a208.2 208.2 0 0 1 112.2 0c30.2-21 48.5-24.1 56.6-24.1a18.6 18.6 0 0 1 5 .5c12.2 31.6 4.5 55 2.2 60.8 14.3 16.1 23 36.6 23 61.6 0 88.2-52.4 107.6-102.3 113.3 8 7.1 15.2 21.1 15.2 42.5 0 30.7-.3 55.5-.3 63 0 5.4 3.1 11.5 11.4 11.5a19.4 19.4 0 0 0 4-.4C415.9 449.2 480 363.1 480 261.7 480 134.9 379.7 32 256 32'/></svg>`,Qe=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='M444.17 32H70.28C49.85 32 32 46.7 32 66.89v374.72C32 461.91 49.85 480 70.28 480h373.78c20.54 0 35.94-18.21 35.94-38.39V66.89C480.12 46.7 464.6 32 444.17 32m-273.3 373.43h-64.18V205.88h64.18ZM141 175.54h-.46c-20.54 0-33.84-15.29-33.84-34.43 0-19.49 13.65-34.42 34.65-34.42s33.85 14.82 34.31 34.42c-.01 19.14-13.31 34.43-34.66 34.43m264.43 229.89h-64.18V296.32c0-26.14-9.34-44-32.56-44-17.74 0-28.24 12-32.91 23.69-1.75 4.2-2.22 9.92-2.22 15.76v113.66h-64.18V205.88h64.18v27.77c9.34-13.3 23.93-32.44 57.88-32.44 42.13 0 74 27.77 74 87.64Z'/></svg>`,$e=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='M496 109.5a201.8 201.8 0 0 1-56.55 15.3 97.5 97.5 0 0 0 43.33-53.6 197.7 197.7 0 0 1-62.56 23.5A99.14 99.14 0 0 0 348.31 64c-54.42 0-98.46 43.4-98.46 96.9a93.2 93.2 0 0 0 2.54 22.1 280.7 280.7 0 0 1-203-101.3A95.7 95.7 0 0 0 36 130.4c0 33.6 17.53 63.3 44 80.7A97.5 97.5 0 0 1 35.22 199v1.2c0 47 34 86.1 79 95a100.8 100.8 0 0 1-25.94 3.4 94.4 94.4 0 0 1-18.51-1.8c12.51 38.5 48.92 66.5 92.05 67.3A199.6 199.6 0 0 1 39.5 405.6a203 203 0 0 1-23.5-1.4A278.7 278.7 0 0 0 166.74 448c181.36 0 280.44-147.7 280.44-275.8 0-4.2-.11-8.4-.31-12.5A198.5 198.5 0 0 0 496 109.5'/></svg>`,et=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='M508.64 148.79c0-45-33.1-81.2-74-81.2C379.24 65 322.74 64 265 64h-18c-57.6 0-114.2 1-169.6 3.6C36.6 67.6 3.5 104 3.5 149 1 184.59-.06 220.19 0 255.79q-.15 53.4 3.4 106.9c0 45 33.1 81.5 73.9 81.5 58.2 2.7 117.9 3.9 178.6 3.8q91.2.3 178.6-3.8c40.9 0 74-36.5 74-81.5 2.4-35.7 3.5-71.3 3.4-107q.34-53.4-3.26-106.9M207 353.89v-196.5l145 98.2Z'/></svg>`,tt=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='M80 160h352M80 256h352M80 352h352' stroke-linecap='round' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/></svg>`,nt=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64Z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path d='M338.29 338.29 448 448' stroke-linecap='round' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/></svg>`,rt=`data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='ionicon'><path d='M256 64C150 64 64 150 64 256s86 192 192 192 192-86 192-192S362 64 256 64Z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path d='M256 128v144h96' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>`,it=`menu-outline`,at=`close`,ot=()=>{let e=document.querySelector(`.site-header__toggle`);if(!e)return;let t=document.querySelector(e.dataset.target);if(!t)return;let n=e.querySelector(`.sr-only`),r=e.dataset.openLabel||`Open navigation menu`,i=e.dataset.closeLabel||`Close navigation menu`,a=a=>{e.setAttribute(`aria-expanded`,a?`true`:`false`),e.setAttribute(`aria-label`,a?i:r),n&&(n.textContent=a?i:r);let o=e.querySelector(`ion-icon`);o&&(o.name=a?at:it),t.hidden=!a,t.classList.toggle(`is-hidden`,!a)},o=()=>{t.hidden||a(!1)};a(!1),e.addEventListener(`click`,()=>{let n=e.getAttribute(`aria-expanded`)!==`true`;if(a(n),n){let e=t.querySelector(`a, button, input, [tabindex]:not([tabindex="-1"])`);e&&e.focus();return}e.focus()}),document.addEventListener(`click`,n=>{let r=t.contains(n.target),i=e.contains(n.target);!r&&!i&&o()}),document.addEventListener(`keydown`,n=>{if(n.key===`Escape`){let n=!t.hidden;o(),n&&e.focus()}})},st=()=>window.matchMedia(`(prefers-reduced-motion: reduce)`).matches?`auto`:`smooth`,ct=(e,t,n)=>{let r=e.scrollWidth-e.clientWidth,i=r>1,a=e.scrollLeft<=1,o=e.scrollLeft>=r-1;t.disabled=!i||a,n.disabled=!i||o},lt=e=>{let t=e.querySelector(`[data-carousel-track]`),n=e.querySelector(`[data-carousel-prev]`),r=e.querySelector(`[data-carousel-next]`);if(!t||!n||!r)return;let i=e=>{t.scrollBy({left:e*t.clientWidth,behavior:st()})},a=null,o=()=>{a!==null&&window.cancelAnimationFrame(a),a=window.requestAnimationFrame(()=>{ct(t,n,r),a=null})};n.addEventListener(`click`,()=>i(-1)),r.addEventListener(`click`,()=>i(1)),t.addEventListener(`scroll`,o,{passive:!0}),window.addEventListener(`resize`,o),ct(t,n,r)},ut=()=>{document.querySelectorAll(`[data-carousel]`).forEach(lt)},Y=null,dt=e=>{e&&e.open&&e.close()},ft=()=>{let e=document.querySelectorAll(`[data-certificate-open]`),t=document.querySelectorAll(`[data-certificate-modal]`);!e.length||!t.length||(e.forEach(e=>{e.addEventListener(`click`,()=>{let t=document.getElementById(e.dataset.certificateOpen);!t||typeof t.showModal!=`function`||t.open||(Y=e,t.showModal())})}),t.forEach(e=>{e.querySelector(`[data-certificate-close]`)?.addEventListener(`click`,()=>{dt(e)}),e.addEventListener(`click`,t=>{t.target===e&&dt(e)}),e.addEventListener(`close`,()=>{Y&&=(Y.focus(),null)})}))},pt={category:`data-category`,categoryId:`data-category-id`,emitMetadata:`data-emit-metadata`,inputPosition:`data-input-position`,lang:`data-lang`,loading:`data-loading`,mapping:`data-mapping`,reactionsEnabled:`data-reactions-enabled`,repo:`data-repo`,repoId:`data-repo-id`,strict:`data-strict`,term:`data-term`,theme:`data-theme`},mt=e=>{if(!e||e.dataset.giscusLoaded===`true`)return;let t=document.createElement(`script`);t.src=e.dataset.giscusScriptSrc||`https://giscus.app/client.js`,t.async=!0,t.crossOrigin=`anonymous`;for(let[n,r]of Object.entries(pt)){let i=e.dataset[`giscus${n.charAt(0).toUpperCase()}${n.slice(1)}`];i&&t.setAttribute(r,i)}e.append(t),e.dataset.giscusLoaded=`true`},ht=()=>{let e=document.querySelectorAll(`[data-comments-collapsible]`);e.length&&e.forEach(e=>{let t=e.querySelector(`[data-comments-toggle]`),n=e.querySelector(`[data-comments-panel]`),r=e.querySelector(`[data-giscus-mount]`);!t||!n||!r||t.addEventListener(`click`,()=>{let i=t.getAttribute(`aria-expanded`)!==`true`;t.setAttribute(`aria-expanded`,i?`true`:`false`),e.classList.toggle(`is-open`,i),n.hidden=!i,i&&mt(r)})})},gt=()=>{let e=document.querySelector(`#main-header`);if(!e)return;let t=()=>{if(window.scrollY>8){e.classList.add(`is-scrolled`);return}e.classList.remove(`is-scrolled`)};t(),window.addEventListener(`scroll`,t,{passive:!0})},_t=()=>{let e=document.querySelectorAll(`[data-series-collapsible]`);e.length&&e.forEach(e=>{let t=e.querySelector(`[data-series-toggle]`),n=e.querySelector(`[data-series-panel]`);if(!t||!n)return;let r=()=>{let r=t.getAttribute(`aria-expanded`)===`true`;e.classList.toggle(`is-open`,r),n.hidden=!r};r(),t.addEventListener(`click`,()=>{let e=t.getAttribute(`aria-expanded`)===`true`;t.setAttribute(`aria-expanded`,e?`false`:`true`),r()});let i=e.querySelectorAll(`[data-series-overflow-toggle]`);i.length&&i.forEach(t=>{t.addEventListener(`click`,()=>{let n=t.dataset.seriesOverflowGroup,r=n?`[data-series-overflow-item][data-series-overflow-group="${n}"]`:`[data-series-overflow-item]`;e.querySelectorAll(r).forEach(e=>{e.hidden=!1}),t.setAttribute(`aria-expanded`,`true`),t.hidden=!0})})})},vt=()=>{let e=document.querySelector(`[data-reading-progress]`),t=document.querySelector(`.content`);if(!e||!t)return;let n=()=>{let n=t.offsetTop,r=t.offsetHeight,i=window.innerHeight,a=window.scrollY,o=Math.max(r-i,1),s=Math.min(Math.max(a-n,0),o)/o*100;e.style.transform=`scaleX(${s/100})`};n(),window.addEventListener(`scroll`,n,{passive:!0}),window.addEventListener(`resize`,n)},yt=`[data-search-root]`,X,Z=e=>(e||``).toString().normalize(`NFKD`).replace(/[\u0300-\u036f]/g,``).toLowerCase().replace(/[^a-z0-9\s-]/g,` `).replace(/\s+/g,` `).trim(),bt=e=>Z(e).split(` `).filter(e=>e.length>0),xt=e=>[...new Set(bt(e))],St=(e,t)=>{let n=e.date?Date.parse(e.date):0,r=t.date?Date.parse(t.date):0;return Number.isNaN(n)||Number.isNaN(r)?0:r-n},Ct=e=>{let t=e.title||``,n=e.content||``,r=Array.isArray(e.tags)?e.tags:[],i=Array.isArray(e.categories)?e.categories:[];return{...e,title:t,content:n,tags:r,categories:i,normalizedTitle:Z(t),normalizedContent:Z(n),normalizedTags:r.map(Z).filter(Boolean),normalizedCategories:i.map(Z).filter(Boolean)}},wt=async e=>(X||=fetch(e,{headers:{Accept:`application/json`}}).then(e=>{if(!e.ok)throw Error(`Search index request failed with ${e.status}`);return e.json()}).then(e=>e.map(Ct)).catch(e=>{throw X=void 0,e}),X),Tt=(e,t,n)=>{let r=0;e.normalizedTitle.includes(t)&&(r+=140),e.normalizedContent.includes(t)&&(r+=30),n.forEach(t=>{e.normalizedTitle.includes(t)&&(r+=60),e.normalizedTags.some(e=>e.includes(t))&&(r+=30),e.normalizedCategories.some(e=>e.includes(t))&&(r+=18),e.normalizedContent.includes(t)&&(r+=10)});let i=n.filter(t=>e.normalizedTitle.includes(t)||e.normalizedTags.some(e=>e.includes(t))||e.normalizedCategories.some(e=>e.includes(t))||e.normalizedContent.includes(t)).length;return i===0?0:(i===n.length&&(r+=24),e.type===`post`&&(r+=4),r)},Et=(e,t,n)=>{let r=Z(t),i=xt(t);return!r||i.length===0?[]:e.map(e=>({searchDocument:e,score:Tt(e,r,i)})).filter(e=>e.score>0).sort((e,t)=>t.score-e.score||St(e.searchDocument,t.searchDocument)).slice(0,n).map(e=>e.searchDocument)},Dt=(e,t,n)=>{let r=e.replace(/\s+/g,` `).trim();if(!r)return``;let i=Z(t),a=Z(r).indexOf(i);if(a===-1)return r.length>n?`${r.slice(0,n).trimEnd()}...`:r;let o=Math.max(a-Math.floor(n/3),0),s=Math.min(o+n,r.length),c=o>0?`...`:``,l=s<r.length?`...`:``;return`${c}${r.slice(o,s).trim()}${l}`},Ot=e=>{let t=[];return e.type&&t.push(e.type===`post`?`Post`:`Page`),e.tags.length>0&&t.push(e.tags.slice(0,2).join(`, `)),t.join(` • `)},kt=(e,t,n,r)=>{let i=e.querySelector(`[data-search-results]`),a=e.querySelector(`[data-search-status]`);i.innerHTML=``,a.textContent=r,t.forEach(t=>{let r=window.document.createElement(`li`);r.className=`site-search__result-item`;let a=window.document.createElement(`a`);a.className=`site-search__result-link`,a.href=t.url;let o=window.document.createElement(`span`);o.className=`site-search__result-title`,o.textContent=t.title,a.append(o);let s=Ot(t);if(s){let e=window.document.createElement(`span`);e.className=`site-search__result-meta`,e.textContent=s,a.append(e)}let c=Number(e.dataset.searchContentPreviewLength||`140`),l=Dt(t.content,n,c);if(l){let e=window.document.createElement(`span`);e.className=`site-search__result-snippet`,e.textContent=l,a.append(e)}r.append(a),i.append(r)})},At=e=>{let t=e.querySelector(`[data-search-panel]`),n=e.querySelector(`[data-search-input]`);t.hidden=!1,n.setAttribute(`aria-expanded`,`true`),t.setAttribute(`aria-hidden`,`false`)},Q=e=>{let t=e.querySelector(`[data-search-panel]`),n=e.querySelector(`[data-search-input]`);t.hidden=!0,n.setAttribute(`aria-expanded`,`false`),t.setAttribute(`aria-hidden`,`true`)},$=(e,t)=>{let n=[...e.querySelectorAll(`.site-search__result-link`)];if(n.length===0)return;let r=n.findIndex(e=>e===window.document.activeElement);n[r===-1?t>0?0:n.length-1:(r+t+n.length)%n.length].focus()},jt=e=>{let t=e.querySelector(`[data-search-input]`),n=e.querySelector(`[data-search-clear]`),r=e.querySelector(`.site-search__form`),i=e.dataset.searchUrl,a=Number(e.dataset.searchMaxResults||`8`),o=Number(e.dataset.searchMinQueryLength||`2`),s=e.dataset.searchIdleText||`Start typing to search the site.`,c=e.dataset.searchTooShortText||`Type at least %d characters to search.`,l=e.dataset.searchLoadingText||`Loading search index...`,u=e.dataset.searchEmptyText||`No results found.`,d=e.dataset.searchErrorText||`Search is unavailable right now.`,f=t=>{let n=e.querySelector(`[data-search-status]`);n.textContent=t},p=()=>{e.querySelector(`[data-search-results]`).innerHTML=``},m=()=>{n.hidden=t.value.length===0},h=async()=>{let n=t.value.trim();if(m(),n.length===0){p(),f(s),Q(e);return}if(At(e),n.length<o){p(),f(c.replace(`%d`,`${o}`));return}f(l);try{let t=Et(await wt(i),n,a);if(t.length===0){kt(e,[],n,u);return}kt(e,t,n,`${t.length} result${t.length===1?``:`s`} for "${n}"`)}catch{p(),f(d)}};t.addEventListener(`focus`,()=>{t.value.trim().length>0&&h()}),t.addEventListener(`input`,()=>{h()}),t.addEventListener(`keydown`,t=>{t.key===`ArrowDown`&&(t.preventDefault(),e.querySelector(`.site-search__result-link`)&&At(e),$(e,1)),t.key===`Escape`&&Q(e)}),e.addEventListener(`keydown`,n=>{if(n.key===`Escape`&&(Q(e),t.focus()),n.key===`ArrowDown`&&n.target.matches(`.site-search__result-link`)&&(n.preventDefault(),$(e,1)),n.key===`ArrowUp`&&n.target.matches(`.site-search__result-link`)){if(n.preventDefault(),n.target===e.querySelector(`.site-search__result-link`)){t.focus();return}$(e,-1)}}),n.addEventListener(`click`,()=>{t.value=``,m(),p(),f(s),Q(e),t.focus()}),r.addEventListener(`submit`,t=>{t.preventDefault();let n=e.querySelector(`.site-search__result-link`);if(n){window.location.assign(n.href);return}h()}),window.document.addEventListener(`click`,t=>{e.contains(t.target)||Q(e)}),Q(e)};n({"chevron-back-outline":qe,"chevron-down-outline":Je,"chevron-forward-outline":Ye,close:Xe,"logo-github":Ze,"logo-linkedin":Qe,"logo-twitter":$e,"logo-youtube":et,"menu-outline":tt,"search-outline":nt,"time-outline":rt}),Ke(),ot(),ut(),ft(),ht(),gt(),_t(),vt(),(()=>{let e=window.document.querySelectorAll(yt);e.length!==0&&e.forEach(jt)})()})();
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imdhemy-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohamad Eldhemy
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  - !ruby/object:Gem::Version
155
155
  version: '0'
156
156
  requirements: []
157
- rubygems_version: 4.0.3
157
+ rubygems_version: 4.0.20
158
158
  specification_version: 4
159
159
  summary: Jekyll blog theme with built-in SEO foundations.
160
160
  test_files: []