aquasis-fe-components 1.3.2-aa → 1.3.2-ac
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.
|
@@ -70083,8 +70083,10 @@ const aNe = async () => {
|
|
|
70083
70083
|
infinite: !1,
|
|
70084
70084
|
ref: t,
|
|
70085
70085
|
afterChange: e,
|
|
70086
|
-
|
|
70087
|
-
|
|
70086
|
+
onReInit: () => {
|
|
70087
|
+
var d;
|
|
70088
|
+
return (d = t.current) == null ? void 0 : d.goTo((i == null ? void 0 : i.length) - 1);
|
|
70089
|
+
},
|
|
70088
70090
|
adaptiveHeight: !0,
|
|
70089
70091
|
children: s.map(({ key: d, name: f, ...m }) => {
|
|
70090
70092
|
var h, g;
|
|
@@ -1066,4 +1066,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1066
1066
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[RI]=this[RI]={accessors:{}}).accessors,a=this.prototype;function o(i){const c=vc(i);r[c]||(zEe(a,i),r[c]=!0)}return Oe.isArray(t)?t.forEach(o):o(t),this}}w1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Oe.reduceDescriptors(w1.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),Oe.freezeMethods(w1);function Cf(e,t){const n=this||hc,r=t||n,a=w1.from(r.headers);let o=r.data;return Oe.forEach(e,function(c){o=c.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function kI(e){return!!(e&&e.__CANCEL__)}function Eo(e,t,n){Bt.call(this,e??"canceled",Bt.ERR_CANCELED,t,n),this.name="CanceledError"}Oe.inherits(Eo,Bt,{__CANCEL__:!0});function DI(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Bt("Request failed with status code "+n.status,[Bt.ERR_BAD_REQUEST,Bt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function EEe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function NEe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const s=Date.now(),d=r[o];i||(i=s),n[a]=l,r[a]=s;let f=o,m=0;for(;f!==a;)m+=n[f++],f=f%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),s-i<t)return;const p=d&&s-d;return p?Math.round(m*1e3/p):void 0}}function $Ee(e,t){let n=0,r=1e3/t,a,o;const i=(s,d=Date.now())=>{n=d,a=null,o&&(clearTimeout(o),o=null),e.apply(null,s)};return[(...s)=>{const d=Date.now(),f=d-n;f>=r?i(s,d):(a=s,o||(o=setTimeout(()=>{o=null,i(a)},r-f)))},()=>a&&i(a)]}const Gs=(e,t,n=3)=>{let r=0;const a=NEe(50,250);return $Ee(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,l=i-r,s=a(l),d=i<=c;r=i;const f={loaded:i,total:c,progress:c?i/c:void 0,bytes:l,rate:s||void 0,estimated:s&&c&&d?(c-i)/s:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(f)},n)},_I=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},AI=e=>(...t)=>Oe.asap(()=>e(...t)),OEe=x1.hasStandardBrowserEnv?function(){const t=x1.navigator&&/(msie|trident)/i.test(x1.navigator.userAgent),n=document.createElement("a");let r;function a(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(i){const c=Oe.isString(i)?a(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),PEe=x1.hasStandardBrowserEnv?{write(e,t,n,r,a,o){const i=[e+"="+encodeURIComponent(t)];Oe.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),Oe.isString(r)&&i.push("path="+r),Oe.isString(a)&&i.push("domain="+a),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function IEe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TEe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function FI(e,t){return e&&!IEe(t)?TEe(e,t):t}const jI=e=>e instanceof w1?{...e}:e;function pa(e,t){t=t||{};const n={};function r(s,d,f){return Oe.isPlainObject(s)&&Oe.isPlainObject(d)?Oe.merge.call({caseless:f},s,d):Oe.isPlainObject(d)?Oe.merge({},d):Oe.isArray(d)?d.slice():d}function a(s,d,f){if(Oe.isUndefined(d)){if(!Oe.isUndefined(s))return r(void 0,s,f)}else return r(s,d,f)}function o(s,d){if(!Oe.isUndefined(d))return r(void 0,d)}function i(s,d){if(Oe.isUndefined(d)){if(!Oe.isUndefined(s))return r(void 0,s)}else return r(void 0,d)}function c(s,d,f){if(f in t)return r(s,d);if(f in e)return r(void 0,s)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(s,d)=>a(jI(s),jI(d),!0)};return Oe.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||a,m=f(e[d],t[d],d);Oe.isUndefined(m)&&f!==c||(n[d]=m)}),n}const BI=e=>{const t=pa({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=w1.from(i),t.url=OI(FI(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let l;if(Oe.isFormData(n)){if(x1.hasStandardBrowserEnv||x1.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[s,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([s||"multipart/form-data",...d].join("; "))}}if(x1.hasStandardBrowserEnv&&(r&&Oe.isFunction(r)&&(r=r(t)),r||r!==!1&&OEe(t.url))){const s=a&&o&&PEe.read(o);s&&i.set(a,s)}return t},REe=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const a=BI(e);let o=a.data;const i=w1.from(a.headers).normalize();let{responseType:c,onUploadProgress:l,onDownloadProgress:s}=a,d,f,m,p,h;function v(){p&&p(),h&&h(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(a.method.toUpperCase(),a.url,!0),g.timeout=a.timeout;function C(){if(!g)return;const y=w1.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),S={data:!c||c==="text"||c==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:y,config:e,request:g};DI(function(L){n(L),v()},function(L){r(L),v()},S),g=null}"onloadend"in g?g.onloadend=C:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(C)},g.onabort=function(){g&&(r(new Bt("Request aborted",Bt.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new Bt("Network Error",Bt.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let x=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||II;a.timeoutErrorMessage&&(x=a.timeoutErrorMessage),r(new Bt(x,S.clarifyTimeoutError?Bt.ETIMEDOUT:Bt.ECONNABORTED,e,g)),g=null},o===void 0&&i.setContentType(null),"setRequestHeader"in g&&Oe.forEach(i.toJSON(),function(x,S){g.setRequestHeader(S,x)}),Oe.isUndefined(a.withCredentials)||(g.withCredentials=!!a.withCredentials),c&&c!=="json"&&(g.responseType=a.responseType),s&&([m,h]=Gs(s,!0),g.addEventListener("progress",m)),l&&g.upload&&([f,p]=Gs(l),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(d=y=>{g&&(r(!y||y.type?new Eo(null,e,g):y),g.abort(),g=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const b=EEe(a.url);if(b&&x1.protocols.indexOf(b)===-1){r(new Bt("Unsupported protocol "+b+":",Bt.ERR_BAD_REQUEST,e));return}g.send(o||null)})},kEe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const o=function(s){if(!a){a=!0,c();const d=s instanceof Error?s:this.reason;r.abort(d instanceof Bt?d:new Eo(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,o(new Bt(`timeout ${t} of ms exceeded`,Bt.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(s=>{s.unsubscribe?s.unsubscribe(o):s.removeEventListener("abort",o)}),e=null)};e.forEach(s=>s.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>Oe.asap(c),l}},DEe=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},_Ee=async function*(e,t){for await(const n of AEe(e))yield*DEe(n,t)},AEe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},HI=(e,t,n,r)=>{const a=_Ee(e,t);let o=0,i,c=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:s,value:d}=await a.next();if(s){c(),l.close();return}let f=d.byteLength;if(n){let m=o+=f;n(m)}l.enqueue(new Uint8Array(d))}catch(s){throw c(s),s}},cancel(l){return c(l),a.return()}},{highWaterMark:2})},Ys=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",VI=Ys&&typeof ReadableStream=="function",FEe=Ys&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),WI=(e,...t)=>{try{return!!e(...t)}catch{return!1}},jEe=VI&&WI(()=>{let e=!1;const t=new Request(x1.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),KI=64*1024,yf=VI&&WI(()=>Oe.isReadableStream(new Response("").body)),Xs={stream:yf&&(e=>e.body)};Ys&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Xs[t]&&(Xs[t]=Oe.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Bt(`Response type '${t}' is not supported`,Bt.ERR_NOT_SUPPORT,r)})})})(new Response);const BEe=async e=>{if(e==null)return 0;if(Oe.isBlob(e))return e.size;if(Oe.isSpecCompliantForm(e))return(await new Request(x1.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Oe.isArrayBufferView(e)||Oe.isArrayBuffer(e))return e.byteLength;if(Oe.isURLSearchParams(e)&&(e=e+""),Oe.isString(e))return(await FEe(e)).byteLength},HEe=async(e,t)=>{const n=Oe.toFiniteNumber(e.getContentLength());return n??BEe(t)},Sf={http:sEe,xhr:REe,fetch:Ys&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:l,responseType:s,headers:d,withCredentials:f="same-origin",fetchOptions:m}=BI(e);s=s?(s+"").toLowerCase():"text";let p=kEe([a,o&&o.toAbortSignal()],i),h;const v=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(l&&jEe&&n!=="get"&&n!=="head"&&(g=await HEe(d,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),w;if(Oe.isFormData(r)&&(w=S.headers.get("content-type"))&&d.setContentType(w),S.body){const[L,M]=_I(g,Gs(AI(l)));r=HI(S.body,KI,L,M)}}Oe.isString(f)||(f=f?"include":"omit");const C="credentials"in Request.prototype;h=new Request(t,{...m,signal:p,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:C?f:void 0});let b=await fetch(h);const y=yf&&(s==="stream"||s==="response");if(yf&&(c||y&&v)){const S={};["status","statusText","headers"].forEach(z=>{S[z]=b[z]});const w=Oe.toFiniteNumber(b.headers.get("content-length")),[L,M]=c&&_I(w,Gs(AI(c),!0))||[];b=new Response(HI(b.body,KI,L,()=>{M&&M(),v&&v()}),S)}s=s||"text";let x=await Xs[Oe.findKey(Xs,s)||"text"](b,e);return!y&&v&&v(),await new Promise((S,w)=>{DI(S,w,{data:x,headers:w1.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:h})})}catch(C){throw v&&v(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new Bt("Network Error",Bt.ERR_NETWORK,e,h),{cause:C.cause||C}):Bt.from(C,C&&C.code,e,h)}})};Oe.forEach(Sf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const UI=e=>`- ${e}`,VEe=e=>Oe.isFunction(e)||e===null||e===!1,qI={getAdapter:e=>{e=Oe.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!VEe(n)&&(r=Sf[(i=String(n)).toLowerCase()],r===void 0))throw new Bt(`Unknown adapter '${i}'`);if(r)break;a[i||"#"+o]=r}if(!r){const o=Object.entries(a).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
|
1067
1067
|
`+o.map(UI).join(`
|
|
1068
1068
|
`):" "+UI(o[0]):"as no adapter specified";throw new Bt("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Sf};function xf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Eo(null,e)}function GI(e){return xf(e),e.headers=w1.from(e.headers),e.data=Cf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),qI.getAdapter(e.adapter||hc.adapter)(e).then(function(r){return xf(e),r.data=Cf.call(e,e.transformResponse,r),r.headers=w1.from(r.headers),r},function(r){return kI(r)||(xf(e),r&&r.response&&(r.response.data=Cf.call(e,e.transformResponse,r.response),r.response.headers=w1.from(r.response.headers))),Promise.reject(r)})}const YI="1.7.7",wf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wf[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const XI={};wf.transitional=function(t,n,r){function a(o,i){return"[Axios v"+YI+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new Bt(a(i," has been removed"+(n?" in "+n:"")),Bt.ERR_DEPRECATED);return n&&!XI[i]&&(XI[i]=!0,console.warn(a(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function WEe(e,t,n){if(typeof e!="object")throw new Bt("options must be an object",Bt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],i=t[o];if(i){const c=e[o],l=c===void 0||i(c,o,e);if(l!==!0)throw new Bt("option "+o+" must be "+l,Bt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Bt("Unknown option "+o,Bt.ERR_BAD_OPTION)}}const Lf={assertOptions:WEe,validators:wf},P2=Lf.validators;class ga{constructor(t){this.defaults=t,this.interceptors={request:new PI,response:new PI}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const o=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
1069
|
-
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pa(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Lf.assertOptions(r,{silentJSONParsing:P2.transitional(P2.boolean),forcedJSONParsing:P2.transitional(P2.boolean),clarifyTimeoutError:P2.transitional(P2.boolean)},!1),a!=null&&(Oe.isFunction(a)?n.paramsSerializer={serialize:a}:Lf.assertOptions(a,{encode:P2.function,serialize:P2.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&Oe.merge(o.common,o[n.method]);o&&Oe.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=w1.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,c.unshift(v.fulfilled,v.rejected))});const s=[];this.interceptors.response.forEach(function(v){s.push(v.fulfilled,v.rejected)});let d,f=0,m;if(!l){const h=[GI.bind(this),void 0];for(h.unshift.apply(h,c),h.push.apply(h,s),m=h.length,d=Promise.resolve(n);f<m;)d=d.then(h[f++],h[f++]);return d}m=c.length;let p=n;for(f=0;f<m;){const h=c[f++],v=c[f++];try{p=h(p)}catch(g){v.call(this,g);break}}try{d=GI.call(this,p)}catch(h){return Promise.reject(h)}for(f=0,m=s.length;f<m;)d=d.then(s[f++],s[f++]);return d}getUri(t){t=pa(this.defaults,t);const n=FI(t.baseURL,t.url);return OI(n,t.params,t.paramsSerializer)}}Oe.forEach(["delete","get","head","options"],function(t){ga.prototype[t]=function(n,r){return this.request(pa(r||{},{method:t,url:n,data:(r||{}).data}))}}),Oe.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(pa(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}ga.prototype[t]=n(),ga.prototype[t+"Form"]=n(!0)});class Mf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(a);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new Eo(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Mf(function(a){t=a}),cancel:t}}}function KEe(e){return function(n){return e.apply(null,n)}}function UEe(e){return Oe.isObject(e)&&e.isAxiosError===!0}const zf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(zf).forEach(([e,t])=>{zf[t]=e});function QI(e){const t=new ga(e),n=pI(ga.prototype.request,t);return Oe.extend(n,ga.prototype,t,{allOwnKeys:!0}),Oe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return QI(pa(e,a))},n}const _n=QI(hc);_n.Axios=ga,_n.CanceledError=Eo,_n.CancelToken=Mf,_n.isCancel=kI,_n.VERSION=YI,_n.toFormData=Us,_n.AxiosError=Bt,_n.Cancel=_n.CanceledError,_n.all=function(t){return Promise.all(t)},_n.spread=KEe,_n.isAxiosError=UEe,_n.mergeConfig=pa,_n.AxiosHeaders=w1,_n.formToJSON=e=>TI(Oe.isHTMLForm(e)?new FormData(e):e),_n.getAdapter=qI.getAdapter,_n.HttpStatusCode=zf,_n.default=_n;const I2=_n.create({timeout:6e4});I2.interceptors.request.use(e=>{const t=M2(W1.Token);return e.headers.IdApp=Z2e(),e.headers.Tenantid=J2e(),e.headers.Authorization="Bearer "+t,e},e=>Promise.reject(e));const JI="https://aquasis.freshdesk.com/api/v2/",ZI=btoa("UtA4JWhMo8w4eWzzgo9"),qEe=async({appName:e,...t})=>{var l;const n=+"23000031142",{data:r}=await I2.get(JI+"ticket_fields",{headers:{Authorization:`Basic ${ZI}`}}),a=r.find(s=>s.name==="cf_produto"),o=(l=a==null?void 0:a.choices)==null?void 0:l.find(s=>s.toLowerCase().includes(e.toLowerCase())),i={...t,status:2,priority:4,group_id:n,type:"Pedido de Suporte",custom_fields:{cf_produto:o},tags:["new-freshdesk-widget"],source:9},c=new FormData;return Object.keys(i).forEach(s=>{var d;s==="custom_fields"?Object.keys(i[s]).forEach(f=>{c.append(`custom_fields[${f}]`,i.custom_fields[f])}):s==="attachments"?(d=t.attachments)==null||d.forEach(f=>{c.append("attachments[]",new File([f],f.name))}):s==="tags"?c.append("tags[]",i[s]):c.append(s,i[s])}),I2.post(JI+"tickets",c,{headers:{Authorization:`Basic ${ZI}`,"Content-Type":"multipart/form-data"}})},GEe={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376l0 103.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},{Title:eT}=vo,er="HELPDESK.FORM",YEe="GENERAL.MESSAGES",XEe=({onCancel:e})=>{const[t,n]=O.useState(!1),[r]=en.useForm(),{t:a}=r2(),{requiredField:o}=js(),i=M2(W1.AppName),c=[{dataIndex:"field",title:a("HELPDESK.TABLE.FIELD"),render:d=>a(`HELPDESK.FORM.FIELDS.${d.toUpperCase()}`)},{dataIndex:"code",title:a("HELPDESK.TABLE.CODE"),render:d=>a(`HELPDESK.ERRORS_CODE.${d.toUpperCase()}`)}],l=d=>{r.setFieldValue(fa.Attachments,d.fileList)},s=d=>{n(!0);const f={...d,appName:i};qEe(f).then(()=>{Yi.success({message:a(`${YEe}.SUCCESS.TICKET`),placement:"topLeft"}),e&&e()}).catch(({response:m})=>{const{errors:p}=m.data;Yi.error({className:"table-notification",message:a("ERROR"),placement:"topLeft",description:be.jsx(Pr,{dataSource:p,columns:c,pagination:{defaultPageSize:5},rowKey:"field",size:"small",bordered:!0}),duration:0})}).finally(()=>n(!1))};return be.jsxs(y1,{className:"helpdesk__content",children:[be.jsx(Ln,{span:24,children:be.jsx(eT,{level:3,className:"helpdesk__title",children:a(`${er}.TITLE`)})}),be.jsx(Ln,{span:24,children:be.jsxs(ta,{children:[be.jsx(eT,{level:4,children:a(`${er}.FIELDS.TITLE`)}),be.jsxs(en,{form:r,layout:"vertical",onFinish:s,children:[be.jsx(br,{fieldName:fa.Name,label:a(`${er}.FIELDS.NAME`),placeholder:a(`${er}.FIELDS.NAME`,{context:"PLACEHOLDER"}),rules:o}),be.jsx(br,{fieldName:fa.Email,label:a(`${er}.FIELDS.EMAIL`),placeholder:a(`${er}.FIELDS.EMAIL`,{context:"PLACEHOLDER"}),rules:o}),be.jsx(br,{fieldName:fa.Subject,label:a(`${er}.FIELDS.SUBJECT`),placeholder:a(`${er}.FIELDS.SUBJECT`,{context:"PLACEHOLDER"}),rules:o}),be.jsx(wze,{fieldName:fa.Description,label:a(`${er}.FIELDS.DESCRIPTION`),placeholder:a(`${er}.FIELDS.DESCRIPTION`,{context:"PLACEHOLDER"}),rows:4,rules:o}),be.jsx(en.Item,{name:fa.Attachments,children:be.jsxs(cs,{beforeUpload:()=>!1,maxCount:5,onChange:l,className:"helpdesk__fields-files",multiple:!0,children:[be.jsx("p",{className:"ant-upload-drag-icon",children:be.jsx(Tu,{})}),be.jsx(fI,{i18nKey:a(`${er}.FIELDS.UPLOAD_FILES`),components:{strong:be.jsx("strong",{}),br:be.jsx("br",{}),small:be.jsx("small",{})}})]})}),be.jsx(dn,{htmlType:"submit",type:"primary",icon:be.jsx(vr,{icon:GEe}),loading:t,disabled:t,block:!0,children:a(`${er}.BUTTONS.SEND`)})]})]})})]})};eie.add(xMe);const QEe=({size:e})=>{const[t,n]=O.useState(!1),{t:r}=r2(),a=()=>n(c=>!c),o=()=>n(!1),i=()=>{switch(e){case"small":return"1x";case"large":return"xl";default:return"lg"}};return be.jsx(nw,{children:be.jsx(y1,{align:"middle",children:be.jsx(Xl,{placement:"bottomRight",trigger:"click",content:be.jsx(XEe,{onCancel:o}),rootClassName:"helpdesk__container",overlayInnerStyle:{padding:0},arrow:!1,open:t,destroyTooltipOnHide:!0,children:be.jsx(c1,{title:r("HELPDESK.SUPPORT"),placement:"left",children:be.jsx(dn,{type:"primary",shape:"circle",icon:be.jsx(vr,{icon:dz,size:i()}),onClick:a,size:e})})})})})},JEe=C3()(QEe);var Vt=(e=>(e.App="idApp",e.Version="version",e.DeployDate="releaseDate",e.ReleasePages="gaReleasePages",e.Fields="gaReleasePagesContent",e.Title="title",e.Description="description",e.Image="idFile",e.Order="order",e.NoImage="noImage",e))(Vt||{}),Ef=(e=>(e.GetApps="GetApps",e.GetReleases="GetReleases",e.GetUser="GetUser",e))(Ef||{});const ZEe=async()=>{const e=window.globalAuthUrl,{data:t}=await I2.get(`${e}/getApps`);return t},eNe=async e=>{const t=window.globalAuthUrl,{data:n}=await I2.post(`${t}/ListReleases`,e);return n},tNe=async e=>{const t=window.globalAuthUrl,{data:n}=await I2.post(`${t}/MaintainReleases`,e);return n},nNe=async(e,t)=>{const n=window.globalAuthUrl,{data:r}=await I2.post(`${n}/ReadNotification`,{idRelease:e,userId:t});return r},tT=()=>E7([Ef.GetApps],async()=>await ZEe()),rNe=e=>{const{idApp:t,userId:n,lastDeployed:r}=e;return E7([Ef.GetReleases,t,n,r],async()=>await eNe(e),{enabled:!!t})},aNe=({index:e})=>{const{t}=r2(),{requiredField:n}=js();return be.jsx(en.List,{name:[e,Vt.Fields],children:(r,{add:a,remove:o})=>be.jsxs(be.Fragment,{children:[be.jsx(Bs,{fieldName:"idReleasePage",hidden:!0}),be.jsxs(pr,{gap:16,vertical:!0,children:[r.map(({key:i,name:c,...l})=>be.jsxs(pr,{gap:6,align:"center",children:[be.jsxs(pr,{vertical:!0,gap:2,style:{width:"100%"},children:[be.jsx(en.Item,{...l,name:[c,Vt.Title],rules:n,noStyle:!0,children:be.jsx(zr,{placeholder:t("RELEASE-NOTES.FORM.FIELDS.TITLE"),maxLength:500})}),be.jsx(en.Item,{...l,name:[c,Vt.Description],rules:n,noStyle:!0,children:be.jsx(du,{autoSize:{minRows:2},placeholder:t("RELEASE-NOTES.FORM.FIELDS.DESCRIPTION")})})]}),be.jsx(en.Item,{noStyle:!0,children:be.jsx(c1,{title:t("GENERAL.REMOVE"),children:be.jsx(dn,{type:"text",icon:be.jsx(bS,{}),onClick:()=>o(c),disabled:r.length===1})})})]},i)),be.jsx(en.Item,{children:be.jsx(dn,{type:"dashed",onClick:()=>a(),icon:be.jsx(S0,{}),block:!0,children:t("RELEASE-NOTES.FORM.ADD_NEW_FIELD")})})]})]})})},oNe=O.forwardRef(({changeSlide:e},t)=>{const[n,r]=O.useState([]),{t:a}=r2(),o=en.useFormInstance(),i=en.useWatch(Vt.ReleasePages,o),c=s=>({file:d,fileList:f})=>{const m=s[0],p=s[1],h=i[m];r(f),Kx(d.originFileObj,v=>{o.setFieldValue(Vt.ReleasePages,i.toSpliced(m,1,{...h,[p]:v}))})},l=be.jsx(y1,{justify:"center",align:"middle",children:be.jsxs(k0,{direction:"vertical",children:[be.jsx("p",{className:"ant-upload-drag-icon",children:be.jsx(Tu,{})}),be.jsx("p",{className:"ant-upload-text",children:a("GENERAL.UPLOAD_LABEL")}),be.jsx("p",{className:"ant-upload-hint",children:a("GENERAL.JPG_PNG_WARNING")})]})});return be.jsx(en.List,{name:Vt.ReleasePages,children:s=>be.jsxs(be.Fragment,{children:[be.jsx(Bs,{fieldName:"idRelease",hidden:!0}),be.jsx(Bs,{fieldName:"idReleasePage",hidden:!0}),be.jsx(X8,{infinite:!1,ref:t,afterChange:e,onInit:()=>t.current.goTo(0),onReInit:()=>t.current.goTo(i==null?void 0:i.length),adaptiveHeight:!0,children:s.map(({key:d,name:f,...m})=>{var v,g;const p=(v=i==null?void 0:i[f])==null?void 0:v[Vt.Image],h=(g=i==null?void 0:i[f])==null?void 0:g[Vt.NoImage];return be.jsx("div",{children:be.jsxs(y1,{gutter:[8,16],style:{marginBottom:35},justify:"end",children:[be.jsx(Ln,{span:24,children:be.jsxs(y1,{gutter:8,children:[be.jsx(Ln,{span:h?24:12,children:be.jsx(aNe,{index:f})}),!h&&be.jsx(Ln,{span:12,children:be.jsx(ta,{bordered:!0,styles:{body:{display:"flex",justifyContent:"center",padding:2}},children:be.jsx(en.Item,{...m,name:[f,Vt.Image],noStyle:!0,children:be.jsx(cs,{listType:"picture",className:"release-notes-image",showUploadList:!1,fileList:n,beforeUpload:eae,onChange:c([f,Vt.Image]),children:p?be.jsx(B0,{src:p,preview:!1,style:{maxHeight:600}}):l})})})})]})}),be.jsx(Ln,{span:12,children:be.jsx(pr,{justify:"center",children:be.jsx(xze,{fieldName:[f,Vt.NoImage],label:a("GENERAL.DO_NOT_USE_IMAGE"),onChange:C=>{const b=C.target.checked,y=i.map((x,S)=>({...x,[Vt.NoImage]:S===f?b:x[Vt.NoImage],[Vt.Image]:S===f&&b?void 0:x[Vt.Image]}));o.setFieldValue(Vt.ReleasePages,y)}})})})]})},d)})})]})})}),a2="RELEASE-NOTES",iNe=({addBtnLabel:e,addBtnTooltipText:t,release2edit:n,beforeOpenModal:r,beforeCloseModal:a,afterSubmit:o})=>{const[i,c]=O.useState(!1),[l,s]=O.useState(!1),[d,f]=O.useState(0),[m]=en.useForm(),{t:p}=r2(),h=Fs(),{getColor:v}=Cze(),g=O.useRef(null),{requiredField:C}=js(),{data:b}=tT(),y=en.useWatch(Vt.ReleasePages,m),x=A=>f(A),S=()=>m.resetFields();O.useEffect(()=>{n&&(c(!0),m.setFieldsValue({...n,[Vt.ReleasePages]:n[Vt.ReleasePages].map(A=>({...A,[Vt.Image]:L5(A[Vt.Image])})),[Vt.DeployDate]:Qn(n[Vt.DeployDate])}))},[n]);const w=()=>{r?new Promise(A=>A(r())).then(()=>c(!0)):c(!0)},L=()=>{a?new Promise(A=>A(a())).then(()=>c(!1)):c(!1)},M=()=>{m.setFieldValue(Vt.ReleasePages,[...y,{[Vt.Fields]:[{}]}])},z=()=>{m.setFieldValue(Vt.ReleasePages,y.filter((A,_)=>_!==d))},E=A=>{const _={...A,[Vt.DeployDate]:Qn(A[Vt.DeployDate]).format(ZR),[Vt.ReleasePages]:A[Vt.ReleasePages].map((F,V)=>({...F,[Vt.Image]:Ux(F[Vt.Image]),order:V,[Vt.Fields]:F[Vt.Fields].map((j,W)=>({...j,order:W}))}))};tNe(_).then(()=>{S(),qi.success(p("GENERAL.MESSAGES.SUCCESS.ITEM_CREATE",{item:p(`${a2}.TEXT_SINGULAR`)})),o&&o()}).catch(F=>{var j;const V=((j=F.response)==null?void 0:j.data)??[];Yi.error({message:p("GENERAL.ERROR"),description:be.jsx(Nu,{dataSource:V,renderItem:W=>be.jsx(Nu.Item,{children:p(`GENERAL.MESSAGES.ERROR.RELEASE_NOTE.${W.error}`)})})})}).finally(L)},P=d===0,I=d===(y==null?void 0:y.length)-1,k=(y==null?void 0:y.length)<=1,$=be.jsxs(pr,{justify:"flex-end",gap:8,children:[be.jsx(dn,{type:"dashed",icon:be.jsx(vr,{icon:CO}),onClick:()=>{var A;return(A=g.current)==null?void 0:A.prev()},disabled:P,children:p("GENERAL.BACK")}),be.jsx(dn,{type:"dashed",iconPosition:"end",icon:be.jsx(vr,{icon:yO}),onClick:()=>{var A;return(A=g.current)==null?void 0:A.next()},disabled:I,children:p("GENERAL.NEXT")}),be.jsx(dn,{type:"dashed",danger:!0,icon:be.jsx(vr,{icon:yN}),onClick:z,disabled:k,children:p(`${a2}.REMOVE_CURRENT_SLIDE`)}),be.jsx(dn,{type:"dashed",icon:be.jsx(vr,{icon:XO}),onClick:M,children:p(`${a2}.ADD_NEW_SLIDE`)}),be.jsx(dn,{type:"primary",icon:be.jsx(vr,{icon:cN}),onClick:()=>m.submit(),children:p("GENERAL.SAVE")})]}),T=A=>{s(t?A:!1)},R={[Vt.ReleasePages]:[{[Vt.Fields]:[{}]}],[Vt.DeployDate]:Qn()},N=tae(b??[],"appName","id"),D=O.useMemo(()=>p(`${a2}.${n?"UPD_RELEASE_NOTE":"ADD_RELEASE_NOTE"}`),[h]);return be.jsxs(be.Fragment,{children:[be.jsx(c1,{title:t,open:l,onOpenChange:T,children:be.jsx(dn,{type:"primary",icon:be.jsx(vr,{icon:pE}),shape:e?"default":"circle",onClick:w,children:e})}),be.jsx(S1,{open:i,title:D,onCancel:L,width:"60%",footer:$,destroyOnClose:!0,children:be.jsxs(en,{form:m,layout:"vertical",initialValues:R,onFinish:E,children:[be.jsx(Bs,{fieldName:"idRelease",hidden:!0}),be.jsxs(y1,{gutter:10,children:[be.jsx(Ln,{span:8,children:be.jsx(yze,{fieldName:Vt.App,label:p(`${a2}.FORM.FIELDS.APP`),placeholder:p(`${a2}.FORM.FIELDS.APP`,{context:"PLACEHOLDER"}),options:N,rules:C})}),be.jsx(Ln,{span:8,children:be.jsx(br,{fieldName:Vt.Version,label:p(`${a2}.FORM.FIELDS.VERSION`),placeholder:"0.0.0",tooltip:p(`${a2}.FORM.FIELDS.VERSION`,{context:"TOOLTIP"}),normalize:A=>A.replace(/\s/,".").replace(/[.]{2}/g,".").replace(/^[^0-9]|[^0-9.\b]/g,""),rules:[...C,()=>({validator(A,_){var j,W;const F=/[^0-9]$/,V=(W=(j=_==null?void 0:_.split("."))==null?void 0:j.filter(Boolean))==null?void 0:W.length;return F.test(_)?Promise.reject(new Error(p("GENERAL.FORM.ERRORS.VERSION"))):V>3||V<3?Promise.reject(new Error(p("GENERAL.FORM.ERRORS.FORMAT"))):Promise.resolve()}})]})}),be.jsx(Ln,{span:8,children:be.jsx(Sze,{fieldName:Vt.DeployDate,label:p(`${a2}.FORM.FIELDS.DEPLOY_DATE`),format:JR,rules:C})}),be.jsx(Ln,{span:24,children:be.jsx(ta,{styles:{body:{background:v("PrimaryColorBgContainer")}},children:be.jsx(oNe,{ref:g,changeSlide:x})})})]})]})})]})},{Title:cNe,Text:lNe}=vo,sNe=()=>{var M,z;const[e,t]=O.useState(!1),[n,r]=O.useState(!1),[a,o]=O.useState(0),{t:i}=r2(),c=Fs(),l=O.useRef(null),s=M2(W1.AppId),d=M2(W1.UserID),{data:f}=tT(),{data:m}=rNe({idApp:s,lastDeployed:!0,userId:d}),p=m==null?void 0:m[0],h=f==null?void 0:f.find(E=>E.id===s);O.useEffect(()=>{if(m!=null&&m.length){const E=m[0],P=!E.readRelease&&!!E.isDeployed;t(P)}},[m]);const v=()=>{const E=m==null?void 0:m[0];n&&(E!=null&&E.isDeployed)&&nNe(E==null?void 0:E.idRelease,d),t(!1)},g=()=>{var E;return(E=l.current)==null?void 0:E.next()},C=()=>{var E;return(E=l.current)==null?void 0:E.prev()},b=E=>o(E),y=a===0,x=a===(((M=p==null?void 0:p.gaReleasePages)==null?void 0:M.length)??0)-1,S=E=>r(E.target.checked),w=be.jsxs(pr,{justify:"space-between",align:"center",children:[be.jsx(Jr,{checked:n,onChange:S,children:i("RELEASE-NOTES.FORM.FIELDS.DO_NOT_SHOW_AGAIN")}),be.jsxs(pr,{gap:8,children:[!y&&be.jsx(dn,{onClick:C,children:i("Prev")}),!x&&be.jsx(dn,{type:"primary",onClick:g,children:i("GENERAL.ACTIONS.NEXT")}),x&&be.jsx(dn,{type:"primary",onClick:v,children:i("GENERAL.ACTIONS.CLOSE")})]})]}),L=O.useMemo(()=>i("RELEASE-NOTES.WHATS_NEWS",{app:h==null?void 0:h.appName,version:p==null?void 0:p.version}),[c]);return be.jsx(S1,{open:e,title:L,onCancel:v,width:"70%",footer:w,children:be.jsx(X8,{infinite:!1,ref:l,afterChange:b,children:(z=p==null?void 0:p.gaReleasePages)==null?void 0:z.map(({idFile:E,gaReleasePagesContent:P},I)=>be.jsx("div",{children:be.jsxs(y1,{gutter:[16,16],style:{marginBottom:35},children:[be.jsx(Ln,{span:E?12:24,children:be.jsx(pr,{gap:16,vertical:!0,children:P.map(({title:k,description:$},T)=>be.jsxs(pr,{vertical:!0,children:[be.jsx(cNe,{level:5,children:k}),be.jsx(lNe,{style:{opacity:.5},children:$})]},`${I}-${T}`))})}),!!E&&be.jsx(Ln,{span:12,children:be.jsx(pr,{justify:"center",children:be.jsx(ta,{bordered:!0,styles:{body:{display:"flex",justifyContent:"center",padding:2}},children:be.jsx(B0,{src:L5(E),style:{maxHeight:600,borderRadius:8}})})})})]})},I))})})},nT=new S7({defaultOptions:{queries:{retry:2}}}),uNe=({showAddBtn:e,...t})=>e?be.jsx(M5,{children:be.jsx(z3,{client:nT,children:be.jsx(iNe,{...t})})}):be.jsx(M5,{children:be.jsx(z3,{client:nT,children:be.jsx(sNe,{})})}),dNe=C3()(uNe);var u1=(e=>(e.FirstName="firstName",e.LastName="lastName",e.Username="username",e.Email="email",e.ProfilePicture="profilePicture",e.Password="password",e.ConfirmPassword="confirmPassword",e.Apps="userRolesApp",e.AppId="idApp",e.RoleId="roleId",e.Tenants="tenantId",e.Active="isActive",e.Private="isPrivate",e.User="userId",e.Hierarchy="hierarchy",e))(u1||{}),Qs=(e=>(e.Tab1="PROFILE",e.Tab2="MANAGEMENT",e))(Qs||{}),rT=(e=>(e[e.GA_USER_EMPTY=0]="GA_USER_EMPTY",e[e.GA_EMAIL_EMPTY=1]="GA_EMAIL_EMPTY",e[e.GA_USER_ID_EMPTY=2]="GA_USER_ID_EMPTY",e[e.GA_PASS_EMPTY=3]="GA_PASS_EMPTY",e[e.GA_PASS_NOT_MATCH=4]="GA_PASS_NOT_MATCH",e[e.GA_USERNAME_EXISTS=5]="GA_USERNAME_EXISTS",e[e.GA_EMAIL_EXISTS=6]="GA_EMAIL_EXISTS",e[e.GA_NO_ROLES_APP_DEFINED=7]="GA_NO_ROLES_APP_DEFINED",e[e.GA_DUPLICATED_RECORDS_SAME_TENANT_ROLE_APP=8]="GA_DUPLICATED_RECORDS_SAME_TENANT_ROLE_APP",e[e.GA_CANNOT_GET_USER_INFO=9]="GA_CANNOT_GET_USER_INFO",e[e.GA_ERROR_CHAGING_PASS=10]="GA_ERROR_CHAGING_PASS",e[e.GA_NO_TENANTS_ROLES_DEFINDED=11]="GA_NO_TENANTS_ROLES_DEFINDED",e[e.GA_PASS_DOES_NOT_MEET_REQUIREMENTS=12]="GA_PASS_DOES_NOT_MEET_REQUIREMENTS",e))(rT||{});const Ft=e=>typeof e=="string",bc=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},aT=e=>e==null?"":""+e,fNe=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},mNe=/###/g,oT=e=>e&&e.indexOf("###")>-1?e.replace(mNe,"."):e,iT=e=>!e||Ft(e),Cc=(e,t,n)=>{const r=Ft(t)?t.split("."):t;let a=0;for(;a<r.length-1;){if(iT(e))return{};const o=oT(r[a]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++a}return iT(e)?{}:{obj:e,k:oT(r[a])}},cT=(e,t,n)=>{const{obj:r,k:a}=Cc(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),c=Cc(e,i,Object);for(;c.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),c=Cc(e,i,Object),c!=null&&c.obj&&typeof c.obj[`${c.k}.${o}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${o}`]=n},pNe=(e,t,n,r)=>{const{obj:a,k:o}=Cc(e,t,Object);a[o]=a[o]||[],a[o].push(n)},Js=(e,t)=>{const{obj:n,k:r}=Cc(e,t);if(n)return n[r]},gNe=(e,t,n)=>{const r=Js(e,n);return r!==void 0?r:Js(t,n)},lT=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Ft(e[r])||e[r]instanceof String||Ft(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):lT(e[r],t[r],n):e[r]=t[r]);return e},No=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var hNe={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const vNe=e=>Ft(e)?e.replace(/[&<>"'\/]/g,t=>hNe[t]):e;class bNe{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const CNe=[" ",",","?","!",";"],yNe=new bNe(20),SNe=(e,t,n)=>{t=t||"",n=n||"";const r=CNe.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const a=yNe.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!a.test(e);if(!o){const i=e.indexOf(n);i>0&&!a.test(e.substring(0,i))&&(o=!0)}return o},Nf=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let a=e;for(let o=0;o<r.length;){if(!a||typeof a!="object")return;let i,c="";for(let l=o;l<r.length;++l)if(l!==o&&(c+=n),c+=r[l],i=a[c],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&l<r.length-1)continue;o+=l-o+1;break}a=i}return a},Zs=e=>e==null?void 0:e.replace("_","-"),xNe={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class e3{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||xNe,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,a){return a&&!this.debug?null:(Ft(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new e3(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e3(this.logger,t)}}var Dr=new e3;class t3{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[c,l]=i;for(let s=0;s<l;s++)c(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[c,l]=i;for(let s=0;s<l;s++)c.apply(c,[t,...r])})}}class sT extends t3{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){var s,d;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],r&&(Array.isArray(r)?c.push(...r):Ft(r)&&o?c.push(...r.split(o)):c.push(r)));const l=Js(this.data,c);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=c[0],n=c[1],r=c.slice(2).join(".")),l||!i||!Ft(r)?l:Nf((d=(s=this.data)==null?void 0:s[t])==null?void 0:d[n],r,o)}addResource(t,n,r,a){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let c=[t,n];r&&(c=c.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(c=t.split("."),a=n,n=c[1]),this.addNamespaces(n),cT(this.data,c,a),o.silent||this.emit("added",t,n,r,a)}addResources(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(Ft(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),a=r,r=n,n=c[1]),this.addNamespaces(n);let l=Js(this.data,c)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?lT(l,r,o):l={...l,...r},cT(this.data,c,l),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var uT={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(o=>{var i;t=((i=this.processors[o])==null?void 0:i.process(t,n,r,a))??t}),t}};const dT={};class n3 extends t3{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),fNe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Dr.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return(r==null?void 0:r.res)!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!SNe(t,r,a);if(i&&!c){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:Ft(o)?[o]:o};const s=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),t=s.join(a)}return{key:t,namespaces:Ft(o)?[o]:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:c}=this.extractFromKey(t[t.length-1],n),l=c[c.length-1],s=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((s==null?void 0:s.toLowerCase())==="cimode"){if(d){const x=n.nsSeparator||this.options.nsSeparator;return a?{res:`${l}${x}${i}`,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${x}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:i}const f=this.resolve(t,n);let m=f==null?void 0:f.res;const p=(f==null?void 0:f.usedKey)||i,h=(f==null?void 0:f.exactUsedKey)||i,v=Object.prototype.toString.apply(m),g=["[object Number]","[object Function]","[object RegExp]"],C=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!Ft(m)&&typeof m!="boolean"&&typeof m!="number";if(b&&m&&y&&g.indexOf(v)<0&&!(Ft(C)&&Array.isArray(m))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const x=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,m,{...n,ns:c}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(f.res=x,f.usedParams=this.getUsedParamsDetails(n),f):x}if(o){const x=Array.isArray(m),S=x?[]:{},w=x?h:p;for(const L in m)if(Object.prototype.hasOwnProperty.call(m,L)){const M=`${w}${o}${L}`;S[L]=this.translate(M,{...n,joinArrays:!1,ns:c}),S[L]===M&&(S[L]=m[L])}m=S}}else if(b&&Ft(C)&&Array.isArray(m))m=m.join(C),m&&(m=this.extendTranslation(m,t,n,r));else{let x=!1,S=!1;const w=n.count!==void 0&&!Ft(n.count),L=n3.hasDefaultValue(n),M=w?this.pluralResolver.getSuffix(s,n.count,n):"",z=n.ordinal&&w?this.pluralResolver.getSuffix(s,n.count,{ordinal:!1}):"",E=w&&!n.ordinal&&n.count===0,P=E&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${M}`]||n[`defaultValue${z}`]||n.defaultValue;!this.isValidLookup(m)&&L&&(x=!0,m=P),this.isValidLookup(m)||(S=!0,m=i);const k=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:m,$=L&&P!==m&&this.options.updateMissing;if(S||x||$){if(this.logger.log($?"updateKey":"missingKey",s,l,i,$?P:m),o){const D=this.resolve(i,{...n,keySeparator:!1});D&&D.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 T=[];const R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&R&&R[0])for(let D=0;D<R.length;D++)T.push(R[D]);else this.options.saveMissingTo==="all"?T=this.languageUtils.toResolveHierarchy(n.lng||this.language):T.push(n.lng||this.language);const N=(D,A,_)=>{var V;const F=L&&_!==m?_:k;this.options.missingKeyHandler?this.options.missingKeyHandler(D,l,A,F,$,n):(V=this.backendConnector)!=null&&V.saveMissing&&this.backendConnector.saveMissing(D,l,A,F,$,n),this.emit("missingKey",D,l,A,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&w?T.forEach(D=>{const A=this.pluralResolver.getSuffixes(D,n);E&&n[`defaultValue${this.options.pluralSeparator}zero`]&&A.indexOf(`${this.options.pluralSeparator}zero`)<0&&A.push(`${this.options.pluralSeparator}zero`),A.forEach(_=>{N([D],i+_,n[`defaultValue${_}`]||P)})}):N(T,i,P))}m=this.extendTranslation(m,t,n,f,r),S&&m===i&&this.options.appendNamespaceToMissingKey&&(m=`${l}:${i}`),(S||x)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,x?m:void 0))}return a?(f.res=m,f.usedParams=this.getUsedParamsDetails(n),f):m}extendTranslation(t,n,r,a,o){var s,d;var i=this;if((s=this.i18nFormat)!=null&&s.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=Ft(t)&&(((d=r==null?void 0:r.interpolation)==null?void 0:d.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(f){const h=t.match(this.interpolator.nestingRegexp);m=h&&h.length}let p=r.replace&&!Ft(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language||a.usedLng,r),f){const h=t.match(this.interpolator.nestingRegexp),v=h&&h.length;m<v&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,v=new Array(h),g=0;g<h;g++)v[g]=arguments[g];return(o==null?void 0:o[0])===v[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):i.translate(...v,n)},r)),r.interpolation&&this.interpolator.reset()}const c=r.postProcess||this.options.postProcess,l=Ft(c)?[c]:c;return t!=null&&(l!=null&&l.length)&&r.applyPostProcessor!==!1&&(t=uT.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a,o,i,c;return Ft(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const s=this.extractFromKey(l,n),d=s.key;a=d;let f=s.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const m=n.count!==void 0&&!Ft(n.count),p=m&&!n.ordinal&&n.count===0,h=n.context!==void 0&&(Ft(n.context)||typeof n.context=="number")&&n.context!=="",v=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(g=>{var C,b;this.isValidLookup(r)||(c=g,!dT[`${v[0]}-${g}`]&&((C=this.utils)!=null&&C.hasLoadedNamespace)&&!((b=this.utils)!=null&&b.hasLoadedNamespace(c))&&(dT[`${v[0]}-${g}`]=!0,this.logger.warn(`key "${a}" for languages "${v.join(", ")}" won't get resolved as namespace "${c}" 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!!!")),v.forEach(y=>{var w;if(this.isValidLookup(r))return;i=y;const x=[d];if((w=this.i18nFormat)!=null&&w.addLookupKeys)this.i18nFormat.addLookupKeys(x,d,y,g,n);else{let L;m&&(L=this.pluralResolver.getSuffix(y,n.count,n));const M=`${this.options.pluralSeparator}zero`,z=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(x.push(d+L),n.ordinal&&L.indexOf(z)===0&&x.push(d+L.replace(z,this.options.pluralSeparator)),p&&x.push(d+M)),h){const E=`${d}${this.options.contextSeparator}${n.context}`;x.push(E),m&&(x.push(E+L),n.ordinal&&L.indexOf(z)===0&&x.push(E+L.replace(z,this.options.pluralSeparator)),p&&x.push(E+M))}}let S;for(;S=x.pop();)this.isValidLookup(r)||(o=S,r=this.getResource(y,g,S,n))}))})}),{res:r,usedKey:a,exactUsedKey:o,usedLng:i,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){var o;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(o=this.i18nFormat)!=null&&o.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Ft(t.replace);let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const o of n)delete a[o]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class fT{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Dr.create("languageUtils")}getScriptPartFromCode(t){if(t=Zs(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Zs(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Ft(t)&&t.indexOf("-")>-1){let n=Intl.getCanonicalLocales(t)[0];return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(o=>{if(o===a)return o;if(!(o.indexOf("-")<0&&a.indexOf("-")<0)&&(o.indexOf("-")>0&&a.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===a||o.indexOf(a)===0&&a.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Ft(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),a=[],o=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return Ft(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):Ft(t)&&o(this.formatLanguageCode(t)),r.forEach(i=>{a.indexOf(i)<0&&o(this.formatLanguageCode(i))}),a}}const mT={zero:0,one:1,two:2,few:3,many:4,other:5},pT={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class wNe{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Dr.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=Zs(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:a});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(r,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),pT;if(!t.match(/-|_/))return pT;const l=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(l,n)}return this.pluralRulesCache[o]=i,i}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,o)=>mT[a]-mT[o]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const gT=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=gNe(e,t,n);return!o&&a&&Ft(n)&&(o=Nf(e,n,r),o===void 0&&(o=Nf(t,n,r))),o},$f=e=>e.replace(/\$/g,"$$$$");class LNe{constructor(){var n;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Dr.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:o,prefixEscaped:i,suffix:c,suffixEscaped:l,formatSeparator:s,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:m,nestingPrefixEscaped:p,nestingSuffix:h,nestingSuffixEscaped:v,nestingOptionsSeparator:g,maxReplaces:C,alwaysFormat:b}=t.interpolation;this.escape=n!==void 0?n:vNe,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=o?No(o):i||"{{",this.suffix=c?No(c):l||"}}",this.formatSeparator=s||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=m?No(m):p||No("$t("),this.nestingSuffix=h?No(h):v||No(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=C||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,a){var p;let o,i,c;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},s=h=>{if(h.indexOf(this.formatSeparator)<0){const b=gT(n,l,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,r,{...a,...n,interpolationkey:h}):b}const v=h.split(this.formatSeparator),g=v.shift().trim(),C=v.join(this.formatSeparator).trim();return this.format(gT(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),C,r,{...a,...n,interpolationkey:g})};this.resetRegExp();const d=(a==null?void 0:a.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((p=a==null?void 0:a.interpolation)==null?void 0:p.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>$f(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?$f(this.escape(h)):$f(h)}].forEach(h=>{for(c=0;o=h.regex.exec(t);){const v=o[1].trim();if(i=s(v),i===void 0)if(typeof d=="function"){const C=d(t,o,a);i=Ft(C)?C:""}else if(a&&Object.prototype.hasOwnProperty.call(a,v))i="";else if(f){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),i="";else!Ft(i)&&!this.useRawValueToEscape&&(i=aT(i));const g=h.safeValue(i);if(t=t.replace(o[0],g),f?(h.regex.lastIndex+=i.length,h.regex.lastIndex-=o[0].length):h.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,o,i;const c=(l,s)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const f=l.split(new RegExp(`${d}[ ]*{`));let m=`{${f[1]}`;l=f[0],m=this.interpolate(m,i);const p=m.match(/'/g),h=m.match(/"/g);(((p==null?void 0:p.length)??0)%2===0&&!h||h.length%2!==0)&&(m=m.replace(/'/g,'"'));try{i=JSON.parse(m),s&&(i={...s,...i})}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,v),`${l}${d}${m}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,l};for(;a=this.nestingRegexp.exec(t);){let l=[];i={...r},i=i.replace&&!Ft(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let s=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const d=a[1].split(this.formatSeparator).map(f=>f.trim());a[1]=d.shift(),l=d,s=!0}if(o=n(c.call(this,a[1].trim(),i),i),o&&a[0]===t&&!Ft(o))return o;Ft(o)||(o=aT(o)),o||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),o=""),s&&(o=l.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:a[1].trim()}),o.trim())),t=t.replace(a[0],o),this.regexp.lastIndex=0}return t}}const MNe=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(i=>{if(i){const[c,...l]=i.split(":"),s=l.join(":").trim().replace(/^'+|'+$/g,""),d=c.trim();n[d]||(n[d]=s),s==="false"&&(n[d]=!1),s==="true"&&(n[d]=!0),isNaN(s)||(n[d]=parseInt(s,10))}})}return{formatName:t,formatOptions:n}},$o=e=>{const t={};return(n,r,a)=>{let o=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(o={...o,[a.interpolationkey]:void 0});const i=r+JSON.stringify(o);let c=t[i];return c||(c=e(Zs(r),a),t[i]=c),c(n)}};class zNe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Dr.create("formatter"),this.options=t,this.formats={number:$o((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return o=>a.format(o)}),currency:$o((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>a.format(o)}),datetime:$o((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return o=>a.format(o)}),relativetime:$o((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return o=>a.format(o,r.range||"day")}),list:$o((n,r)=>{const a=new Intl.ListFormat(n,{...r});return o=>a.format(o)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=$o(n)}format(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(c=>c.indexOf(")")>-1)){const c=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,c)].join(this.formatSeparator)}return o.reduce((c,l)=>{var f;const{formatName:s,formatOptions:d}=MNe(l);if(this.formats[s]){let m=c;try{const p=((f=a==null?void 0:a.formatParams)==null?void 0:f[a.interpolationkey])||{},h=p.locale||p.lng||a.locale||a.lng||r;m=this.formats[s](c,h,{...d,...a,...p})}catch(p){this.logger.warn(p)}return m}else this.logger.warn(`there was no format function for ${s}`);return c},t)}}const ENe=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class NNe extends t3{constructor(t,n,r){var o,i;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=Dr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],(i=(o=this.backend)==null?void 0:o.init)==null||i.call(o,r,a.backend,a)}queueLoad(t,n,r,a){const o={},i={},c={},l={};return t.forEach(s=>{let d=!0;n.forEach(f=>{const m=`${s}|${f}`;!r.reload&&this.store.hasResourceBundle(s,f)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?i[m]===void 0&&(i[m]=!0):(this.state[m]=1,d=!1,i[m]===void 0&&(i[m]=!0),o[m]===void 0&&(o[m]=!0),l[f]===void 0&&(l[f]=!0)))}),d||(c[s]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const a=t.split("|"),o=a[0],i=a[1];n&&this.emit("failedLoading",o,i,n),!n&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const c={};this.queue.forEach(l=>{pNe(l.loaded,[o],i),ENe(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(s=>{c[s]||(c[s]={});const d=l.loaded[s];d.length&&d.forEach(f=>{c[s][f]===void 0&&(c[s][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:o,callback:i});return}this.readingCalls++;const c=(s,d)=>{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(s&&d&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,a+1,o*2,i)},o);return}i(s,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const s=l(t,n);s&&typeof s.then=="function"?s.then(d=>c(null,d)).catch(c):c(null,s)}catch(s){c(s)}return}return l(t,n,c)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();Ft(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Ft(n)&&(n=[n]);const o=this.queueLoad(t,n,r,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),a=r[0],o=r[1];this.read(a,o,"read",void 0,void 0,(i,c)=>{i&&this.logger.warn(`${n}loading namespace ${o} for language ${a} failed`,i),!i&&c&&this.logger.log(`${n}loaded namespace ${o} for language ${a}`,c),this.loaded(t,i,c)})}saveMissing(t,n,r,a,o){var l,s,d,f,m;let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((s=(l=this.services)==null?void 0:l.utils)!=null&&s.hasLoadedNamespace&&!((f=(d=this.services)==null?void 0:d.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((m=this.backend)!=null&&m.create){const p={...i,isUpdate:o},h=this.backend.create.bind(this.backend);if(h.length<6)try{let v;h.length===5?v=h(t,n,r,a,p):v=h(t,n,r,a),v&&typeof v.then=="function"?v.then(g=>c(null,g)).catch(c):c(null,v)}catch(v){c(v)}else h(t,n,r,a,c,p)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const hT=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",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:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Ft(e[1])&&(t.defaultValue=e[1]),Ft(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),vT=e=>{var t,n;return Ft(e.ns)&&(e.ns=[e.ns]),Ft(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Ft(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},r3=()=>{},$Ne=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class yc extends t3{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=vT(t),this.services={},this.logger=Dr,this.modules={external:[]},$Ne(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(Ft(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=hT();this.options={...a,...this.options,...vT(n)},this.options.interpolation={...a.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Dr.init(o(this.modules.logger),this.options):Dr.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=zNe;const f=new fT(this.options);this.store=new sT(this.options.resources,this.options);const m=this.services;m.logger=Dr,m.resourceStore=this.store,m.languageUtils=f,m.pluralResolver=new wNe(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(m.formatter=o(d),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new LNe(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new NNe(o(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(p){for(var h=arguments.length,v=new Array(h>1?h-1:0),g=1;g<h;g++)v[g-1]=arguments[g];t.emit(p,...v)}),this.modules.languageDetector&&(m.languageDetector=o(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=o(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new n3(this.services,this.options),this.translator.on("*",function(p){for(var h=arguments.length,v=new Array(h>1?h-1:0),g=1;g<h;g++)v[g-1]=arguments[g];t.emit(p,...v)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=r3),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[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(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const l=bc(),s=()=>{const d=(f,m)=>{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),l.resolve(m),r(f,m)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?s():setTimeout(s,0),l}loadResources(t){var o,i;let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r3;const a=Ft(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((a==null?void 0:a.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const c=[],l=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(f=>{f!=="cimode"&&c.indexOf(f)<0&&c.push(f)})};a?l(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>l(d)),(i=(o=this.options.preload)==null?void 0:o.forEach)==null||i.call(o,s=>l(s)),this.services.backendConnector.load(c,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const a=bc();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=r3),this.services.backendConnector.reload(t,n,o=>{a.resolve(),r(o)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&uT.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const a=bc();this.emit("languageChanging",t);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},i=(l,s)=>{s?(o(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,a.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},c=l=>{var d,f;!t&&!l&&this.services.languageDetector&&(l=[]);const s=Ft(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);s&&(this.language||o(s),this.translator.language||this.translator.changeLanguage(s),(f=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||f.call(d,s)),this.loadResources(s,m=>{i(m,s)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),a}getFixedT(t,n,r){var a=this;const o=function(i,c){let l;if(typeof c!="object"){for(var s=arguments.length,d=new Array(s>2?s-2:0),f=2;f<s;f++)d[f-2]=arguments[f];l=a.options.overloadTranslationOptionHandler([i,c].concat(d))}else l={...c};l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||o.keyPrefix);const m=a.options.keySeparator||".";let p;return l.keyPrefix&&Array.isArray(i)?p=i.map(h=>`${l.keyPrefix}${m}${h}`):p=l.keyPrefix?`${l.keyPrefix}${m}${i}`:i,a.t(p,l)};return Ft(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){var a;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(a=this.translator)==null?void 0:a.translate(...n)}exists(){var a;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(a=this.translator)==null?void 0:a.exists(...n)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};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],a=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(c,l)=>{const s=this.services.backendConnector.state[`${c}|${l}`];return s===-1||s===0||s===2};if(n.precheck){const c=n.precheck(this,i);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!a||i(o,t)))}loadNamespaces(t,n){const r=bc();return this.options.ns?(Ft(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=bc();Ft(t)&&(t=[t]);const a=this.options.preload||[],o=t.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=a.concat(o),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){var a,o;if(t||(t=this.resolvedLanguage||(((a=this.languages)==null?void 0:a.length)>0?this.languages[0]:this.language)),!t)return"rtl";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=((o=this.services)==null?void 0:o.languageUtils)||new fT(hT());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new yc(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r3;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},o=new yc(a);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(c=>{o[c]=this[c]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new sT(this.store.data,a),o.services.resourceStore=o.store),o.translator=new n3(o.services,a),o.translator.on("*",function(c){for(var l=arguments.length,s=new Array(l>1?l-1:0),d=1;d<l;d++)s[d-1]=arguments[d];o.emit(c,...s)}),o.init(a,n),o.translator.options=a,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const r1=yc.createInstance();r1.createInstance=yc.createInstance,r1.createInstance,r1.dir,r1.init,r1.loadResources,r1.reloadResources,r1.use,r1.changeLanguage,r1.getFixedT;const bT=r1.t;r1.exists,r1.setDefaultNamespace,r1.hasLoadedNamespace,r1.loadNamespaces,r1.loadLanguages;const ONe=async(e,t)=>{const n="GENERAL.MESSAGES";return e.then(()=>{qi.success(bT(`${n}.SUCCESS.USERS`,{context:"UPDATE"})),t&&t()}).catch(({response:r})=>{const a=rT[r==null?void 0:r.data.code];Yi.error({message:bT(`${n}.ERROR.USERS.${a}`),duration:10})})},PNe=window.globalAuthUrl,INe=async e=>await I2.post(`${PNe}/maintainUser`,e),H1="USERS",TNe=()=>{const{t:e}=r2(),{requiredField:t}=js();return be.jsxs(y1,{gutter:8,children:[be.jsx(Ln,{span:12,children:be.jsx(br,{fieldName:u1.FirstName,label:e(`${H1}.FIRST_NAME`),placeholder:e(`${H1}.FIRST_NAME`,{context:"PLACEHOLDER"}),allowClear:!0,rules:t})}),be.jsx(Ln,{span:12,children:be.jsx(br,{fieldName:u1.LastName,label:e(`${H1}.LAST_NAME`),placeholder:e(`${H1}.LAST_NAME`,{context:"PLACEHOLDER"}),allowClear:!0,rules:t})}),be.jsx(Ln,{span:12,children:be.jsx(br,{fieldName:u1.Username,label:e(`${H1}.USERNAME`),placeholder:e(`${H1}.USERNAME`,{context:"PLACEHOLDER"}),allowClear:!0,rules:t})}),be.jsx(Ln,{span:12,children:be.jsx(br,{fieldName:u1.Email,label:e(`${H1}.EMAIL`),placeholder:e(`${H1}.EMAIL`,{context:"PLACEHOLDER"}),allowClear:!0,rules:[()=>({validator(n,r){return!(r!=null&&r.match(ek))||r!=null&&r.match(tk)||r!=null&&r.match(nk)?Promise.reject(new Error(e("GENERAL.FORM.ERRORS.EMAIL"))):Promise.resolve()}})]})}),be.jsx(Ln,{span:12,children:be.jsx(br,{fieldName:u1.Password,label:e(`${H1}.PASSWORD`),placeholder:e(`${H1}.PASSWORD`,{context:"PLACEHOLDER"}),isPassword:!0,allowClear:!0,tooltip:be.jsx(fI,{i18nKey:e(`${H1}.PASSWORD_HINT`),components:{b:be.jsx("b",{}),ul:be.jsx("ul",{}),li:be.jsx("li",{})}})})}),be.jsx(Ln,{span:12,children:be.jsx(br,{fieldName:u1.ConfirmPassword,label:e(`${H1}.PASSWORD-CONFIRM`),placeholder:e(`${H1}.PASSWORD-CONFIRM`,{context:"PLACEHOLDER"}),isPassword:!0,allowClear:!0,rules:[({getFieldValue:n})=>({validator(r,a){return!a||n(u1.Password)===a?Promise.resolve():Promise.reject(new Error(e("GENERAL.FORM.ERRORS.EMAIL")))}})]})})]})},a3="USERS",RNe=({user:e,isLoading:t,isOpen:n,onCancel:r})=>{const[a]=en.useForm(),o=Fs(),{t:i}=r2(),c=en.useWatch(u1.ProfilePicture,a);O.useEffect(()=>(e&&a.setFieldsValue({...e,[u1.ProfilePicture]:L5(e.profilePicture)}),()=>{a.resetFields()}),[e]);const l=p=>{const h={...e,...p,[u1.ProfilePicture]:Ux(p==null?void 0:p[u1.ProfilePicture])};ONe(INe(h),r)},s=p=>{p.stopPropagation(),a.setFieldValue(u1.ProfilePicture,void 0)},d=p=>(Kx(p,h=>{a.setFieldValue(u1.ProfilePicture,h)}),!1),f=be.jsxs("div",{children:[be.jsx(S0,{}),be.jsx("div",{style:{marginTop:8},children:i("UPLOAD")})]}),m=O.useMemo(()=>[{label:be.jsxs("span",{children:[be.jsx(vr,{icon:DM,style:{marginRight:5}}),i(`${a3}.${Qs.Tab1}`)]}),key:Qs.Tab1,children:be.jsx(TNe,{}),forceRender:!0}],[o]);return be.jsx(nw,{children:be.jsx(S1,{title:i(`${a3}.EDIT`,{context:"USER"}),onOk:()=>a.submit(),onCancel:r,open:n,destroyOnClose:!0,maskClosable:!1,okText:i(`${a3}.SUBMIT`),cancelText:i(`${a3}.CANCEL`),style:{maxWidth:900},okButtonProps:{loading:t},children:be.jsxs(en,{name:"user-management",form:a,onFinish:l,layout:"vertical",children:[be.jsxs(y1,{children:[be.jsx(br,{fieldName:u1.User,hidden:!0}),be.jsx(Ln,{span:24,children:be.jsx(y1,{justify:"center",children:be.jsx(en.Item,{name:u1.ProfilePicture,children:be.jsx(x5,{listType:"picture-circle",className:"avatar-uploader",beforeUpload:d,maxCount:1,showUploadList:!1,accept:"image/png, image/jpeg",children:c?be.jsxs(y1,{className:"float-btn-container",children:[be.jsx(nv,{src:c,size:"small",alt:"userProfile",style:{height:"100%",width:"100%"}}),be.jsx(c1,{title:i("Remove"),placement:"bottom",children:be.jsx(dn,{shape:"circle",size:"small",icon:be.jsx(Pu,{}),className:"float-btn",onClick:s})})]}):f})})})})]}),be.jsx(M0,{defaultActiveKey:Qs.Tab1,type:"card",size:"small",items:m})]})})})},kNe=C3()(RNe),{slice:DNe,forEach:_Ne}=[];function ANe(e){return _Ne.call(DNe.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}const CT=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,FNe=(e,t,n)=>{const r=n||{};r.path=r.path||"/";const a=encodeURIComponent(t);let o=`${e}=${a}`;if(r.maxAge>0){const i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(i)}`}if(r.domain){if(!CT.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!CT.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o},yT={create(e,t,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=FNe(e,encodeURIComponent(t),a)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let a=n[r];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}return null},remove(e){this.create(e,"",-1)}};var jNe={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return yT.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:a,cookieOptions:o}=t;n&&typeof document<"u"&&yT.create(n,e,r,a,o)}},BNe={name:"querystring",lookup(e){var r;let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:a}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));const i=a.substring(1).split("&");for(let c=0;c<i.length;c++){const l=i[c].indexOf("=");l>0&&i[c].substring(0,l)===t&&(n=i[c].substring(l+1))}}return n}};let Sc=null;const ST=()=>{if(Sc!==null)return Sc;try{Sc=window!=="undefined"&&window.localStorage!==null;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Sc=!1}return Sc};var HNe={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&ST())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&ST()&&window.localStorage.setItem(n,e)}};let xc=null;const xT=()=>{if(xc!==null)return xc;try{xc=window!=="undefined"&&window.sessionStorage!==null;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{xc=!1}return xc};var VNe={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&xT())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&xT()&&window.sessionStorage.setItem(n,e)}},WNe={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let o=0;o<n.length;o++)t.push(n[o]);r&&t.push(r),a&&t.push(a)}return t.length>0?t:void 0}},KNe={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},UNe={name:"path",lookup(e){var a;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(a=n[typeof t=="number"?t:0])==null?void 0:a.replace("/",""):void 0}},qNe={name:"subdomain",lookup(e){var a,o;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((o=(a=window.location)==null?void 0:a.hostname)==null?void 0:o.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};function GNe(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}}class wT{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=ANe(n,this.options||{},GNe()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(jNe),this.addDetector(BNe),this.addDetector(HNe),this.addDetector(VNe),this.addDetector(WNe),this.addDetector(KNe),this.addDetector(UNe),this.addDetector(qNe)}addDetector(t){return this.detectors[t.name]=t,this}detect(t){t||(t=this.options.order);let n=[];return t.forEach(r=>{if(this.detectors[r]){let a=this.detectors[r].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(n=n.concat(a))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}wT.type="languageDetector",r1.use(wT).use(lze).init({debug:!1,fallbackLng:"PT",interpolation:{escapeValue:!1}}),Zn.Helpdesk=JEe,Zn.ReleaseNote=dNe,Zn.UserModal=kNe,Zn.i18n=r1,Object.defineProperty(Zn,Symbol.toStringTag,{value:"Module"})});
|
|
1069
|
+
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pa(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Lf.assertOptions(r,{silentJSONParsing:P2.transitional(P2.boolean),forcedJSONParsing:P2.transitional(P2.boolean),clarifyTimeoutError:P2.transitional(P2.boolean)},!1),a!=null&&(Oe.isFunction(a)?n.paramsSerializer={serialize:a}:Lf.assertOptions(a,{encode:P2.function,serialize:P2.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&Oe.merge(o.common,o[n.method]);o&&Oe.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=w1.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,c.unshift(v.fulfilled,v.rejected))});const s=[];this.interceptors.response.forEach(function(v){s.push(v.fulfilled,v.rejected)});let d,f=0,m;if(!l){const h=[GI.bind(this),void 0];for(h.unshift.apply(h,c),h.push.apply(h,s),m=h.length,d=Promise.resolve(n);f<m;)d=d.then(h[f++],h[f++]);return d}m=c.length;let p=n;for(f=0;f<m;){const h=c[f++],v=c[f++];try{p=h(p)}catch(g){v.call(this,g);break}}try{d=GI.call(this,p)}catch(h){return Promise.reject(h)}for(f=0,m=s.length;f<m;)d=d.then(s[f++],s[f++]);return d}getUri(t){t=pa(this.defaults,t);const n=FI(t.baseURL,t.url);return OI(n,t.params,t.paramsSerializer)}}Oe.forEach(["delete","get","head","options"],function(t){ga.prototype[t]=function(n,r){return this.request(pa(r||{},{method:t,url:n,data:(r||{}).data}))}}),Oe.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(pa(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}ga.prototype[t]=n(),ga.prototype[t+"Form"]=n(!0)});class Mf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(a);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new Eo(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Mf(function(a){t=a}),cancel:t}}}function KEe(e){return function(n){return e.apply(null,n)}}function UEe(e){return Oe.isObject(e)&&e.isAxiosError===!0}const zf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(zf).forEach(([e,t])=>{zf[t]=e});function QI(e){const t=new ga(e),n=pI(ga.prototype.request,t);return Oe.extend(n,ga.prototype,t,{allOwnKeys:!0}),Oe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return QI(pa(e,a))},n}const _n=QI(hc);_n.Axios=ga,_n.CanceledError=Eo,_n.CancelToken=Mf,_n.isCancel=kI,_n.VERSION=YI,_n.toFormData=Us,_n.AxiosError=Bt,_n.Cancel=_n.CanceledError,_n.all=function(t){return Promise.all(t)},_n.spread=KEe,_n.isAxiosError=UEe,_n.mergeConfig=pa,_n.AxiosHeaders=w1,_n.formToJSON=e=>TI(Oe.isHTMLForm(e)?new FormData(e):e),_n.getAdapter=qI.getAdapter,_n.HttpStatusCode=zf,_n.default=_n;const I2=_n.create({timeout:6e4});I2.interceptors.request.use(e=>{const t=M2(W1.Token);return e.headers.IdApp=Z2e(),e.headers.Tenantid=J2e(),e.headers.Authorization="Bearer "+t,e},e=>Promise.reject(e));const JI="https://aquasis.freshdesk.com/api/v2/",ZI=btoa("UtA4JWhMo8w4eWzzgo9"),qEe=async({appName:e,...t})=>{var l;const n=+"23000031142",{data:r}=await I2.get(JI+"ticket_fields",{headers:{Authorization:`Basic ${ZI}`}}),a=r.find(s=>s.name==="cf_produto"),o=(l=a==null?void 0:a.choices)==null?void 0:l.find(s=>s.toLowerCase().includes(e.toLowerCase())),i={...t,status:2,priority:4,group_id:n,type:"Pedido de Suporte",custom_fields:{cf_produto:o},tags:["new-freshdesk-widget"],source:9},c=new FormData;return Object.keys(i).forEach(s=>{var d;s==="custom_fields"?Object.keys(i[s]).forEach(f=>{c.append(`custom_fields[${f}]`,i.custom_fields[f])}):s==="attachments"?(d=t.attachments)==null||d.forEach(f=>{c.append("attachments[]",new File([f],f.name))}):s==="tags"?c.append("tags[]",i[s]):c.append(s,i[s])}),I2.post(JI+"tickets",c,{headers:{Authorization:`Basic ${ZI}`,"Content-Type":"multipart/form-data"}})},GEe={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376l0 103.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},{Title:eT}=vo,er="HELPDESK.FORM",YEe="GENERAL.MESSAGES",XEe=({onCancel:e})=>{const[t,n]=O.useState(!1),[r]=en.useForm(),{t:a}=r2(),{requiredField:o}=js(),i=M2(W1.AppName),c=[{dataIndex:"field",title:a("HELPDESK.TABLE.FIELD"),render:d=>a(`HELPDESK.FORM.FIELDS.${d.toUpperCase()}`)},{dataIndex:"code",title:a("HELPDESK.TABLE.CODE"),render:d=>a(`HELPDESK.ERRORS_CODE.${d.toUpperCase()}`)}],l=d=>{r.setFieldValue(fa.Attachments,d.fileList)},s=d=>{n(!0);const f={...d,appName:i};qEe(f).then(()=>{Yi.success({message:a(`${YEe}.SUCCESS.TICKET`),placement:"topLeft"}),e&&e()}).catch(({response:m})=>{const{errors:p}=m.data;Yi.error({className:"table-notification",message:a("ERROR"),placement:"topLeft",description:be.jsx(Pr,{dataSource:p,columns:c,pagination:{defaultPageSize:5},rowKey:"field",size:"small",bordered:!0}),duration:0})}).finally(()=>n(!1))};return be.jsxs(y1,{className:"helpdesk__content",children:[be.jsx(Ln,{span:24,children:be.jsx(eT,{level:3,className:"helpdesk__title",children:a(`${er}.TITLE`)})}),be.jsx(Ln,{span:24,children:be.jsxs(ta,{children:[be.jsx(eT,{level:4,children:a(`${er}.FIELDS.TITLE`)}),be.jsxs(en,{form:r,layout:"vertical",onFinish:s,children:[be.jsx(br,{fieldName:fa.Name,label:a(`${er}.FIELDS.NAME`),placeholder:a(`${er}.FIELDS.NAME`,{context:"PLACEHOLDER"}),rules:o}),be.jsx(br,{fieldName:fa.Email,label:a(`${er}.FIELDS.EMAIL`),placeholder:a(`${er}.FIELDS.EMAIL`,{context:"PLACEHOLDER"}),rules:o}),be.jsx(br,{fieldName:fa.Subject,label:a(`${er}.FIELDS.SUBJECT`),placeholder:a(`${er}.FIELDS.SUBJECT`,{context:"PLACEHOLDER"}),rules:o}),be.jsx(wze,{fieldName:fa.Description,label:a(`${er}.FIELDS.DESCRIPTION`),placeholder:a(`${er}.FIELDS.DESCRIPTION`,{context:"PLACEHOLDER"}),rows:4,rules:o}),be.jsx(en.Item,{name:fa.Attachments,children:be.jsxs(cs,{beforeUpload:()=>!1,maxCount:5,onChange:l,className:"helpdesk__fields-files",multiple:!0,children:[be.jsx("p",{className:"ant-upload-drag-icon",children:be.jsx(Tu,{})}),be.jsx(fI,{i18nKey:a(`${er}.FIELDS.UPLOAD_FILES`),components:{strong:be.jsx("strong",{}),br:be.jsx("br",{}),small:be.jsx("small",{})}})]})}),be.jsx(dn,{htmlType:"submit",type:"primary",icon:be.jsx(vr,{icon:GEe}),loading:t,disabled:t,block:!0,children:a(`${er}.BUTTONS.SEND`)})]})]})})]})};eie.add(xMe);const QEe=({size:e})=>{const[t,n]=O.useState(!1),{t:r}=r2(),a=()=>n(c=>!c),o=()=>n(!1),i=()=>{switch(e){case"small":return"1x";case"large":return"xl";default:return"lg"}};return be.jsx(nw,{children:be.jsx(y1,{align:"middle",children:be.jsx(Xl,{placement:"bottomRight",trigger:"click",content:be.jsx(XEe,{onCancel:o}),rootClassName:"helpdesk__container",overlayInnerStyle:{padding:0},arrow:!1,open:t,destroyTooltipOnHide:!0,children:be.jsx(c1,{title:r("HELPDESK.SUPPORT"),placement:"left",children:be.jsx(dn,{type:"primary",shape:"circle",icon:be.jsx(vr,{icon:dz,size:i()}),onClick:a,size:e})})})})})},JEe=C3()(QEe);var Vt=(e=>(e.App="idApp",e.Version="version",e.DeployDate="releaseDate",e.ReleasePages="gaReleasePages",e.Fields="gaReleasePagesContent",e.Title="title",e.Description="description",e.Image="idFile",e.Order="order",e.NoImage="noImage",e))(Vt||{}),Ef=(e=>(e.GetApps="GetApps",e.GetReleases="GetReleases",e.GetUser="GetUser",e))(Ef||{});const ZEe=async()=>{const e=window.globalAuthUrl,{data:t}=await I2.get(`${e}/getApps`);return t},eNe=async e=>{const t=window.globalAuthUrl,{data:n}=await I2.post(`${t}/ListReleases`,e);return n},tNe=async e=>{const t=window.globalAuthUrl,{data:n}=await I2.post(`${t}/MaintainReleases`,e);return n},nNe=async(e,t)=>{const n=window.globalAuthUrl,{data:r}=await I2.post(`${n}/ReadNotification`,{idRelease:e,userId:t});return r},tT=()=>E7([Ef.GetApps],async()=>await ZEe()),rNe=e=>{const{idApp:t,userId:n,lastDeployed:r}=e;return E7([Ef.GetReleases,t,n,r],async()=>await eNe(e),{enabled:!!t})},aNe=({index:e})=>{const{t}=r2(),{requiredField:n}=js();return be.jsx(en.List,{name:[e,Vt.Fields],children:(r,{add:a,remove:o})=>be.jsxs(be.Fragment,{children:[be.jsx(Bs,{fieldName:"idReleasePage",hidden:!0}),be.jsxs(pr,{gap:16,vertical:!0,children:[r.map(({key:i,name:c,...l})=>be.jsxs(pr,{gap:6,align:"center",children:[be.jsxs(pr,{vertical:!0,gap:2,style:{width:"100%"},children:[be.jsx(en.Item,{...l,name:[c,Vt.Title],rules:n,noStyle:!0,children:be.jsx(zr,{placeholder:t("RELEASE-NOTES.FORM.FIELDS.TITLE"),maxLength:500})}),be.jsx(en.Item,{...l,name:[c,Vt.Description],rules:n,noStyle:!0,children:be.jsx(du,{autoSize:{minRows:2},placeholder:t("RELEASE-NOTES.FORM.FIELDS.DESCRIPTION")})})]}),be.jsx(en.Item,{noStyle:!0,children:be.jsx(c1,{title:t("GENERAL.REMOVE"),children:be.jsx(dn,{type:"text",icon:be.jsx(bS,{}),onClick:()=>o(c),disabled:r.length===1})})})]},i)),be.jsx(en.Item,{children:be.jsx(dn,{type:"dashed",onClick:()=>a(),icon:be.jsx(S0,{}),block:!0,children:t("RELEASE-NOTES.FORM.ADD_NEW_FIELD")})})]})]})})},oNe=O.forwardRef(({changeSlide:e},t)=>{const[n,r]=O.useState([]),{t:a}=r2(),o=en.useFormInstance(),i=en.useWatch(Vt.ReleasePages,o),c=s=>({file:d,fileList:f})=>{const m=s[0],p=s[1],h=i[m];r(f),Kx(d.originFileObj,v=>{o.setFieldValue(Vt.ReleasePages,i.toSpliced(m,1,{...h,[p]:v}))})},l=be.jsx(y1,{justify:"center",align:"middle",children:be.jsxs(k0,{direction:"vertical",children:[be.jsx("p",{className:"ant-upload-drag-icon",children:be.jsx(Tu,{})}),be.jsx("p",{className:"ant-upload-text",children:a("GENERAL.UPLOAD_LABEL")}),be.jsx("p",{className:"ant-upload-hint",children:a("GENERAL.JPG_PNG_WARNING")})]})});return be.jsx(en.List,{name:Vt.ReleasePages,children:s=>be.jsxs(be.Fragment,{children:[be.jsx(Bs,{fieldName:"idRelease",hidden:!0}),be.jsx(Bs,{fieldName:"idReleasePage",hidden:!0}),be.jsx(X8,{infinite:!1,ref:t,afterChange:e,onReInit:()=>{var d;return(d=t.current)==null?void 0:d.goTo((i==null?void 0:i.length)-1)},adaptiveHeight:!0,children:s.map(({key:d,name:f,...m})=>{var v,g;const p=(v=i==null?void 0:i[f])==null?void 0:v[Vt.Image],h=(g=i==null?void 0:i[f])==null?void 0:g[Vt.NoImage];return be.jsx("div",{children:be.jsxs(y1,{gutter:[8,16],style:{marginBottom:35},justify:"end",children:[be.jsx(Ln,{span:24,children:be.jsxs(y1,{gutter:8,children:[be.jsx(Ln,{span:h?24:12,children:be.jsx(aNe,{index:f})}),!h&&be.jsx(Ln,{span:12,children:be.jsx(ta,{bordered:!0,styles:{body:{display:"flex",justifyContent:"center",padding:2}},children:be.jsx(en.Item,{...m,name:[f,Vt.Image],noStyle:!0,children:be.jsx(cs,{listType:"picture",className:"release-notes-image",showUploadList:!1,fileList:n,beforeUpload:eae,onChange:c([f,Vt.Image]),children:p?be.jsx(B0,{src:p,preview:!1,style:{maxHeight:600}}):l})})})})]})}),be.jsx(Ln,{span:12,children:be.jsx(pr,{justify:"center",children:be.jsx(xze,{fieldName:[f,Vt.NoImage],label:a("GENERAL.DO_NOT_USE_IMAGE"),onChange:C=>{const b=C.target.checked,y=i.map((x,S)=>({...x,[Vt.NoImage]:S===f?b:x[Vt.NoImage],[Vt.Image]:S===f&&b?void 0:x[Vt.Image]}));o.setFieldValue(Vt.ReleasePages,y)}})})})]})},d)})})]})})}),a2="RELEASE-NOTES",iNe=({addBtnLabel:e,addBtnTooltipText:t,release2edit:n,beforeOpenModal:r,beforeCloseModal:a,afterSubmit:o})=>{const[i,c]=O.useState(!1),[l,s]=O.useState(!1),[d,f]=O.useState(0),[m]=en.useForm(),{t:p}=r2(),h=Fs(),{getColor:v}=Cze(),g=O.useRef(null),{requiredField:C}=js(),{data:b}=tT(),y=en.useWatch(Vt.ReleasePages,m),x=A=>f(A),S=()=>m.resetFields();O.useEffect(()=>{n&&(c(!0),m.setFieldsValue({...n,[Vt.ReleasePages]:n[Vt.ReleasePages].map(A=>({...A,[Vt.Image]:L5(A[Vt.Image])})),[Vt.DeployDate]:Qn(n[Vt.DeployDate])}))},[n]);const w=()=>{r?new Promise(A=>A(r())).then(()=>c(!0)):c(!0)},L=()=>{a?new Promise(A=>A(a())).then(()=>c(!1)):c(!1)},M=()=>{m.setFieldValue(Vt.ReleasePages,[...y,{[Vt.Fields]:[{}]}])},z=()=>{m.setFieldValue(Vt.ReleasePages,y.filter((A,_)=>_!==d))},E=A=>{const _={...A,[Vt.DeployDate]:Qn(A[Vt.DeployDate]).format(ZR),[Vt.ReleasePages]:A[Vt.ReleasePages].map((F,V)=>({...F,[Vt.Image]:Ux(F[Vt.Image]),order:V,[Vt.Fields]:F[Vt.Fields].map((j,W)=>({...j,order:W}))}))};tNe(_).then(()=>{S(),qi.success(p("GENERAL.MESSAGES.SUCCESS.ITEM_CREATE",{item:p(`${a2}.TEXT_SINGULAR`)})),o&&o()}).catch(F=>{var j;const V=((j=F.response)==null?void 0:j.data)??[];Yi.error({message:p("GENERAL.ERROR"),description:be.jsx(Nu,{dataSource:V,renderItem:W=>be.jsx(Nu.Item,{children:p(`GENERAL.MESSAGES.ERROR.RELEASE_NOTE.${W.error}`)})})})}).finally(L)},P=d===0,I=d===(y==null?void 0:y.length)-1,k=(y==null?void 0:y.length)<=1,$=be.jsxs(pr,{justify:"flex-end",gap:8,children:[be.jsx(dn,{type:"dashed",icon:be.jsx(vr,{icon:CO}),onClick:()=>{var A;return(A=g.current)==null?void 0:A.prev()},disabled:P,children:p("GENERAL.BACK")}),be.jsx(dn,{type:"dashed",iconPosition:"end",icon:be.jsx(vr,{icon:yO}),onClick:()=>{var A;return(A=g.current)==null?void 0:A.next()},disabled:I,children:p("GENERAL.NEXT")}),be.jsx(dn,{type:"dashed",danger:!0,icon:be.jsx(vr,{icon:yN}),onClick:z,disabled:k,children:p(`${a2}.REMOVE_CURRENT_SLIDE`)}),be.jsx(dn,{type:"dashed",icon:be.jsx(vr,{icon:XO}),onClick:M,children:p(`${a2}.ADD_NEW_SLIDE`)}),be.jsx(dn,{type:"primary",icon:be.jsx(vr,{icon:cN}),onClick:()=>m.submit(),children:p("GENERAL.SAVE")})]}),T=A=>{s(t?A:!1)},R={[Vt.ReleasePages]:[{[Vt.Fields]:[{}]}],[Vt.DeployDate]:Qn()},N=tae(b??[],"appName","id"),D=O.useMemo(()=>p(`${a2}.${n?"UPD_RELEASE_NOTE":"ADD_RELEASE_NOTE"}`),[h]);return be.jsxs(be.Fragment,{children:[be.jsx(c1,{title:t,open:l,onOpenChange:T,children:be.jsx(dn,{type:"primary",icon:be.jsx(vr,{icon:pE}),shape:e?"default":"circle",onClick:w,children:e})}),be.jsx(S1,{open:i,title:D,onCancel:L,width:"60%",footer:$,destroyOnClose:!0,children:be.jsxs(en,{form:m,layout:"vertical",initialValues:R,onFinish:E,children:[be.jsx(Bs,{fieldName:"idRelease",hidden:!0}),be.jsxs(y1,{gutter:10,children:[be.jsx(Ln,{span:8,children:be.jsx(yze,{fieldName:Vt.App,label:p(`${a2}.FORM.FIELDS.APP`),placeholder:p(`${a2}.FORM.FIELDS.APP`,{context:"PLACEHOLDER"}),options:N,rules:C})}),be.jsx(Ln,{span:8,children:be.jsx(br,{fieldName:Vt.Version,label:p(`${a2}.FORM.FIELDS.VERSION`),placeholder:"0.0.0",tooltip:p(`${a2}.FORM.FIELDS.VERSION`,{context:"TOOLTIP"}),normalize:A=>A.replace(/\s/,".").replace(/[.]{2}/g,".").replace(/^[^0-9]|[^0-9.\b]/g,""),rules:[...C,()=>({validator(A,_){var j,W;const F=/[^0-9]$/,V=(W=(j=_==null?void 0:_.split("."))==null?void 0:j.filter(Boolean))==null?void 0:W.length;return F.test(_)?Promise.reject(new Error(p("GENERAL.FORM.ERRORS.VERSION"))):V>3||V<3?Promise.reject(new Error(p("GENERAL.FORM.ERRORS.FORMAT"))):Promise.resolve()}})]})}),be.jsx(Ln,{span:8,children:be.jsx(Sze,{fieldName:Vt.DeployDate,label:p(`${a2}.FORM.FIELDS.DEPLOY_DATE`),format:JR,rules:C})}),be.jsx(Ln,{span:24,children:be.jsx(ta,{styles:{body:{background:v("PrimaryColorBgContainer")}},children:be.jsx(oNe,{ref:g,changeSlide:x})})})]})]})})]})},{Title:cNe,Text:lNe}=vo,sNe=()=>{var M,z;const[e,t]=O.useState(!1),[n,r]=O.useState(!1),[a,o]=O.useState(0),{t:i}=r2(),c=Fs(),l=O.useRef(null),s=M2(W1.AppId),d=M2(W1.UserID),{data:f}=tT(),{data:m}=rNe({idApp:s,lastDeployed:!0,userId:d}),p=m==null?void 0:m[0],h=f==null?void 0:f.find(E=>E.id===s);O.useEffect(()=>{if(m!=null&&m.length){const E=m[0],P=!E.readRelease&&!!E.isDeployed;t(P)}},[m]);const v=()=>{const E=m==null?void 0:m[0];n&&(E!=null&&E.isDeployed)&&nNe(E==null?void 0:E.idRelease,d),t(!1)},g=()=>{var E;return(E=l.current)==null?void 0:E.next()},C=()=>{var E;return(E=l.current)==null?void 0:E.prev()},b=E=>o(E),y=a===0,x=a===(((M=p==null?void 0:p.gaReleasePages)==null?void 0:M.length)??0)-1,S=E=>r(E.target.checked),w=be.jsxs(pr,{justify:"space-between",align:"center",children:[be.jsx(Jr,{checked:n,onChange:S,children:i("RELEASE-NOTES.FORM.FIELDS.DO_NOT_SHOW_AGAIN")}),be.jsxs(pr,{gap:8,children:[!y&&be.jsx(dn,{onClick:C,children:i("Prev")}),!x&&be.jsx(dn,{type:"primary",onClick:g,children:i("GENERAL.ACTIONS.NEXT")}),x&&be.jsx(dn,{type:"primary",onClick:v,children:i("GENERAL.ACTIONS.CLOSE")})]})]}),L=O.useMemo(()=>i("RELEASE-NOTES.WHATS_NEWS",{app:h==null?void 0:h.appName,version:p==null?void 0:p.version}),[c]);return be.jsx(S1,{open:e,title:L,onCancel:v,width:"70%",footer:w,children:be.jsx(X8,{infinite:!1,ref:l,afterChange:b,children:(z=p==null?void 0:p.gaReleasePages)==null?void 0:z.map(({idFile:E,gaReleasePagesContent:P},I)=>be.jsx("div",{children:be.jsxs(y1,{gutter:[16,16],style:{marginBottom:35},children:[be.jsx(Ln,{span:E?12:24,children:be.jsx(pr,{gap:16,vertical:!0,children:P.map(({title:k,description:$},T)=>be.jsxs(pr,{vertical:!0,children:[be.jsx(cNe,{level:5,children:k}),be.jsx(lNe,{style:{opacity:.5},children:$})]},`${I}-${T}`))})}),!!E&&be.jsx(Ln,{span:12,children:be.jsx(pr,{justify:"center",children:be.jsx(ta,{bordered:!0,styles:{body:{display:"flex",justifyContent:"center",padding:2}},children:be.jsx(B0,{src:L5(E),style:{maxHeight:600,borderRadius:8}})})})})]})},I))})})},nT=new S7({defaultOptions:{queries:{retry:2}}}),uNe=({showAddBtn:e,...t})=>e?be.jsx(M5,{children:be.jsx(z3,{client:nT,children:be.jsx(iNe,{...t})})}):be.jsx(M5,{children:be.jsx(z3,{client:nT,children:be.jsx(sNe,{})})}),dNe=C3()(uNe);var u1=(e=>(e.FirstName="firstName",e.LastName="lastName",e.Username="username",e.Email="email",e.ProfilePicture="profilePicture",e.Password="password",e.ConfirmPassword="confirmPassword",e.Apps="userRolesApp",e.AppId="idApp",e.RoleId="roleId",e.Tenants="tenantId",e.Active="isActive",e.Private="isPrivate",e.User="userId",e.Hierarchy="hierarchy",e))(u1||{}),Qs=(e=>(e.Tab1="PROFILE",e.Tab2="MANAGEMENT",e))(Qs||{}),rT=(e=>(e[e.GA_USER_EMPTY=0]="GA_USER_EMPTY",e[e.GA_EMAIL_EMPTY=1]="GA_EMAIL_EMPTY",e[e.GA_USER_ID_EMPTY=2]="GA_USER_ID_EMPTY",e[e.GA_PASS_EMPTY=3]="GA_PASS_EMPTY",e[e.GA_PASS_NOT_MATCH=4]="GA_PASS_NOT_MATCH",e[e.GA_USERNAME_EXISTS=5]="GA_USERNAME_EXISTS",e[e.GA_EMAIL_EXISTS=6]="GA_EMAIL_EXISTS",e[e.GA_NO_ROLES_APP_DEFINED=7]="GA_NO_ROLES_APP_DEFINED",e[e.GA_DUPLICATED_RECORDS_SAME_TENANT_ROLE_APP=8]="GA_DUPLICATED_RECORDS_SAME_TENANT_ROLE_APP",e[e.GA_CANNOT_GET_USER_INFO=9]="GA_CANNOT_GET_USER_INFO",e[e.GA_ERROR_CHAGING_PASS=10]="GA_ERROR_CHAGING_PASS",e[e.GA_NO_TENANTS_ROLES_DEFINDED=11]="GA_NO_TENANTS_ROLES_DEFINDED",e[e.GA_PASS_DOES_NOT_MEET_REQUIREMENTS=12]="GA_PASS_DOES_NOT_MEET_REQUIREMENTS",e))(rT||{});const Ft=e=>typeof e=="string",bc=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},aT=e=>e==null?"":""+e,fNe=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},mNe=/###/g,oT=e=>e&&e.indexOf("###")>-1?e.replace(mNe,"."):e,iT=e=>!e||Ft(e),Cc=(e,t,n)=>{const r=Ft(t)?t.split("."):t;let a=0;for(;a<r.length-1;){if(iT(e))return{};const o=oT(r[a]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++a}return iT(e)?{}:{obj:e,k:oT(r[a])}},cT=(e,t,n)=>{const{obj:r,k:a}=Cc(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),c=Cc(e,i,Object);for(;c.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),c=Cc(e,i,Object),c!=null&&c.obj&&typeof c.obj[`${c.k}.${o}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${o}`]=n},pNe=(e,t,n,r)=>{const{obj:a,k:o}=Cc(e,t,Object);a[o]=a[o]||[],a[o].push(n)},Js=(e,t)=>{const{obj:n,k:r}=Cc(e,t);if(n)return n[r]},gNe=(e,t,n)=>{const r=Js(e,n);return r!==void 0?r:Js(t,n)},lT=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Ft(e[r])||e[r]instanceof String||Ft(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):lT(e[r],t[r],n):e[r]=t[r]);return e},No=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var hNe={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const vNe=e=>Ft(e)?e.replace(/[&<>"'\/]/g,t=>hNe[t]):e;class bNe{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const CNe=[" ",",","?","!",";"],yNe=new bNe(20),SNe=(e,t,n)=>{t=t||"",n=n||"";const r=CNe.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const a=yNe.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!a.test(e);if(!o){const i=e.indexOf(n);i>0&&!a.test(e.substring(0,i))&&(o=!0)}return o},Nf=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let a=e;for(let o=0;o<r.length;){if(!a||typeof a!="object")return;let i,c="";for(let l=o;l<r.length;++l)if(l!==o&&(c+=n),c+=r[l],i=a[c],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&l<r.length-1)continue;o+=l-o+1;break}a=i}return a},Zs=e=>e==null?void 0:e.replace("_","-"),xNe={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class e3{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||xNe,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,a){return a&&!this.debug?null:(Ft(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new e3(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e3(this.logger,t)}}var Dr=new e3;class t3{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[c,l]=i;for(let s=0;s<l;s++)c(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[c,l]=i;for(let s=0;s<l;s++)c.apply(c,[t,...r])})}}class sT extends t3{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){var s,d;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],r&&(Array.isArray(r)?c.push(...r):Ft(r)&&o?c.push(...r.split(o)):c.push(r)));const l=Js(this.data,c);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=c[0],n=c[1],r=c.slice(2).join(".")),l||!i||!Ft(r)?l:Nf((d=(s=this.data)==null?void 0:s[t])==null?void 0:d[n],r,o)}addResource(t,n,r,a){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let c=[t,n];r&&(c=c.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(c=t.split("."),a=n,n=c[1]),this.addNamespaces(n),cT(this.data,c,a),o.silent||this.emit("added",t,n,r,a)}addResources(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(Ft(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),a=r,r=n,n=c[1]),this.addNamespaces(n);let l=Js(this.data,c)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?lT(l,r,o):l={...l,...r},cT(this.data,c,l),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var uT={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(o=>{var i;t=((i=this.processors[o])==null?void 0:i.process(t,n,r,a))??t}),t}};const dT={};class n3 extends t3{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),fNe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Dr.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return(r==null?void 0:r.res)!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!SNe(t,r,a);if(i&&!c){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:Ft(o)?[o]:o};const s=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),t=s.join(a)}return{key:t,namespaces:Ft(o)?[o]:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:c}=this.extractFromKey(t[t.length-1],n),l=c[c.length-1],s=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((s==null?void 0:s.toLowerCase())==="cimode"){if(d){const x=n.nsSeparator||this.options.nsSeparator;return a?{res:`${l}${x}${i}`,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${x}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:i}const f=this.resolve(t,n);let m=f==null?void 0:f.res;const p=(f==null?void 0:f.usedKey)||i,h=(f==null?void 0:f.exactUsedKey)||i,v=Object.prototype.toString.apply(m),g=["[object Number]","[object Function]","[object RegExp]"],C=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!Ft(m)&&typeof m!="boolean"&&typeof m!="number";if(b&&m&&y&&g.indexOf(v)<0&&!(Ft(C)&&Array.isArray(m))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const x=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,m,{...n,ns:c}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(f.res=x,f.usedParams=this.getUsedParamsDetails(n),f):x}if(o){const x=Array.isArray(m),S=x?[]:{},w=x?h:p;for(const L in m)if(Object.prototype.hasOwnProperty.call(m,L)){const M=`${w}${o}${L}`;S[L]=this.translate(M,{...n,joinArrays:!1,ns:c}),S[L]===M&&(S[L]=m[L])}m=S}}else if(b&&Ft(C)&&Array.isArray(m))m=m.join(C),m&&(m=this.extendTranslation(m,t,n,r));else{let x=!1,S=!1;const w=n.count!==void 0&&!Ft(n.count),L=n3.hasDefaultValue(n),M=w?this.pluralResolver.getSuffix(s,n.count,n):"",z=n.ordinal&&w?this.pluralResolver.getSuffix(s,n.count,{ordinal:!1}):"",E=w&&!n.ordinal&&n.count===0,P=E&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${M}`]||n[`defaultValue${z}`]||n.defaultValue;!this.isValidLookup(m)&&L&&(x=!0,m=P),this.isValidLookup(m)||(S=!0,m=i);const k=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:m,$=L&&P!==m&&this.options.updateMissing;if(S||x||$){if(this.logger.log($?"updateKey":"missingKey",s,l,i,$?P:m),o){const D=this.resolve(i,{...n,keySeparator:!1});D&&D.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 T=[];const R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&R&&R[0])for(let D=0;D<R.length;D++)T.push(R[D]);else this.options.saveMissingTo==="all"?T=this.languageUtils.toResolveHierarchy(n.lng||this.language):T.push(n.lng||this.language);const N=(D,A,_)=>{var V;const F=L&&_!==m?_:k;this.options.missingKeyHandler?this.options.missingKeyHandler(D,l,A,F,$,n):(V=this.backendConnector)!=null&&V.saveMissing&&this.backendConnector.saveMissing(D,l,A,F,$,n),this.emit("missingKey",D,l,A,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&w?T.forEach(D=>{const A=this.pluralResolver.getSuffixes(D,n);E&&n[`defaultValue${this.options.pluralSeparator}zero`]&&A.indexOf(`${this.options.pluralSeparator}zero`)<0&&A.push(`${this.options.pluralSeparator}zero`),A.forEach(_=>{N([D],i+_,n[`defaultValue${_}`]||P)})}):N(T,i,P))}m=this.extendTranslation(m,t,n,f,r),S&&m===i&&this.options.appendNamespaceToMissingKey&&(m=`${l}:${i}`),(S||x)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,x?m:void 0))}return a?(f.res=m,f.usedParams=this.getUsedParamsDetails(n),f):m}extendTranslation(t,n,r,a,o){var s,d;var i=this;if((s=this.i18nFormat)!=null&&s.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=Ft(t)&&(((d=r==null?void 0:r.interpolation)==null?void 0:d.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(f){const h=t.match(this.interpolator.nestingRegexp);m=h&&h.length}let p=r.replace&&!Ft(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language||a.usedLng,r),f){const h=t.match(this.interpolator.nestingRegexp),v=h&&h.length;m<v&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,v=new Array(h),g=0;g<h;g++)v[g]=arguments[g];return(o==null?void 0:o[0])===v[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):i.translate(...v,n)},r)),r.interpolation&&this.interpolator.reset()}const c=r.postProcess||this.options.postProcess,l=Ft(c)?[c]:c;return t!=null&&(l!=null&&l.length)&&r.applyPostProcessor!==!1&&(t=uT.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a,o,i,c;return Ft(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const s=this.extractFromKey(l,n),d=s.key;a=d;let f=s.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const m=n.count!==void 0&&!Ft(n.count),p=m&&!n.ordinal&&n.count===0,h=n.context!==void 0&&(Ft(n.context)||typeof n.context=="number")&&n.context!=="",v=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(g=>{var C,b;this.isValidLookup(r)||(c=g,!dT[`${v[0]}-${g}`]&&((C=this.utils)!=null&&C.hasLoadedNamespace)&&!((b=this.utils)!=null&&b.hasLoadedNamespace(c))&&(dT[`${v[0]}-${g}`]=!0,this.logger.warn(`key "${a}" for languages "${v.join(", ")}" won't get resolved as namespace "${c}" 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!!!")),v.forEach(y=>{var w;if(this.isValidLookup(r))return;i=y;const x=[d];if((w=this.i18nFormat)!=null&&w.addLookupKeys)this.i18nFormat.addLookupKeys(x,d,y,g,n);else{let L;m&&(L=this.pluralResolver.getSuffix(y,n.count,n));const M=`${this.options.pluralSeparator}zero`,z=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(x.push(d+L),n.ordinal&&L.indexOf(z)===0&&x.push(d+L.replace(z,this.options.pluralSeparator)),p&&x.push(d+M)),h){const E=`${d}${this.options.contextSeparator}${n.context}`;x.push(E),m&&(x.push(E+L),n.ordinal&&L.indexOf(z)===0&&x.push(E+L.replace(z,this.options.pluralSeparator)),p&&x.push(E+M))}}let S;for(;S=x.pop();)this.isValidLookup(r)||(o=S,r=this.getResource(y,g,S,n))}))})}),{res:r,usedKey:a,exactUsedKey:o,usedLng:i,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){var o;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(o=this.i18nFormat)!=null&&o.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Ft(t.replace);let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const o of n)delete a[o]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class fT{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Dr.create("languageUtils")}getScriptPartFromCode(t){if(t=Zs(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Zs(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Ft(t)&&t.indexOf("-")>-1){let n=Intl.getCanonicalLocales(t)[0];return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(o=>{if(o===a)return o;if(!(o.indexOf("-")<0&&a.indexOf("-")<0)&&(o.indexOf("-")>0&&a.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===a||o.indexOf(a)===0&&a.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Ft(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),a=[],o=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return Ft(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):Ft(t)&&o(this.formatLanguageCode(t)),r.forEach(i=>{a.indexOf(i)<0&&o(this.formatLanguageCode(i))}),a}}const mT={zero:0,one:1,two:2,few:3,many:4,other:5},pT={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class wNe{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Dr.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=Zs(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:a});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(r,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),pT;if(!t.match(/-|_/))return pT;const l=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(l,n)}return this.pluralRulesCache[o]=i,i}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,o)=>mT[a]-mT[o]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const gT=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=gNe(e,t,n);return!o&&a&&Ft(n)&&(o=Nf(e,n,r),o===void 0&&(o=Nf(t,n,r))),o},$f=e=>e.replace(/\$/g,"$$$$");class LNe{constructor(){var n;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Dr.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:o,prefixEscaped:i,suffix:c,suffixEscaped:l,formatSeparator:s,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:m,nestingPrefixEscaped:p,nestingSuffix:h,nestingSuffixEscaped:v,nestingOptionsSeparator:g,maxReplaces:C,alwaysFormat:b}=t.interpolation;this.escape=n!==void 0?n:vNe,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=o?No(o):i||"{{",this.suffix=c?No(c):l||"}}",this.formatSeparator=s||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=m?No(m):p||No("$t("),this.nestingSuffix=h?No(h):v||No(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=C||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,a){var p;let o,i,c;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},s=h=>{if(h.indexOf(this.formatSeparator)<0){const b=gT(n,l,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,r,{...a,...n,interpolationkey:h}):b}const v=h.split(this.formatSeparator),g=v.shift().trim(),C=v.join(this.formatSeparator).trim();return this.format(gT(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),C,r,{...a,...n,interpolationkey:g})};this.resetRegExp();const d=(a==null?void 0:a.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((p=a==null?void 0:a.interpolation)==null?void 0:p.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>$f(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?$f(this.escape(h)):$f(h)}].forEach(h=>{for(c=0;o=h.regex.exec(t);){const v=o[1].trim();if(i=s(v),i===void 0)if(typeof d=="function"){const C=d(t,o,a);i=Ft(C)?C:""}else if(a&&Object.prototype.hasOwnProperty.call(a,v))i="";else if(f){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),i="";else!Ft(i)&&!this.useRawValueToEscape&&(i=aT(i));const g=h.safeValue(i);if(t=t.replace(o[0],g),f?(h.regex.lastIndex+=i.length,h.regex.lastIndex-=o[0].length):h.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,o,i;const c=(l,s)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const f=l.split(new RegExp(`${d}[ ]*{`));let m=`{${f[1]}`;l=f[0],m=this.interpolate(m,i);const p=m.match(/'/g),h=m.match(/"/g);(((p==null?void 0:p.length)??0)%2===0&&!h||h.length%2!==0)&&(m=m.replace(/'/g,'"'));try{i=JSON.parse(m),s&&(i={...s,...i})}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,v),`${l}${d}${m}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,l};for(;a=this.nestingRegexp.exec(t);){let l=[];i={...r},i=i.replace&&!Ft(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let s=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const d=a[1].split(this.formatSeparator).map(f=>f.trim());a[1]=d.shift(),l=d,s=!0}if(o=n(c.call(this,a[1].trim(),i),i),o&&a[0]===t&&!Ft(o))return o;Ft(o)||(o=aT(o)),o||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),o=""),s&&(o=l.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:a[1].trim()}),o.trim())),t=t.replace(a[0],o),this.regexp.lastIndex=0}return t}}const MNe=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(i=>{if(i){const[c,...l]=i.split(":"),s=l.join(":").trim().replace(/^'+|'+$/g,""),d=c.trim();n[d]||(n[d]=s),s==="false"&&(n[d]=!1),s==="true"&&(n[d]=!0),isNaN(s)||(n[d]=parseInt(s,10))}})}return{formatName:t,formatOptions:n}},$o=e=>{const t={};return(n,r,a)=>{let o=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(o={...o,[a.interpolationkey]:void 0});const i=r+JSON.stringify(o);let c=t[i];return c||(c=e(Zs(r),a),t[i]=c),c(n)}};class zNe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Dr.create("formatter"),this.options=t,this.formats={number:$o((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return o=>a.format(o)}),currency:$o((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>a.format(o)}),datetime:$o((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return o=>a.format(o)}),relativetime:$o((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return o=>a.format(o,r.range||"day")}),list:$o((n,r)=>{const a=new Intl.ListFormat(n,{...r});return o=>a.format(o)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=$o(n)}format(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(c=>c.indexOf(")")>-1)){const c=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,c)].join(this.formatSeparator)}return o.reduce((c,l)=>{var f;const{formatName:s,formatOptions:d}=MNe(l);if(this.formats[s]){let m=c;try{const p=((f=a==null?void 0:a.formatParams)==null?void 0:f[a.interpolationkey])||{},h=p.locale||p.lng||a.locale||a.lng||r;m=this.formats[s](c,h,{...d,...a,...p})}catch(p){this.logger.warn(p)}return m}else this.logger.warn(`there was no format function for ${s}`);return c},t)}}const ENe=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class NNe extends t3{constructor(t,n,r){var o,i;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=Dr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],(i=(o=this.backend)==null?void 0:o.init)==null||i.call(o,r,a.backend,a)}queueLoad(t,n,r,a){const o={},i={},c={},l={};return t.forEach(s=>{let d=!0;n.forEach(f=>{const m=`${s}|${f}`;!r.reload&&this.store.hasResourceBundle(s,f)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?i[m]===void 0&&(i[m]=!0):(this.state[m]=1,d=!1,i[m]===void 0&&(i[m]=!0),o[m]===void 0&&(o[m]=!0),l[f]===void 0&&(l[f]=!0)))}),d||(c[s]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const a=t.split("|"),o=a[0],i=a[1];n&&this.emit("failedLoading",o,i,n),!n&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const c={};this.queue.forEach(l=>{pNe(l.loaded,[o],i),ENe(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(s=>{c[s]||(c[s]={});const d=l.loaded[s];d.length&&d.forEach(f=>{c[s][f]===void 0&&(c[s][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:o,callback:i});return}this.readingCalls++;const c=(s,d)=>{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(s&&d&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,a+1,o*2,i)},o);return}i(s,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const s=l(t,n);s&&typeof s.then=="function"?s.then(d=>c(null,d)).catch(c):c(null,s)}catch(s){c(s)}return}return l(t,n,c)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();Ft(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Ft(n)&&(n=[n]);const o=this.queueLoad(t,n,r,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),a=r[0],o=r[1];this.read(a,o,"read",void 0,void 0,(i,c)=>{i&&this.logger.warn(`${n}loading namespace ${o} for language ${a} failed`,i),!i&&c&&this.logger.log(`${n}loaded namespace ${o} for language ${a}`,c),this.loaded(t,i,c)})}saveMissing(t,n,r,a,o){var l,s,d,f,m;let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((s=(l=this.services)==null?void 0:l.utils)!=null&&s.hasLoadedNamespace&&!((f=(d=this.services)==null?void 0:d.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((m=this.backend)!=null&&m.create){const p={...i,isUpdate:o},h=this.backend.create.bind(this.backend);if(h.length<6)try{let v;h.length===5?v=h(t,n,r,a,p):v=h(t,n,r,a),v&&typeof v.then=="function"?v.then(g=>c(null,g)).catch(c):c(null,v)}catch(v){c(v)}else h(t,n,r,a,c,p)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const hT=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",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:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Ft(e[1])&&(t.defaultValue=e[1]),Ft(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),vT=e=>{var t,n;return Ft(e.ns)&&(e.ns=[e.ns]),Ft(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Ft(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},r3=()=>{},$Ne=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class yc extends t3{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=vT(t),this.services={},this.logger=Dr,this.modules={external:[]},$Ne(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(Ft(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=hT();this.options={...a,...this.options,...vT(n)},this.options.interpolation={...a.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Dr.init(o(this.modules.logger),this.options):Dr.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=zNe;const f=new fT(this.options);this.store=new sT(this.options.resources,this.options);const m=this.services;m.logger=Dr,m.resourceStore=this.store,m.languageUtils=f,m.pluralResolver=new wNe(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(m.formatter=o(d),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new LNe(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new NNe(o(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(p){for(var h=arguments.length,v=new Array(h>1?h-1:0),g=1;g<h;g++)v[g-1]=arguments[g];t.emit(p,...v)}),this.modules.languageDetector&&(m.languageDetector=o(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=o(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new n3(this.services,this.options),this.translator.on("*",function(p){for(var h=arguments.length,v=new Array(h>1?h-1:0),g=1;g<h;g++)v[g-1]=arguments[g];t.emit(p,...v)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=r3),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[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(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const l=bc(),s=()=>{const d=(f,m)=>{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),l.resolve(m),r(f,m)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?s():setTimeout(s,0),l}loadResources(t){var o,i;let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r3;const a=Ft(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((a==null?void 0:a.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const c=[],l=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(f=>{f!=="cimode"&&c.indexOf(f)<0&&c.push(f)})};a?l(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>l(d)),(i=(o=this.options.preload)==null?void 0:o.forEach)==null||i.call(o,s=>l(s)),this.services.backendConnector.load(c,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const a=bc();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=r3),this.services.backendConnector.reload(t,n,o=>{a.resolve(),r(o)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&uT.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const a=bc();this.emit("languageChanging",t);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},i=(l,s)=>{s?(o(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,a.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},c=l=>{var d,f;!t&&!l&&this.services.languageDetector&&(l=[]);const s=Ft(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);s&&(this.language||o(s),this.translator.language||this.translator.changeLanguage(s),(f=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||f.call(d,s)),this.loadResources(s,m=>{i(m,s)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),a}getFixedT(t,n,r){var a=this;const o=function(i,c){let l;if(typeof c!="object"){for(var s=arguments.length,d=new Array(s>2?s-2:0),f=2;f<s;f++)d[f-2]=arguments[f];l=a.options.overloadTranslationOptionHandler([i,c].concat(d))}else l={...c};l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||o.keyPrefix);const m=a.options.keySeparator||".";let p;return l.keyPrefix&&Array.isArray(i)?p=i.map(h=>`${l.keyPrefix}${m}${h}`):p=l.keyPrefix?`${l.keyPrefix}${m}${i}`:i,a.t(p,l)};return Ft(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){var a;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(a=this.translator)==null?void 0:a.translate(...n)}exists(){var a;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(a=this.translator)==null?void 0:a.exists(...n)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};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],a=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(c,l)=>{const s=this.services.backendConnector.state[`${c}|${l}`];return s===-1||s===0||s===2};if(n.precheck){const c=n.precheck(this,i);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!a||i(o,t)))}loadNamespaces(t,n){const r=bc();return this.options.ns?(Ft(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=bc();Ft(t)&&(t=[t]);const a=this.options.preload||[],o=t.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=a.concat(o),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){var a,o;if(t||(t=this.resolvedLanguage||(((a=this.languages)==null?void 0:a.length)>0?this.languages[0]:this.language)),!t)return"rtl";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=((o=this.services)==null?void 0:o.languageUtils)||new fT(hT());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new yc(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r3;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},o=new yc(a);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(c=>{o[c]=this[c]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new sT(this.store.data,a),o.services.resourceStore=o.store),o.translator=new n3(o.services,a),o.translator.on("*",function(c){for(var l=arguments.length,s=new Array(l>1?l-1:0),d=1;d<l;d++)s[d-1]=arguments[d];o.emit(c,...s)}),o.init(a,n),o.translator.options=a,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const r1=yc.createInstance();r1.createInstance=yc.createInstance,r1.createInstance,r1.dir,r1.init,r1.loadResources,r1.reloadResources,r1.use,r1.changeLanguage,r1.getFixedT;const bT=r1.t;r1.exists,r1.setDefaultNamespace,r1.hasLoadedNamespace,r1.loadNamespaces,r1.loadLanguages;const ONe=async(e,t)=>{const n="GENERAL.MESSAGES";return e.then(()=>{qi.success(bT(`${n}.SUCCESS.USERS`,{context:"UPDATE"})),t&&t()}).catch(({response:r})=>{const a=rT[r==null?void 0:r.data.code];Yi.error({message:bT(`${n}.ERROR.USERS.${a}`),duration:10})})},PNe=window.globalAuthUrl,INe=async e=>await I2.post(`${PNe}/maintainUser`,e),H1="USERS",TNe=()=>{const{t:e}=r2(),{requiredField:t}=js();return be.jsxs(y1,{gutter:8,children:[be.jsx(Ln,{span:12,children:be.jsx(br,{fieldName:u1.FirstName,label:e(`${H1}.FIRST_NAME`),placeholder:e(`${H1}.FIRST_NAME`,{context:"PLACEHOLDER"}),allowClear:!0,rules:t})}),be.jsx(Ln,{span:12,children:be.jsx(br,{fieldName:u1.LastName,label:e(`${H1}.LAST_NAME`),placeholder:e(`${H1}.LAST_NAME`,{context:"PLACEHOLDER"}),allowClear:!0,rules:t})}),be.jsx(Ln,{span:12,children:be.jsx(br,{fieldName:u1.Username,label:e(`${H1}.USERNAME`),placeholder:e(`${H1}.USERNAME`,{context:"PLACEHOLDER"}),allowClear:!0,rules:t})}),be.jsx(Ln,{span:12,children:be.jsx(br,{fieldName:u1.Email,label:e(`${H1}.EMAIL`),placeholder:e(`${H1}.EMAIL`,{context:"PLACEHOLDER"}),allowClear:!0,rules:[()=>({validator(n,r){return!(r!=null&&r.match(ek))||r!=null&&r.match(tk)||r!=null&&r.match(nk)?Promise.reject(new Error(e("GENERAL.FORM.ERRORS.EMAIL"))):Promise.resolve()}})]})}),be.jsx(Ln,{span:12,children:be.jsx(br,{fieldName:u1.Password,label:e(`${H1}.PASSWORD`),placeholder:e(`${H1}.PASSWORD`,{context:"PLACEHOLDER"}),isPassword:!0,allowClear:!0,tooltip:be.jsx(fI,{i18nKey:e(`${H1}.PASSWORD_HINT`),components:{b:be.jsx("b",{}),ul:be.jsx("ul",{}),li:be.jsx("li",{})}})})}),be.jsx(Ln,{span:12,children:be.jsx(br,{fieldName:u1.ConfirmPassword,label:e(`${H1}.PASSWORD-CONFIRM`),placeholder:e(`${H1}.PASSWORD-CONFIRM`,{context:"PLACEHOLDER"}),isPassword:!0,allowClear:!0,rules:[({getFieldValue:n})=>({validator(r,a){return!a||n(u1.Password)===a?Promise.resolve():Promise.reject(new Error(e("GENERAL.FORM.ERRORS.EMAIL")))}})]})})]})},a3="USERS",RNe=({user:e,isLoading:t,isOpen:n,onCancel:r})=>{const[a]=en.useForm(),o=Fs(),{t:i}=r2(),c=en.useWatch(u1.ProfilePicture,a);O.useEffect(()=>(e&&a.setFieldsValue({...e,[u1.ProfilePicture]:L5(e.profilePicture)}),()=>{a.resetFields()}),[e]);const l=p=>{const h={...e,...p,[u1.ProfilePicture]:Ux(p==null?void 0:p[u1.ProfilePicture])};ONe(INe(h),r)},s=p=>{p.stopPropagation(),a.setFieldValue(u1.ProfilePicture,void 0)},d=p=>(Kx(p,h=>{a.setFieldValue(u1.ProfilePicture,h)}),!1),f=be.jsxs("div",{children:[be.jsx(S0,{}),be.jsx("div",{style:{marginTop:8},children:i("UPLOAD")})]}),m=O.useMemo(()=>[{label:be.jsxs("span",{children:[be.jsx(vr,{icon:DM,style:{marginRight:5}}),i(`${a3}.${Qs.Tab1}`)]}),key:Qs.Tab1,children:be.jsx(TNe,{}),forceRender:!0}],[o]);return be.jsx(nw,{children:be.jsx(S1,{title:i(`${a3}.EDIT`,{context:"USER"}),onOk:()=>a.submit(),onCancel:r,open:n,destroyOnClose:!0,maskClosable:!1,okText:i(`${a3}.SUBMIT`),cancelText:i(`${a3}.CANCEL`),style:{maxWidth:900},okButtonProps:{loading:t},children:be.jsxs(en,{name:"user-management",form:a,onFinish:l,layout:"vertical",children:[be.jsxs(y1,{children:[be.jsx(br,{fieldName:u1.User,hidden:!0}),be.jsx(Ln,{span:24,children:be.jsx(y1,{justify:"center",children:be.jsx(en.Item,{name:u1.ProfilePicture,children:be.jsx(x5,{listType:"picture-circle",className:"avatar-uploader",beforeUpload:d,maxCount:1,showUploadList:!1,accept:"image/png, image/jpeg",children:c?be.jsxs(y1,{className:"float-btn-container",children:[be.jsx(nv,{src:c,size:"small",alt:"userProfile",style:{height:"100%",width:"100%"}}),be.jsx(c1,{title:i("Remove"),placement:"bottom",children:be.jsx(dn,{shape:"circle",size:"small",icon:be.jsx(Pu,{}),className:"float-btn",onClick:s})})]}):f})})})})]}),be.jsx(M0,{defaultActiveKey:Qs.Tab1,type:"card",size:"small",items:m})]})})})},kNe=C3()(RNe),{slice:DNe,forEach:_Ne}=[];function ANe(e){return _Ne.call(DNe.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}const CT=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,FNe=(e,t,n)=>{const r=n||{};r.path=r.path||"/";const a=encodeURIComponent(t);let o=`${e}=${a}`;if(r.maxAge>0){const i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(i)}`}if(r.domain){if(!CT.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!CT.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o},yT={create(e,t,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=FNe(e,encodeURIComponent(t),a)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let a=n[r];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}return null},remove(e){this.create(e,"",-1)}};var jNe={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return yT.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:a,cookieOptions:o}=t;n&&typeof document<"u"&&yT.create(n,e,r,a,o)}},BNe={name:"querystring",lookup(e){var r;let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:a}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));const i=a.substring(1).split("&");for(let c=0;c<i.length;c++){const l=i[c].indexOf("=");l>0&&i[c].substring(0,l)===t&&(n=i[c].substring(l+1))}}return n}};let Sc=null;const ST=()=>{if(Sc!==null)return Sc;try{Sc=window!=="undefined"&&window.localStorage!==null;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Sc=!1}return Sc};var HNe={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&ST())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&ST()&&window.localStorage.setItem(n,e)}};let xc=null;const xT=()=>{if(xc!==null)return xc;try{xc=window!=="undefined"&&window.sessionStorage!==null;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{xc=!1}return xc};var VNe={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&xT())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&xT()&&window.sessionStorage.setItem(n,e)}},WNe={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let o=0;o<n.length;o++)t.push(n[o]);r&&t.push(r),a&&t.push(a)}return t.length>0?t:void 0}},KNe={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},UNe={name:"path",lookup(e){var a;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(a=n[typeof t=="number"?t:0])==null?void 0:a.replace("/",""):void 0}},qNe={name:"subdomain",lookup(e){var a,o;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((o=(a=window.location)==null?void 0:a.hostname)==null?void 0:o.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};function GNe(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}}class wT{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=ANe(n,this.options||{},GNe()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(jNe),this.addDetector(BNe),this.addDetector(HNe),this.addDetector(VNe),this.addDetector(WNe),this.addDetector(KNe),this.addDetector(UNe),this.addDetector(qNe)}addDetector(t){return this.detectors[t.name]=t,this}detect(t){t||(t=this.options.order);let n=[];return t.forEach(r=>{if(this.detectors[r]){let a=this.detectors[r].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(n=n.concat(a))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}wT.type="languageDetector",r1.use(wT).use(lze).init({debug:!1,fallbackLng:"PT",interpolation:{escapeValue:!1}}),Zn.Helpdesk=JEe,Zn.ReleaseNote=dNe,Zn.UserModal=kNe,Zn.i18n=r1,Object.defineProperty(Zn,Symbol.toStringTag,{value:"Module"})});
|