Skip to content

AI, fully local on your computer.

41.5 KB
Raw Blame
// Monochrome icons (guidelines §7: calm, low-chroma UI). One consistent style replaces
// the colorful OS emoji that used to sit in the nav rail and the home readiness rows —
// every glyph inherits `currentColor`, so it tracks the theme and the surrounding
// text/accent color instead of injecting its own palette.
//
// Most glyphs are 24-unit-grid, 1.65px round strokes (Feather/Lucide idiom). A glyph may
// instead be a FILLED illustration on its own viewBox (see `brain`) — those set
// `filled: true` and `viewBox`, and the component switches from stroke to currentColor
// fill. Add a new glyph by extending GLYPHS; the `name` union keeps call sites honest. The
// icon is decorative (aria-hidden) unless given a `title`/aria-label.
import type { ReactNode, SVGProps } from 'react'

export type IconName =
  | 'home'
  | 'chat'
  | 'file'
  | 'translate'
  | 'image'
  | 'brain'
  | 'settings'
  | 'lock'
  | 'lock-open'
  | 'refresh'
  | 'puzzle'
  | 'gauge'
  | 'book'
  | 'search'

export interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'name'> {
  name: IconName
  /** Pixel size of the square glyph (defaults to 1em so it scales with font-size). */
  size?: number | string
  /** When set, the glyph carries an accessible name (role="img" + <title>). */
  title?: string
}

interface Glyph {
  /** Inner SVG markup. */
  body: ReactNode
  /** Defaults to the 24-unit line-icon grid. */
  viewBox?: string
  /** Filled with currentColor instead of stroked — for detailed illustration glyphs. */
  filled?: boolean
}

