1import{p as Fe,cD as $e,cE as Ee,r as l,j as t,B as Se,x as ze,cF as Le,ad as Me,cG as ue}from"./index-DHupFTLc.js";import{u as We}from"./router-compat-D1ZSPhlE.js";import{u as Oe,M as Be,i as Ge,H as He,a as Ue,B as Ye,I as Xe,E as qe}from"./index-DXyr671v.js";import{S as Je}from"./switch-BhBgDfOy.js";import{C as Ke,T as Ve,d as Qe,r as Ze,s as et}from"./calendar-dnd-Bu2BTUkD.js";import{r as tt,s as nt,a as st,c as rt,t as ve,f as at,b as ot,i as it,d as lt}from"./helpers-CQC1beMa.js";import{C as Ce,P as dt}from"./drafts-column-DoLeN5p5.js";import{a as ct,P as ut}from"./design-system-BPIqk73O.js";import{P as mt}from"./pen-line-BBl-yTS1.js";import{L as me}from"./loader-circle-DxRsMPd4.js";import{S as ht}from"./save-DH8DsO61.js";import{A as ft}from"./arrow-right-DwgPtvd4.js";import{P as pt}from"./play-B7EVojdE.js";import{E as gt}from"./ellipsis-8-3zECV4.js";import{S as Ae}from"./sparkles-BkzQVcfA.js";import{L as xt}from"./list-Byy3pR_3.js";import{U as bt}from"./undo-2-DK1lmfml.js";import{R as wt}from"./redo-2-BAJlS_gA.js";import{C as yt}from"./calendar-clock-Dr86i0uj.js";import{M as vt}from"./message-square-Dd8IQF3l.js";import{C as St}from"./chart-column-DZia2jiH.js";import{X as jt}from"./x-Bx2a5qe_.js";import{P as kt,b as Ct,c as Pt,d as Nt}from"./PopoverPopup-BJ_KqE1K.js";import"./index-COp1YKf3.js";import"./marked.esm-C75jiMLd.js";import"./usePositioner-DastbNOU.js";import"./core.esm-DvITNi2B.js";import"./proxy-BQ1UiTVf.js";import"./index-CXHAiFMv.js";import"./index-DQAJCf2y.js";import"./calendar-dJdluVAY.js";import"./compose-format-BMIc3BLt.js";import"./tag-pill-DYTgd3j0.js";import"./media-XlTTqUhf.js";import"./integration-icons-SIgBIfd-.js";import"./copy-CzqREA7z.js";import"./trash-2-6gYqHk3n.js";import"./ellipsis-vertical-6P6AtC0r.js";import"./tooltip-BoswWmh-.js";import"./user-R5hU_NnH.js";import"./quote-DVWhWkHS.js";import"./message-circle-BEltwPSL.js";import"./clock-BExhvAgm.js";function It(e,n){const a=n.strategyContext,s=Tt(n),r=Dt(n),i=Ft(a),d=Lt(a),h=zt();return`# Creator Content Strategy - One-Pager 2 3## Strategic Goal 4 5${i} 6 7## Target Audience 8 9${r} 10 11## Content Pillars 12${s.map(g=>Rt(g)).join(` 13`)} 14 15## Posting Rhythm 16 17${d} 18 19## Notes 20 21${h}`}function Tt(e){const n=e.strategyContext?.categories??[];if(n.length===0)return _t(e);const a=At(n.map(s=>s.share));return n.map((s,r)=>({title:s.name,targetMix:a[r]??10,coreMessage:$t(s.name),whatYouShare:Et(s.name),whyItMatters:Mt(s.name)}))}function _t(e){const n=[...e.labels,...e.memories].join(" ").toLowerCase(),a=[];function s(r){a.some(i=>i.title===r.title)||a.push(r)}return n.includes("product")&&s({title:"Product thinking",targetMix:25,coreMessage:"Show how product taste and operating judgment compound into better businesses.",whatYouShare:["Product decisions and tradeoffs","Customer learning and shipping lessons","Taste, standards, and what makes a product work"],whyItMatters:"Builders follow people who can explain the real decisions behind products, not just the outcomes."}),(n.includes("growth")||n.includes("distribution"))&&s({title:"Growth and distribution",targetMix:25,coreMessage:"Audience growth is a business lever when it is tied to proof, distribution, and useful ideas.",whatYouShare:["Content and follower-growth lessons","Creator monetization and distribution mechanics","What is working across X, LinkedIn, Instagram, and Stan products"],whyItMatters:"Creators and founders want to understand how attention turns into trust, customers, and revenue."}),(n.includes("hiring")||n.includes("team")||n.includes("talent"))&&s({title:"Hiring and team building",targetMix:15,coreMessage:"The best teams are built through standards, feedback, and clear operating taste.",whatYouShare:["Hiring and team-building lessons","Standards, feedback, and culture decisions","What high-performing people need from leaders"],whyItMatters:"This attracts people who want to work in the kind of environment the user is building."}),s({title:n.includes("founder")||n.includes("startup")?"Founder judgment":"Founder/operator lessons",targetMix:30,coreMessage:"Founder growth comes from making hard tradeoffs, learning in public, and raising standards.",whatYouShare:["Decisions, tradeoffs, and mistakes","Operating principles from building","Lessons that came from doing the hard thing"],whyItMatters:"Founders and operators want practical judgment from someone with real context, not abstract advice."}),s({title:"Timely observations",targetMix:10,coreMessage:"Use timely moments only when there is a clear angle connected to the user's lived experience.",whatYouShare:["Mar
21ket and platform observations","Relevant AI, Creator, or product moments","Fast takes that connect back to the user's work"],whyItMatters:"Timely posts can expand reach, but only when they still sound like the user."}),s({title:"Personal proof",targetMix:30,coreMessage:"Proof makes the advice credible. Lead with what actually happened.",whatYouShare:["Revenue, traction, and customer receipts","Behind-the-scenes founder stories","Concrete lessons from the user's own experience"],whyItMatters:"The audience trusts specifics more than generic advice."}),a.slice(0,4)}function $t(e){switch(e){case"Personal proof and lived examples":case"Personal proof":return"Proof makes the advice credible. Lead with what actually happened.";case"Product and building":case"Product thinking":return"Show how product taste, customer learning, and shipping decisions compound into better businesses.";case"Growth and distribution":return"Audience growth is a business lever when it is tied to proof, distribution, and useful ideas.";case"Founder and operator judgment":case"Founder judgment":case"Founder/operator lessons":return"Founder growth comes from making hard tradeoffs, learning in public, and raising standards.";case"Opinion and lesson posts":return"Short principles land when they compress a hard-earned lesson into something people can remember.";default:return"Use this pillar when there is a specific, lived angle that helps the audience see how I think."}}function Et(e){return e==="Personal proof and lived examples"||e==="Personal proof"?["Revenue, traction, and customer receipts","Founder history and behind-the-scenes lessons","Concrete moments where the lesson came from lived experience"]:e==="Product and building"||e==="Product thinking"?["Stan Store, Stanley, and product-building lessons","Customer learning, shipping decisions, and product taste","Tradeoffs behind features, process, and product direction"]:e==="Growth and distribution"?["Content and follower-growth lessons","Creator monetization and distribution mechanics","What is working across X, LinkedIn, Instagram, and Stan products"]:e==="Founder and operator judgment"||e==="Founder judgment"||e==="Founder/operator lessons"?["Decisions, tradeoffs, and mistakes","Operating principles from building","Lessons that came from doing the hard thing"]:e==="Opinion and lesson posts"?["Short principles and contrarian reframes","Identity, habits, and behavior-change observations","Sharp one-liners that still sound earned"]:["Specific observations from my work","Useful lessons tied to concrete context","Angles that connect back to my audience's problems"]}function Mt(e){switch(e){case"Personal proof and lived examples":case"Personal proof":return"The audience trusts specifics more than generic advice. Proof turns the post from a lesson into a receipt.";case"Product and building":case"Product thinking":return"Product-minded builders follow people who can explain the real decisions behind products, not just the outcomes.";case"Growth and distribution":return"Creators and founders want to understand how attention turns into trust, customers, and revenue.";case"Founder and operator judgment":case"Founder judgment":case"Founder/operator lessons":return"Founders and operators want practical judgment from someone with real context, not abstract advice.";case"Opinion and lesson posts":return"These posts create repeatable language for the audience and keep the account from becoming only receipts and announcements.";default:return"This keeps the strategy grounded in the user's actual material instead of generic content prompts."}}function At(e){if(e.length===0)return[];const n=e.map(i=>Math.max(10,Math.round(i/5)*5)),a=n.reduce((i,d)=>i+d,0);if(a===100)return n;const s=[...n];let r=100-a;for(;r!==0&&s.length>0;){const i=r>0?s.indexOf(Math.min(...s)):s.indexOf(Math.max(...s)),d=r>0?5:-5;if(s[i]+d<10)break;s[i]+=d,r-=d}return s}function Rt(e){return`### ${e.targetMix}% ${e.title} 22 23**Core Message:** 24${e.coreMessage} 25 26**What I Share:** 27${e.whatYouShare.map(n=>`* ${n}`).join(` 28`)} 29 30**Why It Matters:** 31${e.whyItMatters} 32`}function Dt(e){return`**Primary:** 33${e.labels.includes("x-growth")?"Founders and Creators building internet businesses who want practical proof of how audience, product, and revenue compound together.":"Founders and operators building real businesses who want practical judgment from someone actively building."} 34 35**Secondary:** 36Product-minded builders and startup operators who care about shipping, customer insight, product taste, and the behind-the-scenes reality of building tools people use. 37 38**Others:** 39Creators and ambitious professionals who want direct lessons on growth, monetization, distribution, and founder psych
39ology without generic thought-leader posturing. 40 41**Positioning Line:** 42I'm the person you follow if you want to **see what building, scaling, and learning in public actually looks like - the proof, the tradeoffs, and the operating lessons behind the numbers.**`}function Ft(e){const n=e?.goalDate?Wt(e.goalDate):"";return e?.followerCount&&e.followerTarget&&n?`Grow to ${Ot(e.followerTarget)} followers by ${n}.`:"Grow my X account over the next 6-12 months by turning my founder proof, product lessons, and operating judgment into a consistent content engine. Once Stanley can read the current follower count, this should become a concrete follower target with a date."}function zt(){return`**What I Lean Into:** 43* Story-first structure - open with a moment, receipt, or tension before the lesson 44* Concrete proof: revenue, customer outcomes, product decisions, screenshots, or hard-earned lessons 45* Direct, specific, low-fluff language that sounds like me 46* Product and company context as part of the story, not as detached promotion 47* Strong claims backed by lived experience 48 49**What I Avoid:** 50* Inventing personal stories, private details, numbers, client names, or results 51* Generic advice that could come from anyone 52* Thought-leader posturing, corporate language, or polished hindsight that erases the messy middle 53* Repeating the same proof point, hook, or resource-drop mechanic too closely 54* Turning every post into advice - the mix should include proof, product/building, opinion, and operator judgment 55* Content that does not ultimately build trust, distribution, or qualified attention`}function Lt(e){if(!e||e.source==="unavailable")return`**Cadence:** 56Prepare 4-6 strong posts/week and publish only when the ideas are specific enough until Stanley can infer timing from my actual X posts. 57 58**Default Windows:** 59Use the live X account history to infer the strongest posting windows before scheduling. 60 61**Schedule Patterns:** 62Prioritize consistency first. Once Stanley has enough account history, preserve the real day/time rhythm instead of inventing a calendar from scratch.`;if(e.postCount===0)return`**Cadence:** 63Prepare 4-6 strong posts/week, publish 1/day on weekdays, and increase only when the ideas are specific. 64 65**Default Windows:** 66Start with weekday working-hour slots, then replace this with actual inferred account timing as soon as posts are available. 67 68**Schedule Patterns:** 69Keep the rhythm simple until the account has enough history to reveal reliable recurring patterns.`;const n=Math.round(e.postsPerWeek/7*10)/10,a=Ne(e.postsPerWeek,10),s=Ne(n,1),r=e.topTimes.length>0?e.topTimes.slice(0,3).map(h=>h.time).join(", "):"the strongest inferred weekday slots",i=e.topSlots.length>0?`Priority day/time patterns: ${e.topSlots.map(h=>`${h.day} ${h.time}`).join(", ")}.`:"",d=e.rhythmPatterns.length>0?e.rhythmPatterns.map(h=>`* ${h.guidance}`).join(` 70`):"* Re-check the live X account before scheduling so Stanley preserves the actual rhythm and does not over-repeat one pillar.";return`**Cadence:** 71Publish around ${s} posts/day and prepare ${a} strong posts/week. 72 73**Default Windows:** 74Use ${r} as the default posting windows. 75 76**Schedule Patterns:** 77${i||"Prioritize the strongest inferred weekday slots before adding new windows."} 78${d}`}function Wt(e){const n=new Date(`${e}T00:00:00Z`);return Number.isFinite(n.getTime())?new Intl.DateTimeFormat("en-US",{month:"long",day:"numeric",year:"numeric",timeZone:"UTC"}).format(n):e}function Ot(e){return new Intl.NumberFormat("en-US").format(e)}function Ne(e,n){const a=Math.max(n,Math.round(e/n)*n);return`${Math.max(n,a-n)}-${a}`}function Bt(){const{mock:e}=Ee.useLoaderDeps(),n=ze($e(e));return We(a=>Le({data:a}),a=>{if(a.redirectTo){window.location.assign(a.redirectTo);return}n()})}function Ie(e){return e.replace(/^# Autonomous Strategy\s*\n+/i,"").trim()}function Gt({markdown:e,isEditing:n,onChange:a}){const s=Oe({extensions:[Ge.configure({heading:{levels:[1,2,3]}}),Be],content:e,contentType:"markdown",editable:n,immediatelyRender:!1,onUpdate:({editor:r})=>{a(r.getMarkdown())}});return l.useEffect(()=>{s?.setEditable(n),n&&s?.chain().focus().run()},[s,n]),t.jsxs("div",{className:`autonomous-strategy-document w-full text-text ${n?"autonomous-strategy-editor":"autonomous-strategy-preview"}`,children:[n&&t.jsxs("div",{className:"autonomous-editor-toolbar flex flex-wrap items-center gap-1 border-b border-border px-3 py-2",children:[t.jsx(V,{label:"Heading 1",active:s?.isActive("heading",{level:1})===!0,disabled:!s,onClick:()=>s?.chain().focus().toggleHeading({level:1}).run(),children:t.jsx(He,{size:15})}),t.jsx(V,{label:"Heading 2",active:s?.isActive("heading",{level:2})===!0,disabled:!s,onClick:()=>s?.chain().focus().toggleHeading({level:2}).run(),children:t.jsx(Ue,{size:15})}),t.jsx("span",{className:"mx-1 h-5 w-px bg-border"}),t.jsx(V,{label:"Bold",active:s?.isActive("bold")===!0,disabled:!s,onClick:()=>s?.chain().focus().toggleBold().run(),children:t.jsx(Ye,{size:15})}),t.jsx(V,{label:"Italic",active:s?.isActive("italic")===!0,disabled:!s,onClick:()=>s?.chain().focus().toggleItalic().run(),children:t.jsx(Xe,{size:15})}),t.jsx(V,{label:"Bullet list",active:s?.isActive("bulletList")===!0,disabled:!s,onClick:()=>s?.chain().focus().toggleBulletList().run(),children:t.jsx(xt,{size:15})}),t.jsx("span",{className:"mx-1 h-5 w-px bg-border"}),t.jsx(V,{label:"Undo",disabled:!s,onClick:()=>
78s?.chain().focus().undo().run(),children:t.jsx(bt,{size:15})}),t.jsx(V,{label:"Redo",disabled:!s,onClick:()=>s?.chain().focus().redo().run(),children:t.jsx(wt,{size:15})})]}),t.jsx(qe,{editor:s})]})}function V({label:e,active:n=!1,disabled:a=!1,onClick:s,children:r}){return t.jsx("button",{type:"button","aria-label":e,title:e,disabled:a,onClick:s,className:`flex h-8 w-8 items-center justify-center rounded-md border text-text-secondary transition-colors disabled:opacity-40 ${n?"border-primary/25 bg-primary/10 text-primary":"border-transparent hover:border-border hover:bg-surface-hover hover:text-text"}`,children:r})}function Ht({fetcher:e,onStart:n}){const a=e.state!=="idle";return t.jsx("div",{children:t.jsxs("section",{className:"max-w-5xl py-6 sm:py-8",children:[t.jsx(Ut,{}),t.jsxs(e.Form,{className:"mt-8",onSubmit:n,children:[t.jsx("input",{type:"hidden",name:"intent",value:"start"}),t.jsx(Se,{type:"submit",disabled:a,children:a?t.jsxs(t.Fragment,{children:[t.jsx(me,{size:15,className:"animate-spin"}),"Compiling strategy..."]}):t.jsxs(t.Fragment,{children:["Let's get started",t.jsx(ft,{size:15})]})})]})]})})}function Ut(){return t.jsxs("div",{className:"mt-10 w-full max-w-5xl",children:[t.jsxs("div",{className:"mb-5 flex items-center gap-3",children:[t.jsx("div",{className:"h-px flex-1 bg-border"}),t.jsx("div",{className:"text-caption leading-normal font-semibold uppercase tracking-[0.12em] text-text-tertiary",children:"Weekly operating loop"}),t.jsx("div",{className:"h-px flex-1 bg-border"})]}),t.jsxs("div",{className:"relative grid gap-6 md:grid-cols-4 md:gap-5",children:[t.jsx("div",{className:"absolute top-[1.125rem] right-[12.5%] left-[12.5%] hidden h-px bg-border md:block"}),t.jsx(be,{icon:t.jsx(Ae,{size:15}),label:"Ideate",description:"Turn strategy and learnings into candidate posts."}),t.jsx(be,{icon:t.jsx(yt,{size:15}),label:"Schedule",description:"Place the strongest work into the calendar."}),t.jsx(be,{icon:t.jsx(vt,{size:15}),label:"Calibrate",description:"Ask for input when confidence is low."}),t.jsx(be,{icon:t.jsx(St,{size:15}),label:"Evaluate",description:"Review performance and tune the next week."})]}),t.jsxs("div",{className:"mt-5 flex items-center gap-3 text-xs text-text-tertiary",children:[t.jsx("div",{className:"h-px flex-1 bg-border"}),t.jsx("span",{children:"Then Stanley carries the learning into the next week."})]})]})}function be({description:e,icon:n,label:a}){return t.jsxs("div",{className:"relative min-w-0",children:[t.jsx("span",{className:"relative z-10 flex h-9 w-9 items-center justify-center rounded-full bg-primary/10 text-primary ring-8 ring-bg",children:n}),t.jsxs("div",{className:"mt-4",children:[t.jsx("div",{className:"text-sm font-semibold leading-5 text-text",children:a}),t.jsx("div",{className:"mt-1 max-w-44 text-xs leading-5 text-text-secondary",children:e})]})]})}function Yt(){return t.jsx("div",{className:"flex min-h-[420px] items-center justify-center border-t border-border px-6 py-16 text-center",children:t.jsxs("div",{className:"max-w-sm",children:[t.jsx("div",{className:"mx-auto flex h-10 w-10 items-center justify-center rounded-lg bg-primary/10 text-primary",children:t.jsx(me,{size:20,className:"animate-spin"})}),t.jsx("h3",{className:"mt-4 text-sm font-semibold text-text",children:"Compiling initial strategy for review"}),t.jsx("p",{className:"mt-2 text-sm leading-6 text-text-secondary",children:"Stanley is turning the account context, saved memory, and connected profiles into a first Strategy Brief."})]})})}function Xt({isSimulating:e,onSimulate:n}){const[a,s]=l.useState(null),[r,i]=l.useState(()=>Date.now()),d=a?Math.max(0,Math.floor((r-a)/1e3)):0,h=e?`Running ${en(d)}`:"Try now";return l.useEffect(()=>{if(!e){s(null);return}const g=Date.now();s(g),i(g);const P=window.setInterval(()=>i(Date.now()),1e3);return()=>window.clearInterval(P)},[e]),t.jsxs("button",{type:"button",disabled:e,onClick:n,className:"inline-flex h-7 shrink-0 items-center justify-center gap-1.5 rounded-md px-2.5 text-xs leading-normal font-semibold text-primary transition-colors hover:bg-primary/10 disabled:cursor-wait disabled:opacity-80",children:[e?t.jsx(me,{size:14,className:"animate-spin",strokeWidth:2}):t.jsx(pt,{size:14,strokeWidth:2}),t.jsx("span",{children:h})]})}function qt({disabled:e,isRegenerating:n,onRegenerate:a}){const[s,r]=l.useState(!1),i=l.useRef(null);return t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",ref:i,"aria-label":"Strategy actions","aria-haspopup":"dialog","aria-expanded":s,onClick:()=>r(d=>!d),className:"inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-text-tertiary transition-colors hover:bg-surface-hover hover:text-text",children:t.jsx(gt,{size:17,strokeWidth:2})}),t.jsx(kt,{open:s,onOpenChange:r,children:t.jsx(Ct,{children:t.jsx(Pt,{side:"bottom",align:"end",sideOffset:8,anchor:()=>i.current,children:t.jsx(Nt,{className:"stanley-panel-strong z-50 flex w-56 origin-[var(--transform-origin)] flex-col rounded-xl p-1.5 transition-[opacity,transform] duration-150 ease-out data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0",children:t.jsxs("button",{type:"button",disabled:e,onClick:()=>{r(!1),a()},className:"flex w-full items-center gap-2 rounded-lg px-2.5 py-2 text-left text-sm font-medium text-text-secondary transition-colors hover:bg-surface-hover hover:text-text disabled:cursor-not-allowed disabled:opacity-50",children:[n?t.jsx(me,{size:15,className:"animate-spin text-primary"}):t.jsx(Ae,{size:15}),"Regenerate strategy"]}
78)})})})})]})}function Jt({artifacts:e,calendarPosts:n,events:a,isSimulating:s,mock:r,autoScheduleGeneratedDrafts:i=!1,previewGeneratedAt:d,previewTimezone:h,result:g,showScheduleActions:P=!0,slotSettings:G,showStatus:E=!0}){const L=Re(a,g,s),v=e?.drafts??[],j=g?.rules.timezone??h??void 0,[N,H]=l.useState(null),[M,x]=l.useState({}),[w,A]=l.useState(()=>new Set),[I,U]=l.useState(!1),[Y,ne]=l.useState(()=>new Set),[se,re]=l.useState(null),[ae,W]=l.useState(null),X=l.useRef(null),O=v.find(o=>o.id===N)??null,he=O?M[O.id]??O.text:"",q=v.filter(o=>!w.has(o.id)),oe=q.filter(o=>o.status==="generated"),R=oe.filter(o=>!Y.has(o.id)),Q=!s&&!!g&&R.length>0,B=!s&&!!g&&oe.length>0&&R.length===0,T=P&&(Q||I||B),ie=P||i,fe=l.useMemo(()=>q.filter(o=>o.status==="generated").map(o=>Kt(le(o))),[q,M]),we=e?.slots??g?.slots??[],k=l.useMemo(()=>new Set(q.filter(o=>o.status==="generated").map(o=>je(o.id))),[q]),pe=l.useMemo(()=>n.filter(o=>!!o.scheduled_at&&o.status!=="draft"&&!k.has(o.id)),[n,k]),D=l.useMemo(()=>[...pe,...fe],[pe,fe]),[F,Z]=l.useState(D);l.useEffect(()=>{Z(D)},[D]);const ye=l.useMemo(()=>Vt(we,F,j,G),[we,F,j,G]),ge=g?.generatedAt??d,f=l.useMemo(()=>new Date(ge??Date.now()),[ge]),y=l.useMemo(()=>nt(j?Me(f,j):f),[f,j]),xe=l.useMemo(()=>st(y,1),[y]),J=l.useMemo(()=>rt(xe,"week",0),[xe]);l.useEffect(()=>{N&&(!v.some(o=>o.id===N)||w.has(N))&&H(null)},[v,w,N]),l.useEffect(()=>{const o=new Set(v.map(c=>c.id));A(c=>{const m=new Set([...c].filter(p=>o.has(p)));return m.size===c.size?c:m}),ne(c=>{const m=new Set([...c].filter(p=>o.has(p)));return m.size===c.size?c:m})},[v]);function le(o){const c=M[o.id];return c===void 0?o:{...o,text:c}}function de(o){A(c=>
78new Set(c).add(o)),re(null),W(null),N===o&&H(null)}function _(o,c,m={}){const p=F;Z(u=>{const S=u.find(b=>b.id===o);if(!S)return u;const $={...S,status:"scheduled",scheduled_at:c},z=u.filter(b=>b.id!==o);let K=Math.min(u.findIndex(b=>b.id===o),z.length);if(m.beforeId){const b=z.findIndex(te=>te.id===m.beforeId);b>=0&&(K=b)}else if(m.afterId){const b=z.findIndex(te=>te.id===m.afterId);b>=0&&(K=b+1)}return[...z.slice(0,K),$,...z.slice(K)]}),!(k.has(o)||r||!P)&&fetch("/api/content",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"schedule",post_id:o,scheduled_at:c})}).then(u=>{u.ok||(Z(p),ue("error","Couldn't move that post. Try again."))}).catch(()=>{Z(p),ue("error","Couldn't move that post. Try again.")})}function ce(o){const{active:c,over:m}=o;if(!m)return;const p=String(c.id),u=Qe(o),S=Ze(String(m.id),u);if(S===p)return;const $=S.match(/^day-(\d+):(.+)$/);if(!$)return;const z=Number.parseInt($[1],10),K=J[z];if(!K)return;const b=$[2];if(b==="auto"||b==="custom")return;const te=ot(K,b,j);if(it(te,f)){ue("error","Choose a future time.");return}_(p,te,et(S,p,u))}async function ee(){if(!Q||I)return;U(!0),re(null),W(null);const o=[];try{for(const m of R){const p=le(m),u=F.find(z=>z.id===je(m.id)),S=await fetch("/api/content",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"create",text:p.text,platform:p.platform,tags:[p.pillar],scheduled_at:u?.scheduled_at??p.scheduledAt,source:"agent"})}),$=await S.json();if(!S.ok||$.ok!==!0)throw new Error($.message??"Couldn't schedule that draft.");o.push(m.id)}ne(m=>new Set([...m,...o]));const c=`${o.length} post${o.length===1?"":"s"} made and scheduled on your calendar.`;W(c),ue("success",c)}catch(c){o.length>0&&ne(p=>new Set([...p,...o]));const m=c instanceof Error?c.message:"Couldn't schedule those drafts. Try again.";re(m),W(null),ue("error",m)}finally{U(!1)}}const C=R.map(o=>o.id).join("|");return l.useEffect(()=>{!i||r||!Q||!C||X.current!==C&&(X.current=C,ee())},[i,r,Q,C]),t.jsxs("div",{className:`min-h-[420px] bg-white dark:bg-bg ${E||T?"px-5 py-5":"pt-1 pb-5"}`,children:[(E||T)&&t.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[E&&t.jsx(De,{activity:L}),T&&t.jsx("button",{type:"button",disabled:I||R.length===0||B,onClick:ee,className:"stanley-primary-action mt-2 shrink-0 px-3.5 py-1.5 text-body leading-normal font-medium disabled:cursor-not-allowed disabled:opacity-50",children:I?"Scheduling...":B?"Scheduled":`Schedule ${R.length}`})]}),ie&&se&&t.jsx("div",{className:"mt-3 text-sm text-error",children:se}),ie&&ae&&t.jsxs("div",{className:"mt-3 flex items-center gap-1.5 text-sm text-text-secondary",children:[t.jsx(Ce,{size:14,strokeWidth:2,className:"shrink-0 text-success","aria-hidden":!0}),t.jsx("span",{children:ae})]}),E&&g?.agentError&&t.jsx("div",{className:"mt-4 rounded-md border border-error/20 bg-error/10 px-3 py-2 text-sm text-error",children:Pe(g.agentError)}),t.jsx("div",{className:E||T?"mt-8":"","data-content-page":!0,children:t.jsx(Ke,{posts:F,onDragEnd:ce,children:t.jsx("div",{className:"autonomous-calendar-preview",children:t.jsx(Ve,{days:J,today:y,now:f,scheduled:F,reschedulingPostIds:k,onPostClick:o=>{o.id.startsWith("autonomous-preview-")&&H(Te(o.id))},onPostDelete:o=>de(Te(o.id)),canDeletePost:o=>k.has(o.id),daySlotWidth:"clamp(260px, calc((100cqw - 48px) / 4.25), 400px)",emptySlotDisplay:"while-dragging",slotSettings:ye})})})}),t.jsx(Zt,{draft:O,text:he,onChange:o=>{O&&x(c=>({...c,[O.id]:o}))},onClose:()=>H(null)})]})}function je(e){return`autonomous-preview-${e}`}function Te(e){return e.startsWith("autonomous-preview-")?e.slice(19):e}function Kt(e){return{id:je(e.id),text:e.text,platform:e.platform,status:e.status==="existing"&&e.existingPostStatus!=="draft"?e.existingPostStatus??"scheduled":"scheduled",tags:[e.pillar],scheduled_at:e.scheduledAt,created_at:e.scheduledAt,updated_at:e.scheduledAt,source:e.status==="generated"?"agent":"user"}}function Vt(e,n,a,s){const r=n.map(d=>d.scheduled_at).filter(d=>!!d).map(d=>Qt(d,a)),i=[...new Set([...e.map(d=>d.time),...r])].filter(d=>/^([01]\d|2[0-3]):[0-5]\d$/.test(d)).sort((d,h)=>ve(d)-ve(h));return i.length===0?s:{slots:i.map(d=>({time:d,label:at(d),minutes:ve(d)})),defaultSlotCount:i.length}}function Qt(e,n){const a=n?Me(new Date(e),n):new Date(e);return`${String(a.getHours()).padStart(2,"0")}
78:${String(a.getMinutes()).padStart(2,"0")}`}function Zt({draft:e,text:n,onChange:a,onClose:s}){const r=e!==null;return l.useEffect(()=>{if(!r)return;function i(d){d.key==="Escape"&&s()}return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[r,s]),t.jsxs(t.Fragment,{children:[t.jsx("div",{onClick:s,"aria-hidden":!0,className:`fixed inset-0 z-30 bg-black/[0.04] backdrop-blur-[2px] transition-opacity dark:bg-black/15 ${r?"opacity-100 duration-[300ms] ease-out":"pointer-events-none opacity-0 duration-[180ms] ease-in"}`}),t.jsx("div",{className:`fixed inset-0 z-40 flex items-center justify-end px-6 py-6 transition-all will-change-transform xl:pr-10 ${r?"translate-x-0 opacity-100 duration-[360ms] ease-[cubic-bezier(0.22,1.05,0.36,1)]":"pointer-events-none translate-x-10 opacity-0 duration-[200ms] ease-[cubic-bezier(0.4,0,1,1)]"}`,role:"dialog","aria-modal":"true","aria-label":"Edit autonomous draft",children:t.jsxs("aside",{className:"flex h-[calc(100vh-3rem)] w-full max-w-[40rem] flex-col overflow-hidden rounded-[28px] border border-border bg-white shadow-2xl dark:bg-bg",children:[t.jsxs("div",{className:"flex shrink-0 items-start justify-between gap-4 border-b border-border px-5 py-4",children:[t.jsxs("div",{className:"min-w-0",children:[t.jsx("h3",{className:"text-sm font-semibold text-text",children:"Edit draft"}),e&&t.jsxs("div",{className:"mt-2 flex min-w-0 flex-wrap items-center gap-1.5",children:[t.jsx("span",{className:"calendar-time-pill",children:lt(e.scheduledAt)}),t.jsx(dt,{platform:e.platform}),t.jsx("span",{className:"calendar-tag-pill",style:{maxWidth:"100%"},children:e.pillar})]})]}),t.jsx("button",{type:"button",onClick:s,"aria-label":"Close editor",className:"inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-text-tertiary transition-colors hover:bg-surface-hover hover:text-text",children:t.jsx(jt,{size:17,strokeWidth:1.8})})]}),t.jsx("textarea",{value:n,onChange:i=>a(i.currentTarget.value),className:"min-h-0 flex-1 resize-none bg-white px-5 py-5 text-[15px] leading-7 text-text outline-none placeholder:text-text-tertiary dark:bg-bg",placeholder:"Draft text"}),t.jsx("div",{className:"flex shrink-0 justify-end border-t border-border px-5 py-4",children:t.jsx("button",{type:"button",onClick:s,className:"stanley-primary-action shrink-0 px-3.5 py-1.5 text-body leading-normal font-medium",children:"Done"})})]})})]})}function en(e){if(e<60)return`${e}s`;const n=Math.floor(e/60),a=e%60;return n<10?`${n}m ${String(a).padStart(2,"0")}s`:`${n}m`}function Re(e,n,a){const s=[...e].reverse().find(r=>r.status==="blocked");if(s)return{label:s.label,detail:s.detail??"The run needs attention before it can continue.",state:"blocked"};if(a){const r=tn(e);return r?{label:r.label,detail:r.detail??nn(r.kind,r.status),state:"running"}:{label:"Warming up the pen",detail:"Opening the controller session.",state:"running"}}if(n?.completed){const r=n.drafts.filter(h=>h.status==="generated").length,i=n.drafts.filter(h=>h.status==="existing").length;return{label:"Week planned",detail:r>0?`Stanley made ${r} new post${r===1?"":"s"}${i>0?` and kept ${i} existing post${i===1?"":"s"} in place`:""}.`:`All ${n.filledSlotCount} planned slot${n.filledSlotCount===1?"":"s"} were already filled.`,state:"completed"}}return n?{label:"Stopped mid-thought",detail:`Stanley is no longer working. Next step would be ${n.nextStep?ke(n.nextStep):"the next controller step"}.`,state:n.agentError?"blocked":"stopped"}
78:{label:"Ready to run the week",detail:"The run will show each controller step as it starts.",state:"idle"}}function Pe(e){if(/cache_control\.ttl/i.test(e))return"The model provider rejected this run because prompt caching was configured incorrectly. Stanley did not schedule anything.";const n=e.replace(/\s+/g," ").trim();return n.length<=240?n:`${n.slice(0,237)}...`}function tn(e){return[...e].reverse().find(n=>n.status==="running")??e.at(-1)}function nn(e,n){return n==="completed"?"This action completed.":e==="tool"?"Stanley is waiting for this tool call to return.":e==="step"?"Stanley is working through this controller step.":"Stanley is preparing the next controller action."}function De({activity:e,className:n="mt-3"}){const a=an(e);return t.jsxs("div",{className:`${n} flex min-h-6 flex-wrap items-center gap-x-3 gap-y-1 text-sm`,children:[t.jsxs("div",{className:"flex shrink-0 items-center font-normal text-text-secondary",children:[e.state==="completed"&&t.jsx(Ce,{size:15,strokeWidth:2,className:"mr-1.5 text-success","aria-hidden":!0}),t.jsx("span",{className:"inline-block animate-[footer-fade-in_220ms_ease-out]",children:a},a),e.state==="running"&&t.jsx(rn,{})]}),e.detail&&e.state!=="running"&&t.jsx("span",{className:"text-text-tertiary",children:e.detail})]})}function sn({activity:e}){if(e.state==="idle"||e.state==="running")return null;const n=e.state==="completed",a=e.state==="blocked";return t.jsxs("div",{className:`mt-1.5 flex min-h-5 items-center gap-1.5 text-sm ${n?"text-text-secondary":a?"text-error":"text-text-secondary"}`,children:[n&&t.jsx(Ce,{size:14,strokeWidth:2,className:"shrink-0 text-success","aria-hidden":!0}),t.jsx("span",{children:e.label}),e.detail&&t.jsx("span",{className:a?"text-error":"text-text-tertiary",children:e.detail})]})}function rn(){const[e,n]=l.useState(0);return l.useEffect(()=>{const a=window.setInterval(()=>{n(s=>(s+1)%3)},450);return()=>window.clearInterval(a)},[]),t.jsx("span",{className:"inline-block w-5 pl-0.5 text-text-tertiary","aria-hidden":!0,children:".".repeat(e+1)})}function an(e){const n=ln(e.label,e.state),[a,s]=l.useState(0);return l.useEffect(()=>{if(s(0),e.state!=="running"||n.length<=1)return;let r;const i=()=>{r=window.setTimeout(()=>{s(d=>(d+1)%n.length),i()},on())};return i(),()=>{r!==void 0&&window.clearTimeout(r)}},[e.label,e.state,n.length]),n[a]??e.label}function on(){return 5e3+Math.floor(Math.random()*5e3)}function ln(e,n){if(n!=="running")return[e];switch(e){case"Warming up the pen":case"Getting started":case"Rolling up sleeves":return[e,"Starting from scratch","Clearing the desk"];case"Reading the brief":case"Reading context":return[e,"Looking for the signal","Reading between the lines"];case"Checking the week":case"Finding the gaps":return[e,"Taking a walk around the week","Looking for empty spots"];case"In drafting":return[e];case"Tightening the voice":return[e,"Removing AI language","Killing the fluff","Making it sound like them"];case"Preparing the preview":case"Snapping the preview":return[e,"Laying it out clean","Getting it review-ready"];case"Thinking it through":return[e,"Taking a walk around it","Looking for the human version"];default:return[e]}}function dn(e){return e.replace(/^autonomous_/,"").replace(/_/g," ")}function ke(e){switch(e){case"autonomous_read_strategy":return"Reading the brief";case"autonomous_plan_week":return"Finding the gaps";case"autonomous_draft_posts":return"In drafting";case"autonomous_critique_posts":return"Tightening the voice";case"autonomous_schedule_week":return"Leaving the calendar alone";case"autonomous_notify_creator":return"Preparing the preview";default:return`Working through ${dn(e)}`}}function _e(e){switch(e){case"read_file":return"Reading context";case"session_status":return"Checking the clock";case"autonomous_plan_week":return"Checking the week";case"autonomous_draft_posts":return"In drafting";case"autonomous_critique_posts":return"Tightening the voice";case"autonomous_schedule_week":return"Leaving the calendar alone";case"autonomous_notify_creator":return"Preparing the preview";case"take_snapshot":return"Snapping the preview";default:return"Thinking it through"}}function cn(e,n){switch(e.type){case"meta":return{id:`${n}
78:meta`,kind:"meta",label:"Getting started",detail:`${e.horizonDays} day dry run`,status:"completed"};case"status":return{id:`${n}:status`,kind:"status",label:e.message,status:"running"};case"step_start":return{id:`${n}:step_start:${e.name}`,kind:"step",label:ke(e.name),detail:e.summary,status:"running",stepName:e.name};case"step_end":return{id:`${n}:step_end:${e.name}`,kind:"step",label:ke(e.name),detail:e.summary,status:e.status==="completed"?"completed":"blocked",stepName:e.name};case"tool_start":return{id:`${n}:tool_start:${e.name}`,kind:"tool",label:_e(e.name),status:"running"};case"tool_end":return{id:`${n}:tool_end:${e.name}`,kind:"tool",label:e.ok?_e(e.name):"Something broke",detail:`${Math.round(e.durationMs)}ms`,status:e.ok?"completed":"blocked"};case"error":return{id:`${n}:error`,kind:"error",label:"Something broke",detail:Pe(e.message),status:"blocked"};case"artifacts":case"delta":case"done":return null}}function un(e){let n="message";const a=[];for(const s of e.split(` 79`))s.startsWith("event:")?n=s.slice(6).trim():s.startsWith("data:")&&a.push(s.slice(5).trimStart());if(a.length===0)return null;try{const s=JSON.parse(a.join(` 80`));return s.type===n?s:null}catch{return null}}function mn(e){if(e)return{slots:e.slots,drafts:e.drafts,expectedSlotCount:e.expectedSlotCount,filledSlotCount:e.filledSlotCount,openSlotCount:e.openSlotCount,completed:e.completed}}function ns(){const{calendar:e,config:n,mock:a,profile:s}=Fe($e(Ee.useLoaderDeps().mock)).data,r=Bt(),i=r.data,d=n.autonomous_strategy?.trim()||It(n,s),h=Ie(d),[g,P]=l.useState(n.autonomous_enabled===!0||!!n.autonomous_strategy?.trim()),[G,E]=l.useState(!1),[L,v]=l.useState(!1),[j,N]=l.useState(h),[H,M]=l.useState(n.autonomous_enabled===!0),[x,w]=l.useState(null),A=l.useRef(null),I=l.useRef(!1),U=l.useRef(void 0),Y=l.useRef(null),[ne,se]=l.useState(void 0),[re,ae]=l.useState(void 0),[W,X]=l.useState([]),[O,he]=l.useState(null),[q,oe]=l.useState(!1),R=r.state!=="idle"&&x==="save",Q=r.state!=="idle"&&x==="regenerate",B=q||r.state!=="idle"&&x==="simulate",T=ne??i?.autonomousRun,ie=re??mn(T),fe=tt(n),k=(B||W.length>0||!!T)&&!G&&!L,pe=(ie?.slots.length??0)>0,D=k?Re(W,T,B):null,F=!g;function Z(){r.state==="idle"&&(A.current&&(A.current.value="regenerate"),w("regenerate"),v(!0),A.current?.form?.requestSubmit())}function ye(f){const y=new FormData;y.set("intent","toggle"),y.set("autonomous_strategy",j),f&&y.set("autonomous_enabled","on"),w("toggle"),M(f),window.dispatchEvent(new CustomEvent("stanley:autonomous-status",{detail:{enabled:f}})),r.submit(y,{method:"post"})}async function ge(){Y.current?.abort();const f=new AbortController;let y=!1;const xe=setTimeout(()=>{y=!0,f.abort()},33e4);Y.current=f,w("simulate"),se(void 0),ae(void 0),X([]),he(null),oe(!0);let J=0,le="",de=!1;try{const _=await fetch("/api/autonomous/simulate/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({strategy:j,horizonDays:7}),signal:f.signal});if(!_.ok)throw new Error(await _.text());if(!_.body)throw new Error("no_stream_body");const ce=_.body.getReader(),ee=new TextDecoder;let C="";for(;;){const{value:o,done:c}=await ce.read();if(f.signal.aborted)return;if(c)break;C+=ee.decode(o,{stream:!0});let m=C.indexOf(` 81 82`);for(;m>=0;){const p=C.slice(0,m).trim();if(C=C.slice(m+2),m=C.indexOf(` 83 84`),!p||p.startsWith(":"))continue;const u=un(p);if(!u)continue;const S=cn(u,J);J+=1,u.type==="meta"&&he(u.generatedAt),S&&X($=>[...$,S]),u.type==="delta"?le+=u.text:u.type==="artifacts"?ae({slots:u.slots,drafts:u.drafts,expectedSlotCount:u.expectedSlotCount,filledSlotCount:u.filledSlotCount,openSlotCount:u.openSlotCount,completed:u.completed}):u.type==="done"?(de=!0,se({...u.simulation,agentResponse:u.simulation.agentResponse||le})):u.type==="error"&&(de=!0)}}!de&&!f.signal.aborted&&X(o=>[...o,{id:`${J}:stream_closed`,kind:"error",label:"Run stopped before finishing",detail:"The autonomous run started, but the live stream closed before Stanley returned a final result.",status:"blocked"}])}catch(_){if(f.signal.aborted&&!y)return;const ce=_ instanceof Error?_.message:String(_);X(ee=>[...ee,{id:`${J}:client_error`,kind:"error",label:y?"Simulation timed out":"Simulation stream failed",detail
84:y?"The 5 minute run limit was reached.":Pe(ce),status:"blocked"}])}finally{clearTimeout(xe),Y.current===f&&(Y.current=null,oe(!1),w(null))}}return l.useEffect(()=>{N(h)},[h]),l.useEffect(()=>{M(n.autonomous_enabled===!0)},[n.autonomous_enabled]),l.useEffect(()=>{P(n.autonomous_enabled===!0||!!n.autonomous_strategy?.trim())},[n.autonomous_enabled,n.autonomous_strategy]),l.useEffect(()=>()=>{Y.current?.abort()},[]),l.useEffect(()=>{r.state!=="idle"||!x||!i?.success||U.current===i||(U.current=i,I.current=!1,typeof i.autonomousEnabled=="boolean"&&(M(i.autonomousEnabled),window.dispatchEvent(new CustomEvent("stanley:autonomous-status",{detail:{enabled:i.autonomousEnabled}}))),i.autonomousStrategy&&N(Ie(i.autonomousStrategy)),(i.intent==="start"||i.intent==="regenerate")&&(P(!0),E(!1),v(!1)),(x==="save"||x==="regenerate")&&E(!1),w(null))},[i,r.state,x]),l.useEffect(()=>{const f=x==="regenerate"||x==="start";if(r.state!=="idle"&&f){I.current=!0;return}r.state==="idle"&&(!L||!f||!I.current||(I.current=!1,v(!1),w(null)))},[r.state,L,x]),l.useEffect(()=>{r.state!=="idle"||!x||!i?.error||U.current===i||(U.current=i,I.current=!1,v(!1),x==="start"&&(P(!1),M(!1),window.dispatchEvent(new CustomEvent("stanley:autonomous-status",{detail:{enabled:!1}}))),w(null))},[i,r.state,x]),t.jsxs(ct,{className:"space-y-5",children:[t.jsxs("div",{className:"grid gap-6 xl:grid-cols-[minmax(0,880px)_280px] xl:items-start",children:[t.jsx(ut,{className:"mb-0",title:"Autonomous",subtitle:"Let Stanley run your entire content system for you, fully autonomously.",actions:!F&&t.jsx(Je,{checked:H,"aria-label":"Turn Autonomous on or off",disabled:r.state!=="idle",label:H?"On":"Off",className:"flex-row-reverse gap-2 [&_span]:text-[13px] [&_span]:font-medium [&_span]:text-text-secondary",onChange:f=>ye(f.currentTarget.checked)})}),t.jsx("div",{"aria-hidden":!0})]}),i?.error&&t.jsx("div",{className:"rounded-lg border border-error/20 bg-error/10 px-4 py-3 text-sm text-error",children:i.error}),F?t.jsx(Ht,{fetcher:r,onStart:()=>{w("start"),M(!0),P(!0),v(!0),window.dispatchEvent(new CustomEvent("stanley:autonomous-status",{detail:{enabled:!0}}))}}):t.jsxs(r.Form,{id:"autonomous_strategy_form",method:"post",children:[t.jsx("input",{ref:A,type:"hidden",name:"intent",defaultValue:"save"}),t.jsx("input",{type:"hidden",name:"autonomous_strategy",value:j}),t.jsxs("div",{className:k?"space-y-4":"",children:[t.jsxs("div",{className:"grid gap-6 xl:grid-cols-[minmax(0,880px)_280px] xl:items-start",children:[t.jsxs("section",{className:"rounded-lg border border-border bg-white dark:bg-bg",children:[t.jsxs("div",{className:`flex flex-col gap-3 px-5 py-4 sm:flex-row sm:items-center sm:justify-between ${k?"":"border-b border-border"}`,children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-sm font-semibold text-text",children:"Strategy Brief"}),!D&&t.jsx("p",{className:"mt-1 text-xs text-text-tertiary",children:"Tell Stanley what matters to you and he will deliver."})]}),t.jsx("div",{className:"flex flex-wrap justify-end gap-2",children:!G&&!L&&t.jsxs(t.Fragment,{children:[t.jsx(Xt,{isSimulating:B,onSimulate:ge}),t.jsxs(Se,{type:"button",variant:"outline",size:"sm",onClick:()=>E(!0),children:[t.jsx(mt,{size:15}),"Edit"]}),t.jsx(qt,{disabled:r.state!=="idle",isRegenerating:Q,onRegenerate:Z})]})})]}),L?t.jsx(Yt,{}):k?null:t.jsx(Gt,{markdown:j,isEditing:G,onChange:N}),G&&!L&&t.jsx("div",{className:"flex justify-end border-t border-border px-5 py-4",children:t.jsx(Se,{type:"submit",disabled:R,size:"sm",onClick:()=>{A.current&&(A.current.value="save"),w("save")},children:R?t.jsxs(t.Fragment,{children:[t.jsx(me,{size:15,className:"animate-spin"}),"Saving..."]}):t.jsxs(t.Fragment,{children:[t.jsx(ht,{size:15}),"Save"]})})})]}),t.jsx("div",{"aria-hidden":!0})]}),k&&t.jsxs("section",{"aria-labelledby":"autonomous-calendar-heading",className:"space-y-3",children:[t.jsxs("div",{children:[t.jsx("h2",{id:"autonomous-calendar-heading",className:"text-xl font-semibold tracking-tight text-text",children:"Your Calendar"}),D?.state==="running"&&t.jsx(De,{activity:D,className:"mt-1"}),D&&t.jsx(sn,{activity:D})]}),pe&&t.jsx(Jt,{artifacts:ie,autoScheduleGeneratedDrafts:!0,calendarPosts:e.posts,events:W,isSimulating:
84B,mock:a,previewGeneratedAt:T?.generatedAt??O,previewTimezone:n.timezone,result:T,showScheduleActions:!1,slotSettings:fe,showStatus:!1})]})]})]})]})}export{ns as component};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.