import{c4 as x,c5 as M,h as V,c6 as O,O as m,I as v,am as P,a_ as I}from"./index-CYs9MVUz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="7766bcd2-07bb-4f40-9517-0f3fcc5c2cbb",e._sentryDebugIdIdentifier="sentry-dbid-7766bcd2-07bb-4f40-9517-0f3fcc5c2cbb")}catch{}})();function q(e){return x()?(M(e),!0):!1}function f(e){return typeof e=="function"?e():V(e)}let c;function z(e,{mode:r="replace",route:t=P(),router:p=I()}={}){c=t.hash,q(()=>{c=void 0});let o;const i=O((l,s)=>(o=s,{get(){return l(),c||f(e)},set(u){u!==c&&(c=u===null?void 0:u,s(),m(()=>{const{params:y,query:n}=t;p[f(r)]({params:y,query:n,hash:c})}))}}));return v(()=>t.hash,()=>{c=t.hash,o()},{flush:"sync"}),i}var N=Object.defineProperty,E=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,S=(e,r,t)=>r in e?N(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,$=(e,r)=>{for(var t in r||(r={}))W.call(r,t)&&S(e,t,r[t]);if(E)for(var t of E(r))C.call(r,t)&&S(e,t,r[t]);return e};const g=new WeakMap;function A(e,r,t={}){const{mode:p="replace",route:o=P(),router:i=I(),transform:l=n=>n}=t;g.has(o)||g.set(o,new Map);const s=g.get(o);q(()=>{s.delete(e)}),s.set(e,o.params[e]);let u;const y=O((n,_)=>(u=_,{get(){n();const a=s.get(e);return l(a!==void 0?a:f(r))},set(a){s.get(e)!==a&&(s.set(e,a),_(),m(()=>{const{params:d,query:h,hash:b}=o;i[f(p)]({params:$($({},d),Object.fromEntries(s.entries())),query:h,hash:b})}))}}));return v(()=>o.params[e],n=>{s.set(e,n),u()},{flush:"sync"}),y}var H=Object.defineProperty,j=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,D=(e,r,t)=>r in e?H(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,R=(e,r)=>{for(var t in r||(r={}))Q.call(r,t)&&D(e,t,r[t]);if(j)for(var t of j(r))T.call(r,t)&&D(e,t,r[t]);return e};const w=new WeakMap;function B(e,r,t={}){const{mode:p="replace",route:o=P(),router:i=I(),transform:l=n=>n}=t;w.has(o)||w.set(o,new Map);const s=w.get(o);q(()=>{s.delete(e)}),s.set(e,o.query[e]);let u;const y=O((n,_)=>(u=_,{get(){n();const a=s.get(e);return l(a!==void 0?a:f(r))},set(a){s.get(e)!==a&&(s.set(e,a),_(),m(()=>{const{params:d,query:h,hash:b}=o;i[f(p)]({params:d,query:R(R({},h),Object.fromEntries(s.entries())),hash:b})}))}}));return v(()=>o.query[e],n=>{s.set(e,n),u()},{flush:"sync"}),y}export{B as a,z as b,A as u}; //# sourceMappingURL=index-B6GWZ8Y7.js.map