1import{r as u}from"./redux-vendor-d8bZQVbx.js";function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},L.apply(null,arguments)}var R;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(R||(R={}));var F=function(e){return e},U="beforeunload",ne="popstate";function ae(e){e===void 0&&(e={});var t=e,n=t.window,a=n===void 0?document.defaultView:n,r=a.history;function i(){var s=a.location,h=s.pathname,g=s.search,x=s.hash,y=r.state||{};return[y.idx,F({pathname:h,search:g,hash:x,state:y.usr||null,key:y.key||"default"})]}var l=null;function o(){if(l)v.call(l),l=null;else{var s=R.Pop,h=i(),g=h[0],x=h[1];if(v.length){if(g!=null){var y=f-g;y&&(l={action:s,location:x,retry:function(){B(y*-1)}},B(y))}}else j(s)}}a.addEventListener(ne,o);var c=R.Pop,p=i(),f=p[0],d=p[1],m=G(),v=G();f==null&&(f=0,r.replaceState(L({},r.state,{idx:f}),""));function k(s){return typeof s=="string"?s:M(s)}function O(s,h){return h===void 0&&(h=null),F(L({pathname:d.pathname,hash:"",search:""},typeof s=="string"?S(s):s,{state:h,key:re()}))}function J(s,h){return[{usr:s.state,key:s.key,idx:h},k(s)]}function K(s,h,g){return!v.length||(v.call({action:s,location:h,retry:g}),!1)}function j(s){c=s;var h=i();f=h[0],d=h[1],m.call({action:c,location:d})}function D(s,h){var g=R.Push,x=O(s,h);function y(){D(s,h)}if(K(g,x,y)){var w=J(x,f+1),N=w[0],$=w[1];try{r.pushState(N,"",$)}catch{a.location.assign($)}j(g)}}function I(s,h){var g=R.Replace,x=O(s,h);function y(){I(s,h)}if(K(g,x,y)){var w=J(x,f),N=w[0],$=w[1];r.replaceState(N,"",$),j(g)}}function B(s){r.go(s)}var te={get action(){return c},get location(){return d},createHref:k,push:D,replace:I,go:B,back:function(){B(-1)},forward:function(){B(1)},listen:function(h){return m.push(h)},block:function(h){var g=v.push(h);return v.length===1&&a.addEventListener(U,z),function(){g(),v.length||a.removeEventListener(U,z)}}};return te}function z(e){e.preventDefault(),e.returnValue=""}function G(){var e=[];return{get length(){return e.length},push:function(n){return e.push(n),function(){e=e.filter(function(a){return a!==n})}},call:function(n){e.forEach(function(a){return a&&a(n)})}}}function re(){return Math.random().toString(36).substr(2,8)}function M(e){var t=e.pathname,n=t===void 0?"/":t,a=e.search,r=a===void 0?"":a,i=e.hash,l=i===void 0?"":i;return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),l&&l!=="#"&&(n+=l.charAt(0)==="#"?l:"#"+l),n}function S(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}const V=u.createContext(null),H=u.createContext(null),E=u.createContext({outlet:null,matches:[]});function P(e,t){throw new Error(t)}function ie(e,t,n){n===void 0&&(n="/");let a=typeof t=="string"?S(t):t,r=Y(a.pathname||"/",n);if(r==null)return null;let i=Q(e);le(i);let l=null;for(let o=0;l==null&&o<i.length;++o)l=de(i[o],r);return l}function Q(e,t,n,a){return t===void 0&&(t=[]),n===void 0&&(n=[]),a===void 0&&(a=""),e.forEach((r,i)=>{let l={relativePath:r.path||"",caseSensitive:r.caseSensitive===!0,childrenIndex:i,route:r};l.relativePath.startsWith("/")&&(l.relativePath.startsWith(a)||P(),l.relativePath=l.relativePath.slice(a.length));let o=C([a,l.relativePath]),c=n.concat(l);r.children&&r.children.length>0&&(r.index===!0&&P(),Q(r.children,t,c,o)),!(r.path==null&&!r.index)&&t.push({path:o,score:pe(o,r.index),routesMeta:c})}),t}function le(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:me(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}const oe=/^:\w+$/,se=3,ue=2,ce=1,he=10,fe=-2,q=e=>e==="*";function pe(e,t){let n=e.split("/"),a=n.length;return n.some(q)&&(a+=fe),t&&(a+=ue),n.filter(r=>!q(r)).reduce((r,i)=>r+(oe.test(i)?se:i===""?ce:he),a)}function me(e,t){return e.length===t.length&&e.slice(0,-1).every((a,r)=>a===t[r])?e[e.length-1]-t[t.length-1]:0}function de(e,t){let{routesMeta:n}=e,a={},r="/",i=[];for(let l=0;l<n.length;++l){let o=n[l],c=l===n.length-1,p=r==="/"?t:t.slice(r.length)||"/",f
1=ve({path:o.relativePath,caseSensitive:o.caseSensitive,end:c},p);if(!f)return null;Object.assign(a,f.params);let d=o.route;i.push({params:a,pathname:C([r,f.pathname]),pathnameBase:Z(C([r,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(r=C([r,f.pathnameBase]))}return i}function ve(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=ge(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let i=r[0],l=i.replace(/(.)\/+$/,"$1"),o=r.slice(1);return{params:a.reduce((p,f,d)=>{if(f==="*"){let m=o[d]||"";l=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}return p[f]=ye(o[d]||""),p},{}),pathname:i,pathnameBase:l,pattern:e}}function ge(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0);let a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(l,o)=>(a.push(o),"([^\\/]+)"));return e.endsWith("*")?(a.push("*"),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(r,t?void 0:"i"),a]}function ye(e,t){try{return decodeURIComponent(e)}catch{return e}}function Pe(e,t){t===void 0&&(t="/");let{pathname:n,search:a="",hash:r=""}=typeof e=="string"?S(e):e;return{pathname:n?n.startsWith("/")?n:xe(n,t):t,search:Re(a),hash:Se(r)}}function xe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function X(e,t,n){let a=typeof e=="string"?S(e):e,r=e===""||a.pathname===""?"/":a.pathname,i;if(r==null)i=n;else{let o=t.length-1;if(r.startsWith("..")){let c=r.split("/");for(;c[0]==="..";)c.shift(),o-=1;a.pathname=c.join("/")}i=o>=0?t[o]:"/"}let l=Pe(a,i);return r&&r!=="/"&&r.endsWith("/")&&!l.pathname.endsWith("/")&&(l.pathname+="/"),l}function Ce(e){return e===""||e.pathname===""?"/":typeof e=="string"?S(e).pathname:e.pathname}function Y(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&n!=="/"?null:e.slice(t.length)||"/"}const C=e=>e.join("/").replace(/\/\/+/g,"/"),Z=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Re=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Se=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function we(e){b()||P();let{basename:t,navigator:n}=u.useContext(V),{hash:a,pathname:r,search:i}=ee(e),l=r;if(t!=="/"){let o=Ce(e),c=o!=null&&o.endsWith("/");l=r==="/"?t+(c?"/":""):C([t,r])}return n.createHref({pathname:l,search:i,hash:a})}function b(){return u.useContext(H)!=null}function W(){return b()||P(),u.useContext(H).location}function A(){b()||P();let{basename:e,navigator:t}=u.useContext(V),{matches:n}=u.useContext(E),{pathname:a}=W(),r=JSON.stringify(n.map(o=>o.pathnameBase)),i=u.useRef(!1);return u.useEffect(()=>{i.current=!0}),u.useCallback(function(o,c){if(c===void 0&&(c={}),!i.current)return;if(typeof o=="number"){t.go(o);return}let p=X(o,JSON.parse(r),a);e!=="/"&&(p.pathname=C([e,p.pathname])),(c.replace?t.replace:t.push)(p,c.state)},[e,t,r,a])}const Ee=u.createContext(null);function be(e){let t=u.useContext(E).outlet;return t&&u.createElement(Ee.Provider,{value:e},t)}function _e(){let{matches:e}=u.useContext(E),t=e[e.length-1];return t?t.params:{}}function ee(e){let{matches:t}=u.useContext(E),{pathname:n}=W(),a=JSON.stringify(t.map(r=>r.pathnameBase));return u.useMemo(()=>X(e,JSON.parse(a),n),[e,a,n])}function ke(e,t){b()||P();let{matches:n}=u.useContext(E),a=n[n.length-1],r=a?a.params:{};a&&a.pathname;let i=a?a.pathnameBase:"/";a&&a.route;let l=W(),o;if(t){var c;let m=typeof t=="string"?S(t):t;i==="/"||(c=m.pathname)!=null&&c.startsWith(i)||P(),o=m}else o=l;let p=o.pathname||"/",f=i==="/"?p:p.slice(i.length)||"/",d=ie(e,{pathname:f});return Oe(d&&d.map(m=>Object.assign({},m,{params:Object.assign({},r,m.params),pathname:C([i,m.pathname]),pathnameBase:m.pathnameBase==="/"?i:C([i,m.pathnameBase])})),n)}function Oe(e,t){return t===void 0&&(t=[]),e==null?null:e.reduceRight((n,a,r)=>u.createElement(E.Provider,{children:a.route.element!==void 0?a.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,r+1))}}),null)}function Ve(e){let{to:t,replace:n,state:a}=e;b()||P();let r=A();return u.useEffect(()=>{r(t,{replace:n,state:a})}),null}function He(e){return be(e.context)}function Be(e){P()}function $e(e){let{basename:t="/",children:n=null,location:a,navigationType:r=R.Pop,navigator:i,static:l=!1}=e;b()&&P();let o=Z(t),c=u.useMemo(()=>({basename:o,navigator:i,static:l}),[o,i,l]);
1typeof a=="string"&&(a=S(a));let{pathname:p="/",search:f="",hash:d="",state:m=null,key:v="default"}=a,k=u.useMemo(()=>{let O=Y(p,o);return O==null?null:{pathname:O,search:f,hash:d,state:m,key:v}},[o,p,f,d,m,v]);return k==null?null:u.createElement(V.Provider,{value:c},u.createElement(H.Provider,{children:n,value:{location:k,navigationType:r}}))}function Je(e){let{children:t,location:n}=e;return ke(T(t),n)}function T(e){let t=[];return u.Children.forEach(e,n=>{if(!u.isValidElement(n))return;if(n.type===u.Fragment){t.push.apply(t,T(n.props.children));return}n.type!==Be&&P();let a={caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path};n.props.children&&(a.children=T(n.props.children)),t.push(a)}),t}function _(){return _=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},_.apply(this,arguments)}function Le(e,t){if(e==null)return{};var n={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}const We=["onClick","reloadDocument","replace","state","target","to"];function Ke(e){let{basename:t,children:n,window:a}=e,r=u.useRef();r.current==null&&(r.current=ae({window:a}));let i=r.current,[l,o]=u.useState({action:i.action,location:i.location});return u.useLayoutEffect(()=>i.listen(o),[i]),u.createElement($e,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i})}function je(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const De=u.forwardRef(function(t,n){let{onClick:a,reloadDocument:r,replace:i=!1,state:l,target:o,to:c}=t,p=Le(t,We),f=we(c),d=Ne(c,{replace:i,state:l,target:o});function m(v){a&&a(v),!v.defaultPrevented&&!r&&d(v)}return u.createElement("a",_({},p,{href:f,onClick:m,ref:n,target:o}))});function Ne(e,t){let{target:n,replace:a,state:r}=t===void 0?{}:t,i=A(),l=W(),o=ee(e);return u.useCallback(c=>{if(c.button===0&&(!n||n==="_self")&&!je(c)){c.preventDefault();let p=!!a||M(l)===M(o);i(e,{replace:p,state:r})}},[l,i,o,a,r,n,e])}export{Ke as B,De as L,Ve as N,He as O,Je as R,L as _,A as a,Be as b,_e as c,W as u};
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.