@opencxh/domain 1.282.0 → 1.286.1
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/entities/calendar-event/types.d.ts +5 -0
- package/dist/entities/inbox/types.d.ts +2 -0
- package/dist/entities/interaction/types.d.ts +0 -17
- package/dist/index.cjs +12 -12
- package/dist/index.d.ts +0 -1
- package/dist/index.js +89 -92
- package/dist/platform/communication.d.ts +5 -41
- package/dist/platform/permission.d.ts +1 -1
- package/package.json +1 -1
- package/dist/platform/push.d.ts +0 -65
|
@@ -7,6 +7,11 @@ export interface EventAttendee {
|
|
|
7
7
|
response?: AttendeeResponse;
|
|
8
8
|
optional?: boolean;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* An online meeting on the event. **Without a `joinUrl` it is a request**: the calendar's own
|
|
12
|
+
* provider creates its native meeting (Teams, Meet) and the next sync fills in the link — so the
|
|
13
|
+
* UI never has to know which provider hosts the calendar.
|
|
14
|
+
*/
|
|
10
15
|
export interface EventConferencing {
|
|
11
16
|
provider: "teams" | "meet" | "zoom" | "other";
|
|
12
17
|
joinUrl: string;
|
|
@@ -8,6 +8,8 @@ export interface Inbox {
|
|
|
8
8
|
teamId?: string;
|
|
9
9
|
ticketEnabled?: boolean;
|
|
10
10
|
ticketPrefix?: string;
|
|
11
|
+
/** Last ticket number issued; server-owned. */
|
|
12
|
+
ticketCounter?: number;
|
|
11
13
|
/**
|
|
12
14
|
* Hours a first reply may take in this inbox before a conversation counts as at risk.
|
|
13
15
|
*
|
|
@@ -58,12 +58,6 @@ export interface InteractionSource {
|
|
|
58
58
|
externalId?: string;
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
export interface InteractionLink {
|
|
62
|
-
url?: string;
|
|
63
|
-
providerId?: string;
|
|
64
|
-
externalId?: string;
|
|
65
|
-
title: string;
|
|
66
|
-
}
|
|
67
61
|
export interface Interaction {
|
|
68
62
|
id: string;
|
|
69
63
|
organizationId: string;
|
|
@@ -116,7 +110,6 @@ export interface Interaction {
|
|
|
116
110
|
partyKeys?: string[];
|
|
117
111
|
source?: InteractionSource;
|
|
118
112
|
tags: string[];
|
|
119
|
-
links: InteractionLink[];
|
|
120
113
|
externalIds?: string[];
|
|
121
114
|
collaborators: string[];
|
|
122
115
|
seenBy?: string[];
|
|
@@ -133,16 +126,6 @@ export interface Interaction {
|
|
|
133
126
|
* analytics metric (firstResponseAt - createdAt). Absent = no reply yet.
|
|
134
127
|
*/
|
|
135
128
|
firstResponseAt?: number;
|
|
136
|
-
/**
|
|
137
|
-
* Provider-side folder this thread is archived under (mail). Set by the sync (folder membership
|
|
138
|
-
* of already-engaged threads) and by `folder.move`. Drives the Folders nav filter and the two-way
|
|
139
|
-
* move. Absent = not in a specific folder (or a provider without folder capability).
|
|
140
|
-
*/
|
|
141
|
-
folderRef?: {
|
|
142
|
-
channelId: string;
|
|
143
|
-
folderId: string;
|
|
144
|
-
name: string;
|
|
145
|
-
};
|
|
146
129
|
/**
|
|
147
130
|
* Epoch ms until which the interaction is snoozed. While `snoozedTill > now` the interaction is
|
|
148
131
|
* filtered out of the list (its status is then "snoozed"). A cron job wakes expired snoozes: sets
|
package/dist/index.cjs
CHANGED
|
@@ -14,34 +14,34 @@ Hierbij de bevestiging van uw opdracht.`,invoice:`Beste {customer.contact},
|
|
|
14
14
|
|
|
15
15
|
Hierbij onze factuur. Hieronder vindt u de specificatie.`,credit_note:`Beste {customer.contact},
|
|
16
16
|
|
|
17
|
-
Hierbij onze creditnota. De onderstaande bedragen worden met u verrekend.`},ln={quote:"Genoemde bedragen zijn exclusief btw tenzij anders vermeld. Deze offerte is geldig tot {quote.valid_until}.",order:"Genoemde bedragen zijn exclusief btw tenzij anders vermeld.",invoice:"Genoemde bedragen zijn exclusief btw tenzij anders vermeld.",credit_note:"Genoemde bedragen zijn exclusief btw tenzij anders vermeld."},Bu=$o("quote"),Ko=xe.map(e=>e.key),Uo="product";function Fo(e,t){return`${e}:${t}`}function Gu(e){return`${Uo}:${e}`}function Hu(e,t){const n=e.businessEntityId||t;if(n)return`/apps/sales/${n}/${C(e.kindKey).path}/${e.id}`}function ju(e,t){const n=e.businessEntityId||t;return n?`/apps/sales/${n}/product/${e.id}`:void 0}function Wu(e){const t=e.indexOf(":");if(t<0)return;const n=e.slice(0,t);return Ko.includes(n)?e.slice(t+1):void 0}function Vu(e){const t=new Set([Fo(e.kindKey,e.id)]);return e.companyId&&t.add(`company:${e.companyId}`),e.contactId&&t.add(`contact:${e.contactId}`),e.dealItemId&&t.add(`work_item:${e.dealItemId}`),Array.from(t)}const Yu=4;function zu(e,t){const n=String(t).padStart(Math.max(1,e.padding),"0");return`${e.prefix}${e.period?`${e.period}-`:""}${n}`}function Xu(e,t=Date.now()){return e==="year"?String(new Date(t).getFullYear()):""}const qu=["cash","credit","direct_debit","card","other"];function Qu(e,t){return e+Math.max(0,Math.round(t))*24*60*60*1e3}function Ju(e){return{code:e.code,label:e.label,method:e.method,dueDays:e.dueDays}}const Zu=[{code:"14D",label:"Binnen 14 dagen",method:"credit",dueDays:14,isDefault:!0,order:0},{code:"30D",label:"Binnen 30 dagen",method:"credit",dueDays:30,order:1},{code:"CONTANT",label:"Contant",method:"cash",dueDays:0,order:2}];function ed(e){return e.type==="agent"}const Bo=["communication:interactions:created","communication:interactions:updated","communication:activities:created","communication:activities:updated"];function td(e){return Bo.includes(e)}const nd="WORK_COMMENT_ADDED",rd="WORK_ITEM_ASSIGNED",od="WORK_ITEM_STATUS_CHANGED";function id(e,t){const n=r=>{const o=new Date(r);return o.setHours(0,0,0,0),o.getTime()};return Math.round((n(e)-n(t))/ar)}function sd(e,t){if(e.closedAt!=null)return{score:P,reasons:[]};const n=t.remindersById?.[e.id];if(n&&n.remindAt>t.now)return{score:P,reasons:[]};let r=0;const o=[],i=e.priority??"normal";if(q[i]>0&&(r+=q[i],o.push(`priority:${i}`)),typeof e.dueDate=="number"){const s=id(e.dueDate,t.now);s<0?(r+=35,o.push("overdue")):s===0&&(r+=20,o.push("due-today"))}return e.source?.initiator==="system"&&e.source.systemReason&&(r+=15,o.push(`auto:${e.source.systemReason}`)),{score:r,reasons:o}}const Pe=[{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"},{key:"milestone",label:"type_milestone"}],ad=Pe.map(e=>e.key);function cd(e){return e?.types?.length?e.types:Pe}function ld(e,t){return t.find(n=>n.key===e)}function ud(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("milestone")||t.includes("mijlpaal")?"milestone":t.includes("task")?"task":null:null}function dd(...e){return e.map(t=>Pe.find(n=>n.key===t)).filter(t=>!!t)}const Go="work_item",Ho="work_project",jo="work_activity",fd="work_cycle";function Wo(e){return`${Go}:${e}`}function Lt(e){return`${Ho}:${e}`}function pd(e){return`${jo}:${e}`}function md(e,t,n){const r=`${e}-${t}`;return n?`${r}-${n}`:r}function gd(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 hd(e){return(e||"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase().replace(/[^A-Z0-9]/g,"").slice(0,3)||"PRJ"}function yd(e,t=25){const n=new Set([Wo(e.id)]);e.projectId&&n.add(Lt(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 Ed(e){return[Lt(e.id)]}const $e=[{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}],xt=$e.map(e=>e.key);function Vo(e){return e?.statuses?.length?e.statuses:$e}function Yo(e,t){return t.find(n=>n.key===e)?.category??"todo"}function _d(e,t){return t.find(n=>n.key===e)}function Ad(e){const t=Vo(e),n=e?.defaultStatusKey;return n&&t.some(r=>r.key===n)?n:zo(t)[0]?.key??$e[0].key}function zo(e){return[...e].sort((t,n)=>{const r=(t.order??0)-(n.order??0);return r!==0?r:(t.label||"").localeCompare(n.label||"")})}function Sd(e,t){return Yo(e,t)==="done"}function Xo(e){return(e||"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").slice(0,48).replace(/^-+|-+$/g,"")}function bd(e,t){const n=Xo(e)||"status",r=new Set([...t,...xt]);if(!r.has(n))return n;for(let o=2;o<500;o++){const i=`${n}-${o}`;if(!r.has(i))return i}return`${n}-${r.size+1}`}function Td(e){const t=[];if(!e.length)return[{index:-1,reason:"empty"}];const n=new Set;return e.forEach((r,o)=>{if(!r.key){t.push({index:o,reason:"missing_key"});return}xt.includes(r.key)&&t.push({index:o,reason:"reserved_key",key:r.key}),n.has(r.key)&&t.push({index:o,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 Id(e,t){return t.find(n=>n.key===e)?.requiresApproval===!0}function Od(e,t){if(!e)return;const n=t?.resolutions?.find(r=>r.key===e)?.positive;return n===void 0?void 0:n?"won":"lost"}function vd(e){return e.startDate??Number.MAX_SAFE_INTEGER}function Cd(e){return e.completedAt?"completed":e.startedAt?"active":"planned"}const Md=["statusKeys","typeKeys","labels","priority","assignees"],kd=["blockedOnly","watchingOnly","reportedByMe"],Nd=["priority","dueDate","updatedAt","createdAt","title","estimateSeconds"],Rd=["list","board","calendar","workload"],wd=["day","week","month"];function Dd(e){const t=e;if(!t||!wd.includes(t.every))return;const n=Math.floor(Number(t.interval??1));if(!(!Number.isFinite(n)||n<1||n>365))return{every:t.every,interval:n}}function qo(e,t){const n=new Date(e);if(t.every==="day")n.setDate(n.getDate()+t.interval);else if(t.every==="week")n.setDate(n.getDate()+7*t.interval);else{const r=n.getDate();n.setDate(1),n.setMonth(n.getMonth()+t.interval),n.setDate(Math.min(r,new Date(n.getFullYear(),n.getMonth()+1,0).getDate()))}return n.getTime()}function Ld(e,t,n){const r=qo(e.dueDate??n,t);return e.startDate===void 0||e.dueDate===void 0?{dueDate:r}:{dueDate:r,startDate:r-(e.dueDate-e.startDate)}}const xd=new Set(["image/png","image/jpeg","image/jpg","image/gif","image/webp"]),Pd=new Set(["text/plain","text/markdown","text/csv","application/json","text/html","application/xml","text/xml"]);function Qo(e){const t=(e??"").trim().toLowerCase().split(";")[0];return t?xd.has(t)?"image":t==="application/pdf"?"pdf":Pd.has(t)?"text":t.startsWith("audio/")?"audio":"unsupported":"unsupported"}const z=1024*1024,Jo={image:5*z,pdf:20*z,text:1*z,audio:20*z},$d=25*z,Kd=5;function Ud(e,t){const n=Qo(e);return n==="unsupported"?"unsupported":t>Jo[n]?"too-large":null}const Fd="ai-tool";function Bd(e){return e.access==="read"?"idempotent":e.reversible??"none"}function Pt(e){return e.access!=="read"&&e.effect!=="internal"}function Zo(e){return`${e.kind}:${e.id||e.url||e.title}`}function Gd(e,t=[]){const n=new Set(t),r=[],o=[];for(const i of e){const s=Zo(i);n.has(s)||(n.add(s),r.push(i),o.push(s))}return{sources:r,keys:o}}const Hd="assist-source",jd=["blocking","due","open"];function Wd(e,t){const[n,r]=(e.subjectKey??"").split(":");return n===t&&r?r:void 0}const un={blocking:0,due:1,open:2};function Vd(e,t){return un[e.band??"open"]-un[t.band??"open"]||(t.priority??0)-(e.priority??0)||e.id.localeCompare(t.id)}function Yd(e){return e.sessions.filter(t=>t.id!==e.exceptSessionId&&t.state==="connected"&&e.canHold(t.providerId))}function zd(e){return e.sessions.filter(t=>t.id!==e.exceptSessionId&&t.state==="connected"&&!e.canHold(t.providerId))}function Xd(e){return e.sessions.some(n=>n.id!==e.exceptSessionId&&(n.state==="connected"||n.state==="on_hold"))?{admit:!1,reason:"busy"}:{admit:!0}}function ei(e,t){const n=new Set(e.disabledIntents??[]),r=e.intentOverrides??{},o=t.intents.filter(s=>!n.has(s.intent)).map(s=>Qd(s,r[s.intent]));if(!e.extraIntents||e.extraIntents.length===0)return o;const i=new Set(o.map(s=>s.intent));for(const s of e.extraIntents)i.has(s.intent)||(o.push(s),i.add(s.intent));return o}function ti(e,t){const n={};for(const r of e.intents){if(!r.togglable)continue;const o=t?.[r.intent];n[r.intent]=o??r.defaultEnabled??!0}return n}function qd(e,t){const n=ti(e,t);return Object.entries(n).filter(([,r])=>!r).map(([r])=>r)}function Qd(e,t){return t?{intent:t.intent??e.intent,targetSchemes:t.targetSchemes??e.targetSchemes,transport:t.transport??e.transport}:e}function Jd(e,t){const n=[];for(const r of e){if(!r.enabled)continue;const o=t[r.providerId];if(o)for(const i of ei(r,o))n.push({channel:r,description:o,capability:i})}return n}function Zd(e,t){return t.filter(n=>n.capability.intent===e)}function ni(e,t){return t.filter(n=>n.capability.targetSchemes.includes(e))}function ef(e,t){return ni(e.scheme,t)}function tf(e,t,n){const r=[];for(const o of e)for(const i of n)i.capability.intent===t&&i.capability.targetSchemes.includes(o.scheme)&&r.push({channelIntent:i,endpoint:o});return r}var ri=(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))(ri||{});const nf={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 rf(e){return e?nf[e]??"note":"note"}const of="message_window",sf="message_templates",af={FROM:"from",TO:"to",CC:"cc",BCC:"bcc",ORGANIZER:"organizer",PRESENTER:"presenter",ATTENDEE:"attendee",OWNER:"owner",MEMBER:"member",GUEST:"guest",HOST:"host",PARTICIPANT:"participant"},cf=(e,t)=>({intent:e,...t}),lf="folder_management",uf="remote_search",df="message_reactions",ff={ok:!1,code:"UNSUPPORTED",message:"Provider does not support this op"},pf="connector",mf="context.collect",A=e=>({type:"string",description:e}),_=e=>({type:"number",description:e}),ue=e=>({type:"boolean",description:e}),k=A("Sheet name. Omit for the sheet the user is looking at."),dn=A("Slide id, as `inspect` reports it.");function E(e,t,n,r,o,i){return{op:e,kinds:t,summary:n,parameters:{type:"object",properties:r,required:o},undoable:i.undoable,visible:i.visible}}const X={undoable:!1,visible:!0},T={undoable:!0,visible:!0},fn={undoable:!1,visible:!0},Ce={undoable:!1,visible:!1},gf=[E("pdf.goToPage",["pdf"],"Scroll the viewer to a page.",{page:_("1-based page number.")},["page"],X),E("pdf.search",["pdf"],"Search the document and highlight the matches, as the find bar does.",{query:A("Text to find."),next:ue("Jump to the next match instead of the first.")},["query"],X),E("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"],X),E("pdf.fillField",["pdf"],"Fill one form field of a fillable PDF.",{field:A("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"],T),E("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"],fn),E("pdf.deletePages",["pdf"],"Remove pages, keeping the rest in order.",{pages:{type:"array",items:{type:"number"},description:"1-based page numbers."}},["pages"],fn),E("pdf.addNote",["pdf"],"Place a text note on a page. Written on save; not visible before that.",{page:_("1-based page number."),text:A("The note's text."),left:_("Distance from the left edge, in PDF points (72 per inch)."),top:_("Distance from the top edge, in PDF points."),width:_("Box width in points. Omit for a sensible default."),height:_("Box height in points. Omit for a sensible default."),fontSize:_("Font size in points. Omit for 12.")},["page","text","left","top"],Ce),E("pdf.highlightText",["pdf"],"Highlight a phrase on a page. Written on save; not visible before that.",{page:_("1-based page number."),text:A("The exact phrase to highlight, as it appears in the page's text."),occurrence:_("Which occurrence on that page, 1-based. Omit for the first.")},["page","text"],Ce)],hf=[E("sheet.setValues",["sheet"],"Write a block of values. The block's shape must match the range.",{sheet:k,range:A("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"],T),E("sheet.setFormula",["sheet"],"Put a formula in every cell of a range.",{sheet:k,range:A("A1 notation."),formula:A("Including the leading `=`.")},["range","formula"],T),E("sheet.setStyle",["sheet"],"Change the look of a range. Only the properties you pass are touched.",{sheet:k,range:A("A1 notation."),bold:ue("Bold on or off."),italic:ue("Italic on or off."),fontSize:_("Point size."),fontColor:A("CSS colour, e.g. `#b91c1c`."),background:A("CSS colour for the cell fill."),horizontalAlignment:{type:"string",enum:["left","center","right"],description:"Horizontal alignment."},numberFormat:A("Number format pattern, e.g. `#,##0.00` or `0%`.")},["range"],T),E("sheet.insertRows",["sheet"],"Insert empty rows, pushing the rest down.",{sheet:k,at:_("1-based row number to insert before."),count:_("How many. Omit for 1.")},["at"],T),E("sheet.deleteRows",["sheet"],"Delete rows, pulling the rest up.",{sheet:k,at:_("1-based first row to delete."),count:_("How many. Omit for 1.")},["at"],T),E("sheet.insertColumns",["sheet"],"Insert empty columns, pushing the rest right.",{sheet:k,at:_("1-based column number to insert before."),count:_("How many. Omit for 1.")},["at"],T),E("sheet.deleteColumns",["sheet"],"Delete columns, pulling the rest left.",{sheet:k,at:_("1-based first column to delete."),count:_("How many. Omit for 1.")},["at"],T),E("sheet.merge",["sheet"],"Merge a range into one cell.",{sheet:k,range:A("A1 notation.")},["range"],T),E("sheet.unmerge",["sheet"],"Break merged cells in a range apart.",{sheet:k,range:A("A1 notation.")},["range"],T),E("sheet.sort",["sheet"],"Sort a range on one of its columns.",{sheet:k,range:A("A1 notation covering the rows to sort, header excluded."),column:_("1-based column *within the range*, not within the sheet."),ascending:ue("Ascending. Omit for ascending.")},["range","column"],T),E("sheet.insertSheet",["sheet"],"Add a new sheet.",{name:A("Name for the new sheet.")},["name"],T),E("sheet.renameSheet",["sheet"],"Rename a sheet.",{sheet:A("Current name."),name:A("New name.")},["sheet","name"],T),E("sheet.deleteSheet",["sheet"],"Remove a sheet and everything on it.",{sheet:A("Name of the sheet to delete.")},["sheet"],T),E("sheet.activate",["sheet"],"Show the user a sheet and select a range on it.",{sheet:k,range:A("A1 notation to select. Omit to only switch sheets.")},[],X)],yf=[E("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:_("The offset the paragraph starts at, exactly as `inspect` prints it."),text:A("The new text for that paragraph. A newline starts a further paragraph.")},["at","text"],T),E("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:_("Character offset where the replaced text starts, as `inspect` reports offsets."),end:_("Character offset just past the last character to replace."),text:A("The replacement text. A newline starts a new paragraph.")},["start","end","text"],T),E("word.insertText",["word"],"Insert text at a character offset, without removing anything.",{index:_("Character offset, as `inspect` reports offsets."),text:A("The text to insert.")},["index","text"],T),E("word.appendText",["word"],"Add text at the end of the document.",{text:A("The text to append.")},["text"],T),E("word.insertParagraph",["word"],"Start a new paragraph, optionally with text in it.",{text:A("Paragraph text. Newlines start further paragraphs."),index:_("Character offset to insert at. Omit for the end of the document.")},[],T),E("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:_("Start character offset."),end:_("End character offset. Omit for a caret.")},["start"],X)],Ef=[E("slides.setText",["slides"],"Replace the text of one shape. Written on save; not visible before that, and not undoable.",{slide:dn,element:A("Element id, as `inspect` reports it."),text:A("The new text.")},["slide","element","text"],Ce),E("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:dn,element:A("Element id."),left:_("Distance from the left edge, in pixels."),top:_("Distance from the top edge, in pixels."),width:_("Width in pixels."),height:_("Height in pixels.")},["slide","element"],Ce)],$t=[...gf,...hf,...yf,...Ef];function _f(e){return $t.filter(t=>t.kinds.includes(e))}function Af(e){return $t.find(t=>t.op===e)}const pn=/(?: {2,}|\\)$/,Sf=/^\*\*([^*]+)\*\*\s+(.*)$/;function mn(e){const t=Sf.exec(e);return t?{lead:t[1],text:t[2]}:{text:e}}function bf(e){const t=(e??"").replace(/\r\n/g,`
|
|
17
|
+
Hierbij onze creditnota. De onderstaande bedragen worden met u verrekend.`},ln={quote:"Genoemde bedragen zijn exclusief btw tenzij anders vermeld. Deze offerte is geldig tot {quote.valid_until}.",order:"Genoemde bedragen zijn exclusief btw tenzij anders vermeld.",invoice:"Genoemde bedragen zijn exclusief btw tenzij anders vermeld.",credit_note:"Genoemde bedragen zijn exclusief btw tenzij anders vermeld."},Bu=$o("quote"),Ko=xe.map(e=>e.key),Uo="product";function Fo(e,t){return`${e}:${t}`}function Gu(e){return`${Uo}:${e}`}function Hu(e,t){const n=e.businessEntityId||t;if(n)return`/apps/sales/${n}/${C(e.kindKey).path}/${e.id}`}function ju(e,t){const n=e.businessEntityId||t;return n?`/apps/sales/${n}/product/${e.id}`:void 0}function Wu(e){const t=e.indexOf(":");if(t<0)return;const n=e.slice(0,t);return Ko.includes(n)?e.slice(t+1):void 0}function Vu(e){const t=new Set([Fo(e.kindKey,e.id)]);return e.companyId&&t.add(`company:${e.companyId}`),e.contactId&&t.add(`contact:${e.contactId}`),e.dealItemId&&t.add(`work_item:${e.dealItemId}`),Array.from(t)}const Yu=4;function zu(e,t){const n=String(t).padStart(Math.max(1,e.padding),"0");return`${e.prefix}${e.period?`${e.period}-`:""}${n}`}function Xu(e,t=Date.now()){return e==="year"?String(new Date(t).getFullYear()):""}const qu=["cash","credit","direct_debit","card","other"];function Qu(e,t){return e+Math.max(0,Math.round(t))*24*60*60*1e3}function Ju(e){return{code:e.code,label:e.label,method:e.method,dueDays:e.dueDays}}const Zu=[{code:"14D",label:"Binnen 14 dagen",method:"credit",dueDays:14,isDefault:!0,order:0},{code:"30D",label:"Binnen 30 dagen",method:"credit",dueDays:30,order:1},{code:"CONTANT",label:"Contant",method:"cash",dueDays:0,order:2}];function ed(e){return e.type==="agent"}const Bo=["communication:interactions:created","communication:interactions:updated","communication:activities:created","communication:activities:updated"];function td(e){return Bo.includes(e)}const nd="WORK_COMMENT_ADDED",rd="WORK_ITEM_ASSIGNED",od="WORK_ITEM_STATUS_CHANGED";function id(e,t){const n=r=>{const o=new Date(r);return o.setHours(0,0,0,0),o.getTime()};return Math.round((n(e)-n(t))/ar)}function sd(e,t){if(e.closedAt!=null)return{score:P,reasons:[]};const n=t.remindersById?.[e.id];if(n&&n.remindAt>t.now)return{score:P,reasons:[]};let r=0;const o=[],i=e.priority??"normal";if(q[i]>0&&(r+=q[i],o.push(`priority:${i}`)),typeof e.dueDate=="number"){const s=id(e.dueDate,t.now);s<0?(r+=35,o.push("overdue")):s===0&&(r+=20,o.push("due-today"))}return e.source?.initiator==="system"&&e.source.systemReason&&(r+=15,o.push(`auto:${e.source.systemReason}`)),{score:r,reasons:o}}const Pe=[{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"},{key:"milestone",label:"type_milestone"}],ad=Pe.map(e=>e.key);function cd(e){return e?.types?.length?e.types:Pe}function ld(e,t){return t.find(n=>n.key===e)}function ud(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("milestone")||t.includes("mijlpaal")?"milestone":t.includes("task")?"task":null:null}function dd(...e){return e.map(t=>Pe.find(n=>n.key===t)).filter(t=>!!t)}const Go="work_item",Ho="work_project",jo="work_activity",fd="work_cycle";function Wo(e){return`${Go}:${e}`}function Lt(e){return`${Ho}:${e}`}function pd(e){return`${jo}:${e}`}function md(e,t,n){const r=`${e}-${t}`;return n?`${r}-${n}`:r}function gd(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 hd(e){return(e||"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase().replace(/[^A-Z0-9]/g,"").slice(0,3)||"PRJ"}function yd(e,t=25){const n=new Set([Wo(e.id)]);e.projectId&&n.add(Lt(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 Ed(e){return[Lt(e.id)]}const $e=[{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}],xt=$e.map(e=>e.key);function Vo(e){return e?.statuses?.length?e.statuses:$e}function Yo(e,t){return t.find(n=>n.key===e)?.category??"todo"}function _d(e,t){return t.find(n=>n.key===e)}function Ad(e){const t=Vo(e),n=e?.defaultStatusKey;return n&&t.some(r=>r.key===n)?n:zo(t)[0]?.key??$e[0].key}function zo(e){return[...e].sort((t,n)=>{const r=(t.order??0)-(n.order??0);return r!==0?r:(t.label||"").localeCompare(n.label||"")})}function Sd(e,t){return Yo(e,t)==="done"}function Xo(e){return(e||"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").slice(0,48).replace(/^-+|-+$/g,"")}function bd(e,t){const n=Xo(e)||"status",r=new Set([...t,...xt]);if(!r.has(n))return n;for(let o=2;o<500;o++){const i=`${n}-${o}`;if(!r.has(i))return i}return`${n}-${r.size+1}`}function Td(e){const t=[];if(!e.length)return[{index:-1,reason:"empty"}];const n=new Set;return e.forEach((r,o)=>{if(!r.key){t.push({index:o,reason:"missing_key"});return}xt.includes(r.key)&&t.push({index:o,reason:"reserved_key",key:r.key}),n.has(r.key)&&t.push({index:o,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 Id(e,t){return t.find(n=>n.key===e)?.requiresApproval===!0}function Od(e,t){if(!e)return;const n=t?.resolutions?.find(r=>r.key===e)?.positive;return n===void 0?void 0:n?"won":"lost"}function vd(e){return e.startDate??Number.MAX_SAFE_INTEGER}function Cd(e){return e.completedAt?"completed":e.startedAt?"active":"planned"}const Md=["statusKeys","typeKeys","labels","priority","assignees"],kd=["blockedOnly","watchingOnly","reportedByMe"],Nd=["priority","dueDate","updatedAt","createdAt","title","estimateSeconds"],Rd=["list","board","calendar","workload"],wd=["day","week","month"];function Dd(e){const t=e;if(!t||!wd.includes(t.every))return;const n=Math.floor(Number(t.interval??1));if(!(!Number.isFinite(n)||n<1||n>365))return{every:t.every,interval:n}}function qo(e,t){const n=new Date(e);if(t.every==="day")n.setDate(n.getDate()+t.interval);else if(t.every==="week")n.setDate(n.getDate()+7*t.interval);else{const r=n.getDate();n.setDate(1),n.setMonth(n.getMonth()+t.interval),n.setDate(Math.min(r,new Date(n.getFullYear(),n.getMonth()+1,0).getDate()))}return n.getTime()}function Ld(e,t,n){const r=qo(e.dueDate??n,t);return e.startDate===void 0||e.dueDate===void 0?{dueDate:r}:{dueDate:r,startDate:r-(e.dueDate-e.startDate)}}const xd=new Set(["image/png","image/jpeg","image/jpg","image/gif","image/webp"]),Pd=new Set(["text/plain","text/markdown","text/csv","application/json","text/html","application/xml","text/xml"]);function Qo(e){const t=(e??"").trim().toLowerCase().split(";")[0];return t?xd.has(t)?"image":t==="application/pdf"?"pdf":Pd.has(t)?"text":t.startsWith("audio/")?"audio":"unsupported":"unsupported"}const z=1024*1024,Jo={image:5*z,pdf:20*z,text:1*z,audio:20*z},$d=25*z,Kd=5;function Ud(e,t){const n=Qo(e);return n==="unsupported"?"unsupported":t>Jo[n]?"too-large":null}const Fd="ai-tool";function Bd(e){return e.access==="read"?"idempotent":e.reversible??"none"}function Pt(e){return e.access!=="read"&&e.effect!=="internal"}function Zo(e){return`${e.kind}:${e.id||e.url||e.title}`}function Gd(e,t=[]){const n=new Set(t),r=[],o=[];for(const i of e){const s=Zo(i);n.has(s)||(n.add(s),r.push(i),o.push(s))}return{sources:r,keys:o}}const Hd="assist-source",jd=["blocking","due","open"];function Wd(e,t){const[n,r]=(e.subjectKey??"").split(":");return n===t&&r?r:void 0}const un={blocking:0,due:1,open:2};function Vd(e,t){return un[e.band??"open"]-un[t.band??"open"]||(t.priority??0)-(e.priority??0)||e.id.localeCompare(t.id)}function Yd(e){return e.sessions.filter(t=>t.id!==e.exceptSessionId&&t.state==="connected"&&e.canHold(t.providerId))}function zd(e){return e.sessions.filter(t=>t.id!==e.exceptSessionId&&t.state==="connected"&&!e.canHold(t.providerId))}function Xd(e){return e.sessions.some(n=>n.id!==e.exceptSessionId&&(n.state==="connected"||n.state==="on_hold"))?{admit:!1,reason:"busy"}:{admit:!0}}function ei(e,t){const n=new Set(e.disabledIntents??[]),r=e.intentOverrides??{},o=t.intents.filter(s=>!n.has(s.intent)).map(s=>Qd(s,r[s.intent]));if(!e.extraIntents||e.extraIntents.length===0)return o;const i=new Set(o.map(s=>s.intent));for(const s of e.extraIntents)i.has(s.intent)||(o.push(s),i.add(s.intent));return o}function ti(e,t){const n={};for(const r of e.intents){if(!r.togglable)continue;const o=t?.[r.intent];n[r.intent]=o??r.defaultEnabled??!0}return n}function qd(e,t){const n=ti(e,t);return Object.entries(n).filter(([,r])=>!r).map(([r])=>r)}function Qd(e,t){return t?{intent:t.intent??e.intent,targetSchemes:t.targetSchemes??e.targetSchemes,transport:t.transport??e.transport}:e}function Jd(e,t){const n=[];for(const r of e){if(!r.enabled)continue;const o=t[r.providerId];if(o)for(const i of ei(r,o))n.push({channel:r,description:o,capability:i})}return n}function Zd(e,t){return t.filter(n=>n.capability.intent===e)}function ni(e,t){return t.filter(n=>n.capability.targetSchemes.includes(e))}function ef(e,t){return ni(e.scheme,t)}function tf(e,t,n){const r=[];for(const o of e)for(const i of n)i.capability.intent===t&&i.capability.targetSchemes.includes(o.scheme)&&r.push({channelIntent:i,endpoint:o});return r}var ri=(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))(ri||{});const nf={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 rf(e){return e?nf[e]??"note":"note"}const of="message_window",sf="message_templates",af={FROM:"from",TO:"to",CC:"cc",BCC:"bcc",ORGANIZER:"organizer",PRESENTER:"presenter",ATTENDEE:"attendee",OWNER:"owner",MEMBER:"member",GUEST:"guest",HOST:"host",PARTICIPANT:"participant"},cf=(e,t)=>({intent:e,...t}),lf="remote_search",uf="message_reactions",df={ok:!1,code:"UNSUPPORTED",message:"Provider does not support this op"},ff="connector",pf="context.collect",A=e=>({type:"string",description:e}),_=e=>({type:"number",description:e}),ue=e=>({type:"boolean",description:e}),k=A("Sheet name. Omit for the sheet the user is looking at."),dn=A("Slide id, as `inspect` reports it.");function E(e,t,n,r,o,i){return{op:e,kinds:t,summary:n,parameters:{type:"object",properties:r,required:o},undoable:i.undoable,visible:i.visible}}const X={undoable:!1,visible:!0},T={undoable:!0,visible:!0},fn={undoable:!1,visible:!0},Ce={undoable:!1,visible:!1},mf=[E("pdf.goToPage",["pdf"],"Scroll the viewer to a page.",{page:_("1-based page number.")},["page"],X),E("pdf.search",["pdf"],"Search the document and highlight the matches, as the find bar does.",{query:A("Text to find."),next:ue("Jump to the next match instead of the first.")},["query"],X),E("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"],X),E("pdf.fillField",["pdf"],"Fill one form field of a fillable PDF.",{field:A("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"],T),E("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"],fn),E("pdf.deletePages",["pdf"],"Remove pages, keeping the rest in order.",{pages:{type:"array",items:{type:"number"},description:"1-based page numbers."}},["pages"],fn),E("pdf.addNote",["pdf"],"Place a text note on a page. Written on save; not visible before that.",{page:_("1-based page number."),text:A("The note's text."),left:_("Distance from the left edge, in PDF points (72 per inch)."),top:_("Distance from the top edge, in PDF points."),width:_("Box width in points. Omit for a sensible default."),height:_("Box height in points. Omit for a sensible default."),fontSize:_("Font size in points. Omit for 12.")},["page","text","left","top"],Ce),E("pdf.highlightText",["pdf"],"Highlight a phrase on a page. Written on save; not visible before that.",{page:_("1-based page number."),text:A("The exact phrase to highlight, as it appears in the page's text."),occurrence:_("Which occurrence on that page, 1-based. Omit for the first.")},["page","text"],Ce)],gf=[E("sheet.setValues",["sheet"],"Write a block of values. The block's shape must match the range.",{sheet:k,range:A("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"],T),E("sheet.setFormula",["sheet"],"Put a formula in every cell of a range.",{sheet:k,range:A("A1 notation."),formula:A("Including the leading `=`.")},["range","formula"],T),E("sheet.setStyle",["sheet"],"Change the look of a range. Only the properties you pass are touched.",{sheet:k,range:A("A1 notation."),bold:ue("Bold on or off."),italic:ue("Italic on or off."),fontSize:_("Point size."),fontColor:A("CSS colour, e.g. `#b91c1c`."),background:A("CSS colour for the cell fill."),horizontalAlignment:{type:"string",enum:["left","center","right"],description:"Horizontal alignment."},numberFormat:A("Number format pattern, e.g. `#,##0.00` or `0%`.")},["range"],T),E("sheet.insertRows",["sheet"],"Insert empty rows, pushing the rest down.",{sheet:k,at:_("1-based row number to insert before."),count:_("How many. Omit for 1.")},["at"],T),E("sheet.deleteRows",["sheet"],"Delete rows, pulling the rest up.",{sheet:k,at:_("1-based first row to delete."),count:_("How many. Omit for 1.")},["at"],T),E("sheet.insertColumns",["sheet"],"Insert empty columns, pushing the rest right.",{sheet:k,at:_("1-based column number to insert before."),count:_("How many. Omit for 1.")},["at"],T),E("sheet.deleteColumns",["sheet"],"Delete columns, pulling the rest left.",{sheet:k,at:_("1-based first column to delete."),count:_("How many. Omit for 1.")},["at"],T),E("sheet.merge",["sheet"],"Merge a range into one cell.",{sheet:k,range:A("A1 notation.")},["range"],T),E("sheet.unmerge",["sheet"],"Break merged cells in a range apart.",{sheet:k,range:A("A1 notation.")},["range"],T),E("sheet.sort",["sheet"],"Sort a range on one of its columns.",{sheet:k,range:A("A1 notation covering the rows to sort, header excluded."),column:_("1-based column *within the range*, not within the sheet."),ascending:ue("Ascending. Omit for ascending.")},["range","column"],T),E("sheet.insertSheet",["sheet"],"Add a new sheet.",{name:A("Name for the new sheet.")},["name"],T),E("sheet.renameSheet",["sheet"],"Rename a sheet.",{sheet:A("Current name."),name:A("New name.")},["sheet","name"],T),E("sheet.deleteSheet",["sheet"],"Remove a sheet and everything on it.",{sheet:A("Name of the sheet to delete.")},["sheet"],T),E("sheet.activate",["sheet"],"Show the user a sheet and select a range on it.",{sheet:k,range:A("A1 notation to select. Omit to only switch sheets.")},[],X)],hf=[E("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:_("The offset the paragraph starts at, exactly as `inspect` prints it."),text:A("The new text for that paragraph. A newline starts a further paragraph.")},["at","text"],T),E("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:_("Character offset where the replaced text starts, as `inspect` reports offsets."),end:_("Character offset just past the last character to replace."),text:A("The replacement text. A newline starts a new paragraph.")},["start","end","text"],T),E("word.insertText",["word"],"Insert text at a character offset, without removing anything.",{index:_("Character offset, as `inspect` reports offsets."),text:A("The text to insert.")},["index","text"],T),E("word.appendText",["word"],"Add text at the end of the document.",{text:A("The text to append.")},["text"],T),E("word.insertParagraph",["word"],"Start a new paragraph, optionally with text in it.",{text:A("Paragraph text. Newlines start further paragraphs."),index:_("Character offset to insert at. Omit for the end of the document.")},[],T),E("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:_("Start character offset."),end:_("End character offset. Omit for a caret.")},["start"],X)],yf=[E("slides.setText",["slides"],"Replace the text of one shape. Written on save; not visible before that, and not undoable.",{slide:dn,element:A("Element id, as `inspect` reports it."),text:A("The new text.")},["slide","element","text"],Ce),E("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:dn,element:A("Element id."),left:_("Distance from the left edge, in pixels."),top:_("Distance from the top edge, in pixels."),width:_("Width in pixels."),height:_("Height in pixels.")},["slide","element"],Ce)],$t=[...mf,...gf,...hf,...yf];function Ef(e){return $t.filter(t=>t.kinds.includes(e))}function _f(e){return $t.find(t=>t.op===e)}const pn=/(?: {2,}|\\)$/,Af=/^\*\*([^*]+)\*\*\s+(.*)$/;function mn(e){const t=Af.exec(e);return t?{lead:t[1],text:t[2]}:{text:e}}function Sf(e){const t=(e??"").replace(/\r\n/g,`
|
|
18
18
|
`).split(`
|
|
19
19
|
`),n=[];let r=null;const o=()=>{r&&n.push({type:"list",style:r.style,items:r.items}),r=null},i=(f,p)=>{r&&r.style!==f&&o(),r?r.items.push(mn(p)):r={style:f,items:[mn(p)]}};let s=[],a=[];const l=()=>{if(s.length){const f=s.join("").trim();f&&n.push({type:"paragraph",text:f}),s=[]}},c=()=>{a.length&&(n.push({type:"quote",text:a.join(`
|
|
20
20
|
`)}),a=[])},d=()=>{l(),c(),o()};let u=0;for(;u<t.length;){const f=t[u]??"",p=f.match(/^```(\w*)\s*$/);if(p){d();const h=[];for(u++;u<t.length&&!/^```\s*$/.test(t[u]??"");)h.push(t[u]??""),u++;u++,n.push({type:"code",...p[1]?{lang:p[1]}:{},text:h.join(`
|
|
21
21
|
`)});continue}const y=f.match(/^(#{1,3})\s+(.*)$/);if(y){d(),n.push({type:"heading",level:y[1].length,text:y[2].trim()}),u++;continue}const m=f.match(/^!\[([^\]]*)\]\(([^)\s]+)\)\s*$/);if(m){d(),n.push({type:"image",url:m[2],...m[1]?{alt:m[1]}:{}}),u++;continue}if(/^\s*[-*]\s+/.test(f)){l(),c(),i("bulleted",f.replace(/^\s*[-*]\s+/,"")),u++;continue}if(/^\s*\d+\.\s+/.test(f)){l(),c(),i("numbered",f.replace(/^\s*\d+\.\s+/,"")),u++;continue}if(/^\s*(-{3,}|\*{3,}|_{3,})\s*$/.test(f)){d(),n.push({type:"divider"}),u++;continue}if(/^>\s?/.test(f)){l(),o(),a.push(f.replace(/^>\s?/,"")),u++;continue}if(f.trim()===""){d(),u++;continue}c(),o();const b=pn.test(f);s.push(f.replace(pn,"").trim()+(b?`
|
|
22
|
-
`:" ")),u++}return d(),n}function
|
|
22
|
+
`:" ")),u++}return d(),n}function bf(e,t){return Et(e,t).replace(/^```.*$/gm,"").replace(/^\|[\s:|-]*\|$/gm,"").replace(/[ \t]*\|[ \t]*/g," ").replace(/^[ \t]*(#{1,6}|>|[-*+]|\d+\.)[ \t]+/gm,"").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/(\*\*|__|\*|_|`|~~)/g,"").replace(/[ \t]+$/gm,"").replace(/\n{3,}/g,`
|
|
23
23
|
|
|
24
|
-
`).trim()}const If="documents.describe",Of="documents.inspect",vf="documents.apply";function Cf(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 Mf="installation-id";function kf(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 Nf="notification-source",Rf=(e,t)=>`${e}.pref.${t}`,wf={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","calendar.read","calendar.write","channel.read","channel.write","folder.read","folder.write","inbox.read","inbox.write","interaction.read","interaction.write","reminder.read","template.read","template.write"],context:["attribute.read","attribute.write","custom-field.read","custom-field.write","kind.read","kind.write","memory.read","memory.write","reaction.read","reaction.write","topic.read","topic.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"]},Kt=9e4,oi=["out_of_office"],ii=e=>oi.includes(e);function Df(e,t,n){const r=n-e<Kt,o=t?.status&&(!t.expiresAt||t.expiresAt>n)?t:void 0;if(!o?.status)return{online:r,status:r?"available":"offline"};const i=o.status;return!r&&!ii(i)?{online:!1,status:"offline"}:{online:r,status:i,message:o.message}}function Lf(e,t){const n=t-e.lastSeenAt<Kt,r=n||ii(e.status)?e.status:"offline";return n===e.online&&r===e.status?e:{...e,online:n,status:r}}function xf(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 Pf(e){return e.providerAvailable&&e.allowed}const $f="resources.describe",Kf="resources.search",Uf="resources.resolve",Ff="resources.attached";function Bf(e){const t=e.indexOf(":");return t===-1?e:e.slice(0,t)}const Gf="/provider/scope/related",Hf="/provider/scope/read",jf="/provider/scope/acts",Ut="auth";function Ft(e){const t=typeof e=="string"?e.match(/apps\/([^/?#]+)/):null;return t?t[1]:null}function Wf(e){const t=Ft(e);return t?t!==Ut:typeof e=="string"&&e.startsWith("/wake")}function Vf(e){return typeof e!="string"||e===""||e==="/"?!0:Ft(e)===Ut}function Yf(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function si(e){const n=e.split("/").filter(Boolean).map(r=>r.startsWith(":")?r.endsWith("?")?"(?:/[^/]+)?":"/[^/]+":`/${Yf(r)}`).join("");return new RegExp(`^${n}\\/?$`)}function ai(e,t){const n=e.split("/").filter(Boolean),r=t.split("/").filter(Boolean),o={};return n.forEach((i,s)=>{if(i.startsWith(":")){const a=i.endsWith("?")?i.slice(1,-1):i.slice(1),l=r[s];l&&(o[a]=l)}}),o}function ci(e){return e.publicBasePath??`/apps/${e.name}`}function zf(e){const t=[];for(const n of e){if(!n?.name)continue;const r=ci(n);for(const o of n.routes??[]){if(!o.public)continue;const i=o.path==="/"?"":o.path;t.push({appName:n.name,resource:o.resource,pattern:`${r}${i}`,props:o.props})}}return t}function li(e,t){const n=e.split("/").filter(Boolean),r=t.split("/").filter(Boolean);for(let o=0;o<Math.min(n.length,r.length);o++){const i=n[o].startsWith(":"),s=r[o].startsWith(":");if(i!==s)return s}return n.length>r.length}function ui(e,t){if(typeof e!="string")return null;let n=null;for(const r of t)si(r.pattern).test(e)&&(!n||li(r.pattern,n.pattern))&&(n=r);return n?{...n,params:{...n.props,...ai(n.pattern,e)}}:null}function Xf(e,t){return ui(e,t)!==null}const qf=10*1024*1024,Qf=25*1024*1024,Jf="sync-target",Zf=20;function Bt(e,t){const n=Array.isArray(t)?t.find(r=>r.name===e.name)?.policy:void 0;return n?n!=="read":e.access?e.access!=="read":!0}function di(e,t,n){return Bt(e,n)?t.guarded==="all"||t.guarded?.has(e.name)?!0:t.autonomy==="auto"?!1:t.autonomy==="outward"?Pt(e):!0:!1}function ep(e){return e.produces==="draft"}function tp(e,t){if(t.allowed){const n=t.personalTools==="allow"&&e.personal===!0;if(!t.allowed.has(e.name)&&!n)return"hidden"}return t.narrow&&!t.narrow.has(e.name)||!t.attended&&(e.personal===!0||e.surface==="interactive")||t.readOnly&&e.access!=="read"||t.mode==="ask"&&Bt(e)||t.mode==="draft"&&(Pt(e)||e.access!=="read"&&!ep(e))?"hidden":t.gate&&di(e,t.gate,t.policy)?"held":"free"}const np={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]"]},fi=e=>{let t=e;return Object.values(np).forEach(n=>{n.forEach(r=>{t=t.replaceAll(r,"")})}),t=t.replace(/\(.*?\)/g,""),t=t.replace(/\[.*?\]/g,""),t},pi=6e4,mi=8e3,gi=2,hi=.4,rp=3,op=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 yi(e){const t=new Set;for(const n of e.toLowerCase().split(/[^a-z0-9À-ɏ]+/))n.length<rp||op.has(n)||t.add(n);return[...t]}function Ei(e,t){if(!e.length)return 0;if(!t.length)return 1;const n=new Set(t),r=new Set(e);let o=0;for(const i of r)n.has(i)||(o+=1);return o/r.size}function _i(e,t=pi){const n=e.filter(s=>!s.partial&&typeof s.text=="string");if(!n.length)return{text:"",segmentCount:0};const o=n.reduce((s,a)=>Math.max(s,a.endedAt??0),0)-t;return{text:n.filter(s=>(s.endedAt??0)>=o).map(s=>fi(s.text).trim()).filter(Boolean).join(" ").replace(/\s+/g," ").trim(),segmentCount:n.length}}const Ai=60;function ip(e,t,n=Ai){const r=new Set(e),o=[...e];for(const i of t)!i||r.has(i)||(r.add(i),o.push(i));return o.slice(-n)}function sp(e){const{segments:t,now:n,state:r}=e;if(r.lastTriggerAt&&n-r.lastTriggerAt<mi)return{trigger:!1,reason:"too_soon"};const o=_i(t,e.windowMs);if(!o.text)return{trigger:!1,reason:"no_speech"};const i=o.segmentCount-(r.lastSegmentCount??0);if(r.lastQueryTerms&&i<gi)return{trigger:!1,reason:"too_few_new"};const s=yi(o.text);return s.length?r.lastQueryTerms?.length&&Ei(s,r.lastQueryTerms)<hi?{trigger:!1,reason:"same_topic"}:{trigger:!0,text:o.text,terms:s,segmentCount:o.segmentCount}:{trigger:!1,reason:"no_speech"}}const ap=["personal","organization","connections","flows","work","administration","ai"],cp="navNotice",Ke={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}},Si="NL",lp=15,up=8,dp=Array.from(new Set(Object.values(Ke).map(e=>e.callingCode))).sort((e,t)=>t.length-e.length);function gn(e){if(e)return Ke[e.trim().toUpperCase()]}function de(e,t){return e.length>=t.nsnMin&&e.length<=t.nsnMax}function hn(e){if(e.length>lp)return null;for(const t of dp){if(!e.startsWith(t))continue;const n=e.slice(t.length);for(const r of Object.values(Ke)){if(r.callingCode!==t)continue;const o=r.trunkPrefix,i=o&&n.startsWith(o)?n.slice(o.length):n;if(de(i,r))return`+${t}${i}`}return null}return e.length<up?null:`+${e}`}function fp(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 pp(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 pt(e,t){if(!e)return null;const n=fp(e);if(!n)return null;const r=n.startsWith("+"),o=n.replace(/\D/g,"");if(!o)return null;if(r)return hn(o);if(o.startsWith("00"))return hn(o.slice(2));const i=gn(t)??gn(Si);if(!i)return null;const s=i.trunkPrefix;if(s&&o.startsWith(s)){const a=o.slice(s.length);return de(a,i)?`+${i.callingCode}${a}`:null}if(o.startsWith(i.callingCode)){const a=o.slice(i.callingCode.length);if(de(a,i))return`+${i.callingCode}${a}`}return!s&&de(o,i)?`+${i.callingCode}${o}`:null}function mp(e,t=9){const n=(e??"").replace(/\D/g,"");return n.length<t?null:n.slice(-t)}function Gt(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],o=t.slice(n+1);return!r||!o.includes(".")?null:`${r}@${o}`}function gp(e){const t=Gt(e);return t?t.slice(t.lastIndexOf("@")+1):null}const hp=new Set(["co.uk","org.uk","gov.uk","ac.uk","com.au","co.nz","com.br","co.za"]);function bi(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 hp.has(n)&&t.length>=3?t.slice(-3).join("."):n}const Ti=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 yp(e){const t=bi(e);return t?Ti.has(t):!1}function Ep(e){if(!e)return!1;const t=e.trim().toLowerCase();return t==="tel"||t==="sms"||t==="whatsapp"||t==="fax"}function _p(e,t,n){if(!e||!t)return null;const r=e.trim().toLowerCase();if(r==="tel"||r==="sms"||r==="whatsapp"){const i=pt(t,n);return i?`tel:${i}`:null}if(r==="fax"){const i=pt(t,n);return i?`fax:${i}`:null}if(r==="mailto"||r==="email"){const i=Gt(t);return i?`mailto:${i}`:null}const o=t.trim().toLowerCase();return o?`${r}:${o}`:null}const Ap=[/<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],yn=/^\s*(?:>+\s*)?(?:from|van|sent|verzonden|to|aan|cc|subject|onderwerp|date|datum)\s*:/i,Sp=/^\s*(?:on|op)\b.{0,200}?\b(?:wrote|schreef|geschreven)\s*:?\s*$/i;function bp(e){const t=e.split(`
|
|
25
|
-
`);for(let n=0;n<t.length;n++)if(
|
|
26
|
-
`).trim();return e}const
|
|
24
|
+
`).trim()}const Tf="documents.describe",If="documents.inspect",Of="documents.apply";function vf(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 Cf="installation-id";function Mf(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 kf="notification-source",Nf=(e,t)=>`${e}.pref.${t}`,Rf={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","calendar.read","calendar.write","channel.read","channel.write","inbox.read","inbox.write","interaction.read","interaction.write","reminder.read","template.read","template.write"],context:["attribute.read","attribute.write","custom-field.read","custom-field.write","kind.read","kind.write","memory.read","memory.write","reaction.read","reaction.write","topic.read","topic.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"]},Kt=9e4,oi=["out_of_office"],ii=e=>oi.includes(e);function wf(e,t,n){const r=n-e<Kt,o=t?.status&&(!t.expiresAt||t.expiresAt>n)?t:void 0;if(!o?.status)return{online:r,status:r?"available":"offline"};const i=o.status;return!r&&!ii(i)?{online:!1,status:"offline"}:{online:r,status:i,message:o.message}}function Df(e,t){const n=t-e.lastSeenAt<Kt,r=n||ii(e.status)?e.status:"offline";return n===e.online&&r===e.status?e:{...e,online:n,status:r}}function Lf(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 xf(e){return e.providerAvailable&&e.allowed}const Pf="resources.describe",$f="resources.search",Kf="resources.resolve",Uf="resources.attached";function Ff(e){const t=e.indexOf(":");return t===-1?e:e.slice(0,t)}const Bf="/provider/scope/related",Gf="/provider/scope/read",Hf="/provider/scope/acts",Ut="auth";function Ft(e){const t=typeof e=="string"?e.match(/apps\/([^/?#]+)/):null;return t?t[1]:null}function jf(e){const t=Ft(e);return t?t!==Ut:typeof e=="string"&&e.startsWith("/wake")}function Wf(e){return typeof e!="string"||e===""||e==="/"?!0:Ft(e)===Ut}function Vf(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function si(e){const n=e.split("/").filter(Boolean).map(r=>r.startsWith(":")?r.endsWith("?")?"(?:/[^/]+)?":"/[^/]+":`/${Vf(r)}`).join("");return new RegExp(`^${n}\\/?$`)}function ai(e,t){const n=e.split("/").filter(Boolean),r=t.split("/").filter(Boolean),o={};return n.forEach((i,s)=>{if(i.startsWith(":")){const a=i.endsWith("?")?i.slice(1,-1):i.slice(1),l=r[s];l&&(o[a]=l)}}),o}function ci(e){return e.publicBasePath??`/apps/${e.name}`}function Yf(e){const t=[];for(const n of e){if(!n?.name)continue;const r=ci(n);for(const o of n.routes??[]){if(!o.public)continue;const i=o.path==="/"?"":o.path;t.push({appName:n.name,resource:o.resource,pattern:`${r}${i}`,props:o.props})}}return t}function li(e,t){const n=e.split("/").filter(Boolean),r=t.split("/").filter(Boolean);for(let o=0;o<Math.min(n.length,r.length);o++){const i=n[o].startsWith(":"),s=r[o].startsWith(":");if(i!==s)return s}return n.length>r.length}function ui(e,t){if(typeof e!="string")return null;let n=null;for(const r of t)si(r.pattern).test(e)&&(!n||li(r.pattern,n.pattern))&&(n=r);return n?{...n,params:{...n.props,...ai(n.pattern,e)}}:null}function zf(e,t){return ui(e,t)!==null}const Xf=10*1024*1024,qf=25*1024*1024,Qf="sync-target",Jf=20;function Bt(e,t){const n=Array.isArray(t)?t.find(r=>r.name===e.name)?.policy:void 0;return n?n!=="read":e.access?e.access!=="read":!0}function di(e,t,n){return Bt(e,n)?t.guarded==="all"||t.guarded?.has(e.name)?!0:t.autonomy==="auto"?!1:t.autonomy==="outward"?Pt(e):!0:!1}function Zf(e){return e.produces==="draft"}function ep(e,t){if(t.allowed){const n=t.personalTools==="allow"&&e.personal===!0;if(!t.allowed.has(e.name)&&!n)return"hidden"}return t.narrow&&!t.narrow.has(e.name)||!t.attended&&(e.personal===!0||e.surface==="interactive")||t.readOnly&&e.access!=="read"||t.mode==="ask"&&Bt(e)||t.mode==="draft"&&(Pt(e)||e.access!=="read"&&!Zf(e))?"hidden":t.gate&&di(e,t.gate,t.policy)?"held":"free"}const tp={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]"]},fi=e=>{let t=e;return Object.values(tp).forEach(n=>{n.forEach(r=>{t=t.replaceAll(r,"")})}),t=t.replace(/\(.*?\)/g,""),t=t.replace(/\[.*?\]/g,""),t},pi=6e4,mi=8e3,gi=2,hi=.4,np=3,rp=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 yi(e){const t=new Set;for(const n of e.toLowerCase().split(/[^a-z0-9À-ɏ]+/))n.length<np||rp.has(n)||t.add(n);return[...t]}function Ei(e,t){if(!e.length)return 0;if(!t.length)return 1;const n=new Set(t),r=new Set(e);let o=0;for(const i of r)n.has(i)||(o+=1);return o/r.size}function _i(e,t=pi){const n=e.filter(s=>!s.partial&&typeof s.text=="string");if(!n.length)return{text:"",segmentCount:0};const o=n.reduce((s,a)=>Math.max(s,a.endedAt??0),0)-t;return{text:n.filter(s=>(s.endedAt??0)>=o).map(s=>fi(s.text).trim()).filter(Boolean).join(" ").replace(/\s+/g," ").trim(),segmentCount:n.length}}const Ai=60;function op(e,t,n=Ai){const r=new Set(e),o=[...e];for(const i of t)!i||r.has(i)||(r.add(i),o.push(i));return o.slice(-n)}function ip(e){const{segments:t,now:n,state:r}=e;if(r.lastTriggerAt&&n-r.lastTriggerAt<mi)return{trigger:!1,reason:"too_soon"};const o=_i(t,e.windowMs);if(!o.text)return{trigger:!1,reason:"no_speech"};const i=o.segmentCount-(r.lastSegmentCount??0);if(r.lastQueryTerms&&i<gi)return{trigger:!1,reason:"too_few_new"};const s=yi(o.text);return s.length?r.lastQueryTerms?.length&&Ei(s,r.lastQueryTerms)<hi?{trigger:!1,reason:"same_topic"}:{trigger:!0,text:o.text,terms:s,segmentCount:o.segmentCount}:{trigger:!1,reason:"no_speech"}}const sp=["personal","organization","connections","flows","work","administration","ai"],ap="navNotice",Ke={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}},Si="NL",cp=15,lp=8,up=Array.from(new Set(Object.values(Ke).map(e=>e.callingCode))).sort((e,t)=>t.length-e.length);function gn(e){if(e)return Ke[e.trim().toUpperCase()]}function de(e,t){return e.length>=t.nsnMin&&e.length<=t.nsnMax}function hn(e){if(e.length>cp)return null;for(const t of up){if(!e.startsWith(t))continue;const n=e.slice(t.length);for(const r of Object.values(Ke)){if(r.callingCode!==t)continue;const o=r.trunkPrefix,i=o&&n.startsWith(o)?n.slice(o.length):n;if(de(i,r))return`+${t}${i}`}return null}return e.length<lp?null:`+${e}`}function dp(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 fp(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 pt(e,t){if(!e)return null;const n=dp(e);if(!n)return null;const r=n.startsWith("+"),o=n.replace(/\D/g,"");if(!o)return null;if(r)return hn(o);if(o.startsWith("00"))return hn(o.slice(2));const i=gn(t)??gn(Si);if(!i)return null;const s=i.trunkPrefix;if(s&&o.startsWith(s)){const a=o.slice(s.length);return de(a,i)?`+${i.callingCode}${a}`:null}if(o.startsWith(i.callingCode)){const a=o.slice(i.callingCode.length);if(de(a,i))return`+${i.callingCode}${a}`}return!s&&de(o,i)?`+${i.callingCode}${o}`:null}function pp(e,t=9){const n=(e??"").replace(/\D/g,"");return n.length<t?null:n.slice(-t)}function Gt(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],o=t.slice(n+1);return!r||!o.includes(".")?null:`${r}@${o}`}function mp(e){const t=Gt(e);return t?t.slice(t.lastIndexOf("@")+1):null}const gp=new Set(["co.uk","org.uk","gov.uk","ac.uk","com.au","co.nz","com.br","co.za"]);function bi(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 gp.has(n)&&t.length>=3?t.slice(-3).join("."):n}const Ti=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 hp(e){const t=bi(e);return t?Ti.has(t):!1}function yp(e){if(!e)return!1;const t=e.trim().toLowerCase();return t==="tel"||t==="sms"||t==="whatsapp"||t==="fax"}function Ep(e,t,n){if(!e||!t)return null;const r=e.trim().toLowerCase();if(r==="tel"||r==="sms"||r==="whatsapp"){const i=pt(t,n);return i?`tel:${i}`:null}if(r==="fax"){const i=pt(t,n);return i?`fax:${i}`:null}if(r==="mailto"||r==="email"){const i=Gt(t);return i?`mailto:${i}`:null}const o=t.trim().toLowerCase();return o?`${r}:${o}`:null}const _p=[/<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],yn=/^\s*(?:>+\s*)?(?:from|van|sent|verzonden|to|aan|cc|subject|onderwerp|date|datum)\s*:/i,Ap=/^\s*(?:on|op)\b.{0,200}?\b(?:wrote|schreef|geschreven)\s*:?\s*$/i;function Sp(e){const t=e.split(`
|
|
25
|
+
`);for(let n=0;n<t.length;n++)if(Ap.test(t[n])||yn.test(t[n])&&t.slice(n+1,n+4).some(r=>yn.test(r)))return t.slice(0,n).join(`
|
|
26
|
+
`).trim();return e}const bp=/^(?:https?:|mailto:|tel:)/i,Tp=/^(?:https?:|cid:|data:image\/)/i;function Ve(e,t){const n=e.match(new RegExp(`\\b${t}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|([^\\s">]+))`,"i"));return(n?.[1]??n?.[2]??n?.[3]??"").trim()}const Ip=/(!\[[^\]]*\]\([^)]*\))/;function En(e){return e.replace(/\s+/g," ").trim().split(Ip).map((t,n)=>n%2===1?t:t.replace(/[[\]]/g,"\\$&")).join("")}function Ye(e){return e.replace(/[()\s<>"]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0")}`)}function Op(e){return e.replace(/<img\b([^>]*?)\/?>/gi,(n,r)=>{const o=Ve(r,"src");return Tp.test(o)?`})`:""}).replace(/<a\b([^>]*)>([\s\S]*?)<\/a\s*>/gi,(n,r,o)=>{const i=En(o.replace(/<[^>]*>/g,"")),s=Ve(r,"href");return bp.test(s)?`[${i||Ye(s)}](${Ye(s)})`:i})}const vp=/<table\b[^>]*>((?:(?!<table\b)[\s\S])*?)<\/table\s*>/i,Cp=/<tr\b[^>]*>([\s\S]*?)<\/tr\s*>/gi,Mp=/<(t[dh])\b([^>]*)>([\s\S]*?)<\/\1\s*>/gi;function kp(e,t){return/<table\b/i.test(e)||e.includes(`
|
|
27
27
|
|
|
28
|
-
|`)||t.includes("![")||t.length>200}const
|
|
28
|
+
|`)||t.includes("![")||t.length>200}const Np=40,Rp={left:"---",center:":---:",right:"---:"};function wp(e){const t=e.match(/align\s*[=:]\s*["']?\s*(right|center)/i);return t?t[1].toLowerCase():"left"}function Dp(e){return e.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim().replace(/\|/g,"\\|")}function Lp(e){const t=[];for(const s of e.matchAll(Cp)){const a=[];for(const l of s[1].matchAll(Mp)){const c=Dp(l[3]);if(kp(l[3],c))return null;a.push({text:c,align:wp(l[2])})}if(a.length===0)return null;a.some(l=>l.text!=="")&&t.push(a)}const n=t[0]?.length??0;if(t.length<2||n<2||t.some(s=>s.length!==n))return null;const r=s=>`| ${s.map(a=>a.text).join(" | ")} |`,o=t[1].map(s=>Rp[s.align]).join(" | "),i=t.slice(1).map(r).join(`
|
|
29
29
|
`);return`
|
|
30
30
|
|
|
31
31
|
${r(t[0])}
|
|
32
32
|
| ${o} |
|
|
33
33
|
${i}
|
|
34
34
|
|
|
35
|
-
`}function
|
|
36
|
-
`).replace(/<(?:tbody|thead|tfoot|caption|colgroup|col|tr|t[dh])\b[^>]*>/gi,"").replace(/<\/(?:tbody|thead|tfoot|caption|colgroup)\s*>/gi,"")}function
|
|
35
|
+
`}function xp(e){return e.replace(/<\/(t[dh])\s*>/gi," ").replace(/<\/tr\s*>/gi,`
|
|
36
|
+
`).replace(/<(?:tbody|thead|tfoot|caption|colgroup|col|tr|t[dh])\b[^>]*>/gi,"").replace(/<\/(?:tbody|thead|tfoot|caption|colgroup)\s*>/gi,"")}function Pp(e){let t=e;for(let n=0;n<Np;n++){const r=vp.exec(t);if(!r||r.index===void 0)break;const i=Lp(r[1])??`
|
|
37
37
|
|
|
38
|
-
${
|
|
38
|
+
${xp(r[1])}
|
|
39
39
|
|
|
40
40
|
`;t=t.slice(0,r.index)+i+t.slice(r.index+r[0].length)}return t}function _n(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,`
|
|
41
|
-
`),t&&(n
|
|
41
|
+
`),t&&(n=Pp(Op(n))),n=n.replace(/<\/(p|h[1-6]|ul|ol|table|blockquote)>/gi,`
|
|
42
42
|
|
|
43
43
|
`),n=n.replace(/<\/(div|li|tr)>/gi,`
|
|
44
|
-
`),n=n.replace(/<\/(td|th)>/gi," "),n=n.replace(/<[^>]+>/g,""),n=n.replace(/<[^>]*$/,""),n}function An(e){return!Number.isInteger(e)||e<0||e>1114111?null:String.fromCodePoint(e)}const
|
|
44
|
+
`),n=n.replace(/<\/(td|th)>/gi," "),n=n.replace(/<[^>]+>/g,""),n=n.replace(/<[^>]*$/,""),n}function An(e){return!Number.isInteger(e)||e<0||e>1114111?null:String.fromCodePoint(e)}const $p={euro:"€",pound:"£",yen:"¥",cent:"¢",copy:"©",reg:"®",trade:"™",deg:"°",plusmn:"±",times:"×",middot:"·",bull:"•",hellip:"…",mdash:"—",ndash:"–",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",apos:"'"};function Sn(e){return e.replace(/ /gi," ").replace(/&([a-z]+);/gi,(t,n)=>$p[n.toLowerCase()]??t).replace(/</gi,"<").replace(/>/gi,">").replace(/"/gi,'"').replace(/&#(\d+);/g,(t,n)=>An(Number(n))??t).replace(/&#x([0-9a-f]+);/gi,(t,n)=>An(parseInt(n,16))??t).replace(/&/gi,"&")}function bn(e){return e.replace(/\r/g,"").replace(/[ \t]+/g," ").replace(/ *\n */g,`
|
|
45
45
|
`).replace(/\n{3,}/g,`
|
|
46
46
|
|
|
47
|
-
`).trim()}const Ii=/<\s*(html|body|div|p|table|br|span)\b/i;function Up(e){return Ii.test(e)}function Fp(e){return Oi(e,!1)}function Bp(e){return Oi(e,!0)}function Oi(e,t){if(typeof e!="string"||!e)return"";let n=e.length;for(const s of Ap){const a=e.search(s);a>=0&&a<n&&(n=a)}const r=e.slice(0,n);let o=bn(Sn(_n(r,t)));return o||(o=bn(Sn(_n(e,t)))),bp(o)||o}exports.ACTIVE_ASSIGNMENT_STATUSES=$s;exports.ACTIVITY_CATALOG=L;exports.AI_ATTACHMENT_LIMITS=Jo;exports.AI_ATTACHMENT_MAX_PER_TURN=Kd;exports.AI_ATTACHMENT_TURN_BUDGET=$d;exports.AI_CAPABILITIES=Me;exports.AI_TOOL_PROVIDER_GROUP=Fd;exports.AI_VENDORS=ht;exports.ALLOWED_LINK_SCHEMES=Kn;exports.APP_PERMISSIONS=wf;exports.ARTICLE_SCOPE_KIND=Wa;exports.ARTIFACT_MAX_BLOCKS=me;exports.ARTIFACT_MAX_BODY_BYTES=$n;exports.ARTIFACT_MAX_CELL_LEN=F;exports.ARTIFACT_MAX_KPI_ITEMS=Ee;exports.ARTIFACT_MAX_LIST_ITEMS=ge;exports.ARTIFACT_MAX_TABLE_COLUMNS=ye;exports.ARTIFACT_MAX_TABLE_ROWS=he;exports.ARTIFACT_MAX_TEXT_LEN=ke;exports.ASSIGNMENT_SCOPE_KIND=jn;exports.ASSIST_BANDS=jd;exports.ASSIST_SOURCE_PROVIDER_GROUP=Hd;exports.ATTENTION_STATUSES=mr;exports.AT_RISK_GAP=Io;exports.AUTH_APP_NAME=Ut;exports.AUTO_READY_MIN_PROPOSALS=oo;exports.AUTO_READY_RATE=io;exports.ActivityTypeRegistry=Mn;exports.BUILT_IN_ONLY=ji;exports.BULK_PENALTY=gr;exports.BUSINESS_ENTITY_LIST_SERVICE=Ws;exports.CADENCE_FLOOR_MS=mi;exports.CADENCE_MIN_NEW_SEGMENTS=gi;exports.CADENCE_MIN_NOVELTY=hi;exports.CADENCE_WINDOW_MS=pi;exports.CLASSIFY_VARS=tl;exports.CLEARABLE_FIELDS=Ru;exports.CONNECTOR_PROVIDER_GROUP=pf;exports.CONTEXT_COLLECT_SERVICE=mf;exports.CORE_DIMENSIONS=ps;exports.CRM_ACTIVITY_SCOPE_KIND=ma;exports.CRM_CALL_CHANNELS=ha;exports.CRM_CALL_LOGGED=tr;exports.CRM_CALL_OUTCOMES=ya;exports.CRM_NOTE_ADDED=er;exports.CRM_STAGE_CHANGED=ga;exports.CommunicationScheme=ri;exports.DAY_MS=ar;exports.DEFAULT_CHECK_IN_DAYS=bo;exports.DEFAULT_FORECAST_WEEKS=Br;exports.DEFAULT_MEMORY_BUDGET=ic;exports.DEFAULT_NUMBER_PADDING=Yu;exports.DEFAULT_PHONE_REGION=Si;exports.DEFAULT_QUOTE_TEMPLATE_BLOCKS=Bu;exports.DEFAULT_TEMPLATE_CONDITIONS=Uu;exports.DEMAND_SOURCE_PROVIDER_GROUP=Ec;exports.DOCUMENT_APPLY_SERVICE=vf;exports.DOCUMENT_DESCRIBE_SERVICE=If;exports.DOCUMENT_INSPECT_SERVICE=Of;exports.DOCUMENT_MAX_BLOCKS=me;exports.DOCUMENT_MAX_BODY_BYTES=$n;exports.DOCUMENT_MAX_CELL_LEN=F;exports.DOCUMENT_MAX_KPI_ITEMS=Ee;exports.DOCUMENT_MAX_LETTERHEAD_FIELDS=et;exports.DOCUMENT_MAX_LIST_ITEMS=ge;exports.DOCUMENT_MAX_RECIPIENT_LINES=Pn;exports.DOCUMENT_MAX_TABLE_COLUMNS=ye;exports.DOCUMENT_MAX_TABLE_ROWS=he;exports.DOCUMENT_MAX_TEXT_LEN=ke;exports.DOCUMENT_MAX_TOTALS_ROWS=tt;exports.DOCUMENT_OPERATIONS=$t;exports.DRAFT_FIELDS=Nu;exports.DUTCH_SLOT_LABELS=Po;exports.EMPTY_WORKFLOW=ol;exports.ENABLED_TRANSACTION_KINDS=Dt;exports.FEATURE_FOLDER_MANAGEMENT=lf;exports.FEATURE_MESSAGE_REACTIONS=df;exports.FEATURE_REMOTE_SEARCH=uf;exports.FIXED_KINDS=Re;exports.FIXED_LEVELS=ee;exports.FIXED_TYPES=Pe;exports.FIXED_UNITS=ra;exports.FOLLOW_UP_HOURS=hr;exports.FROZEN_WRITABLE_FIELDS=ku;exports.HOUR_MS=sr;exports.HTML_BODY_RE=Ii;exports.INELIGIBLE=P;exports.INSTALLATION_HEADER=Mf;exports.INTERACTION_KIND=Zr;exports.InteractionParticipantRole=af;exports.KB_FALLBACK_LOCALE=Cr;exports.KB_LOCALES=_e;exports.LEAD_STATUSES=ca;exports.LIFECYCLE_STAGES=aa;exports.LOCALES=_e;exports.LOOSE_STATUSES=$e;exports.MAIL_HINT_HEADERS=fr;exports.MANUAL_PRICE_SOURCE=qn;exports.MAX_ACTIONS=ie;exports.MAX_ASSIGNMENT_TURNS=Wn;exports.MAX_BLOCKS=ze;exports.MAX_CHOICE_OPTIONS=qe;exports.MAX_COLLECTION_DEPTH=bt;exports.MAX_DELEGATION_DEPTH=Vn;exports.MAX_EDITABLE_FILE_BYTES=qf;exports.MAX_FIELDS=re;exports.MAX_LIST_ITEMS=oe;exports.MAX_MEMORY_BROWSE=tc;exports.MAX_MEMORY_BUDGET=oc;exports.MAX_MEMORY_CHARS=nc;exports.MAX_RULE_DEPTH=ut;exports.MAX_SCORE_LEVELS=Je;exports.MAX_SHOWN_KEYS=Ai;exports.MAX_TOPIC_CANDIDATES=ko;exports.MAX_TOPIC_EXAMPLES=Mo;exports.MAX_TOPIC_EXAMPLE_CHARS=le;exports.MAX_VIEWABLE_FILE_BYTES=Qf;exports.MIN_MEMORY_BUDGET=rc;exports.MIN_SCORE_LEVELS=Qe;exports.MODEL_TIERS=B;exports.NAV_NOTICE_SLOT=cp;exports.NL_PAYMENT_TERMS=Zu;exports.NL_TAX_RATES=ac;exports.NOTIFICATION_SOURCE_PROVIDER_GROUP=Nf;exports.OFF_TRACK_GAP=Oo;exports.ONBOARDING_SOURCE_PROVIDER_GROUP=lc;exports.PAUSE_HOLD=Ie;exports.PAUSE_SNOOZED=be;exports.PAUSE_WAITING_FOR_CUSTOMER=Te;exports.PAYMENT_TERM_METHODS=qu;exports.PHONE_REGIONS=Ke;exports.PLAYBOOK_RUN_APPROVAL_ACT=Gc;exports.PLAYBOOK_RUN_SCOPE_KIND=zr;exports.PRESENCE_ONLINE_WINDOW_MS=Kt;exports.PRESENCE_SURVIVES_OFFLINE=oi;exports.PRODUCT_SCOPE_KIND=Uo;exports.PROFILE_TOOL_DISPOSITIONS=dc;exports.PROVIDER_FEATURE_MESSAGE_TEMPLATES=sf;exports.PROVIDER_FEATURE_MESSAGE_WINDOW=of;exports.PUBLIC_EMAIL_DOMAINS=Ti;exports.READ_STEP_TYPES=nt;exports.RELATED_SUBJECT_KINDS=kr;exports.REPORT_VIEW_LAYOUTS=fs;exports.RESERVED_STATUS_KEYS=xt;exports.RESERVED_TYPE_KEYS=ad;exports.RESOURCE_ATTACHED_SERVICE=Ff;exports.RESOURCE_DESCRIBE_SERVICE=$f;exports.RESOURCE_RESOLVE_SERVICE=Uf;exports.RESOURCE_SEARCH_SERVICE=Kf;exports.SCHEDULE_ENTRY_SCOPE_KIND=Gr;exports.SCHEDULE_EVENT=uo;exports.SCOPE_ACTS_ROUTE=jf;exports.SCOPE_READ_ROUTE=Hf;exports.SCOPE_RELATED_ROUTE=Gf;exports.SEGMENT_FILTER_KEYS=ua;exports.SEGMENT_LAYOUTS=fa;exports.SEGMENT_LIST_FILTERS=Jn;exports.SEGMENT_PRESENCE_FILTERS=Zn;exports.SEGMENT_SORT_FIELDS=da;exports.SETTINGS_CATEGORIES=ap;exports.SIGNATURE_INTENTS=oa;exports.SLA_METRICS=Bl;exports.SLA_PAUSE_REASONS=Gl;exports.STATUS_NAMES=Cu;exports.STEP_MAX_TOKENS_MAX=no;exports.STEP_MAX_TOKENS_MIN=to;exports.STEP_TYPES=rl;exports.STRATEGY_ITEM_SCOPE_KIND=Ao;exports.SUMMARY_MIN_LAST_CHARS=dr;exports.SUMMARY_MIN_MESSAGES=ur;exports.SYNC_RUN_MAX_ERRORS=Zf;exports.SYNC_TARGET_PROVIDER_GROUP=Jf;exports.SYSTEM_ONE_NON_GOALS=ns;exports.TERMINAL_ASSIGNMENT_STATUSES=Hn;exports.TERMINAL_RUN_STATUSES=so;exports.TRANSACTION_KINDS=xe;exports.TRANSACTION_SCOPE_KINDS=Ko;exports.TRIGGER_VARS=Zc;exports.UNARY_OPS=bl;exports.UNKNOWN_KIND=wr;exports.UNKNOWN_LEVEL_ORDER=So;exports.UNSUPPORTED=ff;exports.USAGE_DIMENSIONS=wn;exports.USAGE_DIMENSION_IDS=Dn;exports.UnresolvedRefError=Nt;exports.WEBHOOK_EVENTS=Bo;exports.WORKSTREAM_SCOPE_KIND=Hr;exports.WORK_ACTIVITY_SCOPE_KIND=jo;exports.WORK_AREAS=uc;exports.WORK_COMMENT_ADDED=nd;exports.WORK_CYCLE_SYNC_KIND=fd;exports.WORK_ITEM_ASSIGNED=rd;exports.WORK_ITEM_SCOPE_KIND=Go;exports.WORK_ITEM_STATUS_CHANGED=od;exports.WORK_PROJECT_SCOPE_KIND=Ho;exports.WORK_SORT_FIELDS=Nd;exports.WORK_VIEW_FLAGS=kd;exports.WORK_VIEW_LAYOUTS=Rd;exports.WORK_VIEW_LIST_FILTERS=Md;exports.W_PRIORITY=q;exports.acceptExampleCandidate=Iu;exports.actingIdentityKey=Vr;exports.activeWorkTypes=bu;exports.activityIconOf=Ni;exports.activityJoinUrl=Fi;exports.activitySnippet=vn;exports.activityTextParams=Cn;exports.activityTimelineText=Ui;exports.activityTimestamp=kn;exports.activityTypeInfo=O;exports.actorKey=Bc;exports.addExampleCandidate=Tu;exports.addWorkingMs=we;exports.agePresenceEntry=Lf;exports.aiAttachmentKind=Qo;exports.aiAttachmentRejection=Ud;exports.aiBudgetLimit=Ze;exports.aiBudgetPeriodKey=ls;exports.aiBudgetPeriodStart=Rn;exports.aiBudgetState=cs;exports.aiVendorAcceptsAttachment=as;exports.aiVendorDefaultModel=os;exports.aiVendorLabel=rs;exports.aiVendorNeedsBaseUrl=ss;exports.aiVendorsWith=is;exports.allocate=zn;exports.appNameFromPath=Ft;exports.applyApprovalDecision=vs;exports.applyRounding=yu;exports.applySignature=ia;exports.approvalRate=ro;exports.artifactBodyBytes=Bn;exports.artifactOutline=Gn;exports.artifactToMarkdown=Et;exports.assignmentMismatch=Yc;exports.assignmentScopeKey=Us;exports.assignmentSubject=Gs;exports.availabilityByPerson=yc;exports.belongsOnCalendar=fc;exports.belongsToEntity=Vs;exports.billableTimeGroups=gu;exports.bindParams=_l;exports.bindValue=Ae;exports.buildActivityPreview=Gi;exports.buildChannelIntents=Jd;exports.buildShareKeys=Ls;exports.buildWindow=_i;exports.businessEntitySender=or;exports.calendarDaysBetween=Dr;exports.calendarOf=De;exports.canConvert=wu;exports.canNestUnder=za;exports.canParent=nu;exports.canTransition=Mu;exports.capabilityDefaultFlag=zi;exports.capacityTotal=gc;exports.capacityWeights=$c;exports.carriesText=xi;exports.categoryLabel=qa;exports.categoryOf=Yo;exports.causedBy=Ml;exports.channelKindForScheme=rf;exports.channelKindOf=Ri;exports.checkInOverdueMs=pu;exports.clampStepMaxTokens=nl;exports.classifyMail=xa;exports.cleanMessageMarkdown=Bp;exports.cleanMessageText=Fp;exports.codeQuery=qs;exports.compareAssistRank=Vd;exports.compareWorkTypes=Co;exports.conditionHolds=rr;exports.contactName=la;exports.copyFrom=xo;exports.countsAsPlanned=V;exports.coverageByPerson=hc;exports.coverageFor=Ic;exports.coversWorkstream=It;exports.crmActivityAt=_a;exports.cronMatches=lo;exports.currentPeriod=Xu;exports.cycleDayIndex=Ot;exports.cycleOrder=vd;exports.cycleState=Cd;exports.decideAssignmentState=Hs;exports.decideCadence=sp;exports.decideEach=bs;exports.decideIncomingCall=Xd;exports.decisionBand=ts;exports.defaultLocaleOf=Mr;exports.defaultStatusKey=Ad;exports.defaultTemplateBlocks=$o;exports.defineIntent=cf;exports.delegationRefusal=js;exports.depthOf=Or;exports.derivePresence=Df;exports.describeClause=_s;exports.describeExpression=Ol;exports.disabledIntentsFromCapabilities=qd;exports.documentBodyBytes=Bn;exports.documentKindOf=Cf;exports.documentOutline=Gn;exports.documentToMarkdown=Et;exports.documentToText=Tf;exports.driftedFields=po;exports.dueAtOf=ql;exports.dueDateFrom=Qu;exports.elapsedSeconds=hu;exports.emailDomain=gp;exports.emptyConditionLeaf=Tl;exports.endpointKey=_p;exports.entityOwnerIds=Ys;exports.erlangC=xr;exports.extractParams=ai;exports.extractTerms=yi;exports.failureLines=va;exports.fieldVarPath=Dl;exports.fillDocument=Ia;exports.fillText=nr;exports.filterByEndpoint=ef;exports.filterByIntent=Zd;exports.filterByTargetScheme=ni;exports.filterableDimensions=Es;exports.findAiVendor=J;exports.findEvent=Ll;exports.fixedLevelForName=ou;exports.fixedTypeForName=ud;exports.fixedTypes=dd;exports.flattenLocales=kf;exports.floorToPeriod=j;exports.forecastIntervals=Dc;exports.formatActingIdentity=Wr;exports.formatCents=x;exports.formatClock=_u;exports.formatHm=Eu;exports.formatItemKey=md;exports.formatPeriod=H;exports.formatSeriesNumber=zu;exports.formatSlaDuration=Zl;exports.freshSources=Gd;exports.getActivitySeenUserIds=Wi;exports.getContactEndpoints=sa;exports.getShortTitle=Ga;exports.getUrgencyScore=Ba;exports.hasReacted=gl;exports.healthCategory=iu;exports.healthsInCategory=su;exports.heightOf=Tt;exports.helpCenterText=ja;exports.humanizeAction=Qc;exports.interactionIdOf=eo;exports.isAgentUser=ed;exports.isAssigned=Ua;exports.isAssignmentTerminal=Ks;exports.isAssignmentTrigger=qr;exports.isAssistantMode=us;exports.isAuthoredCrmActivity=Ea;exports.isAutoReady=cl;exports.isAutonomy=zc;exports.isAwaitingThem=Tr;exports.isChatMessageActivity=Yi;exports.isClosed=Fa;exports.isConnectedType=$i;exports.isDeepLink=Wf;exports.isDescendant=vr;exports.isEligible=Ma;exports.isEmailActivity=Vi;exports.isFrozen=Lo;exports.isHeldClock=Xl;exports.isHtmlBody=Up;exports.isInFlight=ul;exports.isInteractionUnseen=pr;exports.isLandingPath=Vf;exports.isLikelyBulk=lr;exports.isMessageShape=mt;exports.isMessageType=wi;exports.isMoreSpecificPattern=li;exports.isNoteShape=gt;exports.isOpenClock=_o;exports.isOutwardTool=Pt;exports.isParked=Er;exports.isPaused=ao;exports.isPlaybookAuthoredType=Pi;exports.isPublicEmailDomain=yp;exports.isPublicPath=Xf;exports.isReminderActive=_r;exports.isReplyableType=Li;exports.isSlaAtRisk=$a;exports.isSupportedCron=Cl;exports.isTerminal=ll;exports.isThreadLongEnough=Ra;exports.isTranscriptType=Ki;exports.isWebhookEvent=td;exports.isWorkClosed=Sd;exports.isWorkTypeVisible=Su;exports.isWriteTool=Bt;exports.itemDossierKeys=yd;exports.judgeRuleCase=kl;exports.kindFor=w;exports.ladderFor=Vo;exports.levelIn=To;exports.levelOrder=ve;exports.lineNet=Rr;exports.linkLabel=Ha;exports.listedTransactionKinds=vu;exports.listeningAllowed=ds;exports.localeInstruction=Ya;exports.localeName=Va;exports.localesOf=Xa;exports.looksLikeEmail=pp;exports.lookup=St;exports.marginCents=Zs;exports.markdownToDocument=bf;exports.matchApprovalPolicy=Is;exports.matchContactToIntents=tf;exports.matchPublicRoute=ui;exports.matchRules=fo;exports.mcpCredentialScope=Za;exports.mcpToolPrefix=ec;exports.measureRatio=cu;exports.mergeDefaultFlags=qi;exports.mergeShownKeys=ip;exports.messageCountsAs=On;exports.metricOption=As;exports.minutesOn=vt;exports.missingFieldPaths=xl;exports.modelAcceptsAttachment=Ji;exports.mustAsk=di;exports.narrowAutonomy=qc;exports.needsPhoneRegion=Ep;exports.nestsUnderParent=Di;exports.nextLevelBelow=ru;exports.nextOccurrenceDates=Ld;exports.nextSlaClock=Ql;exports.nextStatuses=Do;exports.nextVersion=Du;exports.normalizeArtifactBlocks=Fn;exports.normalizeBlocks=Ci;exports.normalizeDocumentBlocks=Fn;exports.normalizeEmail=Gt;exports.normalizeExample=$;exports.normalizeGtin=Yn;exports.notificationPrefKey=Rf;exports.novelty=Ei;exports.operationDescriptor=Af;exports.operationsForKind=_f;exports.opsForFieldType=wl;exports.organizationSender=Oa;exports.outcomeOf=Od;exports.overlapSeconds=ae;exports.overlaps=Tc;exports.paceRatio=lu;exports.parkMarksById=ka;exports.parse=co;exports.parseActingIdentity=Uc;exports.parseAmount=Qs;exports.parseClockMinutes=Ul;exports.parseCron=Rt;exports.parseItemKey=gd;exports.parseRecurrence=Dd;exports.pathToRegex=si;exports.patternFor=Mt;exports.patternStartTime=Ct;exports.pauseBitFor=Fl;exports.pendingApprovers=Os;exports.periodsInRange=hs;exports.phoneSuffix=mp;exports.pickMailHeaders=wa;exports.pickTemplate=Sa;exports.placeLumps=Kc;exports.plainTextFromMarkdown=Tn;exports.planSlaEvent=zl;exports.plannedBillable=Oc;exports.plannedWorkTypeKey=Fr;exports.procedureOf=sl;exports.productHref=ju;exports.productScopeKey=Gu;exports.projectDossierKeys=Ed;exports.proposalRequestIds=Ts;exports.publicBasePathFor=ci;exports.publicRoutePatterns=zf;exports.reactionWakesAssignment=Bs;exports.readDefaultFlags=Xi;exports.readPath=fe;exports.readStepError=se;exports.recencyOf=yr;exports.recipientLocale=Aa;exports.refKey=Jr;exports.registrableDomain=bi;exports.rejectExampleCandidate=Ro;exports.relatedByDefault=sc;exports.remainingMsOf=Oe;exports.repriceLines=na;exports.requiredAgents=Kr;exports.requirementFor=Ur;exports.resolveAccountCapabilities=ti;exports.resolveActivityText=pe;exports.resolveAutonomy=Xc;exports.resolveChannelIntents=ei;exports.resolvePrice=Xn;exports.resolveRoute=Zi;exports.resolveSignature=Qn;exports.resolveTier=Nn;exports.resolveWorkMode=xf;exports.resourceKindOf=Bf;exports.rollupChildren=fu;exports.roundHalfUp=W;exports.runActor=Fc;exports.runApprovalKey=Hc;exports.runEvalSuite=Ca;exports.runIdOfApprovalRef=jc;exports.runInteractionId=fl;exports.runKind=al;exports.runOutcome=Rl;exports.sanitizeInline=Un;exports.sanitizeTranscript=fi;exports.scheduleEntryScopeKey=Lc;exports.scoreInteraction=Ka;exports.scoreWorkItem=sd;exports.segmentIsEmpty=pa;exports.selectLenses=Ja;exports.serialize=ce;exports.serviceLevel=Pr;exports.sessionsHoldCannotReach=zd;exports.sessionsToHold=Yd;exports.shadowByKey=zs;exports.shareKeyForTeam=At;exports.shareKeyForUser=_t;exports.shareKeysForViewer=xs;exports.shortfalls=vc;exports.shouldRunAudioPipeline=Pf;exports.slaBadgeTone=Jl;exports.slaHoursByInbox=Pa;exports.slaHoursFor=br;exports.sortStatuses=zo;exports.sourceKey=Zo;exports.spreadOverWeights=jr;exports.statusIn=_d;exports.statusRequiresApproval=Id;exports.stepDate=qo;exports.stepsOf=il;exports.strategyAncestorKeysFor=tu;exports.strategyDossierKeys=eu;exports.strategyItemScopeKey=wt;exports.stripHtml=In;exports.subjectKeyOf=dl;exports.subjectOf=kt;exports.subjectRef=Wd;exports.suggestProjectKey=hd;exports.suggestedHealth=uu;exports.summariseEval=ir;exports.summarizeReactions=pl;exports.targetById=Vc;exports.targetForActivityType=Wc;exports.targetOrder=mu;exports.taxRateFor=Nr;exports.termsFor=Lr;exports.toActingIdentity=Yr;exports.toE164=pt;exports.toTransactionTerm=Ju;exports.toolBareName=Qr;exports.toolDisplayName=Jc;exports.toolReversible=Bd;exports.toolSourceKinds=Ps;exports.toolVerdict=tp;exports.topicOfferedForTeam=wo;exports.topicsForTeam=Ou;exports.trafficIntensity=$r;exports.transactionContext=Lu;exports.transactionDossierKeys=Vu;exports.transactionHref=Hu;exports.transactionIdFromScope=Wu;exports.transactionKind=C;exports.transactionScopeKey=Fo;exports.transactionSlots=xu;exports.transactionTotals=cc;exports.triggerFillsVar=el;exports.truncateExample=No;exports.typeIn=ld;exports.typesFor=cd;exports.uniqueWorkStatusKey=bd;exports.uniqueWorkTypeKey=Au;exports.usageMetricId=Ln;exports.usageMetrics=Ss;exports.validateQuestions=es;exports.validateStatuses=Td;exports.valueAtPath=Xr;exports.waitHoursOf=Ne;exports.wakesAssignment=Fs;exports.workActivityScopeKey=pd;exports.workItemScopeKey=Wo;exports.workProjectScopeKey=Lt;exports.workRatio=du;exports.workStatusKey=Xo;exports.workTypeKey=vo;exports.workingMsBetween=Se;exports.workstreamScopeKey=xc;
|
|
47
|
+
`).trim()}const Ii=/<\s*(html|body|div|p|table|br|span)\b/i;function Kp(e){return Ii.test(e)}function Up(e){return Oi(e,!1)}function Fp(e){return Oi(e,!0)}function Oi(e,t){if(typeof e!="string"||!e)return"";let n=e.length;for(const s of _p){const a=e.search(s);a>=0&&a<n&&(n=a)}const r=e.slice(0,n);let o=bn(Sn(_n(r,t)));return o||(o=bn(Sn(_n(e,t)))),Sp(o)||o}exports.ACTIVE_ASSIGNMENT_STATUSES=$s;exports.ACTIVITY_CATALOG=L;exports.AI_ATTACHMENT_LIMITS=Jo;exports.AI_ATTACHMENT_MAX_PER_TURN=Kd;exports.AI_ATTACHMENT_TURN_BUDGET=$d;exports.AI_CAPABILITIES=Me;exports.AI_TOOL_PROVIDER_GROUP=Fd;exports.AI_VENDORS=ht;exports.ALLOWED_LINK_SCHEMES=Kn;exports.APP_PERMISSIONS=Rf;exports.ARTICLE_SCOPE_KIND=Wa;exports.ARTIFACT_MAX_BLOCKS=me;exports.ARTIFACT_MAX_BODY_BYTES=$n;exports.ARTIFACT_MAX_CELL_LEN=F;exports.ARTIFACT_MAX_KPI_ITEMS=Ee;exports.ARTIFACT_MAX_LIST_ITEMS=ge;exports.ARTIFACT_MAX_TABLE_COLUMNS=ye;exports.ARTIFACT_MAX_TABLE_ROWS=he;exports.ARTIFACT_MAX_TEXT_LEN=ke;exports.ASSIGNMENT_SCOPE_KIND=jn;exports.ASSIST_BANDS=jd;exports.ASSIST_SOURCE_PROVIDER_GROUP=Hd;exports.ATTENTION_STATUSES=mr;exports.AT_RISK_GAP=Io;exports.AUTH_APP_NAME=Ut;exports.AUTO_READY_MIN_PROPOSALS=oo;exports.AUTO_READY_RATE=io;exports.ActivityTypeRegistry=Mn;exports.BUILT_IN_ONLY=ji;exports.BULK_PENALTY=gr;exports.BUSINESS_ENTITY_LIST_SERVICE=Ws;exports.CADENCE_FLOOR_MS=mi;exports.CADENCE_MIN_NEW_SEGMENTS=gi;exports.CADENCE_MIN_NOVELTY=hi;exports.CADENCE_WINDOW_MS=pi;exports.CLASSIFY_VARS=tl;exports.CLEARABLE_FIELDS=Ru;exports.CONNECTOR_PROVIDER_GROUP=ff;exports.CONTEXT_COLLECT_SERVICE=pf;exports.CORE_DIMENSIONS=ps;exports.CRM_ACTIVITY_SCOPE_KIND=ma;exports.CRM_CALL_CHANNELS=ha;exports.CRM_CALL_LOGGED=tr;exports.CRM_CALL_OUTCOMES=ya;exports.CRM_NOTE_ADDED=er;exports.CRM_STAGE_CHANGED=ga;exports.CommunicationScheme=ri;exports.DAY_MS=ar;exports.DEFAULT_CHECK_IN_DAYS=bo;exports.DEFAULT_FORECAST_WEEKS=Br;exports.DEFAULT_MEMORY_BUDGET=ic;exports.DEFAULT_NUMBER_PADDING=Yu;exports.DEFAULT_PHONE_REGION=Si;exports.DEFAULT_QUOTE_TEMPLATE_BLOCKS=Bu;exports.DEFAULT_TEMPLATE_CONDITIONS=Uu;exports.DEMAND_SOURCE_PROVIDER_GROUP=Ec;exports.DOCUMENT_APPLY_SERVICE=Of;exports.DOCUMENT_DESCRIBE_SERVICE=Tf;exports.DOCUMENT_INSPECT_SERVICE=If;exports.DOCUMENT_MAX_BLOCKS=me;exports.DOCUMENT_MAX_BODY_BYTES=$n;exports.DOCUMENT_MAX_CELL_LEN=F;exports.DOCUMENT_MAX_KPI_ITEMS=Ee;exports.DOCUMENT_MAX_LETTERHEAD_FIELDS=et;exports.DOCUMENT_MAX_LIST_ITEMS=ge;exports.DOCUMENT_MAX_RECIPIENT_LINES=Pn;exports.DOCUMENT_MAX_TABLE_COLUMNS=ye;exports.DOCUMENT_MAX_TABLE_ROWS=he;exports.DOCUMENT_MAX_TEXT_LEN=ke;exports.DOCUMENT_MAX_TOTALS_ROWS=tt;exports.DOCUMENT_OPERATIONS=$t;exports.DRAFT_FIELDS=Nu;exports.DUTCH_SLOT_LABELS=Po;exports.EMPTY_WORKFLOW=ol;exports.ENABLED_TRANSACTION_KINDS=Dt;exports.FEATURE_MESSAGE_REACTIONS=uf;exports.FEATURE_REMOTE_SEARCH=lf;exports.FIXED_KINDS=Re;exports.FIXED_LEVELS=ee;exports.FIXED_TYPES=Pe;exports.FIXED_UNITS=ra;exports.FOLLOW_UP_HOURS=hr;exports.FROZEN_WRITABLE_FIELDS=ku;exports.HOUR_MS=sr;exports.HTML_BODY_RE=Ii;exports.INELIGIBLE=P;exports.INSTALLATION_HEADER=Cf;exports.INTERACTION_KIND=Zr;exports.InteractionParticipantRole=af;exports.KB_FALLBACK_LOCALE=Cr;exports.KB_LOCALES=_e;exports.LEAD_STATUSES=ca;exports.LIFECYCLE_STAGES=aa;exports.LOCALES=_e;exports.LOOSE_STATUSES=$e;exports.MAIL_HINT_HEADERS=fr;exports.MANUAL_PRICE_SOURCE=qn;exports.MAX_ACTIONS=ie;exports.MAX_ASSIGNMENT_TURNS=Wn;exports.MAX_BLOCKS=ze;exports.MAX_CHOICE_OPTIONS=qe;exports.MAX_COLLECTION_DEPTH=bt;exports.MAX_DELEGATION_DEPTH=Vn;exports.MAX_EDITABLE_FILE_BYTES=Xf;exports.MAX_FIELDS=re;exports.MAX_LIST_ITEMS=oe;exports.MAX_MEMORY_BROWSE=tc;exports.MAX_MEMORY_BUDGET=oc;exports.MAX_MEMORY_CHARS=nc;exports.MAX_RULE_DEPTH=ut;exports.MAX_SCORE_LEVELS=Je;exports.MAX_SHOWN_KEYS=Ai;exports.MAX_TOPIC_CANDIDATES=ko;exports.MAX_TOPIC_EXAMPLES=Mo;exports.MAX_TOPIC_EXAMPLE_CHARS=le;exports.MAX_VIEWABLE_FILE_BYTES=qf;exports.MIN_MEMORY_BUDGET=rc;exports.MIN_SCORE_LEVELS=Qe;exports.MODEL_TIERS=B;exports.NAV_NOTICE_SLOT=ap;exports.NL_PAYMENT_TERMS=Zu;exports.NL_TAX_RATES=ac;exports.NOTIFICATION_SOURCE_PROVIDER_GROUP=kf;exports.OFF_TRACK_GAP=Oo;exports.ONBOARDING_SOURCE_PROVIDER_GROUP=lc;exports.PAUSE_HOLD=Ie;exports.PAUSE_SNOOZED=be;exports.PAUSE_WAITING_FOR_CUSTOMER=Te;exports.PAYMENT_TERM_METHODS=qu;exports.PHONE_REGIONS=Ke;exports.PLAYBOOK_RUN_APPROVAL_ACT=Gc;exports.PLAYBOOK_RUN_SCOPE_KIND=zr;exports.PRESENCE_ONLINE_WINDOW_MS=Kt;exports.PRESENCE_SURVIVES_OFFLINE=oi;exports.PRODUCT_SCOPE_KIND=Uo;exports.PROFILE_TOOL_DISPOSITIONS=dc;exports.PROVIDER_FEATURE_MESSAGE_TEMPLATES=sf;exports.PROVIDER_FEATURE_MESSAGE_WINDOW=of;exports.PUBLIC_EMAIL_DOMAINS=Ti;exports.READ_STEP_TYPES=nt;exports.RELATED_SUBJECT_KINDS=kr;exports.REPORT_VIEW_LAYOUTS=fs;exports.RESERVED_STATUS_KEYS=xt;exports.RESERVED_TYPE_KEYS=ad;exports.RESOURCE_ATTACHED_SERVICE=Uf;exports.RESOURCE_DESCRIBE_SERVICE=Pf;exports.RESOURCE_RESOLVE_SERVICE=Kf;exports.RESOURCE_SEARCH_SERVICE=$f;exports.SCHEDULE_ENTRY_SCOPE_KIND=Gr;exports.SCHEDULE_EVENT=uo;exports.SCOPE_ACTS_ROUTE=Hf;exports.SCOPE_READ_ROUTE=Gf;exports.SCOPE_RELATED_ROUTE=Bf;exports.SEGMENT_FILTER_KEYS=ua;exports.SEGMENT_LAYOUTS=fa;exports.SEGMENT_LIST_FILTERS=Jn;exports.SEGMENT_PRESENCE_FILTERS=Zn;exports.SEGMENT_SORT_FIELDS=da;exports.SETTINGS_CATEGORIES=sp;exports.SIGNATURE_INTENTS=oa;exports.SLA_METRICS=Bl;exports.SLA_PAUSE_REASONS=Gl;exports.STATUS_NAMES=Cu;exports.STEP_MAX_TOKENS_MAX=no;exports.STEP_MAX_TOKENS_MIN=to;exports.STEP_TYPES=rl;exports.STRATEGY_ITEM_SCOPE_KIND=Ao;exports.SUMMARY_MIN_LAST_CHARS=dr;exports.SUMMARY_MIN_MESSAGES=ur;exports.SYNC_RUN_MAX_ERRORS=Jf;exports.SYNC_TARGET_PROVIDER_GROUP=Qf;exports.SYSTEM_ONE_NON_GOALS=ns;exports.TERMINAL_ASSIGNMENT_STATUSES=Hn;exports.TERMINAL_RUN_STATUSES=so;exports.TRANSACTION_KINDS=xe;exports.TRANSACTION_SCOPE_KINDS=Ko;exports.TRIGGER_VARS=Zc;exports.UNARY_OPS=bl;exports.UNKNOWN_KIND=wr;exports.UNKNOWN_LEVEL_ORDER=So;exports.UNSUPPORTED=df;exports.USAGE_DIMENSIONS=wn;exports.USAGE_DIMENSION_IDS=Dn;exports.UnresolvedRefError=Nt;exports.WEBHOOK_EVENTS=Bo;exports.WORKSTREAM_SCOPE_KIND=Hr;exports.WORK_ACTIVITY_SCOPE_KIND=jo;exports.WORK_AREAS=uc;exports.WORK_COMMENT_ADDED=nd;exports.WORK_CYCLE_SYNC_KIND=fd;exports.WORK_ITEM_ASSIGNED=rd;exports.WORK_ITEM_SCOPE_KIND=Go;exports.WORK_ITEM_STATUS_CHANGED=od;exports.WORK_PROJECT_SCOPE_KIND=Ho;exports.WORK_SORT_FIELDS=Nd;exports.WORK_VIEW_FLAGS=kd;exports.WORK_VIEW_LAYOUTS=Rd;exports.WORK_VIEW_LIST_FILTERS=Md;exports.W_PRIORITY=q;exports.acceptExampleCandidate=Iu;exports.actingIdentityKey=Vr;exports.activeWorkTypes=bu;exports.activityIconOf=Ni;exports.activityJoinUrl=Fi;exports.activitySnippet=vn;exports.activityTextParams=Cn;exports.activityTimelineText=Ui;exports.activityTimestamp=kn;exports.activityTypeInfo=O;exports.actorKey=Bc;exports.addExampleCandidate=Tu;exports.addWorkingMs=we;exports.agePresenceEntry=Df;exports.aiAttachmentKind=Qo;exports.aiAttachmentRejection=Ud;exports.aiBudgetLimit=Ze;exports.aiBudgetPeriodKey=ls;exports.aiBudgetPeriodStart=Rn;exports.aiBudgetState=cs;exports.aiVendorAcceptsAttachment=as;exports.aiVendorDefaultModel=os;exports.aiVendorLabel=rs;exports.aiVendorNeedsBaseUrl=ss;exports.aiVendorsWith=is;exports.allocate=zn;exports.appNameFromPath=Ft;exports.applyApprovalDecision=vs;exports.applyRounding=yu;exports.applySignature=ia;exports.approvalRate=ro;exports.artifactBodyBytes=Bn;exports.artifactOutline=Gn;exports.artifactToMarkdown=Et;exports.assignmentMismatch=Yc;exports.assignmentScopeKey=Us;exports.assignmentSubject=Gs;exports.availabilityByPerson=yc;exports.belongsOnCalendar=fc;exports.belongsToEntity=Vs;exports.billableTimeGroups=gu;exports.bindParams=_l;exports.bindValue=Ae;exports.buildActivityPreview=Gi;exports.buildChannelIntents=Jd;exports.buildShareKeys=Ls;exports.buildWindow=_i;exports.businessEntitySender=or;exports.calendarDaysBetween=Dr;exports.calendarOf=De;exports.canConvert=wu;exports.canNestUnder=za;exports.canParent=nu;exports.canTransition=Mu;exports.capabilityDefaultFlag=zi;exports.capacityTotal=gc;exports.capacityWeights=$c;exports.carriesText=xi;exports.categoryLabel=qa;exports.categoryOf=Yo;exports.causedBy=Ml;exports.channelKindForScheme=rf;exports.channelKindOf=Ri;exports.checkInOverdueMs=pu;exports.clampStepMaxTokens=nl;exports.classifyMail=xa;exports.cleanMessageMarkdown=Fp;exports.cleanMessageText=Up;exports.codeQuery=qs;exports.compareAssistRank=Vd;exports.compareWorkTypes=Co;exports.conditionHolds=rr;exports.contactName=la;exports.copyFrom=xo;exports.countsAsPlanned=V;exports.coverageByPerson=hc;exports.coverageFor=Ic;exports.coversWorkstream=It;exports.crmActivityAt=_a;exports.cronMatches=lo;exports.currentPeriod=Xu;exports.cycleDayIndex=Ot;exports.cycleOrder=vd;exports.cycleState=Cd;exports.decideAssignmentState=Hs;exports.decideCadence=ip;exports.decideEach=bs;exports.decideIncomingCall=Xd;exports.decisionBand=ts;exports.defaultLocaleOf=Mr;exports.defaultStatusKey=Ad;exports.defaultTemplateBlocks=$o;exports.defineIntent=cf;exports.delegationRefusal=js;exports.depthOf=Or;exports.derivePresence=wf;exports.describeClause=_s;exports.describeExpression=Ol;exports.disabledIntentsFromCapabilities=qd;exports.documentBodyBytes=Bn;exports.documentKindOf=vf;exports.documentOutline=Gn;exports.documentToMarkdown=Et;exports.documentToText=bf;exports.driftedFields=po;exports.dueAtOf=ql;exports.dueDateFrom=Qu;exports.elapsedSeconds=hu;exports.emailDomain=mp;exports.emptyConditionLeaf=Tl;exports.endpointKey=Ep;exports.entityOwnerIds=Ys;exports.erlangC=xr;exports.extractParams=ai;exports.extractTerms=yi;exports.failureLines=va;exports.fieldVarPath=Dl;exports.fillDocument=Ia;exports.fillText=nr;exports.filterByEndpoint=ef;exports.filterByIntent=Zd;exports.filterByTargetScheme=ni;exports.filterableDimensions=Es;exports.findAiVendor=J;exports.findEvent=Ll;exports.fixedLevelForName=ou;exports.fixedTypeForName=ud;exports.fixedTypes=dd;exports.flattenLocales=Mf;exports.floorToPeriod=j;exports.forecastIntervals=Dc;exports.formatActingIdentity=Wr;exports.formatCents=x;exports.formatClock=_u;exports.formatHm=Eu;exports.formatItemKey=md;exports.formatPeriod=H;exports.formatSeriesNumber=zu;exports.formatSlaDuration=Zl;exports.freshSources=Gd;exports.getActivitySeenUserIds=Wi;exports.getContactEndpoints=sa;exports.getShortTitle=Ga;exports.getUrgencyScore=Ba;exports.hasReacted=gl;exports.healthCategory=iu;exports.healthsInCategory=su;exports.heightOf=Tt;exports.helpCenterText=ja;exports.humanizeAction=Qc;exports.interactionIdOf=eo;exports.isAgentUser=ed;exports.isAssigned=Ua;exports.isAssignmentTerminal=Ks;exports.isAssignmentTrigger=qr;exports.isAssistantMode=us;exports.isAuthoredCrmActivity=Ea;exports.isAutoReady=cl;exports.isAutonomy=zc;exports.isAwaitingThem=Tr;exports.isChatMessageActivity=Yi;exports.isClosed=Fa;exports.isConnectedType=$i;exports.isDeepLink=jf;exports.isDescendant=vr;exports.isEligible=Ma;exports.isEmailActivity=Vi;exports.isFrozen=Lo;exports.isHeldClock=Xl;exports.isHtmlBody=Kp;exports.isInFlight=ul;exports.isInteractionUnseen=pr;exports.isLandingPath=Wf;exports.isLikelyBulk=lr;exports.isMessageShape=mt;exports.isMessageType=wi;exports.isMoreSpecificPattern=li;exports.isNoteShape=gt;exports.isOpenClock=_o;exports.isOutwardTool=Pt;exports.isParked=Er;exports.isPaused=ao;exports.isPlaybookAuthoredType=Pi;exports.isPublicEmailDomain=hp;exports.isPublicPath=zf;exports.isReminderActive=_r;exports.isReplyableType=Li;exports.isSlaAtRisk=$a;exports.isSupportedCron=Cl;exports.isTerminal=ll;exports.isThreadLongEnough=Ra;exports.isTranscriptType=Ki;exports.isWebhookEvent=td;exports.isWorkClosed=Sd;exports.isWorkTypeVisible=Su;exports.isWriteTool=Bt;exports.itemDossierKeys=yd;exports.judgeRuleCase=kl;exports.kindFor=w;exports.ladderFor=Vo;exports.levelIn=To;exports.levelOrder=ve;exports.lineNet=Rr;exports.linkLabel=Ha;exports.listedTransactionKinds=vu;exports.listeningAllowed=ds;exports.localeInstruction=Ya;exports.localeName=Va;exports.localesOf=Xa;exports.looksLikeEmail=fp;exports.lookup=St;exports.marginCents=Zs;exports.markdownToDocument=Sf;exports.matchApprovalPolicy=Is;exports.matchContactToIntents=tf;exports.matchPublicRoute=ui;exports.matchRules=fo;exports.mcpCredentialScope=Za;exports.mcpToolPrefix=ec;exports.measureRatio=cu;exports.mergeDefaultFlags=qi;exports.mergeShownKeys=op;exports.messageCountsAs=On;exports.metricOption=As;exports.minutesOn=vt;exports.missingFieldPaths=xl;exports.modelAcceptsAttachment=Ji;exports.mustAsk=di;exports.narrowAutonomy=qc;exports.needsPhoneRegion=yp;exports.nestsUnderParent=Di;exports.nextLevelBelow=ru;exports.nextOccurrenceDates=Ld;exports.nextSlaClock=Ql;exports.nextStatuses=Do;exports.nextVersion=Du;exports.normalizeArtifactBlocks=Fn;exports.normalizeBlocks=Ci;exports.normalizeDocumentBlocks=Fn;exports.normalizeEmail=Gt;exports.normalizeExample=$;exports.normalizeGtin=Yn;exports.notificationPrefKey=Nf;exports.novelty=Ei;exports.operationDescriptor=_f;exports.operationsForKind=Ef;exports.opsForFieldType=wl;exports.organizationSender=Oa;exports.outcomeOf=Od;exports.overlapSeconds=ae;exports.overlaps=Tc;exports.paceRatio=lu;exports.parkMarksById=ka;exports.parse=co;exports.parseActingIdentity=Uc;exports.parseAmount=Qs;exports.parseClockMinutes=Ul;exports.parseCron=Rt;exports.parseItemKey=gd;exports.parseRecurrence=Dd;exports.pathToRegex=si;exports.patternFor=Mt;exports.patternStartTime=Ct;exports.pauseBitFor=Fl;exports.pendingApprovers=Os;exports.periodsInRange=hs;exports.phoneSuffix=pp;exports.pickMailHeaders=wa;exports.pickTemplate=Sa;exports.placeLumps=Kc;exports.plainTextFromMarkdown=Tn;exports.planSlaEvent=zl;exports.plannedBillable=Oc;exports.plannedWorkTypeKey=Fr;exports.procedureOf=sl;exports.productHref=ju;exports.productScopeKey=Gu;exports.projectDossierKeys=Ed;exports.proposalRequestIds=Ts;exports.publicBasePathFor=ci;exports.publicRoutePatterns=Yf;exports.reactionWakesAssignment=Bs;exports.readDefaultFlags=Xi;exports.readPath=fe;exports.readStepError=se;exports.recencyOf=yr;exports.recipientLocale=Aa;exports.refKey=Jr;exports.registrableDomain=bi;exports.rejectExampleCandidate=Ro;exports.relatedByDefault=sc;exports.remainingMsOf=Oe;exports.repriceLines=na;exports.requiredAgents=Kr;exports.requirementFor=Ur;exports.resolveAccountCapabilities=ti;exports.resolveActivityText=pe;exports.resolveAutonomy=Xc;exports.resolveChannelIntents=ei;exports.resolvePrice=Xn;exports.resolveRoute=Zi;exports.resolveSignature=Qn;exports.resolveTier=Nn;exports.resolveWorkMode=Lf;exports.resourceKindOf=Ff;exports.rollupChildren=fu;exports.roundHalfUp=W;exports.runActor=Fc;exports.runApprovalKey=Hc;exports.runEvalSuite=Ca;exports.runIdOfApprovalRef=jc;exports.runInteractionId=fl;exports.runKind=al;exports.runOutcome=Rl;exports.sanitizeInline=Un;exports.sanitizeTranscript=fi;exports.scheduleEntryScopeKey=Lc;exports.scoreInteraction=Ka;exports.scoreWorkItem=sd;exports.segmentIsEmpty=pa;exports.selectLenses=Ja;exports.serialize=ce;exports.serviceLevel=Pr;exports.sessionsHoldCannotReach=zd;exports.sessionsToHold=Yd;exports.shadowByKey=zs;exports.shareKeyForTeam=At;exports.shareKeyForUser=_t;exports.shareKeysForViewer=xs;exports.shortfalls=vc;exports.shouldRunAudioPipeline=xf;exports.slaBadgeTone=Jl;exports.slaHoursByInbox=Pa;exports.slaHoursFor=br;exports.sortStatuses=zo;exports.sourceKey=Zo;exports.spreadOverWeights=jr;exports.statusIn=_d;exports.statusRequiresApproval=Id;exports.stepDate=qo;exports.stepsOf=il;exports.strategyAncestorKeysFor=tu;exports.strategyDossierKeys=eu;exports.strategyItemScopeKey=wt;exports.stripHtml=In;exports.subjectKeyOf=dl;exports.subjectOf=kt;exports.subjectRef=Wd;exports.suggestProjectKey=hd;exports.suggestedHealth=uu;exports.summariseEval=ir;exports.summarizeReactions=pl;exports.targetById=Vc;exports.targetForActivityType=Wc;exports.targetOrder=mu;exports.taxRateFor=Nr;exports.termsFor=Lr;exports.toActingIdentity=Yr;exports.toE164=pt;exports.toTransactionTerm=Ju;exports.toolBareName=Qr;exports.toolDisplayName=Jc;exports.toolReversible=Bd;exports.toolSourceKinds=Ps;exports.toolVerdict=ep;exports.topicOfferedForTeam=wo;exports.topicsForTeam=Ou;exports.trafficIntensity=$r;exports.transactionContext=Lu;exports.transactionDossierKeys=Vu;exports.transactionHref=Hu;exports.transactionIdFromScope=Wu;exports.transactionKind=C;exports.transactionScopeKey=Fo;exports.transactionSlots=xu;exports.transactionTotals=cc;exports.triggerFillsVar=el;exports.truncateExample=No;exports.typeIn=ld;exports.typesFor=cd;exports.uniqueWorkStatusKey=bd;exports.uniqueWorkTypeKey=Au;exports.usageMetricId=Ln;exports.usageMetrics=Ss;exports.validateQuestions=es;exports.validateStatuses=Td;exports.valueAtPath=Xr;exports.waitHoursOf=Ne;exports.wakesAssignment=Fs;exports.workActivityScopeKey=pd;exports.workItemScopeKey=Wo;exports.workProjectScopeKey=Lt;exports.workRatio=du;exports.workStatusKey=Xo;exports.workTypeKey=vo;exports.workingMsBetween=Se;exports.workstreamScopeKey=xc;
|
package/dist/index.d.ts
CHANGED
|
@@ -85,7 +85,6 @@ export * from './platform/notification';
|
|
|
85
85
|
export * from './platform/permission';
|
|
86
86
|
export * from './platform/presence';
|
|
87
87
|
export * from './platform/provider';
|
|
88
|
-
export * from './platform/push';
|
|
89
88
|
export * from './platform/resource';
|
|
90
89
|
export * from './platform/resource-source';
|
|
91
90
|
export * from './platform/routing';
|
package/dist/index.js
CHANGED
|
@@ -4347,11 +4347,11 @@ const Uf = "message_window", Ff = "message_templates", jf = {
|
|
|
4347
4347
|
// Voice/conference
|
|
4348
4348
|
HOST: "host",
|
|
4349
4349
|
PARTICIPANT: "participant"
|
|
4350
|
-
}, Bf = (e, t) => ({ intent: e, ...t }), Gf = "
|
|
4350
|
+
}, Bf = (e, t) => ({ intent: e, ...t }), Gf = "remote_search", Hf = "message_reactions", Wf = {
|
|
4351
4351
|
ok: !1,
|
|
4352
4352
|
code: "UNSUPPORTED",
|
|
4353
4353
|
message: "Provider does not support this op"
|
|
4354
|
-
},
|
|
4354
|
+
}, Vf = "connector", zf = "context.collect", A = (e) => ({ type: "string", description: e }), _ = (e) => ({ type: "number", description: e }), ee = (e) => ({ type: "boolean", description: e }), M = A("Sheet name. Omit for the sheet the user is looking at."), Ot = A("Slide id, as `inspect` reports it.");
|
|
4355
4355
|
function b(e, t, n, r, o, i) {
|
|
4356
4356
|
return {
|
|
4357
4357
|
op: e,
|
|
@@ -4705,10 +4705,10 @@ const H = { undoable: !1, visible: !0 }, T = { undoable: !0, visible: !0 }, Nt =
|
|
|
4705
4705
|
...ps,
|
|
4706
4706
|
...ms
|
|
4707
4707
|
];
|
|
4708
|
-
function
|
|
4708
|
+
function Yf(e) {
|
|
4709
4709
|
return Sn.filter((t) => t.kinds.includes(e));
|
|
4710
4710
|
}
|
|
4711
|
-
function
|
|
4711
|
+
function Xf(e) {
|
|
4712
4712
|
return Sn.find((t) => t.op === e);
|
|
4713
4713
|
}
|
|
4714
4714
|
const xt = /(?: {2,}|\\)$/, hs = /^\*\*([^*]+)\*\*\s+(.*)$/;
|
|
@@ -4716,7 +4716,7 @@ function Dt(e) {
|
|
|
4716
4716
|
const t = hs.exec(e);
|
|
4717
4717
|
return t ? { lead: t[1], text: t[2] } : { text: e };
|
|
4718
4718
|
}
|
|
4719
|
-
function
|
|
4719
|
+
function qf(e) {
|
|
4720
4720
|
const t = (e ?? "").replace(/\r\n/g, `
|
|
4721
4721
|
`).split(`
|
|
4722
4722
|
`), n = [];
|
|
@@ -4795,27 +4795,27 @@ function Qf(e) {
|
|
|
4795
4795
|
}
|
|
4796
4796
|
return d(), n;
|
|
4797
4797
|
}
|
|
4798
|
-
function
|
|
4798
|
+
function Qf(e, t) {
|
|
4799
4799
|
return ar(e, t).replace(/^```.*$/gm, "").replace(/^\|[\s:|-]*\|$/gm, "").replace(/[ \t]*\|[ \t]*/g, " ").replace(/^[ \t]*(#{1,6}|>|[-*+]|\d+\.)[ \t]+/gm, "").replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/\[([^\]]+)\]\([^)]*\)/g, "$1").replace(/(\*\*|__|\*|_|`|~~)/g, "").replace(/[ \t]+$/gm, "").replace(/\n{3,}/g, `
|
|
4800
4800
|
|
|
4801
4801
|
`).trim();
|
|
4802
4802
|
}
|
|
4803
|
-
const
|
|
4804
|
-
function
|
|
4803
|
+
const Jf = "documents.describe", Zf = "documents.inspect", ep = "documents.apply";
|
|
4804
|
+
function tp(e) {
|
|
4805
4805
|
const t = e.indexOf(":");
|
|
4806
4806
|
if (t !== -1) return e.slice(0, t);
|
|
4807
4807
|
const n = e.indexOf(".");
|
|
4808
4808
|
return n === -1 ? e : e.slice(0, n);
|
|
4809
4809
|
}
|
|
4810
|
-
const
|
|
4811
|
-
function
|
|
4810
|
+
const np = "installation-id";
|
|
4811
|
+
function rp(e) {
|
|
4812
4812
|
const t = [];
|
|
4813
4813
|
for (const n of Object.keys(e))
|
|
4814
4814
|
for (const r of Object.keys(e[n]))
|
|
4815
4815
|
t.push({ lang: n, key: r, value: e[n][r] });
|
|
4816
4816
|
return t;
|
|
4817
4817
|
}
|
|
4818
|
-
const
|
|
4818
|
+
const op = "notification-source", ip = (e, t) => `${e}.pref.${t}`, sp = {
|
|
4819
4819
|
ai: [
|
|
4820
4820
|
"account.read",
|
|
4821
4821
|
"account.write",
|
|
@@ -4862,8 +4862,6 @@ const ip = "notification-source", sp = (e, t) => `${e}.pref.${t}`, ap = {
|
|
|
4862
4862
|
"calendar.write",
|
|
4863
4863
|
"channel.read",
|
|
4864
4864
|
"channel.write",
|
|
4865
|
-
"folder.read",
|
|
4866
|
-
"folder.write",
|
|
4867
4865
|
"inbox.read",
|
|
4868
4866
|
"inbox.write",
|
|
4869
4867
|
"interaction.read",
|
|
@@ -4956,37 +4954,37 @@ const ip = "notification-source", sp = (e, t) => `${e}.pref.${t}`, ap = {
|
|
|
4956
4954
|
user: ["user.read", "user.write"],
|
|
4957
4955
|
work: ["item.read", "item.write", "project.read", "project.write"]
|
|
4958
4956
|
}, Tn = 9e4, gs = ["out_of_office"], In = (e) => gs.includes(e);
|
|
4959
|
-
function
|
|
4957
|
+
function ap(e, t, n) {
|
|
4960
4958
|
const r = n - e < Tn, o = t?.status && (!t.expiresAt || t.expiresAt > n) ? t : void 0;
|
|
4961
4959
|
if (!o?.status) return { online: r, status: r ? "available" : "offline" };
|
|
4962
4960
|
const i = o.status;
|
|
4963
4961
|
return !r && !In(i) ? { online: !1, status: "offline" } : { online: r, status: i, message: o.message };
|
|
4964
4962
|
}
|
|
4965
|
-
function
|
|
4963
|
+
function cp(e, t) {
|
|
4966
4964
|
const n = t - e.lastSeenAt < Tn, r = n || In(e.status) ? e.status : "offline";
|
|
4967
4965
|
return n === e.online && r === e.status ? e : { ...e, online: n, status: r };
|
|
4968
4966
|
}
|
|
4969
|
-
function
|
|
4967
|
+
function lp(e, t) {
|
|
4970
4968
|
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 };
|
|
4971
4969
|
}
|
|
4972
|
-
function
|
|
4970
|
+
function up(e) {
|
|
4973
4971
|
return e.providerAvailable && e.allowed;
|
|
4974
4972
|
}
|
|
4975
|
-
const
|
|
4976
|
-
function
|
|
4973
|
+
const dp = "resources.describe", fp = "resources.search", pp = "resources.resolve", mp = "resources.attached";
|
|
4974
|
+
function hp(e) {
|
|
4977
4975
|
const t = e.indexOf(":");
|
|
4978
4976
|
return t === -1 ? e : e.slice(0, t);
|
|
4979
4977
|
}
|
|
4980
|
-
const
|
|
4978
|
+
const gp = "/provider/scope/related", yp = "/provider/scope/read", bp = "/provider/scope/acts", vn = "auth";
|
|
4981
4979
|
function kn(e) {
|
|
4982
4980
|
const t = typeof e == "string" ? e.match(/apps\/([^/?#]+)/) : null;
|
|
4983
4981
|
return t ? t[1] : null;
|
|
4984
4982
|
}
|
|
4985
|
-
function
|
|
4983
|
+
function _p(e) {
|
|
4986
4984
|
const t = kn(e);
|
|
4987
4985
|
return t ? t !== vn : typeof e == "string" && e.startsWith("/wake");
|
|
4988
4986
|
}
|
|
4989
|
-
function
|
|
4987
|
+
function Ap(e) {
|
|
4990
4988
|
return typeof e != "string" || e === "" || e === "/" ? !0 : kn(e) === vn;
|
|
4991
4989
|
}
|
|
4992
4990
|
function ys(e) {
|
|
@@ -5008,7 +5006,7 @@ function _s(e, t) {
|
|
|
5008
5006
|
function As(e) {
|
|
5009
5007
|
return e.publicBasePath ?? `/apps/${e.name}`;
|
|
5010
5008
|
}
|
|
5011
|
-
function
|
|
5009
|
+
function Ep(e) {
|
|
5012
5010
|
const t = [];
|
|
5013
5011
|
for (const n of e) {
|
|
5014
5012
|
if (!n?.name) continue;
|
|
@@ -5041,10 +5039,10 @@ function Ss(e, t) {
|
|
|
5041
5039
|
bs(r.pattern).test(e) && (!n || Es(r.pattern, n.pattern)) && (n = r);
|
|
5042
5040
|
return n ? { ...n, params: { ...n.props, ..._s(n.pattern, e) } } : null;
|
|
5043
5041
|
}
|
|
5044
|
-
function
|
|
5042
|
+
function Sp(e, t) {
|
|
5045
5043
|
return Ss(e, t) !== null;
|
|
5046
5044
|
}
|
|
5047
|
-
const
|
|
5045
|
+
const Tp = 10 * 1024 * 1024, Ip = 25 * 1024 * 1024, vp = "sync-target", kp = 20;
|
|
5048
5046
|
function wn(e, t) {
|
|
5049
5047
|
const n = Array.isArray(t) ? t.find((r) => r.name === e.name)?.policy : void 0;
|
|
5050
5048
|
return n ? n !== "read" : e.access ? e.access !== "read" : !0;
|
|
@@ -5055,7 +5053,7 @@ function Ts(e, t, n) {
|
|
|
5055
5053
|
function Is(e) {
|
|
5056
5054
|
return e.produces === "draft";
|
|
5057
5055
|
}
|
|
5058
|
-
function
|
|
5056
|
+
function wp(e, t) {
|
|
5059
5057
|
if (t.allowed) {
|
|
5060
5058
|
const n = t.personalTools === "allow" && e.personal === !0;
|
|
5061
5059
|
if (!t.allowed.has(e.name) && !n) return "hidden";
|
|
@@ -5353,13 +5351,13 @@ function $s(e, t = ws) {
|
|
|
5353
5351
|
return { text: n.filter((s) => (s.endedAt ?? 0) >= o).map((s) => ks(s.text).trim()).filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), segmentCount: n.length };
|
|
5354
5352
|
}
|
|
5355
5353
|
const Ls = 60;
|
|
5356
|
-
function
|
|
5354
|
+
function Mp(e, t, n = Ls) {
|
|
5357
5355
|
const r = new Set(e), o = [...e];
|
|
5358
5356
|
for (const i of t)
|
|
5359
5357
|
!i || r.has(i) || (r.add(i), o.push(i));
|
|
5360
5358
|
return o.slice(-n);
|
|
5361
5359
|
}
|
|
5362
|
-
function
|
|
5360
|
+
function Cp(e) {
|
|
5363
5361
|
const { segments: t, now: n, state: r } = e;
|
|
5364
5362
|
if (r.lastTriggerAt && n - r.lastTriggerAt < Ms)
|
|
5365
5363
|
return { trigger: !1, reason: "too_soon" };
|
|
@@ -5371,7 +5369,7 @@ function Op(e) {
|
|
|
5371
5369
|
const s = Ds(o.text);
|
|
5372
5370
|
return s.length ? r.lastQueryTerms?.length && Rs(s, r.lastQueryTerms) < Os ? { trigger: !1, reason: "same_topic" } : { trigger: !0, text: o.text, terms: s, segmentCount: o.segmentCount } : { trigger: !1, reason: "no_speech" };
|
|
5373
5371
|
}
|
|
5374
|
-
const
|
|
5372
|
+
const Op = [
|
|
5375
5373
|
"personal",
|
|
5376
5374
|
"organization",
|
|
5377
5375
|
"connections",
|
|
@@ -5379,7 +5377,7 @@ const Np = [
|
|
|
5379
5377
|
"work",
|
|
5380
5378
|
"administration",
|
|
5381
5379
|
"ai"
|
|
5382
|
-
],
|
|
5380
|
+
], Np = "navNotice", Ye = {
|
|
5383
5381
|
// The lower bounds are deliberately generous: service ranges (0800/0900) are
|
|
5384
5382
|
// shorter than geographic numbers, and a too-strict minimum silently drops them.
|
|
5385
5383
|
// An over-permissive key is harmless — it simply matches nothing.
|
|
@@ -5433,7 +5431,7 @@ function js(e) {
|
|
|
5433
5431
|
const r = t.indexOf("@");
|
|
5434
5432
|
return r >= 0 && (t = t.slice(0, r)), t.trim();
|
|
5435
5433
|
}
|
|
5436
|
-
function
|
|
5434
|
+
function xp(e) {
|
|
5437
5435
|
if (!e) return !1;
|
|
5438
5436
|
const t = e.indexOf("@");
|
|
5439
5437
|
if (t <= 0) return !1;
|
|
@@ -5461,7 +5459,7 @@ function Lt(e, t) {
|
|
|
5461
5459
|
}
|
|
5462
5460
|
return !s && te(o, i) ? `+${i.callingCode}${o}` : null;
|
|
5463
5461
|
}
|
|
5464
|
-
function
|
|
5462
|
+
function Dp(e, t = 9) {
|
|
5465
5463
|
const n = (e ?? "").replace(/\D/g, "");
|
|
5466
5464
|
return n.length < t ? null : n.slice(-t);
|
|
5467
5465
|
}
|
|
@@ -5472,7 +5470,7 @@ function Mn(e) {
|
|
|
5472
5470
|
const r = t.slice(0, n).split("+")[0], o = t.slice(n + 1);
|
|
5473
5471
|
return !r || !o.includes(".") ? null : `${r}@${o}`;
|
|
5474
5472
|
}
|
|
5475
|
-
function
|
|
5473
|
+
function Rp(e) {
|
|
5476
5474
|
const t = Mn(e);
|
|
5477
5475
|
return t ? t.slice(t.lastIndexOf("@") + 1) : null;
|
|
5478
5476
|
}
|
|
@@ -5538,16 +5536,16 @@ const Hs = /* @__PURE__ */ new Set([
|
|
|
5538
5536
|
"proximus.be",
|
|
5539
5537
|
"scarlet.be"
|
|
5540
5538
|
]);
|
|
5541
|
-
function
|
|
5539
|
+
function $p(e) {
|
|
5542
5540
|
const t = Gs(e);
|
|
5543
5541
|
return t ? Hs.has(t) : !1;
|
|
5544
5542
|
}
|
|
5545
|
-
function
|
|
5543
|
+
function Lp(e) {
|
|
5546
5544
|
if (!e) return !1;
|
|
5547
5545
|
const t = e.trim().toLowerCase();
|
|
5548
5546
|
return t === "tel" || t === "sms" || t === "whatsapp" || t === "fax";
|
|
5549
5547
|
}
|
|
5550
|
-
function
|
|
5548
|
+
function Pp(e, t, n) {
|
|
5551
5549
|
if (!e || !t) return null;
|
|
5552
5550
|
const r = e.trim().toLowerCase();
|
|
5553
5551
|
if (r === "tel" || r === "sms" || r === "whatsapp") {
|
|
@@ -5714,13 +5712,13 @@ function Bt(e) {
|
|
|
5714
5712
|
`).trim();
|
|
5715
5713
|
}
|
|
5716
5714
|
const ua = /<\s*(html|body|div|p|table|br|span)\b/i;
|
|
5717
|
-
function
|
|
5715
|
+
function Kp(e) {
|
|
5718
5716
|
return ua.test(e);
|
|
5719
5717
|
}
|
|
5720
|
-
function
|
|
5718
|
+
function Up(e) {
|
|
5721
5719
|
return Cn(e, !1);
|
|
5722
5720
|
}
|
|
5723
|
-
function
|
|
5721
|
+
function Fp(e) {
|
|
5724
5722
|
return Cn(e, !0);
|
|
5725
5723
|
}
|
|
5726
5724
|
function Cn(e, t) {
|
|
@@ -5744,7 +5742,7 @@ export {
|
|
|
5744
5742
|
Tf as AI_TOOL_PROVIDER_GROUP,
|
|
5745
5743
|
Wt as AI_VENDORS,
|
|
5746
5744
|
Zn as ALLOWED_LINK_SCHEMES,
|
|
5747
|
-
|
|
5745
|
+
sp as APP_PERMISSIONS,
|
|
5748
5746
|
pl as ARTICLE_SCOPE_KIND,
|
|
5749
5747
|
at as ARTIFACT_MAX_BLOCKS,
|
|
5750
5748
|
ac as ARTIFACT_MAX_BODY_BYTES,
|
|
@@ -5772,8 +5770,8 @@ export {
|
|
|
5772
5770
|
ws as CADENCE_WINDOW_MS,
|
|
5773
5771
|
lu as CLASSIFY_VARS,
|
|
5774
5772
|
Ed as CLEARABLE_FIELDS,
|
|
5775
|
-
|
|
5776
|
-
|
|
5773
|
+
Vf as CONNECTOR_PROVIDER_GROUP,
|
|
5774
|
+
zf as CONTEXT_COLLECT_SERVICE,
|
|
5777
5775
|
qa as CORE_DIMENSIONS,
|
|
5778
5776
|
jc as CRM_ACTIVITY_SCOPE_KIND,
|
|
5779
5777
|
Gc as CRM_CALL_CHANNELS,
|
|
@@ -5791,9 +5789,9 @@ export {
|
|
|
5791
5789
|
wd as DEFAULT_QUOTE_TEMPLATE_BLOCKS,
|
|
5792
5790
|
kd as DEFAULT_TEMPLATE_CONDITIONS,
|
|
5793
5791
|
Pl as DEMAND_SOURCE_PROVIDER_GROUP,
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5792
|
+
ep as DOCUMENT_APPLY_SERVICE,
|
|
5793
|
+
Jf as DOCUMENT_DESCRIBE_SERVICE,
|
|
5794
|
+
Zf as DOCUMENT_INSPECT_SERVICE,
|
|
5797
5795
|
at as DOCUMENT_MAX_BLOCKS,
|
|
5798
5796
|
ac as DOCUMENT_MAX_BODY_BYTES,
|
|
5799
5797
|
Z as DOCUMENT_MAX_CELL_LEN,
|
|
@@ -5810,9 +5808,8 @@ export {
|
|
|
5810
5808
|
Di as DUTCH_SLOT_LABELS,
|
|
5811
5809
|
fu as EMPTY_WORKFLOW,
|
|
5812
5810
|
bn as ENABLED_TRANSACTION_KINDS,
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
Hf as FEATURE_REMOTE_SEARCH,
|
|
5811
|
+
Hf as FEATURE_MESSAGE_REACTIONS,
|
|
5812
|
+
Gf as FEATURE_REMOTE_SEARCH,
|
|
5816
5813
|
Be as FIXED_KINDS,
|
|
5817
5814
|
ie as FIXED_LEVELS,
|
|
5818
5815
|
Ve as FIXED_TYPES,
|
|
@@ -5822,7 +5819,7 @@ export {
|
|
|
5822
5819
|
Nr as HOUR_MS,
|
|
5823
5820
|
ua as HTML_BODY_RE,
|
|
5824
5821
|
P as INELIGIBLE,
|
|
5825
|
-
|
|
5822
|
+
np as INSTALLATION_HEADER,
|
|
5826
5823
|
Ko as INTERACTION_KIND,
|
|
5827
5824
|
jf as InteractionParticipantRole,
|
|
5828
5825
|
Qr as KB_FALLBACK_LOCALE,
|
|
@@ -5839,7 +5836,7 @@ export {
|
|
|
5839
5836
|
rt as MAX_CHOICE_OPTIONS,
|
|
5840
5837
|
tn as MAX_COLLECTION_DEPTH,
|
|
5841
5838
|
dr as MAX_DELEGATION_DEPTH,
|
|
5842
|
-
|
|
5839
|
+
Tp as MAX_EDITABLE_FILE_BYTES,
|
|
5843
5840
|
fa as MAX_FIELDS,
|
|
5844
5841
|
pa as MAX_LIST_ITEMS,
|
|
5845
5842
|
Sl as MAX_MEMORY_BROWSE,
|
|
@@ -5851,14 +5848,14 @@ export {
|
|
|
5851
5848
|
ki as MAX_TOPIC_CANDIDATES,
|
|
5852
5849
|
vi as MAX_TOPIC_EXAMPLES,
|
|
5853
5850
|
ye as MAX_TOPIC_EXAMPLE_CHARS,
|
|
5854
|
-
|
|
5851
|
+
Ip as MAX_VIEWABLE_FILE_BYTES,
|
|
5855
5852
|
Il as MIN_MEMORY_BUDGET,
|
|
5856
5853
|
ot as MIN_SCORE_LEVELS,
|
|
5857
5854
|
G as MODEL_TIERS,
|
|
5858
|
-
|
|
5855
|
+
Np as NAV_NOTICE_SLOT,
|
|
5859
5856
|
Ud as NL_PAYMENT_TERMS,
|
|
5860
5857
|
Ml as NL_TAX_RATES,
|
|
5861
|
-
|
|
5858
|
+
op as NOTIFICATION_SOURCE_PROVIDER_GROUP,
|
|
5862
5859
|
Si as OFF_TRACK_GAP,
|
|
5863
5860
|
Ol as ONBOARDING_SOURCE_PROVIDER_GROUP,
|
|
5864
5861
|
$e as PAUSE_HOLD,
|
|
@@ -5880,21 +5877,21 @@ export {
|
|
|
5880
5877
|
Xa as REPORT_VIEW_LAYOUTS,
|
|
5881
5878
|
An as RESERVED_STATUS_KEYS,
|
|
5882
5879
|
Vd as RESERVED_TYPE_KEYS,
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5880
|
+
mp as RESOURCE_ATTACHED_SERVICE,
|
|
5881
|
+
dp as RESOURCE_DESCRIBE_SERVICE,
|
|
5882
|
+
pp as RESOURCE_RESOLVE_SERVICE,
|
|
5883
|
+
fp as RESOURCE_SEARCH_SERVICE,
|
|
5887
5884
|
ko as SCHEDULE_ENTRY_SCOPE_KIND,
|
|
5888
5885
|
ri as SCHEDULE_EVENT,
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5886
|
+
bp as SCOPE_ACTS_ROUTE,
|
|
5887
|
+
yp as SCOPE_READ_ROUTE,
|
|
5888
|
+
gp as SCOPE_RELATED_ROUTE,
|
|
5892
5889
|
Pc as SEGMENT_FILTER_KEYS,
|
|
5893
5890
|
Uc as SEGMENT_LAYOUTS,
|
|
5894
5891
|
Er as SEGMENT_LIST_FILTERS,
|
|
5895
5892
|
Sr as SEGMENT_PRESENCE_FILTERS,
|
|
5896
5893
|
Kc as SEGMENT_SORT_FIELDS,
|
|
5897
|
-
|
|
5894
|
+
Op as SETTINGS_CATEGORIES,
|
|
5898
5895
|
Nc as SIGNATURE_INTENTS,
|
|
5899
5896
|
Pu as SLA_METRICS,
|
|
5900
5897
|
Ku as SLA_PAUSE_REASONS,
|
|
@@ -5905,8 +5902,8 @@ export {
|
|
|
5905
5902
|
gi as STRATEGY_ITEM_SCOPE_KIND,
|
|
5906
5903
|
Lr as SUMMARY_MIN_LAST_CHARS,
|
|
5907
5904
|
$r as SUMMARY_MIN_MESSAGES,
|
|
5908
|
-
|
|
5909
|
-
|
|
5905
|
+
kp as SYNC_RUN_MAX_ERRORS,
|
|
5906
|
+
vp as SYNC_TARGET_PROVIDER_GROUP,
|
|
5910
5907
|
Ua as SYSTEM_ONE_NON_GOALS,
|
|
5911
5908
|
cr as TERMINAL_ASSIGNMENT_STATUSES,
|
|
5912
5909
|
Wo as TERMINAL_RUN_STATUSES,
|
|
@@ -5916,7 +5913,7 @@ export {
|
|
|
5916
5913
|
Iu as UNARY_OPS,
|
|
5917
5914
|
ro as UNKNOWN_KIND,
|
|
5918
5915
|
yi as UNKNOWN_LEVEL_ORDER,
|
|
5919
|
-
|
|
5916
|
+
Wf as UNSUPPORTED,
|
|
5920
5917
|
Yn as USAGE_DIMENSIONS,
|
|
5921
5918
|
Xn as USAGE_DIMENSION_IDS,
|
|
5922
5919
|
un as UnresolvedRefError,
|
|
@@ -5948,7 +5945,7 @@ export {
|
|
|
5948
5945
|
Xl as actorKey,
|
|
5949
5946
|
pd as addExampleCandidate,
|
|
5950
5947
|
Ge as addWorkingMs,
|
|
5951
|
-
|
|
5948
|
+
cp as agePresenceEntry,
|
|
5952
5949
|
ns as aiAttachmentKind,
|
|
5953
5950
|
Sf as aiAttachmentRejection,
|
|
5954
5951
|
st as aiBudgetLimit,
|
|
@@ -6001,8 +5998,8 @@ export {
|
|
|
6001
5998
|
rd as checkInOverdueMs,
|
|
6002
5999
|
uu as clampStepMaxTokens,
|
|
6003
6000
|
rl as classifyMail,
|
|
6004
|
-
|
|
6005
|
-
|
|
6001
|
+
Fp as cleanMessageMarkdown,
|
|
6002
|
+
Up as cleanMessageText,
|
|
6006
6003
|
kc as codeQuery,
|
|
6007
6004
|
Cf as compareAssistRank,
|
|
6008
6005
|
Ii as compareWorkTypes,
|
|
@@ -6020,7 +6017,7 @@ export {
|
|
|
6020
6017
|
ff as cycleOrder,
|
|
6021
6018
|
pf as cycleState,
|
|
6022
6019
|
Ac as decideAssignmentState,
|
|
6023
|
-
|
|
6020
|
+
Cp as decideCadence,
|
|
6024
6021
|
nc as decideEach,
|
|
6025
6022
|
xf as decideIncomingCall,
|
|
6026
6023
|
Ka as decisionBand,
|
|
@@ -6030,22 +6027,22 @@ export {
|
|
|
6030
6027
|
Bf as defineIntent,
|
|
6031
6028
|
Ec as delegationRefusal,
|
|
6032
6029
|
Xr as depthOf,
|
|
6033
|
-
|
|
6030
|
+
ap as derivePresence,
|
|
6034
6031
|
Za as describeClause,
|
|
6035
6032
|
ku as describeExpression,
|
|
6036
6033
|
Df as disabledIntentsFromCapabilities,
|
|
6037
6034
|
lc as documentBodyBytes,
|
|
6038
|
-
|
|
6035
|
+
tp as documentKindOf,
|
|
6039
6036
|
uc as documentOutline,
|
|
6040
6037
|
ar as documentToMarkdown,
|
|
6041
|
-
|
|
6038
|
+
Qf as documentToText,
|
|
6042
6039
|
si as driftedFields,
|
|
6043
6040
|
ju as dueAtOf,
|
|
6044
6041
|
Pd as dueDateFrom,
|
|
6045
6042
|
sd as elapsedSeconds,
|
|
6046
|
-
|
|
6043
|
+
Rp as emailDomain,
|
|
6047
6044
|
vu as emptyConditionLeaf,
|
|
6048
|
-
|
|
6045
|
+
Pp as endpointKey,
|
|
6049
6046
|
Ic as entityOwnerIds,
|
|
6050
6047
|
lo as erlangC,
|
|
6051
6048
|
_s as extractParams,
|
|
@@ -6063,7 +6060,7 @@ export {
|
|
|
6063
6060
|
Xu as fixedLevelForName,
|
|
6064
6061
|
Xd as fixedTypeForName,
|
|
6065
6062
|
qd as fixedTypes,
|
|
6066
|
-
|
|
6063
|
+
rp as flattenLocales,
|
|
6067
6064
|
V as floorToPeriod,
|
|
6068
6065
|
Bl as forecastIntervals,
|
|
6069
6066
|
Oo as formatActingIdentity,
|
|
@@ -6098,16 +6095,16 @@ export {
|
|
|
6098
6095
|
Na as isChatMessageActivity,
|
|
6099
6096
|
cl as isClosed,
|
|
6100
6097
|
Ta as isConnectedType,
|
|
6101
|
-
|
|
6098
|
+
_p as isDeepLink,
|
|
6102
6099
|
qr as isDescendant,
|
|
6103
6100
|
Zc as isEligible,
|
|
6104
6101
|
Oa as isEmailActivity,
|
|
6105
6102
|
Ni as isFrozen,
|
|
6106
6103
|
Fu as isHeldClock,
|
|
6107
|
-
|
|
6104
|
+
Kp as isHtmlBody,
|
|
6108
6105
|
bu as isInFlight,
|
|
6109
6106
|
Fr as isInteractionUnseen,
|
|
6110
|
-
|
|
6107
|
+
Ap as isLandingPath,
|
|
6111
6108
|
Rr as isLikelyBulk,
|
|
6112
6109
|
Gt as isMessageShape,
|
|
6113
6110
|
ba as isMessageType,
|
|
@@ -6118,8 +6115,8 @@ export {
|
|
|
6118
6115
|
Wr as isParked,
|
|
6119
6116
|
Vo as isPaused,
|
|
6120
6117
|
Sa as isPlaybookAuthoredType,
|
|
6121
|
-
|
|
6122
|
-
|
|
6118
|
+
$p as isPublicEmailDomain,
|
|
6119
|
+
Sp as isPublicPath,
|
|
6123
6120
|
Vr as isReminderActive,
|
|
6124
6121
|
Aa as isReplyableType,
|
|
6125
6122
|
il as isSlaAtRisk,
|
|
@@ -6144,10 +6141,10 @@ export {
|
|
|
6144
6141
|
hl as localeInstruction,
|
|
6145
6142
|
ml as localeName,
|
|
6146
6143
|
yl as localesOf,
|
|
6147
|
-
|
|
6144
|
+
xp as looksLikeEmail,
|
|
6148
6145
|
qt as lookup,
|
|
6149
6146
|
Mc as marginCents,
|
|
6150
|
-
|
|
6147
|
+
qf as markdownToDocument,
|
|
6151
6148
|
oc as matchApprovalPolicy,
|
|
6152
6149
|
Pf as matchContactToIntents,
|
|
6153
6150
|
Ss as matchPublicRoute,
|
|
@@ -6156,7 +6153,7 @@ export {
|
|
|
6156
6153
|
El as mcpToolPrefix,
|
|
6157
6154
|
Ju as measureRatio,
|
|
6158
6155
|
Ra as mergeDefaultFlags,
|
|
6159
|
-
|
|
6156
|
+
Mp as mergeShownKeys,
|
|
6160
6157
|
$n as messageCountsAs,
|
|
6161
6158
|
ec as metricOption,
|
|
6162
6159
|
sn as minutesOn,
|
|
@@ -6164,7 +6161,7 @@ export {
|
|
|
6164
6161
|
$a as modelAcceptsAttachment,
|
|
6165
6162
|
Ts as mustAsk,
|
|
6166
6163
|
ou as narrowAutonomy,
|
|
6167
|
-
|
|
6164
|
+
Lp as needsPhoneRegion,
|
|
6168
6165
|
_a as nestsUnderParent,
|
|
6169
6166
|
Yu as nextLevelBelow,
|
|
6170
6167
|
_f as nextOccurrenceDates,
|
|
@@ -6177,10 +6174,10 @@ export {
|
|
|
6177
6174
|
Mn as normalizeEmail,
|
|
6178
6175
|
K as normalizeExample,
|
|
6179
6176
|
fr as normalizeGtin,
|
|
6180
|
-
|
|
6177
|
+
ip as notificationPrefKey,
|
|
6181
6178
|
Rs as novelty,
|
|
6182
|
-
|
|
6183
|
-
|
|
6179
|
+
Xf as operationDescriptor,
|
|
6180
|
+
Yf as operationsForKind,
|
|
6184
6181
|
Nu as opsForFieldType,
|
|
6185
6182
|
qc as organizationSender,
|
|
6186
6183
|
df as outcomeOf,
|
|
@@ -6201,7 +6198,7 @@ export {
|
|
|
6201
6198
|
Lu as pauseBitFor,
|
|
6202
6199
|
ic as pendingApprovers,
|
|
6203
6200
|
Qa as periodsInRange,
|
|
6204
|
-
|
|
6201
|
+
Dp as phoneSuffix,
|
|
6205
6202
|
nl as pickMailHeaders,
|
|
6206
6203
|
Yc as pickTemplate,
|
|
6207
6204
|
Vl as placeLumps,
|
|
@@ -6215,7 +6212,7 @@ export {
|
|
|
6215
6212
|
rf as projectDossierKeys,
|
|
6216
6213
|
rc as proposalRequestIds,
|
|
6217
6214
|
As as publicBasePathFor,
|
|
6218
|
-
|
|
6215
|
+
Ep as publicRoutePatterns,
|
|
6219
6216
|
bc as reactionWakesAssignment,
|
|
6220
6217
|
Da as readDefaultFlags,
|
|
6221
6218
|
Ae as readPath,
|
|
@@ -6238,8 +6235,8 @@ export {
|
|
|
6238
6235
|
La as resolveRoute,
|
|
6239
6236
|
Ar as resolveSignature,
|
|
6240
6237
|
Gn as resolveTier,
|
|
6241
|
-
|
|
6242
|
-
|
|
6238
|
+
lp as resolveWorkMode,
|
|
6239
|
+
hp as resourceKindOf,
|
|
6243
6240
|
nd as rollupChildren,
|
|
6244
6241
|
z as roundHalfUp,
|
|
6245
6242
|
Yl as runActor,
|
|
@@ -6265,7 +6262,7 @@ export {
|
|
|
6265
6262
|
Yt as shareKeyForUser,
|
|
6266
6263
|
fc as shareKeysForViewer,
|
|
6267
6264
|
jl as shortfalls,
|
|
6268
|
-
|
|
6265
|
+
up as shouldRunAudioPipeline,
|
|
6269
6266
|
Gu as slaBadgeTone,
|
|
6270
6267
|
ol as slaHoursByInbox,
|
|
6271
6268
|
zr as slaHoursFor,
|
|
@@ -6299,7 +6296,7 @@ export {
|
|
|
6299
6296
|
su as toolDisplayName,
|
|
6300
6297
|
If as toolReversible,
|
|
6301
6298
|
pc as toolSourceKinds,
|
|
6302
|
-
|
|
6299
|
+
wp as toolVerdict,
|
|
6303
6300
|
Ci as topicOfferedForTeam,
|
|
6304
6301
|
hd as topicsForTeam,
|
|
6305
6302
|
fo as trafficIntensity,
|
|
@@ -590,42 +590,12 @@ export type ServerOp = {
|
|
|
590
590
|
cursor?: string;
|
|
591
591
|
limit?: number;
|
|
592
592
|
} | {
|
|
593
|
-
kind: "
|
|
594
|
-
channelId: string;
|
|
595
|
-
} | {
|
|
596
|
-
kind: "folder.messages";
|
|
597
|
-
channelId: string;
|
|
598
|
-
folderId: string;
|
|
599
|
-
cursor?: string;
|
|
600
|
-
limit?: number;
|
|
601
|
-
} | {
|
|
602
|
-
kind: "folder.import";
|
|
593
|
+
kind: "mailbox.import";
|
|
603
594
|
channelId: string;
|
|
604
595
|
externalThreadId: string;
|
|
605
|
-
folderId?: string;
|
|
606
|
-
folderName?: string;
|
|
607
|
-
} | {
|
|
608
|
-
kind: "folder.move";
|
|
609
|
-
channelId: string;
|
|
610
|
-
interactionId: string;
|
|
611
|
-
folderId: string;
|
|
612
|
-
folderName?: string;
|
|
613
596
|
};
|
|
614
|
-
/**
|
|
615
|
-
|
|
616
|
-
* Deliberately NOT persisted entities: the folder tree and previews are
|
|
617
|
-
* fetched live from the provider (TTL-cached client-side), never bulk-stored.
|
|
618
|
-
* Providers map their own model onto this (Outlook `mailFolders`, Gmail
|
|
619
|
-
* `labels`, IMAP `folders`).
|
|
620
|
-
*/
|
|
621
|
-
export interface FolderNode {
|
|
622
|
-
id: string;
|
|
623
|
-
name: string;
|
|
624
|
-
parentId?: string;
|
|
625
|
-
unreadCount?: number;
|
|
626
|
-
kind?: "system" | "user";
|
|
627
|
-
}
|
|
628
|
-
export interface FolderMessagePreview {
|
|
597
|
+
/** One live message preview from a remote mailbox search. Never persisted until imported. */
|
|
598
|
+
export interface MailboxMessagePreview {
|
|
629
599
|
externalThreadId: string;
|
|
630
600
|
externalMessageId: string;
|
|
631
601
|
subject: string;
|
|
@@ -638,8 +608,8 @@ export interface FolderMessagePreview {
|
|
|
638
608
|
hasAttachments: boolean;
|
|
639
609
|
unread?: boolean;
|
|
640
610
|
}
|
|
641
|
-
export interface
|
|
642
|
-
items:
|
|
611
|
+
export interface MailboxMessagePage {
|
|
612
|
+
items: MailboxMessagePreview[];
|
|
643
613
|
/** Opaque provider cursor (e.g. Graph `@odata.nextLink`). Absent = last page. */
|
|
644
614
|
nextCursor?: string;
|
|
645
615
|
}
|
|
@@ -654,12 +624,6 @@ export interface MailboxSearchSource {
|
|
|
654
624
|
providerId: string;
|
|
655
625
|
displayName: string;
|
|
656
626
|
}
|
|
657
|
-
/**
|
|
658
|
-
* Well-known `ProviderFeature.name` for the folder capability. A provider
|
|
659
|
-
* supporting folder.list/messages/import/move sets it true in
|
|
660
|
-
* `describe().features`; the client then shows the Folders nav for that channel.
|
|
661
|
-
*/
|
|
662
|
-
export declare const FEATURE_FOLDER_MANAGEMENT = "folder_management";
|
|
663
627
|
/**
|
|
664
628
|
* Well-known `ProviderFeature.name` for remote search (`mailbox.search`, e.g.
|
|
665
629
|
* Outlook Graph `$search` or IMAP SEARCH). The comm-server includes such
|
|
@@ -18,7 +18,7 @@ export declare const APP_PERMISSIONS: {
|
|
|
18
18
|
readonly "app-store": readonly ["app.publish", "app.read", "app.write", "setting.read", "setting.write"];
|
|
19
19
|
readonly assist: readonly ["board.read"];
|
|
20
20
|
readonly automations: readonly ["sync.read", "sync.write", "webhook.read", "webhook.write"];
|
|
21
|
-
readonly communication: readonly ["account.read", "account.write", "activity-type.read", "activity.read", "activity.write", "attachment.read", "calendar.read", "calendar.write", "channel.read", "channel.write", "
|
|
21
|
+
readonly communication: readonly ["account.read", "account.write", "activity-type.read", "activity.read", "activity.write", "attachment.read", "calendar.read", "calendar.write", "channel.read", "channel.write", "inbox.read", "inbox.write", "interaction.read", "interaction.write", "reminder.read", "template.read", "template.write"];
|
|
22
22
|
readonly context: readonly ["attribute.read", "attribute.write", "custom-field.read", "custom-field.write", "kind.read", "kind.write", "memory.read", "memory.write", "reaction.read", "reaction.write", "topic.read", "topic.write"];
|
|
23
23
|
readonly crm: readonly ["company.read", "company.write", "contact.read", "contact.write"];
|
|
24
24
|
readonly "eylo-voip": readonly ["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"];
|
package/package.json
CHANGED
package/dist/platform/push.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
export type PushTransport = "webpush" | "apns" | "apns-voip" | "fcm" | "tauri";
|
|
2
|
-
export type PushPlatform = "web" | "ios" | "android" | "desktop";
|
|
3
|
-
export interface PushSubscription {
|
|
4
|
-
id: string;
|
|
5
|
-
userId: string;
|
|
6
|
-
installationId: string;
|
|
7
|
-
transport: PushTransport;
|
|
8
|
-
token: string;
|
|
9
|
-
keys?: {
|
|
10
|
-
p256dh: string;
|
|
11
|
-
auth: string;
|
|
12
|
-
};
|
|
13
|
-
platform: PushPlatform;
|
|
14
|
-
appVersion: string;
|
|
15
|
-
providerId?: string;
|
|
16
|
-
createdAt: number;
|
|
17
|
-
lastSeenAt: number;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* The platform's own kinds, plus whatever a `notification-source` app declares
|
|
21
|
-
* (`"communication:mentioned"`). Open like {@link ExtensionContext}: the closed union kept
|
|
22
|
-
* autocomplete but made an app-declared kind unexpressible, and per-kind device preferences
|
|
23
|
-
* are exactly what apps must be able to declare.
|
|
24
|
-
*/
|
|
25
|
-
export type PushKind = "wake" | "incoming-call" | "message" | "presence" | "notification" | "custom" | (string & {});
|
|
26
|
-
export interface PushDisplay {
|
|
27
|
-
title: string;
|
|
28
|
-
body?: string;
|
|
29
|
-
icon?: string;
|
|
30
|
-
tag?: string;
|
|
31
|
-
actions?: {
|
|
32
|
-
id: string;
|
|
33
|
-
title: string;
|
|
34
|
-
}[];
|
|
35
|
-
url?: string;
|
|
36
|
-
}
|
|
37
|
-
export interface PushEnvelope<P = unknown> {
|
|
38
|
-
providerId: string;
|
|
39
|
-
accountId?: string;
|
|
40
|
-
kind: PushKind;
|
|
41
|
-
display?: PushDisplay;
|
|
42
|
-
payload: P;
|
|
43
|
-
ts: number;
|
|
44
|
-
ttl?: number;
|
|
45
|
-
voip?: boolean;
|
|
46
|
-
}
|
|
47
|
-
export type PushSubscribeInput = Omit<PushSubscription, "id" | "userId" | "installationId" | "createdAt" | "lastSeenAt">;
|
|
48
|
-
export interface PushSendRequest<P = unknown> {
|
|
49
|
-
to: {
|
|
50
|
-
userIds: string[];
|
|
51
|
-
} | {
|
|
52
|
-
userId: string;
|
|
53
|
-
};
|
|
54
|
-
installationIds?: string[];
|
|
55
|
-
envelope: Omit<PushEnvelope<P>, "ts">;
|
|
56
|
-
platforms?: PushPlatform[];
|
|
57
|
-
collapseKey?: string;
|
|
58
|
-
}
|
|
59
|
-
export interface PushSendResult {
|
|
60
|
-
delivered: number;
|
|
61
|
-
}
|
|
62
|
-
export interface IPushChannel {
|
|
63
|
-
readonly providerId: string;
|
|
64
|
-
handle(env: PushEnvelope): Promise<void>;
|
|
65
|
-
}
|