@aceshooting/lyra-ui 30.8.0 → 30.9.0

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/components/charts/chart/box-plot-loader.js +1 -1
  3. package/dist/components/charts/chart/chart-core-loader.js +1 -1
  4. package/dist/components/charts/chart/chart-feature-loader.js +1 -1
  5. package/dist/components/charts/chart-3d/chart-3d-engine.js +1 -1
  6. package/dist/components/conversation/code-block/code-loader.js +1 -1
  7. package/dist/components/conversation/code-block/shiki-oniguruma.js +1 -1
  8. package/dist/components/conversation/code-block/shiki-types.js +1 -1
  9. package/dist/components/conversation/markdown/katex-loader.js +1 -1
  10. package/dist/components/conversation/markdown/markdown-loader.js +1 -1
  11. package/dist/components/forms/emoji-picker/emoji-data-loader.js +1 -1
  12. package/dist/components/media/flag/flag-peer-bulk-standard.js +1 -1
  13. package/dist/components/media/flag/flag-peer-bulk.js +1 -1
  14. package/dist/components/media/flag/flag-peer.js +1 -1
  15. package/dist/components/media/map/map-feature-loader.js +1 -1
  16. package/dist/components/media/map/map-loader.js +1 -1
  17. package/dist/components/media/qr-code/qr-code-loader.js +1 -1
  18. package/dist/components/retrieval/embedding-explorer/embedding-explorer-engine.js +1 -1
  19. package/dist/components/retrieval/graph/graph-engine-adapter.js +1 -1
  20. package/dist/components/retrieval/graph/graph-loader.js +1 -1
  21. package/dist/components/utility/icon/dompurify-loader.js +1 -1
  22. package/dist/components/viewers/calendar-viewer/calendar-loader.js +1 -1
  23. package/dist/components/viewers/docx-viewer/docx-loader.js +1 -1
  24. package/dist/components/viewers/ebook-viewer/ebook-loader.js +1 -1
  25. package/dist/components/viewers/ebook-viewer/ebook-viewer.class.js +1 -1
  26. package/dist/components/viewers/ebook-viewer/epub-unload-guard.js +1 -0
  27. package/dist/components/viewers/email-viewer/email-loader.js +1 -1
  28. package/dist/components/viewers/html-viewer/dompurify-loader.js +1 -1
  29. package/dist/components/viewers/model-viewer/model-viewer-loader.js +1 -1
  30. package/dist/components/viewers/notebook-viewer/dompurify-loader.js +1 -1
  31. package/dist/components/viewers/pdf-viewer/pdf-loader.js +1 -1
  32. package/dist/components/viewers/pptx-viewer/pptx-loader.js +1 -1
  33. package/dist/components/viewers/spreadsheet-viewer/spreadsheet-loader.js +1 -1
  34. package/dist/components/viewers/svg-viewer/dompurify-loader.js +1 -1
  35. package/dist/internal/dompurify-loader.js +1 -1
  36. package/dist/internal/locale-loaders.generated.js +1 -1
  37. package/dist/internal/map-scene-layer-runtime.js +1 -1
  38. package/dist/internal/media-panorama.js +1 -1
  39. package/dist/internal/package-metadata.js +1 -1
  40. package/dist/internal/papaparse-loader.js +1 -1
  41. package/dist/theme/theme.js +1 -1
  42. package/dist/theme-core.css +1 -0
  43. package/dist/utilities/scoped-registry.js +1 -1
  44. package/llms/peers.md +1 -1
  45. package/llms/shared/ai-and-peers.md +34 -0
  46. package/llms/shared/imports-and-registration.md +2 -0
  47. package/llms/shared/styles-and-tokens.md +47 -1
  48. package/llms/shared.md +83 -1
  49. package/package.json +10 -7
