@tyanxie/paimon-darwin-arm64 1.7.0 → 2.0.0
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.
- package/bin/paimon +1 -1
- package/package.json +1 -1
- package/web/assets/abnfDiagram-VCTEODGH-C_ttoOR-.js +1 -0
- package/web/assets/arc-yAsaH0Dw.js +1 -0
- package/web/assets/architectureDiagram-5GKGNRK7-CaDJakVP.js +36 -0
- package/web/assets/blockDiagram-I7D4REHJ-BQd0dwKa.js +129 -0
- package/web/assets/c4Diagram-7LVT6UL2-nZGUi3mU.js +38 -0
- package/web/assets/channel-DF8NlRb_.js +1 -0
- package/web/assets/chunk-2Q5K7J3B-NPXGjG3f.js +1 -0
- package/web/assets/chunk-5VM5RSS4-CJY7RIjt.js +15 -0
- package/web/assets/chunk-F27PBJKO-DT1ynzIY.js +1 -0
- package/web/assets/chunk-IMKFNOWR-CH6O0dOI.js +231 -0
- package/web/assets/chunk-JWPE2WC7-HT0bbIVb.js +1 -0
- package/web/assets/chunk-POPQ4Y6H-JAIuAfSC.js +1 -0
- package/web/assets/chunk-SVP7TREG-6IvqfLNl.js +88 -0
- package/web/assets/chunk-TICWLB2K-Un-BtVJH.js +206 -0
- package/web/assets/chunk-XXDRQBXY-MmAyjRcU.js +1 -0
- package/web/assets/classDiagram-ZZMXUADV-BJm7NJbs.js +1 -0
- package/web/assets/classDiagram-v2-VYDZK3BY-BJm7NJbs.js +1 -0
- package/web/assets/cose-bilkent-JH36ORCC-BKY655a1.js +1 -0
- package/web/assets/cynefin-OW5HDTMX-Oul7bDb8.js +178 -0
- package/web/assets/cynefinDiagram-5FMLGOSQ-C2liQpUc.js +62 -0
- package/web/assets/cytoscape.esm-BLAcgzS2.js +331 -0
- package/web/assets/dagre-GXQ25YYZ-DYrwe_pj.js +4 -0
- package/web/assets/defaultLocale-CrowFXzY.js +1 -0
- package/web/assets/diagram-S7CK7UJ4-BiMW816X.js +30 -0
- package/web/assets/diagram-UQ7AKVKN-Dx--Yu_z.js +41 -0
- package/web/assets/diagram-VSXAHHWV-DRrurU6X.js +3 -0
- package/web/assets/diagram-VX7I27RA-00uuQ0k2.js +24 -0
- package/web/assets/diagram-Z3DM3KII-Cvgf5Y5I.js +24 -0
- package/web/assets/ebnfDiagram-PWID7BFC-CHZyB5eb.js +1 -0
- package/web/assets/erDiagram-RLTQ6QDP-BfpNZTDy.js +99 -0
- package/web/assets/flowDiagram-HODETNUW-BNTRT4LN.js +168 -0
- package/web/assets/framework-gzBbjyR4.js +49 -0
- package/web/assets/ganttDiagram-EL5Y4UJY-B8LaEeAd.js +292 -0
- package/web/assets/gitGraphDiagram-WWUBYQGX-BPhOAW6u.js +106 -0
- package/web/assets/index-BLBkIpT7.css +1 -0
- package/web/assets/index-DsjiosHk.js +78 -0
- package/web/assets/index-xz7ziSVU.js +264 -0
- package/web/assets/infoDiagram-27XIBGKW-U6LgO_ju.js +2 -0
- package/web/assets/init-Gi6I4Gst.js +1 -0
- package/web/assets/isObjectLike-DlmVz5ty.js +1 -0
- package/web/assets/ishikawaDiagram-5VMMS53U-DxXeMYDc.js +70 -0
- package/web/assets/journeyDiagram-3NMN7TZE-Bx7POPvm.js +139 -0
- package/web/assets/kanban-definition-UXKFOSKX-CpYDSQwK.js +89 -0
- package/web/assets/katex-C5jXJg4s.js +257 -0
- package/web/assets/layout-Bt4nl8Oy.js +1 -0
- package/web/assets/linear-IZfkTFEW.js +1 -0
- package/web/assets/markdown-OowzRXxA.js +69 -0
- package/web/assets/mermaid.core-DVbCkJL3.js +310 -0
- package/web/assets/mermaidTheme-DoQvsUbV.js +24 -0
- package/web/assets/mindmap-definition-YA3MSWOX-CcsjXg_l.js +96 -0
- package/web/assets/mix-CrMk8dT1.js +1 -0
- package/web/assets/modalFeatures-BeDlpc4S.js +1 -0
- package/web/assets/modelConfig-BWIG2U9q.js +374 -0
- package/web/assets/ordinal-Cboi1Yqb.js +1 -0
- package/web/assets/pegDiagram-XKGWAZYB-D8bhpeEX.js +1 -0
- package/web/assets/pieDiagram-E7YTZNPT-DpqpRrk3.js +39 -0
- package/web/assets/purify.es-CAi2OJFm.js +3 -0
- package/web/assets/quadrantDiagram-AXDQQJYC-D3jcnC7Q.js +7 -0
- package/web/assets/railroadDiagram-O6MQD6OU-KAu7lO3i.js +1 -0
- package/web/assets/requirementDiagram-BXWQKSXE-BjvIFtJN.js +84 -0
- package/web/assets/sankeyDiagram-P5KCCOFB-BAeQKqir.js +40 -0
- package/web/assets/sequenceDiagram-WJ2MYXX4-COPuE32n.js +162 -0
- package/web/assets/sizeCapture-INFHLROL-DOSmwQs7.js +1 -0
- package/web/assets/stateDiagram-D77RDMKH-DkQ3KhXj.js +1 -0
- package/web/assets/stateDiagram-v2-MP3YSRHH-C2O-IoZS.js +1 -0
- package/web/assets/swimlanes-42K2YHIH-Belip6eP.js +1 -0
- package/web/assets/swimlanesDiagram-VR7AAH4N-CzGu2D2p.js +8 -0
- package/web/assets/timeline-definition-24CTP7MA-Bntb2OTs.js +120 -0
- package/web/assets/vennDiagram-4TSXK5OY-Cw2eTnvz.js +34 -0
- package/web/assets/wardleyDiagram-VM6X3IG4-DzJNpWOP.js +78 -0
- package/web/assets/xychartDiagram-S5SC5T6Z-CmlwEiU8.js +7 -0
- package/web/index.html +4 -5
- package/web/assets/framework-CY9iUjoF.js +0 -49
- package/web/assets/index-BTA-j8zf.js +0 -6
- package/web/assets/index-CTEVuRr7.css +0 -1
- package/web/assets/markdown-CbB-lJ6c.js +0 -69
- package/web/assets/vendor-BXh3TPFq.js +0 -200
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import{a as h,R as we,g as Nn,b as Pn}from"./framework-CY9iUjoF.js";/**
|
|
2
|
-
* react-router v7.15.1
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Remix Software Inc.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/var xt="popstate";function vt(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function On(t={}){function e(r,s){var u;let a=(u=s.state)==null?void 0:u.masked,{pathname:i,search:o,hash:l}=a||r.location;return Ze("",{pathname:i,search:o,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default",a?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,s){return typeof s=="string"?s:me(s)}return Tn(e,n,null,t)}function _(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function q(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function In(){return Math.random().toString(36).substring(2,10)}function St(t,e){return{usr:t.state,key:t.key,idx:e,masked:t.mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function Ze(t,e,n=null,r,s){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?ie(e):e,state:n,key:e&&e.key||r||In(),mask:s}}function me({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function ie(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substring(r),t=t.substring(0,r)),t&&(e.pathname=t)}return e}function Tn(t,e,n,r={}){let{window:s=document.defaultView,v5Compat:a=!1}=r,i=s.history,o="POP",l=null,u=c();u==null&&(u=0,i.replaceState({...i.state,idx:u},""));function c(){return(i.state||{idx:null}).idx}function f(){o="POP";let m=c(),x=m==null?null:m-u;u=m,l&&l({action:o,location:y.location,delta:x})}function d(m,x){o="PUSH";let v=vt(m)?m:Ze(y.location,m,x);u=c()+1;let b=St(v,u),S=y.createHref(v.mask||v);try{i.pushState(b,"",S)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;s.location.assign(S)}a&&l&&l({action:o,location:y.location,delta:1})}function g(m,x){o="REPLACE";let v=vt(m)?m:Ze(y.location,m,x);u=c();let b=St(v,u),S=y.createHref(v.mask||v);i.replaceState(b,"",S),a&&l&&l({action:o,location:y.location,delta:0})}function p(m){return An(m)}let y={get action(){return o},get location(){return t(s,i)},listen(m){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(xt,f),l=m,()=>{s.removeEventListener(xt,f),l=null}},createHref(m){return e(s,m)},createURL:p,encodeLocation(m){let x=p(m);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:d,replace:g,go(m){return i.go(m)}};return y}function An(t,e=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),_(n,"No window.location.(origin|href) available to create URL");let r=typeof t=="string"?t:me(t);return r=r.replace(/ $/,"%20"),!e&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Yt(t,e,n="/"){return Fn(t,e,n,!1)}function Fn(t,e,n,r,s){let a=typeof e=="string"?ie(e):e,i=X(a.pathname||"/",n);if(i==null)return null;let o=_n(t),l=null,u=qn(i);for(let c=0;l==null&&c<o.length;++c)l=Kn(o[c],u,r);return l}function _n(t){let e=Gt(t);return jn(e),e}function Gt(t,e=[],n=[],r="",s=!1){let a=(i,o,l=s,u)=>{let c={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(r)&&l)return;_(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let f=W([r,c.relativePath]),d=n.concat(c);i.children&&i.children.length>0&&(_(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),Gt(i.children,e,d,f,l)),!(i.path==null&&!i.index)&&e.push({path:f,score:zn(f,i.index),routesMeta:d})};return t.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))a(i,o);else for(let u of Zt(i.path))a(i,o,!0,u)}),e}function Zt(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,s=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return s?[a,""]:[a];let i=Zt(r.join("/")),o=[];return o.push(...i.map(l=>l===""?a:[a,l].join("/"))),s&&o.push(...i),o.map(l=>t.startsWith("/")&&l===""?"/":l)}function jn(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Wn(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Dn=/^:[\w-]+$/,Mn=3,Vn=2,Hn=1,Un=10,Bn=-2,bt=t=>t==="*";function zn(t,e){let n=t.split("/"),r=n.length;return n.some(bt)&&(r+=Bn),e&&(r+=Vn),n.filter(s=>!bt(s)).reduce((s,a)=>s+(Dn.test(a)?Mn:a===""?Hn:Un),r)}function Wn(t,e){return t.length===e.length&&t.slice(0,-1).every((r,s)=>r===e[s])?t[t.length-1]-e[e.length-1]:0}function Kn(t,e,n=!1){let{routesMeta:r}=t,s={},a="/",i=[];for(let o=0;o<r.length;++o){let l=r[o],u=o===r.length-1,c=a==="/"?e:e.slice(a.length)||"/",f=Pe({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),d=l.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Pe({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!f)return null;Object.assign(s,f.params),i.push({params:s,pathname:W([a,f.pathname]),pathnameBase:Xn(W([a,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(a=W([a,f.pathnameBase]))}return i}function Pe(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=Jn(t.path,t.caseSensitive,t.end),s=e.match(n);if(!s)return null;let a=s[0],i=a.replace(/(.)\/+$/,"$1"),o=s.slice(1);return{params:r.reduce((u,{paramName:c,isOptional:f},d)=>{if(c==="*"){let p=o[d]||"";i=a.slice(0,a.length-p.length).replace(/(.)\/+$/,"$1")}const g=o[d];return f&&!g?u[c]=void 0:u[c]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:i,pattern:t}}function Jn(t,e=!1,n=!0){q(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,o,l,u,c)=>{if(r.push({paramName:o,isOptional:l!=null}),l){let f=c.charAt(u+i.length);return f&&f!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(r.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),r]}function qn(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return q(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function X(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}var Yn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Gn(t,e="/"){let{pathname:n,search:r="",hash:s=""}=typeof t=="string"?ie(t):t,a;return n?(n=Qt(n),n.startsWith("/")?a=wt(n.substring(1),"/"):a=wt(n,e)):a=e,{pathname:a,search:Qn(r),hash:er(s)}}function wt(t,e){let n=Oe(e).split("/");return t.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function He(t,e,n,r){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}]. 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 Zn(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Xt(t){let e=Zn(t);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function st(t,e,n,r=!1){let s;typeof t=="string"?s=ie(t):(s={...t},_(!s.pathname||!s.pathname.includes("?"),He("?","pathname","search",s)),_(!s.pathname||!s.pathname.includes("#"),He("#","pathname","hash",s)),_(!s.search||!s.search.includes("#"),He("#","search","hash",s)));let a=t===""||s.pathname==="",i=a?"/":s.pathname,o;if(i==null)o=n;else{let f=e.length-1;if(!r&&i.startsWith("..")){let d=i.split("/");for(;d[0]==="..";)d.shift(),f-=1;s.pathname=d.join("/")}o=f>=0?e[f]:"/"}let l=Gn(s,o),u=i&&i!=="/"&&i.endsWith("/"),c=(a||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var Qt=t=>t.replace(/\/\/+/g,"/"),W=t=>Qt(t.join("/")),Oe=t=>t.replace(/\/+$/,""),Xn=t=>Oe(t).replace(/^\/*/,"/"),Qn=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,er=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,tr=class{constructor(t,e,n,r=!1){this.status=t,this.statusText=e||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function nr(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function rr(t){let e=t.map(n=>n.route.path).filter(Boolean);return W(e)||"/"}var en=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function tn(t,e){let n=t;if(typeof n!="string"||!Yn.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,s=!1;if(en)try{let a=new URL(window.location.href),i=n.startsWith("//")?new URL(a.protocol+n):new URL(n),o=X(i.pathname,e);i.origin===a.origin&&o!=null?n=o+i.search+i.hash:s=!0}catch{q(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:s,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var nn=["POST","PUT","PATCH","DELETE"];new Set(nn);var sr=["GET",...nn];new Set(sr);var oe=h.createContext(null);oe.displayName="DataRouter";var _e=h.createContext(null);_e.displayName="DataRouterState";var rn=h.createContext(!1);function ar(){return h.useContext(rn)}var sn=h.createContext({isTransitioning:!1});sn.displayName="ViewTransition";var ir=h.createContext(new Map);ir.displayName="Fetchers";var or=h.createContext(null);or.displayName="Await";var B=h.createContext(null);B.displayName="Navigation";var ve=h.createContext(null);ve.displayName="Location";var K=h.createContext({outlet:null,matches:[],isDataRoute:!1});K.displayName="Route";var at=h.createContext(null);at.displayName="RouteError";var an="REACT_ROUTER_ERROR",lr="REDIRECT",ur="ROUTE_ERROR_RESPONSE";function cr(t){if(t.startsWith(`${an}:${lr}:{`))try{let e=JSON.parse(t.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function fr(t){if(t.startsWith(`${an}:${ur}:{`))try{let e=JSON.parse(t.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new tr(e.status,e.statusText,e.data)}catch{}}function hr(t,{relative:e}={}){_(Se(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=h.useContext(B),{hash:s,pathname:a,search:i}=be(t,{relative:e}),o=a;return n!=="/"&&(o=a==="/"?n:W([n,a])),r.createHref({pathname:o,search:i,hash:s})}function Se(){return h.useContext(ve)!=null}function Q(){return _(Se(),"useLocation() may be used only in the context of a <Router> component."),h.useContext(ve).location}var on="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ln(t){h.useContext(B).static||h.useLayoutEffect(t)}function dr(){let{isDataRoute:t}=h.useContext(K);return t?$r():pr()}function pr(){_(Se(),"useNavigate() may be used only in the context of a <Router> component.");let t=h.useContext(oe),{basename:e,navigator:n}=h.useContext(B),{matches:r}=h.useContext(K),{pathname:s}=Q(),a=JSON.stringify(Xt(r)),i=h.useRef(!1);return ln(()=>{i.current=!0}),h.useCallback((l,u={})=>{if(q(i.current,on),!i.current)return;if(typeof l=="number"){n.go(l);return}let c=st(l,JSON.parse(a),s,u.relative==="path");t==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:W([e,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[e,n,a,s,t])}var gr=h.createContext(null);function mr(t){let e=h.useContext(K).outlet;return h.useMemo(()=>e&&h.createElement(gr.Provider,{value:t},e),[e,t])}function ti(){let{matches:t}=h.useContext(K),e=t[t.length-1];return(e==null?void 0:e.params)??{}}function be(t,{relative:e}={}){let{matches:n}=h.useContext(K),{pathname:r}=Q(),s=JSON.stringify(Xt(n));return h.useMemo(()=>st(t,JSON.parse(s),r,e==="path"),[t,s,r,e])}function yr(t,e){return un(t,e)}function un(t,e,n){var m;_(Se(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=h.useContext(B),{matches:s}=h.useContext(K),a=s[s.length-1],i=a?a.params:{},o=a?a.pathname:"/",l=a?a.pathnameBase:"/",u=a&&a.route;{let x=u&&u.path||"";fn(o,!u||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${o}" (under <Route path="${x}">) 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.
|
|
11
|
-
|
|
12
|
-
Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let c=Q(),f;if(e){let x=typeof e=="string"?ie(e):e;_(l==="/"||((m=x.pathname)==null?void 0:m.startsWith(l)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${x.pathname}" was given in the \`location\` prop.`),f=x}else f=c;let d=f.pathname||"/",g=d;if(l!=="/"){let x=l.replace(/^\//,"").split("/");g="/"+d.replace(/^\//,"").split("/").slice(x.length).join("/")}let p=n&&n.state.matches.length?n.state.matches.map(x=>Object.assign(x,{route:n.manifest[x.route.id]||x.route})):Yt(t,{pathname:g});q(u||p!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),q(p==null||p[p.length-1].route.element!==void 0||p[p.length-1].route.Component!==void 0||p[p.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.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.`);let y=wr(p&&p.map(x=>Object.assign({},x,{params:Object.assign({},i,x.params),pathname:W([l,r.encodeLocation?r.encodeLocation(x.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:W([l,r.encodeLocation?r.encodeLocation(x.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathnameBase])})),s,n);return e&&y?h.createElement(ve.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...f},navigationType:"POP"}},y):y}function xr(){let t=kr(),e=nr(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",t),i=h.createElement(h.Fragment,null,h.createElement("p",null,"💿 Hey developer 👋"),h.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",h.createElement("code",{style:a},"ErrorBoundary")," or"," ",h.createElement("code",{style:a},"errorElement")," prop on your route.")),h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},e),n?h.createElement("pre",{style:s},n):null,i)}var vr=h.createElement(xr,null),cn=class extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const n=fr(t.digest);n&&(t=n)}let e=t!==void 0?h.createElement(K.Provider,{value:this.props.routeContext},h.createElement(at.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?h.createElement(Sr,{error:t},e):e}};cn.contextType=rn;var Ue=new WeakMap;function Sr({children:t,error:e}){let{basename:n}=h.useContext(B);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=cr(e.digest);if(r){let s=Ue.get(e);if(s)throw s;let a=tn(r.location,n);if(en&&!Ue.get(e))if(a.isExternal||r.reloadDocument)window.location.href=a.absoluteURL||a.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:r.replace}));throw Ue.set(e,i),i}return h.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return t}function br({routeContext:t,match:e,children:n}){let r=h.useContext(oe);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),h.createElement(K.Provider,{value:t},n)}function wr(t,e=[],n){let r=n==null?void 0:n.state;if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let s=t,a=r==null?void 0:r.errors;if(a!=null){let c=s.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);_(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),s=s.slice(0,Math.min(s.length,c+1))}let i=!1,o=-1;if(n&&r){i=r.renderFallback;for(let c=0;c<s.length;c++){let f=s[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(o=c),f.route.id){let{loaderData:d,errors:g}=r,p=f.route.loader&&!d.hasOwnProperty(f.route.id)&&(!g||g[f.route.id]===void 0);if(f.route.lazy||p){n.isStatic&&(i=!0),o>=0?s=s.slice(0,o+1):s=[s[0]];break}}}}let l=n==null?void 0:n.onError,u=r&&l?(c,f)=>{var d,g;l(c,{location:r.location,params:((g=(d=r.matches)==null?void 0:d[0])==null?void 0:g.params)??{},pattern:rr(r.matches),errorInfo:f})}:void 0;return s.reduceRight((c,f,d)=>{let g,p=!1,y=null,m=null;r&&(g=a&&f.route.id?a[f.route.id]:void 0,y=f.route.errorElement||vr,i&&(o<0&&d===0?(fn("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,m=null):o===d&&(p=!0,m=f.route.hydrateFallbackElement||null)));let x=e.concat(s.slice(0,d+1)),v=()=>{let b;return g?b=y:p?b=m:f.route.Component?b=h.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=c,h.createElement(br,{match:f,routeContext:{outlet:c,matches:x,isDataRoute:r!=null},children:b})};return r&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?h.createElement(cn,{location:r.location,revalidation:r.revalidation,component:y,error:g,children:v(),routeContext:{outlet:null,matches:x,isDataRoute:!0},onError:u}):v()},null)}function it(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Rr(t){let e=h.useContext(oe);return _(e,it(t)),e}function Er(t){let e=h.useContext(_e);return _(e,it(t)),e}function Cr(t){let e=h.useContext(K);return _(e,it(t)),e}function ot(t){let e=Cr(t),n=e.matches[e.matches.length-1];return _(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function Lr(){return ot("useRouteId")}function kr(){var r;let t=h.useContext(at),e=Er("useRouteError"),n=ot("useRouteError");return t!==void 0?t:(r=e.errors)==null?void 0:r[n]}function $r(){let{router:t}=Rr("useNavigate"),e=ot("useNavigate"),n=h.useRef(!1);return ln(()=>{n.current=!0}),h.useCallback(async(s,a={})=>{q(n.current,on),n.current&&(typeof s=="number"?await t.navigate(s):await t.navigate(s,{fromRouteId:e,...a}))},[t,e])}var Rt={};function fn(t,e,n){!e&&!Rt[t]&&(Rt[t]=!0,q(!1,n))}h.memo(Nr);function Nr({routes:t,manifest:e,future:n,state:r,isStatic:s,onError:a}){return un(t,void 0,{manifest:e,state:r,isStatic:s,onError:a})}function ni(t){return mr(t.context)}function Pr(t){_(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Or({basename:t="/",children:e=null,location:n,navigationType:r="POP",navigator:s,static:a=!1,useTransitions:i}){_(!Se(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=t.replace(/^\/*/,"/"),l=h.useMemo(()=>({basename:o,navigator:s,static:a,useTransitions:i,future:{}}),[o,s,a,i]);typeof n=="string"&&(n=ie(n));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:g="default",mask:p}=n,y=h.useMemo(()=>{let m=X(u,o);return m==null?null:{location:{pathname:m,search:c,hash:f,state:d,key:g,mask:p},navigationType:r}},[o,u,c,f,d,g,r,p]);return q(y!=null,`<Router basename="${o}"> is not able to match the URL "${u}${c}${f}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:h.createElement(B.Provider,{value:l},h.createElement(ve.Provider,{children:e,value:y}))}function ri({children:t,location:e}){return yr(Xe(t),e)}function Xe(t,e=[]){let n=[];return h.Children.forEach(t,(r,s)=>{if(!h.isValidElement(r))return;let a=[...e,s];if(r.type===h.Fragment){n.push.apply(n,Xe(r.props.children,a));return}_(r.type===Pr,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),_(!r.props.index||!r.props.children,"An index route cannot have child routes.");let i={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Xe(r.props.children,a)),n.push(i)}),n}var Le="get",ke="application/x-www-form-urlencoded";function je(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function Ir(t){return je(t)&&t.tagName.toLowerCase()==="button"}function Tr(t){return je(t)&&t.tagName.toLowerCase()==="form"}function Ar(t){return je(t)&&t.tagName.toLowerCase()==="input"}function Fr(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function _r(t,e){return t.button===0&&(!e||e==="_self")&&!Fr(t)}var Re=null;function jr(){if(Re===null)try{new FormData(document.createElement("form"),0),Re=!1}catch{Re=!0}return Re}var Dr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Be(t){return t!=null&&!Dr.has(t)?(q(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ke}"`),null):t}function Mr(t,e){let n,r,s,a,i;if(Tr(t)){let o=t.getAttribute("action");r=o?X(o,e):null,n=t.getAttribute("method")||Le,s=Be(t.getAttribute("enctype"))||ke,a=new FormData(t)}else if(Ir(t)||Ar(t)&&(t.type==="submit"||t.type==="image")){let o=t.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||o.getAttribute("action");if(r=l?X(l,e):null,n=t.getAttribute("formmethod")||o.getAttribute("method")||Le,s=Be(t.getAttribute("formenctype"))||Be(o.getAttribute("enctype"))||ke,a=new FormData(o,t),!jr()){let{name:u,type:c,value:f}=t;if(c==="image"){let d=u?`${u}.`:"";a.append(`${d}x`,"0"),a.append(`${d}y`,"0")}else u&&a.append(u,f)}}else{if(je(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Le,r=null,s=ke,i=t}return a&&s==="text/plain"&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:s,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function lt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function hn(t,e,n,r){let s=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return n?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${r}`:s.pathname=`${s.pathname}.${r}`:s.pathname==="/"?s.pathname=`_root.${r}`:e&&X(s.pathname,e)==="/"?s.pathname=`${Oe(e)}/_root.${r}`:s.pathname=`${Oe(s.pathname)}.${r}`,s}async function Vr(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Hr(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Ur(t,e,n){let r=await Promise.all(t.map(async s=>{let a=e.routes[s.route.id];if(a){let i=await Vr(a,n);return i.links?i.links():[]}return[]}));return Kr(r.flat(1).filter(Hr).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Et(t,e,n,r,s,a){let i=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,o=(l,u)=>{var c;return n[u].pathname!==l.pathname||((c=n[u].route.path)==null?void 0:c.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return a==="assets"?e.filter((l,u)=>i(l,u)||o(l,u)):a==="data"?e.filter((l,u)=>{var f;let c=r.routes[l.route.id];if(!c||!c.hasLoader)return!1;if(i(l,u)||o(l,u))return!0;if(l.route.shouldRevalidate){let d=l.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(t,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function Br(t,e,{includeHydrateFallback:n}={}){return zr(t.map(r=>{let s=e.routes[r.route.id];if(!s)return[];let a=[s.module];return s.clientActionModule&&(a=a.concat(s.clientActionModule)),s.clientLoaderModule&&(a=a.concat(s.clientLoaderModule)),n&&s.hydrateFallbackModule&&(a=a.concat(s.hydrateFallbackModule)),s.imports&&(a=a.concat(s.imports)),a}).flat(1))}function zr(t){return[...new Set(t)]}function Wr(t){let e={},n=Object.keys(t).sort();for(let r of n)e[r]=t[r];return e}function Kr(t,e){let n=new Set;return new Set(e),t.reduce((r,s)=>{let a=JSON.stringify(Wr(s));return n.has(a)||(n.add(a),r.push({key:a,link:s})),r},[])}function ut(){let t=h.useContext(oe);return lt(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Jr(){let t=h.useContext(_e);return lt(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var ct=h.createContext(void 0);ct.displayName="FrameworkContext";function ft(){let t=h.useContext(ct);return lt(t,"You must render this element inside a <HydratedRouter> element"),t}function qr(t,e){let n=h.useContext(ct),[r,s]=h.useState(!1),[a,i]=h.useState(!1),{onFocus:o,onBlur:l,onMouseEnter:u,onMouseLeave:c,onTouchStart:f}=e,d=h.useRef(null);h.useEffect(()=>{if(t==="render"&&i(!0),t==="viewport"){let y=x=>{x.forEach(v=>{i(v.isIntersecting)})},m=new IntersectionObserver(y,{threshold:.5});return d.current&&m.observe(d.current),()=>{m.disconnect()}}},[t]),h.useEffect(()=>{if(r){let y=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(y)}}},[r]);let g=()=>{s(!0)},p=()=>{s(!1),i(!1)};return n?t!=="intent"?[a,d,{}]:[a,d,{onFocus:ue(o,g),onBlur:ue(l,p),onMouseEnter:ue(u,g),onMouseLeave:ue(c,p),onTouchStart:ue(f,g)}]:[!1,d,{}]}function ue(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function Yr({page:t,...e}){let n=ar(),{router:r}=ut(),s=h.useMemo(()=>Yt(r.routes,t,r.basename),[r.routes,t,r.basename]);return s?n?h.createElement(Zr,{page:t,matches:s,...e}):h.createElement(Xr,{page:t,matches:s,...e}):null}function Gr(t){let{manifest:e,routeModules:n}=ft(),[r,s]=h.useState([]);return h.useEffect(()=>{let a=!1;return Ur(t,e,n).then(i=>{a||s(i)}),()=>{a=!0}},[t,e,n]),r}function Zr({page:t,matches:e,...n}){let r=Q(),{future:s}=ft(),{basename:a}=ut(),i=h.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let o=hn(t,a,s.unstable_trailingSlashAwareDataRequests,"rsc"),l=!1,u=[];for(let c of e)typeof c.route.shouldRevalidate=="function"?l=!0:u.push(c.route.id);return l&&u.length>0&&o.searchParams.set("_routes",u.join(",")),[o.pathname+o.search]},[a,s.unstable_trailingSlashAwareDataRequests,t,r,e]);return h.createElement(h.Fragment,null,i.map(o=>h.createElement("link",{key:o,rel:"prefetch",as:"fetch",href:o,...n})))}function Xr({page:t,matches:e,...n}){let r=Q(),{future:s,manifest:a,routeModules:i}=ft(),{basename:o}=ut(),{loaderData:l,matches:u}=Jr(),c=h.useMemo(()=>Et(t,e,u,a,r,"data"),[t,e,u,a,r]),f=h.useMemo(()=>Et(t,e,u,a,r,"assets"),[t,e,u,a,r]),d=h.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let y=new Set,m=!1;if(e.forEach(v=>{var S;let b=a.routes[v.route.id];!b||!b.hasLoader||(!c.some(R=>R.route.id===v.route.id)&&v.route.id in l&&((S=i[v.route.id])!=null&&S.shouldRevalidate)||b.hasClientLoader?m=!0:y.add(v.route.id))}),y.size===0)return[];let x=hn(t,o,s.unstable_trailingSlashAwareDataRequests,"data");return m&&y.size>0&&x.searchParams.set("_routes",e.filter(v=>y.has(v.route.id)).map(v=>v.route.id).join(",")),[x.pathname+x.search]},[o,s.unstable_trailingSlashAwareDataRequests,l,r,a,c,e,t,i]),g=h.useMemo(()=>Br(f,a),[f,a]),p=Gr(f);return h.createElement(h.Fragment,null,d.map(y=>h.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),g.map(y=>h.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),p.map(({key:y,link:m})=>h.createElement("link",{key:y,nonce:n.nonce,...m,crossOrigin:m.crossOrigin??n.crossOrigin})))}function Qr(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var es=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{es&&(window.__reactRouterVersion="7.15.1")}catch{}function si({basename:t,children:e,useTransitions:n,window:r}){let s=h.useRef();s.current==null&&(s.current=On({window:r,v5Compat:!0}));let a=s.current,[i,o]=h.useState({action:a.action,location:a.location}),l=h.useCallback(u=>{n===!1?o(u):h.startTransition(()=>o(u))},[n]);return h.useLayoutEffect(()=>a.listen(l),[a,l]),h.createElement(Or,{basename:t,children:e,location:i.location,navigationType:i.action,navigator:a,useTransitions:n})}var dn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pn=h.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:s,reloadDocument:a,replace:i,mask:o,state:l,target:u,to:c,preventScrollReset:f,viewTransition:d,defaultShouldRevalidate:g,...p},y){let{basename:m,navigator:x,useTransitions:v}=h.useContext(B),b=typeof c=="string"&&dn.test(c),S=tn(c,m);c=S.to;let R=hr(c,{relative:s}),T=Q(),L=null;if(o){let P=st(o,[],T.mask?T.mask.pathname:"/",!0);m!=="/"&&(P.pathname=P.pathname==="/"?m:W([m,P.pathname])),L=x.createHref(P)}let[O,w,$]=qr(r,p),D=ss(c,{replace:i,mask:o,state:l,target:u,preventScrollReset:f,relative:s,viewTransition:d,defaultShouldRevalidate:g,useTransitions:v});function A(P){e&&e(P),P.defaultPrevented||D(P)}let k=!(S.isExternal||a),E=h.createElement("a",{...p,...$,href:(k?L:void 0)||S.absoluteURL||R,onClick:k?A:e,ref:Qr(y,w),target:u,"data-discover":!b&&n==="render"?"true":void 0});return O&&!b?h.createElement(h.Fragment,null,E,h.createElement(Yr,{page:R})):E});pn.displayName="Link";var ts=h.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:s=!1,style:a,to:i,viewTransition:o,children:l,...u},c){let f=be(i,{relative:u.relative}),d=Q(),g=h.useContext(_e),{navigator:p,basename:y}=h.useContext(B),m=g!=null&&us(f)&&o===!0,x=p.encodeLocation?p.encodeLocation(f).pathname:f.pathname,v=d.pathname,b=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;n||(v=v.toLowerCase(),b=b?b.toLowerCase():null,x=x.toLowerCase()),b&&y&&(b=X(b,y)||b);const S=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let R=v===x||!s&&v.startsWith(x)&&v.charAt(S)==="/",T=b!=null&&(b===x||!s&&b.startsWith(x)&&b.charAt(x.length)==="/"),L={isActive:R,isPending:T,isTransitioning:m},O=R?e:void 0,w;typeof r=="function"?w=r(L):w=[r,R?"active":null,T?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let $=typeof a=="function"?a(L):a;return h.createElement(pn,{...u,"aria-current":O,className:w,ref:c,style:$,to:i,viewTransition:o},typeof l=="function"?l(L):l)});ts.displayName="NavLink";var ns=h.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:s,state:a,method:i=Le,action:o,onSubmit:l,relative:u,preventScrollReset:c,viewTransition:f,defaultShouldRevalidate:d,...g},p)=>{let{useTransitions:y}=h.useContext(B),m=os(),x=ls(o,{relative:u}),v=i.toLowerCase()==="get"?"get":"post",b=typeof o=="string"&&dn.test(o),S=R=>{if(l&&l(R),R.defaultPrevented)return;R.preventDefault();let T=R.nativeEvent.submitter,L=(T==null?void 0:T.getAttribute("formmethod"))||i,O=()=>m(T||R.currentTarget,{fetcherKey:e,method:L,navigate:n,replace:s,state:a,relative:u,preventScrollReset:c,viewTransition:f,defaultShouldRevalidate:d});y&&n!==!1?h.startTransition(()=>O()):O()};return h.createElement("form",{ref:p,method:v,action:x,onSubmit:r?l:S,...g,"data-discover":!b&&t==="render"?"true":void 0})});ns.displayName="Form";function rs(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function gn(t){let e=h.useContext(oe);return _(e,rs(t)),e}function ss(t,{target:e,replace:n,mask:r,state:s,preventScrollReset:a,relative:i,viewTransition:o,defaultShouldRevalidate:l,useTransitions:u}={}){let c=dr(),f=Q(),d=be(t,{relative:i});return h.useCallback(g=>{if(_r(g,e)){g.preventDefault();let p=n!==void 0?n:me(f)===me(d),y=()=>c(t,{replace:p,mask:r,state:s,preventScrollReset:a,relative:i,viewTransition:o,defaultShouldRevalidate:l});u?h.startTransition(()=>y()):y()}},[f,c,d,n,r,s,e,t,a,i,o,l,u])}var as=0,is=()=>`__${String(++as)}__`;function os(){let{router:t}=gn("useSubmit"),{basename:e}=h.useContext(B),n=Lr(),r=t.fetch,s=t.navigate;return h.useCallback(async(a,i={})=>{let{action:o,method:l,encType:u,formData:c,body:f}=Mr(a,e);if(i.navigate===!1){let d=i.fetcherKey||is();await r(d,n,i.action||o,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:c,body:f,formMethod:i.method||l,formEncType:i.encType||u,flushSync:i.flushSync})}else await s(i.action||o,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:c,body:f,formMethod:i.method||l,formEncType:i.encType||u,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[r,s,e,n])}function ls(t,{relative:e}={}){let{basename:n}=h.useContext(B),r=h.useContext(K);_(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),a={...be(t||".",{relative:e})},i=Q();if(t==null){a.search=i.search;let o=new URLSearchParams(a.search),l=o.getAll("index");if(l.some(c=>c==="")){o.delete("index"),l.filter(f=>f).forEach(f=>o.append("index",f));let c=o.toString();a.search=c?`?${c}`:""}}return(!t||t===".")&&s.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:W([n,a.pathname])),me(a)}function us(t,{relative:e}={}){let n=h.useContext(sn);_(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=gn("useViewTransitionState"),s=be(t,{relative:e});if(!n.isTransitioning)return!1;let a=X(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=X(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Pe(s.pathname,i)!=null||Pe(s.pathname,a)!=null}const Ct=t=>{let e;const n=new Set,r=(u,c)=>{const f=typeof u=="function"?u(e):u;if(!Object.is(f,e)){const d=e;e=c??(typeof f!="object"||f===null)?f:Object.assign({},e,f),n.forEach(g=>g(e,d))}},s=()=>e,o={setState:r,getState:s,getInitialState:()=>l,subscribe:u=>(n.add(u),()=>n.delete(u))},l=e=t(r,s,o);return o},cs=(t=>t?Ct(t):Ct),fs=t=>t;function hs(t,e=fs){const n=we.useSyncExternalStore(t.subscribe,we.useCallback(()=>e(t.getState()),[t,e]),we.useCallback(()=>e(t.getInitialState()),[t,e]));return we.useDebugValue(n),n}const Lt=t=>{const e=cs(t),n=r=>hs(e,r);return Object.assign(n,e),n},ai=(t=>t?Lt(t):Lt);function ds(t,e){let n;try{n=t()}catch{return}return{getItem:s=>{var a;const i=l=>l===null?null:JSON.parse(l,void 0),o=(a=n.getItem(s))!=null?a:null;return o instanceof Promise?o.then(i):i(o)},setItem:(s,a)=>n.setItem(s,JSON.stringify(a,void 0)),removeItem:s=>n.removeItem(s)}}const Qe=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(r){return Qe(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Qe(r)(n)}}}},ps=(t,e)=>(n,r,s)=>{let a={storage:ds(()=>window.localStorage),partialize:m=>m,version:0,merge:(m,x)=>({...x,...m}),...e},i=!1,o=0;const l=new Set,u=new Set;let c=a.storage;if(!c)return t((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...m)},r,s);const f=()=>{const m=a.partialize({...r()});return c.setItem(a.name,{state:m,version:a.version})},d=s.setState;s.setState=(m,x)=>(d(m,x),f());const g=t((...m)=>(n(...m),f()),r,s);s.getInitialState=()=>g;let p;const y=()=>{var m,x;if(!c)return;const v=++o;i=!1,l.forEach(S=>{var R;return S((R=r())!=null?R:g)});const b=((x=a.onRehydrateStorage)==null?void 0:x.call(a,(m=r())!=null?m:g))||void 0;return Qe(c.getItem.bind(c))(a.name).then(S=>{if(S)if(typeof S.version=="number"&&S.version!==a.version){if(a.migrate){const R=a.migrate(S.state,S.version);return R instanceof Promise?R.then(T=>[!0,T]):[!0,R]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,S.state];return[!1,void 0]}).then(S=>{var R;if(v!==o)return;const[T,L]=S;if(p=a.merge(L,(R=r())!=null?R:g),n(p,!0),T)return f()}).then(()=>{v===o&&(b==null||b(r(),void 0),p=r(),i=!0,u.forEach(S=>S(p)))}).catch(S=>{v===o&&(b==null||b(void 0,S))})};return s.persist={setOptions:m=>{a={...a,...m},m.storage&&(c=m.storage)},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>y(),hasHydrated:()=>i,onHydrate:m=>(l.add(m),()=>{l.delete(m)}),onFinishHydration:m=>(u.add(m),()=>{u.delete(m)})},a.skipHydration||y(),p||g},ii=ps,C=t=>typeof t=="string",ce=()=>{let t,e;const n=new Promise((r,s)=>{t=r,e=s});return n.resolve=t,n.reject=e,n},kt=t=>t==null?"":String(t),gs=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},ms=/###/g,$t=t=>t&&t.includes("###")?t.replace(ms,"."):t,Nt=t=>!t||C(t),de=(t,e,n)=>{const r=C(e)?e.split("."):e;let s=0;for(;s<r.length-1;){if(Nt(t))return{};const a=$t(r[s]);!t[a]&&n&&(t[a]=new n),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={},++s}return Nt(t)?{}:{obj:t,k:$t(r[s])}},Pt=(t,e,n)=>{const{obj:r,k:s}=de(t,e,Object);if(r!==void 0||e.length===1){r[s]=n;return}let a=e[e.length-1],i=e.slice(0,e.length-1),o=de(t,i,Object);for(;o.obj===void 0&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),o=de(t,i,Object),o!=null&&o.obj&&typeof o.obj[`${o.k}.${a}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${a}`]=n},ys=(t,e,n,r)=>{const{obj:s,k:a}=de(t,e,Object);s[a]=s[a]||[],s[a].push(n)},Ie=(t,e)=>{const{obj:n,k:r}=de(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},xs=(t,e,n)=>{const r=Ie(t,n);return r!==void 0?r:Ie(e,n)},mn=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?C(t[r])||t[r]instanceof String||C(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):mn(t[r],e[r],n):t[r]=e[r]);return t},G=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),vs={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},Ss=t=>C(t)?t.replace(/[&<>"'\/]/g,e=>vs[e]):t;class bs{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const ws=[" ",",","?","!",";"],Rs=new bs(20),Es=(t,e,n)=>{e=e||"",n=n||"";const r=ws.filter(i=>!e.includes(i)&&!n.includes(i));if(r.length===0)return!0;const s=Rs.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let a=!s.test(t);if(!a){const i=t.indexOf(n);i>0&&!s.test(t.substring(0,i))&&(a=!0)}return a},et=(t,e,n=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const r=e.split(n);let s=t;for(let a=0;a<r.length;){if(!s||typeof s!="object")return;let i,o="";for(let l=a;l<r.length;++l)if(l!==a&&(o+=n),o+=r[l],i=s[o],i!==void 0){if(["string","number","boolean"].includes(typeof i)&&l<r.length-1)continue;a+=l-a+1;break}s=i}return s},ye=t=>t==null?void 0:t.replace(/_/g,"-"),Cs={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){var n,r;(r=(n=console==null?void 0:console[t])==null?void 0:n.apply)==null||r.call(n,console,e)}};class Te{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||Cs,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,s){return s&&!this.debug?null:(e=e.map(a=>C(a)?a.replace(/[\r\n\x00-\x1F\x7F]/g," "):a),C(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new Te(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Te(this.logger,e)}}var J=new Te;class De{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const s=this.observers[r].get(n)||0;this.observers[r].set(n,s+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}once(e,n){const r=(...s)=>{n(...s),this.off(e,r)};return this.on(e,r),this}emit(e,...n){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([s,a])=>{for(let i=0;i<a;i++)s(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,a])=>{for(let i=0;i<a;i++)s(e,...n)})}}class Ot extends De{constructor(e,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r,s={}){var u,c;const a=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,i=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.includes(".")?o=e.split("."):(o=[e,n],r&&(Array.isArray(r)?o.push(...r):C(r)&&a?o.push(...r.split(a)):o.push(r)));const l=Ie(this.data,o);return!l&&!n&&!r&&e.includes(".")&&(e=o[0],n=o[1],r=o.slice(2).join(".")),l||!i||!C(r)?l:et((c=(u=this.data)==null?void 0:u[e])==null?void 0:c[n],r,a)}addResource(e,n,r,s,a={silent:!1}){const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let o=[e,n];r&&(o=o.concat(i?r.split(i):r)),e.includes(".")&&(o=e.split("."),s=n,n=o[1]),this.addNamespaces(n),Pt(this.data,o,s),a.silent||this.emit("added",e,n,r,s)}addResources(e,n,r,s={silent:!1}){for(const a in r)(C(r[a])||Array.isArray(r[a]))&&this.addResource(e,n,a,r[a],{silent:!0});s.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,s,a,i={silent:!1,skipCopy:!1}){let o=[e,n];e.includes(".")&&(o=e.split("."),s=r,r=n,n=o[1]),this.addNamespaces(n);let l=Ie(this.data,o)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),s?mn(l,r,a):l={...l,...r},Pt(this.data,o,l),i.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var yn={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,s){return t.forEach(a=>{var i;e=((i=this.processors[a])==null?void 0:i.process(e,n,r,s))??e}),e}};const xn=Symbol("i18next/PATH_KEY");function Ls(){const t=[],e=Object.create(null);let n;return e.get=(r,s)=>{var a;return(a=n==null?void 0:n.revoke)==null||a.call(n),s===xn?t:(t.push(s),n=Proxy.revocable(r,e),n.proxy)},Proxy.revocable(Object.create(null),e).proxy}function se(t,e){const{[xn]:n}=t(Ls()),r=(e==null?void 0:e.keySeparator)??".",s=(e==null?void 0:e.nsSeparator)??":",a=(e==null?void 0:e.enableSelector)==="strict";if(n.length>1&&s){const i=e==null?void 0:e.ns,o=a?Array.isArray(i)?i:i?[i]:null:Array.isArray(i)?i:null;if(o&&(a?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${s}${n.slice(1).join(r)}`}return n.join(r)}const ze=t=>!C(t)&&typeof t!="boolean"&&typeof t!="number";class Ae extends De{constructor(e,n={}){super(),gs(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=J.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const r={...n};if(e==null)return!1;const s=this.resolve(e,r);if((s==null?void 0:s.res)===void 0)return!1;const a=ze(s.res);return!(r.returnObjects===!1&&a)}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const i=r&&e.includes(r),o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Es(e,r,s);if(i&&!o){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:C(a)?[a]:a};const u=e.split(r);(r!==s||r===s&&this.options.ns.includes(u[0]))&&(a=u.shift()),e=u.join(s)}return{key:e,namespaces:C(a)?[a]:a}}translate(e,n,r){let s=typeof n=="object"?{...n}:n;if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof s=="object"&&(s={...s}),s||(s={}),e==null)return"";typeof e=="function"&&(e=se(e,{...this.options,...s})),Array.isArray(e)||(e=[String(e)]),e=e.map(k=>typeof k=="function"?se(k,{...this.options,...s}):String(k));const a=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(e[e.length-1],s),u=l[l.length-1];let c=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const f=s.lng||this.language,d=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((f==null?void 0:f.toLowerCase())==="cimode")return d?a?{res:`${u}${c}${o}`,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(s)}:`${u}${c}${o}`:a?{res:o,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(s)}:o;const g=this.resolve(e,s);let p=g==null?void 0:g.res;const y=(g==null?void 0:g.usedKey)||o,m=(g==null?void 0:g.exactUsedKey)||o,x=["[object Number]","[object Function]","[object RegExp]"],v=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,S=s.count!==void 0&&!C(s.count),R=Ae.hasDefaultValue(s),T=S?this.pluralResolver.getSuffix(f,s.count,s):"",L=s.ordinal&&S?this.pluralResolver.getSuffix(f,s.count,{ordinal:!1}):"",O=S&&!s.ordinal&&s.count===0,w=O&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${T}`]||s[`defaultValue${L}`]||s.defaultValue;let $=p;b&&!p&&R&&($=w);const D=ze($),A=Object.prototype.toString.apply($);if(b&&$&&D&&!x.includes(A)&&!(C(v)&&Array.isArray($))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,$,{...s,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return a?(g.res=k,g.usedParams=this.getUsedParamsDetails(s),g):k}if(i){const k=Array.isArray($),E=k?[]:{},P=k?m:y;for(const N in $)if(Object.prototype.hasOwnProperty.call($,N)){const j=`${P}${i}${N}`;R&&!p?E[N]=this.translate(j,{...s,defaultValue:ze(w)?w[N]:void 0,joinArrays:!1,ns:l}):E[N]=this.translate(j,{...s,joinArrays:!1,ns:l}),E[N]===j&&(E[N]=$[N])}p=E}}else if(b&&C(v)&&Array.isArray(p))p=p.join(v),p&&(p=this.extendTranslation(p,e,s,r));else{let k=!1,E=!1;!this.isValidLookup(p)&&R&&(k=!0,p=w),this.isValidLookup(p)||(E=!0,p=o);const N=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:p,j=R&&w!==p&&this.options.updateMissing;if(E||k||j){if(this.logger.log(j?"updateKey":"missingKey",f,u,S&&!j?`${o}${this.pluralResolver.getSuffix(f,s.count,s)}`:o,j?w:p),i){const I=this.resolve(o,{...s,keySeparator:!1});I&&I.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let U=[];const Y=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Y&&Y[0])for(let I=0;I<Y.length;I++)U.push(Y[I]);else this.options.saveMissingTo==="all"?U=this.languageUtils.toResolveHierarchy(s.lng||this.language):U.push(s.lng||this.language);const te=(I,M,z)=>{var re;const ne=R&&z!==p?z:N;this.options.missingKeyHandler?this.options.missingKeyHandler(I,u,M,ne,j,s):(re=this.backendConnector)!=null&&re.saveMissing&&this.backendConnector.saveMissing(I,u,M,ne,j,s),this.emit("missingKey",I,u,M,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?U.forEach(I=>{const M=this.pluralResolver.getSuffixes(I,s);O&&s[`defaultValue${this.options.pluralSeparator}zero`]&&!M.includes(`${this.options.pluralSeparator}zero`)&&M.push(`${this.options.pluralSeparator}zero`),M.forEach(z=>{te([I],o+z,s[`defaultValue${z}`]||w)})}):te(U,o,w))}p=this.extendTranslation(p,e,s,g,r),E&&p===o&&this.options.appendNamespaceToMissingKey&&(p=`${u}${c}${o}`),(E||k)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${c}${o}`:o,k?p:void 0,s))}return a?(g.res=p,g.usedParams=this.getUsedParamsDetails(s),g):p}extendTranslation(e,n,r,s,a){var l,u;if((l=this.i18nFormat)!=null&&l.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=C(e)&&(((u=r==null?void 0:r.interpolation)==null?void 0:u.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(c){const g=e.match(this.interpolator.nestingRegexp);f=g&&g.length}let d=r.replace&&!C(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,r.lng||this.language||s.usedLng,r),c){const g=e.match(this.interpolator.nestingRegexp),p=g&&g.length;f<p&&(r.nest=!1)}!r.lng&&s&&s.res&&(r.lng=this.language||s.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,(...g)=>(a==null?void 0:a[0])===g[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${n[0]}`),null):this.translate(...g,n),r)),r.interpolation&&this.interpolator.reset()}const i=r.postProcess||this.options.postProcess,o=C(i)?[i]:i;return e!=null&&(o!=null&&o.length)&&r.applyPostProcessor!==!1&&(e=yn.handle(o,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,n={}){let r,s,a,i,o;return C(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(l=>typeof l=="function"?se(l,{...this.options,...n}):l)),e.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),c=u.key;s=c;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=n.count!==void 0&&!C(n.count),g=d&&!n.ordinal&&n.count===0,p=n.context!==void 0&&(C(n.context)||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(m=>{var x,v;this.isValidLookup(r)||(o=m,!this.checkedLoadedFor[`${y[0]}-${m}`]&&((x=this.utils)!=null&&x.hasLoadedNamespace)&&!((v=this.utils)!=null&&v.hasLoadedNamespace(o))&&(this.checkedLoadedFor[`${y[0]}-${m}`]=!0,this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(b=>{var T;if(this.isValidLookup(r))return;i=b;const S=[c];if((T=this.i18nFormat)!=null&&T.addLookupKeys)this.i18nFormat.addLookupKeys(S,c,b,m,n);else{let L;d&&(L=this.pluralResolver.getSuffix(b,n.count,n));const O=`${this.options.pluralSeparator}zero`,w=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(n.ordinal&&L.startsWith(w)&&S.push(c+L.replace(w,this.options.pluralSeparator)),S.push(c+L),g&&S.push(c+O)),p){const $=`${c}${this.options.contextSeparator||"_"}${n.context}`;S.push($),d&&(n.ordinal&&L.startsWith(w)&&S.push($+L.replace(w,this.options.pluralSeparator)),S.push($+L),g&&S.push($+O))}}let R;for(;R=S.pop();)this.isValidLookup(r)||(a=R,r=this.getResource(b,m,R,n))}))})}),{res:r,usedKey:s,exactUsedKey:a,usedLng:i,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r,s={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(e,n,r,s):this.resourceStore.getResource(e,n,r,s)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!C(e.replace);let s=r?e.replace:e;if(r&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const a of n)delete s[a]}return s}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&r.startsWith(n)&&e[r]!==void 0)return!0;return!1}}class It{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=J.create("languageUtils")}getScriptPartFromCode(e){if(e=ye(e),!e||!e.includes("-"))return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=ye(e),!e||!e.includes("-"))return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(C(e)&&e.includes("-")){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const s=this.getScriptPartFromCode(r);if(this.isSupportedCode(s))return n=s;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(i=>i===a?!0:!i.includes("-")&&!a.includes("-")?!1:!!(i.includes("-")&&!a.includes("-")&&i.slice(0,i.indexOf("-"))===a||i.startsWith(a)&&a.length>1))}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),C(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],e),s=[],a=i=>{i&&(this.isSupportedCode(i)?s.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return C(e)&&(e.includes("-")||e.includes("_"))?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):C(e)&&a(this.formatLanguageCode(e)),r.forEach(i=>{s.includes(i)||a(this.formatLanguageCode(i))}),s}}const Tt={zero:0,one:1,two:2,few:3,many:4,other:5},At={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class ks{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=J.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const r=ye(e==="dev"?"en":e),s=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:r,type:s});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let i;try{i=new Intl.PluralRules(r,{type:s})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),At;if(!e.match(/-|_/))return At;const l=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(l,n)}return this.pluralRulesCache[a]=i,i}needsPlural(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,n,r={}){return this.getSuffixes(e,r).map(s=>`${n}${s}`)}getSuffixes(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((s,a)=>Tt[s]-Tt[a]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,n,r={}){const s=this.getRule(e,r);return s?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,r))}}const Ft=(t,e,n,r=".",s=!0)=>{let a=xs(t,e,n);return!a&&s&&C(n)&&(a=et(t,n,r),a===void 0&&(a=et(e,n,r))),a},We=t=>t.replace(/\$/g,"$$$$");class _t{constructor(e={}){var n;this.logger=J.create("interpolator"),this.options=e,this.format=((n=e==null?void 0:e.interpolation)==null?void 0:n.format)||(r=>r),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:s,prefix:a,prefixEscaped:i,suffix:o,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:g,nestingSuffix:p,nestingSuffixEscaped:y,nestingOptionsSeparator:m,maxReplaces:x,alwaysFormat:v}=e.interpolation;this.escape=n!==void 0?n:Ss,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=a?G(a):i||"{{",this.suffix=o?G(o):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":f?G(f):"-",this.unescapeSuffix=this.unescapePrefix?"":c?G(c):"",this.nestingPrefix=d?G(d):g||G("$t("),this.nestingSuffix=p?G(p):y||G(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=x||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,n,r,s){var g;let a,i,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=p=>{if(!p.includes(this.formatSeparator)){const v=Ft(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...s,...n,interpolationkey:p}):v}const y=p.split(this.formatSeparator),m=y.shift().trim(),x=y.join(this.formatSeparator).trim();return this.format(Ft(n,l,m,this.options.keySeparator,this.options.ignoreJSONStructure),x,r,{...s,...n,interpolationkey:m})};this.resetRegExp(),!this.escapeValue&&typeof e=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const c=(s==null?void 0:s.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((g=s==null?void 0:s.interpolation)==null?void 0:g.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>We(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?We(this.escape(p)):We(p)}].forEach(p=>{for(o=0;a=p.regex.exec(e);){const y=a[1].trim();if(i=u(y),i===void 0)if(typeof c=="function"){const x=c(e,a,s);i=C(x)?x:""}else if(s&&Object.prototype.hasOwnProperty.call(s,y))i="";else if(f){i=a[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${e}`),i="";else!C(i)&&!this.useRawValueToEscape&&(i=kt(i));const m=p.safeValue(i);if(e=e.replace(a[0],m),f?(p.regex.lastIndex+=i.length,p.regex.lastIndex-=a[0].length):p.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,n,r={}){let s,a,i;const o=(l,u)=>{const c=this.nestingOptionsSeparator;if(!l.includes(c))return l;const f=l.split(new RegExp(`${G(c)}[ ]*{`));let d=`{${f[1]}`;l=f[0],d=this.interpolate(d,i);const g=d.match(/'/g),p=d.match(/"/g);(((g==null?void 0:g.length)??0)%2===0&&!p||((p==null?void 0:p.length)??0)%2!==0)&&(d=d.replace(/'/g,'"'));try{i=JSON.parse(d),u&&(i={...u,...i})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${c}${d}`}return i.defaultValue&&i.defaultValue.includes(this.prefix)&&delete i.defaultValue,l};for(;s=this.nestingRegexp.exec(e);){let l=[];i={...r},i=i.replace&&!C(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const u=/{.*}/.test(s[1])?s[1].lastIndexOf("}")+1:s[1].indexOf(this.formatSeparator);if(u!==-1&&(l=s[1].slice(u).split(this.formatSeparator).map(c=>c.trim()).filter(Boolean),s[1]=s[1].slice(0,u)),a=n(o.call(this,s[1].trim(),i),i),a&&s[0]===e&&!C(a))return a;C(a)||(a=kt(a)),a||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),a=""),l.length&&(a=l.reduce((c,f)=>this.format(c,f,r.lng,{...r,interpolationkey:s[1].trim()}),a.trim())),e=e.replace(s[0],a),this.regexp.lastIndex=0}return e}}const $s=t=>{let e=t.toLowerCase().trim();const n={};if(t.includes("(")){const r=t.split("(");e=r[0].toLowerCase().trim();const s=r[1].slice(0,-1);e==="currency"&&!s.includes(":")?n.currency||(n.currency=s.trim()):e==="relativetime"&&!s.includes(":")?n.range||(n.range=s.trim()):s.split(";").forEach(i=>{if(i){const[o,...l]=i.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=o.trim();n[c]||(n[c]=u),u==="false"&&(n[c]=!1),u==="true"&&(n[c]=!0),isNaN(u)||(n[c]=parseInt(u,10))}})}return{formatName:e,formatOptions:n}},jt=t=>{const e={};return(n,r,s)=>{let a=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(a={...a,[s.interpolationkey]:void 0});const i=r+JSON.stringify(a);let o=e[i];return o||(o=t(ye(r),s),e[i]=o),o(n)}},Ns=t=>(e,n,r)=>t(ye(n),r)(e);class Ps{constructor(e={}){this.logger=J.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?jt:Ns;this.formats={number:r((s,a)=>{const i=new Intl.NumberFormat(s,{...a});return o=>i.format(o)}),currency:r((s,a)=>{const i=new Intl.NumberFormat(s,{...a,style:"currency"});return o=>i.format(o)}),datetime:r((s,a)=>{const i=new Intl.DateTimeFormat(s,{...a});return o=>i.format(o)}),relativetime:r((s,a)=>{const i=new Intl.RelativeTimeFormat(s,{...a});return o=>i.format(o,a.range||"day")}),list:r((s,a)=>{const i=new Intl.ListFormat(s,{...a});return o=>i.format(o)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=jt(n)}format(e,n,r,s={}){if(!n||e==null)return e;const a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&!a[0].includes(")")&&a.find(o=>o.includes(")"))){const o=a.findIndex(l=>l.includes(")"));a[0]=[a[0],...a.splice(1,o)].join(this.formatSeparator)}return a.reduce((o,l)=>{var f;const{formatName:u,formatOptions:c}=$s(l);if(this.formats[u]){let d=o;try{const g=((f=s==null?void 0:s.formatParams)==null?void 0:f[s.interpolationkey])||{},p=g.locale||g.lng||s.locale||s.lng||r;d=this.formats[u](o,p,{...c,...s,...g})}catch(g){this.logger.warn(g)}return d}else this.logger.warn(`there was no format function for ${u}`);return o},e)}}const Os=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class Is extends De{constructor(e,n,r,s={}){var a,i;super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=J.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],(i=(a=this.backend)==null?void 0:a.init)==null||i.call(a,r,s.backend,s)}queueLoad(e,n,r,s){const a={},i={},o={},l={};return e.forEach(u=>{let c=!0;n.forEach(f=>{const d=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?i[d]===void 0&&(i[d]=!0):(this.state[d]=1,c=!1,i[d]===void 0&&(i[d]=!0),a[d]===void 0&&(a[d]=!0),l[f]===void 0&&(l[f]=!0)))}),c||(o[u]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(e,n,r){const s=e.split("|"),a=s[0],i=s[1];n&&this.emit("failedLoading",a,i,n),!n&&r&&this.store.addResourceBundle(a,i,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const o={};this.queue.forEach(l=>{ys(l.loaded,[a],i),Os(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{o[u]||(o[u]={});const c=l.loaded[u];c.length&&c.forEach(f=>{o[u][f]===void 0&&(o[u][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(e,n,r,s=0,a=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:s,wait:a,callback:i});return}this.readingCalls++;const o=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&c&&s<this.maxRetries){setTimeout(()=>{this.read(e,n,r,s+1,a*2,i)},a);return}i(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(e,n);u&&typeof u.then=="function"?u.then(c=>o(null,c)).catch(o):o(null,u)}catch(u){o(u)}return}return l(e,n,o)}prepareLoading(e,n,r={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();C(e)&&(e=this.languageUtils.toResolveHierarchy(e)),C(n)&&(n=[n]);const a=this.queueLoad(e,n,r,s);if(!a.toLoad.length)return a.pending.length||s(),null;a.toLoad.forEach(i=>{this.loadOne(i)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e,n=""){const r=e.split("|"),s=r[0],a=r[1];this.read(s,a,"read",void 0,void 0,(i,o)=>{i&&this.logger.warn(`${n}loading namespace ${a} for language ${s} failed`,i),!i&&o&&this.logger.log(`${n}loaded namespace ${a} for language ${s}`,o),this.loaded(e,i,o)})}saveMissing(e,n,r,s,a,i={},o=()=>{}){var l,u,c,f,d;if((u=(l=this.services)==null?void 0:l.utils)!=null&&u.hasLoadedNamespace&&!((f=(c=this.services)==null?void 0:c.utils)!=null&&f.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((d=this.backend)!=null&&d.create){const g={...i,isUpdate:a},p=this.backend.create.bind(this.backend);if(p.length<6)try{let y;p.length===5?y=p(e,n,r,s,g):y=p(e,n,r,s),y&&typeof y.then=="function"?y.then(m=>o(null,m)).catch(o):o(null,y)}catch(y){o(y)}else p(e,n,r,s,o,g)}!e||!e[0]||this.store.addResource(e[0],n,r,s)}}}const Ke=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),C(t[1])&&(e.defaultValue=t[1]),C(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Dt=t=>(C(t.ns)&&(t.ns=[t.ns]),C(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),C(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&!t.supportedLngs.includes("cimode")&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),Ee=()=>{},Ts=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class pe extends De{constructor(e={},n){if(super(),this.options=Dt(e),this.services={},this.logger=J,this.modules={external:[]},Ts(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(C(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));const r=Ke();this.options={...r,...this.options,...Dt(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);const s=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?J.init(s(this.modules.logger),this.options):J.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=Ps;const c=new It(this.options);this.store=new Ot(this.options.resources,this.options);const f=this.services;f.logger=J,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new ks(c,{prepend:this.options.pluralSeparator}),u&&(f.formatter=s(u),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new _t(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new Is(s(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(d,...g)=>{this.emit(d,...g)}),this.modules.languageDetector&&(f.languageDetector=s(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=s(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Ae(this.services,this.options),this.translator.on("*",(d,...g)=>{this.emit(d,...g)}),this.modules.external.forEach(d=>{d.init&&d.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Ee),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...c)=>this.store[u](...c)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...c)=>(this.store[u](...c),this)});const o=ce(),l=()=>{const u=(c,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(f),n(c,f)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),o}loadResources(e,n=Ee){var a,i;let r=n;const s=C(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if((s==null?void 0:s.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&(o.includes(f)||o.push(f))})};s?l(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>l(c)),(i=(a=this.options.preload)==null?void 0:a.forEach)==null||i.call(a,u=>l(u)),this.services.backendConnector.load(o,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(e,n,r){const s=ce();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=Ee),this.services.backendConnector.reload(e,n,a=>{s.resolve(),r(a)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&yn.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!["cimode","dev"].includes(e)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!["cimode","dev"].includes(r)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const r=ce();this.emit("languageChanging",e);const s=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},a=(o,l)=>{l?this.isLanguageChangingTo===e&&(s(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...u)=>this.t(...u)),n&&n(o,(...u)=>this.t(...u))},i=o=>{var c,f;!e&&!o&&this.services.languageDetector&&(o=[]);const l=C(o)?o:o&&o[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(C(o)?[o]:o);u&&(this.language||s(u),this.translator.language||this.translator.changeLanguage(u),(f=(c=this.services.languageDetector)==null?void 0:c.cacheUserLanguage)==null||f.call(c,u)),this.loadResources(u,d=>{a(d,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?i(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e),r}getFixedT(e,n,r,s){const a=s==null?void 0:s.scopeNs,i=(o,l,...u)=>{let c;typeof l!="object"?c=this.options.overloadTranslationOptionHandler([o,l].concat(u)):c={...l},c.lng=c.lng||i.lng,c.lngs=c.lngs||i.lngs;const f=c.ns!==void 0&&c.ns!==null;c.ns=c.ns||i.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||i.keyPrefix);const d={...this.options,...c};Array.isArray(a)&&!f&&(d.ns=a),typeof c.keyPrefix=="function"&&(c.keyPrefix=se(c.keyPrefix,d));const g=this.options.keySeparator||".";let p;return c.keyPrefix&&Array.isArray(o)?p=o.map(y=>(typeof y=="function"&&(y=se(y,d)),`${c.keyPrefix}${g}${y}`)):(typeof o=="function"&&(o=se(o,d)),p=c.keyPrefix?`${c.keyPrefix}${g}${o}`:o),this.t(p,c)};return C(e)?i.lng=e:i.lngs=e,i.ns=n,i.keyPrefix=r,i}t(...e){var n;return(n=this.translator)==null?void 0:n.translate(...e)}exists(...e){var n;return(n=this.translator)==null?void 0:n.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(o,l)=>{const u=this.services.backendConnector.state[`${o}|${l}`];return u===-1||u===0||u===2};if(n.precheck){const o=n.precheck(this,i);if(o!==void 0)return o}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,e)&&(!s||i(a,e)))}loadNamespaces(e,n){const r=ce();return this.options.ns?(C(e)&&(e=[e]),e.forEach(s=>{this.options.ns.includes(s)||this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=ce();C(e)&&(e=[e]);const s=this.options.preload||[],a=e.filter(i=>!s.includes(i)&&this.services.languageUtils.isSupportedCode(i));return a.length?(this.options.preload=s.concat(a),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(e){var s,a;if(e||(e=this.resolvedLanguage||(((s=this.languages)==null?void 0:s.length)>0?this.languages[0]:this.language)),!e)return"rtl";try{const i=new Intl.Locale(e);if(i&&i.getTextInfo){const o=i.getTextInfo();if(o&&o.direction)return o.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((a=this.services)==null?void 0:a.languageUtils)||new It(Ke());return e.toLowerCase().indexOf("-latn")>1?"ltr":n.includes(r.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const r=new pe(e,n);return r.createInstance=pe.createInstance,r}cloneInstance(e={},n=Ee){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const s={...this.options,...e,isClone:!0},a=new pe(s);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(o=>{a[o]=this[o]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r){const o=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((c,f)=>(c[f]={...l[u][f]},c),l[u]),l),{});a.store=new Ot(o,s),a.services.resourceStore=a.store}if(e.interpolation){const l={...Ke().interpolation,...this.options.interpolation,...e.interpolation},u={...s,interpolation:l};a.services.interpolator=new _t(u)}return a.translator=new Ae(a.services,s),a.translator.on("*",(o,...l)=>{a.emit(o,...l)}),a.init(s,n),a.translator.options=s,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const H=pe.createInstance();H.createInstance;H.dir;H.init;H.loadResources;H.reloadResources;H.use;H.changeLanguage;H.getFixedT;H.t;H.exists;H.setDefaultNamespace;H.hasLoadedNamespace;H.loadNamespaces;H.loadLanguages;/**
|
|
13
|
-
* @license lucide-react v1.16.0 - ISC
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the ISC license.
|
|
16
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/const vn=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();/**
|
|
18
|
-
* @license lucide-react v1.16.0 - ISC
|
|
19
|
-
*
|
|
20
|
-
* This source code is licensed under the ISC license.
|
|
21
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/const As=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
23
|
-
* @license lucide-react v1.16.0 - ISC
|
|
24
|
-
*
|
|
25
|
-
* This source code is licensed under the ISC license.
|
|
26
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/const Fs=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
|
|
28
|
-
* @license lucide-react v1.16.0 - ISC
|
|
29
|
-
*
|
|
30
|
-
* This source code is licensed under the ISC license.
|
|
31
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/const Mt=t=>{const e=Fs(t);return e.charAt(0).toUpperCase()+e.slice(1)};/**
|
|
33
|
-
* @license lucide-react v1.16.0 - ISC
|
|
34
|
-
*
|
|
35
|
-
* This source code is licensed under the ISC license.
|
|
36
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/var Je={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
38
|
-
* @license lucide-react v1.16.0 - ISC
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the ISC license.
|
|
41
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/const _s=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1},js=h.createContext({}),Ds=()=>h.useContext(js),Ms=h.forwardRef(({color:t,size:e,strokeWidth:n,absoluteStrokeWidth:r,className:s="",children:a,iconNode:i,...o},l)=>{const{size:u=24,strokeWidth:c=2,absoluteStrokeWidth:f=!1,color:d="currentColor",className:g=""}=Ds()??{},p=r??f?Number(n??c)*24/Number(e??u):n??c;return h.createElement("svg",{ref:l,...Je,width:e??u??Je.width,height:e??u??Je.height,stroke:t??d,strokeWidth:p,className:vn("lucide",g,s),...!a&&!_s(o)&&{"aria-hidden":"true"},...o},[...i.map(([y,m])=>h.createElement(y,m)),...Array.isArray(a)?a:[a]])});/**
|
|
43
|
-
* @license lucide-react v1.16.0 - ISC
|
|
44
|
-
*
|
|
45
|
-
* This source code is licensed under the ISC license.
|
|
46
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/const F=(t,e)=>{const n=h.forwardRef(({className:r,...s},a)=>h.createElement(Ms,{ref:a,iconNode:e,className:vn(`lucide-${As(Mt(t))}`,`lucide-${t}`,r),...s}));return n.displayName=Mt(t),n};/**
|
|
48
|
-
* @license lucide-react v1.16.0 - ISC
|
|
49
|
-
*
|
|
50
|
-
* This source code is licensed under the ISC license.
|
|
51
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/const Vs=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],oi=F("arrow-up",Vs);/**
|
|
53
|
-
* @license lucide-react v1.16.0 - ISC
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the ISC license.
|
|
56
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/const Hs=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],li=F("check",Hs);/**
|
|
58
|
-
* @license lucide-react v1.16.0 - ISC
|
|
59
|
-
*
|
|
60
|
-
* This source code is licensed under the ISC license.
|
|
61
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
62
|
-
*/const Us=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ui=F("chevron-down",Us);/**
|
|
63
|
-
* @license lucide-react v1.16.0 - ISC
|
|
64
|
-
*
|
|
65
|
-
* This source code is licensed under the ISC license.
|
|
66
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/const Bs=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ci=F("chevron-left",Bs);/**
|
|
68
|
-
* @license lucide-react v1.16.0 - ISC
|
|
69
|
-
*
|
|
70
|
-
* This source code is licensed under the ISC license.
|
|
71
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/const zs=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],fi=F("chevron-right",zs);/**
|
|
73
|
-
* @license lucide-react v1.16.0 - ISC
|
|
74
|
-
*
|
|
75
|
-
* This source code is licensed under the ISC license.
|
|
76
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/const Ws=[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]],hi=F("chevrons-down",Ws);/**
|
|
78
|
-
* @license lucide-react v1.16.0 - ISC
|
|
79
|
-
*
|
|
80
|
-
* This source code is licensed under the ISC license.
|
|
81
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
-
*/const Ks=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],di=F("circle-alert",Ks);/**
|
|
83
|
-
* @license lucide-react v1.16.0 - ISC
|
|
84
|
-
*
|
|
85
|
-
* This source code is licensed under the ISC license.
|
|
86
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/const Js=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],pi=F("circle-check-big",Js);/**
|
|
88
|
-
* @license lucide-react v1.16.0 - ISC
|
|
89
|
-
*
|
|
90
|
-
* This source code is licensed under the ISC license.
|
|
91
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
-
*/const qs=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],gi=F("circle-x",qs);/**
|
|
93
|
-
* @license lucide-react v1.16.0 - ISC
|
|
94
|
-
*
|
|
95
|
-
* This source code is licensed under the ISC license.
|
|
96
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
-
*/const Ys=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],mi=F("copy",Ys);/**
|
|
98
|
-
* @license lucide-react v1.16.0 - ISC
|
|
99
|
-
*
|
|
100
|
-
* This source code is licensed under the ISC license.
|
|
101
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/const Gs=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],yi=F("file-text",Gs);/**
|
|
103
|
-
* @license lucide-react v1.16.0 - ISC
|
|
104
|
-
*
|
|
105
|
-
* This source code is licensed under the ISC license.
|
|
106
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
-
*/const Zs=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],xi=F("folder-plus",Zs);/**
|
|
108
|
-
* @license lucide-react v1.16.0 - ISC
|
|
109
|
-
*
|
|
110
|
-
* This source code is licensed under the ISC license.
|
|
111
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/const Xs=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],vi=F("folder",Xs);/**
|
|
113
|
-
* @license lucide-react v1.16.0 - ISC
|
|
114
|
-
*
|
|
115
|
-
* This source code is licensed under the ISC license.
|
|
116
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
-
*/const Qs=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],Si=F("git-branch",Qs);/**
|
|
118
|
-
* @license lucide-react v1.16.0 - ISC
|
|
119
|
-
*
|
|
120
|
-
* This source code is licensed under the ISC license.
|
|
121
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
-
*/const ea=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],bi=F("history",ea);/**
|
|
123
|
-
* @license lucide-react v1.16.0 - ISC
|
|
124
|
-
*
|
|
125
|
-
* This source code is licensed under the ISC license.
|
|
126
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
-
*/const ta=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],wi=F("image-plus",ta);/**
|
|
128
|
-
* @license lucide-react v1.16.0 - ISC
|
|
129
|
-
*
|
|
130
|
-
* This source code is licensed under the ISC license.
|
|
131
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
-
*/const na=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Ri=F("info",na);/**
|
|
133
|
-
* @license lucide-react v1.16.0 - ISC
|
|
134
|
-
*
|
|
135
|
-
* This source code is licensed under the ISC license.
|
|
136
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
-
*/const ra=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ei=F("loader-circle",ra);/**
|
|
138
|
-
* @license lucide-react v1.16.0 - ISC
|
|
139
|
-
*
|
|
140
|
-
* This source code is licensed under the ISC license.
|
|
141
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
-
*/const sa=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Ci=F("log-out",sa);/**
|
|
143
|
-
* @license lucide-react v1.16.0 - ISC
|
|
144
|
-
*
|
|
145
|
-
* This source code is licensed under the ISC license.
|
|
146
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
-
*/const aa=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],Li=F("minimize-2",aa);/**
|
|
148
|
-
* @license lucide-react v1.16.0 - ISC
|
|
149
|
-
*
|
|
150
|
-
* This source code is licensed under the ISC license.
|
|
151
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
-
*/const ia=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],ki=F("pencil",ia);/**
|
|
153
|
-
* @license lucide-react v1.16.0 - ISC
|
|
154
|
-
*
|
|
155
|
-
* This source code is licensed under the ISC license.
|
|
156
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
-
*/const oa=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],$i=F("plus",oa);/**
|
|
158
|
-
* @license lucide-react v1.16.0 - ISC
|
|
159
|
-
*
|
|
160
|
-
* This source code is licensed under the ISC license.
|
|
161
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
162
|
-
*/const la=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ni=F("settings",la);/**
|
|
163
|
-
* @license lucide-react v1.16.0 - ISC
|
|
164
|
-
*
|
|
165
|
-
* This source code is licensed under the ISC license.
|
|
166
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
-
*/const ua=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Pi=F("square",ua);/**
|
|
168
|
-
* @license lucide-react v1.16.0 - ISC
|
|
169
|
-
*
|
|
170
|
-
* This source code is licensed under the ISC license.
|
|
171
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
-
*/const ca=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Oi=F("terminal",ca);/**
|
|
173
|
-
* @license lucide-react v1.16.0 - ISC
|
|
174
|
-
*
|
|
175
|
-
* This source code is licensed under the ISC license.
|
|
176
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
-
*/const fa=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],Ii=F("timer",fa);/**
|
|
178
|
-
* @license lucide-react v1.16.0 - ISC
|
|
179
|
-
*
|
|
180
|
-
* This source code is licensed under the ISC license.
|
|
181
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
182
|
-
*/const ha=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ti=F("triangle-alert",ha);/**
|
|
183
|
-
* @license lucide-react v1.16.0 - ISC
|
|
184
|
-
*
|
|
185
|
-
* This source code is licensed under the ISC license.
|
|
186
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
187
|
-
*/const da=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Ai=F("wrench",da);/**
|
|
188
|
-
* @license lucide-react v1.16.0 - ISC
|
|
189
|
-
*
|
|
190
|
-
* This source code is licensed under the ISC license.
|
|
191
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
-
*/const pa=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Fi=F("x",pa);var qe,Vt;function ga(){return Vt||(Vt=1,qe={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),qe}var ma=ga();const ya=Nn(ma);var xa=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function Ht(t){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=t.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(e.name=n[1],(ya[n[1]]||t.charAt(t.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var r=t.indexOf("-->");return{type:"comment",comment:r!==-1?t.slice(4,r):""}}for(var s=new RegExp(xa),a=null;(a=s.exec(t))!==null;)if(a[0].trim())if(a[1]){var i=a[1].trim(),o=[i,""];i.indexOf("=")>-1&&(o=i.split("=")),e.attrs[o[0]]=o[1],s.lastIndex--}else a[2]&&(e.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return e}var va=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Sa=/^\s*$/,ba=Object.create(null);function Sn(t,e){switch(e.type){case"text":return t+e.content;case"tag":return t+="<"+e.name+(e.attrs?(function(n){var r=[];for(var s in n)r.push(s+'="'+n[s]+'"');return r.length?" "+r.join(" "):""})(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?t:t+e.children.reduce(Sn,"")+"</"+e.name+">";case"comment":return t+"<!--"+e.comment+"-->"}}var wa={parse:function(t,e){e||(e={}),e.components||(e.components=ba);var n,r=[],s=[],a=-1,i=!1;if(t.indexOf("<")!==0){var o=t.indexOf("<");r.push({type:"text",content:o===-1?t:t.substring(0,o)})}return t.replace(va,function(l,u){if(i){if(l!=="</"+n.name+">")return;i=!1}var c,f=l.charAt(1)!=="/",d=l.startsWith("<!--"),g=u+l.length,p=t.charAt(g);if(d){var y=Ht(l);return a<0?(r.push(y),r):((c=s[a]).children.push(y),r)}if(f&&(a++,(n=Ht(l)).type==="tag"&&e.components[n.name]&&(n.type="component",i=!0),n.voidElement||i||!p||p==="<"||n.children.push({type:"text",content:t.slice(g,t.indexOf("<",g))}),a===0&&r.push(n),(c=s[a-1])&&c.children.push(n),s[a]=n),(!f||n.voidElement)&&(a>-1&&(n.voidElement||n.name===l.slice(2,-1))&&(a--,n=a===-1?r:s[a]),!i&&p!=="<"&&p)){c=a===-1?r:s[a].children;var m=t.indexOf("<",g),x=t.slice(g,m===-1?void 0:m);Sa.test(x)&&(x=" "),(m>-1&&a+c.length>=0||x!==" ")&&c.push({type:"text",content:x})}}),r},stringify:function(t){return t.reduce(function(e,n){return e+Sn("",n)},"")}};const $e=(t,e,n,r)=>{var a,i,o,l;const s=[n,{code:e,...r||{}}];if((i=(a=t==null?void 0:t.services)==null?void 0:a.logger)!=null&&i.forward)return t.services.logger.forward(s,"warn","react-i18next::",!0);V(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),(l=(o=t==null?void 0:t.services)==null?void 0:o.logger)!=null&&l.warn?t.services.logger.warn(...s):console!=null&&console.warn&&console.warn(...s)},Ut={},xe=(t,e,n,r)=>{V(n)&&Ut[n]||(V(n)&&(Ut[n]=new Date),$e(t,e,n,r))},bn=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},tt=(t,e,n)=>{t.loadNamespaces(e,bn(t,n))},Bt=(t,e,n,r)=>{if(V(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return tt(t,n,r);n.forEach(s=>{t.options.ns.indexOf(s)<0&&t.options.ns.push(s)}),t.loadLanguages(e,bn(t,r))},Ra=(t,e,n={})=>!e.languages||!e.languages.length?(xe(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!s(r.isLanguageChangingTo,t))return!1}}),V=t=>typeof t=="string",Z=t=>typeof t=="object"&&t!==null,Ea=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ca={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},La=t=>Ca[t],wn=t=>t.replace(Ea,La);let nt={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:wn,transDefaultProps:void 0};const ka=(t={})=>{nt={...nt,...t}},ht=()=>nt;let Rn;const $a=t=>{Rn=t},dt=()=>Rn,Ne=(t,e)=>{var r;if(!t)return!1;const n=((r=t.props)==null?void 0:r.children)??t.children;return e?n.length>0:!!n},he=t=>{var n,r;if(!t)return[];const e=((n=t.props)==null?void 0:n.children)??t.children;return(r=t.props)!=null&&r.i18nIsDynamicList?ee(e):e},Na=t=>Array.isArray(t)&&t.every(h.isValidElement),ee=t=>Array.isArray(t)?t:[t],Pa=(t,e)=>{const n={...e};return n.props={...e.props,...t.props},n},Oa=t=>{const e={};if(!t)return e;const n=r=>{ee(r).forEach(a=>{V(a)||(Ne(a)?n(he(a)):Z(a)&&!h.isValidElement(a)&&Object.assign(e,a))})};return n(t),e},rt=(t,e,n,r)=>{if(!t)return"";let s="";const a=ee(t),i=e!=null&&e.transSupportBasicHtmlNodes?e.transKeepBasicHtmlNodesFor??[]:[];return a.forEach((o,l)=>{if(V(o)){s+=`${o}`;return}if(h.isValidElement(o)){const{props:u,type:c}=o,f=Object.keys(u).length,d=i.indexOf(c)>-1,g=u.children;if(!g&&d&&!f){s+=`<${c}/>`;return}if(!g&&(!d||f)||u.i18nIsDynamicList){s+=`<${l}></${l}>`;return}if(d&&f<=1){const y=V(g)?g:rt(g,e,n,r);s+=`<${c}>${y}</${c}>`;return}const p=rt(g,e,n,r);s+=`<${l}>${p}</${l}>`;return}if(o===null){$e(n,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:r});return}if(Z(o)){const{format:u,...c}=o,f=Object.keys(c);if(f.length===1){const d=u?`${f[0]}, ${u}`:f[0];s+=`{{${d}}}`;return}$e(n,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:r,child:o});return}$e(n,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:r,child:o})}),s},Ia=(t,e=[],n={})=>{if(!t)return t;const r=Object.keys(n),s=[...e,...r];let a="",i=0;for(;i<t.length;)if(t[i]==="<"){let o=!1;const l=t.slice(i).match(/^<\/(\d+|[a-zA-Z][a-zA-Z0-9_-]*)>/);if(l){const u=l[1];(/^\d+$/.test(u)||s.includes(u))&&(o=!0,a+=l[0],i+=l[0].length)}if(!o){const u=t.slice(i).match(/^<(\d+|[a-zA-Z][a-zA-Z0-9_-]*)(\s+[\w-]+(?:=(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s*(\/)?>/);if(u){const c=u[1];(/^\d+$/.test(c)||s.includes(c))&&(o=!0,a+=u[0],i+=u[0].length)}}o||(a+="<",i+=1)}else a+=t[i],i+=1;return a},Ta=(t,e,n,r,s,a,i)=>{if(n==="")return[];const o=s.transKeepBasicHtmlNodesFor||[],l=n&&new RegExp(o.map(v=>`<${v}`).join("|")).test(n);if(!t&&!e&&!l&&!i)return[n];const u=e??{},c=v=>{ee(v).forEach(S=>{V(S)||(Ne(S)?c(he(S)):Z(S)&&!h.isValidElement(S)&&Object.assign(u,S))})};c(t);const f=Ia(n,o,u),d=wa.parse(`<0>${f}</0>`),g={...u,...a},p=(v,b,S)=>{var L;const R=he(v),T=m(R,b.children,S);return Na(R)&&T.length===0||(L=v.props)!=null&&L.i18nIsDynamicList?R:T},y=(v,b,S,R,T)=>{v.dummy?(v.children=b,S.push(h.cloneElement(v,{key:R},T?void 0:b))):S.push(...h.Children.map([v],L=>{var w;if(L.type===h.Fragment||((w=L.props)==null?void 0:w.i18nIsDynamicList)!==void 0){const $={key:R};return L&&L.props&&Object.keys(L.props).forEach(D=>{D==="children"||D==="i18nIsDynamicList"||($[D]=L.props[D])}),h.createElement(L.type,$,T?null:b)}const O={key:R};return L&&L.props&&Object.keys(L.props).forEach($=>{$==="ref"||$==="children"||(O[$]=L.props[$])}),h.cloneElement(L,O,T?null:b)}))},m=(v,b,S)=>{const R=ee(v),T=ee(b),L={};return T.reduce((O,w,$)=>{var A,k;const D=((k=(A=w.children)==null?void 0:A[0])==null?void 0:k.content)&&r.services.interpolator.interpolate(w.children[0].content,g,r.language);if(w.type==="tag"){let E=R[parseInt(w.name,10)];!E&&e&&(E=e[w.name]),S.length===1&&!E&&(E=S[0][w.name]),E||(E={});const P={...w.attrs};i&&Object.keys(P).forEach(I=>{const M=P[I];V(M)&&(P[I]=wn(M))});const N=Object.keys(P).length!==0?Pa({props:P},E):E,j=h.isValidElement(N),U=j&&Ne(w,!0)&&!w.voidElement,Y=l&&Z(N)&&N.dummy&&!j,te=Z(e)&&Object.hasOwnProperty.call(e,w.name);if(V(N)){const I=r.services.interpolator.interpolate(N,g,r.language);O.push(I)}else if(Ne(N)||U){const I=p(N,w,S);y(N,I,O,$)}else if(Y){const I=m(R,w.children,S);y(N,I,O,$)}else if(Number.isNaN(parseFloat(w.name)))if(te){const I=p(N,w,S);y(N,I,O,$,w.voidElement)}else if(s.transSupportBasicHtmlNodes&&o.indexOf(w.name)>-1)if(w.voidElement)O.push(h.createElement(w.name,{key:`${w.name}-${$}`}));else{const I=L[w.name]||0;L[w.name]=I+1;let M,z=0;for(let le=0;le<R.length;le+=1){const Ve=R[le];if(h.isValidElement(Ve)&&Ve.type===w.name){if(z===I){M=Ve;break}z+=1}}const ne=M?ee(he(M)):R,re=m(ne,w.children,S);O.push(h.createElement(w.name,{key:`${w.name}-${$}`},re))}else if(w.voidElement)O.push(`<${w.name} />`);else{const I=m(R,w.children,S);O.push(`<${w.name}>${I}</${w.name}>`)}else if(Z(N)&&!j){const I=w.children[0]?D:null;I&&O.push(I)}else y(N,D,O,$,w.children.length!==1||!D)}else if(w.type==="text"){const E=s.transWrapTextNodes,P=typeof s.unescape=="function"?s.unescape:ht().unescape,N=i?P(r.services.interpolator.interpolate(w.content,g,r.language)):r.services.interpolator.interpolate(w.content,g,r.language);E?O.push(h.createElement(E,{key:`${w.name}-${$}`},N)):O.push(N)}return O},[])},x=m([{dummy:!0,children:t||[]}],d,ee(t||[]));return he(x[0])},En=(t,e,n)=>{const r=t.key||e,s=h.cloneElement(t,{key:r});if(!s.props||!s.props.children||n.indexOf(`${e}/>`)<0&&n.indexOf(`${e} />`)<0)return s;function a(){return h.createElement(h.Fragment,null,s)}return h.createElement(a,{key:r})},Aa=(t,e)=>t.map((n,r)=>En(n,r,e)),Fa=(t,e)=>{const n={};return Object.keys(t).forEach(r=>{Object.assign(n,{[r]:En(t[r],r,e)})}),n},_a=(t,e,n,r)=>t?Array.isArray(t)?Aa(t,e):Z(t)?Fa(t,e):(xe(n,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:r}),null):null,ja=t=>!Z(t)||Array.isArray(t)?!1:Object.keys(t).reduce((e,n)=>e&&Number.isNaN(Number.parseFloat(n)),!0);function Da({children:t,count:e,parent:n,i18nKey:r,context:s,tOptions:a={},values:i,defaults:o,components:l,ns:u,i18n:c,t:f,shouldUnescape:d,...g}){var te,I,M,z,ne,re;const p=c||dt();if(!p)return xe(p,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:r}),t;const y=f||p.t.bind(p)||(le=>le),m={...ht(),...(te=p.options)==null?void 0:te.react};let x=u||y.ns||((I=p.options)==null?void 0:I.defaultNS);x=V(x)?[x]:x||["translation"];const{transDefaultProps:v}=m,b=v!=null&&v.tOptions?{...v.tOptions,...a}:a,S=d??(v==null?void 0:v.shouldUnescape),R=v!=null&&v.values?{...v.values,...i}:i,T=v!=null&&v.components?{...v.components,...l}:l,L=rt(t,m,p,r),O=o||(b==null?void 0:b.defaultValue)||L||m.transEmptyNodeValue||(typeof r=="function"?se(r):r),{hashTransKey:w}=m,$=r||(w?w(L||O):L||O);(z=(M=p.options)==null?void 0:M.interpolation)!=null&&z.defaultVariables?i=R&&Object.keys(R).length>0?{...R,...p.options.interpolation.defaultVariables}:{...p.options.interpolation.defaultVariables}:i=R;const D=Oa(t);D&&typeof D.count=="number"&&e===void 0&&(e=D.count);const A=i||e!==void 0&&!((re=(ne=p.options)==null?void 0:ne.interpolation)!=null&&re.alwaysFormat)||!t?b.interpolation:{interpolation:{...b.interpolation,prefix:"#$?",suffix:"?$#"}},k={...b,context:s||b.context,count:e,...i,...A,defaultValue:O,ns:x};let E=$?y($,k):O;E===$&&O&&(E=O);const P=_a(T,E,p,r);let N=P||t,j=null;ja(P)&&(j=P,N=t);const U=Ta(N,j,E,p,m,k,S),Y=n??m.defaultTransParent;return Y?h.createElement(Y,g,U):U}const _i={type:"3rdParty",init(t){ka(t.options.react),$a(t)}},Cn=h.createContext();class Ma{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function ji({children:t,count:e,parent:n,i18nKey:r,context:s,tOptions:a={},values:i,defaults:o,components:l,ns:u,i18n:c,t:f,shouldUnescape:d,...g}){var v;const{i18n:p,defaultNS:y}=h.useContext(Cn)||{},m=c||p||dt(),x=f||(m==null?void 0:m.t.bind(m));return Da({children:t,count:e,parent:n,i18nKey:r,context:s,tOptions:a,values:i,defaults:o,components:l,ns:u||(x==null?void 0:x.ns)||y||((v=m==null?void 0:m.options)==null?void 0:v.defaultNS),i18n:m,t:f,shouldUnescape:d,...g})}var Ye={exports:{}},Ge={};/**
|
|
193
|
-
* @license React
|
|
194
|
-
* use-sync-external-store-shim.production.js
|
|
195
|
-
*
|
|
196
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
197
|
-
*
|
|
198
|
-
* This source code is licensed under the MIT license found in the
|
|
199
|
-
* LICENSE file in the root directory of this source tree.
|
|
200
|
-
*/var zt;function Va(){if(zt)return Ge;zt=1;var t=Pn();function e(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,s=t.useEffect,a=t.useLayoutEffect,i=t.useDebugValue;function o(f,d){var g=d(),p=r({inst:{value:g,getSnapshot:d}}),y=p[0].inst,m=p[1];return a(function(){y.value=g,y.getSnapshot=d,l(y)&&m({inst:y})},[f,g,d]),s(function(){return l(y)&&m({inst:y}),f(function(){l(y)&&m({inst:y})})},[f]),i(g),g}function l(f){var d=f.getSnapshot;f=f.value;try{var g=d();return!n(f,g)}catch{return!0}}function u(f,d){return d()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:o;return Ge.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:c,Ge}var Wt;function Ha(){return Wt||(Wt=1,Ye.exports=Va()),Ye.exports}var Ua=Ha();const Ba=(t,e)=>{if(V(e))return e;if(Z(e)&&V(e.defaultValue))return e.defaultValue;if(typeof t=="function")return"";if(Array.isArray(t)){const n=t[t.length-1];return typeof n=="function"?"":n}return t},za={t:Ba,ready:!1},Wa=()=>()=>{},Di=(t,e={})=>{var w,$,D;const{i18n:n}=e,{i18n:r,defaultNS:s}=h.useContext(Cn)||{},a=n||r||dt();a&&!a.reportNamespaces&&(a.reportNamespaces=new Ma),a||xe(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const i=h.useMemo(()=>{var A;return{...ht(),...(A=a==null?void 0:a.options)==null?void 0:A.react,...e}},[a,e]),{useSuspense:o,keyPrefix:l}=i,u=s||((w=a==null?void 0:a.options)==null?void 0:w.defaultNS),c=V(u)?[u]:u||["translation"],f=h.useMemo(()=>c,c);(D=($=a==null?void 0:a.reportNamespaces)==null?void 0:$.addUsedNamespaces)==null||D.call($,f);const d=h.useRef(0),g=h.useCallback(A=>{if(!a)return Wa;const{bindI18n:k,bindI18nStore:E}=i,P=()=>{d.current+=1,A()};return k&&a.on(k,P),E&&a.store.on(E,P),()=>{k&&k.split(" ").forEach(N=>a.off(N,P)),E&&E.split(" ").forEach(N=>a.store.off(N,P))}},[a,i]),p=h.useRef(),y=h.useCallback(()=>{if(!a)return za;const A=!!(a.isInitialized||a.initializedStoreOnce)&&f.every(U=>Ra(U,a,i)),k=e.lng||a.language,E=d.current,P=p.current;if(P&&P.ready===A&&P.lng===k&&P.keyPrefix===l&&P.revision===E)return P;const j={t:a.getFixedT(k,i.nsMode==="fallback"?f:f[0],l,{scopeNs:f}),ready:A,lng:k,keyPrefix:l,revision:E};return p.current=j,j},[a,f,l,i,e.lng]),[m,x]=h.useState(0),{t:v,ready:b}=Ua.useSyncExternalStore(g,y,y);h.useEffect(()=>{if(a&&!b&&!o){const A=()=>x(k=>k+1);e.lng?Bt(a,e.lng,f,A):tt(a,f,A)}},[a,e.lng,f,b,o,m]);const S=a||{},R=h.useRef(null),T=h.useRef(),L=A=>{const k=Object.getOwnPropertyDescriptors(A);k.__original&&delete k.__original;const E=Object.create(Object.getPrototypeOf(A),k);if(!Object.prototype.hasOwnProperty.call(E,"__original"))try{Object.defineProperty(E,"__original",{value:A,writable:!1,enumerable:!1,configurable:!1})}catch{}return E},O=h.useMemo(()=>{const A=S,k=A==null?void 0:A.language;let E=A;A&&(R.current&&R.current.__original===A?T.current!==k?(E=L(A),R.current=E,T.current=k):E=R.current:(E=L(A),R.current=E,T.current=k));const P=!b&&!o?(...j)=>(xe(a,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),v(...j)):v,N=[P,E,b];return N.t=P,N.i18n=E,N.ready=b,N},[v,S,b,S.resolvedLanguage,S.language,S.languages]);if(a&&o&&!b)throw new Promise(A=>{const k=()=>A();e.lng?Bt(a,e.lng,f,k):tt(a,f,k)});return O};function Mi(){}function Vi(){}const Ka=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ja=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qa={};function Hi(t,e){return(qa.jsx?Ja:Ka).test(t)}const Ln=-1,Me=0,ge=1,Fe=2,pt=3,gt=4,mt=5,yt=6,kn=7,$n=8,Ya=typeof self=="object"?self:globalThis,Kt=(t,e)=>{switch(t){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+t)}return new Ya[t](e)},Ga=(t,e)=>{const n=(s,a)=>(t.set(a,s),s),r=s=>{if(t.has(s))return t.get(s);const[a,i]=e[s];switch(a){case Me:case Ln:return n(i,s);case ge:{const o=n([],s);for(const l of i)o.push(r(l));return o}case Fe:{const o=n({},s);for(const[l,u]of i)o[r(l)]=r(u);return o}case pt:return n(new Date(i),s);case gt:{const{source:o,flags:l}=i;return n(new RegExp(o,l),s)}case mt:{const o=n(new Map,s);for(const[l,u]of i)o.set(r(l),r(u));return o}case yt:{const o=n(new Set,s);for(const l of i)o.add(r(l));return o}case kn:{const{name:o,message:l}=i;return n(Kt(o,l),s)}case $n:return n(BigInt(i),s);case"BigInt":return n(Object(BigInt(i)),s);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:o}=new Uint8Array(i);return n(new DataView(o),i)}}return n(Kt(a,i),s)};return r},Jt=t=>Ga(new Map,t)(0),ae="",{toString:Za}={},{keys:Xa}=Object,fe=t=>{const e=typeof t;if(e!=="object"||!t)return[Me,e];const n=Za.call(t).slice(8,-1);switch(n){case"Array":return[ge,ae];case"Object":return[Fe,ae];case"Date":return[pt,ae];case"RegExp":return[gt,ae];case"Map":return[mt,ae];case"Set":return[yt,ae];case"DataView":return[ge,n]}return n.includes("Array")?[ge,n]:n.includes("Error")?[kn,n]:[Fe,n]},Ce=([t,e])=>t===Me&&(e==="function"||e==="symbol"),Qa=(t,e,n,r)=>{const s=(i,o)=>{const l=r.push(i)-1;return n.set(o,l),l},a=i=>{if(n.has(i))return n.get(i);let[o,l]=fe(i);switch(o){case Me:{let c=i;switch(l){case"bigint":o=$n,c=i.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return s([Ln],i)}return s([o,c],i)}case ge:{if(l){let d=i;return l==="DataView"?d=new Uint8Array(i.buffer):l==="ArrayBuffer"&&(d=new Uint8Array(i)),s([l,[...d]],i)}const c=[],f=s([o,c],i);for(const d of i)c.push(a(d));return f}case Fe:{if(l)switch(l){case"BigInt":return s([l,i.toString()],i);case"Boolean":case"Number":case"String":return s([l,i.valueOf()],i)}if(e&&"toJSON"in i)return a(i.toJSON());const c=[],f=s([o,c],i);for(const d of Xa(i))(t||!Ce(fe(i[d])))&&c.push([a(d),a(i[d])]);return f}case pt:return s([o,i.toISOString()],i);case gt:{const{source:c,flags:f}=i;return s([o,{source:c,flags:f}],i)}case mt:{const c=[],f=s([o,c],i);for(const[d,g]of i)(t||!(Ce(fe(d))||Ce(fe(g))))&&c.push([a(d),a(g)]);return f}case yt:{const c=[],f=s([o,c],i);for(const d of i)(t||!Ce(fe(d)))&&c.push(a(d));return f}}const{message:u}=i;return s([o,{name:l,message:u}],i)};return a},qt=(t,{json:e,lossy:n}={})=>{const r=[];return Qa(!(e||n),!!e,new Map,r)(t),r},Ui=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?Jt(qt(t,e)):structuredClone(t):(t,e)=>Jt(qt(t,e));export{oi as A,si as B,li as C,Q as D,dr as E,yi as F,Si as G,bi as H,wi as I,ti as J,Di as K,Ei as L,Li as M,ni as O,ki as P,Pr as R,Ni as S,Oi as T,Ai as W,Fi as X,ui as a,ci as b,fi as c,hi as d,di as e,pi as f,gi as g,mi as h,vi as i,xi as j,Ri as k,Ci as l,$i as m,ri as n,Pi as o,Ii as p,ji as q,Ti as r,ai as s,_i as t,H as u,Hi as v,Mi as w,ii as x,Ui as y,Vi as z};
|