@rekayasa/erica-bubble 1.0.6 → 1.0.8

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.
@@ -1,2 +1,2 @@
1
- :root{--copilot-kit-primary-color:#1c1c1c;--copilot-kit-contrast-color:#fff;--copilot-kit-background-color:#fff;--copilot-kit-input-background-color:#fbfbfb;--copilot-kit-secondary-color:#fff;--copilot-kit-secondary-contrast-color:#1c1c1c;--copilot-kit-separator-color:#c8c8c8;--copilot-kit-muted-color:#c8c8c8;--copilot-kit-error-background:#fef2f2;--copilot-kit-error-border:#fecaca;--copilot-kit-error-text:#dc2626;--copilot-kit-shadow-sm:0 1px 2px 0 #0000000d;--copilot-kit-shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -1px #0000000f;--copilot-kit-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -2px #0000000d;--copilot-kit-dev-console-bg:#f8f8fa;--copilot-kit-dev-console-text:black}.dark,html.dark,body.dark,[data-theme=dark],html[style*="color-scheme: dark"],body[style*="color-scheme: dark"] :root{--copilot-kit-primary-color:#fff;--copilot-kit-contrast-color:#1c1c1c;--copilot-kit-background-color:#111;--copilot-kit-input-background-color:#2c2c2c;--copilot-kit-secondary-color:#1c1c1c;--copilot-kit-secondary-contrast-color:#fff;--copilot-kit-separator-color:#2d2d2d;--copilot-kit-muted-color:#2d2d2d;--copilot-kit-error-background:#7f1d1d;--copilot-kit-error-border:#dc2626;--copilot-kit-error-text:#fca5a5;--copilot-kit-shadow-sm:0 1px 2px 0 #0000004d;--copilot-kit-shadow-md:0 4px 6px -1px #0006, 0 2px 4px -1px #0000004d;--copilot-kit-shadow-lg:0 10px 15px -3px #0006, 0 4px 6px -2px #0000004d}.copilotKitPopup{z-index:30;-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;touch-action:manipulation;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;position:fixed;bottom:1rem;right:1rem}.copilotKitPopup svg{vertical-align:middle;display:inline-block}.copilotKitSidebar{z-index:30;-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;touch-action:manipulation;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;position:fixed;bottom:1rem;right:1rem}.copilotKitSidebar svg{vertical-align:middle;display:inline-block}.copilotKitSidebarContentWrapper{margin-right:0;transition:margin-right .3s;overflow:visible}@media (width>=640px){.copilotKitSidebarContentWrapper.sidebarExpanded{margin-right:28rem}}.copilotKitButton{border:1px solid var(--copilot-kit-primary-color);background-color:var(--copilot-kit-primary-color);width:3.5rem;height:3.5rem;color:var(--copilot-kit-contrast-color);cursor:pointer;box-shadow:var(--copilot-kit-shadow-sm);border-radius:50%;outline:none;justify-content:center;align-items:center;transition:all .2s;display:flex;position:relative;transform:scale(1)}.copilotKitButton:hover{box-shadow:var(--copilot-kit-shadow-md);transform:scale(1.05)}.copilotKitButton:active{box-shadow:var(--copilot-kit-shadow-sm);transform:scale(.95)}.copilotKitButtonIcon{justify-content:center;align-items:center;transition:opacity .1s,transform .3s;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.copilotKitButtonIcon svg{width:1.5rem;height:1.5rem}.copilotKitButton.open .copilotKitButtonIconOpen{opacity:0;transform:translate(-50%,-50%)scale(0)rotate(90deg)}.copilotKitButton.open .copilotKitButtonIconClose,.copilotKitButton:not(.open) .copilotKitButtonIconOpen{opacity:1;transform:translate(-50%,-50%)scale(1)rotate(0)}.copilotKitButton:not(.open) .copilotKitButtonIconClose{opacity:0;transform:translate(-50%,-50%)scale(0)rotate(-90deg)}.copilotKitHeader{height:56px;color:var(--copilot-kit-primary-color);border-bottom:1px solid var(--copilot-kit-separator-color);background-color:var(--copilot-kit-contrast-color);z-index:2;border-top-left-radius:0;border-top-right-radius:0;justify-content:space-between;align-items:center;padding-left:1.5rem;font-weight:500;display:flex;position:relative}.copilotKitSidebar .copilotKitHeader{border-radius:0}.copilotKitHeaderControls{display:flex}.copilotKitHeaderCloseButton{background:0 0;border:none}@media (width>=640px){.copilotKitHeader{border-top-left-radius:8px;border-top-right-radius:8px;padding-left:1.5rem;padding-right:24px}}.copilotKitHeader>button{color:var(--copilot-kit-muted-color);cursor:pointer;background-color:#0000;border:0;border-radius:50%;outline:none;justify-content:center;align-items:center;width:35px;height:35px;padding:8px;transition:background-color .2s;display:flex;position:absolute;top:50%;right:16px;transform:translateY(-50%)}.copilotKitHeader>button:hover{color:color-mix(in srgb, var(--copilot-kit-muted-color) 80%, black)}.copilotKitHeader>button:focus{outline:none}.copilotKitInput{cursor:text;background-color:var(--copilot-kit-input-background-color);border:1px solid var(--copilot-kit-separator-color);border-radius:20px;width:95%;min-height:75px;margin:0 auto;padding:12px 14px;position:relative}.copilotKitInputContainer{background:var(--copilot-kit-background-color);border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem;width:100%;padding:0 0 15px}.copilotKitSidebar .copilotKitInputContainer{border-bottom-right-radius:0;border-bottom-left-radius:0}.copilotKitInputControlButton{cursor:pointer;color:#00000040;appearance:button;text-transform:none;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;text-indent:0;text-shadow:none;text-align:center;background-color:#0000;background-image:none;border:0;width:24px;height:24px;margin:0;padding:0;transition-property:transform;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-block;transform:scale(1)}.copilotKitInputControlButton:not([disabled]){color:var(--copilot-kit-primary-color)}.copilotKitInputControlButton:not([disabled]):hover{color:color-mix(in srgb, var(--copilot-kit-primary-color) 80%, black);transform:scale(1.05)}.copilotKitInputControlButton[disabled]{color:var(--copilot-kit-muted-color);cursor:default}.copilotKitInputControls{gap:3px;display:flex}.copilotKitInput>textarea{outline-offset:2px;resize:none;white-space:pre-wrap;overflow-wrap:break-word;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;cursor:text;font-family:inherit;font-size:.875rem;line-height:1.5rem;font-weight:inherit;color:var(--copilot-kit-secondary-contrast-color);background-color:#0000;border:0;outline:2px solid #0000;flex:1;width:100%;margin:0;padding:0}.copilotKitInput>textarea::placeholder{color:gray;opacity:1}.copilotKitInputControlButton.copilotKitPushToTalkRecording{color:#fff;background-color:#ec0000;border-radius:50%;animation:2s cubic-bezier(.4,0,.6,1) infinite copilotKitPulseAnimation}.copilotKitInput textarea::-webkit-scrollbar{width:9px}.copilotKitInput textarea::-webkit-scrollbar-track{background:0 0}.copilotKitInput textarea::-webkit-scrollbar-thumb{cursor:pointer;background-color:#c8c8c8;background-clip:content-box;border:2px solid #0000;border-radius:10px}.copilotKitInput textarea::-webkit-scrollbar-thumb:hover{background-color:#a0a0a0}.poweredByContainer{padding:0}.poweredBy{background:var(--copilot-kit-background-color)!important;visibility:visible!important;text-align:center!important;color:#d6d6d6!important;margin:0!important;padding:3px 0!important;font-size:12px!important;display:block!important;position:static!important}.dark,html.dark,body.dark,[data-theme=dark],html[style*="color-scheme: dark"],body[style*="color-scheme: dark"] .poweredBy{color:#454545!important}.copilotKitMessages{background-color:var(--copilot-kit-background-color);color:var(--copilot-kit-secondary-contrast-color);z-index:1;flex-direction:column;flex:1;justify-content:space-between;display:flex;overflow-y:scroll}.copilotKitMessagesContainer{flex-direction:column;padding:1rem 24px;display:flex}.copilotKitMessagesFooter{flex-direction:column;justify-content:flex-start;width:97%;margin:8px auto 0;padding:.5rem .75rem;display:flex}.copilotKitMessages::-webkit-scrollbar{width:6px}.copilotKitMessages::-webkit-scrollbar-thumb{background-color:var(--copilot-kit-separator-color);border:2px solid var(--copilot-kit-background-color);border-radius:10rem}.copilotKitMessages::-webkit-scrollbar-track-piece:start{background:0 0}.copilotKitMessages::-webkit-scrollbar-track-piece:end{background:0 0}.copilotKitMessage{overflow-wrap:break-word;border-radius:15px;max-width:80%;margin-bottom:.5rem;padding:8px 12px;font-size:1rem;line-height:1.5}.copilotKitMessage.copilotKitUserMessage{background:var(--copilot-kit-primary-color);color:var(--copilot-kit-contrast-color);white-space:pre-wrap;margin-left:auto;font-size:1rem;line-height:1.75}.copilotKitMessage.copilotKitAssistantMessage{max-width:100%;color:var(--copilot-kit-secondary-contrast-color);background:0 0;margin-right:auto;padding-left:0;position:relative}.copilotKitMessage.copilotKitAssistantMessage .copilotKitMessageControls{opacity:0;gap:1rem;padding:5px 0 0;transition:opacity .2s;display:flex;position:absolute;left:0}.copilotKitMessageControls.currentMessage{opacity:1!important}.copilotKitMessage.copilotKitAssistantMessage:hover .copilotKitMessageControls{opacity:1}@media (width<=768px){.copilotKitMessage.copilotKitAssistantMessage .copilotKitMessageControls{opacity:1}}.copilotKitMessageControlButton{width:20px;height:20px;color:var(--copilot-kit-primary-color);cursor:pointer;z-index:10;background:0 0;border:none;border-radius:.5rem;justify-content:center;align-items:center;margin:0;padding:0;transition:all .2s;display:flex}.copilotKitMessageControlButton:hover,.copilotKitMessageControlButton:active{color:color-mix(in srgb, var(--copilot-kit-primary-color) 80%, black);transform:scale(1.05)}.copilotKitMessageControlButton.active{background-color:var(--copilot-kit-primary-color);color:var(--copilot-kit-contrast-color)}.copilotKitMessageControlButton.active:hover{background-color:color-mix(in srgb, var(--copilot-kit-primary-color) 90%, black);color:var(--copilot-kit-contrast-color)}.copilotKitMessageControlButton svg{pointer-events:none;width:1rem;height:1rem;display:block}.copilotKitMessage.copilotKitAssistantMessage+.copilotKitMessage.copilotKitUserMessage{margin-top:1.5rem}.copilotKitCustomAssistantMessage{margin-top:1.5rem;margin-bottom:1.5rem}.copilotKitMessage .inProgressLabel{opacity:.7;margin-left:10px}@keyframes copilotKitSpinAnimation{to{transform:rotate(360deg)}}.copilotKitSpinner{border:2px solid var(--copilot-kit-contrast-color);border-top-color:var(--copilot-kit-primary-color);border-radius:50%;width:16px;height:16px;animation:1s linear infinite copilotKitSpinAnimation;display:inline-block}@keyframes copilotKitActivityDotAnimation{0%,80%,to{opacity:.5;transform:scale(.5)}40%{opacity:1;transform:scale(1)}}.copilotKitActivityDot{background-color:var(--copilot-kit-primary-color);border-radius:50%;width:6px;height:6px;animation:1.4s ease-in-out infinite both copilotKitActivityDotAnimation;display:inline-block}.copilotKitImageRendering{flex-direction:column;gap:8px;display:flex}.copilotKitImageRenderingImage{max-width:100%;height:auto;box-shadow:var(--copilot-kit-shadow-sm);border-radius:8px}.copilotKitImageRenderingContent{color:var(--copilot-kit-secondary-contrast-color);margin-top:8px;padding:0 16px;font-size:.875rem;line-height:1.5}.copilotKitImageRenderingError{border:1px solid var(--copilot-kit-separator-color);background-color:var(--copilot-kit-input-background-color);border-radius:8px;flex-direction:column;gap:8px;padding:12px;display:flex}.copilotKitImageRenderingErrorMessage{background-color:var(--copilot-kit-error-background);border:1px solid var(--copilot-kit-error-border);color:var(--copilot-kit-error-text);border-radius:6px;align-items:center;gap:8px;padding:8px 12px;font-size:.875rem;font-weight:500;display:flex}.copilotKitImageRenderingErrorMessage:before{content:"⚠️";font-size:1rem}.copilotKitAttachmentQueue{flex-wrap:wrap;gap:8px;margin:8px;padding:8px;display:flex}.copilotKitAttachmentQueueItem{border:1px solid var(--copilot-kit-separator-color);background:var(--copilot-kit-input-background-color);border-radius:8px;display:inline-flex;position:relative;overflow:hidden}.copilotKitAttachmentQueueItem--image,.copilotKitAttachmentQueueItem--video{width:72px;height:72px}.copilotKitAttachmentQueueItem--audio{flex-direction:column;min-width:200px;max-width:280px;padding:4px}.copilotKitAttachmentQueueItem--document{max-width:200px;padding:8px 12px}.copilotKitAttachmentQueueOverlay{z-index:1;background:#0006;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.copilotKitAttachmentQueueSpinner{border:2px solid #ffffff4d;border-top-color:#fff;border-radius:50%;width:20px;height:20px;animation:.6s linear infinite copilotKitSpin}@keyframes copilotKitSpin{to{transform:rotate(360deg)}}.copilotKitAttachmentQueueRemoveButton{color:#fff;cursor:pointer;z-index:2;background:#0009;border:none;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;padding:0;font-size:10px;line-height:1;display:flex;position:absolute;top:4px;right:4px}.copilotKitAttachmentQueueRemoveButton:hover{background:#000c}.copilotKitAttachmentQueuePreviewPlaceholder{background:var(--copilot-kit-input-background-color);width:100%;height:100%}.copilotKitAttachmentQueuePreviewImage{object-fit:cover;width:100%;height:100%}.copilotKitAttachmentQueuePreviewAudio{flex-direction:column;gap:4px;width:100%;display:flex}.copilotKitAttachmentQueuePreviewAudio audio{width:100%;height:32px}.copilotKitAttachmentQueuePreviewVideo{width:100%;height:100%}.copilotKitAttachmentQueuePreviewDocument{align-items:center;gap:8px;display:flex}.copilotKitAttachmentQueueDocIcon{background:var(--copilot-kit-primary-color,#6366f1);color:#fff;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;font-size:10px;font-weight:600;display:flex}.copilotKitAttachmentQueueDocInfo{flex-direction:column;gap:2px;min-width:0;display:flex}.copilotKitAttachmentQueueFilename{text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500;overflow:hidden}.copilotKitAttachmentQueueFileSize{color:var(--copilot-kit-secondary-contrast-color);font-size:11px}.copilotKitDragOver{outline:2px dashed var(--copilot-kit-primary-color,#6366f1);outline-offset:-4px;border-radius:8px}.copilotKitAttachment{flex-direction:column;gap:4px;max-width:100%;display:inline-flex}.copilotKitAttachmentAudio audio{width:100%;max-width:300px;height:40px}.copilotKitAttachmentVideo video{border-radius:8px;width:100%;max-width:400px}.copilotKitAttachmentDocument{border:1px solid var(--copilot-kit-separator-color);background:var(--copilot-kit-input-background-color);border-radius:8px;align-items:center;gap:8px;padding:8px 12px;display:inline-flex}.copilotKitAttachmentDocIcon{background:var(--copilot-kit-primary-color,#6366f1);color:#fff;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-size:9px;font-weight:600;display:flex}.copilotKitAttachmentDocInfo{flex-direction:column;gap:1px;min-width:0;display:flex}.copilotKitAttachmentDocName{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;overflow:hidden}.copilotKitAttachmentDocMeta{color:var(--copilot-kit-secondary-contrast-color);font-size:11px}.copilotKitWindow{transform-origin:bottom;background-color:var(--copilot-kit-background-color);opacity:0;pointer-events:none;border-color:#e5e7eb;border-radius:.75rem;flex-direction:column;transition:opacity .1s ease-out,transform .2s ease-out;display:flex;position:fixed;inset:0;transform:scale(.95)translateY(20px);box-shadow:0 5px 40px #00000029}.copilotKitSidebar .copilotKitWindow{opacity:1;border-radius:0;transform:translate(100%)}.copilotKitWindow.open{opacity:1;pointer-events:auto;transform:scale(1)translateY(0)}.copilotKitSidebar .copilotKitWindow.open{transform:translate(0)}.copilotKitChatBody{flex-direction:column;flex:1;min-height:0;display:flex}@media (width>=640px){.copilotKitWindow{transform-origin:100% 100%;border-width:0;width:24rem;height:600px;min-height:200px;max-height:calc(100% - 6rem);margin-bottom:1rem;inset:auto 1rem 5rem auto}.copilotKitSidebar .copilotKitWindow{width:28rem;min-height:100%;max-height:none;margin-bottom:0;inset:auto 0 0 auto}}.copilotKitActivityDot1{animation:1.05s infinite copilotKitActivityDotsAnimation}.copilotKitActivityDot2{animation-delay:.1s}.copilotKitActivityDot3{animation-delay:.2s}@keyframes copilotKitActivityDotsAnimation{0%,57.14%{animation-timing-function:cubic-bezier(.33,.66,.66,1);transform:translate(0)}28.57%{animation-timing-function:cubic-bezier(.33,0,.66,.33);transform:translateY(-6px)}to{transform:translate(0)}}@keyframes copilotKitPulseAnimation{50%{opacity:.5}}h1.copilotKitMarkdownElement,h2.copilotKitMarkdownElement,h3.copilotKitMarkdownElement,h4.copilotKitMarkdownElement,h5.copilotKitMarkdownElement,h6.copilotKitMarkdownElement{font-weight:700;line-height:1.2}h1.copilotKitMarkdownElement:not(:last-child),h2.copilotKitMarkdownElement:not(:last-child),h3.copilotKitMarkdownElement:not(:last-child),h4.copilotKitMarkdownElement:not(:last-child),h5.copilotKitMarkdownElement:not(:last-child),h6.copilotKitMarkdownElement:not(:last-child){margin-bottom:1rem}h1.copilotKitMarkdownElement{font-size:1.5em}h2.copilotKitMarkdownElement{font-size:1.25em;font-weight:600}h3.copilotKitMarkdownElement{font-size:1.1em}h4.copilotKitMarkdownElement{font-size:1em}h5.copilotKitMarkdownElement{font-size:.9em}h6.copilotKitMarkdownElement{font-size:.8em}a.copilotKitMarkdownElement{color:#00f;text-decoration:underline}p.copilotKitMarkdownElement{margin:0;padding:0;font-size:1rem;line-height:1.75}p.copilotKitMarkdownElement:not(:last-child),pre.copilotKitMarkdownElement:not(:last-child),ol.copilotKitMarkdownElement:not(:last-child),ul.copilotKitMarkdownElement:not(:last-child),blockquote.copilotKitMarkdownElement:not(:last-child){margin-bottom:1.25em}blockquote.copilotKitMarkdownElement{border-color:#8e8ea0;border-left-style:solid;border-left-width:2px;padding-left:10px;line-height:1.2}blockquote.copilotKitMarkdownElement p{padding:.7em 0}ul.copilotKitMarkdownElement{padding-left:20px;list-style-type:disc;overflow:visible}li.copilotKitMarkdownElement{list-style-type:inherit;margin-left:0;padding-left:0;list-style-position:outside;position:relative;overflow:visible}.copilotKitCodeBlock{background-color:#09090b;border-radius:.375rem;width:100%;position:relative}.copilotKitCodeBlockToolbar{color:#e4e4e4;background-color:#27272a;border-top-left-radius:.375rem;border-top-right-radius:.375rem;justify-content:space-between;align-items:center;width:100%;padding-top:.09rem;padding-bottom:.09rem;padding-left:1rem;font-family:sans-serif;display:flex}.copilotKitCodeBlockToolbarLanguage{text-transform:lowercase;font-size:.75rem;line-height:1rem}.copilotKitCodeBlockToolbarButtons{align-items:center;margin-left:.25rem;margin-right:.25rem;display:flex}.copilotKitCodeBlockToolbarButton{border-radius:.375rem;justify-content:center;align-items:center;height:2.5rem;margin:2px;padding:3px;font-size:.875rem;font-weight:500;line-height:1.25rem;display:inline-flex}.copilotKitCodeBlockToolbarButton:hover{background-color:#37373a}.copilotKitInlineCode{background-color:var(--copilot-kit-input-background-color);border:1px solid var(--copilot-kit-separator-color);border-radius:.375rem;padding:.05rem .4rem;font-size:15px}.copilotKitMessages footer .suggestions{flex-wrap:wrap;gap:6px;display:flex}.copilotKitMessages footer h6{margin-bottom:8px;font-size:.7rem;font-weight:500}.copilotKitMessages footer .suggestions .suggestion{border:1px solid var(--copilot-kit-muted-color);color:var(--copilot-kit-secondary-contrast-color);border-radius:15px;padding:6px 10px;font-size:.7rem;box-shadow:0 5px 5px #00000003,0 2px 3px #00000005}.copilotKitMessages footer .suggestions .suggestion.loading{color:var(--copilot-kit-secondary-contrast-color);border:none;padding:0;font-size:.7rem}.copilotKitMessages footer .suggestions button{transition:transform .3s}.copilotKitMessages footer .suggestions button:not(:disabled):hover{transform:scale(1.03)}.copilotKitMessages footer .suggestions button:disabled{cursor:wait}.copilotKitMessages footer .suggestions button svg{margin-right:6px}.copilotKitChat{z-index:30;-webkit-text-size-adjust:100%;tab-size:4;background:var(--copilot-kit-background-color);font-feature-settings:normal;font-variation-settings:normal;touch-action:manipulation;flex-direction:column;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;display:flex}.copilotKitChat svg{vertical-align:middle;display:inline-block}.copilotKitChat .copilotKitMessages{flex-grow:1}.copilotKitDevConsole{align-items:center;gap:5px;margin:0 15px;display:flex}.copilotKitDevConsole.copilotKitDevConsoleWarnOutdated{background-color:var(--copilot-kit-dev-console-bg)}.copilotKitDevConsole .copilotKitVersionInfo{background:#ebb305;justify-content:center;align-items:center;gap:10px;width:100%;padding:3px 5px;font-size:.8rem;display:flex;position:absolute;bottom:-25px;left:0}.copilotKitDevConsole .copilotKitVersionInfo button{background-color:var(--copilot-kit-dev-console-bg);text-align:left;white-space:nowrap;text-overflow:ellipsis;border:1px solid #979797;border-radius:4px;width:260px;padding:1px 12px 1px 5px;font-family:monospace;font-size:11px;font-weight:400;display:inline-block;overflow:hidden}.copilotKitDevConsole .copilotKitVersionInfo aside{color:#7f7a7a;margin-left:5px;font-weight:400;display:inline}.copilotKitDevConsole .copilotKitVersionInfo svg{margin-top:-3px;margin-left:3px}.copilotKitDevConsole .copilotKitDebugMenuTriggerButton{border:1px solid var(--copilot-kit-muted-color);background-color:#0000;border-radius:20px;outline:none;justify-content:center;align-items:center;height:30px;padding:0 10px;font-size:11px;font-weight:700;display:flex}.copilotKitDebugMenuTriggerButton.compact{width:35px;color:var(--copilot-kit-dev-console-bg);outline:none;justify-content:center;font-size:8px}.copilotKitDevConsole .copilotKitDebugMenuTriggerButton:hover{background-color:color-mix(in srgb, var(--copilot-kit-dev-console-bg) 85%, black);color:var(--copilot-kit-dev-console-text)}.dark,html.dark,body.dark,[data-theme=dark],html[style*="color-scheme: dark"],body[style*="color-scheme: dark"] .copilotKitDevConsole .copilotKitDebugMenuTriggerButton{color:#fff}.dark,html.dark,body.dark,[data-theme=dark],html[style*="color-scheme: dark"],body[style*="color-scheme: dark"] .copilotKitDevConsole .copilotKitDebugMenuTriggerButton:hover{background-color:color-mix(in srgb, var(--copilot-kit-dev-console-bg) 20%, black)}.copilotKitDevConsole .copilotKitDebugMenuTriggerButton>svg{margin-left:10px}.copilotKitDebugMenu{--copilot-kit-dev-console-border:color-mix(in srgb, var(--copilot-kit-dev-console-bg) 80%, black);background-color:var(--copilot-kit-dev-console-bg);border:1px solid var(--copilot-kit-dev-console-border);border-radius:6px;outline:none;margin-top:2px;padding:.25rem;font-size:13px}.copilotKitDebugMenuItem{text-align:left;cursor:pointer;width:100%;color:var(--copilot-kit-dev-console-text);background:0 0;border:none;padding:3px 10px;display:block}.copilotKitDebugMenuItem:hover{background-color:color-mix(in srgb, var(--copilot-kit-dev-console-bg) 95%, black);border-radius:4px}.copilotKitDebugMenu[data-closed]{opacity:0;transform:scale(.95)}.copilotKitDebugMenu hr{background-color:var(--copilot-kit-dev-console-border);border:none;height:1px;margin:.25rem}.copilotKitHelpModal{background-color:var(--copilot-kit-dev-console-bg);color:var(--copilot-kit-dev-console-text)}.copilotKitHelpItemButton{text-align:center;border:1px solid var(--copilot-kit-muted-color);width:100%;color:var(--copilot-kit-dev-console-text);background-color:var(--copilot-kit-dev-console-bg);border-radius:15px;padding:4px 6px;font-size:.8rem;display:block;box-shadow:0 5px 5px #00000003,0 2px 3px #00000005}.copilotKitHelpItemButton:hover{background-color:color-mix(in srgb, var(--copilot-kit-dev-console-bg) 95%, black)}.copilotkit-response{text-align:right}.copilotkit-response-content{color:#4b5563;text-align:left;background-color:#f9fafb;border-radius:.25rem;margin-bottom:.5rem;padding:.5rem;font-size:.875rem}.copilotkit-response-actions{flex-direction:column;align-items:flex-end;display:inline-flex}.copilotkit-response-label{color:#6b7280;align-items:center;margin-bottom:.25rem;font-size:.75rem;display:flex}.copilotkit-toggle-button{cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;margin-right:.25rem;padding:0;display:flex}.copilotkit-icon{color:#6b7280;width:.75rem;height:.75rem}.copilotkit-response-buttons{gap:.5rem;display:flex}.copilotkit-response-button{color:#4b5563;cursor:pointer;background-color:#f3f4f6;border:none;border-radius:.25rem;padding:.25rem .5rem;font-size:.75rem;transition:background-color .2s}.copilotkit-response-button:hover{background-color:#e5e7eb}.copilotkit-response-button:focus{outline:none}.copilotkit-response-completed-feedback{background-color:#f9fafb;border-radius:.375rem;align-items:center;padding:.5rem;display:inline-flex}.copilotkit-response-completed-feedback span{color:#4b5563;font-size:.75rem;font-weight:500}.copilotkit-state{margin-bottom:1rem;font-size:.875rem}.copilotkit-state-header{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:.25rem;margin-bottom:.25rem;display:flex}.copilotkit-state-label{color:#4b5563;font-size:.875rem}.copilotkit-state-label-loading{align-items:center;animation:1.5s infinite pulse;display:inline-flex}.copilotkit-state-content{border-left:1px solid #e5e7eb;max-height:250px;margin-left:.375rem;padding-top:.375rem;padding-left:1rem;overflow:auto}.copilotkit-state-item{margin-bottom:.25rem;padding:.25rem 0;transition:all .3s}.copilotkit-state-item-newest{animation:.5s ease-out appear}.copilotkit-state-item-header{opacity:.7;font-size:.75rem}.copilotkit-state-item-thought{opacity:.8;margin-top:.125rem;font-size:.75rem}.copilotkit-state-item-result{margin-top:.125rem;font-size:.75rem}.copilotkit-state-item-description{opacity:.8;margin-top:.125rem;font-size:.75rem}.copilotkit-state-empty{opacity:.7;padding:.25rem 0;font-size:.75rem}.copilotkit-skeleton{padding:.125rem 0;animation:1.5s infinite pulse}.copilotkit-skeleton-header{justify-content:space-between;display:flex}.copilotkit-skeleton-title{background-color:#e5e7eb;border-radius:.25rem;width:4rem;height:.625rem}.copilotkit-skeleton-subtitle{background-color:#e5e7eb;border-radius:.25rem;width:2rem;height:.5rem}.copilotkit-skeleton-content{background-color:#e5e7eb;border-radius:.25rem;height:1.5rem;margin-top:.125rem}.copilotkit-loader,.copilotkit-spinner{animation:1.5s linear infinite spin}@keyframes appear{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{0%,to{opacity:.4}50%{opacity:1}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-color-scheme:dark){.copilotkit-response-content{color:#9ca3af;background-color:#1f2937}.copilotkit-response-label,.copilotkit-icon{color:#9ca3af}.copilotkit-response-button{color:#d1d5db;background-color:#1f2937}.copilotkit-response-button:hover{background-color:#374151}.copilotkit-response-completed-feedback{background-color:#1f2937}.copilotkit-response-completed-feedback span{color:#e5e7eb}.copilotkit-state-label{color:#d1d5db}.copilotkit-state-content{border-left-color:#374151}.copilotkit-skeleton-title,.copilotkit-skeleton-subtitle,.copilotkit-skeleton-content{background-color:#374151}}.erica-drag-overlay{z-index:50;pointer-events:none;background-color:#f0fdfae6;border-radius:.5rem;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.erica-drag-overlay-text{color:#0d9488;font-size:.875rem;font-weight:500}.erica-file-list{flex-direction:column;gap:.5rem;margin-bottom:.5rem;display:flex}.erica-file-item{border-radius:.5rem;justify-content:space-between;align-items:center;padding:.5rem .75rem;display:flex}.erica-file-item--error{background-color:#fef2f2}.erica-file-item--done{background-color:#f0fdf4}.erica-file-item--uploading{background-color:#f3f4f6}.erica-file-content{border-radius:.5rem;flex:1;align-items:center;gap:.5rem;transition:background-color .2s;display:flex}.erica-file-content--clickable{cursor:pointer;margin:-.5rem -.75rem;padding:.5rem .75rem}.erica-file-content--clickable:hover{background-color:#dcfce7}.erica-spinner{border:2px solid;border-top-color:#0000;border-radius:9999px;width:1rem;height:1rem;animation:1s linear infinite erica-spin}.erica-spinner--gray{border-color:#6b7280}.erica-spinner--green{border-color:#22c55e}@keyframes erica-spin{to{transform:rotate(360deg)}}.erica-icon-sm{width:1rem;height:1rem}.erica-icon-md{width:1.25rem;height:1.25rem}.erica-icon-green{color:#16a34a}.erica-icon-red{color:#dc2626}.erica-icon-gray{color:#6b7280}.erica-file-info{flex:1;min-width:0}.erica-file-name{text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;font-weight:500;overflow:hidden}.erica-file-name--error{color:#b91c1c}.erica-file-name--done{color:#15803d}.erica-file-name--uploading{color:#374151}.erica-file-status{color:#6b7280;font-size:.75rem}.erica-downloading-badge{color:#16a34a;margin-left:.5rem;font-size:.75rem}.erica-download-icon{color:#16a34a;opacity:0;width:1rem;height:1rem;transition:opacity .2s}.erica-file-content--clickable:hover .erica-download-icon{opacity:1}.erica-remove-button{cursor:pointer;background:0 0;border:none;border-radius:.25rem;margin-left:.5rem;padding:.25rem;transition:background-color .2s}.erica-remove-button:hover{background-color:#0000001a}.erica-remove-button:disabled{opacity:.5;cursor:not-allowed}.erica-textarea{resize:none;overflow:auto}.erica-file-input{display:none}.erica-attach-button{margin-right:.5rem}.erica-spacer{flex-grow:1}.erica-header{border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;padding:.75rem 1rem;display:flex}.erica-header-title{color:#111827;font-size:1.125rem;font-weight:600}.erica-header-controls{align-items:center;gap:.5rem;display:flex;position:relative}.erica-new-chat-button{color:#fff;cursor:pointer;background-color:#111827;border:none;border-radius:.5rem;padding:.5rem;transition:background-color .2s}.erica-new-chat-button:hover{background-color:#374151}.erica-close-button{color:#6b7280;cursor:pointer;background:0 0;border:none;border-radius:.5rem;padding:.5rem;transition:all .2s}.erica-close-button:hover{color:#111827;background-color:#f3f4f6}.erica-threads-toggle{cursor:pointer;background:0 0;border:none;border-radius:.5rem;align-items:center;gap:.375rem;padding:.5rem .75rem;transition:background-color .2s;display:flex}.erica-threads-toggle:hover{background-color:#f3f4f6}.erica-threads-toggle-text{color:#374151;font-size:.875rem;font-weight:500}.erica-threads-toggle-icon{color:#6b7280;width:1rem;height:1rem;transition:transform .2s}.erica-threads-toggle-icon--open{transform:rotate(180deg)}.erica-threads-dropdown{z-index:50;background-color:#fff;border:1px solid #e5e7eb;border-radius:.5rem;width:18rem;max-height:20rem;margin-top:.25rem;position:absolute;top:100%;right:0;overflow-y:auto;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}.erica-threads-dropdown-content{padding:.5rem}.erica-threads-dropdown-header{color:#6b7280;text-transform:uppercase;padding:.5rem .75rem;font-size:.75rem;font-weight:600}.erica-threads-empty{text-align:center;color:#6b7280;padding:1rem .75rem;font-size:.875rem}.erica-thread-item{text-align:left;cursor:pointer;background:0 0;border:none;border-radius:.5rem;width:100%;padding:.5rem .75rem;transition:background-color .2s}.erica-thread-item:hover{background-color:#f3f4f6}.erica-thread-item-content{flex-direction:column;gap:.25rem;display:flex}.erica-thread-title{color:#111827;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;font-weight:500;overflow:hidden}.erica-thread-meta{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.erica-thread-agent{color:#6b7280;text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:.75rem;overflow:hidden}.erica-thread-time{color:#9ca3af;flex-shrink:0;font-size:.75rem}
1
+ :root{--copilot-kit-primary-color:#1c1c1c;--copilot-kit-contrast-color:#fff;--copilot-kit-background-color:#fff;--copilot-kit-input-background-color:#fbfbfb;--copilot-kit-secondary-color:#fff;--copilot-kit-secondary-contrast-color:#1c1c1c;--copilot-kit-separator-color:#c8c8c8;--copilot-kit-muted-color:#c8c8c8;--copilot-kit-error-background:#fef2f2;--copilot-kit-error-border:#fecaca;--copilot-kit-error-text:#dc2626;--copilot-kit-shadow-sm:0 1px 2px 0 #0000000d;--copilot-kit-shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -1px #0000000f;--copilot-kit-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -2px #0000000d;--copilot-kit-dev-console-bg:#f8f8fa;--copilot-kit-dev-console-text:black}.dark,html.dark,body.dark,[data-theme=dark],html[style*="color-scheme: dark"],body[style*="color-scheme: dark"] :root{--copilot-kit-primary-color:#fff;--copilot-kit-contrast-color:#1c1c1c;--copilot-kit-background-color:#111;--copilot-kit-input-background-color:#2c2c2c;--copilot-kit-secondary-color:#1c1c1c;--copilot-kit-secondary-contrast-color:#fff;--copilot-kit-separator-color:#2d2d2d;--copilot-kit-muted-color:#2d2d2d;--copilot-kit-error-background:#7f1d1d;--copilot-kit-error-border:#dc2626;--copilot-kit-error-text:#fca5a5;--copilot-kit-shadow-sm:0 1px 2px 0 #0000004d;--copilot-kit-shadow-md:0 4px 6px -1px #0006, 0 2px 4px -1px #0000004d;--copilot-kit-shadow-lg:0 10px 15px -3px #0006, 0 4px 6px -2px #0000004d}.copilotKitPopup{z-index:30;-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;touch-action:manipulation;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;position:fixed;bottom:1rem;right:1rem}.copilotKitPopup svg{vertical-align:middle;display:inline-block}.copilotKitSidebar{z-index:30;-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;touch-action:manipulation;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;position:fixed;bottom:1rem;right:1rem}.copilotKitSidebar svg{vertical-align:middle;display:inline-block}.copilotKitSidebarContentWrapper{margin-right:0;transition:margin-right .3s;overflow:visible}@media (width>=640px){.copilotKitSidebarContentWrapper.sidebarExpanded{margin-right:28rem}}.copilotKitButton{border:1px solid var(--copilot-kit-primary-color);background-color:var(--copilot-kit-primary-color);width:3.5rem;height:3.5rem;color:var(--copilot-kit-contrast-color);cursor:pointer;box-shadow:var(--copilot-kit-shadow-sm);border-radius:50%;outline:none;justify-content:center;align-items:center;transition:all .2s;display:flex;position:relative;transform:scale(1)}.copilotKitButton:hover{box-shadow:var(--copilot-kit-shadow-md);transform:scale(1.05)}.copilotKitButton:active{box-shadow:var(--copilot-kit-shadow-sm);transform:scale(.95)}.copilotKitButtonIcon{justify-content:center;align-items:center;transition:opacity .1s,transform .3s;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.copilotKitButtonIcon svg{width:1.5rem;height:1.5rem}.copilotKitButton.open .copilotKitButtonIconOpen{opacity:0;transform:translate(-50%,-50%)scale(0)rotate(90deg)}.copilotKitButton.open .copilotKitButtonIconClose,.copilotKitButton:not(.open) .copilotKitButtonIconOpen{opacity:1;transform:translate(-50%,-50%)scale(1)rotate(0)}.copilotKitButton:not(.open) .copilotKitButtonIconClose{opacity:0;transform:translate(-50%,-50%)scale(0)rotate(-90deg)}.copilotKitHeader{height:56px;color:var(--copilot-kit-primary-color);border-bottom:1px solid var(--copilot-kit-separator-color);background-color:var(--copilot-kit-contrast-color);z-index:2;border-top-left-radius:0;border-top-right-radius:0;justify-content:space-between;align-items:center;padding-left:1.5rem;font-weight:500;display:flex;position:relative}.copilotKitSidebar .copilotKitHeader{border-radius:0}.copilotKitHeaderControls{display:flex}.copilotKitHeaderCloseButton{background:0 0;border:none}@media (width>=640px){.copilotKitHeader{border-top-left-radius:8px;border-top-right-radius:8px;padding-left:1.5rem;padding-right:24px}}.copilotKitHeader>button{color:var(--copilot-kit-muted-color);cursor:pointer;background-color:#0000;border:0;border-radius:50%;outline:none;justify-content:center;align-items:center;width:35px;height:35px;padding:8px;transition:background-color .2s;display:flex;position:absolute;top:50%;right:16px;transform:translateY(-50%)}.copilotKitHeader>button:hover{color:color-mix(in srgb, var(--copilot-kit-muted-color) 80%, black)}.copilotKitHeader>button:focus{outline:none}.copilotKitInput{cursor:text;background-color:var(--copilot-kit-input-background-color);border:1px solid var(--copilot-kit-separator-color);border-radius:20px;width:95%;min-height:75px;margin:0 auto;padding:12px 14px;position:relative}.copilotKitInputContainer{background:var(--copilot-kit-background-color);border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem;width:100%;padding:0 0 15px}.copilotKitSidebar .copilotKitInputContainer{border-bottom-right-radius:0;border-bottom-left-radius:0}.copilotKitInputControlButton{cursor:pointer;color:#00000040;appearance:button;text-transform:none;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;text-indent:0;text-shadow:none;text-align:center;background-color:#0000;background-image:none;border:0;width:24px;height:24px;margin:0;padding:0;transition-property:transform;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-block;transform:scale(1)}.copilotKitInputControlButton:not([disabled]){color:var(--copilot-kit-primary-color)}.copilotKitInputControlButton:not([disabled]):hover{color:color-mix(in srgb, var(--copilot-kit-primary-color) 80%, black);transform:scale(1.05)}.copilotKitInputControlButton[disabled]{color:var(--copilot-kit-muted-color);cursor:default}.copilotKitInputControls{gap:3px;display:flex}.copilotKitInput>textarea{outline-offset:2px;resize:none;white-space:pre-wrap;overflow-wrap:break-word;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;cursor:text;font-family:inherit;font-size:.875rem;line-height:1.5rem;font-weight:inherit;color:var(--copilot-kit-secondary-contrast-color);background-color:#0000;border:0;outline:2px solid #0000;flex:1;width:100%;margin:0;padding:0}.copilotKitInput>textarea::placeholder{color:gray;opacity:1}.copilotKitInputControlButton.copilotKitPushToTalkRecording{color:#fff;background-color:#ec0000;border-radius:50%;animation:2s cubic-bezier(.4,0,.6,1) infinite copilotKitPulseAnimation}.copilotKitInput textarea::-webkit-scrollbar{width:9px}.copilotKitInput textarea::-webkit-scrollbar-track{background:0 0}.copilotKitInput textarea::-webkit-scrollbar-thumb{cursor:pointer;background-color:#c8c8c8;background-clip:content-box;border:2px solid #0000;border-radius:10px}.copilotKitInput textarea::-webkit-scrollbar-thumb:hover{background-color:#a0a0a0}.poweredByContainer{padding:0}.poweredBy{background:var(--copilot-kit-background-color)!important;visibility:visible!important;text-align:center!important;color:#d6d6d6!important;margin:0!important;padding:3px 0!important;font-size:12px!important;display:block!important;position:static!important}.dark,html.dark,body.dark,[data-theme=dark],html[style*="color-scheme: dark"],body[style*="color-scheme: dark"] .poweredBy{color:#454545!important}.copilotKitMessages{background-color:var(--copilot-kit-background-color);color:var(--copilot-kit-secondary-contrast-color);z-index:1;flex-direction:column;flex:1;justify-content:space-between;display:flex;overflow-y:scroll}.copilotKitMessagesContainer{flex-direction:column;padding:1rem 24px;display:flex}.copilotKitMessagesFooter{flex-direction:column;justify-content:flex-start;width:97%;margin:8px auto 0;padding:.5rem .75rem;display:flex}.copilotKitMessages::-webkit-scrollbar{width:6px}.copilotKitMessages::-webkit-scrollbar-thumb{background-color:var(--copilot-kit-separator-color);border:2px solid var(--copilot-kit-background-color);border-radius:10rem}.copilotKitMessages::-webkit-scrollbar-track-piece:start{background:0 0}.copilotKitMessages::-webkit-scrollbar-track-piece:end{background:0 0}.copilotKitMessage{overflow-wrap:break-word;border-radius:15px;max-width:80%;margin-bottom:.5rem;padding:8px 12px;font-size:1rem;line-height:1.5}.copilotKitMessage.copilotKitUserMessage{background:var(--copilot-kit-primary-color);color:var(--copilot-kit-contrast-color);white-space:pre-wrap;margin-left:auto;font-size:1rem;line-height:1.75}.copilotKitMessage.copilotKitAssistantMessage{max-width:100%;color:var(--copilot-kit-secondary-contrast-color);background:0 0;margin-right:auto;padding-left:0;position:relative}.copilotKitMessage.copilotKitAssistantMessage .copilotKitMessageControls{opacity:0;gap:1rem;padding:5px 0 0;transition:opacity .2s;display:flex;position:absolute;left:0}.copilotKitMessageControls.currentMessage{opacity:1!important}.copilotKitMessage.copilotKitAssistantMessage:hover .copilotKitMessageControls{opacity:1}@media (width<=768px){.copilotKitMessage.copilotKitAssistantMessage .copilotKitMessageControls{opacity:1}}.copilotKitMessageControlButton{width:20px;height:20px;color:var(--copilot-kit-primary-color);cursor:pointer;z-index:10;background:0 0;border:none;border-radius:.5rem;justify-content:center;align-items:center;margin:0;padding:0;transition:all .2s;display:flex}.copilotKitMessageControlButton:hover,.copilotKitMessageControlButton:active{color:color-mix(in srgb, var(--copilot-kit-primary-color) 80%, black);transform:scale(1.05)}.copilotKitMessageControlButton.active{background-color:var(--copilot-kit-primary-color);color:var(--copilot-kit-contrast-color)}.copilotKitMessageControlButton.active:hover{background-color:color-mix(in srgb, var(--copilot-kit-primary-color) 90%, black);color:var(--copilot-kit-contrast-color)}.copilotKitMessageControlButton svg{pointer-events:none;width:1rem;height:1rem;display:block}.copilotKitMessage.copilotKitAssistantMessage+.copilotKitMessage.copilotKitUserMessage{margin-top:1.5rem}.copilotKitCustomAssistantMessage{margin-top:1.5rem;margin-bottom:1.5rem}.copilotKitMessage .inProgressLabel{opacity:.7;margin-left:10px}@keyframes copilotKitSpinAnimation{to{transform:rotate(360deg)}}.copilotKitSpinner{border:2px solid var(--copilot-kit-contrast-color);border-top-color:var(--copilot-kit-primary-color);border-radius:50%;width:16px;height:16px;animation:1s linear infinite copilotKitSpinAnimation;display:inline-block}@keyframes copilotKitActivityDotAnimation{0%,80%,to{opacity:.5;transform:scale(.5)}40%{opacity:1;transform:scale(1)}}.copilotKitActivityDot{background-color:var(--copilot-kit-primary-color);border-radius:50%;width:6px;height:6px;animation:1.4s ease-in-out infinite both copilotKitActivityDotAnimation;display:inline-block}.copilotKitImageRendering{flex-direction:column;gap:8px;display:flex}.copilotKitImageRenderingImage{max-width:100%;height:auto;box-shadow:var(--copilot-kit-shadow-sm);border-radius:8px}.copilotKitImageRenderingContent{color:var(--copilot-kit-secondary-contrast-color);margin-top:8px;padding:0 16px;font-size:.875rem;line-height:1.5}.copilotKitImageRenderingError{border:1px solid var(--copilot-kit-separator-color);background-color:var(--copilot-kit-input-background-color);border-radius:8px;flex-direction:column;gap:8px;padding:12px;display:flex}.copilotKitImageRenderingErrorMessage{background-color:var(--copilot-kit-error-background);border:1px solid var(--copilot-kit-error-border);color:var(--copilot-kit-error-text);border-radius:6px;align-items:center;gap:8px;padding:8px 12px;font-size:.875rem;font-weight:500;display:flex}.copilotKitImageRenderingErrorMessage:before{content:"⚠️";font-size:1rem}.copilotKitAttachmentQueue{flex-wrap:wrap;gap:8px;margin:8px;padding:8px;display:flex}.copilotKitAttachmentQueueItem{border:1px solid var(--copilot-kit-separator-color);background:var(--copilot-kit-input-background-color);border-radius:8px;display:inline-flex;position:relative;overflow:hidden}.copilotKitAttachmentQueueItem--image,.copilotKitAttachmentQueueItem--video{width:72px;height:72px}.copilotKitAttachmentQueueItem--audio{flex-direction:column;min-width:200px;max-width:280px;padding:4px}.copilotKitAttachmentQueueItem--document{max-width:200px;padding:8px 12px}.copilotKitAttachmentQueueOverlay{z-index:1;background:#0006;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.copilotKitAttachmentQueueSpinner{border:2px solid #ffffff4d;border-top-color:#fff;border-radius:50%;width:20px;height:20px;animation:.6s linear infinite copilotKitSpin}@keyframes copilotKitSpin{to{transform:rotate(360deg)}}.copilotKitAttachmentQueueRemoveButton{color:#fff;cursor:pointer;z-index:2;background:#0009;border:none;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;padding:0;font-size:10px;line-height:1;display:flex;position:absolute;top:4px;right:4px}.copilotKitAttachmentQueueRemoveButton:hover{background:#000c}.copilotKitAttachmentQueuePreviewPlaceholder{background:var(--copilot-kit-input-background-color);width:100%;height:100%}.copilotKitAttachmentQueuePreviewImage{object-fit:cover;width:100%;height:100%}.copilotKitAttachmentQueuePreviewAudio{flex-direction:column;gap:4px;width:100%;display:flex}.copilotKitAttachmentQueuePreviewAudio audio{width:100%;height:32px}.copilotKitAttachmentQueuePreviewVideo{width:100%;height:100%}.copilotKitAttachmentQueuePreviewDocument{align-items:center;gap:8px;display:flex}.copilotKitAttachmentQueueDocIcon{background:var(--copilot-kit-primary-color,#6366f1);color:#fff;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;font-size:10px;font-weight:600;display:flex}.copilotKitAttachmentQueueDocInfo{flex-direction:column;gap:2px;min-width:0;display:flex}.copilotKitAttachmentQueueFilename{text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500;overflow:hidden}.copilotKitAttachmentQueueFileSize{color:var(--copilot-kit-secondary-contrast-color);font-size:11px}.copilotKitDragOver{outline:2px dashed var(--copilot-kit-primary-color,#6366f1);outline-offset:-4px;border-radius:8px}.copilotKitAttachment{flex-direction:column;gap:4px;max-width:100%;display:inline-flex}.copilotKitAttachmentAudio audio{width:100%;max-width:300px;height:40px}.copilotKitAttachmentVideo video{border-radius:8px;width:100%;max-width:400px}.copilotKitAttachmentDocument{border:1px solid var(--copilot-kit-separator-color);background:var(--copilot-kit-input-background-color);border-radius:8px;align-items:center;gap:8px;padding:8px 12px;display:inline-flex}.copilotKitAttachmentDocIcon{background:var(--copilot-kit-primary-color,#6366f1);color:#fff;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-size:9px;font-weight:600;display:flex}.copilotKitAttachmentDocInfo{flex-direction:column;gap:1px;min-width:0;display:flex}.copilotKitAttachmentDocName{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;overflow:hidden}.copilotKitAttachmentDocMeta{color:var(--copilot-kit-secondary-contrast-color);font-size:11px}.copilotKitWindow{transform-origin:bottom;background-color:var(--copilot-kit-background-color);opacity:0;pointer-events:none;border-color:#e5e7eb;border-radius:.75rem;flex-direction:column;transition:opacity .1s ease-out,transform .2s ease-out;display:flex;position:fixed;inset:0;transform:scale(.95)translateY(20px);box-shadow:0 5px 40px #00000029}.copilotKitSidebar .copilotKitWindow{opacity:1;border-radius:0;transform:translate(100%)}.copilotKitWindow.open{opacity:1;pointer-events:auto;transform:scale(1)translateY(0)}.copilotKitSidebar .copilotKitWindow.open{transform:translate(0)}.copilotKitChatBody{flex-direction:column;flex:1;min-height:0;display:flex}@media (width>=640px){.copilotKitWindow{transform-origin:100% 100%;border-width:0;width:24rem;height:600px;min-height:200px;max-height:calc(100% - 6rem);margin-bottom:1rem;inset:auto 1rem 5rem auto}.copilotKitSidebar .copilotKitWindow{width:28rem;min-height:100%;max-height:none;margin-bottom:0;inset:auto 0 0 auto}}.copilotKitActivityDot1{animation:1.05s infinite copilotKitActivityDotsAnimation}.copilotKitActivityDot2{animation-delay:.1s}.copilotKitActivityDot3{animation-delay:.2s}@keyframes copilotKitActivityDotsAnimation{0%,57.14%{animation-timing-function:cubic-bezier(.33,.66,.66,1);transform:translate(0)}28.57%{animation-timing-function:cubic-bezier(.33,0,.66,.33);transform:translateY(-6px)}to{transform:translate(0)}}@keyframes copilotKitPulseAnimation{50%{opacity:.5}}h1.copilotKitMarkdownElement,h2.copilotKitMarkdownElement,h3.copilotKitMarkdownElement,h4.copilotKitMarkdownElement,h5.copilotKitMarkdownElement,h6.copilotKitMarkdownElement{font-weight:700;line-height:1.2}h1.copilotKitMarkdownElement:not(:last-child),h2.copilotKitMarkdownElement:not(:last-child),h3.copilotKitMarkdownElement:not(:last-child),h4.copilotKitMarkdownElement:not(:last-child),h5.copilotKitMarkdownElement:not(:last-child),h6.copilotKitMarkdownElement:not(:last-child){margin-bottom:1rem}h1.copilotKitMarkdownElement{font-size:1.5em}h2.copilotKitMarkdownElement{font-size:1.25em;font-weight:600}h3.copilotKitMarkdownElement{font-size:1.1em}h4.copilotKitMarkdownElement{font-size:1em}h5.copilotKitMarkdownElement{font-size:.9em}h6.copilotKitMarkdownElement{font-size:.8em}a.copilotKitMarkdownElement{color:#00f;text-decoration:underline}p.copilotKitMarkdownElement{margin:0;padding:0;font-size:1rem;line-height:1.75}p.copilotKitMarkdownElement:not(:last-child),pre.copilotKitMarkdownElement:not(:last-child),ol.copilotKitMarkdownElement:not(:last-child),ul.copilotKitMarkdownElement:not(:last-child),blockquote.copilotKitMarkdownElement:not(:last-child){margin-bottom:1.25em}blockquote.copilotKitMarkdownElement{border-color:#8e8ea0;border-left-style:solid;border-left-width:2px;padding-left:10px;line-height:1.2}blockquote.copilotKitMarkdownElement p{padding:.7em 0}ul.copilotKitMarkdownElement{padding-left:20px;list-style-type:disc;overflow:visible}li.copilotKitMarkdownElement{list-style-type:inherit;margin-left:0;padding-left:0;list-style-position:outside;position:relative;overflow:visible}.copilotKitCodeBlock{background-color:#09090b;border-radius:.375rem;width:100%;position:relative}.copilotKitCodeBlockToolbar{color:#e4e4e4;background-color:#27272a;border-top-left-radius:.375rem;border-top-right-radius:.375rem;justify-content:space-between;align-items:center;width:100%;padding-top:.09rem;padding-bottom:.09rem;padding-left:1rem;font-family:sans-serif;display:flex}.copilotKitCodeBlockToolbarLanguage{text-transform:lowercase;font-size:.75rem;line-height:1rem}.copilotKitCodeBlockToolbarButtons{align-items:center;margin-left:.25rem;margin-right:.25rem;display:flex}.copilotKitCodeBlockToolbarButton{border-radius:.375rem;justify-content:center;align-items:center;height:2.5rem;margin:2px;padding:3px;font-size:.875rem;font-weight:500;line-height:1.25rem;display:inline-flex}.copilotKitCodeBlockToolbarButton:hover{background-color:#37373a}.copilotKitInlineCode{background-color:var(--copilot-kit-input-background-color);border:1px solid var(--copilot-kit-separator-color);border-radius:.375rem;padding:.05rem .4rem;font-size:15px}.copilotKitMessages footer .suggestions{flex-wrap:wrap;gap:6px;display:flex}.copilotKitMessages footer h6{margin-bottom:8px;font-size:.7rem;font-weight:500}.copilotKitMessages footer .suggestions .suggestion{border:1px solid var(--copilot-kit-muted-color);color:var(--copilot-kit-secondary-contrast-color);border-radius:15px;padding:6px 10px;font-size:.7rem;box-shadow:0 5px 5px #00000003,0 2px 3px #00000005}.copilotKitMessages footer .suggestions .suggestion.loading{color:var(--copilot-kit-secondary-contrast-color);border:none;padding:0;font-size:.7rem}.copilotKitMessages footer .suggestions button{transition:transform .3s}.copilotKitMessages footer .suggestions button:not(:disabled):hover{transform:scale(1.03)}.copilotKitMessages footer .suggestions button:disabled{cursor:wait}.copilotKitMessages footer .suggestions button svg{margin-right:6px}.copilotKitChat{z-index:30;-webkit-text-size-adjust:100%;tab-size:4;background:var(--copilot-kit-background-color);font-feature-settings:normal;font-variation-settings:normal;touch-action:manipulation;flex-direction:column;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;display:flex}.copilotKitChat svg{vertical-align:middle;display:inline-block}.copilotKitChat .copilotKitMessages{flex-grow:1}.copilotKitDevConsole{align-items:center;gap:5px;margin:0 15px;display:flex}.copilotKitDevConsole.copilotKitDevConsoleWarnOutdated{background-color:var(--copilot-kit-dev-console-bg)}.copilotKitDevConsole .copilotKitVersionInfo{background:#ebb305;justify-content:center;align-items:center;gap:10px;width:100%;padding:3px 5px;font-size:.8rem;display:flex;position:absolute;bottom:-25px;left:0}.copilotKitDevConsole .copilotKitVersionInfo button{background-color:var(--copilot-kit-dev-console-bg);text-align:left;white-space:nowrap;text-overflow:ellipsis;border:1px solid #979797;border-radius:4px;width:260px;padding:1px 12px 1px 5px;font-family:monospace;font-size:11px;font-weight:400;display:inline-block;overflow:hidden}.copilotKitDevConsole .copilotKitVersionInfo aside{color:#7f7a7a;margin-left:5px;font-weight:400;display:inline}.copilotKitDevConsole .copilotKitVersionInfo svg{margin-top:-3px;margin-left:3px}.copilotKitDevConsole .copilotKitDebugMenuTriggerButton{border:1px solid var(--copilot-kit-muted-color);background-color:#0000;border-radius:20px;outline:none;justify-content:center;align-items:center;height:30px;padding:0 10px;font-size:11px;font-weight:700;display:flex}.copilotKitDebugMenuTriggerButton.compact{width:35px;color:var(--copilot-kit-dev-console-bg);outline:none;justify-content:center;font-size:8px}.copilotKitDevConsole .copilotKitDebugMenuTriggerButton:hover{background-color:color-mix(in srgb, var(--copilot-kit-dev-console-bg) 85%, black);color:var(--copilot-kit-dev-console-text)}.dark,html.dark,body.dark,[data-theme=dark],html[style*="color-scheme: dark"],body[style*="color-scheme: dark"] .copilotKitDevConsole .copilotKitDebugMenuTriggerButton{color:#fff}.dark,html.dark,body.dark,[data-theme=dark],html[style*="color-scheme: dark"],body[style*="color-scheme: dark"] .copilotKitDevConsole .copilotKitDebugMenuTriggerButton:hover{background-color:color-mix(in srgb, var(--copilot-kit-dev-console-bg) 20%, black)}.copilotKitDevConsole .copilotKitDebugMenuTriggerButton>svg{margin-left:10px}.copilotKitDebugMenu{--copilot-kit-dev-console-border:color-mix(in srgb, var(--copilot-kit-dev-console-bg) 80%, black);background-color:var(--copilot-kit-dev-console-bg);border:1px solid var(--copilot-kit-dev-console-border);border-radius:6px;outline:none;margin-top:2px;padding:.25rem;font-size:13px}.copilotKitDebugMenuItem{text-align:left;cursor:pointer;width:100%;color:var(--copilot-kit-dev-console-text);background:0 0;border:none;padding:3px 10px;display:block}.copilotKitDebugMenuItem:hover{background-color:color-mix(in srgb, var(--copilot-kit-dev-console-bg) 95%, black);border-radius:4px}.copilotKitDebugMenu[data-closed]{opacity:0;transform:scale(.95)}.copilotKitDebugMenu hr{background-color:var(--copilot-kit-dev-console-border);border:none;height:1px;margin:.25rem}.copilotKitHelpModal{background-color:var(--copilot-kit-dev-console-bg);color:var(--copilot-kit-dev-console-text)}.copilotKitHelpItemButton{text-align:center;border:1px solid var(--copilot-kit-muted-color);width:100%;color:var(--copilot-kit-dev-console-text);background-color:var(--copilot-kit-dev-console-bg);border-radius:15px;padding:4px 6px;font-size:.8rem;display:block;box-shadow:0 5px 5px #00000003,0 2px 3px #00000005}.copilotKitHelpItemButton:hover{background-color:color-mix(in srgb, var(--copilot-kit-dev-console-bg) 95%, black)}.copilotkit-response{text-align:right}.copilotkit-response-content{color:#4b5563;text-align:left;background-color:#f9fafb;border-radius:.25rem;margin-bottom:.5rem;padding:.5rem;font-size:.875rem}.copilotkit-response-actions{flex-direction:column;align-items:flex-end;display:inline-flex}.copilotkit-response-label{color:#6b7280;align-items:center;margin-bottom:.25rem;font-size:.75rem;display:flex}.copilotkit-toggle-button{cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;margin-right:.25rem;padding:0;display:flex}.copilotkit-icon{color:#6b7280;width:.75rem;height:.75rem}.copilotkit-response-buttons{gap:.5rem;display:flex}.copilotkit-response-button{color:#4b5563;cursor:pointer;background-color:#f3f4f6;border:none;border-radius:.25rem;padding:.25rem .5rem;font-size:.75rem;transition:background-color .2s}.copilotkit-response-button:hover{background-color:#e5e7eb}.copilotkit-response-button:focus{outline:none}.copilotkit-response-completed-feedback{background-color:#f9fafb;border-radius:.375rem;align-items:center;padding:.5rem;display:inline-flex}.copilotkit-response-completed-feedback span{color:#4b5563;font-size:.75rem;font-weight:500}.copilotkit-state{margin-bottom:1rem;font-size:.875rem}.copilotkit-state-header{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:.25rem;margin-bottom:.25rem;display:flex}.copilotkit-state-label{color:#4b5563;font-size:.875rem}.copilotkit-state-label-loading{align-items:center;animation:1.5s infinite pulse;display:inline-flex}.copilotkit-state-content{border-left:1px solid #e5e7eb;max-height:250px;margin-left:.375rem;padding-top:.375rem;padding-left:1rem;overflow:auto}.copilotkit-state-item{margin-bottom:.25rem;padding:.25rem 0;transition:all .3s}.copilotkit-state-item-newest{animation:.5s ease-out appear}.copilotkit-state-item-header{opacity:.7;font-size:.75rem}.copilotkit-state-item-thought{opacity:.8;margin-top:.125rem;font-size:.75rem}.copilotkit-state-item-result{margin-top:.125rem;font-size:.75rem}.copilotkit-state-item-description{opacity:.8;margin-top:.125rem;font-size:.75rem}.copilotkit-state-empty{opacity:.7;padding:.25rem 0;font-size:.75rem}.copilotkit-skeleton{padding:.125rem 0;animation:1.5s infinite pulse}.copilotkit-skeleton-header{justify-content:space-between;display:flex}.copilotkit-skeleton-title{background-color:#e5e7eb;border-radius:.25rem;width:4rem;height:.625rem}.copilotkit-skeleton-subtitle{background-color:#e5e7eb;border-radius:.25rem;width:2rem;height:.5rem}.copilotkit-skeleton-content{background-color:#e5e7eb;border-radius:.25rem;height:1.5rem;margin-top:.125rem}.copilotkit-loader,.copilotkit-spinner{animation:1.5s linear infinite spin}@keyframes appear{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{0%,to{opacity:.4}50%{opacity:1}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-color-scheme:dark){.copilotkit-response-content{color:#9ca3af;background-color:#1f2937}.copilotkit-response-label,.copilotkit-icon{color:#9ca3af}.copilotkit-response-button{color:#d1d5db;background-color:#1f2937}.copilotkit-response-button:hover{background-color:#374151}.copilotkit-response-completed-feedback{background-color:#1f2937}.copilotkit-response-completed-feedback span{color:#e5e7eb}.copilotkit-state-label{color:#d1d5db}.copilotkit-state-content{border-left-color:#374151}.copilotkit-skeleton-title,.copilotkit-skeleton-subtitle,.copilotkit-skeleton-content{background-color:#374151}}.erica-drag-overlay{z-index:50;pointer-events:none;background-color:#f0fdfae6;border-radius:.5rem;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.erica-drag-overlay-text{color:#0d9488;font-size:.875rem;font-weight:500}.erica-file-list{flex-direction:column;gap:.5rem;margin-bottom:.5rem;display:flex}.erica-file-item{border-radius:.5rem;justify-content:space-between;align-items:center;padding:.5rem .75rem;display:flex}.erica-file-item--error{background-color:#fef2f2}.erica-file-item--done{background-color:#f0fdf4}.erica-file-item--uploading{background-color:#f3f4f6}.erica-file-content{border-radius:.5rem;flex:1;align-items:center;gap:.5rem;transition:background-color .2s;display:flex}.erica-file-content--clickable{cursor:pointer;margin:-.5rem -.75rem;padding:.5rem .75rem}.erica-file-content--clickable:hover{background-color:#dcfce7}.erica-spinner{border:2px solid;border-top-color:#0000;border-radius:9999px;width:1rem;height:1rem;animation:1s linear infinite erica-spin}.erica-spinner--gray{border-color:#6b7280}.erica-spinner--green{border-color:#22c55e}@keyframes erica-spin{to{transform:rotate(360deg)}}.erica-icon-sm{width:1rem;height:1rem}.erica-icon-md{width:1.25rem;height:1.25rem}.erica-icon-green{color:#16a34a}.erica-icon-red{color:#dc2626}.erica-icon-gray{color:#6b7280}.erica-file-info{flex:1;min-width:0}.erica-file-name{text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;font-weight:500;overflow:hidden}.erica-file-name--error{color:#b91c1c}.erica-file-name--done{color:#15803d}.erica-file-name--uploading{color:#374151}.erica-file-status{color:#6b7280;font-size:.75rem}.erica-downloading-badge{color:#16a34a;margin-left:.5rem;font-size:.75rem}.erica-download-icon{color:#16a34a;opacity:0;width:1rem;height:1rem;transition:opacity .2s}.erica-file-content--clickable:hover .erica-download-icon{opacity:1}.erica-remove-button{cursor:pointer;background:0 0;border:none;border-radius:.25rem;margin-left:.5rem;padding:.25rem;transition:background-color .2s}.erica-remove-button:hover{background-color:#0000001a}.erica-remove-button:disabled{opacity:.5;cursor:not-allowed}.erica-textarea{resize:none;overflow:auto}.erica-file-input{display:none}.erica-attach-button{margin-right:.5rem}.erica-spacer{flex-grow:1}.erica-header{border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;padding:.75rem 1rem;display:flex}.erica-header-title{color:#111827;font-size:1.125rem;font-weight:600}.erica-header-controls{align-items:center;gap:.5rem;display:flex;position:relative}.erica-new-chat-button{color:#fff;cursor:pointer;background-color:#111827;border:none;border-radius:.5rem;padding:.5rem;transition:background-color .2s}.erica-new-chat-button:hover{background-color:#374151}.erica-close-button{color:#6b7280;cursor:pointer;background:0 0;border:none;border-radius:.5rem;padding:.5rem;transition:all .2s}.erica-close-button:hover{color:#111827;background-color:#f3f4f6}.erica-threads-toggle{cursor:pointer;background:0 0;border:none;border-radius:.5rem;align-items:center;gap:.375rem;padding:.5rem .75rem;transition:background-color .2s;display:flex}.erica-threads-toggle:hover{background-color:#f3f4f6}.erica-threads-toggle-text{color:#374151;font-size:.875rem;font-weight:500}.erica-threads-toggle-icon{color:#6b7280;width:1rem;height:1rem;transition:transform .2s}.erica-threads-toggle-icon--open{transform:rotate(180deg)}.erica-threads-dropdown{z-index:50;background-color:#fff;border:1px solid #e5e7eb;border-radius:.5rem;width:18rem;max-height:20rem;margin-top:.25rem;position:absolute;top:100%;right:0;overflow-y:auto;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}.erica-threads-dropdown-content{padding:.5rem}.erica-threads-dropdown-header{color:#6b7280;text-transform:uppercase;padding:.5rem .75rem;font-size:.75rem;font-weight:600}.erica-threads-empty{text-align:center;color:#6b7280;padding:1rem .75rem;font-size:.875rem}.erica-thread-item{text-align:left;cursor:pointer;background:0 0;border:none;border-radius:.5rem;width:100%;padding:.5rem .75rem;transition:background-color .2s}.erica-thread-item:hover{background-color:#f3f4f6}.erica-thread-item-content{flex-direction:column;gap:.25rem;display:flex}.erica-thread-title{color:#111827;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;font-weight:500;overflow:hidden}.erica-thread-meta{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.erica-thread-agent{color:#6b7280;text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:.75rem;overflow:hidden}.erica-thread-time{color:#9ca3af;flex-shrink:0;font-size:.75rem}.erica-artifact-container{z-index:50;justify-content:flex-start;align-items:center;display:flex;position:fixed;inset:0}.erica-artifact-backdrop{opacity:0;background-color:#00000080;transition:opacity .3s;position:absolute;inset:0}.erica-artifact-backdrop--visible{opacity:1}.erica-artifact-drawer{background-color:#fff;flex-direction:column;width:100%;max-width:80rem;height:100%;transition:transform .3s ease-out;display:flex;position:relative;transform:translate(-100%);box-shadow:0 25px 50px -12px #00000040}.erica-artifact-drawer--open{transform:translate(0)}.erica-artifact-header{background-color:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;padding:1.5rem;display:flex}.erica-artifact-title{color:#111827;margin:0;font-size:1.5rem;font-weight:700}.erica-artifact-close-button{cursor:pointer;background-color:#0000;border:none;border-radius:.5rem;justify-content:center;align-items:center;padding:.5rem;transition:background-color .15s;display:flex}.erica-artifact-close-button:hover{background-color:#f3f4f6}.erica-artifact-body{background-color:#f9fafb;flex:1;padding:1.5rem;overflow-y:auto}.erica-report-card{cursor:pointer;background-color:#fff;border:1px solid #e5e7eb;border-radius:.5rem;width:100%;transition:all .3s;box-shadow:0 1px 2px #0000000d}.erica-report-card:hover{transform:scale(1.01);box-shadow:0 4px 6px -1px #0000001a}.erica-report-content-wrapper{flex-direction:row;align-items:center;gap:1rem;padding:1rem;display:flex}.erica-report-icon{background-color:#f3f4f6;border-radius:.75rem;flex-shrink:0;justify-content:center;align-items:center;width:3rem;height:3.5rem;transition:background-color .15s;display:flex}.erica-report-card:hover .erica-report-icon{background-color:#eff6ff}.erica-report-icon .erica-icon-md{color:#6b7280;transition:color .15s}.erica-report-card:hover .erica-report-icon .erica-icon-md{color:#2563eb}.erica-report-content{flex-direction:column;flex-grow:1;min-width:0;display:flex}.erica-report-title{color:#111827;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;font-weight:600;line-height:1.25;transition:color .15s;overflow:hidden}.erica-report-card:hover .erica-report-title{color:#2563eb}.erica-report-subtitle{color:#6b7280;font-size:.75rem;font-weight:500}.erica-report-button{color:#fff;cursor:pointer;background-color:#2563eb;border:none;border-radius:.5rem;flex-shrink:0;padding:.5rem 1rem;font-size:.875rem;font-weight:500;transition:background-color .15s}.erica-report-button:hover{background-color:#1d4ed8}
2
2
  /*$vite$:1*/
package/dist/index.cjs CHANGED
@@ -41,10 +41,10 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
41
41
 
42
42
  `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=wn,s=!mn.jitless,c=s&&Tn.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Ci([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Ei(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!B(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>V(e,r,M())))}),t)}var Di=A(`$ZodUnion`,(e,t)=>{W.init(e,t),N(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),N(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),N(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),N(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>yn(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>Ei(t,i,e,a)):Ei(s,i,e,a)}}),Oi=A(`$ZodIntersection`,(e,t)=>{W.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Ai(e,t,n)):Ai(e,i,a)}});function ki(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(I(e)&&I(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=ki(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=ki(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ai(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),B(e))return e;let o=ki(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var ji=A(`$ZodEnum`,(e,t)=>{W.init(e,t);let n=hn(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Dn.has(typeof e)).map(e=>typeof e==`string`?L(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Mi=A(`$ZodTransform`,(e,t)=>{W.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new pn(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new j;return n.value=i,n}});function Ni(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Pi=A(`$ZodOptional`,(e,t)=>{W.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,N(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),N(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${yn(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>Ni(t,e.value)):Ni(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Fi=A(`$ZodExactOptional`,(e,t)=>{Pi.init(e,t),N(e._zod,`values`,()=>t.innerType._zod.values),N(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Ii=A(`$ZodNullable`,(e,t)=>{W.init(e,t),N(e._zod,`optin`,()=>t.innerType._zod.optin),N(e._zod,`optout`,()=>t.innerType._zod.optout),N(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${yn(e.source)}|null)$`):void 0}),N(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Li=A(`$ZodDefault`,(e,t)=>{W.init(e,t),e._zod.optin=`optional`,N(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Ri(e,t)):Ri(r,t)}});function Ri(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var zi=A(`$ZodPrefault`,(e,t)=>{W.init(e,t),e._zod.optin=`optional`,N(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Bi=A(`$ZodNonOptional`,(e,t)=>{W.init(e,t),N(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Vi(t,e)):Vi(i,e)}});function Vi(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var Hi=A(`$ZodCatch`,(e,t)=>{W.init(e,t),N(e._zod,`optin`,()=>t.innerType._zod.optin),N(e._zod,`optout`,()=>t.innerType._zod.optout),N(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>V(e,n,M()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>V(e,n,M()))},input:e.value}),e.issues=[]),e)}}),Ui=A(`$ZodPipe`,(e,t)=>{W.init(e,t),N(e._zod,`values`,()=>t.in._zod.values),N(e._zod,`optin`,()=>t.in._zod.optin),N(e._zod,`optout`,()=>t.out._zod.optout),N(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Wi(e,t.in,n)):Wi(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Wi(e,t.out,n)):Wi(r,t.out,n)}});function Wi(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Gi=A(`$ZodReadonly`,(e,t)=>{W.init(e,t),N(e._zod,`propValues`,()=>t.innerType._zod.propValues),N(e._zod,`values`,()=>t.innerType._zod.values),N(e._zod,`optin`,()=>t.innerType?._zod?.optin),N(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Ki):Ki(r)}});function Ki(e){return e.value=Object.freeze(e.value),e}var qi=A(`$ZodCustom`,(e,t)=>{U.init(e,t),W.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Ji(t,n,r,e));Ji(i,n,r,e)}});function Ji(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(H(e))}}var Yi,Xi=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Zi(){return new Xi}(Yi=globalThis).__zod_globalRegistry??(Yi.__zod_globalRegistry=Zi());var K=globalThis.__zod_globalRegistry;function Qi(e,t){return new e({type:`string`,...z(t)})}function $i(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...z(t)})}function ea(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...z(t)})}function ta(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...z(t)})}function na(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...z(t)})}function ra(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...z(t)})}function ia(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...z(t)})}function aa(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...z(t)})}function oa(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...z(t)})}function sa(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...z(t)})}function ca(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...z(t)})}function la(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...z(t)})}function ua(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...z(t)})}function da(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...z(t)})}function fa(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...z(t)})}function pa(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...z(t)})}function ma(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...z(t)})}function ha(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...z(t)})}function ga(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...z(t)})}function _a(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...z(t)})}function va(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...z(t)})}function ya(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...z(t)})}function ba(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...z(t)})}function xa(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...z(t)})}function Sa(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...z(t)})}function Ca(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...z(t)})}function wa(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...z(t)})}function Ta(e){return new e({type:`unknown`})}function Ea(e,t){return new e({type:`never`,...z(t)})}function Da(e,t){return new jr({check:`max_length`,...z(t),maximum:e})}function q(e,t){return new Mr({check:`min_length`,...z(t),minimum:e})}function Oa(e,t){return new Nr({check:`length_equals`,...z(t),length:e})}function ka(e,t){return new Fr({check:`string_format`,format:`regex`,...z(t),pattern:e})}function Aa(e){return new Ir({check:`string_format`,format:`lowercase`,...z(e)})}function ja(e){return new Lr({check:`string_format`,format:`uppercase`,...z(e)})}function Ma(e,t){return new Rr({check:`string_format`,format:`includes`,...z(t),includes:e})}function Na(e,t){return new zr({check:`string_format`,format:`starts_with`,...z(t),prefix:e})}function Pa(e,t){return new Br({check:`string_format`,format:`ends_with`,...z(t),suffix:e})}function J(e){return new Vr({check:`overwrite`,tx:e})}function Fa(e){return J(t=>t.normalize(e))}function Ia(){return J(e=>e.trim())}function La(){return J(e=>e.toLowerCase())}function Ra(){return J(e=>e.toUpperCase())}function za(){return J(e=>Sn(e))}function Ba(e,t,n){return new e({type:`array`,element:t,...z(n)})}function Va(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...z(n)})}function Ha(e){let t=Ua(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(H(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(H(r))}},e(n.value,n)));return t}function Ua(e,t){let n=new U({check:`custom`,...z(t)});return n._zod.check=e,n}function Wa(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??K,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function Y(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Y(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&X(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Ga(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
43
43
 
44
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Ka(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:Ja(t,`input`,e.processors),output:Ja(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function X(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return X(r.element,n);if(r.type===`set`)return X(r.valueType,n);if(r.type===`lazy`)return X(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return X(r.innerType,n);if(r.type===`intersection`)return X(r.left,n)||X(r.right,n);if(r.type===`record`||r.type===`map`)return X(r.keyType,n)||X(r.valueType,n);if(r.type===`pipe`)return X(r.in,n)||X(r.out,n);if(r.type===`object`){for(let e in r.shape)if(X(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(X(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(X(e,n))return!0;return!!(r.rest&&X(r.rest,n))}return!1}var qa=(e,t={})=>n=>{let r=Wa({...n,processors:t});return Y(e,r),Ga(r,e),Ka(r,e)},Ja=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Wa({...i??{},target:a,io:t,processors:n});return Y(e,o),Ga(o,e),Ka(o,e)},Ya={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Xa=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Ya[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Za=(e,t,n,r)=>{n.not={}},Qa=(e,t,n,r)=>{let i=e._zod.def,a=hn(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},$a=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},eo=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},to=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Y(a.element,t,{...r,path:[...r.path,`items`]})},no=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Y(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Y(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},ro=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Y(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},io=(e,t,n,r)=>{let i=e._zod.def,a=Y(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Y(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},ao=(e,t,n,r)=>{let i=e._zod.def,a=Y(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},oo=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},so=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},co=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},lo=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},uo=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;Y(a,t,r);let o=t.seen.get(e);o.ref=a},fo=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},po=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},mo=A(`ZodISODateTime`,(e,t)=>{ni.init(e,t),$.init(e,t)});function ho(e){return xa(mo,e)}var go=A(`ZodISODate`,(e,t)=>{ri.init(e,t),$.init(e,t)});function _o(e){return Sa(go,e)}var vo=A(`ZodISOTime`,(e,t)=>{ii.init(e,t),$.init(e,t)});function yo(e){return Ca(vo,e)}var bo=A(`ZodISODuration`,(e,t)=>{ai.init(e,t),$.init(e,t)});function xo(e){return wa(bo,e)}var So=(e,t)=>{Bn.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Un(e,t)},flatten:{value:t=>Hn(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,gn,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,gn,2)}},isEmpty:{get(){return e.issues.length===0}}})};A(`ZodError`,So);var Z=A(`ZodError`,So,{Parent:Error}),Co=Wn(Z),wo=Gn(Z),To=Kn(Z),Eo=Jn(Z),Do=Xn(Z),Oo=Zn(Z),ko=Qn(Z),Ao=$n(Z),jo=er(Z),Mo=tr(Z),No=nr(Z),Po=rr(Z),Q=A(`ZodType`,(e,t)=>(W.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Ja(e,`input`),output:Ja(e,`output`)}}),e.toJSONSchema=qa(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(F(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>R(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>Co(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>To(e,t,n),e.parseAsync=async(t,n)=>wo(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Eo(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Do(e,t,n),e.decode=(t,n)=>Oo(e,t,n),e.encodeAsync=async(t,n)=>ko(e,t,n),e.decodeAsync=async(t,n)=>Ao(e,t,n),e.safeEncode=(t,n)=>jo(e,t,n),e.safeDecode=(t,n)=>Mo(e,t,n),e.safeEncodeAsync=async(t,n)=>No(e,t,n),e.safeDecodeAsync=async(t,n)=>Po(e,t,n),e.refine=(t,n)=>e.check(Rs(t,n)),e.superRefine=t=>e.check(zs(t)),e.overwrite=t=>e.check(J(t)),e.optional=()=>bs(e),e.exactOptional=()=>Ss(e),e.nullable=()=>ws(e),e.nullish=()=>bs(ws(e)),e.nonoptional=t=>As(e,t),e.array=()=>cs(e),e.or=t=>fs([e,t]),e.and=t=>ms(e,t),e.transform=t=>Ps(e,vs(t)),e.default=t=>Es(e,t),e.prefault=t=>Os(e,t),e.catch=t=>Ms(e,t),e.pipe=t=>Ps(e,t),e.readonly=()=>Is(e),e.describe=t=>{let n=e.clone();return K.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return K.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return K.get(e);let n=e.clone();return K.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),Fo=A(`_ZodString`,(e,t)=>{Wr.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xa(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(ka(...t)),e.includes=(...t)=>e.check(Ma(...t)),e.startsWith=(...t)=>e.check(Na(...t)),e.endsWith=(...t)=>e.check(Pa(...t)),e.min=(...t)=>e.check(q(...t)),e.max=(...t)=>e.check(Da(...t)),e.length=(...t)=>e.check(Oa(...t)),e.nonempty=(...t)=>e.check(q(1,...t)),e.lowercase=t=>e.check(Aa(t)),e.uppercase=t=>e.check(ja(t)),e.trim=()=>e.check(Ia()),e.normalize=(...t)=>e.check(Fa(...t)),e.toLowerCase=()=>e.check(La()),e.toUpperCase=()=>e.check(Ra()),e.slugify=()=>e.check(za())}),Io=A(`ZodString`,(e,t)=>{Wr.init(e,t),Fo.init(e,t),e.email=t=>e.check($i(Ro,t)),e.url=t=>e.check(aa(Vo,t)),e.jwt=t=>e.check(ba(ns,t)),e.emoji=t=>e.check(oa(Ho,t)),e.guid=t=>e.check(ea(zo,t)),e.uuid=t=>e.check(ta(Bo,t)),e.uuidv4=t=>e.check(na(Bo,t)),e.uuidv6=t=>e.check(ra(Bo,t)),e.uuidv7=t=>e.check(ia(Bo,t)),e.nanoid=t=>e.check(sa(Uo,t)),e.guid=t=>e.check(ea(zo,t)),e.cuid=t=>e.check(ca(Wo,t)),e.cuid2=t=>e.check(la(Go,t)),e.ulid=t=>e.check(ua(Ko,t)),e.base64=t=>e.check(_a($o,t)),e.base64url=t=>e.check(va(es,t)),e.xid=t=>e.check(da(qo,t)),e.ksuid=t=>e.check(fa(Jo,t)),e.ipv4=t=>e.check(pa(Yo,t)),e.ipv6=t=>e.check(ma(Xo,t)),e.cidrv4=t=>e.check(ha(Zo,t)),e.cidrv6=t=>e.check(ga(Qo,t)),e.e164=t=>e.check(ya(ts,t)),e.datetime=t=>e.check(ho(t)),e.date=t=>e.check(_o(t)),e.time=t=>e.check(yo(t)),e.duration=t=>e.check(xo(t))});function Lo(e){return Qi(Io,e)}var $=A(`ZodStringFormat`,(e,t)=>{G.init(e,t),Fo.init(e,t)}),Ro=A(`ZodEmail`,(e,t)=>{qr.init(e,t),$.init(e,t)}),zo=A(`ZodGUID`,(e,t)=>{Gr.init(e,t),$.init(e,t)}),Bo=A(`ZodUUID`,(e,t)=>{Kr.init(e,t),$.init(e,t)}),Vo=A(`ZodURL`,(e,t)=>{Jr.init(e,t),$.init(e,t)}),Ho=A(`ZodEmoji`,(e,t)=>{Yr.init(e,t),$.init(e,t)}),Uo=A(`ZodNanoID`,(e,t)=>{Xr.init(e,t),$.init(e,t)}),Wo=A(`ZodCUID`,(e,t)=>{Zr.init(e,t),$.init(e,t)}),Go=A(`ZodCUID2`,(e,t)=>{Qr.init(e,t),$.init(e,t)}),Ko=A(`ZodULID`,(e,t)=>{$r.init(e,t),$.init(e,t)}),qo=A(`ZodXID`,(e,t)=>{ei.init(e,t),$.init(e,t)}),Jo=A(`ZodKSUID`,(e,t)=>{ti.init(e,t),$.init(e,t)}),Yo=A(`ZodIPv4`,(e,t)=>{oi.init(e,t),$.init(e,t)}),Xo=A(`ZodIPv6`,(e,t)=>{si.init(e,t),$.init(e,t)}),Zo=A(`ZodCIDRv4`,(e,t)=>{ci.init(e,t),$.init(e,t)}),Qo=A(`ZodCIDRv6`,(e,t)=>{li.init(e,t),$.init(e,t)}),$o=A(`ZodBase64`,(e,t)=>{di.init(e,t),$.init(e,t)}),es=A(`ZodBase64URL`,(e,t)=>{pi.init(e,t),$.init(e,t)}),ts=A(`ZodE164`,(e,t)=>{mi.init(e,t),$.init(e,t)}),ns=A(`ZodJWT`,(e,t)=>{gi.init(e,t),$.init(e,t)}),rs=A(`ZodUnknown`,(e,t)=>{_i.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function is(){return Ta(rs)}var as=A(`ZodNever`,(e,t)=>{vi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Za(e,t,n,r)});function os(e){return Ea(as,e)}var ss=A(`ZodArray`,(e,t)=>{bi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>to(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(q(t,n)),e.nonempty=t=>e.check(q(1,t)),e.max=(t,n)=>e.check(Da(t,n)),e.length=(t,n)=>e.check(Oa(t,n)),e.unwrap=()=>e.element});function cs(e,t){return Ba(ss,e,t)}var ls=A(`ZodObject`,(e,t)=>{Ti.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>no(e,t,n,r),N(e,`shape`,()=>t.shape),e.keyof=()=>gs(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:is()}),e.loose=()=>e.clone({...e._zod.def,catchall:is()}),e.strict=()=>e.clone({...e._zod.def,catchall:os()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>jn(e,t),e.safeExtend=t=>Mn(e,t),e.merge=t=>Nn(e,t),e.pick=t=>kn(e,t),e.omit=t=>An(e,t),e.partial=(...t)=>Pn(ys,e,t[0]),e.required=(...t)=>Fn(ks,e,t[0])});function us(e,t){return new ls({type:`object`,shape:e??{},...z(t)})}var ds=A(`ZodUnion`,(e,t)=>{Di.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ro(e,t,n,r),e.options=t.options});function fs(e,t){return new ds({type:`union`,options:e,...z(t)})}var ps=A(`ZodIntersection`,(e,t)=>{Oi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>io(e,t,n,r)});function ms(e,t){return new ps({type:`intersection`,left:e,right:t})}var hs=A(`ZodEnum`,(e,t)=>{ji.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qa(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new hs({...t,checks:[],...z(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new hs({...t,checks:[],...z(r),entries:i})}});function gs(e,t){return new hs({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...z(t)})}var _s=A(`ZodTransform`,(e,t)=>{Mi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eo(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new pn(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(H(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(H(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function vs(e){return new _s({type:`transform`,transform:e})}var ys=A(`ZodOptional`,(e,t)=>{Pi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>po(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function bs(e){return new ys({type:`optional`,innerType:e})}var xs=A(`ZodExactOptional`,(e,t)=>{Fi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>po(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ss(e){return new xs({type:`optional`,innerType:e})}var Cs=A(`ZodNullable`,(e,t)=>{Ii.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ao(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ws(e){return new Cs({type:`nullable`,innerType:e})}var Ts=A(`ZodDefault`,(e,t)=>{Li.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>so(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Es(e,t){return new Ts({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():En(t)}})}var Ds=A(`ZodPrefault`,(e,t)=>{zi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>co(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Os(e,t){return new Ds({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():En(t)}})}var ks=A(`ZodNonOptional`,(e,t)=>{Bi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function As(e,t){return new ks({type:`nonoptional`,innerType:e,...z(t)})}var js=A(`ZodCatch`,(e,t)=>{Hi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ms(e,t){return new js({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Ns=A(`ZodPipe`,(e,t)=>{Ui.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uo(e,t,n,r),e.in=t.in,e.out=t.out});function Ps(e,t){return new Ns({type:`pipe`,in:e,out:t})}var Fs=A(`ZodReadonly`,(e,t)=>{Gi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Is(e){return new Fs({type:`readonly`,innerType:e})}var Ls=A(`ZodCustom`,(e,t)=>{qi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$a(e,t,n,r)});function Rs(e,t={}){return Va(Ls,e,t)}function zs(e){return Ha(e)}var Bs=(0,c.createContext)(null);function Vs({children:e}){let[t,n]=(0,c.useState)(!1),[r,i]=(0,c.useState)(null),[a,o]=(0,c.useState)(`Artifacts`);return(0,l.jsx)(Bs.Provider,{value:{isOpen:t,onOpen:()=>n(!0),onClose:()=>n(!1),content:r,setContent:i,title:a,setTitle:o},children:e})}var Hs=()=>(0,c.useContext)(Bs)||{isOpen:!1,onOpen:()=>{},onClose:()=>{},content:null,setContent:()=>{},title:`Artifacts`,setTitle:()=>{}};function Us({markdown:e}){return(0,l.jsx)(`div`,{className:`report-artifact`,children:(0,l.jsx)(`div`,{className:`prose prose-sm max-w-none`,children:(0,l.jsx)(`div`,{className:`whitespace-pre-wrap`,dangerouslySetInnerHTML:{__html:e.replace(/\n/g,`<br />`)}})})})}var Ws=us({title:Lo().describe(`Title of the report.`),reportContent:Lo().describe(`Markdown content of the report.`)});function Gs({title:e,reportContent:t}){let n=Hs(),r=()=>{n.setTitle(e),n.setContent((0,l.jsx)(Us,{markdown:t})),n.onOpen()};return(0,l.jsx)(`div`,{onClick:r,className:`group w-full transition-all duration-300 hover:scale-[1.01] shadow-sm hover:shadow-md bg-white border border-gray-200 cursor-pointer rounded-lg`,children:(0,l.jsxs)(`div`,{className:`flex flex-row items-center gap-4 p-4`,children:[(0,l.jsx)(`div`,{className:`flex-shrink-0 flex items-center justify-center w-12 h-14 bg-gray-100 rounded-xl group-hover:bg-blue-50 transition-colors`,children:(0,l.jsx)(St,{className:`w-6 h-6 text-gray-500 group-hover:text-blue-600 transition-colors`})}),(0,l.jsxs)(`div`,{className:`flex-grow flex flex-col min-w-0`,children:[(0,l.jsx)(`span`,{className:`text-sm font-semibold truncate group-hover:text-blue-600 transition-colors leading-tight`,children:e}),(0,l.jsx)(`span`,{className:`text-xs text-gray-500 font-medium`,children:`Business Report`})]}),(0,l.jsx)(`button`,{onClick:e=>{e.stopPropagation(),r()},className:`px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors`,children:`Show Report`})]})})}var Ks=()=>{(0,d.useComponent)({name:`showReport`,description:`Display a report from markdown with erica report syntax.`,parameters:Ws,render:Gs},[])},qs=new qe({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1,staleTime:3e4}}});function Js({threadId:e,handleNewChat:t,handleThreadSelect:n}){return Ks(),(0,l.jsx)(f.CopilotSidebar,{labels:{initial:`Hi! How can I help you today?
44
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Ka(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:Ja(t,`input`,e.processors),output:Ja(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function X(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return X(r.element,n);if(r.type===`set`)return X(r.valueType,n);if(r.type===`lazy`)return X(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return X(r.innerType,n);if(r.type===`intersection`)return X(r.left,n)||X(r.right,n);if(r.type===`record`||r.type===`map`)return X(r.keyType,n)||X(r.valueType,n);if(r.type===`pipe`)return X(r.in,n)||X(r.out,n);if(r.type===`object`){for(let e in r.shape)if(X(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(X(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(X(e,n))return!0;return!!(r.rest&&X(r.rest,n))}return!1}var qa=(e,t={})=>n=>{let r=Wa({...n,processors:t});return Y(e,r),Ga(r,e),Ka(r,e)},Ja=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Wa({...i??{},target:a,io:t,processors:n});return Y(e,o),Ga(o,e),Ka(o,e)},Ya={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Xa=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Ya[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Za=(e,t,n,r)=>{n.not={}},Qa=(e,t,n,r)=>{let i=e._zod.def,a=hn(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},$a=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},eo=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},to=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Y(a.element,t,{...r,path:[...r.path,`items`]})},no=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Y(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Y(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},ro=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Y(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},io=(e,t,n,r)=>{let i=e._zod.def,a=Y(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Y(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},ao=(e,t,n,r)=>{let i=e._zod.def,a=Y(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},oo=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},so=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},co=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},lo=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},uo=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;Y(a,t,r);let o=t.seen.get(e);o.ref=a},fo=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},po=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},mo=A(`ZodISODateTime`,(e,t)=>{ni.init(e,t),$.init(e,t)});function ho(e){return xa(mo,e)}var go=A(`ZodISODate`,(e,t)=>{ri.init(e,t),$.init(e,t)});function _o(e){return Sa(go,e)}var vo=A(`ZodISOTime`,(e,t)=>{ii.init(e,t),$.init(e,t)});function yo(e){return Ca(vo,e)}var bo=A(`ZodISODuration`,(e,t)=>{ai.init(e,t),$.init(e,t)});function xo(e){return wa(bo,e)}var So=(e,t)=>{Bn.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Un(e,t)},flatten:{value:t=>Hn(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,gn,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,gn,2)}},isEmpty:{get(){return e.issues.length===0}}})};A(`ZodError`,So);var Z=A(`ZodError`,So,{Parent:Error}),Co=Wn(Z),wo=Gn(Z),To=Kn(Z),Eo=Jn(Z),Do=Xn(Z),Oo=Zn(Z),ko=Qn(Z),Ao=$n(Z),jo=er(Z),Mo=tr(Z),No=nr(Z),Po=rr(Z),Q=A(`ZodType`,(e,t)=>(W.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Ja(e,`input`),output:Ja(e,`output`)}}),e.toJSONSchema=qa(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(F(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>R(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>Co(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>To(e,t,n),e.parseAsync=async(t,n)=>wo(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Eo(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Do(e,t,n),e.decode=(t,n)=>Oo(e,t,n),e.encodeAsync=async(t,n)=>ko(e,t,n),e.decodeAsync=async(t,n)=>Ao(e,t,n),e.safeEncode=(t,n)=>jo(e,t,n),e.safeDecode=(t,n)=>Mo(e,t,n),e.safeEncodeAsync=async(t,n)=>No(e,t,n),e.safeDecodeAsync=async(t,n)=>Po(e,t,n),e.refine=(t,n)=>e.check(Rs(t,n)),e.superRefine=t=>e.check(zs(t)),e.overwrite=t=>e.check(J(t)),e.optional=()=>bs(e),e.exactOptional=()=>Ss(e),e.nullable=()=>ws(e),e.nullish=()=>bs(ws(e)),e.nonoptional=t=>As(e,t),e.array=()=>cs(e),e.or=t=>fs([e,t]),e.and=t=>ms(e,t),e.transform=t=>Ps(e,vs(t)),e.default=t=>Es(e,t),e.prefault=t=>Os(e,t),e.catch=t=>Ms(e,t),e.pipe=t=>Ps(e,t),e.readonly=()=>Is(e),e.describe=t=>{let n=e.clone();return K.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return K.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return K.get(e);let n=e.clone();return K.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),Fo=A(`_ZodString`,(e,t)=>{Wr.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xa(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(ka(...t)),e.includes=(...t)=>e.check(Ma(...t)),e.startsWith=(...t)=>e.check(Na(...t)),e.endsWith=(...t)=>e.check(Pa(...t)),e.min=(...t)=>e.check(q(...t)),e.max=(...t)=>e.check(Da(...t)),e.length=(...t)=>e.check(Oa(...t)),e.nonempty=(...t)=>e.check(q(1,...t)),e.lowercase=t=>e.check(Aa(t)),e.uppercase=t=>e.check(ja(t)),e.trim=()=>e.check(Ia()),e.normalize=(...t)=>e.check(Fa(...t)),e.toLowerCase=()=>e.check(La()),e.toUpperCase=()=>e.check(Ra()),e.slugify=()=>e.check(za())}),Io=A(`ZodString`,(e,t)=>{Wr.init(e,t),Fo.init(e,t),e.email=t=>e.check($i(Ro,t)),e.url=t=>e.check(aa(Vo,t)),e.jwt=t=>e.check(ba(ns,t)),e.emoji=t=>e.check(oa(Ho,t)),e.guid=t=>e.check(ea(zo,t)),e.uuid=t=>e.check(ta(Bo,t)),e.uuidv4=t=>e.check(na(Bo,t)),e.uuidv6=t=>e.check(ra(Bo,t)),e.uuidv7=t=>e.check(ia(Bo,t)),e.nanoid=t=>e.check(sa(Uo,t)),e.guid=t=>e.check(ea(zo,t)),e.cuid=t=>e.check(ca(Wo,t)),e.cuid2=t=>e.check(la(Go,t)),e.ulid=t=>e.check(ua(Ko,t)),e.base64=t=>e.check(_a($o,t)),e.base64url=t=>e.check(va(es,t)),e.xid=t=>e.check(da(qo,t)),e.ksuid=t=>e.check(fa(Jo,t)),e.ipv4=t=>e.check(pa(Yo,t)),e.ipv6=t=>e.check(ma(Xo,t)),e.cidrv4=t=>e.check(ha(Zo,t)),e.cidrv6=t=>e.check(ga(Qo,t)),e.e164=t=>e.check(ya(ts,t)),e.datetime=t=>e.check(ho(t)),e.date=t=>e.check(_o(t)),e.time=t=>e.check(yo(t)),e.duration=t=>e.check(xo(t))});function Lo(e){return Qi(Io,e)}var $=A(`ZodStringFormat`,(e,t)=>{G.init(e,t),Fo.init(e,t)}),Ro=A(`ZodEmail`,(e,t)=>{qr.init(e,t),$.init(e,t)}),zo=A(`ZodGUID`,(e,t)=>{Gr.init(e,t),$.init(e,t)}),Bo=A(`ZodUUID`,(e,t)=>{Kr.init(e,t),$.init(e,t)}),Vo=A(`ZodURL`,(e,t)=>{Jr.init(e,t),$.init(e,t)}),Ho=A(`ZodEmoji`,(e,t)=>{Yr.init(e,t),$.init(e,t)}),Uo=A(`ZodNanoID`,(e,t)=>{Xr.init(e,t),$.init(e,t)}),Wo=A(`ZodCUID`,(e,t)=>{Zr.init(e,t),$.init(e,t)}),Go=A(`ZodCUID2`,(e,t)=>{Qr.init(e,t),$.init(e,t)}),Ko=A(`ZodULID`,(e,t)=>{$r.init(e,t),$.init(e,t)}),qo=A(`ZodXID`,(e,t)=>{ei.init(e,t),$.init(e,t)}),Jo=A(`ZodKSUID`,(e,t)=>{ti.init(e,t),$.init(e,t)}),Yo=A(`ZodIPv4`,(e,t)=>{oi.init(e,t),$.init(e,t)}),Xo=A(`ZodIPv6`,(e,t)=>{si.init(e,t),$.init(e,t)}),Zo=A(`ZodCIDRv4`,(e,t)=>{ci.init(e,t),$.init(e,t)}),Qo=A(`ZodCIDRv6`,(e,t)=>{li.init(e,t),$.init(e,t)}),$o=A(`ZodBase64`,(e,t)=>{di.init(e,t),$.init(e,t)}),es=A(`ZodBase64URL`,(e,t)=>{pi.init(e,t),$.init(e,t)}),ts=A(`ZodE164`,(e,t)=>{mi.init(e,t),$.init(e,t)}),ns=A(`ZodJWT`,(e,t)=>{gi.init(e,t),$.init(e,t)}),rs=A(`ZodUnknown`,(e,t)=>{_i.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function is(){return Ta(rs)}var as=A(`ZodNever`,(e,t)=>{vi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Za(e,t,n,r)});function os(e){return Ea(as,e)}var ss=A(`ZodArray`,(e,t)=>{bi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>to(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(q(t,n)),e.nonempty=t=>e.check(q(1,t)),e.max=(t,n)=>e.check(Da(t,n)),e.length=(t,n)=>e.check(Oa(t,n)),e.unwrap=()=>e.element});function cs(e,t){return Ba(ss,e,t)}var ls=A(`ZodObject`,(e,t)=>{Ti.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>no(e,t,n,r),N(e,`shape`,()=>t.shape),e.keyof=()=>gs(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:is()}),e.loose=()=>e.clone({...e._zod.def,catchall:is()}),e.strict=()=>e.clone({...e._zod.def,catchall:os()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>jn(e,t),e.safeExtend=t=>Mn(e,t),e.merge=t=>Nn(e,t),e.pick=t=>kn(e,t),e.omit=t=>An(e,t),e.partial=(...t)=>Pn(ys,e,t[0]),e.required=(...t)=>Fn(ks,e,t[0])});function us(e,t){return new ls({type:`object`,shape:e??{},...z(t)})}var ds=A(`ZodUnion`,(e,t)=>{Di.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ro(e,t,n,r),e.options=t.options});function fs(e,t){return new ds({type:`union`,options:e,...z(t)})}var ps=A(`ZodIntersection`,(e,t)=>{Oi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>io(e,t,n,r)});function ms(e,t){return new ps({type:`intersection`,left:e,right:t})}var hs=A(`ZodEnum`,(e,t)=>{ji.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qa(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new hs({...t,checks:[],...z(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new hs({...t,checks:[],...z(r),entries:i})}});function gs(e,t){return new hs({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...z(t)})}var _s=A(`ZodTransform`,(e,t)=>{Mi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eo(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new pn(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(H(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(H(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function vs(e){return new _s({type:`transform`,transform:e})}var ys=A(`ZodOptional`,(e,t)=>{Pi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>po(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function bs(e){return new ys({type:`optional`,innerType:e})}var xs=A(`ZodExactOptional`,(e,t)=>{Fi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>po(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ss(e){return new xs({type:`optional`,innerType:e})}var Cs=A(`ZodNullable`,(e,t)=>{Ii.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ao(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ws(e){return new Cs({type:`nullable`,innerType:e})}var Ts=A(`ZodDefault`,(e,t)=>{Li.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>so(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Es(e,t){return new Ts({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():En(t)}})}var Ds=A(`ZodPrefault`,(e,t)=>{zi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>co(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Os(e,t){return new Ds({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():En(t)}})}var ks=A(`ZodNonOptional`,(e,t)=>{Bi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function As(e,t){return new ks({type:`nonoptional`,innerType:e,...z(t)})}var js=A(`ZodCatch`,(e,t)=>{Hi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ms(e,t){return new js({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Ns=A(`ZodPipe`,(e,t)=>{Ui.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uo(e,t,n,r),e.in=t.in,e.out=t.out});function Ps(e,t){return new Ns({type:`pipe`,in:e,out:t})}var Fs=A(`ZodReadonly`,(e,t)=>{Gi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Is(e){return new Fs({type:`readonly`,innerType:e})}var Ls=A(`ZodCustom`,(e,t)=>{qi.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$a(e,t,n,r)});function Rs(e,t={}){return Va(Ls,e,t)}function zs(e){return Ha(e)}var Bs=(0,c.createContext)(null);function Vs({children:e}){let[t,n]=(0,c.useState)(!1),[r,i]=(0,c.useState)(null),[a,o]=(0,c.useState)(`Artifacts`);return(0,l.jsx)(Bs.Provider,{value:{isOpen:t,onOpen:()=>n(!0),onClose:()=>n(!1),content:r,setContent:i,title:a,setTitle:o},children:e})}var Hs=()=>(0,c.useContext)(Bs)||{isOpen:!1,onOpen:()=>{},onClose:()=>{},content:null,setContent:()=>{},title:`Artifacts`,setTitle:()=>{}};function Us({markdown:e}){return(0,l.jsx)(`div`,{className:`report-artifact`,children:(0,l.jsx)(`div`,{className:`prose prose-sm max-w-none`,children:(0,l.jsx)(`div`,{className:`whitespace-pre-wrap`,dangerouslySetInnerHTML:{__html:e.replace(/\n/g,`<br />`)}})})})}var Ws=us({title:Lo().describe(`Title of the report.`),reportContent:Lo().describe(`Markdown content of the report.`)});function Gs({title:e,reportContent:t}){let n=Hs(),r=()=>{n.setTitle(e),n.setContent((0,l.jsx)(Us,{markdown:t})),n.onOpen()};return(0,l.jsx)(`div`,{onClick:r,className:`erica-report-card`,children:(0,l.jsxs)(`div`,{className:`erica-report-content-wrapper`,children:[(0,l.jsx)(`div`,{className:`erica-report-icon`,children:(0,l.jsx)(St,{className:`erica-icon-md`})}),(0,l.jsxs)(`div`,{className:`erica-report-content`,children:[(0,l.jsx)(`span`,{className:`erica-report-title`,children:e}),(0,l.jsx)(`span`,{className:`erica-report-subtitle`,children:`Business Report`})]}),(0,l.jsx)(`button`,{onClick:e=>{e.stopPropagation(),r()},className:`erica-report-button`,children:`Show Report`})]})})}var Ks=()=>{(0,d.useComponent)({name:`showReport`,description:`Display a report from markdown with erica report syntax.`,parameters:Ws,render:Gs},[])},qs=new qe({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1,staleTime:3e4}}});function Js({threadId:e,handleNewChat:t,handleThreadSelect:n}){return Ks(),(0,l.jsx)(f.CopilotSidebar,{labels:{initial:`Hi! How can I help you today?
45
45
 
46
46
  You can:
47
47
  - Ask me questions
48
48
  - Upload files using the attachment icon
49
- - Drag & drop files to attach`},Input:(0,c.useCallback)(t=>(0,l.jsx)(on,{...t,threadId:e}),[e]),Header:(0,c.useCallback)(()=>(0,l.jsx)(fn,{onNewChat:t,onThreadSelect:n}),[t,n])})}function Ys({runtimeUrl:e,widgetToken:t}){let[n,r]=(0,c.useState)(void 0),i=(0,c.useMemo)(()=>{let t=new URL(e),n=t.pathname.split(`/`).filter(Boolean);return n.length>2&&n.pop(),t.pathname=`/`+n.join(`/`),t.toString()},[e]);(0,c.useMemo)(()=>{$t(i,t)},[i,t]);let a=(0,c.useCallback)(()=>{r(void 0),console.log(`New chat started`)},[]),o=(0,c.useCallback)(e=>{r(e),console.log(`Thread selected:`,e)},[]);return(0,l.jsx)(Xe,{client:qs,children:(0,l.jsx)(d.CopilotChatConfigurationProvider,{isModalDefaultOpen:!0,children:(0,l.jsx)(`div`,{className:`h-full w-full`,children:(0,l.jsx)(u.CopilotKit,{runtimeUrl:e,headers:{Authorization:`Bearer ${t}`},properties:{agent:`platform:ultimate`},threadId:n,children:(0,l.jsx)(Js,{threadId:n,handleNewChat:a,handleThreadSelect:o})})})})})}function Xs(){let{isOpen:e,onClose:t,content:n,title:r}=Hs(),[i,a]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{e?setTimeout(()=>a(!0),10):a(!1)},[e]),e?(0,l.jsxs)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-start`,children:[(0,l.jsx)(`div`,{className:`absolute inset-0 bg-black/50 transition-opacity duration-300 ${i?`opacity-100`:`opacity-0`}`,onClick:t}),(0,l.jsxs)(`div`,{className:`relative w-full max-w-5xl h-full bg-white shadow-2xl flex flex-col transform transition-transform duration-300 ease-out ${i?`translate-x-0`:`-translate-x-full`}`,children:[(0,l.jsxs)(`div`,{className:`flex items-center justify-between p-6 border-b border-gray-200 bg-white`,children:[(0,l.jsx)(`h2`,{className:`text-2xl font-bold text-gray-900`,children:r}),(0,l.jsx)(`button`,{onClick:t,className:`p-2 hover:bg-gray-100 rounded-lg transition-colors`,"aria-label":`Close drawer`,children:(0,l.jsx)(Tt,{className:`w-6 h-6 text-gray-500`})})]}),(0,l.jsx)(`div`,{className:`flex-1 overflow-y-auto p-6 bg-gray-50`,children:n})]})]}):null}exports.ArtifactProvider=Vs,exports.ChatArtifact=Xs,exports.EricaChat=Ys;
49
+ - Drag & drop files to attach`},Input:(0,c.useCallback)(t=>(0,l.jsx)(on,{...t,threadId:e}),[e]),Header:(0,c.useCallback)(()=>(0,l.jsx)(fn,{onNewChat:t,onThreadSelect:n}),[t,n])})}function Ys({runtimeUrl:e,widgetToken:t}){let[n,r]=(0,c.useState)(void 0),i=(0,c.useMemo)(()=>{let t=new URL(e),n=t.pathname.split(`/`).filter(Boolean);return n.length>2&&n.pop(),t.pathname=`/`+n.join(`/`),t.toString()},[e]);(0,c.useMemo)(()=>{$t(i,t)},[i,t]);let a=(0,c.useCallback)(()=>{r(void 0),console.log(`New chat started`)},[]),o=(0,c.useCallback)(e=>{r(e),console.log(`Thread selected:`,e)},[]);return(0,l.jsx)(Xe,{client:qs,children:(0,l.jsx)(d.CopilotChatConfigurationProvider,{isModalDefaultOpen:!0,children:(0,l.jsx)(`div`,{className:`h-full w-full`,children:(0,l.jsx)(u.CopilotKit,{runtimeUrl:e,headers:{Authorization:`Bearer ${t}`},properties:{agent:`platform:ultimate`},threadId:n,enableInspector:!1,children:(0,l.jsx)(Js,{threadId:n,handleNewChat:a,handleThreadSelect:o})})})})})}function Xs(){let{isOpen:e,onClose:t,content:n,title:r}=Hs(),[i,a]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{e?setTimeout(()=>a(!0),10):a(!1)},[e]),e?(0,l.jsxs)(`div`,{className:`erica-artifact-container`,children:[(0,l.jsx)(`div`,{className:`erica-artifact-backdrop ${i?`erica-artifact-backdrop--visible`:``}`,onClick:t}),(0,l.jsxs)(`div`,{className:`erica-artifact-drawer ${i?`erica-artifact-drawer--open`:``}`,children:[(0,l.jsxs)(`div`,{className:`erica-artifact-header`,children:[(0,l.jsx)(`h2`,{className:`erica-artifact-title`,children:r}),(0,l.jsx)(`button`,{onClick:t,className:`erica-artifact-close-button`,"aria-label":`Close drawer`,children:(0,l.jsx)(Tt,{className:`erica-icon-md`})})]}),(0,l.jsx)(`div`,{className:`erica-artifact-body`,children:n})]})]}):null}exports.ArtifactProvider=Vs,exports.ChatArtifact=Xs,exports.EricaChat=Ys;
50
50
  //# sourceMappingURL=index.cjs.map