@ytspar/devbar 1.14.1 → 1.14.2-canary.9095c1a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/devbar.auto.js +13 -3
- package/dist/browser/devbar.js +13 -3
- package/dist/constants.d.ts +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +12 -2
- package/dist/constants.js.map +1 -1
- package/dist/modules/rendering/expanded.js +1 -1
- package/dist/modules/rendering/expanded.js.map +1 -1
- package/package.json +2 -2
|
@@ -312,13 +312,23 @@ ${A.stack}`:""}`;if(typeof A=="string"||typeof A=="number"||typeof A=="boolean")
|
|
|
312
312
|
}
|
|
313
313
|
@media (max-width: 1120px) {
|
|
314
314
|
[data-devbar-custom-controls="true"] .devbar-main {
|
|
315
|
-
flex-
|
|
315
|
+
flex-direction: column;
|
|
316
|
+
flex-wrap: nowrap !important;
|
|
317
|
+
align-items: center !important;
|
|
318
|
+
justify-content: center !important;
|
|
316
319
|
row-gap: 0.5rem;
|
|
320
|
+
width: fit-content !important;
|
|
321
|
+
max-width: 100%;
|
|
317
322
|
}
|
|
318
323
|
[data-devbar-custom-controls="true"] .devbar-status,
|
|
319
324
|
[data-devbar-custom-controls="true"] .devbar-custom-controls-inline,
|
|
320
325
|
[data-devbar-custom-controls="true"] .devbar-actions {
|
|
321
|
-
flex:
|
|
326
|
+
flex: 0 1 auto !important;
|
|
327
|
+
width: fit-content !important;
|
|
328
|
+
max-width: 100%;
|
|
329
|
+
}
|
|
330
|
+
[data-devbar-custom-controls="true"] .devbar-status {
|
|
331
|
+
justify-content: center !important;
|
|
322
332
|
}
|
|
323
333
|
[data-devbar-custom-controls="true"] .devbar-custom-controls-inline {
|
|
324
334
|
justify-content: center !important;
|
|
@@ -451,5 +461,5 @@ ${l} console error${l===1?"":"s"}`:""}`,{onEnter:()=>{b.style.opacity="0",b.styl
|
|
|
451
461
|
`;function su(A,n={}){let{format:o="jpeg",quality:l=.7}=n;return o==="png"?A.toDataURL("image/png"):A.toDataURL("image/jpeg",l)}function q9(){if(document.getElementById(Ay))return()=>{};let n=document.createElement("style");return n.id=Ay,n.textContent=W9,document.head.appendChild(n),()=>{n.remove()}}function lu(A={}){document.body.classList.add("devbar-capturing"),document.activeElement instanceof HTMLElement&&document.activeElement.blur();let n=A.hideDevbar?q9():null;return()=>{n?.(),document.body.classList.remove("devbar-capturing")}}function uu(A){return new Promise(n=>setTimeout(n,A))}async function Op(A){return new Promise((n,o)=>{A.toBlob(async l=>{if(!l){o(new Error("Failed to create blob from canvas"));return}try{await navigator.clipboard.write([new ClipboardItem({"image/png":l})]),n()}catch(c){o(c)}},"image/png")})}function ay(A,n,o){let l=new Blob([n],{type:o}),c=URL.createObjectURL(l),m=document.createElement("a");m.href=c,m.download=A,m.click(),URL.revokeObjectURL(c)}function oy(A,n){let o=document.createElement("a");o.href=n,o.download=A,o.click()}function cu(A,n){if(mA(A.options.saveLocation,A.sweetlinkConnected)==="local"&&A.ws?.readyState===WebSocket.OPEN)A[n.savingFlag]=!0,A.render(),A.ws.send(JSON.stringify({type:n.type,data:n.data}));else{let l=new Date().toISOString().replace(/[:.]/g,"-").slice(0,19);ay(`${n.downloadFilename}-${l}.md`,n.downloadContent,n.downloadMimeType),A.handleNotification(n.notificationKey,n.notificationMessage,ea)}}function iy(A,n){return{logging:!1,useCORS:!0,allowTaint:!0,scale:A,windowWidth:window.innerWidth,windowHeight:window.innerHeight,scrollX:n?-window.scrollX:0,scrollY:n?-window.scrollY:0,ignoreElements:o=>o.hasAttribute("data-devbar"),onclone:(o,l)=>{let c=document.createElement("style");c.textContent=["*, *::before, *::after {"," animation: none !important;"," mix-blend-mode: normal !important;","}"].join(`
|
|
452
462
|
`),l.ownerDocument.head.appendChild(c)}}}function z9(A,n){let o=window.innerWidth*n,l=window.innerHeight*n,c=window.scrollX*n,m=window.scrollY*n;if(A.width<=o&&A.height<=l)return A;let g=document.createElement("canvas");g.width=o,g.height=l;let v=g.getContext("2d");return v?(v.drawImage(A,c,m,o,l,0,0,o,l),g):A}async function sy(A,n){try{await navigator.clipboard.writeText(n),A.copiedPath=!0,A.copiedPathTimeout&&clearTimeout(A.copiedPathTimeout),A.copiedPathTimeout=setTimeout(()=>{A.copiedPath=!1,A.render()},tf),A.render()}catch(o){console.error("[GlobalDevBar] Failed to copy path:",o)}}async function ly(A,n=!1){if(A.capturing)return;let o=mA(A.options.saveLocation,A.sweetlinkConnected);if(!n&&o==="local"&&!A.sweetlinkConnected)return;let l=null;try{A.capturing=!0,A.render(),l=lu(),await uu(nf);let m=await(await ai())(document.body,iy(Af,n));l(),l=null;let g=n?z9(m,Af):m;if(n)try{await Op(g),A.copiedToClipboard=!0,A.render(),A.screenshotTimeout&&clearTimeout(A.screenshotTimeout),A.screenshotTimeout=setTimeout(()=>{A.copiedToClipboard=!1,A.render()},tf)}catch(v){console.error("[GlobalDevBar] Failed to copy to clipboard:",v)}else{let v=su(g,{format:"jpeg",quality:A.options.screenshotQuality});if(o==="local"&&A.ws?.readyState===WebSocket.OPEN){let b={};A.lcpValue!==null&&(b.lcp=Math.round(A.lcpValue)),A.clsValue>0&&(b.cls=A.clsValue),A.inpValue>0&&(b.inp=Math.round(A.inpValue));let C=performance.getEntriesByType("paint").find(R=>R.name==="first-contentful-paint");C&&(b.fcp=Math.round(C.startTime));let E=0,D=performance.getEntriesByType("navigation")[0];D&&(E+=D.transferSize||0),performance.getEntriesByType("resource").forEach(R=>{E+=R.transferSize||0}),A.ws.send(JSON.stringify({type:"save-screenshot",data:{screenshot:v,width:g.width,height:g.height,logs:A.consoleLogs,url:window.location.href,timestamp:Date.now(),webVitals:Object.keys(b).length>0?b:void 0,pageSize:E>0?E:void 0}}))}else{let b=new Date().toISOString().replace(/[:.]/g,"-").slice(0,19);oy(`devbar-screenshot-${b}.jpg`,v),A.handleNotification("screenshot","screenshot downloaded",ea)}}}catch(c){console.error("[GlobalDevBar] Screenshot failed:",c),l&&l()}finally{A.capturing=!1,A.render()}}async function X9(A){if(A.designReviewInProgress||!A.sweetlinkConnected)return;let n=null;try{A.designReviewInProgress=!0,A.designReviewError=null,A.designReviewErrorTimeout&&(clearTimeout(A.designReviewErrorTimeout),A.designReviewErrorTimeout=null),A.render(),n=lu(),await uu(nf);let l=await(await ai())(document.body,iy(1,!1));n(),n=null;let c=su(l,{format:"png"});A.ws?.readyState===WebSocket.OPEN&&A.ws.send(JSON.stringify({type:"design-review-screenshot",data:{screenshot:c,width:l.width,height:l.height,logs:A.consoleLogs,url:window.location.href,timestamp:Date.now()}}))}catch(o){console.error("[GlobalDevBar] Design review failed:",o),n&&n(),A.designReviewInProgress=!1,A.render()}}function uy(A){A.sweetlinkConnected&&(A.ws?.readyState===WebSocket.OPEN&&A.ws.send(JSON.stringify({type:"check-api-key"})),qt(A),A.showDesignReviewConfirm=!0,A.render())}function cy(A){if(!A.apiKeyStatus?.pricing)return null;let n=window.innerWidth,o=window.innerHeight,l=Math.ceil(n*o/750),c=500,m=1500,g=l+c,{input:v,output:b}=A.apiKeyStatus.pricing,C=g/1e6*v,E=m/1e6*b,D=C+E;return{tokens:g+m,cost:D<.01?"<$0.01":`~$${D.toFixed(2)}`}}function dy(A){A.showDesignReviewConfirm=!1,A.apiKeyStatus=null,A.render()}function fy(A){A.showDesignReviewConfirm=!1,X9(A)}function kp(A,n){let o=A[n];qt(A),A[n]=!o,A.render()}function py(A){kp(A,"showOutlineModal")}function hy(A){kp(A,"showSchemaModal")}function my(A){kp(A,"showA11yModal")}function gy(A,n){if(A.savingA11yAudit)return;let o=Ys(n);cu(A,{type:"save-a11y",data:{markdown:o,url:window.location.href,title:document.title,timestamp:Date.now()},savingFlag:"savingA11yAudit",downloadFilename:"a11y-audit",downloadContent:o,downloadMimeType:"text/markdown",notificationKey:"a11y",notificationMessage:"a11y report downloaded"})}function vy(A){if(A.savingOutline)return;let n=YA(),o=hA(n);cu(A,{type:"save-outline",data:{outline:n,markdown:o,url:window.location.href,title:document.title,timestamp:Date.now()},savingFlag:"savingOutline",downloadFilename:"outline",downloadContent:o,downloadMimeType:"text/markdown",notificationKey:"outline",notificationMessage:"outline downloaded"})}function Lp(A){return A.length===0?"_No logs_":A.map(n=>`- **[${new Date(n.timestamp).toLocaleTimeString()}]** \`${n.level}\` ${n.message}`).join(`
|
|
453
463
|
`)}function wy(A,n){if(A.savingConsoleLogs)return;let o=Lp(n);cu(A,{type:"save-console-logs",data:{logs:n,markdown:o,url:window.location.href,title:document.title,timestamp:Date.now()},savingFlag:"savingConsoleLogs",downloadFilename:"console-logs",downloadContent:o,downloadMimeType:"text/markdown",notificationKey:"consoleLogs",notificationMessage:"console logs downloaded"})}function by(A){if(A.savingSchema)return;let n=JA(),o=Ws(n),l=js(),c=$A(n,{missingTags:o,favicons:l});cu(A,{type:"save-schema",data:{schema:n,markdown:c,url:window.location.href,title:document.title,timestamp:Date.now()},savingFlag:"savingSchema",downloadFilename:"schema",downloadContent:c,downloadMimeType:"text/markdown",notificationKey:"schema",notificationMessage:"schema downloaded"})}function oi(A,n,o){if(hf(o)){A.addSuccess(`${n} simulated`,o),A.addWarning(Yw());return}let l=o.endsWith("downloaded");A.addSuccess(l?`${n} downloaded!`:`${n} saved!`,l?void 0:o)}function Yn(A,n,o,l){let m={error:"error",warn:"warning",info:"info"}[n],g=A.consoleFilter===n,v=document.createElement("span");return v.className="devbar-badge",Object.assign(v.style,{display:"flex",alignItems:"center",justifyContent:"center",minWidth:"18px",height:"18px",padding:"0 5px",borderRadius:"9999px",backgroundColor:l,color:"#fff",fontSize:"0.625rem",fontWeight:"600",cursor:"pointer",boxShadow:g?`0 0 8px ${J(l,80)}`:"none"}),v.textContent=o>99?"99+":String(o),Cr(A,v,()=>`${o} console ${m}${o===1?"":"s"} (click to view)`),v.onclick=()=>{let b=A.consoleFilter===n?null:n;qt(A),A.consoleFilter=b,A.render()},v}function du(A,n){let o=document.createElement("button");o.type="button",o.setAttribute("aria-label","Screenshot");let l=A.copiedToClipboard||A.copiedPath||A.lastScreenshot,c=A.capturing,m=mA(A.options.saveLocation,A.sweetlinkConnected),g=m==="local"&&!A.sweetlinkConnected&&!l;return Zr(A,o,n,(v,b)=>{if(A.copiedToClipboard){b.addSuccess("Copied to clipboard!");return}if(A.copiedPath){b.addSuccess("Path copied to clipboard!");return}if(A.lastScreenshot){let C=A.lastScreenshot;if(hf(C)){oi(b,"Screenshot",C);return}if(C.endsWith("downloaded"))b.addSuccess("Screenshot downloaded!");else{b.addSuccess("Screenshot saved!",C);let D=document.createElement("div");Object.assign(D.style,{color:n,cursor:"pointer",fontSize:"0.625rem",marginTop:"6px",opacity:"0.8",transition:"opacity 150ms"}),D.textContent="copy path",D.onmouseenter=()=>{D.style.opacity="1"},D.onmouseleave=()=>{D.style.opacity="0.8"},D.onclick=async R=>{R.stopPropagation();try{await navigator.clipboard.writeText(C),D.textContent="\u2713 copied!",D.style.cursor="default",D.onclick=null}catch{D.textContent="\xD7 failed to copy",D.style.color=H.error}},v.appendChild(D)}return}if(b.addTitle("Screenshot"),b.addSectionHeader("Actions"),m==="local"&&!A.sweetlinkConnected)b.addShortcut("Shift+Click","Copy to clipboard"),b.addWarning("Sweetlink not connected. Switch save method to Auto or Download.");else{let C=m==="local"?"Save to file":"Download";b.addShortcut("Click",C),b.addShortcut("Shift+Click","Copy to clipboard"),b.addShortcut("Alt+Click","HiFi screenshot (pixel-perfect via daemon)"),b.addSectionHeader("Keyboard"),b.addShortcut("Cmd or Ctrl+Shift+S",C),b.addShortcut("Cmd or Ctrl+Shift+C","Copy")}}),Object.assign(o.style,{display:"flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",minWidth:"24px",minHeight:"24px",flexShrink:"0",borderRadius:"50%",border:"1px solid",borderColor:l?n:J(n,50),backgroundColor:l?J(n,20):"transparent",color:l?n:J(n,60),cursor:c?"not-allowed":"pointer",opacity:g?"0.4":"1",transition:"all 150ms"}),o.disabled=c,o.onclick=v=>{if(v.altKey){if(!A.ws||!A.sweetlinkConnected)return;A.ws.send(JSON.stringify({type:"hifi-screenshot"})),A.capturing=!0,A.render();return}A.lastScreenshot&&!v.shiftKey?sy(A,A.lastScreenshot):A.handleScreenshot(v.shiftKey)},A.copiedToClipboard||A.copiedPath||A.lastScreenshot?(o.textContent="\u2713",o.style.fontSize="0.6rem"):A.capturing?(o.textContent="...",o.style.fontSize="0.5rem"):o.appendChild(Nr("M19.844 7.938H7.938v11.905m0 11.113v11.906h11.905m23.019-11.906v11.906H30.956m11.906-23.018V7.938H30.956",{viewBox:"0 0 50.8 50.8",stroke:!0,strokeWidth:"4",children:[{type:"circle",cx:"25.4",cy:"25.4",r:"8.731"}]})),o}function By(A){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","AI Design Review");let o=!!A.designReviewError,l=A.designReviewInProgress||!!A.lastDesignReview||o,c=A.designReviewInProgress||!A.sweetlinkConnected,m=o?H.error:Pe.review;return Zr(A,n,m,(g,v)=>{if(A.designReviewInProgress){v.addProgress("AI Design Review in progress...");return}if(A.designReviewError){v.addError("Design review failed",A.designReviewError);return}if(A.lastDesignReview){oi(v,"Design review",A.lastDesignReview);return}v.addTitle("AI Design Review"),v.addDescription("Captures screenshot and sends to Claude for design analysis."),v.addSectionHeader("Requirements"),v.addShortcut("API Key","ANTHROPIC_API_KEY"),en()&&v.addWarning("Demo mode: no Claude request will be sent."),A.sweetlinkConnected||v.addWarning("Sweetlink not connected")}),Object.assign(n.style,Mr(m,l,c)),A.sweetlinkConnected||(n.style.opacity="0.5"),n.disabled=c,n.onclick=()=>uy(A),A.designReviewInProgress?(n.textContent="~",n.style.fontSize="0.5rem",n.style.animation="pulse 1s infinite"):A.designReviewError?(n.textContent="\xD7",n.style.fontSize="0.875rem",n.style.fontWeight="bold"):A.lastDesignReview?(n.textContent="v",n.style.fontSize="0.5rem"):n.appendChild(Nr("M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z",{fill:!0})),n}function yy(A){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Document Outline");let o=A.showOutlineModal||!!A.lastOutline;return Zr(A,n,Pe.outline,(l,c)=>{if(A.lastOutline){oi(c,"Outline",A.lastOutline);return}c.addTitle("Document Outline"),c.addDescription("View page heading structure and save as markdown."),en()&&c.addWarning("Demo mode: save actions return example paths only."),A.options.saveLocation==="local"&&!A.sweetlinkConnected&&c.addWarning("Sweetlink not connected. Switch save method to Auto or Download.")}),Object.assign(n.style,Mr(Pe.outline,o,!1)),n.onclick=()=>py(A),A.lastOutline?(n.textContent="v",n.style.fontSize="0.5rem"):n.appendChild(Nr("M3 4h18v2H3V4zm0 7h12v2H3v-2zm0 7h18v2H3v-2z",{fill:!0})),n}function Cy(A){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Page Schema");let o=A.showSchemaModal||!!A.lastSchema;return Zr(A,n,Pe.schema,(l,c)=>{if(A.lastSchema){oi(c,"Schema",A.lastSchema);return}c.addTitle("Page Schema"),c.addDescription("View JSON-LD, Open Graph, and other structured data."),en()&&c.addWarning("Demo mode: save actions return example paths only."),A.options.saveLocation==="local"&&!A.sweetlinkConnected&&c.addWarning("Sweetlink not connected. Switch save method to Auto or Download.")}),Object.assign(n.style,Mr(Pe.schema,o,!1)),n.onclick=()=>hy(A),A.lastSchema?(n.textContent="v",n.style.fontSize="0.5rem"):n.appendChild(Nr("M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z",{fill:!0})),n}function Ey(A){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Accessibility Audit");let o=A.showA11yModal||!!A.lastA11yAudit;return Zr(A,n,Pe.a11y,(l,c)=>{if(A.lastA11yAudit){oi(c,"A11y report",A.lastA11yAudit);return}c.addTitle("Accessibility Audit"),c.addDescription("Run axe-core audit to check WCAG compliance."),en()&&c.addWarning("Demo mode: save actions return example paths only."),A.options.saveLocation==="local"&&!A.sweetlinkConnected&&c.addWarning("Sweetlink not connected. Switch save method to Auto or Download.")}),n.addEventListener("mouseenter",()=>Rw(),{once:!0}),Object.assign(n.style,Mr(Pe.a11y,o,!1)),n.onclick=()=>my(A),A.lastA11yAudit?(n.textContent="v",n.style.fontSize="0.5rem"):n.appendChild(Nr("M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z",{fill:!0})),n}function xy(A){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Ruler");let o=A.rulerMode;return Zr(A,n,Pe.ruler,(l,c)=>{o?(c.addTitle("Ruler Mode Active"),c.addDescription("Click elements to pin measurements. Press Esc or click here to exit.")):(c.addTitle("Ruler"),c.addDescription("Measure element dimensions and positions on page."))}),Object.assign(n.style,Mr(Pe.ruler,o,!1)),n.onclick=()=>{A.rulerMode?(A.rulerMode=!1,A.rulerCleanup&&(A.rulerCleanup(),A.rulerCleanup=null)):(qt(A),A.rulerMode=!0,A.rulerCleanup=nb(A)),A.render()},o?(n.textContent="\u2716",n.style.fontSize="0.5rem"):n.appendChild(Nr("M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.4 2.4 0 0 1 0-3.4l2.6-2.6a2.4 2.4 0 0 1 3.4 0zM14.5 12.5l2-2M11.5 9.5l2-2M8.5 6.5l2-2M17.5 15.5l2-2",{stroke:!0,strokeWidth:"2"})),n}function Fy(A){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label",A.recordingActive?"Stop Recording":"Start Recording");let o=A.recordingActive;if(Zr(A,n,Pe.error,(l,c)=>{if(o){let m=A.recordingStartedAt?((Date.now()-A.recordingStartedAt)/1e3).toFixed(0):"0";c.addTitle(`Recording: ${m}s`),c.addShortcut("Click","Stop recording & open viewer")}else A.lastViewerPath?(en()?(c.addSuccess("Demo recording simulated",A.lastViewerPath),c.addWarning("Demo only: no recording file was written.")):c.addSuccess("Last session recorded"),c.addShortcut("Click","Start new recording"),c.addShortcut("Shift+Click","Open last viewer")):(c.addTitle("Session Recording"),c.addShortcut("Click","Start recording (video + actions)"),en()&&c.addWarning("Demo mode: no video or action manifest will be recorded."))}),Object.assign(n.style,{...Mr(ce.red,o,!1),borderColor:o?ce.red:J(ce.red,50),backgroundColor:o?J(ce.red,20):"transparent",color:o?ce.red:J(ce.red,60),...o&&{animation:"devbar-pulse 1.5s ease-in-out infinite"}}),n.onclick=l=>{if(l.shiftKey&&A.lastViewerPath&&!o){window.open(A.lastViewerPath,"_blank");return}if(!(!A.ws||!A.sweetlinkConnected))if(o){let c=window.open("about:blank","_blank");A.pendingViewerWindow=c,A.ws.send(JSON.stringify({type:"record-stop"})),A.recordingTimer&&clearInterval(A.recordingTimer),A.recordingActive=!1,A.recordingTimer=null,A.recordingStartedAt=null,A.render()}else A.ws.send(JSON.stringify({type:"record-start"})),A.recordingActive=!0,A.recordingStartedAt=Date.now(),A.recordingSessionId=null,A.recordingTimer=setInterval(()=>A.render(),1e3),A.render()},o){let l=document.createElement("span");Object.assign(l.style,{display:"block",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:ce.red}),n.appendChild(l)}else{let l=document.createElement("span");Object.assign(l.style,{display:"block",width:"8px",height:"8px",borderRadius:"50%",border:"2px solid currentColor"}),n.appendChild(l)}return n}function Dy(A){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label",A.demoActive?"Demo in progress":"Start Demo");let o=A.demoActive;return Zr(A,n,Pe.info,(l,c)=>{o?(c.addTitle(`Demo: "${A.demoTitle??"Untitled"}"`),c.addShortcut(`${A.demoSectionCount} sections`,""),c.addShortcut("Click","Add screenshot to demo")):(c.addTitle("Demo Document"),c.addShortcut("Click","Start demo (prompts for title)"),en()&&c.addWarning("Demo mode: no markdown document will be written."))}),Object.assign(n.style,{...Mr(Pe.info,o,!1)}),n.onclick=()=>{if(!(!A.ws||!A.sweetlinkConnected))if(o)A.ws.send(JSON.stringify({type:"demo-screenshot"})),A.demoSectionCount++,A.render();else{let l=prompt("Demo title:");if(!l)return;A.ws.send(JSON.stringify({type:"demo-init",data:{title:l}})),A.demoActive=!0,A.demoTitle=l,A.demoSectionCount=0,A.render()}},o?(n.textContent=String(A.demoSectionCount),n.style.fontSize="0.6rem"):n.appendChild(Nr("M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7M18.5 2.5a2.12 2.12 0 0 1 3 3L12 15l-4 1 1-4Z",{stroke:!0,strokeWidth:"2"})),n}function fu(A){let n=document.createElement("button");n.type="button",n.setAttribute("data-testid","devbar-settings-button"),n.setAttribute("aria-label","Settings"),Zr(A,n,H.textSecondary,(c,m)=>{m.addTitle("Settings"),m.addSectionHeader("Keyboard"),m.addShortcut("Cmd or Ctrl+Shift+M","Toggle compact mode")});let o=A.showSettingsPopover,l=H.textSecondary;return Object.assign(n.style,Mr(l,o,!1)),n.onclick=()=>{let c=A.showSettingsPopover;qt(A),A.showSettingsPopover=!c,A.render()},n.appendChild(Nr("M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",{stroke:!0,children:[{type:"circle",cx:"12",cy:"12",r:"3"}]})),n}function Qy(A){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label",A.compactMode?"Switch to expanded mode":"Switch to compact mode");let o=A.compactMode,{accentColor:l}=A.options,c=H.textSecondary;Object.assign(n.style,Mr(c,!1,!1)),n.style.borderColor=J(l,38),Cr(A,n,()=>o?"Expand (Cmd or Ctrl+Shift+M)":"Compact (Cmd or Ctrl+Shift+M)",{onEnter:()=>{n.style.borderColor=l,n.style.backgroundColor=J(l,13),n.style.color=c},onLeave:()=>{n.style.borderColor=J(l,38),n.style.backgroundColor="transparent",n.style.color=J(c,60)}}),n.onclick=()=>{A.toggleCompactMode()};let m=o?"9 18 15 12 9 6":"15 18 9 12 15 6";return n.appendChild(Nr("",{stroke:!0,children:[{type:"polyline",points:m}]})),n}function Sy(A,n=[]){if(!A.container)return;let{position:o,accentColor:l}=A.options,{errorCount:c,warningCount:m,infoCount:g}=A.getLogCounts(),v=oa[o]??oa["bottom-left"],b=A.container;n.length>0?b.dataset.devbarCustomControls="true":delete b.dataset.devbarCustomControls,A.resetPositionStyles(b),Object.assign(b.style,{position:"fixed",...v,zIndex:"9999",backgroundColor:"var(--devbar-color-bg-card)",border:`1px solid ${l}`,borderRadius:"20px",color:l,boxShadow:`${Bt.shadows.dropToolbar}, 0 0 0 1px ${J(l,10)}`,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",padding:"6px 10px",display:"flex",flexWrap:"wrap",alignItems:"center",gap:"8px",boxSizing:"border-box",maxWidth:o==="bottom-center"?"calc(100vw - 32px)":"calc(100vw - 96px)",minWidth:"0",fontFamily:ht,fontSize:"0.6875rem"});let C=Zs(A),E=C.querySelector(".devbar-conn-dot");if(Cr(A,C,()=>aa(A.sweetlinkConnected)),C.onclick=R=>{R.stopPropagation(),Fo(A,E),A.collapsed=!0,A.debug.state("Collapsed DevBar from compact mode"),A.render()},b.appendChild(C),c>0&&b.appendChild(Yn(A,"error",c,Pe.error)),m>0&&b.appendChild(Yn(A,"warn",m,Pe.warning)),g>0&&b.appendChild(Yn(A,"info",g,Pe.info)),A.options.showScreenshot&&b.appendChild(du(A,l)),b.appendChild(fu(A)),n.length>0)for(let R of n)b.appendChild(Do(R,l,A));let D=document.createElement("button");D.type="button",Object.assign(D.style,{display:"flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px",borderRadius:"50%",border:`1px solid ${J(l,38)}`,backgroundColor:"transparent",color:J(l,60),cursor:"pointer",fontSize:"0.5rem",transition:"all 150ms"}),D.textContent="\u27EB",Cr(A,D,()=>"Expand DevBar",{onEnter:()=>{D.style.backgroundColor=J(l,13),D.style.borderColor=l,D.style.color=l},onLeave:()=>{D.style.backgroundColor="transparent",D.style.borderColor=J(l,38),D.style.color=J(l,60)}}),D.onclick=()=>{A.toggleCompactMode()},b.appendChild(D)}function xa(A,n,o={}){let l=typeof window<"u"?window.location.href:"unknown",c=typeof window<"u"?`${window.innerWidth}x${window.innerHeight} @${window.devicePixelRatio||1}x`:"unknown",m=A.lastScreenshot??"not captured yet",g=o.artifactPath??"not saved yet",v=`Run pnpm sweetlink inspect --url ${l} before acting to refresh @e refs.`,b=[`# ${n}`,`- URL: ${l}`,`- Viewport: ${c}`,`- Screenshot: ${m}`,`- Artifact: ${g}`,`- Refs: ${v}`];return o.observation&&b.push(`- Observation: ${o.observation}`),{title:"Agent Context",items:[{label:"URL",value:l},{label:"Viewport",value:c},{label:"Screenshot",value:m},{label:"Artifact",value:g},{label:"Refs",value:v}],copyText:b.join(`
|
|
454
|
-
`)}}function Uy(A,n){let o=A.consoleFilter;if(!o)return;let l=n.getLogs().filter(k=>k.level===o),m={error:Pe.error,warn:Pe.warning,info:Pe.info}[o],v={error:"Errors",warn:"Warnings",info:"Info"}[o],b=()=>{A.consoleFilter=null,A.render()},C=Ln(b),E=Hn(m,`Console ${v}`),D=rn({color:m,title:`Console ${v} (${l.length})`,onClose:b,onCopyMd:async()=>{await navigator.clipboard.writeText(Lp(l))},onSave:()=>wy(A,l),onClear:()=>A.clearConsoleLogs(),sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation,isSaving:A.savingConsoleLogs,savedPath:A.lastConsoleLogs,evidenceContext:xa(A,`Console ${v}`,{artifactPath:A.lastConsoleLogs,observation:`${l.length} ${o} log${l.length===1?"":"s"} in the current filter.`})});E.appendChild(D);let R=nn();l.length===0?R.appendChild(gA(`No ${o}s recorded`)):Y9(R,l,m),E.appendChild(R),C.appendChild(E),A.overlayElement=C,document.body.appendChild(C),Mn(E)}function Y9(A,n,o){n.forEach((l,c)=>{let m=document.createElement("div");Object.assign(m.style,{padding:"8px 14px",borderBottom:c<n.length-1?`1px solid ${H.borderSubtle}`:"none"});let g=document.createElement("span");Object.assign(g.style,{color:H.textMuted,fontSize:"0.625rem",marginRight:"8px"}),g.textContent=new Date(l.timestamp).toLocaleTimeString(),m.appendChild(g);let v=document.createElement("span");Object.assign(v.style,{color:o,fontSize:"0.6875rem",wordBreak:"break-word",whiteSpace:"pre-wrap"}),v.textContent=l.message,m.appendChild(v),A.appendChild(m)})}function J9(A,n,o){if(A.lastDotPosition&&!o){let m=n.endsWith("right"),g;return m?g=n.startsWith("top")?{top:"20px",right:"16px"}:{bottom:"20px",right:"16px"}:g={top:`${A.lastDotPosition.top-15}px`,left:`${A.lastDotPosition.left-19}px`},A.lastDotPosition=null,g}return oa[n]??oa["bottom-left"]}function $9(A,n,o,l,c){A.resetPositionStyles(n);let m=A.options.sizeOverrides,g="fit-content",v="auto",b=c?"calc(100vw - 32px)":"calc(100vw - 96px)";Object.assign(n.style,{position:"fixed",...o,zIndex:"9999",backgroundColor:"var(--devbar-color-bg-card)",border:`1px solid ${l}`,borderRadius:"12px",color:l,boxShadow:`${Bt.shadows.dropToolbar}, 0 0 0 1px ${J(l,10)}`,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",boxSizing:"border-box",width:m?.width??g,maxWidth:m?.maxWidth??b,minWidth:m?.minWidth??v,cursor:"default"}),n.ondblclick=C=>{if(C.target?.closest("button, input, select, a"))return;let D=n.querySelector(".devbar-status span span");D&&Fo(A,D),A.collapsed=!0,A.debug.state("Collapsed DevBar (double-click)"),A.render()}}function Z9(){let A=document.createElement("div");return A.className="devbar-main",Object.assign(A.style,{display:"flex",alignItems:"center",alignContent:"flex-start",justifyContent:"flex-start",gap:"0.5rem",padding:"0.5rem 0.75rem",minWidth:"0",boxSizing:"border-box",fontFamily:ht,fontSize:"0.6875rem",lineHeight:"1rem"}),A}function e7(A){let n=Zs(A);return Cr(A,n,()=>aa(A.sweetlinkConnected,"click to minimize")),n.onclick=o=>{o.stopPropagation(),Fo(A,n),A.collapsed=!0,A.debug.state("Collapsed DevBar (connection dot click)"),A.render()},n}function t7(A,n){let o=document.createElement("div");return o.className="devbar-info",Object.assign(o.style,{display:"flex",alignItems:"center",gap:"0.5rem",textTransform:"uppercase",letterSpacing:"0.05em",flexShrink:"1",minWidth:"0",overflow:"visible"}),n.breakpoint&&A.breakpointInfo&&r7(A,o),A.perfStats&&A7(A,o,n),o}function r7(A,n){if(!A.breakpointInfo)return;let o=A.breakpointInfo.tailwindBreakpoint,l=ta[o],c=document.createElement("span");c.className="devbar-item",Object.assign(c.style,{opacity:"0.9",cursor:"default"}),zw(A,c,o,A.breakpointInfo.dimensions,l?.label||"");let m=o;o!=="base"&&(m=o==="sm"?`${o} - ${A.breakpointInfo.dimensions.split("x")[0]}`:`${o} - ${A.breakpointInfo.dimensions}`),c.textContent=m,n.appendChild(c)}function n7(A){return{fcp:{label:"FCP",value:A.fcp,title:"First Contentful Paint (FCP)",description:"Time until the first text or image renders on screen.",thresholds:{good:"<1.8s",needsWork:"1.8-3s",poor:">3s"}},lcp:{label:"LCP",value:A.lcp,title:"Largest Contentful Paint (LCP)",description:"Time until the largest visible element renders on screen.",thresholds:{good:"<2.5s",needsWork:"2.5-4s",poor:">4s"}},cls:{label:"CLS",value:A.cls,title:"Cumulative Layout Shift (CLS)",description:"Visual stability score. Higher values mean more unexpected layout shifts.",thresholds:{good:"<0.1",needsWork:"0.1-0.25",poor:">0.25"}},inp:{label:"INP",value:A.inp,title:"Interaction to Next Paint (INP)",description:"Responsiveness to user input. Measures the longest interaction delay.",thresholds:{good:"<200ms",needsWork:"200-500ms",poor:">500ms"}},pageSize:{label:"",value:A.totalSize,title:"Total Page Size",description:"Compressed/transferred size including HTML, CSS, JS, images, and other resources."}}}function A7(A,n,o){if(!A.perfStats)return;let{visible:l,hidden:c}=Hw(A),m=n7(A.perfStats),g=()=>{let b=document.createElement("span");b.style.opacity="0.4",b.textContent="|",n.appendChild(b)};for(let b of l){if(!o[b])continue;let C=m[b];g();let E=document.createElement("span");E.className="devbar-item",Object.assign(E.style,{opacity:b==="pageSize"?"0.7":"0.85",cursor:"default"}),E.textContent=C.label?`${C.label} ${C.value}`:C.value,C.thresholds?qw(A,E,C.title,C.description,C.thresholds):Xw(A,E,C.title,C.description),n.appendChild(E)}let v=c.filter(b=>o[b]);v.length>0&&(g(),a7(A,n,v,m))}function a7(A,n,o,l){let c=document.createElement("span");c.className="devbar-item devbar-clickable",Object.assign(c.style,{opacity:"0.7",cursor:"pointer",padding:"0 2px"}),c.textContent="\xB7\xB7\xB7",jw(A,c,m=>{Aa(A,m,"More Metrics");let g=document.createElement("div");Object.assign(g.style,{display:"flex",flexDirection:"column",gap:"6px",marginTop:"8px"});for(let v of o){let b=l[v],C=document.createElement("div");Object.assign(C.style,{display:"flex",justifyContent:"space-between",gap:"12px"});let E=document.createElement("span");Object.assign(E.style,{color:H.textMuted}),E.textContent=b.title.split("(")[0].trim();let D=document.createElement("span");Object.assign(D.style,{color:H.text,fontWeight:"500"}),D.textContent=b.value,C.appendChild(E),C.appendChild(D),g.appendChild(C)}m.appendChild(g)}),n.appendChild(c)}function o7(A,n,o,l,c,m){let g=e7(A),v=document.createElement("div");v.className="devbar-status",Object.assign(v.style,{display:"flex",alignItems:"center",gap:"0.5rem",flexWrap:"nowrap",flexShrink:"1",minWidth:"0"}),v.appendChild(g);let b=t7(A,n);return v.appendChild(b),o&&(l>0&&v.appendChild(Yn(A,"error",l,Pe.error)),c>0&&v.appendChild(Yn(A,"warn",c,Pe.warning)),m>0&&v.appendChild(Yn(A,"info",m,Pe.info))),v}function i7(A,n,o){let l=document.createElement("div");return l.className="devbar-actions",n&&l.appendChild(du(A,o)),l.appendChild(By(A)),l.appendChild(yy(A)),l.appendChild(Cy(A)),l.appendChild(Ey(A)),l.appendChild(xy(A)),l.appendChild(Fy(A)),l.appendChild(Dy(A)),l.appendChild(fu(A)),l.appendChild(Qy(A)),l}function s7(A,n,o,l){if(n.length===0)return null;let c=document.createElement("div");c.className=A,Object.assign(c.style,{display:"flex",flexWrap:"wrap",alignItems:"center",alignContent:"flex-start",justifyContent:"flex-start",gap:"0.5rem",padding:"0 0.75rem 0.5rem 0.75rem",borderTop:`1px solid ${J(o,19)}`,marginTop:"0",paddingTop:"0.5rem",width:"100%",maxWidth:"100%",minWidth:"0",overflow:"visible",boxSizing:"border-box",fontFamily:ht,fontSize:"0.6875rem"});for(let m of n)c.appendChild(Do(m,o,l));return c}function l7(A,n,o){let l=A.filter(m=>!m.group),c=s7("devbar-custom-controls devbar-custom-controls-inline",l,n,o);return c?(Object.assign(c.style,{padding:"0",borderTop:"0",width:"auto",flex:"0 1 auto",overflow:"hidden"}),c):null}function u7(A,n,o){let l=A.filter(g=>g.group);if(l.length===0)return null;let c=document.createElement("div");c.className="devbar-custom-controls devbar-custom-controls-row",Object.assign(c.style,{display:"flex",flexWrap:"wrap",alignItems:"center",alignContent:"flex-start",justifyContent:"flex-start",gap:"0.5rem",padding:"0 0.75rem 0.5rem 0.75rem",borderTop:`1px solid ${J(n,19)}`,marginTop:"0",paddingTop:"0.5rem",width:"100%",maxWidth:"100%",minWidth:"0",overflow:"visible",boxSizing:"border-box",fontFamily:ht,fontSize:"0.6875rem"});let m=new Map;for(let g of l){if(!g.group)continue;let v=m.get(g.group)??[];v.push(g),m.set(g.group,v)}for(let[g,v]of m){let b=document.createElement("span");b.className="devbar-custom-group-label",Object.assign(b.style,{color:J(n,50),fontSize:"0.5625rem",textTransform:"uppercase",letterSpacing:"0.05em",flex:"0 1 auto",minWidth:"0",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginLeft:[...m.keys()].indexOf(g)>0?"0.25rem":"0"}),b.textContent=g,c.appendChild(b);for(let C of v)c.appendChild(Do(C,n,o))}return c}function Ty(A,n){if(!A.container)return;let{position:o,accentColor:l,showMetrics:c,showScreenshot:m,showConsoleBadges:g}=A.options,{errorCount:v,warningCount:b,infoCount:C}=A.getLogCounts(),E=o==="bottom-center",D=A.container;n.length>0?D.dataset.devbarCustomControls="true":delete D.dataset.devbarCustomControls;let R=J9(A,o,E);$9(A,D,R,l,E);let k=Z9(),G=o7(A,c,g,v,b,C);k.appendChild(G);let W=l7(n,l,A);W&&k.appendChild(W);let q=i7(A,m,l);k.appendChild(q),D.appendChild(k);let ae=u7(n,l,A);ae&&D.appendChild(ae)}function Ry(A){let n=YA(),o=Pe.outline,l=()=>{A.showOutlineModal=!1,A.render()},c=Ln(l),m=Hn(o,"Document Outline"),g=rn({color:o,title:"Document Outline",onClose:l,onCopyMd:async()=>{let b=hA(n);await navigator.clipboard.writeText(b)},onSave:()=>vy(A),sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation,isSaving:A.savingOutline,savedPath:A.lastOutline,evidenceContext:xa(A,"Document Outline",{artifactPath:A.lastOutline,observation:`${n.length} top-level semantic node${n.length===1?"":"s"} found.`})});m.appendChild(g);let v=nn();n.length===0?v.appendChild(gA("No semantic elements found in this document")):Oy(n,v,0,{lastHeadingLevel:0}),m.appendChild(v),c.appendChild(m),A.overlayElement=c,document.body.appendChild(c),Mn(m)}function Oy(A,n,o,l){for(let c of A){let m=c.category==="heading"&&c.level>0,g=m&&c.level>l.lastHeadingLevel+1;m&&(l.lastHeadingLevel=c.level);let v=document.createElement("div");if(Object.assign(v.style,{padding:`4px 0 4px ${o*16}px`}),g){let R=document.createElement("span");Object.assign(R.style,{color:H.error,fontSize:"0.625rem",marginRight:"4px"}),R.textContent="\u26A0",R.title=`Heading level skipped (expected h${c.level-1} or higher before h${c.level})`,v.appendChild(R)}let b=document.createElement("span"),C=af[c.category||"other"]||af.other;if(Object.assign(b.style,{color:g?H.error:C,fontSize:"0.6875rem",fontWeight:"500"}),b.textContent=`<${c.tagName}>`,v.appendChild(b),c.category){let R=document.createElement("span");Object.assign(R.style,{color:H.textMuted,fontSize:"0.625rem",marginLeft:"6px"}),R.textContent=`[${c.category}]`,v.appendChild(R)}let E=document.createElement("span");Object.assign(E.style,{color:H.textSecondary,fontSize:"0.6875rem",marginLeft:"8px"});let D=c.text.length>60?`${c.text.slice(0,60)}...`:c.text;if(E.textContent=D,v.appendChild(E),c.id){let R=document.createElement("span");Object.assign(R.style,{color:H.textSecondary,fontSize:"0.625rem",marginLeft:"6px"}),R.textContent=`#${c.id}`,v.appendChild(R)}n.appendChild(v),c.children.length>0&&Oy(c.children,n,o+1,l)}}function ky(A){let n=JA(),o=Pe.schema,l=()=>{A.showSchemaModal=!1,A.render()},c=Ln(l),m=Hn(o,"Page Schema"),g=Ws(n),v=js(),b=rn({color:o,title:"Page Schema",onClose:l,onCopyMd:async()=>{let D=$A(n,{missingTags:g,favicons:v});await navigator.clipboard.writeText(D)},onSave:()=>by(A),sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation,isSaving:A.savingSchema,savedPath:A.lastSchema,evidenceContext:xa(A,"Page Schema",{artifactPath:A.lastSchema,observation:g.length?`${g.length} recommended metadata item${g.length===1?"":"s"} missing.`:"Schema evidence captured for this page."})});m.appendChild(b);let C=nn();n.jsonLd.length>0||Object.keys(n.openGraph).length>0||Object.keys(n.twitter).length>0||Object.keys(n.metaTags).length>0||v.length>0||g.length>0?(g.length>0&&v7(C,g),pu(C,"Open Graph",n.openGraph,H.info),pu(C,"Twitter Cards",n.twitter,H.cyan),v.length>0&&m7(C,v),pu(C,"JSON-LD",n.jsonLd,o),pu(C,"Meta Tags",n.metaTags,H.textMuted)):C.appendChild(gA("No structured data found on this page")),m.appendChild(C),c.appendChild(m),A.overlayElement=c,document.body.appendChild(c),Mn(m)}function Mp(A,n,o,l){let c=document.createElement("div");Object.assign(c.style,{display:"flex",alignItems:"center",gap:"8px",marginBottom:"10px",paddingBottom:"6px",borderBottom:`1px solid ${J(o,19)}`});let m=document.createElement("h3");Object.assign(m.style,{color:o,fontSize:"0.8125rem",fontWeight:"600",margin:"0"}),m.textContent=n,c.appendChild(m);let g=document.createElement("span");Object.assign(g.style,{color:J(o,80),fontSize:"0.5625rem",backgroundColor:J(o,9),padding:"1px 6px",borderRadius:"8px",letterSpacing:"0.03em"}),g.textContent=String(l),c.appendChild(g),A.appendChild(c)}function pu(A,n,o,l){let c=Array.isArray(o)?o.length:Object.keys(o).length;if(c===0)return;let m=document.createElement("div");m.style.marginBottom="20px",Mp(m,n,l,c),Array.isArray(o)?c7(m,o,l):f7(m,o),A.appendChild(m)}function c7(A,n,o){n.forEach((l,c)=>{let m=document.createElement("div");m.style.marginBottom="10px";let g=l,v=typeof g?.["@type"]=="string"?g["@type"]:null,b=document.createElement("div");Object.assign(b.style,{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"});let C=document.createElement("span");if(Object.assign(C.style,{color:H.textSecondary,fontSize:"0.6875rem"}),C.textContent=`Schema ${c+1}`,b.appendChild(C),v){let D=document.createElement("span");Object.assign(D.style,{color:J(o,80),fontSize:"0.5625rem",backgroundColor:J(o,8),border:`1px solid ${J(o,15)}`,padding:"0 5px",borderRadius:"3px"}),D.textContent=v,b.appendChild(D)}m.appendChild(b);let E=document.createElement("pre");Object.assign(E.style,{backgroundColor:"rgba(0, 0, 0, 0.25)",borderRadius:"4px",borderLeft:`2px solid ${J(o,31)}`,padding:"10px 10px 10px 12px",fontSize:"0.625rem",margin:"0",whiteSpace:"pre-wrap",wordBreak:"break-word"}),d7(E,JSON.stringify(l,null,2)),m.appendChild(E),A.appendChild(m)})}function d7(A,n){let o={key:H.primary,string:H.warning,number:H.purple,boolean:H.info,nullVal:H.error,punct:H.textMuted},l=/("(?:\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*")(\s*:)?|(\btrue\b|\bfalse\b)|(\bnull\b)|(-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)|([{}[\],])|(\s+)/g;for(let c of n.matchAll(l)){let[,m,g,v,b,C,E,D]=c;if(D)A.appendChild(document.createTextNode(D));else if(m!==void 0){let R=document.createElement("span");if(R.style.color=g?o.key:o.string,R.textContent=m,A.appendChild(R),g){let k=document.createElement("span");k.style.color=o.punct,k.textContent=":",A.appendChild(k)}}else if(v){let R=document.createElement("span");R.style.color=o.boolean,R.textContent=v,A.appendChild(R)}else if(b){let R=document.createElement("span");R.style.color=o.nullVal,R.textContent=b,A.appendChild(R)}else if(C){let R=document.createElement("span");R.style.color=o.number,R.textContent=C,A.appendChild(R)}else if(E){let R=document.createElement("span");R.style.color=o.punct,R.textContent=E,A.appendChild(R)}}}function f7(A,n){Object.entries(n).forEach(([l,c],m)=>{let g=dw(l),v=document.createElement("div");Object.assign(v.style,{display:"flex",padding:g?"6px 8px":"3px 8px",alignItems:"flex-start",borderRadius:"3px",backgroundColor:m%2===0?"rgba(255, 255, 255, 0.02)":"transparent"});let b=document.createElement("span");if(Object.assign(b.style,{color:H.textSecondary,fontSize:"0.6875rem",width:"120px",minWidth:"120px",maxWidth:"120px",flexShrink:"0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",paddingTop:g?"2px":"0"}),b.textContent=l,l.length>18&&(b.title=l),v.appendChild(b),g&&c){let C=document.createElement("div");Object.assign(C.style,{flex:"1",minWidth:"0"});let E=document.createElement("div");Object.assign(E.style,{display:"inline-block",padding:"4px",backgroundColor:"rgba(0, 0, 0, 0.2)",border:"1px solid rgba(255, 255, 255, 0.06)",borderRadius:"4px",marginBottom:"4px",minHeight:"60px",minWidth:"80px"});let D=document.createElement("img");Object.assign(D.style,{width:"200px",height:"120px",objectFit:"contain",borderRadius:"2px",display:"block"}),D.src=c,D.alt=l,D.onerror=()=>{E.style.display="none"},D.onload=()=>{D.naturalWidth&&(R.textContent=`${D.naturalWidth}\xD7${D.naturalHeight}`)},E.appendChild(D),C.appendChild(E);let R=document.createElement("div");Object.assign(R.style,{color:H.textMuted,fontSize:"0.5625rem",minHeight:"0.75rem",letterSpacing:"0.02em"}),C.appendChild(R);let k=document.createElement("div");Object.assign(k.style,{color:H.textMuted,fontSize:"0.5625rem",wordBreak:"break-all",opacity:"0.7"}),k.textContent=c,C.appendChild(k),v.appendChild(C)}else{let C=document.createElement("span");Object.assign(C.style,{color:H.text,fontSize:"0.6875rem",flex:"1",wordBreak:"break-word",whiteSpace:"pre-wrap",opacity:"0.85"}),C.textContent=String(c),v.appendChild(C)}A.appendChild(v)})}function p7(A,n){let o=parseInt(n||"",10);return A.includes("apple")?{text:"Apple home screen",color:H.info}:n==="any"||A.includes("svg")?{text:"Scalable (any)",color:H.cyan}:o>=192?{text:"Android / PWA",color:H.primary}:o>=48?{text:"Taskbar / shortcut",color:H.purple}:o>0?{text:"Browser tab",color:H.textSecondary}:{text:"General",color:H.textMuted}}function h7(A,n){let o=p7(A.label,A.size),l=document.createElement("div");Object.assign(l.style,{display:"flex",alignItems:"center",padding:"6px 8px",gap:"10px",borderRadius:"3px",backgroundColor:n%2===0?"rgba(255, 255, 255, 0.02)":"transparent"});let c=document.createElement("div");Object.assign(c.style,{width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.25)",border:"1px solid rgba(255, 255, 255, 0.06)",borderRadius:"4px",flexShrink:"0"});let m=document.createElement("img");Object.assign(m.style,{width:"22px",height:"22px",objectFit:"contain"}),m.src=A.url,m.alt=A.label,m.onerror=()=>{c.style.opacity="0.3"},c.appendChild(m),l.appendChild(c);let g=document.createElement("div");Object.assign(g.style,{flex:"1",minWidth:"0",display:"flex",flexDirection:"column",gap:"2px"});let v=document.createElement("div");Object.assign(v.style,{display:"flex",alignItems:"center",gap:"6px"});let b=document.createElement("span");Object.assign(b.style,{color:H.text,fontSize:"0.6875rem",fontWeight:"500",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),b.textContent=A.label,A.label.length>24&&(b.title=A.label),v.appendChild(b);let C=document.createElement("span");Object.assign(C.style,{color:o.color,fontSize:"0.5rem",backgroundColor:J(o.color,7),padding:"1px 6px",borderRadius:"6px",letterSpacing:"0.03em",whiteSpace:"nowrap",flexShrink:"0"}),C.textContent=o.text,v.appendChild(C),g.appendChild(v);let E=document.createElement("div");if(Object.assign(E.style,{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.5625rem",color:H.textMuted}),A.size){let G=document.createElement("span");G.textContent=A.size,G.style.opacity="0.8",E.appendChild(G)}let D=document.createElement("span");D.style.letterSpacing="0.02em",E.appendChild(D),m.onload=()=>{if(m.naturalWidth){let G=`${m.naturalWidth}\xD7${m.naturalHeight}`;A.size?D.textContent=`\u2192 ${G}`:D.textContent=G}};let R=document.createElement("span");R.textContent="\xB7",R.style.opacity="0.4",E.appendChild(R);let k=document.createElement("span");return Object.assign(k.style,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",opacity:"0.6"}),k.textContent=A.url,k.title=A.url,E.appendChild(k),g.appendChild(E),l.appendChild(g),l}function m7(A,n){let o=H.purple,l=document.createElement("div");l.style.marginBottom="20px",Mp(l,"Favicons",o,n.length),n.forEach((c,m)=>{l.appendChild(h7(c,m))}),A.appendChild(l)}function Iy(A,n){let o=document.createElement("span");return Object.assign(o.style,{color:n,fontSize:"0.5625rem",backgroundColor:J(n,8),padding:"2px 8px",borderRadius:"8px",letterSpacing:"0.03em"}),o.textContent=A,o}function g7(A,n){let o=document.createElement("div");return Object.assign(o.style,{display:"flex",alignItems:"center",padding:"4px 8px",gap:"8px",borderRadius:"3px",backgroundColor:A%2===0?"rgba(255, 255, 255, 0.02)":"transparent",...n?{borderLeft:`2px solid ${J(n,25)}`}:{}}),o}function Hp(A,n){let o=document.createElement("span");return Object.assign(o.style,n),o.textContent=A,o}function v7(A,n){let o=document.createElement("div");o.style.marginBottom="20px";let l=n.filter(v=>v.severity==="error").length,c=n.length-l,g=l>0?H.error:H.warning;if(Mp(o,"Missing Tags",g,n.length),l>0||c>0){let v=document.createElement("div");Object.assign(v.style,{display:"flex",gap:"8px",marginBottom:"8px"}),l>0&&v.appendChild(Iy(`${l} error${l>1?"s":""}`,H.error)),c>0&&v.appendChild(Iy(`${c} warning${c>1?"s":""}`,H.warning)),o.appendChild(v)}n.forEach((v,b)=>{let C=v.severity==="error",E=C?H.error:H.warning,D=g7(b,E),R=Hp(C?"\u2718":"\u26A0",{fontSize:"0.625rem",flexShrink:"0",width:"14px",textAlign:"center",color:E});D.appendChild(R),D.appendChild(Hp(v.tag,{color:H.text,fontSize:"0.6875rem",width:"120px",minWidth:"120px",flexShrink:"0",fontWeight:"500"})),D.appendChild(Hp(v.hint,{color:H.textMuted,fontSize:"0.6875rem",flex:"1",opacity:"0.85"})),o.appendChild(D)}),A.appendChild(o)}function Ly(A){let n=Pe.a11y,o=()=>{A.showA11yModal=!1,A.render()},l=Ln(o),c=Hn(n,"Accessibility Audit");w7(c,n,o,A),l.appendChild(c),A.overlayElement=l,document.body.appendChild(l),Mn(c),Xs().then(m=>{if(!A.showA11yModal)return;let g=Ys(m);vf(c);let v=m.violations.length,b=v===0?"Accessibility Audit \u2014 No Issues":`Accessibility Audit \u2014 ${v} Violation${v===1?"":"s"}`,C=rn({color:n,title:b,onClose:o,onCopyMd:async()=>{await navigator.clipboard.writeText(g)},onSave:()=>gy(A,m),sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation,isSaving:A.savingA11yAudit,savedPath:A.lastA11yAudit,evidenceContext:xa(A,b,{artifactPath:A.lastA11yAudit,observation:v===0?`${m.passes.length} axe rule${m.passes.length===1?"":"s"} passed.`:`${v} accessibility violation${v===1?"":"s"} found.`})});c.appendChild(C);let E=nn();b7(E,m,n),c.appendChild(E)}).catch(m=>{if(!A.showA11yModal)return;vf(c);let g=rn({color:H.error,title:"Accessibility Audit \u2014 Error",onClose:o,onCopyMd:async()=>{},sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation});c.appendChild(g);let v=nn();v.appendChild(sa(H.error,"Audit Failed",`${m instanceof Error?m.message:"Unknown error"}`)),c.appendChild(v)})}function w7(A,n,o,l){let c=nn(),m=document.createElement("div");Object.assign(m.style,{textAlign:"center",padding:"40px",color:H.textSecondary,fontSize:"0.875rem"}),m.textContent="Running accessibility audit...",m.style.animation="pulse 1.5s ease-in-out infinite",c.appendChild(m);let g=rn({color:n,title:"Accessibility Audit",onClose:o,onCopyMd:async()=>{},sweetlinkConnected:l.sweetlinkConnected,saveLocation:l.options.saveLocation});A.appendChild(g),A.appendChild(c)}function b7(A,n,o){if(B7(A,n,o),n.violations.length===0){let l=document.createElement("div");if(Object.assign(l.style,{textAlign:"center",padding:"40px",color:H.primary,fontSize:"0.875rem"}),l.textContent="No accessibility violations found!",A.appendChild(l),n.passes.length>0){let c=document.createElement("div");Object.assign(c.style,{textAlign:"center",color:H.textMuted,fontSize:"0.75rem",marginTop:"8px"}),c.textContent=`${n.passes.length} rules passed`,A.appendChild(c)}}else{let l=uf(n.violations),c=document.createElement("div");Object.assign(c.style,{display:"flex",gap:"12px",marginBottom:"16px",padding:"10px 12px",backgroundColor:J(o,6),border:`1px solid ${J(o,19)}`,borderRadius:"6px",flexWrap:"wrap"});for(let g of["critical","serious","moderate","minor"]){if(l[g]===0)continue;let v=document.createElement("span"),b=df(g);Object.assign(v.style,{display:"inline-flex",alignItems:"center",gap:"4px",fontSize:"0.6875rem",fontWeight:"600",color:b});let C=document.createElement("span");Object.assign(C.style,{width:"6px",height:"6px",borderRadius:"50%",backgroundColor:b}),v.appendChild(C),v.appendChild(document.createTextNode(`${l[g]} ${g}`)),c.appendChild(v)}A.appendChild(c);let m=cf(n.violations);for(let[g,v]of m)v.length!==0&&C7(A,g,v)}}function B7(A,n,o){let l=[`${n.passes.length} axe rule${n.passes.length===1?"":"s"} passed`,`${n.violations.length} violation${n.violations.length===1?"":"s"} found`,"current DOM, focus semantics, names, landmarks, forms, and color contrast where browser APIs expose enough paint data"];A.appendChild(sa(o,"What was checked",l.join(" \xB7 ")))}function _y(A){let n=document.createElement("div");return Object.assign(n.style,{padding:"3px 6px",marginBottom:"2px",backgroundColor:"rgba(0,0,0,0.2)",borderRadius:"3px",fontSize:"0.625rem",color:H.textSecondary,fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),n.textContent=A.html.length>100?`${A.html.slice(0,100)}...`:A.html,n.title=A.html,n}function y7(A,n){let o=document.createElement("div");Object.assign(o.style,{marginBottom:"12px",padding:"10px 12px",backgroundColor:J(n,3),border:`1px solid ${J(n,13)}`,borderRadius:"6px"});let l=document.createElement("div");Object.assign(l.style,{color:n,fontSize:"0.6875rem",fontWeight:"600",marginBottom:"4px"}),l.textContent=A.id,o.appendChild(l);let c=document.createElement("div");Object.assign(c.style,{color:H.text,fontSize:"0.75rem",marginBottom:"4px"}),c.textContent=A.help,o.appendChild(c);let m=document.createElement("div");Object.assign(m.style,{color:H.textSecondary,fontSize:"0.6875rem",marginBottom:"6px"}),m.textContent=A.description,o.appendChild(m);let g=document.createElement("div");Object.assign(g.style,{color:H.textMuted,fontSize:"0.625rem",marginBottom:"4px"}),g.textContent=`${A.nodes.length} element${A.nodes.length===1?"":"s"} affected`,o.appendChild(g);let v=document.createElement("div");Object.assign(v.style,{marginTop:"6px"});let b=A.nodes.slice(0,3);for(let C of b)v.appendChild(_y(C));if(A.nodes.length>3){let C=document.createElement("button");Object.assign(C.style,{background:"none",border:"none",color:n,fontSize:"0.625rem",cursor:"pointer",padding:"2px 0",fontFamily:ht}),C.textContent=`+ ${A.nodes.length-3} more`,C.onclick=()=>{C.remove();for(let E of A.nodes.slice(3))v.appendChild(_y(E))},v.appendChild(C)}return o.appendChild(v),o}function C7(A,n,o){let l=df(n),c=document.createElement("div");c.style.marginBottom="20px";let m=document.createElement("h3");Object.assign(m.style,{color:l,fontSize:"0.8125rem",fontWeight:"600",marginBottom:"10px",borderBottom:`1px solid ${J(l,25)}`,paddingBottom:"6px",textTransform:"capitalize"}),m.textContent=`${n} (${o.length})`,c.appendChild(m);for(let g of o)c.appendChild(y7(g,l));A.appendChild(c)}function Hy(A){let n=Pe.review,o=()=>dy(A),l=Ln(o),c=Hn(n,"AI Design Review");c.style.maxWidth="450px",c.appendChild(rn({color:n,title:"AI Design Review",onClose:o}));let m=nn();if(Object.assign(m.style,{color:H.text,fontSize:"0.8125rem",lineHeight:"1.6"}),A.apiKeyStatus===null?m.appendChild(gA("Checking API key configuration...")):A.apiKeyStatus.configured?m.appendChild(x7(A)):m.appendChild(E7()),c.appendChild(m),A.apiKeyStatus?.configured){let g=document.createElement("div");Object.assign(g.style,{display:"flex",justifyContent:"flex-end",gap:"10px",padding:"14px 18px",borderTop:`1px solid ${H.border}`});let v=tn({color:n,text:"Run Review",padding:"8px 16px"});v.style.backgroundColor=J(n,13),v.onclick=()=>fy(A),g.appendChild(v),c.appendChild(g)}l.appendChild(c),A.overlayElement=l,document.body.appendChild(l),Mn(c)}function E7(){let A=document.createElement("div");A.appendChild(sa(H.error,"API Key Not Configured","The ANTHROPIC_API_KEY environment variable is not set."));let n=document.createElement("div");Object.assign(n.style,{marginBottom:"12px"});let o=document.createElement("div");return Object.assign(o.style,{color:H.textSecondary,fontWeight:"600",marginBottom:"8px"}),o.textContent="To configure:",n.appendChild(o),[{text:"1. Get an API key from console.anthropic.com",highlight:!1},{text:"2. Add to your .env file:",highlight:!1},{text:" ANTHROPIC_API_KEY=sk-ant-...",highlight:!0},{text:"3. Restart your dev server",highlight:!1}].forEach(({text:c,highlight:m})=>{let g=document.createElement("div");Object.assign(g.style,{color:m?H.primary:H.textMuted,fontSize:"0.75rem",marginBottom:"4px",fontFamily:ht}),g.textContent=c,n.appendChild(g)}),A.appendChild(n),A}function x7(A){let n=document.createElement("div");Object.assign(n.style,{marginBottom:"16px"});let o=document.createElement("p");Object.assign(o.style,{color:H.textSecondary,marginBottom:"12px"}),o.textContent="This will capture a screenshot and send it to Claude for design analysis.",n.appendChild(o);let l=cy(A);if(l){let c=sa(H.primary,"Estimated Cost",[]);c.style.marginBottom="0",c.style.padding="12px";let m=document.createElement("div");Object.assign(m.style,{display:"flex",justifyContent:"space-between",color:H.textSecondary,fontSize:"0.75rem"});let g=document.createElement("span");g.textContent=`~${l.tokens.toLocaleString()} tokens`,m.appendChild(g);let v=document.createElement("span");Object.assign(v.style,{color:H.warning,fontWeight:"600"}),v.textContent=l.cost,m.appendChild(v),c.appendChild(m),n.appendChild(c)}if(A.apiKeyStatus?.model){let c=document.createElement("div");Object.assign(c.style,{color:H.textMuted,fontSize:"0.6875rem",marginTop:"12px"}),c.textContent=`Model: ${A.apiKeyStatus.model}`,n.appendChild(c)}return n}function My(A){let n=A.settingsManager.getSettings();A.themeMode=A.forcedThemeMode??n.themeMode,A.forcedThemeMode&&n.themeMode!==A.forcedThemeMode&&A.settingsManager.saveSettingsNow({themeMode:A.forcedThemeMode}),na(ra(A.themeMode)),A.debug.state("Theme loaded",{mode:A.themeMode}),typeof window<"u"&&window.matchMedia&&(A.themeMediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),A.themeMediaHandler=()=>{A.themeMode==="system"&&(na(ra(A.themeMode)),A.debug.state("System theme changed",{effectiveTheme:yo(A.themeMode)}),window.dispatchEvent(new CustomEvent("devbar-theme-change",{detail:{mode:A.themeMode}})),A.render())},A.themeMediaQuery.addEventListener("change",A.themeMediaHandler))}function Ny(A){let n=A.settingsManager.getSettings();A.compactMode=n.compactMode,A.debug.state("Compact mode loaded",{compactMode:A.compactMode})}function hu(A,n){let o=A.forcedThemeMode??n;A.themeMode=o,A.settingsManager.saveSettings({themeMode:o}),xw(o),na(ra(o)),A.debug.state("Theme mode changed",{mode:o,effectiveTheme:yo(o)}),typeof window<"u"&&window.dispatchEvent(new CustomEvent("devbar-theme-change",{detail:{mode:o}})),A.render()}function Py(A){let{position:n,accentColor:o}=A.options,l=document.createElement("div");l.setAttribute("data-devbar","true"),l.setAttribute("data-devbar-overlay","true"),Object.assign(l.style,{position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"10003"}),l.onclick=k=>{k.target===l&&(A.showSettingsPopover=!1,A.render())};let c=document.createElement("div");c.setAttribute("data-devbar","true"),c.setAttribute("role","dialog"),c.setAttribute("aria-modal","true"),c.setAttribute("aria-label","Settings"),c.tabIndex=-1;let m=n.startsWith("top"),g=480,v=16,b;if(A.container&&window.innerWidth>640){let k=A.container.getBoundingClientRect(),G=k.left+k.width/2;b=Math.max(v,Math.min(G-g/2,window.innerWidth-g-v))}else b=Math.max(v,(window.innerWidth-g)/2);Object.assign(c.style,{position:"fixed",[m?"top":"bottom"]:"70px",left:`${b}px`,zIndex:"10003",backgroundColor:"var(--devbar-color-bg-elevated)",border:`1px solid ${o}`,borderRadius:"8px",boxShadow:`${Bt.shadows.dropLg}, 0 0 0 1px ${J(o,20)}`,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",width:`${g}px`,maxWidth:"calc(100vw - 32px)",maxHeight:"calc(100vh - 100px)",overflowY:"auto",fontFamily:ht}),c.appendChild(F7(A));let C=document.createElement("div");C.className="devbar-settings-grid",Object.assign(C.style,{display:"grid",gridTemplateColumns:"1fr 1fr"});let E=H.textSecondary,D=document.createElement("div");Object.assign(D.style,{borderRight:`1px solid ${J(E,13)}`}),D.appendChild(D7(A)),D.appendChild(Q7(A)),C.appendChild(D);let R=document.createElement("div");R.appendChild(O7(A)),R.appendChild(L7(A)),C.appendChild(R),c.appendChild(C),c.appendChild(H7(A)),l.appendChild(c),A.overlayElement=l,document.body.appendChild(l),c.focus()}function F7(A){let{accentColor:n}=A.options,o=document.createElement("div");Object.assign(o.style,{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px",borderBottom:`1px solid ${J(n,19)}`,position:"sticky",top:"0",backgroundColor:"var(--devbar-color-bg-elevated)",zIndex:"1"});let l=document.createElement("span");return Object.assign(l.style,{color:n,fontSize:"0.75rem",fontWeight:"600"}),l.textContent="Settings",o.appendChild(l),o.appendChild(So(()=>{A.showSettingsPopover=!1,A.render()})),o}function D7(A){let{accentColor:n}=A.options,o=!!A.forcedThemeMode,l=mu("Theme");gu(l,o?`Theme is controlled by the host app: ${A.forcedThemeMode}.`:"Follow OS/browser preference, force dark, or force light while reviewing.");let c=document.createElement("div");return Object.assign(c.style,{display:"flex",gap:"6px"}),["system","dark","light"].forEach(g=>{let v=Ky({label:g,isActive:A.themeMode===g,accentColor:n,disabled:o&&g!==A.forcedThemeMode,disabledTitle:"Theme controlled by host app",onClick:()=>hu(A,g)});v.style.textTransform="capitalize",c.appendChild(v)}),l.appendChild(c),l}function Q7(A){let n=mu("Display & appearance");return gu(n,"Change where DevBar lives and how evidence captures are rendered."),n.appendChild(S7(A)),n.appendChild(U7(A)),n.appendChild(T7(A)),n.appendChild(R7(A)),n}function S7(A){let{accentColor:n}=A.options,o=H.textSecondary,l=document.createElement("div");Object.assign(l.style,{marginBottom:"10px"});let c=document.createElement("div");Object.assign(c.style,{color:H.text,fontSize:"0.6875rem",marginBottom:"6px"}),c.textContent="Position",l.appendChild(c);let m=document.createElement("div");return Object.assign(m.style,{position:"relative",width:"100%",height:"70px",backgroundColor:"var(--devbar-color-bg-input)",border:`1px solid ${J(o,19)}`,borderRadius:"4px"}),[{value:"top-left",style:{top:"6px",left:"6px"},title:"Top Left"},{value:"top-right",style:{top:"6px",right:"6px"},title:"Top Right"},{value:"bottom-left",style:{bottom:"6px",left:"6px"},title:"Bottom Left"},{value:"bottom-right",style:{bottom:"6px",right:"6px"},title:"Bottom Right"},{value:"bottom-center",style:{bottom:"6px",left:"50%",transform:"translateX(-50%)"},title:"Bottom Center"}].forEach(({value:v,style:b,title:C})=>{let E=document.createElement("button");E.setAttribute("data-position",v);let D=A.options.position===v;Object.assign(E.style,{position:"absolute",width:"24px",height:"6px",backgroundColor:D?n:H.textMuted,border:`1px solid ${D?n:H.textMuted}`,borderRadius:"2px",cursor:"pointer",padding:"0",transition:"all 150ms",boxShadow:D?`0 0 8px ${J(n,38)}`:"none",opacity:D?"1":"0.5",...b}),E.title=C,E.onclick=()=>{A.options.position=v,A.settingsManager.saveSettings({position:v}),A.render()},E.onmouseenter=()=>{D||(E.style.backgroundColor=n,E.style.borderColor=n,E.style.boxShadow=`0 0 6px ${J(n,25)}`,E.style.opacity="1")},E.onmouseleave=()=>{D||(E.style.backgroundColor=H.textMuted,E.style.borderColor=H.textMuted,E.style.boxShadow="none",E.style.opacity="0.5")},m.appendChild(E)}),l.appendChild(m),l}function U7(A){let{accentColor:n}=A.options,o=document.createDocumentFragment();o.appendChild(ii("Compact Mode",A.compactMode,n,()=>{A.toggleCompactMode()}));let l=document.createElement("div");return Object.assign(l.style,{color:H.textMuted,fontSize:"0.5625rem",marginTop:"2px",marginBottom:"8px"}),l.textContent="Keyboard: Cmd or Ctrl+Shift+M",o.appendChild(l),o}function T7(A){let n=document.createElement("div");Object.assign(n.style,{marginBottom:"6px"});let o=document.createElement("div");Object.assign(o.style,{color:H.text,fontSize:"0.6875rem",marginBottom:"6px"}),o.textContent="Accent Color",n.appendChild(o);let l=document.createElement("div");Object.assign(l.style,{display:"flex",gap:"6px",flexWrap:"wrap",alignItems:"center"});let c=A.options.accentColor,m=c===H.primary,v=!Bf.some(b=>b.value===c)&&!m;if(Bf.forEach(({name:b,value:C})=>{let E=document.createElement("button"),D=c===C||m&&b==="Emerald";Object.assign(E.style,{width:"24px",height:"24px",borderRadius:"50%",backgroundColor:C,border:D?"2px solid #fff":"2px solid transparent",cursor:"pointer",transition:"all 150ms",boxShadow:D?`0 0 8px ${C}`:"none"}),E.title=b,E.onclick=()=>{A.options.accentColor=C,A.settingsManager.saveSettings({accentColor:C}),A.render()},l.appendChild(E)}),v){let b=document.createElement("button");b.type="button",b.setAttribute("data-accent-reset","true"),b.title=`Custom color (${c}). Click to reset to theme default.`,Object.assign(b.style,{marginLeft:"4px",padding:"2px 8px",borderRadius:"10px",border:`1px dashed ${c}`,backgroundColor:"transparent",color:c,fontSize:"0.625rem",fontFamily:ht,cursor:"pointer",lineHeight:"1.4"}),b.textContent="custom \xB7 reset",b.onclick=()=>{let C=Qo.accentColor;A.options.accentColor=C,A.settingsManager.saveSettings({accentColor:C}),A.render()},l.appendChild(b)}return n.appendChild(l),n}function I7(A,n){return[`#${A}::-webkit-slider-thumb {`," -webkit-appearance: none;"," width: 12px; height: 12px;"," border-radius: 50%;",` background: ${n};`,` border: 2px solid ${H.bg};`,` box-shadow: 0 0 4px ${J(n,50)};`," cursor: grab;","}",`#${A}::-webkit-slider-thumb:active { cursor: grabbing; }`,`#${A}::-moz-range-thumb {`," width: 12px; height: 12px;"," border-radius: 50%;",` background: ${n};`,` border: 2px solid ${H.bg};`,` box-shadow: 0 0 4px ${J(n,50)};`," cursor: grab;","}",`#${A}::-webkit-slider-runnable-track { background: transparent; }`,`#${A}::-moz-range-track { background: transparent; }`].join(`
|
|
464
|
+
`)}}function Uy(A,n){let o=A.consoleFilter;if(!o)return;let l=n.getLogs().filter(k=>k.level===o),m={error:Pe.error,warn:Pe.warning,info:Pe.info}[o],v={error:"Errors",warn:"Warnings",info:"Info"}[o],b=()=>{A.consoleFilter=null,A.render()},C=Ln(b),E=Hn(m,`Console ${v}`),D=rn({color:m,title:`Console ${v} (${l.length})`,onClose:b,onCopyMd:async()=>{await navigator.clipboard.writeText(Lp(l))},onSave:()=>wy(A,l),onClear:()=>A.clearConsoleLogs(),sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation,isSaving:A.savingConsoleLogs,savedPath:A.lastConsoleLogs,evidenceContext:xa(A,`Console ${v}`,{artifactPath:A.lastConsoleLogs,observation:`${l.length} ${o} log${l.length===1?"":"s"} in the current filter.`})});E.appendChild(D);let R=nn();l.length===0?R.appendChild(gA(`No ${o}s recorded`)):Y9(R,l,m),E.appendChild(R),C.appendChild(E),A.overlayElement=C,document.body.appendChild(C),Mn(E)}function Y9(A,n,o){n.forEach((l,c)=>{let m=document.createElement("div");Object.assign(m.style,{padding:"8px 14px",borderBottom:c<n.length-1?`1px solid ${H.borderSubtle}`:"none"});let g=document.createElement("span");Object.assign(g.style,{color:H.textMuted,fontSize:"0.625rem",marginRight:"8px"}),g.textContent=new Date(l.timestamp).toLocaleTimeString(),m.appendChild(g);let v=document.createElement("span");Object.assign(v.style,{color:o,fontSize:"0.6875rem",wordBreak:"break-word",whiteSpace:"pre-wrap"}),v.textContent=l.message,m.appendChild(v),A.appendChild(m)})}function J9(A,n,o){if(A.lastDotPosition&&!o){let m=n.endsWith("right"),g;return m?g=n.startsWith("top")?{top:"20px",right:"16px"}:{bottom:"20px",right:"16px"}:g={top:`${A.lastDotPosition.top-15}px`,left:`${A.lastDotPosition.left-19}px`},A.lastDotPosition=null,g}return oa[n]??oa["bottom-left"]}function $9(A,n,o,l,c){A.resetPositionStyles(n);let m=A.options.sizeOverrides,g="fit-content",v="auto",b=c?"calc(100vw - 32px)":"calc(100vw - 96px)";Object.assign(n.style,{position:"fixed",...o,zIndex:"9999",backgroundColor:"var(--devbar-color-bg-card)",border:`1px solid ${l}`,borderRadius:"12px",color:l,boxShadow:`${Bt.shadows.dropToolbar}, 0 0 0 1px ${J(l,10)}`,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",boxSizing:"border-box",width:m?.width??g,maxWidth:m?.maxWidth??b,minWidth:m?.minWidth??v,cursor:"default"}),n.ondblclick=C=>{if(C.target?.closest("button, input, select, a"))return;let D=n.querySelector(".devbar-status span span");D&&Fo(A,D),A.collapsed=!0,A.debug.state("Collapsed DevBar (double-click)"),A.render()}}function Z9(){let A=document.createElement("div");return A.className="devbar-main",Object.assign(A.style,{display:"flex",alignItems:"center",alignContent:"flex-start",justifyContent:"flex-start",gap:"0.5rem",padding:"0.5rem 0.75rem",minWidth:"0",boxSizing:"border-box",fontFamily:ht,fontSize:"0.6875rem",lineHeight:"1rem"}),A}function e7(A){let n=Zs(A);return Cr(A,n,()=>aa(A.sweetlinkConnected,"click to minimize")),n.onclick=o=>{o.stopPropagation(),Fo(A,n),A.collapsed=!0,A.debug.state("Collapsed DevBar (connection dot click)"),A.render()},n}function t7(A,n){let o=document.createElement("div");return o.className="devbar-info",Object.assign(o.style,{display:"flex",alignItems:"center",gap:"0.5rem",textTransform:"uppercase",letterSpacing:"0.05em",flexShrink:"1",minWidth:"0",overflow:"visible"}),n.breakpoint&&A.breakpointInfo&&r7(A,o),A.perfStats&&A7(A,o,n),o}function r7(A,n){if(!A.breakpointInfo)return;let o=A.breakpointInfo.tailwindBreakpoint,l=ta[o],c=document.createElement("span");c.className="devbar-item",Object.assign(c.style,{opacity:"0.9",cursor:"default"}),zw(A,c,o,A.breakpointInfo.dimensions,l?.label||"");let m=o;o!=="base"&&(m=o==="sm"?`${o} - ${A.breakpointInfo.dimensions.split("x")[0]}`:`${o} - ${A.breakpointInfo.dimensions}`),c.textContent=m,n.appendChild(c)}function n7(A){return{fcp:{label:"FCP",value:A.fcp,title:"First Contentful Paint (FCP)",description:"Time until the first text or image renders on screen.",thresholds:{good:"<1.8s",needsWork:"1.8-3s",poor:">3s"}},lcp:{label:"LCP",value:A.lcp,title:"Largest Contentful Paint (LCP)",description:"Time until the largest visible element renders on screen.",thresholds:{good:"<2.5s",needsWork:"2.5-4s",poor:">4s"}},cls:{label:"CLS",value:A.cls,title:"Cumulative Layout Shift (CLS)",description:"Visual stability score. Higher values mean more unexpected layout shifts.",thresholds:{good:"<0.1",needsWork:"0.1-0.25",poor:">0.25"}},inp:{label:"INP",value:A.inp,title:"Interaction to Next Paint (INP)",description:"Responsiveness to user input. Measures the longest interaction delay.",thresholds:{good:"<200ms",needsWork:"200-500ms",poor:">500ms"}},pageSize:{label:"",value:A.totalSize,title:"Total Page Size",description:"Compressed/transferred size including HTML, CSS, JS, images, and other resources."}}}function A7(A,n,o){if(!A.perfStats)return;let{visible:l,hidden:c}=Hw(A),m=n7(A.perfStats),g=()=>{let b=document.createElement("span");b.style.opacity="0.4",b.textContent="|",n.appendChild(b)};for(let b of l){if(!o[b])continue;let C=m[b];g();let E=document.createElement("span");E.className="devbar-item",Object.assign(E.style,{opacity:b==="pageSize"?"0.7":"0.85",cursor:"default"}),E.textContent=C.label?`${C.label} ${C.value}`:C.value,C.thresholds?qw(A,E,C.title,C.description,C.thresholds):Xw(A,E,C.title,C.description),n.appendChild(E)}let v=c.filter(b=>o[b]);v.length>0&&(g(),a7(A,n,v,m))}function a7(A,n,o,l){let c=document.createElement("span");c.className="devbar-item devbar-clickable",Object.assign(c.style,{opacity:"0.7",cursor:"pointer",padding:"0 2px"}),c.textContent="\xB7\xB7\xB7",jw(A,c,m=>{Aa(A,m,"More Metrics");let g=document.createElement("div");Object.assign(g.style,{display:"flex",flexDirection:"column",gap:"6px",marginTop:"8px"});for(let v of o){let b=l[v],C=document.createElement("div");Object.assign(C.style,{display:"flex",justifyContent:"space-between",gap:"12px"});let E=document.createElement("span");Object.assign(E.style,{color:H.textMuted}),E.textContent=b.title.split("(")[0].trim();let D=document.createElement("span");Object.assign(D.style,{color:H.text,fontWeight:"500"}),D.textContent=b.value,C.appendChild(E),C.appendChild(D),g.appendChild(C)}m.appendChild(g)}),n.appendChild(c)}function o7(A,n,o,l,c,m){let g=e7(A),v=document.createElement("div");v.className="devbar-status",Object.assign(v.style,{display:"flex",alignItems:"center",gap:"0.5rem",flexWrap:"nowrap",flexShrink:"1",minWidth:"0"}),v.appendChild(g);let b=t7(A,n);return v.appendChild(b),o&&(l>0&&v.appendChild(Yn(A,"error",l,Pe.error)),c>0&&v.appendChild(Yn(A,"warn",c,Pe.warning)),m>0&&v.appendChild(Yn(A,"info",m,Pe.info))),v}function i7(A,n,o){let l=document.createElement("div");return l.className="devbar-actions",n&&l.appendChild(du(A,o)),l.appendChild(By(A)),l.appendChild(yy(A)),l.appendChild(Cy(A)),l.appendChild(Ey(A)),l.appendChild(xy(A)),l.appendChild(Fy(A)),l.appendChild(Dy(A)),l.appendChild(fu(A)),l.appendChild(Qy(A)),l}function s7(A,n,o,l){if(n.length===0)return null;let c=document.createElement("div");c.className=A,Object.assign(c.style,{display:"flex",flexWrap:"wrap",alignItems:"center",alignContent:"flex-start",justifyContent:"flex-start",gap:"0.5rem",padding:"0 0.75rem 0.5rem 0.75rem",borderTop:`1px solid ${J(o,19)}`,marginTop:"0",paddingTop:"0.5rem",width:"100%",maxWidth:"100%",minWidth:"0",overflow:"visible",boxSizing:"border-box",fontFamily:ht,fontSize:"0.6875rem"});for(let m of n)c.appendChild(Do(m,o,l));return c}function l7(A,n,o){let l=A.filter(m=>!m.group),c=s7("devbar-custom-controls devbar-custom-controls-inline",l,n,o);return c?(Object.assign(c.style,{padding:"0",borderTop:"0",width:"fit-content",flex:"0 1 auto",overflow:"hidden"}),c):null}function u7(A,n,o){let l=A.filter(g=>g.group);if(l.length===0)return null;let c=document.createElement("div");c.className="devbar-custom-controls devbar-custom-controls-row",Object.assign(c.style,{display:"flex",flexWrap:"wrap",alignItems:"center",alignContent:"flex-start",justifyContent:"flex-start",gap:"0.5rem",padding:"0 0.75rem 0.5rem 0.75rem",borderTop:`1px solid ${J(n,19)}`,marginTop:"0",paddingTop:"0.5rem",width:"100%",maxWidth:"100%",minWidth:"0",overflow:"visible",boxSizing:"border-box",fontFamily:ht,fontSize:"0.6875rem"});let m=new Map;for(let g of l){if(!g.group)continue;let v=m.get(g.group)??[];v.push(g),m.set(g.group,v)}for(let[g,v]of m){let b=document.createElement("span");b.className="devbar-custom-group-label",Object.assign(b.style,{color:J(n,50),fontSize:"0.5625rem",textTransform:"uppercase",letterSpacing:"0.05em",flex:"0 1 auto",minWidth:"0",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginLeft:[...m.keys()].indexOf(g)>0?"0.25rem":"0"}),b.textContent=g,c.appendChild(b);for(let C of v)c.appendChild(Do(C,n,o))}return c}function Ty(A,n){if(!A.container)return;let{position:o,accentColor:l,showMetrics:c,showScreenshot:m,showConsoleBadges:g}=A.options,{errorCount:v,warningCount:b,infoCount:C}=A.getLogCounts(),E=o==="bottom-center",D=A.container;n.length>0?D.dataset.devbarCustomControls="true":delete D.dataset.devbarCustomControls;let R=J9(A,o,E);$9(A,D,R,l,E);let k=Z9(),G=o7(A,c,g,v,b,C);k.appendChild(G);let W=l7(n,l,A);W&&k.appendChild(W);let q=i7(A,m,l);k.appendChild(q),D.appendChild(k);let ae=u7(n,l,A);ae&&D.appendChild(ae)}function Ry(A){let n=YA(),o=Pe.outline,l=()=>{A.showOutlineModal=!1,A.render()},c=Ln(l),m=Hn(o,"Document Outline"),g=rn({color:o,title:"Document Outline",onClose:l,onCopyMd:async()=>{let b=hA(n);await navigator.clipboard.writeText(b)},onSave:()=>vy(A),sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation,isSaving:A.savingOutline,savedPath:A.lastOutline,evidenceContext:xa(A,"Document Outline",{artifactPath:A.lastOutline,observation:`${n.length} top-level semantic node${n.length===1?"":"s"} found.`})});m.appendChild(g);let v=nn();n.length===0?v.appendChild(gA("No semantic elements found in this document")):Oy(n,v,0,{lastHeadingLevel:0}),m.appendChild(v),c.appendChild(m),A.overlayElement=c,document.body.appendChild(c),Mn(m)}function Oy(A,n,o,l){for(let c of A){let m=c.category==="heading"&&c.level>0,g=m&&c.level>l.lastHeadingLevel+1;m&&(l.lastHeadingLevel=c.level);let v=document.createElement("div");if(Object.assign(v.style,{padding:`4px 0 4px ${o*16}px`}),g){let R=document.createElement("span");Object.assign(R.style,{color:H.error,fontSize:"0.625rem",marginRight:"4px"}),R.textContent="\u26A0",R.title=`Heading level skipped (expected h${c.level-1} or higher before h${c.level})`,v.appendChild(R)}let b=document.createElement("span"),C=af[c.category||"other"]||af.other;if(Object.assign(b.style,{color:g?H.error:C,fontSize:"0.6875rem",fontWeight:"500"}),b.textContent=`<${c.tagName}>`,v.appendChild(b),c.category){let R=document.createElement("span");Object.assign(R.style,{color:H.textMuted,fontSize:"0.625rem",marginLeft:"6px"}),R.textContent=`[${c.category}]`,v.appendChild(R)}let E=document.createElement("span");Object.assign(E.style,{color:H.textSecondary,fontSize:"0.6875rem",marginLeft:"8px"});let D=c.text.length>60?`${c.text.slice(0,60)}...`:c.text;if(E.textContent=D,v.appendChild(E),c.id){let R=document.createElement("span");Object.assign(R.style,{color:H.textSecondary,fontSize:"0.625rem",marginLeft:"6px"}),R.textContent=`#${c.id}`,v.appendChild(R)}n.appendChild(v),c.children.length>0&&Oy(c.children,n,o+1,l)}}function ky(A){let n=JA(),o=Pe.schema,l=()=>{A.showSchemaModal=!1,A.render()},c=Ln(l),m=Hn(o,"Page Schema"),g=Ws(n),v=js(),b=rn({color:o,title:"Page Schema",onClose:l,onCopyMd:async()=>{let D=$A(n,{missingTags:g,favicons:v});await navigator.clipboard.writeText(D)},onSave:()=>by(A),sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation,isSaving:A.savingSchema,savedPath:A.lastSchema,evidenceContext:xa(A,"Page Schema",{artifactPath:A.lastSchema,observation:g.length?`${g.length} recommended metadata item${g.length===1?"":"s"} missing.`:"Schema evidence captured for this page."})});m.appendChild(b);let C=nn();n.jsonLd.length>0||Object.keys(n.openGraph).length>0||Object.keys(n.twitter).length>0||Object.keys(n.metaTags).length>0||v.length>0||g.length>0?(g.length>0&&v7(C,g),pu(C,"Open Graph",n.openGraph,H.info),pu(C,"Twitter Cards",n.twitter,H.cyan),v.length>0&&m7(C,v),pu(C,"JSON-LD",n.jsonLd,o),pu(C,"Meta Tags",n.metaTags,H.textMuted)):C.appendChild(gA("No structured data found on this page")),m.appendChild(C),c.appendChild(m),A.overlayElement=c,document.body.appendChild(c),Mn(m)}function Mp(A,n,o,l){let c=document.createElement("div");Object.assign(c.style,{display:"flex",alignItems:"center",gap:"8px",marginBottom:"10px",paddingBottom:"6px",borderBottom:`1px solid ${J(o,19)}`});let m=document.createElement("h3");Object.assign(m.style,{color:o,fontSize:"0.8125rem",fontWeight:"600",margin:"0"}),m.textContent=n,c.appendChild(m);let g=document.createElement("span");Object.assign(g.style,{color:J(o,80),fontSize:"0.5625rem",backgroundColor:J(o,9),padding:"1px 6px",borderRadius:"8px",letterSpacing:"0.03em"}),g.textContent=String(l),c.appendChild(g),A.appendChild(c)}function pu(A,n,o,l){let c=Array.isArray(o)?o.length:Object.keys(o).length;if(c===0)return;let m=document.createElement("div");m.style.marginBottom="20px",Mp(m,n,l,c),Array.isArray(o)?c7(m,o,l):f7(m,o),A.appendChild(m)}function c7(A,n,o){n.forEach((l,c)=>{let m=document.createElement("div");m.style.marginBottom="10px";let g=l,v=typeof g?.["@type"]=="string"?g["@type"]:null,b=document.createElement("div");Object.assign(b.style,{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"});let C=document.createElement("span");if(Object.assign(C.style,{color:H.textSecondary,fontSize:"0.6875rem"}),C.textContent=`Schema ${c+1}`,b.appendChild(C),v){let D=document.createElement("span");Object.assign(D.style,{color:J(o,80),fontSize:"0.5625rem",backgroundColor:J(o,8),border:`1px solid ${J(o,15)}`,padding:"0 5px",borderRadius:"3px"}),D.textContent=v,b.appendChild(D)}m.appendChild(b);let E=document.createElement("pre");Object.assign(E.style,{backgroundColor:"rgba(0, 0, 0, 0.25)",borderRadius:"4px",borderLeft:`2px solid ${J(o,31)}`,padding:"10px 10px 10px 12px",fontSize:"0.625rem",margin:"0",whiteSpace:"pre-wrap",wordBreak:"break-word"}),d7(E,JSON.stringify(l,null,2)),m.appendChild(E),A.appendChild(m)})}function d7(A,n){let o={key:H.primary,string:H.warning,number:H.purple,boolean:H.info,nullVal:H.error,punct:H.textMuted},l=/("(?:\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*")(\s*:)?|(\btrue\b|\bfalse\b)|(\bnull\b)|(-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)|([{}[\],])|(\s+)/g;for(let c of n.matchAll(l)){let[,m,g,v,b,C,E,D]=c;if(D)A.appendChild(document.createTextNode(D));else if(m!==void 0){let R=document.createElement("span");if(R.style.color=g?o.key:o.string,R.textContent=m,A.appendChild(R),g){let k=document.createElement("span");k.style.color=o.punct,k.textContent=":",A.appendChild(k)}}else if(v){let R=document.createElement("span");R.style.color=o.boolean,R.textContent=v,A.appendChild(R)}else if(b){let R=document.createElement("span");R.style.color=o.nullVal,R.textContent=b,A.appendChild(R)}else if(C){let R=document.createElement("span");R.style.color=o.number,R.textContent=C,A.appendChild(R)}else if(E){let R=document.createElement("span");R.style.color=o.punct,R.textContent=E,A.appendChild(R)}}}function f7(A,n){Object.entries(n).forEach(([l,c],m)=>{let g=dw(l),v=document.createElement("div");Object.assign(v.style,{display:"flex",padding:g?"6px 8px":"3px 8px",alignItems:"flex-start",borderRadius:"3px",backgroundColor:m%2===0?"rgba(255, 255, 255, 0.02)":"transparent"});let b=document.createElement("span");if(Object.assign(b.style,{color:H.textSecondary,fontSize:"0.6875rem",width:"120px",minWidth:"120px",maxWidth:"120px",flexShrink:"0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",paddingTop:g?"2px":"0"}),b.textContent=l,l.length>18&&(b.title=l),v.appendChild(b),g&&c){let C=document.createElement("div");Object.assign(C.style,{flex:"1",minWidth:"0"});let E=document.createElement("div");Object.assign(E.style,{display:"inline-block",padding:"4px",backgroundColor:"rgba(0, 0, 0, 0.2)",border:"1px solid rgba(255, 255, 255, 0.06)",borderRadius:"4px",marginBottom:"4px",minHeight:"60px",minWidth:"80px"});let D=document.createElement("img");Object.assign(D.style,{width:"200px",height:"120px",objectFit:"contain",borderRadius:"2px",display:"block"}),D.src=c,D.alt=l,D.onerror=()=>{E.style.display="none"},D.onload=()=>{D.naturalWidth&&(R.textContent=`${D.naturalWidth}\xD7${D.naturalHeight}`)},E.appendChild(D),C.appendChild(E);let R=document.createElement("div");Object.assign(R.style,{color:H.textMuted,fontSize:"0.5625rem",minHeight:"0.75rem",letterSpacing:"0.02em"}),C.appendChild(R);let k=document.createElement("div");Object.assign(k.style,{color:H.textMuted,fontSize:"0.5625rem",wordBreak:"break-all",opacity:"0.7"}),k.textContent=c,C.appendChild(k),v.appendChild(C)}else{let C=document.createElement("span");Object.assign(C.style,{color:H.text,fontSize:"0.6875rem",flex:"1",wordBreak:"break-word",whiteSpace:"pre-wrap",opacity:"0.85"}),C.textContent=String(c),v.appendChild(C)}A.appendChild(v)})}function p7(A,n){let o=parseInt(n||"",10);return A.includes("apple")?{text:"Apple home screen",color:H.info}:n==="any"||A.includes("svg")?{text:"Scalable (any)",color:H.cyan}:o>=192?{text:"Android / PWA",color:H.primary}:o>=48?{text:"Taskbar / shortcut",color:H.purple}:o>0?{text:"Browser tab",color:H.textSecondary}:{text:"General",color:H.textMuted}}function h7(A,n){let o=p7(A.label,A.size),l=document.createElement("div");Object.assign(l.style,{display:"flex",alignItems:"center",padding:"6px 8px",gap:"10px",borderRadius:"3px",backgroundColor:n%2===0?"rgba(255, 255, 255, 0.02)":"transparent"});let c=document.createElement("div");Object.assign(c.style,{width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.25)",border:"1px solid rgba(255, 255, 255, 0.06)",borderRadius:"4px",flexShrink:"0"});let m=document.createElement("img");Object.assign(m.style,{width:"22px",height:"22px",objectFit:"contain"}),m.src=A.url,m.alt=A.label,m.onerror=()=>{c.style.opacity="0.3"},c.appendChild(m),l.appendChild(c);let g=document.createElement("div");Object.assign(g.style,{flex:"1",minWidth:"0",display:"flex",flexDirection:"column",gap:"2px"});let v=document.createElement("div");Object.assign(v.style,{display:"flex",alignItems:"center",gap:"6px"});let b=document.createElement("span");Object.assign(b.style,{color:H.text,fontSize:"0.6875rem",fontWeight:"500",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),b.textContent=A.label,A.label.length>24&&(b.title=A.label),v.appendChild(b);let C=document.createElement("span");Object.assign(C.style,{color:o.color,fontSize:"0.5rem",backgroundColor:J(o.color,7),padding:"1px 6px",borderRadius:"6px",letterSpacing:"0.03em",whiteSpace:"nowrap",flexShrink:"0"}),C.textContent=o.text,v.appendChild(C),g.appendChild(v);let E=document.createElement("div");if(Object.assign(E.style,{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.5625rem",color:H.textMuted}),A.size){let G=document.createElement("span");G.textContent=A.size,G.style.opacity="0.8",E.appendChild(G)}let D=document.createElement("span");D.style.letterSpacing="0.02em",E.appendChild(D),m.onload=()=>{if(m.naturalWidth){let G=`${m.naturalWidth}\xD7${m.naturalHeight}`;A.size?D.textContent=`\u2192 ${G}`:D.textContent=G}};let R=document.createElement("span");R.textContent="\xB7",R.style.opacity="0.4",E.appendChild(R);let k=document.createElement("span");return Object.assign(k.style,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",opacity:"0.6"}),k.textContent=A.url,k.title=A.url,E.appendChild(k),g.appendChild(E),l.appendChild(g),l}function m7(A,n){let o=H.purple,l=document.createElement("div");l.style.marginBottom="20px",Mp(l,"Favicons",o,n.length),n.forEach((c,m)=>{l.appendChild(h7(c,m))}),A.appendChild(l)}function Iy(A,n){let o=document.createElement("span");return Object.assign(o.style,{color:n,fontSize:"0.5625rem",backgroundColor:J(n,8),padding:"2px 8px",borderRadius:"8px",letterSpacing:"0.03em"}),o.textContent=A,o}function g7(A,n){let o=document.createElement("div");return Object.assign(o.style,{display:"flex",alignItems:"center",padding:"4px 8px",gap:"8px",borderRadius:"3px",backgroundColor:A%2===0?"rgba(255, 255, 255, 0.02)":"transparent",...n?{borderLeft:`2px solid ${J(n,25)}`}:{}}),o}function Hp(A,n){let o=document.createElement("span");return Object.assign(o.style,n),o.textContent=A,o}function v7(A,n){let o=document.createElement("div");o.style.marginBottom="20px";let l=n.filter(v=>v.severity==="error").length,c=n.length-l,g=l>0?H.error:H.warning;if(Mp(o,"Missing Tags",g,n.length),l>0||c>0){let v=document.createElement("div");Object.assign(v.style,{display:"flex",gap:"8px",marginBottom:"8px"}),l>0&&v.appendChild(Iy(`${l} error${l>1?"s":""}`,H.error)),c>0&&v.appendChild(Iy(`${c} warning${c>1?"s":""}`,H.warning)),o.appendChild(v)}n.forEach((v,b)=>{let C=v.severity==="error",E=C?H.error:H.warning,D=g7(b,E),R=Hp(C?"\u2718":"\u26A0",{fontSize:"0.625rem",flexShrink:"0",width:"14px",textAlign:"center",color:E});D.appendChild(R),D.appendChild(Hp(v.tag,{color:H.text,fontSize:"0.6875rem",width:"120px",minWidth:"120px",flexShrink:"0",fontWeight:"500"})),D.appendChild(Hp(v.hint,{color:H.textMuted,fontSize:"0.6875rem",flex:"1",opacity:"0.85"})),o.appendChild(D)}),A.appendChild(o)}function Ly(A){let n=Pe.a11y,o=()=>{A.showA11yModal=!1,A.render()},l=Ln(o),c=Hn(n,"Accessibility Audit");w7(c,n,o,A),l.appendChild(c),A.overlayElement=l,document.body.appendChild(l),Mn(c),Xs().then(m=>{if(!A.showA11yModal)return;let g=Ys(m);vf(c);let v=m.violations.length,b=v===0?"Accessibility Audit \u2014 No Issues":`Accessibility Audit \u2014 ${v} Violation${v===1?"":"s"}`,C=rn({color:n,title:b,onClose:o,onCopyMd:async()=>{await navigator.clipboard.writeText(g)},onSave:()=>gy(A,m),sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation,isSaving:A.savingA11yAudit,savedPath:A.lastA11yAudit,evidenceContext:xa(A,b,{artifactPath:A.lastA11yAudit,observation:v===0?`${m.passes.length} axe rule${m.passes.length===1?"":"s"} passed.`:`${v} accessibility violation${v===1?"":"s"} found.`})});c.appendChild(C);let E=nn();b7(E,m,n),c.appendChild(E)}).catch(m=>{if(!A.showA11yModal)return;vf(c);let g=rn({color:H.error,title:"Accessibility Audit \u2014 Error",onClose:o,onCopyMd:async()=>{},sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation});c.appendChild(g);let v=nn();v.appendChild(sa(H.error,"Audit Failed",`${m instanceof Error?m.message:"Unknown error"}`)),c.appendChild(v)})}function w7(A,n,o,l){let c=nn(),m=document.createElement("div");Object.assign(m.style,{textAlign:"center",padding:"40px",color:H.textSecondary,fontSize:"0.875rem"}),m.textContent="Running accessibility audit...",m.style.animation="pulse 1.5s ease-in-out infinite",c.appendChild(m);let g=rn({color:n,title:"Accessibility Audit",onClose:o,onCopyMd:async()=>{},sweetlinkConnected:l.sweetlinkConnected,saveLocation:l.options.saveLocation});A.appendChild(g),A.appendChild(c)}function b7(A,n,o){if(B7(A,n,o),n.violations.length===0){let l=document.createElement("div");if(Object.assign(l.style,{textAlign:"center",padding:"40px",color:H.primary,fontSize:"0.875rem"}),l.textContent="No accessibility violations found!",A.appendChild(l),n.passes.length>0){let c=document.createElement("div");Object.assign(c.style,{textAlign:"center",color:H.textMuted,fontSize:"0.75rem",marginTop:"8px"}),c.textContent=`${n.passes.length} rules passed`,A.appendChild(c)}}else{let l=uf(n.violations),c=document.createElement("div");Object.assign(c.style,{display:"flex",gap:"12px",marginBottom:"16px",padding:"10px 12px",backgroundColor:J(o,6),border:`1px solid ${J(o,19)}`,borderRadius:"6px",flexWrap:"wrap"});for(let g of["critical","serious","moderate","minor"]){if(l[g]===0)continue;let v=document.createElement("span"),b=df(g);Object.assign(v.style,{display:"inline-flex",alignItems:"center",gap:"4px",fontSize:"0.6875rem",fontWeight:"600",color:b});let C=document.createElement("span");Object.assign(C.style,{width:"6px",height:"6px",borderRadius:"50%",backgroundColor:b}),v.appendChild(C),v.appendChild(document.createTextNode(`${l[g]} ${g}`)),c.appendChild(v)}A.appendChild(c);let m=cf(n.violations);for(let[g,v]of m)v.length!==0&&C7(A,g,v)}}function B7(A,n,o){let l=[`${n.passes.length} axe rule${n.passes.length===1?"":"s"} passed`,`${n.violations.length} violation${n.violations.length===1?"":"s"} found`,"current DOM, focus semantics, names, landmarks, forms, and color contrast where browser APIs expose enough paint data"];A.appendChild(sa(o,"What was checked",l.join(" \xB7 ")))}function _y(A){let n=document.createElement("div");return Object.assign(n.style,{padding:"3px 6px",marginBottom:"2px",backgroundColor:"rgba(0,0,0,0.2)",borderRadius:"3px",fontSize:"0.625rem",color:H.textSecondary,fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),n.textContent=A.html.length>100?`${A.html.slice(0,100)}...`:A.html,n.title=A.html,n}function y7(A,n){let o=document.createElement("div");Object.assign(o.style,{marginBottom:"12px",padding:"10px 12px",backgroundColor:J(n,3),border:`1px solid ${J(n,13)}`,borderRadius:"6px"});let l=document.createElement("div");Object.assign(l.style,{color:n,fontSize:"0.6875rem",fontWeight:"600",marginBottom:"4px"}),l.textContent=A.id,o.appendChild(l);let c=document.createElement("div");Object.assign(c.style,{color:H.text,fontSize:"0.75rem",marginBottom:"4px"}),c.textContent=A.help,o.appendChild(c);let m=document.createElement("div");Object.assign(m.style,{color:H.textSecondary,fontSize:"0.6875rem",marginBottom:"6px"}),m.textContent=A.description,o.appendChild(m);let g=document.createElement("div");Object.assign(g.style,{color:H.textMuted,fontSize:"0.625rem",marginBottom:"4px"}),g.textContent=`${A.nodes.length} element${A.nodes.length===1?"":"s"} affected`,o.appendChild(g);let v=document.createElement("div");Object.assign(v.style,{marginTop:"6px"});let b=A.nodes.slice(0,3);for(let C of b)v.appendChild(_y(C));if(A.nodes.length>3){let C=document.createElement("button");Object.assign(C.style,{background:"none",border:"none",color:n,fontSize:"0.625rem",cursor:"pointer",padding:"2px 0",fontFamily:ht}),C.textContent=`+ ${A.nodes.length-3} more`,C.onclick=()=>{C.remove();for(let E of A.nodes.slice(3))v.appendChild(_y(E))},v.appendChild(C)}return o.appendChild(v),o}function C7(A,n,o){let l=df(n),c=document.createElement("div");c.style.marginBottom="20px";let m=document.createElement("h3");Object.assign(m.style,{color:l,fontSize:"0.8125rem",fontWeight:"600",marginBottom:"10px",borderBottom:`1px solid ${J(l,25)}`,paddingBottom:"6px",textTransform:"capitalize"}),m.textContent=`${n} (${o.length})`,c.appendChild(m);for(let g of o)c.appendChild(y7(g,l));A.appendChild(c)}function Hy(A){let n=Pe.review,o=()=>dy(A),l=Ln(o),c=Hn(n,"AI Design Review");c.style.maxWidth="450px",c.appendChild(rn({color:n,title:"AI Design Review",onClose:o}));let m=nn();if(Object.assign(m.style,{color:H.text,fontSize:"0.8125rem",lineHeight:"1.6"}),A.apiKeyStatus===null?m.appendChild(gA("Checking API key configuration...")):A.apiKeyStatus.configured?m.appendChild(x7(A)):m.appendChild(E7()),c.appendChild(m),A.apiKeyStatus?.configured){let g=document.createElement("div");Object.assign(g.style,{display:"flex",justifyContent:"flex-end",gap:"10px",padding:"14px 18px",borderTop:`1px solid ${H.border}`});let v=tn({color:n,text:"Run Review",padding:"8px 16px"});v.style.backgroundColor=J(n,13),v.onclick=()=>fy(A),g.appendChild(v),c.appendChild(g)}l.appendChild(c),A.overlayElement=l,document.body.appendChild(l),Mn(c)}function E7(){let A=document.createElement("div");A.appendChild(sa(H.error,"API Key Not Configured","The ANTHROPIC_API_KEY environment variable is not set."));let n=document.createElement("div");Object.assign(n.style,{marginBottom:"12px"});let o=document.createElement("div");return Object.assign(o.style,{color:H.textSecondary,fontWeight:"600",marginBottom:"8px"}),o.textContent="To configure:",n.appendChild(o),[{text:"1. Get an API key from console.anthropic.com",highlight:!1},{text:"2. Add to your .env file:",highlight:!1},{text:" ANTHROPIC_API_KEY=sk-ant-...",highlight:!0},{text:"3. Restart your dev server",highlight:!1}].forEach(({text:c,highlight:m})=>{let g=document.createElement("div");Object.assign(g.style,{color:m?H.primary:H.textMuted,fontSize:"0.75rem",marginBottom:"4px",fontFamily:ht}),g.textContent=c,n.appendChild(g)}),A.appendChild(n),A}function x7(A){let n=document.createElement("div");Object.assign(n.style,{marginBottom:"16px"});let o=document.createElement("p");Object.assign(o.style,{color:H.textSecondary,marginBottom:"12px"}),o.textContent="This will capture a screenshot and send it to Claude for design analysis.",n.appendChild(o);let l=cy(A);if(l){let c=sa(H.primary,"Estimated Cost",[]);c.style.marginBottom="0",c.style.padding="12px";let m=document.createElement("div");Object.assign(m.style,{display:"flex",justifyContent:"space-between",color:H.textSecondary,fontSize:"0.75rem"});let g=document.createElement("span");g.textContent=`~${l.tokens.toLocaleString()} tokens`,m.appendChild(g);let v=document.createElement("span");Object.assign(v.style,{color:H.warning,fontWeight:"600"}),v.textContent=l.cost,m.appendChild(v),c.appendChild(m),n.appendChild(c)}if(A.apiKeyStatus?.model){let c=document.createElement("div");Object.assign(c.style,{color:H.textMuted,fontSize:"0.6875rem",marginTop:"12px"}),c.textContent=`Model: ${A.apiKeyStatus.model}`,n.appendChild(c)}return n}function My(A){let n=A.settingsManager.getSettings();A.themeMode=A.forcedThemeMode??n.themeMode,A.forcedThemeMode&&n.themeMode!==A.forcedThemeMode&&A.settingsManager.saveSettingsNow({themeMode:A.forcedThemeMode}),na(ra(A.themeMode)),A.debug.state("Theme loaded",{mode:A.themeMode}),typeof window<"u"&&window.matchMedia&&(A.themeMediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),A.themeMediaHandler=()=>{A.themeMode==="system"&&(na(ra(A.themeMode)),A.debug.state("System theme changed",{effectiveTheme:yo(A.themeMode)}),window.dispatchEvent(new CustomEvent("devbar-theme-change",{detail:{mode:A.themeMode}})),A.render())},A.themeMediaQuery.addEventListener("change",A.themeMediaHandler))}function Ny(A){let n=A.settingsManager.getSettings();A.compactMode=n.compactMode,A.debug.state("Compact mode loaded",{compactMode:A.compactMode})}function hu(A,n){let o=A.forcedThemeMode??n;A.themeMode=o,A.settingsManager.saveSettings({themeMode:o}),xw(o),na(ra(o)),A.debug.state("Theme mode changed",{mode:o,effectiveTheme:yo(o)}),typeof window<"u"&&window.dispatchEvent(new CustomEvent("devbar-theme-change",{detail:{mode:o}})),A.render()}function Py(A){let{position:n,accentColor:o}=A.options,l=document.createElement("div");l.setAttribute("data-devbar","true"),l.setAttribute("data-devbar-overlay","true"),Object.assign(l.style,{position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"10003"}),l.onclick=k=>{k.target===l&&(A.showSettingsPopover=!1,A.render())};let c=document.createElement("div");c.setAttribute("data-devbar","true"),c.setAttribute("role","dialog"),c.setAttribute("aria-modal","true"),c.setAttribute("aria-label","Settings"),c.tabIndex=-1;let m=n.startsWith("top"),g=480,v=16,b;if(A.container&&window.innerWidth>640){let k=A.container.getBoundingClientRect(),G=k.left+k.width/2;b=Math.max(v,Math.min(G-g/2,window.innerWidth-g-v))}else b=Math.max(v,(window.innerWidth-g)/2);Object.assign(c.style,{position:"fixed",[m?"top":"bottom"]:"70px",left:`${b}px`,zIndex:"10003",backgroundColor:"var(--devbar-color-bg-elevated)",border:`1px solid ${o}`,borderRadius:"8px",boxShadow:`${Bt.shadows.dropLg}, 0 0 0 1px ${J(o,20)}`,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",width:`${g}px`,maxWidth:"calc(100vw - 32px)",maxHeight:"calc(100vh - 100px)",overflowY:"auto",fontFamily:ht}),c.appendChild(F7(A));let C=document.createElement("div");C.className="devbar-settings-grid",Object.assign(C.style,{display:"grid",gridTemplateColumns:"1fr 1fr"});let E=H.textSecondary,D=document.createElement("div");Object.assign(D.style,{borderRight:`1px solid ${J(E,13)}`}),D.appendChild(D7(A)),D.appendChild(Q7(A)),C.appendChild(D);let R=document.createElement("div");R.appendChild(O7(A)),R.appendChild(L7(A)),C.appendChild(R),c.appendChild(C),c.appendChild(H7(A)),l.appendChild(c),A.overlayElement=l,document.body.appendChild(l),c.focus()}function F7(A){let{accentColor:n}=A.options,o=document.createElement("div");Object.assign(o.style,{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px",borderBottom:`1px solid ${J(n,19)}`,position:"sticky",top:"0",backgroundColor:"var(--devbar-color-bg-elevated)",zIndex:"1"});let l=document.createElement("span");return Object.assign(l.style,{color:n,fontSize:"0.75rem",fontWeight:"600"}),l.textContent="Settings",o.appendChild(l),o.appendChild(So(()=>{A.showSettingsPopover=!1,A.render()})),o}function D7(A){let{accentColor:n}=A.options,o=!!A.forcedThemeMode,l=mu("Theme");gu(l,o?`Theme is controlled by the host app: ${A.forcedThemeMode}.`:"Follow OS/browser preference, force dark, or force light while reviewing.");let c=document.createElement("div");return Object.assign(c.style,{display:"flex",gap:"6px"}),["system","dark","light"].forEach(g=>{let v=Ky({label:g,isActive:A.themeMode===g,accentColor:n,disabled:o&&g!==A.forcedThemeMode,disabledTitle:"Theme controlled by host app",onClick:()=>hu(A,g)});v.style.textTransform="capitalize",c.appendChild(v)}),l.appendChild(c),l}function Q7(A){let n=mu("Display & appearance");return gu(n,"Change where DevBar lives and how evidence captures are rendered."),n.appendChild(S7(A)),n.appendChild(U7(A)),n.appendChild(T7(A)),n.appendChild(R7(A)),n}function S7(A){let{accentColor:n}=A.options,o=H.textSecondary,l=document.createElement("div");Object.assign(l.style,{marginBottom:"10px"});let c=document.createElement("div");Object.assign(c.style,{color:H.text,fontSize:"0.6875rem",marginBottom:"6px"}),c.textContent="Position",l.appendChild(c);let m=document.createElement("div");return Object.assign(m.style,{position:"relative",width:"100%",height:"70px",backgroundColor:"var(--devbar-color-bg-input)",border:`1px solid ${J(o,19)}`,borderRadius:"4px"}),[{value:"top-left",style:{top:"6px",left:"6px"},title:"Top Left"},{value:"top-right",style:{top:"6px",right:"6px"},title:"Top Right"},{value:"bottom-left",style:{bottom:"6px",left:"6px"},title:"Bottom Left"},{value:"bottom-right",style:{bottom:"6px",right:"6px"},title:"Bottom Right"},{value:"bottom-center",style:{bottom:"6px",left:"50%",transform:"translateX(-50%)"},title:"Bottom Center"}].forEach(({value:v,style:b,title:C})=>{let E=document.createElement("button");E.setAttribute("data-position",v);let D=A.options.position===v;Object.assign(E.style,{position:"absolute",width:"24px",height:"6px",backgroundColor:D?n:H.textMuted,border:`1px solid ${D?n:H.textMuted}`,borderRadius:"2px",cursor:"pointer",padding:"0",transition:"all 150ms",boxShadow:D?`0 0 8px ${J(n,38)}`:"none",opacity:D?"1":"0.5",...b}),E.title=C,E.onclick=()=>{A.options.position=v,A.settingsManager.saveSettings({position:v}),A.render()},E.onmouseenter=()=>{D||(E.style.backgroundColor=n,E.style.borderColor=n,E.style.boxShadow=`0 0 6px ${J(n,25)}`,E.style.opacity="1")},E.onmouseleave=()=>{D||(E.style.backgroundColor=H.textMuted,E.style.borderColor=H.textMuted,E.style.boxShadow="none",E.style.opacity="0.5")},m.appendChild(E)}),l.appendChild(m),l}function U7(A){let{accentColor:n}=A.options,o=document.createDocumentFragment();o.appendChild(ii("Compact Mode",A.compactMode,n,()=>{A.toggleCompactMode()}));let l=document.createElement("div");return Object.assign(l.style,{color:H.textMuted,fontSize:"0.5625rem",marginTop:"2px",marginBottom:"8px"}),l.textContent="Keyboard: Cmd or Ctrl+Shift+M",o.appendChild(l),o}function T7(A){let n=document.createElement("div");Object.assign(n.style,{marginBottom:"6px"});let o=document.createElement("div");Object.assign(o.style,{color:H.text,fontSize:"0.6875rem",marginBottom:"6px"}),o.textContent="Accent Color",n.appendChild(o);let l=document.createElement("div");Object.assign(l.style,{display:"flex",gap:"6px",flexWrap:"wrap",alignItems:"center"});let c=A.options.accentColor,m=c===H.primary,v=!Bf.some(b=>b.value===c)&&!m;if(Bf.forEach(({name:b,value:C})=>{let E=document.createElement("button"),D=c===C||m&&b==="Emerald";Object.assign(E.style,{width:"24px",height:"24px",borderRadius:"50%",backgroundColor:C,border:D?"2px solid #fff":"2px solid transparent",cursor:"pointer",transition:"all 150ms",boxShadow:D?`0 0 8px ${C}`:"none"}),E.title=b,E.onclick=()=>{A.options.accentColor=C,A.settingsManager.saveSettings({accentColor:C}),A.render()},l.appendChild(E)}),v){let b=document.createElement("button");b.type="button",b.setAttribute("data-accent-reset","true"),b.title=`Custom color (${c}). Click to reset to theme default.`,Object.assign(b.style,{marginLeft:"4px",padding:"2px 8px",borderRadius:"10px",border:`1px dashed ${c}`,backgroundColor:"transparent",color:c,fontSize:"0.625rem",fontFamily:ht,cursor:"pointer",lineHeight:"1.4"}),b.textContent="custom \xB7 reset",b.onclick=()=>{let C=Qo.accentColor;A.options.accentColor=C,A.settingsManager.saveSettings({accentColor:C}),A.render()},l.appendChild(b)}return n.appendChild(l),n}function I7(A,n){return[`#${A}::-webkit-slider-thumb {`," -webkit-appearance: none;"," width: 12px; height: 12px;"," border-radius: 50%;",` background: ${n};`,` border: 2px solid ${H.bg};`,` box-shadow: 0 0 4px ${J(n,50)};`," cursor: grab;","}",`#${A}::-webkit-slider-thumb:active { cursor: grabbing; }`,`#${A}::-moz-range-thumb {`," width: 12px; height: 12px;"," border-radius: 50%;",` background: ${n};`,` border: 2px solid ${H.bg};`,` box-shadow: 0 0 4px ${J(n,50)};`," cursor: grab;","}",`#${A}::-webkit-slider-runnable-track { background: transparent; }`,`#${A}::-moz-range-track { background: transparent; }`].join(`
|
|
455
465
|
`)}function _7(A,n,o,l){A.oninput=()=>{let c=parseFloat(A.value);n.textContent=c.toFixed(2),o.style.width=`${c*100}%`,l.options.screenshotQuality=c},A.onchange=()=>{l.settingsManager.saveSettings({screenshotQuality:l.options.screenshotQuality})}}function R7(A){let{accentColor:n}=A.options,o=H.textSecondary,l=document.createElement("div");Object.assign(l.style,{marginTop:"8px"});let c=document.createElement("div");Object.assign(c.style,{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"6px"});let m=document.createElement("span");Object.assign(m.style,{color:H.text,fontSize:"0.6875rem"}),m.textContent="Screenshot Quality",c.appendChild(m);let g=document.createElement("span");Object.assign(g.style,{color:n,fontSize:"0.6875rem",fontFamily:"monospace",minWidth:"28px",textAlign:"right"});let v=A.options.screenshotQuality;g.textContent=v.toFixed(2),c.appendChild(g),l.appendChild(c);let b=document.createElement("div");Object.assign(b.style,{position:"relative",height:"20px"});let C=document.createElement("div");Object.assign(C.style,{position:"absolute",top:"50%",left:"0",right:"0",height:"2px",transform:"translateY(-50%)",borderRadius:"1px",background:J(o,25),pointerEvents:"none"});let E=document.createElement("div");Object.assign(E.style,{height:"100%",width:`${v*100}%`,borderRadius:"1px",background:n}),C.appendChild(E),b.appendChild(C);let D=document.createElement("input");D.type="range",D.min="0",D.max="1",D.step="0.01",D.value=String(v),Object.assign(D.style,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",appearance:"none",WebkitAppearance:"none",background:"transparent",outline:"none",cursor:"pointer",margin:"0"});let R=`devbar-quality-${Date.now()}`;D.id=R;let k=document.createElement("style");return k.textContent=I7(R,n),b.appendChild(k),_7(D,g,E,A),b.appendChild(D),l.appendChild(b),l}function O7(A){let{accentColor:n}=A.options,o=mu("Evidence workflow");return gu(o,"Choose the controls and save behavior an agent sees during inspect, verify, and handoff."),o.appendChild(k7(A)),o.appendChild(ii("Screenshot Button",A.options.showScreenshot,n,()=>{A.options.showScreenshot=!A.options.showScreenshot,A.settingsManager.saveSettings({showScreenshot:A.options.showScreenshot}),A.render()})),o.appendChild(ii("Console Badges",A.options.showConsoleBadges,n,()=>{A.options.showConsoleBadges=!A.options.showConsoleBadges,A.settingsManager.saveSettings({showConsoleBadges:A.options.showConsoleBadges}),A.render()})),o.appendChild(ii("Tooltips",A.options.showTooltips,n,()=>{A.options.showTooltips=!A.options.showTooltips,A.settingsManager.saveSettings({showTooltips:A.options.showTooltips}),A.render()})),o}function k7(A){let{accentColor:n}=A.options,o=document.createElement("div");Object.assign(o.style,{marginBottom:"10px"});let l=document.createElement("div");Object.assign(l.style,{color:H.text,fontSize:"0.6875rem",marginBottom:"6px"}),l.textContent="Save Method",o.appendChild(l);let c=document.createElement("div");Object.assign(c.style,{color:H.textMuted,fontSize:"0.5625rem",lineHeight:"1.4",marginBottom:"8px"}),c.textContent="Auto saves artifacts through Sweetlink when connected, otherwise downloads in-browser.",o.appendChild(c);let m=document.createElement("div");return Object.assign(m.style,{display:"flex",gap:"6px",flexWrap:"wrap"}),[{value:"auto",label:"Auto"},{value:"download",label:"Download"},{value:"local",label:"Local"}].forEach(({value:v,label:b})=>{let C=v==="local"&&!A.sweetlinkConnected,E=Ky({label:b,isActive:A.options.saveLocation===v,accentColor:n,disabled:C,disabledTitle:"Sweetlink not connected",onClick:()=>{A.options.saveLocation=v,A.settingsManager.saveSettings({saveLocation:v}),A.render()}});m.appendChild(E)}),o.appendChild(m),o}function L7(A){let{accentColor:n}=A.options,o=mu("Metrics");return gu(o,"Keep the toolbar focused by hiding metrics that are not useful now."),[{key:"breakpoint",label:"Breakpoint"},{key:"fcp",label:"FCP"},{key:"lcp",label:"LCP"},{key:"cls",label:"CLS"},{key:"inp",label:"INP"},{key:"pageSize",label:"Page Size"}].forEach(({key:c,label:m})=>{let g=A.options.showMetrics[c]??!0;o.appendChild(ii(m,g,n,()=>{A.options.showMetrics[c]=!A.options.showMetrics[c],A.settingsManager.saveSettings({showMetrics:{breakpoint:A.options.showMetrics.breakpoint??!0,fcp:A.options.showMetrics.fcp??!0,lcp:A.options.showMetrics.lcp??!0,cls:A.options.showMetrics.cls??!0,inp:A.options.showMetrics.inp??!0,pageSize:A.options.showMetrics.pageSize??!0}}),A.render()}))}),o}function H7(A){let n=H.textSecondary,o=document.createElement("div");Object.assign(o.style,{padding:"10px 14px",borderTop:`1px solid ${J(n,13)}`});let l=tn({color:H.textMuted,text:"Reset to Defaults",padding:"6px 12px",fontSize:"0.625rem"});Object.assign(l.style,{width:"100%",justifyContent:"center",border:"1px solid transparent"});let c=H.textMuted;return l.onmouseenter=()=>{l.style.border=`1px solid ${c}`,l.style.backgroundColor=J(c,6)},l.onmouseleave=()=>{l.style.border="1px solid transparent",l.style.backgroundColor="transparent"},l.onclick=()=>{A.settingsManager.resetToDefaults();let m=Qo;A.applySettings(m)},o.appendChild(l),o}function mu(A,n=!0){let o=H.textSecondary,l=document.createElement("div");Object.assign(l.style,{padding:"10px 14px",borderBottom:n?`1px solid ${J(o,13)}`:"none"});let c=document.createElement("div");return Object.assign(c.style,{color:o,fontSize:"0.625rem",textTransform:"uppercase",letterSpacing:"0.1em",marginBottom:"8px"}),c.textContent=A,l.appendChild(c),l}function gu(A,n){let o=document.createElement("div");Object.assign(o.style,{color:H.textMuted,fontSize:"0.5625rem",lineHeight:"1.4",margin:"-2px 0 10px"}),o.textContent=n,A.appendChild(o)}function Ky(A){let{label:n,isActive:o,accentColor:l,disabled:c,disabledTitle:m,onClick:g}=A,v=H.textSecondary,b=document.createElement("button");return Object.assign(b.style,{padding:"6px 10px",minHeight:"28px",backgroundColor:o?J(l,13):"transparent",border:`1px solid ${o?l:"transparent"}`,borderRadius:"4px",color:o?l:v,fontFamily:ht,fontSize:"0.625rem",cursor:c?"not-allowed":"pointer",transition:"all 150ms",opacity:c?"0.5":"1"}),b.textContent=n,c?m&&(b.title=m):o||(b.onmouseenter=()=>{b.style.borderColor=`${v}`,b.style.backgroundColor=J(v,6)},b.onmouseleave=()=>{b.style.borderColor="transparent",b.style.backgroundColor="transparent"}),b.onclick=()=>{c||g()},b}function ii(A,n,o,l){let c=document.createElement("div");Object.assign(c.style,{display:"flex",alignItems:"center",justifyContent:"space-between",minHeight:"28px",marginBottom:"6px",gap:"12px"});let m=document.createElement("span");Object.assign(m.style,{color:H.text,fontSize:"0.6875rem"}),m.textContent=A,c.appendChild(m);let g=document.createElement("button");Object.assign(g.style,{width:"32px",height:"18px",borderRadius:"9px",border:`1px solid ${n?o:H.border}`,backgroundColor:n?o:H.bgInput,position:"relative",cursor:"pointer",transition:"all 150ms",flexShrink:"0",boxSizing:"border-box"});let v=document.createElement("span");return Object.assign(v.style,{position:"absolute",top:"2px",left:n?"14px":"2px",width:"12px",height:"12px",borderRadius:"50%",backgroundColor:n?"#fff":H.textMuted,boxShadow:"0 1px 2px rgba(0,0,0,0.2)",transition:"left 150ms, background-color 150ms"}),g.appendChild(v),g.onclick=l,c.appendChild(g),c}function M7(A,n){if(A.consoleFilter){let o=A.consoleFilter;qt(A),A.consoleFilter=o,Uy(A,n)}else A.showOutlineModal?(qt(A),A.showOutlineModal=!0,Ry(A)):A.showSchemaModal?(qt(A),A.showSchemaModal=!0,ky(A)):A.showA11yModal?(qt(A),A.showA11yModal=!0,Ly(A)):A.showDesignReviewConfirm?(qt(A),A.showDesignReviewConfirm=!0,Hy(A)):A.showSettingsPopover&&(qt(A),A.showSettingsPopover=!0,Py(A))}function Vy(A,n,o){if(!A.destroyed&&!(typeof document>"u")&&!mf){gf(!0),Kw(A),A.overlayElement&&(A.overlayElement.remove(),A.overlayElement=null,document.body.style.overflow=""),A.container&&A.container.remove(),A.container=document.createElement("div"),A.container.setAttribute("data-devbar","true"),A.container.setAttribute("role","toolbar"),A.container.setAttribute("aria-label","DevBar"),document.body.appendChild(A.container);try{A.collapsed?Jw(A):A.compactMode?Sy(A,o):Ty(A,o)}catch(l){console.error("[GlobalDevBar] Render failed:",l)}try{M7(A,n)}catch(l){console.error("[GlobalDevBar] Overlay render failed:",l)}A.overlayElement&&(document.body.style.overflow="hidden"),gf(!1)}}function Gy(A){if(A.pendingViewerWindow){try{A.pendingViewerWindow.close()}catch{}A.pendingViewerWindow=null}}function Wy(A){return`ws://localhost:${A.baseWsPort}`}function Np(A){return A.wsUrlCandidates?.length?A.wsUrlCandidates:[Wy(A)]}function K7(A,n){return typeof n=="string"?n:typeof n=="number"?`ws://localhost:${n}`:Np(A)[0]??Wy(A)}function qy(A){try{let n=new URL(A);if(n.protocol!=="ws:"&&n.protocol!=="wss:")return null;let o=Number(n.port);return Number.isInteger(o)&&o>0?o:null}catch{return null}}function jy(A,n,o=100){let l=Np(A),c=l.indexOf(n);if(c>=0&&c+1<l.length){setTimeout(()=>Fa(A,l[c+1]),o);return}let m=qy(n);if(m!==null){let g=m+1;if(g<A.baseWsPort+10){setTimeout(()=>Fa(A,g),o);return}}setTimeout(()=>Fa(A),Cw)}function Fa(A,n){if(A.destroyed)return;let o=K7(A,n),l=qy(o);A.debug.ws("Connecting to WebSocket",{url:o,port:l??"same-origin",appPort:A.currentAppPort});let c=new WebSocket(o),m=!1;A.ws=c,A.wsVerified=!1,c.onopen=()=>{A.debug.ws("WebSocket socket opened, awaiting server-info"),c.send(JSON.stringify({type:"browser-client-ready"}))},c.onmessage=async g=>{try{let v=JSON.parse(g.data);if(v.type==="server-info"){let C=v.appPort;if(!(C===null||C===A.currentAppPort)){A.debug.ws("Server mismatch",{serverAppPort:C,currentAppPort:A.currentAppPort,targetUrl:o}),m=!0,c.close(),jy(A,o);return}A.wsVerified=!0,A.sweetlinkConnected=!0,A.reconnectAttempts=0,A.serverProjectDir=v.projectDir??null,A.serverGitBranch=v.gitBranch??null,A.serverAppName=v.appName??null,A.debug.ws("Server verified",{appPort:C??"any",projectDir:A.serverProjectDir,gitBranch:A.serverGitBranch}),A.settingsManager.setWebSocket(c),A.settingsManager.setConnected(!0),c.send(JSON.stringify({type:"load-settings"})),A.render();return}if(!A.wsVerified){A.debug.ws("Ignoring command before verification",{type:v.type});return}if(v.type==="hifi-screenshot"){A.capturing=!1,A.render();return}if(v.type==="record-start-response"&&v.success){A.recordingActive=!0,A.recordingSessionId=v.sessionId??null,A.recordingStartedAt=Date.now(),A.recordingTimer=setInterval(()=>A.render(),1e3),A.render();return}if(v.type==="record-stop-response"||v.type==="record-stop"){if(A.recordingActive=!1,A.recordingTimer&&clearInterval(A.recordingTimer),A.recordingTimer=null,A.recordingStartedAt=null,v.success){let E=v.viewerUrl;E&&A.pendingViewerWindow?(A.pendingViewerWindow.location.href=E,A.pendingViewerWindow=null):Gy(A),E&&(A.lastViewerPath=E)}else Gy(A);A.render();return}let b=v;A.debug.ws("Received command",{type:b.type}),await fK(A,b)}catch(v){console.error("[GlobalDevBar] Error handling command:",v)}},c.onclose=()=>{if(A.wsVerified){if(A.sweetlinkConnected=!1,A.wsVerified=!1,A.serverProjectDir=null,A.settingsManager.setConnected(!1),A.debug.ws("WebSocket disconnected"),A.render(),!A.destroyed&&A.reconnectAttempts<zs){let g=Bw*2**A.reconnectAttempts;A.reconnectAttempts++,A.debug.ws("Scheduling reconnect",{attempt:A.reconnectAttempts,delayMs:g}),A.reconnectTimeout=setTimeout(()=>Fa(A,A.baseWsPort),Math.min(g,yw))}}else if(!A.destroyed&&!m){let g=Np(A),v=g.indexOf(o);v>=0&&v+1<g.length&&(A.debug.ws("WebSocket closed before verification, trying next candidate"),jy(A,o))}},c.onerror=()=>{A.debug.ws("WebSocket error")}}function vu(A,n,o=ea){return(l,c)=>{si(l,A,c[n],o)}}function wu(A,n){return(o,l)=>{n&&(o[n]=!1),console.error(`[GlobalDevBar] ${A} failed:`,l.error),n&&o.render()}}var V7=vu("outline","outlinePath"),G7=vu("schema","schemaPath"),j7=vu("consoleLogs","consoleLogsPath"),W7=vu("a11y","a11yPath"),q7=(A,n)=>{A.capturing=!1,si(A,"screenshot",n.path,ea)},z7=wu("Outline save"),X7=wu("Schema save"),Y7=wu("Console logs save","savingConsoleLogs"),J7=wu("A11y save","savingA11yAudit");async function $7(A,n){let o=n.selector&&document.querySelector(n.selector)||document.body,c=await(await ai())(o,{logging:!1,useCORS:!0,allowTaint:!0});A.send(JSON.stringify({success:!0,data:{screenshot:c.toDataURL("image/png"),width:c.width,height:c.height,selector:n.selector||"body"},timestamp:Date.now()}))}function Z7(A,n,o){let l=A.consoleLogs;if(o.filter){let c=o.filter.toLowerCase();l=l.filter(m=>m.level.includes(c)||m.message.toLowerCase().includes(c))}n.send(JSON.stringify({success:!0,data:l,timestamp:Date.now()}))}function eK(A,n){if(n.selector){let l=Array.from(document.querySelectorAll(n.selector)).map(c=>n.property?c[n.property]??null:{tagName:c.tagName,className:c.className,id:c.id,textContent:c.textContent?.trim().slice(0,100)});A.send(JSON.stringify({success:!0,data:{count:l.length,results:l},timestamp:Date.now()}))}}function tK(A,n){if(n.code&&typeof n.code=="string"&&n.code.length<=1e4)try{let l=(0,eval)(n.code);A.send(JSON.stringify({success:!0,data:l,timestamp:Date.now()}))}catch(o){A.send(JSON.stringify({success:!1,error:o instanceof Error?o.message:"Execution failed",timestamp:Date.now()}))}}async function rK(A,n){try{let o=await Xs(n.forceRefresh),l={critical:0,serious:0,moderate:0,minor:0};for(let c of o.violations)l[c.impact]=(l[c.impact]||0)+1;A.send(JSON.stringify({success:!0,data:{result:o,summary:{totalViolations:o.violations.length,totalPasses:o.passes.length,totalIncomplete:o.incomplete.length,byImpact:l},url:window.location.href,title:document.title,timestamp:Date.now()},timestamp:Date.now()}))}catch(o){A.send(JSON.stringify({success:!1,error:o instanceof Error?o.message:"Accessibility audit failed",timestamp:Date.now()}))}}function nK(A){try{let n=YA(),o=hA(n);A.send(JSON.stringify({success:!0,data:{outline:n,markdown:o,url:window.location.href,title:document.title,timestamp:Date.now()},timestamp:Date.now()}))}catch(n){A.send(JSON.stringify({success:!1,error:n instanceof Error?n.message:"Outline extraction failed",timestamp:Date.now()}))}}function AK(A){try{let n=JA(),o=$A(n);A.send(JSON.stringify({success:!0,data:{schema:n,markdown:o,url:window.location.href,title:document.title,timestamp:Date.now()},timestamp:Date.now()}))}catch(n){A.send(JSON.stringify({success:!1,error:n instanceof Error?n.message:"Schema extraction failed",timestamp:Date.now()}))}}async function aK(A){try{let o=performance.getEntriesByType("paint").find(q=>q.name==="first-contentful-paint"),l=o?Math.round(o.startTime):null,c=q=>new Promise(ae=>{try{let Z=[],he=new PerformanceObserver(Se=>{Z.push(...Se.getEntries())});he.observe({type:q,buffered:!0}),setTimeout(()=>{he.disconnect(),ae(Z)},0)}catch{ae([])}}),[m,g,v]=await Promise.all([c("largest-contentful-paint"),c("layout-shift"),c("event")]),b=m.length>0?Math.round(m[m.length-1].startTime):null,C=null;if(g.length>0){let q=0;for(let ae of g){let Z=ae;Z.hadRecentInput||(q+=Z.value)}C=Math.round(q*1e3)/1e3}let E=null;if(v.length>0){let q=0;for(let ae of v){let Z=ae;Z.duration>q&&(q=Z.duration)}E=Math.round(q)}let D=null,R=performance.getEntriesByType("resource"),k=0;for(let q of R)k+=q.transferSize||0;k>0&&(D=k);let G={fcp:l,lcp:b,cls:C,inp:E,pageSize:D,url:window.location.href,title:document.title,timestamp:Date.now()},W=[];l!==null&&W.push(`FCP: ${l}ms`),b!==null&&W.push(`LCP: ${b}ms`),C!==null&&W.push(`CLS: ${C}`),E!==null&&W.push(`INP: ${E}ms`),D!==null&&W.push(`Page size: ${Math.round(D/1024)}KB`),A.send(JSON.stringify({success:!0,data:{vitals:G,summary:W.join(", ")||"No metrics available yet"},timestamp:Date.now()}))}catch(n){A.send(JSON.stringify({success:!1,error:n instanceof Error?n.message:"Vitals collection failed",timestamp:Date.now()}))}}function oK(A){try{window.location.reload(),A.send(JSON.stringify({success:!0,timestamp:Date.now()}))}catch(n){A.send(JSON.stringify({success:!1,error:n instanceof Error?n.message:"Refresh failed",timestamp:Date.now()}))}}function iK(A,n){A.designReviewInProgress=!1,si(A,"designReview",n.reviewPath,rf)}function sK(A,n){A.designReviewInProgress=!1,A.designReviewError=n.error||"Unknown error",console.error("[GlobalDevBar] Design review failed:",n.error),A.designReviewErrorTimeout&&clearTimeout(A.designReviewErrorTimeout),A.designReviewErrorTimeout=setTimeout(()=>{A.designReviewError=null,A.render()},rf),A.render()}function lK(A,n){let o=n;A.apiKeyStatus={configured:o.configured??!1,model:o.model,pricing:o.pricing},A.render()}function uK(A,n){pK(A,n.settings)}function cK(A,n){A.debug.state("Settings saved to server",{path:n.settingsPath})}function dK(A){console.error("[GlobalDevBar] Settings operation failed:",A.error)}async function fK(A,n){let o=A.ws;if(!(!o||o.readyState!==WebSocket.OPEN))switch(n.type){case"screenshot":await $7(o,n);break;case"get-logs":Z7(A,o,n);break;case"query-dom":eK(o,n);break;case"exec-js":tK(o,n);break;case"get-a11y":await rK(o,n);break;case"get-outline":nK(o);break;case"get-schema":AK(o);break;case"get-vitals":await aK(o);break;case"refresh":oK(o);break;case"screenshot-saved":q7(A,n);break;case"design-review-saved":iK(A,n);break;case"design-review-error":sK(A,n);break;case"api-key-status":lK(A,n);break;case"outline-saved":V7(A,n);break;case"outline-error":z7(A,n);break;case"schema-saved":G7(A,n);break;case"schema-error":X7(A,n);break;case"console-logs-saved":j7(A,n);break;case"console-logs-error":Y7(A,n);break;case"a11y-saved":W7(A,n);break;case"a11y-error":J7(A,n);break;case"settings-loaded":uK(A,n);break;case"settings-saved":cK(A,n);break;case"settings-error":dK(n);break;default:break}}function si(A,n,o,l){if(o){switch(n){case"screenshot":A.lastScreenshot=o,A.screenshotTimeout&&clearTimeout(A.screenshotTimeout),A.screenshotTimeout=setTimeout(()=>{A.lastScreenshot=null,A.render()},l);break;case"designReview":A.lastDesignReview=o,A.designReviewTimeout&&clearTimeout(A.designReviewTimeout),A.designReviewTimeout=setTimeout(()=>{A.lastDesignReview=null,A.render()},l);break;case"outline":A.savingOutline=!1,A.lastOutline=o,A.outlineTimeout&&clearTimeout(A.outlineTimeout),A.outlineTimeout=setTimeout(()=>{A.lastOutline=null,A.render()},l);break;case"schema":A.savingSchema=!1,A.lastSchema=o,A.schemaTimeout&&clearTimeout(A.schemaTimeout),A.schemaTimeout=setTimeout(()=>{A.lastSchema=null,A.render()},l);break;case"consoleLogs":A.savingConsoleLogs=!1,A.lastConsoleLogs=o,A.consoleLogsTimeout&&clearTimeout(A.consoleLogsTimeout),A.consoleLogsTimeout=setTimeout(()=>{A.lastConsoleLogs=null,A.render()},l);break;case"a11y":A.savingA11yAudit=!1,A.lastA11yAudit=o,A.a11yTimeout&&clearTimeout(A.a11yTimeout),A.a11yTimeout=setTimeout(()=>{A.lastA11yAudit=null,A.render()},l);break}A.render()}}function pK(A,n){if(!n){A.debug.state("No server settings found, using local");return}A.debug.state("Settings loaded from server",n),A.settingsManager.handleSettingsLoaded(n),A.applySettings(n)}function hK(A,n){let o=[],l=m=>{m&&!o.includes(m)&&o.push(m)};l(n.wsUrl),n.wsPath&&l(bw(A,n.wsPath));let c=ZA(n.wsPort)??n.fallbackPort;return l(`ws://localhost:${c}`),o}var Ar=new qs({trackCounts:!0});Ar.importEarlyLogs();Ar.start();Ar.startErrorHandlers();var Bu=class A{static CONTROLS_KEY="__YTSPAR_DEVBAR_CONTROLS__";static get customControls(){return typeof window>"u"?[]:window[A.CONTROLS_KEY]??[]}static set customControls(n){typeof window<"u"&&(window[A.CONTROLS_KEY]=n)}options;forcedThemeMode;debugConfig;debug;container=null;ws=null;consoleLogs=[];sweetlinkConnected=!1;collapsed=!1;capturing=!1;copiedToClipboard=!1;copiedPath=!1;lastScreenshot=null;designReviewInProgress=!1;lastDesignReview=null;designReviewError=null;showDesignReviewConfirm=!1;apiKeyStatus=null;lastOutline=null;lastSchema=null;savingOutline=!1;savingSchema=!1;consoleFilter=null;savingConsoleLogs=!1;lastConsoleLogs=null;consoleLogsTimeout;showOutlineModal=!1;showSchemaModal=!1;showA11yModal=!1;a11yLoading=!1;lastA11yAudit=null;savingA11yAudit=!1;a11yTimeout=null;recordingActive=!1;recordingSessionId=null;recordingStartedAt=null;recordingTimer=null;lastViewerPath=null;pendingViewerWindow=null;demoActive=!1;demoTitle=null;demoSectionCount=0;rulerMode=!1;rulerOverlay=null;rulerPinnedElements=[];rulerCleanup=null;activeTooltips=new Set;breakpointInfo=null;perfStats=null;lcpValue=null;clsValue=0;inpValue=0;reconnectAttempts=0;currentAppPort;baseWsPort;wsUrlCandidates;wsVerified=!1;serverProjectDir=null;serverGitBranch=null;serverAppName=null;lastDotPosition=null;reconnectTimeout=null;screenshotTimeout=null;copiedPathTimeout=null;designReviewTimeout=null;designReviewErrorTimeout=null;outlineTimeout=null;schemaTimeout=null;resizeHandler=null;keydownHandler=null;fcpObserver=null;lcpObserver=null;clsObserver=null;inpObserver=null;destroyed=!1;themeMode="system";themeMediaQuery=null;themeMediaHandler=null;compactMode=!1;showSettingsPopover=!1;overlayElement=null;settingsManager;logChangeListener=null;constructor(n={}){if(this.debugConfig=Ow(n.debug),this.debug=new Js(this.debugConfig),this.forcedThemeMode=n.themeMode,this.settingsManager=Zw(n.defaultThemeMode?{themeMode:n.defaultThemeMode}:{}),this.forcedThemeMode&&this.settingsManager.saveSettingsNow({themeMode:this.forcedThemeMode}),typeof window<"u"){let o=vw(window),l=n.sweetlink,c=l?.appPort??ww(window.location,o);this.currentAppPort=c,this.baseWsPort=l?.wsPort??ZA(o.wsPort)??gw(c),this.wsUrlCandidates=hK(window.location,{wsUrl:l?.wsUrl??o.wsUrl,wsPort:l?.wsPort??o.wsPort,wsPath:l?.wsPath??o.wsPath,fallbackPort:this.baseWsPort})}else this.currentAppPort=0,this.baseWsPort=9223,this.wsUrlCandidates=[`ws://localhost:${9223}`];this.options={position:n.position??"bottom-left",accentColor:n.accentColor??H.primary,showMetrics:{breakpoint:n.showMetrics?.breakpoint??!0,fcp:n.showMetrics?.fcp??!0,lcp:n.showMetrics?.lcp??!0,cls:n.showMetrics?.cls??!0,inp:n.showMetrics?.inp??!0,pageSize:n.showMetrics?.pageSize??!0},showScreenshot:n.showScreenshot??!0,showConsoleBadges:n.showConsoleBadges??!0,showTooltips:n.showTooltips??!0,saveLocation:n.saveLocation??"auto",screenshotQuality:n.screenshotQuality??.65,sizeOverrides:n.sizeOverrides},this.debug.lifecycle("GlobalDevBar constructed",{options:this.options})}getLogCounts(){return{errorCount:Ar.getErrorCount(),warningCount:Ar.getWarningCount(),infoCount:Ar.getInfoCount()}}resetPositionStyles(n){Object.assign(n.style,{top:"",bottom:"",left:"",right:"",transform:""})}createCollapsedBadge(n,o,l){let c=document.createElement("span");return Object.assign(c.style,{position:"absolute",top:"-6px",right:l,minWidth:"16px",height:"16px",padding:"0 4px",borderRadius:"9999px",backgroundColor:o,color:ce.white,fontSize:"0.5625rem",fontWeight:"600",display:"flex",alignItems:"center",justifyContent:"center"}),c.textContent=n>99?"!":String(n),c}static registerControl(n){A.customControls=A.customControls.filter(l=>l.id!==n.id),A.customControls.push(n);let o=bu();o&&o.render()}static unregisterControl(n){A.customControls=A.customControls.filter(l=>l.id!==n);let o=bu();o&&o.render()}static getControls(){return[...A.customControls]}static clearControls(){A.customControls=[];let n=bu();n&&n.render()}init(){typeof window>"u"||this.destroyed||(this.debug.lifecycle("Initializing DevBar"),this.injectStyles(),this.consoleLogs=Ar.getLogs(),this.debug.lifecycle("Copied console logs",{count:this.consoleLogs.length}),this.logChangeListener=()=>{this.consoleLogs=Ar.getLogs(),this.overlayElement||this.render()},Ar.addListener(this.logChangeListener),My(this),Ny(this),this.connectWebSocket(),Lw(this),Mw(this),kw(this),this.render(),this.debug.lifecycle("DevBar initialized successfully"))}getPosition(){return this.options.position}destroy(){this.debug.lifecycle("Destroying DevBar"),this.destroyed=!0,this.reconnectAttempts=zs,this.reconnectTimeout&&clearTimeout(this.reconnectTimeout),this.ws&&this.ws.close(),this.screenshotTimeout&&clearTimeout(this.screenshotTimeout),this.copiedPathTimeout&&clearTimeout(this.copiedPathTimeout),this.designReviewTimeout&&clearTimeout(this.designReviewTimeout),this.outlineTimeout&&clearTimeout(this.outlineTimeout),this.schemaTimeout&&clearTimeout(this.schemaTimeout),this.consoleLogsTimeout&&clearTimeout(this.consoleLogsTimeout),this.a11yTimeout&&clearTimeout(this.a11yTimeout),this.resizeHandler&&window.removeEventListener("resize",this.resizeHandler),this.keydownHandler&&window.removeEventListener("keydown",this.keydownHandler),this.fcpObserver&&this.fcpObserver.disconnect(),this.lcpObserver&&this.lcpObserver.disconnect(),this.clsObserver&&this.clsObserver.disconnect(),this.inpObserver&&this.inpObserver.disconnect(),this.themeMediaQuery&&this.themeMediaHandler&&this.themeMediaQuery.removeEventListener("change",this.themeMediaHandler),this.logChangeListener&&(Ar.removeListener(this.logChangeListener),this.logChangeListener=null),Ar.stop(),this.container&&(this.container.remove(),this.container=null),this.overlayElement&&(this.overlayElement.remove(),this.overlayElement=null,document.body.style.overflow=""),this.debug.lifecycle("DevBar destroyed")}injectStyles(){let n="devbar-styles";if(!document.getElementById(n)){let o=document.createElement("style");o.id=n,o.textContent=Uw,document.head.appendChild(o)}}connectWebSocket(n){Fa(this,n)}handleNotification(n,o,l){si(this,n,o,l)}applySettings(n){let o=this.forcedThemeMode?{...n,themeMode:this.forcedThemeMode}:n,l=this.themeMode;this.forcedThemeMode&&this.settingsManager.get("themeMode")!==this.forcedThemeMode&&this.settingsManager.saveSettingsNow({themeMode:this.forcedThemeMode}),this.themeMode=o.themeMode,this.compactMode=o.compactMode,this.options.position=o.position,this.options.accentColor=o.accentColor,this.options.showScreenshot=o.showScreenshot,this.options.showConsoleBadges=o.showConsoleBadges,this.options.showTooltips=o.showTooltips,this.options.saveLocation=o.saveLocation,this.options.screenshotQuality=o.screenshotQuality??.65,this.options.showMetrics={...o.showMetrics},na(ra(o.themeMode)),l!==o.themeMode&&typeof window<"u"&&window.dispatchEvent(new CustomEvent("devbar-theme-change",{detail:{mode:o.themeMode}})),this.render()}clearConsoleLogs(){Ar.clear(),this.consoleLogs=[],this.consoleFilter=null,this.render()}handleScreenshot(n){return ly(this,n)}getThemeMode(){return this.themeMode}setThemeMode(n){hu(this,n)}getColors(){return Fw(this.themeMode)}toggleCompactMode(){this.compactMode=!this.compactMode,this.settingsManager.saveSettings({compactMode:this.compactMode}),this.debug.state("Compact mode toggled",{compactMode:this.compactMode}),this.render()}isCompactMode(){return this.compactMode}render(){Vy(this,Ar,A.customControls)}},Yy="__YTSPAR_DEVBAR_INSTANCE__";function bu(){return typeof window>"u"?null:window[Yy]??null}function Xy(A){typeof window>"u"||(window[Yy]=A)}function yu(A){let n=bu();if(n){let l=n.getPosition(),c=A?.position??"bottom-left";if(l===c)return n;n.destroy(),Xy(null)}let o=new Bu(A);return o.init(),Xy(o),o}typeof window<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>yu()):yu());export{yu as initGlobalDevBar};
|
package/dist/browser/devbar.js
CHANGED
|
@@ -366,13 +366,23 @@ ${A.stack}`:""}`;if(typeof A=="string"||typeof A=="number"||typeof A=="boolean")
|
|
|
366
366
|
}
|
|
367
367
|
@media (max-width: 1120px) {
|
|
368
368
|
[data-devbar-custom-controls="true"] .devbar-main {
|
|
369
|
-
flex-
|
|
369
|
+
flex-direction: column;
|
|
370
|
+
flex-wrap: nowrap !important;
|
|
371
|
+
align-items: center !important;
|
|
372
|
+
justify-content: center !important;
|
|
370
373
|
row-gap: 0.5rem;
|
|
374
|
+
width: fit-content !important;
|
|
375
|
+
max-width: 100%;
|
|
371
376
|
}
|
|
372
377
|
[data-devbar-custom-controls="true"] .devbar-status,
|
|
373
378
|
[data-devbar-custom-controls="true"] .devbar-custom-controls-inline,
|
|
374
379
|
[data-devbar-custom-controls="true"] .devbar-actions {
|
|
375
|
-
flex:
|
|
380
|
+
flex: 0 1 auto !important;
|
|
381
|
+
width: fit-content !important;
|
|
382
|
+
max-width: 100%;
|
|
383
|
+
}
|
|
384
|
+
[data-devbar-custom-controls="true"] .devbar-status {
|
|
385
|
+
justify-content: center !important;
|
|
376
386
|
}
|
|
377
387
|
[data-devbar-custom-controls="true"] .devbar-custom-controls-inline {
|
|
378
388
|
justify-content: center !important;
|
|
@@ -521,6 +531,6 @@ ${v}
|
|
|
521
531
|
`;function di(A,n={}){let{format:o="jpeg",quality:l=.7}=n;return o==="png"?A.toDataURL("image/png"):A.toDataURL("image/jpeg",l)}function g7(){if(document.getElementById(my))return()=>{};let n=document.createElement("style");return n.id=my,n.textContent=m7,document.head.appendChild(n),()=>{n.remove()}}function fi(A={}){document.body.classList.add("devbar-capturing"),document.activeElement instanceof HTMLElement&&document.activeElement.blur();let n=A.hideDevbar?g7():null;return()=>{n?.(),document.body.classList.remove("devbar-capturing")}}function pi(A){return new Promise(n=>setTimeout(n,A))}async function Bu(A){return new Promise((n,o)=>{A.toBlob(async l=>{if(!l){o(new Error("Failed to create blob from canvas"));return}try{await navigator.clipboard.write([new ClipboardItem({"image/png":l})]),n()}catch(c){o(c)}},"image/png")})}function gy(A,n,o){let l=new Blob([n],{type:o}),c=URL.createObjectURL(l),h=document.createElement("a");h.href=c,h.download=A,h.click(),URL.revokeObjectURL(c)}function vy(A,n){let o=document.createElement("a");o.href=n,o.download=A,o.click()}function yu(A,n){if(Mn(A.options.saveLocation,A.sweetlinkConnected)==="local"&&A.ws?.readyState===WebSocket.OPEN)A[n.savingFlag]=!0,A.render(),A.ws.send(JSON.stringify({type:n.type,data:n.data}));else{let l=new Date().toISOString().replace(/[:.]/g,"-").slice(0,19);gy(`${n.downloadFilename}-${l}.md`,n.downloadContent,n.downloadMimeType),A.handleNotification(n.notificationKey,n.notificationMessage,sa)}}function wy(A,n){return{logging:!1,useCORS:!0,allowTaint:!0,scale:A,windowWidth:window.innerWidth,windowHeight:window.innerHeight,scrollX:n?-window.scrollX:0,scrollY:n?-window.scrollY:0,ignoreElements:o=>o.hasAttribute("data-devbar"),onclone:(o,l)=>{let c=document.createElement("style");c.textContent=["*, *::before, *::after {"," animation: none !important;"," mix-blend-mode: normal !important;","}"].join(`
|
|
522
532
|
`),l.ownerDocument.head.appendChild(c)}}}function v7(A,n){let o=window.innerWidth*n,l=window.innerHeight*n,c=window.scrollX*n,h=window.scrollY*n;if(A.width<=o&&A.height<=l)return A;let g=document.createElement("canvas");g.width=o,g.height=l;let v=g.getContext("2d");return v?(v.drawImage(A,c,h,o,l,0,0,o,l),g):A}async function by(A,n){try{await navigator.clipboard.writeText(n),A.copiedPath=!0,A.copiedPathTimeout&&clearTimeout(A.copiedPathTimeout),A.copiedPathTimeout=setTimeout(()=>{A.copiedPath=!1,A.render()},df),A.render()}catch(o){console.error("[GlobalDevBar] Failed to copy path:",o)}}async function By(A,n=!1){if(A.capturing)return;let o=Mn(A.options.saveLocation,A.sweetlinkConnected);if(!n&&o==="local"&&!A.sweetlinkConnected)return;let l=null;try{A.capturing=!0,A.render(),l=fi(),await pi(pf);let h=await(await kA())(document.body,wy(hf,n));l(),l=null;let g=n?v7(h,hf):h;if(n)try{await Bu(g),A.copiedToClipboard=!0,A.render(),A.screenshotTimeout&&clearTimeout(A.screenshotTimeout),A.screenshotTimeout=setTimeout(()=>{A.copiedToClipboard=!1,A.render()},df)}catch(v){console.error("[GlobalDevBar] Failed to copy to clipboard:",v)}else{let v=di(g,{format:"jpeg",quality:A.options.screenshotQuality});if(o==="local"&&A.ws?.readyState===WebSocket.OPEN){let b={};A.lcpValue!==null&&(b.lcp=Math.round(A.lcpValue)),A.clsValue>0&&(b.cls=A.clsValue),A.inpValue>0&&(b.inp=Math.round(A.inpValue));let C=performance.getEntriesByType("paint").find(R=>R.name==="first-contentful-paint");C&&(b.fcp=Math.round(C.startTime));let E=0,F=performance.getEntriesByType("navigation")[0];F&&(E+=F.transferSize||0),performance.getEntriesByType("resource").forEach(R=>{E+=R.transferSize||0}),A.ws.send(JSON.stringify({type:"save-screenshot",data:{screenshot:v,width:g.width,height:g.height,logs:A.consoleLogs,url:window.location.href,timestamp:Date.now(),webVitals:Object.keys(b).length>0?b:void 0,pageSize:E>0?E:void 0}}))}else{let b=new Date().toISOString().replace(/[:.]/g,"-").slice(0,19);vy(`devbar-screenshot-${b}.jpg`,v),A.handleNotification("screenshot","screenshot downloaded",sa)}}}catch(c){console.error("[GlobalDevBar] Screenshot failed:",c),l&&l()}finally{A.capturing=!1,A.render()}}async function w7(A){if(A.designReviewInProgress||!A.sweetlinkConnected)return;let n=null;try{A.designReviewInProgress=!0,A.designReviewError=null,A.designReviewErrorTimeout&&(clearTimeout(A.designReviewErrorTimeout),A.designReviewErrorTimeout=null),A.render(),n=fi(),await pi(pf);let l=await(await kA())(document.body,wy(1,!1));n(),n=null;let c=di(l,{format:"png"});A.ws?.readyState===WebSocket.OPEN&&A.ws.send(JSON.stringify({type:"design-review-screenshot",data:{screenshot:c,width:l.width,height:l.height,logs:A.consoleLogs,url:window.location.href,timestamp:Date.now()}}))}catch(o){console.error("[GlobalDevBar] Design review failed:",o),n&&n(),A.designReviewInProgress=!1,A.render()}}function yy(A){A.sweetlinkConnected&&(A.ws?.readyState===WebSocket.OPEN&&A.ws.send(JSON.stringify({type:"check-api-key"})),qt(A),A.showDesignReviewConfirm=!0,A.render())}function Cy(A){if(!A.apiKeyStatus?.pricing)return null;let n=window.innerWidth,o=window.innerHeight,l=Math.ceil(n*o/750),c=500,h=1500,g=l+c,{input:v,output:b}=A.apiKeyStatus.pricing,C=g/1e6*v,E=h/1e6*b,F=C+E;return{tokens:g+h,cost:F<.01?"<$0.01":`~$${F.toFixed(2)}`}}function Ey(A){A.showDesignReviewConfirm=!1,A.apiKeyStatus=null,A.render()}function xy(A){A.showDesignReviewConfirm=!1,w7(A)}function qp(A,n){let o=A[n];qt(A),A[n]=!o,A.render()}function Fy(A){qp(A,"showOutlineModal")}function Dy(A){qp(A,"showSchemaModal")}function Qy(A){qp(A,"showA11yModal")}function Sy(A,n){if(A.savingA11yAudit)return;let o=ll(n);yu(A,{type:"save-a11y",data:{markdown:o,url:window.location.href,title:document.title,timestamp:Date.now()},savingFlag:"savingA11yAudit",downloadFilename:"a11y-audit",downloadContent:o,downloadMimeType:"text/markdown",notificationKey:"a11y",notificationMessage:"a11y report downloaded"})}function Uy(A){if(A.savingOutline)return;let n=vA(),o=Hn(n);yu(A,{type:"save-outline",data:{outline:n,markdown:o,url:window.location.href,title:document.title,timestamp:Date.now()},savingFlag:"savingOutline",downloadFilename:"outline",downloadContent:o,downloadMimeType:"text/markdown",notificationKey:"outline",notificationMessage:"outline downloaded"})}function zp(A){return A.length===0?"_No logs_":A.map(n=>`- **[${new Date(n.timestamp).toLocaleTimeString()}]** \`${n.level}\` ${n.message}`).join(`
|
|
523
533
|
`)}function Ty(A,n){if(A.savingConsoleLogs)return;let o=zp(n);yu(A,{type:"save-console-logs",data:{logs:n,markdown:o,url:window.location.href,title:document.title,timestamp:Date.now()},savingFlag:"savingConsoleLogs",downloadFilename:"console-logs",downloadContent:o,downloadMimeType:"text/markdown",notificationKey:"consoleLogs",notificationMessage:"console logs downloaded"})}function Iy(A){if(A.savingSchema)return;let n=wA(),o=tl(n),l=el(),c=bA(n,{missingTags:o,favicons:l});yu(A,{type:"save-schema",data:{schema:n,markdown:c,url:window.location.href,title:document.title,timestamp:Date.now()},savingFlag:"savingSchema",downloadFilename:"schema",downloadContent:c,downloadMimeType:"text/markdown",notificationKey:"schema",notificationMessage:"schema downloaded"})}function hi(A,n,o){if(Ff(o)){A.addSuccess(`${n} simulated`,o),A.addWarning(ib());return}let l=o.endsWith("downloaded");A.addSuccess(l?`${n} downloaded!`:`${n} saved!`,l?void 0:o)}function Zn(A,n,o,l){let h={error:"error",warn:"warning",info:"info"}[n],g=A.consoleFilter===n,v=document.createElement("span");return v.className="devbar-badge",Object.assign(v.style,{display:"flex",alignItems:"center",justifyContent:"center",minWidth:"18px",height:"18px",padding:"0 5px",borderRadius:"9999px",backgroundColor:l,color:"#fff",fontSize:"0.625rem",fontWeight:"600",cursor:"pointer",boxShadow:g?`0 0 8px ${J(l,80)}`:"none"}),v.textContent=o>99?"99+":String(o),Er(A,v,()=>`${o} console ${h}${o===1?"":"s"} (click to view)`),v.onclick=()=>{let b=A.consoleFilter===n?null:n;qt(A),A.consoleFilter=b,A.render()},v}function Cu(A,n){let o=document.createElement("button");o.type="button",o.setAttribute("aria-label","Screenshot");let l=A.copiedToClipboard||A.copiedPath||A.lastScreenshot,c=A.capturing,h=Mn(A.options.saveLocation,A.sweetlinkConnected),g=h==="local"&&!A.sweetlinkConnected&&!l;return en(A,o,n,(v,b)=>{if(A.copiedToClipboard){b.addSuccess("Copied to clipboard!");return}if(A.copiedPath){b.addSuccess("Path copied to clipboard!");return}if(A.lastScreenshot){let C=A.lastScreenshot;if(Ff(C)){hi(b,"Screenshot",C);return}if(C.endsWith("downloaded"))b.addSuccess("Screenshot downloaded!");else{b.addSuccess("Screenshot saved!",C);let F=document.createElement("div");Object.assign(F.style,{color:n,cursor:"pointer",fontSize:"0.625rem",marginTop:"6px",opacity:"0.8",transition:"opacity 150ms"}),F.textContent="copy path",F.onmouseenter=()=>{F.style.opacity="1"},F.onmouseleave=()=>{F.style.opacity="0.8"},F.onclick=async R=>{R.stopPropagation();try{await navigator.clipboard.writeText(C),F.textContent="\u2713 copied!",F.style.cursor="default",F.onclick=null}catch{F.textContent="\xD7 failed to copy",F.style.color=H.error}},v.appendChild(F)}return}if(b.addTitle("Screenshot"),b.addSectionHeader("Actions"),h==="local"&&!A.sweetlinkConnected)b.addShortcut("Shift+Click","Copy to clipboard"),b.addWarning("Sweetlink not connected. Switch save method to Auto or Download.");else{let C=h==="local"?"Save to file":"Download";b.addShortcut("Click",C),b.addShortcut("Shift+Click","Copy to clipboard"),b.addShortcut("Alt+Click","HiFi screenshot (pixel-perfect via daemon)"),b.addSectionHeader("Keyboard"),b.addShortcut("Cmd or Ctrl+Shift+S",C),b.addShortcut("Cmd or Ctrl+Shift+C","Copy")}}),Object.assign(o.style,{display:"flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",minWidth:"24px",minHeight:"24px",flexShrink:"0",borderRadius:"50%",border:"1px solid",borderColor:l?n:J(n,50),backgroundColor:l?J(n,20):"transparent",color:l?n:J(n,60),cursor:c?"not-allowed":"pointer",opacity:g?"0.4":"1",transition:"all 150ms"}),o.disabled=c,o.onclick=v=>{if(v.altKey){if(!A.ws||!A.sweetlinkConnected)return;A.ws.send(JSON.stringify({type:"hifi-screenshot"})),A.capturing=!0,A.render();return}A.lastScreenshot&&!v.shiftKey?by(A,A.lastScreenshot):A.handleScreenshot(v.shiftKey)},A.copiedToClipboard||A.copiedPath||A.lastScreenshot?(o.textContent="\u2713",o.style.fontSize="0.6rem"):A.capturing?(o.textContent="...",o.style.fontSize="0.5rem"):o.appendChild(Pr("M19.844 7.938H7.938v11.905m0 11.113v11.906h11.905m23.019-11.906v11.906H30.956m11.906-23.018V7.938H30.956",{viewBox:"0 0 50.8 50.8",stroke:!0,strokeWidth:"4",children:[{type:"circle",cx:"25.4",cy:"25.4",r:"8.731"}]})),o}function _y(A){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","AI Design Review");let o=!!A.designReviewError,l=A.designReviewInProgress||!!A.lastDesignReview||o,c=A.designReviewInProgress||!A.sweetlinkConnected,h=o?H.error:Me.review;return en(A,n,h,(g,v)=>{if(A.designReviewInProgress){v.addProgress("AI Design Review in progress...");return}if(A.designReviewError){v.addError("Design review failed",A.designReviewError);return}if(A.lastDesignReview){hi(v,"Design review",A.lastDesignReview);return}v.addTitle("AI Design Review"),v.addDescription("Captures screenshot and sends to Claude for design analysis."),v.addSectionHeader("Requirements"),v.addShortcut("API Key","ANTHROPIC_API_KEY"),tn()&&v.addWarning("Demo mode: no Claude request will be sent."),A.sweetlinkConnected||v.addWarning("Sweetlink not connected")}),Object.assign(n.style,Nr(h,l,c)),A.sweetlinkConnected||(n.style.opacity="0.5"),n.disabled=c,n.onclick=()=>yy(A),A.designReviewInProgress?(n.textContent="~",n.style.fontSize="0.5rem",n.style.animation="pulse 1s infinite"):A.designReviewError?(n.textContent="\xD7",n.style.fontSize="0.875rem",n.style.fontWeight="bold"):A.lastDesignReview?(n.textContent="v",n.style.fontSize="0.5rem"):n.appendChild(Pr("M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z",{fill:!0})),n}function Ry(A){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Document Outline");let o=A.showOutlineModal||!!A.lastOutline;return en(A,n,Me.outline,(l,c)=>{if(A.lastOutline){hi(c,"Outline",A.lastOutline);return}c.addTitle("Document Outline"),c.addDescription("View page heading structure and save as markdown."),tn()&&c.addWarning("Demo mode: save actions return example paths only."),A.options.saveLocation==="local"&&!A.sweetlinkConnected&&c.addWarning("Sweetlink not connected. Switch save method to Auto or Download.")}),Object.assign(n.style,Nr(Me.outline,o,!1)),n.onclick=()=>Fy(A),A.lastOutline?(n.textContent="v",n.style.fontSize="0.5rem"):n.appendChild(Pr("M3 4h18v2H3V4zm0 7h12v2H3v-2zm0 7h18v2H3v-2z",{fill:!0})),n}function Oy(A){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Page Schema");let o=A.showSchemaModal||!!A.lastSchema;return en(A,n,Me.schema,(l,c)=>{if(A.lastSchema){hi(c,"Schema",A.lastSchema);return}c.addTitle("Page Schema"),c.addDescription("View JSON-LD, Open Graph, and other structured data."),tn()&&c.addWarning("Demo mode: save actions return example paths only."),A.options.saveLocation==="local"&&!A.sweetlinkConnected&&c.addWarning("Sweetlink not connected. Switch save method to Auto or Download.")}),Object.assign(n.style,Nr(Me.schema,o,!1)),n.onclick=()=>Dy(A),A.lastSchema?(n.textContent="v",n.style.fontSize="0.5rem"):n.appendChild(Pr("M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z",{fill:!0})),n}function ky(A){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Accessibility Audit");let o=A.showA11yModal||!!A.lastA11yAudit;return en(A,n,Me.a11y,(l,c)=>{if(A.lastA11yAudit){hi(c,"A11y report",A.lastA11yAudit);return}c.addTitle("Accessibility Audit"),c.addDescription("Run axe-core audit to check WCAG compliance."),tn()&&c.addWarning("Demo mode: save actions return example paths only."),A.options.saveLocation==="local"&&!A.sweetlinkConnected&&c.addWarning("Sweetlink not connected. Switch save method to Auto or Download.")}),n.addEventListener("mouseenter",()=>yf(),{once:!0}),Object.assign(n.style,Nr(Me.a11y,o,!1)),n.onclick=()=>Qy(A),A.lastA11yAudit?(n.textContent="v",n.style.fontSize="0.5rem"):n.appendChild(Pr("M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z",{fill:!0})),n}function Ly(A){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Ruler");let o=A.rulerMode;return en(A,n,Me.ruler,(l,c)=>{o?(c.addTitle("Ruler Mode Active"),c.addDescription("Click elements to pin measurements. Press Esc or click here to exit.")):(c.addTitle("Ruler"),c.addDescription("Measure element dimensions and positions on page."))}),Object.assign(n.style,Nr(Me.ruler,o,!1)),n.onclick=()=>{A.rulerMode?(A.rulerMode=!1,A.rulerCleanup&&(A.rulerCleanup(),A.rulerCleanup=null)):(qt(A),A.rulerMode=!0,A.rulerCleanup=hb(A)),A.render()},o?(n.textContent="\u2716",n.style.fontSize="0.5rem"):n.appendChild(Pr("M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.4 2.4 0 0 1 0-3.4l2.6-2.6a2.4 2.4 0 0 1 3.4 0zM14.5 12.5l2-2M11.5 9.5l2-2M8.5 6.5l2-2M17.5 15.5l2-2",{stroke:!0,strokeWidth:"2"})),n}function Hy(A){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label",A.recordingActive?"Stop Recording":"Start Recording");let o=A.recordingActive;if(en(A,n,Me.error,(l,c)=>{if(o){let h=A.recordingStartedAt?((Date.now()-A.recordingStartedAt)/1e3).toFixed(0):"0";c.addTitle(`Recording: ${h}s`),c.addShortcut("Click","Stop recording & open viewer")}else A.lastViewerPath?(tn()?(c.addSuccess("Demo recording simulated",A.lastViewerPath),c.addWarning("Demo only: no recording file was written.")):c.addSuccess("Last session recorded"),c.addShortcut("Click","Start new recording"),c.addShortcut("Shift+Click","Open last viewer")):(c.addTitle("Session Recording"),c.addShortcut("Click","Start recording (video + actions)"),tn()&&c.addWarning("Demo mode: no video or action manifest will be recorded."))}),Object.assign(n.style,{...Nr(ue.red,o,!1),borderColor:o?ue.red:J(ue.red,50),backgroundColor:o?J(ue.red,20):"transparent",color:o?ue.red:J(ue.red,60),...o&&{animation:"devbar-pulse 1.5s ease-in-out infinite"}}),n.onclick=l=>{if(l.shiftKey&&A.lastViewerPath&&!o){window.open(A.lastViewerPath,"_blank");return}if(!(!A.ws||!A.sweetlinkConnected))if(o){let c=window.open("about:blank","_blank");A.pendingViewerWindow=c,A.ws.send(JSON.stringify({type:"record-stop"})),A.recordingTimer&&clearInterval(A.recordingTimer),A.recordingActive=!1,A.recordingTimer=null,A.recordingStartedAt=null,A.render()}else A.ws.send(JSON.stringify({type:"record-start"})),A.recordingActive=!0,A.recordingStartedAt=Date.now(),A.recordingSessionId=null,A.recordingTimer=setInterval(()=>A.render(),1e3),A.render()},o){let l=document.createElement("span");Object.assign(l.style,{display:"block",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:ue.red}),n.appendChild(l)}else{let l=document.createElement("span");Object.assign(l.style,{display:"block",width:"8px",height:"8px",borderRadius:"50%",border:"2px solid currentColor"}),n.appendChild(l)}return n}function My(A){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label",A.demoActive?"Demo in progress":"Start Demo");let o=A.demoActive;return en(A,n,Me.info,(l,c)=>{o?(c.addTitle(`Demo: "${A.demoTitle??"Untitled"}"`),c.addShortcut(`${A.demoSectionCount} sections`,""),c.addShortcut("Click","Add screenshot to demo")):(c.addTitle("Demo Document"),c.addShortcut("Click","Start demo (prompts for title)"),tn()&&c.addWarning("Demo mode: no markdown document will be written."))}),Object.assign(n.style,{...Nr(Me.info,o,!1)}),n.onclick=()=>{if(!(!A.ws||!A.sweetlinkConnected))if(o)A.ws.send(JSON.stringify({type:"demo-screenshot"})),A.demoSectionCount++,A.render();else{let l=prompt("Demo title:");if(!l)return;A.ws.send(JSON.stringify({type:"demo-init",data:{title:l}})),A.demoActive=!0,A.demoTitle=l,A.demoSectionCount=0,A.render()}},o?(n.textContent=String(A.demoSectionCount),n.style.fontSize="0.6rem"):n.appendChild(Pr("M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7M18.5 2.5a2.12 2.12 0 0 1 3 3L12 15l-4 1 1-4Z",{stroke:!0,strokeWidth:"2"})),n}function Eu(A){let n=document.createElement("button");n.type="button",n.setAttribute("data-testid","devbar-settings-button"),n.setAttribute("aria-label","Settings"),en(A,n,H.textSecondary,(c,h)=>{h.addTitle("Settings"),h.addSectionHeader("Keyboard"),h.addShortcut("Cmd or Ctrl+Shift+M","Toggle compact mode")});let o=A.showSettingsPopover,l=H.textSecondary;return Object.assign(n.style,Nr(l,o,!1)),n.onclick=()=>{let c=A.showSettingsPopover;qt(A),A.showSettingsPopover=!c,A.render()},n.appendChild(Pr("M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",{stroke:!0,children:[{type:"circle",cx:"12",cy:"12",r:"3"}]})),n}function Ny(A){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label",A.compactMode?"Switch to expanded mode":"Switch to compact mode");let o=A.compactMode,{accentColor:l}=A.options,c=H.textSecondary;Object.assign(n.style,Nr(c,!1,!1)),n.style.borderColor=J(l,38),Er(A,n,()=>o?"Expand (Cmd or Ctrl+Shift+M)":"Compact (Cmd or Ctrl+Shift+M)",{onEnter:()=>{n.style.borderColor=l,n.style.backgroundColor=J(l,13),n.style.color=c},onLeave:()=>{n.style.borderColor=J(l,38),n.style.backgroundColor="transparent",n.style.color=J(c,60)}}),n.onclick=()=>{A.toggleCompactMode()};let h=o?"9 18 15 12 9 6":"15 18 9 12 15 6";return n.appendChild(Pr("",{stroke:!0,children:[{type:"polyline",points:h}]})),n}function Py(A,n=[]){if(!A.container)return;let{position:o,accentColor:l}=A.options,{errorCount:c,warningCount:h,infoCount:g}=A.getLogCounts(),v=da[o]??da["bottom-left"],b=A.container;n.length>0?b.dataset.devbarCustomControls="true":delete b.dataset.devbarCustomControls,A.resetPositionStyles(b),Object.assign(b.style,{position:"fixed",...v,zIndex:"9999",backgroundColor:"var(--devbar-color-bg-card)",border:`1px solid ${l}`,borderRadius:"20px",color:l,boxShadow:`${mt.shadows.dropToolbar}, 0 0 0 1px ${J(l,10)}`,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",padding:"6px 10px",display:"flex",flexWrap:"wrap",alignItems:"center",gap:"8px",boxSizing:"border-box",maxWidth:o==="bottom-center"?"calc(100vw - 32px)":"calc(100vw - 96px)",minWidth:"0",fontFamily:ut,fontSize:"0.6875rem"});let C=cl(A),E=C.querySelector(".devbar-conn-dot");if(Er(A,C,()=>ca(A.sweetlinkConnected)),C.onclick=R=>{R.stopPropagation(),Ro(A,E),A.collapsed=!0,A.debug.state("Collapsed DevBar from compact mode"),A.render()},b.appendChild(C),c>0&&b.appendChild(Zn(A,"error",c,Me.error)),h>0&&b.appendChild(Zn(A,"warn",h,Me.warning)),g>0&&b.appendChild(Zn(A,"info",g,Me.info)),A.options.showScreenshot&&b.appendChild(Cu(A,l)),b.appendChild(Eu(A)),n.length>0)for(let R of n)b.appendChild(Oo(R,l,A));let F=document.createElement("button");F.type="button",Object.assign(F.style,{display:"flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px",borderRadius:"50%",border:`1px solid ${J(l,38)}`,backgroundColor:"transparent",color:J(l,60),cursor:"pointer",fontSize:"0.5rem",transition:"all 150ms"}),F.textContent="\u27EB",Er(A,F,()=>"Expand DevBar",{onEnter:()=>{F.style.backgroundColor=J(l,13),F.style.borderColor=l,F.style.color=l},onLeave:()=>{F.style.backgroundColor="transparent",F.style.borderColor=J(l,38),F.style.color=J(l,60)}}),F.onclick=()=>{A.toggleCompactMode()},b.appendChild(F)}function Ta(A,n,o={}){let l=typeof window<"u"?window.location.href:"unknown",c=typeof window<"u"?`${window.innerWidth}x${window.innerHeight} @${window.devicePixelRatio||1}x`:"unknown",h=A.lastScreenshot??"not captured yet",g=o.artifactPath??"not saved yet",v=`Run pnpm sweetlink inspect --url ${l} before acting to refresh @e refs.`,b=[`# ${n}`,`- URL: ${l}`,`- Viewport: ${c}`,`- Screenshot: ${h}`,`- Artifact: ${g}`,`- Refs: ${v}`];return o.observation&&b.push(`- Observation: ${o.observation}`),{title:"Agent Context",items:[{label:"URL",value:l},{label:"Viewport",value:c},{label:"Screenshot",value:h},{label:"Artifact",value:g},{label:"Refs",value:v}],copyText:b.join(`
|
|
524
|
-
`)}}function Ky(A,n){let o=A.consoleFilter;if(!o)return;let l=n.getLogs().filter(k=>k.level===o),h={error:Me.error,warn:Me.warning,info:Me.info}[o],v={error:"Errors",warn:"Warnings",info:"Info"}[o],b=()=>{A.consoleFilter=null,A.render()},C=Nn(b),E=Pn(h,`Console ${v}`),F=nn({color:h,title:`Console ${v} (${l.length})`,onClose:b,onCopyMd:async()=>{await navigator.clipboard.writeText(zp(l))},onSave:()=>Ty(A,l),onClear:()=>A.clearConsoleLogs(),sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation,isSaving:A.savingConsoleLogs,savedPath:A.lastConsoleLogs,evidenceContext:Ta(A,`Console ${v}`,{artifactPath:A.lastConsoleLogs,observation:`${l.length} ${o} log${l.length===1?"":"s"} in the current filter.`})});E.appendChild(F);let R=An();l.length===0?R.appendChild(FA(`No ${o}s recorded`)):b7(R,l,h),E.appendChild(R),C.appendChild(E),A.overlayElement=C,document.body.appendChild(C),Kn(E)}function b7(A,n,o){n.forEach((l,c)=>{let h=document.createElement("div");Object.assign(h.style,{padding:"8px 14px",borderBottom:c<n.length-1?`1px solid ${H.borderSubtle}`:"none"});let g=document.createElement("span");Object.assign(g.style,{color:H.textMuted,fontSize:"0.625rem",marginRight:"8px"}),g.textContent=new Date(l.timestamp).toLocaleTimeString(),h.appendChild(g);let v=document.createElement("span");Object.assign(v.style,{color:o,fontSize:"0.6875rem",wordBreak:"break-word",whiteSpace:"pre-wrap"}),v.textContent=l.message,h.appendChild(v),A.appendChild(h)})}function B7(A,n,o){if(A.lastDotPosition&&!o){let h=n.endsWith("right"),g;return h?g=n.startsWith("top")?{top:"20px",right:"16px"}:{bottom:"20px",right:"16px"}:g={top:`${A.lastDotPosition.top-15}px`,left:`${A.lastDotPosition.left-19}px`},A.lastDotPosition=null,g}return da[n]??da["bottom-left"]}function y7(A,n,o,l,c){A.resetPositionStyles(n);let h=A.options.sizeOverrides,g="fit-content",v="auto",b=c?"calc(100vw - 32px)":"calc(100vw - 96px)";Object.assign(n.style,{position:"fixed",...o,zIndex:"9999",backgroundColor:"var(--devbar-color-bg-card)",border:`1px solid ${l}`,borderRadius:"12px",color:l,boxShadow:`${mt.shadows.dropToolbar}, 0 0 0 1px ${J(l,10)}`,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",boxSizing:"border-box",width:h?.width??g,maxWidth:h?.maxWidth??b,minWidth:h?.minWidth??v,cursor:"default"}),n.ondblclick=C=>{if(C.target?.closest("button, input, select, a"))return;let F=n.querySelector(".devbar-status span span");F&&Ro(A,F),A.collapsed=!0,A.debug.state("Collapsed DevBar (double-click)"),A.render()}}function C7(){let A=document.createElement("div");return A.className="devbar-main",Object.assign(A.style,{display:"flex",alignItems:"center",alignContent:"flex-start",justifyContent:"flex-start",gap:"0.5rem",padding:"0.5rem 0.75rem",minWidth:"0",boxSizing:"border-box",fontFamily:ut,fontSize:"0.6875rem",lineHeight:"1rem"}),A}function E7(A){let n=cl(A);return Er(A,n,()=>ca(A.sweetlinkConnected,"click to minimize")),n.onclick=o=>{o.stopPropagation(),Ro(A,n),A.collapsed=!0,A.debug.state("Collapsed DevBar (connection dot click)"),A.render()},n}function x7(A,n){let o=document.createElement("div");return o.className="devbar-info",Object.assign(o.style,{display:"flex",alignItems:"center",gap:"0.5rem",textTransform:"uppercase",letterSpacing:"0.05em",flexShrink:"1",minWidth:"0",overflow:"visible"}),n.breakpoint&&A.breakpointInfo&&F7(A,o),A.perfStats&&Q7(A,o,n),o}function F7(A,n){if(!A.breakpointInfo)return;let o=A.breakpointInfo.tailwindBreakpoint,l=BA[o],c=document.createElement("span");c.className="devbar-item",Object.assign(c.style,{opacity:"0.9",cursor:"default"}),ab(A,c,o,A.breakpointInfo.dimensions,l?.label||"");let h=o;o!=="base"&&(h=o==="sm"?`${o} - ${A.breakpointInfo.dimensions.split("x")[0]}`:`${o} - ${A.breakpointInfo.dimensions}`),c.textContent=h,n.appendChild(c)}function D7(A){return{fcp:{label:"FCP",value:A.fcp,title:"First Contentful Paint (FCP)",description:"Time until the first text or image renders on screen.",thresholds:{good:"<1.8s",needsWork:"1.8-3s",poor:">3s"}},lcp:{label:"LCP",value:A.lcp,title:"Largest Contentful Paint (LCP)",description:"Time until the largest visible element renders on screen.",thresholds:{good:"<2.5s",needsWork:"2.5-4s",poor:">4s"}},cls:{label:"CLS",value:A.cls,title:"Cumulative Layout Shift (CLS)",description:"Visual stability score. Higher values mean more unexpected layout shifts.",thresholds:{good:"<0.1",needsWork:"0.1-0.25",poor:">0.25"}},inp:{label:"INP",value:A.inp,title:"Interaction to Next Paint (INP)",description:"Responsiveness to user input. Measures the longest interaction delay.",thresholds:{good:"<200ms",needsWork:"200-500ms",poor:">500ms"}},pageSize:{label:"",value:A.totalSize,title:"Total Page Size",description:"Compressed/transferred size including HTML, CSS, JS, images, and other resources."}}}function Q7(A,n,o){if(!A.perfStats)return;let{visible:l,hidden:c}=Xw(A),h=D7(A.perfStats),g=()=>{let b=document.createElement("span");b.style.opacity="0.4",b.textContent="|",n.appendChild(b)};for(let b of l){if(!o[b])continue;let C=h[b];g();let E=document.createElement("span");E.className="devbar-item",Object.assign(E.style,{opacity:b==="pageSize"?"0.7":"0.85",cursor:"default"}),E.textContent=C.label?`${C.label} ${C.value}`:C.value,C.thresholds?Ab(A,E,C.title,C.description,C.thresholds):ob(A,E,C.title,C.description),n.appendChild(E)}let v=c.filter(b=>o[b]);v.length>0&&(g(),S7(A,n,v,h))}function S7(A,n,o,l){let c=document.createElement("span");c.className="devbar-item devbar-clickable",Object.assign(c.style,{opacity:"0.7",cursor:"pointer",padding:"0 2px"}),c.textContent="\xB7\xB7\xB7",rb(A,c,h=>{ua(A,h,"More Metrics");let g=document.createElement("div");Object.assign(g.style,{display:"flex",flexDirection:"column",gap:"6px",marginTop:"8px"});for(let v of o){let b=l[v],C=document.createElement("div");Object.assign(C.style,{display:"flex",justifyContent:"space-between",gap:"12px"});let E=document.createElement("span");Object.assign(E.style,{color:H.textMuted}),E.textContent=b.title.split("(")[0].trim();let F=document.createElement("span");Object.assign(F.style,{color:H.text,fontWeight:"500"}),F.textContent=b.value,C.appendChild(E),C.appendChild(F),g.appendChild(C)}h.appendChild(g)}),n.appendChild(c)}function U7(A,n,o,l,c,h){let g=E7(A),v=document.createElement("div");v.className="devbar-status",Object.assign(v.style,{display:"flex",alignItems:"center",gap:"0.5rem",flexWrap:"nowrap",flexShrink:"1",minWidth:"0"}),v.appendChild(g);let b=x7(A,n);return v.appendChild(b),o&&(l>0&&v.appendChild(Zn(A,"error",l,Me.error)),c>0&&v.appendChild(Zn(A,"warn",c,Me.warning)),h>0&&v.appendChild(Zn(A,"info",h,Me.info))),v}function T7(A,n,o){let l=document.createElement("div");return l.className="devbar-actions",n&&l.appendChild(Cu(A,o)),l.appendChild(_y(A)),l.appendChild(Ry(A)),l.appendChild(Oy(A)),l.appendChild(ky(A)),l.appendChild(Ly(A)),l.appendChild(Hy(A)),l.appendChild(My(A)),l.appendChild(Eu(A)),l.appendChild(Ny(A)),l}function I7(A,n,o,l){if(n.length===0)return null;let c=document.createElement("div");c.className=A,Object.assign(c.style,{display:"flex",flexWrap:"wrap",alignItems:"center",alignContent:"flex-start",justifyContent:"flex-start",gap:"0.5rem",padding:"0 0.75rem 0.5rem 0.75rem",borderTop:`1px solid ${J(o,19)}`,marginTop:"0",paddingTop:"0.5rem",width:"100%",maxWidth:"100%",minWidth:"0",overflow:"visible",boxSizing:"border-box",fontFamily:ut,fontSize:"0.6875rem"});for(let h of n)c.appendChild(Oo(h,o,l));return c}function _7(A,n,o){let l=A.filter(h=>!h.group),c=I7("devbar-custom-controls devbar-custom-controls-inline",l,n,o);return c?(Object.assign(c.style,{padding:"0",borderTop:"0",width:"auto",flex:"0 1 auto",overflow:"hidden"}),c):null}function R7(A,n,o){let l=A.filter(g=>g.group);if(l.length===0)return null;let c=document.createElement("div");c.className="devbar-custom-controls devbar-custom-controls-row",Object.assign(c.style,{display:"flex",flexWrap:"wrap",alignItems:"center",alignContent:"flex-start",justifyContent:"flex-start",gap:"0.5rem",padding:"0 0.75rem 0.5rem 0.75rem",borderTop:`1px solid ${J(n,19)}`,marginTop:"0",paddingTop:"0.5rem",width:"100%",maxWidth:"100%",minWidth:"0",overflow:"visible",boxSizing:"border-box",fontFamily:ut,fontSize:"0.6875rem"});let h=new Map;for(let g of l){if(!g.group)continue;let v=h.get(g.group)??[];v.push(g),h.set(g.group,v)}for(let[g,v]of h){let b=document.createElement("span");b.className="devbar-custom-group-label",Object.assign(b.style,{color:J(n,50),fontSize:"0.5625rem",textTransform:"uppercase",letterSpacing:"0.05em",flex:"0 1 auto",minWidth:"0",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginLeft:[...h.keys()].indexOf(g)>0?"0.25rem":"0"}),b.textContent=g,c.appendChild(b);for(let C of v)c.appendChild(Oo(C,n,o))}return c}function Vy(A,n){if(!A.container)return;let{position:o,accentColor:l,showMetrics:c,showScreenshot:h,showConsoleBadges:g}=A.options,{errorCount:v,warningCount:b,infoCount:C}=A.getLogCounts(),E=o==="bottom-center",F=A.container;n.length>0?F.dataset.devbarCustomControls="true":delete F.dataset.devbarCustomControls;let R=B7(A,o,E);y7(A,F,R,l,E);let k=C7(),G=U7(A,c,g,v,b,C);k.appendChild(G);let W=_7(n,l,A);W&&k.appendChild(W);let q=T7(A,h,l);k.appendChild(q),F.appendChild(k);let ae=R7(n,l,A);ae&&F.appendChild(ae)}function Wy(A){let n=vA(),o=Me.outline,l=()=>{A.showOutlineModal=!1,A.render()},c=Nn(l),h=Pn(o,"Document Outline"),g=nn({color:o,title:"Document Outline",onClose:l,onCopyMd:async()=>{let b=Hn(n);await navigator.clipboard.writeText(b)},onSave:()=>Uy(A),sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation,isSaving:A.savingOutline,savedPath:A.lastOutline,evidenceContext:Ta(A,"Document Outline",{artifactPath:A.lastOutline,observation:`${n.length} top-level semantic node${n.length===1?"":"s"} found.`})});h.appendChild(g);let v=An();n.length===0?v.appendChild(FA("No semantic elements found in this document")):qy(n,v,0,{lastHeadingLevel:0}),h.appendChild(v),c.appendChild(h),A.overlayElement=c,document.body.appendChild(c),Kn(h)}function qy(A,n,o,l){for(let c of A){let h=c.category==="heading"&&c.level>0,g=h&&c.level>l.lastHeadingLevel+1;h&&(l.lastHeadingLevel=c.level);let v=document.createElement("div");if(Object.assign(v.style,{padding:`4px 0 4px ${o*16}px`}),g){let R=document.createElement("span");Object.assign(R.style,{color:H.error,fontSize:"0.625rem",marginRight:"4px"}),R.textContent="\u26A0",R.title=`Heading level skipped (expected h${c.level-1} or higher before h${c.level})`,v.appendChild(R)}let b=document.createElement("span"),C=Al[c.category||"other"]||Al.other;if(Object.assign(b.style,{color:g?H.error:C,fontSize:"0.6875rem",fontWeight:"500"}),b.textContent=`<${c.tagName}>`,v.appendChild(b),c.category){let R=document.createElement("span");Object.assign(R.style,{color:H.textMuted,fontSize:"0.625rem",marginLeft:"6px"}),R.textContent=`[${c.category}]`,v.appendChild(R)}let E=document.createElement("span");Object.assign(E.style,{color:H.textSecondary,fontSize:"0.6875rem",marginLeft:"8px"});let F=c.text.length>60?`${c.text.slice(0,60)}...`:c.text;if(E.textContent=F,v.appendChild(E),c.id){let R=document.createElement("span");Object.assign(R.style,{color:H.textSecondary,fontSize:"0.625rem",marginLeft:"6px"}),R.textContent=`#${c.id}`,v.appendChild(R)}n.appendChild(v),c.children.length>0&&qy(c.children,n,o+1,l)}}function zy(A){let n=wA(),o=Me.schema,l=()=>{A.showSchemaModal=!1,A.render()},c=Nn(l),h=Pn(o,"Page Schema"),g=tl(n),v=el(),b=nn({color:o,title:"Page Schema",onClose:l,onCopyMd:async()=>{let F=bA(n,{missingTags:g,favicons:v});await navigator.clipboard.writeText(F)},onSave:()=>Iy(A),sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation,isSaving:A.savingSchema,savedPath:A.lastSchema,evidenceContext:Ta(A,"Page Schema",{artifactPath:A.lastSchema,observation:g.length?`${g.length} recommended metadata item${g.length===1?"":"s"} missing.`:"Schema evidence captured for this page."})});h.appendChild(b);let C=An();n.jsonLd.length>0||Object.keys(n.openGraph).length>0||Object.keys(n.twitter).length>0||Object.keys(n.metaTags).length>0||v.length>0||g.length>0?(g.length>0&&K7(C,g),xu(C,"Open Graph",n.openGraph,H.info),xu(C,"Twitter Cards",n.twitter,H.cyan),v.length>0&&N7(C,v),xu(C,"JSON-LD",n.jsonLd,o),xu(C,"Meta Tags",n.metaTags,H.textMuted)):C.appendChild(FA("No structured data found on this page")),h.appendChild(C),c.appendChild(h),A.overlayElement=c,document.body.appendChild(c),Kn(h)}function Yp(A,n,o,l){let c=document.createElement("div");Object.assign(c.style,{display:"flex",alignItems:"center",gap:"8px",marginBottom:"10px",paddingBottom:"6px",borderBottom:`1px solid ${J(o,19)}`});let h=document.createElement("h3");Object.assign(h.style,{color:o,fontSize:"0.8125rem",fontWeight:"600",margin:"0"}),h.textContent=n,c.appendChild(h);let g=document.createElement("span");Object.assign(g.style,{color:J(o,80),fontSize:"0.5625rem",backgroundColor:J(o,9),padding:"1px 6px",borderRadius:"8px",letterSpacing:"0.03em"}),g.textContent=String(l),c.appendChild(g),A.appendChild(c)}function xu(A,n,o,l){let c=Array.isArray(o)?o.length:Object.keys(o).length;if(c===0)return;let h=document.createElement("div");h.style.marginBottom="20px",Yp(h,n,l,c),Array.isArray(o)?O7(h,o,l):L7(h,o),A.appendChild(h)}function O7(A,n,o){n.forEach((l,c)=>{let h=document.createElement("div");h.style.marginBottom="10px";let g=l,v=typeof g?.["@type"]=="string"?g["@type"]:null,b=document.createElement("div");Object.assign(b.style,{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"});let C=document.createElement("span");if(Object.assign(C.style,{color:H.textSecondary,fontSize:"0.6875rem"}),C.textContent=`Schema ${c+1}`,b.appendChild(C),v){let F=document.createElement("span");Object.assign(F.style,{color:J(o,80),fontSize:"0.5625rem",backgroundColor:J(o,8),border:`1px solid ${J(o,15)}`,padding:"0 5px",borderRadius:"3px"}),F.textContent=v,b.appendChild(F)}h.appendChild(b);let E=document.createElement("pre");Object.assign(E.style,{backgroundColor:"rgba(0, 0, 0, 0.25)",borderRadius:"4px",borderLeft:`2px solid ${J(o,31)}`,padding:"10px 10px 10px 12px",fontSize:"0.625rem",margin:"0",whiteSpace:"pre-wrap",wordBreak:"break-word"}),k7(E,JSON.stringify(l,null,2)),h.appendChild(E),A.appendChild(h)})}function k7(A,n){let o={key:H.primary,string:H.warning,number:H.purple,boolean:H.info,nullVal:H.error,punct:H.textMuted},l=/("(?:\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*")(\s*:)?|(\btrue\b|\bfalse\b)|(\bnull\b)|(-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)|([{}[\],])|(\s+)/g;for(let c of n.matchAll(l)){let[,h,g,v,b,C,E,F]=c;if(F)A.appendChild(document.createTextNode(F));else if(h!==void 0){let R=document.createElement("span");if(R.style.color=g?o.key:o.string,R.textContent=h,A.appendChild(R),g){let k=document.createElement("span");k.style.color=o.punct,k.textContent=":",A.appendChild(k)}}else if(v){let R=document.createElement("span");R.style.color=o.boolean,R.textContent=v,A.appendChild(R)}else if(b){let R=document.createElement("span");R.style.color=o.nullVal,R.textContent=b,A.appendChild(R)}else if(C){let R=document.createElement("span");R.style.color=o.number,R.textContent=C,A.appendChild(R)}else if(E){let R=document.createElement("span");R.style.color=o.punct,R.textContent=E,A.appendChild(R)}}}function L7(A,n){Object.entries(n).forEach(([l,c],h)=>{let g=Dw(l),v=document.createElement("div");Object.assign(v.style,{display:"flex",padding:g?"6px 8px":"3px 8px",alignItems:"flex-start",borderRadius:"3px",backgroundColor:h%2===0?"rgba(255, 255, 255, 0.02)":"transparent"});let b=document.createElement("span");if(Object.assign(b.style,{color:H.textSecondary,fontSize:"0.6875rem",width:"120px",minWidth:"120px",maxWidth:"120px",flexShrink:"0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",paddingTop:g?"2px":"0"}),b.textContent=l,l.length>18&&(b.title=l),v.appendChild(b),g&&c){let C=document.createElement("div");Object.assign(C.style,{flex:"1",minWidth:"0"});let E=document.createElement("div");Object.assign(E.style,{display:"inline-block",padding:"4px",backgroundColor:"rgba(0, 0, 0, 0.2)",border:"1px solid rgba(255, 255, 255, 0.06)",borderRadius:"4px",marginBottom:"4px",minHeight:"60px",minWidth:"80px"});let F=document.createElement("img");Object.assign(F.style,{width:"200px",height:"120px",objectFit:"contain",borderRadius:"2px",display:"block"}),F.src=c,F.alt=l,F.onerror=()=>{E.style.display="none"},F.onload=()=>{F.naturalWidth&&(R.textContent=`${F.naturalWidth}\xD7${F.naturalHeight}`)},E.appendChild(F),C.appendChild(E);let R=document.createElement("div");Object.assign(R.style,{color:H.textMuted,fontSize:"0.5625rem",minHeight:"0.75rem",letterSpacing:"0.02em"}),C.appendChild(R);let k=document.createElement("div");Object.assign(k.style,{color:H.textMuted,fontSize:"0.5625rem",wordBreak:"break-all",opacity:"0.7"}),k.textContent=c,C.appendChild(k),v.appendChild(C)}else{let C=document.createElement("span");Object.assign(C.style,{color:H.text,fontSize:"0.6875rem",flex:"1",wordBreak:"break-word",whiteSpace:"pre-wrap",opacity:"0.85"}),C.textContent=String(c),v.appendChild(C)}A.appendChild(v)})}function H7(A,n){let o=parseInt(n||"",10);return A.includes("apple")?{text:"Apple home screen",color:H.info}:n==="any"||A.includes("svg")?{text:"Scalable (any)",color:H.cyan}:o>=192?{text:"Android / PWA",color:H.primary}:o>=48?{text:"Taskbar / shortcut",color:H.purple}:o>0?{text:"Browser tab",color:H.textSecondary}:{text:"General",color:H.textMuted}}function M7(A,n){let o=H7(A.label,A.size),l=document.createElement("div");Object.assign(l.style,{display:"flex",alignItems:"center",padding:"6px 8px",gap:"10px",borderRadius:"3px",backgroundColor:n%2===0?"rgba(255, 255, 255, 0.02)":"transparent"});let c=document.createElement("div");Object.assign(c.style,{width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.25)",border:"1px solid rgba(255, 255, 255, 0.06)",borderRadius:"4px",flexShrink:"0"});let h=document.createElement("img");Object.assign(h.style,{width:"22px",height:"22px",objectFit:"contain"}),h.src=A.url,h.alt=A.label,h.onerror=()=>{c.style.opacity="0.3"},c.appendChild(h),l.appendChild(c);let g=document.createElement("div");Object.assign(g.style,{flex:"1",minWidth:"0",display:"flex",flexDirection:"column",gap:"2px"});let v=document.createElement("div");Object.assign(v.style,{display:"flex",alignItems:"center",gap:"6px"});let b=document.createElement("span");Object.assign(b.style,{color:H.text,fontSize:"0.6875rem",fontWeight:"500",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),b.textContent=A.label,A.label.length>24&&(b.title=A.label),v.appendChild(b);let C=document.createElement("span");Object.assign(C.style,{color:o.color,fontSize:"0.5rem",backgroundColor:J(o.color,7),padding:"1px 6px",borderRadius:"6px",letterSpacing:"0.03em",whiteSpace:"nowrap",flexShrink:"0"}),C.textContent=o.text,v.appendChild(C),g.appendChild(v);let E=document.createElement("div");if(Object.assign(E.style,{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.5625rem",color:H.textMuted}),A.size){let G=document.createElement("span");G.textContent=A.size,G.style.opacity="0.8",E.appendChild(G)}let F=document.createElement("span");F.style.letterSpacing="0.02em",E.appendChild(F),h.onload=()=>{if(h.naturalWidth){let G=`${h.naturalWidth}\xD7${h.naturalHeight}`;A.size?F.textContent=`\u2192 ${G}`:F.textContent=G}};let R=document.createElement("span");R.textContent="\xB7",R.style.opacity="0.4",E.appendChild(R);let k=document.createElement("span");return Object.assign(k.style,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",opacity:"0.6"}),k.textContent=A.url,k.title=A.url,E.appendChild(k),g.appendChild(E),l.appendChild(g),l}function N7(A,n){let o=H.purple,l=document.createElement("div");l.style.marginBottom="20px",Yp(l,"Favicons",o,n.length),n.forEach((c,h)=>{l.appendChild(M7(c,h))}),A.appendChild(l)}function Gy(A,n){let o=document.createElement("span");return Object.assign(o.style,{color:n,fontSize:"0.5625rem",backgroundColor:J(n,8),padding:"2px 8px",borderRadius:"8px",letterSpacing:"0.03em"}),o.textContent=A,o}function P7(A,n){let o=document.createElement("div");return Object.assign(o.style,{display:"flex",alignItems:"center",padding:"4px 8px",gap:"8px",borderRadius:"3px",backgroundColor:A%2===0?"rgba(255, 255, 255, 0.02)":"transparent",...n?{borderLeft:`2px solid ${J(n,25)}`}:{}}),o}function Xp(A,n){let o=document.createElement("span");return Object.assign(o.style,n),o.textContent=A,o}function K7(A,n){let o=document.createElement("div");o.style.marginBottom="20px";let l=n.filter(v=>v.severity==="error").length,c=n.length-l,g=l>0?H.error:H.warning;if(Yp(o,"Missing Tags",g,n.length),l>0||c>0){let v=document.createElement("div");Object.assign(v.style,{display:"flex",gap:"8px",marginBottom:"8px"}),l>0&&v.appendChild(Gy(`${l} error${l>1?"s":""}`,H.error)),c>0&&v.appendChild(Gy(`${c} warning${c>1?"s":""}`,H.warning)),o.appendChild(v)}n.forEach((v,b)=>{let C=v.severity==="error",E=C?H.error:H.warning,F=P7(b,E),R=Xp(C?"\u2718":"\u26A0",{fontSize:"0.625rem",flexShrink:"0",width:"14px",textAlign:"center",color:E});F.appendChild(R),F.appendChild(Xp(v.tag,{color:H.text,fontSize:"0.6875rem",width:"120px",minWidth:"120px",flexShrink:"0",fontWeight:"500"})),F.appendChild(Xp(v.hint,{color:H.textMuted,fontSize:"0.6875rem",flex:"1",opacity:"0.85"})),o.appendChild(F)}),A.appendChild(o)}function Xy(A){let n=Me.a11y,o=()=>{A.showA11yModal=!1,A.render()},l=Nn(o),c=Pn(n,"Accessibility Audit");V7(c,n,o,A),l.appendChild(c),A.overlayElement=l,document.body.appendChild(l),Kn(c),Uo().then(h=>{if(!A.showA11yModal)return;let g=ll(h);Sf(c);let v=h.violations.length,b=v===0?"Accessibility Audit \u2014 No Issues":`Accessibility Audit \u2014 ${v} Violation${v===1?"":"s"}`,C=nn({color:n,title:b,onClose:o,onCopyMd:async()=>{await navigator.clipboard.writeText(g)},onSave:()=>Sy(A,h),sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation,isSaving:A.savingA11yAudit,savedPath:A.lastA11yAudit,evidenceContext:Ta(A,b,{artifactPath:A.lastA11yAudit,observation:v===0?`${h.passes.length} axe rule${h.passes.length===1?"":"s"} passed.`:`${v} accessibility violation${v===1?"":"s"} found.`})});c.appendChild(C);let E=An();G7(E,h,n),c.appendChild(E)}).catch(h=>{if(!A.showA11yModal)return;Sf(c);let g=nn({color:H.error,title:"Accessibility Audit \u2014 Error",onClose:o,onCopyMd:async()=>{},sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation});c.appendChild(g);let v=An();v.appendChild(pa(H.error,"Audit Failed",`${h instanceof Error?h.message:"Unknown error"}`)),c.appendChild(v)})}function V7(A,n,o,l){let c=An(),h=document.createElement("div");Object.assign(h.style,{textAlign:"center",padding:"40px",color:H.textSecondary,fontSize:"0.875rem"}),h.textContent="Running accessibility audit...",h.style.animation="pulse 1.5s ease-in-out infinite",c.appendChild(h);let g=nn({color:n,title:"Accessibility Audit",onClose:o,onCopyMd:async()=>{},sweetlinkConnected:l.sweetlinkConnected,saveLocation:l.options.saveLocation});A.appendChild(g),A.appendChild(c)}function G7(A,n,o){if(j7(A,n,o),n.violations.length===0){let l=document.createElement("div");if(Object.assign(l.style,{textAlign:"center",padding:"40px",color:H.primary,fontSize:"0.875rem"}),l.textContent="No accessibility violations found!",A.appendChild(l),n.passes.length>0){let c=document.createElement("div");Object.assign(c.style,{textAlign:"center",color:H.textMuted,fontSize:"0.75rem",marginTop:"8px"}),c.textContent=`${n.passes.length} rules passed`,A.appendChild(c)}}else{let l=ol(n.violations),c=document.createElement("div");Object.assign(c.style,{display:"flex",gap:"12px",marginBottom:"16px",padding:"10px 12px",backgroundColor:J(o,6),border:`1px solid ${J(o,19)}`,borderRadius:"6px",flexWrap:"wrap"});for(let g of["critical","serious","moderate","minor"]){if(l[g]===0)continue;let v=document.createElement("span"),b=sl(g);Object.assign(v.style,{display:"inline-flex",alignItems:"center",gap:"4px",fontSize:"0.6875rem",fontWeight:"600",color:b});let C=document.createElement("span");Object.assign(C.style,{width:"6px",height:"6px",borderRadius:"50%",backgroundColor:b}),v.appendChild(C),v.appendChild(document.createTextNode(`${l[g]} ${g}`)),c.appendChild(v)}A.appendChild(c);let h=il(n.violations);for(let[g,v]of h)v.length!==0&&q7(A,g,v)}}function j7(A,n,o){let l=[`${n.passes.length} axe rule${n.passes.length===1?"":"s"} passed`,`${n.violations.length} violation${n.violations.length===1?"":"s"} found`,"current DOM, focus semantics, names, landmarks, forms, and color contrast where browser APIs expose enough paint data"];A.appendChild(pa(o,"What was checked",l.join(" \xB7 ")))}function jy(A){let n=document.createElement("div");return Object.assign(n.style,{padding:"3px 6px",marginBottom:"2px",backgroundColor:"rgba(0,0,0,0.2)",borderRadius:"3px",fontSize:"0.625rem",color:H.textSecondary,fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),n.textContent=A.html.length>100?`${A.html.slice(0,100)}...`:A.html,n.title=A.html,n}function W7(A,n){let o=document.createElement("div");Object.assign(o.style,{marginBottom:"12px",padding:"10px 12px",backgroundColor:J(n,3),border:`1px solid ${J(n,13)}`,borderRadius:"6px"});let l=document.createElement("div");Object.assign(l.style,{color:n,fontSize:"0.6875rem",fontWeight:"600",marginBottom:"4px"}),l.textContent=A.id,o.appendChild(l);let c=document.createElement("div");Object.assign(c.style,{color:H.text,fontSize:"0.75rem",marginBottom:"4px"}),c.textContent=A.help,o.appendChild(c);let h=document.createElement("div");Object.assign(h.style,{color:H.textSecondary,fontSize:"0.6875rem",marginBottom:"6px"}),h.textContent=A.description,o.appendChild(h);let g=document.createElement("div");Object.assign(g.style,{color:H.textMuted,fontSize:"0.625rem",marginBottom:"4px"}),g.textContent=`${A.nodes.length} element${A.nodes.length===1?"":"s"} affected`,o.appendChild(g);let v=document.createElement("div");Object.assign(v.style,{marginTop:"6px"});let b=A.nodes.slice(0,3);for(let C of b)v.appendChild(jy(C));if(A.nodes.length>3){let C=document.createElement("button");Object.assign(C.style,{background:"none",border:"none",color:n,fontSize:"0.625rem",cursor:"pointer",padding:"2px 0",fontFamily:ut}),C.textContent=`+ ${A.nodes.length-3} more`,C.onclick=()=>{C.remove();for(let E of A.nodes.slice(3))v.appendChild(jy(E))},v.appendChild(C)}return o.appendChild(v),o}function q7(A,n,o){let l=sl(n),c=document.createElement("div");c.style.marginBottom="20px";let h=document.createElement("h3");Object.assign(h.style,{color:l,fontSize:"0.8125rem",fontWeight:"600",marginBottom:"10px",borderBottom:`1px solid ${J(l,25)}`,paddingBottom:"6px",textTransform:"capitalize"}),h.textContent=`${n} (${o.length})`,c.appendChild(h);for(let g of o)c.appendChild(W7(g,l));A.appendChild(c)}function Yy(A){let n=Me.review,o=()=>Ey(A),l=Nn(o),c=Pn(n,"AI Design Review");c.style.maxWidth="450px",c.appendChild(nn({color:n,title:"AI Design Review",onClose:o}));let h=An();if(Object.assign(h.style,{color:H.text,fontSize:"0.8125rem",lineHeight:"1.6"}),A.apiKeyStatus===null?h.appendChild(FA("Checking API key configuration...")):A.apiKeyStatus.configured?h.appendChild(X7(A)):h.appendChild(z7()),c.appendChild(h),A.apiKeyStatus?.configured){let g=document.createElement("div");Object.assign(g.style,{display:"flex",justifyContent:"flex-end",gap:"10px",padding:"14px 18px",borderTop:`1px solid ${H.border}`});let v=rn({color:n,text:"Run Review",padding:"8px 16px"});v.style.backgroundColor=J(n,13),v.onclick=()=>xy(A),g.appendChild(v),c.appendChild(g)}l.appendChild(c),A.overlayElement=l,document.body.appendChild(l),Kn(c)}function z7(){let A=document.createElement("div");A.appendChild(pa(H.error,"API Key Not Configured","The ANTHROPIC_API_KEY environment variable is not set."));let n=document.createElement("div");Object.assign(n.style,{marginBottom:"12px"});let o=document.createElement("div");return Object.assign(o.style,{color:H.textSecondary,fontWeight:"600",marginBottom:"8px"}),o.textContent="To configure:",n.appendChild(o),[{text:"1. Get an API key from console.anthropic.com",highlight:!1},{text:"2. Add to your .env file:",highlight:!1},{text:" ANTHROPIC_API_KEY=sk-ant-...",highlight:!0},{text:"3. Restart your dev server",highlight:!1}].forEach(({text:c,highlight:h})=>{let g=document.createElement("div");Object.assign(g.style,{color:h?H.primary:H.textMuted,fontSize:"0.75rem",marginBottom:"4px",fontFamily:ut}),g.textContent=c,n.appendChild(g)}),A.appendChild(n),A}function X7(A){let n=document.createElement("div");Object.assign(n.style,{marginBottom:"16px"});let o=document.createElement("p");Object.assign(o.style,{color:H.textSecondary,marginBottom:"12px"}),o.textContent="This will capture a screenshot and send it to Claude for design analysis.",n.appendChild(o);let l=Cy(A);if(l){let c=pa(H.primary,"Estimated Cost",[]);c.style.marginBottom="0",c.style.padding="12px";let h=document.createElement("div");Object.assign(h.style,{display:"flex",justifyContent:"space-between",color:H.textSecondary,fontSize:"0.75rem"});let g=document.createElement("span");g.textContent=`~${l.tokens.toLocaleString()} tokens`,h.appendChild(g);let v=document.createElement("span");Object.assign(v.style,{color:H.warning,fontWeight:"600"}),v.textContent=l.cost,h.appendChild(v),c.appendChild(h),n.appendChild(c)}if(A.apiKeyStatus?.model){let c=document.createElement("div");Object.assign(c.style,{color:H.textMuted,fontSize:"0.6875rem",marginTop:"12px"}),c.textContent=`Model: ${A.apiKeyStatus.model}`,n.appendChild(c)}return n}function Jy(A){let n=A.settingsManager.getSettings();A.themeMode=A.forcedThemeMode??n.themeMode,A.forcedThemeMode&&n.themeMode!==A.forcedThemeMode&&A.settingsManager.saveSettingsNow({themeMode:A.forcedThemeMode}),CA(yA(A.themeMode)),A.debug.state("Theme loaded",{mode:A.themeMode}),typeof window<"u"&&window.matchMedia&&(A.themeMediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),A.themeMediaHandler=()=>{A.themeMode==="system"&&(CA(yA(A.themeMode)),A.debug.state("System theme changed",{effectiveTheme:la(A.themeMode)}),window.dispatchEvent(new CustomEvent("devbar-theme-change",{detail:{mode:A.themeMode}})),A.render())},A.themeMediaQuery.addEventListener("change",A.themeMediaHandler))}function $y(A){let n=A.settingsManager.getSettings();A.compactMode=n.compactMode,A.debug.state("Compact mode loaded",{compactMode:A.compactMode})}function Fu(A,n){let o=A.forcedThemeMode??n;A.themeMode=o,A.settingsManager.saveSettings({themeMode:o}),vf(o),CA(yA(o)),A.debug.state("Theme mode changed",{mode:o,effectiveTheme:la(o)}),typeof window<"u"&&window.dispatchEvent(new CustomEvent("devbar-theme-change",{detail:{mode:o}})),A.render()}function Zy(A){let{position:n,accentColor:o}=A.options,l=document.createElement("div");l.setAttribute("data-devbar","true"),l.setAttribute("data-devbar-overlay","true"),Object.assign(l.style,{position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"10003"}),l.onclick=k=>{k.target===l&&(A.showSettingsPopover=!1,A.render())};let c=document.createElement("div");c.setAttribute("data-devbar","true"),c.setAttribute("role","dialog"),c.setAttribute("aria-modal","true"),c.setAttribute("aria-label","Settings"),c.tabIndex=-1;let h=n.startsWith("top"),g=480,v=16,b;if(A.container&&window.innerWidth>640){let k=A.container.getBoundingClientRect(),G=k.left+k.width/2;b=Math.max(v,Math.min(G-g/2,window.innerWidth-g-v))}else b=Math.max(v,(window.innerWidth-g)/2);Object.assign(c.style,{position:"fixed",[h?"top":"bottom"]:"70px",left:`${b}px`,zIndex:"10003",backgroundColor:"var(--devbar-color-bg-elevated)",border:`1px solid ${o}`,borderRadius:"8px",boxShadow:`${mt.shadows.dropLg}, 0 0 0 1px ${J(o,20)}`,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",width:`${g}px`,maxWidth:"calc(100vw - 32px)",maxHeight:"calc(100vh - 100px)",overflowY:"auto",fontFamily:ut}),c.appendChild(Y7(A));let C=document.createElement("div");C.className="devbar-settings-grid",Object.assign(C.style,{display:"grid",gridTemplateColumns:"1fr 1fr"});let E=H.textSecondary,F=document.createElement("div");Object.assign(F.style,{borderRight:`1px solid ${J(E,13)}`}),F.appendChild(J7(A)),F.appendChild($7(A)),C.appendChild(F);let R=document.createElement("div");R.appendChild(aK(A)),R.appendChild(iK(A)),C.appendChild(R),c.appendChild(C),c.appendChild(sK(A)),l.appendChild(c),A.overlayElement=l,document.body.appendChild(l),c.focus()}function Y7(A){let{accentColor:n}=A.options,o=document.createElement("div");Object.assign(o.style,{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px",borderBottom:`1px solid ${J(n,19)}`,position:"sticky",top:"0",backgroundColor:"var(--devbar-color-bg-elevated)",zIndex:"1"});let l=document.createElement("span");return Object.assign(l.style,{color:n,fontSize:"0.75rem",fontWeight:"600"}),l.textContent="Settings",o.appendChild(l),o.appendChild(ko(()=>{A.showSettingsPopover=!1,A.render()})),o}function J7(A){let{accentColor:n}=A.options,o=!!A.forcedThemeMode,l=Du("Theme");Qu(l,o?`Theme is controlled by the host app: ${A.forcedThemeMode}.`:"Follow OS/browser preference, force dark, or force light while reviewing.");let c=document.createElement("div");return Object.assign(c.style,{display:"flex",gap:"6px"}),["system","dark","light"].forEach(g=>{let v=eC({label:g,isActive:A.themeMode===g,accentColor:n,disabled:o&&g!==A.forcedThemeMode,disabledTitle:"Theme controlled by host app",onClick:()=>Fu(A,g)});v.style.textTransform="capitalize",c.appendChild(v)}),l.appendChild(c),l}function $7(A){let n=Du("Display & appearance");return Qu(n,"Change where DevBar lives and how evidence captures are rendered."),n.appendChild(Z7(A)),n.appendChild(eK(A)),n.appendChild(tK(A)),n.appendChild(AK(A)),n}function Z7(A){let{accentColor:n}=A.options,o=H.textSecondary,l=document.createElement("div");Object.assign(l.style,{marginBottom:"10px"});let c=document.createElement("div");Object.assign(c.style,{color:H.text,fontSize:"0.6875rem",marginBottom:"6px"}),c.textContent="Position",l.appendChild(c);let h=document.createElement("div");return Object.assign(h.style,{position:"relative",width:"100%",height:"70px",backgroundColor:"var(--devbar-color-bg-input)",border:`1px solid ${J(o,19)}`,borderRadius:"4px"}),[{value:"top-left",style:{top:"6px",left:"6px"},title:"Top Left"},{value:"top-right",style:{top:"6px",right:"6px"},title:"Top Right"},{value:"bottom-left",style:{bottom:"6px",left:"6px"},title:"Bottom Left"},{value:"bottom-right",style:{bottom:"6px",right:"6px"},title:"Bottom Right"},{value:"bottom-center",style:{bottom:"6px",left:"50%",transform:"translateX(-50%)"},title:"Bottom Center"}].forEach(({value:v,style:b,title:C})=>{let E=document.createElement("button");E.setAttribute("data-position",v);let F=A.options.position===v;Object.assign(E.style,{position:"absolute",width:"24px",height:"6px",backgroundColor:F?n:H.textMuted,border:`1px solid ${F?n:H.textMuted}`,borderRadius:"2px",cursor:"pointer",padding:"0",transition:"all 150ms",boxShadow:F?`0 0 8px ${J(n,38)}`:"none",opacity:F?"1":"0.5",...b}),E.title=C,E.onclick=()=>{A.options.position=v,A.settingsManager.saveSettings({position:v}),A.render()},E.onmouseenter=()=>{F||(E.style.backgroundColor=n,E.style.borderColor=n,E.style.boxShadow=`0 0 6px ${J(n,25)}`,E.style.opacity="1")},E.onmouseleave=()=>{F||(E.style.backgroundColor=H.textMuted,E.style.borderColor=H.textMuted,E.style.boxShadow="none",E.style.opacity="0.5")},h.appendChild(E)}),l.appendChild(h),l}function eK(A){let{accentColor:n}=A.options,o=document.createDocumentFragment();o.appendChild(mi("Compact Mode",A.compactMode,n,()=>{A.toggleCompactMode()}));let l=document.createElement("div");return Object.assign(l.style,{color:H.textMuted,fontSize:"0.5625rem",marginTop:"2px",marginBottom:"8px"}),l.textContent="Keyboard: Cmd or Ctrl+Shift+M",o.appendChild(l),o}function tK(A){let n=document.createElement("div");Object.assign(n.style,{marginBottom:"6px"});let o=document.createElement("div");Object.assign(o.style,{color:H.text,fontSize:"0.6875rem",marginBottom:"6px"}),o.textContent="Accent Color",n.appendChild(o);let l=document.createElement("div");Object.assign(l.style,{display:"flex",gap:"6px",flexWrap:"wrap",alignItems:"center"});let c=A.options.accentColor,h=c===H.primary,v=!fl.some(b=>b.value===c)&&!h;if(fl.forEach(({name:b,value:C})=>{let E=document.createElement("button"),F=c===C||h&&b==="Emerald";Object.assign(E.style,{width:"24px",height:"24px",borderRadius:"50%",backgroundColor:C,border:F?"2px solid #fff":"2px solid transparent",cursor:"pointer",transition:"all 150ms",boxShadow:F?`0 0 8px ${C}`:"none"}),E.title=b,E.onclick=()=>{A.options.accentColor=C,A.settingsManager.saveSettings({accentColor:C}),A.render()},l.appendChild(E)}),v){let b=document.createElement("button");b.type="button",b.setAttribute("data-accent-reset","true"),b.title=`Custom color (${c}). Click to reset to theme default.`,Object.assign(b.style,{marginLeft:"4px",padding:"2px 8px",borderRadius:"10px",border:`1px dashed ${c}`,backgroundColor:"transparent",color:c,fontSize:"0.625rem",fontFamily:ut,cursor:"pointer",lineHeight:"1.4"}),b.textContent="custom \xB7 reset",b.onclick=()=>{let C=fa.accentColor;A.options.accentColor=C,A.settingsManager.saveSettings({accentColor:C}),A.render()},l.appendChild(b)}return n.appendChild(l),n}function rK(A,n){return[`#${A}::-webkit-slider-thumb {`," -webkit-appearance: none;"," width: 12px; height: 12px;"," border-radius: 50%;",` background: ${n};`,` border: 2px solid ${H.bg};`,` box-shadow: 0 0 4px ${J(n,50)};`," cursor: grab;","}",`#${A}::-webkit-slider-thumb:active { cursor: grabbing; }`,`#${A}::-moz-range-thumb {`," width: 12px; height: 12px;"," border-radius: 50%;",` background: ${n};`,` border: 2px solid ${H.bg};`,` box-shadow: 0 0 4px ${J(n,50)};`," cursor: grab;","}",`#${A}::-webkit-slider-runnable-track { background: transparent; }`,`#${A}::-moz-range-track { background: transparent; }`].join(`
|
|
534
|
+
`)}}function Ky(A,n){let o=A.consoleFilter;if(!o)return;let l=n.getLogs().filter(k=>k.level===o),h={error:Me.error,warn:Me.warning,info:Me.info}[o],v={error:"Errors",warn:"Warnings",info:"Info"}[o],b=()=>{A.consoleFilter=null,A.render()},C=Nn(b),E=Pn(h,`Console ${v}`),F=nn({color:h,title:`Console ${v} (${l.length})`,onClose:b,onCopyMd:async()=>{await navigator.clipboard.writeText(zp(l))},onSave:()=>Ty(A,l),onClear:()=>A.clearConsoleLogs(),sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation,isSaving:A.savingConsoleLogs,savedPath:A.lastConsoleLogs,evidenceContext:Ta(A,`Console ${v}`,{artifactPath:A.lastConsoleLogs,observation:`${l.length} ${o} log${l.length===1?"":"s"} in the current filter.`})});E.appendChild(F);let R=An();l.length===0?R.appendChild(FA(`No ${o}s recorded`)):b7(R,l,h),E.appendChild(R),C.appendChild(E),A.overlayElement=C,document.body.appendChild(C),Kn(E)}function b7(A,n,o){n.forEach((l,c)=>{let h=document.createElement("div");Object.assign(h.style,{padding:"8px 14px",borderBottom:c<n.length-1?`1px solid ${H.borderSubtle}`:"none"});let g=document.createElement("span");Object.assign(g.style,{color:H.textMuted,fontSize:"0.625rem",marginRight:"8px"}),g.textContent=new Date(l.timestamp).toLocaleTimeString(),h.appendChild(g);let v=document.createElement("span");Object.assign(v.style,{color:o,fontSize:"0.6875rem",wordBreak:"break-word",whiteSpace:"pre-wrap"}),v.textContent=l.message,h.appendChild(v),A.appendChild(h)})}function B7(A,n,o){if(A.lastDotPosition&&!o){let h=n.endsWith("right"),g;return h?g=n.startsWith("top")?{top:"20px",right:"16px"}:{bottom:"20px",right:"16px"}:g={top:`${A.lastDotPosition.top-15}px`,left:`${A.lastDotPosition.left-19}px`},A.lastDotPosition=null,g}return da[n]??da["bottom-left"]}function y7(A,n,o,l,c){A.resetPositionStyles(n);let h=A.options.sizeOverrides,g="fit-content",v="auto",b=c?"calc(100vw - 32px)":"calc(100vw - 96px)";Object.assign(n.style,{position:"fixed",...o,zIndex:"9999",backgroundColor:"var(--devbar-color-bg-card)",border:`1px solid ${l}`,borderRadius:"12px",color:l,boxShadow:`${mt.shadows.dropToolbar}, 0 0 0 1px ${J(l,10)}`,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",boxSizing:"border-box",width:h?.width??g,maxWidth:h?.maxWidth??b,minWidth:h?.minWidth??v,cursor:"default"}),n.ondblclick=C=>{if(C.target?.closest("button, input, select, a"))return;let F=n.querySelector(".devbar-status span span");F&&Ro(A,F),A.collapsed=!0,A.debug.state("Collapsed DevBar (double-click)"),A.render()}}function C7(){let A=document.createElement("div");return A.className="devbar-main",Object.assign(A.style,{display:"flex",alignItems:"center",alignContent:"flex-start",justifyContent:"flex-start",gap:"0.5rem",padding:"0.5rem 0.75rem",minWidth:"0",boxSizing:"border-box",fontFamily:ut,fontSize:"0.6875rem",lineHeight:"1rem"}),A}function E7(A){let n=cl(A);return Er(A,n,()=>ca(A.sweetlinkConnected,"click to minimize")),n.onclick=o=>{o.stopPropagation(),Ro(A,n),A.collapsed=!0,A.debug.state("Collapsed DevBar (connection dot click)"),A.render()},n}function x7(A,n){let o=document.createElement("div");return o.className="devbar-info",Object.assign(o.style,{display:"flex",alignItems:"center",gap:"0.5rem",textTransform:"uppercase",letterSpacing:"0.05em",flexShrink:"1",minWidth:"0",overflow:"visible"}),n.breakpoint&&A.breakpointInfo&&F7(A,o),A.perfStats&&Q7(A,o,n),o}function F7(A,n){if(!A.breakpointInfo)return;let o=A.breakpointInfo.tailwindBreakpoint,l=BA[o],c=document.createElement("span");c.className="devbar-item",Object.assign(c.style,{opacity:"0.9",cursor:"default"}),ab(A,c,o,A.breakpointInfo.dimensions,l?.label||"");let h=o;o!=="base"&&(h=o==="sm"?`${o} - ${A.breakpointInfo.dimensions.split("x")[0]}`:`${o} - ${A.breakpointInfo.dimensions}`),c.textContent=h,n.appendChild(c)}function D7(A){return{fcp:{label:"FCP",value:A.fcp,title:"First Contentful Paint (FCP)",description:"Time until the first text or image renders on screen.",thresholds:{good:"<1.8s",needsWork:"1.8-3s",poor:">3s"}},lcp:{label:"LCP",value:A.lcp,title:"Largest Contentful Paint (LCP)",description:"Time until the largest visible element renders on screen.",thresholds:{good:"<2.5s",needsWork:"2.5-4s",poor:">4s"}},cls:{label:"CLS",value:A.cls,title:"Cumulative Layout Shift (CLS)",description:"Visual stability score. Higher values mean more unexpected layout shifts.",thresholds:{good:"<0.1",needsWork:"0.1-0.25",poor:">0.25"}},inp:{label:"INP",value:A.inp,title:"Interaction to Next Paint (INP)",description:"Responsiveness to user input. Measures the longest interaction delay.",thresholds:{good:"<200ms",needsWork:"200-500ms",poor:">500ms"}},pageSize:{label:"",value:A.totalSize,title:"Total Page Size",description:"Compressed/transferred size including HTML, CSS, JS, images, and other resources."}}}function Q7(A,n,o){if(!A.perfStats)return;let{visible:l,hidden:c}=Xw(A),h=D7(A.perfStats),g=()=>{let b=document.createElement("span");b.style.opacity="0.4",b.textContent="|",n.appendChild(b)};for(let b of l){if(!o[b])continue;let C=h[b];g();let E=document.createElement("span");E.className="devbar-item",Object.assign(E.style,{opacity:b==="pageSize"?"0.7":"0.85",cursor:"default"}),E.textContent=C.label?`${C.label} ${C.value}`:C.value,C.thresholds?Ab(A,E,C.title,C.description,C.thresholds):ob(A,E,C.title,C.description),n.appendChild(E)}let v=c.filter(b=>o[b]);v.length>0&&(g(),S7(A,n,v,h))}function S7(A,n,o,l){let c=document.createElement("span");c.className="devbar-item devbar-clickable",Object.assign(c.style,{opacity:"0.7",cursor:"pointer",padding:"0 2px"}),c.textContent="\xB7\xB7\xB7",rb(A,c,h=>{ua(A,h,"More Metrics");let g=document.createElement("div");Object.assign(g.style,{display:"flex",flexDirection:"column",gap:"6px",marginTop:"8px"});for(let v of o){let b=l[v],C=document.createElement("div");Object.assign(C.style,{display:"flex",justifyContent:"space-between",gap:"12px"});let E=document.createElement("span");Object.assign(E.style,{color:H.textMuted}),E.textContent=b.title.split("(")[0].trim();let F=document.createElement("span");Object.assign(F.style,{color:H.text,fontWeight:"500"}),F.textContent=b.value,C.appendChild(E),C.appendChild(F),g.appendChild(C)}h.appendChild(g)}),n.appendChild(c)}function U7(A,n,o,l,c,h){let g=E7(A),v=document.createElement("div");v.className="devbar-status",Object.assign(v.style,{display:"flex",alignItems:"center",gap:"0.5rem",flexWrap:"nowrap",flexShrink:"1",minWidth:"0"}),v.appendChild(g);let b=x7(A,n);return v.appendChild(b),o&&(l>0&&v.appendChild(Zn(A,"error",l,Me.error)),c>0&&v.appendChild(Zn(A,"warn",c,Me.warning)),h>0&&v.appendChild(Zn(A,"info",h,Me.info))),v}function T7(A,n,o){let l=document.createElement("div");return l.className="devbar-actions",n&&l.appendChild(Cu(A,o)),l.appendChild(_y(A)),l.appendChild(Ry(A)),l.appendChild(Oy(A)),l.appendChild(ky(A)),l.appendChild(Ly(A)),l.appendChild(Hy(A)),l.appendChild(My(A)),l.appendChild(Eu(A)),l.appendChild(Ny(A)),l}function I7(A,n,o,l){if(n.length===0)return null;let c=document.createElement("div");c.className=A,Object.assign(c.style,{display:"flex",flexWrap:"wrap",alignItems:"center",alignContent:"flex-start",justifyContent:"flex-start",gap:"0.5rem",padding:"0 0.75rem 0.5rem 0.75rem",borderTop:`1px solid ${J(o,19)}`,marginTop:"0",paddingTop:"0.5rem",width:"100%",maxWidth:"100%",minWidth:"0",overflow:"visible",boxSizing:"border-box",fontFamily:ut,fontSize:"0.6875rem"});for(let h of n)c.appendChild(Oo(h,o,l));return c}function _7(A,n,o){let l=A.filter(h=>!h.group),c=I7("devbar-custom-controls devbar-custom-controls-inline",l,n,o);return c?(Object.assign(c.style,{padding:"0",borderTop:"0",width:"fit-content",flex:"0 1 auto",overflow:"hidden"}),c):null}function R7(A,n,o){let l=A.filter(g=>g.group);if(l.length===0)return null;let c=document.createElement("div");c.className="devbar-custom-controls devbar-custom-controls-row",Object.assign(c.style,{display:"flex",flexWrap:"wrap",alignItems:"center",alignContent:"flex-start",justifyContent:"flex-start",gap:"0.5rem",padding:"0 0.75rem 0.5rem 0.75rem",borderTop:`1px solid ${J(n,19)}`,marginTop:"0",paddingTop:"0.5rem",width:"100%",maxWidth:"100%",minWidth:"0",overflow:"visible",boxSizing:"border-box",fontFamily:ut,fontSize:"0.6875rem"});let h=new Map;for(let g of l){if(!g.group)continue;let v=h.get(g.group)??[];v.push(g),h.set(g.group,v)}for(let[g,v]of h){let b=document.createElement("span");b.className="devbar-custom-group-label",Object.assign(b.style,{color:J(n,50),fontSize:"0.5625rem",textTransform:"uppercase",letterSpacing:"0.05em",flex:"0 1 auto",minWidth:"0",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginLeft:[...h.keys()].indexOf(g)>0?"0.25rem":"0"}),b.textContent=g,c.appendChild(b);for(let C of v)c.appendChild(Oo(C,n,o))}return c}function Vy(A,n){if(!A.container)return;let{position:o,accentColor:l,showMetrics:c,showScreenshot:h,showConsoleBadges:g}=A.options,{errorCount:v,warningCount:b,infoCount:C}=A.getLogCounts(),E=o==="bottom-center",F=A.container;n.length>0?F.dataset.devbarCustomControls="true":delete F.dataset.devbarCustomControls;let R=B7(A,o,E);y7(A,F,R,l,E);let k=C7(),G=U7(A,c,g,v,b,C);k.appendChild(G);let W=_7(n,l,A);W&&k.appendChild(W);let q=T7(A,h,l);k.appendChild(q),F.appendChild(k);let ae=R7(n,l,A);ae&&F.appendChild(ae)}function Wy(A){let n=vA(),o=Me.outline,l=()=>{A.showOutlineModal=!1,A.render()},c=Nn(l),h=Pn(o,"Document Outline"),g=nn({color:o,title:"Document Outline",onClose:l,onCopyMd:async()=>{let b=Hn(n);await navigator.clipboard.writeText(b)},onSave:()=>Uy(A),sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation,isSaving:A.savingOutline,savedPath:A.lastOutline,evidenceContext:Ta(A,"Document Outline",{artifactPath:A.lastOutline,observation:`${n.length} top-level semantic node${n.length===1?"":"s"} found.`})});h.appendChild(g);let v=An();n.length===0?v.appendChild(FA("No semantic elements found in this document")):qy(n,v,0,{lastHeadingLevel:0}),h.appendChild(v),c.appendChild(h),A.overlayElement=c,document.body.appendChild(c),Kn(h)}function qy(A,n,o,l){for(let c of A){let h=c.category==="heading"&&c.level>0,g=h&&c.level>l.lastHeadingLevel+1;h&&(l.lastHeadingLevel=c.level);let v=document.createElement("div");if(Object.assign(v.style,{padding:`4px 0 4px ${o*16}px`}),g){let R=document.createElement("span");Object.assign(R.style,{color:H.error,fontSize:"0.625rem",marginRight:"4px"}),R.textContent="\u26A0",R.title=`Heading level skipped (expected h${c.level-1} or higher before h${c.level})`,v.appendChild(R)}let b=document.createElement("span"),C=Al[c.category||"other"]||Al.other;if(Object.assign(b.style,{color:g?H.error:C,fontSize:"0.6875rem",fontWeight:"500"}),b.textContent=`<${c.tagName}>`,v.appendChild(b),c.category){let R=document.createElement("span");Object.assign(R.style,{color:H.textMuted,fontSize:"0.625rem",marginLeft:"6px"}),R.textContent=`[${c.category}]`,v.appendChild(R)}let E=document.createElement("span");Object.assign(E.style,{color:H.textSecondary,fontSize:"0.6875rem",marginLeft:"8px"});let F=c.text.length>60?`${c.text.slice(0,60)}...`:c.text;if(E.textContent=F,v.appendChild(E),c.id){let R=document.createElement("span");Object.assign(R.style,{color:H.textSecondary,fontSize:"0.625rem",marginLeft:"6px"}),R.textContent=`#${c.id}`,v.appendChild(R)}n.appendChild(v),c.children.length>0&&qy(c.children,n,o+1,l)}}function zy(A){let n=wA(),o=Me.schema,l=()=>{A.showSchemaModal=!1,A.render()},c=Nn(l),h=Pn(o,"Page Schema"),g=tl(n),v=el(),b=nn({color:o,title:"Page Schema",onClose:l,onCopyMd:async()=>{let F=bA(n,{missingTags:g,favicons:v});await navigator.clipboard.writeText(F)},onSave:()=>Iy(A),sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation,isSaving:A.savingSchema,savedPath:A.lastSchema,evidenceContext:Ta(A,"Page Schema",{artifactPath:A.lastSchema,observation:g.length?`${g.length} recommended metadata item${g.length===1?"":"s"} missing.`:"Schema evidence captured for this page."})});h.appendChild(b);let C=An();n.jsonLd.length>0||Object.keys(n.openGraph).length>0||Object.keys(n.twitter).length>0||Object.keys(n.metaTags).length>0||v.length>0||g.length>0?(g.length>0&&K7(C,g),xu(C,"Open Graph",n.openGraph,H.info),xu(C,"Twitter Cards",n.twitter,H.cyan),v.length>0&&N7(C,v),xu(C,"JSON-LD",n.jsonLd,o),xu(C,"Meta Tags",n.metaTags,H.textMuted)):C.appendChild(FA("No structured data found on this page")),h.appendChild(C),c.appendChild(h),A.overlayElement=c,document.body.appendChild(c),Kn(h)}function Yp(A,n,o,l){let c=document.createElement("div");Object.assign(c.style,{display:"flex",alignItems:"center",gap:"8px",marginBottom:"10px",paddingBottom:"6px",borderBottom:`1px solid ${J(o,19)}`});let h=document.createElement("h3");Object.assign(h.style,{color:o,fontSize:"0.8125rem",fontWeight:"600",margin:"0"}),h.textContent=n,c.appendChild(h);let g=document.createElement("span");Object.assign(g.style,{color:J(o,80),fontSize:"0.5625rem",backgroundColor:J(o,9),padding:"1px 6px",borderRadius:"8px",letterSpacing:"0.03em"}),g.textContent=String(l),c.appendChild(g),A.appendChild(c)}function xu(A,n,o,l){let c=Array.isArray(o)?o.length:Object.keys(o).length;if(c===0)return;let h=document.createElement("div");h.style.marginBottom="20px",Yp(h,n,l,c),Array.isArray(o)?O7(h,o,l):L7(h,o),A.appendChild(h)}function O7(A,n,o){n.forEach((l,c)=>{let h=document.createElement("div");h.style.marginBottom="10px";let g=l,v=typeof g?.["@type"]=="string"?g["@type"]:null,b=document.createElement("div");Object.assign(b.style,{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"});let C=document.createElement("span");if(Object.assign(C.style,{color:H.textSecondary,fontSize:"0.6875rem"}),C.textContent=`Schema ${c+1}`,b.appendChild(C),v){let F=document.createElement("span");Object.assign(F.style,{color:J(o,80),fontSize:"0.5625rem",backgroundColor:J(o,8),border:`1px solid ${J(o,15)}`,padding:"0 5px",borderRadius:"3px"}),F.textContent=v,b.appendChild(F)}h.appendChild(b);let E=document.createElement("pre");Object.assign(E.style,{backgroundColor:"rgba(0, 0, 0, 0.25)",borderRadius:"4px",borderLeft:`2px solid ${J(o,31)}`,padding:"10px 10px 10px 12px",fontSize:"0.625rem",margin:"0",whiteSpace:"pre-wrap",wordBreak:"break-word"}),k7(E,JSON.stringify(l,null,2)),h.appendChild(E),A.appendChild(h)})}function k7(A,n){let o={key:H.primary,string:H.warning,number:H.purple,boolean:H.info,nullVal:H.error,punct:H.textMuted},l=/("(?:\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*")(\s*:)?|(\btrue\b|\bfalse\b)|(\bnull\b)|(-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)|([{}[\],])|(\s+)/g;for(let c of n.matchAll(l)){let[,h,g,v,b,C,E,F]=c;if(F)A.appendChild(document.createTextNode(F));else if(h!==void 0){let R=document.createElement("span");if(R.style.color=g?o.key:o.string,R.textContent=h,A.appendChild(R),g){let k=document.createElement("span");k.style.color=o.punct,k.textContent=":",A.appendChild(k)}}else if(v){let R=document.createElement("span");R.style.color=o.boolean,R.textContent=v,A.appendChild(R)}else if(b){let R=document.createElement("span");R.style.color=o.nullVal,R.textContent=b,A.appendChild(R)}else if(C){let R=document.createElement("span");R.style.color=o.number,R.textContent=C,A.appendChild(R)}else if(E){let R=document.createElement("span");R.style.color=o.punct,R.textContent=E,A.appendChild(R)}}}function L7(A,n){Object.entries(n).forEach(([l,c],h)=>{let g=Dw(l),v=document.createElement("div");Object.assign(v.style,{display:"flex",padding:g?"6px 8px":"3px 8px",alignItems:"flex-start",borderRadius:"3px",backgroundColor:h%2===0?"rgba(255, 255, 255, 0.02)":"transparent"});let b=document.createElement("span");if(Object.assign(b.style,{color:H.textSecondary,fontSize:"0.6875rem",width:"120px",minWidth:"120px",maxWidth:"120px",flexShrink:"0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",paddingTop:g?"2px":"0"}),b.textContent=l,l.length>18&&(b.title=l),v.appendChild(b),g&&c){let C=document.createElement("div");Object.assign(C.style,{flex:"1",minWidth:"0"});let E=document.createElement("div");Object.assign(E.style,{display:"inline-block",padding:"4px",backgroundColor:"rgba(0, 0, 0, 0.2)",border:"1px solid rgba(255, 255, 255, 0.06)",borderRadius:"4px",marginBottom:"4px",minHeight:"60px",minWidth:"80px"});let F=document.createElement("img");Object.assign(F.style,{width:"200px",height:"120px",objectFit:"contain",borderRadius:"2px",display:"block"}),F.src=c,F.alt=l,F.onerror=()=>{E.style.display="none"},F.onload=()=>{F.naturalWidth&&(R.textContent=`${F.naturalWidth}\xD7${F.naturalHeight}`)},E.appendChild(F),C.appendChild(E);let R=document.createElement("div");Object.assign(R.style,{color:H.textMuted,fontSize:"0.5625rem",minHeight:"0.75rem",letterSpacing:"0.02em"}),C.appendChild(R);let k=document.createElement("div");Object.assign(k.style,{color:H.textMuted,fontSize:"0.5625rem",wordBreak:"break-all",opacity:"0.7"}),k.textContent=c,C.appendChild(k),v.appendChild(C)}else{let C=document.createElement("span");Object.assign(C.style,{color:H.text,fontSize:"0.6875rem",flex:"1",wordBreak:"break-word",whiteSpace:"pre-wrap",opacity:"0.85"}),C.textContent=String(c),v.appendChild(C)}A.appendChild(v)})}function H7(A,n){let o=parseInt(n||"",10);return A.includes("apple")?{text:"Apple home screen",color:H.info}:n==="any"||A.includes("svg")?{text:"Scalable (any)",color:H.cyan}:o>=192?{text:"Android / PWA",color:H.primary}:o>=48?{text:"Taskbar / shortcut",color:H.purple}:o>0?{text:"Browser tab",color:H.textSecondary}:{text:"General",color:H.textMuted}}function M7(A,n){let o=H7(A.label,A.size),l=document.createElement("div");Object.assign(l.style,{display:"flex",alignItems:"center",padding:"6px 8px",gap:"10px",borderRadius:"3px",backgroundColor:n%2===0?"rgba(255, 255, 255, 0.02)":"transparent"});let c=document.createElement("div");Object.assign(c.style,{width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.25)",border:"1px solid rgba(255, 255, 255, 0.06)",borderRadius:"4px",flexShrink:"0"});let h=document.createElement("img");Object.assign(h.style,{width:"22px",height:"22px",objectFit:"contain"}),h.src=A.url,h.alt=A.label,h.onerror=()=>{c.style.opacity="0.3"},c.appendChild(h),l.appendChild(c);let g=document.createElement("div");Object.assign(g.style,{flex:"1",minWidth:"0",display:"flex",flexDirection:"column",gap:"2px"});let v=document.createElement("div");Object.assign(v.style,{display:"flex",alignItems:"center",gap:"6px"});let b=document.createElement("span");Object.assign(b.style,{color:H.text,fontSize:"0.6875rem",fontWeight:"500",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),b.textContent=A.label,A.label.length>24&&(b.title=A.label),v.appendChild(b);let C=document.createElement("span");Object.assign(C.style,{color:o.color,fontSize:"0.5rem",backgroundColor:J(o.color,7),padding:"1px 6px",borderRadius:"6px",letterSpacing:"0.03em",whiteSpace:"nowrap",flexShrink:"0"}),C.textContent=o.text,v.appendChild(C),g.appendChild(v);let E=document.createElement("div");if(Object.assign(E.style,{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.5625rem",color:H.textMuted}),A.size){let G=document.createElement("span");G.textContent=A.size,G.style.opacity="0.8",E.appendChild(G)}let F=document.createElement("span");F.style.letterSpacing="0.02em",E.appendChild(F),h.onload=()=>{if(h.naturalWidth){let G=`${h.naturalWidth}\xD7${h.naturalHeight}`;A.size?F.textContent=`\u2192 ${G}`:F.textContent=G}};let R=document.createElement("span");R.textContent="\xB7",R.style.opacity="0.4",E.appendChild(R);let k=document.createElement("span");return Object.assign(k.style,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",opacity:"0.6"}),k.textContent=A.url,k.title=A.url,E.appendChild(k),g.appendChild(E),l.appendChild(g),l}function N7(A,n){let o=H.purple,l=document.createElement("div");l.style.marginBottom="20px",Yp(l,"Favicons",o,n.length),n.forEach((c,h)=>{l.appendChild(M7(c,h))}),A.appendChild(l)}function Gy(A,n){let o=document.createElement("span");return Object.assign(o.style,{color:n,fontSize:"0.5625rem",backgroundColor:J(n,8),padding:"2px 8px",borderRadius:"8px",letterSpacing:"0.03em"}),o.textContent=A,o}function P7(A,n){let o=document.createElement("div");return Object.assign(o.style,{display:"flex",alignItems:"center",padding:"4px 8px",gap:"8px",borderRadius:"3px",backgroundColor:A%2===0?"rgba(255, 255, 255, 0.02)":"transparent",...n?{borderLeft:`2px solid ${J(n,25)}`}:{}}),o}function Xp(A,n){let o=document.createElement("span");return Object.assign(o.style,n),o.textContent=A,o}function K7(A,n){let o=document.createElement("div");o.style.marginBottom="20px";let l=n.filter(v=>v.severity==="error").length,c=n.length-l,g=l>0?H.error:H.warning;if(Yp(o,"Missing Tags",g,n.length),l>0||c>0){let v=document.createElement("div");Object.assign(v.style,{display:"flex",gap:"8px",marginBottom:"8px"}),l>0&&v.appendChild(Gy(`${l} error${l>1?"s":""}`,H.error)),c>0&&v.appendChild(Gy(`${c} warning${c>1?"s":""}`,H.warning)),o.appendChild(v)}n.forEach((v,b)=>{let C=v.severity==="error",E=C?H.error:H.warning,F=P7(b,E),R=Xp(C?"\u2718":"\u26A0",{fontSize:"0.625rem",flexShrink:"0",width:"14px",textAlign:"center",color:E});F.appendChild(R),F.appendChild(Xp(v.tag,{color:H.text,fontSize:"0.6875rem",width:"120px",minWidth:"120px",flexShrink:"0",fontWeight:"500"})),F.appendChild(Xp(v.hint,{color:H.textMuted,fontSize:"0.6875rem",flex:"1",opacity:"0.85"})),o.appendChild(F)}),A.appendChild(o)}function Xy(A){let n=Me.a11y,o=()=>{A.showA11yModal=!1,A.render()},l=Nn(o),c=Pn(n,"Accessibility Audit");V7(c,n,o,A),l.appendChild(c),A.overlayElement=l,document.body.appendChild(l),Kn(c),Uo().then(h=>{if(!A.showA11yModal)return;let g=ll(h);Sf(c);let v=h.violations.length,b=v===0?"Accessibility Audit \u2014 No Issues":`Accessibility Audit \u2014 ${v} Violation${v===1?"":"s"}`,C=nn({color:n,title:b,onClose:o,onCopyMd:async()=>{await navigator.clipboard.writeText(g)},onSave:()=>Sy(A,h),sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation,isSaving:A.savingA11yAudit,savedPath:A.lastA11yAudit,evidenceContext:Ta(A,b,{artifactPath:A.lastA11yAudit,observation:v===0?`${h.passes.length} axe rule${h.passes.length===1?"":"s"} passed.`:`${v} accessibility violation${v===1?"":"s"} found.`})});c.appendChild(C);let E=An();G7(E,h,n),c.appendChild(E)}).catch(h=>{if(!A.showA11yModal)return;Sf(c);let g=nn({color:H.error,title:"Accessibility Audit \u2014 Error",onClose:o,onCopyMd:async()=>{},sweetlinkConnected:A.sweetlinkConnected,saveLocation:A.options.saveLocation});c.appendChild(g);let v=An();v.appendChild(pa(H.error,"Audit Failed",`${h instanceof Error?h.message:"Unknown error"}`)),c.appendChild(v)})}function V7(A,n,o,l){let c=An(),h=document.createElement("div");Object.assign(h.style,{textAlign:"center",padding:"40px",color:H.textSecondary,fontSize:"0.875rem"}),h.textContent="Running accessibility audit...",h.style.animation="pulse 1.5s ease-in-out infinite",c.appendChild(h);let g=nn({color:n,title:"Accessibility Audit",onClose:o,onCopyMd:async()=>{},sweetlinkConnected:l.sweetlinkConnected,saveLocation:l.options.saveLocation});A.appendChild(g),A.appendChild(c)}function G7(A,n,o){if(j7(A,n,o),n.violations.length===0){let l=document.createElement("div");if(Object.assign(l.style,{textAlign:"center",padding:"40px",color:H.primary,fontSize:"0.875rem"}),l.textContent="No accessibility violations found!",A.appendChild(l),n.passes.length>0){let c=document.createElement("div");Object.assign(c.style,{textAlign:"center",color:H.textMuted,fontSize:"0.75rem",marginTop:"8px"}),c.textContent=`${n.passes.length} rules passed`,A.appendChild(c)}}else{let l=ol(n.violations),c=document.createElement("div");Object.assign(c.style,{display:"flex",gap:"12px",marginBottom:"16px",padding:"10px 12px",backgroundColor:J(o,6),border:`1px solid ${J(o,19)}`,borderRadius:"6px",flexWrap:"wrap"});for(let g of["critical","serious","moderate","minor"]){if(l[g]===0)continue;let v=document.createElement("span"),b=sl(g);Object.assign(v.style,{display:"inline-flex",alignItems:"center",gap:"4px",fontSize:"0.6875rem",fontWeight:"600",color:b});let C=document.createElement("span");Object.assign(C.style,{width:"6px",height:"6px",borderRadius:"50%",backgroundColor:b}),v.appendChild(C),v.appendChild(document.createTextNode(`${l[g]} ${g}`)),c.appendChild(v)}A.appendChild(c);let h=il(n.violations);for(let[g,v]of h)v.length!==0&&q7(A,g,v)}}function j7(A,n,o){let l=[`${n.passes.length} axe rule${n.passes.length===1?"":"s"} passed`,`${n.violations.length} violation${n.violations.length===1?"":"s"} found`,"current DOM, focus semantics, names, landmarks, forms, and color contrast where browser APIs expose enough paint data"];A.appendChild(pa(o,"What was checked",l.join(" \xB7 ")))}function jy(A){let n=document.createElement("div");return Object.assign(n.style,{padding:"3px 6px",marginBottom:"2px",backgroundColor:"rgba(0,0,0,0.2)",borderRadius:"3px",fontSize:"0.625rem",color:H.textSecondary,fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),n.textContent=A.html.length>100?`${A.html.slice(0,100)}...`:A.html,n.title=A.html,n}function W7(A,n){let o=document.createElement("div");Object.assign(o.style,{marginBottom:"12px",padding:"10px 12px",backgroundColor:J(n,3),border:`1px solid ${J(n,13)}`,borderRadius:"6px"});let l=document.createElement("div");Object.assign(l.style,{color:n,fontSize:"0.6875rem",fontWeight:"600",marginBottom:"4px"}),l.textContent=A.id,o.appendChild(l);let c=document.createElement("div");Object.assign(c.style,{color:H.text,fontSize:"0.75rem",marginBottom:"4px"}),c.textContent=A.help,o.appendChild(c);let h=document.createElement("div");Object.assign(h.style,{color:H.textSecondary,fontSize:"0.6875rem",marginBottom:"6px"}),h.textContent=A.description,o.appendChild(h);let g=document.createElement("div");Object.assign(g.style,{color:H.textMuted,fontSize:"0.625rem",marginBottom:"4px"}),g.textContent=`${A.nodes.length} element${A.nodes.length===1?"":"s"} affected`,o.appendChild(g);let v=document.createElement("div");Object.assign(v.style,{marginTop:"6px"});let b=A.nodes.slice(0,3);for(let C of b)v.appendChild(jy(C));if(A.nodes.length>3){let C=document.createElement("button");Object.assign(C.style,{background:"none",border:"none",color:n,fontSize:"0.625rem",cursor:"pointer",padding:"2px 0",fontFamily:ut}),C.textContent=`+ ${A.nodes.length-3} more`,C.onclick=()=>{C.remove();for(let E of A.nodes.slice(3))v.appendChild(jy(E))},v.appendChild(C)}return o.appendChild(v),o}function q7(A,n,o){let l=sl(n),c=document.createElement("div");c.style.marginBottom="20px";let h=document.createElement("h3");Object.assign(h.style,{color:l,fontSize:"0.8125rem",fontWeight:"600",marginBottom:"10px",borderBottom:`1px solid ${J(l,25)}`,paddingBottom:"6px",textTransform:"capitalize"}),h.textContent=`${n} (${o.length})`,c.appendChild(h);for(let g of o)c.appendChild(W7(g,l));A.appendChild(c)}function Yy(A){let n=Me.review,o=()=>Ey(A),l=Nn(o),c=Pn(n,"AI Design Review");c.style.maxWidth="450px",c.appendChild(nn({color:n,title:"AI Design Review",onClose:o}));let h=An();if(Object.assign(h.style,{color:H.text,fontSize:"0.8125rem",lineHeight:"1.6"}),A.apiKeyStatus===null?h.appendChild(FA("Checking API key configuration...")):A.apiKeyStatus.configured?h.appendChild(X7(A)):h.appendChild(z7()),c.appendChild(h),A.apiKeyStatus?.configured){let g=document.createElement("div");Object.assign(g.style,{display:"flex",justifyContent:"flex-end",gap:"10px",padding:"14px 18px",borderTop:`1px solid ${H.border}`});let v=rn({color:n,text:"Run Review",padding:"8px 16px"});v.style.backgroundColor=J(n,13),v.onclick=()=>xy(A),g.appendChild(v),c.appendChild(g)}l.appendChild(c),A.overlayElement=l,document.body.appendChild(l),Kn(c)}function z7(){let A=document.createElement("div");A.appendChild(pa(H.error,"API Key Not Configured","The ANTHROPIC_API_KEY environment variable is not set."));let n=document.createElement("div");Object.assign(n.style,{marginBottom:"12px"});let o=document.createElement("div");return Object.assign(o.style,{color:H.textSecondary,fontWeight:"600",marginBottom:"8px"}),o.textContent="To configure:",n.appendChild(o),[{text:"1. Get an API key from console.anthropic.com",highlight:!1},{text:"2. Add to your .env file:",highlight:!1},{text:" ANTHROPIC_API_KEY=sk-ant-...",highlight:!0},{text:"3. Restart your dev server",highlight:!1}].forEach(({text:c,highlight:h})=>{let g=document.createElement("div");Object.assign(g.style,{color:h?H.primary:H.textMuted,fontSize:"0.75rem",marginBottom:"4px",fontFamily:ut}),g.textContent=c,n.appendChild(g)}),A.appendChild(n),A}function X7(A){let n=document.createElement("div");Object.assign(n.style,{marginBottom:"16px"});let o=document.createElement("p");Object.assign(o.style,{color:H.textSecondary,marginBottom:"12px"}),o.textContent="This will capture a screenshot and send it to Claude for design analysis.",n.appendChild(o);let l=Cy(A);if(l){let c=pa(H.primary,"Estimated Cost",[]);c.style.marginBottom="0",c.style.padding="12px";let h=document.createElement("div");Object.assign(h.style,{display:"flex",justifyContent:"space-between",color:H.textSecondary,fontSize:"0.75rem"});let g=document.createElement("span");g.textContent=`~${l.tokens.toLocaleString()} tokens`,h.appendChild(g);let v=document.createElement("span");Object.assign(v.style,{color:H.warning,fontWeight:"600"}),v.textContent=l.cost,h.appendChild(v),c.appendChild(h),n.appendChild(c)}if(A.apiKeyStatus?.model){let c=document.createElement("div");Object.assign(c.style,{color:H.textMuted,fontSize:"0.6875rem",marginTop:"12px"}),c.textContent=`Model: ${A.apiKeyStatus.model}`,n.appendChild(c)}return n}function Jy(A){let n=A.settingsManager.getSettings();A.themeMode=A.forcedThemeMode??n.themeMode,A.forcedThemeMode&&n.themeMode!==A.forcedThemeMode&&A.settingsManager.saveSettingsNow({themeMode:A.forcedThemeMode}),CA(yA(A.themeMode)),A.debug.state("Theme loaded",{mode:A.themeMode}),typeof window<"u"&&window.matchMedia&&(A.themeMediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),A.themeMediaHandler=()=>{A.themeMode==="system"&&(CA(yA(A.themeMode)),A.debug.state("System theme changed",{effectiveTheme:la(A.themeMode)}),window.dispatchEvent(new CustomEvent("devbar-theme-change",{detail:{mode:A.themeMode}})),A.render())},A.themeMediaQuery.addEventListener("change",A.themeMediaHandler))}function $y(A){let n=A.settingsManager.getSettings();A.compactMode=n.compactMode,A.debug.state("Compact mode loaded",{compactMode:A.compactMode})}function Fu(A,n){let o=A.forcedThemeMode??n;A.themeMode=o,A.settingsManager.saveSettings({themeMode:o}),vf(o),CA(yA(o)),A.debug.state("Theme mode changed",{mode:o,effectiveTheme:la(o)}),typeof window<"u"&&window.dispatchEvent(new CustomEvent("devbar-theme-change",{detail:{mode:o}})),A.render()}function Zy(A){let{position:n,accentColor:o}=A.options,l=document.createElement("div");l.setAttribute("data-devbar","true"),l.setAttribute("data-devbar-overlay","true"),Object.assign(l.style,{position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"10003"}),l.onclick=k=>{k.target===l&&(A.showSettingsPopover=!1,A.render())};let c=document.createElement("div");c.setAttribute("data-devbar","true"),c.setAttribute("role","dialog"),c.setAttribute("aria-modal","true"),c.setAttribute("aria-label","Settings"),c.tabIndex=-1;let h=n.startsWith("top"),g=480,v=16,b;if(A.container&&window.innerWidth>640){let k=A.container.getBoundingClientRect(),G=k.left+k.width/2;b=Math.max(v,Math.min(G-g/2,window.innerWidth-g-v))}else b=Math.max(v,(window.innerWidth-g)/2);Object.assign(c.style,{position:"fixed",[h?"top":"bottom"]:"70px",left:`${b}px`,zIndex:"10003",backgroundColor:"var(--devbar-color-bg-elevated)",border:`1px solid ${o}`,borderRadius:"8px",boxShadow:`${mt.shadows.dropLg}, 0 0 0 1px ${J(o,20)}`,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",width:`${g}px`,maxWidth:"calc(100vw - 32px)",maxHeight:"calc(100vh - 100px)",overflowY:"auto",fontFamily:ut}),c.appendChild(Y7(A));let C=document.createElement("div");C.className="devbar-settings-grid",Object.assign(C.style,{display:"grid",gridTemplateColumns:"1fr 1fr"});let E=H.textSecondary,F=document.createElement("div");Object.assign(F.style,{borderRight:`1px solid ${J(E,13)}`}),F.appendChild(J7(A)),F.appendChild($7(A)),C.appendChild(F);let R=document.createElement("div");R.appendChild(aK(A)),R.appendChild(iK(A)),C.appendChild(R),c.appendChild(C),c.appendChild(sK(A)),l.appendChild(c),A.overlayElement=l,document.body.appendChild(l),c.focus()}function Y7(A){let{accentColor:n}=A.options,o=document.createElement("div");Object.assign(o.style,{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px",borderBottom:`1px solid ${J(n,19)}`,position:"sticky",top:"0",backgroundColor:"var(--devbar-color-bg-elevated)",zIndex:"1"});let l=document.createElement("span");return Object.assign(l.style,{color:n,fontSize:"0.75rem",fontWeight:"600"}),l.textContent="Settings",o.appendChild(l),o.appendChild(ko(()=>{A.showSettingsPopover=!1,A.render()})),o}function J7(A){let{accentColor:n}=A.options,o=!!A.forcedThemeMode,l=Du("Theme");Qu(l,o?`Theme is controlled by the host app: ${A.forcedThemeMode}.`:"Follow OS/browser preference, force dark, or force light while reviewing.");let c=document.createElement("div");return Object.assign(c.style,{display:"flex",gap:"6px"}),["system","dark","light"].forEach(g=>{let v=eC({label:g,isActive:A.themeMode===g,accentColor:n,disabled:o&&g!==A.forcedThemeMode,disabledTitle:"Theme controlled by host app",onClick:()=>Fu(A,g)});v.style.textTransform="capitalize",c.appendChild(v)}),l.appendChild(c),l}function $7(A){let n=Du("Display & appearance");return Qu(n,"Change where DevBar lives and how evidence captures are rendered."),n.appendChild(Z7(A)),n.appendChild(eK(A)),n.appendChild(tK(A)),n.appendChild(AK(A)),n}function Z7(A){let{accentColor:n}=A.options,o=H.textSecondary,l=document.createElement("div");Object.assign(l.style,{marginBottom:"10px"});let c=document.createElement("div");Object.assign(c.style,{color:H.text,fontSize:"0.6875rem",marginBottom:"6px"}),c.textContent="Position",l.appendChild(c);let h=document.createElement("div");return Object.assign(h.style,{position:"relative",width:"100%",height:"70px",backgroundColor:"var(--devbar-color-bg-input)",border:`1px solid ${J(o,19)}`,borderRadius:"4px"}),[{value:"top-left",style:{top:"6px",left:"6px"},title:"Top Left"},{value:"top-right",style:{top:"6px",right:"6px"},title:"Top Right"},{value:"bottom-left",style:{bottom:"6px",left:"6px"},title:"Bottom Left"},{value:"bottom-right",style:{bottom:"6px",right:"6px"},title:"Bottom Right"},{value:"bottom-center",style:{bottom:"6px",left:"50%",transform:"translateX(-50%)"},title:"Bottom Center"}].forEach(({value:v,style:b,title:C})=>{let E=document.createElement("button");E.setAttribute("data-position",v);let F=A.options.position===v;Object.assign(E.style,{position:"absolute",width:"24px",height:"6px",backgroundColor:F?n:H.textMuted,border:`1px solid ${F?n:H.textMuted}`,borderRadius:"2px",cursor:"pointer",padding:"0",transition:"all 150ms",boxShadow:F?`0 0 8px ${J(n,38)}`:"none",opacity:F?"1":"0.5",...b}),E.title=C,E.onclick=()=>{A.options.position=v,A.settingsManager.saveSettings({position:v}),A.render()},E.onmouseenter=()=>{F||(E.style.backgroundColor=n,E.style.borderColor=n,E.style.boxShadow=`0 0 6px ${J(n,25)}`,E.style.opacity="1")},E.onmouseleave=()=>{F||(E.style.backgroundColor=H.textMuted,E.style.borderColor=H.textMuted,E.style.boxShadow="none",E.style.opacity="0.5")},h.appendChild(E)}),l.appendChild(h),l}function eK(A){let{accentColor:n}=A.options,o=document.createDocumentFragment();o.appendChild(mi("Compact Mode",A.compactMode,n,()=>{A.toggleCompactMode()}));let l=document.createElement("div");return Object.assign(l.style,{color:H.textMuted,fontSize:"0.5625rem",marginTop:"2px",marginBottom:"8px"}),l.textContent="Keyboard: Cmd or Ctrl+Shift+M",o.appendChild(l),o}function tK(A){let n=document.createElement("div");Object.assign(n.style,{marginBottom:"6px"});let o=document.createElement("div");Object.assign(o.style,{color:H.text,fontSize:"0.6875rem",marginBottom:"6px"}),o.textContent="Accent Color",n.appendChild(o);let l=document.createElement("div");Object.assign(l.style,{display:"flex",gap:"6px",flexWrap:"wrap",alignItems:"center"});let c=A.options.accentColor,h=c===H.primary,v=!fl.some(b=>b.value===c)&&!h;if(fl.forEach(({name:b,value:C})=>{let E=document.createElement("button"),F=c===C||h&&b==="Emerald";Object.assign(E.style,{width:"24px",height:"24px",borderRadius:"50%",backgroundColor:C,border:F?"2px solid #fff":"2px solid transparent",cursor:"pointer",transition:"all 150ms",boxShadow:F?`0 0 8px ${C}`:"none"}),E.title=b,E.onclick=()=>{A.options.accentColor=C,A.settingsManager.saveSettings({accentColor:C}),A.render()},l.appendChild(E)}),v){let b=document.createElement("button");b.type="button",b.setAttribute("data-accent-reset","true"),b.title=`Custom color (${c}). Click to reset to theme default.`,Object.assign(b.style,{marginLeft:"4px",padding:"2px 8px",borderRadius:"10px",border:`1px dashed ${c}`,backgroundColor:"transparent",color:c,fontSize:"0.625rem",fontFamily:ut,cursor:"pointer",lineHeight:"1.4"}),b.textContent="custom \xB7 reset",b.onclick=()=>{let C=fa.accentColor;A.options.accentColor=C,A.settingsManager.saveSettings({accentColor:C}),A.render()},l.appendChild(b)}return n.appendChild(l),n}function rK(A,n){return[`#${A}::-webkit-slider-thumb {`," -webkit-appearance: none;"," width: 12px; height: 12px;"," border-radius: 50%;",` background: ${n};`,` border: 2px solid ${H.bg};`,` box-shadow: 0 0 4px ${J(n,50)};`," cursor: grab;","}",`#${A}::-webkit-slider-thumb:active { cursor: grabbing; }`,`#${A}::-moz-range-thumb {`," width: 12px; height: 12px;"," border-radius: 50%;",` background: ${n};`,` border: 2px solid ${H.bg};`,` box-shadow: 0 0 4px ${J(n,50)};`," cursor: grab;","}",`#${A}::-webkit-slider-runnable-track { background: transparent; }`,`#${A}::-moz-range-track { background: transparent; }`].join(`
|
|
525
535
|
`)}function nK(A,n,o,l){A.oninput=()=>{let c=parseFloat(A.value);n.textContent=c.toFixed(2),o.style.width=`${c*100}%`,l.options.screenshotQuality=c},A.onchange=()=>{l.settingsManager.saveSettings({screenshotQuality:l.options.screenshotQuality})}}function AK(A){let{accentColor:n}=A.options,o=H.textSecondary,l=document.createElement("div");Object.assign(l.style,{marginTop:"8px"});let c=document.createElement("div");Object.assign(c.style,{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"6px"});let h=document.createElement("span");Object.assign(h.style,{color:H.text,fontSize:"0.6875rem"}),h.textContent="Screenshot Quality",c.appendChild(h);let g=document.createElement("span");Object.assign(g.style,{color:n,fontSize:"0.6875rem",fontFamily:"monospace",minWidth:"28px",textAlign:"right"});let v=A.options.screenshotQuality;g.textContent=v.toFixed(2),c.appendChild(g),l.appendChild(c);let b=document.createElement("div");Object.assign(b.style,{position:"relative",height:"20px"});let C=document.createElement("div");Object.assign(C.style,{position:"absolute",top:"50%",left:"0",right:"0",height:"2px",transform:"translateY(-50%)",borderRadius:"1px",background:J(o,25),pointerEvents:"none"});let E=document.createElement("div");Object.assign(E.style,{height:"100%",width:`${v*100}%`,borderRadius:"1px",background:n}),C.appendChild(E),b.appendChild(C);let F=document.createElement("input");F.type="range",F.min="0",F.max="1",F.step="0.01",F.value=String(v),Object.assign(F.style,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",appearance:"none",WebkitAppearance:"none",background:"transparent",outline:"none",cursor:"pointer",margin:"0"});let R=`devbar-quality-${Date.now()}`;F.id=R;let k=document.createElement("style");return k.textContent=rK(R,n),b.appendChild(k),nK(F,g,E,A),b.appendChild(F),l.appendChild(b),l}function aK(A){let{accentColor:n}=A.options,o=Du("Evidence workflow");return Qu(o,"Choose the controls and save behavior an agent sees during inspect, verify, and handoff."),o.appendChild(oK(A)),o.appendChild(mi("Screenshot Button",A.options.showScreenshot,n,()=>{A.options.showScreenshot=!A.options.showScreenshot,A.settingsManager.saveSettings({showScreenshot:A.options.showScreenshot}),A.render()})),o.appendChild(mi("Console Badges",A.options.showConsoleBadges,n,()=>{A.options.showConsoleBadges=!A.options.showConsoleBadges,A.settingsManager.saveSettings({showConsoleBadges:A.options.showConsoleBadges}),A.render()})),o.appendChild(mi("Tooltips",A.options.showTooltips,n,()=>{A.options.showTooltips=!A.options.showTooltips,A.settingsManager.saveSettings({showTooltips:A.options.showTooltips}),A.render()})),o}function oK(A){let{accentColor:n}=A.options,o=document.createElement("div");Object.assign(o.style,{marginBottom:"10px"});let l=document.createElement("div");Object.assign(l.style,{color:H.text,fontSize:"0.6875rem",marginBottom:"6px"}),l.textContent="Save Method",o.appendChild(l);let c=document.createElement("div");Object.assign(c.style,{color:H.textMuted,fontSize:"0.5625rem",lineHeight:"1.4",marginBottom:"8px"}),c.textContent="Auto saves artifacts through Sweetlink when connected, otherwise downloads in-browser.",o.appendChild(c);let h=document.createElement("div");return Object.assign(h.style,{display:"flex",gap:"6px",flexWrap:"wrap"}),[{value:"auto",label:"Auto"},{value:"download",label:"Download"},{value:"local",label:"Local"}].forEach(({value:v,label:b})=>{let C=v==="local"&&!A.sweetlinkConnected,E=eC({label:b,isActive:A.options.saveLocation===v,accentColor:n,disabled:C,disabledTitle:"Sweetlink not connected",onClick:()=>{A.options.saveLocation=v,A.settingsManager.saveSettings({saveLocation:v}),A.render()}});h.appendChild(E)}),o.appendChild(h),o}function iK(A){let{accentColor:n}=A.options,o=Du("Metrics");return Qu(o,"Keep the toolbar focused by hiding metrics that are not useful now."),[{key:"breakpoint",label:"Breakpoint"},{key:"fcp",label:"FCP"},{key:"lcp",label:"LCP"},{key:"cls",label:"CLS"},{key:"inp",label:"INP"},{key:"pageSize",label:"Page Size"}].forEach(({key:c,label:h})=>{let g=A.options.showMetrics[c]??!0;o.appendChild(mi(h,g,n,()=>{A.options.showMetrics[c]=!A.options.showMetrics[c],A.settingsManager.saveSettings({showMetrics:{breakpoint:A.options.showMetrics.breakpoint??!0,fcp:A.options.showMetrics.fcp??!0,lcp:A.options.showMetrics.lcp??!0,cls:A.options.showMetrics.cls??!0,inp:A.options.showMetrics.inp??!0,pageSize:A.options.showMetrics.pageSize??!0}}),A.render()}))}),o}function sK(A){let n=H.textSecondary,o=document.createElement("div");Object.assign(o.style,{padding:"10px 14px",borderTop:`1px solid ${J(n,13)}`});let l=rn({color:H.textMuted,text:"Reset to Defaults",padding:"6px 12px",fontSize:"0.625rem"});Object.assign(l.style,{width:"100%",justifyContent:"center",border:"1px solid transparent"});let c=H.textMuted;return l.onmouseenter=()=>{l.style.border=`1px solid ${c}`,l.style.backgroundColor=J(c,6)},l.onmouseleave=()=>{l.style.border="1px solid transparent",l.style.backgroundColor="transparent"},l.onclick=()=>{A.settingsManager.resetToDefaults();let h=fa;A.applySettings(h)},o.appendChild(l),o}function Du(A,n=!0){let o=H.textSecondary,l=document.createElement("div");Object.assign(l.style,{padding:"10px 14px",borderBottom:n?`1px solid ${J(o,13)}`:"none"});let c=document.createElement("div");return Object.assign(c.style,{color:o,fontSize:"0.625rem",textTransform:"uppercase",letterSpacing:"0.1em",marginBottom:"8px"}),c.textContent=A,l.appendChild(c),l}function Qu(A,n){let o=document.createElement("div");Object.assign(o.style,{color:H.textMuted,fontSize:"0.5625rem",lineHeight:"1.4",margin:"-2px 0 10px"}),o.textContent=n,A.appendChild(o)}function eC(A){let{label:n,isActive:o,accentColor:l,disabled:c,disabledTitle:h,onClick:g}=A,v=H.textSecondary,b=document.createElement("button");return Object.assign(b.style,{padding:"6px 10px",minHeight:"28px",backgroundColor:o?J(l,13):"transparent",border:`1px solid ${o?l:"transparent"}`,borderRadius:"4px",color:o?l:v,fontFamily:ut,fontSize:"0.625rem",cursor:c?"not-allowed":"pointer",transition:"all 150ms",opacity:c?"0.5":"1"}),b.textContent=n,c?h&&(b.title=h):o||(b.onmouseenter=()=>{b.style.borderColor=`${v}`,b.style.backgroundColor=J(v,6)},b.onmouseleave=()=>{b.style.borderColor="transparent",b.style.backgroundColor="transparent"}),b.onclick=()=>{c||g()},b}function mi(A,n,o,l){let c=document.createElement("div");Object.assign(c.style,{display:"flex",alignItems:"center",justifyContent:"space-between",minHeight:"28px",marginBottom:"6px",gap:"12px"});let h=document.createElement("span");Object.assign(h.style,{color:H.text,fontSize:"0.6875rem"}),h.textContent=A,c.appendChild(h);let g=document.createElement("button");Object.assign(g.style,{width:"32px",height:"18px",borderRadius:"9px",border:`1px solid ${n?o:H.border}`,backgroundColor:n?o:H.bgInput,position:"relative",cursor:"pointer",transition:"all 150ms",flexShrink:"0",boxSizing:"border-box"});let v=document.createElement("span");return Object.assign(v.style,{position:"absolute",top:"2px",left:n?"14px":"2px",width:"12px",height:"12px",borderRadius:"50%",backgroundColor:n?"#fff":H.textMuted,boxShadow:"0 1px 2px rgba(0,0,0,0.2)",transition:"left 150ms, background-color 150ms"}),g.appendChild(v),g.onclick=l,c.appendChild(g),c}function lK(A,n){if(A.consoleFilter){let o=A.consoleFilter;qt(A),A.consoleFilter=o,Ky(A,n)}else A.showOutlineModal?(qt(A),A.showOutlineModal=!0,Wy(A)):A.showSchemaModal?(qt(A),A.showSchemaModal=!0,zy(A)):A.showA11yModal?(qt(A),A.showA11yModal=!0,Xy(A)):A.showDesignReviewConfirm?(qt(A),A.showDesignReviewConfirm=!0,Yy(A)):A.showSettingsPopover&&(qt(A),A.showSettingsPopover=!0,Zy(A))}function tC(A,n,o){if(!A.destroyed&&!(typeof document>"u")&&!Df){Qf(!0),Zw(A),A.overlayElement&&(A.overlayElement.remove(),A.overlayElement=null,document.body.style.overflow=""),A.container&&A.container.remove(),A.container=document.createElement("div"),A.container.setAttribute("data-devbar","true"),A.container.setAttribute("role","toolbar"),A.container.setAttribute("aria-label","DevBar"),document.body.appendChild(A.container);try{A.collapsed?sb(A):A.compactMode?Py(A,o):Vy(A,o)}catch(l){console.error("[GlobalDevBar] Render failed:",l)}try{lK(A,n)}catch(l){console.error("[GlobalDevBar] Overlay render failed:",l)}A.overlayElement&&(document.body.style.overflow="hidden"),Qf(!1)}}function rC(A){if(A.pendingViewerWindow){try{A.pendingViewerWindow.close()}catch{}A.pendingViewerWindow=null}}function AC(A){return`ws://localhost:${A.baseWsPort}`}function Jp(A){return A.wsUrlCandidates?.length?A.wsUrlCandidates:[AC(A)]}function dK(A,n){return typeof n=="string"?n:typeof n=="number"?`ws://localhost:${n}`:Jp(A)[0]??AC(A)}function aC(A){try{let n=new URL(A);if(n.protocol!=="ws:"&&n.protocol!=="wss:")return null;let o=Number(n.port);return Number.isInteger(o)&&o>0?o:null}catch{return null}}function nC(A,n,o=100){let l=Jp(A),c=l.indexOf(n);if(c>=0&&c+1<l.length){setTimeout(()=>Ia(A,l[c+1]),o);return}let h=aC(n);if(h!==null){let g=h+1;if(g<A.baseWsPort+10){setTimeout(()=>Ia(A,g),o);return}}setTimeout(()=>Ia(A),Hw)}function Ia(A,n){if(A.destroyed)return;let o=dK(A,n),l=aC(o);A.debug.ws("Connecting to WebSocket",{url:o,port:l??"same-origin",appPort:A.currentAppPort});let c=new WebSocket(o),h=!1;A.ws=c,A.wsVerified=!1,c.onopen=()=>{A.debug.ws("WebSocket socket opened, awaiting server-info"),c.send(JSON.stringify({type:"browser-client-ready"}))},c.onmessage=async g=>{try{let v=JSON.parse(g.data);if(v.type==="server-info"){let C=v.appPort;if(!(C===null||C===A.currentAppPort)){A.debug.ws("Server mismatch",{serverAppPort:C,currentAppPort:A.currentAppPort,targetUrl:o}),h=!0,c.close(),nC(A,o);return}A.wsVerified=!0,A.sweetlinkConnected=!0,A.reconnectAttempts=0,A.serverProjectDir=v.projectDir??null,A.serverGitBranch=v.gitBranch??null,A.serverAppName=v.appName??null,A.debug.ws("Server verified",{appPort:C??"any",projectDir:A.serverProjectDir,gitBranch:A.serverGitBranch}),A.settingsManager.setWebSocket(c),A.settingsManager.setConnected(!0),c.send(JSON.stringify({type:"load-settings"})),A.render();return}if(!A.wsVerified){A.debug.ws("Ignoring command before verification",{type:v.type});return}if(v.type==="hifi-screenshot"){A.capturing=!1,A.render();return}if(v.type==="record-start-response"&&v.success){A.recordingActive=!0,A.recordingSessionId=v.sessionId??null,A.recordingStartedAt=Date.now(),A.recordingTimer=setInterval(()=>A.render(),1e3),A.render();return}if(v.type==="record-stop-response"||v.type==="record-stop"){if(A.recordingActive=!1,A.recordingTimer&&clearInterval(A.recordingTimer),A.recordingTimer=null,A.recordingStartedAt=null,v.success){let E=v.viewerUrl;E&&A.pendingViewerWindow?(A.pendingViewerWindow.location.href=E,A.pendingViewerWindow=null):rC(A),E&&(A.lastViewerPath=E)}else rC(A);A.render();return}let b=v;A.debug.ws("Received command",{type:b.type}),await LK(A,b)}catch(v){console.error("[GlobalDevBar] Error handling command:",v)}},c.onclose=()=>{if(A.wsVerified){if(A.sweetlinkConnected=!1,A.wsVerified=!1,A.serverProjectDir=null,A.settingsManager.setConnected(!1),A.debug.ws("WebSocket disconnected"),A.render(),!A.destroyed&&A.reconnectAttempts<nl){let g=kw*2**A.reconnectAttempts;A.reconnectAttempts++,A.debug.ws("Scheduling reconnect",{attempt:A.reconnectAttempts,delayMs:g}),A.reconnectTimeout=setTimeout(()=>Ia(A,A.baseWsPort),Math.min(g,Lw))}}else if(!A.destroyed&&!h){let g=Jp(A),v=g.indexOf(o);v>=0&&v+1<g.length&&(A.debug.ws("WebSocket closed before verification, trying next candidate"),nC(A,o))}},c.onerror=()=>{A.debug.ws("WebSocket error")}}function Su(A,n,o=sa){return(l,c)=>{gi(l,A,c[n],o)}}function Uu(A,n){return(o,l)=>{n&&(o[n]=!1),console.error(`[GlobalDevBar] ${A} failed:`,l.error),n&&o.render()}}var fK=Su("outline","outlinePath"),pK=Su("schema","schemaPath"),hK=Su("consoleLogs","consoleLogsPath"),mK=Su("a11y","a11yPath"),gK=(A,n)=>{A.capturing=!1,gi(A,"screenshot",n.path,sa)},vK=Uu("Outline save"),wK=Uu("Schema save"),bK=Uu("Console logs save","savingConsoleLogs"),BK=Uu("A11y save","savingA11yAudit");async function yK(A,n){let o=n.selector&&document.querySelector(n.selector)||document.body,c=await(await kA())(o,{logging:!1,useCORS:!0,allowTaint:!0});A.send(JSON.stringify({success:!0,data:{screenshot:c.toDataURL("image/png"),width:c.width,height:c.height,selector:n.selector||"body"},timestamp:Date.now()}))}function CK(A,n,o){let l=A.consoleLogs;if(o.filter){let c=o.filter.toLowerCase();l=l.filter(h=>h.level.includes(c)||h.message.toLowerCase().includes(c))}n.send(JSON.stringify({success:!0,data:l,timestamp:Date.now()}))}function EK(A,n){if(n.selector){let l=Array.from(document.querySelectorAll(n.selector)).map(c=>n.property?c[n.property]??null:{tagName:c.tagName,className:c.className,id:c.id,textContent:c.textContent?.trim().slice(0,100)});A.send(JSON.stringify({success:!0,data:{count:l.length,results:l},timestamp:Date.now()}))}}function xK(A,n){if(n.code&&typeof n.code=="string"&&n.code.length<=1e4)try{let l=(0,eval)(n.code);A.send(JSON.stringify({success:!0,data:l,timestamp:Date.now()}))}catch(o){A.send(JSON.stringify({success:!1,error:o instanceof Error?o.message:"Execution failed",timestamp:Date.now()}))}}async function FK(A,n){try{let o=await Uo(n.forceRefresh),l={critical:0,serious:0,moderate:0,minor:0};for(let c of o.violations)l[c.impact]=(l[c.impact]||0)+1;A.send(JSON.stringify({success:!0,data:{result:o,summary:{totalViolations:o.violations.length,totalPasses:o.passes.length,totalIncomplete:o.incomplete.length,byImpact:l},url:window.location.href,title:document.title,timestamp:Date.now()},timestamp:Date.now()}))}catch(o){A.send(JSON.stringify({success:!1,error:o instanceof Error?o.message:"Accessibility audit failed",timestamp:Date.now()}))}}function DK(A){try{let n=vA(),o=Hn(n);A.send(JSON.stringify({success:!0,data:{outline:n,markdown:o,url:window.location.href,title:document.title,timestamp:Date.now()},timestamp:Date.now()}))}catch(n){A.send(JSON.stringify({success:!1,error:n instanceof Error?n.message:"Outline extraction failed",timestamp:Date.now()}))}}function QK(A){try{let n=wA(),o=bA(n);A.send(JSON.stringify({success:!0,data:{schema:n,markdown:o,url:window.location.href,title:document.title,timestamp:Date.now()},timestamp:Date.now()}))}catch(n){A.send(JSON.stringify({success:!1,error:n instanceof Error?n.message:"Schema extraction failed",timestamp:Date.now()}))}}async function SK(A){try{let o=performance.getEntriesByType("paint").find(q=>q.name==="first-contentful-paint"),l=o?Math.round(o.startTime):null,c=q=>new Promise(ae=>{try{let Z=[],he=new PerformanceObserver(Se=>{Z.push(...Se.getEntries())});he.observe({type:q,buffered:!0}),setTimeout(()=>{he.disconnect(),ae(Z)},0)}catch{ae([])}}),[h,g,v]=await Promise.all([c("largest-contentful-paint"),c("layout-shift"),c("event")]),b=h.length>0?Math.round(h[h.length-1].startTime):null,C=null;if(g.length>0){let q=0;for(let ae of g){let Z=ae;Z.hadRecentInput||(q+=Z.value)}C=Math.round(q*1e3)/1e3}let E=null;if(v.length>0){let q=0;for(let ae of v){let Z=ae;Z.duration>q&&(q=Z.duration)}E=Math.round(q)}let F=null,R=performance.getEntriesByType("resource"),k=0;for(let q of R)k+=q.transferSize||0;k>0&&(F=k);let G={fcp:l,lcp:b,cls:C,inp:E,pageSize:F,url:window.location.href,title:document.title,timestamp:Date.now()},W=[];l!==null&&W.push(`FCP: ${l}ms`),b!==null&&W.push(`LCP: ${b}ms`),C!==null&&W.push(`CLS: ${C}`),E!==null&&W.push(`INP: ${E}ms`),F!==null&&W.push(`Page size: ${Math.round(F/1024)}KB`),A.send(JSON.stringify({success:!0,data:{vitals:G,summary:W.join(", ")||"No metrics available yet"},timestamp:Date.now()}))}catch(n){A.send(JSON.stringify({success:!1,error:n instanceof Error?n.message:"Vitals collection failed",timestamp:Date.now()}))}}function UK(A){try{window.location.reload(),A.send(JSON.stringify({success:!0,timestamp:Date.now()}))}catch(n){A.send(JSON.stringify({success:!1,error:n instanceof Error?n.message:"Refresh failed",timestamp:Date.now()}))}}function TK(A,n){A.designReviewInProgress=!1,gi(A,"designReview",n.reviewPath,ff)}function IK(A,n){A.designReviewInProgress=!1,A.designReviewError=n.error||"Unknown error",console.error("[GlobalDevBar] Design review failed:",n.error),A.designReviewErrorTimeout&&clearTimeout(A.designReviewErrorTimeout),A.designReviewErrorTimeout=setTimeout(()=>{A.designReviewError=null,A.render()},ff),A.render()}function _K(A,n){let o=n;A.apiKeyStatus={configured:o.configured??!1,model:o.model,pricing:o.pricing},A.render()}function RK(A,n){HK(A,n.settings)}function OK(A,n){A.debug.state("Settings saved to server",{path:n.settingsPath})}function kK(A){console.error("[GlobalDevBar] Settings operation failed:",A.error)}async function LK(A,n){let o=A.ws;if(!(!o||o.readyState!==WebSocket.OPEN))switch(n.type){case"screenshot":await yK(o,n);break;case"get-logs":CK(A,o,n);break;case"query-dom":EK(o,n);break;case"exec-js":xK(o,n);break;case"get-a11y":await FK(o,n);break;case"get-outline":DK(o);break;case"get-schema":QK(o);break;case"get-vitals":await SK(o);break;case"refresh":UK(o);break;case"screenshot-saved":gK(A,n);break;case"design-review-saved":TK(A,n);break;case"design-review-error":IK(A,n);break;case"api-key-status":_K(A,n);break;case"outline-saved":fK(A,n);break;case"outline-error":vK(A,n);break;case"schema-saved":pK(A,n);break;case"schema-error":wK(A,n);break;case"console-logs-saved":hK(A,n);break;case"console-logs-error":bK(A,n);break;case"a11y-saved":mK(A,n);break;case"a11y-error":BK(A,n);break;case"settings-loaded":RK(A,n);break;case"settings-saved":OK(A,n);break;case"settings-error":kK(n);break;default:break}}function gi(A,n,o,l){if(o){switch(n){case"screenshot":A.lastScreenshot=o,A.screenshotTimeout&&clearTimeout(A.screenshotTimeout),A.screenshotTimeout=setTimeout(()=>{A.lastScreenshot=null,A.render()},l);break;case"designReview":A.lastDesignReview=o,A.designReviewTimeout&&clearTimeout(A.designReviewTimeout),A.designReviewTimeout=setTimeout(()=>{A.lastDesignReview=null,A.render()},l);break;case"outline":A.savingOutline=!1,A.lastOutline=o,A.outlineTimeout&&clearTimeout(A.outlineTimeout),A.outlineTimeout=setTimeout(()=>{A.lastOutline=null,A.render()},l);break;case"schema":A.savingSchema=!1,A.lastSchema=o,A.schemaTimeout&&clearTimeout(A.schemaTimeout),A.schemaTimeout=setTimeout(()=>{A.lastSchema=null,A.render()},l);break;case"consoleLogs":A.savingConsoleLogs=!1,A.lastConsoleLogs=o,A.consoleLogsTimeout&&clearTimeout(A.consoleLogsTimeout),A.consoleLogsTimeout=setTimeout(()=>{A.lastConsoleLogs=null,A.render()},l);break;case"a11y":A.savingA11yAudit=!1,A.lastA11yAudit=o,A.a11yTimeout&&clearTimeout(A.a11yTimeout),A.a11yTimeout=setTimeout(()=>{A.lastA11yAudit=null,A.render()},l);break}A.render()}}function HK(A,n){if(!n){A.debug.state("No server settings found, using local");return}A.debug.state("Settings loaded from server",n),A.settingsManager.handleSettingsLoaded(n),A.applySettings(n)}function MK(A,n){let o=[],l=h=>{h&&!o.includes(h)&&o.push(h)};l(n.wsUrl),n.wsPath&&l(Ow(A,n.wsPath));let c=ia(n.wsPort)??n.fallbackPort;return l(`ws://localhost:${c}`),o}var Ar=new rl({trackCounts:!0});Ar.importEarlyLogs();Ar.start();Ar.startErrorHandlers();var ar=class A{static CONTROLS_KEY="__YTSPAR_DEVBAR_CONTROLS__";static get customControls(){return typeof window>"u"?[]:window[A.CONTROLS_KEY]??[]}static set customControls(n){typeof window<"u"&&(window[A.CONTROLS_KEY]=n)}options;forcedThemeMode;debugConfig;debug;container=null;ws=null;consoleLogs=[];sweetlinkConnected=!1;collapsed=!1;capturing=!1;copiedToClipboard=!1;copiedPath=!1;lastScreenshot=null;designReviewInProgress=!1;lastDesignReview=null;designReviewError=null;showDesignReviewConfirm=!1;apiKeyStatus=null;lastOutline=null;lastSchema=null;savingOutline=!1;savingSchema=!1;consoleFilter=null;savingConsoleLogs=!1;lastConsoleLogs=null;consoleLogsTimeout;showOutlineModal=!1;showSchemaModal=!1;showA11yModal=!1;a11yLoading=!1;lastA11yAudit=null;savingA11yAudit=!1;a11yTimeout=null;recordingActive=!1;recordingSessionId=null;recordingStartedAt=null;recordingTimer=null;lastViewerPath=null;pendingViewerWindow=null;demoActive=!1;demoTitle=null;demoSectionCount=0;rulerMode=!1;rulerOverlay=null;rulerPinnedElements=[];rulerCleanup=null;activeTooltips=new Set;breakpointInfo=null;perfStats=null;lcpValue=null;clsValue=0;inpValue=0;reconnectAttempts=0;currentAppPort;baseWsPort;wsUrlCandidates;wsVerified=!1;serverProjectDir=null;serverGitBranch=null;serverAppName=null;lastDotPosition=null;reconnectTimeout=null;screenshotTimeout=null;copiedPathTimeout=null;designReviewTimeout=null;designReviewErrorTimeout=null;outlineTimeout=null;schemaTimeout=null;resizeHandler=null;keydownHandler=null;fcpObserver=null;lcpObserver=null;clsObserver=null;inpObserver=null;destroyed=!1;themeMode="system";themeMediaQuery=null;themeMediaHandler=null;compactMode=!1;showSettingsPopover=!1;overlayElement=null;settingsManager;logChangeListener=null;constructor(n={}){if(this.debugConfig=Cf(n.debug),this.debug=new To(this.debugConfig),this.forcedThemeMode=n.themeMode,this.settingsManager=If(n.defaultThemeMode?{themeMode:n.defaultThemeMode}:{}),this.forcedThemeMode&&this.settingsManager.saveSettingsNow({themeMode:this.forcedThemeMode}),typeof window<"u"){let o=_w(window),l=n.sweetlink,c=l?.appPort??Rw(window.location,o);this.currentAppPort=c,this.baseWsPort=l?.wsPort??ia(o.wsPort)??Iw(c),this.wsUrlCandidates=MK(window.location,{wsUrl:l?.wsUrl??o.wsUrl,wsPort:l?.wsPort??o.wsPort,wsPath:l?.wsPath??o.wsPath,fallbackPort:this.baseWsPort})}else this.currentAppPort=0,this.baseWsPort=9223,this.wsUrlCandidates=[`ws://localhost:${9223}`];this.options={position:n.position??"bottom-left",accentColor:n.accentColor??H.primary,showMetrics:{breakpoint:n.showMetrics?.breakpoint??!0,fcp:n.showMetrics?.fcp??!0,lcp:n.showMetrics?.lcp??!0,cls:n.showMetrics?.cls??!0,inp:n.showMetrics?.inp??!0,pageSize:n.showMetrics?.pageSize??!0},showScreenshot:n.showScreenshot??!0,showConsoleBadges:n.showConsoleBadges??!0,showTooltips:n.showTooltips??!0,saveLocation:n.saveLocation??"auto",screenshotQuality:n.screenshotQuality??.65,sizeOverrides:n.sizeOverrides},this.debug.lifecycle("GlobalDevBar constructed",{options:this.options})}getLogCounts(){return{errorCount:Ar.getErrorCount(),warningCount:Ar.getWarningCount(),infoCount:Ar.getInfoCount()}}resetPositionStyles(n){Object.assign(n.style,{top:"",bottom:"",left:"",right:"",transform:""})}createCollapsedBadge(n,o,l){let c=document.createElement("span");return Object.assign(c.style,{position:"absolute",top:"-6px",right:l,minWidth:"16px",height:"16px",padding:"0 4px",borderRadius:"9999px",backgroundColor:o,color:ue.white,fontSize:"0.5625rem",fontWeight:"600",display:"flex",alignItems:"center",justifyContent:"center"}),c.textContent=n>99?"!":String(n),c}static registerControl(n){A.customControls=A.customControls.filter(l=>l.id!==n.id),A.customControls.push(n);let o=_a();o&&o.render()}static unregisterControl(n){A.customControls=A.customControls.filter(l=>l.id!==n);let o=_a();o&&o.render()}static getControls(){return[...A.customControls]}static clearControls(){A.customControls=[];let n=_a();n&&n.render()}init(){typeof window>"u"||this.destroyed||(this.debug.lifecycle("Initializing DevBar"),this.injectStyles(),this.consoleLogs=Ar.getLogs(),this.debug.lifecycle("Copied console logs",{count:this.consoleLogs.length}),this.logChangeListener=()=>{this.consoleLogs=Ar.getLogs(),this.overlayElement||this.render()},Ar.addListener(this.logChangeListener),Jy(this),$y(this),this.connectWebSocket(),zw(this),Yw(this),qw(this),this.render(),this.debug.lifecycle("DevBar initialized successfully"))}getPosition(){return this.options.position}destroy(){this.debug.lifecycle("Destroying DevBar"),this.destroyed=!0,this.reconnectAttempts=nl,this.reconnectTimeout&&clearTimeout(this.reconnectTimeout),this.ws&&this.ws.close(),this.screenshotTimeout&&clearTimeout(this.screenshotTimeout),this.copiedPathTimeout&&clearTimeout(this.copiedPathTimeout),this.designReviewTimeout&&clearTimeout(this.designReviewTimeout),this.outlineTimeout&&clearTimeout(this.outlineTimeout),this.schemaTimeout&&clearTimeout(this.schemaTimeout),this.consoleLogsTimeout&&clearTimeout(this.consoleLogsTimeout),this.a11yTimeout&&clearTimeout(this.a11yTimeout),this.resizeHandler&&window.removeEventListener("resize",this.resizeHandler),this.keydownHandler&&window.removeEventListener("keydown",this.keydownHandler),this.fcpObserver&&this.fcpObserver.disconnect(),this.lcpObserver&&this.lcpObserver.disconnect(),this.clsObserver&&this.clsObserver.disconnect(),this.inpObserver&&this.inpObserver.disconnect(),this.themeMediaQuery&&this.themeMediaHandler&&this.themeMediaQuery.removeEventListener("change",this.themeMediaHandler),this.logChangeListener&&(Ar.removeListener(this.logChangeListener),this.logChangeListener=null),Ar.stop(),this.container&&(this.container.remove(),this.container=null),this.overlayElement&&(this.overlayElement.remove(),this.overlayElement=null,document.body.style.overflow=""),this.debug.lifecycle("DevBar destroyed")}injectStyles(){let n="devbar-styles";if(!document.getElementById(n)){let o=document.createElement("style");o.id=n,o.textContent=Vw,document.head.appendChild(o)}}connectWebSocket(n){Ia(this,n)}handleNotification(n,o,l){gi(this,n,o,l)}applySettings(n){let o=this.forcedThemeMode?{...n,themeMode:this.forcedThemeMode}:n,l=this.themeMode;this.forcedThemeMode&&this.settingsManager.get("themeMode")!==this.forcedThemeMode&&this.settingsManager.saveSettingsNow({themeMode:this.forcedThemeMode}),this.themeMode=o.themeMode,this.compactMode=o.compactMode,this.options.position=o.position,this.options.accentColor=o.accentColor,this.options.showScreenshot=o.showScreenshot,this.options.showConsoleBadges=o.showConsoleBadges,this.options.showTooltips=o.showTooltips,this.options.saveLocation=o.saveLocation,this.options.screenshotQuality=o.screenshotQuality??.65,this.options.showMetrics={...o.showMetrics},CA(yA(o.themeMode)),l!==o.themeMode&&typeof window<"u"&&window.dispatchEvent(new CustomEvent("devbar-theme-change",{detail:{mode:o.themeMode}})),this.render()}clearConsoleLogs(){Ar.clear(),this.consoleLogs=[],this.consoleFilter=null,this.render()}handleScreenshot(n){return By(this,n)}getThemeMode(){return this.themeMode}setThemeMode(n){Fu(this,n)}getColors(){return wf(this.themeMode)}toggleCompactMode(){this.compactMode=!this.compactMode,this.settingsManager.saveSettings({compactMode:this.compactMode}),this.debug.state("Compact mode toggled",{compactMode:this.compactMode}),this.render()}isCompactMode(){return this.compactMode}render(){tC(this,Ar,A.customControls)}},iC="__YTSPAR_DEVBAR_INSTANCE__";function _a(){return typeof window>"u"?null:window[iC]??null}function $p(A){typeof window>"u"||(window[iC]=A)}function LA(A){let n=_a();if(n){let l=n.getPosition(),c=A?.position??"bottom-left";if(l===c)return n;n.destroy(),$p(null)}let o=new ar(A);return o.init(),$p(o),o}function Zp(){return _a()}function NK(){let A=_a();A&&(A.destroy(),$p(null))}var e1=class{entries=[];observer=null;listeners=new Set;maxEntries=200;start(){if(typeof PerformanceObserver>"u"){console.warn("[NetworkMonitor] PerformanceObserver not supported");return}let n=performance.getEntriesByType("resource");for(let o of n)this.addEntry(o);try{this.observer=new PerformanceObserver(o=>{for(let l of o.getEntries())this.addEntry(l);this.notifyListeners()}),this.observer.observe({type:"resource",buffered:!0})}catch(o){console.warn("[NetworkMonitor] Failed to start observer",o)}}stop(){this.observer&&(this.observer.disconnect(),this.observer=null)}addEntry(n){let o={url:n.name,name:this.getResourceName(n.name),initiatorType:n.initiatorType,duration:Math.round(n.duration),transferSize:n.transferSize,encodedBodySize:n.encodedBodySize,decodedBodySize:n.decodedBodySize,startTime:Math.round(n.startTime),responseEnd:Math.round(n.responseEnd)};this.entries.push(o),this.entries.length>this.maxEntries&&(this.entries=this.entries.slice(-this.maxEntries))}getResourceName(n){try{let o=new URL(n),c=o.pathname.split("/").filter(Boolean);return c.length>0?c[c.length-1]:o.hostname}catch{return n.slice(0,50)}}getState(){let n=0;for(let o of this.entries)n+=o.transferSize||0;return{entries:[...this.entries],totalRequests:this.entries.length,totalSize:n,pendingCount:0}}getEntriesByType(n){return this.entries.filter(o=>o.initiatorType===n)}search(n){let o=n.toLowerCase();return this.entries.filter(l=>l.url.toLowerCase().includes(o)||l.name.toLowerCase().includes(o)||l.initiatorType.toLowerCase().includes(o))}clear(){this.entries=[],this.notifyListeners()}subscribe(n){return this.listeners.add(n),()=>this.listeners.delete(n)}notifyListeners(){let n=this.getState();for(let o of this.listeners)o(n)}};var sC="devbar-plugin-app-version";function PK(A,n={}){let{prefix:o="v",variant:l="default",onClick:c}=n;return ar.registerControl({id:sC,label:`${o}${A}`,variant:l,onClick:c?()=>c(A):void 0}),()=>{ar.unregisterControl(sC)}}var t1="devbar-plugin-git-branch",KK=2e3;function VK(A={}){let{prefix:n="\uE0A0",variant:o="info",onClick:l}=A,c=null,h=!1;function g(){if(h)return;let C=Zp()?.serverGitBranch??null;C!==c&&(c=C,C?ar.registerControl({id:t1,label:`${n} ${C}`,variant:o,onClick:l?()=>l(C):void 0}):ar.unregisterControl(t1))}g();let v=setInterval(g,KK);return()=>{h=!0,clearInterval(v),ar.unregisterControl(t1)}}var GK="devbar-plugin-release-info";function jK(A){let n=A instanceof Date?A:new Date(A);return Number.isNaN(n.getTime())?null:n}function WK(A){return A instanceof Date?A.toISOString():String(A)}function lC(A,n={}){let o=jK(A);return o?new Intl.DateTimeFormat(n.locale,{dateStyle:"medium",timeStyle:"short",timeZone:n.timeZone}).format(o):WK(A)}function qK(A,n={}){if(n.label)return n.label;let o=lC(A.releasedAt,n);return A.version?`${n.versionPrefix??"v"}${A.version} ${o}`:o}function zK(A,n={}){let o=[A.version?`Release ${n.versionPrefix??"v"}${A.version}`:"Release",`Released: ${lC(A.releasedAt,n)}`];if(A.changelog&&A.changelog.length>0){o.push("","Changelog");for(let l of A.changelog)o.push(`- ${l}`)}return o.join(`
|
|
526
536
|
`)}function XK(A,n={}){let o=n.id??GK;return ar.registerControl({id:o,label:qK(A,n),tooltip:()=>zK(A,n),variant:n.variant??"info",onClick:n.onClick?()=>n.onClick?.(A):void 0}),()=>{ar.unregisterControl(o)}}var uC={showMetrics:{breakpoint:!1,fcp:!1,lcp:!1,cls:!1,inp:!1,pageSize:!1},showScreenshot:!1,showConsoleBadges:!0,showTooltips:!1},cC={showMetrics:{breakpoint:!0,fcp:!0,lcp:!0,cls:!0,inp:!0,pageSize:!0},showScreenshot:!0,showConsoleBadges:!0,showTooltips:!0},dC={showMetrics:{breakpoint:!1,fcp:!0,lcp:!0,cls:!0,inp:!0,pageSize:!0},showScreenshot:!1,showConsoleBadges:!1,showTooltips:!0},fC={showMetrics:{breakpoint:!0,fcp:!1,lcp:!1,cls:!1,inp:!1,pageSize:!1},showScreenshot:!0,showConsoleBadges:!1,showTooltips:!0},pC={showMetrics:{breakpoint:!0,fcp:!0,lcp:!0,cls:!0,inp:!0,pageSize:!0},showScreenshot:!0,showConsoleBadges:!0,showTooltips:!0,debug:!0};function YK(A){return LA({...uC,...A})}function JK(A){return LA({...cC,...A})}function $K(A){return LA({...dC,...A})}function ZK(A){return LA({...fC,...A})}function eV(A){return LA({...pC,...A})}function tV(A){try{return{parsed:JSON.parse(A),success:!0}}catch{return{parsed:void 0,success:!1}}}function hC(A){let n=[];for(let o=0;o<A.length;o++){let l=A.key(o);if(l===null)continue;let c=A.getItem(l)??"",{parsed:h,success:g}=tV(c);n.push({key:l,value:c,parsedValue:g?h:void 0,isParseable:g,size:new Blob([c]).size})}return n.sort((o,l)=>o.key.localeCompare(l.key))}function mC(){return typeof localStorage>"u"?[]:hC(localStorage)}function gC(){return typeof sessionStorage>"u"?[]:hC(sessionStorage)}function vC(){return typeof document>"u"||!document.cookie?[]:document.cookie.split(";").map(A=>{let[n,...o]=A.trim().split("="),l=o.join("=");return{name:n.trim(),value:decodeURIComponent(l||""),size:new Blob([l||""]).size}}).filter(A=>A.name).sort((A,n)=>A.name.localeCompare(n.name))}function rV(){return{localStorage:mC(),sessionStorage:gC(),cookies:vC()}}function nV(A,n){typeof localStorage>"u"||localStorage.setItem(A,n)}function AV(A){typeof localStorage>"u"||localStorage.removeItem(A)}function aV(A,n){typeof sessionStorage>"u"||sessionStorage.setItem(A,n)}function oV(A){typeof sessionStorage>"u"||sessionStorage.removeItem(A)}function iV(A){typeof document>"u"||(document.cookie=`${A}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`)}export{fl as ACCENT_COLOR_PRESETS,Me as BUTTON_COLORS,Al as CATEGORY_COLORS,fa as DEFAULT_SETTINGS,xA as DEVBAR_LOGO_COLORS,ub as DEVBAR_LOGO_PATHS,EA as DEVBAR_LOGO_SHAPES,_f as DEVBAR_LOGO_VIEWBOX,mt as DEVBAR_THEME,gf as DEVBAR_THEME_LIGHT,To as DebugLogger,yH as EARLY_CONSOLE_CAPTURE_SCRIPT,ut as FONT_MONO,ar as GlobalDevBar,e1 as NetworkMonitor,ue as PALETTE,pC as PRESET_DEBUG,cC as PRESET_FULL,uC as PRESET_MINIMAL,dC as PRESET_PERFORMANCE,fC as PRESET_RESPONSIVE,mf as STORAGE_KEYS,BA as TAILWIND_BREAKPOINTS,PK as appVersionPlugin,di as canvasToDataUrl,Bu as copyCanvasToClipboard,qH as createDevBarLogo,pi as delay,iV as deleteCookie,AV as deleteLocalStorageItem,oV as deleteSessionStorageItem,NK as destroyGlobalDevBar,Ar as earlyConsoleCapture,vA as extractDocumentOutline,wA as extractPageSchema,lf as formatArg,uf as formatArgs,Mw as generateThemeCSSVars,vC as getCookies,zH as getDevBarLogoSvg,la as getEffectiveTheme,Zp as getGlobalDevBar,kA as getHtml2Canvas,sl as getImpactColor,mC as getLocalStorage,gC as getSessionStorage,If as getSettingsManager,rV as getStorageData,QH as getStoredThemeMode,yA as getTheme,wf as getThemeColors,ol as getViolationCounts,VK as gitBranchPlugin,il as groupViolationsByImpact,eV as initDebug,JK as initFull,LA as initGlobalDevBar,YK as initMinimal,$K as initPerformance,ZK as initResponsive,CA as injectThemeCSS,UH as isAxeLoaded,Cf as normalizeDebugConfig,Hn as outlineToMarkdown,yf as preloadAxe,fi as prepareForCapture,XK as releaseInfoPlugin,Mn as resolveSaveLocation,Uo as runA11yAudit,bA as schemaToMarkdown,nV as setLocalStorageItem,aV as setSessionStorageItem,vf as setStoredThemeMode};
|
package/dist/constants.d.ts
CHANGED
|
@@ -332,5 +332,5 @@ export declare const MODAL_OVERLAY_STYLES: Record<string, string>;
|
|
|
332
332
|
/** Common modal box styles (uses CSS variables for theming) */
|
|
333
333
|
export declare const MODAL_BOX_BASE_STYLES: Record<string, string>;
|
|
334
334
|
/** Animation and utility CSS styles (uses CSS variables for theming) */
|
|
335
|
-
export declare const DEVBAR_STYLES = "\n.devbar-item {\n transition: opacity 150ms ease-out, color 150ms ease-out;\n}\n.devbar-item:hover {\n opacity: 1 !important;\n color: var(--devbar-color-primary);\n}\n.devbar-clickable {\n transition: transform 150ms ease-out, background-color 150ms ease-out, box-shadow 150ms ease-out;\n}\n.devbar-clickable:hover {\n transform: scale(1.1);\n background-color: var(--devbar-color-primary-glow);\n box-shadow: 0 0 8px var(--devbar-color-primary-glow);\n}\n[data-devbar] button:focus-visible,\n[data-devbar] [role=\"button\"]:focus-visible,\n[data-devbar] [tabindex]:focus-visible,\n[data-devbar-overlay] button:focus-visible,\n[data-devbar-overlay] [role=\"button\"]:focus-visible,\n[data-devbar-overlay] [tabindex]:focus-visible {\n outline: 2px solid var(--devbar-color-primary);\n outline-offset: 3px;\n box-shadow: 0 0 0 4px var(--devbar-color-primary-glow);\n}\n.devbar-badge {\n transition: transform 150ms ease-out, box-shadow 150ms ease-out;\n}\n.devbar-badge:hover {\n transform: scale(1.1);\n box-shadow: 0 0 8px currentColor;\n}\n.devbar-collapse {\n transition: transform 150ms ease-out, background-color 150ms ease-out, box-shadow 150ms ease-out, border-color 150ms ease-out;\n}\n.devbar-collapse:hover {\n transform: scale(1.08);\n background-color: var(--devbar-color-primary-glow);\n box-shadow: 0 0 12px var(--devbar-color-primary-glow);\n border-color: var(--devbar-color-primary);\n}\n@keyframes pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n}\n@keyframes devbar-collapse {\n 0% { transform: scale(0.8); opacity: 0; }\n 100% { transform: scale(1); opacity: 1; }\n}\n@keyframes devbar-collapsed-pulse {\n 0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(16, 185, 129, 0.1); }\n 50% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 8px rgba(16, 185, 129, 0.4); }\n}\n/* Modal scrollbars */\n[data-devbar-overlay] * {\n scrollbar-width: thin;\n scrollbar-color: var(--devbar-color-primary-glow) transparent;\n}\n[data-devbar-overlay] *::-webkit-scrollbar {\n width: 6px;\n}\n[data-devbar-overlay] *::-webkit-scrollbar-track {\n background: transparent;\n}\n[data-devbar-overlay] *::-webkit-scrollbar-thumb {\n background: var(--devbar-color-primary-glow);\n border-radius: 3px;\n}\n[data-devbar-overlay] *::-webkit-scrollbar-thumb:hover {\n background: var(--devbar-color-primary);\n}\n/* Main row - dense single row by default; metrics collapse before controls wrap. */\n.devbar-main {\n flex-wrap: nowrap;\n max-width: 100%;\n overflow: visible;\n}\n.devbar-status {\n min-width: 0;\n flex: 1 1 auto;\n}\n/* Info section - truncates if needed to fit single row */\n.devbar-info {\n white-space: nowrap;\n min-width: 0;\n max-width: 100%;\n overflow: hidden !important;\n}\n.devbar-info > span {\n flex-shrink: 0;\n}\n/* Actions container - stays on the same row until compact widths. */\n.devbar-actions {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n flex-basis: auto;\n flex-shrink: 0;\n flex-wrap: nowrap;\n justify-content: flex-end;\n min-width: 0;\n max-width: 100%;\n}\n.devbar-actions::before {\n content: \"agent tools\";\n color: var(--devbar-color-text-muted);\n font-size: 0.5625rem;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n white-space: nowrap;\n opacity: 0.78;\n}\n[data-devbar-custom-controls=\"true\"] .devbar-main {\n flex-wrap: nowrap;\n align-items: center;\n overflow: visible;\n}\n[data-devbar-custom-controls=\"true\"] .devbar-status {\n flex: 1 1 auto;\n max-width: 100%;\n overflow: hidden;\n}\n[data-devbar-custom-controls=\"true\"] .devbar-actions {\n flex: 0 0 auto;\n flex-wrap: nowrap;\n min-width: 0;\n max-width: 100%;\n row-gap: 0.375rem;\n}\n.devbar-custom-controls {\n max-width: 100%;\n min-width: 0;\n box-sizing: border-box;\n overflow: visible;\n}\n.devbar-custom-controls-inline {\n flex-wrap: nowrap !important;\n flex-shrink: 1;\n overflow: hidden;\n}\n.devbar-custom-controls-row {\n width: 100%;\n}\n.devbar-custom-control {\n max-width: min(16rem, 100%);\n min-width: 0;\n box-sizing: border-box;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.devbar-custom-group-label {\n box-sizing: border-box;\n}\n@media (max-width: 1120px) {\n [data-devbar-custom-controls=\"true\"] .devbar-main {\n flex-
|
|
335
|
+
export declare const DEVBAR_STYLES = "\n.devbar-item {\n transition: opacity 150ms ease-out, color 150ms ease-out;\n}\n.devbar-item:hover {\n opacity: 1 !important;\n color: var(--devbar-color-primary);\n}\n.devbar-clickable {\n transition: transform 150ms ease-out, background-color 150ms ease-out, box-shadow 150ms ease-out;\n}\n.devbar-clickable:hover {\n transform: scale(1.1);\n background-color: var(--devbar-color-primary-glow);\n box-shadow: 0 0 8px var(--devbar-color-primary-glow);\n}\n[data-devbar] button:focus-visible,\n[data-devbar] [role=\"button\"]:focus-visible,\n[data-devbar] [tabindex]:focus-visible,\n[data-devbar-overlay] button:focus-visible,\n[data-devbar-overlay] [role=\"button\"]:focus-visible,\n[data-devbar-overlay] [tabindex]:focus-visible {\n outline: 2px solid var(--devbar-color-primary);\n outline-offset: 3px;\n box-shadow: 0 0 0 4px var(--devbar-color-primary-glow);\n}\n.devbar-badge {\n transition: transform 150ms ease-out, box-shadow 150ms ease-out;\n}\n.devbar-badge:hover {\n transform: scale(1.1);\n box-shadow: 0 0 8px currentColor;\n}\n.devbar-collapse {\n transition: transform 150ms ease-out, background-color 150ms ease-out, box-shadow 150ms ease-out, border-color 150ms ease-out;\n}\n.devbar-collapse:hover {\n transform: scale(1.08);\n background-color: var(--devbar-color-primary-glow);\n box-shadow: 0 0 12px var(--devbar-color-primary-glow);\n border-color: var(--devbar-color-primary);\n}\n@keyframes pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n}\n@keyframes devbar-collapse {\n 0% { transform: scale(0.8); opacity: 0; }\n 100% { transform: scale(1); opacity: 1; }\n}\n@keyframes devbar-collapsed-pulse {\n 0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(16, 185, 129, 0.1); }\n 50% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 8px rgba(16, 185, 129, 0.4); }\n}\n/* Modal scrollbars */\n[data-devbar-overlay] * {\n scrollbar-width: thin;\n scrollbar-color: var(--devbar-color-primary-glow) transparent;\n}\n[data-devbar-overlay] *::-webkit-scrollbar {\n width: 6px;\n}\n[data-devbar-overlay] *::-webkit-scrollbar-track {\n background: transparent;\n}\n[data-devbar-overlay] *::-webkit-scrollbar-thumb {\n background: var(--devbar-color-primary-glow);\n border-radius: 3px;\n}\n[data-devbar-overlay] *::-webkit-scrollbar-thumb:hover {\n background: var(--devbar-color-primary);\n}\n/* Main row - dense single row by default; metrics collapse before controls wrap. */\n.devbar-main {\n flex-wrap: nowrap;\n max-width: 100%;\n overflow: visible;\n}\n.devbar-status {\n min-width: 0;\n flex: 1 1 auto;\n}\n/* Info section - truncates if needed to fit single row */\n.devbar-info {\n white-space: nowrap;\n min-width: 0;\n max-width: 100%;\n overflow: hidden !important;\n}\n.devbar-info > span {\n flex-shrink: 0;\n}\n/* Actions container - stays on the same row until compact widths. */\n.devbar-actions {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n flex-basis: auto;\n flex-shrink: 0;\n flex-wrap: nowrap;\n justify-content: flex-end;\n min-width: 0;\n max-width: 100%;\n}\n.devbar-actions::before {\n content: \"agent tools\";\n color: var(--devbar-color-text-muted);\n font-size: 0.5625rem;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n white-space: nowrap;\n opacity: 0.78;\n}\n[data-devbar-custom-controls=\"true\"] .devbar-main {\n flex-wrap: nowrap;\n align-items: center;\n overflow: visible;\n}\n[data-devbar-custom-controls=\"true\"] .devbar-status {\n flex: 1 1 auto;\n max-width: 100%;\n overflow: hidden;\n}\n[data-devbar-custom-controls=\"true\"] .devbar-actions {\n flex: 0 0 auto;\n flex-wrap: nowrap;\n min-width: 0;\n max-width: 100%;\n row-gap: 0.375rem;\n}\n.devbar-custom-controls {\n max-width: 100%;\n min-width: 0;\n box-sizing: border-box;\n overflow: visible;\n}\n.devbar-custom-controls-inline {\n flex-wrap: nowrap !important;\n flex-shrink: 1;\n overflow: hidden;\n}\n.devbar-custom-controls-row {\n width: 100%;\n}\n.devbar-custom-control {\n max-width: min(16rem, 100%);\n min-width: 0;\n box-sizing: border-box;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.devbar-custom-group-label {\n box-sizing: border-box;\n}\n@media (max-width: 1120px) {\n [data-devbar-custom-controls=\"true\"] .devbar-main {\n flex-direction: column;\n flex-wrap: nowrap !important;\n align-items: center !important;\n justify-content: center !important;\n row-gap: 0.5rem;\n width: fit-content !important;\n max-width: 100%;\n }\n [data-devbar-custom-controls=\"true\"] .devbar-status,\n [data-devbar-custom-controls=\"true\"] .devbar-custom-controls-inline,\n [data-devbar-custom-controls=\"true\"] .devbar-actions {\n flex: 0 1 auto !important;\n width: fit-content !important;\n max-width: 100%;\n }\n [data-devbar-custom-controls=\"true\"] .devbar-status {\n justify-content: center !important;\n }\n [data-devbar-custom-controls=\"true\"] .devbar-custom-controls-inline {\n justify-content: center !important;\n }\n [data-devbar-custom-controls=\"true\"] .devbar-actions {\n justify-content: center !important;\n flex-wrap: wrap !important;\n }\n}\n@media (max-width: 860px) {\n .devbar-main {\n flex-wrap: wrap;\n row-gap: 0.5rem;\n overflow: visible;\n }\n .devbar-status {\n flex: 1 1 100%;\n max-width: 100%;\n justify-content: center;\n }\n .devbar-actions {\n flex: 1 1 100%;\n justify-content: center;\n flex-wrap: wrap;\n column-gap: 0.5rem;\n row-gap: 0.375rem;\n min-width: 0;\n }\n .devbar-custom-controls {\n justify-content: center !important;\n }\n}\n/* BASE only (< 640px): fit content, centered horizontally */\n@media (max-width: 639px) {\n /* Expanded state: center and constrain width (exclude overlays and tooltips) */\n [data-devbar]:not(.devbar-collapse):not([data-devbar-overlay]):not([data-devbar-tooltip]) {\n width: auto !important;\n min-width: auto !important;\n max-width: calc(100vw - 24px) !important;\n bottom: calc(env(safe-area-inset-bottom) + 12px) !important;\n left: 50% !important;\n right: auto !important;\n transform: translateX(-50%) !important;\n }\n /* Collapsed state: JS handles positioning based on captured dot location */\n .devbar-main {\n flex-wrap: wrap;\n justify-content: center;\n overflow: visible;\n max-width: calc(100vw - 24px);\n gap: 0.375rem !important;\n padding: 0.375rem 0.5rem !important;\n }\n /* Keep status row (connection dot + info) on same line */\n .devbar-status {\n flex-wrap: nowrap !important;\n justify-content: center;\n flex: 1 1 100%;\n gap: 0.375rem !important;\n }\n .devbar-info {\n justify-content: center;\n flex-wrap: nowrap;\n gap: 0.375rem !important;\n max-width: 100%;\n overflow: hidden;\n white-space: nowrap !important;\n }\n .devbar-actions {\n display: grid;\n grid-template-columns: repeat(5, 44px);\n justify-content: center;\n justify-items: center;\n align-items: center;\n column-gap: 0.375rem;\n row-gap: 0.25rem;\n margin-top: 0;\n flex-wrap: nowrap;\n width: auto;\n flex-shrink: 1;\n }\n .devbar-actions::before {\n content: none;\n display: none;\n }\n .devbar-actions button {\n width: 44px !important;\n height: 44px !important;\n min-width: 44px !important;\n min-height: 44px !important;\n }\n .devbar-actions button svg {\n width: 16px;\n height: 16px;\n }\n .devbar-custom-controls {\n justify-content: center !important;\n gap: 0.375rem !important;\n padding: 0.5rem !important;\n }\n .devbar-custom-control {\n min-height: 44px !important;\n max-width: 100% !important;\n padding: 0.5rem 0.625rem !important;\n }\n .devbar-custom-group-label {\n flex-basis: 100% !important;\n margin-left: 0 !important;\n text-align: center;\n }\n .devbar-settings-grid {\n grid-template-columns: 1fr !important;\n }\n .devbar-settings-grid > div {\n border-right: none !important;\n }\n}\n";
|
|
336
336
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAM5E,qDAAqD;AACrD,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC,8CAA8C;AAC9C,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAE5C,uDAAuD;AACvD,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAO5C,OAAO,EACL,eAAe,IAAI,OAAO,EAC1B,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,GACf,MAAM,yBAAyB,CAAC;AAEjC,4EAA4E;AAC5E,eAAO,MAAM,0BAA0B,OA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ACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,GACzC,MAAM,CAkBR;AAMD,6CAA6C;AAC7C,eAAO,MAAM,yBAAyB;;;;;;;;;;;;CAY5B,CAAC;AAMX,kCAAkC;AAClC,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAYvD,CAAC;AAEF,+DAA+D;AAC/D,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CASxD,CAAC;AAMF,wEAAwE;AACxE,eAAO,MAAM,aAAa,s5PAmSzB,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -696,13 +696,23 @@ export const DEVBAR_STYLES = `
|
|
|
696
696
|
}
|
|
697
697
|
@media (max-width: 1120px) {
|
|
698
698
|
[data-devbar-custom-controls="true"] .devbar-main {
|
|
699
|
-
flex-
|
|
699
|
+
flex-direction: column;
|
|
700
|
+
flex-wrap: nowrap !important;
|
|
701
|
+
align-items: center !important;
|
|
702
|
+
justify-content: center !important;
|
|
700
703
|
row-gap: 0.5rem;
|
|
704
|
+
width: fit-content !important;
|
|
705
|
+
max-width: 100%;
|
|
701
706
|
}
|
|
702
707
|
[data-devbar-custom-controls="true"] .devbar-status,
|
|
703
708
|
[data-devbar-custom-controls="true"] .devbar-custom-controls-inline,
|
|
704
709
|
[data-devbar-custom-controls="true"] .devbar-actions {
|
|
705
|
-
flex:
|
|
710
|
+
flex: 0 1 auto !important;
|
|
711
|
+
width: fit-content !important;
|
|
712
|
+
max-width: 100%;
|
|
713
|
+
}
|
|
714
|
+
[data-devbar-custom-controls="true"] .devbar-status {
|
|
715
|
+
justify-content: center !important;
|
|
706
716
|
}
|
|
707
717
|
[data-devbar-custom-controls="true"] .devbar-custom-controls-inline {
|
|
708
718
|
justify-content: center !important;
|
package/dist/constants.js.map
CHANGED
|
@@ -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SAAS;CACtB,CAAC;AAEF,+EAA+E;AAC/E,aAAa;AACb,+EAA+E;AAE/E,wEAAwE;AACxE,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmS5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expanded.js","sourceRoot":"","sources":["../../../src/modules/rendering/expanded.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,aAAa,EACb,UAAU,EACV,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,SAAS,GACV,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,kBAAkB,EAClB,yBAAyB,EACzB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,aAAa,CAAC;AAErB;;;GAGG;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AC;IAC9E,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ytspar/devbar",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2-canary.9095c1a",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Development toolbar and utilities with Sweetlink integration - pure vanilla JS, no framework dependencies",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"axe-core": "^4.10.2",
|
|
85
85
|
"html2canvas-pro": "^2.0.0",
|
|
86
|
-
"@ytspar/sweetlink": "^1.24.0"
|
|
86
|
+
"@ytspar/sweetlink": "^1.24.0-canary.9095c1a"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
89
|
"@types/node": "^25.2.3",
|