import{__exports as t}from"../../../../../_virtual/matcher.mjs";import{__require as e}from"../../utils/index.mjs";var s;function r(){if(s)return t;s=1,Object.defineProperty(t,"__esModule",{value:!0});const r=e();return t.default=class{constructor(t,e,s){this._patterns=t,this._settings=e,this._micromatchOptions=s,this._storage=[],this._fillStorage()}_fillStorage(){for(const t of this._patterns){const e=this._getPatternSegments(t),s=this._splitSegmentsIntoSections(e);this._storage.push({complete:s.length<=1,pattern:t,segments:e,sections:s})}}_getPatternSegments(t){return r.pattern.getPatternParts(t,this._micromatchOptions).map(t=>r.pattern.isDynamicPattern(t,this._settings)?{dynamic:!0,pattern:t,patternRe:r.pattern.makeRe(t,this._micromatchOptions)}:{dynamic:!1,pattern:t})}_splitSegmentsIntoSections(t){return r.array.splitWhen(t,t=>t.dynamic&&r.pattern.hasGlobStar(t.pattern))}},t}export{r as __require};