import{__exports as e}from"../../../../../../../_virtual/route-matcher.js_commonjs-exports";export{__exports as default}from"../../../../../../../_virtual/route-matcher.js_commonjs-exports";e.__esModule=!0,e.getRouteMatcher=function(e){const{re:o,groups:t}=e;return e=>{const r=o.exec(e);if(!r)return!1;const s=e=>{try{return decodeURIComponent(e)}catch(e){const o=new Error("failed to decode param");throw o.code="DECODE_FAILED",o}},c={};return Object.keys(t).forEach((e=>{const o=t[e],n=r[o.pos];void 0!==n&&(c[e]=~n.indexOf("/")?n.split("/").map((e=>s(e))):o.repeat?[s(n)]:s(n))})),c}};
//# sourceMappingURL=route-matcher.js.map
