@webority/repo-checks 0.110.2 → 0.111.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.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{chmodSync as e,existsSync as t,mkdirSync as n,readFileSync as r,readdirSync as i,writeFileSync as a}from"node:fs";import{basename as o,dirname as s,extname as c,join as l,matchesGlob as u,posix as d,relative as f,resolve as p,sep as m}from"node:path";import{spawnSync as h}from"node:child_process";var g=`.webority/baselines/repo-checks-baseline.json`,_=[`raw-measure`,`palette-read`,`raw-colour`,`root-font-size`,`missing-canvas-key`,`repeated-canvas-key`,`raw-bootstrap`,`library-class-restyle`,`rename-wrapper`,`single-use-component`,`error-summary-title`].map(e=>`${e}:`),v=class extends Error{};function y(e,t){return`${e} | ${t}`}function b(e){if(typeof e!=`string`)throw new v(`${g} is not a valid version 2 baseline: "findings" must be a list of "<app folder> | <finding id>" strings.`);let t=e.indexOf(` | `);if(t===-1)throw new v(`${g} is not a valid version 2 baseline: "findings" must be a list of "<app folder> | <finding id>" strings.`);return[e.slice(0,t),e.slice(t+3)]}function ee(e){let n=l(e,g);if(!t(n))return null;let i;try{i=JSON.parse(r(n,`utf8`))}catch{throw new v(`${g} does not parse.`)}if(typeof i!=`object`||!i||Array.isArray(i)||i.version!==2)throw new v(`${g} has no "version": 2; it is the earlier shape without counts. Delete it and run webority-repo-checks --baseline-init once from the git root, then review and commit the new file.`);for(let e of Object.keys(i))if(e!==`version`&&e!==`findings`&&e!==`counts`&&e!==`accepted`)throw new v(`${g} is not a valid version 2 baseline: unknown key "${e}".`);if(!Array.isArray(i.findings))throw new v(`${g} is not a valid version 2 baseline: "findings" must be a list of "<app folder> | <finding id>" strings.`);for(let e of i.findings)if(typeof e!=`string`||!e.includes(` | `))throw new v(`${g} is not a valid version 2 baseline: "findings" must be a list of "<app folder> | <finding id>" strings.`);if(i.counts===null||typeof i.counts!=`object`||Array.isArray(i.counts))throw new v(`${g} is not a valid version 2 baseline: "counts" must be an object of "<rule>:<file>" ids and whole numbers above 0.`);for(let[e,t]of Object.entries(i.counts))if(!_.some(t=>e.startsWith(t))||typeof t!=`number`||!Number.isInteger(t)||t<=0)throw new v(`${g} is not a valid version 2 baseline: count "${e}" must be a ${_.join(`, `)} id with a whole number above 0.`);if(i.accepted!==void 0&&(!Array.isArray(i.accepted)||!i.accepted.every(te)))throw new v(`${g} is not a valid version 2 baseline: "accepted" must be a list of { "prefix", "reason" } objects with non-empty text.`);return{version:2,findings:i.findings,counts:i.counts,accepted:i.accepted??[]}}function te(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).every(e=>e===`prefix`||e===`reason`)&&ne(e.prefix)&&ne(e.reason)}function ne(e){return typeof e==`string`&&e.trim()!==``}function re(e){let t=e.indexOf(`:`);return(t===-1?e:e.slice(t+1)).split(`\\`).join(`/`)}function ie(e,t){let r=l(e,g);n(s(r),{recursive:!0});let i=[...new Set(t.findings??[])].sort(),o={};for(let e of Object.keys(t.counts??{}).sort())o[e]=t.counts[e];let c=[...t.accepted??[]].sort((e,t)=>e.prefix<t.prefix?-1:+(e.prefix>t.prefix)).map(({prefix:e,reason:t})=>({prefix:e,reason:t})),u=c.length?{version:2,findings:i,counts:o,accepted:c}:{version:2,findings:i,counts:o};a(r,`${JSON.stringify(u,null,4)}\n`)}function ae(e){let t=[...new Set(e.findings??[])].sort(),n={};for(let t of Object.keys(e.counts??{}).sort()){let r=e.counts[t];typeof r==`number`&&r>0&&_.some(e=>t.startsWith(e))&&(n[t]=r)}return{version:2,findings:t,counts:n,accepted:[]}}function oe(e,t){if(!t)return e;let n=(e.findings??[]).filter(e=>{let[n]=b(e);return t.pkgs?.has?.(n)??!1}),r={};for(let[n,i]of Object.entries(e.counts??{})){let e=n.indexOf(`:`),a=(e===-1?n:n.slice(e+1)).split(`\\`).join(`/`);(t.dirs??[]).some(e=>{let t=e.split(`\\`).join(`/`);return t===`.`||t===a||a.startsWith(`${t}/`)})&&(r[n]=i)}return{version:2,findings:n,counts:r,accepted:e.accepted??[]}}function se(e,t){let n=new Set(e.findings??[]),r=new Set(t.findings??[]),i=[...r].filter(e=>!n.has(e)).sort(),a=[...r].filter(e=>n.has(e)).sort(),o=[...n].filter(e=>!r.has(e)).sort(),s=new Set([...Object.keys(e.counts??{}),...Object.keys(t.counts??{})]),c=[],l=[],u=[];for(let n of[...s].sort()){let r=e.counts?.[n]??0,i=t.counts?.[n]??0,a={id:n,baseline:r,current:i};i>r&&c.push(a),i>0&&i<=r&&l.push(a),r>i&&u.push(a)}return{fresh:i,known:a,stale:o,over:c,within:l,fallen:u}}function ce(e,t){let n=new Set(t.findings??[]),r=[...new Set((e.findings??[]).filter(e=>n.has(e)))].sort(),i={};for(let n of Object.keys(e.counts??{}).sort()){let r=e.counts[n],a=t.counts?.[n]??0,o=Math.min(r,a);o>0&&(i[n]=o)}return{version:2,findings:r,counts:i,accepted:e.accepted??[]}}function le(e,t,n,r){let i=e=>e===n||e.startsWith(`${n}/`),a=[...new Set([...e.findings??[],...(t.findings??[]).filter(e=>i(b(e)[0]))])].sort(),o={...e.counts??{}};for(let[e,n]of Object.entries(t.counts??{}))_.some(t=>e.startsWith(t))&&i(re(e))&&(o[e]=Math.max(o[e]??0,n));let s={prefix:n,reason:r},c=e.accepted??[];return{version:2,findings:a,counts:o,accepted:c.some(e=>e.prefix===n)?c.map(e=>e.prefix===n?s:e):[...c,s]}}var ue=[``,`-top`,`-right`,`-bottom`,`-left`,`-inline`,`-inline-start`,`-inline-end`,`-block`,`-block-start`,`-block-end`],de=[...ue.map(e=>`padding${e}`),...ue.map(e=>`margin${e}`),`gap`,`row-gap`,`column-gap`,`grid-gap`,`grid-row-gap`,`grid-column-gap`,`inset`,`inset-inline`,`inset-inline-start`,`inset-inline-end`,`inset-block`,`inset-block-start`,`inset-block-end`,`border-radius`,`border-top-left-radius`,`border-top-right-radius`,`border-bottom-right-radius`,`border-bottom-left-radius`,`border-start-start-radius`,`border-start-end-radius`,`border-end-start-radius`,`border-end-end-radius`,`font`,`font-size`,`font-weight`,`line-height`],fe=[`font`,`font-weight`,`line-height`],pe=e=>e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),me=[...de.map(pe),`paddingHorizontal`,`paddingVertical`,`paddingStart`,`paddingEnd`,`marginHorizontal`,`marginVertical`,`marginStart`,`marginEnd`,`borderTopStartRadius`,`borderTopEndRadius`,`borderBottomStartRadius`,`borderBottomEndRadius`],he=[`color`,`background`,`background-color`,`border`,`border-color`,...[`top`,`right`,`bottom`,`left`,`inline`,`inline-start`,`inline-end`,`block`,`block-start`,`block-end`].flatMap(e=>[`border-${e}`,`border-${e}-color`]),`outline`,`outline-color`,`fill`,`stroke`,`box-shadow`,`text-shadow`,`text-decoration-color`,`caret-color`,`accent-color`,`column-rule-color`],ge=[...he.map(pe),`shadowColor`,`tintColor`],_e=[`px`,`rem`,`em`],ve={primary:`primary`,secondary:`neutral`,success:`success`,info:`info`,warning:`warning`,danger:`danger`,light:`bg-subtle`,dark:`surface-inverse`},ye={".scss":`scss`,".css":`css`,".cshtml":`markup`,".jsx":`script`,".tsx":`script`,".js":`script`,".ts":`script`},be=[`.js`,`.ts`],xe=[`node_modules`,`dist`,`generated`,`vendor`,`__tests__`,`__mocks__`],Se=[`wwwroot/lib/`],Ce=[`release.json`,`manifest.json`];function we(e,n){for(let r=d.dirname(e);r!==`.`&&r!==`/`;r=d.dirname(r))if(Ce.every(e=>t(l(n,r,e))))return!0;return!1}var Te=`.webority/map.json`,Ee=new Map;function De(e){let t=e.endsWith(`/`),n=e.replace(/\/+$/,``).split(`*`).map(e=>e.replace(/[.+?^${}()|[\]\\]/g,`\\$&`)).join(`[^/]*`);return RegExp(t?`^${n}/`:`^${n}$`)}function Oe(e){let n=Ee.get(e);if(n)return n;let i=l(e,Te),a=t(i)?(JSON.parse(r(i,`utf8`)).generated??[]).flatMap(e=>e.paths.map(De)):[];return Ee.set(e,a),a}function ke(e,t=null){let n=o(e);return e.split(`/`).slice(0,-1).some(e=>xe.includes(e))||Se.some(t=>e.toLowerCase().includes(t))||n.includes(`.generated.`)||n.endsWith(`.min.css`)||/\.(?:test|spec)\.[cm]?[jt]sx?$/i.test(n)?!0:t===null?!1:we(e,t)||Oe(t).some(t=>t.test(e))}var Ae=`bootstrap-ui.md → Tokens: padding, margin, gap, inset, corners, font size, font weight and line height read a space, radius, text, weight or leading token, never a literal.`,je=`bootstrap-ui.md → Tokens: a colour is a meaning (var(--color-*) on web, theme.colors["<name>"] on phone), never a hex, rgb(), hsl() or named colour; a product-only colour goes into theme/brand.tokens.json.`,Me=`bootstrap-ui.md → Tokens: the root font size (html or :root) is the unit the type scale is measured in; never set it.`,Ne=`bootstrap-ui.md → Tokens: code reads the colour meaning layer (var(--color-*) on web, theme.colors["<name>"] on phone), never a palette step or a Bootstrap theme colour.`,Pe=`A list row without a data-canvas key (testID on a phone) cannot be found by a Canvas check or linked to a board node.`,Fe=`Two elements with the same data-canvas key (testID on a phone) make a Canvas check match the wrong one.`,Ie={web:`data-canvas`,phone:`testID`},Le=`# Fast only. The expensive verification is \`corepack pnpm check\`, run by hand before pushing
2
+ import{chmodSync as e,existsSync as t,mkdirSync as n,readFileSync as r,readdirSync as i,writeFileSync as a}from"node:fs";import{basename as o,dirname as s,extname as c,join as l,matchesGlob as u,posix as d,relative as f,resolve as p,sep as m}from"node:path";import{spawnSync as h}from"node:child_process";var g=`.webority/baselines/repo-checks-baseline.json`,_=[`raw-measure`,`palette-read`,`raw-colour`,`root-font-size`,`missing-canvas-key`,`repeated-canvas-key`,`raw-bootstrap`,`library-class-restyle`,`rename-wrapper`,`single-use-component`,`error-summary-title`].map(e=>`${e}:`),v=class extends Error{};function y(e,t){return`${e} | ${t}`}function ee(e){if(typeof e!=`string`)throw new v(`${g} is not a valid version 2 baseline: "findings" must be a list of "<app folder> | <finding id>" strings.`);let t=e.indexOf(` | `);if(t===-1)throw new v(`${g} is not a valid version 2 baseline: "findings" must be a list of "<app folder> | <finding id>" strings.`);return[e.slice(0,t),e.slice(t+3)]}function te(e){let n=l(e,g);if(!t(n))return null;let i;try{i=JSON.parse(r(n,`utf8`))}catch{throw new v(`${g} does not parse.`)}if(typeof i!=`object`||!i||Array.isArray(i)||i.version!==2)throw new v(`${g} has no "version": 2; it is the earlier shape without counts. Delete it and run webority-repo-checks --baseline-init once from the git root, then review and commit the new file.`);for(let e of Object.keys(i))if(e!==`version`&&e!==`findings`&&e!==`counts`&&e!==`accepted`)throw new v(`${g} is not a valid version 2 baseline: unknown key "${e}".`);if(!Array.isArray(i.findings))throw new v(`${g} is not a valid version 2 baseline: "findings" must be a list of "<app folder> | <finding id>" strings.`);for(let e of i.findings)if(typeof e!=`string`||!e.includes(` | `))throw new v(`${g} is not a valid version 2 baseline: "findings" must be a list of "<app folder> | <finding id>" strings.`);if(i.counts===null||typeof i.counts!=`object`||Array.isArray(i.counts))throw new v(`${g} is not a valid version 2 baseline: "counts" must be an object of "<rule>:<file>" ids and whole numbers above 0.`);for(let[e,t]of Object.entries(i.counts))if(!_.some(t=>e.startsWith(t))||typeof t!=`number`||!Number.isInteger(t)||t<=0)throw new v(`${g} is not a valid version 2 baseline: count "${e}" must be a ${_.join(`, `)} id with a whole number above 0.`);if(i.accepted!==void 0&&(!Array.isArray(i.accepted)||!i.accepted.every(ne)))throw new v(`${g} is not a valid version 2 baseline: "accepted" must be a list of { "prefix", "reason" } objects with non-empty text.`);return{version:2,findings:i.findings,counts:i.counts,accepted:i.accepted??[]}}function ne(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).every(e=>e===`prefix`||e===`reason`)&&re(e.prefix)&&re(e.reason)}function re(e){return typeof e==`string`&&e.trim()!==``}function ie(e){let t=e.indexOf(`:`);return(t===-1?e:e.slice(t+1)).split(`\\`).join(`/`)}function ae(e,t){let r=l(e,g);n(s(r),{recursive:!0});let i=[...new Set(t.findings??[])].sort(),o={};for(let e of Object.keys(t.counts??{}).sort())o[e]=t.counts[e];let c=[...t.accepted??[]].sort((e,t)=>e.prefix<t.prefix?-1:+(e.prefix>t.prefix)).map(({prefix:e,reason:t})=>({prefix:e,reason:t})),u=c.length?{version:2,findings:i,counts:o,accepted:c}:{version:2,findings:i,counts:o};a(r,`${JSON.stringify(u,null,4)}\n`)}function oe(e){let t=[...new Set(e.findings??[])].sort(),n={};for(let t of Object.keys(e.counts??{}).sort()){let r=e.counts[t];typeof r==`number`&&r>0&&_.some(e=>t.startsWith(e))&&(n[t]=r)}return{version:2,findings:t,counts:n,accepted:[]}}function se(e,t){if(!t)return e;let n=(e.findings??[]).filter(e=>{let[n]=ee(e);return t.pkgs?.has?.(n)??!1}),r={};for(let[n,i]of Object.entries(e.counts??{})){let e=n.indexOf(`:`),a=(e===-1?n:n.slice(e+1)).split(`\\`).join(`/`);(t.dirs??[]).some(e=>{let t=e.split(`\\`).join(`/`);return t===`.`||t===a||a.startsWith(`${t}/`)})&&(r[n]=i)}return{version:2,findings:n,counts:r,accepted:e.accepted??[]}}function ce(e,t){let n=new Set(e.findings??[]),r=new Set(t.findings??[]),i=[...r].filter(e=>!n.has(e)).sort(),a=[...r].filter(e=>n.has(e)).sort(),o=[...n].filter(e=>!r.has(e)).sort(),s=new Set([...Object.keys(e.counts??{}),...Object.keys(t.counts??{})]),c=[],l=[],u=[];for(let n of[...s].sort()){let r=e.counts?.[n]??0,i=t.counts?.[n]??0,a={id:n,baseline:r,current:i};i>r&&c.push(a),i>0&&i<=r&&l.push(a),r>i&&u.push(a)}return{fresh:i,known:a,stale:o,over:c,within:l,fallen:u}}function le(e,t){let n=new Set(t.findings??[]),r=[...new Set((e.findings??[]).filter(e=>n.has(e)))].sort(),i={};for(let n of Object.keys(e.counts??{}).sort()){let r=e.counts[n],a=t.counts?.[n]??0,o=Math.min(r,a);o>0&&(i[n]=o)}return{version:2,findings:r,counts:i,accepted:e.accepted??[]}}function ue(e,t,n,r){let i=e=>e===n||e.startsWith(`${n}/`),a=[...new Set([...e.findings??[],...(t.findings??[]).filter(e=>i(ee(e)[0]))])].sort(),o={...e.counts??{}};for(let[e,n]of Object.entries(t.counts??{}))_.some(t=>e.startsWith(t))&&i(ie(e))&&(o[e]=Math.max(o[e]??0,n));let s={prefix:n,reason:r},c=e.accepted??[];return{version:2,findings:a,counts:o,accepted:c.some(e=>e.prefix===n)?c.map(e=>e.prefix===n?s:e):[...c,s]}}var de=[``,`-top`,`-right`,`-bottom`,`-left`,`-inline`,`-inline-start`,`-inline-end`,`-block`,`-block-start`,`-block-end`],fe=[...de.map(e=>`padding${e}`),...de.map(e=>`margin${e}`),`gap`,`row-gap`,`column-gap`,`grid-gap`,`grid-row-gap`,`grid-column-gap`,`inset`,`inset-inline`,`inset-inline-start`,`inset-inline-end`,`inset-block`,`inset-block-start`,`inset-block-end`,`border-radius`,`border-top-left-radius`,`border-top-right-radius`,`border-bottom-right-radius`,`border-bottom-left-radius`,`border-start-start-radius`,`border-start-end-radius`,`border-end-start-radius`,`border-end-end-radius`,`font`,`font-size`,`font-weight`,`line-height`],pe=[`font`,`font-weight`,`line-height`],me=e=>e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),he=[...fe.map(me),`paddingHorizontal`,`paddingVertical`,`paddingStart`,`paddingEnd`,`marginHorizontal`,`marginVertical`,`marginStart`,`marginEnd`,`borderTopStartRadius`,`borderTopEndRadius`,`borderBottomStartRadius`,`borderBottomEndRadius`],ge=[`color`,`background`,`background-color`,`border`,`border-color`,...[`top`,`right`,`bottom`,`left`,`inline`,`inline-start`,`inline-end`,`block`,`block-start`,`block-end`].flatMap(e=>[`border-${e}`,`border-${e}-color`]),`outline`,`outline-color`,`fill`,`stroke`,`box-shadow`,`text-shadow`,`text-decoration-color`,`caret-color`,`accent-color`,`column-rule-color`],_e=[...ge.map(me),`shadowColor`,`tintColor`],ve=[`px`,`rem`,`em`],ye={primary:`primary`,secondary:`neutral`,success:`success`,info:`info`,warning:`warning`,danger:`danger`,light:`bg-subtle`,dark:`surface-inverse`},be={".scss":`scss`,".css":`css`,".cshtml":`markup`,".jsx":`script`,".tsx":`script`,".js":`script`,".ts":`script`},xe=[`.js`,`.ts`],Se=[`node_modules`,`dist`,`generated`,`vendor`,`__tests__`,`__mocks__`],Ce=[`wwwroot/lib/`],we=[`release.json`,`manifest.json`];function Te(e,n){for(let r=d.dirname(e);r!==`.`&&r!==`/`;r=d.dirname(r))if(we.every(e=>t(l(n,r,e))))return!0;return!1}var Ee=`.webority/map.json`,De=new Map;function Oe(e){let t=e.endsWith(`/`),n=e.replace(/\/+$/,``).split(`*`).map(e=>e.replace(/[.+?^${}()|[\]\\]/g,`\\$&`)).join(`[^/]*`);return RegExp(t?`^${n}/`:`^${n}$`)}function ke(e){let n=De.get(e);if(n)return n;let i=l(e,Ee),a=t(i)?(JSON.parse(r(i,`utf8`)).generated??[]).flatMap(e=>e.paths.map(Oe)):[];return De.set(e,a),a}function Ae(e,t=null){let n=o(e);return e.split(`/`).slice(0,-1).some(e=>Se.includes(e))||Ce.some(t=>e.toLowerCase().includes(t))||n.includes(`.generated.`)||n.endsWith(`.min.css`)||/\.(?:test|spec)\.[cm]?[jt]sx?$/i.test(n)?!0:t===null?!1:Te(e,t)||ke(t).some(t=>t.test(e))}var je=`bootstrap-ui.md → Tokens: padding, margin, gap, inset, corners, font size, font weight and line height read a space, radius, text, weight or leading token, never a literal.`,Me=`bootstrap-ui.md → Tokens: a colour is a meaning (var(--color-*) on web, theme.colors["<name>"] on phone), never a hex, rgb(), hsl() or named colour; a product-only colour goes into theme/brand.tokens.json.`,Ne=`bootstrap-ui.md → Tokens: the root font size (html or :root) is the unit the type scale is measured in; never set it.`,Pe=`bootstrap-ui.md → Tokens: code reads the colour meaning layer (var(--color-*) on web, theme.colors["<name>"] on phone), never a palette step or a Bootstrap theme colour.`,Fe=`A list row without a data-canvas key (testID on a phone) cannot be found by a Canvas check or linked to a board node.`,Ie=`Two elements with the same data-canvas key (testID on a phone) make a Canvas check match the wrong one.`,Le={web:`data-canvas`,phone:`testID`},Re=`# Fast only. The expensive verification is \`corepack pnpm check\`, run by hand before pushing
3
3
  # (CLAUDE.md -> Before pushing). A slow pre-commit gets bypassed within a day, and a hook people bypass is worse than none because
4
4
  # it manufactures confidence without providing it.
5
5
  #
@@ -53,34 +53,34 @@ local_checks="$(git rev-parse --show-toplevel)/.husky/pre-commit.local"
53
53
  if [ -f "$local_checks" ]; then
54
54
  sh "$local_checks" || exit 1
55
55
  fi
56
- `;function Re(e){let t=``,n=!1;for(let r=0;r<e.length;r+=1){let i=e[r];if(n){t+=i,i===`\\`?(t+=e[r+1]??``,r+=1):i===`"`&&(n=!1);continue}if(i===`"`)n=!0,t+=i;else if(i===`/`&&e[r+1]===`/`){for(;r<e.length&&e[r]!==`
56
+ `;function ze(e){let t=``,n=!1;for(let r=0;r<e.length;r+=1){let i=e[r];if(n){t+=i,i===`\\`?(t+=e[r+1]??``,r+=1):i===`"`&&(n=!1);continue}if(i===`"`)n=!0,t+=i;else if(i===`/`&&e[r+1]===`/`){for(;r<e.length&&e[r]!==`
57
57
  `;)r+=1;t+=`
58
- `}else if(i===`/`&&e[r+1]===`*`){for(r+=2;r<e.length&&!(e[r]===`*`&&e[r+1]===`/`);)r+=1;r+=1}else t+=i}return JSON.parse(t.replace(/,(\s*[}\]])/g,`$1`))}var ze=new Set([`error`,`warning`,`fatal`]);function Be(e,t){if(t===null)return[];let n=h(process.execPath,[t,`check`,`--error-on-warnings`,`--reporter=json`,`--max-diagnostics=none`,`--colors=off`,`.`],{cwd:e,encoding:`utf8`,maxBuffer:256*1024*1024,windowsHide:!0}),r=null;try{r=JSON.parse(n.stdout??``).diagnostics}catch{r=null}if(!Array.isArray(r))return[[`lint:unreadable`,`Biome's report could not be read: ${String(n.stderr||n.stdout||``).slice(0,200)}`]];let i=new Map;for(let e of r){if(!ze.has(e.severity))continue;let t=(e.location?.path??`(config)`).replaceAll(`\\`,`/`),n=e.location?.start?.line,r=`${typeof n==`number`&&n>0?`${t}:${n}`:t} ${e.category}: ${String(e.message)}`;i.has(t)||i.set(t,[]),i.get(t).push(r)}return[...i].map(([e,t])=>[`lint:${e}`,t.join(`
59
- `)])}var Ve={color:JSON.parse(`{"$type":"color","bg":{"$value":"{palette.bg-page}","$description":"Page background behind the content area."},"bg-subtle":{"$value":"{palette.bg-elevated}","$description":"Subtle raised background for side panels and bands."},"bg-muted":{"$value":"{palette.bg-muted}","$description":"Muted background for grouped areas and quiet controls."},"surface":{"$value":"{palette.bg-light}","$description":"Card and panel surface."},"surface-inverse":{"$value":"{palette.text-heading}","$description":"Inverse band on a page, such as a dark footer or an inverse toast."},"surface-inverse-raised":{"$value":"color-mix(in srgb, {color.text-inverse} 5%, {color.surface-inverse})","$description":"A card or panel one layer up on an inverse band.","$extensions":{"com.webority":{"platforms":["web"]}}},"surface-inverse-elevated":{"$value":"color-mix(in srgb, {color.text-inverse} 9%, {color.surface-inverse})","$description":"A floating or highlighted surface two layers up on an inverse band.","$extensions":{"com.webority":{"platforms":["web"]}}},"surface-dark":{"$value":"{palette.text-heading}","$description":"Band that stays dark in light and dark mode, such as a site footer or a dark hero."},"surface-dark-border":{"$value":"color-mix(in srgb, {palette.bg-light} 14%, {palette.text-heading})","$description":"Hairline border or divider on a surface-dark band."},"on-surface-dark":{"$value":"{palette.bg-light}","$description":"Text and icons on a surface-dark band."},"on-surface-dark-muted":{"$value":"color-mix(in srgb, {palette.bg-light} 72%, {palette.text-heading})","$description":"Secondary text on a surface-dark band."},"text":{"$value":"{palette.text-heading}","$description":"Main heading and body ink."},"text-body":{"$value":"{palette.text-1}","$description":"Body copy on a tinted surface such as an alert body."},"text-muted":{"$value":"{palette.text-2}","$description":"Secondary text for descriptions and muted copy."},"text-subtle":{"$value":"{palette.text-3}","$description":"Tertiary text for hints, captions, timestamps and placeholders."},"text-inverse":{"$value":"{palette.bg-light}","$description":"Text on an inverse surface."},"link":{"$value":"{palette.primary-ink}","$description":"Interactive link text."},"border":{"$value":"{palette.border-light}","$description":"Hairline border of cards, tables and dividers."},"border-subtle":{"$value":"{palette.border-soft}","$description":"Softest border for inner dividers and list edges."},"border-strong":{"$value":"{palette.border-strong}","$description":"Stronger border for emphasised separators, chart axes and unselected control outlines.","$extensions":{"com.webority":{"platforms":["web"]}}},"field-bg":{"$value":"{palette.field-bg}","$description":"Resting fill of input-like controls such as fields and selects."},"field-border":{"$value":"{palette.field-border}","$description":"Resting border of an input-like control such as a field or select."},"field-border-hover":{"$value":"{palette.field-border-hover}","$description":"Hover border of an input-like control.","$extensions":{"com.webority":{"platforms":["web"]}}},"field-border-focus":{"$value":"{palette.primary-30}","$description":"Border of a focused, open or active control such as an input or select."},"focus-ring":{"$value":"{color.primary-text}","$description":"Colour of the keyboard focus ring drawn on focus-visible controls."},"scrim":{"$value":"color-mix(in srgb, {palette.text-heading} 45%, transparent)","$description":"Dim behind page-level backdrops such as drawers, modals and the shell."},"scrim-strong":{"$value":"color-mix(in srgb, {palette.text-heading} 62%, transparent)","$description":"Stronger dim behind media overlays that carry white ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-scrim":{"$value":"{palette.bg-light}","$description":"Ink on a scrim, such as the text of an overlay."},"progress-track":{"$value":"{palette.progress-track}","$description":"Unfilled track of a progress bar or meter.","$extensions":{"com.webority":{"platforms":["web"]}}},"progress-label":{"$value":"{palette.bg-light}","$description":"Label text inside a progress bar fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"thumb":{"$value":"{palette.bg-light}","$description":"Raised thumb that marks the selected option of a segmented control."},"scrollbar":{"$value":"{palette.scrollbar}","$description":"Resting thumb colour of a thin scrollbar.","$extensions":{"com.webority":{"platforms":["web"]}}},"scrollbar-hover":{"$value":"{palette.scrollbar-hover}","$description":"Scrollbar thumb colour while it is hovered.","$extensions":{"com.webority":{"platforms":["web"]}}},"scrollbar-active":{"$value":"{palette.scrollbar-active}","$description":"Scrollbar thumb colour while it is dragged.","$extensions":{"com.webority":{"platforms":["web"]}}},"primary":{"$value":"{palette.primary}","$description":"Primary fill for buttons, selected states and borders."},"primary-hover":{"$value":"{palette.primary-pressed}","$description":"Primary fill while a control is hovered or pressed."},"primary-soft":{"$value":"{palette.primary-10}","$description":"Soft primary tint behind selected and highlighted rows."},"primary-text":{"$value":"{palette.primary-ink}","$description":"Primary as text and small glyphs on a page."},"on-primary":{"$value":"{palette.primary-text}","$description":"Text and icon colour on a solid primary fill."},"primary-wash":{"$value":"color-mix(in srgb, {color.primary} 8%, transparent)","$description":"Faint translucent primary wash over a surface."},"primary-wash-strong":{"$value":"color-mix(in srgb, {color.primary} 20%, transparent)","$description":"Stronger translucent primary wash over a surface."},"neutral":{"$value":"color-mix(in srgb, {color.text} 8%, transparent)","$description":"Quiet unbranded fill for supporting actions such as Back, Skip and Close."},"neutral-hover":{"$value":"color-mix(in srgb, {color.text} 12%, transparent)","$description":"Neutral fill while a control is hovered."},"neutral-pressed":{"$value":"color-mix(in srgb, {color.text} 16%, transparent)","$description":"Neutral fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"neutral-soft":{"$value":"color-mix(in srgb, {color.text-subtle} 16%, transparent)","$description":"Soft neutral background of the neutral status pill.","$extensions":{"com.webority":{"platforms":["web"]}}},"neutral-text":{"$value":"{color.text-muted}","$description":"Text on the soft neutral background."},"on-neutral":{"$value":"{color.text}","$description":"Ink on a neutral fill."},"success":{"$value":"{palette.success}","$description":"Vivid success fill for badges, dots and success buttons."},"success-pressed":{"$value":"{palette.success-active}","$description":"Success fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"success-soft":{"$value":"{palette.success-10}","$description":"Soft success background of alerts and badges."},"success-border":{"$value":"{palette.success-30}","$description":"Tinted success border of alerts and badges.","$extensions":{"com.webority":{"platforms":["web"]}}},"success-text":{"$value":"{palette.success-text}","$description":"Success colour as text on a page or a soft success tint."},"success-text-on-soft":{"$value":"{palette.success-text}","$description":"Success text on its own soft tint, such as an alert heading.","$extensions":{"com.webority":{"platforms":["web"]}}},"success-strong":{"$value":"{palette.success-strong}","$description":"Deep success fill that carries its own ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-success":{"$value":"#FFFFFF","$description":"Ink on a solid success fill."},"on-success-strong":{"$value":"#FFFFFF","$description":"Ink on a deep success fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning":{"$value":"{palette.warning}","$description":"Vivid warning fill for badges, dots and warning buttons."},"warning-pressed":{"$value":"{palette.warning-active}","$description":"Warning fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning-soft":{"$value":"{palette.warning-10}","$description":"Soft warning background of alerts and badges."},"warning-border":{"$value":"{palette.warning-30}","$description":"Tinted warning border of alerts and badges.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning-text":{"$value":"{palette.warning-text}","$description":"Warning colour as text on a page or a soft warning tint."},"warning-text-on-soft":{"$value":"{palette.warning-text}","$description":"Warning text on its own soft tint, such as an alert heading.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning-strong":{"$value":"{palette.warning-strong}","$description":"Deep warning fill that carries its own ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning-strong-hover":{"$value":"{palette.warning-strong-hover}","$description":"Deep warning fill while a control is hovered or pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-warning":{"$value":"#FFFFFF","$description":"Ink on a solid warning fill."},"on-warning-strong":{"$value":"#FFFFFF","$description":"Ink on a deep warning fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"danger":{"$value":"{palette.danger}","$description":"Vivid danger fill for badges, dots and danger buttons."},"danger-pressed":{"$value":"{palette.danger-active}","$description":"Danger fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"danger-soft":{"$value":"{palette.danger-10}","$description":"Soft danger background of alerts and badges."},"danger-border":{"$value":"{palette.danger-30}","$description":"Tinted danger border of alerts and badges."},"danger-text":{"$value":"{palette.danger-text}","$description":"Danger colour as text on a page or a soft danger tint."},"danger-text-on-soft":{"$value":"{palette.danger-text}","$description":"Danger text on its own soft tint, such as an alert heading.","$extensions":{"com.webority":{"platforms":["web"]}}},"danger-strong":{"$value":"{palette.danger-strong}","$description":"Deep danger fill that carries its own ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"danger-strong-hover":{"$value":"{palette.danger-strong-hover}","$description":"Deep danger fill while a control is hovered or pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-danger":{"$value":"#FFFFFF","$description":"Ink on a solid danger fill."},"on-danger-strong":{"$value":"#FFFFFF","$description":"Ink on a deep danger fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"info":{"$value":"{palette.info}","$description":"Vivid info fill for badges, dots and info buttons."},"info-pressed":{"$value":"{palette.info-active}","$description":"Info fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"info-soft":{"$value":"{palette.info-10}","$description":"Soft info background of alerts and badges."},"info-border":{"$value":"{palette.info-30}","$description":"Tinted info border of alerts and badges.","$extensions":{"com.webority":{"platforms":["web"]}}},"info-text":{"$value":"{palette.info-text}","$description":"Info colour as text on a page or a soft info tint."},"info-text-on-soft":{"$value":"{palette.info-text}","$description":"Info text on its own soft tint, such as an alert heading.","$extensions":{"com.webority":{"platforms":["web"]}}},"info-strong":{"$value":"{palette.info-active}","$description":"Deep info fill that carries its own ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-info":{"$value":"#FFFFFF","$description":"Ink on a solid info fill."},"on-info-strong":{"$value":"#FFFFFF","$description":"Ink on a deep info fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-1":{"$value":"{palette.primary}","$description":"Colour of chart series 1, the brand primary.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-2":{"$value":"{palette.chart-2}","$description":"Colour of chart series 2 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-3":{"$value":"{palette.chart-3}","$description":"Colour of chart series 3 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-4":{"$value":"{palette.chart-4}","$description":"Colour of chart series 4 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-5":{"$value":"{palette.chart-5}","$description":"Colour of chart series 5 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-6":{"$value":"{palette.chart-6}","$description":"Colour of chart series 6 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-7":{"$value":"{palette.chart-7}","$description":"Colour of chart series 7 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-8":{"$value":"{palette.chart-8}","$description":"Colour of chart series 8 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-0":{"$value":"{palette.bg-muted}","$description":"Faintest step of the magnitude ramp, for empty heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-1":{"$value":"{palette.primary-10}","$description":"First step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-2":{"$value":"{palette.primary-20}","$description":"Second step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-3":{"$value":"{palette.primary-30}","$description":"Third step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-4":{"$value":"{palette.primary-50}","$description":"Fourth step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-5":{"$value":"{palette.primary-hover}","$description":"Fifth step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-6":{"$value":"{palette.primary-pressed}","$description":"Strongest step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-diverging-low":{"$value":"{palette.chart-diverging-low}","$description":"Colour of values below the midpoint in a diverging chart.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-diverging-mid":{"$value":"{palette.chart-diverging-mid}","$description":"Neutral midpoint colour of a diverging chart.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-diverging-high":{"$value":"{palette.chart-diverging-high}","$description":"Colour of values above the midpoint in a diverging chart.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-neutral":{"$value":"{palette.chart-neutral}","$description":"Context series colour, such as the last period, and the folded Other slice.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-grid":{"$value":"{color.border}","$description":"Gridline colour of charts.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-axis":{"$value":"{color.border-strong}","$description":"Axis line colour of charts.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-label":{"$value":"{color.text-subtle}","$description":"Tick and legend text colour of charts.","$extensions":{"com.webority":{"platforms":["web"]}}},"primary-pressed":{"$value":"{palette.phone-primary-pressed}","$description":"Primary fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["phone"]}}},"on-neutral-strong":{"$value":"{palette.phone-on-neutral-strong}","$description":"Ink on the solid grey fill of a neutral badge, banner or avatar.","$extensions":{"com.webority":{"platforms":["phone"]}}},"text-disabled":{"$value":"{palette.phone-text-disabled}","$description":"Text of a disabled control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"surface-pressed":{"$value":"{palette.phone-surface-pressed}","$description":"Wash over a surface while it is pressed.","$extensions":{"com.webority":{"platforms":["phone"]}}},"surface-hover":{"$value":"{palette.phone-surface-hover}","$description":"Wash over a surface under a pointer.","$extensions":{"com.webority":{"platforms":["phone"]}}},"surface-selected":{"$value":"{palette.phone-surface-selected}","$description":"Wash over a selected surface such as a chosen list row.","$extensions":{"com.webority":{"platforms":["phone"]}}},"surface-disabled":{"$value":"{palette.phone-surface-disabled}","$description":"Fill of a disabled surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"skeleton":{"$value":"{palette.phone-skeleton}","$description":"Base fill of a loading placeholder.","$extensions":{"com.webority":{"platforms":["phone"]}}},"skeleton-highlight":{"$value":"{palette.phone-skeleton-highlight}","$description":"Moving highlight across a loading placeholder.","$extensions":{"com.webority":{"platforms":["phone"]}}},"glass-fill":{"$value":"{palette.phone-glass-fill}","$description":"Translucent fill of a control sitting on a brand surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"glass-border":{"$value":"{palette.phone-glass-border}","$description":"Border of a translucent control on a brand surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"on-glass":{"$value":"{palette.phone-on-glass}","$description":"Ink on a translucent control on a brand surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"glass-badge":{"$value":"{palette.phone-glass-badge}","$description":"Badge fill on a translucent control on a brand surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-bg-focus":{"$value":"{palette.phone-field-bg-focus}","$description":"Fill of a focused input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-bg-disabled":{"$value":"{palette.phone-field-bg-disabled}","$description":"Fill of a disabled input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-border-error":{"$value":"{palette.phone-field-border-error}","$description":"Border of an input-like control holding an invalid value.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-label":{"$value":"{palette.phone-field-label}","$description":"Label above an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-text":{"$value":"{palette.phone-field-text}","$description":"Value text inside an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-text-disabled":{"$value":"{palette.phone-field-text-disabled}","$description":"Value text inside a disabled input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-placeholder":{"$value":"{palette.phone-field-placeholder}","$description":"Placeholder text inside an empty input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-placeholder-disabled":{"$value":"{palette.phone-field-placeholder-disabled}","$description":"Placeholder text inside a disabled input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-icon":{"$value":"{palette.phone-field-icon}","$description":"Icon inside an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-icon-focus":{"$value":"{palette.phone-field-icon-focus}","$description":"Icon inside a focused input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-icon-disabled":{"$value":"{palette.phone-field-icon-disabled}","$description":"Icon inside a disabled input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-caret":{"$value":"{palette.phone-field-caret}","$description":"Text caret inside an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-message":{"$value":"{palette.phone-field-message}","$description":"Error message under an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-1":{"$value":"{palette.phone-avatar-1}","$description":"Background behind a person's initials, picked by a hash of the name (slot 1 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-2":{"$value":"{palette.phone-avatar-2}","$description":"Background behind a person's initials, picked by a hash of the name (slot 2 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-3":{"$value":"{palette.phone-avatar-3}","$description":"Background behind a person's initials, picked by a hash of the name (slot 3 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-4":{"$value":"{palette.phone-avatar-4}","$description":"Background behind a person's initials, picked by a hash of the name (slot 4 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-5":{"$value":"{palette.phone-avatar-5}","$description":"Background behind a person's initials, picked by a hash of the name (slot 5 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-6":{"$value":"{palette.phone-avatar-6}","$description":"Background behind a person's initials, picked by a hash of the name (slot 6 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-7":{"$value":"{palette.phone-avatar-7}","$description":"Background behind a person's initials, picked by a hash of the name (slot 7 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-8":{"$value":"{palette.phone-avatar-8}","$description":"Background behind a person's initials, picked by a hash of the name (slot 8 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}}}`),effect:{"close-filter":{$type:`filter`,$value:`none`,$description:`Filter applied to a dark-ink close glyph such as the alert close button.`},"pressed-overlay":{$type:`overlay`,$value:`color-mix(in srgb, currentColor 12%, transparent)`,$description:`Translucent wash laid over a control while it is pressed.`},"hero-gradient":{$type:`gradient`,$value:`radial-gradient(ellipse 120% 80% at 50% 30%, #818CF8 0%, #4F46E5 35%, #4338CA 75%, #312E81 100%)`,$description:`Background gradient of the hero band on marketing pages.`},"cta-gradient":{$type:`gradient`,$value:`radial-gradient(ellipse 120% 100% at 50% 50%, #312E81 0%, #1E1B4B 60%, #0F0D2E 100%)`,$description:`Background gradient of the call-to-action band on marketing pages.`},$extensions:{"com.webority":{platforms:[`web`]}}},leading:{$type:`number`,heading:{$value:1.2,$description:`Line height of headings.`},body:{$value:1.55,$description:`Line height of running text and of any text that is not a heading or display text.`},display:{$value:1.05,$description:`Line height of display-size text such as hero titles.`}}},He={palette:{"phone-bg":{$value:`#0B0B12`},"phone-bg-subtle":{$value:`#13131C`},"phone-bg-muted":{$value:`#1C1C26`},"phone-surface":{$value:`#1C1C26`},"phone-surface-inverse":{$value:`#FAFAFA`},"phone-text":{$value:`#E2E2E2`},"phone-text-body":{$value:`#FAFAFA`},"phone-text-muted":{$value:`#B4B4BB`},"phone-text-subtle":{$value:`#919199`},"phone-text-inverse":{$value:`#0F0F1A`},"phone-link":{$value:`#9292EE`},"phone-border":{$value:`#27272F`},"phone-border-subtle":{$value:`#1C1C26`},"phone-focus-ring":{$value:`#7C7CE8`},"phone-scrim":{$value:`rgba(0, 0, 0, 0.65)`},"phone-field-bg":{$value:`#13131C`},"phone-field-border":{$value:`#27272F`},"phone-field-border-focus":{$value:`#3D5FB0`},"phone-primary":{$value:`#7C7CE8`},"phone-primary-hover":{$value:`#9292EE`},"phone-primary-soft":{$value:`#1F1F3D`},"phone-primary-text":{$value:`#8989EA`},"phone-on-primary":{$value:`#0F0F1A`},"phone-success":{$value:`#30C780`},"phone-success-text":{$value:`#30C780`},"phone-on-success":{$value:`#0F0F1A`},"phone-warning":{$value:`#FBBF24`},"phone-warning-text":{$value:`#FBBF24`},"phone-danger":{$value:`#F87171`},"phone-danger-text":{$value:`#F87171`},"phone-on-danger":{$value:`#0F0F1A`},"phone-danger-border":{$value:`#F87171`},"phone-info":{$value:`#60A5FA`},"phone-info-text":{$value:`#60A5FA`},"phone-on-info":{$value:`#0F0F1A`},"phone-neutral":{$value:`#1F1F26`},"phone-neutral-hover":{$value:`#2A2A33`},"phone-on-neutral":{$value:`#FAFAFA`},"phone-primary-pressed":{$value:`#A8A8F2`},"phone-on-neutral-strong":{$value:`#0F0F1A`},"phone-text-disabled":{$value:`#52525B`},"phone-surface-pressed":{$value:`rgba(255, 255, 255, 0.08)`},"phone-surface-hover":{$value:`rgba(255, 255, 255, 0.05)`},"phone-surface-selected":{$value:`rgba(124, 124, 232, 0.18)`},"phone-surface-disabled":{$value:`#1C1C26`},"phone-skeleton":{$value:`#1C1C26`},"phone-skeleton-highlight":{$value:`#27272F`},"phone-field-bg-focus":{$value:`#0B0B12`},"phone-field-bg-disabled":{$value:`#1C1C26`},"phone-field-border-error":{$value:`#8A2F42`},"phone-field-label":{$value:`#E4E6EE`},"phone-field-text":{$value:`#FAFAFA`},"phone-field-text-disabled":{$value:`#52525B`},"phone-field-placeholder":{$value:`#84848D`},"phone-field-placeholder-disabled":{$value:`#52525B`},"phone-field-icon":{$value:`#8B8B95`},"phone-field-icon-focus":{$value:`#D4D4DB`},"phone-field-icon-disabled":{$value:`#52525B`},"phone-field-caret":{$value:`#7C9EF0`},"phone-field-message":{$value:`#F87171`},"phone-avatar-1":{$value:`#8B8BEE`},"phone-avatar-2":{$value:`#2DD4BF`},"phone-avatar-3":{$value:`#FCD34D`},"phone-avatar-4":{$value:`#F472B6`},"phone-avatar-5":{$value:`#60A5FA`},"phone-avatar-6":{$value:`#A78BFA`},"phone-avatar-7":{$value:`#34D399`},"phone-avatar-8":{$value:`#F87171`},"phone-shadow-sm":{$value:`rgba(0, 0, 0, 0.4)`},"phone-shadow-md":{$value:`rgba(0, 0, 0, 0.5)`},"phone-shadow-lg":{$value:`rgba(0, 0, 0, 0.55)`},"phone-shadow-xl":{$value:`rgba(0, 0, 0, 0.6)`},"primary-5":{$value:`color-mix(in srgb, {palette.dark-primary} 10%, {palette.dark-bg-surface})`},"primary-10":{$value:`color-mix(in srgb, {palette.dark-primary} 16%, {palette.dark-bg-surface})`},"primary-15":{$value:`color-mix(in srgb, {palette.dark-primary} 21%, {palette.dark-bg-surface})`},"primary-20":{$value:`color-mix(in srgb, {palette.dark-primary} 26%, {palette.dark-bg-surface})`},"primary-30":{$value:`color-mix(in srgb, {palette.dark-primary} 40%, {palette.dark-bg-surface})`},"primary-50":{$value:`color-mix(in srgb, {palette.dark-primary} 62%, {palette.dark-bg-surface})`},"surface-mute":{$value:`{palette.dark-bg-muted}`},"surface-soft":{$value:`color-mix(in srgb, {palette.dark-primary} 10%, {palette.dark-bg-surface})`},"surface-violet-soft":{$value:`color-mix(in srgb, {palette.dark-primary} 6%, {palette.dark-bg-surface})`},"danger-5":{$value:`color-mix(in srgb, {palette.danger} 10%, {palette.dark-bg-surface})`},"neutral-bg-light":{$value:`{palette.dark-bg-surface}`},"neutral-bg-dark":{$value:`{palette.dark-bg-muted}`},"chart-1":{$value:`{palette.dark-primary}`},"chart-2":{$value:`{palette.dark-chart-2}`},"chart-3":{$value:`{palette.dark-chart-3}`},"chart-4":{$value:`{palette.dark-chart-4}`},"chart-5":{$value:`{palette.dark-chart-5}`},"chart-6":{$value:`{palette.dark-chart-6}`},"chart-7":{$value:`{palette.dark-chart-7}`},"chart-8":{$value:`{palette.dark-chart-8}`},"chart-seq-0":{$value:`{palette.dark-chart-seq-0}`},"chart-seq-1":{$value:`{palette.dark-chart-seq-1}`},"chart-seq-2":{$value:`{palette.dark-chart-seq-2}`},"chart-seq-3":{$value:`{palette.dark-chart-seq-3}`},"chart-seq-4":{$value:`{palette.dark-chart-seq-4}`},"chart-seq-5":{$value:`{palette.dark-chart-seq-5}`},"chart-seq-6":{$value:`{palette.dark-chart-seq-6}`},"chart-diverging-low":{$value:`{palette.dark-chart-diverging-low}`},"chart-diverging-mid":{$value:`{palette.dark-chart-diverging-mid}`},"chart-diverging-high":{$value:`{palette.dark-chart-diverging-high}`},"chart-neutral":{$value:`{palette.dark-chart-neutral}`}},color:{bg:{$value:`{palette.dark-bg-page}`},"bg-subtle":{$value:`{palette.dark-bg-elevated}`},"bg-muted":{$value:`{palette.dark-bg-muted}`},surface:{$value:`{palette.dark-bg-surface}`},"surface-inverse":{$value:`{palette.dark-text}`},text:{$value:`{palette.dark-text}`},"text-body":{$value:`{palette.dark-text}`},"text-muted":{$value:`{palette.dark-text-muted}`},"text-subtle":{$value:`{palette.dark-text-subtle}`},"text-inverse":{$value:`{palette.text-heading}`},link:{$value:`{palette.dark-primary}`},border:{$value:`{palette.dark-border}`},"border-subtle":{$value:`color-mix(in srgb, {palette.dark-border} 50%, transparent)`},"border-strong":{$value:`{palette.dark-border-strong}`},"field-bg":{$value:`{palette.dark-bg-muted}`},"field-border":{$value:`{palette.dark-field-border}`},"field-border-hover":{$value:`{palette.dark-field-border-hover}`},"field-border-focus":{$value:`{palette.dark-primary}`},scrim:{$value:`color-mix(in srgb, #000000 45%, transparent)`},"scrim-strong":{$value:`color-mix(in srgb, #000000 62%, transparent)`},"progress-track":{$value:`{palette.dark-progress-track}`},"progress-label":{$value:`#0F0F0F`},thumb:{$value:`color-mix(in srgb, {palette.dark-text} 12%, {palette.dark-bg-muted})`},primary:{$value:`{palette.dark-primary}`},"primary-hover":{$value:`{palette.dark-primary-hover}`},"primary-soft":{$value:`color-mix(in srgb, {palette.primary} 20%, transparent)`},"primary-text":{$value:`{palette.dark-primary}`},"on-primary":{$value:`#0F0F0F`},"success-soft":{$value:`color-mix(in srgb, {palette.success} 18%, transparent)`},"success-text":{$value:`color-mix(in srgb, {palette.success} 75%, white)`},"success-text-on-soft":{$value:`color-mix(in srgb, {palette.success} 65%, white)`},"success-strong":{$value:`{color.success-text}`},"on-success-strong":{$value:`#0F0F0F`},"warning-soft":{$value:`color-mix(in srgb, {palette.warning} 18%, transparent)`},"warning-text":{$value:`color-mix(in srgb, {palette.warning} 75%, white)`},"warning-text-on-soft":{$value:`color-mix(in srgb, {palette.warning} 65%, white)`},"warning-strong":{$value:`{color.warning-text}`},"on-warning-strong":{$value:`#0F0F0F`},"danger-soft":{$value:`color-mix(in srgb, {palette.danger} 18%, transparent)`},"danger-text":{$value:`color-mix(in srgb, {palette.danger} 75%, white)`},"danger-text-on-soft":{$value:`color-mix(in srgb, {palette.danger} 65%, white)`},"danger-strong":{$value:`{color.danger-text}`},"on-danger-strong":{$value:`#0F0F0F`},"info-soft":{$value:`color-mix(in srgb, {palette.info} 18%, transparent)`},"info-text":{$value:`color-mix(in srgb, {palette.info} 75%, white)`},"info-text-on-soft":{$value:`color-mix(in srgb, {palette.info} 65%, white)`},"info-strong":{$value:`{color.info-text}`},"on-info-strong":{$value:`#0F0F0F`},"chart-1":{$value:`{palette.dark-primary}`},"chart-2":{$value:`{palette.dark-chart-2}`},"chart-3":{$value:`{palette.dark-chart-3}`},"chart-4":{$value:`{palette.dark-chart-4}`},"chart-5":{$value:`{palette.dark-chart-5}`},"chart-6":{$value:`{palette.dark-chart-6}`},"chart-7":{$value:`{palette.dark-chart-7}`},"chart-8":{$value:`{palette.dark-chart-8}`},"chart-seq-0":{$value:`{palette.dark-chart-seq-0}`},"chart-seq-1":{$value:`{palette.dark-chart-seq-1}`},"chart-seq-2":{$value:`{palette.dark-chart-seq-2}`},"chart-seq-3":{$value:`{palette.dark-chart-seq-3}`},"chart-seq-4":{$value:`{palette.dark-chart-seq-4}`},"chart-seq-5":{$value:`{palette.dark-chart-seq-5}`},"chart-seq-6":{$value:`{palette.dark-chart-seq-6}`},"chart-diverging-low":{$value:`{palette.dark-chart-diverging-low}`},"chart-diverging-mid":{$value:`{palette.dark-chart-diverging-mid}`},"chart-diverging-high":{$value:`{palette.dark-chart-diverging-high}`},"chart-neutral":{$value:`{palette.dark-chart-neutral}`},success:{$value:`#30C780`},warning:{$value:`#FBBF24`},danger:{$value:`#F87171`},info:{$value:`#60A5FA`},"on-success":{$value:`#0F0F1A`},"on-warning":{$value:`#0F0F1A`},"on-danger":{$value:`#0F0F1A`},"on-info":{$value:`#0F0F1A`},"success-pressed":{$value:`color-mix(in srgb, {color.success} 85%, white)`},"warning-pressed":{$value:`color-mix(in srgb, {color.warning} 85%, white)`},"danger-pressed":{$value:`color-mix(in srgb, {color.danger} 85%, white)`},"info-pressed":{$value:`color-mix(in srgb, {color.info} 85%, white)`},"success-border":{$value:`color-mix(in srgb, {color.success} 40%, transparent)`},"warning-border":{$value:`color-mix(in srgb, {color.warning} 40%, transparent)`},"danger-border":{$value:`color-mix(in srgb, {color.danger} 40%, transparent)`},"info-border":{$value:`color-mix(in srgb, {color.info} 40%, transparent)`},"warning-strong-hover":{$value:`color-mix(in srgb, {color.warning-strong} 85%, white)`},"danger-strong-hover":{$value:`color-mix(in srgb, {color.danger-strong} 85%, white)`},scrollbar:{$value:`rgba(255, 255, 255, 0.18)`},"scrollbar-hover":{$value:`rgba(255, 255, 255, 0.28)`},"scrollbar-active":{$value:`rgba(255, 255, 255, 0.4)`}},effect:{"close-filter":{$value:`invert(1) grayscale(100%) brightness(200%)`}},component:{thumb:{shadow:{$value:`0 2px 6px rgba(255, 255, 255, 0.1)`},"shadow-hover":{$value:`0 2px 12px rgba(255, 255, 255, 0.2)`}}}},Ue={palette:JSON.parse(`{"$description":"Raw colours. Library-internal: product code, phone code and Canvas read meanings, never these.","$extensions":{"com.webority":{"internal":true}},"primary":{"$type":"color","$value":"#4F46E5","$description":"Brand primary fill for primary buttons, selected states and the first chart series."},"primary-hover":{"$type":"color","$value":"#6366F1","$description":"Primary fill while a control is hovered."},"primary-pressed":{"$type":"color","$value":"#4338CA","$description":"Primary fill while a control is pressed or active."},"primary-50":{"$type":"color","$value":"#818CF8","$description":"Strongest soft primary fill or border tint that follows dark mode."},"primary-30":{"$type":"color","$value":"#A5B4FC","$description":"Medium soft primary fill or border tint that follows dark mode."},"primary-20":{"$type":"color","$value":"#C7D2FE","$description":"Light soft primary fill or border tint that follows dark mode."},"primary-15":{"$type":"color","$value":"#DDE1FD","$description":"Lighter soft primary fill or border tint that follows dark mode."},"primary-10":{"$type":"color","$value":"#E0E7FF","$description":"Pale soft primary fill or border tint that follows dark mode."},"primary-5":{"$type":"color","$value":"#EEF2FF","$description":"Faintest soft primary fill or border tint that follows dark mode."},"text-heading":{"$type":"color","$value":"#071437","$description":"Heading ink for page and section titles."},"text-1":{"$type":"color","$value":"#252F4A","$description":"Primary body text, a step softer than the heading ink."},"text-2":{"$type":"color","$value":"#4B5675","$description":"Secondary text for descriptions, sub-labels and muted copy."},"text-3":{"$type":"color","$value":"#626A82","$description":"Tertiary text for hints, captions, labels, timestamps and placeholders."},"text-4":{"$type":"color","$value":"#99A1B7","$description":"Decorative faint ink, not for text a person must read."},"text-5":{"$type":"color","$value":"#C4CADA","$description":"Faintest ink, for decorative marks."},"bg-page":{"$type":"color","$value":"#F4F6F8","$description":"Page background behind every surface in light mode."},"bg-light":{"$type":"color","$value":"#FFFFFF","$description":"White card and panel surface, the lightest fill in light mode."},"bg-elevated":{"$type":"color","$value":"#F9FBFC","$description":"Subtle raised surface, one step off the page."},"bg-muted":{"$type":"color","$value":"#F5F6FA","$description":"Muted fill for grouped areas and quiet controls."},"field-bg":{"$type":"color","$value":"#F9FBFC","$description":"Resting fill of every input-like control, such as fields, selects and textareas."},"field-border":{"$type":"color","$value":"#DFE2EA","$description":"Resting border of every input-like control."},"field-border-hover":{"$type":"color","$value":"#C4CADA","$description":"Hover border of every input-like control."},"border-light":{"$type":"color","$value":"#EBEDF3","$description":"Default hairline border of cards, tables and dividers."},"border-soft":{"$type":"color","$value":"#F4F6F8","$description":"Softest border, for inner dividers."},"border-strong":{"$type":"color","$value":"#C4CADA","$description":"Strong border for emphasised separators, chart axes and unselected control outlines."},"progress-track":{"$type":"color","$value":"#E1E5EE","$description":"Unfilled track of a progress bar or meter."},"scrollbar":{"$type":"color","$value":"rgba(145, 158, 171, 0.45)","$description":"Resting thumb colour of a thin scrollbar."},"scrollbar-hover":{"$type":"color","$value":"rgba(145, 158, 171, 0.65)","$description":"Scrollbar thumb colour while it is hovered."},"scrollbar-active":{"$type":"color","$value":"rgba(145, 158, 171, 0.85)","$description":"Scrollbar thumb colour while it is dragged."},"surface-soft":{"$type":"color","$value":"#F2EFFE","$description":"Soft tint surface for marketing callouts and mega-menu hover."},"surface-violet":{"$type":"color","$value":"#ECE4FE","$description":"Violet-tinted surface for marketing section accents and callout cards."},"surface-violet-soft":{"$type":"color","$value":"#FCFCFC","$description":"Near-white surface for marketing section accents."},"surface-mute":{"$type":"color","$value":"#F9FBFC","$description":"Neutral wash surface for marketing sections and panels."},"ink":{"$type":"color","$value":"#000000","$description":"Pure black ink, the highest-contrast text colour."},"fg-2":{"$type":"color","$value":"{palette.text-1}","$description":"Marketing alias of the primary body text ink."},"fg-3":{"$type":"color","$value":"{palette.text-2}","$description":"Marketing alias of the secondary text ink."},"fg-4":{"$type":"color","$value":"{palette.text-3}","$description":"Marketing alias of the tertiary text ink."},"fg-5":{"$type":"color","$value":"{palette.text-5}","$description":"Marketing alias of the faintest text ink."},"neutral-border-dark":{"$type":"color","$value":"#EBEDF3","$description":"Border tone of table emphasis rows and dividers."},"neutral-border-light":{"$type":"color","$value":"#F9FBFC","$description":"Faintest border tone, for dividers."},"neutral-bg-dark":{"$type":"color","$value":"#F5F6FA","$description":"Muted background of table emphasis rows and mega-menu hover."},"neutral-bg-light":{"$type":"color","$value":"#F9FBFC","$description":"Faint background for table emphasis and mega-menu hover."},"accent-dark":{"$type":"color","$value":"{palette.primary-pressed}","$description":"Pressed and hover accent colour in CSS, following the pressed primary."},"primary-text":{"$type":"color","$value":"#ffffff","$description":"Text and icon colour on a solid primary fill, such as a primary button label."},"primary-ink":{"$type":"color","$value":"{palette.primary}","$description":"Primary as text and small glyphs on light surfaces."},"info-text":{"$type":"color","$value":"#1460ba","$description":"Info colour as text on light surfaces."},"info-active":{"$type":"color","$value":"#056EE9","$description":"Info ink for icons and active states on light surfaces."},"info":{"$type":"color","$value":"#056EE9","$description":"Vivid info fill for badges, dots and info buttons."},"info-50":{"$type":"color","$value":"#8DC2FF","$description":"Info tint 50 for borders and the strongest soft info fill."},"info-30":{"$type":"color","$value":"#BBDBFF","$description":"Info tint 30 for soft fills and borders of alerts and badges."},"info-20":{"$type":"color","$value":"#D1E6FF","$description":"Info tint 20 for soft fills behind info alerts and badges."},"info-10":{"$type":"color","$value":"#E9F3FF","$description":"Info tint 10, the soft background of info alerts and badges."},"info-5":{"$type":"color","$value":"#F3F9FF","$description":"Faintest info tint, for hover washes and soft info backgrounds."},"success-text":{"$type":"color","$value":"#0e7531","$description":"Success colour as text on light surfaces, darkened to pass AA."},"success-strong":{"$type":"color","$value":"#0e7531","$description":"Deep success fill behind white text, such as progress-bar labels."},"success-active":{"$type":"color","$value":"#04B440","$description":"Active success fill, the deepest vivid success tone."},"success":{"$type":"color","$value":"#04B440","$description":"Vivid success fill for badges, dots and success buttons."},"success-50":{"$type":"color","$value":"#8BE3A9","$description":"Success tint 50 for borders and the strongest soft success fill."},"success-30":{"$type":"color","$value":"#BAEECC","$description":"Success tint 30 for soft fills and borders of alerts and badges."},"success-20":{"$type":"color","$value":"#D1F4DD","$description":"Success tint 20 for soft fills behind success alerts and badges."},"success-10":{"$type":"color","$value":"#E8FAEE","$description":"Success tint 10, the soft background of success alerts and badges."},"success-5":{"$type":"color","$value":"#F3FCF6","$description":"Faintest success tint, for hover washes and soft success backgrounds."},"warning-text":{"$type":"color","$value":"#876100","$description":"Warning colour as text on light surfaces, darkened to pass AA."},"warning-strong":{"$type":"color","$value":"#9A6B00","$description":"Deep warning fill behind white text, such as the warning button."},"warning-strong-hover":{"$type":"color","$value":"#855C00","$description":"Deep warning fill while a warning button with white text is hovered."},"warning-active":{"$type":"color","$value":"#DFA000","$description":"Active warning fill, the deepest vivid warning tone."},"warning":{"$type":"color","$value":"#DFA000","$description":"Vivid warning fill for badges and dots."},"warning-50":{"$type":"color","$value":"#FBD880","$description":"Warning tint 50 for borders and the strongest soft warning fill."},"warning-30":{"$type":"color","$value":"#FDE8B3","$description":"Warning tint 30 for soft fills and borders of alerts and badges."},"warning-20":{"$type":"color","$value":"#FDEFCC","$description":"Warning tint 20 for soft fills behind warning alerts and badges."},"warning-10":{"$type":"color","$value":"#FFF8E6","$description":"Warning tint 10, the soft background of warning alerts and badges."},"warning-5":{"$type":"color","$value":"#FEFBF2","$description":"Faintest warning tint, for hover washes and soft warning backgrounds."},"danger-text":{"$type":"color","$value":"#CF1735","$description":"Error text colour for validation messages and danger text on light surfaces."},"danger-strong":{"$type":"color","$value":"#C81340","$description":"Deep danger fill behind white text, such as the danger button."},"danger-strong-hover":{"$type":"color","$value":"#AB1036","$description":"Deep danger fill while a danger button with white text is hovered."},"danger-active":{"$type":"color","$value":"#E82646","$description":"Active danger fill, the deepest vivid danger tone."},"danger":{"$type":"color","$value":"#E82646","$description":"Vivid danger fill for badges, dots and danger buttons."},"danger-50":{"$type":"color","$value":"#FC94AD","$description":"Danger tint 50 for borders and the strongest soft danger fill."},"danger-30":{"$type":"color","$value":"#FDBFCE","$description":"Danger tint 30 for soft fills and borders of alerts and badges."},"danger-20":{"$type":"color","$value":"#FED4DE","$description":"Danger tint 20 for soft fills behind danger alerts and badges."},"danger-10":{"$type":"color","$value":"#FFEAEF","$description":"Danger tint 10, the soft background of danger alerts and badges."},"danger-5":{"$type":"color","$value":"#FEF4F6","$description":"Faintest danger tint, for hover washes and soft danger backgrounds."},"chart-1":{"$type":"color","$value":"{palette.primary}","$description":"Colour of chart series 1, the brand primary."},"chart-2":{"$type":"color","$value":"#eb6834","$description":"Colour of chart series 2 of the eight categorical series."},"chart-3":{"$type":"color","$value":"#1baf7a","$description":"Colour of chart series 3 of the eight categorical series."},"chart-4":{"$type":"color","$value":"#eda100","$description":"Colour of chart series 4 of the eight categorical series."},"chart-5":{"$type":"color","$value":"#e87ba4","$description":"Colour of chart series 5 of the eight categorical series."},"chart-6":{"$type":"color","$value":"#008300","$description":"Colour of chart series 6 of the eight categorical series."},"chart-7":{"$type":"color","$value":"#2a78d6","$description":"Colour of chart series 7 of the eight categorical series."},"chart-8":{"$type":"color","$value":"#e34948","$description":"Colour of chart series 8 of the eight categorical series."},"chart-seq-0":{"$type":"color","$value":"{palette.bg-muted}","$description":"Faintest step of the magnitude ramp, for empty heatmap and calendar cells."},"chart-seq-1":{"$type":"color","$value":"{palette.primary-10}","$description":"First step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-2":{"$type":"color","$value":"{palette.primary-20}","$description":"Second step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-3":{"$type":"color","$value":"{palette.primary-30}","$description":"Third step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-4":{"$type":"color","$value":"{palette.primary-50}","$description":"Fourth step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-5":{"$type":"color","$value":"{palette.primary-hover}","$description":"Fifth step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-6":{"$type":"color","$value":"{palette.primary-pressed}","$description":"Strongest step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-diverging-low":{"$type":"color","$value":"#e34948","$description":"Colour of values below the midpoint in a diverging chart."},"chart-diverging-mid":{"$type":"color","$value":"#c4cada","$description":"Neutral midpoint colour of a diverging chart."},"chart-diverging-high":{"$type":"color","$value":"#2a78d6","$description":"Colour of values above the midpoint in a diverging chart."},"chart-neutral":{"$type":"color","$value":"#99a1b7","$description":"Context series colour, such as the last period, and the folded Other slice."},"dark-bg-page":{"$type":"color","$value":"#0f1117","$description":"Dark page background, the base of every dark-mode surface."},"dark-bg-elevated":{"$type":"color","$value":"#0d0f15","$description":"Subtle dark background, one step off the dark page."},"dark-bg-muted":{"$type":"color","$value":"#232733","$description":"Dark muted fill for grouped areas and quiet controls."},"dark-bg-surface":{"$type":"color","$value":"#181b23","$description":"Dark card and panel surface, one step above the dark page."},"dark-border":{"$type":"color","$value":"#2a2f3a","$description":"Dark hairline border of cards, tables and dividers."},"dark-border-strong":{"$type":"color","$value":"#3a414f","$description":"Stronger dark border for emphasised separators."},"dark-field-border":{"$type":"color","$value":"#2a2f3a","$description":"Resting border of input-like controls in dark mode."},"dark-field-border-hover":{"$type":"color","$value":"#3a414f","$description":"Hover border of input-like controls in dark mode."},"dark-progress-track":{"$type":"color","$value":"#323845","$description":"Unfilled track of a progress bar or meter in dark mode."},"dark-text":{"$type":"color","$value":"#e6e8ee","$description":"Primary body text colour in dark mode."},"dark-text-muted":{"$type":"color","$value":"#b4b9c6","$description":"Secondary text colour in dark mode."},"dark-text-subtle":{"$type":"color","$value":"#8a90a0","$description":"Tertiary text colour in dark mode, for hints and captions."},"dark-primary":{"$type":"color","$value":"#9590ef","$description":"Primary as text, rings, focus borders and the fill under dark ink in dark mode."},"dark-primary-hover":{"$type":"color","$value":"#a29df1","$description":"Primary fill while it is hovered in dark mode."},"dark-chart-2":{"$type":"color","$value":"#d95926","$description":"Dark-mode colour of chart series 2 of the categorical set."},"dark-chart-3":{"$type":"color","$value":"#199e70","$description":"Dark-mode colour of chart series 3 of the categorical set."},"dark-chart-4":{"$type":"color","$value":"#c98500","$description":"Dark-mode colour of chart series 4 of the categorical set."},"dark-chart-5":{"$type":"color","$value":"#d55181","$description":"Dark-mode colour of chart series 5 of the categorical set."},"dark-chart-6":{"$type":"color","$value":"#008300","$description":"Dark-mode colour of chart series 6 of the categorical set."},"dark-chart-7":{"$type":"color","$value":"#3987e5","$description":"Dark-mode colour of chart series 7 of the categorical set."},"dark-chart-8":{"$type":"color","$value":"#e66767","$description":"Dark-mode colour of chart series 8 of the categorical set."},"dark-chart-seq-0":{"$type":"color","$value":"#20242f","$description":"Dark-mode faintest step of the magnitude ramp, for empty heatmap cells."},"dark-chart-seq-1":{"$type":"color","$value":"#262c45","$description":"Dark-mode first step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-2":{"$type":"color","$value":"#2f3a70","$description":"Dark-mode second step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-3":{"$type":"color","$value":"#3b4ba0","$description":"Dark-mode third step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-4":{"$type":"color","$value":"#5168d2","$description":"Dark-mode fourth step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-5":{"$type":"color","$value":"#7a90ef","$description":"Dark-mode fifth step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-6":{"$type":"color","$value":"#b3c1f7","$description":"Dark-mode strongest step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-diverging-low":{"$type":"color","$value":"#e66767","$description":"Dark-mode colour of values below the midpoint in a diverging chart."},"dark-chart-diverging-mid":{"$type":"color","$value":"#3a414f","$description":"Dark-mode neutral midpoint colour of a diverging chart."},"dark-chart-diverging-high":{"$type":"color","$value":"#3987e5","$description":"Dark-mode colour of values above the midpoint in a diverging chart."},"dark-chart-neutral":{"$type":"color","$value":"#5d6475","$description":"Dark-mode context series colour, such as the last period."},"phone-bg":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-bg-subtle":{"$type":"color","$value":"#F8F8FB","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-bg-muted":{"$type":"color","$value":"#F1F1F5","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-inverse":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text":{"$type":"color","$value":"#252F4A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-body":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-muted":{"$type":"color","$value":"#52525B","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-subtle":{"$type":"color","$value":"#62626B","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-inverse":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-link":{"$type":"color","$value":"#5B5BD6","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-border":{"$type":"color","$value":"#E5E5EC","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-border-subtle":{"$type":"color","$value":"#EFEFF3","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-focus-ring":{"$type":"color","$value":"#5B5BD6","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-scrim":{"$type":"color","$value":"rgba(15, 15, 26, 0.5)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-scrim":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-bg":{"$type":"color","$value":"#F9FBFC","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-border":{"$type":"color","$value":"#EBEDF3","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-border-focus":{"$type":"color","$value":"#BED2F9","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary":{"$type":"color","$value":"#5B5BD6","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary-hover":{"$type":"color","$value":"#4F4FBF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary-soft":{"$type":"color","$value":"#EEEEFC","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary-text":{"$type":"color","$value":"#4F4FD3","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-primary":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-success":{"$type":"color","$value":"#18864F","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-success-text":{"$type":"color","$value":"#147042","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-success":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-warning":{"$type":"color","$value":"#F59E0B","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-warning-text":{"$type":"color","$value":"#8F5C06","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-warning":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-danger":{"$type":"color","$value":"#E12C32","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-danger-text":{"$type":"color","$value":"#BC1B20","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-danger":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-danger-border":{"$type":"color","$value":"#E5484D","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-info":{"$type":"color","$value":"#1B6EF5","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-info-text":{"$type":"color","$value":"#0958D9","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-info":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-neutral":{"$type":"color","$value":"#F4F4F8","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-neutral-hover":{"$type":"color","$value":"#E9E9F0","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-neutral":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary-pressed":{"$type":"color","$value":"#4040A8","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-neutral-strong":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-disabled":{"$type":"color","$value":"#B4B4BB","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-pressed":{"$type":"color","$value":"rgba(15, 15, 26, 0.06)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-hover":{"$type":"color","$value":"rgba(15, 15, 26, 0.04)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-selected":{"$type":"color","$value":"rgba(91, 91, 214, 0.1)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-disabled":{"$type":"color","$value":"#F1F1F5","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-skeleton":{"$type":"color","$value":"#EBEDF3","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-skeleton-highlight":{"$type":"color","$value":"#F5F6FA","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-glass-fill":{"$type":"color","$value":"rgba(255, 255, 255, 0.28)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-glass-border":{"$type":"color","$value":"rgba(255, 255, 255, 0.45)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-glass":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-glass-badge":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-bg-focus":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-bg-disabled":{"$type":"color","$value":"#F5F6FA","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-border-error":{"$type":"color","$value":"#FDBFCE","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-label":{"$type":"color","$value":"#242F4A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-text":{"$type":"color","$value":"#252F4A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-text-disabled":{"$type":"color","$value":"#C4CADA","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-placeholder":{"$type":"color","$value":"#626D8B","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-placeholder-disabled":{"$type":"color","$value":"#C4CADA","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-icon":{"$type":"color","$value":"#7A849F","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-icon-focus":{"$type":"color","$value":"#4B5675","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-icon-disabled":{"$type":"color","$value":"#C4CADA","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-caret":{"$type":"color","$value":"#5B8DEE","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-message":{"$type":"color","$value":"#D81736","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-1":{"$type":"color","$value":"#5B5BD6","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-2":{"$type":"color","$value":"#0A7979","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-3":{"$type":"color","$value":"#A45A05","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-4":{"$type":"color","$value":"#CD226E","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-5":{"$type":"color","$value":"#2462EB","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-6":{"$type":"color","$value":"#7C3AED","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-7":{"$type":"color","$value":"#047C57","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-8":{"$type":"color","$value":"#D42222","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-shadow-sm":{"$type":"color","$value":"rgba(0, 0, 0, 0.06)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-shadow-md":{"$type":"color","$value":"rgba(0, 0, 0, 0.08)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-shadow-lg":{"$type":"color","$value":"rgba(0, 0, 0, 0.1)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-shadow-xl":{"$type":"color","$value":"rgba(0, 0, 0, 0.14)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-thumb":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}}}`)},We={leading:{body:{$value:1.4},display:{$value:1.2}},color:{bg:{$value:`{palette.phone-bg}`},"bg-subtle":{$value:`{palette.phone-bg-subtle}`},"bg-muted":{$value:`{palette.phone-bg-muted}`},surface:{$value:`{palette.phone-surface}`},"surface-inverse":{$value:`{palette.phone-surface-inverse}`},text:{$value:`{palette.phone-text}`},"text-body":{$value:`{palette.phone-text-body}`},"text-muted":{$value:`{palette.phone-text-muted}`},"text-subtle":{$value:`{palette.phone-text-subtle}`},"text-inverse":{$value:`{palette.phone-text-inverse}`},link:{$value:`{palette.phone-link}`},border:{$value:`{palette.phone-border}`},"border-subtle":{$value:`{palette.phone-border-subtle}`},"focus-ring":{$value:`{palette.phone-focus-ring}`},scrim:{$value:`{palette.phone-scrim}`},"on-scrim":{$value:`{palette.phone-on-scrim}`},"field-bg":{$value:`{palette.phone-field-bg}`},"field-border":{$value:`{palette.phone-field-border}`},"field-border-focus":{$value:`{palette.phone-field-border-focus}`},primary:{$value:`{palette.phone-primary}`},"primary-hover":{$value:`{palette.phone-primary-hover}`},"primary-soft":{$value:`{palette.phone-primary-soft}`},"primary-text":{$value:`{palette.phone-primary-text}`},"on-primary":{$value:`{palette.phone-on-primary}`},success:{$value:`{palette.phone-success}`},"success-text":{$value:`{palette.phone-success-text}`},"on-success":{$value:`{palette.phone-on-success}`},warning:{$value:`{palette.phone-warning}`},"warning-text":{$value:`{palette.phone-warning-text}`},"on-warning":{$value:`{palette.phone-on-warning}`},danger:{$value:`{palette.phone-danger}`},"danger-text":{$value:`{palette.phone-danger-text}`},"on-danger":{$value:`{palette.phone-on-danger}`},"danger-border":{$value:`{palette.phone-danger-border}`},info:{$value:`{palette.phone-info}`},"info-text":{$value:`{palette.phone-info-text}`},"on-info":{$value:`{palette.phone-on-info}`},neutral:{$value:`{palette.phone-neutral}`},"neutral-hover":{$value:`{palette.phone-neutral-hover}`},"on-neutral":{$value:`{palette.phone-on-neutral}`},thumb:{$value:`{palette.phone-thumb}`}},shadow:{card:{$value:{color:`{palette.phone-shadow-sm}`,offsetX:{value:0,unit:`px`},offsetY:{value:2,unit:`px`},blur:{value:4,unit:`px`},spread:{value:0,unit:`px`}},$extensions:{"com.webority":{elevation:2}}},popover:{$value:{color:`{palette.phone-shadow-lg}`,offsetX:{value:0,unit:`px`},offsetY:{value:8,unit:`px`},blur:{value:16,unit:`px`},spread:{value:0,unit:`px`}},$extensions:{"com.webority":{elevation:8}}},modal:{$value:{color:`{palette.phone-shadow-xl}`,offsetX:{value:0,unit:`px`},offsetY:{value:12,unit:`px`},blur:{value:24,unit:`px`},spread:{value:0,unit:`px`}},$extensions:{"com.webority":{elevation:12}}},drawer:{$value:{color:`{palette.phone-shadow-xl}`,offsetX:{value:0,unit:`px`},offsetY:{value:12,unit:`px`},blur:{value:24,unit:`px`},spread:{value:0,unit:`px`}},$extensions:{"com.webority":{elevation:12}}}},radius:{sm:{$value:{value:6,unit:`px`}},xl:{$value:{value:20,unit:`px`}}},text:{xs:{$value:{value:11,unit:`px`}},sm:{$value:{value:13,unit:`px`}},base:{$value:{value:15,unit:`px`}},lg:{$value:{value:17,unit:`px`}},xl:{$value:{value:20,unit:`px`}},"2xl":{$value:{value:24,unit:`px`}},"3xl":{$value:{value:30,unit:`px`}},"4xl":{$value:{value:36,unit:`px`}},"5xl":{$value:{value:45,unit:`px`}},"6xl":{$value:{value:57,unit:`px`}},"7xl":{$value:{value:64,unit:`px`}},"8xl":{$value:{value:72,unit:`px`}}},font:{ui:{$value:[`System`]},display:{$value:[`System`]},mono:{$value:[`System`]}},motion:{duration:{fast:{$value:{value:160,unit:`ms`}},default:{$value:{value:240,unit:`ms`}},slow:{$value:{value:360,unit:`ms`}}}},component:{field:{sm:{radius:{$value:`{radius.md}`}},md:{radius:{$value:`{radius.md}`}},lg:{radius:{$value:`{radius.md}`}}},disabled:{opacity:{$value:.55}},press:{opacity:{$value:.85}}}},Ge=`no meaning uses this step; propose one on the Webority UI board (bootstrap-ui.md → Tokens)`,Ke=new Set(Object.keys(Ue.palette??{}).filter(e=>!e.startsWith(`$`))),qe=new Map,Je=/^\{palette\.([a-z0-9-]+)\}$/;for(let e of[Ve,He,We])if(!(!e?.color||typeof e.color!=`object`)){for(let[t,n]of Object.entries(e.color))if(!t.startsWith(`$`)&&n&&typeof n==`object`&&typeof n.$value==`string`){let e=n.$value.match(Je);if(e){let n=e[1],r=qe.get(n);r||(r=new Set,qe.set(n,r)),r.add(t)}}}function Ye(e){let t=qe.get(e);return t?[...t].sort():[]}function Xe(e,t){let n=Ye(e);return n.length===0?Ge:t===`web`?`read the meaning: ${n.map(e=>`var(--color-${e})`).join(` or `)}`:`read the meaning: ${n.map(e=>`theme.colors["${e}"]`).join(` or `)}`}function Ze(e){return Object.hasOwn(ve,e)?`read the meaning: var(--color-${ve[e]})`:Ge}var Qe=e=>e===`{`||e===`}`||e===`;`?` `:e;function $e(e,t){if(t===`markup`)return et(e);let n=``,r=null,i=!1,a=!1;for(let o=0;o<e.length;o+=1){let s=e[o],c=e[o+1];if(a)s===`*`&&c===`/`?(a=!1,n+=` `,o+=1):n+=s===`
60
- `?s:` `;else if(r)s===`\\`&&c!==void 0?(n+=`${Qe(s)}${Qe(c)}`,o+=1):(s===r&&(r=null),n+=Qe(s));else if(s===`"`||s===`'`)r=s,n+=s;else if(i)s===`)`&&(i=!1),n+=Qe(s);else if(s===`/`&&c===`*`)a=!0,n+=` `,o+=1;else if(t===`scss`&&s===`/`&&c===`/`){let t=e.indexOf(`
61
- `,o);if(t===-1)break;o=t-1}else s===`(`&&n.slice(-3).toLowerCase()===`url`&&(i=!0),n+=s}return n}function et(e){let t=[[`@*`,`*@`],[`<!--`,`-->`],[`/*`,`*/`]],n=``,r=0;for(;r<e.length;){let i=null;for(let n of t)if(e.startsWith(n[0],r)){i=n;break}if(!i){n+=e[r],r+=1;continue}let a=e.indexOf(i[1],r+i[0].length),o=a===-1?e.length:a+i[1].length;for(let t=r;t<o;t+=1)n+=e[t]===`
58
+ `}else if(i===`/`&&e[r+1]===`*`){for(r+=2;r<e.length&&!(e[r]===`*`&&e[r+1]===`/`);)r+=1;r+=1}else t+=i}return JSON.parse(t.replace(/,(\s*[}\]])/g,`$1`))}var Be=new Set([`error`,`warning`,`fatal`]);function Ve(e,t){if(t===null)return[];let n=h(process.execPath,[t,`check`,`--error-on-warnings`,`--reporter=json`,`--max-diagnostics=none`,`--colors=off`,`.`],{cwd:e,encoding:`utf8`,maxBuffer:256*1024*1024,windowsHide:!0}),r=null;try{r=JSON.parse(n.stdout??``).diagnostics}catch{r=null}if(!Array.isArray(r))return[[`lint:unreadable`,`Biome's report could not be read: ${String(n.stderr||n.stdout||``).slice(0,200)}`]];let i=new Map;for(let e of r){if(!Be.has(e.severity))continue;let t=(e.location?.path??`(config)`).replaceAll(`\\`,`/`),n=e.location?.start?.line,r=`${typeof n==`number`&&n>0?`${t}:${n}`:t} ${e.category}: ${String(e.message)}`;i.has(t)||i.set(t,[]),i.get(t).push(r)}return[...i].map(([e,t])=>[`lint:${e}`,t.join(`
59
+ `)])}var He=`metro-bridge`,Ue=`This app does not expose the Metro development bridge. In App.js, or a module App.js imports, set globalThis.__METRO_BRIDGE__ = createMetroBridge({ store, navigationRef, signIn, signOut, isSignedIn }) from @webority/mobile-core/metro inside if (__DEV__) (react-native-procedures.md -> Debugging: the development bridge).`,We=/import\s*\{[^}]*\bcreateMetroBridge\b[^}]*\}\s*from\s*["']@webority\/mobile-core\/metro["']/,Ge=/globalThis\.__METRO_BRIDGE__\s*=\s*createMetroBridge\s*\(/,Ke=[`App.js`,l(`src`,`App.js`)],qe=new Set([`.js`,`.jsx`,`.ts`,`.tsx`]),Je=new Set([`node_modules`,`ios`,`android`,`build`,`dist`,`coverage`,`vendor`]),Ye=e=>e.split(`\\`).join(`/`),Xe=e=>e.replace(/[^\n]/g,` `);function Ze(e){return e.replace(/\/\*[\s\S]*?\*\//g,Xe).replace(/\/\/[^\n]*/g,Xe)}function Qe(e){return t(e)?r(e,`utf8`):``}function $e(e){try{return JSON.parse(r(l(e,`package.json`),`utf8`))}catch{return null}}var et=/if\s*\(\s*__DEV__\s*\)\s*\{/g;function tt(e,t){for(let n of e.matchAll(et)){let r=n.index+n[0].length;if(r>t)break;let i=1;for(let n=r;n<t&&i>0;n++)e[n]===`{`?i++:e[n]===`}`&&i--;if(i>0)return!0}return!1}function nt(e){if(!e.includes(`__METRO_BRIDGE__`))return!1;let t=Ze(e);if(!We.test(t))return!1;let n=Ge.exec(t);return n!==null&&tt(t,n.index)}function*rt(e){for(let t of i(e,{withFileTypes:!0})){if(t.name.startsWith(`.`))continue;let n=l(e,t.name);t.isDirectory()?Je.has(t.name)||(yield*rt(n)):qe.has(c(t.name))&&(yield n)}}function it(e){let n=$e(e);if(!n?.dependencies?.[`react-native`]||!t(l(e,`ios`))&&!t(l(e,`android`)))return[];let r=typeof n.main==`string`&&n.main?n.main:`index.js`,i=Ye(f(e,l(e,r)));if([l(e,r),...Ke.map(t=>l(e,t))].some(e=>nt(Qe(e))))return[];for(let t of rt(e))if(nt(Qe(t)))return[];return[[`${He}:${i}`,`${i}:1 ${Ue}`]]}var at={color:JSON.parse(`{"$type":"color","bg":{"$value":"{palette.bg-page}","$description":"Page background behind the content area."},"bg-subtle":{"$value":"{palette.bg-elevated}","$description":"Subtle raised background for side panels and bands."},"bg-muted":{"$value":"{palette.bg-muted}","$description":"Muted background for grouped areas and quiet controls."},"surface":{"$value":"{palette.bg-light}","$description":"Card and panel surface."},"surface-inverse":{"$value":"{palette.text-heading}","$description":"Inverse band on a page, such as a dark footer or an inverse toast."},"surface-inverse-raised":{"$value":"color-mix(in srgb, {color.text-inverse} 5%, {color.surface-inverse})","$description":"A card or panel one layer up on an inverse band.","$extensions":{"com.webority":{"platforms":["web"]}}},"surface-inverse-elevated":{"$value":"color-mix(in srgb, {color.text-inverse} 9%, {color.surface-inverse})","$description":"A floating or highlighted surface two layers up on an inverse band.","$extensions":{"com.webority":{"platforms":["web"]}}},"surface-dark":{"$value":"{palette.text-heading}","$description":"Band that stays dark in light and dark mode, such as a site footer or a dark hero."},"surface-dark-border":{"$value":"color-mix(in srgb, {palette.bg-light} 14%, {palette.text-heading})","$description":"Hairline border or divider on a surface-dark band."},"on-surface-dark":{"$value":"{palette.bg-light}","$description":"Text and icons on a surface-dark band."},"on-surface-dark-muted":{"$value":"color-mix(in srgb, {palette.bg-light} 72%, {palette.text-heading})","$description":"Secondary text on a surface-dark band."},"text":{"$value":"{palette.text-heading}","$description":"Main heading and body ink."},"text-body":{"$value":"{palette.text-1}","$description":"Body copy on a tinted surface such as an alert body."},"text-muted":{"$value":"{palette.text-2}","$description":"Secondary text for descriptions and muted copy."},"text-subtle":{"$value":"{palette.text-3}","$description":"Tertiary text for hints, captions, timestamps and placeholders."},"text-inverse":{"$value":"{palette.bg-light}","$description":"Text on an inverse surface."},"link":{"$value":"{palette.primary-ink}","$description":"Interactive link text."},"border":{"$value":"{palette.border-light}","$description":"Hairline border of cards, tables and dividers."},"border-subtle":{"$value":"{palette.border-soft}","$description":"Softest border for inner dividers and list edges."},"border-strong":{"$value":"{palette.border-strong}","$description":"Stronger border for emphasised separators, chart axes and unselected control outlines.","$extensions":{"com.webority":{"platforms":["web"]}}},"field-bg":{"$value":"{palette.field-bg}","$description":"Resting fill of input-like controls such as fields and selects."},"field-border":{"$value":"{palette.field-border}","$description":"Resting border of an input-like control such as a field or select."},"field-border-hover":{"$value":"{palette.field-border-hover}","$description":"Hover border of an input-like control.","$extensions":{"com.webority":{"platforms":["web"]}}},"field-border-focus":{"$value":"{palette.primary-30}","$description":"Border of a focused, open or active control such as an input or select."},"focus-ring":{"$value":"{color.primary-text}","$description":"Colour of the keyboard focus ring drawn on focus-visible controls."},"scrim":{"$value":"color-mix(in srgb, {palette.text-heading} 45%, transparent)","$description":"Dim behind page-level backdrops such as drawers, modals and the shell."},"scrim-strong":{"$value":"color-mix(in srgb, {palette.text-heading} 62%, transparent)","$description":"Stronger dim behind media overlays that carry white ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-scrim":{"$value":"{palette.bg-light}","$description":"Ink on a scrim, such as the text of an overlay."},"progress-track":{"$value":"{palette.progress-track}","$description":"Unfilled track of a progress bar or meter.","$extensions":{"com.webority":{"platforms":["web"]}}},"progress-label":{"$value":"{palette.bg-light}","$description":"Label text inside a progress bar fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"thumb":{"$value":"{palette.bg-light}","$description":"Raised thumb that marks the selected option of a segmented control."},"scrollbar":{"$value":"{palette.scrollbar}","$description":"Resting thumb colour of a thin scrollbar.","$extensions":{"com.webority":{"platforms":["web"]}}},"scrollbar-hover":{"$value":"{palette.scrollbar-hover}","$description":"Scrollbar thumb colour while it is hovered.","$extensions":{"com.webority":{"platforms":["web"]}}},"scrollbar-active":{"$value":"{palette.scrollbar-active}","$description":"Scrollbar thumb colour while it is dragged.","$extensions":{"com.webority":{"platforms":["web"]}}},"primary":{"$value":"{palette.primary}","$description":"Primary fill for buttons, selected states and borders."},"primary-hover":{"$value":"{palette.primary-pressed}","$description":"Primary fill while a control is hovered or pressed."},"primary-soft":{"$value":"{palette.primary-10}","$description":"Soft primary tint behind selected and highlighted rows."},"primary-text":{"$value":"{palette.primary-ink}","$description":"Primary as text and small glyphs on a page."},"on-primary":{"$value":"{palette.primary-text}","$description":"Text and icon colour on a solid primary fill."},"primary-wash":{"$value":"color-mix(in srgb, {color.primary} 8%, transparent)","$description":"Faint translucent primary wash over a surface."},"primary-wash-strong":{"$value":"color-mix(in srgb, {color.primary} 20%, transparent)","$description":"Stronger translucent primary wash over a surface."},"neutral":{"$value":"color-mix(in srgb, {color.text} 8%, transparent)","$description":"Quiet unbranded fill for supporting actions such as Back, Skip and Close."},"neutral-hover":{"$value":"color-mix(in srgb, {color.text} 12%, transparent)","$description":"Neutral fill while a control is hovered."},"neutral-pressed":{"$value":"color-mix(in srgb, {color.text} 16%, transparent)","$description":"Neutral fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"neutral-soft":{"$value":"color-mix(in srgb, {color.text-subtle} 16%, transparent)","$description":"Soft neutral background of the neutral status pill.","$extensions":{"com.webority":{"platforms":["web"]}}},"neutral-text":{"$value":"{color.text-muted}","$description":"Text on the soft neutral background."},"on-neutral":{"$value":"{color.text}","$description":"Ink on a neutral fill."},"success":{"$value":"{palette.success}","$description":"Vivid success fill for badges, dots and success buttons."},"success-pressed":{"$value":"{palette.success-active}","$description":"Success fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"success-soft":{"$value":"{palette.success-10}","$description":"Soft success background of alerts and badges."},"success-border":{"$value":"{palette.success-30}","$description":"Tinted success border of alerts and badges.","$extensions":{"com.webority":{"platforms":["web"]}}},"success-text":{"$value":"{palette.success-text}","$description":"Success colour as text on a page or a soft success tint."},"success-text-on-soft":{"$value":"{palette.success-text}","$description":"Success text on its own soft tint, such as an alert heading.","$extensions":{"com.webority":{"platforms":["web"]}}},"success-strong":{"$value":"{palette.success-strong}","$description":"Deep success fill that carries its own ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-success":{"$value":"#FFFFFF","$description":"Ink on a solid success fill."},"on-success-strong":{"$value":"#FFFFFF","$description":"Ink on a deep success fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning":{"$value":"{palette.warning}","$description":"Vivid warning fill for badges, dots and warning buttons."},"warning-pressed":{"$value":"{palette.warning-active}","$description":"Warning fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning-soft":{"$value":"{palette.warning-10}","$description":"Soft warning background of alerts and badges."},"warning-border":{"$value":"{palette.warning-30}","$description":"Tinted warning border of alerts and badges.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning-text":{"$value":"{palette.warning-text}","$description":"Warning colour as text on a page or a soft warning tint."},"warning-text-on-soft":{"$value":"{palette.warning-text}","$description":"Warning text on its own soft tint, such as an alert heading.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning-strong":{"$value":"{palette.warning-strong}","$description":"Deep warning fill that carries its own ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"warning-strong-hover":{"$value":"{palette.warning-strong-hover}","$description":"Deep warning fill while a control is hovered or pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-warning":{"$value":"#FFFFFF","$description":"Ink on a solid warning fill."},"on-warning-strong":{"$value":"#FFFFFF","$description":"Ink on a deep warning fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"danger":{"$value":"{palette.danger}","$description":"Vivid danger fill for badges, dots and danger buttons."},"danger-pressed":{"$value":"{palette.danger-active}","$description":"Danger fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"danger-soft":{"$value":"{palette.danger-10}","$description":"Soft danger background of alerts and badges."},"danger-border":{"$value":"{palette.danger-30}","$description":"Tinted danger border of alerts and badges."},"danger-text":{"$value":"{palette.danger-text}","$description":"Danger colour as text on a page or a soft danger tint."},"danger-text-on-soft":{"$value":"{palette.danger-text}","$description":"Danger text on its own soft tint, such as an alert heading.","$extensions":{"com.webority":{"platforms":["web"]}}},"danger-strong":{"$value":"{palette.danger-strong}","$description":"Deep danger fill that carries its own ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"danger-strong-hover":{"$value":"{palette.danger-strong-hover}","$description":"Deep danger fill while a control is hovered or pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-danger":{"$value":"#FFFFFF","$description":"Ink on a solid danger fill."},"on-danger-strong":{"$value":"#FFFFFF","$description":"Ink on a deep danger fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"info":{"$value":"{palette.info}","$description":"Vivid info fill for badges, dots and info buttons."},"info-pressed":{"$value":"{palette.info-active}","$description":"Info fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["web"]}}},"info-soft":{"$value":"{palette.info-10}","$description":"Soft info background of alerts and badges."},"info-border":{"$value":"{palette.info-30}","$description":"Tinted info border of alerts and badges.","$extensions":{"com.webority":{"platforms":["web"]}}},"info-text":{"$value":"{palette.info-text}","$description":"Info colour as text on a page or a soft info tint."},"info-text-on-soft":{"$value":"{palette.info-text}","$description":"Info text on its own soft tint, such as an alert heading.","$extensions":{"com.webority":{"platforms":["web"]}}},"info-strong":{"$value":"{palette.info-active}","$description":"Deep info fill that carries its own ink.","$extensions":{"com.webority":{"platforms":["web"]}}},"on-info":{"$value":"#FFFFFF","$description":"Ink on a solid info fill."},"on-info-strong":{"$value":"#FFFFFF","$description":"Ink on a deep info fill.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-1":{"$value":"{palette.primary}","$description":"Colour of chart series 1, the brand primary.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-2":{"$value":"{palette.chart-2}","$description":"Colour of chart series 2 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-3":{"$value":"{palette.chart-3}","$description":"Colour of chart series 3 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-4":{"$value":"{palette.chart-4}","$description":"Colour of chart series 4 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-5":{"$value":"{palette.chart-5}","$description":"Colour of chart series 5 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-6":{"$value":"{palette.chart-6}","$description":"Colour of chart series 6 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-7":{"$value":"{palette.chart-7}","$description":"Colour of chart series 7 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-8":{"$value":"{palette.chart-8}","$description":"Colour of chart series 8 of the eight categorical series.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-0":{"$value":"{palette.bg-muted}","$description":"Faintest step of the magnitude ramp, for empty heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-1":{"$value":"{palette.primary-10}","$description":"First step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-2":{"$value":"{palette.primary-20}","$description":"Second step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-3":{"$value":"{palette.primary-30}","$description":"Third step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-4":{"$value":"{palette.primary-50}","$description":"Fourth step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-5":{"$value":"{palette.primary-hover}","$description":"Fifth step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-seq-6":{"$value":"{palette.primary-pressed}","$description":"Strongest step of the one-hue magnitude ramp for heatmap and calendar cells.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-diverging-low":{"$value":"{palette.chart-diverging-low}","$description":"Colour of values below the midpoint in a diverging chart.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-diverging-mid":{"$value":"{palette.chart-diverging-mid}","$description":"Neutral midpoint colour of a diverging chart.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-diverging-high":{"$value":"{palette.chart-diverging-high}","$description":"Colour of values above the midpoint in a diverging chart.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-neutral":{"$value":"{palette.chart-neutral}","$description":"Context series colour, such as the last period, and the folded Other slice.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-grid":{"$value":"{color.border}","$description":"Gridline colour of charts.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-axis":{"$value":"{color.border-strong}","$description":"Axis line colour of charts.","$extensions":{"com.webority":{"platforms":["web"]}}},"chart-label":{"$value":"{color.text-subtle}","$description":"Tick and legend text colour of charts.","$extensions":{"com.webority":{"platforms":["web"]}}},"primary-pressed":{"$value":"{palette.phone-primary-pressed}","$description":"Primary fill while a control is pressed.","$extensions":{"com.webority":{"platforms":["phone"]}}},"on-neutral-strong":{"$value":"{palette.phone-on-neutral-strong}","$description":"Ink on the solid grey fill of a neutral badge, banner or avatar.","$extensions":{"com.webority":{"platforms":["phone"]}}},"text-disabled":{"$value":"{palette.phone-text-disabled}","$description":"Text of a disabled control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"surface-pressed":{"$value":"{palette.phone-surface-pressed}","$description":"Wash over a surface while it is pressed.","$extensions":{"com.webority":{"platforms":["phone"]}}},"surface-hover":{"$value":"{palette.phone-surface-hover}","$description":"Wash over a surface under a pointer.","$extensions":{"com.webority":{"platforms":["phone"]}}},"surface-selected":{"$value":"{palette.phone-surface-selected}","$description":"Wash over a selected surface such as a chosen list row.","$extensions":{"com.webority":{"platforms":["phone"]}}},"surface-disabled":{"$value":"{palette.phone-surface-disabled}","$description":"Fill of a disabled surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"skeleton":{"$value":"{palette.phone-skeleton}","$description":"Base fill of a loading placeholder.","$extensions":{"com.webority":{"platforms":["phone"]}}},"skeleton-highlight":{"$value":"{palette.phone-skeleton-highlight}","$description":"Moving highlight across a loading placeholder.","$extensions":{"com.webority":{"platforms":["phone"]}}},"glass-fill":{"$value":"{palette.phone-glass-fill}","$description":"Translucent fill of a control sitting on a brand surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"glass-border":{"$value":"{palette.phone-glass-border}","$description":"Border of a translucent control on a brand surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"on-glass":{"$value":"{palette.phone-on-glass}","$description":"Ink on a translucent control on a brand surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"glass-badge":{"$value":"{palette.phone-glass-badge}","$description":"Badge fill on a translucent control on a brand surface.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-bg-focus":{"$value":"{palette.phone-field-bg-focus}","$description":"Fill of a focused input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-bg-disabled":{"$value":"{palette.phone-field-bg-disabled}","$description":"Fill of a disabled input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-border-error":{"$value":"{palette.phone-field-border-error}","$description":"Border of an input-like control holding an invalid value.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-label":{"$value":"{palette.phone-field-label}","$description":"Label above an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-text":{"$value":"{palette.phone-field-text}","$description":"Value text inside an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-text-disabled":{"$value":"{palette.phone-field-text-disabled}","$description":"Value text inside a disabled input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-placeholder":{"$value":"{palette.phone-field-placeholder}","$description":"Placeholder text inside an empty input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-placeholder-disabled":{"$value":"{palette.phone-field-placeholder-disabled}","$description":"Placeholder text inside a disabled input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-icon":{"$value":"{palette.phone-field-icon}","$description":"Icon inside an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-icon-focus":{"$value":"{palette.phone-field-icon-focus}","$description":"Icon inside a focused input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-icon-disabled":{"$value":"{palette.phone-field-icon-disabled}","$description":"Icon inside a disabled input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-caret":{"$value":"{palette.phone-field-caret}","$description":"Text caret inside an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"field-message":{"$value":"{palette.phone-field-message}","$description":"Error message under an input-like control.","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-1":{"$value":"{palette.phone-avatar-1}","$description":"Background behind a person's initials, picked by a hash of the name (slot 1 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-2":{"$value":"{palette.phone-avatar-2}","$description":"Background behind a person's initials, picked by a hash of the name (slot 2 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-3":{"$value":"{palette.phone-avatar-3}","$description":"Background behind a person's initials, picked by a hash of the name (slot 3 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-4":{"$value":"{palette.phone-avatar-4}","$description":"Background behind a person's initials, picked by a hash of the name (slot 4 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-5":{"$value":"{palette.phone-avatar-5}","$description":"Background behind a person's initials, picked by a hash of the name (slot 5 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-6":{"$value":"{palette.phone-avatar-6}","$description":"Background behind a person's initials, picked by a hash of the name (slot 6 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-7":{"$value":"{palette.phone-avatar-7}","$description":"Background behind a person's initials, picked by a hash of the name (slot 7 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}},"avatar-8":{"$value":"{palette.phone-avatar-8}","$description":"Background behind a person's initials, picked by a hash of the name (slot 8 of 8).","$extensions":{"com.webority":{"platforms":["phone"]}}}}`),effect:{"close-filter":{$type:`filter`,$value:`none`,$description:`Filter applied to a dark-ink close glyph such as the alert close button.`},"pressed-overlay":{$type:`overlay`,$value:`color-mix(in srgb, currentColor 12%, transparent)`,$description:`Translucent wash laid over a control while it is pressed.`},"hero-gradient":{$type:`gradient`,$value:`radial-gradient(ellipse 120% 80% at 50% 30%, #818CF8 0%, #4F46E5 35%, #4338CA 75%, #312E81 100%)`,$description:`Background gradient of the hero band on marketing pages.`},"cta-gradient":{$type:`gradient`,$value:`radial-gradient(ellipse 120% 100% at 50% 50%, #312E81 0%, #1E1B4B 60%, #0F0D2E 100%)`,$description:`Background gradient of the call-to-action band on marketing pages.`},$extensions:{"com.webority":{platforms:[`web`]}}},leading:{$type:`number`,heading:{$value:1.2,$description:`Line height of headings.`},body:{$value:1.55,$description:`Line height of running text and of any text that is not a heading or display text.`},display:{$value:1.05,$description:`Line height of display-size text such as hero titles.`}}},ot={palette:{"phone-bg":{$value:`#0B0B12`},"phone-bg-subtle":{$value:`#13131C`},"phone-bg-muted":{$value:`#1C1C26`},"phone-surface":{$value:`#1C1C26`},"phone-surface-inverse":{$value:`#FAFAFA`},"phone-text":{$value:`#E2E2E2`},"phone-text-body":{$value:`#FAFAFA`},"phone-text-muted":{$value:`#B4B4BB`},"phone-text-subtle":{$value:`#919199`},"phone-text-inverse":{$value:`#0F0F1A`},"phone-link":{$value:`#9292EE`},"phone-border":{$value:`#27272F`},"phone-border-subtle":{$value:`#1C1C26`},"phone-focus-ring":{$value:`#7C7CE8`},"phone-scrim":{$value:`rgba(0, 0, 0, 0.65)`},"phone-field-bg":{$value:`#13131C`},"phone-field-border":{$value:`#27272F`},"phone-field-border-focus":{$value:`#3D5FB0`},"phone-primary":{$value:`#7C7CE8`},"phone-primary-hover":{$value:`#9292EE`},"phone-primary-soft":{$value:`#1F1F3D`},"phone-primary-text":{$value:`#8989EA`},"phone-on-primary":{$value:`#0F0F1A`},"phone-success":{$value:`#30C780`},"phone-success-text":{$value:`#30C780`},"phone-on-success":{$value:`#0F0F1A`},"phone-warning":{$value:`#FBBF24`},"phone-warning-text":{$value:`#FBBF24`},"phone-danger":{$value:`#F87171`},"phone-danger-text":{$value:`#F87171`},"phone-on-danger":{$value:`#0F0F1A`},"phone-danger-border":{$value:`#F87171`},"phone-info":{$value:`#60A5FA`},"phone-info-text":{$value:`#60A5FA`},"phone-on-info":{$value:`#0F0F1A`},"phone-neutral":{$value:`#1F1F26`},"phone-neutral-hover":{$value:`#2A2A33`},"phone-on-neutral":{$value:`#FAFAFA`},"phone-primary-pressed":{$value:`#A8A8F2`},"phone-on-neutral-strong":{$value:`#0F0F1A`},"phone-text-disabled":{$value:`#52525B`},"phone-surface-pressed":{$value:`rgba(255, 255, 255, 0.08)`},"phone-surface-hover":{$value:`rgba(255, 255, 255, 0.05)`},"phone-surface-selected":{$value:`rgba(124, 124, 232, 0.18)`},"phone-surface-disabled":{$value:`#1C1C26`},"phone-skeleton":{$value:`#1C1C26`},"phone-skeleton-highlight":{$value:`#27272F`},"phone-field-bg-focus":{$value:`#0B0B12`},"phone-field-bg-disabled":{$value:`#1C1C26`},"phone-field-border-error":{$value:`#8A2F42`},"phone-field-label":{$value:`#E4E6EE`},"phone-field-text":{$value:`#FAFAFA`},"phone-field-text-disabled":{$value:`#52525B`},"phone-field-placeholder":{$value:`#84848D`},"phone-field-placeholder-disabled":{$value:`#52525B`},"phone-field-icon":{$value:`#8B8B95`},"phone-field-icon-focus":{$value:`#D4D4DB`},"phone-field-icon-disabled":{$value:`#52525B`},"phone-field-caret":{$value:`#7C9EF0`},"phone-field-message":{$value:`#F87171`},"phone-avatar-1":{$value:`#8B8BEE`},"phone-avatar-2":{$value:`#2DD4BF`},"phone-avatar-3":{$value:`#FCD34D`},"phone-avatar-4":{$value:`#F472B6`},"phone-avatar-5":{$value:`#60A5FA`},"phone-avatar-6":{$value:`#A78BFA`},"phone-avatar-7":{$value:`#34D399`},"phone-avatar-8":{$value:`#F87171`},"phone-shadow-sm":{$value:`rgba(0, 0, 0, 0.4)`},"phone-shadow-md":{$value:`rgba(0, 0, 0, 0.5)`},"phone-shadow-lg":{$value:`rgba(0, 0, 0, 0.55)`},"phone-shadow-xl":{$value:`rgba(0, 0, 0, 0.6)`},"primary-5":{$value:`color-mix(in srgb, {palette.dark-primary} 10%, {palette.dark-bg-surface})`},"primary-10":{$value:`color-mix(in srgb, {palette.dark-primary} 16%, {palette.dark-bg-surface})`},"primary-15":{$value:`color-mix(in srgb, {palette.dark-primary} 21%, {palette.dark-bg-surface})`},"primary-20":{$value:`color-mix(in srgb, {palette.dark-primary} 26%, {palette.dark-bg-surface})`},"primary-30":{$value:`color-mix(in srgb, {palette.dark-primary} 40%, {palette.dark-bg-surface})`},"primary-50":{$value:`color-mix(in srgb, {palette.dark-primary} 62%, {palette.dark-bg-surface})`},"surface-mute":{$value:`{palette.dark-bg-muted}`},"surface-soft":{$value:`color-mix(in srgb, {palette.dark-primary} 10%, {palette.dark-bg-surface})`},"surface-violet-soft":{$value:`color-mix(in srgb, {palette.dark-primary} 6%, {palette.dark-bg-surface})`},"danger-5":{$value:`color-mix(in srgb, {palette.danger} 10%, {palette.dark-bg-surface})`},"neutral-bg-light":{$value:`{palette.dark-bg-surface}`},"neutral-bg-dark":{$value:`{palette.dark-bg-muted}`},"chart-1":{$value:`{palette.dark-primary}`},"chart-2":{$value:`{palette.dark-chart-2}`},"chart-3":{$value:`{palette.dark-chart-3}`},"chart-4":{$value:`{palette.dark-chart-4}`},"chart-5":{$value:`{palette.dark-chart-5}`},"chart-6":{$value:`{palette.dark-chart-6}`},"chart-7":{$value:`{palette.dark-chart-7}`},"chart-8":{$value:`{palette.dark-chart-8}`},"chart-seq-0":{$value:`{palette.dark-chart-seq-0}`},"chart-seq-1":{$value:`{palette.dark-chart-seq-1}`},"chart-seq-2":{$value:`{palette.dark-chart-seq-2}`},"chart-seq-3":{$value:`{palette.dark-chart-seq-3}`},"chart-seq-4":{$value:`{palette.dark-chart-seq-4}`},"chart-seq-5":{$value:`{palette.dark-chart-seq-5}`},"chart-seq-6":{$value:`{palette.dark-chart-seq-6}`},"chart-diverging-low":{$value:`{palette.dark-chart-diverging-low}`},"chart-diverging-mid":{$value:`{palette.dark-chart-diverging-mid}`},"chart-diverging-high":{$value:`{palette.dark-chart-diverging-high}`},"chart-neutral":{$value:`{palette.dark-chart-neutral}`}},color:{bg:{$value:`{palette.dark-bg-page}`},"bg-subtle":{$value:`{palette.dark-bg-elevated}`},"bg-muted":{$value:`{palette.dark-bg-muted}`},surface:{$value:`{palette.dark-bg-surface}`},"surface-inverse":{$value:`{palette.dark-text}`},text:{$value:`{palette.dark-text}`},"text-body":{$value:`{palette.dark-text}`},"text-muted":{$value:`{palette.dark-text-muted}`},"text-subtle":{$value:`{palette.dark-text-subtle}`},"text-inverse":{$value:`{palette.text-heading}`},link:{$value:`{palette.dark-primary}`},border:{$value:`{palette.dark-border}`},"border-subtle":{$value:`color-mix(in srgb, {palette.dark-border} 50%, transparent)`},"border-strong":{$value:`{palette.dark-border-strong}`},"field-bg":{$value:`{palette.dark-bg-muted}`},"field-border":{$value:`{palette.dark-field-border}`},"field-border-hover":{$value:`{palette.dark-field-border-hover}`},"field-border-focus":{$value:`{palette.dark-primary}`},scrim:{$value:`color-mix(in srgb, #000000 45%, transparent)`},"scrim-strong":{$value:`color-mix(in srgb, #000000 62%, transparent)`},"progress-track":{$value:`{palette.dark-progress-track}`},"progress-label":{$value:`#0F0F0F`},thumb:{$value:`color-mix(in srgb, {palette.dark-text} 12%, {palette.dark-bg-muted})`},primary:{$value:`{palette.dark-primary}`},"primary-hover":{$value:`{palette.dark-primary-hover}`},"primary-soft":{$value:`color-mix(in srgb, {palette.primary} 20%, transparent)`},"primary-text":{$value:`{palette.dark-primary}`},"on-primary":{$value:`#0F0F0F`},"success-soft":{$value:`color-mix(in srgb, {palette.success} 18%, transparent)`},"success-text":{$value:`color-mix(in srgb, {palette.success} 75%, white)`},"success-text-on-soft":{$value:`color-mix(in srgb, {palette.success} 65%, white)`},"success-strong":{$value:`{color.success-text}`},"on-success-strong":{$value:`#0F0F0F`},"warning-soft":{$value:`color-mix(in srgb, {palette.warning} 18%, transparent)`},"warning-text":{$value:`color-mix(in srgb, {palette.warning} 75%, white)`},"warning-text-on-soft":{$value:`color-mix(in srgb, {palette.warning} 65%, white)`},"warning-strong":{$value:`{color.warning-text}`},"on-warning-strong":{$value:`#0F0F0F`},"danger-soft":{$value:`color-mix(in srgb, {palette.danger} 18%, transparent)`},"danger-text":{$value:`color-mix(in srgb, {palette.danger} 75%, white)`},"danger-text-on-soft":{$value:`color-mix(in srgb, {palette.danger} 65%, white)`},"danger-strong":{$value:`{color.danger-text}`},"on-danger-strong":{$value:`#0F0F0F`},"info-soft":{$value:`color-mix(in srgb, {palette.info} 18%, transparent)`},"info-text":{$value:`color-mix(in srgb, {palette.info} 75%, white)`},"info-text-on-soft":{$value:`color-mix(in srgb, {palette.info} 65%, white)`},"info-strong":{$value:`{color.info-text}`},"on-info-strong":{$value:`#0F0F0F`},"chart-1":{$value:`{palette.dark-primary}`},"chart-2":{$value:`{palette.dark-chart-2}`},"chart-3":{$value:`{palette.dark-chart-3}`},"chart-4":{$value:`{palette.dark-chart-4}`},"chart-5":{$value:`{palette.dark-chart-5}`},"chart-6":{$value:`{palette.dark-chart-6}`},"chart-7":{$value:`{palette.dark-chart-7}`},"chart-8":{$value:`{palette.dark-chart-8}`},"chart-seq-0":{$value:`{palette.dark-chart-seq-0}`},"chart-seq-1":{$value:`{palette.dark-chart-seq-1}`},"chart-seq-2":{$value:`{palette.dark-chart-seq-2}`},"chart-seq-3":{$value:`{palette.dark-chart-seq-3}`},"chart-seq-4":{$value:`{palette.dark-chart-seq-4}`},"chart-seq-5":{$value:`{palette.dark-chart-seq-5}`},"chart-seq-6":{$value:`{palette.dark-chart-seq-6}`},"chart-diverging-low":{$value:`{palette.dark-chart-diverging-low}`},"chart-diverging-mid":{$value:`{palette.dark-chart-diverging-mid}`},"chart-diverging-high":{$value:`{palette.dark-chart-diverging-high}`},"chart-neutral":{$value:`{palette.dark-chart-neutral}`},success:{$value:`#30C780`},warning:{$value:`#FBBF24`},danger:{$value:`#F87171`},info:{$value:`#60A5FA`},"on-success":{$value:`#0F0F1A`},"on-warning":{$value:`#0F0F1A`},"on-danger":{$value:`#0F0F1A`},"on-info":{$value:`#0F0F1A`},"success-pressed":{$value:`color-mix(in srgb, {color.success} 85%, white)`},"warning-pressed":{$value:`color-mix(in srgb, {color.warning} 85%, white)`},"danger-pressed":{$value:`color-mix(in srgb, {color.danger} 85%, white)`},"info-pressed":{$value:`color-mix(in srgb, {color.info} 85%, white)`},"success-border":{$value:`color-mix(in srgb, {color.success} 40%, transparent)`},"warning-border":{$value:`color-mix(in srgb, {color.warning} 40%, transparent)`},"danger-border":{$value:`color-mix(in srgb, {color.danger} 40%, transparent)`},"info-border":{$value:`color-mix(in srgb, {color.info} 40%, transparent)`},"warning-strong-hover":{$value:`color-mix(in srgb, {color.warning-strong} 85%, white)`},"danger-strong-hover":{$value:`color-mix(in srgb, {color.danger-strong} 85%, white)`},scrollbar:{$value:`rgba(255, 255, 255, 0.18)`},"scrollbar-hover":{$value:`rgba(255, 255, 255, 0.28)`},"scrollbar-active":{$value:`rgba(255, 255, 255, 0.4)`}},effect:{"close-filter":{$value:`invert(1) grayscale(100%) brightness(200%)`}},component:{thumb:{shadow:{$value:`0 2px 6px rgba(255, 255, 255, 0.1)`},"shadow-hover":{$value:`0 2px 12px rgba(255, 255, 255, 0.2)`}}}},st={palette:JSON.parse(`{"$description":"Raw colours. Library-internal: product code, phone code and Canvas read meanings, never these.","$extensions":{"com.webority":{"internal":true}},"primary":{"$type":"color","$value":"#4F46E5","$description":"Brand primary fill for primary buttons, selected states and the first chart series."},"primary-hover":{"$type":"color","$value":"#6366F1","$description":"Primary fill while a control is hovered."},"primary-pressed":{"$type":"color","$value":"#4338CA","$description":"Primary fill while a control is pressed or active."},"primary-50":{"$type":"color","$value":"#818CF8","$description":"Strongest soft primary fill or border tint that follows dark mode."},"primary-30":{"$type":"color","$value":"#A5B4FC","$description":"Medium soft primary fill or border tint that follows dark mode."},"primary-20":{"$type":"color","$value":"#C7D2FE","$description":"Light soft primary fill or border tint that follows dark mode."},"primary-15":{"$type":"color","$value":"#DDE1FD","$description":"Lighter soft primary fill or border tint that follows dark mode."},"primary-10":{"$type":"color","$value":"#E0E7FF","$description":"Pale soft primary fill or border tint that follows dark mode."},"primary-5":{"$type":"color","$value":"#EEF2FF","$description":"Faintest soft primary fill or border tint that follows dark mode."},"text-heading":{"$type":"color","$value":"#071437","$description":"Heading ink for page and section titles."},"text-1":{"$type":"color","$value":"#252F4A","$description":"Primary body text, a step softer than the heading ink."},"text-2":{"$type":"color","$value":"#4B5675","$description":"Secondary text for descriptions, sub-labels and muted copy."},"text-3":{"$type":"color","$value":"#626A82","$description":"Tertiary text for hints, captions, labels, timestamps and placeholders."},"text-4":{"$type":"color","$value":"#99A1B7","$description":"Decorative faint ink, not for text a person must read."},"text-5":{"$type":"color","$value":"#C4CADA","$description":"Faintest ink, for decorative marks."},"bg-page":{"$type":"color","$value":"#F4F6F8","$description":"Page background behind every surface in light mode."},"bg-light":{"$type":"color","$value":"#FFFFFF","$description":"White card and panel surface, the lightest fill in light mode."},"bg-elevated":{"$type":"color","$value":"#F9FBFC","$description":"Subtle raised surface, one step off the page."},"bg-muted":{"$type":"color","$value":"#F5F6FA","$description":"Muted fill for grouped areas and quiet controls."},"field-bg":{"$type":"color","$value":"#F9FBFC","$description":"Resting fill of every input-like control, such as fields, selects and textareas."},"field-border":{"$type":"color","$value":"#DFE2EA","$description":"Resting border of every input-like control."},"field-border-hover":{"$type":"color","$value":"#C4CADA","$description":"Hover border of every input-like control."},"border-light":{"$type":"color","$value":"#EBEDF3","$description":"Default hairline border of cards, tables and dividers."},"border-soft":{"$type":"color","$value":"#F4F6F8","$description":"Softest border, for inner dividers."},"border-strong":{"$type":"color","$value":"#C4CADA","$description":"Strong border for emphasised separators, chart axes and unselected control outlines."},"progress-track":{"$type":"color","$value":"#E1E5EE","$description":"Unfilled track of a progress bar or meter."},"scrollbar":{"$type":"color","$value":"rgba(145, 158, 171, 0.45)","$description":"Resting thumb colour of a thin scrollbar."},"scrollbar-hover":{"$type":"color","$value":"rgba(145, 158, 171, 0.65)","$description":"Scrollbar thumb colour while it is hovered."},"scrollbar-active":{"$type":"color","$value":"rgba(145, 158, 171, 0.85)","$description":"Scrollbar thumb colour while it is dragged."},"surface-soft":{"$type":"color","$value":"#F2EFFE","$description":"Soft tint surface for marketing callouts and mega-menu hover."},"surface-violet":{"$type":"color","$value":"#ECE4FE","$description":"Violet-tinted surface for marketing section accents and callout cards."},"surface-violet-soft":{"$type":"color","$value":"#FCFCFC","$description":"Near-white surface for marketing section accents."},"surface-mute":{"$type":"color","$value":"#F9FBFC","$description":"Neutral wash surface for marketing sections and panels."},"ink":{"$type":"color","$value":"#000000","$description":"Pure black ink, the highest-contrast text colour."},"fg-2":{"$type":"color","$value":"{palette.text-1}","$description":"Marketing alias of the primary body text ink."},"fg-3":{"$type":"color","$value":"{palette.text-2}","$description":"Marketing alias of the secondary text ink."},"fg-4":{"$type":"color","$value":"{palette.text-3}","$description":"Marketing alias of the tertiary text ink."},"fg-5":{"$type":"color","$value":"{palette.text-5}","$description":"Marketing alias of the faintest text ink."},"neutral-border-dark":{"$type":"color","$value":"#EBEDF3","$description":"Border tone of table emphasis rows and dividers."},"neutral-border-light":{"$type":"color","$value":"#F9FBFC","$description":"Faintest border tone, for dividers."},"neutral-bg-dark":{"$type":"color","$value":"#F5F6FA","$description":"Muted background of table emphasis rows and mega-menu hover."},"neutral-bg-light":{"$type":"color","$value":"#F9FBFC","$description":"Faint background for table emphasis and mega-menu hover."},"accent-dark":{"$type":"color","$value":"{palette.primary-pressed}","$description":"Pressed and hover accent colour in CSS, following the pressed primary."},"primary-text":{"$type":"color","$value":"#ffffff","$description":"Text and icon colour on a solid primary fill, such as a primary button label."},"primary-ink":{"$type":"color","$value":"{palette.primary}","$description":"Primary as text and small glyphs on light surfaces."},"info-text":{"$type":"color","$value":"#1460ba","$description":"Info colour as text on light surfaces."},"info-active":{"$type":"color","$value":"#056EE9","$description":"Info ink for icons and active states on light surfaces."},"info":{"$type":"color","$value":"#056EE9","$description":"Vivid info fill for badges, dots and info buttons."},"info-50":{"$type":"color","$value":"#8DC2FF","$description":"Info tint 50 for borders and the strongest soft info fill."},"info-30":{"$type":"color","$value":"#BBDBFF","$description":"Info tint 30 for soft fills and borders of alerts and badges."},"info-20":{"$type":"color","$value":"#D1E6FF","$description":"Info tint 20 for soft fills behind info alerts and badges."},"info-10":{"$type":"color","$value":"#E9F3FF","$description":"Info tint 10, the soft background of info alerts and badges."},"info-5":{"$type":"color","$value":"#F3F9FF","$description":"Faintest info tint, for hover washes and soft info backgrounds."},"success-text":{"$type":"color","$value":"#0e7531","$description":"Success colour as text on light surfaces, darkened to pass AA."},"success-strong":{"$type":"color","$value":"#0e7531","$description":"Deep success fill behind white text, such as progress-bar labels."},"success-active":{"$type":"color","$value":"#04B440","$description":"Active success fill, the deepest vivid success tone."},"success":{"$type":"color","$value":"#04B440","$description":"Vivid success fill for badges, dots and success buttons."},"success-50":{"$type":"color","$value":"#8BE3A9","$description":"Success tint 50 for borders and the strongest soft success fill."},"success-30":{"$type":"color","$value":"#BAEECC","$description":"Success tint 30 for soft fills and borders of alerts and badges."},"success-20":{"$type":"color","$value":"#D1F4DD","$description":"Success tint 20 for soft fills behind success alerts and badges."},"success-10":{"$type":"color","$value":"#E8FAEE","$description":"Success tint 10, the soft background of success alerts and badges."},"success-5":{"$type":"color","$value":"#F3FCF6","$description":"Faintest success tint, for hover washes and soft success backgrounds."},"warning-text":{"$type":"color","$value":"#876100","$description":"Warning colour as text on light surfaces, darkened to pass AA."},"warning-strong":{"$type":"color","$value":"#9A6B00","$description":"Deep warning fill behind white text, such as the warning button."},"warning-strong-hover":{"$type":"color","$value":"#855C00","$description":"Deep warning fill while a warning button with white text is hovered."},"warning-active":{"$type":"color","$value":"#DFA000","$description":"Active warning fill, the deepest vivid warning tone."},"warning":{"$type":"color","$value":"#DFA000","$description":"Vivid warning fill for badges and dots."},"warning-50":{"$type":"color","$value":"#FBD880","$description":"Warning tint 50 for borders and the strongest soft warning fill."},"warning-30":{"$type":"color","$value":"#FDE8B3","$description":"Warning tint 30 for soft fills and borders of alerts and badges."},"warning-20":{"$type":"color","$value":"#FDEFCC","$description":"Warning tint 20 for soft fills behind warning alerts and badges."},"warning-10":{"$type":"color","$value":"#FFF8E6","$description":"Warning tint 10, the soft background of warning alerts and badges."},"warning-5":{"$type":"color","$value":"#FEFBF2","$description":"Faintest warning tint, for hover washes and soft warning backgrounds."},"danger-text":{"$type":"color","$value":"#CF1735","$description":"Error text colour for validation messages and danger text on light surfaces."},"danger-strong":{"$type":"color","$value":"#C81340","$description":"Deep danger fill behind white text, such as the danger button."},"danger-strong-hover":{"$type":"color","$value":"#AB1036","$description":"Deep danger fill while a danger button with white text is hovered."},"danger-active":{"$type":"color","$value":"#E82646","$description":"Active danger fill, the deepest vivid danger tone."},"danger":{"$type":"color","$value":"#E82646","$description":"Vivid danger fill for badges, dots and danger buttons."},"danger-50":{"$type":"color","$value":"#FC94AD","$description":"Danger tint 50 for borders and the strongest soft danger fill."},"danger-30":{"$type":"color","$value":"#FDBFCE","$description":"Danger tint 30 for soft fills and borders of alerts and badges."},"danger-20":{"$type":"color","$value":"#FED4DE","$description":"Danger tint 20 for soft fills behind danger alerts and badges."},"danger-10":{"$type":"color","$value":"#FFEAEF","$description":"Danger tint 10, the soft background of danger alerts and badges."},"danger-5":{"$type":"color","$value":"#FEF4F6","$description":"Faintest danger tint, for hover washes and soft danger backgrounds."},"chart-1":{"$type":"color","$value":"{palette.primary}","$description":"Colour of chart series 1, the brand primary."},"chart-2":{"$type":"color","$value":"#eb6834","$description":"Colour of chart series 2 of the eight categorical series."},"chart-3":{"$type":"color","$value":"#1baf7a","$description":"Colour of chart series 3 of the eight categorical series."},"chart-4":{"$type":"color","$value":"#eda100","$description":"Colour of chart series 4 of the eight categorical series."},"chart-5":{"$type":"color","$value":"#e87ba4","$description":"Colour of chart series 5 of the eight categorical series."},"chart-6":{"$type":"color","$value":"#008300","$description":"Colour of chart series 6 of the eight categorical series."},"chart-7":{"$type":"color","$value":"#2a78d6","$description":"Colour of chart series 7 of the eight categorical series."},"chart-8":{"$type":"color","$value":"#e34948","$description":"Colour of chart series 8 of the eight categorical series."},"chart-seq-0":{"$type":"color","$value":"{palette.bg-muted}","$description":"Faintest step of the magnitude ramp, for empty heatmap and calendar cells."},"chart-seq-1":{"$type":"color","$value":"{palette.primary-10}","$description":"First step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-2":{"$type":"color","$value":"{palette.primary-20}","$description":"Second step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-3":{"$type":"color","$value":"{palette.primary-30}","$description":"Third step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-4":{"$type":"color","$value":"{palette.primary-50}","$description":"Fourth step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-5":{"$type":"color","$value":"{palette.primary-hover}","$description":"Fifth step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-seq-6":{"$type":"color","$value":"{palette.primary-pressed}","$description":"Strongest step of the one-hue magnitude ramp for heatmap and calendar cells."},"chart-diverging-low":{"$type":"color","$value":"#e34948","$description":"Colour of values below the midpoint in a diverging chart."},"chart-diverging-mid":{"$type":"color","$value":"#c4cada","$description":"Neutral midpoint colour of a diverging chart."},"chart-diverging-high":{"$type":"color","$value":"#2a78d6","$description":"Colour of values above the midpoint in a diverging chart."},"chart-neutral":{"$type":"color","$value":"#99a1b7","$description":"Context series colour, such as the last period, and the folded Other slice."},"dark-bg-page":{"$type":"color","$value":"#0f1117","$description":"Dark page background, the base of every dark-mode surface."},"dark-bg-elevated":{"$type":"color","$value":"#0d0f15","$description":"Subtle dark background, one step off the dark page."},"dark-bg-muted":{"$type":"color","$value":"#232733","$description":"Dark muted fill for grouped areas and quiet controls."},"dark-bg-surface":{"$type":"color","$value":"#181b23","$description":"Dark card and panel surface, one step above the dark page."},"dark-border":{"$type":"color","$value":"#2a2f3a","$description":"Dark hairline border of cards, tables and dividers."},"dark-border-strong":{"$type":"color","$value":"#3a414f","$description":"Stronger dark border for emphasised separators."},"dark-field-border":{"$type":"color","$value":"#2a2f3a","$description":"Resting border of input-like controls in dark mode."},"dark-field-border-hover":{"$type":"color","$value":"#3a414f","$description":"Hover border of input-like controls in dark mode."},"dark-progress-track":{"$type":"color","$value":"#323845","$description":"Unfilled track of a progress bar or meter in dark mode."},"dark-text":{"$type":"color","$value":"#e6e8ee","$description":"Primary body text colour in dark mode."},"dark-text-muted":{"$type":"color","$value":"#b4b9c6","$description":"Secondary text colour in dark mode."},"dark-text-subtle":{"$type":"color","$value":"#8a90a0","$description":"Tertiary text colour in dark mode, for hints and captions."},"dark-primary":{"$type":"color","$value":"#9590ef","$description":"Primary as text, rings, focus borders and the fill under dark ink in dark mode."},"dark-primary-hover":{"$type":"color","$value":"#a29df1","$description":"Primary fill while it is hovered in dark mode."},"dark-chart-2":{"$type":"color","$value":"#d95926","$description":"Dark-mode colour of chart series 2 of the categorical set."},"dark-chart-3":{"$type":"color","$value":"#199e70","$description":"Dark-mode colour of chart series 3 of the categorical set."},"dark-chart-4":{"$type":"color","$value":"#c98500","$description":"Dark-mode colour of chart series 4 of the categorical set."},"dark-chart-5":{"$type":"color","$value":"#d55181","$description":"Dark-mode colour of chart series 5 of the categorical set."},"dark-chart-6":{"$type":"color","$value":"#008300","$description":"Dark-mode colour of chart series 6 of the categorical set."},"dark-chart-7":{"$type":"color","$value":"#3987e5","$description":"Dark-mode colour of chart series 7 of the categorical set."},"dark-chart-8":{"$type":"color","$value":"#e66767","$description":"Dark-mode colour of chart series 8 of the categorical set."},"dark-chart-seq-0":{"$type":"color","$value":"#20242f","$description":"Dark-mode faintest step of the magnitude ramp, for empty heatmap cells."},"dark-chart-seq-1":{"$type":"color","$value":"#262c45","$description":"Dark-mode first step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-2":{"$type":"color","$value":"#2f3a70","$description":"Dark-mode second step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-3":{"$type":"color","$value":"#3b4ba0","$description":"Dark-mode third step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-4":{"$type":"color","$value":"#5168d2","$description":"Dark-mode fourth step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-5":{"$type":"color","$value":"#7a90ef","$description":"Dark-mode fifth step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-seq-6":{"$type":"color","$value":"#b3c1f7","$description":"Dark-mode strongest step of the magnitude ramp for heatmap and calendar cells."},"dark-chart-diverging-low":{"$type":"color","$value":"#e66767","$description":"Dark-mode colour of values below the midpoint in a diverging chart."},"dark-chart-diverging-mid":{"$type":"color","$value":"#3a414f","$description":"Dark-mode neutral midpoint colour of a diverging chart."},"dark-chart-diverging-high":{"$type":"color","$value":"#3987e5","$description":"Dark-mode colour of values above the midpoint in a diverging chart."},"dark-chart-neutral":{"$type":"color","$value":"#5d6475","$description":"Dark-mode context series colour, such as the last period."},"phone-bg":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-bg-subtle":{"$type":"color","$value":"#F8F8FB","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-bg-muted":{"$type":"color","$value":"#F1F1F5","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-inverse":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text":{"$type":"color","$value":"#252F4A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-body":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-muted":{"$type":"color","$value":"#52525B","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-subtle":{"$type":"color","$value":"#62626B","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-inverse":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-link":{"$type":"color","$value":"#5B5BD6","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-border":{"$type":"color","$value":"#E5E5EC","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-border-subtle":{"$type":"color","$value":"#EFEFF3","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-focus-ring":{"$type":"color","$value":"#5B5BD6","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-scrim":{"$type":"color","$value":"rgba(15, 15, 26, 0.5)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-scrim":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-bg":{"$type":"color","$value":"#F9FBFC","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-border":{"$type":"color","$value":"#EBEDF3","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-border-focus":{"$type":"color","$value":"#BED2F9","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary":{"$type":"color","$value":"#5B5BD6","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary-hover":{"$type":"color","$value":"#4F4FBF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary-soft":{"$type":"color","$value":"#EEEEFC","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary-text":{"$type":"color","$value":"#4F4FD3","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-primary":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-success":{"$type":"color","$value":"#18864F","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-success-text":{"$type":"color","$value":"#147042","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-success":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-warning":{"$type":"color","$value":"#F59E0B","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-warning-text":{"$type":"color","$value":"#8F5C06","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-warning":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-danger":{"$type":"color","$value":"#E12C32","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-danger-text":{"$type":"color","$value":"#BC1B20","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-danger":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-danger-border":{"$type":"color","$value":"#E5484D","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-info":{"$type":"color","$value":"#1B6EF5","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-info-text":{"$type":"color","$value":"#0958D9","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-info":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-neutral":{"$type":"color","$value":"#F4F4F8","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-neutral-hover":{"$type":"color","$value":"#E9E9F0","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-neutral":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-primary-pressed":{"$type":"color","$value":"#4040A8","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-neutral-strong":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-text-disabled":{"$type":"color","$value":"#B4B4BB","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-pressed":{"$type":"color","$value":"rgba(15, 15, 26, 0.06)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-hover":{"$type":"color","$value":"rgba(15, 15, 26, 0.04)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-selected":{"$type":"color","$value":"rgba(91, 91, 214, 0.1)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-surface-disabled":{"$type":"color","$value":"#F1F1F5","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-skeleton":{"$type":"color","$value":"#EBEDF3","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-skeleton-highlight":{"$type":"color","$value":"#F5F6FA","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-glass-fill":{"$type":"color","$value":"rgba(255, 255, 255, 0.28)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-glass-border":{"$type":"color","$value":"rgba(255, 255, 255, 0.45)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-on-glass":{"$type":"color","$value":"#0F0F1A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-glass-badge":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-bg-focus":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-bg-disabled":{"$type":"color","$value":"#F5F6FA","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-border-error":{"$type":"color","$value":"#FDBFCE","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-label":{"$type":"color","$value":"#242F4A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-text":{"$type":"color","$value":"#252F4A","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-text-disabled":{"$type":"color","$value":"#C4CADA","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-placeholder":{"$type":"color","$value":"#626D8B","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-placeholder-disabled":{"$type":"color","$value":"#C4CADA","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-icon":{"$type":"color","$value":"#7A849F","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-icon-focus":{"$type":"color","$value":"#4B5675","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-icon-disabled":{"$type":"color","$value":"#C4CADA","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-caret":{"$type":"color","$value":"#5B8DEE","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-field-message":{"$type":"color","$value":"#D81736","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-1":{"$type":"color","$value":"#5B5BD6","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-2":{"$type":"color","$value":"#0A7979","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-3":{"$type":"color","$value":"#A45A05","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-4":{"$type":"color","$value":"#CD226E","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-5":{"$type":"color","$value":"#2462EB","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-6":{"$type":"color","$value":"#7C3AED","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-7":{"$type":"color","$value":"#047C57","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-avatar-8":{"$type":"color","$value":"#D42222","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-shadow-sm":{"$type":"color","$value":"rgba(0, 0, 0, 0.06)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-shadow-md":{"$type":"color","$value":"rgba(0, 0, 0, 0.08)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-shadow-lg":{"$type":"color","$value":"rgba(0, 0, 0, 0.1)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-shadow-xl":{"$type":"color","$value":"rgba(0, 0, 0, 0.14)","$extensions":{"com.webority":{"platforms":["phone"]}}},"phone-thumb":{"$type":"color","$value":"#FFFFFF","$extensions":{"com.webority":{"platforms":["phone"]}}}}`)},ct={leading:{body:{$value:1.4},display:{$value:1.2}},color:{bg:{$value:`{palette.phone-bg}`},"bg-subtle":{$value:`{palette.phone-bg-subtle}`},"bg-muted":{$value:`{palette.phone-bg-muted}`},surface:{$value:`{palette.phone-surface}`},"surface-inverse":{$value:`{palette.phone-surface-inverse}`},text:{$value:`{palette.phone-text}`},"text-body":{$value:`{palette.phone-text-body}`},"text-muted":{$value:`{palette.phone-text-muted}`},"text-subtle":{$value:`{palette.phone-text-subtle}`},"text-inverse":{$value:`{palette.phone-text-inverse}`},link:{$value:`{palette.phone-link}`},border:{$value:`{palette.phone-border}`},"border-subtle":{$value:`{palette.phone-border-subtle}`},"focus-ring":{$value:`{palette.phone-focus-ring}`},scrim:{$value:`{palette.phone-scrim}`},"on-scrim":{$value:`{palette.phone-on-scrim}`},"field-bg":{$value:`{palette.phone-field-bg}`},"field-border":{$value:`{palette.phone-field-border}`},"field-border-focus":{$value:`{palette.phone-field-border-focus}`},primary:{$value:`{palette.phone-primary}`},"primary-hover":{$value:`{palette.phone-primary-hover}`},"primary-soft":{$value:`{palette.phone-primary-soft}`},"primary-text":{$value:`{palette.phone-primary-text}`},"on-primary":{$value:`{palette.phone-on-primary}`},success:{$value:`{palette.phone-success}`},"success-text":{$value:`{palette.phone-success-text}`},"on-success":{$value:`{palette.phone-on-success}`},warning:{$value:`{palette.phone-warning}`},"warning-text":{$value:`{palette.phone-warning-text}`},"on-warning":{$value:`{palette.phone-on-warning}`},danger:{$value:`{palette.phone-danger}`},"danger-text":{$value:`{palette.phone-danger-text}`},"on-danger":{$value:`{palette.phone-on-danger}`},"danger-border":{$value:`{palette.phone-danger-border}`},info:{$value:`{palette.phone-info}`},"info-text":{$value:`{palette.phone-info-text}`},"on-info":{$value:`{palette.phone-on-info}`},neutral:{$value:`{palette.phone-neutral}`},"neutral-hover":{$value:`{palette.phone-neutral-hover}`},"on-neutral":{$value:`{palette.phone-on-neutral}`},thumb:{$value:`{palette.phone-thumb}`}},shadow:{card:{$value:{color:`{palette.phone-shadow-sm}`,offsetX:{value:0,unit:`px`},offsetY:{value:2,unit:`px`},blur:{value:4,unit:`px`},spread:{value:0,unit:`px`}},$extensions:{"com.webority":{elevation:2}}},popover:{$value:{color:`{palette.phone-shadow-lg}`,offsetX:{value:0,unit:`px`},offsetY:{value:8,unit:`px`},blur:{value:16,unit:`px`},spread:{value:0,unit:`px`}},$extensions:{"com.webority":{elevation:8}}},modal:{$value:{color:`{palette.phone-shadow-xl}`,offsetX:{value:0,unit:`px`},offsetY:{value:12,unit:`px`},blur:{value:24,unit:`px`},spread:{value:0,unit:`px`}},$extensions:{"com.webority":{elevation:12}}},drawer:{$value:{color:`{palette.phone-shadow-xl}`,offsetX:{value:0,unit:`px`},offsetY:{value:12,unit:`px`},blur:{value:24,unit:`px`},spread:{value:0,unit:`px`}},$extensions:{"com.webority":{elevation:12}}}},radius:{sm:{$value:{value:6,unit:`px`}},xl:{$value:{value:20,unit:`px`}}},text:{xs:{$value:{value:11,unit:`px`}},sm:{$value:{value:13,unit:`px`}},base:{$value:{value:15,unit:`px`}},lg:{$value:{value:17,unit:`px`}},xl:{$value:{value:20,unit:`px`}},"2xl":{$value:{value:24,unit:`px`}},"3xl":{$value:{value:30,unit:`px`}},"4xl":{$value:{value:36,unit:`px`}},"5xl":{$value:{value:45,unit:`px`}},"6xl":{$value:{value:57,unit:`px`}},"7xl":{$value:{value:64,unit:`px`}},"8xl":{$value:{value:72,unit:`px`}}},font:{ui:{$value:[`System`]},display:{$value:[`System`]},mono:{$value:[`System`]}},motion:{duration:{fast:{$value:{value:160,unit:`ms`}},default:{$value:{value:240,unit:`ms`}},slow:{$value:{value:360,unit:`ms`}}}},component:{field:{sm:{radius:{$value:`{radius.md}`}},md:{radius:{$value:`{radius.md}`}},lg:{radius:{$value:`{radius.md}`}}},disabled:{opacity:{$value:.55}},press:{opacity:{$value:.85}}}},lt=`no meaning uses this step; propose one on the Webority UI board (bootstrap-ui.md → Tokens)`,ut=new Set(Object.keys(st.palette??{}).filter(e=>!e.startsWith(`$`))),dt=new Map,ft=/^\{palette\.([a-z0-9-]+)\}$/;for(let e of[at,ot,ct])if(!(!e?.color||typeof e.color!=`object`)){for(let[t,n]of Object.entries(e.color))if(!t.startsWith(`$`)&&n&&typeof n==`object`&&typeof n.$value==`string`){let e=n.$value.match(ft);if(e){let n=e[1],r=dt.get(n);r||(r=new Set,dt.set(n,r)),r.add(t)}}}function pt(e){let t=dt.get(e);return t?[...t].sort():[]}function mt(e,t){let n=pt(e);return n.length===0?lt:t===`web`?`read the meaning: ${n.map(e=>`var(--color-${e})`).join(` or `)}`:`read the meaning: ${n.map(e=>`theme.colors["${e}"]`).join(` or `)}`}function ht(e){return Object.hasOwn(ye,e)?`read the meaning: var(--color-${ye[e]})`:lt}var gt=e=>e===`{`||e===`}`||e===`;`?` `:e;function _t(e,t){if(t===`markup`)return vt(e);let n=``,r=null,i=!1,a=!1;for(let o=0;o<e.length;o+=1){let s=e[o],c=e[o+1];if(a)s===`*`&&c===`/`?(a=!1,n+=` `,o+=1):n+=s===`
60
+ `?s:` `;else if(r)s===`\\`&&c!==void 0?(n+=`${gt(s)}${gt(c)}`,o+=1):(s===r&&(r=null),n+=gt(s));else if(s===`"`||s===`'`)r=s,n+=s;else if(i)s===`)`&&(i=!1),n+=gt(s);else if(s===`/`&&c===`*`)a=!0,n+=` `,o+=1;else if(t===`scss`&&s===`/`&&c===`/`){let t=e.indexOf(`
61
+ `,o);if(t===-1)break;o=t-1}else s===`(`&&n.slice(-3).toLowerCase()===`url`&&(i=!0),n+=s}return n}function vt(e){let t=[[`@*`,`*@`],[`<!--`,`-->`],[`/*`,`*/`]],n=``,r=0;for(;r<e.length;){let i=null;for(let n of t)if(e.startsWith(n[0],r)){i=n;break}if(!i){n+=e[r],r+=1;continue}let a=e.indexOf(i[1],r+i[0].length),o=a===-1?e.length:a+i[1].length;for(let t=r;t<o;t+=1)n+=e[t]===`
62
62
  `?`
63
- `:` `;r=o}return n}function tt(e,t){let n=[0];for(let t=0;t<e.length;t+=1)e[t]===`
63
+ `:` `;r=o}return n}function yt(e,t){let n=[0];for(let t=0;t<e.length;t+=1)e[t]===`
64
64
  `&&n.push(t+1);let r=t.split(`
65
- `);return e=>{let t=0,i=n.length-1;for(;t<i;){let r=t+i+1>>1;n[r]<=e?t=r:i=r-1}return{line:t+1,text:(r[t]??``).trim().slice(0,160)}}}var nt=[...de].sort((e,t)=>t.length-e.length).join(`|`),rt=RegExp(`(?<![\\w$@.#-])(${nt})\\s*:(?!:)([^;{}"\\n]*)`,`gi`),it=new Set(`aliceblue antiquewhite aqua aquamarine azure beige bisque black blanchedalmond blue blueviolet brown burlywood cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan darkgoldenrod darkgray darkgreen darkgrey darkkhaki darkmagenta darkolivegreen darkorange darkorchid darkred darksalmon darkseagreen darkslateblue darkslategray darkslategrey darkturquoise darkviolet deeppink deepskyblue dimgray dimgrey dodgerblue firebrick floralwhite forestgreen fuchsia gainsboro ghostwhite gold goldenrod gray green greenyellow grey honeydew hotpink indianred indigo ivory khaki lavender lavenderblush lawngreen lemonchiffon lightblue lightcoral lightcyan lightgoldenrodyellow lightgray lightgreen lightgrey lightpink lightsalmon lightseagreen lightskyblue lightslategray lightslategrey lightsteelblue lightyellow lime limegreen linen magenta maroon mediumaquamarine mediumblue mediumorchid mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise mediumvioletred midnightblue mintcream mistyrose moccasin navajowhite navy oldlace olive olivedrab orange orangered orchid palegoldenrod palegreen paleturquoise palevioletred papayawhip peachpuff peru pink plum powderblue purple rebeccapurple red rosybrown royalblue saddlebrown salmon sandybrown seagreen seashell sienna silver skyblue slateblue slategray slategrey snow springgreen steelblue tan teal thistle tomato turquoise violet wheat white whitesmoke yellow yellowgreen`.split(` `)),at=/(?<![\w&-])#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})(?![0-9a-f\w-])/,ot=/\b(?:rgba?|hsla?)\(\s*[-.\d]/,st=/(?<![\w$@#.-])[a-z]+(?![\w-])/g,ct=/(?<![\w&-])#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)(?![0-9a-f\w-])/g,lt=/\b(?:rgba?|hsla?)\(([^()]*)\)/g,ut=/^(?:0+(?:\.0*)?|\.0+)%?$/;function dt(e){let t=e.split(`/`);if(t.length===2)return ut.test(t[1].trim());let n=e.split(`,`);return n.length===4&&ut.test(n[3].trim())}var ft=[...he].sort((e,t)=>t.length-e.length).join(`|`),pt=RegExp(`(?<![\\w$@.#-])(${ft})\\s*:(?!:)([^;{}"\\n]*)`,`gi`),mt=/var\(\s*--wui-([a-z0-9-]+)\s*[,)]/g,ht=Object.keys(ve).join(`|`),gt=RegExp(`var\\(\\s*--bs-(${ht})(?:-rgb)?\\s*[,)]`,`g`),_t=RegExp(`(?<![\\w$-])\\$(${ht})(?![\\w-])`,`g`),vt={"palette-read":0,"raw-colour":1,"raw-measure":2,"root-font-size":3};function yt(e,t){let n=0,r=-1;for(let i=t-1;i>=0;--i){let t=e[i];if(t===`}`)n+=1;else if(t===`{`){if(n===0){r=i;break}--n}}if(r===-1)return null;let i=r-1;for(;i>=0&&!`{};`.includes(e[i]);)--i;return e.slice(i+1,r).trim()}function bt(e,t){return yt(e,t)?.toLowerCase()===`@font-face`}function xt(e,t){let n=yt(e,t);return n!==null&&n.split(`,`).some(e=>{let t=e.trim().toLowerCase();return t===`html`||t===`:root`||/^(?:html|:root)(?:\[|:|\.)/.test(t)})}function St(e,t){let n=$e(e,t),r=tt(n,e),i=[];for(let e of n.matchAll(rt)){let t=e[1].toLowerCase(),a=e[2];Ct(t,a)&&!bt(n,e.index)&&i.push({rule:`raw-measure`,...r(e.index),hint:null}),(t===`font-size`||t===`font`)&&xt(n,e.index)&&i.push({rule:`root-font-size`,...r(e.index),hint:null})}for(let e of n.matchAll(pt))wt(e[2])&&i.push({rule:`raw-colour`,...r(e.index),hint:`read a meaning: var(--color-<name>); a product-only colour goes into theme/brand.tokens.json`});for(let e of n.matchAll(mt)){let t=e[1];Ke.has(t)&&i.push({rule:`palette-read`,...r(e.index),hint:Xe(t,`web`)})}for(let e of n.matchAll(gt))i.push({rule:`palette-read`,...r(e.index),hint:Ze(e[1])});if(t===`scss`)for(let e of n.matchAll(_t)){let t=e.index+e[0].length;for(;t<n.length&&/\s/.test(n[t]);)t+=1;n[t]!==`:`&&i.push({rule:`palette-read`,...r(e.index),hint:Ze(e[1])})}return i.sort((e,t)=>e.line-t.line||vt[e.rule]-vt[t.rule]),i}function Ct(e,t){let n=t.replace(/!important/gi,``).replace(/var\(\s*--[\w-]+/g,`var(`).replace(/\$[\w-]+/g,`$v`);for(let t of n.matchAll(/(?<![\w.#$@-])-?(?:\d+(?:\.\d+)?|\.\d+)([a-zA-Z%]*)/g)){if(parseFloat(t[0])===0)continue;let r=t[1].toLowerCase();if(_e.includes(r))return!0;if(r===``&&fe.includes(e)){let r=t.index-1;for(;r>=0&&/\s/.test(n[r]);)--r;let i=t.index+t[0].length;for(;i<n.length&&/\s/.test(n[i]);)i+=1;let a=r>=0?n[r]:``,o=i<n.length?n[i]:``;if(a===`*`||o===`*`||(a===`/`||o===`/`)&&e!==`font`)continue;return!0}}return!1}function wt(e){let t=e.replace(/url\([^)]*\)/gi,`url()`).replace(/(["'])(?:\\.|(?!\1).)*\1/g,`""`).replace(/var\(\s*--[\w-]+/g,`var(`).replace(/!important/gi,``).toLowerCase().replace(ct,``).replace(lt,(e,t)=>dt(t)?``:e);if(at.test(t)||ot.test(t))return!0;for(let e of t.matchAll(st))if(it.has(e[0]))return!0;return!1}var Tt=/(?:\bfrom\s*|\brequire\(\s*)["']react-native["']/,Et=[...me].sort((e,t)=>t.length-e.length),Dt=[...me,...de].sort((e,t)=>t.length-e.length),Ot=Et.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),kt=Dt.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),At=RegExp(`(?<![\\w$.])(?:(${Ot})|(["'])(${kt})\\2)\\s*:(?!:)`,`g`),jt=[...ge].sort((e,t)=>t.length-e.length),Mt=[...ge,...ge.map(rn)].sort((e,t)=>t.length-e.length),Nt=jt.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Pt=Mt.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Ft=RegExp(`(?<![\\w$.])(?:(${Nt})|(["'])(${Pt})\\2)\\s*:(?!:)`,`g`),It={"palette-read":0,"raw-colour":1,"raw-measure":2,"root-font-size":3},Lt=Object.keys(ve).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Rt=RegExp(`var\\(\\s*--bs-(${Lt})(?:-rgb)?\\s*[,)]`,`g`),zt=/var\(\s*--wui-([a-z0-9-]+)\s*[,)]/g,Bt=/(?<![\w$])palette\s*(?:\?\.|\.|\[)/g,Vt=/(?<![\w$.])-?(?:\d+(?:\.\d+)?|\.\d+)(?![\w.])/g,Ht=`read a meaning: theme.colors["<name>"] on phone, var(--color-<name>) on web; a product-only colour goes into theme/brand.tokens.json`,Ut=`${Ht}. react-native.md: colours come from useTheme()`,Wt=/(["'`])((?:\\.|(?!\1)[^\\\n])*)\1/g,Gt=/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,Kt=/^(?:rgba?|hsla?)\(.*\)$/i,qt=/(?<![\w$.])(?:color|[A-Za-z]+Color)\s*=\s*$/;function Jt(e){return Tt.test(e)}function Yt(e,{phone:t,colourLiterals:n=!1}){let{blanked:r,lineStarts:i}=Xt(e),a=[],o=[];return $t(r,i,e,a),en(r,i,e,a,o,t),sn(r,i,e,a),cn(r,i,e,a),t&&ln(r,i,e,a),n&&tn(r,i,e,a,o),a.sort((e,t)=>e.line-t.line||It[e.rule]-It[t.rule]),a}function Xt(e){let t=[],n=[0],r=0,i=!1,a=!1,o=!1,s=!1,c=!1,l=`code`,u=!1,d=0,f=[];for(;r<e.length;){let p=e[r],m=e[r+1];if(s){p===`
65
+ `);return e=>{let t=0,i=n.length-1;for(;t<i;){let r=t+i+1>>1;n[r]<=e?t=r:i=r-1}return{line:t+1,text:(r[t]??``).trim().slice(0,160)}}}var bt=[...fe].sort((e,t)=>t.length-e.length).join(`|`),xt=RegExp(`(?<![\\w$@.#-])(${bt})\\s*:(?!:)([^;{}"\\n]*)`,`gi`),St=new Set(`aliceblue antiquewhite aqua aquamarine azure beige bisque black blanchedalmond blue blueviolet brown burlywood cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan darkgoldenrod darkgray darkgreen darkgrey darkkhaki darkmagenta darkolivegreen darkorange darkorchid darkred darksalmon darkseagreen darkslateblue darkslategray darkslategrey darkturquoise darkviolet deeppink deepskyblue dimgray dimgrey dodgerblue firebrick floralwhite forestgreen fuchsia gainsboro ghostwhite gold goldenrod gray green greenyellow grey honeydew hotpink indianred indigo ivory khaki lavender lavenderblush lawngreen lemonchiffon lightblue lightcoral lightcyan lightgoldenrodyellow lightgray lightgreen lightgrey lightpink lightsalmon lightseagreen lightskyblue lightslategray lightslategrey lightsteelblue lightyellow lime limegreen linen magenta maroon mediumaquamarine mediumblue mediumorchid mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise mediumvioletred midnightblue mintcream mistyrose moccasin navajowhite navy oldlace olive olivedrab orange orangered orchid palegoldenrod palegreen paleturquoise palevioletred papayawhip peachpuff peru pink plum powderblue purple rebeccapurple red rosybrown royalblue saddlebrown salmon sandybrown seagreen seashell sienna silver skyblue slateblue slategray slategrey snow springgreen steelblue tan teal thistle tomato turquoise violet wheat white whitesmoke yellow yellowgreen`.split(` `)),Ct=/(?<![\w&-])#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})(?![0-9a-f\w-])/,wt=/\b(?:rgba?|hsla?)\(\s*[-.\d]/,Tt=/(?<![\w$@#.-])[a-z]+(?![\w-])/g,Et=/(?<![\w&-])#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)(?![0-9a-f\w-])/g,Dt=/\b(?:rgba?|hsla?)\(([^()]*)\)/g,Ot=/^(?:0+(?:\.0*)?|\.0+)%?$/;function kt(e){let t=e.split(`/`);if(t.length===2)return Ot.test(t[1].trim());let n=e.split(`,`);return n.length===4&&Ot.test(n[3].trim())}var At=[...ge].sort((e,t)=>t.length-e.length).join(`|`),jt=RegExp(`(?<![\\w$@.#-])(${At})\\s*:(?!:)([^;{}"\\n]*)`,`gi`),Mt=/var\(\s*--wui-([a-z0-9-]+)\s*[,)]/g,Nt=Object.keys(ye).join(`|`),Pt=RegExp(`var\\(\\s*--bs-(${Nt})(?:-rgb)?\\s*[,)]`,`g`),Ft=RegExp(`(?<![\\w$-])\\$(${Nt})(?![\\w-])`,`g`),It={"palette-read":0,"raw-colour":1,"raw-measure":2,"root-font-size":3};function Lt(e,t){let n=0,r=-1;for(let i=t-1;i>=0;--i){let t=e[i];if(t===`}`)n+=1;else if(t===`{`){if(n===0){r=i;break}--n}}if(r===-1)return null;let i=r-1;for(;i>=0&&!`{};`.includes(e[i]);)--i;return e.slice(i+1,r).trim()}function Rt(e,t){return Lt(e,t)?.toLowerCase()===`@font-face`}function zt(e,t){let n=Lt(e,t);return n!==null&&n.split(`,`).some(e=>{let t=e.trim().toLowerCase();return t===`html`||t===`:root`||/^(?:html|:root)(?:\[|:|\.)/.test(t)})}function Bt(e,t){let n=_t(e,t),r=yt(n,e),i=[];for(let e of n.matchAll(xt)){let t=e[1].toLowerCase(),a=e[2];Vt(t,a)&&!Rt(n,e.index)&&i.push({rule:`raw-measure`,...r(e.index),hint:null}),(t===`font-size`||t===`font`)&&zt(n,e.index)&&i.push({rule:`root-font-size`,...r(e.index),hint:null})}for(let e of n.matchAll(jt))Ht(e[2])&&i.push({rule:`raw-colour`,...r(e.index),hint:`read a meaning: var(--color-<name>); a product-only colour goes into theme/brand.tokens.json`});for(let e of n.matchAll(Mt)){let t=e[1];ut.has(t)&&i.push({rule:`palette-read`,...r(e.index),hint:mt(t,`web`)})}for(let e of n.matchAll(Pt))i.push({rule:`palette-read`,...r(e.index),hint:ht(e[1])});if(t===`scss`)for(let e of n.matchAll(Ft)){let t=e.index+e[0].length;for(;t<n.length&&/\s/.test(n[t]);)t+=1;n[t]!==`:`&&i.push({rule:`palette-read`,...r(e.index),hint:ht(e[1])})}return i.sort((e,t)=>e.line-t.line||It[e.rule]-It[t.rule]),i}function Vt(e,t){let n=t.replace(/!important/gi,``).replace(/var\(\s*--[\w-]+/g,`var(`).replace(/\$[\w-]+/g,`$v`);for(let t of n.matchAll(/(?<![\w.#$@-])-?(?:\d+(?:\.\d+)?|\.\d+)([a-zA-Z%]*)/g)){if(parseFloat(t[0])===0)continue;let r=t[1].toLowerCase();if(ve.includes(r))return!0;if(r===``&&pe.includes(e)){let r=t.index-1;for(;r>=0&&/\s/.test(n[r]);)--r;let i=t.index+t[0].length;for(;i<n.length&&/\s/.test(n[i]);)i+=1;let a=r>=0?n[r]:``,o=i<n.length?n[i]:``;if(a===`*`||o===`*`||(a===`/`||o===`/`)&&e!==`font`)continue;return!0}}return!1}function Ht(e){let t=e.replace(/url\([^)]*\)/gi,`url()`).replace(/(["'])(?:\\.|(?!\1).)*\1/g,`""`).replace(/var\(\s*--[\w-]+/g,`var(`).replace(/!important/gi,``).toLowerCase().replace(Et,``).replace(Dt,(e,t)=>kt(t)?``:e);if(Ct.test(t)||wt.test(t))return!0;for(let e of t.matchAll(Tt))if(St.has(e[0]))return!0;return!1}var Ut=/(?:\bfrom\s*|\brequire\(\s*)["']react-native["']/,Wt=[...he].sort((e,t)=>t.length-e.length),Gt=[...he,...fe].sort((e,t)=>t.length-e.length),Kt=Wt.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),qt=Gt.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Jt=RegExp(`(?<![\\w$.])(?:(${Kt})|(["'])(${qt})\\2)\\s*:(?!:)`,`g`),Yt=[..._e].sort((e,t)=>t.length-e.length),Xt=[..._e,..._e.map(Sn)].sort((e,t)=>t.length-e.length),Zt=Yt.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),Qt=Xt.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),$t=RegExp(`(?<![\\w$.])(?:(${Zt})|(["'])(${Qt})\\2)\\s*:(?!:)`,`g`),en={"palette-read":0,"raw-colour":1,"raw-measure":2,"root-font-size":3},tn=Object.keys(ye).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),nn=RegExp(`var\\(\\s*--bs-(${tn})(?:-rgb)?\\s*[,)]`,`g`),rn=/var\(\s*--wui-([a-z0-9-]+)\s*[,)]/g,an=/(?<![\w$])palette\s*(?:\?\.|\.|\[)/g,on=/(?<![\w$.])-?(?:\d+(?:\.\d+)?|\.\d+)(?![\w.])/g,sn=`read a meaning: theme.colors["<name>"] on phone, var(--color-<name>) on web; a product-only colour goes into theme/brand.tokens.json`,cn=`${sn}. react-native.md: colours come from useTheme()`,ln=/(["'`])((?:\\.|(?!\1)[^\\\n])*)\1/g,un=/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,dn=/^(?:rgba?|hsla?)\(.*\)$/i,fn=/(?<![\w$.])(?:color|[A-Za-z]+Color)\s*=\s*$/;function pn(e){return Ut.test(e)}function mn(e,{phone:t,colourLiterals:n=!1}){let{blanked:r,lineStarts:i}=hn(e),a=[],o=[];return vn(r,i,e,a),yn(r,i,e,a,o,t),Tn(r,i,e,a),En(r,i,e,a),t&&Dn(r,i,e,a),n&&bn(r,i,e,a,o),a.sort((e,t)=>e.line-t.line||en[e.rule]-en[t.rule]),a}function hn(e){let t=[],n=[0],r=0,i=!1,a=!1,o=!1,s=!1,c=!1,l=`code`,u=!1,d=0,f=[];for(;r<e.length;){let p=e[r],m=e[r+1];if(s){p===`
66
66
  `?(s=!1,t.push(p),n.push(t.length)):t.push(` `),r++;continue}if(c){p===`*`&&m===`/`?(c=!1,t.push(` `,` `),r+=2):(p===`
67
67
  `?(t.push(p),n.push(t.length)):t.push(` `),r++);continue}if(i){t.push(p),p===`
68
68
  `&&n.push(t.length),p===`\\`?(t.push(e[r+1]),r+=2):(p===`'`&&(i=!1),r++);continue}if(a){t.push(p),p===`
69
69
  `&&n.push(t.length),p===`\\`?(t.push(e[r+1]),r+=2):(p===`"`&&(a=!1),r++);continue}if(o){t.push(p),p===`
70
- `&&n.push(t.length),p===`\\`?(t.push(e[r+1]),r+=2):(p==="`"&&(o=!1),r++);continue}if(p===`/`&&m===`/`){s=!0,t.push(` `,` `),r+=2;continue}if(p===`/`&&m===`*`){c=!0,t.push(` `,` `),r+=2;continue}if(p===`'`&&l!==`text`){i=!0,t.push(p),r++;continue}if(p===`"`&&l!==`text`){a=!0,t.push(p),r++;continue}if(p==="`"){o=!0,t.push(p),r++;continue}if(p===`<`&&l!==`tag`){let n=m===`/`,i=n?e[r+2]:m;if(i!==void 0&&/[A-Za-z_$>]/.test(i)&&(l===`text`||!Zt(t))){l=`tag`,u=n,t.push(p),r++;continue}}p===`>`&&l===`tag`?(u?d=Math.max(0,d-1):Qt(t)!==`/`&&d++,l=d>0?`text`:`code`):p===`{`?(f.push(l),l=`code`):p===`}`&&f.length>0&&(l=f.pop()),t.push(p),p===`
71
- `&&n.push(t.length),r++}return{blanked:t.join(``),lineStarts:n}}function Zt(e){let t=e.slice(-16).join(``).trimEnd();return!/(?:^|[^\w$])(?:return|yield|await|case|default|else|typeof|in|of)$/.test(t)&&/[\w$)\]]$/.test(t)}function Qt(e){for(let t=e.length-1;t>=0;t--)if(!/\s/.test(e[t]))return e[t];return``}function x(e,t){let n=0,r=t.length-1;for(;n<=r;){let i=n+r>>1;t[i]<=e?n=i+1:r=i-1}return r+1}function S(e,t){let n=e.split(`
72
- `);return t>=1&&t<=n.length?n[t-1].trim().slice(0,160):``}function $t(e,t,n,r){for(let i of e.matchAll(At)){let a=i.index,o=a-1;for(;o>=0&&/\s/.test(e[o]);)o--;if(o<0||e[o]!==`{`&&e[o]!==`,`)continue;let s=i[1],c=i[3],l=s||c,u=!!c,d=i.index+i[0].length-1+1,f=nn(e,d);if(f!==-1&&an(e.slice(d,f),u?l:rn(l))){let e=x(a,t);r.push({rule:`raw-measure`,line:e,text:S(n,e),hint:null})}}}function en(e,t,n,r,i,a){Ft.lastIndex=0;for(let o of e.matchAll(Ft)){let s=o.index,c=s-1;for(;c>=0&&/\s/.test(e[c]);)c--;if(c<0||e[c]!==`{`&&e[c]!==`,`)continue;let l=o.index+o[0].length-1+1,u=nn(e,l);if(u===-1)continue;let d=e.slice(l,u);if(i.push([l,u]),!on(d).some(({content:e})=>wt(e)))continue;let f=x(s,t);r.push({rule:`raw-colour`,line:f,text:S(n,f),hint:a?Ut:Ht})}}function tn(e,t,n,r,i){Wt.lastIndex=0;for(let a of e.matchAll(Wt)){let o=a.index;if(i.some(([e,t])=>o>=e&&o<t))continue;let s=a[2];if(a[1]==="`"&&s.includes("${"))continue;let c=Gt.test(s)||Kt.test(s),l=qt.test(e.slice(Math.max(0,o-40),o));if(!(c||l)||!wt(s))continue;let u=x(o,t);r.push({rule:`raw-colour`,line:u,text:S(n,u),hint:Ut})}}function nn(e,t){let n=0,r=t,i=!1,a=!1,o=!1;for(;r<e.length;){let t=e[r];if(i){t===`\\`?r+=2:(t===`'`&&(i=!1),r++);continue}if(a){t===`\\`?r+=2:(t===`"`&&(a=!1),r++);continue}if(o){t===`\\`?r+=2:(t==="`"&&(o=!1),r++);continue}if(t===`'`){i=!0,r++;continue}if(t===`"`){a=!0,r++;continue}if(t==="`"){o=!0,r++;continue}if(t===`(`||t===`[`||t===`{`){n++,r++;continue}if(t===`)`||t===`]`||t===`}`){if(n===0)return r;n--,r++;continue}if(n===0&&(t===`,`||t===`}`||t===`)`||t===`]`||t===`;`))return r;r++}return-1}function rn(e){return e.replace(/([A-Z])/g,(e,t)=>`-${t.toLowerCase()}`)}function an(e,t){let n=on(e);for(let{content:e}of n)if(Ct(t,e))return!0;let r=e;for(let{start:e,end:t}of n)r=`${r.slice(0,e)}""${r.slice(t)}`;Vt.lastIndex=0;for(let e of r.matchAll(Vt)){if(parseFloat(e[0])===0)continue;let t=e.index-1;for(;t>=0&&/\s/.test(r[t]);)t--;if(t>=0&&`[*/<>=`.includes(r[t]))continue;let n=e.index+e[0].length;for(;n<r.length&&/\s/.test(r[n]);)n++;if(!(n<r.length&&`*/<>=`.includes(r[n])))return!0}return!1}function on(e){let t=[],n=0,r=!1,i=!1,a=!1,o=-1;for(;n<e.length;){let s=e[n];if(r){s===`\\`?n+=2:s===`'`?(r=!1,t.push({start:o,end:n+1,content:e.slice(o+1,n)}),n++):n++;continue}if(i){s===`\\`?n+=2:s===`"`?(i=!1,t.push({start:o,end:n+1,content:e.slice(o+1,n)}),n++):n++;continue}if(a){if(s===`\\`)n+=2;else if(s==="`"){a=!1;let r=e.slice(o+1,n);r=r.replace(/\$\{[^}]*\}/g,``),t.push({start:o,end:n+1,content:r}),n++}else s===`$`&&e[n+1]===`{`?n+=2:n++;continue}if(s===`'`){r=!0,o=n,n++;continue}if(s===`"`){i=!0,o=n,n++;continue}if(s==="`"){a=!0,o=n,n++;continue}n++}return t}function sn(e,t,n,r){for(let i of e.matchAll(zt)){let e=i[1];if(Ke.has(e)){let a=x(i.index,t);r.push({rule:`palette-read`,line:a,text:S(n,a),hint:Xe(e,`web`)})}}}function cn(e,t,n,r){for(let i of e.matchAll(Rt)){let e=i[1],a=x(i.index,t);r.push({rule:`palette-read`,line:a,text:S(n,a),hint:Ze(e)})}}function ln(e,t,n,r){for(let i of e.matchAll(Bt)){let a=``,o=e.slice(i.index+i[0].length);if(i[0].endsWith(`[`)){let e=o.match(/^\s*(["'])([^"']*)\1/);e&&(a=e[2])}else{let e=o.match(/^\s*([\w$]+)/);e&&(a=e[1])}let s=x(i.index,t);r.push({rule:`palette-read`,line:s,text:S(n,s),hint:Xe(a,`phone`)})}}var un=/\.(?:js|jsx|ts|tsx)$/,dn=/\.(?:test|spec)\.[jt]sx?$/,fn=new Set([`node_modules`,`__tests__`,`__mocks__`,`generated`,`android`,`ios`]),pn=[``,`.js`,`.jsx`,`.ts`,`.tsx`,`/index.js`,`/index.jsx`,`/index.ts`,`/index.tsx`],mn=/^\s*(?:\/\/|\{\s*\/\*)\s*layering-allow\s+([a-z-]+)\s*(?::\s*(.*?))?\s*(?:\*\/\s*\}?)?\s*$/,hn=/\bimport\s+(?:type\s+)?([^'"();]+?)\s+from\s*["']([^"']+)["']/g,gn=/\bimport\s*["']([^"']+)["']/g,_n=/\bexport\s+(?:type\s+)?(\*(?:\s+as\s+[\w$]+)?|\{[^}]*\})\s*from\s*["']([^"']+)["']/g,vn=/\brequire\(\s*["']([^"']+)["']\s*\)/g,yn=/\bimport\(\s*["']([^"']+)["']\s*\)/g;function bn(e){let t=e.split(`
70
+ `&&n.push(t.length),p===`\\`?(t.push(e[r+1]),r+=2):(p==="`"&&(o=!1),r++);continue}if(p===`/`&&m===`/`){s=!0,t.push(` `,` `),r+=2;continue}if(p===`/`&&m===`*`){c=!0,t.push(` `,` `),r+=2;continue}if(p===`'`&&l!==`text`){i=!0,t.push(p),r++;continue}if(p===`"`&&l!==`text`){a=!0,t.push(p),r++;continue}if(p==="`"){o=!0,t.push(p),r++;continue}if(p===`<`&&l!==`tag`){let n=m===`/`,i=n?e[r+2]:m;if(i!==void 0&&/[A-Za-z_$>]/.test(i)&&(l===`text`||!gn(t))){l=`tag`,u=n,t.push(p),r++;continue}}p===`>`&&l===`tag`?(u?d=Math.max(0,d-1):_n(t)!==`/`&&d++,l=d>0?`text`:`code`):p===`{`?(f.push(l),l=`code`):p===`}`&&f.length>0&&(l=f.pop()),t.push(p),p===`
71
+ `&&n.push(t.length),r++}return{blanked:t.join(``),lineStarts:n}}function gn(e){let t=e.slice(-16).join(``).trimEnd();return!/(?:^|[^\w$])(?:return|yield|await|case|default|else|typeof|in|of)$/.test(t)&&/[\w$)\]]$/.test(t)}function _n(e){for(let t=e.length-1;t>=0;t--)if(!/\s/.test(e[t]))return e[t];return``}function b(e,t){let n=0,r=t.length-1;for(;n<=r;){let i=n+r>>1;t[i]<=e?n=i+1:r=i-1}return r+1}function x(e,t){let n=e.split(`
72
+ `);return t>=1&&t<=n.length?n[t-1].trim().slice(0,160):``}function vn(e,t,n,r){for(let i of e.matchAll(Jt)){let a=i.index,o=a-1;for(;o>=0&&/\s/.test(e[o]);)o--;if(o<0||e[o]!==`{`&&e[o]!==`,`)continue;let s=i[1],c=i[3],l=s||c,u=!!c,d=i.index+i[0].length-1+1,f=xn(e,d);if(f!==-1&&Cn(e.slice(d,f),u?l:Sn(l))){let e=b(a,t);r.push({rule:`raw-measure`,line:e,text:x(n,e),hint:null})}}}function yn(e,t,n,r,i,a){$t.lastIndex=0;for(let o of e.matchAll($t)){let s=o.index,c=s-1;for(;c>=0&&/\s/.test(e[c]);)c--;if(c<0||e[c]!==`{`&&e[c]!==`,`)continue;let l=o.index+o[0].length-1+1,u=xn(e,l);if(u===-1)continue;let d=e.slice(l,u);if(i.push([l,u]),!wn(d).some(({content:e})=>Ht(e)))continue;let f=b(s,t);r.push({rule:`raw-colour`,line:f,text:x(n,f),hint:a?cn:sn})}}function bn(e,t,n,r,i){ln.lastIndex=0;for(let a of e.matchAll(ln)){let o=a.index;if(i.some(([e,t])=>o>=e&&o<t))continue;let s=a[2];if(a[1]==="`"&&s.includes("${"))continue;let c=un.test(s)||dn.test(s),l=fn.test(e.slice(Math.max(0,o-40),o));if(!(c||l)||!Ht(s))continue;let u=b(o,t);r.push({rule:`raw-colour`,line:u,text:x(n,u),hint:cn})}}function xn(e,t){let n=0,r=t,i=!1,a=!1,o=!1;for(;r<e.length;){let t=e[r];if(i){t===`\\`?r+=2:(t===`'`&&(i=!1),r++);continue}if(a){t===`\\`?r+=2:(t===`"`&&(a=!1),r++);continue}if(o){t===`\\`?r+=2:(t==="`"&&(o=!1),r++);continue}if(t===`'`){i=!0,r++;continue}if(t===`"`){a=!0,r++;continue}if(t==="`"){o=!0,r++;continue}if(t===`(`||t===`[`||t===`{`){n++,r++;continue}if(t===`)`||t===`]`||t===`}`){if(n===0)return r;n--,r++;continue}if(n===0&&(t===`,`||t===`}`||t===`)`||t===`]`||t===`;`))return r;r++}return-1}function Sn(e){return e.replace(/([A-Z])/g,(e,t)=>`-${t.toLowerCase()}`)}function Cn(e,t){let n=wn(e);for(let{content:e}of n)if(Vt(t,e))return!0;let r=e;for(let{start:e,end:t}of n)r=`${r.slice(0,e)}""${r.slice(t)}`;on.lastIndex=0;for(let e of r.matchAll(on)){if(parseFloat(e[0])===0)continue;let t=e.index-1;for(;t>=0&&/\s/.test(r[t]);)t--;if(t>=0&&`[*/<>=`.includes(r[t]))continue;let n=e.index+e[0].length;for(;n<r.length&&/\s/.test(r[n]);)n++;if(!(n<r.length&&`*/<>=`.includes(r[n])))return!0}return!1}function wn(e){let t=[],n=0,r=!1,i=!1,a=!1,o=-1;for(;n<e.length;){let s=e[n];if(r){s===`\\`?n+=2:s===`'`?(r=!1,t.push({start:o,end:n+1,content:e.slice(o+1,n)}),n++):n++;continue}if(i){s===`\\`?n+=2:s===`"`?(i=!1,t.push({start:o,end:n+1,content:e.slice(o+1,n)}),n++):n++;continue}if(a){if(s===`\\`)n+=2;else if(s==="`"){a=!1;let r=e.slice(o+1,n);r=r.replace(/\$\{[^}]*\}/g,``),t.push({start:o,end:n+1,content:r}),n++}else s===`$`&&e[n+1]===`{`?n+=2:n++;continue}if(s===`'`){r=!0,o=n,n++;continue}if(s===`"`){i=!0,o=n,n++;continue}if(s==="`"){a=!0,o=n,n++;continue}n++}return t}function Tn(e,t,n,r){for(let i of e.matchAll(rn)){let e=i[1];if(ut.has(e)){let a=b(i.index,t);r.push({rule:`palette-read`,line:a,text:x(n,a),hint:mt(e,`web`)})}}}function En(e,t,n,r){for(let i of e.matchAll(nn)){let e=i[1],a=b(i.index,t);r.push({rule:`palette-read`,line:a,text:x(n,a),hint:ht(e)})}}function Dn(e,t,n,r){for(let i of e.matchAll(an)){let a=``,o=e.slice(i.index+i[0].length);if(i[0].endsWith(`[`)){let e=o.match(/^\s*(["'])([^"']*)\1/);e&&(a=e[2])}else{let e=o.match(/^\s*([\w$]+)/);e&&(a=e[1])}let s=b(i.index,t);r.push({rule:`palette-read`,line:s,text:x(n,s),hint:mt(a,`phone`)})}}var On=/\.(?:js|jsx|ts|tsx)$/,kn=/\.(?:test|spec)\.[jt]sx?$/,An=new Set([`node_modules`,`__tests__`,`__mocks__`,`generated`,`android`,`ios`]),jn=[``,`.js`,`.jsx`,`.ts`,`.tsx`,`/index.js`,`/index.jsx`,`/index.ts`,`/index.tsx`],Mn=/^\s*(?:\/\/|\{\s*\/\*)\s*layering-allow\s+([a-z-]+)\s*(?::\s*(.*?))?\s*(?:\*\/\s*\}?)?\s*$/,Nn=/\bimport\s+(?:type\s+)?([^'"();]+?)\s+from\s*["']([^"']+)["']/g,Pn=/\bimport\s*["']([^"']+)["']/g,Fn=/\bexport\s+(?:type\s+)?(\*(?:\s+as\s+[\w$]+)?|\{[^}]*\})\s*from\s*["']([^"']+)["']/g,In=/\brequire\(\s*["']([^"']+)["']\s*\)/g,Ln=/\bimport\(\s*["']([^"']+)["']\s*\)/g;function Rn(e){let t=e.split(`
73
73
  `).length;return e.endsWith(`
74
- `)?t-1:t}function xn(e){return!un.test(e)||dn.test(e)?!1:!e.split(`/`).slice(0,-1).some(e=>fn.has(e))}function C(e){return e.filter(xn)}function w(e,t){let n=r(l(e,t),`utf8`),{blanked:i,lineStarts:a}=Xt(n);return{file:t,text:n,blanked:i,lines:n.split(`
75
- `),lineAt:e=>{let t=0,n=a.length-1;for(;t<=n;){let r=t+n>>1;a[r]<=e?t=r+1:n=r-1}return n+1}}}function Sn(e){let t=e.trim();if(t===`*`)return[{name:`*`,local:`*`}];let n=[],r=t.match(/\*\s+as\s+([\w$]+)/);r&&n.push({name:`*`,local:r[1]});let i=t.match(/\{([^}]*)\}/);if(i)for(let e of i[1].split(`,`)){let t=e.trim().replace(/^type\s+/,``).match(/^([\w$]+)(?:\s+as\s+([\w$]+))?$/);t&&n.push({name:t[1],local:t[2]??t[1]})}let a=t.replace(/\{[^}]*\}/,``).replace(/\*\s+as\s+[\w$]+/,``).replace(/,/g,``).trim();return/^[\w$]+$/.test(a)&&n.push({name:`default`,local:a}),n}function T(e){let t=[],n=(n,r,i,a)=>t.push({kind:r,specifier:i,imported:a,line:e.lineAt(n)});for(let t of e.blanked.matchAll(hn))n(t.index,`import`,t[2],Sn(t[1]));for(let t of e.blanked.matchAll(gn))n(t.index,`import`,t[1],[]);for(let t of e.blanked.matchAll(_n))n(t.index,`export-from`,t[2],Sn(t[1]));for(let t of e.blanked.matchAll(vn))n(t.index,`require`,t[1],[]);for(let t of e.blanked.matchAll(yn))n(t.index,`dynamic`,t[1],[]);return t.sort((e,t)=>e.line-t.line)}function E(e,t,n){let r;if(n.startsWith(`@/`))r=`src/${n.slice(2)}`;else if(n.startsWith(`.`))r=d.normalize(d.join(d.dirname(t),n));else return null;for(let t of pn)if(e.has(r+t))return r+t;return null}function D(e,t,n){let r=[];t.lines.forEach((t,n)=>{let i=mn.exec(t);i&&i[1]===e&&r.push({line:n+1,reason:(i[2]??``).trim()})});let i=new Set(r.filter(e=>e.reason!==``).map(e=>e.line)),a=n.filter(e=>!(i.has(e.line-1)||e.line===1&&i.has(1))).map(n=>({rule:e,file:t.file,line:n.line,message:n.message,...n.note?{note:!0}:{}}));for(let n of r)n.reason===``&&a.push({rule:e,file:t.file,line:n.line,message:`layering-allow needs a reason`});return a}function O(e){return[...e].sort((e,t)=>e.file===t.file?e.line===t.line?e.message===t.message?0:e.message<t.message?-1:1:e.line-t.line:e.file<t.file?-1:1)}var Cn=/^src\/screens\/(public|user)\/([^/]+)\/.+/;function wn(e){let t=Cn.exec(e);return t?`${t[1]}/${t[2]}`:null}function Tn(e,t){let n=C(t),r=new Set(n),i=[];for(let t of n){let n=wn(t);if(n===null)continue;let a=w(e,t),o=[];for(let e of T(a)){let i=E(r,t,e.specifier),a=i===null?null:wn(i);a!==null&&a!==n&&o.push({line:e.line,message:`imports ${i} from another screen area. react-native.md: a part two areas use lives in src/components/<area>/ or src/components/shared/.`})}i.push(...D(`cross-feature-import`,a,o))}return O(i)}var En=new Set([`assets`,`components`,`constants`,`hooks`,`navigation`,`redux`,`screens`,`services`,`utils`]),Dn=/\.(?:jsx|ts|tsx)$/,On=/\.(?:js|jsx|ts|tsx)$/,kn=/^src\/screens\/(?:public\/.+|user\/[^/]+\/.+)$/,An=/[A-Za-z0-9]Screen\.js$/,k={folder:`a top-level folder of src is one of assets, components, constants, hooks, navigation, redux, screens, services, utils`,screenHome:`a screen file lives in src/screens/public/ or src/screens/user/<area>/`,script:`source files are .js, never .jsx, .ts or .tsx`,suffix:`a screen is named without a Screen suffix`,theme:`src/assets/theme holds only settings.js`,tsconfig:`an app has no tsconfig.json`},jn=(e,t)=>`${e}: react-native.md App layout: ${t}.`;function Mn(e,t){let n=new Set,r=new Map,i=(e,t)=>{r.has(e)||r.set(e,[]),r.get(e).push({line:1,message:jn(e,t)})};for(let e of t){let t=e.split(`/`);t[0]===`src`&&(t.some(e=>e===`node_modules`||e===`generated`||e===`__tests__`)||(t.length>2&&!En.has(t[1])&&n.add(t[1]),Dn.test(e)&&i(e,k.script),e.startsWith(`src/screens/`)&&On.test(e)&&(e!==`src/screens/index.js`&&!kn.test(e)&&i(e,k.screenHome),An.test(e)&&i(e,k.suffix)),e.startsWith(`src/assets/theme/`)&&e!==`src/assets/theme/settings.js`&&i(e,k.theme)))}let a=[];for(let[t,n]of r)xn(t)?a.push(...D(`folder-layout`,w(e,t),n)):a.push(...n.map(e=>({rule:`folder-layout`,file:t,line:e.line,message:e.message})));for(let r of n){let n={rule:`folder-layout`,file:`src/${r}`,line:1,message:jn(`src/${r}`,k.folder)},i=`src/${r}/index.js`;if(!t.includes(i)){a.push(n);continue}for(let t of D(`folder-layout`,w(e,i),[{line:1,message:n.message}]))a.push(t.message===n.message?n:t)}return t.includes(`tsconfig.json`)&&a.push({rule:`folder-layout`,file:`tsconfig.json`,line:1,message:jn(`tsconfig.json`,k.tsconfig)}),O(a)}var Nn=`src/screens/index.js`;function Pn(e,t){let n=C(t),r=new Set(n),i=[];for(let t of n){if(t.startsWith(`src/screens/`)||t.startsWith(`src/navigation/`))continue;let n=w(e,t),a=[];for(let e of T(n)){let n=E(r,t,e.specifier);n?.startsWith(`src/screens/`)&&n!==Nn&&a.push({line:e.line,message:`imports a screen folder from outside src/screens. react-native.md: hooks, utils and components never import screens.`})}i.push(...D(`import-into-screens`,n,a))}return O(i)}var Fn=`@webority/mobile-ui`,In=40,Ln=/\{\s*\.\.\.(?:props|rest)\s*\}/,Rn=[`lib/typescript/module/components/index.d.ts`,`lib/typescript/module/index.d.ts`],zn=e=>`wraps mobile-ui ${e}. react-native.md: no restyle or pass-through wrapper; use ${e} directly, put house defaults in theme settings.`;function Bn(e){let n=new Set;for(let i of Rn){let a=l(e,`node_modules`,`@webority`,`mobile-ui`,i);if(t(a))for(let e of r(a,`utf8`).matchAll(/export\s+(?!type\b)\{([^}]*)\}\s*from/g))for(let t of e[1].split(`,`)){let e=t.trim().split(/\s+as\s+/).pop();/^[\w$]+$/.test(e)&&n.add(e)}}return n}function Vn(e){let t=new Set;/\bexport\s+default\b/.test(e)&&t.add(`default`);for(let n of e.matchAll(/\bexport\s+(?:const|let|var|function\*?|class)\s+([A-Z][\w$]*)/g))t.add(n[1]);for(let n of e.matchAll(/\bexport\s*\{([^}]*)\}/g))for(let e of n[1].split(`,`)){let n=e.trim().split(/\s+as\s+/).pop();(n==="default"||/^[A-Z][\w$]*$/.test(n))&&t.add(n)}return t.size}function Hn(e,t){let n=0;for(let r=t;r<e.length;r++){let i=e[r];if(i===`{`)n++;else if(i===`}`)n--;else if(i===`>`&&n===0)return e.slice(t,r+1)}return e.slice(t)}function Un(e){if(bn(e.text)>In)return null;let t=new Set;for(let n of T(e))if(!(n.kind!==`import`||n.specifier!==Fn&&!n.specifier.startsWith(`${Fn}/`)))for(let{name:e,local:r}of n.imported)e!==`*`&&t.add(r);if(t.size===0||Vn(e.blanked)!==1)return null;for(let n of e.blanked.matchAll(/(?:=>|\breturn)\s*\(?\s*<([A-Z][\w$]*)/g)){if(!t.has(n[1]))continue;let r=n.index+n[0].length-n[1].length-1;if(Ln.test(Hn(e.blanked,r)))return{name:n[1],line:e.lineAt(r)}}return null}function Wn(e,t){let n=Bn(e),r=[];for(let i of C(t)){if(!i.startsWith(`src/`))continue;let t=w(e,i),a=[],s=/^App([A-Z][A-Za-z0-9]*)\.[jt]sx?$/.exec(o(i))?.[1];if(s&&n.has(s))a.push({line:1,message:zn(s)});else{let e=Un(t);e&&a.push({line:e.line,message:zn(e.name)})}r.push(...D(`library-wrapper`,t,a))}return O(r)}var Gn=`@webority/mobile-ui`,Kn=new Set([`makeStyles`,`useTheme`,`ThemeProvider`]),qn=new Set([`COLORS`,`PALETTE`,`LIGHT_COLORS`,`DARK_COLORS`,`commonStyles`,`FONT_SIZE`,`Responsive`]),Jn=/\bexport\s+(?:const|let|var|function\*?|class)\s+([A-Za-z_$][\w$]*)/g,Yn=/\bexport\s*\{([^}]*)\}/g,Xn=e=>`local theme ${e}. react-native.md: the library owns the theme; the app supplies brand and settings only.`;function Zn(e,t){let n=[];for(let r of C(t)){if(!r.startsWith(`src/`))continue;let t=w(e,r),i=[];for(let e of T(t))if(!(e.kind!==`import`||e.specifier===Gn||e.specifier.startsWith(`${Gn}/`)))for(let{name:t,local:n}of e.imported){let r=t==="default"?n:t;Kn.has(r)&&i.push({line:e.line,message:Xn(r)})}for(let e of t.blanked.matchAll(Jn))qn.has(e[1])&&i.push({line:t.lineAt(e.index),message:Xn(e[1])});for(let e of t.blanked.matchAll(Yn))for(let n of e[1].split(`,`)){let r=n.trim().split(/\s+as\s+/).pop();qn.has(r)&&i.push({line:t.lineAt(e.index),message:Xn(r)})}n.push(...D(`local-theme`,t,i))}return O(n)}var Qn=/^(?:workspace:|file:|link:)/;function $n(e){let t=l(e,`package.json`),n,i;try{n=r(t,`utf8`),i=JSON.parse(n)}catch{return[]}let a={...i.dependencies,...i.devDependencies},o=Object.keys(a).filter(e=>e.startsWith(`@webority/mobile-`)||e===`@webority/biome-config`).filter(e=>!Qn.test(String(a[e]))).sort().map(e=>[e,String(a[e]).replace(/^[\^~]/,``)]),s=o[0],c=s?o.find(([,e])=>e!==s[1]):void 0;if(!s||!c)return[];let u=n.split(`
76
- `).findIndex(e=>e.includes(`"${s[0]}"`));return[{rule:`mobile-pins-lockstep`,file:`package.json`,line:u===-1?1:u+1,message:`pins ${s[0]}@${s[1]} and ${c[0]}@${c[1]}. react-native.md: the phone packages move together.`}]}var er=new Set([`Text`,`TextInput`,`Pressable`,`TouchableOpacity`,`TouchableHighlight`,`TouchableWithoutFeedback`,`ActivityIndicator`,`Modal`,`Switch`,`Button`]),tr=e=>`${e} from react-native in a screen or product component. react-native.md: use the mobile-ui part (Text, Input, Button, Card onPress, Spinner, Modal, Switch); mark a deliberate use with // layering-allow raw-primitive: <reason>.`;function nr(e,t){let n=[];for(let r of C(t)){if(!r.startsWith(`src/screens/`)&&!r.startsWith(`src/components/`))continue;let t=w(e,r),i=new Set;for(let e of T(t))if(!(e.kind!==`import`||e.specifier!==`react-native`))for(let{name:t,local:n}of e.imported)er.has(t)&&i.add(n);let a=[];for(let e of i){let n=RegExp(`(?<![\\w$)\\]])<${e.replace(/\$/g,`\\$`)}(?![\\w$.-])`,`g`);for(let r of t.blanked.matchAll(n))a.push({line:t.lineAt(r.index),message:tr(e)})}n.push(...D(`raw-primitive`,t,a))}return O(n)}var A=`src/screens/index.js`;function rr(e,t){let n=C(t);if(!n.includes(A))return[];let r=new Set(n),i=new Set;for(let t of T(w(e,A))){if(t.kind!==`export-from`)continue;let e=E(r,A,t.specifier);e!==null&&i.add(e)}let a=[];for(let t of n){if(t===A||t.startsWith(`src/navigation/`))continue;let n=w(e,t),o=[];for(let e of T(n)){let n=E(r,t,e.specifier);if(n!==null&&n!==t&&i.has(n)){let t=d.basename(n).replace(/\.[^.]+$/,``);o.push({line:e.line,message:`imports the route screen ${t}. react-native.md: share the form or part as a sibling file, never a screen.`})}}a.push(...D(`screen-imports-screen`,n,o))}return O(a)}var ir=400,ar=600;function or(e,t){let n=[];for(let r of C(t)){if(!r.startsWith(`src/screens/`))continue;let t=w(e,r),i=bn(t.text),a=i>ir?[{line:1,message:`${i} lines. react-native.md: split a screen over 400 lines; over 600 is a finding.`,note:i<=ar}]:[];n.push(...D(`screen-length`,t,a))}return O(n)}var sr=/(?:^|\/)index\.[jt]sx?$/,cr=e=>e.startsWith(`src/components/`)&&!sr.test(e);function lr(e,t){let n=C(t),r=new Set(n),i=new Map,a=t=>(i.has(t)||i.set(t,w(e,t)),i.get(t)),o=new Map;for(let e of n){if(!e.startsWith(`src/components/`)||!sr.test(e))continue;let t=new Map,n=[];for(let i of T(a(e))){if(i.kind!==`export-from`)continue;let a=E(r,e,i.specifier);if(a!==null)for(let{name:e,local:r}of i.imported)e===`*`&&r===`*`?n.push(a):t.set(r,a)}o.set(e,{named:t,star:n})}let s=(e,t)=>RegExp(`export\\s+(?:const|let|var|function\\*?|class)\\s+${t.replace(/\$/g,`\\$`)}\\b|export\\s*\\{[^}]*\\b${t.replace(/\$/g,`\\$`)}\\b`).test(a(e).blanked),c=new Map,l=(e,t)=>{e!==t&&(c.has(e)||c.set(e,new Set),c.get(e).add(t))};for(let e of n)for(let t of T(a(e))){if(t.kind===`export-from`)continue;let n=E(r,e,t.specifier);if(n===null)continue;let i=o.get(n);if(!i){l(n,e);continue}for(let{name:n}of t.imported){let t=i.named.get(n)??i.star.find(e=>s(e,n));t&&l(t,e)}}let u=[];for(let e of n){if(!cr(e))continue;let t=c.get(e)?.size??0,n=t<2?[{line:1,message:`${e} has ${t} importer(s). react-native.md: a part one screen uses lives beside that screen.`}]:[];u.push(...D(`shared-single-importer`,a(e),n))}return O(u)}var ur=/(?<![\w$.])Responsive\s*\.\s*(?:width|height|font)\s*\(/g,dr=`scales by screen width. react-native.md: use theme.space and the text scale.`;function fr(e,t){let n=[];for(let r of C(t)){if(!r.startsWith(`src/`))continue;let t=w(e,r),i=[...t.blanked.matchAll(ur)].map(e=>({line:t.lineAt(e.index),message:dr}));n.push(...D(`width-scaling`,t,i))}return O(n)}var pr=[nr,Tn,Pn,rr,lr,Wn,or,$n,Mn,Zn,fr],mr=new Set([`node_modules`,`android`,`ios`,`.git`]);function hr(e,t=``){let n=[];for(let r of i(l(e,t),{withFileTypes:!0})){if(mr.has(r.name))continue;let i=t?`${t}/${r.name}`:r.name;r.isDirectory()?n.push(...hr(e,i)):n.push(i)}return n}function gr(e){let t=hr(e).sort(),n=[];for(let r of pr.flatMap(n=>n(e,t))){let e=`${r.file}:${r.line} ${r.message}`;r.note?console.log(`note: ${e}`):n.push([`${r.rule}:${r.file}`,e])}return n}var _r=new Set([`node_modules`,`dist`,`build`,`.git`,`.gradle`,`Pods`,`DerivedData`]);function j(e,t){return i(e,{withFileTypes:!0}).flatMap(n=>n.isDirectory()?t.has(n.name)?[]:j(l(e,n.name),t):[l(e,n.name)])}var vr=e=>e.split(`\\`).join(`/`);function yr(e,t){return e.replace(t,e=>e.replace(/[^\n]/g,` `))}function br(e,t){return e.slice(0,t).split(`
77
- `).length}var xr=/^MainActivity\.(?:kt|java)$/,Sr=/\bsuper\.onCreate\(\s*(?!null\s*\))[^)]*\)/;function Cr(e){let n=l(e,`android`,`app`,`src`);if(!t(n))return[];let i=[];for(let t of j(n,_r)){if(!xr.test(o(t)))continue;let n=yr(yr(r(t,`utf8`),/\/\*[\s\S]*?\*\//g),/\/\/[^\n]*/g),a=Sr.exec(n);if(!a)continue;let s=vr(f(e,t));i.push([`rn-mainactivity-oncreate-bundle:${s}`,`${s}:${br(n,a.index)} passes a bundle to super.onCreate. react-native-toolchain.md → Android: super.onCreate(null): pass null, so Android does not restore stale Screen fragments after the OS kills the app, and register the splash screen before it.`])}return i}var wr=/EXPO_UPDATE_URL"[^>]*?\/(Staging|Development)"/,Tr=/<key>EXPO_UPDATE_URL<\/key>\s*<string>[^<]*\/(Staging|Development)<\/string>/,Er=/^APP_ID=.*\.(staging|development)\s*$/m;function Dr(e){let n=[{file:l(e,`android`,`app`,`src`,`main`,`AndroidManifest.xml`),pattern:wr},{file:l(e,`android`,`gradle.properties`),pattern:Er}],r=l(e,`ios`);if(t(r))for(let e of j(r,_r))o(e)===`Expo.plist`&&n.push({file:e,pattern:Tr});return n.filter(({file:e})=>t(e))}function Or(e){let t=[];for(let{file:n,pattern:i}of Dr(e)){let a=vr(f(e,n)),o=r(n,`utf8`),s=i.exec(o);s&&t.push([`mobile-production-stamps:${a}`,`${a}:${br(o,s.index)} carries ${s[1]} values from a mobile-tools prebuild. Run \`mobile-tools prebuild --env Production\` in the app folder before committing, so production builds never read the ${s[1]} update feed or app id.`])}return t}var kr=/^spa-host\..+\.json$/,Ar=new Set([`web.config`,`staticwebapp.config.json`,`_headers`,`spa-host.json`]);function jr(e){let t=[];for(let n of j(e,new Set([..._r,`android`,`ios`]))){let i=o(n);if(!Ar.has(i)&&!kr.test(i))continue;let a=yr(r(n,`utf8`),/<!--[\s\S]*?-->/g).split(`
78
- `).findIndex(e=>/\bimmutable\b/i.test(e)&&/cache/i.test(e));if(a===-1)continue;let s=vr(f(e,n));t.push([`spa-host-immutable-assets:${s}`,`${s}:${a+1} sets a Cache-Control with immutable. react.md → SPA deploy artifacts: /assets/* is "public, max-age=31536000" without immutable, because immutable on a content-hashed URL can brick that URL in the browser cache across a bad deploy.`])}return t}var Mr=[[`eslint`,`react.md: Biome is the only lint and format tool`],[`@eslint/js`,`react.md: Biome is the only lint and format tool`],[`prettier`,`react.md: Biome is the only lint and format tool`],[`lint-staged`,`react.md: the shared pre-commit hook replaces lint-staged`]],Nr=[[`@typescript-eslint/`,`react.md: no TypeScript toolchain residue`],[`eslint-plugin-`,`react.md: Biome is the only lint and format tool`],[`eslint-config-`,`react.md: Biome is the only lint and format tool`],[`prettier-plugin-`,`react.md: Biome is the only lint and format tool`]],M=`bootstrap-ui.md: hard interactive components come from @webority/ui-react`,Pr=`react.md: Bootstrap 5.3.3 is the only UI framework`,N=`react.md: dates format through Intl and the web-core formatters`,Fr=`react-native.md: retired; Intl and the mobile-core formatters`,Ir={web:[...Mr,[`typescript`,`react.md: JavaScript only, never TypeScript`],[`sass`,`react.md: the SCSS compiler is sass-embedded, never the pure-JS sass`],[`react-toastify`,`react.md: notifications are toast from @webority/ui-react`],[`downshift`,M],[`react-day-picker`,M],[`react-aria`,M],[`react-aria-components`,M],[`@webority/ui-elements`,`bootstrap-ui.md: products use the App* wrappers, and ui-react brings the elements itself`],[`crypto-js`,`react.md: stored tokens are never encrypted client-side`],[`tailwindcss`,Pr],[`antd`,Pr],[`styled-components`,`react.md: no CSS-in-JS`],[`bootstrap-icons`,`bootstrap-ui.md: icons are AppIcon from @webority/ui-react`],[`iconsax-react`,`ui-components.md: icons are AppIcon from @webority/ui-react`],[`moment`,N],[`moment-timezone`,N],[`dayjs`,N],[`date-fns`,N]],mobile:[...Mr,[`typescript`,`react-native.md: app code is JavaScript`],[`@types/react`,`react-native.md: app code is JavaScript`],[`@react-native/typescript-config`,`react-native.md: app code is JavaScript`],[`react-native-permissions`,`react-native.md: retired; each Expo module requests its own permission`],[`moment`,Fr],[`moment-timezone`,Fr],[`dayjs`,Fr],[`react-native-fast-image`,`react-native.md: retired; expo-image`],[`@d11/react-native-fast-image`,`react-native.md: retired; expo-image`],[`formik`,`react-native.md: retired; react-hook-form`],[`yup`,`react-native.md: retired; zod with zodResolver`],[`react-native-status-bar-height`,`react-native.md: retired; react-native-safe-area-context insets`],[`react-native-flash-message`,`react-native.md: retired; the mobile-ui toast`],[`react-native-toast-message`,`react-native.md: retired; the mobile-ui toast`],[`prop-types`,`react-native.md: retired; defaults in the parameter destructure`],[`@react-navigation/stack`,`react-native.md: retired; @react-navigation/native-stack`],[`react-native-version-check`,`react-native.md: retired; the server-driven minimum version`],[`@react-native-firebase/messaging`,`react-native.md: push is expo-notifications through mobile-core`],[`@notifee/react-native`,`react-native.md: push is expo-notifications through mobile-core`],[`patch-package`,`react-native-toolchain.md: patch with pnpm patch, never patch-package`]],demo:[]},Lr={web:[...Nr,[`@mui/`,Pr],[`@chakra-ui/`,Pr],[`@emotion/`,`react.md: no CSS-in-JS`],[`@radix-ui/`,M],[`@react-aria/`,M]],mobile:[...Nr],demo:[]},Rr={web:[[`axios-retry`,`@webority/web-core`,`react.md: retry lives only in @webority/web-core`]],mobile:[[`axios-retry`,`@webority/mobile-core`,`react.md: retry lives only in @webority/mobile-core`]],demo:[]},zr={web:[[`@biomejs/biome`,`react.md: Biome is mandatory`],[`@webority/biome-config`,`react.md: every repo extends the shared Biome preset`],[`@webority/web-core`,`react.md: clients, auth, errors and logging come from web-core`],[`@webority/ui-react`,`react.md: App* components come from the catalogue`],[`@webority/theme`,`bootstrap-ui.md: look and tokens come from the shared theme`],[`bootstrap`,`bootstrap-ui.md: Bootstrap 5.3.3 on every surface`],[`react-bootstrap`,`bootstrap-ui.md: react-bootstrap is a dependency from project init`],[`sass-embedded`,`react.md: the SCSS compiler is sass-embedded`]],mobile:[[`@biomejs/biome`,`react-native.md: Biome is mandatory`],[`@webority/biome-config`,`react.md: every repo extends the shared Biome preset`],[`@webority/mobile-core`,`react-native.md: apps consume the shared mobile library`],[`@webority/mobile-ui`,`react-native.md: apps consume the shared mobile library`],[`@react-native-firebase/app`,`react-native.md: Crashlytics in every app`],[`@react-native-firebase/crashlytics`,`react-native.md: Crashlytics in every app`]],demo:[[`@biomejs/biome`,`react.md: Biome is mandatory`],[`@webority/biome-config`,`react.md: every repo extends the shared Biome preset`]]},Br=`5.3.3`,Vr=[`agentation`],Hr=`>=24.15 <25`,Ur=[[`web-import-axios`,/(?:\bfrom\s*|\bimport\s*\(\s*|\brequire\s*\(\s*|^\s*import\s*)["']axios(?:\/[^"']*)?["']/m,`imports axios`,`react.md: HTTP goes through userClient and publicClient from @webority/web-core`],[`web-import-router`,/\bimport\s*\{[^}]*\b(?:BrowserRouter|Routes)\b[^}]*\}\s*from\s*["']react-router(?:-dom)?["']/,`imports BrowserRouter or Routes`,`react.md: routes are objects passed to createBrowserRouter and rendered by RouterProvider`],[`web-import-env-branch`,/\bimport\.meta\.env\.(?:DEV|PROD)\b/,`reads import.meta.env.DEV or PROD`,`react.md: branch on AppSettings.ENVIRONMENT; DEV and PROD only say which React build is bundled`]],Wr=[[`@webority/theme`,`@webority/ui-react`,`@webority/support-react`,`@webority/chat-react`,`@webority/web-core`,`@webority/biome-config`,`@webority/repo-checks`],[`@webority/mobile-core`,`@webority/mobile-ui`,`@webority/mobile-support`,`@webority/mobile-tools`]],Gr=`@webority/biome-config/biome.jsonc`,Kr={react:[`Children`,`Fragment`,`Profiler`,`StrictMode`,`Suspense`]},qr=`AppAccordion.AppActionIcon.AppAlert.AppAsyncBlock.AppAutocomplete.AppAvatar.AppAvatarGroup.AppBadge.AppBanner.AppBreadcrumbs.AppButton.AppButtonGroup.AppCalendar.AppCard.AppCarousel.AppChart.AppChartCard.AppCheckbox.AppChip.AppChipGroup.AppChoiceCard.AppChoiceChip.AppCodeBlock.AppColorField.AppColumnMenu.AppCommandPalette.AppCommentThread.AppCompareTable.AppConfirmDialog.AppConsentBanner.AppContextMenu.AppCopyButton.AppCountryFlag.AppCountrySelect.AppDashboardCell.AppDashboardGrid.AppDataTable.AppDatePicker.AppDateRangePicker.AppDescriptions.AppDetailPane.AppDrawer.AppDropZone.AppDropdown.AppDueDate.AppEmptyState.AppErrorSummary.AppFileAttachment.AppFilePicker.AppFileTiles.AppFileViewer.AppFilterBar.AppFloatingDock.AppFormActions.AppFormRow.AppFormSection.AppHoverCard.AppIcon.AppImagePicker.AppInfoTip.AppInlineEdit.AppInput.AppInputGroup.AppKanban.AppKbd.AppKpiTile.AppLightbox.AppLink.AppMarkdown.AppMentionInput.AppMeter.AppMetricStrip.AppModal.AppMultiSelect.AppNavList.AppNavigationMenu.AppNotificationCenter.AppNumberInput.AppOnboardingChecklist.AppOtpInput.AppPageHeader.AppPhoneNumberInput.AppPopover.AppPricingCard.AppProgress.AppQrCode.AppRadio.AppRadioGroup.AppRating.AppRecordPager.AppRelativeTime.AppRepeater.AppRequiredMark.AppResizable.AppResizableHandle.AppResizablePanel.AppResourceCard.AppResult.AppRichText.AppRollingNumber.AppRouteError.AppScoreScale.AppScrollbar.AppSearch.AppSectionCallToAction.AppSectionFaq.AppSectionFeatures.AppSectionHero.AppSectionLeadCapture.AppSectionLogos.AppSectionPricing.AppSectionTestimonials.AppSegmented.AppSelect.AppSeoHead.AppShell.AppShortcutLegend.AppShowMore.AppSkeleton.AppSkeletonLines.AppSkeletonRows.AppSlider.AppSortableList.AppSparkline.AppSpinner.AppSplash.AppSplitButton.AppSplitView.AppStatusBadge.AppStepper.AppSwitch.AppTablePagination.AppTableToolbar.AppTabs.AppTagInput.AppTextarea.AppThemeToggle.AppTimePicker.AppTimeline.AppToast.AppToolbar.AppTooltip.AppTour.AppTreeView.AppTruncate.AppUpdateBar.AppWhatsNew.AppWizard.AppWorkspaceSwitcher`.split(`.`),Jr=[`lint`,`rn-mainactivity-oncreate-bundle`,`spa-host-immutable-assets`,`oversize`];function Yr(e,t=process.env){let n=String(t.REPO_CHECKS_ENFORCE??``).split(`,`).map(e=>e.trim()).filter(Boolean);return!Jr.includes(e)||n.includes(`all`)||n.includes(e)}var Xr={version:`0.89.0`,css:{rename:[[`--color-primary-text`,`--color-on-primary`],[`--color-primary-ink`,`--color-primary-text`],[`--color-primary-hover-text`,`--color-on-primary`],[`--color-on-primary-ink`,`--color-on-primary`],[`--color-border-light`,`--color-border-subtle`],[`--color-focus-border`,`--color-field-border-focus`],[`--color-success-active`,`--color-success-pressed`],[`--color-success-10`,`--color-success-soft`],[`--color-success-30`,`--color-success-border`],[`--color-warning-active`,`--color-warning-pressed`],[`--color-warning-10`,`--color-warning-soft`],[`--color-warning-30`,`--color-warning-border`],[`--color-danger-active`,`--color-danger-pressed`],[`--color-danger-10`,`--color-danger-soft`],[`--color-danger-30`,`--color-danger-border`],[`--color-info-active`,`--color-info-pressed`],[`--color-info-10`,`--color-info-soft`],[`--color-info-30`,`--color-info-border`],[`--color-accent`,`--color-warning`],[`--color-accent-soft`,`--color-warning-soft`],[`--color-close-filter`,`--wui-close-filter`],[`--color-pressed-overlay`,`--wui-pressed-overlay`],[`--wui-chart-grid`,`--color-chart-grid`],[`--wui-chart-axis`,`--color-chart-axis`],[`--wui-chart-label`,`--color-chart-label`],[`--wui-shadow-overlay`,`--wui-shadow-popover`],[`--wui-shadow-overlay-lg`,`--wui-shadow-modal`],[`--shadow-overlay`,`--wui-shadow-popover`],[`--shadow-overlay-lg`,`--wui-shadow-modal`],[`--shadow-sm`,`--wui-shadow-card`],[`--shadow-md`,`--wui-shadow-card`],[`--shadow-lg`,`--wui-shadow-card`],[`--wui-shadow-card-lifted`,`--wui-card-shadow-lifted`],[`--wui-shadow-card-lifted-hover`,`--wui-card-shadow-lifted-hover`],[`--wui-shadow-thumb`,`--wui-thumb-shadow`],[`--wui-shadow-thumb-hover`,`--wui-thumb-shadow-hover`],[`--radius-sm`,`--wui-radius-sm`],[`--radius`,`--wui-radius-md`],[`--radius-lg`,`--wui-radius-lg`],[`--radius-xl`,`--wui-radius-xl`],[`--wui-radius`,`--wui-radius-md`],[`--wui-control-height-sm`,`--wui-control-sm`],[`--wui-control-height`,`--wui-control-md`],[`--wui-control-height-lg`,`--wui-control-lg`],[`--wui-field-radius-sm`,`--wui-field-sm-radius`],[`--wui-field-radius`,`--wui-field-md-radius`],[`--wui-field-radius-lg`,`--wui-field-lg-radius`],[`--wui-ease-out-quart`,`--wui-ease-out`],[`--wui-font-body`,`--wui-font-ui`],[`--font-sans`,`--wui-font-ui`],[`--wui-fs-smb`,`--wui-fs-sm`],[`--wui-fs-48`,`--wui-fs-4xl`],[`--wui-fs-64`,`--wui-fs-5xl`]],reads:[[`--wui-chart-1`,`--color-chart-1`],[`--wui-chart-2`,`--color-chart-2`],[`--wui-chart-3`,`--color-chart-3`],[`--wui-chart-4`,`--color-chart-4`],[`--wui-chart-5`,`--color-chart-5`],[`--wui-chart-6`,`--color-chart-6`],[`--wui-chart-7`,`--color-chart-7`],[`--wui-chart-8`,`--color-chart-8`],[`--wui-chart-seq-0`,`--color-chart-seq-0`],[`--wui-chart-seq-1`,`--color-chart-seq-1`],[`--wui-chart-seq-2`,`--color-chart-seq-2`],[`--wui-chart-seq-3`,`--color-chart-seq-3`],[`--wui-chart-seq-4`,`--color-chart-seq-4`],[`--wui-chart-seq-5`,`--color-chart-seq-5`],[`--wui-chart-seq-6`,`--color-chart-seq-6`],[`--wui-chart-diverging-low`,`--color-chart-diverging-low`],[`--wui-chart-diverging-mid`,`--color-chart-diverging-mid`],[`--wui-chart-diverging-high`,`--color-chart-diverging-high`],[`--wui-chart-neutral`,`--color-chart-neutral`],[`--wui-dark-shadow-thumb`,`--wui-thumb-shadow`],[`--wui-dark-shadow-thumb-hover`,`--wui-thumb-shadow-hover`]],choose:{"--color-on-status-fill":`Use the ink of the fill's tone: --color-on-success, --color-on-warning, --color-on-danger or --color-on-info.`,"--color-on-status-strong":`Use the ink of the strong fill's tone: --color-on-success-strong, --color-on-warning-strong, --color-on-danger-strong or --color-on-info-strong.`,"--color-success-5":`No meaning holds this step: use --color-success-soft for a fill or --color-success-border for an edge.`,"--color-success-20":`No meaning holds this step: use --color-success-soft for a fill or --color-success-border for an edge.`,"--color-success-50":`No meaning holds this step: use --color-success-soft for a fill or --color-success-border for an edge.`,"--color-warning-5":`No meaning holds this step: use --color-warning-soft for a fill or --color-warning-border for an edge.`,"--color-warning-20":`No meaning holds this step: use --color-warning-soft for a fill or --color-warning-border for an edge.`,"--color-warning-50":`No meaning holds this step: use --color-warning-soft for a fill or --color-warning-border for an edge.`,"--color-danger-5":`No meaning holds this step: use --color-danger-soft for a fill or --color-danger-border for an edge.`,"--color-danger-20":`No meaning holds this step: use --color-danger-soft for a fill or --color-danger-border for an edge.`,"--color-danger-50":`No meaning holds this step: use --color-danger-soft for a fill or --color-danger-border for an edge.`,"--color-info-5":`No meaning holds this step: use --color-info-soft for a fill or --color-info-border for an edge.`,"--color-info-20":`No meaning holds this step: use --color-info-soft for a fill or --color-info-border for an edge.`,"--color-info-50":`No meaning holds this step: use --color-info-soft for a fill or --color-info-border for an edge.`},checkRole:[`--wui-shadow-popover`,`--wui-shadow-modal`]},themeReads:[{kind:`path`,from:`colors.primaryHover`,to:`colors.primary-hover`},{kind:`path`,from:`colors.primaryPressed`,to:`colors.primary-pressed`},{kind:`path`,from:`colors.primaryMuted`,to:`colors.primary-soft`},{kind:`path`,from:`colors.secondaryHover`,to:`colors.neutral-hover`},{kind:`path`,from:`colors.secondary`,to:`colors.neutral`},{kind:`path`,from:`colors.error`,to:`colors.danger`},{kind:`path`,from:`colors.onPrimary`,to:`colors.on-primary`},{kind:`path`,from:`colors.onNeutral`,to:`colors.on-neutral-strong`},{kind:`path`,from:`colors.onSecondary`,to:`colors.on-neutral`},{kind:`path`,from:`colors.onSuccess`,to:`colors.on-success`},{kind:`path`,from:`colors.onWarning`,to:`colors.on-warning`},{kind:`path`,from:`colors.onError`,to:`colors.on-danger`},{kind:`path`,from:`colors.onInfo`,to:`colors.on-info`},{kind:`path`,from:`colors.onOverlay`,to:`colors.on-scrim`},{kind:`path`,from:`colors.toneText.primary`,to:`colors.primary-text`},{kind:`path`,from:`colors.toneText.success`,to:`colors.success-text`},{kind:`path`,from:`colors.toneText.warning`,to:`colors.warning-text`},{kind:`path`,from:`colors.toneText.error`,to:`colors.danger-text`},{kind:`path`,from:`colors.toneText.info`,to:`colors.info-text`},{kind:`path`,from:`colors.text.primary`,to:`colors.text-body`},{kind:`path`,from:`colors.text.secondary`,to:`colors.text-muted`},{kind:`path`,from:`colors.text.tertiary`,to:`colors.text-subtle`},{kind:`path`,from:`colors.text.inverse`,to:`colors.text-inverse`},{kind:`path`,from:`colors.text.strong`,to:`colors.text`},{kind:`path`,from:`colors.text.disabled`,to:`colors.text-disabled`},{kind:`path`,from:`colors.text.link`,to:`colors.link`},{kind:`path`,from:`colors.background.primary`,to:`colors.bg`},{kind:`path`,from:`colors.background.secondary`,to:`colors.bg-subtle`},{kind:`path`,from:`colors.background.tertiary`,to:`colors.bg-muted`},{kind:`path`,from:`colors.background.elevated`,to:`colors.surface`},{kind:`path`,from:`colors.background.overlay`,to:`colors.scrim`},{kind:`path`,from:`colors.background.inverse`,to:`colors.surface-inverse`},{kind:`path`,from:`colors.border.primary`,to:`colors.border`},{kind:`path`,from:`colors.border.secondary`,to:`colors.border-subtle`},{kind:`path`,from:`colors.border.focus`,to:`colors.focus-ring`},{kind:`path`,from:`colors.border.error`,to:`colors.danger-border`},{kind:`path`,from:`colors.border.width`,to:`size.border`},{kind:`path`,from:`colors.field.backgroundFocused`,to:`colors.field-bg-focus`},{kind:`path`,from:`colors.field.backgroundDisabled`,to:`colors.field-bg-disabled`},{kind:`path`,from:`colors.field.background`,to:`colors.field-bg`},{kind:`path`,from:`colors.field.borderFocused`,to:`colors.field-border-focus`},{kind:`path`,from:`colors.field.borderError`,to:`colors.field-border-error`},{kind:`path`,from:`colors.field.border`,to:`colors.field-border`},{kind:`path`,from:`colors.field.label`,to:`colors.field-label`},{kind:`path`,from:`colors.field.textDisabled`,to:`colors.field-text-disabled`},{kind:`path`,from:`colors.field.text`,to:`colors.field-text`},{kind:`path`,from:`colors.field.placeholderDisabled`,to:`colors.field-placeholder-disabled`},{kind:`path`,from:`colors.field.placeholder`,to:`colors.field-placeholder`},{kind:`path`,from:`colors.field.iconFocused`,to:`colors.field-icon-focus`},{kind:`path`,from:`colors.field.iconDisabled`,to:`colors.field-icon-disabled`},{kind:`path`,from:`colors.field.icon`,to:`colors.field-icon`},{kind:`path`,from:`colors.field.caret`,to:`colors.field-caret`},{kind:`path`,from:`colors.field.message`,to:`colors.field-message`},{kind:`path`,from:`colors.surface.pressed`,to:`colors.surface-pressed`},{kind:`path`,from:`colors.surface.hovered`,to:`colors.surface-hover`},{kind:`path`,from:`colors.surface.selected`,to:`colors.surface-selected`},{kind:`path`,from:`colors.surface.disabled`,to:`colors.surface-disabled`},{kind:`path`,from:`colors.glass.fill`,to:`colors.glass-fill`},{kind:`path`,from:`colors.glass.border`,to:`colors.glass-border`},{kind:`path`,from:`colors.glass.on`,to:`colors.on-glass`},{kind:`path`,from:`colors.glass.badge`,to:`colors.glass-badge`},{kind:`path`,from:`colors.skeleton.background`,to:`colors.skeleton`},{kind:`path`,from:`colors.skeleton.highlight`,to:`colors.skeleton-highlight`},{kind:`gone`,from:`colors.avatarPalette`,hint:"read colors[`avatar-${n}`] for n 1 to 8"},{kind:`path`,from:`typography.fontFamily.regular`,to:`font.ui.normal`},{kind:`path`,from:`typography.fontFamily.medium`,to:`font.ui.medium`},{kind:`path`,from:`typography.fontFamily.semibold`,to:`font.ui.semibold`},{kind:`path`,from:`typography.fontFamily.bold`,to:`font.ui.bold`},{kind:`gone`,from:`typography.fontFamily.display`,hint:`font.display is a face per weight: font.display.<weight>`},{kind:`prefix`,from:`typography.fontSize.`,to:`text.`},{kind:`prefix`,from:`typography.fontWeight.`,to:`weight.`},{kind:`prefix`,from:`typography.lineHeight.`,to:`leading.`},{kind:`prefix`,from:`typography.letterSpacing.`,to:`letter-spacing.`},{kind:`prefix`,from:`spacing.`,to:`space.`},{kind:`path`,from:`shadows.sm`,to:`shadow.card`},{kind:`path`,from:`shadows.md`,to:`shadow.elevated`},{kind:`path`,from:`shadows.lg`,to:`shadow.popover`},{kind:`path`,from:`shadows.xl`,to:`shadow.modal`},{kind:`gone`,from:`shadows.xs`,hint:`use shadow.card`},{kind:`gone`,from:`shadows.2xl`,hint:`use shadow.modal`},{kind:`gone`,from:`shadows.none`,hint:`omit the shadow`},{kind:`path`,from:`motion.duration.normal`,to:`motion.duration.default`},{kind:`path`,from:`motion.easing.standard`,to:`motion.ease.in-out`},{kind:`prefix`,from:`motion.easing.`,to:`motion.ease.`},{kind:`prefix`,from:`icons`,to:`settings.icons`},{kind:`prefix`,from:`gradients`,to:`settings.gradients`},{kind:`prefix`,from:`textVariants`,to:`settings.textVariants`},{kind:`path`,from:`maxFontSizeMultiplier`,to:`settings.maxFontSizeMultiplier`},{kind:`path`,from:`components.field.defaultVariant`,to:`settings.components.field.defaultVariant`},{kind:`path`,from:`components.field.requiredMarker`,to:`settings.components.field.requiredMarker`},{kind:`path`,from:`components.input.defaultVariant`,to:`settings.components.input.defaultVariant`},{kind:`path`,from:`components.input.defaultLabelMode`,to:`settings.components.input.defaultLabelMode`},{kind:`path`,from:`components.input.tintLabelOnFocus`,to:`settings.components.input.tintLabelOnFocus`},{kind:`path`,from:`components.input.shakeOnError`,to:`settings.components.input.shakeOnError`},{kind:`path`,from:`components.searchBar.defaultVariant`,to:`settings.components.search-bar.defaultVariant`},{kind:`path`,from:`components.select.defaultVariant`,to:`settings.components.select.defaultVariant`},{kind:`path`,from:`components.otpInput.shakeOnError`,to:`settings.components.otp-input.shakeOnError`},{kind:`path`,from:`components.optionSheet.selectedMarker`,to:`settings.components.option-sheet.selectedMarker`},{kind:`path`,from:`components.profilePicker.defaultTone`,to:`settings.components.profile-picker.defaultTone`},{kind:`path`,from:`components.profilePicker.defaultVariant`,to:`settings.components.profile-picker.defaultVariant`},{kind:`path`,from:`components.profilePicker.defaultAvatarTone`,to:`settings.components.profile-picker.defaultAvatarTone`},{kind:`path`,from:`components.slider.thumbPressAnimation`,to:`settings.components.slider.thumbPressAnimation`},{kind:`path`,from:`components.rating.pulseOnPress`,to:`settings.components.rating.pulseOnPress`},{kind:`path`,from:`components.stepper.pulseAnimation`,to:`settings.components.stepper.pulseAnimation`},{kind:`path`,from:`components.tooltip.enableScaleAnimation`,to:`settings.components.tooltip.enableScaleAnimation`},{kind:`path`,from:`components.toast.enableSwipeDismiss`,to:`settings.components.toast.enableSwipeDismiss`},{kind:`path`,from:`components.toast.defaultDurationMs`,to:`settings.components.toast.defaultDurationMs`},{kind:`gone`,from:`components.field.outlined`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.filled`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.underline`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.textColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.disabledTextColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.placeholderColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.fontWeight`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.requiredMarkerColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.input.fillColors`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.select.handleColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.select.fillColors`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.switch.thumbColor`,hint:`the thumb reads colors.thumb`},{kind:`gone`,from:`components.slider.thumbPressScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.slider.labelShowDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.slider.labelOpacity`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.swipeDismissThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.swipeVelocityThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.stackOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.stackScaleStep`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.stackMinScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.enterSpringDamping`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.enterSpringStiffness`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.enterSpringMass`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconCircleSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconGlyphText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconGlyphLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.closeButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.closeGlyphText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.closeButtonMarginLeft`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.containerPaddingLeft`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.textBlockPaddingRight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionsRowMarginTop`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionsRowGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionButtonPaddingX`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionButtonPaddingY`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionButtonRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.formField.inlineLabelWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.numberInput.longPressDelayMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.numberInput.longPressIntervalMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressBar.indeterminateLoopDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressBar.indeterminateWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressBar.determinateAnimationDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.animationDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.strokeWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.trackColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.colorStops`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.rating.pulseScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomSheet.handleColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.choiceGroup.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.choiceGroup.selectedFillOpacity`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.filePicker.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.filePicker.thumbnailSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.filePicker.dashedBorderColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.profilePicker.badgeColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.profilePicker.badgeIconColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.inlineSelect.color`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.iconSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.pillHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.pillMaxWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.pillInset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.underlineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.floatingMargin`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.floatingRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.bubbleSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.bubbleLift`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.monthSlideDistance`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.monthSlideOutDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.monthSlideInDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.viewTransitionDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.headerPressDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.headerReleaseDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.navButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.navText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.navTextLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.dayCellPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.dayInnerRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.yearCellPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.yearInnerRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.decadeRangeMarginTop`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.footerButtonMinHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.monthSlideDistance`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.monthSlideOutDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.monthSlideInDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.navButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.navText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.navTextLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.footerButtonMinHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timePicker.hapticDebounceMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timePicker.handleWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timePicker.handleHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.borderWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.borderColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.statusBorderWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.statusBorderColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.ringWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.ringGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.fontSizeRatio`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.text`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.fontWeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.accordion.cardPaddingY`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.sideSlotMinWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.collapseTranslateDistance`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.subtitleMarginTop`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.actionButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.iconSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.dividerWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.dotSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.dotOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeMinWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgePaddingX`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.drawer.closeVelocityThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.drawer.dragActivationOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.imageGallery.maxScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.imageGallery.minScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.imageGallery.doubleTapScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.modal.scaleStartValue`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.stepper.circleSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.stepper.pulseSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.stepper.pulseDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.threshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.fullSwipeThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.dragActivationOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.rubberBandFactor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.failOffsetY`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.springDamping`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.springStiffness`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.springMass`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timeline.dotSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timeline.haloWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timeline.connectorGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.gap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.screenPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.pressAutoHideMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.arrowHalfWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.arrowHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.arrowCornerPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.maxWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.lineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.exitDurationMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.segmentedControl.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tabs.radius`,hint:`fixed in the library since 0.89.0`},{kind:`kebab`,under:`components`,names:{searchBar:`search-bar`,emptyState:`empty-state`,listItem:`list-item`,otpInput:`otp-input`,segmentedControl:`segmented-control`,floatingActionButton:`floating-action-button`}}],props:[{package:`@webority/mobile-ui`,props:[`tone`,`variant`],from:`error`,to:`danger`}],componentProps:[],propValues:[{package:`@webority/ui-react`,components:[`AppInput`,`AppSelect`,`AppCountrySelect`],prop:`floatingLabel`,true:`border`,false:`off`}],propSplits:[{package:`@webority/ui-react`,components:[`AppInput`],prop:`passwordRequirements`,on:`shown`,off:`off`,into:`passwordPolicy`}],razorAttributes:[{tags:[`app-input`,`app-select`,`app-country-select`],attribute:`floating-label`,values:{true:`border`,false:`off`}},{tags:[`app-input`],attribute:`password-requirements`,values:{true:`shown`,false:`off`}}]},Zr=`--color-primary-text`,Qr=new Set([...Xr.css.rename.map(([e])=>e),...Xr.css.reads.map(([e])=>e),...Object.keys(Xr.css.choose)].filter(e=>e!==Zr)),$r=RegExp(`(?<![\\w-])(${[...Qr].join(`|`)})(?![\\w-])`,`g`),ei=new Set([`node_modules`,`dist`,`build`,`out`,`bin`,`obj`,`.git`,`.next`,`coverage`]),ti=new Set([`.css`,`.scss`,`.sass`,`.less`,`.js`,`.jsx`,`.ts`,`.tsx`,`.cshtml`,`.razor`,`.html`,`.vue`]),ni=(e,t)=>ei.has(e)||e===`lib`&&o(t)===`wwwroot`,ri=e=>ti.has(c(e).toLowerCase());function ii(e,t=[]){for(let n of i(e,{withFileTypes:!0})){let r=l(e,n.name);n.isDirectory()?ni(n.name,e)||ii(r,t):ri(n.name)&&t.push(r)}return t}function ai(e,t){for(let n=s(e);n.length>t.length;n=s(n))if(ni(o(n),s(n)))return!0;return!1}function oi(e){let n=h(`git`,[`ls-files`,`-z`,`--cached`,`--others`,`--exclude-standard`,`--`,`.`],{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:64*1024*1024});return n.status===0?n.stdout.split(`\0`).filter(e=>e&&ri(e)).map(t=>l(e,t.split(`/`).join(m))).filter(n=>!ai(n,e)&&t(n)):ii(e)}function si(e){let t=e.slice(0,3).join(`, `),n=e.length-3;return n>0?`${t} and ${n} more`:t}function ci(e,t){let n=[];for(let i of oi(e)){let e=r(i,`utf8`),a=[],o=-1;for(let t of e.matchAll($r))o<0&&(o=t.index),a.includes(t[1])||a.push(t[1]);if(a.length===0)continue;let s=f(t,i).split(`\\`).join(`/`),c=e.slice(0,o).split(`
79
- `).length;n.push([`stale-theme-name:${s}`,`${s}:${c} reads pre-0.89.0 theme names (${si(a)}). Run webority upgrade 0.89.0 --path <folder> once for the product's style and source folders, then webority brand; no alias for the old names is shipped.`])}return n}var P=e=>e.split(`\\`).join(`/`),li=(e,t)=>P(f(e,t))||`.`;function F(e){try{return JSON.parse(r(e,`utf8`))}catch{return null}}function ui(e,t){let n=h(`git`,t,{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:64*1024*1024});return n.status===0?n.stdout:null}function di(e){let t=ui(e,[`rev-parse`,`--show-toplevel`]);return t?t.trim():null}function I(e,t){let n=ui(e,[`ls-files`,`-z`,`--`,...t.flatMap(e=>[e,`:(glob)**/${e}`])]);return n?[...new Set(n.split(`\0`).filter(Boolean))]:[]}function fi(e){let t=e?.dependencies??{};return Vr.some(e=>t[e])?null:t[`react-native`]?`mobile`:t[`react-dom`]?e?.devDependencies?.[`react-native-web`]||t[`react-native-web`]?`demo`:`web`:null}var pi=e=>/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(e)||/^(?:workspace:\*|file:|link:)/.test(e),mi=new Set([`@biomejs/biome`,`@webority/biome-config`]),hi=e=>/^(?:workspace:|file:|link:)/.test(e);function gi(e,t,n){let r=[],i={...e.dependencies,...e.devDependencies},a=Object.keys(i);for(let[e,n]of Ir[t])i[e]&&r.push([`banned:${e}`,`"${e}" is a dependency. ${n}.`]);for(let[e,n]of Lr[t])for(let t of a.filter(t=>t.startsWith(e)))r.push([`banned:${t}`,`"${t}" is a dependency. ${n}.`]);for(let[e,n,a]of Rr[t])i[e]&&i[n]&&r.push([`banned:${e}`,`"${e}" is a dependency beside ${n}. ${a}.`]);for(let[e,a]of zr[t])(mi.has(e)?n:i)[e]||r.push([`required:${e}`,`"${e}" is not a dependency. ${a}.`]);let o=t===`mobile`?a:a.filter(e=>e.startsWith(`@webority/`)||e===`bootstrap`);for(let e of o){let t=String(i[e]);pi(t)||r.push([`not-exact:${e}`,`"${e}": "${t}" is a range. Pin the version the lockfile holds, without ^ or ~.`])}i.bootstrap&&String(i.bootstrap).replace(/^[\^~]/,``)!==`5.3.3`&&r.push([`bootstrap-version`,`bootstrap is "${i.bootstrap}". bootstrap-ui.md: every surface pins ${Br}.`]);for(let e of Wr){let t=e.filter(e=>i[e]&&!hi(String(i[e])));if(new Set(t.map(e=>String(i[e]).replace(/^[\^~]/,``))).size>1){let n=t.map(e=>`${e}@${i[e]}`).join(`, `);r.push([`lockstep:${e[0]}`,`${n} differ. These publish together at one version; move every pin in the set together.`])}}return r}function L(e,n,r){let i=e;for(;;){for(let e of r)if(t(l(i,e)))return l(i,e);if(i===n)return null;let e=s(i);if(e===i)return null;i=e}}function _i(e,t){let n=e,i=null;for(;;){let e=L(n,t,[`biome.json`,`biome.jsonc`]);if(!e)return i;i=s(e);let a;try{a=Re(r(e,`utf8`))}catch{return i}let o=s(i);if(a.root!==!1||i===t||o===i)return i;n=o}}function vi(e,t,n){let r=_i(e,t),i=r&&r!==e?F(l(r,`package.json`)):null;return i?{...i.dependencies,...i.devDependencies}:n}function yi(e,n){let i=[],a=L(e,n,[`pnpm-lock.yaml`]);a||i.push([`pnpm:no-lockfile`,`No pnpm-lock.yaml in this folder or above it. react.md: every JS repo installs with pnpm.`]);let o=a?s(a):e,c=F(l(o,`package.json`))??F(l(e,`package.json`)),u=c?.devEngines?.packageManager;(u?.name!==`pnpm`||!/^\d+\.\d+\.\d+$/.test(u?.version??``)||u?.onFail!==`error`)&&i.push([`pnpm:dev-engines`,`package.json lacks "devEngines": { "packageManager": { "name": "pnpm", "version": "<x.y.z>", "onFail": "error" } }. react.md: Package manager.`]),c?.packageManager!==void 0&&i.push([`pnpm:package-manager`,`package.json sets "packageManager", which pnpm ignores beside devEngines. Move its version into devEngines.packageManager.version and delete it. react.md: Package manager.`]);let d=l(o,`pnpm-workspace.yaml`);if(!t(d))i.push([`pnpm:no-workspace-file`,`No pnpm-workspace.yaml beside the lockfile. react.md: it holds engineStrict, strictPeerDependencies and allowBuilds.`]);else{let e=r(d,`utf8`);/^engineStrict:\s*true\s*$/m.test(e)||i.push([`pnpm:engine-strict`,`pnpm-workspace.yaml lacks engineStrict: true. react.md: a Node mismatch must fail the install.`]),/^strictPeerDependencies:\s*true\s*$/m.test(e)||i.push([`pnpm:strict-peers`,`pnpm-workspace.yaml lacks strictPeerDependencies: true. react.md: a peer conflict must fail the install.`])}for(let n of[`package-lock.json`,`yarn.lock`])t(l(e,n))&&i.push([`pnpm:${n}`,`${n} sits in this folder. react.md: pnpm only; seed pnpm-lock.yaml with pnpm import, then delete it.`]);return i}function bi(e,t,n,r){if((e.javascript?.globals??[]).includes(r))return!0;let i=P(f(t,l(n,`index.js`)));return(e.overrides??[]).some(e=>(e.javascript?.globals??[]).includes(r)&&[].concat(e.includes??[]).some(e=>!String(e).startsWith(`!`)&&u(i,String(e))))}function xi(e,t,n){let i=L(e,t,[`biome.json`,`biome.jsonc`]);if(!i)return[[`biome:missing`,`No biome.json in this folder or above it. react.md: one committed root biome.json.`]];let a;try{a=Re(r(i,`utf8`))}catch{return[[`biome:unreadable`,`${o(i)} does not parse.`]]}let c=[];return[].concat(a.extends??[]).some(e=>e===`@webority/biome-config/biome.jsonc`||String(e).endsWith(`biome-config/biome.jsonc`))||c.push([`biome:extends`,`${o(i)} does not extend "${Gr}". react.md: every repo extends the shared preset.`]),a.formatter?.lineEnding&&c.push([`biome:line-ending`,`${o(i)} sets formatter.lineEnding. react.md: inherit it from the shared preset, never set it.`]),a.linter?.rules&&Object.keys(a.linter.rules).length>0&&c.push([`biome:root-rules`,`${o(i)} sets linter.rules at the root. react.md: never a rule's severity at the root; a per-path exception goes in overrides.`]),n===`mobile`&&!bi(a,s(i),e,`__DEV__`)&&c.push([`biome:dev-global`,`${o(i)} lacks "__DEV__" in javascript.globals. react-native.md: Debugging and agent access.`]),c}var Si=l(`node_modules`,`@biomejs`,`biome`,`bin`,`biome`);function Ci(e,t,n){if(e.start?.line)return e.start.line;if(!Array.isArray(e.span))return null;let i=r(l(t,n)),a=1;for(let t=0;t<e.span[0];t++)i[t]===10&&a++;return a}function wi(e,t,n){let r=n.split(`/`),i=n.startsWith(`@`)?r.slice(0,2).join(`/`):r[0],a=n.slice(i.length)?`.${n.slice(i.length)}`:`.`,o=L(e,t,[l(`node_modules`,i)]),s=o&&F(l(o,`package.json`));if(!s)return null;let c=(typeof s.exports==`string`?{".":s.exports}:s.exports)?.[a]??(a===`.`?s.module??s.main:null);return c&&typeof c==`object`&&(c=c.import??c.default),typeof c==`string`?l(o,c):null}function Ti(e,t,n,i){if(n.startsWith(`.`))return!1;let a=wi(e,t,n);if(!a)return!1;let o;try{o=r(a,`utf8`)}catch{return!1}if(RegExp(`\\bexport\\s+(?:async\\s+)?(?:const|let|var|function\\*?|class)\\s+${i}\\b`).test(o)||RegExp(`\\b(?:module\\.)?exports\\.${i}\\s*=|Object\\.defineProperty\\(\\s*(?:module\\.)?exports\\s*,\\s*["']${i}["']|\\bget\\s+${i}\\s*\\(`).test(o))return!0;for(let e of o.matchAll(/\bexport\s*\{([^}]*)\}/g))for(let t of e[1].split(`,`))if(t.trim().split(/\s+as\s+/).pop()===i)return!0;return!1}function Ei(e,n){let r=L(e,n,[Si]);if(!r)return[];let i=t(l(e,`src`))?`src`:`.`,a=h(process.execPath,[r,`lint`,`--only=correctness/noUnresolvedImports`,`--reporter=json`,`--max-diagnostics=none`,`--colors=off`,i],{cwd:e,encoding:`utf8`,maxBuffer:64*1024*1024,windowsHide:!0}),o=null;try{o=JSON.parse(a.stdout??``).diagnostics}catch{o=null}if(!Array.isArray(o))return[[`missing-export:unreadable`,`Biome's report could not be read: ${String(a.stderr||a.stdout||``).slice(0,200)}`]];let s=new Map;for(let t of o){let r=String(t.message??``);if(!r.includes(`has no export named`))continue;let i=r.match(/^The (?:path|module) (\S+) has no export named (\w+)/);if(!i){s.set(`unreadable`,[`missing-export:unreadable`,`Biome reported a missing export in a form this check cannot read: ${r.slice(0,200)}`]);continue}let[,a,o]=i;if(Object.hasOwn(Kr,a)&&Kr[a].includes(o)||Ti(e,n,a,o))continue;let c=P(f(e,p(e,String(t.location?.path)))),l=Ci(t.location??{},e,c),u=l?`${c}:${l}`:c,d=`missing-export:${c}`,m=`${u} imports ${o} from ${a}, which does not export it. Import the name the module exports (a default export is imported without braces).`;s.set(`${d}\0${m}`,[d,m])}return[...s.values()]}function Di(e){let t=l(e,`node_modules`,`@webority`,`ui-react`);try{let e=JSON.parse(r(l(t,`package.json`),`utf8`)),n=r(l(t,typeof e.module==`string`?e.module:typeof e.main==`string`?e.main:`dist/index.js`),`utf8`),i=new Set([...n.matchAll(/App[A-Z][A-Za-z0-9]*/g)].map(e=>e[0]));if(i.size>0)return i}catch{}return new Set(qr)}function Oi(e){return i(e,{withFileTypes:!0}).flatMap(t=>t.isDirectory()?Oi(l(e,t.name)):[l(e,t.name)])}function ki(e){let n=l(e,`src`,`components`);if(!t(n))return[];let r=Di(e),i=[];for(let t of Oi(n)){let n=o(t).split(`.`)[0];if(r.has(n)){let r=P(f(e,t));i.push([`catalogue-copy:${r}`,`${r} is named like the @webority/ui-react export ${n}. bootstrap-ui.md: use the catalogue component, never a local copy.`])}}return i}var Ai=/gradle\.startParameter\.taskNames[^\n]*["']release["']/,ji=/throw\s+new\s+GradleException\s*\(/,Mi=/^\s*edgeToEdgeEnabled\s*=\s*false\s*$/m;function Ni(e){let n=[],i=l(e,`android`,`app`,`build.gradle`);if(t(i)){let e=r(i,`utf8`).replace(/\/\*[\s\S]*?\*\//g,``).replace(/^\s*\/\/.*$/gm,``);(!Ai.test(e)||!ji.test(e))&&n.push([`android-release-signing`,`android/app/build.gradle has no release signing guard. react-native-toolchain.md: when a requested task name contains "release", throw a GradleException that names each missing signing setting, and never sign a release with the debug key.`])}let a=l(e,`android`,`gradle.properties`);return t(a)&&Mi.test(r(a,`utf8`))&&n.push([`android-edge-to-edge`,`android/gradle.properties sets edgeToEdgeEnabled=false. react-native-toolchain.md: set edgeToEdgeEnabled=true.`]),n}function Pi(e,t,n){let i=[],a=L(e,t,[`pnpm-lock.yaml`]),o=a?F(l(s(a),`package.json`)):null,c=n.engines?.node??o?.engines?.node??null;c===null?i.push([`engines-node-floor:package.json`,`package.json has no engines.node. react.md: engines.node is "${Hr}", with engineStrict: true.`]):String(c).trim().replace(/\s+/g,` `)!==`>=24.15 <25`&&i.push([`engines-node-floor:package.json`,`engines.node is "${c}". react.md: it is "${Hr}"; the floor is the one jsdom needs, and the ceiling holds one Node major.`]);let u=L(e,t,[`.nvmrc`]);if(!u)i.push([`engines-node-floor:.nvmrc`,`No .nvmrc in this folder or above it. react.md: commit one holding 24.`]);else{let e=r(u,`utf8`).trim();e!==`24`&&i.push([`engines-node-floor:.nvmrc`,`.nvmrc holds "${e}". react.md: it holds 24.`])}return i}var Fi=new Set([`.js`,`.jsx`,`.mjs`,`.cjs`,`.ts`,`.tsx`]);function Ii(e,n){let i=l(e,`src`);if(!t(i))return[];let a=[];for(let t of Oi(i)){if(!Fi.has(c(t).toLowerCase())||ke(P(f(n,t)),n))continue;let i=r(t,`utf8`).split(`
74
+ `)?t-1:t}function zn(e){return!On.test(e)||kn.test(e)?!1:!e.split(`/`).slice(0,-1).some(e=>An.has(e))}function S(e){return e.filter(zn)}function C(e,t){let n=r(l(e,t),`utf8`),{blanked:i,lineStarts:a}=hn(n);return{file:t,text:n,blanked:i,lines:n.split(`
75
+ `),lineAt:e=>{let t=0,n=a.length-1;for(;t<=n;){let r=t+n>>1;a[r]<=e?t=r+1:n=r-1}return n+1}}}function Bn(e){let t=e.trim();if(t===`*`)return[{name:`*`,local:`*`}];let n=[],r=t.match(/\*\s+as\s+([\w$]+)/);r&&n.push({name:`*`,local:r[1]});let i=t.match(/\{([^}]*)\}/);if(i)for(let e of i[1].split(`,`)){let t=e.trim().replace(/^type\s+/,``).match(/^([\w$]+)(?:\s+as\s+([\w$]+))?$/);t&&n.push({name:t[1],local:t[2]??t[1]})}let a=t.replace(/\{[^}]*\}/,``).replace(/\*\s+as\s+[\w$]+/,``).replace(/,/g,``).trim();return/^[\w$]+$/.test(a)&&n.push({name:`default`,local:a}),n}function w(e){let t=[],n=(n,r,i,a)=>t.push({kind:r,specifier:i,imported:a,line:e.lineAt(n)});for(let t of e.blanked.matchAll(Nn))n(t.index,`import`,t[2],Bn(t[1]));for(let t of e.blanked.matchAll(Pn))n(t.index,`import`,t[1],[]);for(let t of e.blanked.matchAll(Fn))n(t.index,`export-from`,t[2],Bn(t[1]));for(let t of e.blanked.matchAll(In))n(t.index,`require`,t[1],[]);for(let t of e.blanked.matchAll(Ln))n(t.index,`dynamic`,t[1],[]);return t.sort((e,t)=>e.line-t.line)}function T(e,t,n){let r;if(n.startsWith(`@/`))r=`src/${n.slice(2)}`;else if(n.startsWith(`.`))r=d.normalize(d.join(d.dirname(t),n));else return null;for(let t of jn)if(e.has(r+t))return r+t;return null}function E(e,t,n){let r=[];t.lines.forEach((t,n)=>{let i=Mn.exec(t);i&&i[1]===e&&r.push({line:n+1,reason:(i[2]??``).trim()})});let i=new Set(r.filter(e=>e.reason!==``).map(e=>e.line)),a=n.filter(e=>!(i.has(e.line-1)||e.line===1&&i.has(1))).map(n=>({rule:e,file:t.file,line:n.line,message:n.message,...n.note?{note:!0}:{}}));for(let n of r)n.reason===``&&a.push({rule:e,file:t.file,line:n.line,message:`layering-allow needs a reason`});return a}function D(e){return[...e].sort((e,t)=>e.file===t.file?e.line===t.line?e.message===t.message?0:e.message<t.message?-1:1:e.line-t.line:e.file<t.file?-1:1)}var Vn=/^src\/screens\/(public|user)\/([^/]+)\/.+/;function Hn(e){let t=Vn.exec(e);return t?`${t[1]}/${t[2]}`:null}function Un(e,t){let n=S(t),r=new Set(n),i=[];for(let t of n){let n=Hn(t);if(n===null)continue;let a=C(e,t),o=[];for(let e of w(a)){let i=T(r,t,e.specifier),a=i===null?null:Hn(i);a!==null&&a!==n&&o.push({line:e.line,message:`imports ${i} from another screen area. react-native.md: a part two areas use lives in src/components/<area>/ or src/components/shared/.`})}i.push(...E(`cross-feature-import`,a,o))}return D(i)}var Wn=new Set([`assets`,`components`,`constants`,`hooks`,`navigation`,`redux`,`screens`,`services`,`utils`]),Gn=/\.(?:jsx|ts|tsx)$/,Kn=/\.(?:js|jsx|ts|tsx)$/,qn=/^src\/screens\/(?:public\/.+|user\/[^/]+\/.+)$/,Jn=/[A-Za-z0-9]Screen\.js$/,O={folder:`a top-level folder of src is one of assets, components, constants, hooks, navigation, redux, screens, services, utils`,screenHome:`a screen file lives in src/screens/public/ or src/screens/user/<area>/`,script:`source files are .js, never .jsx, .ts or .tsx`,suffix:`a screen is named without a Screen suffix`,theme:`src/assets/theme holds only settings.js`,tsconfig:`an app has no tsconfig.json`},Yn=(e,t)=>`${e}: react-native.md App layout: ${t}.`;function Xn(e,t){let n=new Set,r=new Map,i=(e,t)=>{r.has(e)||r.set(e,[]),r.get(e).push({line:1,message:Yn(e,t)})};for(let e of t){let t=e.split(`/`);t[0]===`src`&&(t.some(e=>e===`node_modules`||e===`generated`||e===`__tests__`)||(t.length>2&&!Wn.has(t[1])&&n.add(t[1]),Gn.test(e)&&i(e,O.script),e.startsWith(`src/screens/`)&&Kn.test(e)&&(e!==`src/screens/index.js`&&!qn.test(e)&&i(e,O.screenHome),Jn.test(e)&&i(e,O.suffix)),e.startsWith(`src/assets/theme/`)&&e!==`src/assets/theme/settings.js`&&i(e,O.theme)))}let a=[];for(let[t,n]of r)zn(t)?a.push(...E(`folder-layout`,C(e,t),n)):a.push(...n.map(e=>({rule:`folder-layout`,file:t,line:e.line,message:e.message})));for(let r of n){let n={rule:`folder-layout`,file:`src/${r}`,line:1,message:Yn(`src/${r}`,O.folder)},i=`src/${r}/index.js`;if(!t.includes(i)){a.push(n);continue}for(let t of E(`folder-layout`,C(e,i),[{line:1,message:n.message}]))a.push(t.message===n.message?n:t)}return t.includes(`tsconfig.json`)&&a.push({rule:`folder-layout`,file:`tsconfig.json`,line:1,message:Yn(`tsconfig.json`,O.tsconfig)}),D(a)}var Zn=`src/screens/index.js`;function Qn(e,t){let n=S(t),r=new Set(n),i=[];for(let t of n){if(t.startsWith(`src/screens/`)||t.startsWith(`src/navigation/`))continue;let n=C(e,t),a=[];for(let e of w(n)){let n=T(r,t,e.specifier);n?.startsWith(`src/screens/`)&&n!==Zn&&a.push({line:e.line,message:`imports a screen folder from outside src/screens. react-native.md: hooks, utils and components never import screens.`})}i.push(...E(`import-into-screens`,n,a))}return D(i)}var $n=`@webority/mobile-ui`,er=40,tr=/\{\s*\.\.\.(?:props|rest)\s*\}/,nr=[`lib/typescript/module/components/index.d.ts`,`lib/typescript/module/index.d.ts`],rr=e=>`wraps mobile-ui ${e}. react-native.md: no restyle or pass-through wrapper; use ${e} directly, put house defaults in theme settings.`;function ir(e){let n=new Set;for(let i of nr){let a=l(e,`node_modules`,`@webority`,`mobile-ui`,i);if(t(a))for(let e of r(a,`utf8`).matchAll(/export\s+(?!type\b)\{([^}]*)\}\s*from/g))for(let t of e[1].split(`,`)){let e=t.trim().split(/\s+as\s+/).pop();/^[\w$]+$/.test(e)&&n.add(e)}}return n}function ar(e){let t=new Set;/\bexport\s+default\b/.test(e)&&t.add(`default`);for(let n of e.matchAll(/\bexport\s+(?:const|let|var|function\*?|class)\s+([A-Z][\w$]*)/g))t.add(n[1]);for(let n of e.matchAll(/\bexport\s*\{([^}]*)\}/g))for(let e of n[1].split(`,`)){let n=e.trim().split(/\s+as\s+/).pop();(n==="default"||/^[A-Z][\w$]*$/.test(n))&&t.add(n)}return t.size}function or(e,t){let n=0;for(let r=t;r<e.length;r++){let i=e[r];if(i===`{`)n++;else if(i===`}`)n--;else if(i===`>`&&n===0)return e.slice(t,r+1)}return e.slice(t)}function sr(e){if(Rn(e.text)>er)return null;let t=new Set;for(let n of w(e))if(!(n.kind!==`import`||n.specifier!==$n&&!n.specifier.startsWith(`${$n}/`)))for(let{name:e,local:r}of n.imported)e!==`*`&&t.add(r);if(t.size===0||ar(e.blanked)!==1)return null;for(let n of e.blanked.matchAll(/(?:=>|\breturn)\s*\(?\s*<([A-Z][\w$]*)/g)){if(!t.has(n[1]))continue;let r=n.index+n[0].length-n[1].length-1;if(tr.test(or(e.blanked,r)))return{name:n[1],line:e.lineAt(r)}}return null}function cr(e,t){let n=ir(e),r=[];for(let i of S(t)){if(!i.startsWith(`src/`))continue;let t=C(e,i),a=[],s=/^App([A-Z][A-Za-z0-9]*)\.[jt]sx?$/.exec(o(i))?.[1];if(s&&n.has(s))a.push({line:1,message:rr(s)});else{let e=sr(t);e&&a.push({line:e.line,message:rr(e.name)})}r.push(...E(`library-wrapper`,t,a))}return D(r)}var lr=`@webority/mobile-ui`,ur=new Set([`makeStyles`,`useTheme`,`ThemeProvider`]),dr=new Set([`COLORS`,`PALETTE`,`LIGHT_COLORS`,`DARK_COLORS`,`commonStyles`,`FONT_SIZE`,`Responsive`]),fr=/\bexport\s+(?:const|let|var|function\*?|class)\s+([A-Za-z_$][\w$]*)/g,pr=/\bexport\s*\{([^}]*)\}/g,mr=e=>`local theme ${e}. react-native.md: the library owns the theme; the app supplies brand and settings only.`;function hr(e,t){let n=[];for(let r of S(t)){if(!r.startsWith(`src/`))continue;let t=C(e,r),i=[];for(let e of w(t))if(!(e.kind!==`import`||e.specifier===lr||e.specifier.startsWith(`${lr}/`)))for(let{name:t,local:n}of e.imported){let r=t==="default"?n:t;ur.has(r)&&i.push({line:e.line,message:mr(r)})}for(let e of t.blanked.matchAll(fr))dr.has(e[1])&&i.push({line:t.lineAt(e.index),message:mr(e[1])});for(let e of t.blanked.matchAll(pr))for(let n of e[1].split(`,`)){let r=n.trim().split(/\s+as\s+/).pop();dr.has(r)&&i.push({line:t.lineAt(e.index),message:mr(r)})}n.push(...E(`local-theme`,t,i))}return D(n)}var gr=/^(?:workspace:|file:|link:)/;function _r(e){let t=l(e,`package.json`),n,i;try{n=r(t,`utf8`),i=JSON.parse(n)}catch{return[]}let a={...i.dependencies,...i.devDependencies},o=Object.keys(a).filter(e=>e.startsWith(`@webority/mobile-`)||e===`@webority/biome-config`).filter(e=>!gr.test(String(a[e]))).sort().map(e=>[e,String(a[e]).replace(/^[\^~]/,``)]),s=o[0],c=s?o.find(([,e])=>e!==s[1]):void 0;if(!s||!c)return[];let u=n.split(`
76
+ `).findIndex(e=>e.includes(`"${s[0]}"`));return[{rule:`mobile-pins-lockstep`,file:`package.json`,line:u===-1?1:u+1,message:`pins ${s[0]}@${s[1]} and ${c[0]}@${c[1]}. react-native.md: the phone packages move together.`}]}var vr=new Set([`Text`,`TextInput`,`Pressable`,`TouchableOpacity`,`TouchableHighlight`,`TouchableWithoutFeedback`,`ActivityIndicator`,`Modal`,`Switch`,`Button`]),yr=e=>`${e} from react-native in a screen or product component. react-native.md: use the mobile-ui part (Text, Input, Button, Card onPress, Spinner, Modal, Switch); mark a deliberate use with // layering-allow raw-primitive: <reason>.`;function br(e,t){let n=[];for(let r of S(t)){if(!r.startsWith(`src/screens/`)&&!r.startsWith(`src/components/`))continue;let t=C(e,r),i=new Set;for(let e of w(t))if(!(e.kind!==`import`||e.specifier!==`react-native`))for(let{name:t,local:n}of e.imported)vr.has(t)&&i.add(n);let a=[];for(let e of i){let n=RegExp(`(?<![\\w$)\\]])<${e.replace(/\$/g,`\\$`)}(?![\\w$.-])`,`g`);for(let r of t.blanked.matchAll(n))a.push({line:t.lineAt(r.index),message:yr(e)})}n.push(...E(`raw-primitive`,t,a))}return D(n)}var k=`src/screens/index.js`;function xr(e,t){let n=S(t);if(!n.includes(k))return[];let r=new Set(n),i=new Set;for(let t of w(C(e,k))){if(t.kind!==`export-from`)continue;let e=T(r,k,t.specifier);e!==null&&i.add(e)}let a=[];for(let t of n){if(t===k||t.startsWith(`src/navigation/`))continue;let n=C(e,t),o=[];for(let e of w(n)){let n=T(r,t,e.specifier);if(n!==null&&n!==t&&i.has(n)){let t=d.basename(n).replace(/\.[^.]+$/,``);o.push({line:e.line,message:`imports the route screen ${t}. react-native.md: share the form or part as a sibling file, never a screen.`})}}a.push(...E(`screen-imports-screen`,n,o))}return D(a)}var Sr=400,Cr=600;function wr(e,t){let n=[];for(let r of S(t)){if(!r.startsWith(`src/screens/`))continue;let t=C(e,r),i=Rn(t.text),a=i>Sr?[{line:1,message:`${i} lines. react-native.md: split a screen over 400 lines; over 600 is a finding.`,note:i<=Cr}]:[];n.push(...E(`screen-length`,t,a))}return D(n)}var Tr=/(?:^|\/)index\.[jt]sx?$/,Er=e=>e.startsWith(`src/components/`)&&!Tr.test(e);function Dr(e,t){let n=S(t),r=new Set(n),i=new Map,a=t=>(i.has(t)||i.set(t,C(e,t)),i.get(t)),o=new Map;for(let e of n){if(!e.startsWith(`src/components/`)||!Tr.test(e))continue;let t=new Map,n=[];for(let i of w(a(e))){if(i.kind!==`export-from`)continue;let a=T(r,e,i.specifier);if(a!==null)for(let{name:e,local:r}of i.imported)e===`*`&&r===`*`?n.push(a):t.set(r,a)}o.set(e,{named:t,star:n})}let s=(e,t)=>RegExp(`export\\s+(?:const|let|var|function\\*?|class)\\s+${t.replace(/\$/g,`\\$`)}\\b|export\\s*\\{[^}]*\\b${t.replace(/\$/g,`\\$`)}\\b`).test(a(e).blanked),c=new Map,l=(e,t)=>{e!==t&&(c.has(e)||c.set(e,new Set),c.get(e).add(t))};for(let e of n)for(let t of w(a(e))){if(t.kind===`export-from`)continue;let n=T(r,e,t.specifier);if(n===null)continue;let i=o.get(n);if(!i){l(n,e);continue}for(let{name:n}of t.imported){let t=i.named.get(n)??i.star.find(e=>s(e,n));t&&l(t,e)}}let u=[];for(let e of n){if(!Er(e))continue;let t=c.get(e)?.size??0,n=t<2?[{line:1,message:`${e} has ${t} importer(s). react-native.md: a part one screen uses lives beside that screen.`}]:[];u.push(...E(`shared-single-importer`,a(e),n))}return D(u)}var Or=/(?<![\w$.])Responsive\s*\.\s*(?:width|height|font)\s*\(/g,kr=`scales by screen width. react-native.md: use theme.space and the text scale.`;function Ar(e,t){let n=[];for(let r of S(t)){if(!r.startsWith(`src/`))continue;let t=C(e,r),i=[...t.blanked.matchAll(Or)].map(e=>({line:t.lineAt(e.index),message:kr}));n.push(...E(`width-scaling`,t,i))}return D(n)}var jr=[br,Un,Qn,xr,Dr,cr,wr,_r,Xn,hr,Ar],Mr=new Set([`node_modules`,`android`,`ios`,`.git`]);function Nr(e,t=``){let n=[];for(let r of i(l(e,t),{withFileTypes:!0})){if(Mr.has(r.name))continue;let i=t?`${t}/${r.name}`:r.name;r.isDirectory()?n.push(...Nr(e,i)):n.push(i)}return n}function Pr(e){let t=Nr(e).sort(),n=[];for(let r of jr.flatMap(n=>n(e,t))){let e=`${r.file}:${r.line} ${r.message}`;r.note?console.log(`note: ${e}`):n.push([`${r.rule}:${r.file}`,e])}return n}var Fr=new Set([`node_modules`,`dist`,`build`,`.git`,`.gradle`,`Pods`,`DerivedData`]);function A(e,t){return i(e,{withFileTypes:!0}).flatMap(n=>n.isDirectory()?t.has(n.name)?[]:A(l(e,n.name),t):[l(e,n.name)])}var Ir=e=>e.split(`\\`).join(`/`);function Lr(e,t){return e.replace(t,e=>e.replace(/[^\n]/g,` `))}function Rr(e,t){return e.slice(0,t).split(`
77
+ `).length}var zr=/^MainActivity\.(?:kt|java)$/,Br=/\bsuper\.onCreate\(\s*(?!null\s*\))[^)]*\)/;function Vr(e){let n=l(e,`android`,`app`,`src`);if(!t(n))return[];let i=[];for(let t of A(n,Fr)){if(!zr.test(o(t)))continue;let n=Lr(Lr(r(t,`utf8`),/\/\*[\s\S]*?\*\//g),/\/\/[^\n]*/g),a=Br.exec(n);if(!a)continue;let s=Ir(f(e,t));i.push([`rn-mainactivity-oncreate-bundle:${s}`,`${s}:${Rr(n,a.index)} passes a bundle to super.onCreate. react-native-toolchain.md → Android: super.onCreate(null): pass null, so Android does not restore stale Screen fragments after the OS kills the app, and register the splash screen before it.`])}return i}var Hr=/EXPO_UPDATE_URL"[^>]*?\/(Staging|Development)"/,Ur=/<key>EXPO_UPDATE_URL<\/key>\s*<string>[^<]*\/(Staging|Development)<\/string>/,Wr=/^APP_ID=.*\.(staging|development)\s*$/m;function Gr(e){let n=[{file:l(e,`android`,`app`,`src`,`main`,`AndroidManifest.xml`),pattern:Hr},{file:l(e,`android`,`gradle.properties`),pattern:Wr}],r=l(e,`ios`);if(t(r))for(let e of A(r,Fr))o(e)===`Expo.plist`&&n.push({file:e,pattern:Ur});return n.filter(({file:e})=>t(e))}function Kr(e){let t=[];for(let{file:n,pattern:i}of Gr(e)){let a=Ir(f(e,n)),o=r(n,`utf8`),s=i.exec(o);s&&t.push([`mobile-production-stamps:${a}`,`${a}:${Rr(o,s.index)} carries ${s[1]} values from a mobile-tools prebuild. Run \`mobile-tools prebuild --env Production\` in the app folder before committing, so production builds never read the ${s[1]} update feed or app id.`])}return t}var qr=/^spa-host\..+\.json$/,Jr=new Set([`web.config`,`staticwebapp.config.json`,`_headers`,`spa-host.json`]);function Yr(e){let t=[];for(let n of A(e,new Set([...Fr,`android`,`ios`]))){let i=o(n);if(!Jr.has(i)&&!qr.test(i))continue;let a=Lr(r(n,`utf8`),/<!--[\s\S]*?-->/g).split(`
78
+ `).findIndex(e=>/\bimmutable\b/i.test(e)&&/cache/i.test(e));if(a===-1)continue;let s=Ir(f(e,n));t.push([`spa-host-immutable-assets:${s}`,`${s}:${a+1} sets a Cache-Control with immutable. react.md → SPA deploy artifacts: /assets/* is "public, max-age=31536000" without immutable, because immutable on a content-hashed URL can brick that URL in the browser cache across a bad deploy.`])}return t}var Xr=[[`eslint`,`react.md: Biome is the only lint and format tool`],[`@eslint/js`,`react.md: Biome is the only lint and format tool`],[`prettier`,`react.md: Biome is the only lint and format tool`],[`lint-staged`,`react.md: the shared pre-commit hook replaces lint-staged`]],Zr=[[`@typescript-eslint/`,`react.md: no TypeScript toolchain residue`],[`eslint-plugin-`,`react.md: Biome is the only lint and format tool`],[`eslint-config-`,`react.md: Biome is the only lint and format tool`],[`prettier-plugin-`,`react.md: Biome is the only lint and format tool`]],j=`bootstrap-ui.md: hard interactive components come from @webority/ui-react`,M=`react.md: Bootstrap 5.3.3 is the only UI framework`,N=`react.md: dates format through Intl and the web-core formatters`,Qr=`react-native.md: retired; Intl and the mobile-core formatters`,$r={web:[...Xr,[`typescript`,`react.md: JavaScript only, never TypeScript`],[`sass`,`react.md: the SCSS compiler is sass-embedded, never the pure-JS sass`],[`react-toastify`,`react.md: notifications are toast from @webority/ui-react`],[`downshift`,j],[`react-day-picker`,j],[`react-aria`,j],[`react-aria-components`,j],[`@webority/ui-elements`,`bootstrap-ui.md: products use the App* wrappers, and ui-react brings the elements itself`],[`crypto-js`,`react.md: stored tokens are never encrypted client-side`],[`tailwindcss`,M],[`antd`,M],[`styled-components`,`react.md: no CSS-in-JS`],[`bootstrap-icons`,`bootstrap-ui.md: icons are AppIcon from @webority/ui-react`],[`iconsax-react`,`ui-components.md: icons are AppIcon from @webority/ui-react`],[`moment`,N],[`moment-timezone`,N],[`dayjs`,N],[`date-fns`,N]],mobile:[...Xr,[`typescript`,`react-native.md: app code is JavaScript`],[`@types/react`,`react-native.md: app code is JavaScript`],[`@react-native/typescript-config`,`react-native.md: app code is JavaScript`],[`react-native-permissions`,`react-native.md: retired; each Expo module requests its own permission`],[`moment`,Qr],[`moment-timezone`,Qr],[`dayjs`,Qr],[`react-native-fast-image`,`react-native.md: retired; expo-image`],[`@d11/react-native-fast-image`,`react-native.md: retired; expo-image`],[`formik`,`react-native.md: retired; react-hook-form`],[`yup`,`react-native.md: retired; zod with zodResolver`],[`react-native-status-bar-height`,`react-native.md: retired; react-native-safe-area-context insets`],[`react-native-flash-message`,`react-native.md: retired; the mobile-ui toast`],[`react-native-toast-message`,`react-native.md: retired; the mobile-ui toast`],[`prop-types`,`react-native.md: retired; defaults in the parameter destructure`],[`@react-navigation/stack`,`react-native.md: retired; @react-navigation/native-stack`],[`react-native-version-check`,`react-native.md: retired; the server-driven minimum version`],[`@react-native-firebase/messaging`,`react-native.md: push is expo-notifications through mobile-core`],[`@notifee/react-native`,`react-native.md: push is expo-notifications through mobile-core`],[`patch-package`,`react-native-toolchain.md: patch with pnpm patch, never patch-package`]],demo:[]},ei={web:[...Zr,[`@mui/`,M],[`@chakra-ui/`,M],[`@emotion/`,`react.md: no CSS-in-JS`],[`@radix-ui/`,j],[`@react-aria/`,j]],mobile:[...Zr],demo:[]},ti={web:[[`axios-retry`,`@webority/web-core`,`react.md: retry lives only in @webority/web-core`]],mobile:[[`axios-retry`,`@webority/mobile-core`,`react.md: retry lives only in @webority/mobile-core`]],demo:[]},ni={web:[[`@biomejs/biome`,`react.md: Biome is mandatory`],[`@webority/biome-config`,`react.md: every repo extends the shared Biome preset`],[`@webority/web-core`,`react.md: clients, auth, errors and logging come from web-core`],[`@webority/ui-react`,`react.md: App* components come from the catalogue`],[`@webority/theme`,`bootstrap-ui.md: look and tokens come from the shared theme`],[`bootstrap`,`bootstrap-ui.md: Bootstrap 5.3.3 on every surface`],[`react-bootstrap`,`bootstrap-ui.md: react-bootstrap is a dependency from project init`],[`sass-embedded`,`react.md: the SCSS compiler is sass-embedded`]],mobile:[[`@biomejs/biome`,`react-native.md: Biome is mandatory`],[`@webority/biome-config`,`react.md: every repo extends the shared Biome preset`],[`@webority/mobile-core`,`react-native.md: apps consume the shared mobile library`],[`@webority/mobile-ui`,`react-native.md: apps consume the shared mobile library`],[`@react-native-firebase/app`,`react-native.md: Crashlytics in every app`],[`@react-native-firebase/crashlytics`,`react-native.md: Crashlytics in every app`]],demo:[[`@biomejs/biome`,`react.md: Biome is mandatory`],[`@webority/biome-config`,`react.md: every repo extends the shared Biome preset`]]},ri=`5.3.3`,ii=[`agentation`],ai=`>=24.15 <25`,oi=[[`web-import-axios`,/(?:\bfrom\s*|\bimport\s*\(\s*|\brequire\s*\(\s*|^\s*import\s*)["']axios(?:\/[^"']*)?["']/m,`imports axios`,`react.md: HTTP goes through userClient and publicClient from @webority/web-core`],[`web-import-router`,/\bimport\s*\{[^}]*\b(?:BrowserRouter|Routes)\b[^}]*\}\s*from\s*["']react-router(?:-dom)?["']/,`imports BrowserRouter or Routes`,`react.md: routes are objects passed to createBrowserRouter and rendered by RouterProvider`],[`web-import-env-branch`,/\bimport\.meta\.env\.(?:DEV|PROD)\b/,`reads import.meta.env.DEV or PROD`,`react.md: branch on AppSettings.ENVIRONMENT; DEV and PROD only say which React build is bundled`]],si=[[`@webority/theme`,`@webority/ui-react`,`@webority/support-react`,`@webority/chat-react`,`@webority/web-core`,`@webority/biome-config`,`@webority/repo-checks`],[`@webority/mobile-core`,`@webority/mobile-ui`,`@webority/mobile-support`,`@webority/mobile-tools`]],ci=`@webority/biome-config/biome.jsonc`,li={react:[`Children`,`Fragment`,`Profiler`,`StrictMode`,`Suspense`]},ui=`AppAccordion.AppActionIcon.AppAlert.AppAsyncBlock.AppAutocomplete.AppAvatar.AppAvatarGroup.AppBadge.AppBanner.AppBreadcrumbs.AppButton.AppButtonGroup.AppCalendar.AppCard.AppCarousel.AppChart.AppChartCard.AppCheckbox.AppChip.AppChipGroup.AppChoiceCard.AppChoiceChip.AppCodeBlock.AppColorField.AppColumnMenu.AppCommandPalette.AppCommentThread.AppCompareTable.AppConfirmDialog.AppConsentBanner.AppContextMenu.AppCopyButton.AppCountryFlag.AppCountrySelect.AppDashboardCell.AppDashboardGrid.AppDataTable.AppDatePicker.AppDateRangePicker.AppDescriptions.AppDetailPane.AppDrawer.AppDropZone.AppDropdown.AppDueDate.AppEmptyState.AppErrorSummary.AppFileAttachment.AppFilePicker.AppFileTiles.AppFileViewer.AppFilterBar.AppFloatingDock.AppFormActions.AppFormRow.AppFormSection.AppHoverCard.AppIcon.AppImagePicker.AppInfoTip.AppInlineEdit.AppInput.AppInputGroup.AppKanban.AppKbd.AppKpiTile.AppLightbox.AppLink.AppMarkdown.AppMentionInput.AppMeter.AppMetricStrip.AppModal.AppMultiSelect.AppNavList.AppNavigationMenu.AppNotificationCenter.AppNumberInput.AppOnboardingChecklist.AppOtpInput.AppPageHeader.AppPhoneNumberInput.AppPopover.AppPricingCard.AppProgress.AppQrCode.AppRadio.AppRadioGroup.AppRating.AppRecordPager.AppRelativeTime.AppRepeater.AppRequiredMark.AppResizable.AppResizableHandle.AppResizablePanel.AppResourceCard.AppResult.AppRichText.AppRollingNumber.AppRouteError.AppScoreScale.AppScrollbar.AppSearch.AppSectionCallToAction.AppSectionFaq.AppSectionFeatures.AppSectionHero.AppSectionLeadCapture.AppSectionLogos.AppSectionPricing.AppSectionTestimonials.AppSegmented.AppSelect.AppSeoHead.AppShell.AppShortcutLegend.AppShowMore.AppSkeleton.AppSkeletonLines.AppSkeletonRows.AppSlider.AppSortableList.AppSparkline.AppSpinner.AppSplash.AppSplitButton.AppSplitView.AppStatusBadge.AppStepper.AppSwitch.AppTablePagination.AppTableToolbar.AppTabs.AppTagInput.AppTextarea.AppThemeToggle.AppTimePicker.AppTimeline.AppToast.AppToolbar.AppTooltip.AppTour.AppTreeView.AppTruncate.AppUpdateBar.AppWhatsNew.AppWizard.AppWorkspaceSwitcher`.split(`.`),di=[`lint`,`rn-mainactivity-oncreate-bundle`,`spa-host-immutable-assets`,`oversize`];function fi(e,t=process.env){let n=String(t.REPO_CHECKS_ENFORCE??``).split(`,`).map(e=>e.trim()).filter(Boolean);return!di.includes(e)||n.includes(`all`)||n.includes(e)}var pi={version:`0.89.0`,css:{rename:[[`--color-primary-text`,`--color-on-primary`],[`--color-primary-ink`,`--color-primary-text`],[`--color-primary-hover-text`,`--color-on-primary`],[`--color-on-primary-ink`,`--color-on-primary`],[`--color-border-light`,`--color-border-subtle`],[`--color-focus-border`,`--color-field-border-focus`],[`--color-success-active`,`--color-success-pressed`],[`--color-success-10`,`--color-success-soft`],[`--color-success-30`,`--color-success-border`],[`--color-warning-active`,`--color-warning-pressed`],[`--color-warning-10`,`--color-warning-soft`],[`--color-warning-30`,`--color-warning-border`],[`--color-danger-active`,`--color-danger-pressed`],[`--color-danger-10`,`--color-danger-soft`],[`--color-danger-30`,`--color-danger-border`],[`--color-info-active`,`--color-info-pressed`],[`--color-info-10`,`--color-info-soft`],[`--color-info-30`,`--color-info-border`],[`--color-accent`,`--color-warning`],[`--color-accent-soft`,`--color-warning-soft`],[`--color-close-filter`,`--wui-close-filter`],[`--color-pressed-overlay`,`--wui-pressed-overlay`],[`--wui-chart-grid`,`--color-chart-grid`],[`--wui-chart-axis`,`--color-chart-axis`],[`--wui-chart-label`,`--color-chart-label`],[`--wui-shadow-overlay`,`--wui-shadow-popover`],[`--wui-shadow-overlay-lg`,`--wui-shadow-modal`],[`--shadow-overlay`,`--wui-shadow-popover`],[`--shadow-overlay-lg`,`--wui-shadow-modal`],[`--shadow-sm`,`--wui-shadow-card`],[`--shadow-md`,`--wui-shadow-card`],[`--shadow-lg`,`--wui-shadow-card`],[`--wui-shadow-card-lifted`,`--wui-card-shadow-lifted`],[`--wui-shadow-card-lifted-hover`,`--wui-card-shadow-lifted-hover`],[`--wui-shadow-thumb`,`--wui-thumb-shadow`],[`--wui-shadow-thumb-hover`,`--wui-thumb-shadow-hover`],[`--radius-sm`,`--wui-radius-sm`],[`--radius`,`--wui-radius-md`],[`--radius-lg`,`--wui-radius-lg`],[`--radius-xl`,`--wui-radius-xl`],[`--wui-radius`,`--wui-radius-md`],[`--wui-control-height-sm`,`--wui-control-sm`],[`--wui-control-height`,`--wui-control-md`],[`--wui-control-height-lg`,`--wui-control-lg`],[`--wui-field-radius-sm`,`--wui-field-sm-radius`],[`--wui-field-radius`,`--wui-field-md-radius`],[`--wui-field-radius-lg`,`--wui-field-lg-radius`],[`--wui-ease-out-quart`,`--wui-ease-out`],[`--wui-font-body`,`--wui-font-ui`],[`--font-sans`,`--wui-font-ui`],[`--wui-fs-smb`,`--wui-fs-sm`],[`--wui-fs-48`,`--wui-fs-4xl`],[`--wui-fs-64`,`--wui-fs-5xl`]],reads:[[`--wui-chart-1`,`--color-chart-1`],[`--wui-chart-2`,`--color-chart-2`],[`--wui-chart-3`,`--color-chart-3`],[`--wui-chart-4`,`--color-chart-4`],[`--wui-chart-5`,`--color-chart-5`],[`--wui-chart-6`,`--color-chart-6`],[`--wui-chart-7`,`--color-chart-7`],[`--wui-chart-8`,`--color-chart-8`],[`--wui-chart-seq-0`,`--color-chart-seq-0`],[`--wui-chart-seq-1`,`--color-chart-seq-1`],[`--wui-chart-seq-2`,`--color-chart-seq-2`],[`--wui-chart-seq-3`,`--color-chart-seq-3`],[`--wui-chart-seq-4`,`--color-chart-seq-4`],[`--wui-chart-seq-5`,`--color-chart-seq-5`],[`--wui-chart-seq-6`,`--color-chart-seq-6`],[`--wui-chart-diverging-low`,`--color-chart-diverging-low`],[`--wui-chart-diverging-mid`,`--color-chart-diverging-mid`],[`--wui-chart-diverging-high`,`--color-chart-diverging-high`],[`--wui-chart-neutral`,`--color-chart-neutral`],[`--wui-dark-shadow-thumb`,`--wui-thumb-shadow`],[`--wui-dark-shadow-thumb-hover`,`--wui-thumb-shadow-hover`]],choose:{"--color-on-status-fill":`Use the ink of the fill's tone: --color-on-success, --color-on-warning, --color-on-danger or --color-on-info.`,"--color-on-status-strong":`Use the ink of the strong fill's tone: --color-on-success-strong, --color-on-warning-strong, --color-on-danger-strong or --color-on-info-strong.`,"--color-success-5":`No meaning holds this step: use --color-success-soft for a fill or --color-success-border for an edge.`,"--color-success-20":`No meaning holds this step: use --color-success-soft for a fill or --color-success-border for an edge.`,"--color-success-50":`No meaning holds this step: use --color-success-soft for a fill or --color-success-border for an edge.`,"--color-warning-5":`No meaning holds this step: use --color-warning-soft for a fill or --color-warning-border for an edge.`,"--color-warning-20":`No meaning holds this step: use --color-warning-soft for a fill or --color-warning-border for an edge.`,"--color-warning-50":`No meaning holds this step: use --color-warning-soft for a fill or --color-warning-border for an edge.`,"--color-danger-5":`No meaning holds this step: use --color-danger-soft for a fill or --color-danger-border for an edge.`,"--color-danger-20":`No meaning holds this step: use --color-danger-soft for a fill or --color-danger-border for an edge.`,"--color-danger-50":`No meaning holds this step: use --color-danger-soft for a fill or --color-danger-border for an edge.`,"--color-info-5":`No meaning holds this step: use --color-info-soft for a fill or --color-info-border for an edge.`,"--color-info-20":`No meaning holds this step: use --color-info-soft for a fill or --color-info-border for an edge.`,"--color-info-50":`No meaning holds this step: use --color-info-soft for a fill or --color-info-border for an edge.`},checkRole:[`--wui-shadow-popover`,`--wui-shadow-modal`]},themeReads:[{kind:`path`,from:`colors.primaryHover`,to:`colors.primary-hover`},{kind:`path`,from:`colors.primaryPressed`,to:`colors.primary-pressed`},{kind:`path`,from:`colors.primaryMuted`,to:`colors.primary-soft`},{kind:`path`,from:`colors.secondaryHover`,to:`colors.neutral-hover`},{kind:`path`,from:`colors.secondary`,to:`colors.neutral`},{kind:`path`,from:`colors.error`,to:`colors.danger`},{kind:`path`,from:`colors.onPrimary`,to:`colors.on-primary`},{kind:`path`,from:`colors.onNeutral`,to:`colors.on-neutral-strong`},{kind:`path`,from:`colors.onSecondary`,to:`colors.on-neutral`},{kind:`path`,from:`colors.onSuccess`,to:`colors.on-success`},{kind:`path`,from:`colors.onWarning`,to:`colors.on-warning`},{kind:`path`,from:`colors.onError`,to:`colors.on-danger`},{kind:`path`,from:`colors.onInfo`,to:`colors.on-info`},{kind:`path`,from:`colors.onOverlay`,to:`colors.on-scrim`},{kind:`path`,from:`colors.toneText.primary`,to:`colors.primary-text`},{kind:`path`,from:`colors.toneText.success`,to:`colors.success-text`},{kind:`path`,from:`colors.toneText.warning`,to:`colors.warning-text`},{kind:`path`,from:`colors.toneText.error`,to:`colors.danger-text`},{kind:`path`,from:`colors.toneText.info`,to:`colors.info-text`},{kind:`path`,from:`colors.text.primary`,to:`colors.text-body`},{kind:`path`,from:`colors.text.secondary`,to:`colors.text-muted`},{kind:`path`,from:`colors.text.tertiary`,to:`colors.text-subtle`},{kind:`path`,from:`colors.text.inverse`,to:`colors.text-inverse`},{kind:`path`,from:`colors.text.strong`,to:`colors.text`},{kind:`path`,from:`colors.text.disabled`,to:`colors.text-disabled`},{kind:`path`,from:`colors.text.link`,to:`colors.link`},{kind:`path`,from:`colors.background.primary`,to:`colors.bg`},{kind:`path`,from:`colors.background.secondary`,to:`colors.bg-subtle`},{kind:`path`,from:`colors.background.tertiary`,to:`colors.bg-muted`},{kind:`path`,from:`colors.background.elevated`,to:`colors.surface`},{kind:`path`,from:`colors.background.overlay`,to:`colors.scrim`},{kind:`path`,from:`colors.background.inverse`,to:`colors.surface-inverse`},{kind:`path`,from:`colors.border.primary`,to:`colors.border`},{kind:`path`,from:`colors.border.secondary`,to:`colors.border-subtle`},{kind:`path`,from:`colors.border.focus`,to:`colors.focus-ring`},{kind:`path`,from:`colors.border.error`,to:`colors.danger-border`},{kind:`path`,from:`colors.border.width`,to:`size.border`},{kind:`path`,from:`colors.field.backgroundFocused`,to:`colors.field-bg-focus`},{kind:`path`,from:`colors.field.backgroundDisabled`,to:`colors.field-bg-disabled`},{kind:`path`,from:`colors.field.background`,to:`colors.field-bg`},{kind:`path`,from:`colors.field.borderFocused`,to:`colors.field-border-focus`},{kind:`path`,from:`colors.field.borderError`,to:`colors.field-border-error`},{kind:`path`,from:`colors.field.border`,to:`colors.field-border`},{kind:`path`,from:`colors.field.label`,to:`colors.field-label`},{kind:`path`,from:`colors.field.textDisabled`,to:`colors.field-text-disabled`},{kind:`path`,from:`colors.field.text`,to:`colors.field-text`},{kind:`path`,from:`colors.field.placeholderDisabled`,to:`colors.field-placeholder-disabled`},{kind:`path`,from:`colors.field.placeholder`,to:`colors.field-placeholder`},{kind:`path`,from:`colors.field.iconFocused`,to:`colors.field-icon-focus`},{kind:`path`,from:`colors.field.iconDisabled`,to:`colors.field-icon-disabled`},{kind:`path`,from:`colors.field.icon`,to:`colors.field-icon`},{kind:`path`,from:`colors.field.caret`,to:`colors.field-caret`},{kind:`path`,from:`colors.field.message`,to:`colors.field-message`},{kind:`path`,from:`colors.surface.pressed`,to:`colors.surface-pressed`},{kind:`path`,from:`colors.surface.hovered`,to:`colors.surface-hover`},{kind:`path`,from:`colors.surface.selected`,to:`colors.surface-selected`},{kind:`path`,from:`colors.surface.disabled`,to:`colors.surface-disabled`},{kind:`path`,from:`colors.glass.fill`,to:`colors.glass-fill`},{kind:`path`,from:`colors.glass.border`,to:`colors.glass-border`},{kind:`path`,from:`colors.glass.on`,to:`colors.on-glass`},{kind:`path`,from:`colors.glass.badge`,to:`colors.glass-badge`},{kind:`path`,from:`colors.skeleton.background`,to:`colors.skeleton`},{kind:`path`,from:`colors.skeleton.highlight`,to:`colors.skeleton-highlight`},{kind:`gone`,from:`colors.avatarPalette`,hint:"read colors[`avatar-${n}`] for n 1 to 8"},{kind:`path`,from:`typography.fontFamily.regular`,to:`font.ui.normal`},{kind:`path`,from:`typography.fontFamily.medium`,to:`font.ui.medium`},{kind:`path`,from:`typography.fontFamily.semibold`,to:`font.ui.semibold`},{kind:`path`,from:`typography.fontFamily.bold`,to:`font.ui.bold`},{kind:`gone`,from:`typography.fontFamily.display`,hint:`font.display is a face per weight: font.display.<weight>`},{kind:`prefix`,from:`typography.fontSize.`,to:`text.`},{kind:`prefix`,from:`typography.fontWeight.`,to:`weight.`},{kind:`prefix`,from:`typography.lineHeight.`,to:`leading.`},{kind:`prefix`,from:`typography.letterSpacing.`,to:`letter-spacing.`},{kind:`prefix`,from:`spacing.`,to:`space.`},{kind:`path`,from:`shadows.sm`,to:`shadow.card`},{kind:`path`,from:`shadows.md`,to:`shadow.elevated`},{kind:`path`,from:`shadows.lg`,to:`shadow.popover`},{kind:`path`,from:`shadows.xl`,to:`shadow.modal`},{kind:`gone`,from:`shadows.xs`,hint:`use shadow.card`},{kind:`gone`,from:`shadows.2xl`,hint:`use shadow.modal`},{kind:`gone`,from:`shadows.none`,hint:`omit the shadow`},{kind:`path`,from:`motion.duration.normal`,to:`motion.duration.default`},{kind:`path`,from:`motion.easing.standard`,to:`motion.ease.in-out`},{kind:`prefix`,from:`motion.easing.`,to:`motion.ease.`},{kind:`prefix`,from:`icons`,to:`settings.icons`},{kind:`prefix`,from:`gradients`,to:`settings.gradients`},{kind:`prefix`,from:`textVariants`,to:`settings.textVariants`},{kind:`path`,from:`maxFontSizeMultiplier`,to:`settings.maxFontSizeMultiplier`},{kind:`path`,from:`components.field.defaultVariant`,to:`settings.components.field.defaultVariant`},{kind:`path`,from:`components.field.requiredMarker`,to:`settings.components.field.requiredMarker`},{kind:`path`,from:`components.input.defaultVariant`,to:`settings.components.input.defaultVariant`},{kind:`path`,from:`components.input.defaultLabelMode`,to:`settings.components.input.defaultLabelMode`},{kind:`path`,from:`components.input.tintLabelOnFocus`,to:`settings.components.input.tintLabelOnFocus`},{kind:`path`,from:`components.input.shakeOnError`,to:`settings.components.input.shakeOnError`},{kind:`path`,from:`components.searchBar.defaultVariant`,to:`settings.components.search-bar.defaultVariant`},{kind:`path`,from:`components.select.defaultVariant`,to:`settings.components.select.defaultVariant`},{kind:`path`,from:`components.otpInput.shakeOnError`,to:`settings.components.otp-input.shakeOnError`},{kind:`path`,from:`components.optionSheet.selectedMarker`,to:`settings.components.option-sheet.selectedMarker`},{kind:`path`,from:`components.profilePicker.defaultTone`,to:`settings.components.profile-picker.defaultTone`},{kind:`path`,from:`components.profilePicker.defaultVariant`,to:`settings.components.profile-picker.defaultVariant`},{kind:`path`,from:`components.profilePicker.defaultAvatarTone`,to:`settings.components.profile-picker.defaultAvatarTone`},{kind:`path`,from:`components.slider.thumbPressAnimation`,to:`settings.components.slider.thumbPressAnimation`},{kind:`path`,from:`components.rating.pulseOnPress`,to:`settings.components.rating.pulseOnPress`},{kind:`path`,from:`components.stepper.pulseAnimation`,to:`settings.components.stepper.pulseAnimation`},{kind:`path`,from:`components.tooltip.enableScaleAnimation`,to:`settings.components.tooltip.enableScaleAnimation`},{kind:`path`,from:`components.toast.enableSwipeDismiss`,to:`settings.components.toast.enableSwipeDismiss`},{kind:`path`,from:`components.toast.defaultDurationMs`,to:`settings.components.toast.defaultDurationMs`},{kind:`gone`,from:`components.field.outlined`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.filled`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.underline`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.textColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.disabledTextColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.placeholderColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.fontWeight`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.field.requiredMarkerColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.input.fillColors`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.select.handleColor`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.select.fillColors`,hint:`field colours come from the field-* colour names`},{kind:`gone`,from:`components.switch.thumbColor`,hint:`the thumb reads colors.thumb`},{kind:`gone`,from:`components.slider.thumbPressScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.slider.labelShowDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.slider.labelOpacity`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.swipeDismissThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.swipeVelocityThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.stackOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.stackScaleStep`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.stackMinScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.enterSpringDamping`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.enterSpringStiffness`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.toast.enterSpringMass`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconCircleSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconGlyphText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconGlyphLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.closeButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.closeGlyphText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.closeButtonMarginLeft`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.containerPaddingLeft`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.iconGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.textBlockPaddingRight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionsRowMarginTop`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionsRowGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionButtonPaddingX`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionButtonPaddingY`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.banner.actionButtonRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.formField.inlineLabelWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.numberInput.longPressDelayMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.numberInput.longPressIntervalMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressBar.indeterminateLoopDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressBar.indeterminateWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressBar.determinateAnimationDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.animationDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.strokeWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.trackColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.progressRing.colorStops`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.rating.pulseScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomSheet.handleColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.choiceGroup.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.choiceGroup.selectedFillOpacity`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.filePicker.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.filePicker.thumbnailSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.filePicker.dashedBorderColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.profilePicker.badgeColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.profilePicker.badgeIconColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.inlineSelect.color`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.iconSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.pillHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.pillMaxWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.pillInset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.underlineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.floatingMargin`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.floatingRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.bubbleSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.bottomNavigation.bubbleLift`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.monthSlideDistance`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.monthSlideOutDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.monthSlideInDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.viewTransitionDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.headerPressDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.headerReleaseDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.navButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.navText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.navTextLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.dayCellPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.dayInnerRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.yearCellPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.yearInnerRadius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.decadeRangeMarginTop`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.datePicker.footerButtonMinHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.monthSlideDistance`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.monthSlideOutDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.monthSlideInDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.navButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.navText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.navTextLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.dateRangePicker.footerButtonMinHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timePicker.hapticDebounceMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timePicker.handleWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timePicker.handleHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.borderWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.borderColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.statusBorderWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.statusBorderColor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.ringWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.ringGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.fontSizeRatio`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.text`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.avatar.fontWeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.accordion.cardPaddingY`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.sideSlotMinWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.collapseTranslateDistance`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.subtitleMarginTop`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.actionButtonSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.iconSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.dividerWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.dotSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.dotOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeMinWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgePaddingX`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeText`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.appBar.badgeLineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.drawer.closeVelocityThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.drawer.dragActivationOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.imageGallery.maxScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.imageGallery.minScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.imageGallery.doubleTapScale`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.modal.scaleStartValue`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.stepper.circleSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.stepper.pulseSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.stepper.pulseDuration`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.threshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.fullSwipeThreshold`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.dragActivationOffset`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.rubberBandFactor`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.failOffsetY`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.springDamping`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.springStiffness`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.swipeable.springMass`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timeline.dotSize`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timeline.haloWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.timeline.connectorGap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.gap`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.screenPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.pressAutoHideMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.arrowHalfWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.arrowHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.arrowCornerPadding`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.maxWidth`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.lineHeight`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tooltip.exitDurationMs`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.segmentedControl.radius`,hint:`fixed in the library since 0.89.0`},{kind:`gone`,from:`components.tabs.radius`,hint:`fixed in the library since 0.89.0`},{kind:`kebab`,under:`components`,names:{searchBar:`search-bar`,emptyState:`empty-state`,listItem:`list-item`,otpInput:`otp-input`,segmentedControl:`segmented-control`,floatingActionButton:`floating-action-button`}}],props:[{package:`@webority/mobile-ui`,props:[`tone`,`variant`],from:`error`,to:`danger`}],componentProps:[],propValues:[{package:`@webority/ui-react`,components:[`AppInput`,`AppSelect`,`AppCountrySelect`],prop:`floatingLabel`,true:`border`,false:`off`}],propSplits:[{package:`@webority/ui-react`,components:[`AppInput`],prop:`passwordRequirements`,on:`shown`,off:`off`,into:`passwordPolicy`}],razorAttributes:[{tags:[`app-input`,`app-select`,`app-country-select`],attribute:`floating-label`,values:{true:`border`,false:`off`}},{tags:[`app-input`],attribute:`password-requirements`,values:{true:`shown`,false:`off`}}]},mi=`--color-primary-text`,hi=new Set([...pi.css.rename.map(([e])=>e),...pi.css.reads.map(([e])=>e),...Object.keys(pi.css.choose)].filter(e=>e!==mi)),gi=RegExp(`(?<![\\w-])(${[...hi].join(`|`)})(?![\\w-])`,`g`),_i=new Set([`node_modules`,`dist`,`build`,`out`,`bin`,`obj`,`.git`,`.next`,`coverage`]),vi=new Set([`.css`,`.scss`,`.sass`,`.less`,`.js`,`.jsx`,`.ts`,`.tsx`,`.cshtml`,`.razor`,`.html`,`.vue`]),yi=(e,t)=>_i.has(e)||e===`lib`&&o(t)===`wwwroot`,bi=e=>vi.has(c(e).toLowerCase());function xi(e,t=[]){for(let n of i(e,{withFileTypes:!0})){let r=l(e,n.name);n.isDirectory()?yi(n.name,e)||xi(r,t):bi(n.name)&&t.push(r)}return t}function Si(e,t){for(let n=s(e);n.length>t.length;n=s(n))if(yi(o(n),s(n)))return!0;return!1}function Ci(e){let n=h(`git`,[`ls-files`,`-z`,`--cached`,`--others`,`--exclude-standard`,`--`,`.`],{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:64*1024*1024});return n.status===0?n.stdout.split(`\0`).filter(e=>e&&bi(e)).map(t=>l(e,t.split(`/`).join(m))).filter(n=>!Si(n,e)&&t(n)):xi(e)}function wi(e){let t=e.slice(0,3).join(`, `),n=e.length-3;return n>0?`${t} and ${n} more`:t}function Ti(e,t){let n=[];for(let i of Ci(e)){let e=r(i,`utf8`),a=[],o=-1;for(let t of e.matchAll(gi))o<0&&(o=t.index),a.includes(t[1])||a.push(t[1]);if(a.length===0)continue;let s=f(t,i).split(`\\`).join(`/`),c=e.slice(0,o).split(`
79
+ `).length;n.push([`stale-theme-name:${s}`,`${s}:${c} reads pre-0.89.0 theme names (${wi(a)}). Run webority upgrade 0.89.0 --path <folder> once for the product's style and source folders, then webority brand; no alias for the old names is shipped.`])}return n}var P=e=>e.split(`\\`).join(`/`),Ei=(e,t)=>P(f(e,t))||`.`;function F(e){try{return JSON.parse(r(e,`utf8`))}catch{return null}}function Di(e,t){let n=h(`git`,t,{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:64*1024*1024});return n.status===0?n.stdout:null}function Oi(e){let t=Di(e,[`rev-parse`,`--show-toplevel`]);return t?t.trim():null}function I(e,t){let n=Di(e,[`ls-files`,`-z`,`--`,...t.flatMap(e=>[e,`:(glob)**/${e}`])]);return n?[...new Set(n.split(`\0`).filter(Boolean))]:[]}function ki(e){let t=e?.dependencies??{};return ii.some(e=>t[e])?null:t[`react-native`]?`mobile`:t[`react-dom`]?e?.devDependencies?.[`react-native-web`]||t[`react-native-web`]?`demo`:`web`:null}var Ai=e=>/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(e)||/^(?:workspace:\*|file:|link:)/.test(e),ji=new Set([`@biomejs/biome`,`@webority/biome-config`]),Mi=e=>/^(?:workspace:|file:|link:)/.test(e);function Ni(e,t,n){let r=[],i={...e.dependencies,...e.devDependencies},a=Object.keys(i);for(let[e,n]of $r[t])i[e]&&r.push([`banned:${e}`,`"${e}" is a dependency. ${n}.`]);for(let[e,n]of ei[t])for(let t of a.filter(t=>t.startsWith(e)))r.push([`banned:${t}`,`"${t}" is a dependency. ${n}.`]);for(let[e,n,a]of ti[t])i[e]&&i[n]&&r.push([`banned:${e}`,`"${e}" is a dependency beside ${n}. ${a}.`]);for(let[e,a]of ni[t])(ji.has(e)?n:i)[e]||r.push([`required:${e}`,`"${e}" is not a dependency. ${a}.`]);let o=t===`mobile`?a:a.filter(e=>e.startsWith(`@webority/`)||e===`bootstrap`);for(let e of o){let t=String(i[e]);Ai(t)||r.push([`not-exact:${e}`,`"${e}": "${t}" is a range. Pin the version the lockfile holds, without ^ or ~.`])}i.bootstrap&&String(i.bootstrap).replace(/^[\^~]/,``)!==`5.3.3`&&r.push([`bootstrap-version`,`bootstrap is "${i.bootstrap}". bootstrap-ui.md: every surface pins ${ri}.`]);for(let e of si){let t=e.filter(e=>i[e]&&!Mi(String(i[e])));if(new Set(t.map(e=>String(i[e]).replace(/^[\^~]/,``))).size>1){let n=t.map(e=>`${e}@${i[e]}`).join(`, `);r.push([`lockstep:${e[0]}`,`${n} differ. These publish together at one version; move every pin in the set together.`])}}return r}function L(e,n,r){let i=e;for(;;){for(let e of r)if(t(l(i,e)))return l(i,e);if(i===n)return null;let e=s(i);if(e===i)return null;i=e}}function Pi(e,t){let n=e,i=null;for(;;){let e=L(n,t,[`biome.json`,`biome.jsonc`]);if(!e)return i;i=s(e);let a;try{a=ze(r(e,`utf8`))}catch{return i}let o=s(i);if(a.root!==!1||i===t||o===i)return i;n=o}}function Fi(e,t,n){let r=Pi(e,t),i=r&&r!==e?F(l(r,`package.json`)):null;return i?{...i.dependencies,...i.devDependencies}:n}function Ii(e,n){let i=[],a=L(e,n,[`pnpm-lock.yaml`]);a||i.push([`pnpm:no-lockfile`,`No pnpm-lock.yaml in this folder or above it. react.md: every JS repo installs with pnpm.`]);let o=a?s(a):e,c=F(l(o,`package.json`))??F(l(e,`package.json`)),u=c?.devEngines?.packageManager;(u?.name!==`pnpm`||!/^\d+\.\d+\.\d+$/.test(u?.version??``)||u?.onFail!==`error`)&&i.push([`pnpm:dev-engines`,`package.json lacks "devEngines": { "packageManager": { "name": "pnpm", "version": "<x.y.z>", "onFail": "error" } }. react.md: Package manager.`]),c?.packageManager!==void 0&&i.push([`pnpm:package-manager`,`package.json sets "packageManager", which pnpm ignores beside devEngines. Move its version into devEngines.packageManager.version and delete it. react.md: Package manager.`]);let d=l(o,`pnpm-workspace.yaml`);if(!t(d))i.push([`pnpm:no-workspace-file`,`No pnpm-workspace.yaml beside the lockfile. react.md: it holds engineStrict, strictPeerDependencies and allowBuilds.`]);else{let e=r(d,`utf8`);/^engineStrict:\s*true\s*$/m.test(e)||i.push([`pnpm:engine-strict`,`pnpm-workspace.yaml lacks engineStrict: true. react.md: a Node mismatch must fail the install.`]),/^strictPeerDependencies:\s*true\s*$/m.test(e)||i.push([`pnpm:strict-peers`,`pnpm-workspace.yaml lacks strictPeerDependencies: true. react.md: a peer conflict must fail the install.`])}for(let n of[`package-lock.json`,`yarn.lock`])t(l(e,n))&&i.push([`pnpm:${n}`,`${n} sits in this folder. react.md: pnpm only; seed pnpm-lock.yaml with pnpm import, then delete it.`]);return i}function Li(e,t,n,r){if((e.javascript?.globals??[]).includes(r))return!0;let i=P(f(t,l(n,`index.js`)));return(e.overrides??[]).some(e=>(e.javascript?.globals??[]).includes(r)&&[].concat(e.includes??[]).some(e=>!String(e).startsWith(`!`)&&u(i,String(e))))}function Ri(e,t,n){let i=L(e,t,[`biome.json`,`biome.jsonc`]);if(!i)return[[`biome:missing`,`No biome.json in this folder or above it. react.md: one committed root biome.json.`]];let a;try{a=ze(r(i,`utf8`))}catch{return[[`biome:unreadable`,`${o(i)} does not parse.`]]}let c=[];return[].concat(a.extends??[]).some(e=>e===`@webority/biome-config/biome.jsonc`||String(e).endsWith(`biome-config/biome.jsonc`))||c.push([`biome:extends`,`${o(i)} does not extend "${ci}". react.md: every repo extends the shared preset.`]),a.formatter?.lineEnding&&c.push([`biome:line-ending`,`${o(i)} sets formatter.lineEnding. react.md: inherit it from the shared preset, never set it.`]),a.linter?.rules&&Object.keys(a.linter.rules).length>0&&c.push([`biome:root-rules`,`${o(i)} sets linter.rules at the root. react.md: never a rule's severity at the root; a per-path exception goes in overrides.`]),n===`mobile`&&!Li(a,s(i),e,`__DEV__`)&&c.push([`biome:dev-global`,`${o(i)} lacks "__DEV__" in javascript.globals. react-native.md: Debugging and agent access.`]),c}var zi=l(`node_modules`,`@biomejs`,`biome`,`bin`,`biome`);function Bi(e,t,n){if(e.start?.line)return e.start.line;if(!Array.isArray(e.span))return null;let i=r(l(t,n)),a=1;for(let t=0;t<e.span[0];t++)i[t]===10&&a++;return a}function Vi(e,t,n){let r=n.split(`/`),i=n.startsWith(`@`)?r.slice(0,2).join(`/`):r[0],a=n.slice(i.length)?`.${n.slice(i.length)}`:`.`,o=L(e,t,[l(`node_modules`,i)]),s=o&&F(l(o,`package.json`));if(!s)return null;let c=(typeof s.exports==`string`?{".":s.exports}:s.exports)?.[a]??(a===`.`?s.module??s.main:null);return c&&typeof c==`object`&&(c=c.import??c.default),typeof c==`string`?l(o,c):null}function Hi(e,t,n,i){if(n.startsWith(`.`))return!1;let a=Vi(e,t,n);if(!a)return!1;let o;try{o=r(a,`utf8`)}catch{return!1}if(RegExp(`\\bexport\\s+(?:async\\s+)?(?:const|let|var|function\\*?|class)\\s+${i}\\b`).test(o)||RegExp(`\\b(?:module\\.)?exports\\.${i}\\s*=|Object\\.defineProperty\\(\\s*(?:module\\.)?exports\\s*,\\s*["']${i}["']|\\bget\\s+${i}\\s*\\(`).test(o))return!0;for(let e of o.matchAll(/\bexport\s*\{([^}]*)\}/g))for(let t of e[1].split(`,`))if(t.trim().split(/\s+as\s+/).pop()===i)return!0;return!1}function Ui(e,n){let r=L(e,n,[zi]);if(!r)return[];let i=t(l(e,`src`))?`src`:`.`,a=h(process.execPath,[r,`lint`,`--only=correctness/noUnresolvedImports`,`--reporter=json`,`--max-diagnostics=none`,`--colors=off`,i],{cwd:e,encoding:`utf8`,maxBuffer:64*1024*1024,windowsHide:!0}),o=null;try{o=JSON.parse(a.stdout??``).diagnostics}catch{o=null}if(!Array.isArray(o))return[[`missing-export:unreadable`,`Biome's report could not be read: ${String(a.stderr||a.stdout||``).slice(0,200)}`]];let s=new Map;for(let t of o){let r=String(t.message??``);if(!r.includes(`has no export named`))continue;let i=r.match(/^The (?:path|module) (\S+) has no export named (\w+)/);if(!i){s.set(`unreadable`,[`missing-export:unreadable`,`Biome reported a missing export in a form this check cannot read: ${r.slice(0,200)}`]);continue}let[,a,o]=i;if(Object.hasOwn(li,a)&&li[a].includes(o)||Hi(e,n,a,o))continue;let c=P(f(e,p(e,String(t.location?.path)))),l=Bi(t.location??{},e,c),u=l?`${c}:${l}`:c,d=`missing-export:${c}`,m=`${u} imports ${o} from ${a}, which does not export it. Import the name the module exports (a default export is imported without braces).`;s.set(`${d}\0${m}`,[d,m])}return[...s.values()]}function Wi(e){let t=l(e,`node_modules`,`@webority`,`ui-react`);try{let e=JSON.parse(r(l(t,`package.json`),`utf8`)),n=r(l(t,typeof e.module==`string`?e.module:typeof e.main==`string`?e.main:`dist/index.js`),`utf8`),i=new Set([...n.matchAll(/App[A-Z][A-Za-z0-9]*/g)].map(e=>e[0]));if(i.size>0)return i}catch{}return new Set(ui)}function Gi(e){return i(e,{withFileTypes:!0}).flatMap(t=>t.isDirectory()?Gi(l(e,t.name)):[l(e,t.name)])}function Ki(e){let n=l(e,`src`,`components`);if(!t(n))return[];let r=Wi(e),i=[];for(let t of Gi(n)){let n=o(t).split(`.`)[0];if(r.has(n)){let r=P(f(e,t));i.push([`catalogue-copy:${r}`,`${r} is named like the @webority/ui-react export ${n}. bootstrap-ui.md: use the catalogue component, never a local copy.`])}}return i}var qi=/gradle\.startParameter\.taskNames[^\n]*["']release["']/,Ji=/throw\s+new\s+GradleException\s*\(/,Yi=/^\s*edgeToEdgeEnabled\s*=\s*false\s*$/m;function Xi(e){let n=[],i=l(e,`android`,`app`,`build.gradle`);if(t(i)){let e=r(i,`utf8`).replace(/\/\*[\s\S]*?\*\//g,``).replace(/^\s*\/\/.*$/gm,``);(!qi.test(e)||!Ji.test(e))&&n.push([`android-release-signing`,`android/app/build.gradle has no release signing guard. react-native-toolchain.md: when a requested task name contains "release", throw a GradleException that names each missing signing setting, and never sign a release with the debug key.`])}let a=l(e,`android`,`gradle.properties`);return t(a)&&Yi.test(r(a,`utf8`))&&n.push([`android-edge-to-edge`,`android/gradle.properties sets edgeToEdgeEnabled=false. react-native-toolchain.md: set edgeToEdgeEnabled=true.`]),n}function Zi(e,t,n){let i=[],a=L(e,t,[`pnpm-lock.yaml`]),o=a?F(l(s(a),`package.json`)):null,c=n.engines?.node??o?.engines?.node??null;c===null?i.push([`engines-node-floor:package.json`,`package.json has no engines.node. react.md: engines.node is "${ai}", with engineStrict: true.`]):String(c).trim().replace(/\s+/g,` `)!==`>=24.15 <25`&&i.push([`engines-node-floor:package.json`,`engines.node is "${c}". react.md: it is "${ai}"; the floor is the one jsdom needs, and the ceiling holds one Node major.`]);let u=L(e,t,[`.nvmrc`]);if(!u)i.push([`engines-node-floor:.nvmrc`,`No .nvmrc in this folder or above it. react.md: commit one holding 24.`]);else{let e=r(u,`utf8`).trim();e!==`24`&&i.push([`engines-node-floor:.nvmrc`,`.nvmrc holds "${e}". react.md: it holds 24.`])}return i}var Qi=new Set([`.js`,`.jsx`,`.mjs`,`.cjs`,`.ts`,`.tsx`]);function $i(e,n){let i=l(e,`src`);if(!t(i))return[];let a=[];for(let t of Gi(i)){if(!Qi.has(c(t).toLowerCase())||Ae(P(f(n,t)),n))continue;let i=r(t,`utf8`).split(`
80
80
  `).map(e=>/^\s*(?:\/\/|\/\*|\*)/.test(e)?``:e).join(`
81
- `),o=P(f(e,t));for(let[e,t,n,r]of Ur)t.test(i)&&a.push([`${e}:${o}`,`${o} ${n}. ${r}.`])}return a}var Li=`.husky/pre-commit`;function Ri(e){if(t(l(e,`.github/workflows/production.yml`)))return[];let n=l(e,Li),i=t(n)?r(n,`utf8`).replace(/\r\n/g,`
82
- `):null;return i===Le?[]:[[`hook:drift`,`${Li} ${i===null?`is missing`:`differs from the shared hook`}. Run pnpm exec webority-repo-checks --sync-hook from the git root; repo-only steps go in .husky/pre-commit.local.`]]}function zi(e,n=null){let r=n?new Set(n.map(t=>li(e,t))):null,i=[],a=(e,t)=>{for(let[n,r]of t){let t=n.split(`:`)[0];i.push({pkg:e,id:n,message:r,...Yr(t)?{}:{warning:!0}})}};(!r||r.has(`.`))&&a(`.`,Ri(e));for(let n of I(e,[`package-lock.json`,`yarn.lock`])){if(!t(l(e,n)))continue;let i=P(s(n))||`.`;r&&!r.has(i)||a(i,[[`pnpm:${o(n)}`,`${o(n)} is committed. react.md: pnpm only; seed pnpm-lock.yaml with pnpm import, then delete it.`]])}let c=new Set(I(e,[`package.json`]).map(t=>li(e,l(e,s(t)))).filter(e=>!/(^|\/)fixtures\//.test(e)));for(let n of r??[])t(l(e,n,`package.json`))&&c.add(n);for(let t of c){if(r&&!r.has(t))continue;let n=l(e,t),o=F(l(n,`package.json`)),s=fi(o);if(!s)continue;let c=yi(n,e).filter(([e])=>!i.some(n=>n.pkg===t&&n.id===e));a(t,[...gi(o,s,vi(n,e,{...o.dependencies,...o.devDependencies})),...c,...xi(n,e,s),...s===`demo`?[]:Ei(n,e),...Pi(n,e,o),...s===`mobile`?[...Ni(n),...Cr(n),...Or(n)]:[],...s===`mobile`&&!t.startsWith(`samples/`)?gr(n):[],...s===`web`?[...ki(n),...Ii(n,e),...jr(n),...ci(n,e)]:[],...Be(n,L(n,e,[Si]))])}return i}var Bi=/(?:\bfrom\s*|\brequire\(\s*)["'](?:react-native|@webority\/mobile-ui)(?:\/[^"']*)?["']/,Vi=/(?:\bfrom\s*|\brequire\(\s*)["'](?:react-native|@webority\/mobile-ui|@webority\/ui-react)(?:\/[^"']*)?["']/,Hi=`A list item needs a Canvas key from its record (data-canvas on web, testID on phone), never its index. canvas-kit ids proposes them.`,Ui=`A Canvas key names one element: give each part its own key, or a key from its record inside a list.`,Wi=/<([A-Za-z][\w$.:-]*)/g,Gi=/\{\s*\.\.\./y,Ki=new Set([`Fragment`,`React.Fragment`]),qi=/\.(?:Screen|Group)$/,Ji=/^\s*(?:\([^)]*\)|[\w$]+)\s*=>\s*\(\s*\{/;function Yi(e){return Bi.test(e)}function Xi(e,{phone:t}){if(!Vi.test(e))return[];let n=t?Ie.phone:Ie.web,r=RegExp(`(?<![\\w-])${n}\\s*=`),i=RegExp(`(?<![\\w-])${n}\\s*=\\s*(["'])`),a=Zi(e),o=e.split(`
83
- `),s=na(e),c=[],l=(e,t,n)=>{let r=ra(s,e);c.push({rule:t,line:r,text:(o[r-1]??``).trim().slice(0,160),hint:n})},u=$i(a,r);for(let e of a.matchAll(/\.map\(/g)){let t=e.index+e[0].length-1,n=ea(a,t),i=R(a,t+1);for(;i&&i.index<n&&Ki.has(i.name);)i=R(a,i.nameEnd);if(!i||i.index>=n||qi.test(i.name)||Ji.test(a.slice(t+1,i.index)))continue;let o=ta(a,i.nameEnd);!o.spread&&!r.test(o.top)&&!u.has(i.name)&&l(i.index,`missing-canvas-key`,Hi)}let d=new Map,f=R(a,0);for(;f;){let t=ta(a,f.nameEnd),n=i.exec(t.top);if(n){let r=n[1],i=n.index+n[0].length,a=t.top.indexOf(r,i);if(a!==-1){let n=e.slice(t.from+i,t.from+a),r=d.get(n)??[];r.push(f.index),d.set(n,r)}}f=R(a,f.nameEnd)}for(let e of d.values())for(let t of e.slice(1))l(t,`repeated-canvas-key`,Ui);return c.sort((e,t)=>e.line-t.line||e.rule.localeCompare(t.rule)),c}function Zi(e){let t=[],n=e.length,r=0;for(;r<n;){let i=e[r],a=e[r+1];if(i===`/`&&a===`/`){for(;r<n&&e[r]!==`
81
+ `),o=P(f(e,t));for(let[e,t,n,r]of oi)t.test(i)&&a.push([`${e}:${o}`,`${o} ${n}. ${r}.`])}return a}var ea=`.husky/pre-commit`;function ta(e){if(t(l(e,`.github/workflows/production.yml`)))return[];let n=l(e,ea),i=t(n)?r(n,`utf8`).replace(/\r\n/g,`
82
+ `):null;return i===Re?[]:[[`hook:drift`,`${ea} ${i===null?`is missing`:`differs from the shared hook`}. Run pnpm exec webority-repo-checks --sync-hook from the git root; repo-only steps go in .husky/pre-commit.local.`]]}function na(e,n=null){let r=n?new Set(n.map(t=>Ei(e,t))):null,i=[],a=(e,t)=>{for(let[n,r]of t){let t=n.split(`:`)[0];i.push({pkg:e,id:n,message:r,...fi(t)?{}:{warning:!0}})}};(!r||r.has(`.`))&&a(`.`,ta(e));for(let n of I(e,[`package-lock.json`,`yarn.lock`])){if(!t(l(e,n)))continue;let i=P(s(n))||`.`;r&&!r.has(i)||a(i,[[`pnpm:${o(n)}`,`${o(n)} is committed. react.md: pnpm only; seed pnpm-lock.yaml with pnpm import, then delete it.`]])}let c=new Set(I(e,[`package.json`]).map(t=>Ei(e,l(e,s(t)))).filter(e=>!/(^|\/)fixtures\//.test(e)));for(let n of r??[])t(l(e,n,`package.json`))&&c.add(n);for(let t of c){if(r&&!r.has(t))continue;let n=l(e,t),o=F(l(n,`package.json`)),s=ki(o);if(!s)continue;let c=Ii(n,e).filter(([e])=>!i.some(n=>n.pkg===t&&n.id===e));a(t,[...Ni(o,s,Fi(n,e,{...o.dependencies,...o.devDependencies})),...c,...Ri(n,e,s),...s===`demo`?[]:Ui(n,e),...Zi(n,e,o),...s===`mobile`?[...Xi(n),...Vr(n),...Kr(n)]:[],...s===`mobile`&&!t.startsWith(`samples/`)?[...Pr(n),...it(n)]:[],...s===`web`?[...Ki(n),...$i(n,e),...Yr(n),...Ti(n,e)]:[],...Ve(n,L(n,e,[zi]))])}return i}var ra=/(?:\bfrom\s*|\brequire\(\s*)["'](?:react-native|@webority\/mobile-ui)(?:\/[^"']*)?["']/,ia=/(?:\bfrom\s*|\brequire\(\s*)["'](?:react-native|@webority\/mobile-ui|@webority\/ui-react)(?:\/[^"']*)?["']/,aa=`A list item needs a Canvas key from its record (data-canvas on web, testID on phone), never its index. canvas-kit ids proposes them.`,oa=`A Canvas key names one element: give each part its own key, or a key from its record inside a list.`,sa=/<([A-Za-z][\w$.:-]*)/g,ca=/\{\s*\.\.\./y,la=new Set([`Fragment`,`React.Fragment`]),ua=/\.(?:Screen|Group)$/,da=/^\s*(?:\([^)]*\)|[\w$]+)\s*=>\s*\(\s*\{/;function fa(e){return ra.test(e)}function pa(e,{phone:t}){if(!ia.test(e))return[];let n=t?Le.phone:Le.web,r=RegExp(`(?<![\\w-])${n}\\s*=`),i=RegExp(`(?<![\\w-])${n}\\s*=\\s*(["'])`),a=ma(e),o=e.split(`
83
+ `),s=ya(e),c=[],l=(e,t,n)=>{let r=ba(s,e);c.push({rule:t,line:r,text:(o[r-1]??``).trim().slice(0,160),hint:n})},u=ga(a,r);for(let e of a.matchAll(/\.map\(/g)){let t=e.index+e[0].length-1,n=_a(a,t),i=R(a,t+1);for(;i&&i.index<n&&la.has(i.name);)i=R(a,i.nameEnd);if(!i||i.index>=n||ua.test(i.name)||da.test(a.slice(t+1,i.index)))continue;let o=va(a,i.nameEnd);!o.spread&&!r.test(o.top)&&!u.has(i.name)&&l(i.index,`missing-canvas-key`,aa)}let d=new Map,f=R(a,0);for(;f;){let t=va(a,f.nameEnd),n=i.exec(t.top);if(n){let r=n[1],i=n.index+n[0].length,a=t.top.indexOf(r,i);if(a!==-1){let n=e.slice(t.from+i,t.from+a),r=d.get(n)??[];r.push(f.index),d.set(n,r)}}f=R(a,f.nameEnd)}for(let e of d.values())for(let t of e.slice(1))l(t,`repeated-canvas-key`,oa);return c.sort((e,t)=>e.line-t.line||e.rule.localeCompare(t.rule)),c}function ma(e){let t=[],n=e.length,r=0;for(;r<n;){let i=e[r],a=e[r+1];if(i===`/`&&a===`/`){for(;r<n&&e[r]!==`
84
84
  `;)t.push(` `),r++;continue}if(i===`/`&&a===`*`){for(t.push(` `,` `),r+=2;r<n&&!(e[r]===`*`&&e[r+1]===`/`);)t.push(e[r]===`
85
85
  `?`
86
86
  `:` `),r++;r<n&&(t.push(` `,` `),r+=2);continue}if(i===`'`||i===`"`){for(t.push(i),r++;r<n&&e[r]!==i&&e[r]!==`
@@ -88,21 +88,21 @@ fi
88
88
  `?(t.push(` `,` `),r+=2):(t.push(` `),r++);r<n&&e[r]===i&&(t.push(i),r++);continue}if(i==="`"){for(t.push(i),r++;r<n&&e[r]!=="`";)e[r]===`\\`&&r+1<n&&e[r+1]!==`
89
89
  `?(t.push(` `,` `),r+=2):(t.push(e[r]===`
90
90
  `?`
91
- `:` `),r++);r<n&&(t.push("`"),r++);continue}t.push(i),r++}return t.join(``)}var Qi=/\bfunction\s+([A-Z][\w$]*)\s*\(|\bconst\s+([A-Z][\w$]*)\s*=\s*(?:memo\(\s*|forwardRef\(\s*)?(?:\([^)]*\)|[\w$]+)\s*=>/g;function $i(e,t){let n=new Set;for(let r of e.matchAll(Qi)){let i=R(e,r.index+r[0].length);for(;i&&Ki.has(i.name);)i=R(e,i.nameEnd);if(!i)continue;let a=ta(e,i.nameEnd);(a.spread||t.test(a.top))&&n.add(r[1]??r[2])}return n}function ea(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`(`)n++;else if(e[r]===`)`&&(n--,n===0))return r;return e.length}function R(e,t){Wi.lastIndex=t;let n=Wi.exec(e);return n?{index:n.index,name:n[1],nameEnd:n.index+n[0].length}:null}function ta(e,t){let n=0,r=``,i=!1,a=t;for(;a<e.length;a++){let t=e[a];if(n===0&&t===`>`)break;n===0?(t===`{`&&(Gi.lastIndex=a,Gi.test(e)&&(i=!0),n++),r+=t):(r+=` `,t===`{`?n++:t===`}`&&n--)}return{top:r,spread:i,from:t}}function na(e){let t=[0];for(let n=0;n<e.length;n++)e[n]===`
92
- `&&t.push(n+1);return t}function ra(e,t){let n=0,r=e.length-1;for(;n<=r;){let i=n+r>>1;e[i]<=t?n=i+1:r=i-1}return r+1}var ia=[`.js`,`.jsx`,`.ts`,`.tsx`],aa=/\.(?:js|jsx|ts|tsx)$/,oa=/(?:^|\/)index\.[jt]sx?$/,sa=/\.meta\.[jt]sx?$|\.stories\.[jt]sx?$/,ca=/(?:<partial\s+name="([^"]+)"|\bPartial(?:Async)?\(\s*"([^"]+)"|\bLayout\s*=\s*"([^"]+)")/g,la=/(?:ProjectReference\s+Include|Project\s+Path)="([^"]+)"/g,ua=/(?:^|\/)src\/components\/([^/]+)\/[^/]+$/,da=/(?:^|\/)Pages\/Shared\/(_[^/]+)\.cshtml$/,fa=/(?:^|\/)[^/]+\.Web\.Common\/[^/]+\.csproj$/,pa=/(?:^|\/)_ViewStart\.cshtml$/,ma=/\bLayout\s*=\s*"([^"]+)"/g,ha=/(?:^|\/)_[^/]*Layout\.cshtml$/,ga=/^\s*@\*\s*layering-allow\s+([a-z-]+)\s*(?::\s*(.*?))?\s*\*@\s*$/;function _a(e,n){let i=new Set(n),a=new Map,o=new Map,c=new Map,u=new Map,f=t=>(u.has(t)||u.set(t,w(e,t)),u.get(t)),p=new Map,m=e=>{if(!oa.test(e))return null;if(!p.has(e)){let t=new Map,n=[];for(let r of T(f(e))){if(r.kind!==`export-from`)continue;let a=ya(e,r.specifier,i);if(a!==null)for(let{name:e,local:i}of r.imported)e===`*`&&i===`*`?n.push(a):t.set(i,a)}p.set(e,{named:t,star:n})}return p.get(e)},h=(e,t)=>RegExp(`export\\s+(?:const|let|var|function\\*?|class)\\s+${t}\\b|export\\s*\\{[^}]*\\b${t}\\b`).test(f(e).blanked);for(let e of n)if(!(!aa.test(e)||sa.test(e)))for(let t of T(f(e))){let n=ya(e,t.specifier,i);if(n===null)continue;let r=t.kind===`export-from`?null:m(n);if(!r){(t.kind!==`export-from`||!oa.test(e))&&z(a,n,e);continue}z(a,n,e);let o=t.imported.filter(({name:e})=>e!==`*`),s=o.length===t.imported.length&&o.length>0?o.map(({name:e})=>r.named.get(e)??r.star.find(t=>h(t,e))):[...r.named.values(),...r.star];for(let t of s)z(a,t??null,e)}for(let t of n){if(!aa.test(t)&&!t.endsWith(`.cshtml`))continue;let n=va(r(l(e,t),`utf8`));for(let e of n.matchAll(ca))z(o,(e[1]??e[2]??e[3]).split(`/`).pop().replace(/\.cshtml$/,``),t)}let g=I(e,[`*.cs`,`*.csproj`,`*.sln`,`*.slnx`]).filter(n=>t(l(e,n)));for(let t of g){let n=r(l(e,t),`utf8`);if(t.endsWith(`.cs`)){for(let e of n.matchAll(ca))z(o,(e[1]??e[2]??e[3]).split(`/`).pop().replace(/\.cshtml$/,``),t);continue}for(let e of n.matchAll(la))z(c,d.normalize(d.join(s(t),e[1].replace(/\\/g,`/`))),t)}let _=new Set(g.filter(e=>e.endsWith(`.csproj`)).map(e=>d.dirname(e))),v=new Map;for(let t of n){if(!pa.test(t))continue;let n=va(r(l(e,t),`utf8`));for(let e of n.matchAll(ma))z(v,Sa(t,_),e[1].split(`/`).pop().replace(/\.cshtml$/,``))}let y=[];for(let e of n){if(!aa.test(e))continue;let t=ua.exec(e);t&&t[1]!==`layout`&&!oa.test(e)&&!sa.test(e)&&xa(y,e,ba(a,e,e))}for(let t of n){let n=da.exec(t);if(!n)continue;let i=Ca(r(l(e,t),`utf8`));i===``&&y.push({rule:`single-use-component`,file:t,line:1,text:`layering-allow needs a reason`,hint:null});let a=ha.test(t)||(v.get(Sa(t,_))?.has(n[1])??!1);i||a||xa(y,t,ba(o,n[1],t))}for(let e of g)e.endsWith(`.csproj`)&&fa.test(e)&&xa(y,e,ba(c,e,e));return y}function va(e){return e.split(`
91
+ `:` `),r++);r<n&&(t.push("`"),r++);continue}t.push(i),r++}return t.join(``)}var ha=/\bfunction\s+([A-Z][\w$]*)\s*\(|\bconst\s+([A-Z][\w$]*)\s*=\s*(?:memo\(\s*|forwardRef\(\s*)?(?:\([^)]*\)|[\w$]+)\s*=>/g;function ga(e,t){let n=new Set;for(let r of e.matchAll(ha)){let i=R(e,r.index+r[0].length);for(;i&&la.has(i.name);)i=R(e,i.nameEnd);if(!i)continue;let a=va(e,i.nameEnd);(a.spread||t.test(a.top))&&n.add(r[1]??r[2])}return n}function _a(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`(`)n++;else if(e[r]===`)`&&(n--,n===0))return r;return e.length}function R(e,t){sa.lastIndex=t;let n=sa.exec(e);return n?{index:n.index,name:n[1],nameEnd:n.index+n[0].length}:null}function va(e,t){let n=0,r=``,i=!1,a=t;for(;a<e.length;a++){let t=e[a];if(n===0&&t===`>`)break;n===0?(t===`{`&&(ca.lastIndex=a,ca.test(e)&&(i=!0),n++),r+=t):(r+=` `,t===`{`?n++:t===`}`&&n--)}return{top:r,spread:i,from:t}}function ya(e){let t=[0];for(let n=0;n<e.length;n++)e[n]===`
92
+ `&&t.push(n+1);return t}function ba(e,t){let n=0,r=e.length-1;for(;n<=r;){let i=n+r>>1;e[i]<=t?n=i+1:r=i-1}return r+1}var xa=[`.js`,`.jsx`,`.ts`,`.tsx`],Sa=/\.(?:js|jsx|ts|tsx)$/,Ca=/(?:^|\/)index\.[jt]sx?$/,wa=/\.meta\.[jt]sx?$|\.stories\.[jt]sx?$/,Ta=/(?:<partial\s+name="([^"]+)"|\bPartial(?:Async)?\(\s*"([^"]+)"|\bLayout\s*=\s*"([^"]+)")/g,Ea=/(?:ProjectReference\s+Include|Project\s+Path)="([^"]+)"/g,Da=/(?:^|\/)src\/components\/([^/]+)\/[^/]+$/,Oa=/(?:^|\/)Pages\/Shared\/(_[^/]+)\.cshtml$/,ka=/(?:^|\/)[^/]+\.Web\.Common\/[^/]+\.csproj$/,Aa=/(?:^|\/)_ViewStart\.cshtml$/,ja=/\bLayout\s*=\s*"([^"]+)"/g,Ma=/(?:^|\/)_[^/]*Layout\.cshtml$/,Na=/^\s*@\*\s*layering-allow\s+([a-z-]+)\s*(?::\s*(.*?))?\s*\*@\s*$/;function Pa(e,n){let i=new Set(n),a=new Map,o=new Map,c=new Map,u=new Map,f=t=>(u.has(t)||u.set(t,C(e,t)),u.get(t)),p=new Map,m=e=>{if(!Ca.test(e))return null;if(!p.has(e)){let t=new Map,n=[];for(let r of w(f(e))){if(r.kind!==`export-from`)continue;let a=Ia(e,r.specifier,i);if(a!==null)for(let{name:e,local:i}of r.imported)e===`*`&&i===`*`?n.push(a):t.set(i,a)}p.set(e,{named:t,star:n})}return p.get(e)},h=(e,t)=>RegExp(`export\\s+(?:const|let|var|function\\*?|class)\\s+${t}\\b|export\\s*\\{[^}]*\\b${t}\\b`).test(f(e).blanked);for(let e of n)if(!(!Sa.test(e)||wa.test(e)))for(let t of w(f(e))){let n=Ia(e,t.specifier,i);if(n===null)continue;let r=t.kind===`export-from`?null:m(n);if(!r){(t.kind!==`export-from`||!Ca.test(e))&&z(a,n,e);continue}z(a,n,e);let o=t.imported.filter(({name:e})=>e!==`*`),s=o.length===t.imported.length&&o.length>0?o.map(({name:e})=>r.named.get(e)??r.star.find(t=>h(t,e))):[...r.named.values(),...r.star];for(let t of s)z(a,t??null,e)}for(let t of n){if(!Sa.test(t)&&!t.endsWith(`.cshtml`))continue;let n=Fa(r(l(e,t),`utf8`));for(let e of n.matchAll(Ta))z(o,(e[1]??e[2]??e[3]).split(`/`).pop().replace(/\.cshtml$/,``),t)}let g=I(e,[`*.cs`,`*.csproj`,`*.sln`,`*.slnx`]).filter(n=>t(l(e,n)));for(let t of g){let n=r(l(e,t),`utf8`);if(t.endsWith(`.cs`)){for(let e of n.matchAll(Ta))z(o,(e[1]??e[2]??e[3]).split(`/`).pop().replace(/\.cshtml$/,``),t);continue}for(let e of n.matchAll(Ea))z(c,d.normalize(d.join(s(t),e[1].replace(/\\/g,`/`))),t)}let _=new Set(g.filter(e=>e.endsWith(`.csproj`)).map(e=>d.dirname(e))),v=new Map;for(let t of n){if(!Aa.test(t))continue;let n=Fa(r(l(e,t),`utf8`));for(let e of n.matchAll(ja))z(v,za(t,_),e[1].split(`/`).pop().replace(/\.cshtml$/,``))}let y=[];for(let e of n){if(!Sa.test(e))continue;let t=Da.exec(e);t&&t[1]!==`layout`&&!Ca.test(e)&&!wa.test(e)&&Ra(y,e,La(a,e,e))}for(let t of n){let n=Oa.exec(t);if(!n)continue;let i=Ba(r(l(e,t),`utf8`));i===``&&y.push({rule:`single-use-component`,file:t,line:1,text:`layering-allow needs a reason`,hint:null});let a=Ma.test(t)||(v.get(za(t,_))?.has(n[1])??!1);i||a||Ra(y,t,La(o,n[1],t))}for(let e of g)e.endsWith(`.csproj`)&&ka.test(e)&&Ra(y,e,La(c,e,e));return y}function Fa(e){return e.split(`
93
93
  `).filter(e=>!/^\s*(?:\/\/|\/\*|\*)/.test(e)).join(`
94
- `)}function ya(e,t,n){let r;if(t.startsWith(`@/`)){let n=e.startsWith(`src/`)?0:e.indexOf(`/src/`)+1;if(n===0&&!e.startsWith(`src/`))return null;r=`${e.slice(0,n)}src/${t.slice(2)}`}else if(t.startsWith(`.`))r=d.normalize(d.join(d.dirname(e),t));else return null;return[r,...ia.map(e=>r+e),...ia.map(e=>d.join(r,`index${e}`))].find(e=>n.has(e))??null}function z(e,t,n){t!==null&&(e.has(t)||e.set(t,new Set),e.get(t).add(n))}function ba(e,t,n){return[...e.get(t)??new Set].filter(e=>e!==n).length}function xa(e,t,n){n>=2||e.push({rule:`single-use-component`,file:t,line:1,text:`used by ${n} other file${n===1?``:`s`}`,hint:`move it next to the page that uses it`})}function Sa(e,t){let n=d.dirname(e);for(;n!==`.`&&!t.has(n);)n=d.dirname(n);return n}function Ca(e){let t=ga.exec(e.split(`
95
- `,1)[0]);return t?.[1]===`single-use-component`?(t[2]??``).trim():null}var wa=`error-summary-title`,Ta=/<app-error-summary(?=[\s/>])/g,Ea=/(?<![\w-])title\s*=\s*(?:"([^"]*)"|'([^']*)')/,Da=/please\s+(fix|correct)|(fix|correct)\s+the\s+following|the\s+following\s+(errors?|problems?|issues?)|there\s+(is|are|was|were)\s+(an?\s+|some\s+)?(errors?|problems?)/i;function Oa(e,t){let n=null;for(let r=t;r<e.length;r+=1){let t=e[r];if(n)t===n&&(n=null);else if(t===`"`||t===`'`)n=t;else if(t===`>`)return r}return e.length}function ka(e){let t=$e(e,`markup`),n=e.split(`
96
- `),r=[];for(let e of t.matchAll(Ta)){let i=Ea.exec(t.slice(e.index,Oa(t,e.index)));if(!i)continue;let a=i[1]??i[2];if(a.includes(`@`)||!Da.test(a))continue;let o=t.slice(0,e.index).split(`
97
- `).length;r.push({rule:wa,line:o,text:(n[o-1]??``).trim().slice(0,160),hint:`drop the title: the library error summary writes the standard heading`})}return r}var Aa=/\.([A-Za-z_][\w-]*)/g;function*ja(e){let t=0;for(let n=0;n<e.length;n+=1){let r=e[n];r===`{`?(yield{text:e.slice(t,n),index:t},t=n+1):(r===`}`||r===`;`)&&(t=n+1)}}function Ma(e,t,n){let r=$e(e,t),i=e.split(`
98
- `),a=[];for(let e of ja(r)){let t=[...e.text.matchAll(Aa)].find(e=>n.has(e[1]));if(!t)continue;let o=r.slice(0,e.index+t.index).split(`
99
- `).length;a.push({rule:`library-class-restyle`,line:o,text:(i[o-1]??``).trim().slice(0,160),hint:`restyles library class .${t[1]}; use a library prop or token, or a product class`})}return a}var Na=JSON.parse(`["wui-accordion","wui-accordion-body","wui-accordion-count","wui-accordion-flat","wui-accordion-icon","wui-accordion-item","wui-accordion-panel","wui-accordion-trigger","wui-action-icon-file","wui-addon","wui-addon-group","wui-addon-group-lg","wui-addon-group-sm","wui-attach-error","wui-attach-progress","wui-banner","wui-banner-body","wui-banner-danger","wui-banner-dismiss","wui-banner-icon","wui-banner-info","wui-banner-neutral","wui-banner-success","wui-banner-warning","wui-bell-body","wui-bell-count","wui-bell-dot","wui-bell-foot","wui-bell-head","wui-bell-icon","wui-bell-item","wui-bell-item-read","wui-bell-item-title","wui-bell-list","wui-bell-markall","wui-bell-menu","wui-bell-state","wui-bell-title","wui-bell-trigger","wui-bell-when","wui-btn-group","wui-btn-group-full","wui-btn-pin-end","wui-btn-pin-icon","wui-btn-roll","wui-btn-roll-ico","wui-btn-roll-ico__next","wui-btn-roll__a","wui-btn-roll__b","wui-btn-shape-pill","wui-btn-shape-sharp","wui-calendar-chip","wui-calendar-chip-time","wui-calendar-chip-title","wui-calendar-event-danger","wui-calendar-event-info","wui-calendar-event-neutral","wui-calendar-event-primary","wui-calendar-event-success","wui-calendar-event-warning","wui-calendar-fallback","wui-calendar-nav","wui-calendar-nav-btn","wui-calendar-stack","wui-calendar-status","wui-calendar-status-text","wui-calendar-surface","wui-calendar-title","wui-calendar-today-btn","wui-calendar-toolbar","wui-calendar-view-btn","wui-calendar-views","wui-carousel","wui-carousel-arrow","wui-carousel-dot","wui-carousel-dots","wui-carousel-pause","wui-carousel-pause-icon","wui-carousel-pause-text","wui-carousel-slide","wui-carousel-stage","wui-carousel-track","wui-cell-end","wui-chart-canvas","wui-chart-card","wui-chart-card-legend-off","wui-chart-card-legend-tool","wui-chart-card-retry","wui-chart-card-tool","wui-chart-legend","wui-chart-legend-item","wui-chart-legend-label","wui-chart-legend-swatch","wui-chart-legend-swatch-line","wui-chart-num","wui-chart-skeleton","wui-chart-state","wui-chart-state-text","wui-chart-surface","wui-chart-table","wui-chart-table-note","wui-chart-table-wrap","wui-chart-tooltip","wui-chart-tooltip-body","wui-chart-tooltip-foot","wui-chart-tooltip-label","wui-chart-tooltip-row","wui-chart-tooltip-swatch","wui-chart-tooltip-swatch-line","wui-chart-tooltip-title","wui-chart-tooltip-value","wui-chat-body","wui-chat-bubble","wui-chat-composer","wui-chat-empty","wui-chat-foot","wui-chat-launcher","wui-chat-panel","wui-chat-question","wui-check","wui-chip-group","wui-chip-group-nowrap","wui-choice-chip-solid","wui-cmd-back","wui-cmd-card","wui-cmd-crumb","wui-cmd-crumbs","wui-cmd-empty","wui-cmd-footer","wui-cmd-group","wui-cmd-group-label","wui-cmd-input","wui-cmd-item","wui-cmd-item-chevron","wui-cmd-item-desc","wui-cmd-item-icon","wui-cmd-item-label","wui-cmd-item-meta","wui-cmd-item-text","wui-cmd-list","wui-cmd-mark","wui-cmd-page","wui-cmd-recents","wui-cmd-search","wui-cmd-search-icon","wui-cmd-spinner","wui-cmd-trail","wui-code-bar","wui-code-block","wui-code-copy","wui-code-copy-icon","wui-code-line","wui-code-pre","wui-code-source","wui-code-t-attr","wui-code-t-comment","wui-code-t-function","wui-code-t-keyword","wui-code-t-literal","wui-code-t-number","wui-code-t-punct","wui-code-t-string","wui-code-t-tag","wui-code-t-type","wui-code-t-variable","wui-code-title","wui-code-view","wui-col-grow","wui-col-hidden","wui-col-resizable","wui-col-resize","wui-col-span-2","wui-col-span-3","wui-col-span-full","wui-cols-2","wui-cols-3","wui-cols-4","wui-column-menu","wui-column-menu-item","wui-column-menu-title","wui-comment--internal","wui-comment--mine","wui-comment-action","wui-comment-actions","wui-comment-attachment","wui-comment-attachment-size","wui-comment-attachments","wui-comment-author","wui-comment-avatar","wui-comment-composer","wui-comment-composer-avatar","wui-comment-composer-inline","wui-comment-confirm","wui-comment-confirm-text","wui-comment-edited","wui-comment-editor","wui-comment-empty","wui-comment-error","wui-comment-form-actions","wui-comment-head","wui-comment-internal-badge","wui-comment-list","wui-comment-main","wui-comment-reactions","wui-comment-replies","wui-comment-reply","wui-comment-row","wui-comment-text","wui-comment-text-deleted","wui-comment-thread","wui-comment-thread--conversation","wui-comment-time","wui-compare-center","wui-compare-code","wui-compare-group","wui-compare-group-row","wui-compare-nowrap","wui-compare-relaxed","wui-compare-scroll","wui-compare-scroll-table","wui-compare-state","wui-compare-state-no","wui-compare-state-partial","wui-compare-state-warn","wui-compare-state-yes","wui-compare-sticky-first","wui-compare-sticky-head","wui-confirm","wui-confirm-actions","wui-confirm-body","wui-confirm-content","wui-confirm-icon","wui-confirm-msg","wui-confirm-plain","wui-confirm-title","wui-consent-banner-accept","wui-consent-banner-actions","wui-consent-banner-category","wui-consent-banner-category-description","wui-consent-banner-description","wui-consent-banner-heading","wui-consent-banner-panel","wui-consent-banner-policy","wui-consent-banner-reject","wui-consent-banner-save","wui-consent-banner-settings","wui-consent-banner-settings-toggle","wui-context-menu-chevron","wui-context-menu-hint","wui-context-menu-panel","wui-context-menu-search","wui-context-menu-sub","wui-context-menu-subpanel","wui-context-menu-tick","wui-control","wui-control-group","wui-control-label","wui-crop-controls","wui-crop-frame","wui-crop-frame--round","wui-crop-handle","wui-crop-handle--ne","wui-crop-handle--nw","wui-crop-handle--se","wui-crop-handle--sw","wui-crop-img","wui-crop-preview","wui-crop-previews","wui-crop-previews--round","wui-crop-stage","wui-crop-toolbtn","wui-crop-tools","wui-crop-zoom","wui-crop-zoombtn","wui-dashboard-cell","wui-dashboard-cell-3","wui-dashboard-cell-4","wui-dashboard-cell-6","wui-dashboard-grid","wui-daterange-main","wui-daterange-pop--presets","wui-daterange-preset","wui-daterange-presets","wui-descs-col-4","wui-descs-emphasis","wui-descs-icon","wui-descs-link","wui-descs-list","wui-descs-span-1","wui-descs-span-10","wui-descs-span-11","wui-descs-span-12","wui-descs-span-2","wui-descs-span-3","wui-descs-span-4","wui-descs-span-5","wui-descs-span-6","wui-descs-span-7","wui-descs-span-8","wui-descs-span-9","wui-descs-summary","wui-detail-pane","wui-drawer","wui-drawer-backdrop","wui-drawer-body","wui-drawer-close","wui-drawer-discard","wui-drawer-discard-text","wui-drawer-discarding","wui-drawer-footer","wui-drawer-grip","wui-drawer-handle","wui-drawer-header","wui-drawer-headtext","wui-drawer-locked","wui-drawer-panel","wui-drawer-subtitle","wui-drawer-title","wui-drawer-title-ic","wui-drop-tray","wui-dropdown-form","wui-dropdown-item-disabled","wui-dropdown-menu-lg","wui-dropdown-menu-md","wui-dropdown-menu-sm","wui-dropdown-trigger","wui-dropdown-trigger-neutral","wui-due-date","wui-due-date-danger","wui-due-date-empty","wui-due-date-warning","wui-empty-illustration","wui-empty-illustration-custom","wui-empty-state-table","wui-error-summary","wui-error-summary-list","wui-error-summary-title","wui-expand-cell","wui-expand-toggle","wui-field-message","wui-file-busy","wui-file-input-button-field","wui-file-tile","wui-file-tile-ext","wui-file-tile-meta","wui-file-tile-name","wui-file-tile-text","wui-file-tiles","wui-file-viewer-actions","wui-file-viewer-audio-art","wui-file-viewer-body","wui-file-viewer-canvas","wui-file-viewer-center","wui-file-viewer-controls","wui-file-viewer-divider","wui-file-viewer-download","wui-file-viewer-end","wui-file-viewer-fullscreen","wui-file-viewer-group","wui-file-viewer-hit","wui-file-viewer-hit-current","wui-file-viewer-image","wui-file-viewer-image-scroll","wui-file-viewer-image-stage","wui-file-viewer-links","wui-file-viewer-menu","wui-file-viewer-menu-tick","wui-file-viewer-name","wui-file-viewer-page","wui-file-viewer-page-input","wui-file-viewer-page-total","wui-file-viewer-pages","wui-file-viewer-panning","wui-file-viewer-player","wui-file-viewer-player-audio","wui-file-viewer-print-frame","wui-file-viewer-row","wui-file-viewer-scroll","wui-file-viewer-search","wui-file-viewer-search-count","wui-file-viewer-search-field","wui-file-viewer-seek","wui-file-viewer-sheet","wui-file-viewer-skeleton","wui-file-viewer-slot","wui-file-viewer-speed","wui-file-viewer-stage","wui-file-viewer-start","wui-file-viewer-status","wui-file-viewer-text","wui-file-viewer-thumb","wui-file-viewer-thumb-frame","wui-file-viewer-thumb-no","wui-file-viewer-thumbs","wui-file-viewer-time","wui-file-viewer-toolbar","wui-file-viewer-video","wui-file-viewer-view-end","wui-file-viewer-volume","wui-file-viewer-zoom","wui-filter-bar","wui-filter-bar--folded","wui-filter-chip-inline","wui-filter-count-desktop","wui-filter-count-phone","wui-filter-form","wui-filter-more","wui-filter-more-head","wui-filter-more-panel","wui-filter-more-trigger","wui-filter-popover","wui-filter-popover-field","wui-filter-popover-foot","wui-filter-popover-grid","wui-filter-popover-head","wui-filter-popover-more","wui-filter-popover-note","wui-filter-popover-panel","wui-filter-popover-title","wui-filter-popover-trigger","wui-flag","wui-float-above","wui-floating-btn","wui-floating-btn--secondary","wui-floating-stack","wui-floating-stack-item","wui-floating-stack-item--primary","wui-floating-stack-item--secondary","wui-force-active","wui-force-focus","wui-force-hover","wui-form-cols-1","wui-form-cols-10","wui-form-cols-11","wui-form-cols-12","wui-form-cols-2","wui-form-cols-3","wui-form-cols-4","wui-form-cols-5","wui-form-cols-6","wui-form-cols-7","wui-form-cols-8","wui-form-cols-9","wui-form-compact","wui-form-inline","wui-form-labels-start","wui-form-row-keep","wui-form-rule-none","wui-form-section","wui-form-section-head","wui-form-section-title","wui-form-side","wui-form-title-display","wui-grid","wui-grid-lg-2","wui-grid-lg-3","wui-grid-lg-4","wui-grid-md-2","wui-grid-md-3","wui-grid-md-4","wui-group-cell","wui-group-count","wui-group-label","wui-group-row","wui-group-toggle","wui-hidden-from-lg","wui-hidden-from-md","wui-hidden-from-sm","wui-hidden-from-xl","wui-hover-card-loading","wui-hover-card-panel","wui-hover-card-trigger","wui-icon","wui-icon-tip","wui-ill-accent","wui-ill-accent-line","wui-ill-card","wui-ill-danger","wui-ill-danger-fill","wui-ill-danger-line","wui-ill-dash","wui-ill-ink","wui-ill-mute","wui-ill-soft","wui-ill-thick","wui-illustration","wui-image-picker","wui-image-picker-avatar","wui-image-picker-buttons","wui-image-picker-buttons-actions","wui-image-picker-buttons-badge","wui-image-picker-buttons-camera","wui-image-picker-buttons-face","wui-image-picker-buttons-img","wui-image-picker-buttons-placeholder","wui-image-picker-field","wui-image-picker-field-inline","wui-image-picker-field-profile","wui-image-picker-hint","wui-image-picker-img","wui-image-picker-logo","wui-image-picker-meta","wui-image-picker-overlay","wui-image-picker-remove","wui-image-picker-ring","wui-image-picker-rounded","wui-image-picker-row","wui-image-picker-shell","wui-image-picker-square","wui-image-picker-subtitle","wui-image-picker-title","wui-inline-edit","wui-inline-edit-display","wui-inline-edit-editor","wui-inline-edit-error","wui-inline-edit-icon","wui-inline-edit-saved","wui-inline-edit-spinner","wui-inline-edit-status","wui-inline-edit-value","wui-input-group","wui-input-leading","wui-input-trailing","wui-input-xl","wui-kanban","wui-kanban-action","wui-kanban-actions","wui-kanban-board","wui-kanban-body","wui-kanban-card","wui-kanban-card-title","wui-kanban-collapse","wui-kanban-column","wui-kanban-count","wui-kanban-dot","wui-kanban-drop-note","wui-kanban-empty","wui-kanban-ghost","wui-kanban-head","wui-kanban-hint","wui-kanban-lock","wui-kanban-more","wui-kanban-summary","wui-kanban-switch","wui-kanban-switch-title","wui-kanban-switcher","wui-kanban-title","wui-kbd","wui-kpi-delta--danger","wui-kpi-delta--neutral","wui-kpi-delta--success","wui-leaving","wui-lightbox","wui-lightbox-bar","wui-lightbox-btn","wui-lightbox-caption","wui-lightbox-count","wui-lightbox-image","wui-lightbox-item","wui-lightbox-nav","wui-lightbox-next","wui-lightbox-overlay","wui-lightbox-prev","wui-lightbox-stage","wui-lightbox-status","wui-lightbox-tools","wui-lightbox-zoomed","wui-link","wui-link--bracket","wui-link--fade","wui-link--glow","wui-link--grow","wui-link--highlight","wui-link--icon","wui-link--lg","wui-link--none","wui-link--shine","wui-link--slide","wui-link--sm","wui-link--static","wui-link--surface-dark","wui-link--underline","wui-link--underline-center","wui-link__ic","wui-link__ic--left","wui-link__ic--right","wui-link__label","wui-list-card-count","wui-list-card-filters","wui-markdown","wui-markdown-source","wui-mention","wui-mention-empty","wui-mention-input","wui-mention-input-text","wui-mention-menu","wui-mention-option","wui-mention-option-description","wui-mention-option-label","wui-mention-option-photo","wui-mention-option-text","wui-meta-list","wui-metric","wui-metric-label","wui-metric-note","wui-metric-strip","wui-metric-strip-cols-3","wui-metric-strip-cols-4","wui-metric-strip-cols-5","wui-metric-strip-sm","wui-metric-tone-danger","wui-metric-tone-info","wui-metric-tone-success","wui-metric-tone-warning","wui-metric-value","wui-modal","wui-modal-back","wui-modal-backdrop-stacked","wui-modal-body","wui-modal-close","wui-modal-dim","wui-modal-eyebrow","wui-modal-footer","wui-modal-fullscreen","wui-modal-header","wui-modal-header-actions","wui-modal-headicon","wui-modal-heading","wui-modal-headtext","wui-modal-loading","wui-modal-shell","wui-modal-skeleton","wui-modal-skeleton--short","wui-modal-stacked","wui-modal-state","wui-modal-state-actions","wui-modal-state-text","wui-modal-state-title","wui-modal-submit-error","wui-modal-subtitle","wui-modal-title","wui-money","wui-ms-custom-error","wui-name-cell","wui-nav-depth-2","wui-nav-depth-3","wui-nav-depth-4","wui-nav-depth-5","wui-nav-depth-6","wui-nav-group-after","wui-nav-group-body","wui-nav-group-caret","wui-nav-group-collapsible","wui-nav-group-folded","wui-nav-group-text","wui-nav-group-toggle","wui-nav-header","wui-nav-list","wui-nav-list-count","wui-nav-list-divider","wui-nav-list-dot","wui-nav-list-icon","wui-nav-list-item","wui-nav-list-label","wui-nav-menu-chevron","wui-nav-menu-item","wui-nav-menu-link","wui-nav-menu-link-desc","wui-nav-menu-link-label","wui-nav-menu-link-text","wui-nav-menu-links","wui-nav-menu-list","wui-nav-menu-panel","wui-nav-menu-toplink","wui-nav-menu-trigger","wui-nav-new","wui-nav-split","wui-nav-split-link","wui-nav-split-toggle","wui-notification-center","wui-notification-center-body","wui-notification-center-count","wui-notification-center-day","wui-notification-center-dot","wui-notification-center-empty","wui-notification-center-foot","wui-notification-center-head","wui-notification-center-icon","wui-notification-center-item","wui-notification-center-item-read","wui-notification-center-item-text","wui-notification-center-item-title","wui-notification-center-items","wui-notification-center-list","wui-notification-center-live","wui-notification-center-markall","wui-notification-center-panel","wui-notification-center-tabs","wui-notification-center-title","wui-notification-center-trigger","wui-notification-center-unread-label","wui-notification-center-when","wui-onboarding","wui-onboarding-bar","wui-onboarding-body","wui-onboarding-card","wui-onboarding-chevron","wui-onboarding-count","wui-onboarding-desc","wui-onboarding-dismiss","wui-onboarding-head","wui-onboarding-label","wui-onboarding-mark","wui-onboarding-restore","wui-onboarding-seg","wui-onboarding-step","wui-onboarding-steps","wui-onboarding-title","wui-onboarding-toggle","wui-opt-avatar","wui-opt-desc","wui-opt-hint","wui-opt-label","wui-opt-name","wui-opt-rich","wui-overflow","wui-overflow-item","wui-overflow-menu","wui-overflow-more","wui-page-header-meta-below","wui-page-header-subtitle-inline","wui-page-title-slot","wui-period-month","wui-period-month-label","wui-period-picker","wui-pin-end","wui-pin-end-edge","wui-pin-start","wui-pin-start-edge","wui-progress-danger","wui-progress-indeterminate","wui-progress-info","wui-progress-label","wui-progress-labelled","wui-progress-neutral","wui-progress-success","wui-progress-warning","wui-pw-inline","wui-radio","wui-radio-group","wui-radio-group-card","wui-radio-group-inline","wui-radio-option-desc","wui-rating","wui-rating-fill","wui-rating-glyphs","wui-rating-input","wui-rating-lg","wui-rating-previewing","wui-rating-sm","wui-rating-star","wui-rating-star-full","wui-rating-star-half","wui-rating-star-preview","wui-rating-stars","wui-rating-value","wui-rb-dialog","wui-reaction","wui-reaction-add","wui-reaction-choice","wui-reaction-count","wui-reaction-mine","wui-reaction-picker","wui-record-pager","wui-record-pager-next","wui-record-pager-position","wui-record-pager-prev","wui-relative-time","wui-remote-drawer","wui-remote-drawer-dialog","wui-resizable","wui-resizable-handle","wui-resizable-panel","wui-rich-text-button","wui-rich-text-content","wui-rich-text-empty","wui-rich-text-glyph","wui-rich-text-glyph-bold","wui-rich-text-glyph-italic","wui-rich-text-group","wui-rich-text-link-apply","wui-rich-text-link-cancel","wui-rich-text-link-error","wui-rich-text-link-input","wui-rich-text-link-remove","wui-rich-text-linkbar","wui-rich-text-prose","wui-rich-text-shell","wui-rich-text-toolbar","wui-rolling-number","wui-rolling-number-char","wui-rolling-number-digit","wui-rolling-number-reel","wui-rolling-number-roll","wui-rolling-number-text","wui-row-active","wui-row-dragging","wui-row-expanded","wui-row-link","wui-row-save-error","wui-score-scale","wui-score-scale__ends","wui-score-scale__item","wui-score-scale__item--selected","wui-scroll","wui-search-collapsible","wui-search-select-xl","wui-search-toggle","wui-section","wui-section-actions","wui-section-call-to-action","wui-section-center","wui-section-eyebrow","wui-section-eyebrow-danger","wui-section-eyebrow-info","wui-section-eyebrow-neutral","wui-section-eyebrow-pill","wui-section-eyebrow-primary","wui-section-eyebrow-success","wui-section-eyebrow-warning","wui-section-faq","wui-section-faq-body","wui-section-feature","wui-section-feature-body","wui-section-feature-icon","wui-section-feature-text","wui-section-feature-title","wui-section-features","wui-section-features-list","wui-section-features-rows","wui-section-head","wui-section-hero","wui-section-inner","wui-section-lead-consent","wui-section-lead-fields","wui-section-lead-form","wui-section-lead-success","wui-section-lead-text","wui-section-logo","wui-section-logo-img","wui-section-logo-text","wui-section-logos","wui-section-logos-list","wui-section-media","wui-section-muted","wui-section-pricing","wui-section-subtitle","wui-section-testimonial","wui-section-testimonial-author","wui-section-testimonial-avatar","wui-section-testimonial-name","wui-section-testimonial-quote","wui-section-testimonial-role","wui-section-testimonial-who","wui-section-testimonials-list","wui-section-title","wui-section-title-body","wui-segmented-borderless","wui-segmented-option-count","wui-select-cell","wui-shell-launcher","wui-shortcut-close","wui-shortcut-group","wui-shortcut-group-title","wui-shortcut-keys","wui-shortcut-legend","wui-shortcut-sheet","wui-shortcut-sheet-below","wui-shortcut-sheet-head","wui-shortcut-sheet-start","wui-shortcut-sheet-title","wui-shortcut-toggle","wui-show-more","wui-show-more-body","wui-show-more-toggle","wui-skeleton-cell","wui-skeleton-lines","wui-skip-link","wui-slider-rail","wui-sort-lead","wui-sortable-active","wui-sortable-body","wui-sortable-dragging","wui-sortable-ghost","wui-sortable-handle","wui-sortable-item","wui-sortable-live","wui-sparkline","wui-spin","wui-spinner","wui-spinner-sm","wui-split-all","wui-split-badge","wui-split-button","wui-split-check","wui-split-chips","wui-split-count","wui-split-empty","wui-split-head","wui-split-head-bulk","wui-split-head-main","wui-split-item","wui-split-item-end","wui-split-item-main","wui-split-item-meta","wui-split-item-title","wui-split-items","wui-split-legend","wui-split-link","wui-split-list","wui-split-menu","wui-split-pane","wui-split-pane-body","wui-split-pane-error","wui-split-pane-head","wui-split-reading","wui-split-skeleton","wui-split-skeleton-meta","wui-split-skeleton-title","wui-split-view","wui-step-done-tone-danger","wui-step-done-tone-info","wui-step-done-tone-primary","wui-step-done-tone-success","wui-step-done-tone-warning","wui-step-size-lg","wui-step-size-sm","wui-step-tile","wui-step-tile-body","wui-step-tile-state","wui-step-tiles","wui-step-tone-danger","wui-step-tone-info","wui-step-tone-primary","wui-step-tone-success","wui-step-tone-warning","wui-stepper-no-connectors","wui-stepper-start","wui-struct-card-filled","wui-struct-card-glyph","wui-struct-card-glyph-on","wui-struct-card-lg","wui-struct-card-no-check","wui-struct-card-sm","wui-struct-card-stacked","wui-tab-label","wui-tabbar","wui-tabbar-badge","wui-tabbar-icon","wui-tabbar-item","wui-tabbar-label","wui-table-compact","wui-table-cozy","wui-table-empty","wui-table-error","wui-table-flush","wui-table-pager","wui-table-pagination-sm","wui-table-pagination-standalone","wui-table-scroll","wui-table-server","wui-table-stack","wui-table-sticky-actions","wui-table-sticky-first","wui-table-striped","wui-table-toolbar","wui-table-toolbar-actions","wui-table-toolbar-all","wui-table-toolbar-bulk","wui-table-toolbar-clear","wui-table-toolbar-count","wui-table-toolbar-filters","wui-table-toolbar-main","wui-text-2xl","wui-text-3xl","wui-text-4xl","wui-text-base","wui-text-lg","wui-text-sm","wui-text-xl","wui-text-xs","wui-theme-switching","wui-theme-toggle","wui-timeline--lg","wui-timeline--sm","wui-timeline--steps","wui-timeline--steps-vertical","wui-timeline-eyebrow","wui-timepicker-col","wui-timepicker-cols","wui-timepicker-error","wui-timepicker-field","wui-timepicker-toggle","wui-toast","wui-toast--anim-jelly","wui-toast--anim-organic","wui-toast--anim-spring","wui-toast--danger","wui-toast--dragging","wui-toast--info","wui-toast--shape-pill","wui-toast--shape-sharp","wui-toast--success","wui-toast--surface-inverse","wui-toast--warning","wui-toast-action","wui-toast-close","wui-toast-container","wui-toast-content","wui-toast-icon","wui-toast-message","wui-toast-more","wui-toast-progress","wui-toast-task","wui-toast-title","wui-toast-track","wui-toast-track-fill","wui-toast-track-pct","wui-tooltip","wui-topsearch","wui-topsearch-all","wui-topsearch-empty","wui-topsearch-group","wui-topsearch-group-label","wui-topsearch-hit","wui-topsearch-hit-icon","wui-topsearch-hit-sub","wui-topsearch-hit-text","wui-topsearch-hit-title","wui-topsearch-open","wui-topsearch-panel","wui-topsearch-results","wui-tour-actions","wui-tour-arrow","wui-tour-back","wui-tour-card","wui-tour-end","wui-tour-end-button","wui-tour-end-mark","wui-tour-end-message","wui-tour-end-title","wui-tour-hint","wui-tour-layer","wui-tour-media","wui-tour-media-toggle","wui-tour-nav","wui-tour-next","wui-tour-position","wui-tour-progress-bar","wui-tour-progress-segment","wui-tour-skip","wui-tour-spot","wui-tour-text","wui-tour-title","wui-tree","wui-tree-badge","wui-tree-check","wui-tree-group","wui-tree-icon","wui-tree-item","wui-tree-label","wui-tree-row","wui-tree-row-error","wui-tree-row-selected","wui-tree-spinner","wui-tree-toggle","wui-truncate","wui-truncate-multi","wui-truncate-text","wui-usermenu-caret","wui-usermenu-head","wui-usermenu-logout","wui-usermenu-menu","wui-usermenu-name","wui-usermenu-role","wui-usermenu-roles","wui-usermenu-roles-label","wui-usermenu-text","wui-usermenu-trigger","wui-usermenu-who","wui-virtual-off","wui-virtual-spacer","wui-whats-new","wui-whats-new-body","wui-whats-new-date","wui-whats-new-dot","wui-whats-new-empty","wui-whats-new-entry","wui-whats-new-entry-title","wui-whats-new-image","wui-whats-new-link","wui-whats-new-list","wui-whats-new-name","wui-whats-new-panel","wui-whats-new-title","wui-whats-new-trigger","wui-whats-new-unread","wui-wizard-topbar","wui-wizard-topbar-close","wui-wizard-topbar-count","wui-wizard-topbar-title"]`),Pa=`raw-bootstrap`,Fa=new Map([[`btn`,`AppButton/<app-button>`],[`card`,`AppCard/<app-card>`],[`modal`,`AppModal/<app-modal>`],[`table`,`AppDataTable/<app-data-table>`],[`badge`,`AppBadge/<app-status-badge>`],[`alert`,`AppAlert/<app-alert>`],[`form-control`,`AppInput/<app-input>`],[`form-select`,`AppSelect/<app-select>`],[`form-check-input`,`AppCheckbox/<app-checkbox>`],[`pagination`,`AppTablePagination/<app-table-pagination>`],[`nav-tabs`,`AppTabs/<app-tabs>`],[`dropdown-menu`,`AppDropdown/<app-dropdown>`],[`offcanvas`,`AppDrawer/<app-drawer>`],[`breadcrumb`,`AppBreadcrumbs/<app-breadcrumbs>`],[`progress`,`AppProgress/<app-progress>`],[`spinner-border`,`AppSpinner/<app-spinner>`],[`accordion`,`AppAccordion/<app-accordion>`]]),Ia=/(?<![\w-])(?:class|className)\s*=\s*/g,La=/(["'`])((?:\\[\s\S]|(?!\1)[^\\])*)\1/g;function Ra(e){let t=``,n=null;for(let r=0;r<e.length;r+=1){let i=e[r],a=e[r+1];if(n)t+=i,i===`\\`&&a!==void 0?(t+=a,r+=1):(i===n||i===`
94
+ `)}function Ia(e,t,n){let r;if(t.startsWith(`@/`)){let n=e.startsWith(`src/`)?0:e.indexOf(`/src/`)+1;if(n===0&&!e.startsWith(`src/`))return null;r=`${e.slice(0,n)}src/${t.slice(2)}`}else if(t.startsWith(`.`))r=d.normalize(d.join(d.dirname(e),t));else return null;return[r,...xa.map(e=>r+e),...xa.map(e=>d.join(r,`index${e}`))].find(e=>n.has(e))??null}function z(e,t,n){t!==null&&(e.has(t)||e.set(t,new Set),e.get(t).add(n))}function La(e,t,n){return[...e.get(t)??new Set].filter(e=>e!==n).length}function Ra(e,t,n){n>=2||e.push({rule:`single-use-component`,file:t,line:1,text:`used by ${n} other file${n===1?``:`s`}`,hint:`move it next to the page that uses it`})}function za(e,t){let n=d.dirname(e);for(;n!==`.`&&!t.has(n);)n=d.dirname(n);return n}function Ba(e){let t=Na.exec(e.split(`
95
+ `,1)[0]);return t?.[1]===`single-use-component`?(t[2]??``).trim():null}var Va=`error-summary-title`,Ha=/<app-error-summary(?=[\s/>])/g,Ua=/(?<![\w-])title\s*=\s*(?:"([^"]*)"|'([^']*)')/,Wa=/please\s+(fix|correct)|(fix|correct)\s+the\s+following|the\s+following\s+(errors?|problems?|issues?)|there\s+(is|are|was|were)\s+(an?\s+|some\s+)?(errors?|problems?)/i;function Ga(e,t){let n=null;for(let r=t;r<e.length;r+=1){let t=e[r];if(n)t===n&&(n=null);else if(t===`"`||t===`'`)n=t;else if(t===`>`)return r}return e.length}function Ka(e){let t=_t(e,`markup`),n=e.split(`
96
+ `),r=[];for(let e of t.matchAll(Ha)){let i=Ua.exec(t.slice(e.index,Ga(t,e.index)));if(!i)continue;let a=i[1]??i[2];if(a.includes(`@`)||!Wa.test(a))continue;let o=t.slice(0,e.index).split(`
97
+ `).length;r.push({rule:Va,line:o,text:(n[o-1]??``).trim().slice(0,160),hint:`drop the title: the library error summary writes the standard heading`})}return r}var qa=/\.([A-Za-z_][\w-]*)/g;function*Ja(e){let t=0;for(let n=0;n<e.length;n+=1){let r=e[n];r===`{`?(yield{text:e.slice(t,n),index:t},t=n+1):(r===`}`||r===`;`)&&(t=n+1)}}function Ya(e,t,n){let r=_t(e,t),i=e.split(`
98
+ `),a=[];for(let e of Ja(r)){let t=[...e.text.matchAll(qa)].find(e=>n.has(e[1]));if(!t)continue;let o=r.slice(0,e.index+t.index).split(`
99
+ `).length;a.push({rule:`library-class-restyle`,line:o,text:(i[o-1]??``).trim().slice(0,160),hint:`restyles library class .${t[1]}; use a library prop or token, or a product class`})}return a}var Xa=JSON.parse(`["wui-accordion","wui-accordion-body","wui-accordion-count","wui-accordion-flat","wui-accordion-icon","wui-accordion-item","wui-accordion-panel","wui-accordion-trigger","wui-action-icon-file","wui-addon","wui-addon-group","wui-addon-group-lg","wui-addon-group-sm","wui-attach-error","wui-attach-progress","wui-banner","wui-banner-body","wui-banner-danger","wui-banner-dismiss","wui-banner-icon","wui-banner-info","wui-banner-neutral","wui-banner-success","wui-banner-warning","wui-bell-body","wui-bell-count","wui-bell-dot","wui-bell-foot","wui-bell-head","wui-bell-icon","wui-bell-item","wui-bell-item-read","wui-bell-item-title","wui-bell-list","wui-bell-markall","wui-bell-menu","wui-bell-state","wui-bell-title","wui-bell-trigger","wui-bell-when","wui-btn-group","wui-btn-group-full","wui-btn-pin-end","wui-btn-pin-icon","wui-btn-roll","wui-btn-roll-ico","wui-btn-roll-ico__next","wui-btn-roll__a","wui-btn-roll__b","wui-btn-shape-pill","wui-btn-shape-sharp","wui-calendar-chip","wui-calendar-chip-time","wui-calendar-chip-title","wui-calendar-event-danger","wui-calendar-event-info","wui-calendar-event-neutral","wui-calendar-event-primary","wui-calendar-event-success","wui-calendar-event-warning","wui-calendar-fallback","wui-calendar-nav","wui-calendar-nav-btn","wui-calendar-stack","wui-calendar-status","wui-calendar-status-text","wui-calendar-surface","wui-calendar-title","wui-calendar-today-btn","wui-calendar-toolbar","wui-calendar-view-btn","wui-calendar-views","wui-carousel","wui-carousel-arrow","wui-carousel-dot","wui-carousel-dots","wui-carousel-pause","wui-carousel-pause-icon","wui-carousel-pause-text","wui-carousel-slide","wui-carousel-stage","wui-carousel-track","wui-cell-end","wui-chart-canvas","wui-chart-card","wui-chart-card-legend-off","wui-chart-card-legend-tool","wui-chart-card-retry","wui-chart-card-tool","wui-chart-legend","wui-chart-legend-item","wui-chart-legend-label","wui-chart-legend-swatch","wui-chart-legend-swatch-line","wui-chart-num","wui-chart-skeleton","wui-chart-state","wui-chart-state-text","wui-chart-surface","wui-chart-table","wui-chart-table-note","wui-chart-table-wrap","wui-chart-tooltip","wui-chart-tooltip-body","wui-chart-tooltip-foot","wui-chart-tooltip-label","wui-chart-tooltip-row","wui-chart-tooltip-swatch","wui-chart-tooltip-swatch-line","wui-chart-tooltip-title","wui-chart-tooltip-value","wui-chat-body","wui-chat-bubble","wui-chat-composer","wui-chat-empty","wui-chat-foot","wui-chat-launcher","wui-chat-panel","wui-chat-question","wui-check","wui-chip-group","wui-chip-group-nowrap","wui-choice-chip-solid","wui-cmd-back","wui-cmd-card","wui-cmd-crumb","wui-cmd-crumbs","wui-cmd-empty","wui-cmd-footer","wui-cmd-group","wui-cmd-group-label","wui-cmd-input","wui-cmd-item","wui-cmd-item-chevron","wui-cmd-item-desc","wui-cmd-item-icon","wui-cmd-item-label","wui-cmd-item-meta","wui-cmd-item-text","wui-cmd-list","wui-cmd-mark","wui-cmd-page","wui-cmd-recents","wui-cmd-search","wui-cmd-search-icon","wui-cmd-spinner","wui-cmd-trail","wui-code-bar","wui-code-block","wui-code-copy","wui-code-copy-icon","wui-code-line","wui-code-pre","wui-code-source","wui-code-t-attr","wui-code-t-comment","wui-code-t-function","wui-code-t-keyword","wui-code-t-literal","wui-code-t-number","wui-code-t-punct","wui-code-t-string","wui-code-t-tag","wui-code-t-type","wui-code-t-variable","wui-code-title","wui-code-view","wui-col-grow","wui-col-hidden","wui-col-resizable","wui-col-resize","wui-col-span-2","wui-col-span-3","wui-col-span-full","wui-cols-2","wui-cols-3","wui-cols-4","wui-column-menu","wui-column-menu-item","wui-column-menu-title","wui-comment--internal","wui-comment--mine","wui-comment-action","wui-comment-actions","wui-comment-attachment","wui-comment-attachment-size","wui-comment-attachments","wui-comment-author","wui-comment-avatar","wui-comment-composer","wui-comment-composer-avatar","wui-comment-composer-inline","wui-comment-confirm","wui-comment-confirm-text","wui-comment-edited","wui-comment-editor","wui-comment-empty","wui-comment-error","wui-comment-form-actions","wui-comment-head","wui-comment-internal-badge","wui-comment-list","wui-comment-main","wui-comment-reactions","wui-comment-replies","wui-comment-reply","wui-comment-row","wui-comment-text","wui-comment-text-deleted","wui-comment-thread","wui-comment-thread--conversation","wui-comment-time","wui-compare-center","wui-compare-code","wui-compare-group","wui-compare-group-row","wui-compare-nowrap","wui-compare-relaxed","wui-compare-scroll","wui-compare-scroll-table","wui-compare-state","wui-compare-state-no","wui-compare-state-partial","wui-compare-state-warn","wui-compare-state-yes","wui-compare-sticky-first","wui-compare-sticky-head","wui-confirm","wui-confirm-actions","wui-confirm-body","wui-confirm-content","wui-confirm-icon","wui-confirm-msg","wui-confirm-plain","wui-confirm-title","wui-consent-banner-accept","wui-consent-banner-actions","wui-consent-banner-category","wui-consent-banner-category-description","wui-consent-banner-description","wui-consent-banner-heading","wui-consent-banner-panel","wui-consent-banner-policy","wui-consent-banner-reject","wui-consent-banner-save","wui-consent-banner-settings","wui-consent-banner-settings-toggle","wui-context-menu-chevron","wui-context-menu-hint","wui-context-menu-panel","wui-context-menu-search","wui-context-menu-sub","wui-context-menu-subpanel","wui-context-menu-tick","wui-control","wui-control-group","wui-control-label","wui-crop-controls","wui-crop-frame","wui-crop-frame--round","wui-crop-handle","wui-crop-handle--ne","wui-crop-handle--nw","wui-crop-handle--se","wui-crop-handle--sw","wui-crop-img","wui-crop-preview","wui-crop-previews","wui-crop-previews--round","wui-crop-stage","wui-crop-toolbtn","wui-crop-tools","wui-crop-zoom","wui-crop-zoombtn","wui-dashboard-cell","wui-dashboard-cell-3","wui-dashboard-cell-4","wui-dashboard-cell-6","wui-dashboard-grid","wui-daterange-main","wui-daterange-pop--presets","wui-daterange-preset","wui-daterange-presets","wui-descs-col-4","wui-descs-emphasis","wui-descs-icon","wui-descs-link","wui-descs-list","wui-descs-span-1","wui-descs-span-10","wui-descs-span-11","wui-descs-span-12","wui-descs-span-2","wui-descs-span-3","wui-descs-span-4","wui-descs-span-5","wui-descs-span-6","wui-descs-span-7","wui-descs-span-8","wui-descs-span-9","wui-descs-summary","wui-detail-pane","wui-drawer","wui-drawer-backdrop","wui-drawer-body","wui-drawer-close","wui-drawer-discard","wui-drawer-discard-text","wui-drawer-discarding","wui-drawer-footer","wui-drawer-grip","wui-drawer-handle","wui-drawer-header","wui-drawer-headtext","wui-drawer-locked","wui-drawer-panel","wui-drawer-subtitle","wui-drawer-title","wui-drawer-title-ic","wui-drop-tray","wui-dropdown-form","wui-dropdown-item-disabled","wui-dropdown-menu-lg","wui-dropdown-menu-md","wui-dropdown-menu-sm","wui-dropdown-trigger","wui-dropdown-trigger-neutral","wui-due-date","wui-due-date-danger","wui-due-date-empty","wui-due-date-warning","wui-empty-illustration","wui-empty-illustration-custom","wui-empty-state-table","wui-error-summary","wui-error-summary-list","wui-error-summary-title","wui-expand-cell","wui-expand-toggle","wui-field-message","wui-file-busy","wui-file-input-button-field","wui-file-tile","wui-file-tile-ext","wui-file-tile-meta","wui-file-tile-name","wui-file-tile-text","wui-file-tiles","wui-file-viewer-actions","wui-file-viewer-audio-art","wui-file-viewer-body","wui-file-viewer-canvas","wui-file-viewer-center","wui-file-viewer-controls","wui-file-viewer-divider","wui-file-viewer-download","wui-file-viewer-end","wui-file-viewer-fullscreen","wui-file-viewer-group","wui-file-viewer-hit","wui-file-viewer-hit-current","wui-file-viewer-image","wui-file-viewer-image-scroll","wui-file-viewer-image-stage","wui-file-viewer-links","wui-file-viewer-menu","wui-file-viewer-menu-tick","wui-file-viewer-name","wui-file-viewer-page","wui-file-viewer-page-input","wui-file-viewer-page-total","wui-file-viewer-pages","wui-file-viewer-panning","wui-file-viewer-player","wui-file-viewer-player-audio","wui-file-viewer-print-frame","wui-file-viewer-row","wui-file-viewer-scroll","wui-file-viewer-search","wui-file-viewer-search-count","wui-file-viewer-search-field","wui-file-viewer-seek","wui-file-viewer-sheet","wui-file-viewer-skeleton","wui-file-viewer-slot","wui-file-viewer-speed","wui-file-viewer-stage","wui-file-viewer-start","wui-file-viewer-status","wui-file-viewer-text","wui-file-viewer-thumb","wui-file-viewer-thumb-frame","wui-file-viewer-thumb-no","wui-file-viewer-thumbs","wui-file-viewer-time","wui-file-viewer-toolbar","wui-file-viewer-video","wui-file-viewer-view-end","wui-file-viewer-volume","wui-file-viewer-zoom","wui-filter-bar","wui-filter-bar--folded","wui-filter-chip-inline","wui-filter-count-desktop","wui-filter-count-phone","wui-filter-form","wui-filter-more","wui-filter-more-head","wui-filter-more-panel","wui-filter-more-trigger","wui-filter-popover","wui-filter-popover-field","wui-filter-popover-foot","wui-filter-popover-grid","wui-filter-popover-head","wui-filter-popover-more","wui-filter-popover-note","wui-filter-popover-panel","wui-filter-popover-title","wui-filter-popover-trigger","wui-flag","wui-float-above","wui-floating-btn","wui-floating-btn--secondary","wui-floating-stack","wui-floating-stack-item","wui-floating-stack-item--primary","wui-floating-stack-item--secondary","wui-force-active","wui-force-focus","wui-force-hover","wui-form-cols-1","wui-form-cols-10","wui-form-cols-11","wui-form-cols-12","wui-form-cols-2","wui-form-cols-3","wui-form-cols-4","wui-form-cols-5","wui-form-cols-6","wui-form-cols-7","wui-form-cols-8","wui-form-cols-9","wui-form-compact","wui-form-inline","wui-form-labels-start","wui-form-row-keep","wui-form-rule-none","wui-form-section","wui-form-section-head","wui-form-section-title","wui-form-side","wui-form-title-display","wui-grid","wui-grid-lg-2","wui-grid-lg-3","wui-grid-lg-4","wui-grid-md-2","wui-grid-md-3","wui-grid-md-4","wui-group-cell","wui-group-count","wui-group-label","wui-group-row","wui-group-toggle","wui-hidden-from-lg","wui-hidden-from-md","wui-hidden-from-sm","wui-hidden-from-xl","wui-hover-card-loading","wui-hover-card-panel","wui-hover-card-trigger","wui-icon","wui-icon-tip","wui-ill-accent","wui-ill-accent-line","wui-ill-card","wui-ill-danger","wui-ill-danger-fill","wui-ill-danger-line","wui-ill-dash","wui-ill-ink","wui-ill-mute","wui-ill-soft","wui-ill-thick","wui-illustration","wui-image-picker","wui-image-picker-avatar","wui-image-picker-buttons","wui-image-picker-buttons-actions","wui-image-picker-buttons-badge","wui-image-picker-buttons-camera","wui-image-picker-buttons-face","wui-image-picker-buttons-img","wui-image-picker-buttons-placeholder","wui-image-picker-field","wui-image-picker-field-inline","wui-image-picker-field-profile","wui-image-picker-hint","wui-image-picker-img","wui-image-picker-logo","wui-image-picker-meta","wui-image-picker-overlay","wui-image-picker-remove","wui-image-picker-ring","wui-image-picker-rounded","wui-image-picker-row","wui-image-picker-shell","wui-image-picker-square","wui-image-picker-subtitle","wui-image-picker-title","wui-inline-edit","wui-inline-edit-display","wui-inline-edit-editor","wui-inline-edit-error","wui-inline-edit-icon","wui-inline-edit-saved","wui-inline-edit-spinner","wui-inline-edit-status","wui-inline-edit-value","wui-input-group","wui-input-leading","wui-input-trailing","wui-input-xl","wui-kanban","wui-kanban-action","wui-kanban-actions","wui-kanban-board","wui-kanban-body","wui-kanban-card","wui-kanban-card-title","wui-kanban-collapse","wui-kanban-column","wui-kanban-count","wui-kanban-dot","wui-kanban-drop-note","wui-kanban-empty","wui-kanban-ghost","wui-kanban-head","wui-kanban-hint","wui-kanban-lock","wui-kanban-more","wui-kanban-summary","wui-kanban-switch","wui-kanban-switch-title","wui-kanban-switcher","wui-kanban-title","wui-kbd","wui-kpi-delta--danger","wui-kpi-delta--neutral","wui-kpi-delta--success","wui-leaving","wui-lightbox","wui-lightbox-bar","wui-lightbox-btn","wui-lightbox-caption","wui-lightbox-count","wui-lightbox-image","wui-lightbox-item","wui-lightbox-nav","wui-lightbox-next","wui-lightbox-overlay","wui-lightbox-prev","wui-lightbox-stage","wui-lightbox-status","wui-lightbox-tools","wui-lightbox-zoomed","wui-link","wui-link--bracket","wui-link--fade","wui-link--glow","wui-link--grow","wui-link--highlight","wui-link--icon","wui-link--lg","wui-link--none","wui-link--shine","wui-link--slide","wui-link--sm","wui-link--static","wui-link--surface-dark","wui-link--underline","wui-link--underline-center","wui-link__ic","wui-link__ic--left","wui-link__ic--right","wui-link__label","wui-list-card-count","wui-list-card-filters","wui-markdown","wui-markdown-source","wui-mention","wui-mention-empty","wui-mention-input","wui-mention-input-text","wui-mention-menu","wui-mention-option","wui-mention-option-description","wui-mention-option-label","wui-mention-option-photo","wui-mention-option-text","wui-meta-list","wui-metric","wui-metric-label","wui-metric-note","wui-metric-strip","wui-metric-strip-cols-3","wui-metric-strip-cols-4","wui-metric-strip-cols-5","wui-metric-strip-sm","wui-metric-tone-danger","wui-metric-tone-info","wui-metric-tone-success","wui-metric-tone-warning","wui-metric-value","wui-modal","wui-modal-back","wui-modal-backdrop-stacked","wui-modal-body","wui-modal-close","wui-modal-dim","wui-modal-eyebrow","wui-modal-footer","wui-modal-fullscreen","wui-modal-header","wui-modal-header-actions","wui-modal-headicon","wui-modal-heading","wui-modal-headtext","wui-modal-loading","wui-modal-shell","wui-modal-skeleton","wui-modal-skeleton--short","wui-modal-stacked","wui-modal-state","wui-modal-state-actions","wui-modal-state-text","wui-modal-state-title","wui-modal-submit-error","wui-modal-subtitle","wui-modal-title","wui-money","wui-ms-custom-error","wui-name-cell","wui-nav-depth-2","wui-nav-depth-3","wui-nav-depth-4","wui-nav-depth-5","wui-nav-depth-6","wui-nav-group-after","wui-nav-group-body","wui-nav-group-caret","wui-nav-group-collapsible","wui-nav-group-folded","wui-nav-group-text","wui-nav-group-toggle","wui-nav-header","wui-nav-list","wui-nav-list-count","wui-nav-list-divider","wui-nav-list-dot","wui-nav-list-icon","wui-nav-list-item","wui-nav-list-label","wui-nav-menu-chevron","wui-nav-menu-item","wui-nav-menu-link","wui-nav-menu-link-desc","wui-nav-menu-link-label","wui-nav-menu-link-text","wui-nav-menu-links","wui-nav-menu-list","wui-nav-menu-panel","wui-nav-menu-toplink","wui-nav-menu-trigger","wui-nav-new","wui-nav-split","wui-nav-split-link","wui-nav-split-toggle","wui-notification-center","wui-notification-center-body","wui-notification-center-count","wui-notification-center-day","wui-notification-center-dot","wui-notification-center-empty","wui-notification-center-foot","wui-notification-center-head","wui-notification-center-icon","wui-notification-center-item","wui-notification-center-item-read","wui-notification-center-item-text","wui-notification-center-item-title","wui-notification-center-items","wui-notification-center-list","wui-notification-center-live","wui-notification-center-markall","wui-notification-center-panel","wui-notification-center-tabs","wui-notification-center-title","wui-notification-center-trigger","wui-notification-center-unread-label","wui-notification-center-when","wui-onboarding","wui-onboarding-bar","wui-onboarding-body","wui-onboarding-card","wui-onboarding-chevron","wui-onboarding-count","wui-onboarding-desc","wui-onboarding-dismiss","wui-onboarding-head","wui-onboarding-label","wui-onboarding-mark","wui-onboarding-restore","wui-onboarding-seg","wui-onboarding-step","wui-onboarding-steps","wui-onboarding-title","wui-onboarding-toggle","wui-opt-avatar","wui-opt-desc","wui-opt-hint","wui-opt-label","wui-opt-name","wui-opt-rich","wui-overflow","wui-overflow-item","wui-overflow-menu","wui-overflow-more","wui-page-header-meta-below","wui-page-header-subtitle-inline","wui-page-title-slot","wui-period-month","wui-period-month-label","wui-period-picker","wui-pin-end","wui-pin-end-edge","wui-pin-start","wui-pin-start-edge","wui-progress-danger","wui-progress-indeterminate","wui-progress-info","wui-progress-label","wui-progress-labelled","wui-progress-neutral","wui-progress-success","wui-progress-warning","wui-pw-inline","wui-radio","wui-radio-group","wui-radio-group-card","wui-radio-group-inline","wui-radio-option-desc","wui-rating","wui-rating-fill","wui-rating-glyphs","wui-rating-input","wui-rating-lg","wui-rating-previewing","wui-rating-sm","wui-rating-star","wui-rating-star-full","wui-rating-star-half","wui-rating-star-preview","wui-rating-stars","wui-rating-value","wui-rb-dialog","wui-reaction","wui-reaction-add","wui-reaction-choice","wui-reaction-count","wui-reaction-mine","wui-reaction-picker","wui-record-pager","wui-record-pager-next","wui-record-pager-position","wui-record-pager-prev","wui-relative-time","wui-remote-drawer","wui-remote-drawer-dialog","wui-resizable","wui-resizable-handle","wui-resizable-panel","wui-rich-text-button","wui-rich-text-content","wui-rich-text-empty","wui-rich-text-glyph","wui-rich-text-glyph-bold","wui-rich-text-glyph-italic","wui-rich-text-group","wui-rich-text-link-apply","wui-rich-text-link-cancel","wui-rich-text-link-error","wui-rich-text-link-input","wui-rich-text-link-remove","wui-rich-text-linkbar","wui-rich-text-prose","wui-rich-text-shell","wui-rich-text-toolbar","wui-rolling-number","wui-rolling-number-char","wui-rolling-number-digit","wui-rolling-number-reel","wui-rolling-number-roll","wui-rolling-number-text","wui-row-active","wui-row-dragging","wui-row-expanded","wui-row-link","wui-row-save-error","wui-score-scale","wui-score-scale__ends","wui-score-scale__item","wui-score-scale__item--selected","wui-scroll","wui-search-collapsible","wui-search-select-xl","wui-search-toggle","wui-section","wui-section-actions","wui-section-call-to-action","wui-section-center","wui-section-eyebrow","wui-section-eyebrow-danger","wui-section-eyebrow-info","wui-section-eyebrow-neutral","wui-section-eyebrow-pill","wui-section-eyebrow-primary","wui-section-eyebrow-success","wui-section-eyebrow-warning","wui-section-faq","wui-section-faq-body","wui-section-feature","wui-section-feature-body","wui-section-feature-icon","wui-section-feature-text","wui-section-feature-title","wui-section-features","wui-section-features-list","wui-section-features-rows","wui-section-head","wui-section-hero","wui-section-inner","wui-section-lead-consent","wui-section-lead-fields","wui-section-lead-form","wui-section-lead-success","wui-section-lead-text","wui-section-logo","wui-section-logo-img","wui-section-logo-text","wui-section-logos","wui-section-logos-list","wui-section-media","wui-section-muted","wui-section-pricing","wui-section-subtitle","wui-section-testimonial","wui-section-testimonial-author","wui-section-testimonial-avatar","wui-section-testimonial-name","wui-section-testimonial-quote","wui-section-testimonial-role","wui-section-testimonial-who","wui-section-testimonials-list","wui-section-title","wui-section-title-body","wui-segmented-borderless","wui-segmented-option-count","wui-select-cell","wui-shell-launcher","wui-shortcut-close","wui-shortcut-group","wui-shortcut-group-title","wui-shortcut-keys","wui-shortcut-legend","wui-shortcut-sheet","wui-shortcut-sheet-below","wui-shortcut-sheet-head","wui-shortcut-sheet-start","wui-shortcut-sheet-title","wui-shortcut-toggle","wui-show-more","wui-show-more-body","wui-show-more-toggle","wui-skeleton-cell","wui-skeleton-lines","wui-skip-link","wui-slider-rail","wui-sort-lead","wui-sortable-active","wui-sortable-body","wui-sortable-dragging","wui-sortable-ghost","wui-sortable-handle","wui-sortable-item","wui-sortable-live","wui-sparkline","wui-spin","wui-spinner","wui-spinner-sm","wui-split-all","wui-split-badge","wui-split-button","wui-split-check","wui-split-chips","wui-split-count","wui-split-empty","wui-split-head","wui-split-head-bulk","wui-split-head-main","wui-split-item","wui-split-item-end","wui-split-item-main","wui-split-item-meta","wui-split-item-title","wui-split-items","wui-split-legend","wui-split-link","wui-split-list","wui-split-menu","wui-split-pane","wui-split-pane-body","wui-split-pane-error","wui-split-pane-head","wui-split-reading","wui-split-skeleton","wui-split-skeleton-meta","wui-split-skeleton-title","wui-split-view","wui-step-done-tone-danger","wui-step-done-tone-info","wui-step-done-tone-primary","wui-step-done-tone-success","wui-step-done-tone-warning","wui-step-size-lg","wui-step-size-sm","wui-step-tile","wui-step-tile-body","wui-step-tile-state","wui-step-tiles","wui-step-tone-danger","wui-step-tone-info","wui-step-tone-primary","wui-step-tone-success","wui-step-tone-warning","wui-stepper-no-connectors","wui-stepper-start","wui-struct-card-filled","wui-struct-card-glyph","wui-struct-card-glyph-on","wui-struct-card-lg","wui-struct-card-no-check","wui-struct-card-sm","wui-struct-card-stacked","wui-tab-label","wui-tabbar","wui-tabbar-badge","wui-tabbar-icon","wui-tabbar-item","wui-tabbar-label","wui-table-compact","wui-table-cozy","wui-table-empty","wui-table-error","wui-table-flush","wui-table-pager","wui-table-pagination-sm","wui-table-pagination-standalone","wui-table-scroll","wui-table-server","wui-table-stack","wui-table-sticky-actions","wui-table-sticky-first","wui-table-striped","wui-table-toolbar","wui-table-toolbar-actions","wui-table-toolbar-all","wui-table-toolbar-bulk","wui-table-toolbar-clear","wui-table-toolbar-count","wui-table-toolbar-filters","wui-table-toolbar-main","wui-text-2xl","wui-text-3xl","wui-text-4xl","wui-text-base","wui-text-lg","wui-text-sm","wui-text-xl","wui-text-xs","wui-theme-switching","wui-theme-toggle","wui-timeline--lg","wui-timeline--sm","wui-timeline--steps","wui-timeline--steps-vertical","wui-timeline-eyebrow","wui-timepicker-col","wui-timepicker-cols","wui-timepicker-error","wui-timepicker-field","wui-timepicker-toggle","wui-toast","wui-toast--anim-jelly","wui-toast--anim-organic","wui-toast--anim-spring","wui-toast--danger","wui-toast--dragging","wui-toast--info","wui-toast--shape-pill","wui-toast--shape-sharp","wui-toast--success","wui-toast--surface-inverse","wui-toast--warning","wui-toast-action","wui-toast-close","wui-toast-container","wui-toast-content","wui-toast-icon","wui-toast-message","wui-toast-more","wui-toast-progress","wui-toast-task","wui-toast-title","wui-toast-track","wui-toast-track-fill","wui-toast-track-pct","wui-tooltip","wui-topsearch","wui-topsearch-all","wui-topsearch-empty","wui-topsearch-group","wui-topsearch-group-label","wui-topsearch-hit","wui-topsearch-hit-icon","wui-topsearch-hit-sub","wui-topsearch-hit-text","wui-topsearch-hit-title","wui-topsearch-open","wui-topsearch-panel","wui-topsearch-results","wui-tour-actions","wui-tour-arrow","wui-tour-back","wui-tour-card","wui-tour-end","wui-tour-end-button","wui-tour-end-mark","wui-tour-end-message","wui-tour-end-title","wui-tour-hint","wui-tour-layer","wui-tour-media","wui-tour-media-toggle","wui-tour-nav","wui-tour-next","wui-tour-position","wui-tour-progress-bar","wui-tour-progress-segment","wui-tour-skip","wui-tour-spot","wui-tour-text","wui-tour-title","wui-tree","wui-tree-badge","wui-tree-check","wui-tree-group","wui-tree-icon","wui-tree-item","wui-tree-label","wui-tree-row","wui-tree-row-error","wui-tree-row-selected","wui-tree-spinner","wui-tree-toggle","wui-truncate","wui-truncate-multi","wui-truncate-text","wui-usermenu-caret","wui-usermenu-head","wui-usermenu-logout","wui-usermenu-menu","wui-usermenu-name","wui-usermenu-role","wui-usermenu-roles","wui-usermenu-roles-label","wui-usermenu-text","wui-usermenu-trigger","wui-usermenu-who","wui-virtual-off","wui-virtual-spacer","wui-whats-new","wui-whats-new-body","wui-whats-new-date","wui-whats-new-dot","wui-whats-new-empty","wui-whats-new-entry","wui-whats-new-entry-title","wui-whats-new-image","wui-whats-new-link","wui-whats-new-list","wui-whats-new-name","wui-whats-new-panel","wui-whats-new-title","wui-whats-new-trigger","wui-whats-new-unread","wui-wizard-topbar","wui-wizard-topbar-close","wui-wizard-topbar-count","wui-wizard-topbar-title"]`),Za=`raw-bootstrap`,Qa=new Map([[`btn`,`AppButton/<app-button>`],[`card`,`AppCard/<app-card>`],[`modal`,`AppModal/<app-modal>`],[`table`,`AppDataTable/<app-data-table>`],[`badge`,`AppBadge/<app-status-badge>`],[`alert`,`AppAlert/<app-alert>`],[`form-control`,`AppInput/<app-input>`],[`form-select`,`AppSelect/<app-select>`],[`form-check-input`,`AppCheckbox/<app-checkbox>`],[`pagination`,`AppTablePagination/<app-table-pagination>`],[`nav-tabs`,`AppTabs/<app-tabs>`],[`dropdown-menu`,`AppDropdown/<app-dropdown>`],[`offcanvas`,`AppDrawer/<app-drawer>`],[`breadcrumb`,`AppBreadcrumbs/<app-breadcrumbs>`],[`progress`,`AppProgress/<app-progress>`],[`spinner-border`,`AppSpinner/<app-spinner>`],[`accordion`,`AppAccordion/<app-accordion>`]]),$a=/(?<![\w-])(?:class|className)\s*=\s*/g,eo=/(["'`])((?:\\[\s\S]|(?!\1)[^\\])*)\1/g;function to(e){let t=``,n=null;for(let r=0;r<e.length;r+=1){let i=e[r],a=e[r+1];if(n)t+=i,i===`\\`&&a!==void 0?(t+=a,r+=1):(i===n||i===`
100
100
  `&&n!=="`")&&(n=null);else if(i===`/`&&a===`/`){let n=e.indexOf(`
101
- `,r),i=n===-1?e.length:n;t+=` `.repeat(i-r),r=i-1}else if(i===`/`&&a===`*`){let n=e.indexOf(`*/`,r+2),i=n===-1?e.length:n+2;t+=e.slice(r,i).replace(/[^\n]/g,` `),r=i-1}else(i===`"`||i===`'`||i==="`")&&(n=i),t+=i}return t}function za(e,t){let n=[],r=e[t];if(r===`"`||r===`'`){let i=e.indexOf(r,t+1);i!==-1&&n.push({base:t+1,content:e.slice(t+1,i)})}else if(r===`{`){let r=0,i=t;for(;i<e.length;i+=1)if(e[i]===`{`)r+=1;else if(e[i]===`}`&&(--r,r===0))break;let a=e.slice(t,i);for(let e of a.matchAll(La))n.push({base:t+e.index+1,content:e[2]})}return n}function Ba(e,t){let n=t===`markup`?$e(e,`markup`):Ra(e),r=[0];for(let e=0;e<n.length;e+=1)n[e]===`
101
+ `,r),i=n===-1?e.length:n;t+=` `.repeat(i-r),r=i-1}else if(i===`/`&&a===`*`){let n=e.indexOf(`*/`,r+2),i=n===-1?e.length:n+2;t+=e.slice(r,i).replace(/[^\n]/g,` `),r=i-1}else(i===`"`||i===`'`||i==="`")&&(n=i),t+=i}return t}function no(e,t){let n=[],r=e[t];if(r===`"`||r===`'`){let i=e.indexOf(r,t+1);i!==-1&&n.push({base:t+1,content:e.slice(t+1,i)})}else if(r===`{`){let r=0,i=t;for(;i<e.length;i+=1)if(e[i]===`{`)r+=1;else if(e[i]===`}`&&(--r,r===0))break;let a=e.slice(t,i);for(let e of a.matchAll(eo))n.push({base:t+e.index+1,content:e[2]})}return n}function ro(e,t){let n=t===`markup`?_t(e,`markup`):to(e),r=[0];for(let e=0;e<n.length;e+=1)n[e]===`
102
102
  `&&r.push(e+1);let i=e.split(`
103
- `),a=e=>{let t=0,n=r.length-1;for(;t<n;){let i=t+n+1>>1;r[i]<=e?t=i:n=i-1}return t},o=[];for(let e of n.matchAll(Ia)){let t=e.index+e[0].length;for(let e of za(n,t))for(let t of e.content.matchAll(/\S+/g)){let n=Fa.get(t[0]);if(!n)continue;let r=a(e.base+t.index);o.push({rule:Pa,line:r+1,text:(i[r]??``).trim().slice(0,160),hint:`use ${n} in place of the raw Bootstrap class "${t[0]}"`})}}return o.sort((e,t)=>e.line-t.line),o}function Va(e,t){if(!/\.(?:jsx|tsx|cshtml)$/i.test(e))return[];let n=t.endsWith(`
103
+ `),a=e=>{let t=0,n=r.length-1;for(;t<n;){let i=t+n+1>>1;r[i]<=e?t=i:n=i-1}return t},o=[];for(let e of n.matchAll($a)){let t=e.index+e[0].length;for(let e of no(n,t))for(let t of e.content.matchAll(/\S+/g)){let n=Qa.get(t[0]);if(!n)continue;let r=a(e.base+t.index);o.push({rule:Za,line:r+1,text:(i[r]??``).trim().slice(0,160),hint:`use ${n} in place of the raw Bootstrap class "${t[0]}"`})}}return o.sort((e,t)=>e.line-t.line),o}function io(e,t){if(!/\.(?:jsx|tsx|cshtml)$/i.test(e))return[];let n=t.endsWith(`
104
104
  `)?t.split(`
105
105
  `).length-1:t.split(`
106
- `).length;return n>800?[{rule:`oversize`,line:1,text:`over 800 lines: split it along its concerns`,hint:null}]:n>600?[{rule:`oversize`,line:1,text:`over 600 lines`,hint:null}]:[]}var Ha=`rename-wrapper`,B=`@webority/ui-react`,Ua=`["']${B}["']`,V=e=>e.replace(/[^\n]/g,` `);function H(e,t,n){let r=e.slice(0,t).split(`
107
- `).length;return{rule:Ha,line:r,text:e.split(`
108
- `)[r-1].trim(),hint:n}}function Wa(e){return e.replace(/\/\*[\s\S]*?\*\//g,V).replace(/\/\/[^\n]*/g,V)}function Ga(e){let t=new Map,n=RegExp(`import\\s+(?:type\\s+)?([\\s\\S]*?)\\s+from\\s*${Ua}`,`g`);for(let r of e.matchAll(n)){let e=r[1],n=e.match(/\{([^}]*)\}/);if(n)for(let e of n[1].split(`,`)){let n=e.trim().replace(/^type\s+/,``).split(/\s+as\s+/);n[0]&&t.set(n[n.length-1],n[0])}let i=e.match(/\*\s*as\s+(\w+)/);i&&t.set(i[1],`*`);let a=e.replace(/\{[^}]*\}/,``).replace(/\*\s*as\s+\w+/,``);for(let e of a.split(`,`)){let n=e.trim();/^\w+$/.test(n)&&t.set(n,`default`)}}return t}function Ka(e){let t=RegExp(`^[ \\t]*export\\s+(?:type\\s+)?(?:\\*(?:\\s+as\\s+\\w+)?|\\{[^}]*\\})\\s*from\\s*${Ua}`,`gm`);return[...e.matchAll(t)].map(t=>H(e,t.index,`Import the name from ${B} where it is used; a file that only re-exports it adds nothing.`))}function qa(e,t){let n=[];if(t.size===0)return n;let r=`Import the name from ${B} where it is used instead of exporting it through this file.`;for(let i of e.matchAll(/^[ \t]*export\s*\{([^}]*)\}(?!\s*from)/gm))i[1].split(`,`).some(e=>t.has(e.trim().replace(/^type\s+/,``).split(/\s+as\s+/)[0]))&&n.push(H(e,i.index,r));for(let i of e.matchAll(/^[ \t]*export\s+default\s+(\w+)\s*;?[ \t]*$/gm))t.has(i[1])&&n.push(H(e,i.index,r));return n}function Ja(e,t,n,r){if(!/\.(jsx|tsx)$/.test(e))return[];let i=Wa(t);if(/\buse[A-Z]\w*\s*[(<]/.test(i)||/\b(if|switch)\s*\(/.test(i)||[...i.matchAll(/\breturn\b/g)].length>1)return[];let a=i.match(/(?:\breturn|=>)\s*\(?\s*<([A-Za-z][\w.]*)/);if(!a)return[];let o=a[1],s=r.get(o);return!s||s===`*`||!n.has(s)||[...i.matchAll(/<([A-Za-z][\w.]*)/g)].length!==1||/[?]|&&|\|\|/.test(i.slice(a.index))?[]:[H(t,a.index,`Import ${s} from ${B} and use it where this component is used instead of a wrapper.`)]}function Ya(e,t){let n=e.split(/[\\/]/).pop();if(!n.startsWith(`_`)||!n.endsWith(`.cshtml`))return[];let r=t.replace(/@\*[\s\S]*?\*@/g,V).replace(/<!--[\s\S]*?-->/g,V).replace(/^[ \t]*@(?:model|using)\b[^\n]*/gm,V),i=r.search(/\S/);if(i<0)return[];let a=r.slice(i).trimEnd(),o=a.match(/^<(app-[a-z0-9-]+)/);return!o||!a.endsWith(`/>`)&&!a.endsWith(`</${o[1]}>`)||(a.match(/<[A-Za-z]/g)||[]).length!==1?[]:[H(t,i,`Render the <${o[1]}> tag directly where the partial is used instead of a partial that only renders it.`)]}function Xa(e,t,n){let r=Ga(t);return[...Ka(t),...qa(t,r),...Ja(e,t,n,r),...Ya(e,t)]}var Za=()=>new Set(Na),Qa=[`*.js`,`*.jsx`,`*.ts`,`*.tsx`,`*.cshtml`];function $a(e){let n=[];for(let i of I(e,[`package.json`])){if(!t(l(e,i)))continue;let a;try{a=JSON.parse(r(l(e,i),`utf8`))}catch{continue}if(fi(a)!==`mobile`)continue;let o=d.dirname(i);n.push(o===`.`?`src/`:`${o}/src/`)}return n}function eo(e,n=null){let i=n?n.map(t=>li(e,t)):null,a=$a(e),o=e=>!i||i.some(t=>t===`.`||e===t||e.startsWith(`${t}/`)),s=I(e,Object.keys(ye).map(e=>`*${e}`)).filter(n=>t(l(e,n))&&!ke(n,e)&&o(n)),u=[],d=Za(),f=Di(e);for(let t of s){let n=c(t).toLowerCase(),i=ye[n],o=r(l(e,t),`utf8`),s=t.startsWith(`packages/`)||t.startsWith(`samples/`),p=()=>s?[]:[...Ba(o,i),...Xa(t,o,f)],m=[];if(i===`scss`||i===`css`||i===`markup`)m=St(o,i),(i===`scss`||i===`css`)&&!s&&m.push(...Ma(o,i,d)),i===`markup`&&m.push(...p(),...s?[]:ka(o),...Va(t,o));else if(i===`script`){let e=!s&&a.some(e=>t.startsWith(e)),r=Jt(o)||e;if(be.includes(n)&&!r)continue;let i=s?[]:Xi(o,{phone:Yi(o)});m=[...Yt(o,{phone:r,colourLiterals:e}),...i],e&&a.some(e=>t===`${e}assets/theme/settings.js`)&&(m=m.filter(e=>e.rule!==`raw-colour`)),(n===`.jsx`||n===`.tsx`)&&m.push(...p(),...Va(t,o))}for(let e of m)u.push({id:`${e.rule}:${t}`,line:e.line,text:e.text,hint:e.hint})}let p=I(e,Qa).filter(n=>t(l(e,n)));for(let t of _a(e,p)){let n=t.file.startsWith(`packages/`)||t.file.startsWith(`samples/`);o(t.file)&&!ke(t.file,e)&&!n&&u.push({id:`${t.rule}:${t.file}`,line:t.line,text:t.text,hint:t.hint})}return u.sort((e,t)=>e.id<t.id?-1:e.id>t.id?1:e.line-t.line)}function to(e){let t={};for(let n of e)t[n.id]=(t[n.id]||0)+1;return t}var U=process.argv.slice(2),no=new Set(U.flatMap((e,t)=>e===`--baseline-accept`||e===`--reason`?[t+1]:[])),W=new Set(U.filter((e,t)=>e.startsWith(`--`)&&!no.has(t))),G=U.filter((e,t)=>!e.startsWith(`--`)&&!no.has(t)),ro=W.has(`--sync-hook`),io=e=>U.includes(e)?U[U.indexOf(e)+1]:void 0,ao=io(`--baseline-accept`),oo=io(`--reason`),so=e=>typeof e==`string`&&e.trim()!==``,K=e=>process.stdout.write(`${e}\n`),q=e=>process.stderr.write(`${e}\n`);W.has(`--json`)&&(console.log=(...e)=>console.error(...e));var co=new Set([`--json`,`--baseline-init`,`--baseline-shrink`,`--baseline-accept`,`--reason`,`--sync-hook`]),lo=[...W].filter(e=>!co.has(e)),uo=W.has(`--baseline-accept`),fo=(uo||W.has(`--reason`))&&!(so(ao)&&so(oo)),po=uo&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||ro);(lo.length||W.has(`--baseline-init`)&&W.has(`--baseline-shrink`)||ro&&(W.size>1||G.length)||fo||po)&&(q(`repo-checks: unknown or conflicting options ${lo.join(` `)}`.trim()),q(`usage: webority-repo-checks [--json] [--baseline-init | --baseline-shrink] [--baseline-accept <folder> --reason <text>] [app folder ...]`),q(` webority-repo-checks --sync-hook`),process.exit(2));var J=di(process.cwd());if(J||(q(`repo-checks: not inside a git repository.`),process.exit(2)),ro){let t=l(J,Li);n(s(t),{recursive:!0}),a(t,Le),e(t,493),K(`repo-checks: wrote ${t}`),process.exit(0)}var mo=zi(J,G.length?G.map(e=>p(process.cwd(),e)):null).sort((e,t)=>e.pkg===t.pkg?0:e.pkg<t.pkg?-1:1),ho=mo.filter(e=>e.warning),go=mo.filter(e=>!e.warning),_o=go.filter(e=>e.id.startsWith(`lint:`)),vo=go.filter(e=>!e.id.startsWith(`lint:`)),yo=eo(J,G.length?G.map(e=>p(process.cwd(),e)):null),Y={findings:vo.map(e=>y(e.pkg,e.id)),counts:to(yo)},bo=new Map(vo.map(e=>[y(e.pkg,e.id),e]));if(W.has(`--baseline-init`)){G.length&&(q(`repo-checks: --baseline-init reads the whole repository; run it without folder arguments.`),process.exit(2)),t(l(J,`.webority/baselines/repo-checks-baseline.json`))&&(q(`repo-checks: ${g} already exists. It only shrinks: fix a new finding, or run --baseline-shrink after fixing old ones.`),process.exit(2)),ie(J,ae(Y));let e=Object.keys(Y.counts).length;K(`repo-checks: recorded ${vo.length} finding(s) and ${e} counted file(s) (${yo.length} code finding(s)) in ${g}.`),process.exit(0)}var X=(()=>{try{return ee(J)}catch(e){throw e instanceof v&&(q(`repo-checks: ${e.message}`),process.exit(2)),e}})();if(W.has(`--baseline-shrink`)){G.length&&(q(`repo-checks: --baseline-shrink reads the whole repository; run it without folder arguments.`),process.exit(2)),X===null&&(q(`repo-checks: no ${g}; run webority-repo-checks --baseline-init first.`),process.exit(2));let e=se(X,Y);ie(J,ce(X,Y)),K(`repo-checks: dropped ${e.stale.length} fixed finding(s) and lowered ${e.fallen.length} count(s) in ${g}.`),process.exit(0)}if(uo){G.length&&(q(`repo-checks: --baseline-accept reads the whole repository; run it without folder arguments.`),process.exit(2)),X===null&&(q(`repo-checks: no ${g}; run webority-repo-checks --baseline-init first.`),process.exit(2));let e=le(X,Y,ao,oo),t=new Set(X.findings),n=e.findings.filter(e=>!t.has(e)).length,r=Object.keys(e.counts).filter(t=>(X.counts[t]??0)<e.counts[t]).length;ie(J,e),K(`repo-checks: accepted ${n} finding(s) and ${r} count(s) under ${ao} (${oo}).`),process.exit(0)}var xo=new Set(G.map(e=>f(J,p(process.cwd(),e)).split(`\\`).join(`/`)||`.`)),So=G.length?{pkgs:xo,dirs:[...xo]}:null,Z=se(oe(X??{version:2,findings:[],counts:{}},So),Y),Co={"raw-measure":Ae,"palette-read":Ne,"raw-colour":je,"root-font-size":Me,"missing-canvas-key":Pe,"repeated-canvas-key":Fe},wo=e=>Co[e.slice(0,e.indexOf(`:`))],Q=[...Z.fresh.map(e=>bo.get(e)),..._o],To=Z.known.map(e=>bo.get(e)),Eo=e=>[`${e.current} found, ${e.baseline} recorded.`,wo(e.id)].filter(Boolean).join(` `),Do=e=>Yr(e.id.split(`:`)[0]),$=Z.over.filter(Do).map(e=>({pkg:`.`,id:e.id,message:Eo(e),lines:yo.filter(t=>t.id===e.id).map(({line:e,text:t,hint:n})=>({line:e,text:t,hint:n}))})),Oo=Z.over.filter(e=>!Do(e)).map(e=>({pkg:`.`,id:e.id,message:Eo(e)})),ko=Z.within.map(e=>({pkg:`.`,id:e.id,message:`${e.current} found, ${e.baseline} recorded.`})),Ao=[...Z.stale.map(b),...Z.fallen.map(e=>[`.`,e.id])],jo=[...ho,...Oo];if(W.has(`--json`)||(()=>{if(jo.length!==0){q(`repo-checks: ${jo.length} warning(s), not enforced yet. Name a rule in REPO_CHECKS_ENFORCE (comma list, or all) to fail on it:`);for(let e of jo)q(` - ${e.pkg} ${e.id}: ${e.message}`)}})(),W.has(`--json`)){let e={root:J,new:[...Q,...$],known:[...To,...ko],stale:Ao,warnings:jo.map(e=>({pkg:e.pkg,id:e.id,message:e.message}))};K(JSON.stringify(e,null,2)),process.exitCode=Q.length||$.length?1:0}else if(Q.length||$.length){if(Q.length){q(`repo-checks: ${Q.length} new finding(s)`);let e=null;for(let t of Q)t.pkg!==e&&(e=t.pkg,q(` ${e}`)),q(` - ${t.id}: ${t.message}`)}if($.length){q(`repo-checks: ${$.length} file(s) above their recorded count`);for(let e of $){q(` ${e.id}: ${e.message}`);for(let t of e.lines)q(` ${t.line}: ${t.text}`),t.hint!==null&&q(` ${t.hint}`)}}process.exitCode=1}else{if(K(`repo-checks: no new findings.`),To.length||ko.length){let e=Z.within.reduce((e,t)=>e+t.current,0);K(`repo-checks: ${To.length} known finding(s) and ${e} counted code finding(s) in ${ko.length} file(s) recorded in ${g}.`)}if(Z.stale.length){K(`repo-checks: ${Z.stale.length} baseline entr${Z.stale.length===1?`y is`:`ies are`} fixed; drop them with webority-repo-checks --baseline-shrink:`);for(let e of Z.stale.map(b))K(` ${e[0]} ${e[1]}`)}if(Z.fallen.length){K(`repo-checks: ${Z.fallen.length} count(s) fell; record them with webority-repo-checks --baseline-shrink:`);for(let e of Z.fallen)K(` ${e.id} ${e.baseline} -> ${e.current}`)}}export{};
106
+ `).length;return n>800?[{rule:`oversize`,line:1,text:`over 800 lines: split it along its concerns`,hint:null}]:n>600?[{rule:`oversize`,line:1,text:`over 600 lines`,hint:null}]:[]}var ao=`rename-wrapper`,B=`@webority/ui-react`,oo=`["']${B}["']`,V=e=>e.replace(/[^\n]/g,` `);function H(e,t,n){let r=e.slice(0,t).split(`
107
+ `).length;return{rule:ao,line:r,text:e.split(`
108
+ `)[r-1].trim(),hint:n}}function so(e){return e.replace(/\/\*[\s\S]*?\*\//g,V).replace(/\/\/[^\n]*/g,V)}function co(e){let t=new Map,n=RegExp(`import\\s+(?:type\\s+)?([\\s\\S]*?)\\s+from\\s*${oo}`,`g`);for(let r of e.matchAll(n)){let e=r[1],n=e.match(/\{([^}]*)\}/);if(n)for(let e of n[1].split(`,`)){let n=e.trim().replace(/^type\s+/,``).split(/\s+as\s+/);n[0]&&t.set(n[n.length-1],n[0])}let i=e.match(/\*\s*as\s+(\w+)/);i&&t.set(i[1],`*`);let a=e.replace(/\{[^}]*\}/,``).replace(/\*\s*as\s+\w+/,``);for(let e of a.split(`,`)){let n=e.trim();/^\w+$/.test(n)&&t.set(n,`default`)}}return t}function lo(e){let t=RegExp(`^[ \\t]*export\\s+(?:type\\s+)?(?:\\*(?:\\s+as\\s+\\w+)?|\\{[^}]*\\})\\s*from\\s*${oo}`,`gm`);return[...e.matchAll(t)].map(t=>H(e,t.index,`Import the name from ${B} where it is used; a file that only re-exports it adds nothing.`))}function uo(e,t){let n=[];if(t.size===0)return n;let r=`Import the name from ${B} where it is used instead of exporting it through this file.`;for(let i of e.matchAll(/^[ \t]*export\s*\{([^}]*)\}(?!\s*from)/gm))i[1].split(`,`).some(e=>t.has(e.trim().replace(/^type\s+/,``).split(/\s+as\s+/)[0]))&&n.push(H(e,i.index,r));for(let i of e.matchAll(/^[ \t]*export\s+default\s+(\w+)\s*;?[ \t]*$/gm))t.has(i[1])&&n.push(H(e,i.index,r));return n}function fo(e,t,n,r){if(!/\.(jsx|tsx)$/.test(e))return[];let i=so(t);if(/\buse[A-Z]\w*\s*[(<]/.test(i)||/\b(if|switch)\s*\(/.test(i)||[...i.matchAll(/\breturn\b/g)].length>1)return[];let a=i.match(/(?:\breturn|=>)\s*\(?\s*<([A-Za-z][\w.]*)/);if(!a)return[];let o=a[1],s=r.get(o);return!s||s===`*`||!n.has(s)||[...i.matchAll(/<([A-Za-z][\w.]*)/g)].length!==1||/[?]|&&|\|\|/.test(i.slice(a.index))?[]:[H(t,a.index,`Import ${s} from ${B} and use it where this component is used instead of a wrapper.`)]}function po(e,t){let n=e.split(/[\\/]/).pop();if(!n.startsWith(`_`)||!n.endsWith(`.cshtml`))return[];let r=t.replace(/@\*[\s\S]*?\*@/g,V).replace(/<!--[\s\S]*?-->/g,V).replace(/^[ \t]*@(?:model|using)\b[^\n]*/gm,V),i=r.search(/\S/);if(i<0)return[];let a=r.slice(i).trimEnd(),o=a.match(/^<(app-[a-z0-9-]+)/);return!o||!a.endsWith(`/>`)&&!a.endsWith(`</${o[1]}>`)||(a.match(/<[A-Za-z]/g)||[]).length!==1?[]:[H(t,i,`Render the <${o[1]}> tag directly where the partial is used instead of a partial that only renders it.`)]}function mo(e,t,n){let r=co(t);return[...lo(t),...uo(t,r),...fo(e,t,n,r),...po(e,t)]}var ho=()=>new Set(Xa),go=[`*.js`,`*.jsx`,`*.ts`,`*.tsx`,`*.cshtml`];function _o(e){let n=[];for(let i of I(e,[`package.json`])){if(!t(l(e,i)))continue;let a;try{a=JSON.parse(r(l(e,i),`utf8`))}catch{continue}if(ki(a)!==`mobile`)continue;let o=d.dirname(i);n.push(o===`.`?`src/`:`${o}/src/`)}return n}function vo(e,n=null){let i=n?n.map(t=>Ei(e,t)):null,a=_o(e),o=e=>!i||i.some(t=>t===`.`||e===t||e.startsWith(`${t}/`)),s=I(e,Object.keys(be).map(e=>`*${e}`)).filter(n=>t(l(e,n))&&!Ae(n,e)&&o(n)),u=[],d=ho(),f=Wi(e);for(let t of s){let n=c(t).toLowerCase(),i=be[n],o=r(l(e,t),`utf8`),s=t.startsWith(`packages/`)||t.startsWith(`samples/`),p=()=>s?[]:[...ro(o,i),...mo(t,o,f)],m=[];if(i===`scss`||i===`css`||i===`markup`)m=Bt(o,i),(i===`scss`||i===`css`)&&!s&&m.push(...Ya(o,i,d)),i===`markup`&&m.push(...p(),...s?[]:Ka(o),...io(t,o));else if(i===`script`){let e=!s&&a.some(e=>t.startsWith(e)),r=pn(o)||e;if(xe.includes(n)&&!r)continue;let i=s?[]:pa(o,{phone:fa(o)});m=[...mn(o,{phone:r,colourLiterals:e}),...i],e&&a.some(e=>t===`${e}assets/theme/settings.js`)&&(m=m.filter(e=>e.rule!==`raw-colour`)),(n===`.jsx`||n===`.tsx`)&&m.push(...p(),...io(t,o))}for(let e of m)u.push({id:`${e.rule}:${t}`,line:e.line,text:e.text,hint:e.hint})}let p=I(e,go).filter(n=>t(l(e,n)));for(let t of Pa(e,p)){let n=t.file.startsWith(`packages/`)||t.file.startsWith(`samples/`);o(t.file)&&!Ae(t.file,e)&&!n&&u.push({id:`${t.rule}:${t.file}`,line:t.line,text:t.text,hint:t.hint})}return u.sort((e,t)=>e.id<t.id?-1:e.id>t.id?1:e.line-t.line)}function yo(e){let t={};for(let n of e)t[n.id]=(t[n.id]||0)+1;return t}var U=process.argv.slice(2),bo=new Set(U.flatMap((e,t)=>e===`--baseline-accept`||e===`--reason`?[t+1]:[])),W=new Set(U.filter((e,t)=>e.startsWith(`--`)&&!bo.has(t))),G=U.filter((e,t)=>!e.startsWith(`--`)&&!bo.has(t)),xo=W.has(`--sync-hook`),So=e=>U.includes(e)?U[U.indexOf(e)+1]:void 0,Co=So(`--baseline-accept`),wo=So(`--reason`),To=e=>typeof e==`string`&&e.trim()!==``,K=e=>process.stdout.write(`${e}\n`),q=e=>process.stderr.write(`${e}\n`);W.has(`--json`)&&(console.log=(...e)=>console.error(...e));var Eo=new Set([`--json`,`--baseline-init`,`--baseline-shrink`,`--baseline-accept`,`--reason`,`--sync-hook`]),Do=[...W].filter(e=>!Eo.has(e)),Oo=W.has(`--baseline-accept`),ko=(Oo||W.has(`--reason`))&&!(To(Co)&&To(wo)),Ao=Oo&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||xo);(Do.length||W.has(`--baseline-init`)&&W.has(`--baseline-shrink`)||xo&&(W.size>1||G.length)||ko||Ao)&&(q(`repo-checks: unknown or conflicting options ${Do.join(` `)}`.trim()),q(`usage: webority-repo-checks [--json] [--baseline-init | --baseline-shrink] [--baseline-accept <folder> --reason <text>] [app folder ...]`),q(` webority-repo-checks --sync-hook`),process.exit(2));var J=Oi(process.cwd());if(J||(q(`repo-checks: not inside a git repository.`),process.exit(2)),xo){let t=l(J,ea);n(s(t),{recursive:!0}),a(t,Re),e(t,493),K(`repo-checks: wrote ${t}`),process.exit(0)}var jo=na(J,G.length?G.map(e=>p(process.cwd(),e)):null).sort((e,t)=>e.pkg===t.pkg?0:e.pkg<t.pkg?-1:1),Mo=jo.filter(e=>e.warning),No=jo.filter(e=>!e.warning),Po=No.filter(e=>e.id.startsWith(`lint:`)),Fo=No.filter(e=>!e.id.startsWith(`lint:`)),Io=vo(J,G.length?G.map(e=>p(process.cwd(),e)):null),Y={findings:Fo.map(e=>y(e.pkg,e.id)),counts:yo(Io)},Lo=new Map(Fo.map(e=>[y(e.pkg,e.id),e]));if(W.has(`--baseline-init`)){G.length&&(q(`repo-checks: --baseline-init reads the whole repository; run it without folder arguments.`),process.exit(2)),t(l(J,`.webority/baselines/repo-checks-baseline.json`))&&(q(`repo-checks: ${g} already exists. It only shrinks: fix a new finding, or run --baseline-shrink after fixing old ones.`),process.exit(2)),ae(J,oe(Y));let e=Object.keys(Y.counts).length;K(`repo-checks: recorded ${Fo.length} finding(s) and ${e} counted file(s) (${Io.length} code finding(s)) in ${g}.`),process.exit(0)}var X=(()=>{try{return te(J)}catch(e){throw e instanceof v&&(q(`repo-checks: ${e.message}`),process.exit(2)),e}})();if(W.has(`--baseline-shrink`)){G.length&&(q(`repo-checks: --baseline-shrink reads the whole repository; run it without folder arguments.`),process.exit(2)),X===null&&(q(`repo-checks: no ${g}; run webority-repo-checks --baseline-init first.`),process.exit(2));let e=ce(X,Y);ae(J,le(X,Y)),K(`repo-checks: dropped ${e.stale.length} fixed finding(s) and lowered ${e.fallen.length} count(s) in ${g}.`),process.exit(0)}if(Oo){G.length&&(q(`repo-checks: --baseline-accept reads the whole repository; run it without folder arguments.`),process.exit(2)),X===null&&(q(`repo-checks: no ${g}; run webority-repo-checks --baseline-init first.`),process.exit(2));let e=ue(X,Y,Co,wo),t=new Set(X.findings),n=e.findings.filter(e=>!t.has(e)).length,r=Object.keys(e.counts).filter(t=>(X.counts[t]??0)<e.counts[t]).length;ae(J,e),K(`repo-checks: accepted ${n} finding(s) and ${r} count(s) under ${Co} (${wo}).`),process.exit(0)}var Ro=new Set(G.map(e=>f(J,p(process.cwd(),e)).split(`\\`).join(`/`)||`.`)),zo=G.length?{pkgs:Ro,dirs:[...Ro]}:null,Z=ce(se(X??{version:2,findings:[],counts:{}},zo),Y),Bo={"raw-measure":je,"palette-read":Pe,"raw-colour":Me,"root-font-size":Ne,"missing-canvas-key":Fe,"repeated-canvas-key":Ie},Vo=e=>Bo[e.slice(0,e.indexOf(`:`))],Q=[...Z.fresh.map(e=>Lo.get(e)),...Po],Ho=Z.known.map(e=>Lo.get(e)),Uo=e=>[`${e.current} found, ${e.baseline} recorded.`,Vo(e.id)].filter(Boolean).join(` `),Wo=e=>fi(e.id.split(`:`)[0]),$=Z.over.filter(Wo).map(e=>({pkg:`.`,id:e.id,message:Uo(e),lines:Io.filter(t=>t.id===e.id).map(({line:e,text:t,hint:n})=>({line:e,text:t,hint:n}))})),Go=Z.over.filter(e=>!Wo(e)).map(e=>({pkg:`.`,id:e.id,message:Uo(e)})),Ko=Z.within.map(e=>({pkg:`.`,id:e.id,message:`${e.current} found, ${e.baseline} recorded.`})),qo=[...Z.stale.map(ee),...Z.fallen.map(e=>[`.`,e.id])],Jo=[...Mo,...Go];if(W.has(`--json`)||(()=>{if(Jo.length!==0){q(`repo-checks: ${Jo.length} warning(s), not enforced yet. Name a rule in REPO_CHECKS_ENFORCE (comma list, or all) to fail on it:`);for(let e of Jo)q(` - ${e.pkg} ${e.id}: ${e.message}`)}})(),W.has(`--json`)){let e={root:J,new:[...Q,...$],known:[...Ho,...Ko],stale:qo,warnings:Jo.map(e=>({pkg:e.pkg,id:e.id,message:e.message}))};K(JSON.stringify(e,null,2)),process.exitCode=Q.length||$.length?1:0}else if(Q.length||$.length){if(Q.length){q(`repo-checks: ${Q.length} new finding(s)`);let e=null;for(let t of Q)t.pkg!==e&&(e=t.pkg,q(` ${e}`)),q(` - ${t.id}: ${t.message}`)}if($.length){q(`repo-checks: ${$.length} file(s) above their recorded count`);for(let e of $){q(` ${e.id}: ${e.message}`);for(let t of e.lines)q(` ${t.line}: ${t.text}`),t.hint!==null&&q(` ${t.hint}`)}}process.exitCode=1}else{if(K(`repo-checks: no new findings.`),Ho.length||Ko.length){let e=Z.within.reduce((e,t)=>e+t.current,0);K(`repo-checks: ${Ho.length} known finding(s) and ${e} counted code finding(s) in ${Ko.length} file(s) recorded in ${g}.`)}if(Z.stale.length){K(`repo-checks: ${Z.stale.length} baseline entr${Z.stale.length===1?`y is`:`ies are`} fixed; drop them with webority-repo-checks --baseline-shrink:`);for(let e of Z.stale.map(ee))K(` ${e[0]} ${e[1]}`)}if(Z.fallen.length){K(`repo-checks: ${Z.fallen.length} count(s) fell; record them with webority-repo-checks --baseline-shrink:`);for(let e of Z.fallen)K(` ${e.id} ${e.baseline} -> ${e.current}`)}}export{};