1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4eb48ac6-de04-4052-8940-6372ec6b6e34",e._sentryDebugIdIdentifier="sentry-dbid-4eb48ac6-de04-4052-8940-6372ec6b6e34")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[93814],{19116:(e,t,s)=>{s.d(t,{X:()=>a});function a(e){return null==e.ageTier?{status:422,code:"chat_profile_required",message:"Finish your profile before chatting with a Soul."}:"child"===e.ageTier?{status:403,code:"chat_age_restricted",message:"You must be at least 13 to chat with a Soul."}:"teen"===e.ageTier&&!0!==e.guardianConsented?{status:403,code:"chat_guardian_consent_required",message:"Guardian consent is required before chatting with a Soul."}:null}},21585:(e,t,s)=>{s.d(t,{TC:()=>eJ,h1:()=>ss,Tm:()=>sa,qS:()=>st});let a=(e,t)=>t.map(t=>({term:t,kind:e})),i=(e,t)=>t.map(t=>({term:t,mode:e})),n=(e,t)=>Object.entries(t).flatMap(([t,s])=>s.map(s=>({term:s,mode:e,locale:t}))),r=a("image",["image","images","photo","photos","photograph","photographs","picture","pictures","portrait","portraits","selfie","selfies","avatar","avatars","mock-up","mock-ups","mockup","mockups","mock up","mock ups","imagem","imagens","fotografia","fotografias","retrato","retratos","imagen","imagenes","image","bild","bilder","portrat","portrats","immagine","immagini","ritratto","ritratti"]),o=[...a("pdf",["pdf","pdfs"]),...a("document",["document","documents","file","files","report","reports","invoice","invoices","arquivo","arquivos","ficheiro","ficheiros","documento","documentos","relatorio","relatorios","archivo","archivos","informe","informes","fichier","fichiers","rapport","rapports","datei","dateien","dokument","dokumente","bericht","berichte","file","documento","documenti","rapporto","rapporti"]),...a("spreadsheet",["spreadsheet","spreadsheets","workbook","workbooks","planilha","planilhas","hoja de calculo","hojas de calculo","tableur","tableur
1s","tabelle","tabellen","foglio di calcolo","fogli di calcolo"]),...a("presentation",["presentation","presentations","slide deck","slide decks","deck","decks","apresentacao","apresentacoes","presentacion","presentaciones","prasentation","prasentationen","presentazione","presentazioni"]),...a("audio",["audio","mp3","narration","narracao"]),...a("video",["video","videos","clip","clips","movie","movies","filme","film"])],l=a("email",["email","emails","e mail","e mails","message","messages","mail","mails","inbox","mensagem","correio eletronico","correo electronico","correo","mensaje","courriel","boite de reception","eingang","postfach","nachricht","posta elettronica","casella di posta","messaggio"]),d=[{family:"image_generation",objects:r,completions:i("created",["generated","created","rendered","made","prepared","prepped","gerei","criei","criado","criada","renderizei","fiz","gerada","criada","generado","generada","creado","creada","renderizado","renderizada","genere","cree","rendue","faite","generiert","erstellt","gerendert","generato","generata","creato","creata","renderizzato","renderizzata"])},{family:"image_delivery",objects:r,completions:i("delivered",["attached","uploaded","included","shown","provided","available","appear below","appears below","here is","here's","here are","is below","are below","download","there it is","there they are","ready","anexei","anexada","anexado","incluida","incluido","aqui","pronta","pronto","adjunte","adjunta","adjunto","incluida","incluido","lista","listo","jointe","joint","incluse","inclus","ici","prete","pret","angehangt","hochgeladen","hier","fertig","allegata","allegato","caricata","caricato","qui"])},{family:"file_delivery",objects:o,completions:[...i("created",["generated","created","made","rendered","exported","prepared","produced","converted","finished","completed","gerei","gerado","gerada","criei","renderizei","exportei","terminei","generado","creado","renderizado","exportado","terminado","genere","cree","rendu","exporte","termine","generiert","erstellt","exportiert","fertiggestellt","generato","creato","esportato","completato"]),...i("delivered",["attached","uploaded","included","saved","provided","added","available","downloaded","find","here is","here's","here are","is below","are below","download","put","placed","ready","done","complete","awaits","anexei","anexado","incluido","aqui","pronto","adjuntado","incluido","listo","joint","inclus","ici","pret","angehangt","hier","fertig","allegato","qui","pronto"])]},{family:"email_send",objects:l,completions:i("mutated",["sent","emailed","delivered","forwarded","queued","went out","gone out","on its way","received","landed","enviei","mandei","encaminhei","enviado","enviada","entregue","mandado","reenviado","envoye","transmis","livre","gesendet","verschickt","zugestellt","inviato","inviata","spedito","spedita","consegnato","consegnata"])},{family:"gmail_draft_create",objects:a("gmail_draft",["draft","drafts","gmail","gmail draft","draft in gmail","draft to gmail","rascunho","borrador","brouillon","gmail entwurf","bozza gmail"]),completions:i("mutated",["created","made","saved","prepared","open","review","criei","criado","criada","salvei","preparei","creado","guardado","preparado","cree","enregistre","prepare","erstellt","gespeichert","creata","salvata"])},{family:"calendar_write",objects:a("calendar_event",["calendar","calendar event","event","events","meeting","meetings","appointment","appointments","calendario","evento","reuniao","compromisso","reunion","cita","calendrier","rendez vous","kalender","termin","riunione","appuntamento"]),completions:i("mutated",["added","created","updated","changed","deleted","cancelled","canceled","rescheduled","on your calendar","criei","criado","criada","adicionei","atualizei","alterei","apaguei","cancelei","remarquei","creado","anadido","actualizado","eliminado","cancelado","reprogramado","cree","ajoute","modifie","supprime","annule","erstellt","hinzugefugt","aktualisiert","geloscht","abgesagt","creato","aggiunto","aggiornato","eliminato","annullato"])},{family:"social_publish",objects:a("social_post",["post","posts","social post","social posts","publication","publications","publicacao","publicacion","mise a jour","beitrag","pubblicazione"]),completions:i("mutated",["posted","published","submitted","live","postei","publiquei","publicado","publicada","posteado","publie","poste","veroffentlicht","pubblicato"])},{family:"project_file_write",objects:a("project_file",["project file","project files","file in the project","files in the project","file in your project","files in your project","arquivo do projeto","ficheiro do projeto","archivo del proyecto","fichero del proyecto","fichier du projet","projektdatei","file del progetto"]),completions:i("mutated",["saved","renamed","deleted","removed","updated","replaced","uploaded","new name","salvei","renomeei","apaguei","removi","atualizei","guardado","renombrado","eliminado","actualizado","enregistre","renomme","supprime","modifie","gespeichert","umbenannt","geloscht","aktualisiert","salvato","rinominato","eliminato","aggiornato"])},{family:"scheduled_task_write",objects:a("scheduled_task",["reminder","reminders","follow up","follow ups","scheduled task","
1scheduled tasks","recurring task","recurring tasks","automation","automations","lembrete","tarefa agendada","recordatorio","tarea programada","rappel","tache planifiee","erinnerung","geplante aufgabe","promemoria","attivita pianificata"]),completions:i("mutated",["scheduled","set up","created","active","agendei","agendado","agendada","criei","programado","creado","planifie","cree","geplant","erstellt","pianificato","creato"])},{family:"soul_avatar_set",objects:a("soul_avatar",["avatar","avatars","profile picture","profile pictures","profile photo","profile photos","profile image","profile images","display picture","foto de perfil","imagem de perfil","imagen de perfil","photo de profil","profilbild","immagine del profilo"]),completions:n("mutated",{en:["set","updated","changed","swapped","replaced","applied","adopted"],pt:["atualizei","atualizado","alterei"],es:["definido","actualizado","cambiado"],fr:["modifie"],de:["aktualisiert","geandert"],it:["aggiornato","aggiornata"]})},{family:"soul_form_update",objects:a("soul_form",["soul form","soul forms","soul editor","soul settings","soul profile","form fields","profile fields","editor fields"]),completions:n("mutated",{en:["saved","applied","persisted","committed","updated","changed"],pt:["salvei","salvo"],es:["guardado","aplicado"],fr:["enregistre"],de:["gespeichert"],it:["salvato"]})}],u=["soul_avatar_set","soul_form_update"],c={one:1,two:2,three:3,four:4,five:5,um:1,uma:1,dois:2,duas:2,tres:3,cuatro:4,cinco:5,uno:1,dos:2,un:1,deux:2,trois:3,quatre:4,cinq:5,ein:1,zwei:2,drei:3,vier:4,funf:5,due:2,tre:3,quattro:4,cinque:5},h=/(?:(?<=[.!?;])\s+|\n+|\s+(?:but|however|yet|mas|pero|sino|mais|pourtant|aber|doch|ma)\s+|\s*(?<!there it is )(?<!there they are )(?<!here it is )(?<!here they are )[ââ]\s*)/giu,m=/^(?:(?:hey|hi|hello|well|so|sure|okay|ok),?\s+)*(?:[¿]|(?:did|do|does|should|shall|can|could|would|will|am|is|are|was|were|have|has|had|want|may|might|must|which|what|when|where|who|how|why|anything|okay|ok|right|habe|hast|hat|haben|habt|hatte|hatten|bin|bist|ist|sind|seid|war|waren|est-ce|avez|avons|as-tu|a-t-il|ai-je|puis-je|posso|puoi|possiamo|vuoi|quer|queres|querem|pode|podemos)\b)/iu,p=/^(?:i|we)\s+(?:can|could|would|may|might)\b/iu,f=/^(?:any\s+(?:idea|chance)\b|(?:i|we)\s+(?:wonder|(?:am|are|was|were)\s+wondering)\s+(?:if|whether)|(?:you\s+want|before|after|once|if|suppose|supposing|assuming)\b)/iu,b=/^(?:(?:i|we|eu|yo|je|ich|wir|io|noi)(?:\b|['â])|(?:the|your|our|my)\s+[^,;.!?ââ]{1,60}?\s+(?:is|are|was|were|has|have)\b)/iu;function g(e){return e.split(/(?<=[.!?])\s+|\n+/u).flatMap(e=>{let t=e.trim();if(t.endsWith("?")){for(let e of t.matchAll(h)){let s=t.slice(e.index+e[0].length).trim();if(b.test(s)&&!f.test(s)&&!p.test(s))return[t.slice(0,e.index),...g(s)]}if(m.test(t)||p.test(t)||f.test(t))return[t];let e=[...t.matchAll(/[,;]|(?<!\d):|:(?!\d)|[ââ]|\s-\s|\b(?:and|so|but|then)\b/giu)].find(e=>m.test(t.slice(e.index+e[0].length).trim().replace(/^(?:or|and)\s+/iu,"")));return e?[...t.slice(0,e.index).split(h),t.slice(e.index+e[0].length)]:[t]}return t.split(h)}).map(e=>e.trim()).filter(Boolean)}let y=/(?:^|\s)(?:not|never|cannot|can't|couldn't|didn't|doesn't|don't|hasn't|haven't|isn't|wasn't|weren't|nao|nunca|jamais|ne|nicht|kein|nie|non)(?:\s|$)/iu,w=/^(?:i|we)\s+(?:(?:do\s+not|don't|did\s+not|didn't)\s+have|have\s+no)\b/iu,v=/(?:,|\band\b|\bor\b)\s+(?:(?:i|we|you|they|it)\b|(?:your|the|this|that|our|my)\s+[^,;.!?]{0,60}?\s+(?:is|are|was|were|has|have)\b)/iu,_=/^attached\s+(?:files?|documents?|spreadsheets?|transcripts?|data\s+extracts?)\b/iu,x=/^available\b/iu,k=/\b(?:statement|claim|sentence|phrase)\b[^.!?]{0,100}\b(?:is|was)\s+(?:true|accurate|correct|factual)\b|\b(?:statement|claim)\s+is\s+(?:true|accurate|correct)\s*:/iu,j=/^(?:the\s+)?(?:sentence|phrase|example|translation|quotation|quote|claim|statement)\b/iu,$=/^(?:translate|rewrite|paraphrase|quote|repeat|explain|define|analy[sz]e|grammar\s+check)\b/iu,q=/^(?:do\s+not|don't|never|avoid|refrain\s+from)\s+(?:say(?:ing)?|claim(?:ing)?|stat(?:e|ing)|writ(?:e|ing)|tell(?:ing)?|assert(?:ing)?|pretend(?:ing)?|mention(?:ing)?|us(?:e|ing)|repeat(?:ing)?)\b/iu,M=/\b(?:said|wrote|quoted|reported|asked|told\s+(?:me|us|you|them))\b[^.!?]{0,120}$/iu,z=/^(?:for\s+(?:example|instance)|as\s+an?\s+(?:example|instance)|examples?\s*:|an?\s+example\s+(?:is|
1would\s+be))\b/iu,S=/^(?:(?:classification|classifier|processing|pipeline|model|recognition|analysis|prompts?|descriptions?|captions?|section|code|component|feature|search|fan\s+guide)\b|-(?:themed|inspired)\b)/iu,L=/\b(?:document|report)\s+(?:outline|section|summary|analysis|template|parser|builder|component|pipeline|clearer|better|worse|more|less|of\b)/iu,O=/^(?:(?:(?:is|was)\s+(?:(?:done|finished|still)\s+)?)|(?:(?:has\s+)?(?:finished|completed)\s+))?(?:summary|analysis|description|review|outline|section|loading|parser|pipeline|classification|processing|format|specification|guide|reference|prompt)\b/iu,N=/\b(?:explains?|defines?|contains?|depicts?|shows?|how|readable|formatting|offline)\b|\bby\s+(?:a|an|the)\b|\b(?:in|from)\s+(?:a|an|the)\s+(?:paper|project|source|document)\b/iu,I=/\b(?:i|we)(?:['â]ve|\s+have)?\b|\b(?:for\s+you|you\s+requested|requested\s+by\s+you|below|above|here|this\s+message|available\s+for\s+download)\b|\byour\s+(?:pdf|file|document|report|image|photo|picture|avatar)\b[^.!?]{0,40}\b(?:available|ready|done|attached)\b/iu,A=/\b(?:pdf|file|document|report|image|photo|picture|avatar)s?\b[^.!?]{0,50}\b(?:is|are)\s+(?:your|the)\s+requested\s+output\b/iu,C=/\b(?:pdf|file|document|report|image|photo|picture|avatar)s?\b[^.!?]{0,50}\b(?:has\s+been|have\s+been|foi|foram|ha\s+sido|han\s+sido|a\s+ete|ont\s+ete|wurde|wurden|e\s+stato|e\s+stata|sono\s+stati|sono\s+state)\b[^.!?]{0,30}\b(?:generated|created|produced|converted|prepared|prepped|provided|attached|uploaded|saved|added|gerado|gerada|criado|criada|generado|generada|creado|creada|adjuntado|adjuntada|genere|cree|joint|jointe|generiert|erstellt|angehangt|generato|generata|creato|creata|allegato|allegata)\b/iu,K=/\bto\s+(?:create|generate|make|render|edit|design|update)\b/iu,T=/\b(?:prompts?|descriptions?|ideas?|feedback|notes?|checklists?|instructions?|captions?|alt\s+texts?|copy|text|guides?)\b[^.!?]{0,80}\b(?:for|about|of|on|from|to|based)\b/iu,D=/(?:^|\s)(?:(?:i|we)(?:'ve|'d|'m|'re)?|eu|yo|nosotros|nosotras|je|j'ai|nous|ich|wir|io|noi|ho)(?:\s|$)/iu,E=/\b(?:saw|see|read|confirmed|confirm|think|thought|believe|believed|learned|noticed|observed|heard|understand|understood|know|knew)(?:\s+that)?\b/giu,U=/^(?:just|already|successfully|now|recently|finally|done|all\s+set|here|there|please|then|so)*$/iu,F=/\b(?:yesterday|last\s+(?:week|month|year|night)|in\s+(?:19|20)\d{2}|after\s+the\s+outage|historically|previously)\b/iu,W=/\b(?:for\s+you|your\s+(?:calendar|gmail|inbox|project)|this\s+message|here|below|above|now|successfully)\b/iu,R=/\b(?:is|are|gets?|becomes?)\b[^.!?]{0,40}\b(?:automatically|generally|typically|usually|through|via|only\s+after|in\s+the\s+(?:database|system|api))\b/iu,G=/(?:^|\s)(?:the|this|that|your|my|our|o|os|as|el|la|los|las|le|les|ce|cette|der|die|das|il|lo|i|gli)(?:\s+[\p{L}\p{N}'-]+){0,4}\s*$/iu,B=/^(?:gerada|criada|anexada|enviada|entregue|incluida|salva|renomeada|agendada)$/iu,Y=["uploaded","attached","saved","converted","downloaded","source","input","anexado","anexada","adjuntado","adjuntada","joint","jointe","angehangt","angehangte","angehangten","hochgeladen","allegato","allegata"],Z=["in","use","using","analyze","analyzed","analysed","analisei","analice","analyse","dans","im","no","na","nel","nella","analizzato","analizzata"],Q=["you sent","that you sent","which you sent","que voce enviou","que enviaste","que vous avez envoye","che hai inviato"],P=/\b(?:attached|download|file|pdf|ready|done|complete|finished|uploaded|exported)\b/iu,V=[{family:"gmail_draft_create",objectKind:"gmail_draft",pattern:/^(?:(?:your|the)\s+(?:gmail\s+)?draft\s+is\s+(?:now\s+)?(?:in\s+(?:your\s+)?gmail|ready)|i\s+put\s+(?:the|your)\s+draft\s+in\s+(?:your\s+)?gmail|it\s+is\s+(?:now\s+)?in\s+your\s+gmail(?:\s+now)?)$/iu},{family:"calendar_write",objectKind:"calendar_event",pattern:/^(?:(?:your|the)\s+meeting\s+is\s+(?:on\s+(?:the|your)\s+calendar|booked)|(?:your|the)\s+calendar\s+(?:now\s+)?has\s+(?:the|your)\s+meeting)$/iu},{family:"email_send",objectKind:"email",pattern:/^(?:(?:your|the)\s+(?:email|message)\s+(?:is\s+in\s+(?:the|your)\s+inbox|went\s+through)|[\p{L}\p{N}@._+-]+(?:\s+[\p{L}\p{N}@._+-]+){0,2}\s+has\s+(?:the|your)?\s*(?:email|message)\s+now)$/iu},{family:"project_file_write",objectKind:"project_file",pattern:/^(?:(?:your|the)\s+(?:project\s+)?file\s+is\s+(?:(?:now\s+)?in\s+your\s+project|ready)|i\s+put\s+it\s+in\s+your\s+project)$/iu},{family:"file_delivery",objectKind:"document",pattern:/^(?:you\s+can\s+download\s+it\s+below|here\s+is\s+your\s+download)$/iu},{family:"scheduled_task_write",objectKind:"scheduled_task",pattern:/^(?:(?:your|the)\s+(?:scheduled\s+)?(?:task|reminder)s?\s+(?:is|are)\s+(?:set|scheduled|ready))$/iu}],X=[{terms:["sent","delivered","emailed","forwarded","received","took care of sending","email enviado","e-mail enviado","correo enviado","courriel envoye","e mail envoye","e-mail envoye","e mail gesendet","e-mail gesendet","email inviata","email inviato"],families:["email_send"],mode:"mutated"},{terms:["draft is now in your gmail","draft is in your gmail","in your gmail"],families:["gmail_draft_create"],mode:"mutated"},{terms:["published","posted","live now","post publicado"],families:["social_publish"],mode:"mutated"},{terms:["calendar updated","meeting added","evento criado"],families:["calendar_write"],mode:"mutated"},{terms:["saved to your project","renamed","project saved"],families:["project_file_write"],mode:"mutated"},{terms:["attached","attachment ready"],families:["image_delivery","file_delivery"],mode:"delivered"},{terms:["done","all set","ready","finished","complete","here it is","here they are","here you go","pronto","pronta","listo","lista","pret","prete","fertig"],mode:"status"},{terms:["in your inbox","na sua caixa de entrada","en tu bandeja","has the email now","has your email now","inbox"],families:["email_send"],mode:"mutated"}];function H(e){return e.normalize("NFKD").replace(/[\u0300-\u036f]/gu,"").replace(/[\u2018\u2019]/gu,"'").toLocaleLowerCase("en-US").replace(/[^\p{L}\p{N}@._+?'!,;:-]+/gu," ").trim().replace(/\s+/gu," ")}function J(e){return void 0!==e&&/[\p{L}\p{N}_]/u.test(e)}let ee=new Set(d.flatMap(e=>e.completions.map(e=>H(e.term)).filter(e=>/^\p{L}+(?:ado|ada|ido|ida)$/u.test(e))));function et(e,t){let s=[];for(let a of t){let t=H(a.term),i=0;for(;i<=e.length-t.length;){let n=e.indexOf(t,i);if(n<0)break;let r=n+t.length;J(e[n-1])||J(e[r])||s.push({entry:a,index:n,end:r}),i=n+Math.max(t.length,1)}}return Array.from(new Map(s.map(e=>
1[`${e.index}:${e.end}:${e.entry.kind??""}:${H(e.entry.term)}`,e])).values()).sort((e,t)=>e.index-t.index)}function es(e,t){return et(e,t.map(e=>({term:e}))).length>0}function ea(e,t){return e.slice(t.end,t.end+96).trimStart()}function ei(e){return e.replace(/```[\s\S]*?(?:```|$)/gu,e=>" ".repeat(e.length)).replace(/`[^`\n]*`/gu,e=>" ".repeat(e.length)).replace(/^\s*>[^\n]*(?:\n|$)/gmu,e=>" ".repeat(e.length))}function en(e,t){let s=e.trim();if(!s)return!0;if(k.test(s))return!1;if(s.endsWith("?")||z.test(s)||q.test(s)||j.test(s))return!0;if($.test(s)){let e=s.slice(0,t);if(!/\b(?:after|because|since|when)\b/iu.test(e))return!0}let a=s.slice(0,t);if(M.test(a)||/\b(?:you|she|they|the\s+user)\s+$/iu.test(a)||/\bhe\s+$/iu.test(a)&&!eh(a,s.slice(t)))return!0;if(/^(?:if|unless|provided\s+that|as\s+long\s+as)\b/iu.test(s))return!/^if\s+you\s+(?:were|are)\s+(?:wondering|curious)\b/iu.test(s);if(/^whether\b/iu.test(s))return!/^whether\s+or\s+not\s+you\s+(?:expected|wanted|believed|knew)\b/iu.test(s);let i=s.match(w);if(i&&t>i[0].length){let e=s.slice(i[0].length,t),n=s.slice(t),r=v.test(e),o=/\b(?:any|some|the|other|our|my|your|a|an)\s+$/iu.test(a)&&_.test(n),l=x.test(n)&&!function(e){let t=0;for(let s of e)if("("===s&&(t+=1),")"===s&&(t=Math.max(0,t-1)),","===s&&0===t)return!0;return!1}(e);if(!r&&(o||l))return!0;let d=e.split(/\s+/u).slice(-5).join(" ");return y.test(d)}let n=a.split(/\s+/u).slice(-5).join(" "),r=/(?:^|\s)no(?:\s+(?:he|ha|han|hemos|was|were|is|are|has|have|will|did))?\s*$/iu.test(a)||/^no\s+(?:emails?|pdfs?|files?|documents?|images?|messages?)\b[^.!?]{0,50}\b(?:was|were|is|are|has|have)\s*$/iu.test(a);return y.test(n)||r}function er(e){return u.includes(e)}let eo=Object.values({en:{conditionalOpeners:["once","after","when","whenever","until","as soon as"],irrealisGovernors:["will","going to","gets"],irrealisGovernorPatterns:["won['â]?t","\\S*['â]ll"]},pt:{conditionalOpeners:["depois que","quando","assim que","logo que","uma vez que","ate que","sempre que"],irrealisGovernors:["sera","serao","vai","vao","ficara","ficarao","ira","irao"]},es:{conditionalOpeners:["una vez que","cuando","despues de que","despues que","en cuanto","hasta que","siempre que"],irrealisGovernors:["sera","seran","quedara","quedaran","va a","van a","ira","iran"]},fr:{conditionalOpeners:["une fois que","quand","lorsque","des que","jusqu'a ce que","apres que"],irrealisGovernors:["sera","seront","va","vont","restera"]},de:{conditionalOpeners:["nachdem","sobald","wenn","sowie","bis"],irrealisGovernors:["wird","werden","wirst"]},it:{conditionalOpeners:["una volta che","quando","dopo che","appena","non appena","finche","fino a quando"],irrealisGovernors:["sara","saranno","verra","verranno"]}});function el(e){return e.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&").replace(/\s+/gu,"\\s+")}function ed(e){return[...new Set(e)].join("|")}let eu=RegExp(`(?:^|\\s)(?:${ed(eo.flatMap(e=>[...e.irrealisGovernors.map(el),...e.irrealisGovernorPatterns??[]]))})(?:\\s+\\S+){0,3}\\s+$`,"iu"),ec=RegExp(`^(?:${ed(eo.flatMap(e=>e.conditionalOpeners.map(el)))})\\b`,"iu");function eh(e,t){if(!/(?:^|\s)he\s+$/iu.test(e))return!1;let s=t.split(/\s+/u)[0]??"";return ee.has(H(s))}let em={image:3,pdf:5,document:1,spreadsheet:5,presentation:5,audio:5,video:5,email:3,gmail_draft:5,calendar_event:3,social_post:3,project_file:5,scheduled_task:5,soul_avatar:3,soul_form:5};function ep(e,t){let s=e.slice(Math.max(0,t-40),t).trim(),a=s.split(/\s+/u).at(-1)?.replace(/[^\p{L}\p{N}]/gu,"");if(a){if(/^\d{1,3}$/u.test(a)){let e=Number.parseInt(a,10);return e>0?e:void 0}return c[a]}}let ef=new Set(["a","an","and","additional","another","as","different","document","email","file","for","in","image","avatar","into","it","my","message","of","our","pdf","photo","picture","portrait","report","the","this","that","to","with","your","one","second","third","fourth","two","three","four","five"]);function eb(e){if(!e)return[];let t=e.replace(/\s+\b(?:with|about|regarding|using|at|on|for)\b[\s\S]*$/iu,"").replace(/[.!?;:]+$/gu,"").trim();return!t||/^(?:the|this|that|your)\s+(?:emails?|messages?|mails?)$/iu.test(t)?[]:Array.from(new Set(t.split(/\s*(?:,\s*(?:and\s+)?|\s+and\s+|&)\s*/iu).map(e=>
1e.replace(/^and\s+/iu,"").trim()).filter(Boolean)))}function eg(e,t,s,a,i){return[[...e].sort().join("|"),t??"",s??"",H(a??""),[...i??[]].map(H).sort().join("&")].join(":")}function ey(e,t){if(!t.includes("email_send"))return;let s=H(e),a=s.match(/\b(?:emailed|sent|delivered|forwarded)\s+(?:(?:it|this|that)\s+)?to\s+(.{1,120})$/iu)?.[1],i=s.match(/\bemailed\s+(?!it\b|this\b|that\b)(.{1,80})$/iu)?.[1],n=e.match(/^\s*([\p{L}\p{N}@._+-]+(?:\s+[\p{L}\p{N}@._+-]+){0,2})\s+has\s+(?:(?:the|your)\s+)?(?:email|message)\s+now/iu),r=e.match(/^(?:\s*(?:the|this|your)\s+(?:email|message)\s+is\s+in\s+)?([\p{L}\p{N}@._+-]+)(?:['â]s|s)\s+inbox/iu),o=e.match(/^\s*([\p{L}\p{N}@._+-]+(?:\s+[\p{L}\p{N}@._+-]+){0,2})\s+received\b/iu),l=eb(a??i??n?.[1]??r?.[1]??o?.[1]);return l.length>0?l:void 0}let ew=/(?:(?<=[.!?;])\s+|\n+)/gu,ev=[{operation:"search",pattern:/^(?:now\s+)?searching\s+(?:(?:the\s+)?(?:web|internet)(?:\s+for\s+(?:(?:both|all|the\s+two|these|those)\s+)?(?:links?|urls?))?|(?:(?:both|all|the\s+two|these|those)\s+)?(?:links?|urls?))\b/giu},{operation:"search",pattern:/(?:^|[.!?;]\s+)(?:(?:just|successfully)\s+)?searched\s+(?:(?:both|all|the\s+two|these|those|those\s+two)\s+)?(?:links?|urls?)\b|\b(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+)*searched\s+(?:(?:both|all|the\s+two|these|those|those\s+two)\s+)?(?:links?|urls?)\b/giu},{operation:"search",pattern:/\b(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+)*(?:(?:did|ran)\s+a\s+search\s+(?:online|on\s+the\s+(?:web|internet))|used\s+(?:a\s+)?(?:web|internet|online)\s+search|used\s+(?:google|bing|duckduckgo)\s+to\s+search(?:\s+[^.!?;\n]{0,72})?|searched\s+(?:(?:once|twice|(?:one|two|three|four|five|six|seven|eight|nine|ten|[1-9]\d{0,2})\s+times?)\s+(?:online|on\s+the\s+(?:web|internet))|(?:online|on\s+the\s+(?:web|internet))\s+(?:once|twice|(?:one|two|three|four|five|six|seven|eight|nine|ten|[1-9]\d{0,2})\s+times?)))\b/giu},{operation:"search",pattern:/\b(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+)*(?:searched\s+(?:(?:the\s+)?(?:web|internet)\b|online\b|[^.!?;\n]{0,72}\b(?:online|on\s+the\s+(?:web|internet))\b)|(?:ran|did|completed|performed|conducted)\s+(?:(?:a|one|two|three|four|five|six|seven|eight|nine|ten|[1-9]\d{0,2})\s+(?:(?:different|separate|distinct)\s+)?)?(?:web|internet|online)\s+(?:search(?:es)?|research)|looked\s+[^.!?;\n]{0,56}\s+up\s+(?:online|on\s+the\s+(?:web|internet))|checked\s+(?:the\s+)?(?:web|internet)|googled\s+(?:it|that|[^.!?;\n]{1,48}))\b/giu},{operation:"search",pattern:/\b(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+)*(?:researched\s+[^.!?;\n]{1,72}\s+(?:online|on\s+the\s+(?:web|internet))|did\s+(?:some\s+)?research\s+(?:online|on\s+the\s+(?:web|internet))|browsed\s+online|looked\s+[^.!?;\n]{1,56}\s+up\s+(?:on\s+)?(?:google|bing|duckduckgo)|ran\s+(?:a\s+)?(?:google|bing|duckduckgo)\s+search|searched\s+(?:(?:on|via|with)\s+)?(?:google|bing|duckduckgo)|checked\s+(?:google|bing|duckduckgo)|queried\s+(?:the\s+)?(?:web|internet)|(?:found|got)\s+[^.!?;\n]{1,72}\s+(?:online|from\s+the\s+(?:web|internet)))\b/giu},{operation:"search",pattern:/\b(?:(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+)*used|(?:i(?:['â]m|\s+am)|we(?:['â]re|\s+are))\s+(?:(?:currently|now|actively)\s+)*using)\s+(?:(?:my|our|the)\s+)?(?:(?:web(?:[- ]based)?|internet)\s+(?:access\s+)?(?:tool|ability)|(?:web|internet)\s+access)\s+(?:(?:once|twice|one|two|three|four|five|six|seven|eight|nine|ten|[1-9]\d{0,2})(?:\s+times?)?\s+)?(?:to\s+(?:search|browse)\s+(?:the\s+)?(?:web|internet)|to\s+run\s+(?:a\s+)?(?:web|internet|online)\s+search|to\s+check(?:\s+[^.!?;\n]{0,32})?\s+(?:online|on\s+the\s+(?:web|internet))|to\s+look\s+[^.!?;\n]{0,32}\s+up\s+(?:online|on\s+the\s+(?:web|internet))|for\s+(?:(?:a\s+)?(?:web|internet|online)\s+(?:search|research)|searching\s+(?:the\s+)?(?:web|internet))|and\s+(?:(?:i|we)\s+)?(?:searched|browsed)\s+(?:the\s+)?(?:web|internet))\b/giu},{operation:"search",pattern:/\b(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+)*(?:(?:checked|looked|verified|confirmed)(?:\s+[^.!?;\n]{1,56})?\s+(?:online|on\s+the\s+(?:web|internet))|browsed\s+(?:the\s+)?(?:web|internet))\b/giu},{operation:"search",pattern:/\b(?:i(?:['â]m|\s+am)|we(?:['â]re|\s+are))\s+(?:(?:currently|now|actively)\s+)*(?:searching\s+(?:the\s+)?(?:web|internet)|running\s+(?:a\s+)?(?:web|internet|online)\s+search)\b/giu},{operation:"search",pattern:/\[\s*(?:now\s+)?searching\s+(?:(?:the\s+)?(?:web|internet)|(?:(?:both|all|the\s+two|these|those)\s+)?(?:links?|urls?))\b/giu},{operation:"search",pattern:/(?:^|[.!?;]\s+)(?:(?:just|successfully)\s+)?searched\s+(?:the\s+)?(?:web|internet)\b|\b(?:the\s+)?(?:web|internet|online)\s+search\s+(?:is\s+)?(?:complete|completed|done|finished|successful)\b|\bhere(?:['â]s|\s+is)\s+what\s+(?:i|we)\s+found\s+(?:online|on\s+the\s+(?:web|internet))\b/giu},{operation:"search",pattern:/\b(?:(?:according\s+to|based\s+on)\s+(?:my|our)\s+(?:web|internet|online)\s+search|(?:my|our|the)\s+(?:web|internet|online)\s+search\s+(?:found|returned|showed|produced))\b/giu},{operation:"read_complete_youtube",pattern:/\b(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+)*(?:read|reviewed|opened|checked|examined|fetched)\s+(?:(?:the\s+)?(?:full|entire|complete)\s+(?:youtube(?:\s+video)?(?:['â]s)?\s+)?(?:transcript|captions?|subtitles?)|(?:the\s+)?youtube(?:\s+video)?(?:['â]s)?\s+(?:transcript|captions?|subtitles?)\s+(?:in\s+full|in\s+its\s+entirety|completely))\b/giu},{operation:"read_complete_youtube",pattern:/\b(?:i(?:['â]m|\s+am)|we(?:['â]re|\s+are))\s+(?:(?:currently|now|actively)\s+)*(?:reading|reviewing|opening|checking|examining|fetching)\s+(?:the\s+)?(?:full|entire|complete)\s+(?:youtube(?:\s+video)?(?:['â]s)?\s+)?(?:transcript|captions?|subtitles?)\b/giu},{operation:"read_multiple_youtube",pattern:/\b(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+)*(?:read|reviewed|opened|checked|examined|fetched)\s+(?:(?:(?:(?:both|all|two|three|four|five|six|seven|eight|nine|ten|[2-9]\d{0,2})\s+)?youtube(?:\s+videos?)?(?:['â]s)?\s+transcripts)|(?:(?:both|all|two|three|four|five|six|seven|eight|nine|ten|[2-9]\d{0,2})\s+)?transcripts\s+(?:for|from|of|on)\s+(?:(?:the|these|those)\s+)?youtube\s+videos?)\b/giu},{operation:"read_multiple_youtube",pattern:/\b(?:i(?:['â]m|\s+am)|we(?:['â]re|\s+are))\s+(?:(?:currently|now|actively)\s+)*(?:reading|reviewing|opening|checking|examining|fetching)\s+(?:(?:(?:(?:both|all|two|three|four|five|six|seven|eight|nine|ten|[2-9]\d{0,2})\s+)?youtube(?:\s+videos?)?(?:['â]s)?\s+transcripts)|(?:(?:both|all|two|three|four|five|six|seven|eight|nine|ten|[2-9]\d{0,2})\s+)?transcripts\s+(?:for|from|of|on)\s+(?:(?:the|these|those)\s+)?youtube\s+videos?)\b/giu},{operation:"read_youtube",pattern:/\b(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+)*(?:read|reviewed|opened|checked|examined|fetched)\s+(?:(?:(?:the|this|that|both|two)\s+)?youtube(?:\s+videos?)?(?:['â]s)?\s+(?:transcripts?|captions?|subtitles?)|(?:(?:the|this|that|both|two)\s+)?(?:transcripts?|captions?|subtitles?)\s+(?:for|from|of|on)\s+(?:(?:the|this|that|both|two)\s+)?youtube(?:\s+videos?)?)\b/giu},{operation:"read_youtube",pattern:/\b(?:i(?:['â]m|\s+am)|we(?:['â]re|\s+are))\s+(?:(?:currently|now|actively)\s+)*(?:reading|reviewing|opening|checking|examining|fetching)\s+(?:(?:(?:the|this|that|both|two)\s+)?youtube(?:\s+videos?)?(?:['â]s)?\s+(?:transcripts?|captions?|subtitles?)|(?:(?:the|this|that|both|two)\s+)?(?:transcripts?|captions?|subtitles?)\s+(?:for|from|of|on)\s+(?:(?:the|this|that|both|two)\s+)?youtube(?:\s+videos?)?)\b/giu},{operation:"watch_youtube",pattern:/\b(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+)*(?:watched|viewed|played)\s+(?:(?:the|this|that)\s+)?(?:(?:linked|web|online)\s+(?:youtube\s+)?videos?|youtube\s+videos?)\b/giu},{operation:"watch_youtube",pattern:/\b(?:i(?:['â]m|\s+am)|we(?:['â]re|\s+are))\s+(?:(?:currently|now|actively)\s+)*(?:watching|viewing|playing)\s+(?:(?:the|this|that)\s+)?(?:(?:linked|web|online)\s+(?:youtube\s+)?videos?|youtube\s+videos?)\b/giu},{operation:"read_complete_page",pattern:/\b(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+)*(?:read|opened|checked|reviewed|examined|fetched|loaded|accessed)\s+(?:(?:the\s+)?(?:full|entire|complete)\s+(?:web\s*(?:page|site)|webpage|website|online\s+page)|(?:the\s+)?(?:web\s*(?:page|site)|webpage|website|online\s+page)\s+(?:in\s+full|in\s+its\s+entirety|completely))\b/giu},{operation:"read_complete_page",pattern:/\b(?:i(?:['â]m|\s+am)|we(?:['â]re|\s+are))\s+(?:(?:currently|now|actively)\s+)*(?:reading|opening|checking|reviewing|examining|fetching)\s+(?:the\s+)?(?:full|entire|complete)\s+(?:web\s*(?:page|site)|webpage|website|online\s+page)\b/giu},{operation:"read_page",pattern:/\b(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+)*(?:had\s+(?:a\s+)?look\s+at|looked\s+at|read|opened|visited|checked|reviewed|examined|fetched)\s+(?:(?:(?:both|all(?:\s+(?:of\s+)?the)?|the\s+two|these|those|each(?:\s+of\s+the)?|(?:all\s+)?(?:one|two|three|four|five|six|seven|eight|nine|ten|[1-9]\d{0,2}))\s+(?:(?:different|separate|distinct)\s+)?(?:web\s*(?:pages?|sites?)|links?|urls?))|(?:(?:the|these|those)\s+)?(?:web\s*(?:pages?|sites?)|links?|urls?))\b/giu},{operation:"read_page",pattern:/\b(?:i(?:['â]m|\s+am)|we(?:['â]re|\s+are))\s+(?:(?:currently|now|actively)\s+)*(?:looking\s+at|reading|opening|visiting|checking|reviewing|examining|fetching)\s+(?:(?:(?:both|all(?:\s+(?:of\s+)?the)?|the\s+two|these|those|each(?:\s+of\s+the)?|(?:all\s+)?(?:one|two|three|four|five|six|seven|eight|nine|ten|[1-9]\d{0,2}))\s+(?:(?:different|separate|distinct)\s+)?(?:web\s*(?:pages?|sites?)|links?|urls?))|(?:(?:the|these|those)\s+)?(?:web\s*(?:pages?|sites?)|links?|urls?))\b/giu},{operation:"read_page",pattern:/\b(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+)*(?:read|opened|visited|checked(?:\s+out)?|reviewed|examined|fetched|loaded|accessed|went\s+through|analy[sz]ed|consulted|pulled\s+up|clicked(?:\s+on)?|followed|navigated\s+to)\s+(?:(?:(?:both|all(?:\s+(?:of\s+)?the)?|the\s+two|both\s+of\s+(?:these|those|the)|these|those|each(?:\s+of\s+(?:these|those|the))?|(?:all\s+)?(?:one|two|three|four|five|six|seven|eight|nine|ten|[1-9]\d{0,2}))\s+(?:(?:different|separate|distinct)\s+)?(?:web\s*(?:pages?|sites?)|product\s+pages?|links?|urls?))|(?:(?:the|these|those)\s+)?(?:web\s*(?:pages?|sites?)|product\s+pages?|links?|urls?)|(?:(?:both|all(?:\s+(?:of\s+)?the)?|the\s+two|these|those)\s+)?pages?\s+from\s+(?:the\s+)?(?:web|internet)|(?:(?:both|all(?:\s+(?:of\s+)?the)?|the\s+two|these|those|each(?:\s+of\s+(?:these|those|the))?)\s+)?articles?\s+(?:online|on\s+the\s+(?:web|internet)))\b/giu},{operation:"search",pattern:/\b(?:(?:yo\s+)?(?:he\s+(?:buscado|investigado)|busqu[eé]|investigu[eé])\s+(?:en\s+)?(?:la\s+)?(?:web|internet)|(?:yo\s+)?estoy\s+(?:(?:ahora|actualmente)\s+)?(?:buscando|investigando)\s+(?:en\s+)?(?:la\s+)?(?:web|internet)|(?:eu\s+)?(?:pesquisei|busquei|procurei|tenho\s+pesquisado)\s+(?:na\s+|pela\s+)?(?:web|internet)|(?:eu\s+)?estou\s+(?:(?:agora|atualmente)\s+)?(?:pesquisando|buscando|procurando)\s+(?:na\s+|pela\s+)?(?:web|internet))\b/giu},{operation:"search",pattern:/\b(?:j['â]ai\s+(?:recherch[eé]|cherch[eé]|v[eé]rifi[eé])\s+(?:sur\s+)?(?:le\s+)?(?:web|internet)|je\s+(?:cherche|recherche)\s+(?:(?:maintenant|actuellement)\s+)(?:sur\s+)?(?:le\s+)?(?:web|internet)|ich\s+habe\
1s+(?:(?:im|das)\s+)?(?:internet|web)\s+(?:durchsucht|gesucht)|ich\s+suche\s+(?:gerade|jetzt)\s+(?:(?:im|das)\s+)?(?:internet|web)|(?:io\s+)?ho\s+cercato\s+(?:sul\s+web|su\s+internet|online)|(?:io\s+)?sto\s+cercando\s+(?:(?:ora|adesso)\s+)?(?:sul\s+web|su\s+internet|online))\b/giu},{operation:"any",pattern:/\b(?:(?:yo\s+)?(?:he\s+usado|us[eé]|estoy\s+usando)\s+(?:(?:mi|la)\s+)?(?:(?:herramienta\s+de\s+)?acceso\s+(?:a\s+)?(?:la\s+)?(?:web|internet)|herramienta\s+(?:web|de\s+internet))|(?:eu\s+)?(?:usei|tenho\s+usado|estou\s+usando)\s+(?:(?:minha|a)\s+)?(?:(?:ferramenta\s+de\s+)?acesso\s+(?:a|à )\s+(?:web|internet)|ferramenta\s+web))\b/giu},{operation:"any",pattern:/\b(?:j['â]ai\s+utilis[eé]|je\s+suis\s+en\s+train\s+d['â]utiliser)\s+(?:(?:mon|notre|l['â])\s+)?(?:outil\s+d['â]acc[eè]s\s+(?:au\s+web|[aà ]\s+internet)|outil\s+web)|\bich\s+habe\s+(?:(?:mein|das)\s+)?(?:webzugriffswerkzeug|webzugriffstool|web-tool)\s+(?:benutzt|verwendet)|\b(?:io\s+)?(?:ho\s+usato|sto\s+usando)\s+(?:(?:il\s+mio|lo)\s+)?(?:strumento\s+di\s+accesso\s+(?:al\s+web|a\s+internet)|strumento\s+web)\b/giu},{operation:"any",pattern:/\b(?:(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+)*used\s+(?:(?:my|our|the)\s+)?(?:(?:web(?:[- ]based)?|internet)\s+(?:access\s+)?(?:tool|ability)|(?:web|internet)\s+access)|(?:i(?:['â]m|\s+am)|we(?:['â]re|\s+are))\s+(?:(?:currently|now|actively)\s+)*using\s+(?:(?:my|our|the)\s+)?(?:(?:web(?:[- ]based)?|internet)\s+(?:access\s+)?(?:tool|ability)|(?:web|internet)\s+access)|using\s+(?:my|our|the)\s+(?:(?:web(?:[- ]based)?|internet)\s+(?:access\s+)?(?:tool|ability)|(?:web|internet)\s+access))\b/giu},{operation:"any",pattern:/\b(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+)*accessed\s+(?:the\s+)?(?:web|internet)\b/giu}],e_=/\b(?:can|could|will|would|shall|should|may|might|able\s+to|plan(?:ning)?\s+to|intend(?:ing)?\s+to|going\s+to|want\s+to|hope\s+to|let\s+me|puedo|podria|voy\s+a|quero|posso|vou|peux|pourrais|vais|kann|konnte|werde|posso|potrei|faro)\b[^.!?;\n]{0,120}$/iu,ex=/\b(?:if|unless|provided\s+that|si|se|wenn)\b[^.!?;\n]{0,120}$/iu,ek=/(?:\b(?:you|the\s+user|they|she|he)\s+(?:said|says|wrote|reported|claimed|asked|told\s+(?:me|us))\b|\baccording\s+to\s+(?:you|the\s+user|them|her|him)\b|\b(?:dijiste|dijo|voce\s+disse|ele\s+disse|vous\s+avez\s+dit|il\s+a\s+dit|du\s+sagtest|er\s+sagte|hai\s+detto|ha\s+detto)\b)[^.!?;\n]{0,120}$/iu,ej=/\b(?:sentence|phrase|quotation|quote|claim|statement|guide|instructions?|steps?|tips?|example|way|how|recommend|suggest|translate|rewrite|paraphrase|explain|define|analy[sz]e|repeat|frase|ejemplo|exemplo|exemple|beispiel|esempio|traduc(?:e|ir|ao)|traduire|ubersetzen|tradurre)\b[^.!?;\n]{0,120}$/iu,e$=/\b(?:do\s+not|don't|never|avoid|refrain\s+from)\s+(?:say(?:ing)?|claim(?:ing)?|stat(?:e|ing)|writ(?:e|ing)|tell(?:ing)?|assert(?:ing)?|pretend(?:ing)?|mention(?:ing)?|us(?:e|ing)|repeat(?:ing)?)\b[^.!?;\n]{0,120}$/iu,eq=/^(?:\s|,)*(?:would|could|might|may|can)\b/iu,eM=/\b(?:and|but|however|yet|then|pero|luego|entonces|mas|depois|mais|puis|aber|dann|ma|poi)\b/giu,ez=/\b(?:and|but|however|yet|then|pero|luego|entonces|mas|depois|mais|puis|aber|dann|ma|poi)\b\s*,?\s*(?=(?:i|we|yo|eu|je|j['â]|ich|io)\b)/iu,eS=/\b(?:yesterday|last\s+(?:week|month|year|night)|in\s+(?:19|20)\d{2}|historically|previously|ayer|la\s+semana\s+pasada|ontem|na\s+semana\s+passada|hier|la\s+semaine\s+derniere|gestern|letzte\s+woche|ieri|la\s+settimana\s+scorsa)\b/iu,eL=/\b(?:unsuccessfully|without\s+success)\b|^(?:\s|,|-)*(?:an?\s+)?error\b|\b(?:but|however|yet)\s+(?:(?:the|that)\s+)?(?:(?:search|lookup|web\s+search|it)\s+(?:failed|did(?:\s+not|n't)\s+work)|(?:it|the\s+search)\s+returned\s+(?:an?\s+)?error)\b|\b(?:pero\s+(?:(?:la|esa)\s+)?(?:busqueda|investigacion)\s+(?:fallo|no\s+funciono)|mas\s+(?:(?:a|essa)\s+)?pesquisa\s+(?:falhou|nao\s+funcionou)|mais\s+(?:(?:la|cette)\s+)?recherche\s+(?:a\s+echoue|n['â]?a\s+pas\s+fonctionne)|aber\s+(?:(?:die|diese)\s+)?suche\s+(?:ist\s+fehlgeschlagen|hat\s+nicht\s+funktioniert)|ma\s+(?:(?:la|questa)\s+)?ricerca\s+(?:e\s+fallita|non\s+ha\s+funzionato))\b/iu,eO=/\b(?:but|however|yet)\s+(?:(?:the|that)\s+)?(?:page\s+(?:read|fetch|request)|fetch|request|it)\s+(?:failed|did(?:\s+not|n't)\s+work)\b/iu,eN=/\b(?:but|however|yet)\s+(?:(?:the|that)\s+)?(?:(?:youtube\s+)?(?:transcript|captions?|subtitles?)|transcript\s+(?:read|fetch)|fetch|request|it)\s+(?:failed|did(?:\s+not|n't)\s+work)\b/iu,eI=/\b(?:but|however|yet)\s+(?:(?:the|that)\s+)?(?:video|playback|player|stream|it)\s+(?:failed|did(?:\s+not|n't)\s+(?:play|work|load))\b/iu,eA=/\b(?:but|however|yet)\s+(?:(?:the|that)\s+)?(?:web\s+access|tool|it)\s+(?:failed|did(?:\s+not|n't)\s+work)\b|\b(?:pero\s+(?:(?:la|esa)\s+)?(?:herramienta|acceso\s+web)\s+(?:fallo|no\s+funciono)|mas\s+(?:(?:a|essa)\s+)?(?:ferramenta|acesso\s+web)\s+(?:falhou|nao\s+funcionou)|mais\s+(?:(?:l['â]|cet\s+)?outil|l['â]acces\s+web)\s+(?:a\s+echoue|n['â]?a\s+pas\s+fonctionne)|aber\s+(?:(?:das|dieses)\s+)?(?:tool|werkzeug|webzugriff)\s+(?:ist\s+fehlgeschlagen|hat\s+nicht\s+funktioniert)|ma\s+(?:(?:lo|questo)\s+)?(?:strumento|accesso\s+web)\s+(?:ha\s+fallito|non\s+ha\s+funzionato))\b/iu,eC=/\b(?:both|the\s+two|both\s+of\s+(?:these|those|the))\s+(?:(?:different|separate|distinct)\s+)?(?:(?:web|product)\s*)?(?:pages?|links?|urls?|sites?|websites?|articles?)\b/iu,eK=/\b(?:(?:ran|did|completed|performed|conducted)\s+(one|two|three|four|five|six|seven|eight|nine|ten|[1-9]\d{0,2})\s+(?:(?:different|separate|distinct)\s+)?(?:web|internet|online)\s+(?:search(?:es)?|research)|searched\s+(?:(?:the\s+)?(?:web|internet)|online)[^.!?;\n]{0,32}(?:(once|twice)\b|(one|two|three|four|five|six|seven|eight|nine|ten|[1-9]\d{0,2})\s+times?\b)|searched\s+(?:(once|twice)|(one|two|three|four|five|six|seven|eight|nine|ten|[1-9]\d{0,2})\s+times?)\s+(?:online|on\s+the\s+(?:web|internet))|(?:web|internet|online)\s+search(?:es)?\s+(?:(once|twice)\b|(one|two|three|four|five|six|seven|eight|nine|ten|[1-9]\d{0,2})\s+times?\b))\b/iu,eT=/\b(?:(?:used|using)\b[^.!?;\n]{0,96}\b(?:(?:web|internet)\s+access|(?:web(?:[- ]based)?|internet)\s+(?:access\s+)?(?:tool|ability))[^.!?;\n]{0,24}\b(once|twice|one|two|three|four|five|six|seven|eight|nine|ten|[1-9]\d{0,2})(?:\s+times?)?|accessed\s+(?:the\s+)?(?:web|internet)[^.!?;\n]{0,24}\b(once|twice|one|two|three|four|five|six|seven|eight|nine|ten|[1-9]\d{0,2})(?:\s+times?)?)\b/iu,eD=/\b(?:all\s+)?(one|two|three|four|five|six|seven|eight|nine|ten|[1-9]\d{0,2})\s+(?:(?:different|separate|distinct)\s+)?(?:(?:web|product)\s*)?(?:pages?|links?|urls?|sites?|websites?|articles?)\b/iu,eE=/\b(?:all(?:\s+(?:of\s+)?the)?|each(?:\s+of\s+(?:these|those|the))?)\s+(?:(?:different|separate|distinct)\s+)?(?:(?:web|product)\s*)?(?:pages?|links?|urls?|sites?|websites?|articles?)\b/iu,eU=/\b(?:(?:the|these|those)\s+)?(?:(?:web|product)\s*)?(?:pages|links|urls|sites|websites|articles)\b/iu,eF=/\b(?:(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+)*|(?:and|then)\s+(?:(?:i|we)\s+)?)(?:had\s+(?:a\s+)?look\s+at|looked\s+at|read|opened|visited|checked|reviewed|examined|fetched|loaded|accessed|clicked(?:\s+on)?|followed|navigated\s+to)\s+(?:both|all(?:\s+(?:of\s+)?the)?|the|the\s+two|both\s+of\s+(?:these|those|the)|these|those|each(?:\s+of\s+(?:these|those|the))?|(?:all\s+)?(?:one|two|three|four|five|six|seven|eight|nine|ten|[1-9]\d{0,2}))\s+(?:(?:different|separate|distinct)\s+)?(?:pages?|sites?|articles?)\b/giu,eW=/\b(?:(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+)*|(?:and|then)\s+(?:(?:i|we)\s+)?)(?:read|opened|checked|reviewed|examined|fetched|loaded|accessed)\s+(?:(?:the\s+)?(?:full|entire|complete)\s+page|(?:the\s+)?page\s+(?:in\s+full|in\s+its\s+entirety|completely))\b/giu,eR=/\b(?:pdf|document|file|book|chapter|report|manuscript|worksheet|notebook|magazine|newspaper|construction|job|worksite|ar
1chaeological|building)\b/iu,eG=/\b(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+)*(?:watched|viewed|played)\s+(?:(?:the|this|that)\s+)?videos?\b/giu,eB=/\b(?:uploaded|attached|local|provided|shared)\s+videos?\b/iu,eY=/\b(?:now|currently|just|ahora|actualmente|agora|atualmente|maintenant|actuellement|jetzt|gerade|ora|adesso)\b/iu,eZ=/^(?:\s|,)*(?:again\s+)?(?:now|today|ahora|hoy|agora|hoje|maintenant|aujourd['â]hui|jetzt|heute|ora|adesso|oggi)\b/iu,eQ={once:1,one:1,twice:2,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9,ten:10};function eP(e){return e.normalize("NFKD").replace(/\p{M}/gu,"").replace(/[\u2018\u2019]/gu,"'").toLocaleLowerCase("en-US").replace(/[^\p{L}\p{N}'?,;:.-]+/gu," ").trim().replace(/\s+/gu," ")}function eV(e,t){let s=e.slice(t),a=s.search(ez);return a>=0?s.slice(0,a):s}function eX(e,t){e.lastIndex=0;let s=e.exec(t)?.slice(1).find(e=>!!e);return s?eQ[s.toLocaleLowerCase("en-US")]??Number.parseInt(s,10):null}function eH(e,t){let s=t.flatMap(t=>(t.pattern.lastIndex=0,Array.from(e.matchAll(t.pattern)).flatMap(s=>{var a,i;let n,r,o,l,d,u,c,h=s.index??0;if(a=s[0].length,i=t.operation,n=eP(e),r=function(e,t){let s=e.slice(0,t);eM.lastIndex=0;let a=0;for(let e of s.matchAll(eM))a=(e.index??0)+e[0].length;return s.slice(a)}(e,h),o=eV(e,h+a),l=eP(r),d=eP(o),u=eP(`${r} ${e.slice(h,h+a)} ${o}`),c=eP(`${r} ${e.slice(h,h+a)}`),n.endsWith("?")||ek.test(l)||e_.test(l)||ex.test(l)||ej.test(l)||e$.test(l)||eS.test(u)&&!eY.test(c)&&!eZ.test(d)||("search"===i?eL:"read_page"===i||"read_complete_page"===i?eO:"read_youtube"===i||"read_complete_youtube"===i||"read_multiple_youtube"===i?eN:"watch_youtube"===i?eI:eA).test(d)||eq.test(o)||/\b(?:i|we)\s+tried\s*$/iu.test(l))return[];let m=function(e,t,s){if("search"===s)return eX(eK,e)??eX(eT,e)??1;if("any"===s)return eX(eT,e)??1;if("read_page"===s){if(eC.test(t))return 2;let e=eX(eD,t);if(null!==e)return e;if(eE.test(t))return Number.MAX_SAFE_INTEGER;if(eU.test(t))return 2}return 1}(`${s[0]} ${eV(e,h+s[0].length)}`,s[0],t.operation);
1return[{operation:t.operation,quantity:m,semanticKey:`web-access:${t.operation}:${m}:${eP(e)}`,excerpt:e.trim().slice(0,160)}]}))),a=s.some(({operation:e})=>"any"!==e)?s.filter(({operation:e})=>"any"!==e):s;return a.some(({operation:e})=>"read_complete_youtube"===e)&&(a=a.filter(({operation:e})=>"read_youtube"!==e&&"read_multiple_youtube"!==e)),a.some(({operation:e})=>"read_complete_page"===e)&&(a=a.filter(({operation:e})=>"read_page"!==e)),a.some(({operation:e})=>"read_multiple_youtube"===e)?a.filter(({operation:e})=>"read_youtube"!==e):a}s(27476);let eJ=Object.freeze({receipts:Object.freeze([]),generatedImageCount:0,linkedImageCount:0,generatedFileCount:0,allowedSourceUrls:Object.freeze([]),webAccessOperations:Object.freeze([]),completedExternalActions:Object.freeze([])});function e0(e){return e.normalize("NFKD").replace(/[\u0300-\u036f]/gu,"").replace(/[\u2018\u2019]/gu,"'").toLocaleLowerCase("en-US").replace(/[^\p{L}\p{N}@._+-]+/gu," ").trim().replace(/\s+/gu," ")}let e1=new Set(["a","an","and","attached","created","document","file","for","generated","image","my","of","pdf","photo","picture","proposal","review","schedule","scheduled","task","the","this","to","your"]);function e2(e){return e0(e).split(" ").filter(e=>e.length>1&&!e1.has(e))}function e3(e,t){return!e||e===t||"document"===e&&["pdf","spreadsheet","presentation","document"].includes(t)}function e4(e,t){var s;let a;if(!e)return!0;if(e.frequency&&e.frequency!==t?.frequency||e.projectScope&&e.projectScope!==t?.projectScope||void 0!==e.interval&&e.interval!==t?.interval)return!1;let i=t?.localTime??(s=t?.runAt,a=e7(s,t?.timezone),a?.hour&&a.minute?`${a.hour}:${a.minute}`:void 0);
1if(e.localTime&&e.localTime!==i||e.partOfDay&&(!i||!e8(i,e.partOfDay))||e.timezone&&e6(e.timezone)!==e6(t?.timezone)||e.runAt&&!e9(e.runAt,t?.runAt)||void 0!==e.dayOfMonth&&e.dayOfMonth!==t?.dayOfMonth||void 0!==e.monthOfYear&&e.monthOfYear!==t?.monthOfYear)return!1;if(e.byWeekday&&[...e.byWeekday].sort().join(",")!==[...t?.byWeekday??[]].sort().join(","))return!1;return(void 0===e.randomMinMinutes||e.randomMinMinutes===t?.randomMinMinutes)&&(void 0===e.randomMaxMinutes||e.randomMaxMinutes===t?.randomMaxMinutes)&&(void 0===e.recurrenceCount||e.recurrenceCount===t?.recurrenceCount)&&(!e.recurrenceUntil||!!e5(e.recurrenceUntil,t?.recurrenceUntil,t?.timezone))&&("tomorrow"!==e.relativeDay||!!function(e,t){let s=e7(e,t),a=e7(new Date().toISOString(),t);if(!s||!a)return!1;let i=new Date(Date.UTC(Number(a.year),Number(a.month)-1,Number(a.day)+1)).toISOString().slice(0,10);return`${s.year}-${s.month}-${s.day}`===i}(t?.runAt,t?.timezone))}function e6(e){if(e)try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).resolvedOptions().timeZone.toLocaleLowerCase("en-US")}catch{return e.trim().toLocaleLowerCase("en-US")}}function e9(e,t){if(!e||!t)return!1;let s=Date.parse(e),a=Date.parse(t);return Number.isFinite(s)&&Number.isFinite(a)?s===a:e===t}function e5(e,t,s){if(!t)return!1;if(/^\d{4}-\d{2}-\d{2}$/u.test(e)){if(/^\d{4}-\d{2}-\d{2}$/u.test(t))return e===t;let a=e7(t,s);return e===(a?`${a.year}-${a.month}-${a.day}`:t.slice(0,10))}return e9(e,t)}function e8(e,t){let s=Number(e.slice(0,2));return!!Number.isInteger(s)&&("morning"===t?s>=5&&s<12:"afternoon"===t?s>=12&&s<17:"evening"===t?s>=17&&s<22:s>=22||s<5)}function e7(e,t){if(!e||!t)return;let s=new Date(e);if(!Number.isNaN(s.getTime()))try{return Object.fromEntries(new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).formatToParts(s).map(({type:e,value:t})=>[e,t]))}catch{return}}function te(e,t){if(!e||"__legacy_any__"===t)return!0;let s=e2(e);if(0===s.length)return!0;let a=new Set(e2(t));return s.every(e=>a.has(e))}function tt(e,t){return t.length>0&&e.some((s,a)=>t.every((t,s)=>e[a+s]===t))}function ts(e,t){let s=e0(e),a=e0(t);if(!s||!a)return!1;if(s===a)return!0;let i=/[\p{L}\p{N}._%+-]+@[\p{L}\p{N}.-]+\.[\p{L}]{2,}/iu,n=s.match(i)?.[0],r=a.match(i)?.[0];if(n||r)return void 0!==n&&n===r;let o=s.split(" ").filter(Boolean),l=a.split(" ").filter(Boolean);return tt(o,l)||tt(l,o)}function ta(e,t){return!e||0===e.length||e.every(e=>t.some(t=>ts(e,t)))}function ti(e){return Array.from(new Map(e.claims.flatMap(e=>e.targets??[]).map(e=>[e0(e),e])).values())}function tn(e,t,s,a){let i={to:s,reverse:e[s]?.length??0,capacity:a},n={to:t,reverse:e[t]?.length??0,capacity:0};return e[t]?.push(i),e[s]?.push(n),i}let tr=/!\[[^\]\n]{0,500}\](?:\([^\n)]{1,2000}\)|\[[^\]\n]{0,500}\])|<img\b[^>]{0,2000}>/giu,to=/(?<![<(])https?:\/\/[^\s<>()\]]{1,2000}/giu,tl=/(?:\[[^\]\n]{1,240}\]\(|<)https?:\/\/[^\s)>]{1,2000}(?:\)|>)/giu,td=/https?:\/\/[^\s<>()\]]+/iu,tu=/\[\s*(?:image|photo|photograph|picture|avatar)\s*\]|\[\s*(?:image|photo|photograph|picture|avatar)\b[^\]\n]{0,80}\b(?:attach(?:ed|ment)?|included|enclosed|goes\s+here|insert(?:ed)?\s+here|placeholder|generated|created|rendered|made|produced)\b/giu,tc=/\[\s*(?:file|document|pdf|attachment)\s*\]|\[\s*(?:file|document|pdf|attachment)\b[^\]\n]{0,80}\b(?:attach(?:ed|ment)?|included|enclosed|goes\s+here|insert(?:ed)?\s+here|placeholder)\b[^\]\n]{0,120}\]/giu,th=new Set(["soul-avatar","generated-image","generated-images","image-generation","image-generations"]),tm=new Set(["download","downloads","attachment","attachments","artifact","artifacts"]),tp=new Set(["png","jpg","jpeg","gif","webp","avif","heic","heif","bmp","tif","tiff"]),tf=new Set(["pdf","md","markdown","doc","docx","xls","xlsx","csv","tsv","ppt","pptx","txt","text","rtf","odt","ods","odp","html","htm","xhtml","json","xml","yaml","yml","mmd","mermaid","svg","ics","zip","tar","gz","tgz","7z","rar","mp3","wav","m4a","aac","ogg","oga","flac","mp4","mov","webm","avi","mkv","m4v"]),tb=/\b(?:image|photo|photograph|picture|portrait|selfie|avatar)\b/iu,tg=/\b(?:attachment|document|file|pdf|markdown|invoice|spreadsheet|presentation|deck|workbook|report|audio|video)\b/iu,ty=/\b(?:download|open|view|attached|here\s+is|your\s+(?:download|file|image|photo|avatar|document|pdf))\b/iu,tw=/[\p{L}\p{N}._%+-]+@[\p{L}\p{N}.-]+\.[\p{L}]{2,}
1/giu,tv=/(["ââ«])[^"ââ»\n]{1,160}(["ââ»])/gu,t_=/\b(?:api[_ -]?key|authorization|password|secret|token)\s*[:=]\s*[^\s,;]+/giu,tx=/\b(?!(?:I|We|The|This|That|Your|My|Our|Here|Invoice|Email|PDF|File|Document|Payment|According|Based|Done)\b)\p{Lu}[\p{L}'â-]*(?:\s+\p{Lu}[\p{L}'â-]*){0,2}\b/gu,tk=/\b(?=[\p{L}\p{N}_-]{12,}\b)(?=[\p{L}\p{N}_-]*\d)[\p{L}\p{N}_-]+\b/giu,tj=/(?:[$â¬Â£Â¥]\s*)?(?:\b\d[\d,./:-]*\b|#\s*\d[\d-]*)/gu,t$=/\b(?:invoices?|bills?|payments?|transactions?|charges?|(?:(?:bank|account|billing|credit-card)\s+statements?)|(?:(?:source|input|attached|uploaded|shared|provided)\s+(?:document|file|pdf|report)))\b/iu,tq=/\b(?:source|input|attached|uploaded|shared|provided)\s+(?:invoices?|bills?|payments?|transactions?|charges?|(?:(?:bank|account|billing|credit-card)\s+statements?)|documents?|files?|pdfs?|reports?)\b|\b(?:on\s+(?:(?:jan(?:uary)?|feb(?:ruary)?|mar(?:ch)?|apr(?:il)?|may|jun(?:e)?|jul(?:y)?|aug(?:ust)?|sep(?:tember)?|oct(?:ober)?|nov(?:ember)?|dec(?:ember)?)\s+\d{1,2}|(?:19|20)\d{2}|\d{1,2}[/-]\d{1,2}(?:[/-]\d{2,4})?)|in\s+(?:19|20)\d{2}|yesterday|last\s+(?:week|month|year|quarter)|previously|earlier|historically|before|after)\b|\bby\s+(?!me\b|us\b|the\s+soul\b)(?:the\s+)?[\p{L}\p{N}]|\b(?:based\s+on|according\s+to|reviewing|looking\s+at|i\s+(?:found|saw|read|noticed|observed)\s+that)\b/iu,tM=/\b(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now|recently|finally)\s+){0,3}(?:did\s+)?(?:generated|created|made|rendered|exported|prepared|produced|converted|finished|completed|attached|uploaded|included|saved|provided|added|put|placed|sent|emailed|delivered|forwarded|submitted|updated|changed|deleted|removed|renamed|replaced|posted|published|scheduled|rescheduled|cancelled|canceled)\b/iu,tz=/\b(?:here(?:'s|\s+is|\s+are)|this\s+message|available\s+for\s+download|download\s+(?:it|the)|(?:you|your)\s+requested|requested\s+by\s+you|for\s+you|successfully|all\s+set|now|by\s+(?:me|us))\b|\b(?:uploaded|attached|provided|included)\s+(?:here|above|below)\b|\b(?:invoice|document|file|pdf|report)s?\b[^.!?]{0,48}\b(?:is|are)\s+(?:now\s+)?(?:ready|done|attached|available)\b/iu,tS=/\b(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now|recently|finally)\s+){0,3}(?:did\s+)?(?<action>uploaded|submitted|updated)\b/giu,tL=[/\b(?:i|we)(?:'ll|\s+will|\s+(?:am|are)\s+going\s+to|\s+(?:promise|plan|intend)\s+to)\s+(?:(?:be\s+sure\s+to|make\s+sure\s+(?:that\s+)?(?:you\s+)?|remember\s+to|definitely|certainly|absolutely|surely)\s+)*(?<action>share|send|give|bring|deliver|remind|notify|message|check\s+in|follow\s+up|reach\s+out|get|receive)\b/giu,/\byou(?:'ll|\s+will)\s+(?<action>receive|get|hear\s+from\s+me|be\s+reminded|be\s+notified)\b/giu,/\byou\s+can\s+(?<action>expect)\b/giu,/\b(?<action>te\s+recordare|compartire|te\s+enviare|(?:te\s+)?voy\s+a\s+(?:recordar(?:te)?|compartir|enviar(?:te)?|avisar(?:te)?))\b/giu,/\b(?<action>je\s+(?:(?:te\s+le\s+)?rappellerai|partagerai|t['â]?enverrai|te\s+previendrai|vais\s+(?:(?:te|t['â])\s*)?(?:envoyer|partager|rappeler|prevenir)))\b/giu,/\b(?<action>ich\s+(?:werde\s+(?:dich\s+)?(?:(?:morgen|spater)\s+)?(?:daran\s+)?(?:erinnern|schicken|senden|teilen|benachrichtigen|kontaktieren)|(?:schicke|sende|teile|benachrichtige)\s+(?:dir|dich)))\b/giu,/\b(?<action>ti\s+(?:ricordero|mandero|invier[oò]|avvisero)|condividero)\b/giu,/\b(?<action>vou\s+(?:lembrar\s+voce|te\s+(?:lembrar|enviar|avisar)|compartilhar|enviar|avisar)|lembrarei|compartilharei|enviarei)\b/giu],tO=/\b(?:would\s+you\s+like\s+me\s+to|(?:do\s+you\s+)?want\s+me\s+to|should\s+i|shall\s+i|may\s+i|how\s+about\s+i|let\s+me|i\s+(?:can|could)|i(?:'d|\s+would)\s+be\s+happy\s+to)\s+(?:(?:possibly|happily|gladly)\s+)*(?<action>share|send|give|bring|deliver|remind|notify|message|check\s+in|follow\s+up|reach\s+out)\b/giu,tN=[/\b(?:i|we)(?:['â]ve|\s+have)?\s+(?:(?:just|already|successfully|now)\s+){0,3}(?<completion>scheduled|set\s+up|created|added)\s+(?<descriptor>[^.!?;\n]{0,120}?)\b(?:scheduled[ -]?)?(?:tasks?|reminders?)\b/giu,/\b(?:your|the)\s+(?<descriptor>[^.!?;\n]{0,120}?)\b(?:scheduled[ -]?)?(?:tasks?|reminders?)\s+(?:is|are)\s+(?:now\s+)?(?<completion>scheduled|ready|set|created)\b/giu],tI=[...tL,tO,...tN],tA=[/\b(?:i(?:'ve|\s+have)?|we(?:'ve|\s+have)?)\s+(?:just\s+|now\s+)?(?:prepared|proposed|attached|created|made)\b[^.!?]{0,140}\b(?:scheduled[ -]?tasks?\s+proposals?|tasks?|reminders?|proposals?)\b[^.!?]{0,80}\b(?:for\s+(?:your\s+)?review|review\s+card)\b/giu,/\b(?:your|the)\b[^.!?]{0,120}\b(?:scheduled[ -]?tasks?\s+proposals?|tasks?|reminders?|proposals?)\b[^.!?]{0,60}\b(?:is\s+|are\s+)?(?:ready|prepared|attached|waiting)\s+for\s+(?:your\s+)?review\b/giu],tC=/\b(?:tomorrow(?!['â]s\b)|tonight|later|manana|demain|morgen|domani|amanha|plus\s+tard|mas\s+tarde|mais\s+tarde|spater|piu\s+tardi|next\s+(?:morning|afternoon|evening|night|day|week|month|year|monday|tuesday|wednesday|thursday|friday|saturday|sunday)(?!['â]s\b)|every\s+(?:(?:\d+|other)\s+)?(?:days?|mornings?|afternoons?|evenings?|nights?|weeks?|months?|years?|mondays?|tuesdays?|wednesdays?|thursdays?|fridays?|saturdays?|sundays?)|each\s+(?:day|morning|afternoon|evening|night|week|month|year|monday|tuesday|wednesday|thursday|friday|saturday|sunday)|on\s+(?:weekdays?|weekends?|mondays?|tuesdays?|wednesdays?|thursdays?|fridays?|saturdays?|sundays?)|cada\s+(?:dia|manana|tarde|noche|semana|mes|manha|noite)|tous?\s+les?\s+(?:jours?|semaines?|mois)|jeden\s+(?:tag|morgen|abend|woche|monat)|ogni\s+(?:giorno|mattina|sera|settimana|mese)|daily|weekly|monthly|yearly|annually|random(?:ly)?|diariamente|semanalmente|mensualmente|quotidiennement|hebdomadairement|monatlich|taglich|giornalmente|settimanalmente|at\s+(?:(?:[01]?\d|2[0-3])(?::[0-5]\d)?(?:\s*[ap]\.?m\.?)?|noon|midnight)|a\s+las\s+(?:[01]?\d|2[0-3])(?::[0-5]\d)?|um\s+(?:[01]?\d|2[0-3])(?::[0-5]\d)?|alle?\s+(?:[01]?\d|2[0-3])(?::[0-5]\d)?)\b/iu,tK=/\b(?:now|right\s+now|right\s+away|here|below|in\s+this\s+(?:message|response|answer)|in\s+the\s+next\s+(?:sentence|paragraph))\b/iu,tT=/\b(?:the\s+)?(?:invoices?|bills?|payments?|transactions?|charges?|(?:(?:bank|account|billing|credit-card)\s+statements?))\b[^.!?]{0,64}\b(?:was|were|has\s+been|have\s+been)\s+(?:(?:just|already|successfully|recently)\s+)?(?<action>sent|emailed|delivered|forwarded|uploaded|submitted|updated|created|generated|attached)\b/giu,tD=/(?:^|\b)(?:(?:the\s+)?(?:sentence|question|phrase|example|translation|quotation|quote|claim|statement)\b|(?:translate|rewrite|paraphrase|quote|repeat|explain|define|analy[sz]e|grammar\s+check)\b|(?:do\s+not|don't|never|avoid|refrain\s+from)\s+(?:say(?:ing)?|claim(?:ing)?|stat(?:e|ing)|writ(?:e|ing)|tell(?:ing)?|assert(?:ing)?|pretend(?:ing)?|mention(?:ing)?|us(?:e|ing)|repeat(?:ing)?)\b|(?:said|wrote|quoted|reported|asked|told\s+(?:me|us|you|them))\b)[^.!?]{0,160}$/iu,tE=/^(?:the\s+)?(?:sentence|question|phrase|example|translation|quotation|quote|claim|statement)\b[^.!?]{0,160}[ââââ"']/iu,tU=/^(?!if\s+you\s+(?:were|are)\s+(?:wondering|curious)\b)(?:if|unless|provided\s+that|as\s+long\s+as)\b/iu,tF=/(?:[,ââ-]\s*|\s+)(?:okay|ok|(?:does\s+that\s+)?sounds?\s+good|right|agreed|deal)\s*\?$/iu;function tW(e){return e.normalize("NFKC").replace(/https?:\/\/\S+/giu,"[url]").replace(tw,"[email]").replace(t_,"[secret]").replace(tv,"$1[redacted]$2").replace(tx,"[name]").replace(tk,"[id]").replace(tj,"[number]").replace(/\s+/gu," ").trim().slice(0,120)}function tR(e,t,s){return tW(e.slice(t,t+Math.min(Math.max(s,1),120)))}function tG(e,t,s){return t.lastIndex=0,Array.from(e.matchAll(t),t=>({code:s,excerpt:tR(e,t.index??0,t[0].length)}))}function tB(e){try{return new URL(e).toString()}catch{return}}let tY={image_generation:"image_generation_unverified",image_delivery:"image_delivery_unverified",file_delivery:"file_delivery_unverified",email_send:"email_delivery_unverified",gmail_draft_create:"external_action_unverified",calendar_write:"external_action_unverified",social_publish:"external_action_unverified",project_file_write:"external_action_unverified",scheduled_task_proposal:"external_action_unverified",scheduled_task_write:"external_action_unverified",soul_avatar_set:"soul_avatar_claim_unverified",soul_form_update:"soul_form_update_unverified"},tZ={attached:["file_delivery"],created:["file_delivery"],delivered:["email_send"],emailed:["email_send"],forwarded:["email_send"],generated:["file_delivery"],sent:["email_send"],uploaded:["file_delivery","project_file_write"],submitted:["social_publish"],updated:["calendar_write","project_file_write"]};function tQ(e){return t$.test(e)&&tq.test(e)&&!tM.test(e)&&!tz.test(e)}function tP(e,t,s){if(!0!==s.clarification){let s=t;for(;s>0&&!/[.!?;\n]/u.test(e[s-1]??"");)s-=1;let a=t;for(;a<e.length&&!/[.!?;\n]/u.test(e[a]??"");)a+=1;return a<e.length&&(a+=1),e.slice(s,a).trim()}let a=0;for(let s of g(e)){let i=e.indexOf(s,a);if(i<=t&&t<i+s.length)return s;a=i+s.length}return""}function tV(e){return e.normalize("NFKD").replace(/\p{M}/gu,"").replace(/[â]/gu,"'").replace(/[*_~`]/gu," ")}function tX(e){let t=/\b(?:at|a\s+las|a|as|um|alle?)\s+(noon|midnight)\b/iu.exec(e)?.[1];
1if(t)return"noon"===t.toLocaleLowerCase("en-US")?"12:00":"00:00";let s=/\b(?:at|a\s+las|a|as|um|alle?)\s+([01]?\d|2[0-3])(?::([0-5]\d))?\s*([ap])?\.?m?\.?\b/iu.exec(e);if(!s?.[1])return;let a=Number(s[1]),i=s[3]?.toLocaleLowerCase("en-US");return"a"===i&&12===a&&(a=0),"p"===i&&a<12&&(a+=12),`${String(a).padStart(2,"0")}:${s[2]??"00"}`}let tH={january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12},tJ=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];function t0(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).resolvedOptions().timeZone}catch{return}}function t1(e,t){let s=Number(e);return t.startsWith("day")?1440*s:t.startsWith("hour")?60*s:s}function t2(e){let t,s,a,i,n,r,o=tV(e).toLocaleLowerCase("en-US"),l=function(e){let t=/\bevery\s+(?:(\d{1,3})|(other))\s+(days?|weeks?|months?|years?)\b/u.exec(e);if(!t?.[3])return;let s=t[2]?2:Number(t[1]);if(!Number.isInteger(s)||s<1||s>365)return;let a=t[3];return{frequency:a.startsWith("day")?"daily":a.startsWith("week")?"weekly":a.startsWith("month")?"monthly":"yearly",interval:s}}(o),d=(t=Object.keys(tH).join("|"),s=RegExp(`\\b(${t})\\s+(?:the\\s+)?([1-9]|[12]\\d|3[01])(?:st|nd|rd|th)?(?:,?\\s+\\d{4})?\\b`,"u").exec(o),a=RegExp(`\\b([1-9]|[12]\\d|3[01])(?:st|nd|rd|th)?\\s+(?:of\\s+)?(${t})\\b`,"u").exec(o),i=s?.[1]??a?.[2],n=s?.[2]??a?.[1],i&&n?{monthOfYear:tH[i]??0,dayOfMonth:Number(n)}:void 0),u=/\brandom(?:ly)?\b/u.test(o)?"random":l?.frequency??(/\b(?:yearly|annually|every\s+year|each\s+year)\b/u.test(o)||void 0!==d&&/\bevery\b/u.test(o)?"yearly":/\b(?:monthly|every\s+month|each\s+month|cada\s+mes|tous?\s+les?\s+mois|jeden\s+monat|ogni\s+mese|mensualmente|monatlich)\b/u.test(o)?"monthly":/\b(?:weekly|weekdays?|weekends?|every\s+(?:week|monday|tuesday|wednesday|thursday|friday|saturday|sunday)|each\s+(?:week|monday|tuesday|wednesday|thursday|friday|saturday|sunday)|cada\s+semana|toutes?\s+les?\s+semaines?|jede[nr]?\s+woche|ogni\s+settimana|semanalmente|hebdomadairement|settimanalmente)\b/u.test(o)?"weekly":/\b(?:daily|every\s+(?:day|morning|afternoon|evening|night)|each\s+(?:day|morning|afternoon|evening|night)|cada\s+(?:dia|manana|tarde|noche|manha|noite)|tous?\s+les?\s+jours?|jeden\s+(?:tag|morgen|abend)|ogni\s+(?:giorno|mattina|sera)|diariamente|quotidiennement|taglich|giornalmente)\b/u.test(o)?"daily":/\b(?:tomorrow(?!'s\b)|tonight|later|manana|demain|morgen|domani|amanha|next\s+(?:morning|afternoon|evening|night|day|week|month|year)(?!'s\b))\b/u.test(o)?"once":void 0),c=tX(o),h=/\b(?:morning|mattina|manha)\b/u.test(o)?"morning":/\b(?:afternoon|tarde)\b/u.test(o)?"afternoon":/\b(?:evening|sera)\b/u.test(o)?"evening":/\b(?:night|noche|noite)\b/u.test(o)?"night":void 0,m=function(e,t){if("weekly"!==t)return;if(/\bweekdays?\b/u.test(e))return[1,2,3,4,5];if(/\bweekends?\b/u.test(e))return[0,6];let s=tJ.flatMap((t,s)=>RegExp(`\\b${t}s?\\b`,"u").test(e)?[s]:[]);return s.length>0?s:void 0}(o,u),p="yearly"===u?d:void 0,f=p?.dayOfMonth??("monthly"===u?function(e){for(let t of[/\b(?:on\s+)?(?:the\s+)?([1-9]|[12]\d|3[01])(?:st|nd|rd|th)?\s+of\s+(?:every|each|the)\s+month\b/u,/\b(?:monthly|every\s+month|each\s+month)\b[^.!?;\n]{0,36}?\b(?:on\s+)?(?:the\s+)?([1-9]|[12]\d|3[01])(?:st|nd|rd|th)?\b/u,/\bday\s+([1-9]|[12]\d|3[01])\s+(?:of\s+)?(?:every|each|the)\s+month\b/u]){let s=t.exec(e)?.[1];if(s)return Number(s)}}(o):void 0),b=p?.monthOfYear,g="random"===u?function(e){let t=/\b(?:between|from)\s+(\d{1,5})(?:\s*(minutes?|hours?|days?))?\s+(?:and|to)\s+(\d{1,5})\s*(minutes?|hours?|days?)\b/u.exec(e)??/\bevery\s+(\d{1,5})\s*(minutes?|hours?|days?)?\s*(?:-|â|â|to)\s*(\d{1,5})\s*(minutes?|hours?|days?)\b/u.exec(e);if(!t?.[1]||!t[3]||!t[4])return;let s=t[2]??t[4],a=t1(t[1],s),i=t1(t[3],t[4]);return a>=15&&i>=a&&i<=43200?{randomMinMinutes:a,randomMaxMinutes:i}:void 0}(o):void 0,y=/\b(?:for|after)\s+(\d{1,4})\s+(?:runs?|times?|occurrences?)\b/u.exec(o)?.[1],w=y?Number(y):void 0,v=function(e){let t=/\buntil\s+(\d{4}-\d{2}-\d{2}(?:[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d{1,3})?)?(?:Z|[+-]\d{2}:?\d{2})?)?)\b/u.exec(e)?.[1];if(t)return t.replace(" ","T");let s=Object.keys(tH).join("|"),a=RegExp(`\\buntil\\s+(${s})\\s+([1-9]|[12]\\d|3[01])(?:st|nd|rd|th)?,?\\s+(\\d{4})\\b`,"u").exec(e);if(a?.[1]&&a[2]&&a[3])return`${a[3]}-${String(tH[a[1]]).padStart(2,"0")}-${String(Number(a[2])).padStart(2,"0")}`}(o),_=/\b(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2}(?:\.\d{1,3})?)?(?:Z|[+-]\d{2}:?\d{2}))\b/u.exec(e)?.[1],x=(r=/\b(?:Africa|America|Antarctica|Arctic|Asia|Atlantic|Australia|Europe|Indian|Pacific|Etc)\/[A-Za-z][A-Za-z0-9_+-]*(?:\/[A-Za-z][A-Za-z0-9_+-]*)?\b/iu.exec(e)?.[0])?t0(r):/\b(?:bangkok|thailand)\s+time\b/iu.test(e)?"Asia/Bangkok":/\b(?:utc|gmt)\b/iu.test(e)?"UTC":void 0,k=/\b(?:standalone|outside\s+(?:the|this|any)\s+project|not\s+(?:in|under|attached\s+to)\s+(?:the|this|any)\s+project)\b/iu.test(o)?"standalone":/\b(?:in|under|attached\s+to)\s+(?:the\s+)?(?:current|this)\s+project\b/iu.test(o)?"current_project":void 0,j=/\b(?:tomorrow|manana|demain|morgen|domani|amanha)\b/u.test(o)?"tomorrow":void 0,$={...u?{frequency:u}:{},...k?{projectScope:k}:{},...l?{interval:l.interval}:{},...c?{localTime:c}:{},...h?{partOfDay:h}:{},...x?{timezone:x}:{},..._?{runAt:_}:{},...m?{byWeekday:m}:{},...f?{dayOfMonth:f}:{},...b?{monthOfYear:b}:{},...g??{},...v?{recurrenceUntil:v}:{},...w?{recurrenceCount:w}:{},...j?{relativeDay:j}:{}};return Object.keys($).length>0?$:void 0}function t3(e){return e?JSON.stringify({frequency:e.frequency??null,projectScope:e.projectScope??null,interval:e.interval??null,localTime:e.localTime??null,partOfDay:e.partOfDay??null,timezone:e.timezone?t0(e.timezone)??e.timezone.toLocaleLowerCase("en-US"):null,runAt:e.runAt??null,relativeDay:e.relativeDay??null,byWee
1kday:e.byWeekday?[...e.byWeekday].sort((e,t)=>e-t):null,dayOfMonth:e.dayOfMonth??null,monthOfYear:e.monthOfYear??null,randomMinMinutes:e.randomMinMinutes??null,randomMaxMinutes:e.randomMaxMinutes??null,recurrenceUntil:e.recurrenceUntil??null,recurrenceCount:e.recurrenceCount??null}):""}let t4="claim requires explicit task identity 7f4d61a8",t6=RegExp(`^(?:\\d+|${Object.keys(c).join("|")})\\b\\s*`,"iu");function t9(e){let t=e.replace(/[ââ"'()[\]{}:;,]/gu," ").replace(/\b(?:a|an|the|my|our|your|you|me|us|to|for|with|that|one|it|something|task|scheduled|schedule|proposal|reminder|daily|weekly|monthly|yearly|every|each|day|morning|afternoon|evening|night|week|month|at|in|on|tomorrow|tonight|monday|tuesday|wednesday|thursday|friday|saturday|sunday|standalone|current|project)\b/giu," ").replace(/\s+/gu," ").trim();return t.length>=3?t.slice(0,96):void 0}function t5(e,t){let s=e.slice(t),a=tC.exec(s);return tC.lastIndex=0,a?.index!=null&&(s=s.slice(0,a.index)),t9(s=s.replace(/^\s*(?:you|me|us)\b/iu,"").replace(/\b(?:with|to|for)\s+(?:you|me|us)\s*$/iu,"").replace(/\bfrom\s+(?:me|us)\s*$/iu,"").replace(/^\s*to\s+/iu,"").trim())??t4}function t8(e,t){let s=tZ[e],a=s.filter(e=>t.expectedFamilies?.includes(e));return a.length>0?a:s}function t7(e,t,s={}){let a=e.normalize("NFKD").replace(/[\u0300-\u036f]/gu,"").replace(/[\u2018\u2019]/gu,"'").toLocaleLowerCase("en-US").trim();return!!(a.endsWith("?")&&!s.allowActionQuestion&&!tF.test(a)||/^(?:si\s+quieres|si\s+tu\s+veux|se\s+quiser|se\s+voce\s+quiser|se\s+vuoi|wenn\s+du\s+mochtest)\b/iu.test(a)||/\b(?:no|nao|non|nicht|ne)\s*$/iu.test(a.slice(0,t)))||!/\b(?:statement|claim|sentence|phrase)\b[^.!?]{0,100}\b(?:is|was)\s+(?:true|accurate|correct|factual)\b/iu.test(a)&&(!!(tE.test(a)||tU.test(a))||tD.test(a.slice(0,t)))}function se(e){let t=e.families[0];return{code:t?tY[t]:"external_action_unverified",excerpt:tW(e.excerpt)}}function st(e,t=eJ,s={}){let a;if(!e)return{ok:!0};let i="receipts"in t?t:function(e){let t=[];for(let s=0;s<(e.generatedImageCount??0);s+=1)t.push({receiptId:`legacy-image-generation:${s}`,family:"image_generation",objectKind:"image",quantity:1,label:"__legacy_any__",state:"committed"},{receiptId:`legacy-image-delivery:${s}`,family:"image_delivery",objectKind:"image",quantity:1,label:"__legacy_any__",state:"committed"});let s=Math.max(0,(e.linkedImageCount??0)-(e.generatedImageCount??0));for(let e=0;e<s;e+=1)t.push({receiptId:`legacy-linked-image:${e}`,family:"image_delivery",objectKind:"image",quantity:1,label:"__legacy_any__",state:"committed"});for(let s=0;s<(e.generatedFileCount??0);s+=1)t.push({receiptId:`legacy-file:${s}`,family:"file_delivery",objectKind:"document",quantity:1,label:"__legacy_any__",state:"committed"});return{receipts:t,generatedImageCount:e.generatedImageCount??0,linkedImageCount:e.linkedImageCount??0,generatedFileCount:e.generatedFileCount??0,allowedSourceUrls:e.allowedSourceUrls??[],webAccessOperations:[],completedExternalActions:[]}}(t),n=ei(e.normalize("NFKC")),r=n.replace(tr,e=>" ".repeat(e.length)),o=r.replace(/https?:\/\/\S+/giu,e=>" ".repeat(e.length)),u=[...tG(n,tr,"markdown_image_embed"),...tG(n,tu,"synthetic_image_placeholder"),...tG(n,tc,"synthetic_file_placeholder"),...function(e,t){let s=new Set(t.map(tB).filter(e=>void 0!==e)),a=[];for(let{pattern:t,presentation:i}of[{pattern:to,presentation:"bare"},{pattern:tl,presentation:"linked"}])for(let n of(t.lastIndex=0,e.matchAll(t))){let t=n.index??0,r=e.slice(Math.max(0,t-120),Math.min(e.length,t+n[0].length+80)),o=function(e,t,s,a){let i=td.exec(e)?.[0];if(i)try{let e=new URL(i.replace(/[.,!;:]+$/u,""));if(a.has(e.toString()))return;let n=e.pathname.toLocaleLowerCase("en-US").split("/").filter(Boolean),r=n.at(-1)?.split(".").at(-1),o=void 0!==r&&tp.has(r),l=tb.test(s),d=tg.test(s),u=ty.test(s);if(n.some(e=>th.has(e))||u&&l)return"image_url_unverified";if(n.some(e=>tm.has(e))){if(o||l)return"image_url_unverified";return d?"file_url_unverified":"artifact_url_unverified"}if(r&&tf.has(r))return"file_url_unverified";if("bare"===t&&o)return"image_url_unverified";if(!u)return;if(l)return"image_url_unverified";if(d)return"file_url_unverified";return"artifact_url_unverified"}catch{return}}(n[0],i,r,s);o&&a.push({code:o,excerpt:tR(e,t,n[0].length)})}return a}(r,i.allowedSourceUrls)],c=function(e,t={}){let s=ei(e.normalize("NFKC"));return Array.from(new Map((!0===t.clarification?g(s):s.split(h).map(e=>
1e.trim()).filter(Boolean)).flatMap(e=>{let s=function(e,t){var s;let a=H(e),i=[],n=(s=et(a,d.flatMap(e=>e.objects))).filter(e=>!s.some(t=>{if(t===e)return!1;if(t.entry.kind===e.entry.kind&&t.index<=e.index&&t.end>=e.end&&t.end-t.index>e.end-e.index)return!0;if(em[t.entry.kind]<=em[e.entry.kind])return!1;let s=a.slice(Math.min(e.end,t.end),Math.max(e.index,t.index));return/^\s*$/u.test(s)&&!/\b(?:and|or|e|y|et|und|o)\b/iu.test(s)}));for(let s of d){let r=n.filter(e=>s.objects.some(t=>t.kind===e.entry.kind&&H(t.term)===H(e.entry.term))),o=et(a,s.completions),d=r.flatMap(e=>{let t=o.filter(t=>180>=Math.abs(t.index-e.index)&&!n.some(s=>s!==e&&s.index>=t.index&&s.end<=t.end)).sort((t,s)=>Math.abs(t.index-e.index)-Math.abs(s.index-e.index))[0];return t?[{completion:t,object:e}]:[]});for(let{object:n,completion:r}of d.filter(e=>!d.some(t=>{if(t===e||t.completion.index!==e.completion.index||t.completion.end!==e.completion.end||t.object.entry.kind!==e.object.entry.kind)return!1;let s=a.slice(Math.min(e.object.end,t.object.end),Math.max(e.object.index,t.object.index)),i=void 0!==ep(a,e.object.index),n=void 0!==ep(a,t.object.index);return!/\b(?:and|or|e|y|et|und|o)\b/iu.test(s)&&(n!==i?n:t.object.index<e.object.index)}))){let o=function(e,t,s,a,i,n){var r;let o;if(Math.abs(i.index-a.index)>180||en(t,i.index)||er(s.family)&&function(e,t,s){let a=e.slice(0,t);if(function(e,t){return et(e,t).some(t=>{let s=e.slice(0,t.index),a=`${s.split(/\s+/u).slice(-4).join(" ")} `;return(D.test(a)||eh(s,e.slice(t.index)))&&!eu.test(s)})}(a,s))return!1;if(eu.test(a))return!0;let i=ec.exec(e);if(!i)return!1;let n=a.slice(i[0].length);return!(D.test(n)||eh(n,e.slice(t)))}(t,i.index,s.completions)||function(e,t,s,a,i){if(["image_generation","image_delivery","file_delivery"].includes(t)){let i,n;if(A.test(e))return!1;if(i=e.slice(Math.max(0,a.index-100),a.index),n=e.slice(a.end,a.end+120),es(e,l.map(({term:e})=>e))&&(/\bemail\b[^.!?]{0,60}\bwith\s+(?:(?:the|an?)\s+)?$/iu.test(i)&&/^\s*(?:was\s+|is\s+)?attached\b/iu.test(n)||/^(?:\s*(?:was|is|has\s+been)\s+)?attached\s+(?:to|in|with)\s+(?:(?:the|an?)\s+)?(?:email|message|mail)\b/iu.test(n)||/^\s+as\s+(?:(?:the|an?)\s+)?(?:email|message|mail)\s+attachment\b/iu.test(n))||function(e,t){if(et(e,Q.map(e=>({term:e}))).some(e=>e.index>=t.end&&e.index-t.end<=80))return!0;let s=e.slice(Math.max(0,t.index-64),t.index),a=e.slice(t.end,t.end+48);return!!(/\baccording\s+to\s+(?:(?:the|this|that|your)\s+)?$/iu.test(s)||/^\s*(?:says|shows|states|explains|indicates)\b/iu.test(a))||et(e,Y.map(e=>({term:e}))).some(s=>{if(s.index>=t.index||t.index-s.end>12)return!1;let a=e.slice(s.end,t.index);if(!/^\s*$/u.test(a))return!1;let i=e.slice(Math.max(0,s.index-48),s.index);return/(?:^|\s)(?:your|the|this|that|a|an|o|os|as|el|la|los|las|le|les|un|une|der|die|das|il|lo|gli|votre|tuo|tua)\s*$/iu.test(i)||es(i,Z)})}(e,a)&&!("image_generation"===t&&function(e,t,s){if(/\bby\s+(?:me|us)\b/iu.test(e.slice(t.end)))return!0;let a=t.index<s.index?e.slice(Math.max(0,t.index-72),t.index):e.slice(s.end,t.index);return D.test(a)}(e,s,a)))return!0;if(C.test(e))return!1;if(N.test(e)&&!I.test(e))return!0}return!!(["image_generation","image_delivery","file_delivery"].includes(t)&&O.test(ea(e,a)))||("image_generation"===t||"image_delivery"===t?!!/^(?:images?|avatars?)$/iu.test(H(a.entry.term))&&S.test(ea(e,a))||"image_generation"===t&&function(e,t,s){if(t.end>=s.index)return!1;let a=e.slice(t.end,s.index),i=H(t.entry.term);return("prepared"===i||"prepped"===i)&&K.test(a)||T.test(a)}(e,s,a):"file_delivery"===t?L.test(e)&&!P.test(e):"gmail_draft_create"===t&&!/\bgmail\b/iu.test(e)&&!i.expectedFamilies?.includes("gmail_draft_create"))}(t,s.family,i,a,n)||function(e,t,s,a,i){if(A.test(e))return!1;let n=e.slice(t.end);if(/\bby\s+(?!me\b|us\b)[\p{L}\p{N}@._+-]+/iu.test(n)||F.test(e)&&!D.test(e)&&!I.test(e))return!0;let r=e.slice(0,t.index).split(/[,:]/u).at(-1)?.trim();if(!r)return!1;let o=Array.from(r.matchAll(E)).at(-1),l=o?r.slice((o.index??0)+o[0].length):r;if(o&&!D.test(l))return!0;if(D.test(l)||eh(`${r} `,t.entry.term))return!1;if(/^you\s+(?:can|may|will|could|should)\b/iu.test(r)){if(er(a))return!0;
1if(/^you\s+(?:can|may|will)\b/iu.test(r))return!1}if(I.test(e)||W.test(e))return!1;if(t.index>=s.index){if(i.expectedFamilies?.includes(a))return!1;let n=e.slice(0,s.index).split(/[,:;]/u).at(-1)?.trim();return!!R.test(e)||!(G.test(n??"")||/(?:^|\s)a(?:\s+[\p{L}\p{N}'-]+){0,4}\s*$/iu.test(n??"")&&B.test(H(t.entry.term)))}return!U.test(r)}(t,i,a,s.family,n))return;let d=ep(t,a.index),u=(r=a.index,o=t.slice(Math.max(0,r-48),r),/(?:^|\s)(?:another|additional|different|second|third|fourth|one\s+more)\s*$/iu.test(o)),c=function(e,t,s,a){if(s.end>=a.index)return;let i=e.slice(s.end,a.index).trim(),n=i.match(/["ââ«]([^"ââ»]{1,100})["ââ»]/u)?.[1]?.trim();if(n)return n;if(/^avatars?$/iu.test(H(a.entry.term)))return;let r=t.slice(s.end,a.index).split(/\s+/u).map(e=>e.replace(/[^\p{L}\p{N}]/gu,"")).filter(e=>e&&!ef.has(e));return r.length>=1?r.join(" "):void 0}(e,t,i,a),h=function(e,t,s){if("email_send"!==t)return;let a=e.slice(s.end),i=e.slice(s.index,s.index+180),n=a.match(/\bto\s+(.{1,120})$/iu)?.[1],r=i.match(/\b(?:sent|emailed|forwarded|delivered)\s+(.{1,80}?)\s+(?:the|an?)\s+(?:emails?|messages?|mails?)\b/iu)?.[1],o=i.match(/\b(?:sent|emailed|forwarded|delivered)\s+(.{1,80}?)\s+(?=(?:the|an?|this|that|your)\s)[^.!?]{0,100}\b(?:email|message|mail)\s+attachment\b/iu)?.[1],l=eb(n??r??o);return l.length>0?l:void 0}(t,s.family,i),m=null!==e.slice(i.end,a.index).match(/["ââ«][^"ââ»]{1,100}["ââ»]/u),p=new Set((h??[]).flatMap(e=>H(e).split(" "))),f="email_send"===s.family&&c&&!m?H(c).split(" ").filter(e=>"and"!==e&&!p.has(e)).join(" ")||void 0:c,b="email_send"===s.family&&/\b(?:email|message|mail)\s+attachment\b/iu.test(t)?void 0:f;return{families:[s.family],mode:i.entry.mode,objectKind:a.entry.kind,...void 0!==d?{count:d}:{},...b?{label:b}:{},...h?{targets:h}:{},...u?{introducesDistinctReferent:!0}:{},semanticKey:eg([s.family],a.entry.kind,d,b,h),excerpt:e.trim().slice(0,160)}}(e,a,s,n,r,t);o&&i.push(o)}}return i}(e,t),a=(function(e,t){let s=H(e),a=[];for(let i of X){let n=i.terms.map(e=>({term:e})).flatMap(e=>et(s,[e]))[0];if(!n||en(s,n.index))continue;let r=i.families?[i.families]:(t.expectedFamilies??[]).map(e=>[e]);if(0!==r.length&&function(e,t,s){let a=e.replace(/[.!?,;:]+$/gu,"").trim();if(a===s)return!0;let i=a.replace(/^if\s+you\s+(?:were|are)\s+(?:wondering|curious)\s*,?\s*/iu,"").replace(/^(?:done|all set)\s*[-:]?\s*/iu,"").trim();if(i===s)return!0;if(!t.families)return/^(?:done|all\s+set|ready|finished|complete|here\s+(?:it\s+is|they\s+are|you\s+go)|pront[oa]|list[oa]|pret[e]?|fertig)$/iu.test(i);let n=t.families?.[0];return"email_send"===n?/^(?:email|e\s+mail|message|mail)\s+(?:sent|delivered|emailed|forwarded)(?:\s+successfully)?$/iu.test(i)||/^(?:(?:i|we)(?:'ve|\s+have|\s+just)?\s+)?(?:sent|delivered|emailed|forwarded)(?:\s+(?:it|this|that)(?:\s+to\s+[\p{L}\p{N}@._+-]+(?:\s+[\p{L}\p{N}@._+-]+){0,8})?|\s+[\p{L}\p{N}@._+-]+(?:\s+[\p{L}\p{N}@._+-]+){0,5})?$/iu.test(i)||/^i\s+took\s+care\s+of\s+sending\s+(?:it|this|that|the\s+(?:email|message))$/iu.test(i)||/^i\s+took\s+care\s+of\s+sending\s+(?:this|that)\s+(?:email|message)$/iu.test(i)||/^[\p{L}\p{N}@._+-]+(?:\s+[\p{L}\p{N}@._+-]+){0,2}\s+received\s+(?:it|this|that|the\s+(?:email|message))\s+from\s+me$/iu.test(i)||/^[\p{L}\p{N}@._+-]+(?:\s+[\p{L}\p{N}@._+-]+){0,2}\s+has\s+(?:the|your)\s+email\s+now$/iu.test(i)||/^(?:it(?:'s|\s+is)\s+)?in\s+your\s+inbox(?:\s+now)?$/iu.test(i)||/^(?:the|this|your)\s+(?:email|message)\s+is\s+in\s+[\p{L}\p{N}@._+-]+(?:'s|s)\s+inbox$/iu.test(i):"social_publish"===n?/^(?:(?:the|your|this)\s+)?(?:post\s+)?(?:published|posted|live(?:\s+now)?)$/iu.test(i):"calendar_write"===n?/^(?:(?:the|your|this)\s+)?(?:calendar\s+updated|meeting\s+added|evento\s+criado)$/iu.test(i):"project_file_write"===n?/^(?:renamed|project\s+saved|saved\s+to\s+your\s+project)$/iu.test(i):"gmail_draft_create"===n?/^(?:the|this|your)?\s*draft\s+is\s+(?:now\s+)?in\s+your\s+gmail$/iu.test(i):!!(t.families?.includes("image_delivery")||t.families?.includes("file_delivery"))&&/^(?:attached|attachment\s+ready)$/iu.test(i)}(s,i,H(n.entry.term)))for(let t of r){let s=ey(e,t),n=eg(t,void 0,void 0,void 0,s);a.push({families:t,mode:i.mode,...s?{targets:s}:{},semanticKey:n,excerpt:e.trim().slice(0,160)})}}return a})(e,t).filter(e=>!s.some(t=>t.families.some(t=>e.families.includes(t)))),i=(function(e,t){let s=new Set(t.expectedFamilies??[]);if(0===s.size)return[];let a=H(e).replace(/[.!?,;:]+$/gu,"");return V.flatMap(t=>{if(!s.has(t.family)||!t.pattern.test(a))return[];let i=[t.family],n=ey(e,i);return[{families:i,mode:"status",objectKind:t.objectKind,...n?{targets:n}:{},semanticKey:eg(i,t.objectKind,void 0,void 0,n),excerpt:e.trim().slice(0,160)}]})})(e,t).filter(e=>![...s,...a].some(t=>t.families.some(t=>e.families.includes(t))));return[...s,...a,...i]}).map((e,t)=>[e.introducesDistinctReferent?`${e.semanticKey}:distinct:${t}`:e.semanticKey,e])).values())}(o,s);return(u.push(...(function(e,t){let s=function(e){let t=Array.from(new Map(e.map((e,t)=>[e.introducesDistinctReferent?`${e.semanticKey}:distinct:${t}`:e.semanticKey,e])).values()),s=[];for(let e of t){let t=s.filter(t=>t.every(t=>(function(e,t){var s,a;return!e.introducesDistinctReferent&&!t.introducesDistinctReferent&&!!e.families.some(e=>t.families.includes(e))&&(!e.objectKind||!t.objectKind||!!e3(e.objectKind,t.objectKind)||!!e3(t.objectKind,e.objectKind))&&(!e.label||!t.label||!!te(e.label,t.label)||!!te(t.label,e.label))&&(!e.targets||!t.targets||!!(ta(s=e.targets,a=t.targets)||ta(a,s)))&&!!function(e,t){if(!e||!t)return!0;
1if(["frequency","projectScope","interval","localTime","partOfDay","relativeDay","dayOfMonth","monthOfYear","randomMinMinutes","randomMaxMinutes","recurrenceCount"].some(s=>void 0!==e[s]&&void 0!==t[s]&&e[s]!==t[s])||e.timezone&&t.timezone&&e6(e.timezone)!==e6(t.timezone)||e.runAt&&t.runAt&&!e9(e.runAt,t.runAt)||e.recurrenceUntil&&t.recurrenceUntil&&!e5(e.recurrenceUntil,t.recurrenceUntil,t.timezone))return!1;if(e.byWeekday&&t.byWeekday&&[...e.byWeekday].sort().join(",")!==[...t.byWeekday].sort().join(","))return!1;return(!e.localTime||!t.partOfDay||!!e8(e.localTime,t.partOfDay))&&(!t.localTime||!e.partOfDay||!!e8(t.localTime,e.partOfDay))}(e.schedule,t.schedule)&&(!e.count||!t.count||e.count===t.count)})(t,e)));if(0===t.length){s.push([e]);continue}t[0]?.push(e)}return s.map(e=>({claims:e,requiredQuantity:Math.max(...e.map(e=>e.count??1))}))}(e),a=Array.from(new Map(t.filter(e=>"committed"===e.state&&e.quantity>0).map(e=>[e.receiptId,e])).values());if(0===s.length)return[];if(s.some(e=>ti(e).length>1)){let e,t,i,n,r,o;return e=s.reduce((e,t)=>e+t.requiredQuantity*Math.max(ti(t).length,1),0),t=a.flatMap(t=>Array.from({length:Math.min(t.quantity,e)},(e,s)=>({key:`${t.receiptId}:${s}`,receipt:t}))),i=s.map(e=>(function(e,t){let s,a,i=ti(e),n=t.map((e,t)=>({index:t,unit:e})).filter(({unit:t})=>{var s;return s=t.receipt,e.claims.every(e=>e.families.includes(s.family)&&e3(e.objectKind,s.objectKind)&&te(e.label,s.label??"")&&e4(e.schedule,s.schedule))}).map(({index:e})=>e);if(0===i.length){var r=e.requiredQuantity;if(r<=0)return[[]];if(n.length<r)return[];let t=[],s=(e,a)=>{if(a.length===r)return void t.push([...a]);let i=r-a.length;for(let t=e;t<=n.length-i;t+=1){let e=n[t];void 0!==e&&s(t+1,[...a,e])}};return s(0,[]),t}let o=(s=[],(a=(e,r,o)=>{if(o.size===i.length)return void s.push([...r]);for(let s=e;s<n.length;s+=1){let e=n[s];if(void 0===e)continue;let l=t[e]?.receipt.targets??[],d=new Set(o);i.forEach((e,t)=>{l.some(t=>ts(e,t))&&d.add(t)}),d.size!==o.size&&a(s+1,[...r,e],d)}})(0,[],new Set),s);if(0===o.length)return[];let l=new Map,d=(t,s,a)=>{if(t===e.requiredQuantity){let e=[...s].sort((e,t)=>e-t);l.set(e.join(":"),e);return}for(let e of o){if(e.some(e=>a.has(e)))continue;let i=new Set(a);e.forEach(e=>i.add(e)),d(t+1,[...s,...e],i)}};return d(0,[],new Set),[...l.values()]})(e,t)),n=s.map((e,t)=>t).sort((e,t)=>(i[e]?.length??0)-(i[t]?.length??0)),r=new Set,(o=(e,t,a)=>{if(a.size+(n.length-e)<=r.size)return;if(e===n.length){r=new Set(a);return}let l=n[e];if(void 0!==l){for(let n of i[l]??[]){if(n.some(e=>t.has(e)))continue;let i=new Set(t);n.forEach(e=>i.add(e));let d=new Set(a);if(d.add(l),o(e+1,i,d),r.size===s.length)return}o(e+1,t,a)}})(0,new Set,new Set),s.flatMap((e,t)=>r.has(t)?[]:[e.claims[0]].filter(e=>void 0!==e))}let i=1+s.length,n=i+a.length,r=Array.from({length:n+1},()=>[]),o=s.map((e,t)=>{let s=1+t,n=tn(r,0,s,e.requiredQuantity);return a.forEach((t,a)=>{e.claims.every(e=>e.families.includes(t.family)&&e3(e.objectKind,t.objectKind)&&te(e.label,t.label??"")&&ta(e.targets,t.targets??[])&&e4(e.schedule,t.schedule))&&tn(r,s,i+a,e.requiredQuantity)}),n});return a.forEach((e,t)=>{tn(r,i+t,n,e.quantity)}),!function(e,t){for(;;){let s=Array(e.length).fill(-1),a=Array(e.length).fill(-1),i=[0];s[0]=0;for(let n=0;n<i.length&&(s[t]??-1)<0;n+=1){let t=i[n];if(void 0!==t)for(let[n,r]of(e[t]??[]).entries())r.capacity<=0||(s[r.to]??-1)>=0||(s[r.to]=t,a[r.to]=n,i.push(r.to))}if((s[t]??-1)<0)return;let n=1/0;for(let i=t;0!==i;i=s[i]??0){let t=e[s[i]??0]?.[a[i]??-1];n=Math.min(n,t?.capacity??0)}for(let i=t;0!==i;i=s[i]??0){let t=s[i]??0,r=e[t]?.[a[i]??-1];if(!r)continue;r.capacity-=n;let o=e[r.to]?.[r.reverse];o&&(o.capacity+=n)}}}(r,n),s.flatMap((e,t)=>(o[t]?.capacity??e.requiredQuantity)>0?[e.claims[0]].filter(e=>void 0!==e):[])})([...c.filter(e=>!tQ(e.excerpt)),...function(e,t,s){tS.lastIndex=0;let a=[];for(let i of e.matchAll(tS)){let n=i.groups?.action,r=i.index??0;if(!n)continue;let o=tP(e,r,t),l=Math.max(0,e.lastIndexOf(o,r)),d=t8(n,t);t7(o,r-l)||s.some(e=>e.excerpt.replace(/[.!?;]+$/u,"").trim()===o.replace(/[.!?;]+$/u,"").trim()&&e.families.some(e=>d.includes(e)))||a.push({families:d,mode:"uploaded"===n?"delivered":"mutated",semanticKey:`deictic:${n}:${[...d].sort().join("|")}`,excerpt:o.slice(0,160)})}return a}(o,s,c),...function(e,t){let s=tV(e),a=[];for(let e of tL)for(let i of(e.lastIndex=0,s.matchAll(e))){let e=i.index??0,n=i.groups?.action?.toLocaleLowerCase("en-US");if(!n)continue;let r=tP(s,e,t),o=Math.max(0,s.lastIndexOf(r,e)),l=/(?:remind|notify|message|check\s+in|follow\s+up|reach\s+out|recordare|recordarte|avisarte|rappellerai|previendrai|erinnern|benachrichtigen|kontaktieren|ricordero|avvisero|lembrar|lembrarei|avisar)/u.test(n),d=/\b(?:you|your|te|tu|contigo|vous|dich|dir|ti|voce)\b/iu.test(r),u=tC.test(r);if(tK.test(r)&&!u||t7(r,e-o)||!u&&!(l&&d))continue;let c=e-o+i[0].length,h=t2(r),m=/^[a-z\s]+$/u.test(n)?t5(r,c):t4;a.push({families:["scheduled_task_write"],mode:"mutated",objectKind:"scheduled_task",label:m,...h?{schedule:h}:{},semanticKey:`future-scheduled-task:${n.replace(/\s+/gu,"-")}:${m}:${t3(h)}`,excerpt:r.slice(0,160)})}return a}(o,s),...function(e,t){let s=tV(e),a=[];for(let e of tN)for(let i of(e.lastIndex=0,s.matchAll(e))){let e=i.index??0,n=tP(s,e,t),r=Math.max(0,s.lastIndexOf(n,e));if(/\b(?:for\s+(?:your\s+)?review|review\s+card|awaiting\s+(?:your\s+)?approval)\b/iu.test(n)||t7(n,e-r))continue;let o=i.groups?.descriptor?.trim()??"",l=/[â"]([^â"]{3,96})[â"]/u.exec(o)?.[1]??t9(o.replace(t6,"")),d=t2(n);a.push({families:["scheduled_task_write"],mode:/^(?:your|the)\b/iu.test(i[0])?"status":"mutated",objectKind:"scheduled_task",...l?{label:l}:{},...d?{schedule:d}:{},semanticKey:`scheduled-task-completed:${l??"generic"}:${t3(d)}`,excerpt:n.slice(0,160)})}return a}(o,s),...function(e,t){let s=tV(e),a=[];for(let e of(tO.lastIndex=0,s.matchAll(tO))){let i=e.index??0,n=tP(s,i,t);
1if(!tC.test(n)||n.endsWith("?")&&(!0===t.clarification||!(void 0!==tX(n)||/\b(?:[01]?\d|2[0-3]):[0-5]\d\b/u.test(n)||/\b(?:1[0-2]|0?[1-9])\s*[ap]\.?m\b/iu.test(n)||/\b(?:noon|midnight)\b/iu.test(n))))continue;let r=Math.max(0,s.lastIndexOf(n,i));if(t7(n,i-r,{allowActionQuestion:!0}))continue;let o=i-r+e[0].length,l=t2(n),d=t5(n,o);a.push({families:["scheduled_task_proposal"],mode:"created",objectKind:"scheduled_task",label:d,...l?{schedule:l}:{},semanticKey:`scheduled-task-offer:${d}:${t3(l)}`,excerpt:n.slice(0,160)})}for(let e of tA)for(let i of(e.lastIndex=0,s.matchAll(e))){let e=i.index??0,n=tP(s,e,t),r=Math.max(0,s.lastIndexOf(n,e));if(t7(n,e-r))continue;let o=t2(n),l=function(e){let t=/[â"]([^â"]{3,96})[â"]/u.exec(e)?.[1];if(t)return t;let s=/\b(?:scheduled[ -]?tasks?\s+proposals?|tasks?|reminders?|proposals?)\b/iu.exec(e);if(s&&null!=s.index)return t9(e.slice(0,s.index).replace(/^.*\b(?:prepared|proposed|attached|created|made)\b/iu,"").replace(/^\s*(?:your|the)\b/iu,""))}(n);a.push({families:["scheduled_task_proposal"],mode:"status",objectKind:"scheduled_task",...l?{label:l}:{},...o?{schedule:o}:{},semanticKey:`scheduled-task-proposal:${l??"generic"}:${t3(o)}`,excerpt:n.slice(0,160)})}return a}(o,s),...function(e,t,s){tT.lastIndex=0;let a=[];for(let i of e.matchAll(tT)){let n=i.groups?.action,r=i.index??0;if(!n)continue;let o=tP(e,r,t),l=t8(n,t);tQ(o)||s.some(e=>e.excerpt.replace(/[.!?;]+$/u,"").trim()===o.replace(/[.!?;]+$/u,"").trim()&&e.families.some(e=>l.includes(e)))||a.push({families:l,mode:["attached","uploaded"].includes(n)?"delivered":"created"===n||"generated"===n?"created":"mutated",semanticKey:`passive:${n}:${[...l].sort().join("|")}`,excerpt:o.slice(0,160)})}return a}(o,s,c)],i.receipts).map(se),...(a=i.webAccessOperations??[],(function(e){let t=ei(e.normalize("NFKC")).replace(/[*_~]{1,3}/gu,e=>" ".repeat(e.length)).replace(/"[^"\n]*"/gu,e=>" ".repeat(e.length)).replace(/â[^â\n]*â/gu,e=>" ".repeat(e.length)).replace(/â[^â\n]*â/gu,e=>" ".repeat(e.length)).replace(/«[^»\n]*»/gu,e=>" ".repeat(e.length)).split(ew).map(e=>e.trim()).filter(Boolean),s=t.map(e=>eH(e,ev));return Array.from(new Map([...s.flat(),...t.flatMap((e,a)=>t.slice(Math.max(0,a-2),a+1).some(e=>eR.test(e))||!s.slice(Math.max(0,a-2),a+1).flat().some(({operation:e})=>["any","search","read_page"].includes(e))?[]:eH(e,[{operation:"read_page",pattern:eF},{operation:"read_complete_page",pattern:eW}])),...t.flatMap((e,t)=>eB.test(e)||!s.slice(Math.max(0,t-2),t+1).flat().some(({operation:e})=>["read_youtube","read_multiple_youtube"].includes(e))?[]:eH(e,[{operation:"watch_youtube",pattern:eG}]))].map(e=>[e.semanticKey,e])).values())})(o).flatMap(e=>("any"===e.operation?a.length>=e.quantity:a.filter(t=>t===e.operation).length>=e.quantity)?[]:[{code:"web_access_unverified",excerpt:tW(e.excerpt)}]))),0===u.length)?{ok:!0}:{ok:!1,violations:Array.from(new Map(u.map(e=>[`${e.code}:${e.excerpt}`,e])).values())}}
1class ss extends Error{constructor(e){const t=e[0],s=t?` [${t.code}] ${t.excerpt}`:"";super(`Soul output contained ${e.length} unverified delivery/action claim${1===e.length?"":"s"}${s}`),this.violations=e,this.code="soul_output_claim_unverified",this.name="OutputClaimIntegrityError"}}function sa(e={}){let t="",s="",a=!1;return{get accumulatedText(){return t},get pendingTextLength(){return s.length},push:e=>(e&&(t+=e,a||(s+=e)),""),flushVerified(a=eJ){if(!st(t,a,e).ok)return"";let i=(()=>{let e=t.length-s.length,a=tV(t),i=Math.max(a.lastIndexOf("."),a.lastIndexOf("!"),a.lastIndexOf("?"),a.lastIndexOf(";"),a.lastIndexOf("\n"))+1,n=a.slice(i),r=1/0;for(let e of tI){e.lastIndex=0;let t=e.exec(n);t&&null!=t.index&&(r=Math.min(r,i))}let o=Math.max(0,s.length-96);return Number.isFinite(r)?Math.max(0,Math.min(o,r-e)):o})(),n=s.slice(0,i);return s=s.slice(i),n},finish(a=eJ){let i=st(t,a,e);if(!i.ok)throw s="",new ss(i.violations);let n=s;return s="",n},discard(){s="",a=!0}}}},36906:(e,t,s)=>{s.d(t,{HF:()=>o,gg:()=>r,kU:()=>l,pV:()=>i});var a=s(19116);class i extends Error{constructor(){super("The signed-in account changed. Refresh this page before continuing; sign in again if prompted."),this.code="on_device_account_changed",this.name="OnDeviceAccountChangedError"}}async function n(e,t=globalThis.fetch){try{var s;let a=await t("/api/auth/session",{method:"GET",headers:{Accept:"application/json"},credentials:"same-origin",cache:"no-store",signal:e.signal});if(!a.ok)return null;let n=await a.json();if(n?.user?.id!==e.expectedUserId)throw new i;return{ageTier:(s=n.user.ageTier,"adult"===s||"teen"===s||"child"===s?s:null),guardianConsented:!0===n.user.guardianConsented}}catch(t){if(e.signal.aborted||t instanceof i)throw t;return null}}async function r(e,t=globalThis.fetch){return(await n(e,t))?.ageTier??null}class o extends Error{constructor(e){super(e),this.name="OnDeviceChatEligibilityError"}}async function l(e,t=globalThis.fetch){let s=await n(e,t);if(!s)throw new o("Connect to verify your account before generating a private reply. Your content stays on this device.");let i=(0,a.X)(s);if(i)throw new o(i.message);if("adult"!==s.ageTier&&"teen"!==s.ageTier)throw new o("Your chat eligibility could not be verified.");return s.ageTier}},60175:(e,t,s)=>{s.d(t,{CV:()=>g,Gb:()=>p,br:()=>f,nO:()=>i,w$:()=>y,wD:()=>b,z2:()=>n});var a=s(5593);let i="fostera.private-vault.v1",n={type:"lock-all"},r="fostera:private-mode",o={status:"unavailable",mode:null},l={status:"ready",mode:"cloud"},d={status:"ready",mode:"private"},u=new Set,c=new Set;function h(e){return"fostera.privateMode.v1."+JSON.stringify([e.userId,e.soulId])}function m(e){return e.userId.length>0&&e.soulId.length>0}function p(e,t){if(!m(e))return o;let s=h(e);if(u.has(s))return o;try{let e=(t??window.localStorage).getItem(s);if(null===e||"cloud"===e)return l;return"private"===e?d:o}catch{return o}}function f(e,t,s){if(!m(e)||"private"!==t&&"cloud"!==t)return!1;let i=h(e);"private"===t&&(0,a.Bk)();let n=!1;try{let e=s??window.localStorage;e.setItem(i,t),n=e.getItem(i)===t}catch{}return n?u.delete(i):u.add(i),window.dispatchEvent(new CustomEvent(r,{detail:i})),n}function b(e,t){let s=h(e),a=e=>{e.detail===s&&t()},i=e=>{(null===e.key||e.key===s)&&t()};return window.addEventListener(r,a),window.addEventListener("storage",i),()=>{window.removeEventListener(r,a),window.removeEventListener("storage",i)}}function g(e){return c.add(e),()=>c.delete(e)}function y(){for(let e of c)try{e()}catch{}if("u">typeof BroadcastChannel){let e=null;try{(e=new BroadcastChannel(i)).postMessage(n)}catch{}finally{e?.close()}}}},62529:(e,t,s)=>{s.d(t,{r:()=>l});var a=s(42600),i=s(13676),n=s(60175);let r={status:"pending",mode:null},o=()=>r;function l(e){let t,s,r,l,d=(0,a.c)(12),{userId:u,soulId:c}=e;d[0]!==c||d[1]!==u?(t=e=>(0,n.wD)({userId:u,soulId:c},e),d[0]=c,d[1]=u,d[2]=t):t=d[2];let h=t;d[3]!==c||d[4]!==u?(s=()=>(0,n.Gb)({userId:u,soulId:c}),d[3]=c,d[4]=u,d[5]=s):s=d[5];let m=s,p=(0,i.useSyncExternalStore)(h,m,o);d[6]!==c||d[7]!==u?(r=e=>(0,n.br)({userId:u,soulId:c},e),d[6]=c,d[7]=u,d[8]=r):r=d[8];let f=r;return d[9]!==p||d[10]!==f?(l={...p,selectMode:f},d[9]=p,d[10]=f,d[11]=l):l=d[11],l}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.