@webority/repo-checks 0.155.0 → 0.156.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.
package/README.md CHANGED
@@ -40,7 +40,7 @@ The `missing-export:<file>` check runs the Biome installed beside the app or in
40
40
  | `rn-mainactivity-oncreate-bundle:<file>` | A `MainActivity.kt` or `.java` passes a bundle to `super.onCreate`; pass `null` |
41
41
  | `metro-bridge:<file>` | A React Native app's entry file (`package.json` `main`, default `index.js`), root `App.js` or `src/App.js` nor any other source file of the app (outside `node_modules`, `ios`, `android` and build output) imports `createMetroBridge` from `@webority/mobile-core/metro` and assigns `globalThis.__METRO_BRIDGE__` from a `createMetroBridge(...)` call inside `if (__DEV__)` in the same file; react-native-procedures.md → Debugging: the development bridge |
42
42
  | `endpoint-name:<name>` | Two RTK Query endpoints in an app's `src` share a name (a `name: build.query(`, `build.mutation(` or `build.infiniteQuery(` key in a file that calls `injectEndpoints` or `createApi`); RTK Query keeps one, so the other screen calls the wrong URL. Warns until a release enforces it (`REPO_CHECKS_ENFORCE=endpoint-name` fails it now) |
43
- | `mobile-production-stamps:<file>` | A mobile app's Android manifest or iOS `Expo.plist` points over-the-air updates at the Staging or Development feed, or `android/gradle.properties` carries a `.staging` or `.development` app id, left by `mobile-tools prebuild`. Run `mobile-tools prebuild --env Production` before committing |
43
+ | `mobile-production-stamps:<file>` | A mobile app's Android manifest or iOS `Expo.plist` points over-the-air updates at the Staging or Development feed, or `android/gradle.properties` carries a `.staging` or `.development` app id, left by `mobile-tools prebuild`, or a committed manifest or `Expo.plist` still points at the retired whole-number address `ota/manifest/<n>/<n>/`. Set the OTA public-id settings, then run `mobile-tools prebuild --env Production` before committing |
44
44
  | `spa-host-immutable-assets:<file>` | A web app's `web.config`, `staticwebapp.config.json`, `_headers` or `spa-host*.json` sets Cache-Control with `immutable` |
45
45
  | `build-typecheck:<script>` | A web portal's `build` or `build:*` script runs no `tsc --noEmit` and no `typecheck` script, itself or through the build scripts it calls; react.md → Language. Warns until a release enforces it |
46
46
  | `library-copy:<file>:<name>` | A web portal's source file under `src/` declares or exports, itself, a name `@webority/web-core` exports (its logger, error helpers, store set-up, reload helpers, refresh lock, JWT helpers, India validators); a re-export from the package passes. Warns until a release enforces it |
@@ -73,7 +73,7 @@ The `missing-export:<file>` check runs the Biome installed beside the app or in
73
73
  | `razor-page-handler:<file>` | A Razor page names a handler its page model does not declare: a literal `asp-page-handler`, a `?handler=` in a literal `href`, `action`, `formaction` or inline script string, or the handler argument of `Url.Page`, `RedirectToPage` or `RedirectToPagePermanent` (read like `RedirectToPage`). A handler `X` matches `On<Verb>X` or `On<Verb>XAsync` on the model or a base class in the repo. A `?handler=` is checked only in an address with no path before the `?`; one naming another path is counted as not checked. A page whose model derives from a package class is not checked. Counted per file. |