@@ -1 +1 @@
1
- import{devWarnOnce,litDevWarnings}from"../internal/dev-warning.js";import{readStyleOwnership}from"./style-ownership.js";import{resolveStyleStartup}from"./startup-resolution.js";const STORAGE_KEY="lyra-theme",TOKEN_NAME_PATTERN=/^--lr-theme-[a-z0-9]+(?:-[a-z0-9]+)*$/,TOKEN_NAME_MAX_LENGTH=80,TOKEN_RESERVED_NAME="--lr-theme-accent",TOKEN_ENTRY_MAX=512,TOKEN_SYNTHESIZED_MAX=16,TOKEN_VALUE_MAX_LENGTH=256,TOKEN_FORBIDDEN_PATTERN=/[\x00-\x1f\x7f\\;{}!<>@[\]`$^|~=?&:\u2028\u2029]|\/\*|\*\//,TOKEN_CSS_WIDE_PATTERN=/^(?:inherit|initial|revert(?:-layer)?|unset)$/i,TOKEN_FUNCTION_PATTERN=/([a-z0-9_-]+)\s*\(/gi,TOKEN_ALLOWED_FUNCTIONS="rgb rgba hsl hsla hwb lab lch oklab oklch color color-mix light-dark calc min max clamp var cubic-bezier steps linear".split(" "),TOKEN_OWNERSHIP_MAX=TOKEN_ENTRY_MAX+TOKEN_SYNTHESIZED_MAX,TOKEN_OWNERSHIP_SYMBOL="@aceshooting/lyra-ui.theme-tokens.v1",MODE_SURFACES={light:[255,255,255],dark:[10,10,10]},COLOR_SCHEME_QUERY="(prefers-color-scheme: dark)",SEMANTIC_ROLES=["brand","success","warning","danger","neutral"],RAMP_CHANNELS=["fill","border","on"],RAMP_TIERS=["quiet","normal","loud"];function roleRampProperties(role){const properties=[];for(const channel of RAMP_CHANNELS)for(const tier of RAMP_TIERS)properties.push(`--lr-theme-color-${role}-${channel}-${tier}`);return properties}const ALL_RAMP_PROPERTIES=[...SEMANTIC_ROLES.flatMap(roleRampProperties),"--lr-theme-color-focus"],MODE_ATTRIBUTES=["data-lr-theme","data-theme"];function isBalancedCssValue(value){let depth=0,quote="";for(const character of value){if(quote){character===quote&&(quote="");continue}if(character==="'"||character==='"')quote=character;else if(character==="(")depth+=1;else if(character===")"&&(depth-=1)<0)return!1}return quote===""&&depth===0}function isLyraThemeTokenName(name){return typeof name=="string"&&name.length<=TOKEN_NAME_MAX_LENGTH&&TOKEN_NAME_PATTERN.test(name)&&name!==TOKEN_RESERVED_NAME}function isSafeLyraThemeTokenValue(value){if(typeof value!="string")return!1;const trimmed=value.trim();if(!trimmed||trimmed.length>TOKEN_VALUE_MAX_LENGTH||TOKEN_FORBIDDEN_PATTERN.test(trimmed)||TOKEN_CSS_WIDE_PATTERN.test(trimmed))return!1;for(const match of trimmed.matchAll(TOKEN_FUNCTION_PATTERN))if(!TOKEN_ALLOWED_FUNCTIONS.includes((match[1]??"").toLowerCase()))return!1;return isBalancedCssValue(trimmed)}function isPlainRecord(value){if(typeof value!="object"||value===null||Array.isArray(value))return!1;const prototype=Object.getPrototypeOf(value);if(prototype===Object.prototype||prototype===null)return!0;if(Object.getPrototypeOf(prototype)!==null)return!1;const constructor=Object.getOwnPropertyDescriptor(prototype,"constructor")?.value;return typeof constructor=="function"&&Function.prototype.toString.call(constructor)===Function.prototype.toString.call(Object)}function normalizeTokenBranch(value){return isSafeLyraThemeTokenValue(value)?value.trim():null}function normalizeTokens(raw){try{if(!isPlainRecord(raw))return null;const names=Object.keys(raw);if(names.length===0||names.length>TOKEN_ENTRY_MAX)return null;const result={};let kept=0;for(const name of names){if(!isLyraThemeTokenName(name))continue;const value=ownField(raw,name);if(typeof value=="string"){const normalized=normalizeTokenBranch(value);if(normalized===null)continue;result[name]=normalized,kept+=1;continue}if(!isPlainRecord(value))continue;const keys=Object.keys(value),hasLight=Object.prototype.hasOwnProperty.call(value,"light"),hasDark=Object.prototype.hasOwnProperty.call(value,"dark");if(!hasLight&&!hasDark||keys.some(key=>key!=="light"&&key!=="dark"))continue;const light=normalizeTokenBranch(ownField(value,"light")),dark=normalizeTokenBranch(ownField(value,"dark"));light===null&&dark===null||(result[name]=Object.freeze({light,dark}),kept+=1)}return kept>0?Object.freeze(result):null}catch{return null}}function tokensEqual(left,right){const leftNames=left?Object.keys(left):[],rightNames=right?Object.keys(right):[];if(leftNames.length!==rightNames.length)return!1;if(leftNames.length===0)return!0;const leftMap=left,rightMap=right;return leftNames.every(name=>{if(!Object.prototype.hasOwnProperty.call(rightMap,name))return!1;const a=leftMap[name],b=rightMap[name];return typeof a=="string"||typeof b=="string"?a===b:!a||!b?!1:(a.light??null)===(b.light??null)&&(a.dark??null)===(b.dark??null)})}function normalizeColor(value,owner=document){if(typeof value!="string"||!value.trim())return null;const candidate=value.trim();if(!isBalancedCssValue(candidate)||TOKEN_CSS_WIDE_PATTERN.test(candidate)||/^(?:accentcolor|accentcolortext|activetext|buttonborder|buttonface|buttontext|canvas|canvastext|field|fieldtext|graytext|highlight|highlighttext|linktext|mark|marktext|selecteditem|selecteditemtext|visitedtext)$/i.test(candidate)||/\bcurrentcolor\b/i.test(candidate)||/\bvar\s*\(/i.test(candidate)||/\blight-dark\s*\(/i.test(candidate)||/\b(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color)\s*\(\s*from\b/i.test(candidate))return null;const probe=owner.createElement("span");return probe.style.color=candidate,probe.style.color?candidate:null}function normalizeAccentValue(value){if(typeof value=="string"||value===null)return normalizeColor(value);if(typeof value!="object"||Array.isArray(value))return null;const record=value;if(!("light"in record)&&!("dark"in record))return null;const light=normalizeColor(record.light),dark=normalizeColor(record.dark);return light||dark?{light,dark}:null}function normalizeAccent(value){if(typeof value=="string")return normalizeColor(value);if(value===null||typeof value!="object"||Array.isArray(value))return null;const record=value,result={};let hasRole=!1;for(const role of SEMANTIC_ROLES)role in record&&(hasRole=!0,result[role]=normalizeAccentValue(record[role]));return hasRole?result:null}function resolveAccentValueForMode(value,mode){return typeof value=="string"?value:value?value[mode]??null:null}function accentValueEqual(left,right){return left===right?!0:typeof left=="string"||typeof right=="string"||left===null||right===null?!1:(left.light??null)===(right.light??null)&&(left.dark??null)===(right.dark??null)}function accentsEqual(left,right){if(left===right)return!0;if(typeof left=="string"||typeof right=="string"||left===null||right===null)return!1;const leftKeys=Object.keys(left),rightKeys=Object.keys(right);return leftKeys.length!==rightKeys.length?!1:leftKeys.every(role=>accentValueEqual(left[role],right[role]))}function parseResolvedRgb(value,background,owner=document){if(!normalizeColor(value,owner))return null;try{const canvas=owner.createElement("canvas");canvas.width=1,canvas.height=1;const context=canvas.getContext("2d",{willReadFrequently:!0});if(!context)return null;context.clearRect(0,0,1,1),context.fillStyle=value,context.fillRect(0,0,1,1);const channels=context.getImageData(0,0,1,1).data,red=channels[0]??0,green=channels[1]??0,blue=channels[2]??0,alpha=(channels[3]??0)/255;return[Math.round(red*alpha+background[0]*(1-alpha)),Math.round(green*alpha+background[1]*(1-alpha)),Math.round(blue*alpha+background[2]*(1-alpha))]}catch{return null}}function hexRgb(color){return[parseInt(color.slice(1,3),16),parseInt(color.slice(3,5),16),parseInt(color.slice(5,7),16)]}function mixRgb(base,color,colorWeight){return[Math.round(base[0]*(1-colorWeight)+color[0]*colorWeight),Math.round(base[1]*(1-colorWeight)+color[1]*colorWeight),Math.round(base[2]*(1-colorWeight)+color[2]*colorWeight)]}function serializeRgb(color){return`rgb(${color.join(" ")})`}function relativeLuminance(color){const linearize=channel=>{const normalized=channel/255;return normalized<=.04045?normalized/12.92:((normalized+.055)/1.055)**2.4};return linearize(color[0])*.2126+linearize(color[1])*.7152+linearize(color[2])*.0722}function contrastRatio(left,right){const a=relativeLuminance(left),b=relativeLuminance(right);return(Math.max(a,b)+.05)/(Math.min(a,b)+.05)}function contrastForeground(fill){const black=[0,0,0],white=[255,255,255];return contrastRatio(fill,black)>=contrastRatio(fill,white)?black:white}function ensureSurfaceContrast(color,background,minimum=3,alsoAgainst=background,references=[]){const passes=candidate=>contrastRatio(candidate,background)>=minimum&&contrastRatio(candidate,alsoAgainst)>=minimum&&references.every(reference=>contrastRatio(candidate,reference)>=minimum);if(passes(color))return color;const black=[0,0,0],white=[255,255,255],target=contrastRatio(background,black)>=contrastRatio(background,white)?black:white;for(let step=1;step<=10;step+=1){const candidate=mixRgb(color,target,step/10);if(passes(candidate))return candidate}return target}function createRoleRamp(role,base,mode,background,owner=document){const references=STYLE_CONTRAST_SURFACES[mode].map(hexRgb),resolved=parseResolvedRgb(base,background,owner);if(!resolved)return null;const quiet=mixRgb(background,resolved,mode==="dark"?.24:.14),normal=mixRgb(background,resolved,mode==="dark"?.62:.55),loud=ensureSurfaceContrast(resolved,background,4.5,quiet,references),borderTarget=mode==="dark"?[255,255,255]:[0,0,0],borderQuiet=mixRgb(background,resolved,mode==="dark"?.46:.38),borderNormal=ensureSurfaceContrast(mixRgb(background,resolved,mode==="dark"?.78:.72),background,3,background,references),borderLoud=ensureSurfaceContrast(mixRgb(loud,borderTarget,.2),background,3,background,references),prefix=`--lr-theme-color-${role}`,ramp={[`${prefix}-fill-quiet`]:serializeRgb(quiet),[`${prefix}-fill-normal`]:serializeRgb(normal),[`${prefix}-fill-loud`]:serializeRgb(loud),[`${prefix}-border-quiet`]:serializeRgb(borderQuiet),[`${prefix}-border-normal`]:serializeRgb(borderNormal),[`${prefix}-border-loud`]:serializeRgb(borderLoud),[`${prefix}-on-quiet`]:serializeRgb(contrastForeground(quiet)),[`${prefix}-on-normal`]:serializeRgb(contrastForeground(normal)),[`${prefix}-on-loud`]:serializeRgb(contrastForeground(loud))};return role==="brand"&&(ramp["--lr-theme-color-focus"]=serializeRgb(ensureSurfaceContrast(resolved,background,3,background,references))),ramp}function paintAccent(accent,mode,background,owner=document){const properties=new Map;if(!accent)return{applied:null,properties};if(!mode)return{applied:accent,properties};if(typeof accent=="string"){const ramp=createRoleRamp("brand",accent,mode,background,owner);if(!ramp)return{applied:null,properties};properties.set("--lr-theme-accent",accent);for(const[property,value]of Object.entries(ramp))properties.set(property,value);return{applied:accent,properties}}const applied={};let appliedBrandColor=null;for(const role of SEMANTIC_ROLES){const value=accent[role];if(!value)continue;const isPerMode=typeof value!="string",base=resolveAccentValueForMode(value,mode);let painted=!1;if(base){const ramp=createRoleRamp(role,base,mode,background,owner);if(ramp){for(const[property,propertyValue]of Object.entries(ramp))properties.set(property,propertyValue);painted=!0,role==="brand"&&(appliedBrandColor=base)}}(painted||isPerMode)&&(applied[role]=value)}return appliedBrandColor&&properties.set("--lr-theme-accent",appliedBrandColor),{applied:Object.keys(applied).length>0?applied:null,properties}}function tokenEntries(tokens,mode){const entries=new Map;if(!tokens)return entries;for(const[name,value]of Object.entries(tokens))if(typeof value=="string")entries.set(name,value);else if(mode){const branch=value[mode];branch&&entries.set(name,branch)}return entries}function resolveTokenColor(value,background,owner){return value===void 0||!background||!normalizeColor(value,owner)?null:parseResolvedRgb(value,background,owner)}function floorTokenEntries(entries,surface,owner,references){if(!entries.size)return new Map;const resolveColor=(value,background)=>resolveTokenColor(value,background,owner),painted=new Map(entries),prefix="--lr-theme-",raised=resolveColor(entries.get(`${prefix}color-surface-raised`)??references[1],surface),floor=(name,over,against,minimum,alsoAgainst)=>{const value=painted.get(name);if(value===void 0||!against||alsoAgainst===null)return;const color=resolveColor(value,over);if(!color)return;const repaired=ensureSurfaceContrast(color,against,minimum,alsoAgainst??against);repaired!==color&&painted.set(name,serializeRgb(repaired))};floor(`${prefix}color-text-normal`,surface,surface,4.5,raised),floor(`${prefix}color-text-quiet`,surface,surface,4.5,raised);const text=entries.has(`${prefix}color-text-normal`)?resolveColor(painted.get(`${prefix}color-text-normal`),surface):resolveColor(references[2],surface),pairForeground=(onName,fill)=>{if(!fill)return;const on=painted.get(onName);if(on===void 0){painted.set(onName,serializeRgb(contrastForeground(fill)));return}const color=resolveColor(on,fill);color&&contrastRatio(color,fill)<4.5&&painted.set(onName,serializeRgb(contrastForeground(fill)))};for(const role of SEMANTIC_ROLES)for(const tier of RAMP_TIERS){const fillName=`${prefix}color-${role}-fill-${tier}`;entries.has(fillName)&&pairForeground(`${prefix}color-${role}-on-${tier}`,resolveColor(entries.get(fillName),surface))}const overlayName=`${prefix}color-overlay-strong`,overlay=entries.has(overlayName)?resolveColor(entries.get(overlayName),surface):resolveColor(references[3],surface);(entries.has(overlayName)||entries.has(`${prefix}color-on-strong-overlay`))&&pairForeground(`${prefix}color-on-strong-overlay`,overlay);for(const name of entries.keys())/^--lr-theme-color-(?:(?:brand|success|warning|danger|neutral)-border-(?:normal|loud)|surface-border|border-strong|focus|chart-\d+)$/.test(name)?floor(name,surface,surface,3):/^--lr-theme-terminal-color-[a-z0-9-]+$/.test(name)?floor(name,raised,raised,4.5):/^--lr-theme-terminal-bg-[a-z0-9-]+$/.test(name)&&floor(name,raised,text,4.5);return painted}function readOwnershipList(){try{const list=document.documentElement[Symbol.for(TOKEN_OWNERSHIP_SYMBOL)];if(!Array.isArray(list))return[];const names=[],length=Math.min(list.length,TOKEN_OWNERSHIP_MAX);for(let index=0;index<length;index+=1){const name=list[index];isLyraThemeTokenName(name)&&names.push(name)}return names}catch{return[]}}function applyStoredThemeBeforePaint(){const R=["brand","success","warning","danger","neutral"],Q=["quiet","normal","loud"],W=/^--lr-theme-[a-z0-9]+(?:-[a-z0-9]+)*$/,_="--lr-theme-accent",G=/[\x00-\x1f\x7f\\;{}!<>@[\]`$^|~=?&:\u2028\u2029]|\/\*|\*\//,H=/^(?:inherit|initial|revert(?:-layer)?|unset)$/i,J=/([a-z0-9_-]+)\s*\(/gi,K="rgb rgba hsl hsla hwb lab lch oklab oklch color color-mix light-dark calc min max clamp var cubic-bezier steps linear".split(" "),U={light:[255,255,255],dark:[10,10,10]},X=r=>{let o=0,h="";for(const a of r){if(h){a===h&&(h="");continue}if(a==="'"||a==='"')h=a;else if(a==="(")o+=1;else if(a===")"&&(o-=1)<0)return!1}return h===""&&o===0},Y=r=>typeof r=="string"&&r.length<=80&&W.test(r)&&r!==_,P=r=>{if(typeof r!="string")return null;const o=r.trim();if(!o||o.length>256||G.test(o)||H.test(o))return null;for(const h of o.matchAll(J))if(!K.includes((h[1]??"").toLowerCase()))return null;return X(o)?o:null},A=r=>{if(typeof r!="object"||r===null||Array.isArray(r))return!1;const o=Object.getPrototypeOf(r);return o===Object.prototype||o===null},Z=r=>{const o={};try{if(!A(r))return o;const h=Object.keys(r);if(h.length<=512)for(const a of h){if(!Y(a))continue;const g=r[a];if(typeof g=="string"){const u=P(g);u!==null&&(o[a]=u);continue}if(!A(g))continue;const j=Object.hasOwn(g,"light"),i=Object.hasOwn(g,"dark");if(!j&&!i||Object.keys(g).some(u=>u!=="light"&&u!=="dark"))continue;const M=P(g.light),y=P(g.dark);(M!==null||y!==null)&&(o[a]={light:M,dark:y})}}catch{}return o},C=r=>{const o=P(r);if(!(!o||/\b(?:var|light-dark)\s*\(|\b(?:currentcolor|from)\b/i.test(o)||/^(?:accentcolor|accentcolortext|activetext|buttonborder|buttonface|buttontext|canvas|canvastext|field|fieldtext|graytext|highlight|highlighttext|linktext|mark|marktext|selecteditem|selecteditemtext|visitedtext)$/i.test(o)))return CSS.supports("color",o)?o:void 0};return[Z,C,(r,o,h,a,g,j)=>{const i=new Map;for(const[t,n]of Object.entries(r)){const e=typeof n=="string"?n:n[o];e&&i.set(t,e)}const M=typeof a=="string"?{brand:a}:a,y={};for(const t of R){const n=M?.[t],e=typeof n=="string"?n:n?.[o];e&&(y[t]=e)}let u=null;if(i.size>0||Object.keys(y).length>0)try{const t=document.createElement("canvas");t.width=1,t.height=1,u=t.getContext("2d",{willReadFrequently:!0})}catch{u=null}const S=(t,n)=>{if(!u)return null;try{u.clearRect(0,0,1,1),u.fillStyle=t,u.fillRect(0,0,1,1);const e=u.getImageData(0,0,1,1).data,c=(e[3]??0)/255;return[0,1,2].map(f=>Math.round((e[f]??0)*c+(n[f]??0)*(1-c)))}catch{return null}},z=(t,n,e)=>t.map((c,f)=>Math.round(c*(1-e)+(n[f]??0)*e)),B=t=>{const n=t.map(e=>{const c=e/255;return c<=.04045?c/12.92:((c+.055)/1.055)**2.4});return(n[0]??0)*.2126+(n[1]??0)*.7152+(n[2]??0)*.0722},O=(t,n)=>{const e=B(t),c=B(n);return(Math.max(e,c)+.05)/(Math.min(e,c)+.05)},v=[0,0,0],F=[255,255,255],w=t=>O(t,v)>=O(t,F)?v:F,q=(t,n,e=3,c=n)=>{const f=d=>O(d,n)>=e&&O(d,c)>=e&&g.every(k=>O(d,k)>=e);if(f(t))return t;const p=w(n);for(let d=1;d<=10;d+=1){const k=z(t,p,d/10);if(f(k))return k}return p},m=t=>`rgb(${t.join(" ")})`,D=U[o],E=C(h)??C(i.get("--lr-theme-color-surface-default")),s=E&&S(E,D)||D,l=new Map(i),b="--lr-theme-",$=(t,n)=>t!==void 0&&n&&C(t)?S(t,n):null,tt=`${b}color-surface-raised`,N=$(i.get(tt)??j[1],s),L=(t,n,e,c,f)=>{const p=l.get(t);if(p===void 0||!e||f===null)return;const d=$(p,n);if(!d)return;const k=q(d,e,c,f??e);k!==d&&l.set(t,m(k))};L(`${b}color-text-normal`,s,s,4.5,N),L(`${b}color-text-quiet`,s,s,4.5,N);const et=i.has(`${b}color-text-normal`)?$(l.get(`${b}color-text-normal`),s):$(j[2],s),I=(t,n)=>{if(!n)return;const e=l.get(t),c=e===void 0?null:$(e,n);(e===void 0||c&&O(c,n)<4.5)&&l.set(t,m(w(n)))};for(const t of R)for(const n of Q){const e=`${b}color-${t}-fill-${n}`;i.has(e)&&I(`${b}color-${t}-on-${n}`,$(i.get(e),s))}const T=`${b}color-overlay-strong`;(i.has(T)||i.has(`${b}color-on-strong-overlay`))&&I(`${b}color-on-strong-overlay`,i.has(T)?$(i.get(T),s):$(j[3],s));for(const t of i.keys())/^--lr-theme-color-(?:(?:brand|success|warning|danger|neutral)-border-(?:normal|loud)|surface-border|border-strong|focus|chart-\d+)$/.test(t)?L(t,s,s,3):/^--lr-theme-terminal-color-[a-z0-9-]+$/.test(t)?L(t,N,N,4.5):/^--lr-theme-terminal-bg-[a-z0-9-]+$/.test(t)&&L(t,N,et,4.5);if(!u)return l;let V=null;for(const t of R){const n=y[t];if(!n)continue;const e=S(n,s);if(!e)continue;const c=z(s,e,o==="dark"?.24:.14),f=z(s,e,o==="dark"?.62:.55),p=q(e,s,4.5,c),d=o==="dark"?F:v,k=z(s,e,o==="dark"?.46:.38),nt=q(z(s,e,o==="dark"?.78:.72),s),ot=q(z(p,d,.2),s),x=`--lr-theme-color-${t}`;l.set(`${x}-fill-quiet`,m(c)),l.set(`${x}-fill-normal`,m(f)),l.set(`${x}-fill-loud`,m(p)),l.set(`${x}-border-quiet`,m(k)),l.set(`${x}-border-normal`,m(nt)),l.set(`${x}-border-loud`,m(ot)),l.set(`${x}-on-quiet`,m(w(c))),l.set(`${x}-on-normal`,m(w(f))),l.set(`${x}-on-loud`,m(w(p))),t==="brand"&&(l.set("--lr-theme-color-focus",m(q(e,s))),V=n)}return V&&l.set("--lr-theme-accent",V),l}]}function styleMaterial(l,n){const t=n==="glass";for(const[a,i]of Object.entries({enabled:t?"1":"0",content:t?"''":"none",isolation:t?"isolate":"auto","root-filter":t?"initial":"none","child-filter":t?"none":"initial","child-opacity":t?"1":"0"}))l.set(`--_lr-surface-${a}`,i);l.set("--_lr-glass-blocker",t?"initial":"none"),t||(l.set("--_lr-glass-parent-opacity","0"),l.set("--_lr-next-glass-opacity","0"))}function applyStoredStyleBeforePaint(U,q,D,R,G,J,W,S){const{surfaces:_,contrast:H,accent:Q}=S,b=new Map;for(const r of S.inputs.split(" "))b.set(`--lr-theme-${r.slice(1)}`,Number(r[0]));const A=[...b.keys()];function v(r,n,s=!1){return`--_lr-${s?"a":"l"}${n==="light"?"l":"d"}-${r.slice(11)}`}function V(r,n){const s=b.get(r)??0;let g=`var(${v(r,n)})`;if(s&2){const k=n==="light"?"l":"d",u=r.replace(/color-(?:success|warning|danger|neutral)-/,"color-brand-");g=`var(--_lr-f${k}-${r.slice(11)},${g})var(--_lr-o${k}-${r.slice(11)},var(${v(u,n,!0)},var(${v(u,n)})))`}return s&4?`var(${v(r,n,!0)},${g})`:g}function X(r){const n=`var(--_lr-dark-on,${V(r,"light")})var(--_lr-light-on,${V(r,"dark")})`;if(!((b.get(r)??0)&1))return n;const s=r.startsWith("--lr-theme-space-");return`var(--_lr-dense-on,${n})var(--_lr-dense-off,max(calc((${n}) * var(--_lr-density-${s?"space":"control"},1)),${s?"0px":"var(--_lr-density-target-min,0px)"}))`}try{const r=document.currentScript,n=r?.getAttribute("data-lr-theme-restore"),s=(n==="all"||n==="mode"?n:S.restore)==="mode",g=r?.getAttribute("data-lr-theme-storage-key"),k=g&&g.length<=200?g:U,u=r?.getAttribute("data-lr-theme-attributes")?.trim().split(/\s+/),E=u?.length&&u.length<=8&&new Set(u).size===u.length&&u.every(t=>t.length<=64&&/^data-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t))?u:q;let w;try{w=JSON.parse(localStorage.getItem(k)??"null")}catch{}if(s){const t=w;w={version:t?.version,mode:t?.mode}}const o=document.documentElement,[Z,tt,et]=D(),f=J(w,S.defaults,Z,tt,(t,e)=>R(t,e,A),Q),y=f.mode,$=y==="unset"?null:y==="system"?matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":y,p={},C=!s&&getComputedStyle(o).getPropertyValue("--_lr-style-resolver").trim()==="1",L=(t,e)=>typeof t=="string"?t:t?.[e],rt=f.tokens,ot=f.overrides,O={...rt,...ot},T=f.look;if(s||(p["data-lr-look"]=T,p["data-lr-density"]=f.density,p["data-lr-surface"]=f.treatment),y!=="unset"&&(p["data-lr-mode"]=y),$)for(const t of E)p[t]=$;const z=f.accentName;let h=f.accent;y!=="unset"&&h&&typeof h=="object"&&!Object.values(h).some(t=>typeof t=="string"||t&&Object.values(t).some(Boolean))&&(h=null),s||(p["data-lr-accent"]=z??(h?"custom":"none"));const a=new Map;if(y==="unset")for(const[t,e]of Object.entries(O))typeof e=="string"&&a.set(t,e);for(const t of s?[]:["light","dark"]){const e=L(f.surface,t),j=L(O["--lr-theme-color-surface-default"],t),c=(Object.hasOwn(_,T)?_[T]:_.lyra)[t],M=e??j??c[0];for(const m of[!1,!0]){if(m&&(!h||z))continue;const st=et(m?{}:O,t,M,m?h:null,m?H[t].map(l=>[1,3,5].map(d=>parseInt(l.slice(d,d+2),16))):[],c);for(const[l,d]of st){if(l==="--lr-theme-accent"){t===$&&a.set(l,d);continue}const B=b.get(l);if(B!==void 0&&R(l,d,A)){const F=l.match(/^--lr-theme-color-(?:success|warning|danger|neutral)-((?:fill|border|on)-(?:quiet|normal|loud))$/)?.[1],N=!m&&F&&d===`var(--lr-theme-color-brand-${F})`,I=l.slice(11),K=t==="light"?"l":"d";N||a.set(v(l,t,m),d),!m&&B&2&&(a.set(`--_lr-f${K}-${I}`,N?" ":"initial"),a.set(`--_lr-o${K}-${I}`,N?"initial":" ")),t===$&&a.set(l,C?X(l):d)}else t===$&&a.set(l,d)}}}(a.size||y==="unset"&&h&&!z)&&(p["data-lr-theme-scope"]=""),!s&&!C&&W(a,f.treatment);const Y=Symbol.for("@aceshooting/lyra-ui.style-ownership.v1"),P=o;let x;try{x=G(P[Y])}catch{}const i=x??{attributes:new Map,properties:new Map};if(y==="unset")for(const t of E)i.attributes.has(t)||o.removeAttribute(t);try{const t=Symbol.for("@aceshooting/lyra-ui.theme-tokens.v1"),e=P[t];if(!s&&Array.isArray(e)){const j=e.slice(0,528).filter(c=>typeof c=="string"&&c.length<=80&&/^--lr-theme-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(c));for(const c of[...j,...A.filter(M=>b.get(M)&4),"--lr-theme-accent"])!i.properties.has(c)&&o.style.getPropertyValue(c)&&i.properties.set(c,{before:null,priority:"",written:o.style.getPropertyValue(c)});try{delete P[t]}catch{}}}catch{}for(const[t,e]of i.attributes)s&&t!=="data-lr-mode"&&!E.includes(t)||Object.hasOwn(p,t)||(o.getAttribute(t)===e.written&&(e.before===null?o.removeAttribute(t):o.setAttribute(t,e.before)),i.attributes.delete(t));for(const[t,e]of Object.entries(p))i.attributes.has(t)||i.attributes.set(t,{before:o.getAttribute(t),priority:"",written:e}),o.setAttribute(t,e),i.attributes.get(t).written=e;for(const[t,e]of i.properties)s||a.has(t)||(o.style.getPropertyValue(t)===e.written&&!o.style.getPropertyPriority(t)&&(e.before?o.style.setProperty(t,e.before,e.priority):o.style.removeProperty(t)),i.properties.delete(t));for(const[t,e]of a)i.properties.has(t)||i.properties.set(t,{before:o.style.getPropertyValue(t),priority:o.style.getPropertyPriority(t),written:null}),o.style.getPropertyPriority(t)&&o.style.removeProperty(t),o.style.setProperty(t,e,""),i.properties.get(t).written=o.style.getPropertyValue(t);try{P[Y]=i}catch{}}catch{}}const LINE_SEPARATOR="\u2028",PARAGRAPH_SEPARATOR="\u2029";function serializeInlineScriptData(value){return JSON.stringify(value).replace(/</g,"\\u003c").replace(new RegExp(LINE_SEPARATOR,"g"),"\\u2028").replace(new RegExp(PARAGRAPH_SEPARATOR,"g"),"\\u2029")}const BOOTSTRAP_FUNCTIONS=[applyStoredStyleBeforePaint,applyStoredThemeBeforePaint,styleTokenAllowed,readStyleOwnership,resolveStyleStartup,styleMaterial];function bootstrapParts(options){const storageKey=options.storageKey??STORAGE_KEY,inputs=STYLE_SLOTTED.map(name=>`${Number(STYLE_DENSITY.includes(name))|Number(STYLE_FOLLOW.includes(name))<<1|Number(ALL_RAMP_PROPERTIES.includes(name))<<2}${name.slice(11)}`).join(" "),model=JSON.stringify({restore:options.restore==="mode"?"mode":"all",defaults:STYLE_DEFAULTS,inputs,surfaces:STYLE_REFERENCE_SURFACES,contrast:STYLE_CONTRAST_SURFACES,accent:STYLE_GEMSTONES});return{storageKey,model}}function createLyraThemeBootstrap(options={}){const{storageKey,model}=bootstrapParts(options),functions=BOOTSTRAP_FUNCTIONS.map(helper=>helper.toString().replace(/^function\s+[\w$]+/,"function"));return`(${functions[0]})(${serializeInlineScriptData(storageKey)},${serializeInlineScriptData(MODE_ATTRIBUTES)},${functions.slice(1).join(",")},${model});`}const STYLE_DEFAULTS=Object.freeze({look:"shadcn",surface:"glass",density:"comfortable",mode:"system",accent:"emerald"}),STYLE_SLOTTED=["--lr-theme-color-border-strong","--lr-theme-color-brand-border-loud","--lr-theme-color-brand-border-normal","--lr-theme-color-brand-border-quiet","--lr-theme-color-brand-fill-loud","--lr-theme-color-brand-fill-normal","--lr-theme-color-brand-fill-quiet","--lr-theme-color-brand-on-loud","--lr-theme-color-brand-on-normal","--lr-theme-color-brand-on-quiet","--lr-theme-color-chart-1","--lr-theme-color-chart-2","--lr-theme-color-chart-3","--lr-theme-color-chart-4","--lr-theme-color-chart-5","--lr-theme-color-chart-6","--lr-theme-color-chart-7","--lr-theme-color-chart-8","--lr-theme-color-chart-diverging-1","--lr-theme-color-chart-diverging-2","--lr-theme-color-chart-diverging-3","--lr-theme-color-chart-sequential-1","--lr-theme-color-chart-sequential-2","--lr-theme-color-chart-sequential-3","--lr-theme-color-danger-border-loud","--lr-theme-color-danger-border-normal","--lr-theme-color-danger-border-quiet","--lr-theme-color-danger-fill-loud","--lr-theme-color-danger-fill-normal","--lr-theme-color-danger-fill-quiet","--lr-theme-color-danger-on-loud","--lr-theme-color-danger-on-normal","--lr-theme-color-danger-on-quiet","--lr-theme-color-focus","--lr-theme-color-mix-partner","--lr-theme-color-neutral-border-loud","--lr-theme-color-neutral-border-normal","--lr-theme-color-neutral-border-quiet","--lr-theme-color-neutral-fill-loud","--lr-theme-color-neutral-fill-normal","--lr-theme-color-neutral-fill-quiet","--lr-theme-color-neutral-on-loud","--lr-theme-color-neutral-on-normal","--lr-theme-color-neutral-on-quiet","--lr-theme-color-no-data","--lr-theme-color-on-strong-overlay","--lr-theme-color-overlay","--lr-theme-color-overlay-strong","--lr-theme-color-success-border-loud","--lr-theme-color-success-border-normal","--lr-theme-color-success-border-quiet","--lr-theme-color-success-fill-loud","--lr-theme-color-success-fill-normal","--lr-theme-color-success-fill-quiet","--lr-theme-color-success-on-loud","--lr-theme-color-success-on-normal","--lr-theme-color-success-on-quiet","--lr-theme-color-surface-border","--lr-theme-color-surface-border-subtle","--lr-theme-color-surface-container","--lr-theme-color-surface-container-high","--lr-theme-color-surface-container-highest","--lr-theme-color-surface-container-low","--lr-theme-color-surface-container-lowest","--lr-theme-color-surface-default","--lr-theme-color-surface-overlay","--lr-theme-color-surface-raised","--lr-theme-color-text-normal","--lr-theme-color-text-quiet","--lr-theme-color-warning-border-loud","--lr-theme-color-warning-border-normal","--lr-theme-color-warning-border-quiet","--lr-theme-color-warning-fill-loud","--lr-theme-color-warning-fill-normal","--lr-theme-color-warning-fill-quiet","--lr-theme-color-warning-on-loud","--lr-theme-color-warning-on-normal","--lr-theme-color-warning-on-quiet","--lr-theme-form-control-height-2xs","--lr-theme-form-control-height-l","--lr-theme-form-control-height-m","--lr-theme-form-control-height-s","--lr-theme-form-control-height-xl","--lr-theme-form-control-height-xs","--lr-theme-graph-cat-1","--lr-theme-graph-cat-2","--lr-theme-graph-cat-3","--lr-theme-graph-cat-4","--lr-theme-graph-cat-5","--lr-theme-graph-cat-6","--lr-theme-graph-cat-7","--lr-theme-graph-cat-8","--lr-theme-icon-button-size","--lr-theme-shadow-l","--lr-theme-shadow-m","--lr-theme-shadow-s","--lr-theme-shadow-xl","--lr-theme-shadow-xs","--lr-theme-space-2xl","--lr-theme-space-2xs","--lr-theme-space-l","--lr-theme-space-m","--lr-theme-space-s","--lr-theme-space-xs","--lr-theme-terminal-bg-black","--lr-theme-terminal-bg-blue","--lr-theme-terminal-bg-bright-black","--lr-theme-terminal-bg-bright-blue","--lr-theme-terminal-bg-bright-cyan","--lr-theme-terminal-bg-bright-green","--lr-theme-terminal-bg-bright-magenta","--lr-theme-terminal-bg-bright-red","--lr-theme-terminal-bg-bright-white","--lr-theme-terminal-bg-bright-yellow","--lr-theme-terminal-bg-cyan","--lr-theme-terminal-bg-green","--lr-theme-terminal-bg-magenta","--lr-theme-terminal-bg-red","--lr-theme-terminal-bg-white","--lr-theme-terminal-bg-yellow","--lr-theme-terminal-color-black","--lr-theme-terminal-color-blue","--lr-theme-terminal-color-bright-black","--lr-theme-terminal-color-bright-blue","--lr-theme-terminal-color-bright-cyan","--lr-theme-terminal-color-bright-green","--lr-theme-terminal-color-bright-magenta","--lr-theme-terminal-color-bright-red","--lr-theme-terminal-color-bright-white","--lr-theme-terminal-color-bright-yellow","--lr-theme-terminal-color-cyan","--lr-theme-terminal-color-green","--lr-theme-terminal-color-magenta","--lr-theme-terminal-color-red","--lr-theme-terminal-color-white","--lr-theme-terminal-color-yellow"],STYLE_DENSITY=["--lr-theme-space-2xs","--lr-theme-space-xs","--lr-theme-space-s","--lr-theme-space-m","--lr-theme-space-l","--lr-theme-space-2xl","--lr-theme-form-control-height-2xs","--lr-theme-form-control-height-xs","--lr-theme-form-control-height-s","--lr-theme-form-control-height-m","--lr-theme-form-control-height-l","--lr-theme-form-control-height-xl","--lr-theme-icon-button-size"],STYLE_FOLLOW=["--lr-theme-color-danger-border-loud","--lr-theme-color-danger-border-normal","--lr-theme-color-danger-border-quiet","--lr-theme-color-danger-fill-loud","--lr-theme-color-danger-fill-normal","--lr-theme-color-danger-fill-quiet","--lr-theme-color-danger-on-loud","--lr-theme-color-danger-on-normal","--lr-theme-color-danger-on-quiet","--lr-theme-color-neutral-border-loud","--lr-theme-color-neutral-border-normal","--lr-theme-color-neutral-border-quiet","--lr-theme-color-neutral-fill-loud","--lr-theme-color-neutral-fill-normal","--lr-theme-color-neutral-fill-quiet","--lr-theme-color-neutral-on-loud","--lr-theme-color-neutral-on-normal","--lr-theme-color-neutral-on-quiet","--lr-theme-color-success-border-loud","--lr-theme-color-success-border-normal","--lr-theme-color-success-border-quiet","--lr-theme-color-success-fill-loud","--lr-theme-color-success-fill-normal","--lr-theme-color-success-fill-quiet","--lr-theme-color-success-on-loud","--lr-theme-color-success-on-normal","--lr-theme-color-success-on-quiet","--lr-theme-color-warning-border-loud","--lr-theme-color-warning-border-normal","--lr-theme-color-warning-border-quiet","--lr-theme-color-warning-fill-loud","--lr-theme-color-warning-fill-normal","--lr-theme-color-warning-fill-quiet","--lr-theme-color-warning-on-loud","--lr-theme-color-warning-on-normal","--lr-theme-color-warning-on-quiet"],STYLE_REFERENCE_SURFACES={lyra:{light:["#ffffff","#f6f8fa","#1a1a1a","rgb(0 0 0 / 0.92)"],dark:["#1a1a1a","#22272e","#f2f2f2","rgb(0 0 0 / 0.95)"]},data:{light:["#ffffff","#f2f5f8","#10202c","#17212b"],dark:["#101820","#192630","#eef5fa","#e7eef4"]},"high-contrast":{light:["#ffffff","#ffffff","#000000","#17212b"],dark:["#000000","#000000","#ffffff","#e7eef4"]},material:{light:["#fff8f5","#f8eeea","#241b17","rgb(0 0 0 / 0.92)"],dark:["#18120f","#251d19","#f8eee8","rgb(0 0 0 / 0.95)"]},shadcn:{light:["#ffffff","#fafafa","#0a0a0a","rgb(0 0 0 / 0.92)"],dark:["#0a0a0a","#171717","#fafafa","rgb(0 0 0 / 0.95)"]},terminal:{light:["#fcfdf9","#f1f5eb","#0d2115","#17212b"],dark:["#0e1713","#18271e","#e5f5e9","#e7eef4"]}},STYLE_CONTRAST_SURFACES={light:["#ffffff","#f6f8fa","#f2f5f8","#fff8f5","#f8eeea","#fcf2ed","#f2e7e0","#ecdfd7","#fafafa","#fcfdf9","#f1f5eb"],dark:["#1a1a1a","#22272e","#2b3038","#101820","#192630","#202e39","#000000","#18120f","#251d19","#302621","#120d0a","#211914","#352a24","#0a0a0a","#171717","#0e1713","#18271e","#203227"]},STYLE_GEMSTONES={emerald:"#34d399",peridot:"#a8d84a",topaz:"#f0a83c",ruby:"#e63950",tourmaline:"#ec4899",amethyst:"#9d6df0",aquamarine:"#22d3ee",sapphire:"#4f8ff7",hematite:"#94a3b8"},LOOK_ID=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,LOOK_STAMP=Symbol.for("@aceshooting/lyra-ui.look.v1"),STYLE_OWNERSHIP=Symbol.for("@aceshooting/lyra-ui.style-ownership.v1"),STYLE_FIELDS=["look","surface","density","mode","accent","accentBackground","overrides"],DEFAULT_STYLE=Object.freeze({...STYLE_DEFAULTS,tokens:null,accent:STYLE_GEMSTONES[STYLE_DEFAULTS.accent],accentName:STYLE_DEFAULTS.accent,accentBackground:null,overrides:null});let lastStyle={...DEFAULT_STYLE},stylePersistenceFailed=!1,styleModeCleanup,styleModeRoot;const styleOwnershipFallback=new WeakMap,detachedStyleOwnership=new WeakMap,scopeModes=new WeakMap;function ownField(value,key){const descriptor=Object.getOwnPropertyDescriptor(value,key);return descriptor&&"value"in descriptor?descriptor.value:void 0}function styleId(value){return typeof value=="string"&&value.length<=64&&LOOK_ID.test(value)}function styleTokenAllowed(e,r,o=STYLE_SLOTTED){if(e.startsWith("--lr-theme-surface-")||typeof r!="string"&&!o.includes(e))return!1;for(const t of typeof r=="string"?[r]:[r.light,r.dark])if(t)for(const c of t.matchAll(/var\(\s*(--[\w-]+)/g)){if(c[1]==="--lr-theme-shadow-color")continue;const n=e.match(/^--lr-theme-color-(?:success|warning|danger|neutral)-((?:fill|border|on)-(?:quiet|normal|loud))$/)?.[1];if(!n||t!==`var(--lr-theme-color-brand-${n})`)return!1}return!0}function styleTokens(value){const tokens=normalizeTokens(value);if(!tokens)return null;const entries=Object.entries(tokens).filter(([name,input])=>styleTokenAllowed(name,input));return entries.length?Object.freeze(Object.fromEntries(entries)):null}function defineLyraLook(look){if(!look||!styleId(ownField(look,"id"))||look.id==="custom")throw new TypeError("Invalid look id");const raw=ownField(look,"tokens");if(!isPlainRecord(raw)||Object.keys(raw).length>TOKEN_ENTRY_MAX)throw new TypeError("Invalid look tokens");for(const[name,descriptor]of Object.entries(Object.getOwnPropertyDescriptors(raw))){if(!("value"in descriptor))throw new TypeError(`Look inputs must be data properties: ${name}`);const value=descriptor.value;if(typeof value=="string"){if(!isSafeLyraThemeTokenValue(value))throw new TypeError(`Invalid look value: ${name}`);continue}if(!isPlainRecord(value)||!STYLE_SLOTTED.includes(name))throw new TypeError(`Invalid per-mode look input: ${name}`);const branches=Object.entries(Object.getOwnPropertyDescriptors(value));if(!branches.length||branches.some(([key,branch])=>!["light","dark"].includes(key)||!("value"in branch)||branch.value!==null&&!isSafeLyraThemeTokenValue(branch.value)))throw new TypeError(`Invalid look mode pair: ${name}`)}const tokens=styleTokens(raw);if(Object.keys(raw).length!==Object.keys(tokens??{}).length)throw new TypeError("Invalid look token or cross-axis reference");const stamped={...tokens,[LOOK_STAMP]:look.id};return Object.freeze(stamped),Object.freeze({id:look.id,tokens:stamped})}function styleColor(value,browserColors=!1){if(!isSafeLyraThemeTokenValue(value))return null;const text=value.trim();return/\b(?:var|light-dark)\s*\(|\b(?:currentcolor|from)\b/i.test(text)||/^(?:accentcolor|accentcolortext|activetext|buttonborder|buttonface|buttontext|canvas|canvastext|field|fieldtext|graytext|highlight|highlighttext|linktext|mark|marktext|selecteditem|selecteditemtext|visitedtext)$/i.test(text)?null:browserColors&&typeof CSS<"u"?CSS.supports("color",text)?text:null:/^(?:#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})|[a-z]+|(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix)\(.+\))$/i.test(text)?text:null}function styleColorPair(value){if(typeof value=="string")return styleColor(value);if(!isPlainRecord(value))return null;const light=styleColor(ownField(value,"light")),dark=styleColor(ownField(value,"dark"));return light||dark?Object.freeze({light,dark}):null}function styleAccent(value){if(typeof value=="string")return styleColor(value);if(!isPlainRecord(value))return null;const entries=SEMANTIC_ROLES.filter(role=>Object.hasOwn(value,role)).map(role=>[role,styleColorPair(ownField(value,role))]);return entries.length?Object.freeze(Object.fromEntries(entries)):null}function normalizeStyleChoices(raw,base){const next={...base};if(!isPlainRecord(raw))return next;const look=ownField(raw,"look");if(look!==void 0){if(next.look=DEFAULT_STYLE.look,next.tokens=null,styleId(look))next.look=look;else if(isPlainRecord(look))try{const definition=defineLyraLook(look);next.look=definition.id,next.tokens=definition.tokens}catch{}}const surface=ownField(raw,"surface");surface!==void 0&&(next.surface=surface==="glass"||surface==="solid"?surface:DEFAULT_STYLE.surface);const density=ownField(raw,"density");density!==void 0&&(next.density=density==="comfortable"||density==="compact"||density==="touch"?density:DEFAULT_STYLE.density);const mode=ownField(raw,"mode");mode!==void 0&&(next.mode=mode==="light"||mode==="dark"||mode==="system"||mode==="unset"?mode:DEFAULT_STYLE.mode);const accent=ownField(raw,"accent");accent!==void 0&&(next.accentName=typeof accent=="string"&&Object.hasOwn(STYLE_GEMSTONES,accent)?accent:null,next.accent=next.accentName?STYLE_GEMSTONES[next.accentName]:styleAccent(accent));const background=ownField(raw,"accentBackground");background!==void 0&&(next.accentBackground=styleColorPair(background));const overrides=ownField(raw,"overrides");return overrides!==void 0&&(next.overrides=styleTokens(overrides)),next}function styleFromRecord(value,browserColors=!1){const record=resolveStyleStartup(value,STYLE_DEFAULTS,normalizeTokens,input=>styleColor(input,browserColors)??void 0,styleTokenAllowed,STYLE_GEMSTONES),state=normalizeStyleChoices({look:ownField(record,"look"),mode:ownField(record,"mode"),density:ownField(record,"density"),surface:ownField(record,"treatment"),overrides:ownField(record,"overrides"),accentBackground:ownField(record,"surface")},{...DEFAULT_STYLE});state.accent=styleAccent(ownField(record,"accent"));const accentName=ownField(record,"accentName");return state.accentName=null,typeof accentName=="string"&&Object.hasOwn(STYLE_GEMSTONES,accentName)&&(state.accentName=accentName,state.accent=STYLE_GEMSTONES[accentName]),state.tokens=normalizeTokens(ownField(record,"tokens")),state.tokens&&!styleId(ownField(record,"look"))&&(state.look="custom"),state}function styleRecord(state){return{version:2,mode:state.mode,look:state.look,density:state.density,treatment:state.surface,accent:state.accent,surface:state.accentBackground,...state.accentName?{accentName:state.accentName}:{},...state.tokens?{tokens:state.tokens}:{},...state.overrides?{overrides:state.overrides}:{}}}function styleResolvedMode(mode,view){return mode==="unset"?null:mode!=="system"?mode:view?.matchMedia?.(COLOR_SCHEME_QUERY).matches?"dark":"light"}function styleSnapshot(state,view){return Object.freeze({look:state.look,lookForm:state.tokens?"runtime":"stylesheet",surface:state.surface,density:state.density,mode:state.mode,accent:state.accentName??state.accent,accentName:state.accentName,accentBackground:state.accentBackground,...state.overrides?{overrides:state.overrides}:{},resolvedMode:styleResolvedMode(state.mode,view)})}function parseLyraStyleRecord(value){const state=styleFromRecord(value),result=styleSnapshot(state);return state.mode==="system"?Object.freeze({...result,resolvedMode:null}):result}function lyraStyleAttributes(style){const attributes={};return styleId(style.look)&&(attributes["data-lr-look"]=style.look),(style.surface==="solid"||style.surface==="glass")&&(attributes["data-lr-surface"]=style.surface),(style.density==="compact"||style.density==="comfortable"||style.density==="touch")&&(attributes["data-lr-density"]=style.density),(style.mode==="light"||style.mode==="dark"||style.mode==="system")&&(attributes["data-lr-mode"]=style.mode),style.accent!==void 0&&(attributes["data-lr-accent"]=style.accent===null?"none":style.accentName===null?"custom":typeof style.accent=="string"&&Object.hasOwn(STYLE_GEMSTONES,style.accent)?style.accent:"custom"),Object.freeze(attributes)}function readStyleState(){if(stylePersistenceFailed)return{...lastStyle};let stored;try{stored=localStorage.getItem(STORAGE_KEY)}catch{return{...lastStyle}}try{return styleFromRecord(JSON.parse(stored??"null"),!0)}catch{return{...DEFAULT_STYLE}}}function persistStyle(state){try{localStorage.setItem(STORAGE_KEY,JSON.stringify(styleRecord(state))),stylePersistenceFailed=!1}catch{stylePersistenceFailed=!0}lastStyle=state}function publishStyleOwnership(element,ownership){const descriptor=Object.getOwnPropertyDescriptor(element,STYLE_OWNERSHIP);return descriptor&&(!("value"in descriptor)||!descriptor.writable)?!1:Reflect.defineProperty(element,STYLE_OWNERSHIP,{value:ownership,writable:!0,enumerable:descriptor?.enumerable??!0,configurable:descriptor?.configurable??!0})}function ownershipFor(element){const node=element;try{const source=node[STYLE_OWNERSHIP],detached=detachedStyleOwnership.get(element);if(detached&&detached.source===source)return detached.ownership;detachedStyleOwnership.delete(element);const existing=readStyleOwnership(source);if(existing){styleOwnershipFallback.set(element,existing);try{publishStyleOwnership(element,existing)||detachedStyleOwnership.set(element,{source,ownership:existing})}catch{detachedStyleOwnership.set(element,{source,ownership:existing})}return existing}}catch{}const fallback=styleOwnershipFallback.get(element);if(fallback)return fallback;const record={attributes:new Map,properties:new Map};styleOwnershipFallback.set(element,record);try{publishStyleOwnership(element,record)}catch{}return record}function writeStyleAttributes(element,desired){const ownership=ownershipFor(element).attributes;for(const[name,value]of ownership)Object.hasOwn(desired,name)||(element.getAttribute(name)===value.written&&(value.before===null?element.removeAttribute(name):element.setAttribute(name,value.before)),ownership.delete(name));for(const[name,value]of Object.entries(desired))ownership.has(name)||ownership.set(name,{before:element.getAttribute(name),priority:"",written:value}),element.getAttribute(name)!==value&&element.setAttribute(name,value),ownership.get(name).written=value}function writeStyleProperties(element,desired){const style=element.style;if(!style)return;const ownership=ownershipFor(element).properties;for(const[name,value]of ownership)desired.has(name)||(style.getPropertyValue(name)===value.written&&style.getPropertyPriority(name)===""&&(value.before?style.setProperty(name,value.before,value.priority):style.removeProperty(name)),ownership.delete(name));for(const[name,value]of desired){ownership.has(name)||ownership.set(name,{before:style.getPropertyValue(name),priority:style.getPropertyPriority(name),written:null});const record=ownership.get(name);(style.getPropertyPriority(name)!==""||style.getPropertyValue(name)!==value&&!(record.requested===value&&record.written===style.getPropertyValue(name)))&&(style.getPropertyPriority(name)&&style.removeProperty(name),style.setProperty(name,value,"")),record.requested=value,record.written=style.getPropertyValue(name)}}function styleSlot(name,mode,accent=!1){return`--_lr-${accent?"a":"l"}${mode==="light"?"l":"d"}-${name.slice(11)}`}function styleFollow(name,value){const channel=name.match(/^--lr-theme-color-(?:success|warning|danger|neutral)-((?:fill|border|on)-(?:quiet|normal|loud))$/)?.[1];return!!(channel&&value===`var(--lr-theme-color-brand-${channel})`)}function styleBranch(name,mode){let result=`var(${styleSlot(name,mode)})`;if(STYLE_FOLLOW.includes(name)){const key=mode==="light"?"l":"d",target=name.replace(/color-(?:success|warning|danger|neutral)-/,"color-brand-");result=`var(--_lr-f${key}-${name.slice(11)},${result})var(--_lr-o${key}-${name.slice(11)},var(${styleSlot(target,mode,!0)},var(${styleSlot(target,mode)})))`}return ALL_RAMP_PROPERTIES.includes(name)?`var(${styleSlot(name,mode,!0)},${result})`:result}function styleResolvedInput(name){const input=`var(--_lr-dark-on,${styleBranch(name,"light")})var(--_lr-light-on,${styleBranch(name,"dark")})`;if(!STYLE_DENSITY.includes(name))return input;const spacing=name.startsWith("--lr-theme-space-");return`var(--_lr-dense-on,${input})var(--_lr-dense-off,max(calc((${input}) * var(--_lr-density-${spacing?"space":"control"},1)),${spacing?"0px":"var(--_lr-density-target-min,0px)"}))`}function styleReferences(state,entries,mode,element,previous){const look=element.closest("[data-lr-look]")?.getAttribute("data-lr-look")??STYLE_DEFAULTS.look,colors=(Object.hasOwn(STYLE_REFERENCE_SURFACES,look)?STYLE_REFERENCE_SURFACES[look]:STYLE_REFERENCE_SURFACES.lyra)[mode],names=["color-surface-default","color-surface-raised","color-text-normal","color-overlay-strong"].slice(0,entries.size?4:1).map(suffix=>`--lr-theme-${suffix}`),supplied=names.map(name=>entries.get(name)),background=typeof state.accentBackground=="string"?state.accentBackground:state.accentBackground?.[mode],style=element.style,ownership=ownershipFor(element).properties,projected=names.flatMap((name,index)=>{const slot=styleSlot(name,mode),owned=ownership.get(slot),before=style?.getPropertyValue(slot)??"",priority=style?.getPropertyPriority(slot)??"",owns=owned&&before===owned.written&&!priority;if(supplied[index]!==void 0&&previous?.[index]===supplied[index]&&owns)return[];if(supplied[index]===void 0&&!owns)return[];const value=supplied[index]??owned?.before??"",nextPriority=supplied[index]===void 0?owned?.priority??"":"";return before===value&&priority===nextPriority?[]:[{slot,before,priority,value,nextPriority}]});try{for(const{slot,value,nextPriority}of projected)style.getPropertyPriority(slot)&&style.removeProperty(slot),value?style.setProperty(slot,value,nextPriority):style.removeProperty(slot);const computed=element.ownerDocument.defaultView?.getComputedStyle(element);return{supplied,colors:names.map((name,index)=>(index===0?background:void 0)??supplied[index]??(computed?.getPropertyValue(styleSlot(name,mode)).trim()||colors[index]))}}finally{for(const{slot,before,priority}of projected)style.getPropertyPriority(slot)&&style.removeProperty(slot),before?style.setProperty(slot,before,priority):style.removeProperty(slot)}}const stylePaintCache=new WeakMap;function stylePaint(state,element,wholeDocument){const desired=new Map,mode=styleResolvedMode(state.mode,element.ownerDocument.defaultView),tokens={...state.tokens,...state.overrides};if(wholeDocument&&mode===null)for(const[name,value]of tokenEntries(tokens,null))desired.set(name,value);if(!Object.keys(tokens).length&&(!state.accent||state.accentName))return stylePaintCache.delete(element),desired;const resolver=element.ownerDocument.defaultView?.getComputedStyle(element).getPropertyValue("--_lr-style-resolver").trim()==="1";let cache=stylePaintCache.get(element);cache||(cache=new Map,stylePaintCache.set(element,cache));let applied=state.accent;for(const branch of["light","dark"]){const entries=tokenEntries(tokens,branch),{colors:references,supplied}=styleReferences(state,entries,branch,element,cache.get(branch)?.supplied),reference=references[0],key=JSON.stringify([tokens,state.accent,state.accentName,references]);let cached=cache.get(branch);if(!cached||cached.key!==key){const background=reference?parseResolvedRgb(reference,MODE_SURFACES[branch],element.ownerDocument)??MODE_SURFACES[branch]:MODE_SURFACES[branch],accent=state.accentName?{applied:state.accent,properties:new Map}:paintAccent(state.accent,branch,background,element.ownerDocument);cached={key,supplied,tokens:floorTokenEntries(entries,background,element.ownerDocument,references),accent:accent.properties,applied:accent.applied},cache.set(branch,cached)}branch===mode&&(applied=cached.applied);const painted=cached.tokens;for(const[name,value]of painted)STYLE_SLOTTED.includes(name)&&styleTokenAllowed(name,value)?(styleFollow(name,value)?(desired.set(`--_lr-f${branch==="light"?"l":"d"}-${name.slice(11)}`," "),desired.set(`--_lr-o${branch==="light"?"l":"d"}-${name.slice(11)}`,"initial")):(desired.set(styleSlot(name,branch),value),STYLE_FOLLOW.includes(name)&&(desired.set(`--_lr-f${branch==="light"?"l":"d"}-${name.slice(11)}`,"initial"),desired.set(`--_lr-o${branch==="light"?"l":"d"}-${name.slice(11)}`," "))),wholeDocument&&branch===mode&&desired.set(name,resolver?styleResolvedInput(name):value)):(wholeDocument?branch===mode:typeof tokens[name]=="string"&&!STYLE_SLOTTED.includes(name))&&desired.set(name,value);if(state.accent&&!state.accentName)for(const[name,value]of cached.accent){if(name==="--lr-theme-accent"){branch===mode&&desired.set(name,value);continue}desired.set(styleSlot(name,branch,!0),value),wholeDocument&&branch===mode&&desired.set(name,resolver?styleResolvedInput(name):value)}}return state.accent=applied,desired}const styleModeGroups=new WeakMap;function attachStyleMode(element,callback){const view=element.ownerDocument.defaultView;if(!view?.matchMedia)return()=>{};let group=styleModeGroups.get(view);if(!group){const query=view.matchMedia(COLOR_SCHEME_QUERY),subscriptions=new Set,modern=typeof query.addEventListener=="function"&&typeof query.removeEventListener=="function",detach=()=>{modern?query.removeEventListener("change",listener):query.removeListener?.(listener)},listener=()=>{for(const subscription2 of subscriptions){const node=subscription2.element.deref();node?.ownerDocument.defaultView===view?subscription2.callback(node):subscriptions.delete(subscription2)}subscriptions.size||(detach(),styleModeGroups.delete(view))};group={query,subscriptions,detach},styleModeGroups.set(view,group),modern?query.addEventListener("change",listener):query.addListener?.(listener)}const subscription={element:new WeakRef(element),callback};group.subscriptions.add(subscription);const active=group;return()=>{active.subscriptions.delete(subscription),active.subscriptions.size||(active.detach(),styleModeGroups.delete(view))}}function applyStyleState(element,state,fields){const snapshot=styleSnapshot(state,element.ownerDocument.defaultView),attributes={...lyraStyleAttributes(snapshot)};if(fields)for(const[field,name]of[["look","look"],["surface","surface"],["density","density"],["mode","mode"],["accent","accent"]])fields.has(field)||delete attributes[`data-lr-${name}`];state.accent&&!state.accentName&&(!fields||fields.has("accent"))&&(attributes["data-lr-accent"]="custom"),(!fields||fields.has("mode"))&&snapshot.resolvedMode&&(attributes["data-lr-theme"]=snapshot.resolvedMode,attributes["data-theme"]=snapshot.resolvedMode),(state.tokens||state.overrides||state.accent&&!state.accentName)&&(attributes["data-lr-theme-scope"]=""),writeStyleAttributes(element,attributes);const desired=stylePaint(state,element,!fields);(!fields||fields.has("surface"))&&element.ownerDocument.defaultView?.getComputedStyle(element).getPropertyValue("--_lr-style-resolver").trim()!=="1"&&styleMaterial(desired,state.surface),!state.accent&&snapshot.accent&&(attributes["data-lr-accent"]="none",!state.tokens&&!state.overrides&&delete attributes["data-lr-theme-scope"],writeStyleAttributes(element,attributes)),writeStyleProperties(element,desired),adoptTokenLayerForScope(element),diagnoseStyleSheets(element,state,fields)}function adoptTokenLayerForScope(element){const root=element.getRootNode();if(root===element.ownerDocument||root.nodeType!==11)return;const adopt=globalThis[Symbol.for("@aceshooting/lyra-ui.adopt-lyra-tokens.v1")];typeof adopt=="function"&&adopt(root)}function diagnoseStyleSheets(element,state,fields){if(!litDevWarnings())return;const selected=field=>!fields||fields.has(field),required=[];selected("look")&&!state.tokens&&state.look!=="lyra"&&state.look!==DEFAULT_STYLE.look&&required.push(["--_lr-look-installed",`${state.look}-1`,`the stylesheet for look '${state.look}'`]),selected("surface")&&state.surface==="glass"&&state.surface!==DEFAULT_STYLE.surface&&required.push(["--_lr-surface-installed","1","surfaces/glass.css"]),selected("density")&&state.density!=="comfortable"&&required.push(["--_lr-density-installed","1","density.css"]),selected("accent")&&state.accentName&&state.accentName!==DEFAULT_STYLE.accentName&&required.push(["--_lr-accent-installed",`${state.accentName}-1`,"accents.css"]);const scopedRuntime=!!(fields&&(state.tokens||state.overrides||state.accent&&!state.accentName)),alternateProfile=selected("look")&&!state.tokens&&state.look!==DEFAULT_STYLE.look||selected("accent")&&!state.accent;if(!required.length&&!scopedRuntime&&!alternateProfile)return;const computed=element.ownerDocument.defaultView?.getComputedStyle(element);if(computed){computed.getPropertyValue("--_lr-style-resolver").trim()!=="1"&&devWarnOnce("lyra-style:resolver","Lyra style choices require theme.css in the scope that owns their attributes.");for(const[property,expected,stylesheet]of required)computed.getPropertyValue(property).trim()!==expected&&devWarnOnce(`lyra-style:${property}:${expected}`,`Lyra could not find ${stylesheet} in this style scope; import or adopt the stylesheet before selecting it.`)}}function emitStyleChange(state,changed){const style=styleSnapshot(state,window);window.dispatchEvent(new CustomEvent("lr-style-change",{detail:Object.freeze({style,changed:Object.freeze([...changed])})}))}function setLyraStyle(choices){const before=readStyleState();return commitStyle(before,normalizeStyleChoices(choices,before))}function commitStyle(before,next){if(typeof document<"u"&&(next.accent=normalizeAccent(next.accent),typeof next.accentBackground=="string"&&(next.accentBackground=normalizeColor(next.accentBackground)),next.accent||(next.accentName=null)),persistStyle(next),typeof document<"u"){applyRootStyle(next)&&persistStyle(next);const changed=STYLE_FIELDS.filter(field=>field==="look"?before.look!==next.look||!tokensEqual(before.tokens,next.tokens):field==="accent"?before.accentName!==next.accentName||!accentsEqual(before.accent,next.accent):JSON.stringify(before[field])!==JSON.stringify(next[field]));emitStyleChange(next,changed)}return styleSnapshot(next,typeof window>"u"?void 0:window)}function applyRootStyle(next){const root=document.documentElement;(next.mode!=="system"||styleModeRoot?.deref()!==root)&&(styleModeCleanup?.(),styleModeCleanup=void 0,styleModeRoot=void 0),adoptLegacyOwnership(root);const requestedAccent=next.accent;return applyStyleState(root,next),next.mode==="system"&&!styleModeCleanup&&(styleModeRoot=new WeakRef(root),styleModeCleanup=attachStyleMode(root,element=>{applyStyleState(element,lastStyle),emitStyleChange(lastStyle,["resolvedMode"])})),!accentsEqual(requestedAccent,next.accent)}function adoptLegacyOwnership(root){const symbol=Symbol.for(TOKEN_OWNERSHIP_SYMBOL),node=root;try{if(!Array.isArray(node[symbol]))return}catch{return}const ownership=ownershipFor(root).properties;for(const name of[...readOwnershipList(),...ALL_RAMP_PROPERTIES,"--lr-theme-accent"])ownership.has(name)||!root.style.getPropertyValue(name)||ownership.set(name,{before:null,priority:"",written:root.style.getPropertyValue(name)});try{delete node[symbol]}catch{}}function getLyraStyle(){return styleSnapshot(readStyleState(),typeof window>"u"?void 0:window)}function startLyraStyle(){const state=readStyleState();return typeof document>"u"?styleSnapshot(state):(state.accent=normalizeAccent(state.accent),typeof state.accentBackground=="string"&&(state.accentBackground=normalizeColor(state.accentBackground)),state.accent||(state.accentName=null),lastStyle=state,applyRootStyle(state),styleSnapshot(state,window))}function resetLyraStyle(fields=STYLE_FIELDS){const defaults={...STYLE_DEFAULTS,accentBackground:null,overrides:null};return setLyraStyle(Object.fromEntries(fields.filter(field=>STYLE_FIELDS.includes(field)).map(field=>[field,defaults[field]])))}function applyLyraStyleScope(element,choices){if(scopeModes.get(element)?.(),scopeModes.delete(element),choices===null){writeStyleAttributes(element,{}),writeStyleProperties(element,new Map);return}const state=normalizeStyleChoices(choices,{...DEFAULT_STYLE}),fields=new Set(STYLE_FIELDS.filter(field=>ownField(choices,field)!==void 0));applyStyleState(element,state,fields),choices.mode==="system"&&scopeModes.set(element,attachStyleMode(element,node=>applyStyleState(node,state,fields)))}const lyraThemeBootstrap=/* @__PURE__ */createLyraThemeBootstrap();export{accentsEqual,applyLyraStyleScope,createLyraThemeBootstrap,defineLyraLook,getLyraStyle,isLyraThemeTokenName,isSafeLyraThemeTokenValue,lyraStyleAttributes,lyraThemeBootstrap,parseLyraStyleRecord,resetLyraStyle,setLyraStyle,startLyraStyle,tokensEqual};
1
+ import{devWarnOnce,litDevWarnings}from"../internal/dev-warning.js";import{readStyleOwnership}from"./style-ownership.js";import{resolveStyleStartup}from"./startup-resolution.js";const STORAGE_KEY="lyra-theme",TOKEN_NAME_PATTERN=/^--lr-theme-[a-z0-9]+(?:-[a-z0-9]+)*$/,TOKEN_NAME_MAX_LENGTH=80,TOKEN_RESERVED_NAME="--lr-theme-accent",TOKEN_ENTRY_MAX=512,TOKEN_SYNTHESIZED_MAX=16,TOKEN_VALUE_MAX_LENGTH=256,TOKEN_FORBIDDEN_PATTERN=/[\x00-\x1f\x7f\\;{}!<>@[\]`$^|~=?&:\u2028\u2029]|\/\*|\*\//,TOKEN_CSS_WIDE_PATTERN=/^(?:inherit|initial|revert(?:-layer)?|unset)$/i,TOKEN_FUNCTION_PATTERN=/([a-z0-9_-]+)\s*\(/gi,TOKEN_ALLOWED_FUNCTIONS="rgb rgba hsl hsla hwb lab lch oklab oklch color color-mix light-dark calc min max clamp var cubic-bezier steps linear".split(" "),TOKEN_OWNERSHIP_MAX=TOKEN_ENTRY_MAX+TOKEN_SYNTHESIZED_MAX,TOKEN_OWNERSHIP_SYMBOL="@aceshooting/lyra-ui.theme-tokens.v1",MODE_SURFACES={light:[255,255,255],dark:[10,10,10]},COLOR_SCHEME_QUERY="(prefers-color-scheme: dark)",SEMANTIC_ROLES=["brand","success","warning","danger","neutral"],RAMP_CHANNELS=["fill","border","on"],RAMP_TIERS=["quiet","normal","loud"];function roleRampProperties(role){const properties=[];for(const channel of RAMP_CHANNELS)for(const tier of RAMP_TIERS)properties.push(`--lr-theme-color-${role}-${channel}-${tier}`);return properties}const ALL_RAMP_PROPERTIES=[...SEMANTIC_ROLES.flatMap(roleRampProperties),"--lr-theme-color-focus"],MODE_ATTRIBUTES=["data-lr-theme","data-theme"];function isBalancedCssValue(value){let depth=0,quote="";for(const character of value){if(quote){character===quote&&(quote="");continue}if(character==="'"||character==='"')quote=character;else if(character==="(")depth+=1;else if(character===")"&&(depth-=1)<0)return!1}return quote===""&&depth===0}function isLyraThemeTokenName(name){return typeof name=="string"&&name.length<=TOKEN_NAME_MAX_LENGTH&&TOKEN_NAME_PATTERN.test(name)&&name!==TOKEN_RESERVED_NAME}function isSafeLyraThemeTokenValue(value){if(typeof value!="string")return!1;const trimmed=value.trim();if(!trimmed||trimmed.length>TOKEN_VALUE_MAX_LENGTH||TOKEN_FORBIDDEN_PATTERN.test(trimmed)||TOKEN_CSS_WIDE_PATTERN.test(trimmed))return!1;for(const match of trimmed.matchAll(TOKEN_FUNCTION_PATTERN))if(!TOKEN_ALLOWED_FUNCTIONS.includes((match[1]??"").toLowerCase()))return!1;return isBalancedCssValue(trimmed)}function isPlainRecord(value){if(typeof value!="object"||value===null||Array.isArray(value))return!1;const prototype=Object.getPrototypeOf(value);if(prototype===Object.prototype||prototype===null)return!0;if(Object.getPrototypeOf(prototype)!==null)return!1;const constructor=Object.getOwnPropertyDescriptor(prototype,"constructor")?.value;return typeof constructor=="function"&&Function.prototype.toString.call(constructor)===Function.prototype.toString.call(Object)}function normalizeTokenBranch(value){return isSafeLyraThemeTokenValue(value)?value.trim():null}function normalizeTokens(raw){try{if(!isPlainRecord(raw))return null;const names=Object.keys(raw);if(names.length===0||names.length>TOKEN_ENTRY_MAX)return null;const result={};let kept=0;for(const name of names){if(!isLyraThemeTokenName(name))continue;const value=ownField(raw,name);if(typeof value=="string"){const normalized=normalizeTokenBranch(value);if(normalized===null)continue;result[name]=normalized,kept+=1;continue}if(!isPlainRecord(value))continue;const keys=Object.keys(value),hasLight=Object.prototype.hasOwnProperty.call(value,"light"),hasDark=Object.prototype.hasOwnProperty.call(value,"dark");if(!hasLight&&!hasDark||keys.some(key=>key!=="light"&&key!=="dark"))continue;const light=normalizeTokenBranch(ownField(value,"light")),dark=normalizeTokenBranch(ownField(value,"dark"));light===null&&dark===null||(result[name]=Object.freeze({light,dark}),kept+=1)}return kept>0?Object.freeze(result):null}catch{return null}}function tokensEqual(left,right){const leftNames=left?Object.keys(left):[],rightNames=right?Object.keys(right):[];if(leftNames.length!==rightNames.length)return!1;if(leftNames.length===0)return!0;const leftMap=left,rightMap=right;return leftNames.every(name=>{if(!Object.prototype.hasOwnProperty.call(rightMap,name))return!1;const a=leftMap[name],b=rightMap[name];return typeof a=="string"||typeof b=="string"?a===b:!a||!b?!1:(a.light??null)===(b.light??null)&&(a.dark??null)===(b.dark??null)})}function normalizeColor(value,owner=document){if(typeof value!="string"||!value.trim())return null;const candidate=value.trim();if(!isBalancedCssValue(candidate)||TOKEN_CSS_WIDE_PATTERN.test(candidate)||/^(?:accentcolor|accentcolortext|activetext|buttonborder|buttonface|buttontext|canvas|canvastext|field|fieldtext|graytext|highlight|highlighttext|linktext|mark|marktext|selecteditem|selecteditemtext|visitedtext)$/i.test(candidate)||/\bcurrentcolor\b/i.test(candidate)||/\bvar\s*\(/i.test(candidate)||/\blight-dark\s*\(/i.test(candidate)||/\b(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color)\s*\(\s*from\b/i.test(candidate))return null;const probe=owner.createElement("span");return probe.style.color=candidate,probe.style.color?candidate:null}function normalizeAccentValue(value){if(typeof value=="string"||value===null)return normalizeColor(value);if(typeof value!="object"||Array.isArray(value))return null;const record=value;if(!("light"in record)&&!("dark"in record))return null;const light=normalizeColor(record.light),dark=normalizeColor(record.dark);return light||dark?{light,dark}:null}function normalizeAccent(value){if(typeof value=="string")return normalizeColor(value);if(value===null||typeof value!="object"||Array.isArray(value))return null;const record=value,result={};let hasRole=!1;for(const role of SEMANTIC_ROLES)role in record&&(hasRole=!0,result[role]=normalizeAccentValue(record[role]));return hasRole?result:null}function resolveAccentValueForMode(value,mode){return typeof value=="string"?value:value?value[mode]??null:null}function accentValueEqual(left,right){return left===right?!0:typeof left=="string"||typeof right=="string"||left===null||right===null?!1:(left.light??null)===(right.light??null)&&(left.dark??null)===(right.dark??null)}function accentsEqual(left,right){if(left===right)return!0;if(typeof left=="string"||typeof right=="string"||left===null||right===null)return!1;const leftKeys=Object.keys(left),rightKeys=Object.keys(right);return leftKeys.length!==rightKeys.length?!1:leftKeys.every(role=>accentValueEqual(left[role],right[role]))}function parseResolvedRgb(value,background,owner=document){if(!normalizeColor(value,owner))return null;try{const canvas=owner.createElement("canvas");canvas.width=1,canvas.height=1;const context=canvas.getContext("2d",{willReadFrequently:!0});if(!context)return null;context.clearRect(0,0,1,1),context.fillStyle=value,context.fillRect(0,0,1,1);const channels=context.getImageData(0,0,1,1).data,red=channels[0]??0,green=channels[1]??0,blue=channels[2]??0,alpha=(channels[3]??0)/255;return[Math.round(red*alpha+background[0]*(1-alpha)),Math.round(green*alpha+background[1]*(1-alpha)),Math.round(blue*alpha+background[2]*(1-alpha))]}catch{return null}}function hexRgb(color){return[parseInt(color.slice(1,3),16),parseInt(color.slice(3,5),16),parseInt(color.slice(5,7),16)]}function mixRgb(base,color,colorWeight){return[Math.round(base[0]*(1-colorWeight)+color[0]*colorWeight),Math.round(base[1]*(1-colorWeight)+color[1]*colorWeight),Math.round(base[2]*(1-colorWeight)+color[2]*colorWeight)]}function serializeRgb(color){return`rgb(${color.join(" ")})`}function relativeLuminance(color){const linearize=channel=>{const normalized=channel/255;return normalized<=.04045?normalized/12.92:((normalized+.055)/1.055)**2.4};return linearize(color[0])*.2126+linearize(color[1])*.7152+linearize(color[2])*.0722}function contrastRatio(left,right){const a=relativeLuminance(left),b=relativeLuminance(right);return(Math.max(a,b)+.05)/(Math.min(a,b)+.05)}function contrastForeground(fill){const black=[0,0,0],white=[255,255,255];return contrastRatio(fill,black)>=contrastRatio(fill,white)?black:white}function ensureSurfaceContrast(color,background,minimum=3,alsoAgainst=background,references=[]){const passes=candidate=>contrastRatio(candidate,background)>=minimum&&contrastRatio(candidate,alsoAgainst)>=minimum&&references.every(reference=>contrastRatio(candidate,reference)>=minimum);if(passes(color))return color;const black=[0,0,0],white=[255,255,255],target=contrastRatio(background,black)>=contrastRatio(background,white)?black:white;for(let step=1;step<=10;step+=1){const candidate=mixRgb(color,target,step/10);if(passes(candidate))return candidate}return target}function createRoleRamp(role,base,mode,background,owner=document){const references=STYLE_CONTRAST_SURFACES[mode].map(hexRgb),resolved=parseResolvedRgb(base,background,owner);if(!resolved)return null;const quiet=mixRgb(background,resolved,mode==="dark"?.24:.14),normal=mixRgb(background,resolved,mode==="dark"?.62:.55),loud=ensureSurfaceContrast(resolved,background,4.5,quiet,references),borderTarget=mode==="dark"?[255,255,255]:[0,0,0],borderQuiet=mixRgb(background,resolved,mode==="dark"?.46:.38),borderNormal=ensureSurfaceContrast(mixRgb(background,resolved,mode==="dark"?.78:.72),background,3,background,references),borderLoud=ensureSurfaceContrast(mixRgb(loud,borderTarget,.2),background,3,background,references),prefix=`--lr-theme-color-${role}`,ramp={[`${prefix}-fill-quiet`]:serializeRgb(quiet),[`${prefix}-fill-normal`]:serializeRgb(normal),[`${prefix}-fill-loud`]:serializeRgb(loud),[`${prefix}-border-quiet`]:serializeRgb(borderQuiet),[`${prefix}-border-normal`]:serializeRgb(borderNormal),[`${prefix}-border-loud`]:serializeRgb(borderLoud),[`${prefix}-on-quiet`]:serializeRgb(contrastForeground(quiet)),[`${prefix}-on-normal`]:serializeRgb(contrastForeground(normal)),[`${prefix}-on-loud`]:serializeRgb(contrastForeground(loud))};return role==="brand"&&(ramp["--lr-theme-color-focus"]=serializeRgb(ensureSurfaceContrast(resolved,background,3,background,references))),ramp}function paintAccent(accent,mode,background,owner=document){const properties=new Map;if(!accent)return{applied:null,properties};if(!mode)return{applied:accent,properties};if(typeof accent=="string"){const ramp=createRoleRamp("brand",accent,mode,background,owner);if(!ramp)return{applied:null,properties};properties.set("--lr-theme-accent",accent);for(const[property,value]of Object.entries(ramp))properties.set(property,value);return{applied:accent,properties}}const applied={};let appliedBrandColor=null;for(const role of SEMANTIC_ROLES){const value=accent[role];if(!value)continue;const isPerMode=typeof value!="string",base=resolveAccentValueForMode(value,mode);let painted=!1;if(base){const ramp=createRoleRamp(role,base,mode,background,owner);if(ramp){for(const[property,propertyValue]of Object.entries(ramp))properties.set(property,propertyValue);painted=!0,role==="brand"&&(appliedBrandColor=base)}}(painted||isPerMode)&&(applied[role]=value)}return appliedBrandColor&&properties.set("--lr-theme-accent",appliedBrandColor),{applied:Object.keys(applied).length>0?applied:null,properties}}function tokenEntries(tokens,mode){const entries=new Map;if(!tokens)return entries;for(const[name,value]of Object.entries(tokens))if(typeof value=="string")entries.set(name,value);else if(mode){const branch=value[mode];branch&&entries.set(name,branch)}return entries}function resolveTokenColor(value,background,owner){return value===void 0||!background||!normalizeColor(value,owner)?null:parseResolvedRgb(value,background,owner)}function floorTokenEntries(entries,surface,owner,references){if(!entries.size)return new Map;const resolveColor=(value,background)=>resolveTokenColor(value,background,owner),painted=new Map(entries),prefix="--lr-theme-",raised=resolveColor(entries.get(`${prefix}color-surface-raised`)??references[1],surface),floor=(name,over,against,minimum,alsoAgainst)=>{const value=painted.get(name);if(value===void 0||!against||alsoAgainst===null)return;const color=resolveColor(value,over);if(!color)return;const repaired=ensureSurfaceContrast(color,against,minimum,alsoAgainst??against);repaired!==color&&painted.set(name,serializeRgb(repaired))};floor(`${prefix}color-text-normal`,surface,surface,4.5,raised),floor(`${prefix}color-text-quiet`,surface,surface,4.5,raised);const text=entries.has(`${prefix}color-text-normal`)?resolveColor(painted.get(`${prefix}color-text-normal`),surface):resolveColor(references[2],surface),pairForeground=(onName,fill)=>{if(!fill)return;const on=painted.get(onName);if(on===void 0){painted.set(onName,serializeRgb(contrastForeground(fill)));return}const color=resolveColor(on,fill);color&&contrastRatio(color,fill)<4.5&&painted.set(onName,serializeRgb(contrastForeground(fill)))};for(const role of SEMANTIC_ROLES)for(const tier of RAMP_TIERS){const fillName=`${prefix}color-${role}-fill-${tier}`;entries.has(fillName)&&pairForeground(`${prefix}color-${role}-on-${tier}`,resolveColor(entries.get(fillName),surface))}const overlayName=`${prefix}color-overlay-strong`,overlay=entries.has(overlayName)?resolveColor(entries.get(overlayName),surface):resolveColor(references[3],surface);(entries.has(overlayName)||entries.has(`${prefix}color-on-strong-overlay`))&&pairForeground(`${prefix}color-on-strong-overlay`,overlay);for(const name of entries.keys())/^--lr-theme-color-(?:(?:brand|success|warning|danger|neutral)-border-(?:normal|loud)|surface-border|border-strong|focus|chart-\d+)$/.test(name)?floor(name,surface,surface,3):/^--lr-theme-terminal-color-[a-z0-9-]+$/.test(name)?floor(name,raised,raised,4.5):/^--lr-theme-terminal-bg-[a-z0-9-]+$/.test(name)&&floor(name,raised,text,4.5);return painted}function readOwnershipList(){try{const list=document.documentElement[Symbol.for(TOKEN_OWNERSHIP_SYMBOL)];if(!Array.isArray(list))return[];const names=[],length=Math.min(list.length,TOKEN_OWNERSHIP_MAX);for(let index=0;index<length;index+=1){const name=list[index];isLyraThemeTokenName(name)&&names.push(name)}return names}catch{return[]}}function applyStoredThemeBeforePaint(){const R=["brand","success","warning","danger","neutral"],Q=["quiet","normal","loud"],W=/^--lr-theme-[a-z0-9]+(?:-[a-z0-9]+)*$/,_="--lr-theme-accent",G=/[\x00-\x1f\x7f\\;{}!<>@[\]`$^|~=?&:\u2028\u2029]|\/\*|\*\//,H=/^(?:inherit|initial|revert(?:-layer)?|unset)$/i,J=/([a-z0-9_-]+)\s*\(/gi,K="rgb rgba hsl hsla hwb lab lch oklab oklch color color-mix light-dark calc min max clamp var cubic-bezier steps linear".split(" "),U={light:[255,255,255],dark:[10,10,10]},X=r=>{let o=0,h="";for(const a of r){if(h){a===h&&(h="");continue}if(a==="'"||a==='"')h=a;else if(a==="(")o+=1;else if(a===")"&&(o-=1)<0)return!1}return h===""&&o===0},Y=r=>typeof r=="string"&&r.length<=80&&W.test(r)&&r!==_,P=r=>{if(typeof r!="string")return null;const o=r.trim();if(!o||o.length>256||G.test(o)||H.test(o))return null;for(const h of o.matchAll(J))if(!K.includes((h[1]??"").toLowerCase()))return null;return X(o)?o:null},A=r=>{if(typeof r!="object"||r===null||Array.isArray(r))return!1;const o=Object.getPrototypeOf(r);return o===Object.prototype||o===null},Z=r=>{const o={};try{if(!A(r))return o;const h=Object.keys(r);if(h.length<=512)for(const a of h){if(!Y(a))continue;const g=r[a];if(typeof g=="string"){const u=P(g);u!==null&&(o[a]=u);continue}if(!A(g))continue;const j=Object.hasOwn(g,"light"),i=Object.hasOwn(g,"dark");if(!j&&!i||Object.keys(g).some(u=>u!=="light"&&u!=="dark"))continue;const M=P(g.light),y=P(g.dark);(M!==null||y!==null)&&(o[a]={light:M,dark:y})}}catch{}return o},C=r=>{const o=P(r);if(!(!o||/\b(?:var|light-dark)\s*\(|\b(?:currentcolor|from)\b/i.test(o)||/^(?:accentcolor|accentcolortext|activetext|buttonborder|buttonface|buttontext|canvas|canvastext|field|fieldtext|graytext|highlight|highlighttext|linktext|mark|marktext|selecteditem|selecteditemtext|visitedtext)$/i.test(o)))return CSS.supports("color",o)?o:void 0};return[Z,C,(r,o,h,a,g,j)=>{const i=new Map;for(const[t,n]of Object.entries(r)){const e=typeof n=="string"?n:n[o];e&&i.set(t,e)}const M=typeof a=="string"?{brand:a}:a,y={};for(const t of R){const n=M?.[t],e=typeof n=="string"?n:n?.[o];e&&(y[t]=e)}let u=null;if(i.size>0||Object.keys(y).length>0)try{const t=document.createElement("canvas");t.width=1,t.height=1,u=t.getContext("2d",{willReadFrequently:!0})}catch{u=null}const S=(t,n)=>{if(!u)return null;try{u.clearRect(0,0,1,1),u.fillStyle=t,u.fillRect(0,0,1,1);const e=u.getImageData(0,0,1,1).data,c=(e[3]??0)/255;return[0,1,2].map(f=>Math.round((e[f]??0)*c+(n[f]??0)*(1-c)))}catch{return null}},z=(t,n,e)=>t.map((c,f)=>Math.round(c*(1-e)+(n[f]??0)*e)),B=t=>{const n=t.map(e=>{const c=e/255;return c<=.04045?c/12.92:((c+.055)/1.055)**2.4});return(n[0]??0)*.2126+(n[1]??0)*.7152+(n[2]??0)*.0722},O=(t,n)=>{const e=B(t),c=B(n);return(Math.max(e,c)+.05)/(Math.min(e,c)+.05)},v=[0,0,0],F=[255,255,255],w=t=>O(t,v)>=O(t,F)?v:F,q=(t,n,e=3,c=n)=>{const f=d=>O(d,n)>=e&&O(d,c)>=e&&g.every(k=>O(d,k)>=e);if(f(t))return t;const p=w(n);for(let d=1;d<=10;d+=1){const k=z(t,p,d/10);if(f(k))return k}return p},m=t=>`rgb(${t.join(" ")})`,D=U[o],E=C(h)??C(i.get("--lr-theme-color-surface-default")),s=E&&S(E,D)||D,l=new Map(i),b="--lr-theme-",$=(t,n)=>t!==void 0&&n&&C(t)?S(t,n):null,tt=`${b}color-surface-raised`,N=$(i.get(tt)??j[1],s),L=(t,n,e,c,f)=>{const p=l.get(t);if(p===void 0||!e||f===null)return;const d=$(p,n);if(!d)return;const k=q(d,e,c,f??e);k!==d&&l.set(t,m(k))};L(`${b}color-text-normal`,s,s,4.5,N),L(`${b}color-text-quiet`,s,s,4.5,N);const et=i.has(`${b}color-text-normal`)?$(l.get(`${b}color-text-normal`),s):$(j[2],s),I=(t,n)=>{if(!n)return;const e=l.get(t),c=e===void 0?null:$(e,n);(e===void 0||c&&O(c,n)<4.5)&&l.set(t,m(w(n)))};for(const t of R)for(const n of Q){const e=`${b}color-${t}-fill-${n}`;i.has(e)&&I(`${b}color-${t}-on-${n}`,$(i.get(e),s))}const T=`${b}color-overlay-strong`;(i.has(T)||i.has(`${b}color-on-strong-overlay`))&&I(`${b}color-on-strong-overlay`,i.has(T)?$(i.get(T),s):$(j[3],s));for(const t of i.keys())/^--lr-theme-color-(?:(?:brand|success|warning|danger|neutral)-border-(?:normal|loud)|surface-border|border-strong|focus|chart-\d+)$/.test(t)?L(t,s,s,3):/^--lr-theme-terminal-color-[a-z0-9-]+$/.test(t)?L(t,N,N,4.5):/^--lr-theme-terminal-bg-[a-z0-9-]+$/.test(t)&&L(t,N,et,4.5);if(!u)return l;let V=null;for(const t of R){const n=y[t];if(!n)continue;const e=S(n,s);if(!e)continue;const c=z(s,e,o==="dark"?.24:.14),f=z(s,e,o==="dark"?.62:.55),p=q(e,s,4.5,c),d=o==="dark"?F:v,k=z(s,e,o==="dark"?.46:.38),nt=q(z(s,e,o==="dark"?.78:.72),s),ot=q(z(p,d,.2),s),x=`--lr-theme-color-${t}`;l.set(`${x}-fill-quiet`,m(c)),l.set(`${x}-fill-normal`,m(f)),l.set(`${x}-fill-loud`,m(p)),l.set(`${x}-border-quiet`,m(k)),l.set(`${x}-border-normal`,m(nt)),l.set(`${x}-border-loud`,m(ot)),l.set(`${x}-on-quiet`,m(w(c))),l.set(`${x}-on-normal`,m(w(f))),l.set(`${x}-on-loud`,m(w(p))),t==="brand"&&(l.set("--lr-theme-color-focus",m(q(e,s))),V=n)}return V&&l.set("--lr-theme-accent",V),l}]}function styleMaterial(l,n){const t=n==="glass";for(const[a,i]of Object.entries({enabled:t?"1":"0",content:t?"''":"none",isolation:t?"isolate":"auto","root-filter":t?"initial":"none","child-filter":t?"none":"initial","child-opacity":t?"1":"0"}))l.set(`--_lr-surface-${a}`,i);l.set("--_lr-glass-blocker",t?"initial":"none"),t||(l.set("--_lr-glass-parent-opacity","0"),l.set("--_lr-next-glass-opacity","0"))}function applyStoredStyleBeforePaint(U,q,D,R,G,J,W,S){const{surfaces:_,contrast:H,accent:Q}=S,b=new Map;for(const r of S.inputs.split(" "))b.set(`--lr-theme-${r.slice(1)}`,Number(r[0]));const A=[...b.keys()];function v(r,n,s=!1){return`--_lr-${s?"a":"l"}${n==="light"?"l":"d"}-${r.slice(11)}`}function V(r,n){const s=b.get(r)??0;let g=`var(${v(r,n)})`;if(s&2){const k=n==="light"?"l":"d",u=r.replace(/color-(?:success|warning|danger|neutral)-/,"color-brand-");g=`var(--_lr-f${k}-${r.slice(11)},${g})var(--_lr-o${k}-${r.slice(11)},var(${v(u,n,!0)},var(${v(u,n)})))`}return s&4?`var(${v(r,n,!0)},${g})`:g}function X(r){const n=`var(--_lr-dark-on,${V(r,"light")})var(--_lr-light-on,${V(r,"dark")})`;if(!((b.get(r)??0)&1))return n;const s=r.startsWith("--lr-theme-space-");return`var(--_lr-dense-on,${n})var(--_lr-dense-off,max(calc((${n}) * var(--_lr-density-${s?"space":"control"},1)),${s?"0px":"var(--_lr-density-target-min,0px)"}))`}try{const r=document.currentScript,n=r?.getAttribute("data-lr-theme-restore"),s=(n==="all"||n==="mode"?n:S.restore)==="mode",g=r?.getAttribute("data-lr-theme-storage-key"),k=g&&g.length<=200?g:U,u=r?.getAttribute("data-lr-theme-attributes")?.trim().split(/\s+/),E=u?.length&&u.length<=8&&new Set(u).size===u.length&&u.every(t=>t.length<=64&&/^data-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t))?u:q;let w;try{w=JSON.parse(localStorage.getItem(k)??"null")}catch{}if(s){const t=w;w={version:t?.version,mode:t?.mode}}const o=document.documentElement,[Z,tt,et]=D(),f=J(w,S.defaults,Z,tt,(t,e)=>R(t,e,A),Q),y=f.mode,$=y==="unset"?null:y==="system"?matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":y,p={},C=!s&&getComputedStyle(o).getPropertyValue("--_lr-style-resolver").trim()==="1",L=(t,e)=>typeof t=="string"?t:t?.[e],rt=f.tokens,ot=f.overrides,O={...rt,...ot},T=f.look;if(s||(p["data-lr-look"]=T,p["data-lr-density"]=f.density,p["data-lr-surface"]=f.treatment),y!=="unset"&&(p["data-lr-mode"]=y),$)for(const t of E)p[t]=$;const z=f.accentName;let h=f.accent;y!=="unset"&&h&&typeof h=="object"&&!Object.values(h).some(t=>typeof t=="string"||t&&Object.values(t).some(Boolean))&&(h=null),s||(p["data-lr-accent"]=z??(h?"custom":"none"));const a=new Map;if(y==="unset")for(const[t,e]of Object.entries(O))typeof e=="string"&&a.set(t,e);for(const t of s?[]:["light","dark"]){const e=L(f.surface,t),j=L(O["--lr-theme-color-surface-default"],t),c=(Object.hasOwn(_,T)?_[T]:_.lyra)[t],M=e??j??c[0];for(const m of[!1,!0]){if(m&&(!h||z))continue;const st=et(m?{}:O,t,M,m?h:null,m?H[t].map(l=>[1,3,5].map(d=>parseInt(l.slice(d,d+2),16))):[],c);for(const[l,d]of st){if(l==="--lr-theme-accent"){t===$&&a.set(l,d);continue}const B=b.get(l);if(B!==void 0&&R(l,d,A)){const F=l.match(/^--lr-theme-color-(?:success|warning|danger|neutral)-((?:fill|border|on)-(?:quiet|normal|loud))$/)?.[1],N=!m&&F&&d===`var(--lr-theme-color-brand-${F})`,I=l.slice(11),K=t==="light"?"l":"d";N||a.set(v(l,t,m),d),!m&&B&2&&(a.set(`--_lr-f${K}-${I}`,N?" ":"initial"),a.set(`--_lr-o${K}-${I}`,N?"initial":" ")),t===$&&a.set(l,C?X(l):d)}else t===$&&a.set(l,d)}}}(a.size||y==="unset"&&h&&!z)&&(p["data-lr-theme-scope"]=""),!s&&!C&&W(a,f.treatment);const Y=Symbol.for("@aceshooting/lyra-ui.style-ownership.v1"),P=o;let x;try{x=G(P[Y])}catch{}const i=x??{attributes:new Map,properties:new Map};if(y==="unset")for(const t of E)i.attributes.has(t)||o.removeAttribute(t);try{const t=Symbol.for("@aceshooting/lyra-ui.theme-tokens.v1"),e=P[t];if(!s&&Array.isArray(e)){const j=e.slice(0,528).filter(c=>typeof c=="string"&&c.length<=80&&/^--lr-theme-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(c));for(const c of[...j,...A.filter(M=>b.get(M)&4),"--lr-theme-accent"])!i.properties.has(c)&&o.style.getPropertyValue(c)&&i.properties.set(c,{before:null,priority:"",written:o.style.getPropertyValue(c)});try{delete P[t]}catch{}}}catch{}for(const[t,e]of i.attributes)s&&t!=="data-lr-mode"&&!E.includes(t)||Object.hasOwn(p,t)||(o.getAttribute(t)===e.written&&(e.before===null?o.removeAttribute(t):o.setAttribute(t,e.before)),i.attributes.delete(t));for(const[t,e]of Object.entries(p))i.attributes.has(t)||i.attributes.set(t,{before:o.getAttribute(t),priority:"",written:e}),o.setAttribute(t,e),i.attributes.get(t).written=e;for(const[t,e]of i.properties)s||a.has(t)||(o.style.getPropertyValue(t)===e.written&&!o.style.getPropertyPriority(t)&&(e.before?o.style.setProperty(t,e.before,e.priority):o.style.removeProperty(t)),i.properties.delete(t));for(const[t,e]of a)i.properties.has(t)||i.properties.set(t,{before:o.style.getPropertyValue(t),priority:o.style.getPropertyPriority(t),written:null}),o.style.getPropertyPriority(t)&&o.style.removeProperty(t),o.style.setProperty(t,e,""),i.properties.get(t).written=o.style.getPropertyValue(t);try{P[Y]=i}catch{}}catch{}}const LINE_SEPARATOR="\u2028",PARAGRAPH_SEPARATOR="\u2029";function serializeInlineScriptData(value){return JSON.stringify(value).replace(/</g,"\\u003c").replace(new RegExp(LINE_SEPARATOR,"g"),"\\u2028").replace(new RegExp(PARAGRAPH_SEPARATOR,"g"),"\\u2029")}const BOOTSTRAP_FUNCTIONS=[applyStoredStyleBeforePaint,applyStoredThemeBeforePaint,styleTokenAllowed,readStyleOwnership,resolveStyleStartup,styleMaterial];function bootstrapParts(options){const storageKey=options.storageKey??STORAGE_KEY,inputs=STYLE_SLOTTED.map(name=>`${Number(STYLE_DENSITY.includes(name))|Number(STYLE_FOLLOW.includes(name))<<1|Number(ALL_RAMP_PROPERTIES.includes(name))<<2}${name.slice(11)}`).join(" "),model=JSON.stringify({restore:options.restore==="mode"?"mode":"all",defaults:STYLE_DEFAULTS,inputs,surfaces:STYLE_REFERENCE_SURFACES,contrast:STYLE_CONTRAST_SURFACES,accent:STYLE_GEMSTONES});return{storageKey,model}}function createLyraThemeBootstrap(options={}){const{storageKey,model}=bootstrapParts(options),functions=BOOTSTRAP_FUNCTIONS.map(helper=>helper.toString().replace(/^function\s+[\w$]+/,"function"));return`(${functions[0]})(${serializeInlineScriptData(storageKey)},${serializeInlineScriptData(MODE_ATTRIBUTES)},${functions.slice(1).join(",")},${model});`}const STYLE_DEFAULTS=Object.freeze({look:"shadcn",surface:"glass",density:"comfortable",mode:"system",accent:"emerald"}),STYLE_SLOTTED=["--lr-theme-color-border-strong","--lr-theme-color-brand-border-loud","--lr-theme-color-brand-border-normal","--lr-theme-color-brand-border-quiet","--lr-theme-color-brand-fill-loud","--lr-theme-color-brand-fill-normal","--lr-theme-color-brand-fill-quiet","--lr-theme-color-brand-on-loud","--lr-theme-color-brand-on-normal","--lr-theme-color-brand-on-quiet","--lr-theme-color-chart-1","--lr-theme-color-chart-2","--lr-theme-color-chart-3","--lr-theme-color-chart-4","--lr-theme-color-chart-5","--lr-theme-color-chart-6","--lr-theme-color-chart-7","--lr-theme-color-chart-8","--lr-theme-color-chart-diverging-1","--lr-theme-color-chart-diverging-2","--lr-theme-color-chart-diverging-3","--lr-theme-color-chart-sequential-1","--lr-theme-color-chart-sequential-2","--lr-theme-color-chart-sequential-3","--lr-theme-color-danger-border-loud","--lr-theme-color-danger-border-normal","--lr-theme-color-danger-border-quiet","--lr-theme-color-danger-fill-loud","--lr-theme-color-danger-fill-normal","--lr-theme-color-danger-fill-quiet","--lr-theme-color-danger-on-loud","--lr-theme-color-danger-on-normal","--lr-theme-color-danger-on-quiet","--lr-theme-color-focus","--lr-theme-color-mix-partner","--lr-theme-color-neutral-border-loud","--lr-theme-color-neutral-border-normal","--lr-theme-color-neutral-border-quiet","--lr-theme-color-neutral-fill-loud","--lr-theme-color-neutral-fill-normal","--lr-theme-color-neutral-fill-quiet","--lr-theme-color-neutral-on-loud","--lr-theme-color-neutral-on-normal","--lr-theme-color-neutral-on-quiet","--lr-theme-color-no-data","--lr-theme-color-on-strong-overlay","--lr-theme-color-overlay","--lr-theme-color-overlay-strong","--lr-theme-color-success-border-loud","--lr-theme-color-success-border-normal","--lr-theme-color-success-border-quiet","--lr-theme-color-success-fill-loud","--lr-theme-color-success-fill-normal","--lr-theme-color-success-fill-quiet","--lr-theme-color-success-on-loud","--lr-theme-color-success-on-normal","--lr-theme-color-success-on-quiet","--lr-theme-color-surface-border","--lr-theme-color-surface-border-subtle","--lr-theme-color-surface-container","--lr-theme-color-surface-container-high","--lr-theme-color-surface-container-highest","--lr-theme-color-surface-container-low","--lr-theme-color-surface-container-lowest","--lr-theme-color-surface-default","--lr-theme-color-surface-overlay","--lr-theme-color-surface-raised","--lr-theme-color-text-normal","--lr-theme-color-text-quiet","--lr-theme-color-warning-border-loud","--lr-theme-color-warning-border-normal","--lr-theme-color-warning-border-quiet","--lr-theme-color-warning-fill-loud","--lr-theme-color-warning-fill-normal","--lr-theme-color-warning-fill-quiet","--lr-theme-color-warning-on-loud","--lr-theme-color-warning-on-normal","--lr-theme-color-warning-on-quiet","--lr-theme-form-control-height-2xs","--lr-theme-form-control-height-l","--lr-theme-form-control-height-m","--lr-theme-form-control-height-s","--lr-theme-form-control-height-xl","--lr-theme-form-control-height-xs","--lr-theme-graph-cat-1","--lr-theme-graph-cat-2","--lr-theme-graph-cat-3","--lr-theme-graph-cat-4","--lr-theme-graph-cat-5","--lr-theme-graph-cat-6","--lr-theme-graph-cat-7","--lr-theme-graph-cat-8","--lr-theme-icon-button-size","--lr-theme-shadow-l","--lr-theme-shadow-m","--lr-theme-shadow-s","--lr-theme-shadow-xl","--lr-theme-shadow-xs","--lr-theme-space-2xl","--lr-theme-space-2xs","--lr-theme-space-l","--lr-theme-space-m","--lr-theme-space-s","--lr-theme-space-xs","--lr-theme-terminal-bg-black","--lr-theme-terminal-bg-blue","--lr-theme-terminal-bg-bright-black","--lr-theme-terminal-bg-bright-blue","--lr-theme-terminal-bg-bright-cyan","--lr-theme-terminal-bg-bright-green","--lr-theme-terminal-bg-bright-magenta","--lr-theme-terminal-bg-bright-red","--lr-theme-terminal-bg-bright-white","--lr-theme-terminal-bg-bright-yellow","--lr-theme-terminal-bg-cyan","--lr-theme-terminal-bg-green","--lr-theme-terminal-bg-magenta","--lr-theme-terminal-bg-red","--lr-theme-terminal-bg-white","--lr-theme-terminal-bg-yellow","--lr-theme-terminal-color-black","--lr-theme-terminal-color-blue","--lr-theme-terminal-color-bright-black","--lr-theme-terminal-color-bright-blue","--lr-theme-terminal-color-bright-cyan","--lr-theme-terminal-color-bright-green","--lr-theme-terminal-color-bright-magenta","--lr-theme-terminal-color-bright-red","--lr-theme-terminal-color-bright-white","--lr-theme-terminal-color-bright-yellow","--lr-theme-terminal-color-cyan","--lr-theme-terminal-color-green","--lr-theme-terminal-color-magenta","--lr-theme-terminal-color-red","--lr-theme-terminal-color-white","--lr-theme-terminal-color-yellow"],STYLE_DENSITY=["--lr-theme-space-2xs","--lr-theme-space-xs","--lr-theme-space-s","--lr-theme-space-m","--lr-theme-space-l","--lr-theme-space-2xl","--lr-theme-form-control-height-2xs","--lr-theme-form-control-height-xs","--lr-theme-form-control-height-s","--lr-theme-form-control-height-m","--lr-theme-form-control-height-l","--lr-theme-form-control-height-xl","--lr-theme-icon-button-size"],STYLE_FOLLOW=["--lr-theme-color-danger-border-loud","--lr-theme-color-danger-border-normal","--lr-theme-color-danger-border-quiet","--lr-theme-color-danger-fill-loud","--lr-theme-color-danger-fill-normal","--lr-theme-color-danger-fill-quiet","--lr-theme-color-danger-on-loud","--lr-theme-color-danger-on-normal","--lr-theme-color-danger-on-quiet","--lr-theme-color-neutral-border-loud","--lr-theme-color-neutral-border-normal","--lr-theme-color-neutral-border-quiet","--lr-theme-color-neutral-fill-loud","--lr-theme-color-neutral-fill-normal","--lr-theme-color-neutral-fill-quiet","--lr-theme-color-neutral-on-loud","--lr-theme-color-neutral-on-normal","--lr-theme-color-neutral-on-quiet","--lr-theme-color-success-border-loud","--lr-theme-color-success-border-normal","--lr-theme-color-success-border-quiet","--lr-theme-color-success-fill-loud","--lr-theme-color-success-fill-normal","--lr-theme-color-success-fill-quiet","--lr-theme-color-success-on-loud","--lr-theme-color-success-on-normal","--lr-theme-color-success-on-quiet","--lr-theme-color-warning-border-loud","--lr-theme-color-warning-border-normal","--lr-theme-color-warning-border-quiet","--lr-theme-color-warning-fill-loud","--lr-theme-color-warning-fill-normal","--lr-theme-color-warning-fill-quiet","--lr-theme-color-warning-on-loud","--lr-theme-color-warning-on-normal","--lr-theme-color-warning-on-quiet"],STYLE_REFERENCE_SURFACES={lyra:{light:["#ffffff","#f6f8fa","#1a1a1a","rgb(0 0 0 / 0.92)"],dark:["#1a1a1a","#22272e","#f2f2f2","rgb(0 0 0 / 0.95)"]},data:{light:["#ffffff","#f2f5f8","#10202c","#17212b"],dark:["#101820","#192630","#eef5fa","#e7eef4"]},"high-contrast":{light:["#ffffff","#ffffff","#000000","#17212b"],dark:["#000000","#000000","#ffffff","#e7eef4"]},material:{light:["#fff8f5","#f8eeea","#241b17","rgb(0 0 0 / 0.92)"],dark:["#18120f","#251d19","#f8eee8","rgb(0 0 0 / 0.95)"]},shadcn:{light:["#ffffff","#fafafa","#0a0a0a","rgb(0 0 0 / 0.92)"],dark:["#0a0a0a","#171717","#fafafa","rgb(0 0 0 / 0.95)"]},terminal:{light:["#fcfdf9","#f1f5eb","#0d2115","#17212b"],dark:["#0e1713","#18271e","#e5f5e9","#e7eef4"]}},STYLE_CONTRAST_SURFACES={light:["#ffffff","#f6f8fa","#f2f5f8","#fff8f5","#f8eeea","#fcf2ed","#f2e7e0","#ecdfd7","#fafafa","#fcfdf9","#f1f5eb"],dark:["#1a1a1a","#22272e","#2b3038","#101820","#192630","#202e39","#000000","#18120f","#251d19","#302621","#120d0a","#211914","#352a24","#0a0a0a","#171717","#0e1713","#18271e","#203227"]},STYLE_GEMSTONES={emerald:"#34d399",peridot:"#a8d84a",topaz:"#f0a83c",ruby:"#e63950",tourmaline:"#ec4899",amethyst:"#9d6df0",aquamarine:"#22d3ee",sapphire:"#4f8ff7",hematite:"#94a3b8"},LOOK_ID=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,LOOK_STAMP=Symbol.for("@aceshooting/lyra-ui.look.v1"),STYLE_OWNERSHIP=Symbol.for("@aceshooting/lyra-ui.style-ownership.v1"),STYLE_FIELDS=["look","surface","density","mode","accent","accentBackground","overrides"],DEFAULT_STYLE=Object.freeze({...STYLE_DEFAULTS,tokens:null,accent:STYLE_GEMSTONES[STYLE_DEFAULTS.accent],accentName:STYLE_DEFAULTS.accent,accentBackground:null,overrides:null});let lastStyle={...DEFAULT_STYLE},stylePersistenceFailed=!1,styleModeCleanup,styleModeRoot;const styleOwnershipFallback=new WeakMap,detachedStyleOwnership=new WeakMap,scopeModes=new WeakMap;function ownField(value,key){const descriptor=Object.getOwnPropertyDescriptor(value,key);return descriptor&&"value"in descriptor?descriptor.value:void 0}function styleId(value){return typeof value=="string"&&value.length<=64&&LOOK_ID.test(value)}function styleTokenAllowed(e,r,o=STYLE_SLOTTED){if(e.startsWith("--lr-theme-surface-")||typeof r!="string"&&!o.includes(e))return!1;for(const t of typeof r=="string"?[r]:[r.light,r.dark])if(t)for(const c of t.matchAll(/var\(\s*(--[\w-]+)/g)){if(c[1]==="--lr-theme-shadow-color")continue;const n=e.match(/^--lr-theme-color-(?:success|warning|danger|neutral)-((?:fill|border|on)-(?:quiet|normal|loud))$/)?.[1];if(!n||t!==`var(--lr-theme-color-brand-${n})`)return!1}return!0}function styleTokens(value){const tokens=normalizeTokens(value);if(!tokens)return null;const entries=Object.entries(tokens).filter(([name,input])=>styleTokenAllowed(name,input));return entries.length?Object.freeze(Object.fromEntries(entries)):null}function defineLyraLook(look){if(!look||!styleId(ownField(look,"id"))||look.id==="custom")throw new TypeError("Invalid look id");const raw=ownField(look,"tokens");if(!isPlainRecord(raw)||Object.keys(raw).length>TOKEN_ENTRY_MAX)throw new TypeError("Invalid look tokens");for(const[name,descriptor]of Object.entries(Object.getOwnPropertyDescriptors(raw))){if(!("value"in descriptor))throw new TypeError(`Look inputs must be data properties: ${name}`);const value=descriptor.value;if(typeof value=="string"){if(!isSafeLyraThemeTokenValue(value))throw new TypeError(`Invalid look value: ${name}`);continue}if(!isPlainRecord(value)||!STYLE_SLOTTED.includes(name))throw new TypeError(`Invalid per-mode look input: ${name}`);const branches=Object.entries(Object.getOwnPropertyDescriptors(value));if(!branches.length||branches.some(([key,branch])=>!["light","dark"].includes(key)||!("value"in branch)||branch.value!==null&&!isSafeLyraThemeTokenValue(branch.value)))throw new TypeError(`Invalid look mode pair: ${name}`)}const tokens=styleTokens(raw);if(Object.keys(raw).length!==Object.keys(tokens??{}).length)throw new TypeError("Invalid look token or cross-axis reference");const stamped={...tokens,[LOOK_STAMP]:look.id};return Object.freeze(stamped),Object.freeze({id:look.id,tokens:stamped})}function styleColor(value,browserColors=!1){if(!isSafeLyraThemeTokenValue(value))return null;const text=value.trim();return/\b(?:var|light-dark)\s*\(|\b(?:currentcolor|from)\b/i.test(text)||/^(?:accentcolor|accentcolortext|activetext|buttonborder|buttonface|buttontext|canvas|canvastext|field|fieldtext|graytext|highlight|highlighttext|linktext|mark|marktext|selecteditem|selecteditemtext|visitedtext)$/i.test(text)?null:browserColors&&typeof CSS<"u"?CSS.supports("color",text)?text:null:/^(?:#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})|[a-z]+|(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix)\(.+\))$/i.test(text)?text:null}function styleColorPair(value){if(typeof value=="string")return styleColor(value);if(!isPlainRecord(value))return null;const light=styleColor(ownField(value,"light")),dark=styleColor(ownField(value,"dark"));return light||dark?Object.freeze({light,dark}):null}function styleAccent(value){if(typeof value=="string")return styleColor(value);if(!isPlainRecord(value))return null;const entries=SEMANTIC_ROLES.filter(role=>Object.hasOwn(value,role)).map(role=>[role,styleColorPair(ownField(value,role))]);return entries.length?Object.freeze(Object.fromEntries(entries)):null}function normalizeStyleChoices(raw,base){const next={...base};if(!isPlainRecord(raw))return next;const look=ownField(raw,"look");if(look!==void 0){if(next.look=DEFAULT_STYLE.look,next.tokens=null,styleId(look))next.look=look;else if(isPlainRecord(look))try{const definition=defineLyraLook(look);next.look=definition.id,next.tokens=definition.tokens}catch{}}const surface=ownField(raw,"surface");surface!==void 0&&(next.surface=surface==="glass"||surface==="solid"?surface:DEFAULT_STYLE.surface);const density=ownField(raw,"density");density!==void 0&&(next.density=density==="comfortable"||density==="compact"||density==="touch"?density:DEFAULT_STYLE.density);const mode=ownField(raw,"mode");mode!==void 0&&(next.mode=mode==="light"||mode==="dark"||mode==="system"||mode==="unset"?mode:DEFAULT_STYLE.mode);const accent=ownField(raw,"accent");accent!==void 0&&(next.accentName=typeof accent=="string"&&Object.hasOwn(STYLE_GEMSTONES,accent)?accent:null,next.accent=next.accentName?STYLE_GEMSTONES[next.accentName]:styleAccent(accent));const background=ownField(raw,"accentBackground");background!==void 0&&(next.accentBackground=styleColorPair(background));const overrides=ownField(raw,"overrides");return overrides!==void 0&&(next.overrides=styleTokens(overrides)),next}function styleFromRecord(value,browserColors=!1){const record=resolveStyleStartup(value,STYLE_DEFAULTS,normalizeTokens,input=>styleColor(input,browserColors)??void 0,styleTokenAllowed,STYLE_GEMSTONES),state=normalizeStyleChoices({look:ownField(record,"look"),mode:ownField(record,"mode"),density:ownField(record,"density"),surface:ownField(record,"treatment"),overrides:ownField(record,"overrides"),accentBackground:ownField(record,"surface")},{...DEFAULT_STYLE});state.accent=styleAccent(ownField(record,"accent"));const accentName=ownField(record,"accentName");return state.accentName=null,typeof accentName=="string"&&Object.hasOwn(STYLE_GEMSTONES,accentName)&&(state.accentName=accentName,state.accent=STYLE_GEMSTONES[accentName]),state.tokens=normalizeTokens(ownField(record,"tokens")),state.tokens&&!styleId(ownField(record,"look"))&&(state.look="custom"),state}function styleRecord(state){return{version:2,mode:state.mode,look:state.look,density:state.density,treatment:state.surface,accent:state.accent,surface:state.accentBackground,...state.accentName?{accentName:state.accentName}:{},...state.tokens?{tokens:state.tokens}:{},...state.overrides?{overrides:state.overrides}:{}}}function styleResolvedMode(mode,view){return mode==="unset"?null:mode!=="system"?mode:view?.matchMedia?.(COLOR_SCHEME_QUERY).matches?"dark":"light"}function styleSnapshot(state,view){return Object.freeze({look:state.look,lookForm:state.tokens?"runtime":"stylesheet",surface:state.surface,density:state.density,mode:state.mode,accent:state.accentName??state.accent,accentName:state.accentName,accentBackground:state.accentBackground,...state.overrides?{overrides:state.overrides}:{},resolvedMode:styleResolvedMode(state.mode,view)})}function parseLyraStyleRecord(value){const state=styleFromRecord(value),result=styleSnapshot(state);return state.mode==="system"?Object.freeze({...result,resolvedMode:null}):result}function lyraStyleAttributes(style){const attributes={};return styleId(style.look)&&(attributes["data-lr-look"]=style.look),(style.surface==="solid"||style.surface==="glass")&&(attributes["data-lr-surface"]=style.surface),(style.density==="compact"||style.density==="comfortable"||style.density==="touch")&&(attributes["data-lr-density"]=style.density),(style.mode==="light"||style.mode==="dark"||style.mode==="system")&&(attributes["data-lr-mode"]=style.mode),style.accent!==void 0&&(attributes["data-lr-accent"]=style.accent===null?"none":style.accentName===null?"custom":typeof style.accent=="string"&&Object.hasOwn(STYLE_GEMSTONES,style.accent)?style.accent:"custom"),Object.freeze(attributes)}function readStyleState(){if(stylePersistenceFailed)return{...lastStyle};let stored;try{stored=localStorage.getItem(STORAGE_KEY)}catch{return{...lastStyle}}try{return styleFromRecord(JSON.parse(stored??"null"),!0)}catch{return{...DEFAULT_STYLE}}}function persistStyle(state){try{localStorage.setItem(STORAGE_KEY,JSON.stringify(styleRecord(state))),stylePersistenceFailed=!1}catch{stylePersistenceFailed=!0}lastStyle=state}function publishStyleOwnership(element,ownership){const descriptor=Object.getOwnPropertyDescriptor(element,STYLE_OWNERSHIP);return descriptor&&(!("value"in descriptor)||!descriptor.writable)?!1:Reflect.defineProperty(element,STYLE_OWNERSHIP,{value:ownership,writable:!0,enumerable:descriptor?.enumerable??!0,configurable:descriptor?.configurable??!0})}function ownershipFor(element){const node=element;try{const source=node[STYLE_OWNERSHIP],detached=detachedStyleOwnership.get(element);if(detached&&detached.source===source)return detached.ownership;detachedStyleOwnership.delete(element);const existing=readStyleOwnership(source);if(existing){styleOwnershipFallback.set(element,existing);try{publishStyleOwnership(element,existing)||detachedStyleOwnership.set(element,{source,ownership:existing})}catch{detachedStyleOwnership.set(element,{source,ownership:existing})}return existing}}catch{}const fallback=styleOwnershipFallback.get(element);if(fallback)return fallback;const record={attributes:new Map,properties:new Map};styleOwnershipFallback.set(element,record);try{publishStyleOwnership(element,record)}catch{}return record}function writeStyleAttributes(element,desired){const ownership=ownershipFor(element).attributes;for(const[name,value]of ownership)Object.hasOwn(desired,name)||(element.getAttribute(name)===value.written&&(value.before===null?element.removeAttribute(name):element.setAttribute(name,value.before)),ownership.delete(name));for(const[name,value]of Object.entries(desired))ownership.has(name)||ownership.set(name,{before:element.getAttribute(name),priority:"",written:value}),element.getAttribute(name)!==value&&element.setAttribute(name,value),ownership.get(name).written=value}function writeStyleProperties(element,desired){const style=element.style;if(!style)return;const ownership=ownershipFor(element).properties;for(const[name,value]of ownership)desired.has(name)||(style.getPropertyValue(name)===value.written&&style.getPropertyPriority(name)===""&&(value.before?style.setProperty(name,value.before,value.priority):style.removeProperty(name)),ownership.delete(name));for(const[name,value]of desired){ownership.has(name)||ownership.set(name,{before:style.getPropertyValue(name),priority:style.getPropertyPriority(name),written:null});const record=ownership.get(name);(style.getPropertyPriority(name)!==""||style.getPropertyValue(name)!==value&&!(record.requested===value&&record.written===style.getPropertyValue(name)))&&(style.getPropertyPriority(name)&&style.removeProperty(name),style.setProperty(name,value,"")),record.requested=value,record.written=style.getPropertyValue(name)}}function styleSlot(name,mode,accent=!1){return`--_lr-${accent?"a":"l"}${mode==="light"?"l":"d"}-${name.slice(11)}`}function styleFollow(name,value){const channel=name.match(/^--lr-theme-color-(?:success|warning|danger|neutral)-((?:fill|border|on)-(?:quiet|normal|loud))$/)?.[1];return!!(channel&&value===`var(--lr-theme-color-brand-${channel})`)}function styleBranch(name,mode){let result=`var(${styleSlot(name,mode)})`;if(STYLE_FOLLOW.includes(name)){const key=mode==="light"?"l":"d",target=name.replace(/color-(?:success|warning|danger|neutral)-/,"color-brand-");result=`var(--_lr-f${key}-${name.slice(11)},${result})var(--_lr-o${key}-${name.slice(11)},var(${styleSlot(target,mode,!0)},var(${styleSlot(target,mode)})))`}return ALL_RAMP_PROPERTIES.includes(name)?`var(${styleSlot(name,mode,!0)},${result})`:result}function styleResolvedInput(name){const input=`var(--_lr-dark-on,${styleBranch(name,"light")})var(--_lr-light-on,${styleBranch(name,"dark")})`;if(!STYLE_DENSITY.includes(name))return input;const spacing=name.startsWith("--lr-theme-space-");return`var(--_lr-dense-on,${input})var(--_lr-dense-off,max(calc((${input}) * var(--_lr-density-${spacing?"space":"control"},1)),${spacing?"0px":"var(--_lr-density-target-min,0px)"}))`}function styleReferences(state,entries,mode,element,previous){const look=element.closest("[data-lr-look]")?.getAttribute("data-lr-look")??STYLE_DEFAULTS.look,colors=(Object.hasOwn(STYLE_REFERENCE_SURFACES,look)?STYLE_REFERENCE_SURFACES[look]:STYLE_REFERENCE_SURFACES.lyra)[mode],names=["color-surface-default","color-surface-raised","color-text-normal","color-overlay-strong"].slice(0,entries.size?4:1).map(suffix=>`--lr-theme-${suffix}`),supplied=names.map(name=>entries.get(name)),background=typeof state.accentBackground=="string"?state.accentBackground:state.accentBackground?.[mode],style=element.style,ownership=ownershipFor(element).properties,projected=names.flatMap((name,index)=>{const slot=styleSlot(name,mode),owned=ownership.get(slot),before=style?.getPropertyValue(slot)??"",priority=style?.getPropertyPriority(slot)??"",owns=owned&&before===owned.written&&!priority;if(supplied[index]!==void 0&&previous?.[index]===supplied[index]&&owns)return[];if(supplied[index]===void 0&&!owns)return[];const value=supplied[index]??owned?.before??"",nextPriority=supplied[index]===void 0?owned?.priority??"":"";return before===value&&priority===nextPriority?[]:[{slot,before,priority,value,nextPriority}]});try{for(const{slot,value,nextPriority}of projected)style.getPropertyPriority(slot)&&style.removeProperty(slot),value?style.setProperty(slot,value,nextPriority):style.removeProperty(slot);const computed=element.ownerDocument.defaultView?.getComputedStyle(element);return{supplied,colors:names.map((name,index)=>(index===0?background:void 0)??supplied[index]??(computed?.getPropertyValue(styleSlot(name,mode)).trim()||colors[index]))}}finally{for(const{slot,before,priority}of projected)style.getPropertyPriority(slot)&&style.removeProperty(slot),before?style.setProperty(slot,before,priority):style.removeProperty(slot)}}const stylePaintCache=new WeakMap;function stylePaint(state,element,wholeDocument){const desired=new Map,mode=styleResolvedMode(state.mode,element.ownerDocument.defaultView),tokens={...state.tokens,...state.overrides};if(wholeDocument&&mode===null)for(const[name,value]of tokenEntries(tokens,null))desired.set(name,value);if(!Object.keys(tokens).length&&(!state.accent||state.accentName))return stylePaintCache.delete(element),desired;const resolver=element.ownerDocument.defaultView?.getComputedStyle(element).getPropertyValue("--_lr-style-resolver").trim()==="1";let cache=stylePaintCache.get(element);cache||(cache=new Map,stylePaintCache.set(element,cache));let applied=state.accent;for(const branch of["light","dark"]){const entries=tokenEntries(tokens,branch),{colors:references,supplied}=styleReferences(state,entries,branch,element,cache.get(branch)?.supplied),reference=references[0],key=JSON.stringify([tokens,state.accent,state.accentName,references]);let cached=cache.get(branch);if(!cached||cached.key!==key){const background=reference?parseResolvedRgb(reference,MODE_SURFACES[branch],element.ownerDocument)??MODE_SURFACES[branch]:MODE_SURFACES[branch],accent=state.accentName?{applied:state.accent,properties:new Map}:paintAccent(state.accent,branch,background,element.ownerDocument);cached={key,supplied,tokens:floorTokenEntries(entries,background,element.ownerDocument,references),accent:accent.properties,applied:accent.applied},cache.set(branch,cached)}branch===mode&&(applied=cached.applied);const painted=cached.tokens;for(const[name,value]of painted)STYLE_SLOTTED.includes(name)&&styleTokenAllowed(name,value)?(styleFollow(name,value)?(desired.set(`--_lr-f${branch==="light"?"l":"d"}-${name.slice(11)}`," "),desired.set(`--_lr-o${branch==="light"?"l":"d"}-${name.slice(11)}`,"initial")):(desired.set(styleSlot(name,branch),value),STYLE_FOLLOW.includes(name)&&(desired.set(`--_lr-f${branch==="light"?"l":"d"}-${name.slice(11)}`,"initial"),desired.set(`--_lr-o${branch==="light"?"l":"d"}-${name.slice(11)}`," "))),wholeDocument&&branch===mode&&desired.set(name,resolver?styleResolvedInput(name):value)):(wholeDocument?branch===mode:typeof tokens[name]=="string"&&!STYLE_SLOTTED.includes(name))&&desired.set(name,value);if(state.accent&&!state.accentName)for(const[name,value]of cached.accent){if(name==="--lr-theme-accent"){branch===mode&&desired.set(name,value);continue}desired.set(styleSlot(name,branch,!0),value),wholeDocument&&branch===mode&&desired.set(name,resolver?styleResolvedInput(name):value)}}return state.accent=applied,desired}const styleModeGroups=new WeakMap;function attachStyleMode(element,callback){const view=element.ownerDocument.defaultView;if(!view?.matchMedia)return()=>{};let group=styleModeGroups.get(view);if(!group){const query=view.matchMedia(COLOR_SCHEME_QUERY),subscriptions=new Set,modern=typeof query.addEventListener=="function"&&typeof query.removeEventListener=="function",detach=()=>{modern?query.removeEventListener("change",listener):query.removeListener?.(listener)},listener=()=>{for(const subscription2 of subscriptions){const node=subscription2.element.deref();node?.ownerDocument.defaultView===view?subscription2.callback(node):subscriptions.delete(subscription2)}subscriptions.size||(detach(),styleModeGroups.delete(view))};group={query,subscriptions,detach},styleModeGroups.set(view,group),modern?query.addEventListener("change",listener):query.addListener?.(listener)}const subscription={element:new WeakRef(element),callback};group.subscriptions.add(subscription);const active=group;return()=>{active.subscriptions.delete(subscription),active.subscriptions.size||(active.detach(),styleModeGroups.delete(view))}}function applyStyleState(element,state,fields){const snapshot=styleSnapshot(state,element.ownerDocument.defaultView),attributes={...lyraStyleAttributes(snapshot)};if(fields)for(const[field,name]of[["look","look"],["surface","surface"],["density","density"],["mode","mode"],["accent","accent"]])fields.has(field)||delete attributes[`data-lr-${name}`];state.accent&&!state.accentName&&(!fields||fields.has("accent"))&&(attributes["data-lr-accent"]="custom"),(!fields||fields.has("mode"))&&snapshot.resolvedMode&&(attributes["data-lr-theme"]=snapshot.resolvedMode,attributes["data-theme"]=snapshot.resolvedMode),(state.tokens||state.overrides||state.accent&&!state.accentName)&&(attributes["data-lr-theme-scope"]=""),writeStyleAttributes(element,attributes);const desired=stylePaint(state,element,!fields);(!fields||fields.has("surface"))&&element.ownerDocument.defaultView?.getComputedStyle(element).getPropertyValue("--_lr-style-resolver").trim()!=="1"&&styleMaterial(desired,state.surface),!state.accent&&snapshot.accent&&(attributes["data-lr-accent"]="none",!state.tokens&&!state.overrides&&delete attributes["data-lr-theme-scope"],writeStyleAttributes(element,attributes)),writeStyleProperties(element,desired),adoptTokenLayerForScope(element),diagnoseStyleSheets(element,state,fields)}function adoptTokenLayerForScope(element){const root=element.getRootNode();if(root===element.ownerDocument||root.nodeType!==11)return;const adopt=globalThis[Symbol.for("@aceshooting/lyra-ui.adopt-lyra-tokens.v1")];typeof adopt=="function"&&adopt(root)}function diagnoseStyleSheets(element,state,fields){if(!litDevWarnings())return;const selected=field=>!fields||fields.has(field),required=[];selected("look")&&!state.tokens&&state.look!=="lyra"&&state.look!==DEFAULT_STYLE.look&&required.push(["--_lr-look-installed",`${state.look}-1`,`the stylesheet for look '${state.look}'`]),selected("surface")&&state.surface==="glass"&&state.surface!==DEFAULT_STYLE.surface&&required.push(["--_lr-surface-installed","1","surfaces/glass.css"]),selected("density")&&state.density!=="comfortable"&&required.push(["--_lr-density-installed","1","density.css"]),selected("accent")&&state.accentName&&state.accentName!==DEFAULT_STYLE.accentName&&required.push(["--_lr-accent-installed",`${state.accentName}-1`,"accents.css"]);const scopedRuntime=!!(fields&&(state.tokens||state.overrides||state.accent&&!state.accentName)),alternateProfile=selected("look")&&!state.tokens&&state.look!==DEFAULT_STYLE.look||selected("accent")&&!state.accent,profile=[];if(selected("look")&&!state.tokens&&state.look===DEFAULT_STYLE.look&&profile.push(["--_lr-look-installed",`${state.look}-1`,`the stylesheet for look '${state.look}'`]),selected("surface")&&state.surface==="glass"&&profile.push(["--_lr-surface-installed","1","surfaces/glass.css"]),selected("accent")&&state.accentName===DEFAULT_STYLE.accentName&&profile.push(["--_lr-accent-installed",`${state.accentName}-1`,"accents.css"]),!required.length&&!profile.length&&!scopedRuntime&&!alternateProfile)return;const computed=element.ownerDocument.defaultView?.getComputedStyle(element);if(computed){computed.getPropertyValue("--_lr-style-resolver").trim()!=="1"?(required.length||scopedRuntime||alternateProfile)&&devWarnOnce("lyra-style:resolver","Lyra style choices require theme.css in the scope that owns their attributes."):required.push(...profile);for(const[property,expected,stylesheet]of required)computed.getPropertyValue(property).trim()!==expected&&devWarnOnce(`lyra-style:${property}:${expected}`,`Lyra could not find ${stylesheet} in this style scope; import or adopt the stylesheet before selecting it.`)}}function emitStyleChange(state,changed){const style=styleSnapshot(state,window);window.dispatchEvent(new CustomEvent("lr-style-change",{detail:Object.freeze({style,changed:Object.freeze([...changed])})}))}function setLyraStyle(choices){const before=readStyleState();return commitStyle(before,normalizeStyleChoices(choices,before))}function commitStyle(before,next){if(typeof document<"u"&&(next.accent=normalizeAccent(next.accent),typeof next.accentBackground=="string"&&(next.accentBackground=normalizeColor(next.accentBackground)),next.accent||(next.accentName=null)),persistStyle(next),typeof document<"u"){applyRootStyle(next)&&persistStyle(next);const changed=STYLE_FIELDS.filter(field=>field==="look"?before.look!==next.look||!tokensEqual(before.tokens,next.tokens):field==="accent"?before.accentName!==next.accentName||!accentsEqual(before.accent,next.accent):JSON.stringify(before[field])!==JSON.stringify(next[field]));emitStyleChange(next,changed)}return styleSnapshot(next,typeof window>"u"?void 0:window)}function applyRootStyle(next){const root=document.documentElement;(next.mode!=="system"||styleModeRoot?.deref()!==root)&&(styleModeCleanup?.(),styleModeCleanup=void 0,styleModeRoot=void 0),adoptLegacyOwnership(root);const requestedAccent=next.accent;return applyStyleState(root,next),next.mode==="system"&&!styleModeCleanup&&(styleModeRoot=new WeakRef(root),styleModeCleanup=attachStyleMode(root,element=>{applyStyleState(element,lastStyle),emitStyleChange(lastStyle,["resolvedMode"])})),!accentsEqual(requestedAccent,next.accent)}function adoptLegacyOwnership(root){const symbol=Symbol.for(TOKEN_OWNERSHIP_SYMBOL),node=root;try{if(!Array.isArray(node[symbol]))return}catch{return}const ownership=ownershipFor(root).properties;for(const name of[...readOwnershipList(),...ALL_RAMP_PROPERTIES,"--lr-theme-accent"])ownership.has(name)||!root.style.getPropertyValue(name)||ownership.set(name,{before:null,priority:"",written:root.style.getPropertyValue(name)});try{delete node[symbol]}catch{}}function getLyraStyle(){return styleSnapshot(readStyleState(),typeof window>"u"?void 0:window)}function startLyraStyle(){const state=readStyleState();return typeof document>"u"?styleSnapshot(state):(state.accent=normalizeAccent(state.accent),typeof state.accentBackground=="string"&&(state.accentBackground=normalizeColor(state.accentBackground)),state.accent||(state.accentName=null),lastStyle=state,applyRootStyle(state),styleSnapshot(state,window))}function resetLyraStyle(fields=STYLE_FIELDS){const defaults={...STYLE_DEFAULTS,accentBackground:null,overrides:null};return setLyraStyle(Object.fromEntries(fields.filter(field=>STYLE_FIELDS.includes(field)).map(field=>[field,defaults[field]])))}function applyLyraStyleScope(element,choices){if(scopeModes.get(element)?.(),scopeModes.delete(element),choices===null){writeStyleAttributes(element,{}),writeStyleProperties(element,new Map);return}const state=normalizeStyleChoices(choices,{...DEFAULT_STYLE}),fields=new Set(STYLE_FIELDS.filter(field=>ownField(choices,field)!==void 0));applyStyleState(element,state,fields),choices.mode==="system"&&scopeModes.set(element,attachStyleMode(element,node=>applyStyleState(node,state,fields)))}const lyraThemeBootstrap=/* @__PURE__ */createLyraThemeBootstrap();export{accentsEqual,applyLyraStyleScope,createLyraThemeBootstrap,defineLyraLook,getLyraStyle,isLyraThemeTokenName,isSafeLyraThemeTokenValue,lyraStyleAttributes,lyraThemeBootstrap,parseLyraStyleRecord,resetLyraStyle,setLyraStyle,startLyraStyle,tokensEqual};
@@ -0,0 +1 @@
1
+ @layer lr-base{:where(:root),[data-lr-mode=light],[data-lr-mode=system],.lr-light,[data-lr-theme=light]{--_lr-dark-on:initial;--_lr-light-on: }@media (prefers-color-scheme:dark){:where(:root),[data-lr-mode=system]{--_lr-dark-on: ;--_lr-light-on:initial}}[data-lr-mode=dark],.lr-dark:not([data-lr-theme=light]),[data-lr-theme=dark]{--_lr-dark-on: ;--_lr-light-on:initial}}@layer lr-theme{:root,[data-lr-look]{--lr-theme-border-radius-button:initial;--lr-theme-border-radius-container:initial;--lr-theme-border-radius-m:.375rem;--lr-theme-border-radius-pill:999px;--lr-theme-border-radius-xs:2px;--lr-theme-border-width-medium:2px;--lr-theme-border-width-thick:3px;--lr-theme-border-width-thin:1px;--_lr-ll-color-border-strong:#4b5563;--_lr-ld-color-border-strong:#c4c9d1;--_lr-ll-color-brand-border-loud:#034492;--_lr-ld-color-brand-border-loud:#5b9eff;--_lr-ll-color-brand-border-normal:#2d7de9;--_lr-ld-color-brand-border-normal:#2d7de9;--_lr-ll-color-brand-border-quiet:#95c0fe;--_lr-ld-color-brand-border-quiet:#002b62;--_lr-ll-color-brand-fill-loud:#035ec6;--_lr-ld-color-brand-fill-loud:#5b9eff;--_lr-ll-color-brand-fill-normal:#95c0fe;--_lr-ld-color-brand-fill-normal:#035ec6;--_lr-ll-color-brand-fill-quiet:#e5efff;--_lr-ld-color-brand-fill-quiet:#002b62;--_lr-ll-color-brand-on-loud:#edeef1;--_lr-ld-color-brand-on-loud:#000001;--_lr-ll-color-brand-on-normal:#000001;--_lr-ld-color-brand-on-normal:#edeef1;--_lr-ll-color-brand-on-quiet:#000001;--_lr-ld-color-brand-on-quiet:#edeef1;--_lr-ll-color-chart-1:#0e006e;--_lr-ld-color-chart-1:#bbff94;--_lr-ll-color-chart-2:#4d011a;--_lr-ld-color-chart-2:#ffbce8;--_lr-ll-color-chart-3:#862002;--_lr-ld-color-chart-3:#2bd66a;--_lr-ll-color-chart-4:#503983;--_lr-ld-color-chart-4:#bb99cb;--_lr-ll-color-chart-5:#315fdd;--_lr-ld-color-chart-5:#7888fe;--_lr-ll-color-chart-6:#935e7c;--_lr-ld-color-chart-6:#9b6b90;--_lr-ll-color-chart-7:#de6906;--_lr-ld-color-chart-7:#db3a29;--_lr-ll-color-chart-8:#8f81d3;--_lr-ld-color-chart-8:#555de3;--_lr-ll-color-chart-diverging-1:#92400e;--_lr-ld-color-chart-diverging-1:#fbbf24;--_lr-ll-color-chart-diverging-2:#f3f4f6;--_lr-ld-color-chart-diverging-2:#374151;--_lr-ll-color-chart-diverging-3:#1e40af;--_lr-ld-color-chart-diverging-3:#93c5fd;--_lr-ll-color-chart-sequential-1:#dbeafe;--_lr-ld-color-chart-sequential-1:#172554;--_lr-ll-color-chart-sequential-2:#3b82f6;--_lr-ld-color-chart-sequential-2:#3b82f6;--_lr-ll-color-chart-sequential-3:#1e3a8a;--_lr-ld-color-chart-sequential-3:#bfdbfe;--_lr-ll-color-danger-border-loud:#890415;--_lr-ld-color-danger-border-loud:#f86b66;--_lr-ll-color-danger-border-normal:#dc3e41;--_lr-ld-color-danger-border-normal:#dc3e41;--_lr-ll-color-danger-border-quiet:#ffa099;--_lr-ld-color-danger-border-quiet:#5c010a;--_lr-ll-color-danger-fill-loud:#bb0320;--_lr-ld-color-danger-fill-loud:#f86b66;--_lr-ll-color-danger-fill-normal:#ffa099;--_lr-ld-color-danger-fill-normal:#bb0320;--_lr-ll-color-danger-fill-quiet:#ffe9e6;--_lr-ld-color-danger-fill-quiet:#5c010a;--_lr-ll-color-danger-on-loud:#edeef1;--_lr-ld-color-danger-on-loud:#000001;--_lr-ll-color-danger-on-normal:#000001;--_lr-ld-color-danger-on-normal:#edeef1;--_lr-ll-color-danger-on-quiet:#000001;--_lr-ld-color-danger-on-quiet:#edeef1;--_lr-ll-color-focus:#035ec6;--_lr-ld-color-focus:#5b9eff;--lr-theme-color-mix-active:22%;--lr-theme-color-mix-hover:12%;--_lr-ll-color-mix-partner:#1a1a1a;--_lr-ld-color-mix-partner:#f2f2f2;--_lr-ll-color-neutral-border-loud:#46484c;--_lr-ld-color-neutral-border-loud:#9c9ea3;--_lr-ll-color-neutral-border-normal:#7e8085;--_lr-ld-color-neutral-border-normal:#7e8085;--_lr-ll-color-neutral-border-quiet:#bcbec1;--_lr-ld-color-neutral-border-quiet:#2c2e31;--_lr-ll-color-neutral-fill-loud:#616368;--_lr-ld-color-neutral-fill-loud:#9c9ea3;--_lr-ll-color-neutral-fill-normal:#bcbec1;--_lr-ld-color-neutral-fill-normal:#616368;--_lr-ll-color-neutral-fill-quiet:#edeef1;--_lr-ld-color-neutral-fill-quiet:#2c2e31;--_lr-ll-color-neutral-on-loud:#edeef1;--_lr-ld-color-neutral-on-loud:#000001;--_lr-ll-color-neutral-on-normal:#000001;--_lr-ld-color-neutral-on-normal:#edeef1;--_lr-ll-color-neutral-on-quiet:#000001;--_lr-ld-color-neutral-on-quiet:#edeef1;--_lr-ll-color-no-data:#80808040;--_lr-ld-color-no-data:#b4b4b44d;--_lr-ll-color-on-strong-overlay:#fff;--_lr-ld-color-on-strong-overlay:#fff;--_lr-ll-color-overlay:#00000080;--_lr-ld-color-overlay:#000000b8;--_lr-ll-color-overlay-strong:#000000eb;--_lr-ld-color-overlay-strong:#000000f2;--lr-theme-color-shadow:#000;--_lr-ll-color-success-border-loud:#00571f;--_lr-ld-color-success-border-loud:#67b374;--_lr-ll-color-success-border-normal:#3e9550;--_lr-ld-color-success-border-normal:#3e9550;--_lr-ll-color-success-border-quiet:#91d09a;--_lr-ld-color-success-border-quiet:#013912;--_lr-ll-color-success-fill-loud:#0c7830;--_lr-ld-color-success-fill-loud:#67b374;--_lr-ll-color-success-fill-normal:#91d09a;--_lr-ld-color-success-fill-normal:#0c7830;--_lr-ll-color-success-fill-quiet:#d3fbd8;--_lr-ld-color-success-fill-quiet:#013912;--_lr-ll-color-success-on-loud:#edeef1;--_lr-ld-color-success-on-loud:#000001;--_lr-ll-color-success-on-normal:#000001;--_lr-ld-color-success-on-normal:#edeef1;--_lr-ll-color-success-on-quiet:#000001;--_lr-ld-color-success-on-quiet:#edeef1;--_lr-ll-color-surface-border:#8a8a90;--_lr-ld-color-surface-border:#787881;--_lr-ll-color-surface-border-subtle:initial;--_lr-ld-color-surface-border-subtle:initial;--_lr-ll-color-surface-container:initial;--_lr-ld-color-surface-container:initial;--_lr-ll-color-surface-container-high:initial;--_lr-ld-color-surface-container-high:initial;--_lr-ll-color-surface-container-highest:initial;--_lr-ld-color-surface-container-highest:initial;--_lr-ll-color-surface-container-low:initial;--_lr-ld-color-surface-container-low:initial;--_lr-ll-color-surface-container-lowest:initial;--_lr-ld-color-surface-container-lowest:initial;--_lr-ll-color-surface-default:#fff;--_lr-ld-color-surface-default:#1a1a1a;--_lr-ll-color-surface-overlay:#fff;--_lr-ld-color-surface-overlay:#2b3038;--_lr-ll-color-surface-raised:#f6f8fa;--_lr-ld-color-surface-raised:#22272e;--_lr-ll-color-text-normal:#1a1a1a;--_lr-ld-color-text-normal:#f2f2f2;--_lr-ll-color-text-quiet:#6b7280;--_lr-ld-color-text-quiet:#9aa1ac;--_lr-ll-color-warning-border-loud:#624001;--_lr-ld-color-warning-border-loud:#c39554;--_lr-ll-color-warning-border-normal:#a77526;--_lr-ld-color-warning-border-normal:#a77526;--_lr-ll-color-warning-border-quiet:#ddb781;--_lr-ld-color-warning-border-quiet:#402801;--_lr-ll-color-warning-fill-loud:#855905;--_lr-ld-color-warning-fill-loud:#c39554;--_lr-ll-color-warning-fill-normal:#ddb781;--_lr-ld-color-warning-fill-normal:#855905;--_lr-ll-color-warning-fill-quiet:#ffebd2;--_lr-ld-color-warning-fill-quiet:#402801;--_lr-ll-color-warning-on-loud:#edeef1;--_lr-ld-color-warning-on-loud:#000001;--_lr-ll-color-warning-on-normal:#000001;--_lr-ld-color-warning-on-normal:#edeef1;--_lr-ll-color-warning-on-quiet:#000001;--_lr-ld-color-warning-on-quiet:#edeef1;--lr-theme-duration-fast:.12s;--lr-theme-duration-icon:1s;--lr-theme-duration-normal:.18s;--lr-theme-duration-slow:1.8s;--lr-theme-easing-emphasized:ease-in-out;--lr-theme-easing-linear:linear;--lr-theme-easing-standard:ease-out;--lr-theme-focus-ring-offset:2px;--lr-theme-focus-ring-width:2px;--lr-theme-font-family-body:system-ui, sans-serif;--lr-theme-font-family-heading:initial;--lr-theme-font-family-mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--lr-theme-font-size-2xl:1.75rem;--lr-theme-font-size-2xs:.625rem;--lr-theme-font-size-3xl:2rem;--lr-theme-font-size-3xs:.5rem;--lr-theme-font-size-lg:1.125rem;--lr-theme-font-size-m:1rem;--lr-theme-font-size-md-sm:.875rem;--lr-theme-font-size-sm:.8125rem;--lr-theme-font-size-xl:1.25rem;--lr-theme-font-size-xs:.75rem;--lr-theme-font-weight-bold:700;--lr-theme-font-weight-medium:500;--lr-theme-font-weight-normal:400;--lr-theme-font-weight-semibold:600;--_lr-ll-form-control-height-2xs:1.25rem;--_lr-ld-form-control-height-2xs:1.25rem;--_lr-ll-form-control-height-l:3rem;--_lr-ld-form-control-height-l:3rem;--_lr-ll-form-control-height-m:2.5rem;--_lr-ld-form-control-height-m:2.5rem;--_lr-ll-form-control-height-s:1.875rem;--_lr-ld-form-control-height-s:1.875rem;--_lr-ll-form-control-height-xl:3.5rem;--_lr-ld-form-control-height-xl:3.5rem;--_lr-ll-form-control-height-xs:1.5rem;--_lr-ld-form-control-height-xs:1.5rem;--_lr-ll-graph-cat-1:#8250df;--_lr-ld-graph-cat-1:#b58cff;--_lr-ll-graph-cat-2:#bf3989;--_lr-ld-graph-cat-2:#ff7ab2;--_lr-ll-graph-cat-3:#0a7d91;--_lr-ld-graph-cat-3:#4fd1c5;--_lr-ll-graph-cat-4:#57606a;--_lr-ld-graph-cat-4:#aab4c4;--_lr-ll-graph-cat-5:#b083f5;--_lr-ld-graph-cat-5:#d4a7ff;--_lr-ll-graph-cat-6:#f470b8;--_lr-ld-graph-cat-6:#ff91c8;--_lr-ll-graph-cat-7:#52d6e8;--_lr-ld-graph-cat-7:#79e2ef;--_lr-ll-graph-cat-8:#c9d1d9;--_lr-ld-graph-cat-8:#e4e7eb;--lr-theme-heading-letter-spacing:initial;--lr-theme-hover-brightness:1.08;--_lr-ll-icon-button-size:2.5rem;--_lr-ld-icon-button-size:2.5rem;--lr-theme-line-break:initial;--lr-theme-line-height-1-4:1.4;--lr-theme-line-height-compact:1.25;--lr-theme-line-height-loose:1.6;--lr-theme-line-height-none:1;--lr-theme-line-height-normal:1.5;--lr-theme-line-height-snug:1.3;--lr-theme-opacity-disabled:.5;--lr-theme-opacity-muted:.85;--lr-theme-otp-input-segment-size:2.5em;--lr-theme-popover-viewport-clamp:92vw;--lr-theme-scroll-fade-size:2rem;--lr-theme-shadow-color:0 0 0;--_lr-ll-shadow-l:0 6px 16px rgb(var(--lr-theme-shadow-color) / .18);--_lr-ld-shadow-l:0 8px 20px rgb(var(--lr-theme-shadow-color) / .56);--_lr-ll-shadow-m:0 2px 8px rgb(var(--lr-theme-shadow-color) / .15);--_lr-ld-shadow-m:0 2px 8px rgb(var(--lr-theme-shadow-color) / .46);--_lr-ll-shadow-s:0 1px 4px rgb(var(--lr-theme-shadow-color) / .14);--_lr-ld-shadow-s:0 1px 4px rgb(var(--lr-theme-shadow-color) / .4);--_lr-ll-shadow-xl:0 12px 32px rgb(var(--lr-theme-shadow-color) / .22);--_lr-ld-shadow-xl:0 16px 40px rgb(var(--lr-theme-shadow-color) / .66);--_lr-ll-shadow-xs:0 1px 2px rgb(var(--lr-theme-shadow-color) / .12);--_lr-ld-shadow-xs:0 1px 2px rgb(var(--lr-theme-shadow-color) / .34);--lr-theme-size-0-02em:.02em;--lr-theme-size-0-03em:.03em;--lr-theme-size-0-04em:.04em;--lr-theme-size-0-05rem:.05rem;--lr-theme-size-0-0625rem:.0625rem;--lr-theme-size-0-09375rem:.09375rem;--lr-theme-size-0-125rem:.125rem;--lr-theme-size-0-15rem:.15rem;--lr-theme-size-0-1875rem:.1875rem;--lr-theme-size-0-1rem:.1rem;--lr-theme-size-0-25rem:.25rem;--lr-theme-size-0-3125rem:.3125rem;--lr-theme-size-0-35em:.35em;--lr-theme-size-0-375rem:.375rem;--lr-theme-size-0-3em:.3em;--lr-theme-size-0-4375rem:.4375rem;--lr-theme-size-0-4em:.4em;--lr-theme-size-0-4rem:.4rem;--lr-theme-size-0-5em:.5em;--lr-theme-size-0-5rem:.5rem;--lr-theme-size-0-625rem:.625rem;--lr-theme-size-0-6875rem:.6875rem;--lr-theme-size-0-6rem:.6rem;--lr-theme-size-0-75em:.75em;--lr-theme-size-0-75rem:.75rem;--lr-theme-size-0-7em:.7em;--lr-theme-size-0-875em:.875em;--lr-theme-size-0-8rem:.8rem;--lr-theme-size-0-9375rem:.9375rem;--lr-theme-size-1-0625rem:1.0625rem;--lr-theme-size-1-1rem:1.1rem;--lr-theme-size-1-25rem:1.25rem;--lr-theme-size-1-5em:1.5em;--lr-theme-size-1-5rem:1.5rem;--lr-theme-size-1-75rem:1.75rem;--lr-theme-size-10px:10px;--lr-theme-size-10rem:10rem;--lr-theme-size-12em:12em;--lr-theme-size-12rem:12rem;--lr-theme-size-14px:14px;--lr-theme-size-14rem:14rem;--lr-theme-size-15rem:15rem;--lr-theme-size-16px:16px;--lr-theme-size-16rem:16rem;--lr-theme-size-18rem:18rem;--lr-theme-size-1em:1em;--lr-theme-size-1px:1px;--lr-theme-size-1rem:1rem;--lr-theme-size-2-25rem:2.25rem;--lr-theme-size-2-5ch:2.5ch;--lr-theme-size-2-5rem:2.5rem;--lr-theme-size-20rem:20rem;--lr-theme-size-22rem:22rem;--lr-theme-size-24px:24px;--lr-theme-size-24rem:24rem;--lr-theme-size-280px:280px;--lr-theme-size-28px:28px;--lr-theme-size-28rem:28rem;--lr-theme-size-2px:2px;--lr-theme-size-2rem:2rem;--lr-theme-size-3-5em:3.5em;--lr-theme-size-3-5rem:3.5rem;--lr-theme-size-30rem:30rem;--lr-theme-size-32rem:32rem;--lr-theme-size-36rem:36rem;--lr-theme-size-38rem:38rem;--lr-theme-size-3ch:3ch;--lr-theme-size-3px:3px;--lr-theme-size-3rem:3rem;--lr-theme-size-48rem:48rem;--lr-theme-size-4ch:4ch;--lr-theme-size-4px:4px;--lr-theme-size-4rem:4rem;--lr-theme-size-5em:5em;--lr-theme-size-5rem:5rem;--lr-theme-size-6ch:6ch;--lr-theme-size-6em:6em;--lr-theme-size-6px:6px;--lr-theme-size-6rem:6rem;--lr-theme-size-7rem:7rem;--lr-theme-size-8em:8em;--lr-theme-size-8rem:8rem;--lr-theme-size-neg-0-15rem:-.15rem;--lr-theme-size-neg-0-25rem:-.25rem;--lr-theme-size-neg-1px:-1px;--lr-theme-size-neg-4px:-4px;--lr-theme-size-neg-6px:-6px;--lr-theme-size-neg-8px:-8px;--_lr-ll-space-2xl:2rem;--_lr-ld-space-2xl:2rem;--_lr-ll-space-2xs:.125rem;--_lr-ld-space-2xs:.125rem;--_lr-ll-space-l:1rem;--_lr-ld-space-l:1rem;--_lr-ll-space-m:.75rem;--_lr-ld-space-m:.75rem;--_lr-ll-space-s:.5rem;--_lr-ld-space-s:.5rem;--_lr-ll-space-xs:.25rem;--_lr-ld-space-xs:.25rem;--_lr-ll-terminal-bg-black:#868686;--_lr-ld-terminal-bg-black:#292929;--_lr-ll-terminal-bg-blue:#88a6d4;--_lr-ld-terminal-bg-blue:#324e76;--_lr-ll-terminal-bg-bright-black:#9e9e9e;--_lr-ld-terminal-bg-bright-black:#3d3d3d;--_lr-ll-terminal-bg-bright-blue:#a2c6fb;--_lr-ld-terminal-bg-bright-blue:#446493;--_lr-ll-terminal-bg-bright-cyan:#8dd2da;--_lr-ld-terminal-bg-bright-cyan:#286f76;--_lr-ll-terminal-bg-bright-green:#a4d2a4;--_lr-ld-terminal-bg-bright-green:#456f46;--_lr-ll-terminal-bg-bright-magenta:#d6b4f0;--_lr-ld-terminal-bg-bright-magenta:#73548a;--_lr-ll-terminal-bg-bright-red:#f9aea5;--_lr-ld-terminal-bg-bright-red:#904e47;--_lr-ll-terminal-bg-bright-white:#d1d1d1;--_lr-ld-terminal-bg-bright-white:#696969;--_lr-ll-terminal-bg-bright-yellow:#d8c288;--_lr-ld-terminal-bg-bright-yellow:#756127;--_lr-ll-terminal-bg-cyan:#77b0b6;--_lr-ld-terminal-bg-cyan:#1c565d;--_lr-ll-terminal-bg-green:#89b18a;--_lr-ld-terminal-bg-green:#335735;--_lr-ll-terminal-bg-magenta:#b497cb;--_lr-ld-terminal-bg-magenta:#5a406e;--_lr-ll-terminal-bg-red:#d2918a;--_lr-ld-terminal-bg-red:#733a35;--_lr-ll-terminal-bg-white:#b7b7b7;--_lr-ld-terminal-bg-white:#525252;--_lr-ll-terminal-bg-yellow:#b6a372;--_lr-ld-terminal-bg-yellow:#5c4b1a;--_lr-ll-terminal-color-black:#2b2b2b;--_lr-ld-terminal-color-black:#929292;--_lr-ll-terminal-color-blue:#06489c;--_lr-ld-terminal-color-blue:#69a5fe;--_lr-ll-terminal-color-bright-black:#404040;--_lr-ld-terminal-color-bright-black:#ababab;--_lr-ll-terminal-color-bright-blue:#145ec1;--_lr-ld-terminal-color-bright-blue:#a0c6fe;--_lr-ll-terminal-color-bright-cyan:#04717a;--_lr-ld-terminal-color-bright-cyan:#00ddef;--_lr-ll-terminal-color-bright-green:#01791e;--_lr-ld-terminal-color-bright-green:#7cdf81;--_lr-ll-terminal-color-bright-magenta:#823bae;--_lr-ld-terminal-color-bright-magenta:#dcaefe;--_lr-ll-terminal-color-bright-red:#b32322;--_lr-ld-terminal-color-bright-red:#ffaba1;--_lr-ll-terminal-color-bright-white:#6c6c6c;--_lr-ld-terminal-color-bright-white:#dedede;--_lr-ll-terminal-color-bright-yellow:#796005;--_lr-ld-terminal-color-bright-yellow:#ecbe24;--_lr-ll-terminal-color-cyan:#02585f;--_lr-ld-terminal-color-cyan:#17bac8;--_lr-ll-terminal-color-green:#015e15;--_lr-ld-terminal-color-green:#67bb6b;--_lr-ll-terminal-color-magenta:#67298c;--_lr-ld-terminal-color-magenta:#c385ef;--_lr-ll-terminal-color-red:#901114;--_lr-ld-terminal-color-red:#f9786c;--_lr-ll-terminal-color-white:#555;--_lr-ld-terminal-color-white:#c4c4c4;--_lr-ll-terminal-color-yellow:#5f4a03;--_lr-ld-terminal-color-yellow:#c7a01e;--lr-theme-transition-fast:.12s ease-out;--lr-theme-transition-normal:.18s ease-out;--lr-theme-transition-slow:1.8s ease-in-out;--lr-theme-word-break:initial;--lr-theme-z-index-base:0;--lr-theme-z-index-content:1;--lr-theme-z-index-dropdown:900;--lr-theme-z-index-modal:1000;--lr-theme-z-index-popover:1000;--lr-theme-z-index-toast:9999;--_lr-fl-color-danger-border-loud:initial;--_lr-ol-color-danger-border-loud: ;--_lr-fd-color-danger-border-loud:initial;--_lr-od-color-danger-border-loud: ;--_lr-fl-color-danger-border-normal:initial;--_lr-ol-color-danger-border-normal: ;--_lr-fd-color-danger-border-normal:initial;--_lr-od-color-danger-border-normal: ;--_lr-fl-color-danger-border-quiet:initial;--_lr-ol-color-danger-border-quiet: ;--_lr-fd-color-danger-border-quiet:initial;--_lr-od-color-danger-border-quiet: ;--_lr-fl-color-danger-fill-loud:initial;--_lr-ol-color-danger-fill-loud: ;--_lr-fd-color-danger-fill-loud:initial;--_lr-od-color-danger-fill-loud: ;--_lr-fl-color-danger-fill-normal:initial;--_lr-ol-color-danger-fill-normal: ;--_lr-fd-color-danger-fill-normal:initial;--_lr-od-color-danger-fill-normal: ;--_lr-fl-color-danger-fill-quiet:initial;--_lr-ol-color-danger-fill-quiet: ;--_lr-fd-color-danger-fill-quiet:initial;--_lr-od-color-danger-fill-quiet: ;--_lr-fl-color-danger-on-loud:initial;--_lr-ol-color-danger-on-loud: ;--_lr-fd-color-danger-on-loud:initial;--_lr-od-color-danger-on-loud: ;--_lr-fl-color-danger-on-normal:initial;--_lr-ol-color-danger-on-normal: ;--_lr-fd-color-danger-on-normal:initial;--_lr-od-color-danger-on-normal: ;--_lr-fl-color-danger-on-quiet:initial;--_lr-ol-color-danger-on-quiet: ;--_lr-fd-color-danger-on-quiet:initial;--_lr-od-color-danger-on-quiet: ;--_lr-fl-color-neutral-border-loud:initial;--_lr-ol-color-neutral-border-loud: ;--_lr-fd-color-neutral-border-loud:initial;--_lr-od-color-neutral-border-loud: ;--_lr-fl-color-neutral-border-normal:initial;--_lr-ol-color-neutral-border-normal: ;--_lr-fd-color-neutral-border-normal:initial;--_lr-od-color-neutral-border-normal: ;--_lr-fl-color-neutral-border-quiet:initial;--_lr-ol-color-neutral-border-quiet: ;--_lr-fd-color-neutral-border-quiet:initial;--_lr-od-color-neutral-border-quiet: ;--_lr-fl-color-neutral-fill-loud:initial;--_lr-ol-color-neutral-fill-loud: ;--_lr-fd-color-neutral-fill-loud:initial;--_lr-od-color-neutral-fill-loud: ;--_lr-fl-color-neutral-fill-normal:initial;--_lr-ol-color-neutral-fill-normal: ;--_lr-fd-color-neutral-fill-normal:initial;--_lr-od-color-neutral-fill-normal: ;--_lr-fl-color-neutral-fill-quiet:initial;--_lr-ol-color-neutral-fill-quiet: ;--_lr-fd-color-neutral-fill-quiet:initial;--_lr-od-color-neutral-fill-quiet: ;--_lr-fl-color-neutral-on-loud:initial;--_lr-ol-color-neutral-on-loud: ;--_lr-fd-color-neutral-on-loud:initial;--_lr-od-color-neutral-on-loud: ;--_lr-fl-color-neutral-on-normal:initial;--_lr-ol-color-neutral-on-normal: ;--_lr-fd-color-neutral-on-normal:initial;--_lr-od-color-neutral-on-normal: ;--_lr-fl-color-neutral-on-quiet:initial;--_lr-ol-color-neutral-on-quiet: ;--_lr-fd-color-neutral-on-quiet:initial;--_lr-od-color-neutral-on-quiet: ;--_lr-fl-color-success-border-loud:initial;--_lr-ol-color-success-border-loud: ;--_lr-fd-color-success-border-loud:initial;--_lr-od-color-success-border-loud: ;--_lr-fl-color-success-border-normal:initial;--_lr-ol-color-success-border-normal: ;--_lr-fd-color-success-border-normal:initial;--_lr-od-color-success-border-normal: ;--_lr-fl-color-success-border-quiet:initial;--_lr-ol-color-success-border-quiet: ;--_lr-fd-color-success-border-quiet:initial;--_lr-od-color-success-border-quiet: ;--_lr-fl-color-success-fill-loud:initial;--_lr-ol-color-success-fill-loud: ;--_lr-fd-color-success-fill-loud:initial;--_lr-od-color-success-fill-loud: ;--_lr-fl-color-success-fill-normal:initial;--_lr-ol-color-success-fill-normal: ;--_lr-fd-color-success-fill-normal:initial;--_lr-od-color-success-fill-normal: ;--_lr-fl-color-success-fill-quiet:initial;--_lr-ol-color-success-fill-quiet: ;--_lr-fd-color-success-fill-quiet:initial;--_lr-od-color-success-fill-quiet: ;--_lr-fl-color-success-on-loud:initial;--_lr-ol-color-success-on-loud: ;--_lr-fd-color-success-on-loud:initial;--_lr-od-color-success-on-loud: ;--_lr-fl-color-success-on-normal:initial;--_lr-ol-color-success-on-normal: ;--_lr-fd-color-success-on-normal:initial;--_lr-od-color-success-on-normal: ;--_lr-fl-color-success-on-quiet:initial;--_lr-ol-color-success-on-quiet: ;--_lr-fd-color-success-on-quiet:initial;--_lr-od-color-success-on-quiet: ;--_lr-fl-color-warning-border-loud:initial;--_lr-ol-color-warning-border-loud: ;--_lr-fd-color-warning-border-loud:initial;--_lr-od-color-warning-border-loud: ;--_lr-fl-color-warning-border-normal:initial;--_lr-ol-color-warning-border-normal: ;--_lr-fd-color-warning-border-normal:initial;--_lr-od-color-warning-border-normal: ;--_lr-fl-color-warning-border-quiet:initial;--_lr-ol-color-warning-border-quiet: ;--_lr-fd-color-warning-border-quiet:initial;--_lr-od-color-warning-border-quiet: ;--_lr-fl-color-warning-fill-loud:initial;--_lr-ol-color-warning-fill-loud: ;--_lr-fd-color-warning-fill-loud:initial;--_lr-od-color-warning-fill-loud: ;--_lr-fl-color-warning-fill-normal:initial;--_lr-ol-color-warning-fill-normal: ;--_lr-fd-color-warning-fill-normal:initial;--_lr-od-color-warning-fill-normal: ;--_lr-fl-color-warning-fill-quiet:initial;--_lr-ol-color-warning-fill-quiet: ;--_lr-fd-color-warning-fill-quiet:initial;--_lr-od-color-warning-fill-quiet: ;--_lr-fl-color-warning-on-loud:initial;--_lr-ol-color-warning-on-loud: ;--_lr-fd-color-warning-on-loud:initial;--_lr-od-color-warning-on-loud: ;--_lr-fl-color-warning-on-normal:initial;--_lr-ol-color-warning-on-normal: ;--_lr-fd-color-warning-on-normal:initial;--_lr-od-color-warning-on-normal: ;--_lr-fl-color-warning-on-quiet:initial;--_lr-ol-color-warning-on-quiet: ;--_lr-fd-color-warning-on-quiet:initial;--_lr-od-color-warning-on-quiet: ;--_lr-subtle-mix:0%;--_lr-look-installed:lyra-1}:root{--_lr-dense-on:initial;--_lr-dense-off: ;--_lr-style-resolver:1}[data-lr-accent]{--_lr-al-color-brand-border-loud:initial;--_lr-ad-color-brand-border-loud:initial;--_lr-al-color-brand-border-normal:initial;--_lr-ad-color-brand-border-normal:initial;--_lr-al-color-brand-border-quiet:initial;--_lr-ad-color-brand-border-quiet:initial;--_lr-al-color-brand-fill-loud:initial;--_lr-ad-color-brand-fill-loud:initial;--_lr-al-color-brand-fill-normal:initial;--_lr-ad-color-brand-fill-normal:initial;--_lr-al-color-brand-fill-quiet:initial;--_lr-ad-color-brand-fill-quiet:initial;--_lr-al-color-brand-on-loud:initial;--_lr-ad-color-brand-on-loud:initial;--_lr-al-color-brand-on-normal:initial;--_lr-ad-color-brand-on-normal:initial;--_lr-al-color-brand-on-quiet:initial;--_lr-ad-color-brand-on-quiet:initial;--_lr-al-color-danger-border-loud:initial;--_lr-ad-color-danger-border-loud:initial;--_lr-al-color-danger-border-normal:initial;--_lr-ad-color-danger-border-normal:initial;--_lr-al-color-danger-border-quiet:initial;--_lr-ad-color-danger-border-quiet:initial;--_lr-al-color-danger-fill-loud:initial;--_lr-ad-color-danger-fill-loud:initial;--_lr-al-color-danger-fill-normal:initial;--_lr-ad-color-danger-fill-normal:initial;--_lr-al-color-danger-fill-quiet:initial;--_lr-ad-color-danger-fill-quiet:initial;--_lr-al-color-danger-on-loud:initial;--_lr-ad-color-danger-on-loud:initial;--_lr-al-color-danger-on-normal:initial;--_lr-ad-color-danger-on-normal:initial;--_lr-al-color-danger-on-quiet:initial;--_lr-ad-color-danger-on-quiet:initial;--_lr-al-color-focus:initial;--_lr-ad-color-focus:initial;--_lr-al-color-neutral-border-loud:initial;--_lr-ad-color-neutral-border-loud:initial;--_lr-al-color-neutral-border-normal:initial;--_lr-ad-color-neutral-border-normal:initial;--_lr-al-color-neutral-border-quiet:initial;--_lr-ad-color-neutral-border-quiet:initial;--_lr-al-color-neutral-fill-loud:initial;--_lr-ad-color-neutral-fill-loud:initial;--_lr-al-color-neutral-fill-normal:initial;--_lr-ad-color-neutral-fill-normal:initial;--_lr-al-color-neutral-fill-quiet:initial;--_lr-ad-color-neutral-fill-quiet:initial;--_lr-al-color-neutral-on-loud:initial;--_lr-ad-color-neutral-on-loud:initial;--_lr-al-color-neutral-on-normal:initial;--_lr-ad-color-neutral-on-normal:initial;--_lr-al-color-neutral-on-quiet:initial;--_lr-ad-color-neutral-on-quiet:initial;--_lr-al-color-success-border-loud:initial;--_lr-ad-color-success-border-loud:initial;--_lr-al-color-success-border-normal:initial;--_lr-ad-color-success-border-normal:initial;--_lr-al-color-success-border-quiet:initial;--_lr-ad-color-success-border-quiet:initial;--_lr-al-color-success-fill-loud:initial;--_lr-ad-color-success-fill-loud:initial;--_lr-al-color-success-fill-normal:initial;--_lr-ad-color-success-fill-normal:initial;--_lr-al-color-success-fill-quiet:initial;--_lr-ad-color-success-fill-quiet:initial;--_lr-al-color-success-on-loud:initial;--_lr-ad-color-success-on-loud:initial;--_lr-al-color-success-on-normal:initial;--_lr-ad-color-success-on-normal:initial;--_lr-al-color-success-on-quiet:initial;--_lr-ad-color-success-on-quiet:initial;--_lr-al-color-warning-border-loud:initial;--_lr-ad-color-warning-border-loud:initial;--_lr-al-color-warning-border-normal:initial;--_lr-ad-color-warning-border-normal:initial;--_lr-al-color-warning-border-quiet:initial;--_lr-ad-color-warning-border-quiet:initial;--_lr-al-color-warning-fill-loud:initial;--_lr-ad-color-warning-fill-loud:initial;--_lr-al-color-warning-fill-normal:initial;--_lr-ad-color-warning-fill-normal:initial;--_lr-al-color-warning-fill-quiet:initial;--_lr-ad-color-warning-fill-quiet:initial;--_lr-al-color-warning-on-loud:initial;--_lr-ad-color-warning-on-loud:initial;--_lr-al-color-warning-on-normal:initial;--_lr-ad-color-warning-on-normal:initial;--_lr-al-color-warning-on-quiet:initial;--_lr-ad-color-warning-on-quiet:initial;--lr-theme-accent:initial}:root,.lr-light,.lr-dark,[data-lr-theme],[data-lr-mode],[data-lr-look],[data-lr-accent],[data-lr-theme-scope][style*=--_lr-]{--lr-theme-color-border-strong:var(--_lr-dark-on,var(--_lr-ll-color-border-strong))var(--_lr-light-on,var(--_lr-ld-color-border-strong));--lr-theme-color-brand-border-loud:var(--_lr-dark-on,var(--_lr-al-color-brand-border-loud,var(--_lr-ll-color-brand-border-loud)))var(--_lr-light-on,var(--_lr-ad-color-brand-border-loud,var(--_lr-ld-color-brand-border-loud)));--lr-theme-color-brand-border-normal:var(--_lr-dark-on,var(--_lr-al-color-brand-border-normal,var(--_lr-ll-color-brand-border-normal)))var(--_lr-light-on,var(--_lr-ad-color-brand-border-normal,var(--_lr-ld-color-brand-border-normal)));--lr-theme-color-brand-border-quiet:var(--_lr-dark-on,var(--_lr-al-color-brand-border-quiet,var(--_lr-ll-color-brand-border-quiet)))var(--_lr-light-on,var(--_lr-ad-color-brand-border-quiet,var(--_lr-ld-color-brand-border-quiet)));--lr-theme-color-brand-fill-loud:var(--_lr-dark-on,var(--_lr-al-color-brand-fill-loud,var(--_lr-ll-color-brand-fill-loud)))var(--_lr-light-on,var(--_lr-ad-color-brand-fill-loud,var(--_lr-ld-color-brand-fill-loud)));--lr-theme-color-brand-fill-normal:var(--_lr-dark-on,var(--_lr-al-color-brand-fill-normal,var(--_lr-ll-color-brand-fill-normal)))var(--_lr-light-on,var(--_lr-ad-color-brand-fill-normal,var(--_lr-ld-color-brand-fill-normal)));--lr-theme-color-brand-fill-quiet:var(--_lr-dark-on,var(--_lr-al-color-brand-fill-quiet,var(--_lr-ll-color-brand-fill-quiet)))var(--_lr-light-on,var(--_lr-ad-color-brand-fill-quiet,var(--_lr-ld-color-brand-fill-quiet)));--lr-theme-color-brand-on-loud:var(--_lr-dark-on,var(--_lr-al-color-brand-on-loud,var(--_lr-ll-color-brand-on-loud)))var(--_lr-light-on,var(--_lr-ad-color-brand-on-loud,var(--_lr-ld-color-brand-on-loud)));--lr-theme-color-brand-on-normal:var(--_lr-dark-on,var(--_lr-al-color-brand-on-normal,var(--_lr-ll-color-brand-on-normal)))var(--_lr-light-on,var(--_lr-ad-color-brand-on-normal,var(--_lr-ld-color-brand-on-normal)));--lr-theme-color-brand-on-quiet:var(--_lr-dark-on,var(--_lr-al-color-brand-on-quiet,var(--_lr-ll-color-brand-on-quiet)))var(--_lr-light-on,var(--_lr-ad-color-brand-on-quiet,var(--_lr-ld-color-brand-on-quiet)));--lr-theme-color-chart-1:var(--_lr-dark-on,var(--_lr-ll-color-chart-1))var(--_lr-light-on,var(--_lr-ld-color-chart-1));--lr-theme-color-chart-2:var(--_lr-dark-on,var(--_lr-ll-color-chart-2))var(--_lr-light-on,var(--_lr-ld-color-chart-2));--lr-theme-color-chart-3:var(--_lr-dark-on,var(--_lr-ll-color-chart-3))var(--_lr-light-on,var(--_lr-ld-color-chart-3));--lr-theme-color-chart-4:var(--_lr-dark-on,var(--_lr-ll-color-chart-4))var(--_lr-light-on,var(--_lr-ld-color-chart-4));--lr-theme-color-chart-5:var(--_lr-dark-on,var(--_lr-ll-color-chart-5))var(--_lr-light-on,var(--_lr-ld-color-chart-5));--lr-theme-color-chart-6:var(--_lr-dark-on,var(--_lr-ll-color-chart-6))var(--_lr-light-on,var(--_lr-ld-color-chart-6));--lr-theme-color-chart-7:var(--_lr-dark-on,var(--_lr-ll-color-chart-7))var(--_lr-light-on,var(--_lr-ld-color-chart-7));--lr-theme-color-chart-8:var(--_lr-dark-on,var(--_lr-ll-color-chart-8))var(--_lr-light-on,var(--_lr-ld-color-chart-8));--lr-theme-color-chart-diverging-1:var(--_lr-dark-on,var(--_lr-ll-color-chart-diverging-1))var(--_lr-light-on,var(--_lr-ld-color-chart-diverging-1));--lr-theme-color-chart-diverging-2:var(--_lr-dark-on,var(--_lr-ll-color-chart-diverging-2))var(--_lr-light-on,var(--_lr-ld-color-chart-diverging-2));--lr-theme-color-chart-diverging-3:var(--_lr-dark-on,var(--_lr-ll-color-chart-diverging-3))var(--_lr-light-on,var(--_lr-ld-color-chart-diverging-3));--lr-theme-color-chart-sequential-1:var(--_lr-dark-on,var(--_lr-ll-color-chart-sequential-1))var(--_lr-light-on,var(--_lr-ld-color-chart-sequential-1));--lr-theme-color-chart-sequential-2:var(--_lr-dark-on,var(--_lr-ll-color-chart-sequential-2))var(--_lr-light-on,var(--_lr-ld-color-chart-sequential-2));--lr-theme-color-chart-sequential-3:var(--_lr-dark-on,var(--_lr-ll-color-chart-sequential-3))var(--_lr-light-on,var(--_lr-ld-color-chart-sequential-3));--lr-theme-color-danger-border-loud:var(--_lr-dark-on,var(--_lr-al-color-danger-border-loud,var(--_lr-fl-color-danger-border-loud,var(--_lr-ll-color-danger-border-loud))var(--_lr-ol-color-danger-border-loud,var(--lr-theme-color-brand-border-loud))))var(--_lr-light-on,var(--_lr-ad-color-danger-border-loud,var(--_lr-fd-color-danger-border-loud,var(--_lr-ld-color-danger-border-loud))var(--_lr-od-color-danger-border-loud,var(--lr-theme-color-brand-border-loud))));--lr-theme-color-danger-border-normal:var(--_lr-dark-on,var(--_lr-al-color-danger-border-normal,var(--_lr-fl-color-danger-border-normal,var(--_lr-ll-color-danger-border-normal))var(--_lr-ol-color-danger-border-normal,var(--lr-theme-color-brand-border-normal))))var(--_lr-light-on,var(--_lr-ad-color-danger-border-normal,var(--_lr-fd-color-danger-border-normal,var(--_lr-ld-color-danger-border-normal))var(--_lr-od-color-danger-border-normal,var(--lr-theme-color-brand-border-normal))));--lr-theme-color-danger-border-quiet:var(--_lr-dark-on,var(--_lr-al-color-danger-border-quiet,var(--_lr-fl-color-danger-border-quiet,var(--_lr-ll-color-danger-border-quiet))var(--_lr-ol-color-danger-border-quiet,var(--lr-theme-color-brand-border-quiet))))var(--_lr-light-on,var(--_lr-ad-color-danger-border-quiet,var(--_lr-fd-color-danger-border-quiet,var(--_lr-ld-color-danger-border-quiet))var(--_lr-od-color-danger-border-quiet,var(--lr-theme-color-brand-border-quiet))));--lr-theme-color-danger-fill-loud:var(--_lr-dark-on,var(--_lr-al-color-danger-fill-loud,var(--_lr-fl-color-danger-fill-loud,var(--_lr-ll-color-danger-fill-loud))var(--_lr-ol-color-danger-fill-loud,var(--lr-theme-color-brand-fill-loud))))var(--_lr-light-on,var(--_lr-ad-color-danger-fill-loud,var(--_lr-fd-color-danger-fill-loud,var(--_lr-ld-color-danger-fill-loud))var(--_lr-od-color-danger-fill-loud,var(--lr-theme-color-brand-fill-loud))));--lr-theme-color-danger-fill-normal:var(--_lr-dark-on,var(--_lr-al-color-danger-fill-normal,var(--_lr-fl-color-danger-fill-normal,var(--_lr-ll-color-danger-fill-normal))var(--_lr-ol-color-danger-fill-normal,var(--lr-theme-color-brand-fill-normal))))var(--_lr-light-on,var(--_lr-ad-color-danger-fill-normal,var(--_lr-fd-color-danger-fill-normal,var(--_lr-ld-color-danger-fill-normal))var(--_lr-od-color-danger-fill-normal,var(--lr-theme-color-brand-fill-normal))));--lr-theme-color-danger-fill-quiet:var(--_lr-dark-on,var(--_lr-al-color-danger-fill-quiet,var(--_lr-fl-color-danger-fill-quiet,var(--_lr-ll-color-danger-fill-quiet))var(--_lr-ol-color-danger-fill-quiet,var(--lr-theme-color-brand-fill-quiet))))var(--_lr-light-on,var(--_lr-ad-color-danger-fill-quiet,var(--_lr-fd-color-danger-fill-quiet,var(--_lr-ld-color-danger-fill-quiet))var(--_lr-od-color-danger-fill-quiet,var(--lr-theme-color-brand-fill-quiet))));--lr-theme-color-danger-on-loud:var(--_lr-dark-on,var(--_lr-al-color-danger-on-loud,var(--_lr-fl-color-danger-on-loud,var(--_lr-ll-color-danger-on-loud))var(--_lr-ol-color-danger-on-loud,var(--lr-theme-color-brand-on-loud))))var(--_lr-light-on,var(--_lr-ad-color-danger-on-loud,var(--_lr-fd-color-danger-on-loud,var(--_lr-ld-color-danger-on-loud))var(--_lr-od-color-danger-on-loud,var(--lr-theme-color-brand-on-loud))));--lr-theme-color-danger-on-normal:var(--_lr-dark-on,var(--_lr-al-color-danger-on-normal,var(--_lr-fl-color-danger-on-normal,var(--_lr-ll-color-danger-on-normal))var(--_lr-ol-color-danger-on-normal,var(--lr-theme-color-brand-on-normal))))var(--_lr-light-on,var(--_lr-ad-color-danger-on-normal,var(--_lr-fd-color-danger-on-normal,var(--_lr-ld-color-danger-on-normal))var(--_lr-od-color-danger-on-normal,var(--lr-theme-color-brand-on-normal))));--lr-theme-color-danger-on-quiet:var(--_lr-dark-on,var(--_lr-al-color-danger-on-quiet,var(--_lr-fl-color-danger-on-quiet,var(--_lr-ll-color-danger-on-quiet))var(--_lr-ol-color-danger-on-quiet,var(--lr-theme-color-brand-on-quiet))))var(--_lr-light-on,var(--_lr-ad-color-danger-on-quiet,var(--_lr-fd-color-danger-on-quiet,var(--_lr-ld-color-danger-on-quiet))var(--_lr-od-color-danger-on-quiet,var(--lr-theme-color-brand-on-quiet))));--lr-theme-color-focus:var(--_lr-dark-on,var(--_lr-al-color-focus,var(--_lr-ll-color-focus)))var(--_lr-light-on,var(--_lr-ad-color-focus,var(--_lr-ld-color-focus)));--lr-theme-color-mix-partner:var(--_lr-dark-on,var(--_lr-ll-color-mix-partner))var(--_lr-light-on,var(--_lr-ld-color-mix-partner));--lr-theme-color-neutral-border-loud:var(--_lr-dark-on,var(--_lr-al-color-neutral-border-loud,var(--_lr-fl-color-neutral-border-loud,var(--_lr-ll-color-neutral-border-loud))var(--_lr-ol-color-neutral-border-loud,var(--lr-theme-color-brand-border-loud))))var(--_lr-light-on,var(--_lr-ad-color-neutral-border-loud,var(--_lr-fd-color-neutral-border-loud,var(--_lr-ld-color-neutral-border-loud))var(--_lr-od-color-neutral-border-loud,var(--lr-theme-color-brand-border-loud))));--lr-theme-color-neutral-border-normal:var(--_lr-dark-on,var(--_lr-al-color-neutral-border-normal,var(--_lr-fl-color-neutral-border-normal,var(--_lr-ll-color-neutral-border-normal))var(--_lr-ol-color-neutral-border-normal,var(--lr-theme-color-brand-border-normal))))var(--_lr-light-on,var(--_lr-ad-color-neutral-border-normal,var(--_lr-fd-color-neutral-border-normal,var(--_lr-ld-color-neutral-border-normal))var(--_lr-od-color-neutral-border-normal,var(--lr-theme-color-brand-border-normal))));--lr-theme-color-neutral-border-quiet:var(--_lr-dark-on,var(--_lr-al-color-neutral-border-quiet,var(--_lr-fl-color-neutral-border-quiet,var(--_lr-ll-color-neutral-border-quiet))var(--_lr-ol-color-neutral-border-quiet,var(--lr-theme-color-brand-border-quiet))))var(--_lr-light-on,var(--_lr-ad-color-neutral-border-quiet,var(--_lr-fd-color-neutral-border-quiet,var(--_lr-ld-color-neutral-border-quiet))var(--_lr-od-color-neutral-border-quiet,var(--lr-theme-color-brand-border-quiet))));--lr-theme-color-neutral-fill-loud:var(--_lr-dark-on,var(--_lr-al-color-neutral-fill-loud,var(--_lr-fl-color-neutral-fill-loud,var(--_lr-ll-color-neutral-fill-loud))var(--_lr-ol-color-neutral-fill-loud,var(--lr-theme-color-brand-fill-loud))))var(--_lr-light-on,var(--_lr-ad-color-neutral-fill-loud,var(--_lr-fd-color-neutral-fill-loud,var(--_lr-ld-color-neutral-fill-loud))var(--_lr-od-color-neutral-fill-loud,var(--lr-theme-color-brand-fill-loud))));--lr-theme-color-neutral-fill-normal:var(--_lr-dark-on,var(--_lr-al-color-neutral-fill-normal,var(--_lr-fl-color-neutral-fill-normal,var(--_lr-ll-color-neutral-fill-normal))var(--_lr-ol-color-neutral-fill-normal,var(--lr-theme-color-brand-fill-normal))))var(--_lr-light-on,var(--_lr-ad-color-neutral-fill-normal,var(--_lr-fd-color-neutral-fill-normal,var(--_lr-ld-color-neutral-fill-normal))var(--_lr-od-color-neutral-fill-normal,var(--lr-theme-color-brand-fill-normal))));--lr-theme-color-neutral-fill-quiet:var(--_lr-dark-on,var(--_lr-al-color-neutral-fill-quiet,var(--_lr-fl-color-neutral-fill-quiet,var(--_lr-ll-color-neutral-fill-quiet))var(--_lr-ol-color-neutral-fill-quiet,var(--lr-theme-color-brand-fill-quiet))))var(--_lr-light-on,var(--_lr-ad-color-neutral-fill-quiet,var(--_lr-fd-color-neutral-fill-quiet,var(--_lr-ld-color-neutral-fill-quiet))var(--_lr-od-color-neutral-fill-quiet,var(--lr-theme-color-brand-fill-quiet))));--lr-theme-color-neutral-on-loud:var(--_lr-dark-on,var(--_lr-al-color-neutral-on-loud,var(--_lr-fl-color-neutral-on-loud,var(--_lr-ll-color-neutral-on-loud))var(--_lr-ol-color-neutral-on-loud,var(--lr-theme-color-brand-on-loud))))var(--_lr-light-on,var(--_lr-ad-color-neutral-on-loud,var(--_lr-fd-color-neutral-on-loud,var(--_lr-ld-color-neutral-on-loud))var(--_lr-od-color-neutral-on-loud,var(--lr-theme-color-brand-on-loud))));--lr-theme-color-neutral-on-normal:var(--_lr-dark-on,var(--_lr-al-color-neutral-on-normal,var(--_lr-fl-color-neutral-on-normal,var(--_lr-ll-color-neutral-on-normal))var(--_lr-ol-color-neutral-on-normal,var(--lr-theme-color-brand-on-normal))))var(--_lr-light-on,var(--_lr-ad-color-neutral-on-normal,var(--_lr-fd-color-neutral-on-normal,var(--_lr-ld-color-neutral-on-normal))var(--_lr-od-color-neutral-on-normal,var(--lr-theme-color-brand-on-normal))));--lr-theme-color-neutral-on-quiet:var(--_lr-dark-on,var(--_lr-al-color-neutral-on-quiet,var(--_lr-fl-color-neutral-on-quiet,var(--_lr-ll-color-neutral-on-quiet))var(--_lr-ol-color-neutral-on-quiet,var(--lr-theme-color-brand-on-quiet))))var(--_lr-light-on,var(--_lr-ad-color-neutral-on-quiet,var(--_lr-fd-color-neutral-on-quiet,var(--_lr-ld-color-neutral-on-quiet))var(--_lr-od-color-neutral-on-quiet,var(--lr-theme-color-brand-on-quiet))));--lr-theme-color-no-data:var(--_lr-dark-on,var(--_lr-ll-color-no-data))var(--_lr-light-on,var(--_lr-ld-color-no-data));--lr-theme-color-on-strong-overlay:var(--_lr-dark-on,var(--_lr-ll-color-on-strong-overlay))var(--_lr-light-on,var(--_lr-ld-color-on-strong-overlay));--lr-theme-color-overlay:var(--_lr-dark-on,var(--_lr-ll-color-overlay))var(--_lr-light-on,var(--_lr-ld-color-overlay));--lr-theme-color-overlay-strong:var(--_lr-dark-on,var(--_lr-ll-color-overlay-strong))var(--_lr-light-on,var(--_lr-ld-color-overlay-strong));--lr-theme-color-success-border-loud:var(--_lr-dark-on,var(--_lr-al-color-success-border-loud,var(--_lr-fl-color-success-border-loud,var(--_lr-ll-color-success-border-loud))var(--_lr-ol-color-success-border-loud,var(--lr-theme-color-brand-border-loud))))var(--_lr-light-on,var(--_lr-ad-color-success-border-loud,var(--_lr-fd-color-success-border-loud,var(--_lr-ld-color-success-border-loud))var(--_lr-od-color-success-border-loud,var(--lr-theme-color-brand-border-loud))));--lr-theme-color-success-border-normal:var(--_lr-dark-on,var(--_lr-al-color-success-border-normal,var(--_lr-fl-color-success-border-normal,var(--_lr-ll-color-success-border-normal))var(--_lr-ol-color-success-border-normal,var(--lr-theme-color-brand-border-normal))))var(--_lr-light-on,var(--_lr-ad-color-success-border-normal,var(--_lr-fd-color-success-border-normal,var(--_lr-ld-color-success-border-normal))var(--_lr-od-color-success-border-normal,var(--lr-theme-color-brand-border-normal))));--lr-theme-color-success-border-quiet:var(--_lr-dark-on,var(--_lr-al-color-success-border-quiet,var(--_lr-fl-color-success-border-quiet,var(--_lr-ll-color-success-border-quiet))var(--_lr-ol-color-success-border-quiet,var(--lr-theme-color-brand-border-quiet))))var(--_lr-light-on,var(--_lr-ad-color-success-border-quiet,var(--_lr-fd-color-success-border-quiet,var(--_lr-ld-color-success-border-quiet))var(--_lr-od-color-success-border-quiet,var(--lr-theme-color-brand-border-quiet))));--lr-theme-color-success-fill-loud:var(--_lr-dark-on,var(--_lr-al-color-success-fill-loud,var(--_lr-fl-color-success-fill-loud,var(--_lr-ll-color-success-fill-loud))var(--_lr-ol-color-success-fill-loud,var(--lr-theme-color-brand-fill-loud))))var(--_lr-light-on,var(--_lr-ad-color-success-fill-loud,var(--_lr-fd-color-success-fill-loud,var(--_lr-ld-color-success-fill-loud))var(--_lr-od-color-success-fill-loud,var(--lr-theme-color-brand-fill-loud))));--lr-theme-color-success-fill-normal:var(--_lr-dark-on,var(--_lr-al-color-success-fill-normal,var(--_lr-fl-color-success-fill-normal,var(--_lr-ll-color-success-fill-normal))var(--_lr-ol-color-success-fill-normal,var(--lr-theme-color-brand-fill-normal))))var(--_lr-light-on,var(--_lr-ad-color-success-fill-normal,var(--_lr-fd-color-success-fill-normal,var(--_lr-ld-color-success-fill-normal))var(--_lr-od-color-success-fill-normal,var(--lr-theme-color-brand-fill-normal))));--lr-theme-color-success-fill-quiet:var(--_lr-dark-on,var(--_lr-al-color-success-fill-quiet,var(--_lr-fl-color-success-fill-quiet,var(--_lr-ll-color-success-fill-quiet))var(--_lr-ol-color-success-fill-quiet,var(--lr-theme-color-brand-fill-quiet))))var(--_lr-light-on,var(--_lr-ad-color-success-fill-quiet,var(--_lr-fd-color-success-fill-quiet,var(--_lr-ld-color-success-fill-quiet))var(--_lr-od-color-success-fill-quiet,var(--lr-theme-color-brand-fill-quiet))));--lr-theme-color-success-on-loud:var(--_lr-dark-on,var(--_lr-al-color-success-on-loud,var(--_lr-fl-color-success-on-loud,var(--_lr-ll-color-success-on-loud))var(--_lr-ol-color-success-on-loud,var(--lr-theme-color-brand-on-loud))))var(--_lr-light-on,var(--_lr-ad-color-success-on-loud,var(--_lr-fd-color-success-on-loud,var(--_lr-ld-color-success-on-loud))var(--_lr-od-color-success-on-loud,var(--lr-theme-color-brand-on-loud))));--lr-theme-color-success-on-normal:var(--_lr-dark-on,var(--_lr-al-color-success-on-normal,var(--_lr-fl-color-success-on-normal,var(--_lr-ll-color-success-on-normal))var(--_lr-ol-color-success-on-normal,var(--lr-theme-color-brand-on-normal))))var(--_lr-light-on,var(--_lr-ad-color-success-on-normal,var(--_lr-fd-color-success-on-normal,var(--_lr-ld-color-success-on-normal))var(--_lr-od-color-success-on-normal,var(--lr-theme-color-brand-on-normal))));--lr-theme-color-success-on-quiet:var(--_lr-dark-on,var(--_lr-al-color-success-on-quiet,var(--_lr-fl-color-success-on-quiet,var(--_lr-ll-color-success-on-quiet))var(--_lr-ol-color-success-on-quiet,var(--lr-theme-color-brand-on-quiet))))var(--_lr-light-on,var(--_lr-ad-color-success-on-quiet,var(--_lr-fd-color-success-on-quiet,var(--_lr-ld-color-success-on-quiet))var(--_lr-od-color-success-on-quiet,var(--lr-theme-color-brand-on-quiet))));--lr-theme-color-surface-border:var(--_lr-dark-on,var(--_lr-ll-color-surface-border))var(--_lr-light-on,var(--_lr-ld-color-surface-border));--lr-theme-color-surface-border-subtle:var(--_lr-dark-on,var(--_lr-ll-color-surface-border-subtle))var(--_lr-light-on,var(--_lr-ld-color-surface-border-subtle));--lr-theme-color-surface-container:var(--_lr-dark-on,var(--_lr-ll-color-surface-container))var(--_lr-light-on,var(--_lr-ld-color-surface-container));--lr-theme-color-surface-container-high:var(--_lr-dark-on,var(--_lr-ll-color-surface-container-high))var(--_lr-light-on,var(--_lr-ld-color-surface-container-high));--lr-theme-color-surface-container-highest:var(--_lr-dark-on,var(--_lr-ll-color-surface-container-highest))var(--_lr-light-on,var(--_lr-ld-color-surface-container-highest));--lr-theme-color-surface-container-low:var(--_lr-dark-on,var(--_lr-ll-color-surface-container-low))var(--_lr-light-on,var(--_lr-ld-color-surface-container-low));--lr-theme-color-surface-container-lowest:var(--_lr-dark-on,var(--_lr-ll-color-surface-container-lowest))var(--_lr-light-on,var(--_lr-ld-color-surface-container-lowest));--lr-theme-color-surface-default:var(--_lr-dark-on,var(--_lr-ll-color-surface-default))var(--_lr-light-on,var(--_lr-ld-color-surface-default));--lr-theme-color-surface-overlay:var(--_lr-dark-on,var(--_lr-ll-color-surface-overlay))var(--_lr-light-on,var(--_lr-ld-color-surface-overlay));--lr-theme-color-surface-raised:var(--_lr-dark-on,var(--_lr-ll-color-surface-raised))var(--_lr-light-on,var(--_lr-ld-color-surface-raised));--lr-theme-color-text-normal:var(--_lr-dark-on,var(--_lr-ll-color-text-normal))var(--_lr-light-on,var(--_lr-ld-color-text-normal));--lr-theme-color-text-quiet:var(--_lr-dark-on,var(--_lr-ll-color-text-quiet))var(--_lr-light-on,var(--_lr-ld-color-text-quiet));--lr-theme-color-warning-border-loud:var(--_lr-dark-on,var(--_lr-al-color-warning-border-loud,var(--_lr-fl-color-warning-border-loud,var(--_lr-ll-color-warning-border-loud))var(--_lr-ol-color-warning-border-loud,var(--lr-theme-color-brand-border-loud))))var(--_lr-light-on,var(--_lr-ad-color-warning-border-loud,var(--_lr-fd-color-warning-border-loud,var(--_lr-ld-color-warning-border-loud))var(--_lr-od-color-warning-border-loud,var(--lr-theme-color-brand-border-loud))));--lr-theme-color-warning-border-normal:var(--_lr-dark-on,var(--_lr-al-color-warning-border-normal,var(--_lr-fl-color-warning-border-normal,var(--_lr-ll-color-warning-border-normal))var(--_lr-ol-color-warning-border-normal,var(--lr-theme-color-brand-border-normal))))var(--_lr-light-on,var(--_lr-ad-color-warning-border-normal,var(--_lr-fd-color-warning-border-normal,var(--_lr-ld-color-warning-border-normal))var(--_lr-od-color-warning-border-normal,var(--lr-theme-color-brand-border-normal))));--lr-theme-color-warning-border-quiet:var(--_lr-dark-on,var(--_lr-al-color-warning-border-quiet,var(--_lr-fl-color-warning-border-quiet,var(--_lr-ll-color-warning-border-quiet))var(--_lr-ol-color-warning-border-quiet,var(--lr-theme-color-brand-border-quiet))))var(--_lr-light-on,var(--_lr-ad-color-warning-border-quiet,var(--_lr-fd-color-warning-border-quiet,var(--_lr-ld-color-warning-border-quiet))var(--_lr-od-color-warning-border-quiet,var(--lr-theme-color-brand-border-quiet))));--lr-theme-color-warning-fill-loud:var(--_lr-dark-on,var(--_lr-al-color-warning-fill-loud,var(--_lr-fl-color-warning-fill-loud,var(--_lr-ll-color-warning-fill-loud))var(--_lr-ol-color-warning-fill-loud,var(--lr-theme-color-brand-fill-loud))))var(--_lr-light-on,var(--_lr-ad-color-warning-fill-loud,var(--_lr-fd-color-warning-fill-loud,var(--_lr-ld-color-warning-fill-loud))var(--_lr-od-color-warning-fill-loud,var(--lr-theme-color-brand-fill-loud))));--lr-theme-color-warning-fill-normal:var(--_lr-dark-on,var(--_lr-al-color-warning-fill-normal,var(--_lr-fl-color-warning-fill-normal,var(--_lr-ll-color-warning-fill-normal))var(--_lr-ol-color-warning-fill-normal,var(--lr-theme-color-brand-fill-normal))))var(--_lr-light-on,var(--_lr-ad-color-warning-fill-normal,var(--_lr-fd-color-warning-fill-normal,var(--_lr-ld-color-warning-fill-normal))var(--_lr-od-color-warning-fill-normal,var(--lr-theme-color-brand-fill-normal))));--lr-theme-color-warning-fill-quiet:var(--_lr-dark-on,var(--_lr-al-color-warning-fill-quiet,var(--_lr-fl-color-warning-fill-quiet,var(--_lr-ll-color-warning-fill-quiet))var(--_lr-ol-color-warning-fill-quiet,var(--lr-theme-color-brand-fill-quiet))))var(--_lr-light-on,var(--_lr-ad-color-warning-fill-quiet,var(--_lr-fd-color-warning-fill-quiet,var(--_lr-ld-color-warning-fill-quiet))var(--_lr-od-color-warning-fill-quiet,var(--lr-theme-color-brand-fill-quiet))));--lr-theme-color-warning-on-loud:var(--_lr-dark-on,var(--_lr-al-color-warning-on-loud,var(--_lr-fl-color-warning-on-loud,var(--_lr-ll-color-warning-on-loud))var(--_lr-ol-color-warning-on-loud,var(--lr-theme-color-brand-on-loud))))var(--_lr-light-on,var(--_lr-ad-color-warning-on-loud,var(--_lr-fd-color-warning-on-loud,var(--_lr-ld-color-warning-on-loud))var(--_lr-od-color-warning-on-loud,var(--lr-theme-color-brand-on-loud))));--lr-theme-color-warning-on-normal:var(--_lr-dark-on,var(--_lr-al-color-warning-on-normal,var(--_lr-fl-color-warning-on-normal,var(--_lr-ll-color-warning-on-normal))var(--_lr-ol-color-warning-on-normal,var(--lr-theme-color-brand-on-normal))))var(--_lr-light-on,var(--_lr-ad-color-warning-on-normal,var(--_lr-fd-color-warning-on-normal,var(--_lr-ld-color-warning-on-normal))var(--_lr-od-color-warning-on-normal,var(--lr-theme-color-brand-on-normal))));--lr-theme-color-warning-on-quiet:var(--_lr-dark-on,var(--_lr-al-color-warning-on-quiet,var(--_lr-fl-color-warning-on-quiet,var(--_lr-ll-color-warning-on-quiet))var(--_lr-ol-color-warning-on-quiet,var(--lr-theme-color-brand-on-quiet))))var(--_lr-light-on,var(--_lr-ad-color-warning-on-quiet,var(--_lr-fd-color-warning-on-quiet,var(--_lr-ld-color-warning-on-quiet))var(--_lr-od-color-warning-on-quiet,var(--lr-theme-color-brand-on-quiet))));--lr-theme-graph-cat-1:var(--_lr-dark-on,var(--_lr-ll-graph-cat-1))var(--_lr-light-on,var(--_lr-ld-graph-cat-1));--lr-theme-graph-cat-2:var(--_lr-dark-on,var(--_lr-ll-graph-cat-2))var(--_lr-light-on,var(--_lr-ld-graph-cat-2));--lr-theme-graph-cat-3:var(--_lr-dark-on,var(--_lr-ll-graph-cat-3))var(--_lr-light-on,var(--_lr-ld-graph-cat-3));--lr-theme-graph-cat-4:var(--_lr-dark-on,var(--_lr-ll-graph-cat-4))var(--_lr-light-on,var(--_lr-ld-graph-cat-4));--lr-theme-graph-cat-5:var(--_lr-dark-on,var(--_lr-ll-graph-cat-5))var(--_lr-light-on,var(--_lr-ld-graph-cat-5));--lr-theme-graph-cat-6:var(--_lr-dark-on,var(--_lr-ll-graph-cat-6))var(--_lr-light-on,var(--_lr-ld-graph-cat-6));--lr-theme-graph-cat-7:var(--_lr-dark-on,var(--_lr-ll-graph-cat-7))var(--_lr-light-on,var(--_lr-ld-graph-cat-7));--lr-theme-graph-cat-8:var(--_lr-dark-on,var(--_lr-ll-graph-cat-8))var(--_lr-light-on,var(--_lr-ld-graph-cat-8));--lr-theme-shadow-l:var(--_lr-dark-on,var(--_lr-ll-shadow-l))var(--_lr-light-on,var(--_lr-ld-shadow-l));--lr-theme-shadow-m:var(--_lr-dark-on,var(--_lr-ll-shadow-m))var(--_lr-light-on,var(--_lr-ld-shadow-m));--lr-theme-shadow-s:var(--_lr-dark-on,var(--_lr-ll-shadow-s))var(--_lr-light-on,var(--_lr-ld-shadow-s));--lr-theme-shadow-xl:var(--_lr-dark-on,var(--_lr-ll-shadow-xl))var(--_lr-light-on,var(--_lr-ld-shadow-xl));--lr-theme-shadow-xs:var(--_lr-dark-on,var(--_lr-ll-shadow-xs))var(--_lr-light-on,var(--_lr-ld-shadow-xs));--lr-theme-terminal-bg-black:var(--_lr-dark-on,var(--_lr-ll-terminal-bg-black))var(--_lr-light-on,var(--_lr-ld-terminal-bg-black));--lr-theme-terminal-bg-blue:var(--_lr-dark-on,var(--_lr-ll-terminal-bg-blue))var(--_lr-light-on,var(--_lr-ld-terminal-bg-blue));--lr-theme-terminal-bg-bright-black:var(--_lr-dark-on,var(--_lr-ll-terminal-bg-bright-black))var(--_lr-light-on,var(--_lr-ld-terminal-bg-bright-black));--lr-theme-terminal-bg-bright-blue:var(--_lr-dark-on,var(--_lr-ll-terminal-bg-bright-blue))var(--_lr-light-on,var(--_lr-ld-terminal-bg-bright-blue));--lr-theme-terminal-bg-bright-cyan:var(--_lr-dark-on,var(--_lr-ll-terminal-bg-bright-cyan))var(--_lr-light-on,var(--_lr-ld-terminal-bg-bright-cyan));--lr-theme-terminal-bg-bright-green:var(--_lr-dark-on,var(--_lr-ll-terminal-bg-bright-green))var(--_lr-light-on,var(--_lr-ld-terminal-bg-bright-green));--lr-theme-terminal-bg-bright-magenta:var(--_lr-dark-on,var(--_lr-ll-terminal-bg-bright-magenta))var(--_lr-light-on,var(--_lr-ld-terminal-bg-bright-magenta));--lr-theme-terminal-bg-bright-red:var(--_lr-dark-on,var(--_lr-ll-terminal-bg-bright-red))var(--_lr-light-on,var(--_lr-ld-terminal-bg-bright-red));--lr-theme-terminal-bg-bright-white:var(--_lr-dark-on,var(--_lr-ll-terminal-bg-bright-white))var(--_lr-light-on,var(--_lr-ld-terminal-bg-bright-white));--lr-theme-terminal-bg-bright-yellow:var(--_lr-dark-on,var(--_lr-ll-terminal-bg-bright-yellow))var(--_lr-light-on,var(--_lr-ld-terminal-bg-bright-yellow));--lr-theme-terminal-bg-cyan:var(--_lr-dark-on,var(--_lr-ll-terminal-bg-cyan))var(--_lr-light-on,var(--_lr-ld-terminal-bg-cyan));--lr-theme-terminal-bg-green:var(--_lr-dark-on,var(--_lr-ll-terminal-bg-green))var(--_lr-light-on,var(--_lr-ld-terminal-bg-green));--lr-theme-terminal-bg-magenta:var(--_lr-dark-on,var(--_lr-ll-terminal-bg-magenta))var(--_lr-light-on,var(--_lr-ld-terminal-bg-magenta));--lr-theme-terminal-bg-red:var(--_lr-dark-on,var(--_lr-ll-terminal-bg-red))var(--_lr-light-on,var(--_lr-ld-terminal-bg-red));--lr-theme-terminal-bg-white:var(--_lr-dark-on,var(--_lr-ll-terminal-bg-white))var(--_lr-light-on,var(--_lr-ld-terminal-bg-white));--lr-theme-terminal-bg-yellow:var(--_lr-dark-on,var(--_lr-ll-terminal-bg-yellow))var(--_lr-light-on,var(--_lr-ld-terminal-bg-yellow));--lr-theme-terminal-color-black:var(--_lr-dark-on,var(--_lr-ll-terminal-color-black))var(--_lr-light-on,var(--_lr-ld-terminal-color-black));--lr-theme-terminal-color-blue:var(--_lr-dark-on,var(--_lr-ll-terminal-color-blue))var(--_lr-light-on,var(--_lr-ld-terminal-color-blue));--lr-theme-terminal-color-bright-black:var(--_lr-dark-on,var(--_lr-ll-terminal-color-bright-black))var(--_lr-light-on,var(--_lr-ld-terminal-color-bright-black));--lr-theme-terminal-color-bright-blue:var(--_lr-dark-on,var(--_lr-ll-terminal-color-bright-blue))var(--_lr-light-on,var(--_lr-ld-terminal-color-bright-blue));--lr-theme-terminal-color-bright-cyan:var(--_lr-dark-on,var(--_lr-ll-terminal-color-bright-cyan))var(--_lr-light-on,var(--_lr-ld-terminal-color-bright-cyan));--lr-theme-terminal-color-bright-green:var(--_lr-dark-on,var(--_lr-ll-terminal-color-bright-green))var(--_lr-light-on,var(--_lr-ld-terminal-color-bright-green));--lr-theme-terminal-color-bright-magenta:var(--_lr-dark-on,var(--_lr-ll-terminal-color-bright-magenta))var(--_lr-light-on,var(--_lr-ld-terminal-color-bright-magenta));--lr-theme-terminal-color-bright-red:var(--_lr-dark-on,var(--_lr-ll-terminal-color-bright-red))var(--_lr-light-on,var(--_lr-ld-terminal-color-bright-red));--lr-theme-terminal-color-bright-white:var(--_lr-dark-on,var(--_lr-ll-terminal-color-bright-white))var(--_lr-light-on,var(--_lr-ld-terminal-color-bright-white));--lr-theme-terminal-color-bright-yellow:var(--_lr-dark-on,var(--_lr-ll-terminal-color-bright-yellow))var(--_lr-light-on,var(--_lr-ld-terminal-color-bright-yellow));--lr-theme-terminal-color-cyan:var(--_lr-dark-on,var(--_lr-ll-terminal-color-cyan))var(--_lr-light-on,var(--_lr-ld-terminal-color-cyan));--lr-theme-terminal-color-green:var(--_lr-dark-on,var(--_lr-ll-terminal-color-green))var(--_lr-light-on,var(--_lr-ld-terminal-color-green));--lr-theme-terminal-color-magenta:var(--_lr-dark-on,var(--_lr-ll-terminal-color-magenta))var(--_lr-light-on,var(--_lr-ld-terminal-color-magenta));--lr-theme-terminal-color-red:var(--_lr-dark-on,var(--_lr-ll-terminal-color-red))var(--_lr-light-on,var(--_lr-ld-terminal-color-red));--lr-theme-terminal-color-white:var(--_lr-dark-on,var(--_lr-ll-terminal-color-white))var(--_lr-light-on,var(--_lr-ld-terminal-color-white));--lr-theme-terminal-color-yellow:var(--_lr-dark-on,var(--_lr-ll-terminal-color-yellow))var(--_lr-light-on,var(--_lr-ld-terminal-color-yellow))}:root,[data-lr-look],[data-lr-density],[data-lr-theme-scope][style*=--_lr-]{--lr-theme-space-2xs:var(--_lr-dense-on,var(--_lr-dark-on,var(--_lr-ll-space-2xs))var(--_lr-light-on,var(--_lr-ld-space-2xs)))var(--_lr-dense-off,max(calc((var(--_lr-dark-on,var(--_lr-ll-space-2xs))var(--_lr-light-on,var(--_lr-ld-space-2xs))) * var(--_lr-density-space,1)),0px));--lr-theme-space-xs:var(--_lr-dense-on,var(--_lr-dark-on,var(--_lr-ll-space-xs))var(--_lr-light-on,var(--_lr-ld-space-xs)))var(--_lr-dense-off,max(calc((var(--_lr-dark-on,var(--_lr-ll-space-xs))var(--_lr-light-on,var(--_lr-ld-space-xs))) * var(--_lr-density-space,1)),0px));--lr-theme-space-s:var(--_lr-dense-on,var(--_lr-dark-on,var(--_lr-ll-space-s))var(--_lr-light-on,var(--_lr-ld-space-s)))var(--_lr-dense-off,max(calc((var(--_lr-dark-on,var(--_lr-ll-space-s))var(--_lr-light-on,var(--_lr-ld-space-s))) * var(--_lr-density-space,1)),0px));--lr-theme-space-m:var(--_lr-dense-on,var(--_lr-dark-on,var(--_lr-ll-space-m))var(--_lr-light-on,var(--_lr-ld-space-m)))var(--_lr-dense-off,max(calc((var(--_lr-dark-on,var(--_lr-ll-space-m))var(--_lr-light-on,var(--_lr-ld-space-m))) * var(--_lr-density-space,1)),0px));--lr-theme-space-l:var(--_lr-dense-on,var(--_lr-dark-on,var(--_lr-ll-space-l))var(--_lr-light-on,var(--_lr-ld-space-l)))var(--_lr-dense-off,max(calc((var(--_lr-dark-on,var(--_lr-ll-space-l))var(--_lr-light-on,var(--_lr-ld-space-l))) * var(--_lr-density-space,1)),0px));--lr-theme-space-2xl:var(--_lr-dense-on,var(--_lr-dark-on,var(--_lr-ll-space-2xl))var(--_lr-light-on,var(--_lr-ld-space-2xl)))var(--_lr-dense-off,max(calc((var(--_lr-dark-on,var(--_lr-ll-space-2xl))var(--_lr-light-on,var(--_lr-ld-space-2xl))) * var(--_lr-density-space,1)),0px));--lr-theme-form-control-height-2xs:var(--_lr-dense-on,var(--_lr-dark-on,var(--_lr-ll-form-control-height-2xs))var(--_lr-light-on,var(--_lr-ld-form-control-height-2xs)))var(--_lr-dense-off,max(calc((var(--_lr-dark-on,var(--_lr-ll-form-control-height-2xs))var(--_lr-light-on,var(--_lr-ld-form-control-height-2xs))) * var(--_lr-density-control,1)),var(--_lr-density-target-min,0px)));--lr-theme-form-control-height-xs:var(--_lr-dense-on,var(--_lr-dark-on,var(--_lr-ll-form-control-height-xs))var(--_lr-light-on,var(--_lr-ld-form-control-height-xs)))var(--_lr-dense-off,max(calc((var(--_lr-dark-on,var(--_lr-ll-form-control-height-xs))var(--_lr-light-on,var(--_lr-ld-form-control-height-xs))) * var(--_lr-density-control,1)),var(--_lr-density-target-min,0px)));--lr-theme-form-control-height-s:var(--_lr-dense-on,var(--_lr-dark-on,var(--_lr-ll-form-control-height-s))var(--_lr-light-on,var(--_lr-ld-form-control-height-s)))var(--_lr-dense-off,max(calc((var(--_lr-dark-on,var(--_lr-ll-form-control-height-s))var(--_lr-light-on,var(--_lr-ld-form-control-height-s))) * var(--_lr-density-control,1)),var(--_lr-density-target-min,0px)));--lr-theme-form-control-height-m:var(--_lr-dense-on,var(--_lr-dark-on,var(--_lr-ll-form-control-height-m))var(--_lr-light-on,var(--_lr-ld-form-control-height-m)))var(--_lr-dense-off,max(calc((var(--_lr-dark-on,var(--_lr-ll-form-control-height-m))var(--_lr-light-on,var(--_lr-ld-form-control-height-m))) * var(--_lr-density-control,1)),var(--_lr-density-target-min,0px)));--lr-theme-form-control-height-l:var(--_lr-dense-on,var(--_lr-dark-on,var(--_lr-ll-form-control-height-l))var(--_lr-light-on,var(--_lr-ld-form-control-height-l)))var(--_lr-dense-off,max(calc((var(--_lr-dark-on,var(--_lr-ll-form-control-height-l))var(--_lr-light-on,var(--_lr-ld-form-control-height-l))) * var(--_lr-density-control,1)),var(--_lr-density-target-min,0px)));--lr-theme-form-control-height-xl:var(--_lr-dense-on,var(--_lr-dark-on,var(--_lr-ll-form-control-height-xl))var(--_lr-light-on,var(--_lr-ld-form-control-height-xl)))var(--_lr-dense-off,max(calc((var(--_lr-dark-on,var(--_lr-ll-form-control-height-xl))var(--_lr-light-on,var(--_lr-ld-form-control-height-xl))) * var(--_lr-density-control,1)),var(--_lr-density-target-min,0px)));--lr-theme-icon-button-size:var(--_lr-dense-on,var(--_lr-dark-on,var(--_lr-ll-icon-button-size))var(--_lr-light-on,var(--_lr-ld-icon-button-size)))var(--_lr-dense-off,max(calc((var(--_lr-dark-on,var(--_lr-ll-icon-button-size))var(--_lr-light-on,var(--_lr-ld-icon-button-size))) * var(--_lr-density-control,1)),var(--_lr-density-target-min,0px)))}:root{--_lr-document-tokens:lr27cfcdcfba7b}:root,.lr-light,.lr-dark,[data-lr-theme],[data-lr-theme-scope],[data-lr-mode],[data-lr-look],[data-lr-accent],[data-lr-density],[data-lr-contrast],[data-lr-motion],.lr-token-light,.lr-token-dark,[data-lr-design-token-mode],:where([data-lr-look]) .light,:where([data-lr-look]) .dark{--lr-border-width-medium:var(--lr-theme-border-width-medium,2px);--lr-border-width-thick:var(--lr-theme-border-width-thick,3px);--lr-border-width-thin:var(--lr-theme-border-width-thin,1px);--_lr-glass-original-border:var(--_lr-preference-control-color,var(--lr-theme-color-surface-border,var(--_lr-dark-on,#919191)var(--_lr-light-on,#646464)));--_lr-glass-qualified-border:color-mix(in srgb, var(--_lr-preference-control-color,var(--lr-theme-color-surface-border,var(--_lr-dark-on,#919191)var(--_lr-light-on,#646464))), var(--lr-color-text) var(--_lr-glass-border-weight));--lr-color-border:var(--_lr-glass-qualified-border,var(--_lr-preference-control-color,var(--lr-theme-color-surface-border,var(--_lr-dark-on,#919191)var(--_lr-light-on,#646464))));--_lr-glass-original-border-strong:var(--_lr-preference-control-color,var(--lr-theme-color-border-strong,var(--_lr-dark-on,#919191)var(--_lr-light-on,#646464)));--_lr-glass-qualified-border-strong:color-mix(in srgb, var(--_lr-preference-control-color,var(--lr-theme-color-border-strong,var(--_lr-dark-on,#919191)var(--_lr-light-on,#646464))), var(--lr-color-text) var(--_lr-glass-border-weight));--lr-color-border-strong:var(--_lr-glass-qualified-border-strong,var(--_lr-preference-control-color,var(--lr-theme-color-border-strong,var(--_lr-dark-on,#919191)var(--_lr-light-on,#646464))));--lr-color-border-subtle:var(--_lr-preference-control-color,var(--lr-theme-color-surface-border-subtle,color-mix(in srgb, var(--_lr-dark-on,#e5e5e5)var(--_lr-light-on,#ffffff1a) var(--_lr-subtle-mix,100%), var(--lr-color-border))));--lr-color-brand:var(--lr-color-brand-fill-loud);--lr-color-brand-border-loud:var(--lr-theme-color-brand-border-loud,rgb(var(--_lr-dark-on,21 85 62)var(--_lr-light-on,93 220 173)));--lr-color-brand-border-normal:var(--lr-theme-color-brand-border-normal,rgb(var(--_lr-dark-on,65 134 109)var(--_lr-light-on,46 170 125)));--lr-color-brand-border-quiet:var(--lr-theme-color-brand-border-quiet,rgb(var(--_lr-dark-on,178 238 216)var(--_lr-light-on,38 111 84)));--lr-color-brand-fill-loud:var(--lr-theme-color-brand-fill-loud,rgb(var(--_lr-dark-on,26 106 77)var(--_lr-light-on,52 211 153)));--lr-color-brand-fill-normal:var(--lr-theme-color-brand-fill-normal,rgb(var(--_lr-dark-on,143 231 199)var(--_lr-light-on,42 141 105)));--lr-color-brand-fill-quiet:var(--lr-theme-color-brand-fill-quiet,rgb(var(--_lr-dark-on,227 249 241)var(--_lr-light-on,32 70 56)));--lr-color-brand-on-loud:var(--lr-theme-color-brand-on-loud,rgb(var(--_lr-dark-on,255 255 255)var(--_lr-light-on,0 0 0)));--lr-color-brand-on-normal:var(--lr-theme-color-brand-on-normal,#000);--lr-color-brand-on-quiet:var(--lr-theme-color-brand-on-quiet,rgb(var(--_lr-dark-on,0 0 0)var(--_lr-light-on,255 255 255)));--lr-color-brand-quiet:var(--lr-color-brand-fill-quiet);--lr-color-danger:var(--lr-color-danger-fill-loud);--lr-color-danger-border-loud:var(--lr-theme-color-danger-border-loud,var(--_lr-dark-on,#890415)var(--_lr-light-on,#f86b66));--lr-color-danger-border-normal:var(--lr-theme-color-danger-border-normal,#dc3e41);--lr-color-danger-border-quiet:var(--lr-theme-color-danger-border-quiet,var(--_lr-dark-on,#ffa099)var(--_lr-light-on,#5c010a));--lr-color-danger-fill-loud:var(--lr-theme-color-danger-fill-loud,var(--_lr-dark-on,#d6000a)var(--_lr-light-on,#ff6467));--lr-color-danger-fill-normal:var(--lr-theme-color-danger-fill-normal,var(--_lr-dark-on,#ffa099)var(--_lr-light-on,#bb0320));--lr-color-danger-fill-quiet:var(--lr-theme-color-danger-fill-quiet,var(--_lr-dark-on,#ffe9e6)var(--_lr-light-on,#5c010a));--lr-color-danger-on-loud:var(--lr-theme-color-danger-on-loud,var(--_lr-dark-on,#fff)var(--_lr-light-on,#0a0a0a));--lr-color-danger-on-normal:var(--lr-theme-color-danger-on-normal,var(--_lr-dark-on,#000001)var(--_lr-light-on,#edeef1));--lr-color-danger-on-quiet:var(--lr-theme-color-danger-on-quiet,var(--_lr-dark-on,#000001)var(--_lr-light-on,#edeef1));--lr-color-danger-quiet:var(--lr-color-danger-fill-quiet);--lr-color-mix-active:var(--lr-theme-color-mix-active,22%);--lr-color-mix-hover:var(--lr-theme-color-mix-hover,12%);--lr-color-mix-partner:var(--lr-theme-color-mix-partner,#737373);--lr-color-neutral:var(--lr-color-neutral-fill-loud);--lr-color-neutral-border-loud:var(--lr-theme-color-neutral-border-loud,rgb(var(--_lr-dark-on,21 85 62)var(--_lr-light-on,93 220 173)));--lr-color-neutral-border-normal:var(--lr-theme-color-neutral-border-normal,var(--_lr-dark-on,#737373)var(--_lr-light-on,#a1a1a1));--lr-color-neutral-border-quiet:var(--lr-theme-color-neutral-border-quiet,var(--_lr-dark-on,#e5e5e5)var(--_lr-light-on,#262626));--lr-color-neutral-fill-loud:var(--lr-theme-color-neutral-fill-loud,rgb(var(--_lr-dark-on,26 106 77)var(--_lr-light-on,52 211 153)));--lr-color-neutral-fill-normal:var(--lr-theme-color-neutral-fill-normal,var(--_lr-dark-on,#e5e5e5)var(--_lr-light-on,#404040));--lr-color-neutral-fill-quiet:var(--lr-theme-color-neutral-fill-quiet,var(--_lr-dark-on,#f5f5f5)var(--_lr-light-on,#262626));--lr-color-neutral-on-loud:var(--lr-theme-color-neutral-on-loud,rgb(var(--_lr-dark-on,255 255 255)var(--_lr-light-on,0 0 0)));--lr-color-neutral-on-normal:var(--lr-theme-color-neutral-on-normal,var(--_lr-dark-on,#171717)var(--_lr-light-on,#fafafa));--lr-color-neutral-on-quiet:var(--lr-theme-color-neutral-on-quiet,var(--_lr-dark-on,#171717)var(--_lr-light-on,#fafafa));--lr-color-no-data:var(--lr-theme-color-no-data,#80808040);--lr-color-on-brand:var(--lr-color-brand-on-loud);--lr-color-on-danger:var(--lr-color-danger-on-loud);--lr-color-on-neutral:var(--lr-color-neutral-on-loud);--lr-color-on-strong-overlay:var(--lr-theme-color-on-strong-overlay,#fff);--lr-color-on-success:var(--lr-color-success-on-loud);--lr-color-on-warning:var(--lr-color-warning-on-loud);--lr-color-overlay:var(--lr-theme-color-overlay,rgb(0 0 0/var(--_lr-dark-on,.5)var(--_lr-light-on,.72)));--lr-color-overlay-strong:var(--lr-theme-color-overlay-strong,rgb(0 0 0/var(--_lr-dark-on,.92)var(--_lr-light-on,.95)));--lr-color-shadow:var(--lr-theme-color-shadow,#000);--lr-color-success:var(--lr-color-success-fill-loud);--lr-color-success-border-loud:var(--lr-theme-color-success-border-loud,var(--_lr-dark-on,#00571f)var(--_lr-light-on,#67b374));--lr-color-success-border-normal:var(--lr-theme-color-success-border-normal,#3e9550);--lr-color-success-border-quiet:var(--lr-theme-color-success-border-quiet,var(--_lr-dark-on,#91d09a)var(--_lr-light-on,#013912));--lr-color-success-fill-loud:var(--lr-theme-color-success-fill-loud,var(--_lr-dark-on,#0c7830)var(--_lr-light-on,#67b374));--lr-color-success-fill-normal:var(--lr-theme-color-success-fill-normal,var(--_lr-dark-on,#91d09a)var(--_lr-light-on,#0c7830));--lr-color-success-fill-quiet:var(--lr-theme-color-success-fill-quiet,var(--_lr-dark-on,#d3fbd8)var(--_lr-light-on,#013912));--lr-color-success-on-loud:var(--lr-theme-color-success-on-loud,var(--_lr-dark-on,#edeef1)var(--_lr-light-on,#000001));--lr-color-success-on-normal:var(--lr-theme-color-success-on-normal,var(--_lr-dark-on,#000001)var(--_lr-light-on,#edeef1));--lr-color-success-on-quiet:var(--lr-theme-color-success-on-quiet,var(--_lr-dark-on,#000001)var(--_lr-light-on,#edeef1));--lr-color-success-quiet:var(--lr-color-success-fill-quiet);--lr-color-surface:var(--lr-theme-color-surface-default,var(--_lr-dark-on,#fff)var(--_lr-light-on,#0a0a0a));--lr-color-surface-container:var(--lr-theme-color-surface-container,var(--lr-color-surface-raised));--lr-color-surface-container-high:var(--lr-theme-color-surface-container-high,var(--lr-color-surface-overlay));--lr-color-surface-container-highest:var(--lr-theme-color-surface-container-highest,var(--lr-color-surface-overlay));--lr-color-surface-container-low:var(--lr-theme-color-surface-container-low,var(--lr-color-surface));--lr-color-surface-container-lowest:var(--lr-theme-color-surface-container-lowest,var(--lr-color-surface));--lr-color-surface-overlay:var(--lr-theme-color-surface-overlay,var(--_lr-dark-on,#fff)var(--_lr-light-on,#171717));--lr-color-surface-raised:var(--lr-theme-color-surface-raised,var(--_lr-dark-on,#fafafa)var(--_lr-light-on,#171717));--lr-color-text:var(--lr-theme-color-text-normal,var(--_lr-dark-on,#0a0a0a)var(--_lr-light-on,#fafafa));--_lr-glass-original-text-quiet:var(--_lr-preference-quiet-color,var(--lr-theme-color-text-quiet,var(--_lr-dark-on,#737373)var(--_lr-light-on,#a1a1a1)));--_lr-glass-qualified-text-quiet:color-mix(in srgb, var(--_lr-preference-quiet-color,var(--lr-theme-color-text-quiet,var(--_lr-dark-on,#737373)var(--_lr-light-on,#a1a1a1))), var(--lr-color-text) var(--_lr-glass-foreground-weight));--lr-color-text-quiet:var(--_lr-glass-qualified-text-quiet,var(--_lr-preference-quiet-color,var(--lr-theme-color-text-quiet,var(--_lr-dark-on,#737373)var(--_lr-light-on,#a1a1a1))));--lr-color-warning:var(--lr-color-warning-fill-loud);--lr-color-warning-border-loud:var(--lr-theme-color-warning-border-loud,var(--_lr-dark-on,#624001)var(--_lr-light-on,#c39554));--lr-color-warning-border-normal:var(--lr-theme-color-warning-border-normal,#a77526);--lr-color-warning-border-quiet:var(--lr-theme-color-warning-border-quiet,var(--_lr-dark-on,#ddb781)var(--_lr-light-on,#402801));--lr-color-warning-fill-loud:var(--lr-theme-color-warning-fill-loud,var(--_lr-dark-on,#855905)var(--_lr-light-on,#c39554));--lr-color-warning-fill-normal:var(--lr-theme-color-warning-fill-normal,var(--_lr-dark-on,#ddb781)var(--_lr-light-on,#855905));--lr-color-warning-fill-quiet:var(--lr-theme-color-warning-fill-quiet,var(--_lr-dark-on,#ffebd2)var(--_lr-light-on,#402801));--lr-color-warning-on-loud:var(--lr-theme-color-warning-on-loud,var(--_lr-dark-on,#edeef1)var(--_lr-light-on,#000001));--lr-color-warning-on-normal:var(--lr-theme-color-warning-on-normal,var(--_lr-dark-on,#000001)var(--_lr-light-on,#edeef1));--lr-color-warning-on-quiet:var(--lr-theme-color-warning-on-quiet,var(--_lr-dark-on,#000001)var(--_lr-light-on,#edeef1));--lr-color-warning-quiet:var(--lr-color-warning-fill-quiet);--lr-duration-ambient:var(--_lr-motion-duration,var(--lr-theme-duration-slow,1.8s));--lr-duration-base:var(--_lr-motion-duration,var(--lr-theme-duration-normal,.18s));--lr-duration-fast:var(--_lr-motion-duration,var(--lr-theme-duration-fast,.12s));--lr-duration-icon:var(--_lr-motion-duration,var(--lr-theme-duration-icon,1s));--lr-easing-emphasized:var(--_lr-motion-easing,var(--lr-theme-easing-emphasized,ease-in-out));--lr-easing-linear:var(--lr-theme-easing-linear,linear);--lr-easing-standard:var(--_lr-motion-easing,var(--lr-theme-easing-standard,ease-out));--lr-focus-ring:var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);--_lr-glass-original-focus-ring-color:var(--lr-theme-color-focus,#1f7f5c);--lr-focus-ring-color:var(--_lr-glass-qualified-focus-ring-color,var(--lr-theme-color-focus,#1f7f5c));--lr-focus-ring-offset:var(--lr-theme-focus-ring-offset,0px);--lr-focus-ring-width:max(var(--lr-theme-focus-ring-width,3px), var(--_lr-preference-focus-min,0px));--lr-font:var(--lr-theme-font-family-body,"Geist", "Inter", ui-sans-serif, system-ui, sans-serif);--lr-font-heading:var(--lr-theme-font-family-heading,inherit);--lr-font-mono:var(--lr-theme-font-family-mono,"Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);--lr-font-size-2xl:var(--lr-theme-font-size-2xl,1.75rem);--lr-font-size-2xs:var(--lr-theme-font-size-2xs,.625rem);--lr-font-size-3xl:var(--lr-theme-font-size-3xl,2rem);--lr-font-size-3xs:var(--lr-theme-font-size-3xs,.5rem);--lr-font-size-lg:var(--lr-theme-font-size-lg,1.125rem);--lr-font-size-m:var(--lr-theme-font-size-m,.875rem);--lr-font-size-md-sm:var(--lr-theme-font-size-md-sm,.875rem);--lr-font-size-sm:var(--lr-theme-font-size-sm,.8125rem);--lr-font-size-xl:var(--lr-theme-font-size-xl,1.25rem);--lr-font-size-xs:var(--lr-theme-font-size-xs,.75rem);--lr-font-weight-bold:var(--lr-theme-font-weight-bold,700);--lr-font-weight-medium:var(--lr-theme-font-weight-medium,500);--lr-font-weight-normal:var(--lr-theme-font-weight-normal,400);--lr-font-weight-semibold:var(--lr-theme-font-weight-semibold,600);--lr-hover-brightness:var(--lr-theme-hover-brightness,1.08);--lr-layer-base:var(--lr-theme-z-index-base,0);--lr-layer-content:var(--lr-theme-z-index-content,1);--lr-layer-dropdown:var(--lr-theme-z-index-dropdown,900);--lr-layer-modal:var(--lr-theme-z-index-modal,1000);--lr-layer-popover:var(--lr-theme-z-index-popover,1000);--lr-layer-toast:var(--lr-theme-z-index-toast,9999);--lr-line-break:var(--lr-theme-line-break,inherit);--lr-line-height-1-4:var(--lr-theme-line-height-1-4,1.4);--lr-line-height-compact:var(--lr-theme-line-height-compact,1.25);--lr-line-height-loose:var(--lr-theme-line-height-loose,1.6);--lr-line-height-none:var(--lr-theme-line-height-none,1);--lr-line-height-normal:var(--lr-theme-line-height-normal,1.5);--lr-line-height-snug:var(--lr-theme-line-height-snug,1.3);--lr-mask-opaque:#000;--lr-opacity-disabled:var(--lr-theme-opacity-disabled,.5);--lr-opacity-muted:var(--lr-theme-opacity-muted,.85);--lr-otp-input-segment-size:var(--lr-theme-otp-input-segment-size,2.5em);--lr-popover-viewport-clamp:var(--lr-theme-popover-viewport-clamp,92vw);--lr-radius:var(--lr-theme-border-radius-m,.5rem);--lr-radius-container:var(--lr-theme-border-radius-container,var(--lr-radius));--lr-radius-pill:var(--lr-theme-border-radius-pill,999px);--lr-radius-xs:var(--lr-theme-border-radius-xs,.25rem);--lr-safe-area-bottom:env(safe-area-inset-bottom,0px);--lr-safe-area-top:env(safe-area-inset-top,0px);--lr-scroll-fade-size:var(--lr-theme-scroll-fade-size,2rem);--lr-shadow:var(--lr-shadow-m);--lr-shadow-color:var(--lr-theme-shadow-color,0 0 0);--lr-shadow-l:var(--lr-theme-shadow-l,0 10px 15px -3px var(--_lr-dark-on,rgb(var(--lr-theme-shadow-color,0 0 0) / .1), 0 4px 6px -4px rgb(var(--lr-theme-shadow-color,0 0 0) / .1))var(--_lr-light-on,rgb(var(--lr-theme-shadow-color,0 0 0) / .3), 0 4px 6px -4px rgb(var(--lr-theme-shadow-color,0 0 0) / .3)));--lr-shadow-m:var(--lr-theme-shadow-m,0 4px 6px -1px var(--_lr-dark-on,rgb(var(--lr-theme-shadow-color,0 0 0) / .1), 0 2px 4px -2px rgb(var(--lr-theme-shadow-color,0 0 0) / .1))var(--_lr-light-on,rgb(var(--lr-theme-shadow-color,0 0 0) / .3), 0 2px 4px -2px rgb(var(--lr-theme-shadow-color,0 0 0) / .3)));--lr-shadow-s:var(--lr-theme-shadow-s,0 1px 3px 0 var(--_lr-dark-on,rgb(var(--lr-theme-shadow-color,0 0 0) / .1), 0 1px 2px -1px rgb(var(--lr-theme-shadow-color,0 0 0) / .1))var(--_lr-light-on,rgb(var(--lr-theme-shadow-color,0 0 0) / .3), 0 1px 2px -1px rgb(var(--lr-theme-shadow-color,0 0 0) / .3)));--lr-shadow-xl:var(--lr-theme-shadow-xl,0 20px 25px -5px var(--_lr-dark-on,rgb(var(--lr-theme-shadow-color,0 0 0) / .1), 0 8px 10px -6px rgb(var(--lr-theme-shadow-color,0 0 0) / .1))var(--_lr-light-on,rgb(var(--lr-theme-shadow-color,0 0 0) / .3), 0 8px 10px -6px rgb(var(--lr-theme-shadow-color,0 0 0) / .3)));--lr-shadow-xs:var(--lr-theme-shadow-xs,0 1px 2px 0 rgb(var(--lr-theme-shadow-color,0 0 0) / var(--_lr-dark-on,.05)var(--_lr-light-on,.15)));--lr-size-0-02em:var(--lr-theme-size-0-02em,.02em);--lr-size-0-03em:var(--lr-theme-size-0-03em,.03em);--lr-size-0-04em:var(--lr-theme-size-0-04em,.04em);--lr-size-0-05rem:var(--lr-theme-size-0-05rem,.05rem);--lr-size-0-0625rem:var(--lr-theme-size-0-0625rem,.0625rem);--lr-size-0-09375rem:var(--lr-theme-size-0-09375rem,.09375rem);--lr-size-0-125rem:var(--lr-theme-size-0-125rem,.125rem);--lr-size-0-15rem:var(--lr-theme-size-0-15rem,.15rem);--lr-size-0-1875rem:var(--lr-theme-size-0-1875rem,.1875rem);--lr-size-0-1rem:var(--lr-theme-size-0-1rem,.1rem);--lr-size-0-25rem:var(--lr-theme-size-0-25rem,.25rem);--lr-size-0-3125rem:var(--lr-theme-size-0-3125rem,.3125rem);--lr-size-0-35em:var(--lr-theme-size-0-35em,.35em);--lr-size-0-375rem:var(--lr-theme-size-0-375rem,.375rem);--lr-size-0-3em:var(--lr-theme-size-0-3em,.3em);--lr-size-0-4375rem:var(--lr-theme-size-0-4375rem,.4375rem);--lr-size-0-4em:var(--lr-theme-size-0-4em,.4em);--lr-size-0-4rem:var(--lr-theme-size-0-4rem,.4rem);--lr-size-0-5em:var(--lr-theme-size-0-5em,.5em);--lr-size-0-5rem:var(--lr-theme-size-0-5rem,.5rem);--lr-size-0-625rem:var(--lr-theme-size-0-625rem,.625rem);--lr-size-0-6875rem:var(--lr-theme-size-0-6875rem,.6875rem);--lr-size-0-6rem:var(--lr-theme-size-0-6rem,.6rem);--lr-size-0-75em:var(--lr-theme-size-0-75em,.75em);--lr-size-0-75rem:var(--lr-theme-size-0-75rem,.75rem);--lr-size-0-7em:var(--lr-theme-size-0-7em,.7em);--lr-size-0-875em:var(--lr-theme-size-0-875em,.875em);--lr-size-0-8rem:var(--lr-theme-size-0-8rem,.8rem);--lr-size-0-9375rem:var(--lr-theme-size-0-9375rem,.9375rem);--lr-size-1-0625rem:var(--lr-theme-size-1-0625rem,1.0625rem);--lr-size-1-1rem:var(--lr-theme-size-1-1rem,1.1rem);--lr-size-1-25rem:var(--lr-theme-size-1-25rem,1.25rem);--lr-size-1-5em:var(--lr-theme-size-1-5em,1.5em);--lr-size-1-5rem:var(--lr-theme-size-1-5rem,1.5rem);--lr-size-1-75rem:var(--lr-theme-size-1-75rem,1.75rem);--lr-size-10px:var(--lr-theme-size-10px,10px);--lr-size-10rem:var(--lr-theme-size-10rem,10rem);--lr-size-12em:var(--lr-theme-size-12em,12em);--lr-size-12rem:var(--lr-theme-size-12rem,12rem);--lr-size-14px:var(--lr-theme-size-14px,14px);--lr-size-14rem:var(--lr-theme-size-14rem,14rem);--lr-size-15rem:var(--lr-theme-size-15rem,15rem);--lr-size-16px:var(--lr-theme-size-16px,16px);--lr-size-16rem:var(--lr-theme-size-16rem,16rem);--lr-size-18rem:var(--lr-theme-size-18rem,18rem);--lr-size-1em:var(--lr-theme-size-1em,1em);--lr-size-1px:var(--lr-theme-size-1px,1px);--lr-size-1rem:var(--lr-theme-size-1rem,1rem);--lr-size-2-25rem:var(--lr-theme-size-2-25rem,2.25rem);--lr-size-2-5ch:var(--lr-theme-size-2-5ch,2.5ch);--lr-size-2-5rem:var(--lr-theme-size-2-5rem,2.5rem);--lr-size-20rem:var(--lr-theme-size-20rem,20rem);--lr-size-22rem:var(--lr-theme-size-22rem,22rem);--lr-size-24px:var(--lr-theme-size-24px,24px);--lr-size-24rem:var(--lr-theme-size-24rem,24rem);--lr-size-280px:var(--lr-theme-size-280px,280px);--lr-size-28px:var(--lr-theme-size-28px,28px);--lr-size-28rem:var(--lr-theme-size-28rem,28rem);--lr-size-2px:var(--lr-theme-size-2px,2px);--lr-size-2rem:var(--lr-theme-size-2rem,2rem);--lr-size-3-5em:var(--lr-theme-size-3-5em,3.5em);--lr-size-3-5rem:var(--lr-theme-size-3-5rem,3.5rem);--lr-size-30rem:var(--lr-theme-size-30rem,30rem);--lr-size-32rem:var(--lr-theme-size-32rem,32rem);--lr-size-36rem:var(--lr-theme-size-36rem,36rem);--lr-size-38rem:var(--lr-theme-size-38rem,38rem);--lr-size-3ch:var(--lr-theme-size-3ch,3ch);--lr-size-3px:var(--lr-theme-size-3px,3px);--lr-size-3rem:var(--lr-theme-size-3rem,3rem);--lr-size-48rem:var(--lr-theme-size-48rem,48rem);--lr-size-4ch:var(--lr-theme-size-4ch,4ch);--lr-size-4px:var(--lr-theme-size-4px,4px);--lr-size-4rem:var(--lr-theme-size-4rem,4rem);--lr-size-5em:var(--lr-theme-size-5em,5em);--lr-size-5rem:var(--lr-theme-size-5rem,5rem);--lr-size-6ch:var(--lr-theme-size-6ch,6ch);--lr-size-6em:var(--lr-theme-size-6em,6em);--lr-size-6px:var(--lr-theme-size-6px,6px);--lr-size-6rem:var(--lr-theme-size-6rem,6rem);--lr-size-7rem:var(--lr-theme-size-7rem,7rem);--lr-size-8em:var(--lr-theme-size-8em,8em);--lr-size-8rem:var(--lr-theme-size-8rem,8rem);--lr-size-neg-0-15rem:var(--lr-theme-size-neg-0-15rem,-.15rem);--lr-size-neg-0-25rem:var(--lr-theme-size-neg-0-25rem,-.25rem);--lr-size-neg-1px:var(--lr-theme-size-neg-1px,-1px);--lr-size-neg-4px:var(--lr-theme-size-neg-4px,-4px);--lr-size-neg-6px:var(--lr-theme-size-neg-6px,-6px);--lr-size-neg-8px:var(--lr-theme-size-neg-8px,-8px);--lr-space-2xl:var(--lr-theme-space-2xl,2rem);--lr-space-2xs:var(--lr-theme-space-2xs,.125rem);--lr-space-l:var(--lr-theme-space-l,1rem);--lr-space-m:var(--lr-theme-space-m,.75rem);--lr-space-s:var(--lr-theme-space-s,.5rem);--lr-space-xs:var(--lr-theme-space-xs,.25rem);--lr-table-row-min-height:var(--lr-theme-table-row-height,0px);--lr-transition-ambient:var(--_lr-motion-transition,var(--lr-theme-transition-slow,1.8s ease-in-out));--lr-transition-base:var(--_lr-motion-transition,var(--lr-theme-transition-normal,.18s ease-out));--lr-transition-fast:var(--_lr-motion-transition,var(--lr-theme-transition-fast,.12s ease-out));--lr-transition-interactive:background-color var(--lr-transition-fast), color var(--lr-transition-fast), border-color var(--lr-transition-fast);--lr-word-break:var(--lr-theme-word-break,inherit);--_lr-glass-brand-text:color-mix(in srgb, var(--lr-color-brand), var(--lr-color-text) var(--_lr-glass-foreground-weight));--_lr-glass-danger-text:color-mix(in srgb, var(--lr-color-danger), var(--lr-color-text) var(--_lr-glass-foreground-weight))}@media (prefers-contrast:more){:root,.lr-light,.lr-dark,[data-lr-theme],[data-lr-theme-scope],[data-lr-mode],[data-lr-look],[data-lr-accent],[data-lr-density],[data-lr-contrast],[data-lr-motion],.lr-token-light,.lr-token-dark,[data-lr-design-token-mode],:where([data-lr-look]) .light,:where([data-lr-look]) .dark{--_lr-preference-quiet-color:currentColor;--_lr-preference-control-color:currentColor;--_lr-preference-focus-min:3px}}@media (forced-colors:active){:root,.lr-light,.lr-dark,[data-lr-theme],[data-lr-theme-scope],[data-lr-mode],[data-lr-look],[data-lr-accent],[data-lr-density],[data-lr-contrast],[data-lr-motion],.lr-token-light,.lr-token-dark,[data-lr-design-token-mode],:where([data-lr-look]) .light,:where([data-lr-look]) .dark{--lr-color-border:ButtonText;--lr-color-border-subtle:ButtonText;--lr-color-brand:LinkText;--lr-color-brand-quiet:Canvas;--lr-color-danger:LinkText;--lr-color-danger-quiet:Canvas;--lr-color-neutral:ButtonText;--lr-color-on-brand:Canvas;--lr-color-on-danger:Canvas;--lr-color-on-neutral:Canvas;--lr-color-on-strong-overlay:CanvasText;--lr-color-on-success:Canvas;--lr-color-on-warning:Canvas;--lr-color-success:LinkText;--lr-color-success-quiet:Canvas;--lr-color-surface:Canvas;--lr-color-surface-container:Canvas;--lr-color-surface-container-high:Canvas;--lr-color-surface-container-highest:Canvas;--lr-color-surface-container-low:Canvas;--lr-color-surface-container-lowest:Canvas;--lr-color-surface-raised:Canvas;--lr-color-text:CanvasText;--lr-color-text-quiet:CanvasText;--lr-color-warning:CanvasText;--lr-color-warning-quiet:Canvas;--lr-focus-ring-color:Highlight}}@media (prefers-reduced-motion:reduce){:root,.lr-light,.lr-dark,[data-lr-theme],[data-lr-theme-scope],[data-lr-mode],[data-lr-look],[data-lr-accent],[data-lr-density],[data-lr-contrast],[data-lr-motion],.lr-token-light,.lr-token-dark,[data-lr-design-token-mode],:where([data-lr-look]) .light,:where([data-lr-look]) .dark{--lr-duration-ambient:.001ms;--lr-duration-base:.001ms;--lr-duration-fast:.001ms;--lr-duration-icon:.001ms;--lr-easing-emphasized:linear;--lr-easing-standard:linear;--lr-transition-ambient:.001ms linear;--lr-transition-base:.001ms linear;--lr-transition-fast:.001ms linear}}}@layer lr-theme-preset,lr-utilities,lr-overrides;@layer lr-theme-preset.look{[data-lr-look=lyra]{--_lr-look-installed:lyra-1}}@layer lr-theme-preset.density;@layer lr-theme-preset.surface{:root{--lr-theme-surface-opacity:.6}:root,:host{--_lr-media-clear-scrim-start:.78;--_lr-media-clear-scrim-end:.92;--_lr-media-clear-fill:#ffffff14;--_lr-media-clear-text:#fff;--_lr-glass-dark-anchor:#000}:root:not([data-lr-surface]),[data-lr-surface=solid]{--_lr-surface-installed:1;--_lr-surface-enabled:0;--_lr-surface-root-filter:none;--_lr-glass-blocker:none;--_lr-surface-maximum-blur:initial;--_lr-surface-content:none;--_lr-surface-isolation:auto;--_lr-surface-child-filter:initial;--_lr-surface-child-opacity:0;--_lr-glass-parent-opacity:0;--_lr-next-glass-opacity:0}}@layer lr-theme-preset.accent;@layer lr-theme-preset.mode{:where(:root),[data-lr-mode=light],[data-lr-mode=system]{color-scheme:light;--_lr-dark-on:initial;--_lr-light-on: }@media (prefers-color-scheme:dark){:where(:root:not([data-lr-mode]):not([data-lr-theme]):not(.lr-light):not(.lr-dark)),[data-lr-mode=system]{color-scheme:dark;--_lr-dark-on: ;--_lr-light-on:initial}}[data-lr-mode=dark]{color-scheme:dark;--_lr-dark-on: ;--_lr-light-on:initial}.lr-light,[data-lr-theme=light]{color-scheme:light;--_lr-dark-on:initial;--_lr-light-on: }.lr-dark,[data-lr-theme=dark]{color-scheme:dark;--_lr-dark-on: ;--_lr-light-on:initial}}
@@ -1 +1 @@
1
- const SCOPED_LYRA_DEFINITION=Symbol.for("@aceshooting/lyra-ui.scoped-definition.v1");function nativeRegistry(){return new CustomElementRegistry}function supportsScopedRegistries(){if(typeof document>"u"||typeof CustomElementRegistry>"u"||typeof ShadowRoot>"u"||!("customElementRegistry"in ShadowRoot.prototype))return!1;try{return typeof nativeRegistry().initialize=="function"}catch{return!1}}function createScopedRegistry(definitions,options={}){if(!supportsScopedRegistries())throw new Error("Scoped custom element registries are not supported by this environment.");const owner=options.document??document,registry=nativeRegistry(),scopeDocument=owner.implementation.createHTMLDocument("");registry.initialize(scopeDocument);const sources=new Map,creationScope=Object.freeze({importNode(node,deep=!1){const elements=[];node.nodeType===1&&elements.push(node),deep&&"querySelectorAll"in node&&elements.push(...node.querySelectorAll("*"));for(const element of elements)if(element.localName.includes("-")&&!registry.get(element.localName))throw new Error(`Missing scoped definition for ${element.localName}. Include its class in this registry.`);return scopeDocument.importNode(node,deep)}});function define(name,Base){const existing=sources.get(name);if(existing===Base)return;if(existing||registry.get(name))throw new Error(`A different scoped definition already exists for ${name}.`);if(typeof Base!="function"||!Base.prototype||typeof Base.prototype.requestUpdate!="function")throw new TypeError("Scoped definitions must be custom element classes.");class ScopedElement extends Base{constructor(){super();const host=this;if(!host.renderOptions)throw new TypeError("Scoped definitions must extend LyraElement.");host.renderOptions.creationScope=creationScope}attachShadow(init){if(this.ownerDocument!==owner)throw new Error("Create a scoped registry for the target document before constructing its elements.");const scoped={...init,customElementRegistry:registry};return super.attachShadow(scoped)}}Object.defineProperty(ScopedElement,SCOPED_LYRA_DEFINITION,{value:!0}),registry.define(name,ScopedElement),sources.set(name,Base)}for(const[name,Base]of Object.entries(definitions))define(name,Base);return Object.freeze({registry,creationScope,define,createElement(name){if(!registry.get(name))throw new Error(`Missing scoped definition for ${name}.`);const scoped={customElementRegistry:registry};return owner.createElement(name,scoped)},attachShadow(host,init={mode:"open"}){if(host.ownerDocument!==owner)throw new Error("Create a scoped registry for the target document before attaching its shadow root.");const scoped={...init,customElementRegistry:registry};return host.attachShadow(scoped)}})}export{createScopedRegistry,supportsScopedRegistries};
1
+ const SCOPED_LYRA_DEFINITION=Symbol.for("@aceshooting/lyra-ui.scoped-definition.v1");function nativeRegistry(){return new CustomElementRegistry}function supportsScopedRegistries(){if(typeof document>"u"||typeof CustomElementRegistry>"u"||typeof ShadowRoot>"u"||!("customElementRegistry"in ShadowRoot.prototype))return!1;try{return typeof nativeRegistry().initialize=="function"}catch{return!1}}function createScopedRegistry(definitions,options={}){if(!supportsScopedRegistries())throw new Error("Scoped custom element registries are not supported by this environment.");const owner=options.document??document,registry=nativeRegistry(),scopeDocument=owner.implementation.createHTMLDocument("");registry.initialize(scopeDocument);let detachedDocument;const sources=new Map,creationScope=Object.freeze({importNode(node,deep=!1){const elements=[];node.nodeType===1&&elements.push(node),deep&&"querySelectorAll"in node&&elements.push(...node.querySelectorAll("*"));for(const element of elements)if(element.localName.includes("-")&&!registry.get(element.localName))throw new Error(`Missing scoped definition for ${element.localName}. Include its class in this registry.`);return scopeDocument.importNode(node,deep)}});function define(name,Base){const existing=sources.get(name);if(existing===Base)return;if(existing||registry.get(name))throw new Error(`A different scoped definition already exists for ${name}.`);if(typeof Base!="function"||!Base.prototype||typeof Base.prototype.requestUpdate!="function")throw new TypeError("Scoped definitions must be custom element classes.");class ScopedElement extends Base{constructor(){super();const host=this;if(!host.renderOptions)throw new TypeError("Scoped definitions must extend LyraElement.");host.renderOptions.creationScope=creationScope}attachShadow(init){if(this.ownerDocument!==owner)throw new Error("Create a scoped registry for the target document before constructing its elements.");const scoped={...init,customElementRegistry:registry};return super.attachShadow(scoped)}}Object.defineProperty(ScopedElement,SCOPED_LYRA_DEFINITION,{value:!0}),registry.define(name,ScopedElement),sources.set(name,Base)}for(const[name,Base]of Object.entries(definitions))define(name,Base);return Object.freeze({registry,creationScope,define,createElement(name){const Definition=registry.get(name);if(!Definition)throw new Error(`Missing scoped definition for ${name}.`);detachedDocument??=owner.implementation.createHTMLDocument("");const element=detachedDocument.createElement(name);if(registry.initialize(element),owner.adoptNode(element),registry.upgrade(element),!(element instanceof Definition))throw new Error(`The scoped definition for ${name} failed to construct.`);return element},attachShadow(host,init={mode:"open"}){if(host.ownerDocument!==owner)throw new Error("Create a scoped registry for the target document before attaching its shadow root.");const scoped={...init,customElementRegistry:registry};return host.attachShadow(scoped)}})}export{createScopedRegistry,supportsScopedRegistries};
package/llms/peers.md CHANGED
@@ -40,7 +40,7 @@ for the page.
40
40
  | `@aceshooting/lyra-3d` | `^1.2.0` | `lr-chart-3d`, `lr-embedding-explorer`, `lr-graph`, `lr-image-viewer`, `lr-knowledge-graph-explorer`, `lr-model-viewer`, `lr-video` |
41
41
  | `@aceshooting/lyra-flags` | `^2.3.1` | _(loaded by a shared internal module)_ |
42
42
  | `@aceshooting/lyra-map` | `^1.5.0` | `lr-geojson-viewer`, `lr-map` |
43
- | `@aceshooting/lyra-translations` | `^30.8.0` | _(not referenced by any component)_ |
43
+ | `@aceshooting/lyra-translations` | `^30.9.0` | _(not referenced by any component)_ |
44
44
  | `@aiden0z/pptx-renderer` | `^1.4.0` | `lr-pptx-viewer` |
45
45
  | `@sgratzl/chartjs-chart-boxplot` | `^4.0.0` | `lr-box-plot` |
46
46
  | `chart.js` | `^4.0.1` | `lr-bar-chart`, `lr-box-plot`, `lr-bubble-chart`, `lr-chart`, `lr-doughnut-chart`, `lr-histogram`, `lr-line-chart`, `lr-pie-chart`, `lr-polar-area-chart`, `lr-radar-chart`, `lr-scatter-chart` |
@@ -216,6 +216,40 @@ component section instead of assuming every peer user renders an `<lr-skeleton>`
216
216
  degraded state. `lr-phone-input` is the exception to dynamic peer import: it takes a consumer-built
217
217
  adapter (`loadLibphonenumberAdapter()`) rather than importing `libphonenumber-js` itself.
218
218
 
219
+ ### Bundling without an optional peer
220
+
221
+ A peer you do not install needs no bundler configuration: published peer imports build without it.
222
+ Using a component that needs a missing peer then shows that component's documented failure state at
223
+ run time, so sanitized content stays unrendered rather than falling back to raw markup.
224
+
225
+ | Toolchain | Missing peer at build time |
226
+ |---|---|
227
+ | esbuild, Angular `application` builder, Vite, Bun, Next.js | Builds. |
228
+ | webpack, Rspack, Rollup | Builds, with an unresolved-module warning for each peer. |
229
+ | Parcel | Fails. Alias the peer to nothing, as below. |
230
+
231
+ For Parcel, list each peer it reports, and its subpaths, in the application's `package.json`:
232
+
233
+ ```json
234
+ {
235
+ "alias": {
236
+ "dompurify": false,
237
+ "maplibre-gl": false,
238
+ "@aceshooting/lyra-map": false,
239
+ "@aceshooting/lyra-map/*": false
240
+ }
241
+ }
242
+ ```
243
+
244
+ To silence the webpack or Rspack warnings, ignore the peers:
245
+
246
+ ```js
247
+ new webpack.IgnorePlugin({ resourceRegExp: /^(dompurify|maplibre-gl|@aceshooting\/lyra-map)(\/|$)/ });
248
+ ```
249
+
250
+ A bundler that resolves a peer you did install still places it in its own lazy chunk, so installing
251
+ one does not grow the initial bundle.
252
+
219
253
  ### Experimental DOCX editing companion
220
254
 
221
255
  Use `@aceshooting/lyra-docs` for editing; `lr-docx-viewer` remains a viewer in Lyra UI.
@@ -173,6 +173,8 @@ The entry points, then:
173
173
  `import '@aceshooting/lyra-ui/components/media/flag/flag-peer.js';` once.
174
174
  - **Other subpaths.** `@aceshooting/lyra-ui/theme.css` (ready-made light/dark theme, including the
175
175
  document token layer),
176
+ `@aceshooting/lyra-ui/theme-core.css` (the same without the built-in Shadcn, Glass and Emerald
177
+ profile, for a single-look application),
176
178
  `@aceshooting/lyra-ui/looks/shadcn.css` (opt-in shadcn/ui look, imported after `theme.css` — see
177
179
  [The shadcn look](./styles-and-tokens.md#the-shadcn-look--looksshadcncss)),
178
180
  `@aceshooting/lyra-ui/tokens-root.css` (the document token layer alone, for pages that do not