// Filled line-art brain illustration (SVG Repo, public domain), 512 viewBox. A single path
// whose outer + inner boundaries describe the outline; rendered with the EVENODD fill rule
// so the strokes read as line-art (the default nonzero would flood one hemisphere solid).
// Recolored to currentColor so it tracks the accent like the line icons.
const BRAIN_PATHS = [
  'M512,316.391c0-13.751-3.925-26.693-10.699-37.604c-4.458-7.17-10.148-13.466-16.775-18.632c6.379-8.971,10.709-19.616,12.152-31.262c0.359-2.849,0.524-5.69,0.524-8.502c0-17.079-6.37-33.017-17.042-45.178v0.01c-7.721-8.824-17.796-15.7-29.341-19.644c2.436-7.409,3.732-15.13,3.742-22.915v-0.046v-0.01c-0.01-8.199-1.434-16.435-4.375-24.294c-2.933-7.869-7.381-15.36-13.338-22.015c-7.022-7.868-15.461-13.852-24.57-17.841c-8.998-3.944-18.659-5.956-28.348-6.002c-0.01,0-0.12,0-0.285,0v-0.01c-0.027,0.01-0.276-0.009-0.726,0.019c-1.14,0.008-2.279,0.046-3.419,0.101c-3.328-12.042-9.735-22.833-18.31-31.399c-6.444-6.453-14.138-11.674-22.686-15.296c-8.374-3.548-17.593-5.524-27.189-5.607c-0.009,0-0.184,0-0.487-0.01h-0.019h-0.092h-0.01h-0.009h-0.01c-0.008,0-0.018,0-0.018,0c-0.129,0-0.322,0-0.607,0.01c-9.596,0.091-18.797,2.068-27.171,5.607c-8.558,3.621-16.242,8.842-22.695,15.296h0.01c-1.471,1.47-2.868,3.015-4.21,4.604c-1.333-1.59-2.73-3.134-4.201-4.604c-6.444-6.453-14.136-11.674-22.685-15.296c-8.374-3.548-17.584-5.524-27.19-5.607c0,0-0.184,0-0.478-0.01h-0.019h-0.091h-0.019h-0.009c0,0,0,0-0.009,0c-0.01,0-0.01,0-0.019,0c-0.12,0-0.322,0-0.598,0.01c-9.596,0.091-18.806,2.068-27.181,5.607c-8.548,3.621-16.241,8.842-22.685,15.296c-8.576,8.566-14.974,19.348-18.31,31.399c-1.25-0.074-2.5-0.11-3.76-0.11v-0.01c0,0-0.092,0-0.221-0.009c-0.027,0.009-0.248,0-0.662,0.019c-9.615,0.073-19.202,2.077-28.136,5.993c-9.11,3.989-17.548,9.974-24.57,17.851c-6.057,6.765-10.607,14.441-13.623,22.511c-3.023,8.07-4.522,16.555-4.522,25.002c0,0,0,0.138,0,0.358h0.009c0.038,6.95,1.112,13.871,3.153,20.544c-8.42,3.769-15.976,9.1-22.253,15.636v-0.019c-6.196,6.434-11.187,14.018-14.643,22.401c-3.456,8.383-5.35,17.575-5.35,27.125c0,0.846,0.019,1.701,0.046,2.547c0.332,9.458,2.519,18.484,6.186,26.656c1.508,3.355,3.273,6.564,5.258,9.624c-7.455,5.424-13.834,12.244-18.714,20.103C3.925,289.698,0,302.64,0,316.391c0,9.827,2.004,19.248,5.616,27.806c3.622,8.558,8.852,16.242,15.305,22.695h-0.009c6.434,6.426,14.092,11.638,22.612,15.258c3.52,1.489,7.188,2.694,10.975,3.613c-1.406,5.635-2.123,11.389-2.133,17.125h-0.009v0.156v0.008v0.019c0,9.818,2.022,19.625,6.03,28.753c4.007,9.118,10.009,17.566,17.915,24.598c6.765,6.02,14.422,10.552,22.474,13.558c7.924,2.951,16.242,4.44,24.542,4.476c0.129,0.018,0.239,0.018,0.332,0.018c0.018,0,0.037,0,0.054,0h0.019c0,0,0,0,0.009,0h0.184v-0.008c6.489-0.01,12.97-0.929,19.238-2.712c2.299,3.235,4.853,6.278,7.658,9.081v-0.009c6.444,6.462,14.136,11.683,22.685,15.305c8.356,3.53,17.548,5.515,27.117,5.598c0.202,0.009,0.386,0.019,0.68,0.019h0.009c0.009,0,0.009,0,0.009,0c0.212,0,0.312-0.01,0.312-0.01c9.707-0.036,19.018-2.031,27.484-5.607c8.549-3.622,16.242-8.842,22.685-15.296c1.471-1.47,2.868-3.015,4.201-4.614c1.342,1.599,2.739,3.144,4.21,4.614c6.443,6.453,14.137,11.674,22.685,15.296c8.346,3.53,17.538,5.515,27.116,5.598c0.202,0.009,0.386,0.019,0.671,0.019c0,0,0,0,0.008,0c0.01,0,0.01,0,0.01,0c0.009,0,0.009,0,0.009,0c0.202,0,0.303-0.01,0.303-0.01c9.707-0.036,19.028-2.031,27.493-5.607c8.548-3.622,16.242-8.842,22.686-15.305v0.009c2.803-2.803,5.358-5.846,7.657-9.081c6.333,1.792,12.868,2.72,19.431,2.72c0,0,0.009,0,0.019,0c0.037,0,0.045,0,0.073,0c0.174,0,0.276-0.008,0.284-0.008c8.301-0.046,16.628-1.527,24.57-4.496c8.052-2.996,15.709-7.528,22.474-13.548c7.905-7.032,13.907-15.48,17.915-24.598c3.971-9.064,5.993-18.779,6.021-28.523h0.009c0-0.147,0-0.212,0-0.212v-0.037c0-5.8-0.726-11.6-2.141-17.29c3.786-0.919,7.454-2.124,10.975-3.613c8.521-3.621,16.178-8.833,22.612-15.258h-0.009c6.452-6.452,11.683-14.137,15.305-22.695C509.996,335.638,512,326.218,512,316.391z M248.404,249.556c-5.24-1.792-10.681-2.702-16.234-2.702c-5.156,0-10.267,0.781-15.221,2.326l-0.193,0.074c-6.793,2.362-13.412,3.548-19.68,3.548c-11.066,0-20.673-3.667-27.778-10.58c-6.426-6.259-10.102-14.826-10.102-23.512c0.01-7.74,2.85-15.241,8.209-21.675c2.684-3.217,2.252-8.015-0.956-10.699c-1.36-1.14-3.088-1.765-4.872-1.765c-2.251,0-4.384,0.993-5.827,2.721c-7.694,9.201-11.756,20.066-11.747,31.409c0,12.758,5.349,25.296,14.679,34.396c9.836,9.615,23.458,14.91,38.414,14.91c7.904,0,16.159-1.471,24.432-4.33c3.456-1.084,7.032-1.626,10.644-1.626c5.636,0,11.215,1.37,16.234,3.98v65.548h-40.261c-4.192,0-7.592,3.41-7.592,7.602c0,4.182,3.4,7.592,7.592,7.592h40.261v83.564c0,6.269-1.223,12.354-3.539,17.979c-0.027,0.056-0.056,0.092-0.083,0.148c-1.784,4.292-4.191,8.254-7.096,11.783c-0.065,0.092-0.138,0.166-0.202,0.239c-0.423,0.506-0.845,1.002-1.277,1.48c-0.387,0.432-0.791,0.837-1.196,1.25c-0.129,0.138-0.257,0.285-0.395,0.424l-0.01,0.008c-0.091,0.092-0.184,0.166-0.276,0.258c-0.45,0.45-0.919,0.901-1.388,1.324c-0.266,0.239-0.534,0.468-0.8,0.698c-0.303,0.266-0.606,0.534-0.918,0.79c-0.46,0.377-0.929,0.735-1.407,1.103c-0.119,0.092-0.238,0.184-0.358,0.276c-3.016,2.261-6.315,4.154-9.817,5.644c-1.397,0.588-2.822,1.103-4.274,1.562c-0.028,0.01-0.037,0.01-0.056,0.019c-0.634,0.193-1.268,0.377-1.912,0.542c-0.129,0.036-0.248,0.073-0.368,0.1c-0.55,0.148-1.102,0.258-1.654,0.386c-0.221,0.046-0.432,0.102-0.653,0.148c-0.469,0.091-0.947,0.166-1.424,0.257c-0.304,0.046-0.598,0.11-0.91,0.147c-0.422,0.074-0.854,0.111-1.278,0.166c-0.349,0.046-0.708,0.092-1.057,0.129c-0.44,0.046-0.872,0.073-1.314,0.101c-0.349,0.028-0.698,0.065-1.048,0.083c-0.69,0.036-1.388,0.046-2.087,0.046c-0.102,0-0.202,0.009-0.303,0.009c-0.111,0-0.23-0.009-0.35-0.009c-0.68,0-1.36-0.01-2.031-0.046c-0.367-0.018-0.726-0.055-1.094-0.083c-0.413-0.028-0.845-0.055-1.269-0.101c-0.367-0.037-0.726-0.092-1.094-0.129c-0.413-0.054-0.836-0.1-1.25-0.166c-0.312-0.037-0.625-0.101-0.937-0.156c-0.469-0.082-0.928-0.156-1.388-0.248c-0.23-0.046-0.46-0.11-0.69-0.156c-0.542-0.12-1.085-0.239-1.618-0.378c-0.128-0.036-0.266-0.073-0.395-0.11c-0.634-0.166-1.258-0.34-1.875-0.533c-0.036-0.009-0.073-0.019-0.1-0.028c-1.443-0.45-2.859-0.965-4.238-1.553c-3.512-1.489-6.802-3.383-9.826-5.644c-0.128-0.092-0.248-0.202-0.377-0.295c-0.469-0.358-0.928-0.708-1.379-1.084c-0.34-0.285-0.671-0.579-1.011-0.864c-0.23-0.202-0.478-0.405-0.708-0.616c-0.561-0.515-1.121-1.048-1.673-1.591c-0.009-0.018-0.019-0.027-0.028-0.036c-0.79-0.791-1.553-1.617-2.288-2.473c-0.12-0.147-0.248-0.284-0.368-0.432c-2.362-2.812-4.421-5.901-6.095-9.228c-0.027-0.056-0.073-0.12-0.11-0.185c-3.198-6.434-4.908-13.567-4.908-20.957c0-5.626,1.259-11.738,3.558-17.207c2.537-6.04,6.287-11.252,10.846-15.057c1.562-1.296,2.519-3.125,2.702-5.147c0.185-2.023-0.432-3.99-1.728-5.552c-1.443-1.728-3.575-2.72-5.836-2.72c-1.774,0-3.503,0.625-4.863,1.756c-6.425,5.358-11.656,12.574-15.139,20.856c-3.088,7.381-4.724,15.359-4.734,23.072c0,5.57,0.745,11.085,2.206,16.444c-0.81,0.322-1.637,0.634-2.473,0.91c-0.212,0.073-0.441,0.148-0.653,0.212c-0.523,0.166-1.038,0.322-1.562,0.469c-0.33,0.092-0.662,0.184-1.001,0.276c-0.414,0.101-0.828,0.202-1.25,0.294c-0.387,0.102-0.773,0.184-1.158,0.258c-0.377,0.083-0.754,0.147-1.14,0.22c-0.404,0.074-0.808,0.138-1.223,0.202c-0.386,0.056-0.772,0.11-1.158,0.156c-0.386,0.046-0.781,0.1-1.167,0.147c-0.469,0.036-0.929,0.073-1.388,0.102c-0.322,0.027-0.634,0.054-0.956,0.073c-0.781,0.037-1.572,0.064-2.362,0.064c-11.526,0-22.64-4.237-31.262-11.903c-10.038-8.934-15.783-21.767-15.792-35.206c0-0.708,0.01-1.406,0.046-2.104c0.175-4.026,0.883-8.034,2.096-11.932c0.054-0.174,0.1-0.358,0.166-0.542c0.018-0.083,0.055-0.166,0.082-0.239c0.194-0.588,0.396-1.186,0.617-1.774c0.009-0.028,0.018-0.045,0.036-0.074c0.303-0.808,0.634-1.608,0.993-2.417c0.037-0.073,0.074-0.147,0.101-0.22c0.376-0.828,0.772-1.646,1.204-2.473c0.01-0.019,0.019-0.028,0.019-0.028c1.774-3.401,3.962-6.581,6.544-9.486c2.785-3.134,2.5-7.941-0.634-10.726c-1.388-1.242-3.18-1.921-5.038-1.921c-2.169,0-4.246,0.938-5.68,2.556c-0.45,0.496-0.882,1.011-1.314,1.526c-0.69,0.12-1.122,0.184-1.48,0.22c-0.598,0.056-1.361,0.074-3.016,0.074c-0.037,0-0.073,0-0.11,0c-0.008,0-0.018,0-0.027,0c-0.809,0-1.609-0.028-2.409-0.064c-0.045-0.01-0.101-0.01-0.147-0.019c-0.744-0.037-1.48-0.092-2.206-0.174c-0.11,0-0.23-0.028-0.34-0.037c-0.671-0.073-1.333-0.156-1.995-0.258c-0.12-0.018-0.23-0.037-0.34-0.055c-0.671-0.111-1.333-0.221-1.986-0.358c-0.073-0.019-0.138-0.037-0.211-0.056c-0.708-0.147-1.398-0.303-2.087-0.478c-0.01-0.008-0.019-0.008-0.028-0.008c-2.234-0.58-4.403-1.324-6.508-2.216c-3.492-1.48-6.774-3.383-9.78-5.626c-0.129-0.091-0.248-0.193-0.377-0.294c-0.469-0.358-0.928-0.708-1.37-1.084c-0.33-0.267-0.652-0.552-0.974-0.837c-0.248-0.202-0.496-0.422-0.735-0.634c-0.57-0.523-1.13-1.048-1.673-1.59c-0.552-0.552-1.085-1.122-1.608-1.692c-0.111-0.129-0.221-0.258-0.341-0.386c-0.386-0.442-0.772-0.883-1.14-1.324c-0.312-0.386-0.606-0.772-0.909-1.158c-0.156-0.202-0.322-0.404-0.469-0.607c-0.424-0.56-0.819-1.121-1.214-1.7c-0.028-0.046-0.054-0.083-0.082-0.12c-1.692-2.509-3.153-5.184-4.339-7.988c-0.864-2.058-1.59-4.182-2.16-6.37c-0.018-0.073-0.046-0.147-0.064-0.22c-0.156-0.607-0.285-1.214-0.423-1.839c-0.036-0.147-0.074-0.303-0.102-0.469c-0.11-0.542-0.202-1.094-0.294-1.646c-0.037-0.23-0.092-0.45-0.12-0.68c-0.074-0.515-0.138-1.03-0.202-1.544c-0.027-0.276-0.064-0.533-0.092-0.808c-0.054-0.534-0.091-1.066-0.12-1.6c-0.018-0.257-0.054-0.514-0.064-0.772c-0.036-0.781-0.055-1.582-0.055-2.39c0-1.112,0.036-2.224,0.119-3.318c0.046-0.744,0.138-1.48,0.23-2.216c0.038-0.349,0.065-0.689,0.111-1.03c0.128-0.965,0.303-1.921,0.496-2.867c0.028-0.111,0.037-0.221,0.056-0.331c0.22-1.011,0.468-2.022,0.753-3.006c0.01-0.046,0.019-0.102,0.028-0.138c0.284-0.984,0.596-1.948,0.937-2.914c0.027-0.064,0.037-0.12,0.064-0.184c0.322-0.91,0.69-1.792,1.066-2.675c0.056-0.12,0.092-0.239,0.147-0.349c0.368-0.846,0.781-1.673,1.205-2.491c0.074-0.148,0.138-0.304,0.211-0.451c0.506-0.955,1.048-1.893,1.618-2.812c0.561-0.901,1.15-1.784,1.756-2.638c3.034-4.209,6.738-7.895,10.957-10.911c0.083-0.064,0.156-0.128,0.239-0.183c0.147-0.101,0.303-0.193,0.45-0.294c1.599-1.094,3.254-2.106,4.982-2.997l0.019-0.019c0.054-0.027,0.11-0.055,0.156-0.074c0.579-0.303,1.167-0.579,1.746-0.845c0.322-0.147,0.634-0.294,0.966-0.441c0.027,0,0.054-0.028,0.082-0.037c5.902-2.565,12.17-3.879,18.706-3.879c10.672,0,20.719,3.484,29.074,10.074c1.921,2.105,8.089,8.576,17.299,15.093c6.425,4.542,13.026,8.181,19.634,10.801c8.438,3.355,16.896,5.056,25.15,5.056c4.183,0,7.593-3.41,7.593-7.602c0-4.192-3.41-7.593-7.593-7.593c-6.315,0-12.887-1.341-19.551-3.98c-9.634-3.824-17.75-9.734-22.86-14.018c-2.904-2.444-5.166-4.614-6.545-6.002c-0.735-0.753-1.305-1.351-1.682-1.765l-0.477-0.533l-0.267-0.303c-0.12-0.138-0.248-0.267-0.396-0.378l-0.312-0.266c-11.012-8.879-24.873-13.779-39.066-13.779c-4.319,0-8.658,0.46-12.914,1.37c-0.956-0.827-1.848-1.701-2.721-2.592c-0.322-0.313-0.634-0.634-0.947-0.966c-0.266-0.294-0.523-0.588-0.791-0.882c-0.23-0.266-0.477-0.542-0.708-0.818c-0.496-0.58-0.974-1.177-1.434-1.784c-0.092-0.11-0.166-0.22-0.248-0.331c-0.396-0.523-0.781-1.057-1.148-1.599c-0.073-0.101-0.138-0.202-0.212-0.312c-0.376-0.56-0.744-1.121-1.103-1.709c-0.046-0.074-0.092-0.147-0.129-0.221c-0.376-0.616-0.744-1.241-1.084-1.875c-0.027-0.046-0.046-0.083-0.073-0.128c-0.359-0.68-0.708-1.361-1.048-2.05c0,0,0-0.019-0.01-0.027c-2.05-4.293-3.456-8.899-4.137-13.66c-0.008-0.046-0.018-0.092-0.018-0.092c-0.102-0.717-0.166-1.416-0.239-2.104c-0.01-0.12-0.027-0.239-0.037-0.359c-0.056-0.671-0.092-1.342-0.129-2.022c0-0.129-0.018-0.258-0.018-0.387v-0.009c-0.019-0.561-0.028-1.122-0.028-1.683c0-0.781,0.019-1.553,0.056-2.325c0.01-0.258,0.037-0.524,0.056-0.781c0.037-0.506,0.064-1.012,0.11-1.508c0.028-0.312,0.083-0.606,0.11-0.919c0.056-0.46,0.11-0.91,0.174-1.361c0.038-0.294,0.092-0.588,0.138-0.864c0.083-0.468,0.156-0.937,0.248-1.397c0.045-0.248,0.11-0.496,0.165-0.735c0.102-0.506,0.212-1.003,0.331-1.499c0.046-0.183,0.101-0.358,0.147-0.542c0.147-0.552,0.295-1.112,0.46-1.664c0.037-0.101,0.074-0.22,0.11-0.33c0.193-0.617,0.386-1.223,0.606-1.83c0.009-0.046,0.037-0.091,0.046-0.137c0.239-0.662,0.488-1.324,0.763-1.977l0.009-0.018c0.561-1.379,1.195-2.712,1.884-4.026c0,0,0,0,0.01-0.01c0.34-0.652,0.698-1.287,1.066-1.912c0.027-0.055,0.055-0.101,0.083-0.147c0.349-0.579,0.708-1.159,1.075-1.728c0.083-0.119,0.175-0.248,0.258-0.376c0.322-0.478,0.643-0.956,0.984-1.425c0.193-0.276,0.413-0.542,0.616-0.809c0.239-0.312,0.469-0.634,0.717-0.947c0.404-0.506,0.818-1.002,1.241-1.489c0.064-0.073,0.12-0.148,0.175-0.212c0.505-0.57,1.02-1.13,1.544-1.682c0.019-0.01,0.028-0.027,0.036-0.037c0.69-0.708,1.398-1.388,2.124-2.05c0.193-0.174,0.386-0.349,0.588-0.523c1.544-1.361,3.171-2.638,4.891-3.797c0.11-0.064,0.22-0.138,0.33-0.211c1.829-1.213,3.75-2.298,5.754-3.254c0.019-0.009,0.037-0.019,0.046-0.019c3.098-1.47,6.388-2.61,9.817-3.374c0.028-0.009,0.054-0.018,0.083-0.027c2.794-0.616,5.671-0.993,8.585-1.094c0.533-0.028,1.057-0.028,1.682-0.028h0.009c2.427,0,4.863,0.184,7.243,0.552c0.395,0.056,0.781,0.092,1.167,0.092c3.778,0,6.922-2.712,7.51-6.444c0.634-4.136-2.216-8.024-6.352-8.668c-3.162-0.486-6.37-0.735-9.569-0.735c-0.524,0-1.057,0.01-1.581,0.028c-0.34-0.579-0.652-1.177-0.956-1.765c-0.34-0.633-0.662-1.268-0.965-1.912c-0.11-0.239-0.22-0.469-0.322-0.717c-0.313-0.689-0.616-1.37-0.892-2.068c-0.083-0.211-0.166-0.432-0.239-0.643c-0.276-0.717-0.533-1.434-0.772-2.17c-0.074-0.212-0.138-0.441-0.202-0.652c-0.22-0.726-0.432-1.444-0.616-2.17c-0.074-0.266-0.129-0.515-0.193-0.781c-0.156-0.69-0.322-1.379-0.451-2.077c-0.074-0.349-0.12-0.69-0.184-1.03c-0.102-0.625-0.202-1.241-0.285-1.866c-0.064-0.506-0.11-1.012-0.156-1.527c-0.046-0.469-0.101-0.938-0.129-1.415c-0.064-0.984-0.101-1.976-0.101-2.978v-0.019c0-10.856,3.74-21.316,10.562-29.69c0.074-0.101,0.156-0.193,0.238-0.285c0.377-0.459,0.763-0.919,1.168-1.37c0.248-0.276,0.506-0.533,0.753-0.799c0.322-0.349,0.644-0.699,0.975-1.03c8.806-8.861,20.847-13.898,33.422-13.908c0.019,0,0.055,0,0.082,0c0.81,0.01,1.609,0.028,2.418,0.074c0.257,0.018,0.515,0.037,0.763,0.054c0.615,0.046,1.241,0.102,1.857,0.166c0.229,0.027,0.459,0.055,0.698,0.083c0.809,0.1,1.628,0.22,2.436,0.358c0.009,0.008,0.027,0.008,0.046,0.008c0.864,0.156,1.728,0.341,2.592,0.552c7.409,1.765,14.321,5.314,20.148,10.406c1.618,1.838,8.622,9.624,17.695,17.668c6.112,5.404,11.931,9.844,17.299,13.19c3.374,2.096,6.498,3.732,9.54,5.001c3.603,1.498,6.913,2.399,10.12,2.748c0.285,0.037,0.561,0.055,0.846,0.055c3.879,0,7.114-2.905,7.546-6.765c0.221-2.013-0.349-3.998-1.617-5.58c-1.269-1.59-3.08-2.583-5.102-2.803c-1.701-0.184-3.759-0.773-5.966-1.692c-3.806-1.572-8.356-4.284-13.163-7.84c-7.151-5.286-13.88-11.638-18.264-16.04c-2.49-2.501-4.513-4.652-5.763-6.012c-0.68-0.744-1.213-1.333-1.572-1.728l-0.395-0.459l-2.28,2.022l2.17-2.141l-0.193-0.221l-0.257-0.266l-0.231-0.202c-4.641-4.145-9.835-7.556-15.469-10.138c0.386-4.183,1.323-8.208,2.73-12.004c0.046-0.12,0.092-0.23,0.138-0.349c0.193-0.515,0.395-1.02,0.606-1.526c0.083-0.193,0.175-0.386,0.258-0.58c0.184-0.423,0.367-0.846,0.56-1.25c0.12-0.257,0.248-0.496,0.368-0.745c0.175-0.358,0.349-0.708,0.533-1.065c0.148-0.276,0.312-0.552,0.469-0.837c0.166-0.303,0.331-0.616,0.515-0.92c0.175-0.313,0.368-0.606,0.552-0.91c0.166-0.266,0.322-0.542,0.497-0.808c0.211-0.33,0.432-0.652,0.652-0.984c0.156-0.23,0.312-0.46,0.478-0.689c0.248-0.358,0.515-0.717,0.781-1.076c0.138-0.184,0.266-0.367,0.405-0.552c0.321-0.404,0.643-0.809,0.965-1.194c0.11-0.129,0.202-0.258,0.303-0.386c0.395-0.46,0.791-0.901,1.186-1.352c0.056-0.056,0.11-0.12,0.166-0.175c0.459-0.506,0.928-1.002,1.416-1.489c0.552-0.542,1.112-1.075,1.682-1.599c0.166-0.147,0.34-0.285,0.506-0.432c0.395-0.358,0.799-0.708,1.213-1.057c0.386-0.313,0.791-0.625,1.194-0.928c0.185-0.147,0.378-0.303,0.571-0.451c0.551-0.413,1.121-0.808,1.691-1.204c0.046-0.028,0.083-0.064,0.129-0.083c2.5-1.692,5.175-3.152,7.988-4.338c1.351-0.57,2.748-1.085,4.164-1.526c0.064-0.028,0.12-0.046,0.174-0.065c0.607-0.184,1.223-0.358,1.83-0.523c0.147-0.037,0.294-0.074,0.45-0.12c0.524-0.138,1.057-0.248,1.591-0.368c0.238-0.046,0.468-0.11,0.708-0.156c0.459-0.092,0.919-0.166,1.388-0.248c0.312-0.054,0.625-0.12,0.937-0.165c0.414-0.065,0.837-0.102,1.25-0.156c0.368-0.046,0.727-0.102,1.094-0.138c0.424-0.037,0.864-0.064,1.288-0.092c0.358-0.027,0.708-0.064,1.075-0.082c0.69-0.036,1.379-0.046,2.078-0.055c0.102,0,0.202,0,0.304,0c0.119,0,0.23,0,0.349,0.009c0.68,0,1.36,0.01,2.041,0.046c0.367,0.018,0.735,0.055,1.094,0.082c0.423,0.028,0.845,0.056,1.26,0.092c0.376,0.046,0.744,0.092,1.121,0.138c0.405,0.054,0.818,0.091,1.223,0.156c0.322,0.045,0.643,0.11,0.956,0.174c0.46,0.073,0.92,0.147,1.37,0.239c0.238,0.046,0.477,0.11,0.726,0.166c0.524,0.11,1.057,0.23,1.581,0.359c0.147,0.046,0.294,0.083,0.441,0.12c0.616,0.165,1.222,0.34,1.82,0.523c0.064,0.019,0.119,0.037,0.183,0.065c1.416,0.44,2.804,0.955,4.174,1.526c2.803,1.194,5.478,2.647,7.988,4.338c0.028,0.019,0.056,0.036,0.092,0.065c0.579,0.394,1.158,0.799,1.728,1.231c0.184,0.129,0.358,0.276,0.542,0.414c0.405,0.321,0.818,0.634,1.223,0.965c0.396,0.322,0.772,0.662,1.158,1.002c0.184,0.166,0.368,0.312,0.561,0.478c0.561,0.524,1.13,1.057,1.672,1.599c0.552,0.552,1.086,1.122,1.609,1.692c0.221,0.239,0.432,0.497,0.644,0.744c0.285,0.322,0.57,0.644,0.837,0.966c2.905,3.53,5.303,7.5,7.087,11.783c0.027,0.046,0.056,0.092,0.074,0.148c2.326,5.625,3.548,11.71,3.548,17.979V249.556z M487.633,318.781c-0.019,0.258-0.046,0.515-0.065,0.763c-0.027,0.542-0.064,1.075-0.119,1.609c-0.028,0.266-0.064,0.523-0.092,0.79c-0.065,0.514-0.12,1.048-0.202,1.562c-0.027,0.22-0.073,0.441-0.11,0.662c-0.092,0.552-0.193,1.121-0.304,1.672c-0.027,0.147-0.064,0.295-0.101,0.442c-0.129,0.625-0.266,1.25-0.432,1.866c-0.009,0.056-0.027,0.12-0.046,0.175c-0.57,2.206-1.296,4.338-2.169,6.406c-1.489,3.502-3.392,6.802-5.645,9.817c-0.1,0.138-0.22,0.285-0.33,0.432c-0.34,0.442-0.69,0.892-1.048,1.324c-0.294,0.368-0.607,0.717-0.92,1.076c-0.183,0.212-0.368,0.432-0.561,0.644c-0.515,0.57-1.048,1.13-1.59,1.672l-0.01,0.01c-0.083,0.073-0.166,0.147-0.248,0.23c-0.459,0.459-0.938,0.919-1.415,1.351c-0.248,0.221-0.506,0.441-0.754,0.653c-0.312,0.284-0.634,0.56-0.966,0.836c-0.44,0.358-0.892,0.708-1.341,1.057c-0.138,0.102-0.276,0.212-0.414,0.322c-0.588,0.432-1.186,0.864-1.792,1.278c-0.01,0-0.01,0.009-0.019,0.009c-2.491,1.683-5.156,3.144-7.96,4.339c-2.087,0.882-4.246,1.618-6.48,2.197c-0.019,0.009-0.038,0.009-0.055,0.018c-0.69,0.175-1.379,0.332-2.068,0.478c-0.074,0.019-0.156,0.037-0.23,0.056c-0.653,0.137-1.324,0.248-1.986,0.358c-0.11,0.018-0.22,0.037-0.33,0.055c-0.662,0.102-1.333,0.184-2.004,0.258c-0.111,0.009-0.221,0.037-0.341,0.037c-0.726,0.083-1.461,0.138-2.197,0.174c-0.055,0.009-0.11,0.009-0.156,0.019c-0.799,0.036-1.599,0.064-2.408,0.064c-0.01,0-0.01,0-0.019,0c-0.046,0-0.083,0-0.12,0c-0.818,0-1.424,0-1.866-0.018c-0.57-0.01-0.827-0.037-1.242-0.102c-0.358-0.055-0.818-0.138-1.461-0.257c-0.405-0.488-0.818-0.966-1.242-1.443c-1.434-1.618-3.511-2.556-5.68-2.556c-1.856,0-3.649,0.68-5.037,1.921c-3.134,2.785-3.419,7.592-0.634,10.726c2.583,2.905,4.761,6.076,6.535,9.459c0.01,0.019,0.019,0.037,0.027,0.056c0.432,0.827,0.828,1.654,1.205,2.481c0.037,0.065,0.064,0.138,0.092,0.202c0.368,0.818,0.708,1.645,1.02,2.463c0.01,0.009,0.01,0.028,0.019,0.037c0.055,0.166,0.11,0.322,0.166,0.488c0.184,0.505,0.376,1.02,0.542,1.535v0.01c1.535,4.724,2.298,9.652,2.298,14.559c-0.008,12.593-5.065,24.654-13.944,33.468c-0.598,0.588-1.213,1.167-1.848,1.738c-0.542,0.478-1.094,0.947-1.655,1.406c-8.365,6.774-18.798,10.497-29.607,10.497c-0.791,0-1.572-0.027-2.362-0.064c-0.313-0.019-0.625-0.046-0.938-0.065c-0.469-0.037-0.938-0.064-1.416-0.11c-0.377-0.046-0.745-0.101-1.121-0.138c-0.405-0.056-0.818-0.11-1.223-0.166c-0.386-0.064-0.772-0.129-1.158-0.202c-0.405-0.074-0.81-0.147-1.205-0.22c-0.367-0.083-0.735-0.156-1.094-0.239c-0.45-0.11-0.901-0.212-1.351-0.332c-0.304-0.083-0.607-0.164-0.901-0.247c-0.57-0.156-1.14-0.332-1.701-0.506c-0.175-0.065-0.349-0.111-0.524-0.175c-0.836-0.276-1.672-0.588-2.5-0.92c1.462-5.358,2.206-10.873,2.206-16.444c-0.01-6.048-1.048-12.428-3.015-18.449c-3.364-10.267-9.192-19.082-16.858-25.48c-4.376-3.649-9.312-6.48-14.68-8.411c-5.736-2.058-12.005-3.106-18.623-3.106c-4.192,0-7.602,3.401-7.602,7.592c0,4.191,3.41,7.592,7.592,7.592c6.37,0.009,12.142,1.288,17.18,3.806c6.526,3.272,11.94,8.751,15.663,15.866c3.282,6.25,5.156,13.751,5.147,20.59c0,7.39-1.709,14.522-4.908,20.957c-0.037,0.056-0.074,0.129-0.11,0.185c-1.673,3.327-3.732,6.425-6.094,9.237c-0.12,0.138-0.239,0.276-0.368,0.414c-0.735,0.864-1.508,1.709-2.307,2.509c-0.01,0-0.01,0-0.01,0v0.008c-0.092,0.092-0.184,0.166-0.276,0.258c-0.46,0.45-0.919,0.901-1.397,1.324c-0.258,0.239-0.534,0.468-0.8,0.698c-0.303,0.266-0.598,0.534-0.91,0.79c-0.469,0.377-0.938,0.735-1.406,1.103c-0.12,0.092-0.239,0.184-0.358,0.276c-3.024,2.261-6.315,4.154-9.826,5.644c-1.398,0.588-2.822,1.103-4.274,1.562c-0.019,0.01-0.037,0.01-0.056,0.019c-0.625,0.193-1.268,0.377-1.912,0.542c-0.12,0.036-0.239,0.073-0.359,0.1c-0.552,0.148-1.103,0.258-1.655,0.386c-0.22,0.046-0.44,0.102-0.652,0.148c-0.478,0.091-0.956,0.166-1.425,0.257c-0.303,0.046-0.606,0.11-0.909,0.147c-0.424,0.074-0.846,0.111-1.278,0.166c-0.358,0.046-0.708,0.092-1.066,0.129c-0.432,0.046-0.864,0.073-1.304,0.101c-0.35,0.028-0.7,0.065-1.057,0.083c-0.69,0.036-1.379,0.046-2.078,0.046c-0.1,0-0.201,0.009-0.303,0.009c-0.12,0-0.23-0.009-0.349-0.009c-0.681,0-1.37-0.01-2.041-0.046c-0.358-0.018-0.726-0.055-1.084-0.083c-0.422-0.028-0.846-0.055-1.269-0.101c-0.367-0.037-0.735-0.092-1.094-0.129c-0.423-0.054-0.837-0.1-1.25-0.166c-0.312-0.037-0.625-0.101-0.938-0.156c-0.468-0.082-0.929-0.156-1.398-0.248c-0.23-0.046-0.45-0.11-0.68-0.156c-0.542-0.12-1.085-0.239-1.618-0.378c-0.138-0.036-0.266-0.073-0.395-0.11c-0.634-0.166-1.269-0.34-1.884-0.533c-0.028-0.009-0.064-0.019-0.092-0.028c-1.452-0.45-2.859-0.965-4.247-1.553c-3.502-1.489-6.802-3.383-9.817-5.644c-0.129-0.092-0.257-0.202-0.386-0.295c-0.459-0.358-0.928-0.708-1.379-1.084c-0.34-0.285-0.671-0.579-1.002-0.864c-0.23-0.202-0.478-0.405-0.708-0.616c-0.571-0.515-1.131-1.048-1.674-1.591c-0.552-0.552-1.084-1.112-1.609-1.69c-0.303-0.331-0.597-0.69-0.891-1.03c-0.193-0.23-0.396-0.46-0.588-0.681c-2.905-3.53-5.304-7.501-7.087-11.783c-0.027-0.056-0.056-0.092-0.083-0.148c-2.316-5.625-3.539-11.71-3.539-17.979V242.084c9.716,0.367,18.2,1.489,25.232,3.327c6.737,1.746,12.188,4.118,16.646,7.225c3.346,2.334,6.058,5.037,8.319,8.282c3.254,4.66,5.57,10.488,7.501,18.889c0.644,2.776,1.196,5.57,1.774,8.53c0.542,2.74,1.103,5.589,1.736,8.392c1.214,5.34,2.446,9.367,3.99,13.08c1.47,3.548,3.171,6.637,5.212,9.422c3.474,4.789,7.97,8.668,13.365,11.536c5.754,3.07,12.51,5.073,20.663,6.121c0.331,0.046,0.653,0.074,0.984,0.074c3.796,0,7.032-2.85,7.519-6.637c0.267-2.004-0.276-4.008-1.516-5.607c-1.24-1.609-3.034-2.629-5.038-2.896c-7.298-0.938-12.97-2.767-17.335-5.562c-3.172-2.041-5.589-4.522-7.593-7.812c-1.563-2.574-2.868-5.682-3.998-9.524c-1.213-4.072-2.105-8.585-3.042-13.365c-0.543-2.749-1.103-5.598-1.756-8.475c-1.148-5.073-2.876-11.738-6.084-18.228c-2.436-4.908-5.516-9.266-9.174-12.952c-6.186-6.259-14.459-11.012-24.579-14.136c-9.174-2.822-19.928-4.431-32.824-4.872v-54.84h44.057c4.192,0,7.602-3.42,7.602-7.602c0-4.191-3.41-7.601-7.602-7.601h-44.057v-75.19c0-6.269,1.223-12.354,3.539-17.979c0.027-0.056,0.056-0.102,0.083-0.148c1.783-4.284,4.182-8.254,7.087-11.783c0.156-0.185,0.322-0.368,0.478-0.552c0.331-0.386,0.662-0.782,1.011-1.167c0.404-0.451,0.818-0.874,1.24-1.306c0.12-0.12,0.23-0.248,0.359-0.378c0.543-0.55,1.112-1.084,1.682-1.599c0.166-0.147,0.331-0.285,0.497-0.432c0.404-0.358,0.808-0.708,1.213-1.057c0.396-0.313,0.791-0.625,1.194-0.928c0.193-0.147,0.378-0.303,0.57-0.451c0.561-0.413,1.121-0.808,1.701-1.204c0.045-0.028,0.082-0.064,0.119-0.083c2.51-1.692,5.184-3.152,7.988-4.338c1.36-0.57,2.757-1.085,4.172-1.526c0.065-0.028,0.12-0.046,0.185-0.065c0.588-0.184,1.204-0.358,1.819-0.523c0.148-0.037,0.295-0.074,0.442-0.12c0.533-0.138,1.066-0.248,1.599-0.368c0.23-0.046,0.469-0.11,0.698-0.156c0.469-0.092,0.938-0.166,1.398-0.248c0.313-0.054,0.625-0.12,0.938-0.165c0.413-0.065,0.827-0.102,1.25-0.156c0.359-0.046,0.727-0.102,1.094-0.138c0.423-0.037,0.855-0.064,1.287-0.092c0.359-0.027,0.708-0.064,1.066-0.082c0.69-0.036,1.388-0.046,2.087-0.055c0.101,0,0.202,0,0.303,0c0.11,0,0.23,0,0.349,0.009c0.68,0,1.361,0.01,2.032,0.046c0.367,0.018,0.735,0.055,1.102,0.082c0.424,0.028,0.846,0.056,1.259,0.092c0.368,0.046,0.745,0.092,1.122,0.138c0.404,0.054,0.818,0.091,1.213,0.156c0.33,0.045,0.643,0.11,0.965,0.174c0.451,0.073,0.91,0.147,1.36,0.239c0.248,0.046,0.488,0.11,0.726,0.166c0.524,0.11,1.057,0.23,1.581,0.359c0.156,0.046,0.303,0.083,0.45,0.12c0.607,0.165,1.223,0.34,1.82,0.523c0.055,0.019,0.12,0.037,0.174,0.065c1.425,0.44,2.822,0.955,4.173,1.526c2.813,1.194,5.488,2.647,7.997,4.338c0.027,0.019,0.055,0.036,0.083,0.065c0.588,0.394,1.167,0.799,1.738,1.231c0.174,0.129,0.358,0.276,0.532,0.414c0.413,0.321,0.828,0.634,1.223,0.965c0.395,0.322,0.781,0.662,1.167,1.002c0.184,0.166,0.376,0.312,0.552,0.478c0.57,0.524,1.13,1.057,1.682,1.599c0.488,0.488,0.956,0.984,1.425,1.489c0.009,0.009,0.009,0.019,0.018,0.028c0.451,0.486,0.892,0.992,1.315,1.498c0.091,0.11,0.174,0.22,0.257,0.321c0.349,0.414,0.69,0.837,1.02,1.26c0.138,0.184,0.258,0.368,0.395,0.542c0.266,0.359,0.534,0.717,0.791,1.085c0.166,0.23,0.322,0.469,0.478,0.698c0.22,0.322,0.442,0.644,0.652,0.974c0.175,0.266,0.34,0.542,0.506,0.818c0.184,0.294,0.368,0.598,0.542,0.901c0.184,0.304,0.349,0.616,0.524,0.937c0.156,0.268,0.312,0.543,0.46,0.819c0.184,0.358,0.358,0.726,0.542,1.084c0.12,0.239,0.24,0.478,0.359,0.726c0.193,0.414,0.378,0.837,0.561,1.269c0.083,0.183,0.175,0.368,0.257,0.569c0.212,0.497,0.414,1.012,0.616,1.527c0.037,0.12,0.083,0.23,0.129,0.34c1.406,3.796,2.344,7.822,2.73,12.014c-5.634,2.583-10.828,5.984-15.479,10.129c-3.126,2.794-3.392,7.611-0.607,10.737c1.443,1.609,3.502,2.537,5.671,2.537c1.866,0,3.659-0.69,5.056-1.93c5.855-5.231,12.85-8.861,20.36-10.663c1.72-0.405,3.456-0.717,5.194-0.937c0.202-0.028,0.405-0.046,0.607-0.065c0.643-0.082,1.295-0.137,1.948-0.174c0.23-0.019,0.478-0.037,0.717-0.056c0.808-0.037,1.626-0.073,2.444-0.073c0.027,0,0.056,0,0.074,0c12.575,0.009,24.625,5.038,33.422,13.898c0.588,0.588,1.167,1.204,1.738,1.838c0.469,0.532,0.928,1.066,1.369,1.599c0.414,0.515,0.818,1.03,1.204,1.554c0.028,0.036,0.056,0.064,0.083,0.1c0.359,0.488,0.698,0.974,1.039,1.471c0.055,0.082,0.12,0.165,0.174,0.248c0.303,0.442,0.579,0.883,0.854,1.333c0.102,0.147,0.193,0.285,0.285,0.442c0.23,0.376,0.451,0.762,0.671,1.158c0.12,0.221,0.257,0.442,0.376,0.663c0.175,0.312,0.331,0.634,0.497,0.955c0.156,0.295,0.322,0.607,0.469,0.91c0.119,0.248,0.239,0.505,0.358,0.754c0.165,0.376,0.349,0.754,0.506,1.14c0.091,0.211,0.174,0.423,0.266,0.634c0.174,0.423,0.349,0.845,0.505,1.268c0.074,0.202,0.138,0.405,0.22,0.607c0.156,0.44,0.304,0.872,0.451,1.314c0.064,0.202,0.12,0.405,0.184,0.607c0.138,0.441,0.276,0.882,0.395,1.333c0.065,0.239,0.12,0.478,0.184,0.716c0.111,0.405,0.212,0.81,0.304,1.223c0.074,0.331,0.147,0.671,0.211,1.011c0.065,0.314,0.129,0.626,0.193,0.947c0.083,0.488,0.156,0.984,0.23,1.481c0.027,0.156,0.055,0.33,0.082,0.496c0.276,2.031,0.414,4.099,0.414,6.205c0,0.965-0.037,1.93-0.101,2.905c-0.009,0.211-0.028,0.422-0.038,0.643c-0.073,0.92-0.165,1.848-0.294,2.777c-0.027,0.211-0.064,0.422-0.092,0.633c-0.11,0.773-0.239,1.535-0.395,2.299c-0.045,0.248-0.091,0.496-0.137,0.744c-0.193,0.855-0.405,1.709-0.625,2.564c-0.083,0.322-0.175,0.644-0.266,0.966c-0.221,0.754-0.451,1.498-0.708,2.243c-0.102,0.312-0.221,0.625-0.322,0.938c-0.258,0.716-0.534,1.416-0.818,2.114c-0.12,0.294-0.239,0.588-0.368,0.872c-0.358,0.837-0.744,1.683-1.149,2.51c-0.11,0.22-0.23,0.44-0.349,0.67c-0.404,0.8-0.845,1.609-1.296,2.399c-1.14,1.967-2.39,3.879-3.786,5.717c-0.184,0.212-0.359,0.442-0.515,0.671c-1.406,1.793-2.878,3.475-4.375,4.982c-2.74,2.767-6.609,5.599-11.177,8.199c-6.839,3.888-14.284,6.756-19.332,8.466c-2.876,0.984-5.285,1.701-6.792,2.133c-0.818,0.22-1.462,0.405-1.903,0.515l-0.588,0.147c-4.072,0.993-6.581,5.111-5.598,9.174c0.828,3.429,3.861,5.809,7.381,5.809c0.606,0,1.213-0.073,1.802-0.212c0.799-0.193,8.107-2.022,17.317-5.644c5.589-2.205,10.709-4.623,15.213-7.179c5.929-3.364,10.654-6.875,14.468-10.717c1.205-1.205,2.381-2.492,3.521-3.824c1.158,0.019,2.325,0.092,3.493,0.185c0.045,0.018,0.1,0.027,0.156,0.027c0.606,0.054,1.029,0.091,1.277,0.11c0.019,0.01,0.037,0.01,0.046,0.01c0.074,0,0.138,0.018,0.166,0.018h0.009h0.009c0.248,0.037,0.497,0.074,0.744,0.111c0.423,0.064,0.855,0.11,1.278,0.184c7.905,1.36,15.259,4.826,21.316,10.01c0.064,0.054,0.12,0.11,0.184,0.164c0.378,0.322,0.744,0.662,1.112,1.002c0.129,0.12,0.266,0.239,0.405,0.359c0.276,0.266,0.552,0.552,0.828,0.836c0.202,0.193,0.404,0.387,0.597,0.598c0.156,0.156,0.294,0.322,0.441,0.478c0.303,0.322,0.607,0.644,0.901,0.974v0.009c0.781,0.882,1.518,1.802,2.224,2.748c0.074,0.11,0.157,0.211,0.248,0.322c0.258,0.358,0.505,0.735,0.763,1.094c0.12,0.174,0.248,0.359,0.367,0.542c0.212,0.322,0.414,0.643,0.625,0.974c0.148,0.239,0.294,0.469,0.441,0.698c0.175,0.295,0.331,0.588,0.506,0.874c0.156,0.285,0.331,0.57,0.488,0.855c0.138,0.258,0.257,0.515,0.395,0.772c0.166,0.332,0.349,0.663,0.515,1.002c0.101,0.212,0.193,0.432,0.294,0.652c0.184,0.386,0.368,0.773,0.534,1.159c0.073,0.174,0.137,0.349,0.22,0.523c0.174,0.442,0.359,0.883,0.533,1.333c0.046,0.129,0.092,0.276,0.148,0.405c0.174,0.488,0.349,0.974,0.514,1.471c0.038,0.101,0.065,0.202,0.092,0.312c0.175,0.524,0.34,1.057,0.488,1.59c0.018,0.083,0.037,0.156,0.054,0.239c0.156,0.561,0.304,1.113,0.432,1.682c0.019,0.074,0.028,0.147,0.046,0.22c0.129,0.57,0.248,1.149,0.358,1.72c0.018,0.101,0.027,0.193,0.046,0.284c0.092,0.552,0.193,1.112,0.266,1.674c0.019,0.147,0.028,0.294,0.056,0.432c0.064,0.515,0.12,1.029,0.174,1.544c0.019,0.248,0.036,0.497,0.046,0.744c0.037,0.424,0.073,0.837,0.092,1.25c0.028,0.671,0.045,1.342,0.045,2.023c0,0.91-0.036,1.829-0.091,2.748c-0.056,0.91-0.139,1.838-0.249,2.757c-0.01,0.038-0.018,0.065-0.018,0.102c-0.083,0.698-0.194,1.397-0.312,2.077c-0.019,0.11-0.046,0.212-0.065,0.312c-0.11,0.644-0.239,1.278-0.386,1.912c0,0.028-0.01,0.055-0.019,0.073c-1.829,7.924-5.818,15.204-11.49,21.004c-0.054,0.055-0.101,0.101-0.156,0.156c-0.432,0.442-0.882,0.882-1.341,1.306c-0.111,0.101-0.221,0.201-0.341,0.312c-1.038,0.938-2.114,1.847-3.244,2.702c-4.807-1.168-9.706-1.756-14.606-1.756c-14.183,0-28.044,4.9-39.056,13.779c-3.254,2.629-3.769,7.427-1.14,10.681c1.452,1.802,3.604,2.831,5.919,2.831c1.728,0,3.42-0.598,4.771-1.683c8.438-6.811,18.65-10.414,29.515-10.414c3.595,0,7.161,0.404,10.626,1.213c1.324,1.03,2.997,1.618,4.698,1.618c0.211,0,0.423-0.01,0.643-0.027c1.967,0.707,3.833,1.516,5.561,2.408c0.037,0.019,0.074,0.037,0.102,0.056l0.027,0.008v0.009l0.019,0.01c1.728,0.891,3.382,1.902,4.982,2.997c0.147,0.101,0.303,0.193,0.45,0.294c0.083,0.055,0.156,0.129,0.239,0.183c5.074,3.632,9.413,8.236,12.713,13.55c0.569,0.92,1.103,1.857,1.608,2.812c0.101,0.184,0.184,0.378,0.276,0.57c0.404,0.781,0.79,1.562,1.149,2.353c0.054,0.137,0.11,0.284,0.165,0.413c0.368,0.874,0.727,1.738,1.048,2.629c0.027,0.074,0.046,0.156,0.074,0.23c0.34,0.947,0.652,1.894,0.928,2.868c0.009,0.056,0.019,0.11,0.037,0.166c0.276,0.984,0.524,1.977,0.744,2.978c0.019,0.12,0.037,0.23,0.056,0.349c0.193,0.938,0.367,1.894,0.496,2.849c0.046,0.341,0.074,0.68,0.11,1.03c0.092,0.735,0.184,1.471,0.23,2.216c0.083,1.094,0.12,2.206,0.12,3.318C487.688,317.199,487.67,318,487.633,318.781z'
]

