@syntrologie/runtime-sdk 2.8.0-canary.137 → 2.8.0-canary.138
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/adaptives/adaptive-nav/index.js +5 -5
- package/dist/adaptives/adaptive-nav/index.js.map +3 -3
- package/dist/api-lit.d.ts +16 -0
- package/dist/bootstrap-types.d.ts +12 -0
- package/dist/{chunk-H523K5XA.js → chunk-G3TY4AIC.js} +13 -4
- package/dist/{chunk-H523K5XA.js.map → chunk-G3TY4AIC.js.map} +2 -2
- package/dist/index.js +42 -16
- package/dist/index.js.map +2 -2
- package/dist/react.js +1 -1
- package/dist/runtime.d.ts +15 -0
- package/dist/smart-canvas.esm.js +108 -108
- package/dist/smart-canvas.esm.js.map +3 -3
- package/dist/smart-canvas.js +53 -19
- package/dist/smart-canvas.js.map +2 -2
- package/dist/smart-canvas.min.js +108 -108
- package/dist/smart-canvas.min.js.map +3 -3
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var za=t=>{throw TypeError(t)};var sa=(t,e,a)=>e.has(t)||za("Cannot "+a);var la=(t,e,a)=>(sa(t,e,"read from private field"),a?a.call(t):e.get(t)),Ge=(t,e,a)=>e.has(t)?za("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,a),ve=(t,e,a,o)=>(sa(t,e,"write to private field"),o?o.call(t,a):e.set(t,a),a),R=(t,e,a)=>(sa(t,e,"access private method"),a);function M(...t){return t.filter(Boolean).join(" ")}function Va(){return typeof SynOS<"u"&&SynOS.React||{}}function Xa(t,e,a){var o=Va(),s=e||{},l=s.children;return delete s.children,a!==void 0&&(s.key=a),Array.isArray(l)?o.createElement.apply(null,[t,s].concat(l)):l!==void 0?o.createElement(t,s,l):o.createElement(t,s)}var n=Xa,x=Xa,me=Va().Fragment;function V(){return typeof SynOS<"u"&&SynOS.React||{}}var da=new Proxy({},{get:function(t,e){return V()[e]}});function B(){return V().useState.apply(null,arguments)}function O(){return V().useEffect.apply(null,arguments)}function le(){return V().useMemo.apply(null,arguments)}function A(){return V().useCallback.apply(null,arguments)}function ae(){return V().useRef.apply(null,arguments)}function ja(){return V().useReducer.apply(null,arguments)}function We(){return V().useId.apply(null,arguments)}function Ae(){return V().createElement.apply(null,arguments)}function ze(){return V().forwardRef.apply(null,arguments)}var Pe=V(),qr=Pe.Fragment,Or=Pe.Suspense,$r=Pe.Children,Ur=Pe.Component,Nr=Pe.PureComponent;function Jt(){return typeof SynOS<"u"&&SynOS.ReactDOM||{}}var Wr=new Proxy({},{get:function(t,e){return Jt()[e]}});var $={id:"id",class:"class",tag:"tag",attribute:"attribute",nthchild:"nthchild",nthoftype:"nthoftype"};var Yt="CssSelectorGenerator";function Ve(t="unknown problem",...e){console.warn(`${Yt}: ${t}`,...e)}var as={selectors:[$.id,$.class,$.tag,$.attribute],includeTag:!1,whitelist:[],blacklist:[],combineWithinSelector:!0,combineBetweenSelectors:!0,root:null,maxCombinations:Number.POSITIVE_INFINITY,maxCandidates:Number.POSITIVE_INFINITY,useScope:!1};function Ka(t){return t instanceof RegExp}function eo(t){return t.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".+")}function ua(t){let e=t.map(a=>{if(Ka(a))return o=>a.test(o);if(typeof a=="function")return o=>{let s=a(o);return typeof s!="boolean"?(Ve("pattern matcher function invalid","Provided pattern matching function does not return boolean. It's result will be ignored.",a),!1):s};if(typeof a=="string"){let o=new RegExp("^"+eo(a)+"$");return s=>o.test(s)}return Ve("pattern matcher invalid","Pattern matching only accepts strings, regular expressions and/or functions. This item is invalid and will be ignored.",a),()=>!1});return a=>e.some(o=>o(a))}var to=new RegExp(["^$","\\s"].join("|")),oo=new RegExp(["^$"].join("|")),Za=[$.nthoftype,$.tag,$.id,$.class,$.attribute,$.nthchild];var hs=ua(["class","id","ng-*"]);var il="3a".toUpperCase();var je=(...t)=>t.filter((e,a,o)=>!!e&&e.trim()!==""&&o.indexOf(e)===a).join(" ").trim();var Ya=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var Qa=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,a,o)=>o?o.toUpperCase():a.toLowerCase());var ia=t=>{let e=Qa(t);return e.charAt(0).toUpperCase()+e.slice(1)};var et={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var at=t=>{for(let e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};var tt=ze(({color:t="currentColor",size:e=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:s="",children:l,iconNode:d,...f},c)=>Ae("svg",{ref:c,...et,width:e,height:e,stroke:t,strokeWidth:o?Number(a)*24/Number(e):a,className:je("lucide",s),...!l&&!at(f)&&{"aria-hidden":"true"},...f},[...d.map(([m,h])=>Ae(m,h)),...Array.isArray(l)?l:[l]]));var ot=(t,e)=>{let a=ze(({className:o,...s},l)=>Ae(tt,{ref:l,iconNode:e,className:je(`lucide-${Ya(ia(t))}`,`lucide-${t}`,o),...s}));return a.displayName=ia(t),a};var co=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],he=ot("check",co);function fa({found:t,onClick:e}){let a=e?t?"Click to scroll to element":"Click to navigate to page":t?"Found on this page":"Not found on this page",o=t?"se-text-green-4":"se-text-text-tertiary",s=t?"se-bg-green-4":"se-bg-text-tertiary",l=M("se-inline-flex se-items-center se-gap-1 se-text-xs se-font-medium se-shrink-0",o,e&&"se-cursor-pointer hover:se-opacity-80"),d=n("span",{"data-indicator":"",className:M("se-w-1.5 se-h-1.5 se-rounded-full",s)});return e?x("button",{type:"button",className:M(l,"se-border-none se-bg-transparent se-p-0"),title:a,onClick:f=>{f.stopPropagation(),e(f)},children:[d,"GoTo"]}):x("span",{className:l,title:a,children:[d,"GoTo"]})}function ca({count:t,children:e}){let[a,o]=B(!1);return x("div",{className:"se-mt-4 se-cursor-pointer se-select-none",children:[x("div",{role:"button",tabIndex:0,className:"se-text-xs se-font-semibold se-text-text-secondary se-flex se-items-center se-gap-1.5 se-cursor-pointer",onClick:()=>o(!a),onKeyDown:s=>{(s.key==="Enter"||s.key===" ")&&o(!a)},children:[n("span",{children:a?"\u25BE":"\u25B8"}),x("span",{children:["Dismissed (",t,")"]})]}),a&&n("div",{className:"se-mt-1.5",children:e})]})}function pa({children:t}){return n("div",{className:"se-flex-1 se-overflow-auto se-p-6",children:t})}function ma({children:t,itemKey:e,onClick:a,onMouseEnter:o,onMouseLeave:s,className:l,validated:d}){return n("div",{"data-item-key":e,role:a?"button":void 0,tabIndex:a?0:void 0,onClick:a,onKeyDown:a?f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),a())}:void 0,onMouseEnter:o,onMouseLeave:s,className:M("se-py-2 se-px-2.5 se-rounded-lg se-border se-bg-card-bg se-shadow-sm se-mb-1 se-text-sm se-text-text-primary",d?"se-border-green-4/50 se-shadow-glow-green":"se-border-border-primary",a&&"se-cursor-pointer hover:se-border-border-primary/80 hover:se-bg-sidebar-hover se-transition-colors",l),children:t})}function ha({title:t,subtitle:e}){return x("div",{className:"se-px-4 se-pt-3 se-pb-2",children:[n("h2",{className:"se-m-0 se-text-base se-font-semibold se-text-text-primary",children:t}),e&&n("p",{className:"se-mt-0.5 se-mb-0 se-text-xs se-text-text-secondary",children:e})]})}function de({label:t,className:e,id:a,...o}){let s=We(),l=a||s;return x("div",{children:[t&&n("label",{htmlFor:l,className:"se-text-sm se-font-medium se-text-input-field-text-label se-mb-1 se-block",children:t}),n("input",{id:l,...o,className:M("se-w-full se-py-2 se-px-3 se-rounded-lg se-border se-border-input-field-border se-bg-slate-grey-3 se-text-text-primary se-text-sm se-font-[inherit] se-mb-2 se-box-border","placeholder:se-text-input-field-text-placeholder","focus:se-border-input-field-border-selected focus:se-outline-none focus:se-shadow-focus-primary","disabled:se-bg-input-field-bg-disabled disabled:se-cursor-not-allowed disabled:se-opacity-50",e)})]})}function xa({children:t}){return n("div",{className:"se-flex se-flex-col se-h-full se-font-sans",children:t})}var N={white:"#ffffff",black:"#000000"},_={0:"#2c0b0a",1:"#5b1715",2:"#89221f",3:"#b72e2a",4:"#d44844",5:"#dd6d69",6:"#e5918f",7:"#eeb6b4",8:"#f6dada",9:"#faebea"},u={0:"#07080a",1:"#0f1318",2:"#0e1114",3:"#1c222a",4:"#2b333f",5:"#394454",6:"#475569",7:"#677384",8:"#87919f",9:"#a8afba",10:"#cbd0d7",11:"#e8eaee",12:"#f6f7f9"},P={0:"#07230a",1:"#0e4514",2:"#16681e",3:"#1d8a28",4:"#24ad32",5:"#4fbd5a",6:"#7acd82",7:"#a5deab",8:"#d0eed3",9:"#e5f6e7"},X={0:"#301f09",1:"#5f3e12",2:"#8f5e1b",3:"#be7d24",4:"#ee9c2d",5:"#f1b057",6:"#f5c481",7:"#f8d7ab",8:"#fcebd5",9:"#fdf5ea"},H={0:"#330707",1:"#660f0e",2:"#991616",3:"#cc1e1d",4:"#ff2524",5:"#ff5150",6:"#ff7c7c",7:"#ffa8a7",8:"#ffd3d3",9:"#ffe9e9"},xe={0:"#051533",1:"#0a2a66",2:"#0f3f98",3:"#1454cb",4:"#1969fe",5:"#4787fe",6:"#75a5fe",7:"#a3c3ff",8:"#d1e1ff",9:"#e8f0ff"},ge={0:"#662500",1:"#993d00",2:"#cc5800",3:"#ff7700",4:"#fea85d",5:"#fec58f",6:"#ffd6ae",7:"#fee6cd",8:"#fff1e1",9:"#fff8f0"},Y={0:"#151229",1:"#2a2452",2:"#40357c",3:"#5547a5",4:"#6a59ce",5:"#887ad8",6:"#a69be2",7:"#c3bdeb",8:"#e1def5",9:"#f0eefa"},Le={0:"#37091f",1:"#69123c",2:"#9b1c58",3:"#cd2575",4:"#ff2e92",5:"#ff58a8",6:"#ff82be",7:"#ffabd3",8:"#ffd5e9",9:"#ffeaf4"},po={aqua:{0:"#0c5f8d",1:"#146b99",2:"#1d78a6",3:"#2e89b6",4:"#4a9fc4",5:"#6bb4d1",6:"#93cce0",7:"#bddff0",8:"#dceef8",9:"#f2f8fc"},violet:{0:"#6927da",1:"#7839ee",2:"#875bf7",3:"#a48afb",4:"#c3b4fd",5:"#ddd6fe",6:"#ece9fe",7:"#f5f3ff",8:"#fbfaff"},fuchsia:{0:"#9f1ab1",1:"#ba24d5",2:"#d444f1",3:"#e478fa",4:"#eeaafd",5:"#f6d0fe",6:"#fbe8ff",7:"#fdf4ff",8:"#fefaff"},pink:{0:"#a10f5f",1:"#dd2590",2:"#ee46bc",3:"#f670c7",4:"#faa7e0",5:"#fcceee",6:"#fce7f6",7:"#fdf2fa",8:"#fef6fb"}},mo={primary:u[10],secondary:u[9],tertiary:u[8]},ho={primary:u[2],secondary:u[0]},xo={primary:u[4],secondary:u[3]},go={primary:{text:N.white,icon:N.white,border:_[3],backgroundDefault:_[3],backgroundHover:_[2]},neutral:{text:u[10],textHover:N.white,icon:u[10],iconHover:N.white,border:u[4],background:u[2]},link:{text:N.white,icon:N.white,hover:_[5]},error:{text:H[5],hover:H[6]},success:{text:P[5],hover:P[6]}},Lo={slateGrey:{content:u[10],pillOutline:u[10],borderPrimary:u[5],borderSecondary:u[5],background:u[3]},brand:{content:_[9],pillOutline:_[9],borderPrimary:_[6],borderSecondary:_[6],background:_[0]},red:{content:H[8],pillOutline:H[4],borderPrimary:H[2],borderSecondary:H[2],background:H[0]},yellow:{content:X[8],pillOutline:X[4],borderPrimary:X[2],borderSecondary:X[2],background:X[0]},green:{content:P[8],pillOutline:P[4],borderPrimary:P[2],borderSecondary:P[2],background:P[0]},purple:{content:Y[8],pillOutline:Y[4],borderPrimary:Y[2],borderSecondary:Y[2],background:Y[0]},blue:{content:xe[8],pillOutline:xe[4],borderPrimary:xe[2],borderSecondary:xe[2],background:xe[0]},orange:{content:ge[8],pillOutline:ge[4],borderPrimary:ge[2],borderSecondary:ge[2],background:ge[0]},pink:{content:Le[8],pillOutline:Le[4],borderPrimary:Le[2],borderSecondary:Le[2],background:Le[0]}},Io={green:{content:P[8],border:P[2],background:P[0]},yellow:{content:X[8],border:X[2],background:X[0]},red:{content:H[8],border:H[2],background:H[0]}},Co={green:{content:P[1],background:P[9]},yellow:{content:X[1],background:X[9]},red:{content:H[1],background:H[9]}},So={content:u[10],border:u[4],background:u[3]},bo={backgroundDefault:u[2],backgroundHover:u[1],selected:u[3]},wo={background:u[2],icon:u[10],borderDefault:u[4],borderSelected:_[3],textLabel:u[9],textPlaceholder:u[8],textHint:u[8]},yo={backgroundDefault:u[2],backgroundDisabled:u[0],textLabel:u[9],textPlaceholder:u[8],textHint:u[8],textError:H[5],iconDefault:u[9],iconPlaceholder:u[10],iconError:H[5],borderDefault:u[4],borderSelected:_[3],borderError:H[5]},ko={handleDefault:N.white,handleDisabled:u[10],off:{backgroundDefault:u[4],backgroundHover:u[5],backgroundDisabled:u[4]},on:{backgroundDefault:P[3],backgroundHover:P[2],backgroundDisabled:u[4]}},vo={off:{backgroundDefault:"#00000000",backgroundHover:u[5],backgroundDisabled:u[2],border:u[6]},on:{backgroundDefault:P[0],backgroundHover:P[1],backgroundDisabled:u[2],border:P[3]}},Ao={content:u[10],background:u[4]},Po={background:u[4],active:P[3]},To={background:u[1],content:u[9],border:u[4]},Mo={backgroundDefault:u[1],backgroundHover:u[3],backgroundActive:u[4],border:u[4],contentPrimary:u[10],contentSecondary:u[9],contentTertiary:u[8]},Do={background:u[1],content:u[9],border:u[4]},Ro={activeBackground:u[3],activeContent:_[5],inactiveContent:u[9],border:u[4]},Bo={header:{textDefault:u[9],textHover:u[8],backgroundDefault:u[1]},border:u[4],cell:{textPrimary:u[10],textSecondary:u[9],backgroundDefault:u[2],backgroundHover:u[1]}},Fo={textPrimaryDefault:u[10],textPrimaryHover:u[10],textSecondaryDefault:u[8],textSecondaryHover:u[9],iconPrimary:u[10],iconSecondary:u[8]},Eo={background:P[1],active:P[5]},_o={textDefault:u[10],textSelected:N.white,textDisabled:u[7],backgroundDefault:u[2],backgroundMiddle:u[3],backgroundSelected:_[3],border:u[4]},Ho=u[9],r={base:N,brand:_,slateGrey:u,green:P,yellow:X,red:H,blue:xe,orange:ge,purple:Y,pink:Le,legacy:po,text:mo,background:ho,border:xo,button:go,badge:Lo,badgeBanner:Io,alert:Co,tag:So,menu:bo,inputDropdown:wo,inputField:yo,toggle:ko,checkbox:vo,avatar:Ao,progressBarSlider:Po,card:To,sidebar:Mo,modal:Do,tab:Ro,table:Bo,breadcrumbs:Fo,loadingIndicator:Eo,datePicker:_o,scroll:Ho};var ga={xs:"0 1px 2px 0 rgba(16,24,40,0.05)",sm:"0 1px 3px 0 rgba(16,24,40,0.10), 0 1px 2px -1px rgba(16,24,40,0.10)",md:"0 4px 6px -1px rgba(16,24,40,0.10), 0 2px 4px -2px rgba(16,24,40,0.10)",lg:"0 10px 15px -3px rgba(16,24,40,0.10), 0 4px 6px -4px rgba(16,24,40,0.10)",xl:"0 20px 25px -5px rgba(16,24,40,0.10), 0 8px 10px -6px rgba(16,24,40,0.10)","2xl":"0 25px 50px -12px rgba(16,24,40,0.25)","3xl":"0 35px 60px -15px rgba(16,24,40,0.35)",inner:"inset 0 2px 4px 0 rgba(16,24,40,0.05)",none:"none"},Ke={primary:"0 0 0 4px rgba(221,109,105,0.25), 0 1px 2px 0 rgba(16,24,40,0.05)",neutral:"0 0 0 4px rgba(135,145,159,0.25), 0 1px 2px 0 rgba(16,24,40,0.05)",error:"0 0 0 4px rgba(255,81,80,0.25), 0 1px 2px 0 rgba(16,24,40,0.05)"},Te={sm:"8px",md:"16px",lg:"24px",xl:"40px"},La={solid:"rgba(0,0,0,0.70)",blur:"rgba(0,0,0,0.25)"},rt={"glow-green":"0 0 20px -8px rgba(34,197,94,0.3)","glow-brand":"0 0 25px rgba(212,72,68,0.25)","glow-brand-sm":"0 0 0 1px rgba(212,72,68,0.15)","glow-brand-md":"0 0 0 2px rgba(212,72,68,0.3)","glow-brand-active":"0 0.375rem 0.875rem -0.625rem rgba(212,72,68,0.8)","glow-brand-tab":"0 0.5rem 1.25rem -0.75rem rgba(212,72,68,0.7)","glow-brand-nav":"0 0.625rem 1.875rem -1.125rem rgba(212,72,68,0.9)"},st={"elevation-sm":"0 8px 24px -16px rgba(0,0,0,0.6)","elevation-md":"0 12px 32px -18px rgba(0,0,0,0.6)","elevation-lg":"0 18px 48px -24px rgba(0,0,0,0.65)","elevation-card":"0 0.75rem 2rem -1.25rem rgba(0,0,0,0.7)","elevation-card-soft":"0 0.75rem 2.375rem -0.75rem rgba(0,0,0,0.4)","elevation-card-tight":"0 0.625rem 1.625rem -1.125rem rgba(0,0,0,0.6)"};var zd={darkMode:["class"],theme:{extend:{colors:{white:r.base.white,black:r.base.black,brand:{0:r.brand[0],1:r.brand[1],2:r.brand[2],3:r.brand[3],4:r.brand[4],5:r.brand[5],6:r.brand[6],7:r.brand[7],8:r.brand[8],9:r.brand[9],DEFAULT:r.brand[3]},"slate-grey":{0:r.slateGrey[0],1:r.slateGrey[1],2:r.slateGrey[2],3:r.slateGrey[3],4:r.slateGrey[4],5:r.slateGrey[5],6:r.slateGrey[6],7:r.slateGrey[7],8:r.slateGrey[8],9:r.slateGrey[9],10:r.slateGrey[10],11:r.slateGrey[11],12:r.slateGrey[12],DEFAULT:r.slateGrey[6]},green:{0:r.green[0],1:r.green[1],2:r.green[2],3:r.green[3],4:r.green[4],5:r.green[5],6:r.green[6],7:r.green[7],8:r.green[8],9:r.green[9],DEFAULT:r.green[4]},yellow:{0:r.yellow[0],1:r.yellow[1],2:r.yellow[2],3:r.yellow[3],4:r.yellow[4],5:r.yellow[5],6:r.yellow[6],7:r.yellow[7],8:r.yellow[8],9:r.yellow[9],DEFAULT:r.yellow[4]},red:{0:r.red[0],1:r.red[1],2:r.red[2],3:r.red[3],4:r.red[4],5:r.red[5],6:r.red[6],7:r.red[7],8:r.red[8],9:r.red[9],DEFAULT:r.red[4]},blue:{0:r.blue[0],1:r.blue[1],2:r.blue[2],3:r.blue[3],4:r.blue[4],5:r.blue[5],6:r.blue[6],7:r.blue[7],8:r.blue[8],9:r.blue[9],DEFAULT:r.blue[4]},orange:{0:r.orange[0],1:r.orange[1],2:r.orange[2],3:r.orange[3],4:r.orange[4],5:r.orange[5],6:r.orange[6],7:r.orange[7],8:r.orange[8],9:r.orange[9],DEFAULT:r.orange[3]},purple:{0:r.purple[0],1:r.purple[1],2:r.purple[2],3:r.purple[3],4:r.purple[4],5:r.purple[5],6:r.purple[6],7:r.purple[7],8:r.purple[8],9:r.purple[9],DEFAULT:r.purple[4]},pink:{0:r.pink[0],1:r.pink[1],2:r.pink[2],3:r.pink[3],4:r.pink[4],5:r.pink[5],6:r.pink[6],7:r.pink[7],8:r.pink[8],9:r.pink[9],DEFAULT:r.pink[4]},text:{primary:r.text.primary,secondary:r.text.secondary,tertiary:r.text.tertiary,DEFAULT:r.text.primary},background:{primary:r.background.primary,secondary:r.background.secondary,DEFAULT:r.background.primary},border:{primary:r.border.primary,secondary:r.border.secondary,DEFAULT:r.border.primary},"btn-primary":{DEFAULT:r.button.primary.backgroundDefault,hover:r.button.primary.backgroundHover,text:r.button.primary.text,border:r.button.primary.border},"btn-neutral":{DEFAULT:r.button.neutral.background,text:r.button.neutral.text,"text-hover":r.button.neutral.textHover,border:r.button.neutral.border},"btn-link":{text:r.button.link.text,hover:r.button.link.hover},"btn-error":{text:r.button.error.text,hover:r.button.error.hover},"btn-success":{text:r.button.success.text,hover:r.button.success.hover},card:{bg:r.card.background,content:r.card.content,border:r.card.border},modal:{bg:r.modal.background,content:r.modal.content,border:r.modal.border},sidebar:{DEFAULT:r.sidebar.backgroundDefault,hover:r.sidebar.backgroundHover,active:r.sidebar.backgroundActive,border:r.sidebar.border,"content-primary":r.sidebar.contentPrimary,"content-secondary":r.sidebar.contentSecondary,"content-tertiary":r.sidebar.contentTertiary},tab:{"active-bg":r.tab.activeBackground,"active-content":r.tab.activeContent,"inactive-content":r.tab.inactiveContent,border:r.tab.border},"table-header":{text:r.table.header.textDefault,"text-hover":r.table.header.textHover,bg:r.table.header.backgroundDefault},"table-cell":{"text-primary":r.table.cell.textPrimary,"text-secondary":r.table.cell.textSecondary,bg:r.table.cell.backgroundDefault,"bg-hover":r.table.cell.backgroundHover},"table-border":r.table.border,"input-field":{bg:r.inputField.backgroundDefault,"bg-disabled":r.inputField.backgroundDisabled,"text-label":r.inputField.textLabel,"text-placeholder":r.inputField.textPlaceholder,"text-hint":r.inputField.textHint,"text-error":r.inputField.textError,border:r.inputField.borderDefault,"border-selected":r.inputField.borderSelected,"border-error":r.inputField.borderError},"badge-slate":{content:r.badge.slateGrey.content,outline:r.badge.slateGrey.pillOutline,border:r.badge.slateGrey.borderPrimary,bg:r.badge.slateGrey.background},"badge-brand":{content:r.badge.brand.content,outline:r.badge.brand.pillOutline,border:r.badge.brand.borderPrimary,bg:r.badge.brand.background},"badge-green":{content:r.badge.green.content,outline:r.badge.green.pillOutline,border:r.badge.green.borderPrimary,bg:r.badge.green.background},"badge-yellow":{content:r.badge.yellow.content,outline:r.badge.yellow.pillOutline,border:r.badge.yellow.borderPrimary,bg:r.badge.yellow.background},"badge-red":{content:r.badge.red.content,outline:r.badge.red.pillOutline,border:r.badge.red.borderPrimary,bg:r.badge.red.background},"badge-blue":{content:r.badge.blue.content,outline:r.badge.blue.pillOutline,border:r.badge.blue.borderPrimary,bg:r.badge.blue.background},"badge-purple":{content:r.badge.purple.content,outline:r.badge.purple.pillOutline,border:r.badge.purple.borderPrimary,bg:r.badge.purple.background},"badge-orange":{content:r.badge.orange.content,outline:r.badge.orange.pillOutline,border:r.badge.orange.borderPrimary,bg:r.badge.orange.background},"badge-pink":{content:r.badge.pink.content,outline:r.badge.pink.pillOutline,border:r.badge.pink.borderPrimary,bg:r.badge.pink.background},toggle:{handle:r.toggle.handleDefault,"handle-disabled":r.toggle.handleDisabled,"off-bg":r.toggle.off.backgroundDefault,"off-bg-hover":r.toggle.off.backgroundHover,"on-bg":r.toggle.on.backgroundDefault,"on-bg-hover":r.toggle.on.backgroundHover},menu:{DEFAULT:r.menu.backgroundDefault,hover:r.menu.backgroundHover,selected:r.menu.selected},"alert-green":{content:r.alert.green.content,bg:r.alert.green.background},"alert-yellow":{content:r.alert.yellow.content,bg:r.alert.yellow.background},"alert-red":{content:r.alert.red.content,bg:r.alert.red.background}},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}]},spacing:{0:"0",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"},borderRadius:{none:"0",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},boxShadow:{...ga,...rt,...st,DEFAULT:ga.sm,"focus-primary":Ke.primary,"focus-neutral":Ke.neutral,"focus-error":Ke.error},backdropBlur:{sm:Te.sm,md:Te.md,lg:Te.lg,xl:Te.xl},backgroundColor:{"overlay-solid":La.solid,"overlay-blur":La.blur},keyframes:{"fade-in":{"0%":{opacity:"0"},"100%":{opacity:"1"}},"fade-out":{"0%":{opacity:"1"},"100%":{opacity:"0"}},"slide-in-from-top":{"0%":{transform:"translateY(-100%)"},"100%":{transform:"translateY(0)"}},"slide-in-from-bottom":{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0)"}},"slide-in-from-left":{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(0)"}},"slide-in-from-right":{"0%":{transform:"translateX(100%)"},"100%":{transform:"translateX(0)"}}},animation:{"fade-in":"fade-in 0.2s ease-out","fade-out":"fade-out 0.2s ease-out","slide-in-from-top":"slide-in-from-top 0.3s ease-out","slide-in-from-bottom":"slide-in-from-bottom 0.3s ease-out","slide-in-from-left":"slide-in-from-left 0.3s ease-out","slide-in-from-right":"slide-in-from-right 0.3s ease-out"}}}};var qo="linear-gradient(160deg, rgba(7,8,10,0.84) 0%, rgba(14,17,20,0.88) 45%, rgba(15,19,24,0.84) 100%)",Oo={floating:"0 8px 60px rgba(0,0,0,0.5)",dockedLeft:"20px 0 60px rgba(0,0,0,0.5)",dockedRight:"-20px 0 60px rgba(0,0,0,0.5)"},$o="12px",Uo={size:56,inset:12,background:N.black,color:N.white,border:`2px solid ${_[3]}`,shadowOpen:"0 4px 24px rgba(0,0,0,0.6), 0 0 0 2px rgba(255,255,255,0.08)",shadowClosed:"0 4px 24px rgba(0,0,0,0.6)"},No={minWidth:480,minHeight:400,handleSize:8,dragThreshold:5,snapThreshold:20},Go={background:qo,shadows:Oo,backdropBlur:$o,fab:Uo,behavior:No},F=Go;var fu=F.behavior.minWidth,cu=F.behavior.minHeight,pu=F.fab.size,mu=F.fab.inset,hu=F.behavior.snapThreshold,xu=F.behavior.dragThreshold,D=F.behavior.handleSize;var gu=[{dir:"n",style:{top:0,left:D,right:D,height:D},cursor:"ns-resize"},{dir:"s",style:{bottom:0,left:D,right:D,height:D},cursor:"ns-resize"},{dir:"e",style:{right:0,top:D,bottom:D,width:D},cursor:"ew-resize"},{dir:"w",style:{left:0,top:D,bottom:D,width:D},cursor:"ew-resize"},{dir:"ne",style:{top:0,right:0,width:D*2,height:D*2},cursor:"nesw-resize"},{dir:"nw",style:{top:0,left:0,width:D*2,height:D*2},cursor:"nwse-resize"},{dir:"se",style:{bottom:0,right:0,width:D*2,height:D*2},cursor:"nwse-resize"},{dir:"sw",style:{bottom:0,left:0,width:D*2,height:D*2},cursor:"nesw-resize"}];function Ia({message:t}){return n("div",{className:"se-text-center se-py-8 se-px-4 se-text-text-secondary se-text-sm",children:t})}function Ca({label:t,count:e,className:a}){return x("div",{className:M("se-text-xs se-font-bold se-text-text-primary se-uppercase se-tracking-wide se-py-1 se-pb-2 se-flex se-items-center se-justify-between",a),children:[n("span",{children:t}),n("span",{className:"se-text-xs se-text-text-secondary se-bg-badge-slate-bg se-px-1.5 se-py-0.5 se-rounded-lg",children:e})]})}function zo({current:t,target:e}){let a=Math.min(100,Math.round(t/Math.max(e,1)*100));return x("div",{className:"se-flex se-items-center se-gap-0.5",children:[n("span",{className:"se-inline-block se-w-8 se-h-1 se-rounded-full se-bg-white/20",title:`${t}/${e} (${a}%)`,children:n("span",{className:M("se-block se-h-full se-rounded-full se-transition-all",a>=100?"se-bg-green-4":"se-bg-blue-4"),style:{width:`${a}%`}})}),x("span",{className:"se-text-[11px] se-font-medium se-text-text-secondary",children:[t,"/",e]})]})}function Vo({cs:t,isLast:e}){let a=!!t.formatted.progress,o=!t.passed&&a&&t.formatted.progress.current>0;return x("div",{className:"se-flex se-items-center se-gap-0",children:[x("div",{className:"se-flex se-flex-col se-items-center se-min-w-0",children:[n("div",{"data-journey-node":!0,"data-passed":t.passed?"true":"false",className:M("se-w-4 se-h-4 se-rounded-full se-border-2 se-flex se-items-center se-justify-center se-shrink-0",t.passed?"se-bg-green-4 se-border-green-4":o?"se-bg-blue-4 se-border-blue-4":"se-bg-transparent se-border-white/30"),children:t.passed&&n(he,{className:"se-w-2.5 se-h-2.5 se-text-white"})}),n("span",{className:"se-text-[11px] se-font-medium se-text-text-secondary se-truncate se-max-w-[60px] se-text-center se-mt-0.5",title:t.formatted.instruction,children:t.formatted.shortLabel}),a&&n(zo,{current:t.formatted.progress.current,target:t.formatted.progress.target})]}),!e&&n("div",{"data-journey-line":!0,className:M("se-h-0.5 se-w-4 se-self-start se-mt-2 se-shrink-0",t.passed?"se-bg-green-4":"se-bg-white/20")})]})}function Sa({status:t}){if(!t||t.conditions.length===0)return n("div",{className:"se-mt-1 se-text-[12px] se-font-medium se-text-text-secondary se-italic",children:"Always Present"});let{conditions:e}=t,a=e.every(s=>s.passed),o=e.length>1;return x("div",{className:"se-mt-1",children:[n("div",{className:"se-flex se-items-start",children:e.map((s,l)=>n(Vo,{cs:s,isLast:l===e.length-1},l))}),a&&o&&x("div",{className:"se-flex se-items-center se-gap-1 se-mt-1 se-text-[12px] se-text-green-4",children:[n(he,{className:"se-w-3 se-h-3"}),n("span",{children:"All conditions met"})]})]})}var Gu={minWidth:F.behavior.minWidth,minHeight:F.behavior.minHeight,dragThreshold:F.behavior.dragThreshold,snapThreshold:F.behavior.snapThreshold,fabSize:F.fab.size,fabInset:F.fab.inset,storageKey:"syntro:editor-panel"},Wu=F.behavior.handleSize;function ue(t){switch(t){case"gte":return"\u2265";case"lte":return"\u2264";case"gt":return">";case"lt":return"<";case"eq":return"=";default:return t}}function Xo(t){return t.replace(/[-_]/g," ").toLowerCase()}function jo(t){return t.replace(/\/?\*+$/,"/").replace(/\/\/$/,"/")}var Ko=/page.?view/i,Zo=/click/i;function ba(t,e){switch(t.type){case"event_count":{let a=t.key,o=t.operator,s=t.count,l=e??0,d=Xo(a),f,c;if(Ko.test(d)){let m=d.replace(/\s*page\s*views?\s*/i,"").trim();f=m?`View ${m} pages ${s}+ times`:`View pages ${s}+ times`,c=`View ${s}+ times`}else if(Zo.test(d)){let m=d.replace(/\s*clicks?\s*/i,"").trim();f=m?`Click ${m} ${s}+ times`:`Click ${s}+ times`,c=`${s}+ clicks`}else{let m=d.trim().split(" ").filter(h=>h).pop()||"events";f=`Reach ${s}+ ${d} events`,c=`${s}+ ${m}s`}return{label:`${a} ${ue(o)} ${s}`,instruction:f,shortLabel:c,progress:{current:l,target:s,operator:o}}}case"page_url":{let a=t.url,o=jo(a),l=a!==o?`Visit a ${o} page`:`Visit ${o}`;return{label:`${a}`,instruction:l,shortLabel:o}}case"anchor_visible":{let a=t.anchorId,o=typeof a=="string"?a:a?.selector??"",s=t.state;return{label:`${o} (${s})`,instruction:`Scroll until ${o} is ${s}`,shortLabel:`${o}`}}case"event_occurred":{let a=t.eventName;return{label:`${a}`,instruction:`Trigger a ${a} event`,shortLabel:`${a}`}}case"state_equals":{let a=t.key,o=t.value===void 0?"undefined":JSON.stringify(t.value);return{label:`${a} = ${o}`,instruction:`${a} equals ${o}`,shortLabel:`${a}`}}case"viewport":{let a=[];t.minWidth!==void 0&&a.push(`w ${ue("gte")} ${t.minWidth}px`),t.maxWidth!==void 0&&a.push(`w ${ue("lte")} ${t.maxWidth}px`),t.minHeight!==void 0&&a.push(`h ${ue("gte")} ${t.minHeight}px`),t.maxHeight!==void 0&&a.push(`h ${ue("lte")} ${t.maxHeight}px`);let o=a.join(", ")||"any viewport",s=a.length>0?`Use a viewport ${a.join(" and ")}`:"Use a viewport of any size",l=a.length>0?a[0]:"Any size";return{label:o,instruction:s,shortLabel:l}}case"session_metric":{let a=t.key,o=t.operator,s=t.threshold;return{label:`${a} ${ue(o)} ${s}`,instruction:`${a} reaches ${s}+`,shortLabel:`${a} ${s}+`}}case"dismissed":{let a=t.inverted,s=t.key||"this";return{label:a?"not dismissed":"dismissed",instruction:a?`Do not dismiss ${s}`:`Dismiss ${s}`,shortLabel:a?"Not dismissed":"Dismissed"}}case"cooldown_active":{let a=t.inverted;return{label:a?"cooldown inactive":"cooldown active",instruction:a?"Wait for cooldown to expire":"Cooldown is active",shortLabel:a?"Cooldown done":"Cooldown active"}}case"frequency_limit":{let a=t.inverted,o=t.limit;return{label:`shown ${ue(a?"lt":"gte")} ${o} times`,instruction:a?`Shown fewer than ${o} times`:`Shown ${o}+ times`,shortLabel:a?`< ${o} views`:`${o}+ views`}}case"route":{let a=t.routeId;return{label:`${a}`,instruction:`Navigate to ${a} route`,shortLabel:`${a}`}}default:return{label:`${t.type}`,instruction:`${t.type}`,shortLabel:`${t.type}`}}}function lt(){let t=window.SynOS?.handle?.runtime;return t?.evaluateSync?{evaluateSync:t.evaluateSync.bind(t),accumulator:t.accumulator}:null}function Jo(t,e){if(t.type!=="rules"||!t.rules?.length)return{visible:!!t.default,isFallback:!0,conditions:[]};let a=e.evaluateSync(t),o=(a.matchInfo?.evaluatedConditions??[]).map(({condition:s,result:l})=>{let d=s.type==="event_count"&&e.accumulator?e.accumulator.getCount(s.key,s.withinMs):void 0,f=ba(s,d);return{type:s.type,passed:l,formatted:f}});return{visible:a.value,isFallback:a.isFallback,conditions:o}}function wa(t){let[e,a]=B(new Map),o=ae(t);o.current=t;let s=A(()=>{let l=lt();if(!l)return;let d=new Map;for(let f of o.current)f.triggerWhen?d.set(f.id,Jo(f.triggerWhen,l)):d.set(f.id,null);a(d)},[]);return O(()=>{s();let l=lt(),d=[];l?.accumulator&&d.push(l.accumulator.subscribe(s));let f=setInterval(s,2e3);return()=>{d.forEach(c=>c()),clearInterval(f)}},[s]),e}var ya={field_mapping:{event:{action_step_key:"event",hogql:"event",athena:"event_category",athena_transform:"category_map",runtime_event_field:"name",runtime_transform:"event_name_map"},text:{action_step_key:"text",hogql:"properties.$el_text",athena:"el_text",runtime_element_field:"$el_text"},tag_name:{action_step_key:"tag_name",hogql:"properties.$el_tag_name",athena:"tag_name",runtime_element_field:"tag_name"},url:{action_step_key:"url",hogql:"properties.$current_url",hogql_match:"like",athena:"pathname",athena_match:"like",athena_transform:"url_to_path",runtime_prop:"url"},selector:{action_step_key:"selector",hogql:"properties.$el_selector",athena:null,runtime_element_field:null}},event_category_map:{$autocapture:"click",$pageview:"pageview",$pageleave:"pageleave",$feature_flag_called:"feature_flag"},event_name_map:{$autocapture:"ui.click",$pageview:"nav.page_view",$pageleave:"nav.page_leave"},interactive_tags:["a","button","input","select","textarea","form","summary"],interactive_roles:["button","link","menuitem","tab","switch","checkbox","radio","option"],test_cases:[{name:"CTA button click \u2014 span inside anchor",action_step:{event:"$autocapture",tag_name:"a",text:"Start Free Filing"},posthog_event:{event:"$autocapture",properties:{$current_url:"https://taxinator.com/",$el_text:"Start Free Filing",$elements:[{tag_name:"span",$el_text:"Start Free Filing"},{tag_name:"a",$el_text:"Start Free Filing \u2192",attr__href:"/dashboard","attr__data-cta":"hero-primary"},{tag_name:"div",$el_text:""},{tag_name:"section",$el_text:""}]}},should_match_hogql:!0,should_match_athena:!0,recommended_index:1,expected_action_step_from_recommended:{event:"$autocapture",tag_name:"a",text:"Start Free Filing \u2192",url:"https://taxinator.com/"}},{name:"Pageview from link href",action_step:{event:"$pageview",url:"/pricing"},posthog_event:{event:"$pageview",properties:{$current_url:"https://taxinator.com/pricing",$elements:[{tag_name:"a",$el_text:"See Plans & Pricing",attr__href:"/pricing"}]}},should_match_hogql:!0,should_match_athena:!0,recommended_index:0,expected_action_step_from_recommended:{event:"$pageview",tag_name:"a",text:"See Plans & Pricing",url:"https://taxinator.com/pricing"}},{name:"Non-matching \u2014 wrong tag and text",action_step:{event:"$autocapture",tag_name:"button",text:"Submit"},posthog_event:{event:"$autocapture",properties:{$current_url:"https://taxinator.com/",$el_text:"Cancel",$elements:[{tag_name:"span",$el_text:"Cancel"},{tag_name:"a",$el_text:"Cancel",attr__href:"/home"}]}},should_match_hogql:!1,should_match_athena:!1,recommended_index:1,expected_action_step_from_recommended:{event:"$autocapture",tag_name:"a",text:"Cancel",url:"https://taxinator.com/"}},{name:"Selector only \u2014 matches HogQL but not Athena",action_step:{event:"$autocapture",selector:"#signup-btn"},posthog_event:{event:"$autocapture",properties:{$current_url:"https://taxinator.com/",$el_selector:"#signup-btn",$elements:[{tag_name:"button",$el_text:"Sign Up"}]}},should_match_hogql:!0,should_match_athena:!1,recommended_index:0,expected_action_step_from_recommended:{event:"$autocapture",tag_name:"button",text:"Sign Up",url:"https://taxinator.com/"}},{name:"No interactive ancestor \u2014 falls back to elements[0]",action_step:{event:"$autocapture",tag_name:"div",text:"Hero Banner"},posthog_event:{event:"$autocapture",properties:{$current_url:"https://taxinator.com/",$el_text:"Hero Banner",$elements:[{tag_name:"div",$el_text:"Hero Banner"},{tag_name:"section",$el_text:""},{tag_name:"main",$el_text:""}]}},should_match_hogql:!0,should_match_athena:!0,recommended_index:0,expected_action_step_from_recommended:{event:"$autocapture",tag_name:"div",text:"Hero Banner",url:"https://taxinator.com/"}}]};var Yu=new Set(ya.interactive_tags),Qu=new Set(ya.interactive_roles);function Qo(t,e){return t.length<=e?t:`${t.slice(0,e).trimEnd()}...`}function er(t){return typeof t=="object"&&t!==null&&t.type==="rules"&&Array.isArray(t.rules)}function dt(t){if(!t||!er(t))return"All pages";let e=[],a=[];for(let s of t.rules)for(let l of s.conditions)l.type==="page_url"&&typeof l.url=="string"&&e.push(l.url),l.type==="anchor_visible"&&typeof l.anchorId=="string"&&a.push(l.anchorId);let o=[];return e.length>0&&o.push(e[0]),a.length>0&&o.push(a[0]),o.length>0?o.join(" \xB7 "):"All pages"}function ut(t){let e=t.config.icon||"\u{1F9ED}",a=Qo(t.config.title,30);return`${e} ${a}`}var ar=["nav","navigation"];function Ie(t){return ar.some(e=>t.kind.startsWith(`${e}:`))}function tr(t){return typeof t=="object"&&t!==null&&t.type==="rules"&&Array.isArray(t.rules)}function va(t){if(!t||!tr(t))return{pagePatterns:[],anchorSelectors:[],hasTargeting:!1};let e=new Set,a=new Set;for(let s of t.rules)for(let l of s.conditions){let d=l;d.type==="page_url"&&typeof d.url=="string"?e.add(d.url):d.type==="anchor_visible"&&typeof d.anchorId=="string"&&a.add(d.anchorId)}let o=e.size>0||a.size>0;return{pagePatterns:[...e],anchorSelectors:[...a],hasTargeting:o}}function nt(t){return va(t).pagePatterns[0]||null}function or(t){return va(t).anchorSelectors[0]||null}function it(t){try{sessionStorage.setItem("syntro:editor:pending-highlight",t)}catch{}}function ft(t){return(t.actions||[]).filter(Ie).map((a,o)=>({key:String(o),index:o,summary:ut(a),trigger:dt(a.triggerWhen),rationale:a.rationale,firstAnchor:or(a.triggerWhen),tip:a}))}function ka(t,e){let a=(t.actions||[]).filter(Ie);return{...t,actions:a.filter((o,s)=>!e.has(String(s)))}}function rr(t,e){let[a,o]=B(new Map),s=ae(t);return s.current=t,O(()=>{let l=()=>{let f=new Map,c=e();for(let m of s.current){let h=va(m.tip.triggerWhen),p=!0;h.pagePatterns.length>0&&(p=h.pagePatterns.some(k=>new RegExp(`^${k.replace(/\*\*/g,".*").replace(/(?<!\.)(\*)/g,"[^/]*")}$`).test(c)));let y=!1,L=null;if(m.firstAnchor)try{L=document.querySelector(m.firstAnchor),y=L!==null}catch{}else y=p;f.set(m.key,{found:p&&y,element:L})}o(f)};l();let d=setInterval(l,2e3);return window.addEventListener("popstate",l),()=>{clearInterval(d),window.removeEventListener("popstate",l)}},[e]),a}function sr({config:t,onChange:e,editor:a}){let o=t,[s,l]=B(()=>a.getDismissedKeys?.()??new Set),[d,f]=B(null),[c,m]=B("after"),[h,p]=B(null);O(()=>{a.setDismissedKeys?.(s)},[s,a]),O(()=>{let i=a.previewMode;if(i)if(i==="before"){let T=new Set(ft(o).map(z=>z.key)),C=ka(o,T);a.previewConfig(C)}else a.previewConfig(t)},[a.previewMode]);let y=ae(!1);O(()=>{y.current||(y.current=!0,a.initialEditKey!=null&&f(String(a.initialEditKey)),a.clearInitialState?.())},[a]);let L=ft(o),k=L.filter(i=>!s.has(i.key)),v=L.filter(i=>s.has(i.key)),Z=k.length,U=le(()=>L.map(i=>({id:i.key,triggerWhen:i.tip.triggerWhen})),[L]),g=wa(U),I=rr(L,a.getCurrentRoute),w=k.filter(i=>I.get(i.key)?.found).length,q=A(i=>{l(T=>{let C=new Set(T);return C.add(i),C}),d===i&&f(null)},[d]),ee=A(i=>{l(T=>{let C=new Set(T);return C.delete(i),C})},[]),J=A(i=>{f(i.key)},[]),ce=A(async i=>{let T=nt(i.tip.triggerWhen);T&&(i.firstAnchor&&it(i.firstAnchor),await a.navigateTo(T)),i.firstAnchor&&a.highlightElement(i.firstAnchor)},[a]),pe=A(()=>{f(null),m("after"),a.previewConfig(t),a.clearHighlight()},[a,t]);O(()=>(a.setBackHandler?.(d!==null?pe:null),()=>a.setBackHandler?.(null)),[d,pe,a]);let Ue=A(i=>{if(m(i),i==="before"){let T=ka(o,new Set([d]));a.previewConfig(T)}else a.previewConfig(t)},[o,d,a,t]),W=A((i,T,C)=>{let z=(o.actions||[]).filter(Ie).slice(),E={...z[i],config:{...z[i].config}};E.config[T]=C,z[i]=E;let jt=(o.actions||[]).filter(Zt=>!Ie(Zt)),Kt={...o,actions:[...jt,...z]};e(Kt),a.setDirty(!0)},[o,e,a]),Wa=A(()=>{if(s.size>0){let i=ka(o,s);e(i)}a.publish()},[s,o,e,a]),oa=A(async i=>{if(I.get(i.key)?.found&&i.firstAnchor)a.highlightElement(i.firstAnchor);else{let C=nt(i.tip.triggerWhen);C&&(i.firstAnchor&&it(i.firstAnchor),await a.navigateTo(C)),i.firstAnchor&&a.highlightElement(i.firstAnchor)}},[a,I]),ra=A(i=>{p(i.key),i.firstAnchor&&a.highlightElement(i.firstAnchor)},[a]),Ne=A(()=>{p(null),a.clearHighlight()},[a]),Vt=i=>{let C=(o.actions||[]).filter(Ie)[i];if(!C)return null;let z=L.find(E=>E.key===String(i));return x("div",{className:"se-py-1",children:[z&&z.trigger!=="All pages"&&x("button",{type:"button","data-trigger":!0,className:"se-flex se-items-center se-gap-1 se-text-[11px] se-text-slate-grey-8 se-cursor-pointer se-mb-1 se-border-none se-bg-transparent se-p-0 se-text-left",onClick:()=>ce(z),children:[n("span",{children:"\u{1F4CD}"}),n("span",{children:z.trigger})]}),n(de,{label:"Title",value:C.config.title,onChange:E=>W(i,"title",E.target.value)}),n(de,{label:"Description",value:C.config.description,onChange:E=>W(i,"description",E.target.value)}),n(de,{label:"Link URL",value:C.config.href||"",onChange:E=>W(i,"href",E.target.value),placeholder:"Optional"}),n(de,{label:"Icon",value:C.config.icon||"",onChange:E=>W(i,"icon",E.target.value),placeholder:"e.g., \\u{1f9ed}"}),n(de,{label:"Category",value:C.config.category||"",onChange:E=>W(i,"category",E.target.value),placeholder:"Optional"}),x("label",{className:"se-flex se-items-center se-gap-2 se-text-xs se-text-slate-grey-8 se-mb-2",children:[n("input",{type:"checkbox",checked:C.config.external||!1,onChange:E=>W(i,"external",E.target.checked)}),"Open in new tab"]}),n("span",{className:"se-text-[11px] se-font-semibold se-text-slate-grey-7 se-mb-1 se-block",children:"AI Rationale"}),n("div",{className:"se-p-2 se-rounded se-border se-border-dashed se-border-white/15 se-bg-white/[0.02] se-text-slate-grey-8 se-text-xs se-mb-2",children:C.rationale?C.rationale.why:"N/A"})]})},Xt=`${Z} tip${Z!==1?"s":""}${Z>0?` (${w} found on this page)`:""}`;return x(xa,{children:[n(ha,{title:"Navigation Tips",subtitle:Xt,onBack:()=>a.navigateHome()}),n(pa,{children:d!==null?(()=>{let i=Number(d),T=L.find(C=>C.key===d);return x(me,{children:[x("div",{className:"se-flex se-items-center se-gap-2 se-mb-3 se-text-[13px] se-font-semibold se-text-slate-grey-10",children:[n("span",{children:"\u{1F9ED}"}),n("span",{children:T?.summary})]}),Vt(i)]})})():x(me,{children:[L.length===0&&n(Ia,{message:"No tips configured."}),k.length>0&&x(me,{children:[n(Ca,{label:"TIPS",count:k.length}),k.map(i=>{let T=I.get(i.key);return x(ma,{itemKey:i.key,onClick:()=>J(i),onMouseEnter:()=>ra(i),onMouseLeave:Ne,children:[i.trigger!=="All pages"&&x("button",{type:"button","data-trigger":!0,className:"se-flex se-items-center se-gap-1 se-text-[11px] se-text-slate-grey-8 se-cursor-pointer se-mb-1 se-border-none se-bg-transparent se-p-0 se-text-left",onClick:C=>{C.stopPropagation(),ce(i)},children:[n("span",{children:"\u{1F4CD}"}),n("span",{children:i.trigger})]}),x("div",{"data-card-body":!0,role:"button",tabIndex:0,className:"se-flex se-items-center se-gap-2 se-cursor-pointer",onClick:()=>J(i),onKeyDown:C=>{(C.key==="Enter"||C.key===" ")&&J(i)},children:[n(fa,{found:T?.found??!1,onClick:()=>oa(i)}),n("span",{className:"se-flex-1 se-overflow-hidden se-text-ellipsis se-whitespace-nowrap",children:i.summary}),n("button",{type:"button",className:"se-py-0.5 se-px-1.5 se-rounded se-border-none se-bg-transparent se-text-slate-grey-7 se-text-sm se-cursor-pointer se-shrink-0 se-leading-none",onClick:C=>{C.stopPropagation(),q(i.key)},title:"Dismiss this tip",children:"\xD7"})]}),x("div",{className:"se-text-[10px] se-text-slate-grey-7 se-mt-1",children:["WHY: ",i.rationale?i.rationale.why:"N/A"]}),n(Sa,{status:g.get(i.key)??null})]},i.key)})]}),v.length>0&&n(ca,{count:v.length,children:v.map(i=>x("div",{className:"se-flex se-items-center se-gap-2 se-py-1.5 se-px-2.5 se-rounded-md se-border se-border-white/[0.03] se-bg-transparent se-mb-0.5 se-cursor-pointer se-text-xs se-text-slate-grey-6 se-opacity-60",children:[n("span",{className:"se-flex-1 se-overflow-hidden se-text-ellipsis se-whitespace-nowrap se-line-through",children:i.summary}),n("button",{type:"button",className:"se-py-0.5 se-px-1.5 se-rounded se-border-none se-bg-transparent se-text-blue-5 se-text-[11px] se-cursor-pointer se-shrink-0 se-leading-none",onClick:T=>{T.stopPropagation(),ee(i.key)},children:"Restore"})]},i.key))})]})})]})}var ct={title:"Navigation Tips",icon:"\u{1F9ED}",description:"Navigation tips accordion with per-item visibility"};var pt=sr;function mt(){return typeof SynOS<"u"&&SynOS.ReactDOM||{}}var Zn=new Proxy({},{get:function(t,e){return mt()[e]}});function Aa(){return mt().createRoot.apply(null,arguments)}var lr={"\u{1F4B5}":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="12" x="2" y="6" rx="2"/><circle cx="12" cy="12" r="2"/><path d="M6 12h.01M18 12h.01"/></svg>',"\u{1F3DB}\uFE0F":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" x2="21" y1="22" y2="22"/><line x1="6" x2="6" y1="18" y2="11"/><line x1="10" x2="10" y1="18" y2="11"/><line x1="14" x2="14" y1="18" y2="11"/><line x1="18" x2="18" y1="18" y2="11"/><polygon points="12 2 20 7 4 7"/></svg>',"\u23ED\uFE0F":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 4 15 12 5 20 5 4"/><line x1="19" x2="19" y1="5" y2="19"/></svg>',"\u27A1\uFE0F":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>',"\u{1F4A1}":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></svg>',"\u{1F4B0}":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="12" x="2" y="6" rx="2"/><circle cx="12" cy="12" r="2"/><path d="M6 12h.01M18 12h.01"/></svg>',"\u{1F4CB}":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"/><path d="M12 11h4"/><path d="M12 16h4"/><path d="M8 11h.01"/><path d="M8 16h.01"/></svg>',"\u2705":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><path d="m9 11 3 3L22 4"/></svg>',"\u26A0\uFE0F":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"/></svg>'};function dr(t){return lr[t]??ur(t)}function ur(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}var j={container:{fontFamily:"var(--sc-font-family, system-ui, -apple-system, sans-serif)",maxWidth:"100%",overflow:"hidden"},accordion:{display:"flex",flexDirection:"column",gap:"var(--sc-content-item-gap, 6px)"},item:{borderRadius:"var(--sc-content-border-radius, 8px)",overflow:"hidden",transition:"box-shadow 0.2s ease"},header:{display:"flex",alignItems:"center",gap:"8px",width:"100%",padding:"var(--sc-content-item-padding, 12px 16px)",border:"none",cursor:"pointer",fontSize:"var(--sc-content-item-font-size, 15px)",fontWeight:500,fontFamily:"inherit",textAlign:"left",transition:"background-color 0.15s ease"},chevron:{fontSize:"20px",transition:"transform 0.2s ease",marginLeft:"auto",flexShrink:0,color:"var(--sc-content-chevron-color, currentColor)"},icon:{fontSize:"16px",flexShrink:0},body:{overflow:"hidden",transition:"max-height 0.25s ease, padding-bottom 0.25s ease",padding:"var(--sc-content-body-padding, 0 16px 12px 16px)"},description:{fontSize:"var(--sc-content-body-font-size, 14px)",lineHeight:"1.5",margin:0},linkButton:{display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"10px",padding:"6px 12px",borderRadius:"6px",textDecoration:"none",fontSize:"13px",fontWeight:500,cursor:"pointer",border:"none",transition:"background-color 0.15s ease"},categoryHeader:{fontSize:"var(--sc-content-category-font-size, 12px)",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.05em",padding:"var(--sc-content-category-padding, 8px 4px 4px 4px)"},emptyState:{fontSize:"13px",padding:"16px",textAlign:"center"}},Ze={light:{container:{backgroundColor:"transparent",color:"inherit"},item:{backgroundColor:"var(--sc-content-background)",border:"var(--sc-content-border)"},itemExpanded:{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.08)"},header:{backgroundColor:"transparent",color:"var(--sc-content-text-color)"},headerHover:{backgroundColor:"var(--sc-content-background-hover)"},body:{color:"var(--sc-content-text-secondary-color)"},linkButton:{backgroundColor:`var(--sc-color-primary, ${Y[4]})`,color:"#ffffff"},categoryHeader:{color:u[7]},emptyState:{color:u[8]}},dark:{container:{backgroundColor:"transparent",color:"inherit"},item:{backgroundColor:"var(--sc-content-background)",border:"var(--sc-content-border)"},itemExpanded:{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)"},header:{backgroundColor:"transparent",color:"var(--sc-content-text-color)"},headerHover:{backgroundColor:"var(--sc-content-background-hover)"},body:{color:"var(--sc-content-text-secondary-color)"},linkButton:{backgroundColor:`var(--sc-color-primary, ${Y[4]})`,color:"#ffffff"},categoryHeader:{color:u[8]},emptyState:{color:u[7]}}};function ht(t){if(typeof window>"u")return!1;let e=window.location.pathname;return t.some(a=>{let o=a.split("?")[0].split("#")[0];return o.endsWith("/**")?e.startsWith(o.slice(0,-3)):e===o})}function nr(t){let e=[{boxShadow:"0 0 0 0 rgba(13, 148, 136, 0.5)"},{boxShadow:"0 0 0 8px rgba(13, 148, 136, 0)"}];t.animate(e,{duration:600,iterations:3,easing:"ease-out"})}function ir({item:t,isExpanded:e,isLast:a,onToggle:o,onNavigate:s,onFocusAnchor:l,theme:d}){let[f,c]=B(!1),m=Ze[d],{title:h,description:p,href:y,icon:L,external:k,anchor:v}=t.config,Z={...j.item,...m.item,...e?m.itemExpanded:{},...a?{}:{borderBottom:"var(--sc-content-item-divider, none)"}},U={...j.header,...m.header,...f?m.headerHover:{}},g={...j.chevron,transform:e?"rotate(90deg)":"rotate(0deg)"},I={...j.body,...m.body,maxHeight:e?"500px":"0",paddingBottom:e?"16px":"0"},w=v?Array.isArray(v.route)?v.route[0]:v.route:y,q=v?ht(Array.isArray(v.route)?v.route:[v.route]):w?ht([w]):!1,ee=v?.selector&&v.selector!=="*",J=q&&ee,ce=!!w||J,pe=W=>{W.preventDefault(),W.stopPropagation(),J&&v?l(v):w&&s(w,k??!1)},Ue=J?"Focus \u2192":k?"Go \u2197":"Go \u2192";return x("div",{style:Z,"data-nav-tip-id":t.config.id,children:[x("button",{type:"button",style:U,onClick:o,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),"aria-expanded":e,children:[L&&n("span",{style:j.icon,dangerouslySetInnerHTML:{__html:dr(L)}}),n("span",{children:h}),n("span",{style:g,children:"\u203A"})]}),x("div",{style:I,"aria-hidden":!e,children:[n("p",{style:j.description,children:p}),ce&&n("a",{href:w||"#",onClick:pe,style:{...j.linkButton,...m.linkButton},target:k?"_blank":void 0,rel:k?"noopener noreferrer":void 0,children:Ue})]})]})}function fr({config:t,runtime:e,instanceId:a}){let[o,s]=ja(g=>g+1,0),[l,d]=B(new Set);O(()=>e.context.subscribe(()=>{s()}),[e.context]),O(()=>{if(e.accumulator?.subscribe)return e.accumulator.subscribe(()=>{s()})},[e.accumulator]);let f=le(()=>t.actions.filter(g=>{if(!g.triggerWhen)return!0;try{return e.evaluateSync(g.triggerWhen).value}catch{return!1}}),[t.actions,e,o]),c=le(()=>{let g=new Map;for(let I of f){let w=I.config.category;g.has(w)||g.set(w,[]),g.get(w).push(I)}return g},[f]),m=le(()=>f.some(g=>g.config.category),[f]),h=le(()=>t.theme&&t.theme!=="auto"?t.theme:typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light",[t.theme]),p=A(g=>{d(I=>{let w=I.has(g),q;if(t.expandBehavior==="single"){for(let ee of I)ee!==g&&e.events.publish("nav:toggled",{instanceId:a,tipId:ee,expanded:!1,timestamp:Date.now()});q=w?new Set:new Set([g])}else q=new Set(I),w?q.delete(g):q.add(g);return e.events.publish("nav:toggled",{instanceId:a,tipId:g,expanded:!w,timestamp:Date.now()}),q})},[t.expandBehavior,e.events,a]),y=A((g,I)=>{let w=g.trim().toLowerCase();if(!(w.startsWith("javascript:")||w.startsWith("data:")))if(e.events.publish("nav:tip_clicked",{instanceId:a,href:g,external:I,timestamp:Date.now()}),I)window.open(g,"_blank","noopener,noreferrer");else{let q=new URL(g,window.location.origin);q.search=window.location.search,Me(q.toString())||(window.history.pushState(null,"",q.toString()),window.dispatchEvent(new PopStateEvent("popstate")))}},[e.events,a]),L=A(g=>{let I=document.querySelector(g.selector);I instanceof HTMLElement&&(e.events.publish("nav:tip_focused",{instanceId:a,selector:g.selector,route:g.route,timestamp:Date.now()}),I.scrollIntoView({behavior:"smooth",block:"center"}),nr(I),setTimeout(()=>I.focus(),400))},[e.events,a]),k={...j.container,...Ze[h].container},v={...j.categoryHeader,...Ze[h].categoryHeader},Z={...j.emptyState,...Ze[h].emptyState},U=g=>g.map((I,w)=>n(ir,{item:I,isExpanded:l.has(I.config.id),isLast:w===g.length-1,onToggle:()=>p(I.config.id),onNavigate:y,onFocusAnchor:L,theme:h},I.config.id));return f.length===0?n("div",{style:k,"data-adaptive-id":a,"data-adaptive-type":"adaptive-nav",children:n("div",{style:Z,children:"You're all set for now! We'll share helpful tips here when they're relevant to what you're doing."})}):n("div",{style:k,"data-adaptive-id":a,"data-adaptive-type":"adaptive-nav",children:n("div",{style:j.accordion,children:m?Array.from(c.entries()).map(([g,I])=>x(da.Fragment,{children:[g&&n("div",{style:v,"data-category-header":g,children:g}),U(I)]},g??"__ungrouped")):U(f)})})}var xt={mount(t,e){let{runtime:a,instanceId:o="nav-widget",...s}=e||{expandBehavior:"single",theme:"auto",actions:[]};if(a&&typeof Aa=="function"){let l=Aa(t);return l.render(da.createElement(fr,{config:s,runtime:a,instanceId:o})),()=>{l.unmount()}}}};var Je=globalThis,Qe=Je.ShadowRoot&&(Je.ShadyCSS===void 0||Je.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Lt=Symbol(),gt=new WeakMap,Ye=class{constructor(e,a,o){if(this._$cssResult$=!0,o!==Lt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=a}get styleSheet(){let e=this.o,a=this.t;if(Qe&&e===void 0){let o=a!==void 0&&a.length===1;o&&(e=gt.get(a)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&>.set(a,e))}return e}toString(){return this.cssText}},It=t=>new Ye(typeof t=="string"?t:t+"",void 0,Lt);var Ct=(t,e)=>{if(Qe)t.adoptedStyleSheets=e.map(a=>a instanceof CSSStyleSheet?a:a.styleSheet);else for(let a of e){let o=document.createElement("style"),s=Je.litNonce;s!==void 0&&o.setAttribute("nonce",s),o.textContent=a.cssText,t.appendChild(o)}},Pa=Qe?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let a="";for(let o of e.cssRules)a+=o.cssText;return It(a)})(t):t;var{is:cr,defineProperty:pr,getOwnPropertyDescriptor:mr,getOwnPropertyNames:hr,getOwnPropertySymbols:xr,getPrototypeOf:gr}=Object,te=globalThis,St=te.trustedTypes,Lr=St?St.emptyScript:"",Ir=te.reactiveElementPolyfillSupport,De=(t,e)=>t,Ta={toAttribute(t,e){switch(e){case Boolean:t=t?Lr:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let a=t;switch(e){case Boolean:a=t!==null;break;case Number:a=t===null?null:Number(t);break;case Object:case Array:try{a=JSON.parse(t)}catch{a=null}}return a}},wt=(t,e)=>!cr(t,e),bt={attribute:!0,type:String,converter:Ta,reflect:!1,useDefault:!1,hasChanged:wt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),te.litPropertyMetadata??(te.litPropertyMetadata=new WeakMap);var Q=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,a=bt){if(a.state&&(a.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((a=Object.create(a)).wrapped=!0),this.elementProperties.set(e,a),!a.noAccessor){let o=Symbol(),s=this.getPropertyDescriptor(e,o,a);s!==void 0&&pr(this.prototype,e,s)}}static getPropertyDescriptor(e,a,o){let{get:s,set:l}=mr(this.prototype,e)??{get(){return this[a]},set(d){this[a]=d}};return{get:s,set(d){let f=s?.call(this);l?.call(this,d),this.requestUpdate(e,f,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??bt}static _$Ei(){if(this.hasOwnProperty(De("elementProperties")))return;let e=gr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(De("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(De("properties"))){let a=this.properties,o=[...hr(a),...xr(a)];for(let s of o)this.createProperty(s,a[s])}let e=this[Symbol.metadata];if(e!==null){let a=litPropertyMetadata.get(e);if(a!==void 0)for(let[o,s]of a)this.elementProperties.set(o,s)}this._$Eh=new Map;for(let[a,o]of this.elementProperties){let s=this._$Eu(a,o);s!==void 0&&this._$Eh.set(s,a)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let a=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let s of o)a.unshift(Pa(s))}else e!==void 0&&a.push(Pa(e));return a}static _$Eu(e,a){let o=a.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,a=this.constructor.elementProperties;for(let o of a.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ct(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,a,o){this._$AK(e,o)}_$ET(e,a){let o=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,o);if(s!==void 0&&o.reflect===!0){let l=(o.converter?.toAttribute!==void 0?o.converter:Ta).toAttribute(a,o.type);this._$Em=e,l==null?this.removeAttribute(s):this.setAttribute(s,l),this._$Em=null}}_$AK(e,a){let o=this.constructor,s=o._$Eh.get(e);if(s!==void 0&&this._$Em!==s){let l=o.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:Ta;this._$Em=s;let f=d.fromAttribute(a,l.type);this[s]=f??this._$Ej?.get(s)??f,this._$Em=null}}requestUpdate(e,a,o,s=!1,l){if(e!==void 0){let d=this.constructor;if(s===!1&&(l=this[e]),o??(o=d.getPropertyOptions(e)),!((o.hasChanged??wt)(l,a)||o.useDefault&&o.reflect&&l===this._$Ej?.get(e)&&!this.hasAttribute(d._$Eu(e,o))))return;this.C(e,a,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,a,{useDefault:o,reflect:s,wrapped:l},d){o&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,d??a??this[e]),l!==!0||d!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(a=void 0),this._$AL.set(e,a)),s===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(a){Promise.reject(a)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[s,l]of o){let{wrapped:d}=l,f=this[s];d!==!0||this._$AL.has(s)||f===void 0||this.C(s,void 0,l,f)}}let e=!1,a=this._$AL;try{e=this.shouldUpdate(a),e?(this.willUpdate(a),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(a)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(a)}willUpdate(e){}_$AE(e){this._$EO?.forEach(a=>a.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(a=>this._$ET(a,this[a]))),this._$EM()}updated(e){}firstUpdated(e){}};Q.elementStyles=[],Q.shadowRootOptions={mode:"open"},Q[De("elementProperties")]=new Map,Q[De("finalized")]=new Map,Ir?.({ReactiveElement:Q}),(te.reactiveElementVersions??(te.reactiveElementVersions=[])).push("2.1.2");var Be=globalThis,yt=t=>t,ea=Be.trustedTypes,kt=ea?ea.createPolicy("lit-html",{createHTML:t=>t}):void 0,Dt="$lit$",oe=`lit$${Math.random().toFixed(9).slice(2)}$`,Rt="?"+oe,Cr=`<${Rt}>`,fe=document,Fe=()=>fe.createComment(""),Ee=t=>t===null||typeof t!="object"&&typeof t!="function",_a=Array.isArray,Sr=t=>_a(t)||typeof t?.[Symbol.iterator]=="function",Ma=`[
|
|
1
|
+
"use strict";(()=>{var za=t=>{throw TypeError(t)};var sa=(t,e,a)=>e.has(t)||za("Cannot "+a);var la=(t,e,a)=>(sa(t,e,"read from private field"),a?a.call(t):e.get(t)),Ge=(t,e,a)=>e.has(t)?za("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,a),ve=(t,e,a,o)=>(sa(t,e,"write to private field"),o?o.call(t,a):e.set(t,a),a),R=(t,e,a)=>(sa(t,e,"access private method"),a);function M(...t){return t.filter(Boolean).join(" ")}function Va(){return typeof SynOS<"u"&&SynOS.React||{}}function Xa(t,e,a){var o=Va(),s=e||{},l=s.children;return delete s.children,a!==void 0&&(s.key=a),Array.isArray(l)?o.createElement.apply(null,[t,s].concat(l)):l!==void 0?o.createElement(t,s,l):o.createElement(t,s)}var n=Xa,x=Xa,me=Va().Fragment;function V(){return typeof SynOS<"u"&&SynOS.React||{}}var da=new Proxy({},{get:function(t,e){return V()[e]}});function B(){return V().useState.apply(null,arguments)}function q(){return V().useEffect.apply(null,arguments)}function le(){return V().useMemo.apply(null,arguments)}function A(){return V().useCallback.apply(null,arguments)}function ae(){return V().useRef.apply(null,arguments)}function ja(){return V().useReducer.apply(null,arguments)}function We(){return V().useId.apply(null,arguments)}function Ae(){return V().createElement.apply(null,arguments)}function ze(){return V().forwardRef.apply(null,arguments)}var Pe=V(),qr=Pe.Fragment,$r=Pe.Suspense,Ur=Pe.Children,Nr=Pe.Component,Gr=Pe.PureComponent;function Jt(){return typeof SynOS<"u"&&SynOS.ReactDOM||{}}var zr=new Proxy({},{get:function(t,e){return Jt()[e]}});var $={id:"id",class:"class",tag:"tag",attribute:"attribute",nthchild:"nthchild",nthoftype:"nthoftype"};var Yt="CssSelectorGenerator";function Ve(t="unknown problem",...e){console.warn(`${Yt}: ${t}`,...e)}var ts={selectors:[$.id,$.class,$.tag,$.attribute],includeTag:!1,whitelist:[],blacklist:[],combineWithinSelector:!0,combineBetweenSelectors:!0,root:null,maxCombinations:Number.POSITIVE_INFINITY,maxCandidates:Number.POSITIVE_INFINITY,useScope:!1};function Ka(t){return t instanceof RegExp}function eo(t){return t.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".+")}function ua(t){let e=t.map(a=>{if(Ka(a))return o=>a.test(o);if(typeof a=="function")return o=>{let s=a(o);return typeof s!="boolean"?(Ve("pattern matcher function invalid","Provided pattern matching function does not return boolean. It's result will be ignored.",a),!1):s};if(typeof a=="string"){let o=new RegExp("^"+eo(a)+"$");return s=>o.test(s)}return Ve("pattern matcher invalid","Pattern matching only accepts strings, regular expressions and/or functions. This item is invalid and will be ignored.",a),()=>!1});return a=>e.some(o=>o(a))}var to=new RegExp(["^$","\\s"].join("|")),oo=new RegExp(["^$"].join("|")),Za=[$.nthoftype,$.tag,$.id,$.class,$.attribute,$.nthchild];var xs=ua(["class","id","ng-*"]);var fl="3a".toUpperCase();var je=(...t)=>t.filter((e,a,o)=>!!e&&e.trim()!==""&&o.indexOf(e)===a).join(" ").trim();var Ya=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var Qa=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,a,o)=>o?o.toUpperCase():a.toLowerCase());var ia=t=>{let e=Qa(t);return e.charAt(0).toUpperCase()+e.slice(1)};var et={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var at=t=>{for(let e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};var tt=ze(({color:t="currentColor",size:e=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:s="",children:l,iconNode:d,...f},c)=>Ae("svg",{ref:c,...et,width:e,height:e,stroke:t,strokeWidth:o?Number(a)*24/Number(e):a,className:je("lucide",s),...!l&&!at(f)&&{"aria-hidden":"true"},...f},[...d.map(([m,h])=>Ae(m,h)),...Array.isArray(l)?l:[l]]));var ot=(t,e)=>{let a=ze(({className:o,...s},l)=>Ae(tt,{ref:l,iconNode:e,className:je(`lucide-${Ya(ia(t))}`,`lucide-${t}`,o),...s}));return a.displayName=ia(t),a};var co=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],he=ot("check",co);function fa({found:t,onClick:e}){let a=e?t?"Click to scroll to element":"Click to navigate to page":t?"Found on this page":"Not found on this page",o=t?"se-text-green-4":"se-text-text-tertiary",s=t?"se-bg-green-4":"se-bg-text-tertiary",l=M("se-inline-flex se-items-center se-gap-1 se-text-xs se-font-medium se-shrink-0",o,e&&"se-cursor-pointer hover:se-opacity-80"),d=n("span",{"data-indicator":"",className:M("se-w-1.5 se-h-1.5 se-rounded-full",s)});return e?x("button",{type:"button",className:M(l,"se-border-none se-bg-transparent se-p-0"),title:a,onClick:f=>{f.stopPropagation(),e(f)},children:[d,"GoTo"]}):x("span",{className:l,title:a,children:[d,"GoTo"]})}function ca({count:t,children:e}){let[a,o]=B(!1);return x("div",{className:"se-mt-4 se-cursor-pointer se-select-none",children:[x("div",{role:"button",tabIndex:0,className:"se-text-xs se-font-semibold se-text-text-secondary se-flex se-items-center se-gap-1.5 se-cursor-pointer",onClick:()=>o(!a),onKeyDown:s=>{(s.key==="Enter"||s.key===" ")&&o(!a)},children:[n("span",{children:a?"\u25BE":"\u25B8"}),x("span",{children:["Dismissed (",t,")"]})]}),a&&n("div",{className:"se-mt-1.5",children:e})]})}function pa({children:t}){return n("div",{className:"se-flex-1 se-overflow-auto se-p-6",children:t})}function ma({children:t,itemKey:e,onClick:a,onMouseEnter:o,onMouseLeave:s,className:l,validated:d}){return n("div",{"data-item-key":e,role:a?"button":void 0,tabIndex:a?0:void 0,onClick:a,onKeyDown:a?f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),a())}:void 0,onMouseEnter:o,onMouseLeave:s,className:M("se-py-2 se-px-2.5 se-rounded-lg se-border se-bg-card-bg se-shadow-sm se-mb-1 se-text-sm se-text-text-primary",d?"se-border-green-4/50 se-shadow-glow-green":"se-border-border-primary",a&&"se-cursor-pointer hover:se-border-border-primary/80 hover:se-bg-sidebar-hover se-transition-colors",l),children:t})}function ha({title:t,subtitle:e}){return x("div",{className:"se-px-4 se-pt-3 se-pb-2",children:[n("h2",{className:"se-m-0 se-text-base se-font-semibold se-text-text-primary",children:t}),e&&n("p",{className:"se-mt-0.5 se-mb-0 se-text-xs se-text-text-secondary",children:e})]})}function de({label:t,className:e,id:a,...o}){let s=We(),l=a||s;return x("div",{children:[t&&n("label",{htmlFor:l,className:"se-text-sm se-font-medium se-text-input-field-text-label se-mb-1 se-block",children:t}),n("input",{id:l,...o,className:M("se-w-full se-py-2 se-px-3 se-rounded-lg se-border se-border-input-field-border se-bg-slate-grey-3 se-text-text-primary se-text-sm se-font-[inherit] se-mb-2 se-box-border","placeholder:se-text-input-field-text-placeholder","focus:se-border-input-field-border-selected focus:se-outline-none focus:se-shadow-focus-primary","disabled:se-bg-input-field-bg-disabled disabled:se-cursor-not-allowed disabled:se-opacity-50",e)})]})}function xa({children:t}){return n("div",{className:"se-flex se-flex-col se-h-full se-font-sans",children:t})}var N={white:"#ffffff",black:"#000000"},_={0:"#2c0b0a",1:"#5b1715",2:"#89221f",3:"#b72e2a",4:"#d44844",5:"#dd6d69",6:"#e5918f",7:"#eeb6b4",8:"#f6dada",9:"#faebea"},u={0:"#07080a",1:"#0f1318",2:"#0e1114",3:"#1c222a",4:"#2b333f",5:"#394454",6:"#475569",7:"#677384",8:"#87919f",9:"#a8afba",10:"#cbd0d7",11:"#e8eaee",12:"#f6f7f9"},P={0:"#07230a",1:"#0e4514",2:"#16681e",3:"#1d8a28",4:"#24ad32",5:"#4fbd5a",6:"#7acd82",7:"#a5deab",8:"#d0eed3",9:"#e5f6e7"},X={0:"#301f09",1:"#5f3e12",2:"#8f5e1b",3:"#be7d24",4:"#ee9c2d",5:"#f1b057",6:"#f5c481",7:"#f8d7ab",8:"#fcebd5",9:"#fdf5ea"},H={0:"#330707",1:"#660f0e",2:"#991616",3:"#cc1e1d",4:"#ff2524",5:"#ff5150",6:"#ff7c7c",7:"#ffa8a7",8:"#ffd3d3",9:"#ffe9e9"},xe={0:"#051533",1:"#0a2a66",2:"#0f3f98",3:"#1454cb",4:"#1969fe",5:"#4787fe",6:"#75a5fe",7:"#a3c3ff",8:"#d1e1ff",9:"#e8f0ff"},ge={0:"#662500",1:"#993d00",2:"#cc5800",3:"#ff7700",4:"#fea85d",5:"#fec58f",6:"#ffd6ae",7:"#fee6cd",8:"#fff1e1",9:"#fff8f0"},Y={0:"#151229",1:"#2a2452",2:"#40357c",3:"#5547a5",4:"#6a59ce",5:"#887ad8",6:"#a69be2",7:"#c3bdeb",8:"#e1def5",9:"#f0eefa"},Le={0:"#37091f",1:"#69123c",2:"#9b1c58",3:"#cd2575",4:"#ff2e92",5:"#ff58a8",6:"#ff82be",7:"#ffabd3",8:"#ffd5e9",9:"#ffeaf4"},po={aqua:{0:"#0c5f8d",1:"#146b99",2:"#1d78a6",3:"#2e89b6",4:"#4a9fc4",5:"#6bb4d1",6:"#93cce0",7:"#bddff0",8:"#dceef8",9:"#f2f8fc"},violet:{0:"#6927da",1:"#7839ee",2:"#875bf7",3:"#a48afb",4:"#c3b4fd",5:"#ddd6fe",6:"#ece9fe",7:"#f5f3ff",8:"#fbfaff"},fuchsia:{0:"#9f1ab1",1:"#ba24d5",2:"#d444f1",3:"#e478fa",4:"#eeaafd",5:"#f6d0fe",6:"#fbe8ff",7:"#fdf4ff",8:"#fefaff"},pink:{0:"#a10f5f",1:"#dd2590",2:"#ee46bc",3:"#f670c7",4:"#faa7e0",5:"#fcceee",6:"#fce7f6",7:"#fdf2fa",8:"#fef6fb"}},mo={primary:u[10],secondary:u[9],tertiary:u[8]},ho={primary:u[2],secondary:u[0]},xo={primary:u[4],secondary:u[3]},go={primary:{text:N.white,icon:N.white,border:_[3],backgroundDefault:_[3],backgroundHover:_[2]},neutral:{text:u[10],textHover:N.white,icon:u[10],iconHover:N.white,border:u[4],background:u[2]},link:{text:N.white,icon:N.white,hover:_[5]},error:{text:H[5],hover:H[6]},success:{text:P[5],hover:P[6]}},Lo={slateGrey:{content:u[10],pillOutline:u[10],borderPrimary:u[5],borderSecondary:u[5],background:u[3]},brand:{content:_[9],pillOutline:_[9],borderPrimary:_[6],borderSecondary:_[6],background:_[0]},red:{content:H[8],pillOutline:H[4],borderPrimary:H[2],borderSecondary:H[2],background:H[0]},yellow:{content:X[8],pillOutline:X[4],borderPrimary:X[2],borderSecondary:X[2],background:X[0]},green:{content:P[8],pillOutline:P[4],borderPrimary:P[2],borderSecondary:P[2],background:P[0]},purple:{content:Y[8],pillOutline:Y[4],borderPrimary:Y[2],borderSecondary:Y[2],background:Y[0]},blue:{content:xe[8],pillOutline:xe[4],borderPrimary:xe[2],borderSecondary:xe[2],background:xe[0]},orange:{content:ge[8],pillOutline:ge[4],borderPrimary:ge[2],borderSecondary:ge[2],background:ge[0]},pink:{content:Le[8],pillOutline:Le[4],borderPrimary:Le[2],borderSecondary:Le[2],background:Le[0]}},Io={green:{content:P[8],border:P[2],background:P[0]},yellow:{content:X[8],border:X[2],background:X[0]},red:{content:H[8],border:H[2],background:H[0]}},Co={green:{content:P[1],background:P[9]},yellow:{content:X[1],background:X[9]},red:{content:H[1],background:H[9]}},So={content:u[10],border:u[4],background:u[3]},bo={backgroundDefault:u[2],backgroundHover:u[1],selected:u[3]},wo={background:u[2],icon:u[10],borderDefault:u[4],borderSelected:_[3],textLabel:u[9],textPlaceholder:u[8],textHint:u[8]},yo={backgroundDefault:u[2],backgroundDisabled:u[0],textLabel:u[9],textPlaceholder:u[8],textHint:u[8],textError:H[5],iconDefault:u[9],iconPlaceholder:u[10],iconError:H[5],borderDefault:u[4],borderSelected:_[3],borderError:H[5]},ko={handleDefault:N.white,handleDisabled:u[10],off:{backgroundDefault:u[4],backgroundHover:u[5],backgroundDisabled:u[4]},on:{backgroundDefault:P[3],backgroundHover:P[2],backgroundDisabled:u[4]}},vo={off:{backgroundDefault:"#00000000",backgroundHover:u[5],backgroundDisabled:u[2],border:u[6]},on:{backgroundDefault:P[0],backgroundHover:P[1],backgroundDisabled:u[2],border:P[3]}},Ao={content:u[10],background:u[4]},Po={background:u[4],active:P[3]},To={background:u[1],content:u[9],border:u[4]},Mo={backgroundDefault:u[1],backgroundHover:u[3],backgroundActive:u[4],border:u[4],contentPrimary:u[10],contentSecondary:u[9],contentTertiary:u[8]},Do={background:u[1],content:u[9],border:u[4]},Ro={activeBackground:u[3],activeContent:_[5],inactiveContent:u[9],border:u[4]},Bo={header:{textDefault:u[9],textHover:u[8],backgroundDefault:u[1]},border:u[4],cell:{textPrimary:u[10],textSecondary:u[9],backgroundDefault:u[2],backgroundHover:u[1]}},Fo={textPrimaryDefault:u[10],textPrimaryHover:u[10],textSecondaryDefault:u[8],textSecondaryHover:u[9],iconPrimary:u[10],iconSecondary:u[8]},Eo={background:P[1],active:P[5]},_o={textDefault:u[10],textSelected:N.white,textDisabled:u[7],backgroundDefault:u[2],backgroundMiddle:u[3],backgroundSelected:_[3],border:u[4]},Ho=u[9],r={base:N,brand:_,slateGrey:u,green:P,yellow:X,red:H,blue:xe,orange:ge,purple:Y,pink:Le,legacy:po,text:mo,background:ho,border:xo,button:go,badge:Lo,badgeBanner:Io,alert:Co,tag:So,menu:bo,inputDropdown:wo,inputField:yo,toggle:ko,checkbox:vo,avatar:Ao,progressBarSlider:Po,card:To,sidebar:Mo,modal:Do,tab:Ro,table:Bo,breadcrumbs:Fo,loadingIndicator:Eo,datePicker:_o,scroll:Ho};var ga={xs:"0 1px 2px 0 rgba(16,24,40,0.05)",sm:"0 1px 3px 0 rgba(16,24,40,0.10), 0 1px 2px -1px rgba(16,24,40,0.10)",md:"0 4px 6px -1px rgba(16,24,40,0.10), 0 2px 4px -2px rgba(16,24,40,0.10)",lg:"0 10px 15px -3px rgba(16,24,40,0.10), 0 4px 6px -4px rgba(16,24,40,0.10)",xl:"0 20px 25px -5px rgba(16,24,40,0.10), 0 8px 10px -6px rgba(16,24,40,0.10)","2xl":"0 25px 50px -12px rgba(16,24,40,0.25)","3xl":"0 35px 60px -15px rgba(16,24,40,0.35)",inner:"inset 0 2px 4px 0 rgba(16,24,40,0.05)",none:"none"},Ke={primary:"0 0 0 4px rgba(221,109,105,0.25), 0 1px 2px 0 rgba(16,24,40,0.05)",neutral:"0 0 0 4px rgba(135,145,159,0.25), 0 1px 2px 0 rgba(16,24,40,0.05)",error:"0 0 0 4px rgba(255,81,80,0.25), 0 1px 2px 0 rgba(16,24,40,0.05)"},Te={sm:"8px",md:"16px",lg:"24px",xl:"40px"},La={solid:"rgba(0,0,0,0.70)",blur:"rgba(0,0,0,0.25)"},rt={"glow-green":"0 0 20px -8px rgba(34,197,94,0.3)","glow-brand":"0 0 25px rgba(212,72,68,0.25)","glow-brand-sm":"0 0 0 1px rgba(212,72,68,0.15)","glow-brand-md":"0 0 0 2px rgba(212,72,68,0.3)","glow-brand-active":"0 0.375rem 0.875rem -0.625rem rgba(212,72,68,0.8)","glow-brand-tab":"0 0.5rem 1.25rem -0.75rem rgba(212,72,68,0.7)","glow-brand-nav":"0 0.625rem 1.875rem -1.125rem rgba(212,72,68,0.9)"},st={"elevation-sm":"0 8px 24px -16px rgba(0,0,0,0.6)","elevation-md":"0 12px 32px -18px rgba(0,0,0,0.6)","elevation-lg":"0 18px 48px -24px rgba(0,0,0,0.65)","elevation-card":"0 0.75rem 2rem -1.25rem rgba(0,0,0,0.7)","elevation-card-soft":"0 0.75rem 2.375rem -0.75rem rgba(0,0,0,0.4)","elevation-card-tight":"0 0.625rem 1.625rem -1.125rem rgba(0,0,0,0.6)"};var Vd={darkMode:["class"],theme:{extend:{colors:{white:r.base.white,black:r.base.black,brand:{0:r.brand[0],1:r.brand[1],2:r.brand[2],3:r.brand[3],4:r.brand[4],5:r.brand[5],6:r.brand[6],7:r.brand[7],8:r.brand[8],9:r.brand[9],DEFAULT:r.brand[3]},"slate-grey":{0:r.slateGrey[0],1:r.slateGrey[1],2:r.slateGrey[2],3:r.slateGrey[3],4:r.slateGrey[4],5:r.slateGrey[5],6:r.slateGrey[6],7:r.slateGrey[7],8:r.slateGrey[8],9:r.slateGrey[9],10:r.slateGrey[10],11:r.slateGrey[11],12:r.slateGrey[12],DEFAULT:r.slateGrey[6]},green:{0:r.green[0],1:r.green[1],2:r.green[2],3:r.green[3],4:r.green[4],5:r.green[5],6:r.green[6],7:r.green[7],8:r.green[8],9:r.green[9],DEFAULT:r.green[4]},yellow:{0:r.yellow[0],1:r.yellow[1],2:r.yellow[2],3:r.yellow[3],4:r.yellow[4],5:r.yellow[5],6:r.yellow[6],7:r.yellow[7],8:r.yellow[8],9:r.yellow[9],DEFAULT:r.yellow[4]},red:{0:r.red[0],1:r.red[1],2:r.red[2],3:r.red[3],4:r.red[4],5:r.red[5],6:r.red[6],7:r.red[7],8:r.red[8],9:r.red[9],DEFAULT:r.red[4]},blue:{0:r.blue[0],1:r.blue[1],2:r.blue[2],3:r.blue[3],4:r.blue[4],5:r.blue[5],6:r.blue[6],7:r.blue[7],8:r.blue[8],9:r.blue[9],DEFAULT:r.blue[4]},orange:{0:r.orange[0],1:r.orange[1],2:r.orange[2],3:r.orange[3],4:r.orange[4],5:r.orange[5],6:r.orange[6],7:r.orange[7],8:r.orange[8],9:r.orange[9],DEFAULT:r.orange[3]},purple:{0:r.purple[0],1:r.purple[1],2:r.purple[2],3:r.purple[3],4:r.purple[4],5:r.purple[5],6:r.purple[6],7:r.purple[7],8:r.purple[8],9:r.purple[9],DEFAULT:r.purple[4]},pink:{0:r.pink[0],1:r.pink[1],2:r.pink[2],3:r.pink[3],4:r.pink[4],5:r.pink[5],6:r.pink[6],7:r.pink[7],8:r.pink[8],9:r.pink[9],DEFAULT:r.pink[4]},text:{primary:r.text.primary,secondary:r.text.secondary,tertiary:r.text.tertiary,DEFAULT:r.text.primary},background:{primary:r.background.primary,secondary:r.background.secondary,DEFAULT:r.background.primary},border:{primary:r.border.primary,secondary:r.border.secondary,DEFAULT:r.border.primary},"btn-primary":{DEFAULT:r.button.primary.backgroundDefault,hover:r.button.primary.backgroundHover,text:r.button.primary.text,border:r.button.primary.border},"btn-neutral":{DEFAULT:r.button.neutral.background,text:r.button.neutral.text,"text-hover":r.button.neutral.textHover,border:r.button.neutral.border},"btn-link":{text:r.button.link.text,hover:r.button.link.hover},"btn-error":{text:r.button.error.text,hover:r.button.error.hover},"btn-success":{text:r.button.success.text,hover:r.button.success.hover},card:{bg:r.card.background,content:r.card.content,border:r.card.border},modal:{bg:r.modal.background,content:r.modal.content,border:r.modal.border},sidebar:{DEFAULT:r.sidebar.backgroundDefault,hover:r.sidebar.backgroundHover,active:r.sidebar.backgroundActive,border:r.sidebar.border,"content-primary":r.sidebar.contentPrimary,"content-secondary":r.sidebar.contentSecondary,"content-tertiary":r.sidebar.contentTertiary},tab:{"active-bg":r.tab.activeBackground,"active-content":r.tab.activeContent,"inactive-content":r.tab.inactiveContent,border:r.tab.border},"table-header":{text:r.table.header.textDefault,"text-hover":r.table.header.textHover,bg:r.table.header.backgroundDefault},"table-cell":{"text-primary":r.table.cell.textPrimary,"text-secondary":r.table.cell.textSecondary,bg:r.table.cell.backgroundDefault,"bg-hover":r.table.cell.backgroundHover},"table-border":r.table.border,"input-field":{bg:r.inputField.backgroundDefault,"bg-disabled":r.inputField.backgroundDisabled,"text-label":r.inputField.textLabel,"text-placeholder":r.inputField.textPlaceholder,"text-hint":r.inputField.textHint,"text-error":r.inputField.textError,border:r.inputField.borderDefault,"border-selected":r.inputField.borderSelected,"border-error":r.inputField.borderError},"badge-slate":{content:r.badge.slateGrey.content,outline:r.badge.slateGrey.pillOutline,border:r.badge.slateGrey.borderPrimary,bg:r.badge.slateGrey.background},"badge-brand":{content:r.badge.brand.content,outline:r.badge.brand.pillOutline,border:r.badge.brand.borderPrimary,bg:r.badge.brand.background},"badge-green":{content:r.badge.green.content,outline:r.badge.green.pillOutline,border:r.badge.green.borderPrimary,bg:r.badge.green.background},"badge-yellow":{content:r.badge.yellow.content,outline:r.badge.yellow.pillOutline,border:r.badge.yellow.borderPrimary,bg:r.badge.yellow.background},"badge-red":{content:r.badge.red.content,outline:r.badge.red.pillOutline,border:r.badge.red.borderPrimary,bg:r.badge.red.background},"badge-blue":{content:r.badge.blue.content,outline:r.badge.blue.pillOutline,border:r.badge.blue.borderPrimary,bg:r.badge.blue.background},"badge-purple":{content:r.badge.purple.content,outline:r.badge.purple.pillOutline,border:r.badge.purple.borderPrimary,bg:r.badge.purple.background},"badge-orange":{content:r.badge.orange.content,outline:r.badge.orange.pillOutline,border:r.badge.orange.borderPrimary,bg:r.badge.orange.background},"badge-pink":{content:r.badge.pink.content,outline:r.badge.pink.pillOutline,border:r.badge.pink.borderPrimary,bg:r.badge.pink.background},toggle:{handle:r.toggle.handleDefault,"handle-disabled":r.toggle.handleDisabled,"off-bg":r.toggle.off.backgroundDefault,"off-bg-hover":r.toggle.off.backgroundHover,"on-bg":r.toggle.on.backgroundDefault,"on-bg-hover":r.toggle.on.backgroundHover},menu:{DEFAULT:r.menu.backgroundDefault,hover:r.menu.backgroundHover,selected:r.menu.selected},"alert-green":{content:r.alert.green.content,bg:r.alert.green.background},"alert-yellow":{content:r.alert.yellow.content,bg:r.alert.yellow.background},"alert-red":{content:r.alert.red.content,bg:r.alert.red.background}},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}]},spacing:{0:"0",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"},borderRadius:{none:"0",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},boxShadow:{...ga,...rt,...st,DEFAULT:ga.sm,"focus-primary":Ke.primary,"focus-neutral":Ke.neutral,"focus-error":Ke.error},backdropBlur:{sm:Te.sm,md:Te.md,lg:Te.lg,xl:Te.xl},backgroundColor:{"overlay-solid":La.solid,"overlay-blur":La.blur},keyframes:{"fade-in":{"0%":{opacity:"0"},"100%":{opacity:"1"}},"fade-out":{"0%":{opacity:"1"},"100%":{opacity:"0"}},"slide-in-from-top":{"0%":{transform:"translateY(-100%)"},"100%":{transform:"translateY(0)"}},"slide-in-from-bottom":{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0)"}},"slide-in-from-left":{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(0)"}},"slide-in-from-right":{"0%":{transform:"translateX(100%)"},"100%":{transform:"translateX(0)"}}},animation:{"fade-in":"fade-in 0.2s ease-out","fade-out":"fade-out 0.2s ease-out","slide-in-from-top":"slide-in-from-top 0.3s ease-out","slide-in-from-bottom":"slide-in-from-bottom 0.3s ease-out","slide-in-from-left":"slide-in-from-left 0.3s ease-out","slide-in-from-right":"slide-in-from-right 0.3s ease-out"}}}};var Oo="linear-gradient(160deg, rgba(7,8,10,0.84) 0%, rgba(14,17,20,0.88) 45%, rgba(15,19,24,0.84) 100%)",qo={floating:"0 8px 60px rgba(0,0,0,0.5)",dockedLeft:"20px 0 60px rgba(0,0,0,0.5)",dockedRight:"-20px 0 60px rgba(0,0,0,0.5)"},$o="12px",Uo={size:56,inset:12,background:N.black,color:N.white,border:`2px solid ${_[3]}`,shadowOpen:"0 4px 24px rgba(0,0,0,0.6), 0 0 0 2px rgba(255,255,255,0.08)",shadowClosed:"0 4px 24px rgba(0,0,0,0.6)"},No={minWidth:480,minHeight:400,handleSize:8,dragThreshold:5,snapThreshold:20},Go={background:Oo,shadows:qo,backdropBlur:$o,fab:Uo,behavior:No},F=Go;var cu=F.behavior.minWidth,pu=F.behavior.minHeight,mu=F.fab.size,hu=F.fab.inset,xu=F.behavior.snapThreshold,gu=F.behavior.dragThreshold,D=F.behavior.handleSize;var Lu=[{dir:"n",style:{top:0,left:D,right:D,height:D},cursor:"ns-resize"},{dir:"s",style:{bottom:0,left:D,right:D,height:D},cursor:"ns-resize"},{dir:"e",style:{right:0,top:D,bottom:D,width:D},cursor:"ew-resize"},{dir:"w",style:{left:0,top:D,bottom:D,width:D},cursor:"ew-resize"},{dir:"ne",style:{top:0,right:0,width:D*2,height:D*2},cursor:"nesw-resize"},{dir:"nw",style:{top:0,left:0,width:D*2,height:D*2},cursor:"nwse-resize"},{dir:"se",style:{bottom:0,right:0,width:D*2,height:D*2},cursor:"nwse-resize"},{dir:"sw",style:{bottom:0,left:0,width:D*2,height:D*2},cursor:"nesw-resize"}];function Ia({message:t}){return n("div",{className:"se-text-center se-py-8 se-px-4 se-text-text-secondary se-text-sm",children:t})}function Ca({label:t,count:e,className:a}){return x("div",{className:M("se-text-xs se-font-bold se-text-text-primary se-uppercase se-tracking-wide se-py-1 se-pb-2 se-flex se-items-center se-justify-between",a),children:[n("span",{children:t}),n("span",{className:"se-text-xs se-text-text-secondary se-bg-badge-slate-bg se-px-1.5 se-py-0.5 se-rounded-lg",children:e})]})}function zo({current:t,target:e}){let a=Math.min(100,Math.round(t/Math.max(e,1)*100));return x("div",{className:"se-flex se-items-center se-gap-0.5",children:[n("span",{className:"se-inline-block se-w-8 se-h-1 se-rounded-full se-bg-white/20",title:`${t}/${e} (${a}%)`,children:n("span",{className:M("se-block se-h-full se-rounded-full se-transition-all",a>=100?"se-bg-green-4":"se-bg-blue-4"),style:{width:`${a}%`}})}),x("span",{className:"se-text-[11px] se-font-medium se-text-text-secondary",children:[t,"/",e]})]})}function Vo({cs:t,isLast:e}){let a=!!t.formatted.progress,o=!t.passed&&a&&t.formatted.progress.current>0;return x("div",{className:"se-flex se-items-center se-gap-0",children:[x("div",{className:"se-flex se-flex-col se-items-center se-min-w-0",children:[n("div",{"data-journey-node":!0,"data-passed":t.passed?"true":"false",className:M("se-w-4 se-h-4 se-rounded-full se-border-2 se-flex se-items-center se-justify-center se-shrink-0",t.passed?"se-bg-green-4 se-border-green-4":o?"se-bg-blue-4 se-border-blue-4":"se-bg-transparent se-border-white/30"),children:t.passed&&n(he,{className:"se-w-2.5 se-h-2.5 se-text-white"})}),n("span",{className:"se-text-[11px] se-font-medium se-text-text-secondary se-truncate se-max-w-[60px] se-text-center se-mt-0.5",title:t.formatted.instruction,children:t.formatted.shortLabel}),a&&n(zo,{current:t.formatted.progress.current,target:t.formatted.progress.target})]}),!e&&n("div",{"data-journey-line":!0,className:M("se-h-0.5 se-w-4 se-self-start se-mt-2 se-shrink-0",t.passed?"se-bg-green-4":"se-bg-white/20")})]})}function Sa({status:t}){if(!t||t.conditions.length===0)return n("div",{className:"se-mt-1 se-text-[12px] se-font-medium se-text-text-secondary se-italic",children:"Always Present"});let{conditions:e}=t,a=e.every(s=>s.passed),o=e.length>1;return x("div",{className:"se-mt-1",children:[n("div",{className:"se-flex se-items-start",children:e.map((s,l)=>n(Vo,{cs:s,isLast:l===e.length-1},l))}),a&&o&&x("div",{className:"se-flex se-items-center se-gap-1 se-mt-1 se-text-[12px] se-text-green-4",children:[n(he,{className:"se-w-3 se-h-3"}),n("span",{children:"All conditions met"})]})]})}var Wu={minWidth:F.behavior.minWidth,minHeight:F.behavior.minHeight,dragThreshold:F.behavior.dragThreshold,snapThreshold:F.behavior.snapThreshold,fabSize:F.fab.size,fabInset:F.fab.inset,storageKey:"syntro:editor-panel"},zu=F.behavior.handleSize;function ue(t){switch(t){case"gte":return"\u2265";case"lte":return"\u2264";case"gt":return">";case"lt":return"<";case"eq":return"=";default:return t}}function Xo(t){return t.replace(/[-_]/g," ").toLowerCase()}function jo(t){return t.replace(/\/?\*+$/,"/").replace(/\/\/$/,"/")}var Ko=/page.?view/i,Zo=/click/i;function ba(t,e){switch(t.type){case"event_count":{let a=t.key,o=t.operator,s=t.count,l=e??0,d=Xo(a),f,c;if(Ko.test(d)){let m=d.replace(/\s*page\s*views?\s*/i,"").trim();f=m?`View ${m} pages ${s}+ times`:`View pages ${s}+ times`,c=`View ${s}+ times`}else if(Zo.test(d)){let m=d.replace(/\s*clicks?\s*/i,"").trim();f=m?`Click ${m} ${s}+ times`:`Click ${s}+ times`,c=`${s}+ clicks`}else{let m=d.trim().split(" ").filter(h=>h).pop()||"events";f=`Reach ${s}+ ${d} events`,c=`${s}+ ${m}s`}return{label:`${a} ${ue(o)} ${s}`,instruction:f,shortLabel:c,progress:{current:l,target:s,operator:o}}}case"page_url":{let a=t.url,o=jo(a),l=a!==o?`Visit a ${o} page`:`Visit ${o}`;return{label:`${a}`,instruction:l,shortLabel:o}}case"anchor_visible":{let a=t.anchorId,o=typeof a=="string"?a:a?.selector??"",s=t.state;return{label:`${o} (${s})`,instruction:`Scroll until ${o} is ${s}`,shortLabel:`${o}`}}case"event_occurred":{let a=t.eventName;return{label:`${a}`,instruction:`Trigger a ${a} event`,shortLabel:`${a}`}}case"state_equals":{let a=t.key,o=t.value===void 0?"undefined":JSON.stringify(t.value);return{label:`${a} = ${o}`,instruction:`${a} equals ${o}`,shortLabel:`${a}`}}case"viewport":{let a=[];t.minWidth!==void 0&&a.push(`w ${ue("gte")} ${t.minWidth}px`),t.maxWidth!==void 0&&a.push(`w ${ue("lte")} ${t.maxWidth}px`),t.minHeight!==void 0&&a.push(`h ${ue("gte")} ${t.minHeight}px`),t.maxHeight!==void 0&&a.push(`h ${ue("lte")} ${t.maxHeight}px`);let o=a.join(", ")||"any viewport",s=a.length>0?`Use a viewport ${a.join(" and ")}`:"Use a viewport of any size",l=a.length>0?a[0]:"Any size";return{label:o,instruction:s,shortLabel:l}}case"session_metric":{let a=t.key,o=t.operator,s=t.threshold;return{label:`${a} ${ue(o)} ${s}`,instruction:`${a} reaches ${s}+`,shortLabel:`${a} ${s}+`}}case"dismissed":{let a=t.inverted,s=t.key||"this";return{label:a?"not dismissed":"dismissed",instruction:a?`Do not dismiss ${s}`:`Dismiss ${s}`,shortLabel:a?"Not dismissed":"Dismissed"}}case"cooldown_active":{let a=t.inverted;return{label:a?"cooldown inactive":"cooldown active",instruction:a?"Wait for cooldown to expire":"Cooldown is active",shortLabel:a?"Cooldown done":"Cooldown active"}}case"frequency_limit":{let a=t.inverted,o=t.limit;return{label:`shown ${ue(a?"lt":"gte")} ${o} times`,instruction:a?`Shown fewer than ${o} times`:`Shown ${o}+ times`,shortLabel:a?`< ${o} views`:`${o}+ views`}}case"route":{let a=t.routeId;return{label:`${a}`,instruction:`Navigate to ${a} route`,shortLabel:`${a}`}}default:return{label:`${t.type}`,instruction:`${t.type}`,shortLabel:`${t.type}`}}}function lt(){let t=window.SynOS?.handle?.runtime;return t?.evaluateSync?{evaluateSync:t.evaluateSync.bind(t),accumulator:t.accumulator}:null}function Jo(t,e){if(t.type!=="rules"||!t.rules?.length)return{visible:!!t.default,isFallback:!0,conditions:[]};let a=e.evaluateSync(t),o=(a.matchInfo?.evaluatedConditions??[]).map(({condition:s,result:l})=>{let d=s.type==="event_count"&&e.accumulator?e.accumulator.getCount(s.key,s.withinMs):void 0,f=ba(s,d);return{type:s.type,passed:l,formatted:f}});return{visible:a.value,isFallback:a.isFallback,conditions:o}}function wa(t){let[e,a]=B(new Map),o=ae(t);o.current=t;let s=A(()=>{let l=lt();if(!l)return;let d=new Map;for(let f of o.current)f.triggerWhen?d.set(f.id,Jo(f.triggerWhen,l)):d.set(f.id,null);a(d)},[]);return q(()=>{s();let l=lt(),d=[];l?.accumulator&&d.push(l.accumulator.subscribe(s));let f=setInterval(s,2e3);return()=>{d.forEach(c=>c()),clearInterval(f)}},[s]),e}var ya={field_mapping:{event:{action_step_key:"event",hogql:"event",athena:"event_category",athena_transform:"category_map",runtime_event_field:"name",runtime_transform:"event_name_map"},text:{action_step_key:"text",hogql:"properties.$el_text",athena:"el_text",runtime_element_field:"$el_text"},tag_name:{action_step_key:"tag_name",hogql:"properties.$el_tag_name",athena:"tag_name",runtime_element_field:"tag_name"},url:{action_step_key:"url",hogql:"properties.$current_url",hogql_match:"like",athena:"pathname",athena_match:"like",athena_transform:"url_to_path",runtime_prop:"url"},selector:{action_step_key:"selector",hogql:"properties.$el_selector",athena:null,runtime_element_field:null}},event_category_map:{$autocapture:"click",$pageview:"pageview",$pageleave:"pageleave",$feature_flag_called:"feature_flag"},event_name_map:{$autocapture:"ui.click",$pageview:"nav.page_view",$pageleave:"nav.page_leave"},interactive_tags:["a","button","input","select","textarea","form","summary"],interactive_roles:["button","link","menuitem","tab","switch","checkbox","radio","option"],test_cases:[{name:"CTA button click \u2014 span inside anchor",action_step:{event:"$autocapture",tag_name:"a",text:"Start Free Filing"},posthog_event:{event:"$autocapture",properties:{$current_url:"https://taxinator.com/",$el_text:"Start Free Filing",$elements:[{tag_name:"span",$el_text:"Start Free Filing"},{tag_name:"a",$el_text:"Start Free Filing \u2192",attr__href:"/dashboard","attr__data-cta":"hero-primary"},{tag_name:"div",$el_text:""},{tag_name:"section",$el_text:""}]}},should_match_hogql:!0,should_match_athena:!0,recommended_index:1,expected_action_step_from_recommended:{event:"$autocapture",tag_name:"a",text:"Start Free Filing \u2192",url:"https://taxinator.com/"}},{name:"Pageview from link href",action_step:{event:"$pageview",url:"/pricing"},posthog_event:{event:"$pageview",properties:{$current_url:"https://taxinator.com/pricing",$elements:[{tag_name:"a",$el_text:"See Plans & Pricing",attr__href:"/pricing"}]}},should_match_hogql:!0,should_match_athena:!0,recommended_index:0,expected_action_step_from_recommended:{event:"$pageview",tag_name:"a",text:"See Plans & Pricing",url:"https://taxinator.com/pricing"}},{name:"Non-matching \u2014 wrong tag and text",action_step:{event:"$autocapture",tag_name:"button",text:"Submit"},posthog_event:{event:"$autocapture",properties:{$current_url:"https://taxinator.com/",$el_text:"Cancel",$elements:[{tag_name:"span",$el_text:"Cancel"},{tag_name:"a",$el_text:"Cancel",attr__href:"/home"}]}},should_match_hogql:!1,should_match_athena:!1,recommended_index:1,expected_action_step_from_recommended:{event:"$autocapture",tag_name:"a",text:"Cancel",url:"https://taxinator.com/"}},{name:"Selector only \u2014 matches HogQL but not Athena",action_step:{event:"$autocapture",selector:"#signup-btn"},posthog_event:{event:"$autocapture",properties:{$current_url:"https://taxinator.com/",$el_selector:"#signup-btn",$elements:[{tag_name:"button",$el_text:"Sign Up"}]}},should_match_hogql:!0,should_match_athena:!1,recommended_index:0,expected_action_step_from_recommended:{event:"$autocapture",tag_name:"button",text:"Sign Up",url:"https://taxinator.com/"}},{name:"No interactive ancestor \u2014 falls back to elements[0]",action_step:{event:"$autocapture",tag_name:"div",text:"Hero Banner"},posthog_event:{event:"$autocapture",properties:{$current_url:"https://taxinator.com/",$el_text:"Hero Banner",$elements:[{tag_name:"div",$el_text:"Hero Banner"},{tag_name:"section",$el_text:""},{tag_name:"main",$el_text:""}]}},should_match_hogql:!0,should_match_athena:!0,recommended_index:0,expected_action_step_from_recommended:{event:"$autocapture",tag_name:"div",text:"Hero Banner",url:"https://taxinator.com/"}}]};var Qu=new Set(ya.interactive_tags),en=new Set(ya.interactive_roles);function Qo(t,e){return t.length<=e?t:`${t.slice(0,e).trimEnd()}...`}function er(t){return typeof t=="object"&&t!==null&&t.type==="rules"&&Array.isArray(t.rules)}function dt(t){if(!t||!er(t))return"All pages";let e=[],a=[];for(let s of t.rules)for(let l of s.conditions)l.type==="page_url"&&typeof l.url=="string"&&e.push(l.url),l.type==="anchor_visible"&&typeof l.anchorId=="string"&&a.push(l.anchorId);let o=[];return e.length>0&&o.push(e[0]),a.length>0&&o.push(a[0]),o.length>0?o.join(" \xB7 "):"All pages"}function ut(t){let e=t.config.icon||"\u{1F9ED}",a=Qo(t.config.title,30);return`${e} ${a}`}var ar=["nav","navigation"];function Ie(t){return ar.some(e=>t.kind.startsWith(`${e}:`))}function tr(t){return typeof t=="object"&&t!==null&&t.type==="rules"&&Array.isArray(t.rules)}function va(t){if(!t||!tr(t))return{pagePatterns:[],anchorSelectors:[],hasTargeting:!1};let e=new Set,a=new Set;for(let s of t.rules)for(let l of s.conditions){let d=l;d.type==="page_url"&&typeof d.url=="string"?e.add(d.url):d.type==="anchor_visible"&&typeof d.anchorId=="string"&&a.add(d.anchorId)}let o=e.size>0||a.size>0;return{pagePatterns:[...e],anchorSelectors:[...a],hasTargeting:o}}function nt(t){return va(t).pagePatterns[0]||null}function or(t){return va(t).anchorSelectors[0]||null}function it(t){try{sessionStorage.setItem("syntro:editor:pending-highlight",t)}catch{}}function ft(t){return(t.actions||[]).filter(Ie).map((a,o)=>({key:String(o),index:o,summary:ut(a),trigger:dt(a.triggerWhen),rationale:a.rationale,firstAnchor:or(a.triggerWhen),tip:a}))}function ka(t,e){let a=(t.actions||[]).filter(Ie);return{...t,actions:a.filter((o,s)=>!e.has(String(s)))}}function rr(t,e){let[a,o]=B(new Map),s=ae(t);return s.current=t,q(()=>{let l=()=>{let f=new Map,c=e();for(let m of s.current){let h=va(m.tip.triggerWhen),p=!0;h.pagePatterns.length>0&&(p=h.pagePatterns.some(k=>new RegExp(`^${k.replace(/\*\*/g,".*").replace(/(?<!\.)(\*)/g,"[^/]*")}$`).test(c)));let y=!1,L=null;if(m.firstAnchor)try{L=document.querySelector(m.firstAnchor),y=L!==null}catch{}else y=p;f.set(m.key,{found:p&&y,element:L})}o(f)};l();let d=setInterval(l,2e3);return window.addEventListener("popstate",l),()=>{clearInterval(d),window.removeEventListener("popstate",l)}},[e]),a}function sr({config:t,onChange:e,editor:a}){let o=t,[s,l]=B(()=>a.getDismissedKeys?.()??new Set),[d,f]=B(null),[c,m]=B("after"),[h,p]=B(null);q(()=>{a.setDismissedKeys?.(s)},[s,a]),q(()=>{let i=a.previewMode;if(i)if(i==="before"){let T=new Set(ft(o).map(z=>z.key)),C=ka(o,T);a.previewConfig(C)}else a.previewConfig(t)},[a.previewMode]);let y=ae(!1);q(()=>{y.current||(y.current=!0,a.initialEditKey!=null&&f(String(a.initialEditKey)),a.clearInitialState?.())},[a]);let L=ft(o),k=L.filter(i=>!s.has(i.key)),v=L.filter(i=>s.has(i.key)),Z=k.length,U=le(()=>L.map(i=>({id:i.key,triggerWhen:i.tip.triggerWhen})),[L]),g=wa(U),I=rr(L,a.getCurrentRoute),w=k.filter(i=>I.get(i.key)?.found).length,O=A(i=>{l(T=>{let C=new Set(T);return C.add(i),C}),d===i&&f(null)},[d]),ee=A(i=>{l(T=>{let C=new Set(T);return C.delete(i),C})},[]),J=A(i=>{f(i.key)},[]),ce=A(async i=>{let T=nt(i.tip.triggerWhen);T&&(i.firstAnchor&&it(i.firstAnchor),await a.navigateTo(T)),i.firstAnchor&&a.highlightElement(i.firstAnchor)},[a]),pe=A(()=>{f(null),m("after"),a.previewConfig(t),a.clearHighlight()},[a,t]);q(()=>(a.setBackHandler?.(d!==null?pe:null),()=>a.setBackHandler?.(null)),[d,pe,a]);let Ue=A(i=>{if(m(i),i==="before"){let T=ka(o,new Set([d]));a.previewConfig(T)}else a.previewConfig(t)},[o,d,a,t]),W=A((i,T,C)=>{let z=(o.actions||[]).filter(Ie).slice(),E={...z[i],config:{...z[i].config}};E.config[T]=C,z[i]=E;let jt=(o.actions||[]).filter(Zt=>!Ie(Zt)),Kt={...o,actions:[...jt,...z]};e(Kt),a.setDirty(!0)},[o,e,a]),Wa=A(()=>{if(s.size>0){let i=ka(o,s);e(i)}a.publish()},[s,o,e,a]),oa=A(async i=>{if(I.get(i.key)?.found&&i.firstAnchor)a.highlightElement(i.firstAnchor);else{let C=nt(i.tip.triggerWhen);C&&(i.firstAnchor&&it(i.firstAnchor),await a.navigateTo(C)),i.firstAnchor&&a.highlightElement(i.firstAnchor)}},[a,I]),ra=A(i=>{p(i.key),i.firstAnchor&&a.highlightElement(i.firstAnchor)},[a]),Ne=A(()=>{p(null),a.clearHighlight()},[a]),Vt=i=>{let C=(o.actions||[]).filter(Ie)[i];if(!C)return null;let z=L.find(E=>E.key===String(i));return x("div",{className:"se-py-1",children:[z&&z.trigger!=="All pages"&&x("button",{type:"button","data-trigger":!0,className:"se-flex se-items-center se-gap-1 se-text-[11px] se-text-slate-grey-8 se-cursor-pointer se-mb-1 se-border-none se-bg-transparent se-p-0 se-text-left",onClick:()=>ce(z),children:[n("span",{children:"\u{1F4CD}"}),n("span",{children:z.trigger})]}),n(de,{label:"Title",value:C.config.title,onChange:E=>W(i,"title",E.target.value)}),n(de,{label:"Description",value:C.config.description,onChange:E=>W(i,"description",E.target.value)}),n(de,{label:"Link URL",value:C.config.href||"",onChange:E=>W(i,"href",E.target.value),placeholder:"Optional"}),n(de,{label:"Icon",value:C.config.icon||"",onChange:E=>W(i,"icon",E.target.value),placeholder:"e.g., \\u{1f9ed}"}),n(de,{label:"Category",value:C.config.category||"",onChange:E=>W(i,"category",E.target.value),placeholder:"Optional"}),x("label",{className:"se-flex se-items-center se-gap-2 se-text-xs se-text-slate-grey-8 se-mb-2",children:[n("input",{type:"checkbox",checked:C.config.external||!1,onChange:E=>W(i,"external",E.target.checked)}),"Open in new tab"]}),n("span",{className:"se-text-[11px] se-font-semibold se-text-slate-grey-7 se-mb-1 se-block",children:"AI Rationale"}),n("div",{className:"se-p-2 se-rounded se-border se-border-dashed se-border-white/15 se-bg-white/[0.02] se-text-slate-grey-8 se-text-xs se-mb-2",children:C.rationale?C.rationale.why:"N/A"})]})},Xt=`${Z} tip${Z!==1?"s":""}${Z>0?` (${w} found on this page)`:""}`;return x(xa,{children:[n(ha,{title:"Navigation Tips",subtitle:Xt,onBack:()=>a.navigateHome()}),n(pa,{children:d!==null?(()=>{let i=Number(d),T=L.find(C=>C.key===d);return x(me,{children:[x("div",{className:"se-flex se-items-center se-gap-2 se-mb-3 se-text-[13px] se-font-semibold se-text-slate-grey-10",children:[n("span",{children:"\u{1F9ED}"}),n("span",{children:T?.summary})]}),Vt(i)]})})():x(me,{children:[L.length===0&&n(Ia,{message:"No tips configured."}),k.length>0&&x(me,{children:[n(Ca,{label:"TIPS",count:k.length}),k.map(i=>{let T=I.get(i.key);return x(ma,{itemKey:i.key,onClick:()=>J(i),onMouseEnter:()=>ra(i),onMouseLeave:Ne,children:[i.trigger!=="All pages"&&x("button",{type:"button","data-trigger":!0,className:"se-flex se-items-center se-gap-1 se-text-[11px] se-text-slate-grey-8 se-cursor-pointer se-mb-1 se-border-none se-bg-transparent se-p-0 se-text-left",onClick:C=>{C.stopPropagation(),ce(i)},children:[n("span",{children:"\u{1F4CD}"}),n("span",{children:i.trigger})]}),x("div",{"data-card-body":!0,role:"button",tabIndex:0,className:"se-flex se-items-center se-gap-2 se-cursor-pointer",onClick:()=>J(i),onKeyDown:C=>{(C.key==="Enter"||C.key===" ")&&J(i)},children:[n(fa,{found:T?.found??!1,onClick:()=>oa(i)}),n("span",{className:"se-flex-1 se-overflow-hidden se-text-ellipsis se-whitespace-nowrap",children:i.summary}),n("button",{type:"button",className:"se-py-0.5 se-px-1.5 se-rounded se-border-none se-bg-transparent se-text-slate-grey-7 se-text-sm se-cursor-pointer se-shrink-0 se-leading-none",onClick:C=>{C.stopPropagation(),O(i.key)},title:"Dismiss this tip",children:"\xD7"})]}),x("div",{className:"se-text-[10px] se-text-slate-grey-7 se-mt-1",children:["WHY: ",i.rationale?i.rationale.why:"N/A"]}),n(Sa,{status:g.get(i.key)??null})]},i.key)})]}),v.length>0&&n(ca,{count:v.length,children:v.map(i=>x("div",{className:"se-flex se-items-center se-gap-2 se-py-1.5 se-px-2.5 se-rounded-md se-border se-border-white/[0.03] se-bg-transparent se-mb-0.5 se-cursor-pointer se-text-xs se-text-slate-grey-6 se-opacity-60",children:[n("span",{className:"se-flex-1 se-overflow-hidden se-text-ellipsis se-whitespace-nowrap se-line-through",children:i.summary}),n("button",{type:"button",className:"se-py-0.5 se-px-1.5 se-rounded se-border-none se-bg-transparent se-text-blue-5 se-text-[11px] se-cursor-pointer se-shrink-0 se-leading-none",onClick:T=>{T.stopPropagation(),ee(i.key)},children:"Restore"})]},i.key))})]})})]})}var ct={title:"Navigation Tips",icon:"\u{1F9ED}",description:"Navigation tips accordion with per-item visibility"};var pt=sr;function mt(){return typeof SynOS<"u"&&SynOS.ReactDOM||{}}var Jn=new Proxy({},{get:function(t,e){return mt()[e]}});function Aa(){return mt().createRoot.apply(null,arguments)}var lr={"\u{1F4B5}":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="12" x="2" y="6" rx="2"/><circle cx="12" cy="12" r="2"/><path d="M6 12h.01M18 12h.01"/></svg>',"\u{1F3DB}\uFE0F":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" x2="21" y1="22" y2="22"/><line x1="6" x2="6" y1="18" y2="11"/><line x1="10" x2="10" y1="18" y2="11"/><line x1="14" x2="14" y1="18" y2="11"/><line x1="18" x2="18" y1="18" y2="11"/><polygon points="12 2 20 7 4 7"/></svg>',"\u23ED\uFE0F":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 4 15 12 5 20 5 4"/><line x1="19" x2="19" y1="5" y2="19"/></svg>',"\u27A1\uFE0F":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>',"\u{1F4A1}":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></svg>',"\u{1F4B0}":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="12" x="2" y="6" rx="2"/><circle cx="12" cy="12" r="2"/><path d="M6 12h.01M18 12h.01"/></svg>',"\u{1F4CB}":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"/><path d="M12 11h4"/><path d="M12 16h4"/><path d="M8 11h.01"/><path d="M8 16h.01"/></svg>',"\u2705":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><path d="m9 11 3 3L22 4"/></svg>',"\u26A0\uFE0F":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"/></svg>'};function dr(t){return lr[t]??ur(t)}function ur(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}var j={container:{fontFamily:"var(--sc-font-family, system-ui, -apple-system, sans-serif)",maxWidth:"100%",overflow:"hidden"},accordion:{display:"flex",flexDirection:"column",gap:"var(--sc-content-item-gap, 6px)"},item:{borderRadius:"var(--sc-content-border-radius, 8px)",overflow:"hidden",transition:"box-shadow 0.2s ease"},header:{display:"flex",alignItems:"center",gap:"8px",width:"100%",padding:"var(--sc-content-item-padding, 12px 16px)",border:"none",cursor:"pointer",fontSize:"var(--sc-content-item-font-size, 15px)",fontWeight:500,fontFamily:"inherit",textAlign:"left",transition:"background-color 0.15s ease"},chevron:{fontSize:"20px",transition:"transform 0.2s ease",marginLeft:"auto",flexShrink:0,color:"var(--sc-content-chevron-color, currentColor)"},icon:{fontSize:"16px",flexShrink:0},body:{overflow:"hidden",transition:"max-height 0.25s ease, padding-bottom 0.25s ease",padding:"var(--sc-content-body-padding, 0 16px 12px 16px)"},description:{fontSize:"var(--sc-content-body-font-size, 14px)",lineHeight:"1.5",margin:0},linkButton:{display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"10px",padding:"6px 12px",borderRadius:"6px",textDecoration:"none",fontSize:"13px",fontWeight:500,cursor:"pointer",border:"none",transition:"background-color 0.15s ease"},categoryHeader:{fontSize:"var(--sc-content-category-font-size, 12px)",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.05em",padding:"var(--sc-content-category-padding, 8px 4px 4px 4px)"},emptyState:{fontSize:"13px",padding:"16px",textAlign:"center"}},Ze={light:{container:{backgroundColor:"transparent",color:"inherit"},item:{backgroundColor:"var(--sc-content-background)",border:"var(--sc-content-border)"},itemExpanded:{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.08)"},header:{backgroundColor:"transparent",color:"var(--sc-content-text-color)"},headerHover:{backgroundColor:"var(--sc-content-background-hover)"},body:{color:"var(--sc-content-text-secondary-color)"},linkButton:{backgroundColor:`var(--sc-color-primary, ${Y[4]})`,color:"#ffffff"},categoryHeader:{color:u[7]},emptyState:{color:u[8]}},dark:{container:{backgroundColor:"transparent",color:"inherit"},item:{backgroundColor:"var(--sc-content-background)",border:"var(--sc-content-border)"},itemExpanded:{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)"},header:{backgroundColor:"transparent",color:"var(--sc-content-text-color)"},headerHover:{backgroundColor:"var(--sc-content-background-hover)"},body:{color:"var(--sc-content-text-secondary-color)"},linkButton:{backgroundColor:`var(--sc-color-primary, ${Y[4]})`,color:"#ffffff"},categoryHeader:{color:u[8]},emptyState:{color:u[7]}}};function ht(t){if(typeof window>"u")return!1;let e=window.location.pathname;return t.some(a=>{let o=a.split("?")[0].split("#")[0];return o.endsWith("/**")?e.startsWith(o.slice(0,-3)):e===o})}function nr(t){let e=[{boxShadow:"0 0 0 0 rgba(13, 148, 136, 0.5)"},{boxShadow:"0 0 0 8px rgba(13, 148, 136, 0)"}];t.animate(e,{duration:600,iterations:3,easing:"ease-out"})}function ir({item:t,isExpanded:e,isLast:a,onToggle:o,onNavigate:s,onFocusAnchor:l,theme:d}){let[f,c]=B(!1),m=Ze[d],{title:h,description:p,href:y,icon:L,external:k,anchor:v}=t.config,Z={...j.item,...m.item,...e?m.itemExpanded:{},...a?{}:{borderBottom:"var(--sc-content-item-divider, none)"}},U={...j.header,...m.header,...f?m.headerHover:{}},g={...j.chevron,transform:e?"rotate(90deg)":"rotate(0deg)"},I={...j.body,...m.body,maxHeight:e?"500px":"0",paddingBottom:e?"16px":"0"},w=v?Array.isArray(v.route)?v.route[0]:v.route:y,O=v?ht(Array.isArray(v.route)?v.route:[v.route]):w?ht([w]):!1,ee=v?.selector&&v.selector!=="*",J=O&&ee,ce=!!w||J,pe=W=>{W.preventDefault(),W.stopPropagation(),J&&v?l(v):w&&s(w,k??!1)},Ue=J?"Focus \u2192":k?"Go \u2197":"Go \u2192";return x("div",{style:Z,"data-nav-tip-id":t.config.id,children:[x("button",{type:"button",style:U,onClick:o,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),"aria-expanded":e,children:[L&&n("span",{style:j.icon,dangerouslySetInnerHTML:{__html:dr(L)}}),n("span",{children:h}),n("span",{style:g,children:"\u203A"})]}),x("div",{style:I,"aria-hidden":!e,children:[n("p",{style:j.description,children:p}),ce&&n("a",{href:w||"#",onClick:pe,style:{...j.linkButton,...m.linkButton},target:k?"_blank":void 0,rel:k?"noopener noreferrer":void 0,children:Ue})]})]})}function fr({config:t,runtime:e,instanceId:a}){let[o,s]=ja(g=>g+1,0),[l,d]=B(new Set);q(()=>e.context.subscribe(()=>{s()}),[e.context]),q(()=>{if(e.accumulator?.subscribe)return e.accumulator.subscribe(()=>{s()})},[e.accumulator]);let f=le(()=>t.actions.filter(g=>{if(!g.triggerWhen)return!0;try{return e.evaluateSync(g.triggerWhen).value}catch{return!1}}),[t.actions,e,o]),c=le(()=>{let g=new Map;for(let I of f){let w=I.config.category;g.has(w)||g.set(w,[]),g.get(w).push(I)}return g},[f]),m=le(()=>f.some(g=>g.config.category),[f]),h=le(()=>t.theme&&t.theme!=="auto"?t.theme:typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light",[t.theme]),p=A(g=>{d(I=>{let w=I.has(g),O;if(t.expandBehavior==="single"){for(let ee of I)ee!==g&&e.events.publish("nav:toggled",{instanceId:a,tipId:ee,expanded:!1,timestamp:Date.now()});O=w?new Set:new Set([g])}else O=new Set(I),w?O.delete(g):O.add(g);return e.events.publish("nav:toggled",{instanceId:a,tipId:g,expanded:!w,timestamp:Date.now()}),O})},[t.expandBehavior,e.events,a]),y=A((g,I)=>{let w=g.trim().toLowerCase();if(!(w.startsWith("javascript:")||w.startsWith("data:")))if(e.events.publish("nav:tip_clicked",{instanceId:a,href:g,external:I,timestamp:Date.now()}),I)window.open(g,"_blank","noopener,noreferrer");else{let O=new URL(g,window.location.origin);O.search=window.location.search,Me(O.toString())||(window.history.pushState(null,"",O.toString()),window.dispatchEvent(new PopStateEvent("popstate")))}},[e.events,a]),L=A(g=>{let I=document.querySelector(g.selector);I instanceof HTMLElement&&(e.events.publish("nav:tip_focused",{instanceId:a,selector:g.selector,route:g.route,timestamp:Date.now()}),I.scrollIntoView({behavior:"smooth",block:"center"}),nr(I),setTimeout(()=>I.focus(),400))},[e.events,a]),k={...j.container,...Ze[h].container},v={...j.categoryHeader,...Ze[h].categoryHeader},Z={...j.emptyState,...Ze[h].emptyState},U=g=>g.map((I,w)=>n(ir,{item:I,isExpanded:l.has(I.config.id),isLast:w===g.length-1,onToggle:()=>p(I.config.id),onNavigate:y,onFocusAnchor:L,theme:h},I.config.id));return f.length===0?n("div",{style:k,"data-adaptive-id":a,"data-adaptive-type":"adaptive-nav",children:n("div",{style:Z,children:"You're all set for now! We'll share helpful tips here when they're relevant to what you're doing."})}):n("div",{style:k,"data-adaptive-id":a,"data-adaptive-type":"adaptive-nav",children:n("div",{style:j.accordion,children:m?Array.from(c.entries()).map(([g,I])=>x(da.Fragment,{children:[g&&n("div",{style:v,"data-category-header":g,children:g}),U(I)]},g??"__ungrouped")):U(f)})})}var xt={mount(t,e){let{runtime:a,instanceId:o="nav-widget",...s}=e||{expandBehavior:"single",theme:"auto",actions:[]};if(a&&typeof Aa=="function"){let l=Aa(t);return l.render(da.createElement(fr,{config:s,runtime:a,instanceId:o})),()=>{l.unmount()}}}};var Je=globalThis,Qe=Je.ShadowRoot&&(Je.ShadyCSS===void 0||Je.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Lt=Symbol(),gt=new WeakMap,Ye=class{constructor(e,a,o){if(this._$cssResult$=!0,o!==Lt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=a}get styleSheet(){let e=this.o,a=this.t;if(Qe&&e===void 0){let o=a!==void 0&&a.length===1;o&&(e=gt.get(a)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&>.set(a,e))}return e}toString(){return this.cssText}},It=t=>new Ye(typeof t=="string"?t:t+"",void 0,Lt);var Ct=(t,e)=>{if(Qe)t.adoptedStyleSheets=e.map(a=>a instanceof CSSStyleSheet?a:a.styleSheet);else for(let a of e){let o=document.createElement("style"),s=Je.litNonce;s!==void 0&&o.setAttribute("nonce",s),o.textContent=a.cssText,t.appendChild(o)}},Pa=Qe?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let a="";for(let o of e.cssRules)a+=o.cssText;return It(a)})(t):t;var{is:cr,defineProperty:pr,getOwnPropertyDescriptor:mr,getOwnPropertyNames:hr,getOwnPropertySymbols:xr,getPrototypeOf:gr}=Object,te=globalThis,St=te.trustedTypes,Lr=St?St.emptyScript:"",Ir=te.reactiveElementPolyfillSupport,De=(t,e)=>t,Ta={toAttribute(t,e){switch(e){case Boolean:t=t?Lr:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let a=t;switch(e){case Boolean:a=t!==null;break;case Number:a=t===null?null:Number(t);break;case Object:case Array:try{a=JSON.parse(t)}catch{a=null}}return a}},wt=(t,e)=>!cr(t,e),bt={attribute:!0,type:String,converter:Ta,reflect:!1,useDefault:!1,hasChanged:wt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),te.litPropertyMetadata??(te.litPropertyMetadata=new WeakMap);var Q=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,a=bt){if(a.state&&(a.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((a=Object.create(a)).wrapped=!0),this.elementProperties.set(e,a),!a.noAccessor){let o=Symbol(),s=this.getPropertyDescriptor(e,o,a);s!==void 0&&pr(this.prototype,e,s)}}static getPropertyDescriptor(e,a,o){let{get:s,set:l}=mr(this.prototype,e)??{get(){return this[a]},set(d){this[a]=d}};return{get:s,set(d){let f=s?.call(this);l?.call(this,d),this.requestUpdate(e,f,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??bt}static _$Ei(){if(this.hasOwnProperty(De("elementProperties")))return;let e=gr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(De("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(De("properties"))){let a=this.properties,o=[...hr(a),...xr(a)];for(let s of o)this.createProperty(s,a[s])}let e=this[Symbol.metadata];if(e!==null){let a=litPropertyMetadata.get(e);if(a!==void 0)for(let[o,s]of a)this.elementProperties.set(o,s)}this._$Eh=new Map;for(let[a,o]of this.elementProperties){let s=this._$Eu(a,o);s!==void 0&&this._$Eh.set(s,a)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let a=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let s of o)a.unshift(Pa(s))}else e!==void 0&&a.push(Pa(e));return a}static _$Eu(e,a){let o=a.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,a=this.constructor.elementProperties;for(let o of a.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ct(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,a,o){this._$AK(e,o)}_$ET(e,a){let o=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,o);if(s!==void 0&&o.reflect===!0){let l=(o.converter?.toAttribute!==void 0?o.converter:Ta).toAttribute(a,o.type);this._$Em=e,l==null?this.removeAttribute(s):this.setAttribute(s,l),this._$Em=null}}_$AK(e,a){let o=this.constructor,s=o._$Eh.get(e);if(s!==void 0&&this._$Em!==s){let l=o.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:Ta;this._$Em=s;let f=d.fromAttribute(a,l.type);this[s]=f??this._$Ej?.get(s)??f,this._$Em=null}}requestUpdate(e,a,o,s=!1,l){if(e!==void 0){let d=this.constructor;if(s===!1&&(l=this[e]),o??(o=d.getPropertyOptions(e)),!((o.hasChanged??wt)(l,a)||o.useDefault&&o.reflect&&l===this._$Ej?.get(e)&&!this.hasAttribute(d._$Eu(e,o))))return;this.C(e,a,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,a,{useDefault:o,reflect:s,wrapped:l},d){o&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,d??a??this[e]),l!==!0||d!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(a=void 0),this._$AL.set(e,a)),s===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(a){Promise.reject(a)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[s,l]of o){let{wrapped:d}=l,f=this[s];d!==!0||this._$AL.has(s)||f===void 0||this.C(s,void 0,l,f)}}let e=!1,a=this._$AL;try{e=this.shouldUpdate(a),e?(this.willUpdate(a),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(a)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(a)}willUpdate(e){}_$AE(e){this._$EO?.forEach(a=>a.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(a=>this._$ET(a,this[a]))),this._$EM()}updated(e){}firstUpdated(e){}};Q.elementStyles=[],Q.shadowRootOptions={mode:"open"},Q[De("elementProperties")]=new Map,Q[De("finalized")]=new Map,Ir?.({ReactiveElement:Q}),(te.reactiveElementVersions??(te.reactiveElementVersions=[])).push("2.1.2");var Be=globalThis,yt=t=>t,ea=Be.trustedTypes,kt=ea?ea.createPolicy("lit-html",{createHTML:t=>t}):void 0,Dt="$lit$",oe=`lit$${Math.random().toFixed(9).slice(2)}$`,Rt="?"+oe,Cr=`<${Rt}>`,fe=document,Fe=()=>fe.createComment(""),Ee=t=>t===null||typeof t!="object"&&typeof t!="function",_a=Array.isArray,Sr=t=>_a(t)||typeof t?.[Symbol.iterator]=="function",Ma=`[
|
|
2
2
|
\f\r]`,Re=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vt=/-->/g,At=/>/g,ne=RegExp(`>|${Ma}(?:([^\\s"'>=/]+)(${Ma}*=${Ma}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Pt=/'/g,Tt=/"/g,Bt=/^(?:script|style|textarea|title)$/i,Ha=t=>(e,...a)=>({_$litType$:t,strings:e,values:a}),re=Ha(1),ni=Ha(2),ii=Ha(3),K=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),Mt=new WeakMap,ie=fe.createTreeWalker(fe,129);function Ft(t,e){if(!_a(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return kt!==void 0?kt.createHTML(e):e}var br=(t,e)=>{let a=t.length-1,o=[],s,l=e===2?"<svg>":e===3?"<math>":"",d=Re;for(let f=0;f<a;f++){let c=t[f],m,h,p=-1,y=0;for(;y<c.length&&(d.lastIndex=y,h=d.exec(c),h!==null);)y=d.lastIndex,d===Re?h[1]==="!--"?d=vt:h[1]!==void 0?d=At:h[2]!==void 0?(Bt.test(h[2])&&(s=RegExp("</"+h[2],"g")),d=ne):h[3]!==void 0&&(d=ne):d===ne?h[0]===">"?(d=s??Re,p=-1):h[1]===void 0?p=-2:(p=d.lastIndex-h[2].length,m=h[1],d=h[3]===void 0?ne:h[3]==='"'?Tt:Pt):d===Tt||d===Pt?d=ne:d===vt||d===At?d=Re:(d=ne,s=void 0);let L=d===ne&&t[f+1].startsWith("/>")?" ":"";l+=d===Re?c+Cr:p>=0?(o.push(m),c.slice(0,p)+Dt+c.slice(p)+oe+L):c+oe+(p===-2?f:L)}return[Ft(t,l+(t[a]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},_e=class t{constructor({strings:e,_$litType$:a},o){let s;this.parts=[];let l=0,d=0,f=e.length-1,c=this.parts,[m,h]=br(e,a);if(this.el=t.createElement(m,o),ie.currentNode=this.el.content,a===2||a===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=ie.nextNode())!==null&&c.length<f;){if(s.nodeType===1){if(s.hasAttributes())for(let p of s.getAttributeNames())if(p.endsWith(Dt)){let y=h[d++],L=s.getAttribute(p).split(oe),k=/([.?@])?(.*)/.exec(y);c.push({type:1,index:l,name:k[2],strings:L,ctor:k[1]==="."?Ra:k[1]==="?"?Ba:k[1]==="@"?Fa:Se}),s.removeAttribute(p)}else p.startsWith(oe)&&(c.push({type:6,index:l}),s.removeAttribute(p));if(Bt.test(s.tagName)){let p=s.textContent.split(oe),y=p.length-1;if(y>0){s.textContent=ea?ea.emptyScript:"";for(let L=0;L<y;L++)s.append(p[L],Fe()),ie.nextNode(),c.push({type:2,index:++l});s.append(p[y],Fe())}}}else if(s.nodeType===8)if(s.data===Rt)c.push({type:2,index:l});else{let p=-1;for(;(p=s.data.indexOf(oe,p+1))!==-1;)c.push({type:7,index:l}),p+=oe.length-1}l++}}static createElement(e,a){let o=fe.createElement("template");return o.innerHTML=e,o}};function Ce(t,e,a=t,o){if(e===K)return e;let s=o!==void 0?a._$Co?.[o]:a._$Cl,l=Ee(e)?void 0:e._$litDirective$;return s?.constructor!==l&&(s?._$AO?.(!1),l===void 0?s=void 0:(s=new l(t),s._$AT(t,a,o)),o!==void 0?(a._$Co??(a._$Co=[]))[o]=s:a._$Cl=s),s!==void 0&&(e=Ce(t,s._$AS(t,e.values),s,o)),e}var Da=class{constructor(e,a){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=a}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:a},parts:o}=this._$AD,s=(e?.creationScope??fe).importNode(a,!0);ie.currentNode=s;let l=ie.nextNode(),d=0,f=0,c=o[0];for(;c!==void 0;){if(d===c.index){let m;c.type===2?m=new He(l,l.nextSibling,this,e):c.type===1?m=new c.ctor(l,c.name,c.strings,this,e):c.type===6&&(m=new Ea(l,this,e)),this._$AV.push(m),c=o[++f]}d!==c?.index&&(l=ie.nextNode(),d++)}return ie.currentNode=fe,s}p(e){let a=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,a),a+=o.strings.length-2):o._$AI(e[a])),a++}},He=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,a,o,s){this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=e,this._$AB=a,this._$AM=o,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,a=this._$AM;return a!==void 0&&e?.nodeType===11&&(e=a.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,a=this){e=Ce(this,e,a),Ee(e)?e===S||e==null||e===""?(this._$AH!==S&&this._$AR(),this._$AH=S):e!==this._$AH&&e!==K&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Sr(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==S&&Ee(this._$AH)?this._$AA.nextSibling.data=e:this.T(fe.createTextNode(e)),this._$AH=e}$(e){let{values:a,_$litType$:o}=e,s=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=_e.createElement(Ft(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===s)this._$AH.p(a);else{let l=new Da(s,this),d=l.u(this.options);l.p(a),this.T(d),this._$AH=l}}_$AC(e){let a=Mt.get(e.strings);return a===void 0&&Mt.set(e.strings,a=new _e(e)),a}k(e){_a(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,o,s=0;for(let l of e)s===a.length?a.push(o=new t(this.O(Fe()),this.O(Fe()),this,this.options)):o=a[s],o._$AI(l),s++;s<a.length&&(this._$AR(o&&o._$AB.nextSibling,s),a.length=s)}_$AR(e=this._$AA.nextSibling,a){for(this._$AP?.(!1,!0,a);e!==this._$AB;){let o=yt(e).nextSibling;yt(e).remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Se=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,a,o,s,l){this.type=1,this._$AH=S,this._$AN=void 0,this.element=e,this.name=a,this._$AM=s,this.options=l,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=S}_$AI(e,a=this,o,s){let l=this.strings,d=!1;if(l===void 0)e=Ce(this,e,a,0),d=!Ee(e)||e!==this._$AH&&e!==K,d&&(this._$AH=e);else{let f=e,c,m;for(e=l[0],c=0;c<l.length-1;c++)m=Ce(this,f[o+c],a,c),m===K&&(m=this._$AH[c]),d||(d=!Ee(m)||m!==this._$AH[c]),m===S?e=S:e!==S&&(e+=(m??"")+l[c+1]),this._$AH[c]=m}d&&!s&&this.j(e)}j(e){e===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ra=class extends Se{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===S?void 0:e}},Ba=class extends Se{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==S)}},Fa=class extends Se{constructor(e,a,o,s,l){super(e,a,o,s,l),this.type=5}_$AI(e,a=this){if((e=Ce(this,e,a,0)??S)===K)return;let o=this._$AH,s=e===S&&o!==S||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,l=e!==S&&(o===S||s);s&&this.element.removeEventListener(this.name,this,o),l&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ea=class{constructor(e,a,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=a,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Ce(this,e)}};var wr=Be.litHtmlPolyfillSupport;wr?.(_e,He),(Be.litHtmlVersions??(Be.litHtmlVersions=[])).push("3.3.2");var Et=(t,e,a)=>{let o=a?.renderBefore??e,s=o._$litPart$;if(s===void 0){let l=a?.renderBefore??null;o._$litPart$=s=new He(e.insertBefore(Fe(),l),l,void 0,a??{})}return s._$AI(t),s};var qe=globalThis,se=class extends Q{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var a;let e=super.createRenderRoot();return(a=this.renderOptions).renderBefore??(a.renderBefore=e.firstChild),e}update(e){let a=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Et(a,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return K}};se._$litElement$=!0,se.finalized=!0,qe.litElementHydrateSupport?.({LitElement:se});var yr=qe.litElementPolyfillSupport;yr?.({LitElement:se});(qe.litElementVersions??(qe.litElementVersions=[])).push("4.2.2");var aa={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ta=t=>(...e)=>({_$litDirective$:t,values:e}),be=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,a,o){this._$Ct=e,this._$AM=a,this._$Ci=o}_$AS(e,a){return this.update(e,a)}update(e,a){return this.render(...a)}};var _t="important",kr=" !"+_t,G=ta(class extends be{constructor(t){if(super(t),t.type!==aa.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,a)=>{let o=t[a];return o==null?e:e+`${a=a.includes("-")?a:a.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){let{style:a}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?a.removeProperty(o):a[o]=null);for(let o in e){let s=e[o];if(s!=null){this.ft.add(o);let l=typeof s=="string"&&s.endsWith(kr);o.includes("-")||l?a.setProperty(o,l?s.slice(0,-11):s,l?_t:""):a[o]=s}}return K}});var Oe=class extends be{constructor(e){if(super(e),this.it=S,e.type!==aa.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===S||e==null)return this._t=void 0,this.it=e;if(e===K)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let a=[e];return a.raw=a,this._t={_$litType$:this.constructor.resultType,strings:a,values:[]}}};Oe.directiveName="unsafeHTML",Oe.resultType=1;var Ht=ta(Oe);var vr="#6a59ce",qt="#677384",Ot="#87919f",Ar={"\u{1F4B5}":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="12" x="2" y="6" rx="2"/><circle cx="12" cy="12" r="2"/><path d="M6 12h.01M18 12h.01"/></svg>',"\u{1F3DB}\uFE0F":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" x2="21" y1="22" y2="22"/><line x1="6" x2="6" y1="18" y2="11"/><line x1="10" x2="10" y1="18" y2="11"/><line x1="14" x2="14" y1="18" y2="11"/><line x1="18" x2="18" y1="18" y2="11"/><polygon points="12 2 20 7 4 7"/></svg>',"\u23ED\uFE0F":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 4 15 12 5 20 5 4"/><line x1="19" x2="19" y1="5" y2="19"/></svg>',"\u27A1\uFE0F":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>',"\u{1F4A1}":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></svg>',"\u{1F4B0}":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="12" x="2" y="6" rx="2"/><circle cx="12" cy="12" r="2"/><path d="M6 12h.01M18 12h.01"/></svg>',"\u{1F4CB}":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"/><path d="M12 11h4"/><path d="M12 16h4"/><path d="M8 11h.01"/><path d="M8 16h.01"/></svg>',"\u2705":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><path d="m9 11 3 3L22 4"/></svg>',"\u26A0\uFE0F":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"/></svg>'};function Pr(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Tr(t){return Ar[t]??Pr(t)}function $t(t){if(typeof window>"u")return!1;let e=window.location.pathname;return t.some(a=>{let o=a.split("?")[0].split("#")[0];return o.endsWith("/**")?e.startsWith(o.slice(0,-3)):e===o})}function Mr(t){let e=[{boxShadow:"0 0 0 0 rgba(13, 148, 136, 0.5)"},{boxShadow:"0 0 0 8px rgba(13, 148, 136, 0)"}];t.animate(e,{duration:600,iterations:3,easing:"ease-out"})}function Dr(t){return t==="dark"?"dark":t==="light"?"light":typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}var we,ye,b,Oa,$a,Ut,Ua,Nt,Gt,Wt,$e,Na,qa=class extends se{constructor(){super(...arguments);Ge(this,b);this.config={expandBehavior:"single",theme:"auto",actions:[]};this.runtime=void 0;this.instanceId="nav-widget";this._expandedIds=new Set;this._renderTick=0;this._hoveredId=null;Ge(this,we,null);Ge(this,ye,null)}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),R(this,b,Oa).call(this)}disconnectedCallback(){super.disconnectedCallback(),R(this,b,$a).call(this)}updated(a){a.has("runtime")&&(R(this,b,$a).call(this),R(this,b,Oa).call(this))}render(){let a=R(this,b,Ut).call(this),o=R(this,b,Ua).call(this),s=G({fontFamily:"var(--sc-font-family, system-ui, -apple-system, sans-serif)",maxWidth:"100%",overflow:"hidden",backgroundColor:"transparent",color:"inherit"}),l=G({display:"flex",flexDirection:"column",gap:"var(--sc-content-item-gap, 6px)"}),d=G({fontSize:"var(--sc-content-category-font-size, 12px)",fontWeight:"600",textTransform:"uppercase",letterSpacing:"0.05em",padding:"var(--sc-content-category-padding, 8px 4px 4px 4px)",color:o==="dark"?Ot:qt}),f=G({fontSize:"13px",padding:"16px",textAlign:"center",color:o==="dark"?qt:Ot});if(a.length===0)return re`
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Pt=/'/g,Tt=/"/g,Bt=/^(?:script|style|textarea|title)$/i,Ha=t=>(e,...a)=>({_$litType$:t,strings:e,values:a}),re=Ha(1),ii=Ha(2),fi=Ha(3),K=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),Mt=new WeakMap,ie=fe.createTreeWalker(fe,129);function Ft(t,e){if(!_a(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return kt!==void 0?kt.createHTML(e):e}var br=(t,e)=>{let a=t.length-1,o=[],s,l=e===2?"<svg>":e===3?"<math>":"",d=Re;for(let f=0;f<a;f++){let c=t[f],m,h,p=-1,y=0;for(;y<c.length&&(d.lastIndex=y,h=d.exec(c),h!==null);)y=d.lastIndex,d===Re?h[1]==="!--"?d=vt:h[1]!==void 0?d=At:h[2]!==void 0?(Bt.test(h[2])&&(s=RegExp("</"+h[2],"g")),d=ne):h[3]!==void 0&&(d=ne):d===ne?h[0]===">"?(d=s??Re,p=-1):h[1]===void 0?p=-2:(p=d.lastIndex-h[2].length,m=h[1],d=h[3]===void 0?ne:h[3]==='"'?Tt:Pt):d===Tt||d===Pt?d=ne:d===vt||d===At?d=Re:(d=ne,s=void 0);let L=d===ne&&t[f+1].startsWith("/>")?" ":"";l+=d===Re?c+Cr:p>=0?(o.push(m),c.slice(0,p)+Dt+c.slice(p)+oe+L):c+oe+(p===-2?f:L)}return[Ft(t,l+(t[a]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},_e=class t{constructor({strings:e,_$litType$:a},o){let s;this.parts=[];let l=0,d=0,f=e.length-1,c=this.parts,[m,h]=br(e,a);if(this.el=t.createElement(m,o),ie.currentNode=this.el.content,a===2||a===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=ie.nextNode())!==null&&c.length<f;){if(s.nodeType===1){if(s.hasAttributes())for(let p of s.getAttributeNames())if(p.endsWith(Dt)){let y=h[d++],L=s.getAttribute(p).split(oe),k=/([.?@])?(.*)/.exec(y);c.push({type:1,index:l,name:k[2],strings:L,ctor:k[1]==="."?Ra:k[1]==="?"?Ba:k[1]==="@"?Fa:Se}),s.removeAttribute(p)}else p.startsWith(oe)&&(c.push({type:6,index:l}),s.removeAttribute(p));if(Bt.test(s.tagName)){let p=s.textContent.split(oe),y=p.length-1;if(y>0){s.textContent=ea?ea.emptyScript:"";for(let L=0;L<y;L++)s.append(p[L],Fe()),ie.nextNode(),c.push({type:2,index:++l});s.append(p[y],Fe())}}}else if(s.nodeType===8)if(s.data===Rt)c.push({type:2,index:l});else{let p=-1;for(;(p=s.data.indexOf(oe,p+1))!==-1;)c.push({type:7,index:l}),p+=oe.length-1}l++}}static createElement(e,a){let o=fe.createElement("template");return o.innerHTML=e,o}};function Ce(t,e,a=t,o){if(e===K)return e;let s=o!==void 0?a._$Co?.[o]:a._$Cl,l=Ee(e)?void 0:e._$litDirective$;return s?.constructor!==l&&(s?._$AO?.(!1),l===void 0?s=void 0:(s=new l(t),s._$AT(t,a,o)),o!==void 0?(a._$Co??(a._$Co=[]))[o]=s:a._$Cl=s),s!==void 0&&(e=Ce(t,s._$AS(t,e.values),s,o)),e}var Da=class{constructor(e,a){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=a}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:a},parts:o}=this._$AD,s=(e?.creationScope??fe).importNode(a,!0);ie.currentNode=s;let l=ie.nextNode(),d=0,f=0,c=o[0];for(;c!==void 0;){if(d===c.index){let m;c.type===2?m=new He(l,l.nextSibling,this,e):c.type===1?m=new c.ctor(l,c.name,c.strings,this,e):c.type===6&&(m=new Ea(l,this,e)),this._$AV.push(m),c=o[++f]}d!==c?.index&&(l=ie.nextNode(),d++)}return ie.currentNode=fe,s}p(e){let a=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,a),a+=o.strings.length-2):o._$AI(e[a])),a++}},He=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,a,o,s){this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=e,this._$AB=a,this._$AM=o,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,a=this._$AM;return a!==void 0&&e?.nodeType===11&&(e=a.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,a=this){e=Ce(this,e,a),Ee(e)?e===S||e==null||e===""?(this._$AH!==S&&this._$AR(),this._$AH=S):e!==this._$AH&&e!==K&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Sr(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==S&&Ee(this._$AH)?this._$AA.nextSibling.data=e:this.T(fe.createTextNode(e)),this._$AH=e}$(e){let{values:a,_$litType$:o}=e,s=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=_e.createElement(Ft(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===s)this._$AH.p(a);else{let l=new Da(s,this),d=l.u(this.options);l.p(a),this.T(d),this._$AH=l}}_$AC(e){let a=Mt.get(e.strings);return a===void 0&&Mt.set(e.strings,a=new _e(e)),a}k(e){_a(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,o,s=0;for(let l of e)s===a.length?a.push(o=new t(this.O(Fe()),this.O(Fe()),this,this.options)):o=a[s],o._$AI(l),s++;s<a.length&&(this._$AR(o&&o._$AB.nextSibling,s),a.length=s)}_$AR(e=this._$AA.nextSibling,a){for(this._$AP?.(!1,!0,a);e!==this._$AB;){let o=yt(e).nextSibling;yt(e).remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Se=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,a,o,s,l){this.type=1,this._$AH=S,this._$AN=void 0,this.element=e,this.name=a,this._$AM=s,this.options=l,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=S}_$AI(e,a=this,o,s){let l=this.strings,d=!1;if(l===void 0)e=Ce(this,e,a,0),d=!Ee(e)||e!==this._$AH&&e!==K,d&&(this._$AH=e);else{let f=e,c,m;for(e=l[0],c=0;c<l.length-1;c++)m=Ce(this,f[o+c],a,c),m===K&&(m=this._$AH[c]),d||(d=!Ee(m)||m!==this._$AH[c]),m===S?e=S:e!==S&&(e+=(m??"")+l[c+1]),this._$AH[c]=m}d&&!s&&this.j(e)}j(e){e===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ra=class extends Se{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===S?void 0:e}},Ba=class extends Se{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==S)}},Fa=class extends Se{constructor(e,a,o,s,l){super(e,a,o,s,l),this.type=5}_$AI(e,a=this){if((e=Ce(this,e,a,0)??S)===K)return;let o=this._$AH,s=e===S&&o!==S||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,l=e!==S&&(o===S||s);s&&this.element.removeEventListener(this.name,this,o),l&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ea=class{constructor(e,a,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=a,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Ce(this,e)}};var wr=Be.litHtmlPolyfillSupport;wr?.(_e,He),(Be.litHtmlVersions??(Be.litHtmlVersions=[])).push("3.3.2");var Et=(t,e,a)=>{let o=a?.renderBefore??e,s=o._$litPart$;if(s===void 0){let l=a?.renderBefore??null;o._$litPart$=s=new He(e.insertBefore(Fe(),l),l,void 0,a??{})}return s._$AI(t),s};var Oe=globalThis,se=class extends Q{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var a;let e=super.createRenderRoot();return(a=this.renderOptions).renderBefore??(a.renderBefore=e.firstChild),e}update(e){let a=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Et(a,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return K}};se._$litElement$=!0,se.finalized=!0,Oe.litElementHydrateSupport?.({LitElement:se});var yr=Oe.litElementPolyfillSupport;yr?.({LitElement:se});(Oe.litElementVersions??(Oe.litElementVersions=[])).push("4.2.2");var aa={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ta=t=>(...e)=>({_$litDirective$:t,values:e}),be=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,a,o){this._$Ct=e,this._$AM=a,this._$Ci=o}_$AS(e,a){return this.update(e,a)}update(e,a){return this.render(...a)}};var _t="important",kr=" !"+_t,G=ta(class extends be{constructor(t){if(super(t),t.type!==aa.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,a)=>{let o=t[a];return o==null?e:e+`${a=a.includes("-")?a:a.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){let{style:a}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?a.removeProperty(o):a[o]=null);for(let o in e){let s=e[o];if(s!=null){this.ft.add(o);let l=typeof s=="string"&&s.endsWith(kr);o.includes("-")||l?a.setProperty(o,l?s.slice(0,-11):s,l?_t:""):a[o]=s}}return K}});var qe=class extends be{constructor(e){if(super(e),this.it=S,e.type!==aa.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===S||e==null)return this._t=void 0,this.it=e;if(e===K)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let a=[e];return a.raw=a,this._t={_$litType$:this.constructor.resultType,strings:a,values:[]}}};qe.directiveName="unsafeHTML",qe.resultType=1;var Ht=ta(qe);var vr="#6a59ce",Ot="#677384",qt="#87919f",Ar={"\u{1F4B5}":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="12" x="2" y="6" rx="2"/><circle cx="12" cy="12" r="2"/><path d="M6 12h.01M18 12h.01"/></svg>',"\u{1F3DB}\uFE0F":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" x2="21" y1="22" y2="22"/><line x1="6" x2="6" y1="18" y2="11"/><line x1="10" x2="10" y1="18" y2="11"/><line x1="14" x2="14" y1="18" y2="11"/><line x1="18" x2="18" y1="18" y2="11"/><polygon points="12 2 20 7 4 7"/></svg>',"\u23ED\uFE0F":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 4 15 12 5 20 5 4"/><line x1="19" x2="19" y1="5" y2="19"/></svg>',"\u27A1\uFE0F":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>',"\u{1F4A1}":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></svg>',"\u{1F4B0}":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="12" x="2" y="6" rx="2"/><circle cx="12" cy="12" r="2"/><path d="M6 12h.01M18 12h.01"/></svg>',"\u{1F4CB}":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"/><path d="M12 11h4"/><path d="M12 16h4"/><path d="M8 11h.01"/><path d="M8 16h.01"/></svg>',"\u2705":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><path d="m9 11 3 3L22 4"/></svg>',"\u26A0\uFE0F":'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"/></svg>'};function Pr(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Tr(t){return Ar[t]??Pr(t)}function Mr(t){let{href:e,external:a,windowOrigin:o,customerHost:s}=t;if(o==="null"){let f=e;if(s)try{f=new URL(e,s).toString()}catch{}return{kind:"open",url:f}}if(a)return{kind:"open",url:e};let d;try{d=new URL(e,o)}catch{return{kind:"fullnav",url:e}}return d.origin!==o?{kind:"fullnav",url:d.toString()}:{kind:"spa",url:d}}function $t(t){if(typeof window>"u")return!1;let e=window.location.pathname;return t.some(a=>{let o=a.split("?")[0].split("#")[0];return o.endsWith("/**")?e.startsWith(o.slice(0,-3)):e===o})}function Dr(t){let e=[{boxShadow:"0 0 0 0 rgba(13, 148, 136, 0.5)"},{boxShadow:"0 0 0 8px rgba(13, 148, 136, 0)"}];t.animate(e,{duration:600,iterations:3,easing:"ease-out"})}function Rr(t){return t==="dark"?"dark":t==="light"?"light":typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}var we,ye,b,qa,$a,Ut,Ua,Nt,Gt,Wt,$e,Na,Oa=class extends se{constructor(){super(...arguments);Ge(this,b);this.config={expandBehavior:"single",theme:"auto",actions:[]};this.runtime=void 0;this.instanceId="nav-widget";this._expandedIds=new Set;this._renderTick=0;this._hoveredId=null;Ge(this,we,null);Ge(this,ye,null)}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),R(this,b,qa).call(this)}disconnectedCallback(){super.disconnectedCallback(),R(this,b,$a).call(this)}updated(a){a.has("runtime")&&(R(this,b,$a).call(this),R(this,b,qa).call(this))}render(){let a=R(this,b,Ut).call(this),o=R(this,b,Ua).call(this),s=G({fontFamily:"var(--sc-font-family, system-ui, -apple-system, sans-serif)",maxWidth:"100%",overflow:"hidden",backgroundColor:"transparent",color:"inherit"}),l=G({display:"flex",flexDirection:"column",gap:"var(--sc-content-item-gap, 6px)"}),d=G({fontSize:"var(--sc-content-category-font-size, 12px)",fontWeight:"600",textTransform:"uppercase",letterSpacing:"0.05em",padding:"var(--sc-content-category-padding, 8px 4px 4px 4px)",color:o==="dark"?qt:Ot}),f=G({fontSize:"13px",padding:"16px",textAlign:"center",color:o==="dark"?Ot:qt});if(a.length===0)return re`
|
|
4
4
|
<div
|
|
5
5
|
style=${s}
|
|
6
6
|
data-adaptive-id=${this.instanceId}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
`):a.map((h,p)=>R(this,b,Na).call(this,h,p,a.length))}
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
27
|
-
`}};we=new WeakMap,ye=new WeakMap,b=new WeakSet,
|
|
27
|
+
`}};we=new WeakMap,ye=new WeakMap,b=new WeakSet,qa=function(){this.runtime&&(ve(this,we,this.runtime.context.subscribe(()=>{this._renderTick+=1})),this.runtime.accumulator?.subscribe&&ve(this,ye,this.runtime.accumulator.subscribe(()=>{this._renderTick+=1})))},$a=function(){var a,o;(a=la(this,we))==null||a.call(this),ve(this,we,null),(o=la(this,ye))==null||o.call(this),ve(this,ye,null)},Ut=function(){return this._renderTick,this.runtime?this.config.actions.filter(a=>{if(!a.triggerWhen)return!0;try{return this.runtime.evaluateSync(a.triggerWhen).value}catch{return!1}}):this.config.actions},Ua=function(){return Rr(this.config.theme)},Nt=function(a){let o=this._expandedIds.has(a),s;if(this.config.expandBehavior==="single"){for(let l of this._expandedIds)l!==a&&R(this,b,$e).call(this,"nav:toggled",{tipId:l,expanded:!1});s=o?new Set:new Set([a])}else s=new Set(this._expandedIds),o?s.delete(a):s.add(a);R(this,b,$e).call(this,"nav:toggled",{tipId:a,expanded:!o}),this._expandedIds=s},Gt=function(a,o){let s=a.trim().toLowerCase();if(s.startsWith("javascript:")||s.startsWith("data:"))return;R(this,b,$e).call(this,"nav:tip_clicked",{href:a,external:o}),this.dispatchEvent(new CustomEvent("nav-tip-clicked",{bubbles:!0,detail:{href:a,external:o,instanceId:this.instanceId}}));let l=Mr({href:a,external:o,windowOrigin:typeof window<"u"?window.location.origin:"",customerHost:this.runtime?.customerHost});if(l.kind==="open"){window.open(l.url,"_blank","noopener,noreferrer");return}if(l.kind==="fullnav"){window.location.href=l.url;return}l.url.search=window.location.search,Me(l.url.toString())||(window.history.pushState(null,"",l.url.toString()),window.dispatchEvent(new PopStateEvent("popstate")))},Wt=function(a){let o=document.querySelector(a.selector);o instanceof HTMLElement&&(R(this,b,$e).call(this,"nav:tip_focused",{selector:a.selector,route:a.route}),this.dispatchEvent(new CustomEvent("nav-tip-focused",{bubbles:!0,detail:{selector:a.selector,instanceId:this.instanceId}})),o.scrollIntoView({behavior:"smooth",block:"center"}),Dr(o),setTimeout(()=>o.focus(),400))},$e=function(a,o){this.runtime?.events.publish(a,{instanceId:this.instanceId,timestamp:Date.now(),...o})},Na=function(a,o,s){let{id:l,title:d,description:f,href:c,icon:m,external:h,anchor:p,category:y}=a.config,L=this._expandedIds.has(l),k=o===s-1,v=this._hoveredId===l,Z=R(this,b,Ua).call(this),U=p?Array.isArray(p.route)?p.route[0]:p.route:c,g=p?$t(Array.isArray(p.route)?p.route:[p.route]):U?$t([U]):!1,I=p?.selector&&p.selector!=="*",w=g&&I,O=!!U||w,ee=w?"Focus \u2192":h?"Go \u2197":"Go \u2192",J=G({borderRadius:"var(--sc-content-border-radius, 8px)",overflow:"hidden",transition:"box-shadow 0.2s ease",backgroundColor:"var(--sc-content-background)",border:"var(--sc-content-border)",...L?{boxShadow:Z==="dark"?"0 4px 12px rgba(0, 0, 0, 0.15)":"0 4px 12px rgba(0, 0, 0, 0.08)"}:{},...k?{}:{borderBottom:"var(--sc-content-item-divider, none)"}}),ce=G({display:"flex",alignItems:"center",gap:"8px",width:"100%",padding:"var(--sc-content-item-padding, 12px 16px)",border:"none",cursor:"pointer",fontSize:"var(--sc-content-item-font-size, 15px)",fontWeight:"500",fontFamily:"inherit",textAlign:"left",transition:"background-color 0.15s ease",backgroundColor:v?"var(--sc-content-background-hover)":"transparent",color:"var(--sc-content-text-color)"}),pe=G({fontSize:"20px",transition:"transform 0.2s ease",marginLeft:"auto",flexShrink:"0",color:"var(--sc-content-chevron-color, currentColor)",transform:L?"rotate(90deg)":"rotate(0deg)"}),Ue=G({overflow:"hidden",transition:"max-height 0.25s ease, padding-bottom 0.25s ease",padding:"var(--sc-content-body-padding, 0 16px 12px 16px)",color:"var(--sc-content-text-secondary-color)",maxHeight:L?"500px":"0",paddingBottom:L?"16px":"0"}),W=G({fontSize:"var(--sc-content-body-font-size, 14px)",lineHeight:"1.5",margin:"0"}),Wa=G({display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"10px",padding:"6px 12px",borderRadius:"6px",textDecoration:"none",fontSize:"13px",fontWeight:"500",cursor:"pointer",border:"none",transition:"background-color 0.15s ease",backgroundColor:`var(--sc-color-primary, ${vr})`,color:"#ffffff"}),oa=G({fontSize:"16px",flexShrink:"0"}),ra=Ne=>{Ne.preventDefault(),Ne.stopPropagation(),w&&p?R(this,b,Wt).call(this,p):U&&R(this,b,Gt).call(this,U,h??!1)};return re`
|
|
28
28
|
<div
|
|
29
29
|
style=${J}
|
|
30
30
|
data-nav-tip-id=${l}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
</button>
|
|
44
44
|
<div style=${Ue} aria-hidden=${!L}>
|
|
45
45
|
<p style=${W}>${f}</p>
|
|
46
|
-
${
|
|
46
|
+
${O?re`
|
|
47
47
|
<a
|
|
48
48
|
href=${U||"#"}
|
|
49
49
|
style=${Wa}
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
`:S}
|
|
55
55
|
</div>
|
|
56
56
|
</div>
|
|
57
|
-
`},
|
|
57
|
+
`},Oa.properties={config:{attribute:!1},runtime:{attribute:!1},instanceId:{type:String},_expandedIds:{state:!0},_renderTick:{state:!0},_hoveredId:{state:!0}};var Br=async(t,e)=>{let a=e.resolveAnchor(t.anchorId);return a?(a.scrollIntoView({behavior:t.behavior??"smooth",block:t.block??"center",inline:t.inline??"nearest"}),e.publishEvent("action.applied",{id:e.generateId(),kind:"navigation:scrollTo",anchorId:t.anchorId,behavior:t.behavior??"smooth"}),{cleanup:()=>{}}):(console.error(`[adaptive-nav] Anchor not found for scrollTo, skipping: ${t.anchorId.selector}`),{cleanup:()=>{}})};function Me(t){if(typeof window>"u")return!1;let e=window;try{let a=e.next?.router;if(a?.push)return a.push(t),!0}catch{}try{if(e.$nuxt?.$router?.push)return e.$nuxt.$router.push(t),!0}catch{}return e.ng||e.getAllAngularRootElements||document.querySelector("[ng-version]")||e.__SVELTEKIT_DATA__||document.body?.hasAttribute("data-sveltekit")||document.querySelector("[data-astro-transition-fallback]")?(window.location.href=t,!0):!1}function Fr(t){try{return new URL(t,window.location.origin).origin===window.location.origin}catch{return!1}}var Er=async(t,e)=>{let a=t.url.trim();if(a.toLowerCase().startsWith("javascript:"))throw new Error("javascript: URLs are not allowed");let o=t.target??"_self";return e.publishEvent("action.applied",{id:e.generateId(),kind:"navigation:navigate",url:t.url,target:o}),o==="_blank"?window.open(a,"_blank","noopener,noreferrer"):!t.forceFullNavigation&&Fr(a)?Me(a)||(window.history.pushState(null,"",a),window.dispatchEvent(new PopStateEvent("popstate"))):window.location.href=a,{cleanup:()=>{}}};var Ga=[{kind:"navigation:scrollTo",executor:Br},{kind:"navigation:navigate",executor:Er}],ke={id:"adaptive-nav",version:"2.0.0",name:"Navigation Tips",description:"Navigation actions and accordion-based tips with per-item conditional visibility",executors:Ga,widgets:[{id:"adaptive-nav:tips",component:xt,metadata:{name:"Navigation Tips",description:"Accordion of contextual navigation tips with per-item visibility",icon:"\u{1F9ED}"}}],notifyWatchers(t){return(t.actions??[]).filter(a=>a.notify&&a.triggerWhen).map(a=>({id:`nav:${a.config.id}`,strategy:a.triggerWhen,eventName:"nav:tip_revealed",eventProps:{tipId:a.config.id,title:a.notify.title,body:a.notify.body,icon:a.notify.icon}}))}};var zt={id:"adaptive-nav",version:ke.version,name:ke.name,description:ke.description,runtime:{actions:Ga.map(({kind:t,executor:e})=>({kind:t,executor:e})),widgets:ke.widgets,notifyWatchers:ke.notifyWatchers},editor:{component:pt,panel:ct,getActionLabel(t){return(t.config||{}).title||t.kind||"nav:tip"}},metadata:{isBuiltIn:!1}};if(typeof window<"u"){let t=window.SynOS?.appRegistry;t&&typeof t.register=="function"&&t.register(zt)}var ji=zt;})();
|
|
58
58
|
/*! Bundled license information:
|
|
59
59
|
|
|
60
60
|
lucide-react/dist/esm/shared/src/utils/mergeClasses.js:
|