wuffle 0.44.2 → 0.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/public/bundle.js CHANGED
@@ -1,2 +1,2 @@
1
- var app=function(){"use strict";function e(e,t){var n,r,o,l;function s(n){var s=Date.now(),a=n?0:l+t-s;if(a>0)return i(a);e.apply(o,r),c()}function i(e){n=setTimeout(s,e)}function c(){n&&clearTimeout(n),n=l=r=o=void 0}function a(){l=Date.now();for(var e=arguments.length,s=new Array(e),c=0;c<e;c++)s[c]=arguments[c];r=s,o=this,n||i(t)}return a.flush=function(){n&&s(!0),c()},a.cancel=c,a}function t(){}const n=e=>e;function r(e){return e()}function o(){return Object.create(null)}function l(e){e.forEach(r)}function s(e){return"function"==typeof e}let i;function c(e,t){return i||(i=document.createElement("a")),i.href=t,e===i.href}function a(e,t){return e!=e?t==t:e!==t}function u(e,t,n,r){if(e){const o=d(e,t,n,r);return e[0](o)}}function d(e,t,n,r){return e[1]&&r?function(e,t){for(const n in t)e[n]=t[n];return e}(n.ctx.slice(),e[1](r(t))):n.ctx}function f(e,t,n,r){if(e[2]&&r){const o=e[2](r(n));if(void 0===t.dirty)return o;if("object"==typeof o){const e=[],n=Math.max(t.dirty.length,o.length);for(let r=0;r<n;r+=1)e[r]=t.dirty[r]|o[r];return e}return t.dirty|o}return t.dirty}function m(e,t,n,r,o,l){if(o){const s=d(t,n,r,l);e.p(s,o)}}function p(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let e=0;e<n;e++)t[e]=-1;return t}return-1}function h(e){return null==e?"":e}const g="undefined"!=typeof window;let v=g?()=>window.performance.now():()=>Date.now(),$=g?e=>requestAnimationFrame(e):t;const w=new Set;function y(e){w.forEach((t=>{t.c(e)||(w.delete(t),t.f())})),0!==w.size&&$(y)}function b(e,t){e.appendChild(t)}function k(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function x(e){const t=S("style");return function(e,t){b(e.head||e,t)}(k(e),t),t}function C(e,t,n){e.insertBefore(t,n||null)}function E(e){e.parentNode.removeChild(e)}function _(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function S(e){return document.createElement(e)}function D(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function q(e){return document.createTextNode(e)}function H(){return q(" ")}function N(){return q("")}function O(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function L(e){return function(t){return t.preventDefault(),e.call(this,t)}}function z(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function B(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function M(e,t){e.value=null==t?"":t}function F(e,t,n,r){e.style.setProperty(t,n,r?"important":"")}function T(e,t,n){e.classList[n?"add":"remove"](t)}const R=new Set;let A,I=0;function P(e,t,n,r,o,l,s,i=0){const c=16.666/r;let a="{\n";for(let e=0;e<=1;e+=c){const r=t+(n-t)*l(e);a+=100*e+`%{${s(r,1-r)}}\n`}const u=a+`100% {${s(n,1-n)}}\n}`,d=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(u)}_${i}`,f=k(e);R.add(f);const m=f.__svelte_stylesheet||(f.__svelte_stylesheet=x(e).sheet),p=f.__svelte_rules||(f.__svelte_rules={});p[d]||(p[d]=!0,m.insertRule(`@keyframes ${d} ${u}`,m.cssRules.length));const h=e.style.animation||"";return e.style.animation=`${h?`${h}, `:""}${d} ${r}ms linear ${o}ms 1 both`,I+=1,d}function V(e,t){const n=(e.style.animation||"").split(", "),r=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),o=n.length-r.length;o&&(e.style.animation=r.join(", "),I-=o,I||$((()=>{I||(R.forEach((e=>{const t=e.__svelte_stylesheet;let n=t.cssRules.length;for(;n--;)t.deleteRule(n);e.__svelte_rules={}})),R.clear())})))}function Y(e){A=e}function U(e){(function(){if(!A)throw new Error("Function called outside component initialization");return A})().$$.on_mount.push(e)}const j=[],K=[],X=[],W=[],G=Promise.resolve();let J=!1;function Q(e){X.push(e)}let Z=!1;const ee=new Set;function te(){if(!Z){Z=!0;do{for(let e=0;e<j.length;e+=1){const t=j[e];Y(t),ne(t.$$)}for(Y(null),j.length=0;K.length;)K.pop()();for(let e=0;e<X.length;e+=1){const t=X[e];ee.has(t)||(ee.add(t),t())}X.length=0}while(j.length);for(;W.length;)W.pop()();J=!1,Z=!1,ee.clear()}}function ne(e){if(null!==e.fragment){e.update(),l(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Q)}}let re;function oe(e,t,n){e.dispatchEvent(function(e,t,n=!1){const r=document.createEvent("CustomEvent");return r.initCustomEvent(e,n,!1,t),r}(`${t?"intro":"outro"}${n}`))}const le=new Set;let se;function ie(){se={r:0,c:[],p:se}}function ce(){se.r||l(se.c),se=se.p}function ae(e,t){e&&e.i&&(le.delete(e),e.i(t))}function ue(e,t,n,r){if(e&&e.o){if(le.has(e))return;le.add(e),se.c.push((()=>{le.delete(e),r&&(n&&e.d(1),r())})),e.o(t)}}const de={duration:0};function fe(e,r,o,i){let c=r(e,o),a=i?0:1,u=null,d=null,f=null;function m(){f&&V(e,f)}function p(e,t){const n=e.b-a;return t*=Math.abs(n),{a:a,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function h(r){const{delay:o=0,duration:s=300,easing:i=n,tick:h=t,css:g}=c||de,b={start:v()+o,b:r};r||(b.group=se,se.r+=1),u||d?d=b:(g&&(m(),f=P(e,a,r,s,o,i,g)),r&&h(0,1),u=p(b,s),Q((()=>oe(e,r,"start"))),function(e){let t;0===w.size&&$(y),new Promise((n=>{w.add(t={c:e,f:n})}))}((t=>{if(d&&t>d.start&&(u=p(d,s),d=null,oe(e,u.b,"start"),g&&(m(),f=P(e,a,u.b,u.duration,0,i,c.css))),u)if(t>=u.end)h(a=u.b,1-a),oe(e,u.b,"end"),d||(u.b?m():--u.group.r||l(u.group.c)),u=null;else if(t>=u.start){const e=t-u.start;a=u.a+u.d*i(e/u.duration),h(a,1-a)}return!(!u&&!d)})))}return{run(e){s(c)?(re||(re=Promise.resolve(),re.then((()=>{re=null}))),re).then((()=>{c=c(),h(e)})):h(e)},end(){m(),u=d=null}}}const me="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function pe(e,t){ue(e,1,1,(()=>{t.delete(e.key)}))}function he(e){e&&e.c()}function ge(e,t,n,o){const{fragment:i,on_mount:c,on_destroy:a,after_update:u}=e.$$;i&&i.m(t,n),o||Q((()=>{const t=c.map(r).filter(s);a?a.push(...t):l(t),e.$$.on_mount=[]})),u.forEach(Q)}function ve(e,t){const n=e.$$;null!==n.fragment&&(l(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function $e(e,t){-1===e.$$.dirty[0]&&(j.push(e),J||(J=!0,G.then(te)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function we(e,n,r,s,i,c,a,u=[-1]){const d=A;Y(e);const f=e.$$={fragment:null,ctx:null,props:c,update:t,not_equal:i,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:o(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};a&&a(f.root);let m=!1;if(f.ctx=r?r(e,n.props||{},((t,n,...r)=>{const o=r.length?r[0]:n;return f.ctx&&i(f.ctx[t],f.ctx[t]=o)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](o),m&&$e(e,t)),n})):[],f.update(),m=!0,l(f.before_update),f.fragment=!!s&&s(f.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);f.fragment&&f.fragment.l(e),e.forEach(E)}else f.fragment&&f.fragment.c();n.intro&&ae(e.$$.fragment),ge(e,n.target,n.anchor,n.customElement),te()}Y(d)}class ye{$destroy(){ve(this,1),this.$destroy=t}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}let be=0;function ke(){return"_el_"+be++}class xe{get(e,t){try{const t=window.localStorage.getItem(e);if(t)return JSON.parse(t)}catch(t){console.warn("LocalStore: Failed to retrieve %s",e,t)}return t}set(e,t){try{window.localStorage.setItem(e,JSON.stringify(t))}catch(t){console.warn("LocalStore: Failed to set %s",e,t)}}}class Ce{get(e,t){return t}set(e,t){}}class Ee{push(e){window.history.pushState(null,null,e)}onPop(e){return window.addEventListener("popstate",e),function(){window.removeEventListener("popstate",e)}}}class _e{push(e){}onPop(e){return function(){}}}function Se(e,t){let n,r=!1,o=t;return function l(){Promise.resolve({}).then((()=>e())).then((e=>!0),(e=>!1)).then((e=>{o=!1===e?1.5*o:t,r||(n=setTimeout(l,o))}))}(),function(){r=!0,clearTimeout(n)}}function De(e){return"open"===e.state}function qe(e){return e.merged}function He(e){return e.pull_request}function Ne(e,t,n){const r=e.slice();return r[10]=t[n],r[12]=n,r}function Oe(e,t,n){const r=e.slice();return r[13]=t[n],r}function Le(e){let t,n,r,o=e[10].parts,s=[];for(let t=0;t<o.length;t+=1)s[t]=ze(Oe(e,o,t));function i(){return e[7](e[10])}function c(){return e[8](e[10])}function a(...t){return e[9](e[10],...t)}return{c(){t=S("li");for(let e=0;e<s.length;e+=1)s[e].c();z(t,"class","selectable svelte-r39x99"),T(t,"active",e[2]&&e[2].name===e[10].name)},m(e,o){C(e,t,o);for(let e=0;e<s.length;e+=1)s[e].m(t,null);n||(r=[O(t,"mouseover",i),O(t,"mouseout",c),O(t,"mousedown",L(a))],n=!0)},p(n,r){if(e=n,2&r){let n;for(o=e[10].parts,n=0;n<o.length;n+=1){const l=Oe(e,o,n);s[n]?s[n].p(l,r):(s[n]=ze(l),s[n].c(),s[n].m(t,null))}for(;n<s.length;n+=1)s[n].d(1);s.length=o.length}6&r&&T(t,"active",e[2]&&e[2].name===e[10].name)},d(e){e&&E(t),_(s,e),n=!1,l(r)}}}function ze(e){let t,n,r=e[13].text+"";return{c(){t=S("span"),n=q(r),z(t,"class","svelte-r39x99"),T(t,"matched",e[13].matched)},m(e,r){C(e,t,r),b(t,n)},p(e,o){2&o&&r!==(r=e[13].text+"")&&B(n,r),2&o&&T(t,"matched",e[13].matched)},d(e){e&&E(t)}}}function Be(e){let t,n=(e[12]<e[6]||e[2]&&e[2].name===e[10].name)&&Le(e);return{c(){n&&n.c(),t=N()},m(e,r){n&&n.m(e,r),C(e,t,r)},p(e,r){e[12]<e[6]||e[2]&&e[2].name===e[10].name?n?n.p(e,r):(n=Le(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&E(t)}}}function Me(e){let t;return{c(){t=S("li"),t.textContent="...",z(t,"class","text svelte-r39x99")},m(e,n){C(e,t,n)},d(e){e&&E(t)}}}function Fe(e){let n,r,o,l=e[1],s=[];for(let t=0;t<l.length;t+=1)s[t]=Be(Ne(e,l,t));let i=e[1].length>e[6]&&Me();return{c(){n=S("ul");for(let e=0;e<s.length;e+=1)s[e].c();r=H(),i&&i.c(),z(n,"class",o=h(e[0])+" svelte-r39x99")},m(e,t){C(e,n,t);for(let e=0;e<s.length;e+=1)s[e].m(n,null);b(n,r),i&&i.m(n,null)},p(e,[t]){if(126&t){let o;for(l=e[1],o=0;o<l.length;o+=1){const i=Ne(e,l,o);s[o]?s[o].p(i,t):(s[o]=Be(i),s[o].c(),s[o].m(n,r))}for(;o<s.length;o+=1)s[o].d(1);s.length=l.length}e[1].length>e[6]?i||(i=Me(),i.c(),i.m(n,null)):i&&(i.d(1),i=null),1&t&&o!==(o=h(e[0])+" svelte-r39x99")&&z(n,"class",o)},i:t,o:t,d(e){e&&E(n),_(s,e),i&&i.d()}}}function Te(e,t,n){let{class:r=""}=t,{hints:o}=t,{selectedHint:l}=t,{onHover:s}=t,{onBlur:i}=t,{onSelect:c}=t,{maxElements:a}=t;return e.$$set=e=>{"class"in e&&n(0,r=e.class),"hints"in e&&n(1,o=e.hints),"selectedHint"in e&&n(2,l=e.selectedHint),"onHover"in e&&n(3,s=e.onHover),"onBlur"in e&&n(4,i=e.onBlur),"onSelect"in e&&n(5,c=e.onSelect),"maxElements"in e&&n(6,a=e.maxElements)},[r,o,l,s,i,c,a,e=>s(e),e=>i(e),(e,t)=>c(e)]}class Re extends ye{constructor(e){super(),we(this,e,Te,Fe,a,{class:0,hints:1,selectedHint:2,onHover:3,onBlur:4,onSelect:5,maxElements:6})}}function Ae(e){const{ctrlKey:t,shiftKey:n,altKey:r,metaKey:o}=e;return t||r||n||o}function Ie(e){return e.target===document.body}function Pe(e){const{shiftKey:t,altKey:n}=e;return t||n}function Ve(e){const{shiftKey:t}=e;return t}function Ye(e,t,n){const r=e.slice();return r[34]=t[n],r[36]=n,r}function Ue(e){let n;return{c(){n=S("div"),n.innerHTML='<p class="note svelte-1bk05k0">Filter cards by title and description.</p> \n\n <p class="note svelte-1bk05k0">Refine your search with operators: <em class="svelte-1bk05k0">created</em>, <em class="svelte-1bk05k0">updated</em>, <em class="svelte-1bk05k0">milestone</em>, <em class="svelte-1bk05k0">repo</em>, <em class="svelte-1bk05k0">assignee</em>, <em class="svelte-1bk05k0">label</em> and <em class="svelte-1bk05k0">is</em>.</p>',z(n,"class","help-dropdown svelte-1bk05k0")},m(e,t){C(e,n,t)},p:t,i:t,o:t,d(e){e&&E(n)}}}function je(e){let t,n,r=e[6].categories,o=[];for(let t=0;t<r.length;t+=1)o[t]=Ke(Ye(e,r,t));const l=e=>ue(o[e],1,1,(()=>{o[e]=null}));return{c(){t=S("div");for(let e=0;e<o.length;e+=1)o[e].c();z(t,"class","help-dropdown svelte-1bk05k0")},m(e,r){C(e,t,r);for(let e=0;e<o.length;e+=1)o[e].m(t,null);n=!0},p(e,n){if(1352&n[0]){let s;for(r=e[6].categories,s=0;s<r.length;s+=1){const l=Ye(e,r,s);o[s]?(o[s].p(l,n),ae(o[s],1)):(o[s]=Ke(l),o[s].c(),ae(o[s],1),o[s].m(t,null))}for(ie(),s=r.length;s<o.length;s+=1)l(s);ce()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)ae(o[e]);n=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)ue(o[e]);n=!1},d(e){e&&E(t),_(o,e)}}}function Ke(e){let t,n,r,o,l,s,i=e[34].name+"",c=e[36]>0&&function(e){let t;return{c(){t=S("hr")},m(e,n){C(e,t,n)},d(e){e&&E(t)}}}();return l=new Re({props:{hints:e[34].values,selectedHint:e[8],onHover:e[25],onBlur:e[26],onSelect:e[10],maxElements:7}}),{c(){c&&c.c(),t=H(),n=S("div"),r=q(i),o=H(),he(l.$$.fragment),z(n,"class","category svelte-1bk05k0")},m(e,i){c&&c.m(e,i),C(e,t,i),C(e,n,i),b(n,r),C(e,o,i),ge(l,e,i),s=!0},p(e,t){(!s||64&t[0])&&i!==(i=e[34].name+"")&&B(r,i);const n={};64&t[0]&&(n.hints=e[34].values),256&t[0]&&(n.selectedHint=e[8]),8&t[0]&&(n.onHover=e[25]),8&t[0]&&(n.onBlur=e[26]),l.$set(n)},i(e){s||(ae(l.$$.fragment,e),s=!0)},o(e){ue(l.$$.fragment,e),s=!1},d(e){c&&c.d(e),e&&E(t),e&&E(n),e&&E(o),ve(l,e)}}}function Xe(e){let t,n,r,o,s,i,c,a,u,d;const f=[je,Ue],m=[];function p(e,t){return e[0]&&e[6]?0:e[4]&&!e[0]?1:-1}return~(s=p(e))&&(i=m[s]=f[s](e)),{c(){t=S("div"),n=S("input"),o=H(),i&&i.c(),z(n,"class","form-control svelte-1bk05k0"),z(n,"type","search"),z(n,"placeholder",e[2]),z(n,"id",e[9]),z(n,"autocomplete","off"),z(n,"spellcheck","false"),z(n,"aria-label",e[2]),z(n,"title",r=e[2]+" (f)"),z(t,"class",c="board-filter "+e[1]+" dropdown-parent "+(e[7]&&"expanded")+" svelte-1bk05k0")},m(r,l){C(r,t,l),b(t,n),e[21](n),M(n,e[0]),b(t,o),~s&&m[s].m(t,null),a=!0,u||(d=[O(window,"keydown",e[13]),O(n,"input",e[22]),O(n,"input",e[11]),O(n,"keydown",e[12]),O(n,"focus",e[23]),O(n,"blur",e[24])],u=!0)},p(e,o){(!a||4&o[0])&&z(n,"placeholder",e[2]),(!a||4&o[0])&&z(n,"aria-label",e[2]),(!a||4&o[0]&&r!==(r=e[2]+" (f)"))&&z(n,"title",r),1&o[0]&&M(n,e[0]);let l=s;s=p(e),s===l?~s&&m[s].p(e,o):(i&&(ie(),ue(m[l],1,1,(()=>{m[l]=null})),ce()),~s?(i=m[s],i?i.p(e,o):(i=m[s]=f[s](e),i.c()),ae(i,1),i.m(t,null)):i=null),(!a||130&o[0]&&c!==(c="board-filter "+e[1]+" dropdown-parent "+(e[7]&&"expanded")+" svelte-1bk05k0"))&&z(t,"class",c)},i(e){a||(ae(i),a=!0)},o(e){ue(i),a=!1},d(n){n&&E(t),e[21](null),~s&&m[s].d(),u=!1,l(d)}}}function We(t,n,r){let o,l,s,i,{class:c=""}=n,{value:a=""}=n,{placeholder:u}=n,{completionOptions:d={}}=n,{onChange:f}=n,m=[["today",Date.now()],["last week",Date.now()-6048e5],["last month",Date.now()-2592e6]].map((([e,t])=>{const n=new Date(t);return{name:e,value:`>=${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()} `}})),p={is:["assigned","unassigned","closed","open","issue","pull","milestoned"].map((e=>({name:e,value:`${e} `}))),created:m,updated:m};const h=[{name:"Operators",options:["label","assignee","author","repo","reviewer","commented","milestone","created","updated","involves","is"].map((e=>({name:e,value:`${e}:`})))}];let g,v,$,w,y,b=!1,k=0;const x=ke();function C(e){const{val:t,idx:n}=e.apply(a);r(5,$.value=r(0,a=t),$),r(5,$.selectionEnd=r(5,$.selectionStart=r(18,k=n),$),$),_(a)}function E(e,t){const n=y||[];let r=n.findIndex((t=>t.name===e.name))+t;return r<0&&(r=n.length-1),r===n.length&&(r=0),n[r]}const _=e((e=>{f&&f(e)}),500);return t.$$set=e=>{"class"in e&&r(1,c=e.class),"value"in e&&r(0,a=e.value),"placeholder"in e&&r(2,u=e.placeholder),"completionOptions"in e&&r(14,d=e.completionOptions),"onChange"in e&&r(15,f=e.onChange)},t.$$.update=()=>{if(16384&t.$$.dirty[0]&&r(20,o=Object.entries(d).reduce(((e,t)=>{const[n,r]=t;return e[n]=r.slice().sort().map((e=>{const t=/[: ]/.test(e)?'"':"";return{name:e,value:`${t}${e}${t} `}})),e}),{})),1048576&t.$$.dirty[0]&&r(19,l={...p,...o}),983041&t.$$.dirty[0]){console.time("BoardFilter#computeMatch");let e=function(e,t,n){const r=e.substring(0,t).lastIndexOf(" ")+1;e=e.substring(r,t).toLowerCase();const o=/^([-!]?)(?:([\w]+)(?:(:)(?:"([\w-]+)"?|([\w-]+))?)?)$/.exec(e);if(!o)return{};let[l,s,i,c,a,u]=o;const d=c?a||u||"":i,f=[],m=(c?[{name:"Values",options:n[i]||[]}]:h).reduce(((e,n)=>{const o=n.options.reduce(((e,n)=>{const{name:o,value:l}=n;if(o.toLowerCase().includes(d)){const n=o.indexOf(d),a={name:o,parts:[{text:o.substring(0,n)},{text:o.substring(n,n+d.length),matched:!0},{text:o.substring(n+d.length)}],apply:e=>{const n=e.substring(0,r),o=(s||"")+(c?i+c:"")+l;return{val:`${n}${o}${e.substring(t)}`,idx:n.length+o.length}}};e.push(a),f.push(a)}return e}),[]);return o.length&&e.push({name:n.name,values:o}),e}),[]);return m.length?{match:{categories:m},keyboardSelectedHint:m[0].values[0],allHints:f}:{match:null,keyboardSelectedHint:null,allHints:[]}}(a,k,l);console.timeEnd("BoardFilter#computeMatch"),r(6,w=e.match),r(17,y=e.allHints),r(16,g=y&&g&&y.find((e=>e.name===g.name))||e.keyboardSelectedHint)}65544&t.$$.dirty[0]&&r(8,s=v||g),17&t.$$.dirty[0]&&r(7,i=b||a)},[a,c,u,v,b,$,w,i,s,x,C,function(e){const t=e.target;r(0,a=t.value),r(18,k=t.selectionStart),_(a)},function(e){const t=e.key;"Enter"===t&&(g&&C(g),e.preventDefault()),"ArrowUp"===t&&(r(16,g=E(g,-1)),e.preventDefault()),"ArrowDown"===t&&(r(16,g=E(g,1)),e.preventDefault()),"Escape"!==t||a||($.blur(),e.preventDefault())},function(e){(function(e){return!(!Ie(e)||Ae(e))&&"f"===e.key})(e)&&(e.preventDefault(),function(e){const{target:t}=e;return t===$}(e)||$.focus())},d,f,g,y,k,l,o,function(e){K[e?"unshift":"push"]((()=>{$=e,r(5,$)}))},function(){a=this.value,r(0,a)},()=>r(4,b=!0),()=>r(4,b=!1),e=>r(3,v=e),()=>r(3,v=null)]}class Ge extends ye{constructor(e){super(),we(this,e,We,Xe,a,{class:1,value:0,placeholder:2,completionOptions:14,onChange:15},null,[-1,-1])}}function Je(e){let t,n,r,o;const l=e[3].default,s=u(l,e,e[2],null);return{c(){t=S("span"),s&&s.c(),n=H(),r=S("div"),z(r,"class","avatar-shadow svelte-9r4rqh"),z(t,"class","avatar svelte-9r4rqh"),z(t,"title",e[1]),T(t,"avatar-rounded",e[0])},m(e,l){C(e,t,l),s&&s.m(t,null),b(t,n),b(t,r),o=!0},p(e,[n]){s&&s.p&&(!o||4&n)&&m(s,l,e,e[2],o?f(l,e[2],n,null):p(e[2]),null),(!o||2&n)&&z(t,"title",e[1]),1&n&&T(t,"avatar-rounded",e[0])},i(e){o||(ae(s,e),o=!0)},o(e){ue(s,e),o=!1},d(e){e&&E(t),s&&s.d(e)}}}function Qe(e,t,n){let{$$slots:r={},$$scope:o}=t,{rounded:l=!1}=t,{title:s=""}=t;return e.$$set=e=>{"rounded"in e&&n(0,l=e.rounded),"title"in e&&n(1,s=e.title),"$$scope"in e&&n(2,o=e.$$scope)},[l,s,o,r]}class Ze extends ye{constructor(e){super(),we(this,e,Qe,Je,a,{rounded:0,title:1})}}function et(e){let t,n,r,o;const l=e[3].default,s=u(l,e,e[2],null);return{c(){t=S("div"),n=S("div"),s&&s.c(),z(n,"class","content svelte-1i1edqp"),z(t,"class",r="loader "+e[0]+" svelte-1i1edqp"),T(t,"shown",e[1])},m(e,r){C(e,t,r),b(t,n),s&&s.m(n,null),o=!0},p(e,[n]){s&&s.p&&(!o||4&n)&&m(s,l,e,e[2],o?f(l,e[2],n,null):p(e[2]),null),(!o||1&n&&r!==(r="loader "+e[0]+" svelte-1i1edqp"))&&z(t,"class",r),3&n&&T(t,"shown",e[1])},i(e){o||(ae(s,e),o=!0)},o(e){ue(s,e),o=!1},d(e){e&&E(t),s&&s.d(e)}}}function tt(e,t,n){let{$$slots:r={},$$scope:o}=t,{class:l=""}=t,{shown:s=!0}=t;return e.$$set=e=>{"class"in e&&n(0,l=e.class),"shown"in e&&n(1,s=e.shown),"$$scope"in e&&n(2,o=e.$$scope)},[l,s,o,r]}class nt extends ye{constructor(e){super(),we(this,e,tt,et,a,{class:0,shown:1})}}function rt(e){let n;return{c(){n=S("div"),n.innerHTML='<div class="help svelte-6impii"><a class="help-item svelte-6impii" href="https://wuffle.dev/docs" target="_blank" rel="noopener">Documentation</a> \n\n <span class="help-item svelte-6impii">Powered by</span></div> \n\n <a class="logo svelte-6impii" href="https://wuffle.dev" target="_blank" rel="noopener"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="20" height="20" class="svelte-6impii"><path d="M12 0h56c7 0 12 5 12 12v56c0 7-5 12-12 12H12C5 80 0 75 0 68V12C0 5 5 0 12 0z" fill="currentColor"></path><path d="M15 10h21c3 0 5 2 5 5v6c0 3-2 5-5 5H15c-2 0-4-2-4-5v-6c0-3 2-5 4-5zm0 20h21c3 0 5 2 5 5v6c0 2-2 4-5 4H15c-2 0-4-1-4-4v-6c0-3 2-5 4-5zm27 22h21c2 0 4 2 4 5v6c0 2-2 4-4 4H42c-2 0-4-2-4-4v-6c0-3 2-5 4-5z" fill="#fff"></path></svg></a>',z(n,"class","powered-by svelte-6impii")},m(e,t){C(e,n,t)},p:t,i:t,o:t,d(e){e&&E(n)}}}class ot extends ye{constructor(e){super(),we(this,e,null,rt,a,{})}}function lt(e){let t,n;const r=e[1].default,o=u(r,e,e[0],null);return{c(){t=S("div"),o&&o.c(),z(t,"class","notifications svelte-1kbv986")},m(e,r){C(e,t,r),o&&o.m(t,null),n=!0},p(e,[t]){o&&o.p&&(!n||1&t)&&m(o,r,e,e[0],n?f(r,e[0],t,null):p(e[0]),null)},i(e){n||(ae(o,e),n=!0)},o(e){ue(o,e),n=!1},d(e){e&&E(t),o&&o.d(e)}}}function st(e,t,n){let{$$slots:r={},$$scope:o}=t;return e.$$set=e=>{"$$scope"in e&&n(0,o=e.$$scope)},[o,r]}class it extends ye{constructor(e){super(),we(this,e,st,lt,a,{})}}function ct(e){const t=e-1;return t*t*t+1}function at(e,{delay:t=0,duration:n=400,easing:r=ct,x:o=0,y:l=0,opacity:s=0}={}){const i=getComputedStyle(e),c=+i.opacity,a="none"===i.transform?"":i.transform,u=c*(1-s);return{delay:t,duration:n,easing:r,css:(e,t)=>`\n\t\t\ttransform: ${a} translate(${(1-e)*o}px, ${(1-e)*l}px);\n\t\t\topacity: ${c-u*t}`}}function ut(e){let t,n,r,o,l,s,i;const c=e[3].default,a=u(c,e,e[2],null);return{c(){t=S("div"),n=S("div"),r=q(e[0]),o=H(),l=S("div"),a&&a.c(),z(n,"class","heading svelte-16ri2nq"),z(l,"class","detail"),z(t,"class","notification svelte-16ri2nq"),T(t,"error","error"===e[1]),T(t,"warning","warning"===e[1])},m(e,s){C(e,t,s),b(t,n),b(n,r),b(t,o),b(t,l),a&&a.m(l,null),i=!0},p(e,[n]){(!i||1&n)&&B(r,e[0]),a&&a.p&&(!i||4&n)&&m(a,c,e,e[2],i?f(c,e[2],n,null):p(e[2]),null),2&n&&T(t,"error","error"===e[1]),2&n&&T(t,"warning","warning"===e[1])},i(e){i||(ae(a,e),Q((()=>{s||(s=fe(t,at,{},!0)),s.run(1)})),i=!0)},o(e){ue(a,e),s||(s=fe(t,at,{},!1)),s.run(0),i=!1},d(e){e&&E(t),a&&a.d(e),e&&s&&s.end()}}}function dt(e,t,n){let{$$slots:r={},$$scope:o}=t,{message:l}=t,{type:s="info"}=t;return e.$$set=e=>{"message"in e&&n(0,l=e.message),"type"in e&&n(1,s=e.type),"$$scope"in e&&n(2,o=e.$$scope)},[l,s,o,r]}class ft extends ye{constructor(e){super(),we(this,e,dt,ut,a,{message:0,type:1})}}function mt(e){let t,n,r,o,l,i;return{c(){t=S("span"),n=q(e[1]),z(t,"class",r="tag "+e[3]+" svelte-tftc6d"),F(t,"background-color",e[2]),z(t,"title",o=e[0]||e[1]),T(t,"inverted",e[6]),T(t,"clickable",e[4])},m(r,o){C(r,t,o),b(t,n),l||(i=O(t,"click",(function(){s(e[4])&&e[4].apply(this,arguments)})),l=!0)},p(l,s){e=l,2&s&&B(n,e[1]),8&s&&r!==(r="tag "+e[3]+" svelte-tftc6d")&&z(t,"class",r),4&s&&F(t,"background-color",e[2]),3&s&&o!==(o=e[0]||e[1])&&z(t,"title",o),72&s&&T(t,"inverted",e[6]),24&s&&T(t,"clickable",e[4])},d(e){e&&E(t),l=!1,i()}}}function pt(e){let t,n,r,o,l,i;return{c(){t=S("a"),n=q(e[1]),z(t,"href",e[5]),z(t,"target","_blank"),z(t,"title",r=e[0]||e[1]),z(t,"rel","noopener noreferrer"),z(t,"class",o="tag "+e[3]+" svelte-tftc6d"),F(t,"background-color",e[2]),T(t,"inverted",e[6])},m(r,o){C(r,t,o),b(t,n),l||(i=O(t,"click",(function(){s(e[4])&&e[4].apply(this,arguments)})),l=!0)},p(l,s){e=l,2&s&&B(n,e[1]),32&s&&z(t,"href",e[5]),3&s&&r!==(r=e[0]||e[1])&&z(t,"title",r),8&s&&o!==(o="tag "+e[3]+" svelte-tftc6d")&&z(t,"class",o),4&s&&F(t,"background-color",e[2]),72&s&&T(t,"inverted",e[6])},d(e){e&&E(t),l=!1,i()}}}function ht(e){let n;function r(e,t){return e[5]?pt:mt}let o=r(e),l=o(e);return{c(){l.c(),n=N()},m(e,t){l.m(e,t),C(e,n,t)},p(e,[t]){o===(o=r(e))&&l?l.p(e,t):(l.d(1),l=o(e),l&&(l.c(),l.m(n.parentNode,n)))},i:t,o:t,d(e){l.d(e),e&&E(n)}}}function gt(e,t,n){let r,{title:o=""}=t,{name:l}=t,{color:s=""}=t,{class:i=""}=t,{onClick:c}=t,{href:a=null}=t;return e.$$set=e=>{"title"in e&&n(0,o=e.title),"name"in e&&n(1,l=e.name),"color"in e&&n(2,s=e.color),"class"in e&&n(3,i=e.class),"onClick"in e&&n(4,c=e.onClick),"href"in e&&n(5,a=e.href)},e.$$.update=()=>{4&e.$$.dirty&&n(6,r=s&&function(e){const t=(e=+("0x"+e.slice(1).replace(e.length<5&&/./g,"$&$&")))>>16,n=e>>8&255,r=255&e;return Math.sqrt(t*t*.299+n*n*.587+r*r*.114)>127.5}(s))},[o,l,s,i,c,a,r]}class vt extends ye{constructor(e){super(),we(this,e,gt,ht,a,{title:0,name:1,color:2,class:3,onClick:4,href:5})}}function $t(e){let t,n;return{c(){t=D("svg"),n=D("path"),z(n,"fill-rule","evenodd"),z(n,"d","M11 11.28V5c-.03-.78-.34-1.47-.94-2.06C9.46 2.35 8.78 2.03 8 2H7V0L4 3l3 3V4h1c.27.02.48.11.69.31.21.2.3.42.31.69v6.28A1.993 1.993 0 0 0 10 15a1.993 1.993 0 0 0 1-3.72zm-1 2.92c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zM4 3c0-1.11-.89-2-2-2a1.993 1.993 0 0 0-1 3.72v6.56A1.993 1.993 0 0 0 2 15a1.993 1.993 0 0 0 1-3.72V4.72c.59-.34 1-.98 1-1.72zm-.8 10c0 .66-.55 1.2-1.2 1.2-.65 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"),z(t,"class","pull-request-icon svelte-1570hl6"),z(t,"width","1em"),z(t,"height","1em"),z(t,"viewBox","0 0 12 16"),z(t,"version","1.1"),z(t,"aria-hidden","true"),z(t,"fill","currentColor"),T(t,"closed",e[1]),T(t,"open",e[2]),T(t,"draft",e[0])},m(e,r){C(e,t,r),b(t,n)},p(e,n){2&n&&T(t,"closed",e[1]),4&n&&T(t,"open",e[2]),1&n&&T(t,"draft",e[0])},d(e){e&&E(t)}}}function wt(e){let t,n;return{c(){t=D("svg"),n=D("path"),z(n,"fill-rule","evenodd"),z(n,"d","M10 7c-.73 0-1.38.41-1.73 1.02V8C7.22 7.98 6 7.64 5.14 6.98c-.75-.58-1.5-1.61-1.89-2.44A1.993 1.993 0 0 0 2 .99C.89.99 0 1.89 0 3a2 2 0 0 0 1 1.72v6.56c-.59.35-1 .99-1 1.72 0 1.11.89 2 2 2a1.993 1.993 0 0 0 1-3.72V7.67c.67.7 1.44 1.27 2.3 1.69.86.42 2.03.63 2.97.64v-.02c.36.61 1 1.02 1.73 1.02 1.11 0 2-.89 2-2 0-1.11-.89-2-2-2zm-6.8 6c0 .66-.55 1.2-1.2 1.2-.65 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm8 6c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"),z(t,"class","pull-request-icon svelte-1570hl6"),z(t,"width","1em"),z(t,"height","1em"),z(t,"viewBox","0 0 12 16"),z(t,"version","1.1"),z(t,"aria-hidden","true"),z(t,"fill","currentColor"),T(t,"merged",e[3])},m(e,r){C(e,t,r),b(t,n)},p(e,n){8&n&&T(t,"merged",e[3])},d(e){e&&E(t)}}}function yt(e){let n;function r(e,t){return e[3]?wt:$t}let o=r(e),l=o(e);return{c(){l.c(),n=N()},m(e,t){l.m(e,t),C(e,n,t)},p(e,[t]){o===(o=r(e))&&l?l.p(e,t):(l.d(1),l=o(e),l&&(l.c(),l.m(n.parentNode,n)))},i:t,o:t,d(e){l.d(e),e&&E(n)}}}function bt(e,t,n){let r,o,l,s,{item:i}=t;return e.$$set=e=>{"item"in e&&n(4,i=e.item)},e.$$.update=()=>{16&e.$$.dirty&&n(3,r=i.merged),16&e.$$.dirty&&n(2,o="open"===i.state),16&e.$$.dirty&&n(1,l="closed"===i.state),16&e.$$.dirty&&n(0,s=i.draft||!1)},[s,l,o,r,i]}class kt extends ye{constructor(e){super(),we(this,e,bt,yt,a,{item:4})}}function xt(e){let n,r;return{c(){n=D("svg"),r=D("path"),z(r,"fill","currentColor"),z(r,"stroke","#1d76db"),z(r,"d","M1 15V4l5-3 5 3v11l-5-4-5 4z"),z(r,"stroke-width","1.5"),z(n,"class","icon svelte-1wc70x"),z(n,"width","1em"),z(n,"height","1em"),z(n,"viewBox","0 0 12 16"),z(n,"version","1.1"),z(n,"aria-hidden","true")},m(e,t){C(e,n,t),b(n,r)},p:t,i:t,o:t,d(e){e&&E(n)}}}class Ct extends ye{constructor(e){super(),we(this,e,null,xt,a,{})}}function Et(e,t,n){const r=e.slice();return r[4]=t[n],r}function _t(e,t,n){const r=e.slice();return r[7]=t[n],r}function St(e){let t,n,r=e[1],o=[];for(let t=0;t<r.length;t+=1)o[t]=Dt(_t(e,r,t));let l=e[0],s=[];for(let t=0;t<l.length;t+=1)s[t]=qt(Et(e,l,t));return{c(){t=S("div");for(let e=0;e<o.length;e+=1)o[e].c();n=H();for(let e=0;e<s.length;e+=1)s[e].c();z(t,"class","card-status svelte-ah4rak")},m(e,r){C(e,t,r);for(let e=0;e<o.length;e+=1)o[e].m(t,null);b(t,n);for(let e=0;e<s.length;e+=1)s[e].m(t,null)},p(e,i){if(6&i){let l;for(r=e[1],l=0;l<r.length;l+=1){const s=_t(e,r,l);o[l]?o[l].p(s,i):(o[l]=Dt(s),o[l].c(),o[l].m(t,n))}for(;l<o.length;l+=1)o[l].d(1);o.length=r.length}if(1&i){let n;for(l=e[0],n=0;n<l.length;n+=1){const r=Et(e,l,n);s[n]?s[n].p(r,i):(s[n]=qt(r),s[n].c(),s[n].m(t,null))}for(;n<s.length;n+=1)s[n].d(1);s.length=l.length}},d(e){e&&E(t),_(o,e),_(s,e)}}}function Dt(e){let t,n,r,o,l,s,i,c=e[7].name+"",a=(e[2][e[7].conclusion]||e[2][e[7].status])+"";return{c(){t=S("a"),n=S("span"),r=q(c),o=q(" — "),l=q(a),z(n,"class","svelte-ah4rak"),z(t,"class","state svelte-ah4rak"),z(t,"target","_blank"),z(t,"rel","noopener noreferrer"),z(t,"title",s=`${e[7].name} — ${e[2][e[7].conclusion]||e[2][e[7].status]}`),z(t,"href",i=e[7].html_url),T(t,"success","success"===e[7].conclusion||"in_progress"===e[7].status),T(t,"failure","failure"===e[7].conclusion),T(t,"action-required","action_required"===e[7].conclusion),T(t,"striped","in_progress"===e[7].status||"queued"===e[7].status)},m(e,s){C(e,t,s),b(t,n),b(n,r),b(n,o),b(n,l)},p(e,n){2&n&&c!==(c=e[7].name+"")&&B(r,c),2&n&&a!==(a=(e[2][e[7].conclusion]||e[2][e[7].status])+"")&&B(l,a),2&n&&s!==(s=`${e[7].name} — ${e[2][e[7].conclusion]||e[2][e[7].status]}`)&&z(t,"title",s),2&n&&i!==(i=e[7].html_url)&&z(t,"href",i),2&n&&T(t,"success","success"===e[7].conclusion||"in_progress"===e[7].status),2&n&&T(t,"failure","failure"===e[7].conclusion),2&n&&T(t,"action-required","action_required"===e[7].conclusion),2&n&&T(t,"striped","in_progress"===e[7].status||"queued"===e[7].status)},d(e){e&&E(t)}}}function qt(e){let t,n,r,o,l,s,i,c=e[4].context+"",a=e[4].description+"";return{c(){t=S("a"),n=S("span"),r=q(c),o=q(" — "),l=q(a),z(n,"class","svelte-ah4rak"),z(t,"class","state svelte-ah4rak"),z(t,"target","_blank"),z(t,"rel","noopener noreferrer"),z(t,"title",s=`${e[4].context} — ${e[4].description}`),z(t,"href",i=e[4].target_url),T(t,"success","success"===e[4].state||"pending"===e[4].state),T(t,"failure","failure"===e[4].state),T(t,"action-required","error"===e[4].state),T(t,"striped","pending"===e[4].state)},m(e,s){C(e,t,s),b(t,n),b(n,r),b(n,o),b(n,l)},p(e,n){1&n&&c!==(c=e[4].context+"")&&B(r,c),1&n&&a!==(a=e[4].description+"")&&B(l,a),1&n&&s!==(s=`${e[4].context} — ${e[4].description}`)&&z(t,"title",s),1&n&&i!==(i=e[4].target_url)&&z(t,"href",i),1&n&&T(t,"success","success"===e[4].state||"pending"===e[4].state),1&n&&T(t,"failure","failure"===e[4].state),1&n&&T(t,"action-required","error"===e[4].state),1&n&&T(t,"striped","pending"===e[4].state)},d(e){e&&E(t)}}}function Ht(e){let n,r=(e[1].length||e[0].length)&&St(e);return{c(){r&&r.c(),n=N()},m(e,t){r&&r.m(e,t),C(e,n,t)},p(e,[t]){e[1].length||e[0].length?r?r.p(e,t):(r=St(e),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},i:t,o:t,d(e){r&&r.d(e),e&&E(n)}}}function Nt(e,t,n){let r,o,{item:l}=t;return e.$$set=e=>{"item"in e&&n(3,l=e.item)},e.$$.update=()=>{8&e.$$.dirty&&n(1,r=l.check_runs||[]),8&e.$$.dirty&&n(0,o=l.statuses||[])},[o,r,{failure:"failed",success:"succeeded",in_progress:"in progress",queued:"queued",action_required:"action required"},l]}class Ot extends ye{constructor(e){super(),we(this,e,Nt,Ht,a,{item:3})}}function Lt(e,t,n){const r=e.slice();return r[12]=t[n],r}function zt(e,t,n){const r=e.slice();return r[15]=t[n],r}function Bt(e,t,n){const r=e.slice();return r[18]=t[n],r}function Mt(e){let t,n,r,o,l,i,a,u,d;return{c(){t=S("span"),n=S("img"),l=H(),i=S("div"),c(n.src,r=e[18].avatar_url+"&s=40")||z(n,"src",r),z(n,"alt",o=e[18].login+" avatar"),z(n,"class","svelte-1v2qyqs"),z(i,"class","icon-shadow svelte-1v2qyqs"),z(t,"class","assignee requested-reviewer svelte-1v2qyqs"),z(t,"title",a=e[18].login+" requested for review")},m(r,o){C(r,t,o),b(t,n),b(t,l),b(t,i),u||(d=O(t,"click",(function(){s(e[6]("involves",e[18].login))&&e[6]("involves",e[18].login).apply(this,arguments)})),u=!0)},p(l,s){e=l,1&s&&!c(n.src,r=e[18].avatar_url+"&s=40")&&z(n,"src",r),1&s&&o!==(o=e[18].login+" avatar")&&z(n,"alt",o),1&s&&a!==(a=e[18].login+" requested for review")&&z(t,"title",a)},d(e){e&&E(t),u=!1,d()}}}function Ft(e){let t,n,r,o,l,i,a,u,d,f;return{c(){t=S("a"),n=S("img"),l=H(),i=S("div"),c(n.src,r=e[15].user.avatar_url+"&s=40")||z(n,"src",r),z(n,"alt",o=e[15].user.login+" avatar"),z(n,"class","svelte-1v2qyqs"),z(i,"class","icon-shadow svelte-1v2qyqs"),z(t,"class","assignee reviewer svelte-1v2qyqs"),z(t,"title",a=e[15].user.login+" "+e[5][e[15].state]),z(t,"href",u=e[15].html_url||`${e[3]}/pull/${e[4]}#pullrequestreview-${e[15].id}`),z(t,"target","_blank"),z(t,"rel","noopener noreferrer"),T(t,"approved","approved"===e[15].state),T(t,"requested-changes","changes_requested"===e[15].state),T(t,"commented","commented"===e[15].state||"dismissed"===e[15].state)},m(r,o){C(r,t,o),b(t,n),b(t,l),b(t,i),d||(f=O(t,"click",(function(){s(e[6]("involves",e[15].user.login))&&e[6]("involves",e[15].user.login).apply(this,arguments)})),d=!0)},p(l,s){e=l,2&s&&!c(n.src,r=e[15].user.avatar_url+"&s=40")&&z(n,"src",r),2&s&&o!==(o=e[15].user.login+" avatar")&&z(n,"alt",o),2&s&&a!==(a=e[15].user.login+" "+e[5][e[15].state])&&z(t,"title",a),26&s&&u!==(u=e[15].html_url||`${e[3]}/pull/${e[4]}#pullrequestreview-${e[15].id}`)&&z(t,"href",u),2&s&&T(t,"approved","approved"===e[15].state),2&s&&T(t,"requested-changes","changes_requested"===e[15].state),2&s&&T(t,"commented","commented"===e[15].state||"dismissed"===e[15].state)},d(e){e&&E(t),d=!1,f()}}}function Tt(e){let t,n,r,o,l,i,a,u,d,f,m;return{c(){t=S("a"),n=S("img"),l=H(),i=S("div"),a=H(),c(n.src,r=e[12].avatar_url+"&s=40")||z(n,"src",r),z(n,"alt",o=e[12].login+" avatar"),z(n,"class","svelte-1v2qyqs"),z(i,"class","icon-shadow svelte-1v2qyqs"),z(t,"class","assignee svelte-1v2qyqs"),z(t,"title",u=e[12].login+" assigned"),z(t,"href",d=e[12].html_url),z(t,"target","_blank"),z(t,"rel","noopener noreferrer")},m(r,o){C(r,t,o),b(t,n),b(t,l),b(t,i),b(t,a),f||(m=O(t,"click",(function(){s(e[6]("involves",e[12].login))&&e[6]("involves",e[12].login).apply(this,arguments)})),f=!0)},p(l,s){e=l,4&s&&!c(n.src,r=e[12].avatar_url+"&s=40")&&z(n,"src",r),4&s&&o!==(o=e[12].login+" avatar")&&z(n,"alt",o),4&s&&u!==(u=e[12].login+" assigned")&&z(t,"title",u),4&s&&d!==(d=e[12].html_url)&&z(t,"href",d)},d(e){e&&E(t),f=!1,m()}}}function Rt(e){let n,r,o,l=e[0],s=[];for(let t=0;t<l.length;t+=1)s[t]=Mt(Bt(e,l,t));let i=e[1],c=[];for(let t=0;t<i.length;t+=1)c[t]=Ft(zt(e,i,t));let a=e[2],u=[];for(let t=0;t<a.length;t+=1)u[t]=Tt(Lt(e,a,t));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();n=H();for(let e=0;e<c.length;e+=1)c[e].c();r=H();for(let e=0;e<u.length;e+=1)u[e].c();o=N()},m(e,t){for(let n=0;n<s.length;n+=1)s[n].m(e,t);C(e,n,t);for(let n=0;n<c.length;n+=1)c[n].m(e,t);C(e,r,t);for(let n=0;n<u.length;n+=1)u[n].m(e,t);C(e,o,t)},p(e,[t]){if(65&t){let r;for(l=e[0],r=0;r<l.length;r+=1){const o=Bt(e,l,r);s[r]?s[r].p(o,t):(s[r]=Mt(o),s[r].c(),s[r].m(n.parentNode,n))}for(;r<s.length;r+=1)s[r].d(1);s.length=l.length}if(122&t){let n;for(i=e[1],n=0;n<i.length;n+=1){const o=zt(e,i,n);c[n]?c[n].p(o,t):(c[n]=Ft(o),c[n].c(),c[n].m(r.parentNode,r))}for(;n<c.length;n+=1)c[n].d(1);c.length=i.length}if(68&t){let n;for(a=e[2],n=0;n<a.length;n+=1){const r=Lt(e,a,n);u[n]?u[n].p(r,t):(u[n]=Tt(r),u[n].c(),u[n].m(o.parentNode,o))}for(;n<u.length;n+=1)u[n].d(1);u.length=a.length}},i:t,o:t,d(e){_(s,e),e&&E(n),_(c,e),e&&E(r),_(u,e),e&&E(o)}}}function At(e,t,n){let r,o,l,s,i,c,a,u,{item:d}=t,{onSelect:f}=t;return e.$$set=e=>{"item"in e&&n(7,d=e.item),"onSelect"in e&&n(8,f=e.onSelect)},e.$$.update=()=>{128&e.$$.dirty&&n(4,r=d.number),128&e.$$.dirty&&n(11,o=d.repository),2048&e.$$.dirty&&n(10,l=`${o.owner.login}/${o.name}`),1024&e.$$.dirty&&n(3,s=`https://github.com/${l}`),128&e.$$.dirty&&n(2,i=d.assignees),128&e.$$.dirty&&n(9,c=(Array.isArray(d.comments)?d.comments:[]).map((e=>{const{user:t,html_url:n}=e;return{state:"commented",user:t,html_url:n}}))),128&e.$$.dirty&&n(0,a=d.requested_reviewers||[]),641&e.$$.dirty&&n(1,u=Object.values([].concat(c,d.reviews||[]).filter((e=>!a.find((t=>t.login===e.user.login)))).reduce(((e,t)=>{const n=e[t.user.login];return n&&"commented"!==n.state&&"commented"===t.state||(e[t.user.login]=t),e}),{})))},[a,u,i,s,r,{changes_requested:"requested changes",approved:"approved",commented:"commented",dismissed:"dismissed his review"},function(e,t){return f&&function(n){Pe(n)&&(n.preventDefault(),f(e,t,Ve(n)))}},d,f,c,l,o]}class It extends ye{constructor(e){super(),we(this,e,At,Rt,a,{item:7,onSelect:8})}}function Pt(e){let t;function n(e,t){return"closed"!==e[1]?Yt:Vt}let r=n(e),o=r(e);return{c(){o.c(),t=N()},m(e,n){o.m(e,n),C(e,t,n)},p(e,l){r===(r=n(e))&&o?o.p(e,l):(o.d(1),o=r(e),o&&(o.c(),o.m(t.parentNode,t)))},d(e){o.d(e),e&&E(t)}}}function Vt(e){let t,n,r;return{c(){t=D("svg"),n=D("path"),z(n,"fill-rule","evenodd"),z(n,"d","M7 10h2v2H7v-2zm2-6H7v5h2V4zm1.5 1.5l-1 1L12 9l4-4.5-1-1L12 7l-1.5-1.5zM8 13.7A5.71 5.71 0 0 1 2.3 8c0-3.14 2.56-5.7 5.7-5.7 1.83 0 3.45.88 4.5 2.2l.92-.92A6.947 6.947 0 0 0 8 1C4.14 1 1 4.14 1 8s3.14 7 7 7 7-3.14 7-7l-1.52 1.52c-.66 2.41-2.86 4.19-5.48 4.19v-.01z"),z(t,"class",r="icon issue closed "+e[2]+" svelte-1r532dq"),z(t,"width","1em"),z(t,"height","1em"),z(t,"viewBox","0 0 16 16"),z(t,"version","1.1"),z(t,"aria-hidden","true"),z(t,"fill","currentColor")},m(e,r){C(e,t,r),b(t,n)},p(e,n){4&n&&r!==(r="icon issue closed "+e[2]+" svelte-1r532dq")&&z(t,"class",r)},d(e){e&&E(t)}}}function Yt(e){let t,n,r;return{c(){t=D("svg"),n=D("path"),z(n,"fill-rule","evenodd"),z(n,"d","M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"),z(t,"class",r="icon issue "+e[2]+" svelte-1r532dq"),z(t,"width","1em"),z(t,"height","1em"),z(t,"viewBox","0 0 14 16"),z(t,"version","1.1"),z(t,"aria-hidden","true"),z(t,"fill","currentColor"),T(t,"open","open"===e[1])},m(e,r){C(e,t,r),b(t,n)},p(e,n){4&n&&r!==(r="icon issue "+e[2]+" svelte-1r532dq")&&z(t,"class",r),6&n&&T(t,"open","open"===e[1])},d(e){e&&E(t)}}}function Ut(e){let t;function n(e,t){return"closed"===e[1]?Kt:jt}let r=n(e),o=r(e);return{c(){o.c(),t=N()},m(e,n){o.m(e,n),C(e,t,n)},p(e,l){r===(r=n(e))&&o?o.p(e,l):(o.d(1),o=r(e),o&&(o.c(),o.m(t.parentNode,t)))},d(e){o.d(e),e&&E(t)}}}function jt(e){let t,n,r;return{c(){t=D("svg"),n=D("path"),z(n,"fill-rule","evenodd"),z(n,"d","M7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm0 1.3c1.3 0 2.5.44 3.47 1.17l-8 8A5.755 5.755 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zm0 11.41c-1.3 0-2.5-.44-3.47-1.17l8-8c.73.97 1.17 2.17 1.17 3.47 0 3.14-2.56 5.7-5.7 5.7z"),z(t,"class",r="icon depends-on "+e[2]+" svelte-1r532dq"),z(t,"width","1em"),z(t,"height","1em"),z(t,"viewBox","0 0 14 16"),z(t,"version","1.1"),z(t,"aria-hidden","true"),z(t,"fill","currentColor")},m(e,r){C(e,t,r),b(t,n)},p(e,n){4&n&&r!==(r="icon depends-on "+e[2]+" svelte-1r532dq")&&z(t,"class",r)},d(e){e&&E(t)}}}function Kt(e){let t,n,r;return{c(){t=D("svg"),n=D("path"),z(n,"fill-rule","evenodd"),z(n,"d","M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5L12 5z"),z(t,"class",r="icon depends-on closed "+e[2]+" svelte-1r532dq"),z(t,"width","1em"),z(t,"height","1em"),z(t,"viewBox","0 0 12 16"),z(t,"version","1.1"),z(t,"aria-hidden","true"),z(t,"fill","currentColor")},m(e,r){C(e,t,r),b(t,n)},p(e,n){4&n&&r!==(r="icon depends-on closed "+e[2]+" svelte-1r532dq")&&z(t,"class",r)},d(e){e&&E(t)}}}function Xt(e){let t,n,r;return{c(){t=D("svg"),n=D("path"),z(n,"fill-rule","evenodd"),z(n,"d","M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"),z(t,"class",r="icon linked-to "+e[2]+" svelte-1r532dq"),z(t,"width","1em"),z(t,"height","1em"),z(t,"viewBox","0 0 14 16"),z(t,"version","1.1"),z(t,"aria-hidden","true"),z(t,"fill","currentColor")},m(e,r){C(e,t,r),b(t,n)},p(e,n){4&n&&r!==(r="icon linked-to "+e[2]+" svelte-1r532dq")&&z(t,"class",r)},d(e){e&&E(t)}}}function Wt(e){let t,n,r;return{c(){t=D("svg"),n=D("path"),z(n,"fill","none"),z(n,"fill-rule","evenodd"),z(n,"transform","rotate(-89.89169311523438 5.963454723358154,7.855281829833984)"),z(n,"d","m-1.079501,2.743426l10.564429,0l3.521483,5.111845l-3.521483,5.111868l-10.564429,0l3.521482,-5.111868l-3.521482,-5.111845z"),z(n,"stroke-width","1.5"),z(t,"class",r="icon epic "+e[2]+" svelte-1r532dq"),z(t,"width","1em"),z(t,"height","1em"),z(t,"viewBox","0 0 12 16"),z(t,"version","1.1"),z(t,"aria-hidden","true"),z(t,"stroke","currentColor")},m(e,r){C(e,t,r),b(t,n)},p(e,n){4&n&&r!==(r="icon epic "+e[2]+" svelte-1r532dq")&&z(t,"class",r)},d(e){e&&E(t)}}}function Gt(e){let n,r,o,l,s="issue"===e[0]&&Pt(e),i="depends-on"===e[0]&&Ut(e),c="linked-to"===e[0]&&Xt(e),a="epic"===e[0]&&Wt(e);return{c(){s&&s.c(),n=H(),i&&i.c(),r=H(),c&&c.c(),o=H(),a&&a.c(),l=N()},m(e,t){s&&s.m(e,t),C(e,n,t),i&&i.m(e,t),C(e,r,t),c&&c.m(e,t),C(e,o,t),a&&a.m(e,t),C(e,l,t)},p(e,[t]){"issue"===e[0]?s?s.p(e,t):(s=Pt(e),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null),"depends-on"===e[0]?i?i.p(e,t):(i=Ut(e),i.c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null),"linked-to"===e[0]?c?c.p(e,t):(c=Xt(e),c.c(),c.m(o.parentNode,o)):c&&(c.d(1),c=null),"epic"===e[0]?a?a.p(e,t):(a=Wt(e),a.c(),a.m(l.parentNode,l)):a&&(a.d(1),a=null)},i:t,o:t,d(e){s&&s.d(e),e&&E(n),i&&i.d(e),e&&E(r),c&&c.d(e),e&&E(o),a&&a.d(e),e&&E(l)}}}function Jt(e,t,n){let{name:r}=t,{state:o=""}=t,{class:l=""}=t;return e.$$set=e=>{"name"in e&&n(0,r=e.name),"state"in e&&n(1,o=e.state),"class"in e&&n(2,l=e.class)},[r,o,l]}class Qt extends ye{constructor(e){super(),we(this,e,Jt,Gt,a,{name:0,state:1,class:2})}}function Zt(e){let t,n,r,o,l,s,i="PARENT_OF"===e[3]&&tn(e),c="CHILD_OF"===e[3]&&nn(),a=("DEPENDS_ON"===e[3]||"CLOSED_BY"===e[3])&&rn(e),u=("REQUIRED_BY"===e[3]||"CLOSES"===e[3])&&on(e),d="LINKED_TO"===e[3]&&cn();return{c(){i&&i.c(),t=H(),c&&c.c(),n=H(),a&&a.c(),r=H(),u&&u.c(),o=H(),d&&d.c(),l=N()},m(e,f){i&&i.m(e,f),C(e,t,f),c&&c.m(e,f),C(e,n,f),a&&a.m(e,f),C(e,r,f),u&&u.m(e,f),C(e,o,f),d&&d.m(e,f),C(e,l,f),s=!0},p(e,s){"PARENT_OF"===e[3]?i?(i.p(e,s),8&s&&ae(i,1)):(i=tn(e),i.c(),ae(i,1),i.m(t.parentNode,t)):i&&(ie(),ue(i,1,1,(()=>{i=null})),ce()),"CHILD_OF"===e[3]?c?8&s&&ae(c,1):(c=nn(),c.c(),ae(c,1),c.m(n.parentNode,n)):c&&(ie(),ue(c,1,1,(()=>{c=null})),ce()),"DEPENDS_ON"===e[3]||"CLOSED_BY"===e[3]?a?(a.p(e,s),8&s&&ae(a,1)):(a=rn(e),a.c(),ae(a,1),a.m(r.parentNode,r)):a&&(ie(),ue(a,1,1,(()=>{a=null})),ce()),"REQUIRED_BY"===e[3]||"CLOSES"===e[3]?u?(u.p(e,s),8&s&&ae(u,1)):(u=on(e),u.c(),ae(u,1),u.m(o.parentNode,o)):u&&(ie(),ue(u,1,1,(()=>{u=null})),ce()),"LINKED_TO"===e[3]?d?8&s&&ae(d,1):(d=cn(),d.c(),ae(d,1),d.m(l.parentNode,l)):d&&(ie(),ue(d,1,1,(()=>{d=null})),ce())},i(e){s||(ae(i),ae(c),ae(a),ae(u),ae(d),s=!0)},o(e){ue(i),ue(c),ue(a),ue(u),ue(d),s=!1},d(e){i&&i.d(e),e&&E(t),c&&c.d(e),e&&E(n),a&&a.d(e),e&&E(r),u&&u.d(e),e&&E(o),d&&d.d(e),e&&E(l)}}}function en(e){let t,n;return t=new kt({props:{item:e[1]}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.item=e[1]),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function tn(e){let t,n;return t=new Qt({props:{name:"issue",state:e[8]}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};256&n&&(r.state=e[8]),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function nn(e){let t,n;return t=new Qt({props:{name:"epic"}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function rn(e){let t,n;return t=new Qt({props:{name:"depends-on",state:e[8]}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};256&n&&(r.state=e[8]),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function on(e){let t,n,r,o;const l=[sn,ln],s=[];function i(e,t){return"open"===e[8]?0:1}return t=i(e),n=s[t]=l[t](e),{c(){n.c(),r=N()},m(e,n){s[t].m(e,n),C(e,r,n),o=!0},p(e,o){let c=t;t=i(e),t===c?s[t].p(e,o):(ie(),ue(s[c],1,1,(()=>{s[c]=null})),ce(),n=s[t],n?n.p(e,o):(n=s[t]=l[t](e),n.c()),ae(n,1),n.m(r.parentNode,r))},i(e){o||(ae(n),o=!0)},o(e){ue(n),o=!1},d(e){s[t].d(e),e&&E(r)}}}function ln(e){let t,n;return t=new Qt({props:{name:"issue",state:e[8]}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};256&n&&(r.state=e[8]),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function sn(e){let n,r;return n=new Qt({props:{name:"linked-to"}}),{c(){he(n.$$.fragment)},m(e,t){ge(n,e,t),r=!0},p:t,i(e){r||(ae(n.$$.fragment,e),r=!0)},o(e){ue(n.$$.fragment,e),r=!1},d(e){ve(n,e)}}}function cn(e){let t,n;return t=new Qt({props:{name:"linked-to"}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function an(e){let t,n,r,o,i,c,a,u,d,f,m,p,h,g,v,$,w,y,k;const x=[en,Zt],_=[];function D(e,t){return e[9]?0:1}return o=D(e),i=_[o]=x[o](e),g=new It({props:{item:e[1],onSelect:e[2]}}),$=new Ot({props:{item:e[1]}}),{c(){t=S("div"),n=S("div"),r=S("a"),i.c(),c=H(),a=q(e[4]),d=H(),f=S("span"),m=q(e[10]),p=H(),h=S("span"),he(g.$$.fragment),v=H(),he($.$$.fragment),z(r,"href",e[7]),z(r,"target","_blank"),z(r,"rel","noopener noreferrer"),z(r,"class","issue-number svelte-lrpwe8"),z(r,"title",u=e[5]+"#"+e[4]+" · "+e[6]+" this issue"),z(f,"class","short-title svelte-lrpwe8"),z(f,"title",e[10]),z(h,"class","collaborator-links svelte-lrpwe8"),z(n,"class","header svelte-lrpwe8"),z(t,"class","card-link svelte-lrpwe8"),T(t,"hovered",e[0])},m(l,i){C(l,t,i),b(t,n),b(n,r),_[o].m(r,null),b(r,c),b(r,a),b(n,d),b(n,f),b(f,m),b(n,p),b(n,h),ge(g,h,null),b(t,v),ge($,t,null),w=!0,y||(k=[O(r,"click",(function(){s(e[11]("ref",e[1].key))&&e[11]("ref",e[1].key).apply(this,arguments)})),O(t,"mouseenter",e[13]),O(t,"mouseleave",e[14])],y=!0)},p(n,[l]){let s=o;o=D(e=n),o===s?_[o].p(e,l):(ie(),ue(_[s],1,1,(()=>{_[s]=null})),ce(),i=_[o],i?i.p(e,l):(i=_[o]=x[o](e),i.c()),ae(i,1),i.m(r,c)),(!w||16&l)&&B(a,e[4]),(!w||128&l)&&z(r,"href",e[7]),(!w||112&l&&u!==(u=e[5]+"#"+e[4]+" · "+e[6]+" this issue"))&&z(r,"title",u),(!w||1024&l)&&B(m,e[10]),(!w||1024&l)&&z(f,"title",e[10]);const d={};2&l&&(d.item=e[1]),4&l&&(d.onSelect=e[2]),g.$set(d);const p={};2&l&&(p.item=e[1]),$.$set(p),1&l&&T(t,"hovered",e[0])},i(e){w||(ae(i),ae(g.$$.fragment,e),ae($.$$.fragment,e),w=!0)},o(e){ue(i),ue(g.$$.fragment,e),ue($.$$.fragment,e),w=!1},d(e){e&&E(t),_[o].d(),ve(g),ve($),y=!1,l(k)}}}function un(e,t,n){let r,o,l,s,i,c,a,u,{item:d}=t,{onSelect:f}=t,{hovered:m=!1}=t,{type:p}=t;return e.$$set=e=>{"item"in e&&n(1,d=e.item),"onSelect"in e&&n(2,f=e.onSelect),"hovered"in e&&n(0,m=e.hovered),"type"in e&&n(3,p=e.type)},e.$$.update=()=>{2&e.$$.dirty&&n(4,r=d.number),2&e.$$.dirty&&n(10,o=d.title),2&e.$$.dirty&&n(12,l=d.repository),2&e.$$.dirty&&n(9,s=d.pull_request),2&e.$$.dirty&&n(8,i=d.state),4096&e.$$.dirty&&n(5,c=`${l.owner.login}/${l.name}`),50&e.$$.dirty&&n(7,a=d.html_url||`https://github.com/${c}/issues/${r}`),8&e.$$.dirty&&n(6,u={CHILD_OF:"Parent of",DEPENDS_ON:"Required by",PARENT_OF:"Child of",CLOSED_BY:"Closes",REQUIRED_BY:"Depends on",CLOSES:"Closed by",LINKED_TO:"Linked to",LINKED_BY:"Linked to"}[p]||p)},[m,d,f,p,r,c,u,a,i,s,o,function(e,t){return f&&function(n){Pe(n)&&(n.preventDefault(),f(e,t,Ve(n)))}},l,()=>n(0,m=!0),()=>n(0,m=!1)]}class dn extends ye{constructor(e){super(),we(this,e,un,an,a,{item:1,onSelect:2,hovered:0,type:3})}}function fn(e,t,n){const r=e.slice();return r[26]=t[n],r}function mn(e,t,n){const r=e.slice();return r[26]=t[n],r}function pn(e,t,n){const r=e.slice();return r[31]=t[n].name,r[32]=t[n].color,r}function hn(e){let t,n;return t=new Ct({props:{item:e[0],linkType:"PARENT_OF"}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};1&n[0]&&(r.item=e[0]),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function gn(e){let t,n;return t=new kt({props:{item:e[0]}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};1&n[0]&&(r.item=e[0]),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function vn(e){let t,n,r,o,l,s,i,c,a,u,d,f,m,p,h=e[12].length+"",g=e[7].length+"";return{c(){t=S("div"),n=D("svg"),r=D("path"),o=H(),l=S("div"),s=q(h),i=q(" of "),c=q(g),a=H(),u=S("div"),d=S("div"),z(r,"fill-rule","evenodd"),z(r,"d","M7 10h2v2H7v-2zm2-6H7v5h2V4zm1.5 1.5l-1 1L12 9l4-4.5-1-1L12 7l-1.5-1.5zM8 13.7A5.71 5.71 0 0 1 2.3 8c0-3.14 2.56-5.7 5.7-5.7 1.83 0 3.45.88 4.5 2.2l.92-.92A6.947 6.947 0 0 0 8 1C4.14 1 1 4.14 1 8s3.14 7 7 7 7-3.14 7-7l-1.52 1.52c-.66 2.41-2.86 4.19-5.48 4.19v-.01z"),z(n,"class","icon issue closed svelte-2qowi0"),z(n,"width","1em"),z(n,"height","1em"),z(n,"viewBox","0 0 16 16"),z(n,"version","1.1"),z(n,"aria-hidden","true"),z(n,"fill","currentColor"),z(l,"class","text svelte-2qowi0"),z(d,"class","indicator svelte-2qowi0"),F(d,"width",e[12].length/e[7].length*100+"%"),z(u,"class","bar svelte-2qowi0"),z(t,"class","progress svelte-2qowi0"),z(t,"title",f=e[12].length+" of "+e[7].length+" child tasks completed")},m(f,h){C(f,t,h),b(t,n),b(n,r),b(t,o),b(t,l),b(l,s),b(l,i),b(l,c),b(t,a),b(t,u),b(u,d),m||(p=O(t,"click",e[22]),m=!0)},p(e,n){4096&n[0]&&h!==(h=e[12].length+"")&&B(s,h),128&n[0]&&g!==(g=e[7].length+"")&&B(c,g),4224&n[0]&&F(d,"width",e[12].length/e[7].length*100+"%"),4224&n[0]&&f!==(f=e[12].length+" of "+e[7].length+" child tasks completed")&&z(t,"title",f)},d(e){e&&E(t),m=!1,p()}}}function $n(e){let t,n;return t=new vt({props:{class:"tag milestone",name:e[5].title,href:e[10],title:e[5].title,onClick:e[17]("milestone",e[5].title)}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};32&n[0]&&(r.name=e[5].title),1024&n[0]&&(r.href=e[10]),32&n[0]&&(r.title=e[5].title),32&n[0]&&(r.onClick=e[17]("milestone",e[5].title)),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function wn(e){let t,n;return t=new vt({props:{class:"tag label",color:"#"+e[32],name:e[31],title:e[31],onClick:e[17]("label",e[31])}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};32768&n[0]&&(r.color="#"+e[32]),32768&n[0]&&(r.name=e[31]),32768&n[0]&&(r.title=e[31]),32768&n[0]&&(r.onClick=e[17]("label",e[31])),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function yn(e){let t,n,r=e[13],o=[];for(let t=0;t<r.length;t+=1)o[t]=bn(mn(e,r,t));const l=e=>ue(o[e],1,1,(()=>{o[e]=null}));return{c(){t=S("div");for(let e=0;e<o.length;e+=1)o[e].c();z(t,"class","board-card-links embedded svelte-2qowi0")},m(e,r){C(e,t,r);for(let e=0;e<o.length;e+=1)o[e].m(t,null);n=!0},p(e,n){if(8196&n[0]){let s;for(r=e[13],s=0;s<r.length;s+=1){const l=mn(e,r,s);o[s]?(o[s].p(l,n),ae(o[s],1)):(o[s]=bn(l),o[s].c(),ae(o[s],1),o[s].m(t,null))}for(ie(),s=r.length;s<o.length;s+=1)l(s);ce()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)ae(o[e]);n=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)ue(o[e]);n=!1},d(e){e&&E(t),_(o,e)}}}function bn(e){let t,n;return t=new dn({props:{item:e[26].target,type:e[26].type,onSelect:e[2]}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};8192&n[0]&&(r.item=e[26].target),8192&n[0]&&(r.type=e[26].type),4&n[0]&&(r.onSelect=e[2]),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function kn(e){let t,n,r=e[11],o=[];for(let t=0;t<r.length;t+=1)o[t]=xn(fn(e,r,t));const l=e=>ue(o[e],1,1,(()=>{o[e]=null}));return{c(){t=S("div");for(let e=0;e<o.length;e+=1)o[e].c();z(t,"class","board-card-links attached svelte-2qowi0")},m(e,r){C(e,t,r);for(let e=0;e<o.length;e+=1)o[e].m(t,null);n=!0},p(e,n){if(2052&n[0]){let s;for(r=e[11],s=0;s<r.length;s+=1){const l=fn(e,r,s);o[s]?(o[s].p(l,n),ae(o[s],1)):(o[s]=xn(l),o[s].c(),ae(o[s],1),o[s].m(t,null))}for(ie(),s=r.length;s<o.length;s+=1)l(s);ce()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)ae(o[e]);n=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)ue(o[e]);n=!1},d(e){e&&E(t),_(o,e)}}}function xn(e){let t,n;return t=new dn({props:{item:e[26].target,type:e[26].type,onSelect:e[2]}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};2048&n[0]&&(r.item=e[26].target),2048&n[0]&&(r.type=e[26].type),4&n[0]&&(r.onSelect=e[2]),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function Cn(e){let t,n,r,o,i,c,a,u,d,f,m,p,h,g,v,$,w,y,k,x,N,L,M,F,R,A,I,P,V,Y,U,j,K,X,W=e[7].length&&hn(e),G=e[14]&&gn(e);g=new It({props:{item:e[0],onSelect:e[2]}});let J=e[7].length&&vn(e),Q=e[5]&&$n(e),Z=e[15],ee=[];for(let t=0;t<Z.length;t+=1)ee[t]=wn(pn(e,Z,t));const te=e=>ue(ee[e],1,1,(()=>{ee[e]=null}));let ne=e[13].length&&yn(e);V=new Ot({props:{item:e[0]}});let re=e[11].length&&kn(e);return{c(){t=S("div"),n=S("div"),r=S("div"),o=S("a"),W&&W.c(),i=H(),G&&G.c(),c=H(),a=q(e[4]),d=H(),f=S("span"),m=q(e[6]),p=H(),h=S("span"),he(g.$$.fragment),v=H(),$=S("div"),w=q(e[16]),y=H(),J&&J.c(),k=H(),x=S("div"),Q&&Q.c(),N=H();for(let e=0;e<ee.length;e+=1)ee[e].c();L=H(),M=S("div"),F=S("a"),R=D("svg"),A=D("path"),I=H(),ne&&ne.c(),P=H(),he(V.$$.fragment),Y=H(),re&&re.c(),z(o,"href",e[9]),z(o,"target","_blank"),z(o,"rel","noopener noreferrer"),z(o,"class","issue-number svelte-2qowi0"),z(o,"title",u=e[6]+"#"+e[4]),z(f,"class","repository svelte-2qowi0"),z(f,"title",e[6]),z(h,"class","collaborator-links svelte-2qowi0"),z(r,"class","header svelte-2qowi0"),z($,"class","title svelte-2qowi0"),z(A,"fill-rule","evenodd"),z(A,"d","M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"),z(R,"width","1em"),z(R,"height","1em"),z(R,"viewBox","0 0 16 16"),z(R,"version","1.1"),z(R,"aria-hidden","true"),z(R,"fill","currentColor"),z(R,"class","svelte-2qowi0"),z(F,"href",e[9]),z(F,"title","View on GitHub"),z(F,"target","_blank"),z(F,"rel","noopener noreferrer"),z(F,"class","svelte-2qowi0"),z(M,"class","links svelte-2qowi0"),z(x,"class","footer svelte-2qowi0"),z(n,"class","board-card svelte-2qowi0"),T(n,"hovered",e[8]),z(t,"class",U="board-card-container "+e[1]+" svelte-2qowi0")},m(l,u){C(l,t,u),b(t,n),b(n,r),b(r,o),W&&W.m(o,null),b(o,i),G&&G.m(o,null),b(o,c),b(o,a),b(r,d),b(r,f),b(f,m),b(r,p),b(r,h),ge(g,h,null),b(n,v),b(n,$),b($,w),b(n,y),J&&J.m(n,null),b(n,k),b(n,x),Q&&Q.m(x,null),b(x,N);for(let e=0;e<ee.length;e+=1)ee[e].m(x,null);b(x,L),b(x,M),b(M,F),b(F,R),b(R,A),b(n,I),ne&&ne.m(n,null),b(n,P),ge(V,n,null),b(t,Y),re&&re.m(t,null),j=!0,K||(X=[O(o,"click",(function(){s(e[17]("ref",e[0].key))&&e[17]("ref",e[0].key).apply(this,arguments)})),O(n,"mouseenter",e[23]),O(n,"mouseleave",e[24])],K=!0)},p(r,l){(e=r)[7].length?W?(W.p(e,l),128&l[0]&&ae(W,1)):(W=hn(e),W.c(),ae(W,1),W.m(o,i)):W&&(ie(),ue(W,1,1,(()=>{W=null})),ce()),e[14]?G?(G.p(e,l),16384&l[0]&&ae(G,1)):(G=gn(e),G.c(),ae(G,1),G.m(o,c)):G&&(ie(),ue(G,1,1,(()=>{G=null})),ce()),(!j||16&l[0])&&B(a,e[4]),(!j||512&l[0])&&z(o,"href",e[9]),(!j||80&l[0]&&u!==(u=e[6]+"#"+e[4]))&&z(o,"title",u),(!j||64&l[0])&&B(m,e[6]),(!j||64&l[0])&&z(f,"title",e[6]);const s={};if(1&l[0]&&(s.item=e[0]),4&l[0]&&(s.onSelect=e[2]),g.$set(s),(!j||65536&l[0])&&B(w,e[16]),e[7].length?J?J.p(e,l):(J=vn(e),J.c(),J.m(n,k)):J&&(J.d(1),J=null),e[5]?Q?(Q.p(e,l),32&l[0]&&ae(Q,1)):(Q=$n(e),Q.c(),ae(Q,1),Q.m(x,N)):Q&&(ie(),ue(Q,1,1,(()=>{Q=null})),ce()),163840&l[0]){let t;for(Z=e[15],t=0;t<Z.length;t+=1){const n=pn(e,Z,t);ee[t]?(ee[t].p(n,l),ae(ee[t],1)):(ee[t]=wn(n),ee[t].c(),ae(ee[t],1),ee[t].m(x,L))}for(ie(),t=Z.length;t<ee.length;t+=1)te(t);ce()}(!j||512&l[0])&&z(F,"href",e[9]),e[13].length?ne?(ne.p(e,l),8192&l[0]&&ae(ne,1)):(ne=yn(e),ne.c(),ae(ne,1),ne.m(n,P)):ne&&(ie(),ue(ne,1,1,(()=>{ne=null})),ce());const d={};1&l[0]&&(d.item=e[0]),V.$set(d),256&l[0]&&T(n,"hovered",e[8]),e[11].length?re?(re.p(e,l),2048&l[0]&&ae(re,1)):(re=kn(e),re.c(),ae(re,1),re.m(t,null)):re&&(ie(),ue(re,1,1,(()=>{re=null})),ce()),(!j||2&l[0]&&U!==(U="board-card-container "+e[1]+" svelte-2qowi0"))&&z(t,"class",U)},i(e){if(!j){ae(W),ae(G),ae(g.$$.fragment,e),ae(Q);for(let e=0;e<Z.length;e+=1)ae(ee[e]);ae(ne),ae(V.$$.fragment,e),ae(re),j=!0}},o(e){ue(W),ue(G),ue(g.$$.fragment,e),ue(Q),ee=ee.filter(Boolean);for(let e=0;e<ee.length;e+=1)ue(ee[e]);ue(ne),ue(V.$$.fragment,e),ue(re),j=!1},d(e){e&&E(t),W&&W.d(),G&&G.d(),ve(g),J&&J.d(),Q&&Q.d(),_(ee,e),ne&&ne.d(),ve(V),re&&re.d(),K=!1,l(X)}}}function En(e,t,n){let r,o,l,s,i,c,a,u,d,f,m,p,h,g,v,$;const w={DEPENDS_ON:1,CLOSED_BY:2,PARENT_OF:3,REQUIRED_BY:4,LINKED_TO:5,CHILD_OF:6};let{item:y}=t,{class:b=""}=t,{onSelect:k}=t,x=!1,C=!1;return e.$$set=e=>{"item"in e&&n(0,y=e.item),"class"in e&&n(1,b=e.class),"onSelect"in e&&n(2,k=e.onSelect)},e.$$.update=()=>{1&e.$$.dirty[0]&&n(4,r=y.number),1&e.$$.dirty[0]&&n(16,o=y.title),1&e.$$.dirty[0]&&n(19,l=y.repository),1&e.$$.dirty[0]&&n(5,s=y.milestone),1&e.$$.dirty[0]&&n(15,i=y.labels.filter((e=>!e.column_label))),1&e.$$.dirty[0]&&n(14,c=y.pull_request),1&e.$$.dirty[0]&&n(20,a=y.links||[]),1048576&e.$$.dirty[0]&&n(21,u=a.filter((e=>!He(e.target)&&"LINKED_BY"!==e.type)).sort(((e,t)=>w[e.type]-w[t.type]))),2097160&e.$$.dirty[0]&&n(13,d=u.filter((e=>x||"PARENT_OF"!==e.type))),2097152&e.$$.dirty[0]&&n(7,f=u.filter((e=>"PARENT_OF"===e.type))),128&e.$$.dirty[0]&&n(12,m=f.filter((e=>"closed"===e.target.state))),1048576&e.$$.dirty[0]&&n(11,p=a.filter((e=>He(e.target)&&(De(e.target)||qe(e.target)&&"CLOSED_BY"===e.type))).filter(function(e){const t={};return function(n){const r=e(n);return!(r in t)&&(t[r]=!0,!0)}}((e=>e.target.id)))),524288&e.$$.dirty[0]&&n(6,h=`${l.owner.login}/${l.name}`),64&e.$$.dirty[0]&&n(18,g=`https://github.com/${h}`),262176&e.$$.dirty[0]&&n(10,v=s&&(s.html_url||`${g}/milestone/${s.number}`)),262161&e.$$.dirty[0]&&n(9,$=y.html_url||`${g}/issues/${r}`)},[y,b,k,x,r,s,h,f,C,$,v,p,m,d,c,i,o,function(e,t){return k&&function(n){Pe(n)&&(n.preventDefault(),k(e,t,Ve(n)))}},g,l,a,u,()=>n(3,x=!x),()=>n(8,C=!0),()=>n(8,C=!1)]}class _n extends ye{constructor(e){super(),we(this,e,En,Cn,a,{item:0,class:1,onSelect:2},null,[-1,-1])}}const Sn=e=>({}),Dn=e=>({});function qn(e){let t,n,r;return n=new Re({props:{hints:e[1],selectedHint:e[5],onHover:e[18],onBlur:e[19],onSelect:e[7],maxElements:7}}),{c(){t=S("div"),he(n.$$.fragment),z(t,"class","help-dropdown svelte-15toawx")},m(e,o){C(e,t,o),ge(n,t,null),r=!0},p(e,t){const r={};2&t&&(r.hints=e[1]),32&t&&(r.selectedHint=e[5]),4&t&&(r.onHover=e[18]),4&t&&(r.onBlur=e[19]),n.$set(r)},i(e){r||(ae(n.$$.fragment,e),r=!0)},o(e){ue(n.$$.fragment,e),r=!1},d(e){e&&E(t),ve(n)}}}function Hn(e){let t,n,r,o,i,c,a,d,h,g,v;const $=e[16].header,w=u($,e,e[15],Dn);let y=e[3]&&e[1].length&&qn(e);return{c(){t=S("div"),n=S("div"),r=H(),o=S("form"),w&&w.c(),i=H(),c=S("div"),a=S("input"),d=H(),y&&y.c(),z(n,"class","overlay svelte-15toawx"),z(a,"id",e[6]),a.value=e[3],z(a,"placeholder","Choose repository"),z(a,"autocomplete","off"),z(a,"spellcheck","false"),z(a,"aria-label","Repository name input"),z(a,"class","form-control form-control-lg"),z(a,"type","text"),z(c,"class","form-group dropdown-parent svelte-15toawx"),z(o,"class","issue-creator px-4 py-2 svelte-15toawx"),z(t,"class","repository-select svelte-15toawx")},m(l,u){C(l,t,u),b(t,n),b(t,r),b(t,o),w&&w.m(o,null),b(o,i),b(o,c),b(c,a),e[17](a),b(c,d),y&&y.m(c,null),h=!0,g||(v=[O(window,"keydown",e[10]),O(n,"click",(function(){s(e[0])&&e[0].apply(this,arguments)})),O(a,"input",e[8]),O(a,"keydown",e[9]),O(o,"submit",e[11])],g=!0)},p(t,[n]){e=t,w&&w.p&&(!h||32768&n)&&m(w,$,e,e[15],h?f($,e[15],n,Sn):p(e[15]),Dn),(!h||8&n&&a.value!==e[3])&&(a.value=e[3]),e[3]&&e[1].length?y?(y.p(e,n),10&n&&ae(y,1)):(y=qn(e),y.c(),ae(y,1),y.m(c,null)):y&&(ie(),ue(y,1,1,(()=>{y=null})),ce())},i(e){h||(ae(w,e),ae(y),h=!0)},o(e){ue(w,e),ue(y),h=!1},d(n){n&&E(t),w&&w.d(n),e[17](null),y&&y.d(),g=!1,l(v)}}}function Nn(e,t,n){let r,{$$slots:o={},$$scope:l}=t;const s=ke();let i,c,a,u,{onClose:d}=t,{repositories:f}=t,{onSelect:m}=t,p="";function h(e){const{val:t,idx:r}=e.apply(p);n(4,u.value=n(3,p=t),u),n(4,u.selectionEnd=n(4,u.selectionStart=r,u),u);const[o,l]=t.split("/");return m(o,l)}function g(e,t){const n=i||[];let r=n.findIndex((t=>t.name===e.name))+t;return r<0&&(r=n.length-1),r===n.length&&(r=0),n[r]}U((()=>{u.focus()}));return e.$$set=e=>{"onClose"in e&&n(0,d=e.onClose),"repositories"in e&&n(12,f=e.repositories),"onSelect"in e&&n(13,m=e.onSelect),"$$scope"in e&&n(15,l=e.$$scope)},e.$$.update=()=>{if(20490&e.$$.dirty){console.time("RepositorySelect#computeMatch");let e=function(e,t){const n=t.reduce(((t,n)=>{if(!n.toLowerCase().includes(e))return t;const r=n.indexOf(e),o={name:n,parts:[{text:n.substring(0,r)},{text:n.substring(r,r+e.length),matched:!0},{text:n.substring(r+e.length)}],apply:e=>({val:n,idx:n.length})};return t.push(o),t}),[]);return{keyboardSelectedHint:n[0],matchedHints:n}}(p,f);console.timeEnd("RepositorySelect#computeMatch"),n(1,i=e.matchedHints),n(14,c=i&&c&&i.find((e=>e.name===c.name))||e.keyboardSelectedHint)}16388&e.$$.dirty&&n(5,r=a||c)},[d,i,a,p,u,r,s,h,function(e){n(3,p=e.target.value)},function(e){const t=e.key;"Enter"===t&&c&&(h(c),e.preventDefault()),"ArrowUp"===t&&(n(14,c=g(c,-1)),e.preventDefault()),"ArrowDown"===t&&(n(14,c=g(c,1)),e.preventDefault()),"Escape"!==t||p||(u.blur(),e.preventDefault())},function(e){"Escape"===e.key&&(e.preventDefault(),d())},function(e){if(e.preventDefault(),!p)return;const[t,n]=p.split("/");return n&&t?m(t,n):void 0},f,m,c,l,o,function(e){K[e?"unshift":"push"]((()=>{u=e,n(4,u)}))},e=>n(2,a=e),()=>n(2,a=null)]}class On extends ye{constructor(e){super(),we(this,e,Nn,Hn,a,{onClose:0,repositories:12,onSelect:13})}}function Ln(e){let t,n;return t=new On({props:{repositories:e[0],onClose:e[3],onSelect:e[2],$$slots:{header:[zn]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.repositories=e[0]),8&n&&(r.onClose=e[3]),4&n&&(r.onSelect=e[2]),16&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function zn(e){let t;return{c(){t=S("h4"),t.textContent="Create new Issue",z(t,"slot","header"),z(t,"class","chooser-header my-3")},m(e,n){C(e,t,n)},d(e){e&&E(t)}}}function Bn(e){let t,n,r=e[1]&&Ln(e);return{c(){r&&r.c(),t=N()},m(e,o){r&&r.m(e,o),C(e,t,o),n=!0},p(e,[n]){e[1]?r?(r.p(e,n),2&n&&ae(r,1)):(r=Ln(e),r.c(),ae(r,1),r.m(t.parentNode,t)):r&&(ie(),ue(r,1,1,(()=>{r=null})),ce())},i(e){n||(ae(r),n=!0)},o(e){ue(r),n=!1},d(e){r&&r.d(e),e&&E(t)}}}function Mn(e,t,n){let{repositories:r}=t,{open:o}=t,{onCreate:l}=t,{onClose:s}=t;return e.$$set=e=>{"repositories"in e&&n(0,r=e.repositories),"open"in e&&n(1,o=e.open),"onCreate"in e&&n(2,l=e.onCreate),"onClose"in e&&n(3,s=e.onClose)},[r,o,l,s]}class Fn extends ye{constructor(e){super(),we(this,e,Mn,Bn,a,{repositories:0,open:1,onCreate:2,onClose:3})}}class Tn{moveIssue(e,t,n,r){const o=JSON.stringify({id:e,before:n,after:r,column:t});return Rn(this.appURL("/board/issues/move"),{method:"POST",body:o})}listCards(e){return Rn(this.appURL(`/board/cards${An(e)}`))}getBoard(){return Rn(this.appURL("/board"))}getLoggedInUser(){return Rn(this.appURL("/login_check")).catch((e=>null))}listUpdates(e,t){return Rn(this.appURL(`/board/updates?cursor=${t}${An(e,"&")}`))}appURL(e){return`/wuffle${e}`}}function Rn(e,t){return fetch(e,{...t,credentials:"include"}).then((e=>{const{ok:t,status:n}=e;if(!t){const t=new Error("HTTP "+n);throw t.status=n,t.response=e,t}return e})).then((e=>e.text())).then((e=>JSON.parse(e)))}function An(e,t="?"){return e?`${t}s=${encodeURIComponent(e)}`:""}var In="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Pn=function(e,t){return Array.prototype.slice.call(e,t)},Vn="function"==typeof setImmediate?function(e){setImmediate(e)}:"undefined"!=typeof process&&process.nextTick?process.nextTick:function(e){setTimeout(e,0)},Yn=function(e,t,n){e&&Vn((function(){e.apply(n||null,t||[])}))},Un=function(e,t){var n=t||{},r={};return void 0===e&&(e={}),e.on=function(t,n){return r[t]?r[t].push(n):r[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var o=arguments.length;if(1===o)delete r[t];else if(0===o)r={};else{var l=r[t];if(!l)return e;l.splice(l.indexOf(n),1)}return e},e.emit=function(){var t=Pn(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var o=(r[t]||[]).slice(0);return function(){var r=Pn(arguments),l=this||e;if("error"===t&&!1!==n.throws&&!o.length)throw 1===r.length?r[0]:r;return o.forEach((function(o){n.async?Yn(o,r,l):o.apply(l,r),o._once&&e.off(t,o)})),e}},e},jn=In.CustomEvent;var Kn=function(){try{var e=new jn("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?jn:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n},Xn=[],Wn="",Gn=/^on/;for(Wn in In)Gn.test(Wn)&&Xn.push(Wn.slice(2));var Jn=Xn,Qn=In.document,Zn=function(e,t,n,r){return e.addEventListener(t,n,r)},er=function(e,t,n,r){return e.removeEventListener(t,n,r)},tr=[];In.addEventListener||(Zn=function(e,t,n){return e.attachEvent("on"+t,function(e,t,n){var r=rr(e,t,n)||function(e,t,n){return function(t){var r=t||In.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},r.which=r.which||r.keyCode,n.call(e,r)}}(e,0,n);return tr.push({wrapper:r,element:e,type:t,fn:n}),r}(e,t,n))},er=function(e,t,n){var r=rr(e,t,n);if(r)return e.detachEvent("on"+t,r)});var nr={add:Zn,remove:er,fabricate:function(e,t,n){var r=-1===Jn.indexOf(t)?new Kn(t,{detail:n}):function(){var e;Qn.createEvent?(e=Qn.createEvent("Event")).initEvent(t,!0,!0):Qn.createEventObject&&(e=Qn.createEventObject());return e}();e.dispatchEvent?e.dispatchEvent(r):e.fireEvent("on"+t,r)}};function rr(e,t,n){var r=function(e,t,n){var r,o;for(r=0;r<tr.length;r++)if((o=tr[r]).element===e&&o.type===t&&o.fn===n)return r}(e,t,n);if(r){var o=tr[r].wrapper;return tr.splice(r,1),o}}var or={};function lr(e){var t=or[e];return t?t.lastIndex=0:or[e]=t=new RegExp("(?:^|\\s)"+e+"(?:\\s|$)","g"),t}var sr={add:function(e,t){var n=e.className;n.length?lr(t).test(n)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(lr(t)," ").trim()}},ir=document,cr=ir.documentElement;function ar(e,t,n,r){In.navigator.pointerEnabled?nr[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[n],r):In.navigator.msPointerEnabled?nr[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[n],r):(nr[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[n],r),nr[t](e,n,r))}function ur(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function dr(e){var t=e.getBoundingClientRect();return{left:t.left+fr("scrollLeft","pageXOffset"),top:t.top+fr("scrollTop","pageYOffset")}}function fr(e,t){return void 0!==In[t]?In[t]:cr.clientHeight?cr[e]:ir.body[e]}function mr(e,t,n){var r,o=(e=e||{}).className||"";return e.className+=" gu-hide",r=ir.elementFromPoint(t,n),e.className=o,r}function pr(){return!1}function hr(){return!0}function gr(e){return e.width||e.right-e.left}function vr(e){return e.height||e.bottom-e.top}function $r(e){return e.parentNode===ir?null:e.parentNode}function wr(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||yr(e)}function yr(e){return!!e&&("false"!==e.contentEditable&&("true"===e.contentEditable||yr($r(e))))}function br(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function kr(e,t){var n=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),r={pageX:"clientX",pageY:"clientY"};return e in r&&!(e in n)&&r[e]in n&&(e=r[e]),n[e]}var xr=function(e,t){var n,r,o,l,s,i,c,a,u,d,f,m=arguments.length;1===m&&!1===Array.isArray(e)&&(t=e,e=[]);var p,h=null,g=t||{};void 0===g.moves&&(g.moves=hr),void 0===g.accepts&&(g.accepts=hr),void 0===g.invalid&&(g.invalid=H),void 0===g.containers&&(g.containers=e||[]),void 0===g.isContainer&&(g.isContainer=pr),void 0===g.copy&&(g.copy=!1),void 0===g.copySortSource&&(g.copySortSource=!1),void 0===g.revertOnSpill&&(g.revertOnSpill=!1),void 0===g.removeOnSpill&&(g.removeOnSpill=!1),void 0===g.direction&&(g.direction="vertical"),void 0===g.ignoreInputTextSelection&&(g.ignoreInputTextSelection=!0),void 0===g.mirrorContainer&&(g.mirrorContainer=ir.body);var v=Un({containers:g.containers,start:D,end:N,cancel:M,remove:B,destroy:k,canMove:S,dragging:!1});return!0===g.removeOnSpill&&v.on("over",I).on("out",P),w(),v;function $(e){return-1!==v.containers.indexOf(e)||g.isContainer(e)}function w(e){var t=e?"remove":"add";ar(cr,t,"mousedown",C),ar(cr,t,"mouseup",L)}function y(e){ar(cr,e?"remove":"add","mousemove",E)}function b(e){var t=e?"remove":"add";nr[t](cr,"selectstart",x),nr[t](cr,"click",x)}function k(){w(!0),L({})}function x(e){p&&e.preventDefault()}function C(e){if(i=e.clientX,c=e.clientY,!(1!==ur(e)||e.metaKey||e.ctrlKey)){var t=e.target,n=_(t);n&&(p=n,y(),"mousedown"===e.type&&(wr(t)?t.focus():e.preventDefault()))}}function E(e){if(p)if(0!==ur(e)){if(!(void 0!==e.clientX&&Math.abs(e.clientX-i)<=(g.slideFactorX||0)&&void 0!==e.clientY&&Math.abs(e.clientY-c)<=(g.slideFactorY||0))){if(g.ignoreInputTextSelection){var t=kr("clientX",e)||0,n=kr("clientY",e)||0;if(wr(ir.elementFromPoint(t,n)))return}var r=p;y(!0),b(),N(),q(r);var a=dr(o);l=kr("pageX",e)-a.left,s=kr("pageY",e)-a.top,sr.add(d||o,"gu-transit"),V(),A(e)}}else L({})}function _(e){if(!(v.dragging&&n||$(e))){for(var t=e;$r(e)&&!1===$($r(e));){if(g.invalid(e,t))return;if(!(e=$r(e)))return}var r=$r(e);if(r)if(!g.invalid(e,t))if(g.moves(e,r,t,br(e)))return{item:e,source:r}}}function S(e){return!!_(e)}function D(e){var t=_(e);t&&q(t)}function q(e){K(e.item,e.source)&&(d=e.item.cloneNode(!0),v.emit("cloned",d,e.item,"copy")),r=e.source,o=e.item,a=u=br(e.item),v.dragging=!0,v.emit("drag",o,r)}function H(){return!1}function N(){if(v.dragging){var e=d||o;z(e,$r(e))}}function O(){p=!1,y(!0),b(!0)}function L(e){if(O(),v.dragging){var t=d||o,l=kr("clientX",e)||0,s=kr("clientY",e)||0,i=R(mr(n,l,s),l,s);i&&(d&&g.copySortSource||!d||i!==r)?z(t,i):g.removeOnSpill?B():M()}}function z(e,t){var n=$r(e);d&&g.copySortSource&&t===r&&n.removeChild(o),T(t)?v.emit("cancel",e,r,r):v.emit("drop",e,t,r,u),F()}function B(){if(v.dragging){var e=d||o,t=$r(e);t&&t.removeChild(e),v.emit(d?"cancel":"remove",e,t,r),F()}}function M(e){if(v.dragging){var t=arguments.length>0?e:g.revertOnSpill,n=d||o,l=$r(n),s=T(l);!1===s&&t&&(d?l&&l.removeChild(d):r.insertBefore(n,a)),s||t?v.emit("cancel",n,r,r):v.emit("drop",n,l,r,u),F()}}function F(){var e=d||o;O(),Y(),e&&sr.rm(e,"gu-transit"),f&&clearTimeout(f),v.dragging=!1,h&&v.emit("out",e,h,r),v.emit("dragend",e),r=o=d=a=u=f=h=null}function T(e,t){var l;return l=void 0!==t?t:n?u:br(d||o),e===r&&l===a}function R(e,t,n){for(var l=e;l&&!s();)l=$r(l);return l;function s(){if(!1===$(l))return!1;var s=U(l,e),i=j(l,s,t,n);return!!T(l,i)||g.accepts(o,l,r,i)}}function A(e){if(n){e.preventDefault();var t=kr("clientX",e)||0,i=kr("clientY",e)||0,c=t-l,f=i-s;n.style.left=c+"px",n.style.top=f+"px";var m=d||o,p=mr(n,t,i),$=R(p,t,i),w=null!==$&&$!==h;(w||null===$)&&(h&&x("out"),h=$,w&&x("over"));var y=$r(m);if($!==r||!d||g.copySortSource){var b,k=U($,p);if(null!==k)b=j($,k,t,i);else{if(!0!==g.revertOnSpill||d)return void(d&&y&&y.removeChild(m));b=a,$=r}(null===b&&w||b!==m&&b!==br(m))&&(u=b,$.insertBefore(m,b),v.emit("shadow",m,$,r))}else y&&y.removeChild(m)}function x(e){v.emit(e,m,h,r)}}function I(e){sr.rm(e,"gu-hide")}function P(e){v.dragging&&sr.add(e,"gu-hide")}function V(){if(!n){var e=o.getBoundingClientRect();(n=o.cloneNode(!0)).style.width=gr(e)+"px",n.style.height=vr(e)+"px",sr.rm(n,"gu-transit"),sr.add(n,"gu-mirror"),g.mirrorContainer.appendChild(n),ar(cr,"add","mousemove",A),sr.add(g.mirrorContainer,"gu-unselectable"),v.emit("cloned",n,o,"mirror")}}function Y(){n&&(sr.rm(g.mirrorContainer,"gu-unselectable"),ar(cr,"remove","mousemove",A),$r(n).removeChild(n),n=null)}function U(e,t){for(var n=t;n!==e&&$r(n)!==e;)n=$r(n);return n===cr?null:n}function j(e,t,n,r){var o="horizontal"===g.direction,l=t!==e?function(){var e=t.getBoundingClientRect();if(o)return s(n>e.left+gr(e)/2);return s(r>e.top+vr(e)/2)}():function(){var t,l,s,i=e.children.length;for(t=0;t<i;t++){if(l=e.children[t],s=l.getBoundingClientRect(),o&&s.left+s.width/2>n)return l;if(!o&&s.top+s.height/2>r)return l}return null}();return l;function s(e){return e?br(t):t}}function K(e,t){return"boolean"==typeof g.copy?g.copy:g.copy(e,t)}};const{document:Cr,window:Er}=me;function _r(e,t,n){const r=e.slice();return r[52]=t[n],r}function Sr(e,t,n){const r=e.slice();return r[55]=t[n],r[57]=n,r}function Dr(e,t,n){const r=e.slice();return r[58]=t[n],r}function qr(e){return Cr.title=e[3]+" · Wuffle Board",{c:t,m:t,d:t}}function Hr(e){let n,r;return{c(){n=S("img"),c(n.src,r="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2080%2080%22%3E%3Cpath%20d%3D%22M12%200h56c7%200%2012%205%2012%2012v56c0%207-5%2012-12%2012H12C5%2080%200%2075%200%2068V12C0%205%205%200%2012%200z%22%20fill%3D%22%23999%22%2F%3E%3Cpath%20d%3D%22M15%2010h21c3%200%205%202%205%205v6c0%203-2%205-5%205H15c-2%200-4-2-4-5v-6c0-3%202-5%204-5zm0%2020h21c3%200%205%202%205%205v6c0%202-2%204-5%204H15c-2%200-4-1-4-4v-6c0-3%202-5%204-5zm27%2022h21c2%200%204%202%204%205v6c0%202-2%204-4%204H42c-2%200-4-2-4-4v-6c0-3%202-5%204-5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E")||z(n,"src","data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2080%2080%22%3E%3Cpath%20d%3D%22M12%200h56c7%200%2012%205%2012%2012v56c0%207-5%2012-12%2012H12C5%2080%200%2075%200%2068V12C0%205%205%200%2012%200z%22%20fill%3D%22%23999%22%2F%3E%3Cpath%20d%3D%22M15%2010h21c3%200%205%202%205%205v6c0%203-2%205-5%205H15c-2%200-4-2-4-5v-6c0-3%202-5%204-5zm0%2020h21c3%200%205%202%205%205v6c0%202-2%204-5%204H15c-2%200-4-1-4-4v-6c0-3%202-5%204-5zm27%2022h21c2%200%204%202%204%205v6c0%202-2%204-4%204H42c-2%200-4-2-4-4v-6c0-3%202-5%204-5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"),z(n,"width","64"),z(n,"alt","Loading")},m(e,t){C(e,n,t)},p:t,d(e){e&&E(n)}}}function Nr(e){let n,r,o,l,s,i,a,u,d;return{c(){n=S("div"),r=S("img"),l=H(),s=S("p"),s.textContent="We could not load the board.",i=H(),a=S("button"),a.textContent="Retry",c(r.src,o="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2080%2080%22%3E%3Cpath%20d%3D%22M12%200h56c7%200%2012%205%2012%2012v56c0%207-5%2012-12%2012H12C5%2080%200%2075%200%2068V12C0%205%205%200%2012%200z%22%20fill%3D%22%23d35f5f%22%2F%3E%3Cpath%20d%3D%22M30%2038l19%207c3%201%204%204%203%206l-2%206c-1%202-4%203-6%203l-20-8c-2-1-3-3-2-6l2-6c1-2%203-3%206-2z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M12%2066l18-10c2-1%205-1%206%202l3%205c1%202%201%205-1%206L19%2080c-2%201-5%200-6-2l-3-6c-1-2%200-4%202-6z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M46%2060l20%205c2%201%204%203%203%206l-1%206c-1%202-3%204-6%203l-20-6c-3%200-4-3-3-5l1-6c1-2%203-4%206-3z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E")||z(r,"src","data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2080%2080%22%3E%3Cpath%20d%3D%22M12%200h56c7%200%2012%205%2012%2012v56c0%207-5%2012-12%2012H12C5%2080%200%2075%200%2068V12C0%205%205%200%2012%200z%22%20fill%3D%22%23d35f5f%22%2F%3E%3Cpath%20d%3D%22M30%2038l19%207c3%201%204%204%203%206l-2%206c-1%202-4%203-6%203l-20-8c-2-1-3-3-2-6l2-6c1-2%203-3%206-2z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M12%2066l18-10c2-1%205-1%206%202l3%205c1%202%201%205-1%206L19%2080c-2%201-5%200-6-2l-3-6c-1-2%200-4%202-6z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M46%2060l20%205c2%201%204%203%203%206l-1%206c-1%202-3%204-6%203l-20-6c-3%200-4-3-3-5l1-6c1-2%203-4%206-3z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"),z(r,"width","128"),z(r,"alt","An error occured"),z(s,"class","svelte-88s1pm"),z(a,"class","btn btn-primary"),z(n,"class","taskboard-error svelte-88s1pm")},m(t,o){C(t,n,o),b(n,r),b(n,l),b(n,s),b(n,i),b(n,a),u||(d=O(a,"click",e[27]),u=!0)},p:t,d(e){e&&E(n),u=!1,d()}}}function Or(e){let t,n,r=e[6],o=[];for(let t=0;t<r.length;t+=1)o[t]=zr(Dr(e,r,t));const l=e=>ue(o[e],1,1,(()=>{o[e]=null}));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=N()},m(e,r){for(let t=0;t<o.length;t+=1)o[t].m(e,r);C(e,t,r),n=!0},p(e,n){if(64&n[0]){let s;for(r=e[6],s=0;s<r.length;s+=1){const l=Dr(e,r,s);o[s]?(o[s].p(l,n),ae(o[s],1)):(o[s]=zr(l),o[s].c(),ae(o[s],1),o[s].m(t.parentNode,t))}for(ie(),s=r.length;s<o.length;s+=1)l(s);ce()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)ae(o[e]);n=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)ue(o[e]);n=!1},d(e){_(o,e),e&&E(t)}}}function Lr(e){let t,n,r;return{c(){t=q("Could not reach the board back-end. "),n=S("a"),n.textContent="Reload board.",r=H(),z(n,"href","")},m(e,o){C(e,t,o),C(e,n,o),C(e,r,o)},d(e){e&&E(t),e&&E(n),e&&E(r)}}}function zr(e){let t,n;return t=new ft({props:{type:"warning",message:e[58].action+" failed",$$slots:{default:[Lr]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};64&n[0]&&(r.message=e[58].action+" failed"),1073741824&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function Br(e){let t,n;return t=new ft({props:{type:"error",message:"Failed to move card",$$slots:{default:[Tr]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};512&n[0]|1073741824&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function Mr(e){let t,n,r;return{c(){t=q("Please "),n=S("a"),n.textContent="login via GitHub",r=q(" to interact with cards."),z(n,"href","/wuffle/login"),z(n,"aria-label","Login via GitHub")},m(e,o){C(e,t,o),C(e,n,o),C(e,r,o)},d(e){e&&E(t),e&&E(n),e&&E(r)}}}function Fr(e){let t;return{c(){t=q("It seems like you do not have write access to the underlying GitHub repository.")},m(e,n){C(e,t,n)},d(e){e&&E(t)}}}function Tr(e){let t;function n(e,t){return"forbidden"===e[9]?Fr:Mr}let r=n(e),o=r(e);return{c(){o.c(),t=N()},m(e,n){o.m(e,n),C(e,t,n)},p(e,l){r!==(r=n(e))&&(o.d(1),o=r(e),o&&(o.c(),o.m(t.parentNode,t)))},d(e){o.d(e),e&&E(t)}}}function Rr(e){let t,n,r,o=!e[5]&&Or(e),l=e[9]&&Br(e);return{c(){o&&o.c(),t=H(),l&&l.c(),n=N()},m(e,s){o&&o.m(e,s),C(e,t,s),l&&l.m(e,s),C(e,n,s),r=!0},p(e,r){e[5]?o&&(ie(),ue(o,1,1,(()=>{o=null})),ce()):o?(o.p(e,r),32&r[0]&&ae(o,1)):(o=Or(e),o.c(),ae(o,1),o.m(t.parentNode,t)),e[9]?l?(l.p(e,r),512&r[0]&&ae(l,1)):(l=Br(e),l.c(),ae(l,1),l.m(n.parentNode,n)):l&&(ie(),ue(l,1,1,(()=>{l=null})),ce())},i(e){r||(ae(o),ae(l),r=!0)},o(e){ue(o),ue(l),r=!1},d(e){o&&o.d(e),e&&E(t),l&&l.d(e),e&&E(n)}}}function Ar(e){let t,n,r;return n=new Ze({props:{title:"Login with GitHub",rounded:!0,$$slots:{default:[Pr]},$$scope:{ctx:e}}}),{c(){t=S("a"),he(n.$$.fragment),z(t,"href","/wuffle/login"),z(t,"aria-label","Login with GitHub")},m(e,o){C(e,t,o),ge(n,t,null),r=!0},p(e,t){const r={};1073741824&t[1]&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){r||(ae(n.$$.fragment,e),r=!0)},o(e){ue(n.$$.fragment,e),r=!1},d(e){e&&E(t),ve(n)}}}function Ir(e){let t,n,r;return n=new Ze({props:{title:`Logout ${e[8].login}`,rounded:!0,$$slots:{default:[Vr]},$$scope:{ctx:e}}}),{c(){t=S("a"),he(n.$$.fragment),z(t,"href","/wuffle/logout"),z(t,"aria-label","Logout")},m(e,o){C(e,t,o),ge(n,t,null),r=!0},p(e,t){const r={};256&t[0]&&(r.title=`Logout ${e[8].login}`),256&t[0]|1073741824&t[1]&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){r||(ae(n.$$.fragment,e),r=!0)},o(e){ue(n.$$.fragment,e),r=!1},d(e){e&&E(t),ve(n)}}}function Pr(e){let t,n;return{c(){t=D("svg"),n=D("path"),z(n,"fill-rule","evenodd"),z(n,"d","M12 14.002a.998.998 0 0 1-.998.998H1.001A1 1 0 0 1 0 13.999V13c0-2.633 4-4 4-4s.229-.409 0-1c-.841-.62-.944-1.59-1-4 .173-2.413 1.867-3 3-3s2.827.586 3 3c-.056 2.41-.159 3.38-1 4-.229.59 0 1 0 1s4 1.367 4 4v1.002z"),z(t,"height","1.3em"),z(t,"fill","currentColor"),z(t,"viewBox","0 0 12 16"),z(t,"version","1.1"),z(t,"aria-hidden","true")},m(e,r){C(e,t,r),b(t,n)},d(e){e&&E(t)}}}function Vr(e){let t,n;return{c(){t=S("img"),c(t.src,n=e[8].avatar_url+"&s=40")||z(t,"src",n),F(t,"max-width","100%"),z(t,"alt","Logged in user avatar")},m(e,n){C(e,t,n)},p(e,r){256&r[0]&&!c(t.src,n=e[8].avatar_url+"&s=40")&&z(t,"src",n)},d(e){e&&E(t)}}}function Yr(e){let t,n,r=e[0],o=[];for(let t=0;t<r.length;t+=1)o[t]=Wr(_r(e,r,t));const l=e=>ue(o[e],1,1,(()=>{o[e]=null}));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=N()},m(e,r){for(let t=0;t<o.length;t+=1)o[t].m(e,r);C(e,t,r),n=!0},p(e,n){if(430087&n[0]){let s;for(r=e[0],s=0;s<r.length;s+=1){const l=_r(e,r,s);o[s]?(o[s].p(l,n),ae(o[s],1)):(o[s]=Wr(l),o[s].c(),ae(o[s],1),o[s].m(t.parentNode,t))}for(ie(),s=r.length;s<o.length;s+=1)l(s);ce()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)ae(o[e]);n=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)ue(o[e]);n=!1},d(e){_(o,e),e&&E(t)}}}function Ur(e){let t,n;return{c(){t=D("svg"),n=D("path"),z(n,"d","M605 515l149 122c5 3 12 0 12-6v-76h186c4 0 7-2 7-6v-77c0-4-3-7-7-7H766v-75c0-6-7-9-12-5L605 504c-4 3-4 8 0 11zM65 547c0 4 3 8 7 8h186v74c0 6 7 9 12 6l149-120c4-3 4-8 0-11L270 385c-5-4-12-1-12 5v75H72c-4 0-7 3-7 7z"),z(t,"viewBox","64 64 896 896"),z(t,"height","1em"),z(t,"aria-hidden","true"),z(t,"fill","currentColor")},m(e,r){C(e,t,r),b(t,n)},d(e){e&&E(t)}}}function jr(e){let t,n;return{c(){t=D("svg"),n=D("path"),z(n,"d","M602 548c0 4 4 8 8 8h186v74c0 6 7 9 11 6l150-120c3-3 3-8 0-11L807 386c-4-4-11-1-11 5v75H609c-4 0-7 3-7 7zM68 514l149 122c4 3 11 0 11-6v-76h186c4 0 8-2 8-6v-77c0-4-4-7-8-7H228v-75c0-6-7-9-11-5L68 503c-4 3-4 8 0 11z"),z(t,"viewBox","64 64 896 896"),z(t,"height","1em"),z(t,"aria-hidden","true"),z(t,"fill","currentColor")},m(e,r){C(e,t,r),b(t,n)},d(e){e&&E(t)}}}function Kr(e){let t,n,r,o,l,i=[],c=new Map,a=e[2][e[52].name]||[];const u=e=>e[55].id;for(let t=0;t<a.length;t+=1){let n=Sr(e,a,t),r=u(n);c.set(r,i[t]=Xr(r,n))}return{c(){t=S("div");for(let e=0;e<i.length;e+=1)i[e].c();z(t,"class","taskboard-column-items svelte-88s1pm"),z(t,"data-column-id",n=e[52].name)},m(n,c){C(n,t,c);for(let e=0;e<i.length;e+=1)i[e].m(t,null);r=!0,o||(l=O(t,"scroll",(function(){s(e[18](e[52].name))&&e[18](e[52].name).apply(this,arguments)})),o=!0)},p(o,l){e=o,32773&l[0]&&(a=e[2][e[52].name]||[],ie(),i=function(e,t,n,r,o,l,s,i,c,a,u,d){let f=e.length,m=l.length,p=f;const h={};for(;p--;)h[e[p].key]=p;const g=[],v=new Map,$=new Map;for(p=m;p--;){const e=d(o,l,p),i=n(e);let c=s.get(i);c?r&&c.p(e,t):(c=a(i,e),c.c()),v.set(i,g[p]=c),i in h&&$.set(i,Math.abs(p-h[i]))}const w=new Set,y=new Set;function b(e){ae(e,1),e.m(i,u),s.set(e.key,e),u=e.first,m--}for(;f&&m;){const t=g[m-1],n=e[f-1],r=t.key,o=n.key;t===n?(u=t.first,f--,m--):v.has(o)?!s.has(r)||w.has(r)?b(t):y.has(o)?f--:$.get(r)>$.get(o)?(y.add(r),b(t)):(w.add(o),f--):(c(n,s),f--)}for(;f--;){const t=e[f];v.has(t.key)||c(t,s)}for(;m;)b(g[m-1]);return g}(i,l,u,1,e,a,c,t,pe,Xr,null,Sr),ce()),(!r||1&l[0]&&n!==(n=e[52].name))&&z(t,"data-column-id",n)},i(e){if(!r){for(let e=0;e<a.length;e+=1)ae(i[e]);r=!0}},o(e){for(let e=0;e<i.length;e+=1)ue(i[e]);r=!1},d(e){e&&E(t);for(let e=0;e<i.length;e+=1)i[e].d();o=!1,l()}}}function Xr(e,t){let n,r,o,l,s,i;return r=new _n({props:{item:t[55],onSelect:t[15]}}),{key:e,first:null,c(){n=S("div"),he(r.$$.fragment),o=H(),z(n,"class","card-container"),z(n,"data-card-id",l=t[55].id),z(n,"data-card-order",s=t[55].order),this.first=n},m(e,t){C(e,n,t),ge(r,n,null),b(n,o),i=!0},p(e,o){t=e;const c={};5&o[0]&&(c.item=t[55]),r.$set(c),(!i||5&o[0]&&l!==(l=t[55].id))&&z(n,"data-card-id",l),(!i||5&o[0]&&s!==(s=t[55].order))&&z(n,"data-card-order",s)},i(e){i||(ae(r.$$.fragment,e),i=!0)},o(e){ue(r.$$.fragment,e),i=!1},d(e){e&&E(n),ve(r)}}}function Wr(e){let t,n,r,o,l,s,i,c,a,u,d,f,m,p,h,g=e[52].name+"",v=(e[1][e[52].name]||[]).length+"";function $(e,t){return e[12][e[52].name]?jr:Ur}let w=$(e),y=w(e);function k(...t){return e[28](e[52],...t)}let x=!e[12][e[52].name]&&Kr(e);return{c(){t=S("div"),n=S("div"),r=S("button"),y.c(),l=H(),s=S("span"),i=q(g),c=H(),a=S("span"),u=q(v),d=H(),x&&x.c(),f=H(),z(r,"class","taskboard-column-collapse btn btn-link svelte-88s1pm"),z(r,"title",o=(e[12][e[52].name]?"Expand":"Collapse")+" column"),z(s,"class","taskboard-column-name svelte-88s1pm"),z(a,"class","taskboard-column-issue-count svelte-88s1pm"),z(n,"class","taskboard-column-header svelte-88s1pm"),z(t,"class","taskboard-column svelte-88s1pm"),T(t,"collapsed",e[12][e[52].name])},m(e,o){C(e,t,o),b(t,n),b(n,r),y.m(r,null),b(n,l),b(n,s),b(s,i),b(n,c),b(n,a),b(a,u),b(t,d),x&&x.m(t,null),b(t,f),m=!0,p||(h=O(r,"click",k),p=!0)},p(n,l){w!==(w=$(e=n))&&(y.d(1),y=w(e),y&&(y.c(),y.m(r,null))),(!m||4097&l[0]&&o!==(o=(e[12][e[52].name]?"Expand":"Collapse")+" column"))&&z(r,"title",o),(!m||1&l[0])&&g!==(g=e[52].name+"")&&B(i,g),(!m||3&l[0])&&v!==(v=(e[1][e[52].name]||[]).length+"")&&B(u,v),e[12][e[52].name]?x&&(ie(),ue(x,1,1,(()=>{x=null})),ce()):x?(x.p(e,l),4097&l[0]&&ae(x,1)):(x=Kr(e),x.c(),ae(x,1),x.m(t,f)),4097&l[0]&&T(t,"collapsed",e[12][e[52].name])},i(e){m||(ae(x),m=!0)},o(e){ue(x),m=!1},d(e){e&&E(t),y.d(),x&&x.d(),p=!1,h()}}}function Gr(e){let t,n,r,o,s,i,a,u,d,f,m,p,h,g,v,$,w,y,k,x,_,D,q,B,M,F,T,R,A,I,P,V,Y,U,j,K=!e[4]&&qr(e);o=new nt({props:{shown:e[4],$$slots:{default:[Hr]},$$scope:{ctx:e}}}),i=new Fn({props:{repositories:e[11].repo,onCreate:e[21],open:e[10],onClose:e[20]}});let X=e[5]&&Nr(e);d=new it({props:{$$slots:{default:[Rr]},$$scope:{ctx:e}}}),m=new ot({}),B=new Ge({props:{value:e[7],completionOptions:e[11],onChange:e[16],placeholder:"Filter board..."}});const W=[Ir,Ar],G=[];function J(e,t){return e[8]?0:1}A=J(e),I=G[A]=W[A](e);let Q=!e[5]&&Yr(e);return{c(){K&&K.c(),t=N(),n=H(),r=S("div"),he(o.$$.fragment),s=H(),he(i.$$.fragment),a=H(),X&&X.c(),u=H(),he(d.$$.fragment),f=H(),he(m.$$.fragment),p=H(),h=S("nav"),g=S("a"),v=S("img"),y=H(),k=S("button"),x=S("span"),_=H(),D=S("div"),q=S("form"),he(B.$$.fragment),M=H(),F=S("form"),F.innerHTML='<button class="btn btn-outline-primary" type="submit" title="Create new issue (n)"><svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.75 2a.75.75 0 01.75.75V7h4.25a.75.75 0 110 1.5H8.5v4.25a.75.75 0 11-1.5 0V8.5H2.75a.75.75 0 010-1.5H7V2.75A.75.75 0 017.75 2z"></path></svg></button>',T=H(),R=S("div"),I.c(),P=H(),V=S("main"),Q&&Q.c(),c(v.src,$="./logo.svg")||z(v,"src","./logo.svg"),z(v,"height","30px"),z(v,"alt","Wuffle board logo"),z(v,"class","logo"),z(g,"class","navbar-brand m-0 mr-3 my-2"),z(g,"href","/"),z(g,"aria-label",e[3]),z(g,"title",w=e[3]+" - Wuffle board"),z(x,"class","navbar-toggler-icon"),z(k,"class","navbar-toggler"),z(k,"type","button"),z(k,"data-toggle","collapse"),z(k,"data-target","#"+e[13]),z(k,"aria-controls",e[13]),z(k,"aria-expanded","false"),z(k,"aria-label","Toggle navigation"),z(q,"class","form-inline board-filter-parent my-2 my-lg-0"),z(F,"class","form-inline mx-3 my-2 my-sm-0"),z(D,"class","collapse navbar-collapse"),z(D,"id",e[13]),z(R,"class","taskboard-header-login ml-2"),z(h,"class","navbar navbar-expand navbar-light taskboard-header"),z(V,"class","taskboard-board svelte-88s1pm"),z(r,"class","taskboard svelte-88s1pm")},m(l,c){K&&K.m(Cr.head,null),b(Cr.head,t),C(l,n,c),C(l,r,c),ge(o,r,null),b(r,s),ge(i,r,null),b(r,a),X&&X.m(r,null),b(r,u),ge(d,r,null),b(r,f),ge(m,r,null),b(r,p),b(r,h),b(h,g),b(g,v),b(h,y),b(h,k),b(k,x),b(h,_),b(h,D),b(D,q),ge(B,q,null),b(D,M),b(D,F),b(h,T),b(h,R),G[A].m(R,null),b(r,P),b(r,V),Q&&Q.m(V,null),Y=!0,U||(j=[O(Er,"keydown",e[22]),O(q,"submit",L(no)),O(F,"submit",L(e[19]))],U=!0)},p(e,n){e[4]?K&&(K.d(1),K=null):K||(K=qr(e),K.c(),K.m(t.parentNode,t));const l={};16&n[0]&&(l.shown=e[4]),1073741824&n[1]&&(l.$$scope={dirty:n,ctx:e}),o.$set(l);const s={};2048&n[0]&&(s.repositories=e[11].repo),1024&n[0]&&(s.open=e[10]),i.$set(s),e[5]?X?X.p(e,n):(X=Nr(e),X.c(),X.m(r,u)):X&&(X.d(1),X=null);const c={};608&n[0]|1073741824&n[1]&&(c.$$scope={dirty:n,ctx:e}),d.$set(c),(!Y||8&n[0])&&z(g,"aria-label",e[3]),(!Y||8&n[0]&&w!==(w=e[3]+" - Wuffle board"))&&z(g,"title",w);const a={};128&n[0]&&(a.value=e[7]),2048&n[0]&&(a.completionOptions=e[11]),B.$set(a);let f=A;A=J(e),A===f?G[A].p(e,n):(ie(),ue(G[f],1,1,(()=>{G[f]=null})),ce(),I=G[A],I?I.p(e,n):(I=G[A]=W[A](e),I.c()),ae(I,1),I.m(R,null)),e[5]?Q&&(ie(),ue(Q,1,1,(()=>{Q=null})),ce()):Q?(Q.p(e,n),32&n[0]&&ae(Q,1)):(Q=Yr(e),Q.c(),ae(Q,1),Q.m(V,null))},i(e){Y||(ae(o.$$.fragment,e),ae(i.$$.fragment,e),ae(d.$$.fragment,e),ae(m.$$.fragment,e),ae(B.$$.fragment,e),ae(I),ae(Q),Y=!0)},o(e){ue(o.$$.fragment,e),ue(i.$$.fragment,e),ue(d.$$.fragment,e),ue(m.$$.fragment,e),ue(B.$$.fragment,e),ue(I),ue(Q),Y=!1},d(e){K&&K.d(e),E(t),e&&E(n),e&&E(r),ve(o),ve(i),X&&X.d(),ve(d),ve(m),ve(B),G[A].d(),Q&&Q.d(),U=!1,l(j)}}}const Jr="Taskboard_columns_collapsed_state";function Qr(){if("undefined"==typeof window)return"";const e=window.location.search.split(/[?&]/).find((e=>/^s=/.test(e)));return e?decodeURIComponent(e.split(/=/)[1]):""}function Zr(e){const t=e.dataset;return parseFloat(t.cardOrder)}function eo(e){return e.dataset.columnId}function to(e,t,n,r){const o=n&&n.column,l=r&&r.column,s=r&&r.order;if(o){const n=function(e,t=[]){const{id:n}=e;return t.filter((e=>e.id!==n))}(t,e[o]);e={...e,[o]:n}}if(l){const n=function(e,t,n=[]){const r=n.findIndex((e=>e.order>t));return-1===r?[...n,e]:[...n.slice(0,r),e,...n.slice(r)]}(t,s,e[l]);e={...e,[l]:n}}return e}const no=()=>{};function ro(e,t,n){let r,o,l,s;const i=new Tn,c="undefined"==typeof window||void 0===window.localStorage?new Ce:new xe,a="undefined"==typeof window||void 0===window.history?new _e:new Ee,u=ke();let d="",f=[],m={},p={},h=c.get(Jr,{}),g=!0,v=0,$=null,w=[],y=Qr(),b=null,k=null,x=!1,C=!1,E={},_={};function S(e,t={}){return r=>r().then((t=>(function(e){n(6,w=w.filter((t=>t.action!==e)))}(e),t))).catch((r=>function(e,t,r){if(console.warn("%s failed",e,t),!1===r.display)throw t;const o=w.findIndex((t=>t.action===e)),l={action:e,error:t};n(6,w=-1!==o?[...w.slice(0,o),l,...w.slice(o+1)]:[...w,l])}(e,r,t)))}function D(e){console.error(e),n(5,$=e)}function q(){n(5,$=null)}function H(){return q(),n(6,w=[]),n(4,g=!0),Promise.all([i.getBoard().then((e=>{n(0,f=e.columns),n(3,d=e.name)})),O(),z(y)]).then((e=>{q()})).catch((e=>{D(e)})).finally((()=>{n(4,g=!1)}))}function N(e,t=!0){if(e===y)return;const r=y;n(7,y=e),t&&a.push(`/board${function(e,t="?"){return e?`${t}s=${encodeURIComponent(e)}`:""}(y)}`),r.trim()!==y.trim()&&S("Fetching cards")((()=>z(y)))}function O(){return S("User login check")((()=>i.getLoggedInUser().then((e=>{b&&!e?window.location.reload():n(8,b=e)}))))}function L(e,t){console.time("Taskboard#updateCards");const r={},o={};for(const t of Object.values(e))for(const e of t){const{id:t,user:n,milestone:l,assignees:s,labels:i,repository:c,requested_reviewers:a}=e;if((o.repo=o.repo||{})[c.owner.login+"/"+c.name]=!0,l){(o.milestone=o.milestone||{})[l.title]=!0}if(n){(o.author=o.author||{})[n.login]=!0}s.forEach((e=>{(o.assignee=o.assignee||{})[e.login]=!0})),a&&a.forEach((e=>{(o.reviewer=o.reviewer||{})[e.login]=!0})),i.forEach((e=>{if(!e.column_label){(o.label=o.label||{})[e.name]=!0}})),r[t]=e}n(23,m=e),p=r,n(11,_=Object.entries(o).reduce(((e,t)=>{const[n,r]=t;return e[n]=Object.keys(r),e}),{})),k=t,console.timeEnd("Taskboard#updateCards")}function z(e){return v++,i.listCards(e).then((t=>{if(e!==y)return;const{items:n,cursor:r}=t;L(n,r)})).finally((()=>v--))}function B(){if(v)return;const e=y;return S("Checking for updates",{display:!1})((()=>i.listUpdates(e,k).then((t=>{if(!t.length)return;if(e!==y)return;const{items:r,itemsById:o,cursor:l}=function(e,t,n){const r=e[e.length-1].id;return e.forEach((e=>{const{type:r,issue:o}=e,{id:l}=o,s=n[l],i="remove"!==r&&o;if(t={...t,...to(t,o,s,i)},"remove"===r){const{[l]:e,...t}=n;n=t}else n={...n,[l]:o}})),{cursor:r,itemsById:n,items:t}}(t,m,p);n(23,m=r),p=o,k=l}))))}U((()=>{H(),function(){const e=c.get("Taskboard_polling",!0),t=[e&&Se(B,3e3),e&&Se(O,6e4),a.onPop((()=>{N(Qr(),!1)}))]}()}));const M=xr({isContainer:e=>e.matches("[data-column-id]")});function F(e){"Escape"===e.key&&M.cancel(!0)}function T(e,t,r){e.column=r.column,e.order=r.order;const o=to(m,e,t,r);n(23,m={...m,...o});const l=o[r.column],s=l.findIndex((t=>t.id===e.id));return{after:l[s-1],before:l[s+1]}}function R(e){n(24,h={...h,[e.name]:!o[e.name]})}function A(e){return He(e)&&(De(t=e)||qe(t))&&e.links.some((e=>function(e){const{type:t}=e;return"CLOSES"===t}(e)&&p[e.target.id]));var t}function I(){n(10,C=!0)}function P(){n(10,C=!1)}M.on("drag",(()=>{document.addEventListener("keydown",F)})),M.on("dragend",(()=>{document.removeEventListener("keydown",F)})),M.on("drop",((e,t,r,o)=>{const l=function(e){return e.dataset.cardId}(e),s=Zr(e),c=e.previousElementSibling,a=o&&Zr(o),u=c&&Zr(c),d=u&&a?(u+a)/2:u?u+731241.218:a?a-811231.691:-71271.88455;!function(e,t,r){const{before:o,after:l}=T(e,t,r);i.moveIssue(e.id,r.column,o&&o.id,l&&l.id).catch((o=>{console.warn("reverting card movement",o),n(9,x=b?"forbidden":"authentication-required"),setTimeout((()=>{n(9,x=!1)}),8e3),T(e,r,t)}))}(p[l],{order:s,column:eo(r)},{order:d,column:eo(t)})}));return e.$$.update=()=>{1&e.$$.dirty[0]&&n(26,r=f.reduce(((e,t)=>(e[t.name]=t.collapsed,e)),{})),83886080&e.$$.dirty[0]&&n(12,o={...r,...h}),16777216&e.$$.dirty[0]&&c.set(Jr,h),8388608&e.$$.dirty[0]&&n(1,l=Object.keys(m).reduce(((e,t)=>{const n=m[t];return e[t]=n.filter((e=>!A(e))),e}),{})),33554434&e.$$.dirty[0]&&n(2,s=Object.keys(l).reduce(((e,t)=>{const n=E[t]||25,r=l[t];return e[t]=r.slice(0,n),e}),{}))},[f,l,s,d,g,$,w,y,b,x,C,_,o,u,H,function(e,t,n){/[\s:]+/.test(t)&&(t='"'+t+'"');const r=t&&`${e}:${t}`;if(!r)return;let o;const l=y.indexOf(r);return o=0===l?y.substring(r.length+1):l>0?y.substring(0,l-1)+y.substring(l+r.length):n&&y.trim()?`${y} ${e}:${t}`:r,N(o)},N,R,function(e){return t=function(t){const r=t.target,{scrollHeight:o,scrollTop:s,offsetHeight:i}=r;if(s+i>.95*o){const t=l[e]||[],r=E[e]||25;r<t.length&&n(25,E={...E,[e]:r+5})}},r=5,o=!1,function(){o||(t.apply(void 0,arguments),o=!0,setTimeout((function(){o=!1}),r))};var t,r,o},I,P,function(e,t){P(),window.open(`https://github.com/${e}/${t}/issues/new/choose`,"_blank")},function(e){(function(e){return!(!Ie(e)||Ae(e))&&"n"===e.key})(e)&&(I(),e.preventDefault())},m,h,E,r,()=>H(),(e,t)=>t.preventDefault()||R(e)]}console.timeEnd("Wuffle#load"),console.time("Taskboard#create");const oo=new class extends ye{constructor(e){super(),we(this,e,ro,Gr,a,{},null,[-1,-1])}}({target:document.body});if(console.timeEnd("Taskboard#create"),"serviceWorker"in navigator){const t=e((()=>{window.location.reload()}),500);window.addEventListener("load",(()=>{navigator.serviceWorker.register("/service-worker.js").catch((e=>{console.warn("Failed to register service worker",e)})),navigator.serviceWorker.addEventListener("message",(e=>{"resource.changed"===e.data.message&&(console.log("Resource changed",e.data.url),t())}))}))}return oo}();
1
+ var app=function(){"use strict";function e(e,t){var n,r,o,l;function i(n){var i=Date.now(),a=n?0:l+t-i;if(a>0)return s(a);e.apply(o,r),c()}function s(e){n=setTimeout(i,e)}function c(){n&&clearTimeout(n),n=l=r=o=void 0}function a(){l=Date.now();for(var e=arguments.length,i=new Array(e),c=0;c<e;c++)i[c]=arguments[c];r=i,o=this,n||s(t)}return a.flush=function(){n&&i(!0),c()},a.cancel=c,a}function t(){}const n=e=>e;function r(e){return e()}function o(){return Object.create(null)}function l(e){e.forEach(r)}function i(e){return"function"==typeof e}let s;function c(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function a(e,t){return e!=e?t==t:e!==t}function u(e,t,n,r){if(e){const o=d(e,t,n,r);return e[0](o)}}function d(e,t,n,r){return e[1]&&r?function(e,t){for(const n in t)e[n]=t[n];return e}(n.ctx.slice(),e[1](r(t))):n.ctx}function f(e,t,n,r){if(e[2]&&r){const o=e[2](r(n));if(void 0===t.dirty)return o;if("object"==typeof o){const e=[],n=Math.max(t.dirty.length,o.length);for(let r=0;r<n;r+=1)e[r]=t.dirty[r]|o[r];return e}return t.dirty|o}return t.dirty}function m(e,t,n,r,o,l){if(o){const i=d(t,n,r,l);e.p(i,o)}}function p(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let e=0;e<n;e++)t[e]=-1;return t}return-1}function h(e){return null==e?"":e}const g="undefined"!=typeof window;let v=g?()=>window.performance.now():()=>Date.now(),$=g?e=>requestAnimationFrame(e):t;const w=new Set;function y(e){w.forEach((t=>{t.c(e)||(w.delete(t),t.f())})),0!==w.size&&$(y)}function b(e,t){e.appendChild(t)}function k(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function x(e){const t=S("style");return function(e,t){b(e.head||e,t)}(k(e),t),t}function C(e,t,n){e.insertBefore(t,n||null)}function E(e){e.parentNode.removeChild(e)}function _(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function S(e){return document.createElement(e)}function D(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function q(e){return document.createTextNode(e)}function L(){return q(" ")}function H(){return q("")}function O(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function N(e){return function(t){return t.preventDefault(),e.call(this,t)}}function z(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function B(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function M(e,t){e.value=null==t?"":t}function F(e,t,n,r){e.style.setProperty(t,n,r?"important":"")}function T(e,t,n){e.classList[n?"add":"remove"](t)}const R=new Set;let A,I=0;function P(e,t,n,r,o,l,i,s=0){const c=16.666/r;let a="{\n";for(let e=0;e<=1;e+=c){const r=t+(n-t)*l(e);a+=100*e+`%{${i(r,1-r)}}\n`}const u=a+`100% {${i(n,1-n)}}\n}`,d=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(u)}_${s}`,f=k(e);R.add(f);const m=f.__svelte_stylesheet||(f.__svelte_stylesheet=x(e).sheet),p=f.__svelte_rules||(f.__svelte_rules={});p[d]||(p[d]=!0,m.insertRule(`@keyframes ${d} ${u}`,m.cssRules.length));const h=e.style.animation||"";return e.style.animation=`${h?`${h}, `:""}${d} ${r}ms linear ${o}ms 1 both`,I+=1,d}function U(e,t){const n=(e.style.animation||"").split(", "),r=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),o=n.length-r.length;o&&(e.style.animation=r.join(", "),I-=o,I||$((()=>{I||(R.forEach((e=>{const t=e.__svelte_stylesheet;let n=t.cssRules.length;for(;n--;)t.deleteRule(n);e.__svelte_rules={}})),R.clear())})))}function V(e){A=e}function Y(e){(function(){if(!A)throw new Error("Function called outside component initialization");return A})().$$.on_mount.push(e)}const j=[],K=[],X=[],W=[],G=Promise.resolve();let J=!1;function Q(e){X.push(e)}let Z=!1;const ee=new Set;function te(){if(!Z){Z=!0;do{for(let e=0;e<j.length;e+=1){const t=j[e];V(t),ne(t.$$)}for(V(null),j.length=0;K.length;)K.pop()();for(let e=0;e<X.length;e+=1){const t=X[e];ee.has(t)||(ee.add(t),t())}X.length=0}while(j.length);for(;W.length;)W.pop()();J=!1,Z=!1,ee.clear()}}function ne(e){if(null!==e.fragment){e.update(),l(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Q)}}let re;function oe(e,t,n){e.dispatchEvent(function(e,t,n=!1){const r=document.createEvent("CustomEvent");return r.initCustomEvent(e,n,!1,t),r}(`${t?"intro":"outro"}${n}`))}const le=new Set;let ie;function se(){ie={r:0,c:[],p:ie}}function ce(){ie.r||l(ie.c),ie=ie.p}function ae(e,t){e&&e.i&&(le.delete(e),e.i(t))}function ue(e,t,n,r){if(e&&e.o){if(le.has(e))return;le.add(e),ie.c.push((()=>{le.delete(e),r&&(n&&e.d(1),r())})),e.o(t)}}const de={duration:0};function fe(e,r,o,s){let c=r(e,o),a=s?0:1,u=null,d=null,f=null;function m(){f&&U(e,f)}function p(e,t){const n=e.b-a;return t*=Math.abs(n),{a:a,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function h(r){const{delay:o=0,duration:i=300,easing:s=n,tick:h=t,css:g}=c||de,b={start:v()+o,b:r};r||(b.group=ie,ie.r+=1),u||d?d=b:(g&&(m(),f=P(e,a,r,i,o,s,g)),r&&h(0,1),u=p(b,i),Q((()=>oe(e,r,"start"))),function(e){let t;0===w.size&&$(y),new Promise((n=>{w.add(t={c:e,f:n})}))}((t=>{if(d&&t>d.start&&(u=p(d,i),d=null,oe(e,u.b,"start"),g&&(m(),f=P(e,a,u.b,u.duration,0,s,c.css))),u)if(t>=u.end)h(a=u.b,1-a),oe(e,u.b,"end"),d||(u.b?m():--u.group.r||l(u.group.c)),u=null;else if(t>=u.start){const e=t-u.start;a=u.a+u.d*s(e/u.duration),h(a,1-a)}return!(!u&&!d)})))}return{run(e){i(c)?(re||(re=Promise.resolve(),re.then((()=>{re=null}))),re).then((()=>{c=c(),h(e)})):h(e)},end(){m(),u=d=null}}}const me="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function pe(e,t){ue(e,1,1,(()=>{t.delete(e.key)}))}function he(e){e&&e.c()}function ge(e,t,n,o){const{fragment:s,on_mount:c,on_destroy:a,after_update:u}=e.$$;s&&s.m(t,n),o||Q((()=>{const t=c.map(r).filter(i);a?a.push(...t):l(t),e.$$.on_mount=[]})),u.forEach(Q)}function ve(e,t){const n=e.$$;null!==n.fragment&&(l(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function $e(e,t){-1===e.$$.dirty[0]&&(j.push(e),J||(J=!0,G.then(te)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function we(e,n,r,i,s,c,a,u=[-1]){const d=A;V(e);const f=e.$$={fragment:null,ctx:null,props:c,update:t,not_equal:s,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:o(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};a&&a(f.root);let m=!1;if(f.ctx=r?r(e,n.props||{},((t,n,...r)=>{const o=r.length?r[0]:n;return f.ctx&&s(f.ctx[t],f.ctx[t]=o)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](o),m&&$e(e,t)),n})):[],f.update(),m=!0,l(f.before_update),f.fragment=!!i&&i(f.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);f.fragment&&f.fragment.l(e),e.forEach(E)}else f.fragment&&f.fragment.c();n.intro&&ae(e.$$.fragment),ge(e,n.target,n.anchor,n.customElement),te()}V(d)}class ye{$destroy(){ve(this,1),this.$destroy=t}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}let be=0;function ke(){return"_el_"+be++}class xe{get(e,t){try{const t=window.localStorage.getItem(e);if(t)return JSON.parse(t)}catch(t){console.warn("LocalStore: Failed to retrieve %s",e,t)}return t}set(e,t){try{window.localStorage.setItem(e,JSON.stringify(t))}catch(t){console.warn("LocalStore: Failed to set %s",e,t)}}}class Ce{get(e,t){return t}set(e,t){}}class Ee{push(e){window.history.pushState(null,null,e)}onPop(e){return window.addEventListener("popstate",e),function(){window.removeEventListener("popstate",e)}}}class _e{push(e){}onPop(e){return function(){}}}function Se(e,t){let n,r=!1,o=t;return function l(){Promise.resolve({}).then((()=>e())).then((e=>!0),(e=>!1)).then((e=>{o=!1===e?1.5*o:t,r||(n=setTimeout(l,o))}))}(),function(){r=!0,clearTimeout(n)}}function De(e){return"open"===e.state}function qe(e){return e.merged}function Le(e){return e.pull_request}function He(e,t,n){const r=e.slice();return r[10]=t[n],r[12]=n,r}function Oe(e,t,n){const r=e.slice();return r[13]=t[n],r}function Ne(e){let t,n,r,o=e[10].parts,i=[];for(let t=0;t<o.length;t+=1)i[t]=ze(Oe(e,o,t));function s(){return e[7](e[10])}function c(){return e[8](e[10])}function a(...t){return e[9](e[10],...t)}return{c(){t=S("li");for(let e=0;e<i.length;e+=1)i[e].c();z(t,"class","selectable svelte-r39x99"),T(t,"active",e[2]&&e[2].name===e[10].name)},m(e,o){C(e,t,o);for(let e=0;e<i.length;e+=1)i[e].m(t,null);n||(r=[O(t,"mouseover",s),O(t,"mouseout",c),O(t,"mousedown",N(a))],n=!0)},p(n,r){if(e=n,2&r){let n;for(o=e[10].parts,n=0;n<o.length;n+=1){const l=Oe(e,o,n);i[n]?i[n].p(l,r):(i[n]=ze(l),i[n].c(),i[n].m(t,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=o.length}6&r&&T(t,"active",e[2]&&e[2].name===e[10].name)},d(e){e&&E(t),_(i,e),n=!1,l(r)}}}function ze(e){let t,n,r=e[13].text+"";return{c(){t=S("span"),n=q(r),z(t,"class","svelte-r39x99"),T(t,"matched",e[13].matched)},m(e,r){C(e,t,r),b(t,n)},p(e,o){2&o&&r!==(r=e[13].text+"")&&B(n,r),2&o&&T(t,"matched",e[13].matched)},d(e){e&&E(t)}}}function Be(e){let t,n=(e[12]<e[6]||e[2]&&e[2].name===e[10].name)&&Ne(e);return{c(){n&&n.c(),t=H()},m(e,r){n&&n.m(e,r),C(e,t,r)},p(e,r){e[12]<e[6]||e[2]&&e[2].name===e[10].name?n?n.p(e,r):(n=Ne(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&E(t)}}}function Me(e){let t;return{c(){t=S("li"),t.textContent="...",z(t,"class","text svelte-r39x99")},m(e,n){C(e,t,n)},d(e){e&&E(t)}}}function Fe(e){let n,r,o,l=e[1],i=[];for(let t=0;t<l.length;t+=1)i[t]=Be(He(e,l,t));let s=e[1].length>e[6]&&Me();return{c(){n=S("ul");for(let e=0;e<i.length;e+=1)i[e].c();r=L(),s&&s.c(),z(n,"class",o=h(e[0])+" svelte-r39x99")},m(e,t){C(e,n,t);for(let e=0;e<i.length;e+=1)i[e].m(n,null);b(n,r),s&&s.m(n,null)},p(e,[t]){if(126&t){let o;for(l=e[1],o=0;o<l.length;o+=1){const s=He(e,l,o);i[o]?i[o].p(s,t):(i[o]=Be(s),i[o].c(),i[o].m(n,r))}for(;o<i.length;o+=1)i[o].d(1);i.length=l.length}e[1].length>e[6]?s||(s=Me(),s.c(),s.m(n,null)):s&&(s.d(1),s=null),1&t&&o!==(o=h(e[0])+" svelte-r39x99")&&z(n,"class",o)},i:t,o:t,d(e){e&&E(n),_(i,e),s&&s.d()}}}function Te(e,t,n){let{class:r=""}=t,{hints:o}=t,{selectedHint:l}=t,{onHover:i}=t,{onBlur:s}=t,{onSelect:c}=t,{maxElements:a}=t;return e.$$set=e=>{"class"in e&&n(0,r=e.class),"hints"in e&&n(1,o=e.hints),"selectedHint"in e&&n(2,l=e.selectedHint),"onHover"in e&&n(3,i=e.onHover),"onBlur"in e&&n(4,s=e.onBlur),"onSelect"in e&&n(5,c=e.onSelect),"maxElements"in e&&n(6,a=e.maxElements)},[r,o,l,i,s,c,a,e=>i(e),e=>s(e),(e,t)=>c(e)]}class Re extends ye{constructor(e){super(),we(this,e,Te,Fe,a,{class:0,hints:1,selectedHint:2,onHover:3,onBlur:4,onSelect:5,maxElements:6})}}function Ae(e){const{ctrlKey:t,shiftKey:n,altKey:r,metaKey:o}=e;return t||r||n||o}function Ie(e){return e.target===document.body}function Pe(e){const{shiftKey:t,altKey:n}=e;return t||n}function Ue(e){const{shiftKey:t}=e;return t}function Ve(e,t,n){const r=e.slice();return r[34]=t[n],r[36]=n,r}function Ye(e){let n;return{c(){n=S("div"),n.innerHTML='<p class="note svelte-1bk05k0">Filter cards by title and description.</p> \n\n <p class="note svelte-1bk05k0">Refine your search with operators: <em class="svelte-1bk05k0">created</em>, <em class="svelte-1bk05k0">updated</em>, <em class="svelte-1bk05k0">milestone</em>, <em class="svelte-1bk05k0">repo</em>, <em class="svelte-1bk05k0">assignee</em>, <em class="svelte-1bk05k0">label</em> and <em class="svelte-1bk05k0">is</em>.</p>',z(n,"class","help-dropdown svelte-1bk05k0")},m(e,t){C(e,n,t)},p:t,i:t,o:t,d(e){e&&E(n)}}}function je(e){let t,n,r=e[6].categories,o=[];for(let t=0;t<r.length;t+=1)o[t]=Ke(Ve(e,r,t));const l=e=>ue(o[e],1,1,(()=>{o[e]=null}));return{c(){t=S("div");for(let e=0;e<o.length;e+=1)o[e].c();z(t,"class","help-dropdown svelte-1bk05k0")},m(e,r){C(e,t,r);for(let e=0;e<o.length;e+=1)o[e].m(t,null);n=!0},p(e,n){if(1352&n[0]){let i;for(r=e[6].categories,i=0;i<r.length;i+=1){const l=Ve(e,r,i);o[i]?(o[i].p(l,n),ae(o[i],1)):(o[i]=Ke(l),o[i].c(),ae(o[i],1),o[i].m(t,null))}for(se(),i=r.length;i<o.length;i+=1)l(i);ce()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)ae(o[e]);n=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)ue(o[e]);n=!1},d(e){e&&E(t),_(o,e)}}}function Ke(e){let t,n,r,o,l,i,s=e[34].name+"",c=e[36]>0&&function(e){let t;return{c(){t=S("hr")},m(e,n){C(e,t,n)},d(e){e&&E(t)}}}();return l=new Re({props:{hints:e[34].values,selectedHint:e[8],onHover:e[25],onBlur:e[26],onSelect:e[10],maxElements:7}}),{c(){c&&c.c(),t=L(),n=S("div"),r=q(s),o=L(),he(l.$$.fragment),z(n,"class","category svelte-1bk05k0")},m(e,s){c&&c.m(e,s),C(e,t,s),C(e,n,s),b(n,r),C(e,o,s),ge(l,e,s),i=!0},p(e,t){(!i||64&t[0])&&s!==(s=e[34].name+"")&&B(r,s);const n={};64&t[0]&&(n.hints=e[34].values),256&t[0]&&(n.selectedHint=e[8]),8&t[0]&&(n.onHover=e[25]),8&t[0]&&(n.onBlur=e[26]),l.$set(n)},i(e){i||(ae(l.$$.fragment,e),i=!0)},o(e){ue(l.$$.fragment,e),i=!1},d(e){c&&c.d(e),e&&E(t),e&&E(n),e&&E(o),ve(l,e)}}}function Xe(e){let t,n,r,o,i,s,c,a,u,d;const f=[je,Ye],m=[];function p(e,t){return e[0]&&e[6]?0:e[4]&&!e[0]?1:-1}return~(i=p(e))&&(s=m[i]=f[i](e)),{c(){t=S("div"),n=S("input"),o=L(),s&&s.c(),z(n,"class","form-control svelte-1bk05k0"),z(n,"type","search"),z(n,"placeholder",e[2]),z(n,"id",e[9]),z(n,"autocomplete","off"),z(n,"spellcheck","false"),z(n,"aria-label",e[2]),z(n,"title",r=e[2]+" (f)"),z(t,"class",c="board-filter "+e[1]+" dropdown-parent "+(e[7]&&"expanded")+" svelte-1bk05k0")},m(r,l){C(r,t,l),b(t,n),e[21](n),M(n,e[0]),b(t,o),~i&&m[i].m(t,null),a=!0,u||(d=[O(window,"keydown",e[13]),O(n,"input",e[22]),O(n,"input",e[11]),O(n,"keydown",e[12]),O(n,"focus",e[23]),O(n,"blur",e[24])],u=!0)},p(e,o){(!a||4&o[0])&&z(n,"placeholder",e[2]),(!a||4&o[0])&&z(n,"aria-label",e[2]),(!a||4&o[0]&&r!==(r=e[2]+" (f)"))&&z(n,"title",r),1&o[0]&&M(n,e[0]);let l=i;i=p(e),i===l?~i&&m[i].p(e,o):(s&&(se(),ue(m[l],1,1,(()=>{m[l]=null})),ce()),~i?(s=m[i],s?s.p(e,o):(s=m[i]=f[i](e),s.c()),ae(s,1),s.m(t,null)):s=null),(!a||130&o[0]&&c!==(c="board-filter "+e[1]+" dropdown-parent "+(e[7]&&"expanded")+" svelte-1bk05k0"))&&z(t,"class",c)},i(e){a||(ae(s),a=!0)},o(e){ue(s),a=!1},d(n){n&&E(t),e[21](null),~i&&m[i].d(),u=!1,l(d)}}}function We(t,n,r){let o,l,i,s,{class:c=""}=n,{value:a=""}=n,{placeholder:u}=n,{completionOptions:d={}}=n,{onChange:f}=n,m=[["today",Date.now()],["last week",Date.now()-6048e5],["last month",Date.now()-2592e6]].map((([e,t])=>{const n=new Date(t);return{name:e,value:`>=${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()} `}})),p={is:["assigned","unassigned","epic","milestoned","open","closed","issue","pull"].map((e=>({name:e,value:`${e} `}))),created:m,updated:m};const h=[{name:"Operators",options:["label","assignee","author","repo","reviewer","commented","milestone","created","updated","involves","is"].map((e=>({name:e,value:`${e}:`})))}];let g,v,$,w,y,b=!1,k=0;const x=ke();function C(e){const{val:t,idx:n}=e.apply(a);r(5,$.value=r(0,a=t),$),r(5,$.selectionEnd=r(5,$.selectionStart=r(18,k=n),$),$),_(a)}function E(e,t){const n=y||[];let r=n.findIndex((t=>t.name===e.name))+t;return r<0&&(r=n.length-1),r===n.length&&(r=0),n[r]}const _=e((e=>{f&&f(e)}),500);return t.$$set=e=>{"class"in e&&r(1,c=e.class),"value"in e&&r(0,a=e.value),"placeholder"in e&&r(2,u=e.placeholder),"completionOptions"in e&&r(14,d=e.completionOptions),"onChange"in e&&r(15,f=e.onChange)},t.$$.update=()=>{if(16384&t.$$.dirty[0]&&r(20,o=Object.entries(d).reduce(((e,t)=>{const[n,r]=t;return e[n]=r.slice().sort().map((e=>{const t=/[: ]/.test(e)?'"':"";return{name:e,value:`${t}${e}${t} `}})),e}),{})),1048576&t.$$.dirty[0]&&r(19,l={...p,...o}),983041&t.$$.dirty[0]){console.time("BoardFilter#computeMatch");let e=function(e,t,n){const r=e.substring(0,t).lastIndexOf(" ")+1;e=e.substring(r,t).toLowerCase();const o=/^([-!]?)(?:([\w]+)(?:(:)(?:"([\w-]+)"?|([\w-]+))?)?)$/.exec(e);if(!o)return{};let[l,i,s,c,a,u]=o;const d=c?a||u||"":s,f=[],m=(c?[{name:"Values",options:n[s]||[]}]:h).reduce(((e,n)=>{const o=n.options.reduce(((e,n)=>{const{name:o,value:l}=n;if(o.toLowerCase().includes(d)){const n=o.indexOf(d),a={name:o,parts:[{text:o.substring(0,n)},{text:o.substring(n,n+d.length),matched:!0},{text:o.substring(n+d.length)}],apply:e=>{const n=e.substring(0,r),o=(i||"")+(c?s+c:"")+l;return{val:`${n}${o}${e.substring(t)}`,idx:n.length+o.length}}};e.push(a),f.push(a)}return e}),[]);return o.length&&e.push({name:n.name,values:o}),e}),[]);return m.length?{match:{categories:m},keyboardSelectedHint:m[0].values[0],allHints:f}:{match:null,keyboardSelectedHint:null,allHints:[]}}(a,k,l);console.timeEnd("BoardFilter#computeMatch"),r(6,w=e.match),r(17,y=e.allHints),r(16,g=y&&g&&y.find((e=>e.name===g.name))||e.keyboardSelectedHint)}65544&t.$$.dirty[0]&&r(8,i=v||g),17&t.$$.dirty[0]&&r(7,s=b||a)},[a,c,u,v,b,$,w,s,i,x,C,function(e){const t=e.target;r(0,a=t.value),r(18,k=t.selectionStart),_(a)},function(e){const t=e.key;"Enter"===t&&(g&&C(g),e.preventDefault()),"ArrowUp"===t&&(r(16,g=E(g,-1)),e.preventDefault()),"ArrowDown"===t&&(r(16,g=E(g,1)),e.preventDefault()),"Escape"!==t||a||($.blur(),e.preventDefault())},function(e){(function(e){return!(!Ie(e)||Ae(e))&&"f"===e.key})(e)&&(e.preventDefault(),function(e){const{target:t}=e;return t===$}(e)||$.focus())},d,f,g,y,k,l,o,function(e){K[e?"unshift":"push"]((()=>{$=e,r(5,$)}))},function(){a=this.value,r(0,a)},()=>r(4,b=!0),()=>r(4,b=!1),e=>r(3,v=e),()=>r(3,v=null)]}class Ge extends ye{constructor(e){super(),we(this,e,We,Xe,a,{class:1,value:0,placeholder:2,completionOptions:14,onChange:15},null,[-1,-1])}}function Je(e){let t,n,r,o;const l=e[3].default,i=u(l,e,e[2],null);return{c(){t=S("span"),i&&i.c(),n=L(),r=S("div"),z(r,"class","avatar-shadow svelte-9r4rqh"),z(t,"class","avatar svelte-9r4rqh"),z(t,"title",e[1]),T(t,"avatar-rounded",e[0])},m(e,l){C(e,t,l),i&&i.m(t,null),b(t,n),b(t,r),o=!0},p(e,[n]){i&&i.p&&(!o||4&n)&&m(i,l,e,e[2],o?f(l,e[2],n,null):p(e[2]),null),(!o||2&n)&&z(t,"title",e[1]),1&n&&T(t,"avatar-rounded",e[0])},i(e){o||(ae(i,e),o=!0)},o(e){ue(i,e),o=!1},d(e){e&&E(t),i&&i.d(e)}}}function Qe(e,t,n){let{$$slots:r={},$$scope:o}=t,{rounded:l=!1}=t,{title:i=""}=t;return e.$$set=e=>{"rounded"in e&&n(0,l=e.rounded),"title"in e&&n(1,i=e.title),"$$scope"in e&&n(2,o=e.$$scope)},[l,i,o,r]}class Ze extends ye{constructor(e){super(),we(this,e,Qe,Je,a,{rounded:0,title:1})}}function et(e){let t,n,r,o;const l=e[3].default,i=u(l,e,e[2],null);return{c(){t=S("div"),n=S("div"),i&&i.c(),z(n,"class","content svelte-1i1edqp"),z(t,"class",r="loader "+e[0]+" svelte-1i1edqp"),T(t,"shown",e[1])},m(e,r){C(e,t,r),b(t,n),i&&i.m(n,null),o=!0},p(e,[n]){i&&i.p&&(!o||4&n)&&m(i,l,e,e[2],o?f(l,e[2],n,null):p(e[2]),null),(!o||1&n&&r!==(r="loader "+e[0]+" svelte-1i1edqp"))&&z(t,"class",r),3&n&&T(t,"shown",e[1])},i(e){o||(ae(i,e),o=!0)},o(e){ue(i,e),o=!1},d(e){e&&E(t),i&&i.d(e)}}}function tt(e,t,n){let{$$slots:r={},$$scope:o}=t,{class:l=""}=t,{shown:i=!0}=t;return e.$$set=e=>{"class"in e&&n(0,l=e.class),"shown"in e&&n(1,i=e.shown),"$$scope"in e&&n(2,o=e.$$scope)},[l,i,o,r]}class nt extends ye{constructor(e){super(),we(this,e,tt,et,a,{class:0,shown:1})}}function rt(e){let n;return{c(){n=S("div"),n.innerHTML='<div class="help svelte-6impii"><a class="help-item svelte-6impii" href="https://wuffle.dev/docs" target="_blank" rel="noopener">Documentation</a> \n\n <span class="help-item svelte-6impii">Powered by</span></div> \n\n <a class="logo svelte-6impii" href="https://wuffle.dev" target="_blank" rel="noopener"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="20" height="20" class="svelte-6impii"><path d="M12 0h56c7 0 12 5 12 12v56c0 7-5 12-12 12H12C5 80 0 75 0 68V12C0 5 5 0 12 0z" fill="currentColor"></path><path d="M15 10h21c3 0 5 2 5 5v6c0 3-2 5-5 5H15c-2 0-4-2-4-5v-6c0-3 2-5 4-5zm0 20h21c3 0 5 2 5 5v6c0 2-2 4-5 4H15c-2 0-4-1-4-4v-6c0-3 2-5 4-5zm27 22h21c2 0 4 2 4 5v6c0 2-2 4-4 4H42c-2 0-4-2-4-4v-6c0-3 2-5 4-5z" fill="#fff"></path></svg></a>',z(n,"class","powered-by svelte-6impii")},m(e,t){C(e,n,t)},p:t,i:t,o:t,d(e){e&&E(n)}}}class ot extends ye{constructor(e){super(),we(this,e,null,rt,a,{})}}function lt(e){let t,n;const r=e[1].default,o=u(r,e,e[0],null);return{c(){t=S("div"),o&&o.c(),z(t,"class","notifications svelte-1kbv986")},m(e,r){C(e,t,r),o&&o.m(t,null),n=!0},p(e,[t]){o&&o.p&&(!n||1&t)&&m(o,r,e,e[0],n?f(r,e[0],t,null):p(e[0]),null)},i(e){n||(ae(o,e),n=!0)},o(e){ue(o,e),n=!1},d(e){e&&E(t),o&&o.d(e)}}}function it(e,t,n){let{$$slots:r={},$$scope:o}=t;return e.$$set=e=>{"$$scope"in e&&n(0,o=e.$$scope)},[o,r]}class st extends ye{constructor(e){super(),we(this,e,it,lt,a,{})}}function ct(e){const t=e-1;return t*t*t+1}function at(e,{delay:t=0,duration:n=400,easing:r=ct,x:o=0,y:l=0,opacity:i=0}={}){const s=getComputedStyle(e),c=+s.opacity,a="none"===s.transform?"":s.transform,u=c*(1-i);return{delay:t,duration:n,easing:r,css:(e,t)=>`\n\t\t\ttransform: ${a} translate(${(1-e)*o}px, ${(1-e)*l}px);\n\t\t\topacity: ${c-u*t}`}}function ut(e){let t,n,r,o,l,i,s;const c=e[3].default,a=u(c,e,e[2],null);return{c(){t=S("div"),n=S("div"),r=q(e[0]),o=L(),l=S("div"),a&&a.c(),z(n,"class","heading svelte-16ri2nq"),z(l,"class","detail"),z(t,"class","notification svelte-16ri2nq"),T(t,"error","error"===e[1]),T(t,"warning","warning"===e[1])},m(e,i){C(e,t,i),b(t,n),b(n,r),b(t,o),b(t,l),a&&a.m(l,null),s=!0},p(e,[n]){(!s||1&n)&&B(r,e[0]),a&&a.p&&(!s||4&n)&&m(a,c,e,e[2],s?f(c,e[2],n,null):p(e[2]),null),2&n&&T(t,"error","error"===e[1]),2&n&&T(t,"warning","warning"===e[1])},i(e){s||(ae(a,e),Q((()=>{i||(i=fe(t,at,{},!0)),i.run(1)})),s=!0)},o(e){ue(a,e),i||(i=fe(t,at,{},!1)),i.run(0),s=!1},d(e){e&&E(t),a&&a.d(e),e&&i&&i.end()}}}function dt(e,t,n){let{$$slots:r={},$$scope:o}=t,{message:l}=t,{type:i="info"}=t;return e.$$set=e=>{"message"in e&&n(0,l=e.message),"type"in e&&n(1,i=e.type),"$$scope"in e&&n(2,o=e.$$scope)},[l,i,o,r]}class ft extends ye{constructor(e){super(),we(this,e,dt,ut,a,{message:0,type:1})}}function mt(e){let t,n,r,o,l,s;return{c(){t=S("span"),n=q(e[1]),z(t,"class",r="tag "+e[3]+" svelte-tftc6d"),F(t,"background-color",e[2]),z(t,"title",o=e[0]||e[1]),T(t,"inverted",e[6]),T(t,"clickable",e[4])},m(r,o){C(r,t,o),b(t,n),l||(s=O(t,"click",(function(){i(e[4])&&e[4].apply(this,arguments)})),l=!0)},p(l,i){e=l,2&i&&B(n,e[1]),8&i&&r!==(r="tag "+e[3]+" svelte-tftc6d")&&z(t,"class",r),4&i&&F(t,"background-color",e[2]),3&i&&o!==(o=e[0]||e[1])&&z(t,"title",o),72&i&&T(t,"inverted",e[6]),24&i&&T(t,"clickable",e[4])},d(e){e&&E(t),l=!1,s()}}}function pt(e){let t,n,r,o,l,s;return{c(){t=S("a"),n=q(e[1]),z(t,"href",e[5]),z(t,"target","_blank"),z(t,"title",r=e[0]||e[1]),z(t,"rel","noopener noreferrer"),z(t,"class",o="tag "+e[3]+" svelte-tftc6d"),F(t,"background-color",e[2]),T(t,"inverted",e[6])},m(r,o){C(r,t,o),b(t,n),l||(s=O(t,"click",(function(){i(e[4])&&e[4].apply(this,arguments)})),l=!0)},p(l,i){e=l,2&i&&B(n,e[1]),32&i&&z(t,"href",e[5]),3&i&&r!==(r=e[0]||e[1])&&z(t,"title",r),8&i&&o!==(o="tag "+e[3]+" svelte-tftc6d")&&z(t,"class",o),4&i&&F(t,"background-color",e[2]),72&i&&T(t,"inverted",e[6])},d(e){e&&E(t),l=!1,s()}}}function ht(e){let n;function r(e,t){return e[5]?pt:mt}let o=r(e),l=o(e);return{c(){l.c(),n=H()},m(e,t){l.m(e,t),C(e,n,t)},p(e,[t]){o===(o=r(e))&&l?l.p(e,t):(l.d(1),l=o(e),l&&(l.c(),l.m(n.parentNode,n)))},i:t,o:t,d(e){l.d(e),e&&E(n)}}}function gt(e,t,n){let r,{title:o=""}=t,{name:l}=t,{color:i=""}=t,{class:s=""}=t,{onClick:c}=t,{href:a=null}=t;return e.$$set=e=>{"title"in e&&n(0,o=e.title),"name"in e&&n(1,l=e.name),"color"in e&&n(2,i=e.color),"class"in e&&n(3,s=e.class),"onClick"in e&&n(4,c=e.onClick),"href"in e&&n(5,a=e.href)},e.$$.update=()=>{4&e.$$.dirty&&n(6,r=i&&function(e){const t=(e=+("0x"+e.slice(1).replace(e.length<5&&/./g,"$&$&")))>>16,n=e>>8&255,r=255&e;return Math.sqrt(t*t*.299+n*n*.587+r*r*.114)>127.5}(i))},[o,l,i,s,c,a,r]}class vt extends ye{constructor(e){super(),we(this,e,gt,ht,a,{title:0,name:1,color:2,class:3,onClick:4,href:5})}}function $t(e){let t,n;return{c(){t=D("svg"),n=D("path"),z(n,"fill-rule","evenodd"),z(n,"d","M11 11.28V5c-.03-.78-.34-1.47-.94-2.06C9.46 2.35 8.78 2.03 8 2H7V0L4 3l3 3V4h1c.27.02.48.11.69.31.21.2.3.42.31.69v6.28A1.993 1.993 0 0 0 10 15a1.993 1.993 0 0 0 1-3.72zm-1 2.92c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zM4 3c0-1.11-.89-2-2-2a1.993 1.993 0 0 0-1 3.72v6.56A1.993 1.993 0 0 0 2 15a1.993 1.993 0 0 0 1-3.72V4.72c.59-.34 1-.98 1-1.72zm-.8 10c0 .66-.55 1.2-1.2 1.2-.65 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"),z(t,"class","pull-request-icon svelte-1570hl6"),z(t,"width","1em"),z(t,"height","1em"),z(t,"viewBox","0 0 12 16"),z(t,"version","1.1"),z(t,"aria-hidden","true"),z(t,"fill","currentColor"),T(t,"closed",e[1]),T(t,"open",e[2]),T(t,"draft",e[0])},m(e,r){C(e,t,r),b(t,n)},p(e,n){2&n&&T(t,"closed",e[1]),4&n&&T(t,"open",e[2]),1&n&&T(t,"draft",e[0])},d(e){e&&E(t)}}}function wt(e){let t,n;return{c(){t=D("svg"),n=D("path"),z(n,"fill-rule","evenodd"),z(n,"d","M10 7c-.73 0-1.38.41-1.73 1.02V8C7.22 7.98 6 7.64 5.14 6.98c-.75-.58-1.5-1.61-1.89-2.44A1.993 1.993 0 0 0 2 .99C.89.99 0 1.89 0 3a2 2 0 0 0 1 1.72v6.56c-.59.35-1 .99-1 1.72 0 1.11.89 2 2 2a1.993 1.993 0 0 0 1-3.72V7.67c.67.7 1.44 1.27 2.3 1.69.86.42 2.03.63 2.97.64v-.02c.36.61 1 1.02 1.73 1.02 1.11 0 2-.89 2-2 0-1.11-.89-2-2-2zm-6.8 6c0 .66-.55 1.2-1.2 1.2-.65 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm8 6c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"),z(t,"class","pull-request-icon svelte-1570hl6"),z(t,"width","1em"),z(t,"height","1em"),z(t,"viewBox","0 0 12 16"),z(t,"version","1.1"),z(t,"aria-hidden","true"),z(t,"fill","currentColor"),T(t,"merged",e[3])},m(e,r){C(e,t,r),b(t,n)},p(e,n){8&n&&T(t,"merged",e[3])},d(e){e&&E(t)}}}function yt(e){let n;function r(e,t){return e[3]?wt:$t}let o=r(e),l=o(e);return{c(){l.c(),n=H()},m(e,t){l.m(e,t),C(e,n,t)},p(e,[t]){o===(o=r(e))&&l?l.p(e,t):(l.d(1),l=o(e),l&&(l.c(),l.m(n.parentNode,n)))},i:t,o:t,d(e){l.d(e),e&&E(n)}}}function bt(e,t,n){let r,o,l,i,{item:s}=t;return e.$$set=e=>{"item"in e&&n(4,s=e.item)},e.$$.update=()=>{16&e.$$.dirty&&n(3,r=s.merged),16&e.$$.dirty&&n(2,o="open"===s.state),16&e.$$.dirty&&n(1,l="closed"===s.state),16&e.$$.dirty&&n(0,i=s.draft||!1)},[i,l,o,r,s]}class kt extends ye{constructor(e){super(),we(this,e,bt,yt,a,{item:4})}}function xt(e){let n,r;return{c(){n=D("svg"),r=D("path"),z(r,"fill","currentColor"),z(r,"stroke","#1d76db"),z(r,"d","M1 15V4l5-3 5 3v11l-5-4-5 4z"),z(r,"stroke-width","1.5"),z(n,"class","icon svelte-1wc70x"),z(n,"width","1em"),z(n,"height","1em"),z(n,"viewBox","0 0 12 16"),z(n,"version","1.1"),z(n,"aria-hidden","true")},m(e,t){C(e,n,t),b(n,r)},p:t,i:t,o:t,d(e){e&&E(n)}}}class Ct extends ye{constructor(e){super(),we(this,e,null,xt,a,{})}}function Et(e,t,n){const r=e.slice();return r[4]=t[n],r}function _t(e,t,n){const r=e.slice();return r[7]=t[n],r}function St(e){let t,n,r=e[1],o=[];for(let t=0;t<r.length;t+=1)o[t]=Dt(_t(e,r,t));let l=e[0],i=[];for(let t=0;t<l.length;t+=1)i[t]=qt(Et(e,l,t));return{c(){t=S("div");for(let e=0;e<o.length;e+=1)o[e].c();n=L();for(let e=0;e<i.length;e+=1)i[e].c();z(t,"class","card-status svelte-ah4rak")},m(e,r){C(e,t,r);for(let e=0;e<o.length;e+=1)o[e].m(t,null);b(t,n);for(let e=0;e<i.length;e+=1)i[e].m(t,null)},p(e,s){if(6&s){let l;for(r=e[1],l=0;l<r.length;l+=1){const i=_t(e,r,l);o[l]?o[l].p(i,s):(o[l]=Dt(i),o[l].c(),o[l].m(t,n))}for(;l<o.length;l+=1)o[l].d(1);o.length=r.length}if(1&s){let n;for(l=e[0],n=0;n<l.length;n+=1){const r=Et(e,l,n);i[n]?i[n].p(r,s):(i[n]=qt(r),i[n].c(),i[n].m(t,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=l.length}},d(e){e&&E(t),_(o,e),_(i,e)}}}function Dt(e){let t,n,r,o,l,i,s,c=e[7].name+"",a=(e[2][e[7].conclusion]||e[2][e[7].status])+"";return{c(){t=S("a"),n=S("span"),r=q(c),o=q(" — "),l=q(a),z(n,"class","svelte-ah4rak"),z(t,"class","state svelte-ah4rak"),z(t,"target","_blank"),z(t,"rel","noopener noreferrer"),z(t,"title",i=`${e[7].name} — ${e[2][e[7].conclusion]||e[2][e[7].status]}`),z(t,"href",s=e[7].html_url),T(t,"success","success"===e[7].conclusion||"in_progress"===e[7].status),T(t,"failure","failure"===e[7].conclusion),T(t,"action-required","action_required"===e[7].conclusion),T(t,"striped","in_progress"===e[7].status||"queued"===e[7].status)},m(e,i){C(e,t,i),b(t,n),b(n,r),b(n,o),b(n,l)},p(e,n){2&n&&c!==(c=e[7].name+"")&&B(r,c),2&n&&a!==(a=(e[2][e[7].conclusion]||e[2][e[7].status])+"")&&B(l,a),2&n&&i!==(i=`${e[7].name} — ${e[2][e[7].conclusion]||e[2][e[7].status]}`)&&z(t,"title",i),2&n&&s!==(s=e[7].html_url)&&z(t,"href",s),2&n&&T(t,"success","success"===e[7].conclusion||"in_progress"===e[7].status),2&n&&T(t,"failure","failure"===e[7].conclusion),2&n&&T(t,"action-required","action_required"===e[7].conclusion),2&n&&T(t,"striped","in_progress"===e[7].status||"queued"===e[7].status)},d(e){e&&E(t)}}}function qt(e){let t,n,r,o,l,i,s,c=e[4].context+"",a=e[4].description+"";return{c(){t=S("a"),n=S("span"),r=q(c),o=q(" — "),l=q(a),z(n,"class","svelte-ah4rak"),z(t,"class","state svelte-ah4rak"),z(t,"target","_blank"),z(t,"rel","noopener noreferrer"),z(t,"title",i=`${e[4].context} — ${e[4].description}`),z(t,"href",s=e[4].target_url),T(t,"success","success"===e[4].state||"pending"===e[4].state),T(t,"failure","failure"===e[4].state),T(t,"action-required","error"===e[4].state),T(t,"striped","pending"===e[4].state)},m(e,i){C(e,t,i),b(t,n),b(n,r),b(n,o),b(n,l)},p(e,n){1&n&&c!==(c=e[4].context+"")&&B(r,c),1&n&&a!==(a=e[4].description+"")&&B(l,a),1&n&&i!==(i=`${e[4].context} — ${e[4].description}`)&&z(t,"title",i),1&n&&s!==(s=e[4].target_url)&&z(t,"href",s),1&n&&T(t,"success","success"===e[4].state||"pending"===e[4].state),1&n&&T(t,"failure","failure"===e[4].state),1&n&&T(t,"action-required","error"===e[4].state),1&n&&T(t,"striped","pending"===e[4].state)},d(e){e&&E(t)}}}function Lt(e){let n,r=(e[1].length||e[0].length)&&St(e);return{c(){r&&r.c(),n=H()},m(e,t){r&&r.m(e,t),C(e,n,t)},p(e,[t]){e[1].length||e[0].length?r?r.p(e,t):(r=St(e),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},i:t,o:t,d(e){r&&r.d(e),e&&E(n)}}}function Ht(e,t,n){let r,o,{item:l}=t;return e.$$set=e=>{"item"in e&&n(3,l=e.item)},e.$$.update=()=>{8&e.$$.dirty&&n(1,r=l.check_runs||[]),8&e.$$.dirty&&n(0,o=l.statuses||[])},[o,r,{failure:"failed",success:"succeeded",in_progress:"in progress",queued:"queued",action_required:"action required"},l]}class Ot extends ye{constructor(e){super(),we(this,e,Ht,Lt,a,{item:3})}}function Nt(e,t,n){const r=e.slice();return r[12]=t[n],r}function zt(e,t,n){const r=e.slice();return r[15]=t[n],r}function Bt(e,t,n){const r=e.slice();return r[18]=t[n],r}function Mt(e){let t,n,r,o,l,s,a,u,d;return{c(){t=S("span"),n=S("img"),l=L(),s=S("div"),c(n.src,r=e[18].avatar_url+"&s=40")||z(n,"src",r),z(n,"alt",o=e[18].login+" avatar"),z(n,"class","svelte-1v2qyqs"),z(s,"class","icon-shadow svelte-1v2qyqs"),z(t,"class","assignee requested-reviewer svelte-1v2qyqs"),z(t,"title",a=e[18].login+" requested for review")},m(r,o){C(r,t,o),b(t,n),b(t,l),b(t,s),u||(d=O(t,"click",(function(){i(e[6]("involves",e[18].login))&&e[6]("involves",e[18].login).apply(this,arguments)})),u=!0)},p(l,i){e=l,1&i&&!c(n.src,r=e[18].avatar_url+"&s=40")&&z(n,"src",r),1&i&&o!==(o=e[18].login+" avatar")&&z(n,"alt",o),1&i&&a!==(a=e[18].login+" requested for review")&&z(t,"title",a)},d(e){e&&E(t),u=!1,d()}}}function Ft(e){let t,n,r,o,l,s,a,u,d,f;return{c(){t=S("a"),n=S("img"),l=L(),s=S("div"),c(n.src,r=e[15].user.avatar_url+"&s=40")||z(n,"src",r),z(n,"alt",o=e[15].user.login+" avatar"),z(n,"class","svelte-1v2qyqs"),z(s,"class","icon-shadow svelte-1v2qyqs"),z(t,"class","assignee reviewer svelte-1v2qyqs"),z(t,"title",a=e[15].user.login+" "+e[5][e[15].state]),z(t,"href",u=e[15].html_url||`${e[3]}/pull/${e[4]}#pullrequestreview-${e[15].id}`),z(t,"target","_blank"),z(t,"rel","noopener noreferrer"),T(t,"approved","approved"===e[15].state),T(t,"requested-changes","changes_requested"===e[15].state),T(t,"commented","commented"===e[15].state||"dismissed"===e[15].state)},m(r,o){C(r,t,o),b(t,n),b(t,l),b(t,s),d||(f=O(t,"click",(function(){i(e[6]("involves",e[15].user.login))&&e[6]("involves",e[15].user.login).apply(this,arguments)})),d=!0)},p(l,i){e=l,2&i&&!c(n.src,r=e[15].user.avatar_url+"&s=40")&&z(n,"src",r),2&i&&o!==(o=e[15].user.login+" avatar")&&z(n,"alt",o),2&i&&a!==(a=e[15].user.login+" "+e[5][e[15].state])&&z(t,"title",a),26&i&&u!==(u=e[15].html_url||`${e[3]}/pull/${e[4]}#pullrequestreview-${e[15].id}`)&&z(t,"href",u),2&i&&T(t,"approved","approved"===e[15].state),2&i&&T(t,"requested-changes","changes_requested"===e[15].state),2&i&&T(t,"commented","commented"===e[15].state||"dismissed"===e[15].state)},d(e){e&&E(t),d=!1,f()}}}function Tt(e){let t,n,r,o,l,s,a,u,d,f,m;return{c(){t=S("a"),n=S("img"),l=L(),s=S("div"),a=L(),c(n.src,r=e[12].avatar_url+"&s=40")||z(n,"src",r),z(n,"alt",o=e[12].login+" avatar"),z(n,"class","svelte-1v2qyqs"),z(s,"class","icon-shadow svelte-1v2qyqs"),z(t,"class","assignee svelte-1v2qyqs"),z(t,"title",u=e[12].login+" assigned"),z(t,"href",d=e[12].html_url),z(t,"target","_blank"),z(t,"rel","noopener noreferrer")},m(r,o){C(r,t,o),b(t,n),b(t,l),b(t,s),b(t,a),f||(m=O(t,"click",(function(){i(e[6]("involves",e[12].login))&&e[6]("involves",e[12].login).apply(this,arguments)})),f=!0)},p(l,i){e=l,4&i&&!c(n.src,r=e[12].avatar_url+"&s=40")&&z(n,"src",r),4&i&&o!==(o=e[12].login+" avatar")&&z(n,"alt",o),4&i&&u!==(u=e[12].login+" assigned")&&z(t,"title",u),4&i&&d!==(d=e[12].html_url)&&z(t,"href",d)},d(e){e&&E(t),f=!1,m()}}}function Rt(e){let n,r,o,l=e[0],i=[];for(let t=0;t<l.length;t+=1)i[t]=Mt(Bt(e,l,t));let s=e[1],c=[];for(let t=0;t<s.length;t+=1)c[t]=Ft(zt(e,s,t));let a=e[2],u=[];for(let t=0;t<a.length;t+=1)u[t]=Tt(Nt(e,a,t));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();n=L();for(let e=0;e<c.length;e+=1)c[e].c();r=L();for(let e=0;e<u.length;e+=1)u[e].c();o=H()},m(e,t){for(let n=0;n<i.length;n+=1)i[n].m(e,t);C(e,n,t);for(let n=0;n<c.length;n+=1)c[n].m(e,t);C(e,r,t);for(let n=0;n<u.length;n+=1)u[n].m(e,t);C(e,o,t)},p(e,[t]){if(65&t){let r;for(l=e[0],r=0;r<l.length;r+=1){const o=Bt(e,l,r);i[r]?i[r].p(o,t):(i[r]=Mt(o),i[r].c(),i[r].m(n.parentNode,n))}for(;r<i.length;r+=1)i[r].d(1);i.length=l.length}if(122&t){let n;for(s=e[1],n=0;n<s.length;n+=1){const o=zt(e,s,n);c[n]?c[n].p(o,t):(c[n]=Ft(o),c[n].c(),c[n].m(r.parentNode,r))}for(;n<c.length;n+=1)c[n].d(1);c.length=s.length}if(68&t){let n;for(a=e[2],n=0;n<a.length;n+=1){const r=Nt(e,a,n);u[n]?u[n].p(r,t):(u[n]=Tt(r),u[n].c(),u[n].m(o.parentNode,o))}for(;n<u.length;n+=1)u[n].d(1);u.length=a.length}},i:t,o:t,d(e){_(i,e),e&&E(n),_(c,e),e&&E(r),_(u,e),e&&E(o)}}}function At(e,t,n){let r,o,l,i,s,c,a,u,{item:d}=t,{onSelect:f}=t;return e.$$set=e=>{"item"in e&&n(7,d=e.item),"onSelect"in e&&n(8,f=e.onSelect)},e.$$.update=()=>{128&e.$$.dirty&&n(4,r=d.number),128&e.$$.dirty&&n(11,o=d.repository),2048&e.$$.dirty&&n(10,l=`${o.owner.login}/${o.name}`),1024&e.$$.dirty&&n(3,i=`https://github.com/${l}`),128&e.$$.dirty&&n(2,s=d.assignees),128&e.$$.dirty&&n(9,c=(Array.isArray(d.comments)?d.comments:[]).map((e=>{const{user:t,html_url:n}=e;return{state:"commented",user:t,html_url:n}}))),128&e.$$.dirty&&n(0,a=d.requested_reviewers||[]),641&e.$$.dirty&&n(1,u=Object.values([].concat(c,d.reviews||[]).filter((e=>!a.find((t=>t.login===e.user.login)))).reduce(((e,t)=>{const n=e[t.user.login];return n&&"commented"!==n.state&&"commented"===t.state||(e[t.user.login]=t),e}),{})))},[a,u,s,i,r,{changes_requested:"requested changes",approved:"approved",commented:"commented",dismissed:"dismissed his review"},function(e,t){return f&&function(n){Pe(n)&&(n.preventDefault(),f(e,t,Ue(n)))}},d,f,c,l,o]}class It extends ye{constructor(e){super(),we(this,e,At,Rt,a,{item:7,onSelect:8})}}function Pt(e){let t;function n(e,t){return"closed"!==e[1]?Vt:Ut}let r=n(e),o=r(e);return{c(){o.c(),t=H()},m(e,n){o.m(e,n),C(e,t,n)},p(e,l){r===(r=n(e))&&o?o.p(e,l):(o.d(1),o=r(e),o&&(o.c(),o.m(t.parentNode,t)))},d(e){o.d(e),e&&E(t)}}}function Ut(e){let t,n,r;return{c(){t=D("svg"),n=D("path"),z(n,"fill-rule","evenodd"),z(n,"d","M7 10h2v2H7v-2zm2-6H7v5h2V4zm1.5 1.5l-1 1L12 9l4-4.5-1-1L12 7l-1.5-1.5zM8 13.7A5.71 5.71 0 0 1 2.3 8c0-3.14 2.56-5.7 5.7-5.7 1.83 0 3.45.88 4.5 2.2l.92-.92A6.947 6.947 0 0 0 8 1C4.14 1 1 4.14 1 8s3.14 7 7 7 7-3.14 7-7l-1.52 1.52c-.66 2.41-2.86 4.19-5.48 4.19v-.01z"),z(t,"class",r="icon issue closed "+e[2]+" svelte-1r532dq"),z(t,"width","1em"),z(t,"height","1em"),z(t,"viewBox","0 0 16 16"),z(t,"version","1.1"),z(t,"aria-hidden","true"),z(t,"fill","currentColor")},m(e,r){C(e,t,r),b(t,n)},p(e,n){4&n&&r!==(r="icon issue closed "+e[2]+" svelte-1r532dq")&&z(t,"class",r)},d(e){e&&E(t)}}}function Vt(e){let t,n,r;return{c(){t=D("svg"),n=D("path"),z(n,"fill-rule","evenodd"),z(n,"d","M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"),z(t,"class",r="icon issue "+e[2]+" svelte-1r532dq"),z(t,"width","1em"),z(t,"height","1em"),z(t,"viewBox","0 0 14 16"),z(t,"version","1.1"),z(t,"aria-hidden","true"),z(t,"fill","currentColor"),T(t,"open","open"===e[1])},m(e,r){C(e,t,r),b(t,n)},p(e,n){4&n&&r!==(r="icon issue "+e[2]+" svelte-1r532dq")&&z(t,"class",r),6&n&&T(t,"open","open"===e[1])},d(e){e&&E(t)}}}function Yt(e){let t;function n(e,t){return"closed"===e[1]?Kt:jt}let r=n(e),o=r(e);return{c(){o.c(),t=H()},m(e,n){o.m(e,n),C(e,t,n)},p(e,l){r===(r=n(e))&&o?o.p(e,l):(o.d(1),o=r(e),o&&(o.c(),o.m(t.parentNode,t)))},d(e){o.d(e),e&&E(t)}}}function jt(e){let t,n,r;return{c(){t=D("svg"),n=D("path"),z(n,"fill-rule","evenodd"),z(n,"d","M7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm0 1.3c1.3 0 2.5.44 3.47 1.17l-8 8A5.755 5.755 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zm0 11.41c-1.3 0-2.5-.44-3.47-1.17l8-8c.73.97 1.17 2.17 1.17 3.47 0 3.14-2.56 5.7-5.7 5.7z"),z(t,"class",r="icon depends-on "+e[2]+" svelte-1r532dq"),z(t,"width","1em"),z(t,"height","1em"),z(t,"viewBox","0 0 14 16"),z(t,"version","1.1"),z(t,"aria-hidden","true"),z(t,"fill","currentColor")},m(e,r){C(e,t,r),b(t,n)},p(e,n){4&n&&r!==(r="icon depends-on "+e[2]+" svelte-1r532dq")&&z(t,"class",r)},d(e){e&&E(t)}}}function Kt(e){let t,n,r;return{c(){t=D("svg"),n=D("path"),z(n,"fill-rule","evenodd"),z(n,"d","M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5L12 5z"),z(t,"class",r="icon depends-on closed "+e[2]+" svelte-1r532dq"),z(t,"width","1em"),z(t,"height","1em"),z(t,"viewBox","0 0 12 16"),z(t,"version","1.1"),z(t,"aria-hidden","true"),z(t,"fill","currentColor")},m(e,r){C(e,t,r),b(t,n)},p(e,n){4&n&&r!==(r="icon depends-on closed "+e[2]+" svelte-1r532dq")&&z(t,"class",r)},d(e){e&&E(t)}}}function Xt(e){let t,n,r;return{c(){t=D("svg"),n=D("path"),z(n,"fill-rule","evenodd"),z(n,"d","M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"),z(t,"class",r="icon linked-to "+e[2]+" svelte-1r532dq"),z(t,"width","1em"),z(t,"height","1em"),z(t,"viewBox","0 0 14 16"),z(t,"version","1.1"),z(t,"aria-hidden","true"),z(t,"fill","currentColor")},m(e,r){C(e,t,r),b(t,n)},p(e,n){4&n&&r!==(r="icon linked-to "+e[2]+" svelte-1r532dq")&&z(t,"class",r)},d(e){e&&E(t)}}}function Wt(e){let t,n,r;return{c(){t=D("svg"),n=D("path"),z(n,"fill","none"),z(n,"fill-rule","evenodd"),z(n,"transform","rotate(-89.89169311523438 5.963454723358154,7.855281829833984)"),z(n,"d","m-1.079501,2.743426l10.564429,0l3.521483,5.111845l-3.521483,5.111868l-10.564429,0l3.521482,-5.111868l-3.521482,-5.111845z"),z(n,"stroke-width","1.5"),z(t,"class",r="icon epic "+e[2]+" svelte-1r532dq"),z(t,"width","1em"),z(t,"height","1em"),z(t,"viewBox","0 0 12 16"),z(t,"version","1.1"),z(t,"aria-hidden","true"),z(t,"stroke","currentColor")},m(e,r){C(e,t,r),b(t,n)},p(e,n){4&n&&r!==(r="icon epic "+e[2]+" svelte-1r532dq")&&z(t,"class",r)},d(e){e&&E(t)}}}function Gt(e){let n,r,o,l,i="issue"===e[0]&&Pt(e),s="depends-on"===e[0]&&Yt(e),c="linked-to"===e[0]&&Xt(e),a="epic"===e[0]&&Wt(e);return{c(){i&&i.c(),n=L(),s&&s.c(),r=L(),c&&c.c(),o=L(),a&&a.c(),l=H()},m(e,t){i&&i.m(e,t),C(e,n,t),s&&s.m(e,t),C(e,r,t),c&&c.m(e,t),C(e,o,t),a&&a.m(e,t),C(e,l,t)},p(e,[t]){"issue"===e[0]?i?i.p(e,t):(i=Pt(e),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),"depends-on"===e[0]?s?s.p(e,t):(s=Yt(e),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null),"linked-to"===e[0]?c?c.p(e,t):(c=Xt(e),c.c(),c.m(o.parentNode,o)):c&&(c.d(1),c=null),"epic"===e[0]?a?a.p(e,t):(a=Wt(e),a.c(),a.m(l.parentNode,l)):a&&(a.d(1),a=null)},i:t,o:t,d(e){i&&i.d(e),e&&E(n),s&&s.d(e),e&&E(r),c&&c.d(e),e&&E(o),a&&a.d(e),e&&E(l)}}}function Jt(e,t,n){let{name:r}=t,{state:o=""}=t,{class:l=""}=t;return e.$$set=e=>{"name"in e&&n(0,r=e.name),"state"in e&&n(1,o=e.state),"class"in e&&n(2,l=e.class)},[r,o,l]}class Qt extends ye{constructor(e){super(),we(this,e,Jt,Gt,a,{name:0,state:1,class:2})}}function Zt(e){let t,n,r,o,l,i,s="PARENT_OF"===e[3]&&tn(e),c="CHILD_OF"===e[3]&&nn(),a=("DEPENDS_ON"===e[3]||"CLOSED_BY"===e[3])&&rn(e),u=("REQUIRED_BY"===e[3]||"CLOSES"===e[3])&&on(e),d="LINKED_TO"===e[3]&&cn();return{c(){s&&s.c(),t=L(),c&&c.c(),n=L(),a&&a.c(),r=L(),u&&u.c(),o=L(),d&&d.c(),l=H()},m(e,f){s&&s.m(e,f),C(e,t,f),c&&c.m(e,f),C(e,n,f),a&&a.m(e,f),C(e,r,f),u&&u.m(e,f),C(e,o,f),d&&d.m(e,f),C(e,l,f),i=!0},p(e,i){"PARENT_OF"===e[3]?s?(s.p(e,i),8&i&&ae(s,1)):(s=tn(e),s.c(),ae(s,1),s.m(t.parentNode,t)):s&&(se(),ue(s,1,1,(()=>{s=null})),ce()),"CHILD_OF"===e[3]?c?8&i&&ae(c,1):(c=nn(),c.c(),ae(c,1),c.m(n.parentNode,n)):c&&(se(),ue(c,1,1,(()=>{c=null})),ce()),"DEPENDS_ON"===e[3]||"CLOSED_BY"===e[3]?a?(a.p(e,i),8&i&&ae(a,1)):(a=rn(e),a.c(),ae(a,1),a.m(r.parentNode,r)):a&&(se(),ue(a,1,1,(()=>{a=null})),ce()),"REQUIRED_BY"===e[3]||"CLOSES"===e[3]?u?(u.p(e,i),8&i&&ae(u,1)):(u=on(e),u.c(),ae(u,1),u.m(o.parentNode,o)):u&&(se(),ue(u,1,1,(()=>{u=null})),ce()),"LINKED_TO"===e[3]?d?8&i&&ae(d,1):(d=cn(),d.c(),ae(d,1),d.m(l.parentNode,l)):d&&(se(),ue(d,1,1,(()=>{d=null})),ce())},i(e){i||(ae(s),ae(c),ae(a),ae(u),ae(d),i=!0)},o(e){ue(s),ue(c),ue(a),ue(u),ue(d),i=!1},d(e){s&&s.d(e),e&&E(t),c&&c.d(e),e&&E(n),a&&a.d(e),e&&E(r),u&&u.d(e),e&&E(o),d&&d.d(e),e&&E(l)}}}function en(e){let t,n;return t=new kt({props:{item:e[1]}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.item=e[1]),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function tn(e){let t,n;return t=new Qt({props:{name:"issue",state:e[8]}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};256&n&&(r.state=e[8]),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function nn(e){let t,n;return t=new Qt({props:{name:"epic"}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function rn(e){let t,n;return t=new Qt({props:{name:"depends-on",state:e[8]}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};256&n&&(r.state=e[8]),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function on(e){let t,n,r,o;const l=[sn,ln],i=[];function s(e,t){return"open"===e[8]?0:1}return t=s(e),n=i[t]=l[t](e),{c(){n.c(),r=H()},m(e,n){i[t].m(e,n),C(e,r,n),o=!0},p(e,o){let c=t;t=s(e),t===c?i[t].p(e,o):(se(),ue(i[c],1,1,(()=>{i[c]=null})),ce(),n=i[t],n?n.p(e,o):(n=i[t]=l[t](e),n.c()),ae(n,1),n.m(r.parentNode,r))},i(e){o||(ae(n),o=!0)},o(e){ue(n),o=!1},d(e){i[t].d(e),e&&E(r)}}}function ln(e){let t,n;return t=new Qt({props:{name:"issue",state:e[8]}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};256&n&&(r.state=e[8]),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function sn(e){let n,r;return n=new Qt({props:{name:"linked-to"}}),{c(){he(n.$$.fragment)},m(e,t){ge(n,e,t),r=!0},p:t,i(e){r||(ae(n.$$.fragment,e),r=!0)},o(e){ue(n.$$.fragment,e),r=!1},d(e){ve(n,e)}}}function cn(e){let t,n;return t=new Qt({props:{name:"linked-to"}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function an(e){let t,n,r,o,s,c,a,u,d,f,m,p,h,g,v,$,w,y,k;const x=[en,Zt],_=[];function D(e,t){return e[9]?0:1}return o=D(e),s=_[o]=x[o](e),g=new It({props:{item:e[1],onSelect:e[2]}}),$=new Ot({props:{item:e[1]}}),{c(){t=S("div"),n=S("div"),r=S("a"),s.c(),c=L(),a=q(e[4]),d=L(),f=S("span"),m=q(e[10]),p=L(),h=S("span"),he(g.$$.fragment),v=L(),he($.$$.fragment),z(r,"href",e[7]),z(r,"target","_blank"),z(r,"rel","noopener noreferrer"),z(r,"class","issue-number svelte-lrpwe8"),z(r,"title",u=e[5]+"#"+e[4]+" · "+e[6]+" this issue"),z(f,"class","short-title svelte-lrpwe8"),z(f,"title",e[10]),z(h,"class","collaborator-links svelte-lrpwe8"),z(n,"class","header svelte-lrpwe8"),z(t,"class","card-link svelte-lrpwe8"),T(t,"hovered",e[0])},m(l,s){C(l,t,s),b(t,n),b(n,r),_[o].m(r,null),b(r,c),b(r,a),b(n,d),b(n,f),b(f,m),b(n,p),b(n,h),ge(g,h,null),b(t,v),ge($,t,null),w=!0,y||(k=[O(r,"click",(function(){i(e[11]("ref",e[1].key))&&e[11]("ref",e[1].key).apply(this,arguments)})),O(t,"mouseenter",e[13]),O(t,"mouseleave",e[14])],y=!0)},p(n,[l]){let i=o;o=D(e=n),o===i?_[o].p(e,l):(se(),ue(_[i],1,1,(()=>{_[i]=null})),ce(),s=_[o],s?s.p(e,l):(s=_[o]=x[o](e),s.c()),ae(s,1),s.m(r,c)),(!w||16&l)&&B(a,e[4]),(!w||128&l)&&z(r,"href",e[7]),(!w||112&l&&u!==(u=e[5]+"#"+e[4]+" · "+e[6]+" this issue"))&&z(r,"title",u),(!w||1024&l)&&B(m,e[10]),(!w||1024&l)&&z(f,"title",e[10]);const d={};2&l&&(d.item=e[1]),4&l&&(d.onSelect=e[2]),g.$set(d);const p={};2&l&&(p.item=e[1]),$.$set(p),1&l&&T(t,"hovered",e[0])},i(e){w||(ae(s),ae(g.$$.fragment,e),ae($.$$.fragment,e),w=!0)},o(e){ue(s),ue(g.$$.fragment,e),ue($.$$.fragment,e),w=!1},d(e){e&&E(t),_[o].d(),ve(g),ve($),y=!1,l(k)}}}function un(e,t,n){let r,o,l,i,s,c,a,u,{item:d}=t,{onSelect:f}=t,{hovered:m=!1}=t,{type:p}=t;return e.$$set=e=>{"item"in e&&n(1,d=e.item),"onSelect"in e&&n(2,f=e.onSelect),"hovered"in e&&n(0,m=e.hovered),"type"in e&&n(3,p=e.type)},e.$$.update=()=>{2&e.$$.dirty&&n(4,r=d.number),2&e.$$.dirty&&n(10,o=d.title),2&e.$$.dirty&&n(12,l=d.repository),2&e.$$.dirty&&n(9,i=d.pull_request),2&e.$$.dirty&&n(8,s=d.state),4096&e.$$.dirty&&n(5,c=`${l.owner.login}/${l.name}`),50&e.$$.dirty&&n(7,a=d.html_url||`https://github.com/${c}/issues/${r}`),8&e.$$.dirty&&n(6,u={CHILD_OF:"Parent of",DEPENDS_ON:"Required by",PARENT_OF:"Child of",CLOSED_BY:"Closes",REQUIRED_BY:"Depends on",CLOSES:"Closed by",LINKED_TO:"Linked to",LINKED_BY:"Linked to"}[p]||p)},[m,d,f,p,r,c,u,a,s,i,o,function(e,t){return f&&function(n){Pe(n)&&(n.preventDefault(),f(e,t,Ue(n)))}},l,()=>n(0,m=!0),()=>n(0,m=!1)]}class dn extends ye{constructor(e){super(),we(this,e,un,an,a,{item:1,onSelect:2,hovered:0,type:3})}}function fn(e,t,n){const r=e.slice();return r[26]=t[n],r}function mn(e,t,n){const r=e.slice();return r[26]=t[n],r}function pn(e,t,n){const r=e.slice();return r[31]=t[n].name,r[32]=t[n].color,r}function hn(e){let t,n;return t=new Ct({props:{item:e[0],linkType:"PARENT_OF"}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};1&n[0]&&(r.item=e[0]),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function gn(e){let t,n;return t=new kt({props:{item:e[0]}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};1&n[0]&&(r.item=e[0]),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function vn(e){let t,n,r,o,l,i,s,c,a,u,d,f,m,p,h=e[12].length+"",g=e[7].length+"";return{c(){t=S("div"),n=D("svg"),r=D("path"),o=L(),l=S("div"),i=q(h),s=q(" of "),c=q(g),a=L(),u=S("div"),d=S("div"),z(r,"fill-rule","evenodd"),z(r,"d","M7 10h2v2H7v-2zm2-6H7v5h2V4zm1.5 1.5l-1 1L12 9l4-4.5-1-1L12 7l-1.5-1.5zM8 13.7A5.71 5.71 0 0 1 2.3 8c0-3.14 2.56-5.7 5.7-5.7 1.83 0 3.45.88 4.5 2.2l.92-.92A6.947 6.947 0 0 0 8 1C4.14 1 1 4.14 1 8s3.14 7 7 7 7-3.14 7-7l-1.52 1.52c-.66 2.41-2.86 4.19-5.48 4.19v-.01z"),z(n,"class","icon issue closed svelte-2qowi0"),z(n,"width","1em"),z(n,"height","1em"),z(n,"viewBox","0 0 16 16"),z(n,"version","1.1"),z(n,"aria-hidden","true"),z(n,"fill","currentColor"),z(l,"class","text svelte-2qowi0"),z(d,"class","indicator svelte-2qowi0"),F(d,"width",e[12].length/e[7].length*100+"%"),z(u,"class","bar svelte-2qowi0"),z(t,"class","progress svelte-2qowi0"),z(t,"title",f=e[12].length+" of "+e[7].length+" child tasks completed")},m(f,h){C(f,t,h),b(t,n),b(n,r),b(t,o),b(t,l),b(l,i),b(l,s),b(l,c),b(t,a),b(t,u),b(u,d),m||(p=O(t,"click",e[22]),m=!0)},p(e,n){4096&n[0]&&h!==(h=e[12].length+"")&&B(i,h),128&n[0]&&g!==(g=e[7].length+"")&&B(c,g),4224&n[0]&&F(d,"width",e[12].length/e[7].length*100+"%"),4224&n[0]&&f!==(f=e[12].length+" of "+e[7].length+" child tasks completed")&&z(t,"title",f)},d(e){e&&E(t),m=!1,p()}}}function $n(e){let t,n;return t=new vt({props:{class:"tag milestone",name:e[5].title,href:e[10],title:e[5].title,onClick:e[17]("milestone",e[5].title)}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};32&n[0]&&(r.name=e[5].title),1024&n[0]&&(r.href=e[10]),32&n[0]&&(r.title=e[5].title),32&n[0]&&(r.onClick=e[17]("milestone",e[5].title)),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function wn(e){let t,n;return t=new vt({props:{class:"tag label",color:"#"+e[32],name:e[31],title:e[31],onClick:e[17]("label",e[31])}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};32768&n[0]&&(r.color="#"+e[32]),32768&n[0]&&(r.name=e[31]),32768&n[0]&&(r.title=e[31]),32768&n[0]&&(r.onClick=e[17]("label",e[31])),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function yn(e){let t,n,r=e[13],o=[];for(let t=0;t<r.length;t+=1)o[t]=bn(mn(e,r,t));const l=e=>ue(o[e],1,1,(()=>{o[e]=null}));return{c(){t=S("div");for(let e=0;e<o.length;e+=1)o[e].c();z(t,"class","board-card-links embedded svelte-2qowi0")},m(e,r){C(e,t,r);for(let e=0;e<o.length;e+=1)o[e].m(t,null);n=!0},p(e,n){if(8196&n[0]){let i;for(r=e[13],i=0;i<r.length;i+=1){const l=mn(e,r,i);o[i]?(o[i].p(l,n),ae(o[i],1)):(o[i]=bn(l),o[i].c(),ae(o[i],1),o[i].m(t,null))}for(se(),i=r.length;i<o.length;i+=1)l(i);ce()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)ae(o[e]);n=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)ue(o[e]);n=!1},d(e){e&&E(t),_(o,e)}}}function bn(e){let t,n;return t=new dn({props:{item:e[26].target,type:e[26].type,onSelect:e[2]}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};8192&n[0]&&(r.item=e[26].target),8192&n[0]&&(r.type=e[26].type),4&n[0]&&(r.onSelect=e[2]),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function kn(e){let t,n,r=e[11],o=[];for(let t=0;t<r.length;t+=1)o[t]=xn(fn(e,r,t));const l=e=>ue(o[e],1,1,(()=>{o[e]=null}));return{c(){t=S("div");for(let e=0;e<o.length;e+=1)o[e].c();z(t,"class","board-card-links attached svelte-2qowi0")},m(e,r){C(e,t,r);for(let e=0;e<o.length;e+=1)o[e].m(t,null);n=!0},p(e,n){if(2052&n[0]){let i;for(r=e[11],i=0;i<r.length;i+=1){const l=fn(e,r,i);o[i]?(o[i].p(l,n),ae(o[i],1)):(o[i]=xn(l),o[i].c(),ae(o[i],1),o[i].m(t,null))}for(se(),i=r.length;i<o.length;i+=1)l(i);ce()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)ae(o[e]);n=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)ue(o[e]);n=!1},d(e){e&&E(t),_(o,e)}}}function xn(e){let t,n;return t=new dn({props:{item:e[26].target,type:e[26].type,onSelect:e[2]}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};2048&n[0]&&(r.item=e[26].target),2048&n[0]&&(r.type=e[26].type),4&n[0]&&(r.onSelect=e[2]),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function Cn(e){let t,n,r,o,s,c,a,u,d,f,m,p,h,g,v,$,w,y,k,x,H,N,M,F,R,A,I,P,U,V,Y,j,K,X,W=e[7].length&&hn(e),G=e[14]&&gn(e);g=new It({props:{item:e[0],onSelect:e[2]}});let J=e[7].length&&vn(e),Q=e[5]&&$n(e),Z=e[15],ee=[];for(let t=0;t<Z.length;t+=1)ee[t]=wn(pn(e,Z,t));const te=e=>ue(ee[e],1,1,(()=>{ee[e]=null}));let ne=e[13].length&&yn(e);U=new Ot({props:{item:e[0]}});let re=e[11].length&&kn(e);return{c(){t=S("div"),n=S("div"),r=S("div"),o=S("a"),W&&W.c(),s=L(),G&&G.c(),c=L(),a=q(e[4]),d=L(),f=S("span"),m=q(e[6]),p=L(),h=S("span"),he(g.$$.fragment),v=L(),$=S("div"),w=q(e[16]),y=L(),J&&J.c(),k=L(),x=S("div"),Q&&Q.c(),H=L();for(let e=0;e<ee.length;e+=1)ee[e].c();N=L(),M=S("div"),F=S("a"),R=D("svg"),A=D("path"),I=L(),ne&&ne.c(),P=L(),he(U.$$.fragment),V=L(),re&&re.c(),z(o,"href",e[9]),z(o,"target","_blank"),z(o,"rel","noopener noreferrer"),z(o,"class","issue-number svelte-2qowi0"),z(o,"title",u=e[6]+"#"+e[4]),z(f,"class","repository svelte-2qowi0"),z(f,"title",e[6]),z(h,"class","collaborator-links svelte-2qowi0"),z(r,"class","header svelte-2qowi0"),z($,"class","title svelte-2qowi0"),z(A,"fill-rule","evenodd"),z(A,"d","M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"),z(R,"width","1em"),z(R,"height","1em"),z(R,"viewBox","0 0 16 16"),z(R,"version","1.1"),z(R,"aria-hidden","true"),z(R,"fill","currentColor"),z(R,"class","svelte-2qowi0"),z(F,"href",e[9]),z(F,"title","View on GitHub"),z(F,"target","_blank"),z(F,"rel","noopener noreferrer"),z(F,"class","svelte-2qowi0"),z(M,"class","links svelte-2qowi0"),z(x,"class","footer svelte-2qowi0"),z(n,"class","board-card svelte-2qowi0"),T(n,"hovered",e[8]),z(t,"class",Y="board-card-container "+e[1]+" svelte-2qowi0")},m(l,u){C(l,t,u),b(t,n),b(n,r),b(r,o),W&&W.m(o,null),b(o,s),G&&G.m(o,null),b(o,c),b(o,a),b(r,d),b(r,f),b(f,m),b(r,p),b(r,h),ge(g,h,null),b(n,v),b(n,$),b($,w),b(n,y),J&&J.m(n,null),b(n,k),b(n,x),Q&&Q.m(x,null),b(x,H);for(let e=0;e<ee.length;e+=1)ee[e].m(x,null);b(x,N),b(x,M),b(M,F),b(F,R),b(R,A),b(n,I),ne&&ne.m(n,null),b(n,P),ge(U,n,null),b(t,V),re&&re.m(t,null),j=!0,K||(X=[O(o,"click",(function(){i(e[17]("ref",e[0].key))&&e[17]("ref",e[0].key).apply(this,arguments)})),O(n,"mouseenter",e[23]),O(n,"mouseleave",e[24])],K=!0)},p(r,l){(e=r)[7].length?W?(W.p(e,l),128&l[0]&&ae(W,1)):(W=hn(e),W.c(),ae(W,1),W.m(o,s)):W&&(se(),ue(W,1,1,(()=>{W=null})),ce()),e[14]?G?(G.p(e,l),16384&l[0]&&ae(G,1)):(G=gn(e),G.c(),ae(G,1),G.m(o,c)):G&&(se(),ue(G,1,1,(()=>{G=null})),ce()),(!j||16&l[0])&&B(a,e[4]),(!j||512&l[0])&&z(o,"href",e[9]),(!j||80&l[0]&&u!==(u=e[6]+"#"+e[4]))&&z(o,"title",u),(!j||64&l[0])&&B(m,e[6]),(!j||64&l[0])&&z(f,"title",e[6]);const i={};if(1&l[0]&&(i.item=e[0]),4&l[0]&&(i.onSelect=e[2]),g.$set(i),(!j||65536&l[0])&&B(w,e[16]),e[7].length?J?J.p(e,l):(J=vn(e),J.c(),J.m(n,k)):J&&(J.d(1),J=null),e[5]?Q?(Q.p(e,l),32&l[0]&&ae(Q,1)):(Q=$n(e),Q.c(),ae(Q,1),Q.m(x,H)):Q&&(se(),ue(Q,1,1,(()=>{Q=null})),ce()),163840&l[0]){let t;for(Z=e[15],t=0;t<Z.length;t+=1){const n=pn(e,Z,t);ee[t]?(ee[t].p(n,l),ae(ee[t],1)):(ee[t]=wn(n),ee[t].c(),ae(ee[t],1),ee[t].m(x,N))}for(se(),t=Z.length;t<ee.length;t+=1)te(t);ce()}(!j||512&l[0])&&z(F,"href",e[9]),e[13].length?ne?(ne.p(e,l),8192&l[0]&&ae(ne,1)):(ne=yn(e),ne.c(),ae(ne,1),ne.m(n,P)):ne&&(se(),ue(ne,1,1,(()=>{ne=null})),ce());const d={};1&l[0]&&(d.item=e[0]),U.$set(d),256&l[0]&&T(n,"hovered",e[8]),e[11].length?re?(re.p(e,l),2048&l[0]&&ae(re,1)):(re=kn(e),re.c(),ae(re,1),re.m(t,null)):re&&(se(),ue(re,1,1,(()=>{re=null})),ce()),(!j||2&l[0]&&Y!==(Y="board-card-container "+e[1]+" svelte-2qowi0"))&&z(t,"class",Y)},i(e){if(!j){ae(W),ae(G),ae(g.$$.fragment,e),ae(Q);for(let e=0;e<Z.length;e+=1)ae(ee[e]);ae(ne),ae(U.$$.fragment,e),ae(re),j=!0}},o(e){ue(W),ue(G),ue(g.$$.fragment,e),ue(Q),ee=ee.filter(Boolean);for(let e=0;e<ee.length;e+=1)ue(ee[e]);ue(ne),ue(U.$$.fragment,e),ue(re),j=!1},d(e){e&&E(t),W&&W.d(),G&&G.d(),ve(g),J&&J.d(),Q&&Q.d(),_(ee,e),ne&&ne.d(),ve(U),re&&re.d(),K=!1,l(X)}}}function En(e,t,n){let r,o,l,i,s,c,a,u,d,f,m,p,h,g,v,$;const w={DEPENDS_ON:1,CLOSED_BY:2,PARENT_OF:3,REQUIRED_BY:4,LINKED_TO:5,CHILD_OF:6};let{item:y}=t,{class:b=""}=t,{onSelect:k}=t,x=!1,C=!1;return e.$$set=e=>{"item"in e&&n(0,y=e.item),"class"in e&&n(1,b=e.class),"onSelect"in e&&n(2,k=e.onSelect)},e.$$.update=()=>{1&e.$$.dirty[0]&&n(4,r=y.number),1&e.$$.dirty[0]&&n(16,o=y.title),1&e.$$.dirty[0]&&n(19,l=y.repository),1&e.$$.dirty[0]&&n(5,i=y.milestone),1&e.$$.dirty[0]&&n(15,s=y.labels.filter((e=>!e.column_label))),1&e.$$.dirty[0]&&n(14,c=y.pull_request),1&e.$$.dirty[0]&&n(20,a=y.links||[]),1048576&e.$$.dirty[0]&&n(21,u=a.filter((e=>!Le(e.target)&&"LINKED_BY"!==e.type)).sort(((e,t)=>w[e.type]-w[t.type]))),2097160&e.$$.dirty[0]&&n(13,d=u.filter((e=>x||"PARENT_OF"!==e.type))),2097152&e.$$.dirty[0]&&n(7,f=u.filter((e=>"PARENT_OF"===e.type))),128&e.$$.dirty[0]&&n(12,m=f.filter((e=>"closed"===e.target.state))),1048576&e.$$.dirty[0]&&n(11,p=a.filter((e=>Le(e.target)&&(De(e.target)||qe(e.target)&&"CLOSED_BY"===e.type))).filter(function(e){const t={};return function(n){const r=e(n);return!(r in t)&&(t[r]=!0,!0)}}((e=>e.target.id)))),524288&e.$$.dirty[0]&&n(6,h=`${l.owner.login}/${l.name}`),64&e.$$.dirty[0]&&n(18,g=`https://github.com/${h}`),262176&e.$$.dirty[0]&&n(10,v=i&&(i.html_url||`${g}/milestone/${i.number}`)),262161&e.$$.dirty[0]&&n(9,$=y.html_url||`${g}/issues/${r}`)},[y,b,k,x,r,i,h,f,C,$,v,p,m,d,c,s,o,function(e,t){return k&&function(n){Pe(n)&&(n.preventDefault(),k(e,t,Ue(n)))}},g,l,a,u,()=>n(3,x=!x),()=>n(8,C=!0),()=>n(8,C=!1)]}class _n extends ye{constructor(e){super(),we(this,e,En,Cn,a,{item:0,class:1,onSelect:2},null,[-1,-1])}}const Sn=e=>({}),Dn=e=>({});function qn(e){let t,n,r;return n=new Re({props:{hints:e[1],selectedHint:e[5],onHover:e[18],onBlur:e[19],onSelect:e[7],maxElements:7}}),{c(){t=S("div"),he(n.$$.fragment),z(t,"class","help-dropdown svelte-15toawx")},m(e,o){C(e,t,o),ge(n,t,null),r=!0},p(e,t){const r={};2&t&&(r.hints=e[1]),32&t&&(r.selectedHint=e[5]),4&t&&(r.onHover=e[18]),4&t&&(r.onBlur=e[19]),n.$set(r)},i(e){r||(ae(n.$$.fragment,e),r=!0)},o(e){ue(n.$$.fragment,e),r=!1},d(e){e&&E(t),ve(n)}}}function Ln(e){let t,n,r,o,s,c,a,d,h,g,v;const $=e[16].header,w=u($,e,e[15],Dn);let y=e[3]&&e[1].length&&qn(e);return{c(){t=S("div"),n=S("div"),r=L(),o=S("form"),w&&w.c(),s=L(),c=S("div"),a=S("input"),d=L(),y&&y.c(),z(n,"class","overlay svelte-15toawx"),z(a,"id",e[6]),a.value=e[3],z(a,"placeholder","Choose repository"),z(a,"autocomplete","off"),z(a,"spellcheck","false"),z(a,"aria-label","Repository name input"),z(a,"class","form-control form-control-lg"),z(a,"type","text"),z(c,"class","form-group dropdown-parent svelte-15toawx"),z(o,"class","issue-creator px-4 py-2 svelte-15toawx"),z(t,"class","repository-select svelte-15toawx")},m(l,u){C(l,t,u),b(t,n),b(t,r),b(t,o),w&&w.m(o,null),b(o,s),b(o,c),b(c,a),e[17](a),b(c,d),y&&y.m(c,null),h=!0,g||(v=[O(window,"keydown",e[10]),O(n,"click",(function(){i(e[0])&&e[0].apply(this,arguments)})),O(a,"input",e[8]),O(a,"keydown",e[9]),O(o,"submit",e[11])],g=!0)},p(t,[n]){e=t,w&&w.p&&(!h||32768&n)&&m(w,$,e,e[15],h?f($,e[15],n,Sn):p(e[15]),Dn),(!h||8&n&&a.value!==e[3])&&(a.value=e[3]),e[3]&&e[1].length?y?(y.p(e,n),10&n&&ae(y,1)):(y=qn(e),y.c(),ae(y,1),y.m(c,null)):y&&(se(),ue(y,1,1,(()=>{y=null})),ce())},i(e){h||(ae(w,e),ae(y),h=!0)},o(e){ue(w,e),ue(y),h=!1},d(n){n&&E(t),w&&w.d(n),e[17](null),y&&y.d(),g=!1,l(v)}}}function Hn(e,t,n){let r,{$$slots:o={},$$scope:l}=t;const i=ke();let s,c,a,u,{onClose:d}=t,{repositories:f}=t,{onSelect:m}=t,p="";function h(e){const{val:t,idx:r}=e.apply(p);n(4,u.value=n(3,p=t),u),n(4,u.selectionEnd=n(4,u.selectionStart=r,u),u);const[o,l]=t.split("/");return m(o,l)}function g(e,t){const n=s||[];let r=n.findIndex((t=>t.name===e.name))+t;return r<0&&(r=n.length-1),r===n.length&&(r=0),n[r]}Y((()=>{u.focus()}));return e.$$set=e=>{"onClose"in e&&n(0,d=e.onClose),"repositories"in e&&n(12,f=e.repositories),"onSelect"in e&&n(13,m=e.onSelect),"$$scope"in e&&n(15,l=e.$$scope)},e.$$.update=()=>{if(20490&e.$$.dirty){console.time("RepositorySelect#computeMatch");let e=function(e,t){const n=t.reduce(((t,n)=>{if(!n.toLowerCase().includes(e))return t;const r=n.indexOf(e),o={name:n,parts:[{text:n.substring(0,r)},{text:n.substring(r,r+e.length),matched:!0},{text:n.substring(r+e.length)}],apply:e=>({val:n,idx:n.length})};return t.push(o),t}),[]);return{keyboardSelectedHint:n[0],matchedHints:n}}(p,f);console.timeEnd("RepositorySelect#computeMatch"),n(1,s=e.matchedHints),n(14,c=s&&c&&s.find((e=>e.name===c.name))||e.keyboardSelectedHint)}16388&e.$$.dirty&&n(5,r=a||c)},[d,s,a,p,u,r,i,h,function(e){n(3,p=e.target.value)},function(e){const t=e.key;"Enter"===t&&c&&(h(c),e.preventDefault()),"ArrowUp"===t&&(n(14,c=g(c,-1)),e.preventDefault()),"ArrowDown"===t&&(n(14,c=g(c,1)),e.preventDefault()),"Escape"!==t||p||(u.blur(),e.preventDefault())},function(e){"Escape"===e.key&&(e.preventDefault(),d())},function(e){if(e.preventDefault(),!p)return;const[t,n]=p.split("/");return n&&t?m(t,n):void 0},f,m,c,l,o,function(e){K[e?"unshift":"push"]((()=>{u=e,n(4,u)}))},e=>n(2,a=e),()=>n(2,a=null)]}class On extends ye{constructor(e){super(),we(this,e,Hn,Ln,a,{onClose:0,repositories:12,onSelect:13})}}function Nn(e){let t,n;return t=new On({props:{repositories:e[0],onClose:e[3],onSelect:e[2],$$slots:{header:[zn]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.repositories=e[0]),8&n&&(r.onClose=e[3]),4&n&&(r.onSelect=e[2]),16&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function zn(e){let t;return{c(){t=S("h4"),t.textContent="Create new Issue",z(t,"slot","header"),z(t,"class","chooser-header my-3")},m(e,n){C(e,t,n)},d(e){e&&E(t)}}}function Bn(e){let t,n,r=e[1]&&Nn(e);return{c(){r&&r.c(),t=H()},m(e,o){r&&r.m(e,o),C(e,t,o),n=!0},p(e,[n]){e[1]?r?(r.p(e,n),2&n&&ae(r,1)):(r=Nn(e),r.c(),ae(r,1),r.m(t.parentNode,t)):r&&(se(),ue(r,1,1,(()=>{r=null})),ce())},i(e){n||(ae(r),n=!0)},o(e){ue(r),n=!1},d(e){r&&r.d(e),e&&E(t)}}}function Mn(e,t,n){let{repositories:r}=t,{open:o}=t,{onCreate:l}=t,{onClose:i}=t;return e.$$set=e=>{"repositories"in e&&n(0,r=e.repositories),"open"in e&&n(1,o=e.open),"onCreate"in e&&n(2,l=e.onCreate),"onClose"in e&&n(3,i=e.onClose)},[r,o,l,i]}class Fn extends ye{constructor(e){super(),we(this,e,Mn,Bn,a,{repositories:0,open:1,onCreate:2,onClose:3})}}class Tn{moveIssue(e,t,n,r){const o=JSON.stringify({id:e,before:n,after:r,column:t});return Rn(this.appURL("/board/issues/move"),{method:"POST",body:o})}listCards(e){return Rn(this.appURL(`/board/cards${An(e)}`))}getBoard(){return Rn(this.appURL("/board"))}getLoggedInUser(){return Rn(this.appURL("/login_check")).catch((e=>null))}listUpdates(e,t){return Rn(this.appURL(`/board/updates?cursor=${t}${An(e,"&")}`))}appURL(e){return`/wuffle${e}`}}function Rn(e,t){return fetch(e,{...t,credentials:"include"}).then((e=>{const{ok:t,status:n}=e;if(!t){const t=new Error("HTTP "+n);throw t.status=n,t.response=e,t}return e})).then((e=>e.text())).then((e=>JSON.parse(e)))}function An(e,t="?"){return e?`${t}s=${encodeURIComponent(e)}`:""}var In="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Pn=function(e,t){return Array.prototype.slice.call(e,t)},Un="function"==typeof setImmediate?function(e){setImmediate(e)}:"undefined"!=typeof process&&process.nextTick?process.nextTick:function(e){setTimeout(e,0)},Vn=function(e,t,n){e&&Un((function(){e.apply(n||null,t||[])}))},Yn=function(e,t){var n=t||{},r={};return void 0===e&&(e={}),e.on=function(t,n){return r[t]?r[t].push(n):r[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var o=arguments.length;if(1===o)delete r[t];else if(0===o)r={};else{var l=r[t];if(!l)return e;l.splice(l.indexOf(n),1)}return e},e.emit=function(){var t=Pn(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var o=(r[t]||[]).slice(0);return function(){var r=Pn(arguments),l=this||e;if("error"===t&&!1!==n.throws&&!o.length)throw 1===r.length?r[0]:r;return o.forEach((function(o){n.async?Vn(o,r,l):o.apply(l,r),o._once&&e.off(t,o)})),e}},e},jn=In.CustomEvent;var Kn=function(){try{var e=new jn("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?jn:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n},Xn=[],Wn="",Gn=/^on/;for(Wn in In)Gn.test(Wn)&&Xn.push(Wn.slice(2));var Jn=Xn,Qn=In.document,Zn=function(e,t,n,r){return e.addEventListener(t,n,r)},er=function(e,t,n,r){return e.removeEventListener(t,n,r)},tr=[];In.addEventListener||(Zn=function(e,t,n){return e.attachEvent("on"+t,function(e,t,n){var r=rr(e,t,n)||function(e,t,n){return function(t){var r=t||In.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},r.which=r.which||r.keyCode,n.call(e,r)}}(e,0,n);return tr.push({wrapper:r,element:e,type:t,fn:n}),r}(e,t,n))},er=function(e,t,n){var r=rr(e,t,n);if(r)return e.detachEvent("on"+t,r)});var nr={add:Zn,remove:er,fabricate:function(e,t,n){var r=-1===Jn.indexOf(t)?new Kn(t,{detail:n}):function(){var e;Qn.createEvent?(e=Qn.createEvent("Event")).initEvent(t,!0,!0):Qn.createEventObject&&(e=Qn.createEventObject());return e}();e.dispatchEvent?e.dispatchEvent(r):e.fireEvent("on"+t,r)}};function rr(e,t,n){var r=function(e,t,n){var r,o;for(r=0;r<tr.length;r++)if((o=tr[r]).element===e&&o.type===t&&o.fn===n)return r}(e,t,n);if(r){var o=tr[r].wrapper;return tr.splice(r,1),o}}var or={};function lr(e){var t=or[e];return t?t.lastIndex=0:or[e]=t=new RegExp("(?:^|\\s)"+e+"(?:\\s|$)","g"),t}var ir={add:function(e,t){var n=e.className;n.length?lr(t).test(n)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(lr(t)," ").trim()}},sr=document,cr=sr.documentElement;function ar(e,t,n,r){In.navigator.pointerEnabled?nr[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[n],r):In.navigator.msPointerEnabled?nr[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[n],r):(nr[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[n],r),nr[t](e,n,r))}function ur(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function dr(e){var t=e.getBoundingClientRect();return{left:t.left+fr("scrollLeft","pageXOffset"),top:t.top+fr("scrollTop","pageYOffset")}}function fr(e,t){return void 0!==In[t]?In[t]:cr.clientHeight?cr[e]:sr.body[e]}function mr(e,t,n){var r,o=(e=e||{}).className||"";return e.className+=" gu-hide",r=sr.elementFromPoint(t,n),e.className=o,r}function pr(){return!1}function hr(){return!0}function gr(e){return e.width||e.right-e.left}function vr(e){return e.height||e.bottom-e.top}function $r(e){return e.parentNode===sr?null:e.parentNode}function wr(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||yr(e)}function yr(e){return!!e&&("false"!==e.contentEditable&&("true"===e.contentEditable||yr($r(e))))}function br(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function kr(e,t){var n=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),r={pageX:"clientX",pageY:"clientY"};return e in r&&!(e in n)&&r[e]in n&&(e=r[e]),n[e]}var xr=function(e,t){var n,r,o,l,i,s,c,a,u,d,f,m=arguments.length;1===m&&!1===Array.isArray(e)&&(t=e,e=[]);var p,h=null,g=t||{};void 0===g.moves&&(g.moves=hr),void 0===g.accepts&&(g.accepts=hr),void 0===g.invalid&&(g.invalid=L),void 0===g.containers&&(g.containers=e||[]),void 0===g.isContainer&&(g.isContainer=pr),void 0===g.copy&&(g.copy=!1),void 0===g.copySortSource&&(g.copySortSource=!1),void 0===g.revertOnSpill&&(g.revertOnSpill=!1),void 0===g.removeOnSpill&&(g.removeOnSpill=!1),void 0===g.direction&&(g.direction="vertical"),void 0===g.ignoreInputTextSelection&&(g.ignoreInputTextSelection=!0),void 0===g.mirrorContainer&&(g.mirrorContainer=sr.body);var v=Yn({containers:g.containers,start:D,end:H,cancel:M,remove:B,destroy:k,canMove:S,dragging:!1});return!0===g.removeOnSpill&&v.on("over",I).on("out",P),w(),v;function $(e){return-1!==v.containers.indexOf(e)||g.isContainer(e)}function w(e){var t=e?"remove":"add";ar(cr,t,"mousedown",C),ar(cr,t,"mouseup",N)}function y(e){ar(cr,e?"remove":"add","mousemove",E)}function b(e){var t=e?"remove":"add";nr[t](cr,"selectstart",x),nr[t](cr,"click",x)}function k(){w(!0),N({})}function x(e){p&&e.preventDefault()}function C(e){if(s=e.clientX,c=e.clientY,!(1!==ur(e)||e.metaKey||e.ctrlKey)){var t=e.target,n=_(t);n&&(p=n,y(),"mousedown"===e.type&&(wr(t)?t.focus():e.preventDefault()))}}function E(e){if(p)if(0!==ur(e)){if(!(void 0!==e.clientX&&Math.abs(e.clientX-s)<=(g.slideFactorX||0)&&void 0!==e.clientY&&Math.abs(e.clientY-c)<=(g.slideFactorY||0))){if(g.ignoreInputTextSelection){var t=kr("clientX",e)||0,n=kr("clientY",e)||0;if(wr(sr.elementFromPoint(t,n)))return}var r=p;y(!0),b(),H(),q(r);var a=dr(o);l=kr("pageX",e)-a.left,i=kr("pageY",e)-a.top,ir.add(d||o,"gu-transit"),U(),A(e)}}else N({})}function _(e){if(!(v.dragging&&n||$(e))){for(var t=e;$r(e)&&!1===$($r(e));){if(g.invalid(e,t))return;if(!(e=$r(e)))return}var r=$r(e);if(r)if(!g.invalid(e,t))if(g.moves(e,r,t,br(e)))return{item:e,source:r}}}function S(e){return!!_(e)}function D(e){var t=_(e);t&&q(t)}function q(e){K(e.item,e.source)&&(d=e.item.cloneNode(!0),v.emit("cloned",d,e.item,"copy")),r=e.source,o=e.item,a=u=br(e.item),v.dragging=!0,v.emit("drag",o,r)}function L(){return!1}function H(){if(v.dragging){var e=d||o;z(e,$r(e))}}function O(){p=!1,y(!0),b(!0)}function N(e){if(O(),v.dragging){var t=d||o,l=kr("clientX",e)||0,i=kr("clientY",e)||0,s=R(mr(n,l,i),l,i);s&&(d&&g.copySortSource||!d||s!==r)?z(t,s):g.removeOnSpill?B():M()}}function z(e,t){var n=$r(e);d&&g.copySortSource&&t===r&&n.removeChild(o),T(t)?v.emit("cancel",e,r,r):v.emit("drop",e,t,r,u),F()}function B(){if(v.dragging){var e=d||o,t=$r(e);t&&t.removeChild(e),v.emit(d?"cancel":"remove",e,t,r),F()}}function M(e){if(v.dragging){var t=arguments.length>0?e:g.revertOnSpill,n=d||o,l=$r(n),i=T(l);!1===i&&t&&(d?l&&l.removeChild(d):r.insertBefore(n,a)),i||t?v.emit("cancel",n,r,r):v.emit("drop",n,l,r,u),F()}}function F(){var e=d||o;O(),V(),e&&ir.rm(e,"gu-transit"),f&&clearTimeout(f),v.dragging=!1,h&&v.emit("out",e,h,r),v.emit("dragend",e),r=o=d=a=u=f=h=null}function T(e,t){var l;return l=void 0!==t?t:n?u:br(d||o),e===r&&l===a}function R(e,t,n){for(var l=e;l&&!i();)l=$r(l);return l;function i(){if(!1===$(l))return!1;var i=Y(l,e),s=j(l,i,t,n);return!!T(l,s)||g.accepts(o,l,r,s)}}function A(e){if(n){e.preventDefault();var t=kr("clientX",e)||0,s=kr("clientY",e)||0,c=t-l,f=s-i;n.style.left=c+"px",n.style.top=f+"px";var m=d||o,p=mr(n,t,s),$=R(p,t,s),w=null!==$&&$!==h;(w||null===$)&&(h&&x("out"),h=$,w&&x("over"));var y=$r(m);if($!==r||!d||g.copySortSource){var b,k=Y($,p);if(null!==k)b=j($,k,t,s);else{if(!0!==g.revertOnSpill||d)return void(d&&y&&y.removeChild(m));b=a,$=r}(null===b&&w||b!==m&&b!==br(m))&&(u=b,$.insertBefore(m,b),v.emit("shadow",m,$,r))}else y&&y.removeChild(m)}function x(e){v.emit(e,m,h,r)}}function I(e){ir.rm(e,"gu-hide")}function P(e){v.dragging&&ir.add(e,"gu-hide")}function U(){if(!n){var e=o.getBoundingClientRect();(n=o.cloneNode(!0)).style.width=gr(e)+"px",n.style.height=vr(e)+"px",ir.rm(n,"gu-transit"),ir.add(n,"gu-mirror"),g.mirrorContainer.appendChild(n),ar(cr,"add","mousemove",A),ir.add(g.mirrorContainer,"gu-unselectable"),v.emit("cloned",n,o,"mirror")}}function V(){n&&(ir.rm(g.mirrorContainer,"gu-unselectable"),ar(cr,"remove","mousemove",A),$r(n).removeChild(n),n=null)}function Y(e,t){for(var n=t;n!==e&&$r(n)!==e;)n=$r(n);return n===cr?null:n}function j(e,t,n,r){var o="horizontal"===g.direction,l=t!==e?function(){var e=t.getBoundingClientRect();if(o)return i(n>e.left+gr(e)/2);return i(r>e.top+vr(e)/2)}():function(){var t,l,i,s=e.children.length;for(t=0;t<s;t++){if(l=e.children[t],i=l.getBoundingClientRect(),o&&i.left+i.width/2>n)return l;if(!o&&i.top+i.height/2>r)return l}return null}();return l;function i(e){return e?br(t):t}}function K(e,t){return"boolean"==typeof g.copy?g.copy:g.copy(e,t)}};const{document:Cr,window:Er}=me;function _r(e,t,n){const r=e.slice();return r[55]=t[n],r}function Sr(e,t,n){const r=e.slice();return r[58]=t[n],r[60]=n,r}function Dr(e,t,n){const r=e.slice();return r[61]=t[n],r}function qr(e){return Cr.title=e[4]+" · Wuffle Board",{c:t,m:t,d:t}}function Lr(e){let n,r;return{c(){n=S("img"),c(n.src,r="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2080%2080%22%3E%3Cpath%20d%3D%22M12%200h56c7%200%2012%205%2012%2012v56c0%207-5%2012-12%2012H12C5%2080%200%2075%200%2068V12C0%205%205%200%2012%200z%22%20fill%3D%22%23999%22%2F%3E%3Cpath%20d%3D%22M15%2010h21c3%200%205%202%205%205v6c0%203-2%205-5%205H15c-2%200-4-2-4-5v-6c0-3%202-5%204-5zm0%2020h21c3%200%205%202%205%205v6c0%202-2%204-5%204H15c-2%200-4-1-4-4v-6c0-3%202-5%204-5zm27%2022h21c2%200%204%202%204%205v6c0%202-2%204-4%204H42c-2%200-4-2-4-4v-6c0-3%202-5%204-5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E")||z(n,"src","data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2080%2080%22%3E%3Cpath%20d%3D%22M12%200h56c7%200%2012%205%2012%2012v56c0%207-5%2012-12%2012H12C5%2080%200%2075%200%2068V12C0%205%205%200%2012%200z%22%20fill%3D%22%23999%22%2F%3E%3Cpath%20d%3D%22M15%2010h21c3%200%205%202%205%205v6c0%203-2%205-5%205H15c-2%200-4-2-4-5v-6c0-3%202-5%204-5zm0%2020h21c3%200%205%202%205%205v6c0%202-2%204-5%204H15c-2%200-4-1-4-4v-6c0-3%202-5%204-5zm27%2022h21c2%200%204%202%204%205v6c0%202-2%204-4%204H42c-2%200-4-2-4-4v-6c0-3%202-5%204-5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"),z(n,"width","64"),z(n,"alt","Loading")},m(e,t){C(e,n,t)},p:t,d(e){e&&E(n)}}}function Hr(e){let n,r,o,l,i,s,a,u,d;return{c(){n=S("div"),r=S("img"),l=L(),i=S("p"),i.textContent="We could not load the board.",s=L(),a=S("button"),a.textContent="Retry",c(r.src,o="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2080%2080%22%3E%3Cpath%20d%3D%22M12%200h56c7%200%2012%205%2012%2012v56c0%207-5%2012-12%2012H12C5%2080%200%2075%200%2068V12C0%205%205%200%2012%200z%22%20fill%3D%22%23d35f5f%22%2F%3E%3Cpath%20d%3D%22M30%2038l19%207c3%201%204%204%203%206l-2%206c-1%202-4%203-6%203l-20-8c-2-1-3-3-2-6l2-6c1-2%203-3%206-2z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M12%2066l18-10c2-1%205-1%206%202l3%205c1%202%201%205-1%206L19%2080c-2%201-5%200-6-2l-3-6c-1-2%200-4%202-6z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M46%2060l20%205c2%201%204%203%203%206l-1%206c-1%202-3%204-6%203l-20-6c-3%200-4-3-3-5l1-6c1-2%203-4%206-3z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E")||z(r,"src","data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2080%2080%22%3E%3Cpath%20d%3D%22M12%200h56c7%200%2012%205%2012%2012v56c0%207-5%2012-12%2012H12C5%2080%200%2075%200%2068V12C0%205%205%200%2012%200z%22%20fill%3D%22%23d35f5f%22%2F%3E%3Cpath%20d%3D%22M30%2038l19%207c3%201%204%204%203%206l-2%206c-1%202-4%203-6%203l-20-8c-2-1-3-3-2-6l2-6c1-2%203-3%206-2z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M12%2066l18-10c2-1%205-1%206%202l3%205c1%202%201%205-1%206L19%2080c-2%201-5%200-6-2l-3-6c-1-2%200-4%202-6z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M46%2060l20%205c2%201%204%203%203%206l-1%206c-1%202-3%204-6%203l-20-6c-3%200-4-3-3-5l1-6c1-2%203-4%206-3z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"),z(r,"width","128"),z(r,"alt","An error occured"),z(i,"class","svelte-88s1pm"),z(a,"class","btn btn-primary"),z(n,"class","taskboard-error svelte-88s1pm")},m(t,o){C(t,n,o),b(n,r),b(n,l),b(n,i),b(n,s),b(n,a),u||(d=O(a,"click",e[27]),u=!0)},p:t,d(e){e&&E(n),u=!1,d()}}}function Or(e){let t,n,r=e[7],o=[];for(let t=0;t<r.length;t+=1)o[t]=zr(Dr(e,r,t));const l=e=>ue(o[e],1,1,(()=>{o[e]=null}));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=H()},m(e,r){for(let t=0;t<o.length;t+=1)o[t].m(e,r);C(e,t,r),n=!0},p(e,n){if(128&n[0]){let i;for(r=e[7],i=0;i<r.length;i+=1){const l=Dr(e,r,i);o[i]?(o[i].p(l,n),ae(o[i],1)):(o[i]=zr(l),o[i].c(),ae(o[i],1),o[i].m(t.parentNode,t))}for(se(),i=r.length;i<o.length;i+=1)l(i);ce()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)ae(o[e]);n=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)ue(o[e]);n=!1},d(e){_(o,e),e&&E(t)}}}function Nr(e){let t,n,r;return{c(){t=q("Could not reach the board back-end. "),n=S("a"),n.textContent="Reload board.",r=L(),z(n,"href","")},m(e,o){C(e,t,o),C(e,n,o),C(e,r,o)},d(e){e&&E(t),e&&E(n),e&&E(r)}}}function zr(e){let t,n;return t=new ft({props:{type:"warning",message:e[61].action+" failed",$$slots:{default:[Nr]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};128&n[0]&&(r.message=e[61].action+" failed"),4&n[2]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function Br(e){let t,n;return t=new ft({props:{type:"error",message:"Failed to move card",$$slots:{default:[Tr]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,r){ge(t,e,r),n=!0},p(e,n){const r={};512&n[0]|4&n[2]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ae(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){ve(t,e)}}}function Mr(e){let t,n,r;return{c(){t=q("Please "),n=S("a"),n.textContent="login via GitHub",r=q(" to interact with cards."),z(n,"href","/wuffle/login"),z(n,"aria-label","Login via GitHub")},m(e,o){C(e,t,o),C(e,n,o),C(e,r,o)},d(e){e&&E(t),e&&E(n),e&&E(r)}}}function Fr(e){let t;return{c(){t=q("It seems like you do not have write access to the underlying GitHub repository.")},m(e,n){C(e,t,n)},d(e){e&&E(t)}}}function Tr(e){let t;function n(e,t){return"forbidden"===e[9]?Fr:Mr}let r=n(e),o=r(e);return{c(){o.c(),t=H()},m(e,n){o.m(e,n),C(e,t,n)},p(e,l){r!==(r=n(e))&&(o.d(1),o=r(e),o&&(o.c(),o.m(t.parentNode,t)))},d(e){o.d(e),e&&E(t)}}}function Rr(e){let t,n,r,o=!e[6]&&Or(e),l=e[9]&&Br(e);return{c(){o&&o.c(),t=L(),l&&l.c(),n=H()},m(e,i){o&&o.m(e,i),C(e,t,i),l&&l.m(e,i),C(e,n,i),r=!0},p(e,r){e[6]?o&&(se(),ue(o,1,1,(()=>{o=null})),ce()):o?(o.p(e,r),64&r[0]&&ae(o,1)):(o=Or(e),o.c(),ae(o,1),o.m(t.parentNode,t)),e[9]?l?(l.p(e,r),512&r[0]&&ae(l,1)):(l=Br(e),l.c(),ae(l,1),l.m(n.parentNode,n)):l&&(se(),ue(l,1,1,(()=>{l=null})),ce())},i(e){r||(ae(o),ae(l),r=!0)},o(e){ue(o),ue(l),r=!1},d(e){o&&o.d(e),e&&E(t),l&&l.d(e),e&&E(n)}}}function Ar(e){let t,n,r;return n=new Ze({props:{title:"Login with GitHub",rounded:!0,$$slots:{default:[Pr]},$$scope:{ctx:e}}}),{c(){t=S("a"),he(n.$$.fragment),z(t,"href","/wuffle/login"),z(t,"aria-label","Login with GitHub")},m(e,o){C(e,t,o),ge(n,t,null),r=!0},p(e,t){const r={};4&t[2]&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){r||(ae(n.$$.fragment,e),r=!0)},o(e){ue(n.$$.fragment,e),r=!1},d(e){e&&E(t),ve(n)}}}function Ir(e){let t,n,r;return n=new Ze({props:{title:`Logout ${e[8].login}`,rounded:!0,$$slots:{default:[Ur]},$$scope:{ctx:e}}}),{c(){t=S("a"),he(n.$$.fragment),z(t,"href","/wuffle/logout"),z(t,"aria-label","Logout")},m(e,o){C(e,t,o),ge(n,t,null),r=!0},p(e,t){const r={};256&t[0]&&(r.title=`Logout ${e[8].login}`),256&t[0]|4&t[2]&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){r||(ae(n.$$.fragment,e),r=!0)},o(e){ue(n.$$.fragment,e),r=!1},d(e){e&&E(t),ve(n)}}}function Pr(e){let t,n;return{c(){t=D("svg"),n=D("path"),z(n,"fill-rule","evenodd"),z(n,"d","M12 14.002a.998.998 0 0 1-.998.998H1.001A1 1 0 0 1 0 13.999V13c0-2.633 4-4 4-4s.229-.409 0-1c-.841-.62-.944-1.59-1-4 .173-2.413 1.867-3 3-3s2.827.586 3 3c-.056 2.41-.159 3.38-1 4-.229.59 0 1 0 1s4 1.367 4 4v1.002z"),z(t,"height","1.3em"),z(t,"fill","currentColor"),z(t,"viewBox","0 0 12 16"),z(t,"version","1.1"),z(t,"aria-hidden","true")},m(e,r){C(e,t,r),b(t,n)},d(e){e&&E(t)}}}function Ur(e){let t,n;return{c(){t=S("img"),c(t.src,n=e[8].avatar_url+"&s=40")||z(t,"src",n),F(t,"max-width","100%"),z(t,"alt","Logged in user avatar")},m(e,n){C(e,t,n)},p(e,r){256&r[0]&&!c(t.src,n=e[8].avatar_url+"&s=40")&&z(t,"src",n)},d(e){e&&E(t)}}}function Vr(e){let t,n,r=e[0],o=[];for(let t=0;t<r.length;t+=1)o[t]=Wr(_r(e,r,t));const l=e=>ue(o[e],1,1,(()=>{o[e]=null}));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=H()},m(e,r){for(let t=0;t<o.length;t+=1)o[t].m(e,r);C(e,t,r),n=!0},p(e,n){if(430093&n[0]){let i;for(r=e[0],i=0;i<r.length;i+=1){const l=_r(e,r,i);o[i]?(o[i].p(l,n),ae(o[i],1)):(o[i]=Wr(l),o[i].c(),ae(o[i],1),o[i].m(t.parentNode,t))}for(se(),i=r.length;i<o.length;i+=1)l(i);ce()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)ae(o[e]);n=!0}},o(e){o=o.filter(Boolean);for(let e=0;e<o.length;e+=1)ue(o[e]);n=!1},d(e){_(o,e),e&&E(t)}}}function Yr(e){let t,n;return{c(){t=D("svg"),n=D("path"),z(n,"d","M605 515l149 122c5 3 12 0 12-6v-76h186c4 0 7-2 7-6v-77c0-4-3-7-7-7H766v-75c0-6-7-9-12-5L605 504c-4 3-4 8 0 11zM65 547c0 4 3 8 7 8h186v74c0 6 7 9 12 6l149-120c4-3 4-8 0-11L270 385c-5-4-12-1-12 5v75H72c-4 0-7 3-7 7z"),z(t,"viewBox","64 64 896 896"),z(t,"height","1em"),z(t,"aria-hidden","true"),z(t,"fill","currentColor")},m(e,r){C(e,t,r),b(t,n)},d(e){e&&E(t)}}}function jr(e){let t,n;return{c(){t=D("svg"),n=D("path"),z(n,"d","M602 548c0 4 4 8 8 8h186v74c0 6 7 9 11 6l150-120c3-3 3-8 0-11L807 386c-4-4-11-1-11 5v75H609c-4 0-7 3-7 7zM68 514l149 122c4 3 11 0 11-6v-76h186c4 0 8-2 8-6v-77c0-4-4-7-8-7H228v-75c0-6-7-9-11-5L68 503c-4 3-4 8 0 11z"),z(t,"viewBox","64 64 896 896"),z(t,"height","1em"),z(t,"aria-hidden","true"),z(t,"fill","currentColor")},m(e,r){C(e,t,r),b(t,n)},d(e){e&&E(t)}}}function Kr(e){let t,n,r,o,l,s=[],c=new Map,a=e[3][e[55].name]||[];const u=e=>e[58].id;for(let t=0;t<a.length;t+=1){let n=Sr(e,a,t),r=u(n);c.set(r,s[t]=Xr(r,n))}return{c(){t=S("div");for(let e=0;e<s.length;e+=1)s[e].c();z(t,"class","taskboard-column-items svelte-88s1pm"),z(t,"data-column-id",n=e[55].name)},m(n,c){C(n,t,c);for(let e=0;e<s.length;e+=1)s[e].m(t,null);r=!0,o||(l=O(t,"scroll",(function(){i(e[18](e[55].name))&&e[18](e[55].name).apply(this,arguments)})),o=!0)},p(o,l){e=o,32777&l[0]&&(a=e[3][e[55].name]||[],se(),s=function(e,t,n,r,o,l,i,s,c,a,u,d){let f=e.length,m=l.length,p=f;const h={};for(;p--;)h[e[p].key]=p;const g=[],v=new Map,$=new Map;for(p=m;p--;){const e=d(o,l,p),s=n(e);let c=i.get(s);c?r&&c.p(e,t):(c=a(s,e),c.c()),v.set(s,g[p]=c),s in h&&$.set(s,Math.abs(p-h[s]))}const w=new Set,y=new Set;function b(e){ae(e,1),e.m(s,u),i.set(e.key,e),u=e.first,m--}for(;f&&m;){const t=g[m-1],n=e[f-1],r=t.key,o=n.key;t===n?(u=t.first,f--,m--):v.has(o)?!i.has(r)||w.has(r)?b(t):y.has(o)?f--:$.get(r)>$.get(o)?(y.add(r),b(t)):(w.add(o),f--):(c(n,i),f--)}for(;f--;){const t=e[f];v.has(t.key)||c(t,i)}for(;m;)b(g[m-1]);return g}(s,l,u,1,e,a,c,t,pe,Xr,null,Sr),ce()),(!r||1&l[0]&&n!==(n=e[55].name))&&z(t,"data-column-id",n)},i(e){if(!r){for(let e=0;e<a.length;e+=1)ae(s[e]);r=!0}},o(e){for(let e=0;e<s.length;e+=1)ue(s[e]);r=!1},d(e){e&&E(t);for(let e=0;e<s.length;e+=1)s[e].d();o=!1,l()}}}function Xr(e,t){let n,r,o,l,i,s;return r=new _n({props:{item:t[58],onSelect:t[15]}}),{key:e,first:null,c(){n=S("div"),he(r.$$.fragment),o=L(),z(n,"class","card-container"),z(n,"data-card-id",l=t[58].id),z(n,"data-card-order",i=t[58].order),this.first=n},m(e,t){C(e,n,t),ge(r,n,null),b(n,o),s=!0},p(e,o){t=e;const c={};9&o[0]&&(c.item=t[58]),r.$set(c),(!s||9&o[0]&&l!==(l=t[58].id))&&z(n,"data-card-id",l),(!s||9&o[0]&&i!==(i=t[58].order))&&z(n,"data-card-order",i)},i(e){s||(ae(r.$$.fragment,e),s=!0)},o(e){ue(r.$$.fragment,e),s=!1},d(e){e&&E(n),ve(r)}}}function Wr(e){let t,n,r,o,l,i,s,c,a,u,d,f,m,p,h,g=e[55].name+"",v=(e[2][e[55].name]||[]).length+"";function $(e,t){return e[12][e[55].name]?jr:Yr}let w=$(e),y=w(e);function k(...t){return e[28](e[55],...t)}let x=!e[12][e[55].name]&&Kr(e);return{c(){t=S("div"),n=S("div"),r=S("button"),y.c(),l=L(),i=S("span"),s=q(g),c=L(),a=S("span"),u=q(v),d=L(),x&&x.c(),f=L(),z(r,"class","taskboard-column-collapse btn btn-link svelte-88s1pm"),z(r,"title",o=(e[12][e[55].name]?"Expand":"Collapse")+" column"),z(i,"class","taskboard-column-name svelte-88s1pm"),z(a,"class","taskboard-column-issue-count svelte-88s1pm"),z(n,"class","taskboard-column-header svelte-88s1pm"),z(t,"class","taskboard-column svelte-88s1pm"),T(t,"collapsed",e[12][e[55].name])},m(e,o){C(e,t,o),b(t,n),b(n,r),y.m(r,null),b(n,l),b(n,i),b(i,s),b(n,c),b(n,a),b(a,u),b(t,d),x&&x.m(t,null),b(t,f),m=!0,p||(h=O(r,"click",k),p=!0)},p(n,l){w!==(w=$(e=n))&&(y.d(1),y=w(e),y&&(y.c(),y.m(r,null))),(!m||4097&l[0]&&o!==(o=(e[12][e[55].name]?"Expand":"Collapse")+" column"))&&z(r,"title",o),(!m||1&l[0])&&g!==(g=e[55].name+"")&&B(s,g),(!m||5&l[0])&&v!==(v=(e[2][e[55].name]||[]).length+"")&&B(u,v),e[12][e[55].name]?x&&(se(),ue(x,1,1,(()=>{x=null})),ce()):x?(x.p(e,l),4097&l[0]&&ae(x,1)):(x=Kr(e),x.c(),ae(x,1),x.m(t,f)),4097&l[0]&&T(t,"collapsed",e[12][e[55].name])},i(e){m||(ae(x),m=!0)},o(e){ue(x),m=!1},d(e){e&&E(t),y.d(),x&&x.d(),p=!1,h()}}}function Gr(e){let t,n,r,o,i,s,a,u,d,f,m,p,h,g,v,$,w,y,k,x,_,D,q,B,M,F,T,R,A,I,P,U,V,Y,j,K=!e[5]&&qr(e);o=new nt({props:{shown:e[5],$$slots:{default:[Lr]},$$scope:{ctx:e}}}),s=new Fn({props:{repositories:e[11].repo,onCreate:e[21],open:e[10],onClose:e[20]}});let X=e[6]&&Hr(e);d=new st({props:{$$slots:{default:[Rr]},$$scope:{ctx:e}}}),m=new ot({}),B=new Ge({props:{value:e[1],completionOptions:e[11],onChange:e[16],placeholder:"Filter board..."}});const W=[Ir,Ar],G=[];function J(e,t){return e[8]?0:1}A=J(e),I=G[A]=W[A](e);let Q=!e[6]&&Vr(e);return{c(){K&&K.c(),t=H(),n=L(),r=S("div"),he(o.$$.fragment),i=L(),he(s.$$.fragment),a=L(),X&&X.c(),u=L(),he(d.$$.fragment),f=L(),he(m.$$.fragment),p=L(),h=S("nav"),g=S("a"),v=S("img"),y=L(),k=S("button"),x=S("span"),_=L(),D=S("div"),q=S("form"),he(B.$$.fragment),M=L(),F=S("form"),F.innerHTML='<button class="btn btn-outline-primary" type="submit" title="Create new issue (n)"><svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.75 2a.75.75 0 01.75.75V7h4.25a.75.75 0 110 1.5H8.5v4.25a.75.75 0 11-1.5 0V8.5H2.75a.75.75 0 010-1.5H7V2.75A.75.75 0 017.75 2z"></path></svg></button>',T=L(),R=S("div"),I.c(),P=L(),U=S("main"),Q&&Q.c(),c(v.src,$="./logo.svg")||z(v,"src","./logo.svg"),z(v,"height","30px"),z(v,"alt","Wuffle board logo"),z(v,"class","logo"),z(g,"class","navbar-brand m-0 mr-3 my-2"),z(g,"href","/"),z(g,"aria-label",e[4]),z(g,"title",w=e[4]+" - Wuffle board"),z(x,"class","navbar-toggler-icon"),z(k,"class","navbar-toggler"),z(k,"type","button"),z(k,"data-toggle","collapse"),z(k,"data-target","#"+e[13]),z(k,"aria-controls",e[13]),z(k,"aria-expanded","false"),z(k,"aria-label","Toggle navigation"),z(q,"class","form-inline board-filter-parent my-2 my-lg-0"),z(F,"class","form-inline mx-3 my-2 my-sm-0"),z(D,"class","collapse navbar-collapse"),z(D,"id",e[13]),z(R,"class","taskboard-header-login ml-2"),z(h,"class","navbar navbar-expand navbar-light taskboard-header"),z(U,"class","taskboard-board svelte-88s1pm"),z(r,"class","taskboard svelte-88s1pm")},m(l,c){K&&K.m(Cr.head,null),b(Cr.head,t),C(l,n,c),C(l,r,c),ge(o,r,null),b(r,i),ge(s,r,null),b(r,a),X&&X.m(r,null),b(r,u),ge(d,r,null),b(r,f),ge(m,r,null),b(r,p),b(r,h),b(h,g),b(g,v),b(h,y),b(h,k),b(k,x),b(h,_),b(h,D),b(D,q),ge(B,q,null),b(D,M),b(D,F),b(h,T),b(h,R),G[A].m(R,null),b(r,P),b(r,U),Q&&Q.m(U,null),V=!0,Y||(j=[O(Er,"keydown",e[22]),O(q,"submit",N(to)),O(F,"submit",N(e[19]))],Y=!0)},p(e,n){e[5]?K&&(K.d(1),K=null):K||(K=qr(e),K.c(),K.m(t.parentNode,t));const l={};32&n[0]&&(l.shown=e[5]),4&n[2]&&(l.$$scope={dirty:n,ctx:e}),o.$set(l);const i={};2048&n[0]&&(i.repositories=e[11].repo),1024&n[0]&&(i.open=e[10]),s.$set(i),e[6]?X?X.p(e,n):(X=Hr(e),X.c(),X.m(r,u)):X&&(X.d(1),X=null);const c={};704&n[0]|4&n[2]&&(c.$$scope={dirty:n,ctx:e}),d.$set(c),(!V||16&n[0])&&z(g,"aria-label",e[4]),(!V||16&n[0]&&w!==(w=e[4]+" - Wuffle board"))&&z(g,"title",w);const a={};2&n[0]&&(a.value=e[1]),2048&n[0]&&(a.completionOptions=e[11]),B.$set(a);let f=A;A=J(e),A===f?G[A].p(e,n):(se(),ue(G[f],1,1,(()=>{G[f]=null})),ce(),I=G[A],I?I.p(e,n):(I=G[A]=W[A](e),I.c()),ae(I,1),I.m(R,null)),e[6]?Q&&(se(),ue(Q,1,1,(()=>{Q=null})),ce()):Q?(Q.p(e,n),64&n[0]&&ae(Q,1)):(Q=Vr(e),Q.c(),ae(Q,1),Q.m(U,null))},i(e){V||(ae(o.$$.fragment,e),ae(s.$$.fragment,e),ae(d.$$.fragment,e),ae(m.$$.fragment,e),ae(B.$$.fragment,e),ae(I),ae(Q),V=!0)},o(e){ue(o.$$.fragment,e),ue(s.$$.fragment,e),ue(d.$$.fragment,e),ue(m.$$.fragment,e),ue(B.$$.fragment,e),ue(I),ue(Q),V=!1},d(e){K&&K.d(e),E(t),e&&E(n),e&&E(r),ve(o),ve(s),X&&X.d(),ve(d),ve(m),ve(B),G[A].d(),Q&&Q.d(),Y=!1,l(j)}}}function Jr(){if("undefined"==typeof window)return"";return new URL(window.location.href).searchParams.get("s")||""}function Qr(e){const t=e.dataset;return parseFloat(t.cardOrder)}function Zr(e){return e.dataset.columnId}function eo(e,t,n,r){const o=n&&n.column,l=r&&r.column,i=r&&r.order;if(o){const n=function(e,t=[]){const{id:n}=e;return t.filter((e=>e.id!==n))}(t,e[o]);e={...e,[o]:n}}if(l){const n=function(e,t,n=[]){const r=n.findIndex((e=>e.order>t));return-1===r?[...n,e]:[...n.slice(0,r),e,...n.slice(r)]}(t,i,e[l]);e={...e,[l]:n}}return e}const to=()=>{};function no(e,t,n){let r,o,l,i;const s=new Tn,c="undefined"==typeof window||void 0===window.localStorage?new Ce:new xe,a="undefined"==typeof window||void 0===window.history?new _e:new Ee,u=ke();let d="",f=[],m={},p={},h=!0,g=0,v=null,$=[],w=null,y=null,b=!1,k=!1,x={},C={},E=Jr(),_=O();function S(e,t={}){return r=>r().then((t=>(function(e){n(7,$=$.filter((t=>t.action!==e)))}(e),t))).catch((r=>function(e,t,r){if(console.warn("%s failed",e,t),!1===r.display)throw t;const o=$.findIndex((t=>t.action===e)),l={action:e,error:t};n(7,$=-1!==o?[...$.slice(0,o),l,...$.slice(o+1)]:[...$,l])}(e,r,t)))}function D(e){console.error(e),n(6,v=e)}function q(){n(6,v=null)}function L(){return q(),n(7,$=[]),n(5,h=!0),Promise.all([s.getBoard().then((e=>{n(0,f=e.columns),n(4,d=e.name)})),z(),M(E)]).then((e=>{q()})).catch((e=>{D(e)})).finally((()=>{n(5,h=!1)}))}function H(e){e!==E&&(e.trim()!==E.trim()&&S("Fetching cards")((()=>M(e))),n(1,E=e))}function O(){if("undefined"==typeof window)return"";const e=new URL(window.location.href).searchParams.get("c");return e?e.split(",").filter((e=>e)).reduce(((e,t)=>{const n=t.split("!");return e[n[1]||n[0]]=1===n.length,e}),{}):{}}function N(e,t){const n=function(e,t){const n=new URL(window.location.href),o=n.searchParams,l=e,i=Object.entries(t).filter((([e,t])=>r[e]!==t)).map((([e,t])=>(t?"":"!")+e)).join(",");l?o.set("s",l):o.delete("s");i?o.set("c",i):o.delete("c");return n.toString()}(e,t);n!==window.location.href&&a.push(n)}function z(){return S("User login check")((()=>s.getLoggedInUser().then((e=>{w&&!e?window.location.reload():n(8,w=e)}))))}function B(e,t){console.time("Taskboard#updateCards");const r={},o={};for(const t of Object.values(e))for(const e of t){const{id:t,user:n,milestone:l,assignees:i,labels:s,repository:c,requested_reviewers:a}=e;if((o.repo=o.repo||{})[c.owner.login+"/"+c.name]=!0,l){(o.milestone=o.milestone||{})[l.title]=!0}if(n){(o.author=o.author||{})[n.login]=!0}i.forEach((e=>{(o.assignee=o.assignee||{})[e.login]=!0})),a&&a.forEach((e=>{(o.reviewer=o.reviewer||{})[e.login]=!0})),s.forEach((e=>{if(!e.column_label){(o.label=o.label||{})[e.name]=!0}})),r[t]=e}n(23,m=e),p=r,n(11,C=Object.entries(o).reduce(((e,t)=>{const[n,r]=t;return e[n]=Object.keys(r),e}),{})),y=t,console.timeEnd("Taskboard#updateCards")}function M(e){return g++,s.listCards(e).then((t=>{if(e!==E)return;const{items:n,cursor:r}=t;B(n,r)})).finally((()=>g--))}function F(){if(g)return;const e=E;return S("Checking for updates",{display:!1})((()=>s.listUpdates(e,y).then((t=>{if(!t.length)return;if(e!==E)return;const{items:r,itemsById:o,cursor:l}=function(e,t,n){const r=e[e.length-1].id;return e.forEach((e=>{const{type:r,issue:o}=e,{id:l}=o,i=n[l],s="remove"!==r&&o;if(t={...t,...eo(t,o,i,s)},"remove"===r){const{[l]:e,...t}=n;n=t}else n={...n,[l]:o}})),{cursor:r,itemsById:n,items:t}}(t,m,p);n(23,m=r),p=o,y=l}))))}Y((()=>{L(),function(){const e=c.get("Taskboard_polling",!0),t=[e&&Se(F,3e3),e&&Se(z,6e4),a.onPop((()=>{const e=Jr();n(25,_=O()),H(e)}))]}()}));const T=xr({isContainer:e=>e.matches("[data-column-id]")});function R(e){"Escape"===e.key&&T.cancel(!0)}function A(e,t,r){e.column=r.column,e.order=r.order;const o=eo(m,e,t,r);n(23,m={...m,...o});const l=o[r.column],i=l.findIndex((t=>t.id===e.id));return{after:l[i-1],before:l[i+1]}}function I(e){n(25,_={..._,[e.name]:!o[e.name]})}function P(e){return Le(e)&&(De(t=e)||qe(t))&&e.links.some((e=>function(e){const{type:t}=e;return"CLOSES"===t}(e)&&p[e.target.id]));var t}function U(){n(10,k=!0)}function V(){n(10,k=!1)}T.on("drag",(()=>{document.addEventListener("keydown",R)})),T.on("dragend",(()=>{document.removeEventListener("keydown",R)})),T.on("drop",((e,t,r,o)=>{const l=function(e){return e.dataset.cardId}(e),i=Qr(e),c=e.previousElementSibling,a=o&&Qr(o),u=c&&Qr(c),d=u&&a?(u+a)/2:u?u+731241.218:a?a-811231.691:-71271.88455;!function(e,t,r){const{before:o,after:l}=A(e,t,r);s.moveIssue(e.id,r.column,o&&o.id,l&&l.id).catch((o=>{console.warn("reverting card movement",o),n(9,b=w?"forbidden":"authentication-required"),setTimeout((()=>{n(9,b=!1)}),8e3),A(e,r,t)}))}(p[l],{order:i,column:Zr(r)},{order:d,column:Zr(t)})}));return e.$$.update=()=>{1&e.$$.dirty[0]&&n(26,r=f.reduce(((e,t)=>(e[t.name]=t.collapsed,e)),{})),100663296&e.$$.dirty[0]&&n(12,o={...r,..._}),33554434&e.$$.dirty[0]&&N(E,_),8388608&e.$$.dirty[0]&&n(2,l=Object.keys(m).reduce(((e,t)=>{const n=m[t];return e[t]=n.filter((e=>!P(e))),e}),{})),16777220&e.$$.dirty[0]&&n(3,i=Object.keys(l).reduce(((e,t)=>{const n=x[t]||25,r=l[t];return e[t]=r.slice(0,n),e}),{}))},[f,E,l,i,d,h,v,$,w,b,k,C,o,u,L,function(e,t,n){/[\s:]+/.test(t)&&(t='"'+t+'"');const r=t&&`${e}:${t}`;if(!r)return;let o;const l=E.indexOf(r);return o=0===l?E.substring(r.length+1):l>0?E.substring(0,l-1)+E.substring(l+r.length):n&&E.trim()?`${E} ${e}:${t}`:r,H(o)},H,I,function(e){return t=function(t){const r=t.target,{scrollHeight:o,scrollTop:i,offsetHeight:s}=r;if(i+s>.95*o){const t=l[e]||[],r=x[e]||25;r<t.length&&n(24,x={...x,[e]:r+5})}},r=5,o=!1,function(){o||(t.apply(void 0,arguments),o=!0,setTimeout((function(){o=!1}),r))};var t,r,o},U,V,function(e,t){V(),window.open(`https://github.com/${e}/${t}/issues/new/choose`,"_blank")},function(e){(function(e){return!(!Ie(e)||Ae(e))&&"n"===e.key})(e)&&(U(),e.preventDefault())},m,x,_,r,()=>L(),(e,t)=>t.preventDefault()||I(e)]}console.timeEnd("Wuffle#load"),console.time("Taskboard#create");const ro=new class extends ye{constructor(e){super(),we(this,e,no,Gr,a,{},null,[-1,-1,-1])}}({target:document.body});if(console.timeEnd("Taskboard#create"),"serviceWorker"in navigator){const t=e((()=>{window.location.reload()}),500);window.addEventListener("load",(()=>{navigator.serviceWorker.register("/service-worker.js").catch((e=>{console.warn("Failed to register service worker",e)})),navigator.serviceWorker.addEventListener("message",(e=>{"resource.changed"===e.data.message&&(console.log("Resource changed",e.data.url),t())}))}))}return ro}();
2
2
  //# sourceMappingURL=bundle.js.map