@opencxh/domain 1.229.0 → 1.232.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,32 +1,32 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ce=10,U=10,$=10,K=5,ur=new Set(["header","section","context","divider","image","list","actions","attachments"]);function re(e){if(typeof e=="string")return e.length>0;if(!e||typeof e!="object")return!1;const t=e;return typeof t.key=="string"||typeof t.value=="string"}function dr(e,t=()=>{}){if(!Array.isArray(e))return[];const n=[];for(const r of e){if(n.length>=ce){t(`more than ${ce} blocks; the rest was dropped`);break}if(!r||typeof r!="object")continue;const i=r;if(!ur.has(i.type)){t(`unknown block type ${String(i.type)}`);continue}switch(i.type){case"header":if(!re(i.text)){t("a header without text");continue}break;case"context":if(!re(i.text)){t("a context block without text");continue}break;case"image":if(!i.url||!i.alt){t("an image without url or alt");continue}break;case"section":Array.isArray(i.fields)&&i.fields.length>U&&(t(`more than ${U} fields in a section`),i.fields=i.fields.slice(0,U));break;case"list":if(!Array.isArray(i.items)||i.items.length===0){t("a list without items");continue}i.items.length>$&&(t(`more than ${$} list items`),i.items=i.items.slice(0,$));break;case"actions":{const o=Array.isArray(i.elements)?i.elements:[],a=o.filter(s=>s?.action_id&&s.invoke&&re(s.text));if(a.length!==o.length&&t("an action without action_id, invoke or text"),a.length===0)continue;a.length>K&&t(`more than ${K} actions`),i.elements=a.slice(0,K);break}}n.push(i)}return n}const pr=/(\*\*|__)(?=\S)([\s\S]*?\S)\1/g,fr=/(\*|_)(?=\S)([^*_\n]*?\S)\1/g;function at(e){if(typeof e!="string"||!e)return"";let t=e;return t=t.replace(/```[a-z]*\n?/gi,"").replace(/~~~[a-z]*\n?/gi,""),t=t.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1"),t=t.replace(/\[([^\]]*)\]\([^)]*\)/g,"$1"),t=t.replace(/\[([^\]]*)\]\[[^\]]*\]/g,"$1"),t=t.replace(/<((?:https?|mailto):[^>\s]+)>/gi,"$1"),t=t.split(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const de=10,U=10,$=10,K=5,Tr=new Set(["header","section","context","divider","image","list","actions","attachments"]);function ae(e){if(typeof e=="string")return e.length>0;if(!e||typeof e!="object")return!1;const t=e;return typeof t.key=="string"||typeof t.value=="string"}function br(e,t=()=>{}){if(!Array.isArray(e))return[];const n=[];for(const r of e){if(n.length>=de){t(`more than ${de} blocks; the rest was dropped`);break}if(!r||typeof r!="object")continue;const i=r;if(!Tr.has(i.type)){t(`unknown block type ${String(i.type)}`);continue}switch(i.type){case"header":if(!ae(i.text)){t("a header without text");continue}break;case"context":if(!ae(i.text)){t("a context block without text");continue}break;case"image":if(!i.url||!i.alt){t("an image without url or alt");continue}break;case"section":Array.isArray(i.fields)&&i.fields.length>U&&(t(`more than ${U} fields in a section`),i.fields=i.fields.slice(0,U));break;case"list":if(!Array.isArray(i.items)||i.items.length===0){t("a list without items");continue}i.items.length>$&&(t(`more than ${$} list items`),i.items=i.items.slice(0,$));break;case"actions":{const o=Array.isArray(i.elements)?i.elements:[],a=o.filter(s=>s?.action_id&&s.invoke&&ae(s.text));if(a.length!==o.length&&t("an action without action_id, invoke or text"),a.length===0)continue;a.length>K&&t(`more than ${K} actions`),i.elements=a.slice(0,K);break}}n.push(i)}return n}const Ir=/(\*\*|__)(?=\S)([\s\S]*?\S)\1/g,Or=/(\*|_)(?=\S)([^*_\n]*?\S)\1/g;function pt(e){if(typeof e!="string"||!e)return"";let t=e;return t=t.replace(/```[a-z]*\n?/gi,"").replace(/~~~[a-z]*\n?/gi,""),t=t.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1"),t=t.replace(/\[([^\]]*)\]\([^)]*\)/g,"$1"),t=t.replace(/\[([^\]]*)\]\[[^\]]*\]/g,"$1"),t=t.replace(/<((?:https?|mailto):[^>\s]+)>/gi,"$1"),t=t.split(`
2
2
  `).map(n=>n.replace(/^\s{0,3}#{1,6}\s+/,"").replace(/^\s{0,3}>\s?/,"").replace(/^\s*[-*+]\s+/,"").replace(/^\s*\d+[.)]\s+/,"").replace(/^\s*(?:[-*_]\s*){3,}$/,"")).join(`
3
- `),t=t.replace(pr,"$2"),t=t.replace(fr,"$2"),t=t.replace(/~~(?=\S)([\s\S]*?\S)~~/g,"$1"),t=t.replace(/`([^`\n]+)`/g,"$1"),t.replace(/\s+/g," ").trim()}function st(e){return e.replace(/<style[\s\S]*?<\/style>/gi," ").replace(/<script[\s\S]*?<\/script>/gi," ").replace(/<[^>]+>/g," ").replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/\s+/g," ").trim()}function L(e){if(!e||e<0)return"";const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}`}function Ue(e){return e?` — ${Math.floor(e/60)}m ${e%60}s`:""}function ie(e){return e?.split("@")?.[0]||e||""}function P(e){return e.map(t=>t.name).join(", ")}function $e(e){return e==="meeting"?"Meeting":e==="video"?"Video call":"Audio call"}const y={VOICE_CALL_STARTED:{shape:"event",channelKind:"voice",icon:"phone",snippet:()=>"Gesprek gestart",timeline:e=>e.direction==="inbound"?`Inbound call started — ${ie(e.payload.from)}`:`Outbound call started — ${ie(e.payload.to)}`},VOICE_CALL_ANSWERED:{shape:"event",channelKind:"voice",icon:"phone",connected:!0,snippet:()=>"Gesprek aangenomen",timeline:(e,t)=>`Call answered — ${t}`},VOICE_CALL_HOLD:{shape:"event",channelKind:"voice",icon:"phone",snippet:()=>"In de wacht",timeline:(e,t)=>`Call on hold — ${t}`},VOICE_CALL_UNHOLD:{shape:"event",channelKind:"voice",icon:"phone",snippet:()=>"Hervat"},VOICE_CALL_ENDED:{shape:"event",channelKind:"voice",icon:"phone",snippet:e=>`Gesprek beëindigd${e.payload.duration?` (${L(e.payload.duration)})`:""}`,timeline:e=>`Call ended${Ue(e.payload.duration)}`},VOICE_CALL_MISSED:{shape:"event",channelKind:"voice",icon:"phone",snippet:()=>"Gemiste oproep",timeline:e=>`Missed call — ${ie(e.payload.from)}`},VOICE_CALL_FAILED:{shape:"event",channelKind:"voice",icon:"phone",snippet:()=>"Gesprek mislukt",timeline:()=>"Call failed"},VOICE_CALL_VOICEMAIL:{shape:"artifact",channelKind:"voice",icon:"phone",snippet:e=>e.payload.transcription?.trim()?e.payload.transcription:"Voicemail ontvangen"},VIDEO_CALL_STARTED:{shape:"event",channelKind:"video",icon:"video",snippet:()=>"Gesprek gestart",timeline:()=>"Video call started"},VIDEO_CALL_ANSWERED:{shape:"event",channelKind:"video",icon:"video",connected:!0,snippet:()=>"Gesprek aangenomen",timeline:()=>"Video call answered"},VIDEO_CALL_HOLD:{shape:"event",channelKind:"video",icon:"video",snippet:()=>"In de wacht"},VIDEO_CALL_UNHOLD:{shape:"event",channelKind:"video",icon:"video",snippet:()=>"Hervat"},VIDEO_CALL_ENDED:{shape:"event",channelKind:"video",icon:"video",snippet:e=>`Gesprek beëindigd${e.payload.duration?` (${L(e.payload.duration)})`:""}`,timeline:()=>"Video call ended"},VIDEO_CALL_MISSED:{shape:"event",channelKind:"video",icon:"video",snippet:()=>"Gemiste oproep",timeline:()=>"Missed video call"},VIDEO_CALL_FAILED:{shape:"event",channelKind:"video",icon:"video",snippet:()=>"Gesprek mislukt",timeline:()=>"Video call failed"},EMAIL_RECEIVED:{shape:"message",triggerable:!0,displayNameKey:"communication:activity.EMAIL_RECEIVED",component:"communication:EmailActivity",channelKind:"mail",icon:"mail",replyable:!0,carriesText:!0,countsAs:"inbound_message",snippet:Ke},EMAIL_SENT:{shape:"message",component:"communication:EmailActivity",channelKind:"mail",icon:"mail",replyable:!0,carriesText:!0,countsAs:"outbound_message",snippet:Ke},CHAT_MESSAGE_SENT:{shape:"message",component:"communication:ChatMessage",channelKind:"chat",icon:"message-circle",replyable:!0,carriesText:!0,countsAs:"outbound_message",snippet:e=>e.payload.text??""},CHAT_MESSAGE_RECEIVED:{shape:"message",triggerable:!0,displayNameKey:"communication:activity.CHAT_MESSAGE_RECEIVED",component:"communication:ChatMessage",channelKind:"chat",icon:"message-circle",replyable:!0,carriesText:!0,countsAs:"inbound_message",snippet:e=>e.payload.text??""},CHAT_MEMBER_JOINED:{shape:"event",channelKind:"chat",icon:"message-circle",snippet:e=>`${P(e.payload.members)} toegevoegd`,timeline:e=>{const t=P(e.payload.members)||"Someone",n=e.payload.initiator?.name?` · added by ${e.payload.initiator.name}`:"";return`${t} joined the chat${n}`}},CHAT_MEMBER_LEFT:{shape:"event",channelKind:"chat",icon:"message-circle",snippet:e=>`${P(e.payload.members)} verlaten`,timeline:e=>{const t=P(e.payload.members)||"Someone",n=e.payload.initiator?.name?` · removed by ${e.payload.initiator.name}`:"";return`${t} left the chat${n}`}},CHAT_RENAMED:{shape:"event",channelKind:"chat",icon:"message-circle",snippet:e=>`Hernoemd naar "${e.payload.newName}"`,timeline:e=>`Chat renamed to "${e.payload.newName}"${e.payload.initiator?` by ${e.payload.initiator.name}`:""}`},CHAT_CALL_STARTED:{shape:"event",channelKind:"chat",icon:"message-circle",snippet:()=>"Gesprek gestart",timeline:e=>`${$e(e.payload.callType)} started${e.payload.initiator?` by ${e.payload.initiator.name}`:""}`,joinUrl:e=>e.payload.joinUrl},CHAT_CALL_ENDED:{shape:"event",channelKind:"chat",icon:"message-circle",snippet:e=>`Gesprek beëindigd${e.payload.duration?` (${L(e.payload.duration)})`:""}`,timeline:e=>`${$e(e.payload.callType)} ended${Ue(e.payload.duration)}`,joinUrl:e=>e.payload.joinUrl},CHAT_EVENT:{shape:"event",channelKind:"chat",icon:"message-circle",snippet:e=>e.payload.text??e.payload.eventType,timeline:e=>e.payload.text||e.payload.eventType},TRANSCRIPT_ADDED:{shape:"artifact",triggerable:!0,displayNameKey:"communication:activity.TRANSCRIPT_ADDED",component:"communication:TranscriptionActivity",icon:"captions",carriesText:!0,snippet:e=>(e.payload.segments??[]).map(t=>t.text).join(" ")},COMMENT_ADDED:{shape:"note",component:"communication:CommentActivity",icon:"sticky-note",carriesText:!0,snippet:e=>e.payload.text??""},FILE_UPLOADED:{shape:"artifact",component:"communication:FileActivity",icon:"paperclip",snippet:e=>`Bestand: ${e.payload.fileName}`},AI_MESSAGE_ADDED:{shape:"event",triggerable:!0,displayNameKey:"communication:activity.AI_MESSAGE_ADDED",icon:"circle",snippet:e=>e.payload.output?.text??e.payload.input?.text??"",timeline:()=>"AI message added"},AI_ACTION_PROPOSED:{shape:"event",component:"communication:ProposedActionCard",icon:"circle",playbookAuthored:!0,snippet:e=>`Voorstel wacht op goedkeuring (${e.payload.actions?.length??0} actie(s))`},PLAYBOOK_STARTED:{shape:"event",icon:"circle",playbookAuthored:!0,snippet:e=>`Playbook gestart${e.payload.playbookName?`: ${e.payload.playbookName}`:""}`,timeline:e=>`Playbook gestart${e.payload.playbookName?` — ${e.payload.playbookName}`:""}`},PLAYBOOK_COMPLETED:{shape:"event",icon:"circle",playbookAuthored:!0,snippet:()=>"Playbook afgerond",timeline:()=>"Playbook afgerond"},PLAYBOOK_ESCALATED:{shape:"event",icon:"circle",playbookAuthored:!0,snippet:()=>"Playbook geëscaleerd naar een mens",timeline:()=>"Playbook geëscaleerd naar een mens"},MEETING_SCHEDULED:{shape:"event",icon:"calendar",snippet:e=>`Vergadering gepland: ${e.payload.title}`,timeline:()=>"Meeting scheduled",joinUrl:e=>e.payload.joinUrl},MEETING_STARTED:{shape:"event",icon:"calendar",connected:!0,snippet:e=>`Vergadering gestart: ${e.payload.title}`,timeline:()=>"Meeting started",joinUrl:e=>e.payload.joinUrl},MEETING_ENDED:{shape:"event",icon:"calendar",snippet:e=>`Vergadering beëindigd${e.payload.duration?` (${L(e.payload.duration)})`:""}`,timeline:()=>"Meeting ended"},MEETING_PARTICIPANT_JOINED:{shape:"event",icon:"calendar",snippet:e=>`${e.payload.name} deelgenomen`,timeline:(e,t)=>`${t} joined the meeting`},MEETING_PARTICIPANT_LEFT:{shape:"event",icon:"calendar",snippet:e=>`${e.payload.name} verlaten`,timeline:(e,t)=>`${t} left the meeting`},INTERACTION_CREATED:{shape:"event",icon:"circle",snippet:()=>"Interactie aangemaakt",timeline:(e,t)=>`Interaction started by ${t}`},INTERACTION_STATUS_CHANGED:{shape:"event",triggerable:!0,displayNameKey:"communication:activity.INTERACTION_STATUS_CHANGED",icon:"circle-dot",snippet:e=>`Status: ${e.payload.fromStatus} → ${e.payload.toStatus}`,timeline:(e,t)=>`Status changed to ${e.payload.toStatus} by ${t}`},INTERACTION_ASSIGNED:{shape:"event",icon:"user",snippet:()=>"Interactie toegewezen",timeline:(e,t)=>`Assigned by ${t}`},SLA_BREACHED:{shape:"event",triggerable:!0,displayNameKey:"communication:activity.SLA_BREACHED",icon:"alarm-clock",snippet:e=>`SLA verlopen: ${e.payload.metric}`,timeline:e=>`SLA target ${e.payload.metric} passed its deadline`},WORK_COMMENT_ADDED:{shape:"note",icon:"sticky-note",carriesText:!0,snippet:()=>"Reactie"},WORK_ITEM_ASSIGNED:{shape:"event",icon:"user",snippet:()=>"Taak toegewezen",timeline:(e,t)=>`Assigned by ${t}`},WORK_ITEM_STATUS_CHANGED:{shape:"event",triggerable:!0,icon:"circle-dot",snippet:()=>"Status gewijzigd",timeline:(e,t)=>`Status changed by ${t}`}};function Ke(e){const t=e.payload,n=at(t.bodyText).trim()||t.bodySnippet?.trim()||st(t.body??"");return t.subject?`${t.subject} — ${n}`:n}function A(e){return y[e]}function mr(e){return A(e)?.icon??"circle"}function gr(e){return A(e)?.channelKind}function _e(e){return e==="message"||e==="note"}function hr(e){return _e(A(e)?.shape)}function ye(e){return e==="note"}function Er(e){return ye(A(e)?.shape)}function Ar(e){return A(e)?.replyable===!0}function Sr(e){return A(e)?.carriesText===!0}function ct(e){return A(e)?.countsAs}function _r(e){return A(e)?.playbookAuthored===!0}function yr(e){return A(e)?.connected===!0}function Tr(e){const t=A(e);return t?.shape==="artifact"&&t?.carriesText===!0}function lt(e){const t=A(e.type)?.snippet;return t?t(e):""}function br(e,t){const n=A(e.type)?.timeline;return n?n(e,t):e.type.replace(/_/g," ").toLowerCase()}function Ir(e){const t=A(e.type)?.joinUrl;return t?t(e):void 0}function W(e,t){let n=e;for(const r of t.split(".")){if(n==null||typeof n!="object")return"";n=n[r]}return n==null?"":typeof n=="string"?n:typeof n=="number"||typeof n=="boolean"?String(n):""}function V(e,t,n){if(e===void 0)return null;if(typeof e=="string")return e||null;if("value"in e)return W(t,e.value)||null;const r={};for(const[o,a]of Object.entries(e.params??{}))r[o]=W(t,a);const i=n(e.key,r);return i===e.key?null:i}function ut(e,t){if(!e||typeof e=="string"||"value"in e)return null;const n={};for(const[r,i]of Object.entries(e.params??{}))n[r]=W(t,i);return{key:e.key,params:n}}const Be=140;function Mr(e){const t=e.trim();return t.length<=Be?t:`${t.slice(0,Be-1).trimEnd()}…`}function Or(e,t){const n=ut(t?.text,e),r=t?V(t.text,e,i=>i):null;return{activityId:e.id,type:e.type,snippet:Mr(r??lt(e)),authorName:e.author?.name??"",direction:e.direction,createdAt:e.createdAt??Date.now(),...n?{snippetKey:n.key,snippetParams:n.params}:{}}}const wr=e=>e;function Fe(e){const t=y[e];return{type:e,shape:t.shape,channelKind:t.channelKind,icon:t.icon,replyable:t.replyable===!0,countsAs:t.countsAs,carriesText:t.carriesText===!0,triggerable:t.triggerable===!0,component:t.component,builtIn:!0,displayNameKey:t.displayNameKey}}function Ge(e){return{type:e.type,shape:e.shape,channelKind:e.channelKind,icon:e.icon||"circle",replyable:e.replyable===!0,countsAs:e.countsAs,carriesText:e.carriesText===!0,triggerable:e.triggerable===!0,component:e.component,builtIn:!1,displayNameKey:e.displayNameKey}}class dt{constructor(t=[],n=wr){this.translate=n;for(const r of t)r?.type&&(r.type in y||this.declared.has(r.type)||this.declared.set(r.type,r))}declared=new Map;get(t){if(t in y)return Fe(t);const n=this.declared.get(t);return n?Ge(n):void 0}triggerable(){const t=Object.keys(y).filter(r=>y[r].triggerable).map(Fe),n=[...this.declared.values()].map(Ge).filter(r=>r.triggerable);return[...t,...n]}timelineText(t,n){const r=y[t.type];if(r?.timeline)return r.timeline(t,n);const i=this.declared.get(t.type);return V(i?.text,t,this.translate)??t.type.replace(/_/g," ").toLowerCase()}snippet(t){const n=y[t.type];if(n?.snippet)return n.snippet(t);const r=this.declared.get(t.type);return V(r?.text,t,this.translate)??""}descriptor(t){return this.declared.get(t)}blocks(t){const n=this.declared.get(t)?.render;return n?.length?n:void 0}isMessage(t){return _e(this.get(t)?.shape)}nestsUnderParent(t){return ye(this.get(t)?.shape)}isReplyable(t){return this.get(t)?.replyable===!0}carriesText(t){return this.get(t)?.carriesText===!0}countsAs(t){return this.get(t)?.countsAs}channelKind(t){return this.get(t)?.channelKind}isTranscript(t){const n=this.get(t);return n?.shape==="artifact"&&n.carriesText}get translator(){return this.translate}}const Rr=new dt;function Cr(e,t,n=[]){const r=e.createdAt;if(!r)return[];const i=new Set(n);return e.author.type==="user"&&e.author.id&&i.add(e.author.id),Object.entries(t).filter(([o,a])=>a>=r&&!i.has(o)).map(([o])=>o)}function pt(e){return e.createdAt??0}function Nr(e){return e.type==="EMAIL_RECEIVED"||e.type==="EMAIL_SENT"}function kr(e){return e.type==="CHAT_MESSAGE_SENT"||e.type==="CHAT_MESSAGE_RECEIVED"}const Te=[{id:"openai",attachmentKinds:["image","pdf"],label:"OpenAI",capabilities:["chat","transcription","embedding"],defaultModel:"gpt-5-mini",baseUrl:"https://api.openai.com/v1"},{id:"gemini",attachmentKinds:["image","pdf"],label:"Google Gemini",capabilities:["chat","transcription","embedding"],defaultModel:"gemini-3.5-flash",baseUrl:"https://generativelanguage.googleapis.com/v1beta"},{id:"anthropic",attachmentKinds:["image","pdf"],label:"Anthropic",capabilities:["chat"],defaultModel:"claude-haiku-4-5",baseUrl:"https://api.anthropic.com/v1"},{id:"elevenlabs",label:"ElevenLabs",capabilities:["transcription"],baseUrl:"https://api.elevenlabs.io/v1"},{id:"moonshot",label:"Moonshot (Kimi)",capabilities:["chat"],defaultModel:"kimi-k3",baseUrl:"https://api.moonshot.ai/v1"},{id:"deepseek",label:"DeepSeek",capabilities:["chat"],defaultModel:"deepseek-v4-flash",baseUrl:"https://api.deepseek.com/v1"},{id:"groq",label:"Groq",capabilities:["chat"],defaultModel:"openai/gpt-oss-120b",baseUrl:"https://api.groq.com/openai/v1"},{id:"mistral",label:"Mistral",capabilities:["chat"],defaultModel:"mistral-large-latest",baseUrl:"https://api.mistral.ai/v1"},{id:"openrouter",label:"OpenRouter",capabilities:["chat"],defaultModel:"openrouter/auto",baseUrl:"https://openrouter.ai/api/v1"},{id:"ollama",label:"Ollama (self-hosted)",capabilities:["chat"],defaultModel:"llama3.3"},{id:"openai-compatible",label:"OpenAI-compatible (eigen endpoint)",capabilities:["chat"],defaultModel:"default"}];function k(e){return Te.find(t=>t.id===e)}function vr(e){return k(e)?.label??e}function Dr(e,t="gpt-5-mini"){return k(e)?.defaultModel??t}function xr(e){return Te.filter(t=>t.capabilities.includes(e))}function Lr(e){const t=k(e);return!!t&&!t.baseUrl}function Pr(e,t){return t==="text"?!0:k(e)?.attachmentKinds?.includes(t)===!0}function Ur(e,t){if(!e.enabled)return"ok";const n=le(e.hardLimitNanos),r=le(e.softLimitNanos);return n!==void 0&&t>=n?"hard":r!==void 0&&t>=r?"soft":"ok"}function le(e){return typeof e=="number"?e:void 0}function ft(e,t="month"){const n=new Date(e);return Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),1)}function $r(e,t="month"){const n=new Date(ft(e,t));return`${n.getUTCFullYear()}-${String(n.getUTCMonth()+1).padStart(2,"0")}`}function Kr(e){return e?.listeningEnabled!==!1}const Br=[{id:"agent",label:"Agent",labelSource:"user"},{id:"team",label:"Team",labelSource:"team"},{id:"inbox",label:"Inbox",labelSource:"inbox"},{id:"channel",label:"Kanaal",labelSource:"channel"},{id:"provider",label:"Provider",labelSource:"raw"},{id:"status",label:"Status",labelSource:"raw"},{id:"handledBy",label:"Afhandelaar",labelSource:"raw"},{id:"time",label:"Tijd",labelSource:"raw"}];function oe(e){return e<10?`0${e}`:`${e}`}function mt(e,t){const n=new Date(e),r=`${n.getUTCFullYear()}-${oe(n.getUTCMonth()+1)}-${oe(n.getUTCDate())}`;return t==="day"?r:`${r}T${oe(n.getUTCHours())}`}function gt(e,t){const n=new Date(e);return n.setUTCMinutes(0,0,0),t==="day"&&n.setUTCHours(0),n.getTime()}const Fr=36e5,Gr=864e5;function Hr(e,t,n){const r=n==="hour"?Fr:Gr,i=[];for(let o=gt(e,n);o<=t;o+=r)i.push(mt(o,n));return i}const ht=[{id:"resource",label:"Resource",labelSource:"raw"},{id:"origin",label:"Herkomst",labelSource:"raw"}],Et=ht.map(e=>e.id);function At(e,t){return`${e}.usage.${t}`}function Wr(e,t){return t.map(n=>({id:At(e,n.unit),label:n.label,category:"Verbruik",valueType:n.valueType??"count",aggregation:"sum",supportedDimensions:["provider",...Et,...n.extraDimensions??[],"time"]}))}const St=new Set(["info","success","warning","destructive"]),ue=200,de=100,pe=200,fe=12,me=4,be=4e3,B=500,Vr=256*1024,jr=new Set(["heading","paragraph","list","quote","code","divider","table","kpi","callout"]),_t=["http:","https:","mailto:","tel:"],Yr=/^[a-z][a-z0-9+.-]*:/i;function yt(e){const t=e.trim().replace(/^<|>$/g,"");if(!t)return!1;const n=Yr.exec(t)?.[0];return n?_t.includes(n.toLowerCase()):!t.startsWith("//")}const zr=/^[ \t]{0,3}\[([^\]]+)\]:[ \t]*(\S+).*$/gm;function Xr(e){let t="",n=0;for(;n<e.length;){const r=e[n]==="!"&&e[n+1]==="[";if(e[n]!=="["&&!r){t+=e[n],n+=1;continue}const i=n+(r?2:1),o=He(e,i,"[","]");if(o<0||e[o+1]!=="("){t+=e[n],n+=1;continue}const a=He(e,o+2,"(",")");if(a<0){t+=e[n],n+=1;continue}const s=e.slice(i,o),c=e.slice(o+2,a).trim().split(/\s+/)[0]??"";t+=r||!yt(c)?s:e.slice(n,a+1),n=a+1}return t}function He(e,t,n,r){let i=1;for(let o=t;o<e.length;o+=1){if(e[o]==="\\"){o+=1;continue}if(e[o]===n)i+=1;else if(e[o]===r&&(i-=1,i===0))return o}return-1}function Tt(e){return Xr(e).replace(zr,(t,n,r)=>yt(r)?t:"")}function S(e,t=be){return typeof e=="string"?Tt(e).slice(0,t):""}function qr(e,t=be){return typeof e=="string"?e.slice(0,t):""}function Jr(e,t="info"){return typeof e=="string"&&St.has(e)?e:t}function Zr(e,t=()=>{}){if(!Array.isArray(e))return[];const n=[];for(const r of e){if(n.length>=ue){t(`more than ${ue} blocks; the rest was dropped`);break}if(!r||typeof r!="object")continue;const i=r;if(!jr.has(i.type)){t(`unknown block type ${String(i.type)}`);continue}const o=typeof i.block_id=="string"?{block_id:i.block_id}:{};switch(i.type){case"heading":{const a=S(i.text);if(!a){t("a heading without text");continue}const s=i.level===2||i.level===3?i.level:1;n.push({...o,type:"heading",level:s,text:a});break}case"paragraph":{const a=S(i.text);if(!a){t("a paragraph without text");continue}n.push({...o,type:"paragraph",text:a});break}case"quote":{const a=S(i.text);if(!a){t("a quote without text");continue}n.push({...o,type:"quote",text:a});break}case"code":{const a=qr(i.text);if(!a){t("a code block without text");continue}const s=typeof i.lang=="string"?{lang:i.lang.slice(0,32)}:{};n.push({...o,type:"code",...s,text:a});break}case"divider":n.push({...o,type:"divider"});break;case"list":{const a=Array.isArray(i.items)?i.items:[],s=[];for(const m of a){if(s.length>=de){t(`more than ${de} list items`);break}const h=S(m?.text);if(!h)continue;const E=S(m?.lead,200);s.push(E?{lead:E,text:h}:{text:h})}if(s.length===0){t("a list without usable items");continue}const c=i.style==="numbered"?"numbered":"bulleted";n.push({...o,type:"list",style:c,items:s});break}case"table":{const a=Array.isArray(i.columns)?i.columns:[],s=[];for(const E of a){if(s.length>=fe){t(`more than ${fe} table columns`);break}const M=S(E?.label,B),O=E?.align==="right"?"right":void 0;s.push(O?{label:M,align:O}:{label:M})}if(s.length===0){t("a table without columns");continue}const c=Array.isArray(i.rows)?i.rows:[],m=[];for(const E of c){if(m.length>=pe){t(`more than ${pe} table rows`);break}const M=Array.isArray(E)?E:[];m.push(s.map((O,ne)=>S(M[ne],B)))}const h=S(i.caption,B);n.push({...o,type:"table",columns:s,rows:m,...h?{caption:h}:{}});break}case"kpi":{const a=Array.isArray(i.items)?i.items:[],s=[];for(const c of a){if(s.length>=me){t(`more than ${me} kpi items`);break}const m=S(c?.value,40),h=S(c?.label,80);if(!m||!h)continue;const E=c?.tone;s.push(typeof E=="string"&&St.has(E)?{value:m,label:h,tone:E}:{value:m,label:h})}if(s.length===0){t("a kpi block without usable items");continue}n.push({...o,type:"kpi",items:s});break}case"callout":{const a=S(i.text);if(!a){t("a callout without text");continue}const s=S(i.title,200);n.push({...o,type:"callout",tone:Jr(i.tone),...s?{title:s}:{},text:a});break}}}return n}function Qr(e){return JSON.stringify(e).length}function ei(e){return{blocks:e.length,types:e.map(t=>t.type),headings:e.flatMap(t=>t.type==="heading"?[t.text]:[])}}function We(e){return e.replace(/\|/g,"\\|").replace(/\r?\n/g," ").trim()}function Ve(e,t,n){const r=e.map((i,o)=>n?.[o]==="right"?"---:":"---");return[`| ${e.map(We).join(" | ")} |`,`| ${r.join(" | ")} |`,...t.map(i=>`| ${i.map(We).join(" | ")} |`)]}function ti(e){switch(e.type){case"heading":return[`${"#".repeat(e.level)} ${e.text}`];case"paragraph":return[e.text];case"quote":return e.text.split(/\r?\n/).map(t=>`> ${t}`);case"code":return[`\`\`\`${e.lang??""}`,e.text,"```"];case"divider":return["---"];case"list":return e.items.map((t,n)=>{const r=e.style==="numbered"?`${n+1}.`:"-";return t.lead?`${r} **${t.lead}** ${t.text}`:`${r} ${t.text}`});case"table":{const t=Ve(e.columns.map(n=>n.label),e.rows,e.columns.map(n=>n.align??"left"));return e.caption?[...t,"",`*${e.caption}*`]:t}case"kpi":return Ve(e.items.map(t=>t.value),[e.items.map(t=>t.label)]);case"callout":return(e.title?`**${e.title}** ${e.text}`:e.text).split(/\r?\n/).map(n=>`> ${n}`)}}function ni(e,t){const n=[],r=e.some(i=>i.type==="heading"&&i.level===1);t&&!r&&n.push(`# ${t}`);for(const i of e){const o=ti(i);o.length>0&&n.push(o.join(`
3
+ `),t=t.replace(Ir,"$2"),t=t.replace(Or,"$2"),t=t.replace(/~~(?=\S)([\s\S]*?\S)~~/g,"$1"),t=t.replace(/`([^`\n]+)`/g,"$1"),t.replace(/\s+/g," ").trim()}function ft(e){return e.replace(/<style[\s\S]*?<\/style>/gi," ").replace(/<script[\s\S]*?<\/script>/gi," ").replace(/<[^>]+>/g," ").replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/\s+/g," ").trim()}function L(e){if(!e||e<0)return"";const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}`}function He(e){return e?` — ${Math.floor(e/60)}m ${e%60}s`:""}function se(e){return e?.split("@")?.[0]||e||""}function P(e){return e.map(t=>t.name).join(", ")}function We(e){return e==="meeting"?"Meeting":e==="video"?"Video call":"Audio call"}const S={VOICE_CALL_STARTED:{shape:"event",channelKind:"voice",icon:"phone",snippet:()=>"Gesprek gestart",timeline:e=>e.direction==="inbound"?`Inbound call started — ${se(e.payload.from)}`:`Outbound call started — ${se(e.payload.to)}`},VOICE_CALL_ANSWERED:{shape:"event",channelKind:"voice",icon:"phone",connected:!0,snippet:()=>"Gesprek aangenomen",timeline:(e,t)=>`Call answered — ${t}`},VOICE_CALL_HOLD:{shape:"event",channelKind:"voice",icon:"phone",snippet:()=>"In de wacht",timeline:(e,t)=>`Call on hold — ${t}`},VOICE_CALL_UNHOLD:{shape:"event",channelKind:"voice",icon:"phone",snippet:()=>"Hervat"},VOICE_CALL_ENDED:{shape:"event",channelKind:"voice",icon:"phone",snippet:e=>`Gesprek beëindigd${e.payload.duration?` (${L(e.payload.duration)})`:""}`,timeline:e=>`Call ended${He(e.payload.duration)}`},VOICE_CALL_MISSED:{shape:"event",channelKind:"voice",icon:"phone",snippet:()=>"Gemiste oproep",timeline:e=>`Missed call — ${se(e.payload.from)}`},VOICE_CALL_FAILED:{shape:"event",channelKind:"voice",icon:"phone",snippet:()=>"Gesprek mislukt",timeline:()=>"Call failed"},VOICE_CALL_VOICEMAIL:{shape:"artifact",channelKind:"voice",icon:"phone",snippet:e=>e.payload.transcription?.trim()?e.payload.transcription:"Voicemail ontvangen"},VIDEO_CALL_STARTED:{shape:"event",channelKind:"video",icon:"video",snippet:()=>"Gesprek gestart",timeline:()=>"Video call started"},VIDEO_CALL_ANSWERED:{shape:"event",channelKind:"video",icon:"video",connected:!0,snippet:()=>"Gesprek aangenomen",timeline:()=>"Video call answered"},VIDEO_CALL_HOLD:{shape:"event",channelKind:"video",icon:"video",snippet:()=>"In de wacht"},VIDEO_CALL_UNHOLD:{shape:"event",channelKind:"video",icon:"video",snippet:()=>"Hervat"},VIDEO_CALL_ENDED:{shape:"event",channelKind:"video",icon:"video",snippet:e=>`Gesprek beëindigd${e.payload.duration?` (${L(e.payload.duration)})`:""}`,timeline:()=>"Video call ended"},VIDEO_CALL_MISSED:{shape:"event",channelKind:"video",icon:"video",snippet:()=>"Gemiste oproep",timeline:()=>"Missed video call"},VIDEO_CALL_FAILED:{shape:"event",channelKind:"video",icon:"video",snippet:()=>"Gesprek mislukt",timeline:()=>"Video call failed"},EMAIL_RECEIVED:{shape:"message",triggerable:!0,displayNameKey:"communication:activity.EMAIL_RECEIVED",component:"communication:EmailActivity",channelKind:"mail",icon:"mail",replyable:!0,carriesText:!0,countsAs:"inbound_message",snippet:Ve},EMAIL_SENT:{shape:"message",component:"communication:EmailActivity",channelKind:"mail",icon:"mail",replyable:!0,carriesText:!0,countsAs:"outbound_message",snippet:Ve},CHAT_MESSAGE_SENT:{shape:"message",component:"communication:ChatMessage",channelKind:"chat",icon:"message-circle",replyable:!0,carriesText:!0,countsAs:"outbound_message",snippet:e=>e.payload.text??""},CHAT_MESSAGE_RECEIVED:{shape:"message",triggerable:!0,displayNameKey:"communication:activity.CHAT_MESSAGE_RECEIVED",component:"communication:ChatMessage",channelKind:"chat",icon:"message-circle",replyable:!0,carriesText:!0,countsAs:"inbound_message",snippet:e=>e.payload.text??""},CHAT_MEMBER_JOINED:{shape:"event",channelKind:"chat",icon:"message-circle",snippet:e=>`${P(e.payload.members)} toegevoegd`,timeline:e=>{const t=P(e.payload.members)||"Someone",n=e.payload.initiator?.name?` · added by ${e.payload.initiator.name}`:"";return`${t} joined the chat${n}`}},CHAT_MEMBER_LEFT:{shape:"event",channelKind:"chat",icon:"message-circle",snippet:e=>`${P(e.payload.members)} verlaten`,timeline:e=>{const t=P(e.payload.members)||"Someone",n=e.payload.initiator?.name?` · removed by ${e.payload.initiator.name}`:"";return`${t} left the chat${n}`}},CHAT_RENAMED:{shape:"event",channelKind:"chat",icon:"message-circle",snippet:e=>`Hernoemd naar "${e.payload.newName}"`,timeline:e=>`Chat renamed to "${e.payload.newName}"${e.payload.initiator?` by ${e.payload.initiator.name}`:""}`},CHAT_CALL_STARTED:{shape:"event",channelKind:"chat",icon:"message-circle",snippet:()=>"Gesprek gestart",timeline:e=>`${We(e.payload.callType)} started${e.payload.initiator?` by ${e.payload.initiator.name}`:""}`,joinUrl:e=>e.payload.joinUrl},CHAT_CALL_ENDED:{shape:"event",channelKind:"chat",icon:"message-circle",snippet:e=>`Gesprek beëindigd${e.payload.duration?` (${L(e.payload.duration)})`:""}`,timeline:e=>`${We(e.payload.callType)} ended${He(e.payload.duration)}`,joinUrl:e=>e.payload.joinUrl},CHAT_EVENT:{shape:"event",channelKind:"chat",icon:"message-circle",snippet:e=>e.payload.text??e.payload.eventType,timeline:e=>e.payload.text||e.payload.eventType},TRANSCRIPT_ADDED:{shape:"artifact",triggerable:!0,displayNameKey:"communication:activity.TRANSCRIPT_ADDED",component:"communication:TranscriptionActivity",icon:"captions",carriesText:!0,snippet:e=>(e.payload.segments??[]).map(t=>t.text).join(" ")},COMMENT_ADDED:{shape:"note",component:"communication:CommentActivity",icon:"sticky-note",carriesText:!0,snippet:e=>e.payload.text??""},FILE_UPLOADED:{shape:"artifact",component:"communication:FileActivity",icon:"paperclip",snippet:e=>`Bestand: ${e.payload.fileName}`},AI_MESSAGE_ADDED:{shape:"event",triggerable:!0,displayNameKey:"communication:activity.AI_MESSAGE_ADDED",icon:"circle",snippet:e=>e.payload.output?.text??e.payload.input?.text??"",timeline:()=>"AI message added"},AI_ACTION_PROPOSED:{shape:"event",component:"communication:ProposedActionCard",icon:"circle",playbookAuthored:!0,snippet:e=>`Voorstel wacht op goedkeuring (${e.payload.actions?.length??0} actie(s))`},PLAYBOOK_STARTED:{shape:"event",icon:"circle",playbookAuthored:!0,snippet:e=>`Playbook gestart${e.payload.playbookName?`: ${e.payload.playbookName}`:""}`,timeline:e=>`Playbook gestart${e.payload.playbookName?` — ${e.payload.playbookName}`:""}`},PLAYBOOK_COMPLETED:{shape:"event",icon:"circle",playbookAuthored:!0,snippet:()=>"Playbook afgerond",timeline:()=>"Playbook afgerond"},PLAYBOOK_ESCALATED:{shape:"event",icon:"circle",playbookAuthored:!0,snippet:()=>"Playbook geëscaleerd naar een mens",timeline:()=>"Playbook geëscaleerd naar een mens"},MEETING_SCHEDULED:{shape:"event",icon:"calendar",snippet:e=>`Vergadering gepland: ${e.payload.title}`,timeline:()=>"Meeting scheduled",joinUrl:e=>e.payload.joinUrl},MEETING_STARTED:{shape:"event",icon:"calendar",connected:!0,snippet:e=>`Vergadering gestart: ${e.payload.title}`,timeline:()=>"Meeting started",joinUrl:e=>e.payload.joinUrl},MEETING_ENDED:{shape:"event",icon:"calendar",snippet:e=>`Vergadering beëindigd${e.payload.duration?` (${L(e.payload.duration)})`:""}`,timeline:()=>"Meeting ended"},MEETING_PARTICIPANT_JOINED:{shape:"event",icon:"calendar",snippet:e=>`${e.payload.name} deelgenomen`,timeline:(e,t)=>`${t} joined the meeting`},MEETING_PARTICIPANT_LEFT:{shape:"event",icon:"calendar",snippet:e=>`${e.payload.name} verlaten`,timeline:(e,t)=>`${t} left the meeting`},INTERACTION_CREATED:{shape:"event",icon:"circle",snippet:()=>"Interactie aangemaakt",timeline:(e,t)=>`Interaction started by ${t}`},INTERACTION_STATUS_CHANGED:{shape:"event",triggerable:!0,displayNameKey:"communication:activity.INTERACTION_STATUS_CHANGED",icon:"circle-dot",snippet:e=>`Status: ${e.payload.fromStatus} → ${e.payload.toStatus}`,timeline:(e,t)=>`Status changed to ${e.payload.toStatus} by ${t}`},INTERACTION_ASSIGNED:{shape:"event",icon:"user",snippet:()=>"Interactie toegewezen",timeline:(e,t)=>`Assigned by ${t}`},SLA_BREACHED:{shape:"event",triggerable:!0,displayNameKey:"communication:activity.SLA_BREACHED",icon:"alarm-clock",snippet:e=>`SLA verlopen: ${e.payload.metric}`,timeline:e=>`SLA target ${e.payload.metric} passed its deadline`},WORK_COMMENT_ADDED:{shape:"note",icon:"sticky-note",carriesText:!0,snippet:()=>"Reactie"},WORK_ITEM_ASSIGNED:{shape:"event",icon:"user",snippet:()=>"Taak toegewezen",timeline:(e,t)=>`Assigned by ${t}`},WORK_ITEM_STATUS_CHANGED:{shape:"event",triggerable:!0,icon:"circle-dot",snippet:()=>"Status gewijzigd",timeline:(e,t)=>`Status changed by ${t}`}};function Ve(e){const t=e.payload,n=pt(t.bodyText).trim()||t.bodySnippet?.trim()||ft(t.body??"");return t.subject?`${t.subject} — ${n}`:n}function A(e){return S[e]}function Mr(e){return A(e)?.icon??"circle"}function Rr(e){return A(e)?.channelKind}function Oe(e){return e==="message"||e==="note"}function Cr(e){return Oe(A(e)?.shape)}function Me(e){return e==="note"}function wr(e){return Me(A(e)?.shape)}function Nr(e){return A(e)?.replyable===!0}function kr(e){return A(e)?.carriesText===!0}function mt(e){return A(e)?.countsAs}function vr(e){return A(e)?.playbookAuthored===!0}function Dr(e){return A(e)?.connected===!0}function xr(e){const t=A(e);return t?.shape==="artifact"&&t?.carriesText===!0}function gt(e){const t=A(e.type)?.snippet;return t?t(e):""}function Lr(e,t){const n=A(e.type)?.timeline;return n?n(e,t):e.type.replace(/_/g," ").toLowerCase()}function Pr(e){const t=A(e.type)?.joinUrl;return t?t(e):void 0}function W(e,t){let n=e;for(const r of t.split(".")){if(n==null||typeof n!="object")return"";n=n[r]}return n==null?"":typeof n=="string"?n:typeof n=="number"||typeof n=="boolean"?String(n):""}function V(e,t,n){if(e===void 0)return null;if(typeof e=="string")return e||null;if("value"in e)return W(t,e.value)||null;const r={};for(const[o,a]of Object.entries(e.params??{}))r[o]=W(t,a);const i=n(e.key,r);return i===e.key?null:i}function ht(e,t){if(!e||typeof e=="string"||"value"in e)return null;const n={};for(const[r,i]of Object.entries(e.params??{}))n[r]=W(t,i);return{key:e.key,params:n}}const je=140;function Ur(e){const t=e.trim();return t.length<=je?t:`${t.slice(0,je-1).trimEnd()}…`}function $r(e,t){const n=ht(t?.text,e),r=t?V(t.text,e,i=>i):null;return{activityId:e.id,type:e.type,snippet:Ur(r??gt(e)),authorName:e.author?.name??"",direction:e.direction,createdAt:e.createdAt??Date.now(),...n?{snippetKey:n.key,snippetParams:n.params}:{}}}const Kr=e=>e;function Ye(e){const t=S[e];return{type:e,shape:t.shape,channelKind:t.channelKind,icon:t.icon,replyable:t.replyable===!0,countsAs:t.countsAs,carriesText:t.carriesText===!0,triggerable:t.triggerable===!0,component:t.component,builtIn:!0,displayNameKey:t.displayNameKey}}function Xe(e){return{type:e.type,shape:e.shape,channelKind:e.channelKind,icon:e.icon||"circle",replyable:e.replyable===!0,countsAs:e.countsAs,carriesText:e.carriesText===!0,triggerable:e.triggerable===!0,component:e.component,builtIn:!1,displayNameKey:e.displayNameKey}}class Et{constructor(t=[],n=Kr){this.translate=n;for(const r of t)r?.type&&(r.type in S||this.declared.has(r.type)||this.declared.set(r.type,r))}declared=new Map;get(t){if(t in S)return Ye(t);const n=this.declared.get(t);return n?Xe(n):void 0}triggerable(){const t=Object.keys(S).filter(r=>S[r].triggerable).map(Ye),n=[...this.declared.values()].map(Xe).filter(r=>r.triggerable);return[...t,...n]}timelineText(t,n){const r=S[t.type];if(r?.timeline)return r.timeline(t,n);const i=this.declared.get(t.type);return V(i?.text,t,this.translate)??t.type.replace(/_/g," ").toLowerCase()}snippet(t){const n=S[t.type];if(n?.snippet)return n.snippet(t);const r=this.declared.get(t.type);return V(r?.text,t,this.translate)??""}descriptor(t){return this.declared.get(t)}blocks(t){const n=this.declared.get(t)?.render;return n?.length?n:void 0}isMessage(t){return Oe(this.get(t)?.shape)}nestsUnderParent(t){return Me(this.get(t)?.shape)}isReplyable(t){return this.get(t)?.replyable===!0}carriesText(t){return this.get(t)?.carriesText===!0}countsAs(t){return this.get(t)?.countsAs}channelKind(t){return this.get(t)?.channelKind}isTranscript(t){const n=this.get(t);return n?.shape==="artifact"&&n.carriesText}get translator(){return this.translate}}const Fr=new Et;function Br(e,t,n=[]){const r=e.createdAt;if(!r)return[];const i=new Set(n);return e.author.type==="user"&&e.author.id&&i.add(e.author.id),Object.entries(t).filter(([o,a])=>a>=r&&!i.has(o)).map(([o])=>o)}function At(e){return e.createdAt??0}function Gr(e){return e.type==="EMAIL_RECEIVED"||e.type==="EMAIL_SENT"}function Hr(e){return e.type==="CHAT_MESSAGE_SENT"||e.type==="CHAT_MESSAGE_RECEIVED"}const Re=[{id:"openai",attachmentKinds:["image","pdf"],label:"OpenAI",capabilities:["chat","transcription","embedding"],defaultModel:"gpt-5-mini",baseUrl:"https://api.openai.com/v1"},{id:"gemini",attachmentKinds:["image","pdf"],label:"Google Gemini",capabilities:["chat","transcription","embedding"],defaultModel:"gemini-3.5-flash",baseUrl:"https://generativelanguage.googleapis.com/v1beta"},{id:"anthropic",attachmentKinds:["image","pdf"],label:"Anthropic",capabilities:["chat"],defaultModel:"claude-haiku-4-5",baseUrl:"https://api.anthropic.com/v1"},{id:"elevenlabs",label:"ElevenLabs",capabilities:["transcription"],baseUrl:"https://api.elevenlabs.io/v1"},{id:"moonshot",label:"Moonshot (Kimi)",capabilities:["chat"],defaultModel:"kimi-k3",baseUrl:"https://api.moonshot.ai/v1"},{id:"deepseek",label:"DeepSeek",capabilities:["chat"],defaultModel:"deepseek-v4-flash",baseUrl:"https://api.deepseek.com/v1"},{id:"groq",label:"Groq",capabilities:["chat"],defaultModel:"openai/gpt-oss-120b",baseUrl:"https://api.groq.com/openai/v1"},{id:"mistral",label:"Mistral",capabilities:["chat"],defaultModel:"mistral-large-latest",baseUrl:"https://api.mistral.ai/v1"},{id:"openrouter",label:"OpenRouter",capabilities:["chat"],defaultModel:"openrouter/auto",baseUrl:"https://openrouter.ai/api/v1"},{id:"ollama",label:"Ollama (self-hosted)",capabilities:["chat"],defaultModel:"llama3.3"},{id:"openai-compatible",label:"OpenAI-compatible (eigen endpoint)",capabilities:["chat"],defaultModel:"default"}];function k(e){return Re.find(t=>t.id===e)}function Wr(e){return k(e)?.label??e}function Vr(e,t="gpt-5-mini"){return k(e)?.defaultModel??t}function jr(e){return Re.filter(t=>t.capabilities.includes(e))}function Yr(e){const t=k(e);return!!t&&!t.baseUrl}function Xr(e,t){return t==="text"?!0:k(e)?.attachmentKinds?.includes(t)===!0}function zr(e,t){if(!e.enabled)return"ok";const n=pe(e.hardLimitNanos),r=pe(e.softLimitNanos);return n!==void 0&&t>=n?"hard":r!==void 0&&t>=r?"soft":"ok"}function pe(e){return typeof e=="number"?e:void 0}function yt(e,t="month"){const n=new Date(e);return Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),1)}function qr(e,t="month"){const n=new Date(yt(e,t));return`${n.getUTCFullYear()}-${String(n.getUTCMonth()+1).padStart(2,"0")}`}function Jr(e){return e?.listeningEnabled!==!1}const Zr=[{id:"agent",label:"Agent",labelSource:"user"},{id:"team",label:"Team",labelSource:"team"},{id:"inbox",label:"Inbox",labelSource:"inbox"},{id:"channel",label:"Kanaal",labelSource:"channel"},{id:"provider",label:"Provider",labelSource:"raw"},{id:"status",label:"Status",labelSource:"raw"},{id:"handledBy",label:"Afhandelaar",labelSource:"raw"},{id:"time",label:"Tijd",labelSource:"raw"}];function ce(e){return e<10?`0${e}`:`${e}`}function _t(e,t){const n=new Date(e),r=`${n.getUTCFullYear()}-${ce(n.getUTCMonth()+1)}-${ce(n.getUTCDate())}`;return t==="day"?r:`${r}T${ce(n.getUTCHours())}`}function St(e,t){const n=new Date(e);return n.setUTCMinutes(0,0,0),t==="day"&&n.setUTCHours(0),n.getTime()}const Qr=36e5,ei=864e5;function ti(e,t,n){const r=n==="hour"?Qr:ei,i=[];for(let o=St(e,n);o<=t;o+=r)i.push(_t(o,n));return i}const Tt=[{id:"resource",label:"Resource",labelSource:"raw"},{id:"origin",label:"Herkomst",labelSource:"raw"}],bt=Tt.map(e=>e.id);function It(e,t){return`${e}.usage.${t}`}function ni(e,t){return t.map(n=>({id:It(e,n.unit),label:n.label,category:"Verbruik",valueType:n.valueType??"count",aggregation:"sum",supportedDimensions:["provider",...bt,...n.extraDimensions??[],"time"]}))}const Ot=new Set(["info","success","warning","destructive"]),fe=200,me=100,ge=200,he=12,Ee=4,Ce=4e3,F=500,ri=256*1024,ii=new Set(["heading","paragraph","list","quote","code","divider","table","kpi","callout"]),Mt=["http:","https:","mailto:","tel:"],oi=/^[a-z][a-z0-9+.-]*:/i;function Rt(e){const t=e.trim().replace(/^<|>$/g,"");if(!t)return!1;const n=oi.exec(t)?.[0];return n?Mt.includes(n.toLowerCase()):!t.startsWith("//")}const ai=/^[ \t]{0,3}\[([^\]]+)\]:[ \t]*(\S+).*$/gm;function si(e){let t="",n=0;for(;n<e.length;){const r=e[n]==="!"&&e[n+1]==="[";if(e[n]!=="["&&!r){t+=e[n],n+=1;continue}const i=n+(r?2:1),o=ze(e,i,"[","]");if(o<0||e[o+1]!=="("){t+=e[n],n+=1;continue}const a=ze(e,o+2,"(",")");if(a<0){t+=e[n],n+=1;continue}const s=e.slice(i,o),c=e.slice(o+2,a).trim().split(/\s+/)[0]??"";t+=r||!Rt(c)?s:e.slice(n,a+1),n=a+1}return t}function ze(e,t,n,r){let i=1;for(let o=t;o<e.length;o+=1){if(e[o]==="\\"){o+=1;continue}if(e[o]===n)i+=1;else if(e[o]===r&&(i-=1,i===0))return o}return-1}function Ct(e){return si(e).replace(ai,(t,n,r)=>Rt(r)?t:"")}function y(e,t=Ce){return typeof e=="string"?Ct(e).slice(0,t):""}function ci(e,t=Ce){return typeof e=="string"?e.slice(0,t):""}function li(e,t="info"){return typeof e=="string"&&Ot.has(e)?e:t}function ui(e,t=()=>{}){if(!Array.isArray(e))return[];const n=[];for(const r of e){if(n.length>=fe){t(`more than ${fe} blocks; the rest was dropped`);break}if(!r||typeof r!="object")continue;const i=r;if(!ii.has(i.type)){t(`unknown block type ${String(i.type)}`);continue}const o=typeof i.block_id=="string"?{block_id:i.block_id}:{};switch(i.type){case"heading":{const a=y(i.text);if(!a){t("a heading without text");continue}const s=i.level===2||i.level===3?i.level:1;n.push({...o,type:"heading",level:s,text:a});break}case"paragraph":{const a=y(i.text);if(!a){t("a paragraph without text");continue}n.push({...o,type:"paragraph",text:a});break}case"quote":{const a=y(i.text);if(!a){t("a quote without text");continue}n.push({...o,type:"quote",text:a});break}case"code":{const a=ci(i.text);if(!a){t("a code block without text");continue}const s=typeof i.lang=="string"?{lang:i.lang.slice(0,32)}:{};n.push({...o,type:"code",...s,text:a});break}case"divider":n.push({...o,type:"divider"});break;case"list":{const a=Array.isArray(i.items)?i.items:[],s=[];for(const m of a){if(s.length>=me){t(`more than ${me} list items`);break}const h=y(m?.text);if(!h)continue;const E=y(m?.lead,200);s.push(E?{lead:E,text:h}:{text:h})}if(s.length===0){t("a list without usable items");continue}const c=i.style==="numbered"?"numbered":"bulleted";n.push({...o,type:"list",style:c,items:s});break}case"table":{const a=Array.isArray(i.columns)?i.columns:[],s=[];for(const E of a){if(s.length>=he){t(`more than ${he} table columns`);break}const O=y(E?.label,F),M=E?.align==="right"?"right":void 0;s.push(M?{label:O,align:M}:{label:O})}if(s.length===0){t("a table without columns");continue}const c=Array.isArray(i.rows)?i.rows:[],m=[];for(const E of c){if(m.length>=ge){t(`more than ${ge} table rows`);break}const O=Array.isArray(E)?E:[];m.push(s.map((M,oe)=>y(O[oe],F)))}const h=y(i.caption,F);n.push({...o,type:"table",columns:s,rows:m,...h?{caption:h}:{}});break}case"kpi":{const a=Array.isArray(i.items)?i.items:[],s=[];for(const c of a){if(s.length>=Ee){t(`more than ${Ee} kpi items`);break}const m=y(c?.value,40),h=y(c?.label,80);if(!m||!h)continue;const E=c?.tone;s.push(typeof E=="string"&&Ot.has(E)?{value:m,label:h,tone:E}:{value:m,label:h})}if(s.length===0){t("a kpi block without usable items");continue}n.push({...o,type:"kpi",items:s});break}case"callout":{const a=y(i.text);if(!a){t("a callout without text");continue}const s=y(i.title,200);n.push({...o,type:"callout",tone:li(i.tone),...s?{title:s}:{},text:a});break}}}return n}function di(e){return JSON.stringify(e).length}function pi(e){return{blocks:e.length,types:e.map(t=>t.type),headings:e.flatMap(t=>t.type==="heading"?[t.text]:[])}}function qe(e){return e.replace(/\|/g,"\\|").replace(/\r?\n/g," ").trim()}function Je(e,t,n){const r=e.map((i,o)=>n?.[o]==="right"?"---:":"---");return[`| ${e.map(qe).join(" | ")} |`,`| ${r.join(" | ")} |`,...t.map(i=>`| ${i.map(qe).join(" | ")} |`)]}function fi(e){switch(e.type){case"heading":return[`${"#".repeat(e.level)} ${e.text}`];case"paragraph":return[e.text];case"quote":return e.text.split(/\r?\n/).map(t=>`> ${t}`);case"code":return[`\`\`\`${e.lang??""}`,e.text,"```"];case"divider":return["---"];case"list":return e.items.map((t,n)=>{const r=e.style==="numbered"?`${n+1}.`:"-";return t.lead?`${r} **${t.lead}** ${t.text}`:`${r} ${t.text}`});case"table":{const t=Je(e.columns.map(n=>n.label),e.rows,e.columns.map(n=>n.align??"left"));return e.caption?[...t,"",`*${e.caption}*`]:t}case"kpi":return Je(e.items.map(t=>t.value),[e.items.map(t=>t.label)]);case"callout":return(e.title?`**${e.title}** ${e.text}`:e.text).split(/\r?\n/).map(n=>`> ${n}`)}}function mi(e,t){const n=[],r=e.some(i=>i.type==="heading"&&i.level===1);t&&!r&&n.push(`# ${t}`);for(const i of e){const o=fi(i);o.length>0&&n.push(o.join(`
4
4
  `))}return`${n.join(`
5
5
 
6
6
  `)}
7
- `}const Ie=e=>`user:${e}`,Me=e=>`team:${e}`;function ri(e){const t=new Set;for(const n of e??[])n?.id&&(n.kind==="user"&&t.add(Ie(n.id)),n.kind==="team"&&t.add(Me(n.id)));return[...t].sort()}function ii(e,t){return[Ie(e),...t.map(Me)]}function oi(e){const t=new Set;for(const n of e??[])n?.kind&&t.add(n.kind);return[...t]}const bt=["done","escalated"],ai=["open","waiting"];function si(e){return bt.includes(e)}const It="assignment";function ci(e){return`${It}:${e}`}function li(e,t,n,r){if(e.direction==="inbound")return!0;if(e.author?.type==="user"&&e.author.id===t)return!1;const i=e.payload?.mentions;return Array.isArray(i)&&i.includes(t)||r&&r===t?!0:n==="reply"}function ui(e){const{targetAuthorId:t,reactorId:n,agentId:r,on:i}=e;return!i||!t||t!==r?!1:n!==r}function di(e){return e.subjectKind&&e.subjectId?{type:e.subjectKind,id:e.subjectId}:void 0}const Mt=12;function pi(e,t,n=Mt){const r=t+1;return e?e.kind==="done"?{status:"done",waitingOn:null,turns:r,reason:e.note}:e.kind==="escalate"?{status:"escalated",waitingOn:null,turns:r,reason:e.reason}:r>=n?{status:"escalated",waitingOn:null,turns:r,reason:`na ${n} beurten nog niet afgerond, dus een mens neemt het over`}:{status:"waiting",waitingOn:e.on,turns:r}:{status:"escalated",waitingOn:null,turns:r,reason:"de agent rondde zijn beurt af zonder te zeggen wat er moet gebeuren (wachten, afronden of overdragen)"}}const fi=new Set(["mail","message"]);function Ot(e,t){const n=e.settings?.signatures?.[t];return!n?.enabled||!n.body||n.body.trim()===""?null:n}function mi(e,t,n,r="html"){if(!e)return n;const i=Ot(e,t);return i?`${n}${r==="text"?`
7
+ `}const we=e=>`user:${e}`,Ne=e=>`team:${e}`;function gi(e){const t=new Set;for(const n of e??[])n?.id&&(n.kind==="user"&&t.add(we(n.id)),n.kind==="team"&&t.add(Ne(n.id)));return[...t].sort()}function hi(e,t){return[we(e),...t.map(Ne)]}function Ei(e){const t=new Set;for(const n of e??[])n?.kind&&t.add(n.kind);return[...t]}const wt=["done","escalated"],Ai=["open","waiting"];function yi(e){return wt.includes(e)}const Nt="assignment";function _i(e){return`${Nt}:${e}`}function Si(e,t,n,r){if(e.direction==="inbound")return!0;if(e.author?.type==="user"&&e.author.id===t)return!1;const i=e.payload?.mentions;return Array.isArray(i)&&i.includes(t)||r&&r===t?!0:n==="reply"}function Ti(e){const{targetAuthorId:t,reactorId:n,agentId:r,on:i}=e;return!i||!t||t!==r?!1:n!==r}function bi(e){return e.subjectKind&&e.subjectId?{type:e.subjectKind,id:e.subjectId}:void 0}const kt=12;function Ii(e,t,n=kt){const r=t+1;return e?e.kind==="done"?{status:"done",waitingOn:null,turns:r,reason:e.note}:e.kind==="escalate"?{status:"escalated",waitingOn:null,turns:r,reason:e.reason}:r>=n?{status:"escalated",waitingOn:null,turns:r,reason:`na ${n} beurten nog niet afgerond, dus een mens neemt het over`}:{status:"waiting",waitingOn:e.on,turns:r}:{status:"escalated",waitingOn:null,turns:r,reason:"de agent rondde zijn beurt af zonder te zeggen wat er moet gebeuren (wachten, afronden of overdragen)"}}const Oi=new Set(["mail","message"]);function vt(e,t){const n=e.settings?.signatures?.[t];return!n?.enabled||!n.body||n.body.trim()===""?null:n}function Mi(e,t,n,r="html"){if(!e)return n;const i=vt(e,t);return i?`${n}${r==="text"?`
8
8
 
9
- `:t==="mail"?"<br><br>-- <br>":"<br><br>"}${i.body}`:n}function gi(e){return e.endpoints??[]}const wt=36e5,Rt=864e5,b=-1/0,hi=e=>e.score>b,C={urgent:40,high:25,normal:10,low:0};function Ei(e){return Object.fromEntries(e.map(t=>[t.resourceId,t]))}const Ai=/(^|[._+-])(no-?reply|noreply|donotreply|do-not-reply|newsletter|nieuwsbrief|mailer|mailing|notifications?|bounce|postmaster|marketing)@/i,Ct=/\b(unsubscribe|afmelden|uitschrijven|opt[\s-]?out|manage (your )?preferences|geen (e-?mails?|nieuwsbrief|berichten) meer)\b/i;function Nt(e,t){return!!(e&&Ai.test(e)||t&&Ct.test(t))}const kt=3,vt=600;function Si(e,t){return e>=kt||t>=vt}const Dt=["list-unsubscribe","list-unsubscribe-post","list-id","precedence","auto-submitted","x-auto-response-suppress","feedback-id","x-mailer"];function _i(e){const t={};for(const n of e){const r=n.name?.toLowerCase();r&&n.value!==void 0&&Dt.includes(r)&&(t[r]=n.value)}return t}const yi=/(^|[._+-])(no-?reply|noreply|donotreply|do-not-reply|notifications?|bounce|postmaster|mailer)@/i,Ti=/(^|[._+-])(newsletter|nieuwsbrief|marketing|mailing)@/i;function bi(e){const t=e.headers??{},n=e.from?.email,r=t["auto-submitted"]?.toLowerCase();if(r&&r!=="no"||t["x-auto-response-suppress"]||n&&yi.test(n))return"automated";const i=t.precedence?.toLowerCase();if(t["list-unsubscribe"]||t["list-unsubscribe-post"]||t["list-id"]||i==="bulk"||i==="list"||e.body&&Ct.test(e.body)||n&&Ti.test(n))return"marketing"}function xt(e,t){return e.lastActivityAt?!(e.seenBy??[]).includes(t):!1}const Lt=["open"],Pt=1e3,Ut={urgent:1,high:4,normal:8,low:24},$t=72;function Kt(e){return e.lastActivityAt??(e.createdAt?new Date(pt(e)).getTime():0)}function Bt(e,t){return Ft(t.remindersById?.[e.id],e,t.now)}function Ft(e,t,n){return!e||e.remindAt<=n?!1:!((t.lastActivityAt??0)>e.parkedAt&&t.lastActivityPreview?.direction==="inbound")}const Gt=e=>ct(e)==="outbound_message",Ht=e=>Lt.includes(e);function J(e,t){return Math.max(0,(t-Kt(e))/wt)}function Wt(e,t){const n=e.assignedInboxId?t?.[e.assignedInboxId]:void 0;return typeof n=="number"&&n>0?n:Ut[e.priority??"normal"]}function Ii(e){const t={};for(const n of e)typeof n.slaHours=="number"&&n.slaHours>0&&(t[n.id]=n.slaHours);return t}function Mi(e,t,n){return!Ht(e.status)||e.firstResponseAt?!1:J(e,t)>Wt(e,n)}function Vt(e,t){const n=e.lastActivityPreview;return n?.direction!=="outbound"||!Gt(n.type)?!1:J(e,t)<$t}function Oi(e,t){if(!Ht(e.status))return{score:b,reasons:[]};if(e.snoozedTill&&e.snoozedTill>t.now)return{score:b,reasons:[]};if(Vt(e,t.now))return{score:b,reasons:[]};if(Bt(e,t))return{score:b,reasons:[]};let n=0;const r=[],i=e.priority??"normal";C[i]>0&&(n+=C[i],r.push(`priority:${i}`)),xt(e,t.userId)&&(n+=20,r.push("unseen")),e.assignedUserId&&e.assignedUserId===t.userId&&(n+=15,r.push("assigned-to-you"));const o=J(e,t.now);if(o>0){const c=Math.min(o*2,30);n+=c,o>=1&&r.push(`waiting:${Math.round(o)}h`)}const a=e.lastActivityPreview;return a?.type==="AI_ACTION_PROPOSED"&&(n+=30,r.push("awaiting-approval")),a?.direction==="outbound"&&Gt(a.type)&&(n+=10,r.push("no-reply")),!e.firstResponseAt&&e.lastActivityPreview?.direction==="inbound"&&(n+=10,r.push("awaiting-reply")),(e.tags?.some(c=>c==="marketing"||c==="automated")||Nt(e.remoteParty?.resource,e.lastActivityPreview?.snippet))&&(n-=Pt,r.push("bulk")),{score:n,reasons:r}}const wi=e=>!!e.assignedUserId||!!e.assignedInboxId,Ri=e=>e.status==="closed",Ci=e=>({urgent:10,high:5,normal:2,low:1})[e.priority]||0,Ni=(e,t=30)=>e.title?.length<=t?e.title:`${e.title.substring(0,t)}...`;function ki(e,t){const n=e.labels??[];return n.find(r=>r.locale===t)?.label??n[0]?.label??e.url}function vi(e,t,n){const r=e.translations??[];return r.find(i=>i.locale===t)??(n?r.find(i=>i.locale===n):void 0)??{locale:t}}const ge=[{code:"nl",label:"Nederlands",english:"Dutch"},{code:"en",label:"English",english:"English"},{code:"de",label:"Deutsch",english:"German"},{code:"fr",label:"Français",english:"French"},{code:"es",label:"Español",english:"Spanish"},{code:"it",label:"Italiano",english:"Italian"},{code:"pt",label:"Português",english:"Portuguese"},{code:"pl",label:"Polski",english:"Polish"},{code:"sv",label:"Svenska",english:"Swedish"},{code:"da",label:"Dansk",english:"Danish"},{code:"nb",label:"Norsk bokmål",english:"Norwegian Bokmål"},{code:"fi",label:"Suomi",english:"Finnish"},{code:"tr",label:"Türkçe",english:"Turkish"}];function jt(e){const t=(e??"").toLowerCase();return ge.find(n=>n.code===t)??ge.find(n=>n.code===t.split("-")[0])}function Di(e){return jt(e)?.label??e}function xi(e){const t=jt(e);return t?t.english===t.label?`${t.english} (${t.code})`:`${t.english} — ${t.label} (${t.code})`:e}const Oe=3;function Yt(e,t){const n=new Set;let r=1,i=t.get(e)?.parentId;for(;i;){if(n.has(i)||(n.add(i),r++,r>Oe+1))return 1/0;i=t.get(i)?.parentId}return r}function Li(e,t,n){if(!e)return!0;if(e===t)return!1;const r=new Map(n.map(a=>[a.id,a]));if(!r.has(e)||t&&zt(e,t,r))return!1;const i=Yt(e,r),o=t?we(t,n):1;return i+o<=Oe}function zt(e,t,n){const r=new Set;let i=n.get(e)?.parentId;for(;i;){if(i===t)return!0;if(r.has(i))return!1;r.add(i),i=n.get(i)?.parentId}return!1}function we(e,t,n=new Set){if(n.has(e))return 1;n.add(e);const r=t.filter(i=>i.parentId===e);return r.length?1+Math.max(...r.map(i=>we(i.id,t,n))):1}const Xt="en";function qt(e){return e.defaultLocale||e.locale||Xt}function Pi(e){const t=new Set,n=[];for(const r of[qt(e),...e.locales??[]])!r||t.has(r)||(t.add(r),n.push(r));return n}function Ui(e,t,n){const r=e.translations??[];return r.find(i=>i.locale===t)?.name??(n?r.find(i=>i.locale===n)?.name:void 0)??e.name}const he=["lookup","condition","parallel","for-each"];function Ee(e){for(const t of e){if(!he.includes(t.type))return`staptype "${t.type}" mag niet meelezen (alleen ${he.join(", ")})`;if(t.type==="parallel")for(const n of t.branches??[]){const r=Ee(n);if(r)return r}if(t.type==="for-each"){const n=Ee(t.body??[]);if(n)return n}}return null}function $i(e,t){switch(e.kind){case"org":return!0;case"team":return!!t.teamId&&e.teamId===t.teamId;case"personal":return e.userId===t.userId}}function Ki(e,t){return e.filter(n=>n.enabled&&$i(n.ownerScope,t))}function Bi(e){return e.credentialScope?e.credentialScope:(e.authMode??"header")==="header"||e.oauth?.scope==="org"?"shared":"per-user"}function Fi(e){return`mcp__${e}__`}const Gi=1e3,Hi=2e3,Wi=500,Vi=12e3,ji=4e3,Jt=["contact","company","work_item"];function Yi(e){if(!e)return!1;const t=e.slice(0,e.indexOf(":"));return Jt.includes(t)}const zi="onboarding-source",Xi=["support","billing","availability","sales","onboarding"],qi=["keep","replace"];function Zt(e){switch(e.kind){case"user":return`user:${e.userId}`;case"team":return`team:${e.teamId}`;case"org":return"org"}}function Ji(e){if(typeof e!="string")return;const t=e.trim();if(t==="org")return{kind:"org"};const n=t.indexOf(":");if(n<=0)return;const r=t.slice(0,n),i=t.slice(n+1).trim();if(i){if(r==="user")return{kind:"user",userId:i};if(r==="team")return{kind:"team",teamId:i}}}function Qt(e){return Zt(e)}function en(e){switch(e.kind){case"personal":return{kind:"user",userId:e.userId};case"team":return{kind:"team",teamId:e.teamId};case"org":return{kind:"org"}}}const tn=en;function Zi(e){return e.agentId?{kind:"user",userId:e.agentId}:tn(e.ownerScope)}function Qi(e){return Qt(e)}function eo(e,t){if(!t)return;let n=e;for(const r of t.split(".")){if(n===null||typeof n!="object")return;n=n[r]}return n}function to(e,t){return e.targets.find(n=>n.activityTypes.includes(t))}function no(e,t){if(t)return e.targets.find(n=>n.id===t)}function nn(e){return e?.kind==="assignment"}function ro(e){const{trigger:t,agentId:n,target:r,activityType:i,assigneeUserId:o,authorUserId:a}=e;return nn(t)?n?r?r.activityTypes.includes(i)?o?o!==n?"assigned to someone else":a&&a===n?"the agent assigned this to itself, which would restart its own run":null:`no assignee found at ${r.assigneePath}`:`activity type ${i} does not announce an assignment for ${r.id}`:`assignment target kind "${t.targetKind}" is not declared by any installed app`:"this playbook has no agent, so an assignment can never be for it":"trigger is not an assignment trigger"}function io(e){return(e.startsWith("tool:")?e.slice(5):e).replace(/__/g," · ").replace(/\./g," · ").replace(/_/g," ")}const oo=[{name:"text",type:"string"},{name:"subject",type:"string"},{name:"from",type:"string"},{name:"type",type:"string"},{name:"direction",type:"string"},{name:"channelId",type:"string"},{name:"interactionId",type:"string"},{name:"itemId",type:"string"},{name:"activityId",type:"string"},{name:"authorType",type:"string"},{name:"authorName",type:"string"},{name:"textRaw",type:"string"},{name:"fromStatus",type:"string"},{name:"toStatus",type:"string"},{name:"toCategory",type:"string"},{name:"contactId",type:"string"},{name:"companyId",type:"string"},{name:"priority",type:"string"},{name:"inboxId",type:"string"},{name:"topicId",type:"string"},{name:"assigneeUserId",type:"string"}],ao={topics:[{name:"topicId",type:"string"},{name:"topic",type:"string"},{name:"confidence",type:"number"},{name:"reasoning",type:"string"}],question:[{name:"answer",type:"boolean"},{name:"reasoning",type:"string"}],extract:[]};function rn(e){return`${e.type}:${e.id}`}const on="interaction";function an(e){return e?.type===on?e.id:void 0}const sn=64,cn=8e3;function so(e){const t=typeof e=="number"?e:Number(String(e??"").trim());if(!(!Number.isFinite(t)||t<=0))return Math.min(Math.max(Math.round(t),sn),cn)}const co={kind:"workflow",steps:[]};function lo(e){return e?.kind==="workflow"?e.steps:[]}function uo(e){return e?.kind==="procedure"?e.procedure:void 0}function ln(e){const t=e?.approved??0,n=t+(e?.rejected??0);return{total:n,rate:n?t/n:0}}const un=10,dn=.9;function po(e){const{total:t,rate:n}=ln(e);return t>=un&&n>=dn}const pn=["done","escalated","failed","stopped"];function fo(e){return pn.includes(e)}function fn(e){return e==="waiting"}function mo(e){return e==="running"||fn(e)}function Re(e){return e.subjectKind&&e.subjectId?{type:e.subjectKind,id:e.subjectId}:void 0}function go(e){const t=Re(e);return t?rn(t):void 0}function ho(e){return an(Re(e))}function Eo(e){const t=[],n=new Map;for(const r of[...e].sort(Ao)){const i=n.get(r.emoji);if(i){i.push(r.actor);continue}t.push(r.emoji),n.set(r.emoji,[r.actor])}return t.map(r=>{const i=n.get(r);return{emoji:r,count:i.length,actors:i}}).sort((r,i)=>i.count-r.count||t.indexOf(r.emoji)-t.indexOf(i.emoji))}const Ao=(e,t)=>(e.createdAt??0)-(t.createdAt??0);function So(e,t){return t?e.actors.some(n=>n.type==="user"&&n.id===t):!1}const Ae=6e4,_o=36e5,N=864e5,mn=800;function je(e,t){const n=Date.UTC(e,t+1,0);return n-new Date(n).getUTCDay()*N+_o}function yo(e){const t=new Date(e).getUTCFullYear();return e>=je(t,2)&&e<je(t,9)}function gn(e,t){const n=t.dst==="eu"&&yo(e)?60:0;return(t.utcOffsetMinutes+n)*Ae}function To(e){return(e+3)%7+1}function hn(e,t){const n=gn(e,t),r=e+n,i=Math.floor(r/N);if(!t.days.includes(To(i)))return null;const o=i*N;return{open:o+t.fromMinutes*Ae-n,close:o+t.toMinutes*Ae-n}}function En(e,t){const n=gn(e,t),r=e+n;return(Math.floor(r/N)+1)*N-n}function j(e,t,n){if(t<=e)return 0;if(!n)return t-e;let r=0,i=e;for(let o=0;o<mn&&i<t;o++){const a=hn(i,n);if(a){const s=Math.max(i,a.open),c=Math.min(t,a.close);c>s&&(r+=c-s)}i=En(i,n)}return r}function Z(e,t,n){if(!n)return e+t;let r=t,i=e;for(let o=0;o<mn;o++){const a=hn(i,n);if(a){const s=Math.max(i,a.open);if(a.close>s){const c=a.close-s;if(r<=c)return s+r;r-=c}}i=En(i,n)}return e+t}function bo(e){const t=/^([01]\d|2[0-3]):([0-5]\d)$/.exec(e);return t?Number(t[1])*60+Number(t[2]):null}const Y=1,z=2;function Io(e){return e==="snoozed"?Y:z}function Q(e){const t=e.calendar;return t&&Array.isArray(t.days)?t:null}const Mo=["speed_of_answer","first_response","next_response","resolution","close"],Oo=["snoozed","waiting_for_customer"],wo=6e4,An=["speed_of_answer","first_response","next_response"],Ro=[...An,"resolution","close"];function v(e){return e.state==="running"||e.state==="paused"}function Co(e,t){return v(e)?{state:(e.state==="paused"?e.remainingMs>0:t<=e.dueAt)?"hit":"missed",settledAt:Math.max(t,e.startedAt)}:null}function Ye(e){return v(e)?{state:"void"}:null}function No(e,t,n,r){if(!v(e)||(e.pauseBits&t)!==0)return null;const i=e.pauseBits|t;return e.state==="paused"?{pauseBits:i}:{pauseBits:i,state:"paused",remainingMs:j(n,e.dueAt,r)}}function ko(e,t,n,r){if(!v(e)||(e.pauseBits&t)===0)return null;const i=e.pauseBits&~t;return i!==0?{pauseBits:i}:{pauseBits:i,state:"running",dueAt:Z(n,e.remainingMs,r)}}function vo({event:e,at:t,now:n,clocks:r,profile:i}){const o=Q(i),a=Math.min(t,n),s=r.map(p=>({...p})),c=[],m=(p,f)=>{f&&(c.push({op:"patch",clockId:p.id,patch:f}),Object.assign(p,f))},h=p=>{for(const f of s)f.metric===p&&m(f,Co(f,a))},E=p=>{for(const f of s)p.includes(f.metric)&&m(f,Ye(f))},M=p=>{for(const f of s)m(f,No(f,p,a,o))},O=p=>{for(const f of s)m(f,ko(f,p,a,o))},ne=p=>s.reduce((f,T)=>T.metric===p?Math.max(f,T.attempt):f,0)+1,D=p=>s.some(f=>f.metric===p&&v(f)),x=(p,f)=>{const T=i.targets.find(lr=>lr.metric===p);if(!T)return;const Pe=T.minutes*wo;c.push({op:"start",metric:p,attempt:ne(p),startedAt:f,targetMs:Pe,dueAt:Z(f,Pe,o)})};switch(e){case"apply":{for(const p of s)p.profileId!==i.id&&m(p,Ye(p));for(const p of i.targets){if(p.metric==="next_response")continue;s.some(T=>T.metric===p.metric&&T.profileId===i.id)||x(p.metric,a)}break}case"answered":h("speed_of_answer");break;case"outbound":{h("first_response"),h("next_response"),i.pauseOn.includes("waiting_for_customer")&&M(z);break}case"inbound":{O(z),!D("first_response")&&!D("next_response")&&x("next_response",a);break}case"resolved":h("resolution");break;case"closed":h("close"),h("resolution"),E(An);break;case"reopened":D("resolution")||x("resolution",a),D("close")||x("close",a);break;case"snoozed":i.pauseOn.includes("snoozed")&&M(Y);break;case"unsnoozed":O(Y);break;case"discarded":E(Ro);break}return c}function Sn(e){return e.state==="running"||e.state==="paused"}function X(e,t){const n=Q(e);return e.state==="paused"?e.remainingMs:t>=e.dueAt?-j(e.dueAt,t,n):j(t,e.dueAt,n)}function Do(e,t){return e.state==="paused"?Z(t,e.remainingMs,Q(e)):e.dueAt}function xo(e,t){const n=e.filter(Sn);if(!n.length)return;const r=n.filter(o=>o.state==="running");return(r.length?r:n).reduce((o,a)=>X(a,t)<X(o,t)?a:o)}function Lo(e,t){if(e.state==="missed")return"breached";if(e.state==="hit")return"met";if(e.state==="paused")return"paused";if(e.state==="void")return"met";const n=X(e,t);return n<=0?"breached":n<=e.targetMs/5?"urgent":"running"}function Po(e){const t=Math.floor(Math.abs(e)/1e3),n=Math.floor(t/86400),r=Math.floor(t%86400/3600),i=Math.floor(t%3600/60);return n?r?`${n}d ${r}u`:`${n}d`:r?i?`${r}u ${i}m`:`${r}u`:i?`${i}m`:`${t%60}s`}function Uo(e,t){const n=e.accumulatedSeconds||0;return e.runningSince?n+Math.max(0,Math.floor((t-e.runningSince)/1e3)):n}function $o(e,t){const n=Math.max(1,Math.ceil(Math.max(0,e)/60));if(!t||t==="exact")return n*60;const r=Number(t);return!Number.isFinite(r)||r<=0?n*60:Math.ceil(n/r)*r*60}function Ko(e){const t=Math.max(0,Math.round(e/60));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}function Bo(e){const t=Math.max(0,Math.floor(e)),n=o=>String(o).padStart(2,"0"),r=Math.floor(t/60)%60,i=Math.floor(t/3600);return i>0?`${i}:${n(r)}:${n(t%60)}`:`${n(r)}:${n(t%60)}`}function _n(e){return(e||"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").slice(0,48).replace(/^-+|-+$/g,"")}function Fo(e,t){const n=_n(e)||"werksoort",r=new Set(t);if(!r.has(n))return n;for(let i=2;i<500;i++){const o=`${n}-${i}`;if(!r.has(o))return o}return`${n}-${r.size+1}`}function Go(e,t){const n=e.ownerScope;return!n||n.kind==="org"?!0:t.includes(n.teamId)}function Ho(e){return e.filter(t=>!t.archived).sort(yn)}function yn(e,t){const n=(e.order??0)-(t.order??0);return n!==0?n:(e.label||"").localeCompare(t.label||"")}const Tn=20,bn=20,F=300;function I(e){return e.toLowerCase().replace(/[^\p{L}\p{N}\s]/gu," ").replace(/\s+/g," ").trim()}function In(e){const t=e.replace(/\s+/g," ").trim();if(t.length<=F)return t;const n=t.slice(0,F),r=Math.max(n.lastIndexOf(". "),n.lastIndexOf("! "),n.lastIndexOf("? "));return r>F*.6?n.slice(0,r+1):`${n.trimEnd()}…`}function Wo(e,t){const n=In(t.text),r=I(n);if(!r||(e.examples??[]).some(a=>I(a)===r))return null;const i=e.exampleCandidates??[],o=i.findIndex(a=>I(a.text)===r);if(o>=0){if(i[o].corrected||!t.corrected)return null;const a=[...i];return a[o]={...a[o],corrected:!0,addedAt:t.addedAt},ze(a)}return ze([{...t,text:n},...i]).slice(0,bn)}function ze(e){return[...e].sort((t,n)=>Number(n.corrected)-Number(t.corrected)||n.addedAt-t.addedAt)}function Vo(e,t){const n=I(t),r=(e.examples??[]).filter(o=>o.trim());return{examples:r.some(o=>I(o)===n)?r:[...r,t].slice(-Tn),exampleCandidates:Mn(e,t)}}function Mn(e,t){const n=I(t);return(e.exampleCandidates??[]).filter(r=>I(r.text)!==n)}function On(e,t){const n=e.ownerScope;return n?n.kind==="org"?!0:n.kind==="team"?!!t&&n.teamId===t:!1:!1}function jo(e,t){return e.filter(n=>On(n,t))}function Yo(e){return e.type==="agent"}const zo="WORK_COMMENT_ADDED",Xo="WORK_ITEM_ASSIGNED",qo="WORK_ITEM_STATUS_CHANGED";function Jo(e,t){const n=r=>{const i=new Date(r);return i.setHours(0,0,0,0),i.getTime()};return Math.round((n(e)-n(t))/Rt)}function Zo(e,t){if(e.closedAt!=null)return{score:b,reasons:[]};const n=t.remindersById?.[e.id];if(n&&n.remindAt>t.now)return{score:b,reasons:[]};let r=0;const i=[],o=e.priority??"normal";if(C[o]>0&&(r+=C[o],i.push(`priority:${o}`)),typeof e.dueDate=="number"){const a=Jo(e.dueDate,t.now);a<0?(r+=35,i.push("overdue")):a===0&&(r+=20,i.push("due-today"))}return e.source?.initiator==="system"&&e.source.systemReason&&(r+=15,i.push(`auto:${e.source.systemReason}`)),{score:r,reasons:i}}const wn="work_item",Rn="work_project",Cn="work_activity";function Nn(e){return`${wn}:${e}`}function Ce(e){return`${Rn}:${e}`}function Qo(e){return`${Cn}:${e}`}function ea(e,t,n){const r=`${e}-${t}`;return n?`${r}-${n}`:r}function ta(e){const t=/^([A-Za-z0-9]{2,8})-(\d+)(?:-(\d+))?$/.exec((e||"").trim());return t?{projectKey:t[1].toUpperCase(),sequenceNumber:Number(t[2]),...t[3]?{subSequence:Number(t[3])}:{}}:null}function na(e){return(e||"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase().replace(/[^A-Z0-9]/g,"").slice(0,3)||"PRJ"}function ra(e,t=25){const n=new Set([Nn(e.id)]);e.projectId&&n.add(Ce(e.projectId));for(const r of e.ancestorKeys??[])n.add(r);for(const r of e.partyKeys??[])n.add(r);return Array.from(n).slice(0,t)}function ia(e){return[Ce(e.id)]}const ee=[{key:"open",label:"status_open",category:"todo",order:0},{key:"in_progress",label:"status_in_progress",category:"in_progress",order:1},{key:"done",label:"status_done",category:"done",order:2},{key:"cancelled",label:"status_cancelled",category:"done",order:3}],Ne=ee.map(e=>e.key);function kn(e){return e?.statuses?.length?e.statuses:ee}function vn(e,t){return t.find(n=>n.key===e)?.category??"todo"}function oa(e,t){return t.find(n=>n.key===e)}function aa(e){const t=kn(e),n=e?.defaultStatusKey;return n&&t.some(r=>r.key===n)?n:Dn(t)[0]?.key??ee[0].key}function Dn(e){return[...e].sort((t,n)=>{const r=(t.order??0)-(n.order??0);return r!==0?r:(t.label||"").localeCompare(n.label||"")})}function sa(e,t){return vn(e,t)==="done"}function xn(e){return(e||"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").slice(0,48).replace(/^-+|-+$/g,"")}function ca(e,t){const n=xn(e)||"status",r=new Set([...t,...Ne]);if(!r.has(n))return n;for(let i=2;i<500;i++){const o=`${n}-${i}`;if(!r.has(o))return o}return`${n}-${r.size+1}`}function la(e){const t=[];if(!e.length)return[{index:-1,reason:"empty"}];const n=new Set;return e.forEach((r,i)=>{if(!r.key){t.push({index:i,reason:"missing_key"});return}Ne.includes(r.key)&&t.push({index:i,reason:"reserved_key",key:r.key}),n.has(r.key)&&t.push({index:i,reason:"duplicate_key",key:r.key}),n.add(r.key)}),e.some(r=>r.category==="todo"||r.category==="in_progress")||t.push({index:-1,reason:"no_open"}),e.some(r=>r.category==="done")||t.push({index:-1,reason:"no_done"}),t}function ua(e){return e.completedAt?"completed":e.startedAt?"active":"planned"}const da=new Set(["image/png","image/jpeg","image/jpg","image/gif","image/webp"]),pa=new Set(["text/plain","text/markdown","text/csv","application/json","text/html","application/xml","text/xml"]);function Ln(e){const t=(e??"").trim().toLowerCase().split(";")[0];return t?da.has(t)?"image":t==="application/pdf"?"pdf":pa.has(t)?"text":t.startsWith("audio/")?"audio":"unsupported":"unsupported"}const w=1024*1024,Pn={image:5*w,pdf:20*w,text:1*w,audio:20*w},fa=25*w,ma=5;function ga(e,t){const n=Ln(e);return n==="unsupported"?"unsupported":t>Pn[n]?"too-large":null}function ha(e){return e.access!=="read"&&e.effect!=="internal"}function Un(e){return`${e.kind}:${e.id||e.url||e.title}`}function Ea(e,t=[]){const n=new Set(t),r=[],i=[];for(const o of e){const a=Un(o);n.has(a)||(n.add(a),r.push(o),i.push(a))}return{sources:r,keys:i}}const Aa="assist-source",Sa=["blocking","due","open"];function _a(e,t){const[n,r]=(e.subjectKey??"").split(":");return n===t&&r?r:void 0}const Xe={blocking:0,due:1,open:2};function ya(e,t){return Xe[e.band??"open"]-Xe[t.band??"open"]||(t.priority??0)-(e.priority??0)||e.id.localeCompare(t.id)}function Ta(e){return e.sessions.filter(t=>t.id!==e.exceptSessionId&&t.state==="connected"&&e.canHold(t.providerId))}function ba(e){return e.sessions.filter(t=>t.id!==e.exceptSessionId&&t.state==="connected"&&!e.canHold(t.providerId))}function Ia(e){return e.sessions.some(n=>n.id!==e.exceptSessionId&&(n.state==="connected"||n.state==="on_hold"))?{admit:!1,reason:"busy"}:{admit:!0}}function $n(e,t){const n=new Set(e.disabledIntents??[]),r=e.intentOverrides??{},i=t.intents.filter(a=>!n.has(a.intent)).map(a=>Oa(a,r[a.intent]));if(!e.extraIntents||e.extraIntents.length===0)return i;const o=new Set(i.map(a=>a.intent));for(const a of e.extraIntents)o.has(a.intent)||(i.push(a),o.add(a.intent));return i}function Kn(e,t){const n={};for(const r of e.intents){if(!r.togglable)continue;const i=t?.[r.intent];n[r.intent]=i??r.defaultEnabled??!0}return n}function Ma(e,t){const n=Kn(e,t);return Object.entries(n).filter(([,r])=>!r).map(([r])=>r)}function Oa(e,t){return t?{intent:t.intent??e.intent,targetSchemes:t.targetSchemes??e.targetSchemes,transport:t.transport??e.transport}:e}function wa(e,t){const n=[];for(const r of e){if(!r.enabled)continue;const i=t[r.providerId];if(i)for(const o of $n(r,i))n.push({channel:r,description:i,capability:o})}return n}function Ra(e,t){return t.filter(n=>n.capability.intent===e)}function Bn(e,t){return t.filter(n=>n.capability.targetSchemes.includes(e))}function Ca(e,t){return Bn(e.scheme,t)}function Na(e,t,n){const r=[];for(const i of e)for(const o of n)o.capability.intent===t&&o.capability.targetSchemes.includes(i.scheme)&&r.push({channelIntent:o,endpoint:i});return r}var Fn=(e=>(e.MAILTO="mailto",e.SIP="sip",e.TEL="tel",e.WEBHOOK="webhook",e.USERNAME="username",e.ID="id",e.CUSTOM="custom",e.URL="url",e.TELEGRAM="telegram",e.WHATSAPP="whatsapp",e.MESSENGER="messenger",e.INSTAGRAM="instagram",e.VIBER="viber",e.SMS="sms",e.FAX="fax",e.TEAMS="teams",e.CALENDAR="calendar",e))(Fn||{});const ka={mailto:"mail",sip:"tel",tel:"tel",fax:"tel",sms:"chat",teams:"chat",telegram:"chat",messenger:"chat",instagram:"chat",viber:"chat",whatsapp:"wa",webhook:"note",url:"note",calendar:"note",username:"note",id:"note",custom:"note"};function va(e){return e?ka[e]??"note":"note"}const Da="message_window",xa="message_templates",La={FROM:"from",TO:"to",CC:"cc",BCC:"bcc",ORGANIZER:"organizer",PRESENTER:"presenter",ATTENDEE:"attendee",OWNER:"owner",MEMBER:"member",GUEST:"guest",HOST:"host",PARTICIPANT:"participant"},Pa=(e,t)=>({intent:e,...t}),Ua="folder_management",$a="remote_search",Ka="message_reactions",Ba={ok:!1,code:"UNSUPPORTED",message:"Provider does not support this op"},Fa="connector",Ga="context.collect",d=e=>({type:"string",description:e}),u=e=>({type:"number",description:e}),G=e=>({type:"boolean",description:e}),_=d("Sheet name. Omit for the sheet the user is looking at."),qe=d("Slide id, as `inspect` reports it.");function l(e,t,n,r,i,o){return{op:e,kinds:t,summary:n,parameters:{type:"object",properties:r,required:i},undoable:o.undoable,visible:o.visible}}const R={undoable:!1,visible:!0},g={undoable:!0,visible:!0},Je={undoable:!1,visible:!0},q={undoable:!1,visible:!1},Ha=[l("pdf.goToPage",["pdf"],"Scroll the viewer to a page.",{page:u("1-based page number.")},["page"],R),l("pdf.search",["pdf"],"Search the document and highlight the matches, as the find bar does.",{query:d("Text to find."),next:G("Jump to the next match instead of the first.")},["query"],R),l("pdf.setTool",["pdf"],"Select a markup tool for the user, so their next click draws it.",{tool:{type:"string",enum:["highlight","text","draw","image","signature","none"],description:"Which tool to arm. `none` puts the tool row back to reading."}},["tool"],R),l("pdf.fillField",["pdf"],"Fill one form field of a fillable PDF.",{field:d("Field name, exactly as `inspect` reports it under `fields`."),value:{type:["string","boolean"],description:"Text for a text field, true/false for a checkbox or radio."}},["field","value"],g),l("pdf.reorderPages",["pdf"],"Put the pages in a different order. Pages left out are deleted.",{order:{type:"array",items:{type:"number"},description:"1-based source page numbers, in the order they should end up in."}},["order"],Je),l("pdf.deletePages",["pdf"],"Remove pages, keeping the rest in order.",{pages:{type:"array",items:{type:"number"},description:"1-based page numbers."}},["pages"],Je),l("pdf.addNote",["pdf"],"Place a text note on a page. Written on save; not visible before that.",{page:u("1-based page number."),text:d("The note's text."),left:u("Distance from the left edge, in PDF points (72 per inch)."),top:u("Distance from the top edge, in PDF points."),width:u("Box width in points. Omit for a sensible default."),height:u("Box height in points. Omit for a sensible default."),fontSize:u("Font size in points. Omit for 12.")},["page","text","left","top"],q),l("pdf.highlightText",["pdf"],"Highlight a phrase on a page. Written on save; not visible before that.",{page:u("1-based page number."),text:d("The exact phrase to highlight, as it appears in the page's text."),occurrence:u("Which occurrence on that page, 1-based. Omit for the first.")},["page","text"],q)],Wa=[l("sheet.setValues",["sheet"],"Write a block of values. The block's shape must match the range.",{sheet:_,range:d("A1 notation, e.g. `B2:D5` or a single `A1`."),values:{type:"array",items:{type:"array",items:{type:["string","number","boolean","null"]}},description:"Rows of cells, top-left first. `null` clears a cell."}},["range","values"],g),l("sheet.setFormula",["sheet"],"Put a formula in every cell of a range.",{sheet:_,range:d("A1 notation."),formula:d("Including the leading `=`.")},["range","formula"],g),l("sheet.setStyle",["sheet"],"Change the look of a range. Only the properties you pass are touched.",{sheet:_,range:d("A1 notation."),bold:G("Bold on or off."),italic:G("Italic on or off."),fontSize:u("Point size."),fontColor:d("CSS colour, e.g. `#b91c1c`."),background:d("CSS colour for the cell fill."),horizontalAlignment:{type:"string",enum:["left","center","right"],description:"Horizontal alignment."},numberFormat:d("Number format pattern, e.g. `#,##0.00` or `0%`.")},["range"],g),l("sheet.insertRows",["sheet"],"Insert empty rows, pushing the rest down.",{sheet:_,at:u("1-based row number to insert before."),count:u("How many. Omit for 1.")},["at"],g),l("sheet.deleteRows",["sheet"],"Delete rows, pulling the rest up.",{sheet:_,at:u("1-based first row to delete."),count:u("How many. Omit for 1.")},["at"],g),l("sheet.insertColumns",["sheet"],"Insert empty columns, pushing the rest right.",{sheet:_,at:u("1-based column number to insert before."),count:u("How many. Omit for 1.")},["at"],g),l("sheet.deleteColumns",["sheet"],"Delete columns, pulling the rest left.",{sheet:_,at:u("1-based first column to delete."),count:u("How many. Omit for 1.")},["at"],g),l("sheet.merge",["sheet"],"Merge a range into one cell.",{sheet:_,range:d("A1 notation.")},["range"],g),l("sheet.unmerge",["sheet"],"Break merged cells in a range apart.",{sheet:_,range:d("A1 notation.")},["range"],g),l("sheet.sort",["sheet"],"Sort a range on one of its columns.",{sheet:_,range:d("A1 notation covering the rows to sort, header excluded."),column:u("1-based column *within the range*, not within the sheet."),ascending:G("Ascending. Omit for ascending.")},["range","column"],g),l("sheet.insertSheet",["sheet"],"Add a new sheet.",{name:d("Name for the new sheet.")},["name"],g),l("sheet.renameSheet",["sheet"],"Rename a sheet.",{sheet:d("Current name."),name:d("New name.")},["sheet","name"],g),l("sheet.deleteSheet",["sheet"],"Remove a sheet and everything on it.",{sheet:d("Name of the sheet to delete.")},["sheet"],g),l("sheet.activate",["sheet"],"Show the user a sheet and select a range on it.",{sheet:_,range:d("A1 notation to select. Omit to only switch sheets.")},[],R)],Va=[l("word.replaceParagraph",["word"],"Rewrite one whole paragraph, keeping its style. This is the verb for shortening or rephrasing something; call it once per paragraph.",{at:u("The offset the paragraph starts at, exactly as `inspect` prints it."),text:d("The new text for that paragraph. A newline starts a further paragraph.")},["at","text"],g),l("word.replaceRange",["word"],"Replace a stretch of text inside a paragraph - a sentence, a phrase. To rewrite whole paragraphs use word.replaceParagraph: a range covering several paragraph styles is refused, because a replacement carries one style and would set the whole span in the first.",{start:u("Character offset where the replaced text starts, as `inspect` reports offsets."),end:u("Character offset just past the last character to replace."),text:d("The replacement text. A newline starts a new paragraph.")},["start","end","text"],g),l("word.insertText",["word"],"Insert text at a character offset, without removing anything.",{index:u("Character offset, as `inspect` reports offsets."),text:d("The text to insert.")},["index","text"],g),l("word.appendText",["word"],"Add text at the end of the document.",{text:d("The text to append.")},["text"],g),l("word.insertParagraph",["word"],"Start a new paragraph, optionally with text in it.",{text:d("Paragraph text. Newlines start further paragraphs."),index:u("Character offset to insert at. Omit for the end of the document.")},[],g),l("word.setSelection",["word"],"Put the user's cursor on a stretch of text, and move the reading window there: the page context carries one window of a long document, and the text around this offset arrives in the next turn.",{start:u("Start character offset."),end:u("End character offset. Omit for a caret.")},["start"],R)],ja=[l("slides.setText",["slides"],"Replace the text of one shape. Written on save; not visible before that, and not undoable.",{slide:qe,element:d("Element id, as `inspect` reports it."),text:d("The new text.")},["slide","element","text"],q),l("slides.setTransform",["slides"],"Move or resize one shape. Only the values you pass change. Written on save; not visible before that, and not undoable.",{slide:qe,element:d("Element id."),left:u("Distance from the left edge, in pixels."),top:u("Distance from the top edge, in pixels."),width:u("Width in pixels."),height:u("Height in pixels.")},["slide","element"],q)],ke=[...Ha,...Wa,...Va,...ja];function Ya(e){return ke.filter(t=>t.kinds.includes(e))}function za(e){return ke.find(t=>t.op===e)}const Xa="documents.describe",qa="documents.inspect",Ja="documents.apply";function Za(e){const t=e.indexOf(":");if(t!==-1)return e.slice(0,t);const n=e.indexOf(".");return n===-1?e:e.slice(0,n)}const Qa="installation-id";function es(e){const t=[];for(const n of Object.keys(e))for(const r of Object.keys(e[n]))t.push({lang:n,key:r,value:e[n][r]});return t}const ts="notification-source",ns=(e,t)=>`${e}.pref.${t}`,rs={ai:["account.read","account.write","agent.read","agent.write","assignment.read","assignment.write","budget.read","budget.write","connector.read","connector.write","context.read","context.write","conversation.read","conversation.write","lens.read","lens.write","message.read","message.write","playbook.read","playbook.write","profile.read","profile.write","run.read","run.write","settings.read","settings.write","tool.read","transcript.write","usage.read"],analytics:["report.read"],"app-store":["app.publish","app.read","app.write","setting.read","setting.write"],assist:["board.read"],automations:["sync.read","sync.write","webhook.read","webhook.write"],communication:["account.read","account.write","activity-type.read","activity.read","activity.write","attachment.read","attribute.read","attribute.write","calendar.read","calendar.write","channel.read","channel.write","custom-field.read","custom-field.write","folder.read","folder.write","inbox.read","inbox.write","interaction.read","interaction.write","reaction.read","reaction.write","reminder.read","template.read","template.write","topic.read","topic.write"],context:["kind.read","kind.write","memory.read","memory.write"],crm:["company.read","company.write","contact.read","contact.write"],"eylo-voip":["account.read","account.write","callflow.read","callflow.write","channel.read","channel.write","contact.read","contact.write","device.read","device.write","group.read","group.write","interaction.read","interaction.write","media.read","media.write","menu.read","menu.write","phone-number.read","phone-number.write","recording.read","recording.write","sip.read","temporal-rule.read","temporal-rule.write","user.read","user.write","vmbox.read","vmbox.write","webhook.read","webhook.write"],google:["account.read","account.write","contact.read"],kb:["article.read","article.write","category.read","category.write","help-center.read","help-center.write","kb.read","kb.write"],mail:["account.write"],meta:["account.read","account.write"],microsoft:["account.read","account.write","contact.read","sync.write"],organization:["billing.read","billing.write","settings.read","settings.write","team.read","team.write"],shopify:["account.read","account.write","order.read"],slack:["thread.read","thread.write"],storage:["artifact.read","artifact.write","file.read","file.write","mount.read","mount.write"],time:["entry.read","entry.write","work-type.read","work-type.write"],user:["user.read","user.write"],work:["item.read","item.write","project.read","project.write"]},ve=9e4,Gn=["out_of_office"],Hn=e=>Gn.includes(e);function is(e,t,n){const r=n-e<ve,i=t?.status&&(!t.expiresAt||t.expiresAt>n)?t:void 0;if(!i?.status)return{online:r,status:r?"available":"offline"};const o=i.status;return!r&&!Hn(o)?{online:!1,status:"offline"}:{online:r,status:o,message:i.message}}function os(e,t){const n=t-e.lastSeenAt<ve,r=n||Hn(e.status)?e.status:"offline";return n===e.online&&r===e.status?e:{...e,online:n,status:r}}function as(e,t){return e?.teamId&&t.includes(e.teamId)?{teamId:e.teamId,mustChoose:!1}:t.length===1?{teamId:t[0],mustChoose:!1}:{teamId:void 0,mustChoose:t.length>1}}function ss(e){return e.providerAvailable&&e.allowed}const cs="resources.describe",ls="resources.search",us="resources.resolve",ds="resources.attached";function ps(e){const t=e.indexOf(":");return t===-1?e:e.slice(0,t)}const fs="/provider/scope/related",ms="/provider/scope/read",De="auth";function xe(e){const t=typeof e=="string"?e.match(/apps\/([^/?#]+)/):null;return t?t[1]:null}function gs(e){const t=xe(e);return t?t!==De:typeof e=="string"&&e.startsWith("/wake")}function hs(e){return typeof e!="string"||e===""||e==="/"?!0:xe(e)===De}function Es(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Wn(e){const n=e.split("/").filter(Boolean).map(r=>r.startsWith(":")?r.endsWith("?")?"(?:/[^/]+)?":"/[^/]+":`/${Es(r)}`).join("");return new RegExp(`^${n}\\/?$`)}function Vn(e,t){const n=e.split("/").filter(Boolean),r=t.split("/").filter(Boolean),i={};return n.forEach((o,a)=>{if(o.startsWith(":")){const s=o.endsWith("?")?o.slice(1,-1):o.slice(1),c=r[a];c&&(i[s]=c)}}),i}function jn(e){return e.publicBasePath??`/apps/${e.name}`}function As(e){const t=[];for(const n of e){if(!n?.name)continue;const r=jn(n);for(const i of n.routes??[]){if(!i.public)continue;const o=i.path==="/"?"":i.path;t.push({appName:n.name,resource:i.resource,pattern:`${r}${o}`,props:i.props})}}return t}function Yn(e,t){const n=e.split("/").filter(Boolean),r=t.split("/").filter(Boolean);for(let i=0;i<Math.min(n.length,r.length);i++){const o=n[i].startsWith(":"),a=r[i].startsWith(":");if(o!==a)return a}return n.length>r.length}function zn(e,t){if(typeof e!="string")return null;let n=null;for(const r of t)Wn(r.pattern).test(e)&&(!n||Yn(r.pattern,n.pattern))&&(n=r);return n?{...n,params:{...n.props,...Vn(n.pattern,e)}}:null}function Ss(e,t){return zn(e,t)!==null}const _s=10*1024*1024,ys=25*1024*1024,Ts="sync-target",bs=20,Is={afrikaans:["[Muziek]","(C) TV GELDERLAND 2021","*Thomp thomp thomp*","www.youtube.com","ä n wood s","!.."],english:["[applause]","[APPLAUSE]","(claps)","(clapping)","(audience applauds)","(keyboard clicking)","(keyboard clacking)","(clicking)","[CLICK]","[BLANK_AUDIO]","(upbeat music)","(dramatic music)","[music playing]","(electronic music)","(audience cheering)","(audience cheers)","[MUSIC]","( ( ( ( ) ( ) ( ) ( )","(laughs)","(air whooshing)","<u>Transcribed</u> by https://otter.ai","All new tonight at 6... coming up. A new look at your forecast is A new look at your forecast is","www.mooji.org","KATHRYN A new forecast is coming up... A new forecast is coming up...","KATHRYN pandemic started. increasing since the The pandemic has been","A new look at your forecast this morning... A new look at your","We'll be right back.","We'll see you next week.","Thanks for watching!","❤️ Translated by Amara.org Communit"],flemish:["*clap*","TV GELDERLAND 2020","TV Gelderland 2021","(C) TV GELDERLAND 2021","[Muziek]","Kuman","Ondertitels ingediend door de Amara.org gemeenschap","Ondertiteld door de Amara.org gemeenschap","Dank u wel voor het kijken.","Ondertiteling door de Amara.org gemeenschap","GELUID VAN MAHIH U similarly"],french:["(applaudissements)","[Applaudissements]","Sous-titres réalisés par la communauté d'Amara.org","- Bonne journée. - Bonjour.","POP POP הי","Merci d'avoir regardé cette vidéo.","Merci d'avoir regardé cette vidéo!","Merci d'avoir regardé la vidéo.","J'espère que vous avez apprécié la vidéo.","Je vous remercie de vous abonner","Merci d'avoir regardé!","❤️ par SousTitreur.com","— Sous-titrage ST'501 —","Thanks for watching!","Sous-titres réalisés par l'Amara.org","Sous-titres réalisés para la communauté d'Amara.org","Sous-titres réalisés par la communauté d'Amara.org","Sous-titres fait par Sous-titres par Amara.org","Sous-titres réalisés par les SousTitres d'Amara.org","Sous-titres par Amara.org","Sous-titres par la communauté d'Amara.org","Sous-titres réalisés pour la communauté d'Amara.org","Sous-titres réalisés par la communauté de l'Amara.org","Sous-Titres faits par la communauté d'Amara.org","Sous-titres par l'Amara.org","Sous-titres fait par la communauté d'Amara.org","Sous-titrage ST' 501","Sous-titrage ST'501","Cliquez-vous sur les sous-titres et abonnez-vous à la chaîne d'Amara.org","❤️ par SousTitreur.com"],german:["[Klicken]","(Jubel)","*lacht*","[Anhaltender Beifall]","[Applaus]","(Applaus)","* Applaus *","[MUSIK]","* mustard ml Drumglöck und knack in einem Handbewerb *","Untertitelung aufgrund der Amara.org-Community","Untertitel im Auftrag des ZDF für funk, 2017","Untertitel von Stephanie Geiges","Untertitel der Amara.org-Community","Untertitel im Auftrag des ZDF, 2017","Untertitel im Auftrag des ZDF, 2020","Untertitel im Auftrag des ZDF, 2018","Untertitel im Auftrag des ZDF, 2021","Untertitelung im Auftrag des ZDF, 2021","Copyright WDR 2021","Copyright WDR 2020","Copyright WDR 2019","SWR 2021","SWR 2020"],italian:["Alla prossima!","*applauso*","[Musica]","[Musica]","[Applausi]","*Bip bip bip bip*","(musica del NS shore)","D' 1962 alle tribunte del Gulf","Sottotitoli creati dalla comunità Amara.org","Sottotitoli di Sottotitoli di Amara.org","Sottotitoli e revisione al canale di Amara.org","Sottotitoli e revisione a cura di Amara.org","Sottotitoli e revisione a cura di QTSS","Sottotitoli e revisione a cura di QTSS.","Sottotitoli a cura di QTSS","Sottotitoli a cura di Sottotitoli"],spanish:["[música]","[Música de cierre]","[Aplausos]","(Aplausos)","www.alimmenta.com","¡Gracias por ver el vídeo!","(sonidos del celular) (Inudible distorsión)","¡Suscríbete!","Subtítulos realizados por la comunidad de Amara.org","Subtitulado por la comunidad de Amara.org","Subtítulos por la comunidad de Amara.org","Subtítulos creados por la comunidad de Amara.org","Subtítulos en español de Amara.org","Subtítulos hechos por la comunidad de Amara.org","Subtitulos por la comunidad de Amara.org","Más información www.alimmenta.com","www.mooji.org","[MÚSICA]","[Music cuts in British]"]},Xn=e=>{let t=e;return Object.values(Is).forEach(n=>{n.forEach(r=>{t=t.replaceAll(r,"")})}),t=t.replace(/\(.*?\)/g,""),t=t.replace(/\[.*?\]/g,""),t},qn=6e4,Jn=8e3,Zn=2,Qn=.4,Ms=3,Os=new Set(["aan","als","ben","bent","bij","dan","dat","deze","die","dit","doen","door","dus","echt","een","eens","even","gaan","gaat","geen","geweest","goed","graag","had","heb","hebben","hebt","heeft","het","hier","hoe","hoor","iets","inderdaad","kan","klopt","kunnen","kunt","maar","mag","mee","meer","met","mij","mijn","misschien","moet","moeten","naar","net","niet","nog","nou","oke","ook","over","prima","toch","uhm","uit","van","veel","voor","wat","weer","weet","wel","wij","wil","wilt","worden","wordt","zeg","zeggen","zijn","zou","zult","about","and","are","been","but","can","does","for","have","just","know","like","not","okay","right","she","that","the","them","then","there","they","this","want","was","well","were","what","will","with","would","yeah","you","your"]);function er(e){const t=new Set;for(const n of e.toLowerCase().split(/[^a-z0-9À-ɏ]+/))n.length<Ms||Os.has(n)||t.add(n);return[...t]}function tr(e,t){if(!e.length)return 0;if(!t.length)return 1;const n=new Set(t),r=new Set(e);let i=0;for(const o of r)n.has(o)||(i+=1);return i/r.size}function nr(e,t=qn){const n=e.filter(a=>!a.partial&&typeof a.text=="string");if(!n.length)return{text:"",segmentCount:0};const i=n.reduce((a,s)=>Math.max(a,s.endedAt??0),0)-t;return{text:n.filter(a=>(a.endedAt??0)>=i).map(a=>Xn(a.text).trim()).filter(Boolean).join(" ").replace(/\s+/g," ").trim(),segmentCount:n.length}}const rr=60;function ws(e,t,n=rr){const r=new Set(e),i=[...e];for(const o of t)!o||r.has(o)||(r.add(o),i.push(o));return i.slice(-n)}function Rs(e){const{segments:t,now:n,state:r}=e;if(r.lastTriggerAt&&n-r.lastTriggerAt<Jn)return{trigger:!1,reason:"too_soon"};const i=nr(t,e.windowMs);if(!i.text)return{trigger:!1,reason:"no_speech"};const o=i.segmentCount-(r.lastSegmentCount??0);if(r.lastQueryTerms&&o<Zn)return{trigger:!1,reason:"too_few_new"};const a=er(i.text);return a.length?r.lastQueryTerms?.length&&tr(a,r.lastQueryTerms)<Qn?{trigger:!1,reason:"same_topic"}:{trigger:!0,text:i.text,terms:a,segmentCount:i.segmentCount}:{trigger:!1,reason:"no_speech"}}const Cs=["personal","workspace","connections","work","ai"],Ns="navNotice",te={NL:{callingCode:"31",trunkPrefix:"0",nsnMin:7,nsnMax:9},BE:{callingCode:"32",trunkPrefix:"0",nsnMin:8,nsnMax:9},LU:{callingCode:"352",nsnMin:6,nsnMax:9},DE:{callingCode:"49",trunkPrefix:"0",nsnMin:6,nsnMax:13},FR:{callingCode:"33",trunkPrefix:"0",nsnMin:9,nsnMax:9},GB:{callingCode:"44",trunkPrefix:"0",nsnMin:9,nsnMax:10},IE:{callingCode:"353",trunkPrefix:"0",nsnMin:7,nsnMax:9},ES:{callingCode:"34",nsnMin:9,nsnMax:9},PT:{callingCode:"351",nsnMin:9,nsnMax:9},IT:{callingCode:"39",nsnMin:6,nsnMax:11},AT:{callingCode:"43",trunkPrefix:"0",nsnMin:7,nsnMax:13},CH:{callingCode:"41",trunkPrefix:"0",nsnMin:9,nsnMax:9},DK:{callingCode:"45",nsnMin:8,nsnMax:8},SE:{callingCode:"46",trunkPrefix:"0",nsnMin:7,nsnMax:13},NO:{callingCode:"47",nsnMin:8,nsnMax:8},FI:{callingCode:"358",trunkPrefix:"0",nsnMin:5,nsnMax:12},PL:{callingCode:"48",nsnMin:9,nsnMax:9},US:{callingCode:"1",nsnMin:10,nsnMax:10},CA:{callingCode:"1",nsnMin:10,nsnMax:10}},ir="NL",ks=15,vs=8,Ds=Array.from(new Set(Object.values(te).map(e=>e.callingCode))).sort((e,t)=>t.length-e.length);function Ze(e){if(e)return te[e.trim().toUpperCase()]}function H(e,t){return e.length>=t.nsnMin&&e.length<=t.nsnMax}function Qe(e){if(e.length>ks)return null;for(const t of Ds){if(!e.startsWith(t))continue;const n=e.slice(t.length);for(const r of Object.values(te)){if(r.callingCode!==t)continue;const i=r.trunkPrefix,o=i&&n.startsWith(i)?n.slice(i.length):n;if(H(o,r))return`+${t}${o}`}return null}return e.length<vs?null:`+${e}`}function xs(e){let t=e.trim();const n=t.match(/^(sips?|tel|whatsapp):/i);n&&(t=t.slice(n[0].length));const r=t.indexOf("@");return r>=0&&(t=t.slice(0,r)),t.trim()}function Ls(e){if(!e)return!1;const t=e.indexOf("@");if(t<=0)return!1;const n=e.slice(0,t).trim();return!/^[+\d\s().-]+$/.test(n)}function Se(e,t){if(!e)return null;const n=xs(e);if(!n)return null;const r=n.startsWith("+"),i=n.replace(/\D/g,"");if(!i)return null;if(r)return Qe(i);if(i.startsWith("00"))return Qe(i.slice(2));const o=Ze(t)??Ze(ir);if(!o)return null;const a=o.trunkPrefix;if(a&&i.startsWith(a)){const s=i.slice(a.length);return H(s,o)?`+${o.callingCode}${s}`:null}if(i.startsWith(o.callingCode)){const s=i.slice(o.callingCode.length);if(H(s,o))return`+${o.callingCode}${s}`}return!a&&H(i,o)?`+${o.callingCode}${i}`:null}function Ps(e,t=9){const n=(e??"").replace(/\D/g,"");return n.length<t?null:n.slice(-t)}function Le(e){if(!e)return null;const t=e.trim().toLowerCase(),n=t.lastIndexOf("@");if(n<=0||n===t.length-1)return null;const r=t.slice(0,n).split("+")[0],i=t.slice(n+1);return!r||!i.includes(".")?null:`${r}@${i}`}function Us(e){const t=Le(e);return t?t.slice(t.lastIndexOf("@")+1):null}const $s=new Set(["co.uk","org.uk","gov.uk","ac.uk","com.au","co.nz","com.br","co.za"]);function or(e){if(!e)return null;const t=e.trim().toLowerCase().replace(/\.$/,"").split(".").filter(Boolean);if(t.length<2)return null;const n=t.slice(-2).join(".");return $s.has(n)&&t.length>=3?t.slice(-3).join("."):n}const ar=new Set(["gmail.com","googlemail.com","outlook.com","hotmail.com","hotmail.nl","hotmail.be","hotmail.co.uk","live.com","live.nl","live.be","msn.com","yahoo.com","yahoo.co.uk","ymail.com","icloud.com","me.com","mac.com","aol.com","gmx.net","gmx.de","web.de","protonmail.com","proton.me","pm.me","tutanota.com","zoho.com","mail.com","ziggo.nl","kpnmail.nl","planet.nl","home.nl","casema.nl","chello.nl","xs4all.nl","telfort.nl","hetnet.nl","zonnet.nl","upcmail.nl","quicknet.nl","telenet.be","skynet.be","proximus.be","scarlet.be"]);function Ks(e){const t=or(e);return t?ar.has(t):!1}function Bs(e){if(!e)return!1;const t=e.trim().toLowerCase();return t==="tel"||t==="sms"||t==="whatsapp"||t==="fax"}function Fs(e,t,n){if(!e||!t)return null;const r=e.trim().toLowerCase();if(r==="tel"||r==="sms"||r==="whatsapp"){const o=Se(t,n);return o?`tel:${o}`:null}if(r==="fax"){const o=Se(t,n);return o?`fax:${o}`:null}if(r==="mailto"||r==="email"){const o=Le(t);return o?`mailto:${o}`:null}const i=t.trim().toLowerCase();return i?`${r}:${i}`:null}const Gs=[/<blockquote/i,/class="?gmail_quote/i,/id="?[^"]*divRplyFwdMsg/i,/id="?[^"]*mail-editor-reference-message-container/i,/-{3,}\s*Original Message\s*-{3,}/i,/\n_{5,}\s*\n/,/\bOn\b[\s\S]{0,200}?\bwrote:/i],et=/^\s*(?:>+\s*)?(?:from|van|sent|verzonden|to|aan|cc|subject|onderwerp|date|datum)\s*:/i,Hs=/^\s*(?:on|op)\b.{0,200}?\b(?:wrote|schreef|geschreven)\s*:?\s*$/i;function Ws(e){const t=e.split(`
10
- `);for(let n=0;n<t.length;n++)if(Hs.test(t[n])||et.test(t[n])&&t.slice(n+1,n+4).some(r=>et.test(r)))return t.slice(0,n).join(`
11
- `).trim();return e}const Vs=/^(?:https?:|mailto:|tel:)/i,js=/^(?:https?:|cid:|data:image\/)/i;function ae(e,t){const n=e.match(new RegExp(`\\b${t}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|([^\\s">]+))`,"i"));return(n?.[1]??n?.[2]??n?.[3]??"").trim()}const Ys=/(!\[[^\]]*\]\([^)]*\))/;function tt(e){return e.replace(/\s+/g," ").trim().split(Ys).map((t,n)=>n%2===1?t:t.replace(/[[\]]/g,"\\$&")).join("")}function se(e){return e.replace(/[()\s<>"]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0")}`)}function zs(e){return e.replace(/<img\b([^>]*?)\/?>/gi,(n,r)=>{const i=ae(r,"src");return js.test(i)?`![${tt(ae(r,"alt"))}](${se(i)})`:""}).replace(/<a\b([^>]*)>([\s\S]*?)<\/a\s*>/gi,(n,r,i)=>{const o=tt(i.replace(/<[^>]*>/g,"")),a=ae(r,"href");return Vs.test(a)?`[${o||se(a)}](${se(a)})`:o})}const Xs=/<table\b[^>]*>((?:(?!<table\b)[\s\S])*?)<\/table\s*>/i,qs=/<tr\b[^>]*>([\s\S]*?)<\/tr\s*>/gi,Js=/<(t[dh])\b([^>]*)>([\s\S]*?)<\/\1\s*>/gi;function Zs(e,t){return/<table\b/i.test(e)||e.includes(`
9
+ `:t==="mail"?"<br><br>-- <br>":"<br><br>"}${i.body}`:n}function Ri(e){return e.endpoints??[]}const Dt=36e5,xt=864e5,b=-1/0,Ci=e=>e.score>b,w={urgent:40,high:25,normal:10,low:0};function wi(e){return Object.fromEntries(e.map(t=>[t.resourceId,t]))}const Ni=/(^|[._+-])(no-?reply|noreply|donotreply|do-not-reply|newsletter|nieuwsbrief|mailer|mailing|notifications?|bounce|postmaster|marketing)@/i,Lt=/\b(unsubscribe|afmelden|uitschrijven|opt[\s-]?out|manage (your )?preferences|geen (e-?mails?|nieuwsbrief|berichten) meer)\b/i;function Pt(e,t){return!!(e&&Ni.test(e)||t&&Lt.test(t))}const Ut=3,$t=600;function ki(e,t){return e>=Ut||t>=$t}const Kt=["list-unsubscribe","list-unsubscribe-post","list-id","precedence","auto-submitted","x-auto-response-suppress","feedback-id","x-mailer"];function vi(e){const t={};for(const n of e){const r=n.name?.toLowerCase();r&&n.value!==void 0&&Kt.includes(r)&&(t[r]=n.value)}return t}const Di=/(^|[._+-])(no-?reply|noreply|donotreply|do-not-reply|notifications?|bounce|postmaster|mailer)@/i,xi=/(^|[._+-])(newsletter|nieuwsbrief|marketing|mailing)@/i;function Li(e){const t=e.headers??{},n=e.from?.email,r=t["auto-submitted"]?.toLowerCase();if(r&&r!=="no"||t["x-auto-response-suppress"]||n&&Di.test(n))return"automated";const i=t.precedence?.toLowerCase();if(t["list-unsubscribe"]||t["list-unsubscribe-post"]||t["list-id"]||i==="bulk"||i==="list"||e.body&&Lt.test(e.body)||n&&xi.test(n))return"marketing"}function Ft(e,t){return e.lastActivityAt?!(e.seenBy??[]).includes(t):!1}const Bt=["open"],Gt=1e3,Ht={urgent:1,high:4,normal:8,low:24},Wt=72;function Vt(e){return e.lastActivityAt??(e.createdAt?new Date(At(e)).getTime():0)}function jt(e,t){return Yt(t.remindersById?.[e.id],e,t.now)}function Yt(e,t,n){return!e||e.remindAt<=n?!1:!((t.lastActivityAt??0)>e.parkedAt&&t.lastActivityPreview?.direction==="inbound")}const Xt=e=>mt(e)==="outbound_message",zt=e=>Bt.includes(e);function J(e,t){return Math.max(0,(t-Vt(e))/Dt)}function qt(e,t){const n=e.assignedInboxId?t?.[e.assignedInboxId]:void 0;return typeof n=="number"&&n>0?n:Ht[e.priority??"normal"]}function Pi(e){const t={};for(const n of e)typeof n.slaHours=="number"&&n.slaHours>0&&(t[n.id]=n.slaHours);return t}function Ui(e,t,n){return!zt(e.status)||e.firstResponseAt?!1:J(e,t)>qt(e,n)}function Jt(e,t){const n=e.lastActivityPreview;return n?.direction!=="outbound"||!Xt(n.type)?!1:J(e,t)<Wt}function $i(e,t){if(!zt(e.status))return{score:b,reasons:[]};if(e.snoozedTill&&e.snoozedTill>t.now)return{score:b,reasons:[]};if(Jt(e,t.now))return{score:b,reasons:[]};if(jt(e,t))return{score:b,reasons:[]};let n=0;const r=[],i=e.priority??"normal";w[i]>0&&(n+=w[i],r.push(`priority:${i}`)),Ft(e,t.userId)&&(n+=20,r.push("unseen")),e.assignedUserId&&e.assignedUserId===t.userId&&(n+=15,r.push("assigned-to-you"));const o=J(e,t.now);if(o>0){const c=Math.min(o*2,30);n+=c,o>=1&&r.push(`waiting:${Math.round(o)}h`)}const a=e.lastActivityPreview;return a?.type==="AI_ACTION_PROPOSED"&&(n+=30,r.push("awaiting-approval")),a?.direction==="outbound"&&Xt(a.type)&&(n+=10,r.push("no-reply")),!e.firstResponseAt&&e.lastActivityPreview?.direction==="inbound"&&(n+=10,r.push("awaiting-reply")),(e.tags?.some(c=>c==="marketing"||c==="automated")||Pt(e.remoteParty?.resource,e.lastActivityPreview?.snippet))&&(n-=Gt,r.push("bulk")),{score:n,reasons:r}}const Ki=e=>!!e.assignedUserId||!!e.assignedInboxId,Fi=e=>e.status==="closed",Bi=e=>({urgent:10,high:5,normal:2,low:1})[e.priority]||0,Gi=(e,t=30)=>e.title?.length<=t?e.title:`${e.title.substring(0,t)}...`;function Hi(e,t){const n=e.labels??[];return n.find(r=>r.locale===t)?.label??n[0]?.label??e.url}function Wi(e,t,n){const r=e.translations??[];return r.find(i=>i.locale===t)??(n?r.find(i=>i.locale===n):void 0)??{locale:t}}const Ae=[{code:"nl",label:"Nederlands",english:"Dutch"},{code:"en",label:"English",english:"English"},{code:"de",label:"Deutsch",english:"German"},{code:"fr",label:"Français",english:"French"},{code:"es",label:"Español",english:"Spanish"},{code:"it",label:"Italiano",english:"Italian"},{code:"pt",label:"Português",english:"Portuguese"},{code:"pl",label:"Polski",english:"Polish"},{code:"sv",label:"Svenska",english:"Swedish"},{code:"da",label:"Dansk",english:"Danish"},{code:"nb",label:"Norsk bokmål",english:"Norwegian Bokmål"},{code:"fi",label:"Suomi",english:"Finnish"},{code:"tr",label:"Türkçe",english:"Turkish"}];function Zt(e){const t=(e??"").toLowerCase();return Ae.find(n=>n.code===t)??Ae.find(n=>n.code===t.split("-")[0])}function Vi(e){return Zt(e)?.label??e}function ji(e){const t=Zt(e);return t?t.english===t.label?`${t.english} (${t.code})`:`${t.english} — ${t.label} (${t.code})`:e}const ke=3;function Qt(e,t){const n=new Set;let r=1,i=t.get(e)?.parentId;for(;i;){if(n.has(i)||(n.add(i),r++,r>ke+1))return 1/0;i=t.get(i)?.parentId}return r}function Yi(e,t,n){if(!e)return!0;if(e===t)return!1;const r=new Map(n.map(a=>[a.id,a]));if(!r.has(e)||t&&en(e,t,r))return!1;const i=Qt(e,r),o=t?ve(t,n):1;return i+o<=ke}function en(e,t,n){const r=new Set;let i=n.get(e)?.parentId;for(;i;){if(i===t)return!0;if(r.has(i))return!1;r.add(i),i=n.get(i)?.parentId}return!1}function ve(e,t,n=new Set){if(n.has(e))return 1;n.add(e);const r=t.filter(i=>i.parentId===e);return r.length?1+Math.max(...r.map(i=>ve(i.id,t,n))):1}const tn="en";function nn(e){return e.defaultLocale||e.locale||tn}function Xi(e){const t=new Set,n=[];for(const r of[nn(e),...e.locales??[]])!r||t.has(r)||(t.add(r),n.push(r));return n}function zi(e,t,n){const r=e.translations??[];return r.find(i=>i.locale===t)?.name??(n?r.find(i=>i.locale===n)?.name:void 0)??e.name}const ye=["lookup","condition","parallel","for-each"];function _e(e){for(const t of e){if(!ye.includes(t.type))return`staptype "${t.type}" mag niet meelezen (alleen ${ye.join(", ")})`;if(t.type==="parallel")for(const n of t.branches??[]){const r=_e(n);if(r)return r}if(t.type==="for-each"){const n=_e(t.body??[]);if(n)return n}}return null}function qi(e,t){switch(e.kind){case"org":return!0;case"team":return!!t.teamId&&e.teamId===t.teamId;case"personal":return e.userId===t.userId}}function Ji(e,t){return e.filter(n=>n.enabled&&qi(n.ownerScope,t))}function Zi(e){return e.credentialScope?e.credentialScope:(e.authMode??"header")==="header"||e.oauth?.scope==="org"?"shared":"per-user"}function Qi(e){return`mcp__${e}__`}const eo=1e3,to=2e3,no=500,ro=12e3,io=4e3,rn=["contact","company","work_item"];function oo(e){if(!e)return!1;const t=e.slice(0,e.indexOf(":"));return rn.includes(t)}const ao="onboarding-source",so=["support","billing","availability","sales","onboarding"],co=["keep","replace"];function on(e){switch(e.kind){case"user":return`user:${e.userId}`;case"team":return`team:${e.teamId}`;case"org":return"org"}}function lo(e){if(typeof e!="string")return;const t=e.trim();if(t==="org")return{kind:"org"};const n=t.indexOf(":");if(n<=0)return;const r=t.slice(0,n),i=t.slice(n+1).trim();if(i){if(r==="user")return{kind:"user",userId:i};if(r==="team")return{kind:"team",teamId:i}}}function an(e){return on(e)}function sn(e){switch(e.kind){case"personal":return{kind:"user",userId:e.userId};case"team":return{kind:"team",teamId:e.teamId};case"org":return{kind:"org"}}}const cn=sn;function uo(e){return e.agentId?{kind:"user",userId:e.agentId}:cn(e.ownerScope)}function po(e){return an(e)}function fo(e,t){if(!t)return;let n=e;for(const r of t.split(".")){if(n===null||typeof n!="object")return;n=n[r]}return n}function mo(e,t){return e.targets.find(n=>n.activityTypes.includes(t))}function go(e,t){if(t)return e.targets.find(n=>n.id===t)}function ln(e){return e?.kind==="assignment"}function ho(e){const{trigger:t,agentId:n,target:r,activityType:i,assigneeUserId:o,authorUserId:a}=e;return ln(t)?n?r?r.activityTypes.includes(i)?o?o!==n?"assigned to someone else":a&&a===n?"the agent assigned this to itself, which would restart its own run":null:`no assignee found at ${r.assigneePath}`:`activity type ${i} does not announce an assignment for ${r.id}`:`assignment target kind "${t.targetKind}" is not declared by any installed app`:"this playbook has no agent, so an assignment can never be for it":"trigger is not an assignment trigger"}function Eo(e){return(e.startsWith("tool:")?e.slice(5):e).replace(/__/g," · ").replace(/\./g," · ").replace(/_/g," ")}const Ao=[{name:"text",type:"string"},{name:"subject",type:"string"},{name:"from",type:"string"},{name:"type",type:"string"},{name:"direction",type:"string"},{name:"channelId",type:"string"},{name:"interactionId",type:"string"},{name:"itemId",type:"string"},{name:"activityId",type:"string"},{name:"authorType",type:"string"},{name:"authorName",type:"string"},{name:"textRaw",type:"string"},{name:"fromStatus",type:"string"},{name:"toStatus",type:"string"},{name:"toCategory",type:"string"},{name:"contactId",type:"string"},{name:"companyId",type:"string"},{name:"priority",type:"string"},{name:"inboxId",type:"string"},{name:"topicId",type:"string"},{name:"assigneeUserId",type:"string"}],yo={topics:[{name:"topicId",type:"string"},{name:"topic",type:"string"},{name:"confidence",type:"number"},{name:"reasoning",type:"string"}],question:[{name:"answer",type:"boolean"},{name:"reasoning",type:"string"}],extract:[]};function un(e){return`${e.type}:${e.id}`}const dn="interaction";function pn(e){return e?.type===dn?e.id:void 0}const fn=64,mn=8e3;function _o(e){const t=typeof e=="number"?e:Number(String(e??"").trim());if(!(!Number.isFinite(t)||t<=0))return Math.min(Math.max(Math.round(t),fn),mn)}const So={kind:"workflow",steps:[]};function To(e){return e?.kind==="workflow"?e.steps:[]}function bo(e){return e?.kind==="procedure"?e.procedure:void 0}function gn(e){const t=e?.approved??0,n=t+(e?.rejected??0);return{total:n,rate:n?t/n:0}}const hn=10,En=.9;function Io(e){const{total:t,rate:n}=gn(e);return t>=hn&&n>=En}const An=["done","escalated","failed","stopped"];function Oo(e){return An.includes(e)}function yn(e){return e==="waiting"}function Mo(e){return e==="running"||yn(e)}function De(e){return e.subjectKind&&e.subjectId?{type:e.subjectKind,id:e.subjectId}:void 0}function Ro(e){const t=De(e);return t?un(t):void 0}function Co(e){return pn(De(e))}function wo(e){const t=[],n=new Map;for(const r of[...e].sort(No)){const i=n.get(r.emoji);if(i){i.push(r.actor);continue}t.push(r.emoji),n.set(r.emoji,[r.actor])}return t.map(r=>{const i=n.get(r);return{emoji:r,count:i.length,actors:i}}).sort((r,i)=>i.count-r.count||t.indexOf(r.emoji)-t.indexOf(i.emoji))}const No=(e,t)=>(e.createdAt??0)-(t.createdAt??0);function ko(e,t){return t?e.actors.some(n=>n.type==="user"&&n.id===t):!1}const Se=6e4,vo=36e5,N=864e5,_n=800;function Ze(e,t){const n=Date.UTC(e,t+1,0);return n-new Date(n).getUTCDay()*N+vo}function Do(e){const t=new Date(e).getUTCFullYear();return e>=Ze(t,2)&&e<Ze(t,9)}function Sn(e,t){const n=t.dst==="eu"&&Do(e)?60:0;return(t.utcOffsetMinutes+n)*Se}function xo(e){return(e+3)%7+1}function Tn(e,t){const n=Sn(e,t),r=e+n,i=Math.floor(r/N);if(!t.days.includes(xo(i)))return null;const o=i*N;return{open:o+t.fromMinutes*Se-n,close:o+t.toMinutes*Se-n}}function bn(e,t){const n=Sn(e,t),r=e+n;return(Math.floor(r/N)+1)*N-n}function j(e,t,n){if(t<=e)return 0;if(!n)return t-e;let r=0,i=e;for(let o=0;o<_n&&i<t;o++){const a=Tn(i,n);if(a){const s=Math.max(i,a.open),c=Math.min(t,a.close);c>s&&(r+=c-s)}i=bn(i,n)}return r}function Z(e,t,n){if(!n)return e+t;let r=t,i=e;for(let o=0;o<_n;o++){const a=Tn(i,n);if(a){const s=Math.max(i,a.open);if(a.close>s){const c=a.close-s;if(r<=c)return s+r;r-=c}}i=bn(i,n)}return e+t}function Lo(e){const t=/^([01]\d|2[0-3]):([0-5]\d)$/.exec(e);return t?Number(t[1])*60+Number(t[2]):null}const Y=1,X=2;function Po(e){return e==="snoozed"?Y:X}function Q(e){const t=e.calendar;return t&&Array.isArray(t.days)?t:null}const Uo=["speed_of_answer","first_response","next_response","resolution","close"],$o=["snoozed","waiting_for_customer"],Ko=6e4,In=["speed_of_answer","first_response","next_response"],Fo=[...In,"resolution","close"];function v(e){return e.state==="running"||e.state==="paused"}function Bo(e,t){return v(e)?{state:(e.state==="paused"?e.remainingMs>0:t<=e.dueAt)?"hit":"missed",settledAt:Math.max(t,e.startedAt)}:null}function Qe(e){return v(e)?{state:"void"}:null}function Go(e,t,n,r){if(!v(e)||(e.pauseBits&t)!==0)return null;const i=e.pauseBits|t;return e.state==="paused"?{pauseBits:i}:{pauseBits:i,state:"paused",remainingMs:j(n,e.dueAt,r)}}function Ho(e,t,n,r){if(!v(e)||(e.pauseBits&t)===0)return null;const i=e.pauseBits&~t;return i!==0?{pauseBits:i}:{pauseBits:i,state:"running",dueAt:Z(n,e.remainingMs,r)}}function Wo({event:e,at:t,now:n,clocks:r,profile:i}){const o=Q(i),a=Math.min(t,n),s=r.map(p=>({...p})),c=[],m=(p,f)=>{f&&(c.push({op:"patch",clockId:p.id,patch:f}),Object.assign(p,f))},h=p=>{for(const f of s)f.metric===p&&m(f,Bo(f,a))},E=p=>{for(const f of s)p.includes(f.metric)&&m(f,Qe(f))},O=p=>{for(const f of s)m(f,Go(f,p,a,o))},M=p=>{for(const f of s)m(f,Ho(f,p,a,o))},oe=p=>s.reduce((f,T)=>T.metric===p?Math.max(f,T.attempt):f,0)+1,D=p=>s.some(f=>f.metric===p&&v(f)),x=(p,f)=>{const T=i.targets.find(Sr=>Sr.metric===p);if(!T)return;const Ge=T.minutes*Ko;c.push({op:"start",metric:p,attempt:oe(p),startedAt:f,targetMs:Ge,dueAt:Z(f,Ge,o)})};switch(e){case"apply":{for(const p of s)p.profileId!==i.id&&m(p,Qe(p));for(const p of i.targets){if(p.metric==="next_response")continue;s.some(T=>T.metric===p.metric&&T.profileId===i.id)||x(p.metric,a)}break}case"answered":h("speed_of_answer");break;case"outbound":{h("first_response"),h("next_response"),i.pauseOn.includes("waiting_for_customer")&&O(X);break}case"inbound":{M(X),!D("first_response")&&!D("next_response")&&x("next_response",a);break}case"resolved":h("resolution");break;case"closed":h("close"),h("resolution"),E(In);break;case"reopened":D("resolution")||x("resolution",a),D("close")||x("close",a);break;case"snoozed":i.pauseOn.includes("snoozed")&&O(Y);break;case"unsnoozed":M(Y);break;case"discarded":E(Fo);break}return c}function On(e){return e.state==="running"||e.state==="paused"}function z(e,t){const n=Q(e);return e.state==="paused"?e.remainingMs:t>=e.dueAt?-j(e.dueAt,t,n):j(t,e.dueAt,n)}function Vo(e,t){return e.state==="paused"?Z(t,e.remainingMs,Q(e)):e.dueAt}function jo(e,t){const n=e.filter(On);if(!n.length)return;const r=n.filter(o=>o.state==="running");return(r.length?r:n).reduce((o,a)=>z(a,t)<z(o,t)?a:o)}function Yo(e,t){if(e.state==="missed")return"breached";if(e.state==="hit")return"met";if(e.state==="paused")return"paused";if(e.state==="void")return"met";const n=z(e,t);return n<=0?"breached":n<=e.targetMs/5?"urgent":"running"}function Xo(e){const t=Math.floor(Math.abs(e)/1e3),n=Math.floor(t/86400),r=Math.floor(t%86400/3600),i=Math.floor(t%3600/60);return n?r?`${n}d ${r}u`:`${n}d`:r?i?`${r}u ${i}m`:`${r}u`:i?`${i}m`:`${t%60}s`}const Mn="strategy_item";function xe(e){return`${Mn}:${e}`}function zo(e,t=25){const n=new Set([xe(e.id)]);for(const r of e.ancestorKeys??[])n.add(r);return Array.from(n).slice(0,t)}function qo(e){return e?[...e.ancestorKeys??[],xe(e.id)]:[]}const ee=[{key:"area",label:"level_area",order:10,measurable:!1,icon:"compass"},{key:"objective",label:"level_objective",order:20,measurable:!0,icon:"target"},{key:"key_result",label:"level_key_result",order:30,measurable:!0,icon:"gauge"}],Rn=999,Cn=7;function wn(e,t=ee){return t.find(n=>n.key===e)}function Te(e,t=ee){return wn(e,t)?.order??Rn}function Jo(e,t,n=ee){return Te(t,n)<=Te(e,n)}function Zo(e){const t=e.trim().toLowerCase();return t?t.includes("key result")||t.includes("keyresult")||t==="kr"?"key_result":t.includes("objective")||t.includes("goal")||t.includes("doel")?"objective":t.includes("focus")||t.includes("area")||t.includes("theme")?"area":null:null}const be={pending:"open",on_track:"open",at_risk:"open",off_track:"open",paused:"paused",achieved:"closed",missed:"closed"};function Qo(e){return be[e]??"open"}function ea(e){return Object.keys(be).filter(t=>e.includes(be[t]))}const ta=864e5,te=e=>e<=0?0:e>1?1:e;function na(e,t){const{direction:n}=e,r=e.startValue??0,i=e.targetValue??0;return Number.isFinite(t)?i===r?(n==="down"?t<=i:t>=i)?1:0:te((t-r)/(i-r)):0}function ra(e,t){const{startDate:n,targetDate:r}=e;if(!(typeof n!="number"||typeof r!="number")&&!(r<=n))return te((t-n)/(r-n))}const Nn=.1,kn=.25;function ia(e,t){if(typeof e!="number"||typeof t!="number")return;if(e>=1)return"achieved";const n=t-e;return n>=kn?"off_track":n>=Nn?"at_risk":"on_track"}function oa(e,t){if(t)return te(e/t)}function aa(e){const t=e.map(n=>n.progress?.ratio).filter(n=>typeof n=="number"&&Number.isFinite(n));if(t.length)return te(t.reduce((n,r)=>n+r,0)/t.length)}function sa(e,t){const n=e.lastCheckInAt??e.createdAt;if(typeof n!="number")return 0;const r=(e.checkInEveryDays??Cn)*ta,i=t-n-r;return i>0?i:0}function ca(e){return e.targetDate??Number.MAX_SAFE_INTEGER}function la(e,t){const n=e.accumulatedSeconds||0;return e.runningSince?n+Math.max(0,Math.floor((t-e.runningSince)/1e3)):n}function ua(e,t){const n=Math.max(1,Math.ceil(Math.max(0,e)/60));if(!t||t==="exact")return n*60;const r=Number(t);return!Number.isFinite(r)||r<=0?n*60:Math.ceil(n/r)*r*60}function da(e){const t=Math.max(0,Math.round(e/60));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}function pa(e){const t=Math.max(0,Math.floor(e)),n=o=>String(o).padStart(2,"0"),r=Math.floor(t/60)%60,i=Math.floor(t/3600);return i>0?`${i}:${n(r)}:${n(t%60)}`:`${n(r)}:${n(t%60)}`}function vn(e){return(e||"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").slice(0,48).replace(/^-+|-+$/g,"")}function fa(e,t){const n=vn(e)||"werksoort",r=new Set(t);if(!r.has(n))return n;for(let i=2;i<500;i++){const o=`${n}-${i}`;if(!r.has(o))return o}return`${n}-${r.size+1}`}function ma(e,t){const n=e.ownerScope;return!n||n.kind==="org"?!0:t.includes(n.teamId)}function ga(e){return e.filter(t=>!t.archived).sort(Dn)}function Dn(e,t){const n=(e.order??0)-(t.order??0);return n!==0?n:(e.label||"").localeCompare(t.label||"")}const xn=20,Ln=20,B=300;function I(e){return e.toLowerCase().replace(/[^\p{L}\p{N}\s]/gu," ").replace(/\s+/g," ").trim()}function Pn(e){const t=e.replace(/\s+/g," ").trim();if(t.length<=B)return t;const n=t.slice(0,B),r=Math.max(n.lastIndexOf(". "),n.lastIndexOf("! "),n.lastIndexOf("? "));return r>B*.6?n.slice(0,r+1):`${n.trimEnd()}…`}function ha(e,t){const n=Pn(t.text),r=I(n);if(!r||(e.examples??[]).some(a=>I(a)===r))return null;const i=e.exampleCandidates??[],o=i.findIndex(a=>I(a.text)===r);if(o>=0){if(i[o].corrected||!t.corrected)return null;const a=[...i];return a[o]={...a[o],corrected:!0,addedAt:t.addedAt},et(a)}return et([{...t,text:n},...i]).slice(0,Ln)}function et(e){return[...e].sort((t,n)=>Number(n.corrected)-Number(t.corrected)||n.addedAt-t.addedAt)}function Ea(e,t){const n=I(t),r=(e.examples??[]).filter(o=>o.trim());return{examples:r.some(o=>I(o)===n)?r:[...r,t].slice(-xn),exampleCandidates:Un(e,t)}}function Un(e,t){const n=I(t);return(e.exampleCandidates??[]).filter(r=>I(r.text)!==n)}function $n(e,t){const n=e.ownerScope;return n?n.kind==="org"?!0:n.kind==="team"?!!t&&n.teamId===t:!1:!1}function Aa(e,t){return e.filter(n=>$n(n,t))}function ya(e){return e.type==="agent"}const _a="WORK_COMMENT_ADDED",Sa="WORK_ITEM_ASSIGNED",Ta="WORK_ITEM_STATUS_CHANGED";function ba(e,t){const n=r=>{const i=new Date(r);return i.setHours(0,0,0,0),i.getTime()};return Math.round((n(e)-n(t))/xt)}function Ia(e,t){if(e.closedAt!=null)return{score:b,reasons:[]};const n=t.remindersById?.[e.id];if(n&&n.remindAt>t.now)return{score:b,reasons:[]};let r=0;const i=[],o=e.priority??"normal";if(w[o]>0&&(r+=w[o],i.push(`priority:${o}`)),typeof e.dueDate=="number"){const a=ba(e.dueDate,t.now);a<0?(r+=35,i.push("overdue")):a===0&&(r+=20,i.push("due-today"))}return e.source?.initiator==="system"&&e.source.systemReason&&(r+=15,i.push(`auto:${e.source.systemReason}`)),{score:r,reasons:i}}const ne=[{key:"task",label:"type_task"},{key:"bug",label:"type_bug"},{key:"story",label:"type_story"},{key:"epic",label:"type_epic"},{key:"subtask",label:"type_subtask"},{key:"case",label:"type_case"},{key:"deal",label:"type_deal"}],Oa=ne.map(e=>e.key);function Ma(e){return e?.types?.length?e.types:ne}function Ra(e,t){return t.find(n=>n.key===e)}function Ca(e){const t=e.trim().toLowerCase();return t?t.includes("sub-task")||t.includes("subtask")||t.includes("sub task")?"subtask":t.includes("bug")||t.includes("defect")?"bug":t.includes("epic")?"epic":t.includes("story")?"story":t.includes("incident")||t.includes("problem")||t.includes("service request")||t.includes("change")?"case":t.includes("task")?"task":null:null}function wa(...e){return e.map(t=>ne.find(n=>n.key===t)).filter(t=>!!t)}const Kn="work_item",Fn="work_project",Bn="work_activity",Na="work_cycle";function Gn(e){return`${Kn}:${e}`}function Le(e){return`${Fn}:${e}`}function ka(e){return`${Bn}:${e}`}function va(e,t,n){const r=`${e}-${t}`;return n?`${r}-${n}`:r}function Da(e){const t=/^([A-Za-z0-9]{2,8})-(\d+)(?:-(\d+))?$/.exec((e||"").trim());return t?{projectKey:t[1].toUpperCase(),sequenceNumber:Number(t[2]),...t[3]?{subSequence:Number(t[3])}:{}}:null}function xa(e){return(e||"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase().replace(/[^A-Z0-9]/g,"").slice(0,3)||"PRJ"}function La(e,t=25){const n=new Set([Gn(e.id)]);e.projectId&&n.add(Le(e.projectId));for(const r of e.ancestorKeys??[])n.add(r);for(const r of e.partyKeys??[])n.add(r);return Array.from(n).slice(0,t)}function Pa(e){return[Le(e.id)]}const re=[{key:"open",label:"status_open",category:"todo",order:0},{key:"in_progress",label:"status_in_progress",category:"in_progress",order:1},{key:"done",label:"status_done",category:"done",order:2},{key:"cancelled",label:"status_cancelled",category:"done",order:3}],Pe=re.map(e=>e.key);function Hn(e){return e?.statuses?.length?e.statuses:re}function Wn(e,t){return t.find(n=>n.key===e)?.category??"todo"}function Ua(e,t){return t.find(n=>n.key===e)}function $a(e){const t=Hn(e),n=e?.defaultStatusKey;return n&&t.some(r=>r.key===n)?n:Vn(t)[0]?.key??re[0].key}function Vn(e){return[...e].sort((t,n)=>{const r=(t.order??0)-(n.order??0);return r!==0?r:(t.label||"").localeCompare(n.label||"")})}function Ka(e,t){return Wn(e,t)==="done"}function jn(e){return(e||"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").slice(0,48).replace(/^-+|-+$/g,"")}function Fa(e,t){const n=jn(e)||"status",r=new Set([...t,...Pe]);if(!r.has(n))return n;for(let i=2;i<500;i++){const o=`${n}-${i}`;if(!r.has(o))return o}return`${n}-${r.size+1}`}function Ba(e){const t=[];if(!e.length)return[{index:-1,reason:"empty"}];const n=new Set;return e.forEach((r,i)=>{if(!r.key){t.push({index:i,reason:"missing_key"});return}Pe.includes(r.key)&&t.push({index:i,reason:"reserved_key",key:r.key}),n.has(r.key)&&t.push({index:i,reason:"duplicate_key",key:r.key}),n.add(r.key)}),e.some(r=>r.category==="todo"||r.category==="in_progress")||t.push({index:-1,reason:"no_open"}),e.some(r=>r.category==="done")||t.push({index:-1,reason:"no_done"}),t}function Ga(e){return e.startDate??Number.MAX_SAFE_INTEGER}function Ha(e){return e.completedAt?"completed":e.startedAt?"active":"planned"}const Wa=new Set(["image/png","image/jpeg","image/jpg","image/gif","image/webp"]),Va=new Set(["text/plain","text/markdown","text/csv","application/json","text/html","application/xml","text/xml"]);function Yn(e){const t=(e??"").trim().toLowerCase().split(";")[0];return t?Wa.has(t)?"image":t==="application/pdf"?"pdf":Va.has(t)?"text":t.startsWith("audio/")?"audio":"unsupported":"unsupported"}const R=1024*1024,Xn={image:5*R,pdf:20*R,text:1*R,audio:20*R},ja=25*R,Ya=5;function Xa(e,t){const n=Yn(e);return n==="unsupported"?"unsupported":t>Xn[n]?"too-large":null}function za(e){return e.access!=="read"&&e.effect!=="internal"}function zn(e){return`${e.kind}:${e.id||e.url||e.title}`}function qa(e,t=[]){const n=new Set(t),r=[],i=[];for(const o of e){const a=zn(o);n.has(a)||(n.add(a),r.push(o),i.push(a))}return{sources:r,keys:i}}const Ja="assist-source",Za=["blocking","due","open"];function Qa(e,t){const[n,r]=(e.subjectKey??"").split(":");return n===t&&r?r:void 0}const tt={blocking:0,due:1,open:2};function es(e,t){return tt[e.band??"open"]-tt[t.band??"open"]||(t.priority??0)-(e.priority??0)||e.id.localeCompare(t.id)}function ts(e){return e.sessions.filter(t=>t.id!==e.exceptSessionId&&t.state==="connected"&&e.canHold(t.providerId))}function ns(e){return e.sessions.filter(t=>t.id!==e.exceptSessionId&&t.state==="connected"&&!e.canHold(t.providerId))}function rs(e){return e.sessions.some(n=>n.id!==e.exceptSessionId&&(n.state==="connected"||n.state==="on_hold"))?{admit:!1,reason:"busy"}:{admit:!0}}function qn(e,t){const n=new Set(e.disabledIntents??[]),r=e.intentOverrides??{},i=t.intents.filter(a=>!n.has(a.intent)).map(a=>os(a,r[a.intent]));if(!e.extraIntents||e.extraIntents.length===0)return i;const o=new Set(i.map(a=>a.intent));for(const a of e.extraIntents)o.has(a.intent)||(i.push(a),o.add(a.intent));return i}function Jn(e,t){const n={};for(const r of e.intents){if(!r.togglable)continue;const i=t?.[r.intent];n[r.intent]=i??r.defaultEnabled??!0}return n}function is(e,t){const n=Jn(e,t);return Object.entries(n).filter(([,r])=>!r).map(([r])=>r)}function os(e,t){return t?{intent:t.intent??e.intent,targetSchemes:t.targetSchemes??e.targetSchemes,transport:t.transport??e.transport}:e}function as(e,t){const n=[];for(const r of e){if(!r.enabled)continue;const i=t[r.providerId];if(i)for(const o of qn(r,i))n.push({channel:r,description:i,capability:o})}return n}function ss(e,t){return t.filter(n=>n.capability.intent===e)}function Zn(e,t){return t.filter(n=>n.capability.targetSchemes.includes(e))}function cs(e,t){return Zn(e.scheme,t)}function ls(e,t,n){const r=[];for(const i of e)for(const o of n)o.capability.intent===t&&o.capability.targetSchemes.includes(i.scheme)&&r.push({channelIntent:o,endpoint:i});return r}var Qn=(e=>(e.MAILTO="mailto",e.SIP="sip",e.TEL="tel",e.WEBHOOK="webhook",e.USERNAME="username",e.ID="id",e.CUSTOM="custom",e.URL="url",e.TELEGRAM="telegram",e.WHATSAPP="whatsapp",e.MESSENGER="messenger",e.INSTAGRAM="instagram",e.VIBER="viber",e.SMS="sms",e.FAX="fax",e.TEAMS="teams",e.CALENDAR="calendar",e))(Qn||{});const us={mailto:"mail",sip:"tel",tel:"tel",fax:"tel",sms:"chat",teams:"chat",telegram:"chat",messenger:"chat",instagram:"chat",viber:"chat",whatsapp:"wa",webhook:"note",url:"note",calendar:"note",username:"note",id:"note",custom:"note"};function ds(e){return e?us[e]??"note":"note"}const ps="message_window",fs="message_templates",ms={FROM:"from",TO:"to",CC:"cc",BCC:"bcc",ORGANIZER:"organizer",PRESENTER:"presenter",ATTENDEE:"attendee",OWNER:"owner",MEMBER:"member",GUEST:"guest",HOST:"host",PARTICIPANT:"participant"},gs=(e,t)=>({intent:e,...t}),hs="folder_management",Es="remote_search",As="message_reactions",ys={ok:!1,code:"UNSUPPORTED",message:"Provider does not support this op"},_s="connector",Ss="context.collect",d=e=>({type:"string",description:e}),u=e=>({type:"number",description:e}),G=e=>({type:"boolean",description:e}),_=d("Sheet name. Omit for the sheet the user is looking at."),nt=d("Slide id, as `inspect` reports it.");function l(e,t,n,r,i,o){return{op:e,kinds:t,summary:n,parameters:{type:"object",properties:r,required:i},undoable:o.undoable,visible:o.visible}}const C={undoable:!1,visible:!0},g={undoable:!0,visible:!0},rt={undoable:!1,visible:!0},q={undoable:!1,visible:!1},Ts=[l("pdf.goToPage",["pdf"],"Scroll the viewer to a page.",{page:u("1-based page number.")},["page"],C),l("pdf.search",["pdf"],"Search the document and highlight the matches, as the find bar does.",{query:d("Text to find."),next:G("Jump to the next match instead of the first.")},["query"],C),l("pdf.setTool",["pdf"],"Select a markup tool for the user, so their next click draws it.",{tool:{type:"string",enum:["highlight","text","draw","image","signature","none"],description:"Which tool to arm. `none` puts the tool row back to reading."}},["tool"],C),l("pdf.fillField",["pdf"],"Fill one form field of a fillable PDF.",{field:d("Field name, exactly as `inspect` reports it under `fields`."),value:{type:["string","boolean"],description:"Text for a text field, true/false for a checkbox or radio."}},["field","value"],g),l("pdf.reorderPages",["pdf"],"Put the pages in a different order. Pages left out are deleted.",{order:{type:"array",items:{type:"number"},description:"1-based source page numbers, in the order they should end up in."}},["order"],rt),l("pdf.deletePages",["pdf"],"Remove pages, keeping the rest in order.",{pages:{type:"array",items:{type:"number"},description:"1-based page numbers."}},["pages"],rt),l("pdf.addNote",["pdf"],"Place a text note on a page. Written on save; not visible before that.",{page:u("1-based page number."),text:d("The note's text."),left:u("Distance from the left edge, in PDF points (72 per inch)."),top:u("Distance from the top edge, in PDF points."),width:u("Box width in points. Omit for a sensible default."),height:u("Box height in points. Omit for a sensible default."),fontSize:u("Font size in points. Omit for 12.")},["page","text","left","top"],q),l("pdf.highlightText",["pdf"],"Highlight a phrase on a page. Written on save; not visible before that.",{page:u("1-based page number."),text:d("The exact phrase to highlight, as it appears in the page's text."),occurrence:u("Which occurrence on that page, 1-based. Omit for the first.")},["page","text"],q)],bs=[l("sheet.setValues",["sheet"],"Write a block of values. The block's shape must match the range.",{sheet:_,range:d("A1 notation, e.g. `B2:D5` or a single `A1`."),values:{type:"array",items:{type:"array",items:{type:["string","number","boolean","null"]}},description:"Rows of cells, top-left first. `null` clears a cell."}},["range","values"],g),l("sheet.setFormula",["sheet"],"Put a formula in every cell of a range.",{sheet:_,range:d("A1 notation."),formula:d("Including the leading `=`.")},["range","formula"],g),l("sheet.setStyle",["sheet"],"Change the look of a range. Only the properties you pass are touched.",{sheet:_,range:d("A1 notation."),bold:G("Bold on or off."),italic:G("Italic on or off."),fontSize:u("Point size."),fontColor:d("CSS colour, e.g. `#b91c1c`."),background:d("CSS colour for the cell fill."),horizontalAlignment:{type:"string",enum:["left","center","right"],description:"Horizontal alignment."},numberFormat:d("Number format pattern, e.g. `#,##0.00` or `0%`.")},["range"],g),l("sheet.insertRows",["sheet"],"Insert empty rows, pushing the rest down.",{sheet:_,at:u("1-based row number to insert before."),count:u("How many. Omit for 1.")},["at"],g),l("sheet.deleteRows",["sheet"],"Delete rows, pulling the rest up.",{sheet:_,at:u("1-based first row to delete."),count:u("How many. Omit for 1.")},["at"],g),l("sheet.insertColumns",["sheet"],"Insert empty columns, pushing the rest right.",{sheet:_,at:u("1-based column number to insert before."),count:u("How many. Omit for 1.")},["at"],g),l("sheet.deleteColumns",["sheet"],"Delete columns, pulling the rest left.",{sheet:_,at:u("1-based first column to delete."),count:u("How many. Omit for 1.")},["at"],g),l("sheet.merge",["sheet"],"Merge a range into one cell.",{sheet:_,range:d("A1 notation.")},["range"],g),l("sheet.unmerge",["sheet"],"Break merged cells in a range apart.",{sheet:_,range:d("A1 notation.")},["range"],g),l("sheet.sort",["sheet"],"Sort a range on one of its columns.",{sheet:_,range:d("A1 notation covering the rows to sort, header excluded."),column:u("1-based column *within the range*, not within the sheet."),ascending:G("Ascending. Omit for ascending.")},["range","column"],g),l("sheet.insertSheet",["sheet"],"Add a new sheet.",{name:d("Name for the new sheet.")},["name"],g),l("sheet.renameSheet",["sheet"],"Rename a sheet.",{sheet:d("Current name."),name:d("New name.")},["sheet","name"],g),l("sheet.deleteSheet",["sheet"],"Remove a sheet and everything on it.",{sheet:d("Name of the sheet to delete.")},["sheet"],g),l("sheet.activate",["sheet"],"Show the user a sheet and select a range on it.",{sheet:_,range:d("A1 notation to select. Omit to only switch sheets.")},[],C)],Is=[l("word.replaceParagraph",["word"],"Rewrite one whole paragraph, keeping its style. This is the verb for shortening or rephrasing something; call it once per paragraph.",{at:u("The offset the paragraph starts at, exactly as `inspect` prints it."),text:d("The new text for that paragraph. A newline starts a further paragraph.")},["at","text"],g),l("word.replaceRange",["word"],"Replace a stretch of text inside a paragraph - a sentence, a phrase. To rewrite whole paragraphs use word.replaceParagraph: a range covering several paragraph styles is refused, because a replacement carries one style and would set the whole span in the first.",{start:u("Character offset where the replaced text starts, as `inspect` reports offsets."),end:u("Character offset just past the last character to replace."),text:d("The replacement text. A newline starts a new paragraph.")},["start","end","text"],g),l("word.insertText",["word"],"Insert text at a character offset, without removing anything.",{index:u("Character offset, as `inspect` reports offsets."),text:d("The text to insert.")},["index","text"],g),l("word.appendText",["word"],"Add text at the end of the document.",{text:d("The text to append.")},["text"],g),l("word.insertParagraph",["word"],"Start a new paragraph, optionally with text in it.",{text:d("Paragraph text. Newlines start further paragraphs."),index:u("Character offset to insert at. Omit for the end of the document.")},[],g),l("word.setSelection",["word"],"Put the user's cursor on a stretch of text, and move the reading window there: the page context carries one window of a long document, and the text around this offset arrives in the next turn.",{start:u("Start character offset."),end:u("End character offset. Omit for a caret.")},["start"],C)],Os=[l("slides.setText",["slides"],"Replace the text of one shape. Written on save; not visible before that, and not undoable.",{slide:nt,element:d("Element id, as `inspect` reports it."),text:d("The new text.")},["slide","element","text"],q),l("slides.setTransform",["slides"],"Move or resize one shape. Only the values you pass change. Written on save; not visible before that, and not undoable.",{slide:nt,element:d("Element id."),left:u("Distance from the left edge, in pixels."),top:u("Distance from the top edge, in pixels."),width:u("Width in pixels."),height:u("Height in pixels.")},["slide","element"],q)],Ue=[...Ts,...bs,...Is,...Os];function Ms(e){return Ue.filter(t=>t.kinds.includes(e))}function Rs(e){return Ue.find(t=>t.op===e)}const Cs="documents.describe",ws="documents.inspect",Ns="documents.apply";function ks(e){const t=e.indexOf(":");if(t!==-1)return e.slice(0,t);const n=e.indexOf(".");return n===-1?e:e.slice(0,n)}const vs="installation-id";function Ds(e){const t=[];for(const n of Object.keys(e))for(const r of Object.keys(e[n]))t.push({lang:n,key:r,value:e[n][r]});return t}const xs="notification-source",Ls=(e,t)=>`${e}.pref.${t}`,Ps={ai:["account.read","account.write","agent.read","agent.write","assignment.read","assignment.write","budget.read","budget.write","connector.read","connector.write","context.read","context.write","conversation.read","conversation.write","lens.read","lens.write","message.read","message.write","playbook.read","playbook.write","profile.read","profile.write","run.read","run.write","settings.read","settings.write","tool.read","transcript.write","usage.read"],analytics:["report.read"],"app-store":["app.publish","app.read","app.write","setting.read","setting.write"],assist:["board.read"],automations:["sync.read","sync.write","webhook.read","webhook.write"],communication:["account.read","account.write","activity-type.read","activity.read","activity.write","attachment.read","attribute.read","attribute.write","calendar.read","calendar.write","channel.read","channel.write","custom-field.read","custom-field.write","folder.read","folder.write","inbox.read","inbox.write","interaction.read","interaction.write","reaction.read","reaction.write","reminder.read","template.read","template.write","topic.read","topic.write"],context:["kind.read","kind.write","memory.read","memory.write"],crm:["company.read","company.write","contact.read","contact.write"],"eylo-voip":["account.read","account.write","callflow.read","callflow.write","channel.read","channel.write","contact.read","contact.write","device.read","device.write","group.read","group.write","interaction.read","interaction.write","media.read","media.write","menu.read","menu.write","phone-number.read","phone-number.write","recording.read","recording.write","sip.read","temporal-rule.read","temporal-rule.write","user.read","user.write","vmbox.read","vmbox.write","webhook.read","webhook.write"],google:["account.read","account.write","contact.read"],kb:["article.read","article.write","category.read","category.write","help-center.read","help-center.write","kb.read","kb.write"],mail:["account.write"],meta:["account.read","account.write"],microsoft:["account.read","account.write","contact.read","sync.write"],organization:["billing.read","billing.write","settings.read","settings.write","team.read","team.write"],shopify:["account.read","account.write","order.read"],slack:["thread.read","thread.write"],storage:["artifact.read","artifact.write","file.read","file.write","mount.read","mount.write"],time:["entry.read","entry.write","work-type.read","work-type.write"],user:["user.read","user.write"],work:["item.read","item.write","project.read","project.write"]},$e=9e4,er=["out_of_office"],tr=e=>er.includes(e);function Us(e,t,n){const r=n-e<$e,i=t?.status&&(!t.expiresAt||t.expiresAt>n)?t:void 0;if(!i?.status)return{online:r,status:r?"available":"offline"};const o=i.status;return!r&&!tr(o)?{online:!1,status:"offline"}:{online:r,status:o,message:i.message}}function $s(e,t){const n=t-e.lastSeenAt<$e,r=n||tr(e.status)?e.status:"offline";return n===e.online&&r===e.status?e:{...e,online:n,status:r}}function Ks(e,t){return e?.teamId&&t.includes(e.teamId)?{teamId:e.teamId,mustChoose:!1}:t.length===1?{teamId:t[0],mustChoose:!1}:{teamId:void 0,mustChoose:t.length>1}}function Fs(e){return e.providerAvailable&&e.allowed}const Bs="resources.describe",Gs="resources.search",Hs="resources.resolve",Ws="resources.attached";function Vs(e){const t=e.indexOf(":");return t===-1?e:e.slice(0,t)}const js="/provider/scope/related",Ys="/provider/scope/read",Ke="auth";function Fe(e){const t=typeof e=="string"?e.match(/apps\/([^/?#]+)/):null;return t?t[1]:null}function Xs(e){const t=Fe(e);return t?t!==Ke:typeof e=="string"&&e.startsWith("/wake")}function zs(e){return typeof e!="string"||e===""||e==="/"?!0:Fe(e)===Ke}function qs(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function nr(e){const n=e.split("/").filter(Boolean).map(r=>r.startsWith(":")?r.endsWith("?")?"(?:/[^/]+)?":"/[^/]+":`/${qs(r)}`).join("");return new RegExp(`^${n}\\/?$`)}function rr(e,t){const n=e.split("/").filter(Boolean),r=t.split("/").filter(Boolean),i={};return n.forEach((o,a)=>{if(o.startsWith(":")){const s=o.endsWith("?")?o.slice(1,-1):o.slice(1),c=r[a];c&&(i[s]=c)}}),i}function ir(e){return e.publicBasePath??`/apps/${e.name}`}function Js(e){const t=[];for(const n of e){if(!n?.name)continue;const r=ir(n);for(const i of n.routes??[]){if(!i.public)continue;const o=i.path==="/"?"":i.path;t.push({appName:n.name,resource:i.resource,pattern:`${r}${o}`,props:i.props})}}return t}function or(e,t){const n=e.split("/").filter(Boolean),r=t.split("/").filter(Boolean);for(let i=0;i<Math.min(n.length,r.length);i++){const o=n[i].startsWith(":"),a=r[i].startsWith(":");if(o!==a)return a}return n.length>r.length}function ar(e,t){if(typeof e!="string")return null;let n=null;for(const r of t)nr(r.pattern).test(e)&&(!n||or(r.pattern,n.pattern))&&(n=r);return n?{...n,params:{...n.props,...rr(n.pattern,e)}}:null}function Zs(e,t){return ar(e,t)!==null}const Qs=10*1024*1024,ec=25*1024*1024,tc="sync-target",nc=20,rc={afrikaans:["[Muziek]","(C) TV GELDERLAND 2021","*Thomp thomp thomp*","www.youtube.com","ä n wood s","!.."],english:["[applause]","[APPLAUSE]","(claps)","(clapping)","(audience applauds)","(keyboard clicking)","(keyboard clacking)","(clicking)","[CLICK]","[BLANK_AUDIO]","(upbeat music)","(dramatic music)","[music playing]","(electronic music)","(audience cheering)","(audience cheers)","[MUSIC]","( ( ( ( ) ( ) ( ) ( )","(laughs)","(air whooshing)","<u>Transcribed</u> by https://otter.ai","All new tonight at 6... coming up. A new look at your forecast is A new look at your forecast is","www.mooji.org","KATHRYN A new forecast is coming up... A new forecast is coming up...","KATHRYN pandemic started. increasing since the The pandemic has been","A new look at your forecast this morning... A new look at your","We'll be right back.","We'll see you next week.","Thanks for watching!","❤️ Translated by Amara.org Communit"],flemish:["*clap*","TV GELDERLAND 2020","TV Gelderland 2021","(C) TV GELDERLAND 2021","[Muziek]","Kuman","Ondertitels ingediend door de Amara.org gemeenschap","Ondertiteld door de Amara.org gemeenschap","Dank u wel voor het kijken.","Ondertiteling door de Amara.org gemeenschap","GELUID VAN MAHIH U similarly"],french:["(applaudissements)","[Applaudissements]","Sous-titres réalisés par la communauté d'Amara.org","- Bonne journée. - Bonjour.","POP POP הי","Merci d'avoir regardé cette vidéo.","Merci d'avoir regardé cette vidéo!","Merci d'avoir regardé la vidéo.","J'espère que vous avez apprécié la vidéo.","Je vous remercie de vous abonner","Merci d'avoir regardé!","❤️ par SousTitreur.com","— Sous-titrage ST'501 —","Thanks for watching!","Sous-titres réalisés par l'Amara.org","Sous-titres réalisés para la communauté d'Amara.org","Sous-titres réalisés par la communauté d'Amara.org","Sous-titres fait par Sous-titres par Amara.org","Sous-titres réalisés par les SousTitres d'Amara.org","Sous-titres par Amara.org","Sous-titres par la communauté d'Amara.org","Sous-titres réalisés pour la communauté d'Amara.org","Sous-titres réalisés par la communauté de l'Amara.org","Sous-Titres faits par la communauté d'Amara.org","Sous-titres par l'Amara.org","Sous-titres fait par la communauté d'Amara.org","Sous-titrage ST' 501","Sous-titrage ST'501","Cliquez-vous sur les sous-titres et abonnez-vous à la chaîne d'Amara.org","❤️ par SousTitreur.com"],german:["[Klicken]","(Jubel)","*lacht*","[Anhaltender Beifall]","[Applaus]","(Applaus)","* Applaus *","[MUSIK]","* mustard ml Drumglöck und knack in einem Handbewerb *","Untertitelung aufgrund der Amara.org-Community","Untertitel im Auftrag des ZDF für funk, 2017","Untertitel von Stephanie Geiges","Untertitel der Amara.org-Community","Untertitel im Auftrag des ZDF, 2017","Untertitel im Auftrag des ZDF, 2020","Untertitel im Auftrag des ZDF, 2018","Untertitel im Auftrag des ZDF, 2021","Untertitelung im Auftrag des ZDF, 2021","Copyright WDR 2021","Copyright WDR 2020","Copyright WDR 2019","SWR 2021","SWR 2020"],italian:["Alla prossima!","*applauso*","[Musica]","[Musica]","[Applausi]","*Bip bip bip bip*","(musica del NS shore)","D' 1962 alle tribunte del Gulf","Sottotitoli creati dalla comunità Amara.org","Sottotitoli di Sottotitoli di Amara.org","Sottotitoli e revisione al canale di Amara.org","Sottotitoli e revisione a cura di Amara.org","Sottotitoli e revisione a cura di QTSS","Sottotitoli e revisione a cura di QTSS.","Sottotitoli a cura di QTSS","Sottotitoli a cura di Sottotitoli"],spanish:["[música]","[Música de cierre]","[Aplausos]","(Aplausos)","www.alimmenta.com","¡Gracias por ver el vídeo!","(sonidos del celular) (Inudible distorsión)","¡Suscríbete!","Subtítulos realizados por la comunidad de Amara.org","Subtitulado por la comunidad de Amara.org","Subtítulos por la comunidad de Amara.org","Subtítulos creados por la comunidad de Amara.org","Subtítulos en español de Amara.org","Subtítulos hechos por la comunidad de Amara.org","Subtitulos por la comunidad de Amara.org","Más información www.alimmenta.com","www.mooji.org","[MÚSICA]","[Music cuts in British]"]},sr=e=>{let t=e;return Object.values(rc).forEach(n=>{n.forEach(r=>{t=t.replaceAll(r,"")})}),t=t.replace(/\(.*?\)/g,""),t=t.replace(/\[.*?\]/g,""),t},cr=6e4,lr=8e3,ur=2,dr=.4,ic=3,oc=new Set(["aan","als","ben","bent","bij","dan","dat","deze","die","dit","doen","door","dus","echt","een","eens","even","gaan","gaat","geen","geweest","goed","graag","had","heb","hebben","hebt","heeft","het","hier","hoe","hoor","iets","inderdaad","kan","klopt","kunnen","kunt","maar","mag","mee","meer","met","mij","mijn","misschien","moet","moeten","naar","net","niet","nog","nou","oke","ook","over","prima","toch","uhm","uit","van","veel","voor","wat","weer","weet","wel","wij","wil","wilt","worden","wordt","zeg","zeggen","zijn","zou","zult","about","and","are","been","but","can","does","for","have","just","know","like","not","okay","right","she","that","the","them","then","there","they","this","want","was","well","were","what","will","with","would","yeah","you","your"]);function pr(e){const t=new Set;for(const n of e.toLowerCase().split(/[^a-z0-9À-ɏ]+/))n.length<ic||oc.has(n)||t.add(n);return[...t]}function fr(e,t){if(!e.length)return 0;if(!t.length)return 1;const n=new Set(t),r=new Set(e);let i=0;for(const o of r)n.has(o)||(i+=1);return i/r.size}function mr(e,t=cr){const n=e.filter(a=>!a.partial&&typeof a.text=="string");if(!n.length)return{text:"",segmentCount:0};const i=n.reduce((a,s)=>Math.max(a,s.endedAt??0),0)-t;return{text:n.filter(a=>(a.endedAt??0)>=i).map(a=>sr(a.text).trim()).filter(Boolean).join(" ").replace(/\s+/g," ").trim(),segmentCount:n.length}}const gr=60;function ac(e,t,n=gr){const r=new Set(e),i=[...e];for(const o of t)!o||r.has(o)||(r.add(o),i.push(o));return i.slice(-n)}function sc(e){const{segments:t,now:n,state:r}=e;if(r.lastTriggerAt&&n-r.lastTriggerAt<lr)return{trigger:!1,reason:"too_soon"};const i=mr(t,e.windowMs);if(!i.text)return{trigger:!1,reason:"no_speech"};const o=i.segmentCount-(r.lastSegmentCount??0);if(r.lastQueryTerms&&o<ur)return{trigger:!1,reason:"too_few_new"};const a=pr(i.text);return a.length?r.lastQueryTerms?.length&&fr(a,r.lastQueryTerms)<dr?{trigger:!1,reason:"same_topic"}:{trigger:!0,text:i.text,terms:a,segmentCount:i.segmentCount}:{trigger:!1,reason:"no_speech"}}const cc=["personal","workspace","connections","work","ai"],lc="navNotice",ie={NL:{callingCode:"31",trunkPrefix:"0",nsnMin:7,nsnMax:9},BE:{callingCode:"32",trunkPrefix:"0",nsnMin:8,nsnMax:9},LU:{callingCode:"352",nsnMin:6,nsnMax:9},DE:{callingCode:"49",trunkPrefix:"0",nsnMin:6,nsnMax:13},FR:{callingCode:"33",trunkPrefix:"0",nsnMin:9,nsnMax:9},GB:{callingCode:"44",trunkPrefix:"0",nsnMin:9,nsnMax:10},IE:{callingCode:"353",trunkPrefix:"0",nsnMin:7,nsnMax:9},ES:{callingCode:"34",nsnMin:9,nsnMax:9},PT:{callingCode:"351",nsnMin:9,nsnMax:9},IT:{callingCode:"39",nsnMin:6,nsnMax:11},AT:{callingCode:"43",trunkPrefix:"0",nsnMin:7,nsnMax:13},CH:{callingCode:"41",trunkPrefix:"0",nsnMin:9,nsnMax:9},DK:{callingCode:"45",nsnMin:8,nsnMax:8},SE:{callingCode:"46",trunkPrefix:"0",nsnMin:7,nsnMax:13},NO:{callingCode:"47",nsnMin:8,nsnMax:8},FI:{callingCode:"358",trunkPrefix:"0",nsnMin:5,nsnMax:12},PL:{callingCode:"48",nsnMin:9,nsnMax:9},US:{callingCode:"1",nsnMin:10,nsnMax:10},CA:{callingCode:"1",nsnMin:10,nsnMax:10}},hr="NL",uc=15,dc=8,pc=Array.from(new Set(Object.values(ie).map(e=>e.callingCode))).sort((e,t)=>t.length-e.length);function it(e){if(e)return ie[e.trim().toUpperCase()]}function H(e,t){return e.length>=t.nsnMin&&e.length<=t.nsnMax}function ot(e){if(e.length>uc)return null;for(const t of pc){if(!e.startsWith(t))continue;const n=e.slice(t.length);for(const r of Object.values(ie)){if(r.callingCode!==t)continue;const i=r.trunkPrefix,o=i&&n.startsWith(i)?n.slice(i.length):n;if(H(o,r))return`+${t}${o}`}return null}return e.length<dc?null:`+${e}`}function fc(e){let t=e.trim();const n=t.match(/^(sips?|tel|whatsapp):/i);n&&(t=t.slice(n[0].length));const r=t.indexOf("@");return r>=0&&(t=t.slice(0,r)),t.trim()}function mc(e){if(!e)return!1;const t=e.indexOf("@");if(t<=0)return!1;const n=e.slice(0,t).trim();return!/^[+\d\s().-]+$/.test(n)}function Ie(e,t){if(!e)return null;const n=fc(e);if(!n)return null;const r=n.startsWith("+"),i=n.replace(/\D/g,"");if(!i)return null;if(r)return ot(i);if(i.startsWith("00"))return ot(i.slice(2));const o=it(t)??it(hr);if(!o)return null;const a=o.trunkPrefix;if(a&&i.startsWith(a)){const s=i.slice(a.length);return H(s,o)?`+${o.callingCode}${s}`:null}if(i.startsWith(o.callingCode)){const s=i.slice(o.callingCode.length);if(H(s,o))return`+${o.callingCode}${s}`}return!a&&H(i,o)?`+${o.callingCode}${i}`:null}function gc(e,t=9){const n=(e??"").replace(/\D/g,"");return n.length<t?null:n.slice(-t)}function Be(e){if(!e)return null;const t=e.trim().toLowerCase(),n=t.lastIndexOf("@");if(n<=0||n===t.length-1)return null;const r=t.slice(0,n).split("+")[0],i=t.slice(n+1);return!r||!i.includes(".")?null:`${r}@${i}`}function hc(e){const t=Be(e);return t?t.slice(t.lastIndexOf("@")+1):null}const Ec=new Set(["co.uk","org.uk","gov.uk","ac.uk","com.au","co.nz","com.br","co.za"]);function Er(e){if(!e)return null;const t=e.trim().toLowerCase().replace(/\.$/,"").split(".").filter(Boolean);if(t.length<2)return null;const n=t.slice(-2).join(".");return Ec.has(n)&&t.length>=3?t.slice(-3).join("."):n}const Ar=new Set(["gmail.com","googlemail.com","outlook.com","hotmail.com","hotmail.nl","hotmail.be","hotmail.co.uk","live.com","live.nl","live.be","msn.com","yahoo.com","yahoo.co.uk","ymail.com","icloud.com","me.com","mac.com","aol.com","gmx.net","gmx.de","web.de","protonmail.com","proton.me","pm.me","tutanota.com","zoho.com","mail.com","ziggo.nl","kpnmail.nl","planet.nl","home.nl","casema.nl","chello.nl","xs4all.nl","telfort.nl","hetnet.nl","zonnet.nl","upcmail.nl","quicknet.nl","telenet.be","skynet.be","proximus.be","scarlet.be"]);function Ac(e){const t=Er(e);return t?Ar.has(t):!1}function yc(e){if(!e)return!1;const t=e.trim().toLowerCase();return t==="tel"||t==="sms"||t==="whatsapp"||t==="fax"}function _c(e,t,n){if(!e||!t)return null;const r=e.trim().toLowerCase();if(r==="tel"||r==="sms"||r==="whatsapp"){const o=Ie(t,n);return o?`tel:${o}`:null}if(r==="fax"){const o=Ie(t,n);return o?`fax:${o}`:null}if(r==="mailto"||r==="email"){const o=Be(t);return o?`mailto:${o}`:null}const i=t.trim().toLowerCase();return i?`${r}:${i}`:null}const Sc=[/<blockquote/i,/class="?gmail_quote/i,/id="?[^"]*divRplyFwdMsg/i,/id="?[^"]*mail-editor-reference-message-container/i,/-{3,}\s*Original Message\s*-{3,}/i,/\n_{5,}\s*\n/,/\bOn\b[\s\S]{0,200}?\bwrote:/i],at=/^\s*(?:>+\s*)?(?:from|van|sent|verzonden|to|aan|cc|subject|onderwerp|date|datum)\s*:/i,Tc=/^\s*(?:on|op)\b.{0,200}?\b(?:wrote|schreef|geschreven)\s*:?\s*$/i;function bc(e){const t=e.split(`
10
+ `);for(let n=0;n<t.length;n++)if(Tc.test(t[n])||at.test(t[n])&&t.slice(n+1,n+4).some(r=>at.test(r)))return t.slice(0,n).join(`
11
+ `).trim();return e}const Ic=/^(?:https?:|mailto:|tel:)/i,Oc=/^(?:https?:|cid:|data:image\/)/i;function le(e,t){const n=e.match(new RegExp(`\\b${t}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|([^\\s">]+))`,"i"));return(n?.[1]??n?.[2]??n?.[3]??"").trim()}const Mc=/(!\[[^\]]*\]\([^)]*\))/;function st(e){return e.replace(/\s+/g," ").trim().split(Mc).map((t,n)=>n%2===1?t:t.replace(/[[\]]/g,"\\$&")).join("")}function ue(e){return e.replace(/[()\s<>"]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0")}`)}function Rc(e){return e.replace(/<img\b([^>]*?)\/?>/gi,(n,r)=>{const i=le(r,"src");return Oc.test(i)?`![${st(le(r,"alt"))}](${ue(i)})`:""}).replace(/<a\b([^>]*)>([\s\S]*?)<\/a\s*>/gi,(n,r,i)=>{const o=st(i.replace(/<[^>]*>/g,"")),a=le(r,"href");return Ic.test(a)?`[${o||ue(a)}](${ue(a)})`:o})}const Cc=/<table\b[^>]*>((?:(?!<table\b)[\s\S])*?)<\/table\s*>/i,wc=/<tr\b[^>]*>([\s\S]*?)<\/tr\s*>/gi,Nc=/<(t[dh])\b([^>]*)>([\s\S]*?)<\/\1\s*>/gi;function kc(e,t){return/<table\b/i.test(e)||e.includes(`
12
12
 
13
- |`)||t.includes("![")||t.length>200}const Qs=40,ec={left:"---",center:":---:",right:"---:"};function tc(e){const t=e.match(/align\s*[=:]\s*["']?\s*(right|center)/i);return t?t[1].toLowerCase():"left"}function nc(e){return e.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim().replace(/\|/g,"\\|")}function rc(e){const t=[];for(const a of e.matchAll(qs)){const s=[];for(const c of a[1].matchAll(Js)){const m=nc(c[3]);if(Zs(c[3],m))return null;s.push({text:m,align:tc(c[2])})}if(s.length===0)return null;s.some(c=>c.text!=="")&&t.push(s)}const n=t[0]?.length??0;if(t.length<2||n<2||t.some(a=>a.length!==n))return null;const r=a=>`| ${a.map(s=>s.text).join(" | ")} |`,i=t[1].map(a=>ec[a.align]).join(" | "),o=t.slice(1).map(r).join(`
13
+ |`)||t.includes("![")||t.length>200}const vc=40,Dc={left:"---",center:":---:",right:"---:"};function xc(e){const t=e.match(/align\s*[=:]\s*["']?\s*(right|center)/i);return t?t[1].toLowerCase():"left"}function Lc(e){return e.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim().replace(/\|/g,"\\|")}function Pc(e){const t=[];for(const a of e.matchAll(wc)){const s=[];for(const c of a[1].matchAll(Nc)){const m=Lc(c[3]);if(kc(c[3],m))return null;s.push({text:m,align:xc(c[2])})}if(s.length===0)return null;s.some(c=>c.text!=="")&&t.push(s)}const n=t[0]?.length??0;if(t.length<2||n<2||t.some(a=>a.length!==n))return null;const r=a=>`| ${a.map(s=>s.text).join(" | ")} |`,i=t[1].map(a=>Dc[a.align]).join(" | "),o=t.slice(1).map(r).join(`
14
14
  `);return`
15
15
 
16
16
  ${r(t[0])}
17
17
  | ${i} |
18
18
  ${o}
19
19
 
20
- `}function ic(e){return e.replace(/<\/(t[dh])\s*>/gi," ").replace(/<\/tr\s*>/gi,`
21
- `).replace(/<(?:tbody|thead|tfoot|caption|colgroup|col|tr|t[dh])\b[^>]*>/gi,"").replace(/<\/(?:tbody|thead|tfoot|caption|colgroup)\s*>/gi,"")}function oc(e){let t=e;for(let n=0;n<Qs;n++){const r=Xs.exec(t);if(!r||r.index===void 0)break;const o=rc(r[1])??`
20
+ `}function Uc(e){return e.replace(/<\/(t[dh])\s*>/gi," ").replace(/<\/tr\s*>/gi,`
21
+ `).replace(/<(?:tbody|thead|tfoot|caption|colgroup|col|tr|t[dh])\b[^>]*>/gi,"").replace(/<\/(?:tbody|thead|tfoot|caption|colgroup)\s*>/gi,"")}function $c(e){let t=e;for(let n=0;n<vc;n++){const r=Cc.exec(t);if(!r||r.index===void 0)break;const o=Pc(r[1])??`
22
22
 
23
- ${ic(r[1])}
23
+ ${Uc(r[1])}
24
24
 
25
- `;t=t.slice(0,r.index)+o+t.slice(r.index+r[0].length)}return t}function nt(e,t){let n=e;return n=n.replace(/<(script|style)[\s\S]*?<\/\1>/gi,""),n=n.replace(/<!--[\s\S]*?-->/g,""),n=n.replace(/<br\s*\/?>/gi,`
26
- `),t&&(n=oc(zs(n))),n=n.replace(/<\/(p|h[1-6]|ul|ol|table|blockquote)>/gi,`
25
+ `;t=t.slice(0,r.index)+o+t.slice(r.index+r[0].length)}return t}function ct(e,t){let n=e;return n=n.replace(/<(script|style)[\s\S]*?<\/\1>/gi,""),n=n.replace(/<!--[\s\S]*?-->/g,""),n=n.replace(/<br\s*\/?>/gi,`
26
+ `),t&&(n=$c(Rc(n))),n=n.replace(/<\/(p|h[1-6]|ul|ol|table|blockquote)>/gi,`
27
27
 
28
28
  `),n=n.replace(/<\/(div|li|tr)>/gi,`
29
- `),n=n.replace(/<\/(td|th)>/gi," "),n=n.replace(/<[^>]+>/g,""),n=n.replace(/<[^>]*$/,""),n}function rt(e){return!Number.isInteger(e)||e<0||e>1114111?null:String.fromCodePoint(e)}const ac={euro:"€",pound:"£",yen:"¥",cent:"¢",copy:"©",reg:"®",trade:"™",deg:"°",plusmn:"±",times:"×",middot:"·",bull:"•",hellip:"…",mdash:"—",ndash:"–",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",apos:"'"};function it(e){return e.replace(/&nbsp;/gi," ").replace(/&([a-z]+);/gi,(t,n)=>ac[n.toLowerCase()]??t).replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&quot;/gi,'"').replace(/&#(\d+);/g,(t,n)=>rt(Number(n))??t).replace(/&#x([0-9a-f]+);/gi,(t,n)=>rt(parseInt(n,16))??t).replace(/&amp;/gi,"&")}function ot(e){return e.replace(/\r/g,"").replace(/[ \t]+/g," ").replace(/ *\n */g,`
29
+ `),n=n.replace(/<\/(td|th)>/gi," "),n=n.replace(/<[^>]+>/g,""),n=n.replace(/<[^>]*$/,""),n}function lt(e){return!Number.isInteger(e)||e<0||e>1114111?null:String.fromCodePoint(e)}const Kc={euro:"€",pound:"£",yen:"¥",cent:"¢",copy:"©",reg:"®",trade:"™",deg:"°",plusmn:"±",times:"×",middot:"·",bull:"•",hellip:"…",mdash:"—",ndash:"–",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",apos:"'"};function ut(e){return e.replace(/&nbsp;/gi," ").replace(/&([a-z]+);/gi,(t,n)=>Kc[n.toLowerCase()]??t).replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&quot;/gi,'"').replace(/&#(\d+);/g,(t,n)=>lt(Number(n))??t).replace(/&#x([0-9a-f]+);/gi,(t,n)=>lt(parseInt(n,16))??t).replace(/&amp;/gi,"&")}function dt(e){return e.replace(/\r/g,"").replace(/[ \t]+/g," ").replace(/ *\n */g,`
30
30
  `).replace(/\n{3,}/g,`
31
31
 
32
- `).trim()}const sr=/<\s*(html|body|div|p|table|br|span)\b/i;function sc(e){return sr.test(e)}function cc(e){return cr(e,!1)}function lc(e){return cr(e,!0)}function cr(e,t){if(typeof e!="string"||!e)return"";let n=e.length;for(const a of Gs){const s=e.search(a);s>=0&&s<n&&(n=s)}const r=e.slice(0,n);let i=ot(it(nt(r,t)));return i||(i=ot(it(nt(e,t)))),Ws(i)||i}exports.ACTIVE_ASSIGNMENT_STATUSES=ai;exports.ACTIVITY_CATALOG=y;exports.AI_ATTACHMENT_LIMITS=Pn;exports.AI_ATTACHMENT_MAX_PER_TURN=ma;exports.AI_ATTACHMENT_TURN_BUDGET=fa;exports.AI_VENDORS=Te;exports.ALLOWED_LINK_SCHEMES=_t;exports.APP_PERMISSIONS=rs;exports.ARTIFACT_MAX_BLOCKS=ue;exports.ARTIFACT_MAX_BODY_BYTES=Vr;exports.ARTIFACT_MAX_CELL_LEN=B;exports.ARTIFACT_MAX_KPI_ITEMS=me;exports.ARTIFACT_MAX_LIST_ITEMS=de;exports.ARTIFACT_MAX_TABLE_COLUMNS=fe;exports.ARTIFACT_MAX_TABLE_ROWS=pe;exports.ARTIFACT_MAX_TEXT_LEN=be;exports.ASSIGNMENT_SCOPE_KIND=It;exports.ASSIST_BANDS=Sa;exports.ASSIST_SOURCE_PROVIDER_GROUP=Aa;exports.ATTENTION_STATUSES=Lt;exports.AUTH_APP_NAME=De;exports.AUTO_READY_MIN_PROPOSALS=un;exports.AUTO_READY_RATE=dn;exports.ActivityTypeRegistry=dt;exports.BUILT_IN_ONLY=Rr;exports.BULK_PENALTY=Pt;exports.CADENCE_FLOOR_MS=Jn;exports.CADENCE_MIN_NEW_SEGMENTS=Zn;exports.CADENCE_MIN_NOVELTY=Qn;exports.CADENCE_WINDOW_MS=qn;exports.CLASSIFY_VARS=ao;exports.CONNECTOR_PROVIDER_GROUP=Fa;exports.CONTEXT_COLLECT_SERVICE=Ga;exports.CORE_DIMENSIONS=Br;exports.CommunicationScheme=Fn;exports.DAY_MS=Rt;exports.DEFAULT_MEMORY_BUDGET=ji;exports.DEFAULT_PHONE_REGION=ir;exports.DOCUMENT_APPLY_SERVICE=Ja;exports.DOCUMENT_DESCRIBE_SERVICE=Xa;exports.DOCUMENT_INSPECT_SERVICE=qa;exports.DOCUMENT_OPERATIONS=ke;exports.EMPTY_WORKFLOW=co;exports.FEATURE_FOLDER_MANAGEMENT=Ua;exports.FEATURE_MESSAGE_REACTIONS=Ka;exports.FEATURE_REMOTE_SEARCH=$a;exports.FOLLOW_UP_HOURS=$t;exports.HOUR_MS=wt;exports.HTML_BODY_RE=sr;exports.INELIGIBLE=b;exports.INSTALLATION_HEADER=Qa;exports.INTERACTION_KIND=on;exports.InteractionParticipantRole=La;exports.KB_FALLBACK_LOCALE=Xt;exports.KB_LOCALES=ge;exports.LOOSE_STATUSES=ee;exports.MAIL_HINT_HEADERS=Dt;exports.MAX_ACTIONS=K;exports.MAX_ASSIGNMENT_TURNS=Mt;exports.MAX_BLOCKS=ce;exports.MAX_COLLECTION_DEPTH=Oe;exports.MAX_EDITABLE_FILE_BYTES=_s;exports.MAX_FIELDS=U;exports.MAX_LIST_ITEMS=$;exports.MAX_MEMORY_BROWSE=Gi;exports.MAX_MEMORY_BUDGET=Vi;exports.MAX_MEMORY_CHARS=Hi;exports.MAX_SHOWN_KEYS=rr;exports.MAX_TOPIC_CANDIDATES=bn;exports.MAX_TOPIC_EXAMPLES=Tn;exports.MAX_TOPIC_EXAMPLE_CHARS=F;exports.MAX_VIEWABLE_FILE_BYTES=ys;exports.MIN_MEMORY_BUDGET=Wi;exports.NAV_NOTICE_SLOT=Ns;exports.NOTIFICATION_SOURCE_PROVIDER_GROUP=ts;exports.ONBOARDING_SOURCE_PROVIDER_GROUP=zi;exports.PAUSE_SNOOZED=Y;exports.PAUSE_WAITING_FOR_CUSTOMER=z;exports.PHONE_REGIONS=te;exports.PRESENCE_ONLINE_WINDOW_MS=ve;exports.PRESENCE_SURVIVES_OFFLINE=Gn;exports.PROFILE_TOOL_DISPOSITIONS=qi;exports.PROVIDER_FEATURE_MESSAGE_TEMPLATES=xa;exports.PROVIDER_FEATURE_MESSAGE_WINDOW=Da;exports.PUBLIC_EMAIL_DOMAINS=ar;exports.READ_STEP_TYPES=he;exports.RELATED_SUBJECT_KINDS=Jt;exports.RESERVED_STATUS_KEYS=Ne;exports.RESOURCE_ATTACHED_SERVICE=ds;exports.RESOURCE_DESCRIBE_SERVICE=cs;exports.RESOURCE_RESOLVE_SERVICE=us;exports.RESOURCE_SEARCH_SERVICE=ls;exports.SCOPE_READ_ROUTE=ms;exports.SCOPE_RELATED_ROUTE=fs;exports.SETTINGS_CATEGORIES=Cs;exports.SIGNATURE_INTENTS=fi;exports.SLA_HOURS_BY_PRIORITY=Ut;exports.SLA_METRICS=Mo;exports.SLA_PAUSE_REASONS=Oo;exports.STEP_MAX_TOKENS_MAX=cn;exports.STEP_MAX_TOKENS_MIN=sn;exports.SUMMARY_MIN_LAST_CHARS=vt;exports.SUMMARY_MIN_MESSAGES=kt;exports.SYNC_RUN_MAX_ERRORS=bs;exports.SYNC_TARGET_PROVIDER_GROUP=Ts;exports.TERMINAL_ASSIGNMENT_STATUSES=bt;exports.TERMINAL_RUN_STATUSES=pn;exports.TRIGGER_VARS=oo;exports.UNSUPPORTED=Ba;exports.USAGE_DIMENSIONS=ht;exports.USAGE_DIMENSION_IDS=Et;exports.WORK_ACTIVITY_SCOPE_KIND=Cn;exports.WORK_AREAS=Xi;exports.WORK_COMMENT_ADDED=zo;exports.WORK_ITEM_ASSIGNED=Xo;exports.WORK_ITEM_SCOPE_KIND=wn;exports.WORK_ITEM_STATUS_CHANGED=qo;exports.WORK_PROJECT_SCOPE_KIND=Rn;exports.W_PRIORITY=C;exports.acceptExampleCandidate=Vo;exports.actingIdentityKey=Qt;exports.activeWorkTypes=Ho;exports.activityIconOf=mr;exports.activityJoinUrl=Ir;exports.activitySnippet=lt;exports.activityTextParams=ut;exports.activityTimelineText=br;exports.activityTimestamp=pt;exports.activityTypeInfo=A;exports.actorKey=Qi;exports.addExampleCandidate=Wo;exports.addWorkingMs=Z;exports.agePresenceEntry=os;exports.aiAttachmentKind=Ln;exports.aiAttachmentRejection=ga;exports.aiBudgetLimit=le;exports.aiBudgetPeriodKey=$r;exports.aiBudgetPeriodStart=ft;exports.aiBudgetState=Ur;exports.aiVendorAcceptsAttachment=Pr;exports.aiVendorDefaultModel=Dr;exports.aiVendorLabel=vr;exports.aiVendorNeedsBaseUrl=Lr;exports.aiVendorsWith=xr;exports.appNameFromPath=xe;exports.applyRounding=$o;exports.applySignature=mi;exports.approvalRate=ln;exports.artifactBodyBytes=Qr;exports.artifactOutline=ei;exports.artifactToMarkdown=ni;exports.assignmentMismatch=ro;exports.assignmentScopeKey=ci;exports.assignmentSubject=di;exports.buildActivityPreview=Or;exports.buildChannelIntents=wa;exports.buildShareKeys=ri;exports.buildWindow=nr;exports.calendarOf=Q;exports.canNestUnder=Li;exports.carriesText=Sr;exports.categoryLabel=Ui;exports.categoryOf=vn;exports.channelKindForScheme=va;exports.channelKindOf=gr;exports.clampStepMaxTokens=so;exports.classifyMail=bi;exports.cleanMessageMarkdown=lc;exports.cleanMessageText=cc;exports.compareAssistRank=ya;exports.compareWorkTypes=yn;exports.cycleState=ua;exports.decideAssignmentState=pi;exports.decideCadence=Rs;exports.decideIncomingCall=Ia;exports.defaultLocaleOf=qt;exports.defaultStatusKey=aa;exports.defineIntent=Pa;exports.depthOf=Yt;exports.derivePresence=is;exports.disabledIntentsFromCapabilities=Ma;exports.documentKindOf=Za;exports.dueAtOf=Do;exports.elapsedSeconds=Uo;exports.emailDomain=Us;exports.endpointKey=Fs;exports.extractParams=Vn;exports.extractTerms=er;exports.filterByEndpoint=Ca;exports.filterByIntent=Ra;exports.filterByTargetScheme=Bn;exports.findAiVendor=k;exports.flattenLocales=es;exports.floorToPeriod=gt;exports.formatActingIdentity=Zt;exports.formatClock=Bo;exports.formatHm=Ko;exports.formatItemKey=ea;exports.formatPeriod=mt;exports.formatSlaDuration=Po;exports.freshSources=Ea;exports.getActivitySeenUserIds=Cr;exports.getContactEndpoints=gi;exports.getShortTitle=Ni;exports.getUrgencyScore=Ci;exports.hasReacted=So;exports.heightOf=we;exports.helpCenterText=vi;exports.humanizeAction=io;exports.interactionIdOf=an;exports.isAgentUser=Yo;exports.isAssigned=wi;exports.isAssignmentTerminal=si;exports.isAssignmentTrigger=nn;exports.isAutoReady=po;exports.isAwaitingThem=Vt;exports.isChatMessageActivity=kr;exports.isClosed=Ri;exports.isConnectedType=yr;exports.isDeepLink=gs;exports.isDescendant=zt;exports.isEligible=hi;exports.isEmailActivity=Nr;exports.isHtmlBody=sc;exports.isInFlight=mo;exports.isInteractionUnseen=xt;exports.isLandingPath=hs;exports.isLikelyBulk=Nt;exports.isMessageShape=_e;exports.isMessageType=hr;exports.isMoreSpecificPattern=Yn;exports.isNoteShape=ye;exports.isOpenClock=Sn;exports.isOutwardTool=ha;exports.isParked=Bt;exports.isPaused=fn;exports.isPlaybookAuthoredType=_r;exports.isPublicEmailDomain=Ks;exports.isPublicPath=Ss;exports.isReminderActive=Ft;exports.isReplyableType=Ar;exports.isSlaAtRisk=Mi;exports.isTerminal=fo;exports.isThreadLongEnough=Si;exports.isTranscriptType=Tr;exports.isWorkClosed=sa;exports.isWorkTypeVisible=Go;exports.itemDossierKeys=ra;exports.ladderFor=kn;exports.linkLabel=ki;exports.listeningAllowed=Kr;exports.localeInstruction=xi;exports.localeName=Di;exports.localesOf=Pi;exports.looksLikeEmail=Ls;exports.matchContactToIntents=Na;exports.matchPublicRoute=zn;exports.mcpCredentialScope=Bi;exports.mcpToolPrefix=Fi;exports.mergeShownKeys=ws;exports.messageCountsAs=ct;exports.needsPhoneRegion=Bs;exports.nestsUnderParent=Er;exports.nextSlaClock=xo;exports.normalizeArtifactBlocks=Zr;exports.normalizeBlocks=dr;exports.normalizeEmail=Le;exports.normalizeExample=I;exports.notificationPrefKey=ns;exports.novelty=tr;exports.operationDescriptor=za;exports.operationsForKind=Ya;exports.parkMarksById=Ei;exports.parseActingIdentity=Ji;exports.parseClockMinutes=bo;exports.parseItemKey=ta;exports.pathToRegex=Wn;exports.pauseBitFor=Io;exports.periodsInRange=Hr;exports.phoneSuffix=Ps;exports.pickMailHeaders=_i;exports.plainTextFromMarkdown=at;exports.planSlaEvent=vo;exports.playbookActor=tn;exports.procedureOf=uo;exports.projectDossierKeys=ia;exports.publicBasePathFor=jn;exports.publicRoutePatterns=As;exports.reactionWakesAssignment=ui;exports.readPath=W;exports.readStepError=Ee;exports.recencyOf=Kt;exports.refKey=rn;exports.registrableDomain=or;exports.rejectExampleCandidate=Mn;exports.relatedByDefault=Yi;exports.remainingMsOf=X;exports.resolveAccountCapabilities=Kn;exports.resolveActivityText=V;exports.resolveChannelIntents=$n;exports.resolveSignature=Ot;exports.resolveWorkMode=as;exports.resourceKindOf=ps;exports.runActor=Zi;exports.runInteractionId=ho;exports.sanitizeInline=Tt;exports.sanitizeTranscript=Xn;exports.scoreInteraction=Oi;exports.scoreWorkItem=Zo;exports.selectLenses=Ki;exports.sessionsHoldCannotReach=ba;exports.sessionsToHold=Ta;exports.shareKeyForTeam=Me;exports.shareKeyForUser=Ie;exports.shareKeysForViewer=ii;exports.shouldRunAudioPipeline=ss;exports.slaBadgeTone=Lo;exports.slaHoursByInbox=Ii;exports.slaHoursFor=Wt;exports.sortStatuses=Dn;exports.sourceKey=Un;exports.statusIn=oa;exports.stepsOf=lo;exports.stripHtml=st;exports.subjectKeyOf=go;exports.subjectOf=Re;exports.subjectRef=_a;exports.suggestProjectKey=na;exports.summarizeReactions=Eo;exports.targetById=no;exports.targetForActivityType=to;exports.toActingIdentity=en;exports.toE164=Se;exports.toolSourceKinds=oi;exports.topicOfferedForTeam=On;exports.topicsForTeam=jo;exports.truncateExample=In;exports.uniqueWorkStatusKey=ca;exports.uniqueWorkTypeKey=Fo;exports.usageMetricId=At;exports.usageMetrics=Wr;exports.validateStatuses=la;exports.valueAtPath=eo;exports.waitHoursOf=J;exports.wakesAssignment=li;exports.workActivityScopeKey=Qo;exports.workItemScopeKey=Nn;exports.workProjectScopeKey=Ce;exports.workStatusKey=xn;exports.workTypeKey=_n;exports.workingMsBetween=j;
32
+ `).trim()}const yr=/<\s*(html|body|div|p|table|br|span)\b/i;function Fc(e){return yr.test(e)}function Bc(e){return _r(e,!1)}function Gc(e){return _r(e,!0)}function _r(e,t){if(typeof e!="string"||!e)return"";let n=e.length;for(const a of Sc){const s=e.search(a);s>=0&&s<n&&(n=s)}const r=e.slice(0,n);let i=dt(ut(ct(r,t)));return i||(i=dt(ut(ct(e,t)))),bc(i)||i}exports.ACTIVE_ASSIGNMENT_STATUSES=Ai;exports.ACTIVITY_CATALOG=S;exports.AI_ATTACHMENT_LIMITS=Xn;exports.AI_ATTACHMENT_MAX_PER_TURN=Ya;exports.AI_ATTACHMENT_TURN_BUDGET=ja;exports.AI_VENDORS=Re;exports.ALLOWED_LINK_SCHEMES=Mt;exports.APP_PERMISSIONS=Ps;exports.ARTIFACT_MAX_BLOCKS=fe;exports.ARTIFACT_MAX_BODY_BYTES=ri;exports.ARTIFACT_MAX_CELL_LEN=F;exports.ARTIFACT_MAX_KPI_ITEMS=Ee;exports.ARTIFACT_MAX_LIST_ITEMS=me;exports.ARTIFACT_MAX_TABLE_COLUMNS=he;exports.ARTIFACT_MAX_TABLE_ROWS=ge;exports.ARTIFACT_MAX_TEXT_LEN=Ce;exports.ASSIGNMENT_SCOPE_KIND=Nt;exports.ASSIST_BANDS=Za;exports.ASSIST_SOURCE_PROVIDER_GROUP=Ja;exports.ATTENTION_STATUSES=Bt;exports.AT_RISK_GAP=Nn;exports.AUTH_APP_NAME=Ke;exports.AUTO_READY_MIN_PROPOSALS=hn;exports.AUTO_READY_RATE=En;exports.ActivityTypeRegistry=Et;exports.BUILT_IN_ONLY=Fr;exports.BULK_PENALTY=Gt;exports.CADENCE_FLOOR_MS=lr;exports.CADENCE_MIN_NEW_SEGMENTS=ur;exports.CADENCE_MIN_NOVELTY=dr;exports.CADENCE_WINDOW_MS=cr;exports.CLASSIFY_VARS=yo;exports.CONNECTOR_PROVIDER_GROUP=_s;exports.CONTEXT_COLLECT_SERVICE=Ss;exports.CORE_DIMENSIONS=Zr;exports.CommunicationScheme=Qn;exports.DAY_MS=xt;exports.DEFAULT_CHECK_IN_DAYS=Cn;exports.DEFAULT_MEMORY_BUDGET=io;exports.DEFAULT_PHONE_REGION=hr;exports.DOCUMENT_APPLY_SERVICE=Ns;exports.DOCUMENT_DESCRIBE_SERVICE=Cs;exports.DOCUMENT_INSPECT_SERVICE=ws;exports.DOCUMENT_OPERATIONS=Ue;exports.EMPTY_WORKFLOW=So;exports.FEATURE_FOLDER_MANAGEMENT=hs;exports.FEATURE_MESSAGE_REACTIONS=As;exports.FEATURE_REMOTE_SEARCH=Es;exports.FIXED_LEVELS=ee;exports.FIXED_TYPES=ne;exports.FOLLOW_UP_HOURS=Wt;exports.HOUR_MS=Dt;exports.HTML_BODY_RE=yr;exports.INELIGIBLE=b;exports.INSTALLATION_HEADER=vs;exports.INTERACTION_KIND=dn;exports.InteractionParticipantRole=ms;exports.KB_FALLBACK_LOCALE=tn;exports.KB_LOCALES=Ae;exports.LOOSE_STATUSES=re;exports.MAIL_HINT_HEADERS=Kt;exports.MAX_ACTIONS=K;exports.MAX_ASSIGNMENT_TURNS=kt;exports.MAX_BLOCKS=de;exports.MAX_COLLECTION_DEPTH=ke;exports.MAX_EDITABLE_FILE_BYTES=Qs;exports.MAX_FIELDS=U;exports.MAX_LIST_ITEMS=$;exports.MAX_MEMORY_BROWSE=eo;exports.MAX_MEMORY_BUDGET=ro;exports.MAX_MEMORY_CHARS=to;exports.MAX_SHOWN_KEYS=gr;exports.MAX_TOPIC_CANDIDATES=Ln;exports.MAX_TOPIC_EXAMPLES=xn;exports.MAX_TOPIC_EXAMPLE_CHARS=B;exports.MAX_VIEWABLE_FILE_BYTES=ec;exports.MIN_MEMORY_BUDGET=no;exports.NAV_NOTICE_SLOT=lc;exports.NOTIFICATION_SOURCE_PROVIDER_GROUP=xs;exports.OFF_TRACK_GAP=kn;exports.ONBOARDING_SOURCE_PROVIDER_GROUP=ao;exports.PAUSE_SNOOZED=Y;exports.PAUSE_WAITING_FOR_CUSTOMER=X;exports.PHONE_REGIONS=ie;exports.PRESENCE_ONLINE_WINDOW_MS=$e;exports.PRESENCE_SURVIVES_OFFLINE=er;exports.PROFILE_TOOL_DISPOSITIONS=co;exports.PROVIDER_FEATURE_MESSAGE_TEMPLATES=fs;exports.PROVIDER_FEATURE_MESSAGE_WINDOW=ps;exports.PUBLIC_EMAIL_DOMAINS=Ar;exports.READ_STEP_TYPES=ye;exports.RELATED_SUBJECT_KINDS=rn;exports.RESERVED_STATUS_KEYS=Pe;exports.RESERVED_TYPE_KEYS=Oa;exports.RESOURCE_ATTACHED_SERVICE=Ws;exports.RESOURCE_DESCRIBE_SERVICE=Bs;exports.RESOURCE_RESOLVE_SERVICE=Hs;exports.RESOURCE_SEARCH_SERVICE=Gs;exports.SCOPE_READ_ROUTE=Ys;exports.SCOPE_RELATED_ROUTE=js;exports.SETTINGS_CATEGORIES=cc;exports.SIGNATURE_INTENTS=Oi;exports.SLA_HOURS_BY_PRIORITY=Ht;exports.SLA_METRICS=Uo;exports.SLA_PAUSE_REASONS=$o;exports.STEP_MAX_TOKENS_MAX=mn;exports.STEP_MAX_TOKENS_MIN=fn;exports.STRATEGY_ITEM_SCOPE_KIND=Mn;exports.SUMMARY_MIN_LAST_CHARS=$t;exports.SUMMARY_MIN_MESSAGES=Ut;exports.SYNC_RUN_MAX_ERRORS=nc;exports.SYNC_TARGET_PROVIDER_GROUP=tc;exports.TERMINAL_ASSIGNMENT_STATUSES=wt;exports.TERMINAL_RUN_STATUSES=An;exports.TRIGGER_VARS=Ao;exports.UNKNOWN_LEVEL_ORDER=Rn;exports.UNSUPPORTED=ys;exports.USAGE_DIMENSIONS=Tt;exports.USAGE_DIMENSION_IDS=bt;exports.WORK_ACTIVITY_SCOPE_KIND=Bn;exports.WORK_AREAS=so;exports.WORK_COMMENT_ADDED=_a;exports.WORK_CYCLE_SYNC_KIND=Na;exports.WORK_ITEM_ASSIGNED=Sa;exports.WORK_ITEM_SCOPE_KIND=Kn;exports.WORK_ITEM_STATUS_CHANGED=Ta;exports.WORK_PROJECT_SCOPE_KIND=Fn;exports.W_PRIORITY=w;exports.acceptExampleCandidate=Ea;exports.actingIdentityKey=an;exports.activeWorkTypes=ga;exports.activityIconOf=Mr;exports.activityJoinUrl=Pr;exports.activitySnippet=gt;exports.activityTextParams=ht;exports.activityTimelineText=Lr;exports.activityTimestamp=At;exports.activityTypeInfo=A;exports.actorKey=po;exports.addExampleCandidate=ha;exports.addWorkingMs=Z;exports.agePresenceEntry=$s;exports.aiAttachmentKind=Yn;exports.aiAttachmentRejection=Xa;exports.aiBudgetLimit=pe;exports.aiBudgetPeriodKey=qr;exports.aiBudgetPeriodStart=yt;exports.aiBudgetState=zr;exports.aiVendorAcceptsAttachment=Xr;exports.aiVendorDefaultModel=Vr;exports.aiVendorLabel=Wr;exports.aiVendorNeedsBaseUrl=Yr;exports.aiVendorsWith=jr;exports.appNameFromPath=Fe;exports.applyRounding=ua;exports.applySignature=Mi;exports.approvalRate=gn;exports.artifactBodyBytes=di;exports.artifactOutline=pi;exports.artifactToMarkdown=mi;exports.assignmentMismatch=ho;exports.assignmentScopeKey=_i;exports.assignmentSubject=bi;exports.buildActivityPreview=$r;exports.buildChannelIntents=as;exports.buildShareKeys=gi;exports.buildWindow=mr;exports.calendarOf=Q;exports.canNestUnder=Yi;exports.canParent=Jo;exports.carriesText=kr;exports.categoryLabel=zi;exports.categoryOf=Wn;exports.channelKindForScheme=ds;exports.channelKindOf=Rr;exports.checkInOverdueMs=sa;exports.clampStepMaxTokens=_o;exports.classifyMail=Li;exports.cleanMessageMarkdown=Gc;exports.cleanMessageText=Bc;exports.compareAssistRank=es;exports.compareWorkTypes=Dn;exports.cycleOrder=Ga;exports.cycleState=Ha;exports.decideAssignmentState=Ii;exports.decideCadence=sc;exports.decideIncomingCall=rs;exports.defaultLocaleOf=nn;exports.defaultStatusKey=$a;exports.defineIntent=gs;exports.depthOf=Qt;exports.derivePresence=Us;exports.disabledIntentsFromCapabilities=is;exports.documentKindOf=ks;exports.dueAtOf=Vo;exports.elapsedSeconds=la;exports.emailDomain=hc;exports.endpointKey=_c;exports.extractParams=rr;exports.extractTerms=pr;exports.filterByEndpoint=cs;exports.filterByIntent=ss;exports.filterByTargetScheme=Zn;exports.findAiVendor=k;exports.fixedLevelForName=Zo;exports.fixedTypeForName=Ca;exports.fixedTypes=wa;exports.flattenLocales=Ds;exports.floorToPeriod=St;exports.formatActingIdentity=on;exports.formatClock=pa;exports.formatHm=da;exports.formatItemKey=va;exports.formatPeriod=_t;exports.formatSlaDuration=Xo;exports.freshSources=qa;exports.getActivitySeenUserIds=Br;exports.getContactEndpoints=Ri;exports.getShortTitle=Gi;exports.getUrgencyScore=Bi;exports.hasReacted=ko;exports.healthCategory=Qo;exports.healthsInCategory=ea;exports.heightOf=ve;exports.helpCenterText=Wi;exports.humanizeAction=Eo;exports.interactionIdOf=pn;exports.isAgentUser=ya;exports.isAssigned=Ki;exports.isAssignmentTerminal=yi;exports.isAssignmentTrigger=ln;exports.isAutoReady=Io;exports.isAwaitingThem=Jt;exports.isChatMessageActivity=Hr;exports.isClosed=Fi;exports.isConnectedType=Dr;exports.isDeepLink=Xs;exports.isDescendant=en;exports.isEligible=Ci;exports.isEmailActivity=Gr;exports.isHtmlBody=Fc;exports.isInFlight=Mo;exports.isInteractionUnseen=Ft;exports.isLandingPath=zs;exports.isLikelyBulk=Pt;exports.isMessageShape=Oe;exports.isMessageType=Cr;exports.isMoreSpecificPattern=or;exports.isNoteShape=Me;exports.isOpenClock=On;exports.isOutwardTool=za;exports.isParked=jt;exports.isPaused=yn;exports.isPlaybookAuthoredType=vr;exports.isPublicEmailDomain=Ac;exports.isPublicPath=Zs;exports.isReminderActive=Yt;exports.isReplyableType=Nr;exports.isSlaAtRisk=Ui;exports.isTerminal=Oo;exports.isThreadLongEnough=ki;exports.isTranscriptType=xr;exports.isWorkClosed=Ka;exports.isWorkTypeVisible=ma;exports.itemDossierKeys=La;exports.ladderFor=Hn;exports.levelIn=wn;exports.levelOrder=Te;exports.linkLabel=Hi;exports.listeningAllowed=Jr;exports.localeInstruction=ji;exports.localeName=Vi;exports.localesOf=Xi;exports.looksLikeEmail=mc;exports.matchContactToIntents=ls;exports.matchPublicRoute=ar;exports.mcpCredentialScope=Zi;exports.mcpToolPrefix=Qi;exports.measureRatio=na;exports.mergeShownKeys=ac;exports.messageCountsAs=mt;exports.needsPhoneRegion=yc;exports.nestsUnderParent=wr;exports.nextSlaClock=jo;exports.normalizeArtifactBlocks=ui;exports.normalizeBlocks=br;exports.normalizeEmail=Be;exports.normalizeExample=I;exports.notificationPrefKey=Ls;exports.novelty=fr;exports.operationDescriptor=Rs;exports.operationsForKind=Ms;exports.paceRatio=ra;exports.parkMarksById=wi;exports.parseActingIdentity=lo;exports.parseClockMinutes=Lo;exports.parseItemKey=Da;exports.pathToRegex=nr;exports.pauseBitFor=Po;exports.periodsInRange=ti;exports.phoneSuffix=gc;exports.pickMailHeaders=vi;exports.plainTextFromMarkdown=pt;exports.planSlaEvent=Wo;exports.playbookActor=cn;exports.procedureOf=bo;exports.projectDossierKeys=Pa;exports.publicBasePathFor=ir;exports.publicRoutePatterns=Js;exports.reactionWakesAssignment=Ti;exports.readPath=W;exports.readStepError=_e;exports.recencyOf=Vt;exports.refKey=un;exports.registrableDomain=Er;exports.rejectExampleCandidate=Un;exports.relatedByDefault=oo;exports.remainingMsOf=z;exports.resolveAccountCapabilities=Jn;exports.resolveActivityText=V;exports.resolveChannelIntents=qn;exports.resolveSignature=vt;exports.resolveWorkMode=Ks;exports.resourceKindOf=Vs;exports.rollupChildren=aa;exports.runActor=uo;exports.runInteractionId=Co;exports.sanitizeInline=Ct;exports.sanitizeTranscript=sr;exports.scoreInteraction=$i;exports.scoreWorkItem=Ia;exports.selectLenses=Ji;exports.sessionsHoldCannotReach=ns;exports.sessionsToHold=ts;exports.shareKeyForTeam=Ne;exports.shareKeyForUser=we;exports.shareKeysForViewer=hi;exports.shouldRunAudioPipeline=Fs;exports.slaBadgeTone=Yo;exports.slaHoursByInbox=Pi;exports.slaHoursFor=qt;exports.sortStatuses=Vn;exports.sourceKey=zn;exports.statusIn=Ua;exports.stepsOf=To;exports.strategyAncestorKeysFor=qo;exports.strategyDossierKeys=zo;exports.strategyItemScopeKey=xe;exports.stripHtml=ft;exports.subjectKeyOf=Ro;exports.subjectOf=De;exports.subjectRef=Qa;exports.suggestProjectKey=xa;exports.suggestedHealth=ia;exports.summarizeReactions=wo;exports.targetById=go;exports.targetForActivityType=mo;exports.targetOrder=ca;exports.toActingIdentity=sn;exports.toE164=Ie;exports.toolSourceKinds=Ei;exports.topicOfferedForTeam=$n;exports.topicsForTeam=Aa;exports.truncateExample=Pn;exports.typeIn=Ra;exports.typesFor=Ma;exports.uniqueWorkStatusKey=Fa;exports.uniqueWorkTypeKey=fa;exports.usageMetricId=It;exports.usageMetrics=ni;exports.validateStatuses=Ba;exports.valueAtPath=fo;exports.waitHoursOf=J;exports.wakesAssignment=Si;exports.workActivityScopeKey=ka;exports.workItemScopeKey=Gn;exports.workProjectScopeKey=Le;exports.workRatio=oa;exports.workStatusKey=jn;exports.workTypeKey=vn;exports.workingMsBetween=j;
package/dist/index.d.ts CHANGED
@@ -33,6 +33,7 @@ export * from './entities/read-state';
33
33
  export * from './entities/resource-reminder';
34
34
  export * from './entities/scope';
35
35
  export * from './entities/sla';
36
+ export * from './entities/strategy';
36
37
  export * from './entities/team';
37
38
  export * from './entities/time-entry';
38
39
  export * from './entities/topic';