@runtypelabs/persona 4.3.1 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/codegen.cjs +1 -1
- package/dist/codegen.js +1 -1
- package/dist/index.cjs +27 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.global.js +25 -25
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +29 -29
- package/dist/index.js.map +1 -1
- package/dist/launcher.global.js +2 -2
- package/dist/launcher.global.js.map +1 -1
- package/dist/smart-dom-reader.d.cts +6 -0
- package/dist/smart-dom-reader.d.ts +6 -0
- package/dist/theme-editor-preview.cjs +28 -28
- package/dist/theme-editor-preview.d.cts +6 -0
- package/dist/theme-editor-preview.d.ts +6 -0
- package/dist/theme-editor-preview.js +26 -26
- package/dist/theme-editor.d.cts +6 -0
- package/dist/theme-editor.d.ts +6 -0
- package/dist/widget.css +24 -0
- package/package.json +1 -1
- package/src/components/event-stream-view.test.ts +23 -22
- package/src/components/event-stream-view.ts +25 -47
- package/src/components/launcher.ts +11 -1
- package/src/components/panel.ts +10 -6
- package/src/styles/widget.css +24 -0
- package/src/types.ts +6 -0
- package/src/ui.ts +9 -0
package/dist/launcher.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var AgentWidgetLauncher=(()=>{var Y=Object.defineProperty;var ar=Object.getOwnPropertyDescriptor;var or=Object.getOwnPropertyNames;var tr=Object.prototype.hasOwnProperty;var rr=(a,o)=>{for(var e in o)Y(a,e,{get:o[e],enumerable:!0})},sr=(a,o,e,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of or(o))!tr.call(a,r)&&r!==e&&Y(a,r,{get:()=>o[r],enumerable:!(s=ar(o,r))||s.enumerable});return a};var lr=a=>sr(Y({},"__esModule",{value:!0}),a);var Mr={};rr(Mr,{CRITICAL_LAUNCHER_ATTR:()=>$t,mount:()=>kr});var Gt=(a,o)=>{let e=document.createElement(a);return o&&(e.className=o),e};var E={"bottom-right":"persona-bottom-6 persona-right-6","bottom-left":"persona-bottom-6 persona-left-6","top-right":"persona-top-6 persona-right-6","top-left":"persona-top-6 persona-left-6"};var Nt=a=>{var o,e;return((e=(o=a==null?void 0:a.launcher)==null?void 0:o.mountMode)!=null?e:"floating")==="docked"};var $=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]];var ee=[["path",{d:"M12 5v14"}],["path",{d:"m19 12-7 7-7-7"}]];var ae=[["path",{d:"m12 19-7-7 7-7"}],["path",{d:"M19 12H5"}]];var oe=[["path",{d:"M5 12h14"}],["path",{d:"m12 5 7 7-7 7"}]];var te=[["path",{d:"M7 7h10v10"}],["path",{d:"M7 17 17 7"}]];var re=[["path",{d:"m5 12 7-7 7 7"}],["path",{d:"M12 19V5"}]];var se=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8"}]];var le=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M4.929 4.929 19.07 19.071"}]];var fe=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"}]];var de=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z"}]];var pe=[["path",{d:"M12 8V4H8"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}],["path",{d:"M2 14h2"}],["path",{d:"M20 14h2"}],["path",{d:"M15 13v2"}],["path",{d:"M9 13v2"}]];var ne=[["path",{d:"M12 10h.01"}],["path",{d:"M12 14h.01"}],["path",{d:"M12 6h.01"}],["path",{d:"M16 10h.01"}],["path",{d:"M16 14h.01"}],["path",{d:"M16 6h.01"}],["path",{d:"M8 10h.01"}],["path",{d:"M8 14h.01"}],["path",{d:"M8 6h.01"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2"}]];var ue=[["path",{d:"M8 2v4"}],["path",{d:"M16 2v4"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}],["path",{d:"M3 10h18"}],["path",{d:"M8 14h.01"}],["path",{d:"M12 14h.01"}],["path",{d:"M16 14h.01"}],["path",{d:"M8 18h.01"}],["path",{d:"M12 18h.01"}],["path",{d:"M16 18h.01"}]];var ie=[["path",{d:"M8 2v4"}],["path",{d:"M16 2v4"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}],["path",{d:"M3 10h18"}]];var me=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z"}],["circle",{cx:"12",cy:"13",r:"3"}]];var ce=[["path",{d:"M20 6 9 17l-5-5"}]];var xe=[["path",{d:"m6 9 6 6 6-6"}]];var he=[["path",{d:"m15 18-6-6 6-6"}]];var ge=[["path",{d:"m9 18 6-6-6-6"}]];var Ce=[["path",{d:"m18 15-6-6-6 6"}]];var I=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m9 12 2 2 4-4"}]];var W=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m15 9-6 6"}],["path",{d:"m9 9 6 6"}]];var be=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4"}],["path",{d:"M21 14H11"}],["path",{d:"m15 10-4 4 4 4"}]];var ye=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}]];var Se=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6l4 2"}]];var we=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]];var ke=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10"}]];var Me=[["line",{x1:"12",x2:"12",y1:"2",y2:"22"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"}]];var Ae=[["path",{d:"M12 15V3"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}],["path",{d:"m7 10 5 5 5-5"}]];var V=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"12",cy:"5",r:"1"}],["circle",{cx:"12",cy:"19",r:"1"}]];var z=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]];var ve=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"}],["path",{d:"m2 2 20 20"}]];var Te=[["path",{d:"M15 3h6v6"}],["path",{d:"M10 14 21 3"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}]];var Pe=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}],["circle",{cx:"12",cy:"12",r:"3"}]];var Be=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 12.5 8 15l2 2.5"}],["path",{d:"m14 12.5 2 2.5-2 2.5"}]];var Le=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M8 13h2"}],["path",{d:"M14 13h2"}],["path",{d:"M8 17h2"}],["path",{d:"M14 17h2"}]];var Re=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 9H8"}],["path",{d:"M16 13H8"}],["path",{d:"M16 17H8"}]];var Fe=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}]];var De=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1"}]];var He=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M7 3v18"}],["path",{d:"M3 7.5h4"}],["path",{d:"M3 12h18"}],["path",{d:"M3 16.5h4"}],["path",{d:"M17 3v18"}],["path",{d:"M17 7.5h4"}],["path",{d:"M17 16.5h4"}]];var qe=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528"}]];var Ue=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"}]];var Oe=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"}]];var G=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z"}]];var Ee=[["path",{d:"M12 7v14"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1"}]];var Ie=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{d:"M2 12h20"}]];var We=[["line",{x1:"4",x2:"20",y1:"9",y2:"9"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21"}]];var Ve=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3"}]];var ze=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"}]];var Ge=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}],["path",{d:"M3 3v5h5"}],["path",{d:"M12 7v5l4 2"}]];var N=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}]];var Ne=[["path",{d:"M16 5h6"}],["path",{d:"M19 2v6"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"}],["circle",{cx:"9",cy:"9",r:"2"}]];var Xe=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}],["circle",{cx:"9",cy:"9",r:"2"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"}]];var Ke=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 16v-4"}],["path",{d:"M12 8h.01"}]];var _e=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4"}],["path",{d:"m21 2-9.6 9.6"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5"}]];var Ze=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}]];var X=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56"}]];var je=[["path",{d:"M12 2v4"}],["path",{d:"m16.2 7.8 2.9-2.9"}],["path",{d:"M18 12h4"}],["path",{d:"m16.2 16.2 2.9 2.9"}],["path",{d:"M12 18v4"}],["path",{d:"m4.9 19.1 2.9-2.9"}],["path",{d:"M2 12h4"}],["path",{d:"m4.9 4.9 2.9 2.9"}]];var Qe=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4"}]];var Je=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}]];var Ye=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"}],["circle",{cx:"12",cy:"10",r:"3"}]];var $e=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"}]];var ea=[["path",{d:"M4 5h16"}],["path",{d:"M4 12h16"}],["path",{d:"M4 19h16"}]];var aa=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"}]];var oa=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"}]];var ta=[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]];var ra=[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"}]];var sa=[["path",{d:"M5 12h14"}]];var la=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21"}]];var fa=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]];var da=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z"}],["path",{d:"M12 22V12"}],["polyline",{points:"3.29 7 12 12 20.71 7"}],["path",{d:"m7.5 4.27 9 5.15"}]];var pa=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"}]];var na=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1"}]];var ua=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]];var ia=[["line",{x1:"19",x2:"5",y1:"5",y2:"19"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5"}]];var ma=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384"}]];var ca=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"}]];var xa=[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]];var ha=[["path",{d:"M12 17V7"}],["path",{d:"M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8"}],["path",{d:"M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z"}]];var ga=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}],["path",{d:"M8 16H3v5"}]];var Ca=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}]];var ba=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7"}]];var ya=[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]];var Sa=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}],["path",{d:"m21.854 2.147-10.94 10.939"}]];var wa=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"}],["circle",{cx:"12",cy:"12",r:"3"}]];var ka=[["path",{d:"M12 2v13"}],["path",{d:"m16 6-4-4-4 4"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"}]];var Ma=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}],["path",{d:"M12 8v4"}],["path",{d:"M12 16h.01"}]];var Aa=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}],["path",{d:"m9 12 2 2 4-4"}]];var K=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}],["path",{d:"m14.5 9.5-5 5"}],["path",{d:"m9.5 9.5 5 5"}]];var va=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}]];var Ta=[["path",{d:"M16 10a4 4 0 0 1-8 0"}],["path",{d:"M3.103 6.034h17.794"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z"}]];var Pa=[["circle",{cx:"8",cy:"21",r:"1"}],["circle",{cx:"19",cy:"21",r:"1"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12"}]];var Ba=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}],["path",{d:"M12 18h.01"}]];var _=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"}],["path",{d:"M20 2v4"}],["path",{d:"M22 4h-4"}],["circle",{cx:"4",cy:"20",r:"2"}]];var La=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]];var Ra=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"}]];var Fa=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05"}]];var Da=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]];var Ha=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor"}]];var qa=[["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z"}],["path",{d:"M17 14V2"}]];var Ua=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"}],["path",{d:"M7 10v12"}]];var Oa=[["line",{x1:"10",x2:"14",y1:"2",y2:"2"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11"}],["circle",{cx:"12",cy:"14",r:"8"}]];var Ea=[["path",{d:"M10 11v6"}],["path",{d:"M14 11v6"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]];var Ia=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]];var Z=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}],["path",{d:"M12 9v4"}],["path",{d:"M12 17h.01"}]];var Wa=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2"}],["path",{d:"M15 18H9"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14"}],["circle",{cx:"17",cy:"18",r:"2"}],["circle",{cx:"7",cy:"18",r:"2"}]];var Va=[["path",{d:"M12 3v12"}],["path",{d:"m17 8-5-5-5 5"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}]];var za=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}],["circle",{cx:"12",cy:"7",r:"4"}]];var Ga=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z"}],["path",{d:"M16 9a5 5 0 0 1 0 6"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728"}]];var Na=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15"}]];var Xa=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4"}]];var Ka=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];var _a=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"}]];var fr={activity:$,"arrow-down":ee,"arrow-up":re,"arrow-up-right":te,bot:pe,"chevron-down":xe,"chevron-up":Ce,"chevron-right":ge,"chevron-left":he,check:ce,clipboard:ye,"clipboard-copy":be,copy:we,file:Fe,"file-code":Be,"file-spreadsheet":Le,"file-text":Re,"image-plus":Ne,loader:je,"loader-circle":X,mic:ta,paperclip:pa,"refresh-cw":ga,search:ya,send:Sa,"shield-alert":Ma,"shield-check":Aa,"shield-x":K,square:La,"thumbs-down":qa,"thumbs-up":Ua,upload:Va,"volume-2":Ga,x:Ka,user:za,mail:Je,phone:ma,calendar:ie,clock:Se,building:ne,"map-pin":Ye,lock:Qe,key:_e,"credit-card":ke,"at-sign":se,hash:We,globe:Ie,link:Ze,"circle-check":I,"circle-x":W,"triangle-alert":Z,info:Ke,ban:le,shield:va,"arrow-left":ae,"arrow-right":oe,"external-link":Te,ellipsis:z,"ellipsis-vertical":V,menu:ea,house:N,plus:xa,minus:sa,pencil:ua,trash:Ia,"trash-2":Ea,save:ba,download:Ae,share:ka,funnel:G,settings:wa,"rotate-cw":Ca,maximize:$e,minimize:ra,"shopping-cart":Pa,"shopping-bag":Ta,package:da,truck:Wa,tag:Ha,gift:Ee,receipt:ha,wallet:Xa,store:Fa,"dollar-sign":Me,percent:ia,play:ca,pause:na,"volume-x":Na,camera:me,image:Xe,film:He,headphones:Ve,"message-circle":aa,"message-square":oa,bell:fe,heart:ze,star:Ra,eye:Pe,"eye-off":ve,bookmark:de,"calendar-days":ue,history:Ge,timer:Oa,folder:Oe,"folder-open":Ue,files:De,sparkles:_,zap:_a,sun:Da,moon:fa,flag:qe,monitor:la,smartphone:Ba},Za=(a,o=24,e="currentColor",s=2)=>{let r=fr[a];return r?dr(r,o,e,s):(console.warn(`Lucide icon "${a}" is not in the Persona registry. Add it to packages/widget/src/utils/icons.ts (see docs/icon-registry-shortlist.md).`),null)};function dr(a,o,e,s){if(!Array.isArray(a))return null;let r=document.createElementNS("http://www.w3.org/2000/svg","svg");return r.setAttribute("width",String(o)),r.setAttribute("height",String(o)),r.setAttribute("viewBox","0 0 24 24"),r.setAttribute("fill","none"),r.setAttribute("stroke",e),r.setAttribute("stroke-width",String(s)),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-linejoin","round"),r.setAttribute("aria-hidden","true"),a.forEach(d=>{if(!Array.isArray(d)||d.length<2)return;let l=d[0],u=d[1];if(!u)return;let x=document.createElementNS("http://www.w3.org/2000/svg",l);Object.entries(u).forEach(([h,i])=>{h!=="stroke"&&x.setAttribute(h,String(i))}),r.appendChild(x)}),r}var ja=1e5,Gd=ja+1;var Xt=(a,o)=>{let e=Gt("button");e.type="button",e.innerHTML=`
|
|
1
|
+
"use strict";var AgentWidgetLauncher=(()=>{var Y=Object.defineProperty;var ar=Object.getOwnPropertyDescriptor;var or=Object.getOwnPropertyNames;var tr=Object.prototype.hasOwnProperty;var rr=(a,o)=>{for(var e in o)Y(a,e,{get:o[e],enumerable:!0})},sr=(a,o,e,l)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of or(o))!tr.call(a,r)&&r!==e&&Y(a,r,{get:()=>o[r],enumerable:!(l=ar(o,r))||l.enumerable});return a};var lr=a=>sr(Y({},"__esModule",{value:!0}),a);var Mr={};rr(Mr,{CRITICAL_LAUNCHER_ATTR:()=>$t,mount:()=>kr});var Gt=(a,o)=>{let e=document.createElement(a);return o&&(e.className=o),e};var E={"bottom-right":"persona-bottom-6 persona-right-6","bottom-left":"persona-bottom-6 persona-left-6","top-right":"persona-top-6 persona-right-6","top-left":"persona-top-6 persona-left-6"};var Nt=a=>{var o,e;return((e=(o=a==null?void 0:a.launcher)==null?void 0:o.mountMode)!=null?e:"floating")==="docked"};var $=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]];var ee=[["path",{d:"M12 5v14"}],["path",{d:"m19 12-7 7-7-7"}]];var ae=[["path",{d:"m12 19-7-7 7-7"}],["path",{d:"M19 12H5"}]];var oe=[["path",{d:"M5 12h14"}],["path",{d:"m12 5 7 7-7 7"}]];var te=[["path",{d:"M7 7h10v10"}],["path",{d:"M7 17 17 7"}]];var re=[["path",{d:"m5 12 7-7 7 7"}],["path",{d:"M12 19V5"}]];var se=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8"}]];var le=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M4.929 4.929 19.07 19.071"}]];var fe=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"}]];var de=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z"}]];var pe=[["path",{d:"M12 8V4H8"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}],["path",{d:"M2 14h2"}],["path",{d:"M20 14h2"}],["path",{d:"M15 13v2"}],["path",{d:"M9 13v2"}]];var ne=[["path",{d:"M12 10h.01"}],["path",{d:"M12 14h.01"}],["path",{d:"M12 6h.01"}],["path",{d:"M16 10h.01"}],["path",{d:"M16 14h.01"}],["path",{d:"M16 6h.01"}],["path",{d:"M8 10h.01"}],["path",{d:"M8 14h.01"}],["path",{d:"M8 6h.01"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2"}]];var ue=[["path",{d:"M8 2v4"}],["path",{d:"M16 2v4"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}],["path",{d:"M3 10h18"}],["path",{d:"M8 14h.01"}],["path",{d:"M12 14h.01"}],["path",{d:"M16 14h.01"}],["path",{d:"M8 18h.01"}],["path",{d:"M12 18h.01"}],["path",{d:"M16 18h.01"}]];var ie=[["path",{d:"M8 2v4"}],["path",{d:"M16 2v4"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}],["path",{d:"M3 10h18"}]];var me=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z"}],["circle",{cx:"12",cy:"13",r:"3"}]];var ce=[["path",{d:"M20 6 9 17l-5-5"}]];var xe=[["path",{d:"m6 9 6 6 6-6"}]];var he=[["path",{d:"m15 18-6-6 6-6"}]];var ge=[["path",{d:"m9 18 6-6-6-6"}]];var Ce=[["path",{d:"m18 15-6-6-6 6"}]];var I=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m9 12 2 2 4-4"}]];var W=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m15 9-6 6"}],["path",{d:"m9 9 6 6"}]];var be=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4"}],["path",{d:"M21 14H11"}],["path",{d:"m15 10-4 4 4 4"}]];var ye=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}]];var Se=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6l4 2"}]];var we=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]];var ke=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10"}]];var Me=[["line",{x1:"12",x2:"12",y1:"2",y2:"22"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"}]];var Ae=[["path",{d:"M12 15V3"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}],["path",{d:"m7 10 5 5 5-5"}]];var V=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"12",cy:"5",r:"1"}],["circle",{cx:"12",cy:"19",r:"1"}]];var z=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]];var ve=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"}],["path",{d:"m2 2 20 20"}]];var Te=[["path",{d:"M15 3h6v6"}],["path",{d:"M10 14 21 3"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}]];var Pe=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}],["circle",{cx:"12",cy:"12",r:"3"}]];var Be=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 12.5 8 15l2 2.5"}],["path",{d:"m14 12.5 2 2.5-2 2.5"}]];var Le=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M8 13h2"}],["path",{d:"M14 13h2"}],["path",{d:"M8 17h2"}],["path",{d:"M14 17h2"}]];var Re=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 9H8"}],["path",{d:"M16 13H8"}],["path",{d:"M16 17H8"}]];var Fe=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}]];var De=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1"}]];var He=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M7 3v18"}],["path",{d:"M3 7.5h4"}],["path",{d:"M3 12h18"}],["path",{d:"M3 16.5h4"}],["path",{d:"M17 3v18"}],["path",{d:"M17 7.5h4"}],["path",{d:"M17 16.5h4"}]];var qe=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528"}]];var Ue=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"}]];var Oe=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"}]];var G=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z"}]];var Ee=[["path",{d:"M12 7v14"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1"}]];var Ie=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{d:"M2 12h20"}]];var We=[["line",{x1:"4",x2:"20",y1:"9",y2:"9"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21"}]];var Ve=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3"}]];var ze=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"}]];var Ge=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}],["path",{d:"M3 3v5h5"}],["path",{d:"M12 7v5l4 2"}]];var N=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}]];var Ne=[["path",{d:"M16 5h6"}],["path",{d:"M19 2v6"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"}],["circle",{cx:"9",cy:"9",r:"2"}]];var Xe=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}],["circle",{cx:"9",cy:"9",r:"2"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"}]];var Ke=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 16v-4"}],["path",{d:"M12 8h.01"}]];var _e=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4"}],["path",{d:"m21 2-9.6 9.6"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5"}]];var Ze=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}]];var X=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56"}]];var je=[["path",{d:"M12 2v4"}],["path",{d:"m16.2 7.8 2.9-2.9"}],["path",{d:"M18 12h4"}],["path",{d:"m16.2 16.2 2.9 2.9"}],["path",{d:"M12 18v4"}],["path",{d:"m4.9 19.1 2.9-2.9"}],["path",{d:"M2 12h4"}],["path",{d:"m4.9 4.9 2.9 2.9"}]];var Qe=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4"}]];var Je=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}]];var Ye=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"}],["circle",{cx:"12",cy:"10",r:"3"}]];var $e=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"}]];var ea=[["path",{d:"M4 5h16"}],["path",{d:"M4 12h16"}],["path",{d:"M4 19h16"}]];var aa=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"}]];var oa=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"}]];var ta=[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]];var ra=[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"}]];var sa=[["path",{d:"M5 12h14"}]];var la=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21"}]];var fa=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]];var da=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z"}],["path",{d:"M12 22V12"}],["polyline",{points:"3.29 7 12 12 20.71 7"}],["path",{d:"m7.5 4.27 9 5.15"}]];var pa=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"}]];var na=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1"}]];var ua=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]];var ia=[["line",{x1:"19",x2:"5",y1:"5",y2:"19"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5"}]];var ma=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384"}]];var ca=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"}]];var xa=[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]];var ha=[["path",{d:"M12 17V7"}],["path",{d:"M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8"}],["path",{d:"M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z"}]];var ga=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}],["path",{d:"M8 16H3v5"}]];var Ca=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}]];var ba=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7"}]];var ya=[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]];var Sa=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}],["path",{d:"m21.854 2.147-10.94 10.939"}]];var wa=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"}],["circle",{cx:"12",cy:"12",r:"3"}]];var ka=[["path",{d:"M12 2v13"}],["path",{d:"m16 6-4-4-4 4"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"}]];var Ma=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}],["path",{d:"M12 8v4"}],["path",{d:"M12 16h.01"}]];var Aa=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}],["path",{d:"m9 12 2 2 4-4"}]];var K=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}],["path",{d:"m14.5 9.5-5 5"}],["path",{d:"m9.5 9.5 5 5"}]];var va=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}]];var Ta=[["path",{d:"M16 10a4 4 0 0 1-8 0"}],["path",{d:"M3.103 6.034h17.794"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z"}]];var Pa=[["circle",{cx:"8",cy:"21",r:"1"}],["circle",{cx:"19",cy:"21",r:"1"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12"}]];var Ba=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}],["path",{d:"M12 18h.01"}]];var _=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"}],["path",{d:"M20 2v4"}],["path",{d:"M22 4h-4"}],["circle",{cx:"4",cy:"20",r:"2"}]];var La=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]];var Ra=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"}]];var Fa=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05"}]];var Da=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]];var Ha=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor"}]];var qa=[["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z"}],["path",{d:"M17 14V2"}]];var Ua=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"}],["path",{d:"M7 10v12"}]];var Oa=[["line",{x1:"10",x2:"14",y1:"2",y2:"2"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11"}],["circle",{cx:"12",cy:"14",r:"8"}]];var Ea=[["path",{d:"M10 11v6"}],["path",{d:"M14 11v6"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]];var Ia=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]];var Z=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}],["path",{d:"M12 9v4"}],["path",{d:"M12 17h.01"}]];var Wa=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2"}],["path",{d:"M15 18H9"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14"}],["circle",{cx:"17",cy:"18",r:"2"}],["circle",{cx:"7",cy:"18",r:"2"}]];var Va=[["path",{d:"M12 3v12"}],["path",{d:"m17 8-5-5-5 5"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}]];var za=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}],["circle",{cx:"12",cy:"7",r:"4"}]];var Ga=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z"}],["path",{d:"M16 9a5 5 0 0 1 0 6"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728"}]];var Na=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15"}]];var Xa=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4"}]];var Ka=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];var _a=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"}]];var fr={activity:$,"arrow-down":ee,"arrow-up":re,"arrow-up-right":te,bot:pe,"chevron-down":xe,"chevron-up":Ce,"chevron-right":ge,"chevron-left":he,check:ce,clipboard:ye,"clipboard-copy":be,copy:we,file:Fe,"file-code":Be,"file-spreadsheet":Le,"file-text":Re,"image-plus":Ne,loader:je,"loader-circle":X,mic:ta,paperclip:pa,"refresh-cw":ga,search:ya,send:Sa,"shield-alert":Ma,"shield-check":Aa,"shield-x":K,square:La,"thumbs-down":qa,"thumbs-up":Ua,upload:Va,"volume-2":Ga,x:Ka,user:za,mail:Je,phone:ma,calendar:ie,clock:Se,building:ne,"map-pin":Ye,lock:Qe,key:_e,"credit-card":ke,"at-sign":se,hash:We,globe:Ie,link:Ze,"circle-check":I,"circle-x":W,"triangle-alert":Z,info:Ke,ban:le,shield:va,"arrow-left":ae,"arrow-right":oe,"external-link":Te,ellipsis:z,"ellipsis-vertical":V,menu:ea,house:N,plus:xa,minus:sa,pencil:ua,trash:Ia,"trash-2":Ea,save:ba,download:Ae,share:ka,funnel:G,settings:wa,"rotate-cw":Ca,maximize:$e,minimize:ra,"shopping-cart":Pa,"shopping-bag":Ta,package:da,truck:Wa,tag:Ha,gift:Ee,receipt:ha,wallet:Xa,store:Fa,"dollar-sign":Me,percent:ia,play:ca,pause:na,"volume-x":Na,camera:me,image:Xe,film:He,headphones:Ve,"message-circle":aa,"message-square":oa,bell:fe,heart:ze,star:Ra,eye:Pe,"eye-off":ve,bookmark:de,"calendar-days":ue,history:Ge,timer:Oa,folder:Oe,"folder-open":Ue,files:De,sparkles:_,zap:_a,sun:Da,moon:fa,flag:qe,monitor:la,smartphone:Ba},Za=(a,o=24,e="currentColor",l=2)=>{let r=fr[a];return r?dr(r,o,e,l):(console.warn(`Lucide icon "${a}" is not in the Persona registry. Add it to packages/widget/src/utils/icons.ts (see docs/icon-registry-shortlist.md).`),null)};function dr(a,o,e,l){if(!Array.isArray(a))return null;let r=document.createElementNS("http://www.w3.org/2000/svg","svg");return r.setAttribute("width",String(o)),r.setAttribute("height",String(o)),r.setAttribute("viewBox","0 0 24 24"),r.setAttribute("fill","none"),r.setAttribute("stroke",e),r.setAttribute("stroke-width",String(l)),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-linejoin","round"),r.setAttribute("aria-hidden","true"),a.forEach(d=>{if(!Array.isArray(d)||d.length<2)return;let s=d[0],u=d[1];if(!u)return;let x=document.createElementNS("http://www.w3.org/2000/svg",s);Object.entries(u).forEach(([h,i])=>{h!=="stroke"&&x.setAttribute(h,String(i))}),r.appendChild(x)}),r}var ja=1e5,Gd=ja+1;var Xt=(a,o)=>{let e=Gt("button");e.type="button",e.innerHTML=`
|
|
2
2
|
<span class="persona-inline-flex persona-items-center persona-justify-center persona-rounded-full persona-bg-persona-primary persona-text-white" data-role="launcher-icon">\u{1F4AC}</span>
|
|
3
3
|
<img data-role="launcher-image" class="persona-rounded-full persona-object-cover" alt="" style="display:none" />
|
|
4
4
|
<span class="persona-flex persona-min-w-0 persona-flex-1 persona-flex-col persona-items-start persona-text-left">
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<span class="persona-block persona-w-full persona-truncate persona-text-xs persona-text-persona-muted" data-role="launcher-subtitle"></span>
|
|
7
7
|
</span>
|
|
8
8
|
<span class="persona-ml-2 persona-grid persona-place-items-center persona-rounded-full persona-bg-persona-primary persona-text-persona-call-to-action" data-role="launcher-call-to-action-icon">\u2197</span>
|
|
9
|
-
`,e.addEventListener("click",o);let s=d=>{var k,M,A,v,T,P,B,L,R,F,D,H,q;let l=(k=d.launcher)!=null?k:{},u=Nt(d),x=e.querySelector("[data-role='launcher-title']");if(x){let m=(M=l.title)!=null?M:"Chat Assistant";x.textContent=m,x.setAttribute("title",m)}let h=e.querySelector("[data-role='launcher-subtitle']");if(h){let m=(A=l.subtitle)!=null?A:"Here to help you get answers fast";h.textContent=m,h.setAttribute("title",m)}let i=e.querySelector(".persona-flex-col");i&&(l.textHidden||u?i.style.display="none":i.style.display="");let f=e.querySelector("[data-role='launcher-icon']");if(f)if(l.agentIconHidden)f.style.display="none";else{let m=(v=l.agentIconSize)!=null?v:"40px";if(f.style.height=m,f.style.width=m,f.innerHTML="",l.agentIconName){let S=parseFloat(m)||24,C=Za(l.agentIconName,S*.6,"var(--persona-text-inverse, #ffffff)",2);C?(f.appendChild(C),f.style.display=""):(f.textContent=(T=l.agentIconText)!=null?T:"\u{1F4AC}",f.style.display="")}else l.iconUrl?f.style.display="none":(f.textContent=(P=l.agentIconText)!=null?P:"\u{1F4AC}",f.style.display="")}let n=e.querySelector("[data-role='launcher-image']");if(n){let m=(B=l.agentIconSize)!=null?B:"40px";n.style.height=m,n.style.width=m,l.iconUrl&&!l.agentIconName&&!l.agentIconHidden?(n.src=l.iconUrl,n.style.display="block"):n.style.display="none"}let p=e.querySelector("[data-role='launcher-call-to-action-icon']");if(p){let m=(L=l.callToActionIconSize)!=null?L:"32px";p.style.height=m,p.style.width=m,l.callToActionIconBackgroundColor?(p.style.backgroundColor=l.callToActionIconBackgroundColor,p.classList.remove("persona-bg-persona-primary")):(p.style.backgroundColor="",p.classList.add("persona-bg-persona-primary")),l.callToActionIconColor?(p.style.color=l.callToActionIconColor,p.classList.remove("persona-text-persona-call-to-action")):(p.style.color="",p.classList.add("persona-text-persona-call-to-action"));let S=0;if(l.callToActionIconPadding?(p.style.boxSizing="border-box",p.style.padding=l.callToActionIconPadding,S=(parseFloat(l.callToActionIconPadding)||0)*2):(p.style.boxSizing="",p.style.padding=""),l.callToActionIconHidden)p.style.display="none";else if(p.style.display=u?"none":"",p.innerHTML="",l.callToActionIconName){let C=parseFloat(m)||24,O=Math.max(C-S,8),U=Za(l.callToActionIconName,O,"currentColor",2);U?p.appendChild(U):p.textContent=(R=l.callToActionIconText)!=null?R:"\u2197"}else p.textContent=(F=l.callToActionIconText)!=null?F:"\u2197"}let c=l.position&&E[l.position]?E[l.position]:E["bottom-right"],b="persona-fixed persona-flex persona-items-center persona-gap-3 persona-rounded-launcher persona-bg-persona-surface persona-py-2.5 persona-pl-3 persona-pr-3 persona-transition hover:persona-translate-y-[-2px] persona-cursor-pointer",y="persona-relative persona-mt-4 persona-mb-4 persona-mx-auto persona-flex persona-items-center persona-justify-center persona-rounded-launcher persona-bg-persona-surface persona-transition hover:persona-translate-y-[-2px] persona-cursor-pointer";e.className=u?y:`${b} ${c}`,u||(e.style.zIndex=String((D=l.zIndex)!=null?D:ja));let g="1px solid var(--persona-border, #e5e7eb)",w="var(--persona-launcher-shadow, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1))";e.style.border=(H=l.border)!=null?H:g,e.style.boxShadow=l.shadow!==void 0?l.shadow.trim()===""?"none":l.shadow:w,u?(e.style.width="0",e.style.minWidth="0",e.style.maxWidth="0",e.style.padding="0",e.style.overflow="hidden",e.style.border="none",e.style.boxShadow="none"):(e.style.width="",e.style.minWidth="",e.style.maxWidth=(q=l.collapsedMaxWidth)!=null?q:"",e.style.justifyContent="",e.style.padding="",e.style.overflow="")},r=()=>{e.removeEventListener("click",o),e.remove()};return a&&s(a),{element:e,update:s,destroy:r}};var Kt=a=>typeof a=="object"&&a!==null&&!Array.isArray(a);function j(a,o){if(!a)return o;if(!o)return a;let e={...a};for(let[s,r]of Object.entries(o)){let d=e[s];Kt(d)&&Kt(r)?e[s]=j(d,r):e[s]=r}return e}var Qa="min(440px, calc(100vw - 24px))",_t="440px",Ja={enabled:!0,mountMode:"floating",dock:{side:"right",width:"420px"},title:"Chat Assistant",subtitle:"Here to help you get answers fast",agentIconText:"\u{1F4AC}",agentIconName:"bot",headerIconName:"bot",position:"bottom-right",width:Qa,heightOffset:0,autoExpand:!1,callToActionIconHidden:!1,agentIconSize:"40px",headerIconSize:"40px",closeButtonSize:"32px",closeButtonPaddingX:"0px",closeButtonPaddingY:"0px",callToActionIconName:"arrow-up-right",callToActionIconText:"",callToActionIconSize:"32px",callToActionIconPadding:"5px",callToActionIconColor:void 0,callToActionIconBackgroundColor:void 0,closeButtonBackgroundColor:"transparent",clearChat:{backgroundColor:"transparent",borderColor:"transparent",enabled:!0,placement:"inline",iconName:"refresh-cw",size:"32px",showTooltip:!0,tooltipText:"Clear chat",paddingX:"0px",paddingY:"0px"},headerIconHidden:!1,border:void 0,shadow:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)"};var pr={colors:{primary:{50:"#ffffff",100:"#f5f5f5",200:"#d4d4d4",300:"#a3a3a3",400:"#737373",500:"#171717",600:"#0f0f0f",700:"#0a0a0a",800:"#050505",900:"#030303",950:"#000000"},secondary:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},accent:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},success:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},warning:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},error:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},info:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"}},spacing:{0:"0px",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",8:"2rem",10:"2.5rem",12:"3rem",16:"4rem",20:"5rem",24:"6rem",32:"8rem",40:"10rem",48:"12rem",56:"14rem",64:"16rem"},typography:{fontFamily:{sans:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',serif:'Georgia, Cambria, "Times New Roman", Times, serif',mono:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem"},fontWeight:{normal:"400",medium:"500",semibold:"600",bold:"700"},lineHeight:{tight:"1.25",normal:"1.5",relaxed:"1.625"}},shadows:{none:"none",sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)"},borders:{none:"none",sm:"1px solid",md:"2px solid",lg:"4px solid"},radius:{none:"0px",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem",full:"9999px"}},nr={colors:{primary:"palette.colors.primary.500",secondary:"palette.colors.secondary.500",accent:"palette.colors.primary.600",surface:"palette.colors.gray.50",background:"palette.colors.gray.50",container:"palette.colors.gray.50",text:"palette.colors.gray.900",textMuted:"palette.colors.gray.500",textInverse:"palette.colors.gray.50",border:"palette.colors.gray.200",divider:"palette.colors.gray.200",interactive:{default:"palette.colors.primary.600",hover:"palette.colors.primary.700",focus:"palette.colors.primary.600",active:"palette.colors.primary.600",disabled:"palette.colors.gray.300"},feedback:{success:"palette.colors.success.500",warning:"palette.colors.warning.500",error:"palette.colors.error.500",info:"palette.colors.info.500"}},spacing:{xs:"palette.spacing.1",sm:"palette.spacing.2",md:"palette.spacing.4",lg:"palette.spacing.6",xl:"palette.spacing.8","2xl":"palette.spacing.10"},typography:{fontFamily:"palette.typography.fontFamily.sans",fontSize:"palette.typography.fontSize.base",fontWeight:"palette.typography.fontWeight.normal",lineHeight:"palette.typography.lineHeight.normal"}},ur={button:{primary:{background:"palette.colors.primary.500",foreground:"palette.colors.primary.50",borderRadius:"palette.radius.lg",padding:"semantic.spacing.md"},secondary:{background:"semantic.colors.surface",foreground:"semantic.colors.secondary",borderRadius:"palette.radius.lg",padding:"semantic.spacing.md"},ghost:{background:"transparent",foreground:"semantic.colors.text",borderRadius:"palette.radius.md",padding:"semantic.spacing.sm"}},input:{background:"palette.colors.gray.50",placeholder:"palette.colors.gray.400",borderRadius:"palette.radius.lg",padding:"semantic.spacing.md",focus:{border:"palette.colors.gray.400",ring:"palette.colors.gray.400"}},launcher:{background:"palette.colors.primary.500",foreground:"palette.colors.primary.50",border:"palette.colors.gray.200",size:"60px",iconSize:"28px",borderRadius:"palette.radius.full",shadow:"palette.shadows.lg"},panel:{width:Qa,maxWidth:_t,height:"600px",maxHeight:"calc(100vh - 80px)",borderRadius:"palette.radius.xl",shadow:"palette.shadows.xl"},header:{background:"palette.colors.primary.500",border:"palette.colors.primary.600",borderRadius:"palette.radius.xl palette.radius.xl 0 0",padding:"semantic.spacing.md",iconBackground:"palette.colors.primary.600",iconForeground:"palette.colors.primary.50",titleForeground:"palette.colors.primary.50",subtitleForeground:"palette.colors.primary.200",actionIconForeground:"palette.colors.primary.200"},message:{user:{background:"palette.colors.primary.500",text:"palette.colors.primary.50",borderRadius:"palette.radius.lg",shadow:"palette.shadows.sm"},assistant:{background:"palette.colors.gray.50",text:"palette.colors.gray.900",borderRadius:"palette.radius.lg",border:"palette.colors.gray.200",shadow:"palette.shadows.sm"},border:"semantic.colors.border"},introCard:{background:"semantic.colors.surface",borderRadius:"palette.radius.2xl",padding:"semantic.spacing.lg",shadow:"0 5px 15px rgba(15, 23, 42, 0.08)"},toolBubble:{shadow:"palette.shadows.sm"},reasoningBubble:{shadow:"palette.shadows.sm"},composer:{shadow:"palette.shadows.none"},markdown:{inlineCode:{background:"palette.colors.gray.50",foreground:"palette.colors.gray.900"},link:{foreground:"palette.colors.primary.600"},prose:{fontFamily:"inherit"},codeBlock:{background:"semantic.colors.container",borderColor:"semantic.colors.border",textColor:"inherit"},table:{headerBackground:"semantic.colors.container",borderColor:"semantic.colors.border"},hr:{color:"semantic.colors.divider"},blockquote:{borderColor:"palette.colors.gray.900",background:"transparent",textColor:"palette.colors.gray.500"}},collapsibleWidget:{container:"palette.colors.gray.50",surface:"semantic.colors.surface",border:"semantic.colors.border"},voice:{recording:{indicator:"palette.colors.error.500",background:"palette.colors.error.50",border:"palette.colors.error.200"},processing:{icon:"palette.colors.primary.500",background:"palette.colors.primary.50"},speaking:{icon:"palette.colors.success.500"}},approval:{requested:{background:"semantic.colors.surface",border:"semantic.colors.border",text:"palette.colors.gray.900",shadow:"0 1px 2px 0 rgba(11, 11, 11, 0.06), 0 2px 8px 0 rgba(11, 11, 11, 0.04)"},approve:{background:"semantic.colors.primary",foreground:"semantic.colors.textInverse",borderRadius:"palette.radius.md",padding:"semantic.spacing.sm"},deny:{background:"semantic.colors.container",foreground:"semantic.colors.text",borderRadius:"palette.radius.md",padding:"semantic.spacing.sm"}},attachment:{image:{background:"palette.colors.gray.100",border:"palette.colors.gray.200"}},scrollToBottom:{background:"components.button.primary.background",foreground:"components.button.primary.foreground",border:"semantic.colors.primary",size:"40px",borderRadius:"palette.radius.full",shadow:"palette.shadows.sm",padding:"0.5rem 0.875rem",gap:"0.5rem",fontSize:"0.875rem",iconSize:"14px"},artifact:{pane:{background:"semantic.colors.container",toolbarBackground:"semantic.colors.container"}}};function Ya(a,o){if(!o.startsWith("palette.")&&!o.startsWith("semantic.")&&!o.startsWith("components."))return o;let e=o.split("."),s=a;for(let r of e){if(s==null)return;s=s[r]}return typeof s=="string"&&(s.startsWith("palette.")||s.startsWith("semantic.")||s.startsWith("components."))?Ya(a,s):s}function Zt(a){let o={};function e(s,r){for(let[d,l]of Object.entries(s)){let u=`${r}.${d}`;if(typeof l=="string"){let x=Ya(a,l);x!==void 0&&(o[u]={path:u,value:x,type:r.includes("color")?"color":r.includes("spacing")?"spacing":r.includes("typography")?"typography":r.includes("shadow")?"shadow":r.includes("border")?"border":"color"})}else typeof l=="object"&&l!==null&&e(l,u)}}return e(a.palette,"palette"),e(a.semantic,"semantic"),e(a.components,"components"),o}function ir(a){let o=[],e=[];return a.palette||o.push({path:"palette",message:"Theme must include a palette",severity:"error"}),a.semantic||e.push({path:"semantic",message:"No semantic tokens defined - defaults will be used",severity:"warning"}),a.components||e.push({path:"components",message:"No component tokens defined - defaults will be used",severity:"warning"}),{valid:o.length===0,errors:o,warnings:e}}function jt(a,o){let e={...a};for(let[s,r]of Object.entries(o)){let d=e[s];d&&typeof d=="object"&&!Array.isArray(d)&&r&&typeof r=="object"&&!Array.isArray(r)?e[s]=jt(d,r):e[s]=r}return e}function mr(a,o){return o?jt(a,o):a}function Q(a,o={}){var r,d,l,u,x,h,i,f,n,p,c,b,y;let e={palette:pr,semantic:nr,components:ur},s={palette:{...e.palette,...a==null?void 0:a.palette,colors:{...e.palette.colors,...(r=a==null?void 0:a.palette)==null?void 0:r.colors},spacing:{...e.palette.spacing,...(d=a==null?void 0:a.palette)==null?void 0:d.spacing},typography:{...e.palette.typography,...(l=a==null?void 0:a.palette)==null?void 0:l.typography},shadows:{...e.palette.shadows,...(u=a==null?void 0:a.palette)==null?void 0:u.shadows},borders:{...e.palette.borders,...(x=a==null?void 0:a.palette)==null?void 0:x.borders},radius:{...e.palette.radius,...(h=a==null?void 0:a.palette)==null?void 0:h.radius}},semantic:{...e.semantic,...a==null?void 0:a.semantic,colors:{...e.semantic.colors,...(i=a==null?void 0:a.semantic)==null?void 0:i.colors,interactive:{...e.semantic.colors.interactive,...(n=(f=a==null?void 0:a.semantic)==null?void 0:f.colors)==null?void 0:n.interactive},feedback:{...e.semantic.colors.feedback,...(c=(p=a==null?void 0:a.semantic)==null?void 0:p.colors)==null?void 0:c.feedback}},spacing:{...e.semantic.spacing,...(b=a==null?void 0:a.semantic)==null?void 0:b.spacing},typography:{...e.semantic.typography,...(y=a==null?void 0:a.semantic)==null?void 0:y.typography}},components:mr(e.components,a==null?void 0:a.components)};if(o.validate!==!1){let g=ir(s);if(!g.valid)throw new Error(`Theme validation failed: ${g.errors.map(w=>w.message).join(", ")}`)}if(o.plugins)for(let g of o.plugins)s=g.transform(s);return s}function Qt(a){var b,y,g,w,k,M,A,v,T,P,B,L,R,F,D,H,q,m,S,C,O,U,eo,ao,oo,to,ro,so,lo,fo,po,no,uo,io,mo,co,xo,ho,go,Co,bo,yo,So,wo,ko,Mo,Ao,vo,To,Po,Bo,Lo,Ro,Fo,Do,Ho,qo,Uo,Oo,Eo,Io,Wo,Vo,zo,Go,No,Xo,Ko,_o,Zo,jo,Qo,Jo,Yo,$o,et,at,ot,tt,rt,st,lt,ft,dt,pt,nt,ut,it,mt,ct,xt,ht,gt,Ct,bt,yt,St,wt,kt,Mt,At,vt,Tt,Pt,Bt,Lt,Rt,Ft,Dt,Ht,qt,Ut,Ot,Et,It,Wt,Vt,zt;let o=Zt(a),e={};for(let[t,J]of Object.entries(o)){let er=t.replace(/\./g,"-");e[`--persona-${er}`]=J.value}e["--persona-primary"]=(b=e["--persona-semantic-colors-primary"])!=null?b:e["--persona-palette-colors-primary-500"],e["--persona-secondary"]=(y=e["--persona-semantic-colors-secondary"])!=null?y:e["--persona-palette-colors-secondary-500"],e["--persona-accent"]=(g=e["--persona-semantic-colors-accent"])!=null?g:e["--persona-palette-colors-accent-500"],e["--persona-surface"]=(w=e["--persona-semantic-colors-surface"])!=null?w:e["--persona-palette-colors-gray-50"],e["--persona-background"]=(k=e["--persona-semantic-colors-background"])!=null?k:e["--persona-palette-colors-gray-50"],e["--persona-container"]=(M=e["--persona-semantic-colors-container"])!=null?M:e["--persona-palette-colors-gray-100"],e["--persona-text"]=(A=e["--persona-semantic-colors-text"])!=null?A:e["--persona-palette-colors-gray-900"],e["--persona-text-muted"]=(v=e["--persona-semantic-colors-text-muted"])!=null?v:e["--persona-palette-colors-gray-500"],e["--persona-text-inverse"]=(T=e["--persona-semantic-colors-text-inverse"])!=null?T:e["--persona-palette-colors-gray-50"],e["--persona-border"]=(P=e["--persona-semantic-colors-border"])!=null?P:e["--persona-palette-colors-gray-200"],e["--persona-divider"]=(B=e["--persona-semantic-colors-divider"])!=null?B:e["--persona-palette-colors-gray-200"],e["--persona-muted"]=e["--persona-text-muted"],e["--persona-voice-recording-indicator"]=(L=e["--persona-components-voice-recording-indicator"])!=null?L:e["--persona-palette-colors-error-500"],e["--persona-voice-recording-bg"]=(R=e["--persona-components-voice-recording-background"])!=null?R:e["--persona-palette-colors-error-50"],e["--persona-voice-processing-icon"]=(F=e["--persona-components-voice-processing-icon"])!=null?F:e["--persona-palette-colors-primary-500"],e["--persona-voice-speaking-icon"]=(D=e["--persona-components-voice-speaking-icon"])!=null?D:e["--persona-palette-colors-success-500"],e["--persona-approval-bg"]=(H=e["--persona-components-approval-requested-background"])!=null?H:e["--persona-surface"],e["--persona-approval-border"]=(q=e["--persona-components-approval-requested-border"])!=null?q:e["--persona-border"],e["--persona-approval-text"]=(m=e["--persona-components-approval-requested-text"])!=null?m:e["--persona-palette-colors-gray-900"],e["--persona-approval-shadow"]=(S=e["--persona-components-approval-requested-shadow"])!=null?S:"0 1px 2px 0 rgba(11, 11, 11, 0.06), 0 2px 8px 0 rgba(11, 11, 11, 0.04)",e["--persona-approval-approve-bg"]=(C=e["--persona-components-approval-approve-background"])!=null?C:e["--persona-button-primary-bg"],e["--persona-approval-deny-bg"]=(O=e["--persona-components-approval-deny-background"])!=null?O:e["--persona-container"],e["--persona-attachment-image-bg"]=(U=e["--persona-components-attachment-image-background"])!=null?U:e["--persona-palette-colors-gray-100"],e["--persona-attachment-image-border"]=(eo=e["--persona-components-attachment-image-border"])!=null?eo:e["--persona-palette-colors-gray-200"],e["--persona-font-family"]=(ao=e["--persona-semantic-typography-fontFamily"])!=null?ao:e["--persona-palette-typography-fontFamily-sans"],e["--persona-font-size"]=(oo=e["--persona-semantic-typography-fontSize"])!=null?oo:e["--persona-palette-typography-fontSize-base"],e["--persona-font-weight"]=(to=e["--persona-semantic-typography-fontWeight"])!=null?to:e["--persona-palette-typography-fontWeight-normal"],e["--persona-line-height"]=(ro=e["--persona-semantic-typography-lineHeight"])!=null?ro:e["--persona-palette-typography-lineHeight-normal"],e["--persona-input-font-family"]=e["--persona-font-family"],e["--persona-input-font-weight"]=e["--persona-font-weight"],e["--persona-radius-sm"]=(so=e["--persona-palette-radius-sm"])!=null?so:"0.125rem",e["--persona-radius-md"]=(lo=e["--persona-palette-radius-md"])!=null?lo:"0.375rem",e["--persona-radius-lg"]=(fo=e["--persona-palette-radius-lg"])!=null?fo:"0.5rem",e["--persona-radius-xl"]=(po=e["--persona-palette-radius-xl"])!=null?po:"0.75rem",e["--persona-radius-full"]=(no=e["--persona-palette-radius-full"])!=null?no:"9999px",e["--persona-launcher-radius"]=(io=(uo=e["--persona-components-launcher-borderRadius"])!=null?uo:e["--persona-palette-radius-full"])!=null?io:"9999px",e["--persona-launcher-bg"]=(mo=e["--persona-components-launcher-background"])!=null?mo:e["--persona-primary"],e["--persona-launcher-fg"]=(co=e["--persona-components-launcher-foreground"])!=null?co:e["--persona-text-inverse"],e["--persona-launcher-border"]=(xo=e["--persona-components-launcher-border"])!=null?xo:e["--persona-border"],e["--persona-button-primary-bg"]=(ho=e["--persona-components-button-primary-background"])!=null?ho:e["--persona-primary"],e["--persona-button-primary-fg"]=(go=e["--persona-components-button-primary-foreground"])!=null?go:e["--persona-text-inverse"],e["--persona-button-radius"]=(bo=(Co=e["--persona-components-button-primary-borderRadius"])!=null?Co:e["--persona-palette-radius-full"])!=null?bo:"9999px",e["--persona-panel-radius"]=(So=(yo=e["--persona-components-panel-borderRadius"])!=null?yo:e["--persona-radius-xl"])!=null?So:"0.75rem",e["--persona-panel-border"]=(wo=e["--persona-components-panel-border"])!=null?wo:`1px solid ${e["--persona-border"]}`,e["--persona-panel-shadow"]=(Mo=(ko=e["--persona-components-panel-shadow"])!=null?ko:e["--persona-palette-shadows-xl"])!=null?Mo:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",e["--persona-launcher-shadow"]=(Ao=e["--persona-components-launcher-shadow"])!=null?Ao:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)",e["--persona-input-radius"]=(To=(vo=e["--persona-components-input-borderRadius"])!=null?vo:e["--persona-radius-lg"])!=null?To:"0.5rem",e["--persona-message-user-radius"]=(Bo=(Po=e["--persona-components-message-user-borderRadius"])!=null?Po:e["--persona-radius-lg"])!=null?Bo:"0.5rem",e["--persona-message-assistant-radius"]=(Ro=(Lo=e["--persona-components-message-assistant-borderRadius"])!=null?Lo:e["--persona-radius-lg"])!=null?Ro:"0.5rem",e["--persona-header-bg"]=(Fo=e["--persona-components-header-background"])!=null?Fo:e["--persona-surface"],e["--persona-header-border"]=(Do=e["--persona-components-header-border"])!=null?Do:e["--persona-divider"],e["--persona-header-icon-bg"]=(Ho=e["--persona-components-header-iconBackground"])!=null?Ho:e["--persona-primary"],e["--persona-header-icon-fg"]=(qo=e["--persona-components-header-iconForeground"])!=null?qo:e["--persona-text-inverse"],e["--persona-header-title-fg"]=(Uo=e["--persona-components-header-titleForeground"])!=null?Uo:e["--persona-primary"],e["--persona-header-subtitle-fg"]=(Oo=e["--persona-components-header-subtitleForeground"])!=null?Oo:e["--persona-text-muted"],e["--persona-header-action-icon-fg"]=(Eo=e["--persona-components-header-actionIconForeground"])!=null?Eo:e["--persona-muted"];let s=(Io=a.components)==null?void 0:Io.header;s!=null&&s.shadow&&(e["--persona-header-shadow"]=s.shadow),s!=null&&s.borderBottom&&(e["--persona-header-border-bottom"]=s.borderBottom);let r=(Wo=a.components)==null?void 0:Wo.introCard;e["--persona-intro-card-bg"]=(Vo=e["--persona-components-introCard-background"])!=null?Vo:e["--persona-surface"],e["--persona-intro-card-radius"]=(zo=e["--persona-components-introCard-borderRadius"])!=null?zo:"1rem",e["--persona-intro-card-padding"]=(Go=e["--persona-components-introCard-padding"])!=null?Go:"1.5rem",e["--persona-intro-card-shadow"]=(Xo=(No=r==null?void 0:r.shadow)!=null?No:e["--persona-components-introCard-shadow"])!=null?Xo:"0 5px 15px rgba(15, 23, 42, 0.08)",e["--persona-input-background"]=(Ko=e["--persona-components-input-background"])!=null?Ko:e["--persona-surface"],e["--persona-input-placeholder"]=(_o=e["--persona-components-input-placeholder"])!=null?_o:e["--persona-text-muted"],e["--persona-message-user-bg"]=(Zo=e["--persona-components-message-user-background"])!=null?Zo:e["--persona-accent"],e["--persona-message-user-text"]=(jo=e["--persona-components-message-user-text"])!=null?jo:e["--persona-text-inverse"],e["--persona-message-user-shadow"]=(Qo=e["--persona-components-message-user-shadow"])!=null?Qo:"0 5px 15px rgba(15, 23, 42, 0.08)",e["--persona-message-assistant-bg"]=(Jo=e["--persona-components-message-assistant-background"])!=null?Jo:e["--persona-surface"],e["--persona-message-assistant-text"]=(Yo=e["--persona-components-message-assistant-text"])!=null?Yo:e["--persona-text"],e["--persona-message-assistant-border"]=($o=e["--persona-components-message-assistant-border"])!=null?$o:e["--persona-border"],e["--persona-message-assistant-shadow"]=(et=e["--persona-components-message-assistant-shadow"])!=null?et:"0 1px 2px 0 rgb(0 0 0 / 0.05)",e["--persona-scroll-to-bottom-bg"]=(ot=(at=e["--persona-components-scrollToBottom-background"])!=null?at:e["--persona-button-primary-bg"])!=null?ot:e["--persona-accent"],e["--persona-scroll-to-bottom-fg"]=(rt=(tt=e["--persona-components-scrollToBottom-foreground"])!=null?tt:e["--persona-button-primary-fg"])!=null?rt:e["--persona-text-inverse"],e["--persona-scroll-to-bottom-border"]=(st=e["--persona-components-scrollToBottom-border"])!=null?st:e["--persona-primary"],e["--persona-scroll-to-bottom-size"]=(lt=e["--persona-components-scrollToBottom-size"])!=null?lt:"40px",e["--persona-scroll-to-bottom-radius"]=(pt=(dt=(ft=e["--persona-components-scrollToBottom-borderRadius"])!=null?ft:e["--persona-button-radius"])!=null?dt:e["--persona-radius-full"])!=null?pt:"9999px",e["--persona-scroll-to-bottom-shadow"]=(ut=(nt=e["--persona-components-scrollToBottom-shadow"])!=null?nt:e["--persona-palette-shadows-sm"])!=null?ut:"0 1px 2px 0 rgb(0 0 0 / 0.05)",e["--persona-scroll-to-bottom-padding"]=(it=e["--persona-components-scrollToBottom-padding"])!=null?it:"0.5rem 0.875rem",e["--persona-scroll-to-bottom-gap"]=(mt=e["--persona-components-scrollToBottom-gap"])!=null?mt:"0.5rem",e["--persona-scroll-to-bottom-font-size"]=(xt=(ct=e["--persona-components-scrollToBottom-fontSize"])!=null?ct:e["--persona-palette-typography-fontSize-sm"])!=null?xt:"0.875rem",e["--persona-scroll-to-bottom-icon-size"]=(ht=e["--persona-components-scrollToBottom-iconSize"])!=null?ht:"14px",e["--persona-tool-bubble-shadow"]=(gt=e["--persona-components-toolBubble-shadow"])!=null?gt:"0 5px 15px rgba(15, 23, 42, 0.08)",e["--persona-reasoning-bubble-shadow"]=(Ct=e["--persona-components-reasoningBubble-shadow"])!=null?Ct:"0 5px 15px rgba(15, 23, 42, 0.08)",e["--persona-composer-shadow"]=(bt=e["--persona-components-composer-shadow"])!=null?bt:"none",e["--persona-md-inline-code-bg"]=(yt=e["--persona-components-markdown-inlineCode-background"])!=null?yt:e["--persona-container"],e["--persona-md-inline-code-color"]=(St=e["--persona-components-markdown-inlineCode-foreground"])!=null?St:e["--persona-text"],e["--persona-md-link-color"]=(kt=(wt=e["--persona-components-markdown-link-foreground"])!=null?wt:e["--persona-accent"])!=null?kt:"#0f0f0f";let d=e["--persona-components-markdown-heading-h1-fontSize"];d&&(e["--persona-md-h1-size"]=d);let l=e["--persona-components-markdown-heading-h1-fontWeight"];l&&(e["--persona-md-h1-weight"]=l);let u=e["--persona-components-markdown-heading-h2-fontSize"];u&&(e["--persona-md-h2-size"]=u);let x=e["--persona-components-markdown-heading-h2-fontWeight"];x&&(e["--persona-md-h2-weight"]=x);let h=e["--persona-components-markdown-prose-fontFamily"];h&&h!=="inherit"&&(e["--persona-md-prose-font-family"]=h),e["--persona-md-code-block-bg"]=(Mt=e["--persona-components-markdown-codeBlock-background"])!=null?Mt:e["--persona-container"],e["--persona-md-code-block-border-color"]=(At=e["--persona-components-markdown-codeBlock-borderColor"])!=null?At:e["--persona-border"],e["--persona-md-code-block-text-color"]=(vt=e["--persona-components-markdown-codeBlock-textColor"])!=null?vt:"inherit",e["--persona-md-table-header-bg"]=(Tt=e["--persona-components-markdown-table-headerBackground"])!=null?Tt:e["--persona-container"],e["--persona-md-table-border-color"]=(Pt=e["--persona-components-markdown-table-borderColor"])!=null?Pt:e["--persona-border"],e["--persona-md-hr-color"]=(Bt=e["--persona-components-markdown-hr-color"])!=null?Bt:e["--persona-divider"],e["--persona-md-blockquote-border-color"]=(Lt=e["--persona-components-markdown-blockquote-borderColor"])!=null?Lt:e["--persona-palette-colors-gray-900"],e["--persona-md-blockquote-bg"]=(Rt=e["--persona-components-markdown-blockquote-background"])!=null?Rt:"transparent",e["--persona-md-blockquote-text-color"]=(Ft=e["--persona-components-markdown-blockquote-textColor"])!=null?Ft:e["--persona-palette-colors-gray-500"],e["--cw-container"]=(Dt=e["--persona-components-collapsibleWidget-container"])!=null?Dt:e["--persona-surface"],e["--cw-surface"]=(Ht=e["--persona-components-collapsibleWidget-surface"])!=null?Ht:e["--persona-surface"],e["--cw-border"]=(qt=e["--persona-components-collapsibleWidget-border"])!=null?qt:e["--persona-border"],e["--persona-message-border"]=(Ut=e["--persona-components-message-border"])!=null?Ut:e["--persona-border"];let i=a.components,f=i==null?void 0:i.iconButton;f&&(f.background&&(e["--persona-icon-btn-bg"]=f.background),f.border&&(e["--persona-icon-btn-border"]=f.border),f.color&&(e["--persona-icon-btn-color"]=f.color),f.padding&&(e["--persona-icon-btn-padding"]=f.padding),f.borderRadius&&(e["--persona-icon-btn-radius"]=f.borderRadius),f.hoverBackground&&(e["--persona-icon-btn-hover-bg"]=f.hoverBackground),f.hoverColor&&(e["--persona-icon-btn-hover-color"]=f.hoverColor),f.activeBackground&&(e["--persona-icon-btn-active-bg"]=f.activeBackground),f.activeBorder&&(e["--persona-icon-btn-active-border"]=f.activeBorder));let n=i==null?void 0:i.labelButton;n&&(n.background&&(e["--persona-label-btn-bg"]=n.background),n.border&&(e["--persona-label-btn-border"]=n.border),n.color&&(e["--persona-label-btn-color"]=n.color),n.padding&&(e["--persona-label-btn-padding"]=n.padding),n.borderRadius&&(e["--persona-label-btn-radius"]=n.borderRadius),n.hoverBackground&&(e["--persona-label-btn-hover-bg"]=n.hoverBackground),n.fontSize&&(e["--persona-label-btn-font-size"]=n.fontSize),n.gap&&(e["--persona-label-btn-gap"]=n.gap));let p=i==null?void 0:i.toggleGroup;p&&(p.gap&&(e["--persona-toggle-group-gap"]=p.gap),p.borderRadius&&(e["--persona-toggle-group-radius"]=p.borderRadius));let c=i==null?void 0:i.artifact;if(c!=null&&c.toolbar){let t=c.toolbar;t.iconHoverColor&&(e["--persona-artifact-toolbar-icon-hover-color"]=t.iconHoverColor),t.iconHoverBackground&&(e["--persona-artifact-toolbar-icon-hover-bg"]=t.iconHoverBackground),t.iconPadding&&(e["--persona-artifact-toolbar-icon-padding"]=t.iconPadding),t.iconBorderRadius&&(e["--persona-artifact-toolbar-icon-radius"]=t.iconBorderRadius),t.iconBorder&&(e["--persona-artifact-toolbar-icon-border"]=t.iconBorder),t.toggleGroupGap&&(e["--persona-artifact-toolbar-toggle-group-gap"]=t.toggleGroupGap),t.toggleBorderRadius&&(e["--persona-artifact-toolbar-toggle-radius"]=t.toggleBorderRadius),t.copyBackground&&(e["--persona-artifact-toolbar-copy-bg"]=t.copyBackground),t.copyBorder&&(e["--persona-artifact-toolbar-copy-border"]=t.copyBorder),t.copyColor&&(e["--persona-artifact-toolbar-copy-color"]=t.copyColor),t.copyBorderRadius&&(e["--persona-artifact-toolbar-copy-radius"]=t.copyBorderRadius),t.copyPadding&&(e["--persona-artifact-toolbar-copy-padding"]=t.copyPadding),t.copyMenuBackground&&(e["--persona-artifact-toolbar-copy-menu-bg"]=t.copyMenuBackground,e["--persona-dropdown-bg"]=(Ot=e["--persona-dropdown-bg"])!=null?Ot:t.copyMenuBackground),t.copyMenuBorder&&(e["--persona-artifact-toolbar-copy-menu-border"]=t.copyMenuBorder,e["--persona-dropdown-border"]=(Et=e["--persona-dropdown-border"])!=null?Et:t.copyMenuBorder),t.copyMenuShadow&&(e["--persona-artifact-toolbar-copy-menu-shadow"]=t.copyMenuShadow,e["--persona-dropdown-shadow"]=(It=e["--persona-dropdown-shadow"])!=null?It:t.copyMenuShadow),t.copyMenuBorderRadius&&(e["--persona-artifact-toolbar-copy-menu-radius"]=t.copyMenuBorderRadius,e["--persona-dropdown-radius"]=(Wt=e["--persona-dropdown-radius"])!=null?Wt:t.copyMenuBorderRadius),t.copyMenuItemHoverBackground&&(e["--persona-artifact-toolbar-copy-menu-item-hover-bg"]=t.copyMenuItemHoverBackground,e["--persona-dropdown-item-hover-bg"]=(Vt=e["--persona-dropdown-item-hover-bg"])!=null?Vt:t.copyMenuItemHoverBackground),t.iconBackground&&(e["--persona-artifact-toolbar-icon-bg"]=t.iconBackground),t.toolbarBorder&&(e["--persona-artifact-toolbar-border"]=t.toolbarBorder)}if(c!=null&&c.tab){let t=c.tab;t.background&&(e["--persona-artifact-tab-bg"]=t.background),t.activeBackground&&(e["--persona-artifact-tab-active-bg"]=t.activeBackground),t.activeBorder&&(e["--persona-artifact-tab-active-border"]=t.activeBorder),t.borderRadius&&(e["--persona-artifact-tab-radius"]=t.borderRadius),t.textColor&&(e["--persona-artifact-tab-color"]=t.textColor),t.hoverBackground&&(e["--persona-artifact-tab-hover-bg"]=t.hoverBackground),t.listBackground&&(e["--persona-artifact-tab-list-bg"]=t.listBackground),t.listBorderColor&&(e["--persona-artifact-tab-list-border-color"]=t.listBorderColor),t.listPadding&&(e["--persona-artifact-tab-list-padding"]=t.listPadding)}if(c!=null&&c.pane){let t=c.pane;if(t.toolbarBackground){let J=(zt=Ya(a,t.toolbarBackground))!=null?zt:t.toolbarBackground;e["--persona-artifact-toolbar-bg"]=J}}return e}var cr={colors:{primary:{50:"#ffffff",100:"#f5f5f5",200:"#d4d4d4",300:"#a3a3a3",400:"#737373",500:"#171717",600:"#0f0f0f",700:"#0a0a0a",800:"#050505",900:"#030303",950:"#000000"},secondary:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},accent:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},success:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},warning:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},error:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"}}},Jt=a=>{if(!(!a||typeof a!="object"||Array.isArray(a)))return a},xr=()=>{var a;return typeof document!="undefined"&&document.documentElement.classList.contains("dark")||typeof window!="undefined"&&((a=window.matchMedia)!=null&&a.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light"},hr=a=>{var e;let o=(e=a==null?void 0:a.colorScheme)!=null?e:"light";return o==="light"?"light":o==="dark"?"dark":xr()},gr=a=>hr(a),Cr=a=>Q(a),br=a=>{var e;let o=Q(void 0,{validate:!1});return Q({...a,palette:{...o.palette,colors:{...cr.colors,...(e=a==null?void 0:a.palette)==null?void 0:e.colors}}},{validate:!1})},yr=a=>{let o=gr(a),e=Jt(a==null?void 0:a.theme),s=Jt(a==null?void 0:a.darkTheme);return o==="dark"?br(j(e!=null?e:{},s!=null?s:{})):Cr(e)},Sr=a=>Qt(a),$a=(a,o)=>{let e=yr(o),s=Sr(e);for(let[r,d]of Object.entries(s))a.style.setProperty(r,d)};var $t="data-persona-launcher-critical",wr=a=>{if(a instanceof HTMLElement)return a;if(typeof a=="string"){let o=document.querySelector(a);if(o)return o}return document.body},Yt=a=>{var o;return{...a,launcher:{...Ja,...a==null?void 0:a.launcher,dock:{...Ja.dock,...(o=a==null?void 0:a.launcher)==null?void 0:o.dock}}}},kr=a=>{if(typeof window=="undefined"||typeof document=="undefined")throw new Error("AgentWidgetLauncher can only be mounted in a browser environment");let{onOpen:o}=a,e=wr(a.target),s=Yt(a.config),r=document.createElement("div");r.setAttribute("data-persona-root","true"),r.setAttribute($t,"true"),$a(r,s);let d=Xt(s,o);return r.appendChild(d.element),e.appendChild(r),{root:r,element:d.element,update:l=>{let u=Yt(l);$a(r,u),d.update(u)},destroy:()=>{d.destroy(),r.remove()}}};return lr(Mr);})();
|
|
9
|
+
`,e.addEventListener("click",o);let l=d=>{var k,M,A,v,T,P,B,L,R,F,D,H,q;let s=(k=d.launcher)!=null?k:{},u=Nt(d),x=e.querySelector("[data-role='launcher-title']");if(x){let m=(M=s.title)!=null?M:"Chat Assistant";x.textContent=m,x.setAttribute("title",m)}let h=e.querySelector("[data-role='launcher-subtitle']");if(h){let m=(A=s.subtitle)!=null?A:"Here to help you get answers fast";h.textContent=m,h.setAttribute("title",m)}let i=e.querySelector(".persona-flex-col");i&&(s.textHidden||u?i.style.display="none":i.style.display="");let f=e.querySelector("[data-role='launcher-icon']");if(f)if(s.agentIconHidden)f.style.display="none";else{let m=(v=s.agentIconSize)!=null?v:"40px";if(f.style.height=m,f.style.width=m,s.agentIconBackgroundColor?(f.style.backgroundColor=s.agentIconBackgroundColor,f.classList.remove("persona-bg-persona-primary")):(f.style.backgroundColor="",f.classList.add("persona-bg-persona-primary")),f.innerHTML="",s.agentIconName){let S=parseFloat(m)||24,C=Za(s.agentIconName,S*.6,"var(--persona-text-inverse, #ffffff)",2);C?(f.appendChild(C),f.style.display=""):(f.textContent=(T=s.agentIconText)!=null?T:"\u{1F4AC}",f.style.display="")}else s.iconUrl?f.style.display="none":(f.textContent=(P=s.agentIconText)!=null?P:"\u{1F4AC}",f.style.display="")}let n=e.querySelector("[data-role='launcher-image']");if(n){let m=(B=s.agentIconSize)!=null?B:"40px";n.style.height=m,n.style.width=m,s.iconUrl&&!s.agentIconName&&!s.agentIconHidden?(n.src=s.iconUrl,n.style.display="block"):n.style.display="none"}let p=e.querySelector("[data-role='launcher-call-to-action-icon']");if(p){let m=(L=s.callToActionIconSize)!=null?L:"32px";p.style.height=m,p.style.width=m,s.callToActionIconBackgroundColor?(p.style.backgroundColor=s.callToActionIconBackgroundColor,p.classList.remove("persona-bg-persona-primary")):(p.style.backgroundColor="",p.classList.add("persona-bg-persona-primary")),s.callToActionIconColor?(p.style.color=s.callToActionIconColor,p.classList.remove("persona-text-persona-call-to-action")):(p.style.color="",p.classList.add("persona-text-persona-call-to-action"));let S=0;if(s.callToActionIconPadding?(p.style.boxSizing="border-box",p.style.padding=s.callToActionIconPadding,S=(parseFloat(s.callToActionIconPadding)||0)*2):(p.style.boxSizing="",p.style.padding=""),s.callToActionIconHidden)p.style.display="none";else if(p.style.display=u?"none":"",p.innerHTML="",s.callToActionIconName){let C=parseFloat(m)||24,O=Math.max(C-S,8),U=Za(s.callToActionIconName,O,"currentColor",2);U?p.appendChild(U):p.textContent=(R=s.callToActionIconText)!=null?R:"\u2197"}else p.textContent=(F=s.callToActionIconText)!=null?F:"\u2197"}let c=s.position&&E[s.position]?E[s.position]:E["bottom-right"],b="persona-fixed persona-flex persona-items-center persona-gap-3 persona-rounded-launcher persona-bg-persona-surface persona-py-2.5 persona-pl-3 persona-pr-3 persona-transition hover:persona-translate-y-[-2px] persona-cursor-pointer",y="persona-relative persona-mt-4 persona-mb-4 persona-mx-auto persona-flex persona-items-center persona-justify-center persona-rounded-launcher persona-bg-persona-surface persona-transition hover:persona-translate-y-[-2px] persona-cursor-pointer";e.className=u?y:`${b} ${c}`,u||(e.style.zIndex=String((D=s.zIndex)!=null?D:ja));let g="1px solid var(--persona-border, #e5e7eb)",w="var(--persona-launcher-shadow, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1))";e.style.border=(H=s.border)!=null?H:g,e.style.boxShadow=s.shadow!==void 0?s.shadow.trim()===""?"none":s.shadow:w,u?(e.style.width="0",e.style.minWidth="0",e.style.maxWidth="0",e.style.padding="0",e.style.overflow="hidden",e.style.border="none",e.style.boxShadow="none"):(e.style.width="",e.style.minWidth="",e.style.maxWidth=(q=s.collapsedMaxWidth)!=null?q:"",e.style.justifyContent="",e.style.padding="",e.style.overflow="")},r=()=>{e.removeEventListener("click",o),e.remove()};return a&&l(a),{element:e,update:l,destroy:r}};var Kt=a=>typeof a=="object"&&a!==null&&!Array.isArray(a);function j(a,o){if(!a)return o;if(!o)return a;let e={...a};for(let[l,r]of Object.entries(o)){let d=e[l];Kt(d)&&Kt(r)?e[l]=j(d,r):e[l]=r}return e}var Qa="min(440px, calc(100vw - 24px))",_t="440px",Ja={enabled:!0,mountMode:"floating",dock:{side:"right",width:"420px"},title:"Chat Assistant",subtitle:"Here to help you get answers fast",agentIconText:"\u{1F4AC}",agentIconName:"bot",headerIconName:"bot",position:"bottom-right",width:Qa,heightOffset:0,autoExpand:!1,callToActionIconHidden:!1,agentIconSize:"40px",headerIconSize:"40px",closeButtonSize:"32px",closeButtonPaddingX:"0px",closeButtonPaddingY:"0px",callToActionIconName:"arrow-up-right",callToActionIconText:"",callToActionIconSize:"32px",callToActionIconPadding:"5px",callToActionIconColor:void 0,callToActionIconBackgroundColor:void 0,closeButtonBackgroundColor:"transparent",clearChat:{backgroundColor:"transparent",borderColor:"transparent",enabled:!0,placement:"inline",iconName:"refresh-cw",size:"32px",showTooltip:!0,tooltipText:"Clear chat",paddingX:"0px",paddingY:"0px"},headerIconHidden:!1,border:void 0,shadow:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)"};var pr={colors:{primary:{50:"#ffffff",100:"#f5f5f5",200:"#d4d4d4",300:"#a3a3a3",400:"#737373",500:"#171717",600:"#0f0f0f",700:"#0a0a0a",800:"#050505",900:"#030303",950:"#000000"},secondary:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},accent:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},success:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},warning:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},error:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},info:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"}},spacing:{0:"0px",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",8:"2rem",10:"2.5rem",12:"3rem",16:"4rem",20:"5rem",24:"6rem",32:"8rem",40:"10rem",48:"12rem",56:"14rem",64:"16rem"},typography:{fontFamily:{sans:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',serif:'Georgia, Cambria, "Times New Roman", Times, serif',mono:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem"},fontWeight:{normal:"400",medium:"500",semibold:"600",bold:"700"},lineHeight:{tight:"1.25",normal:"1.5",relaxed:"1.625"}},shadows:{none:"none",sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)"},borders:{none:"none",sm:"1px solid",md:"2px solid",lg:"4px solid"},radius:{none:"0px",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem",full:"9999px"}},nr={colors:{primary:"palette.colors.primary.500",secondary:"palette.colors.secondary.500",accent:"palette.colors.primary.600",surface:"palette.colors.gray.50",background:"palette.colors.gray.50",container:"palette.colors.gray.50",text:"palette.colors.gray.900",textMuted:"palette.colors.gray.500",textInverse:"palette.colors.gray.50",border:"palette.colors.gray.200",divider:"palette.colors.gray.200",interactive:{default:"palette.colors.primary.600",hover:"palette.colors.primary.700",focus:"palette.colors.primary.600",active:"palette.colors.primary.600",disabled:"palette.colors.gray.300"},feedback:{success:"palette.colors.success.500",warning:"palette.colors.warning.500",error:"palette.colors.error.500",info:"palette.colors.info.500"}},spacing:{xs:"palette.spacing.1",sm:"palette.spacing.2",md:"palette.spacing.4",lg:"palette.spacing.6",xl:"palette.spacing.8","2xl":"palette.spacing.10"},typography:{fontFamily:"palette.typography.fontFamily.sans",fontSize:"palette.typography.fontSize.base",fontWeight:"palette.typography.fontWeight.normal",lineHeight:"palette.typography.lineHeight.normal"}},ur={button:{primary:{background:"palette.colors.primary.500",foreground:"palette.colors.primary.50",borderRadius:"palette.radius.lg",padding:"semantic.spacing.md"},secondary:{background:"semantic.colors.surface",foreground:"semantic.colors.secondary",borderRadius:"palette.radius.lg",padding:"semantic.spacing.md"},ghost:{background:"transparent",foreground:"semantic.colors.text",borderRadius:"palette.radius.md",padding:"semantic.spacing.sm"}},input:{background:"palette.colors.gray.50",placeholder:"palette.colors.gray.400",borderRadius:"palette.radius.lg",padding:"semantic.spacing.md",focus:{border:"palette.colors.gray.400",ring:"palette.colors.gray.400"}},launcher:{background:"palette.colors.primary.500",foreground:"palette.colors.primary.50",border:"palette.colors.gray.200",size:"60px",iconSize:"28px",borderRadius:"palette.radius.full",shadow:"palette.shadows.lg"},panel:{width:Qa,maxWidth:_t,height:"600px",maxHeight:"calc(100vh - 80px)",borderRadius:"palette.radius.xl",shadow:"palette.shadows.xl"},header:{background:"palette.colors.primary.500",border:"palette.colors.primary.600",borderRadius:"palette.radius.xl palette.radius.xl 0 0",padding:"semantic.spacing.md",iconBackground:"palette.colors.primary.600",iconForeground:"palette.colors.primary.50",titleForeground:"palette.colors.primary.50",subtitleForeground:"palette.colors.primary.200",actionIconForeground:"palette.colors.primary.200"},message:{user:{background:"palette.colors.primary.500",text:"palette.colors.primary.50",borderRadius:"palette.radius.lg",shadow:"palette.shadows.sm"},assistant:{background:"palette.colors.gray.50",text:"palette.colors.gray.900",borderRadius:"palette.radius.lg",border:"palette.colors.gray.200",shadow:"palette.shadows.sm"},border:"semantic.colors.border"},introCard:{background:"semantic.colors.surface",borderRadius:"palette.radius.2xl",padding:"semantic.spacing.lg",shadow:"0 5px 15px rgba(15, 23, 42, 0.08)"},toolBubble:{shadow:"palette.shadows.sm"},reasoningBubble:{shadow:"palette.shadows.sm"},composer:{shadow:"palette.shadows.none"},markdown:{inlineCode:{background:"palette.colors.gray.50",foreground:"palette.colors.gray.900"},link:{foreground:"palette.colors.primary.600"},prose:{fontFamily:"inherit"},codeBlock:{background:"semantic.colors.container",borderColor:"semantic.colors.border",textColor:"inherit"},table:{headerBackground:"semantic.colors.container",borderColor:"semantic.colors.border"},hr:{color:"semantic.colors.divider"},blockquote:{borderColor:"palette.colors.gray.900",background:"transparent",textColor:"palette.colors.gray.500"}},collapsibleWidget:{container:"palette.colors.gray.50",surface:"semantic.colors.surface",border:"semantic.colors.border"},voice:{recording:{indicator:"palette.colors.error.500",background:"palette.colors.error.50",border:"palette.colors.error.200"},processing:{icon:"palette.colors.primary.500",background:"palette.colors.primary.50"},speaking:{icon:"palette.colors.success.500"}},approval:{requested:{background:"semantic.colors.surface",border:"semantic.colors.border",text:"palette.colors.gray.900",shadow:"0 1px 2px 0 rgba(11, 11, 11, 0.06), 0 2px 8px 0 rgba(11, 11, 11, 0.04)"},approve:{background:"semantic.colors.primary",foreground:"semantic.colors.textInverse",borderRadius:"palette.radius.md",padding:"semantic.spacing.sm"},deny:{background:"semantic.colors.container",foreground:"semantic.colors.text",borderRadius:"palette.radius.md",padding:"semantic.spacing.sm"}},attachment:{image:{background:"palette.colors.gray.100",border:"palette.colors.gray.200"}},scrollToBottom:{background:"components.button.primary.background",foreground:"components.button.primary.foreground",border:"semantic.colors.primary",size:"40px",borderRadius:"palette.radius.full",shadow:"palette.shadows.sm",padding:"0.5rem 0.875rem",gap:"0.5rem",fontSize:"0.875rem",iconSize:"14px"},artifact:{pane:{background:"semantic.colors.container",toolbarBackground:"semantic.colors.container"}}};function Ya(a,o){if(!o.startsWith("palette.")&&!o.startsWith("semantic.")&&!o.startsWith("components."))return o;let e=o.split("."),l=a;for(let r of e){if(l==null)return;l=l[r]}return typeof l=="string"&&(l.startsWith("palette.")||l.startsWith("semantic.")||l.startsWith("components."))?Ya(a,l):l}function Zt(a){let o={};function e(l,r){for(let[d,s]of Object.entries(l)){let u=`${r}.${d}`;if(typeof s=="string"){let x=Ya(a,s);x!==void 0&&(o[u]={path:u,value:x,type:r.includes("color")?"color":r.includes("spacing")?"spacing":r.includes("typography")?"typography":r.includes("shadow")?"shadow":r.includes("border")?"border":"color"})}else typeof s=="object"&&s!==null&&e(s,u)}}return e(a.palette,"palette"),e(a.semantic,"semantic"),e(a.components,"components"),o}function ir(a){let o=[],e=[];return a.palette||o.push({path:"palette",message:"Theme must include a palette",severity:"error"}),a.semantic||e.push({path:"semantic",message:"No semantic tokens defined - defaults will be used",severity:"warning"}),a.components||e.push({path:"components",message:"No component tokens defined - defaults will be used",severity:"warning"}),{valid:o.length===0,errors:o,warnings:e}}function jt(a,o){let e={...a};for(let[l,r]of Object.entries(o)){let d=e[l];d&&typeof d=="object"&&!Array.isArray(d)&&r&&typeof r=="object"&&!Array.isArray(r)?e[l]=jt(d,r):e[l]=r}return e}function mr(a,o){return o?jt(a,o):a}function Q(a,o={}){var r,d,s,u,x,h,i,f,n,p,c,b,y;let e={palette:pr,semantic:nr,components:ur},l={palette:{...e.palette,...a==null?void 0:a.palette,colors:{...e.palette.colors,...(r=a==null?void 0:a.palette)==null?void 0:r.colors},spacing:{...e.palette.spacing,...(d=a==null?void 0:a.palette)==null?void 0:d.spacing},typography:{...e.palette.typography,...(s=a==null?void 0:a.palette)==null?void 0:s.typography},shadows:{...e.palette.shadows,...(u=a==null?void 0:a.palette)==null?void 0:u.shadows},borders:{...e.palette.borders,...(x=a==null?void 0:a.palette)==null?void 0:x.borders},radius:{...e.palette.radius,...(h=a==null?void 0:a.palette)==null?void 0:h.radius}},semantic:{...e.semantic,...a==null?void 0:a.semantic,colors:{...e.semantic.colors,...(i=a==null?void 0:a.semantic)==null?void 0:i.colors,interactive:{...e.semantic.colors.interactive,...(n=(f=a==null?void 0:a.semantic)==null?void 0:f.colors)==null?void 0:n.interactive},feedback:{...e.semantic.colors.feedback,...(c=(p=a==null?void 0:a.semantic)==null?void 0:p.colors)==null?void 0:c.feedback}},spacing:{...e.semantic.spacing,...(b=a==null?void 0:a.semantic)==null?void 0:b.spacing},typography:{...e.semantic.typography,...(y=a==null?void 0:a.semantic)==null?void 0:y.typography}},components:mr(e.components,a==null?void 0:a.components)};if(o.validate!==!1){let g=ir(l);if(!g.valid)throw new Error(`Theme validation failed: ${g.errors.map(w=>w.message).join(", ")}`)}if(o.plugins)for(let g of o.plugins)l=g.transform(l);return l}function Qt(a){var b,y,g,w,k,M,A,v,T,P,B,L,R,F,D,H,q,m,S,C,O,U,eo,ao,oo,to,ro,so,lo,fo,po,no,uo,io,mo,co,xo,ho,go,Co,bo,yo,So,wo,ko,Mo,Ao,vo,To,Po,Bo,Lo,Ro,Fo,Do,Ho,qo,Uo,Oo,Eo,Io,Wo,Vo,zo,Go,No,Xo,Ko,_o,Zo,jo,Qo,Jo,Yo,$o,et,at,ot,tt,rt,st,lt,ft,dt,pt,nt,ut,it,mt,ct,xt,ht,gt,Ct,bt,yt,St,wt,kt,Mt,At,vt,Tt,Pt,Bt,Lt,Rt,Ft,Dt,Ht,qt,Ut,Ot,Et,It,Wt,Vt,zt;let o=Zt(a),e={};for(let[t,J]of Object.entries(o)){let er=t.replace(/\./g,"-");e[`--persona-${er}`]=J.value}e["--persona-primary"]=(b=e["--persona-semantic-colors-primary"])!=null?b:e["--persona-palette-colors-primary-500"],e["--persona-secondary"]=(y=e["--persona-semantic-colors-secondary"])!=null?y:e["--persona-palette-colors-secondary-500"],e["--persona-accent"]=(g=e["--persona-semantic-colors-accent"])!=null?g:e["--persona-palette-colors-accent-500"],e["--persona-surface"]=(w=e["--persona-semantic-colors-surface"])!=null?w:e["--persona-palette-colors-gray-50"],e["--persona-background"]=(k=e["--persona-semantic-colors-background"])!=null?k:e["--persona-palette-colors-gray-50"],e["--persona-container"]=(M=e["--persona-semantic-colors-container"])!=null?M:e["--persona-palette-colors-gray-100"],e["--persona-text"]=(A=e["--persona-semantic-colors-text"])!=null?A:e["--persona-palette-colors-gray-900"],e["--persona-text-muted"]=(v=e["--persona-semantic-colors-text-muted"])!=null?v:e["--persona-palette-colors-gray-500"],e["--persona-text-inverse"]=(T=e["--persona-semantic-colors-text-inverse"])!=null?T:e["--persona-palette-colors-gray-50"],e["--persona-border"]=(P=e["--persona-semantic-colors-border"])!=null?P:e["--persona-palette-colors-gray-200"],e["--persona-divider"]=(B=e["--persona-semantic-colors-divider"])!=null?B:e["--persona-palette-colors-gray-200"],e["--persona-muted"]=e["--persona-text-muted"],e["--persona-voice-recording-indicator"]=(L=e["--persona-components-voice-recording-indicator"])!=null?L:e["--persona-palette-colors-error-500"],e["--persona-voice-recording-bg"]=(R=e["--persona-components-voice-recording-background"])!=null?R:e["--persona-palette-colors-error-50"],e["--persona-voice-processing-icon"]=(F=e["--persona-components-voice-processing-icon"])!=null?F:e["--persona-palette-colors-primary-500"],e["--persona-voice-speaking-icon"]=(D=e["--persona-components-voice-speaking-icon"])!=null?D:e["--persona-palette-colors-success-500"],e["--persona-approval-bg"]=(H=e["--persona-components-approval-requested-background"])!=null?H:e["--persona-surface"],e["--persona-approval-border"]=(q=e["--persona-components-approval-requested-border"])!=null?q:e["--persona-border"],e["--persona-approval-text"]=(m=e["--persona-components-approval-requested-text"])!=null?m:e["--persona-palette-colors-gray-900"],e["--persona-approval-shadow"]=(S=e["--persona-components-approval-requested-shadow"])!=null?S:"0 1px 2px 0 rgba(11, 11, 11, 0.06), 0 2px 8px 0 rgba(11, 11, 11, 0.04)",e["--persona-approval-approve-bg"]=(C=e["--persona-components-approval-approve-background"])!=null?C:e["--persona-button-primary-bg"],e["--persona-approval-deny-bg"]=(O=e["--persona-components-approval-deny-background"])!=null?O:e["--persona-container"],e["--persona-attachment-image-bg"]=(U=e["--persona-components-attachment-image-background"])!=null?U:e["--persona-palette-colors-gray-100"],e["--persona-attachment-image-border"]=(eo=e["--persona-components-attachment-image-border"])!=null?eo:e["--persona-palette-colors-gray-200"],e["--persona-font-family"]=(ao=e["--persona-semantic-typography-fontFamily"])!=null?ao:e["--persona-palette-typography-fontFamily-sans"],e["--persona-font-size"]=(oo=e["--persona-semantic-typography-fontSize"])!=null?oo:e["--persona-palette-typography-fontSize-base"],e["--persona-font-weight"]=(to=e["--persona-semantic-typography-fontWeight"])!=null?to:e["--persona-palette-typography-fontWeight-normal"],e["--persona-line-height"]=(ro=e["--persona-semantic-typography-lineHeight"])!=null?ro:e["--persona-palette-typography-lineHeight-normal"],e["--persona-input-font-family"]=e["--persona-font-family"],e["--persona-input-font-weight"]=e["--persona-font-weight"],e["--persona-radius-sm"]=(so=e["--persona-palette-radius-sm"])!=null?so:"0.125rem",e["--persona-radius-md"]=(lo=e["--persona-palette-radius-md"])!=null?lo:"0.375rem",e["--persona-radius-lg"]=(fo=e["--persona-palette-radius-lg"])!=null?fo:"0.5rem",e["--persona-radius-xl"]=(po=e["--persona-palette-radius-xl"])!=null?po:"0.75rem",e["--persona-radius-full"]=(no=e["--persona-palette-radius-full"])!=null?no:"9999px",e["--persona-launcher-radius"]=(io=(uo=e["--persona-components-launcher-borderRadius"])!=null?uo:e["--persona-palette-radius-full"])!=null?io:"9999px",e["--persona-launcher-bg"]=(mo=e["--persona-components-launcher-background"])!=null?mo:e["--persona-primary"],e["--persona-launcher-fg"]=(co=e["--persona-components-launcher-foreground"])!=null?co:e["--persona-text-inverse"],e["--persona-launcher-border"]=(xo=e["--persona-components-launcher-border"])!=null?xo:e["--persona-border"],e["--persona-button-primary-bg"]=(ho=e["--persona-components-button-primary-background"])!=null?ho:e["--persona-primary"],e["--persona-button-primary-fg"]=(go=e["--persona-components-button-primary-foreground"])!=null?go:e["--persona-text-inverse"],e["--persona-button-radius"]=(bo=(Co=e["--persona-components-button-primary-borderRadius"])!=null?Co:e["--persona-palette-radius-full"])!=null?bo:"9999px",e["--persona-panel-radius"]=(So=(yo=e["--persona-components-panel-borderRadius"])!=null?yo:e["--persona-radius-xl"])!=null?So:"0.75rem",e["--persona-panel-border"]=(wo=e["--persona-components-panel-border"])!=null?wo:`1px solid ${e["--persona-border"]}`,e["--persona-panel-shadow"]=(Mo=(ko=e["--persona-components-panel-shadow"])!=null?ko:e["--persona-palette-shadows-xl"])!=null?Mo:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",e["--persona-launcher-shadow"]=(Ao=e["--persona-components-launcher-shadow"])!=null?Ao:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)",e["--persona-input-radius"]=(To=(vo=e["--persona-components-input-borderRadius"])!=null?vo:e["--persona-radius-lg"])!=null?To:"0.5rem",e["--persona-message-user-radius"]=(Bo=(Po=e["--persona-components-message-user-borderRadius"])!=null?Po:e["--persona-radius-lg"])!=null?Bo:"0.5rem",e["--persona-message-assistant-radius"]=(Ro=(Lo=e["--persona-components-message-assistant-borderRadius"])!=null?Lo:e["--persona-radius-lg"])!=null?Ro:"0.5rem",e["--persona-header-bg"]=(Fo=e["--persona-components-header-background"])!=null?Fo:e["--persona-surface"],e["--persona-header-border"]=(Do=e["--persona-components-header-border"])!=null?Do:e["--persona-divider"],e["--persona-header-icon-bg"]=(Ho=e["--persona-components-header-iconBackground"])!=null?Ho:e["--persona-primary"],e["--persona-header-icon-fg"]=(qo=e["--persona-components-header-iconForeground"])!=null?qo:e["--persona-text-inverse"],e["--persona-header-title-fg"]=(Uo=e["--persona-components-header-titleForeground"])!=null?Uo:e["--persona-primary"],e["--persona-header-subtitle-fg"]=(Oo=e["--persona-components-header-subtitleForeground"])!=null?Oo:e["--persona-text-muted"],e["--persona-header-action-icon-fg"]=(Eo=e["--persona-components-header-actionIconForeground"])!=null?Eo:e["--persona-muted"];let l=(Io=a.components)==null?void 0:Io.header;l!=null&&l.shadow&&(e["--persona-header-shadow"]=l.shadow),l!=null&&l.borderBottom&&(e["--persona-header-border-bottom"]=l.borderBottom);let r=(Wo=a.components)==null?void 0:Wo.introCard;e["--persona-intro-card-bg"]=(Vo=e["--persona-components-introCard-background"])!=null?Vo:e["--persona-surface"],e["--persona-intro-card-radius"]=(zo=e["--persona-components-introCard-borderRadius"])!=null?zo:"1rem",e["--persona-intro-card-padding"]=(Go=e["--persona-components-introCard-padding"])!=null?Go:"1.5rem",e["--persona-intro-card-shadow"]=(Xo=(No=r==null?void 0:r.shadow)!=null?No:e["--persona-components-introCard-shadow"])!=null?Xo:"0 5px 15px rgba(15, 23, 42, 0.08)",e["--persona-input-background"]=(Ko=e["--persona-components-input-background"])!=null?Ko:e["--persona-surface"],e["--persona-input-placeholder"]=(_o=e["--persona-components-input-placeholder"])!=null?_o:e["--persona-text-muted"],e["--persona-message-user-bg"]=(Zo=e["--persona-components-message-user-background"])!=null?Zo:e["--persona-accent"],e["--persona-message-user-text"]=(jo=e["--persona-components-message-user-text"])!=null?jo:e["--persona-text-inverse"],e["--persona-message-user-shadow"]=(Qo=e["--persona-components-message-user-shadow"])!=null?Qo:"0 5px 15px rgba(15, 23, 42, 0.08)",e["--persona-message-assistant-bg"]=(Jo=e["--persona-components-message-assistant-background"])!=null?Jo:e["--persona-surface"],e["--persona-message-assistant-text"]=(Yo=e["--persona-components-message-assistant-text"])!=null?Yo:e["--persona-text"],e["--persona-message-assistant-border"]=($o=e["--persona-components-message-assistant-border"])!=null?$o:e["--persona-border"],e["--persona-message-assistant-shadow"]=(et=e["--persona-components-message-assistant-shadow"])!=null?et:"0 1px 2px 0 rgb(0 0 0 / 0.05)",e["--persona-scroll-to-bottom-bg"]=(ot=(at=e["--persona-components-scrollToBottom-background"])!=null?at:e["--persona-button-primary-bg"])!=null?ot:e["--persona-accent"],e["--persona-scroll-to-bottom-fg"]=(rt=(tt=e["--persona-components-scrollToBottom-foreground"])!=null?tt:e["--persona-button-primary-fg"])!=null?rt:e["--persona-text-inverse"],e["--persona-scroll-to-bottom-border"]=(st=e["--persona-components-scrollToBottom-border"])!=null?st:e["--persona-primary"],e["--persona-scroll-to-bottom-size"]=(lt=e["--persona-components-scrollToBottom-size"])!=null?lt:"40px",e["--persona-scroll-to-bottom-radius"]=(pt=(dt=(ft=e["--persona-components-scrollToBottom-borderRadius"])!=null?ft:e["--persona-button-radius"])!=null?dt:e["--persona-radius-full"])!=null?pt:"9999px",e["--persona-scroll-to-bottom-shadow"]=(ut=(nt=e["--persona-components-scrollToBottom-shadow"])!=null?nt:e["--persona-palette-shadows-sm"])!=null?ut:"0 1px 2px 0 rgb(0 0 0 / 0.05)",e["--persona-scroll-to-bottom-padding"]=(it=e["--persona-components-scrollToBottom-padding"])!=null?it:"0.5rem 0.875rem",e["--persona-scroll-to-bottom-gap"]=(mt=e["--persona-components-scrollToBottom-gap"])!=null?mt:"0.5rem",e["--persona-scroll-to-bottom-font-size"]=(xt=(ct=e["--persona-components-scrollToBottom-fontSize"])!=null?ct:e["--persona-palette-typography-fontSize-sm"])!=null?xt:"0.875rem",e["--persona-scroll-to-bottom-icon-size"]=(ht=e["--persona-components-scrollToBottom-iconSize"])!=null?ht:"14px",e["--persona-tool-bubble-shadow"]=(gt=e["--persona-components-toolBubble-shadow"])!=null?gt:"0 5px 15px rgba(15, 23, 42, 0.08)",e["--persona-reasoning-bubble-shadow"]=(Ct=e["--persona-components-reasoningBubble-shadow"])!=null?Ct:"0 5px 15px rgba(15, 23, 42, 0.08)",e["--persona-composer-shadow"]=(bt=e["--persona-components-composer-shadow"])!=null?bt:"none",e["--persona-md-inline-code-bg"]=(yt=e["--persona-components-markdown-inlineCode-background"])!=null?yt:e["--persona-container"],e["--persona-md-inline-code-color"]=(St=e["--persona-components-markdown-inlineCode-foreground"])!=null?St:e["--persona-text"],e["--persona-md-link-color"]=(kt=(wt=e["--persona-components-markdown-link-foreground"])!=null?wt:e["--persona-accent"])!=null?kt:"#0f0f0f";let d=e["--persona-components-markdown-heading-h1-fontSize"];d&&(e["--persona-md-h1-size"]=d);let s=e["--persona-components-markdown-heading-h1-fontWeight"];s&&(e["--persona-md-h1-weight"]=s);let u=e["--persona-components-markdown-heading-h2-fontSize"];u&&(e["--persona-md-h2-size"]=u);let x=e["--persona-components-markdown-heading-h2-fontWeight"];x&&(e["--persona-md-h2-weight"]=x);let h=e["--persona-components-markdown-prose-fontFamily"];h&&h!=="inherit"&&(e["--persona-md-prose-font-family"]=h),e["--persona-md-code-block-bg"]=(Mt=e["--persona-components-markdown-codeBlock-background"])!=null?Mt:e["--persona-container"],e["--persona-md-code-block-border-color"]=(At=e["--persona-components-markdown-codeBlock-borderColor"])!=null?At:e["--persona-border"],e["--persona-md-code-block-text-color"]=(vt=e["--persona-components-markdown-codeBlock-textColor"])!=null?vt:"inherit",e["--persona-md-table-header-bg"]=(Tt=e["--persona-components-markdown-table-headerBackground"])!=null?Tt:e["--persona-container"],e["--persona-md-table-border-color"]=(Pt=e["--persona-components-markdown-table-borderColor"])!=null?Pt:e["--persona-border"],e["--persona-md-hr-color"]=(Bt=e["--persona-components-markdown-hr-color"])!=null?Bt:e["--persona-divider"],e["--persona-md-blockquote-border-color"]=(Lt=e["--persona-components-markdown-blockquote-borderColor"])!=null?Lt:e["--persona-palette-colors-gray-900"],e["--persona-md-blockquote-bg"]=(Rt=e["--persona-components-markdown-blockquote-background"])!=null?Rt:"transparent",e["--persona-md-blockquote-text-color"]=(Ft=e["--persona-components-markdown-blockquote-textColor"])!=null?Ft:e["--persona-palette-colors-gray-500"],e["--cw-container"]=(Dt=e["--persona-components-collapsibleWidget-container"])!=null?Dt:e["--persona-surface"],e["--cw-surface"]=(Ht=e["--persona-components-collapsibleWidget-surface"])!=null?Ht:e["--persona-surface"],e["--cw-border"]=(qt=e["--persona-components-collapsibleWidget-border"])!=null?qt:e["--persona-border"],e["--persona-message-border"]=(Ut=e["--persona-components-message-border"])!=null?Ut:e["--persona-border"];let i=a.components,f=i==null?void 0:i.iconButton;f&&(f.background&&(e["--persona-icon-btn-bg"]=f.background),f.border&&(e["--persona-icon-btn-border"]=f.border),f.color&&(e["--persona-icon-btn-color"]=f.color),f.padding&&(e["--persona-icon-btn-padding"]=f.padding),f.borderRadius&&(e["--persona-icon-btn-radius"]=f.borderRadius),f.hoverBackground&&(e["--persona-icon-btn-hover-bg"]=f.hoverBackground),f.hoverColor&&(e["--persona-icon-btn-hover-color"]=f.hoverColor),f.activeBackground&&(e["--persona-icon-btn-active-bg"]=f.activeBackground),f.activeBorder&&(e["--persona-icon-btn-active-border"]=f.activeBorder));let n=i==null?void 0:i.labelButton;n&&(n.background&&(e["--persona-label-btn-bg"]=n.background),n.border&&(e["--persona-label-btn-border"]=n.border),n.color&&(e["--persona-label-btn-color"]=n.color),n.padding&&(e["--persona-label-btn-padding"]=n.padding),n.borderRadius&&(e["--persona-label-btn-radius"]=n.borderRadius),n.hoverBackground&&(e["--persona-label-btn-hover-bg"]=n.hoverBackground),n.fontSize&&(e["--persona-label-btn-font-size"]=n.fontSize),n.gap&&(e["--persona-label-btn-gap"]=n.gap));let p=i==null?void 0:i.toggleGroup;p&&(p.gap&&(e["--persona-toggle-group-gap"]=p.gap),p.borderRadius&&(e["--persona-toggle-group-radius"]=p.borderRadius));let c=i==null?void 0:i.artifact;if(c!=null&&c.toolbar){let t=c.toolbar;t.iconHoverColor&&(e["--persona-artifact-toolbar-icon-hover-color"]=t.iconHoverColor),t.iconHoverBackground&&(e["--persona-artifact-toolbar-icon-hover-bg"]=t.iconHoverBackground),t.iconPadding&&(e["--persona-artifact-toolbar-icon-padding"]=t.iconPadding),t.iconBorderRadius&&(e["--persona-artifact-toolbar-icon-radius"]=t.iconBorderRadius),t.iconBorder&&(e["--persona-artifact-toolbar-icon-border"]=t.iconBorder),t.toggleGroupGap&&(e["--persona-artifact-toolbar-toggle-group-gap"]=t.toggleGroupGap),t.toggleBorderRadius&&(e["--persona-artifact-toolbar-toggle-radius"]=t.toggleBorderRadius),t.copyBackground&&(e["--persona-artifact-toolbar-copy-bg"]=t.copyBackground),t.copyBorder&&(e["--persona-artifact-toolbar-copy-border"]=t.copyBorder),t.copyColor&&(e["--persona-artifact-toolbar-copy-color"]=t.copyColor),t.copyBorderRadius&&(e["--persona-artifact-toolbar-copy-radius"]=t.copyBorderRadius),t.copyPadding&&(e["--persona-artifact-toolbar-copy-padding"]=t.copyPadding),t.copyMenuBackground&&(e["--persona-artifact-toolbar-copy-menu-bg"]=t.copyMenuBackground,e["--persona-dropdown-bg"]=(Ot=e["--persona-dropdown-bg"])!=null?Ot:t.copyMenuBackground),t.copyMenuBorder&&(e["--persona-artifact-toolbar-copy-menu-border"]=t.copyMenuBorder,e["--persona-dropdown-border"]=(Et=e["--persona-dropdown-border"])!=null?Et:t.copyMenuBorder),t.copyMenuShadow&&(e["--persona-artifact-toolbar-copy-menu-shadow"]=t.copyMenuShadow,e["--persona-dropdown-shadow"]=(It=e["--persona-dropdown-shadow"])!=null?It:t.copyMenuShadow),t.copyMenuBorderRadius&&(e["--persona-artifact-toolbar-copy-menu-radius"]=t.copyMenuBorderRadius,e["--persona-dropdown-radius"]=(Wt=e["--persona-dropdown-radius"])!=null?Wt:t.copyMenuBorderRadius),t.copyMenuItemHoverBackground&&(e["--persona-artifact-toolbar-copy-menu-item-hover-bg"]=t.copyMenuItemHoverBackground,e["--persona-dropdown-item-hover-bg"]=(Vt=e["--persona-dropdown-item-hover-bg"])!=null?Vt:t.copyMenuItemHoverBackground),t.iconBackground&&(e["--persona-artifact-toolbar-icon-bg"]=t.iconBackground),t.toolbarBorder&&(e["--persona-artifact-toolbar-border"]=t.toolbarBorder)}if(c!=null&&c.tab){let t=c.tab;t.background&&(e["--persona-artifact-tab-bg"]=t.background),t.activeBackground&&(e["--persona-artifact-tab-active-bg"]=t.activeBackground),t.activeBorder&&(e["--persona-artifact-tab-active-border"]=t.activeBorder),t.borderRadius&&(e["--persona-artifact-tab-radius"]=t.borderRadius),t.textColor&&(e["--persona-artifact-tab-color"]=t.textColor),t.hoverBackground&&(e["--persona-artifact-tab-hover-bg"]=t.hoverBackground),t.listBackground&&(e["--persona-artifact-tab-list-bg"]=t.listBackground),t.listBorderColor&&(e["--persona-artifact-tab-list-border-color"]=t.listBorderColor),t.listPadding&&(e["--persona-artifact-tab-list-padding"]=t.listPadding)}if(c!=null&&c.pane){let t=c.pane;if(t.toolbarBackground){let J=(zt=Ya(a,t.toolbarBackground))!=null?zt:t.toolbarBackground;e["--persona-artifact-toolbar-bg"]=J}}return e}var cr={colors:{primary:{50:"#ffffff",100:"#f5f5f5",200:"#d4d4d4",300:"#a3a3a3",400:"#737373",500:"#171717",600:"#0f0f0f",700:"#0a0a0a",800:"#050505",900:"#030303",950:"#000000"},secondary:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},accent:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},success:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},warning:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},error:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"}}},Jt=a=>{if(!(!a||typeof a!="object"||Array.isArray(a)))return a},xr=()=>{var a;return typeof document!="undefined"&&document.documentElement.classList.contains("dark")||typeof window!="undefined"&&((a=window.matchMedia)!=null&&a.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light"},hr=a=>{var e;let o=(e=a==null?void 0:a.colorScheme)!=null?e:"light";return o==="light"?"light":o==="dark"?"dark":xr()},gr=a=>hr(a),Cr=a=>Q(a),br=a=>{var e;let o=Q(void 0,{validate:!1});return Q({...a,palette:{...o.palette,colors:{...cr.colors,...(e=a==null?void 0:a.palette)==null?void 0:e.colors}}},{validate:!1})},yr=a=>{let o=gr(a),e=Jt(a==null?void 0:a.theme),l=Jt(a==null?void 0:a.darkTheme);return o==="dark"?br(j(e!=null?e:{},l!=null?l:{})):Cr(e)},Sr=a=>Qt(a),$a=(a,o)=>{let e=yr(o),l=Sr(e);for(let[r,d]of Object.entries(l))a.style.setProperty(r,d)};var $t="data-persona-launcher-critical",wr=a=>{if(a instanceof HTMLElement)return a;if(typeof a=="string"){let o=document.querySelector(a);if(o)return o}return document.body},Yt=a=>{var o;return{...a,launcher:{...Ja,...a==null?void 0:a.launcher,dock:{...Ja.dock,...(o=a==null?void 0:a.launcher)==null?void 0:o.dock}}}},kr=a=>{if(typeof window=="undefined"||typeof document=="undefined")throw new Error("AgentWidgetLauncher can only be mounted in a browser environment");let{onOpen:o}=a,e=wr(a.target),l=Yt(a.config),r=document.createElement("div");r.setAttribute("data-persona-root","true"),r.setAttribute($t,"true"),$a(r,l);let d=Xt(l,o);return r.appendChild(d.element),e.appendChild(r),{root:r,element:d.element,update:s=>{let u=Yt(s);$a(r,u),d.update(u)},destroy:()=>{d.destroy(),r.remove()}}};return lr(Mr);})();
|
|
10
10
|
/*! Bundled license information:
|
|
11
11
|
|
|
12
12
|
lucide/dist/esm/icons/activity.mjs:
|