dev-process-kit 0.3.0 → 0.3.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.
Files changed (28) hide show
  1. package/dist/boards.js +1 -1
  2. package/dist/chunks/{shared-B_Tiv_T3.js → shared-2OsWmhrI.js} +1 -1
  3. package/dist/chunks/{shared-DNsl9DK1.js → shared-B57TT0rn.js} +1 -1
  4. package/dist/chunks/{shared-DYDJzB79.js → shared-B8ZhyjWv.js} +140 -137
  5. package/dist/chunks/{shared-BfByEotW.js → shared-BXywwm1a.js} +740 -366
  6. package/dist/chunks/shared-Be43xweD.js +43 -0
  7. package/dist/chunks/{shared-FMBoDqPg.js → shared-C0M3Ib7z.js} +1 -1
  8. package/dist/chunks/{shared-Ln6ei2B2.js → shared-C89fKgKG.js} +98 -94
  9. package/dist/chunks/{shared-Bs2YYFvO.js → shared-CF2_VP2x.js} +1 -1
  10. package/dist/chunks/{shared-DegJ_tfw.js → shared-CeCpFPDQ.js} +1 -1
  11. package/dist/chunks/{shared-BYbcHniE.js → shared-DIEJ9E2G.js} +1 -1
  12. package/dist/chunks/{shared-RvLH2Fqp.js → shared-DJtGS7Ct.js} +1 -1
  13. package/dist/chunks/{shared-epAjO2d1.js → shared-Dd8JfvQe.js} +1 -1
  14. package/dist/chunks/{shared-TtB-p2Zh.js → shared-Dn92ukYW.js} +1 -1
  15. package/dist/chunks/{shared-WtWbdwp_.js → shared-Dql0ZVdC.js} +1 -1
  16. package/dist/chunks/shared-LHG2FbnK.js +1 -0
  17. package/dist/chunks/{shared-BFraiskj.js → shared-egtdNQhY.js} +264 -281
  18. package/dist/chunks/{shared-DqlTHpRQ.js → shared-ubG0-RQ-.js} +1 -1
  19. package/dist/components.js +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/views/delegation-poker.js +1 -1
  22. package/dist/views/plain.js +1 -1
  23. package/dist/views/prototype.js +1 -1
  24. package/dist/views/slides.js +1 -1
  25. package/dist/views/task-board.js +1 -1
  26. package/dist/views/usm.js +1 -1
  27. package/package.json +1 -1
  28. package/dist/chunks/shared-DMksNmni.js +0 -1
@@ -1,6 +1,6 @@
1
- import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi as Qe,bD as Ma,bE as La,aV as $t,bk as Da,bF as xt,au as Ra,aL as _,ay as w,aw as V,aa as Y,aM as R,aN as Ie,p as b,a8 as Tt,a9 as g,t as ee,aO as G,aB as Oa,N as Na,e as Ca,a5 as Ba,S as I,P as k,b0 as O,ah as H,as as l,ai as u,aj as B,ak as Ae,al as et,l as J,aH as U,aP as Q,I as tt,X as Ua,ag as _t,aE as It,B as Ya,j as Pa,aW as Me,bm as za,bn as Fa,bp as Va,z as At,aS as Le,H as Ga,bG as Mt,bH as Ha,bc as De,bI as Ka,y as st,bd as qa,V as Lt,aF as Dt,aG as at,aT as Wa,aK as ja,bJ as Xa}from"./shared-DYDJzB79.js";import{a as Rt,c as Za}from"./shared-TtB-p2Zh.js";import{w as Ot,C as Nt,h as Ct,q as Bt,r as Ut,g as Yt,a as Ja,x as Qa}from"./shared-epAjO2d1.js";import{L as en}from"./shared-CjW1DhGL.js";import{o as Re}from"./shared-DMksNmni.js";const tn=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16 9-5.5 5.5L8 12"}]],sn=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"}]],an=[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9"}]],nn=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z"}],["circle",{cx:"12",cy:"12",r:"10"}]],on=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m15 9-6 6"}],["path",{d:"m9 9 6 6"}]],rn=[["circle",{cx:"12",cy:"12",r:"10"}]],dn=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6l4 2"}]],ln=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]],pn=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}],["circle",{cx:"12",cy:"12",r:"3"}]],cn=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528"}]],un=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"}],["path",{d:"M9 18h6"}],["path",{d:"M10 22h4"}]],mn=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}],["path",{d:"M12 12V8"}]],hn=[["circle",{cx:"6",cy:"19",r:"3"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15"}],["circle",{cx:"18",cy:"5",r:"3"}]],bn=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor"}]],gn=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}],["path",{d:"M12 9v4"}],["path",{d:"M12 17h.01"}]],Pt=e=>new Map(e.map(t=>[t.id,t.blockedBy??[]])),nt=(e,t,s)=>{const a=Pt(e),n=new Set,i=[...a.get(t)??[]];for(;i.length>0;){const o=i.pop();if(!(o===void 0||n.has(o))){if(o===s)return!0;n.add(o),i.push(...a.get(o)??[])}}return!1},fn=e=>{const t=Pt(e),s=new Set,a=(n,i)=>{const o=i.indexOf(n);if(o>=0)return[...i.slice(o),n];if(s.has(n))return null;for(const r of t.get(n)??[]){const d=a(r,[...i,n]);if(d)return d}return s.add(n),null};for(const n of e){const i=a(n.id,[]);if(i)return i}return null},Oe=["gray","blue","violet","green","amber","accent"],zt=["progress","circle","lightbulb","flag","play","clock","eye","pause","check","x"],Ne=["estimates","assignees"],Ft=["stories","points","weighted"],Vt=f(h(),Ma(),Qe(e=>{const[t=0,s=0,a=0]=e.split("-").map(Number),n=new Date(Date.UTC(t,s-1,a));return n.getUTCMonth()===s-1&&n.getUTCDate()===a},"a due date must be a calendar day")),Gt=f(Se(),Je(),we(0)),it=f(Se(),Je(),we(0)),Ht=W({milestoneId:_(f(h(),w(1))),statusId:_(f(h(),w(1))),stories:f(Se(),$t(),we(0)),points:f(Se(),Je(),we(0))}),Ce=f(h(),Aa()),yn=W({id:f(h(),w(1)),name:f(h(),w(1)),questions:Ie}),vn=W({id:R,name:f(h(),w(1)),actor:_(h()),steps:V(Y(yn),[]),questions:Ie}),kn=W({id:f(h(),w(1)),name:f(h(),w(1)),timeframe:_(h()),description:_(h()),dueDate:_(Vt),questions:Ie}),ae=_e(Oe),ot=_e(zt),rt=f(h(),La(),Qe(e=>/^https?:\/\//i.test(e),"a link must be an http(s) URL")),wn=W({url:rt,label:_(f(h(),w(1)))}),Sn=W({id:R,name:f(h(),w(1)),tone:V(ae),icon:V(ot),weight:_(Gt)}),En=W({id:R,name:f(h(),w(1)),tone:V(ae)}),Kt=f(h(),Qe(e=>e.trim()!=="","a comment needs some text")),$n=W({id:R,body:Kt,createdAt:_(Ce)}),qt=f(Se(),$t(),we(1)),xn=W({id:R,number:_(qt),name:f(h(),w(1)),description:_(h()),activityId:f(h(),w(1)),stepId:f(h(),w(1)),milestoneId:_(h()),statusId:_(h()),links:_(Y(wn)),labelIds:_(Y(f(h(),w(1)))),blockedBy:_(Y(f(h(),w(1)))),estimateId:_(f(h(),w(1))),assigneeId:_(f(h(),w(1))),comments:_(Y($n)),questions:Ie}),Tn=W({id:R,name:f(h(),w(1)),tone:V(ae)}),Wt=_e(Ne),jt=_e(Ft),_n=W({id:R,name:f(h(),w(1)),points:it}),In=W({id:R,at:Ce,tally:Y(Ht)}),An=W({title:_(h()),features:V(Y(Wt),[]),measure:_(jt),doneStatusId:_(f(h(),w(1))),activities:V(Y(vn),[]),milestones:V(Y(kn),[]),statuses:V(Y(Sn),[]),labels:V(Y(En),[]),members:V(Y(Tn),[]),estimates:V(Y(_n),[]),stories:V(Y(xn),[]),snapshots:V(Y(In),[])}),dt=e=>Oe[e%Oe.length]??"gray",Be=e=>dt(e+1),Xt=e=>{const t=Ra(An,e);if(new Set(t.features).size!==t.features.length)throw new Error("the base turns a feature on twice");const s=t.statuses[0]?.id,a=t.stories.flatMap(c=>c.number===void 0?[]:[c.number]),n=a.find((c,T)=>a.indexOf(c)!==T);if(n!==void 0)throw new Error(`two stories share the number ${n}`);let i=Math.max(0,...a);const o={...t,stories:t.stories.map(c=>({...c,number:c.number??++i,...s===void 0||c.statusId!==void 0?{}:{statusId:s}})),statuses:t.statuses.map((c,T)=>({...c,tone:c.tone??dt(T),icon:c.icon??"progress"})),labels:t.labels.map((c,T)=>({...c,tone:c.tone??Be(T)})),members:t.members.map((c,T)=>({...c,tone:c.tone??Be(T)})),features:Ne.filter(c=>t.features.includes(c))},r=new Map;for(const c of o.activities)for(const T of c.steps)r.set(T.id,c.id);const d=new Set(o.milestones.map(c=>c.id)),p=new Set(o.statuses.map(c=>c.id)),m=new Set(o.labels.map(c=>c.id));if(o.doneStatusId!==void 0&&!p.has(o.doneStatusId))throw new Error(`the base references unknown doneStatusId "${o.doneStatusId}"`);const y=new Set,E=(c,T)=>{if(y.has(T))throw new Error(`duplicate id "${T}" in ${c}`);y.add(T)};for(const c of o.activities){E("activities",c.id);for(const T of c.steps)E("steps",T.id)}for(const c of o.milestones)E("milestones",c.id);for(const c of o.statuses)E("statuses",c.id);for(const c of o.labels)E("labels",c.id);for(const c of o.members)E("members",c.id);for(const c of o.estimates)E("estimates",c.id);for(const c of o.snapshots)E("snapshots",c.id);const S=new Set(o.estimates.map(c=>c.id)),A=new Set(o.members.map(c=>c.id));for(const c of o.stories){E("stories",c.id);for(const ke of c.comments??[])E("story comments",ke.id);const T=r.get(c.stepId);if(T===void 0||T!==c.activityId)throw new Error(`story "${c.id}" references unknown activityId/stepId`);if(c.milestoneId!==void 0&&!d.has(c.milestoneId))throw new Error(`story "${c.id}" references unknown milestoneId "${c.milestoneId}"`);const ye=(c.links??[]).map(ke=>ke.url);if(new Set(ye).size!==ye.length)throw new Error(`story "${c.id}" links the same URL twice`);if(c.statusId!==void 0&&!p.has(c.statusId))throw new Error(`story "${c.id}" references unknown statusId "${c.statusId}"`);const ve=c.labelIds??[];if(new Set(ve).size!==ve.length)throw new Error(`story "${c.id}" has a label twice`);const Et=ve.find(ke=>!m.has(ke));if(Et!==void 0)throw new Error(`story "${c.id}" references unknown labelId "${Et}"`);if(c.estimateId!==void 0&&!S.has(c.estimateId))throw new Error(`story "${c.id}" references unknown estimateId "${c.estimateId}"`);if(c.assigneeId!==void 0&&!A.has(c.assigneeId))throw new Error(`story "${c.id}" references unknown assigneeId "${c.assigneeId}"`)}for(const c of o.snapshots){const T=Zt(o,c.tally);if(T!==null)throw new Error(`snapshot "${c.id}" ${T}`)}const $=new Set(o.stories.map(c=>c.id));for(const c of o.stories){const T=c.blockedBy??[];if(T.includes(c.id))throw new Error(`story "${c.id}" is blocked by itself`);if(new Set(T).size!==T.length)throw new Error(`story "${c.id}" has a blocker twice`);const ye=T.find(ve=>!$.has(ve));if(ye!==void 0)throw new Error(`story "${c.id}" references unknown blocker "${ye}"`)}const L=fn(o.stories);if(L!==null)throw new Error(`stories block one another in a cycle: ${L.join(" \u2192 ")}`);return o},Zt=(e,t)=>{const s=new Set;for(const a of t){if(a.milestoneId!==void 0&&!P(e,a.milestoneId))return`references unknown milestoneId "${a.milestoneId}"`;if(a.statusId!==void 0&&!D(e,a.statusId))return`references unknown statusId "${a.statusId}"`;const n=Ue(a);if(s.has(n))return`tallies "${n}" twice`;s.add(n)}return null},Ue=e=>`${e.milestoneId??""}/${e.statusId??""}`,lt=()=>({features:[],activities:[],milestones:[],statuses:[],labels:[],members:[],estimates:[],stories:[],snapshots:[]}),te=(e,t)=>{if(t!==void 0)return e.activities.find(s=>s.id===t)},ce=(e,t)=>`${e}.${t}`,N=(e,t)=>{if(t===void 0)return;const s=Da(t,2);if(s){const[a,n]=s;if(a===void 0||n===void 0)return;const i=e.activities.find(r=>r.id===a),o=i?.steps.find(r=>r.id===n);return i&&o?{activity:i,step:o}:void 0}if(!t.includes("."))for(const a of e.activities){const n=a.steps.find(i=>i.id===t);if(n)return{activity:a,step:n}}},P=(e,t)=>{if(t!==void 0)return e.milestones.find(s=>s.id===t)},D=(e,t)=>{if(t!==void 0)return e.statuses.find(s=>s.id===t)},Z=(e,t)=>{if(t!==void 0)return e.labels.find(s=>s.id===t)},z=(e,t)=>e.features.includes(t),K=(e,t)=>{if(t!==void 0)return e.members.find(s=>s.id===t)},pt=(e,t)=>K(e,t.assigneeId),F=(e,t)=>{if(t!==void 0)return e.estimates.find(s=>s.id===t)},Ee=(e,t)=>{if(t!==void 0)return e.snapshots.find(s=>s.id===t)},ct=(e,t)=>{const s=new Set(t.labelIds??[]);return e.labels.filter(a=>s.has(a.id))},x=(e,t)=>{if(t!==void 0)return e.stories.find(s=>s.id===t)},Ye=e=>e.activities.flatMap(t=>t.steps.map(s=>({activity:t,step:s}))),Mn=e=>({...e,stories:xt(e.stories,[t=>`${t.activityId}/${t.stepId}/${t.milestoneId??""}`])}),Pe=(e,t,s)=>e.stories.filter(a=>a.stepId===t&&(a.milestoneId??void 0)===s),Jt=(e,t,s)=>e.stories.filter(a=>a.activityId===t&&(a.milestoneId??void 0)===s),j=e=>[...e.activities.map(t=>t.id),...e.activities.flatMap(t=>t.steps.map(s=>s.id)),...e.milestones.map(t=>t.id),...e.statuses.map(t=>t.id),...e.labels.map(t=>t.id),...e.members.map(t=>t.id),...e.estimates.map(t=>t.id),...e.stories.map(t=>t.id),...e.stories.flatMap(t=>(t.comments??[]).map(s=>s.id)),...e.snapshots.map(t=>t.id)],Qt=(e,t)=>e.stories.filter(s=>s.stepId===t).length,es=g({feature:Wt,enabled:Oa()}),v={SET_ACTIVITY_NAME:b("SET_ACTIVITY_NAME","activity",g({name:f(h(),w(1))})),SET_ACTIVITY_ACTOR:b("SET_ACTIVITY_ACTOR","activity",g({actor:h()})),SET_STEP_NAME:b("SET_STEP_NAME","step",g({name:f(h(),w(1))})),REORDER_STEP:b("REORDER_STEP","step",g({after:G(h())}),{mode:"sequence"}),REORDER_ACTIVITY:b("REORDER_ACTIVITY","activity",g({after:G(h())}),{mode:"sequence"}),ADD_ACTIVITY:b("ADD_ACTIVITY","page",g({id:R,name:f(h(),w(1))}),{dedupeKey:ee}),ADD_STEP:b("ADD_STEP","activity",g({id:R,name:f(h(),w(1))}),{dedupeKey:ee}),DELETE_ACTIVITY:b("DELETE_ACTIVITY","activity",g({})),DELETE_STEP:b("DELETE_STEP","step",g({})),SET_STORY_NAME:b("SET_STORY_NAME","story",g({name:f(h(),w(1))})),SET_STORY_DESCRIPTION:b("SET_STORY_DESCRIPTION","story",g({description:h()})),SET_STORY_MILESTONE:b("SET_STORY_MILESTONE","story",g({milestoneId:G(h())})),MOVE_STORY:b("MOVE_STORY","story",g({activityId:f(h(),w(1)),stepId:f(h(),w(1)),milestoneId:G(h()),after:G(h())}),{mode:"sequence"}),REORDER_STORY:b("REORDER_STORY","story",g({after:G(h())}),{mode:"sequence"}),ADD_STORY:b("ADD_STORY","step",g({id:R,name:f(h(),w(1)),activityId:f(h(),w(1)),milestoneId:_(h()),number:_(qt)}),{dedupeKey:ee}),DELETE_STORY:b("DELETE_STORY","story",g({})),ADD_STORY_LINK:b("ADD_STORY_LINK","story",g({url:rt,label:_(f(h(),w(1)))})),REMOVE_STORY_LINK:b("REMOVE_STORY_LINK","story",g({url:h()})),ADD_STORY_COMMENT:b("ADD_STORY_COMMENT","story",g({id:R,body:Kt,createdAt:_(Ce)}),{dedupeKey:ee}),DELETE_STORY_COMMENT:b("DELETE_STORY_COMMENT","story",g({commentId:f(h(),w(1))})),SET_STORY_STATUS:b("SET_STORY_STATUS","story",g({statusId:f(h(),w(1))})),SET_MILESTONE_NAME:b("SET_MILESTONE_NAME","milestone",g({name:f(h(),w(1))})),ADD_MILESTONE:b("ADD_MILESTONE","page",g({id:R,name:f(h(),w(1))}),{dedupeKey:ee}),DELETE_MILESTONE:b("DELETE_MILESTONE","milestone",g({})),REORDER_MILESTONE:b("REORDER_MILESTONE","milestone",g({after:G(h())}),{mode:"sequence"}),SET_MILESTONE_DUE_DATE:b("SET_MILESTONE_DUE_DATE","milestone",g({dueDate:G(Vt)})),ADD_STATUS:b("ADD_STATUS","page",g({id:R,name:f(h(),w(1)),tone:ae,icon:_(ot)}),{dedupeKey:ee}),SET_STATUS_NAME:b("SET_STATUS_NAME","status",g({name:f(h(),w(1))})),SET_STATUS_TONE:b("SET_STATUS_TONE","status",g({tone:ae})),SET_STATUS_ICON:b("SET_STATUS_ICON","status",g({icon:ot})),SET_STATUS_WEIGHT:b("SET_STATUS_WEIGHT","status",g({weight:Gt})),SET_MEASURE:b("SET_MEASURE","page",g({measure:jt})),SET_DONE_STATUS:b("SET_DONE_STATUS","status",g({})),DELETE_STATUS:b("DELETE_STATUS","status",g({})),REORDER_STATUS:b("REORDER_STATUS","status",g({after:G(h())}),{mode:"sequence"}),ADD_LABEL:b("ADD_LABEL","page",g({id:R,name:f(h(),w(1)),tone:ae}),{dedupeKey:ee}),SET_LABEL_NAME:b("SET_LABEL_NAME","label",g({name:f(h(),w(1))})),SET_LABEL_TONE:b("SET_LABEL_TONE","label",g({tone:ae})),DELETE_LABEL:b("DELETE_LABEL","label",g({})),REORDER_LABEL:b("REORDER_LABEL","label",g({after:G(h())}),{mode:"sequence"}),ADD_STORY_LABEL:b("ADD_STORY_LABEL","story",g({labelId:f(h(),w(1))})),REMOVE_STORY_LABEL:b("REMOVE_STORY_LABEL","story",g({labelId:f(h(),w(1))})),ADD_STORY_BLOCKER:b("ADD_STORY_BLOCKER","story",g({blockerId:f(h(),w(1))})),REMOVE_STORY_BLOCKER:b("REMOVE_STORY_BLOCKER","story",g({blockerId:f(h(),w(1))})),ADD_MEMBER:b("ADD_MEMBER","page",g({id:R,name:f(h(),w(1)),tone:ae}),{dedupeKey:ee}),SET_MEMBER_NAME:b("SET_MEMBER_NAME","member",g({name:f(h(),w(1))})),SET_MEMBER_TONE:b("SET_MEMBER_TONE","member",g({tone:ae})),DELETE_MEMBER:b("DELETE_MEMBER","member",g({})),REORDER_MEMBER:b("REORDER_MEMBER","member",g({after:G(h())}),{mode:"sequence"}),SET_STORY_ASSIGNEE:b("SET_STORY_ASSIGNEE","story",g({memberId:G(f(h(),w(1)))})),ADD_ESTIMATE:b("ADD_ESTIMATE","page",g({id:R,name:f(h(),w(1)),points:it}),{dedupeKey:ee}),SET_ESTIMATE_NAME:b("SET_ESTIMATE_NAME","estimate",g({name:f(h(),w(1))})),SET_ESTIMATE_POINTS:b("SET_ESTIMATE_POINTS","estimate",g({points:it})),DELETE_ESTIMATE:b("DELETE_ESTIMATE","estimate",g({})),REORDER_ESTIMATE:b("REORDER_ESTIMATE","estimate",g({after:G(h())}),{mode:"sequence"}),SET_STORY_ESTIMATE:b("SET_STORY_ESTIMATE","story",g({estimateId:G(f(h(),w(1)))})),RECORD_SNAPSHOT:b("RECORD_SNAPSHOT","page",g({id:R,at:Ce,tally:Y(Ht)}),{dedupeKey:ee}),DELETE_SNAPSHOT:b("DELETE_SNAPSHOT","snapshot",g({})),SET_FEATURE:b("SET_FEATURE","page",es,{dedupeKey:e=>{const t=Tt(es,e.payload);return`SET_FEATURE|${t.success?t.output.feature:JSON.stringify(e.payload)}`}})},Ln={setActivityName:(e,t)=>({type:"SET_ACTIVITY_NAME",target:{type:"activity",id:e},payload:{name:t}}),setStepName:(e,t)=>({type:"SET_STEP_NAME",target:{type:"step",id:e},payload:{name:t}})},be=e=>{const t=e.statuses.findIndex(s=>s.id===e.doneStatusId);return t>=0?t:e.statuses.length-1},ts=e=>e.statuses[be(e)],ss=(e,t)=>{if(t===void 0)return!1;const s=e.statuses.findIndex(a=>a.id===t);return s>=0&&s>=be(e)},as=e=>e.statuses.slice(0,be(e)+1),Dn=(e,t)=>e.milestones.find(s=>s.id===t.milestone)??e.milestones.find(s=>s.dueDate!==void 0)??e.milestones[0],ge=e=>z(e,"estimates")?e.measure??(e.estimates.length>0?"points":"stories"):"stories",ns=e=>e.weight??1,se=10,is=e=>{const{statuses:t}=e,s=be(e);if(ge(e)!=="weighted")return t.map((o,r)=>r<s?1:0);const a=t.slice(0,s).map(ns),n=ze(a),i=a.map(o=>n>0?o/n:1/a.length);return t.map((o,r)=>ze(i.slice(r)))},Rn=1,os=(e,t)=>F(e,t.estimateId)?.points??Rn,rs=e=>{const t=new Map;for(const n of e.stories){const i={...n.milestoneId===void 0?{}:{milestoneId:n.milestoneId},...n.statusId===void 0?{}:{statusId:n.statusId}},o=Ue(i),r=t.get(o)??{...i,stories:0,points:0};t.set(o,{...r,stories:r.stories+1,points:r.points+os(e,n)})}const s=[...e.milestones.map(n=>n.id),void 0],a=e.statuses.length===0?[void 0]:e.statuses.map(n=>n.id);return s.flatMap(n=>a.flatMap(i=>{const o=t.get(Ue({milestoneId:n,statusId:i}));return o?[o]:[]}))},On=(e,t,s)=>{const a=ge(e),i=[...xt(e.snapshots.map(d=>({at:Date.parse(d.at),tally:d.tally,snapshotId:d.id})),[d=>d.at]),{at:s,tally:rs(e)}].map(d=>({at:d.at,...d.snapshotId===void 0?{}:{snapshotId:d.snapshotId},values:Nn(e.statuses,d.tally,t,a)})),o=is(e),r=(d,p)=>({at:d.at,value:Math.round(p*100)/100,...d.snapshotId===void 0?{}:{snapshotId:d.snapshotId}});return{due:Cn(e.milestones.find(d=>d.id===t)?.dueDate),combined:i.map(d=>r(d,d.values.reduce((p,m,y)=>p+m*(o[y]??0),0))),byStatus:e.statuses.slice(1).map((d,p)=>({status:d,points:i.map(m=>r(m,ze(m.values.slice(0,p+1))))}))}},Nn=(e,t,s,a)=>e.map(n=>ze(t.filter(i=>i.milestoneId===s&&i.statusId===n.id).map(i=>a==="stories"?i.stories:i.points))),Cn=e=>{if(e===void 0)return null;const[t=0,s=1,a=1]=e.split("-").map(Number);return new Date(t,s-1,a,23,59,59).getTime()},ue=e=>{const t=new Date(e),s=a=>String(a).padStart(2,"0");return`${t.getFullYear()}-${s(t.getMonth()+1)}-${s(t.getDate())} ${s(t.getHours())}:${s(t.getMinutes())}`},ze=e=>e.reduce((t,s)=>t+s,0),ds="STORY-",de=e=>`${ds}${e.number}`,ls=(...e)=>Math.max(0,...e.flatMap(t=>t.stories.map(s=>s.number)))+1,Bn=(e,t)=>{if(t===void 0)return;const s=x(e,t);if(s)return s;const a=new RegExp(`^${ds}([1-9]\\d*)$`,"i").exec(t.trim());if(!a)return;const n=Number(a[1]);return e.stories.find(i=>i.number===n)},ps=(e,t)=>{const s=Na(v,t);if(s===null)return null;const a=s.target.id;switch(s.type){case"SET_ACTIVITY_NAME":{const{name:n}=s.payload;return e.activities.some(i=>i.id===a)?{...e,activities:e.activities.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_ACTIVITY_ACTOR":{const n=s.payload.actor.trim();return e.activities.some(i=>i.id===a)?{...e,activities:e.activities.map(i=>{if(i.id!==a)return i;const{actor:o,...r}=i;return n===""?r:{...r,actor:n}})}:null}case"SET_STEP_NAME":{const{name:n}=s.payload,i=N(e,a);return i?{...e,activities:e.activities.map(o=>o.id===i.activity.id?{...o,steps:o.steps.map(r=>r.id===i.step.id?{...r,name:n}:r)}:o)}:null}case"REORDER_STEP":{const{after:n}=s.payload,i=N(e,a);if(!i)return null;const o=n===null?null:N(e,n);if(n!==null&&(!o||o.activity.id!==i.activity.id))return null;const r=me(i.activity.steps,i.step.id,o?.step.id??null);return r===null?null:{...e,activities:e.activities.map(d=>d.id===i.activity.id?{...d,steps:r}:d)}}case"REORDER_ACTIVITY":{const{after:n}=s.payload,i=me(e.activities,a,n);return i===null?null:{...e,activities:i}}case"ADD_ACTIVITY":{const n=s.payload;return e.activities.some(i=>i.id===n.id)?e:{...e,activities:[...e.activities,{id:n.id,name:n.name,steps:[]}]}}case"ADD_STEP":{const n=s.payload,i=e.activities.find(o=>o.id===a);return i?i.steps.some(o=>o.id===n.id)?e:{...e,activities:e.activities.map(o=>o.id===a?{...o,steps:[...o.steps,{id:n.id,name:n.name}]}:o)}:null}case"DELETE_ACTIVITY":{const n=e.activities.find(o=>o.id===a);if(!n)return null;const i=new Set(n.steps.map(o=>o.id));return mt({...e,activities:e.activities.filter(o=>o.id!==a)},o=>o.activityId===a||i.has(o.stepId))}case"DELETE_STEP":{const n=N(e,a);return n?mt({...e,activities:e.activities.map(i=>i.id===n.activity.id?{...i,steps:i.steps.filter(o=>o.id!==n.step.id)}:i)},i=>i.activityId===n.activity.id&&i.stepId===n.step.id):null}case"SET_STORY_NAME":{const{name:n}=s.payload;return q(e,a,i=>({...i,name:n}))}case"SET_STORY_DESCRIPTION":{const{description:n}=s.payload;return q(e,a,i=>({...i,description:n}))}case"SET_STORY_MILESTONE":{const{milestoneId:n}=s.payload;return n!==null&&!P(e,n)?null:q(e,a,i=>n===null?ut(i):{...i,milestoneId:n})}case"MOVE_STORY":{const n=s.payload,i=x(e,a);if(!i)return null;const o=N(e,n.stepId);if(!o||o.activity.id!==n.activityId||n.milestoneId!==null&&!P(e,n.milestoneId))return null;const r=n.milestoneId??void 0,d=r===void 0?{...ut(i),activityId:o.activity.id,stepId:o.step.id}:{...i,activityId:o.activity.id,stepId:o.step.id,milestoneId:r};return ms(e,d,n.after)}case"REORDER_STORY":{const{after:n}=s.payload,i=x(e,a);return i?ms(e,i,n,!0):null}case"ADD_STORY":{const n=s.payload,i=N(e,t.target.id);if(!i||i.activity.id!==n.activityId||n.milestoneId!==void 0&&!P(e,n.milestoneId))return null;if(e.stories.some(d=>d.id===n.id))return e;const o=n.number!==void 0&&e.stories.some(d=>d.number===n.number),r={id:n.id,number:n.number===void 0||o?ls(e):n.number,name:n.name,activityId:n.activityId,stepId:i.step.id,...n.milestoneId===void 0?{}:{milestoneId:n.milestoneId},...e.statuses[0]===void 0?{}:{statusId:e.statuses[0].id}};return{...e,stories:[...e.stories,r]}}case"DELETE_STORY":return e.stories.some(n=>n.id===a)?mt(e,n=>n.id===a):null;case"ADD_STORY_LINK":{const{url:n,label:i}=s.payload,o=x(e,a);if(!o)return null;if(o.links?.some(d=>d.url===n))return e;const r=i===void 0?{url:n}:{url:n,label:i};return q(e,a,d=>({...d,links:[...d.links??[],r]}))}case"REMOVE_STORY_LINK":{const{url:n}=s.payload;return x(e,a)?.links?.some(o=>o.url===n)?q(e,a,o=>{const r=(o.links??[]).filter(m=>m.url!==n),{links:d,...p}=o;return r.length===0?p:{...p,links:r}}):null}case"ADD_STORY_COMMENT":{const{id:n,body:i,createdAt:o}=s.payload,r=x(e,a);if(!r)return null;if(r.comments?.some(p=>p.id===n))return e;if(j(e).includes(n))return null;const d=o===void 0?{id:n,body:i}:{id:n,body:i,createdAt:o};return q(e,a,p=>({...p,comments:[...p.comments??[],d]}))}case"DELETE_STORY_COMMENT":{const{commentId:n}=s.payload;return x(e,a)?.comments?.some(o=>o.id===n)?q(e,a,o=>{const r=(o.comments??[]).filter(m=>m.id!==n),{comments:d,...p}=o;return r.length===0?p:{...p,comments:r}}):null}case"SET_STORY_STATUS":{const{statusId:n}=s.payload;return D(e,n)?q(e,a,i=>({...i,statusId:n})):null}case"SET_MILESTONE_NAME":{const{name:n}=s.payload;return e.milestones.some(i=>i.id===a)?{...e,milestones:e.milestones.map(i=>i.id===a?{...i,name:n}:i)}:null}case"ADD_MILESTONE":{const n=s.payload;return e.milestones.some(i=>i.id===n.id)?e:{...e,milestones:[...e.milestones,{id:n.id,name:n.name}]}}case"DELETE_MILESTONE":return e.milestones.some(n=>n.id===a)?{...e,milestones:e.milestones.filter(n=>n.id!==a),stories:e.stories.map(n=>n.milestoneId===a?ut(n):n),snapshots:ht(e,n=>n.milestoneId===a?le(n,"milestoneId"):n)}:null;case"REORDER_MILESTONE":{const{after:n}=s.payload,i=me(e.milestones,a,n);return i===null?null:{...e,milestones:i}}case"SET_MILESTONE_DUE_DATE":{const{dueDate:n}=s.payload;return P(e,a)?{...e,milestones:e.milestones.map(i=>i.id!==a?i:n===null?le(i,"dueDate"):{...i,dueDate:n})}:null}case"ADD_STATUS":{const{id:n,name:i,tone:o,icon:r}=s.payload;if(e.statuses.some(p=>p.id===n))return e;const d=[...e.statuses,{id:n,name:i,tone:o,icon:r??"progress"}];return e.statuses.length===0?{...e,statuses:d,stories:e.stories.map(p=>({...p,statusId:n})),snapshots:ht(e,p=>({...p,statusId:n}))}:{...e,statuses:d}}case"SET_STATUS_NAME":{const{name:n}=s.payload;return D(e,a)?{...e,statuses:e.statuses.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_STATUS_TONE":{const{tone:n}=s.payload;return D(e,a)?{...e,statuses:e.statuses.map(i=>i.id===a?{...i,tone:n}:i)}:null}case"SET_STATUS_ICON":{const{icon:n}=s.payload;return D(e,a)?{...e,statuses:e.statuses.map(i=>i.id===a?{...i,icon:n}:i)}:null}case"SET_STATUS_WEIGHT":{const{weight:n}=s.payload;return D(e,a)?{...e,statuses:e.statuses.map(i=>i.id===a?{...i,weight:n}:i)}:null}case"SET_MEASURE":{const{measure:n}=s.payload;return ge(e)===n?e:{...e,measure:n}}case"SET_DONE_STATUS":return D(e,a)?e.doneStatusId===a?e:{...e,doneStatusId:a}:null;case"DELETE_STATUS":{if(!D(e,a))return null;const n=e.statuses.filter(o=>o.id!==a),i=n[0]?.id;return{...e.doneStatusId===a?le(e,"doneStatusId"):e,statuses:n,stories:e.stories.map(o=>o.statusId!==a?o:i===void 0?Un(o):{...o,statusId:i}),snapshots:ht(e,o=>o.statusId!==a?o:i===void 0?le(o,"statusId"):{...o,statusId:i})}}case"REORDER_STATUS":{const{after:n}=s.payload,i=me(e.statuses,a,n);return i===null?null:{...e,statuses:i}}case"ADD_LABEL":{const{id:n,name:i,tone:o}=s.payload;return Z(e,n)?e:{...e,labels:[...e.labels,{id:n,name:i,tone:o}]}}case"SET_LABEL_NAME":{const{name:n}=s.payload;return Z(e,a)?{...e,labels:e.labels.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_LABEL_TONE":{const{tone:n}=s.payload;return Z(e,a)?{...e,labels:e.labels.map(i=>i.id===a?{...i,tone:n}:i)}:null}case"DELETE_LABEL":return Z(e,a)?{...e,labels:e.labels.filter(n=>n.id!==a),stories:e.stories.map(n=>n.labelIds?.includes(a)?cs(n,a):n)}:null;case"REORDER_LABEL":{const{after:n}=s.payload,i=me(e.labels,a,n);return i===null?null:{...e,labels:i}}case"ADD_STORY_LABEL":{const{labelId:n}=s.payload,i=x(e,a);return!i||!Z(e,n)?null:i.labelIds?.includes(n)?e:q(e,a,o=>({...o,labelIds:[...o.labelIds??[],n]}))}case"REMOVE_STORY_LABEL":{const{labelId:n}=s.payload;return x(e,a)?.labelIds?.includes(n)?q(e,a,i=>cs(i,n)):null}case"ADD_STORY_BLOCKER":{const{blockerId:n}=s.payload,i=x(e,a);return!i||!x(e,n)?null:i.blockedBy?.includes(n)?e:n===a||nt(e.stories,n,a)?null:q(e,a,o=>({...o,blockedBy:[...o.blockedBy??[],n]}))}case"REMOVE_STORY_BLOCKER":{const{blockerId:n}=s.payload;return x(e,a)?.blockedBy?.includes(n)?q(e,a,i=>us(i,new Set([n]))):null}case"ADD_MEMBER":{const{id:n,name:i,tone:o}=s.payload;return K(e,n)?e:{...e,members:[...e.members,{id:n,name:i,tone:o}]}}case"SET_MEMBER_NAME":{const{name:n}=s.payload;return K(e,a)?{...e,members:e.members.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_MEMBER_TONE":{const{tone:n}=s.payload;return K(e,a)?{...e,members:e.members.map(i=>i.id===a?{...i,tone:n}:i)}:null}case"DELETE_MEMBER":return K(e,a)?{...e,members:e.members.filter(n=>n.id!==a),stories:e.stories.map(n=>n.assigneeId===a?le(n,"assigneeId"):n)}:null;case"REORDER_MEMBER":{const{after:n}=s.payload,i=me(e.members,a,n);return i===null?null:{...e,members:i}}case"SET_STORY_ASSIGNEE":{const{memberId:n}=s.payload;return n!==null&&!K(e,n)?null:q(e,a,i=>n===null?le(i,"assigneeId"):{...i,assigneeId:n})}case"ADD_ESTIMATE":{const{id:n,name:i,points:o}=s.payload;return F(e,n)?e:{...e,estimates:[...e.estimates,{id:n,name:i,points:o}]}}case"SET_ESTIMATE_NAME":{const{name:n}=s.payload;return F(e,a)?{...e,estimates:e.estimates.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_ESTIMATE_POINTS":{const{points:n}=s.payload;return F(e,a)?{...e,estimates:e.estimates.map(i=>i.id===a?{...i,points:n}:i)}:null}case"DELETE_ESTIMATE":return F(e,a)?{...e,estimates:e.estimates.filter(n=>n.id!==a),stories:e.stories.map(n=>n.estimateId===a?le(n,"estimateId"):n)}:null;case"REORDER_ESTIMATE":{const{after:n}=s.payload,i=me(e.estimates,a,n);return i===null?null:{...e,estimates:i}}case"SET_STORY_ESTIMATE":{const{estimateId:n}=s.payload;return n!==null&&!F(e,n)?null:q(e,a,i=>n===null?le(i,"estimateId"):{...i,estimateId:n})}case"RECORD_SNAPSHOT":{const{id:n,at:i,tally:o}=s.payload;return Ee(e,n)?e:Zt(e,o)!==null?null:{...e,snapshots:[...e.snapshots,{id:n,at:i,tally:o}]}}case"DELETE_SNAPSHOT":return Ee(e,a)?{...e,snapshots:e.snapshots.filter(n=>n.id!==a)}:null;case"SET_FEATURE":{const{feature:n,enabled:i}=s.payload;if(e.features.includes(n)===i)return e;const o=Ne.filter(r=>r===n?i:e.features.includes(r));return{...e,features:o}}default:return Ca(s)}},q=(e,t,s)=>e.stories.some(a=>a.id===t)?{...e,stories:e.stories.map(a=>a.id===t?s(a):a)}:null,ut=e=>{const{milestoneId:t,...s}=e;return s},cs=(e,t)=>{const{labelIds:s=[],...a}=e,n=s.filter(i=>i!==t);return n.length===0?a:{...a,labelIds:n}},us=(e,t)=>{const{blockedBy:s=[],...a}=e,n=s.filter(i=>!t.has(i));return n.length===0?a:{...a,blockedBy:n}},mt=(e,t)=>{const s=new Set(e.stories.filter(t).map(a=>a.id));return{...e,stories:e.stories.filter(a=>!s.has(a.id)).map(a=>a.blockedBy?.some(n=>s.has(n))?us(a,s):a)}},le=(e,t)=>{const{[t]:s,...a}=e;return a},ht=(e,t)=>e.snapshots.map(s=>{const a=new Map;for(const n of s.tally.map(t)){const i=Ue(n),o=a.get(i);a.set(i,o?{...o,stories:o.stories+n.stories,points:o.points+n.points}:n)}return{...s,tally:[...a.values()]}}),Un=e=>{const{statusId:t,...s}=e;return s},ms=(e,t,s,a=!1)=>{const n=t.milestoneId??void 0,i=e.stories.filter(S=>S.id!==t.id),o=i.filter(S=>S.stepId===t.stepId&&(S.milestoneId??void 0)===n);if(s!==null){const S=i.find(A=>A.id===s);if(!S||S.stepId!==t.stepId||(S.milestoneId??void 0)!==n)return null;if(a){const A=x(e,t.id);if(!A||S.stepId!==A.stepId||(S.milestoneId??void 0)!==(A.milestoneId??void 0))return null}}const r=s===null?[t,...o]:hs(o,t,s),d=i.findIndex(S=>S.stepId===t.stepId&&(S.milestoneId??void 0)===n),p=new Set(o.map(S=>S.id)),m=i.filter(S=>!p.has(S.id)),y=d<0?m.length:Math.min(d,m.length),E=[...m.slice(0,y),...r,...m.slice(y)];return{...e,stories:E}},me=(e,t,s)=>{if(!e.some(i=>i.id===t)||s!==null&&!e.some(i=>i.id===s))return null;if(s===t)return[...e];const a=e.find(i=>i.id===t);if(a===void 0)return null;const n=e.filter(i=>i.id!==t);return hs(n,a,s)},hs=(e,t,s)=>{const a=[...e],n=s===null?-1:a.findIndex(i=>i.id===s);return a.splice(n+1,0,t),a},ne=Ba({en:{renameActivity:"Rename activity",changeActivityActor:"Change whose experience",renameStep:"Rename step",reorderStep:"Reorder step",reorderActivity:"Reorder activity group",addActivity:"Add activity",addStep:"Add step",deleteActivity:"Delete activity",deleteStep:"Delete step",renameStory:"Rename story",updateStoryDescription:"Update story description",changeMilestone:"Change milestone",moveStory:"Move story",reorderStory:"Reorder story",addStory:"Add story",deleteStory:"Delete story",renameMilestone:"Rename milestone",addMilestone:"Add milestone",deleteMilestone:"Delete milestone",reorderMilestone:"Reorder milestone",changeStoryStatus:"Change story status",addStatus:"Add status",renameStatus:"Rename status",changeStatusTone:"Change status color",changeStatusIcon:"Change status icon",addStoryLink:"Link to story",removeStoryLink:"Unlink from story",addStoryComment:"Comment on story",deleteStoryComment:"Delete story comment",deleteStatus:"Delete status",reorderStatus:"Reorder status",addLabel:"Add label",renameLabel:"Rename label",changeLabelTone:"Change label color",deleteLabel:"Delete label",reorderLabel:"Reorder label",addStoryLabel:"Label story",removeStoryLabel:"Unlabel story",addStoryBlocker:"Make story wait on",removeStoryBlocker:"Stop story waiting on",changeMilestoneDueDate:"Change milestone due date",changeStatusWeight:"Change status weight",setDoneStatus:"Change done status",addEstimate:"Add estimate",renameEstimate:"Rename estimate",changeEstimatePoints:"Change estimate points",deleteEstimate:"Delete estimate",reorderEstimate:"Reorder estimate",setStoryEstimate:"Estimate story",recordSnapshot:"Record burndown snapshot",deleteSnapshot:"Delete burndown snapshot",toValue:e=>`\u2192 \u201C${e}\u201D`,fromTo:(e,t)=>`\u201C${e}\u201D \u2192 \u201C${t}\u201D`,added:e=>`+ \u201C${e}\u201D`,removed:e=>`\u2212 \u201C${e}\u201D`,toFront:"\u2192 To the front",afterName:e=>`\u2192 Right after \u201C${e}\u201D`,toUnassigned:"\u2192 Unassigned",toName:e=>`\u2192 ${e}`,snapshotSummary:(e,t)=>`${e} \xB7 ${t===1?"1 story":`${t} stories`}`,activityGroup:"Activity",stepGroup:"Step",storyGroup:"Story",milestoneGroup:"Milestone",statusGroup:"Status",labelGroup:"Label",estimateGroup:"Estimate",snapshotGroup:"Snapshot",mapGroup:"Map",targetLabel:(e,t)=>`${e} \xB7 ${t}`,targetMissing:(e,t)=>`${e} \xB7 ${t} (missing)`,wholeMap:"Whole map",unassigned:"Unassigned",emptyTitle:"No backbone yet",emptyBody:"Add activities and steps, and the story map appears here.",firstActivityButton:"+ First activity",groupingLabel:"Group by",groupViewTab:"Activity group",groupAxisHeader:"Activity group \u2192",activityAxis:"Activity \u2192",milestoneAxis:"Milestone \u2193",stepNameLabel:"Step name",activityNameLabel:"Activity name",milestoneNameLabel:"Milestone name",addStepAria:"Add a step to this activity",newActivityButton:"+ Activity",newMilestoneButton:"+ Milestone",addCellButton:"+ Add",addStoryCellAria:"Add a story to this cell",storyCount:e=>e===1?"1 story":`${e} stories`,pageTabsLabel:"Page",mapTab:"User Story Mapping",tableTab:"Table",milestonesTab:"Milestones",burndownTab:"Burndown",statusesSection:"Statuses",labelsSection:"Labels",membersSection:"Members",shareOfStories:e=>`${e}% of all stories`,coverageLabel:"Backbone coverage",coverage:(e,t)=>`${e} / ${t} steps`,storiesLabel:"Stories",timeframeUnset:"Timing not set",milestoneNoDescription:"No description yet.",noMilestonesTitle:"No milestones yet",noMilestonesBody:"Add a milestone to slice the map into releases.",commentCountAria:e=>e===1?"1 comment":`${e} comments`,reviewCountAria:e=>e===1?"1 review comment":`${e} review comments`,statusNameLabel:"Status name",statusToneLabel:"Color",toneName:e=>({gray:"Gray",blue:"Blue",violet:"Violet",green:"Green",amber:"Amber",accent:"Indigo"})[e],statusIconLabel:"Icon",iconName:e=>({progress:"Progress ring",circle:"Circle",lightbulb:"Light bulb",flag:"Flag",play:"Play",clock:"Clock",eye:"Eye",pause:"Pause",check:"Check",x:"Cross"})[e],statusShare:(e,t)=>`${e===1?"1 story":`${e} stories`} \xB7 ${t}%`,filterLabel:"Filter",filterKeyLabel:e=>({status:"Status",label:"Label",estimate:"Estimate",assignee:"Assignee"})[e],filterAll:"All",noLabel:"No label",unestimatedFilter:"Not estimated",clearFilter:"Clear",showFinished:e=>`Show ${e}`,criticalPathButton:"Critical path",criticalPathHint:"Highlight the chain of waiting stories with the most work left, from their estimates and dependencies. If it slips, the whole map slips.",criticalPathCount:e=>e===1?"1 story":`${e} stories`,progressAria:e=>`Progress: ${e}`,activityActorLabel:"Who",noStatusesTitle:"No statuses yet",noStatusesBody:"Add statuses such as Idea / Ready / Done, and the map colors each story by where it stands.",newStatusButton:"+ Status",moveUpAria:"Move up",moveDownAria:"Move down",deleteStatusAria:"Delete this status",doneStatusMark:"Done",doneStatusAria:e=>`Count ${e} as done`,statusWeightLabel:"Status weights",statusWeightHint:"Counts a story partly done by the statuses it has passed.",weightsNeedStatuses:"With two statuses or more before the done one, a story\u2019s work can be shared out between them.",setMeasure:"Change how the work left is measured",weightLineLabel:(e,t)=>`Between ${e} and ${t}`,weightLineValue:(e,t,s,a)=>`${e} ${t}, ${s} ${a}`,labelNameLabel:"Label name",noLabelsTitle:"No labels yet",noLabelsBody:"You can add labels here.",newLabelButton:"+ Label",deleteLabelAria:"Delete this label",burndownMilestoneLabel:"Milestone",dueDateLabel:"Due",noDueDate:"No due date",measureLabel:"Measure by",measureName:e=>({stories:"Stories",points:"Story points",weighted:"Points \xD7 status"})[e],measureSettingsLabel:"Measure settings",recordSnapshotButton:"Record snapshot",recordSnapshotHint:"Keeps today\u2019s totals per milestone and status, so the lines have a point to start from.",combinedChartTitle:e=>e?"Weighted burndown":"Burndown",combinedChartHint:e=>({stories:"The number of stories not done yet.",points:"The points of the stories not done yet.",weighted:"The points of each story \xD7 the share of it the status weights leave ahead."})[e]+" It reaches 0 when every story is done.",statusChartTitle:e=>`Left to reach \u201C${e}\u201D`,statusChartsLabel:"By status",chartNow:"Now",chartToday:"Today",chartDue:"Due",chartIdeal:"Ideal",chartActual:"Actual",chartAbout:"How this chart is counted",axisDate:(e,t)=>bs("en-US",e,t),chartAria:(e,t)=>`${e}: ${t} now`,chartLatest:e=>`Now ${e}`,chartNeedsSnapshot:"Record a snapshot to draw the line from.",snapshotsLabel:"Snapshots",noSnapshots:"No snapshot yet.",deleteSnapshotAria:e=>`Delete the snapshot of ${e}`,noMilestonesForBurndown:"Add a milestone on the Milestones tab to see its burndown.",unestimatedNote:e=>`${e===1?"1 story has":`${e} stories have`} no estimate and count as 1 point each.`,estimatesLabel:"Estimate scale",estimatesHint:"Name and points of each size a story can be estimated at (1, 2, 3 \u2026 or S, M, L).",estimateNameLabel:"Estimate name",estimatePointsLabel:"Points",newEstimateButton:"+ Estimate",deleteEstimateAria:"Delete this estimate",noEstimates:"No estimate scale yet: the burndown counts stories.",moveDialogLabel:"Step to move to",moveDialogSelectLabel:"Destination",moveConfirm:"Move",moveCancel:"Cancel",storyStatusLabel:"Status",panelLabel:e=>`Story: ${e}`,closePanelAria:"Close",copyStoryKey:e=>`Copy ${e}`,storyKeyCopied:"Copied",storyKeyColumn:"Key",copyId:"Copy ID",copyIdTitle:"Copy ID + title",copyStoryInfo:"Copy card as Markdown",copyInfoStep:"Step",copyInfoBlocks:"Blocks",copyInfoWaitsOn:"Waits on",storyTitleLabel:"Title",storyDescriptionLabel:"Description",storyLinksLabel:"Links",storyLabelsLabel:"Labels",storyNoLabels:"No labels yet.",manageLabels:"Manage labels",storyDependenciesLabel:"Dependencies",storyBlockersLabel:"Waits on",storyDependentsLabel:"Holds up",storyNoBlockers:"Nothing to wait on.",storyNoDependents:"No story waits on this one.",addBlockerPlaceholder:"Search for a story to wait on\u2026",addDependentPlaceholder:"Search for a story to wait on this\u2026",noDependencyMatch:"No story matches.",blockerFinished:"Done",removeBlockerAria:e=>`Stop waiting on ${e}`,removeDependentAria:e=>`Stop ${e} waiting on this`,blocksChip:e=>`Blocks ${e}`,waitsChip:e=>`Waits on ${e}`,blocksChipTitle:e=>`${e} ${e===1?"story waits":"stories wait"} on this one`,waitsChipTitle:e=>`Waits on ${e} unfinished ${e===1?"story":"stories"}`,storyEstimateLabel:"Estimate",unestimated:"None",estimateText:(e,t)=>e===String(t)?e:`${e} (${t} pt)`,estimateChipTitle:e=>`Estimate: ${e}`,manageEstimates:"Manage the scale",linkUrlLabel:"URL",addLinkButton:"Add",removeLinkAria:e=>`Remove ${e}`,deleteStoryButton:"Delete story",storyCommentsLabel:"Comments",reviewStoryButton:"Review comment",reviewStoryTitle:"Write a review comment on this story, asking the agent for a change",storyStatusAria:e=>`Status: ${e}`,addMember:"Add member",renameMember:"Rename member",changeMemberTone:"Change member color",deleteMember:"Delete member",reorderMember:"Reorder member",setStoryAssignee:"Assign story",memberGroup:"Member",memberNameLabel:"Member name",noMembersTitle:"No members yet",noMembersBody:"Add the people on the team, then assign each story to the one who takes it on.",newMemberButton:"+ Member",deleteMemberAria:"Delete this member",storyAssigneeLabel:"Assignee",noAssignee:"No one",storyNoMembers:"No members yet.",manageMembers:"Manage members",assigneeChipTitle:e=>`Assigned to ${e}`,noAssigneeFilter:"Unassigned",moreTabsLabel:"More tabs",enableFeature:"Turn on feature",disableFeature:"Turn off feature",featureName:e=>({estimates:"Estimates & burndown",assignees:"Members & assignees"})[e],featureHint:e=>({estimates:"An estimate scale for the stories and a burndown per milestone.",assignees:"The members of the team and who each story is assigned to."})[e],featuresNote:"Turning a feature off only hides it: what it holds is kept.",newActivityName:"New activity",newStepName:"New step",newMilestoneName:"New milestone",newStoryName:"New story",newStatusName:"New status",newLabelName:"New label",newMemberName:"New member",newEstimateName:"New"},ja:{renameActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u540D\u3092\u5909\u66F4",changeActivityActor:"\u4F53\u9A13\u3059\u308B\u4EBA\u3092\u5909\u66F4",renameStep:"\u30B9\u30C6\u30C3\u30D7\u540D\u3092\u5909\u66F4",reorderStep:"\u30B9\u30C6\u30C3\u30D7\u306E\u9806\u5E8F\u3092\u5909\u66F4",reorderActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u30B0\u30EB\u30FC\u30D7\u306E\u9806\u5E8F\u3092\u5909\u66F4",addActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8FFD\u52A0",addStep:"\u30B9\u30C6\u30C3\u30D7\u3092\u8FFD\u52A0",deleteActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u524A\u9664",deleteStep:"\u30B9\u30C6\u30C3\u30D7\u3092\u524A\u9664",renameStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u540D\u3092\u5909\u66F4",updateStoryDescription:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u8AAC\u660E\u3092\u66F4\u65B0",changeMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u5909\u66F4",moveStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u79FB\u52D5",reorderStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u9806\u5E8F\u3092\u5909\u66F4",addStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u8FFD\u52A0",deleteStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u524A\u9664",renameMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u540D\u3092\u5909\u66F4",addMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u8FFD\u52A0",deleteMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u524A\u9664",reorderMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u306E\u9806\u5E8F\u3092\u5909\u66F4",changeStoryStatus:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u5909\u66F4",addStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8FFD\u52A0",renameStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u540D\u3092\u5909\u66F4",changeStatusTone:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u8272\u3092\u5909\u66F4",changeStatusIcon:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u30A2\u30A4\u30B3\u30F3\u3092\u5909\u66F4",addStoryLink:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u30EA\u30F3\u30AF\u3092\u8FFD\u52A0",removeStoryLink:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30EA\u30F3\u30AF\u3092\u524A\u9664",addStoryComment:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u30B3\u30E1\u30F3\u30C8\u3092\u8FFD\u52A0",deleteStoryComment:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30B3\u30E1\u30F3\u30C8\u3092\u524A\u9664",deleteStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u524A\u9664",reorderStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u9806\u5E8F\u3092\u5909\u66F4",addLabel:"\u30E9\u30D9\u30EB\u3092\u8FFD\u52A0",renameLabel:"\u30E9\u30D9\u30EB\u540D\u3092\u5909\u66F4",changeLabelTone:"\u30E9\u30D9\u30EB\u306E\u8272\u3092\u5909\u66F4",deleteLabel:"\u30E9\u30D9\u30EB\u3092\u524A\u9664",reorderLabel:"\u30E9\u30D9\u30EB\u306E\u9806\u5E8F\u3092\u5909\u66F4",addStoryLabel:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u30E9\u30D9\u30EB\u3092\u4ED8\u4E0E",removeStoryLabel:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30E9\u30D9\u30EB\u3092\u5916\u3059",addStoryBlocker:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u4F9D\u5B58\u5148\u3092\u8FFD\u52A0",removeStoryBlocker:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u4F9D\u5B58\u5148\u3092\u5916\u3059",changeMilestoneDueDate:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u306E\u671F\u65E5\u3092\u5909\u66F4",changeStatusWeight:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u91CD\u307F\u3092\u5909\u66F4",setDoneStatus:"\u5B8C\u4E86\u3068\u3059\u308B\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u5909\u66F4",addEstimate:"\u898B\u7A4D\u3082\u308A\u3092\u8FFD\u52A0",renameEstimate:"\u898B\u7A4D\u3082\u308A\u540D\u3092\u5909\u66F4",changeEstimatePoints:"\u898B\u7A4D\u3082\u308A\u306E\u30DD\u30A4\u30F3\u30C8\u3092\u5909\u66F4",deleteEstimate:"\u898B\u7A4D\u3082\u308A\u3092\u524A\u9664",reorderEstimate:"\u898B\u7A4D\u3082\u308A\u306E\u9806\u5E8F\u3092\u5909\u66F4",setStoryEstimate:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u898B\u7A4D\u3082\u308B",recordSnapshot:"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u306E\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u8A18\u9332",deleteSnapshot:"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u306E\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u524A\u9664",toValue:e=>`\u2192 \u300C${e}\u300D`,fromTo:(e,t)=>`\u300C${e}\u300D\u2192\u300C${t}\u300D`,added:e=>`+ \u300C${e}\u300D`,removed:e=>`\u2212 \u300C${e}\u300D`,toFront:"\u2192 \u5148\u982D\u3078",afterName:e=>`\u2192 \u300C${e}\u300D\u306E\u76F4\u5F8C\u3078`,toUnassigned:"\u2192 \u672A\u5272\u5F53\u3078",toName:e=>`\u2192 ${e}`,snapshotSummary:(e,t)=>`${e} \xB7 ${t} \u30B9\u30C8\u30FC\u30EA\u30FC`,activityGroup:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",stepGroup:"\u30B9\u30C6\u30C3\u30D7",storyGroup:"\u30B9\u30C8\u30FC\u30EA\u30FC",milestoneGroup:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",statusGroup:"\u30B9\u30C6\u30FC\u30BF\u30B9",labelGroup:"\u30E9\u30D9\u30EB",estimateGroup:"\u898B\u7A4D\u3082\u308A",snapshotGroup:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8",mapGroup:"\u30DE\u30C3\u30D7",targetLabel:(e,t)=>`${e} \xB7 ${t}`,targetMissing:(e,t)=>`${e} \xB7 ${t} (missing)`,wholeMap:"\u30DE\u30C3\u30D7\u5168\u4F53",unassigned:"\u672A\u5272\u5F53",emptyTitle:"\u30D0\u30C3\u30AF\u30DC\u30FC\u30F3\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",emptyBody:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3068\u30B9\u30C6\u30C3\u30D7\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u3053\u3053\u306B\u30B9\u30C8\u30FC\u30EA\u30FC\u30DE\u30C3\u30D7\u304C\u73FE\u308C\u307E\u3059\u3002",firstActivityButton:"+ \u6700\u521D\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",groupingLabel:"\u307E\u3068\u3081\u308B\u5358\u4F4D",groupViewTab:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u30B0\u30EB\u30FC\u30D7",groupAxisHeader:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u30B0\u30EB\u30FC\u30D7 \u2192",activityAxis:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3 \u2192",milestoneAxis:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3 \u2193",stepNameLabel:"\u30B9\u30C6\u30C3\u30D7\u540D",activityNameLabel:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u540D",milestoneNameLabel:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u540D",addStepAria:"\u3053\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u306B\u30B9\u30C6\u30C3\u30D7\u3092\u8FFD\u52A0",newActivityButton:"+ \u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",newMilestoneButton:"+ \u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",addCellButton:"+ \u8FFD\u52A0",addStoryCellAria:"\u3053\u306E\u30DE\u30B9\u306B\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u8FFD\u52A0",storyCount:e=>`${e} \u30B9\u30C8\u30FC\u30EA\u30FC`,pageTabsLabel:"\u30DA\u30FC\u30B8",mapTab:"User Story Mapping",tableTab:"\u30C6\u30FC\u30D6\u30EB",milestonesTab:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",burndownTab:"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3",statusesSection:"\u30B9\u30C6\u30FC\u30BF\u30B9",labelsSection:"\u30E9\u30D9\u30EB",membersSection:"\u30E1\u30F3\u30D0\u30FC",shareOfStories:e=>`\u5168\u30B9\u30C8\u30FC\u30EA\u30FC\u306E ${e}%`,coverageLabel:"\u30D0\u30C3\u30AF\u30DC\u30FC\u30F3\u306E\u7DB2\u7F85",coverage:(e,t)=>`${e} / ${t} \u30B9\u30C6\u30C3\u30D7`,storiesLabel:"\u30B9\u30C8\u30FC\u30EA\u30FC",timeframeUnset:"\u6642\u671F\u672A\u5B9A",milestoneNoDescription:"\u8AAC\u660E\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",noMilestonesTitle:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",noMilestonesBody:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u30DE\u30C3\u30D7\u3092\u30EA\u30EA\u30FC\u30B9\u3054\u3068\u306B\u533A\u5207\u308C\u307E\u3059\u3002",commentCountAria:e=>`\u30B3\u30E1\u30F3\u30C8 ${e} \u4EF6`,reviewCountAria:e=>`\u30EC\u30D3\u30E5\u30FC\u30B3\u30E1\u30F3\u30C8 ${e} \u4EF6`,statusNameLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9\u540D",statusToneLabel:"\u8272",toneName:e=>({gray:"\u30B0\u30EC\u30FC",blue:"\u9752",violet:"\u7D2B",green:"\u7DD1",amber:"\u9EC4",accent:"\u30A4\u30F3\u30C7\u30A3\u30B4"})[e],statusIconLabel:"\u30A2\u30A4\u30B3\u30F3",iconName:e=>({progress:"\u9032\u6357\u30EA\u30F3\u30B0",circle:"\u5186",lightbulb:"\u96FB\u7403",flag:"\u65D7",play:"\u518D\u751F",clock:"\u6642\u8A08",eye:"\u76EE",pause:"\u4E00\u6642\u505C\u6B62",check:"\u30C1\u30A7\u30C3\u30AF",x:"\u30D0\u30C4"})[e],statusShare:(e,t)=>`${e} \u30B9\u30C8\u30FC\u30EA\u30FC \xB7 ${t}%`,filterLabel:"\u30D5\u30A3\u30EB\u30BF\u30FC",filterKeyLabel:e=>({status:"\u30B9\u30C6\u30FC\u30BF\u30B9",label:"\u30E9\u30D9\u30EB",estimate:"\u898B\u7A4D\u3082\u308A",assignee:"\u62C5\u5F53\u8005"})[e],filterAll:"\u3059\u3079\u3066",noLabel:"\u30E9\u30D9\u30EB\u306A\u3057",unestimatedFilter:"\u898B\u7A4D\u3082\u308A\u306A\u3057",clearFilter:"\u30AF\u30EA\u30A2",showFinished:e=>`${e}\u3082\u8868\u793A`,criticalPathButton:"\u30AF\u30EA\u30C6\u30A3\u30AB\u30EB\u30D1\u30B9",criticalPathHint:"\u898B\u7A4D\u3082\u308A\u3068\u4F9D\u5B58\u95A2\u4FC2\u304B\u3089\u3001\u6B8B\u308A\u306E\u4F5C\u696D\u304C\u6700\u3082\u591A\u3044\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u9023\u306A\u308A\u3092\u5F37\u8ABF\u3057\u307E\u3059\u3002\u3053\u3053\u304C\u9045\u308C\u308B\u3068\u30DE\u30C3\u30D7\u5168\u4F53\u304C\u9045\u308C\u307E\u3059\u3002",criticalPathCount:e=>`${e} \u4EF6`,progressAria:e=>`\u9032\u307F\u5177\u5408: ${e}`,activityActorLabel:"\u8AB0\u306E\u4F53\u9A13",noStatusesTitle:"\u30B9\u30C6\u30FC\u30BF\u30B9\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",noStatusesBody:"Idea / Ready / Done \u306E\u3088\u3046\u306A\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u30DE\u30C3\u30D7\u306E\u30AB\u30FC\u30C9\u304C\u9032\u307F\u5177\u5408\u3067\u8272\u5206\u3051\u3055\u308C\u307E\u3059\u3002",newStatusButton:"+ \u30B9\u30C6\u30FC\u30BF\u30B9",moveUpAria:"\u4E0A\u3078\u79FB\u52D5",moveDownAria:"\u4E0B\u3078\u79FB\u52D5",deleteStatusAria:"\u3053\u306E\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u524A\u9664",doneStatusMark:"\u5B8C\u4E86",doneStatusAria:e=>`${e}\u3092\u5B8C\u4E86\u3068\u3059\u308B`,statusWeightLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u91CD\u307F",statusWeightHint:"\u901A\u308A\u904E\u304E\u305F\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u5206\u3060\u3051\u3001\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u9014\u4E2D\u307E\u3067\u9032\u3093\u3060\u3082\u306E\u3068\u3057\u3066\u6570\u3048\u307E\u3059\u3002",weightsNeedStatuses:"\u5B8C\u4E86\u3068\u3059\u308B\u30B9\u30C6\u30FC\u30BF\u30B9\u3088\u308A\u524D\u306B\u30B9\u30C6\u30FC\u30BF\u30B9\u304C 2 \u3064\u4EE5\u4E0A\u3042\u308B\u3068\u3001\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u4F5C\u696D\u3092\u305D\u306E\u9593\u3067\u5206\u3051\u3089\u308C\u307E\u3059\u3002",setMeasure:"\u6B8B\u308A\u306E\u4F5C\u696D\u91CF\u306E\u8A08\u6E2C\u65B9\u6CD5\u3092\u5909\u66F4",weightLineLabel:(e,t)=>`${e}\u3068${t}\u306E\u5883\u76EE`,weightLineValue:(e,t,s,a)=>`${e} ${t}\u3001${s} ${a}`,labelNameLabel:"\u30E9\u30D9\u30EB\u540D",noLabelsTitle:"\u30E9\u30D9\u30EB\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",noLabelsBody:"\u30E9\u30D9\u30EB\u3092\u8FFD\u52A0\u3067\u304D\u307E\u3059\u3002",newLabelButton:"+ \u30E9\u30D9\u30EB",deleteLabelAria:"\u3053\u306E\u30E9\u30D9\u30EB\u3092\u524A\u9664",burndownMilestoneLabel:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",dueDateLabel:"\u671F\u65E5",noDueDate:"\u671F\u65E5\u306A\u3057",measureLabel:"\u8A08\u6E2C\u65B9\u6CD5",measureName:e=>({stories:"\u30B9\u30C8\u30FC\u30EA\u30FC\u6570",points:"\u30B9\u30C8\u30FC\u30EA\u30FC\u30DD\u30A4\u30F3\u30C8",weighted:"\u30DD\u30A4\u30F3\u30C8 \xD7 \u30B9\u30C6\u30FC\u30BF\u30B9"})[e],measureSettingsLabel:"\u8A08\u6E2C\u306E\u8A2D\u5B9A",recordSnapshotButton:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u8A18\u9332",recordSnapshotHint:"\u4ECA\u306E\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3 \xD7 \u30B9\u30C6\u30FC\u30BF\u30B9\u3054\u3068\u306E\u96C6\u8A08\u3092\u6B8B\u3057\u3001\u7DDA\u306E\u8D77\u70B9\u306B\u3057\u307E\u3059\u3002",combinedChartTitle:e=>e?"\u91CD\u307F\u4ED8\u304D\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u30C1\u30E3\u30FC\u30C8":"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u30C1\u30E3\u30FC\u30C8",combinedChartHint:e=>({stories:"\u307E\u3060 Done \u3067\u306A\u3044\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u6570\u3002",points:"\u307E\u3060 Done \u3067\u306A\u3044\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30DD\u30A4\u30F3\u30C8\u3002",weighted:"\u5404\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30DD\u30A4\u30F3\u30C8 \xD7 \u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u91CD\u307F\u3067\u6C7A\u307E\u308B\u6B8B\u308A\u306E\u5272\u5408\u3002"})[e]+"\u3059\u3079\u3066 Done \u306B\u306A\u308B\u3068 0 \u3067\u3059\u3002",statusChartTitle:e=>`\u300C${e}\u300D\u306B\u5C4A\u304F\u307E\u3067\u306E\u6B8B\u308A`,statusChartsLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9\u5225",chartNow:"\u73FE\u5728",chartToday:"\u4ECA\u65E5",chartDue:"\u671F\u65E5",chartIdeal:"\u7406\u60F3",chartActual:"\u5B9F\u7E3E",chartAbout:"\u3053\u306E\u30C1\u30E3\u30FC\u30C8\u306E\u6570\u3048\u65B9",axisDate:(e,t)=>bs("ja-JP",e,t),chartAria:(e,t)=>`${e}: \u73FE\u5728 ${t}`,chartLatest:e=>`\u73FE\u5728 ${e}`,chartNeedsSnapshot:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u8A18\u9332\u3059\u308B\u3068\u7DDA\u304C\u5F15\u304B\u308C\u307E\u3059\u3002",snapshotsLabel:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8",noSnapshots:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",deleteSnapshotAria:e=>`${e} \u306E\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u524A\u9664`,noMilestonesForBurndown:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u30BF\u30D6\u3067\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u305D\u306E\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u304C\u898B\u3089\u308C\u307E\u3059\u3002",unestimatedNote:e=>`${e} \u4EF6\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u306F\u898B\u7A4D\u3082\u308A\u304C\u306A\u304F\u30011 \u4EF6 1 \u30DD\u30A4\u30F3\u30C8\u3068\u3057\u3066\u6570\u3048\u3066\u3044\u307E\u3059\u3002`,estimatesLabel:"\u898B\u7A4D\u3082\u308A\u306E\u76EE\u76DB\u308A",estimatesHint:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u4ED8\u3051\u3089\u308C\u308B\u898B\u7A4D\u3082\u308A\u306E\u540D\u524D\u3068\u30DD\u30A4\u30F3\u30C8\uFF081, 2, 3 \u2026 \u3084 S, M, L\uFF09\u3002",estimateNameLabel:"\u898B\u7A4D\u3082\u308A\u540D",estimatePointsLabel:"\u30DD\u30A4\u30F3\u30C8",newEstimateButton:"+ \u898B\u7A4D\u3082\u308A",deleteEstimateAria:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u3092\u524A\u9664",noEstimates:"\u898B\u7A4D\u3082\u308A\u306E\u76EE\u76DB\u308A\u304C\u307E\u3060\u306A\u3044\u305F\u3081\u3001\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u306F\u30B9\u30C8\u30FC\u30EA\u30FC\u6570\u3067\u6570\u3048\u307E\u3059\u3002",moveDialogLabel:"\u79FB\u52D5\u5148\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",moveDialogSelectLabel:"\u79FB\u52D5\u5148",moveConfirm:"\u79FB\u52D5\u3059\u308B",moveCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",storyStatusLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9",panelLabel:e=>`\u30B9\u30C8\u30FC\u30EA\u30FC: ${e}`,closePanelAria:"\u9589\u3058\u308B",copyStoryKey:e=>`${e} \u3092\u30B3\u30D4\u30FC`,storyKeyCopied:"\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",storyKeyColumn:"\u30AD\u30FC",copyId:"ID\u3092\u30B3\u30D4\u30FC",copyIdTitle:"ID + Title \u3092\u30B3\u30D4\u30FC",copyStoryInfo:"\u30AB\u30FC\u30C9\u60C5\u5831\u3092\u30B3\u30D4\u30FC",copyInfoStep:"\u30B9\u30C6\u30C3\u30D7",copyInfoBlocks:"\u30D6\u30ED\u30C3\u30AF",copyInfoWaitsOn:"\u4F9D\u5B58\u5148",storyTitleLabel:"\u30BF\u30A4\u30C8\u30EB",storyDescriptionLabel:"\u8AAC\u660E",storyLinksLabel:"\u30EA\u30F3\u30AF",storyLabelsLabel:"\u30E9\u30D9\u30EB",storyNoLabels:"\u30E9\u30D9\u30EB\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",manageLabels:"\u30E9\u30D9\u30EB\u3092\u7BA1\u7406",storyDependenciesLabel:"\u4F9D\u5B58\u95A2\u4FC2",storyBlockersLabel:"\u4F9D\u5B58\u5148\uFF08\u5148\u306B\u7D42\u3048\u308B\uFF09",storyDependentsLabel:"\u4F9D\u5B58\u5143\uFF08\u3053\u308C\u3092\u5F85\u3064\uFF09",storyNoBlockers:"\u5F85\u3063\u3066\u3044\u308B\u30B9\u30C8\u30FC\u30EA\u30FC\u306F\u3042\u308A\u307E\u305B\u3093\u3002",storyNoDependents:"\u3053\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u5F85\u3064\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002",addBlockerPlaceholder:"\u4F9D\u5B58\u5148\u3092\u691C\u7D22\u3057\u3066\u8FFD\u52A0\u2026",addDependentPlaceholder:"\u3053\u308C\u3092\u5F85\u3064\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u691C\u7D22\u3057\u3066\u8FFD\u52A0\u2026",noDependencyMatch:"\u4E00\u81F4\u3059\u308B\u30B9\u30C8\u30FC\u30EA\u30FC\u306F\u3042\u308A\u307E\u305B\u3093\u3002",blockerFinished:"\u5B8C\u4E86",removeBlockerAria:e=>`${e} \u3078\u306E\u4F9D\u5B58\u3092\u5916\u3059`,removeDependentAria:e=>`${e} \u304B\u3089\u306E\u4F9D\u5B58\u3092\u5916\u3059`,blocksChip:e=>`${e} \u4EF6\u3092\u30D6\u30ED\u30C3\u30AF`,waitsChip:e=>`${e} \u4EF6\u5F85\u3061`,blocksChipTitle:e=>`${e} \u4EF6\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u304C\u3053\u308C\u3092\u5F85\u3063\u3066\u3044\u307E\u3059`,waitsChipTitle:e=>`\u672A\u5B8C\u4E86\u306E ${e} \u4EF6\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u5F85\u3063\u3066\u3044\u307E\u3059`,storyEstimateLabel:"\u898B\u7A4D\u3082\u308A",unestimated:"\u306A\u3057",estimateText:(e,t)=>e===String(t)?e:`${e}\uFF08${t} pt\uFF09`,estimateChipTitle:e=>`\u898B\u7A4D\u3082\u308A: ${e}`,manageEstimates:"\u76EE\u76DB\u308A\u3092\u7BA1\u7406",linkUrlLabel:"URL",addLinkButton:"\u8FFD\u52A0",removeLinkAria:e=>`${e} \u3092\u5916\u3059`,deleteStoryButton:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u524A\u9664",storyCommentsLabel:"\u30B3\u30E1\u30F3\u30C8",reviewStoryButton:"\u30EC\u30D3\u30E5\u30FC\u30B3\u30E1\u30F3\u30C8",reviewStoryTitle:"\u3053\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u3064\u3044\u3066 Agent \u306B\u76F4\u3057\u3066\u307B\u3057\u3044\u3053\u3068\u3092\u30EC\u30D3\u30E5\u30FC\u30B3\u30E1\u30F3\u30C8\u306B\u66F8\u304F",storyStatusAria:e=>`\u30B9\u30C6\u30FC\u30BF\u30B9: ${e}`,addMember:"\u30E1\u30F3\u30D0\u30FC\u3092\u8FFD\u52A0",renameMember:"\u30E1\u30F3\u30D0\u30FC\u540D\u3092\u5909\u66F4",changeMemberTone:"\u30E1\u30F3\u30D0\u30FC\u306E\u8272\u3092\u5909\u66F4",deleteMember:"\u30E1\u30F3\u30D0\u30FC\u3092\u524A\u9664",reorderMember:"\u30E1\u30F3\u30D0\u30FC\u306E\u9806\u5E8F\u3092\u5909\u66F4",setStoryAssignee:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u62C5\u5F53\u8005\u3092\u5909\u66F4",memberGroup:"\u30E1\u30F3\u30D0\u30FC",memberNameLabel:"\u30E1\u30F3\u30D0\u30FC\u540D",noMembersTitle:"\u30E1\u30F3\u30D0\u30FC\u304C\u307E\u3060\u3044\u307E\u305B\u3093",noMembersBody:"\u30C1\u30FC\u30E0\u306E\u30E1\u30F3\u30D0\u30FC\u3092\u8FFD\u52A0\u3057\u3001\u5404\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u5F15\u304D\u53D7\u3051\u308B\u4EBA\u306B\u5272\u308A\u5F53\u3066\u307E\u3059\u3002",newMemberButton:"+ \u30E1\u30F3\u30D0\u30FC",deleteMemberAria:"\u3053\u306E\u30E1\u30F3\u30D0\u30FC\u3092\u524A\u9664",storyAssigneeLabel:"\u62C5\u5F53\u8005",noAssignee:"\u306A\u3057",storyNoMembers:"\u30E1\u30F3\u30D0\u30FC\u306F\u307E\u3060\u3044\u307E\u305B\u3093\u3002",manageMembers:"\u30E1\u30F3\u30D0\u30FC\u3092\u7BA1\u7406",assigneeChipTitle:e=>`\u62C5\u5F53: ${e}`,noAssigneeFilter:"\u62C5\u5F53\u8005\u306A\u3057",moreTabsLabel:"\u307B\u304B\u306E\u30BF\u30D6",enableFeature:"\u6A5F\u80FD\u3092\u6709\u52B9\u5316",disableFeature:"\u6A5F\u80FD\u3092\u7121\u52B9\u5316",featureName:e=>({estimates:"\u898B\u7A4D\u3082\u308A\u3068\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3",assignees:"\u30E1\u30F3\u30D0\u30FC\u3068\u62C5\u5F53\u8005"})[e],featureHint:e=>({estimates:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u898B\u7A4D\u3082\u308A\u3068\u3001\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3054\u3068\u306E\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u3002",assignees:"\u30C1\u30FC\u30E0\u306E\u30E1\u30F3\u30D0\u30FC\u3068\u3001\u5404\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u62C5\u5F53\u8005\u3002"})[e],featuresNote:"\u7121\u52B9\u306B\u3057\u3066\u3082\u96A0\u3059\u3060\u3051\u3067\u3001\u5165\u529B\u3057\u305F\u5185\u5BB9\u306F\u6B8B\u308A\u307E\u3059\u3002",newActivityName:"\u65B0\u3057\u3044\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",newStepName:"\u65B0\u3057\u3044\u30B9\u30C6\u30C3\u30D7",newMilestoneName:"\u65B0\u3057\u3044\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",newStoryName:"\u65B0\u3057\u3044\u30B9\u30C8\u30FC\u30EA\u30FC",newStatusName:"\u65B0\u3057\u3044\u30B9\u30C6\u30FC\u30BF\u30B9",newLabelName:"\u65B0\u3057\u3044\u30E9\u30D9\u30EB",newMemberName:"\u65B0\u3057\u3044\u30E1\u30F3\u30D0\u30FC",newEstimateName:"\u65B0\u898F"}}),bs=(e,t,s)=>{const a=new Date(t);switch(s){case"day":case"week":case"biweek":return`${a.getMonth()+1}/${a.getDate()}`;case"month":case"quarter":return new Intl.DateTimeFormat(e,{month:"short",...a.getMonth()===0?{year:"numeric"}:{}}).format(a);case"year":return new Intl.DateTimeFormat(e,{year:"numeric"}).format(a)}},bt=/^[A-Z][A-Z0-9]+-\d+$/,gs=e=>{let t=e;try{t=decodeURIComponent(e)}catch{}return t.replace(/[-_+]+/g," ").trim()},Yn=(e,t)=>{if(e!=="github.com")return null;const[s,a,n,i]=t;if(s===void 0)return{kind:"github",text:"GitHub",title:"github.com"};if(a===void 0)return{kind:"github",text:s,title:s};const o=`${s}/${a}`;return(n==="issues"||n==="pull"||n==="discussions")&&i&&/^\d+$/.test(i)?{kind:"github",text:`#${i}`,title:`${o}#${i}`}:n==="commit"&&i?{kind:"github",text:i.slice(0,7),title:`${o}@${i}`}:{kind:"github",text:o,title:o}},Pn=(e,t)=>{if(e!=="gitlab.com")return null;const s=t.indexOf("-"),a=(s<0?t:t.slice(0,s)).join("/"),n=s<0?void 0:t[s+1],i=s<0?void 0:t[s+2];if(i&&/^\d+$/.test(i)){if(n==="issues")return{kind:"gitlab",text:`#${i}`,title:`${a}#${i}`};if(n==="merge_requests")return{kind:"gitlab",text:`!${i}`,title:`${a}!${i}`}}return{kind:"gitlab",text:a||"GitLab",title:a||e}},zn=(e,t,s)=>{if(!t.endsWith(".atlassian.net")&&!t.startsWith("jira."))return null;const a=(s[0]==="browse"?s[1]:void 0)??e.searchParams.get("selectedIssue")??s.find(n=>bt.test(n));return a&&bt.test(a)?{kind:"jira",text:a,title:`${t} ${a}`}:{kind:"jira",text:"Jira",title:t}},Fn=(e,t)=>{if(e!=="linear.app")return null;const s=t[1]==="issue"?t[2]?.toUpperCase():void 0;return s&&bt.test(s)?{kind:"linear",text:s,title:s}:{kind:"linear",text:"Linear",title:e}},Vn=(e,t)=>{if(e!=="figma.com")return null;const[s,,a]=t;if((s==="file"||s==="design"||s==="proto"||s==="board")&&a){const n=gs(a);return{kind:"figma",text:n,title:n}}return{kind:"figma",text:"Figma",title:e}},Gn=(e,t)=>{if(e!=="notion.so"&&!e.endsWith(".notion.site"))return null;const a=(t.at(-1)??"").replace(/-?[0-9a-f]{32}$/i,""),n=a===""?"Notion":gs(a);return{kind:"notion",text:n,title:n}},Fe=e=>{let t;try{t=new URL(e)}catch{return{kind:"web",text:e,title:e}}const s=t.hostname.replace(/^www\./,""),a=t.pathname.split("/").filter(n=>n!=="");return Yn(s,a)??Pn(s,a)??zn(t,s,a)??Fn(s,a)??Vn(s,a)??Gn(s,a)??{kind:"web",text:s,title:e}},Hn=["map","table","milestones","burndown"],Kn={burndown:"estimates"},fs=e=>Hn.filter(t=>{const s=Kn[t];return s===void 0||z(e,s)}),ys=(e,t)=>fs(e).find(s=>s===t.tab)??"map",$e=(e,t)=>ss(e,t.statusId),vs=(e,t)=>{const s=x(e,t)?.blockedBy??[];return{blockers:s,openBlockers:s.filter(a=>{const n=x(e,a);return n!==void 0&&!$e(e,n)}).length,dependents:e.stories.filter(a=>a.blockedBy?.includes(t)).map(a=>a.id)}},qn=(e,t)=>{const s=new Set(x(e,t)?.blockedBy??[]);return e.stories.filter(a=>a.id!==t&&!s.has(a.id)&&!nt(e.stories,a.id,t))},Wn=(e,t)=>e.stories.filter(s=>s.id!==t&&!s.blockedBy?.includes(t)&&!nt(e.stories,t,s.id)),jn=["critical-path"],Ve=e=>jn.find(t=>t===e.highlight)??null,Xn=(e,t)=>{if($e(e,t))return 0;const s=ge(e)==="stories"?1:os(e,t),a=Math.max(0,e.statuses.findIndex(n=>n.id===t.statusId));return s*(is(e)[a]??1)},Zn=(e,t)=>Ve(t)==="critical-path"?ks(e).ids:null,Jn=1e-9,ks=e=>{const t=new Map(e.stories.map(d=>[d.id,Xn(e,d)]).filter(([,d])=>d>0)),s=new Map,a=new Map;for(const d of e.stories)if(t.has(d.id))for(const p of d.blockedBy??[])t.has(p)&&(s.set(d.id,[...s.get(d.id)??[],p]),a.set(p,[...a.get(p)??[],d.id]));const n=ws(t,s),i=ws(t,a),o=[...t].map(([d,p])=>[d,n(d)+i(d)-p]),r=Math.max(0,...o.map(([,d])=>d));return{ids:new Set(o.filter(([,d])=>r-d<Jn).map(([d])=>d)),work:r}},ws=(e,t)=>{const s=new Map,a=n=>{const i=s.get(n);if(i!==void 0)return i;const o=(e.get(n)??0)+Math.max(0,...(t.get(n)??[]).map(a));return s.set(n,o),o};return a},xe=["status","label","estimate","assignee"],ie="~none",oe={key:"done",value:"show"},Ss=(e,t)=>t[oe.key]===oe.value||e.statuses.length<2?new Set:new Set(e.statuses.filter(s=>ss(e,s.id)).map(s=>s.id)),fe=(e,t)=>{switch(t){case"status":return e.statuses.map(s=>s.id);case"label":return e.labels.length===0?[]:[...e.labels.map(s=>s.id),ie];case"estimate":return!z(e,"estimates")||e.estimates.length===0?[]:[...e.estimates.map(s=>s.id),ie];case"assignee":return!z(e,"assignees")||e.members.length===0?[]:[...e.members.map(s=>s.id),ie]}},Ge=(e,t)=>{const s=Ss(e,t),a=n=>{const i=t[n];if(i===void 0||i==="")return new Set;const o=new Set(i.split(","));return new Set(fe(e,n).filter(r=>o.has(r)&&!s.has(r)))};return{status:a("status"),label:a("label"),estimate:a("estimate"),assignee:a("assignee"),hiddenStatusIds:s}},Es=(e,t,s)=>{const a=fe(e,t).filter(n=>s.has(n));return a.length===0?null:a.join(",")},Qn=(e,t)=>{const s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s},ei=e=>xe.some(t=>e[t].size>0),$s=(e,t)=>{const s=t.labelIds??[];return(t.statusId===void 0||!e.hiddenStatusIds.has(t.statusId))&&He(e.status,t.statusId===void 0?[]:[t.statusId])&&He(e.label,s.length===0?[ie]:s)&&He(e.estimate,[t.estimateId??ie])&&He(e.assignee,[t.assigneeId??ie])},He=(e,t)=>e.size===0||t.some(s=>e.has(s)),C=(e,t,s)=>{const a=typeof s=="string"?s:"",n=typeof t=="string"?t:void 0;return n===void 0?e.toValue(a):e.fromTo(n,a)},pe=(e,t)=>typeof t=="string"?e.afterName(t):e.toFront,ti={SET_ACTIVITY_NAME:(e,t,s)=>({title:e.renameActivity,tone:"update",body:C(e,te(s,t.target.id)?.name,k(v.SET_ACTIVITY_NAME,t).name??"")}),SET_ACTIVITY_ACTOR:(e,t,s)=>{const a=k(v.SET_ACTIVITY_ACTOR,t).actor.trim();return{title:e.changeActivityActor,tone:"update",body:a===""?e.removed(te(s,t.target.id)?.actor??""):C(e,te(s,t.target.id)?.actor,a)}},SET_STEP_NAME:(e,t,s)=>({title:e.renameStep,tone:"update",body:C(e,N(s,t.target.id)?.step.name,k(v.SET_STEP_NAME,t).name??"")}),REORDER_STEP:(e,t)=>({title:e.reorderStep,tone:"move",body:pe(e,k(v.REORDER_STEP,t).after)}),REORDER_ACTIVITY:(e,t,s)=>{const a=k(v.REORDER_ACTIVITY,t).after;return{title:e.reorderActivity,tone:"move",body:pe(e,a===null?null:te(s,a)?.name??a)}},ADD_ACTIVITY:(e,t)=>({title:e.addActivity,tone:"create",body:e.added(String(k(v.ADD_ACTIVITY,t).name??""))}),ADD_STEP:(e,t)=>({title:e.addStep,tone:"create",body:e.added(String(k(v.ADD_STEP,t).name??""))}),DELETE_ACTIVITY:(e,t,s)=>({title:e.deleteActivity,tone:"delete",body:e.removed(te(s,t.target.id)?.name??t.target.id)}),DELETE_STEP:(e,t,s)=>({title:e.deleteStep,tone:"delete",body:e.removed(N(s,t.target.id)?.step.name??t.target.id)}),SET_STORY_NAME:(e,t,s)=>({title:e.renameStory,tone:"update",body:C(e,x(s,t.target.id)?.name,k(v.SET_STORY_NAME,t).name??"")}),SET_STORY_DESCRIPTION:(e,t)=>({title:e.updateStoryDescription,tone:"update",body:e.toValue(String(k(v.SET_STORY_DESCRIPTION,t).description??"").slice(0,90))}),SET_STORY_MILESTONE:(e,t,s)=>{const a=k(v.SET_STORY_MILESTONE,t).milestoneId;return{title:e.changeMilestone,tone:"move",body:a==null?e.toUnassigned:e.toName(P(s,String(a))?.name??String(a))}},MOVE_STORY:(e,t,s)=>({title:e.moveStory,tone:"move",body:e.toName(N(s,String(k(v.MOVE_STORY,t).stepId))?.step.name??String(k(v.MOVE_STORY,t).stepId??""))}),REORDER_STORY:(e,t)=>({title:e.reorderStory,tone:"move",body:pe(e,k(v.REORDER_STORY,t).after)}),ADD_STORY:(e,t)=>({title:e.addStory,tone:"create",body:e.added(String(k(v.ADD_STORY,t).name??""))}),DELETE_STORY:(e,t,s)=>({title:e.deleteStory,tone:"delete",body:e.removed(x(s,t.target.id)?.name??t.target.id)}),SET_MILESTONE_NAME:(e,t,s)=>({title:e.renameMilestone,tone:"update",body:C(e,P(s,t.target.id)?.name,k(v.SET_MILESTONE_NAME,t).name??"")}),ADD_MILESTONE:(e,t)=>({title:e.addMilestone,tone:"create",body:e.added(String(k(v.ADD_MILESTONE,t).name??""))}),DELETE_MILESTONE:(e,t,s)=>({title:e.deleteMilestone,tone:"delete",body:e.removed(P(s,t.target.id)?.name??t.target.id)}),REORDER_MILESTONE:(e,t)=>({title:e.reorderMilestone,tone:"move",body:pe(e,k(v.REORDER_MILESTONE,t).after)}),ADD_STORY_LINK:(e,t)=>{const{url:s,label:a}=k(v.ADD_STORY_LINK,t);return{title:e.addStoryLink,tone:"create",body:e.added(a??Fe(s).title)}},REMOVE_STORY_LINK:(e,t,s)=>{const{url:a}=k(v.REMOVE_STORY_LINK,t),n=x(s,t.target.id)?.links?.find(i=>i.url===a);return{title:e.removeStoryLink,tone:"delete",body:e.removed(n?.label??Fe(a).title)}},ADD_STORY_COMMENT:(e,t)=>({title:e.addStoryComment,tone:"create",body:e.added(k(v.ADD_STORY_COMMENT,t).body)}),DELETE_STORY_COMMENT:(e,t,s)=>{const{commentId:a}=k(v.DELETE_STORY_COMMENT,t),n=x(s,t.target.id)?.comments?.find(i=>i.id===a);return{title:e.deleteStoryComment,tone:"delete",body:e.removed(n?.body??a)}},SET_STORY_STATUS:(e,t,s)=>{const a=k(v.SET_STORY_STATUS,t).statusId;return{title:e.changeStoryStatus,tone:"update",body:e.toName(D(s,a)?.name??a)}},ADD_STATUS:(e,t)=>({title:e.addStatus,tone:"create",body:e.added(k(v.ADD_STATUS,t).name)}),SET_STATUS_NAME:(e,t,s)=>({title:e.renameStatus,tone:"update",body:C(e,D(s,t.target.id)?.name,k(v.SET_STATUS_NAME,t).name)}),SET_STATUS_TONE:(e,t,s)=>{const a=D(s,t.target.id)?.tone,n=k(v.SET_STATUS_TONE,t).tone;return{title:e.changeStatusTone,tone:"update",body:C(e,a===void 0?void 0:e.toneName(a),e.toneName(n))}},SET_STATUS_ICON:(e,t,s)=>{const a=D(s,t.target.id)?.icon,n=k(v.SET_STATUS_ICON,t).icon;return{title:e.changeStatusIcon,tone:"update",body:C(e,a===void 0?void 0:e.iconName(a),e.iconName(n))}},DELETE_STATUS:(e,t,s)=>({title:e.deleteStatus,tone:"delete",body:e.removed(D(s,t.target.id)?.name??t.target.id)}),REORDER_STATUS:(e,t)=>({title:e.reorderStatus,tone:"move",body:pe(e,k(v.REORDER_STATUS,t).after)}),ADD_LABEL:(e,t)=>({title:e.addLabel,tone:"create",body:e.added(k(v.ADD_LABEL,t).name)}),SET_LABEL_NAME:(e,t,s)=>({title:e.renameLabel,tone:"update",body:C(e,Z(s,t.target.id)?.name,k(v.SET_LABEL_NAME,t).name)}),SET_LABEL_TONE:(e,t,s)=>{const a=Z(s,t.target.id)?.tone,n=k(v.SET_LABEL_TONE,t).tone;return{title:e.changeLabelTone,tone:"update",body:C(e,a===void 0?void 0:e.toneName(a),e.toneName(n))}},DELETE_LABEL:(e,t,s)=>({title:e.deleteLabel,tone:"delete",body:e.removed(Z(s,t.target.id)?.name??t.target.id)}),REORDER_LABEL:(e,t)=>({title:e.reorderLabel,tone:"move",body:pe(e,k(v.REORDER_LABEL,t).after)}),ADD_STORY_LABEL:(e,t,s)=>{const a=k(v.ADD_STORY_LABEL,t).labelId;return{title:e.addStoryLabel,tone:"create",body:e.added(Z(s,a)?.name??a)}},REMOVE_STORY_LABEL:(e,t,s)=>{const a=k(v.REMOVE_STORY_LABEL,t).labelId;return{title:e.removeStoryLabel,tone:"delete",body:e.removed(Z(s,a)?.name??a)}},ADD_STORY_BLOCKER:(e,t,s)=>{const a=k(v.ADD_STORY_BLOCKER,t).blockerId;return{title:e.addStoryBlocker,tone:"create",body:e.added(x(s,a)?.name??a)}},REMOVE_STORY_BLOCKER:(e,t,s)=>{const a=k(v.REMOVE_STORY_BLOCKER,t).blockerId;return{title:e.removeStoryBlocker,tone:"delete",body:e.removed(x(s,a)?.name??a)}},SET_MILESTONE_DUE_DATE:(e,t,s)=>{const a=k(v.SET_MILESTONE_DUE_DATE,t).dueDate;return{title:e.changeMilestoneDueDate,tone:a===null?"delete":"update",body:a===null?e.noDueDate:C(e,P(s,t.target.id)?.dueDate,a)}},SET_STATUS_WEIGHT:(e,t,s)=>{const a=D(s,t.target.id)?.weight,n=k(v.SET_STATUS_WEIGHT,t).weight;return{title:e.changeStatusWeight,tone:"update",body:C(e,a===void 0?void 0:String(a),String(n))}},SET_DONE_STATUS:(e,t,s)=>({title:e.setDoneStatus,tone:"update",body:C(e,ts(s)?.name,D(s,t.target.id)?.name??t.target.id)}),SET_MEASURE:(e,t,s)=>({title:e.setMeasure,tone:"update",body:C(e,e.measureName(ge(s)),e.measureName(k(v.SET_MEASURE,t).measure))}),ADD_MEMBER:(e,t)=>({title:e.addMember,tone:"create",body:e.added(k(v.ADD_MEMBER,t).name)}),SET_MEMBER_NAME:(e,t,s)=>({title:e.renameMember,tone:"update",body:C(e,K(s,t.target.id)?.name,k(v.SET_MEMBER_NAME,t).name)}),SET_MEMBER_TONE:(e,t,s)=>{const a=K(s,t.target.id)?.tone,n=k(v.SET_MEMBER_TONE,t).tone;return{title:e.changeMemberTone,tone:"update",body:C(e,a===void 0?void 0:e.toneName(a),e.toneName(n))}},DELETE_MEMBER:(e,t,s)=>({title:e.deleteMember,tone:"delete",body:e.removed(K(s,t.target.id)?.name??t.target.id)}),REORDER_MEMBER:(e,t)=>({title:e.reorderMember,tone:"move",body:pe(e,k(v.REORDER_MEMBER,t).after)}),SET_STORY_ASSIGNEE:(e,t,s)=>{const a=k(v.SET_STORY_ASSIGNEE,t).memberId;if(a===null){const n=K(s,x(s,t.target.id)?.assigneeId);return{title:e.setStoryAssignee,tone:"delete",body:e.removed(n?.name??e.noAssignee)}}return{title:e.setStoryAssignee,tone:"update",body:e.toValue(K(s,a)?.name??a)}},ADD_ESTIMATE:(e,t)=>{const{name:s,points:a}=k(v.ADD_ESTIMATE,t);return{title:e.addEstimate,tone:"create",body:e.added(e.estimateText(s,a))}},SET_ESTIMATE_NAME:(e,t,s)=>({title:e.renameEstimate,tone:"update",body:C(e,F(s,t.target.id)?.name,k(v.SET_ESTIMATE_NAME,t).name)}),SET_ESTIMATE_POINTS:(e,t,s)=>{const a=F(s,t.target.id)?.points,n=k(v.SET_ESTIMATE_POINTS,t).points;return{title:e.changeEstimatePoints,tone:"update",body:C(e,a===void 0?void 0:String(a),String(n))}},DELETE_ESTIMATE:(e,t,s)=>({title:e.deleteEstimate,tone:"delete",body:e.removed(F(s,t.target.id)?.name??t.target.id)}),REORDER_ESTIMATE:(e,t)=>({title:e.reorderEstimate,tone:"move",body:pe(e,k(v.REORDER_ESTIMATE,t).after)}),SET_STORY_ESTIMATE:(e,t,s)=>{const a=k(v.SET_STORY_ESTIMATE,t).estimateId;return a===null?{title:e.setStoryEstimate,tone:"delete",body:e.toValue(e.unestimated)}:{title:e.setStoryEstimate,tone:"update",body:e.toValue(F(s,a)?.name??a)}},RECORD_SNAPSHOT:(e,t)=>{const{at:s,tally:a}=k(v.RECORD_SNAPSHOT,t),n=a.reduce((i,o)=>i+o.stories,0);return{title:e.recordSnapshot,tone:"create",body:e.snapshotSummary(ue(s),n)}},DELETE_SNAPSHOT:(e,t,s)=>{const a=Ee(s,t.target.id);return{title:e.deleteSnapshot,tone:"delete",body:e.removed(a?ue(a.at):t.target.id)}},SET_FEATURE:(e,t)=>{const{feature:s,enabled:a}=k(v.SET_FEATURE,t);return{title:a?e.enableFeature:e.disableFeature,tone:a?"create":"delete",body:e.featureName(s)}}},xs=(e,t,s,a)=>{let n;try{const i=ti[t.type];n=i?i(e,t,a??s):{title:t.type,tone:"meta"}}catch{n={title:t.type,tone:"meta"}}return{title:n.title,targetLabel:_s(e,s,t.target),tone:n.tone,...n.body===void 0?{}:{summary:n.body}}},Ts=e=>`${e.type} ${I(e.target)} ${JSON.stringify(e.payload)}`,_s=(e,t,s)=>{try{switch(s.type){case"activity":{const a=te(t,s.id);return a?e.targetLabel(e.activityGroup,a.name):e.targetMissing(e.activityGroup,s.id)}case"step":{const a=N(t,s.id)?.step;return a?e.targetLabel(e.stepGroup,a.name):e.targetMissing(e.stepGroup,s.id)}case"story":{const a=x(t,s.id);return a?e.targetLabel(e.storyGroup,a.name):e.targetMissing(e.storyGroup,s.id)}case"milestone":{const a=P(t,s.id);return a?e.targetLabel(e.milestoneGroup,a.name):e.targetMissing(e.milestoneGroup,s.id)}case"status":{const a=D(t,s.id);return a?e.targetLabel(e.statusGroup,a.name):e.targetMissing(e.statusGroup,s.id)}case"label":{const a=Z(t,s.id);return a?e.targetLabel(e.labelGroup,a.name):e.targetMissing(e.labelGroup,s.id)}case"member":{const a=K(t,s.id);return a?e.targetLabel(e.memberGroup,a.name):e.targetMissing(e.memberGroup,s.id)}case"estimate":{const a=F(t,s.id);return a?e.targetLabel(e.estimateGroup,a.name):e.targetMissing(e.estimateGroup,s.id)}case"snapshot":{const a=Ee(t,s.id);return a?e.targetLabel(e.snapshotGroup,ue(a.at)):e.targetMissing(e.snapshotGroup,s.id)}case"page":return e.targetLabel(e.mapGroup,gt(t));default:return`${s.type} \xB7 ${s.id}`}}catch{return`${s.type} \xB7 ${s.id}`}},Is=(e,t,s)=>{const a=[{value:"page:usm",label:e.wholeMap,group:e.mapGroup}];for(const n of t.activities){a.push({value:I({type:"activity",id:n.id}),label:n.name,group:e.activityGroup});for(const i of n.steps)a.push({value:I({type:"step",id:ce(n.id,i.id)}),label:`${n.name} \u203A ${i.name}`,group:e.stepGroup})}for(const n of t.milestones)a.push({value:I({type:"milestone",id:n.id}),label:n.name,group:e.milestoneGroup});for(const n of t.statuses)a.push({value:I({type:"status",id:n.id}),label:n.name,group:e.statusGroup});for(const n of t.labels)a.push({value:I({type:"label",id:n.id}),label:n.name,group:e.labelGroup});for(const n of t.members)a.push({value:I({type:"member",id:n.id}),label:n.name,group:e.memberGroup});for(const n of t.estimates)a.push({value:I({type:"estimate",id:n.id}),label:e.estimateText(n.name,n.points),group:e.estimateGroup});for(const n of t.snapshots)a.push({value:I({type:"snapshot",id:n.id}),label:ue(n.at),group:e.snapshotGroup});for(const n of t.stories)a.push({value:I({type:"story",id:n.id}),label:n.name,group:e.storyGroup});return a},As=(e,t,s)=>{const a=t.stories.find(n=>n.id===s.story);if(a)return{value:I({type:"story",id:a.id}),label:a.name,group:e.storyGroup};for(const n of t.activities){const i=n.steps.find(o=>o.id===s.step);if(i)return{value:I({type:"step",id:ce(n.id,i.id)}),label:i.name,group:e.stepGroup}}return null},gt=e=>e.title??"User Story Mapping",si=(e,t)=>{switch(t.type){case"story":{const s=x(e,t.id);return{tab:null,highlight:null,...Object.fromEntries(xe.map(a=>[a,null])),...s&&$e(e,s)?{[oe.key]:oe.value}:{}}}case"step":case"activity":return{tab:null,view:null};case"milestone":return{tab:"milestones"};case"status":case"label":case"member":return null;case"estimate":case"snapshot":return z(e,"estimates")?{tab:"burndown"}:null;default:return null}},Ms=(e,t)=>{const s=N(e,t.step),a=s?.activity??te(e,t.activity)??e.activities[0],n=s?.step??a?.steps.find(m=>m.id===t.step)??a?.steps[0],i=Bn(e,t.story),o={...t};a?o.activity=a.id:delete o.activity,n?o.step=n.id:delete o.step,i?o.story=i.id:delete o.story,o.view=t.view==="group"?"group":"activity";const r=Ge(e,t);for(const m of xe){const y=Es(e,m,r[m]);y===null?delete o[m]:o[m]=y}t[oe.key]!==oe.value&&delete o[oe.key];const d=ys(e,t);d==="map"?delete o.tab:o.tab=d,P(e,t.milestone)||delete o.milestone;const p=Ve(t);return p===null?delete o.highlight:o.highlight=p,o},Ls=(e,t)=>{switch(t.type){case"activity":return te(e,t.id)!==void 0;case"step":return N(e,t.id)!==void 0;case"story":return x(e,t.id)!==void 0;case"milestone":return P(e,t.id)!==void 0;case"status":return D(e,t.id)!==void 0;case"label":return Z(e,t.id)!==void 0;case"member":return K(e,t.id)!==void 0;case"estimate":return F(e,t.id)!==void 0;case"snapshot":return Ee(e,t.id)!==void 0;case"page":return!0;default:return!1}},Ds=e=>{const t=ne(e);return{kind:"view",name:"usm",label:"User Story Mapping",parseBase:Xt,emptyBase:lt,actions:v,apply:ps,canonicalState:Mn,hasTarget:Ls,canonicalTarget:(s,a)=>{if(a.type!=="step")return a;const n=N(s,a.id);return n?{...a,id:ce(n.activity.id,n.step.id)}:a},describe:(s,a,n)=>xs(t,s,a,n),serialize:Ts,resolveNavigation:Ms,navigationFor:si,commentTargets:(s,a)=>Is(t,s),currentTarget:(s,a)=>As(t,s,a),settings:s=>({items:Ne.map(a=>{const n=z(s,a);return{key:a,label:t.featureName(a),hint:t.featureHint(a),on:n,toggle:{type:"SET_FEATURE",target:{type:"page",id:"usm"},payload:{feature:a,enabled:!n}}}}),note:t.featuresNote}),title:gt}},Rs=.5,ai=({widths:e,available:t,gap:s,moreWidth:a,keep:n})=>{if(e.reduce((m,y)=>m+y,0)+s*Math.max(0,e.length-1)<=t+Rs)return[];const o=t-a+Rs,r=new Set;let d=0;const p=m=>{d+=(r.size===0?0:s)+(e[m]??0),r.add(m)};n>=0&&n<e.length&&p(n);for(const[m,y]of e.entries())if(!r.has(m)){if(d+(r.size===0?0:s)+y>o)break;p(m)}return e.flatMap((m,y)=>r.has(y)?[]:[y])},Os=new Set;class ni{#t;#e;#n=Os;#i=0;#a=null;#s=null;constructor(t,s){this.#t=t,this.#e=s,t.addController(this)}get hidden(){return this.#n}get minimum(){return this.#i}hostConnected(){typeof ResizeObserver>"u"||(this.#a=new ResizeObserver(()=>this.#o()))}hostUpdated(){const t=this.#e.row();t!==this.#s&&(this.#s&&this.#a?.unobserve(this.#s),t&&this.#a?.observe(t),this.#s=t),this.#o()}hostDisconnected(){this.#a?.disconnect(),this.#a=null,this.#s=null}#o(){const t=this.#e.row();if(!t)return;const s=this.#e.items(t),a=s.map(E=>E.getBoundingClientRect().width),n=s.findIndex(E=>this.#e.kept(E)),i=s[0]?.parentElement,o=i?Ns(i):0,r=this.#e.more(t),d=r?r.getBoundingClientRect().width+Ns(t):0,p=ai({widths:a,available:t.getBoundingClientRect().width,gap:o,moreWidth:d,keep:n}),m=new Set(p.flatMap(E=>{const S=s[E];return S?[this.#e.keyOf(S)]:[]})),y=Math.ceil((a[n]??0)+d);ii(m,this.#n)&&y===this.#i||(this.#n=m.size===0?Os:m,this.#i=y,this.#t.requestUpdate())}}const Ns=e=>Number.parseFloat(getComputedStyle(e).columnGap)||0,ii=(e,t)=>e.size===t.size&&[...e].every(s=>t.has(s)),ft=1440*60*1e3,oi=48,ri=8,di=(e,t,s,a)=>{const n={left:a.inset.left,top:a.inset.top,right:a.width-a.inset.right,bottom:a.height-a.inset.bottom},i=[...e.map($=>$.at),s,...t===null?[]:[t]];let o=Math.min(...i),r=Math.max(...i);r-o<ft&&(o-=ft/2,r+=ft/2);const d=li(Math.max(0,...e.map($=>$.value))),p=d.at(-1)??1,m=$=>n.left+($-o)/(r-o)*(n.right-n.left),y=$=>n.bottom-$/p*(n.bottom-n.top),E=e.map($=>({x:m($.at),y:y($.value),at:$.at,value:$.value,...$.snapshotId===void 0?{}:{snapshotId:$.snapshotId}})),S=E[0],A=ci(o,r,Math.floor((n.right-n.left)/oi));return{size:a,plot:n,line:E.map($=>`${Te($.x)},${Te($.y)}`).join(" "),dots:E,ideal:t===null||!S?null:{x1:S.x,y1:S.y,x2:m(t),y2:y(0)},nowX:m(s),dueX:t===null?null:m(t),yTicks:d.map($=>({y:y($),value:$})),valueTop:p,xUnit:A.unit,xTicks:A.ats.map($=>({x:m($),at:$})),domain:{start:o,end:r},idealSpan:t===null||!S?null:{at:S.at,value:S.value,due:t}}},li=e=>{const t=pi(e/4),s=Math.max(1,Math.ceil(e/t));return Array.from({length:s+1},(a,n)=>n*t)},pi=e=>{if(e<=1)return 1;const t=10**Math.floor(Math.log10(e));return([1,2,2.5,5,10].find(a=>Number.isInteger(a*t)&&a*t>=e)??10)*t},Te=e=>Math.round(e*100)/100,ci=(e,t,s)=>{const a=Math.max(1,s),n=["day","week","biweek","month","quarter"];for(const i of n){const o=Cs(i,e,t,a);if(o!==null)return{unit:i,ats:o}}return{unit:"year",ats:Cs("year",e,t,1/0)??[]}},Cs=(e,t,s,a)=>{const n=[];for(let i=ui(e,t);i<=s;i=mi(e,i)){if(n.length===a)return null;n.push(i)}return n},ui=(e,t)=>{const s=new Date(t),[a,n,i]=[s.getFullYear(),s.getMonth(),s.getDate()],o=(r,d)=>r.getTime()>=t?r.getTime():d().getTime();switch(e){case"day":return o(new Date(a,n,i),()=>new Date(a,n,i+1));case"week":case"biweek":{const r=o(new Date(a,n,i),()=>new Date(a,n,i+1)),d=new Date(r),p=(8-d.getDay())%7;return new Date(d.getFullYear(),d.getMonth(),d.getDate()+p).getTime()}case"month":return o(new Date(a,n,1),()=>new Date(a,n+1,1));case"quarter":{const r=n-n%3;return o(new Date(a,r,1),()=>new Date(a,r+3,1))}case"year":return o(new Date(a,0,1),()=>new Date(a+1,0,1))}},mi=(e,t)=>{const s=new Date(t),[a,n,i]=[s.getFullYear(),s.getMonth(),s.getDate()],o={day:1,week:7,biweek:14},r={month:1,quarter:3,year:12};return e==="day"||e==="week"||e==="biweek"?new Date(a,n,i+o[e]).getTime():new Date(a,n+r[e],1).getTime()},Bs=(e,t)=>{const{plot:s,domain:a,dots:n}=e,i=Math.min(s.right,Math.max(s.left,t)),o=n.reduce((E,S)=>E===null||Math.abs(S.x-i)<Math.abs(E.x-i)?S:E,null),r=o!==null&&Math.abs(o.x-i)<=ri?o:null,d=r?.at??a.start+(i-s.left)/(s.right-s.left)*(a.end-a.start),p=r?.value??hi(n,d),m=bi(e,d),y=E=>E===null?null:Te(s.bottom-E/e.valueTop*(s.bottom-s.top));return{x:r?.x??i,at:d,actual:p,ideal:m,actualY:y(p),idealY:y(m),dot:r}},hi=(e,t)=>{const s=e.findIndex(i=>i.at>=t),a=e[s];if(!a)return null;if(a.at===t)return a.value;const n=e[s-1];return n?Te(n.value+(a.value-n.value)*(t-n.at)/(a.at-n.at)):null},bi=(e,t)=>{const s=e.idealSpan;return s===null||t<s.at||t>s.due?null:Te(s.value*(s.due-t)/(s.due-s.at))},M=e=>`--usm-tone: var(--dpk-${e==null||e==="gray"?"ink-faint":e})`,Us={circle:O(rn),lightbulb:O(un),flag:O(cn),play:O(nn),clock:O(dn),eye:O(pn),pause:O(an),check:O(tn),x:O(on)},gi=O(sn),fi=e=>{if(e>=1)return Us.check();const t=2*Math.PI*4.5;return l`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
1
+ import{ax as f,bj as _a,ac as h,av as K,aU as we,a$ as Je,ad as Se,az as _e,bi as St,bD as Ia,aV as Et,bk as Aa,bE as $t,au as Ma,aL as _,ay as w,aw as F,aa as Y,aM as R,aN as Ie,p as b,a8 as Tt,a9 as g,t as ee,aO as G,aB as La,N as Da,e as Ra,a5 as Oa,S as I,P as k,b0 as O,ah as q,as as l,ai as u,aj as Z,ak as Ae,al as Qe,l as J,aH as B,aP as Q,I as et,X as Na,ag as xt,aE as _t,j as Ca,aW as Me,bm as Ba,bn as Ya,bp as Ua,z as It,aS as Le,H as Pa,bF as At,bG as za,bc as De,bH as Fa,y as tt,bd as Ga,V as Mt,aF as Lt,aG as st,aT as Va,aK as Ha,bI as Ka}from"./shared-B8ZhyjWv.js";import{h as qa,d as Re,l as Dt,a as Rt}from"./shared-Be43xweD.js";import{a as Ot,c as Wa}from"./shared-Dn92ukYW.js";import{w as Nt,C as Ct,h as Bt,q as Yt,r as Ut,g as Pt,a as ja,x as Xa}from"./shared-Dd8JfvQe.js";import{L as Za}from"./shared-CjW1DhGL.js";import{o as Oe}from"./shared-LHG2FbnK.js";const Ja=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16 9-5.5 5.5L8 12"}]],Qa=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"}]],en=[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9"}]],tn=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z"}],["circle",{cx:"12",cy:"12",r:"10"}]],sn=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m15 9-6 6"}],["path",{d:"m9 9 6 6"}]],an=[["circle",{cx:"12",cy:"12",r:"10"}]],nn=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6l4 2"}]],on=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]],rn=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}],["circle",{cx:"12",cy:"12",r:"3"}]],dn=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528"}]],ln=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"}],["path",{d:"M9 18h6"}],["path",{d:"M10 22h4"}]],pn=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}],["path",{d:"M12 12V8"}]],cn=[["circle",{cx:"6",cy:"19",r:"3"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15"}],["circle",{cx:"18",cy:"5",r:"3"}]],un=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor"}]],mn=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}],["path",{d:"M12 9v4"}],["path",{d:"M12 17h.01"}]],zt=e=>new Map(e.map(t=>[t.id,t.blockedBy??[]])),at=(e,t,s)=>{const a=zt(e),n=new Set,i=[...a.get(t)??[]];for(;i.length>0;){const o=i.pop();if(!(o===void 0||n.has(o))){if(o===s)return!0;n.add(o),i.push(...a.get(o)??[])}}return!1},hn=e=>{const t=zt(e),s=new Set,a=(n,i)=>{const o=i.indexOf(n);if(o>=0)return[...i.slice(o),n];if(s.has(n))return null;for(const r of t.get(n)??[]){const d=a(r,[...i,n]);if(d)return d}return s.add(n),null};for(const n of e){const i=a(n.id,[]);if(i)return i}return null},Ne=["gray","blue","violet","green","amber","accent"],Ft=["progress","circle","lightbulb","flag","play","clock","eye","pause","check","x"],Ce=["estimates","assignees"],Gt=["stories","points","weighted"],Vt=f(h(),Ia(),St(e=>{const[t=0,s=0,a=0]=e.split("-").map(Number),n=new Date(Date.UTC(t,s-1,a));return n.getUTCMonth()===s-1&&n.getUTCDate()===a},"a due date must be a calendar day")),Ht=f(Se(),Je(),we(0)),nt=f(Se(),Je(),we(0)),Kt=K({milestoneId:_(f(h(),w(1))),statusId:_(f(h(),w(1))),stories:f(Se(),Et(),we(0)),points:f(Se(),Je(),we(0))}),Be=f(h(),_a()),bn=K({id:f(h(),w(1)),name:f(h(),w(1)),questions:Ie}),gn=K({id:R,name:f(h(),w(1)),actor:_(h()),steps:F(Y(bn),[]),questions:Ie}),fn=K({id:f(h(),w(1)),name:f(h(),w(1)),timeframe:_(h()),description:_(h()),dueDate:_(Vt),questions:Ie}),ae=_e(Ne),it=_e(Ft),ot=qa,yn=K({url:ot,label:_(f(h(),w(1)))}),vn=K({id:R,name:f(h(),w(1)),tone:F(ae),icon:F(it),weight:_(Ht)}),kn=K({id:R,name:f(h(),w(1)),tone:F(ae)}),qt=f(h(),St(e=>e.trim()!=="","a comment needs some text")),wn=K({id:R,body:qt,createdAt:_(Be)}),Wt=f(Se(),Et(),we(1)),Sn=K({id:R,number:_(Wt),name:f(h(),w(1)),description:_(h()),activityId:f(h(),w(1)),stepId:f(h(),w(1)),milestoneId:_(h()),statusId:_(h()),links:_(Y(yn)),labelIds:_(Y(f(h(),w(1)))),blockedBy:_(Y(f(h(),w(1)))),estimateId:_(f(h(),w(1))),assigneeId:_(f(h(),w(1))),comments:_(Y(wn)),questions:Ie}),En=K({id:R,name:f(h(),w(1)),tone:F(ae)}),jt=_e(Ce),Xt=_e(Gt),$n=K({id:R,name:f(h(),w(1)),points:nt}),Tn=K({id:R,at:Be,tally:Y(Kt)}),xn=K({title:_(h()),features:F(Y(jt),[]),measure:_(Xt),doneStatusId:_(f(h(),w(1))),activities:F(Y(gn),[]),milestones:F(Y(fn),[]),statuses:F(Y(vn),[]),labels:F(Y(kn),[]),members:F(Y(En),[]),estimates:F(Y($n),[]),stories:F(Y(Sn),[]),snapshots:F(Y(Tn),[])}),rt=e=>Ne[e%Ne.length]??"gray",Ye=e=>rt(e+1),Zt=e=>{const t=Ma(xn,e);if(new Set(t.features).size!==t.features.length)throw new Error("the base turns a feature on twice");const s=t.statuses[0]?.id,a=t.stories.flatMap(c=>c.number===void 0?[]:[c.number]),n=a.find((c,x)=>a.indexOf(c)!==x);if(n!==void 0)throw new Error(`two stories share the number ${n}`);let i=Math.max(0,...a);const o={...t,stories:t.stories.map(c=>({...c,number:c.number??++i,...s===void 0||c.statusId!==void 0?{}:{statusId:s}})),statuses:t.statuses.map((c,x)=>({...c,tone:c.tone??rt(x),icon:c.icon??"progress"})),labels:t.labels.map((c,x)=>({...c,tone:c.tone??Ye(x)})),members:t.members.map((c,x)=>({...c,tone:c.tone??Ye(x)})),features:Ce.filter(c=>t.features.includes(c))},r=new Map;for(const c of o.activities)for(const x of c.steps)r.set(x.id,c.id);const d=new Set(o.milestones.map(c=>c.id)),p=new Set(o.statuses.map(c=>c.id)),m=new Set(o.labels.map(c=>c.id));if(o.doneStatusId!==void 0&&!p.has(o.doneStatusId))throw new Error(`the base references unknown doneStatusId "${o.doneStatusId}"`);const y=new Set,E=(c,x)=>{if(y.has(x))throw new Error(`duplicate id "${x}" in ${c}`);y.add(x)};for(const c of o.activities){E("activities",c.id);for(const x of c.steps)E("steps",x.id)}for(const c of o.milestones)E("milestones",c.id);for(const c of o.statuses)E("statuses",c.id);for(const c of o.labels)E("labels",c.id);for(const c of o.members)E("members",c.id);for(const c of o.estimates)E("estimates",c.id);for(const c of o.snapshots)E("snapshots",c.id);const S=new Set(o.estimates.map(c=>c.id)),A=new Set(o.members.map(c=>c.id));for(const c of o.stories){E("stories",c.id);for(const ke of c.comments??[])E("story comments",ke.id);const x=r.get(c.stepId);if(x===void 0||x!==c.activityId)throw new Error(`story "${c.id}" references unknown activityId/stepId`);if(c.milestoneId!==void 0&&!d.has(c.milestoneId))throw new Error(`story "${c.id}" references unknown milestoneId "${c.milestoneId}"`);const ye=(c.links??[]).map(ke=>ke.url);if(new Set(ye).size!==ye.length)throw new Error(`story "${c.id}" links the same URL twice`);if(c.statusId!==void 0&&!p.has(c.statusId))throw new Error(`story "${c.id}" references unknown statusId "${c.statusId}"`);const ve=c.labelIds??[];if(new Set(ve).size!==ve.length)throw new Error(`story "${c.id}" has a label twice`);const wt=ve.find(ke=>!m.has(ke));if(wt!==void 0)throw new Error(`story "${c.id}" references unknown labelId "${wt}"`);if(c.estimateId!==void 0&&!S.has(c.estimateId))throw new Error(`story "${c.id}" references unknown estimateId "${c.estimateId}"`);if(c.assigneeId!==void 0&&!A.has(c.assigneeId))throw new Error(`story "${c.id}" references unknown assigneeId "${c.assigneeId}"`)}for(const c of o.snapshots){const x=Jt(o,c.tally);if(x!==null)throw new Error(`snapshot "${c.id}" ${x}`)}const $=new Set(o.stories.map(c=>c.id));for(const c of o.stories){const x=c.blockedBy??[];if(x.includes(c.id))throw new Error(`story "${c.id}" is blocked by itself`);if(new Set(x).size!==x.length)throw new Error(`story "${c.id}" has a blocker twice`);const ye=x.find(ve=>!$.has(ve));if(ye!==void 0)throw new Error(`story "${c.id}" references unknown blocker "${ye}"`)}const L=hn(o.stories);if(L!==null)throw new Error(`stories block one another in a cycle: ${L.join(" \u2192 ")}`);return o},Jt=(e,t)=>{const s=new Set;for(const a of t){if(a.milestoneId!==void 0&&!U(e,a.milestoneId))return`references unknown milestoneId "${a.milestoneId}"`;if(a.statusId!==void 0&&!D(e,a.statusId))return`references unknown statusId "${a.statusId}"`;const n=Ue(a);if(s.has(n))return`tallies "${n}" twice`;s.add(n)}return null},Ue=e=>`${e.milestoneId??""}/${e.statusId??""}`,dt=()=>({features:[],activities:[],milestones:[],statuses:[],labels:[],members:[],estimates:[],stories:[],snapshots:[]}),te=(e,t)=>{if(t!==void 0)return e.activities.find(s=>s.id===t)},ce=(e,t)=>`${e}.${t}`,N=(e,t)=>{if(t===void 0)return;const s=Aa(t,2);if(s){const[a,n]=s;if(a===void 0||n===void 0)return;const i=e.activities.find(r=>r.id===a),o=i?.steps.find(r=>r.id===n);return i&&o?{activity:i,step:o}:void 0}if(!t.includes("."))for(const a of e.activities){const n=a.steps.find(i=>i.id===t);if(n)return{activity:a,step:n}}},U=(e,t)=>{if(t!==void 0)return e.milestones.find(s=>s.id===t)},D=(e,t)=>{if(t!==void 0)return e.statuses.find(s=>s.id===t)},X=(e,t)=>{if(t!==void 0)return e.labels.find(s=>s.id===t)},P=(e,t)=>e.features.includes(t),V=(e,t)=>{if(t!==void 0)return e.members.find(s=>s.id===t)},lt=(e,t)=>V(e,t.assigneeId),z=(e,t)=>{if(t!==void 0)return e.estimates.find(s=>s.id===t)},Ee=(e,t)=>{if(t!==void 0)return e.snapshots.find(s=>s.id===t)},pt=(e,t)=>{const s=new Set(t.labelIds??[]);return e.labels.filter(a=>s.has(a.id))},T=(e,t)=>{if(t!==void 0)return e.stories.find(s=>s.id===t)},Pe=e=>e.activities.flatMap(t=>t.steps.map(s=>({activity:t,step:s}))),_n=e=>({...e,stories:$t(e.stories,[t=>`${t.activityId}/${t.stepId}/${t.milestoneId??""}`])}),ze=(e,t,s)=>e.stories.filter(a=>a.stepId===t&&(a.milestoneId??void 0)===s),Qt=(e,t,s)=>e.stories.filter(a=>a.activityId===t&&(a.milestoneId??void 0)===s),W=e=>[...e.activities.map(t=>t.id),...e.activities.flatMap(t=>t.steps.map(s=>s.id)),...e.milestones.map(t=>t.id),...e.statuses.map(t=>t.id),...e.labels.map(t=>t.id),...e.members.map(t=>t.id),...e.estimates.map(t=>t.id),...e.stories.map(t=>t.id),...e.stories.flatMap(t=>(t.comments??[]).map(s=>s.id)),...e.snapshots.map(t=>t.id)],es=(e,t)=>e.stories.filter(s=>s.stepId===t).length,ts=g({feature:jt,enabled:La()}),v={SET_ACTIVITY_NAME:b("SET_ACTIVITY_NAME","activity",g({name:f(h(),w(1))})),SET_ACTIVITY_ACTOR:b("SET_ACTIVITY_ACTOR","activity",g({actor:h()})),SET_STEP_NAME:b("SET_STEP_NAME","step",g({name:f(h(),w(1))})),REORDER_STEP:b("REORDER_STEP","step",g({after:G(h())}),{mode:"sequence"}),REORDER_ACTIVITY:b("REORDER_ACTIVITY","activity",g({after:G(h())}),{mode:"sequence"}),ADD_ACTIVITY:b("ADD_ACTIVITY","page",g({id:R,name:f(h(),w(1))}),{dedupeKey:ee}),ADD_STEP:b("ADD_STEP","activity",g({id:R,name:f(h(),w(1))}),{dedupeKey:ee}),DELETE_ACTIVITY:b("DELETE_ACTIVITY","activity",g({})),DELETE_STEP:b("DELETE_STEP","step",g({})),SET_STORY_NAME:b("SET_STORY_NAME","story",g({name:f(h(),w(1))})),SET_STORY_DESCRIPTION:b("SET_STORY_DESCRIPTION","story",g({description:h()})),SET_STORY_MILESTONE:b("SET_STORY_MILESTONE","story",g({milestoneId:G(h())})),MOVE_STORY:b("MOVE_STORY","story",g({activityId:f(h(),w(1)),stepId:f(h(),w(1)),milestoneId:G(h()),after:G(h())}),{mode:"sequence"}),REORDER_STORY:b("REORDER_STORY","story",g({after:G(h())}),{mode:"sequence"}),ADD_STORY:b("ADD_STORY","step",g({id:R,name:f(h(),w(1)),activityId:f(h(),w(1)),milestoneId:_(h()),number:_(Wt)}),{dedupeKey:ee}),DELETE_STORY:b("DELETE_STORY","story",g({})),ADD_STORY_LINK:b("ADD_STORY_LINK","story",g({url:ot,label:_(f(h(),w(1)))})),REMOVE_STORY_LINK:b("REMOVE_STORY_LINK","story",g({url:h()})),ADD_STORY_COMMENT:b("ADD_STORY_COMMENT","story",g({id:R,body:qt,createdAt:_(Be)}),{dedupeKey:ee}),DELETE_STORY_COMMENT:b("DELETE_STORY_COMMENT","story",g({commentId:f(h(),w(1))})),SET_STORY_STATUS:b("SET_STORY_STATUS","story",g({statusId:f(h(),w(1))})),SET_MILESTONE_NAME:b("SET_MILESTONE_NAME","milestone",g({name:f(h(),w(1))})),ADD_MILESTONE:b("ADD_MILESTONE","page",g({id:R,name:f(h(),w(1))}),{dedupeKey:ee}),DELETE_MILESTONE:b("DELETE_MILESTONE","milestone",g({})),REORDER_MILESTONE:b("REORDER_MILESTONE","milestone",g({after:G(h())}),{mode:"sequence"}),SET_MILESTONE_DUE_DATE:b("SET_MILESTONE_DUE_DATE","milestone",g({dueDate:G(Vt)})),ADD_STATUS:b("ADD_STATUS","page",g({id:R,name:f(h(),w(1)),tone:ae,icon:_(it)}),{dedupeKey:ee}),SET_STATUS_NAME:b("SET_STATUS_NAME","status",g({name:f(h(),w(1))})),SET_STATUS_TONE:b("SET_STATUS_TONE","status",g({tone:ae})),SET_STATUS_ICON:b("SET_STATUS_ICON","status",g({icon:it})),SET_STATUS_WEIGHT:b("SET_STATUS_WEIGHT","status",g({weight:Ht})),SET_MEASURE:b("SET_MEASURE","page",g({measure:Xt})),SET_DONE_STATUS:b("SET_DONE_STATUS","status",g({})),DELETE_STATUS:b("DELETE_STATUS","status",g({})),REORDER_STATUS:b("REORDER_STATUS","status",g({after:G(h())}),{mode:"sequence"}),ADD_LABEL:b("ADD_LABEL","page",g({id:R,name:f(h(),w(1)),tone:ae}),{dedupeKey:ee}),SET_LABEL_NAME:b("SET_LABEL_NAME","label",g({name:f(h(),w(1))})),SET_LABEL_TONE:b("SET_LABEL_TONE","label",g({tone:ae})),DELETE_LABEL:b("DELETE_LABEL","label",g({})),REORDER_LABEL:b("REORDER_LABEL","label",g({after:G(h())}),{mode:"sequence"}),ADD_STORY_LABEL:b("ADD_STORY_LABEL","story",g({labelId:f(h(),w(1))})),REMOVE_STORY_LABEL:b("REMOVE_STORY_LABEL","story",g({labelId:f(h(),w(1))})),ADD_STORY_BLOCKER:b("ADD_STORY_BLOCKER","story",g({blockerId:f(h(),w(1))})),REMOVE_STORY_BLOCKER:b("REMOVE_STORY_BLOCKER","story",g({blockerId:f(h(),w(1))})),ADD_MEMBER:b("ADD_MEMBER","page",g({id:R,name:f(h(),w(1)),tone:ae}),{dedupeKey:ee}),SET_MEMBER_NAME:b("SET_MEMBER_NAME","member",g({name:f(h(),w(1))})),SET_MEMBER_TONE:b("SET_MEMBER_TONE","member",g({tone:ae})),DELETE_MEMBER:b("DELETE_MEMBER","member",g({})),REORDER_MEMBER:b("REORDER_MEMBER","member",g({after:G(h())}),{mode:"sequence"}),SET_STORY_ASSIGNEE:b("SET_STORY_ASSIGNEE","story",g({memberId:G(f(h(),w(1)))})),ADD_ESTIMATE:b("ADD_ESTIMATE","page",g({id:R,name:f(h(),w(1)),points:nt}),{dedupeKey:ee}),SET_ESTIMATE_NAME:b("SET_ESTIMATE_NAME","estimate",g({name:f(h(),w(1))})),SET_ESTIMATE_POINTS:b("SET_ESTIMATE_POINTS","estimate",g({points:nt})),DELETE_ESTIMATE:b("DELETE_ESTIMATE","estimate",g({})),REORDER_ESTIMATE:b("REORDER_ESTIMATE","estimate",g({after:G(h())}),{mode:"sequence"}),SET_STORY_ESTIMATE:b("SET_STORY_ESTIMATE","story",g({estimateId:G(f(h(),w(1)))})),RECORD_SNAPSHOT:b("RECORD_SNAPSHOT","page",g({id:R,at:Be,tally:Y(Kt)}),{dedupeKey:ee}),DELETE_SNAPSHOT:b("DELETE_SNAPSHOT","snapshot",g({})),SET_FEATURE:b("SET_FEATURE","page",ts,{dedupeKey:e=>{const t=Tt(ts,e.payload);return`SET_FEATURE|${t.success?t.output.feature:JSON.stringify(e.payload)}`}})},In={setActivityName:(e,t)=>({type:"SET_ACTIVITY_NAME",target:{type:"activity",id:e},payload:{name:t}}),setStepName:(e,t)=>({type:"SET_STEP_NAME",target:{type:"step",id:e},payload:{name:t}})},be=e=>{const t=e.statuses.findIndex(s=>s.id===e.doneStatusId);return t>=0?t:e.statuses.length-1},ss=e=>e.statuses[be(e)],as=(e,t)=>{if(t===void 0)return!1;const s=e.statuses.findIndex(a=>a.id===t);return s>=0&&s>=be(e)},ns=e=>e.statuses.slice(0,be(e)+1),An=(e,t)=>e.milestones.find(s=>s.id===t.milestone)??e.milestones.find(s=>s.dueDate!==void 0)??e.milestones[0],ge=e=>P(e,"estimates")?e.measure??(e.estimates.length>0?"points":"stories"):"stories",is=e=>e.weight??1,se=10,os=e=>{const{statuses:t}=e,s=be(e);if(ge(e)!=="weighted")return t.map((o,r)=>r<s?1:0);const a=t.slice(0,s).map(is),n=Fe(a),i=a.map(o=>n>0?o/n:1/a.length);return t.map((o,r)=>Fe(i.slice(r)))},Mn=1,rs=(e,t)=>z(e,t.estimateId)?.points??Mn,ds=e=>{const t=new Map;for(const n of e.stories){const i={...n.milestoneId===void 0?{}:{milestoneId:n.milestoneId},...n.statusId===void 0?{}:{statusId:n.statusId}},o=Ue(i),r=t.get(o)??{...i,stories:0,points:0};t.set(o,{...r,stories:r.stories+1,points:r.points+rs(e,n)})}const s=[...e.milestones.map(n=>n.id),void 0],a=e.statuses.length===0?[void 0]:e.statuses.map(n=>n.id);return s.flatMap(n=>a.flatMap(i=>{const o=t.get(Ue({milestoneId:n,statusId:i}));return o?[o]:[]}))},Ln=(e,t,s)=>{const a=ge(e),i=[...$t(e.snapshots.map(d=>({at:Date.parse(d.at),tally:d.tally,snapshotId:d.id})),[d=>d.at]),{at:s,tally:ds(e)}].map(d=>({at:d.at,...d.snapshotId===void 0?{}:{snapshotId:d.snapshotId},values:Dn(e.statuses,d.tally,t,a)})),o=os(e),r=(d,p)=>({at:d.at,value:Math.round(p*100)/100,...d.snapshotId===void 0?{}:{snapshotId:d.snapshotId}});return{due:Rn(e.milestones.find(d=>d.id===t)?.dueDate),combined:i.map(d=>r(d,d.values.reduce((p,m,y)=>p+m*(o[y]??0),0))),byStatus:e.statuses.slice(1).map((d,p)=>({status:d,points:i.map(m=>r(m,Fe(m.values.slice(0,p+1))))}))}},Dn=(e,t,s,a)=>e.map(n=>Fe(t.filter(i=>i.milestoneId===s&&i.statusId===n.id).map(i=>a==="stories"?i.stories:i.points))),Rn=e=>{if(e===void 0)return null;const[t=0,s=1,a=1]=e.split("-").map(Number);return new Date(t,s-1,a,23,59,59).getTime()},ue=e=>{const t=new Date(e),s=a=>String(a).padStart(2,"0");return`${t.getFullYear()}-${s(t.getMonth()+1)}-${s(t.getDate())} ${s(t.getHours())}:${s(t.getMinutes())}`},Fe=e=>e.reduce((t,s)=>t+s,0),ls="STORY-",de=e=>`${ls}${e.number}`,ps=(...e)=>Math.max(0,...e.flatMap(t=>t.stories.map(s=>s.number)))+1,On=(e,t)=>{if(t===void 0)return;const s=T(e,t);if(s)return s;const a=new RegExp(`^${ls}([1-9]\\d*)$`,"i").exec(t.trim());if(!a)return;const n=Number(a[1]);return e.stories.find(i=>i.number===n)},cs=(e,t)=>{const s=Da(v,t);if(s===null)return null;const a=s.target.id;switch(s.type){case"SET_ACTIVITY_NAME":{const{name:n}=s.payload;return e.activities.some(i=>i.id===a)?{...e,activities:e.activities.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_ACTIVITY_ACTOR":{const n=s.payload.actor.trim();return e.activities.some(i=>i.id===a)?{...e,activities:e.activities.map(i=>{if(i.id!==a)return i;const{actor:o,...r}=i;return n===""?r:{...r,actor:n}})}:null}case"SET_STEP_NAME":{const{name:n}=s.payload,i=N(e,a);return i?{...e,activities:e.activities.map(o=>o.id===i.activity.id?{...o,steps:o.steps.map(r=>r.id===i.step.id?{...r,name:n}:r)}:o)}:null}case"REORDER_STEP":{const{after:n}=s.payload,i=N(e,a);if(!i)return null;const o=n===null?null:N(e,n);if(n!==null&&(!o||o.activity.id!==i.activity.id))return null;const r=me(i.activity.steps,i.step.id,o?.step.id??null);return r===null?null:{...e,activities:e.activities.map(d=>d.id===i.activity.id?{...d,steps:r}:d)}}case"REORDER_ACTIVITY":{const{after:n}=s.payload,i=me(e.activities,a,n);return i===null?null:{...e,activities:i}}case"ADD_ACTIVITY":{const n=s.payload;return e.activities.some(i=>i.id===n.id)?e:{...e,activities:[...e.activities,{id:n.id,name:n.name,steps:[]}]}}case"ADD_STEP":{const n=s.payload,i=e.activities.find(o=>o.id===a);return i?i.steps.some(o=>o.id===n.id)?e:{...e,activities:e.activities.map(o=>o.id===a?{...o,steps:[...o.steps,{id:n.id,name:n.name}]}:o)}:null}case"DELETE_ACTIVITY":{const n=e.activities.find(o=>o.id===a);if(!n)return null;const i=new Set(n.steps.map(o=>o.id));return ut({...e,activities:e.activities.filter(o=>o.id!==a)},o=>o.activityId===a||i.has(o.stepId))}case"DELETE_STEP":{const n=N(e,a);return n?ut({...e,activities:e.activities.map(i=>i.id===n.activity.id?{...i,steps:i.steps.filter(o=>o.id!==n.step.id)}:i)},i=>i.activityId===n.activity.id&&i.stepId===n.step.id):null}case"SET_STORY_NAME":{const{name:n}=s.payload;return H(e,a,i=>({...i,name:n}))}case"SET_STORY_DESCRIPTION":{const{description:n}=s.payload;return H(e,a,i=>({...i,description:n}))}case"SET_STORY_MILESTONE":{const{milestoneId:n}=s.payload;return n!==null&&!U(e,n)?null:H(e,a,i=>n===null?ct(i):{...i,milestoneId:n})}case"MOVE_STORY":{const n=s.payload,i=T(e,a);if(!i)return null;const o=N(e,n.stepId);if(!o||o.activity.id!==n.activityId||n.milestoneId!==null&&!U(e,n.milestoneId))return null;const r=n.milestoneId??void 0,d=r===void 0?{...ct(i),activityId:o.activity.id,stepId:o.step.id}:{...i,activityId:o.activity.id,stepId:o.step.id,milestoneId:r};return hs(e,d,n.after)}case"REORDER_STORY":{const{after:n}=s.payload,i=T(e,a);return i?hs(e,i,n,!0):null}case"ADD_STORY":{const n=s.payload,i=N(e,t.target.id);if(!i||i.activity.id!==n.activityId||n.milestoneId!==void 0&&!U(e,n.milestoneId))return null;if(e.stories.some(d=>d.id===n.id))return e;const o=n.number!==void 0&&e.stories.some(d=>d.number===n.number),r={id:n.id,number:n.number===void 0||o?ps(e):n.number,name:n.name,activityId:n.activityId,stepId:i.step.id,...n.milestoneId===void 0?{}:{milestoneId:n.milestoneId},...e.statuses[0]===void 0?{}:{statusId:e.statuses[0].id}};return{...e,stories:[...e.stories,r]}}case"DELETE_STORY":return e.stories.some(n=>n.id===a)?ut(e,n=>n.id===a):null;case"ADD_STORY_LINK":{const{url:n,label:i}=s.payload,o=T(e,a);if(!o)return null;if(o.links?.some(d=>d.url===n))return e;const r=i===void 0?{url:n}:{url:n,label:i};return H(e,a,d=>({...d,links:[...d.links??[],r]}))}case"REMOVE_STORY_LINK":{const{url:n}=s.payload;return T(e,a)?.links?.some(o=>o.url===n)?H(e,a,o=>{const r=(o.links??[]).filter(m=>m.url!==n),{links:d,...p}=o;return r.length===0?p:{...p,links:r}}):null}case"ADD_STORY_COMMENT":{const{id:n,body:i,createdAt:o}=s.payload,r=T(e,a);if(!r)return null;if(r.comments?.some(p=>p.id===n))return e;if(W(e).includes(n))return null;const d=o===void 0?{id:n,body:i}:{id:n,body:i,createdAt:o};return H(e,a,p=>({...p,comments:[...p.comments??[],d]}))}case"DELETE_STORY_COMMENT":{const{commentId:n}=s.payload;return T(e,a)?.comments?.some(o=>o.id===n)?H(e,a,o=>{const r=(o.comments??[]).filter(m=>m.id!==n),{comments:d,...p}=o;return r.length===0?p:{...p,comments:r}}):null}case"SET_STORY_STATUS":{const{statusId:n}=s.payload;return D(e,n)?H(e,a,i=>({...i,statusId:n})):null}case"SET_MILESTONE_NAME":{const{name:n}=s.payload;return e.milestones.some(i=>i.id===a)?{...e,milestones:e.milestones.map(i=>i.id===a?{...i,name:n}:i)}:null}case"ADD_MILESTONE":{const n=s.payload;return e.milestones.some(i=>i.id===n.id)?e:{...e,milestones:[...e.milestones,{id:n.id,name:n.name}]}}case"DELETE_MILESTONE":return e.milestones.some(n=>n.id===a)?{...e,milestones:e.milestones.filter(n=>n.id!==a),stories:e.stories.map(n=>n.milestoneId===a?ct(n):n),snapshots:mt(e,n=>n.milestoneId===a?le(n,"milestoneId"):n)}:null;case"REORDER_MILESTONE":{const{after:n}=s.payload,i=me(e.milestones,a,n);return i===null?null:{...e,milestones:i}}case"SET_MILESTONE_DUE_DATE":{const{dueDate:n}=s.payload;return U(e,a)?{...e,milestones:e.milestones.map(i=>i.id!==a?i:n===null?le(i,"dueDate"):{...i,dueDate:n})}:null}case"ADD_STATUS":{const{id:n,name:i,tone:o,icon:r}=s.payload;if(e.statuses.some(p=>p.id===n))return e;const d=[...e.statuses,{id:n,name:i,tone:o,icon:r??"progress"}];return e.statuses.length===0?{...e,statuses:d,stories:e.stories.map(p=>({...p,statusId:n})),snapshots:mt(e,p=>({...p,statusId:n}))}:{...e,statuses:d}}case"SET_STATUS_NAME":{const{name:n}=s.payload;return D(e,a)?{...e,statuses:e.statuses.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_STATUS_TONE":{const{tone:n}=s.payload;return D(e,a)?{...e,statuses:e.statuses.map(i=>i.id===a?{...i,tone:n}:i)}:null}case"SET_STATUS_ICON":{const{icon:n}=s.payload;return D(e,a)?{...e,statuses:e.statuses.map(i=>i.id===a?{...i,icon:n}:i)}:null}case"SET_STATUS_WEIGHT":{const{weight:n}=s.payload;return D(e,a)?{...e,statuses:e.statuses.map(i=>i.id===a?{...i,weight:n}:i)}:null}case"SET_MEASURE":{const{measure:n}=s.payload;return ge(e)===n?e:{...e,measure:n}}case"SET_DONE_STATUS":return D(e,a)?e.doneStatusId===a?e:{...e,doneStatusId:a}:null;case"DELETE_STATUS":{if(!D(e,a))return null;const n=e.statuses.filter(o=>o.id!==a),i=n[0]?.id;return{...e.doneStatusId===a?le(e,"doneStatusId"):e,statuses:n,stories:e.stories.map(o=>o.statusId!==a?o:i===void 0?Nn(o):{...o,statusId:i}),snapshots:mt(e,o=>o.statusId!==a?o:i===void 0?le(o,"statusId"):{...o,statusId:i})}}case"REORDER_STATUS":{const{after:n}=s.payload,i=me(e.statuses,a,n);return i===null?null:{...e,statuses:i}}case"ADD_LABEL":{const{id:n,name:i,tone:o}=s.payload;return X(e,n)?e:{...e,labels:[...e.labels,{id:n,name:i,tone:o}]}}case"SET_LABEL_NAME":{const{name:n}=s.payload;return X(e,a)?{...e,labels:e.labels.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_LABEL_TONE":{const{tone:n}=s.payload;return X(e,a)?{...e,labels:e.labels.map(i=>i.id===a?{...i,tone:n}:i)}:null}case"DELETE_LABEL":return X(e,a)?{...e,labels:e.labels.filter(n=>n.id!==a),stories:e.stories.map(n=>n.labelIds?.includes(a)?us(n,a):n)}:null;case"REORDER_LABEL":{const{after:n}=s.payload,i=me(e.labels,a,n);return i===null?null:{...e,labels:i}}case"ADD_STORY_LABEL":{const{labelId:n}=s.payload,i=T(e,a);return!i||!X(e,n)?null:i.labelIds?.includes(n)?e:H(e,a,o=>({...o,labelIds:[...o.labelIds??[],n]}))}case"REMOVE_STORY_LABEL":{const{labelId:n}=s.payload;return T(e,a)?.labelIds?.includes(n)?H(e,a,i=>us(i,n)):null}case"ADD_STORY_BLOCKER":{const{blockerId:n}=s.payload,i=T(e,a);return!i||!T(e,n)?null:i.blockedBy?.includes(n)?e:n===a||at(e.stories,n,a)?null:H(e,a,o=>({...o,blockedBy:[...o.blockedBy??[],n]}))}case"REMOVE_STORY_BLOCKER":{const{blockerId:n}=s.payload;return T(e,a)?.blockedBy?.includes(n)?H(e,a,i=>ms(i,new Set([n]))):null}case"ADD_MEMBER":{const{id:n,name:i,tone:o}=s.payload;return V(e,n)?e:{...e,members:[...e.members,{id:n,name:i,tone:o}]}}case"SET_MEMBER_NAME":{const{name:n}=s.payload;return V(e,a)?{...e,members:e.members.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_MEMBER_TONE":{const{tone:n}=s.payload;return V(e,a)?{...e,members:e.members.map(i=>i.id===a?{...i,tone:n}:i)}:null}case"DELETE_MEMBER":return V(e,a)?{...e,members:e.members.filter(n=>n.id!==a),stories:e.stories.map(n=>n.assigneeId===a?le(n,"assigneeId"):n)}:null;case"REORDER_MEMBER":{const{after:n}=s.payload,i=me(e.members,a,n);return i===null?null:{...e,members:i}}case"SET_STORY_ASSIGNEE":{const{memberId:n}=s.payload;return n!==null&&!V(e,n)?null:H(e,a,i=>n===null?le(i,"assigneeId"):{...i,assigneeId:n})}case"ADD_ESTIMATE":{const{id:n,name:i,points:o}=s.payload;return z(e,n)?e:{...e,estimates:[...e.estimates,{id:n,name:i,points:o}]}}case"SET_ESTIMATE_NAME":{const{name:n}=s.payload;return z(e,a)?{...e,estimates:e.estimates.map(i=>i.id===a?{...i,name:n}:i)}:null}case"SET_ESTIMATE_POINTS":{const{points:n}=s.payload;return z(e,a)?{...e,estimates:e.estimates.map(i=>i.id===a?{...i,points:n}:i)}:null}case"DELETE_ESTIMATE":return z(e,a)?{...e,estimates:e.estimates.filter(n=>n.id!==a),stories:e.stories.map(n=>n.estimateId===a?le(n,"estimateId"):n)}:null;case"REORDER_ESTIMATE":{const{after:n}=s.payload,i=me(e.estimates,a,n);return i===null?null:{...e,estimates:i}}case"SET_STORY_ESTIMATE":{const{estimateId:n}=s.payload;return n!==null&&!z(e,n)?null:H(e,a,i=>n===null?le(i,"estimateId"):{...i,estimateId:n})}case"RECORD_SNAPSHOT":{const{id:n,at:i,tally:o}=s.payload;return Ee(e,n)?e:Jt(e,o)!==null?null:{...e,snapshots:[...e.snapshots,{id:n,at:i,tally:o}]}}case"DELETE_SNAPSHOT":return Ee(e,a)?{...e,snapshots:e.snapshots.filter(n=>n.id!==a)}:null;case"SET_FEATURE":{const{feature:n,enabled:i}=s.payload;if(e.features.includes(n)===i)return e;const o=Ce.filter(r=>r===n?i:e.features.includes(r));return{...e,features:o}}default:return Ra(s)}},H=(e,t,s)=>e.stories.some(a=>a.id===t)?{...e,stories:e.stories.map(a=>a.id===t?s(a):a)}:null,ct=e=>{const{milestoneId:t,...s}=e;return s},us=(e,t)=>{const{labelIds:s=[],...a}=e,n=s.filter(i=>i!==t);return n.length===0?a:{...a,labelIds:n}},ms=(e,t)=>{const{blockedBy:s=[],...a}=e,n=s.filter(i=>!t.has(i));return n.length===0?a:{...a,blockedBy:n}},ut=(e,t)=>{const s=new Set(e.stories.filter(t).map(a=>a.id));return{...e,stories:e.stories.filter(a=>!s.has(a.id)).map(a=>a.blockedBy?.some(n=>s.has(n))?ms(a,s):a)}},le=(e,t)=>{const{[t]:s,...a}=e;return a},mt=(e,t)=>e.snapshots.map(s=>{const a=new Map;for(const n of s.tally.map(t)){const i=Ue(n),o=a.get(i);a.set(i,o?{...o,stories:o.stories+n.stories,points:o.points+n.points}:n)}return{...s,tally:[...a.values()]}}),Nn=e=>{const{statusId:t,...s}=e;return s},hs=(e,t,s,a=!1)=>{const n=t.milestoneId??void 0,i=e.stories.filter(S=>S.id!==t.id),o=i.filter(S=>S.stepId===t.stepId&&(S.milestoneId??void 0)===n);if(s!==null){const S=i.find(A=>A.id===s);if(!S||S.stepId!==t.stepId||(S.milestoneId??void 0)!==n)return null;if(a){const A=T(e,t.id);if(!A||S.stepId!==A.stepId||(S.milestoneId??void 0)!==(A.milestoneId??void 0))return null}}const r=s===null?[t,...o]:bs(o,t,s),d=i.findIndex(S=>S.stepId===t.stepId&&(S.milestoneId??void 0)===n),p=new Set(o.map(S=>S.id)),m=i.filter(S=>!p.has(S.id)),y=d<0?m.length:Math.min(d,m.length),E=[...m.slice(0,y),...r,...m.slice(y)];return{...e,stories:E}},me=(e,t,s)=>{if(!e.some(i=>i.id===t)||s!==null&&!e.some(i=>i.id===s))return null;if(s===t)return[...e];const a=e.find(i=>i.id===t);if(a===void 0)return null;const n=e.filter(i=>i.id!==t);return bs(n,a,s)},bs=(e,t,s)=>{const a=[...e],n=s===null?-1:a.findIndex(i=>i.id===s);return a.splice(n+1,0,t),a},ne=Oa({en:{renameActivity:"Rename activity",changeActivityActor:"Change whose experience",renameStep:"Rename step",reorderStep:"Reorder step",reorderActivity:"Reorder activity group",addActivity:"Add activity",addStep:"Add step",deleteActivity:"Delete activity",deleteStep:"Delete step",renameStory:"Rename story",updateStoryDescription:"Update story description",changeMilestone:"Change milestone",moveStory:"Move story",reorderStory:"Reorder story",addStory:"Add story",deleteStory:"Delete story",renameMilestone:"Rename milestone",addMilestone:"Add milestone",deleteMilestone:"Delete milestone",reorderMilestone:"Reorder milestone",changeStoryStatus:"Change story status",addStatus:"Add status",renameStatus:"Rename status",changeStatusTone:"Change status color",changeStatusIcon:"Change status icon",addStoryLink:"Link to story",removeStoryLink:"Unlink from story",addStoryComment:"Comment on story",deleteStoryComment:"Delete story comment",deleteStatus:"Delete status",reorderStatus:"Reorder status",addLabel:"Add label",renameLabel:"Rename label",changeLabelTone:"Change label color",deleteLabel:"Delete label",reorderLabel:"Reorder label",addStoryLabel:"Label story",removeStoryLabel:"Unlabel story",addStoryBlocker:"Make story wait on",removeStoryBlocker:"Stop story waiting on",changeMilestoneDueDate:"Change milestone due date",changeStatusWeight:"Change status weight",setDoneStatus:"Change done status",addEstimate:"Add estimate",renameEstimate:"Rename estimate",changeEstimatePoints:"Change estimate points",deleteEstimate:"Delete estimate",reorderEstimate:"Reorder estimate",setStoryEstimate:"Estimate story",recordSnapshot:"Record burndown snapshot",deleteSnapshot:"Delete burndown snapshot",toValue:e=>`\u2192 \u201C${e}\u201D`,fromTo:(e,t)=>`\u201C${e}\u201D \u2192 \u201C${t}\u201D`,added:e=>`+ \u201C${e}\u201D`,removed:e=>`\u2212 \u201C${e}\u201D`,toFront:"\u2192 To the front",afterName:e=>`\u2192 Right after \u201C${e}\u201D`,toUnassigned:"\u2192 Unassigned",toName:e=>`\u2192 ${e}`,snapshotSummary:(e,t)=>`${e} \xB7 ${t===1?"1 story":`${t} stories`}`,activityGroup:"Activity",stepGroup:"Step",storyGroup:"Story",milestoneGroup:"Milestone",statusGroup:"Status",labelGroup:"Label",estimateGroup:"Estimate",snapshotGroup:"Snapshot",mapGroup:"Map",targetLabel:(e,t)=>`${e} \xB7 ${t}`,targetMissing:(e,t)=>`${e} \xB7 ${t} (missing)`,wholeMap:"Whole map",unassigned:"Unassigned",emptyTitle:"No backbone yet",emptyBody:"Add activities and steps, and the story map appears here.",firstActivityButton:"+ First activity",groupingLabel:"Group by",groupViewTab:"Activity group",groupAxisHeader:"Activity group \u2192",activityAxis:"Activity \u2192",milestoneAxis:"Milestone \u2193",stepNameLabel:"Step name",activityNameLabel:"Activity name",milestoneNameLabel:"Milestone name",addStepAria:"Add a step to this activity",newActivityButton:"+ Activity",newMilestoneButton:"+ Milestone",addCellButton:"+ Add",addStoryCellAria:"Add a story to this cell",storyCount:e=>e===1?"1 story":`${e} stories`,pageTabsLabel:"Page",mapTab:"User Story Mapping",tableTab:"Table",milestonesTab:"Milestones",burndownTab:"Burndown",statusesSection:"Statuses",labelsSection:"Labels",membersSection:"Members",shareOfStories:e=>`${e}% of all stories`,coverageLabel:"Backbone coverage",coverage:(e,t)=>`${e} / ${t} steps`,storiesLabel:"Stories",timeframeUnset:"Timing not set",milestoneNoDescription:"No description yet.",noMilestonesTitle:"No milestones yet",noMilestonesBody:"Add a milestone to slice the map into releases.",commentCountAria:e=>e===1?"1 comment":`${e} comments`,reviewCountAria:e=>e===1?"1 review comment":`${e} review comments`,statusNameLabel:"Status name",statusToneLabel:"Color",toneName:e=>({gray:"Gray",blue:"Blue",violet:"Violet",green:"Green",amber:"Amber",accent:"Indigo"})[e],statusIconLabel:"Icon",iconName:e=>({progress:"Progress ring",circle:"Circle",lightbulb:"Light bulb",flag:"Flag",play:"Play",clock:"Clock",eye:"Eye",pause:"Pause",check:"Check",x:"Cross"})[e],statusShare:(e,t)=>`${e===1?"1 story":`${e} stories`} \xB7 ${t}%`,filterLabel:"Filter",filterKeyLabel:e=>({status:"Status",label:"Label",estimate:"Estimate",assignee:"Assignee"})[e],filterAll:"All",noLabel:"No label",unestimatedFilter:"Not estimated",clearFilter:"Clear",showFinished:e=>`Show ${e}`,criticalPathButton:"Critical path",criticalPathHint:"Highlight the chain of waiting stories with the most work left, from their estimates and dependencies. If it slips, the whole map slips.",criticalPathCount:e=>e===1?"1 story":`${e} stories`,progressAria:e=>`Progress: ${e}`,activityActorLabel:"Who",noStatusesTitle:"No statuses yet",noStatusesBody:"Add statuses such as Idea / Ready / Done, and the map colors each story by where it stands.",newStatusButton:"+ Status",moveUpAria:"Move up",moveDownAria:"Move down",deleteStatusAria:"Delete this status",doneStatusMark:"Done",doneStatusAria:e=>`Count ${e} as done`,statusWeightLabel:"Status weights",statusWeightHint:"Counts a story partly done by the statuses it has passed.",weightsNeedStatuses:"With two statuses or more before the done one, a story\u2019s work can be shared out between them.",setMeasure:"Change how the work left is measured",weightLineLabel:(e,t)=>`Between ${e} and ${t}`,weightLineValue:(e,t,s,a)=>`${e} ${t}, ${s} ${a}`,labelNameLabel:"Label name",noLabelsTitle:"No labels yet",noLabelsBody:"You can add labels here.",newLabelButton:"+ Label",deleteLabelAria:"Delete this label",burndownMilestoneLabel:"Milestone",dueDateLabel:"Due",noDueDate:"No due date",measureLabel:"Measure by",measureName:e=>({stories:"Stories",points:"Story points",weighted:"Points \xD7 status"})[e],measureSettingsLabel:"Measure settings",recordSnapshotButton:"Record snapshot",recordSnapshotHint:"Keeps today\u2019s totals per milestone and status, so the lines have a point to start from.",combinedChartTitle:e=>e?"Weighted burndown":"Burndown",combinedChartHint:e=>({stories:"The number of stories not done yet.",points:"The points of the stories not done yet.",weighted:"The points of each story \xD7 the share of it the status weights leave ahead."})[e]+" It reaches 0 when every story is done.",statusChartTitle:e=>`Left to reach \u201C${e}\u201D`,statusChartsLabel:"By status",chartNow:"Now",chartToday:"Today",chartDue:"Due",chartIdeal:"Ideal",chartActual:"Actual",chartAbout:"How this chart is counted",axisDate:(e,t)=>gs("en-US",e,t),chartAria:(e,t)=>`${e}: ${t} now`,chartLatest:e=>`Now ${e}`,chartNeedsSnapshot:"Record a snapshot to draw the line from.",snapshotsLabel:"Snapshots",noSnapshots:"No snapshot yet.",deleteSnapshotAria:e=>`Delete the snapshot of ${e}`,noMilestonesForBurndown:"Add a milestone on the Milestones tab to see its burndown.",unestimatedNote:e=>`${e===1?"1 story has":`${e} stories have`} no estimate and count as 1 point each.`,estimatesLabel:"Estimate scale",estimatesHint:"Name and points of each size a story can be estimated at (1, 2, 3 \u2026 or S, M, L).",estimateNameLabel:"Estimate name",estimatePointsLabel:"Points",newEstimateButton:"+ Estimate",deleteEstimateAria:"Delete this estimate",noEstimates:"No estimate scale yet: the burndown counts stories.",moveDialogLabel:"Step to move to",moveDialogSelectLabel:"Destination",moveConfirm:"Move",moveCancel:"Cancel",storyStatusLabel:"Status",panelLabel:e=>`Story: ${e}`,closePanelAria:"Close",copyStoryKey:e=>`Copy ${e}`,storyKeyCopied:"Copied",storyKeyColumn:"Key",copyId:"Copy ID",copyIdTitle:"Copy ID + title",copyStoryInfo:"Copy card as Markdown",copyInfoStep:"Step",copyInfoBlocks:"Blocks",copyInfoWaitsOn:"Waits on",storyTitleLabel:"Title",storyDescriptionLabel:"Description",storyLinksLabel:"Links",storyLabelsLabel:"Labels",storyNoLabels:"No labels yet.",manageLabels:"Manage labels",storyDependenciesLabel:"Dependencies",storyBlockersLabel:"Waits on",storyDependentsLabel:"Holds up",storyNoBlockers:"Nothing to wait on.",storyNoDependents:"No story waits on this one.",addBlockerPlaceholder:"Search for a story to wait on\u2026",addDependentPlaceholder:"Search for a story to wait on this\u2026",noDependencyMatch:"No story matches.",blockerFinished:"Done",removeBlockerAria:e=>`Stop waiting on ${e}`,removeDependentAria:e=>`Stop ${e} waiting on this`,blocksChip:e=>`Blocks ${e}`,waitsChip:e=>`Waits on ${e}`,blocksChipTitle:e=>`${e} ${e===1?"story waits":"stories wait"} on this one`,waitsChipTitle:e=>`Waits on ${e} unfinished ${e===1?"story":"stories"}`,storyEstimateLabel:"Estimate",unestimated:"None",estimateText:(e,t)=>e===String(t)?e:`${e} (${t} pt)`,estimateChipTitle:e=>`Estimate: ${e}`,manageEstimates:"Manage the scale",linkUrlLabel:"URL",addLinkButton:"Add",removeLinkAria:e=>`Remove ${e}`,deleteStoryButton:"Delete story",storyCommentsLabel:"Comments",reviewStoryButton:"Review comment",reviewStoryTitle:"Write a review comment on this story, asking the agent for a change",storyStatusAria:e=>`Status: ${e}`,addMember:"Add member",renameMember:"Rename member",changeMemberTone:"Change member color",deleteMember:"Delete member",reorderMember:"Reorder member",setStoryAssignee:"Assign story",memberGroup:"Member",memberNameLabel:"Member name",noMembersTitle:"No members yet",noMembersBody:"Add the people on the team, then assign each story to the one who takes it on.",newMemberButton:"+ Member",deleteMemberAria:"Delete this member",storyAssigneeLabel:"Assignee",noAssignee:"No one",storyNoMembers:"No members yet.",manageMembers:"Manage members",assigneeChipTitle:e=>`Assigned to ${e}`,noAssigneeFilter:"Unassigned",moreTabsLabel:"More tabs",enableFeature:"Turn on feature",disableFeature:"Turn off feature",featureName:e=>({estimates:"Estimates & burndown",assignees:"Members & assignees"})[e],featureHint:e=>({estimates:"An estimate scale for the stories and a burndown per milestone.",assignees:"The members of the team and who each story is assigned to."})[e],featuresNote:"Turning a feature off only hides it: what it holds is kept.",newActivityName:"New activity",newStepName:"New step",newMilestoneName:"New milestone",newStoryName:"New story",newStatusName:"New status",newLabelName:"New label",newMemberName:"New member",newEstimateName:"New"},ja:{renameActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u540D\u3092\u5909\u66F4",changeActivityActor:"\u4F53\u9A13\u3059\u308B\u4EBA\u3092\u5909\u66F4",renameStep:"\u30B9\u30C6\u30C3\u30D7\u540D\u3092\u5909\u66F4",reorderStep:"\u30B9\u30C6\u30C3\u30D7\u306E\u9806\u5E8F\u3092\u5909\u66F4",reorderActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u30B0\u30EB\u30FC\u30D7\u306E\u9806\u5E8F\u3092\u5909\u66F4",addActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8FFD\u52A0",addStep:"\u30B9\u30C6\u30C3\u30D7\u3092\u8FFD\u52A0",deleteActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u524A\u9664",deleteStep:"\u30B9\u30C6\u30C3\u30D7\u3092\u524A\u9664",renameStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u540D\u3092\u5909\u66F4",updateStoryDescription:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u8AAC\u660E\u3092\u66F4\u65B0",changeMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u5909\u66F4",moveStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u79FB\u52D5",reorderStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u9806\u5E8F\u3092\u5909\u66F4",addStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u8FFD\u52A0",deleteStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u524A\u9664",renameMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u540D\u3092\u5909\u66F4",addMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u8FFD\u52A0",deleteMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u524A\u9664",reorderMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u306E\u9806\u5E8F\u3092\u5909\u66F4",changeStoryStatus:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u5909\u66F4",addStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8FFD\u52A0",renameStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u540D\u3092\u5909\u66F4",changeStatusTone:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u8272\u3092\u5909\u66F4",changeStatusIcon:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u30A2\u30A4\u30B3\u30F3\u3092\u5909\u66F4",addStoryLink:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u30EA\u30F3\u30AF\u3092\u8FFD\u52A0",removeStoryLink:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30EA\u30F3\u30AF\u3092\u524A\u9664",addStoryComment:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u30B3\u30E1\u30F3\u30C8\u3092\u8FFD\u52A0",deleteStoryComment:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30B3\u30E1\u30F3\u30C8\u3092\u524A\u9664",deleteStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u524A\u9664",reorderStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u9806\u5E8F\u3092\u5909\u66F4",addLabel:"\u30E9\u30D9\u30EB\u3092\u8FFD\u52A0",renameLabel:"\u30E9\u30D9\u30EB\u540D\u3092\u5909\u66F4",changeLabelTone:"\u30E9\u30D9\u30EB\u306E\u8272\u3092\u5909\u66F4",deleteLabel:"\u30E9\u30D9\u30EB\u3092\u524A\u9664",reorderLabel:"\u30E9\u30D9\u30EB\u306E\u9806\u5E8F\u3092\u5909\u66F4",addStoryLabel:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u30E9\u30D9\u30EB\u3092\u4ED8\u4E0E",removeStoryLabel:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30E9\u30D9\u30EB\u3092\u5916\u3059",addStoryBlocker:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u4F9D\u5B58\u5148\u3092\u8FFD\u52A0",removeStoryBlocker:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u4F9D\u5B58\u5148\u3092\u5916\u3059",changeMilestoneDueDate:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u306E\u671F\u65E5\u3092\u5909\u66F4",changeStatusWeight:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u91CD\u307F\u3092\u5909\u66F4",setDoneStatus:"\u5B8C\u4E86\u3068\u3059\u308B\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u5909\u66F4",addEstimate:"\u898B\u7A4D\u3082\u308A\u3092\u8FFD\u52A0",renameEstimate:"\u898B\u7A4D\u3082\u308A\u540D\u3092\u5909\u66F4",changeEstimatePoints:"\u898B\u7A4D\u3082\u308A\u306E\u30DD\u30A4\u30F3\u30C8\u3092\u5909\u66F4",deleteEstimate:"\u898B\u7A4D\u3082\u308A\u3092\u524A\u9664",reorderEstimate:"\u898B\u7A4D\u3082\u308A\u306E\u9806\u5E8F\u3092\u5909\u66F4",setStoryEstimate:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u898B\u7A4D\u3082\u308B",recordSnapshot:"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u306E\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u8A18\u9332",deleteSnapshot:"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u306E\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u524A\u9664",toValue:e=>`\u2192 \u300C${e}\u300D`,fromTo:(e,t)=>`\u300C${e}\u300D\u2192\u300C${t}\u300D`,added:e=>`+ \u300C${e}\u300D`,removed:e=>`\u2212 \u300C${e}\u300D`,toFront:"\u2192 \u5148\u982D\u3078",afterName:e=>`\u2192 \u300C${e}\u300D\u306E\u76F4\u5F8C\u3078`,toUnassigned:"\u2192 \u672A\u5272\u5F53\u3078",toName:e=>`\u2192 ${e}`,snapshotSummary:(e,t)=>`${e} \xB7 ${t} \u30B9\u30C8\u30FC\u30EA\u30FC`,activityGroup:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",stepGroup:"\u30B9\u30C6\u30C3\u30D7",storyGroup:"\u30B9\u30C8\u30FC\u30EA\u30FC",milestoneGroup:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",statusGroup:"\u30B9\u30C6\u30FC\u30BF\u30B9",labelGroup:"\u30E9\u30D9\u30EB",estimateGroup:"\u898B\u7A4D\u3082\u308A",snapshotGroup:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8",mapGroup:"\u30DE\u30C3\u30D7",targetLabel:(e,t)=>`${e} \xB7 ${t}`,targetMissing:(e,t)=>`${e} \xB7 ${t} (missing)`,wholeMap:"\u30DE\u30C3\u30D7\u5168\u4F53",unassigned:"\u672A\u5272\u5F53",emptyTitle:"\u30D0\u30C3\u30AF\u30DC\u30FC\u30F3\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",emptyBody:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3068\u30B9\u30C6\u30C3\u30D7\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u3053\u3053\u306B\u30B9\u30C8\u30FC\u30EA\u30FC\u30DE\u30C3\u30D7\u304C\u73FE\u308C\u307E\u3059\u3002",firstActivityButton:"+ \u6700\u521D\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",groupingLabel:"\u307E\u3068\u3081\u308B\u5358\u4F4D",groupViewTab:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u30B0\u30EB\u30FC\u30D7",groupAxisHeader:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u30B0\u30EB\u30FC\u30D7 \u2192",activityAxis:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3 \u2192",milestoneAxis:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3 \u2193",stepNameLabel:"\u30B9\u30C6\u30C3\u30D7\u540D",activityNameLabel:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u540D",milestoneNameLabel:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u540D",addStepAria:"\u3053\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u306B\u30B9\u30C6\u30C3\u30D7\u3092\u8FFD\u52A0",newActivityButton:"+ \u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",newMilestoneButton:"+ \u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",addCellButton:"+ \u8FFD\u52A0",addStoryCellAria:"\u3053\u306E\u30DE\u30B9\u306B\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u8FFD\u52A0",storyCount:e=>`${e} \u30B9\u30C8\u30FC\u30EA\u30FC`,pageTabsLabel:"\u30DA\u30FC\u30B8",mapTab:"User Story Mapping",tableTab:"\u30C6\u30FC\u30D6\u30EB",milestonesTab:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",burndownTab:"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3",statusesSection:"\u30B9\u30C6\u30FC\u30BF\u30B9",labelsSection:"\u30E9\u30D9\u30EB",membersSection:"\u30E1\u30F3\u30D0\u30FC",shareOfStories:e=>`\u5168\u30B9\u30C8\u30FC\u30EA\u30FC\u306E ${e}%`,coverageLabel:"\u30D0\u30C3\u30AF\u30DC\u30FC\u30F3\u306E\u7DB2\u7F85",coverage:(e,t)=>`${e} / ${t} \u30B9\u30C6\u30C3\u30D7`,storiesLabel:"\u30B9\u30C8\u30FC\u30EA\u30FC",timeframeUnset:"\u6642\u671F\u672A\u5B9A",milestoneNoDescription:"\u8AAC\u660E\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",noMilestonesTitle:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",noMilestonesBody:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u30DE\u30C3\u30D7\u3092\u30EA\u30EA\u30FC\u30B9\u3054\u3068\u306B\u533A\u5207\u308C\u307E\u3059\u3002",commentCountAria:e=>`\u30B3\u30E1\u30F3\u30C8 ${e} \u4EF6`,reviewCountAria:e=>`\u30EC\u30D3\u30E5\u30FC\u30B3\u30E1\u30F3\u30C8 ${e} \u4EF6`,statusNameLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9\u540D",statusToneLabel:"\u8272",toneName:e=>({gray:"\u30B0\u30EC\u30FC",blue:"\u9752",violet:"\u7D2B",green:"\u7DD1",amber:"\u9EC4",accent:"\u30A4\u30F3\u30C7\u30A3\u30B4"})[e],statusIconLabel:"\u30A2\u30A4\u30B3\u30F3",iconName:e=>({progress:"\u9032\u6357\u30EA\u30F3\u30B0",circle:"\u5186",lightbulb:"\u96FB\u7403",flag:"\u65D7",play:"\u518D\u751F",clock:"\u6642\u8A08",eye:"\u76EE",pause:"\u4E00\u6642\u505C\u6B62",check:"\u30C1\u30A7\u30C3\u30AF",x:"\u30D0\u30C4"})[e],statusShare:(e,t)=>`${e} \u30B9\u30C8\u30FC\u30EA\u30FC \xB7 ${t}%`,filterLabel:"\u30D5\u30A3\u30EB\u30BF\u30FC",filterKeyLabel:e=>({status:"\u30B9\u30C6\u30FC\u30BF\u30B9",label:"\u30E9\u30D9\u30EB",estimate:"\u898B\u7A4D\u3082\u308A",assignee:"\u62C5\u5F53\u8005"})[e],filterAll:"\u3059\u3079\u3066",noLabel:"\u30E9\u30D9\u30EB\u306A\u3057",unestimatedFilter:"\u898B\u7A4D\u3082\u308A\u306A\u3057",clearFilter:"\u30AF\u30EA\u30A2",showFinished:e=>`${e}\u3082\u8868\u793A`,criticalPathButton:"\u30AF\u30EA\u30C6\u30A3\u30AB\u30EB\u30D1\u30B9",criticalPathHint:"\u898B\u7A4D\u3082\u308A\u3068\u4F9D\u5B58\u95A2\u4FC2\u304B\u3089\u3001\u6B8B\u308A\u306E\u4F5C\u696D\u304C\u6700\u3082\u591A\u3044\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u9023\u306A\u308A\u3092\u5F37\u8ABF\u3057\u307E\u3059\u3002\u3053\u3053\u304C\u9045\u308C\u308B\u3068\u30DE\u30C3\u30D7\u5168\u4F53\u304C\u9045\u308C\u307E\u3059\u3002",criticalPathCount:e=>`${e} \u4EF6`,progressAria:e=>`\u9032\u307F\u5177\u5408: ${e}`,activityActorLabel:"\u8AB0\u306E\u4F53\u9A13",noStatusesTitle:"\u30B9\u30C6\u30FC\u30BF\u30B9\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",noStatusesBody:"Idea / Ready / Done \u306E\u3088\u3046\u306A\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u30DE\u30C3\u30D7\u306E\u30AB\u30FC\u30C9\u304C\u9032\u307F\u5177\u5408\u3067\u8272\u5206\u3051\u3055\u308C\u307E\u3059\u3002",newStatusButton:"+ \u30B9\u30C6\u30FC\u30BF\u30B9",moveUpAria:"\u4E0A\u3078\u79FB\u52D5",moveDownAria:"\u4E0B\u3078\u79FB\u52D5",deleteStatusAria:"\u3053\u306E\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u524A\u9664",doneStatusMark:"\u5B8C\u4E86",doneStatusAria:e=>`${e}\u3092\u5B8C\u4E86\u3068\u3059\u308B`,statusWeightLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u91CD\u307F",statusWeightHint:"\u901A\u308A\u904E\u304E\u305F\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u5206\u3060\u3051\u3001\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u9014\u4E2D\u307E\u3067\u9032\u3093\u3060\u3082\u306E\u3068\u3057\u3066\u6570\u3048\u307E\u3059\u3002",weightsNeedStatuses:"\u5B8C\u4E86\u3068\u3059\u308B\u30B9\u30C6\u30FC\u30BF\u30B9\u3088\u308A\u524D\u306B\u30B9\u30C6\u30FC\u30BF\u30B9\u304C 2 \u3064\u4EE5\u4E0A\u3042\u308B\u3068\u3001\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u4F5C\u696D\u3092\u305D\u306E\u9593\u3067\u5206\u3051\u3089\u308C\u307E\u3059\u3002",setMeasure:"\u6B8B\u308A\u306E\u4F5C\u696D\u91CF\u306E\u8A08\u6E2C\u65B9\u6CD5\u3092\u5909\u66F4",weightLineLabel:(e,t)=>`${e}\u3068${t}\u306E\u5883\u76EE`,weightLineValue:(e,t,s,a)=>`${e} ${t}\u3001${s} ${a}`,labelNameLabel:"\u30E9\u30D9\u30EB\u540D",noLabelsTitle:"\u30E9\u30D9\u30EB\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",noLabelsBody:"\u30E9\u30D9\u30EB\u3092\u8FFD\u52A0\u3067\u304D\u307E\u3059\u3002",newLabelButton:"+ \u30E9\u30D9\u30EB",deleteLabelAria:"\u3053\u306E\u30E9\u30D9\u30EB\u3092\u524A\u9664",burndownMilestoneLabel:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",dueDateLabel:"\u671F\u65E5",noDueDate:"\u671F\u65E5\u306A\u3057",measureLabel:"\u8A08\u6E2C\u65B9\u6CD5",measureName:e=>({stories:"\u30B9\u30C8\u30FC\u30EA\u30FC\u6570",points:"\u30B9\u30C8\u30FC\u30EA\u30FC\u30DD\u30A4\u30F3\u30C8",weighted:"\u30DD\u30A4\u30F3\u30C8 \xD7 \u30B9\u30C6\u30FC\u30BF\u30B9"})[e],measureSettingsLabel:"\u8A08\u6E2C\u306E\u8A2D\u5B9A",recordSnapshotButton:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u8A18\u9332",recordSnapshotHint:"\u4ECA\u306E\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3 \xD7 \u30B9\u30C6\u30FC\u30BF\u30B9\u3054\u3068\u306E\u96C6\u8A08\u3092\u6B8B\u3057\u3001\u7DDA\u306E\u8D77\u70B9\u306B\u3057\u307E\u3059\u3002",combinedChartTitle:e=>e?"\u91CD\u307F\u4ED8\u304D\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u30C1\u30E3\u30FC\u30C8":"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u30C1\u30E3\u30FC\u30C8",combinedChartHint:e=>({stories:"\u307E\u3060 Done \u3067\u306A\u3044\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u6570\u3002",points:"\u307E\u3060 Done \u3067\u306A\u3044\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30DD\u30A4\u30F3\u30C8\u3002",weighted:"\u5404\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30DD\u30A4\u30F3\u30C8 \xD7 \u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u91CD\u307F\u3067\u6C7A\u307E\u308B\u6B8B\u308A\u306E\u5272\u5408\u3002"})[e]+"\u3059\u3079\u3066 Done \u306B\u306A\u308B\u3068 0 \u3067\u3059\u3002",statusChartTitle:e=>`\u300C${e}\u300D\u306B\u5C4A\u304F\u307E\u3067\u306E\u6B8B\u308A`,statusChartsLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9\u5225",chartNow:"\u73FE\u5728",chartToday:"\u4ECA\u65E5",chartDue:"\u671F\u65E5",chartIdeal:"\u7406\u60F3",chartActual:"\u5B9F\u7E3E",chartAbout:"\u3053\u306E\u30C1\u30E3\u30FC\u30C8\u306E\u6570\u3048\u65B9",axisDate:(e,t)=>gs("ja-JP",e,t),chartAria:(e,t)=>`${e}: \u73FE\u5728 ${t}`,chartLatest:e=>`\u73FE\u5728 ${e}`,chartNeedsSnapshot:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u8A18\u9332\u3059\u308B\u3068\u7DDA\u304C\u5F15\u304B\u308C\u307E\u3059\u3002",snapshotsLabel:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8",noSnapshots:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",deleteSnapshotAria:e=>`${e} \u306E\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u524A\u9664`,noMilestonesForBurndown:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u30BF\u30D6\u3067\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u305D\u306E\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u304C\u898B\u3089\u308C\u307E\u3059\u3002",unestimatedNote:e=>`${e} \u4EF6\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u306F\u898B\u7A4D\u3082\u308A\u304C\u306A\u304F\u30011 \u4EF6 1 \u30DD\u30A4\u30F3\u30C8\u3068\u3057\u3066\u6570\u3048\u3066\u3044\u307E\u3059\u3002`,estimatesLabel:"\u898B\u7A4D\u3082\u308A\u306E\u76EE\u76DB\u308A",estimatesHint:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u4ED8\u3051\u3089\u308C\u308B\u898B\u7A4D\u3082\u308A\u306E\u540D\u524D\u3068\u30DD\u30A4\u30F3\u30C8\uFF081, 2, 3 \u2026 \u3084 S, M, L\uFF09\u3002",estimateNameLabel:"\u898B\u7A4D\u3082\u308A\u540D",estimatePointsLabel:"\u30DD\u30A4\u30F3\u30C8",newEstimateButton:"+ \u898B\u7A4D\u3082\u308A",deleteEstimateAria:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u3092\u524A\u9664",noEstimates:"\u898B\u7A4D\u3082\u308A\u306E\u76EE\u76DB\u308A\u304C\u307E\u3060\u306A\u3044\u305F\u3081\u3001\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u306F\u30B9\u30C8\u30FC\u30EA\u30FC\u6570\u3067\u6570\u3048\u307E\u3059\u3002",moveDialogLabel:"\u79FB\u52D5\u5148\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",moveDialogSelectLabel:"\u79FB\u52D5\u5148",moveConfirm:"\u79FB\u52D5\u3059\u308B",moveCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",storyStatusLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9",panelLabel:e=>`\u30B9\u30C8\u30FC\u30EA\u30FC: ${e}`,closePanelAria:"\u9589\u3058\u308B",copyStoryKey:e=>`${e} \u3092\u30B3\u30D4\u30FC`,storyKeyCopied:"\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",storyKeyColumn:"\u30AD\u30FC",copyId:"ID\u3092\u30B3\u30D4\u30FC",copyIdTitle:"ID + Title \u3092\u30B3\u30D4\u30FC",copyStoryInfo:"\u30AB\u30FC\u30C9\u60C5\u5831\u3092\u30B3\u30D4\u30FC",copyInfoStep:"\u30B9\u30C6\u30C3\u30D7",copyInfoBlocks:"\u30D6\u30ED\u30C3\u30AF",copyInfoWaitsOn:"\u4F9D\u5B58\u5148",storyTitleLabel:"\u30BF\u30A4\u30C8\u30EB",storyDescriptionLabel:"\u8AAC\u660E",storyLinksLabel:"\u30EA\u30F3\u30AF",storyLabelsLabel:"\u30E9\u30D9\u30EB",storyNoLabels:"\u30E9\u30D9\u30EB\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",manageLabels:"\u30E9\u30D9\u30EB\u3092\u7BA1\u7406",storyDependenciesLabel:"\u4F9D\u5B58\u95A2\u4FC2",storyBlockersLabel:"\u4F9D\u5B58\u5148\uFF08\u5148\u306B\u7D42\u3048\u308B\uFF09",storyDependentsLabel:"\u4F9D\u5B58\u5143\uFF08\u3053\u308C\u3092\u5F85\u3064\uFF09",storyNoBlockers:"\u5F85\u3063\u3066\u3044\u308B\u30B9\u30C8\u30FC\u30EA\u30FC\u306F\u3042\u308A\u307E\u305B\u3093\u3002",storyNoDependents:"\u3053\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u5F85\u3064\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002",addBlockerPlaceholder:"\u4F9D\u5B58\u5148\u3092\u691C\u7D22\u3057\u3066\u8FFD\u52A0\u2026",addDependentPlaceholder:"\u3053\u308C\u3092\u5F85\u3064\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u691C\u7D22\u3057\u3066\u8FFD\u52A0\u2026",noDependencyMatch:"\u4E00\u81F4\u3059\u308B\u30B9\u30C8\u30FC\u30EA\u30FC\u306F\u3042\u308A\u307E\u305B\u3093\u3002",blockerFinished:"\u5B8C\u4E86",removeBlockerAria:e=>`${e} \u3078\u306E\u4F9D\u5B58\u3092\u5916\u3059`,removeDependentAria:e=>`${e} \u304B\u3089\u306E\u4F9D\u5B58\u3092\u5916\u3059`,blocksChip:e=>`${e} \u4EF6\u3092\u30D6\u30ED\u30C3\u30AF`,waitsChip:e=>`${e} \u4EF6\u5F85\u3061`,blocksChipTitle:e=>`${e} \u4EF6\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u304C\u3053\u308C\u3092\u5F85\u3063\u3066\u3044\u307E\u3059`,waitsChipTitle:e=>`\u672A\u5B8C\u4E86\u306E ${e} \u4EF6\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u5F85\u3063\u3066\u3044\u307E\u3059`,storyEstimateLabel:"\u898B\u7A4D\u3082\u308A",unestimated:"\u306A\u3057",estimateText:(e,t)=>e===String(t)?e:`${e}\uFF08${t} pt\uFF09`,estimateChipTitle:e=>`\u898B\u7A4D\u3082\u308A: ${e}`,manageEstimates:"\u76EE\u76DB\u308A\u3092\u7BA1\u7406",linkUrlLabel:"URL",addLinkButton:"\u8FFD\u52A0",removeLinkAria:e=>`${e} \u3092\u5916\u3059`,deleteStoryButton:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u524A\u9664",storyCommentsLabel:"\u30B3\u30E1\u30F3\u30C8",reviewStoryButton:"\u30EC\u30D3\u30E5\u30FC\u30B3\u30E1\u30F3\u30C8",reviewStoryTitle:"\u3053\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u3064\u3044\u3066 Agent \u306B\u76F4\u3057\u3066\u307B\u3057\u3044\u3053\u3068\u3092\u30EC\u30D3\u30E5\u30FC\u30B3\u30E1\u30F3\u30C8\u306B\u66F8\u304F",storyStatusAria:e=>`\u30B9\u30C6\u30FC\u30BF\u30B9: ${e}`,addMember:"\u30E1\u30F3\u30D0\u30FC\u3092\u8FFD\u52A0",renameMember:"\u30E1\u30F3\u30D0\u30FC\u540D\u3092\u5909\u66F4",changeMemberTone:"\u30E1\u30F3\u30D0\u30FC\u306E\u8272\u3092\u5909\u66F4",deleteMember:"\u30E1\u30F3\u30D0\u30FC\u3092\u524A\u9664",reorderMember:"\u30E1\u30F3\u30D0\u30FC\u306E\u9806\u5E8F\u3092\u5909\u66F4",setStoryAssignee:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u62C5\u5F53\u8005\u3092\u5909\u66F4",memberGroup:"\u30E1\u30F3\u30D0\u30FC",memberNameLabel:"\u30E1\u30F3\u30D0\u30FC\u540D",noMembersTitle:"\u30E1\u30F3\u30D0\u30FC\u304C\u307E\u3060\u3044\u307E\u305B\u3093",noMembersBody:"\u30C1\u30FC\u30E0\u306E\u30E1\u30F3\u30D0\u30FC\u3092\u8FFD\u52A0\u3057\u3001\u5404\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u5F15\u304D\u53D7\u3051\u308B\u4EBA\u306B\u5272\u308A\u5F53\u3066\u307E\u3059\u3002",newMemberButton:"+ \u30E1\u30F3\u30D0\u30FC",deleteMemberAria:"\u3053\u306E\u30E1\u30F3\u30D0\u30FC\u3092\u524A\u9664",storyAssigneeLabel:"\u62C5\u5F53\u8005",noAssignee:"\u306A\u3057",storyNoMembers:"\u30E1\u30F3\u30D0\u30FC\u306F\u307E\u3060\u3044\u307E\u305B\u3093\u3002",manageMembers:"\u30E1\u30F3\u30D0\u30FC\u3092\u7BA1\u7406",assigneeChipTitle:e=>`\u62C5\u5F53: ${e}`,noAssigneeFilter:"\u62C5\u5F53\u8005\u306A\u3057",moreTabsLabel:"\u307B\u304B\u306E\u30BF\u30D6",enableFeature:"\u6A5F\u80FD\u3092\u6709\u52B9\u5316",disableFeature:"\u6A5F\u80FD\u3092\u7121\u52B9\u5316",featureName:e=>({estimates:"\u898B\u7A4D\u3082\u308A\u3068\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3",assignees:"\u30E1\u30F3\u30D0\u30FC\u3068\u62C5\u5F53\u8005"})[e],featureHint:e=>({estimates:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u898B\u7A4D\u3082\u308A\u3068\u3001\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3054\u3068\u306E\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u3002",assignees:"\u30C1\u30FC\u30E0\u306E\u30E1\u30F3\u30D0\u30FC\u3068\u3001\u5404\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u62C5\u5F53\u8005\u3002"})[e],featuresNote:"\u7121\u52B9\u306B\u3057\u3066\u3082\u96A0\u3059\u3060\u3051\u3067\u3001\u5165\u529B\u3057\u305F\u5185\u5BB9\u306F\u6B8B\u308A\u307E\u3059\u3002",newActivityName:"\u65B0\u3057\u3044\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",newStepName:"\u65B0\u3057\u3044\u30B9\u30C6\u30C3\u30D7",newMilestoneName:"\u65B0\u3057\u3044\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",newStoryName:"\u65B0\u3057\u3044\u30B9\u30C8\u30FC\u30EA\u30FC",newStatusName:"\u65B0\u3057\u3044\u30B9\u30C6\u30FC\u30BF\u30B9",newLabelName:"\u65B0\u3057\u3044\u30E9\u30D9\u30EB",newMemberName:"\u65B0\u3057\u3044\u30E1\u30F3\u30D0\u30FC",newEstimateName:"\u65B0\u898F"}}),gs=(e,t,s)=>{const a=new Date(t);switch(s){case"day":case"week":case"biweek":return`${a.getMonth()+1}/${a.getDate()}`;case"month":case"quarter":return new Intl.DateTimeFormat(e,{month:"short",...a.getMonth()===0?{year:"numeric"}:{}}).format(a);case"year":return new Intl.DateTimeFormat(e,{year:"numeric"}).format(a)}},Cn=["map","table","milestones","burndown"],Bn={burndown:"estimates"},fs=e=>Cn.filter(t=>{const s=Bn[t];return s===void 0||P(e,s)}),ys=(e,t)=>fs(e).find(s=>s===t.tab)??"map",$e=(e,t)=>as(e,t.statusId),vs=(e,t)=>{const s=T(e,t)?.blockedBy??[];return{blockers:s,openBlockers:s.filter(a=>{const n=T(e,a);return n!==void 0&&!$e(e,n)}).length,dependents:e.stories.filter(a=>a.blockedBy?.includes(t)).map(a=>a.id)}},Yn=(e,t)=>{const s=new Set(T(e,t)?.blockedBy??[]);return e.stories.filter(a=>a.id!==t&&!s.has(a.id)&&!at(e.stories,a.id,t))},Un=(e,t)=>e.stories.filter(s=>s.id!==t&&!s.blockedBy?.includes(t)&&!at(e.stories,t,s.id)),Pn=["critical-path"],Ge=e=>Pn.find(t=>t===e.highlight)??null,zn=(e,t)=>{if($e(e,t))return 0;const s=ge(e)==="stories"?1:rs(e,t),a=Math.max(0,e.statuses.findIndex(n=>n.id===t.statusId));return s*(os(e)[a]??1)},Fn=(e,t)=>Ge(t)==="critical-path"?ks(e).ids:null,Gn=1e-9,ks=e=>{const t=new Map(e.stories.map(d=>[d.id,zn(e,d)]).filter(([,d])=>d>0)),s=new Map,a=new Map;for(const d of e.stories)if(t.has(d.id))for(const p of d.blockedBy??[])t.has(p)&&(s.set(d.id,[...s.get(d.id)??[],p]),a.set(p,[...a.get(p)??[],d.id]));const n=ws(t,s),i=ws(t,a),o=[...t].map(([d,p])=>[d,n(d)+i(d)-p]),r=Math.max(0,...o.map(([,d])=>d));return{ids:new Set(o.filter(([,d])=>r-d<Gn).map(([d])=>d)),work:r}},ws=(e,t)=>{const s=new Map,a=n=>{const i=s.get(n);if(i!==void 0)return i;const o=(e.get(n)??0)+Math.max(0,...(t.get(n)??[]).map(a));return s.set(n,o),o};return a},Te=["status","label","estimate","assignee"],ie="~none",oe={key:"done",value:"show"},Ss=(e,t)=>t[oe.key]===oe.value||e.statuses.length<2?new Set:new Set(e.statuses.filter(s=>as(e,s.id)).map(s=>s.id)),fe=(e,t)=>{switch(t){case"status":return e.statuses.map(s=>s.id);case"label":return e.labels.length===0?[]:[...e.labels.map(s=>s.id),ie];case"estimate":return!P(e,"estimates")||e.estimates.length===0?[]:[...e.estimates.map(s=>s.id),ie];case"assignee":return!P(e,"assignees")||e.members.length===0?[]:[...e.members.map(s=>s.id),ie]}},Ve=(e,t)=>{const s=Ss(e,t),a=n=>{const i=t[n];if(i===void 0||i==="")return new Set;const o=new Set(i.split(","));return new Set(fe(e,n).filter(r=>o.has(r)&&!s.has(r)))};return{status:a("status"),label:a("label"),estimate:a("estimate"),assignee:a("assignee"),hiddenStatusIds:s}},Es=(e,t,s)=>{const a=fe(e,t).filter(n=>s.has(n));return a.length===0?null:a.join(",")},Vn=(e,t)=>{const s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s},Hn=e=>Te.some(t=>e[t].size>0),$s=(e,t)=>{const s=t.labelIds??[];return(t.statusId===void 0||!e.hiddenStatusIds.has(t.statusId))&&He(e.status,t.statusId===void 0?[]:[t.statusId])&&He(e.label,s.length===0?[ie]:s)&&He(e.estimate,[t.estimateId??ie])&&He(e.assignee,[t.assigneeId??ie])},He=(e,t)=>e.size===0||t.some(s=>e.has(s)),C=(e,t,s)=>{const a=typeof s=="string"?s:"",n=typeof t=="string"?t:void 0;return n===void 0?e.toValue(a):e.fromTo(n,a)},pe=(e,t)=>typeof t=="string"?e.afterName(t):e.toFront,Kn={SET_ACTIVITY_NAME:(e,t,s)=>({title:e.renameActivity,tone:"update",body:C(e,te(s,t.target.id)?.name,k(v.SET_ACTIVITY_NAME,t).name??"")}),SET_ACTIVITY_ACTOR:(e,t,s)=>{const a=k(v.SET_ACTIVITY_ACTOR,t).actor.trim();return{title:e.changeActivityActor,tone:"update",body:a===""?e.removed(te(s,t.target.id)?.actor??""):C(e,te(s,t.target.id)?.actor,a)}},SET_STEP_NAME:(e,t,s)=>({title:e.renameStep,tone:"update",body:C(e,N(s,t.target.id)?.step.name,k(v.SET_STEP_NAME,t).name??"")}),REORDER_STEP:(e,t)=>({title:e.reorderStep,tone:"move",body:pe(e,k(v.REORDER_STEP,t).after)}),REORDER_ACTIVITY:(e,t,s)=>{const a=k(v.REORDER_ACTIVITY,t).after;return{title:e.reorderActivity,tone:"move",body:pe(e,a===null?null:te(s,a)?.name??a)}},ADD_ACTIVITY:(e,t)=>({title:e.addActivity,tone:"create",body:e.added(String(k(v.ADD_ACTIVITY,t).name??""))}),ADD_STEP:(e,t)=>({title:e.addStep,tone:"create",body:e.added(String(k(v.ADD_STEP,t).name??""))}),DELETE_ACTIVITY:(e,t,s)=>({title:e.deleteActivity,tone:"delete",body:e.removed(te(s,t.target.id)?.name??t.target.id)}),DELETE_STEP:(e,t,s)=>({title:e.deleteStep,tone:"delete",body:e.removed(N(s,t.target.id)?.step.name??t.target.id)}),SET_STORY_NAME:(e,t,s)=>({title:e.renameStory,tone:"update",body:C(e,T(s,t.target.id)?.name,k(v.SET_STORY_NAME,t).name??"")}),SET_STORY_DESCRIPTION:(e,t)=>({title:e.updateStoryDescription,tone:"update",body:e.toValue(String(k(v.SET_STORY_DESCRIPTION,t).description??"").slice(0,90))}),SET_STORY_MILESTONE:(e,t,s)=>{const a=k(v.SET_STORY_MILESTONE,t).milestoneId;return{title:e.changeMilestone,tone:"move",body:a==null?e.toUnassigned:e.toName(U(s,String(a))?.name??String(a))}},MOVE_STORY:(e,t,s)=>({title:e.moveStory,tone:"move",body:e.toName(N(s,String(k(v.MOVE_STORY,t).stepId))?.step.name??String(k(v.MOVE_STORY,t).stepId??""))}),REORDER_STORY:(e,t)=>({title:e.reorderStory,tone:"move",body:pe(e,k(v.REORDER_STORY,t).after)}),ADD_STORY:(e,t)=>({title:e.addStory,tone:"create",body:e.added(String(k(v.ADD_STORY,t).name??""))}),DELETE_STORY:(e,t,s)=>({title:e.deleteStory,tone:"delete",body:e.removed(T(s,t.target.id)?.name??t.target.id)}),SET_MILESTONE_NAME:(e,t,s)=>({title:e.renameMilestone,tone:"update",body:C(e,U(s,t.target.id)?.name,k(v.SET_MILESTONE_NAME,t).name??"")}),ADD_MILESTONE:(e,t)=>({title:e.addMilestone,tone:"create",body:e.added(String(k(v.ADD_MILESTONE,t).name??""))}),DELETE_MILESTONE:(e,t,s)=>({title:e.deleteMilestone,tone:"delete",body:e.removed(U(s,t.target.id)?.name??t.target.id)}),REORDER_MILESTONE:(e,t)=>({title:e.reorderMilestone,tone:"move",body:pe(e,k(v.REORDER_MILESTONE,t).after)}),ADD_STORY_LINK:(e,t)=>{const{url:s,label:a}=k(v.ADD_STORY_LINK,t);return{title:e.addStoryLink,tone:"create",body:e.added(a??Re(s).title)}},REMOVE_STORY_LINK:(e,t,s)=>{const{url:a}=k(v.REMOVE_STORY_LINK,t),n=T(s,t.target.id)?.links?.find(i=>i.url===a);return{title:e.removeStoryLink,tone:"delete",body:e.removed(n?.label??Re(a).title)}},ADD_STORY_COMMENT:(e,t)=>({title:e.addStoryComment,tone:"create",body:e.added(k(v.ADD_STORY_COMMENT,t).body)}),DELETE_STORY_COMMENT:(e,t,s)=>{const{commentId:a}=k(v.DELETE_STORY_COMMENT,t),n=T(s,t.target.id)?.comments?.find(i=>i.id===a);return{title:e.deleteStoryComment,tone:"delete",body:e.removed(n?.body??a)}},SET_STORY_STATUS:(e,t,s)=>{const a=k(v.SET_STORY_STATUS,t).statusId;return{title:e.changeStoryStatus,tone:"update",body:e.toName(D(s,a)?.name??a)}},ADD_STATUS:(e,t)=>({title:e.addStatus,tone:"create",body:e.added(k(v.ADD_STATUS,t).name)}),SET_STATUS_NAME:(e,t,s)=>({title:e.renameStatus,tone:"update",body:C(e,D(s,t.target.id)?.name,k(v.SET_STATUS_NAME,t).name)}),SET_STATUS_TONE:(e,t,s)=>{const a=D(s,t.target.id)?.tone,n=k(v.SET_STATUS_TONE,t).tone;return{title:e.changeStatusTone,tone:"update",body:C(e,a===void 0?void 0:e.toneName(a),e.toneName(n))}},SET_STATUS_ICON:(e,t,s)=>{const a=D(s,t.target.id)?.icon,n=k(v.SET_STATUS_ICON,t).icon;return{title:e.changeStatusIcon,tone:"update",body:C(e,a===void 0?void 0:e.iconName(a),e.iconName(n))}},DELETE_STATUS:(e,t,s)=>({title:e.deleteStatus,tone:"delete",body:e.removed(D(s,t.target.id)?.name??t.target.id)}),REORDER_STATUS:(e,t)=>({title:e.reorderStatus,tone:"move",body:pe(e,k(v.REORDER_STATUS,t).after)}),ADD_LABEL:(e,t)=>({title:e.addLabel,tone:"create",body:e.added(k(v.ADD_LABEL,t).name)}),SET_LABEL_NAME:(e,t,s)=>({title:e.renameLabel,tone:"update",body:C(e,X(s,t.target.id)?.name,k(v.SET_LABEL_NAME,t).name)}),SET_LABEL_TONE:(e,t,s)=>{const a=X(s,t.target.id)?.tone,n=k(v.SET_LABEL_TONE,t).tone;return{title:e.changeLabelTone,tone:"update",body:C(e,a===void 0?void 0:e.toneName(a),e.toneName(n))}},DELETE_LABEL:(e,t,s)=>({title:e.deleteLabel,tone:"delete",body:e.removed(X(s,t.target.id)?.name??t.target.id)}),REORDER_LABEL:(e,t)=>({title:e.reorderLabel,tone:"move",body:pe(e,k(v.REORDER_LABEL,t).after)}),ADD_STORY_LABEL:(e,t,s)=>{const a=k(v.ADD_STORY_LABEL,t).labelId;return{title:e.addStoryLabel,tone:"create",body:e.added(X(s,a)?.name??a)}},REMOVE_STORY_LABEL:(e,t,s)=>{const a=k(v.REMOVE_STORY_LABEL,t).labelId;return{title:e.removeStoryLabel,tone:"delete",body:e.removed(X(s,a)?.name??a)}},ADD_STORY_BLOCKER:(e,t,s)=>{const a=k(v.ADD_STORY_BLOCKER,t).blockerId;return{title:e.addStoryBlocker,tone:"create",body:e.added(T(s,a)?.name??a)}},REMOVE_STORY_BLOCKER:(e,t,s)=>{const a=k(v.REMOVE_STORY_BLOCKER,t).blockerId;return{title:e.removeStoryBlocker,tone:"delete",body:e.removed(T(s,a)?.name??a)}},SET_MILESTONE_DUE_DATE:(e,t,s)=>{const a=k(v.SET_MILESTONE_DUE_DATE,t).dueDate;return{title:e.changeMilestoneDueDate,tone:a===null?"delete":"update",body:a===null?e.noDueDate:C(e,U(s,t.target.id)?.dueDate,a)}},SET_STATUS_WEIGHT:(e,t,s)=>{const a=D(s,t.target.id)?.weight,n=k(v.SET_STATUS_WEIGHT,t).weight;return{title:e.changeStatusWeight,tone:"update",body:C(e,a===void 0?void 0:String(a),String(n))}},SET_DONE_STATUS:(e,t,s)=>({title:e.setDoneStatus,tone:"update",body:C(e,ss(s)?.name,D(s,t.target.id)?.name??t.target.id)}),SET_MEASURE:(e,t,s)=>({title:e.setMeasure,tone:"update",body:C(e,e.measureName(ge(s)),e.measureName(k(v.SET_MEASURE,t).measure))}),ADD_MEMBER:(e,t)=>({title:e.addMember,tone:"create",body:e.added(k(v.ADD_MEMBER,t).name)}),SET_MEMBER_NAME:(e,t,s)=>({title:e.renameMember,tone:"update",body:C(e,V(s,t.target.id)?.name,k(v.SET_MEMBER_NAME,t).name)}),SET_MEMBER_TONE:(e,t,s)=>{const a=V(s,t.target.id)?.tone,n=k(v.SET_MEMBER_TONE,t).tone;return{title:e.changeMemberTone,tone:"update",body:C(e,a===void 0?void 0:e.toneName(a),e.toneName(n))}},DELETE_MEMBER:(e,t,s)=>({title:e.deleteMember,tone:"delete",body:e.removed(V(s,t.target.id)?.name??t.target.id)}),REORDER_MEMBER:(e,t)=>({title:e.reorderMember,tone:"move",body:pe(e,k(v.REORDER_MEMBER,t).after)}),SET_STORY_ASSIGNEE:(e,t,s)=>{const a=k(v.SET_STORY_ASSIGNEE,t).memberId;if(a===null){const n=V(s,T(s,t.target.id)?.assigneeId);return{title:e.setStoryAssignee,tone:"delete",body:e.removed(n?.name??e.noAssignee)}}return{title:e.setStoryAssignee,tone:"update",body:e.toValue(V(s,a)?.name??a)}},ADD_ESTIMATE:(e,t)=>{const{name:s,points:a}=k(v.ADD_ESTIMATE,t);return{title:e.addEstimate,tone:"create",body:e.added(e.estimateText(s,a))}},SET_ESTIMATE_NAME:(e,t,s)=>({title:e.renameEstimate,tone:"update",body:C(e,z(s,t.target.id)?.name,k(v.SET_ESTIMATE_NAME,t).name)}),SET_ESTIMATE_POINTS:(e,t,s)=>{const a=z(s,t.target.id)?.points,n=k(v.SET_ESTIMATE_POINTS,t).points;return{title:e.changeEstimatePoints,tone:"update",body:C(e,a===void 0?void 0:String(a),String(n))}},DELETE_ESTIMATE:(e,t,s)=>({title:e.deleteEstimate,tone:"delete",body:e.removed(z(s,t.target.id)?.name??t.target.id)}),REORDER_ESTIMATE:(e,t)=>({title:e.reorderEstimate,tone:"move",body:pe(e,k(v.REORDER_ESTIMATE,t).after)}),SET_STORY_ESTIMATE:(e,t,s)=>{const a=k(v.SET_STORY_ESTIMATE,t).estimateId;return a===null?{title:e.setStoryEstimate,tone:"delete",body:e.toValue(e.unestimated)}:{title:e.setStoryEstimate,tone:"update",body:e.toValue(z(s,a)?.name??a)}},RECORD_SNAPSHOT:(e,t)=>{const{at:s,tally:a}=k(v.RECORD_SNAPSHOT,t),n=a.reduce((i,o)=>i+o.stories,0);return{title:e.recordSnapshot,tone:"create",body:e.snapshotSummary(ue(s),n)}},DELETE_SNAPSHOT:(e,t,s)=>{const a=Ee(s,t.target.id);return{title:e.deleteSnapshot,tone:"delete",body:e.removed(a?ue(a.at):t.target.id)}},SET_FEATURE:(e,t)=>{const{feature:s,enabled:a}=k(v.SET_FEATURE,t);return{title:a?e.enableFeature:e.disableFeature,tone:a?"create":"delete",body:e.featureName(s)}}},Ts=(e,t,s,a)=>{let n;try{const i=Kn[t.type];n=i?i(e,t,a??s):{title:t.type,tone:"meta"}}catch{n={title:t.type,tone:"meta"}}return{title:n.title,targetLabel:_s(e,s,t.target),tone:n.tone,...n.body===void 0?{}:{summary:n.body}}},xs=e=>`${e.type} ${I(e.target)} ${JSON.stringify(e.payload)}`,_s=(e,t,s)=>{try{switch(s.type){case"activity":{const a=te(t,s.id);return a?e.targetLabel(e.activityGroup,a.name):e.targetMissing(e.activityGroup,s.id)}case"step":{const a=N(t,s.id)?.step;return a?e.targetLabel(e.stepGroup,a.name):e.targetMissing(e.stepGroup,s.id)}case"story":{const a=T(t,s.id);return a?e.targetLabel(e.storyGroup,a.name):e.targetMissing(e.storyGroup,s.id)}case"milestone":{const a=U(t,s.id);return a?e.targetLabel(e.milestoneGroup,a.name):e.targetMissing(e.milestoneGroup,s.id)}case"status":{const a=D(t,s.id);return a?e.targetLabel(e.statusGroup,a.name):e.targetMissing(e.statusGroup,s.id)}case"label":{const a=X(t,s.id);return a?e.targetLabel(e.labelGroup,a.name):e.targetMissing(e.labelGroup,s.id)}case"member":{const a=V(t,s.id);return a?e.targetLabel(e.memberGroup,a.name):e.targetMissing(e.memberGroup,s.id)}case"estimate":{const a=z(t,s.id);return a?e.targetLabel(e.estimateGroup,a.name):e.targetMissing(e.estimateGroup,s.id)}case"snapshot":{const a=Ee(t,s.id);return a?e.targetLabel(e.snapshotGroup,ue(a.at)):e.targetMissing(e.snapshotGroup,s.id)}case"page":return e.targetLabel(e.mapGroup,ht(t));default:return`${s.type} \xB7 ${s.id}`}}catch{return`${s.type} \xB7 ${s.id}`}},Is=(e,t,s)=>{const a=[{value:"page:usm",label:e.wholeMap,group:e.mapGroup}];for(const n of t.activities){a.push({value:I({type:"activity",id:n.id}),label:n.name,group:e.activityGroup});for(const i of n.steps)a.push({value:I({type:"step",id:ce(n.id,i.id)}),label:`${n.name} \u203A ${i.name}`,group:e.stepGroup})}for(const n of t.milestones)a.push({value:I({type:"milestone",id:n.id}),label:n.name,group:e.milestoneGroup});for(const n of t.statuses)a.push({value:I({type:"status",id:n.id}),label:n.name,group:e.statusGroup});for(const n of t.labels)a.push({value:I({type:"label",id:n.id}),label:n.name,group:e.labelGroup});for(const n of t.members)a.push({value:I({type:"member",id:n.id}),label:n.name,group:e.memberGroup});for(const n of t.estimates)a.push({value:I({type:"estimate",id:n.id}),label:e.estimateText(n.name,n.points),group:e.estimateGroup});for(const n of t.snapshots)a.push({value:I({type:"snapshot",id:n.id}),label:ue(n.at),group:e.snapshotGroup});for(const n of t.stories)a.push({value:I({type:"story",id:n.id}),label:n.name,group:e.storyGroup});return a},As=(e,t,s)=>{const a=t.stories.find(n=>n.id===s.story);if(a)return{value:I({type:"story",id:a.id}),label:a.name,group:e.storyGroup};for(const n of t.activities){const i=n.steps.find(o=>o.id===s.step);if(i)return{value:I({type:"step",id:ce(n.id,i.id)}),label:i.name,group:e.stepGroup}}return null},ht=e=>e.title??"User Story Mapping",qn=(e,t)=>{switch(t.type){case"story":{const s=T(e,t.id);return{tab:null,highlight:null,...Object.fromEntries(Te.map(a=>[a,null])),...s&&$e(e,s)?{[oe.key]:oe.value}:{}}}case"step":case"activity":return{tab:null,view:null};case"milestone":return{tab:"milestones"};case"status":case"label":case"member":return null;case"estimate":case"snapshot":return P(e,"estimates")?{tab:"burndown"}:null;default:return null}},Ms=(e,t)=>{const s=N(e,t.step),a=s?.activity??te(e,t.activity)??e.activities[0],n=s?.step??a?.steps.find(m=>m.id===t.step)??a?.steps[0],i=On(e,t.story),o={...t};a?o.activity=a.id:delete o.activity,n?o.step=n.id:delete o.step,i?o.story=i.id:delete o.story,o.view=t.view==="group"?"group":"activity";const r=Ve(e,t);for(const m of Te){const y=Es(e,m,r[m]);y===null?delete o[m]:o[m]=y}t[oe.key]!==oe.value&&delete o[oe.key];const d=ys(e,t);d==="map"?delete o.tab:o.tab=d,U(e,t.milestone)||delete o.milestone;const p=Ge(t);return p===null?delete o.highlight:o.highlight=p,o},Ls=(e,t)=>{switch(t.type){case"activity":return te(e,t.id)!==void 0;case"step":return N(e,t.id)!==void 0;case"story":return T(e,t.id)!==void 0;case"milestone":return U(e,t.id)!==void 0;case"status":return D(e,t.id)!==void 0;case"label":return X(e,t.id)!==void 0;case"member":return V(e,t.id)!==void 0;case"estimate":return z(e,t.id)!==void 0;case"snapshot":return Ee(e,t.id)!==void 0;case"page":return!0;default:return!1}},Ds=e=>{const t=ne(e);return{kind:"view",name:"usm",label:"User Story Mapping",parseBase:Zt,emptyBase:dt,actions:v,apply:cs,canonicalState:_n,hasTarget:Ls,canonicalTarget:(s,a)=>{if(a.type!=="step")return a;const n=N(s,a.id);return n?{...a,id:ce(n.activity.id,n.step.id)}:a},describe:(s,a,n)=>Ts(t,s,a,n),serialize:xs,resolveNavigation:Ms,navigationFor:qn,commentTargets:(s,a)=>Is(t,s),currentTarget:(s,a)=>As(t,s,a),settings:s=>({items:Ce.map(a=>{const n=P(s,a);return{key:a,label:t.featureName(a),hint:t.featureHint(a),on:n,toggle:{type:"SET_FEATURE",target:{type:"page",id:"usm"},payload:{feature:a,enabled:!n}}}}),note:t.featuresNote}),title:ht}},Rs=.5,Wn=({widths:e,available:t,gap:s,moreWidth:a,keep:n})=>{if(e.reduce((m,y)=>m+y,0)+s*Math.max(0,e.length-1)<=t+Rs)return[];const o=t-a+Rs,r=new Set;let d=0;const p=m=>{d+=(r.size===0?0:s)+(e[m]??0),r.add(m)};n>=0&&n<e.length&&p(n);for(const[m,y]of e.entries())if(!r.has(m)){if(d+(r.size===0?0:s)+y>o)break;p(m)}return e.flatMap((m,y)=>r.has(y)?[]:[y])},Os=new Set;class jn{#t;#e;#n=Os;#i=0;#a=null;#s=null;constructor(t,s){this.#t=t,this.#e=s,t.addController(this)}get hidden(){return this.#n}get minimum(){return this.#i}hostConnected(){typeof ResizeObserver>"u"||(this.#a=new ResizeObserver(()=>this.#o()))}hostUpdated(){const t=this.#e.row();t!==this.#s&&(this.#s&&this.#a?.unobserve(this.#s),t&&this.#a?.observe(t),this.#s=t),this.#o()}hostDisconnected(){this.#a?.disconnect(),this.#a=null,this.#s=null}#o(){const t=this.#e.row();if(!t)return;const s=this.#e.items(t),a=s.map(E=>E.getBoundingClientRect().width),n=s.findIndex(E=>this.#e.kept(E)),i=s[0]?.parentElement,o=i?Ns(i):0,r=this.#e.more(t),d=r?r.getBoundingClientRect().width+Ns(t):0,p=Wn({widths:a,available:t.getBoundingClientRect().width,gap:o,moreWidth:d,keep:n}),m=new Set(p.flatMap(E=>{const S=s[E];return S?[this.#e.keyOf(S)]:[]})),y=Math.ceil((a[n]??0)+d);Xn(m,this.#n)&&y===this.#i||(this.#n=m.size===0?Os:m,this.#i=y,this.#t.requestUpdate())}}const Ns=e=>Number.parseFloat(getComputedStyle(e).columnGap)||0,Xn=(e,t)=>e.size===t.size&&[...e].every(s=>t.has(s)),bt=1440*60*1e3,Zn=48,Jn=8,Qn=(e,t,s,a)=>{const n={left:a.inset.left,top:a.inset.top,right:a.width-a.inset.right,bottom:a.height-a.inset.bottom},i=[...e.map($=>$.at),s,...t===null?[]:[t]];let o=Math.min(...i),r=Math.max(...i);r-o<bt&&(o-=bt/2,r+=bt/2);const d=ei(Math.max(0,...e.map($=>$.value))),p=d.at(-1)??1,m=$=>n.left+($-o)/(r-o)*(n.right-n.left),y=$=>n.bottom-$/p*(n.bottom-n.top),E=e.map($=>({x:m($.at),y:y($.value),at:$.at,value:$.value,...$.snapshotId===void 0?{}:{snapshotId:$.snapshotId}})),S=E[0],A=si(o,r,Math.floor((n.right-n.left)/Zn));return{size:a,plot:n,line:E.map($=>`${xe($.x)},${xe($.y)}`).join(" "),dots:E,ideal:t===null||!S?null:{x1:S.x,y1:S.y,x2:m(t),y2:y(0)},nowX:m(s),dueX:t===null?null:m(t),yTicks:d.map($=>({y:y($),value:$})),valueTop:p,xUnit:A.unit,xTicks:A.ats.map($=>({x:m($),at:$})),domain:{start:o,end:r},idealSpan:t===null||!S?null:{at:S.at,value:S.value,due:t}}},ei=e=>{const t=ti(e/4),s=Math.max(1,Math.ceil(e/t));return Array.from({length:s+1},(a,n)=>n*t)},ti=e=>{if(e<=1)return 1;const t=10**Math.floor(Math.log10(e));return([1,2,2.5,5,10].find(a=>Number.isInteger(a*t)&&a*t>=e)??10)*t},xe=e=>Math.round(e*100)/100,si=(e,t,s)=>{const a=Math.max(1,s),n=["day","week","biweek","month","quarter"];for(const i of n){const o=Cs(i,e,t,a);if(o!==null)return{unit:i,ats:o}}return{unit:"year",ats:Cs("year",e,t,1/0)??[]}},Cs=(e,t,s,a)=>{const n=[];for(let i=ai(e,t);i<=s;i=ni(e,i)){if(n.length===a)return null;n.push(i)}return n},ai=(e,t)=>{const s=new Date(t),[a,n,i]=[s.getFullYear(),s.getMonth(),s.getDate()],o=(r,d)=>r.getTime()>=t?r.getTime():d().getTime();switch(e){case"day":return o(new Date(a,n,i),()=>new Date(a,n,i+1));case"week":case"biweek":{const r=o(new Date(a,n,i),()=>new Date(a,n,i+1)),d=new Date(r),p=(8-d.getDay())%7;return new Date(d.getFullYear(),d.getMonth(),d.getDate()+p).getTime()}case"month":return o(new Date(a,n,1),()=>new Date(a,n+1,1));case"quarter":{const r=n-n%3;return o(new Date(a,r,1),()=>new Date(a,r+3,1))}case"year":return o(new Date(a,0,1),()=>new Date(a+1,0,1))}},ni=(e,t)=>{const s=new Date(t),[a,n,i]=[s.getFullYear(),s.getMonth(),s.getDate()],o={day:1,week:7,biweek:14},r={month:1,quarter:3,year:12};return e==="day"||e==="week"||e==="biweek"?new Date(a,n,i+o[e]).getTime():new Date(a,n+r[e],1).getTime()},Bs=(e,t)=>{const{plot:s,domain:a,dots:n}=e,i=Math.min(s.right,Math.max(s.left,t)),o=n.reduce((E,S)=>E===null||Math.abs(S.x-i)<Math.abs(E.x-i)?S:E,null),r=o!==null&&Math.abs(o.x-i)<=Jn?o:null,d=r?.at??a.start+(i-s.left)/(s.right-s.left)*(a.end-a.start),p=r?.value??ii(n,d),m=oi(e,d),y=E=>E===null?null:xe(s.bottom-E/e.valueTop*(s.bottom-s.top));return{x:r?.x??i,at:d,actual:p,ideal:m,actualY:y(p),idealY:y(m),dot:r}},ii=(e,t)=>{const s=e.findIndex(i=>i.at>=t),a=e[s];if(!a)return null;if(a.at===t)return a.value;const n=e[s-1];return n?xe(n.value+(a.value-n.value)*(t-n.at)/(a.at-n.at)):null},oi=(e,t)=>{const s=e.idealSpan;return s===null||t<s.at||t>s.due?null:xe(s.value*(s.due-t)/(s.due-s.at))},M=e=>`--usm-tone: var(--dpk-${e==null||e==="gray"?"ink-faint":e})`,Ys={circle:O(an),lightbulb:O(ln),flag:O(dn),play:O(tn),clock:O(nn),eye:O(rn),pause:O(en),check:O(Ja),x:O(sn)},ri=O(Qa),di=e=>{if(e>=1)return Ys.check();const t=2*Math.PI*4.5;return l`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
2
2
  <circle cx="12" cy="12" r="10"></circle>
3
- ${e>0?B`<circle
3
+ ${e>0?Z`<circle
4
4
  class="si-pie"
5
5
  cx="12"
6
6
  cy="12"
@@ -8,14 +8,14 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
8
8
  stroke-dasharray=${`${e*t} ${t}`}
9
9
  transform="rotate(-90 12 12)"
10
10
  ></circle>`:u}
11
- </svg>`},re=e=>{const t=e===void 0?gi():e.icon==="progress"?fi(e.progress??1):Us[e.icon]();return l`<span class="status-icon">${t}</span>`},Ys=(e,t)=>e.length===0?u:l`<span class="status-bar" role="img" aria-label=${t}>
11
+ </svg>`},re=e=>{const t=e===void 0?ri():e.icon==="progress"?di(e.progress??1):Ys[e.icon]();return l`<span class="status-icon">${t}</span>`},Us=(e,t)=>e.length===0?u:l`<span class="status-bar" role="img" aria-label=${t}>
12
12
  ${e.map(s=>l`<span
13
13
  class="status-bar-part"
14
14
  data-status=${s.id}
15
15
  title=${`${s.name}: ${s.count}`}
16
16
  style=${`${M(s.tone)};flex-grow:${s.count}`}
17
17
  ></span>`)}
18
- </span>`,Ke=H`
18
+ </span>`,Ke=q`
19
19
  .status-icon {
20
20
  display: block;
21
21
  flex: none;
@@ -45,7 +45,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
45
45
  .status-bar-part[data-status=''] {
46
46
  background: color-mix(in srgb, var(--dpk-ink-faint) 30%, transparent);
47
47
  }
48
- `,yi=H`
48
+ `,li=q`
49
49
  :host {
50
50
  position: relative;
51
51
  display: block;
@@ -178,7 +178,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
178
178
  .bd-swatch[data-line='ideal'] {
179
179
  border-top: 1.5px dashed var(--dpk-ink-faint);
180
180
  }
181
- `;class vi extends Ae{static{this.styles=[yi]}static{this.properties={points:{attribute:!1},due:{attribute:!1},now:{attribute:!1},size:{attribute:!1},tone:{attribute:!1},label:{attribute:!1},readout:{state:!0}}}#t=new et(this);constructor(){super(),this.points=[],this.due=null,this.now=0,this.size={width:320,height:160,inset:{top:12,right:12,bottom:24,left:32}},this.tone="accent",this.label="",this.readout=null}render(){const t=ne(this.#t.locale),s=di(this.points,this.due,this.now,this.size),{size:a}=s,n=this.points.at(-1)?.value??0;return l`<div
181
+ `;class pi extends Ae{static{this.styles=[li]}static{this.properties={points:{attribute:!1},due:{attribute:!1},now:{attribute:!1},size:{attribute:!1},tone:{attribute:!1},label:{attribute:!1},readout:{state:!0}}}#t=new Qe(this);constructor(){super(),this.points=[],this.due=null,this.now=0,this.size={width:320,height:160,inset:{top:12,right:12,bottom:24,left:32}},this.tone="accent",this.label="",this.readout=null}render(){const t=ne(this.#t.locale),s=Qn(this.points,this.due,this.now,this.size),{size:a}=s,n=this.points.at(-1)?.value??0;return l`<div
182
182
  class="bd-plot"
183
183
  tabindex="0"
184
184
  role="img"
@@ -191,27 +191,27 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
191
191
  @keydown=${i=>this.#i(s,i)}
192
192
  >
193
193
  <svg class="bd-svg" viewBox=${`0 0 ${a.width} ${a.height}`} aria-hidden="true">
194
- ${ki(t,s)} ${wi(s)} ${this.readout?Si(s,this.readout):u}
194
+ ${ci(t,s)} ${ui(s)} ${this.readout?mi(s,this.readout):u}
195
195
  </svg>
196
- ${this.readout?Ei(t,s,this.readout):u}
197
- </div>`}#e(t,s){const a=this.renderRoot.querySelector("svg")?.getBoundingClientRect();!a||a.width===0||(this.readout=Bs(t,(s.clientX-a.left)/a.width*t.size.width))}#n(t,s){const a=t.dots[s];this.readout=a?Bs(t,a.x):null}#i(t,s){const a=t.dots.length-1,n=t.dots.findIndex(o=>o===this.readout?.dot),i=(()=>{switch(s.key){case"ArrowLeft":return Math.max(0,(n===-1?a:n)-1);case"ArrowRight":return Math.min(a,(n===-1?a:n)+1);case"Home":return 0;case"End":return a;default:return null}})();i!==null&&(s.preventDefault(),this.#n(t,i))}}const ki=(e,t)=>{const{plot:s,size:a}=t,n=a.height-8;return B`
198
- ${t.yTicks.map(i=>B`<line class="bd-grid-line" x1=${s.left} x2=${s.right} y1=${i.y} y2=${i.y}></line>
196
+ ${this.readout?hi(t,s,this.readout):u}
197
+ </div>`}#e(t,s){const a=this.renderRoot.querySelector("svg")?.getBoundingClientRect();!a||a.width===0||(this.readout=Bs(t,(s.clientX-a.left)/a.width*t.size.width))}#n(t,s){const a=t.dots[s];this.readout=a?Bs(t,a.x):null}#i(t,s){const a=t.dots.length-1,n=t.dots.findIndex(o=>o===this.readout?.dot),i=(()=>{switch(s.key){case"ArrowLeft":return Math.max(0,(n===-1?a:n)-1);case"ArrowRight":return Math.min(a,(n===-1?a:n)+1);case"Home":return 0;case"End":return a;default:return null}})();i!==null&&(s.preventDefault(),this.#n(t,i))}}const ci=(e,t)=>{const{plot:s,size:a}=t,n=a.height-8;return Z`
198
+ ${t.yTicks.map(i=>Z`<line class="bd-grid-line" x1=${s.left} x2=${s.right} y1=${i.y} y2=${i.y}></line>
199
199
  <text class="bd-tick" x=${s.left-6} y=${i.y} text-anchor="end" dominant-baseline="middle">${i.value}</text>`)}
200
- ${t.xTicks.map(i=>B`<line class="bd-grid-line" data-axis="x" x1=${i.x} x2=${i.x} y1=${s.top} y2=${s.bottom}></line>
200
+ ${t.xTicks.map(i=>Z`<line class="bd-grid-line" data-axis="x" x1=${i.x} x2=${i.x} y1=${s.top} y2=${s.bottom}></line>
201
201
  <text class="bd-tick" data-axis="x" x=${i.x} y=${n} text-anchor="middle">${e.axisDate(i.at,t.xUnit)}</text>`)}
202
- ${t.dueX===null||t.idealSpan===null?u:B`<line class="bd-due" x1=${t.dueX} x2=${t.dueX} y1=${s.top} y2=${s.bottom}></line>
202
+ ${t.dueX===null||t.idealSpan===null?u:Z`<line class="bd-due" x1=${t.dueX} x2=${t.dueX} y1=${s.top} y2=${s.bottom}></line>
203
203
  <text class="bd-marker" data-marker="due" x=${t.dueX-4} y=${s.top+10} text-anchor="end">${`${e.chartDue} ${e.axisDate(t.idealSpan.due,"day")}`}</text>`}
204
204
  <line class="bd-now" x1=${t.nowX} x2=${t.nowX} y1=${s.top} y2=${s.bottom}></line>
205
205
  <text class="bd-marker" data-marker="today" x=${t.nowX+4} y=${s.top+10} text-anchor="start">${e.chartToday}</text>
206
- `},wi=e=>B`
207
- ${e.ideal?B`<line class="bd-ideal" x1=${e.ideal.x1} y1=${e.ideal.y1} x2=${e.ideal.x2} y2=${e.ideal.y2}></line>`:u}
206
+ `},ui=e=>Z`
207
+ ${e.ideal?Z`<line class="bd-ideal" x1=${e.ideal.x1} y1=${e.ideal.y1} x2=${e.ideal.x2} y2=${e.ideal.y2}></line>`:u}
208
208
  <polyline class="bd-line" points=${e.line}></polyline>
209
- ${e.dots.map(t=>B`<circle class="bd-dot" data-now=${t.snapshotId===void 0?"true":u} cx=${t.x} cy=${t.y} r="3.5"></circle>`)}
210
- `,Si=(e,t)=>B`
209
+ ${e.dots.map(t=>Z`<circle class="bd-dot" data-now=${t.snapshotId===void 0?"true":u} cx=${t.x} cy=${t.y} r="3.5"></circle>`)}
210
+ `,mi=(e,t)=>Z`
211
211
  <line class="bd-cross" x1=${t.x} x2=${t.x} y1=${e.plot.top} y2=${e.plot.bottom}></line>
212
- ${t.idealY===null?u:B`<circle class="bd-mark" data-line="ideal" cx=${t.x} cy=${t.idealY} r="3.5"></circle>`}
213
- ${t.actualY===null?u:B`<circle class="bd-mark" data-line="actual" cx=${t.x} cy=${t.actualY} r="4.5"></circle>`}
214
- `,Ei=(e,t,s)=>{const{size:a,plot:n}=t,i=s.x>a.width*.6?"left":"right",o=s.dot?s.dot.snapshotId===void 0?`${e.chartNow} \xB7 ${ue(s.dot.at)}`:ue(s.dot.at):e.axisDate(s.at,"day");return l`<div
212
+ ${t.idealY===null?u:Z`<circle class="bd-mark" data-line="ideal" cx=${t.x} cy=${t.idealY} r="3.5"></circle>`}
213
+ ${t.actualY===null?u:Z`<circle class="bd-mark" data-line="actual" cx=${t.x} cy=${t.actualY} r="4.5"></circle>`}
214
+ `,hi=(e,t,s)=>{const{size:a,plot:n}=t,i=s.x>a.width*.6?"left":"right",o=s.dot?s.dot.snapshotId===void 0?`${e.chartNow} \xB7 ${ue(s.dot.at)}`:ue(s.dot.at):e.axisDate(s.at,"day");return l`<div
215
215
  class="bd-tip"
216
216
  data-testid="usm-chart-readout"
217
217
  data-side=${i}
@@ -224,22 +224,22 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
224
224
  ${s.ideal===null?u:l`<span class="bd-tip-row" data-line="ideal"
225
225
  ><span class="bd-swatch" data-line="ideal"></span>${e.chartIdeal}<b>${s.ideal}</b></span
226
226
  >`}
227
- </div>`},$i=()=>{customElements.get("dpk-internal-usm-burndown-chart")||customElements.define("dpk-internal-usm-burndown-chart",vi)},xi=e=>{const t=e.stories.length;return{rows:e.labels.map((a,n)=>{const i=e.stories.filter(o=>o.labelIds?.includes(a.id)).length;return{id:a.id,name:a.name,tone:a.tone,previousId:e.labels[n-1]?.id??null,nextId:e.labels[n+1]?.id??null,storyCount:i,share:t===0?0:i/t}})}},Ti=e=>{const t=e.stories.length;return{rows:e.members.map((a,n)=>{const i=e.stories.filter(o=>o.assigneeId===a.id).length;return{id:a.id,name:a.name,tone:a.tone,previousId:e.members[n-1]?.id??null,nextId:e.members[n+1]?.id??null,storyCount:i,share:t===0?0:i/t}})}},Ps=(e,t)=>{const s=J("new-activity",j(t.state));if(!t.dispatch({type:"ADD_ACTIVITY",target:{type:"page",id:"usm"},payload:{id:s,name:e.newActivityName}}).ok)return;const n=J("new-step",[...j(t.state),s]);t.dispatch({type:"ADD_STEP",target:{type:"activity",id:s},payload:{id:n,name:e.newStepName}}),t.navigate({activity:s,step:null,story:null})},_i=(e,t,s)=>{const a=J("new-step",j(t.state));t.dispatch({type:"ADD_STEP",target:{type:"activity",id:s},payload:{id:a,name:e.newStepName}})},zs=(e,t)=>{const s=J("new-milestone",j(t.state));t.dispatch({type:"ADD_MILESTONE",target:{type:"page",id:"usm"},payload:{id:s,name:e.newMilestoneName}})},Fs=(e,t,s,a,n)=>{const i=J("new-story",j(t.state));t.dispatch({type:"ADD_STORY",target:{type:"step",id:a},payload:{id:i,name:e.newStoryName,activityId:s,...n===void 0?{}:{milestoneId:n},number:ls(t.base,t.state)}}).ok&&t.navigate({activity:s,step:a,story:i})},Ii=(e,t)=>{const s=J("new-status",j(t.state));t.dispatch({type:"ADD_STATUS",target:{type:"page",id:"usm"},payload:{id:s,name:e.newStatusName,tone:dt(t.state.statuses.length)}})},Ai=(e,t)=>{const s=J("new-label",j(t.state));t.dispatch({type:"ADD_LABEL",target:{type:"page",id:"usm"},payload:{id:s,name:e.newLabelName,tone:Be(t.state.labels.length)}})},Mi=(e,t)=>{const s=J("new-member",j(t.state));t.dispatch({type:"ADD_MEMBER",target:{type:"page",id:"usm"},payload:{id:s,name:e.newMemberName,tone:Be(t.state.members.length)}})},Li=(e,t)=>{const s=J("new-estimate",j(t.state)),a=Math.max(0,...t.state.estimates.map(n=>n.points))+1;t.dispatch({type:"ADD_ESTIMATE",target:{type:"page",id:"usm"},payload:{id:s,name:e.newEstimateName,points:a}})},Di=(e,t)=>{const s=J(`snapshot-${t.toISOString().slice(0,10)}`,j(e.state));e.dispatch({type:"RECORD_SNAPSHOT",target:{type:"page",id:"usm"},payload:{id:s,at:t.toISOString(),tally:rs(e.state)}})},Ri=(e,t,s,a)=>l`
227
+ </div>`},bi=()=>{customElements.get("dpk-internal-usm-burndown-chart")||customElements.define("dpk-internal-usm-burndown-chart",pi)},gi=e=>{const t=e.stories.length;return{rows:e.labels.map((a,n)=>{const i=e.stories.filter(o=>o.labelIds?.includes(a.id)).length;return{id:a.id,name:a.name,tone:a.tone,previousId:e.labels[n-1]?.id??null,nextId:e.labels[n+1]?.id??null,storyCount:i,share:t===0?0:i/t}})}},fi=e=>{const t=e.stories.length;return{rows:e.members.map((a,n)=>{const i=e.stories.filter(o=>o.assigneeId===a.id).length;return{id:a.id,name:a.name,tone:a.tone,previousId:e.members[n-1]?.id??null,nextId:e.members[n+1]?.id??null,storyCount:i,share:t===0?0:i/t}})}},Ps=(e,t)=>{const s=J("new-activity",W(t.state));if(!t.dispatch({type:"ADD_ACTIVITY",target:{type:"page",id:"usm"},payload:{id:s,name:e.newActivityName}}).ok)return;const n=J("new-step",[...W(t.state),s]);t.dispatch({type:"ADD_STEP",target:{type:"activity",id:s},payload:{id:n,name:e.newStepName}}),t.navigate({activity:s,step:null,story:null})},yi=(e,t,s)=>{const a=J("new-step",W(t.state));t.dispatch({type:"ADD_STEP",target:{type:"activity",id:s},payload:{id:a,name:e.newStepName}})},zs=(e,t)=>{const s=J("new-milestone",W(t.state));t.dispatch({type:"ADD_MILESTONE",target:{type:"page",id:"usm"},payload:{id:s,name:e.newMilestoneName}})},Fs=(e,t,s,a,n)=>{const i=J("new-story",W(t.state));t.dispatch({type:"ADD_STORY",target:{type:"step",id:a},payload:{id:i,name:e.newStoryName,activityId:s,...n===void 0?{}:{milestoneId:n},number:ps(t.base,t.state)}}).ok&&t.navigate({activity:s,step:a,story:i})},vi=(e,t)=>{const s=J("new-status",W(t.state));t.dispatch({type:"ADD_STATUS",target:{type:"page",id:"usm"},payload:{id:s,name:e.newStatusName,tone:rt(t.state.statuses.length)}})},ki=(e,t)=>{const s=J("new-label",W(t.state));t.dispatch({type:"ADD_LABEL",target:{type:"page",id:"usm"},payload:{id:s,name:e.newLabelName,tone:Ye(t.state.labels.length)}})},wi=(e,t)=>{const s=J("new-member",W(t.state));t.dispatch({type:"ADD_MEMBER",target:{type:"page",id:"usm"},payload:{id:s,name:e.newMemberName,tone:Ye(t.state.members.length)}})},Si=(e,t)=>{const s=J("new-estimate",W(t.state)),a=Math.max(0,...t.state.estimates.map(n=>n.points))+1;t.dispatch({type:"ADD_ESTIMATE",target:{type:"page",id:"usm"},payload:{id:s,name:e.newEstimateName,points:a}})},Ei=(e,t)=>{const s=J(`snapshot-${t.toISOString().slice(0,10)}`,W(e.state));e.dispatch({type:"RECORD_SNAPSHOT",target:{type:"page",id:"usm"},payload:{id:s,at:t.toISOString(),tally:ds(e.state)}})},$i=(e,t,s,a)=>l`
228
228
  <section class="st-overview" data-testid="usm-statuses">
229
229
  ${s.rows.length===0?l`<div class="empty">
230
230
  <h2>${e.noStatusesTitle}</h2>
231
231
  <p>${e.noStatusesBody}</p>
232
232
  </div>`:u}
233
233
  <ol class="st-list">
234
- ${U(s.rows,n=>n.id,n=>Oi(e,t,n,a))}
234
+ ${B(s.rows,n=>n.id,n=>Ti(e,t,n,a))}
235
235
  </ol>
236
236
  <div>
237
- <button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Ii(e,t)}>
237
+ <button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>vi(e,t)}>
238
238
  ${e.newStatusButton}
239
239
  </button>
240
240
  </div>
241
241
  </section>
242
- `,Oi=(e,t,s,a)=>{const n=a.openFor===s.id,i={type:"status",id:s.id},o=r=>{t.dispatch({type:"REORDER_STATUS",target:i,payload:{after:r}})};return l`
242
+ `,Ti=(e,t,s,a)=>{const n=a.openFor===s.id,i={type:"status",id:s.id},o=r=>{t.dispatch({type:"REORDER_STATUS",target:i,payload:{after:r}})};return l`
243
243
  <li
244
244
  class="st-row st-row--status"
245
245
  data-status=${s.id}
@@ -258,7 +258,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
258
258
  >
259
259
  ${re(s)}
260
260
  </button>
261
- ${n?Ni(e,t,s,a):u}
261
+ ${n?xi(e,t,s,a):u}
262
262
  <span class="st-name">
263
263
  <dpk-inline-edit
264
264
  .value=${s.name}
@@ -266,8 +266,8 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
266
266
  @dpk-commit=${Q(r=>t.dispatch({type:"SET_STATUS_NAME",target:i,payload:{name:r}}))}
267
267
  ></dpk-inline-edit>
268
268
  </span>
269
- ${vt(e,s.storyCount,s.share)}
270
- ${yt(e,s.tone,r=>t.dispatch({type:"SET_STATUS_TONE",target:i,payload:{tone:r}}))}
269
+ ${ft(e,s.storyCount,s.share)}
270
+ ${gt(e,s.tone,r=>t.dispatch({type:"SET_STATUS_TONE",target:i,payload:{tone:r}}))}
271
271
  <label class="st-done" title=${e.doneStatusAria(s.name)}>
272
272
  <input
273
273
  type="radio"
@@ -281,7 +281,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
281
281
  </label>
282
282
  ${qe(e,{ids:t.state.statuses.map(r=>r.id),row:s,deleteLabel:e.deleteStatusAria,reorder:o,remove:()=>t.dispatch({type:"DELETE_STATUS",target:i,payload:{}})})}
283
283
  </li>
284
- `},Ni=(e,t,s,a)=>l`<div
284
+ `},xi=(e,t,s,a)=>l`<div
285
285
  id="icon-menu"
286
286
  class="comment-pop icon-menu"
287
287
  popover="manual"
@@ -290,7 +290,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
290
290
  style=${M(s.tone)}
291
291
  @keydown=${n=>{n.key==="Escape"&&(n.preventDefault(),a.close())}}
292
292
  >
293
- ${zt.map(n=>l`<button
293
+ ${Ft.map(n=>l`<button
294
294
  class="icon-option"
295
295
  type="button"
296
296
  role="menuitemradio"
@@ -302,8 +302,8 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
302
302
  >
303
303
  ${re({icon:n,progress:s.progress})}
304
304
  </button>`)}
305
- </div>`,yt=(e,t,s)=>l`<span class="st-tones" role="radiogroup" aria-label=${e.statusToneLabel}>
306
- ${Oe.map(a=>l`<button
305
+ </div>`,gt=(e,t,s)=>l`<span class="st-tones" role="radiogroup" aria-label=${e.statusToneLabel}>
306
+ ${Ne.map(a=>l`<button
307
307
  class="st-tone"
308
308
  type="button"
309
309
  role="radio"
@@ -320,7 +320,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
320
320
  type="button"
321
321
  aria-label=${e.moveUpAria}
322
322
  ?disabled=${t.row.previousId===null}
323
- @click=${()=>t.reorder(Ci(t.ids,t.row.previousId))}
323
+ @click=${()=>t.reorder(_i(t.ids,t.row.previousId))}
324
324
  >
325
325
  ↑
326
326
  </button>
@@ -334,29 +334,29 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
334
334
  ↓
335
335
  </button>
336
336
  <button class="dpk-icon-btn" type="button" data-role="delete" aria-label=${t.deleteLabel} @click=${t.remove}>
337
- ${tt()}
337
+ ${et()}
338
338
  </button>
339
- </span>`,Ci=(e,t)=>{const s=t===null?-1:e.indexOf(t);return s<=0?null:e[s-1]??null},vt=(e,t,s)=>l`
339
+ </span>`,_i=(e,t)=>{const s=t===null?-1:e.indexOf(t);return s<=0?null:e[s-1]??null},ft=(e,t,s)=>l`
340
340
  <span class="st-share">
341
341
  <span class="st-share-text">${e.statusShare(t,Math.round(s*100))}</span>
342
342
  <span class="st-meter" aria-hidden="true"><span style=${`width:${s*100}%`}></span></span>
343
343
  </span>
344
- `,Bi=(e,t,s)=>l`
344
+ `,Ii=(e,t,s)=>l`
345
345
  <section class="st-overview" data-testid="usm-labels">
346
346
  ${s.rows.length===0?l`<div class="empty">
347
347
  <h2>${e.noLabelsTitle}</h2>
348
348
  <p>${e.noLabelsBody}</p>
349
349
  </div>`:u}
350
350
  <ol class="st-list">
351
- ${U(s.rows,a=>a.id,a=>Ui(e,t,a))}
351
+ ${B(s.rows,a=>a.id,a=>Ai(e,t,a))}
352
352
  </ol>
353
353
  <div>
354
- <button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Ai(e,t)}>
354
+ <button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>ki(e,t)}>
355
355
  ${e.newLabelButton}
356
356
  </button>
357
357
  </div>
358
358
  </section>
359
- `,Ui=(e,t,s)=>{const a={type:"label",id:s.id};return l`
359
+ `,Ai=(e,t,s)=>{const a={type:"label",id:s.id};return l`
360
360
  <li class="st-row" data-label=${s.id} data-dpk-target=${I(a)} style=${M(s.tone)}>
361
361
  <span class="label-swatch" aria-hidden="true"></span>
362
362
  <span class="st-name">
@@ -366,28 +366,28 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
366
366
  @dpk-commit=${Q(n=>t.dispatch({type:"SET_LABEL_NAME",target:a,payload:{name:n}}))}
367
367
  ></dpk-inline-edit>
368
368
  </span>
369
- ${vt(e,s.storyCount,s.share)}
370
- ${yt(e,s.tone,n=>t.dispatch({type:"SET_LABEL_TONE",target:a,payload:{tone:n}}))}
369
+ ${ft(e,s.storyCount,s.share)}
370
+ ${gt(e,s.tone,n=>t.dispatch({type:"SET_LABEL_TONE",target:a,payload:{tone:n}}))}
371
371
  ${qe(e,{ids:t.state.labels.map(n=>n.id),row:s,deleteLabel:e.deleteLabelAria,reorder:n=>t.dispatch({type:"REORDER_LABEL",target:a,payload:{after:n}}),remove:()=>t.dispatch({type:"DELETE_LABEL",target:a,payload:{}})})}
372
372
  </li>
373
- `},Yi=new Intl.Segmenter(void 0,{granularity:"grapheme"}),kt=e=>{const[t]=Yi.segment(e.trim());return t?t.segment.toUpperCase():"?"},Pi=(e,t,s)=>l`
373
+ `},Mi=new Intl.Segmenter(void 0,{granularity:"grapheme"}),yt=e=>{const[t]=Mi.segment(e.trim());return t?t.segment.toUpperCase():"?"},Li=(e,t,s)=>l`
374
374
  <section class="st-overview" data-testid="usm-members">
375
375
  ${s.rows.length===0?l`<div class="empty">
376
376
  <h2>${e.noMembersTitle}</h2>
377
377
  <p>${e.noMembersBody}</p>
378
378
  </div>`:u}
379
379
  <ol class="st-list">
380
- ${U(s.rows,a=>a.id,a=>zi(e,t,a))}
380
+ ${B(s.rows,a=>a.id,a=>Di(e,t,a))}
381
381
  </ol>
382
382
  <div>
383
- <button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Mi(e,t)}>
383
+ <button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>wi(e,t)}>
384
384
  ${e.newMemberButton}
385
385
  </button>
386
386
  </div>
387
387
  </section>
388
- `,zi=(e,t,s)=>{const a={type:"member",id:s.id};return l`
388
+ `,Di=(e,t,s)=>{const a={type:"member",id:s.id};return l`
389
389
  <li class="st-row" data-member=${s.id} data-dpk-target=${I(a)} style=${M(s.tone)}>
390
- <span class="member-avatar" aria-hidden="true">${kt(s.name)}</span>
390
+ <span class="member-avatar" aria-hidden="true">${yt(s.name)}</span>
391
391
  <span class="st-name">
392
392
  <dpk-inline-edit
393
393
  .value=${s.name}
@@ -395,11 +395,11 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
395
395
  @dpk-commit=${Q(n=>t.dispatch({type:"SET_MEMBER_NAME",target:a,payload:{name:n}}))}
396
396
  ></dpk-inline-edit>
397
397
  </span>
398
- ${vt(e,s.storyCount,s.share)}
399
- ${yt(e,s.tone,n=>t.dispatch({type:"SET_MEMBER_TONE",target:a,payload:{tone:n}}))}
398
+ ${ft(e,s.storyCount,s.share)}
399
+ ${gt(e,s.tone,n=>t.dispatch({type:"SET_MEMBER_TONE",target:a,payload:{tone:n}}))}
400
400
  ${qe(e,{ids:t.state.members.map(n=>n.id),row:s,deleteLabel:e.deleteMemberAria,reorder:n=>t.dispatch({type:"REORDER_MEMBER",target:a,payload:{after:n}}),remove:()=>t.dispatch({type:"DELETE_MEMBER",target:a,payload:{}})})}
401
401
  </li>
402
- `},he=e=>{const t=be(e);return e.statuses.map((s,a)=>({id:s.id,name:s.name,tone:s.tone,icon:s.icon,progress:Vs(a,t)}))},Vs=(e,t)=>t<=0?1:Math.min(1,e/t),Gs=(e,t)=>e.find(s=>s.id===t.statusId),Hs=(e,t)=>he(e).map(s=>({...s,count:t.filter(a=>a.statusId===s.id).length})).filter(s=>s.count>0),Fi=e=>{const t=e.stories.length,s=o=>t===0?0:o/t,a=o=>e.stories.filter(r=>r.statusId===o).length,n=be(e);return{rows:e.statuses.map((o,r)=>{const d=a(o.id);return{id:o.id,name:o.name,tone:o.tone,icon:o.icon,progress:Vs(r,n),done:r===n,previousId:e.statuses[r-1]?.id??null,nextId:e.statuses[r+1]?.id??null,storyCount:d,share:s(d)}})}},Vi={width:228,height:116},Gi=H`
402
+ `},he=e=>{const t=be(e);return e.statuses.map((s,a)=>({id:s.id,name:s.name,tone:s.tone,icon:s.icon,progress:Gs(a,t)}))},Gs=(e,t)=>t<=0?1:Math.min(1,e/t),Vs=(e,t)=>e.find(s=>s.id===t.statusId),Hs=(e,t)=>he(e).map(s=>({...s,count:t.filter(a=>a.statusId===s.id).length})).filter(s=>s.count>0),Ri=e=>{const t=e.stories.length,s=o=>t===0?0:o/t,a=o=>e.stories.filter(r=>r.statusId===o).length,n=be(e);return{rows:e.statuses.map((o,r)=>{const d=a(o.id);return{id:o.id,name:o.name,tone:o.tone,icon:o.icon,progress:Gs(r,n),done:r===n,previousId:e.statuses[r-1]?.id??null,nextId:e.statuses[r+1]?.id??null,storyCount:d,share:s(d)}})}},Oi={width:228,height:116},Ni=q`
403
403
  :host {
404
404
  display: block;
405
405
  }
@@ -632,51 +632,9 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
632
632
  display: grid;
633
633
  gap: 10px;
634
634
  }
635
- `;class Hi extends Ae{static{this.styles=[Ua,Rt,Ke,_t,Gi]}static{this.properties={kind:{type:String},locale:{type:String},context:{attribute:!1}}}#t=null;#e=new It(this);render(){const t=this.context;if(t===null)return u;const s=ne(this.locale??"ja"),a=t.state;if(this.kind==="labels")return Bi(s,t,xi(a));if(this.kind==="members")return Pi(s,t,Ti(a));const n={openFor:this.#t,toggle:i=>{this.#t=this.#t===i?null:i,this.requestUpdate()},close:()=>{this.#t=null,this.requestUpdate()}};return Ri(s,t,Fi(a),n)}updated(){const t=this.renderRoot.querySelector("#icon-menu"),s=this.#t===null?null:this.renderRoot.querySelector(`[data-icon-trigger="${CSS.escape(this.#t)}"]`);t===null||s===null||this.#e.open(t,s,Vi)}}const Ki=()=>{customElements.get("dpk-internal-usm-settings-section")||customElements.define("dpk-internal-usm-settings-section",Hi)},qi={github:B`<path fill-rule="evenodd" d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"></path>`,gitlab:B`<path d="M8 15 1.2 9.9a.7.7 0 0 1-.25-.78L2.7 2.6a.35.35 0 0 1 .66 0L5.1 7.6h5.8l1.74-5a.35.35 0 0 1 .66 0l1.75 6.52a.7.7 0 0 1-.25.78z"></path>`,jira:B`<path d="M14.6 7.4 8.6 1.4 8 .8 3.5 5.3 1.4 7.4a.85.85 0 0 0 0 1.2l4.1 4.1L8 15.2l4.5-4.5.07-.07 2.03-2.03a.85.85 0 0 0 0-1.2zM8 9.9 5.9 8 8 5.9 10.1 8z"></path>`,linear:B`<path d="M1.2 9.4a6.9 6.9 0 0 0 5.4 5.4zM1 7.3l7.7 7.7a7 7 0 0 0 1.9-.5L1.5 5.4a7 7 0 0 0-.5 1.9zm1.2-3.1 9.6 9.6a7 7 0 0 0 1.2-1.1L3.3 3a7 7 0 0 0-1.1 1.2zM4.3 2.3a7 7 0 1 1 9.4 9.4z"></path>`,figma:B`<path d="M5.5 1h2.3v4.6H5.5a2.3 2.3 0 1 1 0-4.6zm2.3 0h2.3a2.3 2.3 0 1 1 0 4.6H7.8zm2.3 4.6a2.3 2.3 0 1 1 0 4.6 2.3 2.3 0 0 1 0-4.6zM5.5 5.6h2.3v4.6H5.5a2.3 2.3 0 1 1 0-4.6zm0 4.6h2.3v2.3a2.3 2.3 0 1 1-2.3-2.3z"></path>`,notion:B`<path fill-rule="evenodd" d="M2.5 1.6 11 1c1 0 1.3.1 2 .6l2.1 1.5c.4.3.5.4.5.7v9.6c0 .7-.3 1.1-1.1 1.2l-9.4.6c-.6 0-.9-.1-1.2-.5L1.9 12c-.3-.5-.5-.8-.5-1.3V2.8c0-.6.3-1.1 1.1-1.2zM5 4.4v8.9l8.6-.5V4zm1 1.2 2.9-.2 3 4.7V5.6l-.8-.1v-.5l2-.1v.6l-.6.1v6.1l-.9.1-3.5-5.4v4.9l.8.2v.5l-2.3.1v-.5l.6-.2V6.4l-.8-.1z"></path>`},Ks=e=>e==="web"?Ya():l`<svg class="link-mark" viewBox="0 0 16 16" aria-hidden="true">${qi[e]}</svg>`,qs=H`
636
- .link-mark {
637
- fill: currentColor;
638
- }
639
- .link-chip {
640
- display: inline-flex;
641
- align-items: center;
642
- gap: 5px;
643
- min-width: 0;
644
- max-width: 100%;
645
- padding: 1px 8px 1px 6px;
646
- border: 1px solid var(--dpk-rule-strong);
647
- border-radius: 999px;
648
- background: var(--dpk-paper-raised);
649
- color: var(--dpk-ink-soft);
650
- font-family: var(--dpk-mono);
651
- font-size: 10.5px;
652
- font-weight: 600;
653
- line-height: 18px;
654
- text-decoration: none;
655
- transition:
656
- color 140ms var(--dpk-ease),
657
- border-color 140ms var(--dpk-ease);
658
- }
659
- .link-chip:hover {
660
- border-color: var(--dpk-ink-faint);
661
- color: var(--dpk-ink);
662
- }
663
- .link-chip:focus-visible {
664
- outline: none;
665
- box-shadow: var(--dpk-focus);
666
- }
667
- .link-chip svg {
668
- flex: none;
669
- width: 12px;
670
- height: 12px;
671
- }
672
- .link-chip span {
673
- overflow: hidden;
674
- text-overflow: ellipsis;
675
- white-space: nowrap;
676
- }
677
- `,wt=e=>`${de(e)} ${e.name}`,Wi=(e,t)=>{const s=N(e,`${t.activityId}.${t.stepId}`);if(!s)return;const a=P(e,t.milestoneId),n=`${s.activity.name} \u203A ${s.step.name}`;return a?`${n} (${a.name})`:n},ji=(e,t)=>e.stories.filter(s=>(s.blockedBy??[]).includes(t.id)).map(s=>de(s)),Xi=(e,t)=>(t.blockedBy??[]).flatMap(s=>{const a=x(e,s);return a?[de(a)]:[]}),Zi=e=>`[${e.label??e.url}](${e.url})`,Ws=(e,t,s)=>{const a=[],n=($,L)=>{a.push(`- ${$}: ${L}`)},i=D(t,s.statusId);i&&n(e.storyStatusLabel,i.name);const o=Wi(t,s);o&&n(e.copyInfoStep,o);const r=F(t,s.estimateId);r&&n(e.storyEstimateLabel,`${r.name} (${r.points})`);const d=pt(t,s);d&&n(e.storyAssigneeLabel,d.name);const p=ct(t,s).map($=>$.name);p.length>0&&n(e.storyLabelsLabel,p.join(", "));const m=ji(t,s);m.length>0&&n(e.copyInfoBlocks,m.join(", "));const y=Xi(t,s);y.length>0&&n(e.copyInfoWaitsOn,y.join(", "));const E=(s.links??[]).map(Zi);E.length>0&&n(e.storyLinksLabel,E.join(", "));const S=[`### ${wt(s)}`];a.length>0&&S.push("",...a);const A=(s.description??"").replace(/\s+$/,"");return A!==""&&S.push("",A),`${S.join(`
635
+ `;class Ci extends Ae{static{this.styles=[Na,Ot,Ke,xt,Ni]}static{this.properties={kind:{type:String},locale:{type:String},context:{attribute:!1}}}#t=null;#e=new _t(this);render(){const t=this.context;if(t===null)return u;const s=ne(this.locale??"ja"),a=t.state;if(this.kind==="labels")return Ii(s,t,gi(a));if(this.kind==="members")return Li(s,t,fi(a));const n={openFor:this.#t,toggle:i=>{this.#t=this.#t===i?null:i,this.requestUpdate()},close:()=>{this.#t=null,this.requestUpdate()}};return $i(s,t,Ri(a),n)}updated(){const t=this.renderRoot.querySelector("#icon-menu"),s=this.#t===null?null:this.renderRoot.querySelector(`[data-icon-trigger="${CSS.escape(this.#t)}"]`);t===null||s===null||this.#e.open(t,s,Oi)}}const Bi=()=>{customElements.get("dpk-internal-usm-settings-section")||customElements.define("dpk-internal-usm-settings-section",Ci)},vt=e=>`${de(e)} ${e.name}`,Yi=(e,t)=>{const s=N(e,`${t.activityId}.${t.stepId}`);if(!s)return;const a=U(e,t.milestoneId),n=`${s.activity.name} \u203A ${s.step.name}`;return a?`${n} (${a.name})`:n},Ui=(e,t)=>e.stories.filter(s=>(s.blockedBy??[]).includes(t.id)).map(s=>de(s)),Pi=(e,t)=>(t.blockedBy??[]).flatMap(s=>{const a=T(e,s);return a?[de(a)]:[]}),zi=e=>`[${e.label??e.url}](${e.url})`,Ks=(e,t,s)=>{const a=[],n=($,L)=>{a.push(`- ${$}: ${L}`)},i=D(t,s.statusId);i&&n(e.storyStatusLabel,i.name);const o=Yi(t,s);o&&n(e.copyInfoStep,o);const r=z(t,s.estimateId);r&&n(e.storyEstimateLabel,`${r.name} (${r.points})`);const d=lt(t,s);d&&n(e.storyAssigneeLabel,d.name);const p=pt(t,s).map($=>$.name);p.length>0&&n(e.storyLabelsLabel,p.join(", "));const m=Ui(t,s);m.length>0&&n(e.copyInfoBlocks,m.join(", "));const y=Pi(t,s);y.length>0&&n(e.copyInfoWaitsOn,y.join(", "));const E=(s.links??[]).map(zi);E.length>0&&n(e.storyLinksLabel,E.join(", "));const S=[`### ${vt(s)}`];a.length>0&&S.push("",...a);const A=(s.description??"").replace(/\s+$/,"");return A!==""&&S.push("",A),`${S.join(`
678
636
  `).replace(/[ \t]+$/gm,"").trimEnd()}
679
- `},Ji=O(mn),Qi=O(en),eo=3,to=H`
637
+ `},Fi=O(pn),Gi=O(Za),Vi=3,Hi=q`
680
638
  /*
681
639
  * The card is the kit's card atom (it was back-ported from this one); what
682
640
  * stays here is the map's own: the status icon, the dependency chips and the
@@ -759,17 +717,17 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
759
717
  border-color: color-mix(in oklab, var(--dpk-card-tone) 16%, var(--dpk-rule));
760
718
  background: var(--dpk-paper-raised);
761
719
  }
762
- `;class so extends Ae{static{this.styles=[Pa,Za,Ke,qs,to]}static{this.properties={story:{attribute:!1},map:{attribute:!1},stepName:{attribute:!1},statuses:{attribute:!1},labels:{attribute:!1},reviewCount:{type:Number},estimate:{attribute:!1},assignee:{attribute:!1},blocks:{type:Number},waits:{type:Number},focused:{type:Boolean,reflect:!0},dragging:{type:Boolean,reflect:!0},highlight:{attribute:"data-highlight"},relation:{attribute:"data-relation"}}}#t=new et(this);constructor(){super(),this.story=null,this.map=lt(),this.stepName="",this.statuses=[],this.labels=[],this.reviewCount=0,this.estimate=null,this.assignee=null,this.blocks=0,this.waits=0,this.focused=!1,this.dragging=!1,this.highlight=null,this.relation=null}getContextMenuItems(t){const s=this.story;if(!s)return null;const a=ne(this.#t.locale),n=de(s);return[{id:"usm-story-card",entries:[{kind:"item",id:"copy-story-id",label:a.copyId,run:()=>{Me(n)}},{kind:"item",id:"copy-story-id-title",label:a.copyIdTitle,run:()=>{Me(wt(s))}},{kind:"item",id:"copy-story-info",label:a.copyStoryInfo,run:()=>{Me(Ws(a,this.map,s))}}]}]}render(){const t=this.story;if(!t)return u;const s=ne(this.#t.locale),a=t.comments?.length??0;return l`<div class="dpk-card" data-interactive data-state=${this.#e()}>
720
+ `;class Ki extends Ae{static{this.styles=[Ca,Wa,Ke,Dt,Hi]}static{this.properties={story:{attribute:!1},map:{attribute:!1},stepName:{attribute:!1},statuses:{attribute:!1},labels:{attribute:!1},reviewCount:{type:Number},estimate:{attribute:!1},assignee:{attribute:!1},blocks:{type:Number},waits:{type:Number},focused:{type:Boolean,reflect:!0},dragging:{type:Boolean,reflect:!0},highlight:{attribute:"data-highlight"},relation:{attribute:"data-relation"}}}#t=new Qe(this);constructor(){super(),this.story=null,this.map=dt(),this.stepName="",this.statuses=[],this.labels=[],this.reviewCount=0,this.estimate=null,this.assignee=null,this.blocks=0,this.waits=0,this.focused=!1,this.dragging=!1,this.highlight=null,this.relation=null}getContextMenuItems(t){const s=this.story;if(!s)return null;const a=ne(this.#t.locale),n=de(s);return[{id:"usm-story-card",entries:[{kind:"item",id:"copy-story-id",label:a.copyId,run:()=>{Me(n)}},{kind:"item",id:"copy-story-id-title",label:a.copyIdTitle,run:()=>{Me(vt(s))}},{kind:"item",id:"copy-story-info",label:a.copyStoryInfo,run:()=>{Me(Ks(a,this.map,s))}}]}]}render(){const t=this.story;if(!t)return u;const s=ne(this.#t.locale),a=t.comments?.length??0;return l`<div class="dpk-card" data-interactive data-state=${this.#e()}>
763
721
  <div class="dpk-card-head">
764
722
  ${this.statuses.length===0?u:this.#n(s,t)}
765
723
  <div class="dpk-card-title"><span>${t.name}</span></div>
766
724
  ${this.estimate||this.assignee?this.#i(s):u}
767
725
  </div>
768
- ${t.description?l`<div class="dpk-card-text" @click=${no}>
769
- ${za(Fa(t.description))}
726
+ ${t.description?l`<div class="dpk-card-text" @click=${Wi}>
727
+ ${Ba(Ya(t.description))}
770
728
  </div>`:u}
771
729
  ${this.blocks>0||this.waits>0?this.#a(s):u}
772
- ${this.labels.length>0?ao(this.labels):u}
730
+ ${this.labels.length>0?qi(this.labels):u}
773
731
  ${t.links&&t.links.length>0?this.#s(t.links):u}
774
732
  <div class="dpk-card-foot">
775
733
  <span class="dpk-card-key">${de(t)}</span>
@@ -780,7 +738,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
780
738
  data-kind="comments"
781
739
  aria-label=${s.commentCountAria(a)}
782
740
  >
783
- ${Va()}<span>${a}</span>
741
+ ${Ua()}<span>${a}</span>
784
742
  </span>`:u}
785
743
  ${this.reviewCount>0?l`<span
786
744
  class="dpk-card-chip"
@@ -789,10 +747,10 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
789
747
  data-kind="review"
790
748
  aria-label=${s.reviewCountAria(this.reviewCount)}
791
749
  >
792
- ${At()}<span>${this.reviewCount}</span>
750
+ ${It()}<span>${this.reviewCount}</span>
793
751
  </span>`:u}
794
752
  </div>
795
- </div>`}#e(){const t=[this.focused?"selected":"",this.highlight==="on"?"highlight":this.highlight==="dimmed"?"dimmed":"",this.dragging?"dragging":"",this.relation?"marked":""].filter(s=>s!=="");return t.length===0?u:t.join(" ")}#n(t,s){const a=Gs(this.statuses,s);if(!a)return u;const n=a.name;return l`<span class="card-status" role="img" aria-label=${t.storyStatusAria(n)} title=${n}>
753
+ </div>`}#e(){const t=[this.focused?"selected":"",this.highlight==="on"?"highlight":this.highlight==="dimmed"?"dimmed":"",this.dragging?"dragging":"",this.relation?"marked":""].filter(s=>s!=="");return t.length===0?u:t.join(" ")}#n(t,s){const a=Vs(this.statuses,s);if(!a)return u;const n=a.name;return l`<span class="card-status" role="img" aria-label=${t.storyStatusAria(n)} title=${n}>
796
754
  ${re(a)}
797
755
  </span>`}#i(t){const{estimate:s,assignee:a}=this;return l`<span class="dpk-card-meta">
798
756
  ${s?l`<span
@@ -807,17 +765,17 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
807
765
  data-kind="assignee"
808
766
  style=${M(a.tone)}
809
767
  title=${t.assigneeChipTitle(a.name)}
810
- >${kt(a.name)}</span
768
+ >${yt(a.name)}</span
811
769
  >`:u}
812
770
  </span>`}#a(t){return l`<div class="dpk-card-row card-deps">
813
771
  ${this.blocks>0?l`<span class="dep-chip" data-kind="blocks" title=${t.blocksChipTitle(this.blocks)}
814
- >${Ji()}${t.blocksChip(this.blocks)}</span
772
+ >${Fi()}${t.blocksChip(this.blocks)}</span
815
773
  >`:u}
816
774
  ${this.waits>0?l`<span class="dep-chip" data-kind="waits" title=${t.waitsChipTitle(this.waits)}
817
- >${Qi()}${t.waitsChip(this.waits)}</span
775
+ >${Gi()}${t.waitsChip(this.waits)}</span
818
776
  >`:u}
819
- </div>`}#s(t){const s=t.slice(0,eo);return l`<div class="dpk-card-row card-links">
820
- ${s.map(a=>{const n=Fe(a.url);return l`<a
777
+ </div>`}#s(t){const s=t.slice(0,Vi);return l`<div class="dpk-card-row card-links">
778
+ ${s.map(a=>{const n=Re(a.url);return l`<a
821
779
  class="link-chip"
822
780
  data-kind=${n.kind}
823
781
  href=${a.url}
@@ -827,12 +785,12 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
827
785
  draggable="false"
828
786
  tabindex="-1"
829
787
  @click=${i=>i.stopPropagation()}
830
- >${Ks(n.kind)}<span>${a.label??n.text}</span></a
788
+ >${Rt(n.kind)}<span>${a.label??n.text}</span></a
831
789
  >`})}
832
790
  ${t.length>s.length?l`<span class="link-chip">+${t.length-s.length}</span>`:u}
833
- </div>`}}const ao=e=>l`<div class="dpk-card-row card-labels">
791
+ </div>`}}const qi=e=>l`<div class="dpk-card-row card-labels">
834
792
  ${e.map(t=>l`<span class="dpk-pill" data-label=${t.id} style=${M(t.tone)}>${t.name}</span>`)}
835
- </div>`,no=e=>{e.target instanceof Element&&e.target.closest("a")&&e.stopPropagation()},io=()=>{customElements.get("dpk-internal-usm-story-card")||customElements.define("dpk-internal-usm-story-card",so)},js=e=>{const t=e.slice(0,-1).map(ns),s=t.reduce((n,i)=>n+i,0),a=t.map(n=>s>0?n/s*se:se/t.length);return a.slice(0,-1).map((n,i)=>a.slice(0,i+1).reduce((o,r)=>o+r,0))},Xs=(e,t,s)=>{if(t<0||t>=e.length)return e;const a=e[t-1]??0,n=e[t+1]??se;return e.map((i,o)=>o===t?Math.min(n,Math.max(a,Math.round(s))):i)},We=e=>[...e,se].map((t,s)=>t-(e[s-1]??0)),oo=(e,t)=>{const s=We(t.map(a=>Math.round(a)));return e.slice(0,-1).flatMap((a,n)=>{const i=s[n]??0;return a.weight===i?[]:[{statusId:a.id,weight:i}]})},ro=H`
793
+ </div>`,Wi=e=>{e.target instanceof Element&&e.target.closest("a")&&e.stopPropagation()},ji=()=>{customElements.get("dpk-internal-usm-story-card")||customElements.define("dpk-internal-usm-story-card",Ki)},qs=e=>{const t=e.slice(0,-1).map(is),s=t.reduce((n,i)=>n+i,0),a=t.map(n=>s>0?n/s*se:se/t.length);return a.slice(0,-1).map((n,i)=>a.slice(0,i+1).reduce((o,r)=>o+r,0))},Ws=(e,t,s)=>{if(t<0||t>=e.length)return e;const a=e[t-1]??0,n=e[t+1]??se;return e.map((i,o)=>o===t?Math.min(n,Math.max(a,Math.round(s))):i)},We=e=>[...e,se].map((t,s)=>t-(e[s-1]??0)),Xi=(e,t)=>{const s=We(t.map(a=>Math.round(a)));return e.slice(0,-1).flatMap((a,n)=>{const i=s[n]??0;return a.weight===i?[]:[{statusId:a.id,weight:i}]})},Zi=q`
836
794
  :host {
837
795
  display: block;
838
796
  }
@@ -978,7 +936,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
978
936
  transition: none;
979
937
  }
980
938
  }
981
- `;class lo extends Ae{static{this.styles=[Ke,ro]}static{this.properties={statuses:{attribute:!1},dividers:{attribute:!1},commit:{attribute:!1},drag:{state:!0}}}#t=new et(this);constructor(){super(),this.statuses=[],this.dividers=[],this.commit=()=>{},this.drag=null}disconnectedCallback(){super.disconnectedCallback(),this.#r()}render(){const t=ne(this.#t.locale),s=this.statuses.slice(0,-1),a=this.statuses.at(-1);if(!a||s.length===0)return u;const n=this.drag?.dividers??this.dividers,i=We(n),o=r=>`${r/se*100}%`;return l`<div class="wb">
939
+ `;class Ji extends Ae{static{this.styles=[Ke,Zi]}static{this.properties={statuses:{attribute:!1},dividers:{attribute:!1},commit:{attribute:!1},drag:{state:!0}}}#t=new Qe(this);constructor(){super(),this.statuses=[],this.dividers=[],this.commit=()=>{},this.drag=null}disconnectedCallback(){super.disconnectedCallback(),this.#r()}render(){const t=ne(this.#t.locale),s=this.statuses.slice(0,-1),a=this.statuses.at(-1);if(!a||s.length===0)return u;const n=this.drag?.dividers??this.dividers,i=We(n),o=r=>`${r/se*100}%`;return l`<div class="wb">
982
940
  <div class="wb-track" role="group" aria-label=${t.statusWeightLabel} ?data-dragging=${this.drag!==null}>
983
941
  <div class="wb-parts">
984
942
  ${s.map((r,d)=>{const p=n[d-1]??0,m=i[d]??0;return l`<span
@@ -1011,7 +969,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1011
969
  ?data-active=${this.drag?.index===n}
1012
970
  @keydown=${m=>this.#n(m,n)}
1013
971
  @pointerdown=${m=>this.#i(m,n)}
1014
- ></span>`}#n(t,s){const a=this.dividers[s]??0,n=(()=>{switch(t.key){case"ArrowLeft":case"ArrowDown":return a-1;case"ArrowRight":case"ArrowUp":return a+1;case"Home":return 0;case"End":return se;default:return null}})();n!==null&&(t.preventDefault(),this.#l(Xs(this.dividers,s,n)))}#i(t,s){t.button===0&&(t.preventDefault(),t.currentTarget instanceof HTMLElement&&t.currentTarget.focus({preventScroll:!0}),this.drag={index:s,dividers:this.dividers},document.addEventListener("pointermove",this.#a),document.addEventListener("pointerup",this.#s),document.addEventListener("pointercancel",this.#o))}#a=t=>{const s=this.renderRoot.querySelector(".wb-track")?.getBoundingClientRect();if(!this.drag||!s||s.width===0)return;const a=(t.clientX-s.left)/s.width*se;this.drag={...this.drag,dividers:Xs(this.drag.dividers,this.drag.index,a)}};#s=()=>{const t=this.drag?.dividers;this.#r(),t&&this.#l(t)};#o=()=>this.#r();#r(){this.drag=null,document.removeEventListener("pointermove",this.#a),document.removeEventListener("pointerup",this.#s),document.removeEventListener("pointercancel",this.#o)}#l(t){t.some((s,a)=>s!==this.dividers[a])&&this.commit(t)}}const je=e=>String(Math.round(e*10)/10),po=()=>{customElements.get("dpk-internal-usm-weight-bar")||customElements.define("dpk-internal-usm-weight-bar",lo)},co=(e,t,s)=>{const a=e.at(-1)??null;if(t===null||s==="end")return a;const n=e.indexOf(t);return n<0?a:s==="after"?t:n===0?null:e.at(n-1)??null},Zs=(e,t,s,a,n)=>{const i=Pe(e,t.stepId,t.milestoneId).map(o=>o.id);return{type:"MOVE_STORY",target:{type:"story",id:s},payload:{activityId:t.activityId,stepId:t.stepId,milestoneId:t.milestoneId??null,after:Ot(i,s,a,n)}}},Js=(e,t,s,a,n,i)=>{const o=x(e,a);if(!o||o.activityId!==t)return null;const r=Jt(e,t,s).map(d=>d.id);return{type:"MOVE_STORY",target:{type:"story",id:a},payload:{activityId:t,stepId:o.stepId,milestoneId:s??null,after:Ot(r,a,n,i)}}},Qs=(e,t,s,a,n)=>{const i=Pe(e,a,n).filter(o=>o.id!==t);return{type:"MOVE_STORY",target:{type:"story",id:t},payload:{activityId:s,stepId:a,milestoneId:n??null,after:i.at(-1)?.id??null}}},uo=e=>{const t=e.stories.length,s=Ye(e);return e.milestones.map((a,n)=>{const i=e.stories.filter(r=>r.milestoneId===a.id),o=new Set(i.map(r=>r.stepId));return{id:a.id,ordinal:n+1,name:a.name,timeframe:a.timeframe?.trim()??"",description:a.description?.trim()??"",storyCount:i.length,share:t===0?0:i.length/t,coverage:{covered:s.filter(({step:r})=>o.has(r.id)).length,total:s.length},progress:Hs(e,i)}})},mo="__unassigned__",ea="__add-milestone__",Xe="__add-activity__",ta="__add-activity-step__",sa=(e,t)=>{const s=a=>t.stories.filter(n=>n.milestoneId===a).length;return[...t.milestones.map(({id:a,name:n,timeframe:i,questions:o})=>({id:a,name:n,timeframe:i?.trim()??"",storyCount:s(a),...o===void 0?{}:{questions:o}})),{id:void 0,name:e.unassigned,timeframe:"",storyCount:s(void 0)}]},Ze=e=>e.id??mo,aa=e=>[...e.map(t=>({id:Ze(t),draggable:t.id!==void 0})),{id:ea,draggable:!1}],ho=e=>[...e.activities.map(t=>({id:t.id,subColumns:t.steps.map(s=>({id:s.id}))})),{id:Xe,draggable:!1,subColumns:[{id:ta,draggable:!1}]}],bo=e=>[...e.activities.map(t=>({id:t.id})),{id:Xe,draggable:!1}],go=(e,t)=>l`
972
+ ></span>`}#n(t,s){const a=this.dividers[s]??0,n=(()=>{switch(t.key){case"ArrowLeft":case"ArrowDown":return a-1;case"ArrowRight":case"ArrowUp":return a+1;case"Home":return 0;case"End":return se;default:return null}})();n!==null&&(t.preventDefault(),this.#l(Ws(this.dividers,s,n)))}#i(t,s){t.button===0&&(t.preventDefault(),t.currentTarget instanceof HTMLElement&&t.currentTarget.focus({preventScroll:!0}),this.drag={index:s,dividers:this.dividers},document.addEventListener("pointermove",this.#a),document.addEventListener("pointerup",this.#s),document.addEventListener("pointercancel",this.#o))}#a=t=>{const s=this.renderRoot.querySelector(".wb-track")?.getBoundingClientRect();if(!this.drag||!s||s.width===0)return;const a=(t.clientX-s.left)/s.width*se;this.drag={...this.drag,dividers:Ws(this.drag.dividers,this.drag.index,a)}};#s=()=>{const t=this.drag?.dividers;this.#r(),t&&this.#l(t)};#o=()=>this.#r();#r(){this.drag=null,document.removeEventListener("pointermove",this.#a),document.removeEventListener("pointerup",this.#s),document.removeEventListener("pointercancel",this.#o)}#l(t){t.some((s,a)=>s!==this.dividers[a])&&this.commit(t)}}const je=e=>String(Math.round(e*10)/10),Qi=()=>{customElements.get("dpk-internal-usm-weight-bar")||customElements.define("dpk-internal-usm-weight-bar",Ji)},eo=(e,t,s)=>{const a=e.at(-1)??null;if(t===null||s==="end")return a;const n=e.indexOf(t);return n<0?a:s==="after"?t:n===0?null:e.at(n-1)??null},js=(e,t,s,a,n)=>{const i=ze(e,t.stepId,t.milestoneId).map(o=>o.id);return{type:"MOVE_STORY",target:{type:"story",id:s},payload:{activityId:t.activityId,stepId:t.stepId,milestoneId:t.milestoneId??null,after:Nt(i,s,a,n)}}},Xs=(e,t,s,a,n,i)=>{const o=T(e,a);if(!o||o.activityId!==t)return null;const r=Qt(e,t,s).map(d=>d.id);return{type:"MOVE_STORY",target:{type:"story",id:a},payload:{activityId:t,stepId:o.stepId,milestoneId:s??null,after:Nt(r,a,n,i)}}},Zs=(e,t,s,a,n)=>{const i=ze(e,a,n).filter(o=>o.id!==t);return{type:"MOVE_STORY",target:{type:"story",id:t},payload:{activityId:s,stepId:a,milestoneId:n??null,after:i.at(-1)?.id??null}}},to=e=>{const t=e.stories.length,s=Pe(e);return e.milestones.map((a,n)=>{const i=e.stories.filter(r=>r.milestoneId===a.id),o=new Set(i.map(r=>r.stepId));return{id:a.id,ordinal:n+1,name:a.name,timeframe:a.timeframe?.trim()??"",description:a.description?.trim()??"",storyCount:i.length,share:t===0?0:i.length/t,coverage:{covered:s.filter(({step:r})=>o.has(r.id)).length,total:s.length},progress:Hs(e,i)}})},so="__unassigned__",Js="__add-milestone__",Xe="__add-activity__",Qs="__add-activity-step__",ea=(e,t)=>{const s=a=>t.stories.filter(n=>n.milestoneId===a).length;return[...t.milestones.map(({id:a,name:n,timeframe:i,questions:o})=>({id:a,name:n,timeframe:i?.trim()??"",storyCount:s(a),...o===void 0?{}:{questions:o}})),{id:void 0,name:e.unassigned,timeframe:"",storyCount:s(void 0)}]},Ze=e=>e.id??so,ta=e=>[...e.map(t=>({id:Ze(t),draggable:t.id!==void 0})),{id:Js,draggable:!1}],ao=e=>[...e.activities.map(t=>({id:t.id,subColumns:t.steps.map(s=>({id:s.id}))})),{id:Xe,draggable:!1,subColumns:[{id:Qs,draggable:!1}]}],no=e=>[...e.activities.map(t=>({id:t.id})),{id:Xe,draggable:!1}],io=(e,t)=>l`
1015
973
  <div class="empty">
1016
974
  <h2>${e.emptyTitle}</h2>
1017
975
  <p>${e.emptyBody}</p>
@@ -1019,61 +977,62 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1019
977
  ${e.firstActivityButton}
1020
978
  </button>
1021
979
  </div>
1022
- `,fo=e=>{const{m:t,context:s}=e,a=Ye(s.state);return a.length===0?go(t,s):na(s)==="activity"?vo(e,a):ko(e)},na=e=>e.navigation.view==="group"?"group":"activity",yo=(e,t)=>{const s=na(t);return l`<div class="dpk-segmented view-tabs" role="tablist" aria-label=${e.groupingLabel}>
1023
- ${ia(t,"activity",s,e.activityGroup)}
1024
- ${ia(t,"group",s,e.groupViewTab)}
1025
- </div>`},ia=(e,t,s,a)=>l`<a role="tab" aria-selected=${t===s?"true":"false"} href=${e.hashFor({view:t})}
980
+ `,oo=e=>{const{m:t,context:s}=e,a=Pe(s.state);return a.length===0?io(t,s):sa(s)==="activity"?lo(e,a):po(e)},sa=e=>e.navigation.view==="group"?"group":"activity",ro=(e,t)=>{const s=sa(t);return l`<div class="dpk-segmented view-tabs" role="tablist" aria-label=${e.groupingLabel}>
981
+ ${aa(t,"activity",s,e.activityGroup)}
982
+ ${aa(t,"group",s,e.groupViewTab)}
983
+ </div>`},aa=(e,t,s,a)=>l`<a role="tab" aria-selected=${t===s?"true":"false"} href=${e.hashFor({view:t})}
1026
984
  >${a}</a
1027
- >`,vo=(e,t)=>{const{m:s,context:a,handlers:n}=e,{state:i}=a,o=sa(s,i);return l`
985
+ >`,lo=(e,t)=>{const{m:s,context:a,handlers:n}=e,{state:i}=a,o=ea(s,i);return l`
1028
986
  <dpk-matrix
1029
987
  data-testid="usm-map"
1030
- .rows=${aa(o)}
1031
- .columns=${ho(i)}
988
+ .rows=${ta(o)}
989
+ .columns=${ao(i)}
1032
990
  @dpk-matrix-reorder-row=${r=>n.reorderMilestone(r.detail)}
1033
991
  @dpk-matrix-reorder-column=${r=>n.reorderActivity(r.detail)}
1034
992
  @dpk-matrix-reorder-sub-column=${r=>n.reorderStep(r.detail)}
1035
993
  >
1036
- <div class="corner" slot=${Nt}><span class="dpk-label">${s.groupAxisHeader}</span></div>
1037
- ${U(i.activities,r=>r.id,r=>ra(e,r.id))}
1038
- ${da(s,a)} ${oa(s,Ja)}
1039
- ${U(t,({activity:r,step:d})=>`${r.id}.${d.id}`,({activity:r,step:d})=>wo(e,r.id,d))}
1040
- ${So()}
1041
- ${U(o,r=>r.id,r=>pa(e,r))}
1042
- ${U(o,r=>r.id,r=>l`${U(t,({activity:d,step:p})=>`${d.id}.${p.id}`,({activity:d,step:p})=>$o(e,Ze(r),{activityId:d.id,stepId:p.id,milestoneId:r.id}))}`)}
1043
- ${la(s,a)}
994
+ <div class="corner" slot=${Ct}><span class="dpk-label">${s.groupAxisHeader}</span></div>
995
+ ${B(i.activities,r=>r.id,r=>ia(e,r.id))}
996
+ ${oa(s,a)} ${na(s,ja)}
997
+ ${B(t,({activity:r,step:d})=>`${r.id}.${d.id}`,({activity:r,step:d})=>co(e,r.id,d))}
998
+ ${uo()}
999
+ ${B(o,r=>r.id,r=>da(e,r))}
1000
+ ${B(o,r=>r.id,r=>l`${B(t,({activity:d,step:p})=>`${d.id}.${p.id}`,({activity:d,step:p})=>ho(e,Ze(r),{activityId:d.id,stepId:p.id,milestoneId:r.id}))}`)}
1001
+ ${ra(s,a)}
1044
1002
  </dpk-matrix>
1045
- `},ko=e=>{const{m:t,context:s,handlers:a}=e,{state:n}=s,i=sa(t,n);return l`
1003
+ `},po=e=>{const{m:t,context:s,handlers:a}=e,{state:n}=s,i=ea(t,n);return l`
1046
1004
  <dpk-matrix
1047
1005
  data-testid="usm-map-group"
1048
- .rows=${aa(i)}
1049
- .columns=${bo(n)}
1006
+ .rows=${ta(i)}
1007
+ .columns=${no(n)}
1050
1008
  @dpk-matrix-reorder-row=${o=>a.reorderMilestone(o.detail)}
1051
1009
  @dpk-matrix-reorder-column=${o=>a.reorderActivity(o.detail)}
1052
1010
  >
1053
- ${oa(t,Nt)}
1054
- ${U(n.activities,o=>o.id,o=>ra(e,o.id,!0))}
1055
- ${da(t,s)}
1056
- ${U(i,o=>o.id,o=>pa(e,o))}
1057
- ${U(i,o=>o.id,o=>l`${U(n.activities,r=>r.id,r=>xo(e,Ze(o),r.id,o.id))}`)}
1058
- ${la(t,s)}
1011
+ ${na(t,Ct)}
1012
+ ${B(n.activities,o=>o.id,o=>ia(e,o.id,!0))}
1013
+ ${oa(t,s)}
1014
+ ${B(i,o=>o.id,o=>da(e,o))}
1015
+ ${B(i,o=>o.id,o=>l`${B(n.activities,r=>r.id,r=>bo(e,Ze(o),r.id,o.id))}`)}
1016
+ ${ra(t,s)}
1059
1017
  </dpk-matrix>
1060
- `},oa=(e,t)=>l`<div class="corner" slot=${t}>
1018
+ `},na=(e,t)=>l`<div class="corner" slot=${t}>
1061
1019
  <span class="dpk-label">${e.activityAxis}</span>
1062
1020
  <span class="dpk-label">${e.milestoneAxis}</span>
1063
- </div>`,ra=(e,t,s=!1)=>{const{m:a,context:n}=e,{state:i}=n,o=i.activities.find(p=>p.id===t);if(!o)return l`<div class="act-head"></div>`;const r=i.stories.filter(p=>p.activityId===o.id),d=Hs(i,r);return l`
1021
+ </div>`,ia=(e,t,s=!1)=>{const{m:a,context:n}=e,{state:i}=n,o=i.activities.find(p=>p.id===t);if(!o)return l`<div class="act-head"></div>`;const r=i.stories.filter(p=>p.activityId===o.id),d=Hs(i,r);return l`
1064
1022
  <div
1065
1023
  class="act-head"
1066
1024
  data-activity=${o.id}
1067
1025
  data-column=${o.id}
1068
1026
  data-dpk-target=${I({type:"activity",id:o.id})}
1069
1027
  data-dpk-check="off"
1070
- data-grill-questions=${Re(Le(o.questions))}
1071
- slot=${Ct(o.id)}
1028
+ data-grill-questions=${Oe(Le(o.questions))}
1029
+ slot=${Bt(o.id)}
1072
1030
  >
1073
1031
  <div class="act-title">
1074
1032
  <span class="act-name">
1075
1033
  <dpk-inline-edit
1076
1034
  draggable="false"
1035
+ wrap
1077
1036
  .value=${o.name}
1078
1037
  .label=${a.activityNameLabel}
1079
1038
  @dpk-commit=${Q(p=>n.dispatch({type:"SET_ACTIVITY_NAME",target:{type:"activity",id:o.id},payload:{name:p}}))}
@@ -1094,17 +1053,17 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1094
1053
  class="dpk-icon-btn"
1095
1054
  type="button"
1096
1055
  aria-label=${a.addStepAria}
1097
- @click=${()=>_i(a,n,o.id)}
1056
+ @click=${()=>yi(a,n,o.id)}
1098
1057
  >
1099
- ${Ga()}
1058
+ ${Pa()}
1100
1059
  </button>
1101
1060
  </div>
1102
- ${Ys(d,a.progressAria(d.map(p=>`${p.name} ${p.count}`).join(", ")))}
1061
+ ${Us(d,a.progressAria(d.map(p=>`${p.name} ${p.count}`).join(", ")))}
1103
1062
  ${s&&o.steps.length>0?l`<ol class="act-steps">
1104
1063
  ${o.steps.map(p=>l`<li>${p.name}</li>`)}
1105
1064
  </ol>`:u}
1106
1065
  </div>
1107
- `},wo=(e,t,s)=>{const{m:a,context:n}=e,i=ce(t,s.id);return l`
1066
+ `},co=(e,t,s)=>{const{m:a,context:n}=e,i=ce(t,s.id);return l`
1108
1067
  <div
1109
1068
  class="col-head"
1110
1069
  data-step=${i}
@@ -1113,8 +1072,8 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1113
1072
  data-current=${String(n.navigation.step===s.id)}
1114
1073
  data-dpk-target=${I({type:"step",id:i})}
1115
1074
  data-dpk-check="off"
1116
- data-grill-questions=${Re(Le(s.questions))}
1117
- slot=${Bt(t,s.id)}
1075
+ data-grill-questions=${Oe(Le(s.questions))}
1076
+ slot=${Yt(t,s.id)}
1118
1077
  >
1119
1078
  <h4>
1120
1079
  <dpk-inline-edit
@@ -1125,45 +1084,45 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1125
1084
  @click=${o=>o.stopPropagation()}
1126
1085
  ></dpk-inline-edit>
1127
1086
  </h4>
1128
- <span class="dpk-count" data-size="sm">${Qt(n.state,s.id)}</span>
1087
+ <span class="dpk-count" data-size="sm">${es(n.state,s.id)}</span>
1129
1088
  </div>
1130
- `},da=(e,t)=>l`<div class="act-head" slot=${Ct(Xe)}>
1089
+ `},oa=(e,t)=>l`<div class="act-head" slot=${Bt(Xe)}>
1131
1090
  <button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Ps(e,t)}>
1132
1091
  ${e.newActivityButton}
1133
1092
  </button>
1134
- </div>`,So=()=>l`<div class="corner" slot=${Bt(Xe,ta)}>
1093
+ </div>`,uo=()=>l`<div class="corner" slot=${Yt(Xe,Qs)}>
1135
1094
  <span class="dpk-label">—</span>
1136
- </div>`,la=(e,t)=>l`<div class="row-lead" slot=${Ut(ea)}>
1095
+ </div>`,ra=(e,t)=>l`<div class="row-lead" slot=${Ut(Js)}>
1137
1096
  <div class="row-head">
1138
1097
  <button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>zs(e,t)}>
1139
1098
  ${e.newMilestoneButton}
1140
1099
  </button>
1141
1100
  </div>
1142
- </div>`,pa=(e,t)=>{const{m:s,context:a}=e,n=t.id,i=Ut(Ze(t));if(n===void 0)return l`<div class="row-lead" slot=${i}>
1101
+ </div>`,da=(e,t)=>{const{m:s,context:a}=e,n=t.id,i=Ut(Ze(t));if(n===void 0)return l`<div class="row-lead" slot=${i}>
1143
1102
  <div class="row-head" data-unassigned="true" data-milestone=""><span>${t.name}</span></div>
1144
- ${ca(s,t)}
1145
- </div>`;const o=Eo(s,a,n,t.name);return l`
1103
+ ${la(s,t)}
1104
+ </div>`;const o=mo(s,a,n,t.name);return l`
1146
1105
  <div class="row-lead" slot=${i}>
1147
1106
  <div
1148
1107
  class="row-head"
1149
1108
  data-milestone=${n}
1150
1109
  data-dpk-target=${I({type:"milestone",id:n})}
1151
1110
  data-dpk-check="off"
1152
- data-grill-questions=${Re(Le(t.questions))}
1111
+ data-grill-questions=${Oe(Le(t.questions))}
1153
1112
  >
1154
1113
  ${o}
1155
1114
  </div>
1156
- ${ca(s,t)}
1115
+ ${la(s,t)}
1157
1116
  </div>
1158
- `},ca=(e,t)=>l`<div class="row-meta">
1117
+ `},la=(e,t)=>l`<div class="row-meta">
1159
1118
  ${t.timeframe===""?u:l`<span class="row-timeframe">${t.timeframe}</span>`}
1160
1119
  <span class="row-count">${e.storyCount(t.storyCount)}</span>
1161
- </div>`,Eo=(e,t,s,a)=>l`<dpk-inline-edit
1120
+ </div>`,mo=(e,t,s,a)=>l`<dpk-inline-edit
1162
1121
  draggable="false"
1163
1122
  .value=${a}
1164
1123
  .label=${e.milestoneNameLabel}
1165
1124
  @dpk-commit=${Q(n=>t.dispatch({type:"SET_MILESTONE_NAME",target:{type:"milestone",id:s},payload:{name:n}}))}
1166
- ></dpk-inline-edit>`,$o=(e,t,s)=>{const{m:a,context:n,drag:i,handlers:o}=e,r=Ge(n.state,n.navigation),d=Pe(n.state,s.stepId,s.milestoneId).filter(y=>$s(r,y)),p=`cell:${s.stepId}:${s.milestoneId??""}`,m=i.target({key:p,accepts:"story",hovered:ma,onDrop:y=>o.dropOnCell(s,y)});return l`
1125
+ ></dpk-inline-edit>`,ho=(e,t,s)=>{const{m:a,context:n,drag:i,handlers:o}=e,r=Ve(n.state,n.navigation),d=ze(n.state,s.stepId,s.milestoneId).filter(y=>$s(r,y)),p=`cell:${s.stepId}:${s.milestoneId??""}`,m=i.target({key:p,accepts:"story",hovered:ca,onDrop:y=>o.dropOnCell(s,y)});return l`
1167
1126
  <div
1168
1127
  class="cell"
1169
1128
  data-step=${s.stepId}
@@ -1171,14 +1130,14 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1171
1130
  data-column=${s.activityId}
1172
1131
  data-column-step=${s.stepId}
1173
1132
  data-drop=${String(i.isOver(p))}
1174
- slot=${Yt(t,{columnId:s.activityId,subColumnId:s.stepId})}
1133
+ slot=${Pt(t,{columnId:s.activityId,subColumnId:s.stepId})}
1175
1134
  @dragenter=${m.dragenter}
1176
1135
  @dragover=${m.dragover}
1177
1136
  @dragleave=${m.dragleave}
1178
1137
  @drop=${m.drop}
1179
1138
  >
1180
1139
  <div class="card-list" data-testid=${`cell-${s.stepId}-${s.milestoneId??"unassigned"}`}>
1181
- ${U(d,y=>y.id,y=>ua(e,y,""))}
1140
+ ${B(d,y=>y.id,y=>pa(e,y,""))}
1182
1141
  </div>
1183
1142
  <button
1184
1143
  class="dpk-add add-cell"
@@ -1189,21 +1148,21 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1189
1148
  ${a.addCellButton}
1190
1149
  </button>
1191
1150
  </div>
1192
- `},xo=(e,t,s,a)=>{const{m:n,context:i,drag:o,handlers:r}=e,{state:d}=i,p=Ge(d,i.navigation),m=Jt(d,s,a).filter(L=>$s(p,L)),y=d.activities.find(L=>L.id===s)?.steps??[],E=y[0],S=L=>y.find(c=>c.id===L)?.name??"",A=`group:${s}:${a??""}`,$=o.target({key:A,accepts:"story",hovered:ma,onDrop:L=>r.dropOnGroupCell(s,a,L)});return l`
1151
+ `},bo=(e,t,s,a)=>{const{m:n,context:i,drag:o,handlers:r}=e,{state:d}=i,p=Ve(d,i.navigation),m=Qt(d,s,a).filter(L=>$s(p,L)),y=d.activities.find(L=>L.id===s)?.steps??[],E=y[0],S=L=>y.find(c=>c.id===L)?.name??"",A=`group:${s}:${a??""}`,$=o.target({key:A,accepts:"story",hovered:ca,onDrop:L=>r.dropOnGroupCell(s,a,L)});return l`
1193
1152
  <div
1194
1153
  class="cell"
1195
1154
  data-activity=${s}
1196
1155
  data-milestone=${a??""}
1197
1156
  data-column=${s}
1198
1157
  data-drop=${String(o.isOver(A))}
1199
- slot=${Yt(t,{columnId:s})}
1158
+ slot=${Pt(t,{columnId:s})}
1200
1159
  @dragenter=${$.dragenter}
1201
1160
  @dragover=${$.dragover}
1202
1161
  @dragleave=${$.dragleave}
1203
1162
  @drop=${$.drop}
1204
1163
  >
1205
1164
  <div class="card-list" data-testid=${`group-cell-${s}-${a??"unassigned"}`}>
1206
- ${U(m,L=>L.id,L=>ua(e,L,S(L.stepId)))}
1165
+ ${B(m,L=>L.id,L=>pa(e,L,S(L.stepId)))}
1207
1166
  </div>
1208
1167
  ${E?l`<button
1209
1168
  class="dpk-add add-cell"
@@ -1214,27 +1173,27 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1214
1173
  ${n.addCellButton}
1215
1174
  </button>`:u}
1216
1175
  </div>
1217
- `},ua=(e,t,s)=>{const{context:a,drag:n,handlers:i}=e,o=he(a.state),r=n.source({type:"story",id:t.id}),d=vs(a.state,t.id);return l`<dpk-internal-usm-story-card
1176
+ `},pa=(e,t,s)=>{const{context:a,drag:n,handlers:i}=e,o=he(a.state),r=n.source({type:"story",id:t.id}),d=vs(a.state,t.id);return l`<dpk-internal-usm-story-card
1218
1177
  data-story=${t.id}
1219
1178
  data-status=${t.statusId??""}
1220
- data-relation=${_o(a.state,a.navigation.story,t)??u}
1221
- data-highlight=${To(e.highlighted,t.id)??u}
1179
+ data-relation=${fo(a.state,a.navigation.story,t)??u}
1180
+ data-highlight=${go(e.highlighted,t.id)??u}
1222
1181
  data-dpk-target=${I({type:"story",id:t.id})}
1223
- data-grill-questions=${Re(Le(t.questions))}
1182
+ data-grill-questions=${Oe(Le(t.questions))}
1224
1183
  draggable="true"
1225
1184
  tabindex="0"
1226
1185
  role="button"
1227
1186
  aria-haspopup="dialog"
1228
1187
  aria-label=${t.name}
1229
- style=${M(Gs(o,t)?.tone)}
1188
+ style=${M(Vs(o,t)?.tone)}
1230
1189
  .story=${t}
1231
1190
  .map=${a.state}
1232
1191
  .stepName=${s}
1233
1192
  .statuses=${o}
1234
- .labels=${ct(a.state,t)}
1193
+ .labels=${pt(a.state,t)}
1235
1194
  .reviewCount=${a.commentCount({type:"story",id:t.id})}
1236
- .estimate=${z(a.state,"estimates")?F(a.state,t.estimateId)??null:null}
1237
- .assignee=${z(a.state,"assignees")?pt(a.state,t)??null:null}
1195
+ .estimate=${P(a.state,"estimates")?z(a.state,t.estimateId)??null:null}
1196
+ .assignee=${P(a.state,"assignees")?lt(a.state,t)??null:null}
1238
1197
  .blocks=${d.dependents.length}
1239
1198
  .waits=${d.openBlockers}
1240
1199
  @click=${()=>i.selectStory(t.id)}
@@ -1243,31 +1202,31 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1243
1202
  ?dragging=${n.isDragging("story",t.id)}
1244
1203
  @dragstart=${r.dragstart}
1245
1204
  @dragend=${r.dragend}
1246
- ></dpk-internal-usm-story-card>`},To=(e,t)=>{if(e!==null)return e.has(t)?"on":"dimmed"},_o=(e,t,s)=>{if(!(t===void 0||t===s.id))return s.blockedBy?.includes(t)?"dependent":e.stories.find(a=>a.id===t)?.blockedBy?.includes(s.id)?"blocker":void 0},ma=e=>{const t=e.target instanceof Element?e.target.closest("dpk-internal-usm-story-card"):null;return t?{id:t.getAttribute("data-story"),element:t}:null},Io=(e,t)=>Mt((s,a)=>{const n=s.trim()===""?Number.NaN:Number(s);if(!Number.isFinite(n)||n<0){a.value=String(e);return}n!==e&&t(n)}),Ao=O(Ha),Mo=O(gn),Lo={width:720,height:240,inset:{top:16,right:20,bottom:26,left:40}},Do={width:340,height:150,inset:{top:12,right:14,bottom:24,left:32}},Ro=(e,t,s,a)=>{const{state:n,navigation:i}=t,o=Dn(n,i),r=ge(n);return l`
1205
+ ></dpk-internal-usm-story-card>`},go=(e,t)=>{if(e!==null)return e.has(t)?"on":"dimmed"},fo=(e,t,s)=>{if(!(t===void 0||t===s.id))return s.blockedBy?.includes(t)?"dependent":e.stories.find(a=>a.id===t)?.blockedBy?.includes(s.id)?"blocker":void 0},ca=e=>{const t=e.target instanceof Element?e.target.closest("dpk-internal-usm-story-card"):null;return t?{id:t.getAttribute("data-story"),element:t}:null},yo=(e,t)=>At((s,a)=>{const n=s.trim()===""?Number.NaN:Number(s);if(!Number.isFinite(n)||n<0){a.value=String(e);return}n!==e&&t(n)}),vo=O(za),ko=O(mn),wo={width:720,height:240,inset:{top:16,right:20,bottom:26,left:40}},So={width:340,height:150,inset:{top:12,right:14,bottom:24,left:32}},Eo=(e,t,s,a)=>{const{state:n,navigation:i}=t,o=An(n,i),r=ge(n);return l`
1247
1206
  <section class="bd-overview" data-testid="usm-burndown">
1248
1207
  <header class="bd-bar">
1249
- ${o?Oo(e,t,o,a):u}
1250
- ${No(e,t,r)}
1208
+ ${o?$o(e,t,o,a):u}
1209
+ ${To(e,t,r)}
1251
1210
  ${o?l`<span class="bd-record">
1252
1211
  <button
1253
1212
  class="dpk-btn dpk-btn--primary"
1254
1213
  type="button"
1255
1214
  data-role="record-snapshot"
1256
1215
  title=${e.recordSnapshotHint}
1257
- @click=${()=>Di(t,new Date)}
1216
+ @click=${()=>Ei(t,new Date)}
1258
1217
  >
1259
1218
  ${e.recordSnapshotButton}
1260
1219
  </button>
1261
1220
  </span>`:u}
1262
1221
  </header>
1263
- ${r==="stories"?u:Co(e,t,r)}
1264
- ${o?Bo(e,t,o,r,s):l`<div class="empty">
1222
+ ${r==="stories"?u:xo(e,t,r)}
1223
+ ${o?_o(e,t,o,r,s):l`<div class="empty">
1265
1224
  <h2>${e.burndownTab}</h2>
1266
1225
  <p>${e.noMilestonesForBurndown}</p>
1267
1226
  </div>`}
1268
- <div class="bd-side">${Uo(e,t)}</div>
1227
+ <div class="bd-side">${Io(e,t)}</div>
1269
1228
  </section>
1270
- `},Oo=(e,t,s,a)=>{const{state:n}=t;return l`<label class="bd-control">
1229
+ `},$o=(e,t,s,a)=>{const{state:n}=t;return l`<label class="bd-control">
1271
1230
  <span>${e.burndownMilestoneLabel}</span>
1272
1231
  ${a.render({options:n.milestones.map(i=>({value:i.id,label:i.name})),value:s.id,onChange:i=>t.navigate({milestone:i}),ariaLabel:e.burndownMilestoneLabel,className:"bd-milestone-select"})}
1273
1232
  </label>
@@ -1278,12 +1237,12 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1278
1237
  type="date"
1279
1238
  data-role="due-date"
1280
1239
  .value=${s.dueDate??""}
1281
- @change=${Mt(i=>{const o=i===""?null:i;o!==(s.dueDate??null)&&t.dispatch({type:"SET_MILESTONE_DUE_DATE",target:{type:"milestone",id:s.id},payload:{dueDate:o}})})}
1240
+ @change=${At(i=>{const o=i===""?null:i;o!==(s.dueDate??null)&&t.dispatch({type:"SET_MILESTONE_DUE_DATE",target:{type:"milestone",id:s.id},payload:{dueDate:o}})})}
1282
1241
  />
1283
- </label>`},No=(e,t,s)=>l`<span class="bd-control">
1242
+ </label>`},To=(e,t,s)=>l`<span class="bd-control">
1284
1243
  <span id="bd-measure-label">${e.measureLabel}</span>
1285
1244
  <span class="bd-measures" role="radiogroup" aria-labelledby="bd-measure-label">
1286
- ${Ft.map(a=>l`<label class="bd-measure"
1245
+ ${Gt.map(a=>l`<label class="bd-measure"
1287
1246
  ><input
1288
1247
  type="radio"
1289
1248
  name="bd-measure"
@@ -1293,7 +1252,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1293
1252
  />${e.measureName(a)}</label
1294
1253
  >`)}
1295
1254
  </span>
1296
- </span>`,Co=(e,t,s)=>{const{state:a}=t,n=as(a),i=js(n),o=a.estimates.map(d=>`${d.name} ${d.points}`).join(" \xB7 "),r=We(i).map((d,p)=>`${n[p]?.name??""} ${Math.round(d*10)/10}`).join(" \xB7 ");return l`<details class="bd-settings" data-testid="usm-measure-settings" open>
1255
+ </span>`,xo=(e,t,s)=>{const{state:a}=t,n=ns(a),i=qs(n),o=a.estimates.map(d=>`${d.name} ${d.points}`).join(" \xB7 "),r=We(i).map((d,p)=>`${n[p]?.name??""} ${Math.round(d*10)/10}`).join(" \xB7 ");return l`<details class="bd-settings" data-testid="usm-measure-settings" open>
1297
1256
  <summary class="bd-settings-summary">
1298
1257
  <span class="bd-settings-chevron" aria-hidden="true"></span>
1299
1258
  <span class="bd-settings-title">${e.measureSettingsLabel}</span>
@@ -1303,24 +1262,24 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1303
1262
  </span>
1304
1263
  </summary>
1305
1264
  <div class="bd-settings-body">
1306
- ${Yo(e,t)} ${s==="weighted"?zo(e,t):u}
1265
+ ${Ao(e,t)} ${s==="weighted"?Lo(e,t):u}
1307
1266
  </div>
1308
- </details>`},Bo=(e,t,s,a,n)=>{const{state:i}=t,o=On(i,s.id,n.getTime()),r=a==="weighted",d=i.stories.filter(p=>p.milestoneId===s.id&&p.estimateId===void 0).length;return l`
1267
+ </details>`},_o=(e,t,s,a,n)=>{const{state:i}=t,o=Ln(i,s.id,n.getTime()),r=a==="weighted",d=i.stories.filter(p=>p.milestoneId===s.id&&p.estimateId===void 0).length;return l`
1309
1268
  ${a!=="stories"&&d>0?l`<p class="bd-warning" role="note" data-testid="usm-unestimated-warning">
1310
- ${Mo()}<span>${e.unestimatedNote(d)}</span>
1269
+ ${ko()}<span>${e.unestimatedNote(d)}</span>
1311
1270
  </p>`:u}
1312
1271
  <figure class="bd-chart bd-chart--combined">
1313
1272
  <figcaption>
1314
1273
  <span class="bd-chart-title">${e.combinedChartTitle(r)}</span>
1315
1274
  <span class="bd-about">
1316
1275
  <button class="bd-about-btn" type="button" aria-label=${e.chartAbout} aria-describedby="bd-about-tip">
1317
- ${Ao()}
1276
+ ${vo()}
1318
1277
  </button>
1319
1278
  <span class="bd-about-tip" id="bd-about-tip" role="tooltip">${e.combinedChartHint(a)}</span>
1320
1279
  </span>
1321
- <span class="bd-chart-latest">${e.chartLatest(ba(o.combined))}</span>
1280
+ <span class="bd-chart-latest">${e.chartLatest(ma(o.combined))}</span>
1322
1281
  </figcaption>
1323
- ${ha({chart:"combined",title:e.combinedChartTitle(r),points:o.combined,due:o.due,now:n.getTime(),size:Lo,tone:"accent"})}
1282
+ ${ua({chart:"combined",title:e.combinedChartTitle(r),points:o.combined,due:o.due,now:n.getTime(),size:wo,tone:"accent"})}
1324
1283
  </figure>
1325
1284
  ${o.byStatus.length===0?u:l`<section class="bd-multiples" aria-label=${e.statusChartsLabel}>
1326
1285
  <h3>${e.statusChartsLabel}</h3>
@@ -1328,13 +1287,13 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1328
1287
  ${o.byStatus.map(({status:p,points:m})=>l`<figure class="bd-chart" data-status=${p.id}>
1329
1288
  <figcaption>
1330
1289
  <span class="bd-chart-title">${e.statusChartTitle(p.name)}</span>
1331
- <span class="bd-chart-latest">${e.chartLatest(ba(m))}</span>
1290
+ <span class="bd-chart-latest">${e.chartLatest(ma(m))}</span>
1332
1291
  </figcaption>
1333
- ${ha({chart:"status",statusId:p.id,title:e.statusChartTitle(p.name),points:m,due:o.due,now:n.getTime(),size:Do,tone:p.tone})}
1292
+ ${ua({chart:"status",statusId:p.id,title:e.statusChartTitle(p.name),points:m,due:o.due,now:n.getTime(),size:So,tone:p.tone})}
1334
1293
  </figure>`)}
1335
1294
  </div>
1336
1295
  </section>`}
1337
- `},ha=e=>l`<dpk-internal-usm-burndown-chart
1296
+ `},ua=e=>l`<dpk-internal-usm-burndown-chart
1338
1297
  data-chart=${e.chart}
1339
1298
  data-status=${e.statusId??u}
1340
1299
  .points=${e.points}
@@ -1343,10 +1302,10 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1343
1302
  .size=${e.size}
1344
1303
  .tone=${e.tone}
1345
1304
  .label=${e.title}
1346
- ></dpk-internal-usm-burndown-chart>`,Uo=(e,t)=>{const s=[...t.state.snapshots].reverse();return l`<section class="bd-panel">
1305
+ ></dpk-internal-usm-burndown-chart>`,Io=(e,t)=>{const s=[...t.state.snapshots].reverse();return l`<section class="bd-panel">
1347
1306
  <h3>${e.snapshotsLabel}<span class="bd-count">${s.length}</span></h3>
1348
1307
  ${s.length===0?l`<p class="bd-empty">${e.noSnapshots} ${e.chartNeedsSnapshot}</p>`:l`<ol class="bd-snapshots">
1349
- ${U(s,a=>a.id,a=>{const n={type:"snapshot",id:a.id},i=ue(a.at),o=a.tally.reduce((r,d)=>r+d.stories,0);return l`<li data-snapshot=${a.id} data-dpk-target=${I(n)}>
1308
+ ${B(s,a=>a.id,a=>{const n={type:"snapshot",id:a.id},i=ue(a.at),o=a.tally.reduce((r,d)=>r+d.stories,0);return l`<li data-snapshot=${a.id} data-dpk-target=${I(n)}>
1350
1309
  <span class="bd-snapshot-at">${i}</span>
1351
1310
  <span class="bd-snapshot-sum">${e.storyCount(o)}</span>
1352
1311
  <button
@@ -1356,22 +1315,22 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1356
1315
  aria-label=${e.deleteSnapshotAria(i)}
1357
1316
  @click=${()=>t.dispatch({type:"DELETE_SNAPSHOT",target:n,payload:{}})}
1358
1317
  >
1359
- ${tt()}
1318
+ ${et()}
1360
1319
  </button>
1361
1320
  </li>`})}
1362
1321
  </ol>`}
1363
- </section>`},Yo=(e,t)=>{const{estimates:s}=t.state;return l`<section class="bd-panel" data-testid="usm-estimates">
1322
+ </section>`},Ao=(e,t)=>{const{estimates:s}=t.state;return l`<section class="bd-panel" data-testid="usm-estimates">
1364
1323
  <h3>${e.estimatesLabel}<span class="bd-count">${s.length}</span></h3>
1365
1324
  <p class="bd-empty">${e.estimatesHint}</p>
1366
1325
  ${s.length===0?u:l`<ol class="bd-estimates">
1367
- ${U(s,a=>a.id,(a,n)=>Po(e,t,a,n))}
1326
+ ${B(s,a=>a.id,(a,n)=>Mo(e,t,a,n))}
1368
1327
  </ol>`}
1369
1328
  <div>
1370
- <button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Li(e,t)}>
1329
+ <button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Si(e,t)}>
1371
1330
  ${e.newEstimateButton}
1372
1331
  </button>
1373
1332
  </div>
1374
- </section>`},Po=(e,t,s,a)=>{const{estimates:n}=t.state,i={type:"estimate",id:s.id};return l`<li data-estimate=${s.id} data-dpk-target=${I(i)}>
1333
+ </section>`},Mo=(e,t,s,a)=>{const{estimates:n}=t.state,i={type:"estimate",id:s.id};return l`<li data-estimate=${s.id} data-dpk-target=${I(i)}>
1375
1334
  <span class="bd-estimate-name">
1376
1335
  <dpk-inline-edit
1377
1336
  .value=${s.name}
@@ -1389,20 +1348,20 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1389
1348
  data-role="points"
1390
1349
  aria-label=${e.estimatePointsLabel}
1391
1350
  .value=${String(s.points)}
1392
- @change=${Io(s.points,o=>t.dispatch({type:"SET_ESTIMATE_POINTS",target:i,payload:{points:o}}))}
1351
+ @change=${yo(s.points,o=>t.dispatch({type:"SET_ESTIMATE_POINTS",target:i,payload:{points:o}}))}
1393
1352
  />
1394
1353
  <span>pt</span>
1395
1354
  </label>
1396
1355
  ${qe(e,{ids:n.map(o=>o.id),row:{previousId:n[a-1]?.id??null,nextId:n[a+1]?.id??null},deleteLabel:e.deleteEstimateAria,reorder:o=>t.dispatch({type:"REORDER_ESTIMATE",target:i,payload:{after:o}}),remove:()=>t.dispatch({type:"DELETE_ESTIMATE",target:i,payload:{}})})}
1397
- </li>`},zo=(e,t)=>{const{state:s}=t,a=as(s),n=js(a);return l`<section class="bd-panel" data-testid="usm-weights">
1356
+ </li>`},Lo=(e,t)=>{const{state:s}=t,a=ns(s),n=qs(a);return l`<section class="bd-panel" data-testid="usm-weights">
1398
1357
  <h3>${e.statusWeightLabel}</h3>
1399
1358
  <p class="bd-empty">${e.statusWeightHint}</p>
1400
1359
  ${n.length>0?l`<dpk-internal-usm-weight-bar
1401
1360
  .statuses=${he(s).slice(0,a.length)}
1402
1361
  .dividers=${n}
1403
- .commit=${i=>{for(const{statusId:o,weight:r}of oo(a,i))t.dispatch({type:"SET_STATUS_WEIGHT",target:{type:"status",id:o},payload:{weight:r}})}}
1362
+ .commit=${i=>{for(const{statusId:o,weight:r}of Xi(a,i))t.dispatch({type:"SET_STATUS_WEIGHT",target:{type:"status",id:o},payload:{weight:r}})}}
1404
1363
  ></dpk-internal-usm-weight-bar>`:l`<p class="bd-empty">${e.weightsNeedStatuses}</p>`}
1405
- </section>`},ba=e=>e.at(-1)?.value??0,Fo=H`
1364
+ </section>`},ma=e=>e.at(-1)?.value??0,Do=q`
1406
1365
  .bd-overview {
1407
1366
  display: grid;
1408
1367
  gap: 18px;
@@ -1753,7 +1712,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1753
1712
  min-width: 0;
1754
1713
  }
1755
1714
  }
1756
- `,Vo=/[ァ-ヶ]/g,ga=e=>e.normalize("NFKC").toLowerCase().replace(Vo,t=>String.fromCharCode(t.charCodeAt(0)-96)),Go=(e,t)=>{const s=ga(t).split(/\s+/).filter(Boolean),a=ga(e);return s.every(n=>a.includes(n))},fa=(e,t,s,a)=>(s==="blocker"?qn(e,t):Wn(e,t)).flatMap(i=>{const o=N(e,`${i.activityId}.${i.stepId}`),r=o?[o.activity.name,o.step.name]:[];return Go([de(i),i.name,...r].join(" "),a)?[{story:i,place:r}]:[]}),ya=(e,t,s,a,n,i)=>{const{state:o}=t;if(fa(o,s,a,"").length===0)return u;const r=n.search?.side===a?n.search:null,d=r?fa(o,s,a,r.query):[],p=Math.max(0,Math.min(r?.active??0,d.length-1)),m=r?d[p]:void 0,y=a==="blocker"?e.addBlockerPlaceholder:e.addDependentPlaceholder,E=`dep-${a}-choices`,S=c=>`dep-${a}-${c.story.id}`,A=c=>{r||!(c.currentTarget instanceof HTMLInputElement)||n.set({side:a,query:c.currentTarget.value,active:0})},$=c=>{i(c.story.id),n.set(null)},L=c=>{if(!c.isComposing)switch(va(c)){case"ArrowDown":case"ArrowUp":{if(c.preventDefault(),!r){A(c);return}if(d.length===0)return;const T=va(c)==="ArrowDown"?1:-1;n.set({...r,active:(p+T+d.length)%d.length});return}case"Enter":if(!m)return;c.preventDefault(),$(m);return;case"Escape":if(!r)return;c.preventDefault(),n.set(null);return}};return l`<div class="sp-dep-picker">
1715
+ `,Ro=/[ァ-ヶ]/g,ha=e=>e.normalize("NFKC").toLowerCase().replace(Ro,t=>String.fromCharCode(t.charCodeAt(0)-96)),Oo=(e,t)=>{const s=ha(t).split(/\s+/).filter(Boolean),a=ha(e);return s.every(n=>a.includes(n))},ba=(e,t,s,a)=>(s==="blocker"?Yn(e,t):Un(e,t)).flatMap(i=>{const o=N(e,`${i.activityId}.${i.stepId}`),r=o?[o.activity.name,o.step.name]:[];return Oo([de(i),i.name,...r].join(" "),a)?[{story:i,place:r}]:[]}),ga=(e,t,s,a,n,i)=>{const{state:o}=t;if(ba(o,s,a,"").length===0)return u;const r=n.search?.side===a?n.search:null,d=r?ba(o,s,a,r.query):[],p=Math.max(0,Math.min(r?.active??0,d.length-1)),m=r?d[p]:void 0,y=a==="blocker"?e.addBlockerPlaceholder:e.addDependentPlaceholder,E=`dep-${a}-choices`,S=c=>`dep-${a}-${c.story.id}`,A=c=>{r||!(c.currentTarget instanceof HTMLInputElement)||n.set({side:a,query:c.currentTarget.value,active:0})},$=c=>{i(c.story.id),n.set(null)},L=c=>{if(!c.isComposing)switch(fa(c)){case"ArrowDown":case"ArrowUp":{if(c.preventDefault(),!r){A(c);return}if(d.length===0)return;const x=fa(c)==="ArrowDown"?1:-1;n.set({...r,active:(p+x+d.length)%d.length});return}case"Enter":if(!m)return;c.preventDefault(),$(m);return;case"Escape":if(!r)return;c.preventDefault(),n.set(null);return}};return l`<div class="sp-dep-picker">
1757
1716
  <input
1758
1717
  class="dpk-input sp-dep-search"
1759
1718
  type="text"
@@ -1775,9 +1734,9 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1775
1734
  @blur=${()=>{r&&n.set(null)}}
1776
1735
  />
1777
1736
  ${r?d.length===0?l`<p class="sp-dep-none" role="status">${e.noDependencyMatch}</p>`:l`<ul id=${E} class="sp-dep-choices" role="listbox" aria-label=${y}>
1778
- ${d.map(c=>Ho(o,c,S(c),c===m,$))}
1737
+ ${d.map(c=>No(o,c,S(c),c===m,$))}
1779
1738
  </ul>`:u}
1780
- </div>`},va=e=>!e.ctrlKey||e.altKey||e.metaKey||e.shiftKey?e.key:e.key==="n"?"ArrowDown":e.key==="p"?"ArrowUp":e.key,Ho=(e,t,s,a,n)=>{const i=he(e).find(o=>o.id===t.story.statusId);return l`<li
1739
+ </div>`},fa=e=>!e.ctrlKey||e.altKey||e.metaKey||e.shiftKey?e.key:e.key==="n"?"ArrowDown":e.key==="p"?"ArrowUp":e.key,No=(e,t,s,a,n)=>{const i=he(e).find(o=>o.id===t.story.statusId);return l`<li
1781
1740
  id=${s}
1782
1741
  role="option"
1783
1742
  data-story=${t.story.id}
@@ -1789,7 +1748,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1789
1748
  ${i?re(i):u}<span>${t.story.name}</span>
1790
1749
  </span>
1791
1750
  ${t.place.length===0?u:l`<span class="sp-dep-choice-place">${t.place.map(o=>l`<span>${o}</span>`)}</span>`}
1792
- </li>`},Ko=H`
1751
+ </li>`},Co=q`
1793
1752
  .sp-dep-picker {
1794
1753
  display: grid;
1795
1754
  gap: 4px;
@@ -1850,7 +1809,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1850
1809
  color: var(--dpk-ink-faint);
1851
1810
  font-size: 12px;
1852
1811
  }
1853
- `,qo=O(hn),Wo=(e,t)=>{const s=Ve(t.navigation)==="critical-path",a=s?ks(t.state).ids.size:null;return l`<button
1812
+ `,Bo=O(cn),Yo=(e,t)=>{const s=Ge(t.navigation)==="critical-path",a=s?ks(t.state).ids.size:null;return l`<button
1854
1813
  class="dpk-btn dpk-btn--ghost highlight-toggle"
1855
1814
  type="button"
1856
1815
  data-highlight-toggle="critical-path"
@@ -1858,9 +1817,9 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1858
1817
  title=${e.criticalPathHint}
1859
1818
  @click=${()=>t.navigate({highlight:s?null:"critical-path"})}
1860
1819
  >
1861
- ${qo()}<span>${e.criticalPathButton}</span>
1820
+ ${Bo()}<span>${e.criticalPathButton}</span>
1862
1821
  ${a===null?u:l`<span class="highlight-count">${e.criticalPathCount(a)}</span>`}
1863
- </button>`},jo=H`
1822
+ </button>`},Uo=q`
1864
1823
  .highlight-toggle {
1865
1824
  gap: 6px;
1866
1825
  margin-left: auto;
@@ -1883,10 +1842,10 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1883
1842
  font-size: 10.5px;
1884
1843
  font-variant-numeric: tabular-nums;
1885
1844
  }
1886
- `,Xo=(e,t,s)=>{const{state:a}=t,n=xe.filter(r=>fe(a,r).length>0);if(n.length===0)return u;const i=Ge(a,t.navigation),o=Object.fromEntries(xe.map(r=>[r,null]));return l`<div class="map-filter" role="group" aria-label=${e.filterLabel} data-testid="usm-map-filter">
1887
- ${n.map(r=>Jo(e,t,i,r,s))} ${Zo(e,t)}
1888
- ${ei(i)?l`<a class="filter-clear" href=${t.hashFor(o)}>${e.clearFilter}</a>`:u}
1889
- </div>`},Zo=(e,t)=>{const{state:s}=t,a=ts(s);if(!a||s.statuses.length<2)return u;const n=Ss(s,t.navigation).size===0,i=s.stories.filter(o=>$e(s,o)).length;return l`<label class="show-finished">
1845
+ `,Po=(e,t,s)=>{const{state:a}=t,n=Te.filter(r=>fe(a,r).length>0);if(n.length===0)return u;const i=Ve(a,t.navigation),o=Object.fromEntries(Te.map(r=>[r,null]));return l`<div class="map-filter" role="group" aria-label=${e.filterLabel} data-testid="usm-map-filter">
1846
+ ${n.map(r=>Fo(e,t,i,r,s))} ${zo(e,t)}
1847
+ ${Hn(i)?l`<a class="filter-clear" href=${t.hashFor(o)}>${e.clearFilter}</a>`:u}
1848
+ </div>`},zo=(e,t)=>{const{state:s}=t,a=ss(s);if(!a||s.statuses.length<2)return u;const n=Ss(s,t.navigation).size===0,i=s.stories.filter(o=>$e(s,o)).length;return l`<label class="show-finished">
1890
1849
  <input
1891
1850
  type="checkbox"
1892
1851
  data-show-finished
@@ -1895,7 +1854,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1895
1854
  />
1896
1855
  <span>${e.showFinished(a.name)}</span>
1897
1856
  <span class="show-finished-count">${i}</span>
1898
- </label>`},Jo=(e,t,s,a,n)=>{const i=s[a],o=tr(e,t.state,s.hiddenStatusIds,a),r=o.filter(p=>i.has(p.id)),d=n.openFor===a;return l`<span class="filter-field">
1857
+ </label>`},Fo=(e,t,s,a,n)=>{const i=s[a],o=Ho(e,t.state,s.hiddenStatusIds,a),r=o.filter(p=>i.has(p.id)),d=n.openFor===a;return l`<span class="filter-field">
1899
1858
  <button
1900
1859
  class="dpk-filter"
1901
1860
  type="button"
@@ -1906,10 +1865,10 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1906
1865
  @click=${()=>n.toggle(a)}
1907
1866
  >
1908
1867
  <span class="filter-key">${e.filterKeyLabel(a)}</span>
1909
- <span class="filter-value">${Qo(e,r)}</span>
1868
+ <span class="filter-value">${Go(e,r)}</span>
1910
1869
  </button>
1911
- ${d?er(e,t,a,i,o,n):u}
1912
- </span>`},Qo=(e,t)=>{const[s]=t;return s?t.length===1?s.name:`${s.name} +${t.length-1}`:e.filterAll},er=(e,t,s,a,n,i)=>l`<div
1870
+ ${d?Vo(e,t,a,i,o,n):u}
1871
+ </span>`},Go=(e,t)=>{const[s]=t;return s?t.length===1?s.name:`${s.name} +${t.length-1}`:e.filterAll},Vo=(e,t,s,a,n,i)=>l`<div
1913
1872
  id="filter-menu"
1914
1873
  class="comment-pop filter-menu"
1915
1874
  popover="manual"
@@ -1935,14 +1894,14 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
1935
1894
  data-none=${o.id===ie?"true":u}
1936
1895
  aria-checked=${String(r)}
1937
1896
  style=${o.style}
1938
- href=${t.hashFor({[s]:Es(t.state,s,Qn(a,o.id))})}
1897
+ href=${t.hashFor({[s]:Es(t.state,s,Vn(a,o.id))})}
1939
1898
  >
1940
1899
  <span class="filter-check">${r?De():u}</span>
1941
1900
  ${o.mark}
1942
1901
  <span class="filter-name" title=${o.name}>${o.name}</span>
1943
1902
  <span class="filter-count">${o.count}</span>
1944
1903
  </a>`})}
1945
- </div>`,tr=(e,t,s,a)=>{const n=i=>t.stories.filter(o=>o.statusId===void 0||!s.has(o.statusId)).filter(i).length;switch(a){case"status":return he(t).filter(i=>!s.has(i.id)).map(i=>({id:i.id,name:i.name,count:n(o=>o.statusId===i.id),mark:re(i),style:M(i.tone)}));case"label":return fe(t,a).map(i=>{const o=t.labels.find(r=>r.id===i);return{id:i,name:o?.name??e.noLabel,count:n(r=>o?(r.labelIds??[]).includes(i):(r.labelIds??[]).length===0),mark:l`<span class="filter-dot"></span>`,style:M(o?.tone)}});case"estimate":return fe(t,a).map(i=>{const o=F(t,i);return{id:i,name:o?.name??e.unestimatedFilter,count:n(r=>(r.estimateId??ie)===i),mark:o?l`<span class="filter-points">${o.points}pt</span>`:u,style:""}});case"assignee":return fe(t,a).map(i=>{const o=K(t,i);return{id:i,name:o?.name??e.noAssigneeFilter,count:n(r=>(r.assigneeId??ie)===i),mark:l`<span class="filter-dot"></span>`,style:M(o?.tone)}})}},sr=H`
1904
+ </div>`,Ho=(e,t,s,a)=>{const n=i=>t.stories.filter(o=>o.statusId===void 0||!s.has(o.statusId)).filter(i).length;switch(a){case"status":return he(t).filter(i=>!s.has(i.id)).map(i=>({id:i.id,name:i.name,count:n(o=>o.statusId===i.id),mark:re(i),style:M(i.tone)}));case"label":return fe(t,a).map(i=>{const o=t.labels.find(r=>r.id===i);return{id:i,name:o?.name??e.noLabel,count:n(r=>o?(r.labelIds??[]).includes(i):(r.labelIds??[]).length===0),mark:l`<span class="filter-dot"></span>`,style:M(o?.tone)}});case"estimate":return fe(t,a).map(i=>{const o=z(t,i);return{id:i,name:o?.name??e.unestimatedFilter,count:n(r=>(r.estimateId??ie)===i),mark:o?l`<span class="filter-points">${o.points}pt</span>`:u,style:""}});case"assignee":return fe(t,a).map(i=>{const o=V(t,i);return{id:i,name:o?.name??e.noAssigneeFilter,count:n(r=>(r.assigneeId??ie)===i),mark:l`<span class="filter-dot"></span>`,style:M(o?.tone)}})}},Ko=q`
1946
1905
  .show-finished {
1947
1906
  display: inline-flex;
1948
1907
  align-items: center;
@@ -2045,9 +2004,9 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2045
2004
  font-size: 10.5px;
2046
2005
  font-variant-numeric: tabular-nums;
2047
2006
  }
2048
- `,ar=(e,t,s)=>l`<div class="map-toolbar" data-testid="usm-map-toolbar">
2049
- ${Xo(e,t,s)} ${Wo(e,t)}
2050
- </div>`,nr=H`
2007
+ `,qo=(e,t,s)=>l`<div class="map-toolbar" data-testid="usm-map-toolbar">
2008
+ ${Po(e,t,s)} ${Yo(e,t)}
2009
+ </div>`,Wo=q`
2051
2010
  .map-toolbar {
2052
2011
  display: flex;
2053
2012
  flex-wrap: wrap;
@@ -2056,14 +2015,14 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2056
2015
  padding: 5px 24px;
2057
2016
  border-bottom: 1px solid var(--dpk-rule);
2058
2017
  }
2059
- `,ir=(e,t,s)=>l`
2018
+ `,jo=(e,t,s)=>l`
2060
2019
  <section class="ms-overview" data-testid="usm-milestones">
2061
2020
  ${s.length===0?l`<div class="empty">
2062
2021
  <h2>${e.noMilestonesTitle}</h2>
2063
2022
  <p>${e.noMilestonesBody}</p>
2064
2023
  </div>`:u}
2065
2024
  <ol class="ms-timeline">
2066
- ${U(s,a=>a.id,a=>or(e,t,a))}
2025
+ ${B(s,a=>a.id,a=>Xo(e,t,a))}
2067
2026
  <li class="ms-add">
2068
2027
  <span class="ms-when" aria-hidden="true"></span>
2069
2028
  <span class="ms-rail" aria-hidden="true"><span class="ms-node ms-node--add"></span></span>
@@ -2075,7 +2034,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2075
2034
  </li>
2076
2035
  </ol>
2077
2036
  </section>
2078
- `,or=(e,t,s)=>{const a=s.id;return l`
2037
+ `,Xo=(e,t,s)=>{const a=s.id;return l`
2079
2038
  <li class="ms-entry" data-milestone-card=${a} data-dpk-target=${I({type:"milestone",id:a})}>
2080
2039
  <div class="ms-when">
2081
2040
  ${s.timeframe===""?l`<span class="ms-timeframe" data-empty="true">${e.timeframeUnset}</span>`:l`<span class="ms-timeframe">${s.timeframe}</span>`}
@@ -2110,12 +2069,12 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2110
2069
  </dd>
2111
2070
  </div>
2112
2071
  </dl>
2113
- ${s.progress.length===0?u:rr(e,s)}
2072
+ ${s.progress.length===0?u:Zo(e,s)}
2114
2073
  </article>
2115
2074
  </li>
2116
- `},rr=(e,t)=>l`
2075
+ `},Zo=(e,t)=>l`
2117
2076
  <div class="ms-breakdown">
2118
- ${Ys(t.progress,e.progressAria(t.progress.map(s=>`${s.name} ${s.count}`).join(", ")))}
2077
+ ${Us(t.progress,e.progressAria(t.progress.map(s=>`${s.name} ${s.count}`).join(", ")))}
2119
2078
  <ul class="ms-legend" aria-hidden="true">
2120
2079
  ${t.progress.map(s=>l`<li data-status=${s.id} style=${M(s.tone)}>
2121
2080
  ${re(s)}
@@ -2124,7 +2083,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2124
2083
  </li>`)}
2125
2084
  </ul>
2126
2085
  </div>
2127
- `,dr=(e,t,s,a,n,i)=>{if(s.kind!=="picking-step")return u;const o=x(t.state,s.storyId),r=te(t.state,s.activityId);if(!o||!r)return u;const d=r.steps[0]?.id??null,p=n??d;return l`<div class="comment-pop move-dialog" id="move-dialog" popover="manual">
2086
+ `,Jo=(e,t,s,a,n,i)=>{if(s.kind!=="picking-step")return u;const o=T(t.state,s.storyId),r=te(t.state,s.activityId);if(!o||!r)return u;const d=r.steps[0]?.id??null,p=n??d;return l`<div class="comment-pop move-dialog" id="move-dialog" popover="manual">
2128
2087
  <span class="dpk-label">${e.moveDialogLabel}</span>
2129
2088
  ${a.render({options:r.steps.map(m=>({value:m.id,label:m.name})),value:p??"",onChange:i.pick,ariaLabel:e.moveDialogSelectLabel})}
2130
2089
  <div class="pop-actions">
@@ -2137,11 +2096,11 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2137
2096
  </button>
2138
2097
  <button class="dpk-btn" type="button" @click=${i.cancel}>${e.moveCancel}</button>
2139
2098
  </div>
2140
- </div>`},lr=(e,t)=>l`<div class="board-head" data-testid="usm-board-head">${e}${t}</div>`,pr=O(ln),cr=(e,t,s,a)=>{const{state:n}=t,i=fs(n),o=i.filter(r=>a.folded.has(r));return l`
2099
+ </div>`},Qo=(e,t)=>l`<div class="board-head" data-testid="usm-board-head">${e}${t}</div>`,er=O(on),tr=(e,t,s,a)=>{const{state:n}=t,i=fs(n),o=i.filter(r=>a.folded.has(r));return l`
2141
2100
  <div class="board-bar">
2142
2101
  <div class="page-nav" style=${`min-width: ${a.minimum}px`}>
2143
2102
  <div class="page-tabs dpk-tabstrip" role="tablist" aria-label=${e.pageTabsLabel}>
2144
- ${i.map(r=>ur(t,r,s,ka(e,r),wa(n,r),a.folded.has(r)))}
2103
+ ${i.map(r=>sr(t,r,s,ya(e,r),va(n,r),a.folded.has(r)))}
2145
2104
  </div>
2146
2105
  <button
2147
2106
  class="dpk-btn dpk-btn--ghost tabs-more"
@@ -2153,7 +2112,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2153
2112
  aria-expanded=${String(a.open)}
2154
2113
  @click=${a.toggle}
2155
2114
  >
2156
- ${pr()}
2115
+ ${er()}
2157
2116
  </button>
2158
2117
  ${a.open&&o.length>0?l`<div
2159
2118
  id="tabs-menu"
@@ -2169,13 +2128,13 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2169
2128
  data-tab=${r}
2170
2129
  href=${t.hashFor({tab:r==="map"?null:r})}
2171
2130
  @click=${a.close}
2172
- >${ka(e,r)}<span class="dpk-count">${wa(n,r)}</span></a
2131
+ >${ya(e,r)}<span class="dpk-count">${va(n,r)}</span></a
2173
2132
  >`)}
2174
2133
  </div>`:u}
2175
2134
  </div>
2176
- ${s==="map"&&n.activities.some(r=>r.steps.length>0)?yo(e,t):u}
2135
+ ${s==="map"&&n.activities.some(r=>r.steps.length>0)?ro(e,t):u}
2177
2136
  </div>
2178
- `},ka=(e,t)=>{switch(t){case"map":return e.mapTab;case"table":return e.tableTab;case"milestones":return e.milestonesTab;case"burndown":return e.burndownTab}},wa=(e,t)=>{switch(t){case"map":return e.stories.length;case"table":return e.stories.length;case"milestones":return e.milestones.length;case"burndown":return e.snapshots.length}},ur=(e,t,s,a,n,i)=>l`<a
2137
+ `},ya=(e,t)=>{switch(t){case"map":return e.mapTab;case"table":return e.tableTab;case"milestones":return e.milestonesTab;case"burndown":return e.burndownTab}},va=(e,t)=>{switch(t){case"map":return e.stories.length;case"table":return e.stories.length;case"milestones":return e.milestones.length;case"burndown":return e.snapshots.length}},sr=(e,t,s,a,n,i)=>l`<a
2179
2138
  role="tab"
2180
2139
  data-tab=${t}
2181
2140
  data-overflow=${i?"":u}
@@ -2184,7 +2143,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2184
2143
  aria-selected=${t===s?"true":"false"}
2185
2144
  href=${e.hashFor({tab:t==="map"?null:t})}
2186
2145
  >${a}<span class="dpk-count">${n}</span></a
2187
- >`,mr=36,hr=12,br=220,gr=H`
2146
+ >`,ar=36,nr=12,ir=220,or=q`
2188
2147
  /* The tabs and their more button share what the bar's line leaves; the line
2189
2148
  wraps only when even the current tab and the button do not fit. */
2190
2149
  .page-nav {
@@ -2240,13 +2199,13 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2240
2199
  outline: none;
2241
2200
  background: var(--dpk-paper-sunken);
2242
2201
  }
2243
- `,St=(e,t,s,a)=>({id:e,label:t,render:n=>l`<div class="dpk-dialog-section" data-dialog-section=${e}>
2202
+ `,kt=(e,t,s,a)=>({id:e,label:t,render:n=>l`<div class="dpk-dialog-section" data-dialog-section=${e}>
2244
2203
  <dpk-internal-usm-settings-section
2245
2204
  .kind=${s}
2246
2205
  .locale=${a}
2247
2206
  .context=${n}
2248
2207
  ></dpk-internal-usm-settings-section>
2249
- </div>`}),fr=O(bn),yr=O(Ka),vr=e=>x(e.state,e.navigation.story),kr=(e,t,s,a,n,i)=>{const{state:o}=t,r={type:"story",id:s.id},d=()=>t.navigate({story:null}),p=N(o,`${s.activityId}.${s.stepId}`),m=P(o,s.milestoneId);return l`<aside
2208
+ </div>`}),rr=O(un),dr=O(Fa),lr=e=>T(e.state,e.navigation.story),pr=(e,t,s,a,n,i)=>{const{state:o}=t,r={type:"story",id:s.id},d=()=>t.navigate({story:null}),p=N(o,`${s.activityId}.${s.stepId}`),m=U(o,s.milestoneId);return l`<aside
2250
2209
  class="story-panel"
2251
2210
  role="dialog"
2252
2211
  aria-label=${e.panelLabel(s.name)}
@@ -2259,17 +2218,17 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2259
2218
  ${p?l`<span>${p.activity.name}</span><span>${p.step.name}</span>`:u}
2260
2219
  <span>${m?.name??e.unassigned}</span>
2261
2220
  </span>
2262
- ${Ir(e,t,s)}
2221
+ ${yr(e,t,s)}
2263
2222
  <button class="dpk-icon-btn" type="button" data-role="close" aria-label=${e.closePanelAria} @click=${d}>
2264
- ${st()}
2223
+ ${tt()}
2265
2224
  </button>
2266
2225
  </header>
2267
2226
  <div class="sp-body">
2268
2227
  <div class="sp-heading">
2269
2228
  <div class="sp-copy-row">
2270
- ${wr(e,s,n)}
2271
- ${Sa(e,n,{role:"copy-id-title",label:e.copyIdTitle,text:wt(s),icon:fr})}
2272
- ${Sa(e,n,{role:"copy-info",label:e.copyStoryInfo,text:Ws(e,o,s),icon:yr})}
2229
+ ${cr(e,s,n)}
2230
+ ${ka(e,n,{role:"copy-id-title",label:e.copyIdTitle,text:vt(s),icon:rr})}
2231
+ ${ka(e,n,{role:"copy-info",label:e.copyStoryInfo,text:Ks(e,o,s),icon:dr})}
2273
2232
  </div>
2274
2233
  <h2 class="sp-title">
2275
2234
  <dpk-inline-edit
@@ -2280,10 +2239,10 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2280
2239
  ></dpk-inline-edit>
2281
2240
  </h2>
2282
2241
  </div>
2283
- ${o.statuses.length===0?u:Sr(e,t,s)}
2284
- ${z(o,"estimates")?Er(e,t,s):u}
2285
- ${z(o,"assignees")?$r(e,t,s,i):u}
2286
- ${xr(e,t,s,i)} ${Tr(e,t,s,a)}
2242
+ ${o.statuses.length===0?u:ur(e,t,s)}
2243
+ ${P(o,"estimates")?mr(e,t,s):u}
2244
+ ${P(o,"assignees")?hr(e,t,s,i):u}
2245
+ ${br(e,t,s,i)} ${gr(e,t,s,a)}
2287
2246
  <section class="sp-field">
2288
2247
  <h3>${e.storyDescriptionLabel}</h3>
2289
2248
  <dpk-inline-edit
@@ -2295,7 +2254,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2295
2254
  @dpk-commit=${Q(y=>t.dispatch({type:"SET_STORY_DESCRIPTION",target:r,payload:{description:y}}))}
2296
2255
  ></dpk-inline-edit>
2297
2256
  </section>
2298
- ${_r(e,t,s)} ${Ar(e,t,s)}
2257
+ ${fr(e,t,s)} ${vr(e,t,s)}
2299
2258
  </div>
2300
2259
  <footer class="sp-foot">
2301
2260
  <button
@@ -2303,10 +2262,10 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2303
2262
  type="button"
2304
2263
  @click=${()=>{t.dispatch({type:"DELETE_STORY",target:r,payload:{}}).ok&&d()}}
2305
2264
  >
2306
- ${tt()}<span>${e.deleteStoryButton}</span>
2265
+ ${et()}<span>${e.deleteStoryButton}</span>
2307
2266
  </button>
2308
2267
  </footer>
2309
- </aside>`},wr=(e,t,s)=>{const a=de(t),n=s.copied===a,i=n?e.storyKeyCopied:e.copyStoryKey(a);return l`<button
2268
+ </aside>`},cr=(e,t,s)=>{const a=de(t),n=s.copied===a,i=n?e.storyKeyCopied:e.copyStoryKey(a);return l`<button
2310
2269
  class="sp-key"
2311
2270
  type="button"
2312
2271
  data-role="copy-key"
@@ -2315,8 +2274,8 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2315
2274
  aria-label=${i}
2316
2275
  @click=${()=>s.copy(a)}
2317
2276
  >
2318
- <span>${a}</span>${n?De():qa()}
2319
- </button>`},Sa=(e,t,s)=>{const a=t.copied===s.text,n=a?e.storyKeyCopied:s.label;return l`<button
2277
+ <span>${a}</span>${n?De():Ga()}
2278
+ </button>`},ka=(e,t,s)=>{const a=t.copied===s.text,n=a?e.storyKeyCopied:s.label;return l`<button
2320
2279
  class="dpk-icon-btn sp-copy"
2321
2280
  type="button"
2322
2281
  data-role=${s.role}
@@ -2326,7 +2285,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2326
2285
  @click=${()=>t.copy(s.text)}
2327
2286
  >
2328
2287
  ${a?De():s.icon()}
2329
- </button>`},Sr=(e,t,s)=>{const a=he(t.state),n=s.statusId;return l`<section class="sp-field">
2288
+ </button>`},ur=(e,t,s)=>{const a=he(t.state),n=s.statusId;return l`<section class="sp-field">
2330
2289
  <h3 id="sp-status-label">${e.storyStatusLabel}</h3>
2331
2290
  <div class="sp-statuses" role="radiogroup" aria-labelledby="sp-status-label">
2332
2291
  ${a.map(i=>l`<button
@@ -2341,7 +2300,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2341
2300
  ${re(i)}<span>${i.name}</span>
2342
2301
  </button>`)}
2343
2302
  </div>
2344
- </section>`},Er=(e,t,s)=>{const a=s.estimateId??null,n=o=>()=>{o!==a&&t.dispatch({type:"SET_STORY_ESTIMATE",target:{type:"story",id:s.id},payload:{estimateId:o}})},i=[{id:null,name:e.unestimated,title:e.unestimated},...t.state.estimates.map(o=>({id:o.id,name:o.name,title:e.estimateText(o.name,o.points)}))];return l`<section class="sp-field">
2303
+ </section>`},mr=(e,t,s)=>{const a=s.estimateId??null,n=o=>()=>{o!==a&&t.dispatch({type:"SET_STORY_ESTIMATE",target:{type:"story",id:s.id},payload:{estimateId:o}})},i=[{id:null,name:e.unestimated,title:e.unestimated},...t.state.estimates.map(o=>({id:o.id,name:o.name,title:e.estimateText(o.name,o.points)}))];return l`<section class="sp-field">
2345
2304
  <h3 id="sp-estimate-label" class="sp-field-head">
2346
2305
  <span>${e.storyEstimateLabel}</span>
2347
2306
  <a class="sp-manage" href=${t.hashFor({tab:"burndown",story:null})}>${e.manageEstimates}</a>
@@ -2359,7 +2318,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2359
2318
  ${o.name}
2360
2319
  </button>`)}
2361
2320
  </div>`}
2362
- </section>`},$r=(e,t,s,a)=>{const n=s.assigneeId??null,i=o=>()=>{o!==n&&t.dispatch({type:"SET_STORY_ASSIGNEE",target:{type:"story",id:s.id},payload:{memberId:o}})};return l`<section class="sp-field">
2321
+ </section>`},hr=(e,t,s,a)=>{const n=s.assigneeId??null,i=o=>()=>{o!==n&&t.dispatch({type:"SET_STORY_ASSIGNEE",target:{type:"story",id:s.id},payload:{memberId:o}})};return l`<section class="sp-field">
2363
2322
  <h3 id="sp-assignee-label" class="sp-field-head">
2364
2323
  <span>${e.storyAssigneeLabel}</span>
2365
2324
  <button class="sp-manage" type="button" @click=${()=>a.open("members")}>${e.manageMembers}</button>
@@ -2384,10 +2343,10 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2384
2343
  style=${M(o.tone)}
2385
2344
  @click=${i(o.id)}
2386
2345
  >
2387
- <span class="sp-avatar" aria-hidden="true">${kt(o.name)}</span>${o.name}
2346
+ <span class="sp-avatar" aria-hidden="true">${yt(o.name)}</span>${o.name}
2388
2347
  </button>`)}
2389
2348
  </div>`}
2390
- </section>`},xr=(e,t,s,a)=>{const n={type:"story",id:s.id},i=new Set(s.labelIds??[]);return l`<section class="sp-field">
2349
+ </section>`},br=(e,t,s,a)=>{const n={type:"story",id:s.id},i=new Set(s.labelIds??[]);return l`<section class="sp-field">
2391
2350
  <h3 id="sp-labels-label" class="sp-field-head">
2392
2351
  <span>${e.storyLabelsLabel}</span>
2393
2352
  <button class="sp-manage" type="button" @click=${()=>a.open("labels")}>${e.manageLabels}</button>
@@ -2404,7 +2363,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2404
2363
  <span class="sp-label-dot" aria-hidden="true"></span><span>${o.name}</span>
2405
2364
  </button>`})}
2406
2365
  </div>`}
2407
- </section>`},Tr=(e,t,s,a)=>{const{state:n}=t,i=vs(n,s.id),o=(d,p,m)=>t.dispatch({type:d,target:{type:"story",id:p},payload:{blockerId:m}}),r=(d,p,m,y)=>{const E=x(n,p);if(!E)return u;const S=he(n).find(A=>A.id===E.statusId);return l`<li
2366
+ </section>`},gr=(e,t,s,a)=>{const{state:n}=t,i=vs(n,s.id),o=(d,p,m)=>t.dispatch({type:d,target:{type:"story",id:p},payload:{blockerId:m}}),r=(d,p,m,y)=>{const E=T(n,p);if(!E)return u;const S=he(n).find(A=>A.id===E.statusId);return l`<li
2408
2367
  data-blocker=${d==="data-blocker"?p:u}
2409
2368
  data-dependent=${d==="data-dependent"?p:u}
2410
2369
  data-finished=${String($e(n,E))}
@@ -2419,7 +2378,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2419
2378
  aria-label=${m(E.name)}
2420
2379
  @click=${y}
2421
2380
  >
2422
- ${st()}
2381
+ ${tt()}
2423
2382
  </button>
2424
2383
  </li>`};return l`<section class="sp-field sp-deps">
2425
2384
  <h3>${e.storyDependenciesLabel}</h3>
@@ -2428,21 +2387,21 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2428
2387
  ${i.blockers.length===0?l`<p class="sp-empty">${e.storyNoBlockers}</p>`:l`<ul class="sp-dep-list">
2429
2388
  ${i.blockers.map(d=>r("data-blocker",d,e.removeBlockerAria,()=>o("REMOVE_STORY_BLOCKER",s.id,d)))}
2430
2389
  </ul>`}
2431
- ${ya(e,t,s.id,"blocker",a,d=>o("ADD_STORY_BLOCKER",s.id,d))}
2390
+ ${ga(e,t,s.id,"blocker",a,d=>o("ADD_STORY_BLOCKER",s.id,d))}
2432
2391
  </div>
2433
2392
  <div class="sp-dep-side">
2434
2393
  <h4>${e.storyDependentsLabel}</h4>
2435
2394
  ${i.dependents.length===0?l`<p class="sp-empty">${e.storyNoDependents}</p>`:l`<ul class="sp-dep-list">
2436
2395
  ${i.dependents.map(d=>r("data-dependent",d,e.removeDependentAria,()=>o("REMOVE_STORY_BLOCKER",d,s.id)))}
2437
2396
  </ul>`}
2438
- ${ya(e,t,s.id,"dependent",a,d=>o("ADD_STORY_BLOCKER",d,s.id))}
2397
+ ${ga(e,t,s.id,"dependent",a,d=>o("ADD_STORY_BLOCKER",d,s.id))}
2439
2398
  </div>
2440
- </section>`},_r=(e,t,s)=>{const a={type:"story",id:s.id},n=s.links??[],i=o=>{o.preventDefault();const r=o.currentTarget instanceof HTMLFormElement?o.currentTarget:null,d=r?.querySelector("input");if(!r||!d)return;const p=d.value.trim();if(!Tt(rt,p).success){d.setAttribute("aria-invalid","true");return}t.dispatch({type:"ADD_STORY_LINK",target:a,payload:{url:p}}).ok&&(d.removeAttribute("aria-invalid"),r.reset())};return l`<section class="sp-field">
2399
+ </section>`},fr=(e,t,s)=>{const a={type:"story",id:s.id},n=s.links??[],i=o=>{o.preventDefault();const r=o.currentTarget instanceof HTMLFormElement?o.currentTarget:null,d=r?.querySelector("input");if(!r||!d)return;const p=d.value.trim();if(!Tt(ot,p).success){d.setAttribute("aria-invalid","true");return}t.dispatch({type:"ADD_STORY_LINK",target:a,payload:{url:p}}).ok&&(d.removeAttribute("aria-invalid"),r.reset())};return l`<section class="sp-field">
2441
2400
  <h3>${e.storyLinksLabel}</h3>
2442
2401
  ${n.length===0?u:l`<ul class="sp-links">
2443
- ${n.map(o=>{const r=Fe(o.url),d=o.label??r.text;return l`<li data-kind=${r.kind}>
2402
+ ${n.map(o=>{const r=Re(o.url),d=o.label??r.text;return l`<li data-kind=${r.kind}>
2444
2403
  <a class="sp-link" href=${o.url} target="_blank" rel="noopener noreferrer" title=${o.url}>
2445
- ${Ks(r.kind)}
2404
+ ${Rt(r.kind)}
2446
2405
  <span class="sp-link-text">${d}</span>
2447
2406
  <span class="sp-link-url">${r.title===d?o.url:r.title}</span>
2448
2407
  </a>
@@ -2452,7 +2411,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2452
2411
  aria-label=${e.removeLinkAria(d)}
2453
2412
  @click=${()=>t.dispatch({type:"REMOVE_STORY_LINK",target:a,payload:{url:o.url}})}
2454
2413
  >
2455
- ${st()}
2414
+ ${tt()}
2456
2415
  </button>
2457
2416
  </li>`})}
2458
2417
  </ul>`}
@@ -2467,7 +2426,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2467
2426
  />
2468
2427
  <button class="dpk-btn" type="submit">${e.addLinkButton}</button>
2469
2428
  </form>
2470
- </section>`},Ir=(e,t,s)=>{const a=t.commentCount({type:"story",id:s.id});return l`<button
2429
+ </section>`},yr=(e,t,s)=>{const a=t.commentCount({type:"story",id:s.id});return l`<button
2471
2430
  class="sp-review"
2472
2431
  type="button"
2473
2432
  data-role="review-story"
@@ -2475,17 +2434,17 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2475
2434
  aria-label=${a>0?`${e.reviewStoryButton} (${a})`:e.reviewStoryButton}
2476
2435
  @click=${()=>t.requestComment({type:"story",id:s.id})}
2477
2436
  >
2478
- ${At()}<span>${e.reviewStoryButton}</span>${a>0?l`<span class="sp-review-count">${a}</span>`:u}
2479
- </button>`},Ar=(e,t,s)=>{const a={type:"story",id:s.id};return l`<section class="sp-field sp-comments">
2437
+ ${It()}<span>${e.reviewStoryButton}</span>${a>0?l`<span class="sp-review-count">${a}</span>`:u}
2438
+ </button>`},vr=(e,t,s)=>{const a={type:"story",id:s.id};return l`<section class="sp-field sp-comments">
2480
2439
  <h3>${e.storyCommentsLabel}</h3>
2481
2440
  <dpk-comment-thread
2482
2441
  inline
2483
2442
  .comments=${s.comments??[]}
2484
2443
  draft-key=${`story-comment:${s.id}`}
2485
- @dpk-thread-comment-add=${n=>{const i=J("comment",j(t.state));t.dispatch({type:"ADD_STORY_COMMENT",target:a,payload:{id:i,body:n.detail.body,createdAt:new Date().toISOString()}}).ok&&n.preventDefault()}}
2444
+ @dpk-thread-comment-add=${n=>{const i=J("comment",W(t.state));t.dispatch({type:"ADD_STORY_COMMENT",target:a,payload:{id:i,body:n.detail.body,createdAt:new Date().toISOString()}}).ok&&n.preventDefault()}}
2486
2445
  @dpk-thread-comment-delete=${n=>{t.dispatch({type:"DELETE_STORY_COMMENT",target:a,payload:{commentId:n.detail.id}})}}
2487
2446
  ></dpk-comment-thread>
2488
- </section>`},Mr=H`
2447
+ </section>`},kr=q`
2489
2448
  /* Over the main column's edge, below the header: the page's own controls stay in reach. */
2490
2449
  .story-panel {
2491
2450
  position: absolute;
@@ -2515,7 +2474,8 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2515
2474
  display: flex;
2516
2475
  align-items: center;
2517
2476
  gap: 10px;
2518
- padding: 14px 22px 12px;
2477
+ /* The close button keeps clear of a floating menu docked at the right edge. */
2478
+ padding: 14px calc(22px + var(--dpk-floating-menu-clearance, 0px)) 12px 22px;
2519
2479
  min-height: 60px;
2520
2480
  box-sizing: border-box;
2521
2481
  border-bottom: 1px solid var(--dpk-rule);
@@ -2600,6 +2560,16 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2600
2560
  overflow: auto;
2601
2561
  padding: 18px 22px 24px;
2602
2562
  }
2563
+ /* A dependency's name is one nowrap line with an ellipsis, and every grid
2564
+ box between it and the panel keeps the default min-width (auto): the line
2565
+ would then become the grid's minimum width and make the whole body scroll
2566
+ sideways instead of cropping the name. Each level opts out. */
2567
+ .sp-body > *,
2568
+ .sp-deps > *,
2569
+ .sp-dep-side > *,
2570
+ .sp-dep-list > li {
2571
+ min-width: 0;
2572
+ }
2603
2573
  .sp-title {
2604
2574
  margin: 0;
2605
2575
  font-size: 19px;
@@ -2996,16 +2966,16 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
2996
2966
  width: 14px;
2997
2967
  height: 14px;
2998
2968
  }
2999
- `,Lr="usm-story-table",Dr=e=>e==="accent"?"violet":e,Rr=(e,t)=>{const s=[{id:"key",label:e.storyKeyColumn,type:"text",sortable:!0},{id:"name",label:e.storyTitleLabel,type:"text",sortable:!0},{id:"activity",label:e.activityNameLabel,type:"text",sortable:!0},{id:"step",label:e.stepNameLabel,type:"text",sortable:!0},{id:"milestone",label:e.burndownMilestoneLabel,type:"text",sortable:!0},...t.statuses.length===0?[]:[{id:"status",label:e.storyStatusLabel,type:"status",sortable:!0}],...z(t,"assignees")?[{id:"assignee",label:e.storyAssigneeLabel,type:"person",sortable:!0}]:[],...z(t,"estimates")?[{id:"estimate",label:e.storyEstimateLabel,type:"number",sortable:!0}]:[],...t.labels.length===0?[]:[{id:"labels",label:e.storyLabelsLabel,type:"tag",sortable:!1}]],a=t.stories.map(n=>{const i=N(t,ce(n.activityId,n.stepId)),o=P(t,n.milestoneId),r=D(t,n.statusId),d=F(t,n.estimateId),p=pt(t,n),m=ct(t,n);return{id:n.id,cells:{key:{type:"text",value:de(n)},name:{type:"text",value:n.name},activity:{type:"text",value:i?.activity.name??null},step:{type:"text",value:i?.step.name??null},milestone:{type:"text",value:o?.name??null},...r===void 0?{}:{status:{type:"status",value:{label:r.name,tone:Dr(r.tone)}}},...z(t,"assignees")?{assignee:{type:"person",value:p?.name??null}}:{},...z(t,"estimates")?{estimate:{type:"number",value:d?.points??null}}:{},...t.labels.length===0?{}:{labels:{type:"tag",value:m.map(y=>y.name)}}},...n.questions===void 0?{}:{questions:n.questions}}});return{columns:s,rows:a}},Or=(e,t)=>{const s=Rr(e,t.state);return l`
2969
+ `,wr="usm-story-table",Sr=e=>e==="accent"?"violet":e,Er=(e,t)=>{const s=[{id:"key",label:e.storyKeyColumn,type:"text",sortable:!0},{id:"name",label:e.storyTitleLabel,type:"text",sortable:!0},{id:"activity",label:e.activityNameLabel,type:"text",sortable:!0},{id:"step",label:e.stepNameLabel,type:"text",sortable:!0},{id:"milestone",label:e.burndownMilestoneLabel,type:"text",sortable:!0},...t.statuses.length===0?[]:[{id:"status",label:e.storyStatusLabel,type:"status",sortable:!0}],...P(t,"assignees")?[{id:"assignee",label:e.storyAssigneeLabel,type:"person",sortable:!0}]:[],...P(t,"estimates")?[{id:"estimate",label:e.storyEstimateLabel,type:"number",sortable:!0}]:[],...t.labels.length===0?[]:[{id:"labels",label:e.storyLabelsLabel,type:"tag",sortable:!1}]],a=t.stories.map(n=>{const i=N(t,ce(n.activityId,n.stepId)),o=U(t,n.milestoneId),r=D(t,n.statusId),d=z(t,n.estimateId),p=lt(t,n),m=pt(t,n);return{id:n.id,cells:{key:{type:"text",value:de(n)},name:{type:"text",value:n.name},activity:{type:"text",value:i?.activity.name??null},step:{type:"text",value:i?.step.name??null},milestone:{type:"text",value:o?.name??null},...r===void 0?{}:{status:{type:"status",value:{label:r.name,tone:Sr(r.tone)}}},...P(t,"assignees")?{assignee:{type:"person",value:p?.name??null}}:{},...P(t,"estimates")?{estimate:{type:"number",value:d?.points??null}}:{},...t.labels.length===0?{}:{labels:{type:"tag",value:m.map(y=>y.name)}}},...n.questions===void 0?{}:{questions:n.questions}}});return{columns:s,rows:a}},$r=(e,t)=>{const s=Er(e,t.state);return l`
3000
2970
  <section class="story-table" data-testid="usm-table">
3001
2971
  <dpk-table
3002
- id=${Lr}
2972
+ id=${wr}
3003
2973
  readonly
3004
2974
  .data=${s}
3005
2975
  @dpk-table-select=${a=>{const n=t.state.stories.find(i=>i.id===a.detail.id);n&&t.navigate({step:n.stepId,story:n.id})}}
3006
2976
  ></dpk-table>
3007
2977
  </section>
3008
- `},Nr=H`
2978
+ `},Tr=q`
3009
2979
  :host {
3010
2980
  --dpk-usm-accent: var(--dpk-blue);
3011
2981
  }
@@ -3152,6 +3122,10 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
3152
3122
  scrolls sideways. */
3153
3123
  .act-head {
3154
3124
  position: relative;
3125
+ /* The head fills its column's head row, so the progress bar at its bottom
3126
+ edge lines up with every other group's, however many steps (and so
3127
+ however tall) a group lists beside it. */
3128
+ align-self: stretch;
3155
3129
  display: grid;
3156
3130
  align-content: start;
3157
3131
  gap: 4px;
@@ -3183,18 +3157,20 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
3183
3157
  align-items: center;
3184
3158
  gap: 8px;
3185
3159
  }
3186
- /* The name keeps its whole line while it fits; the actor beside it gives
3187
- way (truncates) first, down to an ellipsis. */
3160
+ /* The name wraps at the column width, and the actor only drops to its own
3161
+ line when the two cannot share one; a long name is then read in full
3162
+ instead of being cut to a stub beside a shrunken actor. */
3188
3163
  .act-name {
3189
3164
  display: flex;
3190
3165
  flex: 1 1 auto;
3166
+ flex-wrap: wrap;
3191
3167
  align-items: center;
3192
- gap: 8px;
3168
+ gap: 4px 8px;
3193
3169
  min-width: 0;
3194
3170
  }
3195
3171
  .act-name > dpk-inline-edit {
3196
- flex: none;
3197
- max-width: calc(100% - 32px);
3172
+ flex: 0 1 auto;
3173
+ max-width: 100%;
3198
3174
  }
3199
3175
  /* How far the group's stories have come: a strip along the head's bottom
3200
3176
  edge, as wide as the steps it spans, so it costs the band no line. */
@@ -3214,7 +3190,7 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
3214
3190
  display: flex;
3215
3191
  flex: 0 1 auto;
3216
3192
  min-width: 24px;
3217
- max-width: 60%;
3193
+ max-width: 100%;
3218
3194
  padding: 0 4px;
3219
3195
  border-radius: 999px;
3220
3196
  background: var(--dpk-blue-soft);
@@ -3335,6 +3311,13 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
3335
3311
  align-content: start;
3336
3312
  flex: 1 1 auto;
3337
3313
  }
3314
+ /* A grid item keeps the default min-width (auto), so a card whose foot
3315
+ cannot shrink (a long step-name chip in it) would widen the column instead
3316
+ of ellipsis-ing inside it. The card shrinks to the column; its own foot
3317
+ clips. */
3318
+ .card-list > * {
3319
+ min-width: 0;
3320
+ }
3338
3321
  /* The add button (the kit's add atom) shows on the cell's hover only. */
3339
3322
  .add-cell {
3340
3323
  margin-top: auto;
@@ -3655,8 +3638,8 @@ import{ax as f,bj as Aa,ac as h,av as W,aU as we,a$ as Je,ad as Se,az as _e,bi a
3655
3638
  max-width: 1200px;
3656
3639
  padding: 28px 0 40px;
3657
3640
  }
3658
- `,X={kind:"idle"},Cr={width:300,height:240},Ea="statuses",$a="labels",xa="members",Br={status:Ea,label:$a,member:xa},Ur=240,Yr=31,Pr=14,Ta=160,zr=1500;class _a extends Lt{static{this.styles=[Lt.styles,Rt,Nr,Ke,qs,Mr,Ko,Fo,nr,sr,jo,gr,_t]}definitionFor(t){return Ds(t)}static{this.properties={mode:{state:!0}}}#t=new Qa(this);#e=new It(this);#n=null;#i=new ni(this,{row:()=>this.renderRoot.querySelector(".page-nav"),items:t=>[...t.querySelectorAll('.page-tabs [role="tab"]')],keyOf:t=>t.getAttribute("data-tab")??"",kept:t=>t.getAttribute("aria-selected")==="true",more:t=>t.querySelector("[data-tabs-more-trigger]")});#a=!1;#s=null;#o;#r=new Dt(this);#l=new Dt(this);#d=null;constructor(){super(),this.mode=X,new at(this,{open:()=>this.#p()!==null,closesOn:t=>this.#u(t),ownsEscape:t=>this.mode.kind==="idle"&&(t.includes(this)||t[0]===document.body||t[0]===document.documentElement),dismiss:()=>this.context().navigate({story:null})}),new at(this,{open:()=>this.mode.kind==="filtering",closesOn:t=>!t.some(s=>s instanceof Element&&(s.id==="filter-menu"||s.hasAttribute("data-filter-trigger"))),ownsEscape:()=>!0,dismiss:()=>this.mode=X}),new at(this,{open:()=>this.mode.kind==="choosing-tab",closesOn:t=>!t.some(s=>s instanceof Element&&(s.id==="tabs-menu"||s.hasAttribute("data-tabs-more-trigger"))),ownsEscape:()=>!0,dismiss:()=>this.mode=X})}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.#o),this.#s=null}renderRegions(t){return{main:this.#b(t)}}renderSettingsSections(t){const s=ne(this.locale),a=[St(Ea,s.statusesSection,"statuses",this.locale),St($a,s.labelsSection,"labels",this.locale)];return z(t.state,"assignees")&&a.push(St(xa,s.membersSection,"members",this.locale)),a}showTarget(t){const s=Br[t.type];s!==void 0&&(t.type==="member"&&!z(this.context().state,"assignees")||this.openSettings(s))}updated(){if(super.updated(),this.#h(),this.#m(),this.mode.kind==="picking-dependency"){this.#c();return}if(this.mode.kind==="filtering"){const s=this.renderRoot.querySelector("#filter-menu"),a=this.renderRoot.querySelector(`[data-filter-trigger="${CSS.escape(this.mode.key)}"]`),n=(s?.childElementCount??0)*Yr+Pr;s&&a&&this.#e.open(s,a,{width:Ur,height:n});return}if(this.mode.kind==="choosing-tab"){const s=this.renderRoot.querySelector("#tabs-menu"),a=this.renderRoot.querySelector("[data-tabs-more-trigger]");if(!s){this.mode=X;return}const n=s.childElementCount*mr+hr;a&&this.#e.open(s,a,{width:br,height:n},{placement:"bottom-start"});return}if(this.mode.kind!=="picking-step")return;const t=this.renderRoot.querySelector("#move-dialog");t&&this.#e.open(t,Wa(this.mode.point.x,this.mode.point.y),Cr)}#c(){const t=this.renderRoot instanceof ShadowRoot?this.renderRoot.activeElement:null;if(!t?.matches(".sp-dep-search")){this.mode=X;return}const s=t.getAttribute("aria-activedescendant");s&&this.renderRoot.querySelector(`#${CSS.escape(s)}`)?.scrollIntoView?.({block:"nearest"})}#p(){return this.renderRoot.querySelector(".story-panel")}#u(t){const s=this.#p(),a=this.renderRoot.querySelector(".dpk-main");return!s||!a||t.includes(s)||!t.includes(a)?!1:!t.some(n=>n instanceof Element&&(n.localName==="dpk-internal-usm-story-card"||n.hasAttribute("popover")))}#m(){const t=this.#p(),s=t?.dataset.story??null,a=this.#n;if(s===a)return;this.#n=s;const n=this.shadowRoot?.activeElement??null;if(t){(!n||!t.contains(n))&&t.focus({preventScroll:!0});return}a===null||n!==null&&n.isConnected||this.renderRoot.querySelector(`dpk-internal-usm-story-card[data-story="${CSS.escape(a)}"]`)?.focus({preventScroll:!0})}#h(){if(!(Ve(this.navigation)!==null)){this.#a=!1;return}const a=this.renderRoot.querySelector("dpk-matrix")?.shadowRoot?.querySelector(".matrix-scroll")??null,n=this.renderRoot.querySelector('dpk-internal-usm-story-card[data-highlight="on"]');this.#a||!a||!n||(this.#a=!0,ja(a,n,Ta),Xa(a,n,Ta))}#b(t){const s=ne(this.locale),a=ys(t.state,t.navigation);return l`
3659
- ${lr(cr(s,t,a,{folded:this.#i.hidden,minimum:this.#i.minimum,open:this.mode.kind==="choosing-tab",toggle:()=>this.mode=this.mode.kind==="choosing-tab"?X:{kind:"choosing-tab"},close:()=>this.mode=X}),this.#g(s,t,a))}
3641
+ `,j={kind:"idle"},xr={width:300,height:240},wa="statuses",Sa="labels",Ea="members",_r={status:wa,label:Sa,member:Ea},Ir=240,Ar=31,Mr=14,$a=160,Lr=1500;class Ta extends Mt{static{this.styles=[Mt.styles,Ot,Tr,Ke,Dt,kr,Co,Do,Wo,Ko,Uo,or,xt]}definitionFor(t){return Ds(t)}static{this.properties={mode:{state:!0}}}#t=new Xa(this);#e=new _t(this);#n=null;#i=new jn(this,{row:()=>this.renderRoot.querySelector(".page-nav"),items:t=>[...t.querySelectorAll('.page-tabs [role="tab"]')],keyOf:t=>t.getAttribute("data-tab")??"",kept:t=>t.getAttribute("aria-selected")==="true",more:t=>t.querySelector("[data-tabs-more-trigger]")});#a=!1;#s=null;#o;#r=new Lt(this);#l=new Lt(this);#d=null;constructor(){super(),this.mode=j,new st(this,{open:()=>this.#p()!==null,closesOn:t=>this.#u(t),ownsEscape:t=>this.mode.kind==="idle"&&(t.includes(this)||t[0]===document.body||t[0]===document.documentElement),dismiss:()=>this.context().navigate({story:null})}),new st(this,{open:()=>this.mode.kind==="filtering",closesOn:t=>!t.some(s=>s instanceof Element&&(s.id==="filter-menu"||s.hasAttribute("data-filter-trigger"))),ownsEscape:()=>!0,dismiss:()=>this.mode=j}),new st(this,{open:()=>this.mode.kind==="choosing-tab",closesOn:t=>!t.some(s=>s instanceof Element&&(s.id==="tabs-menu"||s.hasAttribute("data-tabs-more-trigger"))),ownsEscape:()=>!0,dismiss:()=>this.mode=j})}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.#o),this.#s=null}renderRegions(t){return{main:this.#b(t)}}renderSettingsSections(t){const s=ne(this.locale),a=[kt(wa,s.statusesSection,"statuses",this.locale),kt(Sa,s.labelsSection,"labels",this.locale)];return P(t.state,"assignees")&&a.push(kt(Ea,s.membersSection,"members",this.locale)),a}showTarget(t){const s=_r[t.type];s!==void 0&&(t.type==="member"&&!P(this.context().state,"assignees")||this.openSettings(s))}updated(){if(super.updated(),this.#h(),this.#m(),this.mode.kind==="picking-dependency"){this.#c();return}if(this.mode.kind==="filtering"){const s=this.renderRoot.querySelector("#filter-menu"),a=this.renderRoot.querySelector(`[data-filter-trigger="${CSS.escape(this.mode.key)}"]`),n=(s?.childElementCount??0)*Ar+Mr;s&&a&&this.#e.open(s,a,{width:Ir,height:n});return}if(this.mode.kind==="choosing-tab"){const s=this.renderRoot.querySelector("#tabs-menu"),a=this.renderRoot.querySelector("[data-tabs-more-trigger]");if(!s){this.mode=j;return}const n=s.childElementCount*ar+nr;a&&this.#e.open(s,a,{width:ir,height:n},{placement:"bottom-start"});return}if(this.mode.kind!=="picking-step")return;const t=this.renderRoot.querySelector("#move-dialog");t&&this.#e.open(t,Va(this.mode.point.x,this.mode.point.y),xr)}#c(){const t=this.renderRoot instanceof ShadowRoot?this.renderRoot.activeElement:null;if(!t?.matches(".sp-dep-search")){this.mode=j;return}const s=t.getAttribute("aria-activedescendant");s&&this.renderRoot.querySelector(`#${CSS.escape(s)}`)?.scrollIntoView?.({block:"nearest"})}#p(){return this.renderRoot.querySelector(".story-panel")}#u(t){const s=this.#p(),a=this.renderRoot.querySelector(".dpk-main");return!s||!a||t.includes(s)||!t.includes(a)?!1:!t.some(n=>n instanceof Element&&(n.localName==="dpk-internal-usm-story-card"||n.hasAttribute("popover")))}#m(){const t=this.#p(),s=t?.dataset.story??null,a=this.#n;if(s===a)return;this.#n=s;const n=this.shadowRoot?.activeElement??null;if(t){(!n||!t.contains(n))&&t.focus({preventScroll:!0});return}a===null||n!==null&&n.isConnected||this.renderRoot.querySelector(`dpk-internal-usm-story-card[data-story="${CSS.escape(a)}"]`)?.focus({preventScroll:!0})}#h(){if(!(Ge(this.navigation)!==null)){this.#a=!1;return}const a=this.renderRoot.querySelector("dpk-matrix")?.shadowRoot?.querySelector(".matrix-scroll")??null,n=this.renderRoot.querySelector('dpk-internal-usm-story-card[data-highlight="on"]');this.#a||!a||!n||(this.#a=!0,Ha(a,n,$a),Ka(a,n,$a))}#b(t){const s=ne(this.locale),a=ys(t.state,t.navigation);return l`
3642
+ ${Qo(tr(s,t,a,{folded:this.#i.hidden,minimum:this.#i.minimum,open:this.mode.kind==="choosing-tab",toggle:()=>this.mode=this.mode.kind==="choosing-tab"?j:{kind:"choosing-tab"},close:()=>this.mode=j}),this.#g(s,t,a))}
3660
3643
  ${this.#v(s,t,a)} ${this.#f(s,t,a)}
3661
- ${dr(s,t,this.mode,this.#l,this.#d,{pick:n=>{this.#d=n,this.requestUpdate()},confirm:n=>this.#_(n),cancel:()=>{this.#d=null,this.mode=X}})}
3662
- `}#g(t,s,a){return a!=="map"||Ye(s.state).length===0?u:ar(t,s,{openFor:this.mode.kind==="filtering"?this.mode.key:null,toggle:n=>{const i=this.mode.kind==="filtering"&&this.mode.key===n;this.mode=i?X:{kind:"filtering",key:n}},close:()=>this.mode=X})}#f(t,s,a){if(a!=="map"&&a!=="table")return u;const n=vr(s);if(!n)return u;const i={search:this.mode.kind==="picking-dependency"?this.mode.search:null,set:d=>this.mode=d?{kind:"picking-dependency",search:d}:X},o={copied:this.#s,copy:d=>{this.#y(d)}};return kr(t,s,n,i,o,{open:d=>this.openSettings(d)})}async#y(t){await Me(t)&&(clearTimeout(this.#o),this.#s=t,this.requestUpdate(),this.#o=setTimeout(()=>{this.#s=null,this.requestUpdate()},zr))}#v(t,s,a){switch(a){case"table":return Or(t,s);case"milestones":return ir(t,s,uo(s.state));case"burndown":return Ro(t,s,new Date,this.#r);case"map":return this.#k(t,s)}}#k(t,s){return fo({m:t,context:s,drag:this.#t,handlers:{selectStory:a=>this.#w(a),dropOnCell:(a,n)=>this.#S(a,n),dropOnGroupCell:(a,n,i)=>this.#E(a,n,i),reorderMilestone:a=>this.#$(a),reorderActivity:a=>this.#x(a),reorderStep:a=>this.#T(a)},highlighted:Zn(s.state,s.navigation)})}#w(t){const s=this.context(),a=x(s.state,t);a&&s.navigate({step:a.stepId,story:a.id})}#S(t,s){const a=this.context();a.dispatch(Zs(a.state,t,s.item.id,s.hoveredId,s.place))}#E(t,s,a){const n=this.context(),i=x(n.state,a.item.id);if(!i)return;if(i.activityId!==t){this.#d=null,this.mode={kind:"picking-step",storyId:i.id,activityId:t,milestoneId:s,point:{x:a.event.clientX,y:a.event.clientY}};return}const o=Js(n.state,t,s,i.id,a.hoveredId,a.place);o&&n.dispatch(o)}#$(t){this.context().dispatch({type:"REORDER_MILESTONE",target:{type:"milestone",id:t.rowId},payload:{after:t.after}})}#x(t){this.context().dispatch({type:"REORDER_ACTIVITY",target:{type:"activity",id:t.columnId},payload:{after:t.after}})}#T(t){const s=t.columnId;this.context().dispatch({type:"REORDER_STEP",target:{type:"step",id:ce(s,t.subColumnId)},payload:{after:t.after===null?null:ce(s,t.after)}})}#_(t){const s=this.mode;if(s.kind!=="picking-step")return;const a=this.context();a.dispatch(Qs(a.state,s.storyId,s.activityId,t,s.milestoneId)),this.#d=null,this.mode=X}}const Ia=()=>{io(),Ki(),$i(),po(),customElements.get("dpk-view-usm")||customElements.define("dpk-view-usm",_a)},Fr=Object.freeze(Object.defineProperty({__proto__:null,DpkViewUsm:_a,IDLE_MODE:X,allUsmIds:j,applyUsmAction:ps,defineUsmElement:Ia,describeUsmAction:xs,dropAfter:co,emptyUsmBase:lt,findActivity:te,findMilestone:P,findStep:N,findStory:x,flatSteps:Ye,parseUsmBase:Xt,resolveCellDrop:Zs,resolveGroupDrop:Js,resolvePickedStepMove:Qs,resolveUsmNavigation:Ms,serializeUsmAction:Ts,storiesInCell:Pe,storyCountForStep:Qt,usmAction:Ln,usmActions:v,usmCommentTargets:Is,usmCurrentTarget:As,usmDefinitionFor:Ds,usmHasTarget:Ls,usmMessages:ne,usmTargetLabel:_s,usmTitle:gt},Symbol.toStringTag,{value:"Module"}));export{Ia as d,Fr as i};
3644
+ ${Jo(s,t,this.mode,this.#l,this.#d,{pick:n=>{this.#d=n,this.requestUpdate()},confirm:n=>this.#_(n),cancel:()=>{this.#d=null,this.mode=j}})}
3645
+ `}#g(t,s,a){return a!=="map"||Pe(s.state).length===0?u:qo(t,s,{openFor:this.mode.kind==="filtering"?this.mode.key:null,toggle:n=>{const i=this.mode.kind==="filtering"&&this.mode.key===n;this.mode=i?j:{kind:"filtering",key:n}},close:()=>this.mode=j})}#f(t,s,a){if(a!=="map"&&a!=="table")return u;const n=lr(s);if(!n)return u;const i={search:this.mode.kind==="picking-dependency"?this.mode.search:null,set:d=>this.mode=d?{kind:"picking-dependency",search:d}:j},o={copied:this.#s,copy:d=>{this.#y(d)}};return pr(t,s,n,i,o,{open:d=>this.openSettings(d)})}async#y(t){await Me(t)&&(clearTimeout(this.#o),this.#s=t,this.requestUpdate(),this.#o=setTimeout(()=>{this.#s=null,this.requestUpdate()},Lr))}#v(t,s,a){switch(a){case"table":return $r(t,s);case"milestones":return jo(t,s,to(s.state));case"burndown":return Eo(t,s,new Date,this.#r);case"map":return this.#k(t,s)}}#k(t,s){return oo({m:t,context:s,drag:this.#t,handlers:{selectStory:a=>this.#w(a),dropOnCell:(a,n)=>this.#S(a,n),dropOnGroupCell:(a,n,i)=>this.#E(a,n,i),reorderMilestone:a=>this.#$(a),reorderActivity:a=>this.#T(a),reorderStep:a=>this.#x(a)},highlighted:Fn(s.state,s.navigation)})}#w(t){const s=this.context(),a=T(s.state,t);a&&s.navigate({step:a.stepId,story:a.id})}#S(t,s){const a=this.context();a.dispatch(js(a.state,t,s.item.id,s.hoveredId,s.place))}#E(t,s,a){const n=this.context(),i=T(n.state,a.item.id);if(!i)return;if(i.activityId!==t){this.#d=null,this.mode={kind:"picking-step",storyId:i.id,activityId:t,milestoneId:s,point:{x:a.event.clientX,y:a.event.clientY}};return}const o=Xs(n.state,t,s,i.id,a.hoveredId,a.place);o&&n.dispatch(o)}#$(t){this.context().dispatch({type:"REORDER_MILESTONE",target:{type:"milestone",id:t.rowId},payload:{after:t.after}})}#T(t){this.context().dispatch({type:"REORDER_ACTIVITY",target:{type:"activity",id:t.columnId},payload:{after:t.after}})}#x(t){const s=t.columnId;this.context().dispatch({type:"REORDER_STEP",target:{type:"step",id:ce(s,t.subColumnId)},payload:{after:t.after===null?null:ce(s,t.after)}})}#_(t){const s=this.mode;if(s.kind!=="picking-step")return;const a=this.context();a.dispatch(Zs(a.state,s.storyId,s.activityId,t,s.milestoneId)),this.#d=null,this.mode=j}}const xa=()=>{ji(),Bi(),bi(),Qi(),customElements.get("dpk-view-usm")||customElements.define("dpk-view-usm",Ta)},Dr=Object.freeze(Object.defineProperty({__proto__:null,DpkViewUsm:Ta,IDLE_MODE:j,allUsmIds:W,applyUsmAction:cs,defineUsmElement:xa,describeUsmAction:Ts,dropAfter:eo,emptyUsmBase:dt,findActivity:te,findMilestone:U,findStep:N,findStory:T,flatSteps:Pe,parseUsmBase:Zt,resolveCellDrop:js,resolveGroupDrop:Xs,resolvePickedStepMove:Zs,resolveUsmNavigation:Ms,serializeUsmAction:xs,storiesInCell:ze,storyCountForStep:es,usmAction:In,usmActions:v,usmCommentTargets:Is,usmCurrentTarget:As,usmDefinitionFor:Ds,usmHasTarget:Ls,usmMessages:ne,usmTargetLabel:_s,usmTitle:ht},Symbol.toStringTag,{value:"Module"}));export{xa as d,Dr as i};