@bootcamp-project/svelte-components
Version:
A browser extension for the entrance to your Entropedia-Space
3 lines (2 loc) • 21.5 kB
JavaScript
var Components=function(t){"use strict";function e(){}function n(t){return t()}function r(){return Object.create(null)}function o(t){t.forEach(n)}function l(t){return"function"==typeof t}function c(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function i(t,e,n,r){return t[1]&&r?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](r(e))):n.ctx}let s,a=!1;function u(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function f(t,e){if(a){for(function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let o=0;for(let t=0;t<e.length;t++){const l=e[t].claim_order,c=(o>0&&e[n[o]].claim_order<=l?o+1:u(1,o,(t=>e[n[t]].claim_order),l))-1;r[t]=n[c]+1;const i=c+1;n[i]=t,o=Math.max(i,o)}const l=[],c=[];let i=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(l.push(e[t-1]);i>=t;i--)c.push(e[i]);i--}for(;i>=0;i--)c.push(e[i]);l.reverse(),c.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<c.length;e++){for(;n<l.length&&c[e].claim_order>=l[n].claim_order;)n++;const r=n<l.length?l[n]:null;t.insertBefore(c[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function h(t,e,n){a&&!n?f(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function d(t){t.parentNode.removeChild(t)}function p(t){return document.createElement(t)}function m(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function v(t){return document.createTextNode(t)}function g(){return v(" ")}function $(){return v("")}function x(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function _(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function w(t){return Array.from(t.childNodes)}function b(t,e,n,r,o=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const l=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const l=t[r];if(e(l)){const e=n(l);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),l}}for(let r=t.claim_info.last_index-1;r>=0;r--){const l=t[r];if(e(l)){const e=n(l);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,l}}return r()})();return l.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,l}function E(t,e,n,r){return b(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function S(t,e,n){return E(t,e,n,p)}function y(t,e,n){return E(t,e,n,m)}function k(t,e){return b(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>v(e)),!0)}function M(t){return k(t," ")}function N(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function A(t){s=t}const C=[],V=[],I=[],P=[],H=Promise.resolve();let z=!1;function B(t){I.push(t)}let T=!1;const O=new Set;function j(){if(!T){T=!0;do{for(let t=0;t<C.length;t+=1){const e=C[t];A(e),D(e.$$)}for(A(null),C.length=0;V.length;)V.pop()();for(let t=0;t<I.length;t+=1){const e=I[t];O.has(e)||(O.add(e),e())}I.length=0}while(C.length);for(;P.length;)P.pop()();z=!1,T=!1,O.clear()}}function D(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(B)}}const L=new Set;function U(t,e){t&&t.i&&(L.delete(t),t.i(e))}function F(t,e,n,r){if(t&&t.o){if(L.has(t))return;L.add(t),(void 0).c.push((()=>{L.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function q(t,e){t.d(1),e.delete(t.key)}function R(t,e,n,r,o,l,c,i,s,a,u,f){let h=t.length,d=l.length,p=h;const m={};for(;p--;)m[t[p].key]=p;const v=[],g=new Map,$=new Map;for(p=d;p--;){const t=f(o,l,p),i=n(t);let s=c.get(i);s?r&&s.p(t,e):(s=a(i,t),s.c()),g.set(i,v[p]=s),i in m&&$.set(i,Math.abs(p-m[i]))}const x=new Set,_=new Set;function w(t){U(t,1),t.m(i,u),c.set(t.key,t),u=t.first,d--}for(;h&&d;){const e=v[d-1],n=t[h-1],r=e.key,o=n.key;e===n?(u=e.first,h--,d--):g.has(o)?!c.has(r)||x.has(r)?w(e):_.has(o)?h--:$.get(r)>$.get(o)?(_.add(r),w(e)):(x.add(o),h--):(s(n,c),h--)}for(;h--;){const e=t[h];g.has(e.key)||s(e,c)}for(;d;)w(v[d-1]);return v}function W(t){t&&t.c()}function G(t,e){t&&t.l(e)}function J(t,e,r,c){const{fragment:i,on_mount:s,on_destroy:a,after_update:u}=t.$$;i&&i.m(e,r),c||B((()=>{const e=s.map(n).filter(l);a?a.push(...e):o(e),t.$$.on_mount=[]})),u.forEach(B)}function K(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Q(t,n,l,c,i,u,f,h=[-1]){const p=s;A(t);const m=t.$$={fragment:null,ctx:null,props:u,update:e,not_equal:i,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(p?p.$$.context:[])),callbacks:r(),dirty:h,skip_bound:!1,root:n.target||p.$$.root};f&&f(m.root);let v=!1;if(m.ctx=l?l(t,n.props||{},((e,n,...r)=>{const o=r.length?r[0]:n;return m.ctx&&i(m.ctx[e],m.ctx[e]=o)&&(!m.skip_bound&&m.bound[e]&&m.bound[e](o),v&&function(t,e){-1===t.$$.dirty[0]&&(C.push(t),z||(z=!0,H.then(j)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],m.update(),v=!0,o(m.before_update),m.fragment=!!c&&c(m.ctx),n.target){if(n.hydrate){a=!0;const t=w(n.target);m.fragment&&m.fragment.l(t),t.forEach(d)}else m.fragment&&m.fragment.c();n.intro&&U(t.$$.fragment),J(t,n.target,n.anchor,n.customElement),a=!1,j()}A(p)}class X{$destroy(){K(this,1),this.$destroy=e}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function Y(t){let n,r;return{c(){n=p("a"),r=v("download CSV"),this.h()},l(t){n=S(t,"A",{target:!0,download:!0,href:!0});var e=w(n);r=k(e,"download CSV"),e.forEach(d),this.h()},h(){_(n,"target","_blank"),_(n,"download","output.csv"),_(n,"href",t[0])},m(t,e){h(t,n,e),f(n,r)},p(t,[e]){1&e&&_(n,"href",t[0])},i:e,o:e,d(t){t&&d(n)}}}function Z(t,e,n){let{data:r=[]}=e,o="";return t.$$set=t=>{"data"in t&&n(1,r=t.data)},t.$$.update=()=>{if(2&t.$$.dirty&&r.length>0){const[t,...e]=r;n(0,o="data:text/csv;charset=utf-8,"+encodeURI((t.map?t:Object.keys(t)).map((t=>`"${t}"`)).join(",")+"\n"+e.map((t=>(t.map?t:Object.values(t)).map((t=>`"${t}"`)).join(","))).join("\n")))}},[o,r]}function tt(t){let n,r,o,l,c,i,s,a,u=t[0][0].message+"";return{c(){n=p("div"),r=p("p"),o=p("i"),l=g(),c=p("span"),i=v(u),this.h()},l(t){n=S(t,"DIV",{class:!0});var e=w(n);r=S(e,"P",{"v-if":!0,class:!0});var s=w(r);o=S(s,"I",{class:!0,style:!0}),w(o).forEach(d),l=M(s),c=S(s,"SPAN",{});var a=w(c);i=k(a,u),a.forEach(d),s.forEach(d),e.forEach(d),this.h()},h(){_(o,"class","fas fa-lg fa-exclamation-triangle fill-current text-orange-500 mr-2"),o.style.setProperty("line-height","1",""),_(r,"v-if","notifications[0]"),_(r,"class","bg-white p-3 rounded-md shadow-lg mb-2 cursor-pointer flex max-w-sm"),_(n,"class","absolute bottom-0 left-0 flex-col p-3")},m(e,u){h(e,n,u),f(n,r),f(r,o),f(r,l),f(r,c),f(c,i),s||(a=x(r,"click",t[1]),s=!0)},p(t,[e]){1&e&&u!==(u=t[0][0].message+"")&&N(i,u)},i:e,o:e,d(t){t&&d(n),s=!1,a()}}}function et(t,e,n){let{notifications:r=[]}=e;return t.$$set=t=>{"notifications"in t&&n(0,r=t.notifications)},[r,()=>r.shift()]}function nt(t){let e,n;return{c(){e=m("svg"),n=m("path"),this.h()},l(t){e=y(t,"svg",{"aria-hidden":!0,focusable:!0,"data-prefix":!0,"data-icon":!0,class:!0,role:!0,xmlns:!0,viewBox:!0});var r=w(e);n=y(r,"path",{fill:!0,d:!0}),w(n).forEach(d),r.forEach(d),this.h()},h(){_(n,"fill","currentColor"),_(n,"d","M256 144C194.1 144 144 194.1 144 256c0 61.86 50.14 112 112 112s112-50.14 112-112C368 194.1 317.9 144 256 144zM256 320c-35.29 0-64-28.71-64-64c0-35.29 28.71-64 64-64s64 28.71 64 64C320 291.3 291.3 320 256 320zM256 112c13.25 0 24-10.75 24-24v-64C280 10.75 269.3 0 256 0S232 10.75 232 24v64C232 101.3 242.8 112 256 112zM256 400c-13.25 0-24 10.75-24 24v64C232 501.3 242.8 512 256 512s24-10.75 24-24v-64C280 410.8 269.3 400 256 400zM488 232h-64c-13.25 0-24 10.75-24 24s10.75 24 24 24h64C501.3 280 512 269.3 512 256S501.3 232 488 232zM112 256c0-13.25-10.75-24-24-24h-64C10.75 232 0 242.8 0 256s10.75 24 24 24h64C101.3 280 112 269.3 112 256zM391.8 357.8c-9.344-9.375-24.56-9.372-33.94 .0031s-9.375 24.56 0 33.93l45.25 45.28c4.672 4.688 10.83 7.031 16.97 7.031s12.28-2.344 16.97-7.031c9.375-9.375 9.375-24.56 0-33.94L391.8 357.8zM120.2 154.2c4.672 4.688 10.83 7.031 16.97 7.031S149.5 158.9 154.2 154.2c9.375-9.375 9.375-24.56 0-33.93L108.9 74.97c-9.344-9.375-24.56-9.375-33.94 0s-9.375 24.56 0 33.94L120.2 154.2zM374.8 161.2c6.141 0 12.3-2.344 16.97-7.031l45.25-45.28c9.375-9.375 9.375-24.56 0-33.94s-24.59-9.375-33.94 0l-45.25 45.28c-9.375 9.375-9.375 24.56 0 33.93C362.5 158.9 368.7 161.2 374.8 161.2zM120.2 357.8l-45.25 45.28c-9.375 9.375-9.375 24.56 0 33.94c4.688 4.688 10.83 7.031 16.97 7.031s12.3-2.344 16.97-7.031l45.25-45.28c9.375-9.375 9.375-24.56 0-33.93S129.6 348.4 120.2 357.8z"),_(e,"aria-hidden","true"),_(e,"focusable","false"),_(e,"data-prefix","far"),_(e,"data-icon","sun"),_(e,"class","svg-inline--fa fa-sun fa-w-16"),_(e,"role","img"),_(e,"xmlns","http://www.w3.org/2000/svg"),_(e,"viewBox","0 0 512 512")},m(t,r){h(t,e,r),f(e,n)},d(t){t&&d(e)}}}function rt(t){let e,n;return{c(){e=m("svg"),n=m("path"),this.h()},l(t){e=y(t,"svg",{"aria-hidden":!0,focusable:!0,"data-prefix":!0,"data-icon":!0,class:!0,role:!0,xmlns:!0,viewBox:!0});var r=w(e);n=y(r,"path",{fill:!0,d:!0}),w(n).forEach(d),r.forEach(d),this.h()},h(){_(n,"fill","currentColor"),_(n,"d","M279.135 512c78.756 0 150.982-35.804 198.844-94.775 28.27-34.831-2.558-85.722-46.249-77.401-82.348 15.683-158.272-47.268-158.272-130.792 0-48.424 26.06-92.292 67.434-115.836 38.745-22.05 28.999-80.788-15.022-88.919A257.936 257.936 0 0 0 279.135 0c-141.36 0-256 114.575-256 256 0 141.36 114.576 256 256 256zm0-464c12.985 0 25.689 1.201 38.016 3.478-54.76 31.163-91.693 90.042-91.693 157.554 0 113.848 103.641 199.2 215.252 177.944C402.574 433.964 344.366 464 279.135 464c-114.875 0-208-93.125-208-208s93.125-208 208-208z"),_(e,"aria-hidden","true"),_(e,"focusable","false"),_(e,"data-prefix","far"),_(e,"data-icon","moon"),_(e,"class","svg-inline--fa fa-moon fa-w-16"),_(e,"role","img"),_(e,"xmlns","http://www.w3.org/2000/svg"),_(e,"viewBox","0 0 512 512")},m(t,r){h(t,e,r),f(e,n)},d(t){t&&d(e)}}}function ot(t){let n,r,o;function l(t,e){return t[0]?rt:nt}let c=l(t),i=c(t);return{c(){n=p("div"),i.c(),this.h()},l(t){n=S(t,"DIV",{class:!0});var e=w(n);i.l(e),e.forEach(d),this.h()},h(){_(n,"class","absolute top-0 right-0 w-8 h-8 p-2")},m(e,l){h(e,n,l),i.m(n,null),r||(o=x(n,"click",t[1]),r=!0)},p(t,[e]){c!==(c=l(t))&&(i.d(1),i=c(t),i&&(i.c(),i.m(n,null)))},i:e,o:e,d(t){t&&d(n),i.d(),r=!1,o()}}}const lt="themePreference";function ct(t,e,n){let r=!1;function o(t){n(0,r=t),document.documentElement.classList.toggle("dark",r)}return function(t){(function(){if(!s)throw new Error("Function called outside component initialization");return s})().$$.on_mount.push(t)}((()=>{const t=window.localStorage.getItem(lt);("dark"===t||null==t&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&o(!0)})),[r,function(){o(!r),window.localStorage.setItem(lt,r?"dark":"light")}]}function it(t){let n,r;return{c(){n=p("button"),r=v("Click Me")},l(t){n=S(t,"BUTTON",{});var e=w(n);r=k(e,"Click Me"),e.forEach(d)},m(t,e){h(t,n,e),f(n,r)},p:e,i:e,o:e,d(t){t&&d(n)}}}class st extends X{constructor(t){super(),Q(this,t,null,it,c,{})}}function at(t,e,n){const r=t.slice();return r[2]=e[n].label,r[3]=e[n].onclick,r}function ut(t,e,n){const r=t.slice();return r[2]=e[n].label,r[3]=e[n].onclick,r}function ft(t,e){let n,r,o,c,i,s,a=e[2]+"";return{key:t,first:null,c(){n=p("span"),r=p("button"),o=v(a),c=g(),this.h()},l(t){n=S(t,"SPAN",{class:!0});var e=w(n);r=S(e,"BUTTON",{class:!0});var l=w(r);o=k(l,a),l.forEach(d),c=M(e),e.forEach(d),this.h()},h(){_(r,"class","minor-button"),_(n,"class","px-1"),this.first=n},m(t,a){h(t,n,a),f(n,r),f(r,o),f(n,c),i||(s=x(r,"click",(function(){l(e[3])&&e[3].apply(this,arguments)})),i=!0)},p(t,n){e=t,1&n&&a!==(a=e[2]+"")&&N(o,a)},d(t){t&&d(n),i=!1,s()}}}function ht(t,e){let n,r,o,c,i,s,a=e[2]+"";return{key:t,first:null,c(){n=p("span"),r=p("button"),o=v(a),c=g(),this.h()},l(t){n=S(t,"SPAN",{class:!0});var e=w(n);r=S(e,"BUTTON",{class:!0});var l=w(r);o=k(l,a),l.forEach(d),c=M(e),e.forEach(d),this.h()},h(){_(r,"class","minor-button"),_(n,"class","px-1"),this.first=n},m(t,a){h(t,n,a),f(n,r),f(r,o),f(n,c),i||(s=x(r,"click",(function(){l(e[3])&&e[3].apply(this,arguments)})),i=!0)},p(t,n){e=t,2&n&&a!==(a=e[2]+"")&&N(o,a)},d(t){t&&d(n),i=!1,s()}}}function dt(t){let n,r,o,l,c=[],i=new Map,s=[],a=new Map,u=t[0];const m=t=>t[2];for(let e=0;e<u.length;e+=1){let n=ut(t,u,e),r=m(n);i.set(r,c[e]=ft(r,n))}let v=t[1];const $=t=>t[2];for(let e=0;e<v.length;e+=1){let n=at(t,v,e),r=$(n);a.set(r,s[e]=ht(r,n))}return{c(){n=p("nav"),r=p("div");for(let t=0;t<c.length;t+=1)c[t].c();o=g(),l=p("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){n=S(t,"NAV",{class:!0});var e=w(n);r=S(e,"DIV",{class:!0});var i=w(r);for(let t=0;t<c.length;t+=1)c[t].l(i);i.forEach(d),o=M(e),l=S(e,"DIV",{});var a=w(l);for(let t=0;t<s.length;t+=1)s[t].l(a);a.forEach(d),e.forEach(d),this.h()},h(){_(r,"class","flex-1"),_(n,"class","flex -mx-1 mb-2")},m(t,e){h(t,n,e),f(n,r);for(let t=0;t<c.length;t+=1)c[t].m(r,null);f(n,o),f(n,l);for(let t=0;t<s.length;t+=1)s[t].m(l,null)},p(t,[e]){1&e&&(u=t[0],c=R(c,e,m,1,t,u,i,r,q,ft,null,ut)),2&e&&(v=t[1],s=R(s,e,$,1,t,v,a,l,q,ht,null,at))},i:e,o:e,d(t){t&&d(n);for(let t=0;t<c.length;t+=1)c[t].d();for(let t=0;t<s.length;t+=1)s[t].d()}}}function pt(t,e,n){let{start:r=[]}=e,{end:o=[]}=e;return t.$$set=t=>{"start"in t&&n(0,r=t.start),"end"in t&&n(1,o=t.end)},[r,o]}function mt(t){let e,n,r,o,l,c,i;return{c(){e=p("aside"),n=p("h1"),r=v("Favorites"),o=g(),l=p("ul"),c=p("li"),i=v("item"),this.h()},l(t){e=S(t,"ASIDE",{id:!0,class:!0});var s=w(e);n=S(s,"H1",{class:!0});var a=w(n);r=k(a,"Favorites"),a.forEach(d),o=M(s),l=S(s,"UL",{id:!0,class:!0});var u=w(l);c=S(u,"LI",{"v-for":!0,class:!0});var f=w(c);i=k(f,"item"),f.forEach(d),u.forEach(d),s.forEach(d),this.h()},h(){_(n,"class","pl-3 w-full font-semibold"),_(c,"v-for","(fav, i) in favorites"),_(c,"class","hover:bg-white hover:shadow-sm rounded-md mb-2 p-3 cursor-pointer focus:outline-none focus:shadow-outline group"),_(l,"id","favorites"),_(l,"class","font-sm flex w-full flex-col-reverse mb-3"),_(e,"id","sidebar"),_(e,"class","bg-gray-300 w-screen max-w-sm h-full flex flex-col items-center pt-3 px-3 min-h-0 overflow-auto min-w-0 border-l text-gra-900")},m(t,s){h(t,e,s),f(e,n),f(n,r),f(e,o),f(e,l),f(l,c),f(c,i)},d(t){t&&d(e)}}}function vt(t){let n,r=!t[0]&&mt();return{c(){r&&r.c(),n=$()},l(t){r&&r.l(t),n=$()},m(t,e){r&&r.m(t,e),h(t,n,e)},p(t,[e]){t[0]?r&&(r.d(1),r=null):r||(r=mt(),r.c(),r.m(n.parentNode,n))},i:e,o:e,d(t){r&&r.d(t),t&&d(n)}}}function gt(t,e,n){let{hidden:r=!1}=e;return t.$$set=t=>{"hidden"in t&&n(0,r=t.hidden)},[r]}function $t(t){let e,n,r;const o=t[2].default,l=function(t,e,n,r){if(t){const r=i(t,e,n,null);return t[0](r)}}(o,t,t[1]);return{c(){e=p("div"),l&&l.c(),this.h()},l(t){e=S(t,"DIV",{class:!0});var n=w(e);l&&l.l(n),n.forEach(d),this.h()},h(){_(e,"class",n="flex "+(t[0]?"flex-col-reverse":"flex-col"))},m(t,n){h(t,e,n),l&&l.m(e,null),r=!0},p(t,[c]){l&&l.p&&(!r||2&c)&&function(t,e,n,r,o,l){if(o){const l=i(e,n,r,null);t.p(l,o)}}(l,o,t,t[1],r?function(t,e,n,r){return t[2],e.dirty}(o,t[1]):function(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}(t[1])),(!r||1&c&&n!==(n="flex "+(t[0]?"flex-col-reverse":"flex-col")))&&_(e,"class",n)},i(t){r||(U(l,t),r=!0)},o(t){F(l,t),r=!1},d(t){t&&d(e),l&&l.d(t)}}}function xt(t,e,n){let{$$slots:r={},$$scope:o}=e,{reverse:l=!1}=e;return t.$$set=t=>{"reverse"in t&&n(0,l=t.reverse),"$$scope"in t&&n(1,o=t.$$scope)},[l,o,r]}class _t extends X{constructor(t){super(),Q(this,t,xt,$t,c,{reverse:0})}}function wt(t){let e,n,r,o,l,c,i,s;return{c(){e=p("p"),n=v("Slot 1"),r=g(),o=p("p"),l=v("Slot 2"),c=g(),i=p("p"),s=v("Slot 3")},l(t){e=S(t,"P",{});var a=w(e);n=k(a,"Slot 1"),a.forEach(d),r=M(t),o=S(t,"P",{});var u=w(o);l=k(u,"Slot 2"),u.forEach(d),c=M(t),i=S(t,"P",{});var f=w(i);s=k(f,"Slot 3"),f.forEach(d)},m(t,a){h(t,e,a),f(e,n),h(t,r,a),h(t,o,a),f(o,l),h(t,c,a),h(t,i,a),f(i,s)},d(t){t&&d(e),t&&d(r),t&&d(o),t&&d(c),t&&d(i)}}}function bt(t){let e,n;return e=new _t({props:{reverse:t[0],$$slots:{default:[wt]},$$scope:{ctx:t}}}),{c(){W(e.$$.fragment)},l(t){G(e.$$.fragment,t)},m(t,r){J(e,t,r),n=!0},p(t,[n]){const r={};1&n&&(r.reverse=t[0]),2&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(U(e.$$.fragment,t),n=!0)},o(t){F(e.$$.fragment,t),n=!1},d(t){K(e,t)}}}function Et(t,e,n){let{reverse:r=!0}=e;return t.$$set=t=>{"reverse"in t&&n(0,r=t.reverse)},[r]}function St(t){let n,r,o,l,c,i,s,a,u,m,$;return{c(){n=p("main"),r=p("h1"),o=v("Hello "),l=v(yt),c=v("!"),i=g(),s=p("p"),a=v("Visit the "),u=p("a"),m=v("Svelte tutorial"),$=v(" to learn how to build Svelte apps."),this.h()},l(t){n=S(t,"MAIN",{});var e=w(n);r=S(e,"H1",{});var f=w(r);o=k(f,"Hello "),l=k(f,yt),c=k(f,"!"),f.forEach(d),i=M(e),s=S(e,"P",{});var h=w(s);a=k(h,"Visit the "),u=S(h,"A",{href:!0});var p=w(u);m=k(p,"Svelte tutorial"),p.forEach(d),$=k(h," to learn how to build Svelte apps."),h.forEach(d),e.forEach(d),this.h()},h(){_(u,"href","https://svelte.dev/tutorial")},m(t,e){h(t,n,e),f(n,r),f(r,o),f(r,l),f(r,c),f(n,i),f(n,s),f(s,a),f(s,u),f(u,m),f(s,$)},p:e,i:e,o:e,d(t){t&&d(n)}}}let yt="world";function kt(t){return[]}function Mt(t){let n,r,o,l,c,i,s,a,u,m,$,x,b,E;return b=new st({}),{c(){n=p("main"),r=p("h1"),o=v("Hello "),l=v(Nt),c=v("!"),i=g(),s=p("p"),a=v("Visit the "),u=p("a"),m=v("Svelte tutorial"),$=v(" to learn how to build Svelte apps."),x=g(),W(b.$$.fragment),this.h()},l(t){n=S(t,"MAIN",{});var e=w(n);r=S(e,"H1",{});var f=w(r);o=k(f,"Hello "),l=k(f,Nt),c=k(f,"!"),f.forEach(d),i=M(e),s=S(e,"P",{});var h=w(s);a=k(h,"Visit the "),u=S(h,"A",{href:!0});var p=w(u);m=k(p,"Svelte tutorial"),p.forEach(d),$=k(h," to learn how to build Svelte apps."),h.forEach(d),x=M(e),G(b.$$.fragment,e),e.forEach(d),this.h()},h(){_(u,"href","https://svelte.dev/tutorial")},m(t,e){h(t,n,e),f(n,r),f(r,o),f(r,l),f(r,c),f(n,i),f(n,s),f(s,a),f(s,u),f(u,m),f(s,$),f(n,x),J(b,n,null),E=!0},p:e,i(t){E||(U(b.$$.fragment,t),E=!0)},o(t){F(b.$$.fragment,t),E=!1},d(t){t&&d(n),K(b)}}}let Nt="world";function At(t){let n,r,o,l,c,i,s,a,u,m,$;return{c(){n=p("main"),r=p("h1"),o=v("Hello "),l=v(Ct),c=v("!"),i=g(),s=p("p"),a=v("Visit the "),u=p("a"),m=v("Svelte tutorial"),$=v(" to learn how to build Svelte apps."),this.h()},l(t){n=S(t,"MAIN",{});var e=w(n);r=S(e,"H1",{});var f=w(r);o=k(f,"Hello "),l=k(f,Ct),c=k(f,"!"),f.forEach(d),i=M(e),s=S(e,"P",{});var h=w(s);a=k(h,"Visit the "),u=S(h,"A",{href:!0});var p=w(u);m=k(p,"Svelte tutorial"),p.forEach(d),$=k(h," to learn how to build Svelte apps."),h.forEach(d),e.forEach(d),this.h()},h(){_(u,"href","https://svelte.dev/tutorial")},m(t,e){h(t,n,e),f(n,r),f(r,o),f(r,l),f(r,c),f(n,i),f(n,s),f(s,a),f(s,u),f(u,m),f(s,$)},p:e,i:e,o:e,d(t){t&&d(n)}}}let Ct="world";function Vt(t){return[]}function It(t){let n,r,o,l,c,i,s,a,u,m,$;return{c(){n=p("main"),r=p("h1"),o=v("Hello "),l=v(Pt),c=v("!"),i=g(),s=p("p"),a=v("Visit the "),u=p("a"),m=v("Svelte tutorial"),$=v(" to learn how to build Svelte apps."),this.h()},l(t){n=S(t,"MAIN",{});var e=w(n);r=S(e,"H1",{});var f=w(r);o=k(f,"Hello "),l=k(f,Pt),c=k(f,"!"),f.forEach(d),i=M(e),s=S(e,"P",{});var h=w(s);a=k(h,"Visit the "),u=S(h,"A",{href:!0});var p=w(u);m=k(p,"Svelte tutorial"),p.forEach(d),$=k(h," to learn how to build Svelte apps."),h.forEach(d),e.forEach(d),this.h()},h(){_(u,"href","https://svelte.dev/tutorial")},m(t,e){h(t,n,e),f(n,r),f(r,o),f(r,l),f(r,c),f(n,i),f(n,s),f(s,a),f(s,u),f(u,m),f(s,$)},p:e,i:e,o:e,d(t){t&&d(n)}}}let Pt="world";function Ht(t){return[]}return t.Button=st,t.CSVExport=class extends X{constructor(t){super(),Q(this,t,Z,Y,c,{data:1})}},t.Devtools=class extends X{constructor(t){super(),Q(this,t,kt,St,c,{})}},t.ModeSwitcher=class extends X{constructor(t){super(),Q(this,t,ct,ot,c,{})}},t.Navbar=class extends X{constructor(t){super(),Q(this,t,pt,dt,c,{start:0,end:1})}},t.NewTab=class extends X{constructor(t){super(),Q(this,t,null,Mt,c,{})}},t.Notification=class extends X{constructor(t){super(),Q(this,t,et,tt,c,{notifications:0})}},t.Options=class extends X{constructor(t){super(),Q(this,t,Vt,At,c,{})}},t.Popup=class extends X{constructor(t){super(),Q(this,t,Ht,It,c,{})}},t.Sidebar=class extends X{constructor(t){super(),Q(this,t,gt,vt,c,{hidden:0})}},t.Stack=_t,t.StackView=class extends X{constructor(t){super(),Q(this,t,Et,bt,c,{reverse:0})}},Object.defineProperty(t,"__esModule",{value:!0}),t}({});
//# sourceMappingURL=index.min.js.map