From 1e44cd35f15571d7b06db84109f8f2e89be78878 Mon Sep 17 00:00:00 2001 From: Ben Christel Date: Tue, 21 May 2024 17:44:40 -0700 Subject: [PATCH] Build for deployment --- .../{index.6ddcf419.js => index.e3d7728d.js} | 22 +++++++------------ dist/index.html | 4 ++-- 2 files changed, 10 insertions(+), 16 deletions(-) rename dist/assets/{index.6ddcf419.js => index.e3d7728d.js} (68%) diff --git a/dist/assets/index.6ddcf419.js b/dist/assets/index.e3d7728d.js similarity index 68% rename from dist/assets/index.6ddcf419.js rename to dist/assets/index.e3d7728d.js index 5d7bf64..4a03daf 100644 --- a/dist/assets/index.6ddcf419.js +++ b/dist/assets/index.e3d7728d.js @@ -1,7 +1,7 @@ -(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const r of i)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(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerpolicy&&(r.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?r.credentials="include":i.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(i){if(i.ep)return;i.ep=!0;const r=o(i);fetch(i.href,r)}})();var V,u,wt,E,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 bt(t){var e=t.parentNode;e&&e.removeChild(t)}function l(t,e,o){var n,i,r,c={};for(r in e)r=="key"?n=e[r]:r=="ref"?i=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 M(t,c,n,i,null)}function M(t,e,o,n,i){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:i==null?++wt:i};return i==null&&u.vnode!=null&&u.vnode(r),r}function L(t){return t.children}function T(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?M(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[s])===null||h&&a.key==h.key&&a.type===h.type)w[s]=void 0;else for(f=0;f=o.__.length&&o.__.push({__V:N}),o.__[t]}function Et(t){return O=1,Wt(Ht,t)}function Wt(t,e,o){var n=tt(q++,2);if(n.t=t,!n.__c&&(n.__=[o?o(e):Ht(void 0,e),function(r){var c=n.__N?n.__N[0]:n.__[0],_=n.t(c,r);c!==_&&(n.__N=[_,n.__[1]],n.__c.setState({}))}],n.__c=y,!y.u)){y.u=!0;var i=y.shouldComponentUpdate;y.shouldComponentUpdate=function(r,c,_){if(!n.__c.__H)return!0;var m=n.__c.__H.__.filter(function(s){return s.__c});if(m.every(function(s){return!s.__N}))return!i||i.call(this,r,c,_);var d=!1;return m.forEach(function(s){if(s.__N){var f=s.__[0];s.__=s.__N,s.__N=void 0,f!==s.__[0]&&(d=!0)}}),!!d&&(!i||i.call(this,r,c,_))}}return n.__N||n.__}function Gt(t,e){var o=tt(q++,3);!u.__s&&Dt(o.__H,e)&&(o.__=t,o.i=e,y.__H.__h.push(o))}function It(t){return O=5,Kt(function(){return{current:t}},[])}function Kt(t,e){var o=tt(q++,7);return Dt(o.__H,e)?(o.__V=t(),o.i=e,o.__h=t,o.__V):o.__}function Zt(){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===L?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&&(W===y?(e.__h=[],y.__h=[],e.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=N,o.__N=o.i=void 0})):(e.__h.forEach($),e.__h.forEach(K),e.__h=[])),W=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)||Xt)(Zt)),e.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==N&&(o.__=o.__V),o.i=void 0,o.__V=N})),W=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(i){i.__h&&(i.__h=[])}),e=[],u.__e(n,o.__v)}}),pt&&pt(t,e)},u.unmount=function(t){_t&&_t(t);var e,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{$(n)}catch(i){e=i}}),o.__H=void 0,e&&u.__e(e,o.__v))};var mt=typeof requestAnimationFrame=="function";function Xt(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 Dt(t,e){return!t||t.length!==e.length||e.some(function(o,n){return o!==t[n]})}function Ht(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,i=o.map(dt);return l("section",{class:"category"},l("h2",null,e),l("div",{class:"columns "+Jt(te(t))},i.length>0&&l("section",null,l("ul",null,i)),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 Mt(t){return l("button",{class:"raised-button",...t})}function oe(t){const[e,o]=Et(!1),n=It(null);return Gt(()=>{if(!e)return;function i(){o(!1)}const r=n.current;return r==null||r.addEventListener("close",i),r==null||r.showModal(),()=>r==null?void 0:r.removeEventListener("close",i)},[e]),l("div",{class:"dev-info-pane-opener"},l(Mt,{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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const n of i)if(n.type==="childList")for(const c of n.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function o(i){const n={};return i.integrity&&(n.integrity=i.integrity),i.referrerpolicy&&(n.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?n.credentials="include":i.crossorigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function r(i){if(i.ep)return;i.ep=!0;const n=o(i);fetch(i.href,n)}})();var V,u,kt,E,nt,z={},bt=[],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 wt(t){var e=t.parentNode;e&&e.removeChild(t)}function l(t,e,o){var r,i,n,c={};for(n in e)n=="key"?r=e[n]:n=="ref"?i=e[n]:c[n]=e[n];if(arguments.length>2&&(c.children=arguments.length>3?V.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(n in t.defaultProps)c[n]===void 0&&(c[n]=t.defaultProps[n]);return M(t,c,r,i,null)}function M(t,e,o,r,i){var n={type:t,props:e,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++kt:i};return i==null&&u.vnode!=null&&u.vnode(n),n}function L(t){return t.children}function T(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?M(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a)!=null){if(a.__=o,a.__b=o.__b+1,(h=k[s])===null||h&&a.key==h.key&&a.type===h.type)k[s]=void 0;else for(f=0;f=o.__.length&&o.__.push({__V:N}),o.__[t]}function Et(t){return O=1,Wt(Ht,t)}function Wt(t,e,o){var r=tt(q++,2);if(r.t=t,!r.__c&&(r.__=[o?o(e):Ht(void 0,e),function(n){var c=r.__N?r.__N[0]:r.__[0],_=r.t(c,n);c!==_&&(r.__N=[_,r.__[1]],r.__c.setState({}))}],r.__c=y,!y.u)){y.u=!0;var i=y.shouldComponentUpdate;y.shouldComponentUpdate=function(n,c,_){if(!r.__c.__H)return!0;var m=r.__c.__H.__.filter(function(s){return s.__c});if(m.every(function(s){return!s.__N}))return!i||i.call(this,n,c,_);var d=!1;return m.forEach(function(s){if(s.__N){var f=s.__[0];s.__=s.__N,s.__N=void 0,f!==s.__[0]&&(d=!0)}}),!!d&&(!i||i.call(this,n,c,_))}}return r.__N||r.__}function Gt(t,e){var o=tt(q++,3);!u.__s&&Dt(o.__H,e)&&(o.__=t,o.i=e,y.__H.__h.push(o))}function It(t){return O=5,Kt(function(){return{current:t}},[])}function Kt(t,e){var o=tt(q++,7);return Dt(o.__H,e)?(o.__V=t(),o.i=e,o.__h=t,o.__V):o.__}function Zt(){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===L?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&&(W===y?(e.__h=[],y.__h=[],e.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=N,o.__N=o.i=void 0})):(e.__h.forEach($),e.__h.forEach(K),e.__h=[])),W=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)||Xt)(Zt)),e.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==N&&(o.__=o.__V),o.i=void 0,o.__V=N})),W=y=null},u.__c=function(t,e){e.some(function(o){try{o.__h.forEach($),o.__h=o.__h.filter(function(r){return!r.__||K(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],u.__e(r,o.__v)}}),pt&&pt(t,e)},u.unmount=function(t){_t&&_t(t);var e,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(r){try{$(r)}catch(i){e=i}}),o.__H=void 0,e&&u.__e(e,o.__v))};var mt=typeof requestAnimationFrame=="function";function Xt(t){var e,o=function(){clearTimeout(r),mt&&cancelAnimationFrame(e),setTimeout(t)},r=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 Dt(t,e){return!t||t.length!==e.length||e.some(function(o,r){return o!==t[r]})}function Ht(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:r}=t,i=o.map(dt);return l("section",{class:"category"},l("h2",null,e),l("div",{class:"columns "+Jt(te(t))},i.length>0&&l("section",null,l("ul",null,i)),r.map(({title:n,entries:c})=>l("section",null,l("h3",null,n),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 Mt(t){return l("button",{class:"raised-button",...t})}function oe(t){const[e,o]=Et(!1),r=It(null);return Gt(()=>{if(!e)return;function i(){o(!1)}const n=r.current;return n==null||n.addEventListener("close",i),n==null||n.showModal(),()=>n==null?void 0:n.removeEventListener("close",i)},[e]),l("div",{class:"dev-info-pane-opener"},l(Mt,{onClick:()=>o(!0)},"Show Developer Info"),e&&l("dialog",{ref:r},t.children))}function ne(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:i}=t;return l(L,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"&&i(0)},onInput:r=>n(r.currentTarget.value)}),l("div",{class:"search-providers"},e.searchProviders.map((r,c)=>l(Mt,{key:c,onClick:()=>i(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 Z=Symbol(),X=Symbol(),Q=Symbol(),j=Symbol();function k(t,e){function o(...n){if(n.length>=t.length)return t(...n);{const i=(...r)=>o(...n,...r);return i[Z]=t,i[X]=o,i[Q]=n,i[j]=o[j],i}}return o[Z]=t,o[X]=o,o[Q]=[],o[j]=e||ie(t),o}function G(t){return t[Z]}function se(t){return t[X]}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=k(function(t,e){return t(e)},"which"),S=k(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((i,r)=>S(t[r],e[r]));if(t instanceof Function&&e instanceof Function)return G(t)&&G(t)===G(e)?S(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(i=>e.has(i));if(t instanceof Error&&e instanceof Error)return t.message===e.message&&t.__proto__.constructor===e.__proto__.constructor;if(ft(t)&&ft(e)){const i=Object.keys(t),r=Object.keys(e);return i.length===r.length&&i.every(c=>S(t[c],e[c]))&&((o=t.__proto__)==null?void 0:o.constructor)===((n=e.__proto__)==null?void 0:n.constructor)}return t===e},"equals");k(function(t,e){return t===e},"is");k(function(t,e,...o){return!t(e,...o)},"not");k(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}k(function(e,o){return o.slice(0,e.length)===e?o.slice(e.length):o});k(function(e,o){return o instanceof ce&&S(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 Tt(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[i,...r]=n.split(/\s+/);return[o!=null?o:ue(i),i,r]}function Nt(t){const e=t==null?void 0:t.trim();return e?e.split(/\s+/):[]}function $t(t){return Tt(t).link}const I=(t,...e)=>e.reduce((o,n)=>n(o),t);function pe(t){return t||[]}function F(t){return e=>e.map(t)}function gt(t){return e=>e.map(t).reduce(me,[])}function _e(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),i=we(e,n,o,t.customLeechblockAllowPatterns);return{menu:e,searchProviders:n,categories:o,leechblockAllowPatterns:i}}function fe(t){return et(t).map($t)}function ge(t){return et(t).map($t).map(e=>({name:e.text,searchUrlFormat:e.destination}))}function ye(t){return(t!=null?t:[]).map(ve)}function we(t,e,o,n){const i=[...t,...I(pe(o),gt(c=>[c,...c.subCategories]),gt(c=>c.entries),F(c=>c.link))],r=[...I(i,F(c=>c.destination),F(zt)),...I(e,F(c=>c.searchUrlFormat),F(Se)),...be(n)];return _e([...r,...ke(r)])}function ke(t){return t.map(zt).filter(Pe).map(e=>"*."+e)}function be(t){var e;return(e=t==null?void 0:t.trim().split(/\s+/))!=null?e:[]}function ve(t){var o;const e=Nt(t.keywords);return{title:t.title,entries:jt(t.entries,e),subCategories:((o=t.subCategories)!=null?o:[]).map(Ce(e))}}const Ce=k((t,e)=>({title:e.title,entries:jt(e.entries,t.concat(Nt(e.keywords)))}),"parseLeafCategory");function jt(t,e=[]){return et(t).map(Tt).map(o=>({...o,keywords:o.keywords.concat(e)}))}function et(t){return t?t.split(` -`).map(xe).filter(Boolean):[]}function xe(t){return t.trim()}function zt(t){return Le(()=>new URL(t).hostname,()=>t.split("/")[0])}function Se(t){const e=new URL(t),o=e.pathname==="/"?"":e.pathname;return e.hostname+o}function Pe(t){return t.split(".").length===2}function Le(t,e){try{return t()}catch{return e()}}const Ae={menu:` +`)))}function re(t){const{config:e,query:o,onQuery:r,onSearchSubmitted:i}=t;return l(L,null,l("nav",{class:"menu"},e.menu.map((n,c)=>l("a",{href:n.destination,key:c},n.text))),l("div",{class:"podium"},l("div",{class:"omnisearch"},l("input",{type:"search",placeholder:"Search",autoFocus:!0,value:o,onKeyPress:n=>{n.key==="Enter"&&i(0)},onInput:n=>r(n.currentTarget.value)}),l("div",{class:"search-providers"},e.searchProviders.map((n,c)=>l(Mt,{key:c,onClick:()=>i(c)},n.name)))),l("article",null,e.categories.map(n=>l(Yt,{category:n}))),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(ne,{leechblockAllowPatterns:e.leechblockAllowPatterns})))))}const Z=Symbol(),X=Symbol(),Q=Symbol(),j=Symbol();function b(t,e){function o(...r){if(r.length>=t.length)return t(...r);{const i=(...n)=>o(...r,...n);return i[Z]=t,i[X]=o,i[Q]=r,i[j]=o[j],i}}return o[Z]=t,o[X]=o,o[Q]=[],o[j]=e||ie(t),o}function G(t){return t[Z]}function se(t){return t[X]}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"),S=b(function(t,e){var o,r;if(le(t))return t(e);if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every((i,n)=>S(t[n],e[n]));if(t instanceof Function&&e instanceof Function)return G(t)&&G(t)===G(e)?S(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(i=>e.has(i));if(t instanceof Error&&e instanceof Error)return t.message===e.message&&t.__proto__.constructor===e.__proto__.constructor;if(ft(t)&&ft(e)){const i=Object.keys(t),n=Object.keys(e);return i.length===n.length&&i.every(c=>S(t[c],e[c]))&&((o=t.__proto__)==null?void 0:o.constructor)===((r=e.__proto__)==null?void 0:r.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&&S(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 Tt(t){const[e,o,r]=he(t);return{link:{text:e,destination:o},keywords:r}}function he(t){const e=t.indexOf("|");let o,r;e===-1?(o=void 0,r=t):(o=t.slice(0,e).trim(),r=t.slice(e+1).trim());const[i,...n]=r.split(/\s+/);return[o!=null?o:ue(i),i,n]}function Nt(t){const e=t==null?void 0:t.trim();return e?e.split(/\s+/):[]}function $t(t){return Tt(t).link}const I=(t,...e)=>e.reduce((o,r)=>r(o),t);function pe(t){return t||[]}function F(t){return e=>e.map(t)}function gt(t){return e=>e.map(t).reduce(me,[])}function _e(t){const e=[...t].sort();return e.filter((o,r)=>o!==e[r-1])}function me(t,e){return t.concat(e)}function de(t){const e=fe(t.menu),o=ye(t.categories),r=ge(t.searchProviders),i=ke(e,r,o,t.customLeechblockAllowPatterns);return{menu:e,searchProviders:r,categories:o,leechblockAllowPatterns:i}}function fe(t){return et(t).map($t)}function ge(t){return et(t).map($t).map(e=>({name:e.text,searchUrlFormat:e.destination}))}function ye(t){return(t!=null?t:[]).map(ve)}function ke(t,e,o,r){const i=[...t,...I(pe(o),gt(c=>[c,...c.subCategories]),gt(c=>c.entries),F(c=>c.link))],n=[...I(i,F(c=>c.destination),F(zt)),...I(e,F(c=>c.searchUrlFormat),F(Pe)),...we(r)];return _e([...n,...be(n)])}function be(t){return t.filter(Se).map(zt).filter(Le).map(e=>"*."+e)}function we(t){var e;return(e=t==null?void 0:t.trim().split(/\s+/))!=null?e:[]}function ve(t){var o;const e=Nt(t.keywords);return{title:t.title,entries:jt(t.entries,e),subCategories:((o=t.subCategories)!=null?o:[]).map(Ce(e))}}const Ce=b((t,e)=>({title:e.title,entries:jt(e.entries,t.concat(Nt(e.keywords)))}),"parseLeafCategory");function jt(t,e=[]){return et(t).map(Tt).map(o=>({...o,keywords:o.keywords.concat(e)}))}function et(t){return t?t.split(` +`).map(xe).filter(Boolean):[]}function xe(t){return t.trim()}function zt(t){return Ae(()=>new URL(t).hostname,()=>t.split("/")[0])}function Se(t){try{const e=/^https?:\/\//.test(t)?t:"https://"+t;return new URL(e).pathname==="/"}catch{return!0}}function Pe(t){const e=new URL(t),o=e.pathname==="/"?"":e.pathname;return e.hostname+o}function Le(t){return t.split(".").length===2}function Ae(t,e){try{return t()}catch{return e()}}const Fe={menu:` TV | https://benchristel.github.io/tv Recipes | https://benchristel.github.io/recipes Book | https://benchristel.github.io/process-to-processes @@ -27,6 +27,7 @@ youtube.com/playlist* youtube.com/results* youtube.com/watch* + youtube-nocookie.com dasichuanrestaurant.com doordash.com yelp.com @@ -35,14 +36,14 @@ sfcu.org etrade.com allrecipes.com - goatcounter.com - *.goatcounter.com google.com *.google.com duckduckgo.com *.duckduckgo.com antfu.me bookmarkbeat.substack.com + bigpencil.net + github.com `,categories:[{title:"Software Development",keywords:"software development",subCategories:[{title:"Engineering",keywords:"engineering",entries:` The Art of Unix Programming | http://www.catb.org/esr/writings/taoup/html/ Eric Raymond https://buildingbeauty.org Christopher Alexander Greg Bryant @@ -73,6 +74,7 @@ https://react.dev https://mdxjs.com https://eslint.style + https://daisyui.com https://sqlite.org https://json.org https://jwt.io @@ -101,14 +103,6 @@ supabase.com | https://supabase.com digitalocean.com | https://digitalocean.com https://hub.docker.com - https://adaptable.io - alwaysdata.com | https://www.alwaysdata.com/en/ - https://www.argonaut.dev/ - https://www.cyclic.sh/ - https://domcloud.co/ - https://www.koyeb.com/ - https://www.northflank.com/ - https://www.withcoherence.com/ `},{title:"Help",keywords:"help",entries:` stackoverflow.com | https://stackoverflow.com exercism.org | https://exercism.org @@ -321,4 +315,4 @@ http://www.livingneighborhoods.org https://ytoo.org/ U.S. Bureau of Labor Statistics Database | data.bls.gov - `}]};function Fe(t){return{...t,categories:t.categories.map(e=>({...e,subCategories:e.subCategories.map(o=>({...o,entries:o.entries.map(n=>n.link)})),entries:e.entries.map(o=>o.link)}))}}function Ee(t,e){return e.filter(De(t)).map(He(t))}const De=k((t,e)=>e.entries.some(R(t))||e.subCategories.some(Ut(t)),"categoryMatches"),He=k((t,e)=>({...e,entries:e.entries.filter(R(t)),subCategories:e.subCategories.filter(Ut(t)).map(Me(t))})),Ut=k((t,e)=>e.entries.some(R(t))),Me=k((t,e)=>({...e,entries:e.entries.filter(R(t))})),R=k((t,e)=>Te(t).every(o=>e.link.destination.toLowerCase().includes(o)||e.link.text.toLowerCase().includes(o)||e.keywords.some(n=>n.toLowerCase().includes(o))),"entryMatches");function Te(t){return t.toLowerCase().split(/\s+/)}function Ne(){const[t,e]=Et(""),o=de(Ae),n={...o,categories:Ee(t,o.categories)};return l(ne,{config:Fe(n),query:t,onQuery:e,onSearchSubmitted:i=>window.open(o.searchProviders[i].searchUrlFormat.replace("%s",t),"_self")})}k((t,e)=>S(new Set(t),new Set(e)),"isSameSetAs");k((t,e)=>{for(let o in t)if(!(o in e)||!S(t[o],e[o]))return!1;return!0},"hasProperties");var yt;(t=>{function e({title:o="",entries:n=[],subCategories:i=[]}){return{title:o,entries:n,subCategories:i}}t.category=e})(yt||(yt={}));Rt(l(Ne,null),document.getElementById("preact-root")); + `}]};function Ee(t){return{...t,categories:t.categories.map(e=>({...e,subCategories:e.subCategories.map(o=>({...o,entries:o.entries.map(r=>r.link)})),entries:e.entries.map(o=>o.link)}))}}function De(t,e){return e.filter(He(t)).map(Me(t))}const He=b((t,e)=>e.entries.some(R(t))||e.subCategories.some(Ut(t)),"categoryMatches"),Me=b((t,e)=>({...e,entries:e.entries.filter(R(t)),subCategories:e.subCategories.filter(Ut(t)).map(Te(t))})),Ut=b((t,e)=>e.entries.some(R(t))),Te=b((t,e)=>({...e,entries:e.entries.filter(R(t))})),R=b((t,e)=>Ne(t).every(o=>e.link.destination.toLowerCase().includes(o)||e.link.text.toLowerCase().includes(o)||e.keywords.some(r=>r.toLowerCase().includes(o))),"entryMatches");function Ne(t){return t.toLowerCase().split(/\s+/)}function $e(){const[t,e]=Et(""),o=de(Fe),r={...o,categories:De(t,o.categories)};return l(re,{config:Ee(r),query:t,onQuery:e,onSearchSubmitted:i=>window.open(o.searchProviders[i].searchUrlFormat.replace("%s",t),"_self")})}b((t,e)=>S(new Set(t),new Set(e)),"isSameSetAs");b((t,e)=>{for(let o in t)if(!(o in e)||!S(t[o],e[o]))return!1;return!0},"hasProperties");var yt;(t=>{function e({title:o="",entries:r=[],subCategories:i=[]}){return{title:o,entries:r,subCategories:i}}t.category=e})(yt||(yt={}));Rt(l($e,null),document.getElementById("preact-root")); diff --git a/dist/index.html b/dist/index.html index 9486b99..ddf1227 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

Typography

Images

Learning

Commerce

Finance

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

Typography

Images

Learning

Commerce

Finance

Archives and Archiving

Books

Music

Video

Languages and Linguistics

Academia

Meditation

Miscellaneous

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