// SH-15 (#149): document-level sprite holding the brain path ONCE. Mounted imperatively on
// the first brain-icon render (SVG2 <use> resolves same-document ids across inline SVGs), so
// N rendered brains share one path element instead of stamping N ~9 KB copies.
let brainSpriteMounted = false
function ensureBrainSprite(): void {
  if (brainSpriteMounted || typeof document === 'undefined' || !document.body) return
  brainSpriteMounted = true
  const holder = document.createElement('div')
  holder.setAttribute('aria-hidden', 'true')
  holder.style.position = 'absolute'
  holder.style.width = '0'
  holder.style.height = '0'
  holder.style.overflow = 'hidden'
  const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg')
  const defs = document.createElementNS('http://www.w3.org/2000/svg', 'defs')
  const path = document.createElementNS('http://www.w3.org/2000/svg', 'path')
  path.setAttribute('id', 'hr-icon-brain')
  path.setAttribute('d', BRAIN_PATHS[0])
  defs.appendChild(path)
  svg.appendChild(defs)
  holder.appendChild(svg)
  document.body.appendChild(holder)
}

const GLYPHS: Record<IconName, Glyph> = {
  // Upscaled ~12% about center (12,12) so it optically matches the others — the raw path
  // leaves more padding. The stroke-width is counter-scaled (1.65 / 1.12) so the rendered
  // line weight lands exactly on the set's 1.65, not thicker.
  home: {
    body: (
      <g transform="translate(-1.44 -1.44) scale(1.12)" strokeWidth={1.65 / 1.12}>
        <path d="M9 20H7c-1.1 0-2-.9-2-2v-7.08c0-.58.26-1.14.7-1.52l5-4.28a2 2 0 0 1 2.6 0l5 4.28c.45.38.7.94.7 1.52V18c0 1.1-.9 2-2 2h-2m-6 0v-6c0-.55.45-1 1-1h4c.55 0 1 .45 1 1v6m-6 0h6" />
      </g>
    )
  },

  chat: {
    body: (
      <>
        <path d="M8 10.5h8" />
        <path d="M8 14h5.5" />
        <path d="M17 3.34A10 10 0 0 0 12 2C6.48 2 2 6.48 2 12c0 1.6.38 3.11 1.04 4.45.18.36.24.77.14 1.15l-.6 2.23c-.26.96.63 1.85 1.59 1.59l2.23-.6c.38-.1.79-.04 1.15.14A10 10 0 0 0 12 22c5.52 0 10-4.48 10-10 0-1.82-.49-3.53-1.34-5" />
      </>
    )
  },

  // Upscaled ~10% about center so it sits a touch larger; stroke counter-scaled
  // (1.65 / 1.1) so the line weight stays exactly where it already looked right.
  file: {
    body: (
      <g transform="translate(-1.2 -1.2) scale(1.1)" strokeWidth={1.65 / 1.1}>
        <path d="M7 3.75h7.25L19 8.5v10.75c0 .97-.78 1.75-1.75 1.75H7a1.75 1.75 0 0 1-1.75-1.75V5.5c0-.97.78-1.75 1.75-1.75Z" />
        <path d="M14 3.85v4.9h4.85" />
        <path d="M8.75 12.5h6.5" />
        <path d="M8.75 16h4.75" />
      </g>
    )
  },

  // Translate (Lucide "languages" idiom): an underlined "A文"-style pair — a Latin stroke set
  // over a source line, crossed by a taller glyph — the universal translate mark, distinct from
  // `file`/`chat`. 24-grid, 1.65 stroke like the set; tracks currentColor.
  translate: {
    body: (
      <>
        <path d="M4 5h7" />
        <path d="M7 4c0 4.5-2 7.5-5 9" />
        <path d="M5.5 9c0 2 2.5 4.5 5 5.5" />
        <path d="m13 20 4.5-9 4.5 9" />
        <path d="M14.5 17h6" />
      </>
    )
  },

  // Image (Feather/Lucide idiom): a rounded frame with a sun and a mountain — the
  // universal "picture" glyph, distinct from `file`. 24-grid, 1.65 stroke like the set;
  // the sun + mountain are stroked (not filled) so it stays calm and low-chroma.
  image: {
    body: (
      <>
        <rect x="3" y="4.5" width="18" height="15" rx="2.5" />
        <circle cx="8.5" cy="9.5" r="1.6" />
        <path d="M4 17.5l4.5-4.5a2 2 0 0 1 2.8 0l3.2 3.2a2 2 0 0 0 2.8 0L20 14.5" />
      </>
    )
  },

  brain: {
    viewBox: '0 0 512 512',
    filled: true,
    // The illustration is filled line-art (no real stroke), so its outlines render thinner
    // than the 1.65px line icons. A small same-color stroke (~8 in the 512 space) nudges the
    // weight up to match the rest of the set without clogging the fine folds.
    // SH-15 (#149): the ~9 KB path lives ONCE in a hidden document-level sprite (mounted on
    // first use); every instance stamps only this <use> — a 40-skill list used to carry 40
    // full copies of the path data in the DOM.
    body: (
      <use
        href="#hr-icon-brain"
        fillRule="evenodd"
        stroke="currentColor"
        strokeWidth={8}
        strokeLinejoin="round"
        strokeLinecap="round"
      />
    )
  },

  settings: {
    body: (
      <>
        <circle cx="12" cy="12" r="3.1" />
        <path d="M15.15 4.9 14.8 3.15H9.2L8.85 4.9c-.5.2-.98.48-1.43.82l-1.72-.6-2.8 4.85 1.38 1.15a7.25 7.25 0 0 0 0 1.76L2.9 14.03l2.8 4.85 1.72-.6c.45.34.93.62 1.43.82l.35 1.75h5.6l.35-1.75c.5-.2.98-.48 1.43-.82l1.72.6 2.8-4.85-1.38-1.15a7.25 7.25 0 0 0 0-1.76l1.38-1.15-2.8-4.85-1.72.6a7.4 7.4 0 0 0-1.43-.82Z" />
      </>
    )
  },

  // Puzzle piece (Lucide idiom) — the rail destination for Skills, each a snap-in capability.
  // Single outline path on the 24-grid; tracks currentColor like the rest of the set.
  puzzle: {
    body: (
      <path d="M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 1.998c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z" />
    )
  },

  // Gauge (a speedometer: arc, needle, base line) — the rail destination for Performance.
  // 24-grid, 1.65 stroke like the set; tracks currentColor.
  gauge: {
    body: (
      <>
        <path d="M4.5 16.5a8.5 8.5 0 1 1 15 0" />
        <path d="M12 15.5 16 9.5" />
        <circle cx="12" cy="15.5" r="1.4" />
        <path d="M4 20h16" />
      </>
    )
  },

  // Circular refresh arrow (single-arc Feather idiom), 24-grid 1.65 stroke like the set.
  refresh: {
    body: (
      <>
        <path d="M20 11.5a8 8 0 1 1-2.3-5.45" />
        <path d="M20 3.5v4.2h-4.2" />
      </>
    )
  },

  lock: {
    body: (
      <path d="M12 14.5V16.5M7 10.0288C7.47142 10 8.05259 10 8.8 10H15.2C15.9474 10 16.5286 10 17 10.0288M7 10.0288C6.41168 10.0647 5.99429 10.1455 5.63803 10.327C5.07354 10.6146 4.6146 11.0735 4.32698 11.638C4 12.2798 4 13.1198 4 14.8V16.2C4 17.8802 4 18.7202 4.32698 19.362C4.6146 19.9265 5.07354 20.3854 5.63803 20.673C6.27976 21 7.11984 21 8.8 21H15.2C16.8802 21 17.7202 21 18.362 20.673C18.9265 20.3854 19.3854 19.9265 19.673 19.362C20 18.7202 20 17.8802 20 16.2V14.8C20 13.1198 20 12.2798 19.673 11.638C19.3854 11.0735 18.9265 10.6146 18.362 10.327C18.0057 10.1455 17.5883 10.0647 17 10.0288M7 10.0288V8C7 5.23858 9.23858 3 12 3C14.7614 3 17 5.23858 17 8V10.0288" />
    )
  },

  // Open padlock — the body box is identical to `lock`; only the shackle differs: it
  // attaches at the LEFT post and swings up and over, ending in the air on the right
  // (open). The honest "downloads allowed" state of the ambient privacy indicator.
  // Open book (Lucide "book-open" idiom) — knowledge packs, the offline reference archives
  // (Home's readiness row, §11.16). 24-grid, 1.65 stroke like the set; tracks currentColor.
  book: {
    body: (
      <>
        <path d="M4 5.5A1.5 1.5 0 0 1 5.5 4H11a2 2 0 0 1 2 2v14a1.5 1.5 0 0 0-1.5-1.5H4Z" />
        <path d="M20 5.5A1.5 1.5 0 0 0 18.5 4H13a2 2 0 0 0-2 2v14a1.5 1.5 0 0 1 1.5-1.5H20Z" />
      </>
    )
  },

  // Magnifier (Feather idiom) — the Documents toolbar's name filter (§11.16). 24-grid, 1.65
  // stroke like the set; tracks currentColor.
  search: {
    body: (
      <>
        <circle cx="11" cy="11" r="6.5" />
        <path d="m20 20-4.4-4.4" />
      </>
    )
  },

  'lock-open': {
    body: (
      <>
        <path d="M12 14.5V16.5M7 10.0288C7.47142 10 8.05259 10 8.8 10H15.2C15.9474 10 16.5286 10 17 10.0288M7 10.0288C6.41168 10.0647 5.99429 10.1455 5.63803 10.327C5.07354 10.6146 4.6146 11.0735 4.32698 11.638C4 12.2798 4 13.1198 4 14.8V16.2C4 17.8802 4 18.7202 4.32698 19.362C4.6146 19.9265 5.07354 20.3854 5.63803 20.673C6.27976 21 7.11984 21 8.8 21H15.2C16.8802 21 17.7202 21 18.362 20.673C18.9265 20.3854 19.3854 19.9265 19.673 19.362C20 18.7202 20 17.8802 20 16.2V14.8C20 13.1198 20 12.2798 19.673 11.638C19.3854 11.0735 18.9265 10.6146 18.362 10.327C18.0057 10.1455 17.5883 10.0647 17 10.0288" />
        <path d="M7 10V8C7 5.23858 9.23858 3 12 3C14.5 3 16.6 4.8 16.95 7.15" />
      </>
    )
  }
}

/** Render an icon by name. Decorative by default (aria-hidden); pass `title` or an
 *  aria-label to give it an accessible name. */
export function Icon({
  name,
  size = '1em',
  className,
  title,
  strokeWidth = 1.65,
  ...svgProps
}: IconProps): JSX.Element {
  const glyph = GLYPHS[name]
  if (name === 'brain') ensureBrainSprite() // SH-15: one shared path element per document
  const labelled =
    Boolean(title) ||
    Boolean(svgProps['aria-label']) ||
    Boolean(svgProps['aria-labelledby'])

  const paintProps = glyph.filled
    ? { fill: 'currentColor' as const }
    : {
        fill: 'none' as const,
        stroke: 'currentColor' as const,
        strokeWidth,
        strokeLinecap: 'round' as const,
        strokeLinejoin: 'round' as const
      }

  return (
    <svg
      {...svgProps}
      className={className}
      width={size}
      height={size}
      viewBox={glyph.viewBox ?? '0 0 24 24'}
      {...paintProps}
      aria-hidden={labelled ? undefined : true}
      role={labelled ? 'img' : undefined}
      focusable="false"
    >
      {title ? <title>{title}</title> : null}
      {glyph.body}
    </svg>
  )
}