1import{t as e}from"./jsx-runtime-SsSjplwM.js";import{d as t,p as n}from"./prop-types-BTvjt2rf.js";import{i as r}from"./locales-BuoYIVCV.js";import{m as i,r as a,s as o}from"./react-router-BzQH59UT.js";var s=typeof window<`u`?window:{screen:{},navigator:{}},c=(s.matchMedia||(function(){return{matches:!1}})).bind(s),l=!1,u={get passive(){return l=!0}},d=function(){};s.addEventListener&&s.addEventListener(`p`,d,u),s.removeEventListener&&s.removeEventListener(`p`,d,!1);var f=l;`PointerEvent`in s;var p=`ontouchstart`in s,m=`TouchEvent`in s;p||m&&c(`(any-pointer: coarse)`).matches,s.navigator.maxTouchPoints;var h=s.navigator.userAgent||``;c(`(pointer: coarse)`).matches&&/iPad|Macintosh/.test(h)&&Math.min(s.screen.width||0,s.screen.height||0),(c(`(pointer: coarse)`).matches||!c(`(pointer: fine)`).matches&&p)&&/Windows.*Firefox/.test(h),c(`(any-pointer: fine)`).matches||c(`(any-hover: hover)`).matches;var g=630,_=e=>e<=g,v=!t&&!n,y=()=>_(window.innerWidth)?`mobile`:!t&&!v?`multi-column`:`single-column`,b=f?{passive:!0}:!1,x=!1,S=()=>{x=!0,window.removeEventListener(`touchstart`,S)};window.addEventListener(`touchstart`,S,b);var C=()=>x,w=e(),T=i(),E=T.push.bind(T),D=T.replace.bind(T);function O(){return o()}function k(e,t){let n=typeof e==`string`?{pathname:e}:{...e};return n.state===void 0&&t!==void 0?n.state=t:n.state!==void 0&&t!==void 0&&r()&&console.log(`You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored`),y()===`multi-column`&&n.pathname&&!n.pathname.startsWith(`/deck`)&&(n.pathname=`/deck${n.pathname}`),n}T.push=(e,t)=>{let n=k(e,t);n.state=n.state??{},n.state.fromMastodon=!0,E(n)},T.replace=(e,t)=>{let n=k(e,t);n.pathname&&(T.location.state?.fromMastodon&&(n.state=n.state??{},n.state.fromMastodon=!0),D(n))};var A=({children:e})=>(0,w.jsx)(a,{history:T,children:e});export{C as a,f as c,_ as i,T as n,y as o,O as r,v as s,A as t}; 2//# sourceMappingURL=router-COf4DbtI.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.