pickier 0.1.60 → 0.1.61
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/dist/bin/cli.js +1 -1
- package/dist/{chunk-6xy2rbcn.js → chunk-3j5z4940.js} +2 -2
- package/dist/{chunk-cfytsdab.js → chunk-awmb5sg5.js} +1 -1
- package/dist/{chunk-ha0tzyp8.js → chunk-b2q8x0sx.js} +1 -1
- package/dist/chunk-b369mtka.js +33 -0
- package/dist/{chunk-9vc029ds.js → chunk-hwa8gmzb.js} +1 -1
- package/dist/chunk-mat3gcn4.js +2 -0
- package/dist/chunk-n23710ya.js +2 -0
- package/dist/chunk-nh6zvh3d.js +2 -0
- package/dist/{chunk-0xebhmpv.js → chunk-xjc1fk5y.js} +152 -152
- package/dist/{chunk-k110gscx.js → chunk-z1nez1br.js} +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/utils.d.ts +35 -1
- package/package.json +1 -1
- package/dist/chunk-0whyx3r0.js +0 -2
- package/dist/chunk-av6brc0s.js +0 -2
- package/dist/chunk-j0sjsw8n.js +0 -33
- package/dist/chunk-ymb49mab.js +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{H as u,k as m}from"./chunk-b369mtka.js";import{Q as y}from"./chunk-awmb5sg5.js";import{readFileSync as O,statSync as p,writeFileSync as x}from"fs";import{isAbsolute as d,resolve as l}from"path";async function R(r,t){let a=t.mode||"auto";if(a==="format"&&r.length===1&&!/[*?[\]{}()!]/.test(r[0]))try{let n=r[0],i=d(n)?n:l(process.cwd(),n);if(p(i).isFile()){let o=await u(t.config),c=O(i,"utf8"),f=m(c,o,i);if(t.check&&f!==c)return 1;if(t.write&&f!==c)x(i,f,"utf8");return 0}}catch{}let{runLint:e}=await import("./chunk-n23710ya.js");if(a==="lint")return e(r,t);if(a==="format"){let n={...t,fix:!0,dryRun:!!t.check,ext:t.ext,_formatOnly:!0};return e(r,n)}if(!(t.fix===!0||t.write===!0||t.check===!0))return e(r,t);let s={...t,fix:!0,dryRun:!!t.check,ext:t.ext};return e(r,s)}
|
|
3
3
|
export{R as h};
|
package/dist/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{a as i,b as r,c as t,g as o}from"../chunk-
|
|
2
|
+
import{a as i,b as r,c as t,g as o}from"../chunk-xjc1fk5y.js";import{h as s}from"../chunk-z1nez1br.js";import{A as F,B as I,C as O,D as A,E,F as W,G as U,H as q,I as z,J as B,K as D,L as G,M as N,k as m,l as b,m as P,n as C,o as R,p as d,q as y,r as k,s as h,t as v,u as w,v as S,w as L,x as M,y as T,z as j}from"../chunk-b369mtka.js";import{N as e,P as n}from"../chunk-3j5z4940.js";import"../chunk-awmb5sg5.js";export{h as ALWAYS_IGNORES,k as ENV,R as MAX_FIXER_PASSES,v as UNIVERSAL_IGNORES,O as blue,E as bold,T as colorize,W as colors,n as config,G as createIgnoreMatcher,y as createLimiter,e as defaultConfig,b as detectQuoteIssues,z as expandPatterns,m as formatCode,C as formatImports,w as getRuleSetting,d as glob,A as gray,j as green,P as hasIndentIssue,B as isCodeFile,M as isRuleOff,r as lintText,q as loadConfigFromPath,U as mergeConfig,S as normalizeRuleSeverity,F as red,L as resolveRuleSeverity,s as run,i as runFormat,o as runLint,t as runLintProgrammatic,N as shouldIgnorePath,D as withAlwaysIgnores,I as yellow};
|
package/dist/src/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PickierConfig, PickierOptions, RulesConfigMap } from './types';
|
|
1
|
+
import type { PickierConfig, PickierOptions, RuleSeverity, RulesConfigMap } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Glob files matching the given patterns.
|
|
4
4
|
* Uses Bun.Glob when running under Bun for maximum performance,
|
|
@@ -17,6 +17,40 @@ export declare function createLimiter(concurrency: number): <T>(fn: () => Promis
|
|
|
17
17
|
* Handles both string format ('error', 'warn', 'off') and array format (['error', options]).
|
|
18
18
|
*/
|
|
19
19
|
export declare function getRuleSetting(rulesConfig: RulesConfigMap, ruleId: string): { enabled: boolean, severity?: 'error' | 'warning', options?: any };
|
|
20
|
+
/**
|
|
21
|
+
* Normalize a raw rule config value into a severity.
|
|
22
|
+
*
|
|
23
|
+
* Accepts both the string form (`'error'`) and the array form
|
|
24
|
+
* (`['warn', options]`). Returns `'off'` for an explicit opt-out and
|
|
25
|
+
* `undefined` when the rule is not configured at all — the two are different
|
|
26
|
+
* answers, and only the caller knows what an unconfigured rule should default
|
|
27
|
+
* to (plugin rules default to disabled, built-in rules do not).
|
|
28
|
+
*/
|
|
29
|
+
export declare function normalizeRuleSeverity(raw: unknown): 'off' | 'warning' | 'error' | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* The single severity gate every rule passes through before it runs.
|
|
32
|
+
*
|
|
33
|
+
* A rule is configurable from either config map — `rules` and `pluginRules`
|
|
34
|
+
* are both user-facing and people reasonably reach for whichever they saw
|
|
35
|
+
* first — and under any of its aliases: the id it reports as (`no-console`),
|
|
36
|
+
* the plugin-qualified id (`style/quotes`), or the legacy camelCase key the
|
|
37
|
+
* built-in scan was originally written against (`noConsole`). Pass the
|
|
38
|
+
* reported id first and aliases in descending priority; the first configured
|
|
39
|
+
* one wins, so an explicit `'no-console': 'off'` beats an inherited
|
|
40
|
+
* `noConsole: 'warn'`.
|
|
41
|
+
*
|
|
42
|
+
* Returns the severity issues should be reported at, or `undefined` when the
|
|
43
|
+
* rule is off — callers must not run a rule that resolves to `undefined`.
|
|
44
|
+
*/
|
|
45
|
+
export declare function resolveRuleSeverity(cfg: Pick<PickierConfig, 'rules' | 'pluginRules'>, ruleId: string, aliases?: string[], fallback?: RuleSeverity): 'warning' | 'error' | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* True when a rule is explicitly switched off in either config map.
|
|
48
|
+
*
|
|
49
|
+
* Distinct from `resolveRuleSeverity`: this answers "did the user opt out?"
|
|
50
|
+
* for call sites whose default is enabled, where an unconfigured rule must
|
|
51
|
+
* keep running.
|
|
52
|
+
*/
|
|
53
|
+
export declare function isRuleOff(cfg: Pick<PickierConfig, 'rules' | 'pluginRules'>, ruleId: string): boolean;
|
|
20
54
|
/**
|
|
21
55
|
* Colorize console output (simple ANSI colors)
|
|
22
56
|
*/
|
package/package.json
CHANGED
package/dist/chunk-0whyx3r0.js
DELETED
package/dist/chunk-av6brc0s.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{b as a,c as b,d as c,e as d,f as e,g as f}from"./chunk-0xebhmpv.js";import"./chunk-j0sjsw8n.js";import"./chunk-6xy2rbcn.js";import"./chunk-cfytsdab.js";export{c as applyPlugins,a as lintText,f as runLint,b as runLintProgrammatic,e as scanContent,d as scanContentOptimized};
|
package/dist/chunk-j0sjsw8n.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{K as R}from"./chunk-6xy2rbcn.js";import{N as gt}from"./chunk-cfytsdab.js";function fe(t){let r=t.length,n=Array.from({length:r},(s,i)=>t[i]),e=0;while(e<r){let s=t[e];if(s==="#"&&(e===0||/\s/.test(t[e-1]))){while(e<r)n[e]=" ",e++;break}if(s==="$"&&t[e+1]==="'"){e+=2;while(e<r){if(t[e]==="\\"&&e+1<r){n[e]=" ",n[e+1]=" ",e+=2;continue}if(t[e]==="'"){e++;break}n[e]=" ",e++}continue}if(s==="$"&&t[e+1]==='"'){e++,e=A(t,e,n);continue}if(s==="$"&&t[e+1]==="{"){e+=2;let i=1;while(e<r&&i>0){let o=t[e];if(o==="\\"&&e+1<r){n[e]=" ",n[e+1]=" ",e+=2;continue}if(o==="'"){e++;while(e<r&&t[e]!=="'")n[e]=" ",e++;if(e<r)e++;continue}if(o==='"'){e=A(t,e,n);continue}if(o==="{"){i++,e++;continue}if(o==="}"){i--,e++;continue}n[e]=" ",e++}continue}if(s==="$"&&t[e+1]==="("&&t[e+2]==="("){e+=3;let i=2;while(e<r&&i>0){let o=t[e];if(o==="("){i++,e++;continue}if(o===")"){i--,e++;continue}n[e]=" ",e++}continue}if(s==="$"&&t[e+1]==="("){e+=2;let i=1;while(e<r&&i>0){let o=t[e];if(o==="\\"&&e+1<r){n[e]=" ",n[e+1]=" ",e+=2;continue}if(o==="'"){e++;while(e<r&&t[e]!=="'")n[e]=" ",e++;if(e<r)e++;continue}if(o==='"'){e=A(t,e,n);continue}if(o==="("){i++,e++;continue}if(o===")"){i--,e++;continue}n[e]=" ",e++}continue}if(s==="'"){e++;while(e<r&&t[e]!=="'")n[e]=" ",e++;if(e<r)e++;continue}if(s==='"'){e=A(t,e,n);continue}if(s==="`"){e++;while(e<r&&t[e]!=="`"){if(t[e]==="\\"&&e+1<r){n[e]=" ",n[e+1]=" ",e+=2;continue}n[e]=" ",e++}if(e<r)e++;continue}e++}return n.join("")}function A(t,r,n){let e=t.length,s=r+1;while(s<e){let i=t[s];if(i==="\\"&&s+1<e){n[s]=" ",n[s+1]=" ",s+=2;continue}if(i==='"')return s+1;if(i==="$"&&t[s+1]==="("&&t[s+2]==="("){s+=3;let o=2;while(s<e&&o>0){let c=t[s];if(c==="("){o++,s++;continue}if(c===")"){o--,s++;continue}n[s]=" ",s++}continue}if(i==="$"&&t[s+1]==="("){s+=2;let o=1;while(s<e&&o>0){let c=t[s];if(c==="\\"&&s+1<e){n[s]=" ",n[s+1]=" ",s+=2;continue}if(c==="'"){s++;while(s<e&&t[s]!=="'")n[s]=" ",s++;if(s<e)s++;continue}if(c==='"'){s=A(t,s,n);continue}if(c==="("){o++,s++;continue}if(c===")"){o--,s++;continue}n[s]=" ",s++}continue}if(i==="$"&&t[s+1]==="{"){s+=2;let o=1;while(s<e&&o>0){let c=t[s];if(c==="{"){o++,s++;continue}if(c==="}"){o--,s++;continue}n[s]=" ",s++}continue}n[s]=" ",s++}return s}function z(t){let n=fe(t).match(/<<-?/);if(!n||n.index===void 0)return null;let s=t.slice(n.index+n[0].length).match(/^\s*(['"]?)(\w+)\1/);if(!s)return null;return s[2]}var ue=new Set([".ts",".js"]),pe=new Set([".json",".jsonc"]),ge=new Set([".yaml",".yml"]),de=new Set([".sh",".bash",".zsh",".ksh",".dash"]),me=/^#!\s*(?:\/usr\/bin\/env\s+)?(?:ba|z|k|da)?sh\b/;var he=/^[}\])]/,ye=/[{[(]\s*$/,be=/\s*\/\/.*$/,we=/^(?:if|else\s+if|for|while)\s*\(/,Se=/^(?:\.[\w$[]|\?[\s.:]|:\s|&&|\|\|)/;function xe(t){let r=we.exec(t);if(!r)return/^(?:else|do)\s*$/.test(t);let n=0,e=null;for(let s=r[0].length-1;s<t.length;s++){let i=t[s];if(e){if(i==="\\"){s++;continue}if(i===e)e=null;continue}if(i==="'"||i==='"'||i==="`"){e=i;continue}if(i==="(")n++;else if(i===")"){if(n--,n===0)return t.slice(s+1).trim().length===0}}return!1}var Ce=/^\s*for\s*\(/,Ee=new RegExp("^\\s*;\\s*$"),$e=new RegExp(";{2,}\\s*$"),ke=/([\w)])\{/g,_e=/\{(return|if|for|while|switch|const|let|var|function)\b/g,Ie=/,(\S)/g,Re=/(?<![=!<>+\-*/%&|^?])=(?![=><])/g,Oe=/(\w)\+(\w)/g,Te=/(\w)-(\w)/g,Ne=/(\w)\*(\w)/g,ve=/(\w)\/(\w)/g,Ae=new RegExp("(?<=\\S);([^\\s;])","g"),Pe=/([\w)\]])<(\d)/g,Me=/([\w)\]])>(\d)/g,Y=/\s{2,}/g,H=/^\s*$/,Le=/^\s*\/\//,Q=/^\s*\/\*/,je=/^\s*import\b/,X=/\bfrom\s*['"][^'"]+['"]|^\s*import\s+['"][^'"]+['"]/,De=/package\.json$/i,Fe=/[jt]sconfig(?:\..+)?\.json$/i,j=/[ \t]+$/,Ue=/^\n+/;function M(t){let r=t.lastIndexOf(".");return r>=0?t.slice(r):""}function D(t){return ue.has(M(t))}function Ge(t){return pe.has(M(t))}function We(t){return ge.has(M(t))}function Be(t){return de.has(M(t))}function Je(t,r){return Be(t)||me.test(r)}function Ke(t,r){let n=t.split(`
|
|
3
|
-
`),e=n.length,s=Array(e),i=r.format.indent,o=r.format.indentStyle==="tabs",c=0,f=!1,p="",g=!1,m=0;for(let a=0;a<e;a++){let h=n[a];if(h.length===0||/^\s*$/.test(h)){s[a]="";continue}if(f){if(s[a]=h,h.trim()===p)f=!1,p="";continue}let b=z(h);if(b)f=!0,p=b;let w=0;while(w<h.length&&(h.charCodeAt(w)===32||h.charCodeAt(w)===9))w++;let d=h.slice(w).trimEnd();if(d.startsWith("#")&&a>0){let v=o?"\t".repeat(c):" ".repeat(c*i);s[a]=v+d;continue}if(/^case\b/.test(d)&&/\bin\s*$/.test(d))m++,g=!0;if(/^esac\b/.test(d)){if(m=Math.max(0,m-1),m===0)g=!1}let C=g&&/\)\s*$/.test(d)&&!/\$\(/.test(d)&&!/^\s*\(/.test(d)&&!d.startsWith("#"),E=/^;[;&]\s*$/.test(d);if(/^(?:fi|done|esac|elif|else)\b/.test(d)||/^\}/.test(d))c=Math.max(0,c-1);if(E)c=Math.max(0,c-1);let N=o?"\t".repeat(c):" ".repeat(c*i);if(s[a]=N+d,/^then\b/.test(d)||/^do\b/.test(d)||/^else\b/.test(d))c++;else if(/^if\b/.test(d)&&/\bthen\s*$/.test(d))c++;else if(/^elif\b/.test(d)&&/\bthen\s*$/.test(d))c++;else if(/^(?:while|for|until)\b/.test(d)&&/\bdo\s*$/.test(d))c++;else if(/^case\b/.test(d)&&/\bin\s*$/.test(d))c++;else if(C)c++;else if(/\{\s*$/.test(d)&&!d.startsWith("#"))c++}return s.join(`
|
|
4
|
-
`)}function ze(t,r){try{let n=Bun.YAML.parse(t),e=r.format.indentStyle==="tabs"?"\t":r.format.indent;return Bun.YAML.stringify(n,null,e).split(`
|
|
5
|
-
`).map((i)=>i.replace(/[ \t]+$/,"")).join(`
|
|
6
|
-
`)}catch{return t}}function Ye(t){return" ".repeat(Math.max(0,t))}function He(t,r){if((r.format.indentStyle||"spaces")==="tabs")return"\t".repeat(Math.max(0,t));return Ye(Math.max(0,t*r.format.indent))}function Qe(t){return`'${t.slice(1,-1).replace(/\\"/g,'"')}'`}function Xe(t){return`"${t.slice(1,-1).replace(/\\'/g,"'")}"`}function Ve(t,r){for(let n=0;n<t.length;n++){if(t[n]==="\\"){n++;continue}if(t[n]===r)return!0}return!1}function Ze(t,r,n){if(!D(n))return t;let e=t.split(`
|
|
7
|
-
`);for(let s=0;s<e.length;s++)e[s]=ee(e[s],r);return e.join(`
|
|
8
|
-
`)}function ee(t,r){let n=r==="single";if(n?!t.includes('"'):!t.includes("'"))return t;let e=[],s=0,i=0,o=0,c=0;while(s<t.length){let f=t[s];if(o===0){if(f==="/"){let p=t[s+1];if(p==="/")break;if(p==="*"){let g=t.indexOf("*/",s+2);s=g===-1?t.length:g+2;continue}if(se(t,s)){let g=re(t,s);if(g!==-1){s=g;continue}}s++;continue}if(f==='"'){o=2,c=s,s++;continue}if(f==="'"){o=1,c=s,s++;continue}if(f==="`"){o=3,s++;continue}s++}else if(o===3){if(f==="\\"){s+=2;continue}if(f==="`")o=0;s++}else{if(f==="\\"){s+=2;continue}if(f===(o===1?"'":'"')){let g=t.slice(c+1,s);if((o===2&&n||o===1&&!n)&&!Ve(g,n?"'":'"')){if(c>i)e.push(t.slice(i,c));if(o===2)e.push(Qe(`"${g}"`));else e.push(Xe(`'${g}'`));i=s+1}o=0,s++;continue}s++}}if(e.length===0)return t;if(i<t.length)e.push(t.slice(i));return e.join("")}var qe=new Set(["{",",","=","+","-","*","/",";","<",">"]);function et(t){if(t.length<4)return t;let r=0;while(r<t.length&&(t[r]===" "||t[r]==="\t"))r++;if(r<t.length){let o=t[r];if(o==="/"&&(t[r+1]==="/"||t[r+1]==="*"))return t;if(o==="*")return t}let n=!1;for(let o=r;o<t.length;o++)if(qe.has(t[o])){n=!0;break}if(!n)return t;let{text:e,strings:s}=rt(t),i=e;if(i=i.replace(ke,"$1 {"),i=i.replace(_e,"{ $1"),i=i.replace(Ie,", $1"),i=i.replace(Re," = "),i=i.replace(Oe,"$1 + $2"),i=i.replace(Te,"$1 - $2"),i=i.replace(Ne,"$1 * $2"),i=i.replace(ve,"$1 / $2"),i=i.replace(Ae,"; $1"),i=i.replace(Pe,"$1 < $2"),i=i.replace(Me,"$1 > $2"),r>0){let o=i.slice(r);i=i.slice(0,r)+o.replace(Y," ")}else i=i.replace(Y," ");return s.length>0?it(i,s):i}function L(t){let r=t[t.length-1];return r!==void 0&&r.t==="tmpl"}function te(t,r,n){r++;while(r<t.length){let e=t[r];if(e==="\\"){r+=2;continue}if(e===n)return r+1;r++}return r}function F(t,r){for(let e of r)if(e.t==="tmpl")e.start=-1;let n=0;while(n<t.length){let e=r[r.length-1],s=t[n];if(e===void 0||e.t==="interp"){if(s==="`"){r.push({t:"tmpl",start:n}),n++;continue}if(s==="'"||s==='"'){n=te(t,n,s);continue}if(s==="/"&&t[n+1]==="/")break;if(e!==void 0){if(s==="{"){e.braces++,n++;continue}if(s==="}"){if(e.braces===0)r.pop();else e.braces--;n++;continue}}n++}else{if(s==="\\"){n+=2;continue}if(s==="`"){r.pop(),n++;continue}if(s==="$"&&t[n+1]==="{"){r.push({t:"interp",braces:0}),n+=2;continue}n++}}if(L(r)){for(let e of r)if(e.t==="tmpl"&&e.start>=0)return e.start}return-1}function V(t,r){let n=r,e=null,s=0;while(s<t.length){let i=t[s];if(n){if(i==="*"&&t[s+1]==="/"){n=!1,s+=2;continue}s++;continue}if(e){if(i==="\\"){s+=2;continue}if(i===e)e=null;s++;continue}if(i==="'"||i==='"'||i==="`"){e=i,s++;continue}if(i==="/"){if(t[s+1]==="/")break;if(t[s+1]==="*"){n=!0,s+=2;continue}}s++}return n}function tt(t,r){let n=t.split(`
|
|
9
|
-
`),e=n.length,s=Array(e),i=r.format.quotes,o=r.format.semi===!0,c=0,f=0,p=!1,g=[];for(let m=0;m<e;m++){let a=n[m];if(p){p=V(a,!0),s[m]=a;continue}let h=L(g),b=-1;if(g.length>0||a.indexOf("`")!==-1)b=F(a,g);if(h){s[m]=a;continue}if(b<0&&g.length===0)p=V(a,!1);let w="",d=!1,C="";if(b>=0){w=a.slice(b);let I=a.slice(0,b);if(I.length===0){s[m]=w;continue}if(d=j.test(I),I.trim().length===0)C=I;a=I}if(a.length===0){s[m]="";continue}a=ee(a,i);let E=0;while(E<a.length&&(a.charCodeAt(E)===32||a.charCodeAt(E)===9))E++;let k=a.slice(E).trimEnd();if(he.test(k))c=Math.max(0,c-1);let N=Se.test(k)?1:0,v=a.slice(0,E);if(a=r.format.preserveCodeIndentation?v+k:He(c+f+N,r)+k,ye.test(k))c+=1,f=0;else if(!k.startsWith("//")&&!k.startsWith("*")&&!k.startsWith("/*")){let I=k.replace(be,"");f=xe(I)?f+1:0}if(a=et(a),o){if(!Ce.test(a))if(Ee.test(a))a="";else a=a.replace($e,";")}if(r.format.trimTrailingWhitespace)a=a.trimEnd();if(b>=0){if(C)a=C;else if(d&&!j.test(a))a+=" ";a+=w}s[m]=a}return s.join(`
|
|
10
|
-
`)}function nt(t,r){let n=[],e=0,s=[];for(let i of t){let o=L(s);if(s.length>0||i.indexOf("`")!==-1)F(i,s);if(o){n.push(i),e=0;continue}if(i===""){if(e++,e<=r)n.push("")}else e=0,n.push(i)}return n}function Tt(t,r,n){if(t.length===0)return"";let s=(t.includes("\r")?t.replace(/\r\n/g,`
|
|
11
|
-
`):t).split(`
|
|
12
|
-
`),i;if(r.format.trimTrailingWhitespace){i=[];let p=0,g=Math.max(0,r.format.maxConsecutiveBlankLines),m=[];for(let a of s){let h=L(m),b=!1;if(m.length>0||a.indexOf("`")!==-1)b=F(a,m)>=0;if(h||b){i.push(a),p=0;continue}let w=a[a.length-1],d=w===" "||w==="\t"?a.replace(j,""):a;if(d===""){if(p++,p<=g)i.push("")}else p=0,i.push(d)}}else i=nt(s,Math.max(0,r.format.maxConsecutiveBlankLines));let o=i.join(`
|
|
13
|
-
`);if(o=o.replace(Ue,""),D(n))o=ct(o);if(We(n)){let p=ze(o,r);if(p!==o)o=p}if(Ge(n)){let p=ft(o,n);if(p!=null)o=p}if(Je(n,o))o=Ke(o,r);else if(D(n))o=tt(o,r);else o=Ze(o,r.format.quotes,n);if(r.format.finalNewline==="none")return o.replace(/\n+$/g,"");let c=/[^\n]\n$/.test(o)||o===`
|
|
14
|
-
`,f=/\n\n$/.test(o);if(r.format.finalNewline==="two"){if(f)return o;if(c)return`${o}
|
|
15
|
-
`;return`${o}
|
|
16
|
-
|
|
17
|
-
`}if(f)return o.replace(/\n\n$/,`
|
|
18
|
-
`);if(c)return o;return`${o}
|
|
19
|
-
`}function Z(t,r,n,e){for(let s=r+1;s<t.length;s++){let i=t[s];if(i==="\\"){s++;continue}if(i===n)return!0;if(i===e)return!1}return!0}function Nt(t,r){if(/^\s*\/\/\/\s*<reference/.test(t))return[];let n=[],e=null,s=!1;for(let i=0;i<t.length;i++){let o=t[i];if(s){s=!1;continue}if(o==="\\"){s=!0;continue}if(!e){if(o==="/"&&t[i+1]==="/")break;if(o==="'"){if(r==="double"&&Z(t,i,"'",'"'))n.push(i);e="single";continue}else if(o==='"'){if(r==="single"&&Z(t,i,'"',"'"))n.push(i);e="double";continue}else if(o==="`"){e="template";continue}}else if(e==="single"&&o==="'"||e==="double"&&o==='"'||e==="template"&&o==="`"){e=null;continue}}return n}function vt(t,r,n="spaces",e){if(n==="tabs")return/[^\t]/.test(t);if(/\t/.test(t))return!0;let s=t.length;if(e&&s%r===1){let i=e.trimStart();if(i.startsWith("* ")||i.startsWith("*/")||i==="*")return!1}return s%r!==0}function ne(t,r){let n=r+1;while(n<t.length){let e=t[n];if(e==="\\"){n+=2;continue}if(e==="`")return n+1;if(e==="$"&&t[n+1]==="{"){n+=2;let s=1;while(n<t.length&&s>0){let i=t[n];if(i==="\\"){n+=2;continue}if(i==="`"){n=ne(t,n);continue}if(i==="'"||i==='"'){n=te(t,n,i);continue}if(i==="{")s++;else if(i==="}")s--;n++}continue}n++}return n}var st=new Set(["return","typeof","instanceof","in","of","new","delete","void","do","else","case","yield","await"]);function se(t,r){let n=r-1;while(n>=0&&(t[n]===" "||t[n]==="\t"))n--;if(n<0)return!0;let e=t[n];if("(,=:[!&|?;{}<>+-*%^~".includes(e))return!0;if(/[\w$]/.test(e)){let s=n;while(s>=0&&/[\w$]/.test(t[s]))s--;return st.has(t.slice(s+1,n+1))}return!1}function re(t,r){let n=r+1,e=!1,s=-1;while(n<t.length){let i=t[n];if(i==="\\"){n+=2;continue}if(i==="["&&!e)e=!0,s=n;else if(i==="]"&&e){let o=t[s+1]==="^"?s+2:s+1;if(n!==o)e=!1}else if(i==="/"&&!e){n++;while(n<t.length&&/[a-z]/i.test(t[n]))n++;return n}n++}return-1}function rt(t){if(!t.includes("'")&&!t.includes('"')&&!t.includes("`")&&!t.includes("/"))return{text:t,strings:[]};let r=[],n=[],e=0,s=0;while(e<t.length){let i=t[e];if(i==="/"){let o=t[e+1];if(o==="/"){if(e>s)n.push(t.slice(s,e));r.push(t.slice(e)),n.push(`@@S${r.length-1}@@`),s=t.length;break}if(o==="*"){let c=t.indexOf("*/",e+2),f=c===-1?t.length:c+2;if(e>s)n.push(t.slice(s,e));r.push(t.slice(e,f)),n.push(`@@S${r.length-1}@@`),e=f,s=e;continue}if(se(t,e)){let c=re(t,e);if(c!==-1){if(e>s)n.push(t.slice(s,e));r.push(t.slice(e,c)),n.push(`@@S${r.length-1}@@`),e=c,s=e;continue}}e++;continue}if(i==="'"||i==='"'||i==="`"){if(e>s)n.push(t.slice(s,e));let o=e;if(i==="`")e=ne(t,e);else{let c=i;e++;while(e<t.length){if(t[e]==="\\"){e+=2;continue}if(t[e]===c){e++;break}e++}}r.push(t.slice(o,e)),n.push(`@@S${r.length-1}@@`),s=e;continue}e++}if(s<t.length)n.push(t.slice(s));return{text:n.join(""),strings:r}}function it(t,r){if(r.length===0)return t;return t.replace(/@@S(\d+)@@/g,(n,e)=>r[Number(e)]??"")}function ot(t){let r=new Set,n=/[$A-Z_][\w$]*/gi,e=n.exec(t);while(e!==null)r.add(e[0]),e=n.exec(t);return r}function ct(t){let r=t[0];if(r!=="i"&&r!==" "&&r!=="\t"&&r!=="/"&&r!==`
|
|
20
|
-
`)return t;let n=t.split(`
|
|
21
|
-
`),e=[],s=[],i=[],o=0,c=0,f=-1,p=!1;while(o<n.length){let l=n[o];if(H.test(l)){o++;continue}if(Le.test(l)||Q.test(l)){let y=o;if(Q.test(l)){while(o<n.length&&!n[o].includes("*/"))o++;o++}else o++;if(!p){for(let _=y;_<o&&_<n.length;_++)s.push(n[_]);c=o}else if(f<0)f=y;continue}if(!je.test(l))break;let u=l.trim(),x=o+1;while(!X.test(u)&&x<n.length&&x-o<50)u+=` ${n[x].trim()}`,x++;if(!X.test(u))return t;let S=lt(u);if(!S)return t;if(f>=0){for(let y=f;y<o;y++)if(!H.test(n[y]))i.push(n[y]);f=-1}e.push(S),o=x,c=o,p=!0}if(e.length===0)return t;let g=f>=0?f:c,m=n.slice(g).join(`
|
|
22
|
-
`),a=ot(m),h=(l)=>a.has(l);for(let l of e){if(l.kind!=="value")continue;l.named=l.named.filter((u)=>{if(u.alias)return!0;return h(u.name)})}let b=e.filter((l)=>{if(l.kind==="side-effect")return!0;if(l.kind==="type")return l.namedTypes.length>0;return Boolean(l.defaultName||l.namespaceName||l.named.length>0)}),w=new Map;for(let l of b){let u=w.get(l.source)||{};if(l.kind==="side-effect")u.side=u.side||[],u.side.push(l);else if(l.kind==="type"){if(!u.type)u.type={kind:"type",source:l.source,named:[],namedTypes:[],original:""};u.type.namedTypes=(u.type.namedTypes||[]).concat(l.namedTypes)}else{if(!u.value)u.value={kind:"value",source:l.source,named:[],namedTypes:[],original:""};if(l.defaultName)u.value.defaultName=l.defaultName;if(l.namespaceName)u.value.namespaceName=l.namespaceName;if(u.value.named=(u.value.named||[]).concat(l.named),l.namedTypes.length>0){if(!u.type)u.type={kind:"type",source:l.source,named:[],namedTypes:[],original:""};u.type.namedTypes=u.type.namedTypes.concat(l.namedTypes)}}w.set(l.source,u)}let d=[];for(let[l,u]of w){if(u.side)d.push(...u.side);if(u.value){let x=(S)=>{if(!S.alias)return S;return/^[A-Z]$/i.test(S.name)&&/^[A-Z]$/i.test(S.alias)?{name:S.alias,alias:S.name}:S};u.value.named=u.value.named.map(x),u.value.named.sort((S,y)=>S.name.localeCompare(y.name)),d.push(u.value)}if(u.type&&u.type.namedTypes.length>0){let x=new Set,S=(y)=>{if(!y.alias)return y;return/^[A-Z]$/i.test(y.name)&&/^[A-Z]$/i.test(y.alias)?{name:y.alias,alias:y.name}:y};u.type.namedTypes=u.type.namedTypes.map(S).filter((y)=>{let _=`${y.name}|${y.alias||""}`;if(x.has(_))return!1;return x.add(_),!0}),u.type.namedTypes.sort((y,_)=>y.name.localeCompare(_.name)),d.push(u.type)}}let C=(l)=>l.startsWith(".")?2:l.startsWith("node:")?0:1,E=(l)=>{if(l.kind!=="value")return 99;if(l.defaultName)return 0;if(l.namespaceName)return 1;return 2};d.sort((l,u)=>{if(l.kind!==u.kind){if(l.kind==="type")return-1;if(u.kind==="type")return 1;if(l.kind==="side-effect")return-1;if(u.kind==="side-effect")return 1}if(l.kind==="type"&&u.kind==="type"){let x=C(l.source),S=C(u.source);if(x!==S)return x-S;return l.source.localeCompare(u.source)}if(l.kind==="value"&&u.kind==="value"){let x=C(l.source),S=C(u.source);if(x!==S)return x-S;let y=E(l),_=E(u);if(y!==_)return y-_;return l.source.localeCompare(u.source)}return l.source.localeCompare(u.source)});let k=s.length>0?`${s.join(`
|
|
23
|
-
`)}
|
|
24
|
-
`:"";if(d.length===0){let l=m.replace(/^\n+/,""),u=[...i];if(k||u.length>0)return`${k}${u.length>0?`${u.join(`
|
|
25
|
-
`)}
|
|
26
|
-
`:""}${l}`;return l}let N=d.map(at).join(`
|
|
27
|
-
`),v=i.length>0?`
|
|
28
|
-
${i.join(`
|
|
29
|
-
`)}`:"",I=m.replace(/^\n+/,""),le=I.length>0?`
|
|
30
|
-
|
|
31
|
-
`:`
|
|
32
|
-
`;return`${k}${N}${v}${le}${I}`}function at(t){if(t.kind==="side-effect")return`import '${t.source}'`;if(t.kind==="type")return`import type { ${t.namedTypes.map((s)=>s.alias?`${s.name} as ${s.alias}`:s.name).join(", ")} } from '${t.source}'`;let r=[];if(t.defaultName)r.push(t.defaultName);if(t.namespaceName)r.push(`* as ${t.namespaceName}`);if(t.named.length>0){let e=t.named.map((s)=>s.alias?`${s.name} as ${s.alias}`:s.name).join(", ");r.push(`{ ${e} }`)}return`import ${r.join(", ")} from '${t.source}'`}function lt(t){let r=t.match(/^\s*import\s+['"]([^'"]+)['"]/);if(r)return{kind:"side-effect",source:r[1],named:[],namedTypes:[],original:t};if(r=t.match(/^\s*import\s+type\s+\{([^}]*)\}\s+from\s+['"]([^'"]+)['"]/),r){let a=r[1],h=r[2],b=a.split(",").map((w)=>w.trim()).filter(Boolean).map((w)=>{let d=w.match(/^(\w+)(?:\s+as\s+(\w+))?$/);return{name:d?.[1]||w,alias:d?.[2]}});return{kind:"type",source:h,named:[],namedTypes:b,original:t}}let n=t.match(/^\s*import\s+/),e=new RegExp(`\\sfrom\\s+['"]([^'"]+)['"]\\s*;?$`),s=t.match(e);if(!n||!s)return;let i=s[1],o=t.slice(n[0].length,s.index).trim(),c,f,p=[],g=[],m=o.match(/\{([^}]*)\}/);if(m){let h=m[1].split(",").map((b)=>b.trim()).filter(Boolean);for(let b of h){let w=/^type\s+/.test(b),C=b.replace(/^type\s+/,"").match(/^(\w+)(?:\s+as\s+(\w+))?$/);if(!C)continue;let E={name:C[1],alias:C[2]};if(w)g.push(E);else p.push(E)}o=o.replace(/\{[\s\S]*?\}/,"").trim()}if(o.length>0){let a=o.split(",").map((h)=>h.trim()).filter(Boolean);for(let h of a)if(h.startsWith("* as "))f=h.slice(5).trim();else if(/^\w+$/.test(h))c=h}return{kind:"value",source:i,defaultName:c,namespaceName:f,named:p,namedTypes:g,original:t}}function ft(t,r){if(De.test(r))return ut(t);if(Fe.test(r))return pt(t);return null}function ie(t){try{return JSON.parse(t)}catch{return null}}function P(t,r,n=[]){let e={};for(let i of r)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i];for(let i of n){let o=Object.keys(t).filter((c)=>i.test(c)&&!(c in e)).sort();for(let c of o)e[c]=t[c]}let s=Object.keys(t).filter((i)=>!(i in e)).sort();for(let i of s)e[i]=t[i];return e}function q(t){let r={};for(let n of Object.keys(t).sort())r[n]=t[n];return r}function ut(t){let r=ie(t);if(!r||typeof r!=="object")return t;let e=P(r,["publisher","name","displayName","type","version","private","packageManager","description","author","contributors","license","funding","homepage","repository","bugs","keywords","categories","sideEffects","imports","exports","main","module","unpkg","jsdelivr","types","typesVersions","bin","icon","files","engines","activationEvents","contributes","scripts","peerDependencies","peerDependenciesMeta","dependencies","optionalDependencies","devDependencies","pnpm","overrides","resolutions","husky","simple-git-hooks","lint-staged","eslintConfig"]);if(Array.isArray(e.files)){if(e.files.every((o)=>typeof o==="string"))e.files=[...e.files].sort()}for(let i of Object.keys(e))if(/^(?:dev|peer|optional|bundled)?[Dd]ependencies(?:Meta)?$/.test(i)||/^(?:resolutions|overrides|pnpm\.overrides)$/.test(i)){if(e[i]&&typeof e[i]==="object")e[i]=q(e[i])}if(e.pnpm&&typeof e.pnpm==="object"&&e.pnpm.overrides&&typeof e.pnpm.overrides==="object")e.pnpm.overrides=q(e.pnpm.overrides);if(e.exports&&typeof e.exports==="object"){let i=e.exports,o=["types","import","require","default"];if(!Array.isArray(i)){let c={};for(let f of Object.keys(i)){let p=i[f];if(p&&typeof p==="object"&&!Array.isArray(p))c[f]=P(p,o);else c[f]=p}e.exports=c}}let s=["pre-commit","prepare-commit-msg","commit-msg","post-commit","pre-rebase","post-rewrite","post-checkout","post-merge","pre-push","pre-auto-gc"];for(let i of["gitHooks","husky","simple-git-hooks"])if(e[i]&&typeof e[i]==="object")e[i]=P(e[i],s);return JSON.stringify(e,null,2)}function pt(t){let r=ie(t);if(!r||typeof r!=="object")return t;let e=P(r,["extends","compilerOptions","references","files","include","exclude"]);if(e.compilerOptions&&typeof e.compilerOptions==="object"){let s=["incremental","composite","tsBuildInfoFile","disableSourceOfProjectReferenceRedirect","disableSolutionSearching","disableReferencedProjectLoad","target","jsx","jsxFactory","jsxFragmentFactory","jsxImportSource","lib","moduleDetection","noLib","reactNamespace","useDefineForClassFields","emitDecoratorMetadata","experimentalDecorators","libReplacement","baseUrl","rootDir","rootDirs","customConditions","module","moduleResolution","moduleSuffixes","noResolve","paths","resolveJsonModule","resolvePackageJsonExports","resolvePackageJsonImports","typeRoots","types","allowArbitraryExtensions","allowImportingTsExtensions","allowUmdGlobalAccess","allowJs","checkJs","maxNodeModuleJsDepth","strict","strictBindCallApply","strictFunctionTypes","strictNullChecks","strictPropertyInitialization","allowUnreachableCode","allowUnusedLabels","alwaysStrict","exactOptionalPropertyTypes","noFallthroughCasesInSwitch","noImplicitAny","noImplicitOverride","noImplicitReturns","noImplicitThis","noPropertyAccessFromIndexSignature","noUncheckedIndexedAccess","noUnusedLocals","noUnusedParameters","useUnknownInCatchVariables","declaration","declarationDir","declarationMap","downlevelIteration","emitBOM","emitDeclarationOnly","importHelpers","importsNotUsedAsValues","inlineSourceMap","inlineSources","mapRoot","newLine","noEmit","noEmitHelpers","noEmitOnError","outDir","outFile","preserveConstEnums","preserveValueImports","removeComments","sourceMap","sourceRoot","stripInternal","allowSyntheticDefaultImports","esModuleInterop","forceConsistentCasingInFileNames","isolatedDeclarations","isolatedModules","preserveSymlinks","verbatimModuleSyntax","erasableSyntaxOnly","skipDefaultLibCheck","skipLibCheck"];e.compilerOptions=P(e.compilerOptions,s)}return JSON.stringify(e,null,2)}import{readdirSync as dt,readFileSync as mt,statSync as ce}from"fs";import{extname as ht,isAbsolute as G,join as W,resolve as yt}from"path";var jt=5;function bt(t){let r="",n=0;while(n<t.length){let e=t[n];if(e==="*")if(t[n+1]==="*"){if(r+=".*",n+=2,t[n]==="/")n++}else r+="[^/]*",n++;else if(e==="?")r+="[^/]",n++;else if(e==="["){let s=t.indexOf("]",n);if(s===-1)r+="\\[",n++;else r+=t.slice(n,s+1),n=s+1}else if(".+^${}()|\\".includes(e))r+=`\\${e}`,n++;else r+=e,n++}return new RegExp(`^${r}$`)}function*ae(t,r,n){let e;try{e=dt(t)}catch{return}for(let s of e){if(!n&&s.startsWith("."))continue;let i=W(t,s);if(r(i))continue;let o;try{o=ce(i)}catch{continue}if(o.isDirectory())yield*ae(i,r,n);else yield i}}function*oe(t,r,n,e){yield*ae(t,K(r,e),n)}async function Dt(t,r={}){let n=r.cwd??process.cwd(),e=r.ignore??[],s=r.dot??!1,i=r.absolute??!0,o=K(e,n);if(typeof globalThis.Bun?.Glob<"u"){let f=globalThis.Bun.Glob,p=[];for(let g of t){let m=new f(g);for await(let a of m.scan({cwd:n,dot:s,onlyFiles:r.onlyFiles??!0,followSymlinks:!1})){let h=G(a)?a:W(n,a),b=h.startsWith(`${n}/`)?h.slice(n.length+1):h;if(o(h))continue;p.push(i?h:b)}}return p}let c=[];for(let f of t){if(!/[*?[{]/.test(f)){let g=G(f)?f:W(n,f);try{if(!ce(g).isDirectory()){let a=g.startsWith(`${n}/`)?g.slice(n.length+1):g;if(!o(g))c.push(i?g:a)}else for(let a of oe(g,e,s,n))c.push(i?a:a.startsWith(`${n}/`)?a.slice(n.length+1):a)}catch{}continue}let p=bt(f);for(let g of oe(n,e,s,n)){let m=g.startsWith(`${n}/`)?g.slice(n.length+1):g;if(p.test(m)||p.test(m.replace(/\\/g,"/")))c.push(i?g:m)}}return c}function Ft(t){let r=0,n=[],e=()=>{if(n.length>0&&r<t)r++,n.shift()()};return(s)=>new Promise((i,o)=>{let c=()=>{s().then((f)=>{r--,i(f),e()},(f)=>{r--,o(f),e()})};if(r<t)r++,c();else n.push(c)})}var wt={get TRACE(){return process.env.PICKIER_TRACE==="1"},get TIMEOUT_MS(){return Number(process.env.PICKIER_TIMEOUT_MS||"8000")},get RULE_TIMEOUT_MS(){return Number(process.env.PICKIER_RULE_TIMEOUT_MS||"5000")},get CONCURRENCY(){return Number(process.env.PICKIER_CONCURRENCY)||8},get DIAGNOSTICS(){return process.env.PICKIER_DIAGNOSTICS==="1"},get FAIL_ON_WARNINGS(){return process.env.PICKIER_FAIL_ON_WARNINGS==="1"},get NO_AUTO_CONFIG(){return process.env.PICKIER_NO_AUTO_CONFIG==="1"}},B=["**/node_modules/**","**/.git/**"],St=["**/node_modules/**","**/dist/**","**/build/**","**/.git/**","**/.next/**","**/.nuxt/**","**/.output/**","**/.vercel/**","**/.netlify/**","**/.cache/**","**/.turbo/**","**/.vscode/**","**/.idea/**","**/.zed/**","**/.cursor/**","**/.claude/**","**/.github/**","**/coverage/**","**/.nyc_output/**","**/.tmp/**","**/.temp/**","**/vendor/**","**/pantry/**","**/target/**","**/zig-cache/**","**/zig-out/**","**/.zig-cache/**","**/__pycache__/**","**/.pytest_cache/**","**/venv/**","**/.venv/**","**/out/**","**/.DS_Store","**/Thumbs.db"];function Ut(t,r){let n=t[r];if(n===void 0){let i=r.indexOf("/");if(i>0){let o=r.slice(0,i),c=r.slice(i+1),f=o==="general"?"pickier":o==="pickier"?"general":null;if(f)n=t[`${f}/${c}`];if(n===void 0)n=t[c]}}let e,s;if(typeof n==="string"){if(n==="error")e="error";else if(n==="warn"||n==="warning")e="warning"}else if(Array.isArray(n)&&typeof n[0]==="string"){let i=n[0];if(i==="error")e="error";else if(i==="warn"||i==="warning")e="warning";s=n[1]}return{enabled:!!e,severity:e,options:s}}function T(t,r){return`\x1B[${t}m${r}\x1B[0m`}function xt(t){return T("32",t)}function Ct(t){return T("31",t)}function Et(t){return T("33",t)}function $t(t){return T("34",t)}function kt(t){return T("90",t)}function _t(t){return T("1",t)}var Gt={green:xt,red:Ct,yellow:Et,blue:$t,gray:kt,bold:_t};function O(t,r){let n=r.ignores?[...new Set([...t.ignores||[],...r.ignores])]:t.ignores,e={...t.pluginRules||{},...r.pluginRules||{}};if((r.tailwind??t.tailwind)?.enabled&&!Object.prototype.hasOwnProperty.call(e,"pickier/sort-tailwind-classes"))e["pickier/sort-tailwind-classes"]="warn";return{...t,...r,verbose:r.verbose??t.verbose,ignores:n,lint:{...t.lint,...r.lint||{}},format:{...t.format,...r.format||{}},rules:{...t.rules,...r.rules||{}},pluginRules:e}}var U=null;async function Wt(t){if(!t){if(wt.NO_AUTO_CONFIG){if(!U)U=O(R,{});return U}try{let{getConfig:e}=await import("./chunk-ymb49mab.js"),s=await e();return O(R,s)}catch{}return O(R,{})}let r=G(t)?t:yt(process.cwd(),t);if(ht(r).toLowerCase()===".json")try{let e=mt(r,"utf8");return O(R,JSON.parse(e))}catch{return console.warn(`[pickier:warn] Config file not found: ${r}. Using default config values.`),O(R,{})}try{let e=await import(r);return O(R,e.default||e)}catch{return console.warn(`[pickier:warn] Config file not found: ${r}. Using default config values.`),O(R,{})}}function Bt(t){return t.map((r)=>{if(/[*?[\]{}()!]/.test(r))return r;if(/\.[A-Z0-9]+$/i.test(r))return r;return`${r.replace(/\/$/,"")}/**/*`})}function Jt(t,r){let n=t.lastIndexOf(".");if(n<0)return!1;let e=t.slice(n);return r.has(e)}function J(t){return t.replace(/\\/g,"/").replace(/\/+/g,"/")}function It(t){let r=[];for(let n of t){let e=J(n.trim());if(!e)continue;let s=e.match(/\*\*\/\*\.(.+)$/);if(s){r.push({raw:e,kind:"extension",value:s[1]});continue}let i=e.match(/\*\*\/(.+?)\/\*\*$/);if(i){r.push({raw:e,kind:"segment",value:i[1]});continue}let o=e.match(/\*\*\/(.+)$/);if(o)r.push({raw:e,kind:"suffix",value:o[1].replace(/\/$/,"")})}return r}function Kt(t){return[...new Set([...B,...t])]}function K(t,r=process.cwd()){let n=It([...B,...t]);if(n.length===0)return()=>!1;let e=new Set([...St,...B]);return(s)=>{let i=J(s),o=J(r).replace(/\/$/,""),c=i!==o&&!i.startsWith(`${o}/`),f=c?i:i.slice(o.length);for(let p of n){if(c&&!e.has(p.raw))continue;if(p.kind==="extension"){if(f.endsWith(`.${p.value}`))return!0;continue}if(p.kind==="segment"||p.kind==="suffix"){let g=p.value;if(f.includes(`/${g}/`)||f.endsWith(`/${g}`))return!0}}return!1}}function zt(t,r){return K(r)(t)}
|
|
33
|
-
export{fe as i,z as j,Tt as k,Nt as l,vt as m,ct as n,jt as o,Dt as p,Ft as q,wt as r,B as s,St as t,Ut as u,T as v,xt as w,Ct as x,Et as y,$t as z,kt as A,_t as B,Gt as C,O as D,Wt as E,Bt as F,Jt as G,Kt as H,K as I,zt as J};
|
package/dist/chunk-ymb49mab.js
DELETED