@opencxh/domain 1.262.0 → 1.263.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -53,8 +53,19 @@ export interface ApprovalRequest {
53
53
  * read long after it was written and the queue lists requests across apps, so neither has the
54
54
  * resource at hand. Same doctrine as `Pin.label` — whoever renders it with the live row in
55
55
  * reach lets the live value win. Absent = the reader falls back to the key.
56
+ *
57
+ * Write it the way the approver needs to recognise it, not the way the owning app files it:
58
+ * "Offerte · Scan Sys B.V. · € 121,00" is one glance, "quote:01a0…" is a lookup.
56
59
  */
57
60
  title?: string;
61
+ /**
62
+ * Where the thing lives, as a shell path (`/apps/sales/<entity>/quotes/<id>`).
63
+ *
64
+ * Snapshotted for the same reason as {@link ApprovalRequest.title}, and passed rather than
65
+ * derived: this layer would have to learn every app's routing table to build one, and a guessed
66
+ * path is a dead-end navigation — worse than no link at all.
67
+ */
68
+ url?: string;
58
69
  /** What the requester wrote when submitting. */
59
70
  note?: string;
60
71
  policyId?: string;
package/dist/index.cjs CHANGED
@@ -21,27 +21,27 @@ Hierbij onze creditnota. De onderstaande bedragen worden met u verrekend.`},Bt={
21
21
  `)});continue}const y=p.match(/^(#{1,3})\s+(.*)$/);if(y){d(),n.push({type:"heading",level:y[1].length,text:y[2].trim()}),c++;continue}const m=p.match(/^!\[([^\]]*)\]\(([^)\s]+)\)\s*$/);if(m){d(),n.push({type:"image",url:m[2],...m[1]?{alt:m[1]}:{}}),c++;continue}if(/^\s*[-*]\s+/.test(p)){u(),l(),i("bulleted",p.replace(/^\s*[-*]\s+/,"")),c++;continue}if(/^\s*\d+\.\s+/.test(p)){u(),l(),i("numbered",p.replace(/^\s*\d+\.\s+/,"")),c++;continue}if(/^\s*(-{3,}|\*{3,}|_{3,})\s*$/.test(p)){d(),n.push({type:"divider"}),c++;continue}if(/^>\s?/.test(p)){u(),o(),a.push(p.replace(/^>\s?/,"")),c++;continue}if(p.trim()===""){d(),c++;continue}l(),o();const b=jt.test(p);s.push(p.replace(jt,"").trim()+(b?`
22
22
  `:" ")),c++}return d(),n}function Eu(e,t){return it(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 _u="documents.describe",Au="documents.inspect",Su="documents.apply";function bu(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 Tu="installation-id";function Iu(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 Mu="notification-source",Ou=(e,t)=>`${e}.pref.${t}`,ku={ai:["account.read","account.write","agent.read","agent.write","assignment.read","assignment.write","budget.read","budget.write","connector.read","connector.write","context.read","context.write","conversation.read","conversation.write","lens.read","lens.write","message.read","message.write","playbook.read","playbook.write","profile.read","profile.write","run.read","run.write","settings.read","settings.write","tool.read","transcript.write","usage.read"],analytics:["report.read"],"app-store":["app.publish","app.read","app.write","setting.read","setting.write"],assist:["board.read"],automations:["sync.read","sync.write","webhook.read","webhook.write"],communication:["account.read","account.write","activity-type.read","activity.read","activity.write","attachment.read","attribute.read","attribute.write","calendar.read","calendar.write","channel.read","channel.write","custom-field.read","custom-field.write","folder.read","folder.write","inbox.read","inbox.write","interaction.read","interaction.write","reaction.read","reaction.write","reminder.read","template.read","template.write","topic.read","topic.write"],context:["kind.read","kind.write","memory.read","memory.write"],crm:["company.read","company.write","contact.read","contact.write"],"eylo-voip":["account.read","account.write","callflow.read","callflow.write","channel.read","channel.write","contact.read","contact.write","device.read","device.write","group.read","group.write","interaction.read","interaction.write","media.read","media.write","menu.read","menu.write","phone-number.read","phone-number.write","recording.read","recording.write","sip.read","temporal-rule.read","temporal-rule.write","user.read","user.write","vmbox.read","vmbox.write","webhook.read","webhook.write"],google:["account.read","account.write","contact.read"],kb:["article.read","article.write","category.read","category.write","help-center.read","help-center.write","kb.read","kb.write"],mail:["account.write"],meta:["account.read","account.write"],microsoft:["account.read","account.write","contact.read","sync.write"],organization:["billing.read","billing.write","settings.read","settings.write","team.read","team.write"],shopify:["account.read","account.write","order.read"],slack:["thread.read","thread.write"],storage:["artifact.read","artifact.write","file.read","file.write","mount.read","mount.write"],time:["entry.read","entry.write","work-type.read","work-type.write"],user:["user.read","user.write"],work:["item.read","item.write","project.read","project.write"]},St=9e4,So=["out_of_office"],bo=e=>So.includes(e);function Cu(e,t,n){const r=n-e<St,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&&!bo(i)?{online:!1,status:"offline"}:{online:r,status:i,message:o.message}}function Nu(e,t){const n=t-e.lastSeenAt<St,r=n||bo(e.status)?e.status:"offline";return n===e.online&&r===e.status?e:{...e,online:n,status:r}}function wu(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 vu(e){return e.providerAvailable&&e.allowed}const Ru="resources.describe",Du="resources.search",xu="resources.resolve",Lu="resources.attached";function Pu(e){const t=e.indexOf(":");return t===-1?e:e.slice(0,t)}const $u="/provider/scope/related",Uu="/provider/scope/read",bt="auth";function Tt(e){const t=typeof e=="string"?e.match(/apps\/([^/?#]+)/):null;return t?t[1]:null}function Ku(e){const t=Tt(e);return t?t!==bt:typeof e=="string"&&e.startsWith("/wake")}function Fu(e){return typeof e!="string"||e===""||e==="/"?!0:Tt(e)===bt}function Bu(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function To(e){const n=e.split("/").filter(Boolean).map(r=>r.startsWith(":")?r.endsWith("?")?"(?:/[^/]+)?":"/[^/]+":`/${Bu(r)}`).join("");return new RegExp(`^${n}\\/?$`)}function Io(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),u=r[s];u&&(o[a]=u)}}),o}function Mo(e){return e.publicBasePath??`/apps/${e.name}`}function Hu(e){const t=[];for(const n of e){if(!n?.name)continue;const r=Mo(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 Oo(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 ko(e,t){if(typeof e!="string")return null;let n=null;for(const r of t)To(r.pattern).test(e)&&(!n||Oo(r.pattern,n.pattern))&&(n=r);return n?{...n,params:{...n.props,...Io(n.pattern,e)}}:null}function Gu(e,t){return ko(e,t)!==null}const Wu=10*1024*1024,ju=25*1024*1024,Vu="sync-target",Yu=20,zu={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]"]},Co=e=>{let t=e;return Object.values(zu).forEach(n=>{n.forEach(r=>{t=t.replaceAll(r,"")})}),t=t.replace(/\(.*?\)/g,""),t=t.replace(/\[.*?\]/g,""),t},No=6e4,wo=8e3,vo=2,Ro=.4,Xu=3,qu=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 Do(e){const t=new Set;for(const n of e.toLowerCase().split(/[^a-z0-9À-ɏ]+/))n.length<Xu||qu.has(n)||t.add(n);return[...t]}function xo(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 Lo(e,t=No){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=>Co(s.text).trim()).filter(Boolean).join(" ").replace(/\s+/g," ").trim(),segmentCount:n.length}}const Po=60;function Qu(e,t,n=Po){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 Ju(e){const{segments:t,now:n,state:r}=e;if(r.lastTriggerAt&&n-r.lastTriggerAt<wo)return{trigger:!1,reason:"too_soon"};const o=Lo(t,e.windowMs);if(!o.text)return{trigger:!1,reason:"no_speech"};const i=o.segmentCount-(r.lastSegmentCount??0);if(r.lastQueryTerms&&i<vo)return{trigger:!1,reason:"too_few_new"};const s=Do(o.text);return s.length?r.lastQueryTerms?.length&&xo(s,r.lastQueryTerms)<Ro?{trigger:!1,reason:"same_topic"}:{trigger:!0,text:o.text,terms:s,segmentCount:o.segmentCount}:{trigger:!1,reason:"no_speech"}}const Zu=["personal","organization","connections","flows","work","administration","ai"],ed="navNotice",Le={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}},$o="NL",td=15,nd=8,rd=Array.from(new Set(Object.values(Le).map(e=>e.callingCode))).sort((e,t)=>t.length-e.length);function Yt(e){if(e)return Le[e.trim().toUpperCase()]}function ue(e,t){return e.length>=t.nsnMin&&e.length<=t.nsnMax}function zt(e){if(e.length>td)return null;for(const t of rd){if(!e.startsWith(t))continue;const n=e.slice(t.length);for(const r of Object.values(Le)){if(r.callingCode!==t)continue;const o=r.trunkPrefix,i=o&&n.startsWith(o)?n.slice(o.length):n;if(ue(i,r))return`+${t}${i}`}return null}return e.length<nd?null:`+${e}`}function od(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 id(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 et(e,t){if(!e)return null;const n=od(e);if(!n)return null;const r=n.startsWith("+"),o=n.replace(/\D/g,"");if(!o)return null;if(r)return zt(o);if(o.startsWith("00"))return zt(o.slice(2));const i=Yt(t)??Yt($o);if(!i)return null;const s=i.trunkPrefix;if(s&&o.startsWith(s)){const a=o.slice(s.length);return ue(a,i)?`+${i.callingCode}${a}`:null}if(o.startsWith(i.callingCode)){const a=o.slice(i.callingCode.length);if(ue(a,i))return`+${i.callingCode}${a}`}return!s&&ue(o,i)?`+${i.callingCode}${o}`:null}function sd(e,t=9){const n=(e??"").replace(/\D/g,"");return n.length<t?null:n.slice(-t)}function It(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 ad(e){const t=It(e);return t?t.slice(t.lastIndexOf("@")+1):null}const cd=new Set(["co.uk","org.uk","gov.uk","ac.uk","com.au","co.nz","com.br","co.za"]);function Uo(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 cd.has(n)&&t.length>=3?t.slice(-3).join("."):n}const Ko=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 ld(e){const t=Uo(e);return t?Ko.has(t):!1}function ud(e){if(!e)return!1;const t=e.trim().toLowerCase();return t==="tel"||t==="sms"||t==="whatsapp"||t==="fax"}function dd(e,t,n){if(!e||!t)return null;const r=e.trim().toLowerCase();if(r==="tel"||r==="sms"||r==="whatsapp"){const i=et(t,n);return i?`tel:${i}`:null}if(r==="fax"){const i=et(t,n);return i?`fax:${i}`:null}if(r==="mailto"||r==="email"){const i=It(t);return i?`mailto:${i}`:null}const o=t.trim().toLowerCase();return o?`${r}:${o}`:null}const pd=[/<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],Xt=/^\s*(?:>+\s*)?(?:from|van|sent|verzonden|to|aan|cc|subject|onderwerp|date|datum)\s*:/i,fd=/^\s*(?:on|op)\b.{0,200}?\b(?:wrote|schreef|geschreven)\s*:?\s*$/i;function md(e){const t=e.split(`
25
- `);for(let n=0;n<t.length;n++)if(fd.test(t[n])||Xt.test(t[n])&&t.slice(n+1,n+4).some(r=>Xt.test(r)))return t.slice(0,n).join(`
26
- `).trim();return e}const gd=/^(?:https?:|mailto:|tel:)/i,hd=/^(?:https?:|cid:|data:image\/)/i;function Be(e,t){const n=e.match(new RegExp(`\\b${t}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|([^\\s">]+))`,"i"));return(n?.[1]??n?.[2]??n?.[3]??"").trim()}const yd=/(!\[[^\]]*\]\([^)]*\))/;function qt(e){return e.replace(/\s+/g," ").trim().split(yd).map((t,n)=>n%2===1?t:t.replace(/[[\]]/g,"\\$&")).join("")}function He(e){return e.replace(/[()\s<>"]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0")}`)}function Ed(e){return e.replace(/<img\b([^>]*?)\/?>/gi,(n,r)=>{const o=Be(r,"src");return hd.test(o)?`![${qt(Be(r,"alt"))}](${He(o)})`:""}).replace(/<a\b([^>]*)>([\s\S]*?)<\/a\s*>/gi,(n,r,o)=>{const i=qt(o.replace(/<[^>]*>/g,"")),s=Be(r,"href");return gd.test(s)?`[${i||He(s)}](${He(s)})`:i})}const _d=/<table\b[^>]*>((?:(?!<table\b)[\s\S])*?)<\/table\s*>/i,Ad=/<tr\b[^>]*>([\s\S]*?)<\/tr\s*>/gi,Sd=/<(t[dh])\b([^>]*)>([\s\S]*?)<\/\1\s*>/gi;function bd(e,t){return/<table\b/i.test(e)||e.includes(`
24
+ `).trim()}const _u="documents.describe",Au="documents.inspect",Su="documents.apply";function bu(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 Tu="installation-id";function Iu(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 Mu="notification-source",Ou=(e,t)=>`${e}.pref.${t}`,ku={ai:["account.read","account.write","agent.read","agent.write","assignment.read","assignment.write","budget.read","budget.write","connector.read","connector.write","context.read","context.write","conversation.read","conversation.write","lens.read","lens.write","message.read","message.write","playbook.read","playbook.write","profile.read","profile.write","run.read","run.write","settings.read","settings.write","tool.read","transcript.write","usage.read"],analytics:["report.read"],"app-store":["app.publish","app.read","app.write","setting.read","setting.write"],assist:["board.read"],automations:["sync.read","sync.write","webhook.read","webhook.write"],communication:["account.read","account.write","activity-type.read","activity.read","activity.write","attachment.read","attribute.read","attribute.write","calendar.read","calendar.write","channel.read","channel.write","custom-field.read","custom-field.write","folder.read","folder.write","inbox.read","inbox.write","interaction.read","interaction.write","reaction.read","reaction.write","reminder.read","template.read","template.write","topic.read","topic.write"],context:["kind.read","kind.write","memory.read","memory.write"],crm:["company.read","company.write","contact.read","contact.write"],"eylo-voip":["account.read","account.write","callflow.read","callflow.write","channel.read","channel.write","contact.read","contact.write","device.read","device.write","group.read","group.write","interaction.read","interaction.write","media.read","media.write","menu.read","menu.write","phone-number.read","phone-number.write","recording.read","recording.write","sip.read","temporal-rule.read","temporal-rule.write","user.read","user.write","vmbox.read","vmbox.write","webhook.read","webhook.write"],google:["account.read","account.write","contact.read"],kb:["article.read","article.write","category.read","category.write","help-center.read","help-center.write","kb.read","kb.write"],mail:["account.write"],meta:["account.read","account.write"],microsoft:["account.read","account.write","contact.read","sync.write"],organization:["billing.read","billing.write","settings.read","settings.write","team.read","team.write"],shopify:["account.read","account.write","order.read"],slack:["thread.read","thread.write"],storage:["artifact.read","artifact.write","file.read","file.write","mount.read","mount.write"],time:["entry.read","entry.write","work-type.read","work-type.write"],user:["user.read","user.write"],work:["item.read","item.write","project.read","project.write"]},St=9e4,So=["out_of_office"],bo=e=>So.includes(e);function Cu(e,t,n){const r=n-e<St,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&&!bo(i)?{online:!1,status:"offline"}:{online:r,status:i,message:o.message}}function Nu(e,t){const n=t-e.lastSeenAt<St,r=n||bo(e.status)?e.status:"offline";return n===e.online&&r===e.status?e:{...e,online:n,status:r}}function wu(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 vu(e){return e.providerAvailable&&e.allowed}const Ru="resources.describe",Du="resources.search",xu="resources.resolve",Lu="resources.attached";function Pu(e){const t=e.indexOf(":");return t===-1?e:e.slice(0,t)}const $u="/provider/scope/related",Uu="/provider/scope/read",Ku="/provider/scope/acts",bt="auth";function Tt(e){const t=typeof e=="string"?e.match(/apps\/([^/?#]+)/):null;return t?t[1]:null}function Fu(e){const t=Tt(e);return t?t!==bt:typeof e=="string"&&e.startsWith("/wake")}function Bu(e){return typeof e!="string"||e===""||e==="/"?!0:Tt(e)===bt}function Hu(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function To(e){const n=e.split("/").filter(Boolean).map(r=>r.startsWith(":")?r.endsWith("?")?"(?:/[^/]+)?":"/[^/]+":`/${Hu(r)}`).join("");return new RegExp(`^${n}\\/?$`)}function Io(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),u=r[s];u&&(o[a]=u)}}),o}function Mo(e){return e.publicBasePath??`/apps/${e.name}`}function Gu(e){const t=[];for(const n of e){if(!n?.name)continue;const r=Mo(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 Oo(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 ko(e,t){if(typeof e!="string")return null;let n=null;for(const r of t)To(r.pattern).test(e)&&(!n||Oo(r.pattern,n.pattern))&&(n=r);return n?{...n,params:{...n.props,...Io(n.pattern,e)}}:null}function Wu(e,t){return ko(e,t)!==null}const ju=10*1024*1024,Vu=25*1024*1024,Yu="sync-target",zu=20,Xu={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]"]},Co=e=>{let t=e;return Object.values(Xu).forEach(n=>{n.forEach(r=>{t=t.replaceAll(r,"")})}),t=t.replace(/\(.*?\)/g,""),t=t.replace(/\[.*?\]/g,""),t},No=6e4,wo=8e3,vo=2,Ro=.4,qu=3,Qu=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 Do(e){const t=new Set;for(const n of e.toLowerCase().split(/[^a-z0-9À-ɏ]+/))n.length<qu||Qu.has(n)||t.add(n);return[...t]}function xo(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 Lo(e,t=No){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=>Co(s.text).trim()).filter(Boolean).join(" ").replace(/\s+/g," ").trim(),segmentCount:n.length}}const Po=60;function Ju(e,t,n=Po){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 Zu(e){const{segments:t,now:n,state:r}=e;if(r.lastTriggerAt&&n-r.lastTriggerAt<wo)return{trigger:!1,reason:"too_soon"};const o=Lo(t,e.windowMs);if(!o.text)return{trigger:!1,reason:"no_speech"};const i=o.segmentCount-(r.lastSegmentCount??0);if(r.lastQueryTerms&&i<vo)return{trigger:!1,reason:"too_few_new"};const s=Do(o.text);return s.length?r.lastQueryTerms?.length&&xo(s,r.lastQueryTerms)<Ro?{trigger:!1,reason:"same_topic"}:{trigger:!0,text:o.text,terms:s,segmentCount:o.segmentCount}:{trigger:!1,reason:"no_speech"}}const ed=["personal","organization","connections","flows","work","administration","ai"],td="navNotice",Le={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}},$o="NL",nd=15,rd=8,od=Array.from(new Set(Object.values(Le).map(e=>e.callingCode))).sort((e,t)=>t.length-e.length);function Yt(e){if(e)return Le[e.trim().toUpperCase()]}function ue(e,t){return e.length>=t.nsnMin&&e.length<=t.nsnMax}function zt(e){if(e.length>nd)return null;for(const t of od){if(!e.startsWith(t))continue;const n=e.slice(t.length);for(const r of Object.values(Le)){if(r.callingCode!==t)continue;const o=r.trunkPrefix,i=o&&n.startsWith(o)?n.slice(o.length):n;if(ue(i,r))return`+${t}${i}`}return null}return e.length<rd?null:`+${e}`}function id(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 sd(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 et(e,t){if(!e)return null;const n=id(e);if(!n)return null;const r=n.startsWith("+"),o=n.replace(/\D/g,"");if(!o)return null;if(r)return zt(o);if(o.startsWith("00"))return zt(o.slice(2));const i=Yt(t)??Yt($o);if(!i)return null;const s=i.trunkPrefix;if(s&&o.startsWith(s)){const a=o.slice(s.length);return ue(a,i)?`+${i.callingCode}${a}`:null}if(o.startsWith(i.callingCode)){const a=o.slice(i.callingCode.length);if(ue(a,i))return`+${i.callingCode}${a}`}return!s&&ue(o,i)?`+${i.callingCode}${o}`:null}function ad(e,t=9){const n=(e??"").replace(/\D/g,"");return n.length<t?null:n.slice(-t)}function It(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 cd(e){const t=It(e);return t?t.slice(t.lastIndexOf("@")+1):null}const ld=new Set(["co.uk","org.uk","gov.uk","ac.uk","com.au","co.nz","com.br","co.za"]);function Uo(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 ld.has(n)&&t.length>=3?t.slice(-3).join("."):n}const Ko=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 ud(e){const t=Uo(e);return t?Ko.has(t):!1}function dd(e){if(!e)return!1;const t=e.trim().toLowerCase();return t==="tel"||t==="sms"||t==="whatsapp"||t==="fax"}function pd(e,t,n){if(!e||!t)return null;const r=e.trim().toLowerCase();if(r==="tel"||r==="sms"||r==="whatsapp"){const i=et(t,n);return i?`tel:${i}`:null}if(r==="fax"){const i=et(t,n);return i?`fax:${i}`:null}if(r==="mailto"||r==="email"){const i=It(t);return i?`mailto:${i}`:null}const o=t.trim().toLowerCase();return o?`${r}:${o}`:null}const fd=[/<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],Xt=/^\s*(?:>+\s*)?(?:from|van|sent|verzonden|to|aan|cc|subject|onderwerp|date|datum)\s*:/i,md=/^\s*(?:on|op)\b.{0,200}?\b(?:wrote|schreef|geschreven)\s*:?\s*$/i;function gd(e){const t=e.split(`
25
+ `);for(let n=0;n<t.length;n++)if(md.test(t[n])||Xt.test(t[n])&&t.slice(n+1,n+4).some(r=>Xt.test(r)))return t.slice(0,n).join(`
26
+ `).trim();return e}const hd=/^(?:https?:|mailto:|tel:)/i,yd=/^(?:https?:|cid:|data:image\/)/i;function Be(e,t){const n=e.match(new RegExp(`\\b${t}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|([^\\s">]+))`,"i"));return(n?.[1]??n?.[2]??n?.[3]??"").trim()}const Ed=/(!\[[^\]]*\]\([^)]*\))/;function qt(e){return e.replace(/\s+/g," ").trim().split(Ed).map((t,n)=>n%2===1?t:t.replace(/[[\]]/g,"\\$&")).join("")}function He(e){return e.replace(/[()\s<>"]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0")}`)}function _d(e){return e.replace(/<img\b([^>]*?)\/?>/gi,(n,r)=>{const o=Be(r,"src");return yd.test(o)?`![${qt(Be(r,"alt"))}](${He(o)})`:""}).replace(/<a\b([^>]*)>([\s\S]*?)<\/a\s*>/gi,(n,r,o)=>{const i=qt(o.replace(/<[^>]*>/g,"")),s=Be(r,"href");return hd.test(s)?`[${i||He(s)}](${He(s)})`:i})}const Ad=/<table\b[^>]*>((?:(?!<table\b)[\s\S])*?)<\/table\s*>/i,Sd=/<tr\b[^>]*>([\s\S]*?)<\/tr\s*>/gi,bd=/<(t[dh])\b([^>]*)>([\s\S]*?)<\/\1\s*>/gi;function Td(e,t){return/<table\b/i.test(e)||e.includes(`
27
27
 
28
- |`)||t.includes("![")||t.length>200}const Td=40,Id={left:"---",center:":---:",right:"---:"};function Md(e){const t=e.match(/align\s*[=:]\s*["']?\s*(right|center)/i);return t?t[1].toLowerCase():"left"}function Od(e){return e.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim().replace(/\|/g,"\\|")}function kd(e){const t=[];for(const s of e.matchAll(Ad)){const a=[];for(const u of s[1].matchAll(Sd)){const l=Od(u[3]);if(bd(u[3],l))return null;a.push({text:l,align:Md(u[2])})}if(a.length===0)return null;a.some(u=>u.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=>Id[s.align]).join(" | "),i=t.slice(1).map(r).join(`
28
+ |`)||t.includes("![")||t.length>200}const Id=40,Md={left:"---",center:":---:",right:"---:"};function Od(e){const t=e.match(/align\s*[=:]\s*["']?\s*(right|center)/i);return t?t[1].toLowerCase():"left"}function kd(e){return e.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim().replace(/\|/g,"\\|")}function Cd(e){const t=[];for(const s of e.matchAll(Sd)){const a=[];for(const u of s[1].matchAll(bd)){const l=kd(u[3]);if(Td(u[3],l))return null;a.push({text:l,align:Od(u[2])})}if(a.length===0)return null;a.some(u=>u.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=>Md[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 Cd(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 Nd(e){let t=e;for(let n=0;n<Td;n++){const r=_d.exec(t);if(!r||r.index===void 0)break;const i=kd(r[1])??`
35
+ `}function Nd(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 wd(e){let t=e;for(let n=0;n<Id;n++){const r=Ad.exec(t);if(!r||r.index===void 0)break;const i=Cd(r[1])??`
37
37
 
38
- ${Cd(r[1])}
38
+ ${Nd(r[1])}
39
39
 
40
40
  `;t=t.slice(0,r.index)+i+t.slice(r.index+r[0].length)}return t}function Qt(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=Nd(Ed(n))),n=n.replace(/<\/(p|h[1-6]|ul|ol|table|blockquote)>/gi,`
41
+ `),t&&(n=wd(_d(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 Jt(e){return!Number.isInteger(e)||e<0||e>1114111?null:String.fromCodePoint(e)}const wd={euro:"€",pound:"£",yen:"¥",cent:"¢",copy:"©",reg:"®",trade:"™",deg:"°",plusmn:"±",times:"×",middot:"·",bull:"•",hellip:"…",mdash:"—",ndash:"–",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",apos:"'"};function Zt(e){return e.replace(/&nbsp;/gi," ").replace(/&([a-z]+);/gi,(t,n)=>wd[n.toLowerCase()]??t).replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&quot;/gi,'"').replace(/&#(\d+);/g,(t,n)=>Jt(Number(n))??t).replace(/&#x([0-9a-f]+);/gi,(t,n)=>Jt(parseInt(n,16))??t).replace(/&amp;/gi,"&")}function en(e){return e.replace(/\r/g,"").replace(/[ \t]+/g," ").replace(/ *\n */g,`
44
+ `),n=n.replace(/<\/(td|th)>/gi," "),n=n.replace(/<[^>]+>/g,""),n=n.replace(/<[^>]*$/,""),n}function Jt(e){return!Number.isInteger(e)||e<0||e>1114111?null:String.fromCodePoint(e)}const vd={euro:"€",pound:"£",yen:"¥",cent:"¢",copy:"©",reg:"®",trade:"™",deg:"°",plusmn:"±",times:"×",middot:"·",bull:"•",hellip:"…",mdash:"—",ndash:"–",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",apos:"'"};function Zt(e){return e.replace(/&nbsp;/gi," ").replace(/&([a-z]+);/gi,(t,n)=>vd[n.toLowerCase()]??t).replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&quot;/gi,'"').replace(/&#(\d+);/g,(t,n)=>Jt(Number(n))??t).replace(/&#x([0-9a-f]+);/gi,(t,n)=>Jt(parseInt(n,16))??t).replace(/&amp;/gi,"&")}function en(e){return e.replace(/\r/g,"").replace(/[ \t]+/g," ").replace(/ *\n */g,`
45
45
  `).replace(/\n{3,}/g,`
46
46
 
47
- `).trim()}const Fo=/<\s*(html|body|div|p|table|br|span)\b/i;function vd(e){return Fo.test(e)}function Rd(e){return Bo(e,!1)}function Dd(e){return Bo(e,!0)}function Bo(e,t){if(typeof e!="string"||!e)return"";let n=e.length;for(const s of pd){const a=e.search(s);a>=0&&a<n&&(n=a)}const r=e.slice(0,n);let o=en(Zt(Qt(r,t)));return o||(o=en(Zt(Qt(e,t)))),md(o)||o}exports.ACTIVE_ASSIGNMENT_STATUSES=Fi;exports.ACTIVITY_CATALOG=D;exports.AI_ATTACHMENT_LIMITS=go;exports.AI_ATTACHMENT_MAX_PER_TURN=Ll;exports.AI_ATTACHMENT_TURN_BUDGET=xl;exports.AI_VENDORS=rt;exports.ALLOWED_LINK_SCHEMES=hn;exports.APP_PERMISSIONS=ku;exports.ARTIFACT_MAX_BLOCKS=fe;exports.ARTIFACT_MAX_BODY_BYTES=gn;exports.ARTIFACT_MAX_CELL_LEN=F;exports.ARTIFACT_MAX_KPI_ITEMS=ye;exports.ARTIFACT_MAX_LIST_ITEMS=me;exports.ARTIFACT_MAX_TABLE_COLUMNS=he;exports.ARTIFACT_MAX_TABLE_ROWS=ge;exports.ARTIFACT_MAX_TEXT_LEN=Oe;exports.ASSIGNMENT_SCOPE_KIND=bn;exports.ASSIST_BANDS=Fl;exports.ASSIST_SOURCE_PROVIDER_GROUP=Kl;exports.ATTENTION_STATUSES=Kn;exports.AT_RISK_GAP=Gr;exports.AUTH_APP_NAME=bt;exports.AUTO_READY_MIN_PROPOSALS=Nr;exports.AUTO_READY_RATE=wr;exports.ActivityTypeRegistry=an;exports.BUILT_IN_ONLY=si;exports.BULK_PENALTY=Fn;exports.BUSINESS_ENTITY_LIST_SERVICE=zi;exports.CADENCE_FLOOR_MS=wo;exports.CADENCE_MIN_NEW_SEGMENTS=vo;exports.CADENCE_MIN_NOVELTY=Ro;exports.CADENCE_WINDOW_MS=No;exports.CLASSIFY_VARS=La;exports.CONNECTOR_PROVIDER_GROUP=cu;exports.CONTEXT_COLLECT_SERVICE=lu;exports.CORE_DIMENSIONS=Ei;exports.CommunicationScheme=Ao;exports.DAY_MS=Rn;exports.DEFAULT_CHECK_IN_DAYS=Br;exports.DEFAULT_FORECAST_WEEKS=fr;exports.DEFAULT_MEMORY_BUDGET=Ws;exports.DEFAULT_NUMBER_PADDING=Jc;exports.DEFAULT_PHONE_REGION=$o;exports.DEFAULT_QUOTE_TEMPLATE_BLOCKS=zc;exports.DEFAULT_TEMPLATE_CONDITIONS=Vc;exports.DEMAND_SOURCE_PROVIDER_GROUP=ra;exports.DOCUMENT_APPLY_SERVICE=Su;exports.DOCUMENT_DESCRIBE_SERVICE=_u;exports.DOCUMENT_INSPECT_SERVICE=Au;exports.DOCUMENT_MAX_BLOCKS=fe;exports.DOCUMENT_MAX_BODY_BYTES=gn;exports.DOCUMENT_MAX_CELL_LEN=F;exports.DOCUMENT_MAX_KPI_ITEMS=ye;exports.DOCUMENT_MAX_LETTERHEAD_FIELDS=je;exports.DOCUMENT_MAX_LIST_ITEMS=me;exports.DOCUMENT_MAX_RECIPIENT_LINES=mn;exports.DOCUMENT_MAX_TABLE_COLUMNS=he;exports.DOCUMENT_MAX_TABLE_ROWS=ge;exports.DOCUMENT_MAX_TEXT_LEN=Oe;exports.DOCUMENT_MAX_TOTALS_ROWS=Ve;exports.DOCUMENT_OPERATIONS=At;exports.DUTCH_SLOT_LABELS=eo;exports.EMPTY_WORKFLOW=$a;exports.ENABLED_TRANSACTION_KINDS=Jr;exports.FEATURE_FOLDER_MANAGEMENT=ou;exports.FEATURE_MESSAGE_REACTIONS=su;exports.FEATURE_REMOTE_SEARCH=iu;exports.FIXED_KINDS=Ce;exports.FIXED_LEVELS=ee;exports.FIXED_TYPES=De;exports.FIXED_UNITS=os;exports.FOLLOW_UP_HOURS=Hn;exports.FROZEN_WRITABLE_FIELDS=Kc;exports.HOUR_MS=vn;exports.HTML_BODY_RE=Fo;exports.INELIGIBLE=L;exports.INSTALLATION_HEADER=Tu;exports.INTERACTION_KIND=Ir;exports.InteractionParticipantRole=nu;exports.KB_FALLBACK_LOCALE=Zn;exports.KB_LOCALES=Ee;exports.LOCALES=Ee;exports.LOOSE_STATUSES=xe;exports.MAIL_HINT_HEADERS=$n;exports.MAX_ACTIONS=ie;exports.MAX_ASSIGNMENT_TURNS=Tn;exports.MAX_BLOCKS=Ge;exports.MAX_COLLECTION_DEPTH=lt;exports.MAX_DELEGATION_DEPTH=In;exports.MAX_EDITABLE_FILE_BYTES=Wu;exports.MAX_FIELDS=re;exports.MAX_LIST_ITEMS=oe;exports.MAX_MEMORY_BROWSE=Fs;exports.MAX_MEMORY_BUDGET=Gs;exports.MAX_MEMORY_CHARS=Bs;exports.MAX_SHOWN_KEYS=Po;exports.MAX_TOPIC_CANDIDATES=zr;exports.MAX_TOPIC_EXAMPLES=Yr;exports.MAX_TOPIC_EXAMPLE_CHARS=ce;exports.MAX_VIEWABLE_FILE_BYTES=ju;exports.MIN_MEMORY_BUDGET=Hs;exports.NAV_NOTICE_SLOT=ed;exports.NL_PAYMENT_TERMS=il;exports.NL_TAX_RATES=Vs;exports.NOTIFICATION_SOURCE_PROVIDER_GROUP=Mu;exports.OFF_TRACK_GAP=Wr;exports.ONBOARDING_SOURCE_PROVIDER_GROUP=zs;exports.PAUSE_HOLD=be;exports.PAUSE_SNOOZED=Ae;exports.PAUSE_WAITING_FOR_CUSTOMER=Se;exports.PAYMENT_TERM_METHODS=tl;exports.PHONE_REGIONS=Le;exports.PRESENCE_ONLINE_WINDOW_MS=St;exports.PRESENCE_SURVIVES_OFFLINE=So;exports.PRODUCT_SCOPE_KIND=ro;exports.PROFILE_TOOL_DISPOSITIONS=qs;exports.PROVIDER_FEATURE_MESSAGE_TEMPLATES=tu;exports.PROVIDER_FEATURE_MESSAGE_WINDOW=eu;exports.PUBLIC_EMAIL_DOMAINS=Ko;exports.READ_STEP_TYPES=Ye;exports.RELATED_SUBJECT_KINDS=tr;exports.RESERVED_STATUS_KEYS=_t;exports.RESERVED_TYPE_KEYS=pl;exports.RESOURCE_ATTACHED_SERVICE=Lu;exports.RESOURCE_DESCRIBE_SERVICE=Ru;exports.RESOURCE_RESOLVE_SERVICE=xu;exports.RESOURCE_SEARCH_SERVICE=Du;exports.SCHEDULE_ENTRY_SCOPE_KIND=mr;exports.SCOPE_READ_ROUTE=Uu;exports.SCOPE_RELATED_ROUTE=$u;exports.SETTINGS_CATEGORIES=Zu;exports.SIGNATURE_INTENTS=is;exports.SLA_HOURS_BY_PRIORITY=Bn;exports.SLA_METRICS=Za;exports.SLA_PAUSE_REASONS=ec;exports.STEP_MAX_TOKENS_MAX=kr;exports.STEP_MAX_TOKENS_MIN=Or;exports.STRATEGY_ITEM_SCOPE_KIND=Kr;exports.SUMMARY_MIN_LAST_CHARS=Pn;exports.SUMMARY_MIN_MESSAGES=Ln;exports.SYNC_RUN_MAX_ERRORS=Yu;exports.SYNC_TARGET_PROVIDER_GROUP=Vu;exports.TERMINAL_ASSIGNMENT_STATUSES=Sn;exports.TERMINAL_RUN_STATUSES=vr;exports.TRANSACTION_KINDS=Re;exports.TRANSACTION_SCOPE_KINDS=no;exports.TRIGGER_VARS=Da;exports.UNKNOWN_KIND=or;exports.UNKNOWN_LEVEL_ORDER=Fr;exports.UNSUPPORTED=au;exports.USAGE_DIMENSIONS=un;exports.USAGE_DIMENSION_IDS=dn;exports.WORKSTREAM_SCOPE_KIND=gr;exports.WORK_ACTIVITY_SCOPE_KIND=ao;exports.WORK_AREAS=Xs;exports.WORK_COMMENT_ADDED=al;exports.WORK_CYCLE_SYNC_KIND=yl;exports.WORK_ITEM_ASSIGNED=cl;exports.WORK_ITEM_SCOPE_KIND=io;exports.WORK_ITEM_STATUS_CHANGED=ll;exports.WORK_PROJECT_SCOPE_KIND=so;exports.W_PRIORITY=X;exports.acceptExampleCandidate=Lc;exports.actingIdentityKey=Er;exports.activeWorkTypes=Dc;exports.activityIconOf=Vo;exports.activityJoinUrl=ni;exports.activitySnippet=on;exports.activityTextParams=sn;exports.activityTimelineText=ti;exports.activityTimestamp=cn;exports.activityTypeInfo=M;exports.actorKey=Oa;exports.addExampleCandidate=xc;exports.addWorkingMs=Ne;exports.agePresenceEntry=Nu;exports.aiAttachmentKind=mo;exports.aiAttachmentRejection=Pl;exports.aiBudgetLimit=We;exports.aiBudgetPeriodKey=hi;exports.aiBudgetPeriodStart=ln;exports.aiBudgetState=gi;exports.aiVendorAcceptsAttachment=mi;exports.aiVendorDefaultModel=di;exports.aiVendorLabel=ui;exports.aiVendorNeedsBaseUrl=fi;exports.aiVendorsWith=pi;exports.allocate=On;exports.appNameFromPath=Tt;exports.applyApprovalDecision=Ni;exports.applyRounding=Cc;exports.applySignature=ss;exports.approvalRate=Cr;exports.artifactBodyBytes=_n;exports.artifactOutline=An;exports.artifactToMarkdown=it;exports.assignmentMismatch=wa;exports.assignmentScopeKey=Hi;exports.assignmentSubject=ji;exports.availabilityByPerson=na;exports.belongsOnCalendar=Qs;exports.belongsToEntity=Xi;exports.buildActivityPreview=oi;exports.buildChannelIntents=zl;exports.buildShareKeys=$i;exports.buildWindow=Lo;exports.businessEntitySender=wn;exports.calendarDaysBetween=ir;exports.calendarOf=we;exports.canNestUnder=Ds;exports.canParent=mc;exports.capacityTotal=ea;exports.capacityWeights=ba;exports.carriesText=Qo;exports.categoryLabel=Ls;exports.categoryOf=uo;exports.channelKindForScheme=Zl;exports.channelKindOf=Yo;exports.checkInOverdueMs=Mc;exports.clampStepMaxTokens=Pa;exports.classifyMail=Ss;exports.cleanMessageMarkdown=Dd;exports.cleanMessageText=Rd;exports.codeQuery=Qi;exports.compareAssistRank=Hl;exports.compareWorkTypes=Vr;exports.conditionHolds=Nn;exports.copyFrom=Zr;exports.countsAsPlanned=j;exports.coverageByPerson=ta;exports.coverageFor=la;exports.coversWorkstream=dt;exports.currentPeriod=el;exports.cycleDayIndex=pt;exports.cycleOrder=wl;exports.cycleState=vl;exports.decideAssignmentState=Vi;exports.decideCadence=Ju;exports.decideIncomingCall=jl;exports.defaultLocaleOf=er;exports.defaultStatusKey=Ml;exports.defaultTemplateBlocks=to;exports.defineIntent=ru;exports.delegationRefusal=Yi;exports.depthOf=Qn;exports.derivePresence=Cu;exports.describeClause=Ii;exports.disabledIntentsFromCapabilities=Vl;exports.documentBodyBytes=_n;exports.documentKindOf=bu;exports.documentOutline=An;exports.documentToMarkdown=it;exports.documentToText=Eu;exports.dueAtOf=cc;exports.dueDateFrom=nl;exports.elapsedSeconds=kc;exports.emailDomain=ad;exports.endpointKey=dd;exports.erlangC=ar;exports.extractParams=Io;exports.extractTerms=Do;exports.fillDocument=ps;exports.fillText=Cn;exports.filterByEndpoint=ql;exports.filterByIntent=Xl;exports.filterByTargetScheme=_o;exports.filterableDimensions=Ti;exports.findAiVendor=J;exports.fixedLevelForName=hc;exports.fixedTypeForName=gl;exports.fixedTypes=hl;exports.flattenLocales=Iu;exports.floorToPeriod=G;exports.forecastIntervals=Ea;exports.formatActingIdentity=yr;exports.formatCents=x;exports.formatClock=wc;exports.formatHm=Nc;exports.formatItemKey=_l;exports.formatPeriod=H;exports.formatSeriesNumber=Zc;exports.formatSlaDuration=dc;exports.freshSources=Ul;exports.getActivitySeenUserIds=ai;exports.getContactEndpoints=as;exports.getShortTitle=Cs;exports.getUrgencyScore=ks;exports.hasReacted=Ya;exports.healthCategory=yc;exports.healthsInCategory=Ec;exports.heightOf=ut;exports.helpCenterText=ws;exports.humanizeAction=va;exports.interactionIdOf=Mr;exports.isAgentUser=sl;exports.isAssigned=Ms;exports.isAssignmentTerminal=Bi;exports.isAssignmentTrigger=Sr;exports.isAutoReady=Fa;exports.isAwaitingThem=Xn;exports.isChatMessageActivity=li;exports.isClosed=Os;exports.isConnectedType=Zo;exports.isDeepLink=Ku;exports.isDescendant=Jn;exports.isEligible=ms;exports.isEmailActivity=ci;exports.isFrozen=Uc;exports.isHeldClock=ac;exports.isHtmlBody=vd;exports.isInFlight=Ha;exports.isInteractionUnseen=Un;exports.isLandingPath=Fu;exports.isLikelyBulk=xn;exports.isMessageShape=tt;exports.isMessageType=zo;exports.isMoreSpecificPattern=Oo;exports.isNoteShape=nt;exports.isOpenClock=Ur;exports.isOutwardTool=$l;exports.isParked=Wn;exports.isPaused=Rr;exports.isPlaybookAuthoredType=Jo;exports.isPublicEmailDomain=ld;exports.isPublicPath=Gu;exports.isReminderActive=jn;exports.isReplyableType=qo;exports.isSlaAtRisk=Ts;exports.isTerminal=Ba;exports.isThreadLongEnough=ys;exports.isTranscriptType=ei;exports.isWorkClosed=Ol;exports.isWorkTypeVisible=Rc;exports.itemDossierKeys=bl;exports.kindFor=v;exports.ladderFor=lo;exports.levelIn=Hr;exports.levelOrder=Ie;exports.lineNet=rr;exports.linkLabel=Ns;exports.listedTransactionKinds=$c;exports.listeningAllowed=yi;exports.localeInstruction=Rs;exports.localeName=vs;exports.localesOf=xs;exports.looksLikeEmail=id;exports.lookup=ct;exports.marginCents=es;exports.markdownToDocument=yu;exports.matchApprovalPolicy=ki;exports.matchContactToIntents=Ql;exports.matchPublicRoute=ko;exports.mcpCredentialScope=Us;exports.mcpToolPrefix=Ks;exports.measureRatio=Ac;exports.mergeShownKeys=Qu;exports.messageCountsAs=rn;exports.metricOption=Mi;exports.minutesOn=ft;exports.needsPhoneRegion=ud;exports.nestsUnderParent=Xo;exports.nextLevelBelow=gc;exports.nextSlaClock=lc;exports.nextVersion=Fc;exports.normalizeArtifactBlocks=En;exports.normalizeBlocks=Go;exports.normalizeDocumentBlocks=En;exports.normalizeEmail=It;exports.normalizeExample=P;exports.normalizeGtin=Mn;exports.notificationPrefKey=Ou;exports.novelty=xo;exports.operationDescriptor=gu;exports.operationsForKind=mu;exports.organizationSender=fs;exports.overlapSeconds=ae;exports.overlaps=ca;exports.paceRatio=Sc;exports.parkMarksById=gs;exports.parseActingIdentity=Ia;exports.parseAmount=Ji;exports.parseClockMinutes=Qa;exports.parseItemKey=Al;exports.pathToRegex=To;exports.patternFor=gt;exports.patternStartTime=mt;exports.pauseBitFor=Ja;exports.pendingApprovers=Ci;exports.periodsInRange=Si;exports.phoneSuffix=sd;exports.pickMailHeaders=Es;exports.pickTemplate=ls;exports.placeLumps=Ta;exports.plainTextFromMarkdown=tn;exports.planSlaEvent=sc;exports.plannedBillable=ua;exports.plannedWorkTypeKey=pr;exports.playbookActor=Ar;exports.procedureOf=Ka;exports.productScopeKey=Xc;exports.projectDossierKeys=Tl;exports.publicBasePathFor=Mo;exports.publicRoutePatterns=Hu;exports.reactionWakesAssignment=Wi;exports.readPath=de;exports.readStepError=se;exports.recencyOf=Gn;exports.recipientLocale=cs;exports.refKey=Tr;exports.registrableDomain=Uo;exports.rejectExampleCandidate=qr;exports.relatedByDefault=js;exports.remainingMsOf=Te;exports.requiredAgents=ur;exports.requirementFor=dr;exports.resolveAccountCapabilities=Eo;exports.resolveActivityText=pe;exports.resolveChannelIntents=yo;exports.resolvePrice=ns;exports.resolveSignature=kn;exports.resolveWorkMode=wu;exports.resourceKindOf=Pu;exports.rollupChildren=Ic;exports.roundHalfUp=W;exports.runActor=Ma;exports.runInteractionId=Wa;exports.sanitizeInline=yn;exports.sanitizeTranscript=Co;exports.scheduleEntryScopeKey=_a;exports.scoreInteraction=Is;exports.scoreWorkItem=dl;exports.selectLenses=$s;exports.serviceLevel=cr;exports.sessionsHoldCannotReach=Wl;exports.sessionsToHold=Gl;exports.shadowTermsByCode=rl;exports.shareKeyForTeam=at;exports.shareKeyForUser=st;exports.shareKeysForViewer=Ui;exports.shortfalls=da;exports.shouldRunAudioPipeline=vu;exports.slaBadgeTone=uc;exports.slaHoursByInbox=bs;exports.slaHoursFor=zn;exports.sortStatuses=po;exports.sourceKey=ho;exports.spreadOverWeights=hr;exports.statusIn=Il;exports.statusRequiresApproval=Nl;exports.stepsOf=Ua;exports.strategyAncestorKeysFor=fc;exports.strategyDossierKeys=pc;exports.strategyItemScopeKey=yt;exports.stripHtml=nn;exports.subjectKeyOf=Ga;exports.subjectOf=ht;exports.subjectRef=Bl;exports.suggestProjectKey=Sl;exports.suggestedHealth=bc;exports.summarizeReactions=ja;exports.targetById=Na;exports.targetForActivityType=Ca;exports.targetOrder=Oc;exports.taxRateFor=nr;exports.termsFor=sr;exports.toActingIdentity=_r;exports.toE164=et;exports.toTransactionTerm=ol;exports.toolBareName=br;exports.toolDisplayName=Ra;exports.toolName=q;exports.toolSourceKinds=Ki;exports.topicOfferedForTeam=Qr;exports.topicsForTeam=Pc;exports.trafficIntensity=lr;exports.transactionContext=Bc;exports.transactionDossierKeys=Qc;exports.transactionIdFromScope=qc;exports.transactionKind=U;exports.transactionScopeKey=oo;exports.transactionSlots=Hc;exports.transactionTotals=Ys;exports.triggerFillsVar=xa;exports.truncateExample=Xr;exports.typeIn=ml;exports.typesFor=fl;exports.uniqueWorkStatusKey=kl;exports.uniqueWorkTypeKey=vc;exports.usageMetricId=pn;exports.usageMetrics=Oi;exports.validateStatuses=Cl;exports.valueAtPath=ka;exports.waitHoursOf=ke;exports.wakesAssignment=Gi;exports.workActivityScopeKey=El;exports.workItemScopeKey=co;exports.workProjectScopeKey=Et;exports.workRatio=Tc;exports.workStatusKey=fo;exports.workTypeKey=jr;exports.workingMsBetween=_e;exports.workstreamScopeKey=Aa;
47
+ `).trim()}const Fo=/<\s*(html|body|div|p|table|br|span)\b/i;function Rd(e){return Fo.test(e)}function Dd(e){return Bo(e,!1)}function xd(e){return Bo(e,!0)}function Bo(e,t){if(typeof e!="string"||!e)return"";let n=e.length;for(const s of fd){const a=e.search(s);a>=0&&a<n&&(n=a)}const r=e.slice(0,n);let o=en(Zt(Qt(r,t)));return o||(o=en(Zt(Qt(e,t)))),gd(o)||o}exports.ACTIVE_ASSIGNMENT_STATUSES=Fi;exports.ACTIVITY_CATALOG=D;exports.AI_ATTACHMENT_LIMITS=go;exports.AI_ATTACHMENT_MAX_PER_TURN=Ll;exports.AI_ATTACHMENT_TURN_BUDGET=xl;exports.AI_VENDORS=rt;exports.ALLOWED_LINK_SCHEMES=hn;exports.APP_PERMISSIONS=ku;exports.ARTIFACT_MAX_BLOCKS=fe;exports.ARTIFACT_MAX_BODY_BYTES=gn;exports.ARTIFACT_MAX_CELL_LEN=F;exports.ARTIFACT_MAX_KPI_ITEMS=ye;exports.ARTIFACT_MAX_LIST_ITEMS=me;exports.ARTIFACT_MAX_TABLE_COLUMNS=he;exports.ARTIFACT_MAX_TABLE_ROWS=ge;exports.ARTIFACT_MAX_TEXT_LEN=Oe;exports.ASSIGNMENT_SCOPE_KIND=bn;exports.ASSIST_BANDS=Fl;exports.ASSIST_SOURCE_PROVIDER_GROUP=Kl;exports.ATTENTION_STATUSES=Kn;exports.AT_RISK_GAP=Gr;exports.AUTH_APP_NAME=bt;exports.AUTO_READY_MIN_PROPOSALS=Nr;exports.AUTO_READY_RATE=wr;exports.ActivityTypeRegistry=an;exports.BUILT_IN_ONLY=si;exports.BULK_PENALTY=Fn;exports.BUSINESS_ENTITY_LIST_SERVICE=zi;exports.CADENCE_FLOOR_MS=wo;exports.CADENCE_MIN_NEW_SEGMENTS=vo;exports.CADENCE_MIN_NOVELTY=Ro;exports.CADENCE_WINDOW_MS=No;exports.CLASSIFY_VARS=La;exports.CONNECTOR_PROVIDER_GROUP=cu;exports.CONTEXT_COLLECT_SERVICE=lu;exports.CORE_DIMENSIONS=Ei;exports.CommunicationScheme=Ao;exports.DAY_MS=Rn;exports.DEFAULT_CHECK_IN_DAYS=Br;exports.DEFAULT_FORECAST_WEEKS=fr;exports.DEFAULT_MEMORY_BUDGET=Ws;exports.DEFAULT_NUMBER_PADDING=Jc;exports.DEFAULT_PHONE_REGION=$o;exports.DEFAULT_QUOTE_TEMPLATE_BLOCKS=zc;exports.DEFAULT_TEMPLATE_CONDITIONS=Vc;exports.DEMAND_SOURCE_PROVIDER_GROUP=ra;exports.DOCUMENT_APPLY_SERVICE=Su;exports.DOCUMENT_DESCRIBE_SERVICE=_u;exports.DOCUMENT_INSPECT_SERVICE=Au;exports.DOCUMENT_MAX_BLOCKS=fe;exports.DOCUMENT_MAX_BODY_BYTES=gn;exports.DOCUMENT_MAX_CELL_LEN=F;exports.DOCUMENT_MAX_KPI_ITEMS=ye;exports.DOCUMENT_MAX_LETTERHEAD_FIELDS=je;exports.DOCUMENT_MAX_LIST_ITEMS=me;exports.DOCUMENT_MAX_RECIPIENT_LINES=mn;exports.DOCUMENT_MAX_TABLE_COLUMNS=he;exports.DOCUMENT_MAX_TABLE_ROWS=ge;exports.DOCUMENT_MAX_TEXT_LEN=Oe;exports.DOCUMENT_MAX_TOTALS_ROWS=Ve;exports.DOCUMENT_OPERATIONS=At;exports.DUTCH_SLOT_LABELS=eo;exports.EMPTY_WORKFLOW=$a;exports.ENABLED_TRANSACTION_KINDS=Jr;exports.FEATURE_FOLDER_MANAGEMENT=ou;exports.FEATURE_MESSAGE_REACTIONS=su;exports.FEATURE_REMOTE_SEARCH=iu;exports.FIXED_KINDS=Ce;exports.FIXED_LEVELS=ee;exports.FIXED_TYPES=De;exports.FIXED_UNITS=os;exports.FOLLOW_UP_HOURS=Hn;exports.FROZEN_WRITABLE_FIELDS=Kc;exports.HOUR_MS=vn;exports.HTML_BODY_RE=Fo;exports.INELIGIBLE=L;exports.INSTALLATION_HEADER=Tu;exports.INTERACTION_KIND=Ir;exports.InteractionParticipantRole=nu;exports.KB_FALLBACK_LOCALE=Zn;exports.KB_LOCALES=Ee;exports.LOCALES=Ee;exports.LOOSE_STATUSES=xe;exports.MAIL_HINT_HEADERS=$n;exports.MAX_ACTIONS=ie;exports.MAX_ASSIGNMENT_TURNS=Tn;exports.MAX_BLOCKS=Ge;exports.MAX_COLLECTION_DEPTH=lt;exports.MAX_DELEGATION_DEPTH=In;exports.MAX_EDITABLE_FILE_BYTES=ju;exports.MAX_FIELDS=re;exports.MAX_LIST_ITEMS=oe;exports.MAX_MEMORY_BROWSE=Fs;exports.MAX_MEMORY_BUDGET=Gs;exports.MAX_MEMORY_CHARS=Bs;exports.MAX_SHOWN_KEYS=Po;exports.MAX_TOPIC_CANDIDATES=zr;exports.MAX_TOPIC_EXAMPLES=Yr;exports.MAX_TOPIC_EXAMPLE_CHARS=ce;exports.MAX_VIEWABLE_FILE_BYTES=Vu;exports.MIN_MEMORY_BUDGET=Hs;exports.NAV_NOTICE_SLOT=td;exports.NL_PAYMENT_TERMS=il;exports.NL_TAX_RATES=Vs;exports.NOTIFICATION_SOURCE_PROVIDER_GROUP=Mu;exports.OFF_TRACK_GAP=Wr;exports.ONBOARDING_SOURCE_PROVIDER_GROUP=zs;exports.PAUSE_HOLD=be;exports.PAUSE_SNOOZED=Ae;exports.PAUSE_WAITING_FOR_CUSTOMER=Se;exports.PAYMENT_TERM_METHODS=tl;exports.PHONE_REGIONS=Le;exports.PRESENCE_ONLINE_WINDOW_MS=St;exports.PRESENCE_SURVIVES_OFFLINE=So;exports.PRODUCT_SCOPE_KIND=ro;exports.PROFILE_TOOL_DISPOSITIONS=qs;exports.PROVIDER_FEATURE_MESSAGE_TEMPLATES=tu;exports.PROVIDER_FEATURE_MESSAGE_WINDOW=eu;exports.PUBLIC_EMAIL_DOMAINS=Ko;exports.READ_STEP_TYPES=Ye;exports.RELATED_SUBJECT_KINDS=tr;exports.RESERVED_STATUS_KEYS=_t;exports.RESERVED_TYPE_KEYS=pl;exports.RESOURCE_ATTACHED_SERVICE=Lu;exports.RESOURCE_DESCRIBE_SERVICE=Ru;exports.RESOURCE_RESOLVE_SERVICE=xu;exports.RESOURCE_SEARCH_SERVICE=Du;exports.SCHEDULE_ENTRY_SCOPE_KIND=mr;exports.SCOPE_ACTS_ROUTE=Ku;exports.SCOPE_READ_ROUTE=Uu;exports.SCOPE_RELATED_ROUTE=$u;exports.SETTINGS_CATEGORIES=ed;exports.SIGNATURE_INTENTS=is;exports.SLA_HOURS_BY_PRIORITY=Bn;exports.SLA_METRICS=Za;exports.SLA_PAUSE_REASONS=ec;exports.STEP_MAX_TOKENS_MAX=kr;exports.STEP_MAX_TOKENS_MIN=Or;exports.STRATEGY_ITEM_SCOPE_KIND=Kr;exports.SUMMARY_MIN_LAST_CHARS=Pn;exports.SUMMARY_MIN_MESSAGES=Ln;exports.SYNC_RUN_MAX_ERRORS=zu;exports.SYNC_TARGET_PROVIDER_GROUP=Yu;exports.TERMINAL_ASSIGNMENT_STATUSES=Sn;exports.TERMINAL_RUN_STATUSES=vr;exports.TRANSACTION_KINDS=Re;exports.TRANSACTION_SCOPE_KINDS=no;exports.TRIGGER_VARS=Da;exports.UNKNOWN_KIND=or;exports.UNKNOWN_LEVEL_ORDER=Fr;exports.UNSUPPORTED=au;exports.USAGE_DIMENSIONS=un;exports.USAGE_DIMENSION_IDS=dn;exports.WORKSTREAM_SCOPE_KIND=gr;exports.WORK_ACTIVITY_SCOPE_KIND=ao;exports.WORK_AREAS=Xs;exports.WORK_COMMENT_ADDED=al;exports.WORK_CYCLE_SYNC_KIND=yl;exports.WORK_ITEM_ASSIGNED=cl;exports.WORK_ITEM_SCOPE_KIND=io;exports.WORK_ITEM_STATUS_CHANGED=ll;exports.WORK_PROJECT_SCOPE_KIND=so;exports.W_PRIORITY=X;exports.acceptExampleCandidate=Lc;exports.actingIdentityKey=Er;exports.activeWorkTypes=Dc;exports.activityIconOf=Vo;exports.activityJoinUrl=ni;exports.activitySnippet=on;exports.activityTextParams=sn;exports.activityTimelineText=ti;exports.activityTimestamp=cn;exports.activityTypeInfo=M;exports.actorKey=Oa;exports.addExampleCandidate=xc;exports.addWorkingMs=Ne;exports.agePresenceEntry=Nu;exports.aiAttachmentKind=mo;exports.aiAttachmentRejection=Pl;exports.aiBudgetLimit=We;exports.aiBudgetPeriodKey=hi;exports.aiBudgetPeriodStart=ln;exports.aiBudgetState=gi;exports.aiVendorAcceptsAttachment=mi;exports.aiVendorDefaultModel=di;exports.aiVendorLabel=ui;exports.aiVendorNeedsBaseUrl=fi;exports.aiVendorsWith=pi;exports.allocate=On;exports.appNameFromPath=Tt;exports.applyApprovalDecision=Ni;exports.applyRounding=Cc;exports.applySignature=ss;exports.approvalRate=Cr;exports.artifactBodyBytes=_n;exports.artifactOutline=An;exports.artifactToMarkdown=it;exports.assignmentMismatch=wa;exports.assignmentScopeKey=Hi;exports.assignmentSubject=ji;exports.availabilityByPerson=na;exports.belongsOnCalendar=Qs;exports.belongsToEntity=Xi;exports.buildActivityPreview=oi;exports.buildChannelIntents=zl;exports.buildShareKeys=$i;exports.buildWindow=Lo;exports.businessEntitySender=wn;exports.calendarDaysBetween=ir;exports.calendarOf=we;exports.canNestUnder=Ds;exports.canParent=mc;exports.capacityTotal=ea;exports.capacityWeights=ba;exports.carriesText=Qo;exports.categoryLabel=Ls;exports.categoryOf=uo;exports.channelKindForScheme=Zl;exports.channelKindOf=Yo;exports.checkInOverdueMs=Mc;exports.clampStepMaxTokens=Pa;exports.classifyMail=Ss;exports.cleanMessageMarkdown=xd;exports.cleanMessageText=Dd;exports.codeQuery=Qi;exports.compareAssistRank=Hl;exports.compareWorkTypes=Vr;exports.conditionHolds=Nn;exports.copyFrom=Zr;exports.countsAsPlanned=j;exports.coverageByPerson=ta;exports.coverageFor=la;exports.coversWorkstream=dt;exports.currentPeriod=el;exports.cycleDayIndex=pt;exports.cycleOrder=wl;exports.cycleState=vl;exports.decideAssignmentState=Vi;exports.decideCadence=Zu;exports.decideIncomingCall=jl;exports.defaultLocaleOf=er;exports.defaultStatusKey=Ml;exports.defaultTemplateBlocks=to;exports.defineIntent=ru;exports.delegationRefusal=Yi;exports.depthOf=Qn;exports.derivePresence=Cu;exports.describeClause=Ii;exports.disabledIntentsFromCapabilities=Vl;exports.documentBodyBytes=_n;exports.documentKindOf=bu;exports.documentOutline=An;exports.documentToMarkdown=it;exports.documentToText=Eu;exports.dueAtOf=cc;exports.dueDateFrom=nl;exports.elapsedSeconds=kc;exports.emailDomain=cd;exports.endpointKey=pd;exports.erlangC=ar;exports.extractParams=Io;exports.extractTerms=Do;exports.fillDocument=ps;exports.fillText=Cn;exports.filterByEndpoint=ql;exports.filterByIntent=Xl;exports.filterByTargetScheme=_o;exports.filterableDimensions=Ti;exports.findAiVendor=J;exports.fixedLevelForName=hc;exports.fixedTypeForName=gl;exports.fixedTypes=hl;exports.flattenLocales=Iu;exports.floorToPeriod=G;exports.forecastIntervals=Ea;exports.formatActingIdentity=yr;exports.formatCents=x;exports.formatClock=wc;exports.formatHm=Nc;exports.formatItemKey=_l;exports.formatPeriod=H;exports.formatSeriesNumber=Zc;exports.formatSlaDuration=dc;exports.freshSources=Ul;exports.getActivitySeenUserIds=ai;exports.getContactEndpoints=as;exports.getShortTitle=Cs;exports.getUrgencyScore=ks;exports.hasReacted=Ya;exports.healthCategory=yc;exports.healthsInCategory=Ec;exports.heightOf=ut;exports.helpCenterText=ws;exports.humanizeAction=va;exports.interactionIdOf=Mr;exports.isAgentUser=sl;exports.isAssigned=Ms;exports.isAssignmentTerminal=Bi;exports.isAssignmentTrigger=Sr;exports.isAutoReady=Fa;exports.isAwaitingThem=Xn;exports.isChatMessageActivity=li;exports.isClosed=Os;exports.isConnectedType=Zo;exports.isDeepLink=Fu;exports.isDescendant=Jn;exports.isEligible=ms;exports.isEmailActivity=ci;exports.isFrozen=Uc;exports.isHeldClock=ac;exports.isHtmlBody=Rd;exports.isInFlight=Ha;exports.isInteractionUnseen=Un;exports.isLandingPath=Bu;exports.isLikelyBulk=xn;exports.isMessageShape=tt;exports.isMessageType=zo;exports.isMoreSpecificPattern=Oo;exports.isNoteShape=nt;exports.isOpenClock=Ur;exports.isOutwardTool=$l;exports.isParked=Wn;exports.isPaused=Rr;exports.isPlaybookAuthoredType=Jo;exports.isPublicEmailDomain=ud;exports.isPublicPath=Wu;exports.isReminderActive=jn;exports.isReplyableType=qo;exports.isSlaAtRisk=Ts;exports.isTerminal=Ba;exports.isThreadLongEnough=ys;exports.isTranscriptType=ei;exports.isWorkClosed=Ol;exports.isWorkTypeVisible=Rc;exports.itemDossierKeys=bl;exports.kindFor=v;exports.ladderFor=lo;exports.levelIn=Hr;exports.levelOrder=Ie;exports.lineNet=rr;exports.linkLabel=Ns;exports.listedTransactionKinds=$c;exports.listeningAllowed=yi;exports.localeInstruction=Rs;exports.localeName=vs;exports.localesOf=xs;exports.looksLikeEmail=sd;exports.lookup=ct;exports.marginCents=es;exports.markdownToDocument=yu;exports.matchApprovalPolicy=ki;exports.matchContactToIntents=Ql;exports.matchPublicRoute=ko;exports.mcpCredentialScope=Us;exports.mcpToolPrefix=Ks;exports.measureRatio=Ac;exports.mergeShownKeys=Ju;exports.messageCountsAs=rn;exports.metricOption=Mi;exports.minutesOn=ft;exports.needsPhoneRegion=dd;exports.nestsUnderParent=Xo;exports.nextLevelBelow=gc;exports.nextSlaClock=lc;exports.nextVersion=Fc;exports.normalizeArtifactBlocks=En;exports.normalizeBlocks=Go;exports.normalizeDocumentBlocks=En;exports.normalizeEmail=It;exports.normalizeExample=P;exports.normalizeGtin=Mn;exports.notificationPrefKey=Ou;exports.novelty=xo;exports.operationDescriptor=gu;exports.operationsForKind=mu;exports.organizationSender=fs;exports.overlapSeconds=ae;exports.overlaps=ca;exports.paceRatio=Sc;exports.parkMarksById=gs;exports.parseActingIdentity=Ia;exports.parseAmount=Ji;exports.parseClockMinutes=Qa;exports.parseItemKey=Al;exports.pathToRegex=To;exports.patternFor=gt;exports.patternStartTime=mt;exports.pauseBitFor=Ja;exports.pendingApprovers=Ci;exports.periodsInRange=Si;exports.phoneSuffix=ad;exports.pickMailHeaders=Es;exports.pickTemplate=ls;exports.placeLumps=Ta;exports.plainTextFromMarkdown=tn;exports.planSlaEvent=sc;exports.plannedBillable=ua;exports.plannedWorkTypeKey=pr;exports.playbookActor=Ar;exports.procedureOf=Ka;exports.productScopeKey=Xc;exports.projectDossierKeys=Tl;exports.publicBasePathFor=Mo;exports.publicRoutePatterns=Gu;exports.reactionWakesAssignment=Wi;exports.readPath=de;exports.readStepError=se;exports.recencyOf=Gn;exports.recipientLocale=cs;exports.refKey=Tr;exports.registrableDomain=Uo;exports.rejectExampleCandidate=qr;exports.relatedByDefault=js;exports.remainingMsOf=Te;exports.requiredAgents=ur;exports.requirementFor=dr;exports.resolveAccountCapabilities=Eo;exports.resolveActivityText=pe;exports.resolveChannelIntents=yo;exports.resolvePrice=ns;exports.resolveSignature=kn;exports.resolveWorkMode=wu;exports.resourceKindOf=Pu;exports.rollupChildren=Ic;exports.roundHalfUp=W;exports.runActor=Ma;exports.runInteractionId=Wa;exports.sanitizeInline=yn;exports.sanitizeTranscript=Co;exports.scheduleEntryScopeKey=_a;exports.scoreInteraction=Is;exports.scoreWorkItem=dl;exports.selectLenses=$s;exports.serviceLevel=cr;exports.sessionsHoldCannotReach=Wl;exports.sessionsToHold=Gl;exports.shadowTermsByCode=rl;exports.shareKeyForTeam=at;exports.shareKeyForUser=st;exports.shareKeysForViewer=Ui;exports.shortfalls=da;exports.shouldRunAudioPipeline=vu;exports.slaBadgeTone=uc;exports.slaHoursByInbox=bs;exports.slaHoursFor=zn;exports.sortStatuses=po;exports.sourceKey=ho;exports.spreadOverWeights=hr;exports.statusIn=Il;exports.statusRequiresApproval=Nl;exports.stepsOf=Ua;exports.strategyAncestorKeysFor=fc;exports.strategyDossierKeys=pc;exports.strategyItemScopeKey=yt;exports.stripHtml=nn;exports.subjectKeyOf=Ga;exports.subjectOf=ht;exports.subjectRef=Bl;exports.suggestProjectKey=Sl;exports.suggestedHealth=bc;exports.summarizeReactions=ja;exports.targetById=Na;exports.targetForActivityType=Ca;exports.targetOrder=Oc;exports.taxRateFor=nr;exports.termsFor=sr;exports.toActingIdentity=_r;exports.toE164=et;exports.toTransactionTerm=ol;exports.toolBareName=br;exports.toolDisplayName=Ra;exports.toolName=q;exports.toolSourceKinds=Ki;exports.topicOfferedForTeam=Qr;exports.topicsForTeam=Pc;exports.trafficIntensity=lr;exports.transactionContext=Bc;exports.transactionDossierKeys=Qc;exports.transactionIdFromScope=qc;exports.transactionKind=U;exports.transactionScopeKey=oo;exports.transactionSlots=Hc;exports.transactionTotals=Ys;exports.triggerFillsVar=xa;exports.truncateExample=Xr;exports.typeIn=ml;exports.typesFor=fl;exports.uniqueWorkStatusKey=kl;exports.uniqueWorkTypeKey=vc;exports.usageMetricId=pn;exports.usageMetrics=Oi;exports.validateStatuses=Cl;exports.valueAtPath=ka;exports.waitHoursOf=ke;exports.wakesAssignment=Gi;exports.workActivityScopeKey=El;exports.workItemScopeKey=co;exports.workProjectScopeKey=Et;exports.workRatio=Tc;exports.workStatusKey=fo;exports.workTypeKey=jr;exports.workingMsBetween=_e;exports.workstreamScopeKey=Aa;
package/dist/index.js CHANGED
@@ -4261,16 +4261,16 @@ function ud(e) {
4261
4261
  const t = e.indexOf(":");
4262
4262
  return t === -1 ? e : e.slice(0, t);
4263
4263
  }
4264
- const dd = "/provider/scope/related", pd = "/provider/scope/read", on = "auth";
4264
+ const dd = "/provider/scope/related", pd = "/provider/scope/read", fd = "/provider/scope/acts", on = "auth";
4265
4265
  function sn(e) {
4266
4266
  const t = typeof e == "string" ? e.match(/apps\/([^/?#]+)/) : null;
4267
4267
  return t ? t[1] : null;
4268
4268
  }
4269
- function fd(e) {
4269
+ function md(e) {
4270
4270
  const t = sn(e);
4271
4271
  return t ? t !== on : typeof e == "string" && e.startsWith("/wake");
4272
4272
  }
4273
- function md(e) {
4273
+ function hd(e) {
4274
4274
  return typeof e != "string" || e === "" || e === "/" ? !0 : sn(e) === on;
4275
4275
  }
4276
4276
  function Ii(e) {
@@ -4292,7 +4292,7 @@ function wi(e, t) {
4292
4292
  function vi(e) {
4293
4293
  return e.publicBasePath ?? `/apps/${e.name}`;
4294
4294
  }
4295
- function hd(e) {
4295
+ function gd(e) {
4296
4296
  const t = [];
4297
4297
  for (const n of e) {
4298
4298
  if (!n?.name) continue;
@@ -4325,10 +4325,10 @@ function Ci(e, t) {
4325
4325
  ki(r.pattern).test(e) && (!n || Mi(r.pattern, n.pattern)) && (n = r);
4326
4326
  return n ? { ...n, params: { ...n.props, ...wi(n.pattern, e) } } : null;
4327
4327
  }
4328
- function gd(e, t) {
4328
+ function yd(e, t) {
4329
4329
  return Ci(e, t) !== null;
4330
4330
  }
4331
- const yd = 10 * 1024 * 1024, bd = 25 * 1024 * 1024, _d = "sync-target", Ad = 20, Ni = {
4331
+ const bd = 10 * 1024 * 1024, _d = 25 * 1024 * 1024, Ad = "sync-target", Ed = 20, Ni = {
4332
4332
  afrikaans: [
4333
4333
  "[Muziek]",
4334
4334
  "(C) TV GELDERLAND 2021",
@@ -4619,13 +4619,13 @@ function Fi(e, t = xi) {
4619
4619
  return { text: n.filter((s) => (s.endedAt ?? 0) >= o).map((s) => Oi(s.text).trim()).filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), segmentCount: n.length };
4620
4620
  }
4621
4621
  const Bi = 60;
4622
- function Ed(e, t, n = Bi) {
4622
+ function Sd(e, t, n = Bi) {
4623
4623
  const r = new Set(e), o = [...e];
4624
4624
  for (const i of t)
4625
4625
  !i || r.has(i) || (r.add(i), o.push(i));
4626
4626
  return o.slice(-n);
4627
4627
  }
4628
- function Sd(e) {
4628
+ function Td(e) {
4629
4629
  const { segments: t, now: n, state: r } = e;
4630
4630
  if (r.lastTriggerAt && n - r.lastTriggerAt < Ri)
4631
4631
  return { trigger: !1, reason: "too_soon" };
@@ -4637,7 +4637,7 @@ function Sd(e) {
4637
4637
  const s = Ki(o.text);
4638
4638
  return s.length ? r.lastQueryTerms?.length && Ui(s, r.lastQueryTerms) < $i ? { trigger: !1, reason: "same_topic" } : { trigger: !0, text: o.text, terms: s, segmentCount: o.segmentCount } : { trigger: !1, reason: "no_speech" };
4639
4639
  }
4640
- const Td = [
4640
+ const Id = [
4641
4641
  "personal",
4642
4642
  "organization",
4643
4643
  "connections",
@@ -4645,7 +4645,7 @@ const Td = [
4645
4645
  "work",
4646
4646
  "administration",
4647
4647
  "ai"
4648
- ], Id = "navNotice", Ue = {
4648
+ ], kd = "navNotice", Ue = {
4649
4649
  // The lower bounds are deliberately generous: service ranges (0800/0900) are
4650
4650
  // shorter than geographic numbers, and a too-strict minimum silently drops them.
4651
4651
  // An over-permissive key is harmless — it simply matches nothing.
@@ -4699,7 +4699,7 @@ function zi(e) {
4699
4699
  const r = t.indexOf("@");
4700
4700
  return r >= 0 && (t = t.slice(0, r)), t.trim();
4701
4701
  }
4702
- function kd(e) {
4702
+ function wd(e) {
4703
4703
  if (!e) return !1;
4704
4704
  const t = e.indexOf("@");
4705
4705
  if (t <= 0) return !1;
@@ -4727,7 +4727,7 @@ function At(e, t) {
4727
4727
  }
4728
4728
  return !s && ee(o, i) ? `+${i.callingCode}${o}` : null;
4729
4729
  }
4730
- function wd(e, t = 9) {
4730
+ function vd(e, t = 9) {
4731
4731
  const n = (e ?? "").replace(/\D/g, "");
4732
4732
  return n.length < t ? null : n.slice(-t);
4733
4733
  }
@@ -4738,7 +4738,7 @@ function an(e) {
4738
4738
  const r = t.slice(0, n).split("+")[0], o = t.slice(n + 1);
4739
4739
  return !r || !o.includes(".") ? null : `${r}@${o}`;
4740
4740
  }
4741
- function vd(e) {
4741
+ function Md(e) {
4742
4742
  const t = an(e);
4743
4743
  return t ? t.slice(t.lastIndexOf("@") + 1) : null;
4744
4744
  }
@@ -4804,16 +4804,16 @@ const Yi = /* @__PURE__ */ new Set([
4804
4804
  "proximus.be",
4805
4805
  "scarlet.be"
4806
4806
  ]);
4807
- function Md(e) {
4807
+ function Cd(e) {
4808
4808
  const t = Xi(e);
4809
4809
  return t ? Yi.has(t) : !1;
4810
4810
  }
4811
- function Cd(e) {
4811
+ function Nd(e) {
4812
4812
  if (!e) return !1;
4813
4813
  const t = e.trim().toLowerCase();
4814
4814
  return t === "tel" || t === "sms" || t === "whatsapp" || t === "fax";
4815
4815
  }
4816
- function Nd(e, t, n) {
4816
+ function Od(e, t, n) {
4817
4817
  if (!e || !t) return null;
4818
4818
  const r = e.trim().toLowerCase();
4819
4819
  if (r === "tel" || r === "sms" || r === "whatsapp") {
@@ -4980,13 +4980,13 @@ function wt(e) {
4980
4980
  `).trim();
4981
4981
  }
4982
4982
  const hs = /<\s*(html|body|div|p|table|br|span)\b/i;
4983
- function Od(e) {
4983
+ function xd(e) {
4984
4984
  return hs.test(e);
4985
4985
  }
4986
- function xd(e) {
4986
+ function Rd(e) {
4987
4987
  return cn(e, !1);
4988
4988
  }
4989
- function Rd(e) {
4989
+ function Dd(e) {
4990
4990
  return cn(e, !0);
4991
4991
  }
4992
4992
  function cn(e, t) {
@@ -5090,7 +5090,7 @@ export {
5090
5090
  gs as MAX_BLOCKS,
5091
5091
  Ut as MAX_COLLECTION_DEPTH,
5092
5092
  jn as MAX_DELEGATION_DEPTH,
5093
- yd as MAX_EDITABLE_FILE_BYTES,
5093
+ bd as MAX_EDITABLE_FILE_BYTES,
5094
5094
  ys as MAX_FIELDS,
5095
5095
  bs as MAX_LIST_ITEMS,
5096
5096
  Qa as MAX_MEMORY_BROWSE,
@@ -5100,9 +5100,9 @@ export {
5100
5100
  Po as MAX_TOPIC_CANDIDATES,
5101
5101
  Lo as MAX_TOPIC_EXAMPLES,
5102
5102
  me as MAX_TOPIC_EXAMPLE_CHARS,
5103
- bd as MAX_VIEWABLE_FILE_BYTES,
5103
+ _d as MAX_VIEWABLE_FILE_BYTES,
5104
5104
  Ja as MIN_MEMORY_BUDGET,
5105
- Id as NAV_NOTICE_SLOT,
5105
+ kd as NAV_NOTICE_SLOT,
5106
5106
  Hl as NL_PAYMENT_TERMS,
5107
5107
  rc as NL_TAX_RATES,
5108
5108
  Ju as NOTIFICATION_SOURCE_PROVIDER_GROUP,
@@ -5129,9 +5129,10 @@ export {
5129
5129
  cd as RESOURCE_RESOLVE_SERVICE,
5130
5130
  ad as RESOURCE_SEARCH_SERVICE,
5131
5131
  qr as SCHEDULE_ENTRY_SCOPE_KIND,
5132
+ fd as SCOPE_ACTS_ROUTE,
5132
5133
  pd as SCOPE_READ_ROUTE,
5133
5134
  dd as SCOPE_RELATED_ROUTE,
5134
- Td as SETTINGS_CATEGORIES,
5135
+ Id as SETTINGS_CATEGORIES,
5135
5136
  Sa as SIGNATURE_INTENTS,
5136
5137
  fr as SLA_HOURS_BY_PRIORITY,
5137
5138
  Vc as SLA_METRICS,
@@ -5141,8 +5142,8 @@ export {
5141
5142
  vo as STRATEGY_ITEM_SCOPE_KIND,
5142
5143
  sr as SUMMARY_MIN_LAST_CHARS,
5143
5144
  ir as SUMMARY_MIN_MESSAGES,
5144
- Ad as SYNC_RUN_MAX_ERRORS,
5145
- _d as SYNC_TARGET_PROVIDER_GROUP,
5145
+ Ed as SYNC_RUN_MAX_ERRORS,
5146
+ Ad as SYNC_TARGET_PROVIDER_GROUP,
5146
5147
  Un as TERMINAL_ASSIGNMENT_STATUSES,
5147
5148
  ho as TERMINAL_RUN_STATUSES,
5148
5149
  Le as TRANSACTION_KINDS,
@@ -5222,8 +5223,8 @@ export {
5222
5223
  fl as checkInOverdueMs,
5223
5224
  Dc as clampStepMaxTokens,
5224
5225
  Ra as classifyMail,
5225
- Rd as cleanMessageMarkdown,
5226
- xd as cleanMessageText,
5226
+ Dd as cleanMessageMarkdown,
5227
+ Rd as cleanMessageText,
5227
5228
  ya as codeQuery,
5228
5229
  Tu as compareAssistRank,
5229
5230
  $o as compareWorkTypes,
@@ -5238,7 +5239,7 @@ export {
5238
5239
  fu as cycleOrder,
5239
5240
  mu as cycleState,
5240
5241
  fa as decideAssignmentState,
5241
- Sd as decideCadence,
5242
+ Td as decideCadence,
5242
5243
  wu as decideIncomingCall,
5243
5244
  Tr as defaultLocaleOf,
5244
5245
  cu as defaultStatusKey,
@@ -5257,8 +5258,8 @@ export {
5257
5258
  Qc as dueAtOf,
5258
5259
  Fl as dueDateFrom,
5259
5260
  hl as elapsedSeconds,
5260
- vd as emailDomain,
5261
- Nd as endpointKey,
5261
+ Md as emailDomain,
5262
+ Od as endpointKey,
5262
5263
  Dr as erlangC,
5263
5264
  wi as extractParams,
5264
5265
  Ki as extractTerms,
@@ -5304,16 +5305,16 @@ export {
5304
5305
  Ls as isChatMessageActivity,
5305
5306
  Ka as isClosed,
5306
5307
  Ms as isConnectedType,
5307
- fd as isDeepLink,
5308
+ md as isDeepLink,
5308
5309
  Er as isDescendant,
5309
5310
  Ca as isEligible,
5310
5311
  $s as isEmailActivity,
5311
5312
  wl as isFrozen,
5312
5313
  qc as isHeldClock,
5313
- Od as isHtmlBody,
5314
+ xd as isHtmlBody,
5314
5315
  Fc as isInFlight,
5315
5316
  ur as isInteractionUnseen,
5316
- md as isLandingPath,
5317
+ hd as isLandingPath,
5317
5318
  or as isLikelyBulk,
5318
5319
  vt as isMessageShape,
5319
5320
  Ts as isMessageType,
@@ -5324,8 +5325,8 @@ export {
5324
5325
  gr as isParked,
5325
5326
  go as isPaused,
5326
5327
  vs as isPlaybookAuthoredType,
5327
- Md as isPublicEmailDomain,
5328
- gd as isPublicPath,
5328
+ Cd as isPublicEmailDomain,
5329
+ yd as isPublicPath,
5329
5330
  yr as isReminderActive,
5330
5331
  ks as isReplyableType,
5331
5332
  $a as isSlaAtRisk,
@@ -5346,7 +5347,7 @@ export {
5346
5347
  Ga as localeInstruction,
5347
5348
  Ha as localeName,
5348
5349
  za as localesOf,
5349
- kd as looksLikeEmail,
5350
+ wd as looksLikeEmail,
5350
5351
  Dt as lookup,
5351
5352
  _a as marginCents,
5352
5353
  Wu as markdownToDocument,
@@ -5356,11 +5357,11 @@ export {
5356
5357
  Ya as mcpCredentialScope,
5357
5358
  qa as mcpToolPrefix,
5358
5359
  cl as measureRatio,
5359
- Ed as mergeShownKeys,
5360
+ Sd as mergeShownKeys,
5360
5361
  mn as messageCountsAs,
5361
5362
  Ys as metricOption,
5362
5363
  Ht as minutesOn,
5363
- Cd as needsPhoneRegion,
5364
+ Nd as needsPhoneRegion,
5364
5365
  Is as nestsUnderParent,
5365
5366
  ol as nextLevelBelow,
5366
5367
  Zc as nextSlaClock,
@@ -5390,7 +5391,7 @@ export {
5390
5391
  zc as pauseBitFor,
5391
5392
  Zs as pendingApprovers,
5392
5393
  zs as periodsInRange,
5393
- wd as phoneSuffix,
5394
+ vd as phoneSuffix,
5394
5395
  xa as pickMailHeaders,
5395
5396
  wa as pickTemplate,
5396
5397
  Ec as placeLumps,
@@ -5403,7 +5404,7 @@ export {
5403
5404
  Rl as productScopeKey,
5404
5405
  su as projectDossierKeys,
5405
5406
  vi as publicBasePathFor,
5406
- hd as publicRoutePatterns,
5407
+ gd as publicRoutePatterns,
5407
5408
  da as reactionWakesAssignment,
5408
5409
  ye as readPath,
5409
5410
  de as readStepError,
@@ -89,7 +89,7 @@ export interface ToolSource {
89
89
  /** A second line: a snippet, a date, an author. */
90
90
  detail?: string;
91
91
  /**
92
- * Where to open this source. Two forms, told apart by their first character:
92
+ * Where to open this source. Three forms, told apart by their prefix:
93
93
  *
94
94
  * - **`/…`** — a shell-absolute in-product route, including the `/apps/<app>`
95
95
  * prefix, since the source may well belong to a different app than the one
@@ -101,6 +101,10 @@ export interface ToolSource {
101
101
  * A Shopify order lives in Shopify's admin and nowhere here; pretending
102
102
  * otherwise would mean either a dead in-product link or dropping the only
103
103
  * address the thing has.
104
+ * - **`settings:<pageId>`** — a settings page, opened in the overlay. Such a
105
+ * page has no route of its own; `sdk.ui.showSettings(pageId)` is the only
106
+ * way in. Without this form a source that lives in settings can be named
107
+ * but not reached.
104
108
  *
105
109
  * Absent when the thing has no page at all — a memory item, for instance —
106
110
  * which is a reason to show it without a link, not a reason to hide it.
@@ -134,6 +134,38 @@ export declare function resourceKindOf(scopeKey: string): string;
134
134
  */
135
135
  export declare const SCOPE_RELATED_ROUTE = "/provider/scope/related";
136
136
  export declare const SCOPE_READ_ROUTE = "/provider/scope/read";
137
+ /**
138
+ * **What can be guarded** on the kinds this app owns: the third optional route on the `scope`
139
+ * role, on the same terms as the two above — an app that does not implement it offers no acts,
140
+ * never an error.
141
+ *
142
+ * It exists because the alternative was a text field. An approval rule names an act
143
+ * (`issue`, `status:scheduled`), and only the owning app knows which acts it actually guards —
144
+ * and for `work` that list is not even static: it is one entry per status in every project
145
+ * ladder. A screen cannot hold that list and a person should not have to type it.
146
+ */
147
+ export declare const SCOPE_ACTS_ROUTE = "/provider/scope/acts";
148
+ /** One thing that can be made to need a signature. */
149
+ export interface GuardableAct {
150
+ /** The scope kind it applies to: `"quote"`, `"work_item"`. */
151
+ kind: string;
152
+ /** What the owning app calls it when it asks the gate: `"issue"`, `"status:scheduled"`. */
153
+ act: string;
154
+ /**
155
+ * What it is called on a settings screen, already rendered.
156
+ *
157
+ * A string and not an i18n key: `work` composes these from statuses an organisation named
158
+ * itself ("Ingepland"), so there is no key to stamp — and the two halves of one list must not
159
+ * be localised by different rules.
160
+ */
161
+ label: string;
162
+ /** What the kind is called, same reasoning. Repeated per row so the caller need not join. */
163
+ kindLabel?: string;
164
+ }
165
+ /** Bare payload of {@link SCOPE_ACTS_ROUTE}, like every describe in this repo. */
166
+ export interface ScopeActsResponse {
167
+ acts: GuardableAct[];
168
+ }
137
169
  /**
138
170
  * One explicit link between two resources, stored by apps/context.
139
171
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencxh/domain",
3
- "version": "1.262.0",
3
+ "version": "1.263.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",