p-backlog 0.10.1 → 0.11.0

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +1 -1
  3. package/README.ru.md +1 -1
  4. package/dist/cli.js +563 -376
  5. package/dist/web/assets/CodeTab-DvhAb0kx.js +1 -0
  6. package/dist/web/assets/CostTab-DHmrPaIY.js +1 -0
  7. package/dist/web/assets/EffectTab-C-W3n29N.js +1 -0
  8. package/dist/web/assets/Figure-CRSlcZF-.css +1 -0
  9. package/dist/web/assets/Figure-DUapj1C7.js +1 -0
  10. package/dist/web/assets/OverviewTab-B-6PIEfD.js +1 -0
  11. package/dist/web/assets/Page-U8D0vJva.js +59 -0
  12. package/dist/web/assets/QualityTab-B9ahq43v.js +1 -0
  13. package/dist/web/assets/ShareBar-B-seexQa.js +1 -0
  14. package/dist/web/assets/{StatsPage-Bmr75f8J.js → StatsPage-DBqHQi5S.js} +1 -1
  15. package/dist/web/assets/StatsTabState-DZ3lMjjx.css +1 -0
  16. package/dist/web/assets/StatsTabState-DlqTtrvX.js +1 -0
  17. package/dist/web/assets/{StatsTable-D-PylWl7.js → StatsTable-ClPy3aOI.js} +1 -1
  18. package/dist/web/assets/UnavailableRepos-8SE6XJSM.js +1 -0
  19. package/dist/web/assets/index-wzgTQj7a.js +2 -0
  20. package/dist/web/assets/start-BR6m00jS.js +38 -0
  21. package/dist/web/assets/start-DPlw6J9o.css +1 -0
  22. package/dist/web/assets/use-grain-panel-DpW0vjfB.js +55 -0
  23. package/dist/web/assets/{web-paths--TbmQ8rA.js → web-paths-X1IR2jNR.js} +1 -1
  24. package/dist/web/index.html +1 -1
  25. package/package.json +1 -1
  26. package/skill/backlog/SKILL.md +8 -1
  27. package/skill/backlog-en/SKILL.md +9 -1
  28. package/dist/web/assets/CodeTab-ClCaW8AS.js +0 -1
  29. package/dist/web/assets/CostTab-CtI3iFiW.js +0 -1
  30. package/dist/web/assets/EffectTab-DcvyEB2U.js +0 -1
  31. package/dist/web/assets/Figure-DkmKAO9C.css +0 -1
  32. package/dist/web/assets/Figure-DxKUx52i.js +0 -1
  33. package/dist/web/assets/OverviewTab-DE_6Z9ps.js +0 -1
  34. package/dist/web/assets/Page-buthlp0V.js +0 -59
  35. package/dist/web/assets/QualityTab-CkoKu4X0.js +0 -1
  36. package/dist/web/assets/ShareBar-BAS4lpze.js +0 -1
  37. package/dist/web/assets/StatsTabState-BacJCCdC.css +0 -1
  38. package/dist/web/assets/StatsTabState-D93FkgT5.js +0 -1
  39. package/dist/web/assets/UnavailableRepos-DyBVFVrQ.js +0 -1
  40. package/dist/web/assets/index-BFmeY_kk.js +0 -2
  41. package/dist/web/assets/start-CJ8zVmAB.js +0 -38
  42. package/dist/web/assets/start-CjkFx30s.css +0 -1
  43. package/dist/web/assets/summaries-D57lRSim.js +0 -1
  44. package/dist/web/assets/use-grain-panel-UcuXHAhT.js +0 -55
