pmac-cli
Version:
CLI tools for Project Management as Code (PMaC) - Standalone npm package with interactive backlog viewer
6 lines (5 loc) • 7.72 kB
JavaScript
var nt=Object.defineProperty;var st=(t,e,n)=>e in t?nt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var z=(t,e,n)=>st(t,typeof e!="symbol"?e+"":e,n);function x(){}const rt=t=>t;function U(t){return t()}function H(){return Object.create(null)}function E(t){t.forEach(U)}function B(t){return typeof t=="function"}function St(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function ot(t){return Object.keys(t).length===0}function it(t,...e){if(t==null){for(const s of e)s(void 0);return x}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Ot(t,e,n){t.$$.on_destroy.push(it(e,n))}const V=typeof window<"u";let ut=V?()=>window.performance.now():()=>Date.now(),F=V?t=>requestAnimationFrame(t):x;const w=new Set;function Q(t){w.forEach(e=>{e.c(t)||(w.delete(e),e.f())}),w.size!==0&&F(Q)}function ct(t){let e;return w.size===0&&F(Q),{promise:new Promise(n=>{w.add(e={c:t,f:n})}),abort(){w.delete(e)}}}function ft(t,e){t.appendChild(e)}function W(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function lt(t){const e=dt("style");return e.textContent="/* empty */",at(W(t),e),e.sheet}function at(t,e){return ft(t.head||t,e),e.sheet}function jt(t,e,n){t.insertBefore(e,n||null)}function X(t){t.parentNode&&t.parentNode.removeChild(t)}function kt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function dt(t){return document.createElement(t)}function Dt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Y(t){return document.createTextNode(t)}function Lt(){return Y(" ")}function Rt(){return Y("")}function zt(t,e,n,s){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}function It(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function ht(t){return Array.from(t.childNodes)}function Mt(t,e){e=""+e,t.data!==e&&(t.data=e)}function qt(t,e){t.value=e??""}function Bt(t,e,n,s){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function Ft(t,e,n){for(let s=0;s<t.options.length;s+=1){const u=t.options[s];if(u.__value===e){u.selected=!0;return}}(!n||e!==void 0)&&(t.selectedIndex=-1)}function Gt(t){const e=t.querySelector(":checked");return e&&e.__value}function Ht(t,e,n){t.classList.toggle(e,!!n)}function Z(t,e,{bubbles:n=!1,cancelable:s=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:s})}const O=new Map;let j=0;function _t(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function pt(t,e){const n={stylesheet:lt(e),rules:{}};return O.set(t,n),n}function J(t,e,n,s,u,c,l,r=0){const a=16.666/s;let o=`{
`;for(let d=0;d<=1;d+=a){const $=e+(n-e)*c(d);o+=d*100+`%{${l($,1-$)}}
`}const _=o+`100% {${l(n,1-n)}}
}`,f=`__svelte_${_t(_)}_${r}`,m=W(t),{stylesheet:g,rules:i}=O.get(m)||pt(m,t);i[f]||(i[f]=!0,g.insertRule(`@keyframes ${f} ${_}`,g.cssRules.length));const h=t.style.animation||"";return t.style.animation=`${h?`${h}, `:""}${f} ${s}ms linear ${u}ms 1 both`,j+=1,f}function mt(t,e){const n=(t.style.animation||"").split(", "),s=n.filter(e?c=>c.indexOf(e)<0:c=>c.indexOf("__svelte")===-1),u=n.length-s.length;u&&(t.style.animation=s.join(", "),j-=u,j||gt())}function gt(){F(()=>{j||(O.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&X(e)}),O.clear())})}let C;function A(t){C=t}function G(){if(!C)throw new Error("Function called outside component initialization");return C}function Jt(t){G().$$.on_mount.push(t)}function Kt(t){G().$$.on_destroy.push(t)}function Tt(){const t=G();return(e,n,{cancelable:s=!1}={})=>{const u=t.$$.callbacks[e];if(u){const c=Z(e,n,{cancelable:s});return u.slice().forEach(l=>{l.call(t,c)}),!c.defaultPrevented}return!0}}const b=[],K=[];let v=[];const T=[],$t=Promise.resolve();let q=!1;function yt(){q||(q=!0,$t.then(tt))}function k(t){v.push(t)}const I=new Set;let y=0;function tt(){if(y!==0)return;const t=C;do{try{for(;y<b.length;){const e=b[y];y++,A(e),bt(e.$$)}}catch(e){throw b.length=0,y=0,e}for(A(null),b.length=0,y=0;K.length;)K.pop()();for(let e=0;e<v.length;e+=1){const n=v[e];I.has(n)||(I.add(n),n())}v.length=0}while(b.length);for(;T.length;)T.pop()();q=!1,I.clear(),A(t)}function bt(t){if(t.fragment!==null){t.update(),E(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(k)}}function wt(t){const e=[],n=[];v.forEach(s=>t.indexOf(s)===-1?e.push(s):n.push(s)),n.forEach(s=>s()),v=e}let N;function vt(){return N||(N=Promise.resolve(),N.then(()=>{N=null})),N}function M(t,e,n){t.dispatchEvent(Z(`${e?"intro":"outro"}${n}`))}const S=new Set;let p;function Ut(){p={r:0,c:[],p}}function Vt(){p.r||E(p.c),p=p.p}function xt(t,e){t&&t.i&&(S.delete(t),t.i(e))}function Qt(t,e,n,s){if(t&&t.o){if(S.has(t))return;S.add(t),p.c.push(()=>{S.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}else s&&s()}const Et={duration:0};function Wt(t,e,n,s){let c=e(t,n,{direction:"both"}),l=s?0:1,r=null,a=null,o=null,_;function f(){o&&mt(t,o)}function m(i,h){const d=i.b-l;return h*=Math.abs(d),{a:l,b:i.b,d,duration:h,start:i.start,end:i.start+h,group:i.group}}function g(i){const{delay:h=0,duration:d=300,easing:$=rt,tick:D=x,css:L}=c||Et,R={start:ut()+h,b:i};i||(R.group=p,p.r+=1),"inert"in t&&(i?_!==void 0&&(t.inert=_):(_=t.inert,t.inert=!0)),r||a?a=R:(L&&(f(),o=J(t,l,i,d,h,$,L)),i&&D(0,1),r=m(R,d),k(()=>M(t,i,"start")),ct(P=>{if(a&&P>a.start&&(r=m(a,d),a=null,M(t,r.b,"start"),L&&(f(),o=J(t,l,r.b,r.duration,0,$,c.css))),r){if(P>=r.end)D(l=r.b,1-l),M(t,r.b,"end"),a||(r.b?f():--r.group.r||E(r.group.c)),r=null;else if(P>=r.start){const et=P-r.start;l=r.a+r.d*$(et/r.duration),D(l,1-l)}}return!!(r||a)}))}return{run(i){B(c)?vt().then(()=>{c=c({direction:i?"in":"out"}),g(i)}):g(i)},end(){f(),r=a=null}}}function Xt(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Yt(t){t&&t.c()}function Nt(t,e,n){const{fragment:s,after_update:u}=t.$$;s&&s.m(e,n),k(()=>{const c=t.$$.on_mount.map(U).filter(B);t.$$.on_destroy?t.$$.on_destroy.push(...c):E(c),t.$$.on_mount=[]}),u.forEach(k)}function At(t,e){const n=t.$$;n.fragment!==null&&(wt(n.after_update),E(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ct(t,e){t.$$.dirty[0]===-1&&(b.push(t),yt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Zt(t,e,n,s,u,c,l=null,r=[-1]){const a=C;A(t);const o=t.$$={fragment:null,ctx:[],props:c,update:x,not_equal:u,bound:H(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:H(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};l&&l(o.root);let _=!1;if(o.ctx=n?n(t,e.props||{},(f,m,...g)=>{const i=g.length?g[0]:m;return o.ctx&&u(o.ctx[f],o.ctx[f]=i)&&(!o.skip_bound&&o.bound[f]&&o.bound[f](i),_&&Ct(t,f)),m}):[],o.update(),_=!0,E(o.before_update),o.fragment=s?s(o.ctx):!1,e.target){if(e.hydrate){const f=ht(e.target);o.fragment&&o.fragment.l(f),f.forEach(X)}else o.fragment&&o.fragment.c();e.intro&&xt(t.$$.fragment),Nt(t,e.target,e.anchor),tt()}A(a)}class te{constructor(){z(this,"$$");z(this,"$$set")}$destroy(){At(this,1),this.$destroy=x}$on(e,n){if(!B(n))return x;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(n),()=>{const u=s.indexOf(n);u!==-1&&s.splice(u,1)}}$set(e){this.$$set&&!ot(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ee="4";export{Qt as A,xt as B,Ut as C,Vt as D,Wt as E,At as F,Nt as G,Yt as H,Rt as I,Tt as J,Kt as K,K as L,ee as P,te as S,it as a,Zt as b,kt as c,X as d,Xt as e,qt as f,Ft as g,jt as h,B as i,ft as j,dt as k,zt as l,Lt as m,x as n,Y as o,It as p,k as q,E as r,St as s,Ht as t,Ot as u,Jt as v,Mt as w,Gt as x,Dt as y,Bt as z};
//# sourceMappingURL=svelte-DvuOi6vQ.js.map