@nizza/core 0.4.5-alpha.4 → 0.4.5-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var hn=Object.defineProperty;var gn=(n,e,t)=>e in n?hn(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var T=(n,e,t)=>(gn(n,typeof e!="symbol"?e+"":e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react"),kn=require("react/jsx-runtime");function vn(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const j=vn(_);let Sn=0;function yn(n,e){const t=`atom${++Sn}`,i={toString:()=>t};return typeof n=="function"?i.read=n:(i.init=n,i.read=function(a){return a(this)},i.write=function(a,s,r){return s(this,typeof r=="function"?r(a(this)):r)}),e&&(i.write=e),i}const ze=n=>"init"in n,Be=n=>!!n.write,ce=new WeakMap,Nn=(n,e)=>{ce.set(n,e),n.catch(()=>{}).finally(()=>ce.delete(n))},Ge=(n,e)=>{const t=ce.get(n);t&&(ce.delete(n),t(e))},Je=(n,e)=>{n.status="fulfilled",n.value=e},Qe=(n,e)=>{n.status="rejected",n.reason=e},bn=n=>typeof(n==null?void 0:n.then)=="function",Z=(n,e)=>!!n&&"v"in n&&"v"in e&&Object.is(n.v,e.v),We=(n,e)=>!!n&&"e"in n&&"e"in e&&Object.is(n.e,e.e),B=n=>!!n&&"v"in n&&n.v instanceof Promise,Fn=(n,e)=>"v"in n&&"v"in e&&n.v.orig&&n.v.orig===e.v.orig,oe=n=>{if("e"in n)throw n.e;return n.v},Ot=()=>{const n=new WeakMap,e=new WeakMap,t=new Map;let i,a;const s=p=>n.get(p),r=(p,m)=>{const g=n.get(p);if(n.set(p,m),t.has(p)||t.set(p,g),B(g)){const h="v"in m?m.v instanceof Promise?m.v:Promise.resolve(m.v):Promise.reject(m.e);g.v!==h&&Ge(g.v,h)}},o=(p,m,g)=>{const h=new Map;let N=!1;g.forEach((O,b)=>{!O&&b===p&&(O=m),O&&(h.set(b,O),m.d.get(b)!==O&&(N=!0))}),(N||m.d.size!==h.size)&&(m.d=h)},d=(p,m,g)=>{const h=s(p),N={d:(h==null?void 0:h.d)||new Map,v:m};if(g&&o(p,N,g),Z(h,N)&&h.d===N.d)return h;if(B(h)&&B(N)&&Fn(h,N)){if(h.d===N.d)return h;N.v=h.v}return r(p,N),N},l=(p,m,g,h)=>{if(bn(m)){let N;const O=()=>{const R=s(p);if(!B(R)||R.v!==b)return;const D=d(p,b,g);e.has(p)&&R.d!==D.d&&L(p,D,R.d)},b=new Promise((R,D)=>{let C=!1;m.then(A=>{C||(C=!0,Je(b,A),R(A),O())},A=>{C||(C=!0,Qe(b,A),D(A),O())}),N=A=>{C||(C=!0,A.then(V=>Je(b,V),V=>Qe(b,V)),R(A))}});return b.orig=m,b.status="pending",Nn(b,R=>{R&&N(R),h==null||h()}),d(p,b,g)}return d(p,m,g)},u=(p,m,g)=>{const h=s(p),N={d:(h==null?void 0:h.d)||new Map,e:m};return g&&o(p,N,g),We(h,N)&&h.d===N.d?h:(r(p,N),N)},f=(p,m)=>{const g=s(p);if(!m&&g&&(e.has(p)||Array.from(g.d).every(([C,A])=>{if(C===p)return!0;const V=f(C);return V===A||Z(V,A)})))return g;const h=new Map;let N=!0;const O=C=>{if(C===p){const V=s(C);if(V)return h.set(C,V),oe(V);if(ze(C))return h.set(C,void 0),C.init;throw new Error("no atom init")}const A=f(C);return h.set(C,A),oe(A)};let b,R;const D={get signal(){return b||(b=new AbortController),b.signal},get setSelf(){return!R&&Be(p)&&(R=(...C)=>{if(!N)return E(p,...C)}),R}};try{const C=p.read(O,D);return l(p,C,h,()=>b==null?void 0:b.abort())}catch(C){return u(p,C,h)}finally{N=!1}},c=p=>oe(f(p)),y=p=>{let m=e.get(p);return m||(m=x(p)),m},v=(p,m)=>!m.l.size&&(!m.t.size||m.t.size===1&&m.t.has(p)),k=p=>{const m=e.get(p);m&&v(p,m)&&w(p)},S=p=>{const m=new Map,g=new WeakMap,h=b=>{var R;const D=new Set((R=e.get(b))==null?void 0:R.t);return t.forEach((C,A)=>{var V;(V=s(A))!=null&&V.d.has(b)&&D.add(A)}),D},N=b=>{h(b).forEach(R=>{R!==b&&(m.set(R,(m.get(R)||new Set).add(b)),g.set(R,(g.get(R)||0)+1),N(R))})};N(p);const O=b=>{h(b).forEach(R=>{var D;if(R!==b){let C=g.get(R);if(C&&g.set(R,--C),!C){let A=!!((D=m.get(R))!=null&&D.size);if(A){const V=s(R),re=f(R,!0);A=!Z(V,re)}A||m.forEach(V=>V.delete(R))}O(R)}})};O(p)},F=(p,...m)=>{let g=!0;const h=b=>oe(f(b)),N=(b,...R)=>{let D;if(b===p){if(!ze(b))throw new Error("atom not writable");const C=s(b),A=l(b,R[0]);Z(C,A)||S(b)}else D=F(b,...R);if(!g){const C=I()}return D},O=p.write(h,N,...m);return g=!1,O},E=(p,...m)=>{const g=F(p,...m),h=I();return g},x=(p,m,g)=>{var h;const N=g||[];(h=s(p))==null||h.d.forEach((b,R)=>{const D=e.get(R);D?D.t.add(p):R!==p&&x(R,p,N)}),f(p);const O={t:new Set(m&&[m]),l:new Set};if(e.set(p,O),Be(p)&&p.onMount){const{onMount:b}=p;N.push(()=>{const R=b((...D)=>E(p,...D));R&&(O.u=R)})}return g||N.forEach(b=>b()),O},w=p=>{var m;const g=(m=e.get(p))==null?void 0:m.u;g&&g(),e.delete(p);const h=s(p);h&&(B(h)&&Ge(h.v),h.d.forEach((N,O)=>{if(O!==p){const b=e.get(O);b&&(b.t.delete(p),v(O,b)&&w(O))}}))},L=(p,m,g)=>{const h=new Set(m.d.keys());g==null||g.forEach((N,O)=>{if(h.has(O)){h.delete(O);return}const b=e.get(O);b&&(b.t.delete(p),v(O,b)&&w(O))}),h.forEach(N=>{const O=e.get(N);O?O.t.add(p):e.has(p)&&x(N,p)})},I=()=>{let p;for(;t.size;){const m=Array.from(t);t.clear(),m.forEach(([g,h])=>{const N=s(g);if(N){const O=e.get(g);O&&N.d!==(h==null?void 0:h.d)&&L(g,N,h==null?void 0:h.d),O&&!(!B(h)&&(Z(h,N)||We(h,N)))&&O.l.forEach(b=>b())}})}};return{get:c,set:E,sub:(p,m)=>{const g=y(p),h=I(),N=g.l;return N.add(m),()=>{N.delete(m),k(p)}}}};let be;const En=()=>(be||(be=Ot()),be),On=_.createContext(void 0),wt=n=>{const e=_.useContext(On);return(n==null?void 0:n.store)||e||En()},wn=n=>typeof(n==null?void 0:n.then)=="function",Rn=_.use||(n=>{if(n.status==="pending")throw n;if(n.status==="fulfilled")return n.value;throw n.status==="rejected"?n.reason:(n.status="pending",n.then(e=>{n.status="fulfilled",n.value=e},e=>{n.status="rejected",n.reason=e}),n)});function Cn(n,e){const t=wt(e),[[i,a,s],r]=_.useReducer(l=>{const u=t.get(n);return Object.is(l[0],u)&&l[1]===t&&l[2]===n?l:[u,t,n]},void 0,()=>[t.get(n),t,n]);let o=i;(a!==t||s!==n)&&(r(),o=t.get(n));const d=e==null?void 0:e.delay;return _.useEffect(()=>{const l=t.sub(n,()=>{if(typeof d=="number"){setTimeout(r,d);return}r()});return r(),l},[t,n,d]),_.useDebugValue(o),wn(o)?Rn(o):o}function Tn(n,e){const t=wt(e);return _.useCallback((...a)=>t.set(n,...a),[t,n])}function Dn(n,e){return[Cn(n,e),Tn(n,e)]}const ve=yn(null);ve.debugLabel="accountAtom";const{NZ_AWS_REGION:An,NZ_BACKOFFICE_BACK_URL:xn,NZ_CORE_SERVICES_GRAPHQL_URL:Ln,NZ_CORE_SERVICES_REST_URL:Pn}={NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},In={AWS:{region:An,cognito:{userPoolId:"us-east-1_knSlGEmJ0",userPoolWebClientId:"3hmbfhf7nl3kq20qr9i5lihf1p"}},apiUrls:{restV1:xn||"https://pabprg32bj.execute-api.us-east-1.amazonaws.com",restV2:Pn||"https://core-services-dev.nizza.com/api",graphql:Ln||"https://core-services-dev.nizza.com/graphql",corsProxy:"https://1qmd8jteh1.execute-api.us-east-1.amazonaws.com"},publicUrls:{platformSite:"https://platformdev.nizza.com",nizzaCdn:"https://cdn.nizza.com",bundleSite:"https://bundledev.nizza.com",wssIVSChat:"wss://edge.ivschat.us-east-1.amazonaws.com"}};async function Ae(n){const{url:e,method:t="GET",body:i,raw:a=!1,contentTypeJson:s=!0,timeout:r,...o}=n,d=s&&!n.headers?new Headers({"content-type":"application/json"}):n.headers;try{const l=new AbortController,{signal:u}=l;let f;const c=fetch(e,{method:t,headers:d,body:i,signal:u,...o});r&&(f=setTimeout(()=>{l.abort()},r));const y=await c;if(a)return y;const v=await y.json();if(clearTimeout(f),!y.ok){const k=v?JSON.stringify(v):y.statusText;throw new Error(k)}return v}catch(l){throw console.error("[CustomFetch] ",l),l}}const Vn=n=>Ae({...n,contentTypeJson:!1,raw:!1});function _n(n,e,t){fetch(e).then(i=>i.blob()).then(i=>Rt(i,`${n}.${t}`))}const Rt=(n,e,t)=>{const i=[n],a=new Blob(i,{type:t!=null?t:"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")return window.navigator.msSaveBlob(a,e);const s=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(a):window.webkitURL.createObjectURL(a),r=document.createElement("a");return r.style.display="none",r.href=s,r.setAttribute("download",e),typeof r.download=="undefined"&&r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),setTimeout(()=>{document.body.removeChild(r),window.URL.revokeObjectURL(s)},200)},Un=Symbol(),xe=Symbol(),q="a",de="w";let jn=(n,e)=>new Proxy(n,e);const we=Object.getPrototypeOf,Re=new WeakMap,Ct=n=>n&&(Re.has(n)?Re.get(n):we(n)===Object.prototype||we(n)===Array.prototype),Ke=n=>typeof n=="object"&&n!==null,Mn=n=>{if(Array.isArray(n))return Array.from(n);const e=Object.getOwnPropertyDescriptors(n);return Object.values(e).forEach(t=>{t.configurable=!0}),Object.create(we(n),e)},Tt=n=>n[xe]||n,Dt=(n,e,t,i)=>{if(!Ct(n))return n;let a=i&&i.get(n);if(!a){const d=Tt(n);a=(l=>Object.values(Object.getOwnPropertyDescriptors(l)).some(u=>!u.configurable&&!u.writable))(d)?[d,Mn(d)]:[d],i==null||i.set(n,a)}const[s,r]=a;let o=t&&t.get(s);return o&&o[1].f===!!r||(o=((d,l)=>{const u={f:l};let f=!1;const c=(v,k)=>{if(!f){let S=u[q].get(d);if(S||(S={},u[q].set(d,S)),v===de)S[de]=!0;else{let F=S[v];F||(F=new Set,S[v]=F),F.add(k)}}},y={get:(v,k)=>k===xe?d:(c("k",k),Dt(Reflect.get(v,k),u[q],u.c,u.t)),has:(v,k)=>k===Un?(f=!0,u[q].delete(d),!0):(c("h",k),Reflect.has(v,k)),getOwnPropertyDescriptor:(v,k)=>(c("o",k),Reflect.getOwnPropertyDescriptor(v,k)),ownKeys:v=>(c(de),Reflect.ownKeys(v))};return l&&(y.set=y.deleteProperty=()=>!1),[y,u]})(s,!!r),o[1].p=jn(r||s,o[0]),t&&t.set(s,o)),o[1][q]=e,o[1].c=t,o[1].t=i,o[1].p},At=(n,e,t,i)=>{if(Object.is(n,e))return!1;if(!Ke(n)||!Ke(e))return!0;const a=t.get(Tt(n));if(!a)return!0;if(i){const r=i.get(n);if(r&&r.n===e)return r.g;i.set(n,{n:e,g:!1})}let s=null;try{for(const r of a.h||[])if(s=Reflect.has(n,r)!==Reflect.has(e,r),s)return s;if(a[de]===!0){if(s=((r,o)=>{const d=Reflect.ownKeys(r),l=Reflect.ownKeys(o);return d.length!==l.length||d.some((u,f)=>u!==l[f])})(n,e),s)return s}else for(const r of a.o||[])if(s=!!Reflect.getOwnPropertyDescriptor(n,r)!=!!Reflect.getOwnPropertyDescriptor(e,r),s)return s;for(const r of a.k||[])if(s=At(n[r],e[r],t,i),s)return s;return s===null&&(s=!0),s}finally{i&&i.set(n,{n:e,g:s})}},$n=n=>Ct(n)&&n[xe]||null,Ze=(n,e=!0)=>{Re.set(n,e)};const Fe=n=>typeof n=="object"&&n!==null,$=new WeakMap,te=new WeakSet,zn=(n=Object.is,e=(l,u)=>new Proxy(l,u),t=l=>Fe(l)&&!te.has(l)&&(Array.isArray(l)||!(Symbol.iterator in l))&&!(l instanceof WeakMap)&&!(l instanceof WeakSet)&&!(l instanceof Error)&&!(l instanceof Number)&&!(l instanceof Date)&&!(l instanceof String)&&!(l instanceof RegExp)&&!(l instanceof ArrayBuffer),i=l=>{switch(l.status){case"fulfilled":return l.value;case"rejected":throw l.reason;default:throw l}},a=new WeakMap,s=(l,u,f=i)=>{const c=a.get(l);if((c==null?void 0:c[0])===u)return c[1];const y=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l));return Ze(y,!0),a.set(l,[u,y]),Reflect.ownKeys(l).forEach(v=>{if(Object.getOwnPropertyDescriptor(y,v))return;const k=Reflect.get(l,v),{enumerable:S}=Reflect.getOwnPropertyDescriptor(l,v),F={value:k,enumerable:S,configurable:!0};if(te.has(k))Ze(k,!1);else if(k instanceof Promise)delete F.value,F.get=()=>f(k);else if($.has(k)){const[E,x]=$.get(k);F.value=s(E,x(),f)}Object.defineProperty(y,v,F)}),Object.preventExtensions(y)},r=new WeakMap,o=[1,1],d=l=>{if(!Fe(l))throw new Error("object required");const u=r.get(l);if(u)return u;let f=o[0];const c=new Set,y=(m,g=++o[0])=>{f!==g&&(f=g,c.forEach(h=>h(m,g)))};let v=o[1];const k=(m=++o[1])=>(v!==m&&!c.size&&(v=m,F.forEach(([g])=>{const h=g[1](m);h>f&&(f=h)})),f),S=m=>(g,h)=>{const N=[...g];N[1]=[m,...N[1]],y(N,h)},F=new Map,E=(m,g)=>{if(c.size){const h=g[3](S(m));F.set(m,[g,h])}else F.set(m,[g])},x=m=>{var g;const h=F.get(m);h&&(F.delete(m),(g=h[1])==null||g.call(h))},w=m=>(c.add(m),c.size===1&&F.forEach(([h,N],O)=>{const b=h[3](S(O));F.set(O,[h,b])}),()=>{c.delete(m),c.size===0&&F.forEach(([h,N],O)=>{N&&(N(),F.set(O,[h]))})}),L=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l)),P=e(L,{deleteProperty(m,g){const h=Reflect.get(m,g);x(g);const N=Reflect.deleteProperty(m,g);return N&&y(["delete",[g],h]),N},set(m,g,h,N){const O=Reflect.has(m,g),b=Reflect.get(m,g,N);if(O&&(n(b,h)||r.has(h)&&n(b,r.get(h))))return!0;x(g),Fe(h)&&(h=$n(h)||h);let R=h;if(h instanceof Promise)h.then(D=>{h.status="fulfilled",h.value=D,y(["resolve",[g],D])}).catch(D=>{h.status="rejected",h.reason=D,y(["reject",[g],D])});else{!$.has(h)&&t(h)&&(R=d(h));const D=!te.has(R)&&$.get(R);D&&E(g,D)}return Reflect.set(m,g,R,N),y(["set",[g],h,b]),!0}});r.set(l,P);const p=[L,k,s,w];return $.set(P,p),Reflect.ownKeys(l).forEach(m=>{const g=Object.getOwnPropertyDescriptor(l,m);"value"in g&&(P[m]=l[m],delete g.value,delete g.writable),Object.defineProperty(L,m,g)}),P})=>[d,$,te,n,e,t,i,a,s,r,o],[Bn]=zn();function Gn(n={}){return Bn(n)}function Jn(n,e,t){const i=$.get(n);let a;const s=[],r=i[3];let o=!1;const l=r(u=>{if(s.push(u),t){e(s.splice(0));return}a||(a=Promise.resolve().then(()=>{a=void 0,o&&e(s.splice(0))}))});return o=!0,()=>{o=!1,l()}}function qe(n,e){const t=$.get(n),[i,a,s]=t;return s(i,a(),e)}function xt(n){return te.add(n),n}var Lt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Le(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Pt={exports:{}},It={};/**
1
+ "use strict";var vn=Object.defineProperty;var Sn=(n,e,t)=>e in n?vn(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var x=(n,e,t)=>(Sn(n,typeof e!="symbol"?e+"":e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("react"),yn=require("react/jsx-runtime");function Nn(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const M=Nn(V);var U={NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};let bn=0;function Fn(n,e){const t=`atom${++bn}`,i={toString:()=>t};return typeof n=="function"?i.read=n:(i.init=n,i.read=function(a){return a(this)},i.write=function(a,r,s){return r(this,typeof s=="function"?s(a(this)):s)}),e&&(i.write=e),i}const Ce=n=>"init"in n,Ee=n=>!!n.write,me=new WeakMap,wn=(n,e)=>{me.set(n,e),n.catch(()=>{}).finally(()=>me.delete(n))},Je=(n,e)=>{const t=me.get(n);t&&(me.delete(n),t(e))},qe=(n,e)=>{n.status="fulfilled",n.value=e},He=(n,e)=>{n.status="rejected",n.reason=e},Cn=n=>typeof(n==null?void 0:n.then)=="function",H=(n,e)=>!!n&&"v"in n&&"v"in e&&Object.is(n.v,e.v),Ze=(n,e)=>!!n&&"e"in n&&"e"in e&&Object.is(n.e,e.e),Q=n=>!!n&&"v"in n&&n.v instanceof Promise,En=(n,e)=>"v"in n&&"v"in e&&n.v.orig&&n.v.orig===e.v.orig,le=n=>{if("e"in n)throw n.e;return n.v},Rt=()=>{const n=new WeakMap,e=new WeakMap,t=new Map;let i,a;(U?"production":void 0)!=="production"&&(i=new Set,a=new Set);const r=f=>n.get(f),s=(f,m)=>{(U?"production":void 0)!=="production"&&Object.freeze(m);const g=n.get(f);if(n.set(f,m),t.has(f)||t.set(f,g),Q(g)){const h="v"in m?m.v instanceof Promise?m.v:Promise.resolve(m.v):Promise.reject(m.e);g.v!==h&&Je(g.v,h)}},o=(f,m,g)=>{const h=new Map;let N=!1;g.forEach((C,b)=>{!C&&b===f&&(C=m),C?(h.set(b,C),m.d.get(b)!==C&&(N=!0)):(U?"production":void 0)!=="production"&&console.warn("[Bug] atom state not found")}),(N||m.d.size!==h.size)&&(m.d=h)},d=(f,m,g)=>{const h=r(f),N={d:(h==null?void 0:h.d)||new Map,v:m};if(g&&o(f,N,g),H(h,N)&&h.d===N.d)return h;if(Q(h)&&Q(N)&&En(h,N)){if(h.d===N.d)return h;N.v=h.v}return s(f,N),N},l=(f,m,g,h)=>{if(Cn(m)){let N;const C=()=>{const O=r(f);if(!Q(O)||O.v!==b)return;const T=d(f,b,g);e.has(f)&&O.d!==T.d&&I(f,T,O.d)},b=new Promise((O,T)=>{let R=!1;m.then(D=>{R||(R=!0,qe(b,D),O(D),C())},D=>{R||(R=!0,He(b,D),T(D),C())}),N=D=>{R||(R=!0,D.then(_=>qe(b,_),_=>He(b,_)),O(D))}});return b.orig=m,b.status="pending",wn(b,O=>{O&&N(O),h==null||h()}),d(f,b,g)}return d(f,m,g)},u=(f,m,g)=>{const h=r(f),N={d:(h==null?void 0:h.d)||new Map,e:m};return g&&o(f,N,g),Ze(h,N)&&h.d===N.d?h:(s(f,N),N)},p=(f,m)=>{const g=r(f);if(!m&&g&&(e.has(f)||Array.from(g.d).every(([R,D])=>{if(R===f)return!0;const _=p(R);return _===D||H(_,D)})))return g;const h=new Map;let N=!0;const C=R=>{if(R===f){const _=r(R);if(_)return h.set(R,_),le(_);if(Ce(R))return h.set(R,void 0),R.init;throw new Error("no atom init")}const D=p(R);return h.set(R,D),le(D)};let b,O;const T={get signal(){return b||(b=new AbortController),b.signal},get setSelf(){return(U?"production":void 0)!=="production"&&!Ee(f)&&console.warn("setSelf function cannot be used with read-only atom"),!O&&Ee(f)&&(O=(...R)=>{if((U?"production":void 0)!=="production"&&N&&console.warn("setSelf function cannot be called in sync"),!N)return w(f,...R)}),O}};try{const R=f.read(C,T);return l(f,R,h,()=>b==null?void 0:b.abort())}catch(R){return u(f,R,h)}finally{N=!1}},c=f=>le(p(f)),v=f=>{let m=e.get(f);return m||(m=L(f)),m},S=(f,m)=>!m.l.size&&(!m.t.size||m.t.size===1&&m.t.has(f)),k=f=>{const m=e.get(f);m&&S(f,m)&&E(f)},y=f=>{const m=new Map,g=new WeakMap,h=b=>{var O;const T=new Set((O=e.get(b))==null?void 0:O.t);return t.forEach((R,D)=>{var _;(_=r(D))!=null&&_.d.has(b)&&T.add(D)}),T},N=b=>{h(b).forEach(O=>{O!==b&&(m.set(O,(m.get(O)||new Set).add(b)),g.set(O,(g.get(O)||0)+1),N(O))})};N(f);const C=b=>{h(b).forEach(O=>{var T;if(O!==b){let R=g.get(O);if(R&&g.set(O,--R),!R){let D=!!((T=m.get(O))!=null&&T.size);if(D){const _=r(O),oe=p(O,!0);D=!H(_,oe)}D||m.forEach(_=>_.delete(O))}C(O)}})};C(f)},F=(f,...m)=>{let g=!0;const h=b=>le(p(b)),N=(b,...O)=>{let T;if(b===f){if(!Ce(b))throw new Error("atom not writable");const R=r(b),D=l(b,O[0]);H(R,D)||y(b)}else T=F(b,...O);if(!g){const R=P();(U?"production":void 0)!=="production"&&i.forEach(D=>D({type:"async-write",flushed:R}))}return T},C=f.write(h,N,...m);return g=!1,C},w=(f,...m)=>{const g=F(f,...m),h=P();return(U?"production":void 0)!=="production"&&i.forEach(N=>N({type:"write",flushed:h})),g},L=(f,m,g)=>{var h;const N=g||[];(h=r(f))==null||h.d.forEach((b,O)=>{const T=e.get(O);T?T.t.add(f):O!==f&&L(O,f,N)}),p(f);const C={t:new Set(m&&[m]),l:new Set};if(e.set(f,C),(U?"production":void 0)!=="production"&&a.add(f),Ee(f)&&f.onMount){const{onMount:b}=f;N.push(()=>{const O=b((...T)=>w(f,...T));O&&(C.u=O)})}return g||N.forEach(b=>b()),C},E=f=>{var m;const g=(m=e.get(f))==null?void 0:m.u;g&&g(),e.delete(f),(U?"production":void 0)!=="production"&&a.delete(f);const h=r(f);h?(Q(h)&&Je(h.v),h.d.forEach((N,C)=>{if(C!==f){const b=e.get(C);b&&(b.t.delete(f),S(C,b)&&E(C))}})):(U?"production":void 0)!=="production"&&console.warn("[Bug] could not find atom state to unmount",f)},I=(f,m,g)=>{const h=new Set(m.d.keys());g==null||g.forEach((N,C)=>{if(h.has(C)){h.delete(C);return}const b=e.get(C);b&&(b.t.delete(f),S(C,b)&&E(C))}),h.forEach(N=>{const C=e.get(N);C?C.t.add(f):e.has(f)&&L(N,f)})},P=()=>{let f;for((U?"production":void 0)!=="production"&&(f=new Set);t.size;){const m=Array.from(t);t.clear(),m.forEach(([g,h])=>{const N=r(g);if(N){const C=e.get(g);C&&N.d!==(h==null?void 0:h.d)&&I(g,N,h==null?void 0:h.d),C&&!(!Q(h)&&(H(h,N)||Ze(h,N)))&&(C.l.forEach(b=>b()),(U?"production":void 0)!=="production"&&f.add(g))}else(U?"production":void 0)!=="production"&&console.warn("[Bug] no atom state to flush")})}if((U?"production":void 0)!=="production")return f},A=(f,m)=>{const g=v(f),h=P(),N=g.l;return N.add(m),(U?"production":void 0)!=="production"&&i.forEach(C=>C({type:"sub",flushed:h})),()=>{N.delete(m),k(f),(U?"production":void 0)!=="production"&&i.forEach(C=>C({type:"unsub"}))}};return(U?"production":void 0)!=="production"?{get:c,set:w,sub:A,dev_subscribe_store:(f,m)=>{if(m!==2)throw new Error("The current StoreListener revision is 2.");return i.add(f),()=>{i.delete(f)}},dev_get_mounted_atoms:()=>a.values(),dev_get_atom_state:f=>n.get(f),dev_get_mounted:f=>e.get(f),dev_restore_atoms:f=>{for(const[g,h]of f)Ce(g)&&(l(g,h),y(g));const m=P();i.forEach(g=>g({type:"restore",flushed:m}))}}:{get:c,set:w,sub:A}};let Oe;(U?"production":void 0)!=="production"&&(typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__=="number"?++globalThis.__NUMBER_OF_JOTAI_INSTANCES__:globalThis.__NUMBER_OF_JOTAI_INSTANCES__=1);const On=()=>(Oe||((U?"production":void 0)!=="production"&&globalThis.__NUMBER_OF_JOTAI_INSTANCES__!==1&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"),Oe=Rt()),Oe);var Rn={NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const xn=V.createContext(void 0),xt=n=>{const e=V.useContext(xn);return(n==null?void 0:n.store)||e||On()},Tn=n=>typeof(n==null?void 0:n.then)=="function",Dn=V.use||(n=>{if(n.status==="pending")throw n;if(n.status==="fulfilled")return n.value;throw n.status==="rejected"?n.reason:(n.status="pending",n.then(e=>{n.status="fulfilled",n.value=e},e=>{n.status="rejected",n.reason=e}),n)});function Ln(n,e){const t=xt(e),[[i,a,r],s]=V.useReducer(l=>{const u=t.get(n);return Object.is(l[0],u)&&l[1]===t&&l[2]===n?l:[u,t,n]},void 0,()=>[t.get(n),t,n]);let o=i;(a!==t||r!==n)&&(s(),o=t.get(n));const d=e==null?void 0:e.delay;return V.useEffect(()=>{const l=t.sub(n,()=>{if(typeof d=="number"){setTimeout(s,d);return}s()});return s(),l},[t,n,d]),V.useDebugValue(o),Tn(o)?Dn(o):o}function In(n,e){const t=xt(e);return V.useCallback((...a)=>{if((Rn?"production":void 0)!=="production"&&!("write"in n))throw new Error("not writable atom");return t.set(n,...a)},[t,n])}function An(n,e){return[Ln(n,e),In(n,e)]}const Ne=Fn(null);Ne.debugLabel="accountAtom";var Pn={NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{NZ_AWS_REGION:Vn,NZ_BACKOFFICE_BACK_URL:_n,NZ_CORE_SERVICES_GRAPHQL_URL:Un,NZ_CORE_SERVICES_REST_URL:jn}=Pn,Mn={AWS:{region:Vn,cognito:{userPoolId:"us-east-1_knSlGEmJ0",userPoolWebClientId:"3hmbfhf7nl3kq20qr9i5lihf1p"}},apiUrls:{restV1:_n||"https://pabprg32bj.execute-api.us-east-1.amazonaws.com",restV2:jn||"https://core-services-dev.nizza.com/api",graphql:Un||"https://core-services-dev.nizza.com/graphql",corsProxy:"https://1qmd8jteh1.execute-api.us-east-1.amazonaws.com"},publicUrls:{platformSite:"https://platformdev.nizza.com",nizzaCdn:"https://cdn.nizza.com",bundleSite:"https://bundledev.nizza.com",wssIVSChat:"wss://edge.ivschat.us-east-1.amazonaws.com"}};async function Ve(n){const{url:e,method:t="GET",body:i,raw:a=!1,contentTypeJson:r=!0,timeout:s,...o}=n,d=r&&!n.headers?new Headers({"content-type":"application/json"}):n.headers;try{const l=new AbortController,{signal:u}=l;let p;const c=fetch(e,{method:t,headers:d,body:i,signal:u,...o});s&&(p=setTimeout(()=>{l.abort()},s));const v=await c;if(a)return v;const S=await v.json();if(clearTimeout(p),!v.ok){const k=S?JSON.stringify(S):v.statusText;throw new Error(k)}return S}catch(l){throw console.error("[CustomFetch] ",l),l}}const $n=n=>Ve({...n,contentTypeJson:!1,raw:!1});function zn(n,e,t){fetch(e).then(i=>i.blob()).then(i=>Tt(i,`${n}.${t}`))}const Tt=(n,e,t)=>{const i=[n],a=new Blob(i,{type:t!=null?t:"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")return window.navigator.msSaveBlob(a,e);const r=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(a):window.webkitURL.createObjectURL(a),s=document.createElement("a");return s.style.display="none",s.href=r,s.setAttribute("download",e),typeof s.download=="undefined"&&s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),setTimeout(()=>{document.body.removeChild(s),window.URL.revokeObjectURL(r)},200)},Bn=Symbol(),_e=Symbol(),Z="a",ie="w";let Qn=(n,e)=>new Proxy(n,e);const De=Object.getPrototypeOf,Le=new WeakMap,Dt=n=>n&&(Le.has(n)?Le.get(n):De(n)===Object.prototype||De(n)===Array.prototype),fe=n=>typeof n=="object"&&n!==null,Kn=n=>{if(Array.isArray(n))return Array.from(n);const e=Object.getOwnPropertyDescriptors(n);return Object.values(e).forEach(t=>{t.configurable=!0}),Object.create(De(n),e)},Ue=n=>n[_e]||n,Lt=(n,e,t,i)=>{if(!Dt(n))return n;let a=i&&i.get(n);if(!a){const d=Ue(n);a=(l=>Object.values(Object.getOwnPropertyDescriptors(l)).some(u=>!u.configurable&&!u.writable))(d)?[d,Kn(d)]:[d],i==null||i.set(n,a)}const[r,s]=a;let o=t&&t.get(r);return o&&o[1].f===!!s||(o=((d,l)=>{const u={f:l};let p=!1;const c=(S,k)=>{if(!p){let y=u[Z].get(d);if(y||(y={},u[Z].set(d,y)),S===ie)y[ie]=!0;else{let F=y[S];F||(F=new Set,y[S]=F),F.add(k)}}},v={get:(S,k)=>k===_e?d:(c("k",k),Lt(Reflect.get(S,k),u[Z],u.c,u.t)),has:(S,k)=>k===Bn?(p=!0,u[Z].delete(d),!0):(c("h",k),Reflect.has(S,k)),getOwnPropertyDescriptor:(S,k)=>(c("o",k),Reflect.getOwnPropertyDescriptor(S,k)),ownKeys:S=>(c(ie),Reflect.ownKeys(S))};return l&&(v.set=v.deleteProperty=()=>!1),[v,u]})(r,!!s),o[1].p=Qn(s||r,o[0]),t&&t.set(r,o)),o[1][Z]=e,o[1].c=t,o[1].t=i,o[1].p},It=(n,e,t,i)=>{if(Object.is(n,e))return!1;if(!fe(n)||!fe(e))return!0;const a=t.get(Ue(n));if(!a)return!0;if(i){const s=i.get(n);if(s&&s.n===e)return s.g;i.set(n,{n:e,g:!1})}let r=null;try{for(const s of a.h||[])if(r=Reflect.has(n,s)!==Reflect.has(e,s),r)return r;if(a[ie]===!0){if(r=((s,o)=>{const d=Reflect.ownKeys(s),l=Reflect.ownKeys(o);return d.length!==l.length||d.some((u,p)=>u!==l[p])})(n,e),r)return r}else for(const s of a.o||[])if(r=!!Reflect.getOwnPropertyDescriptor(n,s)!=!!Reflect.getOwnPropertyDescriptor(e,s),r)return r;for(const s of a.k||[])if(r=It(n[s],e[s],t,i),r)return r;return r===null&&(r=!0),r}finally{i&&i.set(n,{n:e,g:r})}},Gn=n=>Dt(n)&&n[_e]||null,Xe=(n,e=!0)=>{Le.set(n,e)},Wn=(n,e,t)=>{const i=[],a=new WeakSet,r=(s,o)=>{if(a.has(s))return;fe(s)&&a.add(s);const d=fe(s)&&e.get(Ue(s));if(d){var l,u;if((l=d.h)==null||l.forEach(c=>{const v=`:has(${String(c)})`;i.push(o?[...o,v]:[v])}),d[ie]===!0){const c=":ownKeys";i.push(o?[...o,c]:[c])}else{var p;(p=d.o)==null||p.forEach(c=>{const v=`:hasOwn(${String(c)})`;i.push(o?[...o,v]:[v])})}(u=d.k)==null||u.forEach(c=>{t&&!("value"in(Object.getOwnPropertyDescriptor(s,c)||{}))||r(s[c],o?[...o,c]:[c])})}else o&&i.push(o)};return r(n),i};var pe={NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Re=n=>typeof n=="object"&&n!==null,z=new WeakMap,te=new WeakSet,Jn=(n=Object.is,e=(l,u)=>new Proxy(l,u),t=l=>Re(l)&&!te.has(l)&&(Array.isArray(l)||!(Symbol.iterator in l))&&!(l instanceof WeakMap)&&!(l instanceof WeakSet)&&!(l instanceof Error)&&!(l instanceof Number)&&!(l instanceof Date)&&!(l instanceof String)&&!(l instanceof RegExp)&&!(l instanceof ArrayBuffer),i=l=>{switch(l.status){case"fulfilled":return l.value;case"rejected":throw l.reason;default:throw l}},a=new WeakMap,r=(l,u,p=i)=>{const c=a.get(l);if((c==null?void 0:c[0])===u)return c[1];const v=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l));return Xe(v,!0),a.set(l,[u,v]),Reflect.ownKeys(l).forEach(S=>{if(Object.getOwnPropertyDescriptor(v,S))return;const k=Reflect.get(l,S),{enumerable:y}=Reflect.getOwnPropertyDescriptor(l,S),F={value:k,enumerable:y,configurable:!0};if(te.has(k))Xe(k,!1);else if(k instanceof Promise)delete F.value,F.get=()=>p(k);else if(z.has(k)){const[w,L]=z.get(k);F.value=r(w,L(),p)}Object.defineProperty(v,S,F)}),Object.preventExtensions(v)},s=new WeakMap,o=[1,1],d=l=>{if(!Re(l))throw new Error("object required");const u=s.get(l);if(u)return u;let p=o[0];const c=new Set,v=(m,g=++o[0])=>{p!==g&&(p=g,c.forEach(h=>h(m,g)))};let S=o[1];const k=(m=++o[1])=>(S!==m&&!c.size&&(S=m,F.forEach(([g])=>{const h=g[1](m);h>p&&(p=h)})),p),y=m=>(g,h)=>{const N=[...g];N[1]=[m,...N[1]],v(N,h)},F=new Map,w=(m,g)=>{if((pe?"production":void 0)!=="production"&&F.has(m))throw new Error("prop listener already exists");if(c.size){const h=g[3](y(m));F.set(m,[g,h])}else F.set(m,[g])},L=m=>{var g;const h=F.get(m);h&&(F.delete(m),(g=h[1])==null||g.call(h))},E=m=>(c.add(m),c.size===1&&F.forEach(([h,N],C)=>{if((pe?"production":void 0)!=="production"&&N)throw new Error("remove already exists");const b=h[3](y(C));F.set(C,[h,b])}),()=>{c.delete(m),c.size===0&&F.forEach(([h,N],C)=>{N&&(N(),F.set(C,[h]))})}),I=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l)),A=e(I,{deleteProperty(m,g){const h=Reflect.get(m,g);L(g);const N=Reflect.deleteProperty(m,g);return N&&v(["delete",[g],h]),N},set(m,g,h,N){const C=Reflect.has(m,g),b=Reflect.get(m,g,N);if(C&&(n(b,h)||s.has(h)&&n(b,s.get(h))))return!0;L(g),Re(h)&&(h=Gn(h)||h);let O=h;if(h instanceof Promise)h.then(T=>{h.status="fulfilled",h.value=T,v(["resolve",[g],T])}).catch(T=>{h.status="rejected",h.reason=T,v(["reject",[g],T])});else{!z.has(h)&&t(h)&&(O=d(h));const T=!te.has(O)&&z.get(O);T&&w(g,T)}return Reflect.set(m,g,O,N),v(["set",[g],h,b]),!0}});s.set(l,A);const f=[I,k,r,E];return z.set(A,f),Reflect.ownKeys(l).forEach(m=>{const g=Object.getOwnPropertyDescriptor(l,m);"value"in g&&(A[m]=l[m],delete g.value,delete g.writable),Object.defineProperty(I,m,g)}),A})=>[d,z,te,n,e,t,i,a,r,s,o],[qn]=Jn();function Hn(n={}){return qn(n)}function Zn(n,e,t){const i=z.get(n);(pe?"production":void 0)!=="production"&&!i&&console.warn("Please use proxy object");let a;const r=[],s=i[3];let o=!1;const l=s(u=>{if(r.push(u),t){e(r.splice(0));return}a||(a=Promise.resolve().then(()=>{a=void 0,o&&e(r.splice(0))}))});return o=!0,()=>{o=!1,l()}}function Ye(n,e){const t=z.get(n);(pe?"production":void 0)!=="production"&&!t&&console.warn("Please use proxy object");const[i,a,r]=t;return r(i,a(),e)}function At(n){return te.add(n),n}var Pt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function je(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Vt={exports:{}},_t={};/**
2
2
  * @license React
3
3
  * use-sync-external-store-shim.production.min.js
4
4
  *
@@ -6,8 +6,8 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var K=_;function Qn(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var Wn=typeof Object.is=="function"?Object.is:Qn,Kn=K.useState,Zn=K.useEffect,qn=K.useLayoutEffect,Xn=K.useDebugValue;function Hn(n,e){var t=e(),i=Kn({inst:{value:t,getSnapshot:e}}),a=i[0].inst,s=i[1];return qn(function(){a.value=t,a.getSnapshot=e,Ee(a)&&s({inst:a})},[n,t,e]),Zn(function(){return Ee(a)&&s({inst:a}),n(function(){Ee(a)&&s({inst:a})})},[n]),Xn(t),t}function Ee(n){var e=n.getSnapshot;n=n.value;try{var t=e();return!Wn(n,t)}catch{return!0}}function Yn(n,e){return e()}var ei=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?Yn:Hn;It.useSyncExternalStore=K.useSyncExternalStore!==void 0?K.useSyncExternalStore:ei;Pt.exports=It;var Vt=Pt.exports;const ti=Le(Vt),{use:Xe}=_,{useSyncExternalStore:ni}=ti;const ii=new WeakMap;function ai(n,e){const t=e==null?void 0:e.sync,i=_.useRef(),a=_.useRef();let s=!0;const r=ni(_.useCallback(l=>{const u=Jn(n,l,t);return l(),u},[n,t]),()=>{const l=qe(n,Xe);try{if(!s&&i.current&&a.current&&!At(i.current,l,a.current,new WeakMap))return i.current}catch{}return l},()=>qe(n,Xe));s=!1;const o=new WeakMap;_.useEffect(()=>{i.current=r,a.current=o});const d=_.useMemo(()=>new WeakMap,[]);return Dt(r,o,d,ii)}class _t{constructor(){T(this,"channel");T(this,"listeners",new Map);T(this,"eventQueue",new Map);try{this.channel=new BroadcastChannel("nizza"),this.channel.onmessage=e=>this.handleMessage(e),this.channel.onmessageerror=e=>W.error("NizzaBroadcastChannel:",e)}catch(e){throw W.error("Failed to create NizzaBroadcastChannel:",e),e}}on(e,t){return this.subscribeToEvent(e,t),{off:()=>this.unsubscribeFromEvent(e,t)}}emit(e,t,i={}){this.emitEvent(e,t,i)}handleMessage(e){const t=e.data,{name:i}=t;for(const[a,s]of this.listeners.entries())this.matchWildcard(a,i)&&s.forEach(r=>r({...t,wildcard:a}))}subscribeToEvent(e,t){if(typeof e!="string"||typeof t!="function"){const i=new Error("Invalid arguments");throw W.error(i),i}for(const[i,a]of this.listeners.entries())if(this.matchWildcard(i,e)){a.add(t);const s=this.eventQueue.get(i);s&&(s.forEach(r=>{t({...r,wildcard:i})}),this.eventQueue.delete(i));return}this.listeners.set(e,new Set([t]))}emitEvent(e,t,i){if(typeof e!="string"){const r=new Error("Invalid arguments");throw W.error(r),r}const a={name:e,data:t,attrs:i},s=Array.from(this.getMatchingListeners(e));if(s.length)for(const[r,o]of s)o({...a,wildcard:r});else this.eventQueue.has(e)||this.eventQueue.set(e,[]),this.eventQueue.get(e).push(a);this.channel.postMessage(a)}*getMatchingListeners(e){for(const[t,i]of this.listeners.entries())if(this.matchWildcard(t,e))for(const a of i)yield[t,a]}unsubscribeFromEvent(e,t){if(this.listeners.has(e)){const i=this.listeners.get(e);i.delete(t),i.size===0&&this.listeners.delete(e)}}matchWildcard(e,t){const i=e.replace(/\*/g,"[^:]*").replace(/\*\*/g,".*");return new RegExp(`^${i}$`).test(t)}}let si=(n=21)=>crypto.getRandomValues(new Uint8Array(n)).reduce((e,t)=>(t&=63,t<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"");const Ut=(n=8)=>si(n),ri=n=>{const e=Object.entries(n).reduce((t,[i,a])=>a!==void 0?`${t}${t?"&":""}${i}=${a}`:t,"");return e?`?${e}`:""};function oi(){const n=new Error().stack.split(`
10
- `);return n.length<3?"":n[2].trim().substring(3)}var jt={exports:{}};(function(n){(function(e,t){n.exports?n.exports=t():e.log=t()})(Lt,function(){var e=function(){},t="undefined",i=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),a=["trace","debug","info","warn","error"];function s(k,S){var F=k[S];if(typeof F.bind=="function")return F.bind(k);try{return Function.prototype.bind.call(F,k)}catch{return function(){return Function.prototype.apply.apply(F,[k,arguments])}}}function r(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function o(k){return k==="debug"&&(k="log"),typeof console===t?!1:k==="trace"&&i?r:console[k]!==void 0?s(console,k):console.log!==void 0?s(console,"log"):e}function d(k,S){for(var F=0;F<a.length;F++){var E=a[F];this[E]=F<k?e:this.methodFactory(E,k,S)}this.log=this.debug}function l(k,S,F){return function(){typeof console!==t&&(d.call(this,S,F),this[k].apply(this,arguments))}}function u(k,S,F){return o(k)||l.apply(this,arguments)}function f(k,S,F){var E=this,x;S=S==null?"WARN":S;var w="loglevel";typeof k=="string"?w+=":"+k:typeof k=="symbol"&&(w=void 0);function L(m){var g=(a[m]||"silent").toUpperCase();if(!(typeof window===t||!w)){try{window.localStorage[w]=g;return}catch{}try{window.document.cookie=encodeURIComponent(w)+"="+g+";"}catch{}}}function I(){var m;if(!(typeof window===t||!w)){try{m=window.localStorage[w]}catch{}if(typeof m===t)try{var g=window.document.cookie,h=g.indexOf(encodeURIComponent(w)+"=");h!==-1&&(m=/^([^;]+)/.exec(g.slice(h))[1])}catch{}return E.levels[m]===void 0&&(m=void 0),m}}function P(){if(!(typeof window===t||!w)){try{window.localStorage.removeItem(w);return}catch{}try{window.document.cookie=encodeURIComponent(w)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}E.name=k,E.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},E.methodFactory=F||u,E.getLevel=function(){return x},E.setLevel=function(m,g){if(typeof m=="string"&&E.levels[m.toUpperCase()]!==void 0&&(m=E.levels[m.toUpperCase()]),typeof m=="number"&&m>=0&&m<=E.levels.SILENT){if(x=m,g!==!1&&L(m),d.call(E,m,k),typeof console===t&&m<E.levels.SILENT)return"No console available for logging"}else throw"log.setLevel() called with invalid level: "+m},E.setDefaultLevel=function(m){S=m,I()||E.setLevel(m,!1)},E.resetLevel=function(){E.setLevel(S,!1),P()},E.enableAll=function(m){E.setLevel(E.levels.TRACE,m)},E.disableAll=function(m){E.setLevel(E.levels.SILENT,m)};var p=I();p==null&&(p=S),E.setLevel(p,!1)}var c=new f,y={};c.getLogger=function(S){if(typeof S!="symbol"&&typeof S!="string"||S==="")throw new TypeError("You must supply a name when creating a logger.");var F=y[S];return F||(F=y[S]=new f(S,c.getLevel(),c.methodFactory)),F};var v=typeof window!==t?window.log:void 0;return c.noConflict=function(){return typeof window!==t&&window.log===c&&(window.log=v),c},c.getLoggers=function(){return y},c.default=c,c})})(jt);var li=jt.exports;const X=Le(li);var Mt={exports:{}};(function(n){(function(e,t){n.exports?n.exports=t():e.prefix=t(e)})(Lt,function(e){var t=function(u){for(var f=1,c=arguments.length,y;f<c;f++)for(y in arguments[f])Object.prototype.hasOwnProperty.call(arguments[f],y)&&(u[y]=arguments[f][y]);return u},i={template:"[%t] %l:",levelFormatter:function(u){return u.toUpperCase()},nameFormatter:function(u){return u||"root"},timestampFormatter:function(u){return u.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},a,s={},r=function(u){if(!u||!u.getLogger)throw new TypeError("Argument is not a root logger");a=u},o=function(u,f){if(!u||!u.setLevel)throw new TypeError("Argument is not a logger");var c=u.methodFactory,y=u.name||"",v=s[y]||s[""]||i;function k(S,F,E){var x=c(S,F,E),w=s[E]||s[""],L=w.template.indexOf("%t")!==-1,I=w.template.indexOf("%l")!==-1,P=w.template.indexOf("%n")!==-1;return function(){for(var p="",m=arguments.length,g=Array(m),h=0;h<m;h++)g[h]=arguments[h];if(y||!s[E]){var N=w.timestampFormatter(new Date),O=w.levelFormatter(S),b=w.nameFormatter(E);w.format?p+=w.format(O,b,N):(p+=w.template,L&&(p=p.replace(/%t/,N)),I&&(p=p.replace(/%l/,O)),P&&(p=p.replace(/%n/,b))),g.length&&typeof g[0]=="string"?g[0]=p+" "+g[0]:g.unshift(p)}x.apply(void 0,g)}}return s[y]||(u.methodFactory=k),f=f||{},f.template&&(f.format=void 0),s[y]=t({},v,f),u.setLevel(u.getLevel()),a||u.warn("It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"),u},d={reg:r,apply:o},l;return e&&(l=e.prefix,d.noConflict=function(){return e.prefix===d&&(e.prefix=l),d}),d})})(Mt);var di=Mt.exports;const He=Le(di);let $t=class{constructor(e){T(this,"defaultLevel",X.levels.INFO);T(this,"namePrefix");this.namePrefix=e?`${e}-`:"",X.setDefaultLevel(this.defaultLevel),He.reg(X),He.apply(X,{template:"[%t] %l (%n)",nameFormatter:t=>{var i;return(i=t==null?void 0:t.toLowerCase())!=null?i:""},timestampFormatter:()=>new Date().toTimeString().slice(0,8)})}createLogger(e){const t=this.namePrefix+e.toLowerCase(),i=X.getLogger(t),a=localStorage.getItem(`loglevel:${t}`);return a?i.setLevel(a):i.setLevel(this.defaultLevel),i}};const z=Gn({config:null,get accountName(){var n;return(n=this.config)==null?void 0:n.account},get ok(){return!!this.account}}),ui=async n=>{var e;try{if(z.config=n,((e=z.account)==null?void 0:e.account)!==n.account){const t=await nn(n.account);z.account=t}if(n.getProductDataSource){const t=await n.getProductDataSource();z.productDataSource=xt(t)}}catch(t){console.error("Error configuring NizzaStore:",t)}},ci=n=>{z.productDataSource=xt(n)},Ye=()=>({state:z,configure:ui,setProductDataSource:ci,instanceId:Ut(),log:new $t("nz"),eventBus:new _t,get account(){return z.account},get productDataSource(){return z.productDataSource}}),mi=()=>{if(typeof window!="undefined"){if(!window.nizza){const n=Ye();window.nizza=n,window.nz=n}return window.nizza}return Ye()},Se=mi(),fi=Se.log.createLogger("main"),W=Se.log.createLogger("core");function Q(n){return n!=null&&typeof n=="object"&&n["@@functional/placeholder"]===!0}function ue(n){return function e(t){return arguments.length===0||Q(t)?e:n.apply(this,arguments)}}function Pe(n){return function e(t,i){switch(arguments.length){case 0:return e;case 1:return Q(t)?e:ue(function(a){return n(t,a)});default:return Q(t)&&Q(i)?e:Q(t)?ue(function(a){return n(a,i)}):Q(i)?ue(function(a){return n(t,a)}):n(t,i)}}}const pi=Number.isInteger||function(e){return e<<0===e};function hi(n){return Object.prototype.toString.call(n)==="[object String]"}var gi=Pe(function(e,t){var i=e<0?t.length+e:e;return hi(t)?t.charAt(i):t[i]});const ki=gi;var vi=ue(function(e){return e==null});const Si=vi;var yi=Pe(function(e,t){return e.map(function(i){for(var a=t,s=0,r;s<i.length;){if(a==null)return;r=i[s],a=pi(r)?ki(r,a):a[r],s+=1}return a})});const Ni=yi;var bi=Pe(function(e,t){return Ni([e],t)[0]});const Fi=bi;class se extends Error{constructor(e,t,i){super(t),this.value=i,this.name=e}toDTO(){return{name:this.name,message:this.message,...this.value&&{value:this.value}}}}class zt extends se{constructor(e){super("RESOURCE_NOT_FOUND_ERROR",`Resource with id '${e}' not found.`,e)}}class Bt extends se{constructor(e){var t;super("APP_UNEXPECTED_ERROR",(t=e.message)!=null?t:"An unexpected error occurred.",e)}}class Ei extends se{constructor(){super("APP_ACCOUNT_INVALID_ERROR","Account not defined")}}class Gt extends se{constructor(e){super("INVALID_NIZZA_GLOBAL_OBJECT_ERROR",`
9
+ */var q=V;function Xn(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var Yn=typeof Object.is=="function"?Object.is:Xn,ei=q.useState,ti=q.useEffect,ni=q.useLayoutEffect,ii=q.useDebugValue;function ai(n,e){var t=e(),i=ei({inst:{value:t,getSnapshot:e}}),a=i[0].inst,r=i[1];return ni(function(){a.value=t,a.getSnapshot=e,xe(a)&&r({inst:a})},[n,t,e]),ti(function(){return xe(a)&&r({inst:a}),n(function(){xe(a)&&r({inst:a})})},[n]),ii(t),t}function xe(n){var e=n.getSnapshot;n=n.value;try{var t=e();return!Yn(n,t)}catch{return!0}}function ri(n,e){return e()}var si=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?ri:ai;_t.useSyncExternalStore=q.useSyncExternalStore!==void 0?q.useSyncExternalStore:si;Vt.exports=_t;var Ut=Vt.exports;const oi=je(Ut);var li={NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{use:et}=V,{useSyncExternalStore:di}=oi,ui=(n,e)=>{const t=V.useRef();V.useEffect(()=>{t.current=Wn(n,e,!0)}),V.useDebugValue(t.current)},ci=new WeakMap;function mi(n,e){const t=e==null?void 0:e.sync,i=V.useRef(),a=V.useRef();let r=!0;const s=di(V.useCallback(l=>{const u=Zn(n,l,t);return l(),u},[n,t]),()=>{const l=Ye(n,et);try{if(!r&&i.current&&a.current&&!It(i.current,l,a.current,new WeakMap))return i.current}catch{}return l},()=>Ye(n,et));r=!1;const o=new WeakMap;V.useEffect(()=>{i.current=s,a.current=o}),(li?"production":void 0)!=="production"&&ui(s,o);const d=V.useMemo(()=>new WeakMap,[]);return Lt(s,o,d,ci)}class jt{constructor(e){x(this,"channel");x(this,"listeners",new Map);x(this,"eventQueue",new Map);try{this.channel=new BroadcastChannel(e),this.channel.onmessage=t=>this.handleMessage(t),this.channel.onmessageerror=t=>J.error("NizzaBroadcastChannel:",t)}catch(t){throw J.error("Failed to create NizzaBroadcastChannel:",t),t}}on(e,t){return this.subscribeToEvent(e,t),{off:()=>this.unsubscribeFromEvent(e,t)}}emit(e,t,i={}){this.emitEvent(e,t,i)}handleMessage(e){const t=e.data,{name:i}=t;for(const[a,r]of this.listeners.entries())this.matchWildcard(a,i)&&r.forEach(s=>s({...t,wildcard:a}))}subscribeToEvent(e,t){if(typeof e!="string"||typeof t!="function"){const i=new Error("Invalid arguments");throw J.error(i),i}for(const[i,a]of this.listeners.entries())if(this.matchWildcard(i,e)){a.add(t);const r=this.eventQueue.get(i);r&&(r.forEach(s=>{t({...s,wildcard:i})}),this.eventQueue.delete(i));return}this.listeners.set(e,new Set([t]))}emitEvent(e,t,i){if(typeof e!="string"){const s=new Error("Invalid arguments");throw J.error(s),s}const a={name:e,data:t,attrs:i},r=Array.from(this.getMatchingListeners(e));if(r.length)for(const[s,o]of r)o({...a,wildcard:s});else this.eventQueue.has(e)||this.eventQueue.set(e,[]),this.eventQueue.get(e).push(a);this.channel.postMessage(a)}*getMatchingListeners(e){for(const[t,i]of this.listeners.entries())if(this.matchWildcard(t,e))for(const a of i)yield[t,a]}unsubscribeFromEvent(e,t){if(this.listeners.has(e)){const i=this.listeners.get(e);i.delete(t),i.size===0&&this.listeners.delete(e)}}matchWildcard(e,t){const i=e.replace(/\*/g,"[^:]*").replace(/\*\*/g,".*");return new RegExp(`^${i}$`).test(t)}}let fi=(n=21)=>crypto.getRandomValues(new Uint8Array(n)).reduce((e,t)=>(t&=63,t<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"");const Mt=(n=8)=>fi(n),pi=n=>{const e=Object.entries(n).reduce((t,[i,a])=>a!==void 0?`${t}${t?"&":""}${i}=${a}`:t,"");return e?`?${e}`:""};function hi(){const n=new Error().stack.split(`
10
+ `);return n.length<3?"":n[2].trim().substring(3)}var $t={exports:{}};(function(n){(function(e,t){n.exports?n.exports=t():e.log=t()})(Pt,function(){var e=function(){},t="undefined",i=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),a=["trace","debug","info","warn","error"];function r(k,y){var F=k[y];if(typeof F.bind=="function")return F.bind(k);try{return Function.prototype.bind.call(F,k)}catch{return function(){return Function.prototype.apply.apply(F,[k,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function o(k){return k==="debug"&&(k="log"),typeof console===t?!1:k==="trace"&&i?s:console[k]!==void 0?r(console,k):console.log!==void 0?r(console,"log"):e}function d(k,y){for(var F=0;F<a.length;F++){var w=a[F];this[w]=F<k?e:this.methodFactory(w,k,y)}this.log=this.debug}function l(k,y,F){return function(){typeof console!==t&&(d.call(this,y,F),this[k].apply(this,arguments))}}function u(k,y,F){return o(k)||l.apply(this,arguments)}function p(k,y,F){var w=this,L;y=y==null?"WARN":y;var E="loglevel";typeof k=="string"?E+=":"+k:typeof k=="symbol"&&(E=void 0);function I(m){var g=(a[m]||"silent").toUpperCase();if(!(typeof window===t||!E)){try{window.localStorage[E]=g;return}catch{}try{window.document.cookie=encodeURIComponent(E)+"="+g+";"}catch{}}}function P(){var m;if(!(typeof window===t||!E)){try{m=window.localStorage[E]}catch{}if(typeof m===t)try{var g=window.document.cookie,h=g.indexOf(encodeURIComponent(E)+"=");h!==-1&&(m=/^([^;]+)/.exec(g.slice(h))[1])}catch{}return w.levels[m]===void 0&&(m=void 0),m}}function A(){if(!(typeof window===t||!E)){try{window.localStorage.removeItem(E);return}catch{}try{window.document.cookie=encodeURIComponent(E)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}w.name=k,w.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},w.methodFactory=F||u,w.getLevel=function(){return L},w.setLevel=function(m,g){if(typeof m=="string"&&w.levels[m.toUpperCase()]!==void 0&&(m=w.levels[m.toUpperCase()]),typeof m=="number"&&m>=0&&m<=w.levels.SILENT){if(L=m,g!==!1&&I(m),d.call(w,m,k),typeof console===t&&m<w.levels.SILENT)return"No console available for logging"}else throw"log.setLevel() called with invalid level: "+m},w.setDefaultLevel=function(m){y=m,P()||w.setLevel(m,!1)},w.resetLevel=function(){w.setLevel(y,!1),A()},w.enableAll=function(m){w.setLevel(w.levels.TRACE,m)},w.disableAll=function(m){w.setLevel(w.levels.SILENT,m)};var f=P();f==null&&(f=y),w.setLevel(f,!1)}var c=new p,v={};c.getLogger=function(y){if(typeof y!="symbol"&&typeof y!="string"||y==="")throw new TypeError("You must supply a name when creating a logger.");var F=v[y];return F||(F=v[y]=new p(y,c.getLevel(),c.methodFactory)),F};var S=typeof window!==t?window.log:void 0;return c.noConflict=function(){return typeof window!==t&&window.log===c&&(window.log=S),c},c.getLoggers=function(){return v},c.default=c,c})})($t);var zt=$t.exports;const de=je(zt);var Bt={exports:{}};(function(n){(function(e,t){n.exports?n.exports=t():e.prefix=t(e)})(Pt,function(e){var t=function(u){for(var p=1,c=arguments.length,v;p<c;p++)for(v in arguments[p])Object.prototype.hasOwnProperty.call(arguments[p],v)&&(u[v]=arguments[p][v]);return u},i={template:"[%t] %l:",levelFormatter:function(u){return u.toUpperCase()},nameFormatter:function(u){return u||"root"},timestampFormatter:function(u){return u.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},a,r={},s=function(u){if(!u||!u.getLogger)throw new TypeError("Argument is not a root logger");a=u},o=function(u,p){if(!u||!u.setLevel)throw new TypeError("Argument is not a logger");var c=u.methodFactory,v=u.name||"",S=r[v]||r[""]||i;function k(y,F,w){var L=c(y,F,w),E=r[w]||r[""],I=E.template.indexOf("%t")!==-1,P=E.template.indexOf("%l")!==-1,A=E.template.indexOf("%n")!==-1;return function(){for(var f="",m=arguments.length,g=Array(m),h=0;h<m;h++)g[h]=arguments[h];if(v||!r[w]){var N=E.timestampFormatter(new Date),C=E.levelFormatter(y),b=E.nameFormatter(w);E.format?f+=E.format(C,b,N):(f+=E.template,I&&(f=f.replace(/%t/,N)),P&&(f=f.replace(/%l/,C)),A&&(f=f.replace(/%n/,b))),g.length&&typeof g[0]=="string"?g[0]=f+" "+g[0]:g.unshift(f)}L.apply(void 0,g)}}return r[v]||(u.methodFactory=k),p=p||{},p.template&&(p.format=void 0),r[v]=t({},S,p),u.setLevel(u.getLevel()),a||u.warn("It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"),u},d={reg:s,apply:o},l;return e&&(l=e.prefix,d.noConflict=function(){return e.prefix===d&&(e.prefix=l),d}),d})})(Bt);var gi=Bt.exports;const tt=je(gi);let Qt=class{constructor(e){x(this,"defaultLevel",zt.levels.INFO);x(this,"namePrefix");this.namePrefix=e?`${e}-`:"",de.setDefaultLevel(this.defaultLevel),tt.reg(de),tt.apply(de,{template:"[%t] %l (%n)",nameFormatter:t=>{var i;return(i=t==null?void 0:t.toLowerCase())!=null?i:""},timestampFormatter:()=>new Date().toTimeString().slice(0,8)})}createLogger(e){const t=this.namePrefix+e.toLowerCase(),i=de.getLogger(t),a=localStorage.getItem(`loglevel:${t}`);return a?i.setLevel(a):i.setLevel(this.defaultLevel),i}};const B=Hn({config:null,get accountName(){var n;return(n=this.config)==null?void 0:n.account},get ok(){return!!this.account}}),ki=async n=>{var e;try{if(B.config=n,((e=B.account)==null?void 0:e.account)!==n.account){const t=await sn(n.account);B.account=t}if(n.getProductDataSource){const t=await n.getProductDataSource();B.productDataSource=At(t)}}catch(t){console.error("Error configuring NizzaStore:",t)}},vi=n=>{B.productDataSource=At(n)},nt=()=>({state:B,configure:ki,setProductDataSource:vi,instanceId:Mt(),log:new Qt("nz"),eventBus:new jt("nizza"),get account(){return B.account},get productDataSource(){return B.productDataSource}}),Si=()=>{if(typeof window!="undefined"){if(!window.nizza){const n=nt();window.nizza=n,window.nz=n}return window.nizza}return nt()},be=Si(),yi=be.log.createLogger("main"),J=be.log.createLogger("core");function W(n){return n!=null&&typeof n=="object"&&n["@@functional/placeholder"]===!0}function ce(n){return function e(t){return arguments.length===0||W(t)?e:n.apply(this,arguments)}}function Me(n){return function e(t,i){switch(arguments.length){case 0:return e;case 1:return W(t)?e:ce(function(a){return n(t,a)});default:return W(t)&&W(i)?e:W(t)?ce(function(a){return n(a,i)}):W(i)?ce(function(a){return n(t,a)}):n(t,i)}}}const Ni=Number.isInteger||function(e){return e<<0===e};function bi(n){return Object.prototype.toString.call(n)==="[object String]"}var Fi=Me(function(e,t){var i=e<0?t.length+e:e;return bi(t)?t.charAt(i):t[i]});const wi=Fi;var Ci=ce(function(e){return e==null});const Ei=Ci;var Oi=Me(function(e,t){return e.map(function(i){for(var a=t,r=0,s;r<i.length;){if(a==null)return;s=i[r],a=Ni(s)?wi(s,a):a[s],r+=1}return a})});const Ri=Oi;var xi=Me(function(e,t){return Ri([e],t)[0]});const Ti=xi;class se extends Error{constructor(e,t,i){super(t),this.value=i,this.name=e}toDTO(){return{name:this.name,message:this.message,...this.value&&{value:this.value}}}}class Kt extends se{constructor(e){super("RESOURCE_NOT_FOUND_ERROR",`Resource with id '${e}' not found.`,e)}}class Gt extends se{constructor(e){var t;super("APP_UNEXPECTED_ERROR",(t=e.message)!=null?t:"An unexpected error occurred.",e)}}class Di extends se{constructor(){super("APP_ACCOUNT_INVALID_ERROR","Account not defined")}}class Wt extends se{constructor(e){super("INVALID_NIZZA_GLOBAL_OBJECT_ERROR",`
11
11
  Configuration property invalid: "${e}".
12
12
 
13
13
  It looks like you are trying to use a configuration property that is required but is "undefined", make sure you have initialized the global object "nizza".
@@ -27,5 +27,5 @@
27
27
  account: env.account,
28
28
  ...
29
29
  });
30
- `)}}function Oi(n,e){e.forEach(t=>{if(Si(Fi(t.split("."),n)))throw new Gt(t)})}function wi(){var i,a,s;let n=null,e=null,t=null;try{n=(s=(a=(i=Intl.DateTimeFormat())==null?void 0:i.resolvedOptions())==null?void 0:a.timeZone)!=null?s:null;const r=-new Date().getTimezoneOffset();t=r;const o=r>=0?"+":"-",d=String(Math.floor(Math.abs(r)/60)).padStart(2,"0"),l=String(Math.abs(r)%60).padStart(2,"0");e=`${o}${d}:${l}`}catch{W.error("Error obtaining time zone or offset")}return{offset:e,offsetValue:t,value:n,country:null,included:null,label:null}}class Jt{constructor(e){T(this,"aggregate");T(this,"_numSetPropsApplied",0);this.aggregate=e}setProps(e){for(const[t,i]of Object.entries(e))t in this.aggregate&&(this.aggregate[t]=i);this._numSetPropsApplied++}get isFirstSetProps(){return this._numSetPropsApplied===1}}function Qt(n){return new Jt(n)}class Ri{}class Ci{constructor(e){T(this,"_value");e!==void 0&&(this._value=e)}get value(){return this._value}}var Ie=(n=>(n.VTEX="VTEX",n.VTEX_IO="VTEX-IO",n.VTEX_CMS="PORTAL-VTEX",n.PLATFORM="PLATFORM",n.UNKNOWN="UNKNOWN",n))(Ie||{}),Wt=(n=>(n.PLATFORM="platform_module",n.ADENDA="subscription_module",n.APP_STORE="app_store",n))(Wt||{}),Ve=(n=>(n.ACTIVE="active_contract",n.INACTIVE="inactive_contract",n))(Ve||{}),Kt=(n=>(n.LITE="lite",n.STANDARD="standard",n.PRO="pro",n))(Kt||{}),Zt=(n=>(n.LITE="PLAN_LITE",n.STANDARD="PLAN_ESTANDAR",n.PRO="PLAN_PRO",n.NONE="NO_PLAN",n))(Zt||{}),qt=(n=>(n.PAST="past",n.LIVE="live",n.FUTURE="future",n))(qt||{});class ye{constructor(e){T(this,"root",Qt(this));T(this,"id");T(this,"account");T(this,"accountType",Ie.UNKNOWN);T(this,"username");T(this,"currencyConfig");T(this,"contractType");T(this,"nextDateMetricRecord");T(this,"spendedMinutes",0);T(this,"unlimitedService",!1);T(this,"hoursAvailable",0);T(this,"contractStatus",Ve.ACTIVE);T(this,"createdAt");T(this,"installationDateApp");T(this,"cxAccount");T(this,"freeService",!1);T(this,"subscriptionType",null);T(this,"minutesAvailable",0);T(this,"globalPage");T(this,"stripe");T(this,"descriptionPlan");T(this,"planType");T(this,"selectFreeTrial");T(this,"exceededFeatures");T(this,"host",null);this.root.setProps(e)}static toDomain(e){const{createdAt:t,username:i,...a}=e,s={...a,username:i!=null?i:a.account,createdAt:new Date(Number(t))};return new ye(s)}toPrimitives(){const{root:e,createdAt:t,...i}=this;return{...i,created:t.toISOString()}}}const Ti=`${In.apiUrls.restV1}/accounts/v2`;class Xt{async get(e){const t=`${Ti}/${e}`,{data:i}=await Ae({url:t});return i?ye.toDomain(i):null}}class Ht{constructor(e){this.accountRepository=e}async get(e){try{const t=await this.accountRepository.get(e);if(!t)throw new zt(e);return t}catch(t){throw new Bt(t)}}}const Di=new Xt,_e=new Ht(Di);class Ue{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const me=typeof window=="undefined"||"Deno"in window;function Ai(){}function et(n){return typeof n=="number"&&n>=0&&n!==1/0}function xi(n,e){return Math.max(n+(e||0)-Date.now(),0)}function Li(n,e,t){return Pi(n)?typeof e=="function"?{...t,queryKey:n,queryFn:e}:{...e,queryKey:n}:n}function Yt(n,e){if(n===e)return n;const t=tt(n)&&tt(e);if(t||nt(n)&&nt(e)){const i=t?n.length:Object.keys(n).length,a=t?e:Object.keys(e),s=a.length,r=t?[]:{};let o=0;for(let d=0;d<s;d++){const l=t?d:a[d];r[l]=Yt(n[l],e[l]),r[l]===n[l]&&o++}return i===s&&o===i?n:r}return e}function Ce(n,e){if(n&&!e||e&&!n)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}function tt(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function nt(n){if(!it(n))return!1;const e=n.constructor;if(typeof e=="undefined")return!0;const t=e.prototype;return!(!it(t)||!t.hasOwnProperty("isPrototypeOf"))}function it(n){return Object.prototype.toString.call(n)==="[object Object]"}function Pi(n){return Array.isArray(n)}function Ii(n){return new Promise(e=>{setTimeout(e,n)})}function at(n){Ii(0).then(n)}function st(n,e,t){return t.isDataEqual!=null&&t.isDataEqual(n,e)?n:typeof t.structuralSharing=="function"?t.structuralSharing(n,e):t.structuralSharing!==!1?Yt(n,e):e}class Vi extends Ue{constructor(){super(),this.setup=e=>{if(!me&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document=="undefined"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const _i=new Vi,rt=["online","offline"];class Ui extends Ue{constructor(){super(),this.setup=e=>{if(!me&&window.addEventListener){const t=()=>e();return rt.forEach(i=>{window.addEventListener(i,t,!1)}),()=>{rt.forEach(i=>{window.removeEventListener(i,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(i=>{typeof i=="boolean"?this.setOnline(i):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator=="undefined"||typeof navigator.onLine=="undefined"?!0:navigator.onLine}}const ji=new Ui;function Mi(n){return(n!=null?n:"online")==="online"?ji.isOnline():!0}class $i{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function zi(n){return n instanceof $i}function Bi(){let n=[],e=0,t=u=>{u()},i=u=>{u()};const a=u=>{let f;e++;try{f=u()}finally{e--,e||o()}return f},s=u=>{e?n.push(u):at(()=>{t(u)})},r=u=>(...f)=>{s(()=>{u(...f)})},o=()=>{const u=n;n=[],u.length&&at(()=>{i(()=>{u.forEach(f=>{t(f)})})})};return{batch:a,batchCalls:r,schedule:s,setNotifyFunction:u=>{t=u},setBatchNotifyFunction:u=>{i=u}}}const ne=Bi();class Gi extends Ue{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),ot(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Te(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Te(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const i=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),Ce(i,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled!="undefined"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),this.updateQuery();const s=this.hasListeners();s&&lt(this.currentQuery,a,this.options,i)&&this.executeFetch(),this.updateResult(t),s&&(this.currentQuery!==a||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();const r=this.computeRefetchInterval();s&&(this.currentQuery!==a||this.options.enabled!==i.enabled||r!==this.currentRefetchInterval)&&this.updateRefetchInterval(r)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),i=this.createResult(t,e);return Qi(this,i,e)&&(this.currentResult=i,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),i}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(i=>{Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(i),e[i])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),i=this.client.getQueryCache().build(this.client,t);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(Ai)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),me||this.currentResult.isStale||!et(this.options.staleTime))return;const t=xi(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(me||this.options.enabled===!1||!et(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||_i.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const i=this.currentQuery,a=this.options,s=this.currentResult,r=this.currentResultState,o=this.currentResultOptions,d=e!==i,l=d?e.state:this.currentQueryInitialState,u=d?this.currentResult:this.previousQueryResult,{state:f}=e;let{dataUpdatedAt:c,error:y,errorUpdatedAt:v,fetchStatus:k,status:S}=f,F=!1,E=!1,x;if(t._optimisticResults){const p=this.hasListeners(),m=!p&&ot(e,t),g=p&&lt(e,i,t,a);(m||g)&&(k=Mi(e.options.networkMode)?"fetching":"paused",c||(S="loading")),t._optimisticResults==="isRestoring"&&(k="idle")}if(t.keepPreviousData&&!f.dataUpdatedAt&&u!=null&&u.isSuccess&&S!=="error")x=u.data,c=u.dataUpdatedAt,S=u.status,F=!0;else if(t.select&&typeof f.data!="undefined")if(s&&f.data===(r==null?void 0:r.data)&&t.select===this.selectFn)x=this.selectResult;else try{this.selectFn=t.select,x=t.select(f.data),x=st(s==null?void 0:s.data,x,t),this.selectResult=x,this.selectError=null}catch(p){this.selectError=p}else x=f.data;if(typeof t.placeholderData!="undefined"&&typeof x=="undefined"&&S==="loading"){let p;if(s!=null&&s.isPlaceholderData&&t.placeholderData===(o==null?void 0:o.placeholderData))p=s.data;else if(p=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof p!="undefined")try{p=t.select(p),this.selectError=null}catch(m){this.selectError=m}typeof p!="undefined"&&(S="success",x=st(s==null?void 0:s.data,p,t),E=!0)}this.selectError&&(y=this.selectError,x=this.selectResult,v=Date.now(),S="error");const w=k==="fetching",L=S==="loading",I=S==="error";return{status:S,fetchStatus:k,isLoading:L,isSuccess:S==="success",isError:I,isInitialLoading:L&&w,data:x,dataUpdatedAt:c,error:y,errorUpdatedAt:v,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:w,isRefetching:w&&!L,isLoadingError:I&&f.dataUpdatedAt===0,isPaused:k==="paused",isPlaceholderData:E,isPreviousData:F,isRefetchError:I&&f.dataUpdatedAt!==0,isStale:je(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,i=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Ce(i,t))return;this.currentResult=i;const a={cache:!0},s=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.trackedProps.size)return!0;const d=new Set(o!=null?o:this.trackedProps);return this.options.useErrorBoundary&&d.add("error"),Object.keys(this.currentResult).some(l=>{const u=l;return this.currentResult[u]!==t[u]&&d.has(u)})};(e==null?void 0:e.listeners)!==!1&&s()&&(a.listeners=!0),this.notify({...a,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!zi(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){ne.batch(()=>{if(e.onSuccess){var t,i,a,s;(t=(i=this.options).onSuccess)==null||t.call(i,this.currentResult.data),(a=(s=this.options).onSettled)==null||a.call(s,this.currentResult.data,null)}else if(e.onError){var r,o,d,l;(r=(o=this.options).onError)==null||r.call(o,this.currentResult.error),(d=(l=this.options).onSettled)==null||d.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:u})=>{u(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function Ji(n,e){return e.enabled!==!1&&!n.state.dataUpdatedAt&&!(n.state.status==="error"&&e.retryOnMount===!1)}function ot(n,e){return Ji(n,e)||n.state.dataUpdatedAt>0&&Te(n,e,e.refetchOnMount)}function Te(n,e,t){if(e.enabled!==!1){const i=typeof t=="function"?t(n):t;return i==="always"||i!==!1&&je(n,e)}return!1}function lt(n,e,t,i){return t.enabled!==!1&&(n!==e||i.enabled===!1)&&(!t.suspense||n.state.status!=="error")&&je(n,t)}function je(n,e){return n.isStaleByTime(e.staleTime)}function Qi(n,e,t){return t.keepPreviousData?!1:t.placeholderData!==void 0?e.isPlaceholderData:!Ce(n.getCurrentResult(),e)}const Wi=Vt.useSyncExternalStore,dt=j.createContext(void 0),Ki=j.createContext(!1);function Zi(n,e){return n||(e&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=dt),window.ReactQueryClientContext):dt)}const qi=({context:n}={})=>{const e=j.useContext(Zi(n,j.useContext(Ki)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},en=j.createContext(!1),Xi=()=>j.useContext(en);en.Provider;function Hi(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}const Yi=j.createContext(Hi()),ea=()=>j.useContext(Yi);function ta(n,e){return typeof n=="function"?n(...e):!!n}const na=(n,e)=>{(n.suspense||n.useErrorBoundary)&&(e.isReset()||(n.retryOnMount=!1))},ia=n=>{j.useEffect(()=>{n.clearReset()},[n])},aa=({result:n,errorResetBoundary:e,useErrorBoundary:t,query:i})=>n.isError&&!e.isReset()&&!n.isFetching&&ta(t,[n.error,i]),sa=n=>{n.suspense&&typeof n.staleTime!="number"&&(n.staleTime=1e3)},ra=(n,e)=>n.isLoading&&n.isFetching&&!e,oa=(n,e,t)=>(n==null?void 0:n.suspense)&&ra(e,t),la=(n,e,t)=>e.fetchOptimistic(n).then(({data:i})=>{n.onSuccess==null||n.onSuccess(i),n.onSettled==null||n.onSettled(i,null)}).catch(i=>{t.clearReset(),n.onError==null||n.onError(i),n.onSettled==null||n.onSettled(void 0,i)});function da(n,e){const t=qi({context:n.context}),i=Xi(),a=ea(),s=t.defaultQueryOptions(n);s._optimisticResults=i?"isRestoring":"optimistic",s.onError&&(s.onError=ne.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=ne.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=ne.batchCalls(s.onSettled)),sa(s),na(s,a),ia(a);const[r]=j.useState(()=>new e(t,s)),o=r.getOptimisticResult(s);if(Wi(j.useCallback(d=>{const l=i?()=>{}:r.subscribe(ne.batchCalls(d));return r.updateResult(),l},[r,i]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),j.useEffect(()=>{r.setOptions(s,{listeners:!1})},[s,r]),oa(s,o,i))throw la(s,r,a);if(aa({result:o,errorResetBoundary:a,useErrorBoundary:s.useErrorBoundary,query:r.getCurrentQuery()}))throw o.error;return s.notifyOnChangeProps?o:r.trackResult(o)}function ua(n,e,t){const i=Li(n,e,t);return da(i,Gi)}const ca=()=>["account"],ma=()=>{const{accountName:n}=ai(Se.state),[e,t]=Dn(ve),i=ua(ca(),()=>_e.get(n),{enabled:!!n&&!e,refetchOnWindowFocus:!1,refetchOnMount:!1});return _.useEffect(()=>{const a=i.data;!i.isSuccess||!a||t(a)},[i.status]),{findQuery:i,account:e}},tn=Ot();async function nn(n){const e=await _e.get(n);return tn.set(ve,e),e}var an=(n=>(n.CREATED="CREATED",n.STARTING="STARTING",n.LIVE="LIVE",n.FINALIZED="FINALIZED",n))(an||{});const fa={ALL:"*",CORE:"core:**",LIVE_STREAMING_EVENT:"event:**",EVENT_CHAT:"event:chat:**",EVENT_PRODUCTS:"event:products:**",CUSTOMIZE_LIVE:"customize-live:**",PLAYER:"player:**",SNACK_SIZE_VIDEO:"ssv:**",SNACK_SIZE_VIDEO_ADMIN:"ssv-admin:**",UI:"ui:**",UTILS:"utils:**"},pa={EVENT_STATUS_CHANGED:"event:statusChanged"};var sn=(n=>(n.English="en",n.Spanish="es",n.Portuguese="pt",n))(sn||{}),rn=(n=>(n.COMBO="Combo",n))(rn||{}),on=(n=>(n.VTEX="VTEX",n.PLATFORM="platform",n.CACE="CACE",n.GLOBAL_PAGE="globalPage",n.DEV_LOCAL="dev:local",n.CUSTOMIZATION="customization",n))(on||{});const ha={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,e){console&&console[n]&&console[n].apply(console,e)}};class fe{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||ha,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,i,a){return a&&!this.debug?null:(typeof e[0]=="string"&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new fe(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new fe(this.logger,e)}}var M=new fe;class Ne{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(i=>{this.observers[i]=this.observers[i]||[],this.observers[i].push(t)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(i=>i!==t)}}emit(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];this.observers[e]&&[].concat(this.observers[e]).forEach(r=>{r(...i)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(r=>{r.apply(r,[e,...i])})}}function H(){let n,e;const t=new Promise((i,a)=>{n=i,e=a});return t.resolve=n,t.reject=e,t}function ut(n){return n==null?"":""+n}function ga(n,e,t){n.forEach(i=>{e[i]&&(t[i]=e[i])})}function Me(n,e,t){function i(r){return r&&r.indexOf("###")>-1?r.replace(/###/g,"."):r}function a(){return!n||typeof n=="string"}const s=typeof e!="string"?[].concat(e):e.split(".");for(;s.length>1;){if(a())return{};const r=i(s.shift());!n[r]&&t&&(n[r]=new t),Object.prototype.hasOwnProperty.call(n,r)?n=n[r]:n={}}return a()?{}:{obj:n,k:i(s.shift())}}function ct(n,e,t){const{obj:i,k:a}=Me(n,e,Object);i[a]=t}function ka(n,e,t,i){const{obj:a,k:s}=Me(n,e,Object);a[s]=a[s]||[],i&&(a[s]=a[s].concat(t)),i||a[s].push(t)}function pe(n,e){const{obj:t,k:i}=Me(n,e);if(t)return t[i]}function va(n,e,t){const i=pe(n,t);return i!==void 0?i:pe(e,t)}function ln(n,e,t){for(const i in e)i!=="__proto__"&&i!=="constructor"&&(i in n?typeof n[i]=="string"||n[i]instanceof String||typeof e[i]=="string"||e[i]instanceof String?t&&(n[i]=e[i]):ln(n[i],e[i],t):n[i]=e[i]);return n}function G(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Sa={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function ya(n){return typeof n=="string"?n.replace(/[&<>"'\/]/g,e=>Sa[e]):n}const Na=[" ",",","?","!",";"];function ba(n,e,t){e=e||"",t=t||"";const i=Na.filter(r=>e.indexOf(r)<0&&t.indexOf(r)<0);if(i.length===0)return!0;const a=new RegExp(`(${i.map(r=>r==="?"?"\\?":r).join("|")})`);let s=!a.test(n);if(!s){const r=n.indexOf(t);r>0&&!a.test(n.substring(0,r))&&(s=!0)}return s}function he(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!n)return;if(n[e])return n[e];const i=e.split(t);let a=n;for(let s=0;s<i.length;++s){if(!a||typeof a[i[s]]=="string"&&s+1<i.length)return;if(a[i[s]]===void 0){let r=2,o=i.slice(s,s+r).join(t),d=a[o];for(;d===void 0&&i.length>s+r;)r++,o=i.slice(s,s+r).join(t),d=a[o];if(d===void 0)return;if(d===null)return null;if(e.endsWith(o)){if(typeof d=="string")return d;if(o&&typeof d[o]=="string")return d[o]}const l=i.slice(s+r).join(t);return l?he(d,l,t):void 0}a=a[i[s]]}return a}function ge(n){return n&&n.indexOf("_")>0?n.replace("_","-"):n}class mt extends Ne{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,r=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let o=[e,t];i&&typeof i!="string"&&(o=o.concat(i)),i&&typeof i=="string"&&(o=o.concat(s?i.split(s):i)),e.indexOf(".")>-1&&(o=e.split("."));const d=pe(this.data,o);return d||!r||typeof i!="string"?d:he(this.data&&this.data[e]&&this.data[e][t],i,s)}addResource(e,t,i,a){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const r=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let o=[e,t];i&&(o=o.concat(r?i.split(r):i)),e.indexOf(".")>-1&&(o=e.split("."),a=t,t=o[1]),this.addNamespaces(t),ct(this.data,o,a),s.silent||this.emit("added",e,t,i,a)}addResources(e,t,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in i)(typeof i[s]=="string"||Object.prototype.toString.apply(i[s])==="[object Array]")&&this.addResource(e,t,s,i[s],{silent:!0});a.silent||this.emit("added",e,t,i)}addResourceBundle(e,t,i,a,s){let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),a=i,i=t,t=o[1]),this.addNamespaces(t);let d=pe(this.data,o)||{};a?ln(d,i,s):d={...d,...i},ct(this.data,o,d),r.silent||this.emit("added",e,t,i)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(a=>t[a]&&Object.keys(t[a]).length>0)}toJSON(){return this.data}}var dn={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,e,t,i,a){return n.forEach(s=>{this.processors[s]&&(e=this.processors[s].process(e,t,i,a))}),e}};const ft={};class ke extends Ne{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),ga(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=M.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const i=this.resolve(e,t);return i&&i.res!==void 0}extractFromKey(e,t){let i=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const a=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let s=t.ns||this.options.defaultNS||[];const r=i&&e.indexOf(i)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!ba(e,i,a);if(r&&!o){const d=e.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:e,namespaces:s};const l=e.split(i);(i!==a||i===a&&this.options.ns.indexOf(l[0])>-1)&&(s=l.shift()),e=l.join(a)}return typeof s=="string"&&(s=[s]),{key:e,namespaces:s}}translate(e,t,i){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const a=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:r,namespaces:o}=this.extractFromKey(e[e.length-1],t),d=o[o.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&l.toLowerCase()==="cimode"){if(u){const w=t.nsSeparator||this.options.nsSeparator;return a?{res:`${d}${w}${r}`,usedKey:r,exactUsedKey:r,usedLng:l,usedNS:d,usedParams:this.getUsedParamsDetails(t)}:`${d}${w}${r}`}return a?{res:r,usedKey:r,exactUsedKey:r,usedLng:l,usedNS:d,usedParams:this.getUsedParamsDetails(t)}:r}const f=this.resolve(e,t);let c=f&&f.res;const y=f&&f.usedKey||r,v=f&&f.exactUsedKey||r,k=Object.prototype.toString.apply(c),S=["[object Number]","[object Function]","[object RegExp]"],F=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject;if(E&&c&&(typeof c!="string"&&typeof c!="boolean"&&typeof c!="number")&&S.indexOf(k)<0&&!(typeof F=="string"&&k==="[object Array]")){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,c,{...t,ns:o}):`key '${r} (${this.language})' returned an object instead of string.`;return a?(f.res=w,f.usedParams=this.getUsedParamsDetails(t),f):w}if(s){const w=k==="[object Array]",L=w?[]:{},I=w?v:y;for(const P in c)if(Object.prototype.hasOwnProperty.call(c,P)){const p=`${I}${s}${P}`;L[P]=this.translate(p,{...t,joinArrays:!1,ns:o}),L[P]===p&&(L[P]=c[P])}c=L}}else if(E&&typeof F=="string"&&k==="[object Array]")c=c.join(F),c&&(c=this.extendTranslation(c,e,t,i));else{let w=!1,L=!1;const I=t.count!==void 0&&typeof t.count!="string",P=ke.hasDefaultValue(t),p=I?this.pluralResolver.getSuffix(l,t.count,t):"",m=t.ordinal&&I?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=t[`defaultValue${p}`]||t[`defaultValue${m}`]||t.defaultValue;!this.isValidLookup(c)&&P&&(w=!0,c=g),this.isValidLookup(c)||(L=!0,c=r);const N=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&L?void 0:c,O=P&&g!==c&&this.options.updateMissing;if(L||w||O){if(this.logger.log(O?"updateKey":"missingKey",l,d,r,O?g:c),s){const C=this.resolve(r,{...t,keySeparator:!1});C&&C.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 b=[];const R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&R&&R[0])for(let C=0;C<R.length;C++)b.push(R[C]);else this.options.saveMissingTo==="all"?b=this.languageUtils.toResolveHierarchy(t.lng||this.language):b.push(t.lng||this.language);const D=(C,A,V)=>{const re=P&&V!==c?V:N;this.options.missingKeyHandler?this.options.missingKeyHandler(C,d,A,re,O,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(C,d,A,re,O,t),this.emit("missingKey",C,d,A,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?b.forEach(C=>{this.pluralResolver.getSuffixes(C,t).forEach(A=>{D([C],r+A,t[`defaultValue${A}`]||g)})}):D(b,r,g))}c=this.extendTranslation(c,e,t,f,i),L&&c===r&&this.options.appendNamespaceToMissingKey&&(c=`${d}:${r}`),(L||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}:${r}`:r,w?c:void 0):c=this.options.parseMissingKeyHandler(c))}return a?(f.res=c,f.usedParams=this.getUsedParamsDetails(t),f):c}extendTranslation(e,t,i,a,s){var r=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const l=typeof e=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(l){const c=e.match(this.interpolator.nestingRegexp);u=c&&c.length}let f=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),e=this.interpolator.interpolate(e,f,i.lng||this.language,i),l){const c=e.match(this.interpolator.nestingRegexp),y=c&&c.length;u<y&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&a&&a.res&&(i.lng=a.usedLng),i.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var c=arguments.length,y=new Array(c),v=0;v<c;v++)y[v]=arguments[v];return s&&s[0]===y[0]&&!i.context?(r.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${t[0]}`),null):r.translate(...y,t)},i)),i.interpolation&&this.interpolator.reset()}const o=i.postProcess||this.options.postProcess,d=typeof o=="string"?[o]:o;return e!=null&&d&&d.length&&i.applyPostProcessor!==!1&&(e=dn.handle(d,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:a,...i}:i,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,a,s,r,o;return typeof e=="string"&&(e=[e]),e.forEach(d=>{if(this.isValidLookup(i))return;const l=this.extractFromKey(d,t),u=l.key;a=u;let f=l.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const c=t.count!==void 0&&typeof t.count!="string",y=c&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),v=t.context!==void 0&&(typeof t.context=="string"||typeof t.context=="number")&&t.context!=="",k=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);f.forEach(S=>{this.isValidLookup(i)||(o=S,!ft[`${k[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(ft[`${k[0]}-${S}`]=!0,this.logger.warn(`key "${a}" for languages "${k.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),k.forEach(F=>{if(this.isValidLookup(i))return;r=F;const E=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(E,u,F,S,t);else{let w;c&&(w=this.pluralResolver.getSuffix(F,t.count,t));const L=`${this.options.pluralSeparator}zero`,I=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(E.push(u+w),t.ordinal&&w.indexOf(I)===0&&E.push(u+w.replace(I,this.options.pluralSeparator)),y&&E.push(u+L)),v){const P=`${u}${this.options.contextSeparator}${t.context}`;E.push(P),c&&(E.push(P+w),t.ordinal&&w.indexOf(I)===0&&E.push(P+w.replace(I,this.options.pluralSeparator)),y&&E.push(P+L))}}let x;for(;x=E.pop();)this.isValidLookup(i)||(s=x,i=this.getResource(F,S,x,t))}))})}),{res:i,usedKey:a,exactUsedKey:s,usedLng:r,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,i,a):this.resourceStore.getResource(e,t,i,a)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&typeof e.replace!="string";let a=i?e.replace:e;if(i&&typeof e.count!="undefined"&&(a.count=e.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!i){a={...a};for(const s of t)delete a[s]}return a}static hasDefaultValue(e){const t="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t===i.substring(0,t.length)&&e[i]!==void 0)return!0;return!1}}function Oe(n){return n.charAt(0).toUpperCase()+n.slice(1)}class pt{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=M.create("languageUtils")}getScriptPartFromCode(e){if(e=ge(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=ge(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let i=e.split("-");return this.options.lowerCaseLng?i=i.map(a=>a.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=Oe(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=Oe(i[1].toLowerCase())),t.indexOf(i[2].toLowerCase())>-1&&(i[2]=Oe(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(i=>{if(t)return;const a=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(a))&&(t=a)}),!t&&this.options.supportedLngs&&e.forEach(i=>{if(t)return;const a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return t=a;t=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&s.indexOf(a)===0)return s})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!t)return e.default||[];let i=e[t];return i||(i=e[this.getScriptPartFromCode(t)]),i||(i=e[this.formatLanguageCode(t)]),i||(i=e[this.getLanguagePartFromCode(t)]),i||(i=e.default),i||[]}toResolveHierarchy(e,t){const i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),a=[],s=r=>{r&&(this.isSupportedCode(r)?a.push(r):this.logger.warn(`rejecting language code not found in supportedLngs: ${r}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):typeof e=="string"&&s(this.formatLanguageCode(e)),i.forEach(r=>{a.indexOf(r)<0&&s(this.formatLanguageCode(r))}),a}}let Fa=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Ea={1:function(n){return+(n>1)},2:function(n){return+(n!=1)},3:function(n){return 0},4:function(n){return n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2},5:function(n){return n==0?0:n==1?1:n==2?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},6:function(n){return n==1?0:n>=2&&n<=4?1:2},7:function(n){return n==1?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2},8:function(n){return n==1?0:n==2?1:n!=8&&n!=11?2:3},9:function(n){return+(n>=2)},10:function(n){return n==1?0:n==2?1:n<7?2:n<11?3:4},11:function(n){return n==1||n==11?0:n==2||n==12?1:n>2&&n<20?2:3},12:function(n){return+(n%10!=1||n%100==11)},13:function(n){return+(n!==0)},14:function(n){return n==1?0:n==2?1:n==3?2:3},15:function(n){return n%10==1&&n%100!=11?0:n%10>=2&&(n%100<10||n%100>=20)?1:2},16:function(n){return n%10==1&&n%100!=11?0:n!==0?1:2},17:function(n){return n==1||n%10==1&&n%100!=11?0:1},18:function(n){return n==0?0:n==1?1:2},19:function(n){return n==1?0:n==0||n%100>1&&n%100<11?1:n%100>10&&n%100<20?2:3},20:function(n){return n==1?0:n==0||n%100>0&&n%100<20?1:2},21:function(n){return n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0},22:function(n){return n==1?0:n==2?1:(n<0||n>10)&&n%10==0?2:3}};const Oa=["v1","v2","v3"],wa=["v4"],ht={zero:0,one:1,two:2,few:3,many:4,other:5};function Ra(){const n={};return Fa.forEach(e=>{e.lngs.forEach(t=>{n[t]={numbers:e.nr,plurals:Ea[e.fc]}})}),n}class Ca{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=M.create("pluralResolver"),(!this.options.compatibilityJSON||wa.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Ra()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(ge(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,t);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,i).map(a=>`${t}${a}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,t);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((a,s)=>ht[a]-ht[s]).map(a=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${a}`):i.numbers.map(a=>this.getSuffix(e,a,t)):[]}getSuffix(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(e,i);return a?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${a.select(t)}`:this.getSuffixRetroCompatible(a,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let a=e.numbers[i];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const s=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!Oa.includes(this.options.compatibilityJSON)}}function gt(n,e,t){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=va(n,e,t);return!s&&a&&typeof t=="string"&&(s=he(n,t,i),s===void 0&&(s=he(e,t,i))),s}class Ta{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=M.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(t=>t),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=t.escape!==void 0?t.escape:ya,this.escapeValue=t.escapeValue!==void 0?t.escapeValue:!0,this.useRawValueToEscape=t.useRawValueToEscape!==void 0?t.useRawValueToEscape:!1,this.prefix=t.prefix?G(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?G(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?G(t.nestingPrefix):t.nestingPrefixEscaped||G("$t("),this.nestingSuffix=t.nestingSuffix?G(t.nestingSuffix):t.nestingSuffixEscaped||G(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=t.alwaysFormat!==void 0?t.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,"g");const t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(t,"g");const i=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(i,"g")}interpolate(e,t,i,a){let s,r,o;const d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(v){return v.replace(/\$/g,"$$$$")}const u=v=>{if(v.indexOf(this.formatSeparator)<0){const E=gt(t,d,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,i,{...a,...t,interpolationkey:v}):E}const k=v.split(this.formatSeparator),S=k.shift().trim(),F=k.join(this.formatSeparator).trim();return this.format(gt(t,d,S,this.options.keySeparator,this.options.ignoreJSONStructure),F,i,{...a,...t,interpolationkey:S})};this.resetRegExp();const f=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,c=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>l(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?l(this.escape(v)):l(v)}].forEach(v=>{for(o=0;s=v.regex.exec(e);){const k=s[1].trim();if(r=u(k),r===void 0)if(typeof f=="function"){const F=f(e,s,a);r=typeof F=="string"?F:""}else if(a&&Object.prototype.hasOwnProperty.call(a,k))r="";else if(c){r=s[0];continue}else this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`),r="";else typeof r!="string"&&!this.useRawValueToEscape&&(r=ut(r));const S=v.safeValue(r);if(e=e.replace(s[0],S),c?(v.regex.lastIndex+=r.length,v.regex.lastIndex-=s[0].length):v.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,r;function o(d,l){const u=this.nestingOptionsSeparator;if(d.indexOf(u)<0)return d;const f=d.split(new RegExp(`${u}[ ]*{`));let c=`{${f[1]}`;d=f[0],c=this.interpolate(c,r);const y=c.match(/'/g),v=c.match(/"/g);(y&&y.length%2===0&&!v||v.length%2!==0)&&(c=c.replace(/'/g,'"'));try{r=JSON.parse(c),l&&(r={...l,...r})}catch(k){return this.logger.warn(`failed parsing options string in nesting for key ${d}`,k),`${d}${u}${c}`}return delete r.defaultValue,d}for(;a=this.nestingRegexp.exec(e);){let d=[];r={...i},r=r.replace&&typeof r.replace!="string"?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let l=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const u=a[1].split(this.formatSeparator).map(f=>f.trim());a[1]=u.shift(),d=u,l=!0}if(s=t(o.call(this,a[1].trim(),r),r),s&&a[0]===e&&typeof s!="string")return s;typeof s!="string"&&(s=ut(s)),s||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`),s=""),l&&(s=d.reduce((u,f)=>this.format(u,f,i.lng,{...i,interpolationkey:a[1].trim()}),s.trim())),e=e.replace(a[0],s),this.regexp.lastIndex=0}return e}}function Da(n){let e=n.toLowerCase().trim();const t={};if(n.indexOf("(")>-1){const i=n.split("(");e=i[0].toLowerCase().trim();const a=i[1].substring(0,i[1].length-1);e==="currency"&&a.indexOf(":")<0?t.currency||(t.currency=a.trim()):e==="relativetime"&&a.indexOf(":")<0?t.range||(t.range=a.trim()):a.split(";").forEach(r=>{if(!r)return;const[o,...d]=r.split(":"),l=d.join(":").trim().replace(/^'+|'+$/g,"");t[o.trim()]||(t[o.trim()]=l),l==="false"&&(t[o.trim()]=!1),l==="true"&&(t[o.trim()]=!0),isNaN(l)||(t[o.trim()]=parseInt(l,10))})}return{formatName:e,formatOptions:t}}function J(n){const e={};return function(i,a,s){const r=a+JSON.stringify(s);let o=e[r];return o||(o=n(ge(a),s),e[r]=o),o(i)}}class Aa{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=M.create("formatter"),this.options=e,this.formats={number:J((t,i)=>{const a=new Intl.NumberFormat(t,{...i});return s=>a.format(s)}),currency:J((t,i)=>{const a=new Intl.NumberFormat(t,{...i,style:"currency"});return s=>a.format(s)}),datetime:J((t,i)=>{const a=new Intl.DateTimeFormat(t,{...i});return s=>a.format(s)}),relativetime:J((t,i)=>{const a=new Intl.RelativeTimeFormat(t,{...i});return s=>a.format(s,i.range||"day")}),list:J((t,i)=>{const a=new Intl.ListFormat(t,{...i});return s=>a.format(s)})},this.init(e)}init(e){const i=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=J(t)}format(e,t,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return t.split(this.formatSeparator).reduce((o,d)=>{const{formatName:l,formatOptions:u}=Da(d);if(this.formats[l]){let f=o;try{const c=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},y=c.locale||c.lng||a.locale||a.lng||i;f=this.formats[l](o,y,{...u,...a,...c})}catch(c){this.logger.warn(c)}return f}else this.logger.warn(`there was no format function for ${l}`);return o},e)}}function xa(n,e){n.pending[e]!==void 0&&(delete n.pending[e],n.pendingCount--)}class La extends Ne{constructor(e,t,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=a,this.logger=M.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=[],this.backend&&this.backend.init&&this.backend.init(i,a.backend,a)}queueLoad(e,t,i,a){const s={},r={},o={},d={};return e.forEach(l=>{let u=!0;t.forEach(f=>{const c=`${l}|${f}`;!i.reload&&this.store.hasResourceBundle(l,f)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?r[c]===void 0&&(r[c]=!0):(this.state[c]=1,u=!1,r[c]===void 0&&(r[c]=!0),s[c]===void 0&&(s[c]=!0),d[f]===void 0&&(d[f]=!0)))}),u||(o[l]=!0)}),(Object.keys(s).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(s),pending:Object.keys(r),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(d)}}loaded(e,t,i){const a=e.split("|"),s=a[0],r=a[1];t&&this.emit("failedLoading",s,r,t),i&&this.store.addResourceBundle(s,r,i),this.state[e]=t?-1:2;const o={};this.queue.forEach(d=>{ka(d.loaded,[s],r),xa(d,e),t&&d.errors.push(t),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(l=>{o[l]||(o[l]={});const u=d.loaded[l];u.length&&u.forEach(f=>{o[l][f]===void 0&&(o[l][f]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(d=>!d.done)}read(e,t,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,r=arguments.length>5?arguments[5]:void 0;if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:i,tried:a,wait:s,callback:r});return}this.readingCalls++;const o=(l,u)=>{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(l&&u&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,i,a+1,s*2,r)},s);return}r(l,u)},d=this.backend[i].bind(this.backend);if(d.length===2){try{const l=d(e,t);l&&typeof l.then=="function"?l.then(u=>o(null,u)).catch(o):o(null,l)}catch(l){o(l)}return}return d(e,t,o)}prepareLoading(e,t){let i=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();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof t=="string"&&(t=[t]);const s=this.queueLoad(e,t,i,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(r=>{this.loadOne(r)})}load(e,t,i){this.prepareLoading(e,t,{},i)}reload(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=e.split("|"),a=i[0],s=i[1];this.read(a,s,"read",void 0,void 0,(r,o)=>{r&&this.logger.warn(`${t}loading namespace ${s} for language ${a} failed`,r),!r&&o&&this.logger.log(`${t}loaded namespace ${s} for language ${a}`,o),this.loaded(e,r,o)})}saveMissing(e,t,i,a,s){let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${i}" as the namespace "${t}" 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(!(i==null||i==="")){if(this.backend&&this.backend.create){const d={...r,isUpdate:s},l=this.backend.create.bind(this.backend);if(l.length<6)try{let u;l.length===5?u=l(e,t,i,a,d):u=l(e,t,i,a),u&&typeof u.then=="function"?u.then(f=>o(null,f)).catch(o):o(null,u)}catch(u){o(u)}else l(e,t,i,a,o,d)}!e||!e[0]||this.store.addResource(e[0],t,i,a)}}}function kt(){return{debug:!1,initImmediate:!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:function(e){let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const i=e[3]||e[2];Object.keys(i).forEach(a=>{t[a]=i[a]})}return t},interpolation:{escapeValue:!0,format:(n,e,t,i)=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function vt(n){return typeof n.ns=="string"&&(n.ns=[n.ns]),typeof n.fallbackLng=="string"&&(n.fallbackLng=[n.fallbackLng]),typeof n.fallbackNS=="string"&&(n.fallbackNS=[n.fallbackNS]),n.supportedLngs&&n.supportedLngs.indexOf("cimode")<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),n}function le(){}function Pa(n){Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(t=>{typeof n[t]=="function"&&(n[t]=n[t].bind(n))})}class ie extends Ne{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=vt(e),this.services={},this.logger=M,this.modules={external:[]},Pa(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;typeof t=="function"&&(i=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(typeof t.ns=="string"?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const a=kt();this.options={...a,...this.options,...vt(t)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);function s(u){return u?typeof u=="function"?new u:u:null}if(!this.options.isClone){this.modules.logger?M.init(s(this.modules.logger),this.options):M.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl!="undefined"&&(u=Aa);const f=new pt(this.options);this.store=new mt(this.options.resources,this.options);const c=this.services;c.logger=M,c.resourceStore=this.store,c.languageUtils=f,c.pluralResolver=new Ca(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(c.formatter=s(u),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new Ta(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new La(s(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(y){for(var v=arguments.length,k=new Array(v>1?v-1:0),S=1;S<v;S++)k[S-1]=arguments[S];e.emit(y,...k)}),this.modules.languageDetector&&(c.languageDetector=s(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=s(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new ke(this.services,this.options),this.translator.on("*",function(y){for(var v=arguments.length,k=new Array(v>1?v-1:0),S=1;S<v;S++)k[S-1]=arguments[S];e.emit(y,...k)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,i||(i=le),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return e.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return e.store[u](...arguments),e}});const d=H(),l=()=>{const u=(f,c)=>{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),d.resolve(c),i(f,c)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),d}loadResources(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le;const a=typeof e=="string"?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const s=[],r=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(l=>{l!=="cimode"&&s.indexOf(l)<0&&s.push(l)})};a?r(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>r(d)),this.options.preload&&this.options.preload.forEach(o=>r(o)),this.services.backendConnector.load(s,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(o)})}else i(null)}reloadResources(e,t,i){const a=H();return e||(e=this.languages),t||(t=this.options.ns),i||(i=le),this.services.backendConnector.reload(e,t,s=>{a.resolve(),i(s)}),a}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&dn.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const i=this.languages[t];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(e,t){var i=this;this.isLanguageChangingTo=e;const a=H();this.emit("languageChanging",e);const s=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},r=(d,l)=>{l?(s(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,a.resolve(function(){return i.t(...arguments)}),t&&t(d,function(){return i.t(...arguments)})},o=d=>{!e&&!d&&this.services.languageDetector&&(d=[]);const l=typeof d=="string"?d:this.services.languageUtils.getBestMatchFromCodes(d);l&&(this.language||s(l),this.translator.language||this.translator.changeLanguage(l),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(l)),this.loadResources(l,u=>{r(u,l)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),a}getFixedT(e,t,i){var a=this;const s=function(r,o){let d;if(typeof o!="object"){for(var l=arguments.length,u=new Array(l>2?l-2:0),f=2;f<l;f++)u[f-2]=arguments[f];d=a.options.overloadTranslationOptionHandler([r,o].concat(u))}else d={...o};d.lng=d.lng||s.lng,d.lngs=d.lngs||s.lngs,d.ns=d.ns||s.ns,d.keyPrefix=d.keyPrefix||i||s.keyPrefix;const c=a.options.keySeparator||".";let y;return d.keyPrefix&&Array.isArray(r)?y=r.map(v=>`${d.keyPrefix}${c}${v}`):y=d.keyPrefix?`${d.keyPrefix}${c}${r}`:r,a.t(y,d)};return typeof e=="string"?s.lng=e:s.lngs=e,s.ns=t,s.keyPrefix=i,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=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 i=t.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const r=(o,d)=>{const l=this.services.backendConnector.state[`${o}|${d}`];return l===-1||l===2};if(t.precheck){const o=t.precheck(this,r);if(o!==void 0)return o}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(i,e)&&(!a||r(s,e)))}loadNamespaces(e,t){const i=H();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{i.resolve(),t&&t(a)}),i):(t&&t(),Promise.resolve())}loadLanguages(e,t){const i=H();typeof e=="string"&&(e=[e]);const a=this.options.preload||[],s=e.filter(r=>a.indexOf(r)<0);return s.length?(this.options.preload=a.concat(s),this.loadResources(r=>{i.resolve(),t&&t(r)}),i):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=["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"],i=this.services&&this.services.languageUtils||new pt(kt());return t.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ie(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le;const i=e.forkResourceStore;i&&delete e.forkResourceStore;const a={...this.options,...e,isClone:!0},s=new ie(a);return(e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(o=>{s[o]=this[o]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},i&&(s.store=new mt(this.store.data,a),s.services.resourceStore=s.store),s.translator=new ke(s.services,a),s.translator.on("*",function(o){for(var d=arguments.length,l=new Array(d>1?d-1:0),u=1;u<d;u++)l[u-1]=arguments[u];s.emit(o,...l)}),s.init(a,t),s.translator.options=a,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const U=ie.createInstance();U.createInstance=ie.createInstance;U.createInstance;U.dir;U.init;U.loadResources;U.reloadResources;U.use;U.changeLanguage;U.getFixedT;U.t;U.exists;U.setDefaultNamespace;U.hasLoadedNamespace;U.loadNamespaces;U.loadLanguages;function Ia(n){const e=Object.values(n);return Object.assign({},...e)}function Va(n){return Object.entries(n).reduce((e,[t,i])=>{const a=Ia(i);return{...e,[t]:a}},{})}function _a(n){const e=Va(n);Object.entries(e).forEach(([t,i])=>{U.addResourceBundle(t,"translation",i,!0)})}function Ua(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function ae(n){"@babel/helpers - typeof";return ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ae(n)}function ja(n,e){if(ae(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e||"default");if(ae(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Ma(n){var e=ja(n,"string");return ae(e)==="symbol"?e:String(e)}function St(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,Ma(i.key),i)}}function $a(n,e,t){return e&&St(n.prototype,e),t&&St(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}var un=[],za=un.forEach,Ba=un.slice;function Ga(n){return za.call(Ba.call(arguments,1),function(e){if(e)for(var t in e)n[t]===void 0&&(n[t]=e[t])}),n}var yt=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Ja=function(e,t,i){var a=i||{};a.path=a.path||"/";var s=encodeURIComponent(t),r="".concat(e,"=").concat(s);if(a.maxAge>0){var o=a.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");r+="; Max-Age=".concat(Math.floor(o))}if(a.domain){if(!yt.test(a.domain))throw new TypeError("option domain is invalid");r+="; Domain=".concat(a.domain)}if(a.path){if(!yt.test(a.path))throw new TypeError("option path is invalid");r+="; Path=".concat(a.path)}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");r+="; Expires=".concat(a.expires.toUTCString())}if(a.httpOnly&&(r+="; HttpOnly"),a.secure&&(r+="; Secure"),a.sameSite){var d=typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite;switch(d){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return r},Nt={create:function(e,t,i,a){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};i&&(s.expires=new Date,s.expires.setTime(s.expires.getTime()+i*60*1e3)),a&&(s.domain=a),document.cookie=Ja(e,encodeURIComponent(t),s)},read:function(e){for(var t="".concat(e,"="),i=document.cookie.split(";"),a=0;a<i.length;a++){for(var s=i[a];s.charAt(0)===" ";)s=s.substring(1,s.length);if(s.indexOf(t)===0)return s.substring(t.length,s.length)}return null},remove:function(e){this.create(e,"",-1)}},Qa={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&typeof document!="undefined"){var i=Nt.read(e.lookupCookie);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&typeof document!="undefined"&&Nt.create(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},Wa={name:"querystring",lookup:function(e){var t;if(typeof window!="undefined"){var i=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));for(var a=i.substring(1),s=a.split("&"),r=0;r<s.length;r++){var o=s[r].indexOf("=");if(o>0){var d=s[r].substring(0,o);d===e.lookupQuerystring&&(t=s[r].substring(o+1))}}}return t}},Y=null,bt=function(){if(Y!==null)return Y;try{Y=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Y=!1}return Y},Ka={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&bt()){var i=window.localStorage.getItem(e.lookupLocalStorage);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&bt()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},ee=null,Ft=function(){if(ee!==null)return ee;try{ee=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{ee=!1}return ee},Za={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&Ft()){var i=window.sessionStorage.getItem(e.lookupSessionStorage);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&Ft()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},qa={name:"navigator",lookup:function(e){var t=[];if(typeof navigator!="undefined"){if(navigator.languages)for(var i=0;i<navigator.languages.length;i++)t.push(navigator.languages[i]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},Xa={name:"htmlTag",lookup:function(e){var t,i=e.htmlTag||(typeof document!="undefined"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(t=i.getAttribute("lang")),t}},Ha={name:"path",lookup:function(e){var t;if(typeof window!="undefined"){var i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(i instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof i[e.lookupFromPathIndex]!="string")return;t=i[e.lookupFromPathIndex].replace("/","")}else t=i[0].replace("/","")}return t}},Ya={name:"subdomain",lookup:function(e){var t=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,i=typeof window!="undefined"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[t]}};function es(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var cn=function(){function n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ua(this,n),this.type="languageDetector",this.detectors={},this.init(e,t)}return $a(n,[{key:"init",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=Ga(i,this.options||{},es()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(s){return s.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(Qa),this.addDetector(Wa),this.addDetector(Ka),this.addDetector(Za),this.addDetector(qa),this.addDetector(Xa),this.addDetector(Ha),this.addDetector(Ya)}},{key:"addDetector",value:function(t){this.detectors[t.name]=t}},{key:"detect",value:function(t){var i=this;t||(t=this.options.order);var a=[];return t.forEach(function(s){if(i.detectors[s]){var r=i.detectors[s].lookup(i.options);r&&typeof r=="string"&&(r=[r]),r&&(a=a.concat(r))}}),a=a.map(function(s){return i.options.convertDetectedLanguage(s)}),this.services.languageUtils.getBestMatchFromCodes?a:a.length>0?a[0]:null}},{key:"cacheUserLanguage",value:function(t,i){var a=this;i||(i=this.options.caches),i&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||i.forEach(function(s){a.detectors[s]&&a.detectors[s].cacheUserLanguage(t,a.options)}))}}]),n}();cn.type="languageDetector";const ts=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ns={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},is=n=>ns[n],as=n=>n.replace(ts,is);let Et={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:as};function ss(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Et={...Et,...n}}const rs={type:"3rdParty",init(n){ss(n.options.react)}},os=U.use(rs).use(cn).init({resources:{},fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1,format:(n,e,t)=>{if(e){const[i,...a]=e.split(",").map(s=>s.trim());if(i==="number")return new Intl.NumberFormat(t).format(n);if(i==="date")return new Intl.DateTimeFormat(t).format(n);if(i==="currency")return new Intl.NumberFormat(t,{style:"currency",currency:a[0]||"USD",currencyDisplay:"narrowSymbol"}).format(n).replace("$","").trim()}return n}},detection:{order:["navigator","cookie","localStorage","sessionStorage","querystring","htmlTag","path","subdomain"]}});let $e=new Map;const De=_.createContext($e),ls=({children:n,stores:e})=>{const t=_.useContext(De),i=_.useMemo(()=>{const a=new Map;return e.forEach(s=>a.set(s.class,s.value)),$e=new Map([...t,...a])},[]);return kn.jsx(De.Provider,{value:i,children:n})};function ds(n){return _.useContext(De).get(n)}function us(n){return $e.get(n)}var mn=(n=>(n.Created="CREATED",n.Finalized="FINALIZED",n.Live="LIVE",n.Starting="STARTING",n))(mn||{}),fn=(n=>(n.Add="add",n.Remove="remove",n))(fn||{}),pn=(n=>(n.Active="active",n.Inactive="inactive",n))(pn||{});const cs={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateCollectionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ms={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},fs={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ps={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},hs={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ManageCollectionProduct"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ManageCollectionProductInInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"manageCollectionProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},gs={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ks={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateCollectionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},vs={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindMinimalEvent"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FindEventInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findEvent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EventData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"thumbnailsPath"}},{kind:"Field",name:{kind:"Name",value:"recordVideoPath"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"thumbnails"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Ss={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchMinimalEvents"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SearchEventInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchEvent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EventArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"thumbnailsPath"}},{kind:"Field",name:{kind:"Name",value:"recordVideoPath"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ys={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BlockUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BlockUserInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blockUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BlockUserSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Ns={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ChangeAccountUsername"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ChangeUsernameInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"changeAccountUsername"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChangeUsernameSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},bs={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteChatInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DeleteChatMessageSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Fs={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetAllChatMessageInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChatMessageArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"connectionId"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"idEvent"}},{kind:"Field",name:{kind:"Name",value:"sendDate"}},{kind:"Field",name:{kind:"Name",value:"sessionId"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"isAdmin"}},{kind:"Field",name:{kind:"Name",value:"urlGif"}},{kind:"Field",name:{kind:"Name",value:"second"}},{kind:"Field",name:{kind:"Name",value:"ip"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Es={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetChatRoomToken"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetChatRoomInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getChatRoomToken"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChatRoomTokenData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"token"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Os={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PinChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PinChatInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pinChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PinChatMessageSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},ws={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"deleteAllCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerInputAccount"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteAllCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Rs={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getAllCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"section"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Cs={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Ts={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTimeLine"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetTimeLineInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getTimeLine"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TimeLineArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"time"}},{kind:"Field",name:{kind:"Name",value:"likes"}},{kind:"Field",name:{kind:"Name",value:"comments"}},{kind:"Field",name:{kind:"Name",value:"viewers"}},{kind:"Field",name:{kind:"Name",value:"orders"}},{kind:"Field",name:{kind:"Name",value:"minute"}},{kind:"Field",name:{kind:"Name",value:"hour"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Ds={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AppendProductsToSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RelateToProductsSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"appendProductsSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ActionSnackVideoSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},As={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateSnackVideoBatch"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},xs={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteRelationshipWithSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoRelationshipKeys"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteRelationshipSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ActionSnackVideoSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}}]}}]}}]}}]},Ls={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ActionSnackVideoSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Ps={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindManySnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FindManySnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findManySnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Is={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllSnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoCreatedArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"snackVideos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"created"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}},{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"totalItems"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Vs={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSnackVideoRelationships"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoRelationshipInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getRelationshipSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RelationshipSnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sourceEntity"}},{kind:"Field",name:{kind:"Name",value:"attributeId"}}]}}]}}]}}]}}]},_s={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchSnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SearchInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoCreatedArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"snackVideos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"created"}}]}},{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"totalItems"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Us={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindByProductSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FindByProductSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findByProductSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},js=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:cs,AppendProductsToSnackVideoDocument:Ds,BlockUserDocument:ys,ChangeAccountUsernameDocument:Ns,CreateSnackVideoBatchDocument:As,DeleteAllCustomizationDocument:ws,DeleteChatMessageDocument:bs,DeleteCollectionDocument:ms,DeleteRelationshipWithSnackVideoDocument:xs,DeleteSnackVideoDocument:Ls,EventStatus:mn,FindByProductSnackVideoDocument:Us,FindCollectionDocument:fs,FindManySnackVideosDocument:Ps,FindMinimalEventDocument:vs,GetAllChatMessageDocument:Fs,GetAllCollectionsDocument:ps,GetAllCustomizationDocument:Rs,GetAllSnackVideosDocument:Is,GetChatRoomTokenDocument:Es,GetSnackVideoRelationshipsDocument:Vs,GetTimeLineDocument:Ts,ManageCollectionProductDocument:hs,Methods:fn,PinChatMessageDocument:Os,SearchCollectionsDocument:gs,SearchMinimalEventsDocument:Ss,SearchSnackVideosDocument:_s,Status:pn,UpdateCollectionDocument:ks,UpdateCustomizationDocument:Cs},Symbol.toStringTag,{value:"Module"}));function Ms(n){return{class:n,_value:null,get value(){return this._value||(this._value=new n,Object.freeze(this)),this._value}}}exports.AccountContractStatusTypes=Ve;exports.AccountContractTypes=Wt;exports.AccountInvalidError=Ei;exports.AccountPlanDescriptionTypes=Zt;exports.AccountRestRepository=Xt;exports.AccountService=Ht;exports.AccountSubscriptionTypes=Kt;exports.AccountTypes=Ie;exports.AggregateRoot=Jt;exports.ApiGraphqlTypes=js;exports.BaseMobxStore=Ri;exports.BroadcastChannelEventBus=_t;exports.DomainError=se;exports.EventBusWildcards=fa;exports.EventNames=pa;exports.GlobalPageSectionTypes=qt;exports.InvalidNizzaGlobalObjectError=Gt;exports.LanguageTypes=sn;exports.Logger=$t;exports.NizzaAccount=ye;exports.NizzaEventStatus=an;exports.NizzaProductRequestOriginTypes=on;exports.NizzaVariationTypes=rn;exports.ResourceNotFoundError=zt;exports.StoreProvider=ls;exports.UnexpectedError=Bt;exports.ValueObject=Ci;exports.accountAtom=ve;exports.accountService=_e;exports.apiCall=Vn;exports.coreLogger=W;exports.createAggregateRoot=Qt;exports.createStore=Ms;exports.customFetch=Ae;exports.downloadFile=_n;exports.fileOrigin=oi;exports.getAccount=nn;exports.getClientTimeZone=wi;exports.getStore=us;exports.globalAtomStore=tn;exports.i18n=os;exports.jsDownload=Rt;exports.logger=fi;exports.nizza=Se;exports.registerTranslations=_a;exports.searchParams=ri;exports.shortId=Ut;exports.useAccount=ma;exports.useStore=ds;exports.validateRequiredProps=Oi;
30
+ `)}}function Li(n,e){e.forEach(t=>{if(Ei(Ti(t.split("."),n)))throw new Wt(t)})}function Ii(){var i,a,r;let n=null,e=null,t=null;try{n=(r=(a=(i=Intl.DateTimeFormat())==null?void 0:i.resolvedOptions())==null?void 0:a.timeZone)!=null?r:null;const s=-new Date().getTimezoneOffset();t=s;const o=s>=0?"+":"-",d=String(Math.floor(Math.abs(s)/60)).padStart(2,"0"),l=String(Math.abs(s)%60).padStart(2,"0");e=`${o}${d}:${l}`}catch{J.error("Error obtaining time zone or offset")}return{offset:e,offsetValue:t,value:n,country:null,included:null,label:null}}class Jt{constructor(e){x(this,"aggregate");x(this,"_numSetPropsApplied",0);this.aggregate=e}setProps(e){for(const[t,i]of Object.entries(e))t in this.aggregate&&(this.aggregate[t]=i);this._numSetPropsApplied++}get isFirstSetProps(){return this._numSetPropsApplied===1}}function qt(n){return new Jt(n)}class Ai{}class Pi{constructor(e){x(this,"_value");e!==void 0&&(this._value=e)}get value(){return this._value}}var $e=(n=>(n.VTEX="VTEX",n.VTEX_IO="VTEX-IO",n.VTEX_CMS="PORTAL-VTEX",n.PLATFORM="PLATFORM",n.UNKNOWN="UNKNOWN",n))($e||{}),Ht=(n=>(n.PLATFORM="platform_module",n.ADENDA="subscription_module",n.APP_STORE="app_store",n))(Ht||{}),ze=(n=>(n.ACTIVE="active_contract",n.INACTIVE="inactive_contract",n))(ze||{}),Zt=(n=>(n.LITE="lite",n.STANDARD="standard",n.PRO="pro",n))(Zt||{}),Xt=(n=>(n.LITE="PLAN_LITE",n.STANDARD="PLAN_ESTANDAR",n.PRO="PLAN_PRO",n.NONE="NO_PLAN",n))(Xt||{}),Yt=(n=>(n.PAST="past",n.LIVE="live",n.FUTURE="future",n))(Yt||{});class Fe{constructor(e){x(this,"root",qt(this));x(this,"id");x(this,"account");x(this,"accountType",$e.UNKNOWN);x(this,"username");x(this,"currencyConfig");x(this,"contractType");x(this,"nextDateMetricRecord");x(this,"spendedMinutes",0);x(this,"unlimitedService",!1);x(this,"hoursAvailable",0);x(this,"contractStatus",ze.ACTIVE);x(this,"createdAt");x(this,"installationDateApp");x(this,"cxAccount");x(this,"freeService",!1);x(this,"subscriptionType",null);x(this,"minutesAvailable",0);x(this,"globalPage");x(this,"stripe");x(this,"descriptionPlan");x(this,"planType");x(this,"selectFreeTrial");x(this,"exceededFeatures");x(this,"host",null);this.root.setProps(e)}static toDomain(e){const{createdAt:t,username:i,...a}=e,r={...a,username:i!=null?i:a.account,createdAt:new Date(Number(t))};return new Fe(r)}toPrimitives(){const{root:e,createdAt:t,...i}=this;return{...i,created:t.toISOString()}}}const Vi=`${Mn.apiUrls.restV1}/accounts/v2`;class en{async get(e){const t=`${Vi}/${e}`,{data:i}=await Ve({url:t});return i?Fe.toDomain(i):null}}class tn{constructor(e){this.accountRepository=e}async get(e){try{const t=await this.accountRepository.get(e);if(!t)throw new Kt(e);return t}catch(t){throw new Gt(t)}}}const _i=new en,Be=new tn(_i);class Qe{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const he=typeof window=="undefined"||"Deno"in window;function Ui(){}function it(n){return typeof n=="number"&&n>=0&&n!==1/0}function ji(n,e){return Math.max(n+(e||0)-Date.now(),0)}function Mi(n,e,t){return $i(n)?typeof e=="function"?{...t,queryKey:n,queryFn:e}:{...e,queryKey:n}:n}function nn(n,e){if(n===e)return n;const t=at(n)&&at(e);if(t||rt(n)&&rt(e)){const i=t?n.length:Object.keys(n).length,a=t?e:Object.keys(e),r=a.length,s=t?[]:{};let o=0;for(let d=0;d<r;d++){const l=t?d:a[d];s[l]=nn(n[l],e[l]),s[l]===n[l]&&o++}return i===r&&o===i?n:s}return e}function Ie(n,e){if(n&&!e||e&&!n)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}function at(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function rt(n){if(!st(n))return!1;const e=n.constructor;if(typeof e=="undefined")return!0;const t=e.prototype;return!(!st(t)||!t.hasOwnProperty("isPrototypeOf"))}function st(n){return Object.prototype.toString.call(n)==="[object Object]"}function $i(n){return Array.isArray(n)}function zi(n){return new Promise(e=>{setTimeout(e,n)})}function ot(n){zi(0).then(n)}function lt(n,e,t){return t.isDataEqual!=null&&t.isDataEqual(n,e)?n:typeof t.structuralSharing=="function"?t.structuralSharing(n,e):t.structuralSharing!==!1?nn(n,e):e}class Bi extends Qe{constructor(){super(),this.setup=e=>{if(!he&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document=="undefined"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Qi=new Bi,dt=["online","offline"];class Ki extends Qe{constructor(){super(),this.setup=e=>{if(!he&&window.addEventListener){const t=()=>e();return dt.forEach(i=>{window.addEventListener(i,t,!1)}),()=>{dt.forEach(i=>{window.removeEventListener(i,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(i=>{typeof i=="boolean"?this.setOnline(i):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator=="undefined"||typeof navigator.onLine=="undefined"?!0:navigator.onLine}}const Gi=new Ki;function Wi(n){return(n!=null?n:"online")==="online"?Gi.isOnline():!0}class Ji{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function qi(n){return n instanceof Ji}function Hi(){let n=[],e=0,t=u=>{u()},i=u=>{u()};const a=u=>{let p;e++;try{p=u()}finally{e--,e||o()}return p},r=u=>{e?n.push(u):ot(()=>{t(u)})},s=u=>(...p)=>{r(()=>{u(...p)})},o=()=>{const u=n;n=[],u.length&&ot(()=>{i(()=>{u.forEach(p=>{t(p)})})})};return{batch:a,batchCalls:s,schedule:r,setNotifyFunction:u=>{t=u},setBatchNotifyFunction:u=>{i=u}}}const ne=Hi();class Zi extends Qe{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),ut(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ae(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ae(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const i=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),Ie(i,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled!="undefined"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),this.updateQuery();const r=this.hasListeners();r&&ct(this.currentQuery,a,this.options,i)&&this.executeFetch(),this.updateResult(t),r&&(this.currentQuery!==a||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();const s=this.computeRefetchInterval();r&&(this.currentQuery!==a||this.options.enabled!==i.enabled||s!==this.currentRefetchInterval)&&this.updateRefetchInterval(s)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),i=this.createResult(t,e);return Yi(this,i,e)&&(this.currentResult=i,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),i}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(i=>{Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(i),e[i])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),i=this.client.getQueryCache().build(this.client,t);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(Ui)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),he||this.currentResult.isStale||!it(this.options.staleTime))return;const t=ji(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(he||this.options.enabled===!1||!it(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Qi.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const i=this.currentQuery,a=this.options,r=this.currentResult,s=this.currentResultState,o=this.currentResultOptions,d=e!==i,l=d?e.state:this.currentQueryInitialState,u=d?this.currentResult:this.previousQueryResult,{state:p}=e;let{dataUpdatedAt:c,error:v,errorUpdatedAt:S,fetchStatus:k,status:y}=p,F=!1,w=!1,L;if(t._optimisticResults){const f=this.hasListeners(),m=!f&&ut(e,t),g=f&&ct(e,i,t,a);(m||g)&&(k=Wi(e.options.networkMode)?"fetching":"paused",c||(y="loading")),t._optimisticResults==="isRestoring"&&(k="idle")}if(t.keepPreviousData&&!p.dataUpdatedAt&&u!=null&&u.isSuccess&&y!=="error")L=u.data,c=u.dataUpdatedAt,y=u.status,F=!0;else if(t.select&&typeof p.data!="undefined")if(r&&p.data===(s==null?void 0:s.data)&&t.select===this.selectFn)L=this.selectResult;else try{this.selectFn=t.select,L=t.select(p.data),L=lt(r==null?void 0:r.data,L,t),this.selectResult=L,this.selectError=null}catch(f){this.selectError=f}else L=p.data;if(typeof t.placeholderData!="undefined"&&typeof L=="undefined"&&y==="loading"){let f;if(r!=null&&r.isPlaceholderData&&t.placeholderData===(o==null?void 0:o.placeholderData))f=r.data;else if(f=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof f!="undefined")try{f=t.select(f),this.selectError=null}catch(m){this.selectError=m}typeof f!="undefined"&&(y="success",L=lt(r==null?void 0:r.data,f,t),w=!0)}this.selectError&&(v=this.selectError,L=this.selectResult,S=Date.now(),y="error");const E=k==="fetching",I=y==="loading",P=y==="error";return{status:y,fetchStatus:k,isLoading:I,isSuccess:y==="success",isError:P,isInitialLoading:I&&E,data:L,dataUpdatedAt:c,error:v,errorUpdatedAt:S,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>l.dataUpdateCount||p.errorUpdateCount>l.errorUpdateCount,isFetching:E,isRefetching:E&&!I,isLoadingError:P&&p.dataUpdatedAt===0,isPaused:k==="paused",isPlaceholderData:w,isPreviousData:F,isRefetchError:P&&p.dataUpdatedAt!==0,isStale:Ke(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,i=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Ie(i,t))return;this.currentResult=i;const a={cache:!0},r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!this.trackedProps.size)return!0;const d=new Set(o!=null?o:this.trackedProps);return this.options.useErrorBoundary&&d.add("error"),Object.keys(this.currentResult).some(l=>{const u=l;return this.currentResult[u]!==t[u]&&d.has(u)})};(e==null?void 0:e.listeners)!==!1&&r()&&(a.listeners=!0),this.notify({...a,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!qi(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){ne.batch(()=>{if(e.onSuccess){var t,i,a,r;(t=(i=this.options).onSuccess)==null||t.call(i,this.currentResult.data),(a=(r=this.options).onSettled)==null||a.call(r,this.currentResult.data,null)}else if(e.onError){var s,o,d,l;(s=(o=this.options).onError)==null||s.call(o,this.currentResult.error),(d=(l=this.options).onSettled)==null||d.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:u})=>{u(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function Xi(n,e){return e.enabled!==!1&&!n.state.dataUpdatedAt&&!(n.state.status==="error"&&e.retryOnMount===!1)}function ut(n,e){return Xi(n,e)||n.state.dataUpdatedAt>0&&Ae(n,e,e.refetchOnMount)}function Ae(n,e,t){if(e.enabled!==!1){const i=typeof t=="function"?t(n):t;return i==="always"||i!==!1&&Ke(n,e)}return!1}function ct(n,e,t,i){return t.enabled!==!1&&(n!==e||i.enabled===!1)&&(!t.suspense||n.state.status!=="error")&&Ke(n,t)}function Ke(n,e){return n.isStaleByTime(e.staleTime)}function Yi(n,e,t){return t.keepPreviousData?!1:t.placeholderData!==void 0?e.isPlaceholderData:!Ie(n.getCurrentResult(),e)}const ea=Ut.useSyncExternalStore,mt=M.createContext(void 0),ta=M.createContext(!1);function na(n,e){return n||(e&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=mt),window.ReactQueryClientContext):mt)}const ia=({context:n}={})=>{const e=M.useContext(na(n,M.useContext(ta)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},an=M.createContext(!1),aa=()=>M.useContext(an);an.Provider;function ra(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}const sa=M.createContext(ra()),oa=()=>M.useContext(sa);function la(n,e){return typeof n=="function"?n(...e):!!n}const da=(n,e)=>{(n.suspense||n.useErrorBoundary)&&(e.isReset()||(n.retryOnMount=!1))},ua=n=>{M.useEffect(()=>{n.clearReset()},[n])},ca=({result:n,errorResetBoundary:e,useErrorBoundary:t,query:i})=>n.isError&&!e.isReset()&&!n.isFetching&&la(t,[n.error,i]),ma=n=>{n.suspense&&typeof n.staleTime!="number"&&(n.staleTime=1e3)},fa=(n,e)=>n.isLoading&&n.isFetching&&!e,pa=(n,e,t)=>(n==null?void 0:n.suspense)&&fa(e,t),ha=(n,e,t)=>e.fetchOptimistic(n).then(({data:i})=>{n.onSuccess==null||n.onSuccess(i),n.onSettled==null||n.onSettled(i,null)}).catch(i=>{t.clearReset(),n.onError==null||n.onError(i),n.onSettled==null||n.onSettled(void 0,i)});function ga(n,e){const t=ia({context:n.context}),i=aa(),a=oa(),r=t.defaultQueryOptions(n);r._optimisticResults=i?"isRestoring":"optimistic",r.onError&&(r.onError=ne.batchCalls(r.onError)),r.onSuccess&&(r.onSuccess=ne.batchCalls(r.onSuccess)),r.onSettled&&(r.onSettled=ne.batchCalls(r.onSettled)),ma(r),da(r,a),ua(a);const[s]=M.useState(()=>new e(t,r)),o=s.getOptimisticResult(r);if(ea(M.useCallback(d=>{const l=i?()=>{}:s.subscribe(ne.batchCalls(d));return s.updateResult(),l},[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),M.useEffect(()=>{s.setOptions(r,{listeners:!1})},[r,s]),pa(r,o,i))throw ha(r,s,a);if(ca({result:o,errorResetBoundary:a,useErrorBoundary:r.useErrorBoundary,query:s.getCurrentQuery()}))throw o.error;return r.notifyOnChangeProps?o:s.trackResult(o)}function ka(n,e,t){const i=Mi(n,e,t);return ga(i,Zi)}const va=()=>["account"],Sa=()=>{const{accountName:n}=mi(be.state),[e,t]=An(Ne),i=ka(va(),()=>Be.get(n),{enabled:!!n&&!e,refetchOnWindowFocus:!1,refetchOnMount:!1});return V.useEffect(()=>{const a=i.data;!i.isSuccess||!a||t(a)},[i.status]),{findQuery:i,account:e}},rn=Rt();async function sn(n){const e=await Be.get(n);return rn.set(Ne,e),e}var on=(n=>(n.CREATED="CREATED",n.STARTING="STARTING",n.LIVE="LIVE",n.FINALIZED="FINALIZED",n))(on||{});const ya={ALL:"*",CORE:"core:**",LIVE_STREAMING_EVENT:"event:**",EVENT_CHAT:"event:chat:**",EVENT_PRODUCTS:"event:products:**",CUSTOMIZE_LIVE:"customize-live:**",PLAYER:"player:**",SNACK_SIZE_VIDEO:"ssv:**",SNACK_SIZE_VIDEO_ADMIN:"ssv-admin:**",UI:"ui:**",UTILS:"utils:**"},Na={EVENT_STATUS_CHANGED:"event:statusChanged"};var ln=(n=>(n.English="en",n.Spanish="es",n.Portuguese="pt",n))(ln||{}),dn=(n=>(n.COMBO="Combo",n))(dn||{}),un=(n=>(n.VTEX="VTEX",n.PLATFORM="platform",n.CACE="CACE",n.GLOBAL_PAGE="globalPage",n.DEV_LOCAL="dev:local",n.CUSTOMIZATION="customization",n))(un||{});const ba={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,e){console&&console[n]&&console[n].apply(console,e)}};class ge{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||ba,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,i,a){return a&&!this.debug?null:(typeof e[0]=="string"&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new ge(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new ge(this.logger,e)}}var $=new ge;class we{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(i=>{this.observers[i]=this.observers[i]||[],this.observers[i].push(t)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(i=>i!==t)}}emit(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];this.observers[e]&&[].concat(this.observers[e]).forEach(s=>{s(...i)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(s=>{s.apply(s,[e,...i])})}}function X(){let n,e;const t=new Promise((i,a)=>{n=i,e=a});return t.resolve=n,t.reject=e,t}function ft(n){return n==null?"":""+n}function Fa(n,e,t){n.forEach(i=>{e[i]&&(t[i]=e[i])})}function Ge(n,e,t){function i(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function a(){return!n||typeof n=="string"}const r=typeof e!="string"?[].concat(e):e.split(".");for(;r.length>1;){if(a())return{};const s=i(r.shift());!n[s]&&t&&(n[s]=new t),Object.prototype.hasOwnProperty.call(n,s)?n=n[s]:n={}}return a()?{}:{obj:n,k:i(r.shift())}}function pt(n,e,t){const{obj:i,k:a}=Ge(n,e,Object);i[a]=t}function wa(n,e,t,i){const{obj:a,k:r}=Ge(n,e,Object);a[r]=a[r]||[],i&&(a[r]=a[r].concat(t)),i||a[r].push(t)}function ke(n,e){const{obj:t,k:i}=Ge(n,e);if(t)return t[i]}function Ca(n,e,t){const i=ke(n,t);return i!==void 0?i:ke(e,t)}function cn(n,e,t){for(const i in e)i!=="__proto__"&&i!=="constructor"&&(i in n?typeof n[i]=="string"||n[i]instanceof String||typeof e[i]=="string"||e[i]instanceof String?t&&(n[i]=e[i]):cn(n[i],e[i],t):n[i]=e[i]);return n}function K(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Ea={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Oa(n){return typeof n=="string"?n.replace(/[&<>"'\/]/g,e=>Ea[e]):n}const Ra=[" ",",","?","!",";"];function xa(n,e,t){e=e||"",t=t||"";const i=Ra.filter(s=>e.indexOf(s)<0&&t.indexOf(s)<0);if(i.length===0)return!0;const a=new RegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`);let r=!a.test(n);if(!r){const s=n.indexOf(t);s>0&&!a.test(n.substring(0,s))&&(r=!0)}return r}function ve(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!n)return;if(n[e])return n[e];const i=e.split(t);let a=n;for(let r=0;r<i.length;++r){if(!a||typeof a[i[r]]=="string"&&r+1<i.length)return;if(a[i[r]]===void 0){let s=2,o=i.slice(r,r+s).join(t),d=a[o];for(;d===void 0&&i.length>r+s;)s++,o=i.slice(r,r+s).join(t),d=a[o];if(d===void 0)return;if(d===null)return null;if(e.endsWith(o)){if(typeof d=="string")return d;if(o&&typeof d[o]=="string")return d[o]}const l=i.slice(r+s).join(t);return l?ve(d,l,t):void 0}a=a[i[r]]}return a}function Se(n){return n&&n.indexOf("_")>0?n.replace("_","-"):n}class ht extends we{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const r=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,s=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let o=[e,t];i&&typeof i!="string"&&(o=o.concat(i)),i&&typeof i=="string"&&(o=o.concat(r?i.split(r):i)),e.indexOf(".")>-1&&(o=e.split("."));const d=ke(this.data,o);return d||!s||typeof i!="string"?d:ve(this.data&&this.data[e]&&this.data[e][t],i,r)}addResource(e,t,i,a){let r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let o=[e,t];i&&(o=o.concat(s?i.split(s):i)),e.indexOf(".")>-1&&(o=e.split("."),a=t,t=o[1]),this.addNamespaces(t),pt(this.data,o,a),r.silent||this.emit("added",e,t,i,a)}addResources(e,t,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const r in i)(typeof i[r]=="string"||Object.prototype.toString.apply(i[r])==="[object Array]")&&this.addResource(e,t,r,i[r],{silent:!0});a.silent||this.emit("added",e,t,i)}addResourceBundle(e,t,i,a,r){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),a=i,i=t,t=o[1]),this.addNamespaces(t);let d=ke(this.data,o)||{};a?cn(d,i,r):d={...d,...i},pt(this.data,o,d),s.silent||this.emit("added",e,t,i)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(a=>t[a]&&Object.keys(t[a]).length>0)}toJSON(){return this.data}}var mn={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,e,t,i,a){return n.forEach(r=>{this.processors[r]&&(e=this.processors[r].process(e,t,i,a))}),e}};const gt={};class ye extends we{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Fa(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=$.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const i=this.resolve(e,t);return i&&i.res!==void 0}extractFromKey(e,t){let i=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const a=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let r=t.ns||this.options.defaultNS||[];const s=i&&e.indexOf(i)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!xa(e,i,a);if(s&&!o){const d=e.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:e,namespaces:r};const l=e.split(i);(i!==a||i===a&&this.options.ns.indexOf(l[0])>-1)&&(r=l.shift()),e=l.join(a)}return typeof r=="string"&&(r=[r]),{key:e,namespaces:r}}translate(e,t,i){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const a=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,r=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:s,namespaces:o}=this.extractFromKey(e[e.length-1],t),d=o[o.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&l.toLowerCase()==="cimode"){if(u){const E=t.nsSeparator||this.options.nsSeparator;return a?{res:`${d}${E}${s}`,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:d,usedParams:this.getUsedParamsDetails(t)}:`${d}${E}${s}`}return a?{res:s,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:d,usedParams:this.getUsedParamsDetails(t)}:s}const p=this.resolve(e,t);let c=p&&p.res;const v=p&&p.usedKey||s,S=p&&p.exactUsedKey||s,k=Object.prototype.toString.apply(c),y=["[object Number]","[object Function]","[object RegExp]"],F=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject;if(w&&c&&(typeof c!="string"&&typeof c!="boolean"&&typeof c!="number")&&y.indexOf(k)<0&&!(typeof F=="string"&&k==="[object Array]")){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const E=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,c,{...t,ns:o}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=E,p.usedParams=this.getUsedParamsDetails(t),p):E}if(r){const E=k==="[object Array]",I=E?[]:{},P=E?S:v;for(const A in c)if(Object.prototype.hasOwnProperty.call(c,A)){const f=`${P}${r}${A}`;I[A]=this.translate(f,{...t,joinArrays:!1,ns:o}),I[A]===f&&(I[A]=c[A])}c=I}}else if(w&&typeof F=="string"&&k==="[object Array]")c=c.join(F),c&&(c=this.extendTranslation(c,e,t,i));else{let E=!1,I=!1;const P=t.count!==void 0&&typeof t.count!="string",A=ye.hasDefaultValue(t),f=P?this.pluralResolver.getSuffix(l,t.count,t):"",m=t.ordinal&&P?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=t[`defaultValue${f}`]||t[`defaultValue${m}`]||t.defaultValue;!this.isValidLookup(c)&&A&&(E=!0,c=g),this.isValidLookup(c)||(I=!0,c=s);const N=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&I?void 0:c,C=A&&g!==c&&this.options.updateMissing;if(I||E||C){if(this.logger.log(C?"updateKey":"missingKey",l,d,s,C?g:c),r){const R=this.resolve(s,{...t,keySeparator:!1});R&&R.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 b=[];const O=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&O&&O[0])for(let R=0;R<O.length;R++)b.push(O[R]);else this.options.saveMissingTo==="all"?b=this.languageUtils.toResolveHierarchy(t.lng||this.language):b.push(t.lng||this.language);const T=(R,D,_)=>{const oe=A&&_!==c?_:N;this.options.missingKeyHandler?this.options.missingKeyHandler(R,d,D,oe,C,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(R,d,D,oe,C,t),this.emit("missingKey",R,d,D,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?b.forEach(R=>{this.pluralResolver.getSuffixes(R,t).forEach(D=>{T([R],s+D,t[`defaultValue${D}`]||g)})}):T(b,s,g))}c=this.extendTranslation(c,e,t,p,i),I&&c===s&&this.options.appendNamespaceToMissingKey&&(c=`${d}:${s}`),(I||E)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}:${s}`:s,E?c:void 0):c=this.options.parseMissingKeyHandler(c))}return a?(p.res=c,p.usedParams=this.getUsedParamsDetails(t),p):c}extendTranslation(e,t,i,a,r){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const l=typeof e=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(l){const c=e.match(this.interpolator.nestingRegexp);u=c&&c.length}let p=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),e=this.interpolator.interpolate(e,p,i.lng||this.language,i),l){const c=e.match(this.interpolator.nestingRegexp),v=c&&c.length;u<v&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&a&&a.res&&(i.lng=a.usedLng),i.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var c=arguments.length,v=new Array(c),S=0;S<c;S++)v[S]=arguments[S];return r&&r[0]===v[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${t[0]}`),null):s.translate(...v,t)},i)),i.interpolation&&this.interpolator.reset()}const o=i.postProcess||this.options.postProcess,d=typeof o=="string"?[o]:o;return e!=null&&d&&d.length&&i.applyPostProcessor!==!1&&(e=mn.handle(d,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,a,r,s,o;return typeof e=="string"&&(e=[e]),e.forEach(d=>{if(this.isValidLookup(i))return;const l=this.extractFromKey(d,t),u=l.key;a=u;let p=l.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const c=t.count!==void 0&&typeof t.count!="string",v=c&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),S=t.context!==void 0&&(typeof t.context=="string"||typeof t.context=="number")&&t.context!=="",k=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);p.forEach(y=>{this.isValidLookup(i)||(o=y,!gt[`${k[0]}-${y}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(gt[`${k[0]}-${y}`]=!0,this.logger.warn(`key "${a}" for languages "${k.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),k.forEach(F=>{if(this.isValidLookup(i))return;s=F;const w=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(w,u,F,y,t);else{let E;c&&(E=this.pluralResolver.getSuffix(F,t.count,t));const I=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(w.push(u+E),t.ordinal&&E.indexOf(P)===0&&w.push(u+E.replace(P,this.options.pluralSeparator)),v&&w.push(u+I)),S){const A=`${u}${this.options.contextSeparator}${t.context}`;w.push(A),c&&(w.push(A+E),t.ordinal&&E.indexOf(P)===0&&w.push(A+E.replace(P,this.options.pluralSeparator)),v&&w.push(A+I))}}let L;for(;L=w.pop();)this.isValidLookup(i)||(r=L,i=this.getResource(F,y,L,t))}))})}),{res:i,usedKey:a,exactUsedKey:r,usedLng:s,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,i,a):this.resourceStore.getResource(e,t,i,a)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&typeof e.replace!="string";let a=i?e.replace:e;if(i&&typeof e.count!="undefined"&&(a.count=e.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!i){a={...a};for(const r of t)delete a[r]}return a}static hasDefaultValue(e){const t="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t===i.substring(0,t.length)&&e[i]!==void 0)return!0;return!1}}function Te(n){return n.charAt(0).toUpperCase()+n.slice(1)}class kt{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$.create("languageUtils")}getScriptPartFromCode(e){if(e=Se(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=Se(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let i=e.split("-");return this.options.lowerCaseLng?i=i.map(a=>a.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=Te(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=Te(i[1].toLowerCase())),t.indexOf(i[2].toLowerCase())>-1&&(i[2]=Te(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(i=>{if(t)return;const a=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(a))&&(t=a)}),!t&&this.options.supportedLngs&&e.forEach(i=>{if(t)return;const a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return t=a;t=this.options.supportedLngs.find(r=>{if(r===a)return r;if(!(r.indexOf("-")<0&&a.indexOf("-")<0)&&r.indexOf(a)===0)return r})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!t)return e.default||[];let i=e[t];return i||(i=e[this.getScriptPartFromCode(t)]),i||(i=e[this.formatLanguageCode(t)]),i||(i=e[this.getLanguagePartFromCode(t)]),i||(i=e.default),i||[]}toResolveHierarchy(e,t){const i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),a=[],r=s=>{s&&(this.isSupportedCode(s)?a.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&r(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&r(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&r(this.getLanguagePartFromCode(e))):typeof e=="string"&&r(this.formatLanguageCode(e)),i.forEach(s=>{a.indexOf(s)<0&&r(this.formatLanguageCode(s))}),a}}let Ta=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Da={1:function(n){return+(n>1)},2:function(n){return+(n!=1)},3:function(n){return 0},4:function(n){return n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2},5:function(n){return n==0?0:n==1?1:n==2?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},6:function(n){return n==1?0:n>=2&&n<=4?1:2},7:function(n){return n==1?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2},8:function(n){return n==1?0:n==2?1:n!=8&&n!=11?2:3},9:function(n){return+(n>=2)},10:function(n){return n==1?0:n==2?1:n<7?2:n<11?3:4},11:function(n){return n==1||n==11?0:n==2||n==12?1:n>2&&n<20?2:3},12:function(n){return+(n%10!=1||n%100==11)},13:function(n){return+(n!==0)},14:function(n){return n==1?0:n==2?1:n==3?2:3},15:function(n){return n%10==1&&n%100!=11?0:n%10>=2&&(n%100<10||n%100>=20)?1:2},16:function(n){return n%10==1&&n%100!=11?0:n!==0?1:2},17:function(n){return n==1||n%10==1&&n%100!=11?0:1},18:function(n){return n==0?0:n==1?1:2},19:function(n){return n==1?0:n==0||n%100>1&&n%100<11?1:n%100>10&&n%100<20?2:3},20:function(n){return n==1?0:n==0||n%100>0&&n%100<20?1:2},21:function(n){return n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0},22:function(n){return n==1?0:n==2?1:(n<0||n>10)&&n%10==0?2:3}};const La=["v1","v2","v3"],Ia=["v4"],vt={zero:0,one:1,two:2,few:3,many:4,other:5};function Aa(){const n={};return Ta.forEach(e=>{e.lngs.forEach(t=>{n[t]={numbers:e.nr,plurals:Da[e.fc]}})}),n}class Pa{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=$.create("pluralResolver"),(!this.options.compatibilityJSON||Ia.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Aa()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Se(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,t);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,i).map(a=>`${t}${a}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,t);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((a,r)=>vt[a]-vt[r]).map(a=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${a}`):i.numbers.map(a=>this.getSuffix(e,a,t)):[]}getSuffix(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(e,i);return a?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${a.select(t)}`:this.getSuffixRetroCompatible(a,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let a=e.numbers[i];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const r=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:r():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?r():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!La.includes(this.options.compatibilityJSON)}}function St(n,e,t){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,r=Ca(n,e,t);return!r&&a&&typeof t=="string"&&(r=ve(n,t,i),r===void 0&&(r=ve(e,t,i))),r}class Va{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=$.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(t=>t),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=t.escape!==void 0?t.escape:Oa,this.escapeValue=t.escapeValue!==void 0?t.escapeValue:!0,this.useRawValueToEscape=t.useRawValueToEscape!==void 0?t.useRawValueToEscape:!1,this.prefix=t.prefix?K(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?K(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?K(t.nestingPrefix):t.nestingPrefixEscaped||K("$t("),this.nestingSuffix=t.nestingSuffix?K(t.nestingSuffix):t.nestingSuffixEscaped||K(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=t.alwaysFormat!==void 0?t.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,"g");const t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(t,"g");const i=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(i,"g")}interpolate(e,t,i,a){let r,s,o;const d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(S){return S.replace(/\$/g,"$$$$")}const u=S=>{if(S.indexOf(this.formatSeparator)<0){const w=St(t,d,S,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(w,void 0,i,{...a,...t,interpolationkey:S}):w}const k=S.split(this.formatSeparator),y=k.shift().trim(),F=k.join(this.formatSeparator).trim();return this.format(St(t,d,y,this.options.keySeparator,this.options.ignoreJSONStructure),F,i,{...a,...t,interpolationkey:y})};this.resetRegExp();const p=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,c=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:S=>l(S)},{regex:this.regexp,safeValue:S=>this.escapeValue?l(this.escape(S)):l(S)}].forEach(S=>{for(o=0;r=S.regex.exec(e);){const k=r[1].trim();if(s=u(k),s===void 0)if(typeof p=="function"){const F=p(e,r,a);s=typeof F=="string"?F:""}else if(a&&Object.prototype.hasOwnProperty.call(a,k))s="";else if(c){s=r[0];continue}else this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=ft(s));const y=S.safeValue(s);if(e=e.replace(r[0],y),c?(S.regex.lastIndex+=s.length,S.regex.lastIndex-=r[0].length):S.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,r,s;function o(d,l){const u=this.nestingOptionsSeparator;if(d.indexOf(u)<0)return d;const p=d.split(new RegExp(`${u}[ ]*{`));let c=`{${p[1]}`;d=p[0],c=this.interpolate(c,s);const v=c.match(/'/g),S=c.match(/"/g);(v&&v.length%2===0&&!S||S.length%2!==0)&&(c=c.replace(/'/g,'"'));try{s=JSON.parse(c),l&&(s={...l,...s})}catch(k){return this.logger.warn(`failed parsing options string in nesting for key ${d}`,k),`${d}${u}${c}`}return delete s.defaultValue,d}for(;a=this.nestingRegexp.exec(e);){let d=[];s={...i},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let l=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const u=a[1].split(this.formatSeparator).map(p=>p.trim());a[1]=u.shift(),d=u,l=!0}if(r=t(o.call(this,a[1].trim(),s),s),r&&a[0]===e&&typeof r!="string")return r;typeof r!="string"&&(r=ft(r)),r||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`),r=""),l&&(r=d.reduce((u,p)=>this.format(u,p,i.lng,{...i,interpolationkey:a[1].trim()}),r.trim())),e=e.replace(a[0],r),this.regexp.lastIndex=0}return e}}function _a(n){let e=n.toLowerCase().trim();const t={};if(n.indexOf("(")>-1){const i=n.split("(");e=i[0].toLowerCase().trim();const a=i[1].substring(0,i[1].length-1);e==="currency"&&a.indexOf(":")<0?t.currency||(t.currency=a.trim()):e==="relativetime"&&a.indexOf(":")<0?t.range||(t.range=a.trim()):a.split(";").forEach(s=>{if(!s)return;const[o,...d]=s.split(":"),l=d.join(":").trim().replace(/^'+|'+$/g,"");t[o.trim()]||(t[o.trim()]=l),l==="false"&&(t[o.trim()]=!1),l==="true"&&(t[o.trim()]=!0),isNaN(l)||(t[o.trim()]=parseInt(l,10))})}return{formatName:e,formatOptions:t}}function G(n){const e={};return function(i,a,r){const s=a+JSON.stringify(r);let o=e[s];return o||(o=n(Se(a),r),e[s]=o),o(i)}}class Ua{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=$.create("formatter"),this.options=e,this.formats={number:G((t,i)=>{const a=new Intl.NumberFormat(t,{...i});return r=>a.format(r)}),currency:G((t,i)=>{const a=new Intl.NumberFormat(t,{...i,style:"currency"});return r=>a.format(r)}),datetime:G((t,i)=>{const a=new Intl.DateTimeFormat(t,{...i});return r=>a.format(r)}),relativetime:G((t,i)=>{const a=new Intl.RelativeTimeFormat(t,{...i});return r=>a.format(r,i.range||"day")}),list:G((t,i)=>{const a=new Intl.ListFormat(t,{...i});return r=>a.format(r)})},this.init(e)}init(e){const i=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=G(t)}format(e,t,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return t.split(this.formatSeparator).reduce((o,d)=>{const{formatName:l,formatOptions:u}=_a(d);if(this.formats[l]){let p=o;try{const c=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},v=c.locale||c.lng||a.locale||a.lng||i;p=this.formats[l](o,v,{...u,...a,...c})}catch(c){this.logger.warn(c)}return p}else this.logger.warn(`there was no format function for ${l}`);return o},e)}}function ja(n,e){n.pending[e]!==void 0&&(delete n.pending[e],n.pendingCount--)}class Ma extends we{constructor(e,t,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=a,this.logger=$.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=[],this.backend&&this.backend.init&&this.backend.init(i,a.backend,a)}queueLoad(e,t,i,a){const r={},s={},o={},d={};return e.forEach(l=>{let u=!0;t.forEach(p=>{const c=`${l}|${p}`;!i.reload&&this.store.hasResourceBundle(l,p)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?s[c]===void 0&&(s[c]=!0):(this.state[c]=1,u=!1,s[c]===void 0&&(s[c]=!0),r[c]===void 0&&(r[c]=!0),d[p]===void 0&&(d[p]=!0)))}),u||(o[l]=!0)}),(Object.keys(r).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(r),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(d)}}loaded(e,t,i){const a=e.split("|"),r=a[0],s=a[1];t&&this.emit("failedLoading",r,s,t),i&&this.store.addResourceBundle(r,s,i),this.state[e]=t?-1:2;const o={};this.queue.forEach(d=>{wa(d.loaded,[r],s),ja(d,e),t&&d.errors.push(t),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(l=>{o[l]||(o[l]={});const u=d.loaded[l];u.length&&u.forEach(p=>{o[l][p]===void 0&&(o[l][p]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(d=>!d.done)}read(e,t,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:i,tried:a,wait:r,callback:s});return}this.readingCalls++;const o=(l,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(l&&u&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,i,a+1,r*2,s)},r);return}s(l,u)},d=this.backend[i].bind(this.backend);if(d.length===2){try{const l=d(e,t);l&&typeof l.then=="function"?l.then(u=>o(null,u)).catch(o):o(null,l)}catch(l){o(l)}return}return d(e,t,o)}prepareLoading(e,t){let i=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();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof t=="string"&&(t=[t]);const r=this.queueLoad(e,t,i,a);if(!r.toLoad.length)return r.pending.length||a(),null;r.toLoad.forEach(s=>{this.loadOne(s)})}load(e,t,i){this.prepareLoading(e,t,{},i)}reload(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=e.split("|"),a=i[0],r=i[1];this.read(a,r,"read",void 0,void 0,(s,o)=>{s&&this.logger.warn(`${t}loading namespace ${r} for language ${a} failed`,s),!s&&o&&this.logger.log(`${t}loaded namespace ${r} for language ${a}`,o),this.loaded(e,s,o)})}saveMissing(e,t,i,a,r){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${i}" as the namespace "${t}" 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(!(i==null||i==="")){if(this.backend&&this.backend.create){const d={...s,isUpdate:r},l=this.backend.create.bind(this.backend);if(l.length<6)try{let u;l.length===5?u=l(e,t,i,a,d):u=l(e,t,i,a),u&&typeof u.then=="function"?u.then(p=>o(null,p)).catch(o):o(null,u)}catch(u){o(u)}else l(e,t,i,a,o,d)}!e||!e[0]||this.store.addResource(e[0],t,i,a)}}}function yt(){return{debug:!1,initImmediate:!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:function(e){let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const i=e[3]||e[2];Object.keys(i).forEach(a=>{t[a]=i[a]})}return t},interpolation:{escapeValue:!0,format:(n,e,t,i)=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Nt(n){return typeof n.ns=="string"&&(n.ns=[n.ns]),typeof n.fallbackLng=="string"&&(n.fallbackLng=[n.fallbackLng]),typeof n.fallbackNS=="string"&&(n.fallbackNS=[n.fallbackNS]),n.supportedLngs&&n.supportedLngs.indexOf("cimode")<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),n}function ue(){}function $a(n){Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(t=>{typeof n[t]=="function"&&(n[t]=n[t].bind(n))})}class ae extends we{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Nt(e),this.services={},this.logger=$,this.modules={external:[]},$a(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;typeof t=="function"&&(i=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(typeof t.ns=="string"?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const a=yt();this.options={...a,...this.options,...Nt(t)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);function r(u){return u?typeof u=="function"?new u:u:null}if(!this.options.isClone){this.modules.logger?$.init(r(this.modules.logger),this.options):$.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl!="undefined"&&(u=Ua);const p=new kt(this.options);this.store=new ht(this.options.resources,this.options);const c=this.services;c.logger=$,c.resourceStore=this.store,c.languageUtils=p,c.pluralResolver=new Pa(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(c.formatter=r(u),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new Va(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new Ma(r(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(v){for(var S=arguments.length,k=new Array(S>1?S-1:0),y=1;y<S;y++)k[y-1]=arguments[y];e.emit(v,...k)}),this.modules.languageDetector&&(c.languageDetector=r(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=r(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new ye(this.services,this.options),this.translator.on("*",function(v){for(var S=arguments.length,k=new Array(S>1?S-1:0),y=1;y<S;y++)k[y-1]=arguments[y];e.emit(v,...k)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,i||(i=ue),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return e.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return e.store[u](...arguments),e}});const d=X(),l=()=>{const u=(p,c)=>{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),d.resolve(c),i(p,c)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),d}loadResources(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ue;const a=typeof e=="string"?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const r=[],s=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(l=>{l!=="cimode"&&r.indexOf(l)<0&&r.push(l)})};a?s(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>s(d)),this.options.preload&&this.options.preload.forEach(o=>s(o)),this.services.backendConnector.load(r,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(o)})}else i(null)}reloadResources(e,t,i){const a=X();return e||(e=this.languages),t||(t=this.options.ns),i||(i=ue),this.services.backendConnector.reload(e,t,r=>{a.resolve(),i(r)}),a}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&mn.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const i=this.languages[t];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(e,t){var i=this;this.isLanguageChangingTo=e;const a=X();this.emit("languageChanging",e);const r=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},s=(d,l)=>{l?(r(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,a.resolve(function(){return i.t(...arguments)}),t&&t(d,function(){return i.t(...arguments)})},o=d=>{!e&&!d&&this.services.languageDetector&&(d=[]);const l=typeof d=="string"?d:this.services.languageUtils.getBestMatchFromCodes(d);l&&(this.language||r(l),this.translator.language||this.translator.changeLanguage(l),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(l)),this.loadResources(l,u=>{s(u,l)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),a}getFixedT(e,t,i){var a=this;const r=function(s,o){let d;if(typeof o!="object"){for(var l=arguments.length,u=new Array(l>2?l-2:0),p=2;p<l;p++)u[p-2]=arguments[p];d=a.options.overloadTranslationOptionHandler([s,o].concat(u))}else d={...o};d.lng=d.lng||r.lng,d.lngs=d.lngs||r.lngs,d.ns=d.ns||r.ns,d.keyPrefix=d.keyPrefix||i||r.keyPrefix;const c=a.options.keySeparator||".";let v;return d.keyPrefix&&Array.isArray(s)?v=s.map(S=>`${d.keyPrefix}${c}${S}`):v=d.keyPrefix?`${d.keyPrefix}${c}${s}`:s,a.t(v,d)};return typeof e=="string"?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=i,r}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=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 i=t.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,r=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const s=(o,d)=>{const l=this.services.backendConnector.state[`${o}|${d}`];return l===-1||l===2};if(t.precheck){const o=t.precheck(this,s);if(o!==void 0)return o}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,e)&&(!a||s(r,e)))}loadNamespaces(e,t){const i=X();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{i.resolve(),t&&t(a)}),i):(t&&t(),Promise.resolve())}loadLanguages(e,t){const i=X();typeof e=="string"&&(e=[e]);const a=this.options.preload||[],r=e.filter(s=>a.indexOf(s)<0);return r.length?(this.options.preload=a.concat(r),this.loadResources(s=>{i.resolve(),t&&t(s)}),i):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=["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"],i=this.services&&this.services.languageUtils||new kt(yt());return t.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ae(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ue;const i=e.forkResourceStore;i&&delete e.forkResourceStore;const a={...this.options,...e,isClone:!0},r=new ae(a);return(e.debug!==void 0||e.prefix!==void 0)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(o=>{r[o]=this[o]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},i&&(r.store=new ht(this.store.data,a),r.services.resourceStore=r.store),r.translator=new ye(r.services,a),r.translator.on("*",function(o){for(var d=arguments.length,l=new Array(d>1?d-1:0),u=1;u<d;u++)l[u-1]=arguments[u];r.emit(o,...l)}),r.init(a,t),r.translator.options=a,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const j=ae.createInstance();j.createInstance=ae.createInstance;j.createInstance;j.dir;j.init;j.loadResources;j.reloadResources;j.use;j.changeLanguage;j.getFixedT;j.t;j.exists;j.setDefaultNamespace;j.hasLoadedNamespace;j.loadNamespaces;j.loadLanguages;function za(n){const e=Object.values(n);return Object.assign({},...e)}function Ba(n){return Object.entries(n).reduce((e,[t,i])=>{const a=za(i);return{...e,[t]:a}},{})}function Qa(n){const e=Ba(n);Object.entries(e).forEach(([t,i])=>{j.addResourceBundle(t,"translation",i,!0)})}function Ka(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function re(n){"@babel/helpers - typeof";return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(n)}function Ga(n,e){if(re(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e||"default");if(re(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Wa(n){var e=Ga(n,"string");return re(e)==="symbol"?e:String(e)}function bt(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,Wa(i.key),i)}}function Ja(n,e,t){return e&&bt(n.prototype,e),t&&bt(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}var fn=[],qa=fn.forEach,Ha=fn.slice;function Za(n){return qa.call(Ha.call(arguments,1),function(e){if(e)for(var t in e)n[t]===void 0&&(n[t]=e[t])}),n}var Ft=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Xa=function(e,t,i){var a=i||{};a.path=a.path||"/";var r=encodeURIComponent(t),s="".concat(e,"=").concat(r);if(a.maxAge>0){var o=a.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(o))}if(a.domain){if(!Ft.test(a.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(a.domain)}if(a.path){if(!Ft.test(a.path))throw new TypeError("option path is invalid");s+="; Path=".concat(a.path)}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires=".concat(a.expires.toUTCString())}if(a.httpOnly&&(s+="; HttpOnly"),a.secure&&(s+="; Secure"),a.sameSite){var d=typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite;switch(d){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},wt={create:function(e,t,i,a){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};i&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+i*60*1e3)),a&&(r.domain=a),document.cookie=Xa(e,encodeURIComponent(t),r)},read:function(e){for(var t="".concat(e,"="),i=document.cookie.split(";"),a=0;a<i.length;a++){for(var r=i[a];r.charAt(0)===" ";)r=r.substring(1,r.length);if(r.indexOf(t)===0)return r.substring(t.length,r.length)}return null},remove:function(e){this.create(e,"",-1)}},Ya={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&typeof document!="undefined"){var i=wt.read(e.lookupCookie);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&typeof document!="undefined"&&wt.create(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},er={name:"querystring",lookup:function(e){var t;if(typeof window!="undefined"){var i=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));for(var a=i.substring(1),r=a.split("&"),s=0;s<r.length;s++){var o=r[s].indexOf("=");if(o>0){var d=r[s].substring(0,o);d===e.lookupQuerystring&&(t=r[s].substring(o+1))}}}return t}},Y=null,Ct=function(){if(Y!==null)return Y;try{Y=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Y=!1}return Y},tr={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&Ct()){var i=window.localStorage.getItem(e.lookupLocalStorage);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&Ct()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},ee=null,Et=function(){if(ee!==null)return ee;try{ee=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{ee=!1}return ee},nr={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&Et()){var i=window.sessionStorage.getItem(e.lookupSessionStorage);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&Et()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},ir={name:"navigator",lookup:function(e){var t=[];if(typeof navigator!="undefined"){if(navigator.languages)for(var i=0;i<navigator.languages.length;i++)t.push(navigator.languages[i]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},ar={name:"htmlTag",lookup:function(e){var t,i=e.htmlTag||(typeof document!="undefined"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(t=i.getAttribute("lang")),t}},rr={name:"path",lookup:function(e){var t;if(typeof window!="undefined"){var i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(i instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof i[e.lookupFromPathIndex]!="string")return;t=i[e.lookupFromPathIndex].replace("/","")}else t=i[0].replace("/","")}return t}},sr={name:"subdomain",lookup:function(e){var t=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,i=typeof window!="undefined"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[t]}};function or(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var pn=function(){function n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ka(this,n),this.type="languageDetector",this.detectors={},this.init(e,t)}return Ja(n,[{key:"init",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=Za(i,this.options||{},or()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(r){return r.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(Ya),this.addDetector(er),this.addDetector(tr),this.addDetector(nr),this.addDetector(ir),this.addDetector(ar),this.addDetector(rr),this.addDetector(sr)}},{key:"addDetector",value:function(t){this.detectors[t.name]=t}},{key:"detect",value:function(t){var i=this;t||(t=this.options.order);var a=[];return t.forEach(function(r){if(i.detectors[r]){var s=i.detectors[r].lookup(i.options);s&&typeof s=="string"&&(s=[s]),s&&(a=a.concat(s))}}),a=a.map(function(r){return i.options.convertDetectedLanguage(r)}),this.services.languageUtils.getBestMatchFromCodes?a:a.length>0?a[0]:null}},{key:"cacheUserLanguage",value:function(t,i){var a=this;i||(i=this.options.caches),i&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||i.forEach(function(r){a.detectors[r]&&a.detectors[r].cacheUserLanguage(t,a.options)}))}}]),n}();pn.type="languageDetector";const lr=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,dr={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},ur=n=>dr[n],cr=n=>n.replace(lr,ur);let Ot={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:cr};function mr(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ot={...Ot,...n}}const fr={type:"3rdParty",init(n){mr(n.options.react)}},pr=j.use(fr).use(pn).init({resources:{},fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1,format:(n,e,t)=>{if(e){const[i,...a]=e.split(",").map(r=>r.trim());if(i==="number")return new Intl.NumberFormat(t).format(n);if(i==="date")return new Intl.DateTimeFormat(t).format(n);if(i==="currency")return new Intl.NumberFormat(t,{style:"currency",currency:a[0]||"USD",currencyDisplay:"narrowSymbol"}).format(n).replace("$","").trim()}return n}},detection:{order:["navigator","cookie","localStorage","sessionStorage","querystring","htmlTag","path","subdomain"]}});let We=new Map;const Pe=V.createContext(We),hr=({children:n,stores:e})=>{const t=V.useContext(Pe),i=V.useMemo(()=>{const a=new Map;return e.forEach(r=>a.set(r.class,r.value)),We=new Map([...t,...a])},[]);return yn.jsx(Pe.Provider,{value:i,children:n})};function gr(n){return V.useContext(Pe).get(n)}function kr(n){return We.get(n)}var hn=(n=>(n.Created="CREATED",n.Finalized="FINALIZED",n.Live="LIVE",n.Starting="STARTING",n))(hn||{}),gn=(n=>(n.Add="add",n.Remove="remove",n))(gn||{}),kn=(n=>(n.Active="active",n.Inactive="inactive",n))(kn||{});const vr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateCollectionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Sr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},yr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Nr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},br={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ManageCollectionProduct"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ManageCollectionProductInInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"manageCollectionProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Fr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},wr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateCollectionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Cr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindMinimalEvent"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FindEventInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findEvent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EventData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"thumbnailsPath"}},{kind:"Field",name:{kind:"Name",value:"recordVideoPath"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"thumbnails"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Er={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchMinimalEvents"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SearchEventInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchEvent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EventArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"thumbnailsPath"}},{kind:"Field",name:{kind:"Name",value:"recordVideoPath"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Or={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BlockUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BlockUserInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blockUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BlockUserSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Rr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ChangeAccountUsername"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ChangeUsernameInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"changeAccountUsername"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChangeUsernameSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},xr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteChatInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DeleteChatMessageSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Tr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetAllChatMessageInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChatMessageArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"connectionId"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"idEvent"}},{kind:"Field",name:{kind:"Name",value:"sendDate"}},{kind:"Field",name:{kind:"Name",value:"sessionId"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"isAdmin"}},{kind:"Field",name:{kind:"Name",value:"urlGif"}},{kind:"Field",name:{kind:"Name",value:"second"}},{kind:"Field",name:{kind:"Name",value:"ip"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Dr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetChatRoomToken"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetChatRoomInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getChatRoomToken"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChatRoomTokenData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"token"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Lr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PinChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PinChatInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pinChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PinChatMessageSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Ir={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"deleteAllCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerInputAccount"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteAllCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Ar={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getAllCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"section"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Pr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Vr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTimeLine"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetTimeLineInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getTimeLine"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TimeLineArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"time"}},{kind:"Field",name:{kind:"Name",value:"likes"}},{kind:"Field",name:{kind:"Name",value:"comments"}},{kind:"Field",name:{kind:"Name",value:"viewers"}},{kind:"Field",name:{kind:"Name",value:"orders"}},{kind:"Field",name:{kind:"Name",value:"minute"}},{kind:"Field",name:{kind:"Name",value:"hour"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},_r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AppendProductsToSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RelateToProductsSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"appendProductsSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ActionSnackVideoSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Ur={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateSnackVideoBatch"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},jr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteRelationshipWithSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoRelationshipKeys"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteRelationshipSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ActionSnackVideoSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}}]}}]}}]}}]},Mr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ActionSnackVideoSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},$r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindManySnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FindManySnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findManySnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},zr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllSnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoCreatedArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"snackVideos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"created"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}},{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"totalItems"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Br={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSnackVideoRelationships"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoRelationshipInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getRelationshipSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RelationshipSnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sourceEntity"}},{kind:"Field",name:{kind:"Name",value:"attributeId"}}]}}]}}]}}]}}]},Qr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchSnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SearchInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoCreatedArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"snackVideos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"created"}}]}},{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"totalItems"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Kr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindByProductSnackVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FindByProductSnackVideoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findByProductSnackVideo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Gr=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:vr,AppendProductsToSnackVideoDocument:_r,BlockUserDocument:Or,ChangeAccountUsernameDocument:Rr,CreateSnackVideoBatchDocument:Ur,DeleteAllCustomizationDocument:Ir,DeleteChatMessageDocument:xr,DeleteCollectionDocument:Sr,DeleteRelationshipWithSnackVideoDocument:jr,DeleteSnackVideoDocument:Mr,EventStatus:hn,FindByProductSnackVideoDocument:Kr,FindCollectionDocument:yr,FindManySnackVideosDocument:$r,FindMinimalEventDocument:Cr,GetAllChatMessageDocument:Tr,GetAllCollectionsDocument:Nr,GetAllCustomizationDocument:Ar,GetAllSnackVideosDocument:zr,GetChatRoomTokenDocument:Dr,GetSnackVideoRelationshipsDocument:Br,GetTimeLineDocument:Vr,ManageCollectionProductDocument:br,Methods:gn,PinChatMessageDocument:Lr,SearchCollectionsDocument:Fr,SearchMinimalEventsDocument:Er,SearchSnackVideosDocument:Qr,Status:kn,UpdateCollectionDocument:wr,UpdateCustomizationDocument:Pr},Symbol.toStringTag,{value:"Module"}));function Wr(n){return{class:n,_value:null,get value(){return this._value||(this._value=new n,Object.freeze(this)),this._value}}}exports.AccountContractStatusTypes=ze;exports.AccountContractTypes=Ht;exports.AccountInvalidError=Di;exports.AccountPlanDescriptionTypes=Xt;exports.AccountRestRepository=en;exports.AccountService=tn;exports.AccountSubscriptionTypes=Zt;exports.AccountTypes=$e;exports.AggregateRoot=Jt;exports.ApiGraphqlTypes=Gr;exports.BaseMobxStore=Ai;exports.BroadcastChannelEventBus=jt;exports.DomainError=se;exports.EventBusWildcards=ya;exports.EventNames=Na;exports.GlobalPageSectionTypes=Yt;exports.InvalidNizzaGlobalObjectError=Wt;exports.LanguageTypes=ln;exports.Logger=Qt;exports.NizzaAccount=Fe;exports.NizzaEventStatus=on;exports.NizzaProductRequestOriginTypes=un;exports.NizzaVariationTypes=dn;exports.ResourceNotFoundError=Kt;exports.StoreProvider=hr;exports.UnexpectedError=Gt;exports.ValueObject=Pi;exports.accountAtom=Ne;exports.accountService=Be;exports.apiCall=$n;exports.coreLogger=J;exports.createAggregateRoot=qt;exports.createStore=Wr;exports.customFetch=Ve;exports.downloadFile=zn;exports.fileOrigin=hi;exports.getAccount=sn;exports.getClientTimeZone=Ii;exports.getStore=kr;exports.globalAtomStore=rn;exports.i18n=pr;exports.jsDownload=Tt;exports.logger=yi;exports.nizza=be;exports.registerTranslations=Qa;exports.searchParams=pi;exports.shortId=Mt;exports.useAccount=Sa;exports.useStore=gr;exports.validateRequiredProps=Li;
31
31
  //# sourceMappingURL=index.cjs.map