diff --git a/dist/assets/index.9d073e1c.js b/dist/assets/index.def9b466.js similarity index 96% rename from dist/assets/index.9d073e1c.js rename to dist/assets/index.def9b466.js index c5edda7..2c713a9 100644 --- a/dist/assets/index.9d073e1c.js +++ b/dist/assets/index.def9b466.js @@ -1,6 +1,6 @@ -(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const c of r.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function o(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerpolicy&&(r.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?r.credentials="include":s.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(s){if(s.ep)return;s.ep=!0;const r=o(s);fetch(s.href,r)}})();var V,u,bt,F,rt,z={},kt=[],Bt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function C(t,e){for(var o in e)t[o]=e[o];return t}function vt(t){var e=t.parentNode;e&&e.removeChild(t)}function l(t,e,o){var n,s,r,c={};for(r in e)r=="key"?n=e[r]:r=="ref"?s=e[r]:c[r]=e[r];if(arguments.length>2&&(c.children=arguments.length>3?V.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(r in t.defaultProps)c[r]===void 0&&(c[r]=t.defaultProps[r]);return T(t,c,n,s,null)}function T(t,e,o,n,s){var r={type:t,props:e,key:o,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s==null?++bt:s};return s==null&&u.vnode!=null&&u.vnode(r),r}function A(t){return t.children}function N(t,e){this.props=t,this.context=e}function P(t,e){if(e==null)return t.__?P(t.__,t.__.__k.indexOf(t)+1):null;for(var o;e0?T(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a)!=null){if(a.__=o,a.__b=o.__b+1,(h=w[i])===null||h&&a.key==h.key&&a.type===h.type)w[i]=void 0;else for(f=0;f=o.__.length&&o.__.push({__V:$}),o.__[t]}function Ht(t){return O=1,Gt(Tt,t)}function Gt(t,e,o){var n=tt(q++,2);if(n.t=t,!n.__c&&(n.__=[o?o(e):Tt(void 0,e),function(r){var c=n.__N?n.__N[0]:n.__[0],p=n.t(c,r);c!==p&&(n.__N=[p,n.__[1]],n.__c.setState({}))}],n.__c=y,!y.u)){y.u=!0;var s=y.shouldComponentUpdate;y.shouldComponentUpdate=function(r,c,p){if(!n.__c.__H)return!0;var m=n.__c.__H.__.filter(function(i){return i.__c});if(m.every(function(i){return!i.__N}))return!s||s.call(this,r,c,p);var d=!1;return m.forEach(function(i){if(i.__N){var f=i.__[0];i.__=i.__N,i.__N=void 0,f!==i.__[0]&&(d=!0)}}),!!d&&(!s||s.call(this,r,c,p))}}return n.__N||n.__}function It(t,e){var o=tt(q++,3);!u.__s&&Mt(o.__H,e)&&(o.__=t,o.i=e,y.__H.__h.push(o))}function Wt(t){return O=5,Kt(function(){return{current:t}},[])}function Kt(t,e){var o=tt(q++,7);return Mt(o.__H,e)?(o.__V=t(),o.i=e,o.__h=t,o.__V):o.__}function Xt(){for(var t;t=Ft.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(D),t.__H.__h.forEach(K),t.__H.__h=[]}catch(e){t.__H.__h=[],u.__e(e,t.__v)}}u.__b=function(t){typeof t.type!="function"||t.o||t.type===A?t.o||(t.o=t.__&&t.__.o?t.__.o:""):t.o=(t.__&&t.__.o?t.__.o:"")+(t.__&&t.__.__k?t.__.__k.indexOf(t):0),y=null,lt&<(t)},u.__r=function(t){ut&&ut(t),q=0;var e=(y=t.__c).__H;e&&(G===y?(e.__h=[],y.__h=[],e.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=$,o.__N=o.i=void 0})):(e.__h.forEach(D),e.__h.forEach(K),e.__h=[])),G=y},u.diffed=function(t){ht&&ht(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Ft.push(e)!==1&&at===u.requestAnimationFrame||((at=u.requestAnimationFrame)||Zt)(Xt)),e.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==$&&(o.__=o.__V),o.i=void 0,o.__V=$})),G=y=null},u.__c=function(t,e){e.some(function(o){try{o.__h.forEach(D),o.__h=o.__h.filter(function(n){return!n.__||K(n)})}catch(n){e.some(function(s){s.__h&&(s.__h=[])}),e=[],u.__e(n,o.__v)}}),_t&&_t(t,e)},u.unmount=function(t){pt&&pt(t);var e,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{D(n)}catch(s){e=s}}),o.__H=void 0,e&&u.__e(e,o.__v))};var mt=typeof requestAnimationFrame=="function";function Zt(t){var e,o=function(){clearTimeout(n),mt&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(o,100);mt&&(e=requestAnimationFrame(o))}function D(t){var e=y,o=t.__c;typeof o=="function"&&(t.__c=void 0,o()),y=e}function K(t){var e=y;t.__c=t.__(),y=e}function Mt(t,e){return!t||t.length!==e.length||e.some(function(o,n){return o!==t[n]})}function Tt(t,e){return typeof e=="function"?e(t):e}function Qt({link:t}){return l("li",{class:"directory-link"},l("a",{href:t.destination},t.text))}function Yt({category:t}){const{title:e,entries:o,subCategories:n}=t,s=o.map(dt);return l("section",{class:"category"},l("h2",null,e),l("div",{class:"columns "+Jt(te(t))},s.length>0&&l("section",null,l("ul",null,s)),n.map(({title:r,entries:c})=>l("section",null,l("h3",null,r),l("ul",null,c.map(dt))))))}function Jt(t){switch(!0){case t>=12:return"columns-3";case t>=6:return"columns-2";default:return"columns-1"}}function dt(t){return l(Qt,{link:t})}function te(t){return t.entries.length+t.subCategories.map(({entries:e})=>e.length).reduce(ee,0)}function ee(t,e){return t+e}function Nt(t){return l("button",{class:"raised-button",...t})}function oe(t){const[e,o]=Ht(!1),n=Wt(null);return It(()=>{if(!e)return;function s(){o(!1)}const r=n.current;return r==null||r.addEventListener("close",s),r==null||r.showModal(),()=>r==null?void 0:r.removeEventListener("close",s)},[e]),l("div",{class:"dev-info-pane-opener"},l(Nt,{onClick:()=>o(!0)},"Show Developer Info"),e&&l("dialog",{ref:n},t.children))}function re(t){return l("div",{class:"dev-info-pane"},l("label",{for:"leechblock-config"},"LeechBlock Config"),l("textarea",{id:"leechblock-config"},`* +(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const c of r.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function o(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerpolicy&&(r.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?r.credentials="include":s.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(s){if(s.ep)return;s.ep=!0;const r=o(s);fetch(s.href,r)}})();var V,u,bt,F,rt,z={},kt=[],Bt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function C(t,e){for(var o in e)t[o]=e[o];return t}function vt(t){var e=t.parentNode;e&&e.removeChild(t)}function l(t,e,o){var n,s,r,c={};for(r in e)r=="key"?n=e[r]:r=="ref"?s=e[r]:c[r]=e[r];if(arguments.length>2&&(c.children=arguments.length>3?V.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(r in t.defaultProps)c[r]===void 0&&(c[r]=t.defaultProps[r]);return T(t,c,n,s,null)}function T(t,e,o,n,s){var r={type:t,props:e,key:o,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s==null?++bt:s};return s==null&&u.vnode!=null&&u.vnode(r),r}function A(t){return t.children}function N(t,e){this.props=t,this.context=e}function P(t,e){if(e==null)return t.__?P(t.__,t.__.__k.indexOf(t)+1):null;for(var o;e0?T(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a)!=null){if(a.__=o,a.__b=o.__b+1,(h=w[i])===null||h&&a.key==h.key&&a.type===h.type)w[i]=void 0;else for(f=0;f=o.__.length&&o.__.push({__V:D}),o.__[t]}function Ht(t){return O=1,Gt(Tt,t)}function Gt(t,e,o){var n=tt(q++,2);if(n.t=t,!n.__c&&(n.__=[o?o(e):Tt(void 0,e),function(r){var c=n.__N?n.__N[0]:n.__[0],p=n.t(c,r);c!==p&&(n.__N=[p,n.__[1]],n.__c.setState({}))}],n.__c=y,!y.u)){y.u=!0;var s=y.shouldComponentUpdate;y.shouldComponentUpdate=function(r,c,p){if(!n.__c.__H)return!0;var m=n.__c.__H.__.filter(function(i){return i.__c});if(m.every(function(i){return!i.__N}))return!s||s.call(this,r,c,p);var d=!1;return m.forEach(function(i){if(i.__N){var f=i.__[0];i.__=i.__N,i.__N=void 0,f!==i.__[0]&&(d=!0)}}),!!d&&(!s||s.call(this,r,c,p))}}return n.__N||n.__}function It(t,e){var o=tt(q++,3);!u.__s&&Mt(o.__H,e)&&(o.__=t,o.i=e,y.__H.__h.push(o))}function Wt(t){return O=5,Kt(function(){return{current:t}},[])}function Kt(t,e){var o=tt(q++,7);return Mt(o.__H,e)?(o.__V=t(),o.i=e,o.__h=t,o.__V):o.__}function Xt(){for(var t;t=Ft.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach($),t.__H.__h.forEach(K),t.__H.__h=[]}catch(e){t.__H.__h=[],u.__e(e,t.__v)}}u.__b=function(t){typeof t.type!="function"||t.o||t.type===A?t.o||(t.o=t.__&&t.__.o?t.__.o:""):t.o=(t.__&&t.__.o?t.__.o:"")+(t.__&&t.__.__k?t.__.__k.indexOf(t):0),y=null,lt&<(t)},u.__r=function(t){ut&&ut(t),q=0;var e=(y=t.__c).__H;e&&(G===y?(e.__h=[],y.__h=[],e.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=D,o.__N=o.i=void 0})):(e.__h.forEach($),e.__h.forEach(K),e.__h=[])),G=y},u.diffed=function(t){ht&&ht(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Ft.push(e)!==1&&at===u.requestAnimationFrame||((at=u.requestAnimationFrame)||Zt)(Xt)),e.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==D&&(o.__=o.__V),o.i=void 0,o.__V=D})),G=y=null},u.__c=function(t,e){e.some(function(o){try{o.__h.forEach($),o.__h=o.__h.filter(function(n){return!n.__||K(n)})}catch(n){e.some(function(s){s.__h&&(s.__h=[])}),e=[],u.__e(n,o.__v)}}),_t&&_t(t,e)},u.unmount=function(t){pt&&pt(t);var e,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{$(n)}catch(s){e=s}}),o.__H=void 0,e&&u.__e(e,o.__v))};var mt=typeof requestAnimationFrame=="function";function Zt(t){var e,o=function(){clearTimeout(n),mt&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(o,100);mt&&(e=requestAnimationFrame(o))}function $(t){var e=y,o=t.__c;typeof o=="function"&&(t.__c=void 0,o()),y=e}function K(t){var e=y;t.__c=t.__(),y=e}function Mt(t,e){return!t||t.length!==e.length||e.some(function(o,n){return o!==t[n]})}function Tt(t,e){return typeof e=="function"?e(t):e}function Qt({link:t}){return l("li",{class:"directory-link"},l("a",{href:t.destination},t.text))}function Yt({category:t}){const{title:e,entries:o,subCategories:n}=t,s=o.map(dt);return l("section",{class:"category"},l("h2",null,e),l("div",{class:"columns "+Jt(te(t))},s.length>0&&l("section",null,l("ul",null,s)),n.map(({title:r,entries:c})=>l("section",null,l("h3",null,r),l("ul",null,c.map(dt))))))}function Jt(t){switch(!0){case t>=12:return"columns-3";case t>=6:return"columns-2";default:return"columns-1"}}function dt(t){return l(Qt,{link:t})}function te(t){return t.entries.length+t.subCategories.map(({entries:e})=>e.length).reduce(ee,0)}function ee(t,e){return t+e}function Nt(t){return l("button",{class:"raised-button",...t})}function oe(t){const[e,o]=Ht(!1),n=Wt(null);return It(()=>{if(!e)return;function s(){o(!1)}const r=n.current;return r==null||r.addEventListener("close",s),r==null||r.showModal(),()=>r==null?void 0:r.removeEventListener("close",s)},[e]),l("div",{class:"dev-info-pane-opener"},l(Nt,{onClick:()=>o(!0)},"Show Developer Info"),e&&l("dialog",{ref:n},t.children))}function re(t){return l("div",{class:"dev-info-pane"},l("label",{for:"leechblock-config"},"LeechBlock Config"),l("textarea",{id:"leechblock-config"},`* `,t.leechblockAllowPatterns.map(e=>"+"+e).join(` -`)))}function ne(t){const{config:e,query:o,onQuery:n,onSearchSubmitted:s}=t;return l(A,null,l("nav",{class:"menu"},e.menu.map((r,c)=>l("a",{href:r.destination,key:c},r.text))),l("div",{class:"podium"},l("div",{class:"omnisearch"},l("input",{type:"search",placeholder:"Search",autoFocus:!0,value:o,onKeyPress:r=>{r.key==="Enter"&&s(0)},onInput:r=>n(r.currentTarget.value)}),l("div",{class:"search-providers"},e.searchProviders.map((r,c)=>l(Nt,{key:c,onClick:()=>s(c)},r.name)))),l("article",null,e.categories.map(r=>l(Yt,{category:r}))),l("footer",null,l("hr",null),l("p",null,"Bastion is maintained by"," ",l("a",{href:"https://github.com/benchristel"},"Ben Christel"),"."),l("p",null,"The image that appears at the top of each page is"," ",l("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.flickr.com/photos/23730371@N05/49396214307"},"619 | Elizabeth Terry | Untitled Double Landscape | Watercolor | 20x22.25"),'" by'," ",l("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.flickr.com/photos/23730371@N05"},"theartleaguegallery"),", and is marked with"," ",l("a",{target:"_blank",rel:"noopener noreferrer",href:"https://creativecommons.org/publicdomain/mark/1.0/?ref=openverse"},"Public Domain Mark 1.0"),"."),l("p",null,"Theme inspired by"," ",l("a",{href:"https://www.palemoon.org/"},"The Pale Moon Browser"),"."),l(oe,null,l(re,{leechblockAllowPatterns:e.leechblockAllowPatterns})))))}const X=Symbol(),Z=Symbol(),Q=Symbol(),j=Symbol();function b(t,e){function o(...n){if(n.length>=t.length)return t(...n);{const s=(...r)=>o(...n,...r);return s[X]=t,s[Z]=o,s[Q]=n,s[j]=o[j],s}}return o[X]=t,o[Z]=o,o[Q]=[],o[j]=e||ie(t),o}function I(t){return t[X]}function se(t){return t[Z]}function Y(t){return t[Q]||[]}function ie(t){return t[j]||t.name}class ce extends Error{constructor(e){super("Expectation failed"),this.expectArgs=e}}const ae=b(function(t,e){return t(e)},"which"),L=b(function(t,e){var o,n;if(le(t))return t(e);if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every((s,r)=>L(t[r],e[r]));if(t instanceof Function&&e instanceof Function)return I(t)&&I(t)===I(e)?L(Y(t),Y(e)):t===e;if(t instanceof Date&&e instanceof Date)return t.toISOString()===e.toISOString();if(t instanceof Set&&e instanceof Set)return t.size===e.size&&[...t.values()].every(s=>e.has(s));if(t instanceof Error&&e instanceof Error)return t.message===e.message&&t.__proto__.constructor===e.__proto__.constructor;if(ft(t)&&ft(e)){const s=Object.keys(t),r=Object.keys(e);return s.length===r.length&&s.every(c=>L(t[c],e[c]))&&((o=t.__proto__)==null?void 0:o.constructor)===((n=e.__proto__)==null?void 0:n.constructor)}return t===e},"equals");b(function(t,e){return t===e},"is");b(function(t,e,...o){return!t(e,...o)},"not");b(function(t){return/^\s*$/.test(t)},"isBlank");function ft(t){return!!t&&typeof t=="object"}function le(t){return t instanceof Function&&se(t)===ae&&Y(t).length===1}b(function(e,o){return o.slice(0,e.length)===e?o.slice(e.length):o});b(function(e,o){return o instanceof ce&&L(e,o.expectArgs)});Object.freeze({test:{subject:"a thing",scenario:"does something",fn(){}},error:void 0,instrumentLog:[]});function ue(t){return t.replace(/^[^:]+:\/\//,"").replace(/^www\./,"").replace(/\/$/,"")}function $t(t){const[e,o,n]=he(t);return{link:{text:e,destination:o},keywords:n}}function he(t){const e=t.indexOf("|");let o,n;e===-1?(o=void 0,n=t):(o=t.slice(0,e).trim(),n=t.slice(e+1).trim());const[s,...r]=n.split(/\s+/);return[o!=null?o:ue(s),s,r]}function Dt(t){const e=t==null?void 0:t.trim();return e?e.split(/\s+/):[]}function jt(t){return $t(t).link}const W=(t,...e)=>e.reduce((o,n)=>n(o),t);function _e(t){return t||[]}function S(t){return e=>e.map(t)}function gt(t){return e=>e.map(t).reduce(me,[])}function pe(t){const e=[...t].sort();return e.filter((o,n)=>o!==e[n-1])}function me(t,e){return t.concat(e)}function de(t){const e=fe(t.menu),o=ye(t.categories),n=ge(t.searchProviders);return{menu:e,searchProviders:n,categories:o,leechblockAllowPatterns:pe([...W(e,S(s=>s.destination),S(yt)),...W(n,S(s=>s.searchUrlFormat),S(Ce)),...W(_e(o),gt(s=>[s,...s.subCategories]),gt(s=>s.entries),S(s=>s.link.destination),S(yt)),...we(t.customLeechblockAllowPatterns)])}}function fe(t){return et(t).map(jt)}function ge(t){return et(t).map(jt).map(e=>({name:e.text,searchUrlFormat:e.destination}))}function ye(t){return(t!=null?t:[]).map(be)}function we(t){var e;return(e=t==null?void 0:t.trim().split(/\s+/))!=null?e:[]}function be(t){var o;const e=Dt(t.keywords);return{title:t.title,entries:zt(t.entries,e),subCategories:((o=t.subCategories)!=null?o:[]).map(ke(e))}}const ke=b((t,e)=>({title:e.title,entries:zt(e.entries,t.concat(Dt(e.keywords)))}),"parseLeafCategory");function zt(t,e=[]){return et(t).map($t).map(o=>({...o,keywords:o.keywords.concat(e)}))}function et(t){return t?t.split(` +`)))}function ne(t){const{config:e,query:o,onQuery:n,onSearchSubmitted:s}=t;return l(A,null,l("nav",{class:"menu"},e.menu.map((r,c)=>l("a",{href:r.destination,key:c},r.text))),l("div",{class:"podium"},l("div",{class:"omnisearch"},l("input",{type:"search",placeholder:"Search",autoFocus:!0,value:o,onKeyPress:r=>{r.key==="Enter"&&s(0)},onInput:r=>n(r.currentTarget.value)}),l("div",{class:"search-providers"},e.searchProviders.map((r,c)=>l(Nt,{key:c,onClick:()=>s(c)},r.name)))),l("article",null,e.categories.map(r=>l(Yt,{category:r}))),l("footer",null,l("hr",null),l("p",null,"Bastion is maintained by"," ",l("a",{href:"https://github.com/benchristel"},"Ben Christel"),"."),l("p",null,"The image that appears at the top of each page is"," ",l("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.flickr.com/photos/23730371@N05/49396214307"},"619 | Elizabeth Terry | Untitled Double Landscape | Watercolor | 20x22.25"),'" by'," ",l("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.flickr.com/photos/23730371@N05"},"theartleaguegallery"),", and is marked with"," ",l("a",{target:"_blank",rel:"noopener noreferrer",href:"https://creativecommons.org/publicdomain/mark/1.0/?ref=openverse"},"Public Domain Mark 1.0"),"."),l("p",null,"Theme inspired by"," ",l("a",{href:"https://www.palemoon.org/"},"The Pale Moon Browser"),"."),l(oe,null,l(re,{leechblockAllowPatterns:e.leechblockAllowPatterns})))))}const X=Symbol(),Z=Symbol(),Q=Symbol(),j=Symbol();function b(t,e){function o(...n){if(n.length>=t.length)return t(...n);{const s=(...r)=>o(...n,...r);return s[X]=t,s[Z]=o,s[Q]=n,s[j]=o[j],s}}return o[X]=t,o[Z]=o,o[Q]=[],o[j]=e||ie(t),o}function I(t){return t[X]}function se(t){return t[Z]}function Y(t){return t[Q]||[]}function ie(t){return t[j]||t.name}class ce extends Error{constructor(e){super("Expectation failed"),this.expectArgs=e}}const ae=b(function(t,e){return t(e)},"which"),L=b(function(t,e){var o,n;if(le(t))return t(e);if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every((s,r)=>L(t[r],e[r]));if(t instanceof Function&&e instanceof Function)return I(t)&&I(t)===I(e)?L(Y(t),Y(e)):t===e;if(t instanceof Date&&e instanceof Date)return t.toISOString()===e.toISOString();if(t instanceof Set&&e instanceof Set)return t.size===e.size&&[...t.values()].every(s=>e.has(s));if(t instanceof Error&&e instanceof Error)return t.message===e.message&&t.__proto__.constructor===e.__proto__.constructor;if(ft(t)&&ft(e)){const s=Object.keys(t),r=Object.keys(e);return s.length===r.length&&s.every(c=>L(t[c],e[c]))&&((o=t.__proto__)==null?void 0:o.constructor)===((n=e.__proto__)==null?void 0:n.constructor)}return t===e},"equals");b(function(t,e){return t===e},"is");b(function(t,e,...o){return!t(e,...o)},"not");b(function(t){return/^\s*$/.test(t)},"isBlank");function ft(t){return!!t&&typeof t=="object"}function le(t){return t instanceof Function&&se(t)===ae&&Y(t).length===1}b(function(e,o){return o.slice(0,e.length)===e?o.slice(e.length):o});b(function(e,o){return o instanceof ce&&L(e,o.expectArgs)});Object.freeze({test:{subject:"a thing",scenario:"does something",fn(){}},error:void 0,instrumentLog:[]});function ue(t){return t.replace(/^[^:]+:\/\//,"").replace(/^www\./,"").replace(/\/$/,"")}function Dt(t){const[e,o,n]=he(t);return{link:{text:e,destination:o},keywords:n}}function he(t){const e=t.indexOf("|");let o,n;e===-1?(o=void 0,n=t):(o=t.slice(0,e).trim(),n=t.slice(e+1).trim());const[s,...r]=n.split(/\s+/);return[o!=null?o:ue(s),s,r]}function $t(t){const e=t==null?void 0:t.trim();return e?e.split(/\s+/):[]}function jt(t){return Dt(t).link}const W=(t,...e)=>e.reduce((o,n)=>n(o),t);function _e(t){return t||[]}function S(t){return e=>e.map(t)}function gt(t){return e=>e.map(t).reduce(me,[])}function pe(t){const e=[...t].sort();return e.filter((o,n)=>o!==e[n-1])}function me(t,e){return t.concat(e)}function de(t){const e=fe(t.menu),o=ye(t.categories),n=ge(t.searchProviders);return{menu:e,searchProviders:n,categories:o,leechblockAllowPatterns:pe([...W(e,S(s=>s.destination),S(yt)),...W(n,S(s=>s.searchUrlFormat),S(Ce)),...W(_e(o),gt(s=>[s,...s.subCategories]),gt(s=>s.entries),S(s=>s.link.destination),S(yt)),...we(t.customLeechblockAllowPatterns)])}}function fe(t){return et(t).map(jt)}function ge(t){return et(t).map(jt).map(e=>({name:e.text,searchUrlFormat:e.destination}))}function ye(t){return(t!=null?t:[]).map(be)}function we(t){var e;return(e=t==null?void 0:t.trim().split(/\s+/))!=null?e:[]}function be(t){var o;const e=$t(t.keywords);return{title:t.title,entries:zt(t.entries,e),subCategories:((o=t.subCategories)!=null?o:[]).map(ke(e))}}const ke=b((t,e)=>({title:e.title,entries:zt(e.entries,t.concat($t(e.keywords)))}),"parseLeafCategory");function zt(t,e=[]){return et(t).map(Dt).map(o=>({...o,keywords:o.keywords.concat(e)}))}function et(t){return t?t.split(` `).map(ve).filter(Boolean):[]}function ve(t){return t.trim()}function yt(t){return xe(()=>new URL(t).hostname,()=>t)}function Ce(t){const e=new URL(t),o=e.pathname==="/"?"":e.pathname;return e.hostname+o}function xe(t,e){try{return t()}catch{return e()}}const Se={menu:` TV | https://benchristel.github.io/tv Recipes | https://benchristel.github.io/recipes @@ -251,7 +251,9 @@ https://academia.edu https://apa.org https://arxiv.org - `},{title:"Meditation",keywords:"meditation",subCategories:[{title:"Sit, Breathe, Wake Up! (Culadasa)",keywords:"sit breathe wake up culadasa",entries:` + `},{title:"Meditation",keywords:"meditation",entries:` + 30-minute meditation, bells every 5 minutes | https://benchristel.github.io/yt/#https://www.youtube.com/watch?v=AoDoci_oAvw + `,subCategories:[{title:"Sit, Breathe, Wake Up! (Culadasa)",keywords:"sit breathe wake up culadasa",entries:` Video 1 (40m) | https://benchristel.github.io/yt/#https://www.youtube.com/watch?v=UG-0XGpesgs Video 2 (43m) | https://benchristel.github.io/yt/#https://www.youtube.com/watch?v=IeXWFRs5cGk Video 3 (46m) | https://benchristel.github.io/yt/#https://www.youtube.com/watch?v=SRqXq570Cf0 diff --git a/dist/index.html b/dist/index.html index 504c7fd..99037d3 100644 --- a/dist/index.html +++ b/dist/index.html @@ -60,10 +60,10 @@

Bastion

-

Software Development

Food

Web-based Tools

Gaming

Linux and Computer Hardware

Computer Habitability

Images

Learning

Commerce

Archives and Archiving

Books

Music

Video

Languages and Linguistics

Academia

Meditation

Miscellaneous

+

Software Development

Food

Web-based Tools

Gaming

Linux and Computer Hardware

Computer Habitability

Images

Learning

Commerce

Archives and Archiving

Books

Music

Video

Languages and Linguistics

Academia

Meditation

Miscellaneous

- \ No newline at end of file + \ No newline at end of file