module . exports = [ 99239 , 55976 , a =>{ "use strict" ; var b = a . i ( 87924 ), c = a . i ( 72131 ); let d = { xmlns : "http://www.w3.org/2000/svg" , width : 16 , height : 16 , viewBox : "0 0 24 24" , fill : "none" , stroke : "currentColor" , strokeWidth : 2 , strokeLinecap : "round" , strokeLinejoin : "round" , style : { display : "inline" , verticalAlign : "middle" }}; function e ({ name : a , size : c = 16 ,... g }){ return ( 0 , b . jsx )( "svg" ,{... d , width : c , height : c ,... g , children : f [ a ] || null })} let f = { message : ( 0 , b . jsx )( b . Fragment ,{ children : ( 0 , b . jsx )( "path" ,{ d : "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" })}), reply : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M9 14l-4-4 4-4" }),( 0 , b . jsx )( "path" ,{ d : "M5 10h11a4 4 0 0 1 4 4v0" })]}), chevronDown : ( 0 , b . jsx )( b . Fragment ,{ children : ( 0 , b . jsx )( "path" ,{ d : "M6 9l6 6 6-6" })}), settings : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" }),( 0 , b . jsx )( "circle" ,{ cx : "12" , cy : "12" , r : "3" })]}), shieldAlert : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }),( 0 , b . jsx )( "path" ,{ d : "M12 8v4" }),( 0 , b . jsx )( "path" ,{ d : "M12 16h.01" })]}), user : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }),( 0 , b . jsx )( "circle" ,{ cx : "12" , cy : "7" , r : "4" })]}), lock : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "rect" ,{ x : "3" , y : "11" , width : "18" , height : "11" , rx : "2" , ry : "2" }),( 0 , b . jsx )( "path" ,{ d : "M7 11V7a5 5 0 0 1 10 0v4" })]}), moon : ( 0 , b . jsx )( b . Fragment ,{ children : ( 0 , b . jsx )( "path" ,{ d : "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" })}), sun : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "circle" ,{ cx : "12" , cy : "12" , r : "5" }),( 0 , b . jsx )( "line" ,{ x1 : "12" , y1 : "1" , x2 : "12" , y2 : "3" }),( 0 , b . jsx )( "line" ,{ x1 : "12" , y1 : "21" , x2 : "12" , y2 : "23" }),( 0 , b . jsx )( "line" ,{ x1 : "4.22" , y1 : "4.22" , x2 : "5.64" , y2 : "5.64" }),( 0 , b . jsx )( "line" ,{ x1 : "18.36" , y1 : "18.36" , x2 : "19.78" , y2 : "19.78" }),( 0 , b . jsx )( "line" ,{ x1 : "1" , y1 : "12" , x2 : "3" , y2 : "12" }),( 0 , b . jsx )( "line" ,{ x1 : "21" , y1 : "12" , x2 : "23" , y2 : "12" }),( 0 , b . jsx )( "line" ,{ x1 : "4.22" , y1 : "19.78" , x2 : "5.64" , y2 : "18.36" }),( 0 , b . jsx )( "line" ,{ x1 : "18.36" , y1 : "5.64" , x2 : "19.78" , y2 : "4.22" })]}), logout : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }),( 0 , b . jsx )( "polyline" ,{ points : "16 17 21 12 16 7" }),( 0 , b . jsx )( "line" ,{ x1 : "21" , y1 : "12" , x2 : "9" , y2 : "12" })]}), book : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M21 12V7H5a2 2 0 0 1 0-4h14v4" }),( 0 , b . jsx )( "path" ,{ d : "M3 5v14a2 2 0 0 0 2 2h16v-5" }),( 0 , b . jsx )( "line" ,{ x1 : "18" , y1 : "12" , x2 : "18" , y2 : "12" })]}), link : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }),( 0 , b . jsx )( "path" ,{ d : "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" })]}), plus : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "line" ,{ x1 : "12" , y1 : "5" , x2 : "12" , y2 : "19" }),( 0 , b . jsx )( "line" ,{ x1 : "5" , y1 : "12" , x2 : "19" , y2 : "12" })]}), shield : ( 0 , b . jsx )( b . Fragment ,{ children : ( 0 , b . jsx )( "path" ,{ d : "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" })}), users : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),( 0 , b . jsx )( "circle" ,{ cx : "9" , cy : "7" , r : "4" }),( 0 , b . jsx )( "path" ,{ d : "M23 21v-2a4 4 0 0 0-3-3.87" }),( 0 , b . jsx )( "path" ,{ d : "M16 3.13a4 4 0 0 1 0 7.75" })]}), file : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),( 0 , b . jsx )( "polyline" ,{ points : "14 2 14 8 20 8" }),( 0 , b . jsx )( "line" ,{ x1 : "16" , y1 : "13" , x2 : "8" , y2 : "13" }),( 0 , b . jsx )( "line" ,{ x1 : "16" , y1 : "17" , x2 : "8" , y2 : "17" }),( 0 , b . jsx )( "polyline" ,{ points : "10 9 9 9 8 9" })]}), plus2 : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M12 5v14" }),( 0 , b . jsx )( "path" ,{ d : "M5 12h14" })]}), back : ( 0 , b . jsx )( b . Fragment ,{ children : ( 0 , b . jsx )( "polyline" ,{ points : "15 18 9 12 15 6" })}), close : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "line" ,{ x1 : "18" , y1 : "6" , x2 : "6" , y2 : "18" }),( 0 , b . jsx )( "line" ,{ x1 : "6" , y1 : "6" , x2 : "18" , y2 : "18" })]}), trash : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "polyline" ,{ points : "3 6 5 6 21 6" }),( 0 , b . jsx )( "path" ,{ d : "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })]}), success : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),( 0 , b . jsx )( "polyline" ,{ points : "22 4 12 14.01 9 11.01" })]}), error : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "circle" ,{ cx : "12" , cy : "12" , r : "10" }),( 0 , b . jsx )( "line" ,{ x1 : "15" , y1 : "9" , x2 : "9" , y2 : "15" }),( 0 , b . jsx )( "line" ,{ x1 : "9" , y1 : "9" , x2 : "15" , y2 : "15" })]}), warning : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M12 9v4" }),( 0 , b . jsx )( "path" ,{ d : "M12 17h.01" }),( 0 , b . jsx )( "circle" ,{ cx : "12" , cy : "12" , r : "10" })]}), pending : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "circle" ,{ cx : "12" , cy : "12" , r : "10" }),( 0 , b . jsx )( "polyline" ,{ points : "12 6 12 12 16 14" })]}), edit : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),( 0 , b . jsx )( "path" ,{ d : "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })]}), pin : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h8.5" }),( 0 , b . jsx )( "polyline" ,{ points : "16 2 22 8 16 8" }),( 0 , b . jsx )( "line" ,{ x1 : "10" , y1 : "14" , x2 : "18" , y2 : "14" }),( 0 , b . jsx )( "line" ,{ x1 : "10" , y1 : "18" , x2 : "14" , y2 : "18" })]}), camera : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z" }),( 0 , b . jsx )( "circle" ,{ cx : "12" , cy : "13" , r : "4" })]}), image : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "rect" ,{ x : "3" , y : "3" , width : "18" , height : "18" , rx : "2" , ry : "2" }),( 0 , b . jsx )( "circle" ,{ cx : "8.5" , cy : "8.5" , r : "1.5" }),( 0 , b . jsx )( "polyline" ,{ points : "21 15 16 10 5 21" })]}), key : ( 0 , b . jsx )( b . Fragment ,{ children : ( 0 , b . jsx )( "path" ,{ d : "M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4" })}), calendar : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "rect" ,{ x : "3" , y : "4" , width : "18" , height : "18" , rx : "2" , ry : "2" }),( 0 , b . jsx )( "line" ,{ x1 : "16" , y1 : "2" , x2 : "16" , y2 : "6" }),( 0 , b . jsx )( "line" ,{ x1 : "8" , y1 : "2" , x2 : "8" , y2 : "6" }),( 0 , b . jsx )( "line" ,{ x1 : "3" , y1 : "10" , x2 : "21" , y2 : "10" })]}), refresh : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "polyline" ,{ points : "23 4 23 10 17 10" }),( 0 , b . jsx )( "path" ,{ d : "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" })]}), list : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "line" ,{ x1 : "8" , y1 : "6" , x2 : "21" , y2 : "6" }),( 0 , b . jsx )( "line" ,{ x1 : "8" , y1 : "12" , x2 : "21" , y2 : "12" }),( 0 , b . jsx )( "line" ,{ x1 : "8" , y1 : "18" , x2 : "21" , y2 : "18" }),( 0 , b . jsx )( "line" ,{ x1 : "3" , y1 : "6" , x2 : "3.01" , y2 : "6" }),( 0 , b . jsx )( "line" ,{ x1 : "3" , y1 : "12" , x2 : "3.01" , y2 : "12" }),( 0 , b . jsx )( "line" ,{ x1 : "3" , y1 : "18" , x2 : "3.01" , y2 : "18" })]}), megaphone : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M17 18.5c0 1.5-1.5 3-3.5 3s-3.5-1.5-3.5-3c0-.5.5-1 1-1h5c.5 0 1 .5 1 1z" }),( 0 , b . jsx )( "path" ,{ d : "M4 11h16v6H4z" }),( 0 , b . jsx )( "path" ,{ d : "M8 17v3" }),( 0 , b . jsx )( "path" ,{ d : "M16 17v3" }),( 0 , b . jsx )( "path" ,{ d : "M9 11V7a3 3 0 0 1 6 0v4" })]}), code : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "polyline" ,{ points : "16 18 22 12 16 6" }),( 0 , b . jsx )( "polyline" ,{ points : "8 6 2 12 8 18" })]}), upload : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),( 0 , b . jsx )( "polyline" ,{ points : "17 8 12 3 7 8" }),( 0 , b . jsx )( "line" ,{ x1 : "12" , y1 : "3" , x2 : "12" , y2 : "15" })]}), save : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z" }),( 0 , b . jsx )( "polyline" ,{ points : "17 21 17 13 7 13 7 21" }),( 0 , b . jsx )( "polyline" ,{ points : "7 3 7 8 15 8" })]}), flag : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "path" ,{ d : "M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z" }),( 0 , b . jsx )( "line" ,{ x1 : "4" , y1 : "22" , x2 : "4" , y2 : "15" })]})}; a . s ([ "Icon" , 0 , e ], 55976 ); let g = ( 0 , c . createContext )( null ), h = 0 ; a . s ([ "ToastProvider" , 0 , function ({ children : a }){ let [ d , f ] = ( 0 , c . useState )([]),[ i , j ] = ( 0 , c . useState )( null ), k = ( 0 , c . useRef )({}), l = ( 0 , c . useRef )( null ), m = ( 0 , c . useRef )( null ), n = ( 0 , c . useCallback )( a =>{ f ( b => b . filter ( b => b . id !== a )), delete k . current [ a ]},[]), o = ( 0 , c . useCallback )( a =>{ k . current [ a ] && clearTimeout ( k . current [ a ]), f ( b => b . map ( b => b . id === a ? {... b , closing :! 0 } : b )), k . current [ a ] = setTimeout (()=> n ( a ), 220 )},[ n ]), p = ( 0 , c . useCallback )(( a , b = "success" , c = 3e3 )=>{ let d =++ h ; f ( c =>[... c ,{ id : d , message : a , type : b , closing :! 1 }]), k . current [ d ] && clearTimeout ( k . current [ d ]), k . current [ d ] = setTimeout (()=> o ( d ), c )},[ o ]), q = ( 0 , c . useCallback )(( a , b = {})=>{ m . current && m . current ( ! 1 ); let c = "en" === localStorage . getItem ( "forumlify-lang" ); return j ({ message : a , title : b . title || ( c ? "Confirm action" : "确认操作" ), confirmLabel : b . confirmLabel || ( c ? "Confirm" : "确定" ), cancelLabel : b . cancelLabel || ( c ? "Cancel" : "取消" ), danger :! 1 !== b . danger , closing :! 1 }), new Promise ( a =>{ m . current = a })},[]), r = ( 0 , c . useCallback )( a =>{ j ( a => a ? {... a , closing :! 0 } : a ), l . current && clearTimeout ( l . current ), l . current = setTimeout (()=>{ j ( null ); let b = m . current ; m . current = null , b && b ( a )}, 340 )},[]); return ( 0 , c . useEffect )(()=>()=>{ Object . values ( k . current ). forEach ( clearTimeout ), l . current && clearTimeout ( l . current ), m . current && m . current ( ! 1 )},[]),( 0 , b . jsxs )( g . Provider ,{ value : { toast : p , confirmAction : q }, children : [ a ,( 0 , b . jsx )( "div" ,{ className : "toast-container" , children : d . map ( a =>( 0 , b . jsxs )( "div" ,{ className : "toast toast-" + a . type + ( a . closing ? " closing" : "" ), onClick : ()=> o ( a . id ), role : "status" , children : [( 0 , b . jsx )( e ,{ name : "error" === a . type ? "error" : "warning" === a . type ? "warning" : "success" , size : 16 }),( 0 , b . jsx )( "span" ,{ children : a . message })]}, a . id ))}), i && ( 0 , b . jsx )( "div" ,{ className : "modal active feedback-confirm" + ( i . closing ? " closing" : "" ), onClick : a =>{ a . target === a . currentTarget && r ( ! 1 )}, children : ( 0 , b . jsxs )( "div" ,{ className : "modal-content" , role : "alertdialog" , "aria-modal" : "true" , "aria-labelledby" : "feedbackConfirmTitle" , "aria-describedby" : "feedbackConfirmMessage" , children : [( 0 , b . jsxs )( "h2" ,{ id : "feedbackConfirmTitle" , children : [( 0 , b . jsx )( e ,{ name : "warning" , size : 20 }), " " , i . title ]}),( 0 , b . jsx )( "p" ,{ id : "feedbackConfirmMessage" , children : i . message }),( 0 , b . jsxs )( "div" ,{ className : "feedback-confirm-actions" , children : [( 0 , b . jsx )( "button" ,{ className : i . danger ? "btn-danger" : "btn-primary" , onClick : ()=> r ( ! 0 ), children : i . confirmLabel }),( 0 , b . jsx )( "button" ,{ className : "btn-secondary" , onClick : ()=> r ( ! 1 ), children : i . cancelLabel })]})]})})]})}, "useToast" , 0 , function (){ return ( 0 , c . useContext )( g )}], 99239 )}, 62513 ,( a , b , c )=>{ b . exports = { appName : "Forumlify" , nav : { home : "首页" , messages : "消息" , settings : "设置" , admin : "管理后台" , login : "登录" , register : "注册" , logout : "退出" , darkMode : "暗色模式" , lightMode : "亮色模式" , logoutConfirm : "确定要退出吗?" }, feed : { latest : "最新发布" , hot : "最新回复" , newPost : "发布新帖" , loading : "加载中..." , empty : "还没有帖子,快来发布第一条吧!" , pinned : "置顶" , deleted : "(已编辑)" , report : "举报" , delete : "删除" , confirmDelete : "确定要删除这条帖子吗?" , deleteFailed : "删除失败:{{msg}}" , noTitle : "无标题" , anonymous : "匿名用户" }, post : { title : "帖子详情" , back : "← 返回" , edit : "编辑" , save : "保存" , cancel : "取消" , editFailed : "加载失败:{{msg}}" , contentRequired : "请填写内容" , reply : "回复" , replyCount : "{{count}} 条回复" , reportReason : "举报原因" , confirmDelete : "确定要删除这条帖子吗?" , reportTitle : "举报帖子" , submitReport : "提交举报" }, newPost : { title : "标题" , content : "说点什么..." , publish : "发布帖子" , uploading : "上传中..." , pleaseLogin : "请先登录" , captchaError : "验证码错误,请重新计算" , publishSuccess : "发布成功" , publishFailed : "发布失败:{{msg}}" , answer : "答案" , captchaLoading : "验证码加载中..." , drop : "松开上传" , dropHint : "点击或拖拽上传图片" }, reply : { submit : "提交回复" , placeholder : "写下你的回复..." , empty : "还没有回复,快来发表第一条回复吧" , replyFailed : "回复失败:{{msg}}" , delete : "删除" , confirmDelete : "确定要删除这条回复吗?" , deleteFailed : "删除失败:{{msg}}" }, auth : { email : "邮箱" , password : "密码" , username : "用户名" , passwordHint : "密码(至少6位)" , forgotPassword : "忘记密码?" , captchaError : "验证码错误,请重新计算" , registerSuccess : "注册成功" , loginSuccess : "登录成功" , logoutSuccess : "已退出登录" , login : "登录" , register : "注册" }, settings : { title : "设置" , profile : "个人资料" , security : "安全设置" , recovery : "恢复码" , language : "语言" , languageZh : "中文" , languageEn : "English" , username : "用户名" , bio : "个人简介" , signature : "个性签名" , signatureHint : "显示在每篇帖子底部,支持 Markdown" , signaturePlaceholder : "签名..." , avatarFileRequired : "请选择图片文件" , avatarTooLarge : "图片不能超过 5MB" , avatarUpdated : "头像已更新" , changeAvatar : "更换头像" , save : "保存设置" , saved : "保存成功!" , saveFailed : "保存失败:{{msg}}" , usernameRequired : "用户名不能为空" , pleaseLogin : "请先登录" }, user : { title : "用户主页" , bioEmpty : "这个人很懒,什么都没写" , sendMessage : "发私信" , joined : "加入于 {{date}}" , posts : "发了 {{count}} 个帖子" , admin : "管理员" , noPosts : "还没有发帖" , notFound : "用户不存在" , loading : "加载中..." }, stats : { topics : "主题" , posts : "帖子" , users : "用户" , links : "友情链接" }, loading : "加载中..." , common : { confirm : "确定" , cancel : "取消" , close : "关闭" }, report : { spam : "垃圾广告" , abuse : "人身攻击" , illegal : "违法内容" , nsfw : "不适当内容" , other : "其他" }, security : { title : "账户安全" , currentPw : "当前密码" , newPw : "新密码" , changePw : "修改密码" , currentPwVerify : "当前密码(验证身份)" , newEmail : "新邮箱" , changeEmail : "修改邮箱" , fillAll : "请填写完整信息" , pwMin : "新密码至少6位" , pwChanged : "密码修改成功" , emailChanged : "邮箱修改成功" }, recovery : { title : "恢复码" , desc : "用于忘记密码时重置账户。每个恢复码只能使用一次。" , view : "查看恢复码" , regenerate : "重新生成" , remaining : "剩余 {{count}} 个可用恢复码" , confirmRegenerate : "重新生成将使所有旧恢复码失效,确定继续吗?" , genFailed : "生成失败:{{msg}}" , fetchFailed : "获取失败:{{msg}}" , newCodes : "新恢复码" , saveWarning : "请妥善保存这些恢复码,关闭窗口后无法再次查看。" , saved : "我已保存" }, admin : { title : "管理后台" , reports : "举报处理" , users : "用户管理" , logs : "事件日志" , links : "友情链接" , forumSettings : "论坛设置" , customPages : "自定义页面" , customCss : "自定义 CSS" , common : { loading : "加载中..." , loadFailed : "加载失败:{{msg}}" , operationFailed : "操作失败:{{msg}}" , deleteFailed : "删除失败:{{msg}}" , saveFailed : "保存失败:{{msg}}" , delete : "删除" , save : "保存" , cancel : "取消" , actions : "操作" , status : "状态" , enabled : "启用" , disabled : "禁用" }, report : { statusPending : "待处理" , statusApproved : "已删除" , statusRejected : "已驳回" , approvedNote : "已删除违规帖子" , rejectedNote : "举报不成立" , confirmApprove : "确定要删除该帖子并标记举报为已处理吗?" , empty : "暂无举报" , anonymous : "匿名" , reportedPost : "{{name}} 举报了帖子" , reason : "原因:{{reason}}" , post : "帖子:{{title}} — {{content}}" , untitled : "无标题" , handler : "处理人:{{name}}" , deletePost : "删除帖子" , reject : "驳回举报" }, user : { roleAdmin : "管理员" , roleUser : "普通用户" , confirmRole : "确定要将该用户设为「{{role}}」吗?" , count : "共 {{count}} 位用户" , user : "用户" , role : "角色" , registeredAt : "注册时间" , you : "你" , cannotSelf : "不可操作自己" , makeUser : "设为普通用户" , makeAdmin : "设为管理员" , roleSuper : "超级管理员" }, log : { empty : "暂无日志" , time : "时间" , user : "用户" , action : "操作" , system : "系统" }, link : { add : "添加链接" , empty : "暂无链接" , incomplete : "请填写完整信息" , addFailed : "添加失败:{{msg}}" , confirmDelete : "确定要删除这个链接吗?" , namePlaceholder : "链接名称" , urlPlaceholder : "链接地址" }, page : { confirmDelete : "确定要删除这个页面吗?" , title : "自定义页面" , add : "添加页面" , empty : "暂无自定义页面" , name : "名称" , columnTitle : "标题" , url : "URL" , edit : "编辑页面" , delete : "删除页面" , editTitle : "编辑页面" , addTitle : "添加页面" , nameRequired : "请输入页面名称" , titleRequired : "请输入导航栏显示名称" , contentRequired : "请输入页面内容" , nameInvalid : "页面名称只允许字母、数字、短横线和下划线" , nameLabel : "页面名称" , namePlaceholder : "about(用于 URL: ?custom=about) " , nameLocked : "名称不可修改" , nameHint : "只允许字母、数字、短横线和下划线" , navTitleLabel : "导航栏显示名称" , navTitlePlaceholder : "关于我们" , contentLabel : "页面内容(HTML + CSS + JS) " , contentHelp : "支持 HTML、CSS( <style>)、JS( <script>),内容会在独立的沙盒中渲染" }, css : { filenameInvalid : "文件名必须是 style.css" , sizeInvalid : "CSS 文件不能超过 1MB" , active : "自定义 CSS 已生效(刷新页面后应用)" , confirmDelete : "确定要删除自定义 CSS 吗?" , deleted : "已删除自定义 CSS" , title : "自定义 CSS" , description : "上传一个 style.css 文件覆盖默认样式(支持 CSS 变量、暗色模式等)。" , releaseUpload : "松开上传" , uploadHint : "点击或拖拽上传 style.css" , save : "保存 CSS" , delete : "删除自定义 CSS" , warningTitle : "警告" , warningBody : "若上传的 style.css 存在问题,将导致整个论坛界面样式错乱,甚至无法正常使用。" , warningHelp : "请确保 CSS 文件是完整的、经过测试的版本。如出现问题,可点击「删除自定义 CSS」恢复默认样式。" , continueUpload : "我了解,继续上传" }, forum : { nameRequired : "请输入论坛名称" , saved : "保存成功!" , saveFailed : "保存失败" , title : "论坛设置" , nameLabel : "论坛名称" , save : "保存" }}}}, 48813 ,( a , b , c )=>{ b . exports = { appName : "Forumlify" , nav : { home : "Home" , messages : "Messages" , settings : "Settings" , admin : "Admin" , login : "Login" , register : "Register" , logout : "Logout" , darkMode : "Dark mode" , lightMode : "Light mode" , logoutConfirm : "Are you sure you want to log out?" }, feed : { latest : "Latest posts" , hot : "Latest replies" , newPost : "New post" , loading : "Loading..." , empty : "No posts yet — be the first to publish!" , pinned : "Pinned" , deleted : "(edited)" , report : "Report" , delete : "Delete" , confirmDelete : "Are you sure you want to delete this post?" , deleteFailed : "Delete failed: {{msg}}" , noTitle : "Untitled" , anonymous : "Anonymous" }, post : { title : "Post detail" , back : "← Back" , edit : "Edit" , save : "Save" , cancel : "Cancel" , editFailed : "Load failed: {{msg}}" , contentRequired : "Please fill in the content" , reply : "Reply" , replyCount : "{{count}} replies" , reportReason : "Report reason" , confirmDelete : "Are you sure you want to delete this post?" , reportTitle : "Report post" , submitReport : "Submit report" }, newPost : { title : "Title" , content : "Say something..." , publish : "Publish post" , uploading : "Uploading..." , pleaseLogin : "Please log in first" , captchaError : "Wrong captcha, please try again" , publishSuccess : "Post published" , publishFailed : "Publish failed: {{msg}}" , answer : "Answer" , captchaLoading : "Loading captcha..." , drop : "Release to upload" , dropHint : "Click or drag to upload image" }, reply : { submit : "Submit reply" , placeholder : "Write your reply..." , empty : "No replies yet — be the first to comment" , replyFailed : "Reply failed: {{msg}}" , delete : "Delete" , confirmDelete : "Are you sure you want to delete this reply?" , deleteFailed : "Delete failed: {{msg}}" }, auth : { email : "Email" , password : "Password" , username : "Username" , passwordHint : "Password (min 6 chars)" , forgotPassword : "Forgot password?" , captchaError : "Wrong captcha, please try again" , registerSuccess : "Registration successful" , loginSuccess : "Logged in" , logoutSuccess : "Logged out" , login : "Login" , register : "Register" }, settings : { title : "Settings" , profile : "Profile" , security : "Security" , recovery : "Recovery codes" , language : "Language" , languageZh : "中文" , languageEn : "English" , username : "Username" , bio : "Bio" , signature : "Signature" , signatureHint : "Shown below every post; Markdown is supported" , signaturePlaceholder : "Signature..." , avatarFileRequired : "Please select an image file" , avatarTooLarge : "Image must be smaller than 5MB" , avatarUpdated : "Avatar updated" , changeAvatar : "Change avatar" , save : "Save settings" , saved : "Saved!" , saveFailed : "Save failed: {{msg}}" , usernameRequired : "Username cannot be empty" , pleaseLogin : "Please log in first" }, user : { title : "User profile" , bioEmpty : "This user hasn't written a bio yet" , sendMessage : "Send message" , joined : "Joined {{date}}" , posts : "{{count}} posts" , admin : "Admin" , noPosts : "No posts yet" , notFound : "User not found" , loading : "Loading..." }, stats : { topics : "Topics" , posts : "Posts" , users : "Users" , links : "Links" }, loading : "Loading..." , common : { confirm : "Confirm" , cancel : "Cancel" , close : "Close" }, report : { spam : "Spam" , abuse : "Harassment" , illegal : "Illegal content" , nsfw : "Inappropriate content" , other : "Other" }, security : { title : "Account security" , currentPw : "Current password" , newPw : "New password" , changePw : "Change password" , currentPwVerify : "Current password (verify identity)" , newEmail : "New email" , changeEmail : "Change email" , fillAll : "Please fill in all fields" , pwMin : "New password must be at least 6 characters" , pwChanged : "Password changed" , emailChanged : "Email changed" }, recovery : { title : "Recovery codes" , desc : "Use these to reset your account if you forget your password. Each code works once." , view : "View recovery codes" , regenerate : "Regenerate" , remaining : "{{count}} recovery codes remaining" , confirmRegenerate : "Regenerating will invalidate all old codes. Continue?" , genFailed : "Generation failed: {{msg}}" , fetchFailed : "Fetch failed: {{msg}}" , newCodes : "New recovery codes" , saveWarning : "Save these codes now — they cannot be viewed again after closing." , saved : "I have saved them" }, admin : { title : "Admin" , reports : "Reports" , users : "Users" , logs : "Event logs" , links : "Links" , forumSettings : "Forum settings" , customPages : "Custom pages" , customCss : "Custom CSS" , common : { loading : "Loading..." , loadFailed : "Load failed: {{msg}}" , operationFailed : "Operation failed: {{msg}}" , deleteFailed : "Delete failed: {{msg}}" , saveFailed : "Save failed: {{msg}}" , delete : "Delete" , save : "Save" , cancel : "Cancel" , actions : "Actions" , status : "Status" , enabled : "Enabled" , disabled : "Disabled" }, report : { statusPending : "Pending" , statusApproved : "Deleted" , statusRejected : "Rejected" , approvedNote : "Removed the reported post" , rejectedNote : "Report dismissed" , confirmApprove : "Delete this post and mark the report as resolved?" , empty : "No reports" , anonymous : "Anonymous" , reportedPost : "{{name}} reported a post" , reason : "Reason: {{reason}}" , post : "Post: {{title}} — {{content}}" , untitled : "Untitled" , handler : "Handled by: {{name}}" , deletePost : "Delete post" , reject : "Reject report" }, user : { roleAdmin : "Admin" , roleUser : "User" , confirmRole : "Set this user's role to {{role}}?" , count : "{{count}} users" , user : "User" , role : "Role" , registeredAt : "Registered" , you : "You" , cannotSelf : "You cannot edit yourself" , makeUser : "Make user" , makeAdmin : "Make admin" , roleSuper : "Super admin" }, log : { empty : "No logs" , time : "Time" , user : "User" , action : "Action" , system : "System" }, link : { add : "Add link" , empty : "No links yet" , incomplete : "Please fill in all fields" , addFailed : "Add failed: {{msg}}" , confirmDelete : "Delete this link?" , namePlaceholder : "Link name" , urlPlaceholder : "Link URL" }, page : { confirmDelete : "Delete this page?" , title : "Custom pages" , add : "Add page" , empty : "No custom pages" , name : "Name" , columnTitle : "Title" , url : "URL" , edit : "Edit page" , delete : "Delete page" , editTitle : "Edit page" , addTitle : "Add page" , nameRequired : "Enter a page name" , titleRequired : "Enter a navigation label" , contentRequired : "Enter page content" , nameInvalid : "Page names may only contain letters, numbers, hyphens, and underscores" , nameLabel : "Page name" , namePlaceholder : "about (used in URL: ?custom=about)" , nameLocked : "The name cannot be changed" , nameHint : "Letters, numbers, hyphens, and underscores only" , navTitleLabel : "Navigation label" , navTitlePlaceholder : "About us" , contentLabel : "Page content (HTML + CSS + JS)" , contentHelp : "HTML, CSS (<style>), and JS (<script>) are supported and rendered in an isolated sandbox" }, css : { filenameInvalid : "The file must be named style.css" , sizeInvalid : "The CSS file must be smaller than 1MB" , active : "Custom CSS is active (refresh to apply it)" , confirmDelete : "Delete the custom CSS?" , deleted : "Custom CSS deleted" , title : "Custom CSS" , description : "Upload a style.css file to override the default styles, including CSS variables and dark mode." , releaseUpload : "Release to upload" , uploadHint : "Click or drag to upload style.css" , save : "Save CSS" , delete : "Delete custom CSS" , warningTitle : "Warning" , warningBody : "Invalid style.css rules can break the forum layout or make the site unusable." , warningHelp : "Upload a complete, tested file. If something goes wrong, delete the custom CSS to restore the default styles." , continueUpload : "I understand, upload" }, forum : { nameRequired : "Enter a forum name" , saved : "Saved!" , saveFailed : "Save failed" , title : "Forum settings" , nameLabel : "Forum name" , save : "Save" }}}}, 84341 , 78134 , 2407 , a =>{ "use strict" ; let b , c = a => "string" == typeof a , d = ()=>{ let a , b , c = new Promise (( c , d )=>{ a = c , b = d }); return c . resolve = a , c . reject = b , c }, e = a => null == a ? "" : String ( a ), f = /###/g , g = a => a && a . includes ( "###" ) ? a . replace ( f , "." ) : a , h = a => ! a || c ( a ), i = ( a , b , d )=>{ let e = c ( b ) ? b . split ( "." ) : b , f = 0 ; for (; f < e . length - 1 ;){ if ( h ( a )) return {}; let b = g ( e [ f ]); ! a [ b ] && d && ( a [ b ] = new d ), a = Object . prototype . hasOwnProperty . call ( a , b ) ? a [ b ] : {}, ++ f } return h ( a ) ? {} : { obj : a , k : g ( e [ f ])}}, j = ( a , b , c )=>{ let { obj : d , k : e } = i ( a , b , Object ); if ( void 0 !== d || 1 === b . length ){ d [ e ] = c ; return } let f = b [ b . length - 1 ], g = b . slice ( 0 , b . length - 1 ), h = i ( a , g , Object ); for (; void 0 === h . obj && g . length ;) f = ` ${ g [ g . length - 1 ] } . ${ f } ` , h = i ( a , g = g . slice ( 0 , g . length - 1 ), Object ), h ? . obj && void 0 !== h . obj [ ` ${ h . k } . ${ f } ` ] && ( h . obj = void 0 ); h . obj [ ` ${ h . k } . ${ f } ` ] = c }, k = ( a , b )=>{ let { obj : c , k : d } = i ( a , b ); if ( c && Object . prototype . hasOwnProperty . call ( c , d )) return c [ d ]}, l = ( a , b , d )=>{ for ( let e in b ) "__proto__" !== e && "constructor" !== e && ( Object . prototype . hasOwnProperty . call ( a , e ) ? c ( a [ e ]) || a [ e ] instanceof String || c ( b [ e ]) || b [ e ] instanceof String ? d && ( a [ e ] = b [ e ]) : l ( a [ e ], b [ e ], d ) : a [ e ] = b [ e ]); return a }, m = { "&" : "&" , "<" : "<" , ">" : ">" , '"' : """ , "'" : "'" , "/" : "/" }, n = a => c ( a ) ? a . replace ( /[&<>"'\/]/g , a => m [ a ]) : a , o = [ " " , "," , "?" , "!" , ";" ], p = new class { constructor ( a ){ this . capacity = a , this . regExpMap = new Map , this . regExpQueue = []} getRegExp ( a ){ let b = this . regExpMap . get ( a ); if ( void 0 !== b ) return b ; let c = new RegExp ( a ); return this . regExpQueue . length === this . capacity && this . regExpMap . delete ( this . regExpQueue . shift ()), this . regExpMap . set ( a , c ), this . regExpQueue . push ( a ), c }}( 20 ), q = ( a , b , c = "." )=>{ if ( ! a ) return ; if ( a [ b ]){ if ( ! Object . prototype . hasOwnProperty . call ( a , b )) return ; return a [ b ]} let d = b . split ( c ), e = a ; for ( let a = 0 ; a < d . length ;){ let b ; if ( ! e || "object" != typeof e ) return ; let f = "" ; for ( let g = a ; g < d . length ; ++ g ) if ( g !== a && ( f += c ), f += d [ g ], void 0 !== ( b = e [ f ])){ if ([ "string" , "number" , "boolean" ]. includes ( typeof b ) && g < d . length - 1 ) continue ; a += g - a + 1 ; break } e = b } return e }, r = a => a ? . replace ( /_/g , "-" ), s = { type : "logger" , log ( a ){ this . output ( "log" , a )}, warn ( a ){ this . output ( "warn" , a )}, error ( a ){ this . output ( "error" , a )}, output ( a , b ){ console ? .[ a ] ? . apply ? .( console , b )}}; var t = new class a { constructor ( a , b = {}){ this . init ( a , b )} init ( a , b = {}){ this . prefix = b . prefix || "i18next:" , this . logger = a || s , this . options = b , this . debug = b . debug } log (... a ){ return this . forward ( a , "log" , "" , ! 0 )} warn (... a ){ return this . forward ( a , "warn" , "" , ! 0 )} error (... a ){ return this . forward ( a , "error" , "" )} deprecate (... a ){ return this . forward ( a , "warn" , "WARNING DEPRECATED: " , ! 0 )} forward ( a , b , d , e ){ return e &&! this . debug ? null : ( a = a . map ( a => c ( a ) ? a . replace ( /[\r\n\x00-\x1F\x7F]/g , " " ) : a ), c ( a [ 0 ]) && ( a [ 0 ] = ` ${ d }${ this . prefix } ${ a [ 0 ] } ` ), this . logger [ b ]( a ))} create ( b ){ return new a ( this . logger ,{...{ prefix : ` ${ this . prefix } : ${ b } :` },... this . options })} clone ( b ){ return ( b = b || this . options ). prefix = b . prefix || this . prefix , new a ( this . logger , b )}}; class u { constructor (){ this . observers = {}} on ( a , b ){ return a . split ( " " ). forEach ( a =>{ this . observers [ a ] || ( this . observers [ a ] = new Map ); let c = this . observers [ a ]. get ( b ) || 0 ; this . observers [ a ]. set ( b , c + 1 )}), this } off ( a , b ){ if ( this . observers [ a ]){ if ( ! b ) return void delete this . observers [ a ]; this . observers [ a ]. delete ( b )}} once ( a , b ){ let c = (... d )=>{ b (... d ), this . off ( a , c )}; return this . on ( a , c ), this } emit ( a ,... b ){ this . observers [ a ] && Array . from ( this . observers [ a ]. entries ()). forEach (([ a , c ])=>{ for ( let d = 0 ; d < c ; d ++ ) a (... b )}), this . observers [ "*" ] && Array . from ( this . observers [ "*" ]. entries ()). forEach (([ c , d ])=>{ for ( let e = 0 ; e < d ; e ++ ) c ( a ,... b )})}} class v extends u { constructor ( a , b = { ns : [ "translation" ], defaultNS : "translation" }){ super (), this . data = a || {}, this . options = b , void 0 === this . options . keySeparator && ( this . options . keySeparator = "." ), void 0 === this . options . ignoreJSONStructure && ( this . options . ignoreJSONStructure =! 0 )} addNamespaces ( a ){ this . options . ns . includes ( a ) || this . options . ns . push ( a )} removeNamespaces ( a ){ let b = this . options . ns . indexOf ( a ); b >- 1 && this . options . ns . splice ( b , 1 )} getResource ( a , b , d , e = {}){ let f , g = void 0 !== e . keySeparator ? e . keySeparator : this . options . keySeparator , h = void 0 !== e . ignoreJSONStructure ? e . ignoreJSONStructure : this . options . ignoreJSONStructure ; a . includes ( "." ) ? f = a . split ( "." ) : ( f = [ a , b ], d && ( Array . isArray ( d ) ? f . push (... d ) : c ( d ) && g ? f . push (... d . split ( g )) : f . push ( d ))); let i = k ( this . data , f ); return ( ! i &&! b &&! d && a . includes ( "." ) && ( a = f [ 0 ], b = f [ 1 ], d = f . slice ( 2 ). join ( "." )), ! i && h && c ( d )) ? q ( this . data ? .[ a ] ? .[ b ], d , g ) : i } addResource ( a , b , c , d , e = { silent :! 1 }){ let f = void 0 !== e . keySeparator ? e . keySeparator : this . options . keySeparator , g = [ a , b ]; c && ( g = g . concat ( f ? c . split ( f ) : c )), a . includes ( "." ) && ( g = a . split ( "." ), d = b , b = g [ 1 ]), this . addNamespaces ( b ), j ( this . data , g , d ), e . silent || this . emit ( "added" , a , b , c , d )} addResources ( a , b , d , e = { silent :! 1 }){ for ( let e in d )( c ( d [ e ]) || Array . isArray ( d [ e ])) && this . addResource ( a , b , e , d [ e ],{ silent :! 0 }); e . silent || this . emit ( "added" , a , b , d )} addResourceBundle ( a , b , c , d , e , f = { silent :! 1 , skipCopy :! 1 }){ let g = [ a , b ]; a . includes ( "." ) && ( g = a . split ( "." ), d = c , c = b , b = g [ 1 ]), this . addNamespaces ( b ); let h = k ( this . data , g ) || {}; f . skipCopy || ( c = JSON . parse ( JSON . stringify ( c ))), d ? l ( h , c , e ) : h = {... h ,... c }, j ( this . data , g , h ), f . silent || this . emit ( "added" , a , b , c )} removeResourceBundle ( a , b ){ this . hasResourceBundle ( a , b ) && delete this . data [ a ][ b ], this . removeNamespaces ( b ), this . emit ( "removed" , a , b )} hasResourceBundle ( a , b ){ return void 0 !== this . getResource ( a , b )} getResourceBundle ( a , b ){ return b || ( b = this . options . defaultNS ), this . getResource ( a , b )} getDataByLanguage ( a ){ return this . data [ a ]} hasLanguageSomeTranslations ( a ){ let b = this . getDataByLanguage ( a ); return !! ( b && Object . keys ( b ) || []). find ( a => b [ a ] && Object . keys ( b [ a ]). length > 0 )} toJSON (){ return this . data }} var w = { processors : {}, addPostProcessor ( a ){ this . processors [ a . name ] = a }, handle ( a , b , c , d , e ){ return a . forEach ( a =>{ b = this . processors [ a ] ? . process ( b , c , d , e ) ?? b }), b }}; let x = Symbol ( "i18next/PATH_KEY" ); function y ( a , b ){ let c , d , e ,{[ x ] : f } = a (( d = [],( e = Object . create ( null )). get = ( a , b )=>( c ? . revoke ? .(), b === x ) ? d : ( d . push ( b ),( c = Proxy . revocable ( a , e )). proxy ), Proxy . revocable ( Object . create ( null ), e ). proxy )), g = b ? . keySeparator ?? "." , h = b ? . nsSeparator ?? ":" , i = b ? . enableSelector === "strict" ; if ( f . length > 1 && h ){ let a = b ? . ns , c = i ? Array . isArray ( a ) ? a : a ? [ a ] : null : Array . isArray ( a ) ? a : null ; if ( c && ( i ? c : c . length > 1 ? c . slice ( 1 ) : []). includes ( f [ 0 ])) return ` ${ f [ 0 ] }${ h }${ f . slice ( 1 ). join ( g ) } ` } return f . join ( g )} let z = a => ! c ( a ) && "boolean" != typeof a && "number" != typeof a ; class A extends u { constructor ( a , b = {}){ super (),(( a , b , c )=>{ a . forEach ( a =>{ b [ a ] && ( c [ a ] = b [ a ])})})([ "resourceStore" , "languageUtils" , "pluralResolver" , "interpolator" , "backendConnector" , "i18nFormat" , "utils" ], a , this ), this . options = b , void 0 === this . options . keySeparator && ( this . options . keySeparator = "." ), this . logger = t . create ( "translator" ), this . checkedLoadedFor = {}} changeLanguage ( a ){ a && ( this . language = a )} exists ( a , b = { interpolation : {}}){ let c = {... b }; if ( null == a ) return ! 1 ; let d = this . resolve ( a , c ); if ( d ? . res === void 0 ) return ! 1 ; let e = z ( d . res ); return ! 1 !== c . returnObjects ||! e } extractFromKey ( a , b ){ let d = void 0 !== b . nsSeparator ? b . nsSeparator : this . options . nsSeparator ; void 0 === d && ( d = ":" ); let e = void 0 !== b . keySeparator ? b . keySeparator : this . options . keySeparator , f = b . ns || this . options . defaultNS || [], g = d && a . includes ( d ), h =! this . options . userDefinedKeySeparator &&! b . keySeparator &&! this . options . userDefinedNsSeparator &&! b . nsSeparator &&! (( a , b , c )=>{ b = b || "" , c = c || "" ; let d = o . filter ( a => ! b . includes ( a ) &&! c . includes ( a )); if ( 0 === d . length ) return ! 0 ; let e = p . getRegExp ( `( ${ d . map ( a => "?" === a ? "\\?" : a ). join ( "|" ) } )` ), f =! e . test ( a ); if ( ! f ){ let b = a . indexOf ( c ); b > 0 &&! e . test ( a . substring ( 0 , b )) && ( f =! 0 )} return f })( a , d , e ); if ( g &&! h ){ let b = a . match ( this . interpolator . nestingRegexp ); if ( b && b . length > 0 ) return { key : a , namespaces : c ( f ) ? [ f ] : f }; let g = a . split ( d );( d !== e || d === e && this . options . ns . includes ( g [ 0 ])) && ( f = g . shift ()), a = g . join ( e )} return { key : a , namespaces : c ( f ) ? [ f ] : f }} translate ( a , b , d ){ let e = "object" == typeof b ? {... b } : b ; if ( "object" != typeof e && this . options . overloadTranslationOptionHandler && ( e = this . options . overloadTranslationOptionHandler ( arguments )), "object" == typeof e && ( e = {... e }), e || ( e = {}), null == a ) return "" ; "function" == typeof a && ( a = y ( a ,{... this . options ,... e })), Array . isArray ( a ) || ( a = [ String ( a )]), a = a . map ( a => "function" == typeof a ? y ( a ,{... this . options ,... e }) : String ( a )); let f = void 0 !== e . returnDetails ? e . returnDetails : this . options . returnDetails , g = void 0 !== e . keySeparator ? e . keySeparator : this . options . keySeparator ,{ key : h , namespaces : i } = this . extractFromKey ( a [ a . length - 1 ], e ), j = i [ i . length - 1 ], k = void 0 !== e . nsSeparator ? e . nsSeparator : this . options . nsSeparator ; void 0 === k && ( k = ":" ); let l = e . lng || this . language , m = e . appendNamespaceToCIMode || this . options . appendNamespaceToCIMode ; if ( l ? . toLowerCase () === "cimode" ) return m ? f ? { res : ` ${ j }${ k }${ h } ` , usedKey : h , exactUsedKey : h , usedLng : l , usedNS : j , usedParams : this . getUsedParamsDetails ( e )} : ` ${ j }${ k }${ h } ` : f ? { res : h , usedKey : h , exactUsedKey : h , usedLng : l , usedNS : j , usedParams : this . getUsedParamsDetails ( e )} : h ; let n = this . resolve ( a , e ), o = n ? . res , p = n ? . usedKey || h , q = n ? . exactUsedKey || h , r = void 0 !== e . joinArrays ? e . joinArrays : this . options . joinArrays , s =! this . i18nFormat || this . i18nFormat . handleAsObject , t = void 0 !== e . count &&! c ( e . count ), u = A . hasDefaultValue ( e ), v = t ? this . pluralResolver . getSuffix ( l , e . count , e ) : "" , w = e . ordinal && t ? this . pluralResolver . getSuffix ( l , e . count ,{ ordinal :! 1 }) : "" , x = t &&! e . ordinal && 0 === e . count , B = x && e [ `defaultValue ${ this . options . pluralSeparator } zero` ] || e [ `defaultValue ${ v } ` ] || e [ `defaultValue ${ w } ` ] || e . defaultValue , C = o ; s &&! o && u && ( C = B ); let D = z ( C ), E = Object . prototype . toString . apply ( C ); if ( s && C && D &&! [ "[object Number]" , "[object Function]" , "[object RegExp]" ]. includes ( E ) &&! ( c ( r ) && Array . isArray ( C ))){ if ( ! e . returnObjects &&! this . options . returnObjects ){ this . options . returnedObjectHandler || this . logger . warn ( "accessing an object - but returnObjects options is not enabled!" ); let a = this . options . returnedObjectHandler ? this . options . returnedObjectHandler ( p , C ,{... e , ns : i }) : `key ' ${ h } ( ${ this . language } )' returned an object instead of string.` ; return f ? ( n . res = a , n . usedParams = this . getUsedParamsDetails ( e ), n ) : a } if ( g ){ let a = Array . isArray ( C ), b = a ? [] : {}, c = a ? q : p ; for ( let a in C ) if ( Object . prototype . hasOwnProperty . call ( C , a )){ let d = ` ${ c }${ g }${ a } ` ; u &&! o ? b [ a ] = this . translate ( d ,{... e , defaultValue : z ( B ) ? B [ a ] : void 0 ,...{ joinArrays :! 1 , ns : i }}) : b [ a ] = this . translate ( d ,{... e , joinArrays :! 1 , ns : i }), b [ a ] === d && ( b [ a ] = C [ a ])} o = b }} else if ( s && c ( r ) && Array . isArray ( o ))( o = o . join ( r )) && ( o = this . extendTranslation ( o , a , e , d )); else { let b =! 1 , c =! 1 ; ! this . isValidLookup ( o ) && u && ( b =! 0 , o = B ), this . isValidLookup ( o ) || ( c =! 0 , o = h ); let f = ( e . missingKeyNoValueFallbackToKey || this . options . missingKeyNoValueFallbackToKey ) && c ? void 0 : o , i = u && B !== o && this . options . updateMissing ; if ( c || b || i ){ if ( this . logger . log ( i ? "updateKey" : "missingKey" , l , j , t &&! i ? ` ${ h }${ this . pluralResolver . getSuffix ( l , e . count , e ) } ` : h , i ? B : o ), g ){ let a = this . resolve ( h ,{... e , keySeparator :! 1 }); a && a . 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 a = [], b = this . languageUtils . getFallbackCodes ( this . options . fallbackLng , e . lng || this . language ); if ( "fallback" === this . options . saveMissingTo && b && b [ 0 ]) for ( let c = 0 ; c < b . length ; c ++ ) a . push ( b [ c ]); else "all" === this . options . saveMissingTo ? a = this . languageUtils . toResolveHierarchy ( e . lng || this . language ) : a . push ( e . lng || this . language ); let c = ( a , b , c )=>{ let d = u && c !== o ? c : f ; this . options . missingKeyHandler ? this . options . missingKeyHandler ( a , j , b , d , i , e ) : this . backendConnector ? . saveMissing && this . backendConnector . saveMissing ( a , j , b , d , i , e ), this . emit ( "missingKey" , a , j , b , o )}; this . options . saveMissing && ( this . options . saveMissingPlurals && t ? a . forEach ( a =>{ let b = this . pluralResolver . getSuffixes ( a , e ); x && e [ `defaultValue ${ this . options . pluralSeparator } zero` ] &&! b . includes ( ` ${ this . options . pluralSeparator } zero` ) && b . push ( ` ${ this . options . pluralSeparator } zero` ), b . forEach ( b =>{ c ([ a ], h + b , e [ `defaultValue ${ b } ` ] || B )})}) : c ( a , h , B ))} o = this . extendTranslation ( o , a , e , n , d ), c && o === h && this . options . appendNamespaceToMissingKey && ( o = ` ${ j }${ k }${ h } ` ),( c || b ) && this . options . parseMissingKeyHandler && ( o = this . options . parseMissingKeyHandler ( this . options . appendNamespaceToMissingKey ? ` ${ j }${ k }${ h } ` : h , b ? o : void 0 , e ))} return f ? ( n . res = o , n . usedParams = this . getUsedParamsDetails ( e ), n ) : o } extendTranslation ( a , b , d , e , f ){ if ( this . i18nFormat ? . parse ) a = this . i18nFormat . parse ( a ,{... this . options . interpolation . defaultVariables ,... d }, d . lng || this . language || e . usedLng , e . usedNS , e . usedKey ,{ resolved : e }); else if ( ! d . skipInterpolation ){ let g ; d . interpolation && this . interpolator . init ({... d ,...{ interpolation : {... this . options . interpolation ,... d . interpolation }}}); let h = c ( a ) && ( d ? . interpolation ? . skipOnVariables !== void 0 ? d . interpolation . skipOnVariables : this . options . interpolation . skipOnVariables ); if ( h ){ let b = a . match ( this . interpolator . nestingRegexp ); g = b && b . length } let i = d . replace &&! c ( d . replace ) ? d . replace : d ; if ( this . options . interpolation . defaultVariables && ( i = {... this . options . interpolation . defaultVariables ,... i }), a = this . interpolator . interpolate ( a , i , d . lng || this . language || e . usedLng , d ), h ){ let b = a . match ( this . interpolator . nestingRegexp ); g < ( b && b . length ) && ( d . nest =! 1 )} ! d . lng && e && e . res && ( d . lng = this . language || e . usedLng ), ! 1 !== d . nest && ( a = this . interpolator . nest ( a ,(... a )=> f ? .[ 0 ] !== a [ 0 ] || d . context ? this . translate (... a , b ) : ( this . logger . warn ( `It seems you are nesting recursively key: ${ a [ 0 ] } in key: ${ b [ 0 ] } ` ), null ), d )), d . interpolation && this . interpolator . reset ()} let g = d . postProcess || this . options . postProcess , h = c ( g ) ? [ g ] : g ; return null != a && h ? . length &&! 1 !== d . applyPostProcessor && ( a = w . handle ( h , a , b , this . options && this . options . postProcessPassResolved ? { i18nResolved : {... e , usedParams : this . getUsedParamsDetails ( d )},... d } : d , this )), a } resolve ( a , b = {}){ let d , e , f , g , h ; return c ( a ) && ( a = [ a ]), Array . isArray ( a ) && ( a = a . map ( a => "function" == typeof a ? y ( a ,{... this . options ,... b }) : a )), a . forEach ( a =>{ if ( this . isValidLookup ( d )) return ; let i = this . extractFromKey ( a , b ), j = i . key ; e = j ; let k = i . namespaces ; this . options . fallbackNS && ( k = k . concat ( this . options . fallbackNS )); let l = void 0 !== b . count &&! c ( b . count ), m = l &&! b . ordinal && 0 === b . count , n = void 0 !== b . context && ( c ( b . context ) || "number" == typeof b . context ) && "" !== b . context , o = b . lngs ? b . lngs : this . languageUtils . toResolveHierarchy ( b . lng || this . language , b . fallbackLng ); k . forEach ( a =>{ this . isValidLookup ( d ) || ( h = a , ! this . checkedLoadedFor [ ` ${ o [ 0 ] } - ${ a } ` ] && this . utils ? . hasLoadedNamespace &&! this . utils ? . hasLoadedNamespace ( h ) && ( this . checkedLoadedFor [ ` ${ o [ 0 ] } - ${ a } ` ] =! 0 , this . logger . warn ( `key " ${ e } " for languages " ${ o . join ( ", " ) } " won't get resolved as namespace " ${ h } " 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!!!" )), o . forEach ( c =>{ let e ; if ( this . isValidLookup ( d )) return ; g = c ; let h = [ j ]; if ( this . i18nFormat ? . addLookupKeys ) this . i18nFormat . addLookupKeys ( h , j , c , a , b ); else { let a ; l && ( a = this . pluralResolver . getSuffix ( c , b . count , b )); let d = ` ${ this . options . pluralSeparator } zero` , e = ` ${ this . options . pluralSeparator } ordinal ${ this . options . pluralSeparator } ` ; if ( l && ( b . ordinal && a . startsWith ( e ) && h . push ( j + a . replace ( e , this . options . pluralSeparator )), h . push ( j + a ), m && h . push ( j + d )), n ){ let c = ` ${ j }${ this . options . contextSeparator || "_" }${ b . context } ` ; h . push ( c ), l && ( b . ordinal && a . startsWith ( e ) && h . push ( c + a . replace ( e , this . options . pluralSeparator )), h . push ( c + a ), m && h . push ( c + d ))}} for (; e = h . pop ();) this . isValidLookup ( d ) || ( f = e , d = this . getResource ( c , a , e , b ))}))})}),{ res : d , usedKey : e , exactUsedKey : f , usedLng : g , usedNS : h }} isValidLookup ( a ){ return void 0 !== a &&! ( ! this . options . returnNull && null === a ) &&! ( ! this . options . returnEmptyString && "" === a )} getResource ( a , b , c , d = {}){ return this . i18nFormat ? . getResource ? this . i18nFormat . getResource ( a , b , c , d ) : this . resourceStore . getResource ( a , b , c , d )} getUsedParamsDetails ( a = {}){ let b = a . replace &&! c ( a . replace ), d = b ? a . replace : a ; if ( b && void 0 !== a . count && ( d = {... d , count : a . count }), this . options . interpolation . defaultVariables && ( d = {... this . options . interpolation . defaultVariables ,... d }), ! b ) for ( let a of ( d = {... d },[ "defaultValue" , "ordinal" , "context" , "replace" , "lng" , "lngs" , "fallbackLng" , "ns" , "keySeparator" , "nsSeparator" , "returnObjects" , "returnDetails" , "joinArrays" , "postProcess" , "interpolation" ])) delete d [ a ]; return d } static hasDefaultValue ( a ){ for ( let b in a ) if ( Object . prototype . hasOwnProperty . call ( a , b ) && b . startsWith ( "defaultValue" ) && void 0 !== a [ b ]) return ! 0 ; return ! 1 }} class B { constructor ( a ){ this . options = a , this . supportedLngs = this . options . supportedLngs ||! 1 , this . logger = t . create ( "languageUtils" )} getScriptPartFromCode ( a ){ if ( ! ( a = r ( a )) ||! a . includes ( "-" )) return null ; let b = a . split ( "-" ); return 2 === b . length || ( b . pop (), "x" === b [ b . length - 1 ]. toLowerCase ()) ? null : this . formatLanguageCode ( b . join ( "-" ))} getLanguagePartFromCode ( a ){ if ( ! ( a = r ( a )) ||! a . includes ( "-" )) return a ; let b = a . split ( "-" ); return this . formatLanguageCode ( b [ 0 ])} formatLanguageCode ( a ){ if ( c ( a ) && a . includes ( "-" )){ let b ; try { b = Intl . getCanonicalLocales ( a )[ 0 ]} catch ( a ){} return ( b && this . options . lowerCaseLng && ( b = b . toLowerCase ()), b ) ? b : this . options . lowerCaseLng ? a . toLowerCase () : a } return this . options . cleanCode || this . options . lowerCaseLng ? a . toLowerCase () : a } isSupportedCode ( a ){ return ( "languageOnly" === this . options . load || this . options . nonExplicitSupportedLngs ) && ( a = this . getLanguagePartFromCode ( a )), ! this . supportedLngs ||! this . supportedLngs . length || this . supportedLngs . includes ( a )} getBestMatchFromCodes ( a ){ let b ; return a ? ( a . forEach ( a =>{ if ( b ) return ; let c = this . formatLanguageCode ( a );( ! this . options . supportedLngs || this . isSupportedCode ( c )) && ( b = c )}), ! b && this . options . supportedLngs && a . forEach ( a =>{ if ( b ) return ; let c = this . getScriptPartFromCode ( a ); if ( this . isSupportedCode ( c )) return b = c ; let d = this . getLanguagePartFromCode ( a ); if ( this . isSupportedCode ( d )) return b = d ; b = this . options . supportedLngs . find ( a => a === d || ( !! a . includes ( "-" ) ||!! d . includes ( "-" )) &&!! ( a . includes ( "-" ) &&! d . includes ( "-" ) && a . slice ( 0 , a . indexOf ( "-" )) === d || a . startsWith ( d ) && d . length > 1 ))}), b || ( b = this . getFallbackCodes ( this . options . fallbackLng )[ 0 ]), b ) : null } getFallbackCodes ( a , b ){ if ( ! a ) return []; if ( "function" == typeof a && ( a = a ( b )), c ( a ) && ( a = [ a ]), Array . isArray ( a )) return a ; if ( ! b ) return a . default || []; let d = a [ b ]; return d || ( d = a [ this . getScriptPartFromCode ( b )]), d || ( d = a [ this . formatLanguageCode ( b )]), d || ( d = a [ this . getLanguagePartFromCode ( b )]), d || ( d = a . default ), d || []} toResolveHierarchy ( a , b ){ let d = this . getFallbackCodes (( ! 1 === b ? [] : b ) || this . options . fallbackLng || [], a ), e = [], f = a =>{ a && ( this . isSupportedCode ( a ) ? e . push ( a ) : this . logger . warn ( `rejecting language code not found in supportedLngs: ${ a } ` ))}; return c ( a ) && ( a . includes ( "-" ) || a . includes ( "_" )) ? ( "languageOnly" !== this . options . load && f ( this . formatLanguageCode ( a )), "languageOnly" !== this . options . load && "currentOnly" !== this . options . load && f ( this . getScriptPartFromCode ( a )), "currentOnly" !== this . options . load && f ( this . getLanguagePartFromCode ( a ))) : c ( a ) && f ( this . formatLanguageCode ( a )), d . forEach ( a =>{ e . includes ( a ) || f ( this . formatLanguageCode ( a ))}), e }} let C = { zero : 0 , one : 1 , two : 2 , few : 3 , many : 4 , other : 5 }, D = { select : a => 1 === a ? "one" : "other" , resolvedOptions : ()=>({ pluralCategories : [ "one" , "other" ]})}; class E { constructor ( a , b = {}){ this . languageUtils = a , this . options = b , this . logger = t . create ( "pluralResolver" ), this . pluralRulesCache = {}} clearCache (){ this . pluralRulesCache = {}} getRule ( a , b = {}){ let c , d = r ( "dev" === a ? "en" : a ), e = b . ordinal ? "ordinal" : "cardinal" , f = JSON . stringify ({ cleanedCode : d , type : e }); if ( f in this . pluralRulesCache ) return this . pluralRulesCache [ f ]; try { c = new Intl . PluralRules ( d ,{ type : e })} catch ( e ){ if ( "u" < typeof Intl ) return this . logger . error ( "No Intl support, please use an Intl polyfill!" ), D ; if ( ! a . match ( /-|_/ )) return D ; let d = this . languageUtils . getLanguagePartFromCode ( a ); c = this . getRule ( d , b )} return this . pluralRulesCache [ f ] = c , c } needsPlural ( a , b = {}){ let c = this . getRule ( a , b ); return c || ( c = this . getRule ( "dev" , b )), c ? . resolvedOptions (). pluralCategories . length > 1 } getPluralFormsOfKey ( a , b , c = {}){ return this . getSuffixes ( a , c ). map ( a => ` ${ b }${ a } ` )} getSuffixes ( a , b = {}){ let c = this . getRule ( a , b ); return ( c || ( c = this . getRule ( "dev" , b )), c ) ? c . resolvedOptions (). pluralCategories . sort (( a , b )=> C [ a ] - C [ b ]). map ( a => ` ${ this . options . prepend }${ b . ordinal ? `ordinal ${ this . options . prepend } ` : "" }${ a } ` ) : []} getSuffix ( a , b , c = {}){ let d = this . getRule ( a , c ); return d ? ` ${ this . options . prepend }${ c . ordinal ? `ordinal ${ this . options . prepend } ` : "" }${ d . select ( b ) } ` : ( this . logger . warn ( `no plural rule found for: ${ a } ` ), this . getSuffix ( "dev" , b , c ))}} let F = ( a , b , d , e = "." , f =! 0 )=>{ let g , h = void 0 !== ( g = k ( a , d )) ? g : k ( b , d ); return ! h && f && c ( d ) && void 0 === ( h = q ( a , d , e )) && ( h = q ( b , d , e )), h }, G = a => a . replace ( /\$/g , "$$$$" ); class H { constructor ( a = {}){ this . logger = t . create ( "interpolator" ), this . options = a , this . format = a ? . interpolation ? . format || ( a => a ), this . init ( a )} init ( a = {}){ a . interpolation || ( a . interpolation = { escapeValue :! 0 }); let { escape : b , escapeValue : c , useRawValueToEscape : d , prefix : e , prefixEscaped : f , suffix : g , suffixEscaped : h , formatSeparator : i , unescapeSuffix : j , unescapePrefix : k , nestingPrefix : l , nestingPrefixEscaped : m , nestingSuffix : o , nestingSuffixEscaped : p , nestingOptionsSeparator : q , maxReplaces : r , alwaysFormat : s } = a . interpolation ; this . escape = void 0 !== b ? b : n , this . escapeValue = void 0 === c || c , this . useRawValueToEscape = void 0 !== d && d , this . prefix = e ? e . replace ( /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g , "\\$&" ) : f || "{{" , this . suffix = g ? g . replace ( /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g , "\\$&" ) : h || "}}" , this . formatSeparator = i || "," , this . unescapePrefix = j ? "" : k ? k . replace ( /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g , "\\$&" ) : "-" , this . unescapeSuffix = this . unescapePrefix ? "" : j ? j . replace ( /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g , "\\$&" ) : "" , this . nestingPrefix = l ? l . replace ( /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g , "\\$&" ) : m || "$t(" . replace ( /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g , "\\$&" ), this . nestingSuffix = o ? o . replace ( /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g , "\\$&" ) : p || ")" . replace ( /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g , "\\$&" ), this . nestingOptionsSeparator = q || "," , this . maxReplaces = r || 1e3 , this . alwaysFormat = void 0 !== s && s , this . resetRegExp ()} reset (){ this . options && this . init ( this . options )} resetRegExp (){ let a = ( a , b )=> a ? . source === b ? ( a . lastIndex = 0 , a ) : RegExp ( b , "g" ); this . regexp = a ( this . regexp , ` ${ this . prefix } (.+?) ${ this . suffix } ` ), this . regexpUnescape = a ( this . regexpUnescape , ` ${ this . prefix }${ this . unescapePrefix } (.+?) ${ this . unescapeSuffix }${ this . suffix } ` ), this . nestingRegexp = a ( this . nestingRegexp , ` ${ this . nestingPrefix } ((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?) ${ this . nestingSuffix } ` )} interpolate ( a , b , d , f ){ let g , h , i , j = this . options && this . options . interpolation && this . options . interpolation . defaultVariables || {}, k = a =>{ if ( ! a . includes ( this . formatSeparator )){ let c = F ( b , j , a , this . options . keySeparator , this . options . ignoreJSONStructure ); return this . alwaysFormat ? this . format ( c , void 0 , d ,{... f ,... b , interpolationkey : a }) : c } let c = a . split ( this . formatSeparator ), e = c . shift (). trim (), g = c . join ( this . formatSeparator ). trim (); return this . format ( F ( b , j , e , this . options . keySeparator , this . options . ignoreJSONStructure ), g , d ,{... f ,... b , interpolationkey : e })}; this . resetRegExp (), ! this . escapeValue && "string" == typeof a && /\$t\([^)]*\{[^}]*\{\{/ . test ( a ) && 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." ); let l = f ? . missingInterpolationHandler || this . options . missingInterpolationHandler , m = f ? . interpolation ? . skipOnVariables !== void 0 ? f . interpolation . skipOnVariables : this . options . interpolation . skipOnVariables ; return [{ regex : this . regexpUnescape , safeValue : a => a },{ regex : this . regexp , safeValue : a => this . escapeValue ? this . escape ( a ) : a }]. forEach ( b =>{ for ( i = 0 ; g = b . regex . exec ( a );){ let d = g [ 1 ]. trim (); if ( void 0 === ( h = k ( d ))) if ( "function" == typeof l ){ let b = l ( a , g , f ); h = c ( b ) ? b : "" } else if ( f && Object . prototype . hasOwnProperty . call ( f , d )) h = "" ; else if ( m ){ h = g [ 0 ]; continue } else this . logger . warn ( `missed to pass in variable ${ d } for interpolating ${ a } ` ), h = "" ; else c ( h ) || this . useRawValueToEscape || ( h = e ( h )); let j = b . safeValue ( h ); if ( a = a . replace ( g [ 0 ], G ( j )), m ? ( b . regex . lastIndex += j . length , b . regex . lastIndex -= g [ 0 ]. length ) : b . regex . lastIndex = 0 , ++ i >= this . maxReplaces ) break }}), a } nest ( a , b , d = {}){ let f , g , h , i = ( a , b )=>{ let c = this . nestingOptionsSeparator ; if ( ! a . includes ( c )) return a ; let d = a . split ( RegExp ( ` ${ c . replace ( /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g , "\\$&" ) } [ ]*{` )), e = `{ ${ d [ 1 ] } ` ; a = d [ 0 ]; let f = ( e = this . interpolate ( e , h )). match ( /'/g ), g = e . match ( /"/g );(( f ? . length ?? 0 ) % 2 != 0 || g ) && ( g ? . length ?? 0 ) % 2 == 0 || ( e = e . replace ( /'/g , '"' )); try { h = JSON . parse ( e ), b && ( h = {... b ,... h })} catch ( b ){ return this . logger . warn ( `failed parsing options string in nesting for key ${ a } ` , b ), ` ${ a }${ c }${ e } ` } return h . defaultValue && h . defaultValue . includes ( this . prefix ) && delete h . defaultValue , a }; for (; f = this . nestingRegexp . exec ( a );){ let j = [];( h = ( h = {... d }). replace &&! c ( h . replace ) ? h . replace : h ). applyPostProcessor =! 1 , delete h . defaultValue ; let k = /{.*}/s.test(f[1])?f[1].lastIndexOf("}")+1:f[1].indexOf(this.formatSeparator);if(-1!==k&&(j=f[1].slice(k).split(this.formatSeparator).map(a=>a.trim()).filter(Boolean),f[1]=f[1].slice(0,k)),(g=b(i.call(this,f[1].trim(),h),h))&&f[0]===a&&!c(g))return g;c(g)||(g=e(g)),g||(this.logger.warn(`missed to resolve ${f[1]} for nesting ${a}`),g=""),j.length&&(g=j.reduce((a,b)=>this.format(a,b,d.lng,{...d,interpolationkey:f[1].trim()}),g.trim())),a=a.replace(f[0],g),this.regexp.lastIndex=0}return a}}let I=a=>{let b={};return(c,d,e)=>{let f=e;e&&e.interpolationkey&&e.formatParams&&e.formatParams[e.interpolationkey]&&e[e.interpolationkey]&&(f={...f,[e.interpolationkey]:void 0});let g=d+JSON.stringify(f),h=b[g];return h||(h=a(r(d),e),b[g]=h),h(c)}},J=a=>(b,c,d)=>a(r(c),d)(b);class K{constructor(a={}){this.logger=t.create("formatter"),this.options=a,this.init(a)}init(a,b={interpolation:{}}){this.formatSeparator=b.interpolation.formatSeparator||",";let c=b.cacheInBuiltFormats?I:J;this.formats={number:c((a,b)=>{let c=new Intl.NumberFormat(a,{...b});return a=>c.format(a)}),currency:c((a,b)=>{let c=new Intl.NumberFormat(a,{...b,style:"currency"});return a=>c.format(a)}),datetime:c((a,b)=>{let c=new Intl.DateTimeFormat(a,{...b});return a=>c.format(a)}),relativetime:c((a,b)=>{let c=new Intl.RelativeTimeFormat(a,{...b});return a=>c.format(a,b.range||"day")}),list:c((a,b)=>{let c=new Intl.ListFormat(a,{...b});return a=>c.format(a)})}}add(a,b){this.formats[a.toLowerCase().trim()]=b}addCached(a,b){this.formats[a.toLowerCase().trim()]=I(b)}format(a,b,c,d={}){if(!b||null==a)return a;let e=b.split(this.formatSeparator),f=[];for(let a=0;a<e.length;a++){let b=e[a];for(;b.indexOf("(")>-1&&!b.includes(")")&&a+1<e.length;)b=`${b}${this.formatSeparator}${e[++a]}`;f.push(b)}return f.reduce((a,b)=>{let{formatName:e,formatOptions:f}=(a=>{let b=a.toLowerCase().trim(),c={};if(a.includes("(")){let d=a.split("(");b=d[0].toLowerCase().trim();let e=d[1].slice(0,-1);"currency"!==b||e.includes(":")?"relativetime"!==b||e.includes(":")?e.split(";").forEach(a=>{if(a){let[b,...d]=a.split(":"),e=d.join(":").trim().replace(/^'+|'+$/g,""),f=b.trim();c[f]||(c[f]=e),"false"===e&&(c[f]=!1),"true"===e&&(c[f]=!0),isNaN(e)||(c[f]=parseInt(e,10))}}):c.range||(c.range=e.trim()):c.currency||(c.currency=e.trim())}return{formatName:b,formatOptions:c}})(b);if(this.formats[e]){let b=a;try{let g=d?.formatParams?.[d.interpolationkey]||{},h=g.locale||g.lng||d.locale||d.lng||c;b=this.formats[e](a,h,{...f,...d,...g})}catch(a){this.logger.warn(a)}return b}return this.logger.warn(`there was no format function for ${e}`),a},a)}}class L extends u{constructor(a,b,c,d={}){super(),this.backend=a,this.store=b,this.services=c,this.languageUtils=c.languageUtils,this.options=d,this.logger=t.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=d.maxParallelReads||10,this.readingCalls=0,this.maxRetries=d.maxRetries>=0?d.maxRetries:5,this.retryTimeout=d.retryTimeout>=1?d.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(c,d.backend,d)}queueLoad(a,b,c,d){let e={},f={},g={},h={};return a.forEach(a=>{let d=!0;b.forEach(b=>{let g=`${a}|${b}`;!c.reload&&this.store.hasResourceBundle(a,b)?this.state[g]=2:this.state[g]<0||(1===this.state[g]?void 0===f[g]&&(f[g]=!0):(this.state[g]=1,d=!1,void 0===f[g]&&(f[g]=!0),void 0===e[g]&&(e[g]=!0),void 0===h[b]&&(h[b]=!0)))}),d||(g[a]=!0)}),(Object.keys(e).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:d}),{toLoad:Object.keys(e),pending:Object.keys(f),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(h)}}loaded(a,b,c){let d=a.split("|"),e=d[0],f=d[1];b&&this.emit("failedLoading",e,f,b),!b&&c&&this.store.addResourceBundle(e,f,c,void 0,void 0,{skipCopy:!0}),this.state[a]=b?-1:2,b&&c&&(this.state[a]=0);let g={};this.queue.forEach(c=>{((a,b,c)=>{let{obj:d,k:e}=i(a,b,Object);d[e]=d[e]||[],d[e].push(c)})(c.loaded,[e],f),void 0!==c.pending[a]&&(delete c.pending[a],c.pendingCount--),b&&c.errors.push(b),0!==c.pendingCount||c.done||(Object.keys(c.loaded).forEach(a=>{g[a]||(g[a]={});let b=c.loaded[a];b.length&&b.forEach(b=>{void 0===g[a][b]&&(g[a][b]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(a=>!a.done)}read(a,b,c,d=0,e=this.retryTimeout,f){if(!a.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:a,ns:b,fcName:c,tried:d,wait:e,callback:f});this.readingCalls++;let g=(g,h)=>{if(this.readingCalls--,this.waitingReads.length>0){let a=this.waitingReads.shift();this.read(a.lng,a.ns,a.fcName,a.tried,a.wait,a.callback)}g&&h&&d<this.maxRetries?setTimeout(()=>{this.read(a,b,c,d+1,2*e,f)},e):f(g,h)},h=this.backend[c].bind(this.backend);if(2===h.length){try{let c=h(a,b);c&&"function"==typeof c.then?c.then(a=>g(null,a)).catch(g):g(null,c)}catch(a){g(a)}return}return h(a,b,g)}prepareLoading(a,b,d={},e){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),e&&e();c(a)&&(a=this.languageUtils.toResolveHierarchy(a)),c(b)&&(b=[b]);let f=this.queueLoad(a,b,d,e);if(!f.toLoad.length)return f.pending.length||e(),null;f.toLoad.forEach(a=>{this.loadOne(a)})}load(a,b,c){this.prepareLoading(a,b,{},c)}reload(a,b,c){this.prepareLoading(a,b,{reload:!0},c)}loadOne(a,b=""){let c=a.split("|"),d=c[0],e=c[1];this.read(d,e,"read",void 0,void 0,(c,f)=>{c&&this.logger.warn(`${b}loading namespace ${e} for language ${d} failed`,c),!c&&f&&this.logger.log(`${b}loaded namespace ${e} for language ${d}`,f),this.loaded(a,c,f)})}saveMissing(a,b,c,d,e,f={},g=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(b))return void this.logger.warn(`did not save key "${c}" as the namespace "${b}" 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!!!");if(null!=c&&""!==c){if(this.backend?.create){let h={...f,isUpdate:e},i=this.backend.create.bind(this.backend);if(i.length<6)try{let e;(e=5===i.length?i(a,b,c,d,h):i(a,b,c,d))&&"function"==typeof e.then?e.then(a=>g(null,a)).catch(g):g(null,e)}catch(a){g(a)}else i(a,b,c,d,g,h)}a&&a[0]&&this.store.addResource(a[0],b,c,d)}}}let M=()=>({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:a=>{let b={};if("object"==typeof a[1]&&(b=a[1]),c(a[1])&&(b.defaultValue=a[1]),c(a[2])&&(b.tDescription=a[2]),"object"==typeof a[2]||"object"==typeof a[3]){let c=a[3]||a[2];Object.keys(c).forEach(a=>{b[a]=c[a]})}return b},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),N=a=>(c(a.ns)&&(a.ns=[a.ns]),c(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),c(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),a.supportedLngs&&!a.supportedLngs.includes("cimode")&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),a),O=()=>{};class P extends u{constructor(a={},b){if(super(),this.options=N(a),this.services={},this.logger=t,this.modules={external:[]},(a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(b=>{"function"==typeof a[b]&&(a[b]=a[b].bind(a))})})(this),b&&!this.isInitialized&&!a.isClone){if(!this.options.initAsync)return this.init(a,b),this;setTimeout(()=>{this.init(a,b)},0)}}init(a={},b){this.isInitializing=!0,"function"==typeof a&&(b=a,a={}),null==a.defaultNS&&a.ns&&(c(a.ns)?a.defaultNS=a.ns:a.ns.includes("translation")||(a.defaultNS=a.ns[0]));let e=M();this.options={...e,...this.options,...N(a)},this.options.interpolation={...e.interpolation,...this.options.interpolation},void 0!==a.keySeparator&&(this.options.userDefinedKeySeparator=a.keySeparator),void 0!==a.nsSeparator&&(this.options.userDefinedNsSeparator=a.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=e.overloadTranslationOptionHandler);let f=a=>a?"function"==typeof a?new a:a:null;if(!this.options.isClone){let a;this.modules.logger?t.init(f(this.modules.logger),this.options):t.init(null,this.options),a=this.modules.formatter?this.modules.formatter:K;let b=new B(this.options);this.store=new v(this.options.resources,this.options);let c=this.services;c.logger=t,c.resourceStore=this.store,c.languageUtils=b,c.pluralResolver=new E(b,{prepend:this.options.pluralSeparator}),a&&(c.formatter=f(a),c.formatter.init&&c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new H(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new L(f(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",(a,...b)=>{this.emit(a,...b)}),this.modules.languageDetector&&(c.languageDetector=f(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=f(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new A(this.services,this.options),this.translator.on("*",(a,...b)=>{this.emit(a,...b)}),this.modules.external.forEach(a=>{a.init&&a.init(this)})}if(this.format=this.options.interpolation.format,b||(b=O),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[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(a=>{this[a]=(...b)=>this.store[a](...b)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(a=>{this[a]=(...b)=>(this.store[a](...b),this)});let g=d(),h=()=>{let a=(a,c)=>{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),g.resolve(c),b(a,c)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return a(null,this.t.bind(this));this.changeLanguage(this.options.lng,a)};return this.options.resources||!this.options.initAsync?h():setTimeout(h,0),g}loadResources(a,b=O){let d=b,e=c(a)?a:this.language;if("function"==typeof a&&(d=a),!this.options.resources||this.options.partialBundledLanguages){if(e?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return d();let a=[],b=b=>{b&&"cimode"!==b&&this.services.languageUtils.toResolveHierarchy(b).forEach(b=>{"cimode"!==b&&(a.includes(b)||a.push(b))})};e?b(e):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>b(a)),this.options.preload?.forEach?.(a=>b(a)),this.services.backendConnector.load(a,this.options.ns,a=>{a||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),d(a)})}else d(null)}reloadResources(a,b,c){let e=d();return"function"==typeof a&&(c=a,a=void 0),"function"==typeof b&&(c=b,b=void 0),a||(a=this.languages),b||(b=this.options.ns),c||(c=O),this.services.backendConnector.reload(a,b,a=>{e.resolve(),c(a)}),e}use(a){if(!a)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===a.type&&(this.modules.backend=a),("logger"===a.type||a.log&&a.warn&&a.error)&&(this.modules.logger=a),"languageDetector"===a.type&&(this.modules.languageDetector=a),"i18nFormat"===a.type&&(this.modules.i18nFormat=a),"postProcessor"===a.type&&w.addPostProcessor(a),"formatter"===a.type&&(this.modules.formatter=a),"3rdParty"===a.type&&this.modules.external.push(a),this}setResolvedLanguage(a){if(a&&this.languages&&!["cimode","dev"].includes(a)){for(let a=0;a<this.languages.length;a++){let b=this.languages[a];if(!["cimode","dev"].includes(b)&&this.store.hasLanguageSomeTranslations(b)){this.resolvedLanguage=b;break}}!this.resolvedLanguage&&!this.languages.includes(a)&&this.store.hasLanguageSomeTranslations(a)&&(this.resolvedLanguage=a,this.languages.unshift(a))}}changeLanguage(a,b){this.isLanguageChangingTo=a;let e=d();this.emit("languageChanging",a);let f=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},g=(c,d)=>{d?this.isLanguageChangingTo===a&&(f(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,e.resolve((...a)=>this.t(...a)),b&&b(c,(...a)=>this.t(...a))},h=b=>{a||b||!this.services.languageDetector||(b=[]);let d=c(b)?b:b&&b[0],e=this.store.hasLanguageSomeTranslations(d)?d:this.services.languageUtils.getBestMatchFromCodes(c(b)?[b]:b);e&&(this.language||f(e),this.translator.language||this.translator.changeLanguage(e),this.services.languageDetector?.cacheUserLanguage?.(e)),this.loadResources(e,a=>{g(a,e)})};return a||!this.services.languageDetector||this.services.languageDetector.async?!a&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(a):h(this.services.languageDetector.detect()),e}getFixedT(a,b,d,e){let f=e?.scopeNs,g=(a,b,...c)=>{let e,h;(e="object"!=typeof b?this.options.overloadTranslationOptionHandler([a,b].concat(c)):{...b}).lng=e.lng||g.lng,e.lngs=e.lngs||g.lngs;let i=void 0!==e.ns&&null!==e.ns;e.ns=e.ns||g.ns,""!==e.keyPrefix&&(e.keyPrefix=e.keyPrefix||d||g.keyPrefix);let j={...this.options,...e};Array.isArray(f)&&!i&&(j.ns=f),"function"==typeof e.keyPrefix&&(e.keyPrefix=y(e.keyPrefix,j));let k=this.options.keySeparator||".";return e.keyPrefix&&Array.isArray(a)?h=a.map(a=>("function"==typeof a&&(a=y(a,j)),`${e.keyPrefix}${k}${a}`)):("function"==typeof a&&(a=y(a,j)),h=e.keyPrefix?`${e.keyPrefix}${k}${a}`:a),this.t(h,e)};return c(a)?g.lng=a:g.lngs=a,g.ns=b,g.keyPrefix=d,g}t(...a){return this.translator?.translate(...a)}exists(...a){return this.translator?.exists(...a)}setDefaultNamespace(a){this.options.defaultNS=a}hasLoadedNamespace(a,b={}){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;let c=b.lng||this.resolvedLanguage||this.languages[0],d=!!this.options&&this.options.fallbackLng,e=this.languages[this.languages.length-1];if("cimode"===c.toLowerCase())return!0;let f=(a,b)=>{let c=this.services.backendConnector.state[`${a}|${b}`];return -1===c||0===c||2===c};if(b.precheck){let a=b.precheck(this,f);if(void 0!==a)return a}return!!(this.hasResourceBundle(c,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(c,a)&&(!d||f(e,a)))}loadNamespaces(a,b){let e=d();return this.options.ns?(c(a)&&(a=[a]),a.forEach(a=>{this.options.ns.includes(a)||this.options.ns.push(a)}),this.loadResources(a=>{e.resolve(),b&&b(a)}),e):(b&&b(),Promise.resolve())}loadLanguages(a,b){let e=d();c(a)&&(a=[a]);let f=this.options.preload||[],g=a.filter(a=>!f.includes(a)&&this.services.languageUtils.isSupportedCode(a));retur n g.length?(this.options.preload=f.concat(g),this.loadResources(a=>{e.resolve(),b&&b(a)}),e):(b&&b(),Promise.resolve())}dir(a){if(a||(a=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!a)return"rtl";try{let b=new Intl.Locale(a);if(b&&b.getTextInfo){let a=b.getTextInfo();if(a&&a.direction)return a.direction}}catch(a){}let b=this.services?.languageUtils||new B(M());return a.toLowerCase().indexOf("-latn")>1?"ltr":["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"].includes(b.getLanguagePartFromCode(a))||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(a={},b){let c=new P(a,b);return c.createInstance=P.createInstance,c}cloneInstance(a={},b=O){let c=a.forkResourceStore;c&&delete a.forkResourceStore;let d={...this.options,...a,isClone:!0},e=new P(d);if((void 0!==a.debug||void 0!==a.prefix)&&(e.logger=e.logger.clone(a)),["store","services","language"].forEach(a=>{e[a]=this[a]}),e.services={...this.services},e.services.utils={hasLoadedNamespace:e.hasLoadedNamespace.bind(e)},c&&(e.store=new v(Object.keys(this.store.data).reduce((a,b)=>(a[b]={...this.store.data[b]},a[b]=Object.keys(a[b]).reduce((c,d)=>(c[d]={...a[b][d]},c),a[b]),a),{}),d),e.services.resourceStore=e.store),a.interpolation){let b={...M().interpolation,...this.options.interpolation,...a.interpolation},c={...d,interpolation:b};e.services.interpolator=new H(c)}return e.translator=new A(e.services,d),e.translator.on("*",(a,...b)=>{e.emit(a,...b)}),e.init(d,b),e.translator.options=d,e.translator.backendConnector.services.utils={hasLoadedNamespace:e.hasLoadedNamespace.bind(e)},e}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let Q=P.createInstance();Q.createInstance,Q.dir,Q.init,Q.loadResources,Q.reloadResources,Q.use,Q.changeLanguage,Q.getFixedT,Q.t,Q.exists,Q.setDefaultNamespace,Q.hasLoadedNamespace,Q.loadNamespaces,Q.loadLanguages;var R=a.i(72131);Object.create(null);let S=(a,b,c,d)=>{let e=[c,{code:b,...d||{}}];if(a?.services?.logger?.forward)return a.services.logger.forward(e,"warn","react-i18next::",!0);Y(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),a?.services?.logger?.warn?a.services.logger.warn(...e):console?.warn&&console.warn(...e)},T={},U=(a,b,c,d)=>{Y(c)&&T[c]||(Y(c)&&(T[c]=new Date),S(a,b,c,d))},V=(a,b)=>()=>{if(a.isInitialized)b();else{let c=()=>{setTimeout(()=>{a.off("initialized",c)},0),b()};a.on("initialized",c)}},W=(a,b,c)=>{a.loadNamespaces(b,V(a,c))},X=(a,b,c,d)=>{if(Y(c)&&(c=[c]),a.options.preload&&a.options.preload.indexOf(b)>-1)return W(a,c,d);c.forEach(b=>{0>a.options.ns.indexOf(b)&&a.options.ns.push(b)}),a.loadLanguages(b,V(a,d))},Y=a=>"string"==typeof a,Z=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,$={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},_=a=>$[a],aa={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:a=>a.replace(Z,_),transDefaultProps:void 0},ab={type:"3rdParty",init(a){((a={})=>{aa={...aa,...a}})(a.options.react),b=a}},ac=(0,R.createContext)();class ad{constructor(){this.usedNamespaces={}}addUsedNamespaces(a){a.forEach(a=>{this.usedNamespaces[a]||(this.usedNamespaces[a]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}let ae={" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'","©":"©","®":"®","™":"™","…":"…","–":"– ","—":"—","‘":"‘ ","’":"’ ","‚":"‚ ","“":"“","”":"”","„":"„","†":"†","‡":"‡","•":"•","′":"′ ","″":"″","‹":"‹ ","›":"› ","§":"§","¶":"¶","·":"·"," ":" "," ":" "," ":" ","€":"€","£":"£","¥":"¥","¢":"¢","¤":"¤","×":"× ","÷":"÷","−":"− ","±":"±","≠":"≠","≤":"≤","≥":"≥","≈":"≈","≡":"≡","∞":"∞","∫":"∫","∑":"∑","∏":"∏","√":"√","∂":"∂","‰":"‰","°":"°","µ":"µ","←":"←","↑":"↑","→":"→","↓":"↓","↔":"↔","↵":"↵","⇐":"⇐","⇑":"⇑","⇒":"⇒","⇓":"⇓","⇔":"⇔","α":"α ","β":"β","γ":"γ ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι ","κ":"κ","λ":"λ","μ":"μ","ν":"ν ","ξ":"ξ","ο":"ο ","π":"π","ρ":"ρ ","σ":"σ ","τ":"τ","υ":"υ ","φ":"φ","χ":"χ","ψ":"ψ","ω":"ω","Α":"Α ","Β":"Β ","Γ":"Γ","Δ":"Δ","Ε":"Ε ","Ζ":"Ζ ","Η":"Η ","Θ":"Θ","Ι":"Ι ","Κ":"Κ ","Λ":"Λ","Μ":"Μ ","Ν":"Ν ","Ξ":"Ξ","Ο":"Ο ","Π":"Π","Ρ":"Ρ ","Σ":"Σ","Τ":"Τ ","Υ":"Υ ","Φ":"Φ","Χ":"Χ ","Ψ":"Ψ","Ω":"Ω","À":"À","Á":"Á","Â":"Â","Ã":"Ã","Ä":"Ä","Å":"Å","Æ":"Æ","Ç":"Ç","È":"È","É":"É","Ê":"Ê","Ë":"Ë","Ì":"Ì","Í":"Í","Î":"Î","Ï":"Ï","Ð":"Ð","Ñ":"Ñ","Ò":"Ò","Ó":"Ó","Ô":"Ô","Õ":"Õ","Ö":"Ö","Ø":"Ø","Ù":"Ù","Ú":"Ú","Û":"Û","Ü":"Ü","Ý":"Ý","Þ":"Þ","ß":"ß","à":"à","á":"á","â":"â","ã":"ã","ä":"ä","å":"å","æ":"æ","ç":"ç","è":"è","é":"é","ê":"ê","ë":"ë","ì":"ì","í":"í","î":"î","ï":"ï","ð":"ð","ñ":"ñ","ò":"ò","ó":"ó","ô":"ô","õ":"õ","ö":"ö","ø":"ø","ù":"ù","ú":"ú","û":"û","ü":"ü","ý":"ý","þ":"þ","ÿ":"ÿ","¡":"¡","¿":"¿","ƒ":"ƒ","ˆ":"ˆ ","˜":"˜ ","Œ":"Œ","œ":"œ","Š":"Š","š":"š","Ÿ":"Ÿ","ª":"ª","º":"º","¯":"¯","´":"´ ","¸":"¸ ","¹":"¹","²":"²","³":"³","¼":"¼","½":"½","¾":"¾","♠":"♠","♣":"♣","♥":"♥","♦":"♦","◊":"◊","‾":"‾","⁄":"⁄ ","℘":"℘","ℑ":"ℑ ","ℜ":"ℜ ","ℵ":"ℵ"},af=RegExp(Object.keys(ae).map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");var ag=a.i(87610);let ah={t:(a,b)=>{let c;if(Y(b))return b;if("object"==typeof(c=b)&&null!==c&&Y(b.defaultValue))return b.defaultValue;if("function"==typeof a)return"";if(Array.isArray(a)){let b=a[a.length-1];return"function"==typeof b?"":b}return a},ready:!1},ai=()=>()=>{};a.s(["useTranslation",0,(a,c={})=>{let{i18n:d}=c,{i18n:e,defaultNS:f}=(0,R.useContext)(ac)||{},g=d||e||b;g&&!g.reportNamespaces&&(g.reportNamespaces=new ad),g||U(g,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");let h=(0,R.useMemo)(()=>({...aa,...g?.options?.react,...c}),[g,c]),{useSuspense:i,keyPrefix:j}=h,k=a||f||g?.options?.defaultNS,l=Y(k)?[k]:k||["translation"],m=(0,R.useMemo)(()=>l,l);g?.reportNamespaces?.addUsedNamespaces?.(m);let n=(0,R.useRef)(0),o=(0,R.useCallback)(a=>{if(!g)return ai;let{bindI18n:b,bindI18nStore:c}=h,d=()=>{n.current+=1,a()};return b&&g.on(b,d),c&&g.store.on(c,d), ()=>{b&&b.split(" ").forEach(a=>g.off(a,d)),c&&c.split(" ").forEach(a=>g.store.off(a,d))}},[g,h]),p=(0,R.useRef)(),q=(0,R.useCallback)(()=>{if(!g)return ah;let a=!!(g.isInitialized||g.initializedStoreOnce)&&m.every(a=>((a,b,c={})=>b.languages&&b.languages.length?b.hasLoadedNamespace(a,{lng:c.lng,precheck:(b,d)=>{if(c.bindI18n&&c.bindI18n.indexOf("languageChanging")>-1&&b.services.backendConnector.backend&&b.isLanguageChangingTo&&!d(b.isLanguageChangingTo,a))return!1}}):(U(b,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:b.languages}),!0))(a,g,h)),b=c.lng||g.language,d=n.current,e=p.current;if(e&&e.ready===a&&e.lng===b&&e.keyPrefix===j&&e.revision===d)return e;let f={t:g.getFixedT(b,"fallback"===h.nsMode?m:m[0],j,{scopeNs:m}),ready:a,lng:b,keyPrefix:j,revision:d};return p.current=f,f},[g,m,j,h,c.lng]),[r,s]=(0,R.useState)(0),{t,ready:u}=(0,ag.useSyncExternalStore)(o,q,q);(0,R.useEffect)(()=>{if(g&&!u&&!i){let a=()=>s(a=>a+1);c.lng?X(g,c.lng,m,a):W(g,m,a)}},[g,c.lng,m,u,i,r]);let v=g||{},w=(0,R.useRef)(null),x=(0,R.useRef)(),y=a=>{let b=Object.getOwnPropertyDescriptors(a);b.__original&&delete b.__original;let c=Object.create(Object.getPrototypeOf(a),b);if(!Object.prototype.hasOwnProperty.call(c,"__original"))try{Object.defineProperty(c,"__original",{value:a,writable:!1,enumerable:!1,configurable:!1})}catch(a){}return c},z=(0,R.useMemo)(()=>{let a=v?.language,b=v;w.current&&w.current.__original===v?x.current!==a?(w.current=b=y(v),x.current=a):b=w.current:(w.current=b=y(v),x.current=a);let c=u||i?t:(...a)=>(U(g,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),t(...a)),d=[c,b,u];return d.t=c,d.i18n=b,d.ready=u,d},[t,v,u,v.resolvedLanguage,v.language,v.languages]);if(g&&i&&!u)throw new Promise(a=>{let b=()=>a();c.lng?X(g,c.lng,m,b):W(g,m,b)});return z}],78134),a.s([],2407);var aj=a.i(62513),ak=a.i(48813);let al=!1;a.s(["initI18n",0,function(a){return al?a&&Q.language!==a&&Q.changeLanguage(a):(al=!0,Q.use(ab).init({resources:{zh:{translation:aj.default},en:{translation:ak.default}},lng:a||"zh",fallbackLng:"zh",interpolation:{escapeValue:!1},react:{useSuspense:!1},initImmediate:!1})),Q},"setAppLanguage",0,function(a){return Q.changeLanguage(a)}],84341)},47349,(a,b,c)=>{"use strict";var d=a.r(72131);d.useState,d.useEffect,d.useLayoutEffect,d.useDebugValue,c.useSyncExternalStore=void 0!==d.useSyncExternalStore?d.useSyncExternalStore:function(a,b){return b()}},87610,(a,b,c)=>{"use strict";b.exports=a.r(47349)}];