@@ -0,0 +1 @@
1
+ import{A as e,ft as t,h as n,j as r,ln as i}from"./Page-U8D0vJva.js";import{a,i as o,n as s,o as c,s as l}from"./StatsTabState-DlqTtrvX.js";import{t as u}from"./PanelRows.module-ZonfBTD-.js";import{t as d}from"./StatsTable-ClPy3aOI.js";import{_ as f,d as p,h as m,i as h,p as g,t as _}from"./use-grain-panel-DpW0vjfB.js";var v=i(),y=`var(--chart-bar-neutral)`,b=`var(--chart-line-green)`;function x({periods:t,grain:n}){let{stats:i}=r(),a=e(),o=[{key:`decided`,label:i.decidedCandidates,shape:`bar`,color:y,format:f(a)},{key:`precision`,label:i.precision,shape:`line`,color:b,axis:`right`,sparse:!0,format:p}];return(0,v.jsx)(g,{name:i.accuracyTitle,grain:n,summary:i.accuracySummary(h(n,t)),data:t,series:o,axes:{left:m,right:{domain:[0,1],tickFormatter:p}}})}function S({rows:e,weeks:t,days:n,windows:i,methodRows:o,matchRows:s}){let{stats:u,core:f}=r(),m=a(),{grain:h,periods:g,period:y,toggle:b}=_(`accuracy`,`week`,{weeks:t,days:n},i),S=m.of(`weeks`,i.weeks),w=[...o,...s],T=e=>{switch(e.evidence){case`source-changed`:return e.by===`unknown`?u.beforeMethodRecorded:u.checkedBy(f.checkMethodLabel(e.by));case`duplicate`:return e.by===`unknown`?u.beforeMatchRecorded:u.matchedBy(f.duplicateMatchLabel(e.by))}},E=e=>w.filter(t=>t.evidence===e).map(e=>C(u,e,T(e)));return(0,v.jsx)(c,{title:u.accuracyTitle,period:y,aside:e.length===0?void 0:b,children:e.length===0?(0,v.jsx)(l,{children:u.noCandidates}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(l,{children:u.accuracyHint}),(0,v.jsx)(x,{periods:g,grain:h}),(0,v.jsx)(l,{children:S}),(0,v.jsx)(d,{label:u.accuracyTable(S),head:u.accuracyHead,rows:e.flatMap(e=>[{key:e.evidence,tone:e.evidence===`total`?`total`:void 0,cells:[f.evidenceLabel(e.evidence),e.candidates,e.closed,e.verified,e.open,p(e.precision)]},...E(e.evidence).map(t=>({...t,key:`${e.evidence}-${t.key}`}))])})]})})}function C(e,t,n){return{key:t.by,tone:`child`,cells:[e.splitRow(n),t.candidates,t.closed,t.verified,t.open,p(t.precision)]}}function w({graph:e,period:t}){let{stats:n,core:i}=r(),o=a(),{projects:s,filter:f}=e;return f.filtered===0&&s.every(e=>e.state===`none`)?(0,v.jsx)(c,{title:n.graphTitle,children:(0,v.jsx)(l,{children:n.graphMissing(e=>(0,v.jsx)(`code`,{children:e},e))})}):(0,v.jsxs)(c,{title:n.graphTitle,children:[(0,v.jsx)(l,{children:n.graphHint}),(0,v.jsxs)(`div`,{children:[(0,v.jsx)(`h3`,{className:u.subTitle,children:o.labelled(n.filteredTitle,t)}),f.filtered===0?(0,v.jsx)(l,{children:n.nothingFiltered}):(0,v.jsx)(d,{label:n.filteredTable,head:n.filteredHead,rows:[{key:`filtered`,cells:[n.filteredByGraph,f.filtered]},{key:`caught`,cells:[n.filteredCaught,f.caught]},{key:`missed`,cells:[n.filteredMissed,f.missed]},{key:`quiet`,cells:[n.filteredQuiet,f.quiet]}]})]}),(0,v.jsxs)(`div`,{children:[(0,v.jsx)(`h3`,{className:u.subTitle,children:n.periodCaption(n.projects,n.periodNow)}),(0,v.jsx)(d,{label:n.graphByProject,head:n.graphHead,rows:s.map(e=>({key:e.projectId,cells:[e.name,i.graphStateLabel(e.state),e.pinned,T(e)]}))})]})]})}function T({state:e,pinned:t,resolved:n}){return e===`none`||e===`unreadable`?`—`:`${n} (${p(t===0?null:n/t)})`}function E({rows:e,period:t}){let{stats:n,core:i}=r(),o=a();return(0,v.jsx)(c,{title:n.categoriesTitle,period:o.of(`weeks`,t),children:e.length===0?(0,v.jsx)(l,{children:n.categoriesEmpty}):(0,v.jsx)(d,{label:n.categoriesTitle,head:n.categoriesHead,rows:e.map(e=>({key:e.category,cells:[i.categoryRowLabel(e.category),e.open,e.weight,e.created,e.closed]}))})})}function D({found:e,branches:t,period:n}){let{stats:i,core:o}=r(),s=a();return(0,v.jsxs)(c,{title:i.originTitle,period:s.of(`weeks`,n),children:[(0,v.jsxs)(`div`,{children:[(0,v.jsx)(`h3`,{className:u.subTitle,children:i.foundTitle}),(0,v.jsx)(d,{label:i.foundTitle,head:i.foundHead,rows:e.map(e=>({key:e.found,cells:[o.foundRowLabel(e.found),e.created,e.open,e.fixed]}))})]}),(0,v.jsxs)(`div`,{children:[(0,v.jsx)(`h3`,{className:u.subTitle,children:i.branchesTitle}),t.length===0?(0,v.jsx)(l,{children:i.branchesEmpty}):(0,v.jsx)(d,{label:i.branchesTitle,head:i.branchesHead,rows:t.map(e=>({key:e.label,cells:[(0,v.jsx)(`code`,{children:e.label}),e.created,e.open]}))})]})]})}function O(){let{projectId:e}=t(),r=n(`quality`,e);return(0,v.jsx)(s,{query:r,children:e=>(0,v.jsx)(k,{report:e})})}function k({report:e}){return(0,v.jsxs)(`div`,{className:o.blocks,children:[(0,v.jsx)(`div`,{className:o.wide,children:(0,v.jsx)(S,{rows:e.accuracy,weeks:e.accuracyWeeks,days:e.accuracyDays,windows:e.periods,methodRows:e.methodAccuracy,matchRows:e.matchAccuracy})}),(0,v.jsx)(`div`,{className:o.wide,children:(0,v.jsx)(w,{graph:e.graph,period:e.periods.weeks})}),(0,v.jsx)(`div`,{className:o.wide,children:(0,v.jsx)(E,{rows:e.categories,period:e.periods.weeks})}),(0,v.jsx)(`div`,{className:o.wide,children:(0,v.jsx)(D,{found:e.found,branches:e.branches,period:e.periods.weeks})})]})}export{O as QualityTab};
@@ -0,0 +1 @@
1
+ import{ln as e}from"./Page-U8D0vJva.js";import{a as t}from"./start-BR6m00jS.js";var n={share:`_share_cpxwy_1`},r=e();function i({share:e}){return(0,r.jsx)(t,{fraction:e,className:n.share,"aria-hidden":`true`})}export{i as t};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{a as t,d as n,ft as r,h as i,i as a,j as o,ln as s,t as c,un as l}from"./Page-buthlp0V.js";import{c as u,i as d,m as f}from"./web-paths--TbmQ8rA.js";import{f as p,l as m,m as h,p as g,s as _,u as v}from"./start-CJ8zVmAB.js";var y=e(l(),1),b={page:`_page_19brl_1`,scopeNote:`_scopeNote_19brl_7`,signals:`_signals_19brl_13`,signalsTitle:`_signalsTitle_19brl_18`,tabs:`_tabs_19brl_28`,tab:`_tab_19brl_28`,tabActive:`_tabActive_19brl_51`,tabPending:`_tabPending_19brl_56`},x=s();function S(){let{projectId:e}=r(),s=n(),l=i(`signals`,e),{app:S,core:C,stats:w}=o(),T=e===void 0?w.projects:m(s.data,e),E=w.heading(T),D=g()??h[0],O=p(e),k=(0,y.useRef)(null),A=w.docTitle(D.key===`overview`?E:`${w.tabs[D.key]} · ${E}`);return _(A),(0,x.jsxs)(`main`,{id:`content`,tabIndex:-1,className:b.page,"aria-busy":O!==void 0||void 0,children:[(0,x.jsx)(c,{ref:k,children:E}),e===void 0&&s.data!==void 0&&(0,x.jsx)(`p`,{className:b.scopeNote,children:v(s.data,S)}),(l.data?.signals.length??0)>0&&(0,x.jsxs)(a,{as:`div`,className:b.signals,role:`status`,"aria-labelledby":`stats-signals-heading`,children:[(0,x.jsx)(`strong`,{id:`stats-signals-heading`,className:b.signalsTitle,children:w.alerts}),(0,x.jsx)(`ul`,{children:l.data?.signals.map(e=>(0,x.jsx)(`li`,{children:C.signal(e)},e.kind))})]}),(0,x.jsx)(`nav`,{className:b.tabs,"aria-label":w.tabsLabel,children:h.map(n=>(0,x.jsx)(u,{to:d(n.key,e),className:t(b.tab,n===D&&b.tabActive,n===O&&b.tabPending),"aria-current":n===D?`page`:void 0,children:w.tabs[n.key]},n.key))}),(0,x.jsx)(f,{context:{heading:k}})]})}export{S as StatsPage};
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{a as t,d as n,ft as r,h as i,i as a,j as o,ln as s,t as c,un as l}from"./Page-U8D0vJva.js";import{c as u,i as d,m as f}from"./web-paths-X1IR2jNR.js";import{f as p,l as m,m as h,p as g,s as _,u as v}from"./start-BR6m00jS.js";var y=e(l(),1),b={page:`_page_19brl_1`,scopeNote:`_scopeNote_19brl_7`,signals:`_signals_19brl_13`,signalsTitle:`_signalsTitle_19brl_18`,tabs:`_tabs_19brl_28`,tab:`_tab_19brl_28`,tabActive:`_tabActive_19brl_51`,tabPending:`_tabPending_19brl_56`},x=s();function S(){let{projectId:e}=r(),s=n(),l=i(`signals`,e),{app:S,core:C,stats:w}=o(),T=e===void 0?w.projects:m(s.data,e),E=w.heading(T),D=g()??h[0],O=p(e),k=(0,y.useRef)(null),A=w.docTitle(D.key===`overview`?E:`${w.tabs[D.key]} · ${E}`);return _(A),(0,x.jsxs)(`main`,{id:`content`,tabIndex:-1,className:b.page,"aria-busy":O!==void 0||void 0,children:[(0,x.jsx)(c,{ref:k,children:E}),e===void 0&&s.data!==void 0&&(0,x.jsx)(`p`,{className:b.scopeNote,children:v(s.data,S)}),(l.data?.signals.length??0)>0&&(0,x.jsxs)(a,{as:`div`,className:b.signals,role:`status`,"aria-labelledby":`stats-signals-heading`,children:[(0,x.jsx)(`strong`,{id:`stats-signals-heading`,className:b.signalsTitle,children:w.alerts}),(0,x.jsx)(`ul`,{children:l.data?.signals.map(e=>(0,x.jsx)(`li`,{children:C.signal(e)},e.kind))})]}),(0,x.jsx)(`nav`,{className:b.tabs,"aria-label":w.tabsLabel,children:h.map(n=>(0,x.jsx)(u,{to:d(n.key,e),className:t(b.tab,n===D&&b.tabActive,n===O&&b.tabPending),"aria-current":n===D?`page`:void 0,children:w.tabs[n.key]},n.key))}),(0,x.jsx)(f,{context:{heading:k}})]})}export{S as StatsPage};
@@ -0,0 +1 @@
1
+ ._caption_1c6r3_1{color:var(--ink-subtle);font-size:var(--text-sm);margin:0}._panel_crp6l_1{gap:var(--space-3);min-width:0;padding:var(--space-4);border-radius:var(--radius-control);background:var(--surface-raised);box-shadow:0 0 0 1px var(--line);border:none;flex-direction:column;display:flex;container-type:inline-size}._head_crp6l_14{justify-content:space-between;align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}._heading_crp6l_22{gap:var(--space-1);flex-direction:column;min-width:0;display:flex}._title_crp6l_29{font-size:var(--text-base);margin:0;font-weight:600}._content_10qjz_1{gap:var(--space-4);padding:var(--space-4) var(--space-5) var(--space-6);flex-direction:column;display:flex}._warning_10qjz_8{padding:var(--space-3) var(--space-4);text-wrap:pretty;margin:0}._blocks_10qjz_14{gap:var(--space-3);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}._wide_10qjz_20{grid-column:1/-1}._tabNote_10qjz_24{text-wrap:pretty;max-width:70ch}@container (width<=900px){._blocks_10qjz_14{grid-template-columns:minmax(0,1fr)}}
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{A as t,O as n,a as r,dt as i,i as a,j as o,ln as s,n as c,un as l}from"./Page-U8D0vJva.js";import{l as u,p as d}from"./index-wzgTQj7a.js";import{d as f,o as p}from"./start-BR6m00jS.js";var m=e(l(),1),h={caption:`_caption_1c6r3_1`},g={panel:`_panel_crp6l_1`,head:`_head_crp6l_14`,heading:`_heading_crp6l_22`,title:`_title_crp6l_29`},_=s();function v({title:e,period:t,aside:n,children:r}){let i=(0,m.useId)(),a=(0,m.useId)();return(0,_.jsxs)(`section`,{className:g.panel,"aria-labelledby":i,"aria-describedby":t===void 0?void 0:a,children:[(0,_.jsxs)(`div`,{className:g.head,children:[(0,_.jsxs)(`div`,{className:g.heading,children:[(0,_.jsx)(`h2`,{id:i,className:g.title,children:e}),t!==void 0&&(0,_.jsx)(`p`,{id:a,className:h.caption,children:t})]}),n]}),r]})}function y({children:e}){return(0,_.jsx)(`p`,{className:h.caption,children:e})}function b(){let{stats:e}=o(),n=t(),r=(t,r)=>e.periodCaption(t,d(n,r.from,r.to));return{of:(t,n)=>r(e.periodWindows[t],n),labelled:r}}var x={content:`_content_10qjz_1`,warning:`_warning_10qjz_8`,blocks:`_blocks_10qjz_14`,wide:`_wide_10qjz_20`,tabNote:`_tabNote_10qjz_24`};function S({query:e,empty:t,children:n}){let{stats:r}=o(),a=T(e,t),s=D(r,a),l=a.kind===`failed`?a.error:null,u=a.kind===`ready`||a.kind===`failed`?a.report:void 0,d=E(a),{status:m,keepFocus:h}=p(d===`hidden`,i()?.heading);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(c,{ref:m,state:d,children:[s!==null&&(0,_.jsx)(`p`,{children:s}),l!==null&&(0,_.jsx)(f,{error:l,fetching:e.isFetching,onRetry:()=>{h(),e.refetch()}})]}),u!==void 0&&(0,_.jsx)(`div`,{className:x.content,children:n(u)})]})}function C({query:e,children:n}){let{stats:r}=o(),i=t(),s=e.data?.invalidJournalLines??0,c=e.data?.unknownJournalLines??0,l=e.data?.unparsedTasks??0,u=[s>0?r.invalidJournalLines(s):null,c>0?r.unknownJournalLines(c):null,l>0?r.unparsedTasks(l):null].filter(e=>e!==null);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a,{className:x.warning,shown:u.length>0,role:`status`,children:u.join(` `)}),(0,_.jsx)(S,{query:e,empty:{isEmpty:e=>e.taskCount===0,message:r.noTasks},children:e=>(0,_.jsxs)(_.Fragment,{children:[n(e),(0,_.jsx)(w,{children:O(r,i,e.journalSince)})]})})]})}function w({children:e}){return(0,_.jsx)(`p`,{className:r(h.caption,x.tabNote),children:e})}function T({error:e,data:t},r){if(n(e)===`notFound`)return{kind:`notFound`};let i=t!==void 0&&r?.isEmpty(t)!==!0?t:void 0;return e===null?t===void 0?{kind:`loading`}:i===void 0&&r!==void 0?{kind:`empty`,message:r.message}:{kind:`ready`,report:t}:{kind:`failed`,error:e,report:i}}function E(e){switch(e.kind){case`ready`:return`hidden`;case`loading`:return`waiting`;case`notFound`:case`failed`:case`empty`:return`shown`}}function D(e,t){switch(t.kind){case`notFound`:return e.projectNotFound;case`loading`:return e.loading;case`empty`:return t.message;case`failed`:case`ready`:return null}}function O(e,t,n){return n===null?e.journalEmpty:e.journalSince(u(t,n))}export{b as a,h as c,x as i,C as n,v as o,w as r,y as s,S as t};
@@ -1 +1 @@
1
- import{A as e,j as t,ln as n}from"./Page-buthlp0V.js";import{g as r}from"./index-BFmeY_kk.js";var i={scroll:`_scroll_ggj36_1`,table:`_table_ggj36_15`,child:`_child_ggj36_46`,total:`_total_ggj36_50`},a=n();function o({label:n,head:o,rows:s}){let{stats:c}=t(),l=e(),u=e=>typeof e==`number`?r(l,e):e;return(0,a.jsx)(`div`,{className:i.scroll,tabIndex:0,role:`region`,"aria-label":c.tableLabel(n),children:(0,a.jsxs)(`table`,{className:i.table,children:[(0,a.jsx)(`thead`,{children:(0,a.jsx)(`tr`,{children:o.map(e=>(0,a.jsx)(`th`,{scope:`col`,children:e},e))})}),(0,a.jsx)(`tbody`,{children:s.map(e=>(0,a.jsx)(`tr`,{className:e.tone&&i[e.tone],children:e.cells.map((e,t)=>t===0?(0,a.jsx)(`th`,{scope:`row`,children:u(e)},o[t]):(0,a.jsx)(`td`,{children:u(e)},o[t]))},e.key))})]})})}export{o as t};
1
+ import{A as e,j as t,ln as n}from"./Page-U8D0vJva.js";import{g as r}from"./index-wzgTQj7a.js";var i={scroll:`_scroll_ggj36_1`,table:`_table_ggj36_15`,child:`_child_ggj36_46`,total:`_total_ggj36_50`},a=n();function o({label:n,head:o,rows:s}){let{stats:c}=t(),l=e(),u=e=>typeof e==`number`?r(l,e):e;return(0,a.jsx)(`div`,{className:i.scroll,tabIndex:0,role:`region`,"aria-label":c.tableLabel(n),children:(0,a.jsxs)(`table`,{className:i.table,children:[(0,a.jsx)(`thead`,{children:(0,a.jsx)(`tr`,{children:o.map(e=>(0,a.jsx)(`th`,{scope:`col`,children:e},e))})}),(0,a.jsx)(`tbody`,{children:s.map(e=>(0,a.jsx)(`tr`,{className:e.tone&&i[e.tone],children:e.cells.map((e,t)=>t===0?(0,a.jsx)(`th`,{scope:`row`,children:u(e)},o[t]):(0,a.jsx)(`td`,{children:u(e)},o[t]))},e.key))})]})})}export{o as t};
@@ -0,0 +1 @@
1
+ import{i as e,j as t,ln as n}from"./Page-U8D0vJva.js";import{i as r}from"./StatsTabState-DlqTtrvX.js";var i=n();function a({repos:n}){let{stats:a}=t();return n.map(t=>(0,i.jsx)(e,{className:r.warning,role:`status`,children:a.unavailableRepo(t)},t))}export{a as t};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/start-BR6m00jS.js","assets/rolldown-runtime-hePW80VL.js","assets/Page-U8D0vJva.js","assets/Page-r2s5SXpX.css","assets/web-paths-X1IR2jNR.js","assets/start-DPlw6J9o.css"])))=>i.map(i=>d[i]);
2
+ (function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function e(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function t(e,t=`|`){return e.map(e=>y(e)).join(t)}function n(e,t){return typeof t==`bigint`?t.toString():t}var r=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function i(e){return new r(e)}function a(e){return e==null}function o(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function s(e,t){let n=e/t,r=Math.round(n),i=4*2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function c(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function l(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function u(e){return l(e._zod.def)??e._zod.def.shape}function d(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return c(this,t,e),e},enumerable:!0,configurable:!0})}function f(e,t,n){t in e?c(e,t,n):e[t]=n}function p(e,t,n,r){let i=u(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?d(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):f(e,a,r?r(n.value,a):n.value))}}function m(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?d(e,n,()=>t[n]):f(e,n,r.value))}}function h(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function ee(e){return JSON.stringify(e)}function te(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var ne=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function g(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var re=i(()=>{if(L.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function _(e){if(g(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return g(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function ie(e){return _(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var ae=new Set([`string`,`number`,`symbol`]);function oe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function v(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function se(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function y(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function ce(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}var le={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ue={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function de(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return p(i,e,b(e,t)),v(e,h(n,{shape:i,checks:[]}))}function b(e,t){let n=u(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function fe(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(b(e,t)),a={};return p(a,e,Reflect.ownKeys(u(e)).filter(e=>!i.has(e))),v(e,h(n,{shape:a,checks:[]}))}function pe(e,t){if(!_(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=u(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return v(e,h(e._zod.def,{shape:x(e,t)}))}function x(e,t){let n={};return p(n,e,Reflect.ownKeys(u(e))),m(n,t),n}function me(e,t){if(!_(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return v(e,h(e._zod.def,{shape:x(e,t)}))}function he(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return p(n,e,Reflect.ownKeys(u(e))),p(n,t,Reflect.ownKeys(u(t))),v(e,h(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function ge(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(b(t,n)):void 0,o={};return p(o,t,Reflect.ownKeys(u(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),v(t,h(t._zod.def,{shape:o,checks:[]}))}function _e(e,t,n){let r=n?new Set(b(t,n)):void 0,i={};return p(i,t,Reflect.ownKeys(u(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),v(t,h(t._zod.def,{shape:i}))}function ve(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ye(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function be(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function S(e){return typeof e==`string`?e:e?.message}function xe(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function Se(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:S(e.inst?._zod.def?.error?.(e))??S(a?.(e))??S(t?.error?.(e))??S(n.customError?.(e))??S(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var Ce=/[\uD800-\uDBFF]/;function C(e){let t=e.length;if(!Ce.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function w(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function T(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function E(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function D(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):we(e,n,r.value)}}function O(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function k(e,t,n){return O(e,t,n,!1)}function A(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return O(this,n,r(this))},set(e){O(this,n,e)}})}return t}function we(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:O(this,t,n.bind(this))},set(e){O(this,t,e)}})}function Te(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var j,M=!1,Ee={configurable:!0,get(){M=!0}};function De(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&j!==e._zod){j=void 0;return}j=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Ee);let e=M;M=!1;try{let r=n(this);return M?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),M||=e,r}catch(n){throw delete this[t],M||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}function Oe(e,t,n,r){let i=Te(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var ke=`~constantCatch`;function Ae(e){let t=()=>e;return t[ke]=!0,t}var N,je=Object.freeze({status:`aborted`}),P={value:void 0,enumerable:!1},F=`captureStackTrace`in Error?Error:null;function Me(e){let t=F;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return F=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function I(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){P.value=new a(r);try{Object.defineProperty(n,"_zod",P)}finally{P.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),D(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?Me(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var Ne=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Pe=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(N=globalThis).__zod_globalConfig??(N.__zod_globalConfig={});var L=globalThis.__zod_globalConfig;function R(e){return e&&Object.assign(L,e),L}var z=36e5,B=24*z;7*B;var Fe=10;function Ie(e){return e.slice(0,Fe)}var Le=100;function V(e){return Math.round(e*10)/10}function Re(e){return Math.round(e*Le)}function ze(e){return e.reduce((e,t)=>e+t,0)}var Be=[`ru`,`en`];function H(e){return e===`ru`?`ru-RU`:`en-US`}function U(e,t){return t.toLocaleString(H(e))}function Ve(e,t){return U(e,Math.round(t))}function He(e,t){return t.toLocaleDateString(H(e),{day:`2-digit`,month:`2-digit`})}function Ue(e,t){return new Date(t).toLocaleDateString(H(e),{day:`2-digit`,month:`2-digit`,year:`2-digit`})}var W={day:`numeric`,month:`short`};function We(e,t){return G(t).toLocaleDateString(H(e),W)}function Ge(e,t,n){return new Intl.DateTimeFormat(H(e),W).formatRange(G(t),G(n))}function G(e){return new Date(`${Ie(e)}T00:00:00`)}function Ke(e,t){return new Date(t).toLocaleString(H(e),{day:`2-digit`,month:`2-digit`,year:`numeric`,hour:`2-digit`,minute:`2-digit`})}function qe(e,t){return V(t).toLocaleString(H(e),{useGrouping:!1})}function Je(e,t){return t===null?`—`:`$${t.toLocaleString(H(e),{minimumFractionDigits:2,maximumFractionDigits:2})}`}var Ye=new Intl.PluralRules(H(`ru`));function K(e,t,n,r){if(!Number.isInteger(e))return n;switch(Ye.select(e)){case`one`:return t;case`many`:return r;case`zero`:case`two`:case`few`:case`other`:return n}}function q(e,t,n){return e===1?t:n}function J(e,t,n,r){return`${U(`ru`,e)} ${K(e,t,n,r)}`}function Xe(e,t,n){return`${U(`en`,e)} ${q(e,t,n)}`}var Y={crashTitle:`The backlog interface crashed`,crashHint:`Reload the page. If the error keeps happening, restart the backlog server.`,serverErrorPrefixed:e=>`Server returned an error: ${e}`,serverStatusError:e=>`Server returned an error ${e}. Retry; if it keeps failing, restart the backlog server.`,unreachableMessage:e=>[`The backlog server is not responding. Start it: `,e(`npm start`),` in the p-backlog repository, or, if you installed the LaunchAgent from the README, `,e(`launchctl kickstart -k gui/$(id -u)/local.p-backlog`)],scopeNote:(e,t)=>`${e} of ${t} ${q(t,`project`,`projects`)} included`,bootLoadError:`Couldn't load the interface — reload the page`,bootSettingsError:`Backlog server is not responding`,bootRetry:`Retry`},X={crashTitle:`Интерфейс беклога сломался`,crashHint:`Обновите страницу. Если ошибка повторится, перезапустите сервер беклога.`,serverErrorPrefixed:e=>`Сервер вернул ошибку: ${e}`,serverStatusError:e=>`Сервер вернул ошибку ${e}. Повторите; если не проходит — перезапустите сервер беклога.`,unreachableMessage:e=>[`Сервер беклога не отвечает. Запустите его: `,e(`npm start`),` в репозитории p-backlog или, если установлен LaunchAgent из README, `,e(`launchctl kickstart -k gui/$(id -u)/local.p-backlog`)],scopeNote:(e,t)=>`учтено ${e} из ${J(t,`проекта`,`проектов`,`проектов`)}`,bootLoadError:`Не удалось загрузить интерфейс — обновите страницу`,bootSettingsError:`Сервер беклога не отвечает`,bootRetry:`Повторить`};function Z(e){return`${e(X)} · ${e(Y)}`}var Ze=`modulepreload`,Qe=function(e){return`/`+e},Q={},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Qe(t,n),t=s(t),t in Q)return;Q[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Ze,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};R({jitless:!0}),$(async()=>{let{startApp:e}=await import(`./start-BR6m00jS.js`);return{startApp:e}},__vite__mapDeps([0,1,2,3,4,5])).then(({startApp:e})=>e()).catch($e);function $e(){let e=document.createElement(`p`);e.setAttribute(`role`,`alert`),e.textContent=Z(e=>e.bootLoadError),(document.getElementById(`root`)??document.body).replaceChildren(e)}export{w as $,R as A,o as B,Re as C,te as Ct,Pe as D,Ne as E,re as F,A as G,C as H,c as I,ye as J,ee as K,xe as L,ue as M,le as N,I as O,ve as P,e as Q,i as R,ze as S,ie as St,z as T,Ae as U,v as V,De as W,Se as X,pe as Y,s as Z,Ve as _,be as _t,Xe as a,t as at,H as b,_e as bt,K as c,h as ct,We as d,fe as dt,k as et,He as f,ce as ft,U as g,de as gt,Je as h,ge as ht,Y as i,E as it,L as j,je as k,Ue as l,se as lt,qe as m,T as mt,Z as n,g as nt,J as o,n as ot,Ge as p,O as pt,oe as q,X as r,_ as rt,q as s,he as st,$ as t,Oe as tt,Ke as u,a as ut,G as v,ae as vt,B as w,y as wt,V as x,me as xt,Be as y,l as yt,ne as z};