74
74
  | `razor-page-link:<file>` | A literal `asp-page`, or the page argument of `Url.Page`, `RedirectToPage` or `RedirectToPagePermanent`, names no page in the project, the projects it references, or a host project that references it, resolved as ASP.NET Core does (absolute within the area, relative to the linking page's folder, `asp-area=""` for the root). A link into an area no folder in the repo holds is a package's page and is not counted. Counted per file. What the check cannot read (a dynamic `asp-page`, a page name in a variable, a constant C# member lookup cannot pin to one value, a model outside the repo) is not a finding; the run prints how many links it skipped and why. |
75
75
  | `web-route-literal:<file>` | A router link or navigate call in a portal with a literal path instead of `href(...)` from the route table, so a link to a route that does not exist fails the type check. A template that starts with a substitution is not counted. Counted per file. |
76
- | `api-thunk:<file>` | A call of `createAsyncThunk`, or of a name the file binds to `createAsyncThunk.withTypes`, in an app's source; an API call moves to an RTK Query endpoint in `services/api` (react.md: API data). A phone app's session module, `src/redux/action/accountAction`, is not counted: its sign-in, token refresh, sign-out and start-up session thunks are the ones `@webority/mobile-core`'s `initUserAuth` and the session flows need (react-native.md). Counted per file. |
76
+ | `api-thunk:<file>` | A call of `createAsyncThunk`, or of a name the file binds to `createAsyncThunk.withTypes`, in an app's source; an API call moves to an RTK Query endpoint in `services/api` (react.md: API data). An app's session module, `src/redux/action/accountAction` on a phone or web head, is not counted: its sign-in, token refresh, session restore and sign-out thunks are session flows, not API reads (react.md, react-native.md). Counted per file. |
77
77
  | `screen-service-import:<file>` | A file under `src/screens/` imports from its head's `services/` folder other than the RTK Query api module (`services/api` or `services/api/*`); a screen reads data through that module. Counted per file. |
78
78
  | `api-call:<file>` | A hand-written URL in an app's `src`: a `.get(`, `.post(`, `.put(`, `.patch(` or `.delete(` call whose first argument is a string or template starting with `/` or `api/`, or a function in a `services` folder declared to return `Promise<unknown>`. The reply type and the URL come from the generated contract: call the operation through `api("<OperationId>", request)` from `src/services/api/api.ts`. Counted per file. Warns until a release enforces it (`REPO_CHECKS_ENFORCE=api-call` fails it now). |
79
79
  | `oversize:<file>` | A `.jsx`, `.tsx` or `.cshtml` file over 600 lines (over 800 says to split it along its concerns). A warning only: it never fails, even outside the baseline. Counted per file. |
@@ -89,12 +89,12 @@ fi
89
89
  `)?t-1:t}function hi(e){return!ni.test(e)||ri.test(e)?!1:!e.split(`/`).slice(0,-1).some(e=>ii.has(e))}function T(e){return e.filter(hi)}function E(e,t){let n=r(d(e,t),`utf8`),{blanked:i,lineStarts:a}=Vr(n);return{file:t,text:n,blanked:i,lines:n.split(`
90
90
  `),lineAt:e=>{let t=0,n=a.length-1;for(;t<=n;){let r=t+n>>1,i=a[r];if(i===void 0)throw RangeError(`line start ${r} is missing`);i<=e?t=r+1:n=r-1}return n+1}}}function gi(e){let t=e.trim();if(t===`*`)return[{name:`*`,local:`*`}];let n=[],r=t.match(/\*\s+as\s+([\w$]+)/);if(r){let e=r[1];if(e===void 0)throw TypeError(`namespace import has no local name`);n.push({name:`*`,local:e})}let i=t.match(/\{([^}]*)\}/);if(i){let e=i[1];if(e===void 0)throw TypeError(`named import clause has no body`);for(let t of e.split(`,`)){let e=t.trim().replace(/^type\s+/,``).match(/^([\w$]+)(?:\s+as\s+([\w$]+))?$/);if(e){let t=e[1];if(t===void 0)throw TypeError(`import specifier has no name`);n.push({name:t,local:e[2]??t})}}}let a=t.replace(/\{[^}]*\}/,``).replace(/\*\s+as\s+[\w$]+/,``).replace(/,/g,``).trim();return/^[\w$]+$/.test(a)&&n.push({name:`default`,local:a}),n}function D(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(si)){let[,e,r]=t;if(e===void 0||r===void 0)throw TypeError(`import match lost a group`);n(t.index,`import`,r,gi(e))}for(let t of e.blanked.matchAll(ci)){let[,e]=t;if(e===void 0)throw TypeError(`bare import match lost a group`);n(t.index,`import`,e,[])}for(let t of e.blanked.matchAll(li)){let[,e,r]=t;if(e===void 0||r===void 0)throw TypeError(`export-from match lost a group`);n(t.index,`export-from`,r,gi(e))}for(let t of e.blanked.matchAll(ui)){let[,e]=t;if(e===void 0)throw TypeError(`require match lost a group`);n(t.index,`require`,e,[])}for(let t of e.blanked.matchAll(di)){let[,e]=t;if(e===void 0)throw TypeError(`dynamic import match lost a group`);n(t.index,`dynamic`,e,[])}return t.sort((e,t)=>e.line-t.line)}function _i(e,t,n){let r;if(n.startsWith(`@/`))r=`src/${n.slice(2)}`;else if(n.startsWith(`.`))r=p.normalize(p.join(p.dirname(t),n));else return null;for(let t of ai)if(e.has(r+t))return r+t;return null}function O(e,t,n){let r=[];t.lines.forEach((t,n)=>{let i=oi.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 k(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 vi=/^src\/screens\/(public|user)\/([^/]+)\/.+/;function yi(e){let t=vi.exec(e);return t?`${t[1]}/${t[2]}`:null}function bi(e,t){let n=T(t),r=new Set(n),i=[];for(let t of n){let n=yi(t);if(n===null)continue;let a=E(e,t),o=[];for(let e of D(a)){let i=_i(r,t,e.specifier),a=i===null?null:yi(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(...O(`cross-feature-import`,a,o))}return k(i)}var xi=/* @__PURE__ */ new Set([`assets`,`components`,`constants`,`hooks`,`navigation`,`redux`,`screens`,`services`,`standards`,`types`,`utils`]),Si=/\.(?:js|jsx|ts|tsx)$/,Ci=/^src\/screens\/(?:public\/.+|user\/[^/]+\/.+)$/,wi=/[A-Za-z0-9]Screen\.(?:js|jsx|ts|tsx)$/,Ti=/^src\/screens\/index\.(?:js|ts)$/,Ei=/^src\/assets\/theme\/settings\.(?:js|ts|tsx)$/,Di=[`.js`,`.ts`,`.tsx`,`.jsx`],Oi={folder:`a top-level folder of src is one of assets, components, constants, hooks, navigation, redux, screens, services, standards, types, utils`,screenHome:`a screen file lives in src/screens/public/ or src/screens/user/<area>/`,suffix:`a screen is named without a Screen suffix`,theme:`src/assets/theme holds only its settings file`,types:`src/types holds only ambient .d.ts declaration files`,tsconfig:`an app has a tsconfig.json at its root`},ki=(e,t)=>`${e}: react-native.md App layout: ${t}.`;function Ai(e,t){let n=/* @__PURE__ */ new Set,r=/* @__PURE__ */ new Map,i=(e,t)=>{let n=r.get(e);n===void 0&&(n=[],r.set(e,n)),n.push({line:1,message:ki(e,t)})};for(let e of t){let t=e.split(`/`);if(t[0]!==`src`||t.some(e=>e===`node_modules`||e===`generated`||e===`__tests__`))continue;let r=t[1];t.length>2&&r!==void 0&&!xi.has(r)&&n.add(r),e.startsWith(`src/screens/`)&&Si.test(e)&&(!Ti.test(e)&&!Ci.test(e)&&i(e,Oi.screenHome),wi.test(e)&&i(e,Oi.suffix)),e.startsWith(`src/assets/theme/`)&&!Ei.test(e)&&i(e,Oi.theme),e.startsWith(`src/types/`)&&!e.endsWith(`.d.ts`)&&i(e,Oi.types)}let a=[];t.includes(`tsconfig.json`)||a.push({rule:`folder-layout`,file:`tsconfig.json`,line:1,message:ki(`tsconfig.json`,Oi.tsconfig)});for(let[t,n]of r)hi(t)?a.push(...O(`folder-layout`,E(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:ki(`src/${r}`,Oi.folder)},i=Di.map(e=>`src/${r}/index${e}`).find(e=>t.includes(e));if(i===void 0)a.push(n);else for(let t of O(`folder-layout`,E(e,i),[{line:1,message:n.message}]))a.push(t.message===n.message?n:t)}return k(a)}function ji(e,t){let n=T(t),r=pi(n),i=new Set(n),a=[];for(let t of n){if(t.startsWith(`src/screens/`)||t.startsWith(`src/navigation/`))continue;let n=E(e,t),o=[];for(let e of D(n)){let n=_i(i,t,e.specifier);n?.startsWith(`src/screens/`)&&n!==r&&o.push({line:e.line,message:`imports a screen folder from outside src/screens. react-native.md: hooks, utils and components never import screens.`})}a.push(...O(`import-into-screens`,n,o))}return k(a)}var Mi=`@webority/mobile-ui`,Ni=40,Pi=/\{\s*\.\.\.(?:props|rest)\s*\}/,Fi=[`lib/typescript/module/components/index.d.ts`,`lib/typescript/module/index.d.ts`],Ii=e=>`wraps mobile-ui ${e}. react-native.md: no restyle or pass-through wrapper; use ${e} directly, put house defaults in theme settings.`;function Li(e){let n=/* @__PURE__ */ new Set;for(let i of Fi){let a=d(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)){let t=e[1];if(t===void 0)throw TypeError(`export clause has no body`);for(let e of t.split(`,`)){let t=e.trim().split(/\s+as\s+/).pop();if(t===void 0)throw RangeError(`split always yields a part`);/^[\w$]+$/.test(t)&&n.add(t)}}}return n}function Ri(e){let t=/* @__PURE__ */ 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)){let e=n[1];if(e===void 0)throw TypeError(`export declaration has no name`);t.add(e)}for(let n of e.matchAll(/\bexport\s*\{([^}]*)\}/g)){let e=n[1];if(e===void 0)throw TypeError(`export clause has no body`);for(let n of e.split(`,`)){let e=n.trim().split(/\s+as\s+/).pop();if(e===void 0)throw RangeError(`split always yields a part`);(e==="default"||/^[A-Z][\w$]*$/.test(e))&&t.add(e)}}return t.size}function zi(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 Bi(e){if(mi(e.text)>Ni)return null;let t=/* @__PURE__ */ new Set;for(let n of D(e))if(!(n.kind!==`import`||n.specifier!==Mi&&!n.specifier.startsWith(`${Mi}/`)))for(let{name:e,local:r}of n.imported)e!==`*`&&t.add(r);if(t.size===0||Ri(e.blanked)!==1)return null;for(let n of e.blanked.matchAll(/(?:=>|\breturn)\s*\(?\s*<([A-Z][\w$]*)/g)){let r=n[1];if(r===void 0)throw TypeError(`component tag has no name`);if(!t.has(r))continue;let i=n.index+n[0].length-r.length-1;if(Pi.test(zi(e.blanked,i)))return{name:r,line:e.lineAt(i)}}return null}function Vi(e,t){let n=Li(e),r=[];for(let i of T(t)){if(!i.startsWith(`src/`))continue;let t=E(e,i),a=[],o=/^App([A-Z][A-Za-z0-9]*)\.[jt]sx?$/.exec(c(i))?.[1];if(o&&n.has(o))a.push({line:1,message:Ii(o)});else{let e=Bi(t);e&&a.push({line:e.line,message:Ii(e.name)})}r.push(...O(`library-wrapper`,t,a))}return k(r)}var Hi=`@webority/mobile-ui`,Ui=/* @__PURE__ */ new Set([`makeStyles`,`useTheme`,`ThemeProvider`]),Wi=/* @__PURE__ */ new Set([`COLORS`,`PALETTE`,`LIGHT_COLORS`,`DARK_COLORS`,`commonStyles`,`FONT_SIZE`,`Responsive`]),Gi=/\bexport\s+(?:const|let|var|function\*?|class)\s+([A-Za-z_$][\w$]*)/g,Ki=/\bexport\s*\{([^}]*)\}/g,qi=e=>`local theme ${e}. react-native.md: the library owns the theme; the app supplies brand and settings only.`;function Ji(e,t){let n=[];for(let r of T(t)){if(!r.startsWith(`src/`))continue;let t=E(e,r),i=[];for(let e of D(t))if(!(e.kind!==`import`||e.specifier===Hi||e.specifier.startsWith(`${Hi}/`)))for(let{name:t,local:n}of e.imported){let r=t==="default"?n:t;Ui.has(r)&&i.push({line:e.line,message:qi(r)})}for(let e of t.blanked.matchAll(Gi)){let n=e[1];if(n===void 0)throw TypeError(`export declaration has no name`);Wi.has(n)&&i.push({line:t.lineAt(e.index),message:qi(n)})}for(let e of t.blanked.matchAll(Ki)){let n=e[1];if(n===void 0)throw TypeError(`export clause has no body`);for(let r of n.split(`,`)){let n=r.trim().split(/\s+as\s+/).pop();if(n===void 0)throw RangeError(`split always yields a part`);Wi.has(n)&&i.push({line:t.lineAt(e.index),message:qi(n)})}}n.push(...O(`local-theme`,t,i))}return k(n)}var Yi=/^(?:workspace:|file:|link:)/;function Xi(e){let t=d(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=>!Yi.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 l=n.split(`
91
91
  `).findIndex(e=>e.includes(`"${s[0]}"`));return[{rule:`mobile-pins-lockstep`,file:`package.json`,line:l===-1?1:l+1,message:`pins ${s[0]}@${s[1]} and ${c[0]}@${c[1]}. react-native.md: the phone packages move together.`}]}var Zi=/* @__PURE__ */ new Set([`Text`,`TextInput`,`Pressable`,`TouchableOpacity`,`TouchableHighlight`,`TouchableWithoutFeedback`,`ActivityIndicator`,`Modal`,`Switch`,`Button`]),Qi=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 $i(e,t){let n=[];for(let r of T(t)){if(!r.startsWith(`src/screens/`)&&!r.startsWith(`src/components/`))continue;let t=E(e,r),i=/* @__PURE__ */ new Set;for(let e of D(t))if(e.kind===`import`&&e.specifier===`react-native`)for(let{name:t,local:n}of e.imported)Zi.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:Qi(e)})}n.push(...O(`raw-primitive`,t,a))}return k(n)}function ea(e,t){let n=T(t),r=pi(n);if(r===null)return[];let i=new Set(n),a=/* @__PURE__ */ new Set;for(let t of D(E(e,r))){if(t.kind!==`export-from`)continue;let e=_i(i,r,t.specifier);e!==null&&a.add(e)}let o=[];for(let t of n){if(t===r||t.startsWith(`src/navigation/`))continue;let n=E(e,t),s=[];for(let e of D(n)){let n=_i(i,t,e.specifier);if(n!==null&&n!==t&&a.has(n)){let t=p.basename(n).replace(/\.[^.]+$/,``);s.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.`})}}o.push(...O(`screen-imports-screen`,n,s))}return k(o)}var ta=400,na=600;function ra(e,t){let n=[];for(let r of T(t)){if(!r.startsWith(`src/screens/`))continue;let t=E(e,r),i=mi(t.text),a=i>ta?[{line:1,message:`${i} lines. react-native.md: split a screen over 400 lines; over 600 is a finding.`,note:i<=na}]:[];n.push(...O(`screen-length`,t,a))}return k(n)}var ia=/(?:^|\/)index\.[jt]sx?$/,aa=/\.(?:stories\.[jt]sx?|meta\.js)$/,oa=e=>e.startsWith(`src/screens/`)&&!ia.test(e),sa=e=>!ia.test(e)&&!aa.test(e),ca=e=>e.startsWith(`src/components/`)&&sa(e);function la(e,t){let n=T(t),r=new Set(n),i=/* @__PURE__ */ new Map,a=t=>{let n=i.get(t);if(n!==void 0)return n;let r=E(e,t);return i.set(t,r),r},o=/* @__PURE__ */ new Map;for(let e of n){if(!e.startsWith(`src/components/`)||!ia.test(e))continue;let t=/* @__PURE__ */ new Map,n=[];for(let i of D(a(e))){if(i.kind!==`export-from`)continue;let a=_i(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=/* @__PURE__ */ new Map,l=(e,t)=>{if(e===t||!sa(t))return;let n=c.get(e);n||(n=/* @__PURE__ */ new Set,c.set(e,n)),n.add(t)};for(let e of n)for(let t of D(a(e))){if(t.kind===`export-from`)continue;let n=_i(r,e,t.specifier);if(n===null)continue;let i=o.get(n);if(!i)l(n,e);else 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=e=>{let t=/* @__PURE__ */ new Set,n=/* @__PURE__ */ new Set([e]),r=[e];for(;r.length>0;){let e=r.pop();if(e===void 0)throw RangeError(`screensReached: pending is empty`);for(let i of c.get(e)??[])n.has(i)||(n.add(i),oa(i)?t.add(i):r.push(i))}return t},d=[];for(let e of n){if(!ca(e))continue;let t=c.get(e)?.size??0,n=t===0||t===1&&u(e).size===1?[{line:1,message:`${e} has ${t} importer(s). react-native.md: a part one screen uses lives beside that screen.`}]:[];d.push(...O(`shared-single-importer`,a(e),n))}return k(d)}var ua=/(?<![\w$.])Responsive\s*\.\s*(?:width|height|font)\s*\(/g,da=`scales by screen width. react-native.md: use theme.space and the text scale.`;function fa(e,t){let n=[];for(let r of T(t)){if(!r.startsWith(`src/`))continue;let t=E(e,r),i=[...t.blanked.matchAll(ua)].map(e=>({line:t.lineAt(e.index),message:da}));n.push(...O(`width-scaling`,t,i))}return k(n)}var pa=[$i,bi,ji,ea,la,Vi,ra,Xi,Ai,Ji,fa],ma=/* @__PURE__ */ new Set([`node_modules`,`android`,`ios`,`.git`]);function ha(e,t=``){let n=[];for(let r of i(d(e,t),{withFileTypes:!0})){if(ma.has(r.name))continue;let i=t?`${t}/${r.name}`:r.name;r.isDirectory()?n.push(...ha(e,i)):n.push(i)}return n}function ga(e){let t=ha(e).sort(),n=[];for(let r of pa.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 _a=`@webority/mobile-`,va=/^(\d+)\.(\d+)\.(\d+)$/,ya=/^(\d+)\.(\d+)\.(\d+)/,ba=/^(?:workspace:|file:|link:)/;function xa(e,t){let n=t.exec(e);if(n)return[Number(n[1]),Number(n[2]),Number(n[3])]}function Sa(e,t){let[n,r,i]=e,[a,o,s]=t;return n===a?r===o?i<s:r<o:n<a}function Ca(e){let t;try{t=JSON.parse(r(d(e,`package.json`),`utf8`))}catch{return/* @__PURE__ */ new Map}if(typeof t!=`object`||!t)return/* @__PURE__ */ new Map;let n=new Map(Object.entries(t)),i=/* @__PURE__ */ new Map;for(let e of[`dependencies`,`devDependencies`]){let t=n.get(e);if(typeof t==`object`&&t)for(let[e,n]of Object.entries(t))i.set(e,n)}return i}function wa(e,t){let n=xa(t,va);if(!n)throw Error(`webority-repo-checks: phone library version "${t}" is not x.y.z.`);let r=Ca(e),i=[...r.keys()].filter(e=>e.startsWith(_a)).sort(),a=[];for(let e of i){let i=r.get(e);if(typeof i!=`string`||ba.test(i))continue;let o=xa(i.replace(/^[\^~]/,``),ya);o&&Sa(o,n)&&a.push([`mobile-library-pin:${e}`,`"${e}": "${i}" is behind the current phone library ${t}. Move every @webority/mobile-* pin to ${t} together. react-native.md: the phone packages move together.`])}return a}var Ta=/* @__PURE__ */ new Set([`node_modules`,`dist`,`build`,`.git`,`.gradle`,`Pods`,`DerivedData`]);function Ea(e,t){return i(e,{withFileTypes:!0}).flatMap(n=>n.isDirectory()?t.has(n.name)?[]:Ea(d(e,n.name),t):[d(e,n.name)])}var Da=e=>e.split(`\\`).join(`/`);function Oa(e,t){return e.replace(t,e=>e.replace(/[^\n]/g,` `))}function ka(e,t){return e.slice(0,t).split(`
92
- `).length}var Aa=/^MainActivity\.(?:kt|java)$/,ja=/\bsuper\.onCreate\(\s*(?!null\s*\))[^)]*\)/;function Ma(e){let n=d(e,`android`,`app`,`src`);if(!t(n))return[];let i=[];for(let t of Ea(n,Ta)){if(!Aa.test(c(t)))continue;let n=Oa(Oa(r(t,`utf8`),/\/\*[\s\S]*?\*\//g),/\/\/[^\n]*/g),a=ja.exec(n);if(!a)continue;let o=Da(m(e,t));i.push([`rn-mainactivity-oncreate-bundle:${o}`,`${o}:${ka(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 Na=/EXPO_UPDATE_URL"[^>]*?\/(Staging|Development)"/,Pa=/<key>EXPO_UPDATE_URL<\/key>\s*<string>[^<]*\/(Staging|Development)<\/string>/,Fa=/^APP_ID=.*\.(staging|development)\s*$/m;function Ia(e){let n=[{file:d(e,`android`,`app`,`src`,`main`,`AndroidManifest.xml`),pattern:Na},{file:d(e,`android`,`gradle.properties`),pattern:Fa}],r=d(e,`ios`);if(t(r))for(let e of Ea(r,Ta))c(e)===`Expo.plist`&&n.push({file:e,pattern:Pa});return n.filter(({file:e})=>t(e))}function La(e){let t=[];for(let{file:n,pattern:i}of Ia(e)){let a=Da(m(e,n)),o=r(n,`utf8`),s=i.exec(o);s&&t.push([`mobile-production-stamps:${a}`,`${a}:${ka(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 Ra=/^spa-host\..+\.json$/,za=/* @__PURE__ */ new Set([`web.config`,`staticwebapp.config.json`,`_headers`,`spa-host.json`]);function Ba(e){let t=[];for(let n of Ea(e,/* @__PURE__ */ new Set([...Ta,`android`,`ios`]))){let i=c(n);if(!za.has(i)&&!Ra.test(i))continue;let a=Oa(r(n,`utf8`),/<!--[\s\S]*?-->/g).split(`
93
- `).findIndex(e=>/\bimmutable\b/i.test(e)&&/cache/i.test(e));if(a===-1)continue;let o=Da(m(e,n));t.push([`spa-host-immutable-assets:${o}`,`${o}:${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 Va=Object.freeze([`spa-host.json`,`spa-host.Development.json`,`spa-host.Staging.json`,`spa-host.Production.json`]),Ha=Object.freeze([`vite.config.ts`,`vite.config.mts`,`vite.config.js`,`vite.config.mjs`,`vite.config.cjs`]),Ua=/\.[cm]?js$/,Wa=/\btarget\s*:\s*(?:\[|["'](?:es\d|esnext|chrome|firefox|safari|edge|ios|node|modules|baseline))/;function Ga(e,t){let n=[e],r=e;for(;r!==t&&l(r)!==r;)r=l(r),n.push(r);return n}function Ka(e,n){let i=[];Ga(e,n).some(e=>t(d(e,`.nvmrc`)))||i.push([`root-file:nvmrc`,`No .nvmrc in this folder or above it. react.md, Node: commit .nvmrc with the supported Node major.`]);for(let n of Va)t(d(e,n))||i.push([`root-file:${n}`,`${n} is missing beside package.json. react.md, SPA deploy artifacts: a portal carries spa-host.json and one spa-host.<Environment>.json per environment, as the starter does.`]);let a=Ha.find(n=>t(d(e,n)));if(a===void 0)return i;Ua.test(a)&&i.push([`root-file:vite-config-ts`,`${a} is JavaScript. react.md, Language: rename it to vite.config.ts.`]);let o=r(d(e,a),`utf8`);return o.includes(`codeSplitting`)||i.push([`root-file:split-groups`,`${a} has no build.rolldownOptions.output.codeSplitting groups. react.md, Build: split the framework and the design system into their own $initial chunks, as the starter's vite.config.ts does.`]),Wa.test(o)&&i.push([`root-file:build-target`,`${a} sets a build target. react.md, Build: remove build.target and keep Vite's default.`]),i}var qa=[[`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`]],Ja=[[`@typescript-eslint/`,`react.md: Biome is the only lint and format tool`],[`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`]],A=`bootstrap-ui.md: hard interactive components come from @webority/ui-react`,Ya=`react.md: Bootstrap 5.3.3 is the only UI framework`,Xa=`react.md: dates format through Intl and the web-core formatters`,Za=`react-native.md: retired; Intl and the mobile-core formatters`,Qa={web:[...qa,[`react-toastify`,`react.md: notifications are toast from @webority/ui-react`],[`downshift`,A],[`react-day-picker`,A],[`react-aria`,A],[`react-aria-components`,A],[`@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`,Ya],[`antd`,Ya],[`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`,Xa],[`moment-timezone`,Xa],[`dayjs`,Xa],[`date-fns`,Xa],[`react-router-dom`,`react.md: react-router 8 is one package; depend on react-router and import from "react-router" (react-router-dom was merged into it)`]],mobile:[...qa,[`react-native-permissions`,`react-native.md: retired; each Expo module requests its own permission`],[`moment`,Za],[`moment-timezone`,Za],[`dayjs`,Za],[`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:[]},$a={web:[...Ja,[`@mui/`,Ya],[`@chakra-ui/`,Ya],[`@emotion/`,`react.md: no CSS-in-JS`],[`@radix-ui/`,A],[`@react-aria/`,A]],mobile:[...Ja],demo:[]},eo={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:[]},to={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`]]},no=[`agentation`],ro=[[`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`]],io=[[`web-import-axios-types`,/\b(?:import|export)\s+type\s[^;]*?\bfrom\s*["']axios(?:\/[^"']*)?["']/,`imports types from axios`,`react.md: import AxiosError, AxiosInstance, AxiosRequestConfig and AxiosResponse from @webority/web-core`]],ao=[[`@webority/theme`,`@webority/ui-react`,`@webority/support-react`,`@webority/web-core`,`@webority/biome-config`,`@webority/repo-checks`],[`@webority/mobile-core`,`@webority/mobile-ui`,`@webority/mobile-support`,`@webority/mobile-tools`]],oo=`@webority/biome-config/biome.jsonc`,j=`@webority/biome-config`,so={react:[`Children`,`Fragment`,`Profiler`,`StrictMode`,`Suspense`],"react/jsx-runtime":[`Fragment`]},co=/* @__PURE__ */ `AppAccordion.AppAccountSwitcher.AppActionIcon.AppAlert.AppAsyncBlock.AppAuthLayout.AppAvatar.AppAvatarGroup.AppBadge.AppBanner.AppBreadcrumbs.AppButton.AppButtonGroup.AppCalendar.AppCard.AppCarousel.AppCell.AppChart.AppChartCard.AppCheckbox.AppChip.AppChipGroup.AppChoiceCard.AppChoiceChip.AppCodeBlock.AppColorField.AppColumnMenu.AppCommandPalette.AppCommentThread.AppCompareTable.AppConfirmDialog.AppConsentBanner.AppContextMenu.AppCopyButton.AppCountryFlag.AppDashboardCell.AppDashboardGrid.AppDataTable.AppDatePicker.AppDateRangePicker.AppDescriptions.AppDetailPane.AppDrawer.AppDropZone.AppDropdown.AppDueDate.AppEmptyState.AppErrorBoundary.AppErrorSummary.AppFileAttachment.AppFilePicker.AppFileTiles.AppFileViewer.AppFilterBar.AppFloatingButton.AppFloatingDock.AppFormActions.AppFormRow.AppFormSection.AppHoverCard.AppIcon.AppImagePicker.AppInfoTip.AppInlineEdit.AppInput.AppInputGroup.AppKanban.AppKbd.AppKpiTile.AppLeadPopup.AppLightbox.AppLink.AppMarkdown.AppMentionInput.AppMeter.AppMetricStrip.AppModal.AppNavList.AppNavigationMenu.AppNotificationCenter.AppNumberInput.AppOnboardingChecklist.AppOrgTree.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.AppTextarea.AppThemeToggle.AppTimePicker.AppTimeline.AppToast.AppToolbar.AppTooltip.AppTour.AppTreeView.AppTruncate.AppUpdateBar.AppWhatsNew.AppWizard.AppWorkspaceSwitcher`.split(`.`),lo=[`lint`,`rn-mainactivity-oncreate-bundle`,`spa-host-immutable-assets`,`oversize`,`advisory`,`endpoint-name`,`api-call`,`api-thunk`,`build-typecheck`,`library-copy`,`mobile-library-pin`,`root-file`,`web-folder`,`web-import-axios-types`,`tracking-plan`];function uo(e,t=process.env){let n=String(t.REPO_CHECKS_ENFORCE??``).split(`,`).map(e=>e.trim()).filter(Boolean);return!lo.includes(e)||n.includes(`all`)||n.includes(e)}var fo={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`],ownable:[`--color-accent`,`--color-accent-soft`,`--shadow-overlay`,`--shadow-overlay-lg`,`--shadow-sm`,`--shadow-md`,`--shadow-lg`,`--radius-sm`,`--radius`,`--radius-lg`,`--radius-xl`,`--font-sans`]},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`}}]},po=`--color-primary-text`,mo=new Set([...fo.css.rename.map(([e])=>e),...fo.css.reads.map(([e])=>e),...Object.keys(fo.css.choose)].filter(e=>e!==po)),ho=RegExp(`(?<![\\w-])(${[...mo].join(`|`)})(?![\\w-])`,`g`),go=/* @__PURE__ */ new Set([`node_modules`,`dist`,`build`,`out`,`bin`,`obj`,`.git`,`.next`,`coverage`]),_o=/* @__PURE__ */ new Set([`.css`,`.scss`,`.sass`,`.less`,`.js`,`.jsx`,`.ts`,`.tsx`,`.cshtml`,`.razor`,`.html`,`.vue`]),vo=(e,t)=>go.has(e)||e===`lib`&&c(t)===`wwwroot`,yo=e=>_o.has(u(e).toLowerCase());function bo(e,t=[]){for(let n of i(e,{withFileTypes:!0})){let r=d(e,n.name);n.isDirectory()?vo(n.name,e)||bo(r,t):yo(n.name)&&t.push(r)}return t}function xo(e,t){for(let n=l(e);n.length>t.length;n=l(n))if(vo(c(n),l(n)))return!0;return!1}function So(e){let n=v(`git`,[`ls-files`,`-z`,`--cached`,`--others`,`--exclude-standard`,`--`,`.`],{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:67108864});return n.status===0?n.stdout.split(`\0`).filter(e=>e&&yo(e)).map(t=>d(e,t.split(`/`).join(g))).filter(n=>!xo(n,e)&&t(n)):bo(e)}function Co(e){let t=e.slice(0,3).join(`, `),n=e.length-3;return n>0?`${t} and ${n} more`:t}function wo(e,t){let n=[];for(let i of So(e)){let e=r(i,`utf8`),a=[],o=-1;for(let t of e.matchAll(ho)){let e=t[1]??``;o<0&&(o=t.index),a.includes(e)||a.push(e)}if(a.length===0)continue;let s=m(t,i).split(`\\`).join(`/`),c=e.slice(0,o).split(`
94
- `).length;n.push([`stale-theme-name:${s}`,`${s}:${c} reads pre-0.89.0 theme names (${Co(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 To=[`web`,`phone`,`razor`,`node`].map(e=>`${j}/tsconfig/${e}.json`),Eo=`biome.jsonc`,Do=d(`.webority`,`baselines`,`exceptions.json`),Oo=d(`.webority`,`baselines`,`suppressions-baseline.json`),ko=`js`,Ao=[`strict`,`noUncheckedIndexedAccess`,`exactOptionalPropertyTypes`,`noImplicitOverride`,`noImplicitReturns`,`noFallthroughCasesInSwitch`,`noUnusedLocals`,`noUnusedParameters`,`noUncheckedSideEffectImports`,`erasableSyntaxOnly`,`verbatimModuleSyntax`,`isolatedModules`,`forceConsistentCasingInFileNames`],jo=/^(?:\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?|workspace:.+)$/,Mo=/* @__PURE__ */ new Map([[`off`,0],[`info`,1],[`warn`,2],[`error`,3]]),No=/\.[cm]?[jt]sx?$/,Po=/(?:\/\/|\/\*)\s*(?:@ts-(expect-error|ignore|nocheck)\b|biome-ignore\s+([^\s:]+))/g,Fo=/^EX-[1-9][0-9]*$/,Io=/^(?:TASK|BUG|FEATURE)-[0-9]+$|^decisions\/D-[0-9]+-/;function M(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function N(e){return It(r(e,`utf8`))}function Lo(e,t){return m(e,t).split(`\\`).join(`/`)}function Ro(e,n,r){let i=e;for(;;){for(let e of r)if(t(d(i,e)))return d(i,e);if(i===n)return null;let e=l(i);if(e===i)return null;i=e}}function zo(e,n,r){let i=e;for(;;){let e=d(i,`node_modules`,j,r);if(t(e))return e;if(i===n)return null;let a=l(i);if(a===i)return null;i=a}}function Bo(e,t){if(M(e))for(let n of[`dependencies`,`devDependencies`]){let r=e[n];if(!M(r))continue;let i=r[t];if(typeof i==`string`)return i}}function Vo(e){return!M(e)||!M(e.compilerOptions)?{}:e.compilerOptions}function Ho(e){if(typeof e==`string`)return e;if(Array.isArray(e)){let t=e[0];return typeof t==`string`?t:void 0}if(M(e)&&typeof e.level==`string`)return e.level}function Uo(e){let t=/* @__PURE__ */ new Map;if(!M(e))return t;for(let[n,r]of Object.entries(e))if(M(r))for(let[e,i]of Object.entries(r)){let r=Ho(i);r!==void 0&&t.set(`${n}/${e}`,r)}return t}function Wo(e,t){let n=Uo(e),r=/* @__PURE__ */ new Set;for(let e of t){let t=M(e)&&M(e.linter)?e.linter.rules:void 0;if(M(t)){for(let[e,i]of Object.entries(t))if(typeof i==`string`){let t=Mo.get(i);if(t===void 0)continue;for(let[i,a]of n){let n=Mo.get(a);i.startsWith(`${e}/`)&&n!==void 0&&n>t&&r.add(e)}}else if(M(i))for(let[t,a]of Object.entries(i)){let i=`${e}/${t}`,o=Ho(a),s=n.get(i);if(o===void 0||s===void 0)continue;let c=Mo.get(o),l=Mo.get(s);c!==void 0&&l!==void 0&&c<l&&r.add(i)}}}return[...r]}function Go(e,n,r){let i=[],a=d(n,`tsconfig.json`),o=Lo(e,a),s=(e,t)=>r.covers(e,t)!==null,l=null;if(t(a))try{l=N(a)}catch{return[[`standards:extends`,`tsconfig.json does not parse as JSON. react.md, Language: fix the syntax; the build type-checks with it.`]]}let u=M(l)?l.extends:void 0,f=typeof u==`string`?[u]:Array.isArray(u)?u.filter(e=>typeof e==`string`):[],p=To.find(e=>f.includes(e));l!==null&&p===void 0&&!s(`tsconfig:extends`,o)&&i.push([`standards:extends`,`tsconfig.json does not extend a ${j} preset. react.md, Language: add "extends": "${j}/tsconfig/web.json" (or phone, razor or node for that surface) and keep only paths, include and types.`]);let m=d(n,`package.json`),h=Bo(t(m)?N(m):void 0,j);h===void 0&&p!==void 0?i.push([`standards:pin`,`package.json does not declare ${j}, which tsconfig.json extends. Add it at an exact version: pnpm add -D --save-exact ${j}.`]):h!==void 0&&!jo.test(h)&&i.push([`standards:pin`,`package.json pins ${j} to "${h}", not an exact version. shared-packages.md: pin every @webority/* package exactly; pnpm add -D --save-exact ${j}@<x.y.z>.`]);let g=p===void 0?null:zo(n,e,p.slice(j.length+1));if(p!==void 0&&g===null&&i.push([`standards:pin`,`${j} is declared but not installed beside this folder. Run pnpm install.`]),g!==null){let e=Vo(N(g)),t=Vo(l);for(let n of Ao)e[n]===!0&&t[n]===!1&&!s(`tsconfig:${n}`,o)&&i.push([`standards:loosened:${n}`,`tsconfig.json sets compilerOptions.${n} to false, looser than ${j}. react.md, Language: delete the line so the preset's true applies; a relaxed option needs an exceptions.json entry with rule "tsconfig:${n}".`])}let _=Ro(n,e,[`biome.json`,`biome.jsonc`]),v=zo(n,e,Eo);if(_!==null&&v!==null){let t;try{t=N(_)}catch{t=void 0}let n=M(t)&&Array.isArray(t.overrides)?t.overrides:[],r=N(v),a=M(r)&&M(r.linter)?r.linter.rules:void 0,o=Lo(e,_);for(let e of Wo(a,n))s(`lint/${e}`,o)||i.push([`standards:override:${e}`,`${c(_)} lowers ${j}'s rule lint/${e} in an overrides block. react.md, Language: delete the override; a rule lowered for some paths needs an exceptions.json entry with rule "lint/${e}" covering them.`])}return i}function Ko(e){let n=d(e,Oo);if(!t(n))return{};let r=N(n);if(!M(r))throw Error(`webority-repo-checks: .webority/baselines/suppressions-baseline.json must be a JSON object.`);return r}function qo(e,t){let n=e[t];if(!M(n))return 0;let r=n[ko];return typeof r==`number`?r:0}function Jo(e,n,i){let a=Ko(e),o=[];for(let s of n){if(!No.test(s))continue;let n=d(e,s);if(!t(n))continue;let c=0;for(let e of r(n,`utf8`).split(`
95
- `))for(let t of e.matchAll(Po)){let e=t[1]===void 0?t[2]??`biome-ignore`:`@ts-${t[1]}`;i.covers(e,s)===null&&(c+=1)}let l=qo(a,s);c>l&&o.push([`suppression:${s}`,`${s} holds ${c} suppression comment(s) with no registered exception; suppressions-baseline.json allows ${l}. Fix the code and delete the comment, or add an exceptions.json entry for its rule covering this file. The baseline is a ceiling that only shrinks.`])}return o}function Yo(e,t){return e===t?!0:/[*?[]/.test(e)?f(t,e):t.startsWith(e.endsWith(`/`)?e:`${e}/`)}function Xo(e){if(!Array.isArray(e))throw Error(`webority-repo-checks: ${Do} must be a JSON array of entries.`);return e.map((e,t)=>{let n=`${Do} entry ${t+1}`;if(!M(e))throw Error(`webority-repo-checks: ${n} must be an object.`);let{id:r,rule:i,paths:a,reason:o,approvedBy:s}=e;if(typeof r!=`string`||!Fo.test(r))throw Error(`webority-repo-checks: ${n} needs an id of the form EX-<n>.`);if(typeof i!=`string`||i.length===0)throw Error(`webority-repo-checks: ${n} (${r}) needs a rule.`);if(!Array.isArray(a)||a.length===0||!a.every(e=>typeof e==`string`&&e.length>0))throw Error(`webority-repo-checks: ${n} (${r}) needs one or more non-empty paths.`);if(typeof o!=`string`||o.length<10)throw Error(`webority-repo-checks: ${n} (${r}) needs a reason of at least ten characters.`);if(typeof s!=`string`||!Io.test(s))throw Error(`webority-repo-checks: ${n} (${r}) needs approvedBy as TASK-n, BUG-n, FEATURE-n or decisions/D-n-.`);return{id:r,rule:i,paths:a.filter(e=>typeof e==`string`)}})}function Zo(e){let n=d(e,Do),r=t(n)?Xo(N(n)):[];return{covers(e,t){let n=r.find(n=>n.rule===e&&n.paths.some(e=>Yo(e,t)));return n?n.id:null}}}var Qo=`tracked-case`;function $o(e,t){let n=/* @__PURE__ */ new Map,r=t=>{let r=n.get(t);if(r===void 0){try{r=new Set(i(d(e,t)))}catch{r=/* @__PURE__ */ new Set}n.set(t,r)}return r},a=/* @__PURE__ */ new Set,o=[];for(let e of t){let t=e.split(`/`),n=`.`;for(let e=0;e<t.length;e++){let i=t[e]??``,s=r(n);if(s.has(i)){n=n===`.`?i:`${n}/${i}`;continue}let c=i.toLowerCase(),l=[...s].find(e=>e.toLowerCase()===c);if(l!==void 0){let n=t.slice(0,e+1).join(`/`);if(!a.has(n)){a.add(n);let r=[...t.slice(0,e),l].join(`/`);o.push([`${Qo}:${n}`,`tracked as ${n} but on disk as ${r}; a Linux checkout cannot find the import. Run git mv "${n}" "${r}" so git records the rename.`])}}break}}return o}var es=`@webority/analytics/fleet`,ts=`.webority/tracking-plan.json is not a JSON object. product-analytics.md: the plan is one JSON object with "extends": "${es}".`;function ns(e){if(!t(d(e,`.github`,`workflows`,`production.yml`)))return[];let n=d(e,`.webority`,`tracking-plan.json`);if(!t(n))return[[`tracking-plan:missing`,`.webority/tracking-plan.json is missing. product-analytics.md: a product repo keeps a tracking plan with "extends": "${es}".`]];let i;try{i=JSON.parse(r(n,`utf8`))}catch{return[[`tracking-plan:invalid`,ts]]}return typeof i!=`object`||!i||Array.isArray(i)?[[`tracking-plan:invalid`,ts]]:!(`extends`in i)||i.extends!==es?[[`tracking-plan:extends`,`.webority/tracking-plan.json does not extend ${es}. product-analytics.md: set "extends": "${es}".`]]:[]}function rs(e){let t=[];return is(d(e,`src`,`components`,`base`))&&t.push([`web-folder:components/base`,`src/components/base/ exists. react.md, Folder layout: never a components/base/ folder; primitives come from @webority/ui-react and the root ErrorBoundary from @webority/web-core. Import those and delete the folder.`]),is(d(e,`src`,`components`,`features`))&&t.push([`web-folder:components/features`,`src/components/features/ is a flat catch-all. react.md, Folder layout: components/<feature>/ holds a component two or more screens of one feature share; move each component to components/<feature>/, or into its screen's file when one screen uses it.`]),t}function is(e){return o(e,{throwIfNoEntry:!1})?.isDirectory()===!0}function as(){let e=JSON.parse(r(new URL(`../package.json`,import.meta.url),`utf8`)),t=typeof e==`object`&&e&&`version`in e?e.version:void 0;if(typeof t!=`string`)throw Error(`webority-repo-checks: its own package.json has no version.`);return t}var P=e=>e.split(`\\`).join(`/`),os=(e,t)=>P(m(e,t))||`.`;function F(e){return typeof e==`object`&&!!e}function ss(e){return F(e)&&Object.values(e).every(e=>typeof e==`string`)}var cs=[`name`,`main`,`module`,`source`,`packageManager`],ls=[`dependencies`,`devDependencies`,`peerDependencies`],us=[`name`,`version`,`onFail`];function ds(e,t){let n=e=>{throw Error(`webority-repo-checks: ${t} has a ${e} of the wrong type. Fix the file, then run the checks again.`)};if(!F(e))return n(`top level`);let r={};for(let t of cs){let i=e[t];if(i!==void 0){if(typeof i!=`string`)return n(t);r[t]=i}}for(let t of ls){let i=e[t];if(i!==void 0){if(!ss(i))return n(t);r[t]=i}}let i=e.exports;if(i!==void 0){if(typeof i!=`string`&&!F(i))return n(`exports`);r.exports=i}let a=e.devEngines;if(a!==void 0){if(!F(a))return n(`devEngines`);let e=a.packageManager;if(e===void 0)r.devEngines={};else{if(!F(e))return n(`devEngines.packageManager`);let t={};for(let r of us){let i=e[r];if(i!==void 0){if(typeof i!=`string`)return n(`devEngines.packageManager.${r}`);t[r]=i}}r.devEngines={packageManager:t}}}return r}function fs(e){if(!t(e))return null;let n;try{n=JSON.parse(r(e,`utf8`))}catch(t){let n=t instanceof Error?t.message:String(t);throw Error(`webority-repo-checks: ${e} is not valid JSON (${n}). Fix the file, then run the checks again.`)}return ds(n,e)}function ps(e,t){let n=v(`git`,t,{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:67108864});return n.status===0?n.stdout:null}function ms(e){let t=ps(e,[`rev-parse`,`--show-toplevel`]);return t?t.trim():null}function I(e,t){let n=ps(e,[`ls-files`,`-z`,`--`,...t.flatMap(e=>[e,`:(glob)**/${e}`])]);return n?[...new Set(n.split(`\0`).filter(Boolean))]:[]}function hs(e){let t=ps(e,[`ls-files`,`-z`]);return t?t.split(`\0`).filter(Boolean):[]}function gs(e,n){let r=e?.dependencies??{};if(no.some(e=>r[e]))return null;let i=n&&(t(d(n,`android`))||t(d(n,`ios`)));return r[`react-native`]&&i?`mobile`:r[`react-dom`]&&(e?.devDependencies?.[`react-native-web`]||r[`react-native-web`])?`demo`:r[`react-native`]?`mobile`:r[`react-dom`]?`web`:null}var _s=/^https:\/\/\S+-\d+\.\d+\.\d+(?:-[0-9A-Za-z.]+)?\.(?:tgz|tar\.gz)$/,vs=e=>/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(e)||/^(?:workspace:\*|file:|link:)/.test(e)||_s.test(e),ys=/* @__PURE__ */ new Set([`@biomejs/biome`,`@webority/biome-config`]),bs=e=>/^(?:workspace:|file:|link:)/.test(e);function xs(e,t,n){let r=[],i={...e.dependencies,...e.devDependencies},a=Object.keys(i);for(let[e,n]of Qa[t])i[e]&&r.push([`banned:${e}`,`"${e}" is a dependency. ${n}.`]);for(let[e,n]of $a[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 eo[t])i[e]&&i[n]&&r.push([`banned:${e}`,`"${e}" is a dependency beside ${n}. ${a}.`]);for(let[e,a]of to[t])(ys.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]);vs(t)||r.push([`not-exact:${e}`,`"${e}": "${t}" is a range. Pin the version the lockfile holds, without ^ or ~.`])}for(let e of ao){let t=e.filter(e=>i[e]&&!bs(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(d(i,e)))return d(i,e);if(i===n)return null;let e=l(i);if(e===i)return null;i=e}}function Ss(e,t){let n=e,i=null;for(;;){let e=L(n,t,[`biome.json`,`biome.jsonc`]);if(!e)return i;i=l(e);let a;try{a=It(r(e,`utf8`))}catch{return i}let o=l(i);if(a.root!==!1||i===t||o===i)return i;n=o}}function Cs(e,t,n){let r=Ss(e,t),i=r&&r!==e?fs(d(r,`package.json`)):null;return i?{...i.dependencies,...i.devDependencies}:n}function ws(){let e=process.env.WEBORITY_PREREQUISITES??d(y(),`.claude`,`prerequisites.json`);if(!t(e))return null;let n=JSON.parse(r(e,`utf8`)),i=Array.isArray(n)?n.find(e=>F(e)&&e.name===`pnpm`):void 0,a=F(i)?i.minVersion:void 0;if(typeof a!=`string`||!/^\d+\.\d+\.\d+$/.test(a))throw Error(`webority-repo-checks: ${e} has no pnpm entry with an x.y.z minVersion.`);return a}function Ts(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?l(a):e,s=fs(d(o,`package.json`))??fs(d(e,`package.json`)),c=s?.devEngines?.packageManager;c?.name===`pnpm`&&/^\d+\.\d+\.\d+$/.test(c?.version??``)&&c?.onFail===`error`||i.push([`pnpm:dev-engines`,`package.json lacks "devEngines": { "packageManager": { "name": "pnpm", "version": "<x.y.z>", "onFail": "error" } }. react.md: Package manager.`]);let u=ws();u&&/^\d+\.\d+\.\d+$/.test(c?.version??``)&&c?.version!==u&&i.push([`pnpm:version`,`package.json pins pnpm ${c?.version} in devEngines.packageManager.version; the version in the machine prerequisites list is ${u}. Set it to ${u} and run pnpm install. react.md: Package manager.`]),s?.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 f=d(o,`pnpm-workspace.yaml`);if(!t(f))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(f,`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(d(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 Es(e,t,n,r){if((e.javascript?.globals??[]).includes(r))return!0;let i=[`index.js`,`index.jsx`,`index.ts`,`index.tsx`].map(e=>P(m(t,d(n,e))));return(e.overrides??[]).some(e=>(e.javascript?.globals??[]).includes(r)&&[e.includes??[]].flat().some(e=>!String(e).startsWith(`!`)&&i.some(t=>f(t,String(e)))))}function Ds(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=It(r(i,`utf8`))}catch{return[[`biome:unreadable`,`${c(i)} does not parse.`]]}let o=[];return[a.extends??[]].flat().some(e=>e===`@webority/biome-config/biome.jsonc`||String(e).endsWith(`code-standards/biome.jsonc`))||o.push([`biome:extends`,`${c(i)} does not extend "${oo}". react.md: every repo extends the shared preset.`]),a.formatter?.lineEnding&&o.push([`biome:line-ending`,`${c(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&&o.push([`biome:root-rules`,`${c(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`&&!Es(a,l(i),e,`__DEV__`)&&o.push([`biome:dev-global`,`${c(i)} lacks "__DEV__" in javascript.globals. react-native.md: Debugging and agent access.`]),o}var Os=d(`node_modules`,`@biomejs`,`biome`,`bin`,`biome`);function ks(e,t,n){if(e.start?.line)return e.start.line;if(!Array.isArray(e.span))return null;let i=r(d(t,n)),a=1;for(let t=0;t<(e.span[0]??0);t++)i[t]===10&&a++;return a}function As(e){try{return a(e)}catch{return null}}function js(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,[d(`node_modules`,i)]),s=o&&As(o);if(!s)return null;let c=fs(d(s,`package.json`));if(!c)return null;let l=(typeof c.exports==`string`?{".":c.exports}:c.exports)?.[a]??(a===`.`?c.module??c.main:null);if(F(l)&&(l=l.import??l.default),typeof l!=`string`)return null;let u=a===`.`&&typeof c.source==`string`?c.source:l.replace(Ms,`src/`);return{pkgDir:s,entry:d(s,l),sourcePath:d(s,u),workspace:Ns(t,s)}}var Ms=/^(?:\.\/)?(?:dist|lib|build)\//;function Ns(e,t){let n;try{n=a(t)}catch{return!1}let r=m(a(e),n);return!r.startsWith(`..`)&&!r.split(/[\\/]/).includes(`node_modules`)}function Ps(e){try{return o(e).isFile()}catch{return!1}}var Fs=[`.ts`,`.tsx`,`.js`,`.jsx`,`.mjs`],Is=[`index.ts`,`index.tsx`,`index.js`,`index.jsx`,`index.mjs`];function Ls(e){let t=e.replace(/\.(?:[cm]?jsx?|tsx?)$/,``);return[e,...Fs.map(e=>t+e),...Is.map(t=>d(e,t))].find(Ps)??null}function Rs(e){return e?e.workspace?Ls(e.sourcePath):e.entry:null}function zs(e,t,n,r){let i=js(e,t,n);if(!i)return!1;let a=/* @__PURE__ */ new Set,o=Rs(i);return o===null||Us(o,r,t,a)}function Bs(e,t,n,r){let i=Gs(l(t),n);return i!==null&&Us(i,r,e,/* @__PURE__ */ new Set)}var Vs=/\bexport\s*(?:(\*)(?:\s*as\s+([\w$]+))?|\{([^}]*)\})(?:\s*from\s*["']([^"']+)["'])?/g,Hs=[``,`.js`,`.mjs`,`.cjs`,`.jsx`,`.ts`,`.tsx`,`/index.js`,`/index.mjs`,`/index.jsx`,`/index.ts`,`/index.tsx`];function Us(e,t,n,i){if(i.has(e))return!1;i.add(e);let a;try{a=r(e,`utf8`)}catch{return!1}if(RegExp(`\\bexport\\s+(?:async\\s+)?(?:const|let|var|function\\*?|class)\\s+${t}\\b`).test(a)||t==="default"&&/\bexport\s+default\b/.test(a)||RegExp(`\\b(?:module\\.)?exports\\.${t}\\s*=|Object\\.defineProperty\\(\\s*(?:module\\.)?exports\\s*,\\s*["']${t}["']|\\bget\\s+${t}\\s*\\(`).test(a))return!0;for(let[,r,o,s,c]of a.matchAll(Vs))if(r){if(o===t||o===void 0&&c!==void 0&&Ws(e,c,t,n,i))return!0}else if(s!==void 0)for(let r of s.split(`,`)){let[a=``,o]=r.trim().replace(/^type\s+/,``).split(/\s+as\s+/);if((o??a)===t&&(c===void 0||Ws(e,c,a,n,i)))return!0}return!1}function Ws(e,t,n,r,i){let a=t.startsWith(`.`)?Gs(l(e),t):Rs(js(l(e),r,t));return a!==null&&Us(a,n,r,i)}function Gs(e,t){let n=d(e,t);for(let e of Hs)if(o(n+e,{throwIfNoEntry:!1})?.isFile())return n+e;return null}function Ks(e,n){let r=L(e,n,[Os]);if(!r)return[];let i=t(d(e,`src`))?`src`:`.`,a=v(process.execPath,[r,`lint`,`--only=correctness/noUnresolvedImports`,`--reporter=json`,`--max-diagnostics=none`,`--colors=off`,i],{cwd:e,encoding:`utf8`,maxBuffer:67108864,windowsHide:!0}),o=qs(a.stdout??``);if(o===null)return[[`missing-export:unreadable`,`Biome's report could not be read: ${String(a.stderr||a.stdout||``).slice(0,200)}`]];let s=/* @__PURE__ */ 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=i[1]??``,o=i[2]??``;if((Object.hasOwn(so,a)?so[a]:void 0)?.includes(o))continue;let c=h(e,String(t.location?.path));if(a.startsWith(`.`)?Bs(n,c,a,o):zs(e,n,a,o))continue;let l=P(m(e,c)),u=ks(t.location??{},e,l),d=u?`${l}:${u}`:l,f=`missing-export:${l}`,p=`${d} imports ${o} from ${a}, which does not export it. Import the name the module exports (a default export is imported without braces).`;s.set(`${f}\0${p}`,[f,p])}return[...s.values()]}function qs(e){try{let t=JSON.parse(e);return!F(t)||!Array.isArray(t.diagnostics)?null:t.diagnostics}catch{return null}}function Js(e){let t=d(e,`node_modules`,`@webority`,`ui-react`);try{let e=d(t,`package.json`),n=ds(JSON.parse(r(e,`utf8`)),e),i=typeof n.module==`string`?n.module:typeof n.main==`string`?n.main:`dist/index.js`,a=r(d(t,i),`utf8`),o=new Set([...a.matchAll(/App[A-Z][A-Za-z0-9]*/g)].map(e=>e[0]));if(o.size>0)return o}catch(e){if(Ys(e)!==`ENOENT`)throw e}return new Set(co)}function Ys(e){return F(e)?e.code:void 0}function Xs(e){return i(e,{withFileTypes:!0}).flatMap(t=>t.isDirectory()?Xs(d(e,t.name)):[d(e,t.name)])}function Zs(e){try{return JSON.parse(r(d(e,`package.json`),`utf8`)).name===`@webority/ui-root`}catch{return!1}}function Qs(e){let n=d(e,`src`);if(!t(n))return[];let r=Js(e),i=[];for(let t of Xs(n)){if(![`.jsx`,`.tsx`].includes(u(t)))continue;let n=c(t).split(`.`)[0]??``;if(r.has(n)){let r=P(m(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 $s=/gradle\.startParameter\.taskNames[^\n]*["']release["']/,ec=/throw\s+new\s+GradleException\s*\(/,tc=/^\s*edgeToEdgeEnabled\s*=\s*false\s*$/m;function nc(e){let n=[],i=d(e,`android`,`app`,`build.gradle`);if(t(i)){let e=r(i,`utf8`).replace(/\/\*[\s\S]*?\*\//g,``).replace(/^\s*\/\/.*$/gm,``);$s.test(e)&&ec.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=d(e,`android`,`gradle.properties`);return t(a)&&tc.test(r(a,`utf8`))&&n.push([`android-edge-to-edge`,`android/gradle.properties sets edgeToEdgeEnabled=false. react-native-toolchain.md: set edgeToEdgeEnabled=true.`]),n}var rc=/* @__PURE__ */ new Set([`.js`,`.jsx`,`.mjs`,`.cjs`,`.ts`,`.tsx`]),ic=/\b(?:import|export)\s+type\s+(?:\{[^}]*\}|\*(?:\s+as\s+[\w$]+)?|[\w$]+)\s+from\s*["'][^"']*["']/g;function ac(e,n){let i=d(e,`src`);if(!t(i))return[];let a=[];for(let t of Xs(i)){if(!rc.has(u(t).toLowerCase())||st(P(m(n,t)),n))continue;let i=r(t,`utf8`).split(`
92
+ `).length}var Aa=/^MainActivity\.(?:kt|java)$/,ja=/\bsuper\.onCreate\(\s*(?!null\s*\))[^)]*\)/;function Ma(e){let n=d(e,`android`,`app`,`src`);if(!t(n))return[];let i=[];for(let t of Ea(n,Ta)){if(!Aa.test(c(t)))continue;let n=Oa(Oa(r(t,`utf8`),/\/\*[\s\S]*?\*\//g),/\/\/[^\n]*/g),a=ja.exec(n);if(!a)continue;let o=Da(m(e,t));i.push([`rn-mainactivity-oncreate-bundle:${o}`,`${o}:${ka(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 Na=/EXPO_UPDATE_URL"[^>]*?\/(Staging|Development)"/,Pa=/<key>EXPO_UPDATE_URL<\/key>\s*<string>[^<]*\/(Staging|Development)<\/string>/,Fa=/^APP_ID=.*\.(staging|development)\s*$/m,Ia=/\/ota\/manifest\/\d+\/\d+\//;function La(e){let n=[{file:d(e,`android`,`app`,`src`,`main`,`AndroidManifest.xml`),pattern:Na,retired:!0},{file:d(e,`android`,`gradle.properties`),pattern:Fa,retired:!1}],r=d(e,`ios`);if(t(r))for(let e of Ea(r,Ta))c(e)===`Expo.plist`&&n.push({file:e,pattern:Pa,retired:!0});return n.filter(({file:e})=>t(e))}function Ra(e){let t=[];for(let{file:n,pattern:i,retired:a}of La(e)){let o=Da(m(e,n)),s=r(n,`utf8`),c=i.exec(s);if(c)t.push([`mobile-production-stamps:${o}`,`${o}:${ka(s,c.index)} carries ${c[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 ${c[1]} update feed or app id.`]);else{let e=a?Ia.exec(s):null;e&&t.push([`mobile-production-stamps:${o}`,`${o}:${ka(s,e.index)} points over-the-air updates at the retired whole-number address. Set OTA_PROJECT_PUBLIC_ID and the platform's component public id in appsettings and run \`mobile-tools prebuild --env Production\` before committing.`])}}return t}var za=/^spa-host\..+\.json$/,Ba=/* @__PURE__ */ new Set([`web.config`,`staticwebapp.config.json`,`_headers`,`spa-host.json`]);function Va(e){let t=[];for(let n of Ea(e,/* @__PURE__ */ new Set([...Ta,`android`,`ios`]))){let i=c(n);if(!Ba.has(i)&&!za.test(i))continue;let a=Oa(r(n,`utf8`),/<!--[\s\S]*?-->/g).split(`
93
+ `).findIndex(e=>/\bimmutable\b/i.test(e)&&/cache/i.test(e));if(a===-1)continue;let o=Da(m(e,n));t.push([`spa-host-immutable-assets:${o}`,`${o}:${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 Ha=Object.freeze([`spa-host.json`,`spa-host.Development.json`,`spa-host.Staging.json`,`spa-host.Production.json`]),Ua=Object.freeze([`vite.config.ts`,`vite.config.mts`,`vite.config.js`,`vite.config.mjs`,`vite.config.cjs`]),Wa=/\.[cm]?js$/,Ga=/\btarget\s*:\s*(?:\[|["'](?:es\d|esnext|chrome|firefox|safari|edge|ios|node|modules|baseline))/;function Ka(e,t){let n=[e],r=e;for(;r!==t&&l(r)!==r;)r=l(r),n.push(r);return n}function qa(e,n){let i=[];Ka(e,n).some(e=>t(d(e,`.nvmrc`)))||i.push([`root-file:nvmrc`,`No .nvmrc in this folder or above it. react.md, Node: commit .nvmrc with the supported Node major.`]);for(let n of Ha)t(d(e,n))||i.push([`root-file:${n}`,`${n} is missing beside package.json. react.md, SPA deploy artifacts: a portal carries spa-host.json and one spa-host.<Environment>.json per environment, as the starter does.`]);let a=Ua.find(n=>t(d(e,n)));if(a===void 0)return i;Wa.test(a)&&i.push([`root-file:vite-config-ts`,`${a} is JavaScript. react.md, Language: rename it to vite.config.ts.`]);let o=r(d(e,a),`utf8`);return o.includes(`codeSplitting`)||i.push([`root-file:split-groups`,`${a} has no build.rolldownOptions.output.codeSplitting groups. react.md, Build: split the framework and the design system into their own $initial chunks, as the starter's vite.config.ts does.`]),Ga.test(o)&&i.push([`root-file:build-target`,`${a} sets a build target. react.md, Build: remove build.target and keep Vite's default.`]),i}var Ja=[[`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`]],Ya=[[`@typescript-eslint/`,`react.md: Biome is the only lint and format tool`],[`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`]],A=`bootstrap-ui.md: hard interactive components come from @webority/ui-react`,Xa=`react.md: Bootstrap 5.3.3 is the only UI framework`,Za=`react.md: dates format through Intl and the web-core formatters`,Qa=`react-native.md: retired; Intl and the mobile-core formatters`,$a={web:[...Ja,[`react-toastify`,`react.md: notifications are toast from @webority/ui-react`],[`downshift`,A],[`react-day-picker`,A],[`react-aria`,A],[`react-aria-components`,A],[`@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`,Xa],[`antd`,Xa],[`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`,Za],[`moment-timezone`,Za],[`dayjs`,Za],[`date-fns`,Za],[`react-router-dom`,`react.md: react-router 8 is one package; depend on react-router and import from "react-router" (react-router-dom was merged into it)`]],mobile:[...Ja,[`react-native-permissions`,`react-native.md: retired; each Expo module requests its own permission`],[`moment`,Qa],[`moment-timezone`,Qa],[`dayjs`,Qa],[`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:[]},eo={web:[...Ya,[`@mui/`,Xa],[`@chakra-ui/`,Xa],[`@emotion/`,`react.md: no CSS-in-JS`],[`@radix-ui/`,A],[`@react-aria/`,A]],mobile:[...Ya],demo:[]},to={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:[]},no={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`]]},ro=[`agentation`],io=[[`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`]],ao=[[`web-import-axios-types`,/\b(?:import|export)\s+type\s[^;]*?\bfrom\s*["']axios(?:\/[^"']*)?["']/,`imports types from axios`,`react.md: import AxiosError, AxiosInstance, AxiosRequestConfig and AxiosResponse from @webority/web-core`]],oo=[[`@webority/theme`,`@webority/ui-react`,`@webority/support-react`,`@webority/web-core`,`@webority/biome-config`,`@webority/repo-checks`],[`@webority/mobile-core`,`@webority/mobile-ui`,`@webority/mobile-support`,`@webority/mobile-tools`]],so=`@webority/biome-config/biome.jsonc`,j=`@webority/biome-config`,co={react:[`Children`,`Fragment`,`Profiler`,`StrictMode`,`Suspense`],"react/jsx-runtime":[`Fragment`]},lo=/* @__PURE__ */ `AppAccordion.AppAccountSwitcher.AppActionIcon.AppAlert.AppAsyncBlock.AppAuthLayout.AppAvatar.AppAvatarGroup.AppBadge.AppBanner.AppBreadcrumbs.AppButton.AppButtonGroup.AppCalendar.AppCard.AppCarousel.AppCell.AppChart.AppChartCard.AppCheckbox.AppChip.AppChipGroup.AppChoiceCard.AppChoiceChip.AppCodeBlock.AppColorField.AppColumnMenu.AppCommandPalette.AppCommentThread.AppCompareTable.AppConfirmDialog.AppConsentBanner.AppContextMenu.AppCopyButton.AppCountryFlag.AppDashboardCell.AppDashboardGrid.AppDataTable.AppDatePicker.AppDateRangePicker.AppDescriptions.AppDetailPane.AppDrawer.AppDropZone.AppDropdown.AppDueDate.AppEmptyState.AppErrorBoundary.AppErrorSummary.AppFileAttachment.AppFilePicker.AppFileTiles.AppFileViewer.AppFilterBar.AppFloatingButton.AppFloatingDock.AppFormActions.AppFormRow.AppFormSection.AppHoverCard.AppIcon.AppImagePicker.AppInfoTip.AppInlineEdit.AppInput.AppInputGroup.AppKanban.AppKbd.AppKpiTile.AppLeadPopup.AppLightbox.AppLink.AppMarkdown.AppMentionInput.AppMeter.AppMetricStrip.AppModal.AppNavList.AppNavigationMenu.AppNotificationCenter.AppNumberInput.AppOnboardingChecklist.AppOrgTree.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.AppTextarea.AppThemeToggle.AppTimePicker.AppTimeline.AppToast.AppToolbar.AppTooltip.AppTour.AppTreeView.AppTruncate.AppUpdateBar.AppWhatsNew.AppWizard.AppWorkspaceSwitcher`.split(`.`),uo=[`lint`,`rn-mainactivity-oncreate-bundle`,`spa-host-immutable-assets`,`oversize`,`advisory`,`endpoint-name`,`api-call`,`api-thunk`,`build-typecheck`,`library-copy`,`mobile-library-pin`,`root-file`,`web-folder`,`web-import-axios-types`,`tracking-plan`];function fo(e,t=process.env){let n=String(t.REPO_CHECKS_ENFORCE??``).split(`,`).map(e=>e.trim()).filter(Boolean);return!uo.includes(e)||n.includes(`all`)||n.includes(e)}var po={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`],ownable:[`--color-accent`,`--color-accent-soft`,`--shadow-overlay`,`--shadow-overlay-lg`,`--shadow-sm`,`--shadow-md`,`--shadow-lg`,`--radius-sm`,`--radius`,`--radius-lg`,`--radius-xl`,`--font-sans`]},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`}}]},mo=`--color-primary-text`,ho=new Set([...po.css.rename.map(([e])=>e),...po.css.reads.map(([e])=>e),...Object.keys(po.css.choose)].filter(e=>e!==mo)),go=RegExp(`(?<![\\w-])(${[...ho].join(`|`)})(?![\\w-])`,`g`),_o=/* @__PURE__ */ new Set([`node_modules`,`dist`,`build`,`out`,`bin`,`obj`,`.git`,`.next`,`coverage`]),vo=/* @__PURE__ */ new Set([`.css`,`.scss`,`.sass`,`.less`,`.js`,`.jsx`,`.ts`,`.tsx`,`.cshtml`,`.razor`,`.html`,`.vue`]),yo=(e,t)=>_o.has(e)||e===`lib`&&c(t)===`wwwroot`,bo=e=>vo.has(u(e).toLowerCase());function xo(e,t=[]){for(let n of i(e,{withFileTypes:!0})){let r=d(e,n.name);n.isDirectory()?yo(n.name,e)||xo(r,t):bo(n.name)&&t.push(r)}return t}function So(e,t){for(let n=l(e);n.length>t.length;n=l(n))if(yo(c(n),l(n)))return!0;return!1}function Co(e){let n=v(`git`,[`ls-files`,`-z`,`--cached`,`--others`,`--exclude-standard`,`--`,`.`],{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:67108864});return n.status===0?n.stdout.split(`\0`).filter(e=>e&&bo(e)).map(t=>d(e,t.split(`/`).join(g))).filter(n=>!So(n,e)&&t(n)):xo(e)}function wo(e){let t=e.slice(0,3).join(`, `),n=e.length-3;return n>0?`${t} and ${n} more`:t}function To(e,t){let n=[];for(let i of Co(e)){let e=r(i,`utf8`),a=[],o=-1;for(let t of e.matchAll(go)){let e=t[1]??``;o<0&&(o=t.index),a.includes(e)||a.push(e)}if(a.length===0)continue;let s=m(t,i).split(`\\`).join(`/`),c=e.slice(0,o).split(`
94
+ `).length;n.push([`stale-theme-name:${s}`,`${s}:${c} reads pre-0.89.0 theme names (${wo(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 Eo=[`web`,`phone`,`razor`,`node`].map(e=>`${j}/tsconfig/${e}.json`),Do=`biome.jsonc`,Oo=d(`.webority`,`baselines`,`exceptions.json`),ko=d(`.webority`,`baselines`,`suppressions-baseline.json`),Ao=`js`,jo=[`strict`,`noUncheckedIndexedAccess`,`exactOptionalPropertyTypes`,`noImplicitOverride`,`noImplicitReturns`,`noFallthroughCasesInSwitch`,`noUnusedLocals`,`noUnusedParameters`,`noUncheckedSideEffectImports`,`erasableSyntaxOnly`,`verbatimModuleSyntax`,`isolatedModules`,`forceConsistentCasingInFileNames`],Mo=/^(?:\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?|workspace:.+)$/,No=/* @__PURE__ */ new Map([[`off`,0],[`info`,1],[`warn`,2],[`error`,3]]),Po=/\.[cm]?[jt]sx?$/,Fo=/(?:\/\/|\/\*)\s*(?:@ts-(expect-error|ignore|nocheck)\b|biome-ignore\s+([^\s:]+))/g,Io=/^EX-[1-9][0-9]*$/,Lo=/^(?:TASK|BUG|FEATURE)-[0-9]+$|^decisions\/D-[0-9]+-/;function M(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function N(e){return It(r(e,`utf8`))}function Ro(e,t){return m(e,t).split(`\\`).join(`/`)}function zo(e,n,r){let i=e;for(;;){for(let e of r)if(t(d(i,e)))return d(i,e);if(i===n)return null;let e=l(i);if(e===i)return null;i=e}}function Bo(e,n,r){let i=e;for(;;){let e=d(i,`node_modules`,j,r);if(t(e))return e;if(i===n)return null;let a=l(i);if(a===i)return null;i=a}}function Vo(e,t){if(M(e))for(let n of[`dependencies`,`devDependencies`]){let r=e[n];if(!M(r))continue;let i=r[t];if(typeof i==`string`)return i}}function Ho(e){return!M(e)||!M(e.compilerOptions)?{}:e.compilerOptions}function Uo(e){if(typeof e==`string`)return e;if(Array.isArray(e)){let t=e[0];return typeof t==`string`?t:void 0}if(M(e)&&typeof e.level==`string`)return e.level}function Wo(e){let t=/* @__PURE__ */ new Map;if(!M(e))return t;for(let[n,r]of Object.entries(e))if(M(r))for(let[e,i]of Object.entries(r)){let r=Uo(i);r!==void 0&&t.set(`${n}/${e}`,r)}return t}function Go(e,t){let n=Wo(e),r=/* @__PURE__ */ new Set;for(let e of t){let t=M(e)&&M(e.linter)?e.linter.rules:void 0;if(M(t)){for(let[e,i]of Object.entries(t))if(typeof i==`string`){let t=No.get(i);if(t===void 0)continue;for(let[i,a]of n){let n=No.get(a);i.startsWith(`${e}/`)&&n!==void 0&&n>t&&r.add(e)}}else if(M(i))for(let[t,a]of Object.entries(i)){let i=`${e}/${t}`,o=Uo(a),s=n.get(i);if(o===void 0||s===void 0)continue;let c=No.get(o),l=No.get(s);c!==void 0&&l!==void 0&&c<l&&r.add(i)}}}return[...r]}function Ko(e,n,r){let i=[],a=d(n,`tsconfig.json`),o=Ro(e,a),s=(e,t)=>r.covers(e,t)!==null,l=null;if(t(a))try{l=N(a)}catch{return[[`standards:extends`,`tsconfig.json does not parse as JSON. react.md, Language: fix the syntax; the build type-checks with it.`]]}let u=M(l)?l.extends:void 0,f=typeof u==`string`?[u]:Array.isArray(u)?u.filter(e=>typeof e==`string`):[],p=Eo.find(e=>f.includes(e));l!==null&&p===void 0&&!s(`tsconfig:extends`,o)&&i.push([`standards:extends`,`tsconfig.json does not extend a ${j} preset. react.md, Language: add "extends": "${j}/tsconfig/web.json" (or phone, razor or node for that surface) and keep only paths, include and types.`]);let m=d(n,`package.json`),h=Vo(t(m)?N(m):void 0,j);h===void 0&&p!==void 0?i.push([`standards:pin`,`package.json does not declare ${j}, which tsconfig.json extends. Add it at an exact version: pnpm add -D --save-exact ${j}.`]):h!==void 0&&!Mo.test(h)&&i.push([`standards:pin`,`package.json pins ${j} to "${h}", not an exact version. shared-packages.md: pin every @webority/* package exactly; pnpm add -D --save-exact ${j}@<x.y.z>.`]);let g=p===void 0?null:Bo(n,e,p.slice(j.length+1));if(p!==void 0&&g===null&&i.push([`standards:pin`,`${j} is declared but not installed beside this folder. Run pnpm install.`]),g!==null){let e=Ho(N(g)),t=Ho(l);for(let n of jo)e[n]===!0&&t[n]===!1&&!s(`tsconfig:${n}`,o)&&i.push([`standards:loosened:${n}`,`tsconfig.json sets compilerOptions.${n} to false, looser than ${j}. react.md, Language: delete the line so the preset's true applies; a relaxed option needs an exceptions.json entry with rule "tsconfig:${n}".`])}let _=zo(n,e,[`biome.json`,`biome.jsonc`]),v=Bo(n,e,Do);if(_!==null&&v!==null){let t;try{t=N(_)}catch{t=void 0}let n=M(t)&&Array.isArray(t.overrides)?t.overrides:[],r=N(v),a=M(r)&&M(r.linter)?r.linter.rules:void 0,o=Ro(e,_);for(let e of Go(a,n))s(`lint/${e}`,o)||i.push([`standards:override:${e}`,`${c(_)} lowers ${j}'s rule lint/${e} in an overrides block. react.md, Language: delete the override; a rule lowered for some paths needs an exceptions.json entry with rule "lint/${e}" covering them.`])}return i}function qo(e){let n=d(e,ko);if(!t(n))return{};let r=N(n);if(!M(r))throw Error(`webority-repo-checks: .webority/baselines/suppressions-baseline.json must be a JSON object.`);return r}function Jo(e,t){let n=e[t];if(!M(n))return 0;let r=n[Ao];return typeof r==`number`?r:0}function Yo(e,n,i){let a=qo(e),o=[];for(let s of n){if(!Po.test(s))continue;let n=d(e,s);if(!t(n))continue;let c=0;for(let e of r(n,`utf8`).split(`
95
+ `))for(let t of e.matchAll(Fo)){let e=t[1]===void 0?t[2]??`biome-ignore`:`@ts-${t[1]}`;i.covers(e,s)===null&&(c+=1)}let l=Jo(a,s);c>l&&o.push([`suppression:${s}`,`${s} holds ${c} suppression comment(s) with no registered exception; suppressions-baseline.json allows ${l}. Fix the code and delete the comment, or add an exceptions.json entry for its rule covering this file. The baseline is a ceiling that only shrinks.`])}return o}function Xo(e,t){return e===t?!0:/[*?[]/.test(e)?f(t,e):t.startsWith(e.endsWith(`/`)?e:`${e}/`)}function Zo(e){if(!Array.isArray(e))throw Error(`webority-repo-checks: ${Oo} must be a JSON array of entries.`);return e.map((e,t)=>{let n=`${Oo} entry ${t+1}`;if(!M(e))throw Error(`webority-repo-checks: ${n} must be an object.`);let{id:r,rule:i,paths:a,reason:o,approvedBy:s}=e;if(typeof r!=`string`||!Io.test(r))throw Error(`webority-repo-checks: ${n} needs an id of the form EX-<n>.`);if(typeof i!=`string`||i.length===0)throw Error(`webority-repo-checks: ${n} (${r}) needs a rule.`);if(!Array.isArray(a)||a.length===0||!a.every(e=>typeof e==`string`&&e.length>0))throw Error(`webority-repo-checks: ${n} (${r}) needs one or more non-empty paths.`);if(typeof o!=`string`||o.length<10)throw Error(`webority-repo-checks: ${n} (${r}) needs a reason of at least ten characters.`);if(typeof s!=`string`||!Lo.test(s))throw Error(`webority-repo-checks: ${n} (${r}) needs approvedBy as TASK-n, BUG-n, FEATURE-n or decisions/D-n-.`);return{id:r,rule:i,paths:a.filter(e=>typeof e==`string`)}})}function Qo(e){let n=d(e,Oo),r=t(n)?Zo(N(n)):[];return{covers(e,t){let n=r.find(n=>n.rule===e&&n.paths.some(e=>Xo(e,t)));return n?n.id:null}}}var $o=`tracked-case`;function es(e,t){let n=/* @__PURE__ */ new Map,r=t=>{let r=n.get(t);if(r===void 0){try{r=new Set(i(d(e,t)))}catch{r=/* @__PURE__ */ new Set}n.set(t,r)}return r},a=/* @__PURE__ */ new Set,o=[];for(let e of t){let t=e.split(`/`),n=`.`;for(let e=0;e<t.length;e++){let i=t[e]??``,s=r(n);if(s.has(i)){n=n===`.`?i:`${n}/${i}`;continue}let c=i.toLowerCase(),l=[...s].find(e=>e.toLowerCase()===c);if(l!==void 0){let n=t.slice(0,e+1).join(`/`);if(!a.has(n)){a.add(n);let r=[...t.slice(0,e),l].join(`/`);o.push([`${$o}:${n}`,`tracked as ${n} but on disk as ${r}; a Linux checkout cannot find the import. Run git mv "${n}" "${r}" so git records the rename.`])}}break}}return o}var ts=`@webority/analytics/fleet`,ns=`.webority/tracking-plan.json is not a JSON object. product-analytics.md: the plan is one JSON object with "extends": "${ts}".`;function rs(e){if(!t(d(e,`.github`,`workflows`,`production.yml`)))return[];let n=d(e,`.webority`,`tracking-plan.json`);if(!t(n))return[[`tracking-plan:missing`,`.webority/tracking-plan.json is missing. product-analytics.md: a product repo keeps a tracking plan with "extends": "${ts}".`]];let i;try{i=JSON.parse(r(n,`utf8`))}catch{return[[`tracking-plan:invalid`,ns]]}return typeof i!=`object`||!i||Array.isArray(i)?[[`tracking-plan:invalid`,ns]]:!(`extends`in i)||i.extends!==ts?[[`tracking-plan:extends`,`.webority/tracking-plan.json does not extend ${ts}. product-analytics.md: set "extends": "${ts}".`]]:[]}function is(e){let t=[];return as(d(e,`src`,`components`,`base`))&&t.push([`web-folder:components/base`,`src/components/base/ exists. react.md, Folder layout: never a components/base/ folder; primitives come from @webority/ui-react and the root ErrorBoundary from @webority/web-core. Import those and delete the folder.`]),as(d(e,`src`,`components`,`features`))&&t.push([`web-folder:components/features`,`src/components/features/ is a flat catch-all. react.md, Folder layout: components/<feature>/ holds a component two or more screens of one feature share; move each component to components/<feature>/, or into its screen's file when one screen uses it.`]),t}function as(e){return o(e,{throwIfNoEntry:!1})?.isDirectory()===!0}function os(){let e=JSON.parse(r(new URL(`../package.json`,import.meta.url),`utf8`)),t=typeof e==`object`&&e&&`version`in e?e.version:void 0;if(typeof t!=`string`)throw Error(`webority-repo-checks: its own package.json has no version.`);return t}var P=e=>e.split(`\\`).join(`/`),ss=(e,t)=>P(m(e,t))||`.`;function F(e){return typeof e==`object`&&!!e}function cs(e){return F(e)&&Object.values(e).every(e=>typeof e==`string`)}var ls=[`name`,`main`,`module`,`source`,`packageManager`],us=[`dependencies`,`devDependencies`,`peerDependencies`],ds=[`name`,`version`,`onFail`];function fs(e,t){let n=e=>{throw Error(`webority-repo-checks: ${t} has a ${e} of the wrong type. Fix the file, then run the checks again.`)};if(!F(e))return n(`top level`);let r={};for(let t of ls){let i=e[t];if(i!==void 0){if(typeof i!=`string`)return n(t);r[t]=i}}for(let t of us){let i=e[t];if(i!==void 0){if(!cs(i))return n(t);r[t]=i}}let i=e.exports;if(i!==void 0){if(typeof i!=`string`&&!F(i))return n(`exports`);r.exports=i}let a=e.devEngines;if(a!==void 0){if(!F(a))return n(`devEngines`);let e=a.packageManager;if(e===void 0)r.devEngines={};else{if(!F(e))return n(`devEngines.packageManager`);let t={};for(let r of ds){let i=e[r];if(i!==void 0){if(typeof i!=`string`)return n(`devEngines.packageManager.${r}`);t[r]=i}}r.devEngines={packageManager:t}}}return r}function ps(e){if(!t(e))return null;let n;try{n=JSON.parse(r(e,`utf8`))}catch(t){let n=t instanceof Error?t.message:String(t);throw Error(`webority-repo-checks: ${e} is not valid JSON (${n}). Fix the file, then run the checks again.`)}return fs(n,e)}function ms(e,t){let n=v(`git`,t,{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:67108864});return n.status===0?n.stdout:null}function hs(e){let t=ms(e,[`rev-parse`,`--show-toplevel`]);return t?t.trim():null}function I(e,t){let n=ms(e,[`ls-files`,`-z`,`--`,...t.flatMap(e=>[e,`:(glob)**/${e}`])]);return n?[...new Set(n.split(`\0`).filter(Boolean))]:[]}function gs(e){let t=ms(e,[`ls-files`,`-z`]);return t?t.split(`\0`).filter(Boolean):[]}function _s(e,n){let r=e?.dependencies??{};if(ro.some(e=>r[e]))return null;let i=n&&(t(d(n,`android`))||t(d(n,`ios`)));return r[`react-native`]&&i?`mobile`:r[`react-dom`]&&(e?.devDependencies?.[`react-native-web`]||r[`react-native-web`])?`demo`:r[`react-native`]?`mobile`:r[`react-dom`]?`web`:null}var vs=/^https:\/\/\S+-\d+\.\d+\.\d+(?:-[0-9A-Za-z.]+)?\.(?:tgz|tar\.gz)$/,ys=e=>/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(e)||/^(?:workspace:\*|file:|link:)/.test(e)||vs.test(e),bs=/* @__PURE__ */ new Set([`@biomejs/biome`,`@webority/biome-config`]),xs=e=>/^(?:workspace:|file:|link:)/.test(e);function Ss(e,t,n){let r=[],i={...e.dependencies,...e.devDependencies},a=Object.keys(i);for(let[e,n]of $a[t])i[e]&&r.push([`banned:${e}`,`"${e}" is a dependency. ${n}.`]);for(let[e,n]of eo[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 to[t])i[e]&&i[n]&&r.push([`banned:${e}`,`"${e}" is a dependency beside ${n}. ${a}.`]);for(let[e,a]of no[t])(bs.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]);ys(t)||r.push([`not-exact:${e}`,`"${e}": "${t}" is a range. Pin the version the lockfile holds, without ^ or ~.`])}for(let e of oo){let t=e.filter(e=>i[e]&&!xs(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(d(i,e)))return d(i,e);if(i===n)return null;let e=l(i);if(e===i)return null;i=e}}function Cs(e,t){let n=e,i=null;for(;;){let e=L(n,t,[`biome.json`,`biome.jsonc`]);if(!e)return i;i=l(e);let a;try{a=It(r(e,`utf8`))}catch{return i}let o=l(i);if(a.root!==!1||i===t||o===i)return i;n=o}}function ws(e,t,n){let r=Cs(e,t),i=r&&r!==e?ps(d(r,`package.json`)):null;return i?{...i.dependencies,...i.devDependencies}:n}function Ts(){let e=process.env.WEBORITY_PREREQUISITES??d(y(),`.claude`,`prerequisites.json`);if(!t(e))return null;let n=JSON.parse(r(e,`utf8`)),i=Array.isArray(n)?n.find(e=>F(e)&&e.name===`pnpm`):void 0,a=F(i)?i.minVersion:void 0;if(typeof a!=`string`||!/^\d+\.\d+\.\d+$/.test(a))throw Error(`webority-repo-checks: ${e} has no pnpm entry with an x.y.z minVersion.`);return a}function Es(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?l(a):e,s=ps(d(o,`package.json`))??ps(d(e,`package.json`)),c=s?.devEngines?.packageManager;c?.name===`pnpm`&&/^\d+\.\d+\.\d+$/.test(c?.version??``)&&c?.onFail===`error`||i.push([`pnpm:dev-engines`,`package.json lacks "devEngines": { "packageManager": { "name": "pnpm", "version": "<x.y.z>", "onFail": "error" } }. react.md: Package manager.`]);let u=Ts();u&&/^\d+\.\d+\.\d+$/.test(c?.version??``)&&c?.version!==u&&i.push([`pnpm:version`,`package.json pins pnpm ${c?.version} in devEngines.packageManager.version; the version in the machine prerequisites list is ${u}. Set it to ${u} and run pnpm install. react.md: Package manager.`]),s?.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 f=d(o,`pnpm-workspace.yaml`);if(!t(f))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(f,`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(d(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 Ds(e,t,n,r){if((e.javascript?.globals??[]).includes(r))return!0;let i=[`index.js`,`index.jsx`,`index.ts`,`index.tsx`].map(e=>P(m(t,d(n,e))));return(e.overrides??[]).some(e=>(e.javascript?.globals??[]).includes(r)&&[e.includes??[]].flat().some(e=>!String(e).startsWith(`!`)&&i.some(t=>f(t,String(e)))))}function Os(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=It(r(i,`utf8`))}catch{return[[`biome:unreadable`,`${c(i)} does not parse.`]]}let o=[];return[a.extends??[]].flat().some(e=>e===`@webority/biome-config/biome.jsonc`||String(e).endsWith(`code-standards/biome.jsonc`))||o.push([`biome:extends`,`${c(i)} does not extend "${so}". react.md: every repo extends the shared preset.`]),a.formatter?.lineEnding&&o.push([`biome:line-ending`,`${c(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&&o.push([`biome:root-rules`,`${c(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`&&!Ds(a,l(i),e,`__DEV__`)&&o.push([`biome:dev-global`,`${c(i)} lacks "__DEV__" in javascript.globals. react-native.md: Debugging and agent access.`]),o}var ks=d(`node_modules`,`@biomejs`,`biome`,`bin`,`biome`);function As(e,t,n){if(e.start?.line)return e.start.line;if(!Array.isArray(e.span))return null;let i=r(d(t,n)),a=1;for(let t=0;t<(e.span[0]??0);t++)i[t]===10&&a++;return a}function js(e){try{return a(e)}catch{return null}}function Ms(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,[d(`node_modules`,i)]),s=o&&js(o);if(!s)return null;let c=ps(d(s,`package.json`));if(!c)return null;let l=(typeof c.exports==`string`?{".":c.exports}:c.exports)?.[a]??(a===`.`?c.module??c.main:null);if(F(l)&&(l=l.import??l.default),typeof l!=`string`)return null;let u=a===`.`&&typeof c.source==`string`?c.source:l.replace(Ns,`src/`);return{pkgDir:s,entry:d(s,l),sourcePath:d(s,u),workspace:Ps(t,s)}}var Ns=/^(?:\.\/)?(?:dist|lib|build)\//;function Ps(e,t){let n;try{n=a(t)}catch{return!1}let r=m(a(e),n);return!r.startsWith(`..`)&&!r.split(/[\\/]/).includes(`node_modules`)}function Fs(e){try{return o(e).isFile()}catch{return!1}}var Is=[`.ts`,`.tsx`,`.js`,`.jsx`,`.mjs`],Ls=[`index.ts`,`index.tsx`,`index.js`,`index.jsx`,`index.mjs`];function Rs(e){let t=e.replace(/\.(?:[cm]?jsx?|tsx?)$/,``);return[e,...Is.map(e=>t+e),...Ls.map(t=>d(e,t))].find(Fs)??null}function zs(e){return e?e.workspace?Rs(e.sourcePath):e.entry:null}function Bs(e,t,n,r){let i=Ms(e,t,n);if(!i)return!1;let a=/* @__PURE__ */ new Set,o=zs(i);return o===null||Ws(o,r,t,a)}function Vs(e,t,n,r){let i=Ks(l(t),n);return i!==null&&Ws(i,r,e,/* @__PURE__ */ new Set)}var Hs=/\bexport\s*(?:(\*)(?:\s*as\s+([\w$]+))?|\{([^}]*)\})(?:\s*from\s*["']([^"']+)["'])?/g,Us=[``,`.js`,`.mjs`,`.cjs`,`.jsx`,`.ts`,`.tsx`,`/index.js`,`/index.mjs`,`/index.jsx`,`/index.ts`,`/index.tsx`];function Ws(e,t,n,i){if(i.has(e))return!1;i.add(e);let a;try{a=r(e,`utf8`)}catch{return!1}if(RegExp(`\\bexport\\s+(?:async\\s+)?(?:const|let|var|function\\*?|class)\\s+${t}\\b`).test(a)||t==="default"&&/\bexport\s+default\b/.test(a)||RegExp(`\\b(?:module\\.)?exports\\.${t}\\s*=|Object\\.defineProperty\\(\\s*(?:module\\.)?exports\\s*,\\s*["']${t}["']|\\bget\\s+${t}\\s*\\(`).test(a))return!0;for(let[,r,o,s,c]of a.matchAll(Hs))if(r){if(o===t||o===void 0&&c!==void 0&&Gs(e,c,t,n,i))return!0}else if(s!==void 0)for(let r of s.split(`,`)){let[a=``,o]=r.trim().replace(/^type\s+/,``).split(/\s+as\s+/);if((o??a)===t&&(c===void 0||Gs(e,c,a,n,i)))return!0}return!1}function Gs(e,t,n,r,i){let a=t.startsWith(`.`)?Ks(l(e),t):zs(Ms(l(e),r,t));return a!==null&&Ws(a,n,r,i)}function Ks(e,t){let n=d(e,t);for(let e of Us)if(o(n+e,{throwIfNoEntry:!1})?.isFile())return n+e;return null}function qs(e,n){let r=L(e,n,[ks]);if(!r)return[];let i=t(d(e,`src`))?`src`:`.`,a=v(process.execPath,[r,`lint`,`--only=correctness/noUnresolvedImports`,`--reporter=json`,`--max-diagnostics=none`,`--colors=off`,i],{cwd:e,encoding:`utf8`,maxBuffer:67108864,windowsHide:!0}),o=Js(a.stdout??``);if(o===null)return[[`missing-export:unreadable`,`Biome's report could not be read: ${String(a.stderr||a.stdout||``).slice(0,200)}`]];let s=/* @__PURE__ */ 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=i[1]??``,o=i[2]??``;if((Object.hasOwn(co,a)?co[a]:void 0)?.includes(o))continue;let c=h(e,String(t.location?.path));if(a.startsWith(`.`)?Vs(n,c,a,o):Bs(e,n,a,o))continue;let l=P(m(e,c)),u=As(t.location??{},e,l),d=u?`${l}:${u}`:l,f=`missing-export:${l}`,p=`${d} imports ${o} from ${a}, which does not export it. Import the name the module exports (a default export is imported without braces).`;s.set(`${f}\0${p}`,[f,p])}return[...s.values()]}function Js(e){try{let t=JSON.parse(e);return!F(t)||!Array.isArray(t.diagnostics)?null:t.diagnostics}catch{return null}}function Ys(e){let t=d(e,`node_modules`,`@webority`,`ui-react`);try{let e=d(t,`package.json`),n=fs(JSON.parse(r(e,`utf8`)),e),i=typeof n.module==`string`?n.module:typeof n.main==`string`?n.main:`dist/index.js`,a=r(d(t,i),`utf8`),o=new Set([...a.matchAll(/App[A-Z][A-Za-z0-9]*/g)].map(e=>e[0]));if(o.size>0)return o}catch(e){if(Xs(e)!==`ENOENT`)throw e}return new Set(lo)}function Xs(e){return F(e)?e.code:void 0}function Zs(e){return i(e,{withFileTypes:!0}).flatMap(t=>t.isDirectory()?Zs(d(e,t.name)):[d(e,t.name)])}function Qs(e){try{return JSON.parse(r(d(e,`package.json`),`utf8`)).name===`@webority/ui-root`}catch{return!1}}function $s(e){let n=d(e,`src`);if(!t(n))return[];let r=Ys(e),i=[];for(let t of Zs(n)){if(![`.jsx`,`.tsx`].includes(u(t)))continue;let n=c(t).split(`.`)[0]??``;if(r.has(n)){let r=P(m(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 ec=/gradle\.startParameter\.taskNames[^\n]*["']release["']/,tc=/throw\s+new\s+GradleException\s*\(/,nc=/^\s*edgeToEdgeEnabled\s*=\s*false\s*$/m;function rc(e){let n=[],i=d(e,`android`,`app`,`build.gradle`);if(t(i)){let e=r(i,`utf8`).replace(/\/\*[\s\S]*?\*\//g,``).replace(/^\s*\/\/.*$/gm,``);ec.test(e)&&tc.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=d(e,`android`,`gradle.properties`);return t(a)&&nc.test(r(a,`utf8`))&&n.push([`android-edge-to-edge`,`android/gradle.properties sets edgeToEdgeEnabled=false. react-native-toolchain.md: set edgeToEdgeEnabled=true.`]),n}var ic=/* @__PURE__ */ new Set([`.js`,`.jsx`,`.mjs`,`.cjs`,`.ts`,`.tsx`]),ac=/\b(?:import|export)\s+type\s+(?:\{[^}]*\}|\*(?:\s+as\s+[\w$]+)?|[\w$]+)\s+from\s*["'][^"']*["']/g;function oc(e,n){let i=d(e,`src`);if(!t(i))return[];let a=[];for(let t of Zs(i)){if(!ic.has(u(t).toLowerCase())||st(P(m(n,t)),n))continue;let i=r(t,`utf8`).split(`
96
96
  `).map(e=>/^\s*(?:\/\/|\/\*|\*)/.test(e)?``:e).join(`
97
- `),o=i.replace(ic,``),s=P(m(e,t));for(let[e,t,n,r]of ro)t.test(o)&&a.push([`${e}:${s}`,`${s} ${n}. ${r}.`]);for(let[e,t,n,r]of io)t.test(i)&&a.push([`${e}:${s}`,`${s} ${n}. ${r}.`])}return a}var oc=`.husky/pre-commit`,sc=[`library`,`tool`],cc=`.webority/settings.json`;function lc(e){let n=d(e,cc);if(t(n)&&!sc.includes(JSON.parse(r(n,`utf8`)).kind))return[];let i=d(e,oc),a=t(i)?r(i,`utf8`).replace(/\r\n/g,`
97
+ `),o=i.replace(ac,``),s=P(m(e,t));for(let[e,t,n,r]of io)t.test(o)&&a.push([`${e}:${s}`,`${s} ${n}. ${r}.`]);for(let[e,t,n,r]of ao)t.test(i)&&a.push([`${e}:${s}`,`${s} ${n}. ${r}.`])}return a}var sc=`.husky/pre-commit`,cc=[`library`,`tool`],lc=`.webority/settings.json`;function uc(e){let n=d(e,lc);if(t(n)&&!cc.includes(JSON.parse(r(n,`utf8`)).kind))return[];let i=d(e,sc),a=t(i)?r(i,`utf8`).replace(/\r\n/g,`
98
98
  `):null;return a===`# Fast only. The expensive verification is \`corepack pnpm check\`, run by hand before pushing
99
99
  # (CLAUDE.md -> Before pushing). A slow pre-commit gets bypassed within a day, and a hook people bypass is worse than none because
100
100
  # it manufactures confidence without providing it.
@@ -155,8 +155,8 @@ local_checks="$cfg/.husky/pre-commit.local"
155
155
  if [ -f "$local_checks" ]; then
156
156
  sh "$local_checks" || exit 1
157
157
  fi
158
- `?[]:[[`hook:drift`,`${oc} ${a===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.`]]}var uc=/* @__PURE__ */ `lint.missing-export.stale-theme-name.advisory.raw-measure.palette-read.raw-colour.root-font-size.raw-motion.dark-read.missing-canvas-key.repeated-canvas-key.raw-bootstrap.library-class-restyle.rename-wrapper.shadowed-library-name.single-use-component.error-summary-title.route-internal-id.razor-page-handler.razor-page-link.web-route-literal.api-thunk.screen-service-import.api-call.oversize`.split(`.`);function dc(e,n=null,r={}){let i=n?new Set(n.map(t=>os(e,t))):null,a=[],o=(e,t)=>{for(let[n,r]of t){let t=n.split(`:`)[0]??``;a.push({pkg:e,id:n,message:r,...uo(t)?{}:{warning:!0}})}};(!i||i.has(`.`))&&o(`.`,[...lc(e),...$o(e,hs(e)),...ns(e)]);for(let n of I(e,[`package-lock.json`,`yarn.lock`])){if(!t(d(e,n)))continue;let r=P(l(n))||`.`;(!i||i.has(r))&&o(r,[[`pnpm:${c(n)}`,`${c(n)} is committed. react.md: pnpm only; seed pnpm-lock.yaml with pnpm import, then delete it.`]])}let s=new Set(I(e,[`package.json`]).map(t=>os(e,d(e,l(t)))).filter(e=>!/(^|\/)fixtures\//.test(e)));for(let n of i??[])t(d(e,n,`package.json`))&&s.add(n);let u=r.build===!0,f=Zs(e),p=Zo(e),m=hs(e),h=/* @__PURE__ */ new Set;for(let t of s){if(i&&!i.has(t))continue;let n=d(e,t),s=fs(d(n,`package.json`));if(s===null)throw Error(`webority-repo-checks: ${t}/package.json is missing.`);let c=gs(s,n),l=()=>f&&(t.startsWith(`packages/`)||t.startsWith(`samples/`))?[]:Qs(n),g=!(f&&(t.startsWith(`packages/`)||t.startsWith(`samples/`)));if(!c){({...s.dependencies,...s.devDependencies,...s.peerDependencies})[`@webority/ui-react`]&&o(t,l());continue}let _=L(n,e,[`pnpm-lock.yaml`]);_&&h.add(_);let v=Ts(n,e).filter(([e])=>!a.some(n=>n.pkg===t&&n.id===e));o(t,[...xs(s,c,Cs(n,e,{...s.dependencies,...s.devDependencies})),...v,...Ds(n,e,c),...Go(e,n,p).map(([e,t])=>[e,t]),...Jo(e,m.filter(e=>t===`.`||e.startsWith(`${t}/`)),p).map(([e,t])=>[e,t]),...c===`demo`||u?[]:Ks(n,e),...c===`mobile`?[...nc(n),...Ma(n),...La(n)]:[],...c===`mobile`&&!t.startsWith(`samples/`)?[...ga(n),...yn(n),...wa(n,as())]:[],...c===`web`?[...l(),...ac(n,e),...Ba(n),...g?[...Pe(n),...Qt(n),...Ka(n,e),...rs(n)]:[],...u?[]:wo(n,e)]:[],...c===`mobile`||c===`web`?Pt(n):[],...c===`mobile`||c===`web`?De(n):[],...u||r.skipLint===!0?[]:en(n,L(n,e,[Os]))])}if(r.advisories===!0&&!u)for(let t of h){let n=l(t);for(let t of Tt(n,r.auditRun===void 0?{}:{run:r.auditRun})){let r=t.warning||!uo(`advisory`);a.push({pkg:os(e,n),id:t.id,message:t.message,...r?{warning:!0}:{}})}}return a}var fc=/(?:\bfrom\s*|\brequire\(\s*)["'](?:react-native|@webority\/mobile-ui|@webority\/ui-react)(?:\/[^"']*)?["']/,pc=`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.`,mc=`A Canvas key names one element: give each part its own key, or a key from its record inside a list.`,hc=/<([A-Za-z][\w$.:-]*)/g,gc=/\{\s*\.\.\./y,_c=/* @__PURE__ */ new Set([`Fragment`,`React.Fragment`]),vc=/\.(?:Screen|Group)$/,yc=/=>/g,bc=/\bfunction\b/g,xc=/\breturn\b/y;function Sc(e){return e?gt.phone:gt.web}var Cc=/\bexport\s+default\s+(?:function\s+([A-Z][\w$]*)|(?:React\.)?(?:memo|forwardRef)\(\s*(?:function\s+)?([A-Z][\w$]*)|([A-Z][\w$]*)\s*;?\s*$)/m;function wc(e,{phone:t}){let n=Ec(e),r=Oc(n,RegExp(`(?<![\\w-])${Sc(t)}\\s*=`),{spreadCounts:!1}),i=/* @__PURE__ */ new Set;for(let e of r)RegExp(`\\bexport\\s+(?:const|function)\\s+${e}\\b|\\bexport\\s*\\{[^}]*\\b${e}\\b`).test(n)&&i.add(e);let a=Cc.exec(n),o=a&&(a[1]??a[2]??a[3]);return o&&r.has(o)&&i.add(`default`),i}function Tc(e,{phone:t,keyedImports:n=/* @__PURE__ */ new Set}){if(!fc.test(e))return[];let r=Sc(t),i=RegExp(`(?<![\\w-])${r}\\s*=`),a=RegExp(`(?<![\\w-])${r}\\s*=\\s*(["'])`),o=Ec(e),s=e.split(`
159
- `),c=Vc(e),l=[],u=(e,t,n)=>{let r=Hc(c,e);l.push({rule:t,line:r,text:(s[r-1]??``).trim().slice(0,160),hint:n})},d=Oc(o,i);for(let e of o.matchAll(/\.map\(/g)){let t=e.index+e[0].length-1,r=Lc(o,t),a=kc(o,t+1,r);if(!a||vc.test(a.name))continue;let s=Bc(o,a.nameEnd);s.spread||i.test(s.top)||d.has(a.name)||n.has(a.name)||u(a.index,`missing-canvas-key`,pc)}let f=/* @__PURE__ */ new Map,p=R(o,0);for(;p;){let t=Bc(o,p.nameEnd),n=a.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=f.get(n)??[];r.push(p.index),f.set(n,r)}}p=R(o,p.nameEnd)}for(let e of f.values())for(let t of e.slice(1))u(t,`repeated-canvas-key`,mc);return l.sort((e,t)=>e.line-t.line||e.rule.localeCompare(t.rule)),l}function Ec(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]!==`
158
+ `?[]:[[`hook:drift`,`${sc} ${a===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.`]]}var dc=/* @__PURE__ */ `lint.missing-export.stale-theme-name.advisory.raw-measure.palette-read.raw-colour.root-font-size.raw-motion.dark-read.missing-canvas-key.repeated-canvas-key.raw-bootstrap.library-class-restyle.rename-wrapper.shadowed-library-name.single-use-component.error-summary-title.route-internal-id.razor-page-handler.razor-page-link.web-route-literal.api-thunk.screen-service-import.api-call.oversize`.split(`.`);function fc(e,n=null,r={}){let i=n?new Set(n.map(t=>ss(e,t))):null,a=[],o=(e,t)=>{for(let[n,r]of t){let t=n.split(`:`)[0]??``;a.push({pkg:e,id:n,message:r,...fo(t)?{}:{warning:!0}})}};(!i||i.has(`.`))&&o(`.`,[...uc(e),...es(e,gs(e)),...rs(e)]);for(let n of I(e,[`package-lock.json`,`yarn.lock`])){if(!t(d(e,n)))continue;let r=P(l(n))||`.`;(!i||i.has(r))&&o(r,[[`pnpm:${c(n)}`,`${c(n)} is committed. react.md: pnpm only; seed pnpm-lock.yaml with pnpm import, then delete it.`]])}let s=new Set(I(e,[`package.json`]).map(t=>ss(e,d(e,l(t)))).filter(e=>!/(^|\/)fixtures\//.test(e)));for(let n of i??[])t(d(e,n,`package.json`))&&s.add(n);let u=r.build===!0,f=Qs(e),p=Qo(e),m=gs(e),h=/* @__PURE__ */ new Set;for(let t of s){if(i&&!i.has(t))continue;let n=d(e,t),s=ps(d(n,`package.json`));if(s===null)throw Error(`webority-repo-checks: ${t}/package.json is missing.`);let c=_s(s,n),l=()=>f&&(t.startsWith(`packages/`)||t.startsWith(`samples/`))?[]:$s(n),g=!(f&&(t.startsWith(`packages/`)||t.startsWith(`samples/`)));if(!c){({...s.dependencies,...s.devDependencies,...s.peerDependencies})[`@webority/ui-react`]&&o(t,l());continue}let _=L(n,e,[`pnpm-lock.yaml`]);_&&h.add(_);let v=Es(n,e).filter(([e])=>!a.some(n=>n.pkg===t&&n.id===e));o(t,[...Ss(s,c,ws(n,e,{...s.dependencies,...s.devDependencies})),...v,...Os(n,e,c),...Ko(e,n,p).map(([e,t])=>[e,t]),...Yo(e,m.filter(e=>t===`.`||e.startsWith(`${t}/`)),p).map(([e,t])=>[e,t]),...c===`demo`||u?[]:qs(n,e),...c===`mobile`?[...rc(n),...Ma(n),...Ra(n)]:[],...c===`mobile`&&!t.startsWith(`samples/`)?[...ga(n),...yn(n),...wa(n,os())]:[],...c===`web`?[...l(),...oc(n,e),...Va(n),...g?[...Pe(n),...Qt(n),...qa(n,e),...is(n)]:[],...u?[]:To(n,e)]:[],...c===`mobile`||c===`web`?Pt(n):[],...c===`mobile`||c===`web`?De(n):[],...u||r.skipLint===!0?[]:en(n,L(n,e,[ks]))])}if(r.advisories===!0&&!u)for(let t of h){let n=l(t);for(let t of Tt(n,r.auditRun===void 0?{}:{run:r.auditRun})){let r=t.warning||!fo(`advisory`);a.push({pkg:ss(e,n),id:t.id,message:t.message,...r?{warning:!0}:{}})}}return a}var pc=/(?:\bfrom\s*|\brequire\(\s*)["'](?:react-native|@webority\/mobile-ui|@webority\/ui-react)(?:\/[^"']*)?["']/,mc=`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.`,hc=`A Canvas key names one element: give each part its own key, or a key from its record inside a list.`,gc=/<([A-Za-z][\w$.:-]*)/g,_c=/\{\s*\.\.\./y,vc=/* @__PURE__ */ new Set([`Fragment`,`React.Fragment`]),yc=/\.(?:Screen|Group)$/,bc=/=>/g,xc=/\bfunction\b/g,Sc=/\breturn\b/y;function Cc(e){return e?gt.phone:gt.web}var wc=/\bexport\s+default\s+(?:function\s+([A-Z][\w$]*)|(?:React\.)?(?:memo|forwardRef)\(\s*(?:function\s+)?([A-Z][\w$]*)|([A-Z][\w$]*)\s*;?\s*$)/m;function Tc(e,{phone:t}){let n=Dc(e),r=kc(n,RegExp(`(?<![\\w-])${Cc(t)}\\s*=`),{spreadCounts:!1}),i=/* @__PURE__ */ new Set;for(let e of r)RegExp(`\\bexport\\s+(?:const|function)\\s+${e}\\b|\\bexport\\s*\\{[^}]*\\b${e}\\b`).test(n)&&i.add(e);let a=wc.exec(n),o=a&&(a[1]??a[2]??a[3]);return o&&r.has(o)&&i.add(`default`),i}function Ec(e,{phone:t,keyedImports:n=/* @__PURE__ */ new Set}){if(!pc.test(e))return[];let r=Cc(t),i=RegExp(`(?<![\\w-])${r}\\s*=`),a=RegExp(`(?<![\\w-])${r}\\s*=\\s*(["'])`),o=Dc(e),s=e.split(`
159
+ `),c=Hc(e),l=[],u=(e,t,n)=>{let r=Uc(c,e);l.push({rule:t,line:r,text:(s[r-1]??``).trim().slice(0,160),hint:n})},d=kc(o,i);for(let e of o.matchAll(/\.map\(/g)){let t=e.index+e[0].length-1,r=Rc(o,t),a=Ac(o,t+1,r);if(!a||yc.test(a.name))continue;let s=Vc(o,a.nameEnd);s.spread||i.test(s.top)||d.has(a.name)||n.has(a.name)||u(a.index,`missing-canvas-key`,mc)}let f=/* @__PURE__ */ new Map,p=R(o,0);for(;p;){let t=Vc(o,p.nameEnd),n=a.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=f.get(n)??[];r.push(p.index),f.set(n,r)}}p=R(o,p.nameEnd)}for(let e of f.values())for(let t of e.slice(1))u(t,`repeated-canvas-key`,hc);return l.sort((e,t)=>e.line-t.line||e.rule.localeCompare(t.rule)),l}function Dc(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]!==`
160
160
  `;)t.push(` `),r++;else if(i===`/`&&a===`*`){for(t.push(` `,` `),r+=2;r<n&&(e[r]!==`*`||e[r+1]!==`/`);)t.push(e[r]===`
161
161
  `?`
162
162
  `:` `),r++;r<n&&(t.push(` `,` `),r+=2)}else if(i===`'`||i===`"`){for(t.push(i),r++;r<n&&e[r]!==i&&e[r]!==`
@@ -164,36 +164,36 @@ fi
164
164
  `?(t.push(` `,` `),r+=2):(t.push(` `),r++);r<n&&e[r]===i&&(t.push(i),r++)}else if(i==="`"){for(t.push(i),r++;r<n&&e[r]!=="`";)e[r]===`\\`&&r+1<n&&e[r+1]!==`
165
165
  `?(t.push(` `,` `),r+=2):(t.push(e[r]===`
166
166
  `?`
167
- `:` `),r++);r<n&&(t.push("`"),r++)}else t.push(i),r++}return t.join(``)}var Dc=/\bfunction\s+([A-Z][\w$]*)\s*\(|\bconst\s+([A-Z][\w$]*)\s*=\s*(?:memo\(\s*|forwardRef\(\s*)?(?:\([^)]*\)|[\w$]+)\s*=>/g;function Oc(e,t,{spreadCounts:n=!0}={}){let r=/* @__PURE__ */ new Set;for(let i of e.matchAll(Dc)){let a=R(e,i.index+i[0].length);for(;a&&_c.has(a.name);)a=R(e,a.nameEnd);if(!a)continue;let o=Bc(e,a.nameEnd);(n&&o.spread||t.test(o.top))&&r.add(i[1]??i[2]??``)}return r}function kc(e,t,n){let r=Ac(e,t,n);if(!r.block)return Fc(e,r.start,n);let i=jc(e,r.start,n);for(let t=0;t<i.length;t++){let r=t+1<i.length?i[t+1]??n:n,a=Fc(e,i[t]??n,r);if(a)return a}return null}function Ac(e,t,n){yc.lastIndex=t;let r=yc.exec(e);bc.lastIndex=t;let i=bc.exec(e),a=r&&r.index<n?r.index:-1,o=i&&i.index<n?i.index:-1;if(o!==-1&&(a===-1||o<a)){let r=e.indexOf(`(`,o),i=r===-1?-1:e.indexOf(`{`,Pc(e,r));return i===-1||i>=n?{start:t,block:!1}:{start:i+1,block:!0}}if(a===-1)return{start:t,block:!1};let s=a+2;for(;s<n&&/\s/.test(e[s]??``);)s++;return e[s]===`{`?{start:s+1,block:!0}:{start:s,block:!1}}function jc(e,t,n){let r=[],i=t;for(;i<n;){let t=e[i]??``;if(t===`{`&&Mc(e,i))i=Nc(e,i)+1;else if(xc.lastIndex=i,t===`r`&&xc.test(e)){let t=i+6;for(;t<n&&(e[t]===` `||e[t]===` `);)t++;t<n&&!`;
168
- \r})`.includes(e[t]??``)&&r.push(t),i=t}else i++}return r}function Mc(e,t){let n=t-1;for(;n>=0&&/\s/.test(e[n]??``);)n--;if(n>=1&&e[n]===`>`&&e[n-1]===`=`)return!0;if(e[n]!==`)`)return!1;let r=0;for(;n>=0;n--)if(e[n]===`)`)r++;else if(e[n]===`(`&&--r===0)break;let i=e.slice(Math.max(0,n-80),n);return/\bfunction\b(?:\s+[\w$]+)?\s*$/.test(i)}function Nc(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`{`)n++;else if(e[r]===`}`&&--n===0)return r;return e.length}function Pc(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`(`)n++;else if(e[r]===`)`&&--n===0)return r;return e.length}function Fc(e,t,n){let r=R(e,t);for(;r&&r.index<n&&_c.has(r.name);)r=R(e,r.nameEnd);return!r||r.index>=n||Ic(e,t,r.index)>0?null:r}function Ic(e,t,n){let r=0;for(let i=t;i<n;i++)e[i]===`{`?r++:e[i]===`}`&&r>0&&r--;return r}function Lc(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*Rc(e,t){hc.lastIndex=t;for(let t=hc.exec(e);t;t=hc.exec(e))zc(e,t.index)||(yield{index:t.index,name:t[1]??``,nameEnd:t.index+t[0].length})}function R(e,t){for(let n of Rc(e,t))return n;return null}function zc(e,t){return/[\w$.)\]]/.test(e.charAt(t-1))}function Bc(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===`{`&&(gc.lastIndex=a,gc.test(e)&&(i=!0),n++),r+=t):(r+=` `,t===`{`?n++:t===`}`&&n--)}return{top:r,spread:i,from:t}}function Vc(e){let t=[0];for(let n=0;n<e.length;n++)e[n]===`
169
- `&&t.push(n+1);return t}function Hc(e,t){let n=0,r=e.length-1;for(;n<=r;){let i=n+r>>1;(e[i]??0)<=t?n=i+1:r=i-1}return r+1}var Uc=[`.js`,`.jsx`,`.ts`,`.tsx`],Wc=/\.(?:js|jsx|ts|tsx)$/,Gc=/(?:^|\/)index\.[jt]sx?$/,Kc=/\.meta\.[jt]sx?$|\.stories\.[jt]sx?$/,qc=/(?:<partial\s+name="([^"]+)"|\bPartial(?:Async)?\(\s*"([^"]+)"|\bLayout\s*=\s*"([^"]+)")/g,Jc=/"([^"\\\n]*)"/g,Yc=new RegExp(String.raw`\b(?:${`TopbarEndPartial`})\s*=\s*"(_[^"\\\n]*)"`,`g`),Xc=/^_[\w.-]+$/,Zc=/(?:ProjectReference\s+Include|Project\s+Path)="([^"]+)"/g,Qc=/(?:^|\/)src\/components\/([^/]+)\/[^/]+$/,$c=/(?:^|\/)Pages\/Shared\/(_[^/]+)\.cshtml$/,el=/(?:^|\/)[^/]+\.Web\.Common\/[^/]+\.csproj$/,tl=/(?:^|\/)_ViewStart\.cshtml$/,nl=/\bLayout\s*=\s*"([^"]+)"/g,rl=/(?:^|\/)_[^/]*Layout\.cshtml$/,il=/^\s*@\*\s*layering-allow\s+([a-z-]+)\s*(?::\s*(.*?))?\s*\*@\s*$/;function al(e,n){let i=new Set(n),a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Map,s=/* @__PURE__ */ new Map,c=/* @__PURE__ */ new Map,u=t=>{let n=c.get(t);if(n)return n;let r=E(e,t);return c.set(t,r),r},f=/* @__PURE__ */ new Map,m=e=>{if(!Gc.test(e))return null;let t=f.get(e);if(t)return t;let n=/* @__PURE__ */ new Map,r=[];for(let t of D(u(e))){if(t.kind!==`export-from`)continue;let a=cl(e,t.specifier,i);if(a!==null)for(let{name:e,local:i}of t.imported)e===`*`&&i===`*`?r.push(a):n.set(i,a)}let a={named:n,star:r};return f.set(e,a),a},h=(e,t)=>RegExp(`export\\s+(?:const|let|var|function\\*?|class)\\s+${t}\\b|export\\s*\\{[^}]*\\b${t}\\b`).test(u(e).blanked);for(let e of n)if(Wc.test(e)&&!Kc.test(e))for(let t of D(u(e))){let n=cl(e,t.specifier,i);if(n===null)continue;let r=t.kind===`export-from`?null:m(n);if(!r){t.kind===`export-from`&&Gc.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)}let g=/* @__PURE__ */ new Set;for(let t of n){if(!Wc.test(t)&&!t.endsWith(`.cshtml`))continue;let n=ol(r(d(e,t),`utf8`));for(let e of n.matchAll(qc)){let n=sl(e[1]??e[2]??e[3]??``);z(o,n,t),rl.test(t)&&g.add(n)}}let _=I(e,[`*.cs`,`*.csproj`,`*.sln`,`*.slnx`]).filter(n=>t(d(e,n)));for(let t of _){let n=r(d(e,t),`utf8`);if(t.endsWith(`.cs`)){let e=ol(n);for(let t of e.matchAll(Yc))t[1]!==void 0&&g.add(t[1]);for(let n of e.matchAll(Jc)){let e=sl(n[1]??``);Xc.test(e)&&z(o,e,t)}}else for(let e of n.matchAll(Zc))z(s,p.normalize(p.join(l(t),(e[1]??``).replace(/\\/g,`/`))),t)}let v=new Set(_.filter(e=>e.endsWith(`.csproj`)).map(e=>p.dirname(e))),y=/* @__PURE__ */ new Map;for(let t of n){if(!tl.test(t))continue;let n=ol(r(d(e,t),`utf8`));for(let e of n.matchAll(nl))z(y,pl(t,v),sl(e[1]??``))}let b=[];for(let e of n){if(!Wc.test(e)||!dl(e))continue;let t=ll(a,e,e),n=t>=2||t===1&&fl(a,e),r=`used by ${t} other file${t===1?``:`s`}`;for(let t of O(`single-use-component`,u(e),n?[]:[{line:1,message:r}]))b.push({rule:`single-use-component`,file:e,line:1,text:t.message,hint:t.message===r?`move it next to the page that uses it`:null})}for(let t of n){let n=$c.exec(t);if(!n)continue;let i=n[1]??``,a=ml(r(d(e,t),`utf8`));a===``&&b.push({rule:`single-use-component`,file:t,line:1,text:`layering-allow needs a reason`,hint:null});let s=rl.test(t)||g.has(i)||(y.get(pl(t,v))?.has(i)??!1);a||s||ul(b,t,ll(o,i,t))}for(let e of _)e.endsWith(`.csproj`)&&el.test(e)&&ul(b,e,ll(s,e,e));return b}function ol(e){return e.split(`
167
+ `:` `),r++);r<n&&(t.push("`"),r++)}else t.push(i),r++}return t.join(``)}var Oc=/\bfunction\s+([A-Z][\w$]*)\s*\(|\bconst\s+([A-Z][\w$]*)\s*=\s*(?:memo\(\s*|forwardRef\(\s*)?(?:\([^)]*\)|[\w$]+)\s*=>/g;function kc(e,t,{spreadCounts:n=!0}={}){let r=/* @__PURE__ */ new Set;for(let i of e.matchAll(Oc)){let a=R(e,i.index+i[0].length);for(;a&&vc.has(a.name);)a=R(e,a.nameEnd);if(!a)continue;let o=Vc(e,a.nameEnd);(n&&o.spread||t.test(o.top))&&r.add(i[1]??i[2]??``)}return r}function Ac(e,t,n){let r=jc(e,t,n);if(!r.block)return Ic(e,r.start,n);let i=Mc(e,r.start,n);for(let t=0;t<i.length;t++){let r=t+1<i.length?i[t+1]??n:n,a=Ic(e,i[t]??n,r);if(a)return a}return null}function jc(e,t,n){bc.lastIndex=t;let r=bc.exec(e);xc.lastIndex=t;let i=xc.exec(e),a=r&&r.index<n?r.index:-1,o=i&&i.index<n?i.index:-1;if(o!==-1&&(a===-1||o<a)){let r=e.indexOf(`(`,o),i=r===-1?-1:e.indexOf(`{`,Fc(e,r));return i===-1||i>=n?{start:t,block:!1}:{start:i+1,block:!0}}if(a===-1)return{start:t,block:!1};let s=a+2;for(;s<n&&/\s/.test(e[s]??``);)s++;return e[s]===`{`?{start:s+1,block:!0}:{start:s,block:!1}}function Mc(e,t,n){let r=[],i=t;for(;i<n;){let t=e[i]??``;if(t===`{`&&Nc(e,i))i=Pc(e,i)+1;else if(Sc.lastIndex=i,t===`r`&&Sc.test(e)){let t=i+6;for(;t<n&&(e[t]===` `||e[t]===` `);)t++;t<n&&!`;
168
+ \r})`.includes(e[t]??``)&&r.push(t),i=t}else i++}return r}function Nc(e,t){let n=t-1;for(;n>=0&&/\s/.test(e[n]??``);)n--;if(n>=1&&e[n]===`>`&&e[n-1]===`=`)return!0;if(e[n]!==`)`)return!1;let r=0;for(;n>=0;n--)if(e[n]===`)`)r++;else if(e[n]===`(`&&--r===0)break;let i=e.slice(Math.max(0,n-80),n);return/\bfunction\b(?:\s+[\w$]+)?\s*$/.test(i)}function Pc(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`{`)n++;else if(e[r]===`}`&&--n===0)return r;return e.length}function Fc(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`(`)n++;else if(e[r]===`)`&&--n===0)return r;return e.length}function Ic(e,t,n){let r=R(e,t);for(;r&&r.index<n&&vc.has(r.name);)r=R(e,r.nameEnd);return!r||r.index>=n||Lc(e,t,r.index)>0?null:r}function Lc(e,t,n){let r=0;for(let i=t;i<n;i++)e[i]===`{`?r++:e[i]===`}`&&r>0&&r--;return r}function Rc(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*zc(e,t){gc.lastIndex=t;for(let t=gc.exec(e);t;t=gc.exec(e))Bc(e,t.index)||(yield{index:t.index,name:t[1]??``,nameEnd:t.index+t[0].length})}function R(e,t){for(let n of zc(e,t))return n;return null}function Bc(e,t){return/[\w$.)\]]/.test(e.charAt(t-1))}function Vc(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===`{`&&(_c.lastIndex=a,_c.test(e)&&(i=!0),n++),r+=t):(r+=` `,t===`{`?n++:t===`}`&&n--)}return{top:r,spread:i,from:t}}function Hc(e){let t=[0];for(let n=0;n<e.length;n++)e[n]===`
169
+ `&&t.push(n+1);return t}function Uc(e,t){let n=0,r=e.length-1;for(;n<=r;){let i=n+r>>1;(e[i]??0)<=t?n=i+1:r=i-1}return r+1}var Wc=[`.js`,`.jsx`,`.ts`,`.tsx`],Gc=/\.(?:js|jsx|ts|tsx)$/,Kc=/(?:^|\/)index\.[jt]sx?$/,qc=/\.meta\.[jt]sx?$|\.stories\.[jt]sx?$/,Jc=/(?:<partial\s+name="([^"]+)"|\bPartial(?:Async)?\(\s*"([^"]+)"|\bLayout\s*=\s*"([^"]+)")/g,Yc=/"([^"\\\n]*)"/g,Xc=new RegExp(String.raw`\b(?:${`TopbarEndPartial`})\s*=\s*"(_[^"\\\n]*)"`,`g`),Zc=/^_[\w.-]+$/,Qc=/(?:ProjectReference\s+Include|Project\s+Path)="([^"]+)"/g,$c=/(?:^|\/)src\/components\/([^/]+)\/[^/]+$/,el=/(?:^|\/)Pages\/Shared\/(_[^/]+)\.cshtml$/,tl=/(?:^|\/)[^/]+\.Web\.Common\/[^/]+\.csproj$/,nl=/(?:^|\/)_ViewStart\.cshtml$/,rl=/\bLayout\s*=\s*"([^"]+)"/g,il=/(?:^|\/)_[^/]*Layout\.cshtml$/,al=/^\s*@\*\s*layering-allow\s+([a-z-]+)\s*(?::\s*(.*?))?\s*\*@\s*$/;function ol(e,n){let i=new Set(n),a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Map,s=/* @__PURE__ */ new Map,c=/* @__PURE__ */ new Map,u=t=>{let n=c.get(t);if(n)return n;let r=E(e,t);return c.set(t,r),r},f=/* @__PURE__ */ new Map,m=e=>{if(!Kc.test(e))return null;let t=f.get(e);if(t)return t;let n=/* @__PURE__ */ new Map,r=[];for(let t of D(u(e))){if(t.kind!==`export-from`)continue;let a=ll(e,t.specifier,i);if(a!==null)for(let{name:e,local:i}of t.imported)e===`*`&&i===`*`?r.push(a):n.set(i,a)}let a={named:n,star:r};return f.set(e,a),a},h=(e,t)=>RegExp(`export\\s+(?:const|let|var|function\\*?|class)\\s+${t}\\b|export\\s*\\{[^}]*\\b${t}\\b`).test(u(e).blanked);for(let e of n)if(Gc.test(e)&&!qc.test(e))for(let t of D(u(e))){let n=ll(e,t.specifier,i);if(n===null)continue;let r=t.kind===`export-from`?null:m(n);if(!r){t.kind===`export-from`&&Kc.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)}let g=/* @__PURE__ */ new Set;for(let t of n){if(!Gc.test(t)&&!t.endsWith(`.cshtml`))continue;let n=sl(r(d(e,t),`utf8`));for(let e of n.matchAll(Jc)){let n=cl(e[1]??e[2]??e[3]??``);z(o,n,t),il.test(t)&&g.add(n)}}let _=I(e,[`*.cs`,`*.csproj`,`*.sln`,`*.slnx`]).filter(n=>t(d(e,n)));for(let t of _){let n=r(d(e,t),`utf8`);if(t.endsWith(`.cs`)){let e=sl(n);for(let t of e.matchAll(Xc))t[1]!==void 0&&g.add(t[1]);for(let n of e.matchAll(Yc)){let e=cl(n[1]??``);Zc.test(e)&&z(o,e,t)}}else for(let e of n.matchAll(Qc))z(s,p.normalize(p.join(l(t),(e[1]??``).replace(/\\/g,`/`))),t)}let v=new Set(_.filter(e=>e.endsWith(`.csproj`)).map(e=>p.dirname(e))),y=/* @__PURE__ */ new Map;for(let t of n){if(!nl.test(t))continue;let n=sl(r(d(e,t),`utf8`));for(let e of n.matchAll(rl))z(y,ml(t,v),cl(e[1]??``))}let b=[];for(let e of n){if(!Gc.test(e)||!fl(e))continue;let t=ul(a,e,e),n=t>=2||t===1&&pl(a,e),r=`used by ${t} other file${t===1?``:`s`}`;for(let t of O(`single-use-component`,u(e),n?[]:[{line:1,message:r}]))b.push({rule:`single-use-component`,file:e,line:1,text:t.message,hint:t.message===r?`move it next to the page that uses it`:null})}for(let t of n){let n=el.exec(t);if(!n)continue;let i=n[1]??``,a=hl(r(d(e,t),`utf8`));a===``&&b.push({rule:`single-use-component`,file:t,line:1,text:`layering-allow needs a reason`,hint:null});let s=il.test(t)||g.has(i)||(y.get(ml(t,v))?.has(i)??!1);a||s||dl(b,t,ul(o,i,t))}for(let e of _)e.endsWith(`.csproj`)&&tl.test(e)&&dl(b,e,ul(s,e,e));return b}function sl(e){return e.split(`
170
170
  `).filter(e=>!/^\s*(?:\/\/|\/\*|\*)/.test(e)).join(`
171
- `)}function sl(e){return(e.split(`/`).pop()??``).replace(/\.cshtml$/,``)}function cl(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=p.normalize(p.join(p.dirname(e),t));else return null;return[r,...Uc.map(e=>r+e),...Uc.map(e=>p.join(r,`index${e}`))].find(e=>n.has(e))??null}function z(e,t,n){if(t===null)return;let r=e.get(t)??/* @__PURE__ */ new Set;r.add(n),e.set(t,r)}function ll(e,t,n){return[...e.get(t)??/* @__PURE__ */ new Set].filter(e=>e!==n).length}function ul(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 dl(e){let t=Qc.exec(e);return t!==null&&t[1]!==`layout`&&!Gc.test(e)&&!Kc.test(e)}function fl(e,t){let n=[...e.get(t)??[]].filter(e=>e!==t);return n.length===1&&dl(n[0]??``)&&ll(e,n[0]??``,n[0]??``)>=2}function pl(e,t){let n=p.dirname(e);for(;n!==`.`&&!t.has(n);)n=p.dirname(n);return n}function ml(e){let t=il.exec(e.split(`
172
- `,1)[0]??``);return t?.[1]===`single-use-component`?(t[2]??``).trim():null}var hl=`error-summary-title`,gl=/<app-error-summary(?=[\s/>])/g,_l=/(?<![\w-])title\s*=\s*(?:"([^"]*)"|'([^']*)')/,vl=/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 yl(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 bl(e){let t=w(e,`markup`),n=e.split(`
173
- `),r=[];for(let e of t.matchAll(gl)){let i=_l.exec(t.slice(e.index,yl(t,e.index)));if(!i)continue;let a=i[1]??i[2]??``;if(a.includes(`@`)||!vl.test(a))continue;let o=t.slice(0,e.index).split(`
174
- `).length;r.push({rule:hl,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 xl=/\.([A-Za-z_][\w-]*)/g,Sl=/[^\s>+~,]+/g,Cl=/^\s*(?:,|$)/;function*wl(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 Tl(e,t,n){let r=w(e,t),i=e.split(`
175
- `),a=[];for(let e of wl(r)){let t=El(e.text,n);if(!t)continue;let o=r.slice(0,e.index+t.index).split(`
176
- `).length;a.push({rule:`library-class-restyle`,line:o,text:(i[o-1]??``).trim().slice(0,160),hint:`restyles library class .${t.name}; use a library prop or token, or a product class`})}return a}function El(e,t){for(let n of e.matchAll(Sl))if(Cl.test(e.slice(n.index+n[0].length))){for(let e of n[0].matchAll(xl))if(t.has(e[1]??``))return{index:n.index+e.index,name:e[1]??``}}return null}var Dl=/*#__PURE__*/ JSON.parse(`["accordion","accordion-body","accordion-button","accordion-collapse","accordion-flush","accordion-header","accordion-item","alert","alert-accent","alert-action","alert-borderless","alert-content","alert-danger","alert-dark","alert-dismissible","alert-has-action","alert-has-icon","alert-heading","alert-icon","alert-icon-image","alert-info","alert-lg","alert-light","alert-link","alert-neutral","alert-primary","alert-secondary","alert-sm","alert-stack","alert-success","alert-warning","app-content","app-footer","app-main","app-nav-badge","app-nav-caret","app-nav-group","app-nav-group-label","app-nav-icon","app-nav-item","app-nav-sub","app-nav-sub-inner","app-nav-subitem","app-nav-text","app-nav-trailing","app-phone-number-input","app-popover","app-scrim","app-shell","app-sidebar","app-sidebar-brand","app-sidebar-brand-text","app-sidebar-foot","app-sidebar-scroll","app-sidebar-start","app-sidebar-start-compact","app-sidebar-toggle","app-tab","app-tab-count","app-tab-icon","app-tab-img","app-tab-indicator","app-tabs","app-tabs-fitted","app-tabs-group","app-tabs-lg","app-tabs-pills","app-tabs-scroll-btn","app-tabs-sm","app-tabs-vertical","app-tabs-wrap","app-topbar","app-topbar-end","app-topbar-menu","app-topbar-start","badge","badge-danger","badge-dot","badge-info","badge-primary","badge-success","badge-warning","breadcrumb","breadcrumb-item","btn","btn-anim-expand","btn-anim-fill","btn-anim-glow","btn-anim-none","btn-anim-roll","btn-anim-sheen","btn-check","btn-close","btn-close-white","btn-danger","btn-dark","btn-ghost-danger","btn-ghost-info","btn-ghost-neutral","btn-ghost-primary","btn-ghost-success","btn-ghost-warning","btn-glass","btn-group","btn-group-lg","btn-group-sm","btn-group-vertical","btn-icon","btn-info","btn-lg","btn-light","btn-link","btn-link-danger","btn-link-info","btn-link-neutral","btn-link-primary","btn-link-success","btn-link-warning","btn-neutral","btn-outline-danger","btn-outline-dark","btn-outline-info","btn-outline-light","btn-outline-neutral","btn-outline-primary","btn-outline-secondary","btn-outline-success","btn-outline-warning","btn-pill","btn-pill-sm","btn-primary","btn-radius-xl","btn-secondary","btn-sm","btn-soft-danger","btn-soft-info","btn-soft-neutral","btn-soft-primary","btn-soft-success","btn-soft-warning","btn-static","btn-success","btn-toolbar","btn-warning","btn-xl","card","card-accent","card-body","card-clickable","card-close","card-compact","card-constrained","card-divided","card-elevated","card-flush","card-footer","card-group","card-header","card-header-actions","card-header-icon","card-header-main","card-header-pills","card-header-tabs","card-header-titles","card-img","card-img-bottom","card-img-overlay","card-img-top","card-lifted","card-link","card-media","card-muted","card-outlined","card-pad-lg","card-pad-none","card-pad-sm","card-subtitle","card-text","card-title","dropdown","dropdown-center","dropdown-divider","dropdown-header","dropdown-item","dropdown-item-text","dropdown-menu","dropdown-menu-dark","dropdown-menu-end","dropdown-menu-lg-end","dropdown-menu-lg-start","dropdown-menu-md-end","dropdown-menu-md-start","dropdown-menu-sm-end","dropdown-menu-sm-start","dropdown-menu-start","dropdown-menu-xl-end","dropdown-menu-xl-start","dropdown-menu-xxl-end","dropdown-menu-xxl-start","dropdown-search-icon","dropdown-search-input","dropdown-search-wrapper","dropdown-toggle","dropdown-toggle-split","form-check","form-check-circle","form-check-inline","form-check-input","form-check-label","form-check-lg","form-check-reverse","form-check-sm","form-control","form-control-color","form-control-lg","form-control-plaintext","form-control-sm","form-label","form-select","form-select-lg","form-select-sm","form-text","input-group","input-group-lg","input-group-sm","input-group-text","list-group","list-group-flush","list-group-horizontal","list-group-horizontal-lg","list-group-horizontal-md","list-group-horizontal-sm","list-group-horizontal-xl","list-group-horizontal-xxl","list-group-item","list-group-item-action","list-group-item-danger","list-group-item-dark","list-group-item-info","list-group-item-light","list-group-item-primary","list-group-item-secondary","list-group-item-success","list-group-item-warning","list-group-numbered","modal","modal-backdrop","modal-body","modal-content","modal-dialog","modal-dialog-centered","modal-dialog-scrollable","modal-footer","modal-fullscreen","modal-fullscreen-lg-down","modal-fullscreen-md-down","modal-fullscreen-sm-down","modal-fullscreen-xl-down","modal-fullscreen-xxl-down","modal-header","modal-lg","modal-open","modal-sm","modal-static","modal-title","modal-xl","nav-link","nav-pills","nav-tabs","offcanvas","offcanvas-backdrop","offcanvas-body","offcanvas-bottom","offcanvas-end","offcanvas-header","offcanvas-lg","offcanvas-md","offcanvas-sm","offcanvas-start","offcanvas-title","offcanvas-top","offcanvas-xl","offcanvas-xxl","page-item","page-link","pagination","pagination-lg","pagination-sm","progress","progress-bar","progress-bar-animated","progress-bar-striped","progress-sm","progress-stacked","spinner-border","spinner-border-sm","table","table-active","table-bordered","table-borderless","table-danger","table-dark","table-group-divider","table-hover","table-info","table-ledger","table-light","table-pagination","table-primary","table-responsive","table-responsive-lg","table-responsive-md","table-responsive-sm","table-responsive-xl","table-responsive-xxl","table-secondary","table-sm","table-striped","table-striped-columns","table-success","table-warning","table-wrap","wui-accordion","wui-accordion-body","wui-accordion-count","wui-accordion-flat","wui-accordion-icon","wui-accordion-item","wui-accordion-panel","wui-accordion-trigger","wui-account-switcher","wui-account-switcher-badge","wui-account-switcher-label","wui-account-switcher-list","wui-account-switcher-option","wui-account-switcher-option-name","wui-account-switcher-option-note","wui-account-switcher-option-text","wui-account-switcher-tick","wui-action-icon-file","wui-addon","wui-addon-group","wui-addon-group-lg","wui-addon-group-sm","wui-attach-error","wui-attach-progress","wui-auth","wui-auth-aside","wui-auth-body","wui-auth-footer","wui-auth-logo","wui-auth-main","wui-auth-panel","wui-auth-split","wui-banner","wui-banner-action","wui-banner-body","wui-banner-danger","wui-banner-dismiss","wui-banner-has-action","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-bordered","wui-brand-dark","wui-brand-has-mark","wui-brand-light","wui-brand-link","wui-brand-logo","wui-brand-mark","wui-brand-mark-only","wui-brand-themed","wui-breadcrumb-collapse","wui-breadcrumb-collapsible","wui-breadcrumb-more","wui-breadcrumb-more-toggle","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","wui-cell-end","wui-cell-mono","wui-cell-numeric","wui-cell-primary","wui-cell-secondary","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-check","wui-chip-count","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-tabs","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--markdown","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-plain","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-cell-8","wui-dashboard-cell-fifth","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-empty","wui-dropdown-form","wui-dropdown-item-body","wui-dropdown-item-desc","wui-dropdown-item-disabled","wui-dropdown-menu-fit","wui-dropdown-menu-lg","wui-dropdown-menu-md","wui-dropdown-menu-searchable","wui-dropdown-menu-sm","wui-dropdown-search","wui-dropdown-search-input","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-busy","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-panel-end","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--lg","wui-floating-btn--secondary","wui-floating-btn--sm","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-has-value-avatar","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--nowrap","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-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--clamp","wui-link--fade","wui-link--glow","wui-link--grow","wui-link--highlight","wui-link--icon","wui-link--lg","wui-link--none","wui-link--rotate","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-citation","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-mono","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-hint","wui-opt-label","wui-opt-name","wui-org-tree","wui-org-tree-canvas","wui-org-tree-children","wui-org-tree-count","wui-org-tree-item","wui-org-tree-match","wui-org-tree-name","wui-org-tree-node","wui-org-tree-overlay","wui-org-tree-role","wui-org-tree-search","wui-org-tree-team","wui-org-tree-text","wui-org-tree-toggle","wui-org-tree-toolbar","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-pager-summary","wui-period-month","wui-period-month-label","wui-period-picker","wui-phone-prefix","wui-pin-end","wui-pin-end-edge","wui-pin-start","wui-pin-start-edge","wui-pre-line","wui-prewrap","wui-progress-danger","wui-progress-indeterminate","wui-progress-info","wui-progress-label","wui-progress-labelled","wui-progress-neutral","wui-progress-primary","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-header","wui-row-link","wui-row-save-error","wui-row-switch","wui-row-switch__thumb","wui-row-switch__track","wui-score-scale","wui-score-scale__ends","wui-score-scale__item","wui-score-scale__item--selected","wui-scroll","wui-search-collapsible","wui-search-toggle","wui-section","wui-section-actions","wui-section-call-to-action","wui-section-call-to-action--band","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--split","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-label-full","wui-segmented-label-short","wui-segmented-option-count","wui-select","wui-select-add","wui-select-caret","wui-select-cell","wui-select-check","wui-select-chips","wui-select-clear","wui-select-clear-all","wui-select-control","wui-select-draft","wui-select-empty","wui-select-error","wui-select-footer","wui-select-group","wui-select-hint","wui-select-icon","wui-select-input","wui-select-lg","wui-select-loading","wui-select-menu","wui-select-menu-fixed","wui-select-multi","wui-select-opt-desc","wui-select-opt-meta","wui-select-opt-name","wui-select-option","wui-select-option-rich","wui-select-option-text","wui-select-options","wui-select-placeholder","wui-select-prefix","wui-select-reset","wui-select-search","wui-select-sep","wui-select-sm","wui-select-spinner","wui-select-value","wui-select-value-avatar","wui-shell-launcher","wui-shell-top","wui-shell-top-brand","wui-shell-top-nav","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-sidebar-foot-links","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-support-composer","wui-support-event","wui-support-reply","wui-support-reply-agent","wui-support-reply-body","wui-support-reply-head","wui-support-search","wui-support-subject","wui-support-subject-meta","wui-support-tabs","wui-support-toolbar","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-timeline-note--markdown","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-tooltip-inverse","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-host","wui-topsearch-open","wui-topsearch-panel","wui-topsearch-results","wui-topsearch-row","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-next","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-pointer","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-extra","wui-usermenu-foot","wui-usermenu-head","wui-usermenu-logout","wui-usermenu-menu","wui-usermenu-name","wui-usermenu-role","wui-usermenu-roles","wui-usermenu-roles-label","wui-usermenu-section","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"]`),Ol=`raw-bootstrap`,kl=/* @__PURE__ */ new Map([[`btn`,`AppButton/<app-button>`],[`card`,`AppCard/<app-card>`],[`modal`,`AppModal/<app-modal>`],[`table`,`AppDataTable/<app-data-table>`],[`badge`,`AppBadge/<app-badge> (AppStatusBadge/<app-status-badge> when it shows a status)`],[`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>`]]),Al=/(?<![\w-])(?:class|className)\s*=\s*/g,jl=/(["'`])((?:\\[\s\S]|(?!\1)[^\\])*)\1/g;function Ml(e){let t=``,n=null;for(let r=0;r<e.length;r+=1){let i=e.charAt(r),a=e[r+1];if(n)t+=i,i===`\\`&&a!==void 0?(t+=a,r+=1):(i===n||i===`
171
+ `)}function cl(e){return(e.split(`/`).pop()??``).replace(/\.cshtml$/,``)}function ll(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=p.normalize(p.join(p.dirname(e),t));else return null;return[r,...Wc.map(e=>r+e),...Wc.map(e=>p.join(r,`index${e}`))].find(e=>n.has(e))??null}function z(e,t,n){if(t===null)return;let r=e.get(t)??/* @__PURE__ */ new Set;r.add(n),e.set(t,r)}function ul(e,t,n){return[...e.get(t)??/* @__PURE__ */ new Set].filter(e=>e!==n).length}function dl(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 fl(e){let t=$c.exec(e);return t!==null&&t[1]!==`layout`&&!Kc.test(e)&&!qc.test(e)}function pl(e,t){let n=[...e.get(t)??[]].filter(e=>e!==t);return n.length===1&&fl(n[0]??``)&&ul(e,n[0]??``,n[0]??``)>=2}function ml(e,t){let n=p.dirname(e);for(;n!==`.`&&!t.has(n);)n=p.dirname(n);return n}function hl(e){let t=al.exec(e.split(`
172
+ `,1)[0]??``);return t?.[1]===`single-use-component`?(t[2]??``).trim():null}var gl=`error-summary-title`,_l=/<app-error-summary(?=[\s/>])/g,vl=/(?<![\w-])title\s*=\s*(?:"([^"]*)"|'([^']*)')/,yl=/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 bl(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 xl(e){let t=w(e,`markup`),n=e.split(`
173
+ `),r=[];for(let e of t.matchAll(_l)){let i=vl.exec(t.slice(e.index,bl(t,e.index)));if(!i)continue;let a=i[1]??i[2]??``;if(a.includes(`@`)||!yl.test(a))continue;let o=t.slice(0,e.index).split(`
174
+ `).length;r.push({rule:gl,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 Sl=/\.([A-Za-z_][\w-]*)/g,Cl=/[^\s>+~,]+/g,wl=/^\s*(?:,|$)/;function*Tl(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 El(e,t,n){let r=w(e,t),i=e.split(`
175
+ `),a=[];for(let e of Tl(r)){let t=Dl(e.text,n);if(!t)continue;let o=r.slice(0,e.index+t.index).split(`
176
+ `).length;a.push({rule:`library-class-restyle`,line:o,text:(i[o-1]??``).trim().slice(0,160),hint:`restyles library class .${t.name}; use a library prop or token, or a product class`})}return a}function Dl(e,t){for(let n of e.matchAll(Cl))if(wl.test(e.slice(n.index+n[0].length))){for(let e of n[0].matchAll(Sl))if(t.has(e[1]??``))return{index:n.index+e.index,name:e[1]??``}}return null}var Ol=/*#__PURE__*/ JSON.parse(`["accordion","accordion-body","accordion-button","accordion-collapse","accordion-flush","accordion-header","accordion-item","alert","alert-accent","alert-action","alert-borderless","alert-content","alert-danger","alert-dark","alert-dismissible","alert-has-action","alert-has-icon","alert-heading","alert-icon","alert-icon-image","alert-info","alert-lg","alert-light","alert-link","alert-neutral","alert-primary","alert-secondary","alert-sm","alert-stack","alert-success","alert-warning","app-content","app-footer","app-main","app-nav-badge","app-nav-caret","app-nav-group","app-nav-group-label","app-nav-icon","app-nav-item","app-nav-sub","app-nav-sub-inner","app-nav-subitem","app-nav-text","app-nav-trailing","app-phone-number-input","app-popover","app-scrim","app-shell","app-sidebar","app-sidebar-brand","app-sidebar-brand-text","app-sidebar-foot","app-sidebar-scroll","app-sidebar-start","app-sidebar-start-compact","app-sidebar-toggle","app-tab","app-tab-count","app-tab-icon","app-tab-img","app-tab-indicator","app-tabs","app-tabs-fitted","app-tabs-group","app-tabs-lg","app-tabs-pills","app-tabs-scroll-btn","app-tabs-sm","app-tabs-vertical","app-tabs-wrap","app-topbar","app-topbar-end","app-topbar-menu","app-topbar-start","badge","badge-danger","badge-dot","badge-info","badge-primary","badge-success","badge-warning","breadcrumb","breadcrumb-item","btn","btn-anim-expand","btn-anim-fill","btn-anim-glow","btn-anim-none","btn-anim-roll","btn-anim-sheen","btn-check","btn-close","btn-close-white","btn-danger","btn-dark","btn-ghost-danger","btn-ghost-info","btn-ghost-neutral","btn-ghost-primary","btn-ghost-success","btn-ghost-warning","btn-glass","btn-group","btn-group-lg","btn-group-sm","btn-group-vertical","btn-icon","btn-info","btn-lg","btn-light","btn-link","btn-link-danger","btn-link-info","btn-link-neutral","btn-link-primary","btn-link-success","btn-link-warning","btn-neutral","btn-outline-danger","btn-outline-dark","btn-outline-info","btn-outline-light","btn-outline-neutral","btn-outline-primary","btn-outline-secondary","btn-outline-success","btn-outline-warning","btn-pill","btn-pill-sm","btn-primary","btn-radius-xl","btn-secondary","btn-sm","btn-soft-danger","btn-soft-info","btn-soft-neutral","btn-soft-primary","btn-soft-success","btn-soft-warning","btn-static","btn-success","btn-toolbar","btn-warning","btn-xl","card","card-accent","card-body","card-clickable","card-close","card-compact","card-constrained","card-divided","card-elevated","card-flush","card-footer","card-group","card-header","card-header-actions","card-header-icon","card-header-main","card-header-pills","card-header-tabs","card-header-titles","card-img","card-img-bottom","card-img-overlay","card-img-top","card-lifted","card-link","card-media","card-muted","card-outlined","card-pad-lg","card-pad-none","card-pad-sm","card-subtitle","card-text","card-title","dropdown","dropdown-center","dropdown-divider","dropdown-header","dropdown-item","dropdown-item-text","dropdown-menu","dropdown-menu-dark","dropdown-menu-end","dropdown-menu-lg-end","dropdown-menu-lg-start","dropdown-menu-md-end","dropdown-menu-md-start","dropdown-menu-sm-end","dropdown-menu-sm-start","dropdown-menu-start","dropdown-menu-xl-end","dropdown-menu-xl-start","dropdown-menu-xxl-end","dropdown-menu-xxl-start","dropdown-search-icon","dropdown-search-input","dropdown-search-wrapper","dropdown-toggle","dropdown-toggle-split","form-check","form-check-circle","form-check-inline","form-check-input","form-check-label","form-check-lg","form-check-reverse","form-check-sm","form-control","form-control-color","form-control-lg","form-control-plaintext","form-control-sm","form-label","form-select","form-select-lg","form-select-sm","form-text","input-group","input-group-lg","input-group-sm","input-group-text","list-group","list-group-flush","list-group-horizontal","list-group-horizontal-lg","list-group-horizontal-md","list-group-horizontal-sm","list-group-horizontal-xl","list-group-horizontal-xxl","list-group-item","list-group-item-action","list-group-item-danger","list-group-item-dark","list-group-item-info","list-group-item-light","list-group-item-primary","list-group-item-secondary","list-group-item-success","list-group-item-warning","list-group-numbered","modal","modal-backdrop","modal-body","modal-content","modal-dialog","modal-dialog-centered","modal-dialog-scrollable","modal-footer","modal-fullscreen","modal-fullscreen-lg-down","modal-fullscreen-md-down","modal-fullscreen-sm-down","modal-fullscreen-xl-down","modal-fullscreen-xxl-down","modal-header","modal-lg","modal-open","modal-sm","modal-static","modal-title","modal-xl","nav-link","nav-pills","nav-tabs","offcanvas","offcanvas-backdrop","offcanvas-body","offcanvas-bottom","offcanvas-end","offcanvas-header","offcanvas-lg","offcanvas-md","offcanvas-sm","offcanvas-start","offcanvas-title","offcanvas-top","offcanvas-xl","offcanvas-xxl","page-item","page-link","pagination","pagination-lg","pagination-sm","progress","progress-bar","progress-bar-animated","progress-bar-striped","progress-sm","progress-stacked","spinner-border","spinner-border-sm","table","table-active","table-bordered","table-borderless","table-danger","table-dark","table-group-divider","table-hover","table-info","table-ledger","table-light","table-pagination","table-primary","table-responsive","table-responsive-lg","table-responsive-md","table-responsive-sm","table-responsive-xl","table-responsive-xxl","table-secondary","table-sm","table-striped","table-striped-columns","table-success","table-warning","table-wrap","wui-accordion","wui-accordion-body","wui-accordion-count","wui-accordion-flat","wui-accordion-icon","wui-accordion-item","wui-accordion-panel","wui-accordion-trigger","wui-account-switcher","wui-account-switcher-badge","wui-account-switcher-label","wui-account-switcher-list","wui-account-switcher-option","wui-account-switcher-option-name","wui-account-switcher-option-note","wui-account-switcher-option-text","wui-account-switcher-tick","wui-action-icon-file","wui-addon","wui-addon-group","wui-addon-group-lg","wui-addon-group-sm","wui-attach-error","wui-attach-progress","wui-auth","wui-auth-aside","wui-auth-body","wui-auth-footer","wui-auth-logo","wui-auth-main","wui-auth-panel","wui-auth-split","wui-banner","wui-banner-action","wui-banner-body","wui-banner-danger","wui-banner-dismiss","wui-banner-has-action","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-bordered","wui-brand-dark","wui-brand-has-mark","wui-brand-light","wui-brand-link","wui-brand-logo","wui-brand-mark","wui-brand-mark-only","wui-brand-themed","wui-breadcrumb-collapse","wui-breadcrumb-collapsible","wui-breadcrumb-more","wui-breadcrumb-more-toggle","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","wui-cell-end","wui-cell-mono","wui-cell-numeric","wui-cell-primary","wui-cell-secondary","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-check","wui-chip-count","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-tabs","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--markdown","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-plain","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-cell-8","wui-dashboard-cell-fifth","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-empty","wui-dropdown-form","wui-dropdown-item-body","wui-dropdown-item-desc","wui-dropdown-item-disabled","wui-dropdown-menu-fit","wui-dropdown-menu-lg","wui-dropdown-menu-md","wui-dropdown-menu-searchable","wui-dropdown-menu-sm","wui-dropdown-search","wui-dropdown-search-input","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-busy","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-panel-end","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--lg","wui-floating-btn--secondary","wui-floating-btn--sm","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-has-value-avatar","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--nowrap","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-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--clamp","wui-link--fade","wui-link--glow","wui-link--grow","wui-link--highlight","wui-link--icon","wui-link--lg","wui-link--none","wui-link--rotate","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-citation","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-mono","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-hint","wui-opt-label","wui-opt-name","wui-org-tree","wui-org-tree-canvas","wui-org-tree-children","wui-org-tree-count","wui-org-tree-item","wui-org-tree-match","wui-org-tree-name","wui-org-tree-node","wui-org-tree-overlay","wui-org-tree-role","wui-org-tree-search","wui-org-tree-team","wui-org-tree-text","wui-org-tree-toggle","wui-org-tree-toolbar","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-pager-summary","wui-period-month","wui-period-month-label","wui-period-picker","wui-phone-prefix","wui-pin-end","wui-pin-end-edge","wui-pin-start","wui-pin-start-edge","wui-pre-line","wui-prewrap","wui-progress-danger","wui-progress-indeterminate","wui-progress-info","wui-progress-label","wui-progress-labelled","wui-progress-neutral","wui-progress-primary","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-header","wui-row-link","wui-row-save-error","wui-row-switch","wui-row-switch__thumb","wui-row-switch__track","wui-score-scale","wui-score-scale__ends","wui-score-scale__item","wui-score-scale__item--selected","wui-scroll","wui-search-collapsible","wui-search-toggle","wui-section","wui-section-actions","wui-section-call-to-action","wui-section-call-to-action--band","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--split","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-label-full","wui-segmented-label-short","wui-segmented-option-count","wui-select","wui-select-add","wui-select-caret","wui-select-cell","wui-select-check","wui-select-chips","wui-select-clear","wui-select-clear-all","wui-select-control","wui-select-draft","wui-select-empty","wui-select-error","wui-select-footer","wui-select-group","wui-select-hint","wui-select-icon","wui-select-input","wui-select-lg","wui-select-loading","wui-select-menu","wui-select-menu-fixed","wui-select-multi","wui-select-opt-desc","wui-select-opt-meta","wui-select-opt-name","wui-select-option","wui-select-option-rich","wui-select-option-text","wui-select-options","wui-select-placeholder","wui-select-prefix","wui-select-reset","wui-select-search","wui-select-sep","wui-select-sm","wui-select-spinner","wui-select-value","wui-select-value-avatar","wui-shell-launcher","wui-shell-top","wui-shell-top-brand","wui-shell-top-nav","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-sidebar-foot-links","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-support-composer","wui-support-event","wui-support-reply","wui-support-reply-agent","wui-support-reply-body","wui-support-reply-head","wui-support-search","wui-support-subject","wui-support-subject-meta","wui-support-tabs","wui-support-toolbar","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-timeline-note--markdown","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-tooltip-inverse","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-host","wui-topsearch-open","wui-topsearch-panel","wui-topsearch-results","wui-topsearch-row","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-next","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-pointer","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-extra","wui-usermenu-foot","wui-usermenu-head","wui-usermenu-logout","wui-usermenu-menu","wui-usermenu-name","wui-usermenu-role","wui-usermenu-roles","wui-usermenu-roles-label","wui-usermenu-section","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"]`),kl=`raw-bootstrap`,Al=/* @__PURE__ */ new Map([[`btn`,`AppButton/<app-button>`],[`card`,`AppCard/<app-card>`],[`modal`,`AppModal/<app-modal>`],[`table`,`AppDataTable/<app-data-table>`],[`badge`,`AppBadge/<app-badge> (AppStatusBadge/<app-status-badge> when it shows a status)`],[`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>`]]),jl=/(?<![\w-])(?:class|className)\s*=\s*/g,Ml=/(["'`])((?:\\[\s\S]|(?!\1)[^\\])*)\1/g;function Nl(e){let t=``,n=null;for(let r=0;r<e.length;r+=1){let i=e.charAt(r),a=e[r+1];if(n)t+=i,i===`\\`&&a!==void 0?(t+=a,r+=1):(i===n||i===`
177
177
  `&&n!=="`")&&(n=null);else if(i===`/`&&a===`/`){let n=e.indexOf(`
178
- `,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 Nl(e,t){let n=[],r=e.charAt(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(jl))n.push({base:t+e.index+1,content:e[2]??``})}return n}function Pl(e,t){let n=t===`markup`?w(e,`markup`):Ml(e),r=[0];for(let e=0;e<n.length;e+=1)n[e]===`
178
+ `,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 Pl(e,t){let n=[],r=e.charAt(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(Ml))n.push({base:t+e.index+1,content:e[2]??``})}return n}function Fl(e,t){let n=t===`markup`?w(e,`markup`):Nl(e),r=[0];for(let e=0;e<n.length;e+=1)n[e]===`
179
179
  `&&r.push(e+1);let i=e.split(`
180
- `),a=e=>{let t=0,n=r.length-1;for(;t<n;){let i=t+n+1>>1,a=r[i];if(a===void 0)throw Error(`webority-repo-checks: a line start is missing.`);a<=e?t=i:n=i-1}return t},o=[];for(let e of n.matchAll(Al)){let t=e.index+e[0].length;for(let e of Nl(n,t))for(let t of e.content.matchAll(/\S+/g)){let n=kl.get(t[0]);if(!n)continue;let r=a(e.base+t.index);o.push({rule:Ol,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}var Fl=/* @__PURE__ */ new Set(/* @__PURE__ */ `public.private.protected.internal.static.abstract.sealed.partial.unsafe.file.readonly.ref.new.virtual.override.extern.async.required.volatile.const.fixed.implicit.explicit.operator.event.delegate`.split(`.`)),Il=/* @__PURE__ */ new Set([`await`,`return`,`throw`,`yield`,`in`,`is`,`as`,`and`,`or`,`not`,`case`,`when`,`else`,`do`,`lock`,`using`]),Ll=/^((?:(?:public|private|protected|internal|static|abstract|sealed|partial|unsafe|file|readonly|ref|new)\s+)*)(class|struct|interface|record)\b(?:\s+(?:class|struct))?\s*(@?[A-Za-z_]\w*)/,Rl=/^\s*(?:global\s+)?using\b/,zl=/^(?:global\s+)?using\s+(?:static\s+)?(?:@?\w+\s*=\s*)?([^;]+?)\s*$/,Bl=/^namespace\s+([\w.@\s]+?)\s*$/,Vl=/\boperator\b[^(]*$/,Hl=/\bconst\s+string\s+(@?[A-Za-z_]\w*)\s*$/,Ul=`<[\\w\\s,.?\\[\\]<>:]*>`,Wl=/^nameof\s*\(\s*([^()]*?)\s*\)$/,Gl=/^(?:global::)?((?:@?[A-Za-z_]\w*\s*\.\s*)*?@?[A-Za-z_]\w*)\s*\.\s*(@?[A-Za-z_]\w*)$/,Kl=/^@?[A-Za-z_]\w*$/,ql=/[\p{L}\p{N}_]/u,Jl=/* @__PURE__ */ new WeakMap;function Yl(e,t){let{blanked:n,code:r}=cu(t),i=ou(t),a={file:e,text:t,blanked:n,lineAt:i,...Su(r,n,i)};return Jl.set(a,r),a}function Xl(e,t){if(t.length===0)return[];let n=Jl.get(e)??cu(e.blanked).code,r=t.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),i=RegExp(`\\.\\s*(${r})\\s*(?:${Ul})?\\s*\\(`,`g`),a=RegExp(`(?<![\\p{L}\\p{N}_.@$])(${r})\\s*(?:${Ul})?\\s*\\(`,`gu`),o=[];for(let t of n.matchAll(a)){let r=t[1]??``;if(!tu(n,t.index))continue;let i=t.index+t[0].length-1,a=Cu(n,i+1);a<0||o.push({receiver:``,method:r,firstArgument:e.blanked.slice(i+1,a).trim(),index:t.index,line:e.lineAt(t.index)})}for(let t of n.matchAll(i)){let r=t[1]??``,i=t.index,a=i+t[0].indexOf(r,1),s=i+t[0].length-1,c=Cu(n,s+1);if(c<0)continue;let l=i;for(;l>0&&B(n.charAt(l-1));)l--;(n.charAt(l-1)===`?`||n.charAt(l-1)===`!`)&&l--;let u=Eu(n,l);o.push({receiver:e.blanked.slice(u,l).trim().replace(/\s*\.\s*/g,`.`).replace(/\s+/g,` `),method:r,firstArgument:e.blanked.slice(s+1,c).trim(),index:a,line:e.lineAt(a)})}return o.sort((e,t)=>e.index-t.index)}var Zl=/* @__PURE__ */ new Set([`=`,`(`,`,`,`{`,`;`,`!`,`?`,`:`,`&`,`|`,`+`,`[`,`}`,``]),Ql=/* @__PURE__ */ new Set([`return`,`await`,`yield`,`else`,`case`,`in`,`when`]),$l=/* @__PURE__ */ new Set([`if`,`while`,`for`,`foreach`,`using`,`lock`,`switch`]),eu=/^\s*@?[A-Za-z_][\w.]*(?:\s*<[\w\s,.?[\]<>]*>)?\s*\??\s*$/;function tu(e,t){let n=t;for(;n>0&&B(e.charAt(n-1));)n--;let r=e.charAt(n-1);if(r===`>`)return e.charAt(n-2)===`=`;if(r===`)`)return nu(e,n-1);if(Zl.has(r))return!0;if(!V(r))return!1;let i=n;for(;i>0&&V(e.charAt(i-1));)i--;return Ql.has(e.slice(i,n))}function nu(e,t){let n=wu(e,t);if(n<0)return!1;let r=e.slice(n+1,t),i=H(e,n-1),a=i+1;for(;a>0&&V(e.charAt(a-1));)a--;let o=e.slice(a,i+1);return o===``?Zl.has(e.charAt(i))&&eu.test(r):$l.has(o)||Ql.has(o)&&eu.test(r)}function ru(e,t,n,r){return Ou(e,t,n,r,0)}function iu(e){let t=/* @__PURE__ */ new Map;for(let n of e)for(let e of n.classes){let n=t.get(e.name);n?n.push(e):t.set(e.name,[e])}return t}function au(e,t){let n=null;for(let r of e.classes)r.bodyStart>=t||t>=r.bodyEnd||(n===null||r.bodyEnd-r.bodyStart<n.bodyEnd-n.bodyStart)&&(n=r);return n}function B(e){return e===` `||e===` `||e===`
181
- `||e===`\r`}function V(e){return e!==``&&ql.test(e)}function ou(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);return e=>{let n=0,r=t.length-1;for(;n<r;){let i=n+r+1>>1;(t[i]??0)<=e?n=i:r=i-1}return n+1}}function su(e,t){let n=e.indexOf(`
182
- `,t);return n<0?e.length:n}function cu(e){let t=e.split(``),n=e.split(``),r=e.length,i=(e,t,n)=>{for(let r=t;r<n;r++)e[r]!==`
180
+ `),a=e=>{let t=0,n=r.length-1;for(;t<n;){let i=t+n+1>>1,a=r[i];if(a===void 0)throw Error(`webority-repo-checks: a line start is missing.`);a<=e?t=i:n=i-1}return t},o=[];for(let e of n.matchAll(jl)){let t=e.index+e[0].length;for(let e of Pl(n,t))for(let t of e.content.matchAll(/\S+/g)){let n=Al.get(t[0]);if(!n)continue;let r=a(e.base+t.index);o.push({rule:kl,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}var Il=/* @__PURE__ */ new Set(/* @__PURE__ */ `public.private.protected.internal.static.abstract.sealed.partial.unsafe.file.readonly.ref.new.virtual.override.extern.async.required.volatile.const.fixed.implicit.explicit.operator.event.delegate`.split(`.`)),Ll=/* @__PURE__ */ new Set([`await`,`return`,`throw`,`yield`,`in`,`is`,`as`,`and`,`or`,`not`,`case`,`when`,`else`,`do`,`lock`,`using`]),Rl=/^((?:(?:public|private|protected|internal|static|abstract|sealed|partial|unsafe|file|readonly|ref|new)\s+)*)(class|struct|interface|record)\b(?:\s+(?:class|struct))?\s*(@?[A-Za-z_]\w*)/,zl=/^\s*(?:global\s+)?using\b/,Bl=/^(?:global\s+)?using\s+(?:static\s+)?(?:@?\w+\s*=\s*)?([^;]+?)\s*$/,Vl=/^namespace\s+([\w.@\s]+?)\s*$/,Hl=/\boperator\b[^(]*$/,Ul=/\bconst\s+string\s+(@?[A-Za-z_]\w*)\s*$/,Wl=`<[\\w\\s,.?\\[\\]<>:]*>`,Gl=/^nameof\s*\(\s*([^()]*?)\s*\)$/,Kl=/^(?:global::)?((?:@?[A-Za-z_]\w*\s*\.\s*)*?@?[A-Za-z_]\w*)\s*\.\s*(@?[A-Za-z_]\w*)$/,ql=/^@?[A-Za-z_]\w*$/,Jl=/[\p{L}\p{N}_]/u,Yl=/* @__PURE__ */ new WeakMap;function Xl(e,t){let{blanked:n,code:r}=lu(t),i=su(t),a={file:e,text:t,blanked:n,lineAt:i,...Cu(r,n,i)};return Yl.set(a,r),a}function Zl(e,t){if(t.length===0)return[];let n=Yl.get(e)??lu(e.blanked).code,r=t.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),i=RegExp(`\\.\\s*(${r})\\s*(?:${Wl})?\\s*\\(`,`g`),a=RegExp(`(?<![\\p{L}\\p{N}_.@$])(${r})\\s*(?:${Wl})?\\s*\\(`,`gu`),o=[];for(let t of n.matchAll(a)){let r=t[1]??``;if(!nu(n,t.index))continue;let i=t.index+t[0].length-1,a=wu(n,i+1);a<0||o.push({receiver:``,method:r,firstArgument:e.blanked.slice(i+1,a).trim(),index:t.index,line:e.lineAt(t.index)})}for(let t of n.matchAll(i)){let r=t[1]??``,i=t.index,a=i+t[0].indexOf(r,1),s=i+t[0].length-1,c=wu(n,s+1);if(c<0)continue;let l=i;for(;l>0&&B(n.charAt(l-1));)l--;(n.charAt(l-1)===`?`||n.charAt(l-1)===`!`)&&l--;let u=Du(n,l);o.push({receiver:e.blanked.slice(u,l).trim().replace(/\s*\.\s*/g,`.`).replace(/\s+/g,` `),method:r,firstArgument:e.blanked.slice(s+1,c).trim(),index:a,line:e.lineAt(a)})}return o.sort((e,t)=>e.index-t.index)}var Ql=/* @__PURE__ */ new Set([`=`,`(`,`,`,`{`,`;`,`!`,`?`,`:`,`&`,`|`,`+`,`[`,`}`,``]),$l=/* @__PURE__ */ new Set([`return`,`await`,`yield`,`else`,`case`,`in`,`when`]),eu=/* @__PURE__ */ new Set([`if`,`while`,`for`,`foreach`,`using`,`lock`,`switch`]),tu=/^\s*@?[A-Za-z_][\w.]*(?:\s*<[\w\s,.?[\]<>]*>)?\s*\??\s*$/;function nu(e,t){let n=t;for(;n>0&&B(e.charAt(n-1));)n--;let r=e.charAt(n-1);if(r===`>`)return e.charAt(n-2)===`=`;if(r===`)`)return ru(e,n-1);if(Ql.has(r))return!0;if(!V(r))return!1;let i=n;for(;i>0&&V(e.charAt(i-1));)i--;return $l.has(e.slice(i,n))}function ru(e,t){let n=Tu(e,t);if(n<0)return!1;let r=e.slice(n+1,t),i=H(e,n-1),a=i+1;for(;a>0&&V(e.charAt(a-1));)a--;let o=e.slice(a,i+1);return o===``?Ql.has(e.charAt(i))&&tu.test(r):eu.has(o)||$l.has(o)&&tu.test(r)}function iu(e,t,n,r){return ku(e,t,n,r,0)}function au(e){let t=/* @__PURE__ */ new Map;for(let n of e)for(let e of n.classes){let n=t.get(e.name);n?n.push(e):t.set(e.name,[e])}return t}function ou(e,t){let n=null;for(let r of e.classes)r.bodyStart>=t||t>=r.bodyEnd||(n===null||r.bodyEnd-r.bodyStart<n.bodyEnd-n.bodyStart)&&(n=r);return n}function B(e){return e===` `||e===` `||e===`
181
+ `||e===`\r`}function V(e){return e!==``&&Jl.test(e)}function su(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);return e=>{let n=0,r=t.length-1;for(;n<r;){let i=n+r+1>>1;(t[i]??0)<=e?n=i:r=i-1}return n+1}}function cu(e,t){let n=e.indexOf(`
182
+ `,t);return n<0?e.length:n}function lu(e){let t=e.split(``),n=e.split(``),r=e.length,i=(e,t,n)=>{for(let r=t;r<n;r++)e[r]!==`
183
183
  `&&e[r]!==`\r`&&(e[r]=` `)},a=0,o=!0;for(;a<r;){let s=e.charAt(a);if(s===`
184
- `){o=!0,a++;continue}if(s===` `||s===` `||s===`\r`||s===``){a++;continue}let c=o;if(o=!1,s===`/`&&e.charAt(a+1)===`/`){let r=su(e,a);i(t,a,r),i(n,a,r),a=r;continue}if(s===`/`&&e.charAt(a+1)===`*`){let o=e.indexOf(`*/`,a+2),s=o<0?r:o+2;i(t,a,s),i(n,a,s),a=s;continue}if(s===`#`&&c){let r=su(e,a),o=e.indexOf(`//`,a);o>=0&&o<r&&i(t,o,r),i(n,a,r),a=r;continue}let l=lu(e,a);if(l){let t=uu(e,l);i(n,l.quoteAt+1,t-1),a=Math.max(t,a+1)}else if(s===`'`){let t=fu(e,a);i(n,a+1,t-1),a=t}else a++}return{blanked:t.join(``),code:n.join(``)}}function lu(e,t){let n=t,r=0,i=!1;for(;e.charAt(n)===`$`||e.charAt(n)===`@`;)e.charAt(n)===`$`?r++:i=!0,n++;if(e.charAt(n)!==`"`)return null;let a=0;for(;e.charAt(n+a)===`"`;)a++;return{quoteAt:n,dollars:r,verbatim:i,quotes:a}}function uu(e,t){let n=e.length,r=!t.verbatim&&t.quotes>=3;if(!t.verbatim&&t.quotes===2)return t.quoteAt+2;if(r){let r=t.quotes,i=t.quoteAt+r;for(;i<n;){let n=e.charAt(i);if(n===`"`){let t=1;for(;e.charAt(i+t)===`"`;)t++;if(t>=r)return i+t;i+=t}else if(t.dollars>0&&n===`{`){let n=1;for(;e.charAt(i+n)===`{`;)n++;if(n<t.dollars){i+=n;continue}i=du(e,i+n,t.dollars)}else i++}return n}let i=t.quoteAt+1;for(;i<n;){let n=e.charAt(i);if(t.verbatim){if(n===`"`){if(e.charAt(i+1)===`"`){i+=2;continue}return i+1}}else{if(n===`\\`){i+=2;continue}if(n===`"`)return i+1;if(n===`
185
- `)return i}if(t.dollars>0&&n===`{`){if(e.charAt(i+1)===`{`){i+=2;continue}i=du(e,i+1,1)}else i++}return n}function du(e,t,n){let r=e.length,i=0,a=t;for(;a<r;){let t=e.charAt(a);if(t===`{`)i++,a++;else if(t===`}`){if(i>0)i--,a++;else return Math.min(r,a+n)}else if(t===`'`)a=fu(e,a);else{let t=lu(e,a);a=t?Math.max(uu(e,t),a+1):a+1}}return r}function fu(e,t){if(e.charAt(t+1)===`\\`){let n=e.indexOf(`'`,t+3);return n<0||n-t>12?t+1:n+1}return e.charAt(t+2)===`'`?t+3:t+1}function pu(e,t){let n=e.charAt(t),r=n===`(`?`)`:n===`[`?`]`:`}`,i=0;for(let a=t;a<e.length;a++){let t=e.charAt(a);if(t===n)i++;else if(t===r&&(i--,i===0))return a}return e.length-1}function mu(e,t){let n=0;for(let r=t;r<e.length;r++){let t=e.charAt(r);if(t===`(`||t===`[`||t===`{`)n++;else if(t===`)`||t===`]`||t===`}`){if(n===0)return r;n--}else if(t===`;`&&n===0)return r}return e.length}function hu(e,t){let n=0;for(let r=t;r<e.length;r++){let i=e.charAt(r);if(i===`(`||i===`[`)n++;else if(i===`)`||i===`]`)n=Math.max(0,n-1);else if(n===0){if(i===`{`||i===`;`||i===`}`)return{end:r,terminator:i};if(i===`=`){let n=e.slice(t,r);if(Rl.test(n)||Vl.test(n))continue;return{end:r,terminator:e.charAt(r+1)===`>`?`=>`:`=`}}}}return{end:e.length,terminator:`eof`}}function gu(e,t,n,r){let i=[],a=0,o=t;for(let s=t;s<n;s++){let t=e.charAt(s);t===`(`||t===`[`||t===`{`?a++:t===`)`||t===`]`||t===`}`?a--:t===r&&a===0&&(i.push([o,s]),o=s+1)}return i.push([o,n]),i}function _u(e,t,n){let r=[],i=t;for(;;){for(;i<n&&B(e.charAt(i));)i++;if(e.charAt(i)!==`[`)break;let t=pu(e,i);if(t>=n)break;r.push([i,t+1]),i=t+1}return{restStart:i,ranges:r}}function vu(e,t,n){for(let[r,i]of n){let n=/\bHubMethodName(?:Attribute)?\s*\(/.exec(e.slice(r,i));if(!n)continue;let a=r+n.index+n[0].length-1,o=pu(e,a);return zu(t.slice(a+1,o).trim())}return null}function yu(e){let t=0,n=()=>{for(;t<e.length&&B(e.charAt(t));)t++},r=(n,r)=>{let i=0;for(;t<e.length;t++){let a=e.charAt(t);if(a===n)i++;else if(a===r&&(i--,i===0)){t++;return}}};if(n(),e.charAt(t)===`<`&&r(`<`,`>`),n(),e.charAt(t)===`(`&&r(`(`,`)`),n(),e.charAt(t)!==`:`)return[];let i=[],a=0,o=t+1,s=t=>{let n=bu(e.slice(o,t)).replace(/\s+/g,` `).trim();n!==``&&i.push(n)};for(let n=t+1;n<e.length;n++){let t=e.charAt(n);if(t===`<`||t===`(`||t===`[`)a++;else if(t===`>`||t===`)`||t===`]`)a--;else if(a===0&&t===`,`)s(n),o=n+1;else if(a===0&&e.startsWith(`where`,n)&&!V(e.charAt(n-1))&&B(e.charAt(n+5)))return s(n),i}return s(e.length),i}function bu(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charAt(n);if(r===`<`)t++;else if(r===`>`)t--;else if(r===`(`&&t===0)return e.slice(0,n)}return e}function xu(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charAt(n);if(r===`(`){if(t===0){let t=RegExp(`(@?[A-Za-z_]\\w*)\\s*(?:${Ul})?\\s*$`).exec(e.slice(0,n)),r=t?.[1]??``;if(t&&!Fl.has(r))return{name:r.replace(/^@/,``),index:t.index}}t++}else r===`)`&&(t=Math.max(0,t-1))}return null}function Su(e,t,n){let r=[],i=[],a=[],o=null,s=``,c=()=>{for(let e=a.length-1;e>=0;e--){let t=a[e];if(t?.kind===`type`)return t}return null},l=()=>[s,...a.filter(e=>e.kind===`namespace`).map(e=>e.namespaceName)].filter(Boolean).join(`.`),u=(r,i,a,o)=>{let s=r.cls,c=xu(i);if(!s||!c||c.name===s.name)return;let l=i.slice(0,c.index);if(/\b(?:operator|delegate|event)\b/.test(l))return;let u=new Set(l.split(/\s+/));s.methods.push({name:c.name,isPublic:u.has(`public`)||r.isInterface&&!u.has(`private`)&&!u.has(`protected`)&&!u.has(`internal`),isStatic:u.has(`static`),isOverride:u.has(`override`),hubMethodName:vu(e,t,o),line:n(a+c.index)})},d=(n,r,i,a)=>{let o=n.cls;if(!o)return;let s=gu(e,i,a,`,`),c=r.replace(/^@/,``);s.forEach(([n,r],i)=>{let a=n;if(i>0){let t=/^\s*(@?[A-Za-z_]\w*)\s*=/.exec(e.slice(n,r));if(!t)return;c=(t[1]??``).replace(/^@/,``),a=n+t[0].length}let s=zu(t.slice(a,r).trim());s!==null&&o.constStrings.set(c,s)})},f=(t,f,p)=>{let{restStart:m,ranges:h}=_u(e,t,f.end),g=m;for(;g<f.end&&B(e.charAt(g));)g++;let _=e.slice(g,f.end);if(_.trim()===``)return null;if(f.terminator===`;`){let e=zl.exec(_);if(e)return r.push((e[1]??``).replace(/\s+/g,``)),null}let v=Bl.exec(_);if(v){let e=(v[1]??``).replace(/\s+/g,``);if(f.terminator===`;`)return s=e,o??=e,null;let t=[l(),e].filter(Boolean).join(`.`);return o??=t,{kind:`namespace`,cls:null,isInterface:!1,namespaceName:e}}let y=Ll.exec(_);if(y){let e=c(),t=(y[3]??``).replace(/^@/,``),r={name:t,fullName:e?.cls?`${e.cls.fullName}.${t}`:t,namespace:l(),bodyStart:f.end,bodyEnd:f.end,baseTypes:yu(_.slice(y[0].length)),isAbstract:/\babstract\b/.test(y[1]??``),methods:[],constStrings:/* @__PURE__ */ new Map,line:n(g+y[0].length-(y[3]??``).length)};return i.push(r),{kind:`type`,cls:r,isInterface:y[2]===`interface`,namespaceName:``}}let b=a[a.length-1];if(b?.kind!==`type`)return null;if(f.terminator===`=`){let e=Hl.exec(_);return e&&d(b,e[1]??``,f.end+1,p),null}return u(b,_,g,h),null},p=0;for(;p<e.length;){let t=hu(e,p);if(t.terminator===`eof`)break;if(t.terminator===`}`){let e=a.pop();e?.cls&&(e.cls.bodyEnd=t.end),p=t.end+1;continue}if(t.terminator===`=`||t.terminator===`=>`){let n=mu(e,t.end+(t.terminator===`=>`?2:1));f(p,t,n),p=e.charAt(n)===`;`?n+1:n;continue}let n=f(p,t,t.end);t.terminator===`{`?n?(a.push(n),p=t.end+1):p=pu(e,t.end)+1:p=t.end+1}return{namespace:o,usings:r,classes:i}}function Cu(e,t){let n=0;for(let r=t;r<e.length;r++){let t=e.charAt(r);if(t===`(`||t===`[`||t===`{`)n++;else if(t===`)`||t===`]`||t===`}`){if(n===0)return t===`)`?r:-1;n--}else if(t===`,`&&n===0)return r}return-1}function H(e,t){let n=t;for(;n>=0&&B(e.charAt(n));)n--;return n}function wu(e,t){let n=e.charAt(t),r=n===`)`?`(`:`[`,i=0;for(let a=t;a>=0;a--){let t=e.charAt(a);if(t===n)i++;else if(t===r&&(i--,i===0))return a}return-1}function Tu(e,t){let n=0;for(let r=t;r>=0;r--){let t=e.charAt(r);if(t===`>`)n++;else if(t===`<`){if(n--,n===0)return r}else if(!/[\w\s,.?[\]:]/.test(t))return-1}return-1}function Eu(e,t){let n=t;for(;;){let t=Du(e,n);if(t<0)return n;n=t;let r=/(?<![\w@])new\s+$/.exec(e.slice(Math.max(0,n-40),n));r&&(n-=r[0].length);let i=H(e,n-1);if(e.charAt(i)!==`.`||e.charAt(i-1)===`.`)return n;n=i;let a=H(e,i-1);(e.charAt(a)===`?`||e.charAt(a)===`!`)&&(n=a)}}function Du(e,t){let n=H(e,t-1),r=-1;for(;;){let t=e.charAt(n);if(t===`)`||t===`]`){let i=wu(e,n);if(i<0)return r;if(r=i,n=H(e,i-1),t===`)`&&e.charAt(n)===`>`){let t=Tu(e,n);t>=0&&(r=t,n=H(e,t-1))}}else{if(V(t)){let t=n;for(;t>0&&V(e.charAt(t-1));)t--;return Il.has(e.slice(t,n+1))&&r>=0?r:(t>0&&e.charAt(t-1)===`@`&&t--,t)}return r}}}function Ou(e,t,n,r,i){if(i>8)return null;let a=Fu(e.trim());if(a===``)return null;let o=zu(a);if(o!==null)return[o];let s=Iu(a);if(s){let e=Ou(s.whenTrue,t,n,r,i+1),a=Ou(s.whenFalse,t,n,r,i+1);return!e||!a?null:[.../* @__PURE__ */ new Set([...e,...a])]}let c=Wl.exec(a);if(c){let e=c[1]??``;for(;/<[^<>]*>/.test(e);)e=e.replace(/<[^<>]*>/g,``);let t=(e.split(`.`).pop()??``).trim().replace(/^@/,``);return Kl.test(t)?[t]:null}let l=Gl.exec(a);return l?ku(l[1]??``,l[2]??``,t,n,r):Kl.test(a)?n===null?null:Au(a.replace(/^@/,``),t,n,r):null}function ku(e,t,n,r,i){let a=e.replace(/\s+/g,``).split(`.`).map(e=>e.replace(/^@/,``)),o=a.join(`.`),s=t.replace(/^@/,``),c=i.get(a[a.length-1]??``)??[],l=r?.namespace??n.namespace??``,u=[];a.length>1&&u.push(c.filter(e=>{let t=Mu(e);return t===o||t.endsWith(`.${o}`)})),u.push(c.filter(e=>Nu(e.namespace,l)),c.filter(e=>n.usings.includes(e.namespace)),c);for(let e of u)if(e.some(e=>e.constStrings.has(s)))return Pu(e,s);return null}function Au(e,t,n,r){let i=t.classes.filter(e=>e!==n&&e.namespace===n.namespace&&n.fullName.startsWith(`${e.fullName}.`)).sort((e,t)=>t.fullName.length-e.fullName.length),a=[];for(let t of[n,...i]){let n=(r.get(t.name)??[]).filter(e=>e.namespace===t.namespace&&e.fullName===t.fullName),i=n.includes(t)?n:[t,...n];if(a.push(...i),i.some(t=>t.constStrings.has(e)))return Pu(i,e)}let o=new Set(a),s=a;for(let t=0;t<8;t++){let t=[];for(let e of s)for(let i of e.baseTypes)for(let e of ju(i,n.namespace,r))o.has(e)||(o.add(e),t.push(e));if(t.length===0)return null;if(t.some(t=>t.constStrings.has(e)))return Pu(t,e);s=t}return null}function ju(e,t,n){let r=(e.replace(/<.*$/,``).trim().split(`.`).pop()??``).replace(/^@/,``),i=n.get(r)??[],a=i.filter(e=>e.namespace===t);return a.length>0?a:i}function Mu(e){return e.namespace===``?e.fullName:`${e.namespace}.${e.fullName}`}function Nu(e,t){return e===``||t===e||t.startsWith(`${e}.`)}function Pu(e,t){let n=/* @__PURE__ */ new Set;for(let r of e){let e=r.constStrings.get(t);e!==void 0&&n.add(e)}return n.size===1?[...n]:null}function Fu(e){let t=e;for(;t.startsWith(`(`);){let e=cu(t).code;if(pu(e,0)!==t.length-1)break;t=t.slice(1,-1).trim()}return t}function Iu(e){let t=cu(e).code,n=e=>t.charAt(e)===`?`&&!`?.[`.includes(t.charAt(e+1)),r=0,i=-1;for(let e=0;e<t.length&&i<0;e++){let a=t.charAt(e);a===`(`||a===`[`||a===`{`?r++:a===`)`||a===`]`||a===`}`?r--:a===`?`&&r===0&&(n(e)?i=e:t.charAt(e+1)===`?`&&e++)}if(i<0)return null;r=0;let a=0;for(let o=i+1;o<t.length;o++){let s=t.charAt(o);if(s===`(`||s===`[`||s===`{`)r++;else if(s===`)`||s===`]`||s===`}`)r--;else if(r===0&&s===`?`&&n(o))a++;else if(r===0&&s===`:`){if(t.charAt(o+1)===`:`){o++;continue}if(a===0)return{whenTrue:e.slice(i+1,o),whenFalse:e.slice(o+1)};a--}}return null}var Lu={n:`
186
- `,r:`\r`,t:` `,0:`\0`,a:`\x07`,b:`\b`,f:`\f`,v:`\v`,"\\":`\\`,'"':`"`,"'":`'`};function Ru(e){return e.replace(/\\(u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|x[0-9a-fA-F]{1,4}|[\s\S])/g,(e,t)=>{let n=t.charAt(0);return t.length>1?String.fromCodePoint(Number.parseInt(t.slice(1),16)):Lu[n]??n})}function zu(e){let t=/^[$@]*/.exec(e)?.[0]??``,n=t.split(`$`).length-1,r=t.includes(`@`),i=e.slice(t.length),a;if(r){let e=/^"((?:[^"]|"")*)"$/.exec(i);if(!e)return null;a=(e[1]??``).replace(/""/g,`"`)}else if(i.startsWith(`"""`)){let e=/^"+/.exec(i)?.[0]??``;if(!i.endsWith(e)||i.length<e.length*2)return null;let t=Bu(i.slice(e.length,i.length-e.length));return t===null||n>0&&/[{}]/.test(t)?null:t}else{let e=/^"((?:[^"\\\r\n]|\\.)*)"$/.exec(i);if(!e)return null;a=e[1]??``}return n>0&&/[{}]/.test(a.replace(/\{\{|\}\}/g,``))?null:(r||(a=Ru(a)),n>0&&(a=a.replace(/\{\{/g,`{`).replace(/\}\}/g,`}`)),a)}function Bu(e){if(!/[\r\n]/.test(e))return e;let t=e.split(/\r?\n/),n=t.shift()??``,r=t.pop()??``;return n.trim()!==``||r.trim()!==``?null:t.map(e=>e.startsWith(r)?e.slice(r.length):e.trimStart()).join(`
187
- `)}var Vu=/^(?:Areas\/([^/]+)\/)?Pages\/(.+)\.cshtml$/i,Hu=/^[ \t]*@page\b/m,Uu=/^[ \t]*@model\s+([^\r\n]+?)\s*$/m,Wu=/^[ \t]*@inherits\b/m,Gu=/^[ \t]*@namespace\s+([\w.]+)/m,Ku=/^[ \t]*@using\s+([\w.]+)\s*;?[ \t]*$/gm,qu=/<ProjectReference\b[^>]*?\bInclude\s*=\s*"([^"]+)"/g,Ju=/(?:^|\/)Areas\/([^/]+)\//i,Yu=/<([A-Za-z][\w:.-]*)((?:"[^"]*"|'[^']*'|[^>"'])*)>/g,Xu=/([A-Za-z_@:][\w:.@-]*)\s*=\s*(?:"([^"]*)"|'([^']*)')/g,Zu=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,Qu=/"((?:[^"\\\n]|\\.)*)"|'((?:[^'\\\n]|\\.)*)'|`((?:[^`\\]|\\.)*)`/g,$u=/[?&]handler=([^&#]*)/,ed=/^On(?:Get|Post|Put|Delete|Patch|Head|Options)(.*?)(?:Async)?$/,td=/\bOn(?:Get|Post|Put|Delete|Patch|Head|Options)(\w*?)(?:Async)?\s*\(/g,nd=/^@?([A-Za-z_]\w*)\s*:(?!:)\s*([\s\S]*)$/,rd=/\barea\s*=\s*(?:"([^"]*)"|(\w[\w.]*))/i,id=/^I[A-Z]/,ad=/* @__PURE__ */ new Set([`url`,`urlhelper`,`_urlhelper`]),od=/* @__PURE__ */ new Set([`PageModel`,`object`,`Object`]),sd=/Page\s*\(|RedirectToPage/;function cd(e,t){let n={dynamicHandlers:0,unverifiedPages:0,foreignAreaLinks:0,unreadRouteValues:0,unresolvedLinks:0},i=[],a=new Set(t),o=/* @__PURE__ */ new Map,s=t=>{let n=o.get(t);if(n!==void 0)return n;let i=``;try{i=r(d(e,t),`utf8`).replace(/^/,``)}catch(e){if(!(e instanceof Error&&`code`in e&&e.code===`ENOENT`))throw e}return o.set(t,i),i},c=/* @__PURE__ */ new Map,l=(e,t,n,r)=>{let a=c.get(e);a||(a=s(e).split(`
188
- `),c.set(e,a)),i.push({rule:n,file:e,line:t,text:(a[t-1]??``).trim().slice(0,160),hint:r})},u=t.filter(e=>e.endsWith(`.csproj`)).sort(),f=/* @__PURE__ */ new Map,m=/* @__PURE__ */ new Map;for(let e of u){let t=p.dirname(e),n=f.get(t);if(n){m.set(e,n);continue}let r={dir:t,name:p.basename(e,`.csproj`),own:/* @__PURE__ */ new Map,references:[],index:/* @__PURE__ */ new Map};f.set(t,r),m.set(e,r)}if(f.size===0)return{hits:i,skipped:n};let h=e=>{let t=p.dirname(e);for(;;){let e=f.get(t);if(e)return e;if(t===`.`||t===`/`)return null;t=p.dirname(t)}},g=/* @__PURE__ */ new Map;for(let e of t){if(!e.endsWith(`.cshtml`))continue;let t=h(e);if(!t)continue;let n=t.dir===`.`?e:e.slice(t.dir.length+1),r=Vu.exec(n);if(!r||!Hu.test(w(s(e),`markup`)))continue;let i=`/${r[2]}`,a={file:e,project:t.dir,area:r[1]??null,name:i,folder:p.dirname(i)};g.set(e,a),t.own.set(ld(a.area,i),a)}if(g.size===0)return{hits:i,skipped:n};for(let e of u){let t=m.get(e);if(t&&t.dir===p.dirname(e))for(let n of s(e).matchAll(qu)){let e=p.normalize(p.join(t.dir,(n[1]??``).replaceAll(`\\`,`/`))),r=m.get(e);r&&r!==t&&!t.references.includes(r.dir)&&t.references.push(r.dir)}}for(let e of f.values()){e.index=new Map(e.own);let t=/* @__PURE__ */ new Set([e.dir]),n=[...e.references];for(let r=n.shift();r!==void 0;r=n.shift()){if(t.has(r))continue;t.add(r);let i=f.get(r);if(i){for(let[t,n]of i.own)e.index.has(t)||e.index.set(t,n);n.push(...i.references)}}}let _=/* @__PURE__ */ new Map;for(let e of f.values())for(let t of e.references)_.set(t,[..._.get(t)??[],e.dir]);for(let e of f.values()){let t=/* @__PURE__ */ new Set([e.dir]),n=[..._.get(e.dir)??[]];for(let r=n.shift();r!==void 0;r=n.shift()){if(t.has(r))continue;t.add(r);let i=f.get(r);if(i){for(let[t,n]of i.index)e.index.has(t)||e.index.set(t,n);n.push(..._.get(r)??[])}}}let v=/* @__PURE__ */ new Set;for(let e of t){let t=Ju.exec(e)?.[1];t&&v.add(t.toLowerCase())}let y=[],b=/* @__PURE__ */ new Map,x=/* @__PURE__ */ new Map;for(let e of t){if(!e.endsWith(`.cs`))continue;let t=Yl(e,s(e));y.push(t),b.set(e,t);for(let e of t.classes)x.set(e,t)}let S=iu(y),ee=/* @__PURE__ */ new Map,te=e=>{let t=ee.get(e);if(t!==void 0)return t;let n=w(s(e),`markup`);return ee.set(e,n),n},ne=e=>{let t=/* @__PURE__ */ new Set,n=e=>{let n=te(e),r=Gu.exec(n)?.[1];r&&t.add(r);for(let e of n.matchAll(Ku))e[1]&&t.add(e[1])};n(e.file);for(let t=p.dirname(e.file);;t=p.dirname(t)){let r=p.join(t,`_ViewImports.cshtml`);if(a.has(r)&&n(r),t===e.project||t===`.`||t===`/`)break}return t},re=(e,t,n)=>{if(n.has(e))return!0;n.add(e);for(let n of e.methods){if(!n.isPublic||n.isStatic)continue;let e=ed.exec(n.name);e&&t.add((e[1]??``).toLowerCase())}let r=e.baseTypes[0];if(r===void 0)return!0;let i=ud(r);if(id.test(i))return!0;let a=S.get(i);if(!a)return od.has(i);let o=!0;for(let e of a)o=re(e,t,n)&&o;return o},C=/* @__PURE__ */ new Map,ie=e=>{if(C.has(e.file))return C.get(e.file)??null;let t=ae(e);return C.set(e.file,t),t},ae=e=>{let t=te(e.file),n=/* @__PURE__ */ new Set;for(let e of t.matchAll(td))n.add((e[1]??``).toLowerCase());let r=Uu.exec(t)?.[1];if(r===void 0)return Wu.test(t)?null:{name:`the page`,handlers:n};let i=r.replace(/<.*$/,``).trim().split(`.`),a=i[i.length-1]??``,o=i.slice(0,-1).join(`.`),s=S.get(a)??[];if(s.length===0)return null;let c=s.filter(t=>x.get(t)?.file===`${e.file}.cs`);if(c.length>0)s=c;else if(s.length>1){let t=s.filter(t=>h(x.get(t)?.file??``)?.dir===e.project);if(t.length>0&&(s=t),s.length>1){let t=ne(e);o&&t.add(o);let n=s.filter(e=>t.has(x.get(e)?.namespace??``));n.length>0&&(s=n)}}let l=new Set(s.map(e=>`${x.get(e)?.namespace??``}|${e.fullName}`));if(l.size>1)return null;let[u]=l;s=(S.get(a)??[]).filter(e=>`${x.get(e)?.namespace??``}|${e.fullName}`===u);let d=new Set(n),f=/* @__PURE__ */ new Set,p=!0;for(let e of s)p=re(e,d,f)&&p;return p?{name:a,handlers:d}:null},oe=/* @__PURE__ */ new Set,se=(e,t,n,r)=>{let i=ie(e);i?i.handlers.has(t.toLowerCase())||l(n,r,`razor-page-handler`,`add On<Verb>${t}Async to ${i.name}, or fix the handler name`):oe.add(e.file)},ce=(e,t,r,i,a,o)=>{let s=fd(t,r,i);if(!s)return n.unresolvedLinks++,null;let c=e.index.get(ld(s.area,s.path));if(c)return c;if(s.area!==null&&!v.has(s.area.toLowerCase()))return n.foreignAreaLinks++,null;let u=s.area===null?s.path:`${s.path} (area ${s.area})`;return l(a,o,`razor-page-link`,`no page ${u} in ${e.name}; fix the link or add the page`),null},le=(e,t,r,i)=>{let a=e.indexOf(`?`);if(a<0)return;let o=$u.exec(e.slice(a))?.[1];o!==void 0&&(e.slice(0,a).trim()===``?/[@${]/.test(o)?n.dynamicHandlers++:o!==``&&(t?se(t,o,r,i):n.unresolvedLinks++):n.unresolvedLinks++)};for(let e of t){if(!e.endsWith(`.cshtml`))continue;let t=h(e);if(!t||t.index.size===0)continue;let r=s(e),i=te(e),a=_d(r),o=g.get(e)??null,c=o?{area:o.area,folder:o.folder}:{area:Ju.exec(e)?.[1]??null,folder:null};for(let r of i.matchAll(Yu)){let i=r.index+1+(r[1]?.length??0),s=/* @__PURE__ */ new Map;for(let e of(r[2]??``).matchAll(Xu))s.set((e[1]??``).toLowerCase(),{value:e[2]??e[3]??``,at:i+e.index});let l=s.get(`asp-page`),u=s.get(`asp-area`),d=s.get(`asp-page-handler`),f=o;if(l&&(!l.value.includes(`@`)&&!u?.value.includes(`@`)?f=ce(t,l.value,u?.value,c,e,a(l.at)):(f=null,n.unresolvedLinks++)),d){let t=d.value.trim();t.includes(`@`)?n.dynamicHandlers++:t!==``&&f?se(f,t,e,a(d.at)):t!==``&&!l&&n.unresolvedLinks++}for(let t of[`href`,`action`,`formaction`]){let n=s.get(t);n&&le(n.value,o,e,a(n.at))}}for(let t of i.matchAll(Zu)){if(/\bsrc\s*=/i.test(t[1]??``))continue;let n=t[2]??``,r=t.index+t[0].length-9-n.length;for(let t of n.matchAll(Qu))le(t[1]??t[2]??t[3]??``,o,e,a(r+t.index))}}for(let e of y){let t=e.file,r=h(t);if(!r||r.index.size===0||!sd.test(e.blanked))continue;let i=g.get(t.replace(/\.cs$/,``))??null,a=i?{area:i.area,folder:i.folder}:{area:Ju.exec(t)?.[1]??null,folder:null},o=gd(e.blanked),s=[];for(let t of Xl(e,[`Page`,`RedirectToPage`,`RedirectToPagePermanent`])){if(t.method===`Page`&&!dd(t.receiver))continue;let n=o.indexOf(`(`,t.index);n>=0&&s.push({method:t.method,open:n,at:au(e,t.index)})}for(let i of s){let s=hd(o,e.blanked,i.open);if(!s){n.unresolvedLinks++;continue}let c=md(s,0,`pageName`);if(c===void 0)continue;let l=ru(c,e,i.at,S);if(!l){n.unresolvedLinks++;continue}if(s.slice(1).some(t=>{let n=(nd.exec(t)?.[2]??t).trim();return n!==`null`&&!/^new\s*\{/.test(n)&&ru(n,e,i.at,S)===null})){n.unreadRouteValues++;continue}let u=pd(s.slice(1).join(`,`));if(u===null){n.unreadRouteValues++;continue}let d=md(s,1,`pageHandler`),f=d===void 0?null:ru(d,e,i.at,S),p=e.lineAt(i.open);for(let e of l){let n=ce(r,e,u,a,t,p);if(n&&f)for(let e of f)e!==``&&se(n,e,t,p)}}}return n.unverifiedPages=oe.size,i.sort((e,t)=>e.file<t.file?-1:e.file>t.file?1:e.line-t.line),{hits:i,skipped:n}}function ld(e,t){return`${(e??``).toLowerCase()}|${t.toLowerCase()}`}function ud(e){let t=e.replace(/<.*$/,``).trim().split(`.`);return t[t.length-1]??``}function dd(e){let t=e.split(`.`).pop()?.replace(/[?!]$/,``).toLowerCase()??``;return ad.has(t)}function fd(e,t,n){let r=e.trim();if(r===``||/[@{?#]/.test(r))return null;let i=t===void 0?n.area:t===``?null:t,a;if(r.startsWith(`/`))a=p.normalize(r);else if(n.folder===null)return null;else a=p.normalize(p.join(n.folder,r));return a=a.replace(/\/+$/,``),a===``?null:{area:i,path:a}}function pd(e){let t=rd.exec(e);if(t)return t[1]??null}function md(e,t,n){for(let t of e){let e=nd.exec(t);if(e?.[1]===n)return e[2]}let r=e[t];return r===void 0||nd.test(r)?void 0:r}function hd(e,t,n){let r=[],i=0,a=n+1;for(let o=n;o<e.length;o++){let n=e.charAt(o);if(n===`(`||n===`[`||n===`{`)i++;else if(n===`)`||n===`]`||n===`}`){if(i--,i===0)return r.push(t.slice(a,o).trim()),r.length===1&&r[0]===``?[]:r}else n===`,`&&i===1&&(r.push(t.slice(a,o).trim()),a=o+1)}return null}function gd(e){let t=e.split(``),n=e.length,r=(e,n)=>{for(let r=e;r<n;r++)t[r]!==`
184
+ `){o=!0,a++;continue}if(s===` `||s===` `||s===`\r`||s===``){a++;continue}let c=o;if(o=!1,s===`/`&&e.charAt(a+1)===`/`){let r=cu(e,a);i(t,a,r),i(n,a,r),a=r;continue}if(s===`/`&&e.charAt(a+1)===`*`){let o=e.indexOf(`*/`,a+2),s=o<0?r:o+2;i(t,a,s),i(n,a,s),a=s;continue}if(s===`#`&&c){let r=cu(e,a),o=e.indexOf(`//`,a);o>=0&&o<r&&i(t,o,r),i(n,a,r),a=r;continue}let l=uu(e,a);if(l){let t=du(e,l);i(n,l.quoteAt+1,t-1),a=Math.max(t,a+1)}else if(s===`'`){let t=pu(e,a);i(n,a+1,t-1),a=t}else a++}return{blanked:t.join(``),code:n.join(``)}}function uu(e,t){let n=t,r=0,i=!1;for(;e.charAt(n)===`$`||e.charAt(n)===`@`;)e.charAt(n)===`$`?r++:i=!0,n++;if(e.charAt(n)!==`"`)return null;let a=0;for(;e.charAt(n+a)===`"`;)a++;return{quoteAt:n,dollars:r,verbatim:i,quotes:a}}function du(e,t){let n=e.length,r=!t.verbatim&&t.quotes>=3;if(!t.verbatim&&t.quotes===2)return t.quoteAt+2;if(r){let r=t.quotes,i=t.quoteAt+r;for(;i<n;){let n=e.charAt(i);if(n===`"`){let t=1;for(;e.charAt(i+t)===`"`;)t++;if(t>=r)return i+t;i+=t}else if(t.dollars>0&&n===`{`){let n=1;for(;e.charAt(i+n)===`{`;)n++;if(n<t.dollars){i+=n;continue}i=fu(e,i+n,t.dollars)}else i++}return n}let i=t.quoteAt+1;for(;i<n;){let n=e.charAt(i);if(t.verbatim){if(n===`"`){if(e.charAt(i+1)===`"`){i+=2;continue}return i+1}}else{if(n===`\\`){i+=2;continue}if(n===`"`)return i+1;if(n===`
185
+ `)return i}if(t.dollars>0&&n===`{`){if(e.charAt(i+1)===`{`){i+=2;continue}i=fu(e,i+1,1)}else i++}return n}function fu(e,t,n){let r=e.length,i=0,a=t;for(;a<r;){let t=e.charAt(a);if(t===`{`)i++,a++;else if(t===`}`){if(i>0)i--,a++;else return Math.min(r,a+n)}else if(t===`'`)a=pu(e,a);else{let t=uu(e,a);a=t?Math.max(du(e,t),a+1):a+1}}return r}function pu(e,t){if(e.charAt(t+1)===`\\`){let n=e.indexOf(`'`,t+3);return n<0||n-t>12?t+1:n+1}return e.charAt(t+2)===`'`?t+3:t+1}function mu(e,t){let n=e.charAt(t),r=n===`(`?`)`:n===`[`?`]`:`}`,i=0;for(let a=t;a<e.length;a++){let t=e.charAt(a);if(t===n)i++;else if(t===r&&(i--,i===0))return a}return e.length-1}function hu(e,t){let n=0;for(let r=t;r<e.length;r++){let t=e.charAt(r);if(t===`(`||t===`[`||t===`{`)n++;else if(t===`)`||t===`]`||t===`}`){if(n===0)return r;n--}else if(t===`;`&&n===0)return r}return e.length}function gu(e,t){let n=0;for(let r=t;r<e.length;r++){let i=e.charAt(r);if(i===`(`||i===`[`)n++;else if(i===`)`||i===`]`)n=Math.max(0,n-1);else if(n===0){if(i===`{`||i===`;`||i===`}`)return{end:r,terminator:i};if(i===`=`){let n=e.slice(t,r);if(zl.test(n)||Hl.test(n))continue;return{end:r,terminator:e.charAt(r+1)===`>`?`=>`:`=`}}}}return{end:e.length,terminator:`eof`}}function _u(e,t,n,r){let i=[],a=0,o=t;for(let s=t;s<n;s++){let t=e.charAt(s);t===`(`||t===`[`||t===`{`?a++:t===`)`||t===`]`||t===`}`?a--:t===r&&a===0&&(i.push([o,s]),o=s+1)}return i.push([o,n]),i}function vu(e,t,n){let r=[],i=t;for(;;){for(;i<n&&B(e.charAt(i));)i++;if(e.charAt(i)!==`[`)break;let t=mu(e,i);if(t>=n)break;r.push([i,t+1]),i=t+1}return{restStart:i,ranges:r}}function yu(e,t,n){for(let[r,i]of n){let n=/\bHubMethodName(?:Attribute)?\s*\(/.exec(e.slice(r,i));if(!n)continue;let a=r+n.index+n[0].length-1,o=mu(e,a);return Bu(t.slice(a+1,o).trim())}return null}function bu(e){let t=0,n=()=>{for(;t<e.length&&B(e.charAt(t));)t++},r=(n,r)=>{let i=0;for(;t<e.length;t++){let a=e.charAt(t);if(a===n)i++;else if(a===r&&(i--,i===0)){t++;return}}};if(n(),e.charAt(t)===`<`&&r(`<`,`>`),n(),e.charAt(t)===`(`&&r(`(`,`)`),n(),e.charAt(t)!==`:`)return[];let i=[],a=0,o=t+1,s=t=>{let n=xu(e.slice(o,t)).replace(/\s+/g,` `).trim();n!==``&&i.push(n)};for(let n=t+1;n<e.length;n++){let t=e.charAt(n);if(t===`<`||t===`(`||t===`[`)a++;else if(t===`>`||t===`)`||t===`]`)a--;else if(a===0&&t===`,`)s(n),o=n+1;else if(a===0&&e.startsWith(`where`,n)&&!V(e.charAt(n-1))&&B(e.charAt(n+5)))return s(n),i}return s(e.length),i}function xu(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charAt(n);if(r===`<`)t++;else if(r===`>`)t--;else if(r===`(`&&t===0)return e.slice(0,n)}return e}function Su(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charAt(n);if(r===`(`){if(t===0){let t=RegExp(`(@?[A-Za-z_]\\w*)\\s*(?:${Wl})?\\s*$`).exec(e.slice(0,n)),r=t?.[1]??``;if(t&&!Il.has(r))return{name:r.replace(/^@/,``),index:t.index}}t++}else r===`)`&&(t=Math.max(0,t-1))}return null}function Cu(e,t,n){let r=[],i=[],a=[],o=null,s=``,c=()=>{for(let e=a.length-1;e>=0;e--){let t=a[e];if(t?.kind===`type`)return t}return null},l=()=>[s,...a.filter(e=>e.kind===`namespace`).map(e=>e.namespaceName)].filter(Boolean).join(`.`),u=(r,i,a,o)=>{let s=r.cls,c=Su(i);if(!s||!c||c.name===s.name)return;let l=i.slice(0,c.index);if(/\b(?:operator|delegate|event)\b/.test(l))return;let u=new Set(l.split(/\s+/));s.methods.push({name:c.name,isPublic:u.has(`public`)||r.isInterface&&!u.has(`private`)&&!u.has(`protected`)&&!u.has(`internal`),isStatic:u.has(`static`),isOverride:u.has(`override`),hubMethodName:yu(e,t,o),line:n(a+c.index)})},d=(n,r,i,a)=>{let o=n.cls;if(!o)return;let s=_u(e,i,a,`,`),c=r.replace(/^@/,``);s.forEach(([n,r],i)=>{let a=n;if(i>0){let t=/^\s*(@?[A-Za-z_]\w*)\s*=/.exec(e.slice(n,r));if(!t)return;c=(t[1]??``).replace(/^@/,``),a=n+t[0].length}let s=Bu(t.slice(a,r).trim());s!==null&&o.constStrings.set(c,s)})},f=(t,f,p)=>{let{restStart:m,ranges:h}=vu(e,t,f.end),g=m;for(;g<f.end&&B(e.charAt(g));)g++;let _=e.slice(g,f.end);if(_.trim()===``)return null;if(f.terminator===`;`){let e=Bl.exec(_);if(e)return r.push((e[1]??``).replace(/\s+/g,``)),null}let v=Vl.exec(_);if(v){let e=(v[1]??``).replace(/\s+/g,``);if(f.terminator===`;`)return s=e,o??=e,null;let t=[l(),e].filter(Boolean).join(`.`);return o??=t,{kind:`namespace`,cls:null,isInterface:!1,namespaceName:e}}let y=Rl.exec(_);if(y){let e=c(),t=(y[3]??``).replace(/^@/,``),r={name:t,fullName:e?.cls?`${e.cls.fullName}.${t}`:t,namespace:l(),bodyStart:f.end,bodyEnd:f.end,baseTypes:bu(_.slice(y[0].length)),isAbstract:/\babstract\b/.test(y[1]??``),methods:[],constStrings:/* @__PURE__ */ new Map,line:n(g+y[0].length-(y[3]??``).length)};return i.push(r),{kind:`type`,cls:r,isInterface:y[2]===`interface`,namespaceName:``}}let b=a[a.length-1];if(b?.kind!==`type`)return null;if(f.terminator===`=`){let e=Ul.exec(_);return e&&d(b,e[1]??``,f.end+1,p),null}return u(b,_,g,h),null},p=0;for(;p<e.length;){let t=gu(e,p);if(t.terminator===`eof`)break;if(t.terminator===`}`){let e=a.pop();e?.cls&&(e.cls.bodyEnd=t.end),p=t.end+1;continue}if(t.terminator===`=`||t.terminator===`=>`){let n=hu(e,t.end+(t.terminator===`=>`?2:1));f(p,t,n),p=e.charAt(n)===`;`?n+1:n;continue}let n=f(p,t,t.end);t.terminator===`{`?n?(a.push(n),p=t.end+1):p=mu(e,t.end)+1:p=t.end+1}return{namespace:o,usings:r,classes:i}}function wu(e,t){let n=0;for(let r=t;r<e.length;r++){let t=e.charAt(r);if(t===`(`||t===`[`||t===`{`)n++;else if(t===`)`||t===`]`||t===`}`){if(n===0)return t===`)`?r:-1;n--}else if(t===`,`&&n===0)return r}return-1}function H(e,t){let n=t;for(;n>=0&&B(e.charAt(n));)n--;return n}function Tu(e,t){let n=e.charAt(t),r=n===`)`?`(`:`[`,i=0;for(let a=t;a>=0;a--){let t=e.charAt(a);if(t===n)i++;else if(t===r&&(i--,i===0))return a}return-1}function Eu(e,t){let n=0;for(let r=t;r>=0;r--){let t=e.charAt(r);if(t===`>`)n++;else if(t===`<`){if(n--,n===0)return r}else if(!/[\w\s,.?[\]:]/.test(t))return-1}return-1}function Du(e,t){let n=t;for(;;){let t=Ou(e,n);if(t<0)return n;n=t;let r=/(?<![\w@])new\s+$/.exec(e.slice(Math.max(0,n-40),n));r&&(n-=r[0].length);let i=H(e,n-1);if(e.charAt(i)!==`.`||e.charAt(i-1)===`.`)return n;n=i;let a=H(e,i-1);(e.charAt(a)===`?`||e.charAt(a)===`!`)&&(n=a)}}function Ou(e,t){let n=H(e,t-1),r=-1;for(;;){let t=e.charAt(n);if(t===`)`||t===`]`){let i=Tu(e,n);if(i<0)return r;if(r=i,n=H(e,i-1),t===`)`&&e.charAt(n)===`>`){let t=Eu(e,n);t>=0&&(r=t,n=H(e,t-1))}}else{if(V(t)){let t=n;for(;t>0&&V(e.charAt(t-1));)t--;return Ll.has(e.slice(t,n+1))&&r>=0?r:(t>0&&e.charAt(t-1)===`@`&&t--,t)}return r}}}function ku(e,t,n,r,i){if(i>8)return null;let a=Iu(e.trim());if(a===``)return null;let o=Bu(a);if(o!==null)return[o];let s=Lu(a);if(s){let e=ku(s.whenTrue,t,n,r,i+1),a=ku(s.whenFalse,t,n,r,i+1);return!e||!a?null:[.../* @__PURE__ */ new Set([...e,...a])]}let c=Gl.exec(a);if(c){let e=c[1]??``;for(;/<[^<>]*>/.test(e);)e=e.replace(/<[^<>]*>/g,``);let t=(e.split(`.`).pop()??``).trim().replace(/^@/,``);return ql.test(t)?[t]:null}let l=Kl.exec(a);return l?Au(l[1]??``,l[2]??``,t,n,r):ql.test(a)?n===null?null:ju(a.replace(/^@/,``),t,n,r):null}function Au(e,t,n,r,i){let a=e.replace(/\s+/g,``).split(`.`).map(e=>e.replace(/^@/,``)),o=a.join(`.`),s=t.replace(/^@/,``),c=i.get(a[a.length-1]??``)??[],l=r?.namespace??n.namespace??``,u=[];a.length>1&&u.push(c.filter(e=>{let t=Nu(e);return t===o||t.endsWith(`.${o}`)})),u.push(c.filter(e=>Pu(e.namespace,l)),c.filter(e=>n.usings.includes(e.namespace)),c);for(let e of u)if(e.some(e=>e.constStrings.has(s)))return Fu(e,s);return null}function ju(e,t,n,r){let i=t.classes.filter(e=>e!==n&&e.namespace===n.namespace&&n.fullName.startsWith(`${e.fullName}.`)).sort((e,t)=>t.fullName.length-e.fullName.length),a=[];for(let t of[n,...i]){let n=(r.get(t.name)??[]).filter(e=>e.namespace===t.namespace&&e.fullName===t.fullName),i=n.includes(t)?n:[t,...n];if(a.push(...i),i.some(t=>t.constStrings.has(e)))return Fu(i,e)}let o=new Set(a),s=a;for(let t=0;t<8;t++){let t=[];for(let e of s)for(let i of e.baseTypes)for(let e of Mu(i,n.namespace,r))o.has(e)||(o.add(e),t.push(e));if(t.length===0)return null;if(t.some(t=>t.constStrings.has(e)))return Fu(t,e);s=t}return null}function Mu(e,t,n){let r=(e.replace(/<.*$/,``).trim().split(`.`).pop()??``).replace(/^@/,``),i=n.get(r)??[],a=i.filter(e=>e.namespace===t);return a.length>0?a:i}function Nu(e){return e.namespace===``?e.fullName:`${e.namespace}.${e.fullName}`}function Pu(e,t){return e===``||t===e||t.startsWith(`${e}.`)}function Fu(e,t){let n=/* @__PURE__ */ new Set;for(let r of e){let e=r.constStrings.get(t);e!==void 0&&n.add(e)}return n.size===1?[...n]:null}function Iu(e){let t=e;for(;t.startsWith(`(`);){let e=lu(t).code;if(mu(e,0)!==t.length-1)break;t=t.slice(1,-1).trim()}return t}function Lu(e){let t=lu(e).code,n=e=>t.charAt(e)===`?`&&!`?.[`.includes(t.charAt(e+1)),r=0,i=-1;for(let e=0;e<t.length&&i<0;e++){let a=t.charAt(e);a===`(`||a===`[`||a===`{`?r++:a===`)`||a===`]`||a===`}`?r--:a===`?`&&r===0&&(n(e)?i=e:t.charAt(e+1)===`?`&&e++)}if(i<0)return null;r=0;let a=0;for(let o=i+1;o<t.length;o++){let s=t.charAt(o);if(s===`(`||s===`[`||s===`{`)r++;else if(s===`)`||s===`]`||s===`}`)r--;else if(r===0&&s===`?`&&n(o))a++;else if(r===0&&s===`:`){if(t.charAt(o+1)===`:`){o++;continue}if(a===0)return{whenTrue:e.slice(i+1,o),whenFalse:e.slice(o+1)};a--}}return null}var Ru={n:`
186
+ `,r:`\r`,t:` `,0:`\0`,a:`\x07`,b:`\b`,f:`\f`,v:`\v`,"\\":`\\`,'"':`"`,"'":`'`};function zu(e){return e.replace(/\\(u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|x[0-9a-fA-F]{1,4}|[\s\S])/g,(e,t)=>{let n=t.charAt(0);return t.length>1?String.fromCodePoint(Number.parseInt(t.slice(1),16)):Ru[n]??n})}function Bu(e){let t=/^[$@]*/.exec(e)?.[0]??``,n=t.split(`$`).length-1,r=t.includes(`@`),i=e.slice(t.length),a;if(r){let e=/^"((?:[^"]|"")*)"$/.exec(i);if(!e)return null;a=(e[1]??``).replace(/""/g,`"`)}else if(i.startsWith(`"""`)){let e=/^"+/.exec(i)?.[0]??``;if(!i.endsWith(e)||i.length<e.length*2)return null;let t=Vu(i.slice(e.length,i.length-e.length));return t===null||n>0&&/[{}]/.test(t)?null:t}else{let e=/^"((?:[^"\\\r\n]|\\.)*)"$/.exec(i);if(!e)return null;a=e[1]??``}return n>0&&/[{}]/.test(a.replace(/\{\{|\}\}/g,``))?null:(r||(a=zu(a)),n>0&&(a=a.replace(/\{\{/g,`{`).replace(/\}\}/g,`}`)),a)}function Vu(e){if(!/[\r\n]/.test(e))return e;let t=e.split(/\r?\n/),n=t.shift()??``,r=t.pop()??``;return n.trim()!==``||r.trim()!==``?null:t.map(e=>e.startsWith(r)?e.slice(r.length):e.trimStart()).join(`
187
+ `)}var Hu=/^(?:Areas\/([^/]+)\/)?Pages\/(.+)\.cshtml$/i,Uu=/^[ \t]*@page\b/m,Wu=/^[ \t]*@model\s+([^\r\n]+?)\s*$/m,Gu=/^[ \t]*@inherits\b/m,Ku=/^[ \t]*@namespace\s+([\w.]+)/m,qu=/^[ \t]*@using\s+([\w.]+)\s*;?[ \t]*$/gm,Ju=/<ProjectReference\b[^>]*?\bInclude\s*=\s*"([^"]+)"/g,Yu=/(?:^|\/)Areas\/([^/]+)\//i,Xu=/<([A-Za-z][\w:.-]*)((?:"[^"]*"|'[^']*'|[^>"'])*)>/g,Zu=/([A-Za-z_@:][\w:.@-]*)\s*=\s*(?:"([^"]*)"|'([^']*)')/g,Qu=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,$u=/"((?:[^"\\\n]|\\.)*)"|'((?:[^'\\\n]|\\.)*)'|`((?:[^`\\]|\\.)*)`/g,ed=/[?&]handler=([^&#]*)/,td=/^On(?:Get|Post|Put|Delete|Patch|Head|Options)(.*?)(?:Async)?$/,nd=/\bOn(?:Get|Post|Put|Delete|Patch|Head|Options)(\w*?)(?:Async)?\s*\(/g,rd=/^@?([A-Za-z_]\w*)\s*:(?!:)\s*([\s\S]*)$/,id=/\barea\s*=\s*(?:"([^"]*)"|(\w[\w.]*))/i,ad=/^I[A-Z]/,od=/* @__PURE__ */ new Set([`url`,`urlhelper`,`_urlhelper`]),sd=/* @__PURE__ */ new Set([`PageModel`,`object`,`Object`]),cd=/Page\s*\(|RedirectToPage/;function ld(e,t){let n={dynamicHandlers:0,unverifiedPages:0,foreignAreaLinks:0,unreadRouteValues:0,unresolvedLinks:0},i=[],a=new Set(t),o=/* @__PURE__ */ new Map,s=t=>{let n=o.get(t);if(n!==void 0)return n;let i=``;try{i=r(d(e,t),`utf8`).replace(/^/,``)}catch(e){if(!(e instanceof Error&&`code`in e&&e.code===`ENOENT`))throw e}return o.set(t,i),i},c=/* @__PURE__ */ new Map,l=(e,t,n,r)=>{let a=c.get(e);a||(a=s(e).split(`
188
+ `),c.set(e,a)),i.push({rule:n,file:e,line:t,text:(a[t-1]??``).trim().slice(0,160),hint:r})},u=t.filter(e=>e.endsWith(`.csproj`)).sort(),f=/* @__PURE__ */ new Map,m=/* @__PURE__ */ new Map;for(let e of u){let t=p.dirname(e),n=f.get(t);if(n){m.set(e,n);continue}let r={dir:t,name:p.basename(e,`.csproj`),own:/* @__PURE__ */ new Map,references:[],index:/* @__PURE__ */ new Map};f.set(t,r),m.set(e,r)}if(f.size===0)return{hits:i,skipped:n};let h=e=>{let t=p.dirname(e);for(;;){let e=f.get(t);if(e)return e;if(t===`.`||t===`/`)return null;t=p.dirname(t)}},g=/* @__PURE__ */ new Map;for(let e of t){if(!e.endsWith(`.cshtml`))continue;let t=h(e);if(!t)continue;let n=t.dir===`.`?e:e.slice(t.dir.length+1),r=Hu.exec(n);if(!r||!Uu.test(w(s(e),`markup`)))continue;let i=`/${r[2]}`,a={file:e,project:t.dir,area:r[1]??null,name:i,folder:p.dirname(i)};g.set(e,a),t.own.set(ud(a.area,i),a)}if(g.size===0)return{hits:i,skipped:n};for(let e of u){let t=m.get(e);if(t&&t.dir===p.dirname(e))for(let n of s(e).matchAll(Ju)){let e=p.normalize(p.join(t.dir,(n[1]??``).replaceAll(`\\`,`/`))),r=m.get(e);r&&r!==t&&!t.references.includes(r.dir)&&t.references.push(r.dir)}}for(let e of f.values()){e.index=new Map(e.own);let t=/* @__PURE__ */ new Set([e.dir]),n=[...e.references];for(let r=n.shift();r!==void 0;r=n.shift()){if(t.has(r))continue;t.add(r);let i=f.get(r);if(i){for(let[t,n]of i.own)e.index.has(t)||e.index.set(t,n);n.push(...i.references)}}}let _=/* @__PURE__ */ new Map;for(let e of f.values())for(let t of e.references)_.set(t,[..._.get(t)??[],e.dir]);for(let e of f.values()){let t=/* @__PURE__ */ new Set([e.dir]),n=[..._.get(e.dir)??[]];for(let r=n.shift();r!==void 0;r=n.shift()){if(t.has(r))continue;t.add(r);let i=f.get(r);if(i){for(let[t,n]of i.index)e.index.has(t)||e.index.set(t,n);n.push(..._.get(r)??[])}}}let v=/* @__PURE__ */ new Set;for(let e of t){let t=Yu.exec(e)?.[1];t&&v.add(t.toLowerCase())}let y=[],b=/* @__PURE__ */ new Map,x=/* @__PURE__ */ new Map;for(let e of t){if(!e.endsWith(`.cs`))continue;let t=Xl(e,s(e));y.push(t),b.set(e,t);for(let e of t.classes)x.set(e,t)}let S=au(y),ee=/* @__PURE__ */ new Map,te=e=>{let t=ee.get(e);if(t!==void 0)return t;let n=w(s(e),`markup`);return ee.set(e,n),n},ne=e=>{let t=/* @__PURE__ */ new Set,n=e=>{let n=te(e),r=Ku.exec(n)?.[1];r&&t.add(r);for(let e of n.matchAll(qu))e[1]&&t.add(e[1])};n(e.file);for(let t=p.dirname(e.file);;t=p.dirname(t)){let r=p.join(t,`_ViewImports.cshtml`);if(a.has(r)&&n(r),t===e.project||t===`.`||t===`/`)break}return t},re=(e,t,n)=>{if(n.has(e))return!0;n.add(e);for(let n of e.methods){if(!n.isPublic||n.isStatic)continue;let e=td.exec(n.name);e&&t.add((e[1]??``).toLowerCase())}let r=e.baseTypes[0];if(r===void 0)return!0;let i=dd(r);if(ad.test(i))return!0;let a=S.get(i);if(!a)return sd.has(i);let o=!0;for(let e of a)o=re(e,t,n)&&o;return o},C=/* @__PURE__ */ new Map,ie=e=>{if(C.has(e.file))return C.get(e.file)??null;let t=ae(e);return C.set(e.file,t),t},ae=e=>{let t=te(e.file),n=/* @__PURE__ */ new Set;for(let e of t.matchAll(nd))n.add((e[1]??``).toLowerCase());let r=Wu.exec(t)?.[1];if(r===void 0)return Gu.test(t)?null:{name:`the page`,handlers:n};let i=r.replace(/<.*$/,``).trim().split(`.`),a=i[i.length-1]??``,o=i.slice(0,-1).join(`.`),s=S.get(a)??[];if(s.length===0)return null;let c=s.filter(t=>x.get(t)?.file===`${e.file}.cs`);if(c.length>0)s=c;else if(s.length>1){let t=s.filter(t=>h(x.get(t)?.file??``)?.dir===e.project);if(t.length>0&&(s=t),s.length>1){let t=ne(e);o&&t.add(o);let n=s.filter(e=>t.has(x.get(e)?.namespace??``));n.length>0&&(s=n)}}let l=new Set(s.map(e=>`${x.get(e)?.namespace??``}|${e.fullName}`));if(l.size>1)return null;let[u]=l;s=(S.get(a)??[]).filter(e=>`${x.get(e)?.namespace??``}|${e.fullName}`===u);let d=new Set(n),f=/* @__PURE__ */ new Set,p=!0;for(let e of s)p=re(e,d,f)&&p;return p?{name:a,handlers:d}:null},oe=/* @__PURE__ */ new Set,se=(e,t,n,r)=>{let i=ie(e);i?i.handlers.has(t.toLowerCase())||l(n,r,`razor-page-handler`,`add On<Verb>${t}Async to ${i.name}, or fix the handler name`):oe.add(e.file)},ce=(e,t,r,i,a,o)=>{let s=pd(t,r,i);if(!s)return n.unresolvedLinks++,null;let c=e.index.get(ud(s.area,s.path));if(c)return c;if(s.area!==null&&!v.has(s.area.toLowerCase()))return n.foreignAreaLinks++,null;let u=s.area===null?s.path:`${s.path} (area ${s.area})`;return l(a,o,`razor-page-link`,`no page ${u} in ${e.name}; fix the link or add the page`),null},le=(e,t,r,i)=>{let a=e.indexOf(`?`);if(a<0)return;let o=ed.exec(e.slice(a))?.[1];o!==void 0&&(e.slice(0,a).trim()===``?/[@${]/.test(o)?n.dynamicHandlers++:o!==``&&(t?se(t,o,r,i):n.unresolvedLinks++):n.unresolvedLinks++)};for(let e of t){if(!e.endsWith(`.cshtml`))continue;let t=h(e);if(!t||t.index.size===0)continue;let r=s(e),i=te(e),a=vd(r),o=g.get(e)??null,c=o?{area:o.area,folder:o.folder}:{area:Yu.exec(e)?.[1]??null,folder:null};for(let r of i.matchAll(Xu)){let i=r.index+1+(r[1]?.length??0),s=/* @__PURE__ */ new Map;for(let e of(r[2]??``).matchAll(Zu))s.set((e[1]??``).toLowerCase(),{value:e[2]??e[3]??``,at:i+e.index});let l=s.get(`asp-page`),u=s.get(`asp-area`),d=s.get(`asp-page-handler`),f=o;if(l&&(!l.value.includes(`@`)&&!u?.value.includes(`@`)?f=ce(t,l.value,u?.value,c,e,a(l.at)):(f=null,n.unresolvedLinks++)),d){let t=d.value.trim();t.includes(`@`)?n.dynamicHandlers++:t!==``&&f?se(f,t,e,a(d.at)):t!==``&&!l&&n.unresolvedLinks++}for(let t of[`href`,`action`,`formaction`]){let n=s.get(t);n&&le(n.value,o,e,a(n.at))}}for(let t of i.matchAll(Qu)){if(/\bsrc\s*=/i.test(t[1]??``))continue;let n=t[2]??``,r=t.index+t[0].length-9-n.length;for(let t of n.matchAll($u))le(t[1]??t[2]??t[3]??``,o,e,a(r+t.index))}}for(let e of y){let t=e.file,r=h(t);if(!r||r.index.size===0||!cd.test(e.blanked))continue;let i=g.get(t.replace(/\.cs$/,``))??null,a=i?{area:i.area,folder:i.folder}:{area:Yu.exec(t)?.[1]??null,folder:null},o=_d(e.blanked),s=[];for(let t of Zl(e,[`Page`,`RedirectToPage`,`RedirectToPagePermanent`])){if(t.method===`Page`&&!fd(t.receiver))continue;let n=o.indexOf(`(`,t.index);n>=0&&s.push({method:t.method,open:n,at:ou(e,t.index)})}for(let i of s){let s=gd(o,e.blanked,i.open);if(!s){n.unresolvedLinks++;continue}let c=hd(s,0,`pageName`);if(c===void 0)continue;let l=iu(c,e,i.at,S);if(!l){n.unresolvedLinks++;continue}if(s.slice(1).some(t=>{let n=(rd.exec(t)?.[2]??t).trim();return n!==`null`&&!/^new\s*\{/.test(n)&&iu(n,e,i.at,S)===null})){n.unreadRouteValues++;continue}let u=md(s.slice(1).join(`,`));if(u===null){n.unreadRouteValues++;continue}let d=hd(s,1,`pageHandler`),f=d===void 0?null:iu(d,e,i.at,S),p=e.lineAt(i.open);for(let e of l){let n=ce(r,e,u,a,t,p);if(n&&f)for(let e of f)e!==``&&se(n,e,t,p)}}}return n.unverifiedPages=oe.size,i.sort((e,t)=>e.file<t.file?-1:e.file>t.file?1:e.line-t.line),{hits:i,skipped:n}}function ud(e,t){return`${(e??``).toLowerCase()}|${t.toLowerCase()}`}function dd(e){let t=e.replace(/<.*$/,``).trim().split(`.`);return t[t.length-1]??``}function fd(e){let t=e.split(`.`).pop()?.replace(/[?!]$/,``).toLowerCase()??``;return od.has(t)}function pd(e,t,n){let r=e.trim();if(r===``||/[@{?#]/.test(r))return null;let i=t===void 0?n.area:t===``?null:t,a;if(r.startsWith(`/`))a=p.normalize(r);else if(n.folder===null)return null;else a=p.normalize(p.join(n.folder,r));return a=a.replace(/\/+$/,``),a===``?null:{area:i,path:a}}function md(e){let t=id.exec(e);if(t)return t[1]??null}function hd(e,t,n){for(let t of e){let e=rd.exec(t);if(e?.[1]===n)return e[2]}let r=e[t];return r===void 0||rd.test(r)?void 0:r}function gd(e,t,n){let r=[],i=0,a=n+1;for(let o=n;o<e.length;o++){let n=e.charAt(o);if(n===`(`||n===`[`||n===`{`)i++;else if(n===`)`||n===`]`||n===`}`){if(i--,i===0)return r.push(t.slice(a,o).trim()),r.length===1&&r[0]===``?[]:r}else n===`,`&&i===1&&(r.push(t.slice(a,o).trim()),a=o+1)}return null}function _d(e){let t=e.split(``),n=e.length,r=(e,n)=>{for(let r=e;r<n;r++)t[r]!==`
189
189
  `&&t[r]!==`\r`&&(t[r]=` `)},i=0;for(;i<n;){let t=e.charAt(i);if(t===`'`){let t=e.charAt(i+1)===`\\`?e.indexOf(`'`,i+3):e.charAt(i+2)===`'`?i+2:-1;t>0&&t-i<=10?(r(i+1,t),i=t+1):i++;continue}if(t!==`"`&&t!==`$`&&t!==`@`){i++;continue}let a=i,o=!1;for(;e.charAt(a)===`$`||e.charAt(a)===`@`;)e.charAt(a)===`@`&&(o=!0),a++;if(e.charAt(a)!==`"`){i=a;continue}let s=0;for(;e.charAt(a+s)===`"`;)s++;if(!o&&s>=3){let t=e.indexOf(`"`.repeat(s),a+s),o=t<0?n:t;r(a+s,o),i=o+s;continue}if(s===2){i=a+2;continue}let c=a+1;for(;c<n;){let t=e.charAt(c);if(t===`\\`&&!o)c+=2;else if(t===`"`){if(o&&e.charAt(c+1)===`"`)c+=2;else break}else if(t===`
190
- `&&!o)break;else c++}r(a+1,Math.min(c,n)),i=c+1}return t.join(``)}function _d(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);return e=>{let n=0,r=t.length-1;for(;n<r;){let i=n+r+1>>1;(t[i]??0)<=e?n=i:r=i-1}return n+1}}var vd=`route-internal-id`,yd=`route by the record's public id ("{publicId:guid}"), never its internal number`,bd=`pass the record's PublicId, never its internal Id`,xd=/^\s*@page\s+"([^"]*)"/gm,Sd=/\basp-route-([A-Za-z][\w-]*)\s*=\s*"@\(?\s*([\w.?!]+?)\.Id\s*\)?"/g,Cd=/\b(?:Route|Http(?:Get|Post|Put|Patch|Delete))\s*\(\s*@?"([^"]*)"/g,wd=/\.Map(?:Get|Post|Put|Patch|Delete|Methods)?\s*\(\s*@?"([^"]*)"/g,Td=/\{([^{}]*)\}/g,Ed=/^(?:[Ii]d|[a-z][A-Za-z0-9]*Id)$/,Dd=[`int`,`long`];function Od(e){let t=[];for(let n of e.matchAll(Td)){let[e=``,...r]=(n[1]??``).replace(/^\*{1,2}/,``).split(`:`),i=e.replace(/=.*$/,``).replace(/\?$/,``);Ed.test(i)&&r.some(e=>Dd.includes(e.replace(/\?$/,``)))&&t.push(i)}return t}function kd(e){let t=[];for(let n of e.matchAll(Td)){let[e=``,...r]=(n[1]??``).replace(/^\*{1,2}/,``).split(`:`);r.some(e=>e.replace(/\?$/,``)===`guid`)&&t.push(e.replace(/=.*$/,``).replace(/\?$/,``))}return t}function Ad(e,t){return e.slice(0,t).split(`
191
- `).length}var jd=/\basp-page\s*=\s*"([^"]*)"/,Md=/\basp-area\s*=\s*"([^"]*)"/,Nd=/(?:^|\/)(?:Areas\/([^/]+)\/)?Pages(\/.+)\.cshtml$/i;function Pd(e){let t=e?Nd.exec(e.replaceAll(`\\`,`/`)):null;return t?{area:t[1]??null,path:t[2]??``}:null}function Fd(e,t,n){let r=e.lastIndexOf(`<`,t),i=e.indexOf(`>`,t),a=e.slice(r===-1?0:r,i===-1?e.length:i),o=Md.exec(a)?.[1],s=jd.exec(a)?.[1];return s===void 0?o===void 0||n!==null&&o.toLowerCase()===(n.area??``).toLowerCase():n===null||o!==void 0&&o.toLowerCase()!==(n.area??``).toLowerCase()?!1:s.startsWith(`/`)?s.toLowerCase()===n.path.toLowerCase():s.split(`/`).pop()?.toLowerCase()===n.path.split(`/`).pop()?.toLowerCase()}function Id(e,t,n){let r=e.split(`
192
- `),i=[],a=(e,t)=>{i.push({rule:vd,line:e,text:(r[e-1]??``).trim().slice(0,160),hint:t})},o=(e,t)=>{for(let n of Od(e))a(t,yd)};if(t===`markup`){let t=w(e,`markup`),r=/* @__PURE__ */ new Set;for(let e of t.matchAll(xd)){o(e[1]??``,Ad(t,e.index+e[0].indexOf(`@page`)));for(let t of kd(e[1]??``))r.add(t.toLowerCase())}let s=Pd(n);for(let e of t.matchAll(Sd))r.has((e[1]??``).toLowerCase())&&Fd(t,e.index,s)||a(Ad(t,e.index),bd);return i}for(let t of[Cd,wd])for(let n of e.matchAll(t)){let t=Ad(e,n.index);(r[t-1]??``).trim().startsWith(`//`)||o(n[1]??``,t)}return i}var Ld=`web-route-literal`,Rd=`pass href("<path>") from react-router so the route table checks it`,zd=/<(?:Link|NavLink|Navigate)(?=[\s/>])/g,Bd=/to\s*=\s*/y,Vd=/(?<![\w$.])([\w$]+)\s*\(/g,Hd=/(?<![\w$.])(?:const|let|var)\s+([\w$]+)\s*(?::[^=;\n]+)?=\s*useNavigate\s*\(/g,Ud=/\bimport\s+(?:type\s+)?(?:[\w$]+\s*,\s*)?\{([^}]*)\}\s*from\s*["'](?:react-router|react-router-dom)["']/g,Wd=/^\s*redirect(?:\s+as\s+([\w$]+))?\s*$/;function Gd(e){let{blanked:t,lineStarts:n}=Vr(e),r=e.split(`
193
- `),i=[],a=e=>{let t=Qd(n,e);i.push({rule:Ld,line:t+1,text:(r[t]??``).trim().slice(0,160),hint:Rd})};for(let e of t.matchAll(zd)){let n=(e.index??0)+e[0].length;for(let e of Kd(t,n))qd(t,e.value)&&a(e.at)}let o=/* @__PURE__ */ new Set;for(let e of t.matchAll(Hd))e[1]&&o.add(e[1]);for(let e of t.matchAll(Ud))for(let t of(e[1]??``).split(`,`)){let e=Wd.exec(t);e&&o.add(e[1]??`redirect`)}if(o.size>0)for(let e of t.matchAll(Vd)){if(!o.has(e[1]??``))continue;let n=Jd(t,Zd(t,(e.index??0)+e[0].length));n&&Xd(n)&&/[,)]/.test(t.charAt(Zd(t,n.end)))&&a(e.index??0)}return i.sort((e,t)=>e.line-t.line),i}function Kd(e,t){let n=[],r=0,i=t;for(;i<e.length;){let t=e.charAt(i);if(t===`"`||t===`'`||t==="`"){let t=Jd(e,i);i=t?t.end:i+1}else{if(t===`{`)r+=1;else if(t===`}`)r=Math.max(0,r-1);else if(t===`>`&&r===0)break;else if(r===0&&t===`t`&&/\s/.test(e.charAt(i-1))){Bd.lastIndex=i;let t=Bd.exec(e);t&&n.push({at:i,value:i+t[0].length})}i+=1}}return n}function qd(e,t){if(e.charAt(t)===`{`){let n=Jd(e,Zd(e,t+1));return n!==null&&Xd(n)&&e.charAt(Zd(e,n.end))===`}`}let n=Jd(e,t);return n!==null&&!n.subst&&Xd(n)}function Jd(e,t){let n=e.charAt(t);if(n!==`"`&&n!==`'`&&n!=="`")return null;let r=-1,i=t+1;for(;i<e.length;){let a=e.charAt(i);if(a===`\\`)i+=2;else{if(a===n)return{head:r===-1?e.slice(t+1,i):e.slice(t+1,r),subst:r!==-1,end:i+1};if(n==="`"&&a===`$`&&e.charAt(i+1)===`{`)r===-1&&(r=i),i=Yd(e,i+1);else{if(a===`
194
- `&&n!=="`")return null;i+=1}}}return null}function Yd(e,t){let n=0;for(let r=t;r<e.length;r+=1){let t=e.charAt(r);if(t===`{`)n+=1;else if(t===`}`&&(--n,n===0))return r+1}return e.length}function Xd(e){return e.head.startsWith(`/`)||e.head.startsWith(`.`)}function Zd(e,t){let n=t;for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n}function Qd(e,t){let n=0,r=e.length-1;for(;n<r;){let i=n+r+1>>1;(e[i]??1/0)<=t?n=i:r=i-1}return n}function $d(e,t){if(!/\.(?:jsx|tsx|cshtml)$/i.test(e))return[];let n=t.endsWith(`
190
+ `&&!o)break;else c++}r(a+1,Math.min(c,n)),i=c+1}return t.join(``)}function vd(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);return e=>{let n=0,r=t.length-1;for(;n<r;){let i=n+r+1>>1;(t[i]??0)<=e?n=i:r=i-1}return n+1}}var yd=`route-internal-id`,bd=`route by the record's public id ("{publicId:guid}"), never its internal number`,xd=`pass the record's PublicId, never its internal Id`,Sd=/^\s*@page\s+"([^"]*)"/gm,Cd=/\basp-route-([A-Za-z][\w-]*)\s*=\s*"@\(?\s*([\w.?!]+?)\.Id\s*\)?"/g,wd=/\b(?:Route|Http(?:Get|Post|Put|Patch|Delete))\s*\(\s*@?"([^"]*)"/g,Td=/\.Map(?:Get|Post|Put|Patch|Delete|Methods)?\s*\(\s*@?"([^"]*)"/g,Ed=/\{([^{}]*)\}/g,Dd=/^(?:[Ii]d|[a-z][A-Za-z0-9]*Id)$/,Od=[`int`,`long`];function kd(e){let t=[];for(let n of e.matchAll(Ed)){let[e=``,...r]=(n[1]??``).replace(/^\*{1,2}/,``).split(`:`),i=e.replace(/=.*$/,``).replace(/\?$/,``);Dd.test(i)&&r.some(e=>Od.includes(e.replace(/\?$/,``)))&&t.push(i)}return t}function Ad(e){let t=[];for(let n of e.matchAll(Ed)){let[e=``,...r]=(n[1]??``).replace(/^\*{1,2}/,``).split(`:`);r.some(e=>e.replace(/\?$/,``)===`guid`)&&t.push(e.replace(/=.*$/,``).replace(/\?$/,``))}return t}function jd(e,t){return e.slice(0,t).split(`
191
+ `).length}var Md=/\basp-page\s*=\s*"([^"]*)"/,Nd=/\basp-area\s*=\s*"([^"]*)"/,Pd=/(?:^|\/)(?:Areas\/([^/]+)\/)?Pages(\/.+)\.cshtml$/i;function Fd(e){let t=e?Pd.exec(e.replaceAll(`\\`,`/`)):null;return t?{area:t[1]??null,path:t[2]??``}:null}function Id(e,t,n){let r=e.lastIndexOf(`<`,t),i=e.indexOf(`>`,t),a=e.slice(r===-1?0:r,i===-1?e.length:i),o=Nd.exec(a)?.[1],s=Md.exec(a)?.[1];return s===void 0?o===void 0||n!==null&&o.toLowerCase()===(n.area??``).toLowerCase():n===null||o!==void 0&&o.toLowerCase()!==(n.area??``).toLowerCase()?!1:s.startsWith(`/`)?s.toLowerCase()===n.path.toLowerCase():s.split(`/`).pop()?.toLowerCase()===n.path.split(`/`).pop()?.toLowerCase()}function Ld(e,t,n){let r=e.split(`
192
+ `),i=[],a=(e,t)=>{i.push({rule:yd,line:e,text:(r[e-1]??``).trim().slice(0,160),hint:t})},o=(e,t)=>{for(let n of kd(e))a(t,bd)};if(t===`markup`){let t=w(e,`markup`),r=/* @__PURE__ */ new Set;for(let e of t.matchAll(Sd)){o(e[1]??``,jd(t,e.index+e[0].indexOf(`@page`)));for(let t of Ad(e[1]??``))r.add(t.toLowerCase())}let s=Fd(n);for(let e of t.matchAll(Cd))r.has((e[1]??``).toLowerCase())&&Id(t,e.index,s)||a(jd(t,e.index),xd);return i}for(let t of[wd,Td])for(let n of e.matchAll(t)){let t=jd(e,n.index);(r[t-1]??``).trim().startsWith(`//`)||o(n[1]??``,t)}return i}var Rd=`web-route-literal`,zd=`pass href("<path>") from react-router so the route table checks it`,Bd=/<(?:Link|NavLink|Navigate)(?=[\s/>])/g,Vd=/to\s*=\s*/y,Hd=/(?<![\w$.])([\w$]+)\s*\(/g,Ud=/(?<![\w$.])(?:const|let|var)\s+([\w$]+)\s*(?::[^=;\n]+)?=\s*useNavigate\s*\(/g,Wd=/\bimport\s+(?:type\s+)?(?:[\w$]+\s*,\s*)?\{([^}]*)\}\s*from\s*["'](?:react-router|react-router-dom)["']/g,Gd=/^\s*redirect(?:\s+as\s+([\w$]+))?\s*$/;function Kd(e){let{blanked:t,lineStarts:n}=Vr(e),r=e.split(`
193
+ `),i=[],a=e=>{let t=$d(n,e);i.push({rule:Rd,line:t+1,text:(r[t]??``).trim().slice(0,160),hint:zd})};for(let e of t.matchAll(Bd)){let n=(e.index??0)+e[0].length;for(let e of qd(t,n))Jd(t,e.value)&&a(e.at)}let o=/* @__PURE__ */ new Set;for(let e of t.matchAll(Ud))e[1]&&o.add(e[1]);for(let e of t.matchAll(Wd))for(let t of(e[1]??``).split(`,`)){let e=Gd.exec(t);e&&o.add(e[1]??`redirect`)}if(o.size>0)for(let e of t.matchAll(Hd)){if(!o.has(e[1]??``))continue;let n=Yd(t,Qd(t,(e.index??0)+e[0].length));n&&Zd(n)&&/[,)]/.test(t.charAt(Qd(t,n.end)))&&a(e.index??0)}return i.sort((e,t)=>e.line-t.line),i}function qd(e,t){let n=[],r=0,i=t;for(;i<e.length;){let t=e.charAt(i);if(t===`"`||t===`'`||t==="`"){let t=Yd(e,i);i=t?t.end:i+1}else{if(t===`{`)r+=1;else if(t===`}`)r=Math.max(0,r-1);else if(t===`>`&&r===0)break;else if(r===0&&t===`t`&&/\s/.test(e.charAt(i-1))){Vd.lastIndex=i;let t=Vd.exec(e);t&&n.push({at:i,value:i+t[0].length})}i+=1}}return n}function Jd(e,t){if(e.charAt(t)===`{`){let n=Yd(e,Qd(e,t+1));return n!==null&&Zd(n)&&e.charAt(Qd(e,n.end))===`}`}let n=Yd(e,t);return n!==null&&!n.subst&&Zd(n)}function Yd(e,t){let n=e.charAt(t);if(n!==`"`&&n!==`'`&&n!=="`")return null;let r=-1,i=t+1;for(;i<e.length;){let a=e.charAt(i);if(a===`\\`)i+=2;else{if(a===n)return{head:r===-1?e.slice(t+1,i):e.slice(t+1,r),subst:r!==-1,end:i+1};if(n==="`"&&a===`$`&&e.charAt(i+1)===`{`)r===-1&&(r=i),i=Xd(e,i+1);else{if(a===`
194
+ `&&n!=="`")return null;i+=1}}}return null}function Xd(e,t){let n=0;for(let r=t;r<e.length;r+=1){let t=e.charAt(r);if(t===`{`)n+=1;else if(t===`}`&&(--n,n===0))return r+1}return e.length}function Zd(e){return e.head.startsWith(`/`)||e.head.startsWith(`.`)}function Qd(e,t){let n=t;for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n}function $d(e,t){let n=0,r=e.length-1;for(;n<r;){let i=n+r+1>>1;(e[i]??1/0)<=t?n=i:r=i-1}return n}function ef(e,t){if(!/\.(?:jsx|tsx|cshtml)$/i.test(e))return[];let n=t.endsWith(`
195
195
  `)?t.split(`
196
196
  `).length-1:t.split(`
197
- `).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 ef=`move this API call to an RTK Query endpoint in services/api (react.md: API data)`,tf=`read data through the RTK Query api module; a screen holds no loading flag of its own`,nf=/\bconst\s+([A-Za-z_$][\w$]*)\s*=\s*createAsyncThunk\.withTypes\b/g,rf=/\bimport\s+(?:type\s+)?(?:[^'"();]+?\s+from\s+)?["']([^"']+)["']/g,af=/^((?:.*\/)?)src\/screens\//,of=/\.(?:test|spec)\.[jt]sx?$|(?:^|\/)__tests__\//,sf=/^redux\/action\/accountAction\.[jt]sx?$/;function cf(e){return of.test(e)}function lf(e,t){return t.some(t=>e.startsWith(t)&&sf.test(e.slice(t.length)))}function uf(e){return RegExp(`(?<![\\w$.])${e.replace(/\$/g,`\\$`)}\\s*(?:<[^\\n()]*>\\s*)?\\(`,`g`)}function df(e,t){let n=[...e.matchAll(nf)].flatMap(e=>e[1]===void 0?[]:[e[1]]),r=[];for(let t of[`createAsyncThunk`,...n])for(let n of e.matchAll(uf(t)))r.push(n.index);return r.sort((e,t)=>e-t).map(e=>({rule:`api-thunk`,...t(e),hint:ef}))}function ff(e,t,n){let r=af.exec(e);if(r===null)return[];let i=`${r[1]??``}src/services`,a=[];for(let r of t.matchAll(rf)){let t=r[1]??``;if(!t.startsWith(`.`))continue;let o=p.join(p.dirname(e),t),s=o===i||o.startsWith(`${i}/`),c=o===`${i}/api`||o.startsWith(`${i}/api/`);s&&!c&&a.push({rule:`screen-service-import`,...n(r.index),hint:tf})}return a}var pf=`rename-wrapper`,mf=`@webority/ui-react`,hf=`["']${mf}["']`,gf=e=>e.replace(/[^\n]/g,` `),_f=`shadowed-library-name`;function U(e,t,n,r=pf){let i=e.slice(0,t).split(`
197
+ `).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 tf=`move this API call to an RTK Query endpoint in services/api (react.md: API data)`,nf=`read data through the RTK Query api module; a screen holds no loading flag of its own`,rf=/\bconst\s+([A-Za-z_$][\w$]*)\s*=\s*createAsyncThunk\.withTypes\b/g,af=/\bimport\s+(?:type\s+)?(?:[^'"();]+?\s+from\s+)?["']([^"']+)["']/g,of=/^((?:.*\/)?)src\/screens\//,sf=/\.(?:test|spec)\.[jt]sx?$|(?:^|\/)__tests__\//,cf=/(?:^|\/)src\/redux\/action\/accountAction\.[jt]sx?$/;function lf(e){return sf.test(e)}function uf(e){return cf.test(e)}function df(e){return RegExp(`(?<![\\w$.])${e.replace(/\$/g,`\\$`)}\\s*(?:<[^\\n()]*>\\s*)?\\(`,`g`)}function ff(e,t){let n=[...e.matchAll(rf)].flatMap(e=>e[1]===void 0?[]:[e[1]]),r=[];for(let t of[`createAsyncThunk`,...n])for(let n of e.matchAll(df(t)))r.push(n.index);return r.sort((e,t)=>e-t).map(e=>({rule:`api-thunk`,...t(e),hint:tf}))}function pf(e,t,n){let r=of.exec(e);if(r===null)return[];let i=`${r[1]??``}src/services`,a=[];for(let r of t.matchAll(af)){let t=r[1]??``;if(!t.startsWith(`.`))continue;let o=p.join(p.dirname(e),t),s=o===i||o.startsWith(`${i}/`),c=o===`${i}/api`||o.startsWith(`${i}/api/`);s&&!c&&a.push({rule:`screen-service-import`,...n(r.index),hint:nf})}return a}var mf=`rename-wrapper`,hf=`@webority/ui-react`,gf=`["']${hf}["']`,_f=e=>e.replace(/[^\n]/g,` `),vf=`shadowed-library-name`;function U(e,t,n,r=mf){let i=e.slice(0,t).split(`
198
198
  `).length;return{rule:r,line:i,text:(e.split(`
199
- `)[i-1]??``).trim(),hint:n}}function vf(e){return e.replace(/\/\*[\s\S]*?\*\//g,gf).replace(/\/\/[^\n]*/g,gf)}function yf(e){let t=/* @__PURE__ */ new Map,n=RegExp(`import\\s+(?:type\\s+)?([^;'"]*?)\\s+from\\s*${hf}`,`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 bf(e){let t=RegExp(`^[ \\t]*export\\s+(?:type\\s+)?(?:\\*(?:\\s+as\\s+\\w+)?|\\{[^}]*\\})\\s*from\\s*${hf}`,`gm`);return[...e.matchAll(t)].map(t=>U(e,t.index,`Import the name from ${mf} where it is used; a file that only re-exports it adds nothing.`))}function xf(e,t){let n=[];if(t.size===0)return n;let r=`Import the name from ${mf} 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(U(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(U(e,i.index,r));return n}function Sf(e,t,n,r){if(!/\.(jsx|tsx)$/.test(e))return[];let i=vf(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??0))?[]:[U(t,a.index??0,`Import ${s} from ${mf} and use it where this component is used instead of a wrapper.`)]}function Cf(e,t){let n=e.split(/[\\/]/).pop()??``;if(!n.startsWith(`_`)||!n.endsWith(`.cshtml`))return[];let r=t.replace(/@\*[\s\S]*?\*@/g,gf).replace(/<!--[\s\S]*?-->/g,gf).replace(/^[ \t]*@(?:model|using)\b[^\n]*/gm,gf),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?[]:[U(t,i,`Render the <${o[1]}> tag directly where the partial is used instead of a partial that only renders it.`)]}function wf(e,t,n,r){let i=[];for(let[a,o]of r){if(a===o||!n.has(o))continue;let r=RegExp(`\\b(?:function|class|const|let|var)\\s+${o}\\b`).exec(e);r&&i.push(U(t,r.index,`Declares ${o} over the library's ${o}; use the library component and its props, or give the product component its own name.`,_f))}return i}function Tf(e,t,n){let r=yf(t);return[...bf(t),...xf(t,r),...Sf(e,t,n,r),...Cf(e,t),.../\.(jsx|tsx)$/.test(e)?wf(vf(t),t,n,r):[]]}var Ef=()=>new Set(Dl),Df=[`*.js`,`*.jsx`,`*.ts`,`*.tsx`],Of=[`settings.js`,`settings.ts`,`settings.jsx`,`settings.tsx`],kf=/(?:\bfrom\s*|\brequire\(\s*|\bimport\s*)["'](?:react-native|@webority\/mobile-ui)(?:\/[^"']*)?["']/;function Af(e,t,n,i,a){let o=/* @__PURE__ */ new Set;for(let s of D(E(e,t))){if(s.kind!==`import`||s.imported.length===0)continue;let c=cl(t,s.specifier,i);if(c===null)continue;let l=`${n}:${c}`,u=a.get(l);u||(u=wc(r(d(e,c),`utf8`),{phone:n}),a.set(l,u));for(let{name:e,local:t}of s.imported)u.has(e)&&o.add(t)}return o}var jf=[`*.js`,`*.jsx`,`*.ts`,`*.tsx`,`*.cshtml`];function Mf(e){let n=[];for(let i of I(e,[`package.json`])){if(!t(d(e,i)))continue;let a;try{a=JSON.parse(r(d(e,i),`utf8`))}catch{continue}if(gs(a,d(e,p.dirname(i)))!==`mobile`)continue;let o=p.dirname(i);n.push(o===`.`?`src/`:`${o}/src/`)}return n}function Nf(e,n=null){let i=n?n.map(t=>os(e,t)):null,a=Mf(e),o=e=>!i||i.some(t=>t===`.`||e===t||e.startsWith(`${t}/`)),s=I(e,Object.keys(Ge).map(e=>`*${e}`)).filter(n=>t(d(e,n))&&!st(n,e)&&o(n)),c=[],l=Ef(),f=Zs(e),p=Js(e),m=null,h=/* @__PURE__ */ new Map;for(let n of s){let i=u(n).toLowerCase(),o=Ge[i];if(o===void 0)continue;let s=r(d(e,n),`utf8`),g=n.startsWith(`packages/`)||n.startsWith(`samples/`),_=f&&g,v=e=>_?[]:[...Pl(s,e),...Tf(n,s,p)],y=[];if(o===`scss`||o===`css`||o===`markup`)y=pr(s,o),o!==`scss`&&o!==`css`||_||y.push(...Tl(s,o,l)),o===`markup`&&y.push(...v(`markup`),...g?[]:bl(s),...g?[]:Id(s,`markup`,n),...$d(n,s));else if(o===`script`){let r=!g&&a.some(e=>n.startsWith(e)),o=zr(s)||r;if(Ke.includes(i)&&!o)continue;let c=[];if(!g){let i=r||kf.test(s);m??=new Set(I(e,Df).filter(n=>t(d(e,n)))),c=Tc(s,{phone:i,keyedImports:s.includes(`.map(`)?Af(e,n,i,m,h):/* @__PURE__ */ new Set})}y=[...Br(s,{phone:o,colourLiterals:r}),...c],r&&a.some(e=>Of.some(t=>n===`${e}assets/theme/${t}`))&&(y=y.filter(e=>e.rule!==`raw-colour`)),(i===`.jsx`||i===`.tsx`)&&(y.push(...v(`script`),...$d(n,s)),!g&&!o&&y.push(...Gd(s)))}else o===`csharp`&&(g||(y=Id(s,`csharp`)));for(let e of y)c.push({id:`${e.rule}:${n}`,line:e.line,text:e.text,hint:e.hint})}for(let t of s){if(Ge[u(t).toLowerCase()]!==`script`||cf(t)||t.startsWith(`packages/`)||t.startsWith(`samples/`))continue;let n=E(e,t),r=e=>{let t=n.lineAt(e);return{line:t,text:(n.lines[t-1]??``).trim()}},i=lf(t,a)?[]:df(n.blanked,r);for(let e of[...i,...ff(t,n.blanked,r)])c.push({id:`${e.rule}:${t}`,line:e.line,text:e.text,hint:e.hint})}let g=I(e,jf).filter(n=>t(d(e,n)));for(let t of al(e,g)){let n=t.file.startsWith(`packages/`)||t.file.startsWith(`samples/`);o(t.file)&&!st(t.file,e)&&!n&&c.push({id:`${t.rule}:${t.file}`,line:t.line,text:t.text,hint:t.hint})}let _=cd(e,I(e,[`*.cshtml`,`*.cs`,`*.csproj`,`*.js`,`*.jsx`,`*.ts`,`*.tsx`]).filter(n=>t(d(e,n))&&!st(n,e)));for(let e of _.hits){let t=e.file.startsWith(`packages/`)||e.file.startsWith(`samples/`);o(e.file)&&!t&&c.push({id:`${e.rule}:${e.file}`,line:e.line,text:e.text,hint:e.hint})}let v=[{count:_.skipped.unverifiedPages,what:`pages whose model or base class is outside the repo`},{count:_.skipped.dynamicHandlers,what:`handler names built at render time`},{count:_.skipped.foreignAreaLinks,what:`links into areas no folder in the repo holds`},{count:_.skipped.unreadRouteValues,what:`C# page calls whose route values are in a variable`},{count:_.skipped.unresolvedLinks,what:`page links whose target is built at render time or is not a page name`}].filter(e=>e.count>0);return v.length>0&&console.log(`note: Razor links not checked: ${v.map(e=>`${e.count} ${e.what}`).join(`; `)}.`),c.sort((e,t)=>e.id<t.id?-1:e.id>t.id?1:e.line-t.line)}function Pf(e){let t={};for(let n of e)t[n.id]=(t[n.id]||0)+1;return t}var Ff=process.argv.slice(2),If=/* @__PURE__ */ new Set([`--baseline-accept`,`--reason`,`--baseline-adopt`]),Lf=new Set(Ff.flatMap((e,t)=>If.has(e)?[t+1]:[])),W=new Set(Ff.filter((e,t)=>e.startsWith(`--`)&&!Lf.has(t))),G=Ff.filter((e,t)=>!e.startsWith(`--`)&&!Lf.has(t)),Rf=W.has(`--sync-hook`),zf=e=>Ff.includes(e)?Ff[Ff.indexOf(e)+1]:void 0,Bf=zf(`--baseline-accept`),Vf=zf(`--reason`),Hf=zf(`--baseline-adopt`)?.split(`,`).map(e=>e.trim()).filter(Boolean),Uf=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 Wf=/* @__PURE__ */ new Set([`--json`,`--offline`,`--build`,`--skip-lint`,`--baseline-init`,`--baseline-shrink`,`--baseline-accept`,`--reason`,`--sync-hook`,`--baseline-adopt`]),Gf=[...W].filter(e=>!Wf.has(e)),Kf=W.has(`--baseline-accept`),qf=(Kf||W.has(`--reason`))&&!(Uf(Bf)&&Uf(Vf)),Jf=Kf&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||Rf||W.has(`--baseline-adopt`)),Yf=W.has(`--baseline-adopt`)&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||W.has(`--baseline-accept`)||Rf),J=W.has(`--build`),Xf=J&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||W.has(`--baseline-accept`)||W.has(`--baseline-adopt`)||Rf),Zf=W.has(`--skip-lint`),Qf=Zf&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||W.has(`--baseline-accept`)||W.has(`--baseline-adopt`)||Rf);(Gf.length||W.has(`--baseline-init`)&&W.has(`--baseline-shrink`)||Rf&&(W.size>1||G.length)||qf||Jf||Yf||Xf||Qf)&&(q(`repo-checks: unknown or conflicting options ${Gf.join(` `)}`.trim()),q(`usage: webority-repo-checks [--json] [--offline] [--build] [--skip-lint] [--baseline-init | --baseline-shrink] [--baseline-accept <folder> --reason <text>] [--baseline-adopt <rule,...>] [app folder ...]`),q(` webority-repo-checks --sync-hook`),process.exit(2));var Y=ms(process.cwd());if(Y||(q(`repo-checks: not inside a git repository.`),process.exit(2)),Rf){let t=d(Y,oc);n(l(t),{recursive:!0}),s(t,Ft),e(t,493),K(`repo-checks: wrote ${t}`),process.exit(0)}var $f=W.has(`--offline`);$f&&!J&&q(`repo-checks: advisory rule skipped (--offline).`);var ep=dc(Y,G.length?G.map(e=>h(process.cwd(),e)):null,{advisories:!$f&&!J,build:J,skipLint:Zf}).sort((e,t)=>e.pkg===t.pkg?0:e.pkg<t.pkg?-1:1),tp=ep.filter(e=>e.warning),np=ep.filter(e=>!e.warning),rp=np.filter(e=>e.id.startsWith(`lint:`)),ip=np.filter(e=>!e.id.startsWith(`lint:`)),ap=J?[]:Nf(Y,G.length?G.map(e=>h(process.cwd(),e)):null),X={findings:ip.map(e=>re(e.pkg,e.id)),counts:Pf(ap)},op=new Map(ip.map(e=>[re(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(d(Y,`.webority/baselines/repo-checks-baseline.json`))&&(q(`repo-checks: ${b} already exists. It only shrinks: fix a new finding, or run --baseline-shrink after fixing old ones.`),process.exit(2)),ce(Y,le(X));let e=Object.keys(X.counts).length;K(`repo-checks: recorded ${ip.length} finding(s) and ${e} counted file(s) (${ap.length} code finding(s)) in ${b}.`),process.exit(0)}var Z=(()=>{try{return ie(Y)}catch(e){throw e instanceof S&&(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)),Z===null&&(q(`repo-checks: no ${b}; run webority-repo-checks --baseline-init first.`),process.exit(2));let e=fe(Z,X);ce(Y,pe(Z,X)),K(`repo-checks: dropped ${e.stale.length} fixed finding(s) and lowered ${e.fallen.length} count(s) in ${b}.`),process.exit(0)}if(Kf){if(G.length&&(q(`repo-checks: --baseline-accept reads the whole repository; run it without folder arguments.`),process.exit(2)),Z===null&&(q(`repo-checks: no ${b}; run webority-repo-checks --baseline-init first.`),process.exit(2)),Bf===void 0||Vf===void 0)throw Error(`webority-repo-checks: --baseline-accept needs a folder and --reason text.`);let e=me(Z,X,Bf,Vf),t=new Set(Z.findings),n=e.findings.filter(e=>!t.has(e)).length,r=Object.entries(e.counts).filter(([e,t])=>(Z.counts[e]??0)<t).length;ce(Y,e),K(`repo-checks: accepted ${n} finding(s) and ${r} count(s) under ${Bf} (${Vf}).`),process.exit(0)}if(W.has(`--baseline-adopt`)){G.length&&(q(`repo-checks: --baseline-adopt reads the whole repository; run it without folder arguments.`),process.exit(2)),Z===null&&(q(`repo-checks: no ${b}; run webority-repo-checks --baseline-init first.`),process.exit(2)),Hf?.length||(q(`repo-checks: --baseline-adopt needs a comma-separated list of rule ids.`),process.exit(2));let e;try{e=ue(Z,X,Hf)}catch(e){throw e instanceof S&&(q(`repo-checks: ${e.message}`),process.exit(2)),e}ce(Y,e);let t=new Set(Z.findings);for(let n of Hf){let r=e.findings.filter(e=>!t.has(e)&&C(e)[1].split(`:`)[0]===n).length,i=Object.keys(e.counts).filter(e=>!(e in Z.counts)&&e.split(`:`)[0]===n).length;K(`repo-checks: adopted ${r} finding(s) and ${i} count(s) for ${n} in ${b}.`)}process.exit(0)}var sp=new Set(G.map(e=>m(Y,h(process.cwd(),e)).split(`\\`).join(`/`)||`.`)),cp=G.length?{pkgs:sp,dirs:[...sp]}:null,lp=de(Z??{version:2,findings:[],counts:{}},cp),Q=fe(J?{...lp,counts:{},findings:lp.findings.filter(e=>!uc.includes(C(e)[1].split(`:`)[0]??``))}:lp,X),up={"raw-measure":ct,"palette-read":dt,"raw-colour":lt,"root-font-size":ut,"raw-motion":ft,"dark-read":pt,"missing-canvas-key":mt,"repeated-canvas-key":ht},dp=e=>up[e.slice(0,e.indexOf(`:`))],fp=e=>{let t=op.get(e);if(t===void 0)throw Error(`webority-repo-checks: finding ${e} is missing.`);return t},pp=[...Q.fresh.map(fp),...rp],mp=Q.known.map(fp),hp=e=>[`${e.current} found, ${e.baseline} recorded.`,dp(e.id)].filter(Boolean).join(` `),gp=e=>uo(e.id.split(`:`)[0]??``),$=Q.over.filter(gp).map(e=>({pkg:`.`,id:e.id,message:hp(e),lines:ap.filter(t=>t.id===e.id).map(({line:e,text:t,hint:n})=>({line:e,text:t,hint:n}))})),_p=Q.over.filter(e=>!gp(e)).map(e=>({pkg:`.`,id:e.id,message:hp(e)})),vp=Q.within.map(e=>({pkg:`.`,id:e.id,message:`${e.current} found, ${e.baseline} recorded.`})),yp=[...Q.stale.map(C),...Q.fallen.map(e=>[`.`,e.id])],bp=[...tp,..._p];if(W.has(`--json`)||(()=>{if(bp.length!==0){q(`repo-checks: ${bp.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 bp)q(` - ${e.pkg} ${e.id}: ${e.message}`)}})(),W.has(`--json`)){let e={root:Y,new:[...pp,...$],known:[...mp,...vp],stale:yp,warnings:bp.map(e=>({pkg:e.pkg,id:e.id,message:e.message}))};K(JSON.stringify(e,null,2)),process.exitCode=pp.length||$.length?1:0}else if(pp.length||$.length){if(pp.length){q(`repo-checks: ${pp.length} new finding(s)`);let e=null;for(let t of pp)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.`),mp.length||vp.length){let e=Q.within.reduce((e,t)=>e+t.current,0);K(`repo-checks: ${mp.length} known finding(s) and ${e} counted code finding(s) in ${vp.length} file(s) recorded in ${b}.`)}if(Q.stale.length&&!J){K(`repo-checks: ${Q.stale.length} baseline entr${Q.stale.length===1?`y is`:`ies are`} fixed; drop them with webority-repo-checks --baseline-shrink:`);for(let e of Q.stale.map(C))K(` ${e[0]} ${e[1]}`)}if(Q.fallen.length&&!J){K(`repo-checks: ${Q.fallen.length} count(s) fell; record them with webority-repo-checks --baseline-shrink:`);for(let e of Q.fallen)K(` ${e.id} ${e.baseline} -> ${e.current}`)}}export{};
199
+ `)[i-1]??``).trim(),hint:n}}function yf(e){return e.replace(/\/\*[\s\S]*?\*\//g,_f).replace(/\/\/[^\n]*/g,_f)}function bf(e){let t=/* @__PURE__ */ new Map,n=RegExp(`import\\s+(?:type\\s+)?([^;'"]*?)\\s+from\\s*${gf}`,`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 xf(e){let t=RegExp(`^[ \\t]*export\\s+(?:type\\s+)?(?:\\*(?:\\s+as\\s+\\w+)?|\\{[^}]*\\})\\s*from\\s*${gf}`,`gm`);return[...e.matchAll(t)].map(t=>U(e,t.index,`Import the name from ${hf} where it is used; a file that only re-exports it adds nothing.`))}function Sf(e,t){let n=[];if(t.size===0)return n;let r=`Import the name from ${hf} 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(U(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(U(e,i.index,r));return n}function Cf(e,t,n,r){if(!/\.(jsx|tsx)$/.test(e))return[];let i=yf(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??0))?[]:[U(t,a.index??0,`Import ${s} from ${hf} and use it where this component is used instead of a wrapper.`)]}function wf(e,t){let n=e.split(/[\\/]/).pop()??``;if(!n.startsWith(`_`)||!n.endsWith(`.cshtml`))return[];let r=t.replace(/@\*[\s\S]*?\*@/g,_f).replace(/<!--[\s\S]*?-->/g,_f).replace(/^[ \t]*@(?:model|using)\b[^\n]*/gm,_f),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?[]:[U(t,i,`Render the <${o[1]}> tag directly where the partial is used instead of a partial that only renders it.`)]}function Tf(e,t,n,r){let i=[];for(let[a,o]of r){if(a===o||!n.has(o))continue;let r=RegExp(`\\b(?:function|class|const|let|var)\\s+${o}\\b`).exec(e);r&&i.push(U(t,r.index,`Declares ${o} over the library's ${o}; use the library component and its props, or give the product component its own name.`,vf))}return i}function Ef(e,t,n){let r=bf(t);return[...xf(t),...Sf(t,r),...Cf(e,t,n,r),...wf(e,t),.../\.(jsx|tsx)$/.test(e)?Tf(yf(t),t,n,r):[]]}var Df=()=>new Set(Ol),Of=[`*.js`,`*.jsx`,`*.ts`,`*.tsx`],kf=[`settings.js`,`settings.ts`,`settings.jsx`,`settings.tsx`],Af=/(?:\bfrom\s*|\brequire\(\s*|\bimport\s*)["'](?:react-native|@webority\/mobile-ui)(?:\/[^"']*)?["']/;function jf(e,t,n,i,a){let o=/* @__PURE__ */ new Set;for(let s of D(E(e,t))){if(s.kind!==`import`||s.imported.length===0)continue;let c=ll(t,s.specifier,i);if(c===null)continue;let l=`${n}:${c}`,u=a.get(l);u||(u=Tc(r(d(e,c),`utf8`),{phone:n}),a.set(l,u));for(let{name:e,local:t}of s.imported)u.has(e)&&o.add(t)}return o}var Mf=[`*.js`,`*.jsx`,`*.ts`,`*.tsx`,`*.cshtml`];function Nf(e){let n=[];for(let i of I(e,[`package.json`])){if(!t(d(e,i)))continue;let a;try{a=JSON.parse(r(d(e,i),`utf8`))}catch{continue}if(_s(a,d(e,p.dirname(i)))!==`mobile`)continue;let o=p.dirname(i);n.push(o===`.`?`src/`:`${o}/src/`)}return n}function Pf(e,n=null){let i=n?n.map(t=>ss(e,t)):null,a=Nf(e),o=e=>!i||i.some(t=>t===`.`||e===t||e.startsWith(`${t}/`)),s=I(e,Object.keys(Ge).map(e=>`*${e}`)).filter(n=>t(d(e,n))&&!st(n,e)&&o(n)),c=[],l=Df(),f=Qs(e),p=Ys(e),m=null,h=/* @__PURE__ */ new Map;for(let n of s){let i=u(n).toLowerCase(),o=Ge[i];if(o===void 0)continue;let s=r(d(e,n),`utf8`),g=n.startsWith(`packages/`)||n.startsWith(`samples/`),_=f&&g,v=e=>_?[]:[...Fl(s,e),...Ef(n,s,p)],y=[];if(o===`scss`||o===`css`||o===`markup`)y=pr(s,o),o!==`scss`&&o!==`css`||_||y.push(...El(s,o,l)),o===`markup`&&y.push(...v(`markup`),...g?[]:xl(s),...g?[]:Ld(s,`markup`,n),...ef(n,s));else if(o===`script`){let r=!g&&a.some(e=>n.startsWith(e)),o=zr(s)||r;if(Ke.includes(i)&&!o)continue;let c=[];if(!g){let i=r||Af.test(s);m??=new Set(I(e,Of).filter(n=>t(d(e,n)))),c=Ec(s,{phone:i,keyedImports:s.includes(`.map(`)?jf(e,n,i,m,h):/* @__PURE__ */ new Set})}y=[...Br(s,{phone:o,colourLiterals:r}),...c],r&&a.some(e=>kf.some(t=>n===`${e}assets/theme/${t}`))&&(y=y.filter(e=>e.rule!==`raw-colour`)),(i===`.jsx`||i===`.tsx`)&&(y.push(...v(`script`),...ef(n,s)),!g&&!o&&y.push(...Kd(s)))}else o===`csharp`&&(g||(y=Ld(s,`csharp`)));for(let e of y)c.push({id:`${e.rule}:${n}`,line:e.line,text:e.text,hint:e.hint})}for(let t of s){if(Ge[u(t).toLowerCase()]!==`script`||lf(t)||t.startsWith(`packages/`)||t.startsWith(`samples/`))continue;let n=E(e,t),r=e=>{let t=n.lineAt(e);return{line:t,text:(n.lines[t-1]??``).trim()}},i=uf(t)?[]:ff(n.blanked,r);for(let e of[...i,...pf(t,n.blanked,r)])c.push({id:`${e.rule}:${t}`,line:e.line,text:e.text,hint:e.hint})}let g=I(e,Mf).filter(n=>t(d(e,n)));for(let t of ol(e,g)){let n=t.file.startsWith(`packages/`)||t.file.startsWith(`samples/`);o(t.file)&&!st(t.file,e)&&!n&&c.push({id:`${t.rule}:${t.file}`,line:t.line,text:t.text,hint:t.hint})}let _=ld(e,I(e,[`*.cshtml`,`*.cs`,`*.csproj`,`*.js`,`*.jsx`,`*.ts`,`*.tsx`]).filter(n=>t(d(e,n))&&!st(n,e)));for(let e of _.hits){let t=e.file.startsWith(`packages/`)||e.file.startsWith(`samples/`);o(e.file)&&!t&&c.push({id:`${e.rule}:${e.file}`,line:e.line,text:e.text,hint:e.hint})}let v=[{count:_.skipped.unverifiedPages,what:`pages whose model or base class is outside the repo`},{count:_.skipped.dynamicHandlers,what:`handler names built at render time`},{count:_.skipped.foreignAreaLinks,what:`links into areas no folder in the repo holds`},{count:_.skipped.unreadRouteValues,what:`C# page calls whose route values are in a variable`},{count:_.skipped.unresolvedLinks,what:`page links whose target is built at render time or is not a page name`}].filter(e=>e.count>0);return v.length>0&&console.log(`note: Razor links not checked: ${v.map(e=>`${e.count} ${e.what}`).join(`; `)}.`),c.sort((e,t)=>e.id<t.id?-1:e.id>t.id?1:e.line-t.line)}function Ff(e){let t={};for(let n of e)t[n.id]=(t[n.id]||0)+1;return t}var If=process.argv.slice(2),Lf=/* @__PURE__ */ new Set([`--baseline-accept`,`--reason`,`--baseline-adopt`]),Rf=new Set(If.flatMap((e,t)=>Lf.has(e)?[t+1]:[])),W=new Set(If.filter((e,t)=>e.startsWith(`--`)&&!Rf.has(t))),G=If.filter((e,t)=>!e.startsWith(`--`)&&!Rf.has(t)),zf=W.has(`--sync-hook`),Bf=e=>If.includes(e)?If[If.indexOf(e)+1]:void 0,Vf=Bf(`--baseline-accept`),Hf=Bf(`--reason`),Uf=Bf(`--baseline-adopt`)?.split(`,`).map(e=>e.trim()).filter(Boolean),Wf=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 Gf=/* @__PURE__ */ new Set([`--json`,`--offline`,`--build`,`--skip-lint`,`--baseline-init`,`--baseline-shrink`,`--baseline-accept`,`--reason`,`--sync-hook`,`--baseline-adopt`]),Kf=[...W].filter(e=>!Gf.has(e)),qf=W.has(`--baseline-accept`),Jf=(qf||W.has(`--reason`))&&!(Wf(Vf)&&Wf(Hf)),Yf=qf&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||zf||W.has(`--baseline-adopt`)),Xf=W.has(`--baseline-adopt`)&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||W.has(`--baseline-accept`)||zf),J=W.has(`--build`),Zf=J&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||W.has(`--baseline-accept`)||W.has(`--baseline-adopt`)||zf),Qf=W.has(`--skip-lint`),$f=Qf&&(W.has(`--baseline-init`)||W.has(`--baseline-shrink`)||W.has(`--baseline-accept`)||W.has(`--baseline-adopt`)||zf);(Kf.length||W.has(`--baseline-init`)&&W.has(`--baseline-shrink`)||zf&&(W.size>1||G.length)||Jf||Yf||Xf||Zf||$f)&&(q(`repo-checks: unknown or conflicting options ${Kf.join(` `)}`.trim()),q(`usage: webority-repo-checks [--json] [--offline] [--build] [--skip-lint] [--baseline-init | --baseline-shrink] [--baseline-accept <folder> --reason <text>] [--baseline-adopt <rule,...>] [app folder ...]`),q(` webority-repo-checks --sync-hook`),process.exit(2));var Y=hs(process.cwd());if(Y||(q(`repo-checks: not inside a git repository.`),process.exit(2)),zf){let t=d(Y,sc);n(l(t),{recursive:!0}),s(t,Ft),e(t,493),K(`repo-checks: wrote ${t}`),process.exit(0)}var ep=W.has(`--offline`);ep&&!J&&q(`repo-checks: advisory rule skipped (--offline).`);var tp=fc(Y,G.length?G.map(e=>h(process.cwd(),e)):null,{advisories:!ep&&!J,build:J,skipLint:Qf}).sort((e,t)=>e.pkg===t.pkg?0:e.pkg<t.pkg?-1:1),np=tp.filter(e=>e.warning),rp=tp.filter(e=>!e.warning),ip=rp.filter(e=>e.id.startsWith(`lint:`)),ap=rp.filter(e=>!e.id.startsWith(`lint:`)),op=J?[]:Pf(Y,G.length?G.map(e=>h(process.cwd(),e)):null),X={findings:ap.map(e=>re(e.pkg,e.id)),counts:Ff(op)},sp=new Map(ap.map(e=>[re(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(d(Y,`.webority/baselines/repo-checks-baseline.json`))&&(q(`repo-checks: ${b} already exists. It only shrinks: fix a new finding, or run --baseline-shrink after fixing old ones.`),process.exit(2)),ce(Y,le(X));let e=Object.keys(X.counts).length;K(`repo-checks: recorded ${ap.length} finding(s) and ${e} counted file(s) (${op.length} code finding(s)) in ${b}.`),process.exit(0)}var Z=(()=>{try{return ie(Y)}catch(e){throw e instanceof S&&(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)),Z===null&&(q(`repo-checks: no ${b}; run webority-repo-checks --baseline-init first.`),process.exit(2));let e=fe(Z,X);ce(Y,pe(Z,X)),K(`repo-checks: dropped ${e.stale.length} fixed finding(s) and lowered ${e.fallen.length} count(s) in ${b}.`),process.exit(0)}if(qf){if(G.length&&(q(`repo-checks: --baseline-accept reads the whole repository; run it without folder arguments.`),process.exit(2)),Z===null&&(q(`repo-checks: no ${b}; run webority-repo-checks --baseline-init first.`),process.exit(2)),Vf===void 0||Hf===void 0)throw Error(`webority-repo-checks: --baseline-accept needs a folder and --reason text.`);let e=me(Z,X,Vf,Hf),t=new Set(Z.findings),n=e.findings.filter(e=>!t.has(e)).length,r=Object.entries(e.counts).filter(([e,t])=>(Z.counts[e]??0)<t).length;ce(Y,e),K(`repo-checks: accepted ${n} finding(s) and ${r} count(s) under ${Vf} (${Hf}).`),process.exit(0)}if(W.has(`--baseline-adopt`)){G.length&&(q(`repo-checks: --baseline-adopt reads the whole repository; run it without folder arguments.`),process.exit(2)),Z===null&&(q(`repo-checks: no ${b}; run webority-repo-checks --baseline-init first.`),process.exit(2)),Uf?.length||(q(`repo-checks: --baseline-adopt needs a comma-separated list of rule ids.`),process.exit(2));let e;try{e=ue(Z,X,Uf)}catch(e){throw e instanceof S&&(q(`repo-checks: ${e.message}`),process.exit(2)),e}ce(Y,e);let t=new Set(Z.findings);for(let n of Uf){let r=e.findings.filter(e=>!t.has(e)&&C(e)[1].split(`:`)[0]===n).length,i=Object.keys(e.counts).filter(e=>!(e in Z.counts)&&e.split(`:`)[0]===n).length;K(`repo-checks: adopted ${r} finding(s) and ${i} count(s) for ${n} in ${b}.`)}process.exit(0)}var cp=new Set(G.map(e=>m(Y,h(process.cwd(),e)).split(`\\`).join(`/`)||`.`)),lp=G.length?{pkgs:cp,dirs:[...cp]}:null,up=de(Z??{version:2,findings:[],counts:{}},lp),Q=fe(J?{...up,counts:{},findings:up.findings.filter(e=>!dc.includes(C(e)[1].split(`:`)[0]??``))}:up,X),dp={"raw-measure":ct,"palette-read":dt,"raw-colour":lt,"root-font-size":ut,"raw-motion":ft,"dark-read":pt,"missing-canvas-key":mt,"repeated-canvas-key":ht},fp=e=>dp[e.slice(0,e.indexOf(`:`))],pp=e=>{let t=sp.get(e);if(t===void 0)throw Error(`webority-repo-checks: finding ${e} is missing.`);return t},mp=[...Q.fresh.map(pp),...ip],hp=Q.known.map(pp),gp=e=>[`${e.current} found, ${e.baseline} recorded.`,fp(e.id)].filter(Boolean).join(` `),_p=e=>fo(e.id.split(`:`)[0]??``),$=Q.over.filter(_p).map(e=>({pkg:`.`,id:e.id,message:gp(e),lines:op.filter(t=>t.id===e.id).map(({line:e,text:t,hint:n})=>({line:e,text:t,hint:n}))})),vp=Q.over.filter(e=>!_p(e)).map(e=>({pkg:`.`,id:e.id,message:gp(e)})),yp=Q.within.map(e=>({pkg:`.`,id:e.id,message:`${e.current} found, ${e.baseline} recorded.`})),bp=[...Q.stale.map(C),...Q.fallen.map(e=>[`.`,e.id])],xp=[...np,...vp];if(W.has(`--json`)||(()=>{if(xp.length!==0){q(`repo-checks: ${xp.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 xp)q(` - ${e.pkg} ${e.id}: ${e.message}`)}})(),W.has(`--json`)){let e={root:Y,new:[...mp,...$],known:[...hp,...yp],stale:bp,warnings:xp.map(e=>({pkg:e.pkg,id:e.id,message:e.message}))};K(JSON.stringify(e,null,2)),process.exitCode=mp.length||$.length?1:0}else if(mp.length||$.length){if(mp.length){q(`repo-checks: ${mp.length} new finding(s)`);let e=null;for(let t of mp)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.`),hp.length||yp.length){let e=Q.within.reduce((e,t)=>e+t.current,0);K(`repo-checks: ${hp.length} known finding(s) and ${e} counted code finding(s) in ${yp.length} file(s) recorded in ${b}.`)}if(Q.stale.length&&!J){K(`repo-checks: ${Q.stale.length} baseline entr${Q.stale.length===1?`y is`:`ies are`} fixed; drop them with webority-repo-checks --baseline-shrink:`);for(let e of Q.stale.map(C))K(` ${e[0]} ${e[1]}`)}if(Q.fallen.length&&!J){K(`repo-checks: ${Q.fallen.length} count(s) fell; record them with webority-repo-checks --baseline-shrink:`);for(let e of Q.fallen)K(` ${e.id} ${e.baseline} -> ${e.current}`)}}export{};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/repo-checks",
3
- "version": "0.155.0",
3
+ "version": "0.156.0",
4
4
  "description": "Repository checks for Webority React web portals, React Native apps and Razor sites: banned and required dependencies, pnpm only, exact pins, the shared Biome preset, and token use in style, markup and component code. Run before a push; existing findings and per-file counts sit in a baseline that only shrinks.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/node": "25.6.0",
26
- "@webority/biome-config": "0.155.0",
27
- "@webority/theme": "0.155.0",
26
+ "@webority/biome-config": "0.156.0",
27
+ "@webority/theme": "0.156.0",
28
28
  "typescript": "^7.0.2",
29
29
  "vite": "^8.3.6"
30
30
  },