`}function wa(a,d=()=>{}){!confirm("Inserting an image will increase your wiki's file size. Continue?")||FW.upload("image/*",b=>{U(b,(g,e,f)=>{if(g){let c=FW.hash.string(g);a.p.img[c.toString()]={alt:prompt("Set alt text",b.name),size:[e,f],img:g};d({img:g,id:c})}})})}function xa(a,d,b=()=>{}){a.preventDefault();document.getElementById("g").close();b(d)}function ya(a){return a.replace(/(?:h?c>k&&(h*=k/c,c=k):h>l&&(c*=l/h,h=l);f.width=c;f.height=h;f.getContext("2d").drawImage(e,0,0,c,h);d(f.toDataURL(a.type),c,h)}};b.onerror=g=>{d(null)};
b.readAsDataURL(a)}function V(a){var d=0,b;if(0===a.length)return d;for(b=0;b{let f=e.replace("[[","").split("|"),c=f[1]?f[1].trim():FW.slug(f[0]),h=d.p.pages.some(k=>k.slug===c);g=g.replace(`${e}]]`,`${f[0]}`)}),g}function Ba(a,
d,b=!1){var g;let e=null!=a?a:null;return e&&(null!=(g=null==a?void 0:a.match(/img:.+?(?=:img)/g))?g:[]).forEach(f=>{id=f.replace("img:","");let c=d.p.img[id];e=e.replace(`${f}:img`,c.img+(b?`#${id}`:"")+`" alt="${c.alt}`)}),e}function Ca(a){var d;let b=null!=a?a:null;return b&&(null!=(d=null==a?void 0:a.match(/{b=b.replace(g,`${g}" target="_blank" rel="noopener noreferrer`)}),b}function Da(a){var d;let b=null!=a?a:null;return b&&(null!=(d=null==a?void 0:a.match(/.+?<\/h\d>/gi))?
d:[]).forEach(g=>{let e=g.match(/(.+)<\/h\d>/i),f=FW.slug(e[2]);b=b.replace(g,`${e[2]} #`)}),b}function W(a,d,b){"boolean"==typeof d?(b=d,d=void 0):b="undefined"!=typeof b?b:!1;"undefined"==typeof d&&(G=-1);d=d||[];if(Array.isArray(a)){var g=b,e;b=0;for(e=a.length;b(d[b[0]]=b[1],d),{})}function ca(a,d,b=0){var g=[];for(d=d||71;a>=d;)g.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=_!?()*".charCodeAt(a%d+b)),a=Math.floor(a/d-1);return g.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=_!?()*".charCodeAt(a+b)),g.reverse()}function Y(a,d){var b,g,e;for(g in a)"undefined"!=typeof a[g]&&(e=a[g],((null==e?void 0:e.constructor)===
Object||Array.isArray(e))&&(d=d.concat(X(Y(e,d)))),isNaN(Number(g))&&(ba(d,g)||(G+=1,b=[String.fromCharCode.apply(String,ca(G)),g],d.push(b))));return d}function Z(a){var d,b=a.length,g={};for(d=0;dd in a?H(a,d,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[d]=b,L=(a,d)=>{for(var b in d||={})ea.call(d,b)&&fa(a,b,d[b]);if(da)for(b of da(d))La.call(d,b)&&fa(a,b,d[b]);return a},ha=(a,d)=>Ga(a,Ia(d)),I=(a,d)=>()=>(a&&(d=a(a=0)),d),z=(a,d)=>()=>(d||a((d={exports:{}}).exports,d),d.exports),E=(a,d)=>{for(var b in d)H(a,
b,{get:d[b],enumerable:!0})},ia=(a,d,b,g)=>{if(d&&"object"==typeof d||"function"==typeof d)for(let e of Ja(d))!ea.call(a,e)&&e!==b&&H(a,e,{get:()=>d[e],enumerable:!(g=Ha(d,e))||g.enumerable});return a},M=a=>ia(H({},"__esModule",{value:!0}),a),T=(a,d,b)=>new Promise((g,e)=>{var f=k=>{try{h(b.next(k))}catch(l){e(l)}},c=k=>{try{h(b.throw(k))}catch(l){e(l)}},h=k=>k.done?g(k.value):Promise.resolve(k.value).then(f,c);h((b=b.apply(a,d)).next())}),Ma=z((a,d)=>{d.exports=function(b,g){if(b)try{var e=document.querySelector(b);
e&&e.scrollIntoView(g)}catch(f){}}}),Na=z((a,d)=>{d.exports=function(b){if("undefined"==typeof document)throw Error("document-ready only runs in the browser");var g=document.readyState;if("complete"===g||"interactive"===g)return setTimeout(b,0);document.addEventListener("DOMContentLoaded",function(){b()})}}),C=z((a,d)=>{function b(g,e){if(!g)throw Error(e||"AssertionError");}b.notEqual=function(g,e,f){b(g!=e,f)};b.notOk=function(g,e){b(!g,e)};b.equal=function(g,e,f){b(g==e,f)};b.ok=b;d.exports=b}),
Oa=z((a,d)=>{function b(f){this.method=(this.hasIdle=(this.hasWindow=f)&&window.requestIdleCallback)?window.requestIdleCallback.bind(window):this.setTimeout;this.scheduled=!1;this.queue=[]}var g=C(),e="undefined"!=typeof window;b.prototype.push=function(f){g.equal(typeof f,"function","nanoscheduler.push: cb should be type function");this.queue.push(f);this.schedule()};b.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var f=this;this.method(function(c){for(var h;f.queue.length&&
0{function b(h){function k(n){var p="end-"+l+"-"+h;c.mark(p);e.push(function(){var u=null;try{c.measure(h+" ["+l+"]",m,p),c.clearMarks(m),c.clearMarks(p)}catch(t){u=t}n&&n(u,h)})}
if(f.equal(typeof h,"string","nanotiming: name should be type string"),b.disabled)return g;var l=(1E4*c.now()).toFixed()%Number.MAX_SAFE_INTEGER,m="start-"+l+"-"+h;c.mark(m);return k.uuid=l,k}function g(h){h&&e.push(function(){h(Error("nanotiming: performance API unavailable"))})}var e=Oa()(),f=C();b.disabled=!0;try{var c=window.performance;b.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!c.mark}catch(h){}d.exports=b}),Pa=z((a,d)=>{function b(){if(!(this instanceof b))return new b;this.trie=
{nodes:{}}}var g=C();d.exports=b;b.prototype.create=function(e){function f(h,k){var l=Object.prototype.hasOwnProperty.call(c,h)&&c[h];if(!1===l)return k;var m=null;return/^:|^\*/.test(l)?(Object.prototype.hasOwnProperty.call(k.nodes,"$$")?m=k.nodes.$$:(m={nodes:{}},k.nodes.$$=m),"*"===l[0]&&(k.wildcard=!0),k.name=l.replace(/^:|^\*/,"")):Object.prototype.hasOwnProperty.call(k.nodes,l)?m=k.nodes[l]:(m={nodes:{}},k.nodes[l]=m),f(h+1,m)}g.equal(typeof e,"string","route should be a string");var c=e.replace(/^\//,
"").split("/");return f(0,this.trie)};b.prototype.match=function(e){function f(k,l){if(void 0!==l){var m=c[k];if(void 0===m)return l;if(Object.prototype.hasOwnProperty.call(l.nodes,m))return f(k+1,l.nodes[m]);if(l.name){try{h[l.name]=decodeURIComponent(m)}catch(n){return f(k,void 0)}return f(k+1,l.nodes.$$)}if(l.wildcard){try{h.wildcard=decodeURIComponent(c.slice(k).join("/"))}catch(n){return f(k,void 0)}return l.nodes.$$}return f(k+1)}}g.equal(typeof e,"string","route should be a string");var c=
e.replace(/^\//,"").split("/"),h={};if(e=f(0,this.trie))return e=Object.assign({},e),e.params=h,e};b.prototype.mount=function(e,f){g.equal(typeof e,"string","route should be a string");g.equal(typeof f,"object","trie should be a object");e=e.replace(/^\//,"").split("/");var c=null,h=null;if(1===e.length)h=e[0],c=this.create(h);else{var k=e.join("/");h=e[0];c=this.create(k)}Object.assign(c.nodes,f.nodes);f.name&&(c.name=f.name);c.nodes[""]&&(Object.keys(c.nodes[""]).forEach(function(l){"nodes"!==l&&
(c[l]=c.nodes[""][l])}),Object.assign(c.nodes,c.nodes[""].nodes),delete c.nodes[""].nodes)}}),Qa=z((a,d)=>{function b(f){function c(n){var p=h(n),u=Array(arguments.length);u[0]=p.params;for(var t=1;t{function b(n){if(!(this instanceof b))return new b(n);n=n||{};this.router=f(n.default||"/404")}function g(n,p){return p?n=n.replace(h,""):n=n.replace(k,""),decodeURI(n.replace(m,
"").replace(l,"/"))}var e=C(),f=Qa(),c=/file:\/\//.test("object"==typeof window&&window.location&&window.location.origin),h=RegExp("^(file://|/)(.*.html?/?)?"),k=RegExp("^(http(s)?(://))?(www.)?[a-zA-Z0-9-_.]+(:[0-9]{1,5})?(/{1})?"),l=RegExp("#"),m=RegExp("[?].*$");d.exports=b;b.prototype.on=function(n,p){e.equal(typeof n,"string");n=n.replace(/^[#/]/,"");this.router.on(n,p)};b.prototype.emit=function(n){return e.equal(typeof n,"string"),n=g(n,c),this.router.emit(n)};b.prototype.match=function(n){return e.equal(typeof n,
"string"),n=g(n,c),this.router.match(n)}}),Sa=z((a,d)=>{d.exports="onclick ondblclick onmousedown onmouseup onmouseover onmousemove onmouseout onmouseenter onmouseleave ontouchcancel ontouchend ontouchmove ontouchstart ondragstart ondrag ondragenter ondragleave ondragover ondrop ondragend onkeydown onkeypress onkeyup onunload onabort onerror onresize onscroll onselect onchange onsubmit onreset onfocus onblur oninput onanimationend onanimationiteration onanimationstart oncontextmenu onfocusin onfocusout".split(" ")}),
Ta=z((a,d)=>{function b(f,c,h){f[h]!==c[h]&&(c[h]=f[h],f[h]?c.setAttribute(h,""):c.removeAttribute(h))}var g=Sa(),e=g.length;d.exports=function(f,c){var h=f.nodeType,k=f.nodeName;if(1===h){for(var l=c.attributes,m=f.attributes,n=null,p,u=null,t=null,r,q=m.length-1;0<=q;--q)r=m[q],t=r.name,n=r.namespaceURI,p=r.value,n?(t=r.localName||t,u=c.getAttributeNS(n,t),u!==p&&c.setAttributeNS(n,t,p)):c.hasAttribute(t)?(u=c.getAttribute(t),u!==p&&("null"===p||"undefined"===p?c.removeAttribute(t):c.setAttribute(t,
p))):c.setAttribute(t,p);for(m=l.length-1;0<=m;--m)r=l[m],!1!==r.specified&&(t=r.name,n=r.namespaceURI,n?(t=r.localName||t,f.hasAttributeNS(n,t)||c.removeAttributeNS(n,t)):f.hasAttributeNS(null,t)||c.removeAttribute(t))}3!==h&&8!==h||c.nodeValue===f.nodeValue||(c.nodeValue=f.nodeValue);"INPUT"===k?(h=f.value,k=c.value,b(f,c,"checked"),b(f,c,"disabled"),f.indeterminate!==c.indeterminate&&(c.indeterminate=f.indeterminate),"file"!==c.type&&(h!==k&&(c.setAttribute("value",h),c.value=h),"null"===h&&(c.value=
"",c.removeAttribute("value")),f.hasAttributeNS(null,"value")?"range"===c.type&&(c.value=h):c.removeAttribute("value"))):"OPTION"===k?b(f,c,"selected"):"TEXTAREA"===k&&(h=f.value,(h!==c.value&&(c.value=h),!c.firstChild||c.firstChild.nodeValue===h)||""===h&&c.firstChild.nodeValue===c.placeholder||(c.firstChild.nodeValue=h));for(h=0;h{function b(h,k){return k?h?h.isSameNode&&h.isSameNode(k)?k:h.tagName!==k.tagName||(h.dataset?h.dataset.nanomorphComponentId:
void 0)!==(k.dataset?k.dataset.nanomorphComponentId:void 0)?h:(c(h,k),g(h,k),k):null:h}function g(h,k){for(var l,m,n,p,u=0,t=0;l=k.childNodes[t],m=h.childNodes[t-u],l||m;t++)if(m)if(l)if(e(m,l))n=b(m,l),n!==l&&(k.replaceChild(n,l),u++);else{p=null;for(var r=t;r{var b=/([^?=&]+)(=([^&]*))?/g,
g=C();d.exports=function(e){g.equal(typeof e,"string","nanoquery: url should be type string");var f={};return e.replace(/^.*\?/,"").replace(b,function(c,h,k,l){c=decodeURIComponent(l);h=decodeURIComponent(h);f.hasOwnProperty(h)?Array.isArray(f[h])?f[h].push(c):f[h]=[f[h],c]:f[h]=c}),f}}),Wa=z((a,d)=>{var b=C(),g=/(noopener|noreferrer) (noopener|noreferrer)/,e=/^[\w-_]+:/;d.exports=function(f,c){b.notEqual(typeof window,"undefined","nanohref: expected window to exist");c=c||window.document;b.equal(typeof f,
"function","nanohref: cb should be type function");b.equal(typeof c,"object","nanohref: root should be type object");window.addEventListener("click",function(h){if(!(h.button&&0!==h.button||h.ctrlKey||h.metaKey||h.altKey||h.shiftKey||h.defaultPrevented)){var k=function n(m){if(m&&m!==c)return"a"!==m.localName||void 0===m.href?n(m.parentNode):m}(h.target);!k||window.location.protocol!==k.protocol||window.location.hostname!==k.hostname||window.location.port!==k.port||k.hasAttribute("data-nanohref-ignore")||
k.hasAttribute("download")||"_blank"===k.getAttribute("target")&&g.test(k.getAttribute("rel"))||e.test(k.getAttribute("href"))||(h.preventDefault(),f(k))}})}}),Xa=z((a,d)=>{var b=C();d.exports=function(g,e){b.equal(typeof g,"function","nanoraf: render should be a function");b.ok("function"==typeof e||"undefined"==typeof e,"nanoraf: raf should be a function or undefined");e||=window.requestAnimationFrame;var f=!1,c=null;return function(){null===c&&!f&&(f=!0,e(function(){f=!1;for(var h=c.length,k=Array(h),
l=0;l{d.exports=function(b,g,e){var f=b.length;if(!(g>=f||0===e)){e=g+e>f?f-g:e;for(f-=e;g{function b(c){if(!(this instanceof b))return new b(c);this._name=c||"nanobus";this._starListeners=[];this._listeners={}}var g=Ya(),e=ja(),f=C();d.exports=b;b.prototype.emit=function(c){f.ok("string"==typeof c||"symbol"==typeof c,"nanobus.emit: eventName should be type string or symbol");for(var h=
[],k=1,l=arguments.length;k{function b(g){if(!(this instanceof b))return new b(g);"number"==typeof g&&(g={max:g});g||={};this.cache={};this.head=this.tail=null;this.length=0;this.max=g.max||1E3;this.maxAge=g.maxAge||0}d.exports=b;Object.defineProperty(b.prototype,"keys",{get:function(){return Object.keys(this.cache)}});b.prototype.clear=function(){this.cache={};this.head=this.tail=null;this.length=0};b.prototype.remove=function(g){if("string"!=typeof g&&(g=""+
g),this.cache.hasOwnProperty(g)){var e=this.cache[g];return delete this.cache[g],this._unlink(g,e.prev,e.next),e.value}};b.prototype._unlink=function(g,e,f){this.length--;0===this.length?this.head=this.tail=null:this.head===g?(this.head=e,this.cache[this.head].next=null):this.tail===g?(this.tail=f,this.cache[this.tail].prev=null):(this.cache[e].next=f,this.cache[f].prev=e)};b.prototype.peek=function(g){if(this.cache.hasOwnProperty(g)){var e=this.cache[g];if(this._checkAge(g,e))return e.value}};b.prototype.set=
function(g,e){"string"!=typeof g&&(g=""+g);var f;if(this.cache.hasOwnProperty(g)){if(f=this.cache[g],f.value=e,this.maxAge&&(f.modified=Date.now()),g===this.head)return e;this._unlink(g,f.prev,f.next)}else f={value:e,modified:0,next:null,prev:null},this.maxAge&&(f.modified=Date.now()),this.cache[g]=f,this.length===this.max&&this.evict();return this.length++,f.next=null,f.prev=this.head,this.head&&(this.cache[this.head].next=g),this.head=g,this.tail||(this.tail=g),e};b.prototype._checkAge=function(g,
e){return this.maxAge&&Date.now()-e.modified>this.maxAge?(this.remove(g),!1):!0};b.prototype.get=function(g){if("string"!=typeof g&&(g=""+g),this.cache.hasOwnProperty(g)){var e=this.cache[g];if(this._checkAge(g,e))return this.head!==g&&(g===this.tail?(this.tail=e.next,this.cache[this.tail].prev=null):this.cache[e.prev].next=e.next,this.cache[e.next].prev=e.prev,this.cache[this.head].next=g,e.prev=this.head,e.next=null,this.head=g),e.value}};b.prototype.evict=function(){!this.tail||this.remove(this.tail)}}),
ab=z((a,d)=>{function b(c,h,k){e.ok(this instanceof b,"ChooComponentCache should be created with `new`");e.equal(typeof c,"object","ChooComponentCache: state should be type object");e.equal(typeof h,"function","ChooComponentCache: emit should be type function");"number"==typeof k?this.cache=new f(k):this.cache=k||new f(100);this.state=c;this.emit=h}function g(c){return new (c.bind.apply(c,arguments))}var e=C(),f=$a();d.exports=b;b.prototype.render=function(c,h){e.equal(typeof c,"function","ChooComponentCache.render: Component should be type function");
e.ok("string"==typeof h||"number"==typeof h,"ChooComponentCache.render: id should be type string or type number");var k=this.cache.get(h);if(!k){k=[];for(var l=2,m=arguments.length;l{function b(r){var q=f("choo.constructor");if(!(this instanceof b))return new b(r);r=r||{};p.equal(typeof r,"object","choo: opts should be type object");var v=this;this._events={DOMCONTENTLOADED:"DOMContentLoaded",
DOMTITLECHANGE:"DOMTitleChange",REPLACESTATE:"replaceState",PUSHSTATE:"pushState",NAVIGATE:"navigate",POPSTATE:"popState",RENDER:"render"};this._historyEnabled=void 0===r.history?!0:r.history;this._hrefEnabled=void 0===r.href?!0:r.href;this._hashEnabled=void 0===r.hash?!1:r.hash;this._hasWindow="undefined"!=typeof window;this._cache=r.cache;this._loaded=!1;this._stores=[function(x){v.emitter.prependListener(v._events.DOMTITLECHANGE,function(y){p.equal(typeof y,"string","events.DOMTitleChange: title should be type string");
x.title=y;v._hasWindow&&(document.title=y)})}];this._tree=null;r={events:this._events,components:{}};this._hasWindow?(this.state=window.initialState?Object.assign({},window.initialState,r):r,delete window.initialState):this.state=r;this.router=c({curry:!0});this.emitter=n("choo.emit");this.emit=this.emitter.emit.bind(this.emitter);this._hasWindow&&(this.state.title=document.title);q()}var g=Ma(),e=Na(),f=ja(),c=Ra(),h=Ua(),k=Va(),l=Wa(),m=Xa(),n=Za(),p=C(),u=ab();d.exports=b;var t={};b.prototype.route=
function(r,q){var v=f("choo.route('"+r+"')");p.equal(typeof r,"string","choo.route: route should be type string");p.equal(typeof q,"function","choo.handler: route should be type function");this.router.on(r,q);v()};b.prototype.use=function(r){p.equal(typeof r,"function","choo.use: cb should be type function");var q=this;this._stores.push(function(v){var x="choo.use";x=r.storeName?x+"("+r.storeName+")":x;x=f(x);r(v,q.emitter,q);x()})};b.prototype.start=function(){p.equal(typeof window,"object","choo.start: window was not found. .start() must be called in a browser, use .toString() if running in Node");
var r=f("choo.start"),q=this;return this._historyEnabled&&(this.emitter.prependListener(this._events.NAVIGATE,function(){q._matchRoute(q.state);q._loaded&&(q.emitter.emit(q._events.RENDER),setTimeout(g.bind(null,window.location.hash),0))}),this.emitter.prependListener(this._events.POPSTATE,function(){q.emitter.emit(q._events.NAVIGATE)}),this.emitter.prependListener(this._events.PUSHSTATE,function(v){p.equal(typeof v,"string","events.pushState: href should be type string");window.history.pushState(t,
null,v);q.emitter.emit(q._events.NAVIGATE)}),this.emitter.prependListener(this._events.REPLACESTATE,function(v){p.equal(typeof v,"string","events.replaceState: href should be type string");window.history.replaceState(t,null,v);q.emitter.emit(q._events.NAVIGATE)}),window.onpopstate=function(){q.emitter.emit(q._events.POPSTATE)},q._hrefEnabled&&l(function(v){var x=v.href;v=v.hash;x===window.location.href?!q._hashEnabled&&v&&g(v):q.emitter.emit(q._events.PUSHSTATE,x)})),this._setCache(this.state),this._matchRoute(this.state),
this._stores.forEach(function(v){v(q.state)}),this._tree=this._prerender(this.state),p.ok(this._tree,"choo.start: no valid DOM node returned for location "+this.state.href),this.emitter.prependListener(q._events.RENDER,m(function(){var v=f("choo.render"),x=q._prerender(q.state);p.ok(x,"choo.render: no valid DOM node returned for location "+q.state.href);p.equal(q._tree.nodeName,x.nodeName,"choo.render: The target node <"+q._tree.nodeName.toLowerCase()+"> is not the same type as the new node <"+x.nodeName.toLowerCase()+
">.");var y=f("choo.morph");h(q._tree,x);y();v()})),e(function(){q.emitter.emit(q._events.DOMCONTENTLOADED);q._loaded=!0}),r(),this._tree};b.prototype.mount=function(r){var q=f("choo.mount('"+r+"')");if("object"!=typeof window)return p.ok("string"==typeof r,"choo.mount: selector should be type String"),this.selector=r,q(),this;p.ok("string"==typeof r||"object"==typeof r,"choo.mount: selector should be type String or HTMLElement");var v=this;e(function(){var x=f("choo.render"),y=v.start();"string"==
typeof r?v._tree=document.querySelector(r):v._tree=r;p.ok(v._tree,"choo.mount: could not query selector: "+r);p.equal(v._tree.nodeName,y.nodeName,"choo.mount: The target node <"+v._tree.nodeName.toLowerCase()+"> is not the same type as the new node <"+y.nodeName.toLowerCase()+">.");var B=f("choo.morph");h(v._tree,y);B();x()});q()};b.prototype.toString=function(r,q){q=q||{};q.components=q.components||{};q.events=Object.assign({},q.events,this._events);
p.equal(typeof r,"string","choo.toString: location should be type string");p.equal(typeof q,"object","choo.toString: state should be type object");this._setCache(q);this._matchRoute(q,r);this.emitter.removeAllListeners();this._stores.forEach(function(x){x(q)});var v=this._prerender(q);return p.ok(v,"choo.toString: no valid value returned for the route "+r),p(!Array.isArray(v),"choo.toString: return value was an array for the route "+r),"string"==typeof v.outerHTML?v.outerHTML:v.toString()};b.prototype._matchRoute=
function(r,q){var v,x;q?(v=q.replace(/\?.+$/,"").replace(/\/$/,""),this._hashEnabled||(v=v.replace(/#.+$/,"")),x=q):(v=window.location.pathname.replace(/\/$/,""),this._hashEnabled&&(v+=window.location.hash.replace(/^#/,"/")),x=window.location.search);q=this.router.match(v);this._handler=q.cb;r.href=v;r.query=k(x);r.route=q.route;r.params=q.params};b.prototype._prerender=function(r){var q=f("choo.prerender('"+r.route+"')");r=this._handler(r,this.emit);return q(),r};b.prototype._setCache=function(r){function q(x,
y){p.equal(typeof x,"function","choo.state.cache: Component should be type function");for(var B=[],A=0,D=arguments.length;A{N=(a,d,b={})=>{function g(l,m){if(l.preventDefault(),!confirm("Permanently delete image from all pages in wiki?"))return!1;delete a.p.img[m.id];0(n.content&&
(n.content=n.content.replaceAll(``,"")),n)));d(e.CHECK_CHANGED)}let {events:e,root:f}=a,{showDelete:c=!1,showUsed:h=!1,insert:k=null}=b;b=function(){let {pages:l,img:m}=a.p;return Object.keys(m).map(n=>ha(L({id:n},m[n]),{pgs:h?l.filter(p=>{var u;return null==(u=p.content)?void 0:u.includes(`img:${n}:img`)}):[]}))}();return html`
`]};P();var ub=(a,d)=>{function b(){FW.upload("text/html",p=>{FW.xtr(p,u=>{u&&(a.p=u[0],g(u[1]),e(u[2]),d(h.DOMCONTENTLOADED),d(h.CHECK_CHANGED),d(h.NOTIFY,"Wiki Loaded"))})})}function g(p){let u=document.getElementById("c");p.trim()?(a.c=p,u?u.innerHTML=p:document.head.innerHTML+=``):(delete a.c,u&&document.head.removeChild(u))}function e(p){p.trim()?(a.j!==p&&alert("You must save & reload to run your JavaScript"),a.j=
p):delete a.j}var f,c;let {events:h,p:k,c:l,j:m}=a,n=k.pages.map(p=>p.slug).join("\n");return[html`
This style was created by @theartificershopco on Instagram for their personal use.
To use it on your own Feather Wiki, either copy this CSS into the custom CSS section of your Wiki Settings:
button,
summary:is(.np, .b),
.sb nav p a,
.sb li,
.tabs .a {
background: #1e8525db;
}
.tabs > * {
background: #1e852555;
border-color: #1e8525db;
}
.sb {
font-family: "Courier New", monospace;
background: #319b38db;
}
.sb a {
color: #acadac;
}
.sb a.t {
/* Brust Script MT is a font provided by Microsoft and is included in Windows operating systems and the Microsoft Office suite */
font-family: "Brush Script MT", script;
color: black;
font-size: 2em;
}
section {
font-family: "Courier New", monospace;
}
textarea {
font-family: Arial, Helvetica, sans-serif;
}
Or save this Feather Wiki/copy this for the minified CSS:
.sb,section{font-family:"Courier New",monospace}.sb li,.sb nav p a,.tabs .a,button,summary:is(.np,.b){background:#1e8525db}
.tabs>*{background:#1e852555;border-color:#1e8525db}.sb{background:#319b38db}.sb a{color:#acadac}
.sb a.t{font-family:"Brush Script MT",script;color:#000;font-size:2em}textarea{font-family:Arial,Helvetica,sans-serif}