1import{r as ot,j as g,g as y,l as K}from"./@babel-Dv-xQaqJ.js";import{a as v}from"./react-Ph8KmUpc.js";import{P as I}from"./prop-types-COOZHFUr.js";import{c as it,a as M,l as at,b as ut}from"./history-Dj_sFSuk.js";import{i as C}from"./tiny-invariant-BaFNuDhB.js";import"./react-is-8JwjhRSi.js";import{h as st}from"./hoist-non-react-statics-BSI0cVgy.js";var b={exports:{}},ct=Array.isArray||function(t){return Object.prototype.toString.call(t)=="[object Array]"},A=ct;b.exports=Q;b.exports.parse=D;b.exports.compile=pt;b.exports.tokensToFunction=X;b.exports.tokensToRegExp=z;var lt=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function D(t,e){for(var r=[],o=0,n=0,i="",c=e&&e.delimiter||"/",u;(u=lt.exec(t))!=null;){var p=u[0],l=u[1],a=u.index;if(i+=t.slice(n,a),n=a+p.length,l){i+=l[1];continue}var s=t[n],f=u[2],h=u[3],d=u[4],w=u[5],m=u[6],E=u[7];i&&(r.push(i),i="");var $=f!=null&&s!=null&&s!==f,R=m==="+"||m==="*",P=m==="?"||m==="*",U=u[2]||c,_=d||w;r.push({name:h||o++,prefix:f||"",delimiter:U,optional:P,repeat:R,partial:$,asterisk:!!E,pattern:_?vt(_):E?".*":"[^"+T(U)+"]+?"})}return n<t.length&&(i+=t.substr(n)),i&&r.push(i),r}function pt(t,e){return X(D(t,e),e)}function ft(t){return encodeURI(t).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function ht(t){return encodeURI(t).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function X(t,e){for(var r=new Array(t.length),o=0;o<t.length;o++)typeof t[o]=="object"&&(r[o]=new RegExp("^(?:"+t[o].pattern+")$",B(e)));return function(n,i){for(var c="",u=n||{},p=i||{},l=p.pretty?ft:encodeURIComponent,a=0;a<t.length;a++){var s=t[a];if(typeof s=="string"){c+=s;continue}var f=u[s.name],h;if(f==null)if(s.optional){s.partial&&(c+=s.prefix);continue}else throw new TypeError('Expected "'+s.name+'" to be defined');if(A(f)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(f.length===0){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var d=0;d<f.length;d++){if(h=l(f[d]),!r[a].test(h))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'", but received `'+JSON.stringify(h)+"`");c+=(d===0?s.prefix:s.delimiter)+h}continue}if(h=s.asterisk?ht(f):l(f),!r[a].test(h))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but received "'+h+'"');c+=s.prefix+h}return c}}function T(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function vt(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function N(t,e){return t.keys=e,t}function B(t){return t&&t.sensitive?"":"i"}function dt(t,e){var r=t.source.match(/\((?!\?)/g);if(r)for(var o=0;o<r.length;o++)e.push({name:o,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return N(t,e)}function mt(t,e,r){for(var o=[],n=0;n<t.length;n++)o.push(Q(t[n],e,r).source);var i=new RegExp("(?:"+o.join("|")+")",B(r));return N(i,e)}function gt(t,e,r){return z(D(t,r),e,r)}function z(t,e,r){A(e)||(r=e||r,e=[]),r=r||{};for(var o=r.strict,n=r.end!==!1,i="",c=0;c<t.length;c++){var u=t[c];if(typeof u=="string")i+=T(u);else{var p=T(u.prefix),l="(?:"+u.pattern+")";e.push(u),u.repeat&&(l+="(?:"+p+l+")*"),u.optional?u.partial?l=p+"("+l+")?":l="(?:"+p+"("+l+"))?":l=p+"("+l+")",i+=l}}var a=T(r.delimiter||"/"),s=i.slice(-a.length)===a;return o||(i=(s?i.slice(0,-a.length):i)+"(?:"+a+"(?=$))?"),n?i+="$":i+=o&&s?"":"(?="+a+"|$)",N(new RegExp("^"+i,B(r)),e)}function Q(t,e,r){return A(e)||(r=e||r,e=[]),r=r||{},t instanceof RegExp?dt(t,e):A(t)?mt(t,e,r):gt(t,e,r)}var yt=b.exports;const Y=ot(yt);var L=1073741823,H=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function xt(){var t="__global_unique_id__";return H[t]=(H[t]||0)+1}function Et(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function Ct(t){var e=[];return{on:function(o){e.push(o)},off:function(o){e=e.filter(function(n){return n!==o})},get:function(){return t},set:function(o,n){t=o,e.forEach(function(i){return i(t,n)})}}}function bt(t){return Array.isArray(t)?t[0]:t}function wt(t,e){var r,o,n="__create-react-context-"+xt()+"__",i=function(u){g(p,u);function p(){for(var a,s=arguments.length,f=new Array(s),h=0;h<s;h++)f[h]=arguments[h];return a=u.call.apply(u,[this].concat(f))||this,a.emitter=Ct(a.props.value),a}var l=p.prototype;return l.getChildContext=function(){var s;return s={},s[n]=this.emitter,s},l.componentWillReceiveProps=function(s){if(this.props.value!==s.value){var f=this.props.value,h=s.value,d;Et(f,h)?d=0:(d=typeof e=="function"?e(f,h):L,d|=0,d!==0&&this.emitter.set(s.value,d))}},l.render=function(){return this.props.children},p}(v.Component);i.childContextTypes=(r={},r[n]=I.object.isRequired,r);var c=function(u){g(p,u);function p(){for(var a,s=arguments.length,f=new Array(s),h=0;h<s;h++)f[h]=arguments[h];return a=u.call.apply(u,[this].concat(f))||this,a.observedBits=void 0,a.state={value:a.getValue()},a.onUpdate=function(d,w){var m=a.observedBits|0;m&w&&a.setState({value:a.getValue()})},a}var l=p.prototype;return l.componentWillReceiveProps=function(s){var f=s.observedBits;this.observedBits=f??L},l.componentDidMount=function(){this.context[n]&&this.context[n].on(this.onUpdate);var s=this.props.observedBits;this.observedBits=s??L},l.componentWillUnmount=function(){this.context[n]&&this.context[n].off(this.onUpdate)},l.getValue=function(){return this.context[n]?this.context[n].get():t},l.render=function(){return bt(this.props.children)(this.state.value)},p}(v.Component);return c.contextTypes=(o={},o[n]=I.object,o),{Provider:i,Consumer:c}}var Rt=v.createContext||wt,Z=function(e){var r=Rt();return r.displayName=e,r},k=Z("Router-History"),x=Z("Router"),tt=function(t){g(e,t),e.computeRootMatch=function(n){return{path:"/",url:"/",params:{},isExact:n==="/"}};function e(o){var n;return n=t.call(this,o)||this,n.state={location:o.history.location},n._isMounted=!1,n._pendingLocation=null,o.staticContext||(n.unlisten=o.history.listen(function(i){n._pendingLocation=i})),n}
1var r=e.prototype;return r.componentDidMount=function(){var n=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(i){n._isMounted&&n.setState({location:i})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},r.render=function(){return v.createElement(x.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},v.createElement(k.Provider,{children:this.props.children||null,value:this.props.history}))},e}(v.Component);v.Component;var et=function(t){g(e,t);function e(){return t.apply(this,arguments)||this}var r=e.prototype;return r.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},r.componentDidUpdate=function(n){this.props.onUpdate&&this.props.onUpdate.call(this,this,n)},r.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},r.render=function(){return null},e}(v.Component);function It(t){var e=t.message,r=t.when,o=r===void 0?!0:r;return v.createElement(x.Consumer,null,function(n){if(n||C(),!o||n.staticContext)return null;var i=n.history.block;return v.createElement(et,{onMount:function(u){u.release=i(e)},onUpdate:function(u,p){p.message!==e&&(u.release(),u.release=i(e))},onUnmount:function(u){u.release()},message:e})})}var S={},Pt=1e4,O=0;function Ut(t){if(S[t])return S[t];var e=Y.compile(t);return O<Pt&&(S[t]=e,O++),e}function q(t,e){return t===void 0&&(t="/"),e===void 0&&(e={}),t==="/"?t:Ut(t)(e,{pretty:!0})}function Ht(t){var e=t.computedMatch,r=t.to,o=t.push,n=o===void 0?!1:o;return v.createElement(x.Consumer,null,function(i){i||C();var c=i.history,u=i.staticContext,p=n?c.push:c.replace,l=M(e?typeof r=="string"?q(r,e.params):y({},r,{pathname:q(r.pathname,e.params)}):r);return u?(p(l),null):v.createElement(et,{onMount:function(){p(l)},onUpdate:function(s,f){var h=M(f.to);at(h,y({},l,{key:h.key}))||p(l)},to:r})})}var F={},_t=1e4,G=0;function Tt(t,e){var r=""+e.end+e.strict+e.sensitive,o=F[r]||(F[r]={});if(o[t])return o[t];var n=[],i=Y(t,n,e),c={regexp:i,keys:n};return G<_t&&(o[t]=c,G++),c}function rt(t,e){e===void 0&&(e={}),(typeof e=="string"||Array.isArray(e))&&(e={path:e});var r=e,o=r.path,n=r.exact,i=n===void 0?!1:n,c=r.strict,u=c===void 0?!1:c,p=r.sensitive,l=p===void 0?!1:p,a=[].concat(o);return a.reduce(function(s,f){if(!f&&f!=="")return null;if(s)return s;var h=Tt(f,{end:i,strict:u,sensitive:l}),d=h.regexp,w=h.keys,m=d.exec(t);if(!m)return null;var E=m[0],$=m.slice(1),R=t===E;return i&&!R?null:{path:f,url:f==="/"&&E===""?"/":E,isExact:R,params:w.reduce(function(P,U,_){return P[U.name]=$[_],P},{})}},null)}function Mt(t){return v.Children.count(t)===0}var Ot=function(t){g(e,t);function e(){return t.apply(this,arguments)||this}var r=e.prototype;return r.render=function(){var n=this;return v.createElement(x.Consumer,null,function(i){i||C();var c=n.props.location||i.location,u=n.props.computedMatch?n.props.computedMatch:n.props.path?rt(c.pathname,n.props):i.match,p=y({},i,{location:c,match:u}),l=n.props,a=l.children,s=l.component,f=l.render;return Array.isArray(a)&&Mt(a)&&(a=null),v.createElement(x.Provider,{value:p},p.match?a?typeof a=="function"?a(p):a:s?v.createElement(s,p):f?f(p):null:typeof a=="function"?a(p):null)})},e}(v.Component);function j(t){return t.charAt(0)==="/"?t:"/"+t}function At(t,e){return t?y({},e,{pathname:j(t)+e.pathname}):e}function $t(t,e){if(!t)return e;var r=j(t);return e.pathname.indexOf(r)!==0?e:y({},e,{pathname:e.pathname.substr(r.length)})}function V(t){return typeof t=="string"?t:ut(t)}function W(t){return function(){C()}}function J(){}v.Component;var qt=function(t){g(e,t);function e(){return t.apply(this,arguments)||this}var r=e.prototype;return r.render=function(){var n=this;return v.createElement(x.Consumer,null,function(i){i||C();var c=n.props.location||i.location,u,p;
1return v.Children.forEach(n.props.children,function(l){if(p==null&&v.isValidElement(l)){u=l;var a=l.props.path||l.props.from;p=a?rt(c.pathname,y({},l.props,{path:a})):i.match}}),p?v.cloneElement(u,{location:c,computedMatch:p}):null})},e}(v.Component);function Ft(t){var e="withRouter("+(t.displayName||t.name)+")",r=function(n){var i=n.wrappedComponentRef,c=K(n,["wrappedComponentRef"]);return v.createElement(x.Consumer,null,function(u){return u||C(),v.createElement(t,y({},c,u,{ref:i}))})};return r.displayName=e,r.WrappedComponent=t,st(r,t)}var nt=v.useContext;function Gt(){return nt(k)}function Vt(){var t=nt(x).match;return t?t.params:{}}export{It as P,tt as R,qt as S,Ht as a,Ot as b,x as c,Vt as d,rt as m,Gt as u,Ft as w};
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.