@ashstack/lint 0.9.1 → 0.10.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
@@ -1,6 +1,6 @@
1
1
  # @ashstack/lint
2
2
 
3
- Strict shared [oxlint](https://oxc.rs) config: <!-- rule-counts -->117 rules on plain TypeScript, 201 with React, 258 on React Native, 77 of them custom-built<!-- /rule-counts -->. Three entries, each containing the one before it: `core()`, `react()`, `react-native()`.
3
+ Strict shared [oxlint](https://oxc.rs) config: <!-- rule-counts -->116 rules on plain TypeScript, 210 with React, 267 on React Native, 80 of them custom-built<!-- /rule-counts -->. Three entries, each containing the one before it: `core()`, `react()`, `react-native()`.
4
4
 
5
5
  Library-specific rules ship only when you depend on that library, so nothing fires about code you don't have.
6
6
 
@@ -77,7 +77,7 @@ diagnostic that the rest are gone.
77
77
 
78
78
  One module per library: one rule namespace, one toggle. A module turns on when its library is in your `package.json`, searched up to the repo root.
79
79
 
80
- `@ashstack/zod` · `@ashstack/query` · `@ashstack/zustand` · `@ashstack/i18n` · `@ashstack/unistyles` · `@ashstack/legend-list` · `@ashstack/legend-state` · `@ashstack/reanimated` · `@ashstack/turbo-image` · `@ashstack/skia` · `@ashstack/keyboard`
80
+ `@ashstack/zod` · `@ashstack/query` · `@ashstack/zustand` · `@ashstack/i18n` · `@ashstack/stylex` · `@ashstack/unistyles` · `@ashstack/legend-list` · `@ashstack/legend-state` · `@ashstack/reanimated` · `@ashstack/turbo-image` · `@ashstack/skia` · `@ashstack/keyboard`
81
81
 
82
82
  Detection only sets the default. Turn any module on or off yourself, whatever your dependencies say:
83
83
 
@@ -1 +1 @@
1
- import{composeModules as o}from"../lib/module.js";import{coreRegistry as n}from"../lib/registry.js";const s={"array-callback-return":["error",{allowImplicit:!0}],"constructor-super":"error","default-param-last":"error",eqeqeq:["error","always",{null:"ignore"}],"for-direction":"error","getter-return":"error","func-style":["error","expression"],"no-array-constructor":"error","no-async-promise-executor":"error","no-case-declarations":"error","no-class-assign":"error","no-compare-neg-zero":"error","no-cond-assign":"error","no-const-assign":"error","no-constant-condition":"error","no-control-regex":"error","no-debugger":"error","no-dupe-class-members":"error","no-dupe-else-if":"error","no-dupe-keys":"error","no-duplicate-case":"error","no-empty":"error","no-empty-character-class":"error","no-empty-pattern":"error","no-ex-assign":"error","no-extra-boolean-cast":"error","no-fallthrough":"error","no-func-assign":"error","no-global-assign":"error","no-import-assign":"error","no-irregular-whitespace":"error","no-loss-of-precision":"error","no-misleading-character-class":"error","no-negated-condition":"error","no-nested-ternary":"error","no-new-native-nonconstructor":"error","no-nonoctal-decimal-escape":"error","no-obj-calls":"error","no-param-reassign":"error","no-prototype-builtins":"error","no-redeclare":"off","no-regex-spaces":"error","no-self-assign":"error","no-setter-return":"error","no-shadow-restricted-names":"error","no-sparse-arrays":"error","no-this-before-super":"error","no-undef":"off","no-unreachable":"error","no-unsafe-finally":"error","no-unsafe-negation":"error","no-unsafe-optional-chaining":"error","no-unused-labels":"error","no-unused-private-class-members":"error","no-useless-catch":"error","no-useless-constructor":"error","no-useless-escape":"error","no-var":"error","no-with":"error","object-shorthand":["error","methods"],"prefer-rest-params":"error","require-yield":"error","use-isnan":"error","valid-typeof":"error","no-unused-vars":["error",{args:"after-used",argsIgnorePattern:"^_",caughtErrors:"all",caughtErrorsIgnorePattern:"^_",varsIgnorePattern:"^_",destructuredArrayIgnorePattern:"^_",ignoreRestSiblings:!0,fix:{imports:"safe-fix"}}],"no-use-before-define":"off","max-depth":["error",3],"max-params":["error",4],"max-lines-per-function":["error",{max:250,skipBlankLines:!0,skipComments:!0}],"eslint/no-await-in-loop":"error","eslint/no-console":"off","eslint/no-constant-binary-expression":"off","eslint/no-control-regex":"error","eslint/no-else-return":"error","eslint/no-empty":"error","eslint/no-empty-function":"error","eslint/no-new":"off","eslint/no-self-compare":"error","eslint/no-shadow":"error","eslint/no-template-curly-in-string":"error","eslint/no-unassigned-vars":"off","eslint/no-underscore-dangle":"off","eslint/no-unmodified-loop-condition":"off","eslint/no-unused-expressions":"off","eslint/no-useless-concat":"off","eslint/preserve-caught-error":"off","eslint/prefer-arrow-callback":"error","eslint/prefer-const":"error","eslint/prefer-template":"error","typescript/consistent-type-imports":"error","typescript/dot-notation":"error","typescript/no-confusing-void-expression":"error","typescript/no-empty-object-type":["error",{allowInterfaces:"with-single-extends"}],"typescript/no-explicit-any":"error","typescript/no-extra-non-null-assertion":"error","typescript/no-extraneous-class":"error","typescript/no-floating-promises":"off","typescript/no-import-type-side-effects":"error","typescript/no-misused-new":"error","typescript/no-misused-promises":["error",{checksVoidReturn:!1}],"typescript/no-namespace":"error","typescript/no-non-null-asserted-optional-chain":"error","typescript/no-non-null-assertion":"error","typescript/no-unnecessary-boolean-literal-compare":"error","typescript/no-unnecessary-condition":"error","typescript/no-unnecessary-type-assertion":"error","typescript/no-unnecessary-type-constraint":"error","typescript/no-unsafe-declaration-merging":"error","typescript/no-unsafe-function-type":"error","typescript/no-unsafe-type-assertion":"error","typescript/no-wrapper-object-types":"error","typescript/prefer-as-const":"error","typescript/prefer-namespace-keyword":"error","typescript/prefer-nullish-coalescing":"error","typescript/require-await":"error","typescript/switch-exhaustiveness-check":["error",{considerDefaultExhaustiveForUnions:!0}],"import/no-commonjs":"off","import/no-cycle":"error","import/no-duplicates":"error","import/no-named-as-default":"off","import/no-named-as-default-member":"off","import/no-self-import":"off","import/no-unassigned-import":"off","unicorn/consistent-function-scoping":"off","unicorn/no-array-reverse":"off","unicorn/no-array-sort":"off","unicorn/no-empty-file":"off","unicorn/no-new-array":"off","unicorn/no-useless-fallback-in-spread":"off","unicorn/no-useless-spread":"off","unicorn/prefer-add-event-listener":"off","unicorn/prefer-array-flat-map":"error","unicorn/prefer-date-now":"error","unicorn/prefer-logical-operator-over-ternary":"error","unicorn/prefer-node-protocol":"error","unicorn/prefer-optional-catch-binding":"error","unicorn/require-module-specifiers":"off","unicorn/throw-new-error":"error","promise/always-return":"off","promise/no-callback-in-promise":"off","promise/no-multiple-resolved":"off","promise/no-promise-in-callback":"off","oxc/no-async-endpoint-handlers":"off"};export const TEST_FILES=["**/*.test.ts","**/*.test.tsx","**/*.spec.ts","**/*.spec.tsx","**/__tests__/**","**/tests/**"];const core=(e={})=>{const r=o(n,e);return{plugins:["eslint","typescript","import","unicorn","promise","oxc"],jsPlugins:r.jsPlugins,env:{builtin:!0,es2024:!0},categories:{correctness:"error",suspicious:"error",perf:"error",pedantic:"off",style:"off",restriction:"off",nursery:"off"},rules:{...s,...r.rules},overrides:[{files:["**/*.tsx"],rules:{"func-style":"off"}},{files:["**/*.d.ts"],rules:{"typescript/no-explicit-any":"off"}},{files:TEST_FILES,rules:{"@ashstack/core/max-lines":"off","max-lines-per-function":"off","typescript/await-thenable":"off","typescript/no-non-null-assertion":"off","typescript/no-unsafe-type-assertion":"off","typescript/require-await":"off","typescript/unbound-method":"off"}}]}};export{core};export default core;
1
+ import{composeModules as o}from"../lib/module.js";import{coreRegistry as n}from"../lib/registry.js";const s={"array-callback-return":["error",{allowImplicit:!0}],"constructor-super":"error","default-param-last":"error",eqeqeq:["error","always",{null:"ignore"}],"for-direction":"error","getter-return":"error","func-style":["error","expression"],"no-array-constructor":"error","no-async-promise-executor":"error","no-case-declarations":"error","no-class-assign":"error","no-compare-neg-zero":"error","no-cond-assign":"error","no-const-assign":"error","no-constant-condition":"error","no-control-regex":"error","no-debugger":"error","no-dupe-class-members":"error","no-dupe-else-if":"error","no-dupe-keys":"error","no-duplicate-case":"error","no-empty":"error","no-empty-character-class":"error","no-empty-pattern":"error","no-ex-assign":"error","no-extra-boolean-cast":"error","no-fallthrough":"error","no-func-assign":"error","no-global-assign":"error","no-import-assign":"error","no-irregular-whitespace":"error","no-loss-of-precision":"error","no-misleading-character-class":"error","no-negated-condition":"error","no-nested-ternary":"error","no-new-native-nonconstructor":"error","no-nonoctal-decimal-escape":"error","no-obj-calls":"error","no-param-reassign":"error","no-prototype-builtins":"error","no-redeclare":"off","no-regex-spaces":"error","no-self-assign":"error","no-setter-return":"error","no-shadow-restricted-names":"error","no-sparse-arrays":"error","no-this-before-super":"error","no-undef":"off","no-unreachable":"error","no-unsafe-finally":"error","no-unsafe-negation":"error","no-unsafe-optional-chaining":"error","no-unused-labels":"error","no-unused-private-class-members":"error","no-useless-catch":"error","no-useless-constructor":"error","no-useless-escape":"error","no-var":"error","no-with":"error","object-shorthand":["error","methods"],"prefer-rest-params":"error","require-yield":"error","use-isnan":"error","valid-typeof":"error","no-unused-vars":["error",{args:"after-used",argsIgnorePattern:"^_",caughtErrors:"all",caughtErrorsIgnorePattern:"^_",varsIgnorePattern:"^_",destructuredArrayIgnorePattern:"^_",ignoreRestSiblings:!0,fix:{imports:"safe-fix"}}],"no-use-before-define":"off","max-depth":["error",3],"max-params":["error",4],"max-lines-per-function":["error",{max:250,skipBlankLines:!0,skipComments:!0}],"eslint/no-await-in-loop":"error","eslint/no-console":"off","eslint/no-constant-binary-expression":"off","eslint/no-control-regex":"error","eslint/no-else-return":"error","eslint/no-empty":"error","eslint/no-empty-function":"error","eslint/no-new":"off","eslint/no-self-compare":"error","eslint/no-shadow":"error","eslint/no-template-curly-in-string":"error","eslint/no-unassigned-vars":"off","eslint/no-underscore-dangle":"off","eslint/no-unmodified-loop-condition":"off","eslint/no-unused-expressions":"off","eslint/no-useless-concat":"off","eslint/preserve-caught-error":"off","eslint/prefer-arrow-callback":"error","eslint/prefer-const":"error","eslint/prefer-template":"error","typescript/consistent-type-imports":"error","typescript/dot-notation":"error","typescript/no-confusing-void-expression":"off","typescript/no-empty-object-type":["error",{allowInterfaces:"with-single-extends"}],"typescript/no-explicit-any":"error","typescript/no-extra-non-null-assertion":"error","typescript/no-extraneous-class":"error","typescript/no-floating-promises":"off","typescript/no-import-type-side-effects":"error","typescript/no-misused-new":"error","typescript/no-misused-promises":["error",{checksVoidReturn:!1}],"typescript/no-namespace":"error","typescript/no-non-null-asserted-optional-chain":"error","typescript/no-non-null-assertion":"error","typescript/no-unnecessary-boolean-literal-compare":"error","typescript/no-unnecessary-condition":"error","typescript/no-unnecessary-type-assertion":"error","typescript/no-unnecessary-type-constraint":"error","typescript/no-unsafe-declaration-merging":"error","typescript/no-unsafe-function-type":"error","typescript/no-unsafe-type-assertion":"error","typescript/no-wrapper-object-types":"error","typescript/prefer-as-const":"error","typescript/prefer-namespace-keyword":"error","typescript/prefer-nullish-coalescing":"error","typescript/require-await":"error","typescript/switch-exhaustiveness-check":["error",{considerDefaultExhaustiveForUnions:!0}],"import/no-commonjs":"off","import/no-cycle":"error","import/no-duplicates":"error","import/no-named-as-default":"off","import/no-named-as-default-member":"off","import/no-self-import":"off","import/no-unassigned-import":"off","unicorn/consistent-function-scoping":"off","unicorn/no-array-reverse":"off","unicorn/no-array-sort":"off","unicorn/no-empty-file":"off","unicorn/no-new-array":"off","unicorn/no-useless-fallback-in-spread":"off","unicorn/no-useless-spread":"off","unicorn/prefer-add-event-listener":"off","unicorn/prefer-array-flat-map":"error","unicorn/prefer-date-now":"error","unicorn/prefer-logical-operator-over-ternary":"error","unicorn/prefer-node-protocol":"error","unicorn/prefer-optional-catch-binding":"error","unicorn/require-module-specifiers":"off","unicorn/throw-new-error":"error","promise/always-return":"off","promise/no-callback-in-promise":"off","promise/no-multiple-resolved":"off","promise/no-promise-in-callback":"off","oxc/no-async-endpoint-handlers":"off"};export const TEST_FILES=["**/*.test.ts","**/*.test.tsx","**/*.spec.ts","**/*.spec.tsx","**/__tests__/**","**/tests/**"];const core=(e={})=>{const r=o(n,e);return{plugins:["eslint","typescript","import","unicorn","promise","oxc"],jsPlugins:r.jsPlugins,env:{builtin:!0,es2024:!0},categories:{correctness:"error",suspicious:"error",perf:"error",pedantic:"off",style:"off",restriction:"off",nursery:"off"},rules:{...s,...r.rules},overrides:[{files:["**/*.tsx"],rules:{"func-style":"off"}},{files:["**/*.d.ts"],rules:{"typescript/no-explicit-any":"off"}},{files:TEST_FILES,rules:{"@ashstack/core/max-lines":"off","max-lines-per-function":"off","typescript/await-thenable":"off","typescript/no-non-null-assertion":"off","typescript/no-unsafe-type-assertion":"off","typescript/require-await":"off","typescript/unbound-method":"off"}}]}};export{core};export default core;
@@ -1 +1 @@
1
- const e=(t)=>new URL(t,import.meta.url).href;export const coreRegistry=[{meta:{name:"@ashstack/core"},url:e("../core/rules/core/index.js"),rules:{"no-comments":{},"no-naming-convention":{},"no-packed-condition":{},"max-lines":{},"max-complexity":{}}},{meta:{name:"@ashstack/zod"},url:e("../core/rules/zod/index.js"),option:"zod",packages:["zod"],rules:{"prefer-enum":{}}}],reactRegistry=[{meta:{name:"@ashstack/react"},url:e("../react/rules/react/index.js"),rules:{"no-unlabeled-icon-button":{},"no-svg-without-title":{},"hoist-intl":{},"prefer-design-system":{defaultOff:!0},"components-tsx-only":{defaultOff:!0}}},{meta:{name:"@ashstack/query"},url:e("../react/rules/query/index.js"),option:"query",packages:["@tanstack/react-query"],rules:{"no-inline-keys":{},"no-deprecated-filters":{},"require-destructured-hooks":{},"no-fetch-in-query-fn":{},"next-page-param-undefined":{}}},{meta:{name:"@ashstack/zustand"},url:e("../react/rules/zustand/index.js"),option:"zustand",packages:["zustand"],rules:{"require-selector":{}}},{meta:{name:"@ashstack/i18n"},url:e("../react/rules/i18n/index.js"),option:"i18n",packages:["i18next","react-i18next","@lingui/core","react-intl","use-intl","next-intl","expo-localization"],rules:{"no-bare-text":{},"no-bare-attrs":{},"no-bare-toast":{}}},{meta:{name:"@ashstack/tailwind"},url:e("../react/rules/tailwind/index.js"),option:"tailwind",packages:["tailwindcss"],rules:{"prefer-cn":{},"use-logical-classes":{}}},{meta:{name:"@ashstack/tanstack-router"},url:e("../react/rules/tanstack-router/index.js"),option:"tanstackRouter",packages:["@tanstack/react-router"],rules:{"require-selector":{},"no-search-casts":{}}}],reactNativeRegistry=[{meta:{name:"@ashstack/react-native"},url:e("../react-native/rules/react-native/index.js"),restrictedImports:{paths:[{name:"react",importNames:["forwardRef"],message:"Accept `ref` as a regular prop and delete the `forwardRef` wrapper — React 19 passes `ref` like any other prop."},{name:"react",importNames:["useContext"],message:"Call `use(Context)` instead of `useContext(Context)`; React 19 replaces the hook with it."}],patterns:[{group:["expo-linear-gradient","react-native-linear-gradient"],message:"Apply the gradient through the `experimental_backgroundImage` style property instead of a gradient component."}]},rules:{"no-keyboard-will-events":{},"no-scroll-position-state":{},"no-conditional-style-array":{},"no-leaked-render":{},"no-rn-image-network-source":{},"no-redundant-view-nesting":{},"no-rn-namespace-import":{},"no-unlabeled-icon-pressable":{},"hoist-stateless-function":{},"no-manual-memo":{},"no-dynamic-import":{}}},{meta:{name:"@ashstack/unistyles"},url:e("../react-native/rules/unistyles/index.js"),option:"unistyles",packages:["react-native-unistyles"],restrictedImports:{paths:[{name:"react-native",importNames:["StyleSheet"],message:"Import `StyleSheet` from `react-native-unistyles` instead of `react-native`."},{name:"react-native",importNames:["useWindowDimensions","Dimensions"],message:"Read screen size from `rt.screen` inside `StyleSheet.create`, or `UnistylesRuntime.screen` outside it, instead of the `Dimensions` APIs."},{name:"react-native",importNames:["SafeAreaView"],message:'Set `contentInsetAdjustmentBehavior="automatic"` on the scroll view, or apply `rt.insets` from `react-native-unistyles`, instead of `SafeAreaView`.'},{name:"react-native-safe-area-context",importNames:["useSafeAreaInsets","useSafeAreaFrame","SafeAreaView"],message:"Read safe-area values from `rt.insets`, or `UnistylesRuntime.insets` outside a stylesheet, in `react-native-unistyles`."}]},rules:{"animated-theme":{},"content-container":{},"in-sheet":{},insets:{},"no-hardcoded-color":{},"no-hardcoded-spacing":{},"no-margin":{},"no-paramless-dynamic-function":{},"no-style-spread":{},"no-unused-styles":{},"rtl-style-call":{},"theme-screen-component":{},"theme-style-attr":{}}},{meta:{name:"@ashstack/legend-list"},url:e("../react-native/rules/legend-list/index.js"),option:"legendList",packages:["@legendapp/list"],restrictedImports:{paths:[{name:"react-native",importNames:["FlatList","SectionList","VirtualizedList"],message:"Render this list with `LegendList` from `@legendapp/list/react-native`; a `ScrollView` plus `map` is fine for fewer than 20 static items."},{name:"@shopify/flash-list",message:"Import `LegendList` from `@legendapp/list/react-native` — Legend List replaced FlashList in this stack."}],patterns:[{group:["@legendapp/list"],message:"Import from the platform entrypoint `@legendapp/list/react-native`, not the package root."}]},rules:{"required-props":{},"no-index-key-extractor":{},"no-remount-key":{},"no-inline-render-item-props":{},"no-mixed-children":{},"no-flex-in-content-container":{},"typed-items-need-item-type":{},"no-scrollview-map":{},"no-unsupported-props":{}}},{meta:{name:"@ashstack/legend-state"},url:e("../react-native/rules/legend-state/index.js"),option:"legendState",packages:["@legendapp/state"],restrictedImports:{paths:[{name:"@legendapp/state/react",importNames:["use$","useSelector"],message:"Use `useValue` from `@legendapp/state/react`; `use$` and `useSelector` are deprecated."}]},rules:{"no-assignment":{},naming:{},"no-nested-observable":{},"no-react-mirror":{},"no-untracked-get-in-jsx":{},"no-peek-in-selector":{},"no-object-selector":{},"no-observable-in-component":{}}},{meta:{name:"@ashstack/reanimated"},url:e("../react-native/rules/reanimated/index.js"),option:"reanimated",packages:["react-native-reanimated"],restrictedImports:{paths:[{name:"react-native",importNames:["Animated"],message:"Use `react-native-reanimated` instead of React Native's `Animated` API."},{name:"react-native-reanimated",importNames:["runOnJS","runOnUI"],message:"Use `scheduleOnRN` and `scheduleOnUI` from `react-native-worklets`; `runOnJS` and `runOnUI` are deprecated."},{name:"react-native-worklets",importNames:["runOnJS","runOnUI"],message:"Use `scheduleOnRN` and `scheduleOnUI` from `react-native-worklets`; `runOnJS` and `runOnUI` are deprecated."}]},rules:{"animated-reaction-safety":{},"animated-style-needs-animated-component":{},"animated-updater-purity":{},"gpu-properties-only":{},"hoist-layout-animation-builder":{},"interpolate-needs-clamp":{},"no-shared-value-dot-value":{},"no-react-state-from-continuous-worklet":{},"prefer-lazy-shared-value-initializer":{},"schedule-on-rn-scope":{},"shared-value-usage":{}}},{meta:{name:"@ashstack/turbo-image"},url:e("../react-native/rules/turbo-image/index.js"),option:"turboImage",packages:["react-native-turbo-image"],rules:{"require-resize":{},"require-cache-policy":{}}},{meta:{name:"@ashstack/skia"},url:e("../react-native/rules/skia/index.js"),option:"skia",packages:["@shopify/react-native-skia"],restrictedImports:{paths:[{name:"@shopify/react-native-skia",importNames:["usePathValue","usePathInterpolation"],message:"Keep one stable `SkPath` buffer and mutate it inside `useDerivedValue`, with consumers reading the driving shared value."}]},rules:{"canvas-opaque":{}}},{meta:{name:"@ashstack/keyboard"},url:e("../react-native/rules/keyboard/index.js"),option:"keyboard",packages:["react-native-keyboard-controller"],restrictedImports:{paths:[{name:"react-native",importNames:["KeyboardAvoidingView"],message:"Import `KeyboardAvoidingView` from `react-native-keyboard-controller` — same props, tracked per frame. For a scrolling form, its `KeyboardAwareScrollView`."}]},rules:{}}];
1
+ const e=(t)=>new URL(t,import.meta.url).href;export const coreRegistry=[{meta:{name:"@ashstack/core"},url:e("../core/rules/core/index.js"),rules:{"no-comments":{},"no-naming-convention":{},"no-packed-condition":{},"max-lines":{},"max-complexity":{}}},{meta:{name:"@ashstack/zod"},url:e("../core/rules/zod/index.js"),option:"zod",packages:["zod"],rules:{"prefer-enum":{}}}],reactRegistry=[{meta:{name:"@ashstack/react"},url:e("../react/rules/react/index.js"),rules:{"no-unlabeled-icon-button":{},"no-svg-without-title":{},"hoist-intl":{},"prefer-design-system":{defaultOff:!0},"components-tsx-only":{defaultOff:!0}}},{meta:{name:"@ashstack/query"},url:e("../react/rules/query/index.js"),option:"query",packages:["@tanstack/react-query"],rules:{"no-inline-keys":{},"no-deprecated-filters":{},"require-destructured-hooks":{},"no-fetch-in-query-fn":{},"next-page-param-undefined":{}}},{meta:{name:"@ashstack/zustand"},url:e("../react/rules/zustand/index.js"),option:"zustand",packages:["zustand"],rules:{"require-selector":{}}},{meta:{name:"@ashstack/i18n"},url:e("../react/rules/i18n/index.js"),option:"i18n",packages:["i18next","react-i18next","@lingui/core","react-intl","use-intl","next-intl","expo-localization"],rules:{"no-bare-text":{},"no-bare-attrs":{},"no-bare-toast":{}}},{meta:{name:"@ashstack/stylex"},url:e("../react/rules/stylex/index.js"),option:"stylex",packages:["@stylexjs/stylex"],rules:{"inline-props":{},"no-duplicate-styles":{},"require-tokens":{}}},{meta:{name:"@ashstack/tailwind"},url:e("../react/rules/tailwind/index.js"),option:"tailwind",packages:["tailwindcss"],rules:{"prefer-cn":{},"use-logical-classes":{}}},{meta:{name:"@ashstack/tanstack-router"},url:e("../react/rules/tanstack-router/index.js"),option:"tanstackRouter",packages:["@tanstack/react-router"],rules:{"require-selector":{},"no-search-casts":{}}}],reactNativeRegistry=[{meta:{name:"@ashstack/react-native"},url:e("../react-native/rules/react-native/index.js"),restrictedImports:{paths:[{name:"react",importNames:["forwardRef"],message:"Accept `ref` as a regular prop and delete the `forwardRef` wrapper — React 19 passes `ref` like any other prop."},{name:"react",importNames:["useContext"],message:"Call `use(Context)` instead of `useContext(Context)`; React 19 replaces the hook with it."}],patterns:[{group:["expo-linear-gradient","react-native-linear-gradient"],message:"Apply the gradient through the `experimental_backgroundImage` style property instead of a gradient component."}]},rules:{"no-keyboard-will-events":{},"no-scroll-position-state":{},"no-conditional-style-array":{},"no-leaked-render":{},"no-rn-image-network-source":{},"no-redundant-view-nesting":{},"no-rn-namespace-import":{},"no-unlabeled-icon-pressable":{},"hoist-stateless-function":{},"no-manual-memo":{},"no-dynamic-import":{}}},{meta:{name:"@ashstack/unistyles"},url:e("../react-native/rules/unistyles/index.js"),option:"unistyles",packages:["react-native-unistyles"],restrictedImports:{paths:[{name:"react-native",importNames:["StyleSheet"],message:"Import `StyleSheet` from `react-native-unistyles` instead of `react-native`."},{name:"react-native",importNames:["useWindowDimensions","Dimensions"],message:"Read screen size from `rt.screen` inside `StyleSheet.create`, or `UnistylesRuntime.screen` outside it, instead of the `Dimensions` APIs."},{name:"react-native",importNames:["SafeAreaView"],message:'Set `contentInsetAdjustmentBehavior="automatic"` on the scroll view, or apply `rt.insets` from `react-native-unistyles`, instead of `SafeAreaView`.'},{name:"react-native-safe-area-context",importNames:["useSafeAreaInsets","useSafeAreaFrame","SafeAreaView"],message:"Read safe-area values from `rt.insets`, or `UnistylesRuntime.insets` outside a stylesheet, in `react-native-unistyles`."}]},rules:{"animated-theme":{},"content-container":{},"in-sheet":{},insets:{},"no-hardcoded-color":{},"no-hardcoded-spacing":{},"no-margin":{},"no-paramless-dynamic-function":{},"no-style-spread":{},"no-unused-styles":{},"rtl-style-call":{},"theme-screen-component":{},"theme-style-attr":{}}},{meta:{name:"@ashstack/legend-list"},url:e("../react-native/rules/legend-list/index.js"),option:"legendList",packages:["@legendapp/list"],restrictedImports:{paths:[{name:"react-native",importNames:["FlatList","SectionList","VirtualizedList"],message:"Render this list with `LegendList` from `@legendapp/list/react-native`; a `ScrollView` plus `map` is fine for fewer than 20 static items."},{name:"@shopify/flash-list",message:"Import `LegendList` from `@legendapp/list/react-native` — Legend List replaced FlashList in this stack."}],patterns:[{group:["@legendapp/list"],message:"Import from the platform entrypoint `@legendapp/list/react-native`, not the package root."}]},rules:{"required-props":{},"no-index-key-extractor":{},"no-remount-key":{},"no-inline-render-item-props":{},"no-mixed-children":{},"no-flex-in-content-container":{},"typed-items-need-item-type":{},"no-scrollview-map":{},"no-unsupported-props":{}}},{meta:{name:"@ashstack/legend-state"},url:e("../react-native/rules/legend-state/index.js"),option:"legendState",packages:["@legendapp/state"],restrictedImports:{paths:[{name:"@legendapp/state/react",importNames:["use$","useSelector"],message:"Use `useValue` from `@legendapp/state/react`; `use$` and `useSelector` are deprecated."}]},rules:{"no-assignment":{},naming:{},"no-nested-observable":{},"no-react-mirror":{},"no-untracked-get-in-jsx":{},"no-peek-in-selector":{},"no-object-selector":{},"no-observable-in-component":{}}},{meta:{name:"@ashstack/reanimated"},url:e("../react-native/rules/reanimated/index.js"),option:"reanimated",packages:["react-native-reanimated"],restrictedImports:{paths:[{name:"react-native",importNames:["Animated"],message:"Use `react-native-reanimated` instead of React Native's `Animated` API."},{name:"react-native-reanimated",importNames:["runOnJS","runOnUI"],message:"Use `scheduleOnRN` and `scheduleOnUI` from `react-native-worklets`; `runOnJS` and `runOnUI` are deprecated."},{name:"react-native-worklets",importNames:["runOnJS","runOnUI"],message:"Use `scheduleOnRN` and `scheduleOnUI` from `react-native-worklets`; `runOnJS` and `runOnUI` are deprecated."}]},rules:{"animated-reaction-safety":{},"animated-style-needs-animated-component":{},"animated-updater-purity":{},"gpu-properties-only":{},"hoist-layout-animation-builder":{},"interpolate-needs-clamp":{},"no-shared-value-dot-value":{},"no-react-state-from-continuous-worklet":{},"prefer-lazy-shared-value-initializer":{},"schedule-on-rn-scope":{},"shared-value-usage":{}}},{meta:{name:"@ashstack/turbo-image"},url:e("../react-native/rules/turbo-image/index.js"),option:"turboImage",packages:["react-native-turbo-image"],rules:{"require-resize":{},"require-cache-policy":{}}},{meta:{name:"@ashstack/skia"},url:e("../react-native/rules/skia/index.js"),option:"skia",packages:["@shopify/react-native-skia"],restrictedImports:{paths:[{name:"@shopify/react-native-skia",importNames:["usePathValue","usePathInterpolation"],message:"Keep one stable `SkPath` buffer and mutate it inside `useDerivedValue`, with consumers reading the driving shared value."}]},rules:{"canvas-opaque":{}}},{meta:{name:"@ashstack/keyboard"},url:e("../react-native/rules/keyboard/index.js"),option:"keyboard",packages:["react-native-keyboard-controller"],restrictedImports:{paths:[{name:"react-native",importNames:["KeyboardAvoidingView"],message:"Import `KeyboardAvoidingView` from `react-native-keyboard-controller` — same props, tracked per frame. For a scrolling form, its `KeyboardAwareScrollView`."}]},rules:{}}];
@@ -2,7 +2,7 @@ import type { AllowWarnDeny } from "oxlint";
2
2
  /** A severity, or a severity followed by as many of the rule's options as you want to set. */
3
3
  type RuleSetting<Options extends unknown[] = []> = AllowWarnDeny | [AllowWarnDeny, ...Partial<Options>];
4
4
  /** Every rule id `react()` adds on top of the entry below it. */
5
- export type ReactRuleId = "@ashstack/react/no-unlabeled-icon-button" | "@ashstack/react/no-svg-without-title" | "@ashstack/react/hoist-intl" | "@ashstack/react/prefer-design-system" | "@ashstack/react/components-tsx-only" | "@ashstack/query/no-inline-keys" | "@ashstack/query/no-deprecated-filters" | "@ashstack/query/require-destructured-hooks" | "@ashstack/query/no-fetch-in-query-fn" | "@ashstack/query/next-page-param-undefined" | "@ashstack/zustand/require-selector" | "@ashstack/i18n/no-bare-text" | "@ashstack/i18n/no-bare-attrs" | "@ashstack/i18n/no-bare-toast" | "@ashstack/tailwind/prefer-cn" | "@ashstack/tailwind/use-logical-classes" | "@ashstack/tanstack-router/require-selector" | "@ashstack/tanstack-router/no-search-casts" | "@ashstack/effects/no-derived-state" | "@ashstack/effects/no-chain-state-updates" | "@ashstack/effects/no-event-handler" | "@ashstack/effects/no-adjust-state-on-prop-change" | "@ashstack/effects/no-reset-all-state-on-prop-change" | "@ashstack/effects/no-pass-live-state-to-parent" | "@ashstack/effects/no-pass-data-to-parent" | "@ashstack/effects/no-external-store-subscription" | "@ashstack/effects/no-initialize-state";
5
+ export type ReactRuleId = "@ashstack/react/no-unlabeled-icon-button" | "@ashstack/react/no-svg-without-title" | "@ashstack/react/hoist-intl" | "@ashstack/react/prefer-design-system" | "@ashstack/react/components-tsx-only" | "@ashstack/query/no-inline-keys" | "@ashstack/query/no-deprecated-filters" | "@ashstack/query/require-destructured-hooks" | "@ashstack/query/no-fetch-in-query-fn" | "@ashstack/query/next-page-param-undefined" | "@ashstack/zustand/require-selector" | "@ashstack/i18n/no-bare-text" | "@ashstack/i18n/no-bare-attrs" | "@ashstack/i18n/no-bare-toast" | "@ashstack/stylex/inline-props" | "@ashstack/stylex/no-duplicate-styles" | "@ashstack/stylex/require-tokens" | "@ashstack/tailwind/prefer-cn" | "@ashstack/tailwind/use-logical-classes" | "@ashstack/tanstack-router/require-selector" | "@ashstack/tanstack-router/no-search-casts" | "@ashstack/effects/no-derived-state" | "@ashstack/effects/no-chain-state-updates" | "@ashstack/effects/no-event-handler" | "@ashstack/effects/no-adjust-state-on-prop-change" | "@ashstack/effects/no-reset-all-state-on-prop-change" | "@ashstack/effects/no-pass-live-state-to-parent" | "@ashstack/effects/no-pass-data-to-parent" | "@ashstack/effects/no-external-store-subscription" | "@ashstack/effects/no-initialize-state";
6
6
  declare module "oxlint" {
7
7
  interface DummyRuleMap {
8
8
  /**
@@ -133,6 +133,33 @@ declare module "oxlint" {
133
133
  * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacki18nno-bare-toast
134
134
  */
135
135
  "@ashstack/i18n/no-bare-toast"?: RuleSetting;
136
+ /**
137
+ * Spread `stylex.props(...)` directly on JSX elements.
138
+ *
139
+ * **Default: on**, when `@stylexjs/stylex` is a dependency.
140
+ *
141
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackstylexinline-props
142
+ */
143
+ "@ashstack/stylex/inline-props"?: RuleSetting;
144
+ /**
145
+ * Reuse identical static styles within one `stylex.create` call.
146
+ *
147
+ * **Default: on**, when `@stylexjs/stylex` is a dependency.
148
+ *
149
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackstylexno-duplicate-styles
150
+ */
151
+ "@ashstack/stylex/no-duplicate-styles"?: RuleSetting;
152
+ /**
153
+ * Use configured color and radius groups in `stylex.create`; defaults are `colors` and `radii`.
154
+ *
155
+ * **Default: on**, when `@stylexjs/stylex` is a dependency.
156
+ *
157
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackstylexrequire-tokens
158
+ */
159
+ "@ashstack/stylex/require-tokens"?: RuleSetting<[{
160
+ colors?: string | false;
161
+ radii?: string | false;
162
+ }]>;
136
163
  /**
137
164
  * Require a dynamic class value to go through `cn(...)` before it reaches a `class`, `className` or `*ClassName` prop. Reports both where the value reaches the prop and where a variable named after classes is declared.
138
165
  *
@@ -0,0 +1 @@
1
+ import{fileURLToPath as e}from"node:url";export const STYLEX_SPECIFIER=e(new URL("../../vendor/stylex/index.mjs",import.meta.url)),stylexPlugin={name:"@stylexjs",specifier:STYLEX_SPECIFIER},STYLEX_RULES={"@stylexjs/valid-styles":"error","@stylexjs/valid-shorthands":"error","@stylexjs/no-unused":"error","@stylexjs/enforce-extension":"error","@stylexjs/no-conflicting-props":"error","@stylexjs/no-legacy-contextual-styles":"error","@stylexjs/no-nonstandard-styles":"error"};
@@ -114,6 +114,8 @@ export type ReactOptions = CoreOptions & {
114
114
  zustand?: boolean;
115
115
  /** [`@ashstack/i18n/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacki18n) — detected from i18next/lingui/react-intl/use-intl/next-intl/expo-localization */
116
116
  i18n?: boolean;
117
+ /** [`@ashstack/stylex/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackstylex) — detected from `@stylexjs/stylex` */
118
+ stylex?: boolean;
117
119
  /** [`@ashstack/tailwind/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacktailwind) — detected from `tailwindcss` */
118
120
  tailwind?: boolean;
119
121
  /** [`@ashstack/tanstack-router/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacktanstack-router) — detected from `@tanstack/react-router` */
package/dist/modules.js CHANGED
@@ -1 +1 @@
1
- import o from"./core/rules/core/index.js";import r from"./core/rules/zod/index.js";import e from"./react-native/rules/keyboard/index.js";import t from"./react-native/rules/legend-list/index.js";import m from"./react-native/rules/legend-state/index.js";import d from"./react-native/rules/react-native/index.js";import i from"./react-native/rules/reanimated/index.js";import u from"./react-native/rules/skia/index.js";import l from"./react-native/rules/turbo-image/index.js";import p from"./react-native/rules/unistyles/index.js";import M from"./react/rules/i18n/index.js";import a from"./react/rules/query/index.js";import f from"./react/rules/react/index.js";import s from"./react/rules/tailwind/index.js";import n from"./react/rules/tanstack-router/index.js";import c from"./react/rules/zustand/index.js";export const coreModules=[o,r],reactModules=[f,a,c,M,s,n],reactNativeModules=[d,p,t,m,i,l,u,e];
1
+ import o from"./core/rules/core/index.js";import r from"./core/rules/zod/index.js";import e from"./react-native/rules/keyboard/index.js";import t from"./react-native/rules/legend-list/index.js";import m from"./react-native/rules/legend-state/index.js";import d from"./react-native/rules/react-native/index.js";import i from"./react-native/rules/reanimated/index.js";import l from"./react-native/rules/skia/index.js";import u from"./react-native/rules/turbo-image/index.js";import p from"./react-native/rules/unistyles/index.js";import M from"./react/rules/i18n/index.js";import f from"./react/rules/query/index.js";import a from"./react/rules/react/index.js";import s from"./react/rules/stylex/index.js";import n from"./react/rules/tailwind/index.js";import c from"./react/rules/tanstack-router/index.js";import x from"./react/rules/zustand/index.js";export const coreModules=[o,r],reactModules=[a,f,x,M,s,n,c],reactNativeModules=[d,p,t,m,i,u,l,e];
@@ -18,7 +18,7 @@ export declare const COMPONENT_MAX_COMPLEXITY = 10;
18
18
  /**
19
19
  * React (web) entry — everything in core plus react, jsx-a11y, React Compiler
20
20
  * diagnostics, you-might-not-need-an-effect, and the auto-detected library
21
- * modules (query, zustand, i18n).
21
+ * modules (query, zustand, i18n, StyleX).
22
22
  *
23
23
  * @see [every rule `react()` sets](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#react)
24
24
  */
@@ -1 +1 @@
1
- import o from"../core/index.js";import{EFFECT_RULES as t,effectPlugin as a}from"../lib/effect-plugin.js";import{mergeConfigs as s}from"../lib/merge.js";import{composeModules as n}from"../lib/module.js";import{coreRegistry as c,reactRegistry as i}from"../lib/registry.js";const p={"eslint/no-empty":"off","eslint/no-empty-function":"off"},l={"react/error-boundaries":"error","react/globals":"error","react/immutability":"error","react/incompatible-library":"error","react/preserve-manual-memoization":"error","react/purity":"error","react/refs":"error","react/set-state-in-effect":"off","react/set-state-in-render":"error","react/static-components":"error","react/use-memo":"error","react/void-use-memo":"error","react/capitalized-calls":"error","react/exhaustive-effect-dependencies":"error","react/hooks":"error","react/memo-dependencies":"error","react/no-deriving-state-in-effects":"off","react/invariant":"error","react/rule-suppression":"error","react/syntax":"error","react/todo":"error","react/unsupported-syntax":"error"},f=(e)=>{const r=e?"off":"error";return{"react-perf/jsx-no-jsx-as-prop":r,"react-perf/jsx-no-new-array-as-prop":r,"react-perf/jsx-no-new-function-as-prop":r,"react-perf/jsx-no-new-object-as-prop":r,"react/jsx-no-constructed-context-values":r,"react/no-object-type-as-default-prop":r}},u=["**/routes/**","**/src/app/**","**/app/**/_layout.tsx","**/app/**/+*.tsx"];export const COMPONENT_MAX_LINES=250,COMPONENT_MAX_COMPLEXITY=10;const x={...p,"max-lines-per-function":["error",{max:120,skipBlankLines:!0,skipComments:!0}],"react/react-in-jsx-scope":"off","react/style-prop-object":"off","react/only-export-components":"off","react/rules-of-hooks":"error","react/exhaustive-deps":"error","react/button-has-type":"error","react/checked-requires-onchange-or-readonly":"error","react/iframe-missing-sandbox":"error","react/jsx-boolean-value":"error","react/jsx-key":"error","react/jsx-no-comment-textnodes":"error","react/jsx-no-duplicate-props":"error","react/jsx-no-target-blank":"error","react/jsx-no-useless-fragment":"error","react/no-array-index-key":"error","react/no-children-prop":"error","react/no-danger":"error","react/no-danger-with-children":"error","react/no-direct-mutation-state":"error","react/no-is-mounted":"error","react/no-render-return-value":"error","react/no-string-refs":"error","react/no-this-in-sfc":"error","react/no-unsafe":"error","react/no-unescaped-entities":"error","react/no-unstable-nested-components":["error",{allowAsProps:!0}],"react/require-render-return":"error","react/self-closing-comp":"error","react/void-dom-elements-no-children":"error",...l,"jsx-a11y/alt-text":"error","jsx-a11y/anchor-has-content":"error","jsx-a11y/anchor-is-valid":"error","jsx-a11y/click-events-have-key-events":"off","jsx-a11y/control-has-associated-label":"off","jsx-a11y/heading-has-content":"error","jsx-a11y/img-redundant-alt":"error","jsx-a11y/interactive-supports-focus":"error","jsx-a11y/label-has-associated-control":"error","jsx-a11y/no-aria-hidden-on-focusable":"error","jsx-a11y/no-autofocus":["error",{ignoreNonDOM:!0}],"jsx-a11y/no-noninteractive-element-interactions":"off","jsx-a11y/no-noninteractive-tabindex":"error","jsx-a11y/no-redundant-roles":"error","jsx-a11y/no-static-element-interactions":"error","jsx-a11y/prefer-tag-over-role":"off","jsx-a11y/role-has-required-aria-props":"error","jsx-a11y/role-supports-aria-props":"error","unicorn/filename-case":["error",{cases:{kebabCase:!0,pascalCase:!0}}]},react=(e={})=>{const r=n([...c,...i],e);return s(o(e),{plugins:["react","jsx-a11y","react-perf"],jsPlugins:[a,...r.jsPlugins],rules:{...x,...f(e.reactCompiler??!0),...t,...r.rules,"@ashstack/core/max-lines":["error",COMPONENT_MAX_LINES],"@ashstack/core/max-complexity":["error",COMPONENT_MAX_COMPLEXITY]},overrides:[{files:u,rules:{"unicorn/filename-case":"off"}}]})};export{react};export default react;
1
+ import t from"../core/index.js";import{EFFECT_RULES as a,effectPlugin as s}from"../lib/effect-plugin.js";import{mergeConfigs as n}from"../lib/merge.js";import{composeModules as c}from"../lib/module.js";import{coreRegistry as i,reactRegistry as p}from"../lib/registry.js";import{STYLEX_RULES as l,stylexPlugin as u}from"../lib/stylex-plugin.js";const f={"eslint/no-empty":"off","eslint/no-empty-function":"off"},x={"react/error-boundaries":"error","react/globals":"error","react/immutability":"error","react/incompatible-library":"error","react/preserve-manual-memoization":"error","react/purity":"error","react/refs":"error","react/set-state-in-effect":"off","react/set-state-in-render":"error","react/static-components":"error","react/use-memo":"error","react/void-use-memo":"error","react/capitalized-calls":"error","react/exhaustive-effect-dependencies":"error","react/hooks":"error","react/memo-dependencies":"error","react/no-deriving-state-in-effects":"off","react/invariant":"error","react/rule-suppression":"error","react/syntax":"error","react/todo":"error","react/unsupported-syntax":"error"},m=(e)=>{const r=e?"off":"error";return{"react-perf/jsx-no-jsx-as-prop":r,"react-perf/jsx-no-new-array-as-prop":r,"react-perf/jsx-no-new-function-as-prop":r,"react-perf/jsx-no-new-object-as-prop":r,"react/jsx-no-constructed-context-values":r,"react/no-object-type-as-default-prop":r}},d=["**/routes/**","**/src/app/**","**/app/**/_layout.tsx","**/app/**/+*.tsx"];export const COMPONENT_MAX_LINES=250,COMPONENT_MAX_COMPLEXITY=10;const y={...f,"max-lines-per-function":["error",{max:120,skipBlankLines:!0,skipComments:!0}],"react/react-in-jsx-scope":"off","react/style-prop-object":"off","react/only-export-components":"off","react/rules-of-hooks":"error","react/exhaustive-deps":"error","react/button-has-type":"error","react/checked-requires-onchange-or-readonly":"error","react/iframe-missing-sandbox":"error","react/jsx-boolean-value":"error","react/jsx-key":"error","react/jsx-no-comment-textnodes":"error","react/jsx-no-duplicate-props":"error","react/jsx-no-target-blank":"error","react/jsx-no-useless-fragment":"error","react/no-array-index-key":"error","react/no-children-prop":"error","react/no-danger":"error","react/no-danger-with-children":"error","react/no-direct-mutation-state":"error","react/no-is-mounted":"error","react/no-render-return-value":"error","react/no-string-refs":"error","react/no-this-in-sfc":"error","react/no-unsafe":"error","react/no-unescaped-entities":"error","react/no-unstable-nested-components":["error",{allowAsProps:!0}],"react/require-render-return":"error","react/self-closing-comp":"error","react/void-dom-elements-no-children":"error",...x,"jsx-a11y/alt-text":"error","jsx-a11y/anchor-has-content":"error","jsx-a11y/anchor-is-valid":"error","jsx-a11y/click-events-have-key-events":"off","jsx-a11y/control-has-associated-label":"off","jsx-a11y/heading-has-content":"error","jsx-a11y/img-redundant-alt":"error","jsx-a11y/interactive-supports-focus":"error","jsx-a11y/label-has-associated-control":"error","jsx-a11y/no-aria-hidden-on-focusable":"error","jsx-a11y/no-autofocus":["error",{ignoreNonDOM:!0}],"jsx-a11y/no-noninteractive-element-interactions":"off","jsx-a11y/no-noninteractive-tabindex":"error","jsx-a11y/no-redundant-roles":"error","jsx-a11y/no-static-element-interactions":"error","jsx-a11y/prefer-tag-over-role":"off","jsx-a11y/role-has-required-aria-props":"error","jsx-a11y/role-supports-aria-props":"error","unicorn/filename-case":["error",{cases:{kebabCase:!0,pascalCase:!0}}]},react=(e={})=>{const r=c([...i,...p],e),o=r.rules["@ashstack/stylex/inline-props"]==="error";return n(t(e),{plugins:["react","jsx-a11y","react-perf"],jsPlugins:[s,...r.jsPlugins,...o?[u]:[]],rules:{...y,...m(e.reactCompiler??!0),...a,...r.rules,...o?l:{},"@ashstack/core/max-lines":["error",COMPONENT_MAX_LINES],"@ashstack/core/max-complexity":["error",COMPONENT_MAX_COMPLEXITY]},overrides:[{files:d,rules:{"unicorn/filename-case":"off"}}]})};export{react};export default react;
@@ -0,0 +1 @@
1
+ const c=new Set(["@stylexjs/stylex","stylex"]);export const collectImports=(n,s,p)=>{for(const r of n){if(r.type!=="ImportDeclaration"||!c.has(r.source.value))continue;for(const e of r.specifiers){if(e.type==="ImportNamespaceSpecifier")p.namespaces.add(e.local.name);if(e.type==="ImportSpecifier"&&e.imported.type==="Identifier"&&e.imported.name===s)p.named.add(e.local.name)}}},isStylexCall=(n,s,p,r)=>{if(s.type!=="CallExpression")return!1;const{callee:e}=s;let t=null;if(e.type==="Identifier")t=e;if(e.type==="MemberExpression")t=e.object;if(t?.type!=="Identifier")return!1;if(!(e.type==="Identifier"&&r.named.has(t.name)||e.type==="MemberExpression"&&!e.computed&&r.namespaces.has(t.name)&&e.property.type==="Identifier"&&e.property.name===p))return!1;let i=n.sourceCode.getScope(t);while(i){const o=i.set.get(t.name);if(o)return o.defs.some((a)=>a.type==="ImportBinding");i=i.upper}return!1};
@@ -0,0 +1 @@
1
+ import{defineModule as e}from"../../../lib/module.js";import{inlineProps as t}from"./inline-props.js";import{noDuplicateStyles as o}from"./no-duplicate-styles.js";import{requireTokens as s}from"./require-tokens.js";export default e({meta:{name:"@ashstack/stylex"},url:import.meta.url,packages:["@stylexjs/stylex"],option:"stylex",docsWhen:"auto-enabled by `react()` when `@stylexjs/stylex` is a dependency",rules:{"inline-props":t,"no-duplicate-styles":o,"require-tokens":s}});
@@ -0,0 +1 @@
1
+ import{problem as s}from"../../../lib/ast.js";import{collectImports as p,isStylexCall as n}from"./imports.js";const o="Spread `stylex.props(...)` directly on this element.";export const inlineProps=s("Spread `stylex.props(...)` directly on JSX elements.",{createOnce(t){const r={namespaces:new Set,named:new Set};return{before(){r.namespaces.clear();r.named.clear();return t.sourceCode.text.includes("stylex")},Program(e){p(e.body,"props",r)},CallExpression(e){if(!n(t,e,"props",r))return;if(e.parent.type==="JSXSpreadAttribute")return;t.report({node:e,message:o})}}}});
@@ -0,0 +1 @@
1
+ import{problem as p,propertyKeyName as c}from"../../../lib/ast.js";import{collectImports as u,isStylexCall as y}from"./imports.js";const f=new Set(["parent","loc","range","start","end","raw"]),m=(r,e)=>{if(f.has(r))return;return typeof e==="bigint"?{bigint:e.toString()}:e},g=(r)=>{if(r.type!=="ObjectExpression")return null;const e=[];for(const t of r.properties){if(t.type!=="Property")return null;const n=c(t);if(!n)return null;e.push([n,JSON.stringify(t.value,m)])}return JSON.stringify(e.sort(([t],[n])=>t.localeCompare(n)))};export const noDuplicateStyles=p("Reuse identical static styles within one `stylex.create` call.",{createOnce(r){const e={namespaces:new Set,named:new Set};return{before(){e.namespaces.clear();e.named.clear();return r.sourceCode.text.includes("stylex")},Program(t){u(t.body,"create",e)},CallExpression(t){if(!y(r,t,"create",e))return;const[n]=t.arguments;if(n?.type!=="ObjectExpression")return;const a=new Map;for(const s of n.properties){if(s.type!=="Property")continue;const o=c(s);if(!o)continue;const i=g(s.value);if(i===null)continue;const l=a.get(i);if(l)r.report({node:s,message:`\`${o}\` duplicates \`${l}\`. Reuse \`${l}\`.`});else a.set(i,o)}}}}});
@@ -0,0 +1 @@
1
+ import{hasAncestor as u,isMemberCall as f,optionsOf as c,problem as y,propertyKeyName as m}from"../../../lib/ast.js";import{collectImports as h,isStylexCall as b}from"./imports.js";const v=/^(?:color|.*Color|fill|stroke)$/,E=/^border(?:TopLeft|TopRight|BottomLeft|BottomRight|StartStart|StartEnd|EndStart|EndEnd)?Radius$/,S=new Set(["currentColor","inherit","initial","unset","revert","revert-layer","none"]),g=new Set(["inherit","initial","unset","revert","revert-layer"]),C=(e)=>{if(v.test(e))return"color";if(E.test(e))return"radius";return null},p=(e)=>{if(e.type==="Identifier")return e.name;if(e.type!=="MemberExpression")return"";const r=p(e.object);let t="";if(!e.computed&&e.property.type==="Identifier")t=e.property.name;if(e.computed&&e.property.type==="Literal"&&typeof e.property.value==="string")t=e.property.value;return r&&t?`${r}.${t}`:""},O=(e,r)=>{if(e.type==="Identifier")return e.name==="undefined";if(e.type!=="Literal")return!1;if(e.value===null)return!0;if(r==="color")return typeof e.value==="string"&&S.has(e.value);return e.value===0||e.value==="0"||typeof e.value==="string"&&g.has(e.value)},l=(e,r,t,i)=>{if(r.type==="ObjectExpression"){r.properties.forEach((s)=>{if(s.type==="Property")l(e,s.value,t,i)});return}if(r.type==="ArrayExpression"){r.elements.forEach((s)=>{if(s)l(e,s,t,i)});return}if(r.type==="ConditionalExpression"){l(e,r.consequent,t,i);l(e,r.alternate,t,i);return}if(r.type==="CallExpression"&&f(r,"firstThatWorks")){r.arguments.forEach((s)=>l(e,s,t,i));return}if(O(r,t))return;if(r.type==="MemberExpression"&&p(r).startsWith(`${i}.`))return;e.report({node:r,message:`Use \`${i}.*\` for ${t}.`})};export const requireTokens=y("Use configured color and radius groups in `stylex.create`; defaults are `colors` and `radii`.",{meta:{schema:[{type:"object",properties:{colors:{anyOf:[{type:"string",minLength:1},{type:"boolean",enum:[!1]}],default:"colors",description:"Color token group, or false to disable this check."},radii:{anyOf:[{type:"string",minLength:1},{type:"boolean",enum:[!1]}],default:"radii",description:"Radius token group, or false to disable this check."}},additionalProperties:!1}]},createOnce(e){const r={namespaces:new Set,named:new Set};let t="colors",i="radii";const s=(a)=>b(e,a,"create",r);return{before(){r.namespaces.clear();r.named.clear();({colors:t="colors",radii:i="radii"}=c(e,{}));return e.sourceCode.text.includes("stylex")},Program(a){h(a.body,"create",r)},Property(a){const o=C(m(a));if(o===null)return;if(!u(a,s))return;const n=o==="color"?t:i;if(n===!1)return;l(e,a.value,o,n)}}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ashstack/lint",
3
- "version": "0.9.1",
3
+ "version": "0.10.0",
4
4
  "description": "ashStack shared oxlint configuration and custom rules. Entries: core, react, react-native, with per-library rule groups auto-detected from your dependencies. Consume from oxlint.config.mts.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Meta Platforms, Inc. and affiliates.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,10 @@
1
+ # @stylexjs/eslint-plugin
2
+
3
+ `index.mjs` bundles `@stylexjs/eslint-plugin@0.19.1` (MIT). Licenses:
4
+ [StyleX](LICENSE), [dependencies](licenses/).
5
+
6
+ To update, install the desired version in `packages/lint`, then run:
7
+
8
+ ```sh
9
+ bun build packages/lint/node_modules/@stylexjs/eslint-plugin/lib/index.js --bundle --minify --target=node --format=esm --outfile=packages/lint/vendor/stylex/index.mjs
10
+ ```
@@ -0,0 +1,28 @@
1
+ import{createRequire as Ks}from"node:module";var M=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var St=Ks(import.meta.url);var De=M(function(xn){Object.defineProperty(xn,"__esModule",{value:!0});xn.default=Xs;function Xs(e){let t=new Set,r=new Map;function o(u){if(u.source.type!=="Literal"||typeof u.source.value!=="string")return;let f=e.find((c)=>{if(typeof c==="string")return c===u.source?.value;return c.from===u.source?.value});if(!f)return;if(typeof f==="string")u.specifiers.forEach((c)=>{if(c.type==="ImportDefaultSpecifier"||c.type==="ImportNamespaceSpecifier")t.add(c.local.name);if(c.type==="ImportSpecifier"){let h=c.imported.name;if(!r.has(h))r.set(h,new Set);r.get(h)?.add(c.local.name)}});if(typeof f==="object")u.specifiers.forEach((c)=>{if(c.type==="ImportSpecifier"){if(c.imported.name===f.as)t.add(c.local.name)}})}function a(u){return t.has(u)}function s(u,f){return r.get(u)?.has(f)??!1}function i(){t.clear(),r.clear()}return{ImportDeclaration:o,isStylexDefaultImport:a,isStylexNamedImport:s,clear:i}}});var En=M(function(kn){Object.defineProperty(kn,"__esModule",{value:!0});kn.default=void 0;var Qs=Zs(De());function Zs(e){return e&&e.__esModule?e:{default:e}}var Js={meta:{type:"problem",docs:{description:"Ensure that files exporting `defineVars`, `defineConsts`, or `defineMarker` variables end with a configurable extension, defaulting to `.stylex`, with an option to enforce an additional `.const` suffix for `defineConsts`. Mixed exports are not allowed unless explicitly configured for legacy support.",category:"Possible Errors",recommended:!1},schema:[{type:"object",properties:{validImports:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{from:{type:"string"},as:{type:"string"}}}]},default:["stylex","@stylexjs/stylex"]},themeFileExtension:{type:"string",default:".stylex"},legacyAllowMixedExports:{type:"boolean",default:!1},enforceDefineConstsExtension:{type:"boolean",default:!1}},additionalProperties:!1}]},create(e){let t=!1,r=!1,o=!1,a=!1,s=!1,i=!1,u=e.filename,f=e.options[0]||{},{validImports:c=["stylex","@stylexjs/stylex"],legacyAllowMixedExports:h=!1,enforceDefineConstsExtension:y=!1}=f,d=(f.themeFileExtension||".stylex").replace(/\.(js|ts|tsx|jsx|mjs|cjs)$/,""),v=[".js",".ts",".tsx",".jsx",".mjs",".cjs"],g=v.map((b)=>d+b),x=v.map((b)=>d+".const"+b),E=(0,Qs.default)(c),T=new Set,R=new Set,I=new Set,W=(b)=>`Default exports are not allowed for variables from \`stylex.${b}()\`. Use named exports instead.`;function F(b){let L=b.type==="VariableDeclarator"?b.init?.callee:b.type==="CallExpression"?b.callee:null;return L?.type==="MemberExpression"&&L.object?.type==="Identifier"&&E.isStylexDefaultImport(L.object.name)&&L.property?.type==="Identifier"&&(L.property.name==="defineVars"||L.property.name==="unstable_defineVarsNested")||L?.type==="Identifier"&&(E.isStylexNamedImport("defineVars",L.name)||E.isStylexNamedImport("unstable_defineVarsNested",L.name))}function X(b){let L=b.type==="VariableDeclarator"?b.init?.callee:b.type==="CallExpression"?b.callee:null;return L?.type==="MemberExpression"&&L.object?.type==="Identifier"&&E.isStylexDefaultImport(L.object.name)&&L.property?.type==="Identifier"&&(L.property.name==="defineConsts"||L.property.name==="unstable_defineConstsNested")||L?.type==="Identifier"&&(E.isStylexNamedImport("defineConsts",L.name)||E.isStylexNamedImport("unstable_defineConstsNested",L.name))}function q(b){let L=b.type==="VariableDeclarator"?b.init?.callee:b.type==="CallExpression"?b.callee:null;return L?.type==="MemberExpression"&&L.object?.type==="Identifier"&&E.isStylexDefaultImport(L.object.name)&&L.property?.type==="Identifier"&&L.property.name==="defineMarker"||L?.type==="Identifier"&&E.isStylexNamedImport("defineMarker",L.name)}function N(b,L){if(X(L))return e.report({node:b,message:W("defineConsts")}),i=!0,o=!0,t=!0,!0;if(F(L))return e.report({node:b,message:W("defineVars")}),i=!0,a=!0,t=!0,!0;if(q(L))return e.report({node:b,message:W("defineMarker")}),i=!0,s=!0,t=!0,!0;if(L.type==="Identifier"){let H=L.name;if(R.has(H))return e.report({node:b,message:W("defineConsts")}),i=!0,o=!0,t=!0,!0;if(T.has(H))return e.report({node:b,message:W("defineVars")}),i=!0,a=!0,t=!0,!0;if(I.has(H))return e.report({node:b,message:W("defineMarker")}),i=!0,s=!0,t=!0,!0}if(L.type==="VariableDeclaration"){let H=L.declarations||[];for(let ie of H){if(X(ie))return e.report({node:b,message:W("defineConsts")}),i=!0,o=!0,t=!0,!0;if(F(ie))return e.report({node:b,message:W("defineVars")}),i=!0,a=!0,t=!0,!0;if(q(ie))return e.report({node:b,message:W("defineMarker")}),i=!0,s=!0,t=!0,!0}}return!1}function V(b){let L=b.declaration,H=b.type==="ExportDefaultDeclaration";if(!L)return;if(H&&N(b,L))return;(Array.isArray(L.declarations)?L.declarations:[L]).forEach((m)=>{if(X(m)){if(o=!0,m.type==="VariableDeclarator"&&m.id?.type==="Identifier")R.add(m.id.name)}else if(F(m)){if(a=!0,m.type==="VariableDeclarator"&&m.id?.type==="Identifier")T.add(m.id.name)}else if(q(m)){if(s=!0,m.type==="VariableDeclarator"&&m.id?.type==="Identifier")I.add(m.id.name)}else r=!0}),t=o||a||s}function J(b){let L=g.some((D)=>u.endsWith(D)),H=x.some((D)=>u.endsWith(D)),ie=u.match(/\.(js|ts|tsx|jsx|mjs|cjs)$/)?.[0]||"",m=ie?d+ie:d+".js",S=ie?d+".const"+ie:d+".const.js";if(y){if(o&&!H)e.report({node:b,message:`Files that export variables from \`stylex.defineConsts()\` must end with a \`${S}\` extension.`});if(!o&&H)e.report({node:b,message:`Only variables from \`stylex.defineConsts()\` can be exported from a file with a \`${S}\` extension.`});if(o&&(r||a||s))e.report({node:b,message:"Files that export variables from `stylex.defineConsts()` must not export anything else."})}let z=y?"`stylex.defineVars()` or `stylex.defineMarker()`":"`stylex.defineVars()`, `stylex.defineConsts()`, or `stylex.defineMarker()`";if(t&&r&&!h){if(!y||a||s)e.report({node:b,message:`Files that export variables from ${z} must not export anything else.`})}if(t&&!L){if(!y||a||s)e.report({node:b,message:`Files that export variables from ${z} must end with a \`${m}\` extension.`})}if(!t&&L){if(!y||a||s)e.report({node:b,message:`Only variables from ${z} can be exported from a file with a \`${m}\` extension.`})}}return{ImportDeclaration:E.ImportDeclaration,VariableDeclaration(b){(b.declarations||[]).forEach((H)=>{if(X(H)){if(H.type==="VariableDeclarator"&&H.id?.type==="Identifier")R.add(H.id.name)}else if(F(H)){if(H.type==="VariableDeclarator"&&H.id?.type==="Identifier")T.add(H.id.name)}else if(q(H)){if(H.type==="VariableDeclarator"&&H.id?.type==="Identifier")I.add(H.id.name)}})},"ExportNamedDeclaration, ExportDefaultDeclaration"(b){if(b.exportKind==="type")return;if(i=!1,V(b),!i)J(b)},"Program:exit"(){E.clear()}}}},J0=kn.default=Js});var Rn=M(function(Cn){Object.defineProperty(Cn,"__esModule",{value:!0});Cn.default=void 0;var el=tl(De());function tl(e){return e&&e.__esModule?e:{default:e}}var rl={meta:{type:"suggestion",docs:{description:"Disallow legacy media query/pseudo class syntax",recommended:!0,url:"https://github.com/facebook/stylex/tree/main/packages/@stylexjs/eslint-plugin"},schema:[{type:"object",properties:{validImports:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{from:{type:"string"},as:{type:"string"}}}]},default:["stylex","@stylexjs/stylex"]}},additionalProperties:!1}]},create(e){let{validImports:t=["stylex","@stylexjs/stylex"]}=e.options[0]||{},r=(0,el.default)(t);function o(s){return s.type==="MemberExpression"&&s.object.type==="Identifier"&&r.isStylexDefaultImport(s.object.name)&&s.property.type==="Identifier"&&s.property.name==="create"||s.type==="Identifier"&&r.isStylexNamedImport("create",s.name)}function a(s){return s&&s.type==="CallExpression"&&o(s.callee)&&s.arguments.length===1}return{ImportDeclaration:r.ImportDeclaration,CallExpression(s){let i=s.arguments[0];if(a(s)&&i.type==="ObjectExpression")i.properties.forEach((u)=>{if(u.type!=="Property"||u.value.type!=="ObjectExpression")return;u.value.properties.forEach((f)=>{if(f.type!=="Property"||f.value.type!=="ObjectExpression")return;if(f.key.type==="Literal"&&typeof f.key.value==="string"&&f.key.value.startsWith("@"))e.report({node:f,message:"This media query syntax is deprecated. Use the new syntax specified here: https://stylexjs.com/docs/learn/styling-ui/defining-styles/#media-queries-and-other--rules"});if(f.key.type==="Literal"){let c=f.key.value;if(typeof c==="string"&&c.startsWith(":")&&!c.startsWith("::"))e.report({node:f,message:"This pseudo class syntax is deprecated. Use the new syntax specified here: https://stylexjs.com/docs/learn/styling-ui/defining-styles/#pseudo-classes"})}})})},"Program:exit"(){r.clear()}}}},tb=Cn.default=rl});var _n=M(function(An){Object.defineProperty(An,"__esModule",{value:!0});An.default=void 0;var nl=ol(De());function ol(e){return e&&e.__esModule?e:{default:e}}var al={meta:{type:"problem",docs:{description:"Disallow usage of stylex.when.anySibling, stylex.when.descendant, and stylex.when.siblingAfter due to limited browser support",category:"Possible Errors",recommended:!0},schema:[{type:"object",properties:{validImports:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{from:{type:"string"},as:{type:"string"}}}]},default:["stylex","@stylexjs/stylex"]}},additionalProperties:!1}]},create(e){let{validImports:t=["stylex","@stylexjs/stylex"]}=e.options[0]||{},r=(0,nl.default)(t),o=["anySibling","descendant","siblingAfter"];function a(s){if(s.type!=="CallExpression"||s.callee.type!=="MemberExpression")return!1;let i=s.callee;if(i.property.type!=="Identifier")return!1;if(i.object.type==="Identifier")return r.isStylexNamedImport("when",i.object.name)&&o.includes(i.property.name);if(i.object.type==="MemberExpression"&&i.object.object.type==="Identifier"&&i.object.property.type==="Identifier"){let u=i.object;if(u.object.type==="Identifier"&&u.property.type==="Identifier")return r.isStylexDefaultImport(u.object.name)&&u.property.name==="when"&&o.includes(i.property.name)}return!1}return{ImportDeclaration:r.ImportDeclaration,Property(s){if(s.computed&&s.key.type==="CallExpression"){if(a(s.key)){let i=s.key;if(i.type==="CallExpression"&&i.callee.type==="MemberExpression"&&i.callee.property.type==="Identifier"){let u=i.callee.property.name;e.report({node:i,message:`stylex.when.${u} has limited browser support. See https://caniuse.com/css-has for browser compatibility.`})}}}}}}},nb=An.default=al});var sr=M(function(wn){Object.defineProperty(wn,"__esModule",{value:!0});wn.default=il;function xt(e,t,r,o,a){return e<t||r<t?e>r?r+1:e+1:o===a?t:t+1}function il(e,t,r){let o=e,a=t;if(o===a)return 0;if(o.length>a.length){let q=o;o=a,a=q}let s=o.length,i=a.length;while(s>0&&o.charCodeAt(s-1)===a.charCodeAt(i-1))s--,i--;let u=0;while(u<s&&o.charCodeAt(u)===a.charCodeAt(u))u++;if(s-=u,i-=u,s===0||i<3)return i;let f=0,c,h,y,d,v,g=1/0,x,E,T,R,I,W,F=[];for(c=0;c<s;c++)F.push(c+1),F.push(o.charCodeAt(u+c));let X=F.length-1;for(;f<i-3;){if(T=a.charCodeAt(u+(h=f)),R=a.charCodeAt(u+(y=f+1)),I=a.charCodeAt(u+(d=f+2)),W=a.charCodeAt(u+(v=f+3)),g=f+=4,g>r)return 1/0;for(c=0;c<X;c+=2)x=F[c],E=F[c+1],h=xt(x,h,y,T,E),y=xt(h,y,d,R,E),d=xt(y,d,v,I,E),g=xt(d,v,g,W,E),F[c]=g,v=d,d=y,y=h,h=x}for(;f<i;){if(T=a.charCodeAt(u+(h=f)),g=++f,g>r)return 1/0;for(c=0;c<X;c+=2){if(x=F[c],F[c]=g=xt(x,h,g,T,F[c+1]),g>r)return 1/0;h=x}}return g}});var Ne=M(function(Pn){Object.defineProperty(Pn,"__esModule",{value:!0});Pn.default=ll;function ll(e){let t=(r,o,a,s)=>{if(r.type==="TSSatisfiesExpression"||r.type==="TSAsExpression")return t(r.expression,o,a,s);if(r.type==="Identifier"&&o!=null){let i=o.get(r.name);if(i==="ARG")return;if(i!=null)return t(i,o,a,s)}if(r.type==="MemberExpression"&&o!=null){let i=r.object;while(i.type==="MemberExpression")i=i.object;if(i.type==="Identifier"){if(o.get(i.name)==="ARG")return}}return e(r,o,a,s)};return t}});var kt=M(function(Bn){Object.defineProperty(Bn,"__esModule",{value:!0});Bn.default=fl;var dl=Ln(sr()),cl=Ln(Ne());function Ln(e){return e&&e.__esModule?e:{default:e}}var On=4;function fl(e){function t(r,o){let a={message:`${e??"null"}`};if(r.type==="Literal"){if(r.value===e)return;let s=typeof r.value==="string"&&typeof e==="string"?(0,dl.default)(e,r.value,On):1/0,i=s<On?{desc:`Did you mean "${e??"null"}"? Replace "${String(r.value)}" with "${e??"null"}"`,fix:(u)=>{let f=r.raw;if(f!=null){let c=f.substr(0,1);return u.replaceText(r,`${c}${e??"null"}${c}`)}return null}}:void 0;return{...a,distance:s,suggest:i}}return a}return(0,cl.default)(t)}});var Bt=M(function(Nn){Object.defineProperty(Nn,"__esModule",{value:!0});Nn.default=gl;var Dn=ml(kt());function ml(e){return e&&e.__esModule?e:{default:e}}function gl(...e){return(t,r,o,a)=>{let s=[];for(let u of e){let c=(typeof u==="string"?(0,Dn.default)(u):typeof u==="number"?(0,Dn.default)(u):u)(t,r,o,a);if(c===void 0)return;s.push(c)}let i=s.filter((u)=>u.suggest!=null||u.fix!=null);return i.sort((u,f)=>(u.distance||1/0)-(f.distance||1/0)),{message:s.map((u)=>u.message).join(`
2
+ `),fix:i[0]!=null?i[0].fix:void 0,suggest:i[0]!=null?i[0].suggest:void 0}}}});var lr=M(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0});Mn.default=yl;function yl(e,t){return function r(o,a){if(o.type==="CallExpression"&&o.callee.type==="MemberExpression"&&o.callee.object.type==="Identifier"&&o.callee.property.type==="Identifier"&&o.callee.property.name==="keyframes"&&(o.callee.object.name==="stylex"||e.has(o.callee.object.name)))return;if(o.type==="CallExpression"&&o.callee.type==="Identifier"&&(o.callee.name==="keyframes"||t.has(o.callee.name)))return;if(o.type==="Identifier"&&a&&a.has(o.name)){let s=a.get(o.name);if(s==="ARG")return;if(s!=null)return r(s,a);else return{message:"All expressions in a template literal must be a `keyframes(...)` function call"}}if(o.type==="TemplateLiteral"){if(!o.expressions.every((s)=>r(s,a)===void 0))return{message:"All expressions in a template literal must be a `keyframes(...)` function call"};if(!o.quasis.every((s,i,{length:u})=>i===0||i===u-1?s.value.raw==="":s.value.raw===", "))return{message:'animation names must be separated by a comma and a space (", ")'};return}return{message:"a `keyframes(...)` function call, a reference to it or a many such valid"}}}});var ur=M(function($n){Object.defineProperty($n,"__esModule",{value:!0});$n.default=Sl;function Sl(e,t){return function r(o,a){if(o.type==="CallExpression"&&o.callee.type==="MemberExpression"&&o.callee.object.type==="Identifier"&&o.callee.property.type==="Identifier"&&o.callee.property.name==="positionTry"&&(o.callee.object.name==="stylex"||e.has(o.callee.object.name)))return;if(o.type==="CallExpression"&&o.callee.type==="Identifier"&&(o.callee.name==="positionTry"||t.has(o.callee.name)))return;if(o.type==="Identifier"&&a&&a.has(o.name)){let s=a.get(o.name);if(s==="ARG")return;if(s!=null)return r(s,a);else return{message:"All expressions in a template literal must be a `positionTry(...)` function call"}}if(o.type==="TemplateLiteral"){if(!o.expressions.every((s)=>r(s,a)===void 0))return{message:"All expressions in a template literal must be a `positionTry(...)` function call"};if(!o.quasis.every((s,i,{length:u})=>i===0||i===u-1?s.value.raw==="":s.value.raw===", "))return{message:'position try fallbacks must be separated by a comma and a space (", ")'};return}return{message:"a `positionTry(...)` function call, a reference to it, or a list of references"}}}});var cr=M(function(jn){Object.defineProperty(jn,"__esModule",{value:!0});jn.default=kl;function dr(e){if(e.type==="Identifier"&&typeof e.name==="string")return e.name;if(e.type==="MemberExpression"&&e.object!=null&&typeof e.object==="object")return dr(e.object);return null}function kl(e,t){if(e!=null){if(e.type==="MemberExpression"){let r=dr(e);return r!=null&&t.has(r)}if(e.type==="Identifier")return t.has(e.name);if(e.type==="TemplateLiteral"&&e.expressions.length>0)return e.expressions.reduce((r,o)=>{if(o.type==="MemberExpression"){let a=dr(o);return a!=null&&t.has(a)?r:r+1}return r+1},0)===0}return!1}});var Dt=M(function(Hn){Object.defineProperty(Hn,"__esModule",{value:!0});Hn.default=void 0;var El=Cl(Ne());function Cl(e){return e&&e.__esModule?e:{default:e}}function Tl(e,t){if(e.type==="Literal"){let r=e.value;if(r!=null&&typeof r==="string"){if(typeof r==="string"&&r.startsWith("var(")&&r.endsWith(")")&&r.substring(4,r.length-1).match(/--\S/)!==null)return}}return{message:"a CSS Variable"}}var fb=Hn.default=(0,El.default)(Tl)});var pr=M(function(Fn){Object.defineProperty(Fn,"__esModule",{value:!0});Fn.default=fr;function fr(e,t){if(e.type==="TSSatisfiesExpression"||e.type==="TSAsExpression")return fr(e.expression,t);if(e.type==="Identifier"&&t!=null){let r=t.get(e.name);if(r==="ARG")return"ARG";if(r!=null)return fr(r,t)}if(e.type==="Literal")return e;return null}});var mr=M(function(qn){Object.defineProperty(qn,"__esModule",{value:!0});qn.default=Al;function Al(e,t){let r=e.name,o=t?.get(r);while(o!=null){if(o==="ARG")return;if(o.type==="TSAsExpression")o=o.expression;if(o.type==="TSSatisfiesExpression")o=o.expression;if(o.type==="Literal"){let a=o.value;if(typeof a==="string")return a;else return}if(o.type==="Identifier")o=t?.get(o.name);else return}}});var Vn=M(function(Un){Object.defineProperty(Un,"__esModule",{value:!0});Un.default=void 0;var _l=new Set(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgrey","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgrey","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","rebeccapurple"]),hb=Un.default=_l});var Kn=M(function(Gn){Object.defineProperty(Gn,"__esModule",{value:!0});Gn.default=Ol;var wl=Pl(Ne());function Pl(e){return e&&e.__esModule?e:{default:e}}function Ol(e,t,r){function o(a,s){if(a.type==="Literal"&&typeof a.value==="number"&&a.value>=e&&a.value<=t)return;return{message:r}}return(0,wl.default)(o)}});var Yn=M(function(Xn){Object.defineProperty(Xn,"__esModule",{value:!0});Xn.default=Nl;var Bl=Dl(Ne());function Dl(e){return e&&e.__esModule?e:{default:e}}function Nl(e,t){function r(o,a){if(o.type==="Literal"&&typeof o.value==="string"&&e.test(o.value))return;return{message:t}}return(0,Bl.default)(r)}});var gr=M(function(Qn){Object.defineProperty(Qn,"__esModule",{value:!0});Qn.default=void 0;var $l=jl(Ne());function jl(e){return e&&e.__esModule?e:{default:e}}function Hl(e,t){if(e.type==="Literal"&&typeof e.value==="string")return;if(e.type==="TemplateLiteral")return;return{message:"a string literal"}}var Wl=(0,$l.default)(Hl),xb=Qn.default=Wl});var to=M(function(Jn){Object.defineProperty(Jn,"__esModule",{value:!0});Jn.default=void 0;var Fl=ql(Ne());function ql(e){return e&&e.__esModule?e:{default:e}}var Ul=(0,Fl.default)((e,t)=>e.type==="Literal"&&typeof e.value==="string"&&/^#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e.value)?void 0:{message:"a valid hex color (#FFAADD or #FFAADDFF)"}),vb=Jn.default=Ul});var hr=M(function(no){Object.defineProperty(no,"__esModule",{value:!0});no.default=void 0;no.isMathCall=ro;no.isNumber=void 0;var zl=Vl(Ne());function Vl(e){return e&&e.__esModule?e:{default:e}}var Gl=new Set(["+","-","*","/"]),Kl=new Set(["abs","ceil","floor","round"]),Nt=no.isNumber=(0,zl.default)((e,t,r,o)=>{if(e.type==="Literal"&&typeof e.value==="number")return;if(e.type==="Identifier"&&o){let i=o.getScope().set.get(e.name)?.defs?.[0];return i?.node?.type==="VariableDeclarator"&&i.parent?.kind==="const"||t?.get(e.name)?.type==="number"?void 0:{message:"a number literal or math expression"}}if(e.type==="UnaryExpression"&&e.operator==="-")return Nt(e.argument,t,r,o);if(e.type==="BinaryExpression"&&Gl.has(e.operator)){let a=Nt(e.left,t,r,o),s=Nt(e.right,t,r,o);return a===void 0&&s===void 0?void 0:{message:"a number literal or math expression"}}if(e.type==="MemberExpression"&&e.object.type==="Identifier")return;if(e.type==="CallExpression")return;if(ro(e))return;return{message:"a number literal or math expression"}});function ro(e){return e.type==="CallExpression"&&e.callee.type==="MemberExpression"&&e.callee.object.type==="Identifier"&&e.callee.object.name==="Math"&&e.callee.property.type==="Identifier"&&Kl.has(e.callee.property.name)&&e.arguments.length===1}var Cb=no.default=Nt});var lo=M(function(io){Object.defineProperty(io,"__esModule",{value:!0});io.default=void 0;var Yl=Ql(Ne());function Ql(e){return e&&e.__esModule?e:{default:e}}function Zl(e,t){if(e.type==="Literal"){let r=e.value;if(typeof r==="string"&&r.match(new RegExp("^([-,+]?\\d+(\\.\\d+)?%)$")))return}return{message:"A string literal representing a percentage (e.g. 100%)"}}var Rb=io.default=(0,Yl.default)(Zl)});var po=M(function(co){Object.defineProperty(co,"__esModule",{value:!0});co.default=void 0;var uo=new Set(["px","mm","in","pc","pt"]),Jl=(e,t)=>{if(e.type==="Literal"){let r=e.value;if(typeof r==="string"&&Array.from(uo).some((o)=>r.match(new RegExp(`^([-,+]?\\d+(\\.\\d+)?${o})$`))))return}return{message:`a number ending in ${Array.from(uo).join(", ")}`}},Ib=co.default=Jl});var yo=M(function(go){Object.defineProperty(go,"__esModule",{value:!0});go.default=void 0;var mo=new Set(["ch","em","ex","ic","rem","vh","vw","vmin","vmax","svh","dvh","lvh","svw","dvw","ldw","cqw","cqh","cqmin","cqmax"]),eu=(e,t)=>{if(e.type==="Literal"){let r=e.value;if(typeof r==="string"&&Array.from(mo).some((o)=>r.match(new RegExp(`^([-,+]?\\d+(\\.\\d+)?${o})$`))))return}return{message:`a number ending in ${Array.from(mo).join(", ")}`}},wb=go.default=eu});var So=M(function(bo){Object.defineProperty(bo,"__esModule",{value:!0});bo.borderSplitter=au;function tu(e){if(typeof e==="number")return[e];let t=[],r="",o=!1,a=0;for(let s=0;s<e.length;s++){let i=e[s];if(i==="'"||i==='"')o=!o;else if(i==="("&&!o)a=a+1;else if(i===")"&&!o)a=a-1;if(i===" "&&!o&&a===0){if(r.length>0)t.push(r),r=""}else r+=i}if(r.length>0)t.push(r);return t}var ru=new Set(["thin","medium","thick"]),nu=new Set(["none","hidden","solid","dashed","dotted","double","groove","ridge","inside","inset","outset"]),ou=new Set(["initial","inherit","unset"]);function au(e){let t=tu(e).filter((f)=>f!=null),r=t.some((f)=>typeof f==="string"&&f.endsWith("!important"))?" !important":"",o=t.map((f)=>typeof f==="string"&&f.endsWith("!important")?f.replace("!important","").trim():f);if(o.length===1&&typeof o[0]==="string"&&ou.has(o[0])&&typeof o[0]==="string")return[o[0],o[0],o[0]];let a=o.find((f)=>typeof f==="number"||typeof f==="string"&&(f.match(/^\.?\d+/)||ru.has(f)||f.match(/^calc\(/)));if(typeof a==="number")a=String(a)+"px";if(a!=null){if(o.splice(o.indexOf(a),1),o.length===0)return[a+r,null,null]}let s=o.find((f)=>typeof f==="string"&&nu.has(f));if(s!=null)o.splice(o.indexOf(s),1);if(o.length===2&&a==null)a=o[0],o.splice(0,1);let i=o[0],u=(f)=>f!=null?f+r:null;return[u(a),u(s),u(i)]}});var yr=M(function(xo){Object.defineProperty(xo,"__esModule",{value:!0});xo.default=lu;function su(e,t){return Boolean(e.loc&&t.loc&&e.loc?.start.line===t.loc?.start.line)}function lu(e,t){let r=e.getTokenBefore(t,{includeComments:!1}),a=!!r&&su(r,t)&&r?.loc?r.loc.end.column:0;return t?.loc?e.lines[t.loc.start.line-1].slice(a,t.loc.start.column):""}});var br=M(function(ko){Object.defineProperty(ko,"__esModule",{value:!0});ko.default=fu;var du=cu(yr());function cu(e){return e&&e.__esModule?e:{default:e}}function fu(e,t,r){let a=`
3
+ ${r!=null?(0,du.default)(r,e):e.loc!=null?" ".repeat(e.loc.start.column):""}`;return t.map((s,i)=>`${i>0?a:""}${s}`).join(",")}});var nt=M(function(vo){Object.defineProperty(vo,"__esModule",{value:!0});vo.default=mu;function mu(e){let t=e.sourceCode||(typeof e.getSourceCode==="function"?e.getSourceCode():null);if(!t)throw Error("ESLint context does not provide source code access. Please update ESLint to v>=8.40.0. See: https://eslint.org/blog/2023/09/preparing-custom-rules-eslint-v9/");return t}});var Or=M(function(aa){Object.defineProperty(aa,"__esModule",{value:!0});aa.pseudoElements=aa.pseudoClassesAndAtRules=aa.convertToStandardProperties=aa.allModifiers=aa.all=aa.SVGProperties=aa.CSSPropertyReplacements=aa.CSSPropertyKeys=aa.CSSProperties=void 0;var hu=Ee(Vn()),Ao=Ee(Dt()),n=Ee(kt()),yu=Ee(Kn()),Sr=Ee(Yn()),k=Ee(gr()),bu=Ee(to()),p=Ee(Bt()),K=Ee(hr()),Ar=Ee(lo()),Su=Ee(po()),xu=Ee(yo()),ku=So(),vu=Ee(br()),Eu=Ee(nt());function Ee(e){return e&&e.__esModule?e:{default:e}}var ot=(e)=>()=>({message:e}),re=(0,p.default)(k.default,K.default),Cu=(0,p.default)(...Array.from(hu.default).map((e)=>(0,n.default)(e))),it=(0,p.default)(Su.default,xu.default),je=(e,t,r)=>{if(e.type==="Literal"&&typeof e.value==="string"){if(/^[-+]?(?:\d+|\d*\.\d+)$/.test(e.value)){if(e.value==="0")return;let o={message:"a non-numeric string"};return o.suggest={desc:`Replace string '${e.value}' with number ${Number(e.value)}?`,fix:(a)=>a.replaceText(e,String(Number(e.value)))},o}}return},Er=aa.all=(0,p.default)((0,n.default)(null),(0,n.default)("initial"),(0,n.default)("inherit"),(0,n.default)("unset"),(0,n.default)("revert")),le=(0,p.default)(K.default,je),ce=(0,p.default)(k.default,Cu,bu.default),Ct=(0,p.default)(je,K.default,(0,n.default)("available"),(0,n.default)("min-content"),(0,n.default)("max-content"),(0,n.default)("fit-content"),(0,n.default)("auto"),it,Ar.default),Qe=(0,p.default)(K.default,(0,n.default)("thin"),(0,n.default)("medium"),(0,n.default)("thick"),je,it),ge=re,Io=(0,p.default)((0,n.default)("none"),k.default),Et=(0,p.default)(K.default,k.default),Tu=(0,p.default)((0,n.default)("normal"),(0,n.default)("reverse"),(0,n.default)("alternate"),(0,n.default)("alternate-reverse")),Ru=(0,p.default)((0,n.default)("none"),(0,n.default)("forwards"),(0,n.default)("backwards"),(0,n.default)("both")),Au=(0,p.default)((0,n.default)("infinite"),K.default),Iu=(0,p.default)((0,n.default)("running"),(0,n.default)("paused")),_o=(0,p.default)((0,n.default)("ease"),(0,n.default)("linear"),(0,n.default)("ease-in"),(0,n.default)("ease-out"),(0,n.default)("ease-in-out"),(0,n.default)("step-start"),(0,n.default)("step-end"),k.default),_u=(0,p.default)((0,n.default)("scroll"),(0,n.default)("fixed"),(0,n.default)("local")),Cr=(0,p.default)((0,n.default)("normal"),(0,n.default)("multiply"),(0,n.default)("screen"),(0,n.default)("overlay"),(0,n.default)("darken"),(0,n.default)("lighten"),(0,n.default)("color-dodge"),(0,n.default)("color-burn"),(0,n.default)("hard-light"),(0,n.default)("soft-light"),(0,n.default)("difference"),(0,n.default)("exclusion"),(0,n.default)("hue"),(0,n.default)("saturation"),(0,n.default)("color"),(0,n.default)("luminosity")),wo=(0,p.default)(k.default,(0,n.default)("cover"),(0,n.default)("contain")),wu=(0,p.default)((0,n.default)("start"),(0,n.default)("center"),(0,n.default)("end"),(0,n.default)("baseline"),(0,n.default)("stretch")),Ir=(0,p.default)((0,n.default)("repeat-x"),(0,n.default)("repeat-y"),k.default),Pu=(0,p.default)(k.default,(0,n.default)("top"),(0,n.default)("bottom"),(0,n.default)("left"),(0,n.default)("right"),(0,n.default)("center")),Ou=(0,p.default)(K.default,k.default,(0,n.default)("left"),(0,n.default)("right"),(0,n.default)("center")),Lu=(0,p.default)(K.default,k.default,(0,n.default)("top"),(0,n.default)("bottom"),(0,n.default)("center")),Bu=k.default,Po=(0,p.default)(k.default,(0,n.default)("stretch"),(0,n.default)("repeat"),(0,n.default)("round"),(0,n.default)("space")),Du=k.default,Oo=(0,p.default)(re,(0,n.default)("fill")),Lo=(0,p.default)((0,n.default)("border-box"),(0,n.default)("padding-box"),(0,n.default)("content-box")),Tt=(0,p.default)((0,n.default)("none"),(0,n.default)("hidden"),(0,n.default)("dotted"),(0,n.default)("dashed"),(0,n.default)("solid"),(0,n.default)("double"),(0,n.default)("groove"),(0,n.default)("ridge"),(0,n.default)("inset"),(0,n.default)("outset")),Nu=(0,p.default)(Ao.default,(0,n.default)("auto"),(0,n.default)("default"),(0,n.default)("none"),(0,n.default)("context-menu"),(0,n.default)("help"),(0,n.default)("pointer"),(0,n.default)("progress"),(0,n.default)("wait"),(0,n.default)("cell"),(0,n.default)("crosshair"),(0,n.default)("text"),(0,n.default)("vertical-text"),(0,n.default)("alias"),(0,n.default)("copy"),(0,n.default)("move"),(0,n.default)("no-drop"),(0,n.default)("not-allowed"),(0,n.default)("e-resize"),(0,n.default)("n-resize"),(0,n.default)("ne-resize"),(0,n.default)("nw-resize"),(0,n.default)("s-resize"),(0,n.default)("se-resize"),(0,n.default)("sw-resize"),(0,n.default)("w-resize"),(0,n.default)("ew-resize"),(0,n.default)("ns-resize"),(0,n.default)("nesw-resize"),(0,n.default)("nwse-resize"),(0,n.default)("col-resize"),(0,n.default)("row-resize"),(0,n.default)("all-scroll"),(0,n.default)("zoom-in"),(0,n.default)("zoom-out"),(0,n.default)("grab"),(0,n.default)("grabbing"),(0,n.default)("-webkit-grab"),(0,n.default)("-webkit-grabbing")),Mu=(0,p.default)((0,n.default)("larger"),(0,n.default)("smaller")),$u=(0,p.default)((0,n.default)("show"),(0,n.default)("hide")),ju=(0,p.default)((0,n.default)("none"),k.default),Hu=(0,p.default)((0,n.default)("content"),K.default,k.default),Bo=(0,p.default)((0,n.default)("row"),(0,n.default)("row-reverse"),(0,n.default)("column"),(0,n.default)("column-reverse")),Do=(0,p.default)((0,n.default)("nowrap"),(0,n.default)("wrap"),(0,n.default)("wrap-reverse")),Wu=re,Fu=re,qu=(0,p.default)(Bo,Do),Uu=(0,p.default)((0,n.default)("left"),(0,n.default)("right"),(0,n.default)("none"),(0,n.default)("inline-start"),(0,n.default)("inline-end")),zu=(0,p.default)((0,n.default)("xx-small"),(0,n.default)("x-small"),(0,n.default)("small"),(0,n.default)("medium"),(0,n.default)("large"),(0,n.default)("x-large"),(0,n.default)("xx-large")),Vu=k.default,Ze=(0,p.default)((0,n.default)("auto"),k.default,K.default),Mt=(0,p.default)((0,n.default)("none"),(0,n.default)("subgrid"),k.default),Gu=(0,p.default)((0,n.default)("none"),k.default),Ku=(0,p.default)(ge,k.default,(0,n.default)("min-content"),(0,n.default)("max-content"),(0,n.default)("auto")),No=(0,p.default)(k.default,(0,n.default)("none")),Mo=(0,p.default)(Ku,k.default),$o=Tt,jo=ce,Ho=Tt,Wo=Qe,Xu=(0,p.default)(Wo,Ho,jo),Fo=(0,p.default)(Lo,(0,n.default)("margin-box")),_r=(0,p.default)(Fo,(0,n.default)("fill-box"),(0,n.default)("stroke-box"),(0,n.default)("view-box")),qo=(0,p.default)((0,n.default)("none"),k.default),Uo=(0,p.default)((0,n.default)("add"),(0,n.default)("subtract"),(0,n.default)("intersect"),(0,n.default)("exclude")),zo=(0,p.default)((0,n.default)("alpha"),(0,n.default)("luminance"),(0,n.default)("match-source")),Yu=(0,p.default)(qo,zo,k.default,Ir,_r,Uo),wr=(0,p.default)("normal","stretch","center","start","end","flex-start","flex-end","baseline","first baseline","last baseline","safe center","unsafe center"),Qu=(0,p.default)(wr,"space-between","space-around","space-evenly"),Zu=(0,p.default)(wr,"self-start","self-end"),Ju=(0,p.default)(wr,"auto","self-start","self-end"),Vo=(0,p.default)((0,n.default)("auto"),(0,n.default)("none"),(0,n.default)("textfield")),ed=(0,p.default)((0,n.default)("none"),k.default),td=(0,p.default)((0,n.default)("visible"),(0,n.default)("hidden")),rd=_u,nd=(e,t,r)=>{if(e.type!=="Literal"||r==null)return Cr(e,t,r);if(typeof e.value==="string"){let o=e.value,a=o.split(", ");if(o.split(",").length!==a.length)return{message:"backgroundBlendMode values must be separated by a comma and a space (', ')",suggest:{desc:'Replace comma with a comma and a space (", ")',fix:(s)=>s.replaceText(r,`backgroundBlendMode: '${o.replace(",",", ")}'`)}};for(let s of a){let i=Cr({type:"Literal",value:s,raw:`'${s}'`},t,r);if(i!==void 0)return{message:i.message}}return}},od=(0,p.default)("border-box","padding-box","content-box","text"),ad=ce,id=(0,p.default)((0,n.default)("none"),k.default),sd=Lo,ld=Ir,ud=wo,dd=Ct,cd=/^[-+]?(?:\d+|\d*\.\d+)$/,fd=new Set(["lineHeight","fontWeight","animationIterationCount","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderInlineStartWidth","borderInlineEndWidth","borderBlockStartWidth","borderBlockEndWidth"]),xr=(e,t)=>{if(typeof t==="number")return String(t);if(fd.has(e)&&cd.test(t))return String(Number(t));return`'${t.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`},pd=(e,t,r)=>{let o=r!=null?(0,Eu.default)(r):void 0;return(0,vu.default)(e,t,o)},Pe=(e="")=>(t,r,o,a)=>{let s={message:`The 'border${e}' property is not supported. Use the 'border${e}Width', 'border${e}Style' and 'border${e}Color' properties instead.`};if(t.type!=="Literal"||o==null)return s;if(typeof t.value==="number"){let i=(u)=>u.replaceText(o,`border${e}Width: ${String(t.value)}`);s.fix=i,s.suggest={desc:`Replace 'border${e}' set to a number with 'border${e}Width' instead?`,fix:i}}if(typeof t.value==="string"){let[i,u,f]=(0,ku.borderSplitter)(t.value);if(i!=null||u!=null||f!=null){let c=(h)=>{let y=[];if(i!=null)y.push(`border${e}Width: ${xr(`border${e}Width`,i)}`);if(u!=null)y.push(`border${e}Style: ${xr(`border${e}Style`,u)}`);if(f!=null)y.push(`border${e}Color: ${xr(`border${e}Color`,f)}`);return h.replaceText(o,pd(o,y,a))};s.fix=c,s.suggest={desc:`Replace 'border${e}' with 'border${e}Width', 'border${e}Style' and 'border${e}Color' instead?`,fix:c}}}return s},md=Tt,gd=Qe,hd=(0,p.default)((0,n.default)("collapse"),(0,n.default)("separate")),yd=ce,Eo=(0,p.default)(Qe,$o,ce),bd=(0,p.default)(Io,Oo,k.default,Po),qe=ce,Ue=Tt,ze=Qe,Sd=re,Me=k.default,xd=Tt,kd=Qe,vd=(0,p.default)((0,n.default)("slice"),(0,n.default)("clone")),Ed=(0,p.default)((0,n.default)("normal"),(0,n.default)("reverse")),Cd=re,Td=re,Rd=(0,p.default)((0,n.default)("single"),(0,n.default)("multiple")),Ad=re,Id=(0,p.default)((0,n.default)("horizontal"),(0,n.default)("vertical"),(0,n.default)("inline-axis"),(0,n.default)("block-axis")),_d=(0,p.default)((0,n.default)("none"),k.default),wd=(0,p.default)((0,n.default)("content-box"),(0,n.default)("border-box")),Pd=(0,p.default)((0,n.default)("show"),(0,n.default)("discard"),(0,n.default)("hide")),Co=(0,p.default)((0,n.default)("auto"),(0,n.default)("avoid"),(0,n.default)("avoid-page"),(0,n.default)("page"),(0,n.default)("left"),(0,n.default)("right"),(0,n.default)("recto"),(0,n.default)("verso"),(0,n.default)("avoid-column"),(0,n.default)("column"),(0,n.default)("avoid-region"),(0,n.default)("region")),Od=(0,p.default)((0,n.default)("auto"),(0,n.default)("avoid"),(0,n.default)("avoid-page"),(0,n.default)("avoid-column"),(0,n.default)("avoid-region")),Ld=(0,p.default)((0,n.default)("top"),(0,n.default)("bottom"),(0,n.default)("block-start"),(0,n.default)("block-end"),(0,n.default)("inline-start"),(0,n.default)("inline-end")),Bd=(0,p.default)((0,n.default)("none"),(0,n.default)("left"),(0,n.default)("right"),(0,n.default)("both"),(0,n.default)("inline-start"),(0,n.default)("inline-end")),Dd=(0,p.default)(k.default,(0,n.default)("auto")),Nd=(0,p.default)(k.default,(0,n.default)("none")),Go=(0,p.default)(K.default,k.default,(0,n.default)("auto")),Md=(0,p.default)((0,n.default)("auto"),(0,n.default)("balance")),$d=(0,p.default)(K.default,je,(0,n.default)("normal")),jd=(0,p.default)((0,n.default)("none"),(0,n.default)("all")),Ko=(0,p.default)(K.default,je,(0,n.default)("auto")),Hd=(0,p.default)(Ko,Go),Wd=(0,p.default)((0,n.default)("none"),(0,n.default)("strict"),(0,n.default)("content"),k.default),Fd=k.default,qd=(0,p.default)(k.default,(0,n.default)("none")),Ud=(0,p.default)(k.default,(0,n.default)("none")),zd=Nu,Vd=(0,p.default)((0,n.default)("ltr"),(0,n.default)("rtl")),Gd=(0,p.default)((0,n.default)("none"),(0,n.default)("inline"),(0,n.default)("block"),(0,n.default)("flow-root"),(0,n.default)("list-item"),(0,n.default)("inline-list-item"),(0,n.default)("inline-block"),(0,n.default)("inline-table"),(0,n.default)("table"),(0,n.default)("table-cell"),(0,n.default)("table-column"),(0,n.default)("table-column-group"),(0,n.default)("table-footer-group"),(0,n.default)("table-header-group"),(0,n.default)("table-row"),(0,n.default)("table-row-group"),(0,n.default)("flex"),(0,n.default)("inline-flex"),(0,n.default)("grid"),(0,n.default)("inline-grid"),(0,n.default)("-webkit-box"),(0,n.default)("run-in"),(0,n.default)("ruby"),(0,n.default)("ruby-base"),(0,n.default)("ruby-text"),(0,n.default)("ruby-base-container"),(0,n.default)("ruby-text-container"),(0,n.default)("contents")),Kd=(0,p.default)((0,n.default)("auto"),(0,n.default)("block"),(0,n.default)("table"),(0,n.default)("flex"),(0,n.default)("grid"),(0,n.default)("ruby")),Xd=(0,p.default)((0,n.default)("none"),(0,n.default)("list-item")),Yd=(0,p.default)((0,n.default)("block-level"),(0,n.default)("inline-level"),(0,n.default)("run-in"),(0,n.default)("contents"),(0,n.default)("none"),(0,n.default)("table-row-group"),(0,n.default)("table-header-group"),(0,n.default)("table-footer-group"),(0,n.default)("table-row"),(0,n.default)("table-cell"),(0,n.default)("table-column-group"),(0,n.default)("table-column"),(0,n.default)("table-caption"),(0,n.default)("ruby-base"),(0,n.default)("ruby-text"),(0,n.default)("ruby-base-container"),(0,n.default)("ruby-text-container")),Qd=(0,p.default)((0,n.default)("normal"),k.default),Zd=(0,p.default)((0,n.default)("auto"),(0,n.default)("normal"),(0,n.default)("none")),Jd=(0,p.default)((0,n.default)("normal"),k.default),ec=(0,p.default)(zu,Mu,ge),tc=(0,p.default)((0,n.default)("none"),K.default,k.default),rc=(0,p.default)((0,n.default)("normal"),(0,n.default)("ultra-condensed"),(0,n.default)("extra-condensed"),(0,n.default)("condensed"),(0,n.default)("semi-condensed"),(0,n.default)("semi-expanded"),(0,n.default)("expanded"),(0,n.default)("extra-expanded"),(0,n.default)("ultra-expanded")),nc=(0,p.default)((0,n.default)("normal"),(0,n.default)("italic"),(0,n.default)("oblique")),oc=(0,p.default)((0,n.default)("none"),k.default),ac=(0,p.default)((0,n.default)("normal"),(0,n.default)("none"),k.default),ic=(0,p.default)((0,n.default)("normal"),k.default),sc=(0,p.default)((0,n.default)("normal"),(0,n.default)("small-caps"),(0,n.default)("all-small-caps"),(0,n.default)("petite-caps"),(0,n.default)("all-petite-caps"),(0,n.default)("unicase"),(0,n.default)("titling-caps")),lc=(0,p.default)((0,n.default)("normal"),k.default),uc=(0,p.default)((0,n.default)("normal"),(0,n.default)("none"),k.default),dc=(0,p.default)((0,n.default)("normal"),k.default),cc=(0,p.default)((0,n.default)("normal"),(0,n.default)("sub"),(0,n.default)("super")),fc=(0,p.default)((0,n.default)("normal"),(0,n.default)("bold"),(0,n.default)("bolder"),(0,n.default)("lighter"),(0,yu.default)(1,1000,"a number between 1 and 1000"),Ao.default),pc=le,mc=(0,p.default)(Mt,k.default),gc=(0,p.default)(Ze,k.default),hc=Mo,yc=(0,p.default)(k.default,(0,n.default)("dense")),bc=Mo,Sc=(0,p.default)(Ze,k.default),xc=Ze,kc=Ze,vc=(0,p.default)(Ze,k.default),Ec=Ze,Cc=Ze,Tc=(0,p.default)((0,n.default)("none"),(0,n.default)("manual"),(0,n.default)("auto")),Rc=(0,p.default)((0,n.default)("from-image"),K.default,k.default),Ac=(0,p.default)((0,n.default)("auto"),(0,n.default)("crisp-edges"),(0,n.default)("pixelated"),(0,n.default)("optimizeSpeed"),(0,n.default)("optimizeQuality"),k.default),Ic=(0,p.default)(k.default,(0,n.default)("snap")),_c=(0,p.default)((0,n.default)("auto"),(0,n.default)("normal"),(0,n.default)("active"),(0,n.default)("inactive"),(0,n.default)("disabled")),wc=(0,p.default)((0,n.default)("normal"),k.default),Pc=k.default,Oc=Ct,Lc=(0,p.default)("allow-keywords","numeric-only"),Bc=(0,p.default)((0,n.default)("auto"),(0,n.default)("isolate")),Pr=["normal","stretch","center","start","end","flex-start","flex-end","left","right","baseline","first baseline","last baseline","safe center","unsafe center"],Dc=(0,p.default)(...Pr,"space-between","space-around","space-evenly"),Nc=(0,p.default)(...Pr,"self-start","self-end","legacy right","legacy left","legacy center"),Mc=(0,p.default)("auto",...Pr,"self-start","self-end"),$c=(0,p.default)((0,n.default)("normal"),ge),jc=(0,p.default)((0,n.default)("auto"),(0,n.default)("loose"),(0,n.default)("normal"),(0,n.default)("strict")),Hc=le,Xo=(0,p.default)(k.default,(0,n.default)("none")),Yo=(0,p.default)((0,n.default)("inside"),(0,n.default)("outside")),Wc=(0,p.default)(No,Yo,Xo),Fc=le,$e=(0,p.default)(K.default,je,(0,n.default)("auto")),qc=(0,p.default)(K.default,je,(0,n.default)("auto")),Uc=(0,p.default)(K.default,(0,n.default)("auto")),zc=Yu,Vc=k.default,Gc=Uo,Kc=zo,Xc=_r,Yc=k.default,Qc=Ir,Zc=wo,Jc=(0,p.default)((0,n.default)("luminance"),(0,n.default)("alpha")),Ve=(0,p.default)(K.default,je,(0,n.default)("none"),(0,n.default)("max-content"),(0,n.default)("min-content"),(0,n.default)("fit-content"),(0,n.default)("fill-available")),ef=Cr,Qo=(0,p.default)(k.default,_r,(0,n.default)("none")),Zo=re,tf=(0,p.default)(Qo,ge,Zo),rf=(0,p.default)((0,n.default)("fill"),(0,n.default)("contain"),(0,n.default)("cover"),(0,n.default)("none"),(0,n.default)("scale-down")),nf=k.default,of=k.default,af=k.default,sf=k.default,lf=k.default,Tr=re,uf=re,df=re,cf=k.default,kr=(0,p.default)((0,n.default)("visible"),(0,n.default)("hidden"),(0,n.default)("clip"),(0,n.default)("scroll"),(0,n.default)("auto")),ff=(0,p.default)((0,n.default)("auto"),(0,n.default)("none")),pf=(0,p.default)((0,n.default)("padding-box"),(0,n.default)("content-box")),mf=(0,p.default)((0,n.default)("normal"),(0,n.default)("break-word"),(0,n.default)("anywhere")),vr=(0,p.default)((0,n.default)("visible"),(0,n.default)("hidden"),(0,n.default)("clip"),(0,n.default)("scroll"),(0,n.default)("auto")),vt=(0,p.default)((0,n.default)("none"),(0,n.default)("contain"),(0,n.default)("auto")),oe=(0,p.default)(K.default,k.default),To=(0,p.default)("block","inline","x","y"),Ro=(0,p.default)((0,n.default)("auto"),(0,n.default)("always"),(0,n.default)("avoid"),(0,n.default)("left"),(0,n.default)("right")),gf=(0,p.default)((0,n.default)("auto"),(0,n.default)("avoid")),hf=(0,p.default)((0,n.default)("none"),K.default,k.default),yf=k.default,bf=(0,p.default)((0,n.default)("auto"),(0,n.default)("none"),(0,n.default)("visiblePainted"),(0,n.default)("visibleFill"),(0,n.default)("visibleStroke"),(0,n.default)("visible"),(0,n.default)("painted"),(0,n.default)("fill"),(0,n.default)("stroke"),(0,n.default)("all")),Sf=(0,p.default)((0,n.default)("static"),(0,n.default)("relative"),(0,n.default)("absolute"),(0,n.default)("sticky"),(0,n.default)("fixed")),xf=(0,p.default)(k.default,(0,n.default)("none")),kf=(0,p.default)((0,n.default)("none"),(0,n.default)("both"),(0,n.default)("horizontal"),(0,n.default)("vertical")),vf=le,Ef=(0,p.default)((0,n.default)("start"),(0,n.default)("center"),(0,n.default)("space-between"),(0,n.default)("space-around")),Cf=(0,p.default)((0,n.default)("separate"),(0,n.default)("collapse"),(0,n.default)("auto")),Tf=(0,p.default)((0,n.default)("over"),(0,n.default)("under"),(0,n.default)("inter-character")),Rf=(0,p.default)((0,n.default)("auto"),(0,n.default)("smooth")),Af=re,If=re,_f=(0,p.default)((0,n.default)("none"),(0,n.default)("start"),(0,n.default)("end"),(0,n.default)("center")),wf=(0,p.default)((0,n.default)("none"),(0,n.default)("x mandatory"),(0,n.default)("y mandatory")),Pf=re,Of=(0,p.default)((0,n.default)("none"),Fo,k.default),Lf=re,Bf=(0,p.default)((0,n.default)("auto"),(0,n.default)("fixed")),Df=(0,p.default)((0,n.default)("start"),(0,n.default)("end"),(0,n.default)("left"),(0,n.default)("right"),(0,n.default)("center"),(0,n.default)("justify"),(0,n.default)("match-parent")),Nf=(0,p.default)((0,n.default)("auto"),(0,n.default)("start"),(0,n.default)("end"),(0,n.default)("left"),(0,n.default)("right"),(0,n.default)("center"),(0,n.default)("justify")),Mf=(0,p.default)((0,n.default)("none"),(0,n.default)("all"),k.default),$f=ce,jf=(0,p.default)((0,n.default)("none"),(0,n.default)("underline"),(0,n.default)("overline"),(0,n.default)("line-through"),(0,n.default)("blink"),k.default),Hf=(0,p.default)((0,n.default)("solid"),(0,n.default)("double"),(0,n.default)("dotted"),(0,n.default)("dashed"),(0,n.default)("wavy")),Wf=(0,p.default)(jf,Hf,$f),Jo=ce,Ff=k.default,ea=(0,p.default)((0,n.default)("none"),(0,n.default)("filled"),(0,n.default)("open"),(0,n.default)("dot"),(0,n.default)("circle"),(0,n.default)("double-circle"),(0,n.default)("triangle"),(0,n.default)("filled sesame"),(0,n.default)("open sesame"),k.default),qf=(0,p.default)(ea,Jo),Uf=(0,p.default)(ge,(0,n.default)("hanging"),(0,n.default)("each-line")),zf=(0,p.default)("none","auto","inter-word","inter-character","distribute"),Vf=(0,p.default)((0,n.default)("mixed"),(0,n.default)("upright"),(0,n.default)("sideways")),Gf=(0,p.default)((0,n.default)("clip"),(0,n.default)("ellipsis"),k.default),Kf=(0,p.default)((0,n.default)("auto"),(0,n.default)("optimizeSpeed"),(0,n.default)("optimizeLegibility"),(0,n.default)("geometricPrecision")),Xf=(0,p.default)((0,n.default)("none"),k.default),Yf=(0,p.default)((0,n.default)("none"),(0,n.default)("auto"),k.default),Qf=(0,p.default)((0,n.default)("none"),(0,n.default)("capitalize"),(0,n.default)("uppercase"),(0,n.default)("lowercase"),(0,n.default)("full-width")),Zf=(0,p.default)((0,n.default)("auto"),(0,n.default)("under"),(0,n.default)("left"),(0,n.default)("right"),k.default),Jf=(0,p.default)((0,n.default)("auto"),K.default,it,Ar.default),ep=(0,p.default)((0,n.default)("auto"),(0,n.default)("none"),k.default,(0,n.default)("manipulation")),tp=(0,p.default)((0,n.default)("none"),k.default),rp=(0,p.default)((0,n.default)("border-box"),(0,n.default)("fill-box"),(0,n.default)("view-box"),(0,n.default)("content-box"),(0,n.default)("stroke-box")),np=re,op=(0,p.default)((0,n.default)("flat"),(0,n.default)("preserve-3d")),ap=k.default,ip=_o,sp=(0,p.default)((0,n.default)("normal"),(0,n.default)("embed"),(0,n.default)("isolate"),(0,n.default)("bidi-override"),(0,n.default)("isolate-override"),(0,n.default)("plaintext")),lp=(0,p.default)((0,n.default)("auto"),(0,n.default)("text"),(0,n.default)("none"),(0,n.default)("contain"),(0,n.default)("all")),up=(0,p.default)((0,n.default)("baseline"),(0,n.default)("sub"),(0,n.default)("super"),(0,n.default)("text-top"),(0,n.default)("text-bottom"),(0,n.default)("middle"),(0,n.default)("top"),(0,n.default)("bottom"),k.default,K.default),dp=(0,p.default)((0,n.default)("visible"),(0,n.default)("hidden"),(0,n.default)("collapse")),cp=(0,p.default)((0,n.default)("normal"),(0,n.default)("pre"),(0,n.default)("nowrap"),(0,n.default)("pre-wrap"),(0,n.default)("pre-line"),(0,n.default)("break-spaces")),fp=re,pp=(0,p.default)((0,n.default)("scroll-position"),(0,n.default)("contents"),k.default),mp=(0,p.default)((0,n.default)("auto"),pp),gp=(0,n.default)("break-word"),hp=(0,p.default)((0,n.default)("normal"),(0,n.default)("break-all"),(0,n.default)("keep-all"),gp),yp=(0,p.default)((0,n.default)("normal"),ge),bp=(0,p.default)((0,n.default)("normal"),(0,n.default)("break-word")),Sp=(0,p.default)((0,n.default)("lr-tb"),(0,n.default)("rl-tb"),(0,n.default)("tb-rl"),(0,n.default)("lr"),(0,n.default)("rl"),(0,n.default)("tb")),xp=(0,p.default)((0,n.default)("horizontal-tb"),(0,n.default)("vertical-rl"),(0,n.default)("vertical-lr"),(0,n.default)("sideways-rl"),(0,n.default)("sideways-lr"),Sp),kp=(0,p.default)((0,n.default)("auto"),K.default),vp=(0,p.default)((0,n.default)("auto"),(0,n.default)("baseline"),(0,n.default)("before-edge"),(0,n.default)("text-before-edge"),(0,n.default)("middle"),(0,n.default)("central"),(0,n.default)("after-edge"),(0,n.default)("text-after-edge"),(0,n.default)("ideographic"),(0,n.default)("alphabetic"),(0,n.default)("hanging"),(0,n.default)("mathematical")),$t=re,Ep=(0,p.default)((0,n.default)("baseline"),(0,n.default)("sub"),(0,n.default)("super"),$t),Cp=k.default,Tp=(0,p.default)((0,n.default)("nonzero"),(0,n.default)("evenodd")),ta=(0,p.default)(re,(0,n.default)("none")),ra=(0,p.default)(re,(0,n.default)("none")),Rp=(0,p.default)(ra,ta),Ap=(0,p.default)((0,n.default)("auto"),(0,n.default)("use-script"),(0,n.default)("no-change"),(0,n.default)("reset-size"),(0,n.default)("ideographic"),(0,n.default)("alphabetic"),(0,n.default)("hanging"),(0,n.default)("mathematical"),(0,n.default)("central"),(0,n.default)("middle"),(0,n.default)("text-after-edge"),(0,n.default)("text-before-edge")),na=(0,p.default)((0,n.default)("none"),(0,n.default)("currentColor"),ce,k.default),Ip=na,_p=re,wp=(0,p.default)((0,n.default)("nonzero"),(0,n.default)("evenodd")),Pp=re,Op=re,Lp=(0,p.default)((0,n.default)("auto"),$t),Bp=(0,p.default)((0,n.default)("none"),k.default),Dp=(0,p.default)((0,n.default)("none"),k.default),Np=(0,p.default)((0,n.default)("none"),k.default),Mp=(0,p.default)((0,n.default)("none"),k.default),at=(0,p.default)(K.default,(0,n.default)("none"),(0,n.default)("x-weak"),(0,n.default)("weak"),(0,n.default)("medium"),(0,n.default)("strong"),(0,n.default)("x-strong")),$p=(0,p.default)((0,n.default)("auto"),(0,n.default)("optimizeSpeed"),(0,n.default)("crispEdges"),(0,n.default)("geometricPrecision")),jp=k.default,Hp=(0,p.default)((0,n.default)("auto"),(0,n.default)("none"),(0,n.default)("normal")),Wp=(0,p.default)((0,n.default)("normal"),(0,n.default)("spell-out"),(0,n.default)("digits"),k.default),Fp=na,qp=(0,p.default)((0,n.default)("none"),K.default,k.default),Up=$t,zp=(0,p.default)((0,n.default)("butt"),(0,n.default)("round"),(0,n.default)("square")),Vp=(0,p.default)((0,n.default)("miter"),(0,n.default)("round"),(0,n.default)("bevel")),Gp=re,Kp=re,Xp=$t,Yp=(0,p.default)((0,n.default)("start"),(0,n.default)("middle"),(0,n.default)("end")),Qp=k.default,Zp=(0,p.default)(K.default,(0,n.default)("left"),(0,n.default)("center"),(0,n.default)("right"),(0,n.default)("leftwards"),(0,n.default)("rightwards")),Jp=(0,p.default)((0,n.default)("auto"),Et),em=(0,p.default)(k.default,(0,n.default)("preserve")),tm=(0,p.default)(K.default,(0,n.default)("absolute"),k.default),rm=(0,p.default)(K.default,(0,n.default)("absolute"),k.default),nm=k.default,om=(0,p.default)((0,n.default)("normal"),(0,n.default)("strong"),(0,n.default)("moderate"),(0,n.default)("none"),(0,n.default)("reduced")),am=(0,p.default)((0,n.default)("silent"),k.default),oa=qo,im={MozOsxFontSmoothing:(0,n.default)("grayscale"),WebkitFontSmoothing:(0,n.default)("antialiased"),WebkitAppearance:Vo,WebkitTapHighlightColor:ce,WebkitOverflowScrolling:(0,n.default)("touch"),WebkitBoxOrient:(0,p.default)("horizontal","vertical","inline-axis","block-axis"),WebkitLineClamp:re,WebkitMaskImage:oa,WebkitTextFillColor:ce,textFillColor:ce,WebkitTextStrokeWidth:Qe,WebkitTextStrokeColor:ce,WebkitBackgroundClip:(0,p.default)("border-box","padding-box","content-box","text"),WebkitAppRegion:(0,p.default)("drag","no-drag")},Nb=aa.convertToStandardProperties={marginStart:"marginInlineStart",marginEnd:"marginInlineEnd",marginHorizontal:"marginInline",marginVertical:"marginBlock",paddingStart:"paddingInlineStart",paddingEnd:"paddingInlineEnd",paddingHorizontal:"paddingInline",paddingVertical:"paddingBlock",borderVerticalWidth:"borderBlockWidth",borderVerticalStyle:"borderBlockStyle",borderVerticalColor:"borderBlockColor",borderHorizontalWidth:"borderInlineWidth",borderHorizontalStyle:"borderInlineStyle",borderHorizontalColor:"borderInlineColor",borderStartWidth:"borderInlineStartWidth",borderStartStyle:"borderInlineStartStyle",borderStartColor:"borderInlineStartColor",borderEndWidth:"borderInlineEndWidth",borderEndStyle:"borderInlineEndStyle",borderEndColor:"borderInlineEndColor",borderTopStartRadius:"borderStartStartRadius",borderTopEndRadius:"borderStartEndRadius",borderBottomStartRadius:"borderEndStartRadius",borderBottomEndRadius:"borderEndEndRadius",end:"insetInlineEnd",start:"insetInlineStart"},sm=aa.SVGProperties={colorInterpolation:(0,p.default)("auto","sRGB","linearRGB"),fill:Ip,fillOpacity:_p,fillRule:wp,floodColor:ce,floodOpacity:Tr,stopColor:ce,stopOpacity:Tr,stroke:Fp,strokeDasharray:qp,strokeDashoffset:Up,strokeLinecap:zp,strokeLinejoin:Vp,strokeMiterlimit:Gp,strokeOpacity:Kp,strokeWidth:Xp,vectorEffect:(0,p.default)("none","non-scaling-stroke","non-scaling-size","non-rotation","fixed-position")},Rr=aa.CSSProperties={...im,...sm,accentColor:ce,alignTracks:k.default,alignContent:Qu,alignItems:Zu,alignSelf:Ju,alignmentBaseline:vp,all:Er,animation:ot("`animation` is not recommended. Please use `animationName`, `animationDuration`, etc. instead"),animationComposition:(0,p.default)("replace","add","accumulate"),animationDelay:Et,animationDirection:Tu,animationDuration:Et,animationFillMode:Ru,animationIterationCount:Au,animationPlayState:Iu,animationTimingFunction:_o,animationTimeline:k.default,appearance:Vo,aspectRatio:re,backdropFilter:ed,backfaceVisibility:td,background:k.default,backgroundAttachment:rd,backgroundBlendMode:nd,backgroundClip:od,backgroundColor:ad,backgroundImage:id,backgroundOrigin:sd,backgroundPosition:Pu,backgroundPositionX:Ou,backgroundPositionY:Lu,backgroundRepeat:ld,backgroundSize:ud,baselineShift:Ep,behavior:Cp,borderCollapse:hd,borderImage:bd,borderImageWidth:Du,borderImageOutset:Bu,borderImageRepeat:Po,borderImageSlice:Oo,borderImageSource:Io,borderWidth:Qe,borderStyle:$o,borderColor:yd,borderTopWidth:kd,borderTopStyle:xd,borderTopColor:ce,borderBottomWidth:gd,borderBottomStyle:md,borderBottomColor:ce,borderLeftColor:qe,borderLeftStyle:Ue,borderLeftWidth:ze,borderRightColor:qe,borderRightStyle:Ue,borderRightWidth:ze,borderInline:Eo,borderInlineEnd:ot(["`borderInlineEnd` is not supported. Please use"," - `borderInlineEndWidth`,"," - `borderInlineEndStyle` and"," - `borderInlineEndColor` instead"].join(`
4
+ `)),borderInlineColor:qe,borderInlineStyle:Ue,borderInlineWidth:ze,borderInlineEndColor:qe,borderInlineEndStyle:Ue,borderInlineEndWidth:ze,borderInlineStart:ot(["`borderInlineStart` is not supported. Please use"," - `borderInlineStartWidth`,"," - `borderInlineStartStyle` and"," - `borderInlineStartColor` instead"].join(`
5
+ `)),borderInlineStartColor:qe,borderInlineStartStyle:Ue,borderInlineStartWidth:ze,borderBlock:Eo,borderBlockEnd:ot(["`borderBlockEnd` is not supported. Please use"," - `borderBlockEndWidth`,"," - `borderBlockEndStyle` and"," - `borderBlockEndColor` instead"].join(`
6
+ `)),borderBlockColor:qe,borderBlockStyle:Ue,borderBlockWidth:ze,borderBlockEndColor:qe,borderBlockEndStyle:Ue,borderBlockEndWidth:ze,borderBlockStart:ot(["`borderBlockStart` is not supported. Please use"," - `borderBlockStartWidth`,"," - `borderBlockStartStyle` and"," - `borderBlockStartColor` instead"].join(`
7
+ `)),borderBlockStartColor:qe,borderBlockStartStyle:Ue,borderBlockStartWidth:ze,borderSpacing:Sd,borderRadius:ge,borderStartStartRadius:ge,borderStartEndRadius:ge,borderEndStartRadius:ge,borderEndEndRadius:ge,borderTopLeftRadius:ge,borderTopRightRadius:ge,borderBottomLeftRadius:ge,borderBottomRightRadius:ge,cornerShape:Me,cornerStartStartShape:Me,cornerStartEndShape:Me,cornerEndStartShape:Me,cornerEndEndShape:Me,cornerTopLeftShape:Me,cornerTopRightShape:Me,cornerBottomLeftShape:Me,cornerBottomRightShape:Me,boxAlign:wu,boxDecorationBreak:vd,boxDirection:Ed,boxFlex:Cd,boxFlexGroup:Td,boxLines:Rd,boxOrdinalGroup:Ad,boxOrient:Id,boxShadow:_d,boxSizing:wd,boxSuppress:Pd,breakAfter:Co,breakBefore:Co,breakInside:Od,captionSide:Ld,caretColor:ce,clear:Bd,clip:Dd,clipPath:Nd,clipRule:Tp,color:ce,colorAdjust:(0,p.default)("economy","exact"),colorScheme:(0,p.default)("light","dark","light dark"),columnCount:Go,columnFill:Md,columnGap:$d,columnRule:Xu,columnRuleColor:jo,columnRuleStyle:Ho,columnRuleWidth:Wo,columnSpan:jd,columnWidth:Ko,columns:Hd,contain:Wd,containIntrinsicSize:(0,p.default)(K.default,k.default),containIntrinsicBlockSize:(0,p.default)(K.default,k.default),containIntrinsicInlineSize:(0,p.default)(K.default,k.default),containIntrinsicHeight:(0,p.default)(K.default,k.default),containIntrinsicWidth:(0,p.default)(K.default,k.default),container:k.default,containerType:(0,p.default)("normal","size","inline-size"),containerName:k.default,content:Fd,contentVisibility:(0,p.default)("visible","hidden","auto"),counterIncrement:qd,counterReset:Ud,counterSet:k.default,cue:Rp,cueAfter:ta,cueBefore:ra,cursor:zd,direction:Vd,display:Gd,displayInside:Kd,displayList:Xd,displayOutside:Yd,dominantBaseline:Ap,emptyCells:$u,filter:ju,flex:k.default,flexBasis:Hu,flexDirection:Bo,flexFlow:qu,flexGrow:Wu,flexShrink:Fu,flexWrap:Do,float:Uu,font:ot("`font` is not recommended. Please use `fontSize`, `fontFamily`, `fontStyle` etc. instead"),fontFamily:Vu,fontFeatureSettings:Qd,fontKerning:Zd,fontLanguageOverride:Jd,fontOpticalSizing:(0,p.default)("auto","none"),fontPalette:k.default,fontSize:ec,fontSizeAdjust:tc,fontSmooth:(0,p.default)("auto","never","always",ge),fontStretch:rc,fontStyle:nc,fontSynthesis:oc,fontVariant:ac,fontVariantAlternates:ic,fontVariantCaps:sc,fontVariantEastAsian:lc,fontVariantEmoji:(0,p.default)("auto","text","emoji","unicode"),fontVariantLigatures:uc,fontVariantNumeric:dc,fontVariantPosition:cc,fontVariationSettings:k.default,fontWeight:fc,forcedColorAdjust:(0,p.default)("auto","none"),fieldSizing:(0,p.default)("content","fixed"),gap:pc,glyphOrientationHorizontal:Pp,glyphOrientationVertical:Op,grid:mc,gridArea:gc,gridAutoColumns:hc,gridAutoFlow:yc,gridAutoRows:bc,gridColumn:Sc,gridColumnEnd:xc,gridColumnGap:ge,gridColumnStart:kc,gridRow:vc,gridRowEnd:Ec,gridGap:ge,gridRowGap:ge,gridRowStart:Cc,gridTemplate:Mt,gridTemplateAreas:Gu,gridTemplateColumns:Mt,gridTemplateRows:Mt,hangingPunctuation:(0,p.default)("none","first","last","allow-end","force-end",k.default),hyphenateCharacter:k.default,hyphens:Tc,imageOrientation:Rc,imageRendering:Ac,imageResolution:Ic,imeMode:_c,initialLetter:wc,initialLetterAlign:Pc,inset:le,top:le,right:le,bottom:le,left:le,insetBlock:le,insetBlockStart:le,insetBlockEnd:le,insetInline:le,insetInlineStart:le,insetInlineEnd:le,height:Ct,width:Ct,blockSize:dd,inlineSize:Oc,interpolateSize:Lc,maxHeight:Ve,maxWidth:Ve,maxBlockSize:Ve,maxInlineSize:Ve,minBlockSize:Ve,minHeight:Ve,minInlineSize:Ve,minWidth:Ve,isolation:Bc,justifyContent:Dc,justifyItems:Nc,justifySelf:Mc,kerning:Lp,letterSpacing:$c,lineBreak:jc,lineHeight:Hc,listStyle:Wc,listStyleImage:Xo,listStylePosition:Yo,listStyleType:No,margin:Fc,marginBlock:$e,marginBlockEnd:$e,marginBlockStart:$e,marginBottom:$e,marginInline:$e,marginInlineEnd:$e,marginInlineStart:$e,marginLeft:$e,marginRight:$e,marginTop:qc,marker:Bp,markerEnd:Dp,markerMid:Np,markerOffset:Uc,markerStart:Mp,mask:zc,maskBorderMode:(0,p.default)("alpha","luminance"),maskBorderOutset:k.default,maskBorderRepeat:(0,p.default)("stretch","repeat","round","space"),maskBorderSlice:k.default,maskBorderSource:k.default,maskBorderWidth:k.default,maskClip:Vc,maskComposite:Gc,maskImage:oa,maskMode:Kc,maskOrigin:Xc,maskPosition:Yc,maskRepeat:Qc,maskSize:Zc,maskType:Jc,mixBlendMode:ef,motion:tf,motionOffset:ge,motionPath:Qo,motionRotation:Zo,objectFit:rf,objectPosition:nf,offsetAnchor:k.default,offsetPath:k.default,offsetDistance:Ct,offsetBlockEnd:of,offsetBlockStart:af,offsetInlineEnd:sf,offsetInlineStart:lf,offsetRotate:k.default,opacity:Tr,order:uf,orphans:df,outline:cf,outlineColor:ce,outlineOffset:(0,p.default)(K.default,it),outlineStyle:(0,p.default)("auto","none","dotted","dashed","solid","double","groove","ridge","inset","outset"),outlineWidth:(0,p.default)(K.default,it,je),blockOverflow:kr,inlineOverflow:kr,overflow:kr,overflowAnchor:ff,overflowClipBox:pf,overflowWrap:mf,overflowBlock:vr,overflowX:vr,overflowY:vr,overscrollBehavior:vt,overscrollBehaviorInline:vt,overscrollBehaviorX:vt,overscrollBehaviorY:vt,overscrollBehaviorBlock:vt,overflowClipMargin:(0,p.default)(K.default,k.default),paintOrder:(0,p.default)("normal","fill","stroke","markers",k.default),padding:le,paddingBlock:le,paddingBlockEnd:le,paddingBlockStart:le,paddingBottom:le,paddingInline:le,paddingInlineEnd:le,paddingInlineStart:le,paddingLeft:le,paddingRight:le,paddingTop:le,pageBreakAfter:Ro,pageBreakBefore:Ro,pageBreakInside:gf,pause:at,pauseAfter:at,pauseBefore:at,perspective:hf,perspectiveOrigin:yf,pointerEvents:bf,position:Sf,placeContent:k.default,placeItems:k.default,placeSelf:k.default,printColorAdjust:(0,p.default)("economy","exact"),quotes:xf,resize:kf,rest:at,restAfter:at,restBefore:at,rotate:k.default,scale:(0,p.default)(k.default,K.default),translate:(0,p.default)(k.default,K.default),rowGap:vf,rubyAlign:Ef,rubyMerge:Cf,rubyPosition:Tf,scrollbarColor:ce,scrollbarGutter:(0,p.default)("auto","stable","stable both-edges"),scrollbarWidth:(0,p.default)("auto","thin","none"),scrollBehavior:Rf,scrollSnapPaddingBottom:Af,scrollSnapPaddingTop:If,scrollSnapAlign:_f,scrollSnapType:wf,scrollSnapStop:(0,p.default)("normal","always"),scrollMargin:oe,scrollMarginBlock:oe,scrollMarginBlockEnd:oe,scrollMarginBlockStart:oe,scrollMarginBottom:oe,scrollMarginInline:oe,scrollMarginInlineEnd:oe,scrollMarginInlineStart:oe,scrollMarginLeft:oe,scrollMarginRight:oe,scrollMarginTop:oe,scrollPadding:oe,scrollPaddingBlock:oe,scrollPaddingBlockEnd:oe,scrollPaddingBlockStart:oe,scrollPaddingBottom:oe,scrollPaddingInline:oe,scrollPaddingInlineEnd:oe,scrollPaddingInlineStart:oe,scrollPaddingLeft:oe,scrollPaddingRight:oe,scrollPaddingTop:oe,scrollSnapMarginBottom:oe,scrollSnapMarginLeft:oe,scrollSnapMarginRight:oe,scrollSnapMarginTop:oe,scrollTimeline:k.default,scrollTimelineAxis:To,scrollTimelineName:k.default,shapeImageThreshold:Pf,shapeMargin:ge,shapeOutside:Of,shapeRendering:$p,speak:Hp,speakAs:Wp,src:jp,tabSize:Lf,tableLayout:Bf,textAlign:Df,textAlignLast:Nf,textAnchor:Yp,textCombineUpright:Mf,textDecoration:Wf,textDecorationColor:ce,textDecorationLine:k.default,textDecorationSkip:(0,p.default)("none","objects","spaces","leading-spaces","trailing-spaces","edges","box-decoration"),textDecorationSkipInk:(0,p.default)("none","auto","all"),textDecorationStyle:(0,p.default)("solid","double","dotted","dashed","wavy"),textDecorationThickness:(0,p.default)(K.default,it),textEmphasis:qf,textEmphasisColor:Jo,textEmphasisPosition:Ff,textEmphasisStyle:ea,textIndent:Uf,textJustify:zf,textOrientation:Vf,textOverflow:Gf,textRendering:Kf,textShadow:Xf,textSizeAdjust:Yf,textTransform:Qf,textUnderlineOffset:Jf,textUnderlinePosition:Zf,textWrap:(0,p.default)("wrap","nowrap","balance","pretty","stable"),timelineScope:k.default,touchAction:ep,transform:tp,transformBox:rp,transformOrigin:np,transformStyle:op,transition:k.default,transitionDelay:Et,transitionDuration:Et,transitionProperty:ap,transitionTimingFunction:ip,unicodeBidi:sp,unicodeRange:Qp,userSelect:lp,viewTimeline:k.default,viewTimelineAxis:To,viewTimelineName:k.default,viewTimelineInset:oe,viewTransitionName:(0,p.default)(Er,k.default),verticalAlign:up,visibility:dp,voiceBalance:Zp,voiceDuration:Jp,voiceFamily:em,voicePitch:tm,voiceRange:rm,voiceRate:nm,voiceStress:om,voiceVolume:am,whiteSpace:cp,widows:fp,willChange:mp,wordBreak:hp,wordSpacing:yp,wordWrap:bp,writingMode:xp,zIndex:kp,zoom:(0,p.default)("normal","reset",K.default,Ar.default)},lm=aa.CSSPropertyKeys=Object.keys(Rr);for(let e of lm)Rr[e]=(0,p.default)(Rr[e],Er);var Mb=aa.CSSPropertyReplacements={border:Pe(),borderTop:Pe("Top"),borderBlockStart:Pe("Top"),borderEnd:Pe("InlineEnd"),borderInlineEnd:Pe("InlineEnd"),borderRight:Pe("Right"),borderBottom:Pe("Bottom"),borderBlockEnd:Pe("Bottom"),borderStart:Pe("InlineStart"),borderInlineStart:Pe("InlineStart"),borderLeft:Pe("Left")},um=aa.pseudoElements=(0,p.default)((0,n.default)("::before"),(0,n.default)("::after"),(0,n.default)("::first-letter"),(0,n.default)("::first-line"),(0,n.default)("::selection"),(0,n.default)("::backdrop"),(0,n.default)("::marker"),(0,n.default)("::placeholder"),(0,n.default)("::spelling-error"),(0,n.default)("::grammar-error"),(0,n.default)("::cue"),(0,n.default)("::cue-region"),(0,n.default)("::file-selector-button"),(0,n.default)("::target-text"),(0,n.default)("::slotted"),(0,n.default)("::part"),(0,n.default)("::thumb"),(0,n.default)("::-webkit-inner-spin-button"),(0,n.default)("::-webkit-outer-spin-button"),(0,n.default)("::-webkit-search-decoration"),(0,n.default)("::-webkit-search-cancel-button"),(0,n.default)("::-webkit-search-results-button"),(0,n.default)("::-webkit-search-results-decoration"),(0,n.default)("::-webkit-scrollbar"),(0,n.default)("::-webkit-scrollbar-button"),(0,n.default)("::-webkit-scrollbar-thumb"),(0,n.default)("::-webkit-scrollbar-track"),(0,n.default)("::-webkit-scrollbar-track-piece"),(0,n.default)("::-webkit-scrollbar-corner"),(0,n.default)("::-webkit-resizer"),(0,n.default)("::-webkit-slider-thumb"),(0,n.default)("::-webkit-slider-runnable-track"),(0,n.default)("::-moz-range-thumb"),(0,n.default)("::-moz-range-track"),(0,n.default)("::-moz-range-progress")),dm=aa.pseudoClassesAndAtRules=(0,p.default)((0,n.default)(":first-child"),(0,n.default)(":last-child"),(0,n.default)(":only-child"),(0,n.default)(":nth-child"),(0,n.default)(":nth-of-type"),(0,n.default)(":empty"),(0,n.default)(":hover"),(0,n.default)(":focus"),(0,n.default)(":focus-visible"),(0,n.default)(":focus-within"),(0,n.default)(":active"),(0,n.default)(":visited"),(0,n.default)(":disabled"),(0,Sr.default)(/^@media/,"a media query"),(0,Sr.default)(/^@container/,"a media query"),(0,Sr.default)(/^@supports/,"a supports query"),(0,n.default)("@starting-style")),$b=aa.allModifiers=(0,p.default)(um,dm)});var ca=M(function(ua){Object.defineProperty(ua,"__esModule",{value:!0});ua.default=void 0;var sa=He(kt()),la=He(Bt()),Sm=He(lr()),xm=He(ur()),Lr=He(cr()),km=He(Dt()),vm=He(pr()),Em=He(mr()),Je=Or(),Cm=He(De());function He(e){return e&&e.__esModule?e:{default:e}}var Tm={meta:{type:"problem",hasSuggestions:!0,fixable:"code",docs:{descriptions:"Enforce that you create standard CSS values and properties for stylex",category:"Possible Errors",recommended:!0},schema:[{type:"object",properties:{validImports:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{from:{type:"string"},as:{type:"string"}}}]},default:["stylex","@stylexjs/stylex"]}}}]},create(e){let{validImports:t=["stylex","@stylexjs/stylex"]}=e.options[0]||{},r=(0,Cm.default)(t),o=new Map,a=new Set,s=new Set,i=new Set,u=new Set,f=new Set,c=new Set,h={...Je.CSSProperties,animationName:(0,la.default)((0,sa.default)("none"),(0,Sm.default)(i,f),Je.all),positionTryFallbacks:(0,la.default)((0,sa.default)("none"),km.default,(0,xm.default)(i,c),Je.all)};function y(g){return g.type==="MemberExpression"&&g.object.type==="Identifier"&&r.isStylexDefaultImport(g.object.name)&&g.property.type==="Identifier"&&g.property.name==="create"||g.type==="Identifier"&&r.isStylexNamedImport("create",g.name)}function d(g){return g&&g.type==="CallExpression"&&y(g.callee)&&g.arguments.length===1}function v(g,x,E,T){if(g.type!=="Property")return;if(g.value.type==="ObjectExpression"){let X=g.value;if(x>0&&E==null&&!(T&&x===1))return;let q=g.key;if(q.type==="PrivateIdentifier")return;let N=q.type==="Literal"?q.value:q.type==="Identifier"?!g.computed?q.name:(0,Em.default)(q,o):null;if((0,Lr.default)(q,s))return;if(typeof N!=="string"||q.type!=="Literal"&&q.type!=="Identifier")return;return X.properties.forEach((V)=>{let J=E??(N.startsWith("@")||N.startsWith(":")||N==="default"?null:N);if(J==null)return;return v(V,x+1,J,T||N.startsWith("::"))})}let R=g.key;if(R.type==="PrivateIdentifier"||(0,Lr.default)(R,s))return;if(g.computed&&R.type!=="Literal"){let X=(0,vm.default)(R,o);if(X!=null&&X!=="ARG")R=X}let I=E??(R.type==="Identifier"?R.name:R.value);if(typeof I!=="string")return;let W=h[I];if(W==null){let X=g.key.type==="Identifier"&&Je.convertToStandardProperties[g.key.name]?Je.convertToStandardProperties[g.key.name]:g.key.type==="Literal"&&typeof g.key.value==="string"&&Je.convertToStandardProperties[g.key.value]?Je.convertToStandardProperties[g.key.value]:null,q="";if(g.key.type==="Identifier")q=g.key.name;else if(g.key.type==="Literal"&&typeof g.key.value==="string")q=g.key.value;if(X&&(g.key.type==="Identifier"||g.key.type==="Literal"))return e.report({node:g.key,loc:g.key.loc,message:`The key "${q}" is not a standard CSS property. Did you mean "${X}"?`,fix:(N)=>N.replaceText(g.key,X)});return}if(typeof W!=="function")throw TypeError(`CSSProperties[${I}] is not a function`);if(!(s.size>0&&(0,Lr.default)(g.value,s))){let X=o;if(a.size>0){X=new Map;for(let[q,N]of o)X.set(q,N);for(let q of a)X.set(q,"ARG")}if((I==="float"||I==="clear")&&g.value.type==="Literal"&&typeof g.value.value==="string"&&(g.value.value==="start"||g.value.value==="end")){let q=g.value.value==="start"?"inline-start":"inline-end";return e.report({node:g.value,loc:g.value.loc,message:`The value "${g.value.value}" is not a standard CSS value for "${I}". Did you mean "${q}"?`,fix:(N)=>N.replaceText(g.value,`'${q}'`),suggest:[{desc:`Replace "${g.value.value}" with "${q}"?`,fix:(N)=>N.replaceText(g.value,`'${q}'`)}]})}}}return{ImportDeclaration:r.ImportDeclaration,Program(g){let x=g.body.reduce((R,I)=>{if(I.type==="VariableDeclaration")R.push(I);return R},[]).map((R)=>R.declarations).reduce((R,I)=>R.concat(I),[]),[E,T]=x.reduce((R,I)=>{if(I.init!=null&&I.init.type==="CallExpression"&&I.init.callee.type==="Identifier"&&I.init.callee.name==="require")R[0].push(I);else R[1].push(I);return R},[[],[]]);E.forEach((R)=>{if(R.init!=null&&R.init.type==="CallExpression"&&R.init.callee.type==="Identifier"&&R.init.callee.name==="require"&&R.init.arguments.length===1&&R.init.arguments[0].type==="Literal"&&t.includes(R.init.arguments[0].value)){if(R.id.type==="Identifier")i.add(R.id.name);if(R.id.type==="ObjectPattern")R.id.properties.forEach((I)=>{if(I.type==="Property"&&I.key.type==="Identifier"&&I.key.name==="create"&&!I.computed&&I.value.type==="Identifier")u.add(I.value.name)})}}),T.filter((R)=>R.id.type==="Identifier").forEach((R)=>{let I=R.id.type==="Identifier"?R.id:null,W=R.init;if(I!=null&&W!=null)o.set(I.name,W)})},CallExpression(g){if(!d(g))return;let x=g.arguments[0];if(x.type!=="ObjectExpression")return;x.properties.forEach((E)=>{if(E.type!=="Property")return;let T=E.value;if(T.type==="ArrowFunctionExpression"&&(T.body.type==="ObjectExpression"||T.body.type==="TSAsExpression"&&T.body.expression.type==="ObjectExpression")){let R=T.params;T=T.type==="TSAsExpression"?T.expression:T.body,R.forEach((I)=>{if(I.type==="Identifier")a.add(I.name)})}else if(T.type!=="ObjectExpression")return;T.properties.forEach((R)=>v(R,0,null,!1)),a.clear()})},"Program:exit"(){r.clear(),o.clear()}}}},Hb=ua.default=Tm});var ma=M(function(fa){Object.defineProperty(fa,"__esModule",{value:!0});fa.default=void 0;var Rm=Am(De());function Am(e){return e&&e.__esModule?e:{default:e}}var Im={meta:{type:"problem",docs:{description:"Disallow using `className` or `style` props on elements that spread `stylex.props()`",category:"Best Practices",recommended:!0},schema:[{type:"object",properties:{validImports:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{from:{type:"string"},as:{type:"string"}}}]},default:["stylex","@stylexjs/stylex"]}},additionalProperties:!1}]},create(e){let{validImports:t=["stylex","@stylexjs/stylex"]}=e.options[0]||{},r=(0,Rm.default)(t);function o(a){return a.type==="MemberExpression"&&a.object.type==="Identifier"&&r.isStylexDefaultImport(a.object.name)&&a.property.type==="Identifier"&&a.property.name==="props"||a.type==="Identifier"&&r.isStylexNamedImport("props",a.name)}return{ImportDeclaration:r.ImportDeclaration,JSXOpeningElement(a){if(!a.attributes.some((i)=>i.type==="JSXSpreadAttribute"&&i.argument.type==="CallExpression"&&o(i.argument.callee)))return;for(let i of a.attributes)if(i.type==="JSXAttribute"&&i.name.type==="JSXIdentifier"&&(i.name.name==="className"||i.name.name==="style"))e.report({node:i,message:"The `{{propName}}` prop should not be used when spreading `stylex.props()` to avoid conflicts.",data:{propName:i.name.name}});else if(i.type==="JSXSpreadAttribute"&&i.argument.type==="ObjectExpression"){for(let u of i.argument.properties)if(u.type==="Property"&&!u.computed&&u.key.type==="Identifier"&&(u.key.name==="className"||u.key.name==="style"))e.report({node:u,message:"The `{{propName}}` prop should not be used when spreading `stylex.props()` to avoid conflicts.",data:{propName:u.key.name}})}},"Program:exit"(){r.clear()}}}},Fb=fa.default=Im});var ba=M(function(ha){Object.defineProperty(ha,"__esModule",{value:!0});ha.default=void 0;var _m=ga(nt()),wm=ga(De());function ga(e){return e&&e.__esModule?e:{default:e}}function Pm(e){let t=new Map;if(e==null)return t;return e.properties?.filter((r)=>!r.computed&&!r.method).forEach((r)=>{let{key:o}=r;if(o?.type==="Identifier")t.set(o.name,r);else if(o?.type==="Literal")t.set(o.value,r)}),t}var Om={meta:{fixable:"code",schema:[{type:"object",properties:{validImports:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{from:{type:"string"},as:{type:"string"}}}]},default:["stylex","@stylexjs/stylex"]}},additionalProperties:!1}]},create(e){let{validImports:t=["stylex","@stylexjs/stylex"]}=e.options[0]||{},r=(0,wm.default)(t),o=new Map;function a(f){return f.type==="MemberExpression"&&f.object.type==="Identifier"&&r.isStylexDefaultImport(f.object.name)&&f.property.type==="Identifier"&&f.property.name==="create"||f.type==="Identifier"&&r.isStylexNamedImport("create",f.name)}function s(f){return f&&f.type==="CallExpression"&&a(f.callee)&&f.arguments.length===1&&f.arguments[0].type==="ObjectExpression"}function i(f){let{id:c,init:h}=f;if(c&&c.type==="Identifier"&&h&&s(h))o.set(c.name,Pm(h.arguments&&h.arguments?.length>0?h.arguments[0]:null))}function u(f){return function(c){if(c){if(c.type==="Literal")f.delete(c.value);else if(c.type==="ObjectExpression")c.properties.forEach((h)=>{if(h.key)f.delete(h.key.name)});else if(c.type==="ArrayExpression")c.elements.forEach((h)=>{f.delete(h?.value)});else if(c.type==="ConditionalExpression"){let{consequent:h,alternate:y}=c;u(f)(h),u(f)(y)}else if(c.type==="LogicalExpression"&&c.operator==="&&")u(f)(c.right)}}}return{Program(f){f.body.filter((c)=>c.type==="ImportDeclaration").forEach(r.ImportDeclaration),f.body.filter(({type:c})=>c==="VariableDeclaration").map(({declarations:c})=>c&&c.length===1?c[0]:null).filter(Boolean).filter(({init:c})=>c&&s(c)).forEach(i)},MemberExpression(f){if(f.object.type==="Identifier"&&o.has(f.object.name)){if(f.computed&&f.property.type!=="Literal")o.delete(f.object.name);else if(f.property.type==="Identifier")o.get(f.object.name)?.delete(f.property.name);else if(f.property.type==="Literal")o.get(f.object.name)?.delete(f.property.value)}},CallExpression(f){let c=f.callee?.name;if(c==null||!o.has(c))return;let h=o.get(c);if(h==null)return;f.arguments?.forEach(u(h))},ExportNamedDeclaration(f){let c=f.declaration?.declarations;if(c?.length!==1)return;let h=c[0].id.name;if(h==null||!o.has(h))return;o.delete(h)},ExportDefaultDeclaration(f){let c=f.declaration.name;if(c==null||!o.has(c))return;o.delete(c)},ReturnStatement(f){if(f.argument?.type==="Identifier"){let c=f.argument.name;if(o.has(f.argument.name))o.delete(c)}},"Program:exit"(){let f=(0,_m.default)(e);o.forEach((c,h)=>{c.forEach((y,d)=>{e.report({node:y,message:`Unused style detected: ${h}.${d}`,fix(v){let g=f.getTokenAfter(y,{includeComments:!1})?.value===","?1:0,x=f.getTokenBefore(y,{includeComments:!1});if(y.range==null||x?.range==null)return null;return v.removeRange([x.range[1],y.range[1]+g])}})})}),o.clear(),r.clear()}}}},Ub=ha.default=Om});var va=M(function(ka){Object.defineProperty(ka,"__esModule",{value:!0});ka.default=Dm;function Lm(e){return e.type==="Literal"&&e.value===null&&!e.regex&&!e.bigint}function Sa(e){switch(e.type){case"Literal":if(e.value===null){if(Lm(e))return String(e.value);if(e.regex)return`/${e.regex.pattern}/${e.regex.flags}`;if(e.bigint)return e.bigint}else return String(e.value);break;case"TemplateLiteral":if(e.expressions.length===0&&e.quasis.length===1)return e.quasis[0].value.cooked||null;break}return null}function xa(e){let t;if(e.type==="ChainExpression"&&e.expression)return xa(e.expression);switch(e&&e.type){case"Property":case"PropertyDefinition":case"MethodDefinition":t=e.key;break;case"MemberExpression":t=e.property;break}if(t){if(t.type==="Identifier"&&!e.computed)return t.name;if(t.type==="CallExpression"){let r=Bm(t.callee);if(!r)return null;if(r.startsWith("stylex.when")||r.startsWith("when")){let o=r.split(".").pop(),a=t.arguments[0];if(!a)return null;return`:when:${o??""}${Sa(a)??""}`}}return Sa(t)}return null}function Bm(e){let t=[],r=e;while(r&&r.type==="MemberExpression"){if(r.property.type==="Identifier")t.unshift(r.property.name);r=r.object}if(r&&r.type==="Identifier")t.unshift(r.name);return t.length>0?t.join("."):null}function Dm(e){let t=xa(e);return t!==null?t:e.key.name||null}});var wa=M(function(Ia){Object.defineProperty(Ia,"__esModule",{value:!0});Ia.PSEUDO_ELEMENT_PRIORITY=Ia.PSEUDO_CLASS_PRIORITIES=Ia.AT_RULE_PRIORITIES=void 0;Ia.default=jm;Ia.getAtRulePriority=Ca;Ia.getDefaultPriority=Aa;Ia.getPseudoClassPriority=Ra;Ia.getPseudoElementPriority=Ta;var U=new Set,l=new Set,j=new Set,xe=new Set;l.add("background-blend-mode");l.add("isolation");l.add("mix-blend-mode");xe.add("animation");l.add("animation-composition");l.add("animation-delay");l.add("animation-direction");l.add("animation-duration");l.add("animation-fill-mode");l.add("animation-iteration-count");l.add("animation-name");l.add("animation-play-state");j.add("animation-range");l.add("animation-range-end");l.add("animation-range-start");l.add("animation-timing-function");l.add("animation-timeline");j.add("scroll-timeline");l.add("scroll-timeline-axis");l.add("scroll-timeline-name");l.add("timeline-scope");j.add("view-timeline");l.add("view-timeline-axis");l.add("view-timeline-inset");l.add("view-timeline-name");xe.add("background");l.add("background-attachment");l.add("background-clip");l.add("background-color");l.add("background-image");l.add("background-origin");l.add("background-repeat");l.add("background-size");j.add("background-position");l.add("background-position-x");l.add("background-position-y");xe.add("border");j.add("border-color");j.add("border-style");j.add("border-width");xe.add("border-block");l.add("border-block-color");l.add("border-block-stylex");l.add("border-block-width");j.add("border-block-start");j.add("border-top");l.add("border-block-start-color");U.add("border-top-color");l.add("border-block-start-style");U.add("border-top-style");l.add("border-block-start-width");U.add("border-top-width");j.add("border-block-end");j.add("border-bottom");l.add("border-block-end-color");U.add("border-bottom-color");l.add("border-block-end-style");U.add("border-bottom-style");l.add("border-block-end-width");U.add("border-bottom-width");xe.add("border-inline");j.add("border-inline-color");j.add("border-inline-style");j.add("border-inline-width");j.add("border-inline-start");j.add("border-left");l.add("border-inline-start-color");U.add("border-left-color");l.add("border-inline-start-style");U.add("border-left-style");l.add("border-inline-start-width");U.add("border-left-width");j.add("border-inline-end");j.add("border-right");l.add("border-inline-end-color");U.add("border-right-color");l.add("border-inline-end-style");U.add("border-right-style");l.add("border-inline-end-width");U.add("border-right-width");j.add("border-image");l.add("border-image-outset");l.add("border-image-repeat");l.add("border-image-slice");l.add("border-image-source");l.add("border-image-width");j.add("border-radius");l.add("border-start-end-radius");l.add("border-start-start-radius");l.add("border-end-end-radius");l.add("border-end-start-radius");U.add("border-top-left-radius");U.add("border-top-right-radius");U.add("border-bottom-left-radius");U.add("border-bottom-right-radius");j.add("corner-shape");l.add("corner-start-start-shape");l.add("corner-start-end-shape");l.add("corner-end-start-shape");l.add("corner-end-end-shape");U.add("corner-top-left-shape");U.add("corner-top-right-shape");U.add("corner-bottom-left-shape");U.add("corner-bottom-right-shape");l.add("box-shadow");l.add("accent-color");l.add("appearance");l.add("aspect-ratio");j.add("caret");l.add("caret-color");l.add("caret-shape");l.add("cursor");l.add("ime-mode");l.add("input-security");j.add("outline");l.add("outline-color");l.add("outline-offset");l.add("outline-style");l.add("outline-width");l.add("pointer-events");l.add("resize");l.add("text-overflow");l.add("user-select");j.add("grid-gap");j.add("gap");l.add("grid-row-gap");l.add("row-gap");l.add("grid-column-gap");l.add("column-gap");j.add("place-content");l.add("align-content");l.add("justify-content");j.add("place-items");l.add("align-items");l.add("justify-items");j.add("place-self");l.add("align-self");l.add("justify-self");l.add("box-sizing");l.add("block-size");U.add("height");l.add("inline-size");U.add("width");l.add("max-block-size");U.add("max-height");l.add("max-inline-size");U.add("max-width");l.add("min-block-size");U.add("min-height");l.add("min-inline-size");U.add("min-width");xe.add("margin");j.add("margin-block");l.add("margin-block-start");U.add("margin-top");l.add("margin-block-end");U.add("margin-bottom");j.add("margin-inline");l.add("margin-inline-start");U.add("margin-left");l.add("margin-inline-end");U.add("margin-right");l.add("margin-trim");j.add("overscroll-behavior");l.add("overscroll-behavior-block");U.add("overscroll-behavior-y");l.add("overscroll-behavior-inline");U.add("overscroll-behavior-x");xe.add("padding");j.add("padding-block");l.add("padding-block-start");U.add("padding-top");l.add("padding-block-end");U.add("padding-bottom");j.add("padding-inline");l.add("padding-inline-start");U.add("padding-left");l.add("padding-inline-end");U.add("padding-right");l.add("visibility");l.add("color");l.add("color-scheme");l.add("forced-color-adjust");l.add("opacity");l.add("print-color-adjust");j.add("columns");l.add("column-count");l.add("column-width");l.add("column-fill");l.add("column-span");j.add("column-rule");l.add("column-rule-color");l.add("column-rule-style");l.add("column-rule-width");l.add("contain");j.add("contain-intrinsic-size");l.add("contain-intrinsic-block-size");l.add("contain-intrinsic-width");l.add("contain-intrinsic-height");l.add("contain-intrinsic-inline-size");j.add("container");l.add("container-name");l.add("container-type");l.add("content-visibility");l.add("counter-increment");l.add("counter-reset");l.add("counter-set");l.add("display");j.add("flex");l.add("flex-basis");l.add("flex-grow");l.add("flex-shrink");j.add("flex-flow");l.add("flex-direction");l.add("flex-wrap");l.add("order");xe.add("font");l.add("font-family");l.add("font-size");l.add("font-stretch");l.add("font-style");l.add("font-weight");l.add("line-height");j.add("font-variant");l.add("font-variant-alternates");l.add("font-variant-caps");l.add("font-variant-east-asian");l.add("font-variant-emoji");l.add("font-variant-ligatures");l.add("font-variant-numeric");l.add("font-variant-position");l.add("font-feature-settings");l.add("font-kerning");l.add("font-language-override");l.add("font-optical-sizing");l.add("font-palette");l.add("font-variation-settings");l.add("font-size-adjust");l.add("font-smooth");l.add("font-synthesis-position");l.add("font-synthesis-small-caps");l.add("font-synthesis-style");l.add("font-synthesis-weight");l.add("line-height-step");l.add("box-decoration-break");l.add("break-after");l.add("break-before");l.add("break-inside");l.add("orphans");l.add("widows");l.add("content");l.add("quotes");xe.add("grid");l.add("grid-auto-flow");l.add("grid-auto-rows");l.add("grid-auto-columns");xe.add("grid-template");j.add("grid-template-areas");l.add("grid-template-columns");l.add("grid-template-rows");xe.add("grid-area");j.add("grid-row");l.add("grid-row-start");l.add("grid-row-end");j.add("grid-column");l.add("grid-column-start");l.add("grid-column-end");l.add("align-tracks");l.add("justify-tracks");l.add("masonry-auto-flow");l.add("image-orientation");l.add("image-rendering");l.add("image-resolution");l.add("object-fit");l.add("object-position");l.add("initial-letter");l.add("initial-letter-align");j.add("list-style");l.add("list-style-image");l.add("list-style-position");l.add("list-style-type");l.add("clip");l.add("clip-path");j.add("mask");l.add("mask-clip");l.add("mask-composite");l.add("mask-image");l.add("mask-mode");l.add("mask-origin");l.add("mask-position");l.add("mask-repeat");l.add("mask-size");l.add("mask-type");j.add("mask-border");l.add("mask-border-mode");l.add("mask-border-outset");l.add("mask-border-repeat");l.add("mask-border-slice");l.add("mask-border-source");l.add("mask-border-width");xe.add("all");l.add("text-rendering");j.add("offset");l.add("offset-anchor");l.add("offset-distance");l.add("offset-path");l.add("offset-position");l.add("offset-rotate");l.add("-webkit-box-orient");l.add("-webkit-line-clamp");j.add("overflow");l.add("overflow-block");U.add("overflow-y");l.add("overflow-inline");U.add("overflow-x");l.add("overflow-clip-margin");l.add("scroll-gutter");l.add("scroll-behavior");l.add("page");l.add("page-break-after");l.add("page-break-before");l.add("page-break-inside");xe.add("inset");j.add("inset-block");l.add("inset-block-start");U.add("top");l.add("inset-block-end");U.add("bottom");j.add("inset-inline");l.add("inset-inline-start");U.add("left");l.add("inset-inline-end");U.add("right");l.add("clear");l.add("float");l.add("position");l.add("z-index");l.add("ruby-align");l.add("ruby-merge");l.add("ruby-position");l.add("overflow-anchor");xe.add("scroll-margin");j.add("scroll-margin-block");l.add("scroll-margin-block-start");U.add("scroll-margin-top");l.add("scroll-margin-block-end");U.add("scroll-margin-bottom");j.add("scroll-margin-inline");l.add("scroll-margin-inline-start");U.add("scroll-margin-left");l.add("scroll-margin-inline-end");U.add("scroll-margin-right");xe.add("scroll-padding");j.add("scroll-padding-block");l.add("scroll-padding-block-start");U.add("scroll-padding-top");l.add("scroll-padding-block-end");U.add("scroll-padding-bottom");j.add("scroll-padding-inline");l.add("scroll-padding-inline-start");U.add("scroll-padding-left");l.add("scroll-padding-inline-end");U.add("scroll-padding-right");l.add("scroll-snap-align");l.add("scroll-snap-stop");j.add("scroll-snap-type");l.add("scrollbar-color");l.add("scrollbar-width");l.add("shape-image-threshold");l.add("shape-margin");l.add("shape-outside");l.add("azimuth");l.add("border-collapse");l.add("border-spacing");l.add("caption-side");l.add("empty-cells");l.add("table-layout");l.add("vertical-align");j.add("text-decoration");l.add("text-decoration-color");l.add("text-decoration-line");l.add("text-decoration-skip");l.add("text-decoration-skip-ink");l.add("text-decoration-style");l.add("text-decoration-thickness");j.add("text-emphasis");l.add("text-emphasis-color");l.add("text-emphasis-position");l.add("text-emphasis-style");l.add("text-shadow");l.add("text-underline-offset");l.add("text-underline-position");l.add("hanging-punctuation");l.add("hyphenate-character");l.add("hyphenate-limit-chars");l.add("hyphens");l.add("letter-spacing");l.add("line-break");l.add("overflow-wrap");l.add("paint-order");l.add("tab-size");l.add("text-align");l.add("text-align-last");l.add("text-indent");l.add("text-justify");l.add("text-size-adjust");l.add("text-transform");l.add("text-wrap");l.add("white-space");l.add("white-space-collapse");l.add("word-break");l.add("word-spacing");l.add("word-wrap");l.add("backface-visibility");l.add("perspective");l.add("perspective-origin");l.add("rotate");l.add("scale");l.add("transform");l.add("transform-box");l.add("transform-origin");l.add("transform-style");l.add("translate");j.add("transition");l.add("transition-delay");l.add("transition-duration");l.add("transition-property");l.add("transition-timing-function");l.add("view-transition-name");l.add("will-change");l.add("direction");l.add("text-combine-upright");l.add("text-orientation");l.add("unicode-bidi");l.add("writing-mode");l.add("backdrop-filter");l.add("filter");l.add("math-depth");l.add("math-shift");l.add("math-style");l.add("touch-action");var Dr=Ia.PSEUDO_CLASS_PRIORITIES={":is":40,":where":40,":not":40,":has":45,":dir":50,":lang":51,":first-child":52,":first-of-type":53,":last-child":54,":last-of-type":55,":only-child":56,":only-of-type":57,":nth-child":60,":nth-last-child":61,":nth-of-type":62,":nth-last-of-type":63,":empty":70,":link":80,":any-link":81,":local-link":82,":target-within":83,":target":84,":visited":85,":enabled":91,":disabled":92,":required":93,":optional":94,":read-only":95,":read-write":96,":placeholder-shown":97,":in-range":98,":out-of-range":99,":default":100,":checked":101,":indeterminate":101,":blank":102,":valid":103,":invalid":104,":user-invalid":105,":autofill":110,":picture-in-picture":120,":modal":121,":fullscreen":122,":paused":123,":playing":124,":current":125,":past":126,":future":127,":hover":130,":focusWithin":140,":focus":150,":focusVisible":160,":active":170},Br=Ia.AT_RULE_PRIORITIES={"@supports":30,"@media":200,"@container":300},Ea=Ia.PSEUDO_ELEMENT_PRIORITY=5000,Rt={ANCESTOR:/^:where\(\.[0-9a-zA-Z_-]+(:[a-zA-Z-]+)\s+\*\)$/,DESCENDANT:/^:where\(:has\(\.[0-9a-zA-Z_-]+(:[a-zA-Z-]+)\)\)$/,SIBLING_BEFORE:/^:where\(\.[0-9a-zA-Z_-]+(:[a-zA-Z-]+)\s+~\s+\*\)$/,SIBLING_AFTER:/^:where\(:has\(~\s\.[0-9a-zA-Z_-]+(:[a-zA-Z-]+)\)\)$/,ANY_SIBLING:/^:where\(\.[0-9a-zA-Z_-]+(:[a-zA-Z-]+)\s+~\s+\*,\s+:has\(~\s\.[0-9a-zA-Z_-]+(:[a-zA-Z-]+)\)\)$/},Mm=/::[a-zA-Z-]+|:[a-zA-Z-]+(?:\([^)]*\))?/g;function $m(e){let t=e.match(Mm);if(!t||t.length<=1||t.some((o)=>o.includes("(")))return;let r=0;for(let o of t)r+=o.startsWith("::")?Ea:Dr[o]??40;return r}function Ca(e){if(e.startsWith("--"))return 1;if(e.startsWith("@supports"))return Br["@supports"];if(e.startsWith("@media"))return Br["@media"];if(e.startsWith("@container"))return Br["@container"]}function Ta(e){if(e.startsWith("::"))return Ea}function Ra(e){let t=(u)=>(Dr[u]??40)/100,r=Rt.ANCESTOR.exec(e);if(r)return 10+t(r[1]);let o=Rt.DESCENDANT.exec(e);if(o)return 15+t(o[1]);let a=Rt.ANY_SIBLING.exec(e);if(a)return 20+Math.max(t(a[1]),t(a[2]));let s=Rt.SIBLING_BEFORE.exec(e);if(s)return 30+t(s[1]);let i=Rt.SIBLING_AFTER.exec(e);if(i)return 40+t(i[1]);if(e.startsWith(":")){let u=e.split("(")[0];return Dr[u]??40}}function Aa(e){if(xe.has(e))return 1000;if(j.has(e))return 2000;if(l.has(e))return 3000;if(U.has(e))return 4000}function jm(e){let t=Ca(e);if(t)return t;let r=$m(e);if(r!=null)return r;let o=Ta(e);if(o)return o;let a=Ra(e);if(a)return a;let s=Aa(e);if(s)return s;return 3000}});var Ba=M(function(Oa){Object.defineProperty(Oa,"__esModule",{value:!0});Oa.getPseudoElementPriority=Oa.getPseudoClassPriority=Oa.getPriority=Oa.getDefaultPriority=Oa.getAtRulePriority=Oa.PSEUDO_ELEMENT_PRIORITY=Oa.PSEUDO_CLASS_PRIORITIES=Oa.AT_RULE_PRIORITIES=void 0;var Ge=Pa(wa());function Pa(e,t){if(typeof WeakMap=="function")var r=new WeakMap,o=new WeakMap;return(Pa=function(a,s){if(!s&&a&&a.__esModule)return a;var i,u,f={__proto__:null,default:a};if(a===null||typeof a!="object"&&typeof a!="function")return f;if(i=s?o:r){if(i.has(a))return i.get(a);i.set(a,f)}for(let c in a)c!=="default"&&{}.hasOwnProperty.call(a,c)&&((u=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(a,c))&&(u.get||u.set)?i(f,c,u):f[c]=a[c]);return f})(e,t)}var Kb=Oa.getAtRulePriority=Ge.getAtRulePriority,Xb=Oa.getPseudoElementPriority=Ge.getPseudoElementPriority,Yb=Oa.getPseudoClassPriority=Ge.getPseudoClassPriority,Qb=Oa.getDefaultPriority=Ge.getDefaultPriority,Zb=Oa.getPriority=Ge.default,Jb=Oa.PSEUDO_CLASS_PRIORITIES=Ge.PSEUDO_CLASS_PRIORITIES,eS=Oa.AT_RULE_PRIORITIES=Ge.AT_RULE_PRIORITIES,tS=Oa.PSEUDO_ELEMENT_PRIORITY=Ge.PSEUDO_ELEMENT_PRIORITY});var Ma=M(function(Da){Object.defineProperty(Da,"__esModule",{value:!0});Da.default=void 0;var eg=["","composes","all","pointerEvents","touchAction","willChange","cursor","captionSide","content","quotes","counterSet","counterIncrement","counterReset","resize","userSelect","overflowAnchor","navIndex","navUp","navRight","navDown","navLeft","scrollBehavior","scrollbarColor","scrollbarWidth","scrollbarGutter","scrollMargin","scrollMarginBlock","scrollMarginBlockStart","scrollMarginBlockEnd","scrollMarginInline","scrollMarginInlineStart","scrollMarginInlineEnd","scrollMarginTop","scrollMarginRight","scrollMarginBottom","scrollMarginLeft","scrollPadding","scrollPaddingBlock","scrollPaddingBlockStart","scrollPaddingBlockEnd","scrollPaddingInline","scrollPaddingInlineStart","scrollPaddingInlineEnd","scrollPaddingTop","scrollPaddingRight","scrollPaddingBottom","scrollPaddingLeft","scrollSnapType","scrollSnapAlign","scrollSnapStop","contentVisibility","containIntrinsicInlineSize","containIntrinsicBlockSize","containIntrinsicSize","containIntrinsicWidth","containIntrinsicHeight","speak","speakAs","isolation","position","zIndex","inset","insetBlock","insetBlockStart","insetBlockEnd","insetInline","insetInlineStart","insetInlineEnd","top","right","bottom","left","zoom","transformOrigin","transformBox","transformStyle","transform","translate","rotate","scale","offsetPath","offsetDistance","offsetRotate","container","containerName","containerType","size","direction","unicodeBidi","float","clear","contain","overflow","overflowBlock","overflowInline","overflowX","overflowY","overflowClipMargin","overscrollBehavior","overscrollBehaviorInline","overscrollBehaviorBlock","overscrollBehaviorX","overscrollBehaviorY","display","tableLayout","borderSpacing","borderCollapse","emptyCells","columns","columnCount","columnWidth","columnFill","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","widows","orphans","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","flex","flexFlow","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","boxOrient","lineClamp","gap","rowGap","columnGap","placeContent","placeItems","placeSelf","alignContent","alignItems","alignSelf","justifyContent","justifyItems","justifySelf","order","breakInside","breakBefore","breakAfter","shapeOutside","shapeImageThreshold","shapeMargin","boxSizing","aspectRatio","width","inlineSize","minInlineSize","maxInlineSize","minWidth","maxWidth","height","blockSize","minBlockSize","maxBlockSize","minHeight","maxHeight","margin","marginBlock","marginBlockStart","marginBlockEnd","marginInline","marginInlineStart","marginInlineEnd","marginTop","marginRight","marginBottom","marginLeft","padding","paddingBlock","paddingBlockStart","paddingBlockEnd","paddingInline","paddingInlineStart","paddingInlineEnd","paddingTop","paddingRight","paddingBottom","paddingLeft","border","borderColor","borderStyle","borderWidth","borderBlock","borderBlockColor","borderBlockStyle","borderBlockWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderInline","borderInlineColor","borderInlineStyle","borderInlineWidth","borderInlineStart","borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth","borderInlineEnd","borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth","borderTop","borderTopColor","borderTopStyle","borderTopWidth","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderBottom","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderStartStartRadius","borderStartEndRadius","borderEndStartRadius","borderEndEndRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","cornerShape","cornerStartStartShape","cornerStartEndShape","cornerEndStartShape","cornerEndEndShape","cornerTopLeftShape","cornerTopRightShape","cornerBottomRightShape","cornerBottomLeftShape","borderImage","borderImageSource","borderImageSlice","borderImageWidth","borderImageOutset","borderImageRepeat","writingMode","font","fontFamily","fontSize","fontFeatureSettings","fontVariationSettings","fontOpticalSizing","fontWeight","fontStyle","fontDisplay","fontKerning","fontVariant","fontVariantLigatures","fontVariantCaps","fontVariantAlternates","fontVariantNumeric","fontVariantEastAsian","fontVariantPosition","fontSizeAdjust","fontStretch","fontEffect","fontEmphasize","fontEmphasizePosition","fontEmphasizeStyle","fontSmoothing","WebkitFontSmoothing","MozOsxFontSmoothing","fontSmooth","rubyPosition","lineHeight","hyphens","color","textAlign","textAlignLast","textEmphasis","textEmphasisColor","textEmphasisStyle","textEmphasisPosition","textDecoration","textDecorationColor","textDecorationLine","textDecorationStyle","textDecorationThickness","textDecorationSkipInk","textUnderlinePosition","textUnderlineOffset","textIndent","textJustify","textOutline","textOverflow","textOverflowEllipsis","textOverflowMode","textShadow","textTransform","textWrap","textSizeAdjust","textCombineUpright","textOrientation","textRendering","WebkitTextFillColor","WebkitTextStrokeColor","letterSpacing","wordBreak","wordSpacing","wordWrap","lineBreak","overflowWrap","tabSize","whiteSpace","verticalAlign","paintOrder","hangingPunctuation","listStyle","listStylePosition","listStyleType","listStyleImage","src","unicodeRange","ascentOverride","descentOverride","lineGapOverride","appearance","visibility","colorScheme","forcedColorAdjust","accentColor","perspective","perspectiveOrigin","backfaceVisibility","opacity","objectFit","objectPosition","imageOrientation","background","backgroundColor","backgroundImage","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundAttachment","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundClip","backgroundOrigin","backgroundSize","backgroundBlendMode","clip","clipPath","filter","backdropFilter","WebkitBoxDecorationBreak","boxDecorationBreak","outline","outlineColor","outlineStyle","outlineWidth","outlineOffset","boxShadow","mixBlendMode","caretColor","alignmentBaseline","baselineShift","dominantBaseline","textAnchor","cx","cy","d","r","rx","ry","fill","fillOpacity","fillRule","floodColor","floodOpacity","stopColor","stopOpacity","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","vectorEffect","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","imageRendering","lightingColor","markerStart","markerMid","markerEnd","mask","maskType","shapeRendering","clipRule","transition","transitionDelay","transitionTimingFunction","transitionDuration","transitionProperty","animation","animationName","animationDuration","animationPlayState","animationTimingFunction","animationFillMode","animationDelay","animationIterationCount","animationDirection","animationTimeline","timelineScope","scrollTimeline","scrollTimelineName","scrollTimelineAxis","viewTimeline","viewTimelineName","viewTimelineAxis","viewTimelineInset","viewTransitionName"],nS=Da.default=eg});var Ha=M(function($a){Object.defineProperty($a,"__esModule",{value:!0});$a.default=void 0;var tg=["composes","all","position","inset","insetBlock","insetBlockStart","insetBlockEnd","insetInline","insetInlineStart","insetInlineEnd","top","right","bottom","left","zIndex","float","clear","boxSizing","display","visibility","flex","flexGrow","flexShrink","flexBasis","flexFlow","flexDirection","flexWrap","WebkitBoxOrient","grid","gridArea","gridTemplate","gridTemplateAreas","gridTemplateRows","gridTemplateColumns","gridRow","gridRowStart","gridRowEnd","gridColumn","gridColumnStart","gridColumnEnd","gridAutoRows","gridAutoColumns","gridAutoFlow","gridGap","gridRowGap","gridColumnGap","gap","rowGap","columnGap","placeContent","placeItems","placeSelf","alignContent","alignItems","alignSelf","justifyContent","justifyItems","justifySelf","order","inlineSize","minInlineSize","maxInlineSize","width","minWidth","maxWidth","blockSize","minBlockSize","maxBlockSize","height","minHeight","maxHeight","aspectRatio","containIntrinsicInlineSize","containIntrinsicBlockSize","containIntrinsicSize","containIntrinsicWidth","containIntrinsicHeight","padding","paddingBlock","paddingBlockStart","paddingBlockEnd","paddingInline","paddingInlineStart","paddingInlineEnd","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginBlock","marginBlockStart","marginBlockEnd","marginInline","marginInlineStart","marginInlineEnd","marginTop","marginRight","marginBottom","marginLeft","contain","container","containerName","containerType","contentVisibility","overflow","overflowInline","overflowBlock","overflowX","overflowY","scrollbarGutter","WebkitOverflowScrolling","MsOverflowX","MsOverflowY","MsOverflowStyle","textOverflow","WebkitLineClamp","lineClamp","scrollBehaviour","overscrollBehavior","overscrollBehaviorInline","overscrollBehaviorBlock","overscrollBehaviorX","overscrollBehaviorY","font","fontFamily","fontSize","fontSizeAdjust","fontVariationSettings","fontStyle","fontWeight","fontOpticalSizing","fontStretch","fontFeatureSettings","fontKerning","fontVariant","fontVariantLigatures","fontVariantCaps","fontVariantAlternates","fontVariantNumeric","fontVariantEastAsian","fontVariantPosition","WebkitFontSmoothing","MozOsxFontSmoothing","fontSmooth","fontSynthesis","fontSynthesisWeight","fontSynthesisStyle","fontSynthesisSmallCaps","lineHeight","verticalAlign","alignmentBaseline","baselineShift","dominantBaseline","basePalette","overrideColors","fontPalette","color","WebkitTextFillColor","WebkitTextStroke","WebkitTextStrokeWidth","WebkitTextStrokeColor","textAlign","textAlignLast","textJustify","textIndent","textTransform","wordSpacing","letterSpacing","hyphens","hyphenateCharacter","lineBreak","wordBreak","textWrap","textWrapMode","textWrapStyle","wordWrap","overflowWrap","tabSize","whiteSpace","whiteSpaceCollapse","textEmphasis","textEmphasisColor","textEmphasisStyle","textEmphasisPosition","textDecoration","textDecorationLine","textDecorationThickness","textDecorationStyle","textDecorationColor","textDecorationSkipInk","textUnderlinePosition","textUnderlineOffset","textShadow","rubyPosition","rubyAlign","src","fontDisplay","unicodeRange","sizeAdjust","ascentOverride","descentOverride","lineGapOverride","appearance","accentColor","pointerEvents","MsTouchAction","touchAction","cursor","caretColor","zoom","resize","userSelect","WebkitUserSelect","navIndex","navUp","navRight","navDown","navLeft","outline","outlineWidth","outlineStyle","outlineColor","outlineOffset","colorScheme","forcedColorAdjust","printColorAdjust","tableLayout","emptyCells","captionSide","borderSpacing","borderCollapse","content","quotes","listStyle","listStylePosition","listStyleType","listStyleImage","counterReset","counterSet","counterIncrement","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollPadding","scrollPaddingBlock","scrollPaddingBlockStart","scrollPaddingBlockEnd","scrollPaddingInline","scrollPaddingInlineStart","scrollPaddingInlineEnd","scrollPaddingTop","scrollPaddingRight","scrollPaddingBottom","scrollPaddingLeft","scrollMargin","scrollMarginBlock","scrollMarginBlockStart","scrollMarginBlockEnd","scrollMarginInline","scrollMarginInlineStart","scrollMarginInlineEnd","scrollMarginTop","scrollMarginRight","scrollMarginBottom","scrollMarginLeft","scrollbarColor","scrollbarWidth","objectFit","objectPosition","MsInterpolationMode","imageOrientation","imageRendering","imageResolution","background","backgroundColor","backgroundImage","backgroundRepeat","backgroundAttachment","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundClip","backgroundOrigin","backgroundSize","border","borderColor","borderStyle","borderWidth","borderBlock","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderInline","borderInlineStart","borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth","borderInlineEnd","borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth","borderTop","borderTopColor","borderTopStyle","borderTopWidth","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderBottom","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderStartStartRadius","borderStartEndRadius","borderEndStartRadius","borderEndEndRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","cornerShape","cornerStartStartShape","cornerStartEndShape","cornerEndStartShape","cornerEndEndShape","cornerTopLeftShape","cornerTopRightShape","cornerBottomRightShape","cornerBottomLeftShape","borderImage","borderImageSource","borderImageSlice","borderImageWidth","borderImageOutset","borderImageRepeat","boxShadow","backgroundBlendMode","isolation","mixBlendMode","opacity","filter","backdropFilter","clip","clipPath","clipRule","maskBorder","maskBorderSource","maskBorderSlice","maskBorderWidth","maskBorderOutset","maskBorderRepeat","maskBorderMode","mask","maskImage","maskMode","maskRepeat","maskPosition","maskClip","maskOrigin","maskSize","maskComposite","maskType","shapeOutside","shapeImageThreshold","shapeMargin","direction","unicodeBidi","writingMode","textOrientation","textCombineUpright","textAnchor","fill","fillRule","fillOpacity","stroke","strokeOpacity","strokeWidth","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeDasharray","strokeDashoffset","colorInterpolation","colorInterpolationFilters","floodColor","floodOpacity","lightingColor","marker","markerStart","markerMid","markerEnd","stopColor","stopOpacity","paintOrder","shapeRendering","textRendering","transform","transformOrigin","transformBox","transformStyle","rotate","scale","translate","perspective","perspectiveOrigin","backfaceVisibility","transition","transitionDelay","transitionTimingFunction","transitionDuration","transitionProperty","viewTransitionName","viewTransitionClass","animation","animationName","animationDuration","animationTimingFunction","animationDelay","animationIterationCount","animationDirection","animationFillMode","animationPlayState","animationComposition","offset","offsetPosition","offsetPath","offsetDistance","offsetRotate","offsetAnchor","willChange","breakBefore","breakAfter","breakInside","widows","orphans"],aS=$a.default=tg});var qa=M(function(Fa){Object.defineProperty(Fa,"__esModule",{value:!0});Fa.default=og;var We=Ba(),rg=Wa(Ma()),ng=Wa(Ha());function Wa(e){return e&&e.__esModule?e:{default:e}}var jt={default:void 0,clean:rg.default,recess:ng.default};function og(e,t){let r=jt[t]?jt[t].length-1:0,o=(0,We.getAtRulePriority)(e);if(o)return{priority:r+o,type:"atRule"};let a=(0,We.getPseudoElementPriority)(e);if(a)return{priority:r+a,type:"pseudoElement"};if(e.startsWith(":when:ancestor")){let i=(0,We.getPseudoClassPriority)(e.replace(":when:ancestor",""));if(i)return{priority:r+i/100+10,type:"pseudoClass"}}else if(e.startsWith(":when:descendant")){let i=(0,We.getPseudoClassPriority)(e.replace(":when:descendant",""));if(i)return{priority:r+i/100+15,type:"pseudoClass"}}else if(e.startsWith(":when:anySibling")){let i=(0,We.getPseudoClassPriority)(e.replace(":when:anySibling",""));if(i)return{priority:r+i/100+20,type:"pseudoClass"}}else if(e.startsWith(":when:siblingBefore")){let i=(0,We.getPseudoClassPriority)(e.replace(":when:siblingBefore",""));if(i)return{priority:r+i/100+30,type:"pseudoClass"}}else if(e.startsWith(":when:siblingAfter")){let i=(0,We.getPseudoClassPriority)(e.replace(":when:siblingAfter",""));if(i)return{priority:r+i/100+40,type:"pseudoClass"}}let s=(0,We.getPseudoClassPriority)(e);if(s)return{priority:r+s,type:"pseudoClass"};if(t==="default"){let i=(0,We.getDefaultPriority)(e.replace(/[A-Z]/g,"-$&").toLowerCase());if(i)return{priority:i,type:"knownCssProperty"}}else if(jt[t]){let i=jt[t].indexOf(e);if(i!==-1)return{priority:i,type:"knownCssProperty"}}return{priority:1,type:"string"}}});var Ya=M(function(Ka){Object.defineProperty(Ka,"__esModule",{value:!0});Ka.default=void 0;var ig=Wt(nt()),Va=Wt(va()),Ua=Wt(qa()),sg=Wt(De());function Wt(e){return e&&e.__esModule?e:{default:e}}function Ht(e){return typeof e==="string"&&e.startsWith("@media")}function Ga(e,t,r,o){if(o&&Ht(e)&&Ht(t))return!0;let a=(0,Ua.default)(e,r),s=(0,Ua.default)(t,r);if(a.type!=="string"||s.type!=="string"){if(a.priority===s.priority)return e<=t;return a.priority<=s.priority}return e<=t}function lg(e,t,r,o){if(e===t)return 0;if(o&&Ht(e)&&Ht(t))return 0;return Ga(e,t,r,o)?-1:1}var ug={meta:{type:"suggestion",docs:{description:"Require style properties to be sorted by key",recommended:!1,url:"https://github.com/facebook/stylex/tree/main/packages/@stylexjs/eslint-plugin"},fixable:"code",schema:[{type:"object",properties:{validImports:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{from:{type:"string"},as:{type:"string"}}}]},default:["stylex","@stylexjs/stylex"]},order:{enum:["default","clean","recess"],default:"default"},minKeys:{type:"integer",minimum:2,default:2},allowLineSeparatedGroups:{type:"boolean",default:!1},enableMediaQueryOrder:{type:"boolean",default:!1}},additionalProperties:!1}]},create(e){let{validImports:t=["stylex","@stylexjs/stylex"],order:r="default",minKeys:o=2,allowLineSeparatedGroups:a=!1,enableMediaQueryOrder:s=!1}=e.options[0]||{},i=(0,sg.default)(t);function u(d){return d.type==="MemberExpression"&&d.object.type==="Identifier"&&i.isStylexDefaultImport(d.object.name)&&d.property.type==="Identifier"&&(d.property.name==="create"||d.property.name==="keyframes")||d.type==="Identifier"&&(i.isStylexNamedImport("create",d.name)||i.isStylexNamedImport("keyframes",d.name))}function f(d){return d&&d.type==="CallExpression"&&u(d.callee)&&d.arguments.length===1}let c=null,h=!1,y=-1;return{ImportDeclaration:i.ImportDeclaration,CallExpression(d){if(!f(d)||!d.arguments[0].properties||d.arguments[0].properties.length===0)return;h=!0},ObjectExpression(d){if(h)y++;if(y>0)c={upper:c,prevNode:null,prevName:null,prevBlankLine:!1,numKeys:d.properties.length}},"ObjectExpression:exit"(){if(h&&y>0&&c)c=c.upper;if(h)y--},SpreadElement(d){if(h&&y>0&&d.parent.type==="ObjectExpression"&&c)c.prevName=null},Property(d){if(!h||y<1||d.parent.type==="ObjectPattern"||c===null)return;let{prevName:v,numKeys:g}=c,x=(0,Va.default)(d),E=c?.prevBlankLine,T=(0,ig.default)(e),R=c?.prevNode&&T.getTokensBetween(c.prevNode,d,{includeComments:!0});if(R&&R.length>0){if(R.forEach((I,W)=>{let F=R[W-1];if(F&&I.loc&&F.loc&&I.loc.start.line-F.loc.end.line>1)E=!0}),!E&&(d.loc?.start?.line??0)-(R.at(-1)?.loc?.end.line??0)>1)E=!0;if(!E&&R[0].loc&&c?.prevNode?.loc&&R[0].loc.start.line-c?.prevNode?.loc?.end.line>1)E=!0}if(c)c.prevNode=d;if(x!==null&&c)c.prevName=x;if(a&&E&&c){c.prevBlankLine=x===null;return}if(v===null||x===null||g<o)return;if(!Ga(v,x,r,s))e.report({node:d,loc:d.key.loc,message:`StyleX property key "${x}" should be above "${v}"`,fix:dg({currNode:d,sourceCode:T,order:r,allowLineSeparatedGroups:a,enableMediaQueryOrder:s})})},"CallExpression:exit"(d){if(h&&f(d))h=!1},"Program:exit"(){i.clear()}}}};function dg({currNode:e,sourceCode:t,order:r,allowLineSeparatedGroups:o,enableMediaQueryOrder:a}){return function(g){let x=s(e);if(x.length<2)return[];let E=[...x].sort((W,F)=>{let X=lg(W.name,F.name,r,a);return X===0?x.indexOf(W)-x.indexOf(F):X});if(E.every((W,F)=>W===x[F]))return[];let T=x[0],R=x[x.length-1],I=f(x)?c(E,T.text):E.map((W)=>W.text).join(`
8
+ `);return g.replaceTextRange([T.rangeStart,R.rangeEnd],I)};function s(g){let x=g.parent;if(!x||x.type!=="ObjectExpression")return[];let E=[],T=[];for(let R of x.properties){if(R.type!=="Property"){if(T.length>0)E.push(T),T=[];continue}let I=(0,Va.default)(R);if(I===null){if(T.length>0)E.push(T),T=[];continue}let W=i(R,I);if(W===null){if(T.length>0)E.push(T),T=[];continue}if(T.length>0&&u(T[T.length-1],W))E.push(T),T=[];T.push(W)}if(T.length>0)E.push(T);return E.find((R)=>R.some((I)=>I.node===g))??[]}function i(g,x){let E=y(g),T=E.length>0?E[0]:g,{indentation:R}=v(T),I=d(g),W=t.getTokenAfter(g,{includeComments:!1}),F=W&&za(W),X=I??(F?W:g),q=T.range,N=X?.range,V=g.range;if(!q||!N||!V)return null;let J=q[0]-R.length,b=N[1],L=t.getText(),H=V[1]-J,ie=L.slice(J,b);if(!F)ie=ie.slice(0,H)+","+ie.slice(H);return{node:g,name:x,text:ie,rangeStart:J,rangeEnd:b}}function u(g,x){let E=t.getText().slice(g.rangeEnd,x.rangeStart);if(/[^ \t\r\n]/.test(E))return!0;return o&&/(?:\r?\n)[ \t]*(?:\r?\n)/.test(E)}function f(g){let x=g[0],E=g[g.length-1];return!/[\r\n]/.test(t.getText().slice(x.rangeStart,E.rangeEnd))}function c(g,x){return(x.match(/^[ \t]*/)?.[0]??"")+g.map((T)=>T.text.trimStart()).join(" ")}function h(g,x){let[E,T]=[g,x].sort((W,F)=>(W.loc?.start.line??0)-(F.loc?.start.line??0)),R=E.loc?.start.line,I=T.loc?.start.line;if(R===void 0||I===void 0)throw Error("Invalid node location");return t.lines.slice(R,I-1).filter((W)=>/^[ \t]*$/.test(W)).length}function y(g){return t.getCommentsBefore(g).filter((x)=>{let E=t.getTokenBefore(x,{includeComments:!1});if(E===null)return!0;return!Nr(E,x)&&h(g,x)===0})}function d(g){let x=t.getTokenAfter(g,{includeComments:!1});return t.getCommentsAfter(x&&za(x)?x:g).filter((T)=>Nr(g,T))[0]}function v(g){let x=t.getTokenBefore(g,{includeComments:!1}),E=!!x&&Nr(x,g),T=E&&x?.loc?x.loc.end.column:0;return{isTokenBeforeSameLineAsNode:E,indentation:g?.loc?t.lines[g.loc.start.line-1].slice(T,g.loc.start.column):""}}}function Nr(e,t){return Boolean(e.loc&&t.loc&&e.loc?.start.line===t.loc?.start.line)}function za(e){return e.type==="Punctuator"&&e.value===","}var lS=Ka.default=ug});var Za=M(function(dS,Qa){var Mr=40,$r=41,Ft=39,jr=34,Hr=92,st=47,Wr=44,Fr=58,qt=42,cg=117,fg=85,pg=43,mg=/^[a-f0-9?-]+$/i;Qa.exports=function(e){var t=[],r=e,o,a,s,i,u,f,c,h,y=0,d=r.charCodeAt(y),v=r.length,g=[{nodes:t}],x=0,E,T="",R="",I="";while(y<v)if(d<=32){o=y;do o+=1,d=r.charCodeAt(o);while(d<=32);if(i=r.slice(y,o),s=t[t.length-1],d===$r&&x)I=i;else if(s&&s.type==="div")s.after=i,s.sourceEndIndex+=i.length;else if(d===Wr||d===Fr||d===st&&r.charCodeAt(o+1)!==qt&&(!E||E&&E.type==="function"&&E.value!=="calc"))R=i;else t.push({type:"space",sourceIndex:y,sourceEndIndex:o,value:i});y=o}else if(d===Ft||d===jr){o=y,a=d===Ft?"'":'"',i={type:"string",sourceIndex:y,quote:a};do if(u=!1,o=r.indexOf(a,o+1),~o){f=o;while(r.charCodeAt(f-1)===Hr)f-=1,u=!u}else r+=a,o=r.length-1,i.unclosed=!0;while(u);i.value=r.slice(y+1,o),i.sourceEndIndex=i.unclosed?o:o+1,t.push(i),y=o+1,d=r.charCodeAt(y)}else if(d===st&&r.charCodeAt(y+1)===qt){if(o=r.indexOf("*/",y),i={type:"comment",sourceIndex:y,sourceEndIndex:o+2},o===-1)i.unclosed=!0,o=r.length,i.sourceEndIndex=o;i.value=r.slice(y+2,o),t.push(i),y=o+2,d=r.charCodeAt(y)}else if((d===st||d===qt)&&E&&E.type==="function"&&E.value==="calc")i=r[y],t.push({type:"word",sourceIndex:y-R.length,sourceEndIndex:y+i.length,value:i}),y+=1,d=r.charCodeAt(y);else if(d===st||d===Wr||d===Fr)i=r[y],t.push({type:"div",sourceIndex:y-R.length,sourceEndIndex:y+i.length,value:i,before:R,after:""}),R="",y+=1,d=r.charCodeAt(y);else if(Mr===d){o=y;do o+=1,d=r.charCodeAt(o);while(d<=32);if(h=y,i={type:"function",sourceIndex:y-T.length,value:T,before:r.slice(h+1,o)},y=o,T==="url"&&d!==Ft&&d!==jr){o-=1;do if(u=!1,o=r.indexOf(")",o+1),~o){f=o;while(r.charCodeAt(f-1)===Hr)f-=1,u=!u}else r+=")",o=r.length-1,i.unclosed=!0;while(u);c=o;do c-=1,d=r.charCodeAt(c);while(d<=32);if(h<c){if(y!==c+1)i.nodes=[{type:"word",sourceIndex:y,sourceEndIndex:c+1,value:r.slice(y,c+1)}];else i.nodes=[];if(i.unclosed&&c+1!==o)i.after="",i.nodes.push({type:"space",sourceIndex:c+1,sourceEndIndex:o,value:r.slice(c+1,o)});else i.after=r.slice(c+1,o),i.sourceEndIndex=o}else i.after="",i.nodes=[];y=o+1,i.sourceEndIndex=i.unclosed?o:y,d=r.charCodeAt(y),t.push(i)}else x+=1,i.after="",i.sourceEndIndex=y+1,t.push(i),g.push(i),t=i.nodes=[],E=i;T=""}else if($r===d&&x)y+=1,d=r.charCodeAt(y),E.after=I,E.sourceEndIndex+=I.length,I="",x-=1,g[g.length-1].sourceEndIndex=y,g.pop(),E=g[x],t=E.nodes;else{o=y;do{if(d===Hr)o+=1;o+=1,d=r.charCodeAt(o)}while(o<v&&!(d<=32||d===Ft||d===jr||d===Wr||d===Fr||d===st||d===Mr||d===qt&&E&&E.type==="function"&&E.value==="calc"||d===st&&E.type==="function"&&E.value==="calc"||d===$r&&x));if(i=r.slice(y,o),Mr===d)T=i;else if((cg===i.charCodeAt(0)||fg===i.charCodeAt(0))&&pg===i.charCodeAt(1)&&mg.test(i.slice(2)))t.push({type:"unicode-range",sourceIndex:y,sourceEndIndex:o,value:i});else t.push({type:"word",sourceIndex:y,sourceEndIndex:o,value:i});y=o}for(y=g.length-1;y;y-=1)g[y].unclosed=!0,g[y].sourceEndIndex=r.length;return g[0].nodes}});var ei=M(function(cS,Ja){Ja.exports=function e(t,r,o){var a,s,i,u;for(a=0,s=t.length;a<s;a+=1){if(i=t[a],!o)u=r(i,a,t);if(u!==!1&&i.type==="function"&&Array.isArray(i.nodes))e(i.nodes,r,o);if(o)r(i,a,t)}}});var oi=M(function(fS,ni){function ti(e,t){var{type:r,value:o}=e,a,s;if(t&&(s=t(e))!==void 0)return s;else if(r==="word"||r==="space")return o;else if(r==="string")return a=e.quote||"",a+o+(e.unclosed?"":a);else if(r==="comment")return"/*"+o+(e.unclosed?"":"*/");else if(r==="div")return(e.before||"")+o+(e.after||"");else if(Array.isArray(e.nodes)){if(a=ri(e.nodes,t),r!=="function")return a;return o+"("+(e.before||"")+a+(e.after||"")+(e.unclosed?"":")")}return o}function ri(e,t){var r,o;if(Array.isArray(e)){r="";for(o=e.length-1;~o;o-=1)r=ti(e[o],t)+r;return r}return ti(e,t)}ni.exports=ri});var ii=M(function(pS,ai){var Ut=45,zt=43,qr=46,gg=101,hg=69;function yg(e){var t=e.charCodeAt(0),r;if(t===zt||t===Ut){if(r=e.charCodeAt(1),r>=48&&r<=57)return!0;var o=e.charCodeAt(2);if(r===qr&&o>=48&&o<=57)return!0;return!1}if(t===qr){if(r=e.charCodeAt(1),r>=48&&r<=57)return!0;return!1}if(t>=48&&t<=57)return!0;return!1}ai.exports=function(e){var t=0,r=e.length,o,a,s;if(r===0||!yg(e))return!1;if(o=e.charCodeAt(t),o===zt||o===Ut)t++;while(t<r){if(o=e.charCodeAt(t),o<48||o>57)break;t+=1}if(o=e.charCodeAt(t),a=e.charCodeAt(t+1),o===qr&&a>=48&&a<=57){t+=2;while(t<r){if(o=e.charCodeAt(t),o<48||o>57)break;t+=1}}if(o=e.charCodeAt(t),a=e.charCodeAt(t+1),s=e.charCodeAt(t+2),(o===gg||o===hg)&&(a>=48&&a<=57||(a===zt||a===Ut)&&s>=48&&s<=57)){t+=a===zt||a===Ut?3:2;while(t<r){if(o=e.charCodeAt(t),o<48||o>57)break;t+=1}}return{number:e.slice(0,t),unit:e.slice(t)}}});var di=M(function(mS,ui){var bg=Za(),si=ei(),li=oi();function Ke(e){if(this instanceof Ke)return this.nodes=bg(e),this;return new Ke(e)}Ke.prototype.toString=function(){return Array.isArray(this.nodes)?li(this.nodes):""};Ke.prototype.walk=function(e,t){return si(this.nodes,e,t),this};Ke.unit=ii();Ke.walk=si;Ke.stringify=li;ui.exports=Ke});var yi=M(function(jg){class Xt extends Error{sourceStart;sourceEnd;parserState;constructor(e,t,r,o){super(e),this.name="ParseError",this.sourceStart=t,this.sourceEnd=r,this.parserState=o}}class Oe extends Xt{token;constructor(e,t,r,o,a){super(e,t,r,o),this.token=a}}var Le={UnexpectedNewLineInString:"Unexpected newline while consuming a string token.",UnexpectedEOFInString:"Unexpected EOF while consuming a string token.",UnexpectedEOFInComment:"Unexpected EOF while consuming a comment.",UnexpectedEOFInURL:"Unexpected EOF while consuming a url token.",UnexpectedEOFInEscapedCodePoint:"Unexpected EOF while consuming an escaped code point.",UnexpectedCharacterInURL:"Unexpected character while consuming a url token.",InvalidEscapeSequenceInURL:"Invalid escape sequence while consuming a url token.",InvalidEscapeSequenceAfterBackslash:'Invalid escape sequence after "\\"'},Sg=typeof globalThis<"u"&&"structuredClone"in globalThis,ut=13,Se=45,dt=10,ct=43,Xe=65533;function xg(e){return e.source.codePointAt(e.cursor)===60&&e.source.codePointAt(e.cursor+1)===33&&e.source.codePointAt(e.cursor+2)===Se&&e.source.codePointAt(e.cursor+3)===Se}function we(e){return e>=48&&e<=57}function kg(e){return e>=65&&e<=90}function vg(e){return e>=97&&e<=122}function lt(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function Eg(e){return vg(e)||kg(e)}function ft(e){return Eg(e)||Cg(e)||e===95}function Kr(e){return ft(e)||we(e)||e===Se}function Cg(e){return e===183||e===8204||e===8205||e===8255||e===8256||e===8204||(192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||(e===0||(!!pt(e)||e>=65536)))}function Gt(e){return e===dt||e===ut||e===12}function et(e){return e===32||e===dt||e===9||e===ut||e===12}function pt(e){return e>=55296&&e<=57343}function mt(e){return e.source.codePointAt(e.cursor)===92&&!Gt(e.source.codePointAt(e.cursor+1)??-1)}function Kt(e,t){return t.source.codePointAt(t.cursor)===Se?t.source.codePointAt(t.cursor+1)===Se||(!!ft(t.source.codePointAt(t.cursor+1)??-1)||t.source.codePointAt(t.cursor+1)===92&&!Gt(t.source.codePointAt(t.cursor+2)??-1)):!!ft(t.source.codePointAt(t.cursor)??-1)||mt(t)}function ci(e){return e.source.codePointAt(e.cursor)===ct||e.source.codePointAt(e.cursor)===Se?!!we(e.source.codePointAt(e.cursor+1)??-1)||e.source.codePointAt(e.cursor+1)===46&&we(e.source.codePointAt(e.cursor+2)??-1):e.source.codePointAt(e.cursor)===46?we(e.source.codePointAt(e.cursor+1)??-1):we(e.source.codePointAt(e.cursor)??-1)}function Tg(e){return e.source.codePointAt(e.cursor)===47&&e.source.codePointAt(e.cursor+1)===42}function Rg(e){return e.source.codePointAt(e.cursor)===Se&&e.source.codePointAt(e.cursor+1)===Se&&e.source.codePointAt(e.cursor+2)===62}var ae,fi,pi;function Ag(e,t){for(t.advanceCodePoint(2);;){let r=t.readCodePoint();if(r===void 0){let o=[jg.TokenType.Comment,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0];return e.onParseError(new Oe(Le.UnexpectedEOFInComment,t.representationStart,t.representationEnd,["4.3.2. Consume comments","Unexpected EOF"],o)),o}if(r===42&&(t.source.codePointAt(t.cursor)!==void 0&&t.source.codePointAt(t.cursor)===47)){t.advanceCodePoint();break}}return[jg.TokenType.Comment,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0]}function Yt(e,t){let r=t.readCodePoint();if(r===void 0)return e.onParseError(new Xt(Le.UnexpectedEOFInEscapedCodePoint,t.representationStart,t.representationEnd,["4.3.7. Consume an escaped code point","Unexpected EOF"])),Xe;if(lt(r)){let o=[r],a;for(;(a=t.source.codePointAt(t.cursor))!==void 0&&lt(a)&&o.length<6;)o.push(a),t.advanceCodePoint();et(t.source.codePointAt(t.cursor)??-1)&&(t.source.codePointAt(t.cursor)===ut&&t.source.codePointAt(t.cursor+1)===dt&&t.advanceCodePoint(),t.advanceCodePoint());let s=parseInt(String.fromCodePoint(...o),16);return s===0||pt(s)||s>1114111?Xe:s}return r===0||pt(r)?Xe:r}function Qt(e,t){let r=[];for(;;){let o=t.source.codePointAt(t.cursor)??-1;if(o===0||pt(o))r.push(Xe),t.advanceCodePoint(+(o>65535)+1);else if(Kr(o))r.push(o),t.advanceCodePoint(+(o>65535)+1);else{if(!mt(t))return r;t.advanceCodePoint(),r.push(Yt(e,t))}}}function Ig(e,t){t.advanceCodePoint();let r=t.source.codePointAt(t.cursor);if(r!==void 0&&(Kr(r)||mt(t))){let o=jg.HashType.Unrestricted;Kt(0,t)&&(o=jg.HashType.ID);let a=Qt(e,t);return[jg.TokenType.Hash,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:String.fromCodePoint(...a),type:o}]}return[jg.TokenType.Delim,"#",t.representationStart,t.representationEnd,{value:"#"}]}function _g(e,t){let r=jg.NumberType.Integer;for(t.source.codePointAt(t.cursor)!==ct&&t.source.codePointAt(t.cursor)!==Se||t.advanceCodePoint();we(t.source.codePointAt(t.cursor)??-1);)t.advanceCodePoint();if(t.source.codePointAt(t.cursor)===46&&we(t.source.codePointAt(t.cursor+1)??-1))for(t.advanceCodePoint(2),r=jg.NumberType.Number;we(t.source.codePointAt(t.cursor)??-1);)t.advanceCodePoint();if(t.source.codePointAt(t.cursor)===101||t.source.codePointAt(t.cursor)===69){if(we(t.source.codePointAt(t.cursor+1)??-1))t.advanceCodePoint(2);else{if(t.source.codePointAt(t.cursor+1)!==Se&&t.source.codePointAt(t.cursor+1)!==ct||!we(t.source.codePointAt(t.cursor+2)??-1))return r;t.advanceCodePoint(3)}for(r=jg.NumberType.Number;we(t.source.codePointAt(t.cursor)??-1);)t.advanceCodePoint()}return r}function Ur(e,t){let r;{let s=t.source.codePointAt(t.cursor);s===Se?r="-":s===ct&&(r="+")}let o=_g(0,t),a=parseFloat(t.source.slice(t.representationStart,t.representationEnd+1));if(Kt(0,t)){let s=Qt(e,t);return[jg.TokenType.Dimension,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:a,signCharacter:r,type:o,unit:String.fromCodePoint(...s)}]}return t.source.codePointAt(t.cursor)===37?(t.advanceCodePoint(),[jg.TokenType.Percentage,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:a,signCharacter:r}]):[jg.TokenType.Number,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:a,signCharacter:r,type:o}]}function wg(e){for(;et(e.source.codePointAt(e.cursor)??-1);)e.advanceCodePoint();return[jg.TokenType.Whitespace,e.source.slice(e.representationStart,e.representationEnd+1),e.representationStart,e.representationEnd,void 0]}jg.TokenType=void 0,(ae=jg.TokenType||(jg.TokenType={})).Comment="comment",ae.AtKeyword="at-keyword-token",ae.BadString="bad-string-token",ae.BadURL="bad-url-token",ae.CDC="CDC-token",ae.CDO="CDO-token",ae.Colon="colon-token",ae.Comma="comma-token",ae.Delim="delim-token",ae.Dimension="dimension-token",ae.EOF="EOF-token",ae.Function="function-token",ae.Hash="hash-token",ae.Ident="ident-token",ae.Number="number-token",ae.Percentage="percentage-token",ae.Semicolon="semicolon-token",ae.String="string-token",ae.URL="url-token",ae.Whitespace="whitespace-token",ae.OpenParen="(-token",ae.CloseParen=")-token",ae.OpenSquare="[-token",ae.CloseSquare="]-token",ae.OpenCurly="{-token",ae.CloseCurly="}-token",ae.UnicodeRange="unicode-range-token",jg.NumberType=void 0,(fi=jg.NumberType||(jg.NumberType={})).Integer="integer",fi.Number="number",jg.HashType=void 0,(pi=jg.HashType||(jg.HashType={})).Unrestricted="unrestricted",pi.ID="id";class hi{cursor=0;source="";representationStart=0;representationEnd=-1;constructor(e){this.source=e}advanceCodePoint(e=1){this.cursor=this.cursor+e,this.representationEnd=this.cursor-1}readCodePoint(){let e=this.source.codePointAt(this.cursor);if(e!==void 0)return this.cursor=this.cursor+1,this.representationEnd=this.cursor-1,e}unreadCodePoint(e=1){this.cursor=this.cursor-e,this.representationEnd=this.cursor-1}resetRepresentation(){this.representationStart=this.cursor,this.representationEnd=-1}}function Pg(e,t){let r="",o=t.readCodePoint();for(;;){let a=t.readCodePoint();if(a===void 0){let s=[jg.TokenType.String,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:r}];return e.onParseError(new Oe(Le.UnexpectedEOFInString,t.representationStart,t.representationEnd,["4.3.5. Consume a string token","Unexpected EOF"],s)),s}if(Gt(a)){t.unreadCodePoint();let s=[jg.TokenType.BadString,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0];return e.onParseError(new Oe(Le.UnexpectedNewLineInString,t.representationStart,t.source.codePointAt(t.cursor)===ut&&t.source.codePointAt(t.cursor+1)===dt?t.representationEnd+2:t.representationEnd+1,["4.3.5. Consume a string token","Unexpected newline"],s)),s}if(a===o)return[jg.TokenType.String,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:r}];if(a!==92)a===0||pt(a)?r+=String.fromCodePoint(Xe):r+=String.fromCodePoint(a);else{if(t.source.codePointAt(t.cursor)===void 0)continue;if(Gt(t.source.codePointAt(t.cursor)??-1)){t.source.codePointAt(t.cursor)===ut&&t.source.codePointAt(t.cursor+1)===dt&&t.advanceCodePoint(),t.advanceCodePoint();continue}r+=String.fromCodePoint(Yt(e,t))}}}function Og(e){return!(e.length!==3||e[0]!==117&&e[0]!==85||e[1]!==114&&e[1]!==82||e[2]!==108&&e[2]!==76)}function zr(e,t){for(;;){let r=t.source.codePointAt(t.cursor);if(r===void 0)return;if(r===41)return void t.advanceCodePoint();mt(t)?(t.advanceCodePoint(),Yt(e,t)):t.advanceCodePoint()}}function Lg(e,t){for(;et(t.source.codePointAt(t.cursor)??-1);)t.advanceCodePoint();let r="";for(;;){if(t.source.codePointAt(t.cursor)===void 0){let s=[jg.TokenType.URL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:r}];return e.onParseError(new Oe(Le.UnexpectedEOFInURL,t.representationStart,t.representationEnd,["4.3.6. Consume a url token","Unexpected EOF"],s)),s}if(t.source.codePointAt(t.cursor)===41)return t.advanceCodePoint(),[jg.TokenType.URL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:r}];if(et(t.source.codePointAt(t.cursor)??-1)){for(t.advanceCodePoint();et(t.source.codePointAt(t.cursor)??-1);)t.advanceCodePoint();if(t.source.codePointAt(t.cursor)===void 0){let s=[jg.TokenType.URL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:r}];return e.onParseError(new Oe(Le.UnexpectedEOFInURL,t.representationStart,t.representationEnd,["4.3.6. Consume a url token","Consume as much whitespace as possible","Unexpected EOF"],s)),s}return t.source.codePointAt(t.cursor)===41?(t.advanceCodePoint(),[jg.TokenType.URL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:r}]):(zr(e,t),[jg.TokenType.BadURL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0])}let a=t.source.codePointAt(t.cursor);if(a===34||a===39||a===40||((o=a??-1)===11||o===127||0<=o&&o<=8||14<=o&&o<=31)){zr(e,t);let s=[jg.TokenType.BadURL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0];return e.onParseError(new Oe(Le.UnexpectedCharacterInURL,t.representationStart,t.representationEnd,["4.3.6. Consume a url token",`Unexpected U+0022 QUOTATION MARK ("), U+0027 APOSTROPHE ('), U+0028 LEFT PARENTHESIS (() or non-printable code point`],s)),s}if(a===92){if(mt(t)){t.advanceCodePoint(),r+=String.fromCodePoint(Yt(e,t));continue}zr(e,t);let s=[jg.TokenType.BadURL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0];return e.onParseError(new Oe(Le.InvalidEscapeSequenceInURL,t.representationStart,t.representationEnd,["4.3.6. Consume a url token","U+005C REVERSE SOLIDUS (\\)","The input stream does not start with a valid escape sequence"],s)),s}t.source.codePointAt(t.cursor)===0||pt(t.source.codePointAt(t.cursor)??-1)?(r+=String.fromCodePoint(Xe),t.advanceCodePoint()):(r+=t.source[t.cursor],t.advanceCodePoint())}var o}function Vr(e,t){let r=Qt(e,t);if(t.source.codePointAt(t.cursor)!==40)return[jg.TokenType.Ident,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:String.fromCodePoint(...r)}];if(Og(r)){t.advanceCodePoint();let o=0;for(;;){let a=et(t.source.codePointAt(t.cursor)??-1),s=et(t.source.codePointAt(t.cursor+1)??-1);if(a&&s){o+=1,t.advanceCodePoint(1);continue}let i=a?t.source.codePointAt(t.cursor+1):t.source.codePointAt(t.cursor);if(i===34||i===39)return o>0&&t.unreadCodePoint(o),[jg.TokenType.Function,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:String.fromCodePoint(...r)}];break}return Lg(e,t)}return t.advanceCodePoint(),[jg.TokenType.Function,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:String.fromCodePoint(...r)}]}function Bg(e){return!(e.source.codePointAt(e.cursor)!==117&&e.source.codePointAt(e.cursor)!==85||e.source.codePointAt(e.cursor+1)!==ct||e.source.codePointAt(e.cursor+2)!==63&&!lt(e.source.codePointAt(e.cursor+2)??-1))}function Dg(e,t){t.advanceCodePoint(2);let r=[],o=[],a;for(;(a=t.source.codePointAt(t.cursor))!==void 0&&r.length<6&&lt(a);)r.push(a),t.advanceCodePoint();for(;(a=t.source.codePointAt(t.cursor))!==void 0&&r.length<6&&a===63;)o.length===0&&o.push(...r),r.push(48),o.push(70),t.advanceCodePoint();if(!o.length&&t.source.codePointAt(t.cursor)===Se&&lt(t.source.codePointAt(t.cursor+1)??-1))for(t.advanceCodePoint();(a=t.source.codePointAt(t.cursor))!==void 0&&o.length<6&&lt(a);)o.push(a),t.advanceCodePoint();if(!o.length){let u=parseInt(String.fromCodePoint(...r),16);return[jg.TokenType.UnicodeRange,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{startOfRange:u,endOfRange:u}]}let s=parseInt(String.fromCodePoint(...r),16),i=parseInt(String.fromCodePoint(...o),16);return[jg.TokenType.UnicodeRange,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{startOfRange:s,endOfRange:i}]}function mi(e,t){let r=e.css.valueOf(),o=e.unicodeRangesAllowed??!1,a=new hi(r),s={onParseError:t?.onParseError??Ng};return{nextToken:function(){a.resetRepresentation();let u=a.source.codePointAt(a.cursor);if(u===void 0)return[jg.TokenType.EOF,"",-1,-1,void 0];if(u===47&&Tg(a))return Ag(s,a);if(o&&(u===117||u===85)&&Bg(a))return Dg(0,a);if(ft(u))return Vr(s,a);if(we(u))return Ur(s,a);switch(u){case 44:return a.advanceCodePoint(),[jg.TokenType.Comma,",",a.representationStart,a.representationEnd,void 0];case 58:return a.advanceCodePoint(),[jg.TokenType.Colon,":",a.representationStart,a.representationEnd,void 0];case 59:return a.advanceCodePoint(),[jg.TokenType.Semicolon,";",a.representationStart,a.representationEnd,void 0];case 40:return a.advanceCodePoint(),[jg.TokenType.OpenParen,"(",a.representationStart,a.representationEnd,void 0];case 41:return a.advanceCodePoint(),[jg.TokenType.CloseParen,")",a.representationStart,a.representationEnd,void 0];case 91:return a.advanceCodePoint(),[jg.TokenType.OpenSquare,"[",a.representationStart,a.representationEnd,void 0];case 93:return a.advanceCodePoint(),[jg.TokenType.CloseSquare,"]",a.representationStart,a.representationEnd,void 0];case 123:return a.advanceCodePoint(),[jg.TokenType.OpenCurly,"{",a.representationStart,a.representationEnd,void 0];case 125:return a.advanceCodePoint(),[jg.TokenType.CloseCurly,"}",a.representationStart,a.representationEnd,void 0];case 39:case 34:return Pg(s,a);case 35:return Ig(s,a);case ct:case 46:return ci(a)?Ur(s,a):(a.advanceCodePoint(),[jg.TokenType.Delim,a.source[a.representationStart],a.representationStart,a.representationEnd,{value:a.source[a.representationStart]}]);case dt:case ut:case 12:case 9:case 32:return wg(a);case Se:return ci(a)?Ur(s,a):Rg(a)?(a.advanceCodePoint(3),[jg.TokenType.CDC,"-->",a.representationStart,a.representationEnd,void 0]):Kt(0,a)?Vr(s,a):(a.advanceCodePoint(),[jg.TokenType.Delim,"-",a.representationStart,a.representationEnd,{value:"-"}]);case 60:return xg(a)?(a.advanceCodePoint(4),[jg.TokenType.CDO,"<!--",a.representationStart,a.representationEnd,void 0]):(a.advanceCodePoint(),[jg.TokenType.Delim,"<",a.representationStart,a.representationEnd,{value:"<"}]);case 64:if(a.advanceCodePoint(),Kt(0,a)){let f=Qt(s,a);return[jg.TokenType.AtKeyword,a.source.slice(a.representationStart,a.representationEnd+1),a.representationStart,a.representationEnd,{value:String.fromCodePoint(...f)}]}return[jg.TokenType.Delim,"@",a.representationStart,a.representationEnd,{value:"@"}];case 92:{if(mt(a))return Vr(s,a);a.advanceCodePoint();let f=[jg.TokenType.Delim,"\\",a.representationStart,a.representationEnd,{value:"\\"}];return s.onParseError(new Oe(Le.InvalidEscapeSequenceAfterBackslash,a.representationStart,a.representationEnd,["4.3.1. Consume a token","U+005C REVERSE SOLIDUS (\\)","The input stream does not start with a valid escape sequence"],f)),f}}return a.advanceCodePoint(),[jg.TokenType.Delim,a.source[a.representationStart],a.representationStart,a.representationEnd,{value:a.source[a.representationStart]}]},endOfFile:function(){return a.source.codePointAt(a.cursor)===void 0}}}function Ng(){}function gi(e){let t=0;if(e[0]===0)e.splice(0,1,Xe),t=1;else if(e[0]===Se&&e[1]===Se)t=2;else if(e[0]===Se&&e[1])t=2,ft(e[1])||(t+=Gr(e,1,e[1]));else{if(e[0]===Se&&!e[1])return[92,e[0]];ft(e[0])?t=1:(t=1,t+=Gr(e,0,e[0]))}for(let r=t;r<e.length;r++)e[r]!==0?Kr(e[r])||(r+=Mg(e,r,e[r])):(e.splice(r,1,Xe),r++);return e}function Mg(e,t,r){return e.splice(t,1,92,r),1}function Gr(e,t,r){let o=r.toString(16),a=[];for(let s of o)a.push(s.codePointAt(0));return e.splice(t,1,92,...a,32),1+a.length}var $g=Object.values(jg.TokenType);jg.ParseError=Xt,jg.ParseErrorMessage=Le,jg.ParseErrorWithToken=Oe,jg.cloneTokens=function(t){return Sg?structuredClone(t):JSON.parse(JSON.stringify(t))},jg.isToken=function(t){return!!Array.isArray(t)&&(!(t.length<4)&&(!!$g.includes(t[0])&&(typeof t[1]=="string"&&(typeof t[2]=="number"&&typeof t[3]=="number"))))},jg.isTokenAtKeyword=function(t){return!!t&&t[0]===jg.TokenType.AtKeyword},jg.isTokenBadString=function(t){return!!t&&t[0]===jg.TokenType.BadString},jg.isTokenBadURL=function(t){return!!t&&t[0]===jg.TokenType.BadURL},jg.isTokenCDC=function(t){return!!t&&t[0]===jg.TokenType.CDC},jg.isTokenCDO=function(t){return!!t&&t[0]===jg.TokenType.CDO},jg.isTokenCloseCurly=function(t){return!!t&&t[0]===jg.TokenType.CloseCurly},jg.isTokenCloseParen=function(t){return!!t&&t[0]===jg.TokenType.CloseParen},jg.isTokenCloseSquare=function(t){return!!t&&t[0]===jg.TokenType.CloseSquare},jg.isTokenColon=function(t){return!!t&&t[0]===jg.TokenType.Colon},jg.isTokenComma=function(t){return!!t&&t[0]===jg.TokenType.Comma},jg.isTokenComment=function(t){return!!t&&t[0]===jg.TokenType.Comment},jg.isTokenDelim=function(t){return!!t&&t[0]===jg.TokenType.Delim},jg.isTokenDimension=function(t){return!!t&&t[0]===jg.TokenType.Dimension},jg.isTokenEOF=function(t){return!!t&&t[0]===jg.TokenType.EOF},jg.isTokenFunction=function(t){return!!t&&t[0]===jg.TokenType.Function},jg.isTokenHash=function(t){return!!t&&t[0]===jg.TokenType.Hash},jg.isTokenIdent=function(t){return!!t&&t[0]===jg.TokenType.Ident},jg.isTokenNumber=function(t){return!!t&&t[0]===jg.TokenType.Number},jg.isTokenNumeric=function(t){if(!t)return!1;switch(t[0]){case jg.TokenType.Dimension:case jg.TokenType.Number:case jg.TokenType.Percentage:return!0;default:return!1}},jg.isTokenOpenCurly=function(t){return!!t&&t[0]===jg.TokenType.OpenCurly},jg.isTokenOpenParen=function(t){return!!t&&t[0]===jg.TokenType.OpenParen},jg.isTokenOpenSquare=function(t){return!!t&&t[0]===jg.TokenType.OpenSquare},jg.isTokenPercentage=function(t){return!!t&&t[0]===jg.TokenType.Percentage},jg.isTokenSemicolon=function(t){return!!t&&t[0]===jg.TokenType.Semicolon},jg.isTokenString=function(t){return!!t&&t[0]===jg.TokenType.String},jg.isTokenURL=function(t){return!!t&&t[0]===jg.TokenType.URL},jg.isTokenUnicodeRange=function(t){return!!t&&t[0]===jg.TokenType.UnicodeRange},jg.isTokenWhiteSpaceOrComment=function(t){if(!t)return!1;switch(t[0]){case jg.TokenType.Whitespace:case jg.TokenType.Comment:return!0;default:return!1}},jg.isTokenWhitespace=function(t){return!!t&&t[0]===jg.TokenType.Whitespace},jg.mirrorVariant=function(t){switch(t[0]){case jg.TokenType.OpenParen:return[jg.TokenType.CloseParen,")",-1,-1,void 0];case jg.TokenType.CloseParen:return[jg.TokenType.OpenParen,"(",-1,-1,void 0];case jg.TokenType.OpenCurly:return[jg.TokenType.CloseCurly,"}",-1,-1,void 0];case jg.TokenType.CloseCurly:return[jg.TokenType.OpenCurly,"{",-1,-1,void 0];case jg.TokenType.OpenSquare:return[jg.TokenType.CloseSquare,"]",-1,-1,void 0];case jg.TokenType.CloseSquare:return[jg.TokenType.OpenSquare,"[",-1,-1,void 0];default:return null}},jg.mirrorVariantType=function(t){switch(t){case jg.TokenType.OpenParen:return jg.TokenType.CloseParen;case jg.TokenType.CloseParen:return jg.TokenType.OpenParen;case jg.TokenType.OpenCurly:return jg.TokenType.CloseCurly;case jg.TokenType.CloseCurly:return jg.TokenType.OpenCurly;case jg.TokenType.OpenSquare:return jg.TokenType.CloseSquare;case jg.TokenType.CloseSquare:return jg.TokenType.OpenSquare;default:return null}},jg.mutateIdent=function(t,r){let o=[];for(let s of r)o.push(s.codePointAt(0));let a=String.fromCodePoint(...gi(o));t[1]=a,t[4].value=r},jg.mutateUnit=function(t,r){let o=[];for(let f of r)o.push(f.codePointAt(0));let a=gi(o);a[0]===101&&Gr(a,0,a[0]);let s=String.fromCodePoint(...a),i=t[4].signCharacter==="+"?t[4].signCharacter:"",u=t[4].value.toString();t[1]=`${i}${u}${s}`,t[4].unit=r},jg.stringify=function(...t){let r="";for(let o=0;o<t.length;o++)r+=t[o][1];return r},jg.tokenize=function(t,r){let o=mi(t,r),a=[];for(;!o.endOfFile();)a.push(o.nextToken());return a.push(o.nextToken()),a},jg.tokenizer=mi});var Zr=M(function(Ri){Object.defineProperty(Ri,"__esModule",{value:!0});Ri.createSpecificTransformer=Ri.createDirectionalTransformer=Ri.createBlockInlineTransformer=Ri.CANNOT_FIX=void 0;Ri.isSingleToken=Bh;Ri.splitDirectionalShorthands=Qr;Ri.splitSpecificShorthands=Ti;var Hg=Wg(di()),pe=yi();function Wg(e){return e&&e.__esModule?e:{default:e}}var fe=Ri.CANNOT_FIX="CANNOT_FIX",Fg=(e)=>(t,r=!1,o=!1)=>Ti(e,t.toString(),r,typeof t==="number",o);Ri.createSpecificTransformer=Fg;var qg=(e,t,r)=>(o,a=!1,s=!1)=>{let i=Qr(o,a),[u,f=u,c=u,h=f]=i;if(i.length===1)return[[`${e}`,u]];if(i.length===2)return[[`${e}${t}`,u],[`${e}${r}`,f]];return s?[[`${e}Top`,u],[`${e}${r}End`,f],[`${e}Bottom`,c],[`${e}${r}Start`,h]]:[[`${e}Top`,u],[`${e}Right`,f],[`${e}Bottom`,c],[`${e}Left`,h]]};Ri.createDirectionalTransformer=qg;var Ug=(e,t)=>(r,o=!1)=>{let a=Qr(r,o),[s,i=s]=a;if(a.length===1)return[[`${e}${t}`,s]];return[[`${e}${t}Start`,s],[`${e}${t}End`,i]]};Ri.createBlockInlineTransformer=Ug;function ki(e){switch(e.type){case"word":case"string":return`${e.value}`;case"function":return`${e.value}(${e.nodes.map(ki).join("")})`;default:return e.value}}var ue=(e)=>e.replace(/-([a-z])/g,(t,r)=>r.toUpperCase()),zg=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]),Vg=new Set(["thin","medium","thick"]),Gg=new Set(["repeat","repeat-x","repeat-y","no-repeat","space","round"]),Kg=new Set(["scroll","fixed","local"]),Xg=new Set(["left","right","top","bottom","center"]),Yg=new Set(["normal","italic","oblique"]),Qg=new Set(["normal","small-caps"]),Zg=new Set(["normal","bold","bolder","lighter"]),Jg=new Set(["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large","smaller","larger"]),eh=new Set(["transparent","currentcolor"]),th=/^(?:rgb|rgba|hsl|hsla|hwb|hsb|lab|lch|oklab|oklch|color)\(/i,rh=/^(?:url|image-set|linear-gradient|radial-gradient|conic-gradient|repeating-linear-gradient|repeating-radial-gradient|repeating-conic-gradient|cross-fade|element)\(/i,vi=/^(?:calc|min|max|clamp)\(/i,Ei=/^-?(?:\d+|\d*\.\d+)(?:[a-z%]+)?$/i;function Ci(e){let t=e.match(/^(.*?)(?:\s*!important\s*)$/i);if(!t)return{value:e.trim(),important:!1};return{value:t[1].trim(),important:!0}}function O(e,t){return t?`${e}${t}`:e}function bi(e){return e.map((t)=>t[1]).join("")}function gt(e,t={}){let r=t.splitOnSlash!==!1,o=(0,pe.tokenize)({css:e}),a=[],s=[],i="",u=0,f=!1,c=!1,h=()=>{let y=i.trim();if(y!=="")a.push({text:y,tokens:s});i="",s=[]};return o.forEach((y)=>{let d=y[0],v=y[1];if(d===pe.TokenType.EOF)return;if(d===pe.TokenType.Function||d===pe.TokenType.OpenParen||d===pe.TokenType.OpenSquare||d===pe.TokenType.OpenCurly){u+=1,i+=v,s.push(y);return}if(d===pe.TokenType.CloseParen||d===pe.TokenType.CloseSquare||d===pe.TokenType.CloseCurly){u=Math.max(0,u-1),i+=v,s.push(y);return}if(d===pe.TokenType.Whitespace&&u===0){h();return}if(d===pe.TokenType.Delim&&v==="/"&&u===0){if(c=!0,r){h(),a.push({text:"/",tokens:[y]});return}}if(d===pe.TokenType.Comma&&u===0)f=!0;i+=v,s.push(y)}),h(),{parts:a,hasTopLevelComma:f,hasTopLevelSlash:c}}function nh(e){return e.length>1&&e.every((t)=>t===e[0])}function Si(e){let[t,r=t,o=t,a=r]=e;return[t,r,o,a]}var oh=new Set(["auto","none","inherit","initial","unset","revert","revert-layer"]);function Zt(e){if(/\s/.test(e))return!1;let t=e.toLowerCase();if(oh.has(t))return!1;if(/^span\b/i.test(t))return!1;if(/^-?\d+$/.test(e))return!1;return!0}function xi(e){let t=[[]];for(let r of e)if(r.text==="/")t.push([]);else t[t.length-1].push(r.text);return t.map((r)=>r.join(" ")).filter((r)=>r!=="")}function ah(e,t){if(e.length===2){let r=Zt(e[0]),o=Zt(e[1]),a=[["gridColumnStart",O(e[1],t)],["gridRowStart",O(e[0],t)]];if(r)a.push(["gridRowEnd",O(e[0],t)]);if(o)a.push(["gridColumnEnd",O(e[1],t)]);return a.sort(([s],[i])=>s.localeCompare(i))}if(e.length===3){let r=[["gridColumnStart",O(e[1],t)],["gridRowEnd",O(e[2],t)],["gridRowStart",O(e[0],t)]];if(Zt(e[1]))r.push(["gridColumnEnd",O(e[1],t)]);return r.sort(([o],[a])=>o.localeCompare(a))}if(e.length===4)return[["gridColumnEnd",O(e[3],t)],["gridColumnStart",O(e[1],t)],["gridRowEnd",O(e[2],t)],["gridRowStart",O(e[0],t)]];return[]}function ih(e){let t=e.toLowerCase();return t.startsWith("#")||th.test(t)||eh.has(t)}function sh(e){let t=e.toLowerCase();return t==="none"||rh.test(t)}function lh(e){let t=e.toLowerCase();return Xg.has(t)||Ei.test(t)||vi.test(t)||t.startsWith("var(")}function uh(e){let t=e.toLowerCase();return Vg.has(t)||Ei.test(t)||vi.test(t)}function dh(e){let t=e.toLowerCase();if(zg.has(t))return"style";if(uh(e))return"width";return"color"}function ch(e){let t=e.text.toLowerCase();if(Jg.has(t))return!0;return e.tokens.some((r)=>r[0]===pe.TokenType.Dimension||r[0]===pe.TokenType.Percentage)}function fh(e){let t=0,r=!1,o=[],a=[];e.tokens.forEach((u)=>{let f=u[0],c=u[1];if(f===pe.TokenType.Function||f===pe.TokenType.OpenParen||f===pe.TokenType.OpenSquare||f===pe.TokenType.OpenCurly)t+=1;else if(f===pe.TokenType.CloseParen||f===pe.TokenType.CloseSquare||f===pe.TokenType.CloseCurly)t=Math.max(0,t-1);if(f===pe.TokenType.Delim&&c==="/"&&t===0){r=!0;return}if(!r){o.push(u);return}a.push(u)});let s=bi(o).trim();if(!s)return null;if(!r)return{fontSize:s};let i=bi(a).trim();if(!i)return null;return{fontSize:s,lineHeight:i}}var ph={"border-top-left-radius":"borderStartStartRadius","border-top-right-radius":"borderStartEndRadius","border-bottom-left-radius":"borderEndStartRadius","border-bottom-right-radius":"borderEndEndRadius"},mh={"corner-top-left-shape":"cornerStartStartShape","corner-top-right-shape":"cornerStartEndShape","corner-bottom-left-shape":"cornerEndStartShape","corner-bottom-right-shape":"cornerEndEndShape"};function gh(e,t,r){if(!r)return t;if(e==="border-radius")return ph[t]||null;if(e==="corner-shape")return mh[t]||null;return t}function hh(e){let t=null,r=null,o=null;for(let a of e){let s=dh(a);if(s==="width"){if(t!=null)return null;t=a;continue}if(s==="style"){if(r!=null)return null;r=a;continue}if(o!=null)return null;o=a}if(!t||!r||!o)return null;return{width:t,style:r,color:o}}var yh=new Set(["auto","content","min-content","max-content","fit-content"]),bh=/^(?:calc|min|max|clamp|fit-content)\(/i,Sh=/^-?(?:\d+|\d*\.\d+)$/,xh=/^-?(?:0|0\.0+)$/;function It(e){return Sh.test(e)}function Xr(e,t={}){let r=e.toLowerCase();if(t.allowUnitlessZero&&xh.test(r))return!0;return yh.has(r)||bh.test(r)||r.startsWith("var(")||/^-?(?:\d+|\d*\.\d+)(?:[a-z%]+)$/i.test(r)}function kh(e,t){if(e.length===1){let r=e[0],o=r.toLowerCase();if(o==="auto")return[["flexGrow",O("1",t)],["flexShrink",O("1",t)],["flexBasis",O("auto",t)]];if(o==="none")return[["flexGrow",O("0",t)],["flexShrink",O("0",t)],["flexBasis",O("auto",t)]];if(o==="initial")return[["flexGrow",O("0",t)],["flexShrink",O("1",t)],["flexBasis",O("auto",t)]];if(It(r))return[["flexGrow",O(r,t)],["flexShrink",O("1",t)],["flexBasis",O("0%",t)]];if(Xr(r))return[["flexGrow",O("1",t)],["flexShrink",O("1",t)],["flexBasis",O(r,t)]];return null}if(e.length===2){let[r,o]=e;if(!It(r))return null;if(It(o))return[["flexGrow",O(r,t)],["flexShrink",O(o,t)],["flexBasis",O("0%",t)]];if(Xr(o))return[["flexGrow",O(r,t)],["flexShrink",O("1",t)],["flexBasis",O(o,t)]];return null}if(e.length===3){let[r,o,a]=e;if(!It(r)||!It(o)||!Xr(a,{allowUnitlessZero:!0}))return null;return[["flexGrow",O(r,t)],["flexShrink",O(o,t)],["flexBasis",O(a,t)]]}return null}var vh=new Set(["normal","reverse","alternate","alternate-reverse"]),Eh=new Set(["none","forwards","backwards","both"]),Ch=new Set(["running","paused"]),Th=new Set(["ease","ease-in","ease-out","ease-in-out","linear","step-start","step-end"]),Rh=/^(?:cubic-bezier|steps|linear)\(/i,Ah=/^-?(?:\d+|\d*\.\d+)(?:s|ms)$/i;function Ih(e){return Ah.test(e)}function _h(e){let t=e.toLowerCase();return Th.has(t)||Rh.test(t)}function wh(e){let t=e.toLowerCase();return t==="infinite"||/^(?:\d+|\d*\.\d+)$/.test(t)}function Ph(e,t,r){if(t)return null;let o=e.map((v)=>v.text),a=null,s=null,i=null,u=null,f=null,c=null,h=null,y=null;for(let v of o){let g=v.toLowerCase();if(Ih(v)){if(a==null){a=v;continue}if(s==null){s=v;continue}return null}if(i==null&&_h(v)){i=v;continue}if(f==null&&vh.has(g)){f=v;continue}if(c==null&&Eh.has(g)){c=v;continue}if(h==null&&Ch.has(g)){h=v;continue}if(u==null&&wh(v)){u=v;continue}if(y==null){y=v;continue}return null}let d=[];if(a!=null)d.push(["animationDuration",O(a,r)]);if(i!=null)d.push(["animationTimingFunction",O(i,r)]);if(s!=null)d.push(["animationDelay",O(s,r)]);if(u!=null)d.push(["animationIterationCount",O(u,r)]);if(f!=null)d.push(["animationDirection",O(f,r)]);if(y==null&&c!=null&&c.toLowerCase()==="none")d.push(["animationName",O(c,r)]),c=null;if(c!=null)d.push(["animationFillMode",O(c,r)]);if(h!=null)d.push(["animationPlayState",O(h,r)]);if(y!=null)d.push(["animationName",O(y,r)]);if(d.length===0)return null;return d}function Yr(e,t,r){let o=hh(t);if(!o)return null;let a=ue(e);return[[`${a}Width`,O(o.width,r)],[`${a}Style`,O(o.style,r)],[`${a}Color`,O(o.color,r)]]}function Oh(e,t,r){if(t)return null;let o=!1,a=[],s=[];for(let g of e){if(g.text==="/"){if(o)return null;o=!0;continue}if(o)s.push(g.text);else a.push(g.text)}if(o&&s.length===0)return null;let i=null,u=null,f=null,c=null,h=[];for(let g of a){let x=g.toLowerCase();if(!u&&sh(g)){u=g;continue}if(!f&&Gg.has(x)){f=g;continue}if(!c&&Kg.has(x)){c=g;continue}if(!i&&ih(g)){i=g;continue}if(lh(g)){h.push(g);continue}if(!i){i=g;continue}h.push(g)}let y=h.length>0?h.join(" "):null,d=s.length>0?s.join(" "):null,v=[];if(i)v.push(["backgroundColor",O(i,r)]);if(u)v.push(["backgroundImage",O(u,r)]);if(f)v.push(["backgroundRepeat",O(f,r)]);if(c)v.push(["backgroundAttachment",O(c,r)]);if(y)v.push(["backgroundPosition",O(y,r)]);if(d)v.push(["backgroundSize",O(d,r)]);if(v.length===0)return null;return v}function Lh(e,t){if(e.length===0)return null;let r=e.findIndex(ch);if(r<0)return null;let o=e[r],a=fh(o);if(!a)return null;let{fontSize:s,lineHeight:i}=a,u=e.slice(r+1);if(u.length===0)return null;let f=u.map((v)=>v.text).join(" "),c=null,h=null,y=null;for(let v of e.slice(0,r)){let g=v.text.toLowerCase();if(Yg.has(g)){if(c!=null)return null;c=v.text;continue}if(Qg.has(g)){if(h!=null)return null;h=v.text;continue}if(Zg.has(g)||/^[1-9]00$/.test(g)||/^\d+(?:\.\d+)?$/.test(g)){if(y!=null)return null;y=v.text;continue}return null}let d=[["fontFamily",O(f,t)]];if(c)d.push(["fontStyle",O(c,t)]);if(h)d.push(["fontVariant",O(h,t)]);if(y)d.push(["fontWeight",O(y,t)]);if(d.push(["fontSize",O(s,t)]),i)d.push(["lineHeight",O(i,t)]);return d}function Ti(e,t,r=!1,o=!1,a=!1){let s=t.toString(),{value:i,important:u}=Ci(s),f=r&&u?" !important":"";if(e==="font"){let d=gt(i,{splitOnSlash:!1});if(d.parts.length<=1&&!d.hasTopLevelSlash)return[[ue(e),o?Number(s):s]];return Lh(d.parts,f)??[[ue(e),fe]]}if(e==="grid-area"){let d=gt(i),v=xi(d.parts);if(v.length===1){if(Zt(v[0]))return[["gridColumnEnd",O(v[0],f)],["gridColumnStart",O(v[0],f)],["gridRowEnd",O(v[0],f)],["gridRowStart",O(v[0],f)]];return[["gridArea",o?Number(s):s]]}let g=ah(v,f);return g.length>0?g:[["gridArea",fe]]}if(e==="flex"){let d=gt(i);if(d.hasTopLevelComma||d.hasTopLevelSlash)return[["flex",fe]];let v=d.parts.map((x)=>x.text);return kh(v,f)??[["flex",fe]]}if(e==="gap"){let d=gt(i);if(d.hasTopLevelComma||d.hasTopLevelSlash)return[["gap",fe]];let v=d.parts.map((g)=>g.text);if(v.length<=1){let g=o?Number(s):O(v[0]??s,f);return[["rowGap",g],["columnGap",g]]}if(v.length===2)return[["rowGap",O(v[0],f)],["columnGap",O(v[1],f)]];return[["gap",fe]]}let c=gt(i);if(c.parts.length<=1&&!c.hasTopLevelSlash)return[[ue(e),o?Number(s):s]];if(e==="grid-row"||e==="grid-column"||e==="grid-template"){if(!c.hasTopLevelSlash)return[[ue(e),o?Number(s):s]];let d=xi(c.parts);if(d.length===2){if(e==="grid-row")return[["gridRowEnd",O(d[1],f)],["gridRowStart",O(d[0],f)]];if(e==="grid-column")return[["gridColumnEnd",O(d[1],f)],["gridColumnStart",O(d[0],f)]];if(e==="grid-template")return[["gridTemplateColumns",O(d[1],f)],["gridTemplateRows",O(d[0],f)]]}return[[ue(e),fe]]}if(e==="background")return Oh(c.parts,c.hasTopLevelComma,f)??[[ue(e),fe]];if(e==="animation")return Ph(c.parts,c.hasTopLevelComma,f)??[[ue(e),fe]];let h=c.parts.map((d)=>d.text).filter((d)=>d!=="/");if(h.length===0)return[[ue(e),fe]];let y=nh(h);if(e==="border-width"||e==="border-style"||e==="border-color"){if(c.hasTopLevelComma||c.hasTopLevelSlash)return[[ue(e),fe]];if(h.length>4)return[[ue(e),fe]];let d=e.replace("border-","");if(y)return[[ue(e),o?Number(s):s]];let v=Si(h);if(v[0]===v[2]&&v[1]===v[3])return[[ue(`border-block-${d}`),O(v[0],f)],[ue(`border-inline-${d}`),O(v[1],f)]];let x=a?[`border-top-${d}`,`border-inline-end-${d}`,`border-bottom-${d}`,`border-inline-start-${d}`]:[`border-top-${d}`,`border-right-${d}`,`border-bottom-${d}`,`border-left-${d}`],E=[];for(let T=0;T<x.length;T+=1)E.push([ue(x[T]),O(v[T],f)]);return E}if(e==="border-radius"||e==="corner-shape"){if(c.hasTopLevelComma||c.hasTopLevelSlash)return[[ue(e),fe]];if(h.length>4)return[[ue(e),fe]];if(h.length===1||y)return[[ue(e),o?Number(s):s]];let d=Si(h),v=e==="border-radius"?["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"]:["corner-start-start-shape","corner-start-end-shape","corner-end-start-shape","corner-end-end-shape"],g=[];for(let x=0;x<v.length;x+=1){let E=gh(e,v[x],a);if(!E)return[[ue(e),fe]];g.push([ue(E),O(d[x],f)])}return g}if(e==="border"){if(c.hasTopLevelComma||c.hasTopLevelSlash)return[["border",fe]];return Yr(e,h,f)??[["border",fe]]}if(e==="border-top"||e==="border-right"||e==="border-bottom"||e==="border-left"){if(c.hasTopLevelComma||c.hasTopLevelSlash)return[[ue(e),fe]];return Yr(e,h,f)??[[ue(e),fe]]}if(e==="outline"){if(c.hasTopLevelComma||c.hasTopLevelSlash)return[[ue(e),fe]];return Yr(e,h,f)??[[ue(e),fe]]}return[[ue(e),fe]]}function Qr(e,t=!1){let r=e;if(e==null||typeof e!=="string"&&typeof e!=="number")return[e];if(typeof e==="number")r=String(e);if(Array.isArray(r))return r;if(typeof r!=="string")return[r];let a=(0,Hg.default)(r.trim()).nodes.filter((s)=>s.type!=="space"&&s.type!=="div").map(ki);if(typeof e==="number")return a.map(parseFloat);if(a.length>1&&a[a.length-1].toLowerCase()==="!important"&&t)return a.slice(0,a.length-1).map((s)=>s+" !important");if(a.length>1&&new Set(a).size===1)return[a[0]];return a}function Bh(e){let{value:t}=Ci(e),{parts:r}=gt(t);return r.length<=1}});var wi=M(function(Ii){Object.defineProperty(Ii,"__esModule",{value:!0});Ii.default=void 0;var ee=Zr(),Wh=en(nt()),Fh=en(yr()),qh=en(De());function en(e){return e&&e.__esModule?e:{default:e}}var Jr={marginStart:"marginInlineStart",marginEnd:"marginInlineEnd",marginHorizontal:"marginInline",marginVertical:"marginBlock",paddingStart:"paddingInlineStart",paddingEnd:"paddingInlineEnd",paddingHorizontal:"paddingInline",paddingVertical:"paddingBlock",gridColumnGap:"columnGap",gridRowGap:"rowGap",borderStart:"borderInlineStart",borderEnd:"borderInlineEnd"},Uh={background:(0,ee.createSpecificTransformer)("background"),font:(0,ee.createSpecificTransformer)("font"),borderColor:(0,ee.createSpecificTransformer)("border-color"),borderWidth:(0,ee.createSpecificTransformer)("border-width"),borderStyle:(0,ee.createSpecificTransformer)("border-style"),borderTop:(0,ee.createSpecificTransformer)("border-top"),borderRight:(0,ee.createSpecificTransformer)("border-right"),borderBottom:(0,ee.createSpecificTransformer)("border-bottom"),border:(0,ee.createSpecificTransformer)("border"),borderLeft:(0,ee.createSpecificTransformer)("border-left"),borderRadius:(0,ee.createSpecificTransformer)("border-radius"),cornerShape:(0,ee.createSpecificTransformer)("corner-shape"),gridArea:(0,ee.createSpecificTransformer)("grid-area"),gridColumn:(0,ee.createSpecificTransformer)("grid-column"),gridRow:(0,ee.createSpecificTransformer)("grid-row"),gridTemplate:(0,ee.createSpecificTransformer)("grid-template"),outline:(0,ee.createSpecificTransformer)("outline"),animation:(0,ee.createSpecificTransformer)("animation"),flex:(0,ee.createSpecificTransformer)("flex"),gap:(0,ee.createSpecificTransformer)("gap"),gridGap:(0,ee.createSpecificTransformer)("gap"),margin:(0,ee.createDirectionalTransformer)("margin","Block","Inline"),padding:(0,ee.createDirectionalTransformer)("padding","Block","Inline"),marginBlock:(0,ee.createBlockInlineTransformer)("margin","Block"),marginInline:(0,ee.createBlockInlineTransformer)("margin","Inline"),paddingBlock:(0,ee.createBlockInlineTransformer)("padding","Block"),paddingInline:(0,ee.createBlockInlineTransformer)("padding","Inline")},zh={meta:{type:"error",docs:{description:"Require shorthand properties to be split into individual properties",recommended:!1,url:"https://github.com/facebook/stylex/tree/main/packages/@stylexjs/eslint-plugin"},fixable:"code",schema:[{type:"object",properties:{validImports:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{from:{type:"string"},as:{type:"string"}}}]},default:["stylex","@stylexjs/stylex"]},allowImportant:{type:"boolean",default:!1},preferInline:{type:"boolean",default:!1}},additionalProperties:!1}]},create(e){let t=e.options[0]||{},{validImports:r=["stylex","@stylexjs/stylex"]}=t,o=t.allowImportant||!1,a=t.preferInline||!1,s=(0,qh.default)(r);function i(c){return c.type==="MemberExpression"&&c.object.type==="Identifier"&&s.isStylexDefaultImport(c.object.name)&&c.property.type==="Identifier"&&c.property.name==="create"||c.type==="Identifier"&&s.isStylexNamedImport("create",c.name)}function u(c){for(let h of c.properties){if(h.type==="SpreadElement")continue;if(h.value.type==="ObjectExpression")u(h.value);else f(h)}}function f(c){if(c.computed)return;let h;if(c.key.type==="Identifier")h=c.key.name;else if(c.key.type==="Literal")h=c.key.value;if(typeof h==="string"&&Jr[h]!=null)e.report({node:c,message:`Use "${Jr[h]}" instead of legacy formats like "${h}" to adhere to logical property naming.`,fix:(x)=>x.replaceText(c.key,Jr[h])});if(typeof h!=="string")return;let y=Uh[h];if(typeof h!=="string"||c.value.value===null||y==null)return;let d=c.value.value;if(typeof d!=="string"&&typeof d!=="number")return;if(h==="flex"&&(0,ee.isSingleToken)(String(d)))return;let v=y(d,o,a),g=v.length===1&&v[0]?.[1]===ee.CANNOT_FIX;if(!v||v.length===1&&v[0][0]===h&&(v[0][1]===c.value.value||v[0][1]===c.value?.value?.toString()||v[0][1]===parseInt(c.value?.value,10))&&!g)return;if(h==="gap"&&v.length===2&&v.every(([,x])=>x===c.value.value||x===Number(c.value.value)))return;e.report({node:c,message:`Property shorthands using multiple values like "${h}: ${String(c.value.value)}" are not supported in StyleX. Separate into individual properties.`,data:{property:h},fix:!g?(x)=>{let E=(0,Wh.default)(e),R=`
9
+ ${(0,Fh.default)(E,c)}`,I=v.map(([W,F],X)=>`${X>0?R:""}${W}: ${typeof F==="string"?`'${F}'`:F}`).join(",");return x.replaceText(c,I)}:null})}return{ImportDeclaration:s.ImportDeclaration,CallExpression(c){if(!i(c.callee))return;let y=c.arguments[0];if(y.type!=="ObjectExpression")return;for(let d of y.properties){if(d.type!=="Property")continue;if(d.value.type==="ObjectExpression")u(d.value)}},"Program:exit"(){s.clear()}}}},ox=Ii.default=zh});var Oi=M(function(Pi){Object.defineProperty(Pi,"__esModule",{value:!0});Pi.default=Vh;function Vh(e){return!e.trim()}});var Jt=M(function(Kh){Kh.isInteger=(e)=>{if(typeof e==="number")return Number.isInteger(e);if(typeof e==="string"&&e.trim()!=="")return Number.isInteger(Number(e));return!1};Kh.find=(e,t)=>e.nodes.find((r)=>r.type===t);Kh.exceedsLimit=(e,t,r=1,o)=>{if(o===!1)return!1;if(!Kh.isInteger(e)||!Kh.isInteger(t))return!1;return(Number(t)-Number(e))/Number(r)>=o};Kh.escapeNode=(e,t=0,r)=>{let o=e.nodes[t];if(!o)return;if(r&&o.type===r||o.type==="open"||o.type==="close"){if(o.escaped!==!0)o.value="\\"+o.value,o.escaped=!0}};Kh.encloseBrace=(e)=>{if(e.type!=="brace")return!1;if(e.commas>>0+e.ranges>>0===0)return e.invalid=!0,!0;return!1};Kh.isInvalidBrace=(e)=>{if(e.type!=="brace")return!1;if(e.invalid===!0||e.dollar)return!0;if(e.commas>>0+e.ranges>>0===0)return e.invalid=!0,!0;if(e.open!==!0||e.close!==!0)return e.invalid=!0,!0;return!1};Kh.isOpenOrClose=(e)=>{if(e.type==="open"||e.type==="close")return!0;return e.open===!0||e.close===!0};Kh.reduce=(e)=>e.reduce((t,r)=>{if(r.type==="text")t.push(r.value);if(r.type==="range")r.type="text";return t},[]);Kh.flatten=(...e)=>{let t=[],r=(o)=>{for(let a=0;a<o.length;a++){let s=o[a];if(Array.isArray(s)){r(s);continue}if(s!==void 0)t.push(s)}return t};return r(e),t}});var er=M(function(lx,Bi){var Li=Jt();Bi.exports=(e,t={})=>{let r=(o,a={})=>{let s=t.escapeInvalid&&Li.isInvalidBrace(a),i=o.invalid===!0&&t.escapeInvalid===!0,u="";if(o.value){if((s||i)&&Li.isOpenOrClose(o))return"\\"+o.value;return o.value}if(o.value)return o.value;if(o.nodes)for(let f of o.nodes)u+=r(f);return u};return r(e)}});var Ni=M(function(ux,Di){/*!
10
+ * is-number <https://github.com/jonschlinkert/is-number>
11
+ *
12
+ * Copyright (c) 2014-present, Jon Schlinkert.
13
+ * Released under the MIT License.
14
+ */Di.exports=function(e){if(typeof e==="number")return e-e===0;if(typeof e==="string"&&e.trim()!=="")return Number.isFinite?Number.isFinite(+e):isFinite(+e);return!1}});var zi=M(function(dx,Ui){/*!
15
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
16
+ *
17
+ * Copyright (c) 2015-present, Jon Schlinkert.
18
+ * Released under the MIT License.
19
+ */var Mi=Ni(),tt=(e,t,r)=>{if(Mi(e)===!1)throw TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Mi(t)===!1)throw TypeError("toRegexRange: expected the second argument to be a number.");let o={relaxZeros:!0,...r};if(typeof o.strictZeros==="boolean")o.relaxZeros=o.strictZeros===!1;let a=String(o.relaxZeros),s=String(o.shorthand),i=String(o.capture),u=String(o.wrap),f=e+":"+t+"="+a+s+i+u;if(tt.cache.hasOwnProperty(f))return tt.cache[f].result;let c=Math.min(e,t),h=Math.max(e,t);if(Math.abs(c-h)===1){let x=e+"|"+t;if(o.capture)return`(${x})`;if(o.wrap===!1)return x;return`(?:${x})`}let y=qi(e)||qi(t),d={min:e,max:t,a:c,b:h},v=[],g=[];if(y)d.isPadded=y,d.maxLen=String(d.max).length;if(c<0){let x=h<0?Math.abs(h):1;g=$i(x,Math.abs(c),d,o),c=d.a=0}if(h>=0)v=$i(c,h,d,o);if(d.negatives=g,d.positives=v,d.result=ny(g,v,o),o.capture===!0)d.result=`(${d.result})`;else if(o.wrap!==!1&&v.length+g.length>1)d.result=`(?:${d.result})`;return tt.cache[f]=d,d.result};function ny(e,t,r){let o=rn(e,t,"-",!1,r)||[],a=rn(t,e,"",!1,r)||[],s=rn(e,t,"-?",!0,r)||[];return o.concat(s).concat(a).join("|")}function oy(e,t){let r=1,o=1,a=Hi(e,r),s=new Set([t]);while(e<=a&&a<=t)s.add(a),r+=1,a=Hi(e,r);a=Wi(t+1,o)-1;while(e<a&&a<=t)s.add(a),o+=1,a=Wi(t+1,o)-1;return s=[...s],s.sort(sy),s}function ay(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let o=iy(e,t),a=o.length,s="",i=0;for(let u=0;u<a;u++){let[f,c]=o[u];if(f===c)s+=f;else if(f!=="0"||c!=="9")s+=ly(f,c,r);else i++}if(i)s+=r.shorthand===!0?"\\d":"[0-9]";return{pattern:s,count:[i],digits:a}}function $i(e,t,r,o){let a=oy(e,t),s=[],i=e,u;for(let f=0;f<a.length;f++){let c=a[f],h=ay(String(i),String(c),o),y="";if(!r.isPadded&&u&&u.pattern===h.pattern){if(u.count.length>1)u.count.pop();u.count.push(h.count[0]),u.string=u.pattern+Fi(u.count),i=c+1;continue}if(r.isPadded)y=uy(c,r,o);h.string=y+h.pattern+Fi(h.count),s.push(h),i=c+1,u=h}return s}function rn(e,t,r,o,a){let s=[];for(let i of e){let{string:u}=i;if(!o&&!ji(t,"string",u))s.push(r+u);if(o&&ji(t,"string",u))s.push(r+u)}return s}function iy(e,t){let r=[];for(let o=0;o<e.length;o++)r.push([e[o],t[o]]);return r}function sy(e,t){return e>t?1:t>e?-1:0}function ji(e,t,r){return e.some((o)=>o[t]===r)}function Hi(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Wi(e,t){return e-e%Math.pow(10,t)}function Fi(e){let[t=0,r=""]=e;if(r||t>1)return`{${t+(r?","+r:"")}}`;return""}function ly(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function qi(e){return/^-?(0+)\d/.test(e)}function uy(e,t,r){if(!t.isPadded)return e;let o=Math.abs(t.maxLen-String(e).length),a=r.relaxZeros!==!1;switch(o){case 0:return"";case 1:return a?"0?":"0";case 2:return a?"0{0,2}":"00";default:return a?`0{0,${o}}`:`0{${o}}`}}tt.cache={};tt.clearCache=()=>tt.cache={};Ui.exports=tt});var an=M(function(cx,Zi){/*!
20
+ * fill-range <https://github.com/jonschlinkert/fill-range>
21
+ *
22
+ * Copyright (c) 2014-present, Jon Schlinkert.
23
+ * Licensed under the MIT License.
24
+ */var dy=St("util"),Gi=zi(),Vi=(e)=>e!==null&&typeof e==="object"&&!Array.isArray(e),cy=(e)=>(t)=>e===!0?Number(t):String(t),nn=(e)=>typeof e==="number"||typeof e==="string"&&e!=="",_t=(e)=>Number.isInteger(+e),on=(e)=>{let t=`${e}`,r=-1;if(t[0]==="-")t=t.slice(1);if(t==="0")return!1;while(t[++r]==="0");return r>0},fy=(e,t,r)=>{if(typeof e==="string"||typeof t==="string")return!0;return r.stringify===!0},py=(e,t,r)=>{if(t>0){let o=e[0]==="-"?"-":"";if(o)e=e.slice(1);e=o+e.padStart(o?t-1:t,"0")}if(r===!1)return String(e);return e},rr=(e,t)=>{let r=e[0]==="-"?"-":"";if(r)e=e.slice(1),t--;while(e.length<t)e="0"+e;return r?"-"+e:e},my=(e,t,r)=>{e.negatives.sort((u,f)=>u<f?-1:u>f?1:0),e.positives.sort((u,f)=>u<f?-1:u>f?1:0);let o=t.capture?"":"?:",a="",s="",i;if(e.positives.length)a=e.positives.map((u)=>rr(String(u),r)).join("|");if(e.negatives.length)s=`-(${o}${e.negatives.map((u)=>rr(String(u),r)).join("|")})`;if(a&&s)i=`${a}|${s}`;else i=a||s;if(t.wrap)return`(${o}${i})`;return i},Ki=(e,t,r,o)=>{if(r)return Gi(e,t,{wrap:!1,...o});let a=String.fromCharCode(e);if(e===t)return a;let s=String.fromCharCode(t);return`[${a}-${s}]`},Xi=(e,t,r)=>{if(Array.isArray(e)){let o=r.wrap===!0,a=r.capture?"":"?:";return o?`(${a}${e.join("|")})`:e.join("|")}return Gi(e,t,r)},Yi=(...e)=>RangeError("Invalid range arguments: "+dy.inspect(...e)),Qi=(e,t,r)=>{if(r.strictRanges===!0)throw Yi([e,t]);return[]},gy=(e,t)=>{if(t.strictRanges===!0)throw TypeError(`Expected step "${e}" to be a number`);return[]},hy=(e,t,r=1,o={})=>{let a=Number(e),s=Number(t);if(!Number.isInteger(a)||!Number.isInteger(s)){if(o.strictRanges===!0)throw Yi([e,t]);return[]}if(a===0)a=0;if(s===0)s=0;let i=a>s,u=String(e),f=String(t),c=String(r);r=Math.max(Math.abs(r),1);let h=on(u)||on(f)||on(c),y=h?Math.max(u.length,f.length,c.length):0,d=h===!1&&fy(e,t,o)===!1,v=o.transform||cy(d);if(o.toRegex&&r===1)return Ki(rr(e,y),rr(t,y),!0,o);let g={negatives:[],positives:[]},x=(R)=>g[R<0?"negatives":"positives"].push(Math.abs(R)),E=[],T=0;while(i?a>=s:a<=s){if(o.toRegex===!0&&r>1)x(a);else E.push(py(v(a,T),y,d));a=i?a-r:a+r,T++}if(o.toRegex===!0)return r>1?my(g,o,y):Xi(E,null,{wrap:!1,...o});return E},yy=(e,t,r=1,o={})=>{if(!_t(e)&&e.length>1||!_t(t)&&t.length>1)return Qi(e,t,o);let a=o.transform||((d)=>String.fromCharCode(d)),s=`${e}`.charCodeAt(0),i=`${t}`.charCodeAt(0),u=s>i,f=Math.min(s,i),c=Math.max(s,i);if(o.toRegex&&r===1)return Ki(f,c,!1,o);let h=[],y=0;while(u?s>=i:s<=i)h.push(a(s,y)),s=u?s-r:s+r,y++;if(o.toRegex===!0)return Xi(h,null,{wrap:!1,options:o});return h},tr=(e,t,r,o={})=>{if(t==null&&nn(e))return[e];if(!nn(e)||!nn(t))return Qi(e,t,o);if(typeof r==="function")return tr(e,t,1,{transform:r});if(Vi(r))return tr(e,t,0,r);let a={...o};if(a.capture===!0)a.wrap=!0;if(r=r||a.step||1,!_t(r)){if(r!=null&&!Vi(r))return gy(r,a);return tr(e,t,1,r)}if(_t(e)&&_t(t))return hy(e,t,r,a);return yy(e,t,Math.max(Math.abs(r),1),a)};Zi.exports=tr});var ts=M(function(fx,es){var by=an(),Ji=Jt(),Sy=(e,t={})=>{let r=(o,a={})=>{let s=Ji.isInvalidBrace(a),i=o.invalid===!0&&t.escapeInvalid===!0,u=s===!0||i===!0,f=t.escapeInvalid===!0?"\\":"",c="";if(o.isOpen===!0)return f+o.value;if(o.isClose===!0)return console.log("node.isClose",f,o.value),f+o.value;if(o.type==="open")return u?f+o.value:"(";if(o.type==="close")return u?f+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":u?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let h=Ji.reduce(o.nodes),y=by(...h,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(y.length!==0)return h.length>1&&y.length>1?`(${y})`:y}if(o.nodes)for(let h of o.nodes)c+=r(h,o);return c};return r(e)};es.exports=Sy});var os=M(function(px,ns){var xy=an(),rs=er(),ht=Jt(),rt=(e="",t="",r=!1)=>{let o=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?ht.flatten(t).map((a)=>`{${a}}`):t;for(let a of e)if(Array.isArray(a))for(let s of a)o.push(rt(s,t,r));else for(let s of t){if(r===!0&&typeof s==="string")s=`{${s}}`;o.push(Array.isArray(s)?rt(a,s,r):a+s)}return ht.flatten(o)},ky=(e,t={})=>{let r=t.rangeLimit===void 0?1000:t.rangeLimit,o=(a,s={})=>{a.queue=[];let i=s,u=s.queue;while(i.type!=="brace"&&i.type!=="root"&&i.parent)i=i.parent,u=i.queue;if(a.invalid||a.dollar){u.push(rt(u.pop(),rs(a,t)));return}if(a.type==="brace"&&a.invalid!==!0&&a.nodes.length===2){u.push(rt(u.pop(),["{}"]));return}if(a.nodes&&a.ranges>0){let y=ht.reduce(a.nodes);if(ht.exceedsLimit(...y,t.step,r))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=xy(...y,t);if(d.length===0)d=rs(a,t);u.push(rt(u.pop(),d)),a.nodes=[];return}let f=ht.encloseBrace(a),c=a.queue,h=a;while(h.type!=="brace"&&h.type!=="root"&&h.parent)h=h.parent,c=h.queue;for(let y=0;y<a.nodes.length;y++){let d=a.nodes[y];if(d.type==="comma"&&a.type==="brace"){if(y===1)c.push("");c.push("");continue}if(d.type==="close"){u.push(rt(u.pop(),c,f));continue}if(d.value&&d.type!=="open"){c.push(rt(c.pop(),d.value));continue}if(d.nodes)o(d,a)}return c};return ht.flatten(o(e))};ns.exports=ky});var is=M(function(mx,as){as.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
25
+ `,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var cs=M(function(gx,ds){var vy=er(),{MAX_LENGTH:ss,CHAR_BACKSLASH:sn,CHAR_BACKTICK:Ey,CHAR_COMMA:Cy,CHAR_DOT:Ty,CHAR_LEFT_PARENTHESES:Ry,CHAR_RIGHT_PARENTHESES:Ay,CHAR_LEFT_CURLY_BRACE:Iy,CHAR_RIGHT_CURLY_BRACE:_y,CHAR_LEFT_SQUARE_BRACKET:ls,CHAR_RIGHT_SQUARE_BRACKET:us,CHAR_DOUBLE_QUOTE:wy,CHAR_SINGLE_QUOTE:Py,CHAR_NO_BREAK_SPACE:Oy,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Ly}=is(),By=(e,t={})=>{if(typeof e!=="string")throw TypeError("Expected a string");let r=t||{},o=typeof r.maxLength==="number"?Math.min(ss,r.maxLength):ss;if(e.length>o)throw SyntaxError(`Input length (${e.length}), exceeds max characters (${o})`);let a={type:"root",input:e,nodes:[]},s=[a],i=a,u=a,f=0,c=e.length,h=0,y=0,d,v=()=>e[h++],g=(x)=>{if(x.type==="text"&&u.type==="dot")u.type="text";if(u&&u.type==="text"&&x.type==="text"){u.value+=x.value;return}return i.nodes.push(x),x.parent=i,x.prev=u,u=x,x};g({type:"bos"});while(h<c){if(i=s[s.length-1],d=v(),d===Ly||d===Oy)continue;if(d===sn){g({type:"text",value:(t.keepEscaping?d:"")+v()});continue}if(d===us){g({type:"text",value:"\\"+d});continue}if(d===ls){f++;let x;while(h<c&&(x=v())){if(d+=x,x===ls){f++;continue}if(x===sn){d+=v();continue}if(x===us){if(f--,f===0)break}}g({type:"text",value:d});continue}if(d===Ry){i=g({type:"paren",nodes:[]}),s.push(i),g({type:"text",value:d});continue}if(d===Ay){if(i.type!=="paren"){g({type:"text",value:d});continue}i=s.pop(),g({type:"text",value:d}),i=s[s.length-1];continue}if(d===wy||d===Py||d===Ey){let x=d,E;if(t.keepQuotes!==!0)d="";while(h<c&&(E=v())){if(E===sn){d+=E+v();continue}if(E===x){if(t.keepQuotes===!0)d+=E;break}d+=E}g({type:"text",value:d});continue}if(d===Iy){y++;let E={type:"brace",open:!0,close:!1,dollar:u.value&&u.value.slice(-1)==="$"||i.dollar===!0,depth:y,commas:0,ranges:0,nodes:[]};i=g(E),s.push(i),g({type:"open",value:d});continue}if(d===_y){if(i.type!=="brace"){g({type:"text",value:d});continue}let x="close";i=s.pop(),i.close=!0,g({type:x,value:d}),y--,i=s[s.length-1];continue}if(d===Cy&&y>0){if(i.ranges>0){i.ranges=0;let x=i.nodes.shift();i.nodes=[x,{type:"text",value:vy(i)}]}g({type:"comma",value:d}),i.commas++;continue}if(d===Ty&&y>0&&i.commas===0){let x=i.nodes;if(y===0||x.length===0){g({type:"text",value:d});continue}if(u.type==="dot"){if(i.range=[],u.value+=d,u.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,u.type="text";continue}i.ranges++,i.args=[];continue}if(u.type==="range"){x.pop();let E=x[x.length-1];E.value+=u.value+d,u=E,i.ranges--;continue}g({type:"dot",value:d});continue}g({type:"text",value:d})}do if(i=s.pop(),i.type!=="root"){i.nodes.forEach((T)=>{if(!T.nodes){if(T.type==="open")T.isOpen=!0;if(T.type==="close")T.isClose=!0;if(!T.nodes)T.type="text";T.invalid=!0}});let x=s[s.length-1],E=x.nodes.indexOf(i);x.nodes.splice(E,1,...i.nodes)}while(s.length>0);return g({type:"eos"}),a};ds.exports=By});var ms=M(function(hx,ps){var fs=er(),Dy=ts(),Ny=os(),My=cs(),Re=(e,t={})=>{let r=[];if(Array.isArray(e))for(let o of e){let a=Re.create(o,t);if(Array.isArray(a))r.push(...a);else r.push(a)}else r=[].concat(Re.create(e,t));if(t&&t.expand===!0&&t.nodupes===!0)r=[...new Set(r)];return r};Re.parse=(e,t={})=>My(e,t);Re.stringify=(e,t={})=>{if(typeof e==="string")return fs(Re.parse(e,t),t);return fs(e,t)};Re.compile=(e,t={})=>{if(typeof e==="string")e=Re.parse(e,t);return Dy(e,t)};Re.expand=(e,t={})=>{if(typeof e==="string")e=Re.parse(e,t);let r=Ny(e,t);if(t.noempty===!0)r=r.filter(Boolean);if(t.nodupes===!0)r=[...new Set(r)];return r};Re.create=(e,t={})=>{if(e===""||e.length<3)return[e];return t.expand!==!0?Re.compile(e,t):Re.expand(e,t)};ps.exports=Re});var wt=M(function(yx,hs){var $y=St("path"),gs={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},jy={...gs,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"},Hy={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};hs.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:Hy,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:$y.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?jy:gs}}});var Pt=M(function(Gy){var Wy=St("path"),Fy=process.platform==="win32",{REGEX_BACKSLASH:qy,REGEX_REMOVE_BACKSLASH:Uy,REGEX_SPECIAL_CHARS:zy,REGEX_SPECIAL_CHARS_GLOBAL:Vy}=wt();Gy.isObject=(e)=>e!==null&&typeof e==="object"&&!Array.isArray(e);Gy.hasRegexChars=(e)=>zy.test(e);Gy.isRegexChar=(e)=>e.length===1&&Gy.hasRegexChars(e);Gy.escapeRegex=(e)=>e.replace(Vy,"\\$1");Gy.toPosixSlashes=(e)=>e.replace(qy,"/");Gy.removeBackslashes=(e)=>e.replace(Uy,(t)=>t==="\\"?"":t);Gy.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10)return!0;return!1};Gy.isWindows=(e)=>{if(e&&typeof e.windows==="boolean")return e.windows;return Fy===!0||Wy.sep==="\\"};Gy.escapeLast=(e,t,r)=>{let o=e.lastIndexOf(t,r);if(o===-1)return e;if(e[o-1]==="\\")return Gy.escapeLast(e,t,o-1);return`${e.slice(0,o)}\\${e.slice(o)}`};Gy.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./"))r=r.slice(2),t.prefix="./";return r};Gy.wrapOutput=(e,t={},r={})=>{let o=r.contains?"":"^",a=r.contains?"":"$",s=`${o}(?:${e})${a}`;if(t.negated===!0)s=`(?:^(?!${s}).*$)`;return s}});var Rs=M(function(Sx,Ts){var Ss=Pt(),{CHAR_ASTERISK:ln,CHAR_AT:n0,CHAR_BACKWARD_SLASH:Ot,CHAR_COMMA:o0,CHAR_DOT:un,CHAR_EXCLAMATION_MARK:dn,CHAR_FORWARD_SLASH:Cs,CHAR_LEFT_CURLY_BRACE:cn,CHAR_LEFT_PARENTHESES:fn,CHAR_LEFT_SQUARE_BRACKET:a0,CHAR_PLUS:i0,CHAR_QUESTION_MARK:xs,CHAR_RIGHT_CURLY_BRACE:s0,CHAR_RIGHT_PARENTHESES:ks,CHAR_RIGHT_SQUARE_BRACKET:l0}=wt(),vs=(e)=>e===Cs||e===Ot,Es=(e)=>{if(e.isPrefix!==!0)e.depth=e.isGlobstar?1/0:1},u0=(e,t)=>{let r=t||{},o=e.length-1,a=r.parts===!0||r.scanToEnd===!0,s=[],i=[],u=[],f=e,c=-1,h=0,y=0,d=!1,v=!1,g=!1,x=!1,E=!1,T=!1,R=!1,I=!1,W=!1,F=!1,X=0,q,N,V={value:"",depth:0,isGlob:!1},J=()=>c>=o,b=()=>f.charCodeAt(c+1),L=()=>(q=N,f.charCodeAt(++c));while(c<o){N=L();let z;if(N===Ot){if(R=V.backslashes=!0,N=L(),N===cn)T=!0;continue}if(T===!0||N===cn){X++;while(J()!==!0&&(N=L())){if(N===Ot){R=V.backslashes=!0,L();continue}if(N===cn){X++;continue}if(T!==!0&&N===un&&(N=L())===un){if(d=V.isBrace=!0,g=V.isGlob=!0,F=!0,a===!0)continue;break}if(T!==!0&&N===o0){if(d=V.isBrace=!0,g=V.isGlob=!0,F=!0,a===!0)continue;break}if(N===s0){if(X--,X===0){T=!1,d=V.isBrace=!0,F=!0;break}}}if(a===!0)continue;break}if(N===Cs){if(s.push(c),i.push(V),V={value:"",depth:0,isGlob:!1},F===!0)continue;if(q===un&&c===h+1){h+=2;continue}y=c+1;continue}if(r.noext!==!0){if((N===i0||N===n0||N===ln||N===xs||N===dn)===!0&&b()===fn){if(g=V.isGlob=!0,x=V.isExtglob=!0,F=!0,N===dn&&c===h)W=!0;if(a===!0){while(J()!==!0&&(N=L())){if(N===Ot){R=V.backslashes=!0,N=L();continue}if(N===ks){g=V.isGlob=!0,F=!0;break}}continue}break}}if(N===ln){if(q===ln)E=V.isGlobstar=!0;if(g=V.isGlob=!0,F=!0,a===!0)continue;break}if(N===xs){if(g=V.isGlob=!0,F=!0,a===!0)continue;break}if(N===a0){while(J()!==!0&&(z=L())){if(z===Ot){R=V.backslashes=!0,L();continue}if(z===l0){v=V.isBracket=!0,g=V.isGlob=!0,F=!0;break}}if(a===!0)continue;break}if(r.nonegate!==!0&&N===dn&&c===h){I=V.negated=!0,h++;continue}if(r.noparen!==!0&&N===fn){if(g=V.isGlob=!0,a===!0){while(J()!==!0&&(N=L())){if(N===fn){R=V.backslashes=!0,N=L();continue}if(N===ks){F=!0;break}}continue}break}if(g===!0){if(F=!0,a===!0)continue;break}}if(r.noext===!0)x=!1,g=!1;let H=f,ie="",m="";if(h>0)ie=f.slice(0,h),f=f.slice(h),y-=h;if(H&&g===!0&&y>0)H=f.slice(0,y),m=f.slice(y);else if(g===!0)H="",m=f;else H=f;if(H&&H!==""&&H!=="/"&&H!==f){if(vs(H.charCodeAt(H.length-1)))H=H.slice(0,-1)}if(r.unescape===!0){if(m)m=Ss.removeBackslashes(m);if(H&&R===!0)H=Ss.removeBackslashes(H)}let S={prefix:ie,input:e,start:h,base:H,glob:m,isBrace:d,isBracket:v,isGlob:g,isExtglob:x,isGlobstar:E,negated:I,negatedExtglob:W};if(r.tokens===!0){if(S.maxDepth=0,!vs(N))i.push(V);S.tokens=i}if(r.parts===!0||r.tokens===!0){let z;for(let D=0;D<s.length;D++){let A=z?z+1:h,w=s[D],Q=e.slice(A,w);if(r.tokens){if(D===0&&h!==0)i[D].isPrefix=!0,i[D].value=ie;else i[D].value=Q;Es(i[D]),S.maxDepth+=i[D].depth}if(D!==0||Q!=="")u.push(Q);z=w}if(z&&z+1<e.length){let D=e.slice(z+1);if(u.push(D),r.tokens)i[i.length-1].value=D,Es(i[i.length-1]),S.maxDepth+=i[i.length-1].depth}S.slashes=s,S.parts=u}return S};Ts.exports=u0});var Ps=M(function(xx,ws){var Lt=wt(),ke=Pt(),{MAX_LENGTH:nr,POSIX_REGEX_SOURCE:d0,REGEX_NON_SPECIAL_CHARS:c0,REGEX_SPECIAL_CHARS_BACKREF:f0,REPLACEMENTS:As}=Lt,p0=(e,t)=>{if(typeof t.expandRange==="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(o){return e.map((a)=>ke.escapeRegex(a)).join("..")}return r},yt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Is=(e)=>{let t=[],r=0,o=0,a=0,s="",i=!1;for(let u of e){if(i===!0){s+=u,i=!1;continue}if(u==="\\"){s+=u,i=!0;continue}if(u==='"'){a=a===1?0:1,s+=u;continue}if(a===0){if(u==="[")r++;else if(u==="]"&&r>0)r--;else if(r===0){if(u==="(")o++;else if(u===")"&&o>0)o--;else if(u==="|"&&o===0){t.push(s),s="";continue}}}s+=u}return t.push(s),t},m0=(e)=>{let t=!1;for(let r of e){if(t===!0){t=!1;continue}if(r==="\\"){t=!0;continue}if(/[?*+@!()[\]{}]/.test(r))return!1}return!0},_s=(e)=>{let t=e.trim(),r=!0;while(r===!0)if(r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t))t=t.slice(2,-1),r=!0;if(!m0(t))return;return t.replace(/\\(.)/g,"$1")},g0=(e)=>{let t=e.map(_s).filter(Boolean);for(let r=0;r<t.length;r++)for(let o=r+1;o<t.length;o++){let a=t[r],s=t[o],i=a[0];if(!i||a!==i.repeat(a.length)||s!==i.repeat(s.length))continue;if(a===s||a.startsWith(s)||s.startsWith(a))return!0}return!1},pn=(e,t=!0)=>{if(e[0]!=="+"&&e[0]!=="*"||e[1]!=="(")return;let r=0,o=0,a=0,s=!1;for(let i=1;i<e.length;i++){let u=e[i];if(s===!0){s=!1;continue}if(u==="\\"){s=!0;continue}if(u==='"'){a=a===1?0:1;continue}if(a===1)continue;if(u==="["){r++;continue}if(u==="]"&&r>0){r--;continue}if(r>0)continue;if(u==="("){o++;continue}if(u===")"){if(o--,o===0){if(t===!0&&i!==e.length-1)return;return{type:e[0],body:e.slice(2,i),end:i}}}}},h0=(e)=>{let t=0,r=[];while(t<e.length){let a=pn(e.slice(t),!1);if(!a||a.type!=="*")return;let s=Is(a.body).map((u)=>u.trim());if(s.length!==1)return;let i=_s(s[0]);if(!i||i.length!==1)return;r.push(i),t+=a.end+1}if(r.length<1)return;return`${r.length===1?ke.escapeRegex(r[0]):`[${r.map((a)=>ke.escapeRegex(a)).join("")}]`}*`},y0=(e)=>{let t=0,r=e.trim(),o=pn(r);while(o)t++,r=o.body.trim(),o=pn(r);return t},b0=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion==="number"?t.maxExtglobRecursion:Lt.DEFAULT_MAX_EXTGLOB_RECURSION,o=Is(e).map((a)=>a.trim());if(o.length>1){if(o.some((a)=>a==="")||o.some((a)=>/^[*?]+$/.test(a))||g0(o))return{risky:!0}}for(let a of o){let s=h0(a);if(s)return{risky:!0,safeOutput:s};if(y0(a)>r)return{risky:!0}}return{risky:!1}},mn=(e,t)=>{if(typeof e!=="string")throw TypeError("Expected a string");e=As[e]||e;let r={...t},o=typeof r.maxLength==="number"?Math.min(nr,r.maxLength):nr,a=e.length;if(a>o)throw SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`);let s={type:"bos",value:"",output:r.prepend||""},i=[s],u=r.capture?"":"?:",f=ke.isWindows(t),c=Lt.globChars(f),h=Lt.extglobChars(c),{DOT_LITERAL:y,PLUS_LITERAL:d,SLASH_LITERAL:v,ONE_CHAR:g,DOTS_SLASH:x,NO_DOT:E,NO_DOT_SLASH:T,NO_DOTS_SLASH:R,QMARK:I,QMARK_NO_DOT:W,STAR:F,START_ANCHOR:X}=c,q=(P)=>`(${u}(?:(?!${X}${P.dot?x:y}).)*?)`,N=r.dot?"":E,V=r.dot?I:W,J=r.bash===!0?q(r):F;if(r.capture)J=`(${J})`;if(typeof r.noext==="boolean")r.noextglob=r.noext;let b={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=ke.removePrefix(e,b),a=e.length;let L=[],H=[],ie=[],m=s,S,z=()=>b.index===a-1,D=b.peek=(P=1)=>e[b.index+P],A=b.advance=()=>e[++b.index]||"",w=()=>e.slice(b.index+1),Q=(P="",te=0)=>{b.consumed+=P,b.index+=te},me=(P)=>{b.output+=P.output!=null?P.output:P.value,Q(P.value)},Ae=()=>{let P=1;while(D()==="!"&&(D(2)!=="("||D(3)==="?"))A(),b.start++,P++;if(P%2===0)return!1;return b.negated=!0,b.start++,!0},se=(P)=>{b[P]++,ie.push(P)},G=(P)=>{b[P]--,ie.pop()},B=(P)=>{if(m.type==="globstar"){let te=b.braces>0&&(P.type==="comma"||P.type==="brace"),_=P.extglob===!0||L.length&&(P.type==="pipe"||P.type==="paren");if(P.type!=="slash"&&P.type!=="paren"&&!te&&!_)b.output=b.output.slice(0,-m.output.length),m.type="star",m.value="*",m.output=J,b.output+=m.output}if(L.length&&P.type!=="paren")L[L.length-1].inner+=P.value;if(P.value||P.output)me(P);if(m&&m.type==="text"&&P.type==="text"){m.value+=P.value,m.output=(m.output||"")+P.value;return}P.prev=m,i.push(P),m=P},ye=(P,te)=>{let _={...h[te],conditions:1,inner:""};_.prev=m,_.parens=b.parens,_.output=b.output,_.startIndex=b.index,_.tokensIndex=i.length;let Y=(r.capture?"(":"")+_.open;se("parens"),B({type:P,value:te,output:b.output?"":g}),B({type:"paren",extglob:!0,value:A(),output:Y}),L.push(_)},Ie=(P)=>{let te=e.slice(P.startIndex,b.index+1),_=e.slice(P.startIndex+2,b.index),Y=b0(_,r);if((P.type==="plus"||P.type==="star")&&Y.risky){let ne=Y.safeOutput?(P.output?"":g)+(r.capture?`(${Y.safeOutput})`:Y.safeOutput):void 0,_e=i[P.tokensIndex];_e.type="text",_e.value=te,_e.output=ne||ke.escapeRegex(te);for(let Te=P.tokensIndex+1;Te<i.length;Te++)i[Te].value="",i[Te].output="",delete i[Te].suffix;b.output=P.output+_e.output,b.backtrack=!0,B({type:"paren",extglob:!0,value:S,output:""}),G("parens");return}let Z=P.close+(r.capture?")":""),be;if(P.type==="negate"){let ne=J;if(P.inner&&P.inner.length>1&&P.inner.includes("/"))ne=q(r);if(ne!==J||z()||/^\)+$/.test(w()))Z=P.close=`)$))${ne}`;if(P.inner.includes("*")&&(be=w())&&/^\.[^\\/.]+$/.test(be)){let _e=mn(be,{...t,fastpaths:!1}).output;Z=P.close=`)${_e})${ne})`}if(P.prev.type==="bos")b.negatedExtglob=!0}B({type:"paren",extglob:!0,value:S,output:Z}),G("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let P=!1,te=e.replace(f0,(_,Y,Z,be,ne,_e)=>{if(be==="\\")return P=!0,_;if(be==="?"){if(Y)return Y+be+(ne?I.repeat(ne.length):"");if(_e===0)return V+(ne?I.repeat(ne.length):"");return I.repeat(Z.length)}if(be===".")return y.repeat(Z.length);if(be==="*"){if(Y)return Y+be+(ne?J:"");return J}return Y?_:`\\${_}`});if(P===!0)if(r.unescape===!0)te=te.replace(/\\/g,"");else te=te.replace(/\\+/g,(_)=>_.length%2===0?"\\\\":_?"\\":"");if(te===e&&r.contains===!0)return b.output=e,b;return b.output=ke.wrapOutput(te,b,t),b}while(!z()){if(S=A(),S==="\x00")continue;if(S==="\\"){let _=D();if(_==="/"&&r.bash!==!0)continue;if(_==="."||_===";")continue;if(!_){S+="\\",B({type:"text",value:S});continue}let Y=/^\\+/.exec(w()),Z=0;if(Y&&Y[0].length>2){if(Z=Y[0].length,b.index+=Z,Z%2!==0)S+="\\"}if(r.unescape===!0)S=A();else S+=A();if(b.brackets===0){B({type:"text",value:S});continue}}if(b.brackets>0&&(S!=="]"||m.value==="["||m.value==="[^")){if(r.posix!==!1&&S===":"){let _=m.value.slice(1);if(_.includes("[")){if(m.posix=!0,_.includes(":")){let Y=m.value.lastIndexOf("["),Z=m.value.slice(0,Y),be=m.value.slice(Y+2),ne=d0[be];if(ne){if(m.value=Z+ne,b.backtrack=!0,A(),!s.output&&i.indexOf(m)===1)s.output=g;continue}}}}if(S==="["&&D()!==":"||S==="-"&&D()==="]")S=`\\${S}`;if(S==="]"&&(m.value==="["||m.value==="[^"))S=`\\${S}`;if(r.posix===!0&&S==="!"&&m.value==="[")S="^";m.value+=S,me({value:S});continue}if(b.quotes===1&&S!=='"'){S=ke.escapeRegex(S),m.value+=S,me({value:S});continue}if(S==='"'){if(b.quotes=b.quotes===1?0:1,r.keepQuotes===!0)B({type:"text",value:S});continue}if(S==="("){se("parens"),B({type:"paren",value:S});continue}if(S===")"){if(b.parens===0&&r.strictBrackets===!0)throw SyntaxError(yt("opening","("));let _=L[L.length-1];if(_&&b.parens===_.parens+1){Ie(L.pop());continue}B({type:"paren",value:S,output:b.parens?")":"\\)"}),G("parens");continue}if(S==="["){if(r.nobracket===!0||!w().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw SyntaxError(yt("closing","]"));S=`\\${S}`}else se("brackets");B({type:"bracket",value:S});continue}if(S==="]"){if(r.nobracket===!0||m&&m.type==="bracket"&&m.value.length===1){B({type:"text",value:S,output:`\\${S}`});continue}if(b.brackets===0){if(r.strictBrackets===!0)throw SyntaxError(yt("opening","["));B({type:"text",value:S,output:`\\${S}`});continue}G("brackets");let _=m.value.slice(1);if(m.posix!==!0&&_[0]==="^"&&!_.includes("/"))S=`/${S}`;if(m.value+=S,me({value:S}),r.literalBrackets===!1||ke.hasRegexChars(_))continue;let Y=ke.escapeRegex(m.value);if(b.output=b.output.slice(0,-m.value.length),r.literalBrackets===!0){b.output+=Y,m.value=Y;continue}m.value=`(${u}${Y}|${m.value})`,b.output+=m.value;continue}if(S==="{"&&r.nobrace!==!0){se("braces");let _={type:"brace",value:S,output:"(",outputIndex:b.output.length,tokensIndex:b.tokens.length};H.push(_),B(_);continue}if(S==="}"){let _=H[H.length-1];if(r.nobrace===!0||!_){B({type:"text",value:S,output:S});continue}let Y=")";if(_.dots===!0){let Z=i.slice(),be=[];for(let ne=Z.length-1;ne>=0;ne--){if(i.pop(),Z[ne].type==="brace")break;if(Z[ne].type!=="dots")be.unshift(Z[ne].value)}Y=p0(be,r),b.backtrack=!0}if(_.comma!==!0&&_.dots!==!0){let Z=b.output.slice(0,_.outputIndex),be=b.tokens.slice(_.tokensIndex);_.value=_.output="\\{",S=Y="\\}",b.output=Z;for(let ne of be)b.output+=ne.output||ne.value}B({type:"brace",value:S,output:Y}),G("braces"),H.pop();continue}if(S==="|"){if(L.length>0)L[L.length-1].conditions++;B({type:"text",value:S});continue}if(S===","){let _=S,Y=H[H.length-1];if(Y&&ie[ie.length-1]==="braces")Y.comma=!0,_="|";B({type:"comma",value:S,output:_});continue}if(S==="/"){if(m.type==="dot"&&b.index===b.start+1){b.start=b.index+1,b.consumed="",b.output="",i.pop(),m=s;continue}B({type:"slash",value:S,output:v});continue}if(S==="."){if(b.braces>0&&m.type==="dot"){if(m.value===".")m.output=y;let _=H[H.length-1];m.type="dots",m.output+=S,m.value+=S,_.dots=!0;continue}if(b.braces+b.parens===0&&m.type!=="bos"&&m.type!=="slash"){B({type:"text",value:S,output:y});continue}B({type:"dot",value:S,output:y});continue}if(S==="?"){if(!(m&&m.value==="(")&&r.noextglob!==!0&&D()==="("&&D(2)!=="?"){ye("qmark",S);continue}if(m&&m.type==="paren"){let Y=D(),Z=S;if(Y==="<"&&!ke.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(m.value==="("&&!/[!=<:]/.test(Y)||Y==="<"&&!/<([!=]|\w+>)/.test(w()))Z=`\\${S}`;B({type:"text",value:S,output:Z});continue}if(r.dot!==!0&&(m.type==="slash"||m.type==="bos")){B({type:"qmark",value:S,output:W});continue}B({type:"qmark",value:S,output:I});continue}if(S==="!"){if(r.noextglob!==!0&&D()==="("){if(D(2)!=="?"||!/[!=<:]/.test(D(3))){ye("negate",S);continue}}if(r.nonegate!==!0&&b.index===0){Ae();continue}}if(S==="+"){if(r.noextglob!==!0&&D()==="("&&D(2)!=="?"){ye("plus",S);continue}if(m&&m.value==="("||r.regex===!1){B({type:"plus",value:S,output:d});continue}if(m&&(m.type==="bracket"||m.type==="paren"||m.type==="brace")||b.parens>0){B({type:"plus",value:S});continue}B({type:"plus",value:d});continue}if(S==="@"){if(r.noextglob!==!0&&D()==="("&&D(2)!=="?"){B({type:"at",extglob:!0,value:S,output:""});continue}B({type:"text",value:S});continue}if(S!=="*"){if(S==="$"||S==="^")S=`\\${S}`;let _=c0.exec(w());if(_)S+=_[0],b.index+=_[0].length;B({type:"text",value:S});continue}if(m&&(m.type==="globstar"||m.star===!0)){m.type="star",m.star=!0,m.value+=S,m.output=J,b.backtrack=!0,b.globstar=!0,Q(S);continue}let P=w();if(r.noextglob!==!0&&/^\([^?]/.test(P)){ye("star",S);continue}if(m.type==="star"){if(r.noglobstar===!0){Q(S);continue}let _=m.prev,Y=_.prev,Z=_.type==="slash"||_.type==="bos",be=Y&&(Y.type==="star"||Y.type==="globstar");if(r.bash===!0&&(!Z||P[0]&&P[0]!=="/")){B({type:"star",value:S,output:""});continue}let ne=b.braces>0&&(_.type==="comma"||_.type==="brace"),_e=L.length&&(_.type==="pipe"||_.type==="paren");if(!Z&&_.type!=="paren"&&!ne&&!_e){B({type:"star",value:S,output:""});continue}while(P.slice(0,3)==="/**"){let Te=e[b.index+4];if(Te&&Te!=="/")break;P=P.slice(3),Q("/**",3)}if(_.type==="bos"&&z()){m.type="globstar",m.value+=S,m.output=q(r),b.output=m.output,b.globstar=!0,Q(S);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&!be&&z()){b.output=b.output.slice(0,-(_.output+m.output).length),_.output=`(?:${_.output}`,m.type="globstar",m.output=q(r)+(r.strictSlashes?")":"|$)"),m.value+=S,b.globstar=!0,b.output+=_.output+m.output,Q(S);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&P[0]==="/"){let Te=P[1]!==void 0?"|$":"";b.output=b.output.slice(0,-(_.output+m.output).length),_.output=`(?:${_.output}`,m.type="globstar",m.output=`${q(r)}${v}|${v}${Te})`,m.value+=S,b.output+=_.output+m.output,b.globstar=!0,Q(S+A()),B({type:"slash",value:"/",output:""});continue}if(_.type==="bos"&&P[0]==="/"){m.type="globstar",m.value+=S,m.output=`(?:^|${v}|${q(r)}${v})`,b.output=m.output,b.globstar=!0,Q(S+A()),B({type:"slash",value:"/",output:""});continue}b.output=b.output.slice(0,-m.output.length),m.type="globstar",m.output=q(r),m.value+=S,b.output+=m.output,b.globstar=!0,Q(S);continue}let te={type:"star",value:S,output:J};if(r.bash===!0){if(te.output=".*?",m.type==="bos"||m.type==="slash")te.output=N+te.output;B(te);continue}if(m&&(m.type==="bracket"||m.type==="paren")&&r.regex===!0){te.output=S,B(te);continue}if(b.index===b.start||m.type==="slash"||m.type==="dot"){if(m.type==="dot")b.output+=T,m.output+=T;else if(r.dot===!0)b.output+=R,m.output+=R;else b.output+=N,m.output+=N;if(D()!=="*")b.output+=g,m.output+=g}B(te)}while(b.brackets>0){if(r.strictBrackets===!0)throw SyntaxError(yt("closing","]"));b.output=ke.escapeLast(b.output,"["),G("brackets")}while(b.parens>0){if(r.strictBrackets===!0)throw SyntaxError(yt("closing",")"));b.output=ke.escapeLast(b.output,"("),G("parens")}while(b.braces>0){if(r.strictBrackets===!0)throw SyntaxError(yt("closing","}"));b.output=ke.escapeLast(b.output,"{"),G("braces")}if(r.strictSlashes!==!0&&(m.type==="star"||m.type==="bracket"))B({type:"maybe_slash",value:"",output:`${v}?`});if(b.backtrack===!0){b.output="";for(let P of b.tokens)if(b.output+=P.output!=null?P.output:P.value,P.suffix)b.output+=P.suffix}return b};mn.fastpaths=(e,t)=>{let r={...t},o=typeof r.maxLength==="number"?Math.min(nr,r.maxLength):nr,a=e.length;if(a>o)throw SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`);e=As[e]||e;let s=ke.isWindows(t),{DOT_LITERAL:i,SLASH_LITERAL:u,ONE_CHAR:f,DOTS_SLASH:c,NO_DOT:h,NO_DOTS:y,NO_DOTS_SLASH:d,STAR:v,START_ANCHOR:g}=Lt.globChars(s),x=r.dot?y:h,E=r.dot?d:h,T=r.capture?"":"?:",R={negated:!1,prefix:""},I=r.bash===!0?".*?":v;if(r.capture)I=`(${I})`;let W=(N)=>{if(N.noglobstar===!0)return I;return`(${T}(?:(?!${g}${N.dot?c:i}).)*?)`},F=(N)=>{switch(N){case"*":return`${x}${f}${I}`;case".*":return`${i}${f}${I}`;case"*.*":return`${x}${I}${i}${f}${I}`;case"*/*":return`${x}${I}${u}${f}${E}${I}`;case"**":return x+W(r);case"**/*":return`(?:${x}${W(r)}${u})?${E}${f}${I}`;case"**/*.*":return`(?:${x}${W(r)}${u})?${E}${I}${i}${f}${I}`;case"**/.*":return`(?:${x}${W(r)}${u})?${i}${f}${I}`;default:{let V=/^(.*?)\.(\w+)$/.exec(N);if(!V)return;let J=F(V[1]);if(!J)return;return J+i+V[2]}}},X=ke.removePrefix(e,R),q=F(X);if(q&&r.strictSlashes!==!0)q+=`${u}?`;return q};ws.exports=mn});var Ls=M(function(kx,Os){var S0=St("path"),x0=Rs(),gn=Ps(),hn=Pt(),k0=wt(),v0=(e)=>e&&typeof e==="object"&&!Array.isArray(e),he=(e,t,r=!1)=>{if(Array.isArray(e)){let h=e.map((d)=>he(d,t,r));return(d)=>{for(let v of h){let g=v(d);if(g)return g}return!1}}let o=v0(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!o)throw TypeError("Expected pattern to be a non-empty string");let a=t||{},s=hn.isWindows(t),i=o?he.compileRe(e,t):he.makeRe(e,t,!1,!0),u=i.state;delete i.state;let f=()=>!1;if(a.ignore){let h={...t,ignore:null,onMatch:null,onResult:null};f=he(a.ignore,h,r)}let c=(h,y=!1)=>{let{isMatch:d,match:v,output:g}=he.test(h,i,t,{glob:e,posix:s}),x={glob:e,state:u,regex:i,posix:s,input:h,output:g,match:v,isMatch:d};if(typeof a.onResult==="function")a.onResult(x);if(d===!1)return x.isMatch=!1,y?x:!1;if(f(h)){if(typeof a.onIgnore==="function")a.onIgnore(x);return x.isMatch=!1,y?x:!1}if(typeof a.onMatch==="function")a.onMatch(x);return y?x:!0};if(r)c.state=u;return c};he.test=(e,t,r,{glob:o,posix:a}={})=>{if(typeof e!=="string")throw TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},i=s.format||(a?hn.toPosixSlashes:null),u=e===o,f=u&&i?i(e):e;if(u===!1)f=i?i(e):e,u=f===o;if(u===!1||s.capture===!0)if(s.matchBase===!0||s.basename===!0)u=he.matchBase(e,t,r,a);else u=t.exec(f);return{isMatch:Boolean(u),match:u,output:f}};he.matchBase=(e,t,r,o=hn.isWindows(r))=>(t instanceof RegExp?t:he.makeRe(t,r)).test(S0.basename(e));he.isMatch=(e,t,r)=>he(t,r)(e);he.parse=(e,t)=>{if(Array.isArray(e))return e.map((r)=>he.parse(r,t));return gn(e,{...t,fastpaths:!1})};he.scan=(e,t)=>x0(e,t);he.compileRe=(e,t,r=!1,o=!1)=>{if(r===!0)return e.output;let a=t||{},s=a.contains?"":"^",i=a.contains?"":"$",u=`${s}(?:${e.output})${i}`;if(e&&e.negated===!0)u=`^(?!${u}).*$`;let f=he.toRegex(u,t);if(o===!0)f.state=e;return f};he.makeRe=(e,t={},r=!1,o=!1)=>{if(!e||typeof e!=="string")throw TypeError("Expected a non-empty string");let a={negated:!1,fastpaths:!0};if(t.fastpaths!==!1&&(e[0]==="."||e[0]==="*"))a.output=gn.fastpaths(e,t);if(!a.output)a=gn(e,t);return he.compileRe(a,t,r,o)};he.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};he.constants=k0;Os.exports=he});var js=M(function(vx,$s){var Ds=St("util"),Ns=ms(),Be=Ls(),yn=Pt(),Bs=(e)=>e===""||e==="./",Ms=(e)=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},de=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let o=new Set,a=new Set,s=new Set,i=0,u=(h)=>{if(s.add(h.output),r&&r.onResult)r.onResult(h)};for(let h=0;h<t.length;h++){let y=Be(String(t[h]),{...r,onResult:u},!0),d=y.state.negated||y.state.negatedExtglob;if(d)i++;for(let v of e){let g=y(v,!0);if(!(d?!g.isMatch:g.isMatch))continue;if(d)o.add(g.output);else o.delete(g.output),a.add(g.output)}}let c=(i===t.length?[...s]:[...a]).filter((h)=>!o.has(h));if(r&&c.length===0){if(r.failglob===!0)throw Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map((h)=>h.replace(/\\/g,"")):t}return c};de.match=de;de.matcher=(e,t)=>Be(e,t);de.isMatch=(e,t,r)=>Be(t,r)(e);de.any=de.isMatch;de.not=(e,t,r={})=>{t=[].concat(t).map(String);let o=new Set,a=[],i=new Set(de(e,t,{...r,onResult:(u)=>{if(r.onResult)r.onResult(u);a.push(u.output)}}));for(let u of a)if(!i.has(u))o.add(u);return[...o]};de.contains=(e,t,r)=>{if(typeof e!=="string")throw TypeError(`Expected a string: "${Ds.inspect(e)}"`);if(Array.isArray(t))return t.some((o)=>de.contains(e,o,r));if(typeof t==="string"){if(Bs(e)||Bs(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return de.isMatch(e,t,{...r,contains:!0})};de.matchKeys=(e,t,r)=>{if(!yn.isObject(e))throw TypeError("Expected the first argument to be an object");let o=de(Object.keys(e),t,r),a={};for(let s of o)a[s]=e[s];return a};de.some=(e,t,r)=>{let o=[].concat(e);for(let a of[].concat(t)){let s=Be(String(a),r);if(o.some((i)=>s(i)))return!0}return!1};de.every=(e,t,r)=>{let o=[].concat(e);for(let a of[].concat(t)){let s=Be(String(a),r);if(!o.every((i)=>s(i)))return!1}return!0};de.all=(e,t,r)=>{if(typeof e!=="string")throw TypeError(`Expected a string: "${Ds.inspect(e)}"`);return[].concat(t).every((o)=>Be(o,r)(e))};de.capture=(e,t,r)=>{let o=yn.isWindows(r),s=Be.makeRe(String(e),{...r,capture:!0}).exec(o?yn.toPosixSlashes(t):t);if(s)return s.slice(1).map((i)=>i===void 0?"":i)};de.makeRe=(...e)=>Be.makeRe(...e);de.scan=(...e)=>Be.scan(...e);de.parse=(e,t)=>{let r=[];for(let o of[].concat(e||[]))for(let a of Ns(String(o),t))r.push(Be.parse(a,t));return r};de.braces=(e,t)=>{if(typeof e!=="string")throw TypeError("Expected a string");if(t&&t.nobrace===!0||!Ms(e))return[e];return Ns(e,t)};de.braceExpand=(e,t)=>{if(typeof e!=="string")throw TypeError("Expected a string");return de.braces(e,{...t,expand:!0})};de.hasBraces=Ms;$s.exports=de});var Us=M(function(Fs){Object.defineProperty(Fs,"__esModule",{value:!0});Fs.default=void 0;var E0=ve(sr()),C0=ve(Oi()),bn=ve(js()),Hs=ve(kt()),or=ve(gr()),Ye=ve(Bt()),ar=ve(hr()),T0=ve(lr()),R0=ve(ur()),Sn=ve(cr()),A0=ve(Dt()),I0=ve(pr()),_0=ve(mr()),w0=ve(br()),P0=ve(nt()),Ce=Or(),bt=Zr();function ve(e){return e&&e.__esModule?e:{default:e}}var O0=(e)=>()=>({message:e}),ir={animation:"animation",font:"font",gap:"gap",gridArea:"grid-area",gridColumn:"grid-column",gridRow:"grid-row",gridTemplate:"grid-template",gridGap:"gap"},L0=new Set(["animation","font"]),B0=new Set(["border","borderTop","borderBlockStart","borderEnd","borderInlineEnd","borderRight","borderBottom","borderBlockEnd","borderStart","borderInlineStart","borderLeft"]),D0=/^[-+]?(?:\d+|\d*\.\d+)$/,N0=new Set(["rowGap","columnGap","lineHeight","fontWeight","animationIterationCount"]),M0=(e,t)=>{if(typeof t==="number")return String(t);if(N0.has(e)&&D0.test(t))return String(Number(t));return`'${t.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`},Ws=(e,t,r)=>{let o=r!=null?(0,P0.default)(r):void 0,a=t.map(([s,i])=>`${s}: ${M0(s,i)}`);return(0,w0.default)(e,a,o)},$0=(e,t)=>(r,o,a,s)=>{let i={message:e},u=ir[t];if(u==null||r.type!=="Literal"||a==null)return i;let f=r.value;if(typeof f!=="string"&&typeof f!=="number")return i;let c=(0,bt.splitSpecificShorthands)(u,String(f));if(c.length<=1&&c[0]?.[1]!==bt.CANNOT_FIX)return i;if(c.length===1&&c[0]?.[1]===bt.CANNOT_FIX)return i;let h=Ws(a,c,s),y=(d)=>d.replaceText(a,h);if(t!=="animation")i.fix=y;return i.suggest={desc:`Split '${t}' shorthand into individual longhand properties?`,fix:y},i},j0={meta:{type:"problem",hasSuggestions:!0,fixable:"code",docs:{descriptions:"Enforce that you create valid stylex styles",category:"Possible Errors",recommended:!0},schema:[{type:"object",properties:{validImports:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{from:{type:"string"},as:{type:"string"}}}]},default:["stylex","@stylexjs/stylex"]},allowRawCSSVars:{type:"boolean",default:!0},allowOuterPseudoAndMedia:{type:"boolean",default:!1},banPropsForLegacy:{type:"boolean",default:!1},styleResolution:{type:"string",enum:["application-order","property-specificity","legacy-expand-shorthands"]},propLimits:{type:"object",additionalProperties:{type:"object",properties:{limit:{oneOf:[{type:"null"},{type:"string"},{type:"number"},{type:"array",items:{oneOf:[{type:"null"},{type:"string"},{type:"number"}]}}]},reason:{type:"string"}}}}}}]},create(e){let t=new Map,r=new Set,a=(e.options[0]||{}).themeFileExtension||".stylex",s="This property is not supported in legacy StyleX resolution.",i={grid:{limit:null,reason:"This property is not supported in legacy StyleX resolution."},gridArea:{limit:null,reason:"This property is not supported in legacy StyleX resolution."},gridColumn:{limit:null,reason:"This property is not supported in legacy StyleX resolution."},gridRow:{limit:null,reason:"This property is not supported in legacy StyleX resolution."},gridTemplate:{limit:null,reason:"This property is not supported in legacy StyleX resolution."},gridGap:{limit:null,reason:"This property is not supported in legacy StyleX resolution."},gridColumnGap:{limit:null,reason:"This property is not supported in legacy StyleX resolution."},gridRowGap:{limit:null,reason:"This property is not supported in legacy StyleX resolution."},"mask+([a-zA-Z])":{limit:null,reason:"This property is not supported in legacy StyleX resolution."},blockOverflow:{limit:null,reason:"This property is not supported in legacy StyleX resolution."},inlineOverflow:{limit:null,reason:"This property is not supported in legacy StyleX resolution."},transitionProperty:{limit:["opacity","transform","opacity, transform","none"],reason:"This property is not supported in legacy StyleX resolution."}},{validImports:u=["stylex","@stylexjs/stylex"],allowRawCSSVars:f=!0,allowOuterPseudoAndMedia:c,banPropsForLegacy:h=!1,styleResolution:y,propLimits:d={}}=e.options[0]||{},v=y==="legacy-expand-shorthands"||h,g=(m)=>v||!L0.has(m);function x(m,S){let z=[S,`${S}.const`,".transformed"];return["",...[".js",".ts",".tsx",".jsx",".mjs",".cjs"]].some((A)=>z.some((w)=>m.endsWith(`${w}${A}`)))}let E=new Set,T=e.filename,R=x(T,a),I=new Set,W=new Set,F=new Set,X=new Set,q=new Set,N={...v?i:{},...d},V={...Ce.CSSProperties,animationName:(0,Ye.default)((0,Hs.default)("none"),(0,T0.default)(I,F),Ce.all),positionTryFallbacks:(0,Ye.default)((0,Hs.default)("none"),A0.default,(0,R0.default)(I,X),Ce.all)},J=(m,S)=>ir[S]!=null&&g(S)?$0(m,S):O0(m);for(let m in N){let{limit:S,reason:z}=N[m];if(S===null){if(m.includes("*")||m.includes("+")){for(let A in V)if(bn.default.isMatch(A,m))V[A]=J(z,A)}else V[m]=J(z,m);continue}let D=S==="*"?(0,Ye.default)(or.default,ar.default,Ce.all):S==="string"?(0,Ye.default)(or.default,Ce.all):S==="number"?(0,Ye.default)(ar.default,Ce.all):typeof S==="string"||typeof S==="number"?(0,Ye.default)(S,Ce.all):Array.isArray(S)?(0,Ye.default)(...S.map((A)=>{if(A==="*")return(0,Ye.default)(or.default,ar.default);if(A==="string")return or.default;if(A==="number")return ar.default;return A}),Ce.all):void 0;if(D===void 0)continue;if(m.includes("*")||m.includes("+")){for(let A in V)if(bn.default.isMatch(A,m))V[A]=D}else V[m]=D}function b(m){return m.type==="MemberExpression"&&m.object.type==="Identifier"&&I.has(m.object.name)&&m.property.type==="Identifier"&&m.property.name==="create"||m.type==="Identifier"&&W.has(m.name)}function L(m){return m&&m.type==="CallExpression"&&b(m.callee)&&m.arguments.length===1}function H(m,S,z,D,A,w){if(m.type==="ConditionalExpression"){let me=H(m.consequent,S,z,D,A,w);if(me!=null)return me;let Ae=H(m.alternate,S,z,D,A,w);if(Ae!=null)return Ae;return null}if(m.type==="LogicalExpression"&&["||","??"].includes(m.operator)){let me=H(m.left,S,z,D,A,w);if(me!=null)return me;let Ae=H(m.right,S,z,D,A,w);if(Ae!=null)return Ae;return null}if((A==="float"||A==="clear")&&m.type==="Literal"&&typeof m.value==="string"&&(m.value==="start"||m.value==="end")){let me=m.value==="start"?"inline-start":"inline-end";return{node:m,loc:m.loc,message:`The value "${m.value}" is not a standard CSS value for "${A}". Did you mean "${me}"?`,fix:(Ae)=>Ae.replaceText(m,`'${me}'`),suggest:[{desc:`Replace "${m.value}" with "${me}"?`,fix:(Ae)=>Ae.replaceText(m,`'${me}'`)}],isSpecialCase:!0}}let Q=w(m,S,z,e);if(Q!=null)return Q;if(m.type==="Literal"&&typeof m.value==="string"&&(0,C0.default)(m.value)&&D.name!=="content")return{node:m,loc:m.loc,message:"The empty string is not allowed by Stylex. Use `null` to reset a style.",suggest:[{desc:"Replace empty string with `null`?",fix:(me)=>me.replaceText(m,"null")}],isSpecialCase:!0}}function ie(m,S,z,D){if(m.type==="Property"){if(m.value.type==="ObjectExpression"){let se=m.value;if(S>0&&z==null&&!(D&&S===1))return e.report({node:m.value,loc:m.value.loc,message:"You cannot nest styles more than one level deep"});let G=m.key;if(G.type==="PrivateIdentifier")return e.report({node:G,loc:G.loc,message:"Private properties are not allowed in stylex"});let B=G.type==="Literal"?G.value:G.type==="Identifier"?!m.computed?G.name:(0,_0.default)(G,t):null;if((0,Sn.default)(G,E))return;if(typeof B!=="string"||G.type!=="Literal"&&G.type!=="Identifier")return e.report({node:G,loc:G.loc,message:"Keys must be strings"});if(B.startsWith("@")||B.startsWith(":")){if(S===0){if((c?Ce.allModifiers:Ce.pseudoElements)(G,t)!==void 0){if(B.startsWith("::"))return e.report({node:m.value,loc:m.value.loc,message:`Unknown pseudo element "${B}"`});return e.report({node:m.value,loc:m.value.loc,message:c?"Nested styles can only be used for the pseudo selectors in the stylex allowlist and for @media queries":"Pseudo Classes, Media Queries and other At Rules should be nested as conditions within style properties. Only Pseudo Elements (::after) are allowed at the top-level"})}}else if((0,Ce.pseudoClassesAndAtRules)(G,t)!==void 0)return e.report({node:m.value,loc:m.value.loc,message:"Invalid Pseudo class or At Rule used for conditional style value"})}return se.properties.forEach((ye)=>ie(ye,S+1,z??(B.startsWith("@")||B.startsWith(":")||B==="default"?null:B),D||B.startsWith("::")))}let A=m.key;if(A.type==="PrivateIdentifier")return e.report({node:A,loc:A.loc,message:"Private properties are not allowed in stylex"});if((0,Sn.default)(A,E))return;let w=!1;if(m.computed&&A.type!=="Literal"){if(A.type==="CallExpression"&&A.callee.type==="MemberExpression"){let se=A.callee.object,G=A.callee.property;if(w=se.type==="MemberExpression"&&se.object.type==="Identifier"&&I.has(se.object.name)&&se.property.type==="Identifier"&&se.property.name==="when"&&G.type==="Identifier"||se.type==="Identifier"&&q.has(se.name)&&G.type==="Identifier",!w){let B=(0,I0.default)(A,t);if(B==null)return e.report({node:m.key,loc:m.key.loc,message:"Computed key cannot be resolved."});else if(B==="ARG")return e.report({node:m.key,loc:m.key.loc,message:"Computed key cannot depend on function argument"});else A=B}}}if(A.type!=="Literal"&&A.type!=="Identifier"&&!w)return e.report({node:A,loc:A.loc,message:"All keys in a stylex object must be static literal values."});let Q=z??(A.type==="Identifier"?A.name:A.value);if(typeof Q!=="string")return e.report({node:A,loc:A.loc,message:"All keys in a stylex object must be static literal string values."});if(Ce.CSSPropertyReplacements[Q]!=null){let se=Ce.CSSPropertyReplacements[Q],G=m,B=se(m.value,t,m,e);if(B!=null){let{message:ye}=B,{suggest:Ie}=B,{fix:P}=B;if(!v&&B0.has(Q))P=void 0;let te={node:m,loc:m.loc,message:ye,fix:P!=null?P:void 0,suggest:Ie!=null?[Ie]:void 0};return e.report(te)}}let me=V[Q];if(me==null){if(f&&bn.default.isMatch(Q,"--*"))return;let se=Ce.CSSPropertyKeys.find((G)=>(0,E0.default)(Q,G,2)<=2);return e.report({node:m.key,loc:m.key.loc,message:"This is not a key that is allowed by stylex",suggest:se!=null?[{desc:`Did you mean "${se}"?`,fix:(G)=>{if(m.key.type==="Identifier")return G.replaceText(m.key,se);else if(m.key.type==="Literal"&&(typeof m.key.value==="string"||typeof m.key.value==="number"||typeof m.key.value==="boolean"||m.key.value==null)){let B=m.key,ye=m.key.raw;if(ye!=null){let Ie=ye.substr(0,1);return G.replaceText(B,`${Ie}${se}${Ie}`)}}return null}}]:void 0})}if(typeof me!=="function")throw TypeError(`CSSProperties[${Q}] is not a function`);if(!(E.size>0&&(0,Sn.default)(m.value,E))){let se=t;if(r.size>0){se=new Map;for(let[B,ye]of t)se.set(B,ye);for(let B of r)se.set(B,"ARG")}let G=H(m.value,se,m,A,Q,me);if(G!=null){if(G.isSpecialCase)return e.report({node:G.node,loc:G.loc,message:G.message,fix:G.fix,suggest:G.suggest});let{message:B}=G,{fix:ye,suggest:Ie}=G;if(ye==null&&Ie==null&&ir[Q]!=null&&g(Q)&&m.value.type==="Literal"){let _=m.value.value;if(typeof _==="string"||typeof _==="number"){let Y=ir[Q],Z=(0,bt.splitSpecificShorthands)(Y,String(_));if((Z.length>1||Z.length===1&&Z[0]?.[1]===bt.CANNOT_FIX)&&!(Z.length===1&&Z[0]?.[1]===bt.CANNOT_FIX)){let _e=Ws(m,Z,e),Te=(Gs)=>Gs.replaceText(m,_e);if(Q!=="animation")ye=Te;Ie={desc:`Split '${Q}' shorthand into individual longhand properties?`,fix:Te}}}}let te=Q==="backgroundBlendMode"&&typeof B==="string"&&B.indexOf("backgroundBlendMode values must be separated by a comma and a space")!==-1?B.split(`
26
+ `)[0]:`${Q} value must be one of:
27
+ ${B}${Q==="lineHeight"?`
28
+ Be careful when fixing: lineHeight: 10px is not the same as lineHeight: 10`:""}`;return e.report({node:m.value,loc:m.value.loc,message:te,fix:ye!=null?ye:void 0,suggest:Ie!=null?[Ie]:void 0})}}}}return{Program(m){let S=m.body.reduce((A,w)=>{if(w.type==="VariableDeclaration")A.push(w);return A},[]).map((A)=>A.declarations).reduce((A,w)=>A.concat(w),[]),[z,D]=S.reduce((A,w)=>{if(w.init!=null&&w.init.type==="CallExpression"&&w.init.callee.type==="Identifier"&&w.init.callee.name==="require")A[0].push(w);else A[1].push(w);return A},[[],[]]);z.forEach((A)=>{if(A.init!=null&&A.init.type==="CallExpression"&&A.init.callee.type==="Identifier"&&A.init.callee.name==="require"&&A.init.arguments.length===1&&A.init.arguments[0].type==="Literal"&&u.includes(A.init.arguments[0].value)){if(A.id.type==="Identifier")I.add(A.id.name);if(A.id.type==="ObjectPattern")A.id.properties.forEach((w)=>{if(w.type==="Property"&&w.key.type==="Identifier"&&w.key.name==="create"&&!w.computed&&w.value.type==="Identifier")W.add(w.value.name)})}}),D.filter((A)=>A.id.type==="Identifier").forEach((A)=>{let w=A.id.type==="Identifier"?A.id:null,Q=A.init;if(w!=null&&Q!=null)t.set(w.name,Q)})},ImportDeclaration(m){if(m.source.type!=="Literal"||typeof m.source.value!=="string")return;let S=m.source.value,z=u.find((w)=>{if(typeof w==="string")return w===S;return w.from===S}),D=z!==void 0,A=x(S,a);if(!(D||A))return;if(D){if(typeof z==="string")m.specifiers.forEach((w)=>{if(w.type==="ImportDefaultSpecifier"||w.type==="ImportNamespaceSpecifier")I.add(w.local.name);if(w.type==="ImportSpecifier"&&w.imported.name==="create")W.add(w.local.name);if(w.type==="ImportSpecifier"&&w.imported.name==="keyframes")F.add(w.local.name);if(w.type==="ImportSpecifier"&&w.imported.name==="positionTry")X.add(w.local.name);if(w.type==="ImportSpecifier"&&w.imported.name==="when")q.add(w.local.name)});if(typeof z==="object")m.specifiers.forEach((w)=>{if(w.type==="ImportSpecifier"){if(w.imported.name===z.as)I.add(w.local.name)}})}if(A)m.specifiers.forEach((w)=>{if(w.type==="ImportSpecifier")E.add(w.local.name)})},ExportNamedDeclaration(m){if(R&&m.declaration?.type==="VariableDeclaration"){for(let S of m.declaration.declarations)if(S.id?.type==="Identifier")E.add(S.id.name)}},CallExpression(m){if(!L(m))return;let S=m.arguments[0];if(S.type!=="ObjectExpression")return e.report({node:S,loc:S.loc,message:"Styles must be represented as JavaScript objects"});S.properties.forEach((z)=>{if(z.type!=="Property")return e.report({node:z,loc:z.loc,message:"Styles cannot be spread objects"});let D=z.value;if(D.type!=="ObjectExpression")if(D.type==="ArrowFunctionExpression"&&(D.body.type==="ObjectExpression"||D.body.type==="TSAsExpression"&&D.body.expression.type==="ObjectExpression")){let A=D.params;if(D=D.body,D.type==="TSAsExpression")D=D.expression;if(A.some((w)=>w.type!=="Identifier"))return A.filter((w)=>w.type!=="Identifier").forEach((w)=>{e.report({node:w,loc:w.loc,message:"Dynamic Styles can only accept named parameters. Destructuring, spreading or default parameters are not allowed."})});A.forEach((w)=>{if(w.type==="Identifier")r.add(w.name)})}else return;D.properties.forEach((A)=>ie(A,0,null,!1)),r.clear()})},"Program:exit"(){t.clear()}}}},Ex=Fs.default=j0});var X0=M(function(zs){Object.defineProperty(zs,"__esModule",{value:!0});zs.rules=void 0;var H0=Fe(En()),W0=Fe(Rn()),F0=Fe(_n()),q0=Fe(ca()),U0=Fe(ma()),z0=Fe(ba()),V0=Fe(Ya()),G0=Fe(wi()),K0=Fe(Us());function Fe(e){return e&&e.__esModule?e:{default:e}}var Tx=zs.rules={"enforce-extension":H0.default,"no-legacy-contextual-styles":W0.default,"no-lookahead-selectors":F0.default,"no-nonstandard-styles":q0.default,"no-conflicting-props":U0.default,"no-unused":z0.default,"sort-keys":V0.default,"valid-shorthands":G0.default,"valid-styles":K0.default}});export default X0();
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014-present, Jon Schlinkert.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright 2022 Romain Menke, Antonio Laguna <antonio@laguna.es>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014-present, Jon Schlinkert.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014-present, Jon Schlinkert.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014-present, Jon Schlinkert.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017-present, Jon Schlinkert.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017-present, Jon Schlinkert.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,22 @@
1
+ Copyright (c) Bogdan Chadkin <trysound@yandex.ru>
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015-present, Jon Schlinkert.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.