@memori.ai/memori-webcomponent 7.11.2 → 7.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -255,4 +255,4 @@ class MD{constructor(e,t,n,r,i="div"){this.parent=e,this.object=t,this.property=
255
255
  * @license qrcode.react
256
256
  * Copyright (c) Paul O'Shannessy
257
257
  * SPDX-License-Identifier: ISC
258
- */function jF(e,t=0){const n=[];return e.forEach((function(e,r){let i=null;e.forEach((function(o,s){if(!o&&null!==i)return n.push(`M${i+t} ${r+t}h${s-i}v1H${i+t}z`),void(i=null);if(s!==e.length-1)o&&null===i&&(i=s);else{if(!o)return;null===i?n.push(`M${s+t},${r+t} h1v1H${s+t}z`):n.push(`M${i+t},${r+t} h${s+1-i}v1H${i+t}z`)}}))})),n.join("")}function GF(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function HF(e,t,n,r){if(null==r)return null;const i=n?4:0,o=e.length+2*i,s=Math.floor(.1*t),a=o/t,l=(r.width||s)*a,c=(r.height||s)*a,u=null==r.x?e.length/2-l/2:r.x*a,d=null==r.y?e.length/2-c/2:r.y*a;let h=null;if(r.excavate){let e=Math.floor(u),t=Math.floor(d);h={x:e,y:t,w:Math.ceil(l+u-e),h:Math.ceil(c+d-t)}}return{x:u,y:d,h:c,w:l,excavation:h}}var VF=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function WF(e){const n=e,{value:r,size:i=LF,level:o=BF,bgColor:s=zF,fgColor:a=FF,includeMargin:l=UF,style:u,imageSettings:d}=n,h=OF(n,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),p=null==d?void 0:d.src,m=(0,c.useRef)(null),f=(0,c.useRef)(null),[g,v]=(0,c.useState)(!1);(0,c.useEffect)((()=>{if(null!=m.current){const e=m.current,t=e.getContext("2d");if(!t)return;let n=kF.QrCode.encodeText(r,DF[o]).getModules();const c=l?4:0,u=n.length+2*c,h=HF(n,i,l,d),p=f.current,g=null!=h&&null!==p&&p.complete&&0!==p.naturalHeight&&0!==p.naturalWidth;g&&null!=h.excavation&&(n=GF(n,h.excavation));const v=window.devicePixelRatio||1;e.height=e.width=i*v;const y=i/u*v;t.scale(y,y),t.fillStyle=s,t.fillRect(0,0,u,u),t.fillStyle=a,VF?t.fill(new Path2D(jF(n,c))):n.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+c,n+c,1,1)}))})),g&&t.drawImage(p,h.x+c,h.y+c,h.w,h.h)}})),(0,c.useEffect)((()=>{v(!1)}),[p]);const y=NF({height:i,width:i},u);let _=null;return null!=p&&(_=t(c).createElement("img",{src:p,key:p,style:{display:"none"},onLoad:()=>{v(!0)},ref:f})),t(c).createElement(t(c).Fragment,null,t(c).createElement("canvas",NF({style:y,height:i,width:i,ref:m},h)),_)}var qF=({tenant:e,url:n,title:r="",className:i,baseUrl:o,primary:a=!0,showQrCode:l=!0,align:u="right"})=>{const{t:d}=xe(),[h,p]=(0,c.useState)(n),m=(0,c.useMemo)((()=>(null==e?void 0:e.theme)?`${null!=o?o:"https://aisuru.com"}/images/${e.theme}/square_logo.png`:`${null!=o?o:"https://aisuru.com"}/images/memori_logo.png`),[e,o]);(0,c.useEffect)((()=>{n||p(window.location.href)}),[n]);const f=[{id:"facebook",title:"Facebook",url:`https://www.facebook.com/sharer/sharer.php?u=${h}`,icon:yF},{id:"twitter",title:"Twitter",url:`https://twitter.com/intent/tweet?url=${h}`,icon:_F},{id:"linkedin",title:"LinkedIn",url:`https://www.linkedin.com/shareArticle?mini=true&title=${r}&url=${h}`,icon:SF},{id:"whatsapp",title:"Whatsapp",url:`https://api.whatsapp.com/send?phone=&text=${h}`,icon:bF},{id:"telegram",title:"Telegram",url:`https://t.me/share/url?text=${r}&url=${h}`,icon:AF},{id:"email",title:"Email",url:`mailto:?subject=${(null==r?void 0:r.length)>0?r:n}&body=${h}`,icon:xF}];return(0,s.jsxs)(HN,{as:"div",className:t(xs)("memori-share-button",{"memori-share-button--align-left":"left"===u}),children:[(0,s.jsx)(HN.Button,{className:t(xs)("memori-button","memori-button--circle","memori-button--icon-only","memori-share-button--button",i,{"memori-button--primary":a}),title:d("widget.share")||void 0,children:(0,s.jsx)("div",{className:"memori-button--icon",children:(0,s.jsx)(wF,{})})}),(0,s.jsxs)(HN.Items,{className:"memori-share-button--overlay",as:"ul",children:[(0,s.jsx)(HN.Item,{as:"li",className:"memori-share-button--li",children:(0,s.jsx)(Cm,{className:"memori-share-button--link",ghost:!0,icon:(0,s.jsx)(dO,{}),onClick:()=>{h&&navigator.clipboard.writeText(h)},children:d("copyToClipboard")||void 0})},"copy"),f.map((e=>{var n;return(0,s.jsx)(HN.Item,{as:"li",className:"memori-share-button--li",children:(0,s.jsxs)("a",{className:t(xs)("memori-button","memori-button--with-icon","memori-button--ghost","memori-button--padded","memori-share-button--link"),href:null!==(n=e.url)&&void 0!==n?n:"",target:"_blank",rel:"noopener noreferrer",children:[(0,s.jsx)("div",{className:"memori-button--icon",children:(0,s.jsx)(e.icon,{})}),e.title]})},e.id)})),l&&(0,s.jsxs)(HN.Item,{as:"li",className:"memori-share-button--li-qr-code",children:[(0,s.jsx)(WF,{id:"qr-canvas",value:null!=h?h:"",size:128,bgColor:"#ffffff",fgColor:"#000000",level:"H",includeMargin:!1,imageSettings:{src:m,x:void 0,y:void 0,height:32,width:32,excavate:!0}}),(0,s.jsx)("div",{children:(0,s.jsx)(Cm,{onClick:()=>{const e=document.getElementById("qr-canvas");if(!e)return;const t=document.createElement("a");t.href=e.toDataURL(),t.download=`memori-${r}-share.png`,document.body.appendChild(t),t.click(),document.body.removeChild(t)},icon:(0,s.jsx)(CF,{}),title:"Download QR",children:"Download"})})]},"qrcode")]})]})};var JF=({className:e,title:t})=>(0,s.jsx)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",focusable:"false",role:"img",className:e,"aria-label":t,children:(0,s.jsx)("path",{d:"M290 236.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0 0 13.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 0 0 0 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 0 0-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"})});var KF=({className:e,title:t})=>(0,s.jsxs)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",focusable:"false",role:"img",className:e,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2","aria-label":t,children:[(0,s.jsx)("path",{d:"M23 4L23 10 17 10"}),(0,s.jsx)("path",{d:"M1 20L1 14 7 14"}),(0,s.jsx)("path",{d:"M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15"})]});var YF=({className:e,title:t})=>(0,s.jsx)("svg",{...t?{}:{"aria-hidden":"true"},focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",className:e,"aria-label":t,children:(0,s.jsx)("path",{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6c-.3 1.5-.4 3-.4 4.4 0 14.4 11.6 26 26 26h723c1.5 0 3-.1 4.4-.4 14.2-2.4 23.7-15.9 21.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"})});var XF=({className:e,memori:n,tenant:r,history:i,position:o,setShowPositionDrawer:a,setShowSettingsDrawer:l,setShowKnownFactsDrawer:u,setShowExpertsDrawer:d,enableAudio:h=!0,speakerMuted:p,setSpeakerMuted:m,hasUserActivatedSpeak:f=!1,showShare:g=!0,showSettings:v=!0,showSpeaker:y=!0,showReload:_=!1,showClear:S=!1,showLogin:b=!0,setShowLoginDrawer:x,clearHistory:w,loginToken:C,user:E,sessionID:A})=>{const{t:T}=xe(),[I,M]=(0,c.useState)(!1),[R,P]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{document.fullscreenEnabled&&M(!0)}),[]),(0,s.jsxs)("div",{className:t(xs)("memori-header",e),children:[n.needsPosition&&o&&(0,s.jsxs)("div",{className:"memori-header--position",children:[0!==o.latitude&&0!==o.longitude&&(0,s.jsx)("span",{className:"memori-header--position-placeName",children:o.placeName}),(0,s.jsx)(Cm,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button--position",title:T("widget.position")||"Position",icon:(0,s.jsx)(YO,{}),onClick:()=>a(!0)})]}),_&&(0,s.jsx)(Cm,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button--reload",title:T("reload")||"Reload",icon:(0,s.jsx)(KF,{}),onClick:()=>{window.location.reload()}}),S&&(0,s.jsx)(Cm,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button--clear",title:T("clearHistory")||"Clear chat",icon:(0,s.jsx)(YF,{}),onClick:w}),I&&(0,s.jsx)(Cm,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button--fullscreen",title:R?T("fullscreenExit")||"Exit fullscreen":T("fullscreenEnter")||"Enter fullscreen",icon:R?(0,s.jsx)(kO,{}):(0,s.jsx)(JF,{}),onClick:()=>{document.fullscreenElement?document.exitFullscreen&&(document.exitFullscreen(),P(!1)):(document.documentElement.requestFullscreen(),P(!0))}}),n.enableDeepThought&&!!C&&(null==E?void 0:E.pAndCUAccepted)&&(0,s.jsx)(Cm,{primary:!!A&&!!f,shape:"circle",icon:(0,s.jsx)(JO,{}),className:"memori-header--button memori-header--button--knownfacts",disabled:!f||!A,onClick:()=>u(!0),title:T("knownFacts.title")||"Known facts"}),n.enableBoardOfExperts&&(0,s.jsx)(Cm,{primary:!0,shape:"circle",icon:(0,s.jsx)(qO,{}),className:"memori-header--button memori-header--button--experts",disabled:!f||!A,onClick:()=>d(!0),title:T("widget.showExpertsInTheBoard")||"Experts in this board"}),h&&y&&(0,s.jsx)(Cm,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button--speaker",icon:p?(0,s.jsx)(Jz,{}):(0,s.jsx)(Yz,{}),onClick:()=>m(!p),title:T("widget.sound")||"Sound"}),(0,s.jsx)(gF,{history:i,memori:n,className:"memori-header--button memori-header--button--export",disabled:!f||0===i.length}),v&&(0,s.jsx)(Cm,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button-settings",icon:(0,s.jsx)(vF,{}),onClick:()=>l(!0),title:T("widget.settings")||"Settings"}),g&&(0,s.jsx)(qF,{className:"memori-header--button memori-header--button-share",title:n.name,tenant:r,showQrCode:!0,align:"left"}),b&&(0,s.jsx)(Cm,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button-login",icon:(0,s.jsx)(CN,{}),onClick:()=>x(!0),title:C?T("login.user")||"User":T("login.login")||"Login"})]})};var $F=({tenant:e,userLang:t="en",integrationID:n,memoriHash:r})=>{const i="memorytwin"===(null==e?void 0:e.theme)?"memorytwin":"twincreator"===(null==e?void 0:e.theme)?"twincreator":"aisuru";return(0,s.jsxs)("div",{className:"memori--powered-by",children:[(0,s.jsx)("img",{src:`https://aisuru.com/images/${i}/logo.png`,alt:""}),(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{className:"sr-only",children:"Powered by"}),(0,s.jsx)("a",{href:`https://memori.ai/${"it"===(null==t?void 0:t.toLowerCase())?"it":"en"}${n?`?integrationID=${n}`:""}${r?`${n?"&":"?"}memori=${r}`:""}`,target:"_blank",rel:"noopener noreferrer",children:"Memori.AI"})]})]})};c=o("85Hg2");var QF=({className:e,title:t})=>(0,s.jsx)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",focusable:"false",role:"img",className:e,fill:"currentColor","aria-label":t,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M10 3a.75.75 0 01.55.24l3.25 3.5a.75.75 0 11-1.1 1.02L10 4.852 7.3 7.76a.75.75 0 01-1.1-1.02l3.25-3.5A.75.75 0 0110 3zm-3.76 9.2a.75.75 0 011.06.04l2.7 2.908 2.7-2.908a.75.75 0 111.1 1.02l-3.25 3.5a.75.75 0 01-1.1 0l-3.25-3.5a.75.75 0 01.04-1.06z",clipRule:"evenodd"})});const ZF={en:["January","February","March","April","May","June","July","August","September","October","November","December"],it:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]},eU=(0,c.memo)((({defaultDate:e,onChange:t,disabled:n=!1})=>{const{t:r,i18n:i}=xe(),[o,a]=(0,c.useState)(e?"string"==typeof e?ws.DateTime.fromISO(e):ws.DateTime.fromJSDate(e):ws.DateTime.now());return(0,c.useEffect)((()=>{t(o)}),[o,t]),(0,s.jsxs)("div",{className:"memori--date-selector",children:[(0,s.jsx)("div",{className:"memori--date-selector__select",children:(0,s.jsxs)(JB,{value:o,onChange:e=>{a(e)},disabled:n,name:"day",children:[(0,s.jsxs)(JB.Label,{className:"memori--date-selector__select-label",children:[r("day"),":"]}),(0,s.jsxs)(JB.Button,{"aria-label":r("day"),className:"memori--date-selector__select-button",children:[(0,s.jsx)("span",{className:"memori--date-selector__select--value",children:o.day}),(0,s.jsx)("span",{className:"memori--date-selector__select--icon",children:(0,s.jsx)(QF,{})})]}),(0,s.jsx)(sp,{as:c.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)(JB.Options,{className:"memori--date-selector__select-options",children:[...Array(31).keys()].map((e=>(0,s.jsx)(JB.Option,{value:o.set({day:e+1}),className:"memori--date-selector__select-option",children:e+1},e)))})})]})}),(0,s.jsx)("div",{className:"memori--date-selector__select",children:(0,s.jsxs)(JB,{value:o,onChange:e=>{a(e)},disabled:n,name:"month",children:[(0,s.jsxs)(JB.Label,{className:"memori--date-selector__select-label",children:[r("month"),":"]}),(0,s.jsxs)(JB.Button,{"aria-label":r("month"),className:"memori--date-selector__select-button",children:[(0,s.jsx)("span",{className:"memori--date-selector__select--value",children:ZF["it"===i.language?"it":"en"][o.month-1]}),(0,s.jsx)("span",{className:"memori--date-selector__select--icon",children:(0,s.jsx)(QF,{})})]}),(0,s.jsx)(sp,{as:c.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)(JB.Options,{className:"memori--date-selector__select-options",children:ZF["it"===i.language?"it":"en"].map((e=>(0,s.jsx)(JB.Option,{className:"memori--date-selector__select-option",value:o.set({month:ZF["it"===i.language?"it":"en"].findIndex((t=>t===e))+1}),children:e},e)))})})]})}),(0,s.jsx)("div",{className:"memori--date-selector__select",children:(0,s.jsxs)(JB,{value:o,onChange:e=>{a(e)},disabled:n,name:"year",children:[(0,s.jsxs)(JB.Label,{className:"memori--date-selector__select-label",children:[r("year"),":"]}),(0,s.jsxs)(JB.Button,{"aria-label":r("year"),className:"memori--date-selector__select-button",children:[(0,s.jsx)("span",{className:"memori--date-selector__select--value",children:o.year}),(0,s.jsx)("span",{className:"memori--date-selector__select--icon",children:(0,s.jsx)(QF,{})})]}),(0,s.jsx)(sp,{as:c.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)(JB.Options,{className:"memori--date-selector__select-options",children:[...Array(ws.DateTime.now().year-1899).keys()].sort(((e,t)=>t-e)).map((e=>(0,s.jsx)(JB.Option,{value:o.set({year:e+1900}),className:"memori--date-selector__select-option",children:e+1900},e)))})})]})})]})}));eU.displayName="DateSelector";var tU=eU;c=o("85Hg2");var nU=({visible:e=!1,onClose:n,minAge:r})=>{const{t:i}=xe(),[o,a]=(0,c.useState)(),[l,u]=(0,c.useState)(),[d,h]=(0,c.useState)(!1),p=(0,c.useCallback)((()=>{if(h(!0),!o)return t(Qu).error(i("requiredField")),u(i("requiredField")||"Required field"),void h(!1);if(ws.DateTime.now().diff(o,"years").years<r)return t(Qu).error(i("underageTwinSession",{age:r})),u(i("underageTwinSession",{age:r})||`You must be at least ${r} years old to interact with this Twin`),void h(!1);n(o.toJSDate().toISOString())}),[o,r,n,i]);return(0,s.jsxs)(eP,{open:e,title:i("ageVerification"),className:"age-verification-modal",closable:!0,onClose:()=>n(),children:[(0,s.jsx)("p",{children:i("ageVerificationText",{minAge:r})}),(0,s.jsxs)("form",{className:"age-verification-form",onSubmit:e=>{e.preventDefault(),p()},children:[(0,s.jsx)("div",{className:"form-item",children:(0,s.jsxs)("fieldset",{name:"birthDate",children:[(0,s.jsx)("legend",{className:"sr-only",children:i("birthDate")}),(0,s.jsx)(tU,{defaultDate:new Date(Date.now()),onChange:e=>{a(e)}}),(0,s.jsx)("p",{className:"form-item-help",children:i("birthDateHelper")}),l&&(0,s.jsx)("p",{className:"form-item-error",children:l})]})}),(0,s.jsx)("div",{className:"form-item form-submit",children:(0,s.jsx)(Cm,{primary:!0,htmlType:"submit",className:"age-verification-submit",loading:d,disabled:!o,children:i("confirm")})})]})]})};c=o("85Hg2");var rU=({label:e,className:n,disabled:r=!1,indeterminate:i=!1,checked:o,children:a,onChange:l,name:u,...d})=>{const h=(0,c.useRef)(null);return(0,c.useEffect)((()=>{h.current&&(h.current.indeterminate=i)}),[h,i]),(0,s.jsxs)("label",{className:t(xs)("memori-checkbox",n,{"memori-checkbox--disabled":r,"memori-checkbox--indeterminate":i}),children:[(0,s.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,s.jsx)("input",{ref:h,type:"checkbox",...d,name:u,disabled:r,checked:o||i,className:"memori-checkbox--input",onChange:l}),(0,s.jsx)("span",{className:"memori-checkbox--inner"})]}),!!(null==e?void 0:e.length)&&(0,s.jsx)("span",{className:"memori-checkbox--text",children:e})]})};c=o("85Hg2");var iU=({className:e,value:n,name:r,displayValue:i,options:o,onChange:a,disabled:l=!1,label:u,placeholder:d})=>(0,s.jsx)("div",{className:t(xs)("memori-select",e),children:(0,s.jsxs)(JB,{value:n,onChange:e=>{a(e)},disabled:l,name:r,children:[u&&(0,s.jsxs)(JB.Label,{className:"memori-select--label",children:[u,":"]}),(0,s.jsxs)(JB.Button,{"aria-label":u,className:"memori-select--button",children:[(0,s.jsx)("span",{className:t(xs)("memori-select--value",{"memori-select--value-placeholder":!n}),children:n?i||n:d}),(0,s.jsx)("span",{className:"memori-select--icon",children:(0,s.jsx)(QF,{})})]}),(0,s.jsx)(sp,{as:c.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)(JB.Options,{className:"memori-select--options",children:o.map((e=>(0,s.jsx)(JB.Option,{value:e.value,className:"memori-select--option",children:e.label},e.value)))})})]})});const oU=[2,3,5,10,15,20,30,60];var sU=({open:e,layout:t="DEFAULT",onClose:n,microphoneMode:r="HOLD_TO_TALK",continuousSpeechTimeout:i,setMicrophoneMode:o,setContinuousSpeechTimeout:a,controlsPosition:l,setControlsPosition:c,hideEmissions:u,setHideEmissions:d,additionalSettings:h,avatarType:p,setAvatarType:m,enablePositionControls:f,setEnablePositionControls:g,isAvatar3d:v})=>{const{t:y}=xe();return(0,s.jsxs)(Am,{className:"memori-settings-drawer",open:e,onClose:n,title:y("widget.settings")||"Settings",description:y("write_and_speak.settingsHeaderLabel"),children:[(0,s.jsxs)("div",{className:"memori-settings-drawer--field controls",children:[(0,s.jsxs)("label",{htmlFor:"#microphoneMode",children:[y("write_and_speak.microphoneMode")||"Microphone mode",":"]}),(0,s.jsxs)(Wz,{id:"microphoneMode",name:"microphoneMode",value:r,defaultValue:r,className:"memori-settings-drawer--microphoneMode-radio",onChange:e=>{let t="CONTINUOUS"===e?"CONTINUOUS":"HOLD_TO_TALK";o(t),MB("microphoneMode",t)},children:[(0,s.jsx)(Wz.Option,{value:"HOLD_TO_TALK",className:"memori-settings-drawer--microphoneMode-radio-button",children:({checked:e})=>(0,s.jsx)(Cm,{primary:e,outlined:!e,children:y("write_and_speak.holdToSpeak")||"Hold to speak"})}),(0,s.jsx)(Wz.Option,{value:"CONTINUOUS",className:"memori-settings-drawer--microphoneMode-radio-button",children:({checked:e})=>(0,s.jsx)(Cm,{primary:e,outlined:!e,children:y("write_and_speak.continuousSpeechLabel")||"Continuous speech"})})]})]}),"CONTINUOUS"===r&&(0,s.jsx)("div",{className:"memori-settings-drawer--field",children:(0,s.jsx)(iU,{label:y("write_and_speak.secondsLabel")||"Seconds",placeholder:y("write_and_speak.secondsLabel")||"Seconds",options:oU.map((e=>({value:e,label:e}))),value:i,onChange:e=>{a(e),MB("continuousSpeechTimeout",e)}})}),"TOTEM"===t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"memori-settings-drawer--field controls",children:[(0,s.jsxs)("label",{htmlFor:"#controlsPosition",children:[y("write_and_speak.controlsPosition")||"Controls",":"]}),(0,s.jsxs)(Wz,{id:"controlsPosition",name:"controlsPosition",value:l,defaultValue:l,className:"memori-settings-drawer--controlsposition-radio",onChange:e=>{c(e),MB("controlsPosition",e)},children:[(0,s.jsx)(Wz.Option,{value:"center",className:"memori-settings-drawer--controlsposition-radio-button",children:({checked:e})=>(0,s.jsx)(Cm,{primary:e,outlined:!e,children:y("center")||"Center"})}),(0,s.jsx)(Wz.Option,{value:"bottom",className:"memori-settings-drawer--controlsposition-radio-button",children:({checked:e})=>(0,s.jsx)(Cm,{primary:e,outlined:!e,children:y("bottom")||"Bottom"})})]})]}),v&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"memori-settings-drawer--field controls",children:[(0,s.jsxs)("label",{htmlFor:"avatarType",className:"memori-settings-drawer-label",children:[y("write_and_speak.avatarType")||"Avatar type",":"]}),(0,s.jsxs)(Wz,{id:"avatarType",name:"avatarType",value:p,defaultValue:p,className:"memori-settings-drawer--avatarType-radio",onChange:e=>{m&&m(e),MB("avatarType",e)},children:[(0,s.jsx)(Wz.Option,{value:"blob",className:"memori-settings-drawer--avatarType-radio-button",children:({checked:e})=>(0,s.jsx)(Cm,{primary:e,outlined:!e,children:y("write_and_speak.blob")||"Blob"})}),(0,s.jsx)(Wz.Option,{value:"avatar3d",className:"memori-settings-drawer--avatarType-radio-button",children:({checked:e})=>(0,s.jsx)(Cm,{primary:e,outlined:!e,children:y("write_and_speak.avatar3d")||"Avatar 3D"})})]})]}),(0,s.jsx)("div",{className:"memori-settings-drawer--field",children:(0,s.jsx)(rU,{label:y("write_and_speak.enablePositionControls")||"Enable position controls",name:"enablePositionControls",checked:f,onChange:e=>{g(e.target.checked)}})})]}),(0,s.jsx)("div",{className:"memori-settings-drawer--field",children:(0,s.jsx)(rU,{label:y("write_and_speak.hideEmissionsLabel")||"Hide emissions",name:"hideControls",checked:u,onChange:e=>{d(e.target.checked),MB("hideEmissions",e.target.checked)}})})]}),h&&(0,s.jsx)("div",{className:"memori-settings-drawer--field controls",children:h})]})};c=o("85Hg2");var aU=({className:e,title:t})=>(0,s.jsx)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",focusable:"false",role:"img",className:e,"aria-label":t,children:(0,s.jsx)("path",{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"})});var lU=({className:e,title:t})=>(0,s.jsx)("svg",{...t?{}:{"aria-hidden":"true"},focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:e,"aria-label":t,children:(0,s.jsx)("path",{d:"M15 18L9 12 15 6"})});var cU=({className:e,title:t})=>(0,s.jsx)("svg",{...t?{}:{"aria-hidden":"true"},focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:e,"aria-label":t,children:(0,s.jsx)("path",{d:"M9 18L15 12 9 6"})});var uU=({apiClient:e,sessionID:n,memori:r,visible:i=!0,initialKnownFacts:o=[],closeDrawer:a})=>{var l;const{t:u}=xe(),{getKnownFactsPaginated:d,deleteKnownFact:h}=e.knownFacts,[p,m]=(0,c.useState)(o),[f,g]=(0,c.useState)(25),[v,y]=(0,c.useState)(0),[_,S]=(0,c.useState)(null!==(l=null==o?void 0:o.length)&&void 0!==l?l:0),[b,x]=(0,c.useState)(!1),w=async(e,r,i)=>{if(n||e){x(!0);try{const{knownFacts:o,count:s,...a}=await d(null!=e?e:n,null!=r?r:v,null!=i?i:f);m(null!=o?o:[]),S(null!=s?s:0),0!==a.resultCode&&(console.error(a),t(Qu).error(u(nO(a.resultCode))))}catch(e){console.error("KNOWN_FACTS/FETCH",e),m(null!=o?o:[])}x(!1)}};(0,c.useEffect)((()=>{w()}),[]);const[C,E]=(0,c.useState)(!1),[A,T]=(0,c.useState)(),[I,M]=(0,c.useState)([]);return(0,s.jsxs)(Am,{open:i,width:"80%",className:"memori-known-facts-drawer",onClose:()=>a(),title:u("knownFacts.title"),children:[(0,s.jsx)("p",{children:u("knownFacts.description",{memoriName:r.name})}),(0,s.jsxs)(wm,{spinning:b,children:[(0,s.jsxs)("div",{className:"memori-known-facts-actions",children:[(0,s.jsxs)(Cm,{primary:!0,danger:!0,onClick:()=>{E(!0)},className:"memori-known-facts-delete-selected",disabled:0===(null==I?void 0:I.length),icon:(0,s.jsx)(aU,{}),loading:b,children:[u("selected")," (",null==I?void 0:I.length,")"]}),(0,s.jsx)(eP,{className:"memori-known-facts-modal",open:C,closable:!0,title:I.length>1?u("knownFacts.deleteSelectedConfirmTitle"):u("knownFacts.deleteConfirmTitle"),description:I.length>1?u("knownFacts.deleteSelectedConfirmMessage",{number:I.length}):u("knownFacts.deleteConfirmMessage"),onClose:()=>{E(!1)},footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Cm,{ghost:!0,onClick:()=>{E(!1)},children:u("cancel")}),(0,s.jsx)(Cm,{primary:!0,danger:!0,onClick:async()=>{try{const e=I.map((e=>h(n,e)));Promise.all(e).then((e=>{if(e.every((e=>0===e.resultCode)))t(Qu).success(u("knownFacts.deleteSuccess")),M([]),w(),E(!1);else{let n=e.find((e=>0!==e.resultCode));console.error(n),void 0!==(null==n?void 0:n.resultCode)&&t(Qu).error(u(nO(null==n?void 0:n.resultCode)))}}))}catch(e){let n=e;t(Qu).error(u("Error")+n.message)}},children:u("confirm")})]})})]}),_>25&&(0,s.jsxs)("nav",{className:"memori--table--pagination",children:[_>f&&(0,s.jsxs)("div",{className:"memori--table--pagination--pages",children:[(0,s.jsx)(Cm,{shape:"circle",disabled:0===v||v<f,padded:!1,title:u("previous")||"Previous",icon:(0,s.jsx)(lU,{}),onClick:()=>{let e=(v/f-1)*f;y(e),w(void 0,e,f)}}),(0,s.jsxs)("span",{className:"memori--table--pagination--pages--current",children:[Math.ceil(v/f)+1," /"," ",Math.ceil(_/f)]}),(0,s.jsx)(Cm,{shape:"circle",padded:!1,title:u("next")||"Next",icon:(0,s.jsx)(cU,{}),disabled:(v/f+1)*f>=_,onClick:()=>{let e=(v/f+1)*f;y(e),w(void 0,e,f)}})]}),(0,s.jsx)(iU,{options:[{label:`25 / ${u("page")||"page"}`,value:25},{label:`50 / ${u("page")||"page"}`,value:50},{label:`100 / ${u("page")||"page"}`,value:100}],value:f,displayValue:`${f} / ${u("page")||"page"}`,onChange:e=>{g(e),y(0),w(void 0,0,e)}})]}),(0,s.jsxs)("table",{className:"memori--table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"memori--table--column-centered",children:(0,s.jsx)(rU,{checked:!!(null==p?void 0:p.length)&&(null==I?void 0:I.length)===p.length,indeterminate:!!(null==p?void 0:p.length)&&!!(null==I?void 0:I.length)&&(null==I?void 0:I.length)!==(null==p?void 0:p.length),onChange:e=>{e.target.checked?M(p.map((e=>e.knownFactID))):M([])}})}),(0,s.jsx)("th",{children:u("knownFacts.text")}),(0,s.jsx)("th",{className:"mobile-hidden",children:u("createdAt")}),(0,s.jsx)("th",{className:"memori--table--column-right",children:u("actions")})]})}),(0,s.jsx)("tbody",{children:p.map((e=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"memori--table--column-centered",children:(0,s.jsx)(rU,{checked:null==I?void 0:I.includes(e.knownFactID),onChange:t=>{t.target.checked?M((t=>[...new Set([...t,e.knownFactID])])):M((t=>t.filter((t=>t!==e.knownFactID))))}})}),(0,s.jsx)("td",{children:e.text}),(0,s.jsx)("td",{className:"mobile-hidden",children:(0,s.jsx)("span",{className:"memori--table--date",children:e.creationTimestamp?new Intl.DateTimeFormat("it",{dateStyle:"short",timeStyle:"short"}).format(new Date(e.creationTimestamp)):"-"})}),(0,s.jsx)("td",{className:"memori--table--column-right",children:(0,s.jsxs)("div",{className:"memori--table--action-column",children:[(0,s.jsx)(Cm,{danger:!0,ghost:!0,shape:"circle",icon:(0,s.jsx)(aU,{}),disabled:(null==I?void 0:I.length)>0,title:u("delete")||"Delete",onClick:()=>T(e.knownFactID)}),(0,s.jsx)(eP,{className:"memori-known-facts-modal",open:A===e.knownFactID,closable:!0,title:u("knownFacts.deleteConfirmTitle"),description:u("knownFacts.deleteConfirmMessage"),onClose:()=>{T(void 0)},footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Cm,{ghost:!0,onClick:()=>{T(void 0)},children:u("cancel")}),(0,s.jsx)(Cm,{primary:!0,danger:!0,onClick:async()=>{try{const r=await h(n,e.knownFactID);0===r.resultCode?(t(Qu).success(u("knownFacts.deleteSuccess")),M([]),w(),T(void 0)):(console.error(r),t(Qu).error(u(nO(r.resultCode),{ns:"common"})))}catch(e){let n=e;t(Qu).error(u("Error")+n.message)}},children:u("confirm")})]})})]})})]},e.knownFactID)))})]})]})]})};var dU=({open:e=!1,baseUrl:t,apiUrl:n,tenant:r,experts:i,onClose:o})=>{const{t:a}=xe();return(0,s.jsx)(Am,{open:e,onClose:o,className:"memori--experts-drawer",title:(0,s.jsx)("h2",{className:"memori--experts-drawer--title",children:a("widget.expertsInTheBoard")}),children:(0,s.jsx)("ul",{className:"memori--experts-drawer--list",children:i.map((e=>(0,s.jsxs)("li",{className:"memori--experts-drawer--item",children:[(0,s.jsx)("figure",{className:"memori--experts-drawer--avatar",children:(0,s.jsx)("img",{src:`${n}/api/v1/memoriai/memori/avatar/${e.expertMemoriID}`,alt:e.name,onError:e=>{e.currentTarget.src=wN({tenantID:null==r?void 0:r.id,type:"avatar",baseURL:t}),e.currentTarget.onerror=null}})}),(0,s.jsxs)("div",{className:"memori--experts-drawer--content",children:[(0,s.jsx)("h3",{className:"memori--experts-drawer--name",children:e.name}),(0,s.jsx)("p",{className:"memori--experts-drawer--description",children:e.description})]})]},e.expertID)))})})};c=o("85Hg2"),c=o("85Hg2");const hU=["memori","private","public","api","404","500","it","en","account","auth","logout","privacy_and_cookie","unauthorized","users","virtual_spaces"];var pU=({tenant:e,apiClient:n,onLogin:r,goToLogin:i,__TEST__waitingForOtp:o=!1})=>{const{t:a,i18n:l}=xe(),u="it"===l.language?"it":"en",{userSignUp:d,userConfirmSignUp:h,resendVerificationCode:p}=n.backend,[m,f]=(0,c.useState)(),[g,v]=(0,c.useState)(),[y,_]=(0,c.useState)(),[S,b]=(0,c.useState)(),x=!y||y&&nR.test(y),w=x&&y&&y.length>=24,C=!y||0===y.length,E=!x||C?0:y.length<8?15:y.length>=32?100:(y.length-8)*(50/24)+50,[A,T]=(0,c.useState)(!1),[I,M]=(0,c.useState)(!1),[R,P]=(0,c.useState)(o),[N,O]=(0,c.useState)(null),[k,D]=(0,c.useState)();(0,c.useEffect)((()=>{D(window.location.href)}),[]);return R?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("form",{className:"memori--login-drawer--form",onSubmit:async n=>{var i,o,s;n.preventDefault();const l=n.currentTarget,c=null!==(i=l.tenant.value)&&void 0!==i?i:e.id,u=null!==(o=l.userName.value)&&void 0!==o?o:g,d=null!==(s=l.password.value)&&void 0!==s?s:y,p=l.verificationCode.value;T(!0),O(null);try{const{user:e,token:n,...i}=await h({tenant:c,userName:u,password:d,verificationCode:p});0!==i.resultCode?(console.error(i),t(Qu).error(a(nO(i.resultCode)))):e&&n&&(t(Qu).success(a("success")),r(e,n))}catch(e){let n=e;console.error("[validate otp]",n),(null==n?void 0:n.message)&&t(Qu).error(n.message)}finally{T(!1)}},children:[(0,s.jsx)("input",{type:"hidden",name:"userName",value:g}),(0,s.jsx)("input",{type:"hidden",name:"password",value:y}),(0,s.jsx)("input",{type:"hidden",name:"tenant",value:e.id}),(0,s.jsxs)("label",{htmlFor:"#verificationCode",children:[a("login.otpCode"),(0,s.jsx)("input",{id:"verificationCode",name:"verificationCode",type:"text",required:!0,autoComplete:"one-time-code",placeholder:a("login.otpCode")||"OTP"})]}),(0,s.jsx)("p",{children:(0,s.jsx)(Cm,{outlined:!0,onClick:async n=>{if(n.preventDefault(),g){M(!0);try{const n=await p({tenant:null==e?void 0:e.id,userName:g});0===n.resultCode?t(Qu).success(a("resentVerificationCode")):(console.error(n),t(Qu).error(a(nO(n.resultCode))))}catch(e){let n=e;console.error("[resend otp]",n),(null==n?void 0:n.message)&&t(Qu).error(n.message)}finally{M(!1)}}},loading:I,children:a("login.resendVerificationCode")})}),(0,s.jsx)(Cm,{htmlType:"submit",primary:!0,loading:A,children:a("confirm")})]}),N&&(0,s.jsx)("p",{role:"alert",className:"memori--login-drawer--error",children:N})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("form",{className:"memori--login-drawer--form",onSubmit:async n=>{var r,i,o,s,l,c,u;n.preventDefault();const h=n.currentTarget,p=null!==(r=h.tenant.value)&&void 0!==r?r:e.id,f=(null!==(i=h.eMail.value)&&void 0!==i?i:m).toLowerCase(),v=null!==(o=h.userName.value)&&void 0!==o?o:g,y=h.password.value,_=new Date(null===(s=h.birthDate)||void 0===s?void 0:s.value).toISOString(),S=null===(l=h.tnCAndPPAccepted)||void 0===l?void 0:l.checked,b=null===(c=h.pAndCUAccepted)||void 0===c?void 0:c.checked,x=null===(u=h.referral)||void 0===u?void 0:u.value;if(!(f&&v&&y&&_&&S))return void O(a("missingData"));T(!0),O(null);if(((new Date).getTime()-new Date(_).getTime())/1e3/60/60/24/365<14)return t(Qu).error(a("login.underage",{age:14})),void O(a("login.underage",{age:14}));try{const{user:e,...n}=await d({tenant:p,eMail:f,userName:v,password:y,birthDate:_,tnCAndPPAccepted:S,tnCAndPPAcceptanceDate:(new Date).toISOString(),pAndCUAccepted:b,pAndCUAcceptanceDate:(new Date).toISOString(),referral:x});0!==n.resultCode?(console.error(n),t(Qu).error(a(nO(n.resultCode)))):e&&(t(Qu).success(a("success")),P(!0))}catch(e){let n=e;console.error("[signup]",n),(null==n?void 0:n.message)&&t(Qu).error(n.message)}finally{T(!1)}},children:[(0,s.jsx)("input",{type:"hidden",name:"tenant",value:e.id}),(0,s.jsx)("input",{type:"hidden",name:"referral",value:k}),(0,s.jsxs)("label",{htmlFor:"#eMail",children:[a("login.email"),(0,s.jsx)("input",{type:"email",name:"eMail",id:"eMail",required:!0,autoComplete:"email",placeholder:a("login.email")||"Email",onChange:e=>f(e.target.value),"aria-invalid":!!(null==m?void 0:m.length)&&!rR.test(m)})]}),!!(null==m?void 0:m.length)&&!rR.test(m)&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:a("login.emailFormatError")}),(0,s.jsxs)("label",{htmlFor:"userName",children:[a("login.username"),(0,s.jsx)("input",{type:"text",name:"userName",id:"userName",required:!0,autoComplete:"username",placeholder:a("login.username")||"Username",onFocus:()=>{if(!(null==g?void 0:g.length)&&(null==m?void 0:m.length)){let e=(e=>e.split("@")[0].replace(/[^a-zA-Z0-9]/g,""))(m);const t=document.getElementById("userName");t&&(t.value=e,v(e))}},onChange:e=>v(e.target.value),"aria-invalid":!!(null==g?void 0:g.length)&&(hU.includes(g.toLowerCase())||!iR.test(g))})]}),!!(null==g?void 0:g.length)&&hU.includes(g.toLowerCase())&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:a("login.usernameContainsReservedWord")}),!!(null==g?void 0:g.length)&&!iR.test(g)&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:a("login.usernameFormatError")}),(0,s.jsxs)("label",{htmlFor:"#birthDate",children:[a("login.birthDate"),(0,s.jsx)("input",{id:"birthDate",name:"birthDate",type:"date",required:!0,autoComplete:"bday"})]}),(0,s.jsx)("p",{children:(0,s.jsx)("small",{children:a("login.birthDateHelper")})}),(0,s.jsxs)("label",{htmlFor:"#password",children:[a("login.password"),(0,s.jsx)("input",{id:"password",name:"password",type:"password",required:!0,autoComplete:"new-password",placeholder:a("login.password")||"Password",onChange:e=>_(e.target.value),"aria-invalid":!x})]}),!x&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:a("login.passwordFormatError")}),(0,s.jsxs)("label",{htmlFor:"#confirm-password",children:[a("login.confirmPassword"),(0,s.jsx)("input",{id:"confirm-password",name:"confirmPassword",type:"password",required:!0,autoComplete:"new-password",placeholder:a("login.confirmPassword")||"Password",onChange:e=>b(e.target.value),"aria-invalid":!!(null==y?void 0:y.length)&&!!(null==S?void 0:S.length)&&y!==S})]}),!!(null==y?void 0:y.length)&&!!(null==S?void 0:S.length)&&y!==S&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:a("login.passwordMatchingError")}),(0,s.jsx)("meter",{className:"memori--login-drawer--password-meter",min:0,low:33,high:66,optimum:80,max:100,value:E,id:"password-strength-meter"}),(0,s.jsx)("small",{children:a("login.pwd"+(w?"Strong":x?"Acceptable":"Weak"))}),(0,s.jsxs)("label",{className:"memori-checkbox",children:[(0,s.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,s.jsx)("input",{type:"checkbox",name:"tnCAndPPAccepted",required:!0,className:"memori-checkbox--input"}),(0,s.jsx)("span",{className:"memori-checkbox--inner"})]}),(0,s.jsxs)("span",{className:"memori-checkbox--text",children:[a("login.privacyLabel")," ",(0,s.jsx)("a",{href:`https://memori.ai/${u}/privacy_and_cookie`,target:"_blank",rel:"noopener noreferrer",children:a("login.privacyAndCookiePolicy")})," ",a("login.and")," ",(0,s.jsx)("a",{href:`https://memori.ai/${u}/tos`,target:"_blank",rel:"noopener noreferrer",children:a("login.termsOfService")})]})]}),(0,s.jsxs)("label",{className:"memori-checkbox",children:[(0,s.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,s.jsx)("input",{type:"checkbox",name:"pAndCUAccepted",className:"memori-checkbox--input"}),(0,s.jsx)("span",{className:"memori-checkbox--inner"})]}),(0,s.jsxs)("span",{className:"memori-checkbox--text",children:[a("login.pAndCUAccepted")," ",(0,s.jsx)("small",{children:(0,s.jsxs)("em",{children:["(",a("login.optional"),")"]})})]})]}),(0,s.jsx)("p",{children:(0,s.jsx)("small",{children:a("login.deepThoughtExplaination")})}),(0,s.jsx)(Cm,{htmlType:"submit",primary:!0,loading:A,children:a("login.signUp")}),(0,s.jsxs)("p",{className:"memori--login-drawer--signup",children:[a("login.alreadyHaveAnAccount")," ",(0,s.jsx)(Cm,{outlined:!0,onClick:i,children:a("login.backToLogin")})]})]}),N&&(0,s.jsx)("p",{role:"alert",className:"memori--login-drawer--error",children:N})]})};c=o("85Hg2");const mU=["image/jpeg","image/png","image/jpg","image/gif"];var fU=({user:e,loginToken:n,apiClient:r,onUserUpdate:i})=>{const{t:o,i18n:a}=xe(),l="it"===a.language?"it":"en",{updateUser:u,uploadAsset:d}=r.backend,[h,p]=(0,c.useState)(),[m,f]=(0,c.useState)(),[g,v]=(0,c.useState)(),y=!m||m&&nR.test(m),_=y&&m&&m.length>=24,S=!m||0===m.length,b=!y||S?0:m.length<8?15:m.length>=32?100:(m.length-8)*(50/24)+50,[x,w]=(0,c.useState)(!1),[C,E]=(0,c.useState)(null),A=async(e,r)=>{try{const{user:s,...a}=await u(n,e,r);0!==a.resultCode?(console.error(a),t(Qu).error(o(nO(a.resultCode)))):s&&(t(Qu).success(o("success")),i(s))}catch(e){let n=e;console.error("[signup]",n),(null==n?void 0:n.message)&&t(Qu).error(n.message)}finally{w(!1)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{className:"memori--login-drawer--edit-account-title",children:o("login.editAccount")}),(0,s.jsxs)("form",{className:"memori--login-drawer--form memori--login-drawer--account-form",onSubmit:async r=>{var i,s,a,l,c;if(r.preventDefault(),!e.userID)return;const u=e.userID,p=r.currentTarget,f=null!==(i=p.eMail.value)&&void 0!==i?i:h,g=null!==(s=p.newPassword.value)&&void 0!==s?s:m,v=p.password.value,y=p.confirmPassword.value,_=null===(a=p.pAndCUAccepted)||void 0===a?void 0:a.checked,S=null===(c=null===(l=p.avatar)||void 0===l?void 0:l.files)||void 0===c?void 0:c[0];if(w(!0),E(null),(null==g?void 0:g.length)&&g!==y)return E(o("login.passwordMatchingError")),void w(!1);let b={...(null==f?void 0:f.length)&&f!==e.eMail?{eMail:f}:{},...g?{password:v,newPassword:g}:{},...void 0!==_&&_!==e.pAndCUAccepted?{pAndCUAccepted:_,pAndCUAcceptanceDate:(new Date).toISOString()}:{}};if(0===Object.values(b).length&&!S)return console.debug("No changes to submit"),void w(!1);if(S){const e=new FileReader;e.onload=async e=>{var r,i;try{const{asset:s,...a}=await d(null!==(r=S.name)&&void 0!==r?r:"avatar",null===(i=e.target)||void 0===i?void 0:i.result,n);0!==a.resultCode?(console.error(a),t(Qu).error(o(nO(a.resultCode)))):s&&(b.avatarURL=s.assetURL,await A(u,b))}catch(e){let n=e;console.error("[avatar upload]",n),(null==n?void 0:n.message)&&t(Qu).error(n.message)}},e.readAsDataURL(S)}else await A(u,b)},children:[(0,s.jsxs)("details",{className:"memori--details",children:[(0,s.jsx)("summary",{children:o("login.emailChange")}),(0,s.jsxs)("label",{htmlFor:"#eMail",children:[o("login.email"),(0,s.jsx)("input",{type:"email",name:"eMail",id:"eMail",autoComplete:"email",placeholder:e.eMail,onChange:e=>p(e.target.value),"aria-invalid":!!(null==h?void 0:h.length)&&!rR.test(h)})]}),!!(null==h?void 0:h.length)&&!rR.test(h)&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:o("login.emailFormatError")})]}),(0,s.jsxs)("details",{className:"memori--details",children:[(0,s.jsx)("summary",{children:o("login.passwordChange")}),(0,s.jsxs)("label",{htmlFor:"#password",children:[o("login.currentPassword"),(0,s.jsx)("input",{id:"password",name:"password",type:"password",autoComplete:"password",placeholder:o("login.currentPassword")||"Password"})]}),(0,s.jsxs)("label",{htmlFor:"#newPassword",children:[o("login.newPassword"),(0,s.jsx)("input",{id:"newPassword",name:"newPassword",type:"password",autoComplete:"new-password",placeholder:o("login.password")||"Password",onChange:e=>f(e.target.value),"aria-invalid":!y})]}),!y&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:o("login.passwordFormatError")}),(0,s.jsxs)("label",{htmlFor:"#confirm-password",children:[o("login.confirmPassword"),(0,s.jsx)("input",{id:"confirm-password",name:"confirmPassword",type:"password",autoComplete:"new-password",placeholder:o("login.confirmPassword")||"Password",onChange:e=>v(e.target.value),"aria-invalid":!!(null==m?void 0:m.length)&&!!(null==g?void 0:g.length)&&m!==g})]}),!!(null==m?void 0:m.length)&&!!(null==g?void 0:g.length)&&m!==g&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:o("login.passwordMatchingError")}),(0,s.jsx)("meter",{className:"memori--login-drawer--password-meter",min:0,low:33,high:66,optimum:80,max:100,value:b,id:"password-strength-meter"}),(0,s.jsx)("small",{children:o("login.pwd"+(_?"Strong":y?"Acceptable":"Weak"))})]}),(0,s.jsxs)("details",{className:"memori--details",children:[(0,s.jsx)("summary",{children:o("login.avatarChange")}),(0,s.jsxs)("label",{htmlFor:"#avatar",children:["Avatar",(0,s.jsx)("input",{type:"file",name:"avatar",id:"avatar",accept:mU.join(", "),placeholder:e.avatarURL})]})]}),(0,s.jsxs)("label",{className:"memori-checkbox memori-checkbox--disabled",children:[(0,s.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,s.jsx)("input",{type:"checkbox",name:"tnCAndPPAccepted",disabled:!0,defaultChecked:e.tnCAndPPAccepted,checked:e.tnCAndPPAccepted,className:"memori-checkbox--input"}),(0,s.jsx)("span",{className:"memori-checkbox--inner"})]}),(0,s.jsxs)("span",{className:"memori-checkbox--text",children:[o("login.privacyLabel")," ",(0,s.jsx)("a",{href:`https://memori.ai/${l}/privacy_and_cookie`,target:"_blank",rel:"noopener noreferrer",children:o("login.privacyAndCookiePolicy")})," ",o("login.and")," ",(0,s.jsx)("a",{href:`https://memori.ai/${l}/tos`,target:"_blank",rel:"noopener noreferrer",children:o("login.termsOfService")})]})]}),(0,s.jsxs)("label",{className:"memori-checkbox",children:[(0,s.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,s.jsx)("input",{type:"checkbox",name:"pAndCUAccepted",className:"memori-checkbox--input",defaultChecked:e.pAndCUAccepted}),(0,s.jsx)("span",{className:"memori-checkbox--inner"})]}),(0,s.jsx)(TN,{align:"left",content:o("login.deepThoughtExplaination"),children:(0,s.jsxs)("span",{className:"memori-checkbox--text",children:[o("login.pAndCUAccepted")," ",(0,s.jsx)("small",{children:(0,s.jsxs)("em",{children:["(",o("login.optional"),")"]})})]})})]}),(0,s.jsx)(Cm,{htmlType:"submit",primary:!0,loading:x,children:o("login.save")})]}),C&&(0,s.jsx)("p",{role:"alert",className:"memori--login-drawer--error",children:C})]})};var gU=({open:e=!1,onClose:n,onLogin:r,onLogout:i,user:o,loginToken:a,tenant:l,apiClient:u,__TEST__signup:d=!1,__TEST__needMissingData:h=!1,__TEST__waitingForOtp:p=!1,__TEST__changePwd:m=!1})=>{var f,g;const{t:v,i18n:y}=xe(),_="it"===y.language?"it":"en",{userLogin:S,updateUser:b}=u.backend,x=(null==o?void 0:o.userID)&&a,[w,C]=(0,c.useState)(!1),[E,A]=(0,c.useState)(null),[T,I]=(0,c.useState)(d),[M,R]=(0,c.useState)(m?{flowID:"flowID",tenant:l.id,eMail:"email",userName:"username",password:"password"}:void 0),[P,N]=(0,c.useState)(h?{token:"token",birthDate:!0,tnCAndPPAccepted:!0}:{}),[O,k]=(0,c.useState)(),[D,L]=(0,c.useState)(),B=!O||O&&nR.test(O),z=B&&O&&O.length>=24,F=!O||0===O.length,U=!B||F?0:O.length<8?15:O.length>=32?100:(O.length-8)*(50/24)+50;return(0,s.jsx)(Am,{open:e,onClose:n,className:t(xs)("memori--login-drawer",{"memori--login-drawer--logged":x,"memori--login-drawer--signup":T}),title:(0,s.jsx)("span",{className:"memori--login-drawer--title",children:x?v("login.loggedDrawerTitle",{name:o.userName}):v(T?"login.signupDrawerTitle":"login.loginDrawerTitle")}),children:x?(0,s.jsxs)("div",{className:"memori--login-drawer--logged",children:[o.avatarURL&&(0,s.jsx)("figure",{className:"memori--login-drawer--avatar",children:(0,s.jsx)("img",{src:o.avatarURL,alt:o.userName})}),(0,s.jsx)(Cm,{primary:!0,onClick:()=>{i()},children:v("login.logout")}),(0,s.jsx)(fU,{user:o,loginToken:a,apiClient:u,onUserUpdate:e=>r(e,a)})]}):(null===(f=null==P?void 0:P.token)||void 0===f?void 0:f.length)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{children:v("login.missingData")}),(0,s.jsx)("p",{children:v("login.missingDataHelper")}),(0,s.jsxs)("form",{className:"memori--login-drawer--form",onSubmit:async e=>{var n,i,s;e.preventDefault();const a=e.currentTarget,l=null===(n=a.birthDate)||void 0===n?void 0:n.value,c=null===(i=a.tnCAndPPAccepted)||void 0===i?void 0:i.checked,u=null===(s=a.pAndCUAccepted)||void 0===s?void 0:s.checked;if(!(null==o?void 0:o.userID)||!(null==P?void 0:P.token))return;if(!l||!c)return void A(v("missingData"));let d={userID:o.userID,birthDate:(null==o?void 0:o.birthDate)||!P.birthDate?void 0:l,tnCAndPPAccepted:c||(null==o?void 0:o.tnCAndPPAccepted),tnCAndPPAcceptanceDate:c?(new Date).toISOString():void 0,pAndCUAccepted:u||(null==o?void 0:o.pAndCUAccepted),pAndCUAcceptanceDate:u?(new Date).toISOString():void 0};const{user:h,...p}=await b(P.token,o.userID,d);0!==p.resultCode?(console.error(p),t(Qu).error(v(nO(p.resultCode))),A(p.resultMessage)):(t(Qu).success(v("success")),r(h||d,P.token))},children:[P.birthDate&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("label",{htmlFor:"#birthDate",children:[v("login.birthDate"),(0,s.jsx)("input",{id:"birthDate",name:"birthDate",type:"date",required:!0,autoComplete:"bday"})]}),(0,s.jsx)("p",{children:(0,s.jsx)("small",{children:v("login.birthDateHelper")})})]}),(null==P?void 0:P.tnCAndPPAccepted)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("label",{className:"memori-checkbox",children:[(0,s.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,s.jsx)("input",{type:"checkbox",name:"tnCAndPPAccepted",className:"memori-checkbox--input"}),(0,s.jsx)("span",{className:"memori-checkbox--inner"})]}),(0,s.jsxs)("span",{className:"memori-checkbox--text",children:[v("login.privacyLabel")," ",(0,s.jsx)("a",{href:`https://memori.ai/${_}/privacy_and_cookie`,target:"_blank",rel:"noopener noreferrer",children:v("login.privacyAndCookiePolicy")})," ",v("login.and")," ",(0,s.jsx)("a",{href:`https://memori.ai/${_}/tos`,target:"_blank",rel:"noopener noreferrer",children:v("login.termsOfService")})]})]}),(0,s.jsxs)("label",{className:"memori-checkbox",children:[(0,s.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,s.jsx)("input",{type:"checkbox",name:"pAndCUAccepted",defaultChecked:null==o?void 0:o.pAndCUAccepted,className:"memori-checkbox--input"}),(0,s.jsx)("span",{className:"memori-checkbox--inner"})]}),(0,s.jsxs)("span",{className:"memori-checkbox--text",children:[v("login.pAndCUAccepted")," ",(0,s.jsx)("small",{children:(0,s.jsxs)("em",{children:["(",v("login.optional"),")"]})})]})]}),(0,s.jsx)("p",{children:(0,s.jsx)("small",{children:v("login.goToAccountToChangeYourPreferences")})}),(0,s.jsx)("p",{children:(0,s.jsx)("small",{children:v("login.deepThoughtExplaination")})})]}),(0,s.jsx)(Cm,{htmlType:"submit",primary:!0,loading:w,children:v("login.save")})]})]}):(null==M?void 0:M.flowID)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:v("login.mustChangePassword")}),(0,s.jsxs)("form",{className:"memori--login-drawer--form",onSubmit:async e=>{var n,i,o,s,a;e.preventDefault();const c=e.currentTarget,u=null!==(n=c.tenant.value)&&void 0!==n?n:l.id,d=null!==(i=c.flowID.value)&&void 0!==i?i:null==M?void 0:M.flowID,h=null!==(o=c.eMail.value)&&void 0!==o?o:null==M?void 0:M.eMail,p=null!==(s=c.userName.value)&&void 0!==s?s:null==M?void 0:M.userName,m=null!==(a=c.password.value)&&void 0!==a?a:null==M?void 0:M.password,f=c.newPassword.value;if(!(null==f?void 0:f.length)||!B)return void A(v("login.passwordFormatError"));C(!0);const g={tenant:u,flowID:d,eMail:h,userName:p,password:m,newPassword:f};try{const{user:e,token:n,...i}=await S(g);0!==i.resultCode?(console.error(i),t(Qu).error(v(nO(i.resultCode))),A(i.resultMessage)):e&&n&&(t(Qu).success(v("success")),r(e||g,n))}catch(e){let n=e;console.error("[LOGIN/CHANGE PWD]",n),n.message&&(t(Qu).error(n.message),A(n.message))}finally{C(!1)}},children:[(0,s.jsx)("input",{type:"hidden",name:"tenant",value:null!==(g=M.tenant)&&void 0!==g?g:null==l?void 0:l.id}),(0,s.jsx)("input",{type:"hidden",name:"flowID",value:M.flowID}),(0,s.jsx)("input",{type:"hidden",name:"eMail",value:M.eMail}),(0,s.jsx)("input",{type:"hidden",name:"userName",value:M.userName}),(0,s.jsx)("input",{type:"hidden",name:"password",value:M.password}),(0,s.jsxs)("label",{htmlFor:"#newPassword",children:[v("login.password"),(0,s.jsx)("input",{id:"newPassword",name:"newPassword",type:"password",required:!0,autoComplete:"new-password",placeholder:v("login.password")||"Password",onChange:e=>k(e.target.value),"aria-invalid":!B})]}),!B&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:v("login.passwordFormatError")}),(0,s.jsxs)("label",{htmlFor:"#confirm-password",children:[v("login.confirmPassword"),(0,s.jsx)("input",{id:"confirm-password",name:"confirmPassword",type:"password",required:!0,autoComplete:"new-password",placeholder:v("login.confirmPassword")||"Password",onChange:e=>L(e.target.value),"aria-invalid":!!(null==O?void 0:O.length)&&!!(null==D?void 0:D.length)&&O!==D})]}),!!(null==O?void 0:O.length)&&!!(null==D?void 0:D.length)&&O!==D&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:v("login.passwordMatchingError")}),(0,s.jsx)("meter",{className:"memori--login-drawer--password-meter",min:0,low:33,high:66,optimum:80,max:100,value:U,id:"password-strength-meter"}),(0,s.jsx)("small",{children:v("login.pwd"+(z?"Strong":B?"Acceptable":"Weak"))}),(0,s.jsx)(Cm,{htmlType:"submit",primary:!0,loading:w,children:v("confirm")})]})]}):T?(0,s.jsx)(pU,{tenant:l,apiClient:u,onLogin:r,goToLogin:()=>I(!1),__TEST__waitingForOtp:p}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("form",{className:"memori--login-drawer--form",onSubmit:e=>{e.preventDefault();const n=e.currentTarget,i=n.userNameOrEmail.value,o=n.password.value,s=rR.test(i),a=s?{tenant:null==l?void 0:l.id,eMail:i,password:o}:{tenant:null==l?void 0:l.id,userName:i,password:o};C(!0),A(null),S(a).then((e=>{var n,a,c,u,d;-14===e.resultCode?R({tenant:l.id,eMail:s?i:void 0,userName:s?void 0:i,password:o,flowID:e.flowID||(null===(n=e.user)||void 0===n?void 0:n.flowID)}):0!==e.resultCode?(console.error(e),t(Qu).error(v(nO(e.resultCode))),A(e.resultMessage)):e.user&&e.token&&((null===(a=e.user)||void 0===a?void 0:a.tnCAndPPAccepted)&&(null===(c=e.user)||void 0===c?void 0:c.birthDate)?r(e.user,e.token):N({token:e.token,birthDate:!(null===(u=e.user)||void 0===u?void 0:u.birthDate),tnCAndPPAccepted:!(null===(d=e.user)||void 0===d?void 0:d.tnCAndPPAccepted)}))})).catch((e=>{console.error("[LOGIN]",e),e.message&&(t(Qu).error(e.message),A(e.message))})).finally((()=>{C(!1)}))},children:[(0,s.jsxs)("label",{htmlFor:"#userNameOrEmail",children:[v("login.userNameOrEmail"),(0,s.jsx)("input",{id:"userNameOrEmail",name:"userNameOrEmail",required:!0,autoComplete:"email",placeholder:"Username/email"})]}),(0,s.jsxs)("label",{htmlFor:"#password",children:["Password",(0,s.jsx)("input",{id:"password",name:"password",type:"password",required:!0,autoComplete:"password",placeholder:"Password"})]}),(0,s.jsx)(Cm,{htmlType:"submit",primary:!0,loading:w,children:v("login.login")}),(null==l?void 0:l.disableRegistration)?l.adminEmail?(0,s.jsxs)("div",{className:"memori--login-drawer--signup",children:[(0,s.jsx)("p",{children:v("login.registrationDisabled")}),(0,s.jsxs)("p",{children:[v("login.contactAdmin"),":"," ",(0,s.jsx)("a",{href:`mailto:${l.adminEmail}`,children:l.adminEmail})]})]}):null:(0,s.jsxs)("p",{className:"memori--login-drawer--signup",children:[v("login.newUserSignUp")," ",(0,s.jsx)(Cm,{outlined:!0,onClick:()=>I(!0),children:v("login.signUp")})]})]}),E&&(0,s.jsx)("p",{role:"alert",className:"memori--login-drawer--error",children:E})]})})};var vU=({Header:e,headerProps:t,Avatar:n,avatarProps:r,Chat:i,chatProps:o,StartPanel:a,startPanelProps:l,integrationStyle:c,integrationBackground:u,ChangeMode:d,changeModeProps:h,sessionId:p,hasUserActivatedSpeak:m,showInstruct:f=!1,loading:g=!1,poweredBy:v})=>(0,s.jsxs)(s.Fragment,{children:[c,u,(0,s.jsxs)(wm,{spinning:g,children:[f&&d&&h&&(0,s.jsx)(d,{...h}),e&&t&&(0,s.jsx)(e,{...t}),(0,s.jsxs)("div",{className:"memori--grid",children:[(0,s.jsxs)("div",{className:"memori--grid-column memori--grid-column-left",children:[n&&r&&(0,s.jsx)(n,{...r}),(0,s.jsx)("div",{id:"extension"})]}),(0,s.jsx)("div",{className:"memori--grid-column memori--grid-column-right",children:p&&m&&i&&o?(0,s.jsx)(i,{...o}):l?(0,s.jsx)(a,{...l}):null}),v]})]})]});var yU=({Header:e,headerProps:t,Avatar:n,avatarProps:r,Chat:i,chatProps:o,StartPanel:a,startPanelProps:l,integrationStyle:c,integrationBackground:u,ChangeMode:d,changeModeProps:h,sessionId:p,hasUserActivatedSpeak:m,showInstruct:f=!1,loading:g=!1,poweredBy:v})=>(0,s.jsxs)(s.Fragment,{children:[c,u,(0,s.jsxs)(wm,{spinning:g,className:"memori-totem-layout",children:[v,f&&d&&h&&(0,s.jsx)(d,{...h}),(0,s.jsx)("div",{className:"memori-totem-layout--header",children:e&&t&&(0,s.jsx)(e,{...t})}),(0,s.jsx)("div",{className:"memori-totem-layout--avatar",children:n&&r&&(0,s.jsx)(n,{...r,isTotem:!0})}),(0,s.jsx)("div",{id:"extension"}),(0,s.jsx)("div",{className:"memori-totem-layout--controls",children:p&&m&&i&&o?(0,s.jsx)(i,{...o}):l?(0,s.jsx)(a,{...l}):null})]})]});var _U=({Header:e,headerProps:t,Chat:n,chatProps:r,StartPanel:i,startPanelProps:o,integrationStyle:a,integrationBackground:l,ChangeMode:c,changeModeProps:u,sessionId:d,hasUserActivatedSpeak:h,showInstruct:p=!1,loading:m=!1,poweredBy:f})=>(0,s.jsxs)(s.Fragment,{children:[a,l,(0,s.jsxs)(wm,{spinning:m,className:"memori-chat-layout",children:[f,p&&c&&u&&(0,s.jsx)(c,{...u}),(0,s.jsx)("div",{className:"memori-chat-layout--header",children:e&&t&&(0,s.jsx)(e,{...t})}),(0,s.jsx)("div",{id:"extension"}),(0,s.jsx)("div",{className:"memori-chat-layout--controls",children:d&&h&&n&&r?(0,s.jsx)(n,{...r}):o?(0,s.jsx)(i,{...o}):null})]})]});c=o("85Hg2"),c=o("85Hg2");var SU=({Header:e,headerProps:t,Avatar:n,avatarProps:r,Chat:i,chatProps:o,StartPanel:a,startPanelProps:l,integrationStyle:u,ChangeMode:d,changeModeProps:h,sessionId:p,hasUserActivatedSpeak:m,showInstruct:f=!1,loading:g=!1,poweredBy:v})=>{var y,_;const{t:S}=xe(),[b,x]=(0,c.useState)(!0),[w,C]=(0,c.useState)(),E=(0,c.useMemo)((()=>null==o?void 0:o.stopAudio),[null==o?void 0:o.stopAudio]),A=e=>{x(e),C(e?void 0:(new Date).toISOString());try{null==E||E()}catch(e){console.log(e)}};return(0,s.jsx)("div",{className:"memori-website_assistant--"+(b?"collapsed":"expanded"),children:b?(0,s.jsx)("div",{className:"memori-website_assistant--trigger",children:(0,s.jsx)(Cm,{className:"memori-website_assistant--trigger-button",ghost:!0,shape:"circle",onClick:()=>A(!1),title:S("expand")||"Expand",children:(0,s.jsx)(ik,{avatar:null==r?void 0:r.memori.avatarURL})})}):(0,s.jsxs)(s.Fragment,{children:[u,(0,s.jsxs)(wm,{spinning:g,className:"memori-website_assistant-layout",children:[v,(0,s.jsx)("div",{className:"memori-website_assistant--close-button-wrapper",children:(0,s.jsx)(Cm,{className:"memori-website_assistant--close-button",primary:!0,shape:"circle",onClick:()=>A(!0),icon:(0,s.jsx)(Em,{}),title:S("close")||"Close"})}),f&&d&&h&&(0,s.jsx)(d,{...h}),(0,s.jsx)("div",{className:"memori-website_assistant-layout--header",children:e&&t&&(0,s.jsx)(e,{...t,showSettings:!1,showReload:!1})}),(0,s.jsx)("div",{className:"memori-website_assistant-layout--avatar",children:n&&r&&(0,c.createElement)(n,{...r,integrationConfig:r.integrationConfig?{...r.integrationConfig,avatarURL:(null===(y=r.integrationConfig)||void 0===y?void 0:y.avatarURL)?`${null===(_=r.integrationConfig)||void 0===_?void 0:_.avatarURL.split("#")[0]}#${w}`:void 0}:{},key:w})}),(0,s.jsx)("div",{id:"extension"}),(0,s.jsx)("div",{className:"memori-website_assistant-layout--controls",children:p&&m&&i&&o?(0,s.jsx)(i,{...o}):l?(0,s.jsx)(a,{...l}):null})]})]})})};const bU=async({operation:e="session_creation",baseUrl:t,userID:n,userName:r,tenant:i})=>{if(!n&&!r)throw new Error("Either userID or userName must be provided");const o=await fetch(`${t}/api/verify-tokens`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({operation:e,userID:n,userName:r,tenant:i})});if(!o.ok)throw new Error("Failed to fetch credits");return o.json()};c=o("85Hg2");var xU=({Header:e,headerProps:t,Chat:n,chatProps:r,startPanelProps:i,sessionId:o,hasUserActivatedSpeak:a})=>{const{t:l}=xe(),[u,d]=(0,c.useState)(!1);(0,c.useEffect)((()=>{const e=document.body;e&&(u?(e.style.width="calc(100% - 350px)",e.style.marginRight="300px",e.style.transition="all 0.5s"):(e.style.width="100%",e.style.marginLeft="0"))}),[u]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("input",{type:"checkbox",id:"memori-sidebar-toggle",className:"memori-sidebar-toggle",checked:u,onChange:()=>{d(!u),(()=>{try{window.speechSynthesis.speak(new SpeechSynthesisUtterance(""))}catch(e){console.error(e)}i&&(null==i?void 0:i.initializeTTS)&&(null==i||i.initializeTTS()),i&&(null==i?void 0:i.onClickStart)&&(null==i||i.onClickStart())})()}}),(0,s.jsxs)("div",{className:"memori-sidebar-container",children:[(0,s.jsx)("label",{htmlFor:"memori-sidebar-toggle",className:"memori-sidebar-toggle-label memori-open-label",children:(0,s.jsx)($N,{className:"memori-icon","aria-label":l("expand")})}),(0,s.jsxs)("aside",{className:"memori-sidebar",children:[(0,s.jsx)("label",{htmlFor:"memori-sidebar-toggle",className:"memori-sidebar-toggle-label memori-close-label",children:(0,s.jsx)("span",{children:(0,s.jsx)(Em,{className:"memori-icon-close","aria-label":l("collapse")})})}),(0,s.jsx)("div",{className:"memori-sidebar-content",children:(0,s.jsx)("div",{className:"memori-hidden-chat-layout--header",children:e&&t&&(0,s.jsx)(e,{position:{latitude:0,longitude:0,placeName:""},...t,className:"memori-hidden-chat-layout-header--layout"})})}),(0,s.jsx)("div",{id:"extension"}),(0,s.jsx)("div",{className:"memori-hidden-chat-layout--controls",children:o&&a&&n&&r?(0,s.jsx)(n,{...r}):(0,s.jsx)("div",{className:"memori-loading",children:(0,s.jsx)(wm,{})})})]})]})]})};c=o("85Hg2");var wU=({Header:e,headerProps:t,Avatar:n,avatarProps:r,Chat:i,chatProps:o,StartPanel:a,startPanelProps:l,integrationStyle:u,integrationBackground:d,ChangeMode:h,changeModeProps:p,sessionId:m,hasUserActivatedSpeak:f,showInstruct:g=!1,loading:v=!1,poweredBy:y})=>((0,c.useEffect)((()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""})),[]),(0,s.jsxs)(s.Fragment,{children:[u,d,(0,s.jsxs)(wm,{className:"memori-spin--zoomed-full-body",spinning:v,children:[g&&h&&p&&(0,s.jsx)(h,{...p}),e&&t&&(0,s.jsx)(e,{...t}),(0,s.jsxs)("div",{className:"memori--grid",children:[(0,s.jsxs)("div",{className:"memori--grid-column memori--grid-column-left",children:[n&&r&&(0,s.jsx)(n,{chatProps:o,isZoomed:!0,...r}),(0,s.jsx)("div",{id:"extension"})]}),(0,s.jsx)("div",{className:"memori--grid-column memori--grid-column--zoomed-full-body memori--grid-column-right",children:m&&f&&i&&o?(0,s.jsx)(i,{...o}):l?(0,s.jsx)(a,{...l}):null}),(0,s.jsx)("div",{className:"memori--powered-by-custom",children:y})]})]})]}));const CU=(e,t=!0,n=!1,r,i=!1,o=!1)=>{const s=new CustomEvent("MemoriTextEntered",{detail:{text:e,waitForPrevious:t,hidden:n,typingText:r,useLoaderTextAsMsg:i,hasBatchQueued:o}});document.dispatchEvent(s);window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&setTimeout((()=>{document.dispatchEvent(new CustomEvent("MemoriEndSpeak"))}),300)};let EU,AU,TU,IU,MU,RU;window.getMemoriState=e=>{var t,n,r,i,o;let s=e?document.querySelector(`.memori-widget[data-memori-integration="${e}"]`)||(null===(n=null===(t=document.querySelector("memori-client"))||void 0===t?void 0:t.shadowRoot)||void 0===n?void 0:n.querySelector(".memori-widget[data-memori-integration]")):document.querySelector(".memori-widget")||(null===(i=null===(r=document.querySelector("memori-client"))||void 0===r?void 0:r.shadowRoot)||void 0===i?void 0:i.querySelector(".memori-widget"));if(!s)return null;let a=null===(o=s.dataset)||void 0===o?void 0:o.memoriEngineState;return a?JSON.parse(a):null},window.typeMessage=CU,window.typeMessageHidden=(e,t=!0,n,r=!1,i=!1)=>CU(e,t,!0,n,r,i),window.typeBatchMessages=e=>{function t(){var e,t,n,r;null===(e=document.querySelector("fieldset#chat-fieldset"))||void 0===e||e.setAttribute("disabled","");const i="opacity: 0.5; touch-action: none; pointer-events: none;";null===(t=document.querySelector("textarea.memori-chat-textarea--input"))||void 0===t||t.setAttribute("style",i),null===(n=document.querySelector("button.memori-chat-inputs--send"))||void 0===n||n.setAttribute("style",i),null===(r=document.querySelector("button.memori-chat-inputs--mic"))||void 0===r||r.setAttribute("style",i)}function n(){var e,t,n,r;null===(e=document.querySelector("fieldset#chat-fieldset"))||void 0===e||e.removeAttribute("disabled"),null===(t=document.querySelector("textarea.memori-chat-textarea--input"))||void 0===t||t.removeAttribute("style"),null===(n=document.querySelector("button.memori-chat-inputs--send"))||void 0===n||n.removeAttribute("style"),null===(r=document.querySelector("button.memori-chat-inputs--mic"))||void 0===r||r.removeAttribute("style")}function r(){var e;return!!(null===(e=document.querySelector("fieldset#chat-fieldset"))||void 0===e?void 0:e.hasAttribute("disabled"))}const i=window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&/iPad|iPhone|iPod/.test(navigator.userAgent),o=function*(){yield*e}();t();const s=()=>{const e=o.next(),a=e.value;if(a){r()||t();let o=a.waitForPrevious;i&&(o=!1),CU(a.message,o,a.hidden,a.typingText,a.useLoaderTextAsMsg,!e.done),i&&setTimeout((()=>{document.dispatchEvent(new CustomEvent("MemoriEndSpeak")),n()}),3e3)}else r()&&n();if(e.done)return document.removeEventListener("MemoriEndSpeak",s),void(r()&&n())};document.addEventListener("MemoriEndSpeak",s),s()};let PU,NU=!1,OU=!1;var kU=({memori:e,memoriConfigs:n,ownerUserID:r,ownerUserName:i,tenantID:o,memoriLang:a,multilingual:l,integration:u,layout:d="DEFAULT",customLayout:h,showInstruct:p=!1,showShare:m,preview:f=!1,embed:g=!1,showCopyButton:v=!0,showTranslationOriginal:y=!1,showInputs:_=!0,showDates:S=!1,showContextPerLine:b=!1,showSettings:x=!0,showTypingText:w=!1,showClear:C=!1,showLogin:E=!1,showOnlyLastMessages:A,height:T="100vh",secret:I,baseUrl:M="https://aisuru.com",apiURL:R="https://backend.memori.ai",engineURL:P="https://engine.memori.ai",initialContextVars:N,initialQuestion:O,ogImage:k,sessionID:D,tenant:L,personification:B,authToken:z,AZURE_COGNITIVE_SERVICES_TTS_KEY:F,enableAudio:U,defaultSpeakerActive:j=!0,disableTextEnteredEvents:G=!1,onStateChange:H,additionalInfo:V,additionalSettings:W,customMediaRenderer:q,userAvatar:J,useMathFormatting:K=!1})=>{var Y,X,Q,Z,ee,te,ne,re,ie,oe,se,ae,le,ce,ue,de,he,pe,me,fe,ge,ve,ye,_e,Se,be;const{t:we,i18n:Ce}=xe(),[Ee,Ae]=(0,c.useState)(!1);(0,c.useEffect)((()=>{Ae(!0)}),[]);const Te=$(R,P),{initSession:Ie,postTextEnteredEvent:Me,postPlaceChangedEvent:Re,postDateChangedEvent:Pe,postTimeoutEvent:Ne,postTagChangedEvent:Oe,getSession:ke,getExpertReferences:De,getSessionChatLogs:Le}=Te,[Be,ze]=(0,c.useState)(!1),[Fe,Ue]=(0,c.useState)(!0),[je,Ge]=(0,c.useState)(null!==(Y=null==V?void 0:V.loginToken)&&void 0!==Y?Y:z),[He,Ve]=(0,c.useState)({avatarURL:"string"==typeof J?J:void 0});(0,c.useEffect)((()=>{je&&!(null==He?void 0:He.userID)&&E&&Te.backend.getCurrentUser(je).then((({user:e,resultCode:t})=>{e&&0===t?(Ve(e),MB("loginToken",je),e.birthDate&&(hn(e.birthDate),MB("birthDate",e.birthDate))):RB("loginToken")}))}),[je,null==He?void 0:He.userID]);const[We,qe]=(0,c.useState)(!1),[Je,Ke]=(0,c.useState)(!1),[Ye,Xe]=(0,c.useState)(!1),$e=(null===(Z=null===(Q=null===(X=e.culture)||void 0===X?void 0:X.split("-"))||void 0===Q?void 0:Q[0])||void 0===Z?void 0:Z.toUpperCase())||(null===(re=null===(ne=null===(te=null===(ee=null==n?void 0:n.find((t=>t.memoriConfigID===e.memoriConfigurationID)))||void 0===ee?void 0:ee.culture)||void 0===te?void 0:te.split("-"))||void 0===ne?void 0:ne[0])||void 0===re?void 0:re.toUpperCase()),Qe=(null==u?void 0:u.customData)?JSON.parse(u.customData):null,Ze=void 0!==l?l:!!(null==Qe?void 0:Qe.multilanguage),et=null==Qe?void 0:Qe.forcedTimeout,[tt,nt]=(0,c.useState)(null!==(ae=null!==(se=null!==(oe=null!==(ie=null!=a?a:null==Qe?void 0:Qe.lang)&&void 0!==ie?ie:$e)&&void 0!==oe?oe:null==Qe?void 0:Qe.uiLang)&&void 0!==se?se:Ce.language)&&void 0!==ae?ae:"IT"),rt=void 0!==K?K:!!(null==Qe?void 0:Qe.useMathFormatting);(0,c.useEffect)((()=>{rt&&mR()}),[rt]),(0,c.useEffect)((()=>{Ze&&tt&&iO.includes(tt.toLowerCase())&&Ce.changeLanguage(tt.toLowerCase())}),[tt]);const[it,ot]=(0,c.useState)(!1),[st,at]=(0,c.useState)(!1),[lt,ct]=(0,c.useState)(),ut=d||(null==Qe?void 0:Qe.layout)||"DEFAULT",dt=null!==(le=null!=U?U:null==Qe?void 0:Qe.enableAudio)&&void 0!==le&&le,[ht,pt]=(0,c.useState)(!1),[mt,ft]=(0,c.useState)(!1),[gt,vt]=(0,c.useState)(!1),[yt,_t]=(0,c.useState)(!1),[St,bt]=(0,c.useState)(!1),[xt,wt]=(0,c.useState)(!1),[Ct,Et]=(0,c.useState)(!dt||!j),[At,Tt]=(0,c.useState)(!1),[It,Mt]=(0,c.useState)(2),[Rt,Pt]=(0,c.useState)(!1),[Nt,Ot]=(0,c.useState)("center"),[kt,Dt]=(0,c.useState)(!1),[Lt,Bt]=(0,c.useState)(null),[zt,Ft]=(0,c.useState)(!1),{startProcessing:Ut,setAudioContext:jt,addViseme:Gt,stopProcessing:Ht,resetVisemeQueue:Vt}=Mz();(0,c.useEffect)((()=>{Pt(!!TU),OU=!!TU}),[TU]),(0,c.useEffect)((()=>{let e="bottom",t=IB("microphoneMode","HOLD_TO_TALK");window.innerWidth<=768?(e="bottom",t="HOLD_TO_TALK"):e=window.matchMedia("(orientation: portrait)").matches||window.innerHeight>window.innerWidth?"center":"bottom",Et(IB("muteSpeaker",!dt||!j)),NU=IB("muteSpeaker",!dt||!j),Tt("CONTINUOUS"===t),Mt(IB("continuousSpeechTimeout",2)),Ot(IB("controlsPosition",e)),Bt(IB("avatarType","avatar3d")),Ft(IB("hideEmissions",!1)),(null==V?void 0:V.loginToken)||z||(Ge(IB("loginToken",void 0)),PU=IB("loginToken",void 0),hn(IB("birthDate",void 0)))}),[]);const[Wt,qt]=(0,c.useState)(I),[Jt,Kt]=(0,c.useState)(),[Yt,Xt]=(0,c.useState)(null),[$t,Qt]=(0,c.useState)(),Zt=async(e,t)=>{var n;const r=null!=t?t:fn;if(e&&r){const{currentState:t,...i}=await Re({sessionId:r,placeName:e.placeName,latitude:e.latitude,longitude:e.longitude,uncertaintyKm:null!==(n=e.uncertainty)&&void 0!==n?n:0});t&&0===i.resultCode&&yn((e=>{var n;return{...e,...t,hints:(null===(n=t.hints)||void 0===n?void 0:n.length)?t.hints:null==e?void 0:e.hints}}))}};(0,c.useEffect)((()=>{const e=IB("position",void 0);e&&Qt(e)}),[]);const[en,tn]=(0,c.useState)(""),[nn,rn]=(0,c.useState)(!1),[on,sn]=(0,c.useState)([]),an=e=>{sn((t=>{var n,r;return[...t,{...e,media:null!==(r=null===(n=e.media)||void 0===n?void 0:n.filter((e=>{var t;return!("text/javascript"===e.mimeType&&(null===(t=e.properties)||void 0===t?void 0:t.executable))})))&&void 0!==r?r:[]}]}))},ln=async(n,r,i,o=!0,s,a=!1,l,c=!1,u=!1)=>{var d,h,p,m;const f=i||fn||(null===(d=window.getMemoriState())||void 0===d?void 0:d.sessionID);if(!f||!(null==n?void 0:n.length))return;a||an({text:n,translatedText:s,fromUser:!0,media:null!=r?r:[],initial:fn?!!i&&i!==fn:!!i}),at(!0),ct(l);let g=n,v=!1;try{if(!a&&o&&!Be&&Ze&&tt.toUpperCase()!==$e.toUpperCase()){g=(await vO(n,$e,tt,M)).text}const{currentState:i,...s}=await Me({sessionId:f,text:g});if(0===s.resultCode&&i){const n=c&&l?l:null!==(h=i.emission)&&void 0!==h?h:null==vn?void 0:vn.emission;if("X4"===i.state&&e.giverTag){const{currentState:r,...i}=await Oe(f,e.giverTag);0===i.resultCode?(_n(r),n&&(an({text:n,emitter:r.emitter,media:r.media,fromUser:!1,questionAnswered:g,contextVars:r.contextVars,date:r.currentDate,placeName:r.currentPlaceName,placeLatitude:r.currentLatitude,placeLongitude:r.currentLongitude,placeUncertaintyKm:r.currentUncertaintyKm,tag:r.currentTag,memoryTags:r.memoryTags}),Bn(n))):(console.error(s,i),t(Qu).error(we(nO(i.resultCode))),v=!0)}else if("X2d"===i.state&&e.giverTag){const{currentState:r,...i}=await Me({sessionId:f,text:Math.random().toString().substring(2,8)});if(0===i.resultCode){const{currentState:r,...i}=await Oe(f,e.giverTag);0===i.resultCode?(_n(r),n&&(an({text:n,emitter:r.emitter,media:r.media,fromUser:!1,questionAnswered:g,contextVars:r.contextVars,date:r.currentDate,placeName:r.currentPlaceName,placeLatitude:r.currentLatitude,placeLongitude:r.currentLongitude,placeUncertaintyKm:r.currentUncertaintyKm,tag:r.currentTag,memoryTags:r.memoryTags}),Bn(n))):(console.error(s,i),t(Qu).error(we(nO(i.resultCode))),v=!0)}else console.error(s,i),t(Qu).error(we(nO(i.resultCode))),v=!0}else tt.toLowerCase()!==$e.toLowerCase()&&n&&!Be&&Ze?cn(i,tt,g).then((e=>{let t=e.translatedEmission||e.emission;t&&Bn(t)})):(_n({...i,emission:n}),n&&(an({text:n,emitter:i.emitter,media:i.media,fromUser:!1,questionAnswered:g,generatedByAI:!!i.completion,contextVars:i.contextVars,date:i.currentDate,placeName:i.currentPlaceName,placeLatitude:i.currentLatitude,placeLongitude:i.currentLongitude,placeUncertaintyKm:i.currentUncertaintyKm,tag:i.currentTag,memoryTags:i.memoryTags}),Bn(n)))}else 404===s.resultCode&&(sn((e=>[...e.slice(0,e.length-1)])),bn(!1,Wt||e.secretToken,Jt,Be&&e.giverTag?e.giverTag:void 0,Be&&e.giverPIN?e.giverPIN:void 0,{PATHNAME:window.location.pathname,ROUTE:(null===(m=null===(p=window.location.pathname)||void 0===p?void 0:p.split("/"))||void 0===m?void 0:m.pop())||"",...N||{}},O).then((e=>{console.info("session timeout"),(null==e?void 0:e.sessionID)&&setTimeout((()=>{ln(n,r,null==e?void 0:e.sessionID)}),500)})))}catch(e){console.error(e),v=!0,ct(void 0),at(!1)}u||(ct(void 0),at(!1))},cn=async(e,t,n)=>{var r,i,o;const s=null!==(r=e.emission)&&void 0!==r?r:null==vn?void 0:vn.emission;let a={...e},l=null;if(s&&!Be&&$e.toUpperCase()!==t.toUpperCase()&&Ze)try{const r=await vO(s,t,$e,M);if(e.hints&&e.hints.length>0){const n=await Promise.all((null!==(i=e.hints)&&void 0!==i?i:[]).map((async e=>{var n;const r=await vO(e,t,$e,M);return{text:null!==(n=null==r?void 0:r.text)&&void 0!==n?n:e,originalText:e}})));a={...e,emission:r.text,translatedHints:n}}else a={...e,emission:s,translatedEmission:r.text,hints:null!==(o=e.hints)&&void 0!==o?o:"G1"===e.state?null==vn?void 0:vn.hints:[]};r.text.length>0&&(l={text:s,translatedText:r.text,emitter:e.emitter,media:e.media,fromUser:!1,questionAnswered:n,generatedByAI:!!e.completion,contextVars:e.contextVars,date:e.currentDate,placeName:e.currentPlaceName,placeLatitude:e.currentLatitude,placeLongitude:e.currentLongitude,placeUncertaintyKm:e.currentUncertaintyKm,tag:e.currentTag,memoryTags:e.memoryTags})}catch(t){console.error(t),a={...e,emission:s},l={text:s,emitter:e.emitter,media:e.media,fromUser:!1,questionAnswered:n,contextVars:e.contextVars,date:e.currentDate,placeName:e.currentPlaceName,placeLatitude:e.currentLatitude,placeLongitude:e.currentLongitude,placeUncertaintyKm:e.currentUncertaintyKm,tag:e.currentTag,memoryTags:e.memoryTags}}else a={...e,emission:s},s&&(l={text:s,emitter:e.emitter,media:e.media,fromUser:!1,questionAnswered:n,contextVars:e.contextVars,date:e.currentDate,placeName:e.currentPlaceName,placeLatitude:e.currentLatitude,placeLongitude:e.currentLongitude,placeUncertaintyKm:e.currentUncertaintyKm,tag:e.currentTag,memoryTags:e.memoryTags});return _n(a),l&&an(l),a},un=void 0!==e.ageRestriction?e.ageRestriction:e.nsfw?18:e.enableCompletions?14:0,[dn,hn]=(0,c.useState)(),[pn,mn]=(0,c.useState)(!1),[fn,gn]=(0,c.useState)(D),[vn,yn]=(0,c.useState)(),_n=e=>{var t;yn(e),H&&H(e);const n=new CustomEvent("MemoriNewDialogState",{detail:e});document.dispatchEvent(n);const r=null===(t=null==e?void 0:e.media)||void 0===t?void 0:t.filter((e=>{var t;return"text/javascript"===e.mimeType&&!!(null===(t=e.properties)||void 0===t?void 0:t.executable)}));null==r||r.forEach((e=>{try{setTimeout((()=>{var t;console.log("snippet",e),new Function(null!==(t=e.content)&&void 0!==t?t:"")(),setTimeout((()=>{var e,t,n;null===(e=document.querySelector(".memori-chat--content"))||void 0===e||e.scrollTo(0,null!==(n=null===(t=document.querySelector(".memori-chat--content"))||void 0===t?void 0:t.scrollHeight)&&void 0!==n?n:0)}),400)}),1e3)}catch(e){console.warn(e)}}))},Sn=async n=>{var r,i,o,s,a;if(dn||!un)if("PUBLIC"===e.privacyType||e.secretToken||Wt||Jt){ot(!0);try{if(!e.giverTag&&(null===(r=e.receivedInvitations)||void 0===r?void 0:r.length)){let t=e.receivedInvitations.find((e=>"GIVER"===e.type&&"ACCEPTED"===e.state));t&&(e.giverTag=t.tag,e.giverPIN=t.pin)}let l;try{l=window.location.href}catch(e){console.debug(e)}const c=await Ie({...n,tag:null!==(i=n.tag)&&void 0!==i?i:null==B?void 0:B.tag,pin:null!==(o=n.pin)&&void 0!==o?o:null==B?void 0:B.pin,additionalInfo:{...V||{},loginToken:null!==(a=null!==(s=null!=PU?PU:je)&&void 0!==s?s:null==V?void 0:V.loginToken)&&void 0!==a?a:z,language:Nn(tt),referral:l,timeZoneOffset:(new Date).getTimezoneOffset().toString()}});if((null==c?void 0:c.sessionID)&&(null==c?void 0:c.currentState)&&0===c.resultCode)return gn(c.sessionID),$t&&Zt($t,c.sessionID),ot(!1),{dialogState:c.currentState,sessionID:c.sessionID};(null==c?void 0:c.resultMessage.startsWith("This Memori is aged restricted"))?(console.warn(c),t(Qu).error(we("underageTwinSession",{age:un})),Xe(!0)):403===(null==c?void 0:c.resultCode)?(qt(void 0),Xt("password")):(console.warn(c),t(Qu).error(we(nO(null==c?void 0:c.resultCode))),Xe(!0))}catch(e){throw console.error(e),t(Qu).error(we("errorFetchingSession")),new Error("Error fetching session")}}else Xt("password");else mn(!0)},bn=async(n=!1,r,i,o,s,a,l,c)=>{var u,d,h,p,m;ot(!0);try{if(!c&&un)return void mn(!0);if(!("PUBLIC"===e.privacyType||r||e.secretToken||Wt||i||Jt))return void Xt("password");let f;try{f=window.location.href}catch(e){throw console.debug(e),t(Qu).error(we("errorGettingReferralURL")),new Error("Error getting referral URL")}const{sessionID:g,currentState:v,...y}=await Ie({memoriID:null!==(u=e.engineMemoriID)&&void 0!==u?u:"",password:r||Wt||e.secretToken,recoveryTokens:i||Jt,tag:o,pin:s,initialContextVars:{PATHNAME:window.location.pathname,ROUTE:(null===(h=null===(d=window.location.pathname)||void 0===d?void 0:d.split("/"))||void 0===h?void 0:h.pop())||"",...a||{}},initialQuestion:l,birthDate:c||void 0,additionalInfo:{...V||{},loginToken:null!==(m=null!==(p=null!=PU?PU:je)&&void 0!==p?p:null==V?void 0:V.loginToken)&&void 0!==m?m:z,language:Nn(tt),referral:f,timeZoneOffset:(new Date).getTimezoneOffset().toString()}});if(g&&v&&0===y.resultCode)return gn(g),n&&(_n(v),v.emission&&(on.length<=1?sn([{text:v.emission,emitter:v.emitter,media:v.media,fromUser:!1,initial:!0,contextVars:v.contextVars,date:v.currentDate,placeName:v.currentPlaceName,placeLatitude:v.currentLatitude,placeLongitude:v.currentLongitude,placeUncertaintyKm:v.currentUncertaintyKm,tag:v.currentTag,memoryTags:v.memoryTags}]):an({text:v.emission,emitter:v.emitter,media:v.media,fromUser:!1,initial:!0,contextVars:v.contextVars,date:v.currentDate,placeName:v.currentPlaceName,placeLatitude:v.currentLatitude,placeLongitude:v.currentLongitude,placeUncertaintyKm:v.currentUncertaintyKm,tag:v.currentTag,memoryTags:v.memoryTags}))),$t&&Zt($t,g),e.needsDateTime&&wn({sessionID:g,state:v}),ot(!1),{dialogState:v,sessionID:g};(null==y?void 0:y.resultMessage.startsWith("This Memori is aged restricted"))?(console.error(y),t(Qu).error(we("underageTwinSession",{age:un})),Xe(!0)):403===(null==y?void 0:y.resultCode)?(qt(void 0),Xt("password")):(console.error(y),t(Qu).error(we(nO(y.resultCode))),Xe(!0))}catch(e){throw console.error(e),t(Qu).error(we("errorReopeningSession")),new Error("Error reopening session")}return ot(!1),null},xn=async(t,n,r,i)=>{var o,s,a,l,c;if(!t||!n)return console.error("CHANGETAG/Session not found"),Promise.reject("Session not found");try{const{currentState:t,resultCode:u}=await Oe(n,null!=r?r:sO);if(0===u){let d=0;if(r!==sO&&i&&("X1a"===t.state||"X1b"===t.state)){const{resultCode:e}=await Me({sessionId:n,text:null!=i?i:""});d=e}if(0===d){const{currentState:e,...t}=await ke(n);if(0===t.resultCode&&e)return{currentState:e,sessionId:n,...t}}else if([400,401,403,404,500].includes(u)){console.warn("[APPCONTEXT/CHANGETAG]",u);let t,n=IB("birthDate",void 0);try{t=window.location.href}catch(e){console.debug(e)}Sn({memoriID:null!==(o=e.engineMemoriID)&&void 0!==o?o:"",password:I||Wt||e.secretToken,tag:e.giverTag,pin:e.giverPIN,initialContextVars:{PATHNAME:window.location.pathname,ROUTE:(null===(a=null===(s=window.location.pathname)||void 0===s?void 0:s.split("/"))||void 0===a?void 0:a.pop())||"",...N||{}},initialQuestion:O,birthDate:dn||n||void 0,additionalInfo:{...V||{},loginToken:null!==(c=null!==(l=null!=PU?PU:je)&&void 0!==l?l:null==V?void 0:V.loginToken)&&void 0!==c?c:z,language:Nn(tt),referral:t,timeZoneOffset:(new Date).getTimezoneOffset().toString()}})}else if(t)return{currentState:t,sessionId:n,resultCode:u}}}catch(e){let t=e;return console.warn("[APPCONTEXT/CHANGETAG]",t),Promise.reject(t)}return null};(0,c.useEffect)((()=>()=>{vn&&(null==vn?void 0:vn.currentTag)===e.giverTag||(async()=>{fn&&e.giverTag&&e.giverPIN&&(sn([]),await xn(e.engineMemoriID,fn,e.giverTag,e.giverPIN))})()}),[]);const wn=(0,c.useCallback)((async({sessionID:t,date:n,state:r})=>{var i;const o=null!=t?t:fn,s=null!=r?r:vn;if(!o||!e.needsDateTime||(null===(i=null==s?void 0:s.hints)||void 0===i?void 0:i.length))return;const a=(n?ws.DateTime.fromISO(n):ws.DateTime.now()).toUTC().toFormat("yyyy/MM/dd HH:mm:ss ZZ").split(":").slice(0,-1).join(":"),{currentState:l,...c}=await Pe(o,a);0===c.resultCode&&l&&yn((e=>{var t;return{...e,...l,hints:(null===(t=l.hints)||void 0===t?void 0:t.length)?l.hints:null==e?void 0:e.hints}}))}),[vn,e.needsDateTime,fn]);(0,c.useEffect)((()=>{if(fn&&e.needsDateTime){wn({sessionID:fn,state:vn});let e=setInterval((()=>{wn({sessionID:fn})}),6e4);return()=>{clearInterval(e)}}}),[e.needsDateTime,fn]);const[Cn,En]=(0,c.useState)(),An=(0,c.useRef)(),Tn=()=>{Cn&&(clearTimeout(Cn),En(void 0)),(null==An?void 0:An.current)&&(clearTimeout(An.current),An.current=void 0)},In=()=>{Tn(),Rt||en.length||st||nn||Rn()},Mn=async()=>{var e;if(!ht||Rt||en.length||st||nn)In();else if(fn&&ht&&(null==vn?void 0:vn.acceptsTimeout)){const{currentState:t,...n}=await Ne(fn);if(0===n.resultCode&&t){const n=t.emission;if(!Be&&Ze&&tt!==(null==Ce?void 0:Ce.language)&&n&&n.length>0)cn({...t,emission:n},tt).then((e=>{let t=e.translatedEmission||e.emission;t&&Bn(t)}));else{if(!(n&&n.length>0))return void In();an({text:n,emitter:t.emitter,media:t.media,fromUser:!1,generatedByAI:!!t.completion,contextVars:t.contextVars,date:t.currentDate,placeName:t.currentPlaceName,placeLatitude:t.currentLatitude,placeLongitude:t.currentLongitude,placeUncertaintyKm:t.currentUncertaintyKm,tag:t.currentTag,memoryTags:t.memoryTags}),Bn(n),_n({...t,hints:null!==(e=t.hints)&&void 0!==e?e:"G1"===t.state?null==vn?void 0:vn.hints:[]})}}}},Rn=()=>{let e=null==vn?void 0:vn.timeout;if(!e){let t=40,n=25;if(e=Math.floor(Math.random()*(t-n))+n,null==vn?void 0:vn.emission){e+=vn.emission.length/26.5}}if(et&&(e=et,null==vn?void 0:vn.emission)){e+=vn.emission.length/26.5}let t=setTimeout(Mn,1e3*e);En(t),An.current=t};(0,c.useEffect)((()=>{(en.length||Rt||st)&&Tn(),fn&&!en.length&&In()}),[null==vn?void 0:vn.acceptsTimeout,null==vn?void 0:vn.timeout,null==vn?void 0:vn.state,Rt,fn,on,en,st,ht]),(0,c.useEffect)((()=>()=>{pt(!1),Ke(!1),Tn(),An.current=void 0}),[]);const Pn=(0,c.useCallback)((t=>{var n,r,i,o;let s="",a=(null!==(o=null!==(i=null!=t?t:null===(r=null===(n=e.culture)||void 0===n?void 0:n.split("-"))||void 0===r?void 0:r[0])&&void 0!==i?i:Ce.language)&&void 0!==o?o:"IT").toUpperCase(),l=e.voiceType;if(e.enableBoardOfExperts&&(null==vn?void 0:vn.emitter)){null==fr||fr.find((e=>e.name===(null==vn?void 0:vn.emitter)))}switch(a){case"IT":s=""+("MALE"===l?"it-IT-DiegoNeural":"it-IT-ElsaNeural");break;case"DE":s=""+("MALE"===l?"de-DE-ConradNeural":"de-DE-KatjaNeural");break;case"EN":s=""+("MALE"===l?"en-GB-RyanNeural":"en-GB-SoniaNeural");break;case"ES":s=""+("MALE"===l?"es-ES-AlvaroNeural":"es-ES-ElviraNeural");break;case"FR":s=""+("MALE"===l?"fr-FR-HenriNeural":"fr-FR-DeniseNeural");break;case"PT":s=""+("MALE"===l?"pt-PT-DuarteNeural":"pt-PT-RaquelNeural");break;case"UK":s=""+("MALE"===l?"uk-UA-OstapNeural":"uk-UA-PolinaNeural");break;case"RU":s=""+("MALE"===l?"ru-RU-DmitryNeural":"ru-RU-SvetlanaNeural");break;case"PL":s=""+("MALE"===l?"pl-PL-MarekNeural":"pl-PL-AgnieszkaNeural");break;case"FI":s=""+("MALE"===l?"fi-FI-HarriNeural":"fi-FI-SelmaNeural");break;case"EL":s=""+("MALE"===l?"el-GR-NestorasNeural":"el-GR-AthinaNeural");break;case"AR":s=""+("MALE"===l?"ar-SA-HamedNeural":"ar-SA-ZariyahNeural");break;case"ZH":s=""+("MALE"===l?"zh-CN-YunxiNeural":"zh-CN-XiaoxiaoNeural");break;case"JA":s=""+("MALE"===l?"ja-JP-KeitaNeural":"ja-JP-NanamiNeural");break;default:s=""+("MALE"===l?"it-IT-DiegoNeural":"it-IT-IsabellaNeural")}return s}),[e.voiceType,e.enableBoardOfExperts,null==vn?void 0:vn.emitter,Ce.language,e.culture]),Nn=t=>{var n,r;let i="";switch((t||(null===(r=null===(n=e.culture)||void 0===n?void 0:n.split("-"))||void 0===r?void 0:r[0])||Ce.language||"IT").toUpperCase()){case"IT":default:i="it-IT";break;case"DE":i="de-DE";break;case"EN":i="en-GB";break;case"ES":i="es-ES";break;case"FR":i="fr-FR";break;case"PT":i="pt-PT";break;case"UK":i="uk-UK";break;case"RU":i="ru-RU";break;case"PL":i="pl-PL";break;case"FI":i="fi-FI";break;case"EL":i="el-GR";break;case"AR":i="ar-SA";break;case"ZH":i="zh-CN";break;case"JA":i="ja-JP"}return i},[On,kn]=(0,c.useState)();(0,c.useEffect)((()=>{(async()=>{try{const e=await fetch(`${M||"https://aisuru.com"}/api/lexiconmap`);return await e.json()}catch(e){console.error(e)}})().then((e=>{kn(e)}))}),[]);const Dn=(e,t)=>{var n;if(!On)return e;const r={...null!==(n=On.common)&&void 0!==n?n:{},...(null==L?void 0:L.id)&&On[L.id]?On[L.id]:{}},i=Object.keys(r).map((e=>{var n;return{word:e,phoneme:null!==(n=r[e][t.toLowerCase()])&&void 0!==n?n:r[e].default,caseSensitive:r[e].caseSensitive}}));return i.reduce(((e,{word:t,phoneme:n,caseSensitive:r})=>e.replace(new RegExp(`\\b${t}\\b`,r?"g":"gi"),`<phoneme alphabet="ipa" ph="${n}">${t}</phoneme>`)),e)},Ln=()=>{const e=new CustomEvent("MemoriEndSpeak");document.dispatchEvent(e)},Bn=e=>{if(!F||f)return void Ln();if(Yn(),f)return;if(Ct||NU)return OU=!1,at(!1),Ln(),void(At&&qn());IU&&IU.pause();let t=window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome"),n=/iPad|iPhone|iPod/.test(navigator.userAgent);if("interrupted"===MU.state)return void MU.resume().then((()=>Bn(e)));if("closed"===MU.state){MU=new Yo;let e=MU.createBuffer(1,1e4,22050),t=MU.createBufferSource();t.buffer=e,t.connect(MU.destination)}else if("suspended"===MU.state){Un(),MU=new Yo;let e=MU.createBuffer(1,1e4,22050),t=MU.createBufferSource();t.buffer=e,t.connect(MU.destination)}if(!TU){n||(IU=new _s.SpeakerAudioDestination);let e=_s.AudioConfig.fromSpeakerOutput(IU);TU=new _s.SpeechSynthesizer(AU,e)}const r=MU.createBufferSource();r.addEventListener("ended",(()=>{Pt(!1),OU=!1})),IU.onAudioEnd=()=>{Pt(!1),OU=!1,r.disconnect(),Ln(),er()},Vt(),TU.visemeReceived=function(e,t){Gt(t.visemeId,t.audioOffset)};const i=dR(lR(aR(uR(cR(e)))));TU.speakSsmlAsync(`<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xmlns:mstts="https://www.w3.org/2001/mstts" xmlns:emo="http://www.w3.org/2009/10/emotionml" xml:lang="${Nn(tt)}"><voice name="${Pn(tt)}"><s>${Dn(i,tt.toLowerCase())}</s></voice></speak>`,(i=>{if(i){Pt(!0),OU=!0,Ut(MU);try{MU.decodeAudioData(i.audioData,(function(e){r.buffer=e,r.connect(MU.destination),(on.length<1||t&&n)&&r.start(0)})),MU.onstatechange=()=>{"suspended"===MU.state||"closed"===MU.state?(r.disconnect(),Pt(!1),Ht(),Vt(),OU=!1):"interrupted"===MU.state&&MU.resume()},MU.resume(),TU&&(TU.close(),TU=null)}catch(t){console.error("Error processing audio data:",t),zn(e)}}else zn(e)}),(t=>{console.error("Speak error:",t),zn(e)})),at(!1)},zn=e=>{console.log("Falling back to browser speech synthesis"),window.speechSynthesis.speak(new SpeechSynthesisUtterance(e)),Fn()},Fn=()=>{Pt(!1),Ht(),Vt(),OU=!1,TU&&(console.log("Closing speech synthesizer"),TU.close(),TU=null),Ln()},Un=()=>{Pt(!1),OU=!1;try{TU&&(TU.close(),TU=null),"closed"!==MU.state&&MU.close(),IU&&(IU.pause(),IU.close())}catch(e){console.debug("stopAudio error: ",e)}};(0,c.useEffect)((()=>{"TOTEM"!==ut&&(()=>{let e=document.querySelector("#chat-fieldset textarea");e&&Fe?e.focus():null==e||e.blur()})()}),[null==vn?void 0:vn.emission]);const[jn,Gn]=(0,c.useState)(""),Hn=()=>Gn(""),[Vn,Wn]=(0,c.useState)(null),qn=()=>{let e=setTimeout((async()=>{Xn();const e=sR(jn);e.length>0&&nn?(ln(e),Hn(),tn("")):nn&&In()}),1e3*It);Wn(e)},Jn=()=>{Vn&&(clearTimeout(Vn),Wn(null))};(0,c.useEffect)((()=>{Jn(),At&&qn(),In()}),[jn]);const Kn=async()=>{if(F){Xn(),Gn(""),Hn(),eR()&&Ue(!1);try{navigator.mediaDevices.getUserMedia({audio:!0}).then((function(e){ft(!0),AU||(AU=_s.SpeechConfig.fromSubscription(F,"westeurope"),AU.speechRecognitionLanguage=Nn(tt),AU.speechSynthesisLanguage=Nn(tt),AU.speechSynthesisVoiceName=Pn(tt));const t=_s.AudioConfig.fromDefaultMicrophoneInput();EU=new _s.SpeechRecognizer(AU,t),rn(!0),EU.recognized=(e,t)=>{if(t.result.text)if(t.result.reason===_s.ResultReason.RecognizedSpeech){let e=t.result.text;if(Gn(e||""),(null==e?void 0:e.length)>0){const t=sR(e);t.length>0&&tn((e=>`${e} ${t}`))}}else t.result.reason===_s.ResultReason.NoMatch&&console.debug("NOMATCH: Speech could not be recognized.")},EU.canceled=(e,t)=>{t.reason===_s.CancellationReason.Error&&(console.debug(`"CANCELED: ErrorCode=${t.errorCode}`),console.debug(`"CANCELED: ErrorDetails=${t.errorDetails}`),console.debug("CANCELED: Did you set the speech resource key and region values?")),Yn()},EU.sessionStopped=(e,t)=>{Yn()},Hn(),EU.startContinuousRecognitionAsync()})).catch(console.debug)}catch(e){console.debug(e)}}},Yn=()=>{EU&&(EU.stopContinuousRecognitionAsync(),EU.close(),EU=null),rn(!1)},Xn=()=>{ft(!1),Yn(),Jn()},$n=()=>{try{Xn(),Tn(),Ke(!1),An.current=void 0,Un()}catch(e){console.log("Error: resetUIEffects",e)}};(0,c.useEffect)((()=>()=>{$n()}),[]),(0,c.useEffect)((()=>(document.addEventListener("MemoriResetUIEffects",$n),()=>{document.removeEventListener("MemoriResetUIEffects",$n)})),[]),(0,c.useEffect)((()=>{"Z0"===(null==vn?void 0:vn.state)&&Xn()}),[null==vn?void 0:vn.state]);const[Qn,Zn]=(0,c.useState)(!1),er=(0,c.useCallback)((e=>{Rt&&TU&&(TU.close(),TU=null),!At||!mt&&Qn||(Zn(!0),Kn())}),[At,mt]);(0,c.useEffect)((()=>{on.length>1&&!Rt&&At&&(mt||!Qn)?Kn():Rt&&nn&&Yn()}),[Rt]),(0,c.useEffect)((()=>{nn&&(Xn(),Hn(),tn(""),Kn())}),[$e]);const[tr,nr]=(0,c.useState)("keypress");(0,c.useEffect)((()=>{window.innerWidth<=768&&eR()?nr("click"):nr("keypress")}),[]);const[rr,ir]=(0,c.useState)(),or=null==Qe?void 0:Qe.globalBackground,sr=or?`url(${or})`:null,ar=u?{"--memori-chat-bubble-bg":"#fff",...Qe&&!p?{"--memori-text-color":null!==(ce=Qe.textColor)&&void 0!==ce?ce:"#000"}:{},...(null==Qe?void 0:Qe.buttonBgColor)?{"--memori-button-bg":Qe.buttonBgColor,"--memori-primary":Qe.buttonBgColor}:{},...(null==Qe?void 0:Qe.buttonTextColor)?{"--memori-button-text":Qe.buttonTextColor}:{},...(null==Qe?void 0:Qe.blurBackground)?{"--memori-blur-background":"5px"}:{"--memori-blur-background":"0px"},...(null==Qe?void 0:Qe.innerBgColor)?{"--memori-inner-bg":`rgba(${"dark"===Qe.innerBgColor?"0, 0, 0":"255, 255, 255"}, ${null!==(ue=Qe.innerBgAlpha)&&void 0!==ue?ue:.4})`,"--memori-inner-content-pad":"1.5rem","--memori-nav-bg-image":"none","--memori-nav-bg":`rgba(${"dark"===Qe.innerBgColor?"0, 0, 0":"255, 255, 255"}, ${null!==(de=null==Qe?void 0:Qe.innerBgAlpha)&&void 0!==de?de:.4})`}:{"--memori-inner-content-pad":"0px"}}:{},lr=`\n ${f?"#preview,":"WEBSITE_ASSISTANT"===ut?"":":root,"} .memori-widget, .memori-drawer, .memori-modal {\n ${Object.entries(ar).map((([e,t])=>`${e}: ${t};`)).join("\n")}\n }\n `,cr=void 0===(null==Qe?void 0:Qe.showAIicon)||(null==Qe?void 0:Qe.showAIicon),ur=void 0===(null==Qe?void 0:Qe.showWhyThisAnswer)||(null==Qe?void 0:Qe.showWhyThisAnswer),[dr,hr]=(0,c.useState)(!1);(0,c.useEffect)((()=>{(window.innerWidth>=768&&"FULLPAGE"===ut||"FULLPAGE"!==ut)&&hr(!0)}),[]),(0,c.useEffect)((()=>{if(null==Qe?void 0:Qe.seoTitle){let e=document.createElement("meta");e.setAttribute("property","og:title"),e.setAttribute("content",Qe.seoTitle),document.head.append(e)}if(null==Qe?void 0:Qe.seoDescription){let e=document.createElement("meta");e.setAttribute("property","og:description"),e.setAttribute("content",Qe.seoDescription),document.head.append(e)}if(null==Qe?void 0:Qe.seoUrl){let e=document.createElement("meta");e.setAttribute("property","og:url"),e.setAttribute("content",Qe.seoUrl),document.head.append(e)}let t=k||e.avatarURL;if((null==Qe?void 0:Qe.seoImageShowAvatar)&&t){let e=document.createElement("meta");e.setAttribute("property","og:image"),e.setAttribute("content",t),document.head.append(e)}}),[Qe,e.avatarURL,k]);const pr=(0,c.useCallback)((e=>{if(G)return;const{text:t,waitForPrevious:n,hidden:r,typingText:i,useLoaderTextAsMsg:o,hasBatchQueued:s}=e.detail;t&&(n&&!NU&&(OU||st)?setTimeout((()=>{pr(e)}),1e3):(Yn(),Un(),ln(t,void 0,void 0,void 0,void 0,r,i,o,s)))}),[fn,Rt,st,tt,G]);(0,c.useEffect)((()=>(G?document.removeEventListener("MemoriTextEntered",pr):document.addEventListener("MemoriTextEntered",pr),()=>{document.removeEventListener("MemoriTextEntered",pr)})),[fn,tt,G]);const mr=(0,c.useCallback)((async(t,n=!1)=>{var r,i,o,s,a,l,c,u,d,h,p,m,f,g,v,y,_,S,b;const x=(null==t?void 0:t.sessionID)||fn,w=(null==t?void 0:t.dialogState)||vn;Ke(!0);let C=document.getElementById("memori-audio"),E=window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome");C&&E&&(C.muted=!1,C.play().catch((e=>{console.warn("error playing intro audio",e)})));let A=IB("birthDate",void 0),T=dn||A||void 0;if(x||!un||T){if(!x&&"PUBLIC"!==e.privacyType&&!e.secretToken&&!Wt&&!Jt||!x&&Ye)return Xt("password"),void Ke(!1);if(!x||n){Ke(!1),Xe(!1);const t=await Sn({memoriID:e.engineMemoriID,password:I||Wt||e.secretToken,tag:null==B?void 0:B.tag,pin:null==B?void 0:B.pin,initialContextVars:{PATHNAME:null===(r=window.location.pathname)||void 0===r?void 0:r.toUpperCase(),ROUTE:(null===(s=null===(o=null===(i=window.location.pathname)||void 0===i?void 0:i.split("/"))||void 0===o?void 0:o.pop())||void 0===s?void 0:s.toUpperCase())||"",...N||{}},initialQuestion:O,birthDate:T,additionalInfo:{...V||{},loginToken:null!==(l=null!==(a=null!=PU?PU:je)&&void 0!==a?a:null==V?void 0:V.loginToken)&&void 0!==l?l:z,language:Nn(tt),timeZoneOffset:(new Date).getTimezoneOffset().toString()}});return void((null==t?void 0:t.dialogState)?(sn([]),cn(t.dialogState,tt).then((e=>{let t=e.translatedEmission||e.emission;t&&Bn(t)})).finally((()=>{pt(!0)}))):await mr(t||void 0))}if(D){const{currentState:t,...n}=await ke(x);if(0!==n.resultCode||!t)return console.debug("session expired, opening new session"),Xe(!0),gn(void 0),Ke(!1),void await mr(void 0,!0);if(sn([]),$t&&Zt($t,x),e.needsDateTime&&wn({sessionID:x,state:t}),Be&&e.giverTag&&(null==vn?void 0:vn.currentTag)!==e.giverTag)try{console.debug("change tag #0"),await xn(e.engineMemoriID,x,"-");const t=await xn(e.engineMemoriID,x,e.giverTag,e.giverPIN);if(!t||0!==t.resultCode)throw console.error("session #1",t),new Error("No session");cn(t.currentState,tt).then((e=>{let t=e.translatedEmission||e.emission;t&&Bn(t)})).finally((()=>{pt(!0)}))}catch(t){console.error("session #2",t),bn(!0,null==e?void 0:e.secretToken,void 0,null==e?void 0:e.giverTag,null==e?void 0:e.giverPIN,{PATHNAME:null===(c=window.location.pathname)||void 0===c?void 0:c.toUpperCase(),ROUTE:(null===(h=null===(d=null===(u=window.location.pathname)||void 0===u?void 0:u.split("/"))||void 0===d?void 0:d.pop())||void 0===h?void 0:h.toUpperCase())||"",...N||{}},O,T).then((()=>{pt(!0)}))}else if(!Be&&B&&(null==vn?void 0:vn.currentTag)!==B.tag)try{console.debug("change tag #3"),await xn(e.engineMemoriID,x,"-");const t=await xn(e.engineMemoriID,x,B.tag,B.pin);if(!t||0!==t.resultCode)throw console.error("session #4",t),new Error("No session");cn(t.currentState,tt).then((e=>{let t=e.translatedEmission||e.emission;t&&Bn(t)})).finally((()=>{pt(!0)}))}catch(t){console.error("session #5",t),bn(!0,null==e?void 0:e.secretToken,void 0,B.tag,B.pin,{PATHNAME:null===(p=window.location.pathname)||void 0===p?void 0:p.toUpperCase(),ROUTE:(null===(g=null===(f=null===(m=window.location.pathname)||void 0===m?void 0:m.split("/"))||void 0===f?void 0:f.pop())||void 0===g?void 0:g.toUpperCase())||"",...N||{}},O,T).then((()=>{pt(!0)}))}else if(Be||B||!(null==vn?void 0:vn.currentTag)||(null==vn?void 0:vn.currentTag)===sO||"-"===(null==vn?void 0:vn.currentTag)){try{const{chatLogs:e,...t}=await Le(x,x),n=null===(b=null==e?void 0:e[0])||void 0===b?void 0:b.lines.map(((e,t)=>{var n,r;return{text:e.text,media:null===(r=null===(n=e.media)||void 0===n?void 0:n.filter((e=>oO.includes(e.mimeType))))||void 0===r?void 0:r.map((e=>({mediumID:`${t}-${e.mimeType}`,...e}))),fromUser:e.inbound,timestamp:e.timestamp,emitter:e.emitter,initial:0===t}}));let r=n.slice(0,-1);if($e.toUpperCase()!==tt.toUpperCase()&&Ze)try{r=await Promise.all(n.map((async e=>({...e,originalText:e.text,text:(await vO(e.text,tt,$e,M)).text}))))}catch(e){console.log("Error translating messages",e)}sn(r)}catch(e){console.log("Error retrieving chat logs",e)}cn(t,tt).then((e=>{let t=e.translatedEmission||e.emission;t&&Bn(t)})).finally((()=>{pt(!0)}))}else try{console.debug("change tag #6"),await xn(e.engineMemoriID,x,"-");const t=await xn(e.engineMemoriID,x,sO);if(!t||0!==t.resultCode)throw console.error("session #7",t),new Error("No session");cn(t.currentState,tt).then((e=>{let t=e.translatedEmission||e.emission;t&&Bn(t)})).finally((()=>{pt(!0)}))}catch(t){console.error("session #8",t),bn(!0,null==e?void 0:e.secretToken,void 0,void 0,void 0,{PATHNAME:null===(v=window.location.pathname)||void 0===v?void 0:v.toUpperCase(),ROUTE:(null===(S=null===(_=null===(y=window.location.pathname)||void 0===y?void 0:y.split("/"))||void 0===_?void 0:_.pop())||void 0===S?void 0:S.toUpperCase())||"",...N||{}},O,T).then((()=>{pt(!0)}))}$t&&Zt($t,x),e.needsDateTime&&wn({sessionID:x,state:t})}else sn([]),cn(w,tt).then((e=>{let t=e.translatedEmission||e.emission;t&&Bn(t)})).finally((()=>{pt(!0)}))}else mn(!0),Ke(!1)}),[Wt,e,Jt,dn,fn,tt,$t]);(0,c.useEffect)((()=>{const t=document.querySelector(`memori-client[memoriname="${e.name}"]`)||document.querySelector(`memori-client[memoriid="${e.memoriID}"]`)||document.querySelector("memori-client");if(!t)return;const n=new MutationObserver(((e,t)=>{var n,r,i;for(const t of e)"attributes"===t.type&&"authtoken"===(null===(n=t.attributeName)||void 0===n?void 0:n.toLowerCase())&&("MEMORI-CLIENT"===t.target.nodeName?(Ge(t.target.getAttribute("authtoken")||void 0),PU=t.target.getAttribute("authtoken")||void 0):(Ge((null===(i=null===(r=t.target)||void 0===r?void 0:r.parentElement)||void 0===i?void 0:i.getAttribute("authtoken"))||void 0),PU=t.target.getAttribute("authtoken")||void 0))}));return n.observe(t,{attributes:!0,childList:!1,subtree:!1}),()=>{n.disconnect()}}),[]);const[fr,gr]=(0,c.useState)(),vr=(0,c.useCallback)((async()=>{if(fn&&(null==e?void 0:e.enableBoardOfExperts))try{const{experts:e,count:t,...n}=await De(fn);0===n.resultCode?gr(e):console.warn("Error fetching experts",n)}catch(e){console.warn(e)}}),[fn,null==e?void 0:e.enableBoardOfExperts]);(0,c.useEffect)((()=>{vr()}),[fn,vr]);const yr=e.enableDeepThought&&!!je&&!!(null==He?void 0:He.userID)&&(null==He?void 0:He.pAndCUAccepted),_r=null==L?void 0:L.billingDelegation,[Sr,br]=(0,c.useState)(!0),xr=(0,c.useCallback)((async()=>{if(null==L?void 0:L.billingDelegation)try{const e=await bU({operation:yr?"dt_session_creation":"session_creation",baseUrl:M,userID:r,userName:i,tenant:o});e.enough?br(!0):(br(!1),console.warn("Not enough credits. Required:",e.required))}catch(e){let t=e;console.debug(t)}}),[null==L?void 0:L.billingDelegation,yr]);(0,c.useEffect)((()=>{(null==L?void 0:L.billingDelegation)&&xr()}),[null==L?void 0:L.billingDelegation,yr]);const wr=void 0===A?"TOTEM"!==d&&"WEBSITE_ASSISTANT"!==d&&"HIDDEN_CHAT"!==d:!A,Cr={memori:e,tenant:L,history:on,showShare:null===(he=null!=m?m:null==Qe?void 0:Qe.showShare)||void 0===he||he,position:$t,setShowPositionDrawer:vt,setShowSettingsDrawer:_t,setShowKnownFactsDrawer:bt,setShowExpertsDrawer:wt,enableAudio:null===(pe=null!=U?U:null==Qe?void 0:Qe.enableAudio)||void 0===pe||pe,showSpeaker:!!F,speakerMuted:Ct||NU,setSpeakerMuted:e=>{if(NU=!!e,Et(e),MB("muteSpeaker",!!e),e)Un();else{MU=new Yo;let e=MU.createBuffer(1,1e4,22050),t=MU.createBufferSource();t.buffer=e,t.connect(MU.destination)}},showSettings:x,hasUserActivatedSpeak:ht,showReload:"TOTEM"===ut,showClear:C,clearHistory:()=>sn((e=>e.slice(-1))),showLogin:E,setShowLoginDrawer:qe,loginToken:je,user:He,sessionID:fn},Er={memori:e,integration:u,integrationConfig:Qe,tenant:L,instruct:Be,avatar3dVisible:dr,setAvatar3dVisible:hr,hasUserActivatedSpeak:ht,isPlayingAudio:Rt&&!Ct,loading:!!st,baseUrl:M,apiUrl:Te.constants.BACKEND_URL,enablePositionControls:kt,setEnablePositionControls:Dt,avatarType:Lt},Ar={memori:e,tenant:L,language:$e,userLang:tt,setUserLang:nt,baseUrl:M,apiUrl:Te.constants.BACKEND_URL,position:$t,openPositionDrawer:()=>vt(!0),integrationConfig:Qe,instruct:Be,sessionId:fn,clickedStart:Je,isMultilanguageEnabled:Ze,onClickStart:mr,initializeTTS:()=>{if(!F)return;AU=_s.SpeechConfig.fromSubscription(F,"westeurope"),AU.speechSynthesisLanguage=Nn(tt),AU.speechSynthesisVoiceName=Pn(tt),AU.speechRecognitionLanguage=Nn(tt),AU.setProperty("speechSynthesis.outputFormat","viseme"),eR()&&(AU.speechSynthesisOutputFormat=_s.SpeechSynthesisOutputFormat.Audio16Khz32KBitRateMonoMp3),MU=new Yo;let e=MU.createBuffer(1,1e4,22050),t=MU.createBufferSource();t.buffer=e,t.connect(MU.destination),IU=new _s.SpeakerAudioDestination;let n=_s.AudioConfig.fromSpeakerOutput(IU);TU=new _s.SpeechSynthesizer(AU,n)},isUserLoggedIn:!!je&&!!(null==He?void 0:He.userID),hasInitialSession:!!D,notEnoughCredits:_r&&!Sr,showLogin:E,setShowLoginDrawer:qe,user:He},Tr={memori:e,sessionID:fn||"",tenant:L,translateTo:Ze&&tt.toUpperCase()!==(null===(ye=null!==(ve=null!==(ge=null===(fe=null===(me=e.culture)||void 0===me?void 0:me.split("-"))||void 0===fe?void 0:fe[0])&&void 0!==ge?ge:Ce.language)&&void 0!==ve?ve:"IT")||void 0===ye?void 0:ye.toUpperCase())?tt:void 0,baseUrl:M,apiUrl:Te.constants.BACKEND_URL,layout:d,memoriTyping:st,typingText:lt,showTypingText:w,history:wr?on:on.slice(-2),authToken:null!==(Se=null!==(_e=null!=je?je:PU)&&void 0!==_e?_e:null==V?void 0:V.loginToken)&&void 0!==Se?Se:z,dialogState:vn,setDialogState:_n,pushMessage:an,simulateUserPrompt:(e,t)=>{Yn(),Un(),ln(e,void 0,void 0,!1,t)},showDates:S,showContextPerLine:b,showAIicon:cr,showWhyThisAnswer:ur,showCopyButton:v,showTranslationOriginal:y,client:Te,selectReceiverTag:async n=>{var r;if(fn)try{const{currentState:i,...o}=await Oe(fn,n);if(0===o.resultCode)if(an({text:n,fromUser:!0}),"X4"===i.state&&e.giverTag){const{currentState:n,...r}=await Te.postTagChangedEvent(fn,e.giverTag);0===r.resultCode?(_n(n),n.emission&&an({text:n.emission,emitter:n.emitter,media:n.media,fromUser:!1,contextVars:n.contextVars,date:n.currentDate,placeName:n.currentPlaceName,placeLatitude:n.currentLatitude,placeLongitude:n.currentLongitude,placeUncertaintyKm:n.currentUncertaintyKm,tag:n.currentTag,memoryTags:n.memoryTags})):(console.error(r),t(Qu).error(we(nO(r.resultCode))))}else _n(i),i.emission&&an({text:i.emission,emitter:i.emitter,media:i.media,fromUser:!1,contextVars:i.contextVars,date:i.currentDate,placeName:i.currentPlaceName,placeLatitude:i.currentLatitude,placeLongitude:i.currentLongitude,placeUncertaintyKm:i.currentUncertaintyKm,tag:i.currentTag,memoryTags:i.memoryTags});else console.error(o,n,null===(r=null==vn?void 0:vn.knownTags)||void 0===r?void 0:r[n]),t(Qu).error(we(nO(o.resultCode)))}catch(e){let n=e;console.error(n),t(Qu).error(n.message)}},preview:f,sendOnEnter:tr,setSendOnEnter:nr,microphoneMode:At?"CONTINUOUS":"HOLD_TO_TALK",attachmentsMenuOpen:rr,setAttachmentsMenuOpen:ir,instruct:Be,showInputs:_,showMicrophone:!!F,userMessage:en,onChangeUserMessage:e=>{if(!e||"\n"===e||""===e.trim())return tn(""),void In();tn(e),Tn()},sendMessage:(e,t)=>{Un(),Yn(),ln(e,t),tn(""),Hn()},stopListening:Xn,startListening:Kn,stopAudio:Un,resetTranscript:Hn,listening:nn,setEnableFocusChatInput:Ue,isPlayingAudio:Rt,customMediaRenderer:q,user:He,userAvatar:J,experts:fr,useMathFormatting:rt},Ir=u&&sr?(0,s.jsx)("div",{className:"memori--global-background",children:(0,s.jsx)("div",{className:"memori--global-background-image",style:{backgroundImage:sr}})}):(0,s.jsx)("div",{className:"memori--global-background no-background-image"}),Mr=u?(0,s.jsx)("style",{dangerouslySetInnerHTML:{__html:lr}}):null,Rr={canInstruct:!!e.giverTag,instruct:!!Be,onChangeMode:e=>{ze("instruct"===e),pt(!1),Ke(!1)}},Pr=(0,s.jsx)($F,{tenant:L,userLang:tt,integrationID:null==u?void 0:u.integrationID,memoriHash:`${e.ownerTenantName}-${e.ownerUserName}-${e.name}`}),Nr=h||("TOTEM"===ut?yU:"CHAT"===ut?_U:"FULLPAGE"===ut?vU:"WEBSITE_ASSISTANT"===ut?SU:"HIDDEN_CHAT"===ut?xU:"ZOOMED_FULL_BODY"===ut?wU:vU);return(0,s.jsxs)("div",{className:t(xs)("memori","memori-widget",`memori-layout-${d.toLowerCase()}`,`memori-controls-${Nt.toLowerCase()}`,`memori--avatar-${(null==Qe?void 0:Qe.avatar)||"default"}`,{"memori--preview":f,"memori--embed":g,"memori--with-integration":u,"memori--with-speechkey":!!F,"memori--active":ht,"memori--hide-emissions":zt,"memori--has-active-session":!!fn}),"data-memori-name":null==e?void 0:e.name,"data-memori-id":null==e?void 0:e.engineMemoriID,"data-memori-secondary-id":null==e?void 0:e.memoriID,"data-memori-session-id":fn,"data-memori-integration":null==u?void 0:u.integrationID,"data-memori-engine-state":JSON.stringify({...vn,sessionID:fn}),style:{height:T},children:[(0,s.jsx)(Nr,{Header:XF,headerProps:Cr,Avatar:Rz,avatarProps:Er,Chat:HO,chatProps:Tr,StartPanel:XO,startPanelProps:Ar,integrationStyle:Mr,integrationBackground:Ir,ChangeMode:qz,changeModeProps:Rr,poweredBy:Pr,sessionId:fn,hasUserActivatedSpeak:ht,showInstruct:p,loading:it}),(0,s.jsx)("audio",{id:"memori-audio",style:{display:"none"},src:"https://aisuru.com/intro.mp3"}),Ee&&(0,s.jsx)(xN,{withModal:!0,pwdOrTokens:Yt,openModal:!!Yt,setPwdOrTokens:Xt,showTokens:"SECRET"===e.privacyType,onFinish:async t=>{var n,r,i,o;t.password&&qt(t.password),t.password&&(RU=t.password),t.tokens&&Kt(t.tokens),bn(!fn,t.password,t.tokens,Be?e.giverTag:null==B?void 0:B.tag,Be?e.giverPIN:null==B?void 0:B.pin,{PATHNAME:null===(n=window.location.pathname)||void 0===n?void 0:n.toUpperCase(),ROUTE:(null===(o=null===(i=null===(r=window.location.pathname)||void 0===r?void 0:r.split("/"))||void 0===i?void 0:i.pop())||void 0===o?void 0:o.toUpperCase())||"",...N||{}},O,dn).then((e=>{Xt(null),mr(e||void 0)})).catch((()=>{Xt(null),Xe(!0)}))},minimumNumberOfRecoveryTokens:null!==(be=null==e?void 0:e.minimumNumberOfRecoveryTokens)&&void 0!==be?be:1}),Ee&&(0,s.jsx)(nU,{visible:pn,minAge:un,onClose:t=>{var n,r,i,o;t?(hn(t),MB("birthDate",t),bn(!fn,RU||Wt||(null==e?void 0:e.secretToken),Jt,Be?e.giverTag:null==B?void 0:B.tag,Be?e.giverPIN:null==B?void 0:B.pin,{PATHNAME:null===(n=window.location.pathname)||void 0===n?void 0:n.toUpperCase(),ROUTE:(null===(o=null===(i=null===(r=window.location.pathname)||void 0===r?void 0:r.split("/"))||void 0===i?void 0:i.pop())||void 0===o?void 0:o.toUpperCase())||"",...N||{}},O,t).then((e=>{mn(!1),Xt(null),mr(e||void 0)})).catch((()=>{mn(!1),Xe(!0)}))):(mn(!1),Ke(!1))}}),yt&&(0,s.jsx)(sU,{layout:ut,open:!!yt,onClose:()=>_t(!1),microphoneMode:At?"CONTINUOUS":"HOLD_TO_TALK",continuousSpeechTimeout:It,setMicrophoneMode:e=>Tt("CONTINUOUS"===e),setContinuousSpeechTimeout:Mt,controlsPosition:Nt,setControlsPosition:Ot,hideEmissions:zt,setHideEmissions:Ft,avatarType:Lt,setAvatarType:Bt,enablePositionControls:kt,setEnablePositionControls:Dt,isAvatar3d:!!(null==Qe?void 0:Qe.avatarURL),additionalSettings:W}),gt&&(0,s.jsx)(ZR,{memori:e,open:!!gt,venue:$t,setVenue:e=>{Qt(e),Zt(e),e?MB("position",JSON.stringify(e)):RB("position")},onClose:e=>{e&&Zt(e),vt(!1)}}),St&&fn&&(0,s.jsx)(uU,{apiClient:Te,memori:e,sessionID:fn,visible:St,closeDrawer:()=>bt(!1)}),xt&&!!fr&&(0,s.jsx)(dU,{apiUrl:Te.constants.BACKEND_URL,baseUrl:M,tenant:L,experts:fr,open:xt,onClose:()=>wt(!1)}),We&&(null==L?void 0:L.id)&&(0,s.jsx)(gU,{tenant:L,apiClient:Te,open:!!We,user:He,loginToken:je,onClose:()=>qe(!1),onLogin:(e,t)=>{Ve(e),Ge(t),PU=t,qe(!1),MB("loginToken",t)},onLogout:()=>{je&&Te.backend.userLogout(je).then((()=>{qe(!1),Ve(void 0),Ge(void 0),PU=void 0,RB("loginToken")}))}})]})};const DU={id:"aisuru.com",theme:"aisuru",config:{name:"Memori",showNewUser:!1,requirePosition:!1}},LU=async(e,t)=>{const n=t?new URL(`${t.startsWith("http")?"":t.includes("localhost")?"http://":"https://"}${t}`).origin:"https://aisuru.com";try{const t=await fetch(`${n}/api/tenant/${e}`),{tenant:r}=await t.json();return r||{...DU,tenantID:e}}catch(t){return{...DU,tenantID:e}}};function BU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SD(r.key),r)}}function FU(e,t,n){return t&&zU(e.prototype,t),n&&zU(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function UU(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jU(e,t){return jU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jU(e,t)}function GU(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jU(e,t)}function HU(e,t){if(t&&("object"===yD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return UU(e)}function VU(e){return VU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},VU(e)}function WU(e){if(Array.isArray(e))return e}function qU(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function JU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function KU(e,t){if(e){if("string"==typeof e)return JU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?JU(e,t):void 0}}function YU(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function XU(e){return WU(e)||qU(e)||KU(e)||YU()}function $U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$U(Object(n),!0).forEach((function(t){bD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ZU={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},ej=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};BU(this,e),this.init(t,n)}return FU(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||ZU,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,QU(QU({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),tj=function(){function e(){BU(this,e),this.observers={}}return FU(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function nj(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function rj(e){return null==e?"":""+e}function ij(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function oj(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!e[s]&&n&&(e[s]=new n),e=Object.prototype.hasOwnProperty.call(e,s)?e[s]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function sj(e,t,n){var r=oj(e,t,Object);r.obj[r.k]=n}function aj(e,t){var n=oj(e,t),r=n.obj,i=n.k;if(r)return r[i]}function lj(e,t,n){var r=aj(e,n);return void 0!==r?r:aj(t,n)}function cj(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):cj(e[r],t[r],n):e[r]=t[r]);return e}function uj(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var dj={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function hj(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return dj[e]})):e}var pj="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,mj=[" ",",","?","!",";"];function fj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fj(Object(n),!0).forEach((function(t){bD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=VU(e);if(t){var i=VU(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return HU(this,n)}}function yj(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i)return;if("string"==typeof i[r[o]]&&o+1<r.length)return;if(void 0===i[r[o]]){for(var s=2,a=r.slice(o,o+s).join(n),l=i[a];void 0===l&&r.length>o+s;)s++,l=i[a=r.slice(o,o+s).join(n)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(a)){if("string"==typeof l)return l;if(a&&"string"==typeof l[a])return l[a]}var c=r.slice(o+s).join(n);return c?yj(l,c,n):void 0}i=i[r[o]]}return i}}var _j=function(e){GU(n,e);var t=vj(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return BU(this,n),r=t.call(this),pj&&tj.call(UU(r)),r.data=e||{},r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return FU(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[e,t];n&&"string"!=typeof n&&(s=s.concat(n)),n&&"string"==typeof n&&(s=s.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(s=e.split("."));var a=aj(this.data,s);return a||!o||"string"!=typeof n?a:yj(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var s=[e,t];n&&(s=s.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(s=e.split("."))[1]),this.addNamespaces(t),sj(this.data,s,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var a=aj(this.data,s)||{};r?cj(a,n,i):a=gj(gj({},a),n),sj(this.data,s,a),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?gj(gj({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(tj),Sj={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))})),t}};function bj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bj(Object(n),!0).forEach((function(t){bD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=VU(e);if(t){var i=VU(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return HU(this,n)}}var Cj={},Ej=function(e){GU(n,e);var t=wj(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return BU(this,n),r=t.call(this),pj&&tj.call(UU(r)),ij(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,UU(r)),r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=ej.create("translator"),r}return FU(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,s=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=mj.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var i=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),o=!i.test(e);if(!o){var s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o}(e,n,r));if(o&&!s){var a=e.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:e,namespaces:i};var l=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(l[0])>-1)&&(i=l.shift()),e=l.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t,r){var i=this;if("object"!==yD(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,s=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],t),l=a.key,c=a.namespaces,u=c[c.length-1],d=t.lng||this.language,h=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(h){var p=t.nsSeparator||this.options.nsSeparator;return o?(m.res="".concat(u).concat(p).concat(l),m):"".concat(u).concat(p).concat(l)}return o?(m.res=l,m):l}var m=this.resolve(e,t),f=m&&m.res,g=m&&m.usedKey||l,v=m&&m.exactUsedKey||l,y=Object.prototype.toString.apply(f),_=["[object Number]","[object Function]","[object RegExp]"],S=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f;if(b&&f&&x&&_.indexOf(y)<0&&("string"!=typeof S||"[object Array]"!==y)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,f,xj(xj({},t),{},{ns:c})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return o?(m.res=w,m):w}if(s){var C="[object Array]"===y,E=C?[]:{},A=C?v:g;for(var T in f)if(Object.prototype.hasOwnProperty.call(f,T)){var I="".concat(A).concat(s).concat(T);E[T]=this.translate(I,xj(xj({},t),{joinArrays:!1,ns:c})),E[T]===I&&(E[T]=f[T])}f=E}}else if(b&&"string"==typeof S&&"[object Array]"===y)(f=f.join(S))&&(f=this.extendTranslation(f,e,t,r));else{var M=!1,R=!1,P=void 0!==t.count&&"string"!=typeof t.count,N=n.hasDefaultValue(t),O=P?this.pluralResolver.getSuffix(d,t.count,t):"",k=t["defaultValue".concat(O)]||t.defaultValue;!this.isValidLookup(f)&&N&&(M=!0,f=k),this.isValidLookup(f)||(R=!0,f=l);var D=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,L=D&&R?void 0:f,B=N&&k!==f&&this.options.updateMissing;if(R||M||B){if(this.logger.log(B?"updateKey":"missingKey",d,u,l,B?k:f),s){var z=this.resolve(l,xj(xj({},t),{},{keySeparator:!1}));z&&z.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.")}var F=[],U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&U&&U[0])for(var j=0;j<U.length;j++)F.push(U[j]);else"all"===this.options.saveMissingTo?F=this.languageUtils.toResolveHierarchy(t.lng||this.language):F.push(t.lng||this.language);var G=function(e,n,r){var o=N&&r!==f?r:L;i.options.missingKeyHandler?i.options.missingKeyHandler(e,u,n,o,B,t):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,u,n,o,B,t),i.emit("missingKey",e,u,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?F.forEach((function(e){i.pluralResolver.getSuffixes(e,t).forEach((function(n){G([e],l+n,t["defaultValue".concat(n)]||k)}))})):G(F,l,k))}f=this.extendTranslation(f,e,t,m,r),R&&f===l&&this.options.appendNamespaceToMissingKey&&(f="".concat(u,":").concat(l)),(R||M)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(u,":").concat(l):l,M?f:void 0):this.options.parseMissingKeyHandler(f))}return o?(m.res=f,m):f}},{key:"extendTranslation",value:function(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,xj(xj({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(xj(xj({},n),{interpolation:xj(xj({},this.options.interpolation),n.interpolation)}));var s,a="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){var l=e.match(this.interpolator.nestingRegexp);s=l&&l.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=xj(xj({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),a){var u=e.match(this.interpolator.nestingRegexp);s<(u&&u.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];return i&&i[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate.apply(o,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,h="string"==typeof d?[d]:d;return null!=e&&h&&h.length&&!1!==n.applyPostProcessor&&(e=Sj.handle(h,e,t,this.options&&this.options.postProcessPassResolved?xj({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,i,o,s=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!s.isValidLookup(t)){var l=s.extractFromKey(e,a),c=l.key;n=c;var u=l.namespaces;s.options.fallbackNS&&(u=u.concat(s.options.fallbackNS));var d=void 0!==a.count&&"string"!=typeof a.count,h=d&&!a.ordinal&&0===a.count&&s.pluralResolver.shouldUseIntlApi(),p=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,m=a.lngs?a.lngs:s.languageUtils.toResolveHierarchy(a.lng||s.language,a.fallbackLng);u.forEach((function(e){s.isValidLookup(t)||(o=e,!Cj["".concat(m[0],"-").concat(e)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(o)&&(Cj["".concat(m[0],"-").concat(e)]=!0,s.logger.warn('key "'.concat(n,'" for languages "').concat(m.join(", "),'" won\'t get resolved as namespace "').concat(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!!!")),m.forEach((function(n){if(!s.isValidLookup(t)){i=n;var o,l=[c];if(s.i18nFormat&&s.i18nFormat.addLookupKeys)s.i18nFormat.addLookupKeys(l,c,n,e,a);else{var u;d&&(u=s.pluralResolver.getSuffix(n,a.count,a));var m="".concat(s.options.pluralSeparator,"zero");if(d&&(l.push(c+u),h&&l.push(c+m)),p){var f="".concat(c).concat(s.options.contextSeparator).concat(a.context);l.push(f),d&&(l.push(f+u),h&&l.push(f+m))}}for(;o=l.pop();)s.isValidLookup(t)||(r=o,t=s.getResource(n,e,o,a))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),n}(tj);function Aj(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Tj=function(){function e(t){BU(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ej.create("languageUtils")}return FU(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Aj(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Aj(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Aj(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&o(n.formatLanguageCode(e))})),i}}]),e}(),Ij=[{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}],Mj={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Rj=["v1","v2","v3"],Pj={zero:0,one:1,two:2,few:3,many:4,other:5};function Nj(){var e={};return Ij.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Mj[t.fc]}}))})),e}var Oj=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};BU(this,e),this.languageUtils=t,this.options=n,this.logger=ej.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&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=Nj()}return FU(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return Pj[e]-Pj[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!Rj.includes(this.options.compatibilityJSON)}}]),e}();function kj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kj(Object(n),!0).forEach((function(t){bD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lj=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};BU(this,e),this.logger=ej.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return FU(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:hj,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?uj(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?uj(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?uj(t.nestingPrefix):t.nestingPrefixEscaped||uj("$t("),this.nestingSuffix=t.nestingSuffix?uj(t.nestingSuffix):t.nestingSuffixEscaped||uj(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,o,s,a=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(a.formatSeparator)<0){var i=lj(t,l,e);return a.alwaysFormat?a.format(i,void 0,n,Dj(Dj(Dj({},r),t),{},{interpolationkey:e})):i}var o=e.split(a.formatSeparator),s=o.shift().trim(),c=o.join(a.formatSeparator).trim();return a.format(lj(t,l,s),c,n,Dj(Dj(Dj({},r),t),{},{interpolationkey:s}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,h=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return a.escapeValue?c(a.escape(e)):c(e)}}].forEach((function(t){for(s=0;i=t.regex.exec(e);){var n=i[1].trim();if(void 0===(o=u(n)))if("function"==typeof d){var l=d(e,i,r);o="string"==typeof l?l:""}else if(r&&r.hasOwnProperty(n))o="";else{if(h){o=i[0];continue}a.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}else"string"==typeof o||a.useRawValueToEscape||(o=rj(o));var c=t.safeValue(o);if(e=e.replace(i[0],c),h?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++s>=a.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=Dj({},o);function a(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0];var o=(i=this.interpolate(i,s)).match(/'/g),a=i.match(/"/g);(o&&o.length%2==0&&!a||a.length%2!=0)&&(i=i.replace(/'/g,'"'));try{s=JSON.parse(i),t&&(s=Dj(Dj({},t),s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),l=u,c=!0}if((r=t(a.call(this,n[1].trim(),s),s))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=rj(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=l.reduce((function(e,t){return i.format(e,t,o.lng,Dj(Dj({},o),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function Bj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bj(Object(n),!0).forEach((function(t){bD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fj(e){var t={};return function(n,r,i){var o=r+JSON.stringify(i),s=t[o];return s||(s=e(r,i),t[o]=s),s(n)}}var Uj=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};BU(this,e),this.logger=ej.create("formatter"),this.options=t,this.formats={number:Fj((function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}})),currency:Fj((function(e,t){var n=new Intl.NumberFormat(e,zj(zj({},t),{},{style:"currency"}));return function(e){return n.format(e)}})),datetime:Fj((function(e,t){var n=new Intl.DateTimeFormat(e,zj({},t));return function(e){return n.format(e)}})),relativetime:Fj((function(e,t){var n=new Intl.RelativeTimeFormat(e,zj({},t));return function(e){return n.format(e,t.range||"day")}})),list:Fj((function(e,t){var n=new Intl.ListFormat(e,zj({},t));return function(e){return n.format(e)}}))},this.init(t)}return FU(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=Fj(t)}},{key:"format",value:function(e,t,n,r){var i=this,o=t.split(this.formatSeparator).reduce((function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((function(e){if(e){var t=XU(e.split(":")),r=t[0],i=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[r.trim()]||(n[r.trim()]=i),"false"===i&&(n[r.trim()]=!1),"true"===i&&(n[r.trim()]=!0),isNaN(i)||(n[r.trim()]=parseInt(i,10))}}))}return{formatName:t,formatOptions:n}}(t),s=o.formatName,a=o.formatOptions;if(i.formats[s]){var l=e;try{var c=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},u=c.locale||c.lng||r.locale||r.lng||n;l=i.formats[s](e,u,zj(zj(zj({},a),r),c))}catch(e){i.logger.warn(e)}return l}return i.logger.warn("there was no format function for ".concat(s)),e}),e);return o}}]),e}();function jj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jj(Object(n),!0).forEach((function(t){bD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=VU(e);if(t){var i=VU(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return HU(this,n)}}var Vj=function(e){GU(n,e);var t=Hj(n);function n(e,r,i){var o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return BU(this,n),o=t.call(this),pj&&tj.call(UU(o)),o.backend=e,o.store=r,o.services=i,o.languageUtils=i.languageUtils,o.options=s,o.logger=ej.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=s.maxParallelReads||10,o.readingCalls=0,o.maxRetries=s.maxRetries>=0?s.maxRetries:5,o.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,s.backend,s),o}return FU(n,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o={},s={},a={},l={};return e.forEach((function(e){var r=!0;t.forEach((function(t){var a="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[a]=2:i.state[a]<0||(1===i.state[a]?void 0===s[a]&&(s[a]=!0):(i.state[a]=1,r=!1,void 0===s[a]&&(s[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===l[t]&&(l[t]=!0)))})),r||(a[e]=!0)})),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;var s={};this.queue.forEach((function(n){var r,a,l,c,u,d;r=n.loaded,a=o,c=oj(r,[i],Object),u=c.obj,d=c.k,u[d]=u[d]||[],l&&(u[d]=u[d].concat(a)),l||u[d].push(a),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){s[e]||(s[e]={});var t=n.loaded[e];t.length&&t.forEach((function(t){void 0===s[e][t]&&(s[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:o,callback:s}):(this.readingCalls++,this.backend[n](e,t,(function(a,l){if(r.readingCalls--,r.waitingReads.length>0){var c=r.waitingReads.shift();r.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}a&&l&&i<r.maxRetries?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*o,s)}),o):s(a,l)}))):s(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=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."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,s){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&s&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),s),t.loaded(e,r,s)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(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!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,Gj(Gj({},o),{},{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),n}(tj);function Wj(){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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===yD(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===yD(e[2])||"object"===yD(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function qj(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Jj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jj(Object(n),!0).forEach((function(t){bD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=VU(e);if(t){var i=VU(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return HU(this,n)}}function Xj(){}function $j(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}))}var Qj=function(e){GU(n,e);var t=Yj(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(BU(this,n),e=t.call(this),pj&&tj.call(UU(e)),e.options=qj(r),e.services={},e.logger=ej,e.modules={external:[]},$j(UU(e)),i&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,i),HU(e,UU(e));setTimeout((function(){e.init(r,i)}),0)}return e}return FU(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=Wj();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=Kj(Kj(Kj({},r),this.options),qj(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=Kj(Kj({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var o;this.modules.logger?ej.init(i(this.modules.logger),this.options):ej.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=Uj);var s=new Tj(this.options);this.store=new _j(this.options.resources,this.options);var a=this.services;a.logger=ej,a.resourceStore=this.store,a.languageUtils=s,a.pluralResolver=new Oj(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!o||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(a.formatter=i(o),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new Lj(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new Vj(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(a.languageDetector=i(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=i(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new Ej(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,n||(n=Xj),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var d=nj(),h=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),d.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),d}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xj,r=n,i="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],s=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(i)s(i);else{var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.forEach((function(e){return s(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return s(e)})),this.services.backendConnector.load(o,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)}))}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=nj();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Xj),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(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"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Sj.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=nj();this.emit("languageChanging",e);var i=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},o=function(o){e||o||!n.services.languageDetector||(o=[]);var s="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);s&&(n.language||i(s),n.translator.language||n.translator.changeLanguage(s),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(s)),n.loadResources(s,(function(e){!function(e,o){o?(i(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,s)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,i=function e(t,i){var o;if("object"!==yD(i)){for(var s=arguments.length,a=new Array(s>2?s-2:0),l=2;l<s;l++)a[l-2]=arguments[l];o=r.options.overloadTranslationOptionHandler([t,i].concat(a))}else o=Kj({},i);o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,o.keyPrefix=o.keyPrefix||n||e.keyPrefix;var c=r.options.keySeparator||".",u=o.keyPrefix?"".concat(o.keyPrefix).concat(c).concat(t):t;return r.t(u,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?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;var r=this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var s=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var a=n.precheck(this,s);if(void 0!==a)return a}return!!this.hasResourceBundle(r,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!s(r,e)||i&&!s(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=nj();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=nj();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";return["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"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xj,i=Kj(Kj(Kj({},this.options),t),{isClone:!0}),o=new n(i);void 0===t.debug&&void 0===t.prefix||(o.logger=o.logger.clone(t));var s=["store","services","language"];return s.forEach((function(t){o[t]=e[t]})),o.services=Kj({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new Ej(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))})),o.init(i,r),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(tj);bD(Qj,"createInstance",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Qj(e,t)}));var Zj=Qj.createInstance();Zj.createInstance=Qj.createInstance;var eG,tG=Zj.createInstance;Zj.init,Zj.loadResources,Zj.reloadResources,Zj.use,Zj.changeLanguage,Zj.getFixedT,Zj.t,Zj.exists,Zj.setDefaultNamespace,Zj.hasLoadedNamespace,Zj.loadNamespaces,Zj.loadLanguages;eG=JSON.parse('{"yes":"Si","no":"No","confirm":"Conferma","apply":"Applica","cancel":"Annulla","show":"Mostra","hide":"Nascondi","send":"Invia","close":"Chiudi","edit":"Modifica","delete":"Elimina","loading":"Caricamento","expand":"Espandi","collapse":"Riduci","fullscreenEnter":"Passa a schermo intero","fullscreenExit":"Esci da schermo intero","center":"Centro","bottom":"In basso","hidden":"Nascosto","day":"Giorno","month":"Mese","year":"Anno","createdAt":"Data creazione","selected":"Selezionati","page":"pagina","actions":"Azioni","next":"Successivo","previous":"Precedente","copy":"Copia","copyRawCode":"Copia codice sorgente","copyToClipboard":"Copia negli appunti","showOriginalText":"Mostra originale","showTranslatedText":"Mostra traduzione","exactPosition":"Posizione esatta","uncertain":"Incertezza","question":"Domanda","nothingFound":"Nessun risultato","venue":"Luogo","searchVenue":"Cerca luogo...","memoriBlockedTitle":"Bloccato","memoriBlockedUntil":"Memori bloccato fino al {{date}}","memoriBlockedAnon":"Attualmente \\"{{name}}\\" non può rispondere, torna qui il {{date}}","memoriBlockedReasonExceedChats":"perchè ha superato la soglia mensile di chat ammesse.","memoriBlockedGiverHelper":"Puoi sempre gestirlo in qualità di amministratore, ma altri utenti non potranno interrogarlo.","generatedByAI":"Risposta generata da IA, può talvolta generare informazioni non corrette","whyThisAnswer":"Perché questa risposta?","whyThisAnswerHelper":"Questa risposta è stata generata automaticamente da un\'intelligenza artificiale sulla base di questi contenuti verificati.","completionsEnabled":"IA evoluta, può rispondere con risposte generate automaticamente che talvolta potrebbero contenere informazioni non corrette","completionProviderDown":"Questo Twin è integrato con una IA generativa di {{provider}}, ma al momento non è disponibile. Riprova più tardi.","completionProviderFallbackName":"un provider esterno","completionProviderCheckStatusPage":"Vedi pagina di stato","boardOfExperts":"Gruppo di esperti","birthDate":"Data di nascita","birthDateHelper":"Ti chiediamo la data di nascita esclusivamente per abilitare o disabilitare le funzionalità che hanno restrizioni in base all\'età","underage":"Devi avere almeno {{age}} anni per registrarti.","underageTwinSession":"Devi avere almeno {{age}} anni per interagire con questo Twin.","errorFetchingSession":"Errore durante il caricamento della sessione","errorGettingReferralURL":"Errore durante il caricamento del riferimento","errorReopeningSession":"Errore durante il riapertura della sessione","ageVerification":"Verifica dell\'età","ageVerificationText":"Per interagire con questo Twin, devi aver almeno {{minAge}} anni.","nsfw":"NSFW: Questo Twin contiene contenuti per adulti","deepThought":"Pensiero profondo","deepThoughtHelper":"Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme.","deepThoughtDisclaimerTitle":"Pensiero profondo abilitato","deepThoughtDisclaimer":"Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme.","deepThoughtPreDisclaimerUnlogged":"Accedi per abilitare Pensiero Profondo.","deepThoughtPreDisclaimerNotAllowed":"Pensiero Profondo è disabilitato poiché non hai acconsentito al suo utilizzo, puoi cambiare la tua scelta in qualsiasi momento nelle impostazioni del tuo account.","notEnoughCredits":"L\'autore di questo Twin non ha abbastanza crediti per rispondere alla tua domanda.","knownFacts":{"title":"Fatti noti","description":"Dettagli delle informazioni condivise tra te e {{memoriName}}","type":"Tipo","typeShortTerm":"Breve termine","typeLongTerm":"Lungo termine","typeHelper":"Tipi:\\n- Breve termine: questo fatto noto è sempre utilizzato durante le conversazioni\\n- Lungo termine: questo fatto noto è utilizzato durante le conversazioni solo se rilevante per la domanda corrente","text":"Testo","deleteSuccess":"Fatto noto eliminato","deleteConfirmTitle":"Elimina il fatto noto","deleteConfirmMessage":"Confermi di voler eliminare questo fatto noto?","deleteSelectedConfirmTitle":"Elimina i fatti noti selezionati","deleteSelectedConfirmMessage":"Confermi di voler eliminare i fatti noti selezionati?"},"auth":{"title":"Autenticazione","useRecoveryTokens":"Utilizza i token di recupero","tokens":"Token","addToken":"Aggiungi token","usePassword":"Utilizza la password","atLeast":"Almeno"},"widget":{"instruct":"Istruisci","test":"Prova","sound":"Audio","position":"Preferenze posizione","settings":"Impostazioni","share":"Condividi","sendOnKeypress":"Premi Invio per inviare","sendOnClick":"Clicca sul bottone di invio","boardOfExperts":"Gruppo di esperti","showExpertsInTheBoard":"Mostra gli esperti di questo gruppo","expertsInTheBoard":"Esperti di questo gruppo","goToIntegrationsToCustomizeAvatar":"Per personalizzare l\'avatar, vai a Condividimi e configura la pagina pubblica"},"write_and_speak":{"micButtonPopover":"Premi il pulsante per parlare","micButtonPopoverListening":"Premi il pulsante per smettere di parlare","pageInstructExplanation":"Per insegnarmi nuove cose clicca sul pulsante ISTRUISCIMI per cominciare","pageTryMeExplanation":"Per parlare con me clicca sul pulsante INIZIAMO per cominciare","instructButton":"ISTRUISCIMI","tryMeButton":"INIZIAMO","resumeButton":"RIPRENDI","chatHistory":"Cronologia chat","exportChatHistory":"Esporta la cronologia chat","exportChatHistoryMessage":"Vuoi esportare la cronologia chat?","chatBotButtonText":"CLICCA QUI PER APRIRE LA CHAT","conversationStartedLabel":"Conversazione avvenuta il","settingsHeaderLabel":"Configura qui il memori se vuoi impostare una conversazione continua. Setta i secondi di silenzio prima dell\'invio.","continuousSpeechLabel":"Conversazione continua","holdToSpeak":"Tieni premuto per parlare","releaseToEndListening":"Rilascia per smettere di parlare","pressAndHoldToSpeak":"Premi e tieni premuto per parlare","microphoneMode":"Modalità microfono","hideEmissionsLabel":"Nascondi testo emesso dal Twin","secondsLabel":"Secondi","controlsPosition":"Posizione dei controlli","avatarControls":"Controlli Avatar","height":"Altezza","depth":"Profondità","avatarType":"Tipo Avatar","blob":"Blob","avatar3d":"Avatar 3D","zoomed":"Vicino","normal":"Normale","far":"Lontano","suggestions":"Usa le frecce per regolare l\'altezza dell\'avatar\\nUsa +/- per regolare la profondità dell\'avatar","enablePositionControls":"Abilita controlli posizione","tryMeHeaderLabel":"PROVA","unknownPosition":"Posizione sconosciuta","fieldPlace":"Indica la posizione (es \'Milano\')","showMapLinkFor":"Visualizza sulla mappa la posizione","useMyPosition":"Usa la mia posizione","myPosition":"Posizione corrente","updatingPosition":"Aggiorno la posizione...","placeNotFound":"Luogo sconosciuto!","requirePositionHelp":"Per parlare con {{name}} devi decidere se fornire o meno la tua posizione. Questo perchè diverse risposte che potrà fornirti potrebbero dipendere da dove ti trovi.","dontWantToProvidePosition":"Non voglio fornire la mia posizione","attachmentsLabel":"Arricchisci il tuo messaggio","iWantToTalkToIn":"Voglio parlare con {{name}} in"},"media":{"title":"Titolo","editAttributes":"Modifica attributi media","uploadMimeTypeNotAllowed":"Il tipo di file non è permesso","uploadSizeLimitMessage":"Il file caricato è troppo grande (max {{size}}MB)","uploadWrongResolutionMessage":"La risoluzione deve essere {{width}}x{{height}} pixel","memoriNameAlreadyUsed":"Hai già un Twin con questo nome","uploadHelperImages":"Caricare un file con estensione png, jpg, jpeg o gif e con dimensione massima di {{size}}MB","uploadHelper":"Caricare un file di dimensione massima di {{size}}MB","uploadError":"Errore nel caricamento","square":"quadrato","scaleRatio":"Proporzioni","addMediaLabel":"Aggiungi media","insertThisMediaMsg":"Inserisci questi media","mediaUploadMessage":"Clicca per caricare un nuovo media","addLinkLabel":"Aggiungi un link","linkKey":"URL","linkValue":"Titolo link","insertThisLink":"Inserisci un link a {{url}} con titolo {{title}}"},"gamification":{"level":"Livello","points":"punti","memoriReachedLevel":"è diventato più evoluto ed ha raggiunto il livello","levelGoToStatistics":"{{memori}} è al livello {{level}} con {{points}} punti. Clicca per andare alle statistiche.","congratulationsNewLevel":"Congratulazioni, hai raggiunto un nuovo livello!","congratulationsNewLevelDescription":"Il tuo Memori è diventato più evoluto con {{points}} punti, guarda le","statistics":"statistiche"},"login":{"login":"Accedi","logout":"Esci","user":"Utente","loggedDrawerTitle":"Ciao, {{name}}!","loginDrawerTitle":"Accedi","signupDrawerTitle":"Registrati","newUserSignUp":"Sei un nuovo utente?","signUp":"Registrati!","alreadyHaveAnAccount":"Hai già un account?","backToLogin":"Torna al login","registrationDisabled":"La registrazione è disabilitata.","contactAdmin":"Contatta l\'amministratore per richiedere l\'accesso","userNameOrEmail":"Nome utente o email","email":"Email","emailFormatError":"Per favore, inserisci una mail valida","username":"Nome utente","usernameContainsReservedWord":"Il nome utente contiene una parola riservata, per favore cambia il nome utente","usernameFormatError":"Il nome utente deve essere lungo almeno 3 caratteri e può contenere solo lettere, numeri e _","otpCode":"Codice di verifica","resendVerificationCode":"Invia di nuovo","resentVerificationCode":"Codice di verifica inviato! Controlla la tua mail.","password":"Password","newPassword":"Nuova password","confirmPassword":"Conferma la password","currentPassword":"Password attuale","passwordMatchingError":"Le password non coincidono.","passwordFormatError":"La password deve essere lunga almeno 8 caratteri e contenere almeno un numero, una lettera maiuscola, una minuscola e un simbolo","pwdWeak":"Debole","pwdAcceptable":"Accettabile","pwdStrong":"Forte","mustChangePassword":"Devi cambiare la password","passwordChange":"Cambio password","emailChange":"Cambio email","avatarChange":"Cambio avatar","underage":"Devi avere almeno {{age}} anni per registrarti.","optional":"opzionale","birthDate":"Data di nascita","birthDateHelper":"Ti chiediamo la data di nascita esclusivamente per abilitare o disabilitare le funzionalità che hanno restrizioni in base all\'età","missingData":"Informazioni mancanti","missingDataHelper":"Sappiamo che questo è un po\' fastidioso, ma abbiamo bisogno di alcune informazioni in più per completare la tua registrazione.","goToAccountToChangeYourPreferences":"Puoi cambiare la tua scelta in qualsiasi momento dalla tua pagina Account.","deepThoughtExplaination":"Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme. Consenti all\'autore del twin di contattarti per offerte commerciali riguardanti prodotti su cui hai espresso interesse.","tnCAndPPAcceptedHelper":"Dall\'ultimo accesso, i T&C e l\'Informativa sulla privacy sono stati modificati. Si prega di accettarle, altrimenti non sarà possibile apportare modifiche ai propri gemelli. Puoi sempre cancellare il tuo account nella pagina del tuo profilo utente.","privacyLabel":"Ho letto e accettato l\'","privacyAndCookiePolicy":"informativa sui cookie e sulla privacy","and":"e","termsOfService":"i termini del servizio","pAndCUAccepted":"Accetto le condizioni di utilizzo relative a Pensiero Profondo","editAccount":"Modifica account","save":"Salva"},"success":"Operazione andata a buon fine","Error":"Errore","internal server error":"Ops, scusa... qualcosa è andato storto nel server","error":"Errore","error.loading":"Errore durante il caricamento dei contenuti.","error.notFound":"Ops, non abbiamo trovato ciò che cercavi.","error.generic":"Ops, qualcosa è andato storto.","error.serverNotResponding":"Stiamo facendo manutenzione o rilasciando aggiornamenti. Riprova più tardi.","error.unprocessableEntity":"Errore durante il salvataggio dei dati. Ricontrolla i dati inseriti.","error.goBackTo":"Prova a tornare alla","error.reloadPage":"Ricarica la pagina","error.tryAgain":"Riprova","error.unauthorized":"Non sei autorizzato a visualizzare questo contenuto.","errors":{"TENANT_NOT_FOUND":"Tenant non trovato","TENANT_REGISTRATION_DISABLED":"La registrazione su questa piattaforma è disabilitata","TENANT_MISSING_NAME":"Tenant: nome mancante","TENANT_MAX_USERS_REACHED":"Numero massimo di utenti raggiunto","TENANT_MAX_ADMINS_REACHED":"Numero massimo di utenti amministratori raggiunto","TENANT_ALREADY_EXISTS":"Tenant già esistente","TENANT_MISSING_DESCRIPTION":"Tenant: descrizione mancante","TENANT_CANT_SET_COMPLETION_PROVIDER":"Tenant: non abilitato a gestire il provider di completamento","USER_NOT_CONFIRMED":"Utente ancora non confermato","USER_NOT_FOUND":"Utente non trovato","USER_OR_PASSWORD_INVALID":"Utente o password non validi","USER_MUST_CHANGE_PASSWORD":"Devi cambiare la password","USER_MUST_ENTER_VERIFICATION_CODE":"Devi inserire il codice di verifica","USER_MISSING_TENANT":"Utente: tenant mancante","USER_MISSING_NAME":"Utente: nome mancante","USER_MISSING_PASSWORD":"Utente: password mancante","USER_MISSING_EMAIL":"Utente: email mancante","USER_MISSING_VERIFICATION_CODE":"Utente: codice di verifica mancante","USER_NAME_ALREADY_USED":"Nome utente già in uso","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"La password non rispetta le regole di sicurezza","USER_EMAIL_ALREADY_USED":"Email già in uso","USER_EMAIL_INVALID":"Email non valida","USER_VERIFICATION_CODE_INVALID":"Codice di verifica non valido","USER_MISSING_NAME_OR_EMAIL":"Nome utente o email mancante","USER_NAME_INVALID":"Nome utente non valido","USER_HAS_ONE_OR_MORE_MEMORI":"L\'utente ha uno o più memori","USER_MISSING_NEW_PASSWORD":"Utente: nuova password mancante","USER_NOTHING_TO_DO":"Niente da fare","USER_CANT_CREATE_MEMORI":"Utente non abilitato a creare Memori","USER_MAX_MEMORI_REACHED":"Massimo numero di Memori raggiunto","USER_TOO_MANY_ATTEMPTS":"Troppi tentativi","USER_MUST_ACCEPT_TNC_AND_PP":"Devi accettare i termini e le condizioni","USER_BIRTH_DATE_CANT_BE_CHANGED":"Data di nascita non può essere cambiata","USER_CANT_SET_COMPLETION_PROVIDER":"Utente: non abilitato a gestire il provider di completamento","USER_CANT_ENABLE_DEEP_THOUGHT":"Utente: non abilitato a gestire Pensiero Profondo","USER_CANT_ENABLE_DCM_INTEGRATION":"Utente: non abilitato a gestire l\'integrazione con DCM","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Utente: non abilitato a gestire la concatenazione o il gruppo di esperti","USER_CREATION_BILLING_DENIED_PERMISSION":"Non hai crediti sufficienti per creare un Twin","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"L\'utente ha una o più configurazioni completions","USER_CANT_BE_DELETED":"Utente non può essere cancellato","MEMORI_NOT_FOUND":"Memori non trovato","MEMORI_NOT_ACCESSIBLE":"Memori non accessibile","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Solo il proprietario può cambiare il tag e il pin","SESSION_NOT_FOUND":"Sessione non trovata","SESSION_IS_NOT_ADMINISTRATIVE":"Sessione non amministrativa","SESSION_EXPIRED":"Sessione scaduta","MEMORI_MISSING_CONFIGURATION":"Memori: configurazione mancante","MEMORI_CONFIGURATION_NOT_FOUND":"Memori: configurazione non trovata","MEMORI_INVALID_PRIVACY_TYPE":"Memori: tipo di privacy non valido","MEMORI_MISSING_PASSWORD":"Memori: password mancante","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Memori: numero totale di token di recupero non valido","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Memori: numero minimo di token di recupero non valido","MEMORI_INVALID_VOICE_TYPE":"Memori: tipo di voce non valido","MEMORI_MISSING_NAME":"Memori: nome mancante","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Memori: password o token di recupero mancanti","MEMORI_INVALID_ID":"Memori: ID non valido","MEMORI_NAME_ALREADY_USED":"Nome memori già in uso","MEMORI_INVALID_PIN":"Memori: PIN non valido","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Memori: cambio TAG e PIN richiedono operazioni separate","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Memori: password non richiesta su Memori pubblico","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Pensiero Profondo richiede l\'abilitazione delle completions","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"Il gruppo di esperti richiede l\'abilitazione delle completions","MEMORI_INVALID_COMPLETION_CONFIG":"Memori: configurazione completions non valida","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Trasferimento: utente di destinazione mancante","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Trasferimento: ID utente di destinazione non valido","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Trasferimento: dati utente di destinazione non validi","MEMORI_TRANSFER_NOTHING_TO_DO":"Trasferimento: alcuna operazione da fare","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Memori: la configurazione non può essere modificata","MEMORI_MISSING_NEW_PASSWORD":"Memori: nuova password mancante","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Formato non valido data a partire da","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Formato non valido data fino a","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"Memori: funzionalità richiede un abbonamento","INTEGRATION_NOT_FOUND":"Integrazione non trovata","INTEGRATION_INVALID_TYPE":"Tipo integrazione non valido","INTEGRATION_ALREADY_EXISTS":"Integrazione già esistente","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Memori non pubblici non possono essere integrati","INTEGRATION_MISSING_INVOCATION_TEXT":"Integrazione: testo di invocazione mancante","INTEGRATION_MISSING_DEVICE_EMAILS":"Integrazione: email del dispositivo mancante","INTEGRATION_MEMORI_IS_EMPTY":"Memori vuoti non possono essere integrati","INTEGRATION_MISSING_PRIVACY_POLICY":"Integrazione: privacy policy mancante","INTEGRATION_MISSING_CATEGORY":"Categoria integrazione mancante","INTEGRATION_MISSING_DESCRIPTION":"Descrizione integrazione mancante","INTEGRATION_INVALID_INVOCATION_TEXT":"Testo di invocazione non valido","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home non più disponibile","UPLOAD_REQUIRES_MULTIPART_ENCODING":"L\'upload richiede l\'encoding multipart","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Upload: manca il content type boundary","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: dimensione massima superata","UPLOAD_FILE_IS_EMPTY":"Upload: file vuoto","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Upload: tipo di file o firma non validi","UPLOAD_MISSING_FILE_NAME":"Upload: nome file mancante","UPLOAD_INVALID_MEMORY_ID":"Upload: ID contenuto non valido","UPLOAD_MISSING_FILE_CONTENT":"Upload: contenuto file mancante","ASSET_NOT_FOUND":"Asset non trovato","ASSET_NOT_ACCESSIBLE":"Asset non accessibile","ASSET_MISSING_SESSION_ID":"Asset: ID sessione mancante","ASSET_INVALID_FILE_NAME":"Asset: nome file non valido","INVITATION_NOT_FOUND":"Invito non trovato","INVITATION_NOT_ACCESSIBLE":"Invito non accessibile","INVITATION_ALREADY_ACCEPTED":"Invito già accettato","INVITATION_ALREADY_REJECTED":"Invito già rifiutato","INVITATION_MISSING_DESTINATION_EMAIL":"Invito: email di destinazione mancante","INVITATION_DESTINATION_EMAIL_INVALID":"Invito: email di destinazione non valida","INVITATION_MISSING_TAG":"Invito: tag mancante","INVITATION_MISSING_PIN":"Invito: PIN mancante","INVITATION_INVALID_PIN":"Invito: PIN non valido","INVITATION_INVALID_TYPE":"Invito: tipo non valido","INVITATION_MISSING_DESTINATION_NAME":"Invito: nome destinatario mancante","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invito: tag e pin non possono essere cambiati","INVITATION_CANT_BE_CHANGED":"Invito: non può essere modificato","ACTIONLOG_INVALID_USER_ID":"ID utente non valido","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Data a partire da: formato non valido","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Data fino a: formato non valido","ACTIONLOG_INVALID_MEMORI_ID":"ID Memori non valido","CONSUMPTIONLOG_INVALID_TYPE":"Tipo di log non valido","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Data a partire da: formato non valido","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Data fino a: formato non valido","CONSUMPTIONLOG_INVALID_USER_ID":"ID utente non valido","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Memori ID non valido","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notifiche: Periodo di estrazione chatlog non valido","PROCESS_INVALID_TYPE":"Tipo di processo non valido","PROCESS_ALREADY_RUNNING":"Processo già in esecuzione","PROCESS_NOT_FOUND":"Processo non trovato","IMPORTCSV_MISSING_ROWS":"Importazione CSV: righe mancanti","IMPORTCSV_MISSING_CSV":"Importazione CSV: CSV mancante","IMPORTCSV_MISSING_SEPARATOR":"Importazione CSV: separatore mancante","IMPORTCSV_INVALID_SEPARATOR":"Importazione CSV: separatore non valido","IMPORTCSV_MISSING_HEADERS":"Importazione CSV: intestazioni mancanti","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Importazione CSV: separatore varianti titolo mancante","IMPORTCSV_INVALID_RECEIVER_ID":"Importazione CSV: ID receiver non valido","IMPORTCSV_INVALID_MEDIA_LINK":"Importazione CSV: link media non valido","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"Importazione CSV: titolo link non valido","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"Importazione CSV: encoding caratteri non rilevabile","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"Importazione CSV: impossibile importare in Memori segreti","IMPORTTXT_MISSING_ROWS":"Importazione TXT: righe mancanti","IMPORTTXT_INVALID_GRANULARITY":"Importazione TXT: granularità non valida","IMPORTTXT_INVALID_RECEIVER_ID":"Importazione TXT: ID receiver non valido","IMPORTTXT_INVALID_MEDIA_LINK":"Importazione TXT: link media non valido","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Importazione TXT: titolo link non valido","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"Importazione TXT: encoding caratteri non rilevabile","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"Importazione TXT: impossibile importare in Memori segreti","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Importazione TXT: limite importazione superato","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Importazione TXT: importazione su GPT-4 richiede API key","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Importazione TXT: importazione richiede un piano a pagamento","IMPORTTXT_BILLING_DENIED_PERMISSION":"Importazione TXT: non hai crediti sufficienti per l\'operazione","EXPORTCSV_MISSING_CSV_SPECS":"Esportazione CSV: specifiche CSV mancanti","EXPORTCSV_MISSING_SEPARATOR":"Esportazione CSV: separatore mancante","EXPORTCSV_INVALID_SEPARATOR":"Esportazione CSV: separatore non valido","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Esportazione CSV: separatore varianti titolo mancante","EXPORTCSV_MISSING_NEW_LINE_CHAR":"Esportazione CSV: carattere di nuova riga mancante","EXPORTCSV_INVALID_NEW_LINE_CHAR":"Esportazione CSV: carattere di nuova riga non valido","EXPORTCSV_MISSING_PASSWORD":"Esportazione CSV: password mancante","EXPORTJSONL_MISSING_JSONL_SPECS":"Esportazione JSONL: specifiche JSONL mancanti","EXPORTJSONL_MISSING_PLATFORM":"Esportazione JSONL: piattaforma mancante","EXPORTJSONL_INVALID_PLATFORM":"Esportazione JSONL: piattaforma non valida","EXPORTJSONL_MISSING_PASSWORD":"Esportazione JSONL: password mancante","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"Esportazione JSONL: esportazione richiede un piano a pagamento","ANALYSIS_MISSING_QUERY":"Analisi: query mancante","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analisi: impossibile analizzare Memori segreti","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analisi: corrispondenza query utente richiede Pensiero Profondo","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Assegnazione badge: credenziali errate o mancanti","BADGE_ASSIGNMENT_MISSING_REF_ID":"Assegnazione badge: ID ref mancante","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Assegnazione badge: esito non trovato","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Assegnazione badge: URL di asserzione mancante","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Assegnazione badge: URL badge mancante","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Assegnazione badge: URL issuer mancante","BADGE_ASSIGNMENT_INVALID_URL":"Assegnazione badge: URL non valido","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Assegnazione badge: destinatario mancante","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Assegnazione badge: tipo destinatario sconosciuto","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Assegnazione badge: identità destinatario mancante","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Assegnazione badge: tipo hash destinatario mancante","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Assegnazione badge: tipo hash destinatario sconosciuto","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Assegnazione badge: identità destinatario errata","BADGE_NOT_FOUND":"Badge non trovato","OUTCOME_NO_DCM_CONFIGURED":"Outcome: nessun DCM configurato","OUTCOME_USER_BADGES_DISABLED":"Outcome: badge utente disabilitati","COMPLETION_CONFIG_MISSING_NAME":"Configurazione completions: nome mancante","COMPLETION_CONFIG_MISSING_PROVIDER":"Configurazione completions: provider mancante","COMPLETION_CONFIG_MISSING_ENDPOINT":"Configurazione completions: endpoint mancante","COMPLETION_CONFIG_MISSING_API_KEY":"Configurazione completions: API key mancante","COMPLETION_CONFIG_MISSING_MODEL":"Configurazione completions: modello mancante","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Configurazione completions: almeno un tipo di completions deve essere specificato","COMPLETION_CONFIG_INVALID_NAME":"Configurazione completions: nome non valido","COMPLETION_CONFIG_INVALID_PURPOSE":"Configurazione completions: tipo di completions non valido","COMPLETION_CONFIG_INVALID_ENDPOINT":"Configurazione completions: endpoint non valido","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Configurazione completions: endpoint incoerente","COMPLETION_CONFIG_INVALID_PROVIDER":"Configurazione completions: provider non valido","COMPLETION_CONFIG_NOT_FOUND":"Configurazione completions: non trovata","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Configurazione completions: non accessibile","COMPLETION_CONFIG_NAME_RESERVED":"Configurazione completions: nome riservato","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Configurazione completions: nome già esistente","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Configurazione completions: cambiamento visibilità non consentito"}}');var nG;nG=JSON.parse('{"yes":"Yes","no":"No","confirm":"Confirm","apply":"Apply","cancel":"Cancel","show":"Show","hide":"Hide","send":"Send","close":"Close","edit":"Edit","delete":"Delete","loading":"Loading","expand":"Expand","collapse":"Collapse","fullscreenEnter":"Enter fullscreen","fullscreenExit":"Exit fullscreen","center":"Center","bottom":"Bottom","hidden":"Hidden","day":"Day","month":"Month","year":"Year","createdAt":"Creation date","selected":"Selected","page":"page","actions":"Actions","next":"Next","previous":"Previous","copy":"Copy","copyRawCode":"Copy raw code","copyToClipboard":"Copy to clipboard","showOriginalText":"Show original","showTranslatedText":"Show translation","exactPosition":"Exact position","uncertain":"Uncertain","question":"Question","nothingFound":"Nothing found","venue":"Venue","searchVenue":"Search venue...","memoriBlockedTitle":"Blocked","memoriBlockedUntil":"Memori blocked until {{date}}","memoriBlockedAnon":"Currently \\"{{name}}\\" can\'t answer, come back here on {{date}}","memoriBlockedReasonExceedChats":"because it has exceeded the monthly threshold of allowed chats.","memoriBlockedGiverHelper":"You can still manage it as administrator, but other users will not be able to interact with it.","generatedByAI":"Answer generated by AI, may occasionally generate incorrect informations","whyThisAnswer":"Why this answer?","whyThisAnswerHelper":"This answer was generated automatically by an artificial intelligence based on these verified contents.","completionsEnabled":"Advanced AI, can respond with automatically generated answers that may sometimes contain incorrect information","completionProviderDown":"This Twin is integrated with a generative AI from {{provider}}, but it is currently unavailable. Try again later.","completionProviderFallbackName":"an external provider","completionProviderCheckStatusPage":"Check status page","boardOfExperts":"Board of experts","birthDate":"Birth date","birthDateHelper":"We ask for your birth date only to enable or disable functionalities that have age restrictions","underage":"You must be at least {{age}} years old to sign up.","underageTwinSession":"You must be at least {{age}} years old to interact with this Twin.","errorFetchingSession":"Error during session loading","errorGettingReferralURL":"Error during referral loading","errorReopeningSession":"Error during session reopening","ageVerification":"Age verification","ageVerificationText":"To interact with this Twin, you must be at least {{minAge}} years old.","nsfw":"NSFW: This Twin contains adult contents","deepThought":"Deep Thought","deepThoughtHelper":"Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together. Allow the twin\'s author to contact you for commercial offers regarding products you have shown interest in.","deepThoughtDisclaimerTitle":"Deep Thought enabled","deepThoughtDisclaimer":"Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together.","deepThoughtPreDisclaimerUnlogged":"Log in to enable Deep Thought.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought is disabled since you didn\'t consent its usage, you can change this any time in your account settings.","notEnoughCredits":"The author of this Twin does not have enough credits to answer your question.","knownFacts":{"title":"Known facts","description":"Details of the information shared between you and {{memoriName}}","type":"Type","typeShortTerm":"Short term","typeLongTerm":"Long term","typeHelper":"Types:\\n- Short Term: this Known Fact is always used during conversations\\n- Long Term: this Known Fact is used during conversations only if relevant to the current question","text":"Text","deleteSuccess":"Known fact deleted","deleteConfirmTitle":"Delete known fact","deleteConfirmMessage":"Are you sure you want to delete this known fact?","deleteSelectedConfirmTitle":"Delete selected known facts","deleteSelectedConfirmMessage":"Are you sure you want to delete the selected known facts?"},"auth":{"title":"Authentication","useRecoveryTokens":"Use recovery tokens","tokens":"Tokens","addToken":"Add token","usePassword":"Use password","atLeast":"At least"},"widget":{"instruct":"Instruct","test":"Test","sound":"Sound","position":"Position preferences","settings":"Settings","share":"Share","sendOnKeypress":"Hit Enter to send","sendOnClick":"Click on Submit","boardOfExperts":"Board of experts","showExpertsInTheBoard":"Show experts in this board","expertsInTheBoard":"Experts in this board","goToIntegrationsToCustomizeAvatar":"To customize the avatar, go to Share and customize the public page"},"write_and_speak":{"micButtonPopover":"Click the button to speak","micButtonPopoverListening":"Click the button to stop speak","pageInstructExplanation":"To teach me new things click on the INSTRUCT ME button to get started","pageTryMeExplanation":"To talk to me click on the START button to get started","instructButton":"INSTRUCT ME","tryMeButton":"START","resumeButton":"RESUME","chatHistory":"Chat history","exportChatHistory":"Export chat history","exportChatHistoryMessage":"Do you want to export chat history?","chatBotButtonText":"CLICK HERE TO OPEN CHATBOT","conversationStartedLabel":"Conversation started on","settingsHeaderLabel":"Setup here if you want to set the memori as continuous speech, and change the silence seconds if you want to customize them.","continuousSpeechLabel":"Continuous speech","holdToSpeak":"Hold to speak","releaseToEndListening":"Release to end listening","pressAndHoldToSpeak":"Press and hold to speak","microphoneMode":"Microphone mode","hideEmissionsLabel":"Hide text emitted by the Twin","secondsLabel":"Set seconds","controlsPosition":"Controls position","avatarControls":"Avatar controls","height":"Height","depth":"Depth","avatarType":"Avatar type","suggestions":"Use the arrow keys to adjust the avatar height\\nUse +/- to adjust the avatar depth","blob":"Blob","avatar3d":"3D Avatar","zoomed":"Zoomed","normal":"Normal","far":"Far","enablePositionControls":"Enable position controls","tryMeHeaderLabel":"TRY","unknownPosition":"Unknown position","fieldPlace":"Write the place (eg \'Milano\')","showMapLinkFor":"Show the position on the map","useMyPosition":"Use my position","myPosition":"Your position","updatingPosition":"Updating position...","placeNotFound":"Place not found!","requirePosition":"Insert your position before start","requirePositionHelp":"To talk to {{name}} you have to decide whether to provide your position or not. This is because different answers that it can provide you may depend on where you are.","dontWantToProvidePosition":"I don\'t want to provide my position","attachmentsLabel":"Enrich your message","iWantToTalkToIn":"I want to talk to {{name}} in"},"media":{"title":"Title","editAttributes":"Edit media attributes","uploadMimeTypeNotAllowed":"The file type is not allowed","uploadSizeLimitMessage":"The uploaded size is too big (max {{size}}MB)","uploadWrongResolutionMessage":"The resolution must be {{width}}x{{height}} pixel","memoriNameAlreadyUsed":"You already have a Twin with this name","uploadHelperImages":"Upload a file with extension png, jpg, jpeg or gif, and having at maximum a size of {{size}}MB","uploadHelper":"Upload a file having at maximum a size of {{size}}MB","uploadError":"Upload failed","square":"square","scaleRatio":"Scale ratio","addMediaLabel":"Add a media","insertThisMediaMsg":"Insert these media","mediaUploadMessage":"Click to load a new media","addLinkLabel":"Add a link","linkKey":"URL","linkValue":"Link title","insertThisLink":"Insert a link to {{url}} with title {{title}}"},"gamification":{"level":"Level","points":"points","memoriReachedLevel":"became more evolved and reached level","levelGoToStatistics":"{{memori}} is at level {{level}} with {{points}} points. Click to go to statistics.","congratulationsNewLevel":"Congratulations, you have reached a new level!","congratulationsNewLevelDescription":"Your Memori became more evolved with {{points}} points, look at the","statistics":"statistics"},"login":{"login":"Login","logout":"Logout","user":"User","loggedDrawerTitle":"Hi, {{name}}!","loginDrawerTitle":"Login","signupDrawerTitle":"Sign up","newUserSignUp":"New user?","signUp":"Sign up!","alreadyHaveAnAccount":"Already have an account?","backToLogin":"Back to login","registrationDisabled":"Registration is disabled","contactAdmin":"Contact the administrator to request access","userNameOrEmail":"Username or email","email":"Email","emailFormatError":"Please, insert a valid email","username":"Username","usernameContainsReservedWord":"Username contains a reserved word, please choose another one","usernameFormatError":"Username must be at least 3 characters long and contain only letters, numbers and _","otpCode":"Verification code","resendVerificationCode":"Resend code","resentVerificationCode":"Confirmation code sent! Please check your email.","password":"Password","newPassword":"New password","confirmPassword":"Confirm Password","currentPassword":"Current password","passwordMatchingError":"Passwords do not match.","passwordFormatError":"Password must be at least 8 characters long and contain at least a number, an upper case letter, a lower case letter and a symbol","pwdWeak":"Weak","pwdAcceptable":"Acceptable","pwdStrong":"Strong","mustChangePassword":"You must change your password","passwordChange":"Change password","emailChange":"Change email","avatarChange":"Change avatar","underage":"You must be at least {{age}} years old to sign up.","optional":"Optional","birthDate":"Birth date","birthDateHelper":"We ask for your birth date only to enable or disable functionalities that have age restrictions","missingData":"Missing informations","missingDataHelper":"We know that this is a bit annoying, but we need some more informations to complete your registration.","goToAccountToChangeYourPreferences":"You can change your choice at any time from your Account page.","deepThoughtExplaination":"Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together. Allow the twin\'s author to contact you for commercial offers regarding products you have shown interest in.","tnCAndPPAcceptedHelper":"Since your last login, T&C and Privacy Policy have changed. Please accept them, otherwise you won\'t be able to make changes to your Twins. You can always delete your account in your user profile page.","privacyLabel":"I have read and accepted the","privacyAndCookiePolicy":"Privacy e Cookie Policy","and":"and","termsOfService":"Terms of Service","pAndCUAccepted":"I accept the terms of service about Deep Thought","editAccount":"Edit account","save":"Save"},"success":"Success","Error":"Error","internal server error":"Oupsie, sorry... Something went wrong on the server","error":"Error","error.loading":"Error while loading content.","error.generic":"Oupsie, sorry... something went wrong.","error.serverNotResponding":"We are doing maintenance or releasing updates. Please try again later.","error.notFound":"Oupsie, we didn\'t find the page you were looking for.","error.goBackTo":"You can try to go back to the","error.reloadPage":"Reload the page","error.tryAgain":"Try again","error.unauthorized":"You are unauthorized to view this content.","error.unprocessableEntity":"Error while processing the request. Check the data you entered.","errors":{"TENANT_NOT_FOUND":"Tenant not found","TENANT_REGISTRATION_DISABLED":"Registration on this platform is disabled","TENANT_MISSING_NAME":"Tenant: name missing","TENANT_MAX_USERS_REACHED":"Maximum number of users reached","TENANT_MAX_ADMINS_REACHED":"Maximum number of admin users reached","TENANT_ALREADY_EXISTS":"Tenant already exists","TENANT_MISSING_DESCRIPTION":"Tenant: description missing","TENANT_CANT_SET_COMPLETION_PROVIDER":"Tenant: can\'t set completion provider","USER_NOT_CONFIRMED":"User still not confirmed","USER_NOT_FOUND":"User not found","USER_OR_PASSWORD_INVALID":"Invalid user or password","USER_MUST_CHANGE_PASSWORD":"You must change your password","USER_MUST_ENTER_VERIFICATION_CODE":"You must enter the verification code","USER_MISSING_TENANT":"User: missing tenant","USER_MISSING_NAME":"User: name is missing","USER_MISSING_PASSWORD":"User: password missing","USER_MISSING_EMAIL":"User: Missing email","USER_MISSING_VERIFICATION_CODE":"User: Missing verification code","USER_NAME_ALREADY_USED":"User name already in use","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"The password does not meet the security rules","USER_EMAIL_ALREADY_USED":"Email already in use","USER_EMAIL_INVALID":"Invalid email","USER_VERIFICATION_CODE_INVALID":"Invalid verification code","USER_MISSING_NAME_OR_EMAIL":"Missing username or email","USER_NAME_INVALID":"Invalid user name","USER_HAS_ONE_OR_MORE_MEMORI":"The user has one or more memories","USER_MISSING_NEW_PASSWORD":"User: new password missing","USER_NOTHING_TO_DO":"Nothing to do","USER_CANT_CREATE_MEMORI":"User not allowed to create Memori","USER_MAX_MEMORI_REACHED":"Maximum number of Memori reached","USER_TOO_MANY_ATTEMPTS":"Too many attempts","USER_MUST_ACCEPT_TNC_AND_PP":"You must accept the terms and conditions","USER_BIRTH_DATE_CANT_BE_CHANGED":"Date of birth cannot be changed","USER_CANT_SET_COMPLETION_PROVIDER":"User: not allowed to manage completion provider","USER_CANT_ENABLE_DEEP_THOUGHT":"User: not enabled to manage Deep Thought","USER_CANT_ENABLE_DCM_INTEGRATION":"User: not enabled to manage DCM integration","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"User: not allowed to manage chaining or expert group","USER_CREATION_BILLING_DENIED_PERMISSION":"You don\'t have enough credits to create a Twin","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"The user has one or more completion configurations","USER_CANT_BE_DELETED":"User can\'t be deleted","MEMORI_NOT_FOUND":"Memori not found","MEMORI_NOT_ACCESSIBLE":"Memori not accessible","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Only owner can change tag or pin","SESSION_NOT_FOUND":"Session not found","SESSION_IS_NOT_ADMINISTRATIVE":"Non-administrative session","SESSION_EXPIRED":"Session expired","MEMORI_MISSING_CONFIGURATION":"Twin: missing configuration","MEMORI_CONFIGURATION_NOT_FOUND":"Twin: configuration not found","MEMORI_INVALID_PRIVACY_TYPE":"Twin: invalid privacy type","MEMORI_MISSING_PASSWORD":"Twin: missing password","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Twin: total number of invalid recovery tokens","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Twin: minimum number of invalid recovery tokens","MEMORI_INVALID_VOICE_TYPE":"Twin: invalid voice type","MEMORI_MISSING_NAME":"Twin: missing name","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Twin: missing password or recovery token","MEMORI_INVALID_ID":"Twin: invalid ID","MEMORI_NAME_ALREADY_USED":"Twin name already in use","MEMORI_INVALID_PIN":"Twin: Invalid PIN","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Twin: TAG and PIN change require separate operations","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Twin: no password required when public","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Deep Thought requires completions to be enabled","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"The expert group requires completions to be enabled","MEMORI_INVALID_COMPLETION_CONFIG":"Twin: invalid completions configuration","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Transfer: missing destination user","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Transfer: invalid destination user ID","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Transfer: invalid destination user data","MEMORI_TRANSFER_NOTHING_TO_DO":"Transfer: nothing to do","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Memories: configuration cannot be changed","MEMORI_MISSING_NEW_PASSWORD":"Memories: new password missing","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"Feature requires subscription","INTEGRATION_NOT_FOUND":"Integration not found","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Invalid date from format","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Invalid date to format","INTEGRATION_INVALID_TYPE":"Invalid integration type","INTEGRATION_ALREADY_EXISTS":"Integration already exists","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Non-public memories cannot be integrated","INTEGRATION_MISSING_INVOCATION_TEXT":"Integration: missing invocation text","INTEGRATION_MISSING_DEVICE_EMAILS":"Integration: missing device email","INTEGRATION_MEMORI_IS_EMPTY":"Empty memories cannot be integrated","INTEGRATION_MISSING_PRIVACY_POLICY":"Integration: privacy policy missing","INTEGRATION_MISSING_CATEGORY":"Integration category missing","INTEGRATION_MISSING_DESCRIPTION":"Missing integration description","INTEGRATION_INVALID_INVOCATION_TEXT":"Invalid invocation text","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home no more available","UPLOAD_REQUIRES_MULTIPART_ENCODING":"Upload requires multipart encoding","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Upload: missing content type boundary","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: maximum size exceeded","UPLOAD_FILE_IS_EMPTY":"Upload: empty file","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Upload: invalid file type or signature","UPLOAD_MISSING_FILE_NAME":"Upload: missing file name","UPLOAD_INVALID_MEMORY_ID":"Upload: Invalid content ID","UPLOAD_MISSING_FILE_CONTENT":"Upload: Missing file content","ASSET_NOT_FOUND":"Asset not found","ASSET_NOT_ACCESSIBLE":"Asset not accessible","ASSET_MISSING_SESSION_ID":"Asset: missing session ID","ASSET_INVALID_FILE_NAME":"Asset: invalid file name","INVITATION_NOT_FOUND":"Invitation not found","INVITATION_NOT_ACCESSIBLE":"Invitation not accessible","INVITATION_ALREADY_ACCEPTED":"Invitation already accepted","INVITATION_ALREADY_REJECTED":"Invitation already rejected","INVITATION_MISSING_DESTINATION_EMAIL":"Invitation: missing destination email","INVITATION_DESTINATION_EMAIL_INVALID":"Invitation: destination email invalid","INVITATION_MISSING_TAG":"Invitation: missing tag","INVITATION_MISSING_PIN":"Invitation: PIN missing","INVITATION_INVALID_PIN":"Invitation: invalid PIN","INVITATION_INVALID_TYPE":"Invitation: invalid type","INVITATION_MISSING_DESTINATION_NAME":"Invitation: destination name missing","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invitation: tag and pin can\'t be changed","INVITATION_CANT_BE_CHANGED":"Intation: can\'t be changed","ACTIONLOG_INVALID_USER_ID":"Invalid user ID","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Date from: invalid format","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Date to: invalid format","ACTIONLOG_INVALID_MEMORI_ID":"Invalid Memori ID","CONSUMPTIONLOG_INVALID_TYPE":"Invalid log type","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Date from: invalid format","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Date to: invalid format","CONSUMPTIONLOG_INVALID_USER_ID":"Invalid user ID","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Invalid Memori ID","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notifications: Invalid chat log extraction period","PROCESS_INVALID_TYPE":"Invalid process type","PROCESS_ALREADY_RUNNING":"Process already running","PROCESS_NOT_FOUND":"Process not found","IMPORTCSV_MISSING_ROWS":"CSV import: missing rows","IMPORTCSV_MISSING_CSV":"CSV Import: Missing CSV","IMPORTCSV_MISSING_SEPARATOR":"CSV import: missing separator","IMPORTCSV_INVALID_SEPARATOR":"CSV import: invalid separator","IMPORTCSV_MISSING_HEADERS":"CSV import: missing headers","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV import: missing title variant separator","IMPORTCSV_INVALID_RECEIVER_ID":"CSV import: invalid receiver ID","IMPORTCSV_INVALID_MEDIA_LINK":"CSV import: invalid media link","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"CSV import: invalid link title","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"CSV import: undetectable character encoding","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"CSV Import: Cannot import to Secret Memories","IMPORTTXT_MISSING_ROWS":"Importing TXT: missing rows","IMPORTTXT_INVALID_GRANULARITY":"Import TXT: invalid granularity","IMPORTTXT_INVALID_RECEIVER_ID":"Import TXT: invalid receiver ID","IMPORTTXT_INVALID_MEDIA_LINK":"Import TXT: invalid media link","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Import TXT: invalid link title","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"TXT import: undetectable character encoding","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"TXT Import: Cannot import to Secret Memories","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Import TXT: import limit exceeded","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Import TXT: import on GPT-4 requires API key","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Import TXT: Import requires a paying plan","IMPORTTXT_BILLING_DENIED_PERMISSION":"Import TXT: you don\'t have enough credits for the operation","EXPORTCSV_MISSING_CSV_SPECS":"CSV export: missing CSV specifications","EXPORTCSV_MISSING_SEPARATOR":"CSV export: missing separator","EXPORTCSV_INVALID_SEPARATOR":"CSV export: invalid separator","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV export: missing title variant separator","EXPORTCSV_MISSING_NEW_LINE_CHAR":"CSV export: missing newline character","EXPORTCSV_INVALID_NEW_LINE_CHAR":"CSV export: invalid newline character","EXPORTCSV_MISSING_PASSWORD":"CSV export: missing password","EXPORTJSONL_MISSING_JSONL_SPECS":"JSONL export: missing JSONL specifications","EXPORTJSONL_MISSING_PLATFORM":"JSONL export: missing platform","EXPORTJSONL_INVALID_PLATFORM":"JSONL export: invalid platform","EXPORTJSONL_MISSING_PASSWORD":"JSONL export: missing password","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"JSONL Export: Export requires a paid plan","ANALYSIS_MISSING_QUERY":"Analysis: missing query","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analysis: Unable to analyze Secret Memories","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analysis: matching user query requires Deep Thinking","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Badge assignment: incorrect or missing credentials","BADGE_ASSIGNMENT_MISSING_REF_ID":"Badge assignment: ref ID missing","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Badge assignment: result not found","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Badge assignment: Missing assertion URL","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Badge Assignment: Missing Badge URL","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Badge assignment: missing issuer URL","BADGE_ASSIGNMENT_INVALID_URL":"Badge assignment: Invalid URL","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Badge assignment: missing recipient","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Badge assignment: unknown recipient type","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Badge assignment: missing recipient identity","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Badge assignment: missing recipient hash type","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Badge assignment: recipient hash type unknown","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Badge assignment: incorrect recipient identity","BADGE_NOT_FOUND":"Badge not found","OUTCOME_NO_DCM_CONFIGURED":"Outcome: no DCM configured","OUTCOME_USER_BADGES_DISABLED":"Outcome: user badges disabled","COMPLETION_CONFIG_MISSING_NAME":"Completions configuration: missing name","COMPLETION_CONFIG_MISSING_PROVIDER":"Completions configuration: missing provider","COMPLETION_CONFIG_MISSING_ENDPOINT":"Completions configuration: missing endpoint","COMPLETION_CONFIG_MISSING_API_KEY":"Completions configuration: missing API key","COMPLETION_CONFIG_MISSING_MODEL":"Completions configuration: missing model","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Completions configuration: at least one completions type must be specified","COMPLETION_CONFIG_INVALID_NAME":"Completions configuration: invalid name","COMPLETION_CONFIG_INVALID_PURPOSE":"Completions configuration: invalid completions type","COMPLETION_CONFIG_INVALID_ENDPOINT":"Completions configuration: invalid endpoint","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Completions configuration: inconsistent endpoint","COMPLETION_CONFIG_INVALID_PROVIDER":"Completions configuration: invalid provider","COMPLETION_CONFIG_NOT_FOUND":"Completions configuration: not found","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Completions configuration: not accessible","COMPLETION_CONFIG_NAME_RESERVED":"Completions configuration: name reserved","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Completions configuration: name already exists","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Completions configuration: visibility change not allowed"}}');var rG;rG=JSON.parse('{"yes":"Oui","no":"Non","confirm":"Confirmer","apply":"Appliquer","cancel":"Annuler","show":"Montrer","hide":"Cacher","send":"Envoyer","close":"Fermer","edit":"Modifier","delete":"Supprimer","loading":"Chargement","expand":"Développer","collapse":"Effondrement","fullscreenEnter":"Entrez en plein écran","fullscreenExit":"Quitter le plein écran","center":"Centre","bottom":"Bas","hidden":"Caché","day":"Jour","month":"Mois","year":"Année","createdAt":"Date de création","selected":"Choisi","page":"page","actions":"Actes","next":"Suivant","previous":"Précédent","copy":"Copie","copyRawCode":"Copier le code brut","copyToClipboard":"Copier dans le presse-papier","showOriginalText":"Afficher l\'original","showTranslatedText":"Afficher la traduction","exactPosition":"Position exacte","uncertain":"Incertain","question":"Question","nothingFound":"Rien trouvé","venue":"Lieu","searchVenue":"Rechercher un lieu...","memoriBlockedTitle":"Bloqué","memoriBlockedUntil":"Memori bloqué jusqu\'à {{date}}","memoriBlockedAnon":"Actuellement \\"{{name}}\\"Je ne peux pas répondre, reviens ici {{date}}","memoriBlockedReasonExceedChats":"car il a dépassé le seuil mensuel de chats autorisés.","memoriBlockedGiverHelper":"Vous pouvez toujours le gérer en tant qu\'administrateur, mais les autres utilisateurs ne pourront pas interagir avec lui.","generatedByAI":"Réponse générée par l\'IA, peut occasionnellement générer des informations incorrectes","whyThisAnswer":"Pourquoi cette réponse ?","whyThisAnswerHelper":"Cette réponse a été générée automatiquement par une intelligence artificielle basée sur ces contenus vérifiés.","completionsEnabled":"L\'IA avancée peut répondre avec des réponses générées automatiquement qui peuvent parfois contenir des informations incorrectes","completionProviderDown":"Ce Twin est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. ","completionProviderFallbackName":"un prestataire externe","completionProviderCheckStatusPage":"Vérifier la page d\'état","boardOfExperts":"Conseil d\'experts","birthDate":"Date de naissance","birthDateHelper":"Nous demandons votre date de naissance uniquement pour activer ou désactiver les fonctionnalités qui ont des restrictions d\'âge","underage":"Vous devez être au moins {{age}} ans pour s\'inscrire.","underageTwinSession":"Vous devez être au moins {{age}} ans pour interagir avec ce Twin.","errorFetchingSession":"Erreur lors du chargement de la session","errorGettingReferralURL":"Erreur lors du chargement du référent","errorReopeningSession":"Erreur lors de la re-ouverture de la session","ageVerification":"Vérification de l\'âge","ageVerificationText":"Pour interagir avec ce Twin, vous devez être au minimum {{minAge}} ans.","nsfw":"NSFW : Ce jumeau contient du contenu pour adultes","deepThought":"Pensée profonde","deepThoughtHelper":"Deep Thought est une fonctionnalité avancée de l\'IA qui vous permettra d\'exploiter pleinement vos conversations en les gardant une trace. ","deepThoughtDisclaimerTitle":"Pensée profonde activée","deepThoughtDisclaimer":"Deep Thought est une fonctionnalité avancée de l\'IA qui vous permettra d\'exploiter pleinement vos conversations en les gardant une trace. ","deepThoughtPreDisclaimerUnlogged":"Connectez-vous pour activer Deep Thought.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought est désactivé car vous n\'avez pas consenti à son utilisation, vous pouvez le modifier à tout moment dans les paramètres de votre compte.","notEnoughCredits":"L\'auteur de ce Twin n\'a pas suffisamment de crédits pour répondre à votre question.","knownFacts":{"title":"Faits connus","description":"Détails des informations partagées entre vous et {{memoriName}}","type":"Taper","typeShortTerm":"Court terme","typeLongTerm":"Long terme","typeHelper":"Types :\\n","text":"Texte","deleteSuccess":"Fait connu supprimé","deleteConfirmTitle":"Supprimer un fait connu","deleteConfirmMessage":"Êtes-vous sûr de vouloir supprimer ce fait connu ?","deleteSelectedConfirmTitle":"Supprimer les faits connus sélectionnés","deleteSelectedConfirmMessage":"Etes-vous sûr de vouloir supprimer les faits connus sélectionnés ?"},"auth":{"title":"Authentification","useRecoveryTokens":"Utiliser des jetons de récupération","tokens":"Jetons","addToken":"Ajouter un jeton","usePassword":"Utiliser le mot de passe","atLeast":"Au moins"},"widget":{"instruct":"Instruire","test":"Test","sound":"Son","position":"Préférences de position","settings":"Paramètres","share":"Partager","sendOnKeypress":"Appuyez sur Entrée pour envoyer","sendOnClick":"Cliquez sur Soumettre","boardOfExperts":"Conseil d\'experts","showExpertsInTheBoard":"Afficher les experts dans ce forum","expertsInTheBoard":"Experts dans ce forum","goToIntegrationsToCustomizeAvatar":"Pour personnaliser l\'avatar, allez dans Partager et personnalisez la page publique"},"write_and_speak":{"micButtonPopover":"Cliquez sur le bouton pour parler","micButtonPopoverListening":"Cliquez sur le bouton pour arrêter de parler","pageInstructExplanation":"Pour m\'apprendre de nouvelles choses, cliquez sur le bouton INSTRUCTEZ-MOI pour commencer","pageTryMeExplanation":"Pour me parler, cliquez sur le bouton START pour commencer","instructButton":"INSTRUCTEZ-MOI","tryMeButton":"COMMENCER","chatHistory":"Historique des discussions","exportChatHistory":"Exporter l\'historique des discussions","exportChatHistoryMessage":"Voulez-vous exporter l’historique des discussions ?","chatBotButtonText":"CLIQUEZ ICI POUR OUVRIR LE CHATBOT","conversationStartedLabel":"La conversation a commencé le","settingsHeaderLabel":"Configurez ici si vous souhaitez définir la mémoire comme parole continue et modifiez les secondes de silence si vous souhaitez les personnaliser.","continuousSpeechLabel":"Discours continu","holdToSpeak":"Attends pour parler","releaseToEndListening":"Relâcher pour terminer l\'écoute","pressAndHoldToSpeak":"Appuyez et maintenez pour parler","microphoneMode":"Mode micro","hideEmissionsLabel":"Masquer le texte émis par le Twin","secondsLabel":"Régler les secondes","controlsPosition":"Position des commandes","tryMeHeaderLabel":"ESSAYER","unknownPosition":"Position inconnue","fieldPlace":"Écrivez le lieu (par exemple « Milano »)","showMapLinkFor":"Afficher la position sur la carte","useMyPosition":"Utiliser ma position","myPosition":"Votre poste","updatingPosition":"Mise à jour du poste...","placeNotFound":"Lieu introuvable !","requirePosition":"Insérez votre position avant de commencer","requirePositionHelp":"Pour parler à {{name}} vous devez décider si vous souhaitez ou non fournir votre poste. ","dontWantToProvidePosition":"Je ne veux pas donner ma position","attachmentsLabel":"Enrichissez votre message","iWantToTalkToIn":"je veux parler à {{name}} dans"},"media":{"title":"Titre","editAttributes":"Modifier les attributs du média","uploadMimeTypeNotAllowed":"Le type de fichier n\'est pas autorisé","uploadSizeLimitMessage":"La taille téléchargée est trop grande (max {{size}}Mo)","uploadWrongResolutionMessage":"La résolution doit être {{width}}x{{height}} pixels","memoriNameAlreadyUsed":"Vous avez déjà un jumeau portant ce nom","uploadHelperImages":"Téléchargez un fichier avec l\'extension png, jpg, jpeg ou gif, et ayant au maximum une taille de {{size}}Mo","uploadHelper":"Téléchargez un fichier ayant au maximum une taille de {{size}}Mo","uploadError":"Échec du téléchargement","square":"carré","scaleRatio":"Rapport d\'échelle","addMediaLabel":"Ajouter un média","insertThisMediaMsg":"Insérez ces médias","mediaUploadMessage":"Cliquez pour charger un nouveau média","addLinkLabel":"Ajouter un lien","linkKey":"URL","linkValue":"Titre du lien","insertThisLink":"Insérer un lien vers {{url}} avec titre {{title}}"},"gamification":{"level":"Niveau","points":"points","memoriReachedLevel":"est devenu plus évolué et a atteint le niveau","levelGoToStatistics":"{{memori}} est au niveau {{level}} avec {{points}} points. ","congratulationsNewLevel":"Félicitations, vous avez atteint un nouveau niveau !","congratulationsNewLevelDescription":"Votre Memori est devenu plus évolué avec {{points}} points, regardez le","statistics":"statistiques"},"login":{"login":"Se connecter","logout":"Déconnexion","user":"Utilisateur","loggedDrawerTitle":"Salut, {{name}}!","loginDrawerTitle":"Se connecter","signupDrawerTitle":"S\'inscrire","newUserSignUp":"Nouvel utilisateur ?","signUp":"S\'inscrire!","alreadyHaveAnAccount":"Vous avez déjà un compte ?","backToLogin":"Retour à la connexion","registrationDisabled":"L\'inscription est désactivée","contactAdmin":"Contacter l\'administrateur pour demander l\'accès","userNameOrEmail":"Nom d\'utilisateur ou email","email":"E-mail","emailFormatError":"Veuillez insérer un email valide","username":"Nom d\'utilisateur","usernameContainsReservedWord":"Le nom d\'utilisateur contient un mot réservé, veuillez en choisir un autre","usernameFormatError":"Le nom d\'utilisateur doit comporter au moins 3 caractères et contenir uniquement des lettres, des chiffres et _","otpCode":"Le code de vérification","resendVerificationCode":"Renvoyer le code","resentVerificationCode":"Code de confirmation envoyé ! ","password":"Mot de passe","newPassword":"Nouveau mot de passe","confirmPassword":"Confirmez le mot de passe","currentPassword":"Mot de passe actuel","passwordMatchingError":"Les mots de passe ne correspondent pas.","passwordFormatError":"Le mot de passe doit comporter au moins 8 caractères et contenir au moins un chiffre, une lettre majuscule, une lettre minuscule et un symbole.","pwdWeak":"Faible","pwdAcceptable":"Acceptable","pwdStrong":"Fort","mustChangePassword":"Vous devez changer votre mot de passe","passwordChange":"Changer le mot de passe","emailChange":"Changer d\'e-mail","avatarChange":"Changer d\'avatar","underage":"Vous devez être au moins {{age}} ans pour s\'inscrire.","optional":"Facultatif","birthDate":"Date de naissance","birthDateHelper":"Nous demandons votre date de naissance uniquement pour activer ou désactiver les fonctionnalités qui ont des restrictions d\'âge","missingData":"Informations manquantes","missingDataHelper":"Nous savons que c\'est un peu ennuyeux, mais nous avons besoin de plus d\'informations pour finaliser votre inscription.","goToAccountToChangeYourPreferences":"Vous pouvez modifier votre choix à tout moment depuis la page de votre compte.","deepThoughtExplaination":"Deep Thought est une fonctionnalité avancée de l\'IA qui vous permettra d\'exploiter pleinement vos conversations en les gardant une trace. ","tnCAndPPAcceptedHelper":"Depuis votre dernière connexion, les conditions générales et la politique de confidentialité ont changé. ","privacyLabel":"J\'ai lu et accepté le","privacyAndCookiePolicy":"Politique de confidentialité et de cookies","and":"et","termsOfService":"Conditions d\'utilisation","pAndCUAccepted":"J\'accepte les conditions d\'utilisation de Deep Thought","editAccount":"Modifier le compte","save":"Sauvegarder"},"success":"Succès","Error":"Erreur","internal server error":"Oupsie, désolé... Quelque chose s\'est mal passé sur le serveur","error":"Erreur","error.loading":"Erreur lors du chargement du contenu.","error.generic":"Oupsie, désolé... quelque chose s\'est mal passé.","error.serverNotResponding":"Nous effectuons une maintenance ou publions des mises à jour. ","error.notFound":"Oupsie, nous n\'avons pas trouvé la page que vous cherchiez.","error.goBackTo":"Vous pouvez essayer de revenir au","error.reloadPage":"Recharger la page","error.tryAgain":"Essayer à nouveau","error.unauthorized":"Vous n\'êtes pas autorisé à consulter ce contenu.","error.unprocessableEntity":"Erreur lors du traitement de la demande. ","errors":{"TENANT_NOT_FOUND":"Locataire introuvable","TENANT_REGISTRATION_DISABLED":"L\'inscription sur cette plateforme est désactivée","TENANT_MISSING_NAME":"Locataire : nom manquant","TENANT_MAX_USERS_REACHED":"Nombre maximum d\'utilisateurs atteint","TENANT_MAX_ADMINS_REACHED":"Nombre maximum d\'utilisateurs administrateurs atteint","TENANT_ALREADY_EXISTS":"Le locataire existe déjà","TENANT_MISSING_DESCRIPTION":"Locataire : description manquante","TENANT_CANT_SET_COMPLETION_PROVIDER":"Locataire : impossible de définir le fournisseur de complétion","USER_NOT_CONFIRMED":"L\'utilisateur n\'est toujours pas confirmé","USER_NOT_FOUND":"Utilisateur introuvable","USER_OR_PASSWORD_INVALID":"Utilisateur ou mot de passe invalide","USER_MUST_CHANGE_PASSWORD":"Vous devez changer votre mot de passe","USER_MUST_ENTER_VERIFICATION_CODE":"Vous devez entrer le code de vérification","USER_MISSING_TENANT":"Utilisateur : locataire manquant","USER_MISSING_NAME":"Utilisateur : le nom est manquant","USER_MISSING_PASSWORD":"Utilisateur : mot de passe manquant","USER_MISSING_EMAIL":"Utilisateur : E-mail manquant","USER_MISSING_VERIFICATION_CODE":"Utilisateur : Code de vérification manquant","USER_NAME_ALREADY_USED":"Nom d\'utilisateur déjà utilisé","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"Le mot de passe ne répond pas aux règles de sécurité","USER_EMAIL_ALREADY_USED":"E-mail déjà utilisé","USER_EMAIL_INVALID":"E-mail invalide","USER_VERIFICATION_CODE_INVALID":"Code de vérification invalide","USER_MISSING_NAME_OR_EMAIL":"Nom d\'utilisateur ou e-mail manquant","USER_NAME_INVALID":"Nom d\'utilisateur invalide","USER_HAS_ONE_OR_MORE_MEMORI":"L\'utilisateur possède une ou plusieurs mémoires","USER_MISSING_NEW_PASSWORD":"Utilisateur : nouveau mot de passe manquant","USER_NOTHING_TO_DO":"Rien à faire","USER_CANT_CREATE_MEMORI":"L\'utilisateur n\'est pas autorisé à créer des Memori","USER_MAX_MEMORI_REACHED":"Nombre maximum de Memori atteint","USER_TOO_MANY_ATTEMPTS":"Trop de tentatives","USER_MUST_ACCEPT_TNC_AND_PP":"Vous devez accepter les termes et conditions","USER_BIRTH_DATE_CANT_BE_CHANGED":"La date de naissance ne peut pas être modifiée","USER_CANT_SET_COMPLETION_PROVIDER":"Utilisateur : non autorisé à gérer le fournisseur de complétion","USER_CANT_ENABLE_DEEP_THOUGHT":"Utilisateur : non autorisé à gérer Deep Thought","USER_CANT_ENABLE_DCM_INTEGRATION":"Utilisateur : non autorisé à gérer l\'intégration DCM","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Utilisateur : non autorisé à gérer des chaînages ou des groupes d\'experts","USER_CREATION_BILLING_DENIED_PERMISSION":"Vous n\'avez pas assez de crédits pour créer un Twin","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"L\'utilisateur dispose d\'une ou plusieurs configurations de complétion","USER_CANT_BE_DELETED":"L\'utilisateur ne peut pas être supprimé","MEMORI_NOT_FOUND":"Mémoire introuvable","MEMORI_NOT_ACCESSIBLE":"Mémoires non accessibles","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Seul le propriétaire peut modifier le tag ou le code PIN","SESSION_NOT_FOUND":"Séance introuvable","SESSION_IS_NOT_ADMINISTRATIVE":"Séance non administrative","SESSION_EXPIRED":"Session expirée","MEMORI_MISSING_CONFIGURATION":"Twin : configuration manquante","MEMORI_CONFIGURATION_NOT_FOUND":"Twin : configuration introuvable","MEMORI_INVALID_PRIVACY_TYPE":"Twin : type de confidentialité non valide","MEMORI_MISSING_PASSWORD":"Twin : mot de passe manquant","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Twin : nombre total de jetons de récupération invalides","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Twin : nombre minimum de jetons de récupération invalides","MEMORI_INVALID_VOICE_TYPE":"Twin : type de voix invalide","MEMORI_MISSING_NAME":"Jumeau : nom manquant","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Twin : mot de passe ou jeton de récupération manquant","MEMORI_INVALID_ID":"Jumeau : pièce d\'identité invalide","MEMORI_NAME_ALREADY_USED":"Nom jumeau déjà utilisé","MEMORI_INVALID_PIN":"Twin : code PIN invalide","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Twin : le changement de TAG et de PIN nécessite des opérations distinctes","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Twin : aucun mot de passe requis lorsqu\'il est public","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Deep Thought nécessite que les complétions soient activées","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"Le groupe d\'experts exige que les complétions soient activées","MEMORI_INVALID_COMPLETION_CONFIG":"Twin : configuration des complétions non valide","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Transfert : utilisateur de destination manquant","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Transfert : ID utilisateur de destination non valide","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Transfert : données utilisateur de destination non valides","MEMORI_TRANSFER_NOTHING_TO_DO":"Transfert : rien à faire","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Mémoires : la configuration ne peut pas être modifiée","MEMORI_MISSING_NEW_PASSWORD":"Souvenirs : nouveau mot de passe manquant","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"La fonctionnalité nécessite un abonnement","INTEGRATION_NOT_FOUND":"Intégration introuvable","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Date invalide du format","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Date à formater invalide","INTEGRATION_INVALID_TYPE":"Type d\'intégration invalide","INTEGRATION_ALREADY_EXISTS":"L\'intégration existe déjà","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Les mémoires non publiques ne peuvent pas être intégrées","INTEGRATION_MISSING_INVOCATION_TEXT":"Intégration : texte d\'invocation manquant","INTEGRATION_MISSING_DEVICE_EMAILS":"Intégration : e-mail de l\'appareil manquant","INTEGRATION_MEMORI_IS_EMPTY":"Les mémoires vides ne peuvent pas être intégrées","INTEGRATION_MISSING_PRIVACY_POLICY":"Intégration : politique de confidentialité manquante","INTEGRATION_MISSING_CATEGORY":"Catégorie d\'intégration manquante","INTEGRATION_MISSING_DESCRIPTION":"Description de l\'intégration manquante","INTEGRATION_INVALID_INVOCATION_TEXT":"Texte d\'appel invalide","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home n\'est plus disponible","UPLOAD_REQUIRES_MULTIPART_ENCODING":"Le téléchargement nécessite un codage en plusieurs parties","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Téléchargement : limite de type de contenu manquante","UPLOAD_MAX_LENGTH_EXCEEDED":"Téléchargement : taille maximale dépassée","UPLOAD_FILE_IS_EMPTY":"Télécharger : fichier vide","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Téléchargement : type de fichier ou signature non valide","UPLOAD_MISSING_FILE_NAME":"Télécharger : nom de fichier manquant","UPLOAD_INVALID_MEMORY_ID":"Télécharger : ID de contenu invalide","UPLOAD_MISSING_FILE_CONTENT":"Télécharger : contenu du fichier manquant","ASSET_NOT_FOUND":"Actif introuvable","ASSET_NOT_ACCESSIBLE":"Actif non accessible","ASSET_MISSING_SESSION_ID":"Élément : ID de session manquant","ASSET_INVALID_FILE_NAME":"Élément : nom de fichier non valide","INVITATION_NOT_FOUND":"Invitation introuvable","INVITATION_NOT_ACCESSIBLE":"Invitation non accessible","INVITATION_ALREADY_ACCEPTED":"Invitation déjà acceptée","INVITATION_ALREADY_REJECTED":"Invitation déjà rejetée","INVITATION_MISSING_DESTINATION_EMAIL":"Invitation : e-mail de destination manquant","INVITATION_DESTINATION_EMAIL_INVALID":"Invitation : e-mail de destination invalide","INVITATION_MISSING_TAG":"Invitation : étiquette manquante","INVITATION_MISSING_PIN":"Invitation : code PIN manquant","INVITATION_INVALID_PIN":"Invitation : code PIN invalide","INVITATION_INVALID_TYPE":"Invitation : type non valide","INVITATION_MISSING_DESTINATION_NAME":"Invitation : le nom de la destination est manquant","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invitation : le tag et le code PIN ne peuvent pas être modifiés","INVITATION_CANT_BE_CHANGED":"Intation : ne peut pas être modifié","ACTIONLOG_INVALID_USER_ID":"ID utilisateur invalide","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Date de : format non valide","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Date de : format non valide","ACTIONLOG_INVALID_MEMORI_ID":"Identifiant Memori invalide","CONSUMPTIONLOG_INVALID_TYPE":"Type de journal invalide","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Date de : format non valide","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Date de : format non valide","CONSUMPTIONLOG_INVALID_USER_ID":"ID utilisateur invalide","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Identifiant Memori invalide","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notifications : période d\'extraction du journal de discussion non valide","PROCESS_INVALID_TYPE":"Type de processus invalide","PROCESS_ALREADY_RUNNING":"Processus déjà en cours","PROCESS_NOT_FOUND":"Processus introuvable","IMPORTCSV_MISSING_ROWS":"Import CSV : lignes manquantes","IMPORTCSV_MISSING_CSV":"Importation CSV : CSV manquant","IMPORTCSV_MISSING_SEPARATOR":"Import CSV : séparateur manquant","IMPORTCSV_INVALID_SEPARATOR":"Importation CSV : séparateur non valide","IMPORTCSV_MISSING_HEADERS":"Import CSV : en-têtes manquants","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Import CSV : séparateur de variante de titre manquant","IMPORTCSV_INVALID_RECEIVER_ID":"Importation CSV : ID de destinataire non valide","IMPORTCSV_INVALID_MEDIA_LINK":"Importation CSV : lien média non valide","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"Importation CSV : titre du lien invalide","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"Import CSV : encodage de caractères indétectable","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"Importation CSV : impossible d\'importer dans les mémoires secrètes","IMPORTTXT_MISSING_ROWS":"Importation de TXT : lignes manquantes","IMPORTTXT_INVALID_GRANULARITY":"Importer TXT : granularité invalide","IMPORTTXT_INVALID_RECEIVER_ID":"Importer TXT : ID de destinataire invalide","IMPORTTXT_INVALID_MEDIA_LINK":"Importer TXT : lien média non valide","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Importer TXT : titre du lien invalide","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"Import TXT : encodage de caractères indétectable","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"Importation TXT : impossible d\'importer vers les mémoires secrètes","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Importer TXT : limite d\'importation dépassée","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Importer TXT : l\'importation sur GPT-4 nécessite une clé API","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Importer TXT : l\'importation nécessite un forfait payant","IMPORTTXT_BILLING_DENIED_PERMISSION":"Importer TXT : vous n\'avez pas assez de crédits pour l\'opération","EXPORTCSV_MISSING_CSV_SPECS":"Exportation CSV : spécifications CSV manquantes","EXPORTCSV_MISSING_SEPARATOR":"Export CSV : séparateur manquant","EXPORTCSV_INVALID_SEPARATOR":"Exportation CSV : séparateur non valide","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Exportation CSV : séparateur de variante de titre manquant","EXPORTCSV_MISSING_NEW_LINE_CHAR":"Exportation CSV : caractère de nouvelle ligne manquant","EXPORTCSV_INVALID_NEW_LINE_CHAR":"Exportation CSV : caractère de nouvelle ligne non valide","EXPORTCSV_MISSING_PASSWORD":"Export CSV : mot de passe manquant","EXPORTJSONL_MISSING_JSONL_SPECS":"Export JSONL : spécifications JSONL manquantes","EXPORTJSONL_MISSING_PLATFORM":"Export JSONL : plateforme manquante","EXPORTJSONL_INVALID_PLATFORM":"Export JSONL : plateforme non valide","EXPORTJSONL_MISSING_PASSWORD":"Export JSONL : mot de passe manquant","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"Exportation JSONL : l\'exportation nécessite un forfait payant","ANALYSIS_MISSING_QUERY":"Analyse : requête manquante","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analyse : impossible d\'analyser les souvenirs secrets","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analyse : la correspondance avec la requête de l\'utilisateur nécessite une réflexion approfondie","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Attribution des badges : identifiants incorrects ou manquants","BADGE_ASSIGNMENT_MISSING_REF_ID":"Affectation du badge : ID de référence manquant","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Attribution des badges : résultat introuvable","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Attribution du badge : URL d\'assertion manquante","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Attribution du badge : URL du badge manquante","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Attribution du badge : URL de l\'émetteur manquante","BADGE_ASSIGNMENT_INVALID_URL":"Attribution du badge : URL invalide","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Affectation du badge : destinataire manquant","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Attribution du badge : type de destinataire inconnu","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Attribution du badge : identité du destinataire manquante","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Attribution du badge : type de hachage du destinataire manquant","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Attribution du badge : type de hachage du destinataire inconnu","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Attribution du badge : identité du destinataire incorrecte","BADGE_NOT_FOUND":"Badge introuvable","OUTCOME_NO_DCM_CONFIGURED":"Résultat : aucun DCM configuré","OUTCOME_USER_BADGES_DISABLED":"Résultat : badges utilisateur désactivés","COMPLETION_CONFIG_MISSING_NAME":"Configuration des complétions : nom manquant","COMPLETION_CONFIG_MISSING_PROVIDER":"Configuration des complétions : fournisseur manquant","COMPLETION_CONFIG_MISSING_ENDPOINT":"Configuration des complétions : point de terminaison manquant","COMPLETION_CONFIG_MISSING_API_KEY":"Configuration des complétions : clé API manquante","COMPLETION_CONFIG_MISSING_MODEL":"Configuration des complétions : modèle manquant","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Configuration des complétions : au moins un type de complétions doit être spécifié","COMPLETION_CONFIG_INVALID_NAME":"Configuration des complétions: nom non valide","COMPLETION_CONFIG_INVALID_PURPOSE":"Configuration des complétions : type de complétions non valide","COMPLETION_CONFIG_INVALID_ENDPOINT":"Configuration des achèvements : point de terminaison non valide","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Configuration des complétions : point de terminaison incohérent","COMPLETION_CONFIG_INVALID_PROVIDER":"Configuration des complétions : fournisseur non valide","COMPLETION_CONFIG_NOT_FOUND":"Configuration des complétions : introuvable","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Configuration des complétions : non accessible","COMPLETION_CONFIG_NAME_RESERVED":"Configuration des complétions : nom réservé","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Configuration des complétions : le nom existe déjà","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Configuration des complétions : changement de visibilité non autorisé"}}');var iG;iG=JSON.parse('{"yes":"Ja","no":"NEIN","confirm":"Bestätigen","apply":"Anwenden","cancel":"Stornieren","show":"Zeigen","hide":"Verstecken","send":"Schicken","close":"Schließen","edit":"Bearbeiten","delete":"Löschen","loading":"Laden","expand":"Expandieren","collapse":"Zusammenbruch","fullscreenEnter":"Geben Sie den Vollbildmodus ein","fullscreenExit":"Beenden Sie den Vollbildmodus","center":"Center","bottom":"Unten","hidden":"Versteckt","day":"Tag","month":"Monat","year":"Jahr","createdAt":"Erstellungsdatum","selected":"Ausgewählt","page":"Seite","actions":"Aktionen","next":"Nächste","previous":"Vorherige","copy":"Kopie","copyRawCode":"Rohcode kopieren","copyToClipboard":"In die Zwischenablage kopieren","showOriginalText":"Original anzeigen","showTranslatedText":"Übersetzung anzeigen","exactPosition":"Genaue Position","uncertain":"Unsicher","question":"Frage","nothingFound":"Nichts gefunden","venue":"Veranstaltungsort","searchVenue":"Veranstaltungsort suchen...","memoriBlockedTitle":"Blockiert","memoriBlockedUntil":"Memori blockiert bis {{date}}","memoriBlockedAnon":"Momentan \\"{{name}}„Kann nicht antworten, komm hierher zurück {{date}}","memoriBlockedReasonExceedChats":"weil der monatliche Schwellenwert für erlaubte Chats überschritten wurde.","memoriBlockedGiverHelper":"Sie können es weiterhin als Administrator verwalten, andere Benutzer können jedoch nicht damit interagieren.","generatedByAI":"Von KI generierte Antworten können gelegentlich falsche Informationen generieren","whyThisAnswer":"Warum diese Antwort?","whyThisAnswerHelper":"Diese Antwort wurde automatisch von einer künstlichen Intelligenz auf Basis dieser verifizierten Inhalte generiert.","completionsEnabled":"Fortschrittliche KI kann mit automatisch generierten Antworten reagieren, die manchmal falsche Informationen enthalten können","completionProviderDown":"Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. ","completionProviderFallbackName":"ein externer Anbieter","completionProviderCheckStatusPage":"Überprüfen Sie die Statusseite","boardOfExperts":"Expertengremium","birthDate":"Geburtsdatum","birthDateHelper":"Wir fragen nur nach Ihrem Geburtsdatum, um Funktionen zu aktivieren oder zu deaktivieren, für die Altersbeschränkungen gelten","underage":"Das müssen Sie mindestens sein {{age}} Jahre alt, um sich anzumelden.","underageTwinSession":"Das müssen Sie mindestens sein {{age}} Jahre alt, um mit diesem Zwilling zu interagieren.","errorFetchingSession":"Fehler beim Laden der Sitzung","errorGettingReferralURL":"Fehler beim Laden des Referrals","errorReopeningSession":"Fehler beim erneuten Öffnen der Sitzung","ageVerification":"Altersüberprüfung","ageVerificationText":"Um mit diesem Zwilling interagieren zu können, müssen Sie mindestens sein {{minAge}} Jahre alt.","nsfw":"NSFW: Dieser Twin enthält Inhalte für Erwachsene","deepThought":"Tiefer Gedanke","deepThoughtHelper":"Deep Thought ist eine erweiterte Funktion der KI, die es Ihnen ermöglicht, Ihre Gespräche voll auszuschöpfen, indem Sie sie verfolgen. ","deepThoughtDisclaimerTitle":"Deep Thought aktiviert","deepThoughtDisclaimer":"Deep Thought ist eine erweiterte Funktion der KI, die es Ihnen ermöglicht, Ihre Gespräche voll auszuschöpfen, indem Sie sie verfolgen. ","deepThoughtPreDisclaimerUnlogged":"Melden Sie sich an, um Deep Thought zu aktivieren.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought ist deaktiviert, da Sie der Nutzung nicht zugestimmt haben. Sie können dies jederzeit in Ihren Kontoeinstellungen ändern.","notEnoughCredits":"Der Autor dieses Zwillings verfügt nicht über genügend Credits, um Ihre Frage zu beantworten.","knownFacts":{"title":"Bekannte Fakten","description":"Einzelheiten zu den Informationen, die zwischen Ihnen und geteilt werden {{memoriName}}","type":"Typ","typeShortTerm":"Kurzfristig","typeLongTerm":"Langfristig","typeHelper":"Typen:\\n","text":"Text","deleteSuccess":"Bekannte Tatsache gelöscht","deleteConfirmTitle":"Bekannte Tatsache löschen","deleteConfirmMessage":"Sind Sie sicher, dass Sie diese bekannte Tatsache löschen möchten?","deleteSelectedConfirmTitle":"Ausgewählte bekannte Fakten löschen","deleteSelectedConfirmMessage":"Sind Sie sicher, dass Sie die ausgewählten bekannten Fakten löschen möchten?"},"auth":{"title":"Authentifizierung","useRecoveryTokens":"Verwenden Sie Wiederherstellungstoken","tokens":"Token","addToken":"Token hinzufügen","usePassword":"Passwort verwenden","atLeast":"Mindestens"},"widget":{"instruct":"Anweisen","test":"Prüfen","sound":"Klang","position":"Positionspräferenzen","settings":"Einstellungen","share":"Aktie","sendOnKeypress":"Drücken Sie zum Senden die Eingabetaste","sendOnClick":"Klicken Sie auf Senden","boardOfExperts":"Expertengremium","showExpertsInTheBoard":"Experten in diesem Forum anzeigen","expertsInTheBoard":"Experten in diesem Forum","goToIntegrationsToCustomizeAvatar":"Um den Avatar anzupassen, gehen Sie zu „Teilen“ und passen Sie die öffentliche Seite an"},"write_and_speak":{"micButtonPopover":"Klicken Sie auf die Schaltfläche, um zu sprechen","micButtonPopoverListening":"Klicken Sie auf die Schaltfläche, um das Sprechen zu stoppen","pageInstructExplanation":"Um mir neue Dinge beizubringen, klicken Sie auf die Schaltfläche „ANLEITEN“, um zu beginnen","pageTryMeExplanation":"Um mit mir zu sprechen, klicken Sie auf die Schaltfläche START, um zu beginnen","instructButton":"WEISE MICH AN","tryMeButton":"START","chatHistory":"Chatverlauf","exportChatHistory":"Chatverlauf exportieren","exportChatHistoryMessage":"Möchten Sie den Chatverlauf exportieren?","chatBotButtonText":"KLICKEN SIE HIER, UM CHATBOT ZU ÖFFNEN","conversationStartedLabel":"Das Gespräch begann am","settingsHeaderLabel":"Richten Sie hier ein, wenn Sie die Memori als Dauerrede einstellen möchten, und ändern Sie die Stillesekunden, wenn Sie sie anpassen möchten.","continuousSpeechLabel":"Kontinuierliche Rede","holdToSpeak":"Halten Sie gedrückt, um zu sprechen","releaseToEndListening":"Lassen Sie los, um das Hören zu beenden","pressAndHoldToSpeak":"Zum Sprechen gedrückt halten","microphoneMode":"Mikrofonmodus","hideEmissionsLabel":"Vom Zwilling ausgegebenen Text ausblenden","secondsLabel":"Sekunden einstellen","controlsPosition":"Steuert die Position","tryMeHeaderLabel":"VERSUCHEN","unknownPosition":"Unbekannte Position","fieldPlace":"Geben Sie den Ort ein (z. B. „Mailand“)","showMapLinkFor":"Zeigen Sie die Position auf der Karte an","useMyPosition":"Nutzen Sie meine Position","myPosition":"Ihre Position","updatingPosition":"Position wird aktualisiert...","placeNotFound":"Ort nicht gefunden!","requirePosition":"Geben Sie vor dem Start Ihre Position ein","requirePositionHelp":"Zum Reden {{name}} Sie müssen entscheiden, ob Sie Ihre Position angeben oder nicht. ","dontWantToProvidePosition":"Ich möchte meine Position nicht bekannt geben","attachmentsLabel":"Bereichern Sie Ihre Botschaft","iWantToTalkToIn":"Ich möchte mit reden {{name}} In"},"media":{"title":"Titel","editAttributes":"Medienattribute bearbeiten","uploadMimeTypeNotAllowed":"Der Dateityp ist nicht zulässig","uploadSizeLimitMessage":"Die hochgeladene Größe ist zu groß (max {{size}}MB)","uploadWrongResolutionMessage":"Die Auflösung muss sein {{width}}X{{height}} Pixel","memoriNameAlreadyUsed":"Du hast bereits einen Zwilling mit diesem Namen","uploadHelperImages":"Laden Sie eine Datei mit der Erweiterung PNG, JPG, JPEG oder GIF hoch und darf maximal eine Größe von haben {{size}}MB","uploadHelper":"Laden Sie eine Datei mit einer maximalen Größe von hoch {{size}}MB","uploadError":"Der Upload ist fehlgeschlagen","square":"Quadrat","scaleRatio":"Maßstabsverhältnis","addMediaLabel":"Fügen Sie ein Medium hinzu","insertThisMediaMsg":"Legen Sie diese Medien ein","mediaUploadMessage":"Klicken Sie hier, um ein neues Medium zu laden","addLinkLabel":"Fügen Sie einen Link hinzu","linkKey":"URL","linkValue":"Linktitel","insertThisLink":"Fügen Sie einen Link ein {{url}} mit Titel {{title}}"},"gamification":{"level":"Ebene","points":"Punkte","memoriReachedLevel":"entwickelte sich weiter und erreichte ein höheres Niveau","levelGoToStatistics":"{{memori}} ist auf gleicher Höhe {{level}} mit {{points}} Punkte. ","congratulationsNewLevel":"Herzlichen Glückwunsch, Sie haben ein neues Level erreicht!","congratulationsNewLevelDescription":"Ihre Memori wurden mit weiterentwickelt {{points}} Punkte, schauen Sie sich die an","statistics":"Statistiken"},"login":{"login":"Login","logout":"Abmelden","user":"Benutzer","loggedDrawerTitle":"Hallo, {{name}}!","loginDrawerTitle":"Login","signupDrawerTitle":"Melden Sie sich an","newUserSignUp":"Neuer Benutzer?","signUp":"Melden Sie sich an!","alreadyHaveAnAccount":"Sie haben bereits ein Konto?","backToLogin":"Zurück zum Login","registrationDisabled":"Die Registrierung ist deaktiviert","contactAdmin":"Wenden Sie sich an den Administrator, um Zugriff anzufordern","userNameOrEmail":"Benutzername oder E-Mail","email":"E-Mail","emailFormatError":"Bitte geben Sie eine gültige E-Mail-Adresse ein","username":"Benutzername","usernameContainsReservedWord":"Der Benutzername enthält ein reserviertes Wort. Bitte wählen Sie ein anderes","usernameFormatError":"Der Benutzername muss mindestens 3 Zeichen lang sein und darf nur Buchstaben, Zahlen und _ enthalten.","otpCode":"Bestätigungscode","resendVerificationCode":"Code erneut senden","resentVerificationCode":"Bestätigungscode gesendet! ","password":"Passwort","newPassword":"Neues Passwort","confirmPassword":"Passwort bestätigen","currentPassword":"Aktuelles Passwort","passwordMatchingError":"Passwörter stimmen nicht überein.","passwordFormatError":"Das Passwort muss mindestens 8 Zeichen lang sein und mindestens eine Zahl, einen Großbuchstaben, einen Kleinbuchstaben und ein Symbol enthalten","pwdWeak":"Schwach","pwdAcceptable":"Akzeptabel","pwdStrong":"Stark","mustChangePassword":"Sie müssen Ihr Passwort ändern","passwordChange":"Kennwort ändern","emailChange":"E-Mail ändern","avatarChange":"Avatar ändern","underage":"Das müssen Sie mindestens sein {{age}} Jahre alt, um sich anzumelden.","optional":"Optional","birthDate":"Geburtsdatum","birthDateHelper":"Wir fragen nur nach Ihrem Geburtsdatum, um Funktionen zu aktivieren oder zu deaktivieren, für die Altersbeschränkungen gelten","missingData":"Fehlende Informationen","missingDataHelper":"Wir wissen, dass dies etwas nervig ist, benötigen jedoch noch einige weitere Informationen, um Ihre Registrierung abzuschließen.","goToAccountToChangeYourPreferences":"Sie können Ihre Auswahl jederzeit auf Ihrer Kontoseite ändern.","deepThoughtExplaination":"Deep Thought ist eine erweiterte Funktion der KI, die es Ihnen ermöglicht, Ihre Gespräche voll auszuschöpfen, indem Sie sie verfolgen. ","tnCAndPPAcceptedHelper":"Seit Ihrer letzten Anmeldung haben sich die AGB und Datenschutzbestimmungen geändert. ","privacyLabel":"Ich habe die gelesen und akzeptiert","privacyAndCookiePolicy":"Datenschutz und Cookie-Richtlinie","and":"Und","termsOfService":"Nutzungsbedingungen","pAndCUAccepted":"Ich akzeptiere die Nutzungsbedingungen von Deep Thought","editAccount":"Konto bearbeiten","save":"Speichern"},"success":"Erfolg","Error":"Fehler","internal server error":"Oupsie, tut mir leid... Auf dem Server ist ein Fehler aufgetreten","error":"Fehler","error.loading":"Fehler beim Laden des Inhalts.","error.generic":"Oupsie, tut mir leid ... etwas ist schief gelaufen.","error.serverNotResponding":"Wir führen Wartungsarbeiten durch oder veröffentlichen Updates. ","error.notFound":"Oupsie, wir haben die von Ihnen gesuchte Seite nicht gefunden.","error.goBackTo":"Sie können versuchen, dorthin zurückzukehren","error.reloadPage":"Laden Sie die Seite neu","error.tryAgain":"Versuchen Sie es erneut","error.unauthorized":"Es ist Ihnen nicht gestattet, diesen Inhalt anzuzeigen.","error.unprocessableEntity":"Fehler beim Verarbeiten der Anfrage. ","errors":{"TENANT_NOT_FOUND":"Mieter nicht gefunden","TENANT_REGISTRATION_DISABLED":"Die Registrierung auf dieser Plattform ist deaktiviert","TENANT_MISSING_NAME":"Mieter: Name fehlt","TENANT_MAX_USERS_REACHED":"Maximale Anzahl Benutzer erreicht","TENANT_MAX_ADMINS_REACHED":"Maximale Anzahl an Admin-Benutzern erreicht","TENANT_ALREADY_EXISTS":"Mieter existiert bereits","TENANT_MISSING_DESCRIPTION":"Mieter: Beschreibung fehlt","TENANT_CANT_SET_COMPLETION_PROVIDER":"Mandant: Abschlussanbieter kann nicht festgelegt werden","USER_NOT_CONFIRMED":"Benutzer noch nicht bestätigt","USER_NOT_FOUND":"Benutzer nicht gefunden","USER_OR_PASSWORD_INVALID":"Ungültiger Benutzer oder Passwort","USER_MUST_CHANGE_PASSWORD":"Sie müssen Ihr Passwort ändern","USER_MUST_ENTER_VERIFICATION_CODE":"Sie müssen den Bestätigungscode eingeben","USER_MISSING_TENANT":"Benutzer: Mieter fehlt","USER_MISSING_NAME":"Benutzer: Name fehlt","USER_MISSING_PASSWORD":"Benutzer: Passwort fehlt","USER_MISSING_EMAIL":"Benutzer: Fehlende E-Mail","USER_MISSING_VERIFICATION_CODE":"Benutzer: Fehlender Bestätigungscode","USER_NAME_ALREADY_USED":"Benutzername wird bereits verwendet","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"Das Passwort entspricht nicht den Sicherheitsregeln","USER_EMAIL_ALREADY_USED":"E-Mail wird bereits verwendet","USER_EMAIL_INVALID":"Ungültige E-Mail","USER_VERIFICATION_CODE_INVALID":"Ungültiger Bestätigungscode","USER_MISSING_NAME_OR_EMAIL":"Benutzername oder E-Mail fehlen","USER_NAME_INVALID":"Ungültiger Benutzername","USER_HAS_ONE_OR_MORE_MEMORI":"Der Benutzer verfügt über eine oder mehrere Erinnerungen","USER_MISSING_NEW_PASSWORD":"Benutzer: Neues Passwort fehlt","USER_NOTHING_TO_DO":"Nichts zu tun","USER_CANT_CREATE_MEMORI":"Benutzer darf Memori nicht erstellen","USER_MAX_MEMORI_REACHED":"Maximale Anzahl an Memori erreicht","USER_TOO_MANY_ATTEMPTS":"Zu viele Versuche","USER_MUST_ACCEPT_TNC_AND_PP":"Sie müssen die Allgemeinen Geschäftsbedingungen akzeptieren","USER_BIRTH_DATE_CANT_BE_CHANGED":"Das Geburtsdatum kann nicht geändert werden","USER_CANT_SET_COMPLETION_PROVIDER":"Benutzer: darf den Vervollständigungsanbieter nicht verwalten","USER_CANT_ENABLE_DEEP_THOUGHT":"Benutzer: nicht für die Verwaltung von Deep Thought aktiviert","USER_CANT_ENABLE_DCM_INTEGRATION":"Benutzer: nicht für die Verwaltung der DCM-Integration aktiviert","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Benutzer: darf die Verkettung oder Expertengruppe nicht verwalten","USER_CREATION_BILLING_DENIED_PERMISSION":"Sie haben nicht genügend Credits, um einen Zwilling zu erstellen","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"Der Benutzer verfügt über eine oder mehrere Abschlusskonfigurationen","USER_CANT_BE_DELETED":"Benutzer kann nicht gelöscht werden","MEMORI_NOT_FOUND":"Erinnerungen nicht gefunden","MEMORI_NOT_ACCESSIBLE":"Memori nicht zugänglich","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Nur der Eigentümer kann das Tag oder die PIN ändern","SESSION_NOT_FOUND":"Sitzung nicht gefunden","SESSION_IS_NOT_ADMINISTRATIVE":"Nicht-administrative Sitzung","SESSION_EXPIRED":"Sitzung abgelaufen","MEMORI_MISSING_CONFIGURATION":"Zwilling: fehlende Konfiguration","MEMORI_CONFIGURATION_NOT_FOUND":"Zwilling: Konfiguration nicht gefunden","MEMORI_INVALID_PRIVACY_TYPE":"Twin: ungültiger Datenschutztyp","MEMORI_MISSING_PASSWORD":"Zwilling: Passwort fehlt","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Twin: Gesamtzahl ungültiger Wiederherstellungstokens","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Twin: Mindestanzahl ungültiger Wiederherstellungstokens","MEMORI_INVALID_VOICE_TYPE":"Zwilling: ungültiger Stimmtyp","MEMORI_MISSING_NAME":"Zwilling: fehlender Name","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Zwilling: Fehlendes Passwort oder Wiederherstellungstoken","MEMORI_INVALID_ID":"Zwilling: ungültige ID","MEMORI_NAME_ALREADY_USED":"Zwillingsname wird bereits verwendet","MEMORI_INVALID_PIN":"Zwilling: Ungültige PIN","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Zwilling: TAG- und PIN-Änderung erfordern separate Vorgänge","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Zwilling: Im öffentlichen Zustand ist kein Passwort erforderlich","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Für „Deep Thought“ müssen Vervollständigungen aktiviert sein","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"Für die Expertengruppe müssen Vervollständigungen aktiviert sein","MEMORI_INVALID_COMPLETION_CONFIG":"Zwilling: Ungültige Abschlusskonfiguration","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Übertragung: Zielbenutzer fehlt","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Übertragung: Ungültige Zielbenutzer-ID","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Übertragung: Ungültige Zielbenutzerdaten","MEMORI_TRANSFER_NOTHING_TO_DO":"Transfer: nichts zu tun","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Speicher: Konfiguration kann nicht geändert werden","MEMORI_MISSING_NEW_PASSWORD":"Erinnerungen: Neues Passwort fehlt","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"Für die Funktion ist ein Abonnement erforderlich","INTEGRATION_NOT_FOUND":"Integration nicht gefunden","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Ungültiges Datum aus Format","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Ungültiges Datum zum Formatieren","INTEGRATION_INVALID_TYPE":"Ungültiger Integrationstyp","INTEGRATION_ALREADY_EXISTS":"Die Integration ist bereits vorhanden","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Nicht-öffentliche Erinnerungen können nicht integriert werden","INTEGRATION_MISSING_INVOCATION_TEXT":"Integration: fehlender Aufruftext","INTEGRATION_MISSING_DEVICE_EMAILS":"Integration: Fehlende Geräte-E-Mail","INTEGRATION_MEMORI_IS_EMPTY":"Leere Erinnerungen können nicht integriert werden","INTEGRATION_MISSING_PRIVACY_POLICY":"Integration: Datenschutzrichtlinie fehlt","INTEGRATION_MISSING_CATEGORY":"Integrationskategorie fehlt","INTEGRATION_MISSING_DESCRIPTION":"Fehlende Integrationsbeschreibung","INTEGRATION_INVALID_INVOCATION_TEXT":"Ungültiger Aufruftext","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home nicht mehr verfügbar","UPLOAD_REQUIRES_MULTIPART_ENCODING":"Für den Upload ist eine mehrteilige Kodierung erforderlich","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Hochladen: Inhaltstypgrenze fehlt","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: Maximale Größe überschritten","UPLOAD_FILE_IS_EMPTY":"Hochladen: leere Datei","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Hochladen: Ungültiger Dateityp oder ungültige Signatur","UPLOAD_MISSING_FILE_NAME":"Hochladen: Dateiname fehlt","UPLOAD_INVALID_MEMORY_ID":"Hochladen: Ungültige Inhalts-ID","UPLOAD_MISSING_FILE_CONTENT":"Hochladen: Dateiinhalt fehlt","ASSET_NOT_FOUND":"Asset nicht gefunden","ASSET_NOT_ACCESSIBLE":"Asset nicht zugänglich","ASSET_MISSING_SESSION_ID":"Asset: Sitzungs-ID fehlt","ASSET_INVALID_FILE_NAME":"Asset: ungültiger Dateiname","INVITATION_NOT_FOUND":"Einladung nicht gefunden","INVITATION_NOT_ACCESSIBLE":"Einladung nicht zugänglich","INVITATION_ALREADY_ACCEPTED":"Einladung bereits angenommen","INVITATION_ALREADY_REJECTED":"Einladung bereits abgelehnt","INVITATION_MISSING_DESTINATION_EMAIL":"Einladung: Ziel-E-Mail fehlt","INVITATION_DESTINATION_EMAIL_INVALID":"Einladung: Ziel-E-Mail-Adresse ungültig","INVITATION_MISSING_TAG":"Einladung: Tag fehlt","INVITATION_MISSING_PIN":"Einladung: PIN fehlt","INVITATION_INVALID_PIN":"Einladung: ungültige PIN","INVITATION_INVALID_TYPE":"Einladung: ungültiger Typ","INVITATION_MISSING_DESTINATION_NAME":"Einladung: Zielname fehlt","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Einladung: Tag und Pin können nicht geändert werden","INVITATION_CANT_BE_CHANGED":"Absicht: kann nicht geändert werden","ACTIONLOG_INVALID_USER_ID":"Ungültige Benutzer-ID","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Datum von: ungültiges Format","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Datum bis: ungültiges Format","ACTIONLOG_INVALID_MEMORI_ID":"Ungültige Memori-ID","CONSUMPTIONLOG_INVALID_TYPE":"Ungültiger Protokolltyp","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Datum von: ungültiges Format","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Datum bis: ungültiges Format","CONSUMPTIONLOG_INVALID_USER_ID":"Ungültige Benutzer-ID","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Ungültige Memori-ID","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Benachrichtigungen: Ungültiger Chat-Protokoll-Extraktionszeitraum","PROCESS_INVALID_TYPE":"Ungültiger Prozesstyp","PROCESS_ALREADY_RUNNING":"Prozess läuft bereits","PROCESS_NOT_FOUND":"Prozess nicht gefunden","IMPORTCSV_MISSING_ROWS":"CSV-Import: fehlende Zeilen","IMPORTCSV_MISSING_CSV":"CSV-Import: CSV fehlt","IMPORTCSV_MISSING_SEPARATOR":"CSV-Import: fehlendes Trennzeichen","IMPORTCSV_INVALID_SEPARATOR":"CSV-Import: Ungültiges Trennzeichen","IMPORTCSV_MISSING_HEADERS":"CSV-Import: fehlende Header","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV-Import: Titelvariantentrennzeichen fehlt","IMPORTCSV_INVALID_RECEIVER_ID":"CSV-Import: ungültige Empfänger-ID","IMPORTCSV_INVALID_MEDIA_LINK":"CSV-Import: Ungültiger Medienlink","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"CSV-Import: Ungültiger Linktitel","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"CSV-Import: Nicht erkennbare Zeichenkodierung","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"CSV-Import: Der Import in Secret Memories ist nicht möglich","IMPORTTXT_MISSING_ROWS":"TXT wird importiert: Zeilen fehlen","IMPORTTXT_INVALID_GRANULARITY":"TXT importieren: ungültige Granularität","IMPORTTXT_INVALID_RECEIVER_ID":"TXT importieren: ungültige Empfänger-ID","IMPORTTXT_INVALID_MEDIA_LINK":"TXT importieren: Ungültiger Medienlink","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"TXT importieren: ungültiger Linktitel","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"TXT-Import: Nicht erkennbare Zeichenkodierung","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"TXT-Import: Der Import in Secret Memories ist nicht möglich","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"TXT importieren: Importlimit überschritten","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"TXT importieren: Für den Import auf GPT-4 ist ein API-Schlüssel erforderlich","IMPORTTXT_IMPORT_REQUIRES_PAYING":"TXT importieren: Für den Import ist ein kostenpflichtiger Plan erforderlich","IMPORTTXT_BILLING_DENIED_PERMISSION":"TXT importieren: Sie haben nicht genügend Credits für den Vorgang","EXPORTCSV_MISSING_CSV_SPECS":"CSV-Export: CSV-Spezifikationen fehlen","EXPORTCSV_MISSING_SEPARATOR":"CSV-Export: fehlendes Trennzeichen","EXPORTCSV_INVALID_SEPARATOR":"CSV-Export: Ungültiges Trennzeichen","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV-Export: fehlendes Titelvarianten-Trennzeichen","EXPORTCSV_MISSING_NEW_LINE_CHAR":"CSV-Export: Fehlendes Zeilenumbruchzeichen","EXPORTCSV_INVALID_NEW_LINE_CHAR":"CSV-Export: Ungültiges Zeilenumbruchzeichen","EXPORTCSV_MISSING_PASSWORD":"CSV-Export: Passwort fehlt","EXPORTJSONL_MISSING_JSONL_SPECS":"JSONL-Export: JSONL-Spezifikationen fehlen","EXPORTJSONL_MISSING_PLATFORM":"JSONL-Export: fehlende Plattform","EXPORTJSONL_INVALID_PLATFORM":"JSONL-Export: ungültige Plattform","EXPORTJSONL_MISSING_PASSWORD":"JSONL-Export: Passwort fehlt","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"JSONL-Export: Für den Export ist ein kostenpflichtiger Plan erforderlich","ANALYSIS_MISSING_QUERY":"Analyse: fehlende Abfrage","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analyse: Geheime Erinnerungen können nicht analysiert werden","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analyse: Passende Benutzeranfragen erfordern tiefes Denken","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Ausweiszuweisung: falsche oder fehlende Zugangsdaten","BADGE_ASSIGNMENT_MISSING_REF_ID":"Badge-Zuordnung: Referenz-ID fehlt","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Badge-Zuweisung: Ergebnis nicht gefunden","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Badge-Zuweisung: Fehlende Behauptungs-URL","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Badge-Zuweisung: Badge-URL fehlt","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Badge-Zuweisung: Aussteller-URL fehlt","BADGE_ASSIGNMENT_INVALID_URL":"Badge-Zuweisung: Ungültige URL","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Ausweiszuordnung: fehlender Empfänger","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Badge-Zuordnung: unbekannter Empfängertyp","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Ausweiszuordnung: Empfängeridentität fehlt","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Badge-Zuweisung: Empfänger-Hash-Typ fehlt","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Badge-Zuweisung: Empfänger-Hash-Typ unbekannt","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Badge-Zuordnung: Falsche Empfängeridentität","BADGE_NOT_FOUND":"Abzeichen nicht gefunden","OUTCOME_NO_DCM_CONFIGURED":"Ergebnis: kein DCM konfiguriert","OUTCOME_USER_BADGES_DISABLED":"Ergebnis: Benutzerausweise deaktiviert","COMPLETION_CONFIG_MISSING_NAME":"Vervollständigungskonfiguration: Name fehlt","COMPLETION_CONFIG_MISSING_PROVIDER":"Vervollständigungskonfiguration: fehlender Anbieter","COMPLETION_CONFIG_MISSING_ENDPOINT":"Abschlusskonfiguration: fehlender Endpunkt","COMPLETION_CONFIG_MISSING_API_KEY":"Vervollständigungskonfiguration: fehlender API-Schlüssel","COMPLETION_CONFIG_MISSING_MODEL":"Vervollständigungskonfiguration: fehlendes Modell","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Vervollständigungskonfiguration: Es muss mindestens ein Vervollständigungstyp angegeben werden","COMPLETION_CONFIG_INVALID_NAME":"Vervollständigungskonfiguration: ungültiger Name","COMPLETION_CONFIG_INVALID_PURPOSE":"Vervollständigungskonfiguration: Ungültiger Vervollständigungstyp","COMPLETION_CONFIG_INVALID_ENDPOINT":"Abschlusskonfiguration: Ungültiger Endpunkt","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Abschlusskonfiguration: inkonsistenter Endpunkt","COMPLETION_CONFIG_INVALID_PROVIDER":"Vervollständigungskonfiguration: ungültiger Anbieter","COMPLETION_CONFIG_NOT_FOUND":"Vervollständigungskonfiguration: nicht gefunden","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Vervollständigungskonfiguration: nicht zugänglich","COMPLETION_CONFIG_NAME_RESERVED":"Vervollständigungskonfiguration: Name reserviert","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Vervollständigungskonfiguration: Name existiert bereits","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Vervollständigungskonfiguration: Änderung der Sichtbarkeit nicht zulässig"}}');var oG;oG=JSON.parse('{"yes":"Sí","no":"No","confirm":"Confirmar","apply":"Aplicar","cancel":"Cancelar","show":"Espectáculo","hide":"Esconder","send":"Enviar","close":"Cerca","edit":"Editar","delete":"Borrar","loading":"Cargando","expand":"Expandir","collapse":"Colapsar","fullscreenEnter":"Entrar en pantalla completa","fullscreenExit":"Salir de pantalla completa","center":"Centro","bottom":"Abajo","hidden":"Oculto","day":"Día","month":"Mes","year":"Año","createdAt":"Fecha de creación","selected":"Seleccionado","page":"página","actions":"Comportamiento","next":"Próximo","previous":"Anterior","copy":"Copiar","copyRawCode":"Copiar código sin formato","copyToClipboard":"Copiar al portapapeles","showOriginalText":"Mostrar original","showTranslatedText":"Mostrar traducción","exactPosition":"Posición exacta","uncertain":"Incierto","question":"Pregunta","nothingFound":"No se encontró nada","venue":"Evento","searchVenue":"Buscar lugar...","memoriBlockedTitle":"Obstruido","memoriBlockedUntil":"Memori bloqueado hasta {{date}}","memoriBlockedAnon":"Actualmente \\"{{name}}\\"No puedo responder, vuelve aquí. {{date}}","memoriBlockedReasonExceedChats":"porque ha superado el umbral mensual de chats permitidos.","memoriBlockedGiverHelper":"Aún podrás administrarlo como administrador, pero otros usuarios no podrán interactuar con él.","generatedByAI":"La respuesta generada por IA, ocasionalmente puede generar información incorrecta","whyThisAnswer":"¿Por qué esta respuesta?","whyThisAnswerHelper":"Esta respuesta fue generada automáticamente por una inteligencia artificial basada en estos contenidos verificados.","completionsEnabled":"La IA avanzada puede responder con respuestas generadas automáticamente que a veces pueden contener información incorrecta.","completionProviderDown":"Este Twin está integrado con una IA generativa de {{provider}}, pero actualmente no está disponible. ","completionProviderFallbackName":"un proveedor externo","completionProviderCheckStatusPage":"Comprobar página de estado","boardOfExperts":"junta de expertos","birthDate":"Fecha de nacimiento","birthDateHelper":"Solicitamos tu fecha de nacimiento únicamente para habilitar o deshabilitar funcionalidades que tienen restricciones de edad.","underage":"Debes ser al menos {{age}} años para inscribirse.","underageTwinSession":"Debes ser al menos {{age}} años para interactuar con este gemelo.","errorFetchingSession":"Error durante el cargamento de la sesión","errorGettingReferralURL":"Error durante el cargamento del référent","errorReopeningSession":"Error durante el re-abrir la sesión","ageVerification":"Verificación de edad","ageVerificationText":"Para interactuar con este Gemelo, debes tener al menos {{minAge}} años.","nsfw":"NSFW: Este gemelo contiene contenido para adultos","deepThought":"pensamiento profundo","deepThoughtHelper":"Deep Thought es una característica avanzada de la IA que te permitirá explotar al máximo tus conversaciones al realizar un seguimiento de ellas. ","deepThoughtDisclaimerTitle":"Pensamiento profundo habilitado","deepThoughtDisclaimer":"Deep Thought es una característica avanzada de la IA que te permitirá explotar al máximo tus conversaciones al realizar un seguimiento de ellas. ","deepThoughtPreDisclaimerUnlogged":"Inicie sesión para habilitar Pensamiento profundo.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought está deshabilitado porque usted no dio su consentimiento para su uso; puede cambiar esto en cualquier momento en la configuración de su cuenta.","notEnoughCredits":"El autor de este Gemelo no tiene suficientes créditos para responder a tu pregunta.","knownFacts":{"title":"hechos conocidos","description":"Detalles de la información compartida entre usted y {{memoriName}}","type":"Tipo","typeShortTerm":"Corto plazo","typeLongTerm":"Largo plazo","typeHelper":"Tipos:\\n","text":"Texto","deleteSuccess":"Hecho conocido eliminado","deleteConfirmTitle":"Eliminar hecho conocido","deleteConfirmMessage":"¿Está seguro de que desea eliminar este hecho conocido?","deleteSelectedConfirmTitle":"Eliminar hechos conocidos seleccionados","deleteSelectedConfirmMessage":"¿Está seguro de que desea eliminar los hechos conocidos seleccionados?"},"auth":{"title":"Autenticación","useRecoveryTokens":"Utilice tokens de recuperación","tokens":"Fichas","addToken":"Agregar token","usePassword":"Usar contraseña","atLeast":"Al menos"},"widget":{"instruct":"Instruir","test":"Prueba","sound":"Sonido","position":"Preferencias de posición","settings":"Ajustes","share":"Compartir","sendOnKeypress":"Presiona Enter para enviar","sendOnClick":"Haga clic en Enviar","boardOfExperts":"junta de expertos","showExpertsInTheBoard":"Mostrar expertos en este foro","expertsInTheBoard":"Expertos en este foro","goToIntegrationsToCustomizeAvatar":"Para personalizar el avatar, vaya a Compartir y personalice la página pública."},"write_and_speak":{"micButtonPopover":"Haga clic en el botón para hablar","micButtonPopoverListening":"Haga clic en el botón para dejar de hablar.","pageInstructExplanation":"Para enseñarme cosas nuevas, haga clic en el botón INSTRUIRME para comenzar.","pageTryMeExplanation":"Para hablar conmigo haga clic en el botón INICIO para comenzar","instructButton":"INSTRUÍME","tryMeButton":"COMENZAR","chatHistory":"Historial de chat","exportChatHistory":"Exportar historial de chat","exportChatHistoryMessage":"¿Quieres exportar el historial de chat?","chatBotButtonText":"HAGA CLIC AQUÍ PARA ABRIR EL CHATBOT","conversationStartedLabel":"La conversación comenzó el","settingsHeaderLabel":"Configure aquí si desea configurar la memoria como voz continua y cambie los segundos de silencio si desea personalizarlos.","continuousSpeechLabel":"discurso continuo","holdToSpeak":"Mantenga para hablar","releaseToEndListening":"Suelte para finalizar la escucha","pressAndHoldToSpeak":"Mantenga presionado para hablar","microphoneMode":"Modo micrófono","hideEmissionsLabel":"Ocultar texto emitido por el Twin","secondsLabel":"Establecer segundos","controlsPosition":"Posición de los controles","tryMeHeaderLabel":"INTENTAR","unknownPosition":"Posición desconocida","fieldPlace":"Escribe el lugar (por ejemplo, \'Milano\')","showMapLinkFor":"Mostrar la posición en el mapa.","useMyPosition":"Usa mi posición","myPosition":"Tu posición","updatingPosition":"Actualizando posición...","placeNotFound":"¡Lugar no encontrado!","requirePosition":"Inserte su posición antes de comenzar","requirePositionHelp":"para hablar con {{name}} usted tiene que decidir si proporciona su puesto o no. ","dontWantToProvidePosition":"No quiero proporcionar mi puesto.","attachmentsLabel":"Enriquece tu mensaje","iWantToTalkToIn":"quiero hablar con {{name}} en"},"media":{"title":"Título","editAttributes":"Editar atributos de medios","uploadMimeTypeNotAllowed":"El tipo de archivo no está permitido.","uploadSizeLimitMessage":"El tamaño subido es demasiado grande (máx. {{size}}MEGABYTE)","uploadWrongResolutionMessage":"La resolución debe ser {{width}}incógnita{{height}} píxel","memoriNameAlreadyUsed":"Ya tienes un gemelo con este nombre.","uploadHelperImages":"Sube un archivo con extensión png, jpg, jpeg o gif, y que tenga como máximo un tamaño de {{size}}MEGABYTE","uploadHelper":"Cargue un archivo que tenga como máximo un tamaño de {{size}}MEGABYTE","uploadError":"Error al subir","square":"cuadrado","scaleRatio":"Relación de escala","addMediaLabel":"Agregar un medio","insertThisMediaMsg":"Inserte estos medios","mediaUploadMessage":"Haga clic para cargar un nuevo medio","addLinkLabel":"Agregar un enlace","linkKey":"URL","linkValue":"Título del enlace","insertThisLink":"Insertar un enlace a {{url}} con titulo {{title}}"},"gamification":{"level":"Nivel","points":"agujas","memoriReachedLevel":"se volvió más evolucionado y alcanzó el nivel","levelGoToStatistics":"{{memori}} esta al nivel {{level}} con {{points}} agujas. ","congratulationsNewLevel":"¡Felicitaciones, has alcanzado un nuevo nivel!","congratulationsNewLevelDescription":"Tu Memori se volvió más evolucionado con {{points}} puntos, mira el","statistics":"estadística"},"login":{"login":"Acceso","logout":"Cerrar sesión","user":"Usuario","loggedDrawerTitle":"Hola, {{name}}!","loginDrawerTitle":"Acceso","signupDrawerTitle":"Inscribirse","newUserSignUp":"¿Nuevo usuario?","signUp":"¡Inscribirse!","alreadyHaveAnAccount":"¿Ya tienes una cuenta?","backToLogin":"Volver a iniciar sesión","registrationDisabled":"El registro está deshabilitado","contactAdmin":"Póngase en contacto con el administrador para solicitar acceso","userNameOrEmail":"Nombre de usuario o correo electrónico","email":"Correo electrónico","emailFormatError":"Por favor, inserte un correo electrónico válido","username":"Nombre de usuario","usernameContainsReservedWord":"El nombre de usuario contiene una palabra reservada, elija otra","usernameFormatError":"El nombre de usuario debe tener al menos 3 caracteres y contener solo letras, números y _","otpCode":"Código de verificación","resendVerificationCode":"Reenviar código","resentVerificationCode":"¡Código de confirmación enviado! ","password":"Contraseña","newPassword":"Nueva contraseña","confirmPassword":"confirmar Contraseña","currentPassword":"Contraseña actual","passwordMatchingError":"Las contraseñas no coinciden.","passwordFormatError":"La contraseña debe tener al menos 8 caracteres y contener al menos un número, una letra mayúscula, una letra minúscula y un símbolo.","pwdWeak":"Débil","pwdAcceptable":"Aceptable","pwdStrong":"Fuerte","mustChangePassword":"Debes cambiar tu contraseña","passwordChange":"Cambiar la contraseña","emailChange":"Cambiar correo electrónico","avatarChange":"Cambiar avatar","underage":"Debes ser al menos {{age}} años para inscribirse.","optional":"Opcional","birthDate":"Fecha de nacimiento","birthDateHelper":"Solicitamos tu fecha de nacimiento únicamente para habilitar o deshabilitar funcionalidades que tienen restricciones de edad.","missingData":"Información faltante","missingDataHelper":"Sabemos que esto es un poco molesto, pero necesitamos más información para completar tu registro.","goToAccountToChangeYourPreferences":"Puede cambiar su elección en cualquier momento desde la página de su Cuenta.","deepThoughtExplaination":"Deep Thought es una característica avanzada de la IA que te permitirá explotar al máximo tus conversaciones al realizar un seguimiento de ellas. ","tnCAndPPAcceptedHelper":"Desde su último inicio de sesión, los Términos y condiciones y la Política de privacidad han cambiado. ","privacyLabel":"He leído y acepto el","privacyAndCookiePolicy":"Política de privacidad y cookies","and":"y","termsOfService":"Términos de servicio","pAndCUAccepted":"Acepto los términos de servicio sobre Deep Thought","editAccount":"Editar cuenta","save":"Ahorrar"},"success":"Éxito","Error":"Error","internal server error":"Oupsie, lo siento... Algo salió mal en el servidor.","error":"Error","error.loading":"Error al cargar contenido.","error.generic":"Oupsie, lo siento... algo salió mal.","error.serverNotResponding":"Estamos realizando mantenimiento o lanzando actualizaciones. ","error.notFound":"Oupsie, no encontramos la página que buscabas.","error.goBackTo":"Puedes intentar volver al","error.reloadPage":"recargar la pagina","error.tryAgain":"Intentar otra vez","error.unauthorized":"No estás autorizado a ver este contenido.","error.unprocessableEntity":"Error al procesar la solicitud. ","errors":{"TENANT_NOT_FOUND":"Inquilino no encontrado","TENANT_REGISTRATION_DISABLED":"El registro en esta plataforma está deshabilitado","TENANT_MISSING_NAME":"Inquilino: falta el nombre","TENANT_MAX_USERS_REACHED":"Número máximo de usuarios alcanzado","TENANT_MAX_ADMINS_REACHED":"Número máximo de usuarios administradores alcanzado","TENANT_ALREADY_EXISTS":"El inquilino ya existe","TENANT_MISSING_DESCRIPTION":"Inquilino: falta descripción","TENANT_CANT_SET_COMPLETION_PROVIDER":"Inquilino: no se puede configurar el proveedor de finalización","USER_NOT_CONFIRMED":"Usuario aún no confirmado","USER_NOT_FOUND":"Usuario no encontrado","USER_OR_PASSWORD_INVALID":"Usuario o contraseña no válidos","USER_MUST_CHANGE_PASSWORD":"Debes cambiar tu contraseña","USER_MUST_ENTER_VERIFICATION_CODE":"Debes ingresar el código de verificación","USER_MISSING_TENANT":"Usuario: inquilino desaparecido","USER_MISSING_NAME":"Usuario: falta el nombre","USER_MISSING_PASSWORD":"Usuario: falta contraseña","USER_MISSING_EMAIL":"Usuario: Falta correo electrónico","USER_MISSING_VERIFICATION_CODE":"Usuario: Falta el código de verificación","USER_NAME_ALREADY_USED":"Nombre de usuario ya en uso","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"La contraseña no cumple con las reglas de seguridad.","USER_EMAIL_ALREADY_USED":"Correo electrónico ya en uso","USER_EMAIL_INVALID":"Correo electrónico no válido","USER_VERIFICATION_CODE_INVALID":"Código de verificación no válido","USER_MISSING_NAME_OR_EMAIL":"Falta nombre de usuario o correo electrónico","USER_NAME_INVALID":"Nombre de usuario no válido","USER_HAS_ONE_OR_MORE_MEMORI":"El usuario tiene uno o más recuerdos.","USER_MISSING_NEW_PASSWORD":"Usuario: falta nueva contraseña","USER_NOTHING_TO_DO":"Nada que hacer","USER_CANT_CREATE_MEMORI":"Usuario no autorizado a crear Memori","USER_MAX_MEMORI_REACHED":"Número máximo de Memori alcanzado","USER_TOO_MANY_ATTEMPTS":"demasiados intentos","USER_MUST_ACCEPT_TNC_AND_PP":"Debes aceptar los términos y condiciones.","USER_BIRTH_DATE_CANT_BE_CHANGED":"La fecha de nacimiento no se puede cambiar.","USER_CANT_SET_COMPLETION_PROVIDER":"Usuario: no tiene permiso para gestionar el proveedor de finalización","USER_CANT_ENABLE_DEEP_THOUGHT":"Usuario: no habilitado para gestionar Deep Thought","USER_CANT_ENABLE_DCM_INTEGRATION":"Usuario: no habilitado para gestionar la integración de DCM","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Usuario: no se le permite gestionar encadenamiento o grupo de expertos","USER_CREATION_BILLING_DENIED_PERMISSION":"No tienes suficientes créditos para crear un gemelo","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"El usuario tiene una o más configuraciones de finalización.","USER_CANT_BE_DELETED":"Usuario: no se puede eliminar","MEMORI_NOT_FOUND":"Memoria no encontrada","MEMORI_NOT_ACCESSIBLE":"Memorias no accesibles","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Sólo el propietario puede cambiar la etiqueta o el pin","SESSION_NOT_FOUND":"Sesión no encontrada","SESSION_IS_NOT_ADMINISTRATIVE":"Sesión no administrativa","SESSION_EXPIRED":"La sesión expiró","MEMORI_MISSING_CONFIGURATION":"Gemelo: falta configuración","MEMORI_CONFIGURATION_NOT_FOUND":"Gemelo: configuración no encontrada","MEMORI_INVALID_PRIVACY_TYPE":"Gemelo: tipo de privacidad no válido","MEMORI_MISSING_PASSWORD":"Gemelo: falta contraseña","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Gemelo: número total de tokens de recuperación no válidos","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Gemelo: número mínimo de tokens de recuperación no válidos","MEMORI_INVALID_VOICE_TYPE":"Gemelo: tipo de voz no válido","MEMORI_MISSING_NAME":"Gemelo: falta nombre","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Gemelo: falta contraseña o token de recuperación","MEMORI_INVALID_ID":"Gemelo: identificación no válida","MEMORI_NAME_ALREADY_USED":"Nombre gemelo ya en uso","MEMORI_INVALID_PIN":"Gemelo: PIN no válido","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Gemelo: el cambio de TAG y PIN requiere operaciones separadas","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Twin: no se requiere contraseña cuando es público","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Deep Thought requiere que las completaciones estén habilitadas","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"El grupo de expertos requiere que se habiliten las completaciones.","MEMORI_INVALID_COMPLETION_CONFIG":"Gemelo: configuración de finalizaciones no válidas","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Transferencia: falta usuario de destino","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Transferencia: ID de usuario de destino no válido","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Transferencia: datos de usuario de destino no válidos","MEMORI_TRANSFER_NOTHING_TO_DO":"Transferencia: nada que hacer","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Memorias: la configuración no se puede cambiar","MEMORI_MISSING_NEW_PASSWORD":"Recuerdos: falta nueva contraseña","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"La función requiere suscripción","INTEGRATION_NOT_FOUND":"Integración no encontrada","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Fecha no válida del formato","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Fecha no válida para formatear","INTEGRATION_INVALID_TYPE":"Tipo de integración no válido","INTEGRATION_ALREADY_EXISTS":"La integración ya existe","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Las memorias no públicas no se pueden integrar","INTEGRATION_MISSING_INVOCATION_TEXT":"Integración: falta texto de invocación","INTEGRATION_MISSING_DEVICE_EMAILS":"Integración: correo electrónico del dispositivo perdido","INTEGRATION_MEMORI_IS_EMPTY":"Los recuerdos vacíos no se pueden integrar","INTEGRATION_MISSING_PRIVACY_POLICY":"Integración: falta la política de privacidad","INTEGRATION_MISSING_CATEGORY":"Falta categoría de integración","INTEGRATION_MISSING_DESCRIPTION":"Falta descripción de integración","INTEGRATION_INVALID_INVOCATION_TEXT":"Texto de invocación no válido","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home ya no está disponible","UPLOAD_REQUIRES_MULTIPART_ENCODING":"La carga requiere codificación multiparte","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Subir: falta límite de tipo de contenido","UPLOAD_MAX_LENGTH_EXCEEDED":"Subir: se superó el tamaño máximo","UPLOAD_FILE_IS_EMPTY":"Subir: archivo vacío","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Subir: tipo de archivo o firma no válidos","UPLOAD_MISSING_FILE_NAME":"Subir: falta el nombre del archivo","UPLOAD_INVALID_MEMORY_ID":"Subir: ID de contenido no válido","UPLOAD_MISSING_FILE_CONTENT":"Subir: Falta contenido del archivo","ASSET_NOT_FOUND":"Activo no encontrado","ASSET_NOT_ACCESSIBLE":"Activo no accesible","ASSET_MISSING_SESSION_ID":"Activo: ID de sesión faltante","ASSET_INVALID_FILE_NAME":"Activo: nombre de archivo no válido","INVITATION_NOT_FOUND":"Invitación no encontrada","INVITATION_NOT_ACCESSIBLE":"Invitación no accesible","INVITATION_ALREADY_ACCEPTED":"Invitación ya aceptada","INVITATION_ALREADY_REJECTED":"Invitación ya rechazada","INVITATION_MISSING_DESTINATION_EMAIL":"Invitación: falta el correo electrónico de destino","INVITATION_DESTINATION_EMAIL_INVALID":"Invitación: correo electrónico de destino no válido","INVITATION_MISSING_TAG":"Invitación: falta etiqueta","INVITATION_MISSING_PIN":"Invitación: falta el PIN","INVITATION_INVALID_PIN":"Invitación: PIN no válido","INVITATION_INVALID_TYPE":"Invitación: tipo no válido","INVITATION_MISSING_DESTINATION_NAME":"Invitación: falta el nombre del destino","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invitación: la etiqueta y el pin no se pueden cambiar","INVITATION_CANT_BE_CHANGED":"Intación: no se puede cambiar","ACTIONLOG_INVALID_USER_ID":"ID de usuario no válido","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Fecha de: formato no válido","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Fecha hasta: formato no válido","ACTIONLOG_INVALID_MEMORI_ID":"ID de memoria no válida","CONSUMPTIONLOG_INVALID_TYPE":"Tipo de registro no válido","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Fecha de: formato no válido","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Fecha hasta: formato no válido","CONSUMPTIONLOG_INVALID_USER_ID":"ID de usuario no válido","CONSUMPTIONLOG_INVALID_MEMORI_ID":"ID de memoria no válida","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notificaciones: Período de extracción del registro de chat no válido","PROCESS_INVALID_TYPE":"Tipo de proceso no válido","PROCESS_ALREADY_RUNNING":"Proceso ya en ejecución","PROCESS_NOT_FOUND":"Proceso no encontrado","IMPORTCSV_MISSING_ROWS":"Importación CSV: filas faltantes","IMPORTCSV_MISSING_CSV":"Importación CSV: Falta CSV","IMPORTCSV_MISSING_SEPARATOR":"Importación CSV: falta separador","IMPORTCSV_INVALID_SEPARATOR":"Importación CSV: separador no válido","IMPORTCSV_MISSING_HEADERS":"Importación CSV: faltan encabezados","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Importación CSV: falta el separador de variante de título","IMPORTCSV_INVALID_RECEIVER_ID":"Importación CSV: ID de receptor no válido","IMPORTCSV_INVALID_MEDIA_LINK":"Importación CSV: enlace multimedia no válido","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"Importación CSV: título del enlace no válido","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"Importación CSV: codificación de caracteres indetectable","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"Importación CSV: no se puede importar a Secret Memories","IMPORTTXT_MISSING_ROWS":"Importando TXT: filas faltantes","IMPORTTXT_INVALID_GRANULARITY":"Importar TXT: granularidad no válida","IMPORTTXT_INVALID_RECEIVER_ID":"Importar TXT: ID de receptor no válido","IMPORTTXT_INVALID_MEDIA_LINK":"Importar TXT: enlace multimedia no válido","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Importar TXT: título del enlace no válido","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"Importación TXT: codificación de caracteres indetectable","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"Importación TXT: No se puede importar a Secret Memories","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Importar TXT: límite de importación excedido","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Importar TXT: la importación en GPT-4 requiere una clave API","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Importar TXT: la importación requiere un plan de pago","IMPORTTXT_BILLING_DENIED_PERMISSION":"Importar TXT: no tienes suficientes créditos para la operación","EXPORTCSV_MISSING_CSV_SPECS":"Exportación CSV: faltan especificaciones CSV","EXPORTCSV_MISSING_SEPARATOR":"Exportación CSV: falta separador","EXPORTCSV_INVALID_SEPARATOR":"Exportación CSV: separador no válido","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Exportación CSV: falta el separador de variante de título","EXPORTCSV_MISSING_NEW_LINE_CHAR":"Exportación CSV: falta un carácter de nueva línea","EXPORTCSV_INVALID_NEW_LINE_CHAR":"Exportación CSV: carácter de nueva línea no válido","EXPORTCSV_MISSING_PASSWORD":"Exportación CSV: falta contraseña","EXPORTJSONL_MISSING_JSONL_SPECS":"Exportación JSONL: faltan especificaciones JSONL","EXPORTJSONL_MISSING_PLATFORM":"Exportación JSONL: plataforma faltante","EXPORTJSONL_INVALID_PLATFORM":"Exportación JSONL: plataforma no válida","EXPORTJSONL_MISSING_PASSWORD":"Exportación JSONL: falta contraseña","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"Exportación JSONL: la exportación requiere un plan pago","ANALYSIS_MISSING_QUERY":"Análisis: consulta faltante","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Análisis: No se pueden analizar recuerdos secretos","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Análisis: hacer coincidir la consulta del usuario requiere un pensamiento profundo","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Asignación de insignia: credenciales incorrectas o faltantes","BADGE_ASSIGNMENT_MISSING_REF_ID":"Asignación de insignia: falta el ID de referencia","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Asignación de insignia: resultado no encontrado","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Asignación de insignia: falta la URL de aserción","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Asignación de insignia: URL de insignia faltante","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Asignación de insignia: falta la URL del emisor","BADGE_ASSIGNMENT_INVALID_URL":"Asignación de insignia: URL no válida","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Asignación de insignia: destinatario faltante","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Asignación de insignia: tipo de destinatario desconocido","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Asignación de insignia: falta la identidad del destinatario","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Asignación de insignia: falta el tipo de hash del destinatario","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Asignación de insignia: tipo de hash del destinatario desconocido","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Asignación de insignia: identidad del destinatario incorrecta","BADGE_NOT_FOUND":"Insignia no encontrada","OUTCOME_NO_DCM_CONFIGURED":"Resultado: no hay ningún DCM configurado","OUTCOME_USER_BADGES_DISABLED":"Resultado: insignias de usuario deshabilitadas","COMPLETION_CONFIG_MISSING_NAME":"Configuración de terminaciones: falta nombre","COMPLETION_CONFIG_MISSING_PROVIDER":"Configuración de terminaciones: falta proveedor","COMPLETION_CONFIG_MISSING_ENDPOINT":"Configuración de terminaciones: falta punto final","COMPLETION_CONFIG_MISSING_API_KEY":"Configuración de terminaciones: falta clave API","COMPLETION_CONFIG_MISSING_MODEL":"Configuración de terminaciones: modelo faltante","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Configuración de terminaciones: se debe especificar al menos un tipo de terminaciones","COMPLETION_CONFIG_INVALID_NAME":"Configuración de terminaciones: nombre no válido","COMPLETION_CONFIG_INVALID_PURPOSE":"Configuración de terminaciones: tipo de terminaciones no válidas","COMPLETION_CONFIG_INVALID_ENDPOINT":"Configuración de terminaciones: punto final no válido","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Configuración de terminaciones: punto final inconsistente","COMPLETION_CONFIG_INVALID_PROVIDER":"Configuración de terminaciones: proveedor no válido","COMPLETION_CONFIG_NOT_FOUND":"Configuración de terminaciones: no encontrada","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Configuración de terminaciones: no accesible","COMPLETION_CONFIG_NAME_RESERVED":"Configuración de terminaciones: nombre reservado","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Configuración de terminaciones: el nombre ya existe","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Configuración de terminaciones: cambio de visibilidad no permitido"}}');const sG=tG({resources:{en:{translation:t(nG)},it:{translation:t(eG)},es:{translation:t(oG)},fr:{translation:t(rG)},de:{translation:t(iG)}},lng:"en",fallbackLng:"it",supportedLngs:["en","it","fr","es","de"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1}});sG.init();var aG=sG;c=o("85Hg2");function lG(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=(0,c.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,c.createElement)(le.Provider,{value:i},r)}var cG=({children:e})=>(0,s.jsx)(lG,{i18n:aG,children:e});const uG=({ownerUserName:e,ownerUserID:t,memoriName:n,memoriID:r,integrationID:i,tenantID:o,secretToken:a,sessionID:l,layout:u="DEFAULT",customLayout:d,showShare:h=!0,showCopyButton:p=!0,showTranslationOriginal:m=!1,showSettings:f=!0,showInstruct:g=!1,showTypingText:v=!1,showClear:y=!1,showOnlyLastMessages:_=!1,showInputs:S=!0,showDates:b=!1,showContextPerLine:x=!1,showLogin:w,height:C="100%",baseURL:E,apiURL:A="https://backend.memori.ai",engineURL:T="https://engine.memori.ai",tag:I,pin:M,context:R,initialQuestion:P,uiLang:N,spokenLang:O,multilingual:k,authToken:D,AZURE_COGNITIVE_SERVICES_TTS_KEY:L,enableAudio:B,defaultSpeakerActive:z=!0,disableTextEnteredEvents:F=!1,onStateChange:U,additionalInfo:j,customMediaRenderer:G,additionalSettings:H,userAvatar:V,useMathFormatting:W=!1})=>{var q,J,K;const[Y,X]=(0,c.useState)(),[Q,Z]=(0,c.useState)(),[ee,te]=(0,c.useState)(L),{t:ne}=xe();if(!(r&&t||n&&e))throw new Error("Identifier pair required: please provide either memoriID and ownerUserID or memoriName and ownerUserName");const re=$(A,T),ie=(0,c.useCallback)((async()=>{const e=E||(o.startsWith("https://")?o:`https://${o}`),t=await fetch(`${e}/api/speechkey`),n=await t.json();n.AZURE_COGNITIVE_SERVICES_TTS_KEY&&te(n.AZURE_COGNITIVE_SERVICES_TTS_KEY)}),[]);(0,c.useEffect)((()=>{L||ie()}),[L]);const oe=(0,c.useCallback)((async()=>{if(r&&t){const{memori:e,...n}=await re.backend.getMemoriByUserAndId(o,t,r);0===n.resultCode&&e?X(e):console.error("[MEMORI]",n,e)}else if(n&&e){const{memori:t,...r}=await re.backend.getMemori(o,e,n);0===r.resultCode&&t?X(t):console.error("[MEMORI]",r,t)}}),[r,t,n,e,o]);(0,c.useEffect)((()=>{oe()}),[oe,o]);const se=(0,c.useCallback)((async()=>{const e=await LU(o,E);e&&Z(e)}),[o,A]);return(0,c.useEffect)((()=>{se()}),[se]),(0,c.useEffect)((()=>{if(N)aG.changeLanguage(N.toLowerCase());else{const{lng:e,fallbackLng:t}=(()=>{const e=navigator.language;if(e){let t=e.split("-")[0];if(["en","it"].includes(t))return{lng:t,fallbackLng:"en"===t?"it":"en"}}return{lng:"en",fallbackLng:"it"}})();aG.changeLanguage(e).catch((()=>{aG.changeLanguage(t)}))}}),[N]),(0,s.jsx)(cG,{children:(0,s.jsxs)(Iz,{children:[(0,s.jsx)(Qu.Toaster,{position:"top-center",reverseOrder:!0}),Y?(0,s.jsx)(kU,{layout:u,customLayout:d,height:C,baseUrl:E||(o.startsWith("https://")?o:`https://${o}`),apiURL:A,engineURL:T,memori:{...Y,secretToken:a},ownerUserName:null!=e?e:Y.ownerUserName,ownerUserID:null!=t?t:Y.ownerUserID,tenantID:o,memoriLang:null!=O?O:null===(J=null===(q=Y.culture)||void 0===q?void 0:q.split("-"))||void 0===J?void 0:J[0],multilingual:k,tenant:Q,secret:a,sessionID:l,showShare:h,showCopyButton:p,showTranslationOriginal:m,showSettings:f,showInstruct:g,showTypingText:v,showClear:y,showOnlyLastMessages:_,showInputs:S,showDates:b,showContextPerLine:x,showLogin:null!=w?w:null==Y?void 0:Y.enableDeepThought,integration:null===(K=null==Y?void 0:Y.integrations)||void 0===K?void 0:K.find((e=>i?e.integrationID===i:!!e.publish&&"LANDING_EXPERIENCE"===e.type)),initialContextVars:R,initialQuestion:P,authToken:D,AZURE_COGNITIVE_SERVICES_TTS_KEY:ee||L,enableAudio:B,defaultSpeakerActive:z,disableTextEnteredEvents:F,onStateChange:U,additionalInfo:j,customMediaRenderer:G,additionalSettings:H,userAvatar:V,useMathFormatting:W,...I&&M?{personification:{tag:I,pin:M}}:{}}):(0,s.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsxs)("p",{style:{textAlign:"center",margin:"2rem auto",textTransform:"capitalize"},children:[ne("loading")||"Loading","..."]})})]})})};uG.propTypes={memoriName:t(l).string,memoriID:t(l).string,ownerUserName:t(l).string,ownerUserID:t(l).string,integrationID:t(l).string,tenantID:t(l).string.isRequired,secretToken:t(l).string,sessionID:t(l).string,layout:t(l).oneOf(["DEFAULT","FULLPAGE","TOTEM","WEBSITE_ASSISTANT","CHAT","HIDDEN_CHAT","ZOOMED_FULL_BODY"]),customLayout:t(l).any,showShare:t(l).bool,showCopyButton:t(l).bool,showTranslationOriginal:t(l).bool,showInstruct:t(l).bool,showInputs:t(l).bool,showDates:t(l).bool,showContextPerLine:t(l).bool,showSettings:t(l).bool,showClear:t(l).bool,showOnlyLastMessages:t(l).bool,showTypingText:t(l).bool,showLogin:t(l).bool,height:t(l).oneOfType([t(l).string,t(l).number]),baseURL:t(l).string,apiURL:t(l).string,engineURL:t(l).string,tag:t(l).string,pin:t(l).string,context:t(l).objectOf(t(l).any),initialQuestion:t(l).string,uiLang:t(l).oneOf(["en","it","fr","es","de","EN","IT","FR","ES","DE"]),spokenLang:t(l).string,multilingual:t(l).bool,authToken:t(l).string,enableAudio:t(l).bool,defaultSpeakerActive:t(l).bool,disableTextEnteredEvents:t(l).bool,AZURE_COGNITIVE_SERVICES_TTS_KEY:t(l).string,onStateChange:t(l).func,additionalInfo:t(l).objectOf(t(l).any),customMediaRenderer:t(l).func,additionalSettings:t(l).any,userAvatar:t(l).oneOfType([t(l).string,t(l).any]),useMathFormatting:t(l).bool};var dG=uG;class hG extends HTMLElement{connectedCallback(){const e=document.createElement("div"),n=document.createElement("div");n.setAttribute("id","memori-root"),e.appendChild(n),this.appendChild(e);const r=Object.keys(dG.propTypes).reduce(((e,t)=>(this.hasAttribute(t)&&(e[t]=this.getAttribute(t),"true"!==e[t]&&"false"!==e[t]||(e[t]="true"===e[t])),e)),{}),i=this.getAttribute("tenantId"),o=this.getAttribute("context")?.split(",")?.reduce(((e,t)=>{const[n,r]=t.split(":").map((e=>e.trim()));return{...e,[n]:r}}),{}),l=(e=>{try{return JSON.parse(e)}catch(e){return null}})(this.getAttribute("additionalInfo")||"{}")||{};i?t(a).render((0,s.jsx)(dG,{...r,context:o,tenantID:i,additionalInfo:l}),n):console.error("No tenantId attribute found")}}customElements.define("memori-client",hG)})();
258
+ */function jF(e,t=0){const n=[];return e.forEach((function(e,r){let i=null;e.forEach((function(o,s){if(!o&&null!==i)return n.push(`M${i+t} ${r+t}h${s-i}v1H${i+t}z`),void(i=null);if(s!==e.length-1)o&&null===i&&(i=s);else{if(!o)return;null===i?n.push(`M${s+t},${r+t} h1v1H${s+t}z`):n.push(`M${i+t},${r+t} h${s+1-i}v1H${i+t}z`)}}))})),n.join("")}function GF(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function HF(e,t,n,r){if(null==r)return null;const i=n?4:0,o=e.length+2*i,s=Math.floor(.1*t),a=o/t,l=(r.width||s)*a,c=(r.height||s)*a,u=null==r.x?e.length/2-l/2:r.x*a,d=null==r.y?e.length/2-c/2:r.y*a;let h=null;if(r.excavate){let e=Math.floor(u),t=Math.floor(d);h={x:e,y:t,w:Math.ceil(l+u-e),h:Math.ceil(c+d-t)}}return{x:u,y:d,h:c,w:l,excavation:h}}var VF=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function WF(e){const n=e,{value:r,size:i=LF,level:o=BF,bgColor:s=zF,fgColor:a=FF,includeMargin:l=UF,style:u,imageSettings:d}=n,h=OF(n,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),p=null==d?void 0:d.src,m=(0,c.useRef)(null),f=(0,c.useRef)(null),[g,v]=(0,c.useState)(!1);(0,c.useEffect)((()=>{if(null!=m.current){const e=m.current,t=e.getContext("2d");if(!t)return;let n=kF.QrCode.encodeText(r,DF[o]).getModules();const c=l?4:0,u=n.length+2*c,h=HF(n,i,l,d),p=f.current,g=null!=h&&null!==p&&p.complete&&0!==p.naturalHeight&&0!==p.naturalWidth;g&&null!=h.excavation&&(n=GF(n,h.excavation));const v=window.devicePixelRatio||1;e.height=e.width=i*v;const y=i/u*v;t.scale(y,y),t.fillStyle=s,t.fillRect(0,0,u,u),t.fillStyle=a,VF?t.fill(new Path2D(jF(n,c))):n.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+c,n+c,1,1)}))})),g&&t.drawImage(p,h.x+c,h.y+c,h.w,h.h)}})),(0,c.useEffect)((()=>{v(!1)}),[p]);const y=NF({height:i,width:i},u);let _=null;return null!=p&&(_=t(c).createElement("img",{src:p,key:p,style:{display:"none"},onLoad:()=>{v(!0)},ref:f})),t(c).createElement(t(c).Fragment,null,t(c).createElement("canvas",NF({style:y,height:i,width:i,ref:m},h)),_)}var qF=({tenant:e,url:n,title:r="",className:i,baseUrl:o,primary:a=!0,showQrCode:l=!0,align:u="right"})=>{const{t:d}=xe(),[h,p]=(0,c.useState)(n),m=(0,c.useMemo)((()=>(null==e?void 0:e.theme)?`${null!=o?o:"https://aisuru.com"}/images/${e.theme}/square_logo.png`:`${null!=o?o:"https://aisuru.com"}/images/memori_logo.png`),[e,o]);(0,c.useEffect)((()=>{n||p(window.location.href)}),[n]);const f=[{id:"facebook",title:"Facebook",url:`https://www.facebook.com/sharer/sharer.php?u=${h}`,icon:yF},{id:"twitter",title:"Twitter",url:`https://twitter.com/intent/tweet?url=${h}`,icon:_F},{id:"linkedin",title:"LinkedIn",url:`https://www.linkedin.com/shareArticle?mini=true&title=${r}&url=${h}`,icon:SF},{id:"whatsapp",title:"Whatsapp",url:`https://api.whatsapp.com/send?phone=&text=${h}`,icon:bF},{id:"telegram",title:"Telegram",url:`https://t.me/share/url?text=${r}&url=${h}`,icon:AF},{id:"email",title:"Email",url:`mailto:?subject=${(null==r?void 0:r.length)>0?r:n}&body=${h}`,icon:xF}];return(0,s.jsxs)(HN,{as:"div",className:t(xs)("memori-share-button",{"memori-share-button--align-left":"left"===u}),children:[(0,s.jsx)(HN.Button,{className:t(xs)("memori-button","memori-button--circle","memori-button--icon-only","memori-share-button--button",i,{"memori-button--primary":a}),title:d("widget.share")||void 0,children:(0,s.jsx)("div",{className:"memori-button--icon",children:(0,s.jsx)(wF,{})})}),(0,s.jsxs)(HN.Items,{className:"memori-share-button--overlay",as:"ul",children:[(0,s.jsx)(HN.Item,{as:"li",className:"memori-share-button--li",children:(0,s.jsx)(Cm,{className:"memori-share-button--link",ghost:!0,icon:(0,s.jsx)(dO,{}),onClick:()=>{h&&navigator.clipboard.writeText(h)},children:d("copyToClipboard")||void 0})},"copy"),f.map((e=>{var n;return(0,s.jsx)(HN.Item,{as:"li",className:"memori-share-button--li",children:(0,s.jsxs)("a",{className:t(xs)("memori-button","memori-button--with-icon","memori-button--ghost","memori-button--padded","memori-share-button--link"),href:null!==(n=e.url)&&void 0!==n?n:"",target:"_blank",rel:"noopener noreferrer",children:[(0,s.jsx)("div",{className:"memori-button--icon",children:(0,s.jsx)(e.icon,{})}),e.title]})},e.id)})),l&&(0,s.jsxs)(HN.Item,{as:"li",className:"memori-share-button--li-qr-code",children:[(0,s.jsx)(WF,{id:"qr-canvas",value:null!=h?h:"",size:128,bgColor:"#ffffff",fgColor:"#000000",level:"H",includeMargin:!1,imageSettings:{src:m,x:void 0,y:void 0,height:32,width:32,excavate:!0}}),(0,s.jsx)("div",{children:(0,s.jsx)(Cm,{onClick:()=>{const e=document.getElementById("qr-canvas");if(!e)return;const t=document.createElement("a");t.href=e.toDataURL(),t.download=`memori-${r}-share.png`,document.body.appendChild(t),t.click(),document.body.removeChild(t)},icon:(0,s.jsx)(CF,{}),title:"Download QR",children:"Download"})})]},"qrcode")]})]})};var JF=({className:e,title:t})=>(0,s.jsx)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",focusable:"false",role:"img",className:e,"aria-label":t,children:(0,s.jsx)("path",{d:"M290 236.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0 0 13.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 0 0 0 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 0 0-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"})});var KF=({className:e,title:t})=>(0,s.jsxs)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",focusable:"false",role:"img",className:e,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2","aria-label":t,children:[(0,s.jsx)("path",{d:"M23 4L23 10 17 10"}),(0,s.jsx)("path",{d:"M1 20L1 14 7 14"}),(0,s.jsx)("path",{d:"M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15"})]});var YF=({className:e,title:t})=>(0,s.jsx)("svg",{...t?{}:{"aria-hidden":"true"},focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",className:e,"aria-label":t,children:(0,s.jsx)("path",{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6c-.3 1.5-.4 3-.4 4.4 0 14.4 11.6 26 26 26h723c1.5 0 3-.1 4.4-.4 14.2-2.4 23.7-15.9 21.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"})});var XF=({className:e,memori:n,tenant:r,history:i,position:o,setShowPositionDrawer:a,setShowSettingsDrawer:l,setShowKnownFactsDrawer:u,setShowExpertsDrawer:d,enableAudio:h=!0,speakerMuted:p,setSpeakerMuted:m,hasUserActivatedSpeak:f=!1,showShare:g=!0,showSettings:v=!0,showSpeaker:y=!0,showReload:_=!1,showClear:S=!1,showLogin:b=!0,setShowLoginDrawer:x,clearHistory:w,loginToken:C,user:E,sessionID:A})=>{const{t:T}=xe(),[I,M]=(0,c.useState)(!1),[R,P]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{document.fullscreenEnabled&&M(!0)}),[]),(0,s.jsxs)("div",{className:t(xs)("memori-header",e),children:[n.needsPosition&&o&&(0,s.jsxs)("div",{className:"memori-header--position",children:[0!==o.latitude&&0!==o.longitude&&(0,s.jsx)("span",{className:"memori-header--position-placeName",children:o.placeName}),(0,s.jsx)(Cm,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button--position",title:T("widget.position")||"Position",icon:(0,s.jsx)(YO,{}),onClick:()=>a(!0)})]}),_&&(0,s.jsx)(Cm,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button--reload",title:T("reload")||"Reload",icon:(0,s.jsx)(KF,{}),onClick:()=>{window.location.reload()}}),S&&(0,s.jsx)(Cm,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button--clear",title:T("clearHistory")||"Clear chat",icon:(0,s.jsx)(YF,{}),onClick:w}),I&&(0,s.jsx)(Cm,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button--fullscreen",title:R?T("fullscreenExit")||"Exit fullscreen":T("fullscreenEnter")||"Enter fullscreen",icon:R?(0,s.jsx)(kO,{}):(0,s.jsx)(JF,{}),onClick:()=>{document.fullscreenElement?document.exitFullscreen&&(document.exitFullscreen(),P(!1)):(document.documentElement.requestFullscreen(),P(!0))}}),n.enableDeepThought&&!!C&&(null==E?void 0:E.pAndCUAccepted)&&(0,s.jsx)(Cm,{primary:!!A&&!!f,shape:"circle",icon:(0,s.jsx)(JO,{}),className:"memori-header--button memori-header--button--knownfacts",disabled:!f||!A,onClick:()=>u(!0),title:T("knownFacts.title")||"Known facts"}),n.enableBoardOfExperts&&(0,s.jsx)(Cm,{primary:!0,shape:"circle",icon:(0,s.jsx)(qO,{}),className:"memori-header--button memori-header--button--experts",disabled:!f||!A,onClick:()=>d(!0),title:T("widget.showExpertsInTheBoard")||"Experts in this board"}),h&&y&&(0,s.jsx)(Cm,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button--speaker",icon:p?(0,s.jsx)(Jz,{}):(0,s.jsx)(Yz,{}),onClick:()=>m(!p),title:T("widget.sound")||"Sound"}),(0,s.jsx)(gF,{history:i,memori:n,className:"memori-header--button memori-header--button--export",disabled:!f||0===i.length}),v&&(0,s.jsx)(Cm,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button-settings",icon:(0,s.jsx)(vF,{}),onClick:()=>l(!0),title:T("widget.settings")||"Settings"}),g&&(0,s.jsx)(qF,{className:"memori-header--button memori-header--button-share",title:n.name,tenant:r,showQrCode:!0,align:"left"}),b&&(0,s.jsx)(Cm,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button-login",icon:(0,s.jsx)(CN,{}),onClick:()=>x(!0),title:C?T("login.user")||"User":T("login.login")||"Login"})]})};var $F=({tenant:e,userLang:t="en",integrationID:n,memoriHash:r})=>{const i="memorytwin"===(null==e?void 0:e.theme)?"memorytwin":"twincreator"===(null==e?void 0:e.theme)?"twincreator":"aisuru";return(0,s.jsxs)("div",{className:"memori--powered-by",children:[(0,s.jsx)("img",{src:`https://aisuru.com/images/${i}/logo.png`,alt:""}),(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{className:"sr-only",children:"Powered by"}),(0,s.jsx)("a",{href:`https://memori.ai/${"it"===(null==t?void 0:t.toLowerCase())?"it":"en"}${n?`?integrationID=${n}`:""}${r?`${n?"&":"?"}memori=${r}`:""}`,target:"_blank",rel:"noopener noreferrer",children:"Memori.AI"})]})]})};c=o("85Hg2");var QF=({className:e,title:t})=>(0,s.jsx)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",focusable:"false",role:"img",className:e,fill:"currentColor","aria-label":t,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M10 3a.75.75 0 01.55.24l3.25 3.5a.75.75 0 11-1.1 1.02L10 4.852 7.3 7.76a.75.75 0 01-1.1-1.02l3.25-3.5A.75.75 0 0110 3zm-3.76 9.2a.75.75 0 011.06.04l2.7 2.908 2.7-2.908a.75.75 0 111.1 1.02l-3.25 3.5a.75.75 0 01-1.1 0l-3.25-3.5a.75.75 0 01.04-1.06z",clipRule:"evenodd"})});const ZF={en:["January","February","March","April","May","June","July","August","September","October","November","December"],it:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]},eU=(0,c.memo)((({defaultDate:e,onChange:t,disabled:n=!1})=>{const{t:r,i18n:i}=xe(),[o,a]=(0,c.useState)(e?"string"==typeof e?ws.DateTime.fromISO(e):ws.DateTime.fromJSDate(e):ws.DateTime.now());return(0,c.useEffect)((()=>{t(o)}),[o,t]),(0,s.jsxs)("div",{className:"memori--date-selector",children:[(0,s.jsx)("div",{className:"memori--date-selector__select",children:(0,s.jsxs)(JB,{value:o,onChange:e=>{a(e)},disabled:n,name:"day",children:[(0,s.jsxs)(JB.Label,{className:"memori--date-selector__select-label",children:[r("day"),":"]}),(0,s.jsxs)(JB.Button,{"aria-label":r("day"),className:"memori--date-selector__select-button",children:[(0,s.jsx)("span",{className:"memori--date-selector__select--value",children:o.day}),(0,s.jsx)("span",{className:"memori--date-selector__select--icon",children:(0,s.jsx)(QF,{})})]}),(0,s.jsx)(sp,{as:c.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)(JB.Options,{className:"memori--date-selector__select-options",children:[...Array(31).keys()].map((e=>(0,s.jsx)(JB.Option,{value:o.set({day:e+1}),className:"memori--date-selector__select-option",children:e+1},e)))})})]})}),(0,s.jsx)("div",{className:"memori--date-selector__select",children:(0,s.jsxs)(JB,{value:o,onChange:e=>{a(e)},disabled:n,name:"month",children:[(0,s.jsxs)(JB.Label,{className:"memori--date-selector__select-label",children:[r("month"),":"]}),(0,s.jsxs)(JB.Button,{"aria-label":r("month"),className:"memori--date-selector__select-button",children:[(0,s.jsx)("span",{className:"memori--date-selector__select--value",children:ZF["it"===i.language?"it":"en"][o.month-1]}),(0,s.jsx)("span",{className:"memori--date-selector__select--icon",children:(0,s.jsx)(QF,{})})]}),(0,s.jsx)(sp,{as:c.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)(JB.Options,{className:"memori--date-selector__select-options",children:ZF["it"===i.language?"it":"en"].map((e=>(0,s.jsx)(JB.Option,{className:"memori--date-selector__select-option",value:o.set({month:ZF["it"===i.language?"it":"en"].findIndex((t=>t===e))+1}),children:e},e)))})})]})}),(0,s.jsx)("div",{className:"memori--date-selector__select",children:(0,s.jsxs)(JB,{value:o,onChange:e=>{a(e)},disabled:n,name:"year",children:[(0,s.jsxs)(JB.Label,{className:"memori--date-selector__select-label",children:[r("year"),":"]}),(0,s.jsxs)(JB.Button,{"aria-label":r("year"),className:"memori--date-selector__select-button",children:[(0,s.jsx)("span",{className:"memori--date-selector__select--value",children:o.year}),(0,s.jsx)("span",{className:"memori--date-selector__select--icon",children:(0,s.jsx)(QF,{})})]}),(0,s.jsx)(sp,{as:c.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)(JB.Options,{className:"memori--date-selector__select-options",children:[...Array(ws.DateTime.now().year-1899).keys()].sort(((e,t)=>t-e)).map((e=>(0,s.jsx)(JB.Option,{value:o.set({year:e+1900}),className:"memori--date-selector__select-option",children:e+1900},e)))})})]})})]})}));eU.displayName="DateSelector";var tU=eU;c=o("85Hg2");var nU=({visible:e=!1,onClose:n,minAge:r})=>{const{t:i}=xe(),[o,a]=(0,c.useState)(),[l,u]=(0,c.useState)(),[d,h]=(0,c.useState)(!1),p=(0,c.useCallback)((()=>{if(h(!0),!o)return t(Qu).error(i("requiredField")),u(i("requiredField")||"Required field"),void h(!1);if(ws.DateTime.now().diff(o,"years").years<r)return t(Qu).error(i("underageTwinSession",{age:r})),u(i("underageTwinSession",{age:r})||`You must be at least ${r} years old to interact with this Twin`),void h(!1);n(o.toJSDate().toISOString())}),[o,r,n,i]);return(0,s.jsxs)(eP,{open:e,title:i("ageVerification"),className:"age-verification-modal",closable:!0,onClose:()=>n(),children:[(0,s.jsx)("p",{children:i("ageVerificationText",{minAge:r})}),(0,s.jsxs)("form",{className:"age-verification-form",onSubmit:e=>{e.preventDefault(),p()},children:[(0,s.jsx)("div",{className:"form-item",children:(0,s.jsxs)("fieldset",{name:"birthDate",children:[(0,s.jsx)("legend",{className:"sr-only",children:i("birthDate")}),(0,s.jsx)(tU,{defaultDate:new Date(Date.now()),onChange:e=>{a(e)}}),(0,s.jsx)("p",{className:"form-item-help",children:i("birthDateHelper")}),l&&(0,s.jsx)("p",{className:"form-item-error",children:l})]})}),(0,s.jsx)("div",{className:"form-item form-submit",children:(0,s.jsx)(Cm,{primary:!0,htmlType:"submit",className:"age-verification-submit",loading:d,disabled:!o,children:i("confirm")})})]})]})};c=o("85Hg2");var rU=({label:e,className:n,disabled:r=!1,indeterminate:i=!1,checked:o,children:a,onChange:l,name:u,...d})=>{const h=(0,c.useRef)(null);return(0,c.useEffect)((()=>{h.current&&(h.current.indeterminate=i)}),[h,i]),(0,s.jsxs)("label",{className:t(xs)("memori-checkbox",n,{"memori-checkbox--disabled":r,"memori-checkbox--indeterminate":i}),children:[(0,s.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,s.jsx)("input",{ref:h,type:"checkbox",...d,name:u,disabled:r,checked:o||i,className:"memori-checkbox--input",onChange:l}),(0,s.jsx)("span",{className:"memori-checkbox--inner"})]}),!!(null==e?void 0:e.length)&&(0,s.jsx)("span",{className:"memori-checkbox--text",children:e})]})};c=o("85Hg2");var iU=({className:e,value:n,name:r,displayValue:i,options:o,onChange:a,disabled:l=!1,label:u,placeholder:d})=>(0,s.jsx)("div",{className:t(xs)("memori-select",e),children:(0,s.jsxs)(JB,{value:n,onChange:e=>{a(e)},disabled:l,name:r,children:[u&&(0,s.jsxs)(JB.Label,{className:"memori-select--label",children:[u,":"]}),(0,s.jsxs)(JB.Button,{"aria-label":u,className:"memori-select--button",children:[(0,s.jsx)("span",{className:t(xs)("memori-select--value",{"memori-select--value-placeholder":!n}),children:n?i||n:d}),(0,s.jsx)("span",{className:"memori-select--icon",children:(0,s.jsx)(QF,{})})]}),(0,s.jsx)(sp,{as:c.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)(JB.Options,{className:"memori-select--options",children:o.map((e=>(0,s.jsx)(JB.Option,{value:e.value,className:"memori-select--option",children:e.label},e.value)))})})]})});const oU=[2,3,5,10,15,20,30,60];var sU=({open:e,layout:t="DEFAULT",onClose:n,microphoneMode:r="HOLD_TO_TALK",continuousSpeechTimeout:i,setMicrophoneMode:o,setContinuousSpeechTimeout:a,controlsPosition:l,setControlsPosition:c,hideEmissions:u,setHideEmissions:d,additionalSettings:h,avatarType:p,setAvatarType:m,enablePositionControls:f,setEnablePositionControls:g,isAvatar3d:v})=>{const{t:y}=xe();return(0,s.jsxs)(Am,{className:"memori-settings-drawer",open:e,onClose:n,title:y("widget.settings")||"Settings",description:y("write_and_speak.settingsHeaderLabel"),children:[(0,s.jsxs)("div",{className:"memori-settings-drawer--field controls",children:[(0,s.jsxs)("label",{htmlFor:"#microphoneMode",children:[y("write_and_speak.microphoneMode")||"Microphone mode",":"]}),(0,s.jsxs)(Wz,{id:"microphoneMode",name:"microphoneMode",value:r,defaultValue:r,className:"memori-settings-drawer--microphoneMode-radio",onChange:e=>{let t="CONTINUOUS"===e?"CONTINUOUS":"HOLD_TO_TALK";o(t),MB("microphoneMode",t)},children:[(0,s.jsx)(Wz.Option,{value:"HOLD_TO_TALK",className:"memori-settings-drawer--microphoneMode-radio-button",children:({checked:e})=>(0,s.jsx)(Cm,{primary:e,outlined:!e,children:y("write_and_speak.holdToSpeak")||"Hold to speak"})}),(0,s.jsx)(Wz.Option,{value:"CONTINUOUS",className:"memori-settings-drawer--microphoneMode-radio-button",children:({checked:e})=>(0,s.jsx)(Cm,{primary:e,outlined:!e,children:y("write_and_speak.continuousSpeechLabel")||"Continuous speech"})})]})]}),"CONTINUOUS"===r&&(0,s.jsx)("div",{className:"memori-settings-drawer--field",children:(0,s.jsx)(iU,{label:y("write_and_speak.secondsLabel")||"Seconds",placeholder:y("write_and_speak.secondsLabel")||"Seconds",options:oU.map((e=>({value:e,label:e}))),value:i,onChange:e=>{a(e),MB("continuousSpeechTimeout",e)}})}),"TOTEM"===t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"memori-settings-drawer--field controls",children:[(0,s.jsxs)("label",{htmlFor:"#controlsPosition",children:[y("write_and_speak.controlsPosition")||"Controls",":"]}),(0,s.jsxs)(Wz,{id:"controlsPosition",name:"controlsPosition",value:l,defaultValue:l,className:"memori-settings-drawer--controlsposition-radio",onChange:e=>{c(e),MB("controlsPosition",e)},children:[(0,s.jsx)(Wz.Option,{value:"center",className:"memori-settings-drawer--controlsposition-radio-button",children:({checked:e})=>(0,s.jsx)(Cm,{primary:e,outlined:!e,children:y("center")||"Center"})}),(0,s.jsx)(Wz.Option,{value:"bottom",className:"memori-settings-drawer--controlsposition-radio-button",children:({checked:e})=>(0,s.jsx)(Cm,{primary:e,outlined:!e,children:y("bottom")||"Bottom"})})]})]}),v&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"memori-settings-drawer--field controls",children:[(0,s.jsxs)("label",{htmlFor:"avatarType",className:"memori-settings-drawer-label",children:[y("write_and_speak.avatarType")||"Avatar type",":"]}),(0,s.jsxs)(Wz,{id:"avatarType",name:"avatarType",value:p,defaultValue:p,className:"memori-settings-drawer--avatarType-radio",onChange:e=>{m&&m(e),MB("avatarType",e)},children:[(0,s.jsx)(Wz.Option,{value:"blob",className:"memori-settings-drawer--avatarType-radio-button",children:({checked:e})=>(0,s.jsx)(Cm,{primary:e,outlined:!e,children:y("write_and_speak.blob")||"Blob"})}),(0,s.jsx)(Wz.Option,{value:"avatar3d",className:"memori-settings-drawer--avatarType-radio-button",children:({checked:e})=>(0,s.jsx)(Cm,{primary:e,outlined:!e,children:y("write_and_speak.avatar3d")||"Avatar 3D"})})]})]}),(0,s.jsx)("div",{className:"memori-settings-drawer--field",children:(0,s.jsx)(rU,{label:y("write_and_speak.enablePositionControls")||"Enable position controls",name:"enablePositionControls",checked:f,onChange:e=>{g(e.target.checked)}})})]}),(0,s.jsx)("div",{className:"memori-settings-drawer--field",children:(0,s.jsx)(rU,{label:y("write_and_speak.hideEmissionsLabel")||"Hide emissions",name:"hideControls",checked:u,onChange:e=>{d(e.target.checked),MB("hideEmissions",e.target.checked)}})})]}),h&&(0,s.jsx)("div",{className:"memori-settings-drawer--field controls",children:h})]})};c=o("85Hg2");var aU=({className:e,title:t})=>(0,s.jsx)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",focusable:"false",role:"img",className:e,"aria-label":t,children:(0,s.jsx)("path",{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"})});var lU=({className:e,title:t})=>(0,s.jsx)("svg",{...t?{}:{"aria-hidden":"true"},focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:e,"aria-label":t,children:(0,s.jsx)("path",{d:"M15 18L9 12 15 6"})});var cU=({className:e,title:t})=>(0,s.jsx)("svg",{...t?{}:{"aria-hidden":"true"},focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:e,"aria-label":t,children:(0,s.jsx)("path",{d:"M9 18L15 12 9 6"})});var uU=({apiClient:e,sessionID:n,memori:r,visible:i=!0,initialKnownFacts:o=[],closeDrawer:a})=>{var l;const{t:u}=xe(),{getKnownFactsPaginated:d,deleteKnownFact:h}=e.knownFacts,[p,m]=(0,c.useState)(o),[f,g]=(0,c.useState)(25),[v,y]=(0,c.useState)(0),[_,S]=(0,c.useState)(null!==(l=null==o?void 0:o.length)&&void 0!==l?l:0),[b,x]=(0,c.useState)(!1),w=async(e,r,i)=>{if(n||e){x(!0);try{const{knownFacts:o,count:s,...a}=await d(null!=e?e:n,null!=r?r:v,null!=i?i:f);m(null!=o?o:[]),S(null!=s?s:0),0!==a.resultCode&&(console.error(a),t(Qu).error(u(nO(a.resultCode))))}catch(e){console.error("KNOWN_FACTS/FETCH",e),m(null!=o?o:[])}x(!1)}};(0,c.useEffect)((()=>{w()}),[]);const[C,E]=(0,c.useState)(!1),[A,T]=(0,c.useState)(),[I,M]=(0,c.useState)([]);return(0,s.jsxs)(Am,{open:i,width:"80%",className:"memori-known-facts-drawer",onClose:()=>a(),title:u("knownFacts.title"),children:[(0,s.jsx)("p",{children:u("knownFacts.description",{memoriName:r.name})}),(0,s.jsxs)(wm,{spinning:b,children:[(0,s.jsxs)("div",{className:"memori-known-facts-actions",children:[(0,s.jsxs)(Cm,{primary:!0,danger:!0,onClick:()=>{E(!0)},className:"memori-known-facts-delete-selected",disabled:0===(null==I?void 0:I.length),icon:(0,s.jsx)(aU,{}),loading:b,children:[u("selected")," (",null==I?void 0:I.length,")"]}),(0,s.jsx)(eP,{className:"memori-known-facts-modal",open:C,closable:!0,title:I.length>1?u("knownFacts.deleteSelectedConfirmTitle"):u("knownFacts.deleteConfirmTitle"),description:I.length>1?u("knownFacts.deleteSelectedConfirmMessage",{number:I.length}):u("knownFacts.deleteConfirmMessage"),onClose:()=>{E(!1)},footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Cm,{ghost:!0,onClick:()=>{E(!1)},children:u("cancel")}),(0,s.jsx)(Cm,{primary:!0,danger:!0,onClick:async()=>{try{const e=I.map((e=>h(n,e)));Promise.all(e).then((e=>{if(e.every((e=>0===e.resultCode)))t(Qu).success(u("knownFacts.deleteSuccess")),M([]),w(),E(!1);else{let n=e.find((e=>0!==e.resultCode));console.error(n),void 0!==(null==n?void 0:n.resultCode)&&t(Qu).error(u(nO(null==n?void 0:n.resultCode)))}}))}catch(e){let n=e;t(Qu).error(u("Error")+n.message)}},children:u("confirm")})]})})]}),_>25&&(0,s.jsxs)("nav",{className:"memori--table--pagination",children:[_>f&&(0,s.jsxs)("div",{className:"memori--table--pagination--pages",children:[(0,s.jsx)(Cm,{shape:"circle",disabled:0===v||v<f,padded:!1,title:u("previous")||"Previous",icon:(0,s.jsx)(lU,{}),onClick:()=>{let e=(v/f-1)*f;y(e),w(void 0,e,f)}}),(0,s.jsxs)("span",{className:"memori--table--pagination--pages--current",children:[Math.ceil(v/f)+1," /"," ",Math.ceil(_/f)]}),(0,s.jsx)(Cm,{shape:"circle",padded:!1,title:u("next")||"Next",icon:(0,s.jsx)(cU,{}),disabled:(v/f+1)*f>=_,onClick:()=>{let e=(v/f+1)*f;y(e),w(void 0,e,f)}})]}),(0,s.jsx)(iU,{options:[{label:`25 / ${u("page")||"page"}`,value:25},{label:`50 / ${u("page")||"page"}`,value:50},{label:`100 / ${u("page")||"page"}`,value:100}],value:f,displayValue:`${f} / ${u("page")||"page"}`,onChange:e=>{g(e),y(0),w(void 0,0,e)}})]}),(0,s.jsxs)("table",{className:"memori--table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"memori--table--column-centered",children:(0,s.jsx)(rU,{checked:!!(null==p?void 0:p.length)&&(null==I?void 0:I.length)===p.length,indeterminate:!!(null==p?void 0:p.length)&&!!(null==I?void 0:I.length)&&(null==I?void 0:I.length)!==(null==p?void 0:p.length),onChange:e=>{e.target.checked?M(p.map((e=>e.knownFactID))):M([])}})}),(0,s.jsx)("th",{children:u("knownFacts.text")}),(0,s.jsx)("th",{className:"mobile-hidden",children:u("createdAt")}),(0,s.jsx)("th",{className:"memori--table--column-right",children:u("actions")})]})}),(0,s.jsx)("tbody",{children:p.map((e=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"memori--table--column-centered",children:(0,s.jsx)(rU,{checked:null==I?void 0:I.includes(e.knownFactID),onChange:t=>{t.target.checked?M((t=>[...new Set([...t,e.knownFactID])])):M((t=>t.filter((t=>t!==e.knownFactID))))}})}),(0,s.jsx)("td",{children:e.text}),(0,s.jsx)("td",{className:"mobile-hidden",children:(0,s.jsx)("span",{className:"memori--table--date",children:e.creationTimestamp?new Intl.DateTimeFormat("it",{dateStyle:"short",timeStyle:"short"}).format(new Date(e.creationTimestamp)):"-"})}),(0,s.jsx)("td",{className:"memori--table--column-right",children:(0,s.jsxs)("div",{className:"memori--table--action-column",children:[(0,s.jsx)(Cm,{danger:!0,ghost:!0,shape:"circle",icon:(0,s.jsx)(aU,{}),disabled:(null==I?void 0:I.length)>0,title:u("delete")||"Delete",onClick:()=>T(e.knownFactID)}),(0,s.jsx)(eP,{className:"memori-known-facts-modal",open:A===e.knownFactID,closable:!0,title:u("knownFacts.deleteConfirmTitle"),description:u("knownFacts.deleteConfirmMessage"),onClose:()=>{T(void 0)},footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Cm,{ghost:!0,onClick:()=>{T(void 0)},children:u("cancel")}),(0,s.jsx)(Cm,{primary:!0,danger:!0,onClick:async()=>{try{const r=await h(n,e.knownFactID);0===r.resultCode?(t(Qu).success(u("knownFacts.deleteSuccess")),M([]),w(),T(void 0)):(console.error(r),t(Qu).error(u(nO(r.resultCode),{ns:"common"})))}catch(e){let n=e;t(Qu).error(u("Error")+n.message)}},children:u("confirm")})]})})]})})]},e.knownFactID)))})]})]})]})};var dU=({open:e=!1,baseUrl:t,apiUrl:n,tenant:r,experts:i,onClose:o})=>{const{t:a}=xe();return(0,s.jsx)(Am,{open:e,onClose:o,className:"memori--experts-drawer",title:(0,s.jsx)("h2",{className:"memori--experts-drawer--title",children:a("widget.expertsInTheBoard")}),children:(0,s.jsx)("ul",{className:"memori--experts-drawer--list",children:i.map((e=>(0,s.jsxs)("li",{className:"memori--experts-drawer--item",children:[(0,s.jsx)("figure",{className:"memori--experts-drawer--avatar",children:(0,s.jsx)("img",{src:`${n}/api/v1/memoriai/memori/avatar/${e.expertMemoriID}`,alt:e.name,onError:e=>{e.currentTarget.src=wN({tenantID:null==r?void 0:r.id,type:"avatar",baseURL:t}),e.currentTarget.onerror=null}})}),(0,s.jsxs)("div",{className:"memori--experts-drawer--content",children:[(0,s.jsx)("h3",{className:"memori--experts-drawer--name",children:e.name}),(0,s.jsx)("p",{className:"memori--experts-drawer--description",children:e.description})]})]},e.expertID)))})})};c=o("85Hg2"),c=o("85Hg2");const hU=["memori","private","public","api","404","500","it","en","account","auth","logout","privacy_and_cookie","unauthorized","users","virtual_spaces"];var pU=({tenant:e,apiClient:n,onLogin:r,goToLogin:i,__TEST__waitingForOtp:o=!1})=>{const{t:a,i18n:l}=xe(),u="it"===l.language?"it":"en",{userSignUp:d,userConfirmSignUp:h,resendVerificationCode:p}=n.backend,[m,f]=(0,c.useState)(),[g,v]=(0,c.useState)(),[y,_]=(0,c.useState)(),[S,b]=(0,c.useState)(),x=!y||y&&nR.test(y),w=x&&y&&y.length>=24,C=!y||0===y.length,E=!x||C?0:y.length<8?15:y.length>=32?100:(y.length-8)*(50/24)+50,[A,T]=(0,c.useState)(!1),[I,M]=(0,c.useState)(!1),[R,P]=(0,c.useState)(o),[N,O]=(0,c.useState)(null),[k,D]=(0,c.useState)();(0,c.useEffect)((()=>{D(window.location.href)}),[]);return R?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("form",{className:"memori--login-drawer--form",onSubmit:async n=>{var i,o,s;n.preventDefault();const l=n.currentTarget,c=null!==(i=l.tenant.value)&&void 0!==i?i:e.id,u=null!==(o=l.userName.value)&&void 0!==o?o:g,d=null!==(s=l.password.value)&&void 0!==s?s:y,p=l.verificationCode.value;T(!0),O(null);try{const{user:e,token:n,...i}=await h({tenant:c,userName:u,password:d,verificationCode:p});0!==i.resultCode?(console.error(i),t(Qu).error(a(nO(i.resultCode)))):e&&n&&(t(Qu).success(a("success")),r(e,n))}catch(e){let n=e;console.error("[validate otp]",n),(null==n?void 0:n.message)&&t(Qu).error(n.message)}finally{T(!1)}},children:[(0,s.jsx)("input",{type:"hidden",name:"userName",value:g}),(0,s.jsx)("input",{type:"hidden",name:"password",value:y}),(0,s.jsx)("input",{type:"hidden",name:"tenant",value:e.id}),(0,s.jsxs)("label",{htmlFor:"#verificationCode",children:[a("login.otpCode"),(0,s.jsx)("input",{id:"verificationCode",name:"verificationCode",type:"text",required:!0,autoComplete:"one-time-code",placeholder:a("login.otpCode")||"OTP"})]}),(0,s.jsx)("p",{children:(0,s.jsx)(Cm,{outlined:!0,onClick:async n=>{if(n.preventDefault(),g){M(!0);try{const n=await p({tenant:null==e?void 0:e.id,userName:g});0===n.resultCode?t(Qu).success(a("resentVerificationCode")):(console.error(n),t(Qu).error(a(nO(n.resultCode))))}catch(e){let n=e;console.error("[resend otp]",n),(null==n?void 0:n.message)&&t(Qu).error(n.message)}finally{M(!1)}}},loading:I,children:a("login.resendVerificationCode")})}),(0,s.jsx)(Cm,{htmlType:"submit",primary:!0,loading:A,children:a("confirm")})]}),N&&(0,s.jsx)("p",{role:"alert",className:"memori--login-drawer--error",children:N})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("form",{className:"memori--login-drawer--form",onSubmit:async n=>{var r,i,o,s,l,c,u;n.preventDefault();const h=n.currentTarget,p=null!==(r=h.tenant.value)&&void 0!==r?r:e.id,f=(null!==(i=h.eMail.value)&&void 0!==i?i:m).toLowerCase(),v=null!==(o=h.userName.value)&&void 0!==o?o:g,y=h.password.value,_=new Date(null===(s=h.birthDate)||void 0===s?void 0:s.value).toISOString(),S=null===(l=h.tnCAndPPAccepted)||void 0===l?void 0:l.checked,b=null===(c=h.pAndCUAccepted)||void 0===c?void 0:c.checked,x=null===(u=h.referral)||void 0===u?void 0:u.value;if(!(f&&v&&y&&_&&S))return void O(a("missingData"));T(!0),O(null);if(((new Date).getTime()-new Date(_).getTime())/1e3/60/60/24/365<14)return t(Qu).error(a("login.underage",{age:14})),void O(a("login.underage",{age:14}));try{const{user:e,...n}=await d({tenant:p,eMail:f,userName:v,password:y,birthDate:_,tnCAndPPAccepted:S,tnCAndPPAcceptanceDate:(new Date).toISOString(),pAndCUAccepted:b,pAndCUAcceptanceDate:(new Date).toISOString(),referral:x});0!==n.resultCode?(console.error(n),t(Qu).error(a(nO(n.resultCode)))):e&&(t(Qu).success(a("success")),P(!0))}catch(e){let n=e;console.error("[signup]",n),(null==n?void 0:n.message)&&t(Qu).error(n.message)}finally{T(!1)}},children:[(0,s.jsx)("input",{type:"hidden",name:"tenant",value:e.id}),(0,s.jsx)("input",{type:"hidden",name:"referral",value:k}),(0,s.jsxs)("label",{htmlFor:"#eMail",children:[a("login.email"),(0,s.jsx)("input",{type:"email",name:"eMail",id:"eMail",required:!0,autoComplete:"email",placeholder:a("login.email")||"Email",onChange:e=>f(e.target.value),"aria-invalid":!!(null==m?void 0:m.length)&&!rR.test(m)})]}),!!(null==m?void 0:m.length)&&!rR.test(m)&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:a("login.emailFormatError")}),(0,s.jsxs)("label",{htmlFor:"userName",children:[a("login.username"),(0,s.jsx)("input",{type:"text",name:"userName",id:"userName",required:!0,autoComplete:"username",placeholder:a("login.username")||"Username",onFocus:()=>{if(!(null==g?void 0:g.length)&&(null==m?void 0:m.length)){let e=(e=>e.split("@")[0].replace(/[^a-zA-Z0-9]/g,""))(m);const t=document.getElementById("userName");t&&(t.value=e,v(e))}},onChange:e=>v(e.target.value),"aria-invalid":!!(null==g?void 0:g.length)&&(hU.includes(g.toLowerCase())||!iR.test(g))})]}),!!(null==g?void 0:g.length)&&hU.includes(g.toLowerCase())&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:a("login.usernameContainsReservedWord")}),!!(null==g?void 0:g.length)&&!iR.test(g)&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:a("login.usernameFormatError")}),(0,s.jsxs)("label",{htmlFor:"#birthDate",children:[a("login.birthDate"),(0,s.jsx)("input",{id:"birthDate",name:"birthDate",type:"date",required:!0,autoComplete:"bday"})]}),(0,s.jsx)("p",{children:(0,s.jsx)("small",{children:a("login.birthDateHelper")})}),(0,s.jsxs)("label",{htmlFor:"#password",children:[a("login.password"),(0,s.jsx)("input",{id:"password",name:"password",type:"password",required:!0,autoComplete:"new-password",placeholder:a("login.password")||"Password",onChange:e=>_(e.target.value),"aria-invalid":!x})]}),!x&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:a("login.passwordFormatError")}),(0,s.jsxs)("label",{htmlFor:"#confirm-password",children:[a("login.confirmPassword"),(0,s.jsx)("input",{id:"confirm-password",name:"confirmPassword",type:"password",required:!0,autoComplete:"new-password",placeholder:a("login.confirmPassword")||"Password",onChange:e=>b(e.target.value),"aria-invalid":!!(null==y?void 0:y.length)&&!!(null==S?void 0:S.length)&&y!==S})]}),!!(null==y?void 0:y.length)&&!!(null==S?void 0:S.length)&&y!==S&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:a("login.passwordMatchingError")}),(0,s.jsx)("meter",{className:"memori--login-drawer--password-meter",min:0,low:33,high:66,optimum:80,max:100,value:E,id:"password-strength-meter"}),(0,s.jsx)("small",{children:a("login.pwd"+(w?"Strong":x?"Acceptable":"Weak"))}),(0,s.jsxs)("label",{className:"memori-checkbox",children:[(0,s.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,s.jsx)("input",{type:"checkbox",name:"tnCAndPPAccepted",required:!0,className:"memori-checkbox--input"}),(0,s.jsx)("span",{className:"memori-checkbox--inner"})]}),(0,s.jsxs)("span",{className:"memori-checkbox--text",children:[a("login.privacyLabel")," ",(0,s.jsx)("a",{href:`https://memori.ai/${u}/privacy_and_cookie`,target:"_blank",rel:"noopener noreferrer",children:a("login.privacyAndCookiePolicy")})," ",a("login.and")," ",(0,s.jsx)("a",{href:`https://memori.ai/${u}/tos`,target:"_blank",rel:"noopener noreferrer",children:a("login.termsOfService")})]})]}),(0,s.jsxs)("label",{className:"memori-checkbox",children:[(0,s.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,s.jsx)("input",{type:"checkbox",name:"pAndCUAccepted",className:"memori-checkbox--input"}),(0,s.jsx)("span",{className:"memori-checkbox--inner"})]}),(0,s.jsxs)("span",{className:"memori-checkbox--text",children:[a("login.pAndCUAccepted")," ",(0,s.jsx)("small",{children:(0,s.jsxs)("em",{children:["(",a("login.optional"),")"]})})]})]}),(0,s.jsx)("p",{children:(0,s.jsx)("small",{children:a("login.deepThoughtExplaination")})}),(0,s.jsx)(Cm,{htmlType:"submit",primary:!0,loading:A,children:a("login.signUp")}),(0,s.jsxs)("p",{className:"memori--login-drawer--signup",children:[a("login.alreadyHaveAnAccount")," ",(0,s.jsx)(Cm,{outlined:!0,onClick:i,children:a("login.backToLogin")})]})]}),N&&(0,s.jsx)("p",{role:"alert",className:"memori--login-drawer--error",children:N})]})};c=o("85Hg2");const mU=["image/jpeg","image/png","image/jpg","image/gif"];var fU=({user:e,loginToken:n,apiClient:r,onUserUpdate:i})=>{const{t:o,i18n:a}=xe(),l="it"===a.language?"it":"en",{updateUser:u,uploadAsset:d}=r.backend,[h,p]=(0,c.useState)(),[m,f]=(0,c.useState)(),[g,v]=(0,c.useState)(),y=!m||m&&nR.test(m),_=y&&m&&m.length>=24,S=!m||0===m.length,b=!y||S?0:m.length<8?15:m.length>=32?100:(m.length-8)*(50/24)+50,[x,w]=(0,c.useState)(!1),[C,E]=(0,c.useState)(null),A=async(e,r)=>{try{const{user:s,...a}=await u(n,e,r);0!==a.resultCode?(console.error(a),t(Qu).error(o(nO(a.resultCode)))):s&&(t(Qu).success(o("success")),i(s))}catch(e){let n=e;console.error("[signup]",n),(null==n?void 0:n.message)&&t(Qu).error(n.message)}finally{w(!1)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{className:"memori--login-drawer--edit-account-title",children:o("login.editAccount")}),(0,s.jsxs)("form",{className:"memori--login-drawer--form memori--login-drawer--account-form",onSubmit:async r=>{var i,s,a,l,c;if(r.preventDefault(),!e.userID)return;const u=e.userID,p=r.currentTarget,f=null!==(i=p.eMail.value)&&void 0!==i?i:h,g=null!==(s=p.newPassword.value)&&void 0!==s?s:m,v=p.password.value,y=p.confirmPassword.value,_=null===(a=p.pAndCUAccepted)||void 0===a?void 0:a.checked,S=null===(c=null===(l=p.avatar)||void 0===l?void 0:l.files)||void 0===c?void 0:c[0];if(w(!0),E(null),(null==g?void 0:g.length)&&g!==y)return E(o("login.passwordMatchingError")),void w(!1);let b={...(null==f?void 0:f.length)&&f!==e.eMail?{eMail:f}:{},...g?{password:v,newPassword:g}:{},...void 0!==_&&_!==e.pAndCUAccepted?{pAndCUAccepted:_,pAndCUAcceptanceDate:(new Date).toISOString()}:{}};if(0===Object.values(b).length&&!S)return console.debug("No changes to submit"),void w(!1);if(S){const e=new FileReader;e.onload=async e=>{var r,i;try{const{asset:s,...a}=await d(null!==(r=S.name)&&void 0!==r?r:"avatar",null===(i=e.target)||void 0===i?void 0:i.result,n);0!==a.resultCode?(console.error(a),t(Qu).error(o(nO(a.resultCode)))):s&&(b.avatarURL=s.assetURL,await A(u,b))}catch(e){let n=e;console.error("[avatar upload]",n),(null==n?void 0:n.message)&&t(Qu).error(n.message)}},e.readAsDataURL(S)}else await A(u,b)},children:[(0,s.jsxs)("details",{className:"memori--details",children:[(0,s.jsx)("summary",{children:o("login.emailChange")}),(0,s.jsxs)("label",{htmlFor:"#eMail",children:[o("login.email"),(0,s.jsx)("input",{type:"email",name:"eMail",id:"eMail",autoComplete:"email",placeholder:e.eMail,onChange:e=>p(e.target.value),"aria-invalid":!!(null==h?void 0:h.length)&&!rR.test(h)})]}),!!(null==h?void 0:h.length)&&!rR.test(h)&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:o("login.emailFormatError")})]}),(0,s.jsxs)("details",{className:"memori--details",children:[(0,s.jsx)("summary",{children:o("login.passwordChange")}),(0,s.jsxs)("label",{htmlFor:"#password",children:[o("login.currentPassword"),(0,s.jsx)("input",{id:"password",name:"password",type:"password",autoComplete:"password",placeholder:o("login.currentPassword")||"Password"})]}),(0,s.jsxs)("label",{htmlFor:"#newPassword",children:[o("login.newPassword"),(0,s.jsx)("input",{id:"newPassword",name:"newPassword",type:"password",autoComplete:"new-password",placeholder:o("login.password")||"Password",onChange:e=>f(e.target.value),"aria-invalid":!y})]}),!y&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:o("login.passwordFormatError")}),(0,s.jsxs)("label",{htmlFor:"#confirm-password",children:[o("login.confirmPassword"),(0,s.jsx)("input",{id:"confirm-password",name:"confirmPassword",type:"password",autoComplete:"new-password",placeholder:o("login.confirmPassword")||"Password",onChange:e=>v(e.target.value),"aria-invalid":!!(null==m?void 0:m.length)&&!!(null==g?void 0:g.length)&&m!==g})]}),!!(null==m?void 0:m.length)&&!!(null==g?void 0:g.length)&&m!==g&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:o("login.passwordMatchingError")}),(0,s.jsx)("meter",{className:"memori--login-drawer--password-meter",min:0,low:33,high:66,optimum:80,max:100,value:b,id:"password-strength-meter"}),(0,s.jsx)("small",{children:o("login.pwd"+(_?"Strong":y?"Acceptable":"Weak"))})]}),(0,s.jsxs)("details",{className:"memori--details",children:[(0,s.jsx)("summary",{children:o("login.avatarChange")}),(0,s.jsxs)("label",{htmlFor:"#avatar",children:["Avatar",(0,s.jsx)("input",{type:"file",name:"avatar",id:"avatar",accept:mU.join(", "),placeholder:e.avatarURL})]})]}),(0,s.jsxs)("label",{className:"memori-checkbox memori-checkbox--disabled",children:[(0,s.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,s.jsx)("input",{type:"checkbox",name:"tnCAndPPAccepted",disabled:!0,defaultChecked:e.tnCAndPPAccepted,checked:e.tnCAndPPAccepted,className:"memori-checkbox--input"}),(0,s.jsx)("span",{className:"memori-checkbox--inner"})]}),(0,s.jsxs)("span",{className:"memori-checkbox--text",children:[o("login.privacyLabel")," ",(0,s.jsx)("a",{href:`https://memori.ai/${l}/privacy_and_cookie`,target:"_blank",rel:"noopener noreferrer",children:o("login.privacyAndCookiePolicy")})," ",o("login.and")," ",(0,s.jsx)("a",{href:`https://memori.ai/${l}/tos`,target:"_blank",rel:"noopener noreferrer",children:o("login.termsOfService")})]})]}),(0,s.jsxs)("label",{className:"memori-checkbox",children:[(0,s.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,s.jsx)("input",{type:"checkbox",name:"pAndCUAccepted",className:"memori-checkbox--input",defaultChecked:e.pAndCUAccepted}),(0,s.jsx)("span",{className:"memori-checkbox--inner"})]}),(0,s.jsx)(TN,{align:"left",content:o("login.deepThoughtExplaination"),children:(0,s.jsxs)("span",{className:"memori-checkbox--text",children:[o("login.pAndCUAccepted")," ",(0,s.jsx)("small",{children:(0,s.jsxs)("em",{children:["(",o("login.optional"),")"]})})]})})]}),(0,s.jsx)(Cm,{htmlType:"submit",primary:!0,loading:x,children:o("login.save")})]}),C&&(0,s.jsx)("p",{role:"alert",className:"memori--login-drawer--error",children:C})]})};var gU=({open:e=!1,onClose:n,onLogin:r,onLogout:i,user:o,loginToken:a,tenant:l,apiClient:u,__TEST__signup:d=!1,__TEST__needMissingData:h=!1,__TEST__waitingForOtp:p=!1,__TEST__changePwd:m=!1})=>{var f,g;const{t:v,i18n:y}=xe(),_="it"===y.language?"it":"en",{userLogin:S,updateUser:b}=u.backend,x=(null==o?void 0:o.userID)&&a,[w,C]=(0,c.useState)(!1),[E,A]=(0,c.useState)(null),[T,I]=(0,c.useState)(d),[M,R]=(0,c.useState)(m?{flowID:"flowID",tenant:l.id,eMail:"email",userName:"username",password:"password"}:void 0),[P,N]=(0,c.useState)(h?{token:"token",birthDate:!0,tnCAndPPAccepted:!0}:{}),[O,k]=(0,c.useState)(),[D,L]=(0,c.useState)(),B=!O||O&&nR.test(O),z=B&&O&&O.length>=24,F=!O||0===O.length,U=!B||F?0:O.length<8?15:O.length>=32?100:(O.length-8)*(50/24)+50;return(0,s.jsx)(Am,{open:e,onClose:n,className:t(xs)("memori--login-drawer",{"memori--login-drawer--logged":x,"memori--login-drawer--signup":T}),title:(0,s.jsx)("span",{className:"memori--login-drawer--title",children:x?v("login.loggedDrawerTitle",{name:o.userName}):v(T?"login.signupDrawerTitle":"login.loginDrawerTitle")}),children:x?(0,s.jsxs)("div",{className:"memori--login-drawer--logged",children:[o.avatarURL&&(0,s.jsx)("figure",{className:"memori--login-drawer--avatar",children:(0,s.jsx)("img",{src:o.avatarURL,alt:o.userName})}),(0,s.jsx)(Cm,{primary:!0,onClick:()=>{i()},children:v("login.logout")}),(0,s.jsx)(fU,{user:o,loginToken:a,apiClient:u,onUserUpdate:e=>r(e,a)})]}):(null===(f=null==P?void 0:P.token)||void 0===f?void 0:f.length)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{children:v("login.missingData")}),(0,s.jsx)("p",{children:v("login.missingDataHelper")}),(0,s.jsxs)("form",{className:"memori--login-drawer--form",onSubmit:async e=>{var n,i,s;e.preventDefault();const a=e.currentTarget,l=null===(n=a.birthDate)||void 0===n?void 0:n.value,c=null===(i=a.tnCAndPPAccepted)||void 0===i?void 0:i.checked,u=null===(s=a.pAndCUAccepted)||void 0===s?void 0:s.checked;if(!(null==o?void 0:o.userID)||!(null==P?void 0:P.token))return;if(!l||!c)return void A(v("missingData"));let d={userID:o.userID,birthDate:(null==o?void 0:o.birthDate)||!P.birthDate?void 0:l,tnCAndPPAccepted:c||(null==o?void 0:o.tnCAndPPAccepted),tnCAndPPAcceptanceDate:c?(new Date).toISOString():void 0,pAndCUAccepted:u||(null==o?void 0:o.pAndCUAccepted),pAndCUAcceptanceDate:u?(new Date).toISOString():void 0};const{user:h,...p}=await b(P.token,o.userID,d);0!==p.resultCode?(console.error(p),t(Qu).error(v(nO(p.resultCode))),A(p.resultMessage)):(t(Qu).success(v("success")),r(h||d,P.token))},children:[P.birthDate&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("label",{htmlFor:"#birthDate",children:[v("login.birthDate"),(0,s.jsx)("input",{id:"birthDate",name:"birthDate",type:"date",required:!0,autoComplete:"bday"})]}),(0,s.jsx)("p",{children:(0,s.jsx)("small",{children:v("login.birthDateHelper")})})]}),(null==P?void 0:P.tnCAndPPAccepted)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("label",{className:"memori-checkbox",children:[(0,s.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,s.jsx)("input",{type:"checkbox",name:"tnCAndPPAccepted",className:"memori-checkbox--input"}),(0,s.jsx)("span",{className:"memori-checkbox--inner"})]}),(0,s.jsxs)("span",{className:"memori-checkbox--text",children:[v("login.privacyLabel")," ",(0,s.jsx)("a",{href:`https://memori.ai/${_}/privacy_and_cookie`,target:"_blank",rel:"noopener noreferrer",children:v("login.privacyAndCookiePolicy")})," ",v("login.and")," ",(0,s.jsx)("a",{href:`https://memori.ai/${_}/tos`,target:"_blank",rel:"noopener noreferrer",children:v("login.termsOfService")})]})]}),(0,s.jsxs)("label",{className:"memori-checkbox",children:[(0,s.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,s.jsx)("input",{type:"checkbox",name:"pAndCUAccepted",defaultChecked:null==o?void 0:o.pAndCUAccepted,className:"memori-checkbox--input"}),(0,s.jsx)("span",{className:"memori-checkbox--inner"})]}),(0,s.jsxs)("span",{className:"memori-checkbox--text",children:[v("login.pAndCUAccepted")," ",(0,s.jsx)("small",{children:(0,s.jsxs)("em",{children:["(",v("login.optional"),")"]})})]})]}),(0,s.jsx)("p",{children:(0,s.jsx)("small",{children:v("login.goToAccountToChangeYourPreferences")})}),(0,s.jsx)("p",{children:(0,s.jsx)("small",{children:v("login.deepThoughtExplaination")})})]}),(0,s.jsx)(Cm,{htmlType:"submit",primary:!0,loading:w,children:v("login.save")})]})]}):(null==M?void 0:M.flowID)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:v("login.mustChangePassword")}),(0,s.jsxs)("form",{className:"memori--login-drawer--form",onSubmit:async e=>{var n,i,o,s,a;e.preventDefault();const c=e.currentTarget,u=null!==(n=c.tenant.value)&&void 0!==n?n:l.id,d=null!==(i=c.flowID.value)&&void 0!==i?i:null==M?void 0:M.flowID,h=null!==(o=c.eMail.value)&&void 0!==o?o:null==M?void 0:M.eMail,p=null!==(s=c.userName.value)&&void 0!==s?s:null==M?void 0:M.userName,m=null!==(a=c.password.value)&&void 0!==a?a:null==M?void 0:M.password,f=c.newPassword.value;if(!(null==f?void 0:f.length)||!B)return void A(v("login.passwordFormatError"));C(!0);const g={tenant:u,flowID:d,eMail:h,userName:p,password:m,newPassword:f};try{const{user:e,token:n,...i}=await S(g);0!==i.resultCode?(console.error(i),t(Qu).error(v(nO(i.resultCode))),A(i.resultMessage)):e&&n&&(t(Qu).success(v("success")),r(e||g,n))}catch(e){let n=e;console.error("[LOGIN/CHANGE PWD]",n),n.message&&(t(Qu).error(n.message),A(n.message))}finally{C(!1)}},children:[(0,s.jsx)("input",{type:"hidden",name:"tenant",value:null!==(g=M.tenant)&&void 0!==g?g:null==l?void 0:l.id}),(0,s.jsx)("input",{type:"hidden",name:"flowID",value:M.flowID}),(0,s.jsx)("input",{type:"hidden",name:"eMail",value:M.eMail}),(0,s.jsx)("input",{type:"hidden",name:"userName",value:M.userName}),(0,s.jsx)("input",{type:"hidden",name:"password",value:M.password}),(0,s.jsxs)("label",{htmlFor:"#newPassword",children:[v("login.password"),(0,s.jsx)("input",{id:"newPassword",name:"newPassword",type:"password",required:!0,autoComplete:"new-password",placeholder:v("login.password")||"Password",onChange:e=>k(e.target.value),"aria-invalid":!B})]}),!B&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:v("login.passwordFormatError")}),(0,s.jsxs)("label",{htmlFor:"#confirm-password",children:[v("login.confirmPassword"),(0,s.jsx)("input",{id:"confirm-password",name:"confirmPassword",type:"password",required:!0,autoComplete:"new-password",placeholder:v("login.confirmPassword")||"Password",onChange:e=>L(e.target.value),"aria-invalid":!!(null==O?void 0:O.length)&&!!(null==D?void 0:D.length)&&O!==D})]}),!!(null==O?void 0:O.length)&&!!(null==D?void 0:D.length)&&O!==D&&(0,s.jsx)("p",{className:"memori--login-drawer--inline-error",children:v("login.passwordMatchingError")}),(0,s.jsx)("meter",{className:"memori--login-drawer--password-meter",min:0,low:33,high:66,optimum:80,max:100,value:U,id:"password-strength-meter"}),(0,s.jsx)("small",{children:v("login.pwd"+(z?"Strong":B?"Acceptable":"Weak"))}),(0,s.jsx)(Cm,{htmlType:"submit",primary:!0,loading:w,children:v("confirm")})]})]}):T?(0,s.jsx)(pU,{tenant:l,apiClient:u,onLogin:r,goToLogin:()=>I(!1),__TEST__waitingForOtp:p}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("form",{className:"memori--login-drawer--form",onSubmit:e=>{e.preventDefault();const n=e.currentTarget,i=n.userNameOrEmail.value,o=n.password.value,s=rR.test(i),a=s?{tenant:null==l?void 0:l.id,eMail:i,password:o}:{tenant:null==l?void 0:l.id,userName:i,password:o};C(!0),A(null),S(a).then((e=>{var n,a,c,u,d;-14===e.resultCode?R({tenant:l.id,eMail:s?i:void 0,userName:s?void 0:i,password:o,flowID:e.flowID||(null===(n=e.user)||void 0===n?void 0:n.flowID)}):0!==e.resultCode?(console.error(e),t(Qu).error(v(nO(e.resultCode))),A(e.resultMessage)):e.user&&e.token&&((null===(a=e.user)||void 0===a?void 0:a.tnCAndPPAccepted)&&(null===(c=e.user)||void 0===c?void 0:c.birthDate)?r(e.user,e.token):N({token:e.token,birthDate:!(null===(u=e.user)||void 0===u?void 0:u.birthDate),tnCAndPPAccepted:!(null===(d=e.user)||void 0===d?void 0:d.tnCAndPPAccepted)}))})).catch((e=>{console.error("[LOGIN]",e),e.message&&(t(Qu).error(e.message),A(e.message))})).finally((()=>{C(!1)}))},children:[(0,s.jsxs)("label",{htmlFor:"#userNameOrEmail",children:[v("login.userNameOrEmail"),(0,s.jsx)("input",{id:"userNameOrEmail",name:"userNameOrEmail",required:!0,autoComplete:"email",placeholder:"Username/email"})]}),(0,s.jsxs)("label",{htmlFor:"#password",children:["Password",(0,s.jsx)("input",{id:"password",name:"password",type:"password",required:!0,autoComplete:"password",placeholder:"Password"})]}),(0,s.jsx)(Cm,{htmlType:"submit",primary:!0,loading:w,children:v("login.login")}),(null==l?void 0:l.disableRegistration)?l.adminEmail?(0,s.jsxs)("div",{className:"memori--login-drawer--signup",children:[(0,s.jsx)("p",{children:v("login.registrationDisabled")}),(0,s.jsxs)("p",{children:[v("login.contactAdmin"),":"," ",(0,s.jsx)("a",{href:`mailto:${l.adminEmail}`,children:l.adminEmail})]})]}):null:(0,s.jsxs)("p",{className:"memori--login-drawer--signup",children:[v("login.newUserSignUp")," ",(0,s.jsx)(Cm,{outlined:!0,onClick:()=>I(!0),children:v("login.signUp")})]})]}),E&&(0,s.jsx)("p",{role:"alert",className:"memori--login-drawer--error",children:E})]})})};var vU=({Header:e,headerProps:t,Avatar:n,avatarProps:r,Chat:i,chatProps:o,StartPanel:a,startPanelProps:l,integrationStyle:c,integrationBackground:u,ChangeMode:d,changeModeProps:h,sessionId:p,hasUserActivatedSpeak:m,showInstruct:f=!1,loading:g=!1,poweredBy:v})=>(0,s.jsxs)(s.Fragment,{children:[c,u,(0,s.jsxs)(wm,{spinning:g,children:[f&&d&&h&&(0,s.jsx)(d,{...h}),e&&t&&(0,s.jsx)(e,{...t}),(0,s.jsxs)("div",{className:"memori--grid",children:[(0,s.jsxs)("div",{className:"memori--grid-column memori--grid-column-left",children:[n&&r&&(0,s.jsx)(n,{...r}),(0,s.jsx)("div",{id:"extension"})]}),(0,s.jsx)("div",{className:"memori--grid-column memori--grid-column-right",children:p&&m&&i&&o?(0,s.jsx)(i,{...o}):l?(0,s.jsx)(a,{...l}):null}),v]})]})]});var yU=({Header:e,headerProps:t,Avatar:n,avatarProps:r,Chat:i,chatProps:o,StartPanel:a,startPanelProps:l,integrationStyle:c,integrationBackground:u,ChangeMode:d,changeModeProps:h,sessionId:p,hasUserActivatedSpeak:m,showInstruct:f=!1,loading:g=!1,poweredBy:v})=>(0,s.jsxs)(s.Fragment,{children:[c,u,(0,s.jsxs)(wm,{spinning:g,className:"memori-totem-layout",children:[v,f&&d&&h&&(0,s.jsx)(d,{...h}),(0,s.jsx)("div",{className:"memori-totem-layout--header",children:e&&t&&(0,s.jsx)(e,{...t})}),(0,s.jsx)("div",{className:"memori-totem-layout--avatar",children:n&&r&&(0,s.jsx)(n,{...r,isTotem:!0})}),(0,s.jsx)("div",{id:"extension"}),(0,s.jsx)("div",{className:"memori-totem-layout--controls",children:p&&m&&i&&o?(0,s.jsx)(i,{...o}):l?(0,s.jsx)(a,{...l}):null})]})]});var _U=({Header:e,headerProps:t,Chat:n,chatProps:r,StartPanel:i,startPanelProps:o,integrationStyle:a,integrationBackground:l,ChangeMode:c,changeModeProps:u,sessionId:d,hasUserActivatedSpeak:h,showInstruct:p=!1,loading:m=!1,poweredBy:f})=>(0,s.jsxs)(s.Fragment,{children:[a,l,(0,s.jsxs)(wm,{spinning:m,className:"memori-chat-layout",children:[f,p&&c&&u&&(0,s.jsx)(c,{...u}),(0,s.jsx)("div",{className:"memori-chat-layout--header",children:e&&t&&(0,s.jsx)(e,{...t})}),(0,s.jsx)("div",{id:"extension"}),(0,s.jsx)("div",{className:"memori-chat-layout--controls",children:d&&h&&n&&r?(0,s.jsx)(n,{...r}):o?(0,s.jsx)(i,{...o}):null})]})]});c=o("85Hg2"),c=o("85Hg2");var SU=({Header:e,headerProps:t,Avatar:n,avatarProps:r,Chat:i,chatProps:o,StartPanel:a,startPanelProps:l,integrationStyle:u,ChangeMode:d,changeModeProps:h,sessionId:p,hasUserActivatedSpeak:m,showInstruct:f=!1,loading:g=!1,poweredBy:v})=>{var y,_;const{t:S}=xe(),[b,x]=(0,c.useState)(!0),[w,C]=(0,c.useState)(),E=(0,c.useMemo)((()=>null==o?void 0:o.stopAudio),[null==o?void 0:o.stopAudio]),A=e=>{x(e),C(e?void 0:(new Date).toISOString());try{null==E||E()}catch(e){console.log(e)}};return(0,s.jsx)("div",{className:"memori-website_assistant--"+(b?"collapsed":"expanded"),children:b?(0,s.jsx)("div",{className:"memori-website_assistant--trigger",children:(0,s.jsx)(Cm,{className:"memori-website_assistant--trigger-button",ghost:!0,shape:"circle",onClick:()=>A(!1),title:S("expand")||"Expand",children:(0,s.jsx)(ik,{avatar:null==r?void 0:r.memori.avatarURL})})}):(0,s.jsxs)(s.Fragment,{children:[u,(0,s.jsxs)(wm,{spinning:g,className:"memori-website_assistant-layout",children:[v,(0,s.jsx)("div",{className:"memori-website_assistant--close-button-wrapper",children:(0,s.jsx)(Cm,{className:"memori-website_assistant--close-button",primary:!0,shape:"circle",onClick:()=>A(!0),icon:(0,s.jsx)(Em,{}),title:S("close")||"Close"})}),f&&d&&h&&(0,s.jsx)(d,{...h}),(0,s.jsx)("div",{className:"memori-website_assistant-layout--header",children:e&&t&&(0,s.jsx)(e,{...t,showSettings:!1,showReload:!1})}),(0,s.jsx)("div",{className:"memori-website_assistant-layout--avatar",children:n&&r&&(0,c.createElement)(n,{...r,integrationConfig:r.integrationConfig?{...r.integrationConfig,avatarURL:(null===(y=r.integrationConfig)||void 0===y?void 0:y.avatarURL)?`${null===(_=r.integrationConfig)||void 0===_?void 0:_.avatarURL.split("#")[0]}#${w}`:void 0}:{},key:w})}),(0,s.jsx)("div",{id:"extension"}),(0,s.jsx)("div",{className:"memori-website_assistant-layout--controls",children:p&&m&&i&&o?(0,s.jsx)(i,{...o}):l?(0,s.jsx)(a,{...l}):null})]})]})})};const bU=async({operation:e="session_creation",baseUrl:t,userID:n,userName:r,tenant:i})=>{if(!n&&!r)throw new Error("Either userID or userName must be provided");const o=await fetch(`${t}/api/verify-tokens`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({operation:e,userID:n,userName:r,tenant:i})});if(!o.ok)throw new Error("Failed to fetch credits");return o.json()};c=o("85Hg2");var xU=({Header:e,headerProps:t,Chat:n,chatProps:r,startPanelProps:i,sessionId:o,hasUserActivatedSpeak:a})=>{const{t:l}=xe(),[u,d]=(0,c.useState)(!1);(0,c.useEffect)((()=>{const e=document.body;e&&(u?(e.style.width="calc(100% - 350px)",e.style.marginRight="300px",e.style.transition="all 0.5s"):(e.style.width="100%",e.style.marginLeft="0"))}),[u]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("input",{type:"checkbox",id:"memori-sidebar-toggle",className:"memori-sidebar-toggle",checked:u,onChange:()=>{d(!u),(()=>{try{window.speechSynthesis.speak(new SpeechSynthesisUtterance(""))}catch(e){console.error(e)}i&&(null==i?void 0:i.initializeTTS)&&(null==i||i.initializeTTS()),i&&(null==i?void 0:i.onClickStart)&&(null==i||i.onClickStart())})()}}),(0,s.jsxs)("div",{className:"memori-sidebar-container",children:[(0,s.jsx)("label",{htmlFor:"memori-sidebar-toggle",className:"memori-sidebar-toggle-label memori-open-label",children:(0,s.jsx)($N,{className:"memori-icon","aria-label":l("expand")})}),(0,s.jsxs)("aside",{className:"memori-sidebar",children:[(0,s.jsx)("label",{htmlFor:"memori-sidebar-toggle",className:"memori-sidebar-toggle-label memori-close-label",children:(0,s.jsx)("span",{children:(0,s.jsx)(Em,{className:"memori-icon-close","aria-label":l("collapse")})})}),(0,s.jsx)("div",{className:"memori-sidebar-content",children:(0,s.jsx)("div",{className:"memori-hidden-chat-layout--header",children:e&&t&&(0,s.jsx)(e,{position:{latitude:0,longitude:0,placeName:""},...t,className:"memori-hidden-chat-layout-header--layout"})})}),(0,s.jsx)("div",{id:"extension"}),(0,s.jsx)("div",{className:"memori-hidden-chat-layout--controls",children:o&&a&&n&&r?(0,s.jsx)(n,{...r}):(0,s.jsx)("div",{className:"memori-loading",children:(0,s.jsx)(wm,{})})})]})]})]})};c=o("85Hg2");var wU=({Header:e,headerProps:t,Avatar:n,avatarProps:r,Chat:i,chatProps:o,StartPanel:a,startPanelProps:l,integrationStyle:u,integrationBackground:d,ChangeMode:h,changeModeProps:p,sessionId:m,hasUserActivatedSpeak:f,showInstruct:g=!1,loading:v=!1,poweredBy:y})=>((0,c.useEffect)((()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""})),[]),(0,s.jsxs)(s.Fragment,{children:[u,d,(0,s.jsxs)(wm,{className:"memori-spin--zoomed-full-body",spinning:v,children:[g&&h&&p&&(0,s.jsx)(h,{...p}),e&&t&&(0,s.jsx)(e,{...t}),(0,s.jsxs)("div",{className:"memori--grid",children:[(0,s.jsxs)("div",{className:"memori--grid-column memori--grid-column-left",children:[n&&r&&(0,s.jsx)(n,{chatProps:o,isZoomed:!0,...r}),(0,s.jsx)("div",{id:"extension"})]}),(0,s.jsx)("div",{className:"memori--grid-column memori--grid-column--zoomed-full-body memori--grid-column-right",children:m&&f&&i&&o?(0,s.jsx)(i,{...o}):l?(0,s.jsx)(a,{...l}):null}),(0,s.jsx)("div",{className:"memori--powered-by-custom",children:y})]})]})]}));const CU=(e,t=!0,n=!1,r,i=!1,o=!1)=>{const s=new CustomEvent("MemoriTextEntered",{detail:{text:e,waitForPrevious:t,hidden:n,typingText:r,useLoaderTextAsMsg:i,hasBatchQueued:o}});document.dispatchEvent(s);window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&setTimeout((()=>{document.dispatchEvent(new CustomEvent("MemoriEndSpeak"))}),300)};let EU,AU,TU,IU,MU,RU;window.getMemoriState=e=>{var t,n,r,i,o;let s=e?document.querySelector(`.memori-widget[data-memori-integration="${e}"]`)||(null===(n=null===(t=document.querySelector("memori-client"))||void 0===t?void 0:t.shadowRoot)||void 0===n?void 0:n.querySelector(".memori-widget[data-memori-integration]")):document.querySelector(".memori-widget")||(null===(i=null===(r=document.querySelector("memori-client"))||void 0===r?void 0:r.shadowRoot)||void 0===i?void 0:i.querySelector(".memori-widget"));if(!s)return null;let a=null===(o=s.dataset)||void 0===o?void 0:o.memoriEngineState;return a?JSON.parse(a):null},window.typeMessage=CU,window.typeMessageHidden=(e,t=!0,n,r=!1,i=!1)=>CU(e,t,!0,n,r,i),window.typeBatchMessages=e=>{function t(){var e,t,n,r;null===(e=document.querySelector("fieldset#chat-fieldset"))||void 0===e||e.setAttribute("disabled","");const i="opacity: 0.5; touch-action: none; pointer-events: none;";null===(t=document.querySelector("textarea.memori-chat-textarea--input"))||void 0===t||t.setAttribute("style",i),null===(n=document.querySelector("button.memori-chat-inputs--send"))||void 0===n||n.setAttribute("style",i),null===(r=document.querySelector("button.memori-chat-inputs--mic"))||void 0===r||r.setAttribute("style",i)}function n(){var e,t,n,r;null===(e=document.querySelector("fieldset#chat-fieldset"))||void 0===e||e.removeAttribute("disabled"),null===(t=document.querySelector("textarea.memori-chat-textarea--input"))||void 0===t||t.removeAttribute("style"),null===(n=document.querySelector("button.memori-chat-inputs--send"))||void 0===n||n.removeAttribute("style"),null===(r=document.querySelector("button.memori-chat-inputs--mic"))||void 0===r||r.removeAttribute("style")}function r(){var e;return!!(null===(e=document.querySelector("fieldset#chat-fieldset"))||void 0===e?void 0:e.hasAttribute("disabled"))}const i=window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&/iPad|iPhone|iPod/.test(navigator.userAgent),o=function*(){yield*e}();t();const s=()=>{const e=o.next(),a=e.value;if(a){r()||t();let o=a.waitForPrevious;i&&(o=!1),CU(a.message,o,a.hidden,a.typingText,a.useLoaderTextAsMsg,!e.done),i&&setTimeout((()=>{document.dispatchEvent(new CustomEvent("MemoriEndSpeak")),n()}),3e3)}else r()&&n();if(e.done)return document.removeEventListener("MemoriEndSpeak",s),void(r()&&n())};document.addEventListener("MemoriEndSpeak",s),s()};let PU,NU=!1,OU=!1;var kU=({memori:e,memoriConfigs:n,ownerUserID:r,ownerUserName:i,tenantID:o,memoriLang:a,multilingual:l,integration:u,layout:d="DEFAULT",customLayout:h,showInstruct:p=!1,showShare:m,preview:f=!1,embed:g=!1,showCopyButton:v=!0,showTranslationOriginal:y=!1,showInputs:_=!0,showDates:S=!1,showContextPerLine:b=!1,showSettings:x=!0,showTypingText:w=!1,showClear:C=!1,showLogin:E=!1,showOnlyLastMessages:A,height:T="100vh",secret:I,baseUrl:M="https://aisuru.com",apiURL:R="https://backend.memori.ai",engineURL:P="https://engine.memori.ai",initialContextVars:N,initialQuestion:O,ogImage:k,sessionID:D,tenant:L,personification:B,authToken:z,AZURE_COGNITIVE_SERVICES_TTS_KEY:F,enableAudio:U,defaultSpeakerActive:j=!0,disableTextEnteredEvents:G=!1,onStateChange:H,additionalInfo:V,additionalSettings:W,customMediaRenderer:q,userAvatar:J,useMathFormatting:K=!1})=>{var Y,X,Q,Z,ee,te,ne,re,ie,oe,se,ae,le,ce,ue,de,he,pe,me,fe,ge,ve,ye,_e,Se,be;const{t:we,i18n:Ce}=xe(),[Ee,Ae]=(0,c.useState)(!1);(0,c.useEffect)((()=>{Ae(!0)}),[]);const Te=$(R,P),{initSession:Ie,postTextEnteredEvent:Me,postPlaceChangedEvent:Re,postDateChangedEvent:Pe,postTimeoutEvent:Ne,postTagChangedEvent:Oe,getSession:ke,getExpertReferences:De,getSessionChatLogs:Le}=Te,[Be,ze]=(0,c.useState)(!1),[Fe,Ue]=(0,c.useState)(!0),[je,Ge]=(0,c.useState)(null!==(Y=null==V?void 0:V.loginToken)&&void 0!==Y?Y:z),[He,Ve]=(0,c.useState)({avatarURL:"string"==typeof J?J:void 0});(0,c.useEffect)((()=>{je&&!(null==He?void 0:He.userID)&&E&&Te.backend.getCurrentUser(je).then((({user:e,resultCode:t})=>{e&&0===t?(Ve(e),MB("loginToken",je),!dn&&e.birthDate&&(hn(e.birthDate),MB("birthDate",e.birthDate))):RB("loginToken")}))}),[je,null==He?void 0:He.userID]);const[We,qe]=(0,c.useState)(!1),[Je,Ke]=(0,c.useState)(!1),[Ye,Xe]=(0,c.useState)(!1),$e=(null===(Z=null===(Q=null===(X=e.culture)||void 0===X?void 0:X.split("-"))||void 0===Q?void 0:Q[0])||void 0===Z?void 0:Z.toUpperCase())||(null===(re=null===(ne=null===(te=null===(ee=null==n?void 0:n.find((t=>t.memoriConfigID===e.memoriConfigurationID)))||void 0===ee?void 0:ee.culture)||void 0===te?void 0:te.split("-"))||void 0===ne?void 0:ne[0])||void 0===re?void 0:re.toUpperCase()),Qe=(null==u?void 0:u.customData)?JSON.parse(u.customData):null,Ze=void 0!==l?l:!!(null==Qe?void 0:Qe.multilanguage),et=null==Qe?void 0:Qe.forcedTimeout,[tt,nt]=(0,c.useState)(null!==(ae=null!==(se=null!==(oe=null!==(ie=null!=a?a:null==Qe?void 0:Qe.lang)&&void 0!==ie?ie:$e)&&void 0!==oe?oe:null==Qe?void 0:Qe.uiLang)&&void 0!==se?se:Ce.language)&&void 0!==ae?ae:"IT"),rt=void 0!==K?K:!!(null==Qe?void 0:Qe.useMathFormatting);(0,c.useEffect)((()=>{rt&&mR()}),[rt]),(0,c.useEffect)((()=>{Ze&&tt&&iO.includes(tt.toLowerCase())&&Ce.changeLanguage(tt.toLowerCase())}),[tt]);const[it,ot]=(0,c.useState)(!1),[st,at]=(0,c.useState)(!1),[lt,ct]=(0,c.useState)(),ut=d||(null==Qe?void 0:Qe.layout)||"DEFAULT",dt=null!==(le=null!=U?U:null==Qe?void 0:Qe.enableAudio)&&void 0!==le&&le,[ht,pt]=(0,c.useState)(!1),[mt,ft]=(0,c.useState)(!1),[gt,vt]=(0,c.useState)(!1),[yt,_t]=(0,c.useState)(!1),[St,bt]=(0,c.useState)(!1),[xt,wt]=(0,c.useState)(!1),[Ct,Et]=(0,c.useState)(!dt||!j),[At,Tt]=(0,c.useState)(!1),[It,Mt]=(0,c.useState)(2),[Rt,Pt]=(0,c.useState)(!1),[Nt,Ot]=(0,c.useState)("center"),[kt,Dt]=(0,c.useState)(!1),[Lt,Bt]=(0,c.useState)(null),[zt,Ft]=(0,c.useState)(!1),{startProcessing:Ut,setAudioContext:jt,addViseme:Gt,stopProcessing:Ht,resetVisemeQueue:Vt}=Mz();(0,c.useEffect)((()=>{Pt(!!TU),OU=!!TU}),[TU]),(0,c.useEffect)((()=>{let e="bottom",t=IB("microphoneMode","HOLD_TO_TALK");window.innerWidth<=768?(e="bottom",t="HOLD_TO_TALK"):e=window.matchMedia("(orientation: portrait)").matches||window.innerHeight>window.innerWidth?"center":"bottom",Et(IB("muteSpeaker",!dt||!j)),NU=IB("muteSpeaker",!dt||!j),Tt("CONTINUOUS"===t),Mt(IB("continuousSpeechTimeout",2)),Ot(IB("controlsPosition",e)),Bt(IB("avatarType","avatar3d")),Ft(IB("hideEmissions",!1)),(null==V?void 0:V.loginToken)||z||(Ge(IB("loginToken",void 0)),PU=IB("loginToken",void 0),hn(IB("birthDate",void 0)))}),[]);const[Wt,qt]=(0,c.useState)(I),[Jt,Kt]=(0,c.useState)(),[Yt,Xt]=(0,c.useState)(null),[$t,Qt]=(0,c.useState)(),Zt=async(e,t)=>{var n;const r=null!=t?t:fn;if(e&&r){const{currentState:t,...i}=await Re({sessionId:r,placeName:e.placeName,latitude:e.latitude,longitude:e.longitude,uncertaintyKm:null!==(n=e.uncertainty)&&void 0!==n?n:0});t&&0===i.resultCode&&yn((e=>{var n;return{...e,...t,hints:(null===(n=t.hints)||void 0===n?void 0:n.length)?t.hints:null==e?void 0:e.hints}}))}};(0,c.useEffect)((()=>{const e=IB("position",void 0);e&&Qt(e)}),[]);const[en,tn]=(0,c.useState)(""),[nn,rn]=(0,c.useState)(!1),[on,sn]=(0,c.useState)([]),an=e=>{sn((t=>{var n,r;return[...t,{...e,media:null!==(r=null===(n=e.media)||void 0===n?void 0:n.filter((e=>{var t;return!("text/javascript"===e.mimeType&&(null===(t=e.properties)||void 0===t?void 0:t.executable))})))&&void 0!==r?r:[]}]}))},ln=async(n,r,i,o=!0,s,a=!1,l,c=!1,u=!1)=>{var d,h,p,m;const f=i||fn||(null===(d=window.getMemoriState())||void 0===d?void 0:d.sessionID);if(!f||!(null==n?void 0:n.length))return;a||an({text:n,translatedText:s,fromUser:!0,media:null!=r?r:[],initial:fn?!!i&&i!==fn:!!i}),at(!0),ct(l);let g=n,v=!1;try{if(!a&&o&&!Be&&Ze&&tt.toUpperCase()!==$e.toUpperCase()){g=(await vO(n,$e,tt,M)).text}const{currentState:i,...s}=await Me({sessionId:f,text:g});if(0===s.resultCode&&i){const n=c&&l?l:null!==(h=i.emission)&&void 0!==h?h:null==vn?void 0:vn.emission;if("X4"===i.state&&e.giverTag){const{currentState:r,...i}=await Oe(f,e.giverTag);0===i.resultCode?(_n(r),n&&(an({text:n,emitter:r.emitter,media:r.media,fromUser:!1,questionAnswered:g,contextVars:r.contextVars,date:r.currentDate,placeName:r.currentPlaceName,placeLatitude:r.currentLatitude,placeLongitude:r.currentLongitude,placeUncertaintyKm:r.currentUncertaintyKm,tag:r.currentTag,memoryTags:r.memoryTags}),Bn(n))):(console.error(s,i),t(Qu).error(we(nO(i.resultCode))),v=!0)}else if("X2d"===i.state&&e.giverTag){const{currentState:r,...i}=await Me({sessionId:f,text:Math.random().toString().substring(2,8)});if(0===i.resultCode){const{currentState:r,...i}=await Oe(f,e.giverTag);0===i.resultCode?(_n(r),n&&(an({text:n,emitter:r.emitter,media:r.media,fromUser:!1,questionAnswered:g,contextVars:r.contextVars,date:r.currentDate,placeName:r.currentPlaceName,placeLatitude:r.currentLatitude,placeLongitude:r.currentLongitude,placeUncertaintyKm:r.currentUncertaintyKm,tag:r.currentTag,memoryTags:r.memoryTags}),Bn(n))):(console.error(s,i),t(Qu).error(we(nO(i.resultCode))),v=!0)}else console.error(s,i),t(Qu).error(we(nO(i.resultCode))),v=!0}else tt.toLowerCase()!==$e.toLowerCase()&&n&&!Be&&Ze?cn(i,tt,g).then((e=>{let t=e.translatedEmission||e.emission;t&&Bn(t)})):(_n({...i,emission:n}),n&&(an({text:n,emitter:i.emitter,media:i.media,fromUser:!1,questionAnswered:g,generatedByAI:!!i.completion,contextVars:i.contextVars,date:i.currentDate,placeName:i.currentPlaceName,placeLatitude:i.currentLatitude,placeLongitude:i.currentLongitude,placeUncertaintyKm:i.currentUncertaintyKm,tag:i.currentTag,memoryTags:i.memoryTags}),Bn(n)))}else 404===s.resultCode&&(sn((e=>[...e.slice(0,e.length-1)])),bn(!1,Wt||e.secretToken,Jt,Be&&e.giverTag?e.giverTag:void 0,Be&&e.giverPIN?e.giverPIN:void 0,{PATHNAME:window.location.pathname,ROUTE:(null===(m=null===(p=window.location.pathname)||void 0===p?void 0:p.split("/"))||void 0===m?void 0:m.pop())||"",...N||{}},O).then((e=>{console.info("session timeout"),(null==e?void 0:e.sessionID)&&setTimeout((()=>{ln(n,r,null==e?void 0:e.sessionID)}),500)})))}catch(e){console.error(e),v=!0,ct(void 0),at(!1)}u||(ct(void 0),at(!1))},cn=async(e,t,n)=>{var r,i,o;const s=null!==(r=e.emission)&&void 0!==r?r:null==vn?void 0:vn.emission;let a={...e},l=null;if(s&&!Be&&$e.toUpperCase()!==t.toUpperCase()&&Ze)try{const r=await vO(s,t,$e,M);if(e.hints&&e.hints.length>0){const n=await Promise.all((null!==(i=e.hints)&&void 0!==i?i:[]).map((async e=>{var n;const r=await vO(e,t,$e,M);return{text:null!==(n=null==r?void 0:r.text)&&void 0!==n?n:e,originalText:e}})));a={...e,emission:r.text,translatedHints:n}}else a={...e,emission:s,translatedEmission:r.text,hints:null!==(o=e.hints)&&void 0!==o?o:"G1"===e.state?null==vn?void 0:vn.hints:[]};r.text.length>0&&(l={text:s,translatedText:r.text,emitter:e.emitter,media:e.media,fromUser:!1,questionAnswered:n,generatedByAI:!!e.completion,contextVars:e.contextVars,date:e.currentDate,placeName:e.currentPlaceName,placeLatitude:e.currentLatitude,placeLongitude:e.currentLongitude,placeUncertaintyKm:e.currentUncertaintyKm,tag:e.currentTag,memoryTags:e.memoryTags})}catch(t){console.error(t),a={...e,emission:s},l={text:s,emitter:e.emitter,media:e.media,fromUser:!1,questionAnswered:n,contextVars:e.contextVars,date:e.currentDate,placeName:e.currentPlaceName,placeLatitude:e.currentLatitude,placeLongitude:e.currentLongitude,placeUncertaintyKm:e.currentUncertaintyKm,tag:e.currentTag,memoryTags:e.memoryTags}}else a={...e,emission:s},s&&(l={text:s,emitter:e.emitter,media:e.media,fromUser:!1,questionAnswered:n,contextVars:e.contextVars,date:e.currentDate,placeName:e.currentPlaceName,placeLatitude:e.currentLatitude,placeLongitude:e.currentLongitude,placeUncertaintyKm:e.currentUncertaintyKm,tag:e.currentTag,memoryTags:e.memoryTags});return _n(a),l&&an(l),a},un=void 0!==e.ageRestriction?e.ageRestriction:e.nsfw?18:e.enableCompletions?14:0,[dn,hn]=(0,c.useState)(),[pn,mn]=(0,c.useState)(!1),[fn,gn]=(0,c.useState)(D),[vn,yn]=(0,c.useState)(),_n=e=>{var t;yn(e),H&&H(e);const n=new CustomEvent("MemoriNewDialogState",{detail:e});document.dispatchEvent(n);const r=null===(t=null==e?void 0:e.media)||void 0===t?void 0:t.filter((e=>{var t;return"text/javascript"===e.mimeType&&!!(null===(t=e.properties)||void 0===t?void 0:t.executable)}));null==r||r.forEach((e=>{try{setTimeout((()=>{var t;console.log("snippet",e),new Function(null!==(t=e.content)&&void 0!==t?t:"")(),setTimeout((()=>{var e,t,n;null===(e=document.querySelector(".memori-chat--content"))||void 0===e||e.scrollTo(0,null!==(n=null===(t=document.querySelector(".memori-chat--content"))||void 0===t?void 0:t.scrollHeight)&&void 0!==n?n:0)}),400)}),1e3)}catch(e){console.warn(e)}}))},Sn=async n=>{var r,i,o,s,a,l;let c=IB("birthDate",void 0),u=null!==(r=null!=dn?dn:n.birthDate)&&void 0!==r?r:c;if(u||!un)if("PUBLIC"===e.privacyType||e.secretToken||Wt||Jt){ot(!0);try{if(!e.giverTag&&(null===(i=e.receivedInvitations)||void 0===i?void 0:i.length)){let t=e.receivedInvitations.find((e=>"GIVER"===e.type&&"ACCEPTED"===e.state));t&&(e.giverTag=t.tag,e.giverPIN=t.pin)}let r;try{r=window.location.href}catch(e){console.debug(e)}const c=await Ie({...n,birthDate:u,tag:null!==(o=n.tag)&&void 0!==o?o:null==B?void 0:B.tag,pin:null!==(s=n.pin)&&void 0!==s?s:null==B?void 0:B.pin,additionalInfo:{...V||{},loginToken:null!==(l=null!==(a=null!=PU?PU:je)&&void 0!==a?a:null==V?void 0:V.loginToken)&&void 0!==l?l:z,language:Nn(tt),referral:r,timeZoneOffset:(new Date).getTimezoneOffset().toString()}});if((null==c?void 0:c.sessionID)&&(null==c?void 0:c.currentState)&&0===c.resultCode)return gn(c.sessionID),$t&&Zt($t,c.sessionID),ot(!1),{dialogState:c.currentState,sessionID:c.sessionID};(null==c?void 0:c.resultMessage.startsWith("This Memori is aged restricted"))?(console.warn(c),t(Qu).error(we("underageTwinSession",{age:un})),Xe(!0)):403===(null==c?void 0:c.resultCode)?(qt(void 0),Xt("password")):(console.warn(c),t(Qu).error(we(nO(null==c?void 0:c.resultCode))),Xe(!0))}catch(e){console.error(e)}}else Xt("password");else mn(!0)},bn=async(n=!1,r,i,o,s,a,l,c)=>{var u,d,h,p,m;ot(!0);let f=IB("birthDate",void 0),g=null!=c?c:f;try{if(!g&&un)return void mn(!0);if(!("PUBLIC"===e.privacyType||r||e.secretToken||Wt||i||Jt))return void Xt("password");let c;try{c=window.location.href}catch(e){console.debug(e)}const{sessionID:f,currentState:v,...y}=await Ie({memoriID:null!==(u=e.engineMemoriID)&&void 0!==u?u:"",password:r||Wt||e.secretToken,recoveryTokens:i||Jt,tag:o,pin:s,initialContextVars:{PATHNAME:window.location.pathname,ROUTE:(null===(h=null===(d=window.location.pathname)||void 0===d?void 0:d.split("/"))||void 0===h?void 0:h.pop())||"",...a||{}},initialQuestion:l,birthDate:g,additionalInfo:{...V||{},loginToken:null!==(m=null!==(p=null!=PU?PU:je)&&void 0!==p?p:null==V?void 0:V.loginToken)&&void 0!==m?m:z,language:Nn(tt),referral:c,timeZoneOffset:(new Date).getTimezoneOffset().toString()}});if(f&&v&&0===y.resultCode)return gn(f),n&&(_n(v),v.emission&&(on.length<=1?sn([{text:v.emission,emitter:v.emitter,media:v.media,fromUser:!1,initial:!0,contextVars:v.contextVars,date:v.currentDate,placeName:v.currentPlaceName,placeLatitude:v.currentLatitude,placeLongitude:v.currentLongitude,placeUncertaintyKm:v.currentUncertaintyKm,tag:v.currentTag,memoryTags:v.memoryTags}]):an({text:v.emission,emitter:v.emitter,media:v.media,fromUser:!1,initial:!0,contextVars:v.contextVars,date:v.currentDate,placeName:v.currentPlaceName,placeLatitude:v.currentLatitude,placeLongitude:v.currentLongitude,placeUncertaintyKm:v.currentUncertaintyKm,tag:v.currentTag,memoryTags:v.memoryTags}))),$t&&Zt($t,f),e.needsDateTime&&wn({sessionID:f,state:v}),ot(!1),{dialogState:v,sessionID:f};(null==y?void 0:y.resultMessage.startsWith("This Memori is aged restricted"))?(console.error(y),t(Qu).error(we("underageTwinSession",{age:un})),Xe(!0)):403===(null==y?void 0:y.resultCode)?(qt(void 0),Xt("password")):(console.error(y),t(Qu).error(we(nO(y.resultCode))),Xe(!0))}catch(e){console.error(e)}return ot(!1),null},xn=async(t,n,r,i)=>{var o,s,a,l,c;if(!t||!n)return console.error("CHANGETAG/Session not found"),Promise.reject("Session not found");try{const{currentState:t,resultCode:u}=await Oe(n,null!=r?r:sO);if(0===u){let d=0;if(r!==sO&&i&&("X1a"===t.state||"X1b"===t.state)){const{resultCode:e}=await Me({sessionId:n,text:null!=i?i:""});d=e}if(0===d){const{currentState:e,...t}=await ke(n);if(0===t.resultCode&&e)return{currentState:e,sessionId:n,...t}}else if([400,401,403,404,500].includes(u)){console.warn("[APPCONTEXT/CHANGETAG]",u);let t,n=IB("birthDate",void 0);try{t=window.location.href}catch(e){console.debug(e)}Sn({memoriID:null!==(o=e.engineMemoriID)&&void 0!==o?o:"",password:I||Wt||e.secretToken,tag:e.giverTag,pin:e.giverPIN,initialContextVars:{PATHNAME:window.location.pathname,ROUTE:(null===(a=null===(s=window.location.pathname)||void 0===s?void 0:s.split("/"))||void 0===a?void 0:a.pop())||"",...N||{}},initialQuestion:O,birthDate:dn||n||void 0,additionalInfo:{...V||{},loginToken:null!==(c=null!==(l=null!=PU?PU:je)&&void 0!==l?l:null==V?void 0:V.loginToken)&&void 0!==c?c:z,language:Nn(tt),referral:t,timeZoneOffset:(new Date).getTimezoneOffset().toString()}})}else if(t)return{currentState:t,sessionId:n,resultCode:u}}}catch(e){let t=e;return console.warn("[APPCONTEXT/CHANGETAG]",t),Promise.reject(t)}return null};(0,c.useEffect)((()=>()=>{vn&&(null==vn?void 0:vn.currentTag)===e.giverTag||(async()=>{fn&&e.giverTag&&e.giverPIN&&(sn([]),await xn(e.engineMemoriID,fn,e.giverTag,e.giverPIN))})()}),[]);const wn=(0,c.useCallback)((async({sessionID:t,date:n,state:r})=>{var i;const o=null!=t?t:fn,s=null!=r?r:vn;if(!o||!e.needsDateTime||(null===(i=null==s?void 0:s.hints)||void 0===i?void 0:i.length))return;const a=(n?ws.DateTime.fromISO(n):ws.DateTime.now()).toUTC().toFormat("yyyy/MM/dd HH:mm:ss ZZ").split(":").slice(0,-1).join(":"),{currentState:l,...c}=await Pe(o,a);0===c.resultCode&&l&&yn((e=>{var t;return{...e,...l,hints:(null===(t=l.hints)||void 0===t?void 0:t.length)?l.hints:null==e?void 0:e.hints}}))}),[vn,e.needsDateTime,fn]);(0,c.useEffect)((()=>{if(fn&&e.needsDateTime){wn({sessionID:fn,state:vn});let e=setInterval((()=>{wn({sessionID:fn})}),6e4);return()=>{clearInterval(e)}}}),[e.needsDateTime,fn]);const[Cn,En]=(0,c.useState)(),An=(0,c.useRef)(),Tn=()=>{Cn&&(clearTimeout(Cn),En(void 0)),(null==An?void 0:An.current)&&(clearTimeout(An.current),An.current=void 0)},In=()=>{Tn(),Rt||en.length||st||nn||Rn()},Mn=async()=>{var e;if(!ht||Rt||en.length||st||nn)In();else if(fn&&ht&&(null==vn?void 0:vn.acceptsTimeout)){const{currentState:t,...n}=await Ne(fn);if(0===n.resultCode&&t){const n=t.emission;if(!Be&&Ze&&tt!==(null==Ce?void 0:Ce.language)&&n&&n.length>0)cn({...t,emission:n},tt).then((e=>{let t=e.translatedEmission||e.emission;t&&Bn(t)}));else{if(!(n&&n.length>0))return void In();an({text:n,emitter:t.emitter,media:t.media,fromUser:!1,generatedByAI:!!t.completion,contextVars:t.contextVars,date:t.currentDate,placeName:t.currentPlaceName,placeLatitude:t.currentLatitude,placeLongitude:t.currentLongitude,placeUncertaintyKm:t.currentUncertaintyKm,tag:t.currentTag,memoryTags:t.memoryTags}),Bn(n),_n({...t,hints:null!==(e=t.hints)&&void 0!==e?e:"G1"===t.state?null==vn?void 0:vn.hints:[]})}}}},Rn=()=>{let e=null==vn?void 0:vn.timeout;if(!e){let t=40,n=25;if(e=Math.floor(Math.random()*(t-n))+n,null==vn?void 0:vn.emission){e+=vn.emission.length/26.5}}if(et&&(e=et,null==vn?void 0:vn.emission)){e+=vn.emission.length/26.5}let t=setTimeout(Mn,1e3*e);En(t),An.current=t};(0,c.useEffect)((()=>{(en.length||Rt||st)&&Tn(),fn&&!en.length&&In()}),[null==vn?void 0:vn.acceptsTimeout,null==vn?void 0:vn.timeout,null==vn?void 0:vn.state,Rt,fn,on,en,st,ht]),(0,c.useEffect)((()=>()=>{pt(!1),Ke(!1),Tn(),An.current=void 0}),[]);const Pn=(0,c.useCallback)((t=>{var n,r,i,o;let s="",a=(null!==(o=null!==(i=null!=t?t:null===(r=null===(n=e.culture)||void 0===n?void 0:n.split("-"))||void 0===r?void 0:r[0])&&void 0!==i?i:Ce.language)&&void 0!==o?o:"IT").toUpperCase(),l=e.voiceType;if(e.enableBoardOfExperts&&(null==vn?void 0:vn.emitter)){null==fr||fr.find((e=>e.name===(null==vn?void 0:vn.emitter)))}switch(a){case"IT":s=""+("MALE"===l?"it-IT-DiegoNeural":"it-IT-ElsaNeural");break;case"DE":s=""+("MALE"===l?"de-DE-ConradNeural":"de-DE-KatjaNeural");break;case"EN":s=""+("MALE"===l?"en-GB-RyanNeural":"en-GB-SoniaNeural");break;case"ES":s=""+("MALE"===l?"es-ES-AlvaroNeural":"es-ES-ElviraNeural");break;case"FR":s=""+("MALE"===l?"fr-FR-HenriNeural":"fr-FR-DeniseNeural");break;case"PT":s=""+("MALE"===l?"pt-PT-DuarteNeural":"pt-PT-RaquelNeural");break;case"UK":s=""+("MALE"===l?"uk-UA-OstapNeural":"uk-UA-PolinaNeural");break;case"RU":s=""+("MALE"===l?"ru-RU-DmitryNeural":"ru-RU-SvetlanaNeural");break;case"PL":s=""+("MALE"===l?"pl-PL-MarekNeural":"pl-PL-AgnieszkaNeural");break;case"FI":s=""+("MALE"===l?"fi-FI-HarriNeural":"fi-FI-SelmaNeural");break;case"EL":s=""+("MALE"===l?"el-GR-NestorasNeural":"el-GR-AthinaNeural");break;case"AR":s=""+("MALE"===l?"ar-SA-HamedNeural":"ar-SA-ZariyahNeural");break;case"ZH":s=""+("MALE"===l?"zh-CN-YunxiNeural":"zh-CN-XiaoxiaoNeural");break;case"JA":s=""+("MALE"===l?"ja-JP-KeitaNeural":"ja-JP-NanamiNeural");break;default:s=""+("MALE"===l?"it-IT-DiegoNeural":"it-IT-IsabellaNeural")}return s}),[e.voiceType,e.enableBoardOfExperts,null==vn?void 0:vn.emitter,Ce.language,e.culture]),Nn=t=>{var n,r;let i="";switch((t||(null===(r=null===(n=e.culture)||void 0===n?void 0:n.split("-"))||void 0===r?void 0:r[0])||Ce.language||"IT").toUpperCase()){case"IT":default:i="it-IT";break;case"DE":i="de-DE";break;case"EN":i="en-GB";break;case"ES":i="es-ES";break;case"FR":i="fr-FR";break;case"PT":i="pt-PT";break;case"UK":i="uk-UK";break;case"RU":i="ru-RU";break;case"PL":i="pl-PL";break;case"FI":i="fi-FI";break;case"EL":i="el-GR";break;case"AR":i="ar-SA";break;case"ZH":i="zh-CN";break;case"JA":i="ja-JP"}return i},[On,kn]=(0,c.useState)();(0,c.useEffect)((()=>{(async()=>{try{const e=await fetch(`${M||"https://aisuru.com"}/api/lexiconmap`);return await e.json()}catch(e){console.error(e)}})().then((e=>{kn(e)}))}),[]);const Dn=(e,t)=>{var n;if(!On)return e;const r={...null!==(n=On.common)&&void 0!==n?n:{},...(null==L?void 0:L.id)&&On[L.id]?On[L.id]:{}},i=Object.keys(r).map((e=>{var n;return{word:e,phoneme:null!==(n=r[e][t.toLowerCase()])&&void 0!==n?n:r[e].default,caseSensitive:r[e].caseSensitive}}));return i.reduce(((e,{word:t,phoneme:n,caseSensitive:r})=>e.replace(new RegExp(`\\b${t}\\b`,r?"g":"gi"),`<phoneme alphabet="ipa" ph="${n}">${t}</phoneme>`)),e)},Ln=()=>{const e=new CustomEvent("MemoriEndSpeak");document.dispatchEvent(e)},Bn=e=>{if(!F||f)return void Ln();if(Yn(),f)return;if(Ct||NU)return OU=!1,at(!1),Ln(),void(At&&qn());IU&&IU.pause();let t=window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome"),n=/iPad|iPhone|iPod/.test(navigator.userAgent);if("interrupted"===MU.state)return void MU.resume().then((()=>Bn(e)));if("closed"===MU.state){MU=new Yo;let e=MU.createBuffer(1,1e4,22050),t=MU.createBufferSource();t.buffer=e,t.connect(MU.destination)}else if("suspended"===MU.state){Un(),MU=new Yo;let e=MU.createBuffer(1,1e4,22050),t=MU.createBufferSource();t.buffer=e,t.connect(MU.destination)}if(!TU){n||(IU=new _s.SpeakerAudioDestination);let e=_s.AudioConfig.fromSpeakerOutput(IU);TU=new _s.SpeechSynthesizer(AU,e)}const r=MU.createBufferSource();r.addEventListener("ended",(()=>{Pt(!1),OU=!1})),IU.onAudioEnd=()=>{Pt(!1),OU=!1,r.disconnect(),Ln(),er()},Vt(),TU.visemeReceived=function(e,t){Gt(t.visemeId,t.audioOffset)};const i=dR(lR(aR(uR(cR(e)))));TU.speakSsmlAsync(`<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xmlns:mstts="https://www.w3.org/2001/mstts" xmlns:emo="http://www.w3.org/2009/10/emotionml" xml:lang="${Nn(tt)}"><voice name="${Pn(tt)}"><s>${Dn(i,tt.toLowerCase())}</s></voice></speak>`,(i=>{if(i){Pt(!0),OU=!0,Ut(MU);try{MU.decodeAudioData(i.audioData,(function(e){r.buffer=e,r.connect(MU.destination),(on.length<1||t&&n)&&r.start(0)})),MU.onstatechange=()=>{"suspended"===MU.state||"closed"===MU.state?(r.disconnect(),Pt(!1),Ht(),Vt(),OU=!1):"interrupted"===MU.state&&MU.resume()},MU.resume(),TU&&(TU.close(),TU=null)}catch(t){console.error("Error processing audio data:",t),zn(e)}}else zn(e)}),(t=>{console.error("Speak error:",t),zn(e)})),at(!1)},zn=e=>{console.log("Falling back to browser speech synthesis"),window.speechSynthesis.speak(new SpeechSynthesisUtterance(e)),Fn()},Fn=()=>{Pt(!1),Ht(),Vt(),OU=!1,TU&&(console.log("Closing speech synthesizer"),TU.close(),TU=null),Ln()},Un=()=>{Pt(!1),OU=!1;try{TU&&(TU.close(),TU=null),"closed"!==MU.state&&MU.close(),IU&&(IU.pause(),IU.close())}catch(e){console.debug("stopAudio error: ",e)}};(0,c.useEffect)((()=>{"TOTEM"!==ut&&(()=>{let e=document.querySelector("#chat-fieldset textarea");e&&Fe?e.focus():null==e||e.blur()})()}),[null==vn?void 0:vn.emission]);const[jn,Gn]=(0,c.useState)(""),Hn=()=>Gn(""),[Vn,Wn]=(0,c.useState)(null),qn=()=>{let e=setTimeout((async()=>{Xn();const e=sR(jn);e.length>0&&nn?(ln(e),Hn(),tn("")):nn&&In()}),1e3*It);Wn(e)},Jn=()=>{Vn&&(clearTimeout(Vn),Wn(null))};(0,c.useEffect)((()=>{Jn(),At&&qn(),In()}),[jn]);const Kn=async()=>{if(F){Xn(),Gn(""),Hn(),eR()&&Ue(!1);try{navigator.mediaDevices.getUserMedia({audio:!0}).then((function(e){ft(!0),AU||(AU=_s.SpeechConfig.fromSubscription(F,"westeurope"),AU.speechRecognitionLanguage=Nn(tt),AU.speechSynthesisLanguage=Nn(tt),AU.speechSynthesisVoiceName=Pn(tt));const t=_s.AudioConfig.fromDefaultMicrophoneInput();EU=new _s.SpeechRecognizer(AU,t),rn(!0),EU.recognized=(e,t)=>{if(t.result.text)if(t.result.reason===_s.ResultReason.RecognizedSpeech){let e=t.result.text;if(Gn(e||""),(null==e?void 0:e.length)>0){const t=sR(e);t.length>0&&tn((e=>`${e} ${t}`))}}else t.result.reason===_s.ResultReason.NoMatch&&console.debug("NOMATCH: Speech could not be recognized.")},EU.canceled=(e,t)=>{t.reason===_s.CancellationReason.Error&&(console.debug(`"CANCELED: ErrorCode=${t.errorCode}`),console.debug(`"CANCELED: ErrorDetails=${t.errorDetails}`),console.debug("CANCELED: Did you set the speech resource key and region values?")),Yn()},EU.sessionStopped=(e,t)=>{Yn()},Hn(),EU.startContinuousRecognitionAsync()})).catch(console.debug)}catch(e){console.debug(e)}}},Yn=()=>{EU&&(EU.stopContinuousRecognitionAsync(),EU.close(),EU=null),rn(!1)},Xn=()=>{ft(!1),Yn(),Jn()},$n=()=>{try{Xn(),Tn(),Ke(!1),An.current=void 0,Un()}catch(e){console.log("Error: resetUIEffects",e)}};(0,c.useEffect)((()=>()=>{$n()}),[]),(0,c.useEffect)((()=>(document.addEventListener("MemoriResetUIEffects",$n),()=>{document.removeEventListener("MemoriResetUIEffects",$n)})),[]),(0,c.useEffect)((()=>{"Z0"===(null==vn?void 0:vn.state)&&Xn()}),[null==vn?void 0:vn.state]);const[Qn,Zn]=(0,c.useState)(!1),er=(0,c.useCallback)((e=>{Rt&&TU&&(TU.close(),TU=null),!At||!mt&&Qn||(Zn(!0),Kn())}),[At,mt]);(0,c.useEffect)((()=>{on.length>1&&!Rt&&At&&(mt||!Qn)?Kn():Rt&&nn&&Yn()}),[Rt]),(0,c.useEffect)((()=>{nn&&(Xn(),Hn(),tn(""),Kn())}),[$e]);const[tr,nr]=(0,c.useState)("keypress");(0,c.useEffect)((()=>{window.innerWidth<=768&&eR()?nr("click"):nr("keypress")}),[]);const[rr,ir]=(0,c.useState)(),or=null==Qe?void 0:Qe.globalBackground,sr=or?`url(${or})`:null,ar=u?{"--memori-chat-bubble-bg":"#fff",...Qe&&!p?{"--memori-text-color":null!==(ce=Qe.textColor)&&void 0!==ce?ce:"#000"}:{},...(null==Qe?void 0:Qe.buttonBgColor)?{"--memori-button-bg":Qe.buttonBgColor,"--memori-primary":Qe.buttonBgColor}:{},...(null==Qe?void 0:Qe.buttonTextColor)?{"--memori-button-text":Qe.buttonTextColor}:{},...(null==Qe?void 0:Qe.blurBackground)?{"--memori-blur-background":"5px"}:{"--memori-blur-background":"0px"},...(null==Qe?void 0:Qe.innerBgColor)?{"--memori-inner-bg":`rgba(${"dark"===Qe.innerBgColor?"0, 0, 0":"255, 255, 255"}, ${null!==(ue=Qe.innerBgAlpha)&&void 0!==ue?ue:.4})`,"--memori-inner-content-pad":"1.5rem","--memori-nav-bg-image":"none","--memori-nav-bg":`rgba(${"dark"===Qe.innerBgColor?"0, 0, 0":"255, 255, 255"}, ${null!==(de=null==Qe?void 0:Qe.innerBgAlpha)&&void 0!==de?de:.4})`}:{"--memori-inner-content-pad":"0px"}}:{},lr=`\n ${f?"#preview,":"WEBSITE_ASSISTANT"===ut?"":":root,"} .memori-widget, .memori-drawer, .memori-modal {\n ${Object.entries(ar).map((([e,t])=>`${e}: ${t};`)).join("\n")}\n }\n `,cr=void 0===(null==Qe?void 0:Qe.showAIicon)||(null==Qe?void 0:Qe.showAIicon),ur=void 0===(null==Qe?void 0:Qe.showWhyThisAnswer)||(null==Qe?void 0:Qe.showWhyThisAnswer),[dr,hr]=(0,c.useState)(!1);(0,c.useEffect)((()=>{(window.innerWidth>=768&&"FULLPAGE"===ut||"FULLPAGE"!==ut)&&hr(!0)}),[]),(0,c.useEffect)((()=>{if(null==Qe?void 0:Qe.seoTitle){let e=document.createElement("meta");e.setAttribute("property","og:title"),e.setAttribute("content",Qe.seoTitle),document.head.append(e)}if(null==Qe?void 0:Qe.seoDescription){let e=document.createElement("meta");e.setAttribute("property","og:description"),e.setAttribute("content",Qe.seoDescription),document.head.append(e)}if(null==Qe?void 0:Qe.seoUrl){let e=document.createElement("meta");e.setAttribute("property","og:url"),e.setAttribute("content",Qe.seoUrl),document.head.append(e)}let t=k||e.avatarURL;if((null==Qe?void 0:Qe.seoImageShowAvatar)&&t){let e=document.createElement("meta");e.setAttribute("property","og:image"),e.setAttribute("content",t),document.head.append(e)}}),[Qe,e.avatarURL,k]);const pr=(0,c.useCallback)((e=>{if(G)return;const{text:t,waitForPrevious:n,hidden:r,typingText:i,useLoaderTextAsMsg:o,hasBatchQueued:s}=e.detail;t&&(n&&!NU&&(OU||st)?setTimeout((()=>{pr(e)}),1e3):(Yn(),Un(),ln(t,void 0,void 0,void 0,void 0,r,i,o,s)))}),[fn,Rt,st,tt,G]);(0,c.useEffect)((()=>(G?document.removeEventListener("MemoriTextEntered",pr):document.addEventListener("MemoriTextEntered",pr),()=>{document.removeEventListener("MemoriTextEntered",pr)})),[fn,tt,G]);const mr=(0,c.useCallback)((async(t,n=!1)=>{var r,i,o,s,a,l,c,u,d,h,p,m,f,g,v,y,_,S,b;const x=(null==t?void 0:t.sessionID)||fn,w=(null==t?void 0:t.dialogState)||vn;Ke(!0);let C=document.getElementById("memori-audio"),E=window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome");C&&E&&(C.muted=!1,C.play().catch((e=>{console.warn("error playing intro audio",e)})));let A=IB("birthDate",void 0),T=dn||A||void 0;if(x||!un||T){if(!x&&"PUBLIC"!==e.privacyType&&!e.secretToken&&!Wt&&!Jt||!x&&Ye)return Xt("password"),void Ke(!1);if(!x||n){Ke(!1),Xe(!1);const t=await Sn({memoriID:e.engineMemoriID,password:I||Wt||e.secretToken,tag:null==B?void 0:B.tag,pin:null==B?void 0:B.pin,initialContextVars:{PATHNAME:null===(r=window.location.pathname)||void 0===r?void 0:r.toUpperCase(),ROUTE:(null===(s=null===(o=null===(i=window.location.pathname)||void 0===i?void 0:i.split("/"))||void 0===o?void 0:o.pop())||void 0===s?void 0:s.toUpperCase())||"",...N||{}},initialQuestion:O,birthDate:T,additionalInfo:{...V||{},loginToken:null!==(l=null!==(a=null!=PU?PU:je)&&void 0!==a?a:null==V?void 0:V.loginToken)&&void 0!==l?l:z,language:Nn(tt),timeZoneOffset:(new Date).getTimezoneOffset().toString()}});return void((null==t?void 0:t.dialogState)?(sn([]),cn(t.dialogState,tt).then((e=>{let t=e.translatedEmission||e.emission;t&&Bn(t)})).finally((()=>{pt(!0)}))):await mr(t||void 0))}if(D){const{currentState:t,...n}=await ke(x);if(0!==n.resultCode||!t)return console.debug("session expired, opening new session"),Xe(!0),gn(void 0),Ke(!1),void await mr(void 0,!0);if(sn([]),$t&&Zt($t,x),e.needsDateTime&&wn({sessionID:x,state:t}),Be&&e.giverTag&&(null==vn?void 0:vn.currentTag)!==e.giverTag)try{console.debug("change tag #0"),await xn(e.engineMemoriID,x,"-");const t=await xn(e.engineMemoriID,x,e.giverTag,e.giverPIN);if(!t||0!==t.resultCode)throw console.error("session #1",t),new Error("No session");cn(t.currentState,tt).then((e=>{let t=e.translatedEmission||e.emission;t&&Bn(t)})).finally((()=>{pt(!0)}))}catch(t){console.error("session #2",t),bn(!0,null==e?void 0:e.secretToken,void 0,null==e?void 0:e.giverTag,null==e?void 0:e.giverPIN,{PATHNAME:null===(c=window.location.pathname)||void 0===c?void 0:c.toUpperCase(),ROUTE:(null===(h=null===(d=null===(u=window.location.pathname)||void 0===u?void 0:u.split("/"))||void 0===d?void 0:d.pop())||void 0===h?void 0:h.toUpperCase())||"",...N||{}},O,T).then((()=>{pt(!0)}))}else if(!Be&&B&&(null==vn?void 0:vn.currentTag)!==B.tag)try{console.debug("change tag #3"),await xn(e.engineMemoriID,x,"-");const t=await xn(e.engineMemoriID,x,B.tag,B.pin);if(!t||0!==t.resultCode)throw console.error("session #4",t),new Error("No session");cn(t.currentState,tt).then((e=>{let t=e.translatedEmission||e.emission;t&&Bn(t)})).finally((()=>{pt(!0)}))}catch(t){console.error("session #5",t),bn(!0,null==e?void 0:e.secretToken,void 0,B.tag,B.pin,{PATHNAME:null===(p=window.location.pathname)||void 0===p?void 0:p.toUpperCase(),ROUTE:(null===(g=null===(f=null===(m=window.location.pathname)||void 0===m?void 0:m.split("/"))||void 0===f?void 0:f.pop())||void 0===g?void 0:g.toUpperCase())||"",...N||{}},O,T).then((()=>{pt(!0)}))}else if(Be||B||!(null==vn?void 0:vn.currentTag)||(null==vn?void 0:vn.currentTag)===sO||"-"===(null==vn?void 0:vn.currentTag)){try{const{chatLogs:e,...t}=await Le(x,x),n=null===(b=null==e?void 0:e[0])||void 0===b?void 0:b.lines.map(((e,t)=>{var n,r;return{text:e.text,media:null===(r=null===(n=e.media)||void 0===n?void 0:n.filter((e=>oO.includes(e.mimeType))))||void 0===r?void 0:r.map((e=>({mediumID:`${t}-${e.mimeType}`,...e}))),fromUser:e.inbound,timestamp:e.timestamp,emitter:e.emitter,initial:0===t}}));let r=n.slice(0,-1);if($e.toUpperCase()!==tt.toUpperCase()&&Ze)try{r=await Promise.all(n.map((async e=>({...e,originalText:e.text,text:(await vO(e.text,tt,$e,M)).text}))))}catch(e){console.log("Error translating messages",e)}sn(r)}catch(e){console.log("Error retrieving chat logs",e)}cn(t,tt).then((e=>{let t=e.translatedEmission||e.emission;t&&Bn(t)})).finally((()=>{pt(!0)}))}else try{console.debug("change tag #6"),await xn(e.engineMemoriID,x,"-");const t=await xn(e.engineMemoriID,x,sO);if(!t||0!==t.resultCode)throw console.error("session #7",t),new Error("No session");cn(t.currentState,tt).then((e=>{let t=e.translatedEmission||e.emission;t&&Bn(t)})).finally((()=>{pt(!0)}))}catch(t){console.error("session #8",t),bn(!0,null==e?void 0:e.secretToken,void 0,void 0,void 0,{PATHNAME:null===(v=window.location.pathname)||void 0===v?void 0:v.toUpperCase(),ROUTE:(null===(S=null===(_=null===(y=window.location.pathname)||void 0===y?void 0:y.split("/"))||void 0===_?void 0:_.pop())||void 0===S?void 0:S.toUpperCase())||"",...N||{}},O,T).then((()=>{pt(!0)}))}$t&&Zt($t,x),e.needsDateTime&&wn({sessionID:x,state:t})}else sn([]),cn(w,tt).then((e=>{let t=e.translatedEmission||e.emission;t&&Bn(t)})).finally((()=>{pt(!0)}))}else mn(!0),Ke(!1)}),[Wt,e,Jt,dn,fn,tt,$t]);(0,c.useEffect)((()=>{const t=document.querySelector(`memori-client[memoriname="${e.name}"]`)||document.querySelector(`memori-client[memoriid="${e.memoriID}"]`)||document.querySelector("memori-client");if(!t)return;const n=new MutationObserver(((e,t)=>{var n,r,i;for(const t of e)"attributes"===t.type&&"authtoken"===(null===(n=t.attributeName)||void 0===n?void 0:n.toLowerCase())&&("MEMORI-CLIENT"===t.target.nodeName?(Ge(t.target.getAttribute("authtoken")||void 0),PU=t.target.getAttribute("authtoken")||void 0):(Ge((null===(i=null===(r=t.target)||void 0===r?void 0:r.parentElement)||void 0===i?void 0:i.getAttribute("authtoken"))||void 0),PU=t.target.getAttribute("authtoken")||void 0))}));return n.observe(t,{attributes:!0,childList:!1,subtree:!1}),()=>{n.disconnect()}}),[]);const[fr,gr]=(0,c.useState)(),vr=(0,c.useCallback)((async()=>{if(fn&&(null==e?void 0:e.enableBoardOfExperts))try{const{experts:e,count:t,...n}=await De(fn);0===n.resultCode?gr(e):console.warn("Error fetching experts",n)}catch(e){console.warn(e)}}),[fn,null==e?void 0:e.enableBoardOfExperts]);(0,c.useEffect)((()=>{vr()}),[fn,vr]);const yr=e.enableDeepThought&&!!je&&!!(null==He?void 0:He.userID)&&(null==He?void 0:He.pAndCUAccepted),_r=null==L?void 0:L.billingDelegation,[Sr,br]=(0,c.useState)(!0),xr=(0,c.useCallback)((async()=>{if(null==L?void 0:L.billingDelegation)try{const e=await bU({operation:yr?"dt_session_creation":"session_creation",baseUrl:M,userID:r,userName:i,tenant:o});e.enough?br(!0):(br(!1),console.warn("Not enough credits. Required:",e.required))}catch(e){let t=e;console.debug(t)}}),[null==L?void 0:L.billingDelegation,yr]);(0,c.useEffect)((()=>{(null==L?void 0:L.billingDelegation)&&xr()}),[null==L?void 0:L.billingDelegation,yr]);const wr=void 0===A?"TOTEM"!==d&&"WEBSITE_ASSISTANT"!==d&&"HIDDEN_CHAT"!==d:!A,Cr={memori:e,tenant:L,history:on,showShare:null===(he=null!=m?m:null==Qe?void 0:Qe.showShare)||void 0===he||he,position:$t,setShowPositionDrawer:vt,setShowSettingsDrawer:_t,setShowKnownFactsDrawer:bt,setShowExpertsDrawer:wt,enableAudio:null===(pe=null!=U?U:null==Qe?void 0:Qe.enableAudio)||void 0===pe||pe,showSpeaker:!!F,speakerMuted:Ct||NU,setSpeakerMuted:e=>{if(NU=!!e,Et(e),MB("muteSpeaker",!!e),e)Un();else{MU=new Yo;let e=MU.createBuffer(1,1e4,22050),t=MU.createBufferSource();t.buffer=e,t.connect(MU.destination)}},showSettings:x,hasUserActivatedSpeak:ht,showReload:"TOTEM"===ut,showClear:C,clearHistory:()=>sn((e=>e.slice(-1))),showLogin:E,setShowLoginDrawer:qe,loginToken:je,user:He,sessionID:fn},Er={memori:e,integration:u,integrationConfig:Qe,tenant:L,instruct:Be,avatar3dVisible:dr,setAvatar3dVisible:hr,hasUserActivatedSpeak:ht,isPlayingAudio:Rt&&!Ct,loading:!!st,baseUrl:M,apiUrl:Te.constants.BACKEND_URL,enablePositionControls:kt,setEnablePositionControls:Dt,avatarType:Lt},Ar={memori:e,tenant:L,language:$e,userLang:tt,setUserLang:nt,baseUrl:M,apiUrl:Te.constants.BACKEND_URL,position:$t,openPositionDrawer:()=>vt(!0),integrationConfig:Qe,instruct:Be,sessionId:fn,clickedStart:Je,isMultilanguageEnabled:Ze,onClickStart:mr,initializeTTS:()=>{if(!F)return;AU=_s.SpeechConfig.fromSubscription(F,"westeurope"),AU.speechSynthesisLanguage=Nn(tt),AU.speechSynthesisVoiceName=Pn(tt),AU.speechRecognitionLanguage=Nn(tt),AU.setProperty("speechSynthesis.outputFormat","viseme"),eR()&&(AU.speechSynthesisOutputFormat=_s.SpeechSynthesisOutputFormat.Audio16Khz32KBitRateMonoMp3),MU=new Yo;let e=MU.createBuffer(1,1e4,22050),t=MU.createBufferSource();t.buffer=e,t.connect(MU.destination),IU=new _s.SpeakerAudioDestination;let n=_s.AudioConfig.fromSpeakerOutput(IU);TU=new _s.SpeechSynthesizer(AU,n)},isUserLoggedIn:!!je&&!!(null==He?void 0:He.userID),hasInitialSession:!!D,notEnoughCredits:_r&&!Sr,showLogin:E,setShowLoginDrawer:qe,user:He},Tr={memori:e,sessionID:fn||"",tenant:L,translateTo:Ze&&tt.toUpperCase()!==(null===(ye=null!==(ve=null!==(ge=null===(fe=null===(me=e.culture)||void 0===me?void 0:me.split("-"))||void 0===fe?void 0:fe[0])&&void 0!==ge?ge:Ce.language)&&void 0!==ve?ve:"IT")||void 0===ye?void 0:ye.toUpperCase())?tt:void 0,baseUrl:M,apiUrl:Te.constants.BACKEND_URL,layout:d,memoriTyping:st,typingText:lt,showTypingText:w,history:wr?on:on.slice(-2),authToken:null!==(Se=null!==(_e=null!=je?je:PU)&&void 0!==_e?_e:null==V?void 0:V.loginToken)&&void 0!==Se?Se:z,dialogState:vn,setDialogState:_n,pushMessage:an,simulateUserPrompt:(e,t)=>{Yn(),Un(),ln(e,void 0,void 0,!1,t)},showDates:S,showContextPerLine:b,showAIicon:cr,showWhyThisAnswer:ur,showCopyButton:v,showTranslationOriginal:y,client:Te,selectReceiverTag:async n=>{var r;if(fn)try{const{currentState:i,...o}=await Oe(fn,n);if(0===o.resultCode)if(an({text:n,fromUser:!0}),"X4"===i.state&&e.giverTag){const{currentState:n,...r}=await Te.postTagChangedEvent(fn,e.giverTag);0===r.resultCode?(_n(n),n.emission&&an({text:n.emission,emitter:n.emitter,media:n.media,fromUser:!1,contextVars:n.contextVars,date:n.currentDate,placeName:n.currentPlaceName,placeLatitude:n.currentLatitude,placeLongitude:n.currentLongitude,placeUncertaintyKm:n.currentUncertaintyKm,tag:n.currentTag,memoryTags:n.memoryTags})):(console.error(r),t(Qu).error(we(nO(r.resultCode))))}else _n(i),i.emission&&an({text:i.emission,emitter:i.emitter,media:i.media,fromUser:!1,contextVars:i.contextVars,date:i.currentDate,placeName:i.currentPlaceName,placeLatitude:i.currentLatitude,placeLongitude:i.currentLongitude,placeUncertaintyKm:i.currentUncertaintyKm,tag:i.currentTag,memoryTags:i.memoryTags});else console.error(o,n,null===(r=null==vn?void 0:vn.knownTags)||void 0===r?void 0:r[n]),t(Qu).error(we(nO(o.resultCode)))}catch(e){let n=e;console.error(n),t(Qu).error(n.message)}},preview:f,sendOnEnter:tr,setSendOnEnter:nr,microphoneMode:At?"CONTINUOUS":"HOLD_TO_TALK",attachmentsMenuOpen:rr,setAttachmentsMenuOpen:ir,instruct:Be,showInputs:_,showMicrophone:!!F,userMessage:en,onChangeUserMessage:e=>{if(!e||"\n"===e||""===e.trim())return tn(""),void In();tn(e),Tn()},sendMessage:(e,t)=>{Un(),Yn(),ln(e,t),tn(""),Hn()},stopListening:Xn,startListening:Kn,stopAudio:Un,resetTranscript:Hn,listening:nn,setEnableFocusChatInput:Ue,isPlayingAudio:Rt,customMediaRenderer:q,user:He,userAvatar:J,experts:fr,useMathFormatting:rt},Ir=u&&sr?(0,s.jsx)("div",{className:"memori--global-background",children:(0,s.jsx)("div",{className:"memori--global-background-image",style:{backgroundImage:sr}})}):(0,s.jsx)("div",{className:"memori--global-background no-background-image"}),Mr=u?(0,s.jsx)("style",{dangerouslySetInnerHTML:{__html:lr}}):null,Rr={canInstruct:!!e.giverTag,instruct:!!Be,onChangeMode:e=>{ze("instruct"===e),pt(!1),Ke(!1)}},Pr=(0,s.jsx)($F,{tenant:L,userLang:tt,integrationID:null==u?void 0:u.integrationID,memoriHash:`${e.ownerTenantName}-${e.ownerUserName}-${e.name}`}),Nr=h||("TOTEM"===ut?yU:"CHAT"===ut?_U:"FULLPAGE"===ut?vU:"WEBSITE_ASSISTANT"===ut?SU:"HIDDEN_CHAT"===ut?xU:"ZOOMED_FULL_BODY"===ut?wU:vU);return(0,s.jsxs)("div",{className:t(xs)("memori","memori-widget",`memori-layout-${d.toLowerCase()}`,`memori-controls-${Nt.toLowerCase()}`,`memori--avatar-${(null==Qe?void 0:Qe.avatar)||"default"}`,{"memori--preview":f,"memori--embed":g,"memori--with-integration":u,"memori--with-speechkey":!!F,"memori--active":ht,"memori--hide-emissions":zt,"memori--has-active-session":!!fn}),"data-memori-name":null==e?void 0:e.name,"data-memori-id":null==e?void 0:e.engineMemoriID,"data-memori-secondary-id":null==e?void 0:e.memoriID,"data-memori-session-id":fn,"data-memori-integration":null==u?void 0:u.integrationID,"data-memori-engine-state":JSON.stringify({...vn,sessionID:fn}),style:{height:T},children:[(0,s.jsx)(Nr,{Header:XF,headerProps:Cr,Avatar:Rz,avatarProps:Er,Chat:HO,chatProps:Tr,StartPanel:XO,startPanelProps:Ar,integrationStyle:Mr,integrationBackground:Ir,ChangeMode:qz,changeModeProps:Rr,poweredBy:Pr,sessionId:fn,hasUserActivatedSpeak:ht,showInstruct:p,loading:it}),(0,s.jsx)("audio",{id:"memori-audio",style:{display:"none"},src:"https://aisuru.com/intro.mp3"}),Ee&&(0,s.jsx)(xN,{withModal:!0,pwdOrTokens:Yt,openModal:!!Yt,setPwdOrTokens:Xt,showTokens:"SECRET"===e.privacyType,onFinish:async t=>{var n,r,i,o;t.password&&qt(t.password),t.password&&(RU=t.password),t.tokens&&Kt(t.tokens),bn(!fn,t.password,t.tokens,Be?e.giverTag:null==B?void 0:B.tag,Be?e.giverPIN:null==B?void 0:B.pin,{PATHNAME:null===(n=window.location.pathname)||void 0===n?void 0:n.toUpperCase(),ROUTE:(null===(o=null===(i=null===(r=window.location.pathname)||void 0===r?void 0:r.split("/"))||void 0===i?void 0:i.pop())||void 0===o?void 0:o.toUpperCase())||"",...N||{}},O,dn).then((e=>{Xt(null),mr(e||void 0)})).catch((()=>{Xt(null),Xe(!0)}))},minimumNumberOfRecoveryTokens:null!==(be=null==e?void 0:e.minimumNumberOfRecoveryTokens)&&void 0!==be?be:1}),Ee&&(0,s.jsx)(nU,{visible:pn,minAge:un,onClose:t=>{var n,r,i,o;t?(hn(t),MB("birthDate",t),bn(!fn,RU||Wt||(null==e?void 0:e.secretToken),Jt,Be?e.giverTag:null==B?void 0:B.tag,Be?e.giverPIN:null==B?void 0:B.pin,{PATHNAME:null===(n=window.location.pathname)||void 0===n?void 0:n.toUpperCase(),ROUTE:(null===(o=null===(i=null===(r=window.location.pathname)||void 0===r?void 0:r.split("/"))||void 0===i?void 0:i.pop())||void 0===o?void 0:o.toUpperCase())||"",...N||{}},O,t).then((e=>{mn(!1),Xt(null),mr(e||void 0)})).catch((()=>{mn(!1),Xe(!0)}))):(mn(!1),Ke(!1))}}),yt&&(0,s.jsx)(sU,{layout:ut,open:!!yt,onClose:()=>_t(!1),microphoneMode:At?"CONTINUOUS":"HOLD_TO_TALK",continuousSpeechTimeout:It,setMicrophoneMode:e=>Tt("CONTINUOUS"===e),setContinuousSpeechTimeout:Mt,controlsPosition:Nt,setControlsPosition:Ot,hideEmissions:zt,setHideEmissions:Ft,avatarType:Lt,setAvatarType:Bt,enablePositionControls:kt,setEnablePositionControls:Dt,isAvatar3d:!!(null==Qe?void 0:Qe.avatarURL),additionalSettings:W}),gt&&(0,s.jsx)(ZR,{memori:e,open:!!gt,venue:$t,setVenue:e=>{Qt(e),Zt(e),e?MB("position",JSON.stringify(e)):RB("position")},onClose:e=>{e&&Zt(e),vt(!1)}}),St&&fn&&(0,s.jsx)(uU,{apiClient:Te,memori:e,sessionID:fn,visible:St,closeDrawer:()=>bt(!1)}),xt&&!!fr&&(0,s.jsx)(dU,{apiUrl:Te.constants.BACKEND_URL,baseUrl:M,tenant:L,experts:fr,open:xt,onClose:()=>wt(!1)}),We&&(null==L?void 0:L.id)&&(0,s.jsx)(gU,{tenant:L,apiClient:Te,open:!!We,user:He,loginToken:je,onClose:()=>qe(!1),onLogin:(e,t)=>{Ve(e),Ge(t),PU=t,qe(!1),MB("loginToken",t)},onLogout:()=>{je&&Te.backend.userLogout(je).then((()=>{qe(!1),Ve(void 0),Ge(void 0),PU=void 0,RB("loginToken")}))}})]})};const DU={id:"aisuru.com",theme:"aisuru",config:{name:"Memori",showNewUser:!1,requirePosition:!1}},LU=async(e,t)=>{const n=t?new URL(`${t.startsWith("http")?"":t.includes("localhost")?"http://":"https://"}${t}`).origin:"https://aisuru.com";try{const t=await fetch(`${n}/api/tenant/${e}`),{tenant:r}=await t.json();return r||{...DU,tenantID:e}}catch(t){return{...DU,tenantID:e}}};function BU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SD(r.key),r)}}function FU(e,t,n){return t&&zU(e.prototype,t),n&&zU(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function UU(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jU(e,t){return jU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jU(e,t)}function GU(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jU(e,t)}function HU(e,t){if(t&&("object"===yD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return UU(e)}function VU(e){return VU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},VU(e)}function WU(e){if(Array.isArray(e))return e}function qU(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function JU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function KU(e,t){if(e){if("string"==typeof e)return JU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?JU(e,t):void 0}}function YU(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function XU(e){return WU(e)||qU(e)||KU(e)||YU()}function $U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$U(Object(n),!0).forEach((function(t){bD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ZU={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},ej=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};BU(this,e),this.init(t,n)}return FU(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||ZU,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,QU(QU({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),tj=function(){function e(){BU(this,e),this.observers={}}return FU(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function nj(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function rj(e){return null==e?"":""+e}function ij(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function oj(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!e[s]&&n&&(e[s]=new n),e=Object.prototype.hasOwnProperty.call(e,s)?e[s]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function sj(e,t,n){var r=oj(e,t,Object);r.obj[r.k]=n}function aj(e,t){var n=oj(e,t),r=n.obj,i=n.k;if(r)return r[i]}function lj(e,t,n){var r=aj(e,n);return void 0!==r?r:aj(t,n)}function cj(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):cj(e[r],t[r],n):e[r]=t[r]);return e}function uj(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var dj={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function hj(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return dj[e]})):e}var pj="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,mj=[" ",",","?","!",";"];function fj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fj(Object(n),!0).forEach((function(t){bD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=VU(e);if(t){var i=VU(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return HU(this,n)}}function yj(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i)return;if("string"==typeof i[r[o]]&&o+1<r.length)return;if(void 0===i[r[o]]){for(var s=2,a=r.slice(o,o+s).join(n),l=i[a];void 0===l&&r.length>o+s;)s++,l=i[a=r.slice(o,o+s).join(n)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(a)){if("string"==typeof l)return l;if(a&&"string"==typeof l[a])return l[a]}var c=r.slice(o+s).join(n);return c?yj(l,c,n):void 0}i=i[r[o]]}return i}}var _j=function(e){GU(n,e);var t=vj(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return BU(this,n),r=t.call(this),pj&&tj.call(UU(r)),r.data=e||{},r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return FU(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[e,t];n&&"string"!=typeof n&&(s=s.concat(n)),n&&"string"==typeof n&&(s=s.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(s=e.split("."));var a=aj(this.data,s);return a||!o||"string"!=typeof n?a:yj(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var s=[e,t];n&&(s=s.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(s=e.split("."))[1]),this.addNamespaces(t),sj(this.data,s,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var a=aj(this.data,s)||{};r?cj(a,n,i):a=gj(gj({},a),n),sj(this.data,s,a),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?gj(gj({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(tj),Sj={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))})),t}};function bj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bj(Object(n),!0).forEach((function(t){bD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=VU(e);if(t){var i=VU(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return HU(this,n)}}var Cj={},Ej=function(e){GU(n,e);var t=wj(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return BU(this,n),r=t.call(this),pj&&tj.call(UU(r)),ij(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,UU(r)),r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=ej.create("translator"),r}return FU(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,s=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=mj.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var i=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),o=!i.test(e);if(!o){var s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o}(e,n,r));if(o&&!s){var a=e.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:e,namespaces:i};var l=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(l[0])>-1)&&(i=l.shift()),e=l.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t,r){var i=this;if("object"!==yD(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,s=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],t),l=a.key,c=a.namespaces,u=c[c.length-1],d=t.lng||this.language,h=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(h){var p=t.nsSeparator||this.options.nsSeparator;return o?(m.res="".concat(u).concat(p).concat(l),m):"".concat(u).concat(p).concat(l)}return o?(m.res=l,m):l}var m=this.resolve(e,t),f=m&&m.res,g=m&&m.usedKey||l,v=m&&m.exactUsedKey||l,y=Object.prototype.toString.apply(f),_=["[object Number]","[object Function]","[object RegExp]"],S=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f;if(b&&f&&x&&_.indexOf(y)<0&&("string"!=typeof S||"[object Array]"!==y)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,f,xj(xj({},t),{},{ns:c})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return o?(m.res=w,m):w}if(s){var C="[object Array]"===y,E=C?[]:{},A=C?v:g;for(var T in f)if(Object.prototype.hasOwnProperty.call(f,T)){var I="".concat(A).concat(s).concat(T);E[T]=this.translate(I,xj(xj({},t),{joinArrays:!1,ns:c})),E[T]===I&&(E[T]=f[T])}f=E}}else if(b&&"string"==typeof S&&"[object Array]"===y)(f=f.join(S))&&(f=this.extendTranslation(f,e,t,r));else{var M=!1,R=!1,P=void 0!==t.count&&"string"!=typeof t.count,N=n.hasDefaultValue(t),O=P?this.pluralResolver.getSuffix(d,t.count,t):"",k=t["defaultValue".concat(O)]||t.defaultValue;!this.isValidLookup(f)&&N&&(M=!0,f=k),this.isValidLookup(f)||(R=!0,f=l);var D=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,L=D&&R?void 0:f,B=N&&k!==f&&this.options.updateMissing;if(R||M||B){if(this.logger.log(B?"updateKey":"missingKey",d,u,l,B?k:f),s){var z=this.resolve(l,xj(xj({},t),{},{keySeparator:!1}));z&&z.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.")}var F=[],U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&U&&U[0])for(var j=0;j<U.length;j++)F.push(U[j]);else"all"===this.options.saveMissingTo?F=this.languageUtils.toResolveHierarchy(t.lng||this.language):F.push(t.lng||this.language);var G=function(e,n,r){var o=N&&r!==f?r:L;i.options.missingKeyHandler?i.options.missingKeyHandler(e,u,n,o,B,t):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,u,n,o,B,t),i.emit("missingKey",e,u,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?F.forEach((function(e){i.pluralResolver.getSuffixes(e,t).forEach((function(n){G([e],l+n,t["defaultValue".concat(n)]||k)}))})):G(F,l,k))}f=this.extendTranslation(f,e,t,m,r),R&&f===l&&this.options.appendNamespaceToMissingKey&&(f="".concat(u,":").concat(l)),(R||M)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(u,":").concat(l):l,M?f:void 0):this.options.parseMissingKeyHandler(f))}return o?(m.res=f,m):f}},{key:"extendTranslation",value:function(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,xj(xj({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(xj(xj({},n),{interpolation:xj(xj({},this.options.interpolation),n.interpolation)}));var s,a="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){var l=e.match(this.interpolator.nestingRegexp);s=l&&l.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=xj(xj({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),a){var u=e.match(this.interpolator.nestingRegexp);s<(u&&u.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];return i&&i[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate.apply(o,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,h="string"==typeof d?[d]:d;return null!=e&&h&&h.length&&!1!==n.applyPostProcessor&&(e=Sj.handle(h,e,t,this.options&&this.options.postProcessPassResolved?xj({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,i,o,s=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!s.isValidLookup(t)){var l=s.extractFromKey(e,a),c=l.key;n=c;var u=l.namespaces;s.options.fallbackNS&&(u=u.concat(s.options.fallbackNS));var d=void 0!==a.count&&"string"!=typeof a.count,h=d&&!a.ordinal&&0===a.count&&s.pluralResolver.shouldUseIntlApi(),p=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,m=a.lngs?a.lngs:s.languageUtils.toResolveHierarchy(a.lng||s.language,a.fallbackLng);u.forEach((function(e){s.isValidLookup(t)||(o=e,!Cj["".concat(m[0],"-").concat(e)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(o)&&(Cj["".concat(m[0],"-").concat(e)]=!0,s.logger.warn('key "'.concat(n,'" for languages "').concat(m.join(", "),'" won\'t get resolved as namespace "').concat(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!!!")),m.forEach((function(n){if(!s.isValidLookup(t)){i=n;var o,l=[c];if(s.i18nFormat&&s.i18nFormat.addLookupKeys)s.i18nFormat.addLookupKeys(l,c,n,e,a);else{var u;d&&(u=s.pluralResolver.getSuffix(n,a.count,a));var m="".concat(s.options.pluralSeparator,"zero");if(d&&(l.push(c+u),h&&l.push(c+m)),p){var f="".concat(c).concat(s.options.contextSeparator).concat(a.context);l.push(f),d&&(l.push(f+u),h&&l.push(f+m))}}for(;o=l.pop();)s.isValidLookup(t)||(r=o,t=s.getResource(n,e,o,a))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),n}(tj);function Aj(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Tj=function(){function e(t){BU(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ej.create("languageUtils")}return FU(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Aj(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Aj(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Aj(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&o(n.formatLanguageCode(e))})),i}}]),e}(),Ij=[{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}],Mj={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Rj=["v1","v2","v3"],Pj={zero:0,one:1,two:2,few:3,many:4,other:5};function Nj(){var e={};return Ij.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Mj[t.fc]}}))})),e}var Oj=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};BU(this,e),this.languageUtils=t,this.options=n,this.logger=ej.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&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=Nj()}return FU(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return Pj[e]-Pj[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!Rj.includes(this.options.compatibilityJSON)}}]),e}();function kj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kj(Object(n),!0).forEach((function(t){bD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lj=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};BU(this,e),this.logger=ej.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return FU(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:hj,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?uj(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?uj(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?uj(t.nestingPrefix):t.nestingPrefixEscaped||uj("$t("),this.nestingSuffix=t.nestingSuffix?uj(t.nestingSuffix):t.nestingSuffixEscaped||uj(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,o,s,a=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(a.formatSeparator)<0){var i=lj(t,l,e);return a.alwaysFormat?a.format(i,void 0,n,Dj(Dj(Dj({},r),t),{},{interpolationkey:e})):i}var o=e.split(a.formatSeparator),s=o.shift().trim(),c=o.join(a.formatSeparator).trim();return a.format(lj(t,l,s),c,n,Dj(Dj(Dj({},r),t),{},{interpolationkey:s}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,h=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return a.escapeValue?c(a.escape(e)):c(e)}}].forEach((function(t){for(s=0;i=t.regex.exec(e);){var n=i[1].trim();if(void 0===(o=u(n)))if("function"==typeof d){var l=d(e,i,r);o="string"==typeof l?l:""}else if(r&&r.hasOwnProperty(n))o="";else{if(h){o=i[0];continue}a.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}else"string"==typeof o||a.useRawValueToEscape||(o=rj(o));var c=t.safeValue(o);if(e=e.replace(i[0],c),h?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++s>=a.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=Dj({},o);function a(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0];var o=(i=this.interpolate(i,s)).match(/'/g),a=i.match(/"/g);(o&&o.length%2==0&&!a||a.length%2!=0)&&(i=i.replace(/'/g,'"'));try{s=JSON.parse(i),t&&(s=Dj(Dj({},t),s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),l=u,c=!0}if((r=t(a.call(this,n[1].trim(),s),s))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=rj(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=l.reduce((function(e,t){return i.format(e,t,o.lng,Dj(Dj({},o),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function Bj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bj(Object(n),!0).forEach((function(t){bD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fj(e){var t={};return function(n,r,i){var o=r+JSON.stringify(i),s=t[o];return s||(s=e(r,i),t[o]=s),s(n)}}var Uj=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};BU(this,e),this.logger=ej.create("formatter"),this.options=t,this.formats={number:Fj((function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}})),currency:Fj((function(e,t){var n=new Intl.NumberFormat(e,zj(zj({},t),{},{style:"currency"}));return function(e){return n.format(e)}})),datetime:Fj((function(e,t){var n=new Intl.DateTimeFormat(e,zj({},t));return function(e){return n.format(e)}})),relativetime:Fj((function(e,t){var n=new Intl.RelativeTimeFormat(e,zj({},t));return function(e){return n.format(e,t.range||"day")}})),list:Fj((function(e,t){var n=new Intl.ListFormat(e,zj({},t));return function(e){return n.format(e)}}))},this.init(t)}return FU(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=Fj(t)}},{key:"format",value:function(e,t,n,r){var i=this,o=t.split(this.formatSeparator).reduce((function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((function(e){if(e){var t=XU(e.split(":")),r=t[0],i=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[r.trim()]||(n[r.trim()]=i),"false"===i&&(n[r.trim()]=!1),"true"===i&&(n[r.trim()]=!0),isNaN(i)||(n[r.trim()]=parseInt(i,10))}}))}return{formatName:t,formatOptions:n}}(t),s=o.formatName,a=o.formatOptions;if(i.formats[s]){var l=e;try{var c=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},u=c.locale||c.lng||r.locale||r.lng||n;l=i.formats[s](e,u,zj(zj(zj({},a),r),c))}catch(e){i.logger.warn(e)}return l}return i.logger.warn("there was no format function for ".concat(s)),e}),e);return o}}]),e}();function jj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jj(Object(n),!0).forEach((function(t){bD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=VU(e);if(t){var i=VU(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return HU(this,n)}}var Vj=function(e){GU(n,e);var t=Hj(n);function n(e,r,i){var o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return BU(this,n),o=t.call(this),pj&&tj.call(UU(o)),o.backend=e,o.store=r,o.services=i,o.languageUtils=i.languageUtils,o.options=s,o.logger=ej.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=s.maxParallelReads||10,o.readingCalls=0,o.maxRetries=s.maxRetries>=0?s.maxRetries:5,o.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,s.backend,s),o}return FU(n,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o={},s={},a={},l={};return e.forEach((function(e){var r=!0;t.forEach((function(t){var a="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[a]=2:i.state[a]<0||(1===i.state[a]?void 0===s[a]&&(s[a]=!0):(i.state[a]=1,r=!1,void 0===s[a]&&(s[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===l[t]&&(l[t]=!0)))})),r||(a[e]=!0)})),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;var s={};this.queue.forEach((function(n){var r,a,l,c,u,d;r=n.loaded,a=o,c=oj(r,[i],Object),u=c.obj,d=c.k,u[d]=u[d]||[],l&&(u[d]=u[d].concat(a)),l||u[d].push(a),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){s[e]||(s[e]={});var t=n.loaded[e];t.length&&t.forEach((function(t){void 0===s[e][t]&&(s[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:o,callback:s}):(this.readingCalls++,this.backend[n](e,t,(function(a,l){if(r.readingCalls--,r.waitingReads.length>0){var c=r.waitingReads.shift();r.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}a&&l&&i<r.maxRetries?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*o,s)}),o):s(a,l)}))):s(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=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."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,s){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&s&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),s),t.loaded(e,r,s)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(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!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,Gj(Gj({},o),{},{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),n}(tj);function Wj(){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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===yD(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===yD(e[2])||"object"===yD(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function qj(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Jj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jj(Object(n),!0).forEach((function(t){bD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=VU(e);if(t){var i=VU(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return HU(this,n)}}function Xj(){}function $j(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}))}var Qj=function(e){GU(n,e);var t=Yj(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(BU(this,n),e=t.call(this),pj&&tj.call(UU(e)),e.options=qj(r),e.services={},e.logger=ej,e.modules={external:[]},$j(UU(e)),i&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,i),HU(e,UU(e));setTimeout((function(){e.init(r,i)}),0)}return e}return FU(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=Wj();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=Kj(Kj(Kj({},r),this.options),qj(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=Kj(Kj({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var o;this.modules.logger?ej.init(i(this.modules.logger),this.options):ej.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=Uj);var s=new Tj(this.options);this.store=new _j(this.options.resources,this.options);var a=this.services;a.logger=ej,a.resourceStore=this.store,a.languageUtils=s,a.pluralResolver=new Oj(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!o||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(a.formatter=i(o),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new Lj(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new Vj(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(a.languageDetector=i(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=i(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new Ej(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,n||(n=Xj),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var d=nj(),h=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),d.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),d}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xj,r=n,i="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],s=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(i)s(i);else{var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.forEach((function(e){return s(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return s(e)})),this.services.backendConnector.load(o,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)}))}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=nj();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Xj),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(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"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Sj.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=nj();this.emit("languageChanging",e);var i=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},o=function(o){e||o||!n.services.languageDetector||(o=[]);var s="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);s&&(n.language||i(s),n.translator.language||n.translator.changeLanguage(s),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(s)),n.loadResources(s,(function(e){!function(e,o){o?(i(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,s)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,i=function e(t,i){var o;if("object"!==yD(i)){for(var s=arguments.length,a=new Array(s>2?s-2:0),l=2;l<s;l++)a[l-2]=arguments[l];o=r.options.overloadTranslationOptionHandler([t,i].concat(a))}else o=Kj({},i);o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,o.keyPrefix=o.keyPrefix||n||e.keyPrefix;var c=r.options.keySeparator||".",u=o.keyPrefix?"".concat(o.keyPrefix).concat(c).concat(t):t;return r.t(u,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?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;var r=this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var s=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var a=n.precheck(this,s);if(void 0!==a)return a}return!!this.hasResourceBundle(r,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!s(r,e)||i&&!s(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=nj();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=nj();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";return["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"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xj,i=Kj(Kj(Kj({},this.options),t),{isClone:!0}),o=new n(i);void 0===t.debug&&void 0===t.prefix||(o.logger=o.logger.clone(t));var s=["store","services","language"];return s.forEach((function(t){o[t]=e[t]})),o.services=Kj({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new Ej(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))})),o.init(i,r),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(tj);bD(Qj,"createInstance",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Qj(e,t)}));var Zj=Qj.createInstance();Zj.createInstance=Qj.createInstance;var eG,tG=Zj.createInstance;Zj.init,Zj.loadResources,Zj.reloadResources,Zj.use,Zj.changeLanguage,Zj.getFixedT,Zj.t,Zj.exists,Zj.setDefaultNamespace,Zj.hasLoadedNamespace,Zj.loadNamespaces,Zj.loadLanguages;eG=JSON.parse('{"yes":"Si","no":"No","confirm":"Conferma","apply":"Applica","cancel":"Annulla","show":"Mostra","hide":"Nascondi","send":"Invia","close":"Chiudi","edit":"Modifica","delete":"Elimina","loading":"Caricamento","expand":"Espandi","collapse":"Riduci","fullscreenEnter":"Passa a schermo intero","fullscreenExit":"Esci da schermo intero","center":"Centro","bottom":"In basso","hidden":"Nascosto","day":"Giorno","month":"Mese","year":"Anno","createdAt":"Data creazione","selected":"Selezionati","page":"pagina","actions":"Azioni","next":"Successivo","previous":"Precedente","copy":"Copia","copyRawCode":"Copia codice sorgente","copyToClipboard":"Copia negli appunti","showOriginalText":"Mostra originale","showTranslatedText":"Mostra traduzione","exactPosition":"Posizione esatta","uncertain":"Incertezza","question":"Domanda","nothingFound":"Nessun risultato","venue":"Luogo","searchVenue":"Cerca luogo...","memoriBlockedTitle":"Bloccato","memoriBlockedUntil":"Memori bloccato fino al {{date}}","memoriBlockedAnon":"Attualmente \\"{{name}}\\" non può rispondere, torna qui il {{date}}","memoriBlockedReasonExceedChats":"perchè ha superato la soglia mensile di chat ammesse.","memoriBlockedGiverHelper":"Puoi sempre gestirlo in qualità di amministratore, ma altri utenti non potranno interrogarlo.","generatedByAI":"Risposta generata da IA, può talvolta generare informazioni non corrette","whyThisAnswer":"Perché questa risposta?","whyThisAnswerHelper":"Questa risposta è stata generata automaticamente da un\'intelligenza artificiale sulla base di questi contenuti verificati.","completionsEnabled":"IA evoluta, può rispondere con risposte generate automaticamente che talvolta potrebbero contenere informazioni non corrette","completionProviderDown":"Questo Twin è integrato con una IA generativa di {{provider}}, ma al momento non è disponibile. Riprova più tardi.","completionProviderFallbackName":"un provider esterno","completionProviderCheckStatusPage":"Vedi pagina di stato","boardOfExperts":"Gruppo di esperti","birthDate":"Data di nascita","birthDateHelper":"Ti chiediamo la data di nascita esclusivamente per abilitare o disabilitare le funzionalità che hanno restrizioni in base all\'età","underage":"Devi avere almeno {{age}} anni per registrarti.","underageTwinSession":"Devi avere almeno {{age}} anni per interagire con questo Twin.","errorFetchingSession":"Errore durante il caricamento della sessione","errorGettingReferralURL":"Errore durante il caricamento del riferimento","errorReopeningSession":"Errore durante il riapertura della sessione","ageVerification":"Verifica dell\'età","ageVerificationText":"Per interagire con questo Twin, devi aver almeno {{minAge}} anni.","nsfw":"NSFW: Questo Twin contiene contenuti per adulti","deepThought":"Pensiero profondo","deepThoughtHelper":"Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme.","deepThoughtDisclaimerTitle":"Pensiero profondo abilitato","deepThoughtDisclaimer":"Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme.","deepThoughtPreDisclaimerUnlogged":"Accedi per abilitare Pensiero Profondo.","deepThoughtPreDisclaimerNotAllowed":"Pensiero Profondo è disabilitato poiché non hai acconsentito al suo utilizzo, puoi cambiare la tua scelta in qualsiasi momento nelle impostazioni del tuo account.","notEnoughCredits":"L\'autore di questo Twin non ha abbastanza crediti per rispondere alla tua domanda.","knownFacts":{"title":"Fatti noti","description":"Dettagli delle informazioni condivise tra te e {{memoriName}}","type":"Tipo","typeShortTerm":"Breve termine","typeLongTerm":"Lungo termine","typeHelper":"Tipi:\\n- Breve termine: questo fatto noto è sempre utilizzato durante le conversazioni\\n- Lungo termine: questo fatto noto è utilizzato durante le conversazioni solo se rilevante per la domanda corrente","text":"Testo","deleteSuccess":"Fatto noto eliminato","deleteConfirmTitle":"Elimina il fatto noto","deleteConfirmMessage":"Confermi di voler eliminare questo fatto noto?","deleteSelectedConfirmTitle":"Elimina i fatti noti selezionati","deleteSelectedConfirmMessage":"Confermi di voler eliminare i fatti noti selezionati?"},"auth":{"title":"Autenticazione","useRecoveryTokens":"Utilizza i token di recupero","tokens":"Token","addToken":"Aggiungi token","usePassword":"Utilizza la password","atLeast":"Almeno"},"widget":{"instruct":"Istruisci","test":"Prova","sound":"Audio","position":"Preferenze posizione","settings":"Impostazioni","share":"Condividi","sendOnKeypress":"Premi Invio per inviare","sendOnClick":"Clicca sul bottone di invio","boardOfExperts":"Gruppo di esperti","showExpertsInTheBoard":"Mostra gli esperti di questo gruppo","expertsInTheBoard":"Esperti di questo gruppo","goToIntegrationsToCustomizeAvatar":"Per personalizzare l\'avatar, vai a Condividimi e configura la pagina pubblica"},"write_and_speak":{"micButtonPopover":"Premi il pulsante per parlare","micButtonPopoverListening":"Premi il pulsante per smettere di parlare","pageInstructExplanation":"Per insegnarmi nuove cose clicca sul pulsante ISTRUISCIMI per cominciare","pageTryMeExplanation":"Per parlare con me clicca sul pulsante INIZIAMO per cominciare","instructButton":"ISTRUISCIMI","tryMeButton":"INIZIAMO","resumeButton":"RIPRENDI","chatHistory":"Cronologia chat","exportChatHistory":"Esporta la cronologia chat","exportChatHistoryMessage":"Vuoi esportare la cronologia chat?","chatBotButtonText":"CLICCA QUI PER APRIRE LA CHAT","conversationStartedLabel":"Conversazione avvenuta il","settingsHeaderLabel":"Configura qui il memori se vuoi impostare una conversazione continua. Setta i secondi di silenzio prima dell\'invio.","continuousSpeechLabel":"Conversazione continua","holdToSpeak":"Tieni premuto per parlare","releaseToEndListening":"Rilascia per smettere di parlare","pressAndHoldToSpeak":"Premi e tieni premuto per parlare","microphoneMode":"Modalità microfono","hideEmissionsLabel":"Nascondi testo emesso dal Twin","secondsLabel":"Secondi","controlsPosition":"Posizione dei controlli","avatarControls":"Controlli Avatar","height":"Altezza","depth":"Profondità","avatarType":"Tipo Avatar","blob":"Blob","avatar3d":"Avatar 3D","zoomed":"Vicino","normal":"Normale","far":"Lontano","suggestions":"Usa le frecce per regolare l\'altezza dell\'avatar\\nUsa +/- per regolare la profondità dell\'avatar","enablePositionControls":"Abilita controlli posizione","tryMeHeaderLabel":"PROVA","unknownPosition":"Posizione sconosciuta","fieldPlace":"Indica la posizione (es \'Milano\')","showMapLinkFor":"Visualizza sulla mappa la posizione","useMyPosition":"Usa la mia posizione","myPosition":"Posizione corrente","updatingPosition":"Aggiorno la posizione...","placeNotFound":"Luogo sconosciuto!","requirePositionHelp":"Per parlare con {{name}} devi decidere se fornire o meno la tua posizione. Questo perchè diverse risposte che potrà fornirti potrebbero dipendere da dove ti trovi.","dontWantToProvidePosition":"Non voglio fornire la mia posizione","attachmentsLabel":"Arricchisci il tuo messaggio","iWantToTalkToIn":"Voglio parlare con {{name}} in"},"media":{"title":"Titolo","editAttributes":"Modifica attributi media","uploadMimeTypeNotAllowed":"Il tipo di file non è permesso","uploadSizeLimitMessage":"Il file caricato è troppo grande (max {{size}}MB)","uploadWrongResolutionMessage":"La risoluzione deve essere {{width}}x{{height}} pixel","memoriNameAlreadyUsed":"Hai già un Twin con questo nome","uploadHelperImages":"Caricare un file con estensione png, jpg, jpeg o gif e con dimensione massima di {{size}}MB","uploadHelper":"Caricare un file di dimensione massima di {{size}}MB","uploadError":"Errore nel caricamento","square":"quadrato","scaleRatio":"Proporzioni","addMediaLabel":"Aggiungi media","insertThisMediaMsg":"Inserisci questi media","mediaUploadMessage":"Clicca per caricare un nuovo media","addLinkLabel":"Aggiungi un link","linkKey":"URL","linkValue":"Titolo link","insertThisLink":"Inserisci un link a {{url}} con titolo {{title}}"},"gamification":{"level":"Livello","points":"punti","memoriReachedLevel":"è diventato più evoluto ed ha raggiunto il livello","levelGoToStatistics":"{{memori}} è al livello {{level}} con {{points}} punti. Clicca per andare alle statistiche.","congratulationsNewLevel":"Congratulazioni, hai raggiunto un nuovo livello!","congratulationsNewLevelDescription":"Il tuo Memori è diventato più evoluto con {{points}} punti, guarda le","statistics":"statistiche"},"login":{"login":"Accedi","logout":"Esci","user":"Utente","loggedDrawerTitle":"Ciao, {{name}}!","loginDrawerTitle":"Accedi","signupDrawerTitle":"Registrati","newUserSignUp":"Sei un nuovo utente?","signUp":"Registrati!","alreadyHaveAnAccount":"Hai già un account?","backToLogin":"Torna al login","registrationDisabled":"La registrazione è disabilitata.","contactAdmin":"Contatta l\'amministratore per richiedere l\'accesso","userNameOrEmail":"Nome utente o email","email":"Email","emailFormatError":"Per favore, inserisci una mail valida","username":"Nome utente","usernameContainsReservedWord":"Il nome utente contiene una parola riservata, per favore cambia il nome utente","usernameFormatError":"Il nome utente deve essere lungo almeno 3 caratteri e può contenere solo lettere, numeri e _","otpCode":"Codice di verifica","resendVerificationCode":"Invia di nuovo","resentVerificationCode":"Codice di verifica inviato! Controlla la tua mail.","password":"Password","newPassword":"Nuova password","confirmPassword":"Conferma la password","currentPassword":"Password attuale","passwordMatchingError":"Le password non coincidono.","passwordFormatError":"La password deve essere lunga almeno 8 caratteri e contenere almeno un numero, una lettera maiuscola, una minuscola e un simbolo","pwdWeak":"Debole","pwdAcceptable":"Accettabile","pwdStrong":"Forte","mustChangePassword":"Devi cambiare la password","passwordChange":"Cambio password","emailChange":"Cambio email","avatarChange":"Cambio avatar","underage":"Devi avere almeno {{age}} anni per registrarti.","optional":"opzionale","birthDate":"Data di nascita","birthDateHelper":"Ti chiediamo la data di nascita esclusivamente per abilitare o disabilitare le funzionalità che hanno restrizioni in base all\'età","missingData":"Informazioni mancanti","missingDataHelper":"Sappiamo che questo è un po\' fastidioso, ma abbiamo bisogno di alcune informazioni in più per completare la tua registrazione.","goToAccountToChangeYourPreferences":"Puoi cambiare la tua scelta in qualsiasi momento dalla tua pagina Account.","deepThoughtExplaination":"Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme. Consenti all\'autore del twin di contattarti per offerte commerciali riguardanti prodotti su cui hai espresso interesse.","tnCAndPPAcceptedHelper":"Dall\'ultimo accesso, i T&C e l\'Informativa sulla privacy sono stati modificati. Si prega di accettarle, altrimenti non sarà possibile apportare modifiche ai propri gemelli. Puoi sempre cancellare il tuo account nella pagina del tuo profilo utente.","privacyLabel":"Ho letto e accettato l\'","privacyAndCookiePolicy":"informativa sui cookie e sulla privacy","and":"e","termsOfService":"i termini del servizio","pAndCUAccepted":"Accetto le condizioni di utilizzo relative a Pensiero Profondo","editAccount":"Modifica account","save":"Salva"},"success":"Operazione andata a buon fine","Error":"Errore","internal server error":"Ops, scusa... qualcosa è andato storto nel server","error":"Errore","error.loading":"Errore durante il caricamento dei contenuti.","error.notFound":"Ops, non abbiamo trovato ciò che cercavi.","error.generic":"Ops, qualcosa è andato storto.","error.serverNotResponding":"Stiamo facendo manutenzione o rilasciando aggiornamenti. Riprova più tardi.","error.unprocessableEntity":"Errore durante il salvataggio dei dati. Ricontrolla i dati inseriti.","error.goBackTo":"Prova a tornare alla","error.reloadPage":"Ricarica la pagina","error.tryAgain":"Riprova","error.unauthorized":"Non sei autorizzato a visualizzare questo contenuto.","errors":{"TENANT_NOT_FOUND":"Tenant non trovato","TENANT_REGISTRATION_DISABLED":"La registrazione su questa piattaforma è disabilitata","TENANT_MISSING_NAME":"Tenant: nome mancante","TENANT_MAX_USERS_REACHED":"Numero massimo di utenti raggiunto","TENANT_MAX_ADMINS_REACHED":"Numero massimo di utenti amministratori raggiunto","TENANT_ALREADY_EXISTS":"Tenant già esistente","TENANT_MISSING_DESCRIPTION":"Tenant: descrizione mancante","TENANT_CANT_SET_COMPLETION_PROVIDER":"Tenant: non abilitato a gestire il provider di completamento","USER_NOT_CONFIRMED":"Utente ancora non confermato","USER_NOT_FOUND":"Utente non trovato","USER_OR_PASSWORD_INVALID":"Utente o password non validi","USER_MUST_CHANGE_PASSWORD":"Devi cambiare la password","USER_MUST_ENTER_VERIFICATION_CODE":"Devi inserire il codice di verifica","USER_MISSING_TENANT":"Utente: tenant mancante","USER_MISSING_NAME":"Utente: nome mancante","USER_MISSING_PASSWORD":"Utente: password mancante","USER_MISSING_EMAIL":"Utente: email mancante","USER_MISSING_VERIFICATION_CODE":"Utente: codice di verifica mancante","USER_NAME_ALREADY_USED":"Nome utente già in uso","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"La password non rispetta le regole di sicurezza","USER_EMAIL_ALREADY_USED":"Email già in uso","USER_EMAIL_INVALID":"Email non valida","USER_VERIFICATION_CODE_INVALID":"Codice di verifica non valido","USER_MISSING_NAME_OR_EMAIL":"Nome utente o email mancante","USER_NAME_INVALID":"Nome utente non valido","USER_HAS_ONE_OR_MORE_MEMORI":"L\'utente ha uno o più memori","USER_MISSING_NEW_PASSWORD":"Utente: nuova password mancante","USER_NOTHING_TO_DO":"Niente da fare","USER_CANT_CREATE_MEMORI":"Utente non abilitato a creare Memori","USER_MAX_MEMORI_REACHED":"Massimo numero di Memori raggiunto","USER_TOO_MANY_ATTEMPTS":"Troppi tentativi","USER_MUST_ACCEPT_TNC_AND_PP":"Devi accettare i termini e le condizioni","USER_BIRTH_DATE_CANT_BE_CHANGED":"Data di nascita non può essere cambiata","USER_CANT_SET_COMPLETION_PROVIDER":"Utente: non abilitato a gestire il provider di completamento","USER_CANT_ENABLE_DEEP_THOUGHT":"Utente: non abilitato a gestire Pensiero Profondo","USER_CANT_ENABLE_DCM_INTEGRATION":"Utente: non abilitato a gestire l\'integrazione con DCM","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Utente: non abilitato a gestire la concatenazione o il gruppo di esperti","USER_CREATION_BILLING_DENIED_PERMISSION":"Non hai crediti sufficienti per creare un Twin","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"L\'utente ha una o più configurazioni completions","USER_CANT_BE_DELETED":"Utente non può essere cancellato","MEMORI_NOT_FOUND":"Memori non trovato","MEMORI_NOT_ACCESSIBLE":"Memori non accessibile","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Solo il proprietario può cambiare il tag e il pin","SESSION_NOT_FOUND":"Sessione non trovata","SESSION_IS_NOT_ADMINISTRATIVE":"Sessione non amministrativa","SESSION_EXPIRED":"Sessione scaduta","MEMORI_MISSING_CONFIGURATION":"Memori: configurazione mancante","MEMORI_CONFIGURATION_NOT_FOUND":"Memori: configurazione non trovata","MEMORI_INVALID_PRIVACY_TYPE":"Memori: tipo di privacy non valido","MEMORI_MISSING_PASSWORD":"Memori: password mancante","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Memori: numero totale di token di recupero non valido","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Memori: numero minimo di token di recupero non valido","MEMORI_INVALID_VOICE_TYPE":"Memori: tipo di voce non valido","MEMORI_MISSING_NAME":"Memori: nome mancante","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Memori: password o token di recupero mancanti","MEMORI_INVALID_ID":"Memori: ID non valido","MEMORI_NAME_ALREADY_USED":"Nome memori già in uso","MEMORI_INVALID_PIN":"Memori: PIN non valido","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Memori: cambio TAG e PIN richiedono operazioni separate","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Memori: password non richiesta su Memori pubblico","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Pensiero Profondo richiede l\'abilitazione delle completions","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"Il gruppo di esperti richiede l\'abilitazione delle completions","MEMORI_INVALID_COMPLETION_CONFIG":"Memori: configurazione completions non valida","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Trasferimento: utente di destinazione mancante","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Trasferimento: ID utente di destinazione non valido","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Trasferimento: dati utente di destinazione non validi","MEMORI_TRANSFER_NOTHING_TO_DO":"Trasferimento: alcuna operazione da fare","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Memori: la configurazione non può essere modificata","MEMORI_MISSING_NEW_PASSWORD":"Memori: nuova password mancante","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Formato non valido data a partire da","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Formato non valido data fino a","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"Memori: funzionalità richiede un abbonamento","INTEGRATION_NOT_FOUND":"Integrazione non trovata","INTEGRATION_INVALID_TYPE":"Tipo integrazione non valido","INTEGRATION_ALREADY_EXISTS":"Integrazione già esistente","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Memori non pubblici non possono essere integrati","INTEGRATION_MISSING_INVOCATION_TEXT":"Integrazione: testo di invocazione mancante","INTEGRATION_MISSING_DEVICE_EMAILS":"Integrazione: email del dispositivo mancante","INTEGRATION_MEMORI_IS_EMPTY":"Memori vuoti non possono essere integrati","INTEGRATION_MISSING_PRIVACY_POLICY":"Integrazione: privacy policy mancante","INTEGRATION_MISSING_CATEGORY":"Categoria integrazione mancante","INTEGRATION_MISSING_DESCRIPTION":"Descrizione integrazione mancante","INTEGRATION_INVALID_INVOCATION_TEXT":"Testo di invocazione non valido","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home non più disponibile","UPLOAD_REQUIRES_MULTIPART_ENCODING":"L\'upload richiede l\'encoding multipart","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Upload: manca il content type boundary","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: dimensione massima superata","UPLOAD_FILE_IS_EMPTY":"Upload: file vuoto","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Upload: tipo di file o firma non validi","UPLOAD_MISSING_FILE_NAME":"Upload: nome file mancante","UPLOAD_INVALID_MEMORY_ID":"Upload: ID contenuto non valido","UPLOAD_MISSING_FILE_CONTENT":"Upload: contenuto file mancante","ASSET_NOT_FOUND":"Asset non trovato","ASSET_NOT_ACCESSIBLE":"Asset non accessibile","ASSET_MISSING_SESSION_ID":"Asset: ID sessione mancante","ASSET_INVALID_FILE_NAME":"Asset: nome file non valido","INVITATION_NOT_FOUND":"Invito non trovato","INVITATION_NOT_ACCESSIBLE":"Invito non accessibile","INVITATION_ALREADY_ACCEPTED":"Invito già accettato","INVITATION_ALREADY_REJECTED":"Invito già rifiutato","INVITATION_MISSING_DESTINATION_EMAIL":"Invito: email di destinazione mancante","INVITATION_DESTINATION_EMAIL_INVALID":"Invito: email di destinazione non valida","INVITATION_MISSING_TAG":"Invito: tag mancante","INVITATION_MISSING_PIN":"Invito: PIN mancante","INVITATION_INVALID_PIN":"Invito: PIN non valido","INVITATION_INVALID_TYPE":"Invito: tipo non valido","INVITATION_MISSING_DESTINATION_NAME":"Invito: nome destinatario mancante","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invito: tag e pin non possono essere cambiati","INVITATION_CANT_BE_CHANGED":"Invito: non può essere modificato","ACTIONLOG_INVALID_USER_ID":"ID utente non valido","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Data a partire da: formato non valido","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Data fino a: formato non valido","ACTIONLOG_INVALID_MEMORI_ID":"ID Memori non valido","CONSUMPTIONLOG_INVALID_TYPE":"Tipo di log non valido","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Data a partire da: formato non valido","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Data fino a: formato non valido","CONSUMPTIONLOG_INVALID_USER_ID":"ID utente non valido","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Memori ID non valido","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notifiche: Periodo di estrazione chatlog non valido","PROCESS_INVALID_TYPE":"Tipo di processo non valido","PROCESS_ALREADY_RUNNING":"Processo già in esecuzione","PROCESS_NOT_FOUND":"Processo non trovato","IMPORTCSV_MISSING_ROWS":"Importazione CSV: righe mancanti","IMPORTCSV_MISSING_CSV":"Importazione CSV: CSV mancante","IMPORTCSV_MISSING_SEPARATOR":"Importazione CSV: separatore mancante","IMPORTCSV_INVALID_SEPARATOR":"Importazione CSV: separatore non valido","IMPORTCSV_MISSING_HEADERS":"Importazione CSV: intestazioni mancanti","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Importazione CSV: separatore varianti titolo mancante","IMPORTCSV_INVALID_RECEIVER_ID":"Importazione CSV: ID receiver non valido","IMPORTCSV_INVALID_MEDIA_LINK":"Importazione CSV: link media non valido","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"Importazione CSV: titolo link non valido","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"Importazione CSV: encoding caratteri non rilevabile","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"Importazione CSV: impossibile importare in Memori segreti","IMPORTTXT_MISSING_ROWS":"Importazione TXT: righe mancanti","IMPORTTXT_INVALID_GRANULARITY":"Importazione TXT: granularità non valida","IMPORTTXT_INVALID_RECEIVER_ID":"Importazione TXT: ID receiver non valido","IMPORTTXT_INVALID_MEDIA_LINK":"Importazione TXT: link media non valido","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Importazione TXT: titolo link non valido","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"Importazione TXT: encoding caratteri non rilevabile","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"Importazione TXT: impossibile importare in Memori segreti","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Importazione TXT: limite importazione superato","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Importazione TXT: importazione su GPT-4 richiede API key","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Importazione TXT: importazione richiede un piano a pagamento","IMPORTTXT_BILLING_DENIED_PERMISSION":"Importazione TXT: non hai crediti sufficienti per l\'operazione","EXPORTCSV_MISSING_CSV_SPECS":"Esportazione CSV: specifiche CSV mancanti","EXPORTCSV_MISSING_SEPARATOR":"Esportazione CSV: separatore mancante","EXPORTCSV_INVALID_SEPARATOR":"Esportazione CSV: separatore non valido","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Esportazione CSV: separatore varianti titolo mancante","EXPORTCSV_MISSING_NEW_LINE_CHAR":"Esportazione CSV: carattere di nuova riga mancante","EXPORTCSV_INVALID_NEW_LINE_CHAR":"Esportazione CSV: carattere di nuova riga non valido","EXPORTCSV_MISSING_PASSWORD":"Esportazione CSV: password mancante","EXPORTJSONL_MISSING_JSONL_SPECS":"Esportazione JSONL: specifiche JSONL mancanti","EXPORTJSONL_MISSING_PLATFORM":"Esportazione JSONL: piattaforma mancante","EXPORTJSONL_INVALID_PLATFORM":"Esportazione JSONL: piattaforma non valida","EXPORTJSONL_MISSING_PASSWORD":"Esportazione JSONL: password mancante","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"Esportazione JSONL: esportazione richiede un piano a pagamento","ANALYSIS_MISSING_QUERY":"Analisi: query mancante","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analisi: impossibile analizzare Memori segreti","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analisi: corrispondenza query utente richiede Pensiero Profondo","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Assegnazione badge: credenziali errate o mancanti","BADGE_ASSIGNMENT_MISSING_REF_ID":"Assegnazione badge: ID ref mancante","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Assegnazione badge: esito non trovato","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Assegnazione badge: URL di asserzione mancante","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Assegnazione badge: URL badge mancante","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Assegnazione badge: URL issuer mancante","BADGE_ASSIGNMENT_INVALID_URL":"Assegnazione badge: URL non valido","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Assegnazione badge: destinatario mancante","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Assegnazione badge: tipo destinatario sconosciuto","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Assegnazione badge: identità destinatario mancante","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Assegnazione badge: tipo hash destinatario mancante","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Assegnazione badge: tipo hash destinatario sconosciuto","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Assegnazione badge: identità destinatario errata","BADGE_NOT_FOUND":"Badge non trovato","OUTCOME_NO_DCM_CONFIGURED":"Outcome: nessun DCM configurato","OUTCOME_USER_BADGES_DISABLED":"Outcome: badge utente disabilitati","COMPLETION_CONFIG_MISSING_NAME":"Configurazione completions: nome mancante","COMPLETION_CONFIG_MISSING_PROVIDER":"Configurazione completions: provider mancante","COMPLETION_CONFIG_MISSING_ENDPOINT":"Configurazione completions: endpoint mancante","COMPLETION_CONFIG_MISSING_API_KEY":"Configurazione completions: API key mancante","COMPLETION_CONFIG_MISSING_MODEL":"Configurazione completions: modello mancante","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Configurazione completions: almeno un tipo di completions deve essere specificato","COMPLETION_CONFIG_INVALID_NAME":"Configurazione completions: nome non valido","COMPLETION_CONFIG_INVALID_PURPOSE":"Configurazione completions: tipo di completions non valido","COMPLETION_CONFIG_INVALID_ENDPOINT":"Configurazione completions: endpoint non valido","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Configurazione completions: endpoint incoerente","COMPLETION_CONFIG_INVALID_PROVIDER":"Configurazione completions: provider non valido","COMPLETION_CONFIG_NOT_FOUND":"Configurazione completions: non trovata","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Configurazione completions: non accessibile","COMPLETION_CONFIG_NAME_RESERVED":"Configurazione completions: nome riservato","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Configurazione completions: nome già esistente","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Configurazione completions: cambiamento visibilità non consentito"}}');var nG;nG=JSON.parse('{"yes":"Yes","no":"No","confirm":"Confirm","apply":"Apply","cancel":"Cancel","show":"Show","hide":"Hide","send":"Send","close":"Close","edit":"Edit","delete":"Delete","loading":"Loading","expand":"Expand","collapse":"Collapse","fullscreenEnter":"Enter fullscreen","fullscreenExit":"Exit fullscreen","center":"Center","bottom":"Bottom","hidden":"Hidden","day":"Day","month":"Month","year":"Year","createdAt":"Creation date","selected":"Selected","page":"page","actions":"Actions","next":"Next","previous":"Previous","copy":"Copy","copyRawCode":"Copy raw code","copyToClipboard":"Copy to clipboard","showOriginalText":"Show original","showTranslatedText":"Show translation","exactPosition":"Exact position","uncertain":"Uncertain","question":"Question","nothingFound":"Nothing found","venue":"Venue","searchVenue":"Search venue...","memoriBlockedTitle":"Blocked","memoriBlockedUntil":"Memori blocked until {{date}}","memoriBlockedAnon":"Currently \\"{{name}}\\" can\'t answer, come back here on {{date}}","memoriBlockedReasonExceedChats":"because it has exceeded the monthly threshold of allowed chats.","memoriBlockedGiverHelper":"You can still manage it as administrator, but other users will not be able to interact with it.","generatedByAI":"Answer generated by AI, may occasionally generate incorrect informations","whyThisAnswer":"Why this answer?","whyThisAnswerHelper":"This answer was generated automatically by an artificial intelligence based on these verified contents.","completionsEnabled":"Advanced AI, can respond with automatically generated answers that may sometimes contain incorrect information","completionProviderDown":"This Twin is integrated with a generative AI from {{provider}}, but it is currently unavailable. Try again later.","completionProviderFallbackName":"an external provider","completionProviderCheckStatusPage":"Check status page","boardOfExperts":"Board of experts","birthDate":"Birth date","birthDateHelper":"We ask for your birth date only to enable or disable functionalities that have age restrictions","underage":"You must be at least {{age}} years old to sign up.","underageTwinSession":"You must be at least {{age}} years old to interact with this Twin.","errorFetchingSession":"Error during session loading","errorGettingReferralURL":"Error during referral loading","errorReopeningSession":"Error during session reopening","ageVerification":"Age verification","ageVerificationText":"To interact with this Twin, you must be at least {{minAge}} years old.","nsfw":"NSFW: This Twin contains adult contents","deepThought":"Deep Thought","deepThoughtHelper":"Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together. Allow the twin\'s author to contact you for commercial offers regarding products you have shown interest in.","deepThoughtDisclaimerTitle":"Deep Thought enabled","deepThoughtDisclaimer":"Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together.","deepThoughtPreDisclaimerUnlogged":"Log in to enable Deep Thought.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought is disabled since you didn\'t consent its usage, you can change this any time in your account settings.","notEnoughCredits":"The author of this Twin does not have enough credits to answer your question.","knownFacts":{"title":"Known facts","description":"Details of the information shared between you and {{memoriName}}","type":"Type","typeShortTerm":"Short term","typeLongTerm":"Long term","typeHelper":"Types:\\n- Short Term: this Known Fact is always used during conversations\\n- Long Term: this Known Fact is used during conversations only if relevant to the current question","text":"Text","deleteSuccess":"Known fact deleted","deleteConfirmTitle":"Delete known fact","deleteConfirmMessage":"Are you sure you want to delete this known fact?","deleteSelectedConfirmTitle":"Delete selected known facts","deleteSelectedConfirmMessage":"Are you sure you want to delete the selected known facts?"},"auth":{"title":"Authentication","useRecoveryTokens":"Use recovery tokens","tokens":"Tokens","addToken":"Add token","usePassword":"Use password","atLeast":"At least"},"widget":{"instruct":"Instruct","test":"Test","sound":"Sound","position":"Position preferences","settings":"Settings","share":"Share","sendOnKeypress":"Hit Enter to send","sendOnClick":"Click on Submit","boardOfExperts":"Board of experts","showExpertsInTheBoard":"Show experts in this board","expertsInTheBoard":"Experts in this board","goToIntegrationsToCustomizeAvatar":"To customize the avatar, go to Share and customize the public page"},"write_and_speak":{"micButtonPopover":"Click the button to speak","micButtonPopoverListening":"Click the button to stop speak","pageInstructExplanation":"To teach me new things click on the INSTRUCT ME button to get started","pageTryMeExplanation":"To talk to me click on the START button to get started","instructButton":"INSTRUCT ME","tryMeButton":"START","resumeButton":"RESUME","chatHistory":"Chat history","exportChatHistory":"Export chat history","exportChatHistoryMessage":"Do you want to export chat history?","chatBotButtonText":"CLICK HERE TO OPEN CHATBOT","conversationStartedLabel":"Conversation started on","settingsHeaderLabel":"Setup here if you want to set the memori as continuous speech, and change the silence seconds if you want to customize them.","continuousSpeechLabel":"Continuous speech","holdToSpeak":"Hold to speak","releaseToEndListening":"Release to end listening","pressAndHoldToSpeak":"Press and hold to speak","microphoneMode":"Microphone mode","hideEmissionsLabel":"Hide text emitted by the Twin","secondsLabel":"Set seconds","controlsPosition":"Controls position","avatarControls":"Avatar controls","height":"Height","depth":"Depth","avatarType":"Avatar type","suggestions":"Use the arrow keys to adjust the avatar height\\nUse +/- to adjust the avatar depth","blob":"Blob","avatar3d":"3D Avatar","zoomed":"Zoomed","normal":"Normal","far":"Far","enablePositionControls":"Enable position controls","tryMeHeaderLabel":"TRY","unknownPosition":"Unknown position","fieldPlace":"Write the place (eg \'Milano\')","showMapLinkFor":"Show the position on the map","useMyPosition":"Use my position","myPosition":"Your position","updatingPosition":"Updating position...","placeNotFound":"Place not found!","requirePosition":"Insert your position before start","requirePositionHelp":"To talk to {{name}} you have to decide whether to provide your position or not. This is because different answers that it can provide you may depend on where you are.","dontWantToProvidePosition":"I don\'t want to provide my position","attachmentsLabel":"Enrich your message","iWantToTalkToIn":"I want to talk to {{name}} in"},"media":{"title":"Title","editAttributes":"Edit media attributes","uploadMimeTypeNotAllowed":"The file type is not allowed","uploadSizeLimitMessage":"The uploaded size is too big (max {{size}}MB)","uploadWrongResolutionMessage":"The resolution must be {{width}}x{{height}} pixel","memoriNameAlreadyUsed":"You already have a Twin with this name","uploadHelperImages":"Upload a file with extension png, jpg, jpeg or gif, and having at maximum a size of {{size}}MB","uploadHelper":"Upload a file having at maximum a size of {{size}}MB","uploadError":"Upload failed","square":"square","scaleRatio":"Scale ratio","addMediaLabel":"Add a media","insertThisMediaMsg":"Insert these media","mediaUploadMessage":"Click to load a new media","addLinkLabel":"Add a link","linkKey":"URL","linkValue":"Link title","insertThisLink":"Insert a link to {{url}} with title {{title}}"},"gamification":{"level":"Level","points":"points","memoriReachedLevel":"became more evolved and reached level","levelGoToStatistics":"{{memori}} is at level {{level}} with {{points}} points. Click to go to statistics.","congratulationsNewLevel":"Congratulations, you have reached a new level!","congratulationsNewLevelDescription":"Your Memori became more evolved with {{points}} points, look at the","statistics":"statistics"},"login":{"login":"Login","logout":"Logout","user":"User","loggedDrawerTitle":"Hi, {{name}}!","loginDrawerTitle":"Login","signupDrawerTitle":"Sign up","newUserSignUp":"New user?","signUp":"Sign up!","alreadyHaveAnAccount":"Already have an account?","backToLogin":"Back to login","registrationDisabled":"Registration is disabled","contactAdmin":"Contact the administrator to request access","userNameOrEmail":"Username or email","email":"Email","emailFormatError":"Please, insert a valid email","username":"Username","usernameContainsReservedWord":"Username contains a reserved word, please choose another one","usernameFormatError":"Username must be at least 3 characters long and contain only letters, numbers and _","otpCode":"Verification code","resendVerificationCode":"Resend code","resentVerificationCode":"Confirmation code sent! Please check your email.","password":"Password","newPassword":"New password","confirmPassword":"Confirm Password","currentPassword":"Current password","passwordMatchingError":"Passwords do not match.","passwordFormatError":"Password must be at least 8 characters long and contain at least a number, an upper case letter, a lower case letter and a symbol","pwdWeak":"Weak","pwdAcceptable":"Acceptable","pwdStrong":"Strong","mustChangePassword":"You must change your password","passwordChange":"Change password","emailChange":"Change email","avatarChange":"Change avatar","underage":"You must be at least {{age}} years old to sign up.","optional":"Optional","birthDate":"Birth date","birthDateHelper":"We ask for your birth date only to enable or disable functionalities that have age restrictions","missingData":"Missing informations","missingDataHelper":"We know that this is a bit annoying, but we need some more informations to complete your registration.","goToAccountToChangeYourPreferences":"You can change your choice at any time from your Account page.","deepThoughtExplaination":"Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together. Allow the twin\'s author to contact you for commercial offers regarding products you have shown interest in.","tnCAndPPAcceptedHelper":"Since your last login, T&C and Privacy Policy have changed. Please accept them, otherwise you won\'t be able to make changes to your Twins. You can always delete your account in your user profile page.","privacyLabel":"I have read and accepted the","privacyAndCookiePolicy":"Privacy e Cookie Policy","and":"and","termsOfService":"Terms of Service","pAndCUAccepted":"I accept the terms of service about Deep Thought","editAccount":"Edit account","save":"Save"},"success":"Success","Error":"Error","internal server error":"Oupsie, sorry... Something went wrong on the server","error":"Error","error.loading":"Error while loading content.","error.generic":"Oupsie, sorry... something went wrong.","error.serverNotResponding":"We are doing maintenance or releasing updates. Please try again later.","error.notFound":"Oupsie, we didn\'t find the page you were looking for.","error.goBackTo":"You can try to go back to the","error.reloadPage":"Reload the page","error.tryAgain":"Try again","error.unauthorized":"You are unauthorized to view this content.","error.unprocessableEntity":"Error while processing the request. Check the data you entered.","errors":{"TENANT_NOT_FOUND":"Tenant not found","TENANT_REGISTRATION_DISABLED":"Registration on this platform is disabled","TENANT_MISSING_NAME":"Tenant: name missing","TENANT_MAX_USERS_REACHED":"Maximum number of users reached","TENANT_MAX_ADMINS_REACHED":"Maximum number of admin users reached","TENANT_ALREADY_EXISTS":"Tenant already exists","TENANT_MISSING_DESCRIPTION":"Tenant: description missing","TENANT_CANT_SET_COMPLETION_PROVIDER":"Tenant: can\'t set completion provider","USER_NOT_CONFIRMED":"User still not confirmed","USER_NOT_FOUND":"User not found","USER_OR_PASSWORD_INVALID":"Invalid user or password","USER_MUST_CHANGE_PASSWORD":"You must change your password","USER_MUST_ENTER_VERIFICATION_CODE":"You must enter the verification code","USER_MISSING_TENANT":"User: missing tenant","USER_MISSING_NAME":"User: name is missing","USER_MISSING_PASSWORD":"User: password missing","USER_MISSING_EMAIL":"User: Missing email","USER_MISSING_VERIFICATION_CODE":"User: Missing verification code","USER_NAME_ALREADY_USED":"User name already in use","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"The password does not meet the security rules","USER_EMAIL_ALREADY_USED":"Email already in use","USER_EMAIL_INVALID":"Invalid email","USER_VERIFICATION_CODE_INVALID":"Invalid verification code","USER_MISSING_NAME_OR_EMAIL":"Missing username or email","USER_NAME_INVALID":"Invalid user name","USER_HAS_ONE_OR_MORE_MEMORI":"The user has one or more memories","USER_MISSING_NEW_PASSWORD":"User: new password missing","USER_NOTHING_TO_DO":"Nothing to do","USER_CANT_CREATE_MEMORI":"User not allowed to create Memori","USER_MAX_MEMORI_REACHED":"Maximum number of Memori reached","USER_TOO_MANY_ATTEMPTS":"Too many attempts","USER_MUST_ACCEPT_TNC_AND_PP":"You must accept the terms and conditions","USER_BIRTH_DATE_CANT_BE_CHANGED":"Date of birth cannot be changed","USER_CANT_SET_COMPLETION_PROVIDER":"User: not allowed to manage completion provider","USER_CANT_ENABLE_DEEP_THOUGHT":"User: not enabled to manage Deep Thought","USER_CANT_ENABLE_DCM_INTEGRATION":"User: not enabled to manage DCM integration","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"User: not allowed to manage chaining or expert group","USER_CREATION_BILLING_DENIED_PERMISSION":"You don\'t have enough credits to create a Twin","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"The user has one or more completion configurations","USER_CANT_BE_DELETED":"User can\'t be deleted","MEMORI_NOT_FOUND":"Memori not found","MEMORI_NOT_ACCESSIBLE":"Memori not accessible","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Only owner can change tag or pin","SESSION_NOT_FOUND":"Session not found","SESSION_IS_NOT_ADMINISTRATIVE":"Non-administrative session","SESSION_EXPIRED":"Session expired","MEMORI_MISSING_CONFIGURATION":"Twin: missing configuration","MEMORI_CONFIGURATION_NOT_FOUND":"Twin: configuration not found","MEMORI_INVALID_PRIVACY_TYPE":"Twin: invalid privacy type","MEMORI_MISSING_PASSWORD":"Twin: missing password","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Twin: total number of invalid recovery tokens","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Twin: minimum number of invalid recovery tokens","MEMORI_INVALID_VOICE_TYPE":"Twin: invalid voice type","MEMORI_MISSING_NAME":"Twin: missing name","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Twin: missing password or recovery token","MEMORI_INVALID_ID":"Twin: invalid ID","MEMORI_NAME_ALREADY_USED":"Twin name already in use","MEMORI_INVALID_PIN":"Twin: Invalid PIN","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Twin: TAG and PIN change require separate operations","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Twin: no password required when public","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Deep Thought requires completions to be enabled","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"The expert group requires completions to be enabled","MEMORI_INVALID_COMPLETION_CONFIG":"Twin: invalid completions configuration","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Transfer: missing destination user","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Transfer: invalid destination user ID","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Transfer: invalid destination user data","MEMORI_TRANSFER_NOTHING_TO_DO":"Transfer: nothing to do","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Memories: configuration cannot be changed","MEMORI_MISSING_NEW_PASSWORD":"Memories: new password missing","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"Feature requires subscription","INTEGRATION_NOT_FOUND":"Integration not found","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Invalid date from format","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Invalid date to format","INTEGRATION_INVALID_TYPE":"Invalid integration type","INTEGRATION_ALREADY_EXISTS":"Integration already exists","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Non-public memories cannot be integrated","INTEGRATION_MISSING_INVOCATION_TEXT":"Integration: missing invocation text","INTEGRATION_MISSING_DEVICE_EMAILS":"Integration: missing device email","INTEGRATION_MEMORI_IS_EMPTY":"Empty memories cannot be integrated","INTEGRATION_MISSING_PRIVACY_POLICY":"Integration: privacy policy missing","INTEGRATION_MISSING_CATEGORY":"Integration category missing","INTEGRATION_MISSING_DESCRIPTION":"Missing integration description","INTEGRATION_INVALID_INVOCATION_TEXT":"Invalid invocation text","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home no more available","UPLOAD_REQUIRES_MULTIPART_ENCODING":"Upload requires multipart encoding","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Upload: missing content type boundary","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: maximum size exceeded","UPLOAD_FILE_IS_EMPTY":"Upload: empty file","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Upload: invalid file type or signature","UPLOAD_MISSING_FILE_NAME":"Upload: missing file name","UPLOAD_INVALID_MEMORY_ID":"Upload: Invalid content ID","UPLOAD_MISSING_FILE_CONTENT":"Upload: Missing file content","ASSET_NOT_FOUND":"Asset not found","ASSET_NOT_ACCESSIBLE":"Asset not accessible","ASSET_MISSING_SESSION_ID":"Asset: missing session ID","ASSET_INVALID_FILE_NAME":"Asset: invalid file name","INVITATION_NOT_FOUND":"Invitation not found","INVITATION_NOT_ACCESSIBLE":"Invitation not accessible","INVITATION_ALREADY_ACCEPTED":"Invitation already accepted","INVITATION_ALREADY_REJECTED":"Invitation already rejected","INVITATION_MISSING_DESTINATION_EMAIL":"Invitation: missing destination email","INVITATION_DESTINATION_EMAIL_INVALID":"Invitation: destination email invalid","INVITATION_MISSING_TAG":"Invitation: missing tag","INVITATION_MISSING_PIN":"Invitation: PIN missing","INVITATION_INVALID_PIN":"Invitation: invalid PIN","INVITATION_INVALID_TYPE":"Invitation: invalid type","INVITATION_MISSING_DESTINATION_NAME":"Invitation: destination name missing","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invitation: tag and pin can\'t be changed","INVITATION_CANT_BE_CHANGED":"Intation: can\'t be changed","ACTIONLOG_INVALID_USER_ID":"Invalid user ID","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Date from: invalid format","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Date to: invalid format","ACTIONLOG_INVALID_MEMORI_ID":"Invalid Memori ID","CONSUMPTIONLOG_INVALID_TYPE":"Invalid log type","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Date from: invalid format","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Date to: invalid format","CONSUMPTIONLOG_INVALID_USER_ID":"Invalid user ID","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Invalid Memori ID","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notifications: Invalid chat log extraction period","PROCESS_INVALID_TYPE":"Invalid process type","PROCESS_ALREADY_RUNNING":"Process already running","PROCESS_NOT_FOUND":"Process not found","IMPORTCSV_MISSING_ROWS":"CSV import: missing rows","IMPORTCSV_MISSING_CSV":"CSV Import: Missing CSV","IMPORTCSV_MISSING_SEPARATOR":"CSV import: missing separator","IMPORTCSV_INVALID_SEPARATOR":"CSV import: invalid separator","IMPORTCSV_MISSING_HEADERS":"CSV import: missing headers","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV import: missing title variant separator","IMPORTCSV_INVALID_RECEIVER_ID":"CSV import: invalid receiver ID","IMPORTCSV_INVALID_MEDIA_LINK":"CSV import: invalid media link","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"CSV import: invalid link title","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"CSV import: undetectable character encoding","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"CSV Import: Cannot import to Secret Memories","IMPORTTXT_MISSING_ROWS":"Importing TXT: missing rows","IMPORTTXT_INVALID_GRANULARITY":"Import TXT: invalid granularity","IMPORTTXT_INVALID_RECEIVER_ID":"Import TXT: invalid receiver ID","IMPORTTXT_INVALID_MEDIA_LINK":"Import TXT: invalid media link","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Import TXT: invalid link title","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"TXT import: undetectable character encoding","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"TXT Import: Cannot import to Secret Memories","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Import TXT: import limit exceeded","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Import TXT: import on GPT-4 requires API key","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Import TXT: Import requires a paying plan","IMPORTTXT_BILLING_DENIED_PERMISSION":"Import TXT: you don\'t have enough credits for the operation","EXPORTCSV_MISSING_CSV_SPECS":"CSV export: missing CSV specifications","EXPORTCSV_MISSING_SEPARATOR":"CSV export: missing separator","EXPORTCSV_INVALID_SEPARATOR":"CSV export: invalid separator","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV export: missing title variant separator","EXPORTCSV_MISSING_NEW_LINE_CHAR":"CSV export: missing newline character","EXPORTCSV_INVALID_NEW_LINE_CHAR":"CSV export: invalid newline character","EXPORTCSV_MISSING_PASSWORD":"CSV export: missing password","EXPORTJSONL_MISSING_JSONL_SPECS":"JSONL export: missing JSONL specifications","EXPORTJSONL_MISSING_PLATFORM":"JSONL export: missing platform","EXPORTJSONL_INVALID_PLATFORM":"JSONL export: invalid platform","EXPORTJSONL_MISSING_PASSWORD":"JSONL export: missing password","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"JSONL Export: Export requires a paid plan","ANALYSIS_MISSING_QUERY":"Analysis: missing query","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analysis: Unable to analyze Secret Memories","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analysis: matching user query requires Deep Thinking","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Badge assignment: incorrect or missing credentials","BADGE_ASSIGNMENT_MISSING_REF_ID":"Badge assignment: ref ID missing","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Badge assignment: result not found","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Badge assignment: Missing assertion URL","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Badge Assignment: Missing Badge URL","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Badge assignment: missing issuer URL","BADGE_ASSIGNMENT_INVALID_URL":"Badge assignment: Invalid URL","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Badge assignment: missing recipient","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Badge assignment: unknown recipient type","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Badge assignment: missing recipient identity","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Badge assignment: missing recipient hash type","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Badge assignment: recipient hash type unknown","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Badge assignment: incorrect recipient identity","BADGE_NOT_FOUND":"Badge not found","OUTCOME_NO_DCM_CONFIGURED":"Outcome: no DCM configured","OUTCOME_USER_BADGES_DISABLED":"Outcome: user badges disabled","COMPLETION_CONFIG_MISSING_NAME":"Completions configuration: missing name","COMPLETION_CONFIG_MISSING_PROVIDER":"Completions configuration: missing provider","COMPLETION_CONFIG_MISSING_ENDPOINT":"Completions configuration: missing endpoint","COMPLETION_CONFIG_MISSING_API_KEY":"Completions configuration: missing API key","COMPLETION_CONFIG_MISSING_MODEL":"Completions configuration: missing model","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Completions configuration: at least one completions type must be specified","COMPLETION_CONFIG_INVALID_NAME":"Completions configuration: invalid name","COMPLETION_CONFIG_INVALID_PURPOSE":"Completions configuration: invalid completions type","COMPLETION_CONFIG_INVALID_ENDPOINT":"Completions configuration: invalid endpoint","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Completions configuration: inconsistent endpoint","COMPLETION_CONFIG_INVALID_PROVIDER":"Completions configuration: invalid provider","COMPLETION_CONFIG_NOT_FOUND":"Completions configuration: not found","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Completions configuration: not accessible","COMPLETION_CONFIG_NAME_RESERVED":"Completions configuration: name reserved","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Completions configuration: name already exists","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Completions configuration: visibility change not allowed"}}');var rG;rG=JSON.parse('{"yes":"Oui","no":"Non","confirm":"Confirmer","apply":"Appliquer","cancel":"Annuler","show":"Montrer","hide":"Cacher","send":"Envoyer","close":"Fermer","edit":"Modifier","delete":"Supprimer","loading":"Chargement","expand":"Développer","collapse":"Effondrement","fullscreenEnter":"Entrez en plein écran","fullscreenExit":"Quitter le plein écran","center":"Centre","bottom":"Bas","hidden":"Caché","day":"Jour","month":"Mois","year":"Année","createdAt":"Date de création","selected":"Choisi","page":"page","actions":"Actes","next":"Suivant","previous":"Précédent","copy":"Copie","copyRawCode":"Copier le code brut","copyToClipboard":"Copier dans le presse-papier","showOriginalText":"Afficher l\'original","showTranslatedText":"Afficher la traduction","exactPosition":"Position exacte","uncertain":"Incertain","question":"Question","nothingFound":"Rien trouvé","venue":"Lieu","searchVenue":"Rechercher un lieu...","memoriBlockedTitle":"Bloqué","memoriBlockedUntil":"Memori bloqué jusqu\'à {{date}}","memoriBlockedAnon":"Actuellement \\"{{name}}\\"Je ne peux pas répondre, reviens ici {{date}}","memoriBlockedReasonExceedChats":"car il a dépassé le seuil mensuel de chats autorisés.","memoriBlockedGiverHelper":"Vous pouvez toujours le gérer en tant qu\'administrateur, mais les autres utilisateurs ne pourront pas interagir avec lui.","generatedByAI":"Réponse générée par l\'IA, peut occasionnellement générer des informations incorrectes","whyThisAnswer":"Pourquoi cette réponse ?","whyThisAnswerHelper":"Cette réponse a été générée automatiquement par une intelligence artificielle basée sur ces contenus vérifiés.","completionsEnabled":"L\'IA avancée peut répondre avec des réponses générées automatiquement qui peuvent parfois contenir des informations incorrectes","completionProviderDown":"Ce Twin est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. ","completionProviderFallbackName":"un prestataire externe","completionProviderCheckStatusPage":"Vérifier la page d\'état","boardOfExperts":"Conseil d\'experts","birthDate":"Date de naissance","birthDateHelper":"Nous demandons votre date de naissance uniquement pour activer ou désactiver les fonctionnalités qui ont des restrictions d\'âge","underage":"Vous devez être au moins {{age}} ans pour s\'inscrire.","underageTwinSession":"Vous devez être au moins {{age}} ans pour interagir avec ce Twin.","errorFetchingSession":"Erreur lors du chargement de la session","errorGettingReferralURL":"Erreur lors du chargement du référent","errorReopeningSession":"Erreur lors de la re-ouverture de la session","ageVerification":"Vérification de l\'âge","ageVerificationText":"Pour interagir avec ce Twin, vous devez être au minimum {{minAge}} ans.","nsfw":"NSFW : Ce jumeau contient du contenu pour adultes","deepThought":"Pensée profonde","deepThoughtHelper":"Deep Thought est une fonctionnalité avancée de l\'IA qui vous permettra d\'exploiter pleinement vos conversations en les gardant une trace. ","deepThoughtDisclaimerTitle":"Pensée profonde activée","deepThoughtDisclaimer":"Deep Thought est une fonctionnalité avancée de l\'IA qui vous permettra d\'exploiter pleinement vos conversations en les gardant une trace. ","deepThoughtPreDisclaimerUnlogged":"Connectez-vous pour activer Deep Thought.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought est désactivé car vous n\'avez pas consenti à son utilisation, vous pouvez le modifier à tout moment dans les paramètres de votre compte.","notEnoughCredits":"L\'auteur de ce Twin n\'a pas suffisamment de crédits pour répondre à votre question.","knownFacts":{"title":"Faits connus","description":"Détails des informations partagées entre vous et {{memoriName}}","type":"Taper","typeShortTerm":"Court terme","typeLongTerm":"Long terme","typeHelper":"Types :\\n","text":"Texte","deleteSuccess":"Fait connu supprimé","deleteConfirmTitle":"Supprimer un fait connu","deleteConfirmMessage":"Êtes-vous sûr de vouloir supprimer ce fait connu ?","deleteSelectedConfirmTitle":"Supprimer les faits connus sélectionnés","deleteSelectedConfirmMessage":"Etes-vous sûr de vouloir supprimer les faits connus sélectionnés ?"},"auth":{"title":"Authentification","useRecoveryTokens":"Utiliser des jetons de récupération","tokens":"Jetons","addToken":"Ajouter un jeton","usePassword":"Utiliser le mot de passe","atLeast":"Au moins"},"widget":{"instruct":"Instruire","test":"Test","sound":"Son","position":"Préférences de position","settings":"Paramètres","share":"Partager","sendOnKeypress":"Appuyez sur Entrée pour envoyer","sendOnClick":"Cliquez sur Soumettre","boardOfExperts":"Conseil d\'experts","showExpertsInTheBoard":"Afficher les experts dans ce forum","expertsInTheBoard":"Experts dans ce forum","goToIntegrationsToCustomizeAvatar":"Pour personnaliser l\'avatar, allez dans Partager et personnalisez la page publique"},"write_and_speak":{"micButtonPopover":"Cliquez sur le bouton pour parler","micButtonPopoverListening":"Cliquez sur le bouton pour arrêter de parler","pageInstructExplanation":"Pour m\'apprendre de nouvelles choses, cliquez sur le bouton INSTRUCTEZ-MOI pour commencer","pageTryMeExplanation":"Pour me parler, cliquez sur le bouton START pour commencer","instructButton":"INSTRUCTEZ-MOI","tryMeButton":"COMMENCER","chatHistory":"Historique des discussions","exportChatHistory":"Exporter l\'historique des discussions","exportChatHistoryMessage":"Voulez-vous exporter l’historique des discussions ?","chatBotButtonText":"CLIQUEZ ICI POUR OUVRIR LE CHATBOT","conversationStartedLabel":"La conversation a commencé le","settingsHeaderLabel":"Configurez ici si vous souhaitez définir la mémoire comme parole continue et modifiez les secondes de silence si vous souhaitez les personnaliser.","continuousSpeechLabel":"Discours continu","holdToSpeak":"Attends pour parler","releaseToEndListening":"Relâcher pour terminer l\'écoute","pressAndHoldToSpeak":"Appuyez et maintenez pour parler","microphoneMode":"Mode micro","hideEmissionsLabel":"Masquer le texte émis par le Twin","secondsLabel":"Régler les secondes","controlsPosition":"Position des commandes","tryMeHeaderLabel":"ESSAYER","unknownPosition":"Position inconnue","fieldPlace":"Écrivez le lieu (par exemple « Milano »)","showMapLinkFor":"Afficher la position sur la carte","useMyPosition":"Utiliser ma position","myPosition":"Votre poste","updatingPosition":"Mise à jour du poste...","placeNotFound":"Lieu introuvable !","requirePosition":"Insérez votre position avant de commencer","requirePositionHelp":"Pour parler à {{name}} vous devez décider si vous souhaitez ou non fournir votre poste. ","dontWantToProvidePosition":"Je ne veux pas donner ma position","attachmentsLabel":"Enrichissez votre message","iWantToTalkToIn":"je veux parler à {{name}} dans"},"media":{"title":"Titre","editAttributes":"Modifier les attributs du média","uploadMimeTypeNotAllowed":"Le type de fichier n\'est pas autorisé","uploadSizeLimitMessage":"La taille téléchargée est trop grande (max {{size}}Mo)","uploadWrongResolutionMessage":"La résolution doit être {{width}}x{{height}} pixels","memoriNameAlreadyUsed":"Vous avez déjà un jumeau portant ce nom","uploadHelperImages":"Téléchargez un fichier avec l\'extension png, jpg, jpeg ou gif, et ayant au maximum une taille de {{size}}Mo","uploadHelper":"Téléchargez un fichier ayant au maximum une taille de {{size}}Mo","uploadError":"Échec du téléchargement","square":"carré","scaleRatio":"Rapport d\'échelle","addMediaLabel":"Ajouter un média","insertThisMediaMsg":"Insérez ces médias","mediaUploadMessage":"Cliquez pour charger un nouveau média","addLinkLabel":"Ajouter un lien","linkKey":"URL","linkValue":"Titre du lien","insertThisLink":"Insérer un lien vers {{url}} avec titre {{title}}"},"gamification":{"level":"Niveau","points":"points","memoriReachedLevel":"est devenu plus évolué et a atteint le niveau","levelGoToStatistics":"{{memori}} est au niveau {{level}} avec {{points}} points. ","congratulationsNewLevel":"Félicitations, vous avez atteint un nouveau niveau !","congratulationsNewLevelDescription":"Votre Memori est devenu plus évolué avec {{points}} points, regardez le","statistics":"statistiques"},"login":{"login":"Se connecter","logout":"Déconnexion","user":"Utilisateur","loggedDrawerTitle":"Salut, {{name}}!","loginDrawerTitle":"Se connecter","signupDrawerTitle":"S\'inscrire","newUserSignUp":"Nouvel utilisateur ?","signUp":"S\'inscrire!","alreadyHaveAnAccount":"Vous avez déjà un compte ?","backToLogin":"Retour à la connexion","registrationDisabled":"L\'inscription est désactivée","contactAdmin":"Contacter l\'administrateur pour demander l\'accès","userNameOrEmail":"Nom d\'utilisateur ou email","email":"E-mail","emailFormatError":"Veuillez insérer un email valide","username":"Nom d\'utilisateur","usernameContainsReservedWord":"Le nom d\'utilisateur contient un mot réservé, veuillez en choisir un autre","usernameFormatError":"Le nom d\'utilisateur doit comporter au moins 3 caractères et contenir uniquement des lettres, des chiffres et _","otpCode":"Le code de vérification","resendVerificationCode":"Renvoyer le code","resentVerificationCode":"Code de confirmation envoyé ! ","password":"Mot de passe","newPassword":"Nouveau mot de passe","confirmPassword":"Confirmez le mot de passe","currentPassword":"Mot de passe actuel","passwordMatchingError":"Les mots de passe ne correspondent pas.","passwordFormatError":"Le mot de passe doit comporter au moins 8 caractères et contenir au moins un chiffre, une lettre majuscule, une lettre minuscule et un symbole.","pwdWeak":"Faible","pwdAcceptable":"Acceptable","pwdStrong":"Fort","mustChangePassword":"Vous devez changer votre mot de passe","passwordChange":"Changer le mot de passe","emailChange":"Changer d\'e-mail","avatarChange":"Changer d\'avatar","underage":"Vous devez être au moins {{age}} ans pour s\'inscrire.","optional":"Facultatif","birthDate":"Date de naissance","birthDateHelper":"Nous demandons votre date de naissance uniquement pour activer ou désactiver les fonctionnalités qui ont des restrictions d\'âge","missingData":"Informations manquantes","missingDataHelper":"Nous savons que c\'est un peu ennuyeux, mais nous avons besoin de plus d\'informations pour finaliser votre inscription.","goToAccountToChangeYourPreferences":"Vous pouvez modifier votre choix à tout moment depuis la page de votre compte.","deepThoughtExplaination":"Deep Thought est une fonctionnalité avancée de l\'IA qui vous permettra d\'exploiter pleinement vos conversations en les gardant une trace. ","tnCAndPPAcceptedHelper":"Depuis votre dernière connexion, les conditions générales et la politique de confidentialité ont changé. ","privacyLabel":"J\'ai lu et accepté le","privacyAndCookiePolicy":"Politique de confidentialité et de cookies","and":"et","termsOfService":"Conditions d\'utilisation","pAndCUAccepted":"J\'accepte les conditions d\'utilisation de Deep Thought","editAccount":"Modifier le compte","save":"Sauvegarder"},"success":"Succès","Error":"Erreur","internal server error":"Oupsie, désolé... Quelque chose s\'est mal passé sur le serveur","error":"Erreur","error.loading":"Erreur lors du chargement du contenu.","error.generic":"Oupsie, désolé... quelque chose s\'est mal passé.","error.serverNotResponding":"Nous effectuons une maintenance ou publions des mises à jour. ","error.notFound":"Oupsie, nous n\'avons pas trouvé la page que vous cherchiez.","error.goBackTo":"Vous pouvez essayer de revenir au","error.reloadPage":"Recharger la page","error.tryAgain":"Essayer à nouveau","error.unauthorized":"Vous n\'êtes pas autorisé à consulter ce contenu.","error.unprocessableEntity":"Erreur lors du traitement de la demande. ","errors":{"TENANT_NOT_FOUND":"Locataire introuvable","TENANT_REGISTRATION_DISABLED":"L\'inscription sur cette plateforme est désactivée","TENANT_MISSING_NAME":"Locataire : nom manquant","TENANT_MAX_USERS_REACHED":"Nombre maximum d\'utilisateurs atteint","TENANT_MAX_ADMINS_REACHED":"Nombre maximum d\'utilisateurs administrateurs atteint","TENANT_ALREADY_EXISTS":"Le locataire existe déjà","TENANT_MISSING_DESCRIPTION":"Locataire : description manquante","TENANT_CANT_SET_COMPLETION_PROVIDER":"Locataire : impossible de définir le fournisseur de complétion","USER_NOT_CONFIRMED":"L\'utilisateur n\'est toujours pas confirmé","USER_NOT_FOUND":"Utilisateur introuvable","USER_OR_PASSWORD_INVALID":"Utilisateur ou mot de passe invalide","USER_MUST_CHANGE_PASSWORD":"Vous devez changer votre mot de passe","USER_MUST_ENTER_VERIFICATION_CODE":"Vous devez entrer le code de vérification","USER_MISSING_TENANT":"Utilisateur : locataire manquant","USER_MISSING_NAME":"Utilisateur : le nom est manquant","USER_MISSING_PASSWORD":"Utilisateur : mot de passe manquant","USER_MISSING_EMAIL":"Utilisateur : E-mail manquant","USER_MISSING_VERIFICATION_CODE":"Utilisateur : Code de vérification manquant","USER_NAME_ALREADY_USED":"Nom d\'utilisateur déjà utilisé","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"Le mot de passe ne répond pas aux règles de sécurité","USER_EMAIL_ALREADY_USED":"E-mail déjà utilisé","USER_EMAIL_INVALID":"E-mail invalide","USER_VERIFICATION_CODE_INVALID":"Code de vérification invalide","USER_MISSING_NAME_OR_EMAIL":"Nom d\'utilisateur ou e-mail manquant","USER_NAME_INVALID":"Nom d\'utilisateur invalide","USER_HAS_ONE_OR_MORE_MEMORI":"L\'utilisateur possède une ou plusieurs mémoires","USER_MISSING_NEW_PASSWORD":"Utilisateur : nouveau mot de passe manquant","USER_NOTHING_TO_DO":"Rien à faire","USER_CANT_CREATE_MEMORI":"L\'utilisateur n\'est pas autorisé à créer des Memori","USER_MAX_MEMORI_REACHED":"Nombre maximum de Memori atteint","USER_TOO_MANY_ATTEMPTS":"Trop de tentatives","USER_MUST_ACCEPT_TNC_AND_PP":"Vous devez accepter les termes et conditions","USER_BIRTH_DATE_CANT_BE_CHANGED":"La date de naissance ne peut pas être modifiée","USER_CANT_SET_COMPLETION_PROVIDER":"Utilisateur : non autorisé à gérer le fournisseur de complétion","USER_CANT_ENABLE_DEEP_THOUGHT":"Utilisateur : non autorisé à gérer Deep Thought","USER_CANT_ENABLE_DCM_INTEGRATION":"Utilisateur : non autorisé à gérer l\'intégration DCM","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Utilisateur : non autorisé à gérer des chaînages ou des groupes d\'experts","USER_CREATION_BILLING_DENIED_PERMISSION":"Vous n\'avez pas assez de crédits pour créer un Twin","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"L\'utilisateur dispose d\'une ou plusieurs configurations de complétion","USER_CANT_BE_DELETED":"L\'utilisateur ne peut pas être supprimé","MEMORI_NOT_FOUND":"Mémoire introuvable","MEMORI_NOT_ACCESSIBLE":"Mémoires non accessibles","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Seul le propriétaire peut modifier le tag ou le code PIN","SESSION_NOT_FOUND":"Séance introuvable","SESSION_IS_NOT_ADMINISTRATIVE":"Séance non administrative","SESSION_EXPIRED":"Session expirée","MEMORI_MISSING_CONFIGURATION":"Twin : configuration manquante","MEMORI_CONFIGURATION_NOT_FOUND":"Twin : configuration introuvable","MEMORI_INVALID_PRIVACY_TYPE":"Twin : type de confidentialité non valide","MEMORI_MISSING_PASSWORD":"Twin : mot de passe manquant","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Twin : nombre total de jetons de récupération invalides","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Twin : nombre minimum de jetons de récupération invalides","MEMORI_INVALID_VOICE_TYPE":"Twin : type de voix invalide","MEMORI_MISSING_NAME":"Jumeau : nom manquant","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Twin : mot de passe ou jeton de récupération manquant","MEMORI_INVALID_ID":"Jumeau : pièce d\'identité invalide","MEMORI_NAME_ALREADY_USED":"Nom jumeau déjà utilisé","MEMORI_INVALID_PIN":"Twin : code PIN invalide","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Twin : le changement de TAG et de PIN nécessite des opérations distinctes","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Twin : aucun mot de passe requis lorsqu\'il est public","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Deep Thought nécessite que les complétions soient activées","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"Le groupe d\'experts exige que les complétions soient activées","MEMORI_INVALID_COMPLETION_CONFIG":"Twin : configuration des complétions non valide","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Transfert : utilisateur de destination manquant","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Transfert : ID utilisateur de destination non valide","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Transfert : données utilisateur de destination non valides","MEMORI_TRANSFER_NOTHING_TO_DO":"Transfert : rien à faire","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Mémoires : la configuration ne peut pas être modifiée","MEMORI_MISSING_NEW_PASSWORD":"Souvenirs : nouveau mot de passe manquant","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"La fonctionnalité nécessite un abonnement","INTEGRATION_NOT_FOUND":"Intégration introuvable","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Date invalide du format","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Date à formater invalide","INTEGRATION_INVALID_TYPE":"Type d\'intégration invalide","INTEGRATION_ALREADY_EXISTS":"L\'intégration existe déjà","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Les mémoires non publiques ne peuvent pas être intégrées","INTEGRATION_MISSING_INVOCATION_TEXT":"Intégration : texte d\'invocation manquant","INTEGRATION_MISSING_DEVICE_EMAILS":"Intégration : e-mail de l\'appareil manquant","INTEGRATION_MEMORI_IS_EMPTY":"Les mémoires vides ne peuvent pas être intégrées","INTEGRATION_MISSING_PRIVACY_POLICY":"Intégration : politique de confidentialité manquante","INTEGRATION_MISSING_CATEGORY":"Catégorie d\'intégration manquante","INTEGRATION_MISSING_DESCRIPTION":"Description de l\'intégration manquante","INTEGRATION_INVALID_INVOCATION_TEXT":"Texte d\'appel invalide","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home n\'est plus disponible","UPLOAD_REQUIRES_MULTIPART_ENCODING":"Le téléchargement nécessite un codage en plusieurs parties","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Téléchargement : limite de type de contenu manquante","UPLOAD_MAX_LENGTH_EXCEEDED":"Téléchargement : taille maximale dépassée","UPLOAD_FILE_IS_EMPTY":"Télécharger : fichier vide","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Téléchargement : type de fichier ou signature non valide","UPLOAD_MISSING_FILE_NAME":"Télécharger : nom de fichier manquant","UPLOAD_INVALID_MEMORY_ID":"Télécharger : ID de contenu invalide","UPLOAD_MISSING_FILE_CONTENT":"Télécharger : contenu du fichier manquant","ASSET_NOT_FOUND":"Actif introuvable","ASSET_NOT_ACCESSIBLE":"Actif non accessible","ASSET_MISSING_SESSION_ID":"Élément : ID de session manquant","ASSET_INVALID_FILE_NAME":"Élément : nom de fichier non valide","INVITATION_NOT_FOUND":"Invitation introuvable","INVITATION_NOT_ACCESSIBLE":"Invitation non accessible","INVITATION_ALREADY_ACCEPTED":"Invitation déjà acceptée","INVITATION_ALREADY_REJECTED":"Invitation déjà rejetée","INVITATION_MISSING_DESTINATION_EMAIL":"Invitation : e-mail de destination manquant","INVITATION_DESTINATION_EMAIL_INVALID":"Invitation : e-mail de destination invalide","INVITATION_MISSING_TAG":"Invitation : étiquette manquante","INVITATION_MISSING_PIN":"Invitation : code PIN manquant","INVITATION_INVALID_PIN":"Invitation : code PIN invalide","INVITATION_INVALID_TYPE":"Invitation : type non valide","INVITATION_MISSING_DESTINATION_NAME":"Invitation : le nom de la destination est manquant","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invitation : le tag et le code PIN ne peuvent pas être modifiés","INVITATION_CANT_BE_CHANGED":"Intation : ne peut pas être modifié","ACTIONLOG_INVALID_USER_ID":"ID utilisateur invalide","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Date de : format non valide","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Date de : format non valide","ACTIONLOG_INVALID_MEMORI_ID":"Identifiant Memori invalide","CONSUMPTIONLOG_INVALID_TYPE":"Type de journal invalide","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Date de : format non valide","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Date de : format non valide","CONSUMPTIONLOG_INVALID_USER_ID":"ID utilisateur invalide","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Identifiant Memori invalide","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notifications : période d\'extraction du journal de discussion non valide","PROCESS_INVALID_TYPE":"Type de processus invalide","PROCESS_ALREADY_RUNNING":"Processus déjà en cours","PROCESS_NOT_FOUND":"Processus introuvable","IMPORTCSV_MISSING_ROWS":"Import CSV : lignes manquantes","IMPORTCSV_MISSING_CSV":"Importation CSV : CSV manquant","IMPORTCSV_MISSING_SEPARATOR":"Import CSV : séparateur manquant","IMPORTCSV_INVALID_SEPARATOR":"Importation CSV : séparateur non valide","IMPORTCSV_MISSING_HEADERS":"Import CSV : en-têtes manquants","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Import CSV : séparateur de variante de titre manquant","IMPORTCSV_INVALID_RECEIVER_ID":"Importation CSV : ID de destinataire non valide","IMPORTCSV_INVALID_MEDIA_LINK":"Importation CSV : lien média non valide","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"Importation CSV : titre du lien invalide","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"Import CSV : encodage de caractères indétectable","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"Importation CSV : impossible d\'importer dans les mémoires secrètes","IMPORTTXT_MISSING_ROWS":"Importation de TXT : lignes manquantes","IMPORTTXT_INVALID_GRANULARITY":"Importer TXT : granularité invalide","IMPORTTXT_INVALID_RECEIVER_ID":"Importer TXT : ID de destinataire invalide","IMPORTTXT_INVALID_MEDIA_LINK":"Importer TXT : lien média non valide","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Importer TXT : titre du lien invalide","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"Import TXT : encodage de caractères indétectable","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"Importation TXT : impossible d\'importer vers les mémoires secrètes","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Importer TXT : limite d\'importation dépassée","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Importer TXT : l\'importation sur GPT-4 nécessite une clé API","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Importer TXT : l\'importation nécessite un forfait payant","IMPORTTXT_BILLING_DENIED_PERMISSION":"Importer TXT : vous n\'avez pas assez de crédits pour l\'opération","EXPORTCSV_MISSING_CSV_SPECS":"Exportation CSV : spécifications CSV manquantes","EXPORTCSV_MISSING_SEPARATOR":"Export CSV : séparateur manquant","EXPORTCSV_INVALID_SEPARATOR":"Exportation CSV : séparateur non valide","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Exportation CSV : séparateur de variante de titre manquant","EXPORTCSV_MISSING_NEW_LINE_CHAR":"Exportation CSV : caractère de nouvelle ligne manquant","EXPORTCSV_INVALID_NEW_LINE_CHAR":"Exportation CSV : caractère de nouvelle ligne non valide","EXPORTCSV_MISSING_PASSWORD":"Export CSV : mot de passe manquant","EXPORTJSONL_MISSING_JSONL_SPECS":"Export JSONL : spécifications JSONL manquantes","EXPORTJSONL_MISSING_PLATFORM":"Export JSONL : plateforme manquante","EXPORTJSONL_INVALID_PLATFORM":"Export JSONL : plateforme non valide","EXPORTJSONL_MISSING_PASSWORD":"Export JSONL : mot de passe manquant","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"Exportation JSONL : l\'exportation nécessite un forfait payant","ANALYSIS_MISSING_QUERY":"Analyse : requête manquante","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analyse : impossible d\'analyser les souvenirs secrets","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analyse : la correspondance avec la requête de l\'utilisateur nécessite une réflexion approfondie","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Attribution des badges : identifiants incorrects ou manquants","BADGE_ASSIGNMENT_MISSING_REF_ID":"Affectation du badge : ID de référence manquant","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Attribution des badges : résultat introuvable","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Attribution du badge : URL d\'assertion manquante","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Attribution du badge : URL du badge manquante","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Attribution du badge : URL de l\'émetteur manquante","BADGE_ASSIGNMENT_INVALID_URL":"Attribution du badge : URL invalide","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Affectation du badge : destinataire manquant","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Attribution du badge : type de destinataire inconnu","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Attribution du badge : identité du destinataire manquante","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Attribution du badge : type de hachage du destinataire manquant","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Attribution du badge : type de hachage du destinataire inconnu","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Attribution du badge : identité du destinataire incorrecte","BADGE_NOT_FOUND":"Badge introuvable","OUTCOME_NO_DCM_CONFIGURED":"Résultat : aucun DCM configuré","OUTCOME_USER_BADGES_DISABLED":"Résultat : badges utilisateur désactivés","COMPLETION_CONFIG_MISSING_NAME":"Configuration des complétions : nom manquant","COMPLETION_CONFIG_MISSING_PROVIDER":"Configuration des complétions : fournisseur manquant","COMPLETION_CONFIG_MISSING_ENDPOINT":"Configuration des complétions : point de terminaison manquant","COMPLETION_CONFIG_MISSING_API_KEY":"Configuration des complétions : clé API manquante","COMPLETION_CONFIG_MISSING_MODEL":"Configuration des complétions : modèle manquant","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Configuration des complétions : au moins un type de complétions doit être spécifié","COMPLETION_CONFIG_INVALID_NAME":"Configuration des complétions: nom non valide","COMPLETION_CONFIG_INVALID_PURPOSE":"Configuration des complétions : type de complétions non valide","COMPLETION_CONFIG_INVALID_ENDPOINT":"Configuration des achèvements : point de terminaison non valide","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Configuration des complétions : point de terminaison incohérent","COMPLETION_CONFIG_INVALID_PROVIDER":"Configuration des complétions : fournisseur non valide","COMPLETION_CONFIG_NOT_FOUND":"Configuration des complétions : introuvable","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Configuration des complétions : non accessible","COMPLETION_CONFIG_NAME_RESERVED":"Configuration des complétions : nom réservé","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Configuration des complétions : le nom existe déjà","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Configuration des complétions : changement de visibilité non autorisé"}}');var iG;iG=JSON.parse('{"yes":"Ja","no":"NEIN","confirm":"Bestätigen","apply":"Anwenden","cancel":"Stornieren","show":"Zeigen","hide":"Verstecken","send":"Schicken","close":"Schließen","edit":"Bearbeiten","delete":"Löschen","loading":"Laden","expand":"Expandieren","collapse":"Zusammenbruch","fullscreenEnter":"Geben Sie den Vollbildmodus ein","fullscreenExit":"Beenden Sie den Vollbildmodus","center":"Center","bottom":"Unten","hidden":"Versteckt","day":"Tag","month":"Monat","year":"Jahr","createdAt":"Erstellungsdatum","selected":"Ausgewählt","page":"Seite","actions":"Aktionen","next":"Nächste","previous":"Vorherige","copy":"Kopie","copyRawCode":"Rohcode kopieren","copyToClipboard":"In die Zwischenablage kopieren","showOriginalText":"Original anzeigen","showTranslatedText":"Übersetzung anzeigen","exactPosition":"Genaue Position","uncertain":"Unsicher","question":"Frage","nothingFound":"Nichts gefunden","venue":"Veranstaltungsort","searchVenue":"Veranstaltungsort suchen...","memoriBlockedTitle":"Blockiert","memoriBlockedUntil":"Memori blockiert bis {{date}}","memoriBlockedAnon":"Momentan \\"{{name}}„Kann nicht antworten, komm hierher zurück {{date}}","memoriBlockedReasonExceedChats":"weil der monatliche Schwellenwert für erlaubte Chats überschritten wurde.","memoriBlockedGiverHelper":"Sie können es weiterhin als Administrator verwalten, andere Benutzer können jedoch nicht damit interagieren.","generatedByAI":"Von KI generierte Antworten können gelegentlich falsche Informationen generieren","whyThisAnswer":"Warum diese Antwort?","whyThisAnswerHelper":"Diese Antwort wurde automatisch von einer künstlichen Intelligenz auf Basis dieser verifizierten Inhalte generiert.","completionsEnabled":"Fortschrittliche KI kann mit automatisch generierten Antworten reagieren, die manchmal falsche Informationen enthalten können","completionProviderDown":"Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. ","completionProviderFallbackName":"ein externer Anbieter","completionProviderCheckStatusPage":"Überprüfen Sie die Statusseite","boardOfExperts":"Expertengremium","birthDate":"Geburtsdatum","birthDateHelper":"Wir fragen nur nach Ihrem Geburtsdatum, um Funktionen zu aktivieren oder zu deaktivieren, für die Altersbeschränkungen gelten","underage":"Das müssen Sie mindestens sein {{age}} Jahre alt, um sich anzumelden.","underageTwinSession":"Das müssen Sie mindestens sein {{age}} Jahre alt, um mit diesem Zwilling zu interagieren.","errorFetchingSession":"Fehler beim Laden der Sitzung","errorGettingReferralURL":"Fehler beim Laden des Referrals","errorReopeningSession":"Fehler beim erneuten Öffnen der Sitzung","ageVerification":"Altersüberprüfung","ageVerificationText":"Um mit diesem Zwilling interagieren zu können, müssen Sie mindestens sein {{minAge}} Jahre alt.","nsfw":"NSFW: Dieser Twin enthält Inhalte für Erwachsene","deepThought":"Tiefer Gedanke","deepThoughtHelper":"Deep Thought ist eine erweiterte Funktion der KI, die es Ihnen ermöglicht, Ihre Gespräche voll auszuschöpfen, indem Sie sie verfolgen. ","deepThoughtDisclaimerTitle":"Deep Thought aktiviert","deepThoughtDisclaimer":"Deep Thought ist eine erweiterte Funktion der KI, die es Ihnen ermöglicht, Ihre Gespräche voll auszuschöpfen, indem Sie sie verfolgen. ","deepThoughtPreDisclaimerUnlogged":"Melden Sie sich an, um Deep Thought zu aktivieren.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought ist deaktiviert, da Sie der Nutzung nicht zugestimmt haben. Sie können dies jederzeit in Ihren Kontoeinstellungen ändern.","notEnoughCredits":"Der Autor dieses Zwillings verfügt nicht über genügend Credits, um Ihre Frage zu beantworten.","knownFacts":{"title":"Bekannte Fakten","description":"Einzelheiten zu den Informationen, die zwischen Ihnen und geteilt werden {{memoriName}}","type":"Typ","typeShortTerm":"Kurzfristig","typeLongTerm":"Langfristig","typeHelper":"Typen:\\n","text":"Text","deleteSuccess":"Bekannte Tatsache gelöscht","deleteConfirmTitle":"Bekannte Tatsache löschen","deleteConfirmMessage":"Sind Sie sicher, dass Sie diese bekannte Tatsache löschen möchten?","deleteSelectedConfirmTitle":"Ausgewählte bekannte Fakten löschen","deleteSelectedConfirmMessage":"Sind Sie sicher, dass Sie die ausgewählten bekannten Fakten löschen möchten?"},"auth":{"title":"Authentifizierung","useRecoveryTokens":"Verwenden Sie Wiederherstellungstoken","tokens":"Token","addToken":"Token hinzufügen","usePassword":"Passwort verwenden","atLeast":"Mindestens"},"widget":{"instruct":"Anweisen","test":"Prüfen","sound":"Klang","position":"Positionspräferenzen","settings":"Einstellungen","share":"Aktie","sendOnKeypress":"Drücken Sie zum Senden die Eingabetaste","sendOnClick":"Klicken Sie auf Senden","boardOfExperts":"Expertengremium","showExpertsInTheBoard":"Experten in diesem Forum anzeigen","expertsInTheBoard":"Experten in diesem Forum","goToIntegrationsToCustomizeAvatar":"Um den Avatar anzupassen, gehen Sie zu „Teilen“ und passen Sie die öffentliche Seite an"},"write_and_speak":{"micButtonPopover":"Klicken Sie auf die Schaltfläche, um zu sprechen","micButtonPopoverListening":"Klicken Sie auf die Schaltfläche, um das Sprechen zu stoppen","pageInstructExplanation":"Um mir neue Dinge beizubringen, klicken Sie auf die Schaltfläche „ANLEITEN“, um zu beginnen","pageTryMeExplanation":"Um mit mir zu sprechen, klicken Sie auf die Schaltfläche START, um zu beginnen","instructButton":"WEISE MICH AN","tryMeButton":"START","chatHistory":"Chatverlauf","exportChatHistory":"Chatverlauf exportieren","exportChatHistoryMessage":"Möchten Sie den Chatverlauf exportieren?","chatBotButtonText":"KLICKEN SIE HIER, UM CHATBOT ZU ÖFFNEN","conversationStartedLabel":"Das Gespräch begann am","settingsHeaderLabel":"Richten Sie hier ein, wenn Sie die Memori als Dauerrede einstellen möchten, und ändern Sie die Stillesekunden, wenn Sie sie anpassen möchten.","continuousSpeechLabel":"Kontinuierliche Rede","holdToSpeak":"Halten Sie gedrückt, um zu sprechen","releaseToEndListening":"Lassen Sie los, um das Hören zu beenden","pressAndHoldToSpeak":"Zum Sprechen gedrückt halten","microphoneMode":"Mikrofonmodus","hideEmissionsLabel":"Vom Zwilling ausgegebenen Text ausblenden","secondsLabel":"Sekunden einstellen","controlsPosition":"Steuert die Position","tryMeHeaderLabel":"VERSUCHEN","unknownPosition":"Unbekannte Position","fieldPlace":"Geben Sie den Ort ein (z. B. „Mailand“)","showMapLinkFor":"Zeigen Sie die Position auf der Karte an","useMyPosition":"Nutzen Sie meine Position","myPosition":"Ihre Position","updatingPosition":"Position wird aktualisiert...","placeNotFound":"Ort nicht gefunden!","requirePosition":"Geben Sie vor dem Start Ihre Position ein","requirePositionHelp":"Zum Reden {{name}} Sie müssen entscheiden, ob Sie Ihre Position angeben oder nicht. ","dontWantToProvidePosition":"Ich möchte meine Position nicht bekannt geben","attachmentsLabel":"Bereichern Sie Ihre Botschaft","iWantToTalkToIn":"Ich möchte mit reden {{name}} In"},"media":{"title":"Titel","editAttributes":"Medienattribute bearbeiten","uploadMimeTypeNotAllowed":"Der Dateityp ist nicht zulässig","uploadSizeLimitMessage":"Die hochgeladene Größe ist zu groß (max {{size}}MB)","uploadWrongResolutionMessage":"Die Auflösung muss sein {{width}}X{{height}} Pixel","memoriNameAlreadyUsed":"Du hast bereits einen Zwilling mit diesem Namen","uploadHelperImages":"Laden Sie eine Datei mit der Erweiterung PNG, JPG, JPEG oder GIF hoch und darf maximal eine Größe von haben {{size}}MB","uploadHelper":"Laden Sie eine Datei mit einer maximalen Größe von hoch {{size}}MB","uploadError":"Der Upload ist fehlgeschlagen","square":"Quadrat","scaleRatio":"Maßstabsverhältnis","addMediaLabel":"Fügen Sie ein Medium hinzu","insertThisMediaMsg":"Legen Sie diese Medien ein","mediaUploadMessage":"Klicken Sie hier, um ein neues Medium zu laden","addLinkLabel":"Fügen Sie einen Link hinzu","linkKey":"URL","linkValue":"Linktitel","insertThisLink":"Fügen Sie einen Link ein {{url}} mit Titel {{title}}"},"gamification":{"level":"Ebene","points":"Punkte","memoriReachedLevel":"entwickelte sich weiter und erreichte ein höheres Niveau","levelGoToStatistics":"{{memori}} ist auf gleicher Höhe {{level}} mit {{points}} Punkte. ","congratulationsNewLevel":"Herzlichen Glückwunsch, Sie haben ein neues Level erreicht!","congratulationsNewLevelDescription":"Ihre Memori wurden mit weiterentwickelt {{points}} Punkte, schauen Sie sich die an","statistics":"Statistiken"},"login":{"login":"Login","logout":"Abmelden","user":"Benutzer","loggedDrawerTitle":"Hallo, {{name}}!","loginDrawerTitle":"Login","signupDrawerTitle":"Melden Sie sich an","newUserSignUp":"Neuer Benutzer?","signUp":"Melden Sie sich an!","alreadyHaveAnAccount":"Sie haben bereits ein Konto?","backToLogin":"Zurück zum Login","registrationDisabled":"Die Registrierung ist deaktiviert","contactAdmin":"Wenden Sie sich an den Administrator, um Zugriff anzufordern","userNameOrEmail":"Benutzername oder E-Mail","email":"E-Mail","emailFormatError":"Bitte geben Sie eine gültige E-Mail-Adresse ein","username":"Benutzername","usernameContainsReservedWord":"Der Benutzername enthält ein reserviertes Wort. Bitte wählen Sie ein anderes","usernameFormatError":"Der Benutzername muss mindestens 3 Zeichen lang sein und darf nur Buchstaben, Zahlen und _ enthalten.","otpCode":"Bestätigungscode","resendVerificationCode":"Code erneut senden","resentVerificationCode":"Bestätigungscode gesendet! ","password":"Passwort","newPassword":"Neues Passwort","confirmPassword":"Passwort bestätigen","currentPassword":"Aktuelles Passwort","passwordMatchingError":"Passwörter stimmen nicht überein.","passwordFormatError":"Das Passwort muss mindestens 8 Zeichen lang sein und mindestens eine Zahl, einen Großbuchstaben, einen Kleinbuchstaben und ein Symbol enthalten","pwdWeak":"Schwach","pwdAcceptable":"Akzeptabel","pwdStrong":"Stark","mustChangePassword":"Sie müssen Ihr Passwort ändern","passwordChange":"Kennwort ändern","emailChange":"E-Mail ändern","avatarChange":"Avatar ändern","underage":"Das müssen Sie mindestens sein {{age}} Jahre alt, um sich anzumelden.","optional":"Optional","birthDate":"Geburtsdatum","birthDateHelper":"Wir fragen nur nach Ihrem Geburtsdatum, um Funktionen zu aktivieren oder zu deaktivieren, für die Altersbeschränkungen gelten","missingData":"Fehlende Informationen","missingDataHelper":"Wir wissen, dass dies etwas nervig ist, benötigen jedoch noch einige weitere Informationen, um Ihre Registrierung abzuschließen.","goToAccountToChangeYourPreferences":"Sie können Ihre Auswahl jederzeit auf Ihrer Kontoseite ändern.","deepThoughtExplaination":"Deep Thought ist eine erweiterte Funktion der KI, die es Ihnen ermöglicht, Ihre Gespräche voll auszuschöpfen, indem Sie sie verfolgen. ","tnCAndPPAcceptedHelper":"Seit Ihrer letzten Anmeldung haben sich die AGB und Datenschutzbestimmungen geändert. ","privacyLabel":"Ich habe die gelesen und akzeptiert","privacyAndCookiePolicy":"Datenschutz und Cookie-Richtlinie","and":"Und","termsOfService":"Nutzungsbedingungen","pAndCUAccepted":"Ich akzeptiere die Nutzungsbedingungen von Deep Thought","editAccount":"Konto bearbeiten","save":"Speichern"},"success":"Erfolg","Error":"Fehler","internal server error":"Oupsie, tut mir leid... Auf dem Server ist ein Fehler aufgetreten","error":"Fehler","error.loading":"Fehler beim Laden des Inhalts.","error.generic":"Oupsie, tut mir leid ... etwas ist schief gelaufen.","error.serverNotResponding":"Wir führen Wartungsarbeiten durch oder veröffentlichen Updates. ","error.notFound":"Oupsie, wir haben die von Ihnen gesuchte Seite nicht gefunden.","error.goBackTo":"Sie können versuchen, dorthin zurückzukehren","error.reloadPage":"Laden Sie die Seite neu","error.tryAgain":"Versuchen Sie es erneut","error.unauthorized":"Es ist Ihnen nicht gestattet, diesen Inhalt anzuzeigen.","error.unprocessableEntity":"Fehler beim Verarbeiten der Anfrage. ","errors":{"TENANT_NOT_FOUND":"Mieter nicht gefunden","TENANT_REGISTRATION_DISABLED":"Die Registrierung auf dieser Plattform ist deaktiviert","TENANT_MISSING_NAME":"Mieter: Name fehlt","TENANT_MAX_USERS_REACHED":"Maximale Anzahl Benutzer erreicht","TENANT_MAX_ADMINS_REACHED":"Maximale Anzahl an Admin-Benutzern erreicht","TENANT_ALREADY_EXISTS":"Mieter existiert bereits","TENANT_MISSING_DESCRIPTION":"Mieter: Beschreibung fehlt","TENANT_CANT_SET_COMPLETION_PROVIDER":"Mandant: Abschlussanbieter kann nicht festgelegt werden","USER_NOT_CONFIRMED":"Benutzer noch nicht bestätigt","USER_NOT_FOUND":"Benutzer nicht gefunden","USER_OR_PASSWORD_INVALID":"Ungültiger Benutzer oder Passwort","USER_MUST_CHANGE_PASSWORD":"Sie müssen Ihr Passwort ändern","USER_MUST_ENTER_VERIFICATION_CODE":"Sie müssen den Bestätigungscode eingeben","USER_MISSING_TENANT":"Benutzer: Mieter fehlt","USER_MISSING_NAME":"Benutzer: Name fehlt","USER_MISSING_PASSWORD":"Benutzer: Passwort fehlt","USER_MISSING_EMAIL":"Benutzer: Fehlende E-Mail","USER_MISSING_VERIFICATION_CODE":"Benutzer: Fehlender Bestätigungscode","USER_NAME_ALREADY_USED":"Benutzername wird bereits verwendet","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"Das Passwort entspricht nicht den Sicherheitsregeln","USER_EMAIL_ALREADY_USED":"E-Mail wird bereits verwendet","USER_EMAIL_INVALID":"Ungültige E-Mail","USER_VERIFICATION_CODE_INVALID":"Ungültiger Bestätigungscode","USER_MISSING_NAME_OR_EMAIL":"Benutzername oder E-Mail fehlen","USER_NAME_INVALID":"Ungültiger Benutzername","USER_HAS_ONE_OR_MORE_MEMORI":"Der Benutzer verfügt über eine oder mehrere Erinnerungen","USER_MISSING_NEW_PASSWORD":"Benutzer: Neues Passwort fehlt","USER_NOTHING_TO_DO":"Nichts zu tun","USER_CANT_CREATE_MEMORI":"Benutzer darf Memori nicht erstellen","USER_MAX_MEMORI_REACHED":"Maximale Anzahl an Memori erreicht","USER_TOO_MANY_ATTEMPTS":"Zu viele Versuche","USER_MUST_ACCEPT_TNC_AND_PP":"Sie müssen die Allgemeinen Geschäftsbedingungen akzeptieren","USER_BIRTH_DATE_CANT_BE_CHANGED":"Das Geburtsdatum kann nicht geändert werden","USER_CANT_SET_COMPLETION_PROVIDER":"Benutzer: darf den Vervollständigungsanbieter nicht verwalten","USER_CANT_ENABLE_DEEP_THOUGHT":"Benutzer: nicht für die Verwaltung von Deep Thought aktiviert","USER_CANT_ENABLE_DCM_INTEGRATION":"Benutzer: nicht für die Verwaltung der DCM-Integration aktiviert","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Benutzer: darf die Verkettung oder Expertengruppe nicht verwalten","USER_CREATION_BILLING_DENIED_PERMISSION":"Sie haben nicht genügend Credits, um einen Zwilling zu erstellen","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"Der Benutzer verfügt über eine oder mehrere Abschlusskonfigurationen","USER_CANT_BE_DELETED":"Benutzer kann nicht gelöscht werden","MEMORI_NOT_FOUND":"Erinnerungen nicht gefunden","MEMORI_NOT_ACCESSIBLE":"Memori nicht zugänglich","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Nur der Eigentümer kann das Tag oder die PIN ändern","SESSION_NOT_FOUND":"Sitzung nicht gefunden","SESSION_IS_NOT_ADMINISTRATIVE":"Nicht-administrative Sitzung","SESSION_EXPIRED":"Sitzung abgelaufen","MEMORI_MISSING_CONFIGURATION":"Zwilling: fehlende Konfiguration","MEMORI_CONFIGURATION_NOT_FOUND":"Zwilling: Konfiguration nicht gefunden","MEMORI_INVALID_PRIVACY_TYPE":"Twin: ungültiger Datenschutztyp","MEMORI_MISSING_PASSWORD":"Zwilling: Passwort fehlt","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Twin: Gesamtzahl ungültiger Wiederherstellungstokens","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Twin: Mindestanzahl ungültiger Wiederherstellungstokens","MEMORI_INVALID_VOICE_TYPE":"Zwilling: ungültiger Stimmtyp","MEMORI_MISSING_NAME":"Zwilling: fehlender Name","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Zwilling: Fehlendes Passwort oder Wiederherstellungstoken","MEMORI_INVALID_ID":"Zwilling: ungültige ID","MEMORI_NAME_ALREADY_USED":"Zwillingsname wird bereits verwendet","MEMORI_INVALID_PIN":"Zwilling: Ungültige PIN","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Zwilling: TAG- und PIN-Änderung erfordern separate Vorgänge","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Zwilling: Im öffentlichen Zustand ist kein Passwort erforderlich","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Für „Deep Thought“ müssen Vervollständigungen aktiviert sein","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"Für die Expertengruppe müssen Vervollständigungen aktiviert sein","MEMORI_INVALID_COMPLETION_CONFIG":"Zwilling: Ungültige Abschlusskonfiguration","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Übertragung: Zielbenutzer fehlt","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Übertragung: Ungültige Zielbenutzer-ID","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Übertragung: Ungültige Zielbenutzerdaten","MEMORI_TRANSFER_NOTHING_TO_DO":"Transfer: nichts zu tun","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Speicher: Konfiguration kann nicht geändert werden","MEMORI_MISSING_NEW_PASSWORD":"Erinnerungen: Neues Passwort fehlt","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"Für die Funktion ist ein Abonnement erforderlich","INTEGRATION_NOT_FOUND":"Integration nicht gefunden","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Ungültiges Datum aus Format","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Ungültiges Datum zum Formatieren","INTEGRATION_INVALID_TYPE":"Ungültiger Integrationstyp","INTEGRATION_ALREADY_EXISTS":"Die Integration ist bereits vorhanden","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Nicht-öffentliche Erinnerungen können nicht integriert werden","INTEGRATION_MISSING_INVOCATION_TEXT":"Integration: fehlender Aufruftext","INTEGRATION_MISSING_DEVICE_EMAILS":"Integration: Fehlende Geräte-E-Mail","INTEGRATION_MEMORI_IS_EMPTY":"Leere Erinnerungen können nicht integriert werden","INTEGRATION_MISSING_PRIVACY_POLICY":"Integration: Datenschutzrichtlinie fehlt","INTEGRATION_MISSING_CATEGORY":"Integrationskategorie fehlt","INTEGRATION_MISSING_DESCRIPTION":"Fehlende Integrationsbeschreibung","INTEGRATION_INVALID_INVOCATION_TEXT":"Ungültiger Aufruftext","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home nicht mehr verfügbar","UPLOAD_REQUIRES_MULTIPART_ENCODING":"Für den Upload ist eine mehrteilige Kodierung erforderlich","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Hochladen: Inhaltstypgrenze fehlt","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: Maximale Größe überschritten","UPLOAD_FILE_IS_EMPTY":"Hochladen: leere Datei","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Hochladen: Ungültiger Dateityp oder ungültige Signatur","UPLOAD_MISSING_FILE_NAME":"Hochladen: Dateiname fehlt","UPLOAD_INVALID_MEMORY_ID":"Hochladen: Ungültige Inhalts-ID","UPLOAD_MISSING_FILE_CONTENT":"Hochladen: Dateiinhalt fehlt","ASSET_NOT_FOUND":"Asset nicht gefunden","ASSET_NOT_ACCESSIBLE":"Asset nicht zugänglich","ASSET_MISSING_SESSION_ID":"Asset: Sitzungs-ID fehlt","ASSET_INVALID_FILE_NAME":"Asset: ungültiger Dateiname","INVITATION_NOT_FOUND":"Einladung nicht gefunden","INVITATION_NOT_ACCESSIBLE":"Einladung nicht zugänglich","INVITATION_ALREADY_ACCEPTED":"Einladung bereits angenommen","INVITATION_ALREADY_REJECTED":"Einladung bereits abgelehnt","INVITATION_MISSING_DESTINATION_EMAIL":"Einladung: Ziel-E-Mail fehlt","INVITATION_DESTINATION_EMAIL_INVALID":"Einladung: Ziel-E-Mail-Adresse ungültig","INVITATION_MISSING_TAG":"Einladung: Tag fehlt","INVITATION_MISSING_PIN":"Einladung: PIN fehlt","INVITATION_INVALID_PIN":"Einladung: ungültige PIN","INVITATION_INVALID_TYPE":"Einladung: ungültiger Typ","INVITATION_MISSING_DESTINATION_NAME":"Einladung: Zielname fehlt","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Einladung: Tag und Pin können nicht geändert werden","INVITATION_CANT_BE_CHANGED":"Absicht: kann nicht geändert werden","ACTIONLOG_INVALID_USER_ID":"Ungültige Benutzer-ID","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Datum von: ungültiges Format","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Datum bis: ungültiges Format","ACTIONLOG_INVALID_MEMORI_ID":"Ungültige Memori-ID","CONSUMPTIONLOG_INVALID_TYPE":"Ungültiger Protokolltyp","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Datum von: ungültiges Format","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Datum bis: ungültiges Format","CONSUMPTIONLOG_INVALID_USER_ID":"Ungültige Benutzer-ID","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Ungültige Memori-ID","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Benachrichtigungen: Ungültiger Chat-Protokoll-Extraktionszeitraum","PROCESS_INVALID_TYPE":"Ungültiger Prozesstyp","PROCESS_ALREADY_RUNNING":"Prozess läuft bereits","PROCESS_NOT_FOUND":"Prozess nicht gefunden","IMPORTCSV_MISSING_ROWS":"CSV-Import: fehlende Zeilen","IMPORTCSV_MISSING_CSV":"CSV-Import: CSV fehlt","IMPORTCSV_MISSING_SEPARATOR":"CSV-Import: fehlendes Trennzeichen","IMPORTCSV_INVALID_SEPARATOR":"CSV-Import: Ungültiges Trennzeichen","IMPORTCSV_MISSING_HEADERS":"CSV-Import: fehlende Header","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV-Import: Titelvariantentrennzeichen fehlt","IMPORTCSV_INVALID_RECEIVER_ID":"CSV-Import: ungültige Empfänger-ID","IMPORTCSV_INVALID_MEDIA_LINK":"CSV-Import: Ungültiger Medienlink","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"CSV-Import: Ungültiger Linktitel","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"CSV-Import: Nicht erkennbare Zeichenkodierung","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"CSV-Import: Der Import in Secret Memories ist nicht möglich","IMPORTTXT_MISSING_ROWS":"TXT wird importiert: Zeilen fehlen","IMPORTTXT_INVALID_GRANULARITY":"TXT importieren: ungültige Granularität","IMPORTTXT_INVALID_RECEIVER_ID":"TXT importieren: ungültige Empfänger-ID","IMPORTTXT_INVALID_MEDIA_LINK":"TXT importieren: Ungültiger Medienlink","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"TXT importieren: ungültiger Linktitel","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"TXT-Import: Nicht erkennbare Zeichenkodierung","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"TXT-Import: Der Import in Secret Memories ist nicht möglich","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"TXT importieren: Importlimit überschritten","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"TXT importieren: Für den Import auf GPT-4 ist ein API-Schlüssel erforderlich","IMPORTTXT_IMPORT_REQUIRES_PAYING":"TXT importieren: Für den Import ist ein kostenpflichtiger Plan erforderlich","IMPORTTXT_BILLING_DENIED_PERMISSION":"TXT importieren: Sie haben nicht genügend Credits für den Vorgang","EXPORTCSV_MISSING_CSV_SPECS":"CSV-Export: CSV-Spezifikationen fehlen","EXPORTCSV_MISSING_SEPARATOR":"CSV-Export: fehlendes Trennzeichen","EXPORTCSV_INVALID_SEPARATOR":"CSV-Export: Ungültiges Trennzeichen","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV-Export: fehlendes Titelvarianten-Trennzeichen","EXPORTCSV_MISSING_NEW_LINE_CHAR":"CSV-Export: Fehlendes Zeilenumbruchzeichen","EXPORTCSV_INVALID_NEW_LINE_CHAR":"CSV-Export: Ungültiges Zeilenumbruchzeichen","EXPORTCSV_MISSING_PASSWORD":"CSV-Export: Passwort fehlt","EXPORTJSONL_MISSING_JSONL_SPECS":"JSONL-Export: JSONL-Spezifikationen fehlen","EXPORTJSONL_MISSING_PLATFORM":"JSONL-Export: fehlende Plattform","EXPORTJSONL_INVALID_PLATFORM":"JSONL-Export: ungültige Plattform","EXPORTJSONL_MISSING_PASSWORD":"JSONL-Export: Passwort fehlt","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"JSONL-Export: Für den Export ist ein kostenpflichtiger Plan erforderlich","ANALYSIS_MISSING_QUERY":"Analyse: fehlende Abfrage","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analyse: Geheime Erinnerungen können nicht analysiert werden","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analyse: Passende Benutzeranfragen erfordern tiefes Denken","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Ausweiszuweisung: falsche oder fehlende Zugangsdaten","BADGE_ASSIGNMENT_MISSING_REF_ID":"Badge-Zuordnung: Referenz-ID fehlt","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Badge-Zuweisung: Ergebnis nicht gefunden","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Badge-Zuweisung: Fehlende Behauptungs-URL","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Badge-Zuweisung: Badge-URL fehlt","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Badge-Zuweisung: Aussteller-URL fehlt","BADGE_ASSIGNMENT_INVALID_URL":"Badge-Zuweisung: Ungültige URL","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Ausweiszuordnung: fehlender Empfänger","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Badge-Zuordnung: unbekannter Empfängertyp","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Ausweiszuordnung: Empfängeridentität fehlt","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Badge-Zuweisung: Empfänger-Hash-Typ fehlt","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Badge-Zuweisung: Empfänger-Hash-Typ unbekannt","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Badge-Zuordnung: Falsche Empfängeridentität","BADGE_NOT_FOUND":"Abzeichen nicht gefunden","OUTCOME_NO_DCM_CONFIGURED":"Ergebnis: kein DCM konfiguriert","OUTCOME_USER_BADGES_DISABLED":"Ergebnis: Benutzerausweise deaktiviert","COMPLETION_CONFIG_MISSING_NAME":"Vervollständigungskonfiguration: Name fehlt","COMPLETION_CONFIG_MISSING_PROVIDER":"Vervollständigungskonfiguration: fehlender Anbieter","COMPLETION_CONFIG_MISSING_ENDPOINT":"Abschlusskonfiguration: fehlender Endpunkt","COMPLETION_CONFIG_MISSING_API_KEY":"Vervollständigungskonfiguration: fehlender API-Schlüssel","COMPLETION_CONFIG_MISSING_MODEL":"Vervollständigungskonfiguration: fehlendes Modell","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Vervollständigungskonfiguration: Es muss mindestens ein Vervollständigungstyp angegeben werden","COMPLETION_CONFIG_INVALID_NAME":"Vervollständigungskonfiguration: ungültiger Name","COMPLETION_CONFIG_INVALID_PURPOSE":"Vervollständigungskonfiguration: Ungültiger Vervollständigungstyp","COMPLETION_CONFIG_INVALID_ENDPOINT":"Abschlusskonfiguration: Ungültiger Endpunkt","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Abschlusskonfiguration: inkonsistenter Endpunkt","COMPLETION_CONFIG_INVALID_PROVIDER":"Vervollständigungskonfiguration: ungültiger Anbieter","COMPLETION_CONFIG_NOT_FOUND":"Vervollständigungskonfiguration: nicht gefunden","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Vervollständigungskonfiguration: nicht zugänglich","COMPLETION_CONFIG_NAME_RESERVED":"Vervollständigungskonfiguration: Name reserviert","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Vervollständigungskonfiguration: Name existiert bereits","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Vervollständigungskonfiguration: Änderung der Sichtbarkeit nicht zulässig"}}');var oG;oG=JSON.parse('{"yes":"Sí","no":"No","confirm":"Confirmar","apply":"Aplicar","cancel":"Cancelar","show":"Espectáculo","hide":"Esconder","send":"Enviar","close":"Cerca","edit":"Editar","delete":"Borrar","loading":"Cargando","expand":"Expandir","collapse":"Colapsar","fullscreenEnter":"Entrar en pantalla completa","fullscreenExit":"Salir de pantalla completa","center":"Centro","bottom":"Abajo","hidden":"Oculto","day":"Día","month":"Mes","year":"Año","createdAt":"Fecha de creación","selected":"Seleccionado","page":"página","actions":"Comportamiento","next":"Próximo","previous":"Anterior","copy":"Copiar","copyRawCode":"Copiar código sin formato","copyToClipboard":"Copiar al portapapeles","showOriginalText":"Mostrar original","showTranslatedText":"Mostrar traducción","exactPosition":"Posición exacta","uncertain":"Incierto","question":"Pregunta","nothingFound":"No se encontró nada","venue":"Evento","searchVenue":"Buscar lugar...","memoriBlockedTitle":"Obstruido","memoriBlockedUntil":"Memori bloqueado hasta {{date}}","memoriBlockedAnon":"Actualmente \\"{{name}}\\"No puedo responder, vuelve aquí. {{date}}","memoriBlockedReasonExceedChats":"porque ha superado el umbral mensual de chats permitidos.","memoriBlockedGiverHelper":"Aún podrás administrarlo como administrador, pero otros usuarios no podrán interactuar con él.","generatedByAI":"La respuesta generada por IA, ocasionalmente puede generar información incorrecta","whyThisAnswer":"¿Por qué esta respuesta?","whyThisAnswerHelper":"Esta respuesta fue generada automáticamente por una inteligencia artificial basada en estos contenidos verificados.","completionsEnabled":"La IA avanzada puede responder con respuestas generadas automáticamente que a veces pueden contener información incorrecta.","completionProviderDown":"Este Twin está integrado con una IA generativa de {{provider}}, pero actualmente no está disponible. ","completionProviderFallbackName":"un proveedor externo","completionProviderCheckStatusPage":"Comprobar página de estado","boardOfExperts":"junta de expertos","birthDate":"Fecha de nacimiento","birthDateHelper":"Solicitamos tu fecha de nacimiento únicamente para habilitar o deshabilitar funcionalidades que tienen restricciones de edad.","underage":"Debes ser al menos {{age}} años para inscribirse.","underageTwinSession":"Debes ser al menos {{age}} años para interactuar con este gemelo.","errorFetchingSession":"Error durante el cargamento de la sesión","errorGettingReferralURL":"Error durante el cargamento del référent","errorReopeningSession":"Error durante el re-abrir la sesión","ageVerification":"Verificación de edad","ageVerificationText":"Para interactuar con este Gemelo, debes tener al menos {{minAge}} años.","nsfw":"NSFW: Este gemelo contiene contenido para adultos","deepThought":"pensamiento profundo","deepThoughtHelper":"Deep Thought es una característica avanzada de la IA que te permitirá explotar al máximo tus conversaciones al realizar un seguimiento de ellas. ","deepThoughtDisclaimerTitle":"Pensamiento profundo habilitado","deepThoughtDisclaimer":"Deep Thought es una característica avanzada de la IA que te permitirá explotar al máximo tus conversaciones al realizar un seguimiento de ellas. ","deepThoughtPreDisclaimerUnlogged":"Inicie sesión para habilitar Pensamiento profundo.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought está deshabilitado porque usted no dio su consentimiento para su uso; puede cambiar esto en cualquier momento en la configuración de su cuenta.","notEnoughCredits":"El autor de este Gemelo no tiene suficientes créditos para responder a tu pregunta.","knownFacts":{"title":"hechos conocidos","description":"Detalles de la información compartida entre usted y {{memoriName}}","type":"Tipo","typeShortTerm":"Corto plazo","typeLongTerm":"Largo plazo","typeHelper":"Tipos:\\n","text":"Texto","deleteSuccess":"Hecho conocido eliminado","deleteConfirmTitle":"Eliminar hecho conocido","deleteConfirmMessage":"¿Está seguro de que desea eliminar este hecho conocido?","deleteSelectedConfirmTitle":"Eliminar hechos conocidos seleccionados","deleteSelectedConfirmMessage":"¿Está seguro de que desea eliminar los hechos conocidos seleccionados?"},"auth":{"title":"Autenticación","useRecoveryTokens":"Utilice tokens de recuperación","tokens":"Fichas","addToken":"Agregar token","usePassword":"Usar contraseña","atLeast":"Al menos"},"widget":{"instruct":"Instruir","test":"Prueba","sound":"Sonido","position":"Preferencias de posición","settings":"Ajustes","share":"Compartir","sendOnKeypress":"Presiona Enter para enviar","sendOnClick":"Haga clic en Enviar","boardOfExperts":"junta de expertos","showExpertsInTheBoard":"Mostrar expertos en este foro","expertsInTheBoard":"Expertos en este foro","goToIntegrationsToCustomizeAvatar":"Para personalizar el avatar, vaya a Compartir y personalice la página pública."},"write_and_speak":{"micButtonPopover":"Haga clic en el botón para hablar","micButtonPopoverListening":"Haga clic en el botón para dejar de hablar.","pageInstructExplanation":"Para enseñarme cosas nuevas, haga clic en el botón INSTRUIRME para comenzar.","pageTryMeExplanation":"Para hablar conmigo haga clic en el botón INICIO para comenzar","instructButton":"INSTRUÍME","tryMeButton":"COMENZAR","chatHistory":"Historial de chat","exportChatHistory":"Exportar historial de chat","exportChatHistoryMessage":"¿Quieres exportar el historial de chat?","chatBotButtonText":"HAGA CLIC AQUÍ PARA ABRIR EL CHATBOT","conversationStartedLabel":"La conversación comenzó el","settingsHeaderLabel":"Configure aquí si desea configurar la memoria como voz continua y cambie los segundos de silencio si desea personalizarlos.","continuousSpeechLabel":"discurso continuo","holdToSpeak":"Mantenga para hablar","releaseToEndListening":"Suelte para finalizar la escucha","pressAndHoldToSpeak":"Mantenga presionado para hablar","microphoneMode":"Modo micrófono","hideEmissionsLabel":"Ocultar texto emitido por el Twin","secondsLabel":"Establecer segundos","controlsPosition":"Posición de los controles","tryMeHeaderLabel":"INTENTAR","unknownPosition":"Posición desconocida","fieldPlace":"Escribe el lugar (por ejemplo, \'Milano\')","showMapLinkFor":"Mostrar la posición en el mapa.","useMyPosition":"Usa mi posición","myPosition":"Tu posición","updatingPosition":"Actualizando posición...","placeNotFound":"¡Lugar no encontrado!","requirePosition":"Inserte su posición antes de comenzar","requirePositionHelp":"para hablar con {{name}} usted tiene que decidir si proporciona su puesto o no. ","dontWantToProvidePosition":"No quiero proporcionar mi puesto.","attachmentsLabel":"Enriquece tu mensaje","iWantToTalkToIn":"quiero hablar con {{name}} en"},"media":{"title":"Título","editAttributes":"Editar atributos de medios","uploadMimeTypeNotAllowed":"El tipo de archivo no está permitido.","uploadSizeLimitMessage":"El tamaño subido es demasiado grande (máx. {{size}}MEGABYTE)","uploadWrongResolutionMessage":"La resolución debe ser {{width}}incógnita{{height}} píxel","memoriNameAlreadyUsed":"Ya tienes un gemelo con este nombre.","uploadHelperImages":"Sube un archivo con extensión png, jpg, jpeg o gif, y que tenga como máximo un tamaño de {{size}}MEGABYTE","uploadHelper":"Cargue un archivo que tenga como máximo un tamaño de {{size}}MEGABYTE","uploadError":"Error al subir","square":"cuadrado","scaleRatio":"Relación de escala","addMediaLabel":"Agregar un medio","insertThisMediaMsg":"Inserte estos medios","mediaUploadMessage":"Haga clic para cargar un nuevo medio","addLinkLabel":"Agregar un enlace","linkKey":"URL","linkValue":"Título del enlace","insertThisLink":"Insertar un enlace a {{url}} con titulo {{title}}"},"gamification":{"level":"Nivel","points":"agujas","memoriReachedLevel":"se volvió más evolucionado y alcanzó el nivel","levelGoToStatistics":"{{memori}} esta al nivel {{level}} con {{points}} agujas. ","congratulationsNewLevel":"¡Felicitaciones, has alcanzado un nuevo nivel!","congratulationsNewLevelDescription":"Tu Memori se volvió más evolucionado con {{points}} puntos, mira el","statistics":"estadística"},"login":{"login":"Acceso","logout":"Cerrar sesión","user":"Usuario","loggedDrawerTitle":"Hola, {{name}}!","loginDrawerTitle":"Acceso","signupDrawerTitle":"Inscribirse","newUserSignUp":"¿Nuevo usuario?","signUp":"¡Inscribirse!","alreadyHaveAnAccount":"¿Ya tienes una cuenta?","backToLogin":"Volver a iniciar sesión","registrationDisabled":"El registro está deshabilitado","contactAdmin":"Póngase en contacto con el administrador para solicitar acceso","userNameOrEmail":"Nombre de usuario o correo electrónico","email":"Correo electrónico","emailFormatError":"Por favor, inserte un correo electrónico válido","username":"Nombre de usuario","usernameContainsReservedWord":"El nombre de usuario contiene una palabra reservada, elija otra","usernameFormatError":"El nombre de usuario debe tener al menos 3 caracteres y contener solo letras, números y _","otpCode":"Código de verificación","resendVerificationCode":"Reenviar código","resentVerificationCode":"¡Código de confirmación enviado! ","password":"Contraseña","newPassword":"Nueva contraseña","confirmPassword":"confirmar Contraseña","currentPassword":"Contraseña actual","passwordMatchingError":"Las contraseñas no coinciden.","passwordFormatError":"La contraseña debe tener al menos 8 caracteres y contener al menos un número, una letra mayúscula, una letra minúscula y un símbolo.","pwdWeak":"Débil","pwdAcceptable":"Aceptable","pwdStrong":"Fuerte","mustChangePassword":"Debes cambiar tu contraseña","passwordChange":"Cambiar la contraseña","emailChange":"Cambiar correo electrónico","avatarChange":"Cambiar avatar","underage":"Debes ser al menos {{age}} años para inscribirse.","optional":"Opcional","birthDate":"Fecha de nacimiento","birthDateHelper":"Solicitamos tu fecha de nacimiento únicamente para habilitar o deshabilitar funcionalidades que tienen restricciones de edad.","missingData":"Información faltante","missingDataHelper":"Sabemos que esto es un poco molesto, pero necesitamos más información para completar tu registro.","goToAccountToChangeYourPreferences":"Puede cambiar su elección en cualquier momento desde la página de su Cuenta.","deepThoughtExplaination":"Deep Thought es una característica avanzada de la IA que te permitirá explotar al máximo tus conversaciones al realizar un seguimiento de ellas. ","tnCAndPPAcceptedHelper":"Desde su último inicio de sesión, los Términos y condiciones y la Política de privacidad han cambiado. ","privacyLabel":"He leído y acepto el","privacyAndCookiePolicy":"Política de privacidad y cookies","and":"y","termsOfService":"Términos de servicio","pAndCUAccepted":"Acepto los términos de servicio sobre Deep Thought","editAccount":"Editar cuenta","save":"Ahorrar"},"success":"Éxito","Error":"Error","internal server error":"Oupsie, lo siento... Algo salió mal en el servidor.","error":"Error","error.loading":"Error al cargar contenido.","error.generic":"Oupsie, lo siento... algo salió mal.","error.serverNotResponding":"Estamos realizando mantenimiento o lanzando actualizaciones. ","error.notFound":"Oupsie, no encontramos la página que buscabas.","error.goBackTo":"Puedes intentar volver al","error.reloadPage":"recargar la pagina","error.tryAgain":"Intentar otra vez","error.unauthorized":"No estás autorizado a ver este contenido.","error.unprocessableEntity":"Error al procesar la solicitud. ","errors":{"TENANT_NOT_FOUND":"Inquilino no encontrado","TENANT_REGISTRATION_DISABLED":"El registro en esta plataforma está deshabilitado","TENANT_MISSING_NAME":"Inquilino: falta el nombre","TENANT_MAX_USERS_REACHED":"Número máximo de usuarios alcanzado","TENANT_MAX_ADMINS_REACHED":"Número máximo de usuarios administradores alcanzado","TENANT_ALREADY_EXISTS":"El inquilino ya existe","TENANT_MISSING_DESCRIPTION":"Inquilino: falta descripción","TENANT_CANT_SET_COMPLETION_PROVIDER":"Inquilino: no se puede configurar el proveedor de finalización","USER_NOT_CONFIRMED":"Usuario aún no confirmado","USER_NOT_FOUND":"Usuario no encontrado","USER_OR_PASSWORD_INVALID":"Usuario o contraseña no válidos","USER_MUST_CHANGE_PASSWORD":"Debes cambiar tu contraseña","USER_MUST_ENTER_VERIFICATION_CODE":"Debes ingresar el código de verificación","USER_MISSING_TENANT":"Usuario: inquilino desaparecido","USER_MISSING_NAME":"Usuario: falta el nombre","USER_MISSING_PASSWORD":"Usuario: falta contraseña","USER_MISSING_EMAIL":"Usuario: Falta correo electrónico","USER_MISSING_VERIFICATION_CODE":"Usuario: Falta el código de verificación","USER_NAME_ALREADY_USED":"Nombre de usuario ya en uso","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"La contraseña no cumple con las reglas de seguridad.","USER_EMAIL_ALREADY_USED":"Correo electrónico ya en uso","USER_EMAIL_INVALID":"Correo electrónico no válido","USER_VERIFICATION_CODE_INVALID":"Código de verificación no válido","USER_MISSING_NAME_OR_EMAIL":"Falta nombre de usuario o correo electrónico","USER_NAME_INVALID":"Nombre de usuario no válido","USER_HAS_ONE_OR_MORE_MEMORI":"El usuario tiene uno o más recuerdos.","USER_MISSING_NEW_PASSWORD":"Usuario: falta nueva contraseña","USER_NOTHING_TO_DO":"Nada que hacer","USER_CANT_CREATE_MEMORI":"Usuario no autorizado a crear Memori","USER_MAX_MEMORI_REACHED":"Número máximo de Memori alcanzado","USER_TOO_MANY_ATTEMPTS":"demasiados intentos","USER_MUST_ACCEPT_TNC_AND_PP":"Debes aceptar los términos y condiciones.","USER_BIRTH_DATE_CANT_BE_CHANGED":"La fecha de nacimiento no se puede cambiar.","USER_CANT_SET_COMPLETION_PROVIDER":"Usuario: no tiene permiso para gestionar el proveedor de finalización","USER_CANT_ENABLE_DEEP_THOUGHT":"Usuario: no habilitado para gestionar Deep Thought","USER_CANT_ENABLE_DCM_INTEGRATION":"Usuario: no habilitado para gestionar la integración de DCM","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Usuario: no se le permite gestionar encadenamiento o grupo de expertos","USER_CREATION_BILLING_DENIED_PERMISSION":"No tienes suficientes créditos para crear un gemelo","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"El usuario tiene una o más configuraciones de finalización.","USER_CANT_BE_DELETED":"Usuario: no se puede eliminar","MEMORI_NOT_FOUND":"Memoria no encontrada","MEMORI_NOT_ACCESSIBLE":"Memorias no accesibles","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Sólo el propietario puede cambiar la etiqueta o el pin","SESSION_NOT_FOUND":"Sesión no encontrada","SESSION_IS_NOT_ADMINISTRATIVE":"Sesión no administrativa","SESSION_EXPIRED":"La sesión expiró","MEMORI_MISSING_CONFIGURATION":"Gemelo: falta configuración","MEMORI_CONFIGURATION_NOT_FOUND":"Gemelo: configuración no encontrada","MEMORI_INVALID_PRIVACY_TYPE":"Gemelo: tipo de privacidad no válido","MEMORI_MISSING_PASSWORD":"Gemelo: falta contraseña","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Gemelo: número total de tokens de recuperación no válidos","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Gemelo: número mínimo de tokens de recuperación no válidos","MEMORI_INVALID_VOICE_TYPE":"Gemelo: tipo de voz no válido","MEMORI_MISSING_NAME":"Gemelo: falta nombre","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Gemelo: falta contraseña o token de recuperación","MEMORI_INVALID_ID":"Gemelo: identificación no válida","MEMORI_NAME_ALREADY_USED":"Nombre gemelo ya en uso","MEMORI_INVALID_PIN":"Gemelo: PIN no válido","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Gemelo: el cambio de TAG y PIN requiere operaciones separadas","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Twin: no se requiere contraseña cuando es público","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Deep Thought requiere que las completaciones estén habilitadas","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"El grupo de expertos requiere que se habiliten las completaciones.","MEMORI_INVALID_COMPLETION_CONFIG":"Gemelo: configuración de finalizaciones no válidas","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Transferencia: falta usuario de destino","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Transferencia: ID de usuario de destino no válido","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Transferencia: datos de usuario de destino no válidos","MEMORI_TRANSFER_NOTHING_TO_DO":"Transferencia: nada que hacer","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Memorias: la configuración no se puede cambiar","MEMORI_MISSING_NEW_PASSWORD":"Recuerdos: falta nueva contraseña","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"La función requiere suscripción","INTEGRATION_NOT_FOUND":"Integración no encontrada","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Fecha no válida del formato","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Fecha no válida para formatear","INTEGRATION_INVALID_TYPE":"Tipo de integración no válido","INTEGRATION_ALREADY_EXISTS":"La integración ya existe","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Las memorias no públicas no se pueden integrar","INTEGRATION_MISSING_INVOCATION_TEXT":"Integración: falta texto de invocación","INTEGRATION_MISSING_DEVICE_EMAILS":"Integración: correo electrónico del dispositivo perdido","INTEGRATION_MEMORI_IS_EMPTY":"Los recuerdos vacíos no se pueden integrar","INTEGRATION_MISSING_PRIVACY_POLICY":"Integración: falta la política de privacidad","INTEGRATION_MISSING_CATEGORY":"Falta categoría de integración","INTEGRATION_MISSING_DESCRIPTION":"Falta descripción de integración","INTEGRATION_INVALID_INVOCATION_TEXT":"Texto de invocación no válido","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home ya no está disponible","UPLOAD_REQUIRES_MULTIPART_ENCODING":"La carga requiere codificación multiparte","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Subir: falta límite de tipo de contenido","UPLOAD_MAX_LENGTH_EXCEEDED":"Subir: se superó el tamaño máximo","UPLOAD_FILE_IS_EMPTY":"Subir: archivo vacío","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Subir: tipo de archivo o firma no válidos","UPLOAD_MISSING_FILE_NAME":"Subir: falta el nombre del archivo","UPLOAD_INVALID_MEMORY_ID":"Subir: ID de contenido no válido","UPLOAD_MISSING_FILE_CONTENT":"Subir: Falta contenido del archivo","ASSET_NOT_FOUND":"Activo no encontrado","ASSET_NOT_ACCESSIBLE":"Activo no accesible","ASSET_MISSING_SESSION_ID":"Activo: ID de sesión faltante","ASSET_INVALID_FILE_NAME":"Activo: nombre de archivo no válido","INVITATION_NOT_FOUND":"Invitación no encontrada","INVITATION_NOT_ACCESSIBLE":"Invitación no accesible","INVITATION_ALREADY_ACCEPTED":"Invitación ya aceptada","INVITATION_ALREADY_REJECTED":"Invitación ya rechazada","INVITATION_MISSING_DESTINATION_EMAIL":"Invitación: falta el correo electrónico de destino","INVITATION_DESTINATION_EMAIL_INVALID":"Invitación: correo electrónico de destino no válido","INVITATION_MISSING_TAG":"Invitación: falta etiqueta","INVITATION_MISSING_PIN":"Invitación: falta el PIN","INVITATION_INVALID_PIN":"Invitación: PIN no válido","INVITATION_INVALID_TYPE":"Invitación: tipo no válido","INVITATION_MISSING_DESTINATION_NAME":"Invitación: falta el nombre del destino","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invitación: la etiqueta y el pin no se pueden cambiar","INVITATION_CANT_BE_CHANGED":"Intación: no se puede cambiar","ACTIONLOG_INVALID_USER_ID":"ID de usuario no válido","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Fecha de: formato no válido","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Fecha hasta: formato no válido","ACTIONLOG_INVALID_MEMORI_ID":"ID de memoria no válida","CONSUMPTIONLOG_INVALID_TYPE":"Tipo de registro no válido","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Fecha de: formato no válido","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Fecha hasta: formato no válido","CONSUMPTIONLOG_INVALID_USER_ID":"ID de usuario no válido","CONSUMPTIONLOG_INVALID_MEMORI_ID":"ID de memoria no válida","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notificaciones: Período de extracción del registro de chat no válido","PROCESS_INVALID_TYPE":"Tipo de proceso no válido","PROCESS_ALREADY_RUNNING":"Proceso ya en ejecución","PROCESS_NOT_FOUND":"Proceso no encontrado","IMPORTCSV_MISSING_ROWS":"Importación CSV: filas faltantes","IMPORTCSV_MISSING_CSV":"Importación CSV: Falta CSV","IMPORTCSV_MISSING_SEPARATOR":"Importación CSV: falta separador","IMPORTCSV_INVALID_SEPARATOR":"Importación CSV: separador no válido","IMPORTCSV_MISSING_HEADERS":"Importación CSV: faltan encabezados","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Importación CSV: falta el separador de variante de título","IMPORTCSV_INVALID_RECEIVER_ID":"Importación CSV: ID de receptor no válido","IMPORTCSV_INVALID_MEDIA_LINK":"Importación CSV: enlace multimedia no válido","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"Importación CSV: título del enlace no válido","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"Importación CSV: codificación de caracteres indetectable","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"Importación CSV: no se puede importar a Secret Memories","IMPORTTXT_MISSING_ROWS":"Importando TXT: filas faltantes","IMPORTTXT_INVALID_GRANULARITY":"Importar TXT: granularidad no válida","IMPORTTXT_INVALID_RECEIVER_ID":"Importar TXT: ID de receptor no válido","IMPORTTXT_INVALID_MEDIA_LINK":"Importar TXT: enlace multimedia no válido","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Importar TXT: título del enlace no válido","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"Importación TXT: codificación de caracteres indetectable","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"Importación TXT: No se puede importar a Secret Memories","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Importar TXT: límite de importación excedido","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Importar TXT: la importación en GPT-4 requiere una clave API","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Importar TXT: la importación requiere un plan de pago","IMPORTTXT_BILLING_DENIED_PERMISSION":"Importar TXT: no tienes suficientes créditos para la operación","EXPORTCSV_MISSING_CSV_SPECS":"Exportación CSV: faltan especificaciones CSV","EXPORTCSV_MISSING_SEPARATOR":"Exportación CSV: falta separador","EXPORTCSV_INVALID_SEPARATOR":"Exportación CSV: separador no válido","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Exportación CSV: falta el separador de variante de título","EXPORTCSV_MISSING_NEW_LINE_CHAR":"Exportación CSV: falta un carácter de nueva línea","EXPORTCSV_INVALID_NEW_LINE_CHAR":"Exportación CSV: carácter de nueva línea no válido","EXPORTCSV_MISSING_PASSWORD":"Exportación CSV: falta contraseña","EXPORTJSONL_MISSING_JSONL_SPECS":"Exportación JSONL: faltan especificaciones JSONL","EXPORTJSONL_MISSING_PLATFORM":"Exportación JSONL: plataforma faltante","EXPORTJSONL_INVALID_PLATFORM":"Exportación JSONL: plataforma no válida","EXPORTJSONL_MISSING_PASSWORD":"Exportación JSONL: falta contraseña","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"Exportación JSONL: la exportación requiere un plan pago","ANALYSIS_MISSING_QUERY":"Análisis: consulta faltante","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Análisis: No se pueden analizar recuerdos secretos","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Análisis: hacer coincidir la consulta del usuario requiere un pensamiento profundo","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Asignación de insignia: credenciales incorrectas o faltantes","BADGE_ASSIGNMENT_MISSING_REF_ID":"Asignación de insignia: falta el ID de referencia","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Asignación de insignia: resultado no encontrado","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Asignación de insignia: falta la URL de aserción","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Asignación de insignia: URL de insignia faltante","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Asignación de insignia: falta la URL del emisor","BADGE_ASSIGNMENT_INVALID_URL":"Asignación de insignia: URL no válida","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Asignación de insignia: destinatario faltante","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Asignación de insignia: tipo de destinatario desconocido","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Asignación de insignia: falta la identidad del destinatario","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Asignación de insignia: falta el tipo de hash del destinatario","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Asignación de insignia: tipo de hash del destinatario desconocido","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Asignación de insignia: identidad del destinatario incorrecta","BADGE_NOT_FOUND":"Insignia no encontrada","OUTCOME_NO_DCM_CONFIGURED":"Resultado: no hay ningún DCM configurado","OUTCOME_USER_BADGES_DISABLED":"Resultado: insignias de usuario deshabilitadas","COMPLETION_CONFIG_MISSING_NAME":"Configuración de terminaciones: falta nombre","COMPLETION_CONFIG_MISSING_PROVIDER":"Configuración de terminaciones: falta proveedor","COMPLETION_CONFIG_MISSING_ENDPOINT":"Configuración de terminaciones: falta punto final","COMPLETION_CONFIG_MISSING_API_KEY":"Configuración de terminaciones: falta clave API","COMPLETION_CONFIG_MISSING_MODEL":"Configuración de terminaciones: modelo faltante","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Configuración de terminaciones: se debe especificar al menos un tipo de terminaciones","COMPLETION_CONFIG_INVALID_NAME":"Configuración de terminaciones: nombre no válido","COMPLETION_CONFIG_INVALID_PURPOSE":"Configuración de terminaciones: tipo de terminaciones no válidas","COMPLETION_CONFIG_INVALID_ENDPOINT":"Configuración de terminaciones: punto final no válido","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Configuración de terminaciones: punto final inconsistente","COMPLETION_CONFIG_INVALID_PROVIDER":"Configuración de terminaciones: proveedor no válido","COMPLETION_CONFIG_NOT_FOUND":"Configuración de terminaciones: no encontrada","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Configuración de terminaciones: no accesible","COMPLETION_CONFIG_NAME_RESERVED":"Configuración de terminaciones: nombre reservado","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Configuración de terminaciones: el nombre ya existe","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Configuración de terminaciones: cambio de visibilidad no permitido"}}');const sG=tG({resources:{en:{translation:t(nG)},it:{translation:t(eG)},es:{translation:t(oG)},fr:{translation:t(rG)},de:{translation:t(iG)}},lng:"en",fallbackLng:"it",supportedLngs:["en","it","fr","es","de"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1}});sG.init();var aG=sG;c=o("85Hg2");function lG(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=(0,c.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,c.createElement)(le.Provider,{value:i},r)}var cG=({children:e})=>(0,s.jsx)(lG,{i18n:aG,children:e});const uG=({ownerUserName:e,ownerUserID:t,memoriName:n,memoriID:r,integrationID:i,tenantID:o,secretToken:a,sessionID:l,layout:u="DEFAULT",customLayout:d,showShare:h=!0,showCopyButton:p=!0,showTranslationOriginal:m=!1,showSettings:f=!0,showInstruct:g=!1,showTypingText:v=!1,showClear:y=!1,showOnlyLastMessages:_=!1,showInputs:S=!0,showDates:b=!1,showContextPerLine:x=!1,showLogin:w,height:C="100%",baseURL:E,apiURL:A="https://backend.memori.ai",engineURL:T="https://engine.memori.ai",tag:I,pin:M,context:R,initialQuestion:P,uiLang:N,spokenLang:O,multilingual:k,authToken:D,AZURE_COGNITIVE_SERVICES_TTS_KEY:L,enableAudio:B,defaultSpeakerActive:z=!0,disableTextEnteredEvents:F=!1,onStateChange:U,additionalInfo:j,customMediaRenderer:G,additionalSettings:H,userAvatar:V,useMathFormatting:W=!1})=>{var q,J,K;const[Y,X]=(0,c.useState)(),[Q,Z]=(0,c.useState)(),[ee,te]=(0,c.useState)(L),{t:ne}=xe();if(!(r&&t||n&&e))throw new Error("Identifier pair required: please provide either memoriID and ownerUserID or memoriName and ownerUserName");const re=$(A,T),ie=(0,c.useCallback)((async()=>{const e=E||(o.startsWith("https://")?o:`https://${o}`),t=await fetch(`${e}/api/speechkey`),n=await t.json();n.AZURE_COGNITIVE_SERVICES_TTS_KEY&&te(n.AZURE_COGNITIVE_SERVICES_TTS_KEY)}),[]);(0,c.useEffect)((()=>{L||ie()}),[L]);const oe=(0,c.useCallback)((async()=>{if(r&&t){const{memori:e,...n}=await re.backend.getMemoriByUserAndId(o,t,r);0===n.resultCode&&e?X(e):console.error("[MEMORI]",n,e)}else if(n&&e){const{memori:t,...r}=await re.backend.getMemori(o,e,n);0===r.resultCode&&t?X(t):console.error("[MEMORI]",r,t)}}),[r,t,n,e,o]);(0,c.useEffect)((()=>{oe()}),[oe,o]);const se=(0,c.useCallback)((async()=>{const e=await LU(o,E);e&&Z(e)}),[o,A]);return(0,c.useEffect)((()=>{se()}),[se]),(0,c.useEffect)((()=>{if(N)aG.changeLanguage(N.toLowerCase());else{const{lng:e,fallbackLng:t}=(()=>{const e=navigator.language;if(e){let t=e.split("-")[0];if(["en","it"].includes(t))return{lng:t,fallbackLng:"en"===t?"it":"en"}}return{lng:"en",fallbackLng:"it"}})();aG.changeLanguage(e).catch((()=>{aG.changeLanguage(t)}))}}),[N]),(0,s.jsx)(cG,{children:(0,s.jsxs)(Iz,{children:[(0,s.jsx)(Qu.Toaster,{position:"top-center",reverseOrder:!0}),Y?(0,s.jsx)(kU,{layout:u,customLayout:d,height:C,baseUrl:E||(o.startsWith("https://")?o:`https://${o}`),apiURL:A,engineURL:T,memori:{...Y,secretToken:a},ownerUserName:null!=e?e:Y.ownerUserName,ownerUserID:null!=t?t:Y.ownerUserID,tenantID:o,memoriLang:null!=O?O:null===(J=null===(q=Y.culture)||void 0===q?void 0:q.split("-"))||void 0===J?void 0:J[0],multilingual:k,tenant:Q,secret:a,sessionID:l,showShare:h,showCopyButton:p,showTranslationOriginal:m,showSettings:f,showInstruct:g,showTypingText:v,showClear:y,showOnlyLastMessages:_,showInputs:S,showDates:b,showContextPerLine:x,showLogin:null!=w?w:null==Y?void 0:Y.enableDeepThought,integration:null===(K=null==Y?void 0:Y.integrations)||void 0===K?void 0:K.find((e=>i?e.integrationID===i:!!e.publish&&"LANDING_EXPERIENCE"===e.type)),initialContextVars:R,initialQuestion:P,authToken:D,AZURE_COGNITIVE_SERVICES_TTS_KEY:ee||L,enableAudio:B,defaultSpeakerActive:z,disableTextEnteredEvents:F,onStateChange:U,additionalInfo:j,customMediaRenderer:G,additionalSettings:H,userAvatar:V,useMathFormatting:W,...I&&M?{personification:{tag:I,pin:M}}:{}}):(0,s.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsxs)("p",{style:{textAlign:"center",margin:"2rem auto",textTransform:"capitalize"},children:[ne("loading")||"Loading","..."]})})]})})};uG.propTypes={memoriName:t(l).string,memoriID:t(l).string,ownerUserName:t(l).string,ownerUserID:t(l).string,integrationID:t(l).string,tenantID:t(l).string.isRequired,secretToken:t(l).string,sessionID:t(l).string,layout:t(l).oneOf(["DEFAULT","FULLPAGE","TOTEM","WEBSITE_ASSISTANT","CHAT","HIDDEN_CHAT","ZOOMED_FULL_BODY"]),customLayout:t(l).any,showShare:t(l).bool,showCopyButton:t(l).bool,showTranslationOriginal:t(l).bool,showInstruct:t(l).bool,showInputs:t(l).bool,showDates:t(l).bool,showContextPerLine:t(l).bool,showSettings:t(l).bool,showClear:t(l).bool,showOnlyLastMessages:t(l).bool,showTypingText:t(l).bool,showLogin:t(l).bool,height:t(l).oneOfType([t(l).string,t(l).number]),baseURL:t(l).string,apiURL:t(l).string,engineURL:t(l).string,tag:t(l).string,pin:t(l).string,context:t(l).objectOf(t(l).any),initialQuestion:t(l).string,uiLang:t(l).oneOf(["en","it","fr","es","de","EN","IT","FR","ES","DE"]),spokenLang:t(l).string,multilingual:t(l).bool,authToken:t(l).string,enableAudio:t(l).bool,defaultSpeakerActive:t(l).bool,disableTextEnteredEvents:t(l).bool,AZURE_COGNITIVE_SERVICES_TTS_KEY:t(l).string,onStateChange:t(l).func,additionalInfo:t(l).objectOf(t(l).any),customMediaRenderer:t(l).func,additionalSettings:t(l).any,userAvatar:t(l).oneOfType([t(l).string,t(l).any]),useMathFormatting:t(l).bool};var dG=uG;class hG extends HTMLElement{connectedCallback(){const e=document.createElement("div"),n=document.createElement("div");n.setAttribute("id","memori-root"),e.appendChild(n),this.appendChild(e);const r=Object.keys(dG.propTypes).reduce(((e,t)=>(this.hasAttribute(t)&&(e[t]=this.getAttribute(t),"true"!==e[t]&&"false"!==e[t]||(e[t]="true"===e[t])),e)),{}),i=this.getAttribute("tenantId"),o=this.getAttribute("context")?.split(",")?.reduce(((e,t)=>{const[n,r]=t.split(":").map((e=>e.trim()));return{...e,[n]:r}}),{}),l=(e=>{try{return JSON.parse(e)}catch(e){return null}})(this.getAttribute("additionalInfo")||"{}")||{};i?t(a).render((0,s.jsx)(dG,{...r,context:o,tenantID:i,additionalInfo:l}),n):console.error("No tenantId attribute found")}}customElements.define("memori-client",hG)})();