@hari_digitus/sms-ui-library 6.0.1 → 6.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ie=require("react");function gr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=gr(Ie);var he={exports:{}},ae={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react");var oe={exports:{}},H={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var gt;function yr(){if(gt)return ae;gt=1;var e=Ie,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function l(c,s,m){var f,h={},v=null,y=null;m!==void 0&&(v=""+m),s.key!==void 0&&(v=""+s.key),s.ref!==void 0&&(y=s.ref);for(f in s)a.call(s,f)&&!o.hasOwnProperty(f)&&(h[f]=s[f]);if(c&&c.defaultProps)for(f in s=c.defaultProps,s)h[f]===void 0&&(h[f]=s[f]);return{$$typeof:t,type:c,key:v,ref:y,props:h,_owner:i.current}}return ae.Fragment=n,ae.jsx=l,ae.jsxs=l,ae}var ie={};/**
9
+ */var Fe;function vr(){if(Fe)return H;Fe=1;var w=P,T=Symbol.for("react.element"),m=Symbol.for("react.fragment"),S=Object.prototype.hasOwnProperty,k=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,N={key:!0,ref:!0,__self:!0,__source:!0};function I(x,v,D){var b,R={},C=null,$=null;D!==void 0&&(C=""+D),v.key!==void 0&&(C=""+v.key),v.ref!==void 0&&($=v.ref);for(b in v)S.call(v,b)&&!N.hasOwnProperty(b)&&(R[b]=v[b]);if(x&&x.defaultProps)for(b in v=x.defaultProps,v)R[b]===void 0&&(R[b]=v[b]);return{$$typeof:T,type:x,key:C,ref:$,props:R,_owner:k.current}}return H.Fragment=m,H.jsx=I,H.jsxs=I,H}var K={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,28 +14,17 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var yt;function xr(){return yt||(yt=1,process.env.NODE_ENV!=="production"&&(function(){var e=Ie,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),b=Symbol.iterator,E="@@iterator";function g(r){if(r===null||typeof r!="object")return null;var d=b&&r[b]||r[E];return typeof d=="function"?d:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(r){{for(var d=arguments.length,p=new Array(d>1?d-1:0),x=1;x<d;x++)p[x-1]=arguments[x];_("error",r,p)}}function _(r,d,p){{var x=w.ReactDebugCurrentFrame,T=x.getStackAddendum();T!==""&&(d+="%s",p=p.concat([T]));var k=p.map(function(S){return String(S)});k.unshift("Warning: "+d),Function.prototype.apply.call(console[r],console,k)}}var L=!1,j=!1,A=!1,H=!1,z=!1,K;K=Symbol.for("react.module.reference");function re(r){return!!(typeof r=="string"||typeof r=="function"||r===a||r===o||z||r===i||r===m||r===f||H||r===y||L||j||A||typeof r=="object"&&r!==null&&(r.$$typeof===v||r.$$typeof===h||r.$$typeof===l||r.$$typeof===c||r.$$typeof===s||r.$$typeof===K||r.getModuleId!==void 0))}function we(r,d,p){var x=r.displayName;if(x)return x;var T=d.displayName||d.name||"";return T!==""?p+"("+T+")":p}function se(r){return r.displayName||"Context"}function W(r){if(r==null)return null;if(typeof r.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case a:return"Fragment";case n:return"Portal";case o:return"Profiler";case i:return"StrictMode";case m:return"Suspense";case f:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case c:var d=r;return se(d)+".Consumer";case l:var p=r;return se(p._context)+".Provider";case s:return we(r,r.render,"ForwardRef");case h:var x=r.displayName||null;return x!==null?x:W(r.type)||"Memo";case v:{var T=r,k=T._payload,S=T._init;try{return W(S(k))}catch{return null}}}return null}var V=Object.assign,N=0,ze,Ke,Ge,Xe,Ze,Qe,et;function tt(){}tt.__reactDisabledLog=!0;function Vt(){{if(N===0){ze=console.log,Ke=console.info,Ge=console.warn,Xe=console.error,Ze=console.group,Qe=console.groupCollapsed,et=console.groupEnd;var r={configurable:!0,enumerable:!0,value:tt,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}N++}}function Yt(){{if(N--,N===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},r,{value:ze}),info:V({},r,{value:Ke}),warn:V({},r,{value:Ge}),error:V({},r,{value:Xe}),group:V({},r,{value:Ze}),groupCollapsed:V({},r,{value:Qe}),groupEnd:V({},r,{value:et})})}N<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ce=w.ReactCurrentDispatcher,Se;function ue(r,d,p){{if(Se===void 0)try{throw Error()}catch(T){var x=T.stack.trim().match(/\n( *(at )?)/);Se=x&&x[1]||""}return`
18
- `+Se+r}}var Pe=!1,ce;{var Jt=typeof WeakMap=="function"?WeakMap:Map;ce=new Jt}function rt(r,d){if(!r||Pe)return"";{var p=ce.get(r);if(p!==void 0)return p}var x;Pe=!0;var T=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var k;k=Ce.current,Ce.current=null,Vt();try{if(d){var S=function(){throw Error()};if(Object.defineProperty(S.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(S,[])}catch(I){x=I}Reflect.construct(r,[],S)}else{try{S.call()}catch(I){x=I}r.call(S.prototype)}}else{try{throw Error()}catch(I){x=I}r()}}catch(I){if(I&&x&&typeof I.stack=="string"){for(var C=I.stack.split(`
19
- `),F=x.stack.split(`
20
- `),O=C.length-1,$=F.length-1;O>=1&&$>=0&&C[O]!==F[$];)$--;for(;O>=1&&$>=0;O--,$--)if(C[O]!==F[$]){if(O!==1||$!==1)do if(O--,$--,$<0||C[O]!==F[$]){var M=`
21
- `+C[O].replace(" at new "," at ");return r.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",r.displayName)),typeof r=="function"&&ce.set(r,M),M}while(O>=1&&$>=0);break}}}finally{Pe=!1,Ce.current=k,Yt(),Error.prepareStackTrace=T}var ee=r?r.displayName||r.name:"",X=ee?ue(ee):"";return typeof r=="function"&&ce.set(r,X),X}function qt(r,d,p){return rt(r,!1)}function zt(r){var d=r.prototype;return!!(d&&d.isReactComponent)}function fe(r,d,p){if(r==null)return"";if(typeof r=="function")return rt(r,zt(r));if(typeof r=="string")return ue(r);switch(r){case m:return ue("Suspense");case f:return ue("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case s:return qt(r.render);case h:return fe(r.type,d,p);case v:{var x=r,T=x._payload,k=x._init;try{return fe(k(T),d,p)}catch{}}}return""}var ne=Object.prototype.hasOwnProperty,nt={},at=w.ReactDebugCurrentFrame;function de(r){if(r){var d=r._owner,p=fe(r.type,r._source,d?d.type:null);at.setExtraStackFrame(p)}else at.setExtraStackFrame(null)}function Kt(r,d,p,x,T){{var k=Function.call.bind(ne);for(var S in r)if(k(r,S)){var C=void 0;try{if(typeof r[S]!="function"){var F=Error((x||"React class")+": "+p+" type `"+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[S]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw F.name="Invariant Violation",F}C=r[S](d,S,x,p,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(O){C=O}C&&!(C instanceof Error)&&(de(T),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",x||"React class",p,S,typeof C),de(null)),C instanceof Error&&!(C.message in nt)&&(nt[C.message]=!0,de(T),R("Failed %s type: %s",p,C.message),de(null))}}}var Gt=Array.isArray;function _e(r){return Gt(r)}function Xt(r){{var d=typeof Symbol=="function"&&Symbol.toStringTag,p=d&&r[Symbol.toStringTag]||r.constructor.name||"Object";return p}}function Zt(r){try{return it(r),!1}catch{return!0}}function it(r){return""+r}function ot(r){if(Zt(r))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xt(r)),it(r)}var lt=w.ReactCurrentOwner,Qt={key:!0,ref:!0,__self:!0,__source:!0},st,ut;function er(r){if(ne.call(r,"ref")){var d=Object.getOwnPropertyDescriptor(r,"ref").get;if(d&&d.isReactWarning)return!1}return r.ref!==void 0}function tr(r){if(ne.call(r,"key")){var d=Object.getOwnPropertyDescriptor(r,"key").get;if(d&&d.isReactWarning)return!1}return r.key!==void 0}function rr(r,d){typeof r.ref=="string"&&lt.current}function nr(r,d){{var p=function(){st||(st=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",d))};p.isReactWarning=!0,Object.defineProperty(r,"key",{get:p,configurable:!0})}}function ar(r,d){{var p=function(){ut||(ut=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",d))};p.isReactWarning=!0,Object.defineProperty(r,"ref",{get:p,configurable:!0})}}var ir=function(r,d,p,x,T,k,S){var C={$$typeof:t,type:r,key:d,ref:p,props:S,_owner:k};return C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(C,"_self",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.defineProperty(C,"_source",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C};function or(r,d,p,x,T){{var k,S={},C=null,F=null;p!==void 0&&(ot(p),C=""+p),tr(d)&&(ot(d.key),C=""+d.key),er(d)&&(F=d.ref,rr(d,T));for(k in d)ne.call(d,k)&&!Qt.hasOwnProperty(k)&&(S[k]=d[k]);if(r&&r.defaultProps){var O=r.defaultProps;for(k in O)S[k]===void 0&&(S[k]=O[k])}if(C||F){var $=typeof r=="function"?r.displayName||r.name||"Unknown":r;C&&nr(S,$),F&&ar(S,$)}return ir(r,C,F,T,x,lt.current,S)}}var Te=w.ReactCurrentOwner,ct=w.ReactDebugCurrentFrame;function Q(r){if(r){var d=r._owner,p=fe(r.type,r._source,d?d.type:null);ct.setExtraStackFrame(p)}else ct.setExtraStackFrame(null)}var ke;ke=!1;function je(r){return typeof r=="object"&&r!==null&&r.$$typeof===t}function ft(){{if(Te.current){var r=W(Te.current.type);if(r)return`
17
+ */var Le;function pr(){return Le||(Le=1,process.env.NODE_ENV!=="production"&&(function(){var w=P,T=Symbol.for("react.element"),m=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),x=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),E=Symbol.iterator,G="@@iterator";function Y(e){if(e===null||typeof e!="object")return null;var r=E&&e[E]||e[G];return typeof r=="function"?r:null}var F=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];le("error",e,t)}}function le(e,r,t){{var a=F.ReactDebugCurrentFrame,o=a.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var l=t.map(function(s){return String(s)});l.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,l)}}var ce=!1,z=!1,ue=!1,X=!1,U=!1,B;B=Symbol.for("react.module.reference");function Z(e){return!!(typeof e=="string"||typeof e=="function"||e===S||e===N||U||e===k||e===D||e===b||X||e===$||ce||z||ue||typeof e=="object"&&e!==null&&(e.$$typeof===C||e.$$typeof===R||e.$$typeof===I||e.$$typeof===x||e.$$typeof===v||e.$$typeof===B||e.getModuleId!==void 0))}function fe(e,r,t){var a=e.displayName;if(a)return a;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function Q(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case m:return"Portal";case N:return"Profiler";case k:return"StrictMode";case D:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x:var r=e;return Q(r)+".Consumer";case I:var t=e;return Q(t._context)+".Provider";case v:return fe(e,e.render,"ForwardRef");case R:var a=e.displayName||null;return a!==null?a:O(e.type)||"Memo";case C:{var o=e,l=o._payload,s=o._init;try{return O(s(l))}catch{return null}}}return null}var c=Object.assign,j=0,A,u,ee,re,V,q,h;function ne(){}ne.__reactDisabledLog=!0;function de(){{if(j===0){A=console.log,u=console.info,ee=console.warn,re=console.error,V=console.group,q=console.groupCollapsed,h=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ne,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}j++}}function Ye(){{if(j--,j===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:c({},e,{value:A}),info:c({},e,{value:u}),warn:c({},e,{value:ee}),error:c({},e,{value:re}),group:c({},e,{value:V}),groupCollapsed:c({},e,{value:q}),groupEnd:c({},e,{value:h})})}j<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ve=F.ReactCurrentDispatcher,pe;function te(e,r,t){{if(pe===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);pe=a&&a[1]||""}return`
18
+ `+pe+e}}var he=!1,ae;{var Ue=typeof WeakMap=="function"?WeakMap:Map;ae=new Ue}function ye(e,r){if(!e||he)return"";{var t=ae.get(e);if(t!==void 0)return t}var a;he=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var l;l=ve.current,ve.current=null,de();try{if(r){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(y){a=y}Reflect.construct(e,[],s)}else{try{s.call()}catch(y){a=y}e.call(s.prototype)}}else{try{throw Error()}catch(y){a=y}e()}}catch(y){if(y&&a&&typeof y.stack=="string"){for(var i=y.stack.split(`
19
+ `),g=a.stack.split(`
20
+ `),f=i.length-1,d=g.length-1;f>=1&&d>=0&&i[f]!==g[d];)d--;for(;f>=1&&d>=0;f--,d--)if(i[f]!==g[d]){if(f!==1||d!==1)do if(f--,d--,d<0||i[f]!==g[d]){var _=`
21
+ `+i[f].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,_),_}while(f>=1&&d>=0);break}}}finally{he=!1,ve.current=l,Ye(),Error.prepareStackTrace=o}var M=e?e.displayName||e.name:"",L=M?te(M):"";return typeof e=="function"&&ae.set(e,L),L}function Be(e,r,t){return ye(e,!1)}function Ve(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function ie(e,r,t){if(e==null)return"";if(typeof e=="function")return ye(e,Ve(e));if(typeof e=="string")return te(e);switch(e){case D:return te("Suspense");case b:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case v:return Be(e.render);case R:return ie(e.type,r,t);case C:{var a=e,o=a._payload,l=a._init;try{return ie(l(o),r,t)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,Ee={},Re=F.ReactDebugCurrentFrame;function se(e){if(e){var r=e._owner,t=ie(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}function qe(e,r,t,a,o){{var l=Function.call.bind(J);for(var s in e)if(l(e,s)){var i=void 0;try{if(typeof e[s]!="function"){var g=Error((a||"React class")+": "+t+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}i=e[s](r,s,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){i=f}i&&!(i instanceof Error)&&(se(o),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,s,typeof i),se(null)),i instanceof Error&&!(i.message in Ee)&&(Ee[i.message]=!0,se(o),p("Failed %s type: %s",t,i.message),se(null))}}}var Je=Array.isArray;function me(e){return Je(e)}function He(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ke(e){try{return _e(e),!1}catch{return!0}}function _e(e){return""+e}function Se(e){if(Ke(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),_e(e)}var we=F.ReactCurrentOwner,Ge={key:!0,ref:!0,__self:!0,__source:!0},Ce,Oe;function ze(e){if(J.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Xe(e){if(J.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ze(e,r){typeof e.ref=="string"&&we.current}function Qe(e,r){{var t=function(){Ce||(Ce=!0,p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function er(e,r){{var t=function(){Oe||(Oe=!0,p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var rr=function(e,r,t,a,o,l,s){var i={$$typeof:T,type:e,key:r,ref:t,props:s,_owner:l};return i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(i,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(i,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i};function nr(e,r,t,a,o){{var l,s={},i=null,g=null;t!==void 0&&(Se(t),i=""+t),Xe(r)&&(Se(r.key),i=""+r.key),ze(r)&&(g=r.ref,Ze(r,o));for(l in r)J.call(r,l)&&!Ge.hasOwnProperty(l)&&(s[l]=r[l]);if(e&&e.defaultProps){var f=e.defaultProps;for(l in f)s[l]===void 0&&(s[l]=f[l])}if(i||g){var d=typeof e=="function"?e.displayName||e.name||"Unknown":e;i&&Qe(s,d),g&&er(s,d)}return rr(e,i,g,o,a,we.current,s)}}var xe=F.ReactCurrentOwner,Pe=F.ReactDebugCurrentFrame;function W(e){if(e){var r=e._owner,t=ie(e.type,e._source,r?r.type:null);Pe.setExtraStackFrame(t)}else Pe.setExtraStackFrame(null)}var be;be=!1;function ge(e){return typeof e=="object"&&e!==null&&e.$$typeof===T}function Te(){{if(xe.current){var e=O(xe.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+r+"`."}return""}}function lr(r){return""}var dt={};function sr(r){{var d=ft();if(!d){var p=typeof r=="string"?r:r.displayName||r.name;p&&(d=`
23
+ Check the render method of \``+e+"`."}return""}}function tr(e){return""}var ke={};function ar(e){{var r=Te();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
24
24
 
25
- Check the top-level render call using <`+p+">.")}return d}}function ht(r,d){{if(!r._store||r._store.validated||r.key!=null)return;r._store.validated=!0;var p=sr(d);if(dt[p])return;dt[p]=!0;var x="";r&&r._owner&&r._owner!==Te.current&&(x=" It was passed a child from "+W(r._owner.type)+"."),Q(r),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',p,x),Q(null)}}function mt(r,d){{if(typeof r!="object")return;if(_e(r))for(var p=0;p<r.length;p++){var x=r[p];je(x)&&ht(x,d)}else if(je(r))r._store&&(r._store.validated=!0);else if(r){var T=g(r);if(typeof T=="function"&&T!==r.entries)for(var k=T.call(r),S;!(S=k.next()).done;)je(S.value)&&ht(S.value,d)}}}function ur(r){{var d=r.type;if(d==null||typeof d=="string")return;var p;if(typeof d=="function")p=d.propTypes;else if(typeof d=="object"&&(d.$$typeof===s||d.$$typeof===h))p=d.propTypes;else return;if(p){var x=W(d);Kt(p,r.props,"prop",x,r)}else if(d.PropTypes!==void 0&&!ke){ke=!0;var T=W(d);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",T||"Unknown")}typeof d.getDefaultProps=="function"&&!d.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function cr(r){{for(var d=Object.keys(r.props),p=0;p<d.length;p++){var x=d[p];if(x!=="children"&&x!=="key"){Q(r),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x),Q(null);break}}r.ref!==null&&(Q(r),R("Invalid attribute `ref` supplied to `React.Fragment`."),Q(null))}}var pt={};function vt(r,d,p,x,T,k){{var S=re(r);if(!S){var C="";(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(C+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var F=lr();F?C+=F:C+=ft();var O;r===null?O="null":_e(r)?O="array":r!==void 0&&r.$$typeof===t?(O="<"+(W(r.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):O=typeof r,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",O,C)}var $=or(r,d,p,T,k);if($==null)return $;if(S){var M=d.children;if(M!==void 0)if(x)if(_e(M)){for(var ee=0;ee<M.length;ee++)mt(M[ee],r);Object.freeze&&Object.freeze(M)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else mt(M,r)}if(ne.call(d,"key")){var X=W(r),I=Object.keys(d).filter(function(vr){return vr!=="key"}),Oe=I.length>0?"{key: someKey, "+I.join(": ..., ")+": ...}":"{key: someKey}";if(!pt[X+Oe]){var pr=I.length>0?"{"+I.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+t+">.")}return r}}function Ne(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ar(r);if(ke[t])return;ke[t]=!0;var a="";e&&e._owner&&e._owner!==xe.current&&(a=" It was passed a child from "+O(e._owner.type)+"."),W(e),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),W(null)}}function Ie(e,r){{if(typeof e!="object")return;if(me(e))for(var t=0;t<e.length;t++){var a=e[t];ge(a)&&Ne(a,r)}else if(ge(e))e._store&&(e._store.validated=!0);else if(e){var o=Y(e);if(typeof o=="function"&&o!==e.entries)for(var l=o.call(e),s;!(s=l.next()).done;)ge(s.value)&&Ne(s.value,r)}}}function ir(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===v||r.$$typeof===R))t=r.propTypes;else return;if(t){var a=O(r);qe(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!be){be=!0;var o=O(r);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function sr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){W(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),W(null);break}}e.ref!==null&&(W(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),W(null))}}var De={};function Ae(e,r,t,a,o,l){{var s=Z(e);if(!s){var i="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var g=tr();g?i+=g:i+=Te();var f;e===null?f="null":me(e)?f="array":e!==void 0&&e.$$typeof===T?(f="<"+(O(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):f=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f,i)}var d=nr(e,r,t,o,l);if(d==null)return d;if(s){var _=r.children;if(_!==void 0)if(a)if(me(_)){for(var M=0;M<_.length;M++)Ie(_[M],e);Object.freeze&&Object.freeze(_)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ie(_,e)}if(J.call(r,"key")){var L=O(e),y=Object.keys(r).filter(function(dr){return dr!=="key"}),je=y.length>0?"{key: someKey, "+y.join(": ..., ")+": ...}":"{key: someKey}";if(!De[L+je]){var fr=y.length>0?"{"+y.join(": ..., ")+": ...}":"{}";p(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Oe,X,pr,X),pt[X+Oe]=!0}}return r===a?cr($):ur($),$}}function fr(r,d,p){return vt(r,d,p,!0)}function dr(r,d,p){return vt(r,d,p,!1)}var hr=dr,mr=fr;ie.Fragment=a,ie.jsx=hr,ie.jsxs=mr})()),ie}var xt;function Rr(){return xt||(xt=1,process.env.NODE_ENV==="production"?he.exports=yr():he.exports=xr()),he.exports}var P=Rr();/**
31
- * react-router v7.18.0
32
- *
33
- * Copyright (c) Remix Software Inc.
34
- *
35
- * This source code is licensed under the MIT license found in the
36
- * LICENSE.md file in the root directory of this source tree.
37
- *
38
- * @license MIT
39
- */var Ae=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,br=/^[\\/]{2}/;function Er(e,t){return t+e.replace(/\\/g,"/")}function D(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Y(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Fe({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Me(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function Ct(e,t,n="/"){return wr(e,t,n,!1)}function wr(e,t,n,a,i){let o=typeof t=="string"?Me(t):t,l=G(o.pathname||"/",n);if(l==null)return null;let c=Cr(e),s=null,m=Fr(l);for(let f=0;s==null&&f<c.length;++f)s=Dr(c[f],m,a);return s}function Cr(e){let t=St(e);return Sr(t),t}function St(e,t=[],n=[],a="",i=!1){let o=(l,c,s=i,m)=>{let f={relativePath:m===void 0?l.path||"":m,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(a)&&s)return;D(f.relativePath.startsWith(a),`Absolute route path "${f.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(a.length)}let h=B([a,f.relativePath]),v=n.concat(f);l.children&&l.children.length>0&&(D(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),St(l.children,t,v,h,s)),!(l.path==null&&!l.index)&&t.push({path:h,score:Lr(h,l.index),routesMeta:v.map((y,b)=>{let[E,g]=Tt(y.relativePath,y.caseSensitive,b===v.length-1);return{...y,matcher:E,compiledParams:g}})})};return e.forEach((l,c)=>{var s;if(l.path===""||!((s=l.path)!=null&&s.includes("?")))o(l,c);else for(let m of Pt(l.path))o(l,c,!0,m)}),t}function Pt(e){let t=e.split("/");if(t.length===0)return[];let[n,...a]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(a.length===0)return i?[o,""]:[o];let l=Pt(a.join("/")),c=[];return c.push(...l.map(s=>s===""?o:[o,s].join("/"))),i&&c.push(...l),c.map(s=>e.startsWith("/")&&s===""?"/":s)}function Sr(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:$r(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}var Pr=/^:[\w-]+$/,_r=3,Tr=2,kr=1,jr=10,Or=-2,Rt=e=>e==="*";function Lr(e,t){let n=e.split("/"),a=n.length;return n.some(Rt)&&(a+=Or),t&&(a+=Tr),n.filter(i=>!Rt(i)).reduce((i,o)=>i+(Pr.test(o)?_r:o===""?kr:jr),a)}function $r(e,t){return e.length===t.length&&e.slice(0,-1).every((a,i)=>a===t[i])?e[e.length-1]-t[t.length-1]:0}function Dr(e,t,n=!1){let{routesMeta:a}=e,i={},o="/",l=[];for(let c=0;c<a.length;++c){let s=a[c],m=c===a.length-1,f=o==="/"?t:t.slice(o.length)||"/",h={path:s.relativePath,caseSensitive:s.caseSensitive,end:m},v=s.matcher&&s.compiledParams?_t(h,f,s.matcher,s.compiledParams):ge(h,f),y=s.route;if(!v&&m&&n&&!a[a.length-1].route.index&&(v=ge({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},f)),!v)return null;Object.assign(i,v.params),l.push({params:i,pathname:B([o,v.pathname]),pathnameBase:Ar(B([o,v.pathnameBase])),route:y}),v.pathnameBase!=="/"&&(o=B([o,v.pathnameBase]))}return l}function ge(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=Tt(e.path,e.caseSensitive,e.end);return _t(e,t,n,a)}function _t(e,t,n,a){let i=t.match(n);if(!i)return null;let o=i[0],l=o.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:a.reduce((m,{paramName:f,isOptional:h},v)=>{if(f==="*"){let b=c[v]||"";l=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const y=c[v];return h&&!y?m[f]=void 0:m[f]=(y||"").replace(/%2F/g,"/"),m},{}),pathname:o,pathnameBase:l,pattern:e}}function Tt(e,t=!1,n=!0){Y(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,s,m,f)=>{if(a.push({paramName:c,isOptional:s!=null}),s){let h=f.charAt(m+l.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),a]}function Fr(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Y(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function G(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&a!=="/"?null:e.slice(n)||"/"}function Nr(e,t="/"){let{pathname:n,search:a="",hash:i=""}=typeof e=="string"?Me(e):e,o;return n?(n=jt(n),n.startsWith("/")?o=bt(n.substring(1),"/"):o=bt(n,t)):o=t,{pathname:o,search:Mr(a),hash:Wr(i)}}function bt(e,t){let n=ye(t).split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Le(e,t,n,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ir(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function kt(e){let t=Ir(e);return t.map((n,a)=>a===t.length-1?n.pathname:n.pathnameBase)}function We(e,t,n,a=!1){let i;typeof e=="string"?i=Me(e):(i={...e},D(!i.pathname||!i.pathname.includes("?"),Le("?","pathname","search",i)),D(!i.pathname||!i.pathname.includes("#"),Le("#","pathname","hash",i)),D(!i.search||!i.search.includes("#"),Le("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,c;if(l==null)c=n;else{let h=t.length-1;if(!a&&l.startsWith("..")){let v=l.split("/");for(;v[0]==="..";)v.shift(),h-=1;i.pathname=v.join("/")}c=h>=0?t[h]:"/"}let s=Nr(i,c),m=l&&l!=="/"&&l.endsWith("/"),f=(o||l===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(m||f)&&(s.pathname+="/"),s}var jt=e=>e.replace(/[\\/]{2,}/g,"/"),B=e=>jt(e.join("/")),ye=e=>e.replace(/\/+$/,""),Ar=e=>ye(e).replace(/^\/*/,"/"),Mr=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Wr=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Br=class{constructor(e,t,n,a=!1){this.status=e,this.statusText=t||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ur(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Hr(e){let t=e.map(n=>n.route.path).filter(Boolean);return B(t)||"/"}var Ot=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Lt(e,t){let n=e;if(typeof n!="string"||!Ae.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let a=n,i=!1;if(Ot)try{let o=new URL(window.location.href),l=br.test(n)?new URL(Er(n,o.protocol)):new URL(n),c=G(l.pathname,t);l.origin===o.origin&&c!=null?n=c+l.search+l.hash:i=!0}catch{Y(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var $t=["POST","PUT","PATCH","DELETE"];new Set($t);var Vr=["GET",...$t];new Set(Vr);var Yr=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Jr(e){try{return Yr.includes(new URL(e).protocol)}catch{return!1}}var te=u.createContext(null);te.displayName="DataRouter";var xe=u.createContext(null);xe.displayName="DataRouterState";var Dt=u.createContext(!1);function qr(){return u.useContext(Dt)}var Ft=u.createContext({isTransitioning:!1});Ft.displayName="ViewTransition";var zr=u.createContext(new Map);zr.displayName="Fetchers";var Kr=u.createContext(null);Kr.displayName="Await";var U=u.createContext(null);U.displayName="Navigation";var Be=u.createContext(null);Be.displayName="Location";var J=u.createContext({outlet:null,matches:[],isDataRoute:!1});J.displayName="Route";var Ue=u.createContext(null);Ue.displayName="RouteError";var Nt="REACT_ROUTER_ERROR",Gr="REDIRECT",Xr="ROUTE_ERROR_RESPONSE";function Zr(e){if(e.startsWith(`${Nt}:${Gr}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Qr(e){if(e.startsWith(`${Nt}:${Xr}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Br(t.status,t.statusText,t.data)}catch{}}function en(e,{relative:t}={}){D(Re(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:a}=u.useContext(U),{hash:i,pathname:o,search:l}=le(e,{relative:t}),c=o;return n!=="/"&&(c=o==="/"?n:B([n,o])),a.createHref({pathname:c,search:l,hash:i})}function Re(){return u.useContext(Be)!=null}function q(){return D(Re(),"useLocation() may be used only in the context of a <Router> component."),u.useContext(Be).location}var It="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function At(e){u.useContext(U).static||u.useLayoutEffect(e)}function tn(){let{isDataRoute:e}=u.useContext(J);return e?pn():rn()}function rn(){D(Re(),"useNavigate() may be used only in the context of a <Router> component.");let e=u.useContext(te),{basename:t,navigator:n}=u.useContext(U),{matches:a}=u.useContext(J),{pathname:i}=q(),o=JSON.stringify(kt(a)),l=u.useRef(!1);return At(()=>{l.current=!0}),u.useCallback((s,m={})=>{if(Y(l.current,It),!l.current)return;if(typeof s=="number"){n.go(s);return}let f=We(s,JSON.parse(o),i,m.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:B([t,f.pathname])),(m.replace?n.replace:n.push)(f,m.state,m)},[t,n,o,i,e])}u.createContext(null);function le(e,{relative:t}={}){let{matches:n}=u.useContext(J),{pathname:a}=q(),i=JSON.stringify(kt(n));return u.useMemo(()=>We(e,JSON.parse(i),a,t==="path"),[e,i,a,t])}function nn(e,t,n){D(Re(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=u.useContext(U),{matches:i}=u.useContext(J),o=i[i.length-1],l=o?o.params:{},c=o?o.pathname:"/",s=o?o.pathnameBase:"/",m=o&&o.route;{let g=m&&m.path||"";Wt(c,!m||g.endsWith("*")||g.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${g}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
40
-
41
- Please change the parent <Route path="${g}"> to <Route path="${g==="/"?"*":`${g}/*`}">.`)}let f=q(),h;h=f;let v=h.pathname||"/",y=v;if(s!=="/"){let g=s.replace(/^\//,"").split("/");y="/"+v.replace(/^\//,"").split("/").slice(g.length).join("/")}let b=n&&n.state.matches.length?n.state.matches.map(g=>Object.assign(g,{route:n.manifest[g.route.id]||g.route})):Ct(e,{pathname:y});return Y(m||b!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Y(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),un(b&&b.map(g=>Object.assign({},g,{params:Object.assign({},l,g.params),pathname:B([s,a.encodeLocation?a.encodeLocation(g.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:B([s,a.encodeLocation?a.encodeLocation(g.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:g.pathnameBase])})),i,n)}function an(){let e=mn(),t=Ur(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:a},o={padding:"2px 4px",backgroundColor:a},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=u.createElement(u.Fragment,null,u.createElement("p",null,"💿 Hey developer 👋"),u.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",u.createElement("code",{style:o},"ErrorBoundary")," or"," ",u.createElement("code",{style:o},"errorElement")," prop on your route.")),u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:i},n):null,l)}var on=u.createElement(an,null),Mt=class extends u.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Qr(e.digest);n&&(e=n)}let t=e!==void 0?u.createElement(J.Provider,{value:this.props.routeContext},u.createElement(Ue.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?u.createElement(ln,{error:e},t):t}};Mt.contextType=Dt;var $e=new WeakMap;function ln({children:e,error:t}){let{basename:n}=u.useContext(U);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=Zr(t.digest);if(a){let i=$e.get(t);if(i)throw i;let o=Lt(a.location,n),l=o.absoluteURL||o.to;if(Jr(l))throw new Error("Invalid redirect location");if(Ot&&!$e.get(t))if(o.isExternal||a.reloadDocument)window.location.href=l;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:a.replace}));throw $e.set(t,c),c}return u.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l}`})}}return e}function sn({routeContext:e,match:t,children:n}){let a=u.useContext(te);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),u.createElement(J.Provider,{value:e},n)}function un(e,t=[],n){let a=n==null?void 0:n.state;if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let i=e,o=a==null?void 0:a.errors;if(o!=null){let f=i.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);D(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,f+1))}let l=!1,c=-1;if(n&&a){l=a.renderFallback;for(let f=0;f<i.length;f++){let h=i[f];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=f),h.route.id){let{loaderData:v,errors:y}=a,b=h.route.loader&&!v.hasOwnProperty(h.route.id)&&(!y||y[h.route.id]===void 0);if(h.route.lazy||b){n.isStatic&&(l=!0),c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}}let s=n==null?void 0:n.onError,m=a&&s?(f,h)=>{var v,y;s(f,{location:a.location,params:((y=(v=a.matches)==null?void 0:v[0])==null?void 0:y.params)??{},pattern:Hr(a.matches),errorInfo:h})}:void 0;return i.reduceRight((f,h,v)=>{let y,b=!1,E=null,g=null;a&&(y=o&&h.route.id?o[h.route.id]:void 0,E=h.route.errorElement||on,l&&(c<0&&v===0?(Wt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,g=null):c===v&&(b=!0,g=h.route.hydrateFallbackElement||null)));let w=t.concat(i.slice(0,v+1)),R=()=>{let _;return y?_=E:b?_=g:h.route.Component?_=u.createElement(h.route.Component,null):h.route.element?_=h.route.element:_=f,u.createElement(sn,{match:h,routeContext:{outlet:f,matches:w,isDataRoute:a!=null},children:_})};return a&&(h.route.ErrorBoundary||h.route.errorElement||v===0)?u.createElement(Mt,{location:a.location,revalidation:a.revalidation,component:E,error:y,children:R(),routeContext:{outlet:null,matches:w,isDataRoute:!0},onError:m}):R()},null)}function He(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function cn(e){let t=u.useContext(te);return D(t,He(e)),t}function fn(e){let t=u.useContext(xe);return D(t,He(e)),t}function dn(e){let t=u.useContext(J);return D(t,He(e)),t}function Ve(e){let t=dn(e),n=t.matches[t.matches.length-1];return D(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function hn(){return Ve("useRouteId")}function mn(){var a;let e=u.useContext(Ue),t=fn("useRouteError"),n=Ve("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[n]}function pn(){let{router:e}=cn("useNavigate"),t=Ve("useNavigate"),n=u.useRef(!1);return At(()=>{n.current=!0}),u.useCallback(async(i,o={})=>{Y(n.current,It),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...o}))},[e,t])}var Et={};function Wt(e,t,n){!t&&!Et[e]&&(Et[e]=!0,Y(!1,n))}u.memo(vn);function vn({routes:e,manifest:t,future:n,state:a,isStatic:i,onError:o}){return nn(e,void 0,{manifest:t,state:a,isStatic:i,onError:o})}var pe="get",ve="application/x-www-form-urlencoded";function be(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function gn(e){return be(e)&&e.tagName.toLowerCase()==="button"}function yn(e){return be(e)&&e.tagName.toLowerCase()==="form"}function xn(e){return be(e)&&e.tagName.toLowerCase()==="input"}function Rn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function bn(e,t){return e.button===0&&(!t||t==="_self")&&!Rn(e)}var me=null;function En(){if(me===null)try{new FormData(document.createElement("form"),0),me=!1}catch{me=!0}return me}var wn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function De(e){return e!=null&&!wn.has(e)?(Y(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ve}"`),null):e}function Cn(e,t){let n,a,i,o,l;if(yn(e)){let c=e.getAttribute("action");a=c?G(c,t):null,n=e.getAttribute("method")||pe,i=De(e.getAttribute("enctype"))||ve,o=new FormData(e)}else if(gn(e)||xn(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||c.getAttribute("action");if(a=s?G(s,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||pe,i=De(e.getAttribute("formenctype"))||De(c.getAttribute("enctype"))||ve,o=new FormData(c,e),!En()){let{name:m,type:f,value:h}=e;if(f==="image"){let v=m?`${m}.`:"";o.append(`${v}x`,"0"),o.append(`${v}y`,"0")}else m&&o.append(m,h)}}else{if(be(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=pe,a=null,i=ve,l=e}return o&&i==="text/plain"&&(l=o,o=void 0),{action:a,method:n.toLowerCase(),encType:i,formData:o,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ye(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Bt(e,t,n,a){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${a}`:i.pathname=`${i.pathname}.${a}`:i.pathname==="/"?i.pathname=`_root.${a}`:t&&G(i.pathname,t)==="/"?i.pathname=`${ye(t)}/_root.${a}`:i.pathname=`${ye(i.pathname)}.${a}`,i}async function Sn(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Pn(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function _n(e,t,n){let a=await Promise.all(e.map(async i=>{let o=t.routes[i.route.id];if(o){let l=await Sn(o,n);return l.links?l.links():[]}return[]}));return On(a.flat(1).filter(Pn).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function wt(e,t,n,a,i,o){let l=(s,m)=>n[m]?s.route.id!==n[m].route.id:!0,c=(s,m)=>{var f;return n[m].pathname!==s.pathname||((f=n[m].route.path)==null?void 0:f.endsWith("*"))&&n[m].params["*"]!==s.params["*"]};return o==="assets"?t.filter((s,m)=>l(s,m)||c(s,m)):o==="data"?t.filter((s,m)=>{var h;let f=a.routes[s.route.id];if(!f||!f.hasLoader)return!1;if(l(s,m)||c(s,m))return!0;if(s.route.shouldRevalidate){let v=s.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((h=n[0])==null?void 0:h.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function Tn(e,t,{includeHydrateFallback:n}={}){return kn(e.map(a=>{let i=t.routes[a.route.id];if(!i)return[];let o=[i.module];return i.clientActionModule&&(o=o.concat(i.clientActionModule)),i.clientLoaderModule&&(o=o.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(o=o.concat(i.hydrateFallbackModule)),i.imports&&(o=o.concat(i.imports)),o}).flat(1))}function kn(e){return[...new Set(e)]}function jn(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}function On(e,t){let n=new Set;return new Set(t),e.reduce((a,i)=>{let o=JSON.stringify(jn(i));return n.has(o)||(n.add(o),a.push({key:o,link:i})),a},[])}function Je(){let e=u.useContext(te);return Ye(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ln(){let e=u.useContext(xe);return Ye(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var qe=u.createContext(void 0);qe.displayName="FrameworkContext";function Ee(){let e=u.useContext(qe);return Ye(e,"You must render this element inside a <HydratedRouter> element"),e}function $n(e,t){let n=u.useContext(qe),[a,i]=u.useState(!1),[o,l]=u.useState(!1),{onFocus:c,onBlur:s,onMouseEnter:m,onMouseLeave:f,onTouchStart:h}=t,v=u.useRef(null);u.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let E=w=>{w.forEach(R=>{l(R.isIntersecting)})},g=new IntersectionObserver(E,{threshold:.5});return v.current&&g.observe(v.current),()=>{g.disconnect()}}},[e]),u.useEffect(()=>{if(a){let E=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(E)}}},[a]);let y=()=>{i(!0)},b=()=>{i(!1),l(!1)};return n?e!=="intent"?[o,v,{}]:[o,v,{onFocus:oe(c,y),onBlur:oe(s,b),onMouseEnter:oe(m,y),onMouseLeave:oe(f,b),onTouchStart:oe(h,y)}]:[!1,v,{}]}function oe(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Dn({page:e,...t}){let n=qr(),{nonce:a}=Ee(),{router:i}=Je(),o=u.useMemo(()=>Ct(i.routes,e,i.basename),[i.routes,e,i.basename]);return o?(t.nonce==null&&a&&(t={...t,nonce:a}),n?u.createElement(Nn,{page:e,matches:o,...t}):u.createElement(In,{page:e,matches:o,...t})):null}function Fn(e){let{manifest:t,routeModules:n}=Ee(),[a,i]=u.useState([]);return u.useEffect(()=>{let o=!1;return _n(e,t,n).then(l=>{o||i(l)}),()=>{o=!0}},[e,t,n]),a}function Nn({page:e,matches:t,...n}){let a=q(),{future:i}=Ee(),{basename:o}=Je(),l=u.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let c=Bt(e,o,i.v8_trailingSlashAwareDataRequests,"rsc"),s=!1,m=[];for(let f of t)typeof f.route.shouldRevalidate=="function"?s=!0:m.push(f.route.id);return s&&m.length>0&&c.searchParams.set("_routes",m.join(",")),[c.pathname+c.search]},[o,i.v8_trailingSlashAwareDataRequests,e,a,t]);return u.createElement(u.Fragment,null,l.map(c=>u.createElement("link",{key:c,rel:"prefetch",as:"fetch",href:c,...n})))}function In({page:e,matches:t,...n}){let a=q(),{future:i,manifest:o,routeModules:l}=Ee(),{basename:c}=Je(),{loaderData:s,matches:m}=Ln(),f=u.useMemo(()=>wt(e,t,m,o,a,"data"),[e,t,m,o,a]),h=u.useMemo(()=>wt(e,t,m,o,a,"assets"),[e,t,m,o,a]),v=u.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let E=new Set,g=!1;if(t.forEach(R=>{var L;let _=o.routes[R.route.id];!_||!_.hasLoader||(!f.some(j=>j.route.id===R.route.id)&&R.route.id in s&&((L=l[R.route.id])!=null&&L.shouldRevalidate)||_.hasClientLoader?g=!0:E.add(R.route.id))}),E.size===0)return[];let w=Bt(e,c,i.v8_trailingSlashAwareDataRequests,"data");return g&&E.size>0&&w.searchParams.set("_routes",t.filter(R=>E.has(R.route.id)).map(R=>R.route.id).join(",")),[w.pathname+w.search]},[c,i.v8_trailingSlashAwareDataRequests,s,a,o,f,t,e,l]),y=u.useMemo(()=>Tn(h,o),[h,o]),b=Fn(h);return u.createElement(u.Fragment,null,v.map(E=>u.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...n})),y.map(E=>u.createElement("link",{key:E,rel:"modulepreload",href:E,...n})),b.map(({key:E,link:g})=>u.createElement("link",{key:E,nonce:n.nonce,...g,crossOrigin:g.crossOrigin??n.crossOrigin})))}function An(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Mn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Mn&&(window.__reactRouterVersion="7.18.0")}catch{}var Ut=u.forwardRef(function({onClick:t,discover:n="render",prefetch:a="none",relative:i,reloadDocument:o,replace:l,mask:c,state:s,target:m,to:f,preventScrollReset:h,viewTransition:v,defaultShouldRevalidate:y,...b},E){let{basename:g,navigator:w,useTransitions:R}=u.useContext(U),_=typeof f=="string"&&Ae.test(f),L=Lt(f,g);f=L.to;let j=en(f,{relative:i}),A=q(),H=null;if(c){let N=We(c,[],A.mask?A.mask.pathname:"/",!0);g!=="/"&&(N.pathname=N.pathname==="/"?g:B([g,N.pathname])),H=w.createHref(N)}let[z,K,re]=$n(a,b),we=Un(f,{replace:l,mask:c,state:s,target:m,preventScrollReset:h,relative:i,viewTransition:v,defaultShouldRevalidate:y,useTransitions:R});function se(N){t&&t(N),N.defaultPrevented||we(N)}let W=!(L.isExternal||o),V=u.createElement("a",{...b,...re,href:(W?H:void 0)||L.absoluteURL||j,onClick:W?se:t,ref:An(E,K),target:m,"data-discover":!_&&n==="render"?"true":void 0});return z&&!_?u.createElement(u.Fragment,null,V,u.createElement(Dn,{page:j})):V});Ut.displayName="Link";var Ne=u.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:a="",end:i=!1,style:o,to:l,viewTransition:c,children:s,...m},f){let h=le(l,{relative:m.relative}),v=q(),y=u.useContext(xe),{navigator:b,basename:E}=u.useContext(U),g=y!=null&&qn(h)&&c===!0,w=b.encodeLocation?b.encodeLocation(h).pathname:h.pathname,R=v.pathname,_=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(R=R.toLowerCase(),_=_?_.toLowerCase():null,w=w.toLowerCase()),_&&E&&(_=G(_,E)||_);const L=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let j=R===w||!i&&R.startsWith(w)&&R.charAt(L)==="/",A=_!=null&&(_===w||!i&&_.startsWith(w)&&_.charAt(w.length)==="/"),H={isActive:j,isPending:A,isTransitioning:g},z=j?t:void 0,K;typeof a=="function"?K=a(H):K=[a,j?"active":null,A?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let re=typeof o=="function"?o(H):o;return u.createElement(Ut,{...m,"aria-current":z,className:K,ref:f,style:re,to:l,viewTransition:c},typeof s=="function"?s(H):s)});Ne.displayName="NavLink";var Wn=u.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:a,replace:i,state:o,method:l=pe,action:c,onSubmit:s,relative:m,preventScrollReset:f,viewTransition:h,defaultShouldRevalidate:v,...y},b)=>{let{useTransitions:E}=u.useContext(U),g=Yn(),w=Jn(c,{relative:m}),R=l.toLowerCase()==="get"?"get":"post",_=typeof c=="string"&&Ae.test(c),L=j=>{if(s&&s(j),j.defaultPrevented)return;j.preventDefault();let A=j.nativeEvent.submitter,H=(A==null?void 0:A.getAttribute("formmethod"))||l,z=()=>g(A||j.currentTarget,{fetcherKey:t,method:H,navigate:n,replace:i,state:o,relative:m,preventScrollReset:f,viewTransition:h,defaultShouldRevalidate:v});E&&n!==!1?u.startTransition(()=>z()):z()};return u.createElement("form",{ref:b,method:R,action:w,onSubmit:a?s:L,...y,"data-discover":!_&&e==="render"?"true":void 0})});Wn.displayName="Form";function Bn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ht(e){let t=u.useContext(te);return D(t,Bn(e)),t}function Un(e,{target:t,replace:n,mask:a,state:i,preventScrollReset:o,relative:l,viewTransition:c,defaultShouldRevalidate:s,useTransitions:m}={}){let f=tn(),h=q(),v=le(e,{relative:l});return u.useCallback(y=>{if(bn(y,t)){y.preventDefault();let b=n!==void 0?n:Fe(h)===Fe(v),E=()=>f(e,{replace:b,mask:a,state:i,preventScrollReset:o,relative:l,viewTransition:c,defaultShouldRevalidate:s});m?u.startTransition(()=>E()):E()}},[h,f,v,n,a,i,t,e,o,l,c,s,m])}var Hn=0,Vn=()=>`__${String(++Hn)}__`;function Yn(){let{router:e}=Ht("useSubmit"),{basename:t}=u.useContext(U),n=hn(),a=e.fetch,i=e.navigate;return u.useCallback(async(o,l={})=>{let{action:c,method:s,encType:m,formData:f,body:h}=Cn(o,t);if(l.navigate===!1){let v=l.fetcherKey||Vn();await a(v,n,l.action||c,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:f,body:h,formMethod:l.method||s,formEncType:l.encType||m,flushSync:l.flushSync})}else await i(l.action||c,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:f,body:h,formMethod:l.method||s,formEncType:l.encType||m,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[a,i,t,n])}function Jn(e,{relative:t}={}){let{basename:n}=u.useContext(U),a=u.useContext(J);D(a,"useFormAction must be used inside a RouteContext");let[i]=a.matches.slice(-1),o={...le(e||".",{relative:t})},l=q();if(e==null){o.search=l.search;let c=new URLSearchParams(o.search),s=c.getAll("index");if(s.some(f=>f==="")){c.delete("index"),s.filter(h=>h).forEach(h=>c.append("index",h));let f=c.toString();o.search=f?`?${f}`:""}}return(!e||e===".")&&i.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:B([n,o.pathname])),Fe(o)}function qn(e,{relative:t}={}){let n=u.useContext(Ft);D(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=Ht("useViewTransitionState"),i=le(e,{relative:t});if(!n.isTransitioning)return!1;let o=G(n.currentLocation.pathname,a)||n.currentLocation.pathname,l=G(n.nextLocation.pathname,a)||n.nextLocation.pathname;return ge(i.pathname,l)!=null||ge(i.pathname,o)!=null}const Z=(...e)=>e.filter(Boolean).join(" "),zn=()=>P.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:P.jsx("path",{d:"M2 4h14M2 9h14M2 14h14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})});function Kn(e,t){return e?{activeBg:`bg-${e}/20`,hoverBg:`hover:bg-${e}/10`,textClass:`text-${e}`,hoverTextClass:`hover:text-${e}`,borderColor:t??"#4ade80"}:{activeBg:"bg-green-500/20",hoverBg:"hover:bg-green-500/10",textClass:"text-green-400",hoverTextClass:"hover:text-green-400",borderColor:t??"#4ade80"}}function Gn({open:e,onToggle:t,navConfig:n,logo:a,cta:i,user:o,footerLinks:l=[],bgColor:c="bg-[#1a1f2e]"}){return P.jsxs("aside",{className:Z("h-screen flex flex-col transition-all duration-300 ease-in-out flex-shrink-0",c,e?"w-64":"w-16"),children:[P.jsxs("div",{className:Z("flex items-center gap-3 py-4 border-b border-white/10 min-h-[64px]",e?"px-3":"px-0 justify-center"),children:[P.jsx("div",{className:"w-8 h-8 flex-shrink-0 cursor-pointer",onClick:t,title:e?"Collapse sidebar":"Expand sidebar",children:(a==null?void 0:a.icon)??P.jsx("div",{className:"w-8 h-8 bg-green-500 rounded-full flex items-center justify-center text-white text-xs font-bold",children:"A"})}),e&&P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"overflow-hidden flex-1",children:[(a==null?void 0:a.name)&&P.jsx("div",{className:"text-white font-bold text-sm truncate",children:a.name}),(a==null?void 0:a.subLabel)&&P.jsx("div",{className:"text-gray-400 text-[10px] font-semibold whitespace-nowrap",children:a.subLabel})]}),P.jsx("button",{onClick:t,className:"text-gray-400 hover:text-white flex-shrink-0",title:"Collapse sidebar",children:P.jsx(zn,{})})]})]}),i&&P.jsx("div",{className:"px-3 py-4",children:P.jsxs(Ne,{to:i.to,className:Z("w-full text-white rounded-md flex items-center gap-2 transition-colors font-medium text-sm",i.color??"bg-[#059669] hover:bg-green-600",e?"px-3 py-2 justify-start":"p-2 justify-center"),title:e?void 0:i.label,children:[P.jsx("span",{className:"flex-shrink-0",children:i.icon}),e&&P.jsx("span",{children:i.label})]})}),P.jsx("nav",{className:"flex-1 overflow-y-auto px-2 space-y-1",children:n.map(({section:s,color:m,rawColor:f,items:h})=>{const{activeBg:v,hoverBg:y,textClass:b,hoverTextClass:E,borderColor:g}=Kn(m,f);return P.jsxs("div",{className:"mb-4",children:[e?P.jsx("p",{className:"text-gray-500 text-[10px] font-semibold uppercase tracking-widest px-2 mb-1",children:s}):P.jsx("div",{className:"border-t border-white/10 my-2"}),h.map(({label:w,icon:R,to:_})=>P.jsxs(Ne,{to:_,title:e?void 0:w,className:({isActive:L})=>Z("group w-full flex items-center gap-3 rounded-md px-2 py-2 text-sm transition-all duration-200 mb-0.5","border-l-2",L?`${v} ${b}`:`text-[#DAE2FD] ${y} ${E}`,!e&&"justify-center"),style:({isActive:L})=>({borderColor:L?g:"transparent"}),onMouseEnter:L=>{const j=L.currentTarget;j.getAttribute("aria-current")!=="page"&&(j.style.borderColor=g)},onMouseLeave:L=>{const j=L.currentTarget;j.getAttribute("aria-current")!=="page"&&(j.style.borderColor="transparent")},children:[P.jsx("span",{className:"flex-shrink-0",children:R}),e&&P.jsx("span",{children:w})]},w))]},s)})}),P.jsxs("div",{className:"border-t border-white/10 px-2 py-3 space-y-0.5",children:[l.map(({label:s,icon:m,onClick:f})=>P.jsxs("button",{onClick:f,title:e?void 0:s,className:Z("w-full flex items-center gap-3 rounded-md px-2 py-2 text-sm text-gray-400 hover:bg-white/5 hover:text-white",!e&&"justify-center"),children:[P.jsx("span",{className:"flex-shrink-0",children:m}),e&&P.jsx("span",{children:s})]},s)),o&&P.jsxs("div",{className:Z("flex items-center gap-3 px-2 py-2",!e&&"justify-center"),children:[P.jsx("div",{className:Z("w-8 h-8 rounded-full flex items-center justify-center text-white text-xs font-bold flex-shrink-0",o.avatarColor??"bg-green-600"),children:o.initials}),e&&P.jsxs("div",{className:"overflow-hidden",children:[P.jsx("div",{className:"text-white text-sm font-medium truncate",children:o.name}),o.role&&P.jsx("div",{className:"text-gray-400 text-xs truncate",children:o.role})]})]})]})]})}exports.Sidebar=Gn;
30
+ <%s key={someKey} {...props} />`,je,L,fr,L),De[L+je]=!0}}return e===S?sr(d):ir(d),d}}function or(e,r,t){return Ae(e,r,t,!0)}function lr(e,r,t){return Ae(e,r,t,!1)}var cr=lr,ur=or;K.Fragment=S,K.jsx=cr,K.jsxs=ur})()),K}var $e;function hr(){return $e||($e=1,process.env.NODE_ENV==="production"?oe.exports=vr():oe.exports=pr()),oe.exports}var n=hr();const We=P.createContext(null),mr=({children:w})=>{const[T,m]=P.useState(!0),[S,k]=P.useState(null),N=()=>{m(x=>!x),k(null)},I=x=>{k(v=>v===x?null:x)};return n.jsx(We.Provider,{value:{isExpanded:T,toggleSidebar:N,openSubmenu:S,toggleSubmenu:I},children:w})},Me=()=>{const w=P.useContext(We);if(!w)throw new Error("useSidebar must be used inside <SidebarProvider>");return w},xr=()=>n.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),n.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),n.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]}),br=()=>n.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),n.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),gr=()=>n.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("circle",{cx:"12",cy:"12",r:"10"}),n.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),n.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),jr=()=>n.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[n.jsx("rect",{width:"32",height:"32",rx:"8",fill:"currentColor",opacity:"0.15"}),n.jsx("circle",{cx:"16",cy:"16",r:"6",fill:"currentColor"})]}),yr=()=>n.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),n.jsx("polyline",{points:"16 17 21 12 16 7"}),n.jsx("line",{x1:"21",y1:"12",x2:"9",y2:"12"})]}),Er=({config:w})=>{const{navItems:T,user:m,createButtonRoles:S,createButtonLabel:k="Create",createButtonPath:N,brandName:I="Amphenol",brandSubtitle:x="COMMUNICATION SOLUTIONS",logo:v,helpLabel:D="Help Center",helpIcon:b,onSignOut:R,onNavigate:C,className:$=""}=w,{isExpanded:E,toggleSidebar:G,openSubmenu:Y,toggleSubmenu:F}=Me(),[p,le]=P.useState(window.location.pathname),[ce,z]=P.useState(!1),[ue,X]=P.useState(!1);P.useEffect(()=>{const c=()=>le(window.location.pathname);return window.addEventListener("popstate",c),()=>window.removeEventListener("popstate",c)},[]);const U=(c,j)=>{c.preventDefault(),j&&(C?C(j):(window.history.pushState({},"",j),window.dispatchEvent(new PopStateEvent("popstate"))))},B=()=>m.email?m.email.split("@")[0]:"User",Z=()=>m.email?m.email.charAt(0).toUpperCase():"U",fe=()=>{R?R():window.location.href="/c/portal/logout"},Q=!S||S.includes(m.role),O=T.reduce((c,j)=>{const A=j.section||"GENERAL";return c[A]||(c[A]=[]),c[A].push(j),c},{});return n.jsxs("aside",{className:`rdr-sidebar ${E?"expanded":"collapsed"} ${$}`,children:[n.jsxs("div",{className:"sidebar-header",children:[n.jsxs("div",{className:"logo-section",onClick:G,children:[n.jsx("span",{className:"logo-icon",style:{color:"var(--sidebar-accent)"},children:v??n.jsx(jr,{})}),E&&n.jsxs("div",{className:"brand-text",children:[n.jsx("h2",{children:I}),x&&n.jsx("span",{children:x})]})]}),E&&n.jsx("button",{className:"menu-toggle",onClick:G,"aria-label":"Collapse sidebar",children:n.jsx(xr,{})})]}),Q&&N&&n.jsx("div",{className:"sidebar-actions",children:n.jsxs("button",{className:"sidebar-create-btn",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",width:"100%",height:"44px",padding:"0 16px",borderRadius:"10px",border:"none",outline:"none",boxShadow:"none",cursor:"pointer",fontSize:"14px",fontWeight:600,color:"#fff",background:ue?"#149B6E":"#18B885",transition:"background-color 0.2s ease"},onMouseEnter:()=>X(!0),onMouseLeave:()=>X(!1),onClick:c=>U(c,N),children:[n.jsx(br,{}),E&&n.jsx("span",{children:k})]})}),n.jsx("div",{className:"sidebar-nav",children:Object.entries(O).map(([c,j])=>{const A=j.filter(u=>!u.roles||u.roles.includes(m.role));return A.length?n.jsxs("div",{className:"nav-section",style:{listStyleType:"none"},children:[E&&n.jsx("h4",{className:"section-title",children:c}),n.jsx("ul",{className:"nav-items",children:A.map(u=>{var V,q;const ee=(V=u.subItems)==null?void 0:V.some(h=>h.path&&p.includes(h.path)),re=u.path?p===u.path:!1;return n.jsx("li",{children:(q=u.subItems)!=null&&q.length?n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:`nav-item ${Y===u.name||ee?"active":""}`,"data-label":u.name,onClick:()=>F(u.name),children:[n.jsx("span",{className:"nav-icon",children:u.icon}),E&&n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"nav-text",children:u.name}),n.jsx("span",{className:"submenu-arrow",children:Y===u.name?"−":"+"})]})]}),E&&Y===u.name&&n.jsx("ul",{className:"submenu",children:u.subItems.map(h=>{const ne=h.path?p===h.path:!1;return n.jsx("li",{children:n.jsxs("a",{href:h.path||"/",onClick:de=>U(de,h.path),className:`submenu-item ${ne?"active-sub":""}`,children:[h.icon&&n.jsx("span",{className:"submenu-icon",children:h.icon}),n.jsx("span",{children:h.name})]})},h.name)})})]}):n.jsxs("a",{href:u.path||"/","data-label":u.name,onClick:h=>U(h,u.path),className:`nav-item ${re?"active":""}`,children:[n.jsx("span",{className:"nav-icon",children:u.icon}),E&&n.jsx("span",{className:"nav-text",children:u.name})]})},u.name)})})]},c):null})}),n.jsxs("div",{className:"sidebar-footer",children:[n.jsxs("div",{className:"footer-link","data-label":D,children:[n.jsx("span",{children:b??n.jsx(gr,{})}),E&&n.jsx("span",{children:D})]}),n.jsxs("div",{className:"user-profile-wrapper",children:[n.jsxs("div",{className:"user-profile",onClick:()=>z(c=>!c),children:[n.jsx("div",{className:"avatar",children:Z()}),E&&n.jsxs("div",{className:"user-info",children:[n.jsx("div",{className:"user-name",children:B()}),n.jsx("div",{className:"user-role",children:m.roleName})]})]}),ce&&n.jsxs("div",{className:"profile-popup",children:[n.jsx("button",{className:"popup-close",onClick:()=>z(!1),"aria-label":"Close",children:"✕"}),n.jsxs("div",{className:"popup-header",children:[n.jsx("div",{className:"popup-avatar",children:Z()}),n.jsxs("div",{className:"popup-user-details",children:[n.jsx("div",{className:"popup-name",children:B()}),n.jsx("div",{className:"popup-role",children:m.roleName}),n.jsx("div",{className:"popup-email",children:m.email})]})]}),n.jsx("div",{className:"popup-divider"}),n.jsxs("button",{className:"signout-btn",onClick:fe,children:[n.jsx(yr,{}),n.jsx("span",{children:"Sign Out"})]})]})]})]})]})};exports.SideNavbar=Er;exports.SidebarProvider=mr;exports.useSidebar=Me;