import{createContext as l}from"react";import s,{memo as n,useContext as f,useMemo as o}from"react";var c=l(Object.freeze({middleware:Object.freeze([])})),m=c,u=Object.freeze([]);function w({children:i,middleware:e=u,priority:a}){let r=f(m),t=o(()=>Object.freeze(a==="low"?[...r.middleware,...e]:[...e,...r.middleware]),[r,e,a]),d=o(()=>({middleware:t}),[t]);return s.createElement(m.Provider,{value:d},i)}var v=n(w);export{m as a,v as b};
//# sourceMappingURL=chunk-4HRGWH64.js.map
