@polyxd/web 0.4.0 → 0.4.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.
@@ -1,8 +1,8 @@
1
- var PolyxdWebPreview=(()=>{var Er=Object.defineProperty;var tn=Object.getOwnPropertyDescriptor;var rn=Object.getOwnPropertyNames;var an=Object.prototype.hasOwnProperty;var on=(t,r)=>{for(var s in r)Er(t,s,{get:r[s],enumerable:!0})},sn=(t,r,s,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of rn(r))!an.call(t,n)&&n!==s&&Er(t,n,{get:()=>r[n],enumerable:!(l=tn(r,n))||l.enumerable});return t};var nn=t=>sn(Er({},"__esModule",{value:!0}),t);var yd={};on(yd,{default:()=>gd});var Rr=t=>new Map(t.components.map(r=>[r.id,r])),Br=t=>t.surface.kind==="shell"?void 0:t.components.find(r=>r.component==="Navigation"&&(!r.kind||r.kind==="main"));var ge={pointer:""},ei=t=>t.replace(/~1/g,"/").replace(/~0/g,"~"),dn=t=>t.replace(/~/g,"~0").replace(/\//g,"~1"),Ae=t=>!!t&&typeof t=="object"&&!Array.isArray(t)&&typeof t.path=="string";function Y(t,r){return t.startsWith("/")?t:`${r.pointer}/${t}`}function ie(t,r){return`${t}/${dn(String(r))}`}function X(t,r){if(r==="")return t;let s=t;for(let l of r.slice(1).split("/").map(ei)){if(s===null||typeof s!="object")return;s=s[l]}return s}function Je(t,r,s){let l=r.slice(1).split("/").map(ei),n=(d,e)=>{let o=l[e],c=Array.isArray(d)?[...d]:{...d??{}};return e===l.length-1?c[o]=s:c[o]=n(d?.[o]??(/^\d+$/.test(l[e+1])?[]:{}),e+1),c};return n(t,0)}var pe=t=>Array.isArray(t)?t:[];function oe(t,r,s){return Ae(t)?X(r,Y(t.path,s)):t}function Ee(t,r,s){return Object.fromEntries(Object.entries(t??{}).map(([l,n])=>[l,oe(n,r,s)]))}function er(t,r,s){return Ae(t)?oe(t,r,s):Array.isArray(t)?t.map(l=>er(l,r,s)):t&&typeof t=="object"?Object.fromEntries(Object.entries(t).map(([l,n])=>[l,er(n,r,s)])):t}function te(t,r,s,l=Date.now()){if(t==null||t==="")return"\u2014";if(!r||r.type==="text")return Array.isArray(t)?t.join(", "):String(t);let n=typeof t=="number"?t:Number(t),d=r.precision===void 0?{}:{minimumFractionDigits:r.precision,maximumFractionDigits:r.precision};try{switch(r.type){case"number":return new Intl.NumberFormat(s,d).format(n);case"currency":return new Intl.NumberFormat(s,{style:"currency",currency:typeof r.currency=="string"?r.currency:"USD",...d}).format(n);case"percent":return new Intl.NumberFormat(s,{style:"percent",maximumFractionDigits:r.precision??1}).format(n);case"date":return new Intl.DateTimeFormat(s,{dateStyle:"medium",timeZone:"UTC"}).format(new Date(String(t)));case"time":return new Intl.DateTimeFormat(s,{timeStyle:"short",timeZone:"UTC"}).format(new Date(String(t)));case"datetime":return new Intl.DateTimeFormat(s,{dateStyle:"medium",timeStyle:"short",timeZone:"UTC"}).format(new Date(String(t)));case"relativeTime":{let e=(new Date(String(t)).getTime()-l)/1e3,o=[["year",31536e3],["month",2592e3],["day",86400],["hour",3600],["minute",60]],c=new Intl.RelativeTimeFormat(s,{numeric:"auto"});for(let[a,i]of o)if(Math.abs(e)>=i)return c.format(Math.round(e/i),a);return c.format(Math.round(e),"second")}case"duration":{let e=Math.round(n/60);return e>=60?`${Math.floor(e/60)} h ${e%60} min`:`${e} min`}case"color":return String(t).trim();case"bytes":{let e=["byte","kilobyte","megabyte","gigabyte","terabyte"],o=0,c=Math.abs(n);for(;c>=1e3&&o<e.length-1;)c/=1e3,o++;return o===0?`${new Intl.NumberFormat(s,{maximumFractionDigits:0}).format(n)} B`:new Intl.NumberFormat(s,{style:"unit",unit:e[o],unitDisplay:"short",maximumFractionDigits:r.precision??1}).format(n<0?-c:c)}}}catch{return String(t)}}function Oe(t){let r=String(t??"").trim();return/^(#[0-9a-f]{3,8}|[a-z]{3,20}|(rgb|rgba|hsl|hsla|oklch|oklab|lab|lch|hwb)\([\d.,%\s\/-]+\))$/i.test(r)?r:void 0}function mr(t,r){try{return new Intl.NumberFormat(r,{style:"currency",currency:t}).formatToParts(0).find(s=>s.type==="currency")?.value??t}catch{return t}}function se(t,r,s){return!t?.currency||typeof t.currency=="string"?t:{...t,currency:oe(t.currency,r,s)}}var Xe=(t,r)=>new Intl.NumberFormat(r).format(t),_r=(t,r)=>new Intl.NumberFormat(r,{style:"percent",maximumFractionDigits:0}).format(t);function Re(t,r,s,l){let n=t.options;if(Array.isArray(n))return n.map(o=>({value:o.value,label:l(o.label),description:o.description!==void 0?l(o.description):void 0}));let d=Y(n.path,s);return pe(X(r,d)).map((o,c)=>{let a={pointer:ie(d,c)},i=u=>u?X(r,Y(u,a)):void 0;return{value:i(n.valuePath),label:String(i(n.labelPath)??""),description:n.descriptionPath&&String(i(n.descriptionPath)??"")||void 0,avatar:n.avatarPath||n.imagePath?i(n.avatarPath??n.imagePath)??"":void 0,recent:n.recentPath?!!i(n.recentPath):!1}})}function Hr(t,r){let s=t.some(d=>d.avatar!==void 0),l=t.length>10||s&&t.length>6;return{control:!s&&t.length<=6&&t.every(d=>d.label.length<=24&&!d.description)?"chips":s?"people":"list",multiple:r==="multiple",searchable:l,withFaces:s}}var Ie=t=>JSON.stringify(t),xr=(t,r)=>!r||`${t.label} ${t.description??""}`.toLowerCase().includes(r.toLowerCase());function gr(t,r){return{recent:r?[]:t.filter(s=>s.recent),rest:t.filter(s=>r?xr(s,r):!s.recent)}}function Fr(t,r){let s=Array.isArray(t)?t:[],l=Ie(r);return s.some(n=>Ie(n)===l)?s.filter(n=>Ie(n)!==l):[...s,r]}var Ur=(t,r)=>{let s=Ie(r);return Array.isArray(t)?t.some(l=>Ie(l)===s):t!=null&&Ie(t)===s},Or=t=>t?"Search by name":"Filter options";var Lr=(t,r)=>`${t}-${encodeURIComponent(JSON.stringify(r)).replace(/%/g,"_")}`;var ti=(t,r)=>Math.max(0,Math.min(r-1,t));function Zr(t,r){let s=r.type==="back"?t.index-1:r.type==="next"?t.index+1:r.index;return{...t,index:ti(s,t.total)}}var Kr=(t,r)=>({index:typeof t=="number"?ti(t,r):0,total:r}),Wr=t=>t.index===t.total-1,Gr=t=>`Step ${t.index+1} of ${t.total}`,Vr={todo:{label:"Not started",tone:"neutral"},inProgress:{label:"In progress",tone:"info"},done:{label:"Completed",tone:"success"},blocked:{label:"Cannot start yet",tone:"neutral"}},Yr=t=>Vr[t??"todo"]??Vr.todo,Jr=(t,r)=>t===r?null:r,Xr=(t,r)=>`${t} of ${r} tasks completed`;function Qr(t,r,s){return typeof r=="string"&&r?r:s??t[0]?.key}var ri=640,ea={narrow:33.333,balanced:50,wide:66.667},tr=20,rr=80,ra=t=>({compact:!1,listShown:!1,share:ea[t??"narrow"]??ea.narrow}),ta=t=>Math.min(rr,Math.max(tr,t));function yr(t,r){switch(r.type){case"measure":return{...t,compact:r.width<ri};case"back":return{...t,listShown:!0};case"selected":return{...t,listShown:!1};case"share":return{...t,share:ta(r.value)};case"key":{let s=r.shift?10:5,l=r.key==="ArrowLeft"?t.share-s:r.key==="ArrowRight"?t.share+s:r.key==="Home"?tr:r.key==="End"?rr:void 0;return l===void 0?t:{...t,share:ta(l)}}}}function aa(t,r){let s=!t.compact||r&&!t.listShown;return{showList:!t.compact||!s,showDetail:s}}var ai=(t,r,s,l,n)=>s?X(l,Y(s,{pointer:n})):t&&typeof t=="object"&&"id"in t?t.id:r;function oa(t,r,s,l){let n=oe(t.selected,s,l),d=n!=null&&n!=="",e=r.get(t.primary),o=e?.component==="Table"?e.rows?.path:e?.items?.path,c=typeof o=="string"?Y(o,l):void 0,a=c?pe(X(s,c)):[],i=c?a.findIndex((h,b)=>ai(h,b,e?.rowValuePath,s,ie(c,b))===n):-1,u=c&&i>=0?{pointer:ie(c,i)}:void 0,f=e?.items?.componentId?r.get(e.items.componentId):void 0,m=i>=0?a[i]:void 0,x=u&&f?.title!==void 0?oe(f.title,s,u):void 0,y=d?String(x??m?.name??m?.title??m?.label??n):void 0;return{has:d,index:i,scope:u,name:y}}var oi={"multi-step-form":"form","filter-and-browse":"list","undo-over-confirm":"list","compare-and-choose":"compare","confirm-destructive":"dialog","review-and-submit":"detail"},ia=(t,r)=>r??(t?oi[t]:void 0)??"detail",de=(t,r)=>({block:t,size:r}),ye=(t,r)=>({group:t,parts:r}),Qe=(t,r)=>Array.from({length:t},(s,l)=>r(l)),sa={list:[de("field","full"),...Qe(5,t=>ye("row",[de("square"),ye("lines",[de("line",t%2?"medium":"long"),de("small","short")])]))],form:[...Qe(4,t=>ye("lines",[de("small","short"),de("field",t===1?"medium":"long")])),ye("actions",[de("button"),de("button")])],detail:[ye("row",[de("circle"),ye("lines",[ye("row",[de("line","medium"),de("badge")]),de("small","short")])]),ye("dl",Qe(6,t=>ye("row",[de("small","short"),de("line",t%3===2?"medium":"long")])))],dashboard:[ye("cards",Qe(3,()=>ye("card",[de("small","short"),de("value","medium")]))),de("chart","full")],dialog:[de("line","long"),de("line","medium"),ye("actions",[de("button"),de("button")])],compare:[ye("cards",Qe(3,()=>ye("card",[de("line","medium"),...Qe(5,t=>de("small",t%2?"short":"long"))])))]},na={row:"pxd-skeleton-row",lines:"pxd-skeleton-lines",actions:"pxd-skeleton-actions",dl:"pxd-skeleton-dl",cards:"pxd-skeleton-cards",card:"pxd-skeleton-card"},da=t=>t?`Preparing ${t}`:"Preparing";var pa=720,ii=[10,25,50,100],pn=new Set(["number","currency","percent","duration"]),hr=t=>t.align==="end"||t.align!=="start"&&(t.kind==="number"||t.kind==="currency"||pn.has(t.format?.type));function la(t){let[r,...s]=t;return{first:r,status:s.find(l=>l.kind==="status"),details:s.filter(l=>l.kind!=="status").slice(0,3)}}var ca=(t,r,s,l,n)=>t.rowValuePath?X(l,Y(t.rowValuePath,n)):r[s]?.id??s;var br=(t,r)=>t.includes(r)?t.filter(s=>s!==r):[...t,r],ua=(t,r,s)=>t===r&&s==="ascending"?"descending":"ascending",fa=(t,r,s)=>t.columns.length+(r?1:0)+(s?1:0)+(t.rowActions||t.rowAction?1:0);function ma(t,r,s,l){let n=typeof t=="number"?t:1,d=typeof r=="number"?r:l,e=typeof s=="number"?s:l,o=Math.max(1,Math.ceil(e/(d||1)));return{index:n,size:d,total:e,pages:o,from:e===0?0:(n-1)*d+1,to:Math.min(n*d,e),sizes:[...new Set([...ii,d])].sort((c,a)=>c-a)}}function xa(t,r,s,l,n){if(!t)return;let{name:d,context:e}=t.event;if(d==="ui.dismiss")return n.onDismiss?.();n.onAction?.({name:d,context:Ee(e,l,r),source:s})}function Le(t,r,s,l){let n=Y(t.value.path,s);return Object.fromEntries(Object.entries(t.action?.event?.context??{}).map(([d,e])=>[d,Ae(e)&&Y(e.path,s)===n?l:oe(e,r,s)]))}function ga(t,r,s,l){return t.copy!==void 0?l(t.copy):String(Ee(t.action?.event?.context,r,s).text??"")}var ya=(t,r)=>({event:{name:t.event.name,context:{key:r,...t.event.context??{}}}});var vr={ctrl:["\u2303","Ctrl","Control","ctrlKey"],alt:["\u2325","Alt","Alt","altKey"],shift:["\u21E7","Shift","Shift","shiftKey"],enter:["\u21B5","Enter","Enter","enter"],escape:["\u238B","Esc","Escape","escape"],space:["Space","Space","Space"," "],tab:["\u21E5","Tab","Tab","tab"],backspace:["\u232B","Backspace","Backspace","backspace"],delete:["\u2326","Del","Delete","delete"],arrowup:["\u2191","\u2191","ArrowUp","arrowup"],arrowdown:["\u2193","\u2193","ArrowDown","arrowdown"],arrowleft:["\u2190","\u2190","ArrowLeft","arrowleft"],arrowright:["\u2192","\u2192","ArrowRight","arrowright"],home:["Home","Home","Home","home"],end:["End","End","End","end"],slash:["/","/","/","/"],comma:[",",",",",",","],period:[".",".",".","."]},si=["metaKey","ctrlKey","altKey","shiftKey"];function ha(t,r){let s=t.toLowerCase().split("+"),l=s.pop(),n=[],d=[],e=new Set;for(let c of s){let[a,i,u,f]=c==="mod"?r?["\u2318","Ctrl","Meta","metaKey"]:vr.ctrl:vr[c];n.push(r?a:i),d.push(u),e.add(f)}let o=vr[l];return n.push(o?r?o[0]:o[1]:l.toUpperCase()),d.push(o?o[2]:l.toUpperCase()),{hint:n,aria:d.join("+"),flags:e,key:o?o[3]:l}}function ba(t,r){if(!si.every(l=>r[l]===t.flags.has(l)))return!1;let s=/^[a-z0-9]$/.test(t.key)&&r.code.toLowerCase()===(/\d/.test(t.key)?`digit${t.key}`:`key${t.key}`);return r.key.toLowerCase()===t.key||s}var va=t=>!t.flags.has("metaKey")&&!t.flags.has("ctrlKey")&&!t.flags.has("altKey"),wa=t=>/mac|iphone|ipad|ipod/i.test(t);var ka=t=>t>=1024?"wide":t>=640?"medium":"compact";function $a(t,r,s){let l=s<=5;return t==="bar"?l?"bar":"drawer":t==="drawer"?"drawer":r==="compact"?l?"bar":"drawer":t==="side"||t==="rail"?t:r==="wide"?"side":"rail"}var Pa=(t,r,s)=>r&&s?s:t;var cn=/^(https?:|mailto:|tel:|\/|#)/i;function et(t){let r=[],s="",l=0,n=()=>{s&&r.push(s),s=""};for(;l<t.length;){if(t[l]==="`"){let d=t.indexOf("`",l+1);if(d>l+1){n(),r.push({kind:"code",text:t.slice(l+1,d)}),l=d+1;continue}}if(t.startsWith("**",l)){let d=t.indexOf("**",l+2);if(d>l+2){n(),r.push({kind:"strong",children:et(t.slice(l+2,d))}),l=d+2;continue}}if(t[l]==="*"){let d=t.indexOf("*",l+1);if(d>l+1){n(),r.push({kind:"em",children:et(t.slice(l+1,d))}),l=d+1;continue}}if(t[l]==="["){let d=/^\[([^\]]+)\]\(([^)\s]+)\)/.exec(t.slice(l));if(d){n(),r.push({kind:"link",href:cn.test(d[2])?d[2]:void 0,children:et(d[1])}),l+=d[0].length;continue}}s+=t[l++]}return n(),r}function Sa(t,r,s=!1){let l=r.replace(/[^A-Za-z0-9]/g,"").split(""),n="",d=0;for(let e of t){if(d>=l.length)break;if(e==="#"||e==="A"||e==="*"){let o=e==="#"?/\d/:e==="A"?/[A-Za-z]/:/./;for(;d<l.length&&!o.test(l[d]);)d++;if(d>=l.length)break;n+=l[d++]}else n+=e}if(s)for(;n.length&&!/[#A*]/.test(t[n.length-1]);)n=n.slice(0,-1);return n}var za=t=>!/[A*]/.test(t);function Aa(t){let r=Number(t.replace(/[^\d.-]/g,""));return t.trim()===""||Number.isNaN(r)?null:r}var Ia=(t,r)=>t==null?"":r==="currency"&&typeof t=="number"?t.toFixed(2):String(t);function Ca(t,r){let s=r.trim().replace(/,$/,"").trim();return s&&!t.includes(s)?[...t,s]:t}var $e=(t,r,s)=>Math.min(s,Math.max(r,t)),Ve=t=>$e(Math.round(t),0,255).toString(16).padStart(2,"0"),un=t=>t===void 0?1:$e(t.endsWith("%")?parseFloat(t)/100:parseFloat(t),0,1),fn=t=>t.endsWith("%")?parseFloat(t)/100*255:parseFloat(t);function ni(t,r,s){let l=(t%360+360)%360/360;if(r===0)return[s*255,s*255,s*255];let n=s<.5?s*(1+r):s+r-s*r,d=2*s-n,e=o=>(o<0&&(o+=1),o>1&&(o-=1),o<1/6?d+(n-d)*6*o:o<1/2?n:o<2/3?d+(n-d)*(2/3-o)*6:d);return[e(l+1/3)*255,e(l)*255,e(l-1/3)*255]}function di(t,r,s){let l=t/255,n=r/255,d=s/255,e=Math.max(l,n,d),o=Math.min(l,n,d),c=(e+o)/2;if(e===o)return[0,0,c];let a=e-o,i=c>.5?a/(2-e-o):a/(e+o),u=e===l?(n-d)/a+(n<d?6:0):e===n?(d-l)/a+2:(l-n)/a+4;return u/=6,[u*360,i,c]}function Be(t){if(typeof t!="string")return null;let r=t.trim(),s=/^#([0-9a-f]{3,8})$/i.exec(r);if(s){let f=s[1];if(f.length===3||f.length===4){let[m,x,y,h]=f.split("").map(b=>parseInt(b+b,16));return{r:m,g:x,b:y,a:f.length===4?h/255:1}}if(f.length===6||f.length===8){let m=x=>parseInt(f.slice(x,x+2),16);return{r:m(0),g:m(2),b:m(4),a:f.length===8?m(6)/255:1}}return null}let l=/^(rgba?|hsla?)\(\s*([^)]+?)\s*\)$/i.exec(r);if(!l)return null;let n=l[2].split(/\s*[,/]\s*|\s+/).filter(Boolean);if(n.length<3||n.length>4)return null;let d=un(n[3]);if(Number.isNaN(d))return null;if(l[1].toLowerCase().startsWith("rgb")){let[f,m,x]=n.slice(0,3).map(fn);return[f,m,x].some(Number.isNaN)?null:{r:$e(f,0,255),g:$e(m,0,255),b:$e(x,0,255),a:d}}let e=parseFloat(n[0]),o=parseFloat(n[1])/100,c=parseFloat(n[2])/100;if([e,o,c].some(Number.isNaN))return null;let[a,i,u]=ni(e,$e(o,0,1),$e(c,0,1));return{r:a,g:i,b:u,a:d}}function wr(t,r,s){let l=s?Math.round(t.a*100)/100:1,n=Math.round(t.r),d=Math.round(t.g),e=Math.round(t.b);if(r==="rgb")return l<1?`rgba(${n}, ${d}, ${e}, ${l})`:`rgb(${n}, ${d}, ${e})`;if(r==="hsl"){let[o,c,a]=di(n,d,e),i=Math.round(o),u=Math.round(c*100),f=Math.round(a*100);return l<1?`hsla(${i}, ${u}%, ${f}%, ${l})`:`hsl(${i}, ${u}%, ${f}%)`}return`#${Ve(n)}${Ve(d)}${Ve(e)}${l<1?Ve(l*255):""}`}var qa=t=>t?`#${Ve(t.r)}${Ve(t.g)}${Ve(t.b)}`:"#000000",Da=(t,r,s)=>!!(t&&r&&Math.round(t.r)===Math.round(r.r)&&Math.round(t.g)===Math.round(r.g)&&Math.round(t.b)===Math.round(r.b)&&(!s||Math.abs(t.a-r.a)<.005)),Ta=t=>t==="hex"?"#000000":t==="rgb"?"rgb(0, 0, 0)":"hsl(0, 0%, 0%)";var pi=["byte","kilobyte","megabyte","gigabyte"];function tt(t,r){let s=0,l=t;for(;l>=1024&&s<pi.length-1;)l/=1024,s++;try{return new Intl.NumberFormat(r,{style:"unit",unit:pi[s],unitDisplay:"short",maximumFractionDigits:l<10?1:0}).format(l)}catch{return`${Math.round(l*10)/10} ${["B","KB","MB","GB"][s]}`}}function Na(t){let r=t.trim().toLowerCase();if(r.startsWith("."))return r.slice(1).toUpperCase();let s={"image/*":"images","video/*":"videos","audio/*":"audio","text/*":"text files"};if(s[r])return s[r];if(r==="application/pdf")return"PDF";let l=r.split("/")[1];return l?l.replace(/^(x-|vnd\.)/,"").toUpperCase():t}function Ma(t){return t.length<=1?t.join(""):`${t.slice(0,-1).join(", ")} or ${t[t.length-1]}`}function li(t,r){if(r.length===0)return!0;let s=t.name.toLowerCase(),l=t.type.toLowerCase();return r.some(n=>{let d=n.trim().toLowerCase();return d.startsWith(".")?s.endsWith(d):d.endsWith("/*")?l.startsWith(d.slice(0,-1)):l===d})}function ja(t,r,s,l){let n=t.length?Ma(t.map(Na)):"";return[n&&`Accepts ${n}.`,r&&`Up to ${tt(r,l)}${s?" each":""}.`].filter(Boolean).join(" ")}function Ea(t,r,s,l){if(s&&t.size>s)return`${t.name} is ${tt(t.size,l)}; the limit is ${tt(s,l)}.`;let n=r.length?Ma(r.map(Na)):"";if(!li(t,r))return`${t.name} isn't an accepted type${n?` (${n})`:""}.`}function Ra(t,r,s,l){if(typeof t!="number")return;let n=r??"increase",d=t>0?"up":t<0?"down":"unchanged",e=n==="none"||t===0?"neutral":t>0==(n==="increase")?"positive":"negative",o=te(Math.abs(t),s,l);return{text:`${t>0?"\u25B2":t<0?"\u25BC":"\u25A0"} ${o}`,spoken:d==="unchanged"?"unchanged":`${d} ${o}`,tone:e}}function ci(t,r){return t>=1?{tone:"danger",hint:"full"}:r?.danger!==void 0&&t>=r.danger?{tone:"danger",hint:"nearly full"}:r?.warning!==void 0&&t>=r.warning?{tone:"warning",hint:"getting full"}:{}}function Ba(t,r,s,l,n,d){let e=typeof r=="number"?r:Number(r),o=s!==void 0?Number(s):void 0,c=o!==void 0&&Number.isFinite(o)&&o>0?o:void 0,a=Number.isFinite(e)?Math.max(0,Math.min(1,c!==void 0?e/c:e)):0,i=t.format?te(r,t.format,d):te(a,{type:"percent",precision:0},d),u=t.kind==="meter",f=u?ci(a,t.thresholds):{},m=t.tone??f.tone,x=u?f.hint:void 0,y=[i,n,x].filter(Boolean).join(", "),h=Math.round(a*100),b=l?{"aria-busy":!0}:c!==void 0?{"aria-valuemin":0,"aria-valuemax":c,"aria-valuenow":Number.isFinite(e)?e:0,"aria-valuetext":y}:{"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":h,"aria-valuetext":y};return{fraction:a,percent:h,valueProps:b,readout:i,tone:m,hint:x,valuetext:y,indeterminate:l}}var _a=t=>`${t} ${t===1?"star":"stars"}`,Ha=(t,r)=>t!==void 0?`${t} out of ${r}`:"not yet rated",Fa=t=>t.replace(/[^\s]/g,"\u2022"),kr={small:24,default:40,large:64};function Ua(t,r){let s=d=>d.split(/\s+/)[0]||d,l=t.slice(0,r),n=t.slice(r);return n.length?`${l.map(d=>s(d.name)).join(", ")} and ${n.length} more`:l.map(d=>s(d.name)).join(", ")}var ui=["primary","secondary","tertiary","success","warning"];function La(t){return ui[[...t].reduce((r,s)=>r*31+s.charCodeAt(0)>>>0,7)%ui.length]}function Va(t,r){return(t&&t.length<=3?t:r.split(/\s+/).map(s=>s[0]).join("").slice(0,2)).toUpperCase()}var Za=t=>t.length>3,Oa={search:"M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14zM21 21l-4.3-4.3",check:"M20 6 9 17l-5-5",info:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 16v-4M12 8h.01",lock:"M5 11h14v10H5zM8 11V7a4 4 0 0 1 8 0v4",trash:"M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6",clock:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 7v5l3 2",tag:"M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z",alert:"M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h16.9a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01",mail:"M3 5h18v14H3zM3 7l9 6 9-6",shield:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z",book:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z",inbox:"M22 12h-6l-2 3h-4l-2-3H2M5.5 5h13L22 12v7H2v-7z",filter:"M3 5h18l-7 8v6l-4 2v-8z",close:"M18 6 6 18M6 6l12 12",dash:"M6 12h12",menu:"M4 6h16M4 12h16M4 18h16",home:"M4 11 12 4l8 7M6 10v10h12V10",settings:"M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6zM19.4 15a1.7 1.7 0 0 0 .3 1.8 2 2 0 1 1-2.8 2.8 1.7 1.7 0 0 0-2.9 1.2 2 2 0 1 1-4 0 1.7 1.7 0 0 0-2.9-1.2 2 2 0 1 1-2.8-2.8A1.7 1.7 0 0 0 2.1 14a2 2 0 1 1 0-4 1.7 1.7 0 0 0 1.2-2.9 2 2 0 1 1 2.8-2.8A1.7 1.7 0 0 0 9 3.1a2 2 0 1 1 4 0 1.7 1.7 0 0 0 2.9 1.2 2 2 0 1 1 2.8 2.8A1.7 1.7 0 0 0 21 10a2 2 0 1 1 0 4 1.7 1.7 0 0 0-1.6 1z",chart:"M4 20V10M10 20V4M16 20v-7M22 20H2",people:"M9 4.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7zM2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14a6.5 6.5 0 0 1 3.5 6",card:"M2 6h20v13H2zM2 10h20",file:"M6 3h8l4 4v14H6zM14 3v4h4",dots:"M12 5h.01M12 12h.01M12 19h.01",sort:"M8 9l4-4 4 4M8 15l4 4 4-4",sortUp:"M12 19V5M6 11l6-6 6 6",sortDown:"M12 5v14M6 13l6 6 6-6",chevronLeft:"M15 5l-7 7 7 7",chevronRight:"M9 5l7 7-7 7",chevronDown:"m6 9 6 6 6-6",orders:"M6 3h12v18l-3-2-3 2-3-2-3 2zM9 8h6M9 12h6",products:"M12 3 3 7.5v9L12 21l9-4.5v-9zM3 7.5l9 4.5 9-4.5M12 12v9",customers:"M12 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM4 21a8 8 0 0 1 16 0",discounts:"M19 5 5 19M7.5 6a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM16.5 15a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z",analytics:"M3 17l5-6 4 3 5-7 4 4M3 21h18",calendar:"M4 6h16v14H4zM4 10h16M8 3v4M16 3v4",bell:"M6 16V11a6 6 0 0 1 12 0v5l2 2H4zM10 21h4",help:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.7.3-1 .9-1 1.7M12 17h.01",folder:"M3 6h6l2 2h10v11H3z",star:"m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3 6.4 20.2l1.1-6.2L3 9.6l6.2-.9z",grid:"M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z",layers:"m12 3 9 5-9 5-9-5zM3 13l9 5 9-5M3 17l9 5 9-5"},Ka=t=>Oa[t]??Oa.info,Wa={info:"info",success:"check",warning:"alert",error:"alert",empty:"inbox",undo:"check"},$r="M12 2.5l2.9 6.2 6.8.8-5 4.7 1.3 6.8L12 17.6 6 21l1.3-6.8-5-4.7 6.8-.8z";var Ga=(t,r)=>t&&typeof t=="object"&&"id"in t?t.id:r;function Ya(t,r){let s=t.layout??"auto";return{grid:s==="grid"||s==="auto"&&r?.component==="Card"&&!!r.media,timeline:s==="timeline",carousel:s==="carousel",calendar:s==="calendar"}}function Ja(t,r){let s=t.map((n,d)=>d);if(!Array.isArray(r))return s;let l=n=>{let d=r.indexOf(t[n]);return d<0?r.length+n:d};return s.sort((n,d)=>l(n)-l(d))}function Xa(t,r,s,l){if(l<0||l>=t.length||s===l)return;let n=[...t];return n.splice(l,0,...n.splice(s,1)),n.map(d=>r[d])}function Qa(t){if(t==null||t==="")return;let r=new Date(String(t));return Number.isNaN(r.getTime())?void 0:{y:r.getUTCFullYear(),m:r.getUTCMonth(),d:r.getUTCDate()}}var eo=(t,r,s=new Date)=>t??(r?{y:r.y,m:r.m}:{y:s.getUTCFullYear(),m:s.getUTCMonth()});function Pr(t,r){let s=new Date(Date.UTC(t.y,t.m+r,1));return{y:s.getUTCFullYear(),m:s.getUTCMonth()}}function to(t,r){let s=new Intl.DateTimeFormat(r,{month:"long",year:"numeric",timeZone:"UTC"}).format(new Date(Date.UTC(t.y,t.m,1))),l=Array.from({length:7},(c,a)=>new Intl.DateTimeFormat(r,{weekday:"short",timeZone:"UTC"}).format(new Date(Date.UTC(2024,0,1+a)))),n=(new Date(Date.UTC(t.y,t.m,1)).getUTCDay()+6)%7,d=new Date(Date.UTC(t.y,t.m+1,0)).getUTCDate(),e=[...Array(n).fill(null),...Array.from({length:d},(c,a)=>a+1)];for(;e.length%7;)e.push(null);let o=Array.from({length:e.length/7},(c,a)=>e.slice(a*7,a*7+7));return{...t,monthName:s,weekdays:l,weeks:o}}function ro(t,r){let s=0;return t.forEach((l,n)=>{Math.abs(l-r)<Math.abs(t[s]-r)&&(s=n)}),s}function ao(t,r,s){let l=new Map;for(let n of t){if(!n.better||n.better==="none")continue;let d=Array.from({length:r},(o,c)=>Number(s(n.path,c))),e=n.better==="higher"?Math.max(...d):Math.min(...d);d.filter(o=>o===e).length===1&&l.set(n.key,d.indexOf(e))}return l}function oo(t,r){let s=[];for(let l of t){let n=l.group!==void 0?r(l.group):void 0,d=s.find(e=>e.label===n);d?d.attributes.push(l):s.push({label:n,attributes:[l]})}return s}function io(t,r){let s=t.map((n,d)=>d),l=s.findIndex(n=>t[n]===r);return l>0&&s.unshift(...s.splice(l,1)),s}function so(t,r){let s=[];for(let l of t){let n=l.group!==void 0?r(l.group):void 0,d=s.find(e=>e.label===n);d?d.items.push(l):s.push({label:n,items:[l]})}return s}var no=t=>t==="breadcrumb"?"Breadcrumb":t==="toc"?"On this page":"Main";var le={top:16,right:16,bottom:32,left:56},rt=["circle","square","diamond","triangle","circle","square"],ue=t=>`var(--pxd-color-data-categorical-${t%6+1})`;function at(t){if(t<=0)return 1;let r=10**Math.floor(Math.log10(t));return Math.ceil(t/r)*r}function Sr(t,r,s){if(r==="date"||r==="datetime"){let l=new Date(String(t));if(!Number.isNaN(l.getTime())){let n=l.getUTCDate()===1?{month:"short",timeZone:"UTC"}:{month:"short",day:"numeric",timeZone:"UTC"};return new Intl.DateTimeFormat(s,n).format(l)}}return String(t??"").slice(0,12)}function po(t,r,s){let l=t.reduce((f,m)=>f+m,0),n=t.map(()=>null);if(l<=0)return n;let d=t.map((f,m)=>m).filter(f=>t[f]>0).sort((f,m)=>t[m]-t[f]),e=f=>t[f]/l*r*s,o=0,c=0,a=r,i=s,u=0;for(;u<d.length&&a>0&&i>0;){let f=a>=i,m=f?i:a,x=[],y=0,h=1/0;for(;u<d.length;){let T=[...x,d[u]],A=y+e(d[u]),R=A/m,M=Math.max(...T.map(P=>{let N=e(P)/R;return Math.max(N/R,R/N)}));if(M>h&&x.length)break;x=T,y=A,h=M,u++}let b=y/m,w=0;for(let T of x){let A=e(T)/b;n[T]=f?{x:o,y:c+w,w:b,h:A}:{x:o+w,y:c,w:A,h:b},w+=A}f?(o+=b,a-=b):(c+=b,i-=b)}return n}function lo(t,r){let s=at(Math.max(0,...t)),l=r?Math.min(0,...t):0,n=r&&t.length?Math.max(l,Math.min(...t)-(Math.max(...t)-Math.min(...t))*.2):l,d=r?Math.floor(n):0;return{lo:d,max:s,ticks:[0,.5,1].map(e=>d+(s-d)*e)}}function co(t,r,s){return t==="square"?{tag:"rect",attrs:{x:r-4,y:s-4,width:8,height:8}}:t==="diamond"?{tag:"path",attrs:{d:`M${r} ${s-5}L${r+5} ${s}L${r} ${s+5}L${r-5} ${s}Z`}}:t==="triangle"?{tag:"path",attrs:{d:`M${r} ${s-5}L${r+5} ${s+4}L${r-5} ${s+4}Z`}}:{tag:"circle",attrs:{cx:r,cy:s,r:4}}}function uo(t,r,s){let l=t.map(f=>f.reduce((m,x)=>m+x,0)),n=Array.from({length:r},(f,m)=>t.reduce((x,y)=>x+y[m],0)),d=l.reduce((f,m)=>f+m,0)||1,e=6,c=(s-e*(Math.max(t.length,r)-1))/d,a=[],i=[],u=0;return l.forEach(f=>(a.push(u),u+=f*c+e)),u=0,n.forEach(f=>(i.push(u),u+=f*c+e)),{leftY:a,rightY:i,leftTotals:l,rightTotals:n,scale:c}}var zr=200,fo=10,mo=500,mn=t=>t==null?"":String(t);function xo(t,r,s,l){let n=[],d=new Map,e=[],o=(i,u)=>l?l.has(i):u===1,c=(i,u,f,m)=>{i.forEach((x,y)=>{let h={pointer:ie(u,y)},b=mn(X(r,Y(t.labelPath,h))),w=t.valuePath?X(r,Y(t.valuePath,h)):b,T=w??(b||h.pointer),A=t.detailPath?X(r,Y(t.detailPath,h)):void 0,R=A==null||A===""?void 0:String(A),M=pe(X(r,Y(t.childrenPath,h)));f===1&&e.push(T);let P=M.length>0,N=P&&o(T,f),E=n.length;d.set(h.pointer,E),n.push({key:h.pointer,scope:h,level:f,setsize:i.length,posinset:y+1,label:b,value:T,detail:R,hasChildren:P,expanded:N,parent:m}),N&&c(M,Y(t.childrenPath,h),f+1,E)})},a=Y(t.items.path,s);return c(pe(X(r,a)),a,1,-1),{rows:n,indexByKey:d,topValues:e}}function go(t,r,s){let l=e=>{for(let o=1;o<=t.length;o++){let c=(r+o)%t.length;if(t[c].label.toLowerCase().startsWith(e))return c}return-1},n=s.length>1&&[...s].every(e=>e===s[0]),d=l(n?s[0]:s);return d<0&&s.length>1&&(d=l(s[0])),d}function yo(t,r,s){let l=t[r];if(l)switch(s.key){case"ArrowDown":return{focus:Math.min(t.length-1,r+1)};case"ArrowUp":return{focus:Math.max(0,r-1)};case"ArrowRight":return l.hasChildren&&!l.expanded?{toggle:!0}:l.expanded?{focus:Math.min(t.length-1,r+1)}:void 0;case"ArrowLeft":return l.expanded?{toggle:!0}:l.parent>=0?{focus:l.parent}:void 0;case"Home":return{focus:0};case"End":return{focus:t.length-1};case"Enter":return{activate:!0};case" ":return{select:!0};case"*":return{expandSiblings:!0};default:return s.key.length===1&&!s.ctrlKey&&!s.metaKey&&!s.altKey?{typeAhead:s.key}:void 0}}function ho(t,r,s,l){return t<=zr?{start:0,end:t}:{start:Math.max(0,Math.floor(r/s)-fo),end:Math.min(t,Math.ceil((r+l)/s)+fo)}}function bo(t,r,s,l,n){let d=[];for(let e of t){if(!Ae(e.value))continue;let o=e.value,c=oe(e.value,r,s),a=n(e.label),i=u=>te(u,se(e.format??{type:"number"},r,s),l);switch(e.component){case"Choice":{let u=Re(e,r,s,n),f=m=>u.find(x=>x.value===m)?.label??String(m);if(Array.isArray(c))for(let m of c)d.push({key:`${e.id}:${m}`,label:f(m),binding:o,cleared:c.filter(x=>x!==m)});else c!=null&&c!==""&&d.push({key:e.id,label:f(c),binding:o,cleared:null});break}case"RangeInput":{if(e.mode==="range"&&Array.isArray(c)){let[u,f]=c.map(Number);(u>e.min||f<e.max)&&d.push({key:e.id,label:`${a}: ${i(u)} \u2013 ${i(f)}`,binding:o,cleared:[e.min,e.max]})}else typeof c=="number"&&c<e.max&&d.push({key:e.id,label:`${a}: ${i(c)}`,binding:o,cleared:e.max});break}case"Toggle":c===!0&&d.push({key:e.id,label:a,binding:o,cleared:!1});break;case"TextInput":typeof c=="string"&&c.trim()&&d.push({key:e.id,label:`${a}: ${c}`,binding:o,cleared:""});break;case"DateInput":c&&d.push({key:e.id,label:`${a}: ${String(c)}`,binding:o,cleared:null});break}}return d}var vo=640,wo=(t,r)=>t===void 0?void 0:`${te(t,{type:"number"},r)} ${t===1?"result":"results"}`;var fi=[[10,[[1,16]]],[16,[[1,28]]],[26,[[1,44]]],[18,[[2,32]]],[24,[[2,43]]],[16,[[4,27]]],[18,[[4,31]]],[22,[[2,38],[2,39]]],[22,[[3,36],[2,37]]],[26,[[4,43],[1,44]]]],xn=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50]];function ko(t,r){let s=0;for(let l=7;l>=0;l--)s=s<<1^(s>>>7)*285,s^=(r>>>l&1)*t;return s&255}function gn(t,r){let s=new Array(r).fill(0);s[r-1]=1;let l=1;for(let d=0;d<r;d++){for(let e=0;e<r;e++)s[e]=ko(s[e],l),e+1<r&&(s[e]^=s[e+1]);l=ko(l,2)}let n=new Array(r).fill(0);for(let d of t){let e=d^n.shift();n.push(0),s.forEach((o,c)=>n[c]^=ko(o,e))}return n}var yn=[(t,r)=>(t+r)%2===0,(t,r)=>r%2===0,t=>t%3===0,(t,r)=>(t+r)%3===0,(t,r)=>(Math.floor(t/3)+Math.floor(r/2))%2===0,(t,r)=>t*r%2+t*r%3===0,(t,r)=>(t*r%2+t*r%3)%2===0,(t,r)=>((t+r)%2+t*r%3)%2===0];function $o(t){let r=Array.from(new TextEncoder().encode(t)),s=0,l=0;for(let k=1;k<=10&&!s;k++){let v=fi[k-1][1].reduce((S,[I,j])=>S+I*j,0);4+(k<10?8:16)+r.length*8<=v*8&&(s=k,l=v)}if(!s)return;let[n,d]=fi[s-1],e=[],o=(k,v)=>{for(let S=v-1;S>=0;S--)e.push(k>>>S&1)};o(4,4),o(r.length,s<10?8:16);for(let k of r)o(k,8);let c=l*8;for(o(0,Math.min(4,c-e.length));e.length%8;)e.push(0);for(let k=236;e.length<c;k^=253)o(k,8);let a=[];for(let k=0;k<e.length;k+=8)a.push(e.slice(k,k+8).reduce((v,S)=>v<<1|S,0));let i=[],u=0;for(let[k,v]of d)for(let S=0;S<k;S++){let I=a.slice(u,u+v);i.push({d:I,e:gn(I,n)}),u+=v}let f=[],m=Math.max(...i.map(k=>k.d.length));for(let k=0;k<m;k++)for(let v of i)k<v.d.length&&f.push(v.d[k]);for(let k=0;k<n;k++)for(let v of i)f.push(v.e[k]);let x=s*4+17,y=Array.from({length:x},()=>new Array(x).fill(!1)),h=Array.from({length:x},()=>new Array(x).fill(!1)),b=(k,v,S)=>{k>=0&&v>=0&&k<x&&v<x&&(y[v][k]=S,h[v][k]=!0)};for(let k=0;k<x;k++)b(6,k,k%2===0),b(k,6,k%2===0);let w=(k,v)=>{for(let S=-4;S<=4;S++)for(let I=-4;I<=4;I++){let j=Math.max(Math.abs(I),Math.abs(S));b(k+I,v+S,j!==2&&j!==4)}};w(3,3),w(x-4,3),w(3,x-4);let T=xn[s-1],A=T.length-1;T.forEach((k,v)=>T.forEach((S,I)=>{if(!(v===0&&I===0||v===0&&I===A||v===A&&I===0))for(let j=-2;j<=2;j++)for(let C=-2;C<=2;C++)b(k+C,S+j,Math.max(Math.abs(C),Math.abs(j))!==1)}));let R=k=>{let v=k,S=v;for(let C=0;C<10;C++)S=S<<1^(S>>>9)*1335;let I=(v<<10|S)^21522,j=C=>(I>>>C&1)===1;for(let C=0;C<=5;C++)b(8,C,j(C));b(8,7,j(6)),b(8,8,j(7)),b(7,8,j(8));for(let C=9;C<15;C++)b(14-C,8,j(C));for(let C=0;C<8;C++)b(x-1-C,8,j(C));for(let C=8;C<15;C++)b(8,x-15+C,j(C));b(8,x-8,!0)};if(R(0),s>=7){let k=s;for(let S=0;S<12;S++)k=k<<1^(k>>>11)*7973;let v=s<<12|k;for(let S=0;S<18;S++){let I=(v>>>S&1)===1,j=x-11+S%3,C=Math.floor(S/3);b(j,C,I),b(C,j,I)}}let M=0;for(let k=x-1;k>=1;k-=2){k===6&&(k=5);for(let v=0;v<x;v++)for(let S=0;S<2;S++){let I=k-S,j=(k+1&2)===0?x-1-v:v;!h[j][I]&&M<f.length*8&&(y[j][I]=(f[M>>>3]>>>7-(M&7)&1)===1,M++)}}let P=k=>{for(let v=0;v<x;v++)for(let S=0;S<x;S++)!h[v][S]&&yn[k](S,v)&&(y[v][S]=!y[v][S])},N=()=>{let k=0,v=j=>{let C=0,U=null;j.forEach((B,L)=>{if(B===U?(C++,C===5?k+=3:C>5&&(k+=1)):(U=B,C=1),L+7<=j.length){let W=j.slice(L,L+7),H=W[0]&&!W[1]&&W[2]&&W[3]&&W[4]&&!W[5]&&W[6],G=L>=4&&j.slice(L-4,L).every(_=>!_),O=L+11<=j.length&&j.slice(L+7,L+11).every(_=>!_);H&&(G||O)&&(k+=40)}})};for(let j=0;j<x;j++)v(y[j]),v(y.map(C=>C[j]));for(let j=0;j<x-1;j++)for(let C=0;C<x-1;C++)y[j][C]===y[j][C+1]&&y[j][C]===y[j+1][C]&&y[j][C]===y[j+1][C+1]&&(k+=3);let S=y.flat().filter(Boolean).length,I=x*x;return k+=(Math.ceil(Math.abs(S*20-I*10)/I)-1)*10,k},E=0,$=1/0;for(let k=0;k<8;k++){R(k),P(k);let v=N();P(k),v<$&&($=v,E=k)}return R(E),P(E),y}var Po="More actions";function So(t,r){for(let s=t.length-1;s>0;s--)if(r.get(t[s])?.component!=="Action")return s+1;return 1}function zo(t,r,s,l,n,d){if(t.length<=2)return t.length;let e=0,o=0;for(;o<t.length&&e+(o?s:0)+r(t[o])<=l;)e+=(o?s:0)+r(t[o++]);if(o<t.length){for(;o>d&&e+s+n>l;)e-=s+r(t[--o]);o=Math.max(o,d)}return o}function ar(t){let r=t.filter(l=>l.tone!=="danger"),s=t.filter(l=>l.tone==="danger");return{usual:r,danger:s,divider:s.length>0&&r.length>0}}function Ao(t,r={}){let s=r.data??t.data??{},l=new Set,n=r.locale??"en-GB",d=()=>l.forEach(o=>o(s)),e={document:t,byId:Rr(t),get data(){return s},locale:n,setValue(o,c){let a=Je(s,o,c);s=r.derive?.(a)??a,r.onDataChange?.(s),d()},replaceData(o){s=o,d()},dispatch:(o,c,a)=>xa(o,c,a,s,r),subscribe(o){return l.add(o),()=>l.delete(o)},resolve:(o,c=ge)=>oe(o,s,c),text(o,c,a=ge){let i=oe(o,s,a);return c?te(i,se(c,s,a),n):i==null?"":String(i)},pointer:(o,c=ge)=>Y(o.path,c),write:(o,c,a=ge)=>e.setValue(Y(o.path,a),c),context:(o,c=ge)=>Ee(o,s,c),visible:(o,c=ge)=>o.visible===void 0||oe(o.visible,s,c)!==!1};return e}function Io(t,r){let s={"data-pxd-id":t.id,"data-pxd-component":t.component},l=t.accessibility;return l?{...s,"aria-label":l.label!==void 0?r(l.label):void 0,"aria-description":l.description!==void 0?r(l.description):void 0,"aria-live":l.live,"aria-hidden":l.hidden||void 0}:s}var hn="http://www.w3.org/2000/svg",hi=new Set(["svg","path","circle","rect","line","polyline","polygon","g","text"]),bn=new Set(["value","checked","selected","indeterminate","textContent"]),vn=new Set(["list","form","type","autocomplete","for","role","tabindex","lang","dir","translate","spellcheck","autocapitalize","autocorrect","inputmode","enterkeyhint","colspan","rowspan","scope","title","width","height","size","min","max","step","pattern","placeholder","maxlength","minlength","accept","alt","src","href","rel","poster","controls","name","contenteditable","draggable","autofocus"]);function p(t,r,...s){let l=r??{};return{tag:t,props:l,children:s,key:l.key}}var ot=(t,r)=>({dom:t,key:r}),Ze=t=>!!t&&typeof t=="object"&&"dom"in t;function Ar(t,r=[]){for(let s of t)s==null||s===!1||(Array.isArray(s)?Ar(s,r):typeof s=="number"?r.push(String(s)):r.push(s));return r}function wn(t,r,s){if(typeof r=="string"){t.style.cssText=r;return}let l=r??{},n=typeof s=="object"&&s||{};for(let d of Object.keys(n))d in l||(d.startsWith("--")?t.style.removeProperty(d):t.style[d]="");for(let[d,e]of Object.entries(l))e==null?d.startsWith("--")?t.style.removeProperty(d):t.style[d]="":d.startsWith("--")?t.style.setProperty(d,String(e)):t.style[d]=typeof e=="number"&&!/^(opacity|zIndex|flex|lineHeight|fontWeight|order)$/.test(d)?`${e}px`:String(e)}function Co(t,r,s,l,n){if(r==="key"||r==="children")return;if(r==="ref"){t.__ref=s;return}if(r.startsWith("on")&&(typeof s=="function"||s===void 0)){let e=r.slice(2).toLowerCase(),o=t.__on??={};s&&!o[e]&&t.addEventListener(e,c=>t.__on?.[e]?.(c)),s?o[e]=s:delete o[e];return}if(r==="style")return wn(t,s,l);if(r==="class"||r==="className"){let e=s==null||s===!1?"":String(s);n?e?t.setAttribute("class",e):t.removeAttribute("class"):t.className!==e&&(t.className=e);return}let d=r.toLowerCase();if(!n&&bn.has(r)){let e=s??(typeof t[r]=="boolean"?!1:"");t[r]!==e&&(t[r]=e);return}if(!n&&!r.includes("-")&&!vn.has(d)&&r in t&&typeof t[r]!="function"&&typeof t[r]=="boolean"){t[r]=!!s;return}s==null||s===!1&&!r.startsWith("aria-")?t.removeAttribute(d==="classname"?"class":r):t.setAttribute(r,s===!0?r.startsWith("aria-")||r==="draggable"||r==="contenteditable"?"true":"":String(s))}function bi(t,r){if(typeof t=="string"){let n=document.createTextNode(t);return n.__vnode=t,n}if(Ze(t))return t.dom.__vnode=t,t.dom;let s=r||hi.has(t.tag),l=s?document.createElementNS(hn,t.tag):document.createElement(t.tag);for(let[n,d]of Object.entries(t.props))Co(l,n,d,void 0,s);for(let n of Ar(t.children))l.appendChild(bi(n,s));return l.__vnode=t,l}function vi(t){let r=t;if(r.nodeType===1){r.__ref?.(r);for(let s of Array.from(r.childNodes))(!s.__vnode||!Ze(s.__vnode))&&vi(s)}}function qo(t){let r=t;if(r.nodeType===1&&!Ze(r.__vnode)){r.__ref?.(null);for(let s of Array.from(r.childNodes))qo(s)}}var or=t=>t&&typeof t=="object"?t.key:void 0,yi=(t,r)=>t!==void 0&&typeof t==typeof r&&(typeof t=="string"||(Ze(t)?Ze(r)&&t.dom===r.dom:!Ze(r)&&t.tag===r.tag&&or(t)===or(r)));function kn(t,r,s){let l=t,n=l.__vnode;if(typeof r=="string"){t.textContent!==r&&(t.textContent=r),l.__vnode=r;return}if(Ze(r))return;let d=n?.props??{},e=s||hi.has(r.tag);for(let o of Object.keys(d))o in r.props||Co(l,o,void 0,d[o],e);for(let[o,c]of Object.entries(r.props))(o==="style"||o==="ref"||d[o]!==c)&&Co(l,o,c,d[o],e);l.__vnode=r,wi(l,Ar(r.children),e)}function wi(t,r,s){let l=Array.from(t.childNodes),n=new Map;for(let o of l){let c=or(o.__vnode);c!==void 0&&n.set(c,o)}let d=new Set,e=l[0]??null;for(let o of r){let c=or(o),a;if(c!==void 0?a=n.get(c):e&&!d.has(e)&&or(e.__vnode)===void 0&&yi(e.__vnode,o)&&(a=e),a&&yi(a.__vnode,o))d.add(a),a!==e?t.insertBefore(a,e):e=e.nextSibling??null,kn(a,o,s);else{let i=bi(o,s);t.insertBefore(i,e),vi(i)}}for(let o of l)d.has(o)||(qo(o),o.remove())}function ir(t,r){wi(t,Ar(r),!1)}function Do(t){for(let r of Array.from(t.childNodes))qo(r),r.remove()}var $i=t=>t instanceof HTMLElement&&(t.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName));function Se(t,...r){let{checked:s,onCheckedChange:l,indicator:n,...d}=t,e=s==="indeterminate"?"indeterminate":s?"checked":"unchecked";return p("button",{type:"button",role:"checkbox","aria-checked":s==="indeterminate"?"mixed":s,"data-state":e,value:"on",...d,onClick:()=>l(s==="indeterminate"?!0:!s)},e!=="unchecked"?n:null,...r)}function _e(t,...r){let{value:s,onValueChange:l,orientation:n,...d}=t;return p("div",{role:"radiogroup","aria-orientation":n,dir:"ltr",tabindex:"0",style:{outline:"none"},...d,"data-value":s,onKeydown:c=>{let a=c.currentTarget,i=Array.from(a.querySelectorAll('[role="radio"]:not(:disabled)')),u=i.indexOf(document.activeElement);if(u<0||!i.length)return;let f=c.key==="ArrowDown"||c.key==="ArrowRight",m=c.key==="ArrowUp"||c.key==="ArrowLeft";if(!f&&!m)return;c.preventDefault();let x=i[(u+(f?1:i.length-1))%i.length];x.focus(),x.click()},onFocus:c=>{let a=c.currentTarget;if(c.target!==a)return;let i=Array.from(a.querySelectorAll('[role="radio"]:not(:disabled)'));(i.find(u=>u.getAttribute("aria-checked")==="true")??i[0])?.focus()},onFocusin:c=>c.currentTarget.tabIndex=-1,onFocusout:c=>{let a=c.currentTarget;a.contains(c.relatedTarget)||(a.tabIndex=0)}},...r)}function Ke(t,...r){let{value:s,group:l,first:n,onSelect:d,indicator:e,...o}=t,c=l===s;return p("button",{type:"button",role:"radio","aria-checked":c,"data-state":c?"checked":"unchecked",value:s,tabindex:c||l===""&&n?"0":"-1",...o,onClick:()=>!c&&d()},c?e:null,...r)}function Pi(t){let{checked:r,onCheckedChange:s,...l}=t,n=r?"checked":"unchecked";return p("button",{type:"button",role:"switch","aria-checked":r,"data-state":n,value:"on",...l,onClick:()=>s(!r)},p("span",{"data-state":n,class:"pxd-switch-thumb"}))}var ki=20;function To(t){let{min:r,max:s,step:l}=t,n=s-r||1,d=y=>(y-r)/n*100,e=y=>Math.min(s,Math.max(r,y)),o=y=>e(r+Math.round((y-r)/l)*l),c=(y,h)=>{let b=[...t.values];b[y]=o(h);let w=(t.minStepsBetweenThumbs??0)*l;b.length===2&&(y===0?b[0]=Math.min(b[0],b[1]-w):b[1]=Math.max(b[1],b[0]+w)),t.onValueChange(b)},a=y=>h=>{let b=t.values[y],w=l*10,T=h.key==="ArrowRight"||h.key==="ArrowUp"?b+l:h.key==="ArrowLeft"||h.key==="ArrowDown"?b-l:h.key==="PageUp"?b+w:h.key==="PageDown"?b-w:h.key==="Home"?r:h.key==="End"?s:void 0;T!==void 0&&(h.preventDefault(),c(y,T))},i=y=>{if(y.pointerType==="mouse"&&y.button!==0)return;let h=y.currentTarget,b=h.querySelector(".pxd-slider-track"),w=P=>{let N=b.getBoundingClientRect();return r+Math.min(1,Math.max(0,(P-N.left)/(N.width||1)))*n},T=w(y.clientX),A=0;t.values.forEach((P,N)=>{Math.abs(P-T)<Math.abs(t.values[A]-T)&&(A=N)}),y.preventDefault(),h.querySelectorAll('[role="slider"]')[A]?.focus(),c(A,T);let R=P=>c(A,w(P.clientX)),M=()=>{document.removeEventListener("pointermove",R),document.removeEventListener("pointerup",M)};document.addEventListener("pointermove",R),document.addEventListener("pointerup",M)},u=d(t.values[0]),f=d(t.values[t.values.length-1]),m=t.values.length===1?{left:"0%",right:`${100-f}%`}:{left:`${u}%`,right:`${100-f}%`},x=y=>ki/2-y/50*(ki/2);return p("span",{dir:"ltr","data-orientation":"horizontal",class:"pxd-slider",style:{"--radix-slider-thumb-transform":"translateX(-50%)"},onPointerdown:i},p("span",{"data-orientation":"horizontal",class:"pxd-slider-track"},p("span",{"data-orientation":"horizontal",class:"pxd-slider-range",style:m})),...t.values.map((y,h)=>p("span",{key:h,style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",left:`calc(${d(y)}% + ${x(d(y))}px)`}},p("span",{role:"slider","aria-label":t.thumbs[h]?.["aria-label"],"aria-labelledby":t.thumbs[h]?.["aria-labelledby"],"aria-valuemin":r,"aria-valuenow":y,"aria-valuemax":s,"aria-valuetext":t.thumbs[h]?.["aria-valuetext"],"aria-orientation":"horizontal","data-orientation":"horizontal",tabindex:"0",class:"pxd-slider-thumb",onKeydown:a(h)}))))}function Si(t){let r=s=>{let l=s.currentTarget,n=Array.from(l.querySelectorAll('[role="tab"]')),d=n.indexOf(document.activeElement);if(d<0)return;let e=s.key==="ArrowRight"?(d+1)%n.length:s.key==="ArrowLeft"?(d+n.length-1)%n.length:s.key==="Home"?0:s.key==="End"?n.length-1:-1;e<0||(s.preventDefault(),n[e].focus(),n[e].click())};return p("div",{dir:"ltr","data-orientation":"horizontal",class:t.rootClass,...t.rootProps??{}},p("div",{role:"tablist","aria-orientation":"horizontal",class:t.listClass,tabindex:"-1","data-orientation":"horizontal",style:{outline:"none"},onKeydown:r},...t.tabs.map(s=>{let l=s.key===t.value;return p("button",{key:s.key,type:"button",role:"tab","aria-selected":l,"aria-controls":`${t.id}-content-${s.key}`,"data-state":l?"active":"inactive",id:`${t.id}-trigger-${s.key}`,tabindex:l?"0":"-1","data-orientation":"horizontal",class:t.tabClass,onClick:()=>t.onValueChange(s.key)},...s.label)})),...t.tabs.map(s=>{let l=s.key===t.value;return p("div",{key:s.key,"data-state":l?"active":"inactive","data-orientation":"horizontal",role:"tabpanel","aria-labelledby":`${t.id}-trigger-${s.key}`,id:`${t.id}-content-${s.key}`,tabindex:"0",class:t.panelClass,hidden:!l,style:{animationDuration:"0s"}},l?s.content:null)}))}function ze(t,...r){let s=t.dismissible!==!1;t.ctx.r.modals++;let l=d=>{let e=d;if(e&&!e.open)try{e.showModal()}catch{e.setAttribute("open","")}t.ref?.(e)},n=d=>{d.open&&d.close(),t.onClose()};return[p("div",{key:`${t.id}-overlay`,"data-state":"open",class:t.overlayClass??"pxd-overlay","aria-hidden":"true",style:{pointerEvents:"auto"}}),p("dialog",{key:t.id,role:t.role??"dialog","data-state":"open",class:t.class,tabindex:"-1","data-pxd-modal":"",...t.props??{},ref:l,onCancel:d=>{d.preventDefault(),s&&n(d.currentTarget)},onClick:d=>{let e=d.currentTarget;if(d.target!==e)return;let o=e.getBoundingClientRect();!(d.clientX>=o.left&&d.clientX<=o.right&&d.clientY>=o.top&&d.clientY<=o.bottom)&&s&&n(e)},onClose:()=>t.onClose()},...r)]}var Ce=(t,r,...s)=>p("button",{type:"button",...r,onClick:l=>{let n=l.currentTarget.closest("dialog");n?.open&&n.close(),t()}},...s),qe=()=>({open:!1,x:0,y:0,align:"end"});function it(t,r,s,l,n){let d=(e,o)=>{let c=e.getBoundingClientRect();s({open:!0,x:l==="end"?c.right:c.left,y:c.bottom+4,keyboard:o,align:l})};return{id:`${t}-trigger`,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?`${t}-content`:void 0,"data-state":r.open?"open":"closed",...n,onPointerdown:e=>{e.button!==0||e.ctrlKey||(e.preventDefault(),r.open?s(qe()):d(e.currentTarget,!1))},onKeydown:e=>{(e.key==="Enter"||e.key===" "||e.key==="ArrowDown")&&(e.preventDefault(),d(e.currentTarget,!0))}}}function We(t,r,s,l,n,d){if(!s.open)return;let e=(i=!0)=>{l(qe()),i&&(document.getElementById(`${r}-trigger`)??t.r.root?.querySelector(`[data-pxd-menu-trigger="${r}"]`))?.focus()},o=i=>{let u=i.currentTarget,f=Array.from(u.querySelectorAll('[role="menuitem"]:not([data-disabled])')),m=f.indexOf(document.activeElement);if(i.key==="Escape")return i.preventDefault(),e();if(i.key==="Tab")return e(!1);let x=i.key==="ArrowDown"?(m+1)%f.length:i.key==="ArrowUp"?(m+f.length-1)%f.length:i.key==="Home"?0:i.key==="End"?f.length-1:-1;x>=0&&f.length&&(i.preventDefault(),f[x].focus())},c=null,a=i=>{if(!i){c&&document.removeEventListener("pointerdown",c,!0),c=null;return}let u=i,f=u.getBoundingClientRect(),m=u.parentElement,x=s.align==="end"?Math.max(8,s.x-f.width):Math.min(s.x,window.innerWidth-f.width-8),y=s.y+f.height>window.innerHeight?Math.max(8,s.y-f.height-8):s.y;m.style.transform=`translate(${Math.round(x)}px, ${Math.round(y)}px)`;let h=u.querySelector('[role="menuitem"]:not([data-disabled])');(s.keyboard&&h?h:u).focus({preventScroll:!0}),c=b=>{!u.contains(b.target)&&!b.target.closest?.(`#${CSS.escape(`${r}-trigger`)}`)&&e(!1)},document.addEventListener("pointerdown",c,!0)};t.portal(p("div",{key:`${r}-menu`,"data-radix-popper-content-wrapper":"",style:{position:"fixed",left:"0px",top:"0px",minWidth:"max-content",zIndex:12}},p("div",{role:"menu","aria-orientation":"vertical","data-state":"open",dir:"ltr",id:`${r}-content`,"aria-labelledby":`${r}-trigger`,tabindex:"-1",style:{outline:"none"},...d,ref:a,onKeydown:o},...n.map((i,u)=>i==="separator"?p("div",{key:`sep-${u}`,role:"separator","aria-orientation":"horizontal",class:"pxd-menu-separator"}):p("div",{key:i.key,role:"menuitem",class:i.class,tabindex:"-1","data-orientation":"vertical","aria-disabled":i.disabled||void 0,"data-disabled":i.disabled?"":void 0,...i.props??{},onPointermove:f=>{f.currentTarget.focus()},onFocus:f=>{for(let m of f.currentTarget.parentElement.querySelectorAll("[data-highlighted]"))m.removeAttribute("data-highlighted");f.currentTarget.setAttribute("data-highlighted","")},onBlur:f=>f.currentTarget.removeAttribute("data-highlighted"),onClick:()=>{i.disabled||(e(),i.onSelect())},onKeydown:f=>{(f.key==="Enter"||f.key===" ")&&!i.disabled&&(f.preventDefault(),e(),i.onSelect())}},...i.label)))))}function zi(t,r,s,l,n,d,...e){let o=null,c=null,a=i=>{if(!i){o&&document.removeEventListener("pointerdown",o,!0),c&&document.removeEventListener("keydown",c),o=c=null;return}let u=i,f=u.parentElement,m=t.r.root?.querySelector(s),x=m?.getBoundingClientRect()??{left:8,bottom:8,width:0},y=u.getBoundingClientRect(),h=Math.max(8,Math.min(x.left+x.width/2-y.width/2,window.innerWidth-y.width-8)),b=x.bottom+8+y.height>window.innerHeight?Math.max(8,(m?.getBoundingClientRect().top??0)-8-y.height):x.bottom+8;f.style.transform=`translate(${Math.round(h)}px, ${Math.round(b)}px)`,(u.querySelector("button, [href], input, select, textarea, [tabindex]:not([tabindex='-1'])")??u).focus({preventScroll:!0}),n&&(o=w=>{u.contains(w.target)||l()},c=w=>w.key==="Escape"&&l(),document.addEventListener("pointerdown",o,!0),document.addEventListener("keydown",c))};t.portal(p("div",{key:`${r}-popover`,"data-radix-popper-content-wrapper":"",style:{position:"fixed",left:"0px",top:"0px",minWidth:"max-content",zIndex:12}},p("div",{"data-side":"bottom","data-align":"center","data-state":"open",role:"dialog",id:`${r}-content`,tabindex:"-1",...d,ref:a},...e)))}var De=(t,r)=>(r??[]).map(s=>t.render(s));function Te(t,r,...s){return p(`h${Math.min(t.heading,6)}`,{class:r},...s)}function Ai(t,r){let s=r.b,l=r.id(t,"heading");return p("section",{class:"pxd-section","aria-labelledby":l,...r.a11y(t)},p("div",{class:"pxd-section-header"},p(`h${Math.min(r.heading,6)}`,{id:l,class:"pxd-section-title"},s.text(t.title)),t.description!==void 0&&p("p",{class:"pxd-section-description"},s.text(t.description))),p("div",{class:"pxd-stack"},...De(r.with({heading:r.heading+1}),t.children)))}function Ii(t,r){let s=(t.children??[]).map(e=>r.r.byId.get(e)),l=s.length>1&&s.every(e=>e?.component==="Metric"),n=t.arrangement??"auto";return p("div",{class:`pxd-group pxd-stack${n==="inline"?" pxd-group-inline":n==="grid"?" pxd-group-grid":l?" pxd-metric-row":""}`,...r.a11y(t)},...De(r,t.children))}function Ci(t,r){return p("div",{class:`pxd-columns pxd-columns-${t.layout??"two-thirds"} pxd-columns-collapse-${t.collapse??"compact"} pxd-columns-align-${t.align??"stretch"}`,...r.a11y(t)},...De(r,t.children))}function qi(t,r){let s=r.b,l=s.text(t.title),n=t.badge?.tone??"neutral";return p("article",{class:`pxd-card${t.action?" pxd-card-actionable":""}`,...r.a11y(t)},t.media&&p("div",{class:"pxd-card-media"},r.render(t.media)),p("div",{class:"pxd-card-body"},p("div",{class:"pxd-card-header"},Te(r,"pxd-card-title",t.action?p("button",{type:"button",class:"pxd-card-link",onClick:()=>r.r.dispatch(t.action,s.scope,t.id)},l):l),t.badge&&p("span",{class:`pxd-badge pxd-tone-${n}`},s.text(t.badge.text))),t.subtitle!==void 0&&p("p",{class:"pxd-card-subtitle"},s.text(t.subtitle)),t.progress&&$n(s.value(t.progress.value),t.progress.label!==void 0&&s.text(t.progress.label)||void 0,l,r.r.locale),t.children&&p("div",{class:"pxd-stack pxd-stack-tight pxd-card-children"},...De(r,t.children))))}function $n(t,r,s,l){let n=Math.max(0,Math.min(1,Number(t)||0)),d=_r(n,l);return p("div",{class:"pxd-progress"},p("div",{class:"pxd-progress-track",role:"progressbar","aria-label":`Progress: ${s}`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(n*100),"aria-valuetext":r??d},p("div",{class:"pxd-progress-fill",style:{width:`${n*100}%`}})),p("span",{class:"pxd-progress-label"},r??d))}function Di(t,r){let s=r.b,[l,n]=r.state(t,"open",()=>t.open??r.r.disclosure==="show-everything"),d=r.id(t,"content"),e=l?"open":"closed";return p("div",{"data-state":e,class:"pxd-disclosure",...r.a11y(t)},p("button",{type:"button","aria-controls":l?d:void 0,"aria-expanded":l,"data-state":e,class:"pxd-disclosure-trigger",onClick:()=>n(!l)},p("span",{class:"pxd-disclosure-icon","aria-hidden":"true"},l?"\u25BE":"\u25B8"),s.text(t.summary)),p("div",{"data-state":e,id:d,hidden:!l,class:"pxd-disclosure-content"},l?p("div",{class:"pxd-stack"},...De(r,t.children)):null))}function Ti(t,r){let s=r.b,l=t.selected?s.value(t.selected):void 0,[n,d]=r.state(t,"view",void 0),e=Qr(t.views,l,n),o=c=>t.selected?s.write(t.selected,c):d(c);return Si({id:r.id(t),value:e,onValueChange:o,rootClass:`pxd-views pxd-views-${t.variant??"tabs"}`,rootProps:r.a11y(t),listClass:"pxd-views-list",tabClass:"pxd-views-tab",panelClass:"pxd-views-panel",tabs:t.views.map(c=>{let a=c.count!==void 0?s.value(c.count):void 0;return{key:c.key,label:[s.text(c.label),a!==void 0&&p("span",{class:"pxd-views-count"},Xe(a,r.r.locale))],content:r.render(c.content)}})})}function xe(t,{value:r,name:s,size:l=40}){let n=typeof r=="string"?r:"",d=Za(n)?t.r.props.resolveMedia?.(n):void 0,e=Va(n,s),o=La(s);return d?p("img",{class:"pxd-avatar",src:d,alt:"",width:l,height:l,style:{width:l,height:l}}):p("span",{class:`pxd-avatar pxd-avatar-${o}`,"aria-hidden":"true",style:{width:l,height:l,fontSize:Math.round(l*.38)}},e)}function V(t,r=20){return p("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},p("path",{d:Ka(t)}))}function Ni(t,r){let s=r.b,[l,n]=r.state(t,"split",()=>ra(t.ratio)),[d,e]=r.state(t,"previous",()=>s.value(t.selected)),o=s.value(t.selected),{has:c,scope:a,name:i}=oa(t,r.r.byId,r.r.data,s.scope),u=w=>n(T=>yr(T,w)),f=!1;o!==d&&(e(o),l.listShown&&u({type:"selected"}),f=l.compact&&c);let{showList:m,showDetail:x}=aa(l,c),y=w=>{if(w.pointerType==="mouse"&&w.button!==0)return;let T=w.currentTarget,A=T.parentElement;T.setPointerCapture(w.pointerId);let R=A.getBoundingClientRect(),M=getComputedStyle(A).direction==="rtl",P=E=>{let $=M?R.right-E.clientX:E.clientX-R.left;u({type:"share",value:$/R.width*100})},N=()=>{A.removeEventListener("pointermove",P),A.removeEventListener("pointerup",N),A.removeEventListener("pointercancel",N)};A.addEventListener("pointermove",P),A.addEventListener("pointerup",N),A.addEventListener("pointercancel",N)},h=!!t.resizable&&!l.compact,b=w=>{if(!w)return;let T=w.closest(".pxd-surface")??w;r.r.observeWidth(T,`${t.id}:split`,A=>u({type:"measure",width:A}))};return f&&r.after(()=>r.r.root?.querySelector(`[data-pxd-id="${t.id}"] > .pxd-split-detail`)?.focus()),p("div",{class:`pxd-split pxd-split-${t.ratio??"narrow"}${l.compact?" pxd-split-compact":""}${h?" pxd-split-resizable":""}`,style:h?{"--polyxd-split-share":`${l.share}%`}:void 0,...r.a11y(t),ref:b},p("div",{class:"pxd-split-primary",hidden:!m},r.render(t.primary)),h&&p("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize the list","aria-valuenow":Math.round(l.share),"aria-valuemin":tr,"aria-valuemax":rr,tabindex:"0",class:"pxd-split-handle",onKeydown:w=>{let T=yr(l,{type:"key",key:w.key,shift:w.shiftKey});T!==l&&(w.preventDefault(),n(T))},onPointerdown:y},p("span",{class:"pxd-split-handle-line","aria-hidden":"true"})),x&&p("div",{class:"pxd-split-detail",tabindex:"-1","aria-label":i},l.compact&&p("button",{type:"button",class:"pxd-button pxd-button-tertiary pxd-split-back",onClick:()=>u({type:"back"})},V("chevronLeft",18),"Back"),c?r.render(t.detail,a):t.empty?r.render(t.empty):null),p("span",{class:"pxd-sr-only","aria-live":"polite"},l.compact&&c&&!l.listShown?i:""))}function No(t){return"block"in t?p("span",{class:`pxd-skeleton-block pxd-skeleton-${t.block}${t.size?` pxd-skeleton-${t.size}`:""}`}):p("div",{class:na[t.group]},...t.parts.map(No))}function sr({title:t,pattern:r,shape:s,theme:l,mode:n,density:d,locale:e="en-GB",className:o}){let c=ia(r,s);return p("div",{class:["pxd-surface","pxd-skeleton",`pxd-skeleton-${c}`,o].filter(Boolean).join(" "),"data-pxd-theme":l,"data-pxd-mode":n,"data-pxd-density":d,lang:e,role:"status","aria-busy":"true"},p("span",{class:"pxd-sr-only"},da(t)),p("div",{class:"pxd-skeleton-body","aria-hidden":"true"},No({block:"title",size:c==="dialog"?"short":"medium"}),...sa[c].map(No)))}function ji(t,r){let s=r.r,l=r.id(t,"main"),[n,d]=r.state(t,"width","wide"),[e,o]=r.state(t,"drawer",!1),c=t.navigation?s.byId.get(t.navigation):void 0,a=$a(c?.placement,n,c?.items?.length??0),i=y=>String(oe(y,s.data,ge)??"");a!=="drawer"&&e&&o(!1);let u={navigation:a,compact:n==="compact",mainId:l,navigationId:c?.id,navigationLabel:c?c.label!==void 0?i(c.label):"Main":void 0,current:s.props.current,drawerOpen:e,setDrawerOpen:o},f=r.with({frame:u}),m=t.header?s.byId.get(t.header):void 0,x=t.aside?s.byId.get(t.aside):void 0;return p("div",{class:`pxd-frame pxd-frame-width-${t.width??"contained"}`,"data-pxd-layout":n,"data-pxd-nav":a,"data-pxd-appbar":m?.component==="AppBar"&&m.sticky!==!1?m.variant??"standard":void 0,...r.a11y(t),ref:y=>y&&s.observeWidth(y,`${t.id}:frame`,h=>d(ka(h)))},t.skipTarget!==!1&&p("a",{class:"pxd-skip-link",href:`#${l}`,onClick:y=>{y.preventDefault(),document.getElementById(l)?.focus()}},"Skip to main content"),t.banner&&p("div",{class:"pxd-frame-banner"},f.render(t.banner)),t.header&&f.render(t.header),p("div",{class:"pxd-frame-body"},c&&p("div",{class:"pxd-frame-nav"},f.render(c.id)),p("div",{class:"pxd-frame-main"},f.render(t.main)),x&&p("aside",{class:"pxd-frame-aside","aria-label":x.title!==void 0?i(x.title):"Aside"},f.render(x.id))),t.footer&&f.render(t.footer))}function Pn(t,r,s){let l=typeof r=="string"?r:"",n=l.length>3?t.r.props.resolveMedia?.(l):void 0;if(n)return p("img",{class:"pxd-appbar-logo",src:n,alt:""});let d=(l&&l.length<=3?l:s.split(/\s+/).map(e=>e[0]).join("").slice(0,2)).toUpperCase();return p("span",{class:"pxd-appbar-mark","aria-hidden":"true"},d)}function Ei(t,r){let s=r.b,l=r.frame,[n,d]=r.state(t,"scrolled",!1),[e,o]=r.state(t,"search",!1),c=t.variant??"standard",a=t.sticky!==!1,i=l?.compact??!1,u=s.text(t.title),f=Pa(u,i,l?.current?.title),m=l?.navigation==="drawer",x=new WeakMap,y=b=>{if(!b||!a||typeof IntersectionObserver>"u"||x.has(b))return;let w=new IntersectionObserver(([T])=>d(!T.isIntersecting));w.observe(b),x.set(b,w)},h=b=>p("div",{class:`pxd-appbar-search${b?" pxd-appbar-search-row":""}`,role:"search","aria-label":"Search",ref:b?w=>w&&e&&!w.dataset.focused&&(w.dataset.focused="1",w.querySelector("input, button")?.focus()):void 0},r.render(t.search));return[p("div",{class:"pxd-appbar-sentinel","aria-hidden":"true",ref:y}),p("header",{class:`pxd-appbar pxd-appbar-${c}${a?" pxd-appbar-sticky":""}`,"data-pxd-scrolled":n||void 0,...r.a11y(t)},p("div",{class:"pxd-appbar-row"},m?p("button",{type:"button",class:"pxd-icon-button pxd-appbar-menu","aria-label":`${l.navigationLabel??"Main"} menu`,"aria-expanded":l.drawerOpen,onClick:()=>l.setDrawerOpen(!0)},V("menu")):t.leading&&p("div",{class:"pxd-appbar-leading"},r.render(t.leading)),p("div",{class:"pxd-appbar-brand"},t.brand!==void 0&&Pn(r,s.value(t.brand),u),(c!=="large"||i)&&p("span",{class:"pxd-appbar-title"},f)),t.search&&(i?p("button",{type:"button",class:"pxd-icon-button pxd-appbar-search-toggle","aria-label":e?"Close search":"Search","aria-expanded":e,onClick:()=>o(!e)},V(e?"close":"search")):h(!1)),(t.actions||t.account)&&p("div",{class:"pxd-appbar-end"},t.actions&&p("div",{class:"pxd-appbar-actions"},r.render(t.actions)),t.account&&p("div",{class:"pxd-appbar-account"},r.render(t.account)))),t.search&&i&&e&&h(!0),c==="large"&&!i&&p("div",{class:"pxd-appbar-headline"},f))]}function Ri(t,r){let s=r.b,l=Math.min(r.heading,6),n=t.groups??[];return p("footer",{class:"pxd-footer",...r.a11y(t)},n.length>0&&p("div",{class:"pxd-footer-groups"},...n.map(d=>{let e=r.id(t,d.key);return p("nav",{key:d.key,class:"pxd-footer-group","aria-labelledby":e},p(`h${l}`,{id:e,class:"pxd-footer-heading"},s.text(d.label)),p("ul",null,...d.items.map(o=>p("li",{key:o.key},p("button",{type:"button",class:"pxd-link pxd-footer-link",onClick:()=>r.r.dispatch(o.action,s.scope,t.id)},s.text(o.label))))))})),p("div",{class:"pxd-footer-legal"},p("p",{class:"pxd-footer-legal-text"},s.text(t.legal)),t.aside&&p("div",{class:"pxd-footer-aside"},r.render(t.aside))))}function Bi(t,r){let s=r.b,l=r.r,n=r.frame,d=!!l.props.loading,e=`${l.props.current?.key??""}\0${l.props.current?.title??""}`,[o,c]=r.state(t,"shown",e);o!==e&&(c(e),d||r.after(()=>{let i=document.getElementById(n?.mainId??"");if(!i)return;let u=i.querySelector("h1");u&&!u.hasAttribute("tabindex")&&(u.tabIndex=-1),(u??i).focus()}));let a=l.props.outlet;return p("main",{id:n?.mainId,class:"pxd-outlet",tabindex:"-1","aria-label":t.label!==void 0?s.text(t.label):void 0,...r.a11y(t)},d?t.loading?r.render(t.loading):sr({title:l.props.current?.title,className:"pxd-outlet-skeleton"}):a?ot(a,"outlet"):null)}var Mi=new Set;function _i(t,r){let s=r.b,l=r.r.components[t.name];if(!l)return Mi.has(t.name)||(Mi.add(t.name),console.warn(`[polyxd] No host component named "${t.name}"; rendering its fallback. Pass one in the surface's components.`)),t.fallback?r.render(t.fallback):null;let n=er(t.props??{},r.r.data,s.scope)??{},d=l({...n,node:t}),e=d instanceof Element?ot(d,t.id):d;return t.label===void 0?e:p("div",{class:"pxd-custom",role:"group","aria-label":s.text(t.label),...r.a11y(t)},e)}function Hi(t,r){let s=r.b,l=r.r,[n,d]=r.state(t,"compact",!1),e=Y(t.rows.path,s.scope),o=pe(X(l.data,e)),c=s.text(t.caption),a=!!t.detail&&t.expandable!==!1,[i,u]=r.state(t,"expanded",()=>[]),f=C=>i.includes(C),m=C=>u(U=>br(U,C)),x=(C,U)=>p("button",{type:"button",class:"pxd-icon-button pxd-table-expander","aria-expanded":f(C),"aria-label":`${f(C)?"Hide":"Show"} details for ${U}`,onClick:()=>m(C)},V(f(C)?"sortUp":"sortDown",16)),y=t.selection==="multiple",h=y&&t.selected?s.value(t.selected)??[]:[],b=(C,U)=>ca(t,o,U,l.data,C),w=C=>s.write(t.selected,br(h,C)),T=o.map((C,U)=>b({pointer:ie(e,U)},U)),A=o.length>0&&T.every(C=>h.includes(C)),R=()=>s.write(t.selected,A?[]:T),M=t.sort?.column?s.value(t.sort.column):void 0,P=t.sort?.direction?s.value(t.sort.direction):"ascending",N=C=>{let U=ua(C,M,P);t.sort?.column&&s.write(t.sort.column,C),t.sort?.direction&&s.write(t.sort.direction,U),t.sort?.action&&l.dispatch(t.sort.action,s.scope,t.id)},E=C=>p("span",{"data-state":"checked",style:{pointerEvents:"none"}},C),$=(C,U)=>{let B=X(l.data,Y(C.path,U)),L=te(B,se(C.format,l.data,s.scope),l.locale);if(C.kind==="status")return p("span",{class:`pxd-badge pxd-tone-${C.tones?.[String(B)]??"neutral"}`},L);if(C.format?.type==="color")return p("span",{class:"pxd-color-value"},p("span",{class:`pxd-swatch${Oe(L)?"":" pxd-swatch-unknown"}`,style:Oe(L)?{background:Oe(L)}:void 0,"aria-hidden":"true"}),L);if(C.kind==="entity"){let W=C.secondaryPath?String(X(l.data,Y(C.secondaryPath,U))??""):"";return p("span",{class:"pxd-entity"},C.avatarPath&&xe(r,{value:X(l.data,Y(C.avatarPath,U)),name:L,size:28}),p("span",{class:"pxd-entity-text"},t.rowAction?p("button",{type:"button",class:"pxd-link",onClick:()=>l.dispatch(t.rowAction,U,t.id)},L):p("span",{class:"pxd-entity-name"},L),W&&p("span",{class:"pxd-entity-secondary"},W)))}return C.kind==="link"&&t.rowAction?p("button",{type:"button",class:"pxd-link",onClick:()=>l.dispatch(t.rowAction,U,t.id)},L):L},k=(C,U,B)=>{let W=(l.byId.get(t.rowActions)?.children??[]).map(_=>l.byId.get(_)).filter(_=>!!_&&(_.visible===void 0||oe(_.visible,l.data,C)!==!1));if(!W.length)return null;let H=r.id(t,`row-${B}-menu`),[G,O]=r.state(t,`menu:${B}`,qe);return We(r,H,G,O,W.map(_=>({key:_.id,label:[s.text(_.label)],class:`pxd-menu-item${_.tone==="danger"?" pxd-menu-item-danger":""}`,onSelect:()=>l.dispatch(_.action,C,_.id)})),{class:"pxd-menu"}),p("button",{type:"button",...it(H,G,O,"end",{class:"pxd-icon-button","aria-label":`Actions for ${U}`})},V("dots",18))},v=[t.views&&Sn(t,r),(t.search||t.toolbar||y&&h.length>0)&&p("div",{class:`pxd-table-toolbar${h.length>0?" pxd-table-bulk":""}`,role:"toolbar","aria-label":h.length>0?`Actions for ${h.length} selected`:"Table tools"},...h.length>0?[p("p",{class:"pxd-bulk-count","aria-live":"polite"},`${h.length} selected`),t.bulkActions&&r.render(t.bulkActions),p("button",{type:"button",class:"pxd-button pxd-button-tertiary",onClick:()=>s.write(t.selected,[])},"Cancel")]:[t.search&&r.render(t.search),p("span",{class:"pxd-table-toolbar-spacer"}),t.toolbar&&r.render(t.toolbar)])],S=()=>p("ul",{class:"pxd-row-list","aria-label":c},...o.map((C,U)=>{let B={pointer:ie(e,U)},{first:L,status:W,details:H}=la(t.columns),G=te(X(l.data,Y(L.path,B)),se(L.format,l.data,s.scope),l.locale),O=b(B,U);return p("li",{key:String(O),class:"pxd-row-item"},y&&t.selected&&Se({class:"pxd-checkbox",checked:h.includes(O),onCheckedChange:()=>w(O),"aria-label":`Select ${G}`,indicator:E(V("check",14))}),a&&x(O,G),p("div",{class:"pxd-row-main"},p("div",{class:"pxd-row-title"},$(L,B)),p("p",{class:"pxd-row-details"},...H.map((_,J)=>p("span",{key:_.key},J>0&&p("span",{"aria-hidden":"true"}," \xB7 "),p("span",{class:"pxd-sr-only"},`${s.text(_.label)}: `),te(X(l.data,Y(_.path,B)),se(_.format,l.data,s.scope),l.locale))))),W&&$(W,B),t.rowActions?k(B,G,U):t.rowAction&&!t.columns[0].kind?p("button",{type:"button",class:"pxd-button pxd-button-tertiary",onClick:()=>l.dispatch(t.rowAction,B,t.id)},"Select",p("span",{class:"pxd-sr-only"},` ${G}`)):null,a&&f(O)&&p("div",{class:"pxd-row-detail"},r.render(t.detail,B)))})),I=()=>p("div",{class:"pxd-table-scroll"},p("table",{class:"pxd-table"},p("caption",{class:t.views||t.search?"pxd-sr-only":void 0},c),p("thead",null,p("tr",null,a&&p("th",{scope:"col",class:"pxd-table-expand"},p("span",{class:"pxd-sr-only"},"Details")),y&&t.selected&&p("th",{scope:"col",class:"pxd-table-select"},Se({class:"pxd-checkbox",checked:A?!0:h.length>0?"indeterminate":!1,onCheckedChange:R,"aria-label":"Select all rows",indicator:p("span",{"data-state":A?"checked":"indeterminate",style:{pointerEvents:"none"}},V(A?"check":"dash",14))})),...t.columns.map(C=>{let U=C.key===M;return p("th",{key:C.key,scope:"col",class:hr(C)?"pxd-num":void 0,"aria-sort":C.sortable?U?P:"none":void 0},C.sortable?p("button",{type:"button",class:"pxd-sort",onClick:()=>N(C.key)},s.text(C.label),V(U?P==="descending"?"sortDown":"sortUp":"sort",16)):s.text(C.label))}),(t.rowActions||t.rowAction)&&p("th",{scope:"col"},p("span",{class:"pxd-sr-only"},"Actions")))),p("tbody",null,...o.flatMap((C,U)=>{let B={pointer:ie(e,U)},L=b(B,U),W=te(X(l.data,Y(t.columns[0].path,B)),se(t.columns[0].format,l.data,s.scope),l.locale);return[p("tr",{key:String(L),class:h.includes(L)?"pxd-row-selected":void 0,"aria-selected":y?h.includes(L):void 0},a&&p("td",{class:"pxd-table-expand"},x(L,W)),y&&t.selected&&p("td",{class:"pxd-table-select"},Se({class:"pxd-checkbox",checked:h.includes(L),onCheckedChange:()=>w(L),"aria-label":`Select ${W}`,indicator:E(V("check",14))})),...t.columns.map((H,G)=>p(G===0?"th":"td",{key:H.key,scope:G===0?"row":void 0,"data-label":s.text(H.label),class:hr(H)?"pxd-num":void 0},$(H,B))),(t.rowActions||t.rowAction)&&p("td",{class:"pxd-table-action"},t.rowActions?k(B,W,U):p("button",{type:"button",class:"pxd-button pxd-button-tertiary",onClick:()=>l.dispatch(t.rowAction,B,t.id)},"Select",p("span",{class:"pxd-sr-only"},` ${W}`)))),a&&f(L)&&p("tr",{key:`${String(L)}-detail`,class:"pxd-table-detail"},p("td",{colspan:fa(t,a,!!(y&&t.selected))},r.render(t.detail,B)))]})))),j=!o.length&&t.empty?r.render(t.empty):n?S():I();return p("div",{class:"pxd-table-wrap",...r.a11y(t),ref:C=>C&&l.observeWidth(C,`${t.id}:table`,U=>d(U<pa))},...v,j,t.page&&Mo(t,r,o.length))}function Sn(t,r){let s=r.b,l=t.view?s.value(t.view):t.views[0].key;return p("div",{class:"pxd-table-views",role:"tablist","aria-label":"Saved views"},...t.views.map(n=>{let d=n.count!==void 0?s.value(n.count):void 0,e=n.key===l;return p("button",{key:n.key,type:"button",role:"tab","aria-selected":e,class:`pxd-table-view${e?" pxd-table-view-current":""}`,onClick:()=>{t.view&&s.write(t.view,n.key),r.r.dispatch(n.action,s.scope,t.id)}},s.text(n.label),d!==void 0&&p("span",{class:"pxd-views-count"},Xe(d,r.r.locale)))}))}function Mo(t,r,s){let l=r.b,n=t.page,{index:d,size:e,total:o,pages:c,from:a,to:i,sizes:u}=ma(n.index?l.value(n.index):void 0,n.size?l.value(n.size):void 0,n.total?l.value(n.total):void 0,s),f=x=>Xe(x,r.r.locale),m=x=>{n.index&&l.write(n.index,x),r.r.dispatch(n.action,l.scope,t.id)};return p("div",{class:"pxd-paging"},n.size&&p("label",{class:"pxd-paging-size"},"Rows per page",p("select",{value:String(e),onChange:x=>{l.write(n.size,Number(x.target.value)),n.index&&l.write(n.index,1),r.r.dispatch(n.action,l.scope,t.id)}},...u.map(x=>p("option",{key:x,value:String(x),selected:x===e},String(x))))),p("p",{class:"pxd-paging-range","aria-live":"polite"},`${f(a)}\u2013${f(i)} of ${f(o)}`),p("div",{class:"pxd-paging-controls"},p("button",{type:"button",class:"pxd-icon-button","aria-label":"Previous page",disabled:d<=1,onClick:()=>m(d-1)},V("chevronLeft",18)),p("span",{class:"pxd-paging-page"},`Page ${f(d)} of ${f(c)}`),p("button",{type:"button",class:"pxd-icon-button","aria-label":"Next page",disabled:d>=c,onClick:()=>m(d+1)},V("chevronRight",18))))}function Ui(t){let r=Oe(t);return p("span",{class:`pxd-swatch${r?"":" pxd-swatch-unknown"}`,style:r?{background:r}:void 0,"aria-hidden":"true"})}function nr(t){return t.map(r=>typeof r=="string"?r:r.kind==="code"?p("code",null,r.text):r.kind==="strong"?p("strong",null,...nr(r.children)):r.kind==="em"?p("em",null,...nr(r.children)):r.kind!=="link"?null:r.href?p("a",{href:r.href,rel:"noopener noreferrer"},...nr(r.children)):p("span",null,...nr(r.children)))}function Oi(t,r){let s=r.b,l=r.a11y(t),n=t.variant??"body",d=t.format?.type==="color",e=(o,c=t.format)=>{let a=s.text(o,c);return c?.type==="color"?[Ui(a),a]:[a]};if(n==="rich")return p("p",{class:"pxd-text pxd-text-body pxd-text-rich",...l},...nr(et(s.text(t.text))));if(n==="quote")return p("figure",{class:"pxd-text-quote",...l},p("blockquote",null,p("p",{class:"pxd-text pxd-text-body"},...e(t.text))),t.cite!==void 0&&p("figcaption",{class:"pxd-text-cite"},s.text(t.cite)));if(n==="list"){let o=t.items?Y(t.items.path,s.scope):void 0,c=o?pe(X(r.r.data,o)):[],a=s.text(t.text);return p("div",{class:"pxd-text-list",...l},a&&p("p",{class:"pxd-text pxd-text-body"},a),p(t.ordered?"ol":"ul",{class:`pxd-text-list-items${t.ordered?" pxd-text-list-ordered":""}`},...c.map((i,u)=>{let f=t.itemPath&&o?X(r.r.data,Y(t.itemPath,{pointer:ie(o,u)})):i;return p("li",{key:u},...e(f))})))}return p("p",{class:`pxd-text pxd-text-${n}${d?" pxd-text-color":""}`,...l},...e(t.text))}function Li(t,r){let s=r.b,l=s.text(t.label),n=s.text(t.value,t.format),d=t.change?Ra(s.value(t.change.value),t.change.favorable,se(t.change.format,r.r.data,s.scope),r.r.locale):void 0,e=t.caption!==void 0?s.text(t.caption):void 0;return p("div",{class:"pxd-metric",role:"group","aria-label":l,...r.a11y(t)},p("div",{class:"pxd-metric-label"},l),p("div",{class:"pxd-metric-value"},n),d&&p("div",{class:`pxd-metric-change pxd-data-${d.tone}`},p("span",{"aria-hidden":"true"},d.text),p("span",{class:"pxd-sr-only"},d.spoken)),e&&p("div",{class:"pxd-metric-caption"},e))}function Vi(t,r){let s=r.b,l=t.variant==="receipt",n=c=>{let a=s.value(c.value);return l&&c.format?.type==="currency"&&a===0&&!c.total?{text:"Free",free:!0,color:!1}:{text:s.text(c.value,c.format),free:!1,color:c.format?.type==="color"}},d=(c,a)=>t.rowAction?p("button",{type:"button",class:"pxd-link pxd-detail-change",onClick:()=>r.r.dispatch(ya(t.rowAction,c.key??a),s.scope,t.id)},"Change",p("span",{class:"pxd-sr-only"},` ${a}`)):null,e=t.items.filter(c=>!c.total),o=t.items.filter(c=>c.total);return p("div",{class:`pxd-detail-list${l?" pxd-receipt":""}${t.layout==="grid"?" pxd-detail-grid":""}${t.rowAction?" pxd-detail-actions":""}`,...r.a11y(t)},t.title!==void 0&&Te(r,"pxd-detail-title",s.text(t.title)),p("dl",null,...e.map((c,a)=>{let i=n(c),u=s.text(c.label);return p("div",{class:"pxd-detail-row",key:c.key??a},p("dt",null,u),p("dd",{class:i.free?"pxd-free":void 0},i.color&&Ui(i.text),i.text),t.rowAction&&p("dd",{class:"pxd-detail-row-action"},d(c,u)))}),...o.map((c,a)=>p("div",{class:"pxd-detail-row pxd-total",key:c.key??`t${a}`},p("dt",null,s.text(c.label)),p("dd",null,n(c).text),t.rowAction&&p("dd",{class:"pxd-detail-row-action"})))))}function Zi(t,r){let s=r.b,l=r.r,n=r.id(t,"label"),d=Y(t.items.path,s.scope),e=pe(X(l.data,d)),o=t.selection??"none",c=o!=="none"&&t.selected?s.value(t.selected):void 0,a=O=>Array.isArray(c)?c.includes(O):c===O,i=O=>{if(!t.selected)return;if(o==="single")return s.write(t.selected,O);let _=Array.isArray(c)?c:[];s.write(t.selected,_.includes(O)?_.filter(J=>J!==O):[..._,O])},u=Array.isArray(c)?c.length:0,f=s.text(t.label),m=l.byId.get(t.items.componentId),{grid:x,timeline:y,carousel:h,calendar:b}=Ya(t,m),w=t.reorderable===!0,T=w&&t.order?s.value(t.order):void 0,A=e.map((O,_)=>Ga(O,_)),R=Ja(A,T),M=(O,_)=>{let J=t.order?Xa(R,A,O,_):void 0;J&&s.write(t.order,J)},[P,N]=r.state(t,"dragging",null),[E,$]=r.state(t,"position",0),k=()=>l.root?.querySelector(`[data-pxd-id="${CSS.escape(t.id)}"] .pxd-carousel-track`),v=O=>Array.from(O.children),S=O=>{let _=O.currentTarget;$(ro(v(_).map(J=>J.offsetLeft-_.offsetLeft),_.scrollLeft))},I=O=>{let _=k(),J=_&&v(_)[Math.max(0,Math.min(e.length-1,O))];_&&J&&_.scrollTo({left:J.offsetLeft-_.offsetLeft,behavior:"smooth"})},j=b?e.map((O,_)=>Qa(t.datePath?X(l.data,Y(t.datePath,{pointer:ie(d,_)})):void 0)):[],[C,U]=r.state(t,"month",null),B=eo(C,j.find(Boolean));if(!e.length&&t.empty)return r.render(t.empty);let L=(O,_)=>p("input",{type:o==="single"?"radio":"checkbox",class:"pxd-collection-select",name:o==="single"?`${t.id}-selection`:void 0,checked:a(O),onChange:()=>i(O),"aria-label":_}),W=(O,_)=>{let J=A[O],ne={pointer:ie(d,O)};return p("li",{key:String(J),class:`pxd-collection-item${P===_?" pxd-collection-dragging":""}`,draggable:w||void 0,onDragstart:w?()=>N(_):void 0,onDragover:w?we=>we.preventDefault():void 0,onDrop:w?()=>{P!==null&&M(P,_),N(null)}:void 0,onDragend:w?()=>N(null):void 0},w&&p("div",{class:"pxd-collection-reorder"},p("span",{class:"pxd-collection-handle","aria-hidden":"true"},V("menu",16)),p("button",{type:"button",class:"pxd-icon-button pxd-collection-move","aria-label":`Move item ${_+1} up`,disabled:_===0,onClick:()=>M(_,_-1)},V("sortUp",16)),p("button",{type:"button",class:"pxd-icon-button pxd-collection-move","aria-label":`Move item ${_+1} down`,disabled:_===e.length-1,onClick:()=>M(_,_+1)},V("sortDown",16))),o!=="none"&&L(J,`Select item ${_+1} of ${e.length}`),p("div",{class:"pxd-collection-content"},r.render(t.items.componentId,ne)))},H=o==="multiple"&&u>0&&p("div",{class:"pxd-table-toolbar pxd-table-bulk",role:"toolbar","aria-label":`Actions for ${u} selected`},p("p",{class:"pxd-bulk-count","aria-live":"polite"},`${u} selected`),t.bulkActions&&r.render(t.bulkActions),p("button",{type:"button",class:"pxd-button pxd-button-tertiary",onClick:()=>s.write(t.selected,[])},"Cancel")),G;if(h)G=p("div",{class:"pxd-carousel",role:"group","aria-roledescription":"carousel","aria-labelledby":n},p("ul",{class:"pxd-collection-list pxd-carousel-track","aria-labelledby":n,onScroll:S},...R.map((O,_)=>W(O,_))),p("div",{class:"pxd-carousel-controls"},p("button",{type:"button",class:"pxd-icon-button","aria-label":"Previous item",disabled:E<=0,onClick:()=>I(E-1)},V("chevronLeft",18)),p("p",{class:"pxd-carousel-position","aria-live":"polite"},`${E+1} of ${e.length}`),p("button",{type:"button",class:"pxd-icon-button","aria-label":"Next item",disabled:E>=e.length-1,onClick:()=>I(E+1)},V("chevronRight",18))));else if(b){let{monthName:O,weekdays:_,weeks:J}=to(B,l.locale),ne=we=>R.filter(ke=>j[ke]&&j[ke].y===B.y&&j[ke].m===B.m&&j[ke].d===we);G=p("div",{class:"pxd-calendar"},p("div",{class:"pxd-calendar-header"},p("button",{type:"button",class:"pxd-icon-button","aria-label":"Previous month",onClick:()=>U(Pr(B,-1))},V("chevronLeft",18)),p("p",{class:"pxd-calendar-month","aria-live":"polite"},O),p("button",{type:"button",class:"pxd-icon-button","aria-label":"Next month",onClick:()=>U(Pr(B,1))},V("chevronRight",18))),p("table",{class:"pxd-calendar-grid"},p("caption",{class:"pxd-sr-only"},`${f}, ${O}`),p("thead",null,p("tr",null,..._.map(we=>p("th",{key:we,scope:"col"},we)))),p("tbody",null,...J.map((we,ke)=>p("tr",{key:ke},...we.map((be,Ue)=>be===null?p("td",{key:Ue,class:"pxd-calendar-empty"}):p("td",{key:Ue,class:`pxd-calendar-day${ne(be).length?" pxd-calendar-has-items":""}`},p("span",{class:"pxd-calendar-date"},be),ne(be).length>0&&p("ul",{class:"pxd-calendar-items"},...ne(be).map(je=>p("li",{key:String(A[je]),class:"pxd-collection-item"},o!=="none"&&L(A[je],`Select item on ${be}`),p("div",{class:"pxd-collection-content"},r.render(t.items.componentId,{pointer:ie(d,je)}))))))))))))}else G=p("ul",{class:`pxd-collection-list${x?" pxd-collection-grid":""}${y?" pxd-timeline":""}${w?" pxd-collection-reorderable":""}`,"aria-labelledby":n},...R.map((O,_)=>W(O,_)));return p("div",{class:"pxd-collection",...r.a11y(t)},p("div",{class:"pxd-collection-label",id:n},`${f} `,p("span",{class:"pxd-count"},`(${e.length})`)),H,G,t.page&&Mo(t,r,e.length))}function Ki(t,r){let s=r.b,l=r.r,n=r.a11y(t),[d,e]=r.state(t,"open",null),o=t.kind??"image",c=t.src?s.value(t.src):void 0,a=c?l.props.resolveMedia?.(c):void 0,i=t.decorative?"":s.text(t.alt),u=`pxd-media pxd-media-${t.aspect??"auto"}`;if(o==="qr")return An(r,t,s.text(t.value),i,n);if(o==="gallery"){let f=t.items?Y(t.items.path,s.scope):void 0,x=(f?pe(X(l.data,f)):[]).map((h,b)=>{let w={pointer:ie(f,b)},T=t.imagePath?X(l.data,Y(t.imagePath,w)):void 0,A=T?l.props.resolveMedia?.(String(T)):void 0,R=t.altPath?String(X(l.data,Y(t.altPath,w))??""):"";return{src:A,alt:R}}),y=x.filter(h=>!!h.src);return d!==null&&y[d]&&zn(r,t,i,y,d,e),p("ul",{class:"pxd-gallery","aria-label":i||void 0,...n},...x.map((h,b)=>{let w=y.indexOf(h);return p("li",{key:b},w>=0?p("button",{type:"button",class:"pxd-gallery-item","aria-label":h.alt?`Open ${h.alt}`:`Open image ${w+1} of ${y.length}`,onClick:()=>e(w)},p("img",{class:`${u} pxd-gallery-image`,src:h.src,alt:h.alt})):p("div",{class:`${u} pxd-media-placeholder pxd-gallery-image`,role:"img","aria-label":h.alt||void 0}))}))}if(o==="video"||o==="audio"){let f=t.transcript!==void 0?s.text(t.transcript):void 0,m=t.poster!==void 0?s.text(t.poster):void 0,x=m?l.props.resolveMedia?.(m):void 0;return p("figure",{class:`pxd-media-player pxd-media-${o}`,...n},o==="video"?a?p("video",{class:u,controls:!0,src:a,poster:x,"aria-label":i||void 0}):p("div",{class:`${u} pxd-media-placeholder`,role:"img","aria-label":i||void 0}):a?p("audio",{class:"pxd-media-audio-player",controls:!0,src:a,"aria-label":i||void 0}):p("div",{class:"pxd-media-placeholder pxd-media-audio-placeholder",role:"img","aria-label":i||void 0}),i&&p("figcaption",{class:"pxd-media-caption"},i),f&&p("details",{class:"pxd-media-transcript"},p("summary",null,"Transcript"),p("p",{class:"pxd-text pxd-text-body"},f)))}return a?p("img",{class:u,src:a,alt:i,...n}):p("div",{class:`${u} pxd-media-placeholder`,role:t.decorative?"presentation":"img","aria-label":i||void 0})}var Fi=t=>p("svg",{width:20,height:20,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},p("path",{d:t==="left"?"m15 6-6 6 6 6":"m9 6 6 6-6 6"}));function zn(t,r,s,l,n,d){let e=l.length,{src:o,alt:c}=l[n],a=f=>d(Math.max(0,Math.min(e-1,f))),i=t.id(r,"viewer-title"),u=()=>d(null);t.after(()=>{let f=document.activeElement;f?.disabled&&f.classList.contains("pxd-viewer-step")&&((f.nextElementSibling??f.previousElementSibling)?.dispatchEvent(new Event("noop")),(f.nextElementSibling??f.previousElementSibling)?.focus())}),t.portal(ze({ctx:t,id:t.id(r,"viewer"),class:"pxd-viewer",onClose:u,props:{"aria-labelledby":i,onKeydown:f=>f.key==="ArrowLeft"?a(n-1):f.key==="ArrowRight"?a(n+1):void 0}},p("h2",{id:i,class:"pxd-sr-only"},s||"Pictures"),p("div",{class:"pxd-viewer-bar"},p("span",{class:"pxd-viewer-counter","aria-live":"polite"},`${n+1} of ${e}`),Ce(u,{class:"pxd-icon-button pxd-viewer-close","aria-label":"Close"},V("close"))),p("figure",{class:"pxd-viewer-figure"},p("img",{class:"pxd-viewer-image",src:o,alt:c}),c&&p("figcaption",{class:"pxd-viewer-caption"},c)),p("div",{class:"pxd-viewer-bar pxd-viewer-nav"},p("button",{type:"button",class:"pxd-icon-button pxd-viewer-step","aria-label":"Previous picture",disabled:n===0,onClick:()=>a(n-1)},Fi("left")),p("button",{type:"button",class:"pxd-icon-button pxd-viewer-step","aria-label":"Next picture",disabled:n===e-1,onClick:()=>a(n+1)},Fi("right")))))}function An(t,r,s,l,n){let d=s?$o(s):void 0;if(!d)return p("div",{class:"pxd-qr pxd-qr-placeholder",role:"img","aria-label":l||`QR code: ${s}`,...n},p("span",{class:"pxd-qr-mark","aria-hidden":"true"},"QR"),p("span",{class:"pxd-qr-text"},s));let e=o=>{let c=o;if(!c||c.dataset.text===s)return;c.dataset.text=s;let a=4,i=4,u=d.length;c.width=c.height=(u+i*2)*a;let f=c.getContext("2d");if(!f)return;let m=getComputedStyle(c),x=m.getPropertyValue("--pxd-color-text-default").trim()||"#000",y=m.getPropertyValue("--pxd-color-surface-default").trim()||"#fff";f.fillStyle=y,f.fillRect(0,0,c.width,c.height),f.fillStyle=x,d.forEach((h,b)=>h.forEach((w,T)=>w&&f.fillRect((T+i)*a,(b+i)*a,a,a)))};return t.after(()=>e(t.r.root?.querySelector(`canvas[data-pxd-id="${CSS.escape(r.id)}"]`)??null)),p("canvas",{class:"pxd-qr",role:"img","aria-label":l||`QR code: ${s}`,...n,ref:e})}function Wi(t,r){let s=r.b,l=t.kind==="error",n=r.a11y(t);return t.kind==="undo"?p("div",{class:"pxd-snackbar",role:"status",...n},p("p",{class:"pxd-snackbar-text"},s.text(t.title),t.message!==void 0&&p("span",{class:"pxd-snackbar-message"},` ${s.text(t.message)}`)),t.action&&r.render(t.action)):p("div",{class:`pxd-status pxd-status-${t.kind}${t.variant==="inline"?" pxd-status-notice":""}`,role:l?"alert":"status",...n},t.kind==="loading"?p("span",{class:"pxd-spinner","aria-hidden":"true"}):p("span",{class:"pxd-status-icon","aria-hidden":"true"},V(t.icon??Wa[t.kind],t.kind==="empty"?28:16)),p("div",{class:"pxd-status-body"},p("p",{class:"pxd-status-title"},s.text(t.title)),t.message!==void 0&&p("p",{class:"pxd-status-message"},s.text(t.message)),t.action&&t.variant!=="inline"&&p("div",{class:"pxd-status-action"},r.render(t.action))),t.action&&t.variant==="inline"&&p("div",{class:"pxd-status-action"},r.render(t.action)))}var Ir=(t,r,s,l)=>{let{tag:n,attrs:d}=co(t,r,s);return p(n,{...d,fill:l})};function Gi(t,r){let s=r.b,l=r.r,n=r.id(t,"title"),d=r.id(t,"summary"),e=Y(t.data.path,s.scope),o=pe(X(l.data,e)).map((v,S)=>ie(e,S)),c=v=>X(l.data,Y(t.x.path,{pointer:v})),a=(v,S)=>Number(X(l.data,Y(S.path,{pointer:v})))||0,i=t.series,u=r.a11y(t),f=(v,S)=>te(v,se(S,l.data,s.scope),l.locale),m=v=>f(c(v),t.x.format),x=600-le.left-le.right,y=240-le.top-le.bottom,h=()=>p("details",{class:"pxd-chart-data"},p("summary",null,"Show data"),p("table",{class:"pxd-table"},p("thead",null,p("tr",null,p("th",{scope:"col"},s.text(t.x.label)),...i.map((v,S)=>p("th",{scope:"col",key:S,class:"pxd-num"},s.text(v.label))))),p("tbody",null,...o.map(v=>p("tr",{key:v},p("th",{scope:"row"},f(c(v),t.x.format)),...i.map((S,I)=>p("td",{key:I,class:"pxd-num"},f(a(v,S),S.format)))))))),b=(v,S)=>p("figure",{class:"pxd-chart","aria-labelledby":n,"aria-describedby":d,...u},p("figcaption",null,p("span",{class:"pxd-chart-title",id:n},s.text(t.title)),p("span",{class:"pxd-chart-summary",id:d},s.text(t.summary))),v,S,h()),w=i.length>1&&p("ul",{class:"pxd-chart-legend"},...i.map((v,S)=>p("li",{key:S},p("svg",{width:"12",height:"12","aria-hidden":"true"},Ir(rt[S],6,6,ue(S))),s.text(v.label)))),T=(v,S,...I)=>p("svg",{viewBox:v,class:S,"aria-hidden":"true"},...I);if(t.intent==="relationship"){let v=o.map(B=>Number(c(B))||0),S=o.flatMap(B=>i.map(L=>a(B,L))),I=at(Math.max(0,...v)),j=at(Math.max(0,...S)),C=B=>le.left+B/(I||1)*x,U=B=>le.top+y-B/(j||1)*y;return b(T(`0 0 ${600} ${240}`,"pxd-chart-svg",p("g",{class:"pxd-chart-axis"},...[0,.5,1].map(B=>p("g",{key:B},p("line",{x1:le.left,x2:600-le.right,y1:U(j*B),y2:U(j*B),class:"pxd-chart-grid"}),p("text",{x:le.left-8,y:U(j*B)+4,"text-anchor":"end"},f(j*B,{...i[0].format??{type:"number"},precision:0})))),...[0,.5,1].map(B=>p("text",{key:`x${B}`,x:C(I*B),y:230,"text-anchor":B===0?"start":B===1?"end":"middle"},f(I*B,{...t.x.format??{type:"number"},precision:0})))),...i.map((B,L)=>p("g",{key:L},...o.map((W,H)=>Ir(rt[L],C(v[H]),U(a(W,B)),ue(L)))))),w)}if(t.intent==="range"){let S=le.top+o.length*28+24,I=o.map(W=>a(W,i[0])),j=o.map(W=>a(W,i[1]??i[0])),C=Math.min(0,...I),U=at(Math.max(...j,1)),B=120,L=W=>B+(W-C)/(U-C||1)*(600-B-le.right);return b(T(`0 0 ${600} ${S}`,"pxd-chart-svg",p("g",{class:"pxd-chart-axis"},...[0,.5,1].map(W=>{let H=C+(U-C)*W;return p("g",{key:W},p("line",{x1:L(H),x2:L(H),y1:le.top,y2:S-20,class:"pxd-chart-grid"}),p("text",{x:L(H),y:S-4,"text-anchor":"middle"},f(H,{...i[0].format??{type:"number"},precision:0})))})),...o.map((W,H)=>{let G=le.top+H*28;return p("g",{key:W},p("text",{x:B-8,y:G+28/2+4,"text-anchor":"end",class:"pxd-chart-range-label"},Sr(c(W),t.x.format?.type,l.locale)),p("line",{x1:L(I[H]),x2:L(j[H]),y1:G+28/2,y2:G+28/2,stroke:ue(0),"stroke-width":10,"stroke-linecap":"round"}),p("circle",{cx:L(I[H]),cy:G+28/2,r:4,fill:ue(1)}),p("circle",{cx:L(j[H]),cy:G+28/2,r:4,fill:ue(2)}))})),p("ul",{class:"pxd-chart-legend"},p("li",null,p("span",{class:"pxd-chart-swatch",style:{background:ue(1)},"aria-hidden":"true"}),s.text(i[0].label)),i[1]&&p("li",null,p("span",{class:"pxd-chart-swatch",style:{background:ue(2)},"aria-hidden":"true"}),s.text(i[1].label))))}if(t.intent==="matrix"){let v=o.map(I=>i.map(j=>a(I,j))),S=Math.max(1,...v.flat());return b(p("div",{class:"pxd-heatmap-scroll","aria-hidden":"true"},p("table",{class:"pxd-heatmap"},p("thead",null,p("tr",null,p("th",null),...i.map((I,j)=>p("th",{key:j,scope:"col"},s.text(I.label))))),p("tbody",null,...o.map((I,j)=>p("tr",{key:I},p("th",{scope:"row"},m(I)),...i.map((C,U)=>{let B=Math.round(v[j][U]/S*100);return p("td",{key:U,class:`pxd-heatmap-cell${B>=60?" pxd-heatmap-strong":""}`,style:{background:`color-mix(in srgb, var(--pxd-color-data-categorical-1) ${B}%, var(--pxd-color-surface-subtle))`}},f(v[j][U],C.format))})))))))}if(t.intent==="hierarchy"){let v=o.map(I=>Math.max(0,a(I,i[0]))),S=po(v,600,240);return b(T(`0 0 ${600} ${240}`,"pxd-chart-svg pxd-chart-treemap",...S.map((I,j)=>I&&p("g",{key:j},p("rect",{x:I.x+1,y:I.y+1,width:Math.max(I.w-2,0),height:Math.max(I.h-2,0),fill:ue(j),rx:2}),I.w>48&&I.h>24&&p("text",{x:I.x+8,y:I.y+18,class:"pxd-chart-tile-label"},m(o[j]).slice(0,Math.floor(I.w/8)))))),p("ul",{class:"pxd-chart-legend"},...o.map((I,j)=>p("li",{key:I},p("span",{class:"pxd-chart-swatch",style:{background:ue(j)},"aria-hidden":"true"}),`${m(I)}: ${f(v[j],i[0].format)}`))))}if(t.intent==="flow"){let v=o.map(J=>i.map(ne=>Math.max(0,a(J,ne)))),{leftY:S,rightY:I,leftTotals:j,rightTotals:C,scale:U}=uo(v,i.length,240),B=12,L=110,W=L,H=600-L,G=[...S],O=[...I],_=(W+H)/2;return b(T(`0 0 ${600} ${240}`,"pxd-chart-svg pxd-chart-flow",...v.flatMap((J,ne)=>J.map((we,ke)=>{if(we<=0)return null;let be=we*U,Ue=G[ne],je=O[ke];G[ne]+=be,O[ke]+=be;let en=`M${W+B} ${Ue} C${_} ${Ue}, ${_} ${je}, ${H-B} ${je} L${H-B} ${je+be} C${_} ${je+be}, ${_} ${Ue+be}, ${W+B} ${Ue+be} Z`;return p("path",{key:`${ne}-${ke}`,d:en,fill:ue(ke),opacity:.45})})),...o.map((J,ne)=>p("g",{key:J},p("rect",{x:W,y:S[ne],width:B,height:Math.max(j[ne]*U,1),fill:"var(--pxd-color-border-strong)"}),p("text",{x:W-8,y:S[ne]+j[ne]*U/2+4,"text-anchor":"end",class:"pxd-chart-flow-label"},m(J)))),...i.map((J,ne)=>p("g",{key:`s${ne}`},p("rect",{x:H-B,y:I[ne],width:B,height:Math.max(C[ne]*U,1),fill:ue(ne)}),p("text",{x:H+8,y:I[ne]+C[ne]*U/2+4,class:"pxd-chart-flow-label"},s.text(J.label))))),w)}if(t.intent==="composition"){let v=o.map(U=>a(U,i[0])),S=v.reduce((U,B)=>U+B,0)||1,I=0,j=v.map((U,B)=>{let L=U/S*598,W=p("rect",{key:B,x:1+I,y:4,width:Math.max(L-2,0),height:40,fill:ue(B),rx:2});return I+=L,W}),C=o.map((U,B)=>({label:te(c(U),se(t.x.format,l.data,s.scope),l.locale),value:v[B],color:ue(B),share:v[B]/S}));return p("figure",{class:"pxd-chart","aria-labelledby":n,"aria-describedby":d,...u},p("figcaption",null,p("span",{class:"pxd-chart-title",id:n},s.text(t.title)),p("span",{class:"pxd-chart-summary",id:d},s.text(t.summary))),p("svg",{viewBox:`0 0 ${600} 48`,class:"pxd-chart-svg pxd-chart-bar","aria-hidden":"true",preserveAspectRatio:"none"},p("g",null,...j)),p("ul",{class:"pxd-chart-legend"},...C.map(U=>p("li",{key:U.label},p("span",{class:"pxd-chart-swatch",style:{background:U.color},"aria-hidden":"true"}),`${U.label}: ${te(U.value,se(i[0].format,l.data,s.scope),l.locale)} (${te(U.share,{type:"percent",precision:0},l.locale)})`))),h())}let A=o.flatMap(v=>i.map(S=>a(v,S))),{lo:R,max:M,ticks:P}=lo(A,t.intent==="trend"),N=v=>le.top+y-(v-R)/(M-R||1)*y,E=x/Math.max(o.length,1),$=p("g",{class:"pxd-chart-axis"},...P.map(v=>p("g",{key:v},p("line",{x1:le.left,x2:600-le.right,y1:N(v),y2:N(v),class:"pxd-chart-grid"}),p("text",{x:le.left-8,y:N(v)+4,"text-anchor":"end"},te(v,{...se(i[0].format,l.data,s.scope)??{type:"number"},precision:0},l.locale)))),...o.map((v,S)=>p("text",{key:v,x:le.left+E*S+E/2,y:230,"text-anchor":"middle"},Sr(c(v),t.x.format?.type,l.locale)))),k;if(t.intent==="trend")k=i.map((v,S)=>{let I=o.map((j,C)=>[le.left+E*C+E/2,N(a(j,v))]);return p("g",{key:S},p("polyline",{points:I.map(([j,C])=>`${j},${C}`).join(" "),fill:"none",stroke:ue(S),"stroke-width":2.5}),...I.map(([j,C])=>Ir(rt[S],j,C,ue(S))))});else{let v=t.intent==="distribution",S=v?1:.7,I=E*S/i.length;k=o.flatMap((j,C)=>i.map((U,B)=>{let L=a(j,U),W=N(Math.max(L,0));return p("rect",{key:`${C}-${B}`,x:le.left+E*C+E*((1-S)/2)+I*B,y:W,width:I-(v?1:2),height:Math.max(N(0)-W,1),fill:ue(B),rx:v?0:2})}))}return p("figure",{class:"pxd-chart","aria-labelledby":n,"aria-describedby":d,...u},p("figcaption",null,p("span",{class:"pxd-chart-title",id:n},s.text(t.title)),p("span",{class:"pxd-chart-summary",id:d},s.text(t.summary))),T(`0 0 ${600} ${240}`,"pxd-chart-svg",$,...k),i.length>1&&p("ul",{class:"pxd-chart-legend"},...i.map((v,S)=>p("li",{key:S},p("svg",{width:"12",height:"12","aria-hidden":"true"},Ir(rt[S],6,6,ue(S))),s.text(v.label)))),h())}var He=()=>p("span",{class:"pxd-required","aria-hidden":"true"},"*");function Ne({label:t,help:r,required:s,id:l,helpId:n},...d){return p("div",{class:"pxd-field"},p("label",{class:"pxd-field-label",for:l},t,s&&He()),r&&p("p",{class:"pxd-field-help",id:n},r),...d)}var In={email:"email",phone:"tel",url:"url",search:"search",number:"text",currency:"text",text:"text"},fe=t=>t.target.value;function Qi(t,r){let s=r.b,l=r.r,n=r.id(t),d=r.id(t,"help"),e=t.kind??"text",o=s.value(t.value),c=e==="number"||e==="currency",[a,i]=r.state(t,"draft",null),u=Ia(o,e),f=a??u,m=t.validation??{},x=t.help!==void 0?s.text(t.help):void 0,y={id:n,class:"pxd-input","aria-describedby":x?d:void 0,required:t.required,autocomplete:t.autocomplete,...r.a11y(t)},h=M=>{if(!c)return s.write(t.value,M);i(M),s.write(t.value,Aa(M))},b=M=>{m.message&&M.currentTarget.setCustomValidity(s.text(m.message))},w=M=>M.currentTarget.setCustomValidity(""),A={label:s.text(t.label),help:x,required:t.required,id:n,helpId:d};if(e==="suggestions"||e==="mentions")return qn(t,r,A,y,e==="mentions");if(e==="tags")return Dn(t,r,A,y);if(e==="richtext")return Nn(t,r,A,y);if(e==="inline")return Mn(t,r,A,y);if(e==="masked"){let M=typeof t.mask=="string"?t.mask:"";return Ne(A,p("input",{...y,class:"pxd-input pxd-input-masked",type:"text",inputmode:za(M)?"numeric":void 0,placeholder:M||void 0,value:u,maxlength:M.length||void 0,onInput:P=>(w(P),s.write(t.value,Sa(M,fe(P),fe(P).length<u.length))),onInvalid:b}))}if(e==="code")return Ne(A,p("textarea",{...y,class:"pxd-input pxd-input-code",rows:4,spellcheck:"false",autocorrect:"off",autocapitalize:"off",value:f,maxlength:m.maxLength,minlength:m.minLength,onInput:M=>(w(M),h(fe(M))),onInvalid:b}));if(e==="search"){let M=t.placeholder!==void 0?s.text(t.placeholder):void 0;return p("div",{class:"pxd-search"},p("label",{class:"pxd-sr-only",for:n},s.text(t.label)),V("search"),p("input",{...y,class:"pxd-search-input",type:"search",placeholder:M,value:f,onInput:P=>h(fe(P))}))}if(t.size==="hero"&&c)return p("div",{class:"pxd-hero-field"},p("label",{class:"pxd-hero-label",for:n},s.text(t.label)),p("div",{class:"pxd-hero-input"},e==="currency"&&p("span",{class:"pxd-hero-symbol","aria-hidden":"true"},mr(s.text(t.currency)||"USD",l.locale)),p("input",{...y,class:"pxd-hero-value",type:"text",inputmode:e==="currency"?"decimal":"numeric",pattern:"-?[0-9]*[.,]?[0-9]*",placeholder:"0",size:Math.max(1,f.length||1),value:f,onInput:M=>(w(M),h(fe(M))),onBlur:()=>i(null),onInvalid:b})),x&&p("p",{class:"pxd-field-help pxd-hero-help",id:d},x));let R=e==="multiline"?p("textarea",{...y,rows:3,value:f,maxlength:m.maxLength,minlength:m.minLength,onInput:M=>(w(M),h(fe(M))),onInvalid:b}):p("div",{class:e==="currency"?"pxd-input-adorned":void 0},e==="currency"&&p("span",{class:"pxd-input-prefix","aria-hidden":"true"},mr(s.text(t.currency)||"USD",l.locale)),p("input",{...y,type:In[e]??"text",inputmode:e==="currency"?"decimal":e==="number"?"numeric":void 0,pattern:c?"-?[0-9]*[.,]?[0-9]*":void 0,value:f,maxlength:m.maxLength,minlength:m.minLength,onInput:M=>(w(M),h(fe(M))),onBlur:()=>i(null),onInvalid:b}));return Ne(A,R)}function Cn(t,r,s,l){let n=r.id(t,"list"),[d,e]=r.state(t,"open",!1),[o,c]=r.state(t,"active",-1),a=d&&s.length>0,i=m=>{if(!a){m.key==="ArrowDown"&&s.length&&(e(!0),c(0),m.preventDefault());return}m.key==="ArrowDown"?(c(x=>(x+1)%s.length),m.preventDefault()):m.key==="ArrowUp"?(c(x=>(x-1+s.length)%s.length),m.preventDefault()):m.key==="Enter"&&o>=0?(l(s[o]),e(!1),m.preventDefault()):m.key==="Escape"&&e(!1)},u={role:"combobox","aria-expanded":a,"aria-controls":n,"aria-autocomplete":"list","aria-activedescendant":a&&o>=0?`${n}-${o}`:void 0,autocomplete:"off",onKeydown:i,onBlur:()=>e(!1)};return{list:a?p("ul",{id:n,role:"listbox",class:"pxd-combobox-list"},...s.map((m,x)=>p("li",{key:String(m.value),id:`${n}-${x}`,role:"option","aria-selected":x===o,class:`pxd-combobox-option${x===o?" pxd-combobox-active":""}`,onMousedown:y=>(y.preventDefault(),l(m),e(!1))},m.label,m.description&&p("span",{class:"pxd-option-description"},m.description)))):null,inputProps:u,show:m=>(e(m),c(-1))}}function qn(t,r,s,l,n){let d=r.b,e=Re(t,r.r.data,d.scope,d.text),o=String(d.value(t.value)??""),c=n?/@([^\s@]*)$/.exec(o):null,a=n?c?c[1]:null:o,i=a===null?[]:e.filter(f=>f.label.toLowerCase().includes(a.toLowerCase())).slice(0,8),u=Cn(t,r,i,f=>d.write(t.value,n&&c?`${o.slice(0,c.index)}@${f.label} `:f.label));return Ne(s,p("div",{class:"pxd-combobox"},p("input",{...l,...u.inputProps,type:"text",value:o,onInput:f=>{let m=fe(f);d.write(t.value,m),u.show(n?/@[^\s@]*$/.test(m):m.length>0)},onFocus:()=>u.show(!n&&o.length>0)}),u.list))}function Dn(t,r,s,l){let n=r.b,d=n.value(t.value),e=Array.isArray(d)?d.map(String):[],[o,c]=r.state(t,"tags",""),a=(u=o)=>{let f=Ca(e,u);f!==e&&n.write(t.value,f),c("")},i=u=>n.write(t.value,e.filter((f,m)=>m!==u));return Ne(s,p("div",{class:"pxd-tags",role:"group","aria-label":s.label},p("ul",{class:"pxd-tags-list"},...e.map((u,f)=>p("li",{key:`${u}-${f}`,class:"pxd-tag-chip"},u,p("button",{type:"button",class:"pxd-tag-remove","aria-label":`Remove ${u}`,onClick:()=>i(f)},V("close",14))))),p("input",{...l,class:"pxd-tags-input",type:"text",value:o,onInput:u=>fe(u).endsWith(",")?a(fe(u)):c(fe(u)),onKeydown:u=>{u.key==="Enter"?(u.preventDefault(),a()):u.key==="Backspace"&&o===""&&e.length&&i(e.length-1)},onBlur:()=>a()})))}function es(t){if(t.nodeType===3)return t.textContent??"";if(t.nodeType!==1)return"";let r=t,s=(l=r)=>Array.from(l.childNodes).map(es).join("");switch(r.tagName.toLowerCase()){case"b":case"strong":return`**${s()}**`;case"i":case"em":return`*${s()}*`;case"br":return`
2
- `;case"ul":return Array.from(r.children).map(l=>`- ${s(l)}`).join(`
1
+ var PolyxdWebPreview=(()=>{var Hr=Object.defineProperty;var cn=Object.getOwnPropertyDescriptor;var un=Object.getOwnPropertyNames;var fn=Object.prototype.hasOwnProperty;var mn=(t,r)=>{for(var s in r)Hr(t,s,{get:r[s],enumerable:!0})},xn=(t,r,s,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of un(r))!fn.call(t,n)&&n!==s&&Hr(t,n,{get:()=>r[n],enumerable:!(p=cn(r,n))||p.enumerable});return t};var gn=t=>xn(Hr({},"__esModule",{value:!0}),t);var Dd={};mn(Dd,{default:()=>qd});var er=t=>new Map(t.components.map(r=>[r.id,r])),Fr=t=>t.surface.kind==="shell"?void 0:t.components.find(r=>r.component==="Navigation"&&(!r.kind||r.kind==="main"));var ye={pointer:""},di=t=>t.replace(/~1/g,"/").replace(/~0/g,"~"),yn=t=>t.replace(/~/g,"~0").replace(/\//g,"~1"),Ie=t=>!!t&&typeof t=="object"&&!Array.isArray(t)&&typeof t.path=="string";function Y(t,r){return t.startsWith("/")?t:`${r.pointer}/${t}`}function ie(t,r){return`${t}/${yn(String(r))}`}function J(t,r){if(r==="")return t;let s=t;for(let p of r.slice(1).split("/").map(di)){if(s===null||typeof s!="object")return;s=s[p]}return s}function Je(t,r,s){let p=r.slice(1).split("/").map(di),n=(d,e)=>{let o=p[e],c=Array.isArray(d)?[...d]:{...d??{}};return e===p.length-1?c[o]=s:c[o]=n(d?.[o]??(/^\d+$/.test(p[e+1])?[]:{}),e+1),c};return n(t,0)}var pe=t=>Array.isArray(t)?t:[];function oe(t,r,s){return Ie(t)?J(r,Y(t.path,s)):t}function je(t,r,s){return Object.fromEntries(Object.entries(t??{}).map(([p,n])=>[p,oe(n,r,s)]))}function tr(t,r,s){return Ie(t)?oe(t,r,s):Array.isArray(t)?t.map(p=>tr(p,r,s)):t&&typeof t=="object"?Object.fromEntries(Object.entries(t).map(([p,n])=>[p,tr(n,r,s)])):t}function te(t,r,s,p=Date.now()){if(t==null||t==="")return"\u2014";if(!r||r.type==="text")return Array.isArray(t)?t.join(", "):String(t);let n=typeof t=="number"?t:Number(t),d=r.precision===void 0?{}:{minimumFractionDigits:r.precision,maximumFractionDigits:r.precision};try{switch(r.type){case"number":return new Intl.NumberFormat(s,d).format(n);case"currency":return new Intl.NumberFormat(s,{style:"currency",currency:typeof r.currency=="string"?r.currency:"USD",...d}).format(n);case"percent":return new Intl.NumberFormat(s,{style:"percent",maximumFractionDigits:r.precision??1}).format(n);case"date":return new Intl.DateTimeFormat(s,{dateStyle:"medium",timeZone:"UTC"}).format(new Date(String(t)));case"time":return new Intl.DateTimeFormat(s,{timeStyle:"short",timeZone:"UTC"}).format(new Date(String(t)));case"datetime":return new Intl.DateTimeFormat(s,{dateStyle:"medium",timeStyle:"short",timeZone:"UTC"}).format(new Date(String(t)));case"relativeTime":{let e=(new Date(String(t)).getTime()-p)/1e3,o=[["year",31536e3],["month",2592e3],["day",86400],["hour",3600],["minute",60]],c=new Intl.RelativeTimeFormat(s,{numeric:"auto"});for(let[a,i]of o)if(Math.abs(e)>=i)return c.format(Math.round(e/i),a);return c.format(Math.round(e),"second")}case"duration":{let e=Math.round(n/60);return e>=60?`${Math.floor(e/60)} h ${e%60} min`:`${e} min`}case"color":return String(t).trim();case"bytes":{let e=["byte","kilobyte","megabyte","gigabyte","terabyte"],o=0,c=Math.abs(n);for(;c>=1e3&&o<e.length-1;)c/=1e3,o++;return o===0?`${new Intl.NumberFormat(s,{maximumFractionDigits:0}).format(n)} B`:new Intl.NumberFormat(s,{style:"unit",unit:e[o],unitDisplay:"short",maximumFractionDigits:r.precision??1}).format(n<0?-c:c)}}}catch{return String(t)}}function Oe(t){let r=String(t??"").trim();return/^(#[0-9a-f]{3,8}|[a-z]{3,20}|(rgb|rgba|hsl|hsla|oklch|oklab|lab|lch|hwb)\([\d.,%\s\/-]+\))$/i.test(r)?r:void 0}function yr(t,r){try{return new Intl.NumberFormat(r,{style:"currency",currency:t}).formatToParts(0).find(s=>s.type==="currency")?.value??t}catch{return t}}function se(t,r,s){return!t?.currency||typeof t.currency=="string"?t:{...t,currency:oe(t.currency,r,s)}}var Xe=(t,r)=>new Intl.NumberFormat(r).format(t),Ur=(t,r)=>new Intl.NumberFormat(r,{style:"percent",maximumFractionDigits:0}).format(t);function Re(t,r,s,p){let n=t.options;if(Array.isArray(n))return n.map(o=>({value:o.value,label:p(o.label),description:o.description!==void 0?p(o.description):void 0}));let d=Y(n.path,s);return pe(J(r,d)).map((o,c)=>{let a={pointer:ie(d,c)},i=u=>u?J(r,Y(u,a)):void 0;return{value:i(n.valuePath),label:String(i(n.labelPath)??""),description:n.descriptionPath&&String(i(n.descriptionPath)??"")||void 0,avatar:n.avatarPath||n.imagePath?i(n.avatarPath??n.imagePath)??"":void 0,recent:n.recentPath?!!i(n.recentPath):!1}})}function Or(t,r){let s=t.some(d=>d.avatar!==void 0),p=t.length>10||s&&t.length>6;return{control:!s&&t.length<=6&&t.every(d=>d.label.length<=24&&!d.description)?"chips":s?"people":"list",multiple:r==="multiple",searchable:p,withFaces:s}}var Ce=t=>JSON.stringify(t),hr=(t,r)=>!r||`${t.label} ${t.description??""}`.toLowerCase().includes(r.toLowerCase());function br(t,r){return{recent:r?[]:t.filter(s=>s.recent),rest:t.filter(s=>r?hr(s,r):!s.recent)}}function Vr(t,r){let s=Array.isArray(t)?t:[],p=Ce(r);return s.some(n=>Ce(n)===p)?s.filter(n=>Ce(n)!==p):[...s,r]}var Lr=(t,r)=>{let s=Ce(r);return Array.isArray(t)?t.some(p=>Ce(p)===s):t!=null&&Ce(t)===s},Zr=t=>t?"Search by name":"Filter options";var Kr=(t,r)=>`${t}-${encodeURIComponent(JSON.stringify(r)).replace(/%/g,"_")}`;var pi=(t,r)=>Math.max(0,Math.min(r-1,t));function Gr(t,r){let s=r.type==="back"?t.index-1:r.type==="next"?t.index+1:r.index;return{...t,index:pi(s,t.total)}}var Yr=(t,r)=>({index:typeof t=="number"?pi(t,r):0,total:r}),Jr=t=>t.index===t.total-1,Xr=t=>`Step ${t.index+1} of ${t.total}`,Wr={todo:{label:"Not started",tone:"neutral"},inProgress:{label:"In progress",tone:"info"},done:{label:"Completed",tone:"success"},blocked:{label:"Cannot start yet",tone:"neutral"}},Qr=t=>Wr[t??"todo"]??Wr.todo,ea=(t,r)=>t===r?null:r,ta=(t,r)=>`${t} of ${r} tasks completed`;function ra(t,r,s){return typeof r=="string"&&r?r:s??t[0]?.key}var li=640,aa={narrow:33.333,balanced:50,wide:66.667},rr=20,ar=80,ia=t=>({compact:!1,listShown:!1,share:aa[t??"narrow"]??aa.narrow}),oa=t=>Math.min(ar,Math.max(rr,t));function vr(t,r){switch(r.type){case"measure":return{...t,compact:r.width<li};case"back":return{...t,listShown:!0};case"selected":return{...t,listShown:!1};case"share":return{...t,share:oa(r.value)};case"key":{let s=r.shift?10:5,p=r.key==="ArrowLeft"?t.share-s:r.key==="ArrowRight"?t.share+s:r.key==="Home"?rr:r.key==="End"?ar:void 0;return p===void 0?t:{...t,share:oa(p)}}}}function sa(t,r){let s=!t.compact||r&&!t.listShown;return{showList:!t.compact||!s,showDetail:s}}var ci=(t,r,s,p,n)=>s?J(p,Y(s,{pointer:n})):t&&typeof t=="object"&&"id"in t?t.id:r;function na(t,r,s,p){let n=oe(t.selected,s,p),d=n!=null&&n!=="",e=r.get(t.primary),o=e?.component==="Table"?e.rows?.path:e?.items?.path,c=typeof o=="string"?Y(o,p):void 0,a=c?pe(J(s,c)):[],i=c?a.findIndex((h,b)=>ci(h,b,e?.rowValuePath,s,ie(c,b))===n):-1,u=c&&i>=0?{pointer:ie(c,i)}:void 0,f=e?.items?.componentId?r.get(e.items.componentId):void 0,m=i>=0?a[i]:void 0,x=u&&f?.title!==void 0?oe(f.title,s,u):void 0,y=d?String(x??m?.name??m?.title??m?.label??n):void 0;return{has:d,index:i,scope:u,name:y}}var ui={"multi-step-form":"form","filter-and-browse":"list","undo-over-confirm":"list","compare-and-choose":"compare","confirm-destructive":"dialog","review-and-submit":"detail"},da=(t,r)=>r??(t?ui[t]:void 0)??"detail",de=(t,r)=>({block:t,size:r}),he=(t,r)=>({group:t,parts:r}),Qe=(t,r)=>Array.from({length:t},(s,p)=>r(p)),pa={list:[de("field","full"),...Qe(5,t=>he("row",[de("square"),he("lines",[de("line",t%2?"medium":"long"),de("small","short")])]))],form:[...Qe(4,t=>he("lines",[de("small","short"),de("field",t===1?"medium":"long")])),he("actions",[de("button"),de("button")])],detail:[he("row",[de("circle"),he("lines",[he("row",[de("line","medium"),de("badge")]),de("small","short")])]),he("dl",Qe(6,t=>he("row",[de("small","short"),de("line",t%3===2?"medium":"long")])))],dashboard:[he("cards",Qe(3,()=>he("card",[de("small","short"),de("value","medium")]))),de("chart","full")],dialog:[de("line","long"),de("line","medium"),he("actions",[de("button"),de("button")])],compare:[he("cards",Qe(3,()=>he("card",[de("line","medium"),...Qe(5,t=>de("small",t%2?"short":"long"))])))]},la={row:"pxd-skeleton-row",lines:"pxd-skeleton-lines",actions:"pxd-skeleton-actions",dl:"pxd-skeleton-dl",cards:"pxd-skeleton-cards",card:"pxd-skeleton-card"},ca=t=>t?`Preparing ${t}`:"Preparing";var ua=720,fi=[10,25,50,100],hn=new Set(["number","currency","percent","duration"]),wr=t=>t.align==="end"||t.align!=="start"&&(t.kind==="number"||t.kind==="currency"||hn.has(t.format?.type));function fa(t){let[r,...s]=t;return{first:r,status:s.find(p=>p.kind==="status"),details:s.filter(p=>p.kind!=="status").slice(0,3)}}var ma=(t,r,s,p,n)=>t.rowValuePath?J(p,Y(t.rowValuePath,n)):r[s]?.id??s;var kr=(t,r)=>t.includes(r)?t.filter(s=>s!==r):[...t,r],xa=(t,r,s)=>t===r&&s==="ascending"?"descending":"ascending",ga=(t,r,s)=>t.columns.length+(r?1:0)+(s?1:0)+(t.rowActions||t.rowAction?1:0);function ya(t,r,s,p){let n=typeof t=="number"?t:1,d=typeof r=="number"?r:p,e=typeof s=="number"?s:p,o=Math.max(1,Math.ceil(e/(d||1)));return{index:n,size:d,total:e,pages:o,from:e===0?0:(n-1)*d+1,to:Math.min(n*d,e),sizes:[...new Set([...fi,d])].sort((c,a)=>c-a)}}function ha(t,r,s,p,n){if(!t)return;let{name:d,context:e}=t.event;if(n.events?.action(t,s),d==="ui.dismiss")return n.onDismiss?.();n.onAction?.({name:d,context:je(e,p,r),source:s})}function Ve(t,r,s,p){let n=Y(t.value.path,s);return Object.fromEntries(Object.entries(t.action?.event?.context??{}).map(([d,e])=>[d,Ie(e)&&Y(e.path,s)===n?p:oe(e,r,s)]))}function ba(t,r,s,p){return t.copy!==void 0?p(t.copy):String(je(t.action?.event?.context,r,s).text??"")}var va=(t,r)=>({event:{name:t.event.name,context:{key:r,...t.event.context??{}}}});var $r={ctrl:["\u2303","Ctrl","Control","ctrlKey"],alt:["\u2325","Alt","Alt","altKey"],shift:["\u21E7","Shift","Shift","shiftKey"],enter:["\u21B5","Enter","Enter","enter"],escape:["\u238B","Esc","Escape","escape"],space:["Space","Space","Space"," "],tab:["\u21E5","Tab","Tab","tab"],backspace:["\u232B","Backspace","Backspace","backspace"],delete:["\u2326","Del","Delete","delete"],arrowup:["\u2191","\u2191","ArrowUp","arrowup"],arrowdown:["\u2193","\u2193","ArrowDown","arrowdown"],arrowleft:["\u2190","\u2190","ArrowLeft","arrowleft"],arrowright:["\u2192","\u2192","ArrowRight","arrowright"],home:["Home","Home","Home","home"],end:["End","End","End","end"],slash:["/","/","/","/"],comma:[",",",",",",","],period:[".",".",".","."]},mi=["metaKey","ctrlKey","altKey","shiftKey"];function wa(t,r){let s=t.toLowerCase().split("+"),p=s.pop(),n=[],d=[],e=new Set;for(let c of s){let[a,i,u,f]=c==="mod"?r?["\u2318","Ctrl","Meta","metaKey"]:$r.ctrl:$r[c];n.push(r?a:i),d.push(u),e.add(f)}let o=$r[p];return n.push(o?r?o[0]:o[1]:p.toUpperCase()),d.push(o?o[2]:p.toUpperCase()),{hint:n,aria:d.join("+"),flags:e,key:o?o[3]:p}}function ka(t,r){if(!mi.every(p=>r[p]===t.flags.has(p)))return!1;let s=/^[a-z0-9]$/.test(t.key)&&r.code.toLowerCase()===(/\d/.test(t.key)?`digit${t.key}`:`key${t.key}`);return r.key.toLowerCase()===t.key||s}var $a=t=>!t.flags.has("metaKey")&&!t.flags.has("ctrlKey")&&!t.flags.has("altKey"),Pa=t=>/mac|iphone|ipad|ipod/i.test(t);var Sa=t=>t>=1024?"wide":t>=640?"medium":"compact";function za(t,r,s){let p=s<=5;return t==="bar"?p?"bar":"drawer":t==="drawer"?"drawer":r==="compact"?p?"bar":"drawer":t==="side"||t==="rail"?t:r==="wide"?"side":"rail"}var Aa=(t,r,s)=>r&&s?s:t;var vn=/^(https?:|mailto:|tel:|\/|#)/i;function et(t){let r=[],s="",p=0,n=()=>{s&&r.push(s),s=""};for(;p<t.length;){if(t[p]==="`"){let d=t.indexOf("`",p+1);if(d>p+1){n(),r.push({kind:"code",text:t.slice(p+1,d)}),p=d+1;continue}}if(t.startsWith("**",p)){let d=t.indexOf("**",p+2);if(d>p+2){n(),r.push({kind:"strong",children:et(t.slice(p+2,d))}),p=d+2;continue}}if(t[p]==="*"){let d=t.indexOf("*",p+1);if(d>p+1){n(),r.push({kind:"em",children:et(t.slice(p+1,d))}),p=d+1;continue}}if(t[p]==="["){let d=/^\[([^\]]+)\]\(([^)\s]+)\)/.exec(t.slice(p));if(d){n(),r.push({kind:"link",href:vn.test(d[2])?d[2]:void 0,children:et(d[1])}),p+=d[0].length;continue}}s+=t[p++]}return n(),r}function Ia(t,r,s=!1){let p=r.replace(/[^A-Za-z0-9]/g,"").split(""),n="",d=0;for(let e of t){if(d>=p.length)break;if(e==="#"||e==="A"||e==="*"){let o=e==="#"?/\d/:e==="A"?/[A-Za-z]/:/./;for(;d<p.length&&!o.test(p[d]);)d++;if(d>=p.length)break;n+=p[d++]}else n+=e}if(s)for(;n.length&&!/[#A*]/.test(t[n.length-1]);)n=n.slice(0,-1);return n}var Ca=t=>!/[A*]/.test(t);function qa(t){let r=Number(t.replace(/[^\d.-]/g,""));return t.trim()===""||Number.isNaN(r)?null:r}var Da=(t,r)=>t==null?"":r==="currency"&&typeof t=="number"?t.toFixed(2):String(t);function Ta(t,r){let s=r.trim().replace(/,$/,"").trim();return s&&!t.includes(s)?[...t,s]:t}var we=(t,r,s)=>Math.min(s,Math.max(r,t)),Le=t=>we(Math.round(t),0,255).toString(16).padStart(2,"0"),wn=t=>t===void 0?1:we(t.endsWith("%")?parseFloat(t)/100:parseFloat(t),0,1),kn=t=>t.endsWith("%")?parseFloat(t)/100*255:parseFloat(t);function xi(t,r,s){let p=(t%360+360)%360/360;if(r===0)return[s*255,s*255,s*255];let n=s<.5?s*(1+r):s+r-s*r,d=2*s-n,e=o=>(o<0&&(o+=1),o>1&&(o-=1),o<1/6?d+(n-d)*6*o:o<1/2?n:o<2/3?d+(n-d)*(2/3-o)*6:d);return[e(p+1/3)*255,e(p)*255,e(p-1/3)*255]}function gi(t,r,s){let p=t/255,n=r/255,d=s/255,e=Math.max(p,n,d),o=Math.min(p,n,d),c=(e+o)/2;if(e===o)return[0,0,c];let a=e-o,i=c>.5?a/(2-e-o):a/(e+o),u=e===p?(n-d)/a+(n<d?6:0):e===n?(d-p)/a+2:(p-n)/a+4;return u/=6,[u*360,i,c]}function Be(t){if(typeof t!="string")return null;let r=t.trim(),s=/^#([0-9a-f]{3,8})$/i.exec(r);if(s){let f=s[1];if(f.length===3||f.length===4){let[m,x,y,h]=f.split("").map(b=>parseInt(b+b,16));return{r:m,g:x,b:y,a:f.length===4?h/255:1}}if(f.length===6||f.length===8){let m=x=>parseInt(f.slice(x,x+2),16);return{r:m(0),g:m(2),b:m(4),a:f.length===8?m(6)/255:1}}return null}let p=/^(rgba?|hsla?)\(\s*([^)]+?)\s*\)$/i.exec(r);if(!p)return null;let n=p[2].split(/\s*[,/]\s*|\s+/).filter(Boolean);if(n.length<3||n.length>4)return null;let d=wn(n[3]);if(Number.isNaN(d))return null;if(p[1].toLowerCase().startsWith("rgb")){let[f,m,x]=n.slice(0,3).map(kn);return[f,m,x].some(Number.isNaN)?null:{r:we(f,0,255),g:we(m,0,255),b:we(x,0,255),a:d}}let e=parseFloat(n[0]),o=parseFloat(n[1])/100,c=parseFloat(n[2])/100;if([e,o,c].some(Number.isNaN))return null;let[a,i,u]=xi(e,we(o,0,1),we(c,0,1));return{r:a,g:i,b:u,a:d}}function Pr(t,r,s){let p=s?Math.round(t.a*100)/100:1,n=Math.round(t.r),d=Math.round(t.g),e=Math.round(t.b);if(r==="rgb")return p<1?`rgba(${n}, ${d}, ${e}, ${p})`:`rgb(${n}, ${d}, ${e})`;if(r==="hsl"){let[o,c,a]=gi(n,d,e),i=Math.round(o),u=Math.round(c*100),f=Math.round(a*100);return p<1?`hsla(${i}, ${u}%, ${f}%, ${p})`:`hsl(${i}, ${u}%, ${f}%)`}return`#${Le(n)}${Le(d)}${Le(e)}${p<1?Le(p*255):""}`}var Na=t=>t?`#${Le(t.r)}${Le(t.g)}${Le(t.b)}`:"#000000",Ea=(t,r,s)=>!!(t&&r&&Math.round(t.r)===Math.round(r.r)&&Math.round(t.g)===Math.round(r.g)&&Math.round(t.b)===Math.round(r.b)&&(!s||Math.abs(t.a-r.a)<.005)),Ma=t=>t==="hex"?"#000000":t==="rgb"?"rgb(0, 0, 0)":"hsl(0, 0%, 0%)";var yi=["byte","kilobyte","megabyte","gigabyte"];function tt(t,r){let s=0,p=t;for(;p>=1024&&s<yi.length-1;)p/=1024,s++;try{return new Intl.NumberFormat(r,{style:"unit",unit:yi[s],unitDisplay:"short",maximumFractionDigits:p<10?1:0}).format(p)}catch{return`${Math.round(p*10)/10} ${["B","KB","MB","GB"][s]}`}}function ja(t){let r=t.trim().toLowerCase();if(r.startsWith("."))return r.slice(1).toUpperCase();let s={"image/*":"images","video/*":"videos","audio/*":"audio","text/*":"text files"};if(s[r])return s[r];if(r==="application/pdf")return"PDF";let p=r.split("/")[1];return p?p.replace(/^(x-|vnd\.)/,"").toUpperCase():t}function Ra(t){return t.length<=1?t.join(""):`${t.slice(0,-1).join(", ")} or ${t[t.length-1]}`}function hi(t,r){if(r.length===0)return!0;let s=t.name.toLowerCase(),p=t.type.toLowerCase();return r.some(n=>{let d=n.trim().toLowerCase();return d.startsWith(".")?s.endsWith(d):d.endsWith("/*")?p.startsWith(d.slice(0,-1)):p===d})}function Ba(t,r,s,p){let n=t.length?Ra(t.map(ja)):"";return[n&&`Accepts ${n}.`,r&&`Up to ${tt(r,p)}${s?" each":""}.`].filter(Boolean).join(" ")}function _a(t,r,s,p){if(s&&t.size>s)return`${t.name} is ${tt(t.size,p)}; the limit is ${tt(s,p)}.`;let n=r.length?Ra(r.map(ja)):"";if(!hi(t,r))return`${t.name} isn't an accepted type${n?` (${n})`:""}.`}function Ha(t,r,s,p){if(typeof t!="number")return;let n=r??"increase",d=t>0?"up":t<0?"down":"unchanged",e=n==="none"||t===0?"neutral":t>0==(n==="increase")?"positive":"negative",o=te(Math.abs(t),s,p);return{text:`${t>0?"\u25B2":t<0?"\u25BC":"\u25A0"} ${o}`,spoken:d==="unchanged"?"unchanged":`${d} ${o}`,tone:e}}function bi(t,r){return t>=1?{tone:"danger",hint:"full"}:r?.danger!==void 0&&t>=r.danger?{tone:"danger",hint:"nearly full"}:r?.warning!==void 0&&t>=r.warning?{tone:"warning",hint:"getting full"}:{}}function Fa(t,r,s,p,n,d){let e=typeof r=="number"?r:Number(r),o=s!==void 0?Number(s):void 0,c=o!==void 0&&Number.isFinite(o)&&o>0?o:void 0,a=Number.isFinite(e)?Math.max(0,Math.min(1,c!==void 0?e/c:e)):0,i=t.format?te(r,t.format,d):te(a,{type:"percent",precision:0},d),u=t.kind==="meter",f=u?bi(a,t.thresholds):{},m=t.tone??f.tone,x=u?f.hint:void 0,y=[i,n,x].filter(Boolean).join(", "),h=Math.round(a*100),b=p?{"aria-busy":!0}:c!==void 0?{"aria-valuemin":0,"aria-valuemax":c,"aria-valuenow":Number.isFinite(e)?e:0,"aria-valuetext":y}:{"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":h,"aria-valuetext":y};return{fraction:a,percent:h,valueProps:b,readout:i,tone:m,hint:x,valuetext:y,indeterminate:p}}var Ua=t=>`${t} ${t===1?"star":"stars"}`,Oa=(t,r)=>t!==void 0?`${t} out of ${r}`:"not yet rated",Va=t=>t.replace(/[^\s]/g,"\u2022"),Sr={small:24,default:40,large:64};function La(t,r){let s=d=>d.split(/\s+/)[0]||d,p=t.slice(0,r),n=t.slice(r);return n.length?`${p.map(d=>s(d.name)).join(", ")} and ${n.length} more`:p.map(d=>s(d.name)).join(", ")}var vi=["primary","secondary","tertiary","success","warning"];function Ka(t){return vi[[...t].reduce((r,s)=>r*31+s.charCodeAt(0)>>>0,7)%vi.length]}function Wa(t,r){return(t&&t.length<=3?t:r.split(/\s+/).map(s=>s[0]).join("").slice(0,2)).toUpperCase()}var Ga=t=>t.length>3,Za={search:"M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14zM21 21l-4.3-4.3",check:"M20 6 9 17l-5-5",info:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 16v-4M12 8h.01",lock:"M5 11h14v10H5zM8 11V7a4 4 0 0 1 8 0v4",trash:"M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6",clock:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 7v5l3 2",tag:"M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z",alert:"M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h16.9a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01",mail:"M3 5h18v14H3zM3 7l9 6 9-6",shield:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z",book:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z",inbox:"M22 12h-6l-2 3h-4l-2-3H2M5.5 5h13L22 12v7H2v-7z",filter:"M3 5h18l-7 8v6l-4 2v-8z",close:"M18 6 6 18M6 6l12 12",dash:"M6 12h12",menu:"M4 6h16M4 12h16M4 18h16",home:"M4 11 12 4l8 7M6 10v10h12V10",settings:"M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6zM19.4 15a1.7 1.7 0 0 0 .3 1.8 2 2 0 1 1-2.8 2.8 1.7 1.7 0 0 0-2.9 1.2 2 2 0 1 1-4 0 1.7 1.7 0 0 0-2.9-1.2 2 2 0 1 1-2.8-2.8A1.7 1.7 0 0 0 2.1 14a2 2 0 1 1 0-4 1.7 1.7 0 0 0 1.2-2.9 2 2 0 1 1 2.8-2.8A1.7 1.7 0 0 0 9 3.1a2 2 0 1 1 4 0 1.7 1.7 0 0 0 2.9 1.2 2 2 0 1 1 2.8 2.8A1.7 1.7 0 0 0 21 10a2 2 0 1 1 0 4 1.7 1.7 0 0 0-1.6 1z",chart:"M4 20V10M10 20V4M16 20v-7M22 20H2",people:"M9 4.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7zM2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14a6.5 6.5 0 0 1 3.5 6",card:"M2 6h20v13H2zM2 10h20",file:"M6 3h8l4 4v14H6zM14 3v4h4",dots:"M12 5h.01M12 12h.01M12 19h.01",sort:"M8 9l4-4 4 4M8 15l4 4 4-4",sortUp:"M12 19V5M6 11l6-6 6 6",sortDown:"M12 5v14M6 13l6 6 6-6",chevronLeft:"M15 5l-7 7 7 7",chevronRight:"M9 5l7 7-7 7",chevronDown:"m6 9 6 6 6-6",orders:"M6 3h12v18l-3-2-3 2-3-2-3 2zM9 8h6M9 12h6",products:"M12 3 3 7.5v9L12 21l9-4.5v-9zM3 7.5l9 4.5 9-4.5M12 12v9",customers:"M12 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM4 21a8 8 0 0 1 16 0",discounts:"M19 5 5 19M7.5 6a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM16.5 15a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z",analytics:"M3 17l5-6 4 3 5-7 4 4M3 21h18",calendar:"M4 6h16v14H4zM4 10h16M8 3v4M16 3v4",bell:"M6 16V11a6 6 0 0 1 12 0v5l2 2H4zM10 21h4",help:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.7.3-1 .9-1 1.7M12 17h.01",folder:"M3 6h6l2 2h10v11H3z",star:"m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3 6.4 20.2l1.1-6.2L3 9.6l6.2-.9z",grid:"M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z",layers:"m12 3 9 5-9 5-9-5zM3 13l9 5 9-5M3 17l9 5 9-5"},Ya=t=>Za[t]??Za.info,Ja={info:"info",success:"check",warning:"alert",error:"alert",empty:"inbox",undo:"check"},zr="M12 2.5l2.9 6.2 6.8.8-5 4.7 1.3 6.8L12 17.6 6 21l1.3-6.8-5-4.7 6.8-.8z";var Xa=(t,r)=>t&&typeof t=="object"&&"id"in t?t.id:r;function Qa(t,r){let s=t.layout??"auto";return{grid:s==="grid"||s==="auto"&&r?.component==="Card"&&!!r.media,timeline:s==="timeline",carousel:s==="carousel",calendar:s==="calendar"}}function eo(t,r){let s=t.map((n,d)=>d);if(!Array.isArray(r))return s;let p=n=>{let d=r.indexOf(t[n]);return d<0?r.length+n:d};return s.sort((n,d)=>p(n)-p(d))}function to(t,r,s,p){if(p<0||p>=t.length||s===p)return;let n=[...t];return n.splice(p,0,...n.splice(s,1)),n.map(d=>r[d])}function ro(t){if(t==null||t==="")return;let r=new Date(String(t));return Number.isNaN(r.getTime())?void 0:{y:r.getUTCFullYear(),m:r.getUTCMonth(),d:r.getUTCDate()}}var ao=(t,r,s=new Date)=>t??(r?{y:r.y,m:r.m}:{y:s.getUTCFullYear(),m:s.getUTCMonth()});function Ar(t,r){let s=new Date(Date.UTC(t.y,t.m+r,1));return{y:s.getUTCFullYear(),m:s.getUTCMonth()}}function oo(t,r){let s=new Intl.DateTimeFormat(r,{month:"long",year:"numeric",timeZone:"UTC"}).format(new Date(Date.UTC(t.y,t.m,1))),p=Array.from({length:7},(c,a)=>new Intl.DateTimeFormat(r,{weekday:"short",timeZone:"UTC"}).format(new Date(Date.UTC(2024,0,1+a)))),n=(new Date(Date.UTC(t.y,t.m,1)).getUTCDay()+6)%7,d=new Date(Date.UTC(t.y,t.m+1,0)).getUTCDate(),e=[...Array(n).fill(null),...Array.from({length:d},(c,a)=>a+1)];for(;e.length%7;)e.push(null);let o=Array.from({length:e.length/7},(c,a)=>e.slice(a*7,a*7+7));return{...t,monthName:s,weekdays:p,weeks:o}}function io(t,r){let s=0;return t.forEach((p,n)=>{Math.abs(p-r)<Math.abs(t[s]-r)&&(s=n)}),s}function so(t,r,s){let p=new Map;for(let n of t){if(!n.better||n.better==="none")continue;let d=Array.from({length:r},(o,c)=>Number(s(n.path,c))),e=n.better==="higher"?Math.max(...d):Math.min(...d);d.filter(o=>o===e).length===1&&p.set(n.key,d.indexOf(e))}return p}function no(t,r){let s=[];for(let p of t){let n=p.group!==void 0?r(p.group):void 0,d=s.find(e=>e.label===n);d?d.attributes.push(p):s.push({label:n,attributes:[p]})}return s}function po(t,r){let s=t.map((n,d)=>d),p=s.findIndex(n=>t[n]===r);return p>0&&s.unshift(...s.splice(p,1)),s}function lo(t,r){let s=[];for(let p of t){let n=p.group!==void 0?r(p.group):void 0,d=s.find(e=>e.label===n);d?d.items.push(p):s.push({label:n,items:[p]})}return s}var co=t=>t==="breadcrumb"?"Breadcrumb":t==="toc"?"On this page":"Main";var le={top:16,right:16,bottom:32,left:56},rt=["circle","square","diamond","triangle","circle","square"],ue=t=>`var(--pxd-color-data-categorical-${t%6+1})`;function at(t){if(t<=0)return 1;let r=10**Math.floor(Math.log10(t));return Math.ceil(t/r)*r}function Ir(t,r,s){if(r==="date"||r==="datetime"){let p=new Date(String(t));if(!Number.isNaN(p.getTime())){let n=p.getUTCDate()===1?{month:"short",timeZone:"UTC"}:{month:"short",day:"numeric",timeZone:"UTC"};return new Intl.DateTimeFormat(s,n).format(p)}}return String(t??"").slice(0,12)}function uo(t,r){if(t.length<2)return 1;let s=Math.max(...t.map(p=>p.length))*7+8;return Math.max(1,Math.ceil(s/(r/t.length)))}function fo(t,r,s){let p=t.reduce((f,m)=>f+m,0),n=t.map(()=>null);if(p<=0)return n;let d=t.map((f,m)=>m).filter(f=>t[f]>0).sort((f,m)=>t[m]-t[f]),e=f=>t[f]/p*r*s,o=0,c=0,a=r,i=s,u=0;for(;u<d.length&&a>0&&i>0;){let f=a>=i,m=f?i:a,x=[],y=0,h=1/0;for(;u<d.length;){let D=[...x,d[u]],z=y+e(d[u]),R=z/m,q=Math.max(...D.map(P=>{let N=e(P)/R;return Math.max(N/R,R/N)}));if(q>h&&x.length)break;x=D,y=z,h=q,u++}let b=y/m,w=0;for(let D of x){let z=e(D)/b;n[D]=f?{x:o,y:c+w,w:b,h:z}:{x:o+w,y:c,w:z,h:b},w+=z}f?(o+=b,a-=b):(c+=b,i-=b)}return n}function mo(t,r){let s=at(Math.max(0,...t)),p=r?Math.min(0,...t):0,n=r&&t.length?Math.max(p,Math.min(...t)-(Math.max(...t)-Math.min(...t))*.2):p,d=r?Math.floor(n):0;return{lo:d,max:s,ticks:[0,.5,1].map(e=>d+(s-d)*e)}}function xo(t,r,s){return t==="square"?{tag:"rect",attrs:{x:r-4,y:s-4,width:8,height:8}}:t==="diamond"?{tag:"path",attrs:{d:`M${r} ${s-5}L${r+5} ${s}L${r} ${s+5}L${r-5} ${s}Z`}}:t==="triangle"?{tag:"path",attrs:{d:`M${r} ${s-5}L${r+5} ${s+4}L${r-5} ${s+4}Z`}}:{tag:"circle",attrs:{cx:r,cy:s,r:4}}}function go(t,r,s){let p=t.map(f=>f.reduce((m,x)=>m+x,0)),n=Array.from({length:r},(f,m)=>t.reduce((x,y)=>x+y[m],0)),d=p.reduce((f,m)=>f+m,0)||1,e=6,c=(s-e*(Math.max(t.length,r)-1))/d,a=[],i=[],u=0;return p.forEach(f=>(a.push(u),u+=f*c+e)),u=0,n.forEach(f=>(i.push(u),u+=f*c+e)),{leftY:a,rightY:i,leftTotals:p,rightTotals:n,scale:c}}var Cr=200,yo=10,ho=500,$n=t=>t==null?"":String(t);function bo(t,r,s,p){let n=[],d=new Map,e=[],o=(i,u)=>p?p.has(i):u===1,c=(i,u,f,m)=>{i.forEach((x,y)=>{let h={pointer:ie(u,y)},b=$n(J(r,Y(t.labelPath,h))),w=t.valuePath?J(r,Y(t.valuePath,h)):b,D=w??(b||h.pointer),z=t.detailPath?J(r,Y(t.detailPath,h)):void 0,R=z==null||z===""?void 0:String(z),q=pe(J(r,Y(t.childrenPath,h)));f===1&&e.push(D);let P=q.length>0,N=P&&o(D,f),M=n.length;d.set(h.pointer,M),n.push({key:h.pointer,scope:h,level:f,setsize:i.length,posinset:y+1,label:b,value:D,detail:R,hasChildren:P,expanded:N,parent:m}),N&&c(q,Y(t.childrenPath,h),f+1,M)})},a=Y(t.items.path,s);return c(pe(J(r,a)),a,1,-1),{rows:n,indexByKey:d,topValues:e}}function vo(t,r,s){let p=e=>{for(let o=1;o<=t.length;o++){let c=(r+o)%t.length;if(t[c].label.toLowerCase().startsWith(e))return c}return-1},n=s.length>1&&[...s].every(e=>e===s[0]),d=p(n?s[0]:s);return d<0&&s.length>1&&(d=p(s[0])),d}function wo(t,r,s){let p=t[r];if(p)switch(s.key){case"ArrowDown":return{focus:Math.min(t.length-1,r+1)};case"ArrowUp":return{focus:Math.max(0,r-1)};case"ArrowRight":return p.hasChildren&&!p.expanded?{toggle:!0}:p.expanded?{focus:Math.min(t.length-1,r+1)}:void 0;case"ArrowLeft":return p.expanded?{toggle:!0}:p.parent>=0?{focus:p.parent}:void 0;case"Home":return{focus:0};case"End":return{focus:t.length-1};case"Enter":return{activate:!0};case" ":return{select:!0};case"*":return{expandSiblings:!0};default:return s.key.length===1&&!s.ctrlKey&&!s.metaKey&&!s.altKey?{typeAhead:s.key}:void 0}}function ko(t,r,s,p){return t<=Cr?{start:0,end:t}:{start:Math.max(0,Math.floor(r/s)-yo),end:Math.min(t,Math.ceil((r+p)/s)+yo)}}function $o(t,r,s,p,n){let d=[];for(let e of t){if(!Ie(e.value))continue;let o=e.value,c=oe(e.value,r,s),a=n(e.label),i=u=>te(u,se(e.format??{type:"number"},r,s),p);switch(e.component){case"Choice":{let u=Re(e,r,s,n),f=m=>u.find(x=>x.value===m)?.label??String(m);if(Array.isArray(c))for(let m of c)d.push({key:`${e.id}:${m}`,label:f(m),binding:o,cleared:c.filter(x=>x!==m)});else c!=null&&c!==""&&d.push({key:e.id,label:f(c),binding:o,cleared:null});break}case"RangeInput":{if(e.mode==="range"&&Array.isArray(c)){let[u,f]=c.map(Number);(u>e.min||f<e.max)&&d.push({key:e.id,label:`${a}: ${i(u)} \u2013 ${i(f)}`,binding:o,cleared:[e.min,e.max]})}else typeof c=="number"&&c<e.max&&d.push({key:e.id,label:`${a}: ${i(c)}`,binding:o,cleared:e.max});break}case"Toggle":c===!0&&d.push({key:e.id,label:a,binding:o,cleared:!1});break;case"TextInput":typeof c=="string"&&c.trim()&&d.push({key:e.id,label:`${a}: ${c}`,binding:o,cleared:""});break;case"DateInput":c&&d.push({key:e.id,label:`${a}: ${String(c)}`,binding:o,cleared:null});break}}return d}var Po=640,So=(t,r)=>t===void 0?void 0:`${te(t,{type:"number"},r)} ${t===1?"result":"results"}`;var wi=[[10,[[1,16]]],[16,[[1,28]]],[26,[[1,44]]],[18,[[2,32]]],[24,[[2,43]]],[16,[[4,27]]],[18,[[4,31]]],[22,[[2,38],[2,39]]],[22,[[3,36],[2,37]]],[26,[[4,43],[1,44]]]],Pn=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50]];function zo(t,r){let s=0;for(let p=7;p>=0;p--)s=s<<1^(s>>>7)*285,s^=(r>>>p&1)*t;return s&255}function Sn(t,r){let s=new Array(r).fill(0);s[r-1]=1;let p=1;for(let d=0;d<r;d++){for(let e=0;e<r;e++)s[e]=zo(s[e],p),e+1<r&&(s[e]^=s[e+1]);p=zo(p,2)}let n=new Array(r).fill(0);for(let d of t){let e=d^n.shift();n.push(0),s.forEach((o,c)=>n[c]^=zo(o,e))}return n}var zn=[(t,r)=>(t+r)%2===0,(t,r)=>r%2===0,t=>t%3===0,(t,r)=>(t+r)%3===0,(t,r)=>(Math.floor(t/3)+Math.floor(r/2))%2===0,(t,r)=>t*r%2+t*r%3===0,(t,r)=>(t*r%2+t*r%3)%2===0,(t,r)=>((t+r)%2+t*r%3)%2===0];function Ao(t){let r=Array.from(new TextEncoder().encode(t)),s=0,p=0;for(let k=1;k<=10&&!s;k++){let $=wi[k-1][1].reduce((j,[A,C])=>j+A*C,0);4+(k<10?8:16)+r.length*8<=$*8&&(s=k,p=$)}if(!s)return;let[n,d]=wi[s-1],e=[],o=(k,$)=>{for(let j=$-1;j>=0;j--)e.push(k>>>j&1)};o(4,4),o(r.length,s<10?8:16);for(let k of r)o(k,8);let c=p*8;for(o(0,Math.min(4,c-e.length));e.length%8;)e.push(0);for(let k=236;e.length<c;k^=253)o(k,8);let a=[];for(let k=0;k<e.length;k+=8)a.push(e.slice(k,k+8).reduce(($,j)=>$<<1|j,0));let i=[],u=0;for(let[k,$]of d)for(let j=0;j<k;j++){let A=a.slice(u,u+$);i.push({d:A,e:Sn(A,n)}),u+=$}let f=[],m=Math.max(...i.map(k=>k.d.length));for(let k=0;k<m;k++)for(let $ of i)k<$.d.length&&f.push($.d[k]);for(let k=0;k<n;k++)for(let $ of i)f.push($.e[k]);let x=s*4+17,y=Array.from({length:x},()=>new Array(x).fill(!1)),h=Array.from({length:x},()=>new Array(x).fill(!1)),b=(k,$,j)=>{k>=0&&$>=0&&k<x&&$<x&&(y[$][k]=j,h[$][k]=!0)};for(let k=0;k<x;k++)b(6,k,k%2===0),b(k,6,k%2===0);let w=(k,$)=>{for(let j=-4;j<=4;j++)for(let A=-4;A<=4;A++){let C=Math.max(Math.abs(A),Math.abs(j));b(k+A,$+j,C!==2&&C!==4)}};w(3,3),w(x-4,3),w(3,x-4);let D=Pn[s-1],z=D.length-1;D.forEach((k,$)=>D.forEach((j,A)=>{if(!($===0&&A===0||$===0&&A===z||$===z&&A===0))for(let C=-2;C<=2;C++)for(let S=-2;S<=2;S++)b(k+S,j+C,Math.max(Math.abs(S),Math.abs(C))!==1)}));let R=k=>{let $=k,j=$;for(let S=0;S<10;S++)j=j<<1^(j>>>9)*1335;let A=($<<10|j)^21522,C=S=>(A>>>S&1)===1;for(let S=0;S<=5;S++)b(8,S,C(S));b(8,7,C(6)),b(8,8,C(7)),b(7,8,C(8));for(let S=9;S<15;S++)b(14-S,8,C(S));for(let S=0;S<8;S++)b(x-1-S,8,C(S));for(let S=8;S<15;S++)b(8,x-15+S,C(S));b(8,x-8,!0)};if(R(0),s>=7){let k=s;for(let j=0;j<12;j++)k=k<<1^(k>>>11)*7973;let $=s<<12|k;for(let j=0;j<18;j++){let A=($>>>j&1)===1,C=x-11+j%3,S=Math.floor(j/3);b(C,S,A),b(S,C,A)}}let q=0;for(let k=x-1;k>=1;k-=2){k===6&&(k=5);for(let $=0;$<x;$++)for(let j=0;j<2;j++){let A=k-j,C=(k+1&2)===0?x-1-$:$;!h[C][A]&&q<f.length*8&&(y[C][A]=(f[q>>>3]>>>7-(q&7)&1)===1,q++)}}let P=k=>{for(let $=0;$<x;$++)for(let j=0;j<x;j++)!h[$][j]&&zn[k](j,$)&&(y[$][j]=!y[$][j])},N=()=>{let k=0,$=C=>{let S=0,U=null;C.forEach((K,O)=>{if(K===U?(S++,S===5?k+=3:S>5&&(k+=1)):(U=K,S=1),O+7<=C.length){let V=C.slice(O,O+7),H=V[0]&&!V[1]&&V[2]&&V[3]&&V[4]&&!V[5]&&V[6],L=O>=4&&C.slice(O-4,O).every(B=>!B),_=O+11<=C.length&&C.slice(O+7,O+11).every(B=>!B);H&&(L||_)&&(k+=40)}})};for(let C=0;C<x;C++)$(y[C]),$(y.map(S=>S[C]));for(let C=0;C<x-1;C++)for(let S=0;S<x-1;S++)y[C][S]===y[C][S+1]&&y[C][S]===y[C+1][S]&&y[C][S]===y[C+1][S+1]&&(k+=3);let j=y.flat().filter(Boolean).length,A=x*x;return k+=(Math.ceil(Math.abs(j*20-A*10)/A)-1)*10,k},M=0,v=1/0;for(let k=0;k<8;k++){R(k),P(k);let $=N();P(k),$<v&&(v=$,M=k)}return R(M),P(M),y}var Io="More actions";function Co(t,r){for(let s=t.length-1;s>0;s--)if(r.get(t[s])?.component!=="Action")return s+1;return 1}function qo(t,r,s,p,n,d){if(t.length<=2)return t.length;let e=0,o=0;for(;o<t.length&&e+(o?s:0)+r(t[o])<=p;)e+=(o?s:0)+r(t[o++]);if(o<t.length){for(;o>d&&e+s+n>p;)e-=s+r(t[--o]);o=Math.max(o,d)}return o}function or(t){let r=t.filter(p=>p.tone!=="danger"),s=t.filter(p=>p.tone==="danger");return{usual:r,danger:s,divider:s.length>0&&r.length>0}}function Do(t,r={}){let s=r.data??t.data??{},p=new Set,n=r.locale??"en-GB",d=()=>p.forEach(o=>o(s)),e={document:t,byId:er(t),get data(){return s},locale:n,setValue(o,c){let a=Je(s,o,c);r.events?.edited(o),s=r.derive?.(a)??a,r.onDataChange?.(s),d()},replaceData(o){s=o,d()},dispatch:(o,c,a)=>ha(o,c,a,s,r),subscribe(o){return p.add(o),()=>p.delete(o)},resolve:(o,c=ye)=>oe(o,s,c),text(o,c,a=ye){let i=oe(o,s,a);return c?te(i,se(c,s,a),n):i==null?"":String(i)},pointer:(o,c=ye)=>Y(o.path,c),write:(o,c,a=ye)=>e.setValue(Y(o.path,a),c),context:(o,c=ye)=>je(o,s,c),visible:(o,c=ye)=>o.visible===void 0||oe(o.visible,s,c)!==!1};return e}function To(t,r){let s={"data-pxd-id":t.id,"data-pxd-component":t.component},p=t.accessibility;return p?{...s,"aria-label":p.label!==void 0?r(p.label):void 0,"aria-description":p.description!==void 0?r(p.description):void 0,"aria-live":p.live,"aria-hidden":p.hidden||void 0}:s}var An=/^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/,qr=t=>typeof t=="string"&&An.test(t)?t:void 0,In=[["valueMissing","required"],["typeMismatch","type"],["patternMismatch","pattern"],["tooShort","too-short"],["tooLong","too-long"],["rangeUnderflow","too-low"],["rangeOverflow","too-high"],["stepMismatch","step"],["badInput","bad-input"],["customError","custom"]];function Eo(t){for(let[r,s]of In)if(t?.[r])return s;return"invalid"}function Mo(t,r){return r&&t.size>r?"file-too-large":"file-type"}function Cn(){let t=globalThis.crypto;return t?.randomUUID?t.randomUUID():`s_${Date.now().toString(36)}${Math.random().toString(36).slice(2,10)}`}function qn(){return{kind:globalThis.navigator?.webdriver===!0?"agent":"human"}}function No(t,r){return t?{id:t.id,...typeof t.key=="string"?{key:t.key}:{},type:t.component}:{id:r}}function ki(t,r){let s=t?r.get(t):void 0;return s?s.component==="ActionBar"?(s.children??[]).flatMap(p=>ki(p,r)):[s.id]:[]}function Dn(t,r){if(!t)return!1;let p=(t.component==="Form"?t.submit:t.component==="Confirm"?t.confirm:t.component==="Steps"?t.finish:void 0)?.action;if(!p)return!1;if(p===r)return!0;let n=t.cancel?.action;return p.event.name===r.event.name&&n?.event?.name!==r.event.name}function jo(t,r,s={}){let p=s.now??Date.now,n=s.sessionId??Cn(),d=s.actor?{kind:s.actor.kind==="agent"?"agent":"human",...typeof s.actor.assistiveTech=="boolean"?{assistiveTech:s.actor.assistiveTech}:{}}:qn(),e=er(t),o=t.surface,c=s.journey?.id??o.journey,a={id:o.id,intent:o.intent??o.id,...o.pattern?{pattern:o.pattern}:{},...c?{journey:c}:{},...t.specVersion?{specVersion:t.specVersion}:{},...s.generator?{generator:s.generator}:{},...s.direction?{direction:s.direction}:{},...s.experiment?{experiment:Object.fromEntries(Object.entries(s.experiment).filter(([,v])=>typeof v=="string"))}:{}},i=o.kind==="shell",u=new Set(t.components.filter(v=>v.component==="Status"&&v.kind==="undo").flatMap(v=>ki(v.action,e))),f=new Map((s.journey?.checkpoints??[]).filter(v=>v.event).map(v=>[v.event,v.key])),m=s.journey?.done?.event,x,y=0,h,b=!1,w=!1,D=!1,z=!1,R=new Set,q=(v,k={})=>{v!=="surface.shown"&&x===void 0&&M();let $=p(),j={type:v,timestamp:new Date($).toISOString(),sessionId:n,surface:a,actor:d,...k};v==="surface.shown"?x=$:(j.durationMs=Math.max(0,Math.round($-(x??$))),j.steps=y);try{r(j)}catch{}},P=v=>No(e.get(v),v),N=v=>{D||(D=!0,!(v==="unmount"&&(b||w))&&(q("surface.dismissed",{reason:v}),!i&&y>0&&!b&&!w&&q("task.abandoned",{reason:v})))};function M(){x===void 0&&q("surface.shown")}return{sessionId:n,shown(){z=!1,M()},action(v,k){if(!v?.event?.name)return;M();let $=v.event.name,j=e.get(k);if($==="ui.dismiss"){j&&(j.component==="Panel"||j.component==="Confirm")&&t.root!==j.id||N("dismiss");return}y++,h=void 0;let A=P(k);q("action.taken",{component:A,capability:$});let C=f.get($);C!==void 0&&!R.has(C)&&(R.add(C),w=!0,q("checkpoint.reached",{component:A,capability:$,checkpoint:C}));let S=Dn(j,v);(i?!1:m!==void 0?$===m:S)&&!b?(b=!0,q("task.completed",{component:A,capability:$})):S&&!i&&(w=!0),u.has(k)&&q("undo",{component:A,capability:$})},edited(v){v!==h&&(h=v,y++)},inputError(v,k){let $=typeof v=="string"?e.get(v):v,j=typeof v=="string"?v:v.id;q("input.error",{component:No($,j),reason:qr(k)??"invalid"})},statusShown(v){let k=qr(v.kind);q("status.shown",{component:No(v,v.id),...k?{reason:k}:{}})},feedback(v,k){if(v!==-1&&v!==0&&v!==1)return;let $=qr(k);q("feedback",{rating:v,...$?{reason:$}:{}})},regenerated(v){if(D)return;D=!0;let k=qr(v);q("surface.regenerated",k?{reason:k}:{})},unmounted(v=!0){if(!D){if(!v)return z=!1,N("unmount");z||(z=!0,queueMicrotask(()=>{z&&N("unmount"),z=!1}))}}}}var Tn="http://www.w3.org/2000/svg",Ai=new Set(["svg","path","circle","rect","line","polyline","polygon","g","text"]),Nn=new Set(["value","checked","selected","indeterminate","textContent"]),En=new Set(["list","form","type","autocomplete","for","role","tabindex","lang","dir","translate","spellcheck","autocapitalize","autocorrect","inputmode","enterkeyhint","colspan","rowspan","scope","title","width","height","size","min","max","step","pattern","placeholder","maxlength","minlength","accept","alt","src","href","rel","poster","controls","name","contenteditable","draggable","autofocus"]);function l(t,r,...s){let p=r??{};return{tag:t,props:p,children:s,key:p.key}}var ot=(t,r)=>({dom:t,key:r}),Ze=t=>!!t&&typeof t=="object"&&"dom"in t;function Dr(t,r=[]){for(let s of t)s==null||s===!1||(Array.isArray(s)?Dr(s,r):typeof s=="number"?r.push(String(s)):r.push(s));return r}function Mn(t,r,s){if(typeof r=="string"){t.style.cssText=r;return}let p=r??{},n=typeof s=="object"&&s||{};for(let d of Object.keys(n))d in p||(d.startsWith("--")?t.style.removeProperty(d):t.style[d]="");for(let[d,e]of Object.entries(p))e==null?d.startsWith("--")?t.style.removeProperty(d):t.style[d]="":d.startsWith("--")?t.style.setProperty(d,String(e)):t.style[d]=typeof e=="number"&&!/^(opacity|zIndex|flex|lineHeight|fontWeight|order)$/.test(d)?`${e}px`:String(e)}function Ro(t,r,s,p,n){if(r==="key"||r==="children")return;if(r==="ref"){t.__ref=s;return}if(r.startsWith("on")&&(typeof s=="function"||s===void 0)){let e=r.slice(2).toLowerCase(),o=t.__on??={};s&&!o[e]&&t.addEventListener(e,c=>t.__on?.[e]?.(c)),s?o[e]=s:delete o[e];return}if(r==="style")return Mn(t,s,p);if(r==="class"||r==="className"){let e=s==null||s===!1?"":String(s);n?e?t.setAttribute("class",e):t.removeAttribute("class"):t.className!==e&&(t.className=e);return}let d=r.toLowerCase();if(!n&&Nn.has(r)){let e=s??(typeof t[r]=="boolean"?!1:"");t[r]!==e&&(t[r]=e);return}if(!n&&!r.includes("-")&&!En.has(d)&&r in t&&typeof t[r]!="function"&&typeof t[r]=="boolean"){t[r]=!!s;return}s==null||s===!1&&!r.startsWith("aria-")?t.removeAttribute(d==="classname"?"class":r):t.setAttribute(r,s===!0?r.startsWith("aria-")||r==="draggable"||r==="contenteditable"?"true":"":String(s))}function Ii(t,r){if(typeof t=="string"){let n=document.createTextNode(t);return n.__vnode=t,n}if(Ze(t))return t.dom.__vnode=t,t.dom;let s=r||Ai.has(t.tag),p=s?document.createElementNS(Tn,t.tag):document.createElement(t.tag);for(let[n,d]of Object.entries(t.props))Ro(p,n,d,void 0,s);for(let n of Dr(t.children))p.appendChild(Ii(n,s));return p.__vnode=t,p}function Ci(t){let r=t;if(r.nodeType===1){r.__ref?.(r);for(let s of Array.from(r.childNodes))(!s.__vnode||!Ze(s.__vnode))&&Ci(s)}}function Bo(t){let r=t;if(r.nodeType===1&&!Ze(r.__vnode)){r.__ref?.(null);for(let s of Array.from(r.childNodes))Bo(s)}}var ir=t=>t&&typeof t=="object"?t.key:void 0,zi=(t,r)=>t!==void 0&&typeof t==typeof r&&(typeof t=="string"||(Ze(t)?Ze(r)&&t.dom===r.dom:!Ze(r)&&t.tag===r.tag&&ir(t)===ir(r)));function jn(t,r,s){let p=t,n=p.__vnode;if(typeof r=="string"){t.textContent!==r&&(t.textContent=r),p.__vnode=r;return}if(Ze(r))return;let d=n?.props??{},e=s||Ai.has(r.tag);for(let o of Object.keys(d))o in r.props||Ro(p,o,void 0,d[o],e);for(let[o,c]of Object.entries(r.props))(o==="style"||o==="ref"||d[o]!==c)&&Ro(p,o,c,d[o],e);p.__vnode=r,qi(p,Dr(r.children),e)}function qi(t,r,s){let p=Array.from(t.childNodes),n=new Map;for(let o of p){let c=ir(o.__vnode);c!==void 0&&n.set(c,o)}let d=new Set,e=p[0]??null;for(let o of r){let c=ir(o),a;if(c!==void 0?a=n.get(c):e&&!d.has(e)&&ir(e.__vnode)===void 0&&zi(e.__vnode,o)&&(a=e),a&&zi(a.__vnode,o))d.add(a),a!==e?t.insertBefore(a,e):e=e.nextSibling??null,jn(a,o,s);else{let i=Ii(o,s);t.insertBefore(i,e),Ci(i)}}for(let o of p)d.has(o)||(Bo(o),o.remove())}function sr(t,r){qi(t,Dr(r),!1)}function _o(t){for(let r of Array.from(t.childNodes))Bo(r),r.remove()}var Ti=t=>t instanceof HTMLElement&&(t.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName));function Se(t,...r){let{checked:s,onCheckedChange:p,indicator:n,...d}=t,e=s==="indeterminate"?"indeterminate":s?"checked":"unchecked";return l("button",{type:"button",role:"checkbox","aria-checked":s==="indeterminate"?"mixed":s,"data-state":e,value:"on",...d,onClick:()=>p(s==="indeterminate"?!0:!s)},e!=="unchecked"?n:null,...r)}function _e(t,...r){let{value:s,onValueChange:p,orientation:n,...d}=t;return l("div",{role:"radiogroup","aria-orientation":n,dir:"ltr",tabindex:"0",style:{outline:"none"},...d,"data-value":s,onKeydown:c=>{let a=c.currentTarget,i=Array.from(a.querySelectorAll('[role="radio"]:not(:disabled)')),u=i.indexOf(document.activeElement);if(u<0||!i.length)return;let f=c.key==="ArrowDown"||c.key==="ArrowRight",m=c.key==="ArrowUp"||c.key==="ArrowLeft";if(!f&&!m)return;c.preventDefault();let x=i[(u+(f?1:i.length-1))%i.length];x.focus(),x.click()},onFocus:c=>{let a=c.currentTarget;if(c.target!==a)return;let i=Array.from(a.querySelectorAll('[role="radio"]:not(:disabled)'));(i.find(u=>u.getAttribute("aria-checked")==="true")??i[0])?.focus()},onFocusin:c=>c.currentTarget.tabIndex=-1,onFocusout:c=>{let a=c.currentTarget;a.contains(c.relatedTarget)||(a.tabIndex=0)}},...r)}function Ke(t,...r){let{value:s,group:p,first:n,onSelect:d,indicator:e,...o}=t,c=p===s;return l("button",{type:"button",role:"radio","aria-checked":c,"data-state":c?"checked":"unchecked",value:s,tabindex:c||p===""&&n?"0":"-1",...o,onClick:()=>!c&&d()},c?e:null,...r)}function Ni(t){let{checked:r,onCheckedChange:s,...p}=t,n=r?"checked":"unchecked";return l("button",{type:"button",role:"switch","aria-checked":r,"data-state":n,value:"on",...p,onClick:()=>s(!r)},l("span",{"data-state":n,class:"pxd-switch-thumb"}))}var Di=20;function Ho(t){let{min:r,max:s,step:p}=t,n=s-r||1,d=y=>(y-r)/n*100,e=y=>Math.min(s,Math.max(r,y)),o=y=>e(r+Math.round((y-r)/p)*p),c=(y,h)=>{let b=[...t.values];b[y]=o(h);let w=(t.minStepsBetweenThumbs??0)*p;b.length===2&&(y===0?b[0]=Math.min(b[0],b[1]-w):b[1]=Math.max(b[1],b[0]+w)),t.onValueChange(b)},a=y=>h=>{let b=t.values[y],w=p*10,D=h.key==="ArrowRight"||h.key==="ArrowUp"?b+p:h.key==="ArrowLeft"||h.key==="ArrowDown"?b-p:h.key==="PageUp"?b+w:h.key==="PageDown"?b-w:h.key==="Home"?r:h.key==="End"?s:void 0;D!==void 0&&(h.preventDefault(),c(y,D))},i=y=>{if(y.pointerType==="mouse"&&y.button!==0)return;let h=y.currentTarget,b=h.querySelector(".pxd-slider-track"),w=P=>{let N=b.getBoundingClientRect();return r+Math.min(1,Math.max(0,(P-N.left)/(N.width||1)))*n},D=w(y.clientX),z=0;t.values.forEach((P,N)=>{Math.abs(P-D)<Math.abs(t.values[z]-D)&&(z=N)}),y.preventDefault(),h.querySelectorAll('[role="slider"]')[z]?.focus(),c(z,D);let R=P=>c(z,w(P.clientX)),q=()=>{document.removeEventListener("pointermove",R),document.removeEventListener("pointerup",q)};document.addEventListener("pointermove",R),document.addEventListener("pointerup",q)},u=d(t.values[0]),f=d(t.values[t.values.length-1]),m=t.values.length===1?{left:"0%",right:`${100-f}%`}:{left:`${u}%`,right:`${100-f}%`},x=y=>Di/2-y/50*(Di/2);return l("span",{dir:"ltr","data-orientation":"horizontal",class:"pxd-slider",style:{"--radix-slider-thumb-transform":"translateX(-50%)"},onPointerdown:i},l("span",{"data-orientation":"horizontal",class:"pxd-slider-track"},l("span",{"data-orientation":"horizontal",class:"pxd-slider-range",style:m})),...t.values.map((y,h)=>l("span",{key:h,style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",left:`calc(${d(y)}% + ${x(d(y))}px)`}},l("span",{role:"slider","aria-label":t.thumbs[h]?.["aria-label"],"aria-labelledby":t.thumbs[h]?.["aria-labelledby"],"aria-valuemin":r,"aria-valuenow":y,"aria-valuemax":s,"aria-valuetext":t.thumbs[h]?.["aria-valuetext"],"aria-orientation":"horizontal","data-orientation":"horizontal",tabindex:"0",class:"pxd-slider-thumb",onKeydown:a(h)}))))}function Ei(t){let r=s=>{let p=s.currentTarget,n=Array.from(p.querySelectorAll('[role="tab"]')),d=n.indexOf(document.activeElement);if(d<0)return;let e=s.key==="ArrowRight"?(d+1)%n.length:s.key==="ArrowLeft"?(d+n.length-1)%n.length:s.key==="Home"?0:s.key==="End"?n.length-1:-1;e<0||(s.preventDefault(),n[e].focus(),n[e].click())};return l("div",{dir:"ltr","data-orientation":"horizontal",class:t.rootClass,...t.rootProps??{}},l("div",{role:"tablist","aria-orientation":"horizontal",class:t.listClass,tabindex:"-1","data-orientation":"horizontal",style:{outline:"none"},onKeydown:r},...t.tabs.map(s=>{let p=s.key===t.value;return l("button",{key:s.key,type:"button",role:"tab","aria-selected":p,"aria-controls":`${t.id}-content-${s.key}`,"data-state":p?"active":"inactive",id:`${t.id}-trigger-${s.key}`,tabindex:p?"0":"-1","data-orientation":"horizontal",class:t.tabClass,onClick:()=>t.onValueChange(s.key)},...s.label)})),...t.tabs.map(s=>{let p=s.key===t.value;return l("div",{key:s.key,"data-state":p?"active":"inactive","data-orientation":"horizontal",role:"tabpanel","aria-labelledby":`${t.id}-trigger-${s.key}`,id:`${t.id}-content-${s.key}`,tabindex:"0",class:t.panelClass,hidden:!p,style:{animationDuration:"0s"}},p?s.content:null)}))}function ze(t,...r){let s=t.dismissible!==!1;t.ctx.r.modals++;let p=d=>{let e=d;if(e&&!e.open)try{e.showModal()}catch{e.setAttribute("open","")}t.ref?.(e)},n=d=>{d.open&&d.close(),t.onClose()};return[l("div",{key:`${t.id}-overlay`,"data-state":"open",class:t.overlayClass??"pxd-overlay","aria-hidden":"true",style:{pointerEvents:"auto"}}),l("dialog",{key:t.id,role:t.role??"dialog","data-state":"open",class:t.class,tabindex:"-1","data-pxd-modal":"",...t.props??{},ref:p,onCancel:d=>{d.preventDefault(),s&&n(d.currentTarget)},onClick:d=>{let e=d.currentTarget;if(d.target!==e)return;let o=e.getBoundingClientRect();!(d.clientX>=o.left&&d.clientX<=o.right&&d.clientY>=o.top&&d.clientY<=o.bottom)&&s&&n(e)},onClose:()=>t.onClose()},...r)]}var qe=(t,r,...s)=>l("button",{type:"button",...r,onClick:p=>{let n=p.currentTarget.closest("dialog");n?.open&&n.close(),t()}},...s),De=()=>({open:!1,x:0,y:0,align:"end"});function it(t,r,s,p,n){let d=(e,o)=>{let c=e.getBoundingClientRect();s({open:!0,x:p==="end"?c.right:c.left,y:c.bottom+4,keyboard:o,align:p})};return{id:`${t}-trigger`,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?`${t}-content`:void 0,"data-state":r.open?"open":"closed",...n,onPointerdown:e=>{e.button!==0||e.ctrlKey||(e.preventDefault(),r.open?s(De()):d(e.currentTarget,!1))},onKeydown:e=>{(e.key==="Enter"||e.key===" "||e.key==="ArrowDown")&&(e.preventDefault(),d(e.currentTarget,!0))}}}function We(t,r,s,p,n,d){if(!s.open)return;let e=(i=!0)=>{p(De()),i&&(document.getElementById(`${r}-trigger`)??t.r.root?.querySelector(`[data-pxd-menu-trigger="${r}"]`))?.focus()},o=i=>{let u=i.currentTarget,f=Array.from(u.querySelectorAll('[role="menuitem"]:not([data-disabled])')),m=f.indexOf(document.activeElement);if(i.key==="Escape")return i.preventDefault(),e();if(i.key==="Tab")return e(!1);let x=i.key==="ArrowDown"?(m+1)%f.length:i.key==="ArrowUp"?(m+f.length-1)%f.length:i.key==="Home"?0:i.key==="End"?f.length-1:-1;x>=0&&f.length&&(i.preventDefault(),f[x].focus())},c=null,a=i=>{if(!i){c&&document.removeEventListener("pointerdown",c,!0),c=null;return}let u=i,f=u.getBoundingClientRect(),m=u.parentElement,x=s.align==="end"?Math.max(8,s.x-f.width):Math.min(s.x,window.innerWidth-f.width-8),y=s.y+f.height>window.innerHeight?Math.max(8,s.y-f.height-8):s.y;m.style.transform=`translate(${Math.round(x)}px, ${Math.round(y)}px)`;let h=u.querySelector('[role="menuitem"]:not([data-disabled])');(s.keyboard&&h?h:u).focus({preventScroll:!0}),c=b=>{!u.contains(b.target)&&!b.target.closest?.(`#${CSS.escape(`${r}-trigger`)}`)&&e(!1)},document.addEventListener("pointerdown",c,!0)};t.portal(l("div",{key:`${r}-menu`,"data-radix-popper-content-wrapper":"",style:{position:"fixed",left:"0px",top:"0px",minWidth:"max-content",zIndex:12}},l("div",{role:"menu","aria-orientation":"vertical","data-state":"open",dir:"ltr",id:`${r}-content`,"aria-labelledby":`${r}-trigger`,tabindex:"-1",style:{outline:"none"},...d,ref:a,onKeydown:o},...n.map((i,u)=>i==="separator"?l("div",{key:`sep-${u}`,role:"separator","aria-orientation":"horizontal",class:"pxd-menu-separator"}):l("div",{key:i.key,role:"menuitem",class:i.class,tabindex:"-1","data-orientation":"vertical","aria-disabled":i.disabled||void 0,"data-disabled":i.disabled?"":void 0,...i.props??{},onPointermove:f=>{f.currentTarget.focus()},onFocus:f=>{for(let m of f.currentTarget.parentElement.querySelectorAll("[data-highlighted]"))m.removeAttribute("data-highlighted");f.currentTarget.setAttribute("data-highlighted","")},onBlur:f=>f.currentTarget.removeAttribute("data-highlighted"),onClick:()=>{i.disabled||(e(),i.onSelect())},onKeydown:f=>{(f.key==="Enter"||f.key===" ")&&!i.disabled&&(f.preventDefault(),e(),i.onSelect())}},...i.label)))))}function Mi(t,r,s,p,n,d,...e){let o=null,c=null,a=i=>{if(!i){o&&document.removeEventListener("pointerdown",o,!0),c&&document.removeEventListener("keydown",c),o=c=null;return}let u=i,f=u.parentElement,m=t.r.root?.querySelector(s),x=m?.getBoundingClientRect()??{left:8,bottom:8,width:0},y=u.getBoundingClientRect(),h=Math.max(8,Math.min(x.left+x.width/2-y.width/2,window.innerWidth-y.width-8)),b=x.bottom+8+y.height>window.innerHeight?Math.max(8,(m?.getBoundingClientRect().top??0)-8-y.height):x.bottom+8;f.style.transform=`translate(${Math.round(h)}px, ${Math.round(b)}px)`,(u.querySelector("button, [href], input, select, textarea, [tabindex]:not([tabindex='-1'])")??u).focus({preventScroll:!0}),n&&(o=w=>{u.contains(w.target)||p()},c=w=>w.key==="Escape"&&p(),document.addEventListener("pointerdown",o,!0),document.addEventListener("keydown",c))};t.portal(l("div",{key:`${r}-popover`,"data-radix-popper-content-wrapper":"",style:{position:"fixed",left:"0px",top:"0px",minWidth:"max-content",zIndex:12}},l("div",{"data-side":"bottom","data-align":"center","data-state":"open",role:"dialog",id:`${r}-content`,tabindex:"-1",...d,ref:a},...e)))}var Te=(t,r)=>(r??[]).map(s=>t.render(s));function Ne(t,r,...s){return l(`h${Math.min(t.heading,6)}`,{class:r},...s)}function ji(t,r){let s=r.b,p=r.id(t,"heading");return l("section",{class:"pxd-section","aria-labelledby":p,...r.a11y(t)},l("div",{class:"pxd-section-header"},l(`h${Math.min(r.heading,6)}`,{id:p,class:"pxd-section-title"},s.text(t.title)),t.description!==void 0&&l("p",{class:"pxd-section-description"},s.text(t.description))),l("div",{class:"pxd-stack"},...Te(r.with({heading:r.heading+1}),t.children)))}function Ri(t,r){let s=(t.children??[]).map(e=>r.r.byId.get(e)),p=s.length>1&&s.every(e=>e?.component==="Metric"),n=t.arrangement??"auto";return l("div",{class:`pxd-group pxd-stack${n==="inline"?" pxd-group-inline":n==="grid"?" pxd-group-grid":p?" pxd-metric-row":""}`,...r.a11y(t)},...Te(r,t.children))}function Bi(t,r){return l("div",{class:`pxd-columns pxd-columns-${t.layout??"two-thirds"} pxd-columns-collapse-${t.collapse??"compact"} pxd-columns-align-${t.align??"stretch"}`,...r.a11y(t)},...Te(r,t.children))}function _i(t,r){let s=r.b,p=s.text(t.title),n=t.badge?.tone??"neutral";return l("article",{class:`pxd-card${t.action?" pxd-card-actionable":""}`,...r.a11y(t)},t.media&&l("div",{class:"pxd-card-media"},r.render(t.media)),l("div",{class:"pxd-card-body"},l("div",{class:"pxd-card-header"},Ne(r,"pxd-card-title",t.action?l("button",{type:"button",class:"pxd-card-link",onClick:()=>r.r.dispatch(t.action,s.scope,t.id)},p):p),t.badge&&l("span",{class:`pxd-badge pxd-tone-${n}`},s.text(t.badge.text))),t.subtitle!==void 0&&l("p",{class:"pxd-card-subtitle"},s.text(t.subtitle)),t.progress&&Rn(s.value(t.progress.value),t.progress.label!==void 0&&s.text(t.progress.label)||void 0,p,r.r.locale),t.children&&l("div",{class:"pxd-stack pxd-stack-tight pxd-card-children"},...Te(r,t.children))))}function Rn(t,r,s,p){let n=Math.max(0,Math.min(1,Number(t)||0)),d=Ur(n,p);return l("div",{class:"pxd-progress"},l("div",{class:"pxd-progress-track",role:"progressbar","aria-label":`Progress: ${s}`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(n*100),"aria-valuetext":r??d},l("div",{class:"pxd-progress-fill",style:{width:`${n*100}%`}})),l("span",{class:"pxd-progress-label"},r??d))}function Hi(t,r){let s=r.b,[p,n]=r.state(t,"open",()=>t.open??r.r.disclosure==="show-everything"),d=r.id(t,"content"),e=p?"open":"closed";return l("div",{"data-state":e,class:"pxd-disclosure",...r.a11y(t)},l("button",{type:"button","aria-controls":p?d:void 0,"aria-expanded":p,"data-state":e,class:"pxd-disclosure-trigger",onClick:()=>n(!p)},l("span",{class:"pxd-disclosure-icon","aria-hidden":"true"},p?"\u25BE":"\u25B8"),s.text(t.summary)),l("div",{"data-state":e,id:d,hidden:!p,class:"pxd-disclosure-content"},p?l("div",{class:"pxd-stack"},...Te(r,t.children)):null))}function Fi(t,r){let s=r.b,p=t.selected?s.value(t.selected):void 0,[n,d]=r.state(t,"view",void 0),e=ra(t.views,p,n),o=c=>t.selected?s.write(t.selected,c):d(c);return Ei({id:r.id(t),value:e,onValueChange:o,rootClass:`pxd-views pxd-views-${t.variant??"tabs"}`,rootProps:r.a11y(t),listClass:"pxd-views-list",tabClass:"pxd-views-tab",panelClass:"pxd-views-panel",tabs:t.views.map(c=>{let a=c.count!==void 0?s.value(c.count):void 0;return{key:c.key,label:[s.text(c.label),a!==void 0&&l("span",{class:"pxd-views-count"},Xe(a,r.r.locale))],content:r.render(c.content)}})})}function ge(t,{value:r,name:s,size:p=40}){let n=typeof r=="string"?r:"",d=Ga(n)?t.r.props.resolveMedia?.(n):void 0,e=Wa(n,s),o=Ka(s);return d?l("img",{class:"pxd-avatar",src:d,alt:"",width:p,height:p,style:{width:p,height:p}}):l("span",{class:`pxd-avatar pxd-avatar-${o}`,"aria-hidden":"true",style:{width:p,height:p,fontSize:Math.round(p*.38)}},e)}function Z(t,r=20){return l("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},l("path",{d:Ya(t)}))}function Ui(t,r){let s=r.b,[p,n]=r.state(t,"split",()=>ia(t.ratio)),[d,e]=r.state(t,"previous",()=>s.value(t.selected)),o=s.value(t.selected),{has:c,scope:a,name:i}=na(t,r.r.byId,r.r.data,s.scope),u=w=>n(D=>vr(D,w)),f=!1;o!==d&&(e(o),p.listShown&&u({type:"selected"}),f=p.compact&&c);let{showList:m,showDetail:x}=sa(p,c),y=w=>{if(w.pointerType==="mouse"&&w.button!==0)return;let D=w.currentTarget,z=D.parentElement;D.setPointerCapture(w.pointerId);let R=z.getBoundingClientRect(),q=getComputedStyle(z).direction==="rtl",P=M=>{let v=q?R.right-M.clientX:M.clientX-R.left;u({type:"share",value:v/R.width*100})},N=()=>{z.removeEventListener("pointermove",P),z.removeEventListener("pointerup",N),z.removeEventListener("pointercancel",N)};z.addEventListener("pointermove",P),z.addEventListener("pointerup",N),z.addEventListener("pointercancel",N)},h=!!t.resizable&&!p.compact,b=w=>{if(!w)return;let D=w.closest(".pxd-surface")??w;r.r.observeWidth(D,`${t.id}:split`,z=>u({type:"measure",width:z}))};return f&&r.after(()=>r.r.root?.querySelector(`[data-pxd-id="${t.id}"] > .pxd-split-detail`)?.focus()),l("div",{class:`pxd-split pxd-split-${t.ratio??"narrow"}${p.compact?" pxd-split-compact":""}${h?" pxd-split-resizable":""}`,style:h?{"--polyxd-split-share":`${p.share}%`}:void 0,...r.a11y(t),ref:b},l("div",{class:"pxd-split-primary",hidden:!m},r.render(t.primary)),h&&l("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize the list","aria-valuenow":Math.round(p.share),"aria-valuemin":rr,"aria-valuemax":ar,tabindex:"0",class:"pxd-split-handle",onKeydown:w=>{let D=vr(p,{type:"key",key:w.key,shift:w.shiftKey});D!==p&&(w.preventDefault(),n(D))},onPointerdown:y},l("span",{class:"pxd-split-handle-line","aria-hidden":"true"})),x&&l("div",{class:"pxd-split-detail",tabindex:"-1","aria-label":i},p.compact&&l("button",{type:"button",class:"pxd-button pxd-button-tertiary pxd-split-back",onClick:()=>u({type:"back"})},Z("chevronLeft",18),"Back"),c?r.render(t.detail,a):t.empty?r.render(t.empty):null),l("span",{class:"pxd-sr-only","aria-live":"polite"},p.compact&&c&&!p.listShown?i:""))}function Fo(t){return"block"in t?l("span",{class:`pxd-skeleton-block pxd-skeleton-${t.block}${t.size?` pxd-skeleton-${t.size}`:""}`}):l("div",{class:la[t.group]},...t.parts.map(Fo))}function nr({title:t,pattern:r,shape:s,theme:p,mode:n,density:d,locale:e="en-GB",className:o}){let c=da(r,s);return l("div",{class:["pxd-surface","pxd-skeleton",`pxd-skeleton-${c}`,o].filter(Boolean).join(" "),"data-pxd-theme":p,"data-pxd-mode":n,"data-pxd-density":d,lang:e,role:"status","aria-busy":"true"},l("span",{class:"pxd-sr-only"},ca(t)),l("div",{class:"pxd-skeleton-body","aria-hidden":"true"},Fo({block:"title",size:c==="dialog"?"short":"medium"}),...pa[c].map(Fo)))}function Vi(t,r){let s=r.r,p=r.id(t,"main"),[n,d]=r.state(t,"width","wide"),[e,o]=r.state(t,"drawer",!1),c=t.navigation?s.byId.get(t.navigation):void 0,a=za(c?.placement,n,c?.items?.length??0),i=y=>String(oe(y,s.data,ye)??"");a!=="drawer"&&e&&o(!1);let u={navigation:a,compact:n==="compact",mainId:p,navigationId:c?.id,navigationLabel:c?c.label!==void 0?i(c.label):"Main":void 0,current:s.props.current,drawerOpen:e,setDrawerOpen:o},f=r.with({frame:u}),m=t.header?s.byId.get(t.header):void 0,x=t.aside?s.byId.get(t.aside):void 0;return l("div",{class:`pxd-frame pxd-frame-width-${t.width??"contained"}`,"data-pxd-layout":n,"data-pxd-nav":a,"data-pxd-appbar":m?.component==="AppBar"&&m.sticky!==!1?m.variant??"standard":void 0,...r.a11y(t),ref:y=>y&&s.observeWidth(y,`${t.id}:frame`,h=>d(Sa(h)))},t.skipTarget!==!1&&l("a",{class:"pxd-skip-link",href:`#${p}`,onClick:y=>{y.preventDefault(),document.getElementById(p)?.focus()}},"Skip to main content"),t.banner&&l("div",{class:"pxd-frame-banner"},f.render(t.banner)),t.header&&f.render(t.header),l("div",{class:"pxd-frame-body"},c&&l("div",{class:"pxd-frame-nav"},f.render(c.id)),l("div",{class:"pxd-frame-main"},f.render(t.main)),x&&l("aside",{class:"pxd-frame-aside","aria-label":x.title!==void 0?i(x.title):"Aside"},f.render(x.id))),t.footer&&f.render(t.footer))}function Bn(t,r,s){let p=typeof r=="string"?r:"",n=p.length>3?t.r.props.resolveMedia?.(p):void 0;if(n)return l("img",{class:"pxd-appbar-logo",src:n,alt:""});let d=(p&&p.length<=3?p:s.split(/\s+/).map(e=>e[0]).join("").slice(0,2)).toUpperCase();return l("span",{class:"pxd-appbar-mark","aria-hidden":"true"},d)}function Li(t,r){let s=r.b,p=r.frame,[n,d]=r.state(t,"scrolled",!1),[e,o]=r.state(t,"search",!1),c=t.variant??"standard",a=t.sticky!==!1,i=p?.compact??!1,u=s.text(t.title),f=Aa(u,i,p?.current?.title),m=p?.navigation==="drawer",x=new WeakMap,y=b=>{if(!b||!a||typeof IntersectionObserver>"u"||x.has(b))return;let w=new IntersectionObserver(([D])=>d(!D.isIntersecting));w.observe(b),x.set(b,w)},h=b=>l("div",{class:`pxd-appbar-search${b?" pxd-appbar-search-row":""}`,role:"search","aria-label":"Search",ref:b?w=>w&&e&&!w.dataset.focused&&(w.dataset.focused="1",w.querySelector("input, button")?.focus()):void 0},r.render(t.search));return[l("div",{class:"pxd-appbar-sentinel","aria-hidden":"true",ref:y}),l("header",{class:`pxd-appbar pxd-appbar-${c}${a?" pxd-appbar-sticky":""}`,"data-pxd-scrolled":n||void 0,...r.a11y(t)},l("div",{class:"pxd-appbar-row"},m?l("button",{type:"button",class:"pxd-icon-button pxd-appbar-menu","aria-label":`${p.navigationLabel??"Main"} menu`,"aria-expanded":p.drawerOpen,onClick:()=>p.setDrawerOpen(!0)},Z("menu")):t.leading&&l("div",{class:"pxd-appbar-leading"},r.render(t.leading)),l("div",{class:"pxd-appbar-brand"},t.brand!==void 0&&Bn(r,s.value(t.brand),u),(c!=="large"||i)&&l("span",{class:"pxd-appbar-title"},f)),t.search&&(i?l("button",{type:"button",class:"pxd-icon-button pxd-appbar-search-toggle","aria-label":e?"Close search":"Search","aria-expanded":e,onClick:()=>o(!e)},Z(e?"close":"search")):h(!1)),(t.actions||t.account)&&l("div",{class:"pxd-appbar-end"},t.actions&&l("div",{class:"pxd-appbar-actions"},r.render(t.actions)),t.account&&l("div",{class:"pxd-appbar-account"},r.render(t.account)))),t.search&&i&&e&&h(!0),c==="large"&&!i&&l("div",{class:"pxd-appbar-headline"},f))]}function Zi(t,r){let s=r.b,p=Math.min(r.heading,6),n=t.groups??[];return l("footer",{class:"pxd-footer",...r.a11y(t)},n.length>0&&l("div",{class:"pxd-footer-groups"},...n.map(d=>{let e=r.id(t,d.key);return l("nav",{key:d.key,class:"pxd-footer-group","aria-labelledby":e},l(`h${p}`,{id:e,class:"pxd-footer-heading"},s.text(d.label)),l("ul",null,...d.items.map(o=>l("li",{key:o.key},l("button",{type:"button",class:"pxd-link pxd-footer-link",onClick:()=>r.r.dispatch(o.action,s.scope,t.id)},s.text(o.label))))))})),l("div",{class:"pxd-footer-legal"},l("p",{class:"pxd-footer-legal-text"},s.text(t.legal)),t.aside&&l("div",{class:"pxd-footer-aside"},r.render(t.aside))))}function Ki(t,r){let s=r.b,p=r.r,n=r.frame,d=!!p.props.loading,e=`${p.props.current?.key??""}\0${p.props.current?.title??""}`,[o,c]=r.state(t,"shown",e);o!==e&&(c(e),d||r.after(()=>{let i=document.getElementById(n?.mainId??"");if(!i)return;let u=i.querySelector("h1");u&&!u.hasAttribute("tabindex")&&(u.tabIndex=-1),(u??i).focus()}));let a=p.props.outlet;return l("main",{id:n?.mainId,class:"pxd-outlet",tabindex:"-1","aria-label":t.label!==void 0?s.text(t.label):void 0,...r.a11y(t)},d?t.loading?r.render(t.loading):nr({title:p.props.current?.title,className:"pxd-outlet-skeleton"}):a?ot(a,"outlet"):null)}var Oi=new Set;function Wi(t,r){let s=r.b,p=r.r.components[t.name];if(!p)return Oi.has(t.name)||(Oi.add(t.name),console.warn(`[polyxd] No host component named "${t.name}"; rendering its fallback. Pass one in the surface's components.`)),t.fallback?r.render(t.fallback):null;let n=tr(t.props??{},r.r.data,s.scope)??{},d=p({...n,node:t}),e=d instanceof Element?ot(d,t.id):d;return t.label===void 0?e:l("div",{class:"pxd-custom",role:"group","aria-label":s.text(t.label),...r.a11y(t)},e)}function Gi(t,r){let s=r.b,p=r.r,[n,d]=r.state(t,"compact",!1),e=Y(t.rows.path,s.scope),o=pe(J(p.data,e)),c=s.text(t.caption),a=!!t.detail&&t.expandable!==!1,[i,u]=r.state(t,"expanded",()=>[]),f=S=>i.includes(S),m=S=>u(U=>kr(U,S)),x=(S,U)=>l("button",{type:"button",class:"pxd-icon-button pxd-table-expander","aria-expanded":f(S),"aria-label":`${f(S)?"Hide":"Show"} details for ${U}`,onClick:()=>m(S)},Z(f(S)?"sortUp":"sortDown",16)),y=t.selection==="multiple",h=y&&t.selected?s.value(t.selected)??[]:[],b=(S,U)=>ma(t,o,U,p.data,S),w=S=>s.write(t.selected,kr(h,S)),D=o.map((S,U)=>b({pointer:ie(e,U)},U)),z=o.length>0&&D.every(S=>h.includes(S)),R=()=>s.write(t.selected,z?[]:D),q=t.sort?.column?s.value(t.sort.column):void 0,P=t.sort?.direction?s.value(t.sort.direction):"ascending",N=S=>{let U=xa(S,q,P);t.sort?.column&&s.write(t.sort.column,S),t.sort?.direction&&s.write(t.sort.direction,U),t.sort?.action&&p.dispatch(t.sort.action,s.scope,t.id)},M=S=>l("span",{"data-state":"checked",style:{pointerEvents:"none"}},S),v=(S,U)=>{let K=J(p.data,Y(S.path,U)),O=te(K,se(S.format,p.data,s.scope),p.locale);if(S.kind==="status")return l("span",{class:`pxd-badge pxd-tone-${S.tones?.[String(K)]??"neutral"}`},O);if(S.format?.type==="color")return l("span",{class:"pxd-color-value"},l("span",{class:`pxd-swatch${Oe(O)?"":" pxd-swatch-unknown"}`,style:Oe(O)?{background:Oe(O)}:void 0,"aria-hidden":"true"}),O);if(S.kind==="entity"){let V=S.secondaryPath?String(J(p.data,Y(S.secondaryPath,U))??""):"";return l("span",{class:"pxd-entity"},S.avatarPath&&ge(r,{value:J(p.data,Y(S.avatarPath,U)),name:O,size:28}),l("span",{class:"pxd-entity-text"},t.rowAction?l("button",{type:"button",class:"pxd-link",onClick:()=>p.dispatch(t.rowAction,U,t.id)},O):l("span",{class:"pxd-entity-name"},O),V&&l("span",{class:"pxd-entity-secondary"},V)))}return S.kind==="link"&&t.rowAction?l("button",{type:"button",class:"pxd-link",onClick:()=>p.dispatch(t.rowAction,U,t.id)},O):O},k=(S,U,K)=>{let V=(p.byId.get(t.rowActions)?.children??[]).map(B=>p.byId.get(B)).filter(B=>!!B&&(B.visible===void 0||oe(B.visible,p.data,S)!==!1));if(!V.length)return null;let H=r.id(t,`row-${K}-menu`),[L,_]=r.state(t,`menu:${K}`,De);return We(r,H,L,_,V.map(B=>({key:B.id,label:[s.text(B.label)],class:`pxd-menu-item${B.tone==="danger"?" pxd-menu-item-danger":""}`,onSelect:()=>p.dispatch(B.action,S,B.id)})),{class:"pxd-menu"}),l("button",{type:"button",...it(H,L,_,"end",{class:"pxd-icon-button","aria-label":`Actions for ${U}`})},Z("dots",18))},$=[t.views&&_n(t,r),(t.search||t.toolbar||y&&h.length>0)&&l("div",{class:`pxd-table-toolbar${h.length>0?" pxd-table-bulk":""}`,role:"toolbar","aria-label":h.length>0?`Actions for ${h.length} selected`:"Table tools"},...h.length>0?[l("p",{class:"pxd-bulk-count","aria-live":"polite"},`${h.length} selected`),t.bulkActions&&r.render(t.bulkActions),l("button",{type:"button",class:"pxd-button pxd-button-tertiary",onClick:()=>s.write(t.selected,[])},"Cancel")]:[t.search&&r.render(t.search),l("span",{class:"pxd-table-toolbar-spacer"}),t.toolbar&&r.render(t.toolbar)])],j=()=>l("ul",{class:"pxd-row-list","aria-label":c},...o.map((S,U)=>{let K={pointer:ie(e,U)},{first:O,status:V,details:H}=fa(t.columns),L=te(J(p.data,Y(O.path,K)),se(O.format,p.data,s.scope),p.locale),_=b(K,U);return l("li",{key:String(_),class:"pxd-row-item"},y&&t.selected&&Se({class:"pxd-checkbox",checked:h.includes(_),onCheckedChange:()=>w(_),"aria-label":`Select ${L}`,indicator:M(Z("check",14))}),a&&x(_,L),l("div",{class:"pxd-row-main"},l("div",{class:"pxd-row-title"},v(O,K)),l("p",{class:"pxd-row-details"},...H.map((B,X)=>l("span",{key:B.key},X>0&&l("span",{"aria-hidden":"true"}," \xB7 "),l("span",{class:"pxd-sr-only"},`${s.text(B.label)}: `),te(J(p.data,Y(B.path,K)),se(B.format,p.data,s.scope),p.locale))))),V&&v(V,K),t.rowActions?k(K,L,U):t.rowAction&&!t.columns[0].kind?l("button",{type:"button",class:"pxd-button pxd-button-tertiary",onClick:()=>p.dispatch(t.rowAction,K,t.id)},"Select",l("span",{class:"pxd-sr-only"},` ${L}`)):null,a&&f(_)&&l("div",{class:"pxd-row-detail"},r.render(t.detail,K)))})),A=()=>l("div",{class:"pxd-table-scroll"},l("table",{class:"pxd-table"},l("caption",{class:t.views||t.search?"pxd-sr-only":void 0},c),l("thead",null,l("tr",null,a&&l("th",{scope:"col",class:"pxd-table-expand"},l("span",{class:"pxd-sr-only"},"Details")),y&&t.selected&&l("th",{scope:"col",class:"pxd-table-select"},Se({class:"pxd-checkbox",checked:z?!0:h.length>0?"indeterminate":!1,onCheckedChange:R,"aria-label":"Select all rows",indicator:l("span",{"data-state":z?"checked":"indeterminate",style:{pointerEvents:"none"}},Z(z?"check":"dash",14))})),...t.columns.map(S=>{let U=S.key===q;return l("th",{key:S.key,scope:"col",class:wr(S)?"pxd-num":void 0,"aria-sort":S.sortable?U?P:"none":void 0},S.sortable?l("button",{type:"button",class:"pxd-sort",onClick:()=>N(S.key)},s.text(S.label),Z(U?P==="descending"?"sortDown":"sortUp":"sort",16)):s.text(S.label))}),(t.rowActions||t.rowAction)&&l("th",{scope:"col"},l("span",{class:"pxd-sr-only"},"Actions")))),l("tbody",null,...o.flatMap((S,U)=>{let K={pointer:ie(e,U)},O=b(K,U),V=te(J(p.data,Y(t.columns[0].path,K)),se(t.columns[0].format,p.data,s.scope),p.locale);return[l("tr",{key:String(O),class:h.includes(O)?"pxd-row-selected":void 0,"aria-selected":y?h.includes(O):void 0},a&&l("td",{class:"pxd-table-expand"},x(O,V)),y&&t.selected&&l("td",{class:"pxd-table-select"},Se({class:"pxd-checkbox",checked:h.includes(O),onCheckedChange:()=>w(O),"aria-label":`Select ${V}`,indicator:M(Z("check",14))})),...t.columns.map((H,L)=>l(L===0?"th":"td",{key:H.key,scope:L===0?"row":void 0,"data-label":s.text(H.label),class:wr(H)?"pxd-num":void 0},v(H,K))),(t.rowActions||t.rowAction)&&l("td",{class:"pxd-table-action"},t.rowActions?k(K,V,U):l("button",{type:"button",class:"pxd-button pxd-button-tertiary",onClick:()=>p.dispatch(t.rowAction,K,t.id)},"Select",l("span",{class:"pxd-sr-only"},` ${V}`)))),a&&f(O)&&l("tr",{key:`${String(O)}-detail`,class:"pxd-table-detail"},l("td",{colspan:ga(t,a,!!(y&&t.selected))},r.render(t.detail,K)))]})))),C=!o.length&&t.empty?r.render(t.empty):n?j():A();return l("div",{class:"pxd-table-wrap",...r.a11y(t),ref:S=>S&&p.observeWidth(S,`${t.id}:table`,U=>d(U<ua))},...$,C,t.page&&Uo(t,r,o.length))}function _n(t,r){let s=r.b,p=t.view?s.value(t.view):t.views[0].key;return l("div",{class:"pxd-table-views",role:"tablist","aria-label":"Saved views"},...t.views.map(n=>{let d=n.count!==void 0?s.value(n.count):void 0,e=n.key===p;return l("button",{key:n.key,type:"button",role:"tab","aria-selected":e,class:`pxd-table-view${e?" pxd-table-view-current":""}`,onClick:()=>{t.view&&s.write(t.view,n.key),r.r.dispatch(n.action,s.scope,t.id)}},s.text(n.label),d!==void 0&&l("span",{class:"pxd-views-count"},Xe(d,r.r.locale)))}))}function Uo(t,r,s){let p=r.b,n=t.page,{index:d,size:e,total:o,pages:c,from:a,to:i,sizes:u}=ya(n.index?p.value(n.index):void 0,n.size?p.value(n.size):void 0,n.total?p.value(n.total):void 0,s),f=x=>Xe(x,r.r.locale),m=x=>{n.index&&p.write(n.index,x),r.r.dispatch(n.action,p.scope,t.id)};return l("div",{class:"pxd-paging"},n.size&&l("label",{class:"pxd-paging-size"},"Rows per page",l("select",{value:String(e),onChange:x=>{p.write(n.size,Number(x.target.value)),n.index&&p.write(n.index,1),r.r.dispatch(n.action,p.scope,t.id)}},...u.map(x=>l("option",{key:x,value:String(x),selected:x===e},String(x))))),l("p",{class:"pxd-paging-range","aria-live":"polite"},`${f(a)}\u2013${f(i)} of ${f(o)}`),l("div",{class:"pxd-paging-controls"},l("button",{type:"button",class:"pxd-icon-button","aria-label":"Previous page",disabled:d<=1,onClick:()=>m(d-1)},Z("chevronLeft",18)),l("span",{class:"pxd-paging-page"},`Page ${f(d)} of ${f(c)}`),l("button",{type:"button",class:"pxd-icon-button","aria-label":"Next page",disabled:d>=c,onClick:()=>m(d+1)},Z("chevronRight",18))))}function Ji(t){let r=Oe(t);return l("span",{class:`pxd-swatch${r?"":" pxd-swatch-unknown"}`,style:r?{background:r}:void 0,"aria-hidden":"true"})}function dr(t){return t.map(r=>typeof r=="string"?r:r.kind==="code"?l("code",null,r.text):r.kind==="strong"?l("strong",null,...dr(r.children)):r.kind==="em"?l("em",null,...dr(r.children)):r.kind!=="link"?null:r.href?l("a",{href:r.href,rel:"noopener noreferrer"},...dr(r.children)):l("span",null,...dr(r.children)))}function Xi(t,r){let s=r.b,p=r.a11y(t),n=t.variant??"body",d=t.format?.type==="color",e=(o,c=t.format)=>{let a=s.text(o,c);return c?.type==="color"?[Ji(a),a]:[a]};if(n==="rich")return l("p",{class:"pxd-text pxd-text-body pxd-text-rich",...p},...dr(et(s.text(t.text))));if(n==="quote")return l("figure",{class:"pxd-text-quote",...p},l("blockquote",null,l("p",{class:"pxd-text pxd-text-body"},...e(t.text))),t.cite!==void 0&&l("figcaption",{class:"pxd-text-cite"},s.text(t.cite)));if(n==="list"){let o=t.items?Y(t.items.path,s.scope):void 0,c=o?pe(J(r.r.data,o)):[],a=s.text(t.text);return l("div",{class:"pxd-text-list",...p},a&&l("p",{class:"pxd-text pxd-text-body"},a),l(t.ordered?"ol":"ul",{class:`pxd-text-list-items${t.ordered?" pxd-text-list-ordered":""}`},...c.map((i,u)=>{let f=t.itemPath&&o?J(r.r.data,Y(t.itemPath,{pointer:ie(o,u)})):i;return l("li",{key:u},...e(f))})))}return l("p",{class:`pxd-text pxd-text-${n}${d?" pxd-text-color":""}`,...p},...e(t.text))}function Qi(t,r){let s=r.b,p=s.text(t.label),n=s.text(t.value,t.format),d=t.change?Ha(s.value(t.change.value),t.change.favorable,se(t.change.format,r.r.data,s.scope),r.r.locale):void 0,e=t.caption!==void 0?s.text(t.caption):void 0;return l("div",{class:"pxd-metric",role:"group","aria-label":p,...r.a11y(t)},l("div",{class:"pxd-metric-label"},p),l("div",{class:"pxd-metric-value"},n),d&&l("div",{class:`pxd-metric-change pxd-data-${d.tone}`},l("span",{"aria-hidden":"true"},d.text),l("span",{class:"pxd-sr-only"},d.spoken)),e&&l("div",{class:"pxd-metric-caption"},e))}function es(t,r){let s=r.b,p=t.variant==="receipt",n=c=>{let a=s.value(c.value);return p&&c.format?.type==="currency"&&a===0&&!c.total?{text:"Free",free:!0,color:!1}:{text:s.text(c.value,c.format),free:!1,color:c.format?.type==="color"}},d=(c,a)=>t.rowAction?l("button",{type:"button",class:"pxd-link pxd-detail-change",onClick:()=>r.r.dispatch(va(t.rowAction,c.key??a),s.scope,t.id)},"Change",l("span",{class:"pxd-sr-only"},` ${a}`)):null,e=t.items.filter(c=>!c.total),o=t.items.filter(c=>c.total);return l("div",{class:`pxd-detail-list${p?" pxd-receipt":""}${t.layout==="grid"?" pxd-detail-grid":""}${t.rowAction?" pxd-detail-actions":""}`,...r.a11y(t)},t.title!==void 0&&Ne(r,"pxd-detail-title",s.text(t.title)),l("dl",null,...e.map((c,a)=>{let i=n(c),u=s.text(c.label);return l("div",{class:"pxd-detail-row",key:c.key??a},l("dt",null,u),l("dd",{class:i.free?"pxd-free":void 0},i.color&&Ji(i.text),i.text),t.rowAction&&l("dd",{class:"pxd-detail-row-action"},d(c,u)))}),...o.map((c,a)=>l("div",{class:"pxd-detail-row pxd-total",key:c.key??`t${a}`},l("dt",null,s.text(c.label)),l("dd",null,n(c).text),t.rowAction&&l("dd",{class:"pxd-detail-row-action"})))))}function ts(t,r){let s=r.b,p=r.r,n=r.id(t,"label"),d=Y(t.items.path,s.scope),e=pe(J(p.data,d)),o=t.selection??"none",c=o!=="none"&&t.selected?s.value(t.selected):void 0,a=_=>Array.isArray(c)?c.includes(_):c===_,i=_=>{if(!t.selected)return;if(o==="single")return s.write(t.selected,_);let B=Array.isArray(c)?c:[];s.write(t.selected,B.includes(_)?B.filter(X=>X!==_):[...B,_])},u=Array.isArray(c)?c.length:0,f=s.text(t.label),m=p.byId.get(t.items.componentId),{grid:x,timeline:y,carousel:h,calendar:b}=Qa(t,m),w=t.reorderable===!0,D=w&&t.order?s.value(t.order):void 0,z=e.map((_,B)=>Xa(_,B)),R=eo(z,D),q=(_,B)=>{let X=t.order?to(R,z,_,B):void 0;X&&s.write(t.order,X)},[P,N]=r.state(t,"dragging",null),[M,v]=r.state(t,"position",0),k=()=>p.root?.querySelector(`[data-pxd-id="${CSS.escape(t.id)}"] .pxd-carousel-track`),$=_=>Array.from(_.children),j=_=>{let B=_.currentTarget;v(io($(B).map(X=>X.offsetLeft-B.offsetLeft),B.scrollLeft))},A=_=>{let B=k(),X=B&&$(B)[Math.max(0,Math.min(e.length-1,_))];B&&X&&B.scrollTo({left:X.offsetLeft-B.offsetLeft,behavior:"smooth"})},C=b?e.map((_,B)=>ro(t.datePath?J(p.data,Y(t.datePath,{pointer:ie(d,B)})):void 0)):[],[S,U]=r.state(t,"month",null),K=ao(S,C.find(Boolean));if(!e.length&&t.empty)return r.render(t.empty);let O=(_,B)=>l("input",{type:o==="single"?"radio":"checkbox",class:"pxd-collection-select",name:o==="single"?`${t.id}-selection`:void 0,checked:a(_),onChange:()=>i(_),"aria-label":B}),V=(_,B)=>{let X=z[_],ke={pointer:ie(d,_)};return l("li",{key:String(X),class:`pxd-collection-item${P===B?" pxd-collection-dragging":""}`,draggable:w||void 0,onDragstart:w?()=>N(B):void 0,onDragover:w?xe=>xe.preventDefault():void 0,onDrop:w?()=>{P!==null&&q(P,B),N(null)}:void 0,onDragend:w?()=>N(null):void 0},w&&l("div",{class:"pxd-collection-reorder"},l("span",{class:"pxd-collection-handle","aria-hidden":"true"},Z("menu",16)),l("button",{type:"button",class:"pxd-icon-button pxd-collection-move","aria-label":`Move item ${B+1} up`,disabled:B===0,onClick:()=>q(B,B-1)},Z("sortUp",16)),l("button",{type:"button",class:"pxd-icon-button pxd-collection-move","aria-label":`Move item ${B+1} down`,disabled:B===e.length-1,onClick:()=>q(B,B+1)},Z("sortDown",16))),o!=="none"&&O(X,`Select item ${B+1} of ${e.length}`),l("div",{class:"pxd-collection-content"},r.render(t.items.componentId,ke)))},H=o==="multiple"&&u>0&&l("div",{class:"pxd-table-toolbar pxd-table-bulk",role:"toolbar","aria-label":`Actions for ${u} selected`},l("p",{class:"pxd-bulk-count","aria-live":"polite"},`${u} selected`),t.bulkActions&&r.render(t.bulkActions),l("button",{type:"button",class:"pxd-button pxd-button-tertiary",onClick:()=>s.write(t.selected,[])},"Cancel")),L;if(h)L=l("div",{class:"pxd-carousel",role:"group","aria-roledescription":"carousel","aria-labelledby":n},l("ul",{class:"pxd-collection-list pxd-carousel-track","aria-labelledby":n,onScroll:j},...R.map((_,B)=>V(_,B))),l("div",{class:"pxd-carousel-controls"},l("button",{type:"button",class:"pxd-icon-button","aria-label":"Previous item",disabled:M<=0,onClick:()=>A(M-1)},Z("chevronLeft",18)),l("p",{class:"pxd-carousel-position","aria-live":"polite"},`${M+1} of ${e.length}`),l("button",{type:"button",class:"pxd-icon-button","aria-label":"Next item",disabled:M>=e.length-1,onClick:()=>A(M+1)},Z("chevronRight",18))));else if(b){let{monthName:_,weekdays:B,weeks:X}=oo(K,p.locale),ke=xe=>R.filter(ne=>C[ne]&&C[ne].y===K.y&&C[ne].m===K.m&&C[ne].d===xe);L=l("div",{class:"pxd-calendar"},l("div",{class:"pxd-calendar-header"},l("button",{type:"button",class:"pxd-icon-button","aria-label":"Previous month",onClick:()=>U(Ar(K,-1))},Z("chevronLeft",18)),l("p",{class:"pxd-calendar-month","aria-live":"polite"},_),l("button",{type:"button",class:"pxd-icon-button","aria-label":"Next month",onClick:()=>U(Ar(K,1))},Z("chevronRight",18))),l("table",{class:"pxd-calendar-grid"},l("caption",{class:"pxd-sr-only"},`${f}, ${_}`),l("thead",null,l("tr",null,...B.map(xe=>l("th",{key:xe,scope:"col"},xe)))),l("tbody",null,...X.map((xe,ne)=>l("tr",{key:ne},...xe.map((Ae,Ue)=>Ae===null?l("td",{key:Ue,class:"pxd-calendar-empty"}):l("td",{key:Ue,class:`pxd-calendar-day${ke(Ae).length?" pxd-calendar-has-items":""}`},l("span",{class:"pxd-calendar-date"},Ae),ke(Ae).length>0&&l("ul",{class:"pxd-calendar-items"},...ke(Ae).map($e=>l("li",{key:String(z[$e]),class:"pxd-collection-item"},o!=="none"&&O(z[$e],`Select item on ${Ae}`),l("div",{class:"pxd-collection-content"},r.render(t.items.componentId,{pointer:ie(d,$e)}))))))))))))}else L=l("ul",{class:`pxd-collection-list${x?" pxd-collection-grid":""}${y?" pxd-timeline":""}${w?" pxd-collection-reorderable":""}`,"aria-labelledby":n},...R.map((_,B)=>V(_,B)));return l("div",{class:"pxd-collection",...r.a11y(t)},l("div",{class:"pxd-collection-label",id:n},`${f} `,l("span",{class:"pxd-count"},`(${e.length})`)),H,L,t.page&&Uo(t,r,e.length))}function rs(t,r){let s=r.b,p=r.r,n=r.a11y(t),[d,e]=r.state(t,"open",null),o=t.kind??"image",c=t.src?s.value(t.src):void 0,a=c?p.props.resolveMedia?.(c):void 0,i=t.decorative?"":s.text(t.alt),u=`pxd-media pxd-media-${t.aspect??"auto"}`;if(o==="qr")return Fn(r,t,s.text(t.value),i,n);if(o==="gallery"){let f=t.items?Y(t.items.path,s.scope):void 0,x=(f?pe(J(p.data,f)):[]).map((h,b)=>{let w={pointer:ie(f,b)},D=t.imagePath?J(p.data,Y(t.imagePath,w)):void 0,z=D?p.props.resolveMedia?.(String(D)):void 0,R=t.altPath?String(J(p.data,Y(t.altPath,w))??""):"";return{src:z,alt:R}}),y=x.filter(h=>!!h.src);return d!==null&&y[d]&&Hn(r,t,i,y,d,e),l("ul",{class:"pxd-gallery","aria-label":i||void 0,...n},...x.map((h,b)=>{let w=y.indexOf(h);return l("li",{key:b},w>=0?l("button",{type:"button",class:"pxd-gallery-item","aria-label":h.alt?`Open ${h.alt}`:`Open image ${w+1} of ${y.length}`,onClick:()=>e(w)},l("img",{class:`${u} pxd-gallery-image`,src:h.src,alt:h.alt})):l("div",{class:`${u} pxd-media-placeholder pxd-gallery-image`,role:"img","aria-label":h.alt||void 0}))}))}if(o==="video"||o==="audio"){let f=t.transcript!==void 0?s.text(t.transcript):void 0,m=t.poster!==void 0?s.text(t.poster):void 0,x=m?p.props.resolveMedia?.(m):void 0;return l("figure",{class:`pxd-media-player pxd-media-${o}`,...n},o==="video"?a?l("video",{class:u,controls:!0,src:a,poster:x,"aria-label":i||void 0}):l("div",{class:`${u} pxd-media-placeholder`,role:"img","aria-label":i||void 0}):a?l("audio",{class:"pxd-media-audio-player",controls:!0,src:a,"aria-label":i||void 0}):l("div",{class:"pxd-media-placeholder pxd-media-audio-placeholder",role:"img","aria-label":i||void 0}),i&&l("figcaption",{class:"pxd-media-caption"},i),f&&l("details",{class:"pxd-media-transcript"},l("summary",null,"Transcript"),l("p",{class:"pxd-text pxd-text-body"},f)))}return a?l("img",{class:u,src:a,alt:i,...n}):l("div",{class:`${u} pxd-media-placeholder`,role:t.decorative?"presentation":"img","aria-label":i||void 0})}var Yi=t=>l("svg",{width:20,height:20,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},l("path",{d:t==="left"?"m15 6-6 6 6 6":"m9 6 6 6-6 6"}));function Hn(t,r,s,p,n,d){let e=p.length,{src:o,alt:c}=p[n],a=f=>d(Math.max(0,Math.min(e-1,f))),i=t.id(r,"viewer-title"),u=()=>d(null);t.after(()=>{let f=document.activeElement;f?.disabled&&f.classList.contains("pxd-viewer-step")&&((f.nextElementSibling??f.previousElementSibling)?.dispatchEvent(new Event("noop")),(f.nextElementSibling??f.previousElementSibling)?.focus())}),t.portal(ze({ctx:t,id:t.id(r,"viewer"),class:"pxd-viewer",onClose:u,props:{"aria-labelledby":i,onKeydown:f=>f.key==="ArrowLeft"?a(n-1):f.key==="ArrowRight"?a(n+1):void 0}},l("h2",{id:i,class:"pxd-sr-only"},s||"Pictures"),l("div",{class:"pxd-viewer-bar"},l("span",{class:"pxd-viewer-counter","aria-live":"polite"},`${n+1} of ${e}`),qe(u,{class:"pxd-icon-button pxd-viewer-close","aria-label":"Close"},Z("close"))),l("figure",{class:"pxd-viewer-figure"},l("img",{class:"pxd-viewer-image",src:o,alt:c}),c&&l("figcaption",{class:"pxd-viewer-caption"},c)),l("div",{class:"pxd-viewer-bar pxd-viewer-nav"},l("button",{type:"button",class:"pxd-icon-button pxd-viewer-step","aria-label":"Previous picture",disabled:n===0,onClick:()=>a(n-1)},Yi("left")),l("button",{type:"button",class:"pxd-icon-button pxd-viewer-step","aria-label":"Next picture",disabled:n===e-1,onClick:()=>a(n+1)},Yi("right")))))}function Fn(t,r,s,p,n){let d=s?Ao(s):void 0;if(!d)return l("div",{class:"pxd-qr pxd-qr-placeholder",role:"img","aria-label":p||`QR code: ${s}`,...n},l("span",{class:"pxd-qr-mark","aria-hidden":"true"},"QR"),l("span",{class:"pxd-qr-text"},s));let e=o=>{let c=o;if(!c||c.dataset.text===s)return;c.dataset.text=s;let a=4,i=4,u=d.length;c.width=c.height=(u+i*2)*a;let f=c.getContext("2d");if(!f)return;let m=getComputedStyle(c),x=m.getPropertyValue("--pxd-color-text-default").trim()||"#000",y=m.getPropertyValue("--pxd-color-surface-default").trim()||"#fff";f.fillStyle=y,f.fillRect(0,0,c.width,c.height),f.fillStyle=x,d.forEach((h,b)=>h.forEach((w,D)=>w&&f.fillRect((D+i)*a,(b+i)*a,a,a)))};return t.after(()=>e(t.r.root?.querySelector(`canvas[data-pxd-id="${CSS.escape(r.id)}"]`)??null)),l("canvas",{class:"pxd-qr",role:"img","aria-label":p||`QR code: ${s}`,...n,ref:e})}function as(t,r){let s=r.b,p=t.kind==="error",n=r.a11y(t);return r.r.statusDrawn(t,r.scope),t.kind==="undo"?l("div",{class:"pxd-snackbar",role:"status",...n},l("p",{class:"pxd-snackbar-text"},s.text(t.title),t.message!==void 0&&l("span",{class:"pxd-snackbar-message"},` ${s.text(t.message)}`)),t.action&&r.render(t.action)):l("div",{class:`pxd-status pxd-status-${t.kind}${t.variant==="inline"?" pxd-status-notice":""}`,role:p?"alert":"status",...n},t.kind==="loading"?l("span",{class:"pxd-spinner","aria-hidden":"true"}):l("span",{class:"pxd-status-icon","aria-hidden":"true"},Z(t.icon??Ja[t.kind],t.kind==="empty"?28:16)),l("div",{class:"pxd-status-body"},l("p",{class:"pxd-status-title"},s.text(t.title)),t.message!==void 0&&l("p",{class:"pxd-status-message"},s.text(t.message)),t.action&&t.variant!=="inline"&&l("div",{class:"pxd-status-action"},r.render(t.action))),t.action&&t.variant==="inline"&&l("div",{class:"pxd-status-action"},r.render(t.action)))}var Tr=(t,r,s,p)=>{let{tag:n,attrs:d}=xo(t,r,s);return l(n,{...d,fill:p})};function os(t,r){let s=r.b,p=r.r,n=r.id(t,"title"),d=r.id(t,"summary"),e=Y(t.data.path,s.scope),o=pe(J(p.data,e)).map((A,C)=>ie(e,C)),c=A=>J(p.data,Y(t.x.path,{pointer:A})),a=(A,C)=>Number(J(p.data,Y(C.path,{pointer:A})))||0,i=t.series,u=r.a11y(t),f=(A,C)=>te(A,se(C,p.data,s.scope),p.locale),m=A=>f(c(A),t.x.format),x=600-le.left-le.right,y=240-le.top-le.bottom,h=()=>l("details",{class:"pxd-chart-data"},l("summary",null,"Show data"),l("table",{class:"pxd-table"},l("thead",null,l("tr",null,l("th",{scope:"col"},s.text(t.x.label)),...i.map((A,C)=>l("th",{scope:"col",key:C,class:"pxd-num"},s.text(A.label))))),l("tbody",null,...o.map(A=>l("tr",{key:A},l("th",{scope:"row"},f(c(A),t.x.format)),...i.map((C,S)=>l("td",{key:S,class:"pxd-num"},f(a(A,C),C.format)))))))),b=(A,C)=>l("figure",{class:"pxd-chart","aria-labelledby":n,"aria-describedby":d,...u},l("figcaption",null,l("span",{class:"pxd-chart-title",id:n},s.text(t.title)),l("span",{class:"pxd-chart-summary",id:d},s.text(t.summary))),A,C,h()),w=i.length>1&&l("ul",{class:"pxd-chart-legend"},...i.map((A,C)=>l("li",{key:C},l("svg",{width:"12",height:"12","aria-hidden":"true"},Tr(rt[C],6,6,ue(C))),s.text(A.label)))),D=(A,C,...S)=>l("svg",{viewBox:A,class:C,"aria-hidden":"true"},...S);if(t.intent==="relationship"){let A=o.map(V=>Number(c(V))||0),C=o.flatMap(V=>i.map(H=>a(V,H))),S=at(Math.max(0,...A)),U=at(Math.max(0,...C)),K=V=>le.left+V/(S||1)*x,O=V=>le.top+y-V/(U||1)*y;return b(D(`0 0 ${600} ${240}`,"pxd-chart-svg",l("g",{class:"pxd-chart-axis"},...[0,.5,1].map(V=>l("g",{key:V},l("line",{x1:le.left,x2:600-le.right,y1:O(U*V),y2:O(U*V),class:"pxd-chart-grid"}),l("text",{x:le.left-8,y:O(U*V)+4,"text-anchor":"end"},f(U*V,{...i[0].format??{type:"number"},precision:0})))),...[0,.5,1].map(V=>l("text",{key:`x${V}`,x:K(S*V),y:230,"text-anchor":V===0?"start":V===1?"end":"middle"},f(S*V,{...t.x.format??{type:"number"},precision:0})))),...i.map((V,H)=>l("g",{key:H},...o.map((L,_)=>Tr(rt[H],K(A[_]),O(a(L,V)),ue(H)))))),w)}if(t.intent==="range"){let C=le.top+o.length*28+24,S=o.map(L=>a(L,i[0])),U=o.map(L=>a(L,i[1]??i[0])),K=Math.min(0,...S),O=at(Math.max(...U,1)),V=120,H=L=>V+(L-K)/(O-K||1)*(600-V-le.right);return b(D(`0 0 ${600} ${C}`,"pxd-chart-svg",l("g",{class:"pxd-chart-axis"},...[0,.5,1].map(L=>{let _=K+(O-K)*L;return l("g",{key:L},l("line",{x1:H(_),x2:H(_),y1:le.top,y2:C-20,class:"pxd-chart-grid"}),l("text",{x:H(_),y:C-4,"text-anchor":"middle"},f(_,{...i[0].format??{type:"number"},precision:0})))})),...o.map((L,_)=>{let B=le.top+_*28;return l("g",{key:L},l("text",{x:V-8,y:B+28/2+4,"text-anchor":"end",class:"pxd-chart-range-label"},Ir(c(L),t.x.format?.type,p.locale)),l("line",{x1:H(S[_]),x2:H(U[_]),y1:B+28/2,y2:B+28/2,stroke:ue(0),"stroke-width":10,"stroke-linecap":"round"}),l("circle",{cx:H(S[_]),cy:B+28/2,r:4,fill:ue(1)}),l("circle",{cx:H(U[_]),cy:B+28/2,r:4,fill:ue(2)}))})),l("ul",{class:"pxd-chart-legend"},l("li",null,l("span",{class:"pxd-chart-swatch",style:{background:ue(1)},"aria-hidden":"true"}),s.text(i[0].label)),i[1]&&l("li",null,l("span",{class:"pxd-chart-swatch",style:{background:ue(2)},"aria-hidden":"true"}),s.text(i[1].label))))}if(t.intent==="matrix"){let A=o.map(S=>i.map(U=>a(S,U))),C=Math.max(1,...A.flat());return b(l("div",{class:"pxd-heatmap-scroll","aria-hidden":"true"},l("table",{class:"pxd-heatmap"},l("thead",null,l("tr",null,l("th",null),...i.map((S,U)=>l("th",{key:U,scope:"col"},s.text(S.label))))),l("tbody",null,...o.map((S,U)=>l("tr",{key:S},l("th",{scope:"row"},m(S)),...i.map((K,O)=>{let V=Math.round(A[U][O]/C*100);return l("td",{key:O,class:`pxd-heatmap-cell${V>=60?" pxd-heatmap-strong":""}`,style:{background:`color-mix(in srgb, var(--pxd-color-data-categorical-1) ${V}%, var(--pxd-color-surface-subtle))`}},f(A[U][O],K.format))})))))))}if(t.intent==="hierarchy"){let A=o.map(S=>Math.max(0,a(S,i[0]))),C=fo(A,600,240);return b(D(`0 0 ${600} ${240}`,"pxd-chart-svg pxd-chart-treemap",...C.map((S,U)=>S&&l("g",{key:U},l("rect",{x:S.x+1,y:S.y+1,width:Math.max(S.w-2,0),height:Math.max(S.h-2,0),fill:ue(U),rx:2}),S.w>48&&S.h>24&&l("text",{x:S.x+8,y:S.y+18,class:"pxd-chart-tile-label"},m(o[U]).slice(0,Math.floor(S.w/8)))))),l("ul",{class:"pxd-chart-legend"},...o.map((S,U)=>l("li",{key:S},l("span",{class:"pxd-chart-swatch",style:{background:ue(U)},"aria-hidden":"true"}),`${m(S)}: ${f(A[U],i[0].format)}`))))}if(t.intent==="flow"){let A=o.map(xe=>i.map(ne=>Math.max(0,a(xe,ne)))),{leftY:C,rightY:S,leftTotals:U,rightTotals:K,scale:O}=go(A,i.length,240),V=12,H=110,L=H,_=600-H,B=[...C],X=[...S],ke=(L+_)/2;return b(D(`0 0 ${600} ${240}`,"pxd-chart-svg pxd-chart-flow",...A.flatMap((xe,ne)=>xe.map((Ae,Ue)=>{if(Ae<=0)return null;let $e=Ae*O,xr=B[ne],gr=X[Ue];B[ne]+=$e,X[Ue]+=$e;let ln=`M${L+V} ${xr} C${ke} ${xr}, ${ke} ${gr}, ${_-V} ${gr} L${_-V} ${gr+$e} C${ke} ${gr+$e}, ${ke} ${xr+$e}, ${L+V} ${xr+$e} Z`;return l("path",{key:`${ne}-${Ue}`,d:ln,fill:ue(Ue),opacity:.45})})),...o.map((xe,ne)=>l("g",{key:xe},l("rect",{x:L,y:C[ne],width:V,height:Math.max(U[ne]*O,1),fill:"var(--pxd-color-border-strong)"}),l("text",{x:L-8,y:C[ne]+U[ne]*O/2+4,"text-anchor":"end",class:"pxd-chart-flow-label"},m(xe)))),...i.map((xe,ne)=>l("g",{key:`s${ne}`},l("rect",{x:_-V,y:S[ne],width:V,height:Math.max(K[ne]*O,1),fill:ue(ne)}),l("text",{x:_+8,y:S[ne]+K[ne]*O/2+4,class:"pxd-chart-flow-label"},s.text(xe.label))))),w)}if(t.intent==="composition"){let A=o.map(O=>a(O,i[0])),C=A.reduce((O,V)=>O+V,0)||1,S=0,U=A.map((O,V)=>{let H=O/C*598,L=l("rect",{key:V,x:1+S,y:4,width:Math.max(H-2,0),height:40,fill:ue(V),rx:2});return S+=H,L}),K=o.map((O,V)=>({label:te(c(O),se(t.x.format,p.data,s.scope),p.locale),value:A[V],color:ue(V),share:A[V]/C}));return l("figure",{class:"pxd-chart","aria-labelledby":n,"aria-describedby":d,...u},l("figcaption",null,l("span",{class:"pxd-chart-title",id:n},s.text(t.title)),l("span",{class:"pxd-chart-summary",id:d},s.text(t.summary))),l("svg",{viewBox:`0 0 ${600} 48`,class:"pxd-chart-svg pxd-chart-bar","aria-hidden":"true",preserveAspectRatio:"none"},l("g",null,...U)),l("ul",{class:"pxd-chart-legend"},...K.map(O=>l("li",{key:O.label},l("span",{class:"pxd-chart-swatch",style:{background:O.color},"aria-hidden":"true"}),`${O.label}: ${te(O.value,se(i[0].format,p.data,s.scope),p.locale)} (${te(O.share,{type:"percent",precision:0},p.locale)})`))),h())}let z=o.flatMap(A=>i.map(C=>a(A,C))),{lo:R,max:q,ticks:P}=mo(z,t.intent==="trend"),N=A=>le.top+y-(A-R)/(q-R||1)*y,M=x/Math.max(o.length,1),v=o.map(A=>Ir(c(A),t.x.format?.type,p.locale)),k=uo(v,x),$=l("g",{class:"pxd-chart-axis"},...P.map(A=>l("g",{key:A},l("line",{x1:le.left,x2:600-le.right,y1:N(A),y2:N(A),class:"pxd-chart-grid"}),l("text",{x:le.left-8,y:N(A)+4,"text-anchor":"end"},te(A,{...se(i[0].format,p.data,s.scope)??{type:"number"},precision:0},p.locale)))),...v.flatMap((A,C)=>C%k?[]:[l("text",{key:o[C],x:le.left+M*C+M/2,y:230,"text-anchor":"middle"},A)])),j;if(t.intent==="trend")j=i.map((A,C)=>{let S=o.map((U,K)=>[le.left+M*K+M/2,N(a(U,A))]);return l("g",{key:C},l("polyline",{points:S.map(([U,K])=>`${U},${K}`).join(" "),fill:"none",stroke:ue(C),"stroke-width":2.5}),...S.map(([U,K])=>Tr(rt[C],U,K,ue(C))))});else{let A=t.intent==="distribution",C=A?1:.7,S=M*C/i.length;j=o.flatMap((U,K)=>i.map((O,V)=>{let H=a(U,O),L=N(Math.max(H,0));return l("rect",{key:`${K}-${V}`,x:le.left+M*K+M*((1-C)/2)+S*V,y:L,width:S-(A?1:2),height:Math.max(N(0)-L,1),fill:ue(V),rx:A?0:2})}))}return l("figure",{class:"pxd-chart","aria-labelledby":n,"aria-describedby":d,...u},l("figcaption",null,l("span",{class:"pxd-chart-title",id:n},s.text(t.title)),l("span",{class:"pxd-chart-summary",id:d},s.text(t.summary))),D(`0 0 ${600} ${240}`,"pxd-chart-svg",$,...j),i.length>1&&l("ul",{class:"pxd-chart-legend"},...i.map((A,C)=>l("li",{key:C},l("svg",{width:"12",height:"12","aria-hidden":"true"},Tr(rt[C],6,6,ue(C))),s.text(A.label)))),h())}var He=()=>l("span",{class:"pxd-required","aria-hidden":"true"},"*");function Ee({label:t,help:r,required:s,id:p,helpId:n},...d){return l("div",{class:"pxd-field"},l("label",{class:"pxd-field-label",for:p},t,s&&He()),r&&l("p",{class:"pxd-field-help",id:n},r),...d)}var Un={email:"email",phone:"tel",url:"url",search:"search",number:"text",currency:"text",text:"text"},fe=t=>t.target.value;function ds(t,r){let s=r.b,p=r.r,n=r.id(t),d=r.id(t,"help"),e=t.kind??"text",o=s.value(t.value),c=e==="number"||e==="currency",[a,i]=r.state(t,"draft",null),u=Da(o,e),f=a??u,m=t.validation??{},x=t.help!==void 0?s.text(t.help):void 0,y={id:n,class:"pxd-input","aria-describedby":x?d:void 0,required:t.required,autocomplete:t.autocomplete,...r.a11y(t)},h=q=>{if(!c)return s.write(t.value,q);i(q),s.write(t.value,qa(q))},b=q=>{m.message&&q.currentTarget.setCustomValidity(s.text(m.message))},w=q=>q.currentTarget.setCustomValidity(""),z={label:s.text(t.label),help:x,required:t.required,id:n,helpId:d};if(e==="suggestions"||e==="mentions")return Vn(t,r,z,y,e==="mentions");if(e==="tags")return Ln(t,r,z,y);if(e==="richtext")return Kn(t,r,z,y);if(e==="inline")return Wn(t,r,z,y);if(e==="masked"){let q=typeof t.mask=="string"?t.mask:"";return Ee(z,l("input",{...y,class:"pxd-input pxd-input-masked",type:"text",inputmode:Ca(q)?"numeric":void 0,placeholder:q||void 0,value:u,maxlength:q.length||void 0,onInput:P=>(w(P),s.write(t.value,Ia(q,fe(P),fe(P).length<u.length))),onInvalid:b}))}if(e==="code")return Ee(z,l("textarea",{...y,class:"pxd-input pxd-input-code",rows:4,spellcheck:"false",autocorrect:"off",autocapitalize:"off",value:f,maxlength:m.maxLength,minlength:m.minLength,onInput:q=>(w(q),h(fe(q))),onInvalid:b}));if(e==="search"){let q=t.placeholder!==void 0?s.text(t.placeholder):void 0;return l("div",{class:"pxd-search"},l("label",{class:"pxd-sr-only",for:n},s.text(t.label)),Z("search"),l("input",{...y,class:"pxd-search-input",type:"search",placeholder:q,value:f,onInput:P=>h(fe(P))}))}if(t.size==="hero"&&c)return l("div",{class:"pxd-hero-field"},l("label",{class:"pxd-hero-label",for:n},s.text(t.label)),l("div",{class:"pxd-hero-input"},e==="currency"&&l("span",{class:"pxd-hero-symbol","aria-hidden":"true"},yr(s.text(t.currency)||"USD",p.locale)),l("input",{...y,class:"pxd-hero-value",type:"text",inputmode:e==="currency"?"decimal":"numeric",pattern:"-?[0-9]*[.,]?[0-9]*",placeholder:"0",size:Math.max(1,f.length||1),value:f,onInput:q=>(w(q),h(fe(q))),onBlur:()=>i(null),onInvalid:b})),x&&l("p",{class:"pxd-field-help pxd-hero-help",id:d},x));let R=e==="multiline"?l("textarea",{...y,rows:3,value:f,maxlength:m.maxLength,minlength:m.minLength,onInput:q=>(w(q),h(fe(q))),onInvalid:b}):l("div",{class:e==="currency"?"pxd-input-adorned":void 0},e==="currency"&&l("span",{class:"pxd-input-prefix","aria-hidden":"true"},yr(s.text(t.currency)||"USD",p.locale)),l("input",{...y,type:Un[e]??"text",inputmode:e==="currency"?"decimal":e==="number"?"numeric":void 0,pattern:c?"-?[0-9]*[.,]?[0-9]*":void 0,value:f,maxlength:m.maxLength,minlength:m.minLength,onInput:q=>(w(q),h(fe(q))),onBlur:()=>i(null),onInvalid:b}));return Ee(z,R)}function On(t,r,s,p){let n=r.id(t,"list"),[d,e]=r.state(t,"open",!1),[o,c]=r.state(t,"active",-1),a=d&&s.length>0,i=m=>{if(!a){m.key==="ArrowDown"&&s.length&&(e(!0),c(0),m.preventDefault());return}m.key==="ArrowDown"?(c(x=>(x+1)%s.length),m.preventDefault()):m.key==="ArrowUp"?(c(x=>(x-1+s.length)%s.length),m.preventDefault()):m.key==="Enter"&&o>=0?(p(s[o]),e(!1),m.preventDefault()):m.key==="Escape"&&e(!1)},u={role:"combobox","aria-expanded":a,"aria-controls":n,"aria-autocomplete":"list","aria-activedescendant":a&&o>=0?`${n}-${o}`:void 0,autocomplete:"off",onKeydown:i,onBlur:()=>e(!1)};return{list:a?l("ul",{id:n,role:"listbox",class:"pxd-combobox-list"},...s.map((m,x)=>l("li",{key:String(m.value),id:`${n}-${x}`,role:"option","aria-selected":x===o,class:`pxd-combobox-option${x===o?" pxd-combobox-active":""}`,onMousedown:y=>(y.preventDefault(),p(m),e(!1))},m.label,m.description&&l("span",{class:"pxd-option-description"},m.description)))):null,inputProps:u,show:m=>(e(m),c(-1))}}function Vn(t,r,s,p,n){let d=r.b,e=Re(t,r.r.data,d.scope,d.text),o=String(d.value(t.value)??""),c=n?/@([^\s@]*)$/.exec(o):null,a=n?c?c[1]:null:o,i=a===null?[]:e.filter(f=>f.label.toLowerCase().includes(a.toLowerCase())).slice(0,8),u=On(t,r,i,f=>d.write(t.value,n&&c?`${o.slice(0,c.index)}@${f.label} `:f.label));return Ee(s,l("div",{class:"pxd-combobox"},l("input",{...p,...u.inputProps,type:"text",value:o,onInput:f=>{let m=fe(f);d.write(t.value,m),u.show(n?/@[^\s@]*$/.test(m):m.length>0)},onFocus:()=>u.show(!n&&o.length>0)}),u.list))}function Ln(t,r,s,p){let n=r.b,d=n.value(t.value),e=Array.isArray(d)?d.map(String):[],[o,c]=r.state(t,"tags",""),a=(u=o)=>{let f=Ta(e,u);f!==e&&n.write(t.value,f),c("")},i=u=>n.write(t.value,e.filter((f,m)=>m!==u));return Ee(s,l("div",{class:"pxd-tags",role:"group","aria-label":s.label},l("ul",{class:"pxd-tags-list"},...e.map((u,f)=>l("li",{key:`${u}-${f}`,class:"pxd-tag-chip"},u,l("button",{type:"button",class:"pxd-tag-remove","aria-label":`Remove ${u}`,onClick:()=>i(f)},Z("close",14))))),l("input",{...p,class:"pxd-tags-input",type:"text",value:o,onInput:u=>fe(u).endsWith(",")?a(fe(u)):c(fe(u)),onKeydown:u=>{u.key==="Enter"?(u.preventDefault(),a()):u.key==="Backspace"&&o===""&&e.length&&i(e.length-1)},onBlur:()=>a()})))}function ps(t){if(t.nodeType===3)return t.textContent??"";if(t.nodeType!==1)return"";let r=t,s=(p=r)=>Array.from(p.childNodes).map(ps).join("");switch(r.tagName.toLowerCase()){case"b":case"strong":return`**${s()}**`;case"i":case"em":return`*${s()}*`;case"br":return`
2
+ `;case"ul":return Array.from(r.children).map(p=>`- ${s(p)}`).join(`
3
3
  `)+`
4
- `;case"ol":return Array.from(r.children).map((l,n)=>`${n+1}. ${s(l)}`).join(`
4
+ `;case"ol":return Array.from(r.children).map((p,n)=>`${n+1}. ${s(p)}`).join(`
5
5
  `)+`
6
6
  `;case"div":case"p":case"li":return s()+`
7
- `;default:return s()}}function Yi(t){let r=[],s=/\*\*([^*]+)\*\*|\*([^*]+)\*/g,l=0;for(let n=s.exec(t);n;n=s.exec(t)){n.index>l&&r.push(document.createTextNode(t.slice(l,n.index)));let d=document.createElement(n[1]?"strong":"em");d.textContent=n[1]??n[2],r.push(d),l=n.index+n[0].length}return l<t.length&&r.push(document.createTextNode(t.slice(l))),r}function Tn(t){let r=[],s=null;for(let l of t.split(`
8
- `)){let n=/^(-|\d+\.)\s+(.*)$/.exec(l);if(n){let e=n[1]==="-"?"ul":"ol";(!s||s.tagName.toLowerCase()!==e)&&(s=document.createElement(e),r.push(s));let o=document.createElement("li");o.append(...Yi(n[2])),s.append(o);continue}s=null;let d=document.createElement("div");l?d.append(...Yi(l)):d.append(document.createElement("br")),r.push(d)}return r}function Nn(t,r,s,l){let n=r.b,d=String(n.value(t.value)??""),e=m=>n.write(t.value,es(m).replace(/\n+$/,"")),o=m=>x=>{x.preventDefault();let y=x.currentTarget.closest(".pxd-richtext")?.querySelector(".pxd-richtext-area");y&&(y.focus(),document.execCommand(m),e(y))},{id:c,class:a,required:i,autocomplete:u,...f}=l;return Ne(s,p("div",{class:"pxd-richtext"},p("div",{class:"pxd-richtext-toolbar",role:"toolbar","aria-label":"Formatting"},p("button",{type:"button",class:"pxd-richtext-control","aria-label":"Bold",onMousedown:o("bold")},p("strong",null,"B")),p("button",{type:"button",class:"pxd-richtext-control","aria-label":"Italic",onMousedown:o("italic")},p("em",null,"I")),p("button",{type:"button",class:"pxd-richtext-control","aria-label":"Bulleted list",onMousedown:o("insertUnorderedList")},V("menu",16))),p("div",{...f,id:c,class:"pxd-input pxd-richtext-area",contenteditable:"true",role:"textbox","aria-multiline":"true","aria-label":s.label,ref:m=>{let x=m;!x||x.dataset.ready||(x.dataset.ready="1",x.replaceChildren(...Tn(d)))},onInput:m=>e(m.currentTarget),onBlur:m=>e(m.currentTarget)})))}function Mn(t,r,s,l){let n=r.b,d=String(n.value(t.value)??""),[e,o]=r.state(t,"inline",null),c=()=>{e!==null&&n.write(t.value,e),o(null)};return e===null?p("div",{class:"pxd-inline-edit"},p("span",{class:"pxd-field-label"},s.label),p("button",{type:"button",class:"pxd-inline-value","aria-label":`Edit ${s.label}`,onClick:()=>o(d)},p("span",{class:d?void 0:"pxd-inline-empty"},d||"Not set"),p("span",{class:"pxd-inline-hint","aria-hidden":"true"},"Edit"))):Ne(s,p("input",{...l,type:"text",value:e,ref:a=>a&&!a.dataset.focused&&(a.dataset.focused="1",a.focus()),onInput:a=>o(fe(a)),onBlur:c,onKeydown:a=>{a.key==="Enter"?(a.preventDefault(),c()):a.key==="Escape"&&o(null)}}))}var Ji=(t,r,s)=>p("div",{class:"pxd-option-text"},p("label",{for:t},r),s&&p("span",{class:"pxd-option-description",id:`${t}-desc`},s)),Ge=(t,...r)=>p("span",{"data-state":"checked",class:t,style:{pointerEvents:"none"}},...r);function ts(t,r){let s=r.b,l=r.id(t,"label"),n=r.id(t,"help"),d=Re(t,r.r.data,s.scope,s.text),[e,o]=r.state(t,"query",""),c=Hr(d,t.mode),{multiple:a,withFaces:i,searchable:u}=c,f=c.control==="chips",m=s.value(t.value),x=Ie,y=$=>Lr(l,$),h=t.help!==void 0?s.text(t.help):void 0,b=r.a11y(t),w=s.text(t.label),T=p("div",{class:"pxd-field-label",id:l},w,t.required&&He()),A=h&&p("p",{class:"pxd-field-help",id:n},h),R=u&&p("div",{class:"pxd-search pxd-search-compact"},V("search"),p("input",{type:"search",class:"pxd-search-input",placeholder:Or(i),"aria-label":`Search ${w}`,value:e,onInput:$=>o(fe($))})),M=$=>xr($,e);if(a){let $=v=>Ur(m,v),k=v=>s.write(t.value,Fr(m,v));if(f)return p("div",{class:"pxd-field pxd-choice",role:"group","aria-labelledby":l,"aria-describedby":h?n:void 0,...b},T,A,p("div",{class:"pxd-chips"},...d.map(v=>Se({key:x(v.value),class:"pxd-chip",checked:$(v.value),onCheckedChange:()=>k(v.value),indicator:Ge("pxd-chip-check",V("check",18))},v.label))));if(i){let{recent:v,rest:S}=gr(d,e);return p("fieldset",{class:"pxd-field pxd-choice pxd-people","aria-describedby":h?n:void 0,...b},p("legend",{class:"pxd-field-label",id:l},w),A,R,p("div",{class:"pxd-people-group"},v.length>0&&p("div",{class:"pxd-people-recent"},...v.map(I=>Se({key:x(I.value),class:"pxd-person-tile",checked:$(I.value),onCheckedChange:()=>k(I.value),"aria-label":I.label,indicator:null},p("span",{class:"pxd-person-face"},xe(r,{value:I.avatar,name:I.label,size:56}),$(I.value)&&Ge("pxd-person-tick",V("check",14))),p("span",{class:"pxd-person-name","aria-hidden":"true"},I.label.split(" ")[0])))),p("div",{class:"pxd-people-list"},...S.map(I=>{let j=y(I.value);return Se({key:x(I.value),id:j,class:"pxd-person-row",checked:$(I.value),onCheckedChange:()=>k(I.value),"aria-labelledby":`${j}-name`,"aria-describedby":I.description?`${j}-desc`:void 0,indicator:null},xe(r,{value:I.avatar,name:I.label}),p("span",{class:"pxd-person-text"},p("span",{id:`${j}-name`},I.label),I.description&&p("span",{class:"pxd-option-description",id:`${j}-desc`},I.description)),$(I.value)&&Ge("pxd-person-check",V("check")))}))))}return p("fieldset",{class:"pxd-field pxd-choice","aria-describedby":h?n:void 0,...b},p("legend",{class:"pxd-field-label",id:l},w),A,R,p("div",{class:`pxd-choice-list${u?" pxd-choice-scroll":""}`},...d.filter(M).map(v=>{let S=y(v.value);return p("div",{class:"pxd-choice-option",key:x(v.value)},v.avatar!==void 0&&xe(r,{value:v.avatar,name:v.label,size:32}),Se({id:S,class:"pxd-checkbox",checked:$(v.value),onCheckedChange:()=>k(v.value),"aria-describedby":v.description?`${S}-desc`:void 0,indicator:Ge("pxd-checkbox-indicator","\u2713")}),Ji(S,v.label,v.description))})))}let P=m==null?"":x(m),N=$=>s.write(t.value,d.find(k=>x(k.value)===$)?.value),E=($,k,v,S,...I)=>Ke({key:x($.value),value:x($.value),group:P,first:k===0,onSelect:()=>N(x($.value)),indicator:S,...v},...I);if(f)return p("div",{class:"pxd-field pxd-choice",...b},T,A,_e({class:"pxd-chips","aria-labelledby":l,"aria-describedby":h?n:void 0,"aria-required":t.required||void 0,value:P,onValueChange:N,orientation:"horizontal"},...d.map(($,k)=>E($,k,{class:"pxd-chip","data-orientation":"horizontal"},Ge("pxd-chip-check",V("check",18)),$.label))));if(i){let{recent:$,rest:k}=gr(d,e);return p("div",{class:"pxd-field pxd-choice pxd-people",...b},T,A,R,_e({"aria-labelledby":l,"aria-describedby":h?n:void 0,"aria-required":t.required||void 0,value:P,onValueChange:N,class:"pxd-people-group"},$.length>0&&p("div",{class:"pxd-people-recent",role:"presentation"},...$.map((v,S)=>E(v,S,{class:"pxd-person-tile","aria-label":v.label},null,xe(r,{value:v.avatar,name:v.label,size:56}),p("span",{class:"pxd-person-name","aria-hidden":"true"},v.label.split(" ")[0])))),p("div",{class:"pxd-people-list",role:"presentation"},...k.map((v,S)=>{let I=y(v.value);return E(v,$.length+S,{id:I,class:"pxd-person-row","aria-labelledby":`${I}-name`,"aria-describedby":v.description?`${I}-desc`:void 0},null,xe(r,{value:v.avatar,name:v.label}),p("span",{class:"pxd-person-text"},p("span",{id:`${I}-name`},v.label),v.description&&p("span",{class:"pxd-option-description",id:`${I}-desc`},v.description)),P===x(v.value)&&Ge("pxd-person-check",V("check")))}))))}return p("div",{class:"pxd-field pxd-choice",...b},T,A,R,_e({class:`pxd-choice-list${u?" pxd-choice-scroll":""}`,"aria-labelledby":l,"aria-describedby":h?n:void 0,"aria-required":t.required||void 0,value:P,onValueChange:N,orientation:"vertical"},...d.filter(M).map(($,k)=>{let v=y($.value);return p("div",{class:"pxd-choice-option",key:x($.value)},E($,k,{id:v,class:"pxd-radio","aria-describedby":$.description?`${v}-desc`:void 0,"data-orientation":"vertical"},p("span",{"data-state":"checked",class:"pxd-radio-indicator",style:{pointerEvents:"none"}})),Ji(v,$.label,$.description))})))}function rs(t,r){let s=r.b,l=r.id(t),n=r.id(t,"desc"),d=!!s.value(t.value),e=t.description!==void 0?s.text(t.description):void 0,o=a=>{s.write(t.value,a),t.action&&r.r.dispatch({event:{name:t.action.event.name,context:Le(t,r.r.data,s.scope,a)}},{pointer:""},t.id)},c=r.a11y(t);return p("div",{class:"pxd-toggle"},t.action?Pi({id:l,class:"pxd-switch",checked:d,onCheckedChange:o,"aria-describedby":e?n:void 0,...c}):Se({id:l,class:"pxd-checkbox",checked:d,onCheckedChange:a=>o(a===!0),"aria-describedby":e?n:void 0,...c,indicator:Ge("pxd-checkbox-indicator","\u2713")}),p("div",{class:"pxd-toggle-text"},p("label",{for:l,class:"pxd-toggle-label"},s.text(t.label)),e&&p("p",{class:"pxd-field-help",id:n},e)))}var Xi={date:"date",time:"time",datetime:"datetime-local",month:"month"};function as(t,r){let s=r.b,l=r.r,n=r.id(t),d=r.id(t,"help"),e=t.kind??"date",o=t.help!==void 0?s.text(t.help):void 0,c=s.value(t.value),a=t.min!==void 0?s.text(t.min):void 0,i=t.max!==void 0?s.text(t.max):void 0,u=r.a11y(t),f=s.text(t.label);if(t.multiple&&e!=="dateRange"){let m=Array.isArray(c)?c.map(String):[],x=b=>te(b,{type:e==="month"?"date":e==="time"?"time":e==="datetime"?"datetime":"date"},l.locale),y=b=>b&&!m.includes(b)&&s.write(t.value,[...m,b].sort()),h=b=>{let w=b.currentTarget;y(w.value),w.value=""};return p("fieldset",{class:"pxd-field pxd-date-multiple",...u},p("legend",{class:"pxd-field-label"},f,t.required&&He()),o&&p("p",{class:"pxd-field-help",id:d},o),m.length>0&&p("ul",{class:"pxd-tags-list","aria-label":`Chosen ${f}`},...m.map(b=>p("li",{key:b,class:"pxd-tag-chip"},e==="year"||e==="month"?b:x(b),p("button",{type:"button",class:"pxd-tag-remove","aria-label":`Remove ${b}`,onClick:()=>s.write(t.value,m.filter(w=>w!==b))},V("close",14))))),p("label",{class:"pxd-date-add",for:n},p("span",{class:"pxd-sr-only"},"Add a date"),e==="year"?p("input",{id:n,class:"pxd-input pxd-input-year",inputmode:"numeric",pattern:"[0-9]{4}",maxlength:4,placeholder:"YYYY","aria-describedby":o?d:void 0,onKeydown:b=>b.key==="Enter"&&(b.preventDefault(),h(b)),onBlur:h}):p("input",{id:n,class:"pxd-input pxd-input-date",type:Xi[e],min:a,max:i,"aria-describedby":o?d:void 0,onChange:h})))}if(e==="year")return Ne({label:f,help:o,required:t.required,id:n,helpId:d},p("input",{id:n,class:"pxd-input pxd-input-year",inputmode:"numeric",pattern:"[0-9]{4}",maxlength:4,placeholder:"YYYY",value:c??"",min:a,max:i,required:t.required,"aria-describedby":o?d:void 0,onInput:m=>s.write(t.value,fe(m).replace(/\D/g,"").slice(0,4)||null),...u}));if(e==="dateRange"){let[m,x]=Array.isArray(c)?c:[],y=(h,b)=>{let w=[m??null,x??null];w[h]=b||null,s.write(t.value,w)};return p("fieldset",{class:"pxd-field",...u},p("legend",{class:"pxd-field-label"},f),o&&p("p",{class:"pxd-field-help"},o),p("div",{class:"pxd-date-range"},p("label",null,"From",p("input",{class:"pxd-input",type:"date",value:m??"",min:a,max:i,required:t.required,onChange:h=>y(0,fe(h))})),p("label",null,"To",p("input",{class:"pxd-input",type:"date",value:x??"",min:m??a,max:i,required:t.required,onChange:h=>y(1,fe(h))}))))}return Ne({label:f,help:o,required:t.required,id:n,helpId:d},p("input",{id:n,class:`pxd-input pxd-input-date${e==="month"?" pxd-input-month":""}`,type:Xi[e],value:c??"",min:a,max:i,required:t.required,"aria-describedby":o?d:void 0,onChange:m=>s.write(t.value,fe(m)||null),...u}))}function os(t,r){let s=r.b,l=r.r,n=r.id(t,"label"),d=r.id(t,"min"),e=r.id(t,"max"),o=i=>te(i,se(t.format??{type:"number"},l.data,s.scope),l.locale),c=r.a11y(t);if(t.mode==="range"){let i=s.value(t.value),[u,f]=Array.isArray(i)?i.map(Number):[t.min,t.max],m=(x,y)=>s.write(t.value,[Math.max(t.min,Math.min(x,y)),Math.min(t.max,Math.max(x,y))]);return p("div",{class:"pxd-field pxd-range",role:"group","aria-labelledby":n,...c},p("div",{class:"pxd-range-header"},p("span",{class:"pxd-field-label",id:n},s.text(t.label)),p("output",{class:"pxd-range-value","aria-live":"polite"},`${o(u)} \u2013 ${o(f)}`)),To({min:t.min,max:t.max,step:t.step??1,values:[u,f],minStepsBetweenThumbs:1,onValueChange:([x,y])=>m(x,y),thumbs:[{"aria-label":"Minimum","aria-valuetext":o(u)},{"aria-label":"Maximum","aria-valuetext":o(f)}]}),p("div",{class:"pxd-range-fields"},p("label",{for:d},p("span",null,"Minimum"),p("input",{id:d,class:"pxd-input",inputmode:"numeric",value:String(u),onInput:x=>m(Number(fe(x))||t.min,f)})),p("span",{"aria-hidden":"true"},"\u2013"),p("label",{for:e},p("span",null,"Maximum"),p("input",{id:e,class:"pxd-input",inputmode:"numeric",value:String(f),onInput:x=>m(u,Number(fe(x))||t.max)}))))}let a=Number(s.value(t.value)??t.min);return p("div",{class:"pxd-field pxd-range",...c},p("div",{class:"pxd-range-header"},p("span",{class:"pxd-field-label",id:n},s.text(t.label)),p("output",{class:"pxd-range-value","aria-live":"polite"},o(a))),To({min:t.min,max:t.max,step:t.step??1,values:[a],onValueChange:([i])=>s.write(t.value,i),thumbs:[{"aria-labelledby":n,"aria-valuetext":o(a)}]}),p("div",{class:"pxd-range-bounds","aria-hidden":"true"},p("span",null,o(t.min)),p("span",null,o(t.max))))}function jn(t){return(t.labels?.[0]?.textContent??t.getAttribute("aria-label")??t.closest(".pxd-field")?.querySelector(".pxd-field-label, legend")?.textContent??"").replace(/\*\s*$/,"").trim()}function En(t,r){let s=new Set,l=[];for(let n of Array.from(t.elements))if(!(!n.willValidate||n.validity.valid)){if(n.type==="radio"&&n.name){if(s.has(n.name))continue;s.add(n.name)}n.id||(n.id=`${r}-${l.length}`),l.push(n)}return l}function is(t,r){let s=r.b,l=r.r,n=Math.min(r.heading,6),d=r.id(t,"summary"),[e,o]=r.state(t,"problems",()=>[]),[c]=r.state(t,"marked",()=>({current:[]})),a=(t.children??[]).some(y=>l.byId.get(y)?.required),i=()=>{for(let y of c.current)y.removeAttribute("aria-invalid"),y.pxdDescribed?y.setAttribute("aria-describedby",y.pxdDescribed):y.removeAttribute("aria-describedby"),y.pxdNote?.remove(),y.pxdNote=void 0;c.current=[]},u=y=>{for(let h of y){h.setAttribute("aria-invalid","true");let b=h.closest(".pxd-field");if(b&&!b.querySelector(".pxd-field-error")){let w=b.ownerDocument.createElement("p");w.className="pxd-field-error",w.id=`${h.id}-error`,w.textContent=h.validationMessage,b.append(w),h.pxdNote=w,h.pxdDescribed=h.getAttribute("aria-describedby"),h.setAttribute("aria-describedby",[h.pxdDescribed,w.id].filter(Boolean).join(" "))}}c.current=y},f=y=>{let h=document.getElementById(y);h&&(h.scrollIntoView({block:"center"}),h.focus(),document.activeElement!==h&&h.closest(".pxd-field")?.querySelector("[role='radio'], button, input:not([aria-hidden]), textarea, select")?.focus())},[m,x]=r.state(t,"announced",null);return e!==m&&(x(e),e.length&&r.after(()=>l.root?.querySelector(`[data-pxd-id="${CSS.escape(t.id)}"] .pxd-error-summary`)?.focus())),p("form",{class:`pxd-form${t.aside?" pxd-form-with-aside":""}${t.layout==="horizontal"?" pxd-form-horizontal":""}`,novalidate:!0,onSubmit:y=>{y.preventDefault();let h=y.currentTarget;if(i(),!h.checkValidity()){let b=En(h,d);return u(b),o(b.map(w=>({id:w.id,label:jn(w),message:w.validationMessage})))}o([]),l.dispatch(t.submit.action,s.scope,t.id)},...r.a11y(t)},t.aside&&p("aside",{class:"pxd-form-aside"},r.render(t.aside)),p("div",{class:"pxd-stack pxd-form-fields"},e.length>0&&p("section",{class:"pxd-error-summary",role:"alert",tabindex:"-1","aria-labelledby":d},p(`h${n}`,{id:d,class:"pxd-error-summary-title"},"Check these fields before continuing"),p("ul",{class:"pxd-error-summary-list"},...e.map(y=>p("li",{key:y.id},p("a",{href:`#${y.id}`,class:"pxd-link",onClick:h=>(h.preventDefault(),f(y.id))},y.label?`${y.label}: ${y.message}`:y.message))))),a&&p("p",{class:"pxd-required-legend"},p("span",{class:"pxd-required","aria-hidden":"true"},"*")," ","Required"),...De(r,t.children)),p("div",{class:"pxd-action-bar"},p("button",{type:"submit",class:"pxd-button pxd-button-primary"},s.text(t.submit.label)),t.cancel&&p("button",{type:"button",class:"pxd-button pxd-button-secondary",onClick:()=>l.dispatch(t.cancel.action,s.scope,t.id)},s.text(t.cancel.label))))}var Rn=()=>wa(navigator.userAgentData?.platform??navigator.platform??"");function ss(t,r){let s=r.b,l=r.r,n=r.id(t,"desc"),[d,e]=r.state(t,"copied",!1),o=t.disabled!==void 0?!!s.value(t.disabled):!1,c=t.tone==="danger"?" pxd-button-danger":"",a=t.description!==void 0?s.text(t.description):void 0,i=typeof t.shortcut=="string"&&t.shortcut?ha(t.shortcut,Rn()):void 0,u=()=>{let x=t.action.event.name;if(x==="ui.back"&&r.steps)return r.steps.back();if(x==="ui.next"&&r.steps)return r.steps.next();if(x==="ui.copy"){let y=ga(t,l.data,s.scope,s.text),h=()=>{e(!0),setTimeout(()=>e(!1),2e3)};typeof navigator<"u"&&navigator.clipboard?.writeText?navigator.clipboard.writeText(y).then(h,()=>{}):h()}l.dispatch(t.action,s.scope,t.id)},f=l.doc.surface.kind==="shell",m=x=>{let y=x;y&&(y.pxdKey&&document.removeEventListener("keydown",y.pxdKey),!(!i||o)&&(y.pxdKey=h=>{let b=l.root;h.defaultPrevented||h.repeat||!b||!y.isConnected||!f&&!b.contains(document.activeElement)&&!(h.target instanceof HTMLElement&&b.contains(h.target))||ba(i,h)&&(va(i)&&$i(h.target)||(h.preventDefault(),y.click()))},document.addEventListener("keydown",y.pxdKey),l.onDispose(()=>y.pxdKey&&document.removeEventListener("keydown",y.pxdKey))))};return p("button",{type:"button",class:`pxd-button pxd-button-${t.emphasis??"secondary"}${c}${a?" pxd-button-described":""}`,disabled:o,"aria-describedby":a?n:void 0,"aria-keyshortcuts":i?.aria,onClick:u,...r.a11y(t),ref:m},p("span",{class:"pxd-button-label"},d?"Copied":s.text(t.label)),i&&p("span",{class:"pxd-kbd-hint","aria-hidden":"true"},...i.hint.map((x,y)=>p("kbd",{key:y,class:"pxd-kbd"},x))),a&&p("span",{class:"pxd-button-description",id:n},a),t.action.event.name==="ui.copy"&&p("span",{class:"pxd-sr-only","aria-live":"polite"},d?"Copied":""))}function ns(t,r){let s=r.b,l=r.r,[n,d]=r.state(t,"task",null),e=t.current!==void 0?s.value(t.current):void 0,[o,c]=r.state(t,"step",()=>Kr(e,t.steps.length)),a=t.kind??"wizard",i=p("div",{class:"pxd-action-bar"},p("button",{type:"button",class:"pxd-button pxd-button-primary",onClick:()=>l.dispatch(t.finish.action,s.scope,t.id)},s.text(t.finish.label)));if(a==="guide")return p("div",{class:"pxd-steps pxd-guide",...r.a11y(t)},p("ol",{class:"pxd-guide-list"},...t.steps.map((w,T)=>p("li",{key:w.key,class:"pxd-guide-step"},p("span",{class:"pxd-guide-number","aria-hidden":"true"},T+1),p("div",{class:"pxd-guide-body"},Te(r,"pxd-guide-title",s.text(w.title)),r.render(w.content))))),i);if(a==="tasklist"){let w=A=>Yr(A.status!==void 0?s.text(A.status):"todo"),T=t.steps.filter(A=>w(A).label==="Completed").length;return p("div",{class:"pxd-steps pxd-tasklist",...r.a11y(t)},p("p",{class:"pxd-steps-progress"},Xr(T,t.steps.length)),p("ul",{class:"pxd-tasklist-list"},...t.steps.map(A=>{let R=n===A.key,{label:M,tone:P}=w(A),N=M==="Cannot start yet";return p("li",{key:A.key,class:`pxd-task${R?" pxd-task-open":""}`},p("div",{class:"pxd-task-row"},p("button",{type:"button",class:"pxd-task-title","aria-expanded":R,disabled:N,onClick:()=>d(Jr(n,A.key))},s.text(A.title)),p("span",{class:`pxd-badge pxd-tone-${P} pxd-task-status`},M)),R&&p("div",{class:"pxd-task-content"},r.render(A.content)))})),i)}let u=t.steps.length,f=typeof e=="number"&&t.current?.path?{index:Math.max(0,Math.min(u-1,e)),total:u}:{...o,total:u},m=w=>{let T=Zr(f,{type:"go",index:w});t.current?.path?s.write(t.current,T.index):c(T)},x=f.index,y=t.steps[x],h=Wr(f),b=r.with({steps:{back:()=>m(x-1),next:()=>m(x+1)}});return p("div",{class:"pxd-steps",...r.a11y(t)},p("p",{class:"pxd-steps-progress"},Gr(f)),p("ol",{class:"pxd-steps-list"},...t.steps.map((w,T)=>p("li",{key:w.key,"aria-current":T===x?"step":void 0,class:T<x?"pxd-step-done":T===x?"pxd-step-current":void 0},s.text(w.title)))),p("form",{class:"pxd-steps-content",onSubmit:w=>{w.preventDefault(),h?l.dispatch(t.finish.action,s.scope,t.id):m(x+1)}},Te(b,"pxd-steps-title",s.text(y.title)),b.render(y.content),p("div",{class:"pxd-action-bar"},p("button",{type:"submit",class:"pxd-button pxd-button-primary"},h?s.text(t.finish.label):"Continue"),x>0&&p("button",{type:"button",class:"pxd-button pxd-button-secondary",onClick:()=>m(x-1)},"Back"))))}function ds(t,r){let s=r.b,l=r.r,n=l.doc.root===t.id,[d,e]=r.state(t,"open",!0),[o,c]=r.state(t,"typed",""),a=r.id(t,"title"),i=r.id(t,"desc"),u=t.typeToConfirm!==void 0?s.text(t.typeToConfirm):void 0,f=!u||o.trim()===u,m=t.severity==="destructive",x=r.a11y(t),y=()=>{n||e(!1),l.dispatch(t.cancel?.action??{event:{name:"ui.dismiss"}},s.scope,t.id)},h=()=>f&&l.dispatch(t.confirm.action,s.scope,t.id),b=t.subject&&p("div",{class:"pxd-dialog-subject"},xe(r,{value:t.subject.avatar!==void 0?s.value(t.subject.avatar):void 0,name:s.text(t.subject.title),size:56}),p("div",null,p("div",{class:"pxd-dialog-subject-title"},s.text(t.subject.title)),t.subject.subtitle!==void 0&&p("div",{class:"pxd-dialog-subject-sub"},s.text(t.subject.subtitle)))),w=t.amount&&p("div",{class:"pxd-dialog-amount"},s.text(t.amount.value,t.amount.format)),T=Array.isArray(t.consequences)&&p("ul",{class:"pxd-consequences"},...t.consequences.map(($,k)=>p("li",{key:k},p("span",{class:"pxd-consequence-icon"},V($.icon??"info")),p("span",null,p("span",{class:"pxd-consequence-title"},s.text($.title)),$.detail!==void 0&&p("span",{class:"pxd-consequence-detail"},s.text($.detail)))))),A=p("div",{class:"pxd-dialog-description",id:i},t.message!==void 0&&p("p",null,s.text(t.message))),R=t.consequence!==void 0&&p("p",{class:"pxd-dialog-consequence",id:`${i}-consequence`},V("info",18),p("span",null,s.text(t.consequence))),M=($,k)=>[T,t.summary&&r.render(t.summary),u&&p("div",{class:"pxd-field"},p("label",{class:"pxd-field-label",for:`${t.id}-type`},"Type ",p("strong",null,u)," to confirm"),p("input",{id:`${t.id}-type`,class:"pxd-input",autocomplete:"off",value:o,onInput:v=>c(v.target.value)})),R,p("div",{class:"pxd-action-bar"},$,k)],P=p("button",{type:"button",class:`pxd-button pxd-button-primary${m?" pxd-button-danger":""}`,disabled:!f,onClick:h},s.text(t.confirm.label)),N=t.cancel?s.text(t.cancel.label):"Cancel",E=t.consequence!==void 0?`${i} ${i}-consequence`:i;if(n){let[$,k]=r.state(t,"focused",!1);return $||(k(!0),r.after(()=>l.root?.querySelector(`[data-pxd-id="${CSS.escape(t.id)}"] > .pxd-action-bar > .pxd-button-secondary`)?.focus({preventScroll:!0}))),p("div",{role:"alertdialog","aria-modal":"false","aria-labelledby":a,"aria-describedby":E,class:`pxd-dialog pxd-dialog-inline${m?" pxd-dialog-destructive":""}`,onKeydown:v=>v.key==="Escape"&&y(),...x},p("h1",{class:"pxd-dialog-title",id:a},s.text(t.title)),w,b,A,...M(P,p("button",{type:"button",class:"pxd-button pxd-button-secondary",onClick:y},N)))}return d&&r.portal(ze({ctx:r,id:r.id(t,"dialog"),role:"alertdialog",class:`pxd-dialog${m?" pxd-dialog-destructive":""}`,onClose:y,props:{"aria-labelledby":a,"aria-describedby":E,...x}},p("h2",{id:a,class:"pxd-dialog-title"},s.text(t.title)),w,b,A,...M(P,p("button",{type:"button",class:"pxd-button pxd-button-secondary",autofocus:!0,onClick:y},N)))),null}function ps(t,r){let s=r.b,l=r.r,n=Y(t.items.path,s.scope),d=pe(X(l.data,n)),e=d.map((x,y)=>({pointer:ie(n,y)})),o=(x,y)=>X(l.data,Y(x,e[y])),c=t.recommended!==void 0?s.text(t.recommended):void 0,a=t.recommendedReason!==void 0?s.text(t.recommendedReason):void 0,i=ao(t.attributes,d.length,o),u=oo(t.attributes,s.text),f=io(d.map((x,y)=>String(o(t.itemTitle,y)??"")),c),m=(x,y)=>{let h=o(x.path,y);return typeof h=="boolean"?h?p("span",{class:"pxd-yes"},V("check",18),p("span",{class:"pxd-sr-only"},"Included")):p("span",{class:"pxd-no"},V("dash",18),p("span",{class:"pxd-sr-only"},"Not included")):te(h,se(x.format,l.data,s.scope),l.locale)};return p("div",{class:"pxd-comparison",...r.a11y(t)},t.summary!==void 0&&p("p",{class:"pxd-comparison-summary"},s.text(t.summary)),p("ul",{class:"pxd-comparison-items"},...f.map(x=>{let y=String(o(t.itemTitle,x)??""),h=c===y;return p("li",{key:x,class:`pxd-comparison-item${h?" pxd-recommended":""}`},h&&p("p",{class:"pxd-recommendation"},p("span",{class:"pxd-badge pxd-tone-info"},"Recommended"),a&&p("span",{class:"pxd-recommendation-reason"},a)),Te(r,"pxd-comparison-title",y),...u.map((b,w)=>p("div",{class:"pxd-comparison-group",key:w},b.label&&p("p",{class:"pxd-comparison-group-label"},b.label),p("dl",null,...b.attributes.map(T=>p("div",{class:"pxd-detail-row",key:T.key},p("dt",null,s.text(T.label)),p("dd",null,m(T,x),i.get(T.key)===x&&p("span",{class:"pxd-best"}," Best"))))))),t.choose&&p("button",{type:"button",class:`pxd-button ${h?"pxd-button-primary":"pxd-button-secondary"}`,onClick:()=>l.dispatch(t.choose.action,e[x],t.id)},`${s.text(t.choose.label)} `,p("span",{class:"pxd-sr-only"},y)))})))}function ls(t,r){let s=r.r,l=t.children??[],[n,d]=r.state(t,"shown",l.length),[e]=r.state(t,"widths",()=>new Map),[o]=r.state(t,"measured",()=>({trigger:44,width:-1})),[c,a]=r.state(t,"menu",qe),i=So(l,s.byId),u=r.id(t,"more"),f=h=>{if(l.length<=2||getComputedStyle(h).flexDirection==="column")return d(l.length);for(let T of h.querySelectorAll(":scope > [data-pxd-id]"))T.offsetWidth&&e.set(T.dataset.pxdId,T.offsetWidth);let b=h.querySelector(":scope > .pxd-action-bar-more");b?.offsetWidth&&(o.trigger=b.offsetWidth);let w=parseFloat(getComputedStyle(h).columnGap)||0;d(zo(l,T=>e.get(T)??0,w,h.clientWidth,o.trigger,i))},m=h=>{h&&s.observeWidth(h,`${t.id}:bar`,b=>{b!==o.width&&(o.width=b,f(h))})};r.after(()=>{let h=s.root?.querySelector(`[data-pxd-id="${CSS.escape(t.id)}"].pxd-action-bar`);h&&f(h)});let x=l.slice(0,Math.min(n,l.length)),y=l.slice(x.length);return y.length&&We(r,u,c,a,Bn(r,y),{class:"pxd-menu pxd-action-menu"}),p("div",{class:"pxd-action-bar",role:"group","aria-label":"Actions",...r.a11y(t),ref:m},...x.map(h=>r.render(h)),y.length>0&&p("button",{type:"button",...it(u,c,a,"start",{class:"pxd-icon-button pxd-action-menu-trigger pxd-action-menu-overflow pxd-action-bar-more","aria-label":Po})},V("dots",18)))}function Bn(t,r){let s=t.b,l=r.map(c=>t.r.byId.get(c)).filter(c=>!!c&&c.component==="Action"&&(c.visible===void 0||s.value(c.visible)!==!1)),{usual:n,danger:d,divider:e}=ar(l),o=c=>({key:c.id,label:[s.text(c.label)],class:`pxd-menu-item${c.tone==="danger"?" pxd-menu-item-danger":""}`,disabled:c.disabled!==void 0?!!s.value(c.disabled):void 0,onSelect:()=>t.r.dispatch(c.action,s.scope,c.id),props:{"data-pxd-id":c.id,"data-pxd-component":c.component}});return[...n.map(o),...e?["separator"]:[],...d.map(o)]}function cs(t,r){let s=r.b,l=r.r,[n,d]=r.state(t,"compact",!1),[e,o]=r.state(t,"open",!1),c=r.a11y(t),a=r.id(t,"sheet"),i=t.label!==void 0?s.text(t.label):"Filters",u=(t.children??[]).map(M=>l.byId.get(M)).filter(Boolean),f=u.filter(M=>M.component==="TextInput"&&M.kind==="search"),m=u.filter(M=>!f.includes(M)),x=bo(m,l.data,s.scope,l.locale,s.text),y=M=>l.surface.write(M.binding,M.cleared,s.scope),h=t.resultCount!==void 0?s.value(t.resultCount):void 0,b=wo(h,l.locale),w=()=>{for(let M of x)y(M);t.clear&&l.dispatch(t.clear,s.scope,t.id)},T=()=>o(!1),A=()=>m.map(M=>r.render(M.id)),R=p("div",{class:"pxd-filter-results"},...f.map(M=>r.render(M.id)),p("div",{class:"pxd-filter-status"},n&&p("button",{type:"button",class:"pxd-chip pxd-filter-trigger","aria-haspopup":"dialog","aria-expanded":e,"aria-controls":e?a:void 0,"data-state":e?"open":"closed",onClick:()=>o(!0)},V("filter",18),i,x.length>0&&p("span",{"aria-hidden":"true"},` \xB7 ${x.length}`),x.length>0&&p("span",{class:"pxd-sr-only"},`, ${x.length} active`)),b&&p("p",{class:"pxd-filter-count","aria-live":"polite"},b)),x.length>0&&p("ul",{class:"pxd-filter-chips","aria-label":"Active filters"},...x.map(M=>p("li",{key:M.key},p("button",{type:"button",class:"pxd-chip pxd-filter-chip",onClick:()=>y(M),"aria-label":`Remove filter: ${M.label}`},M.label,V("close",16)))),p("li",null,p("button",{type:"button",class:"pxd-button pxd-button-tertiary pxd-filter-clear",onClick:w},"Clear all"))),r.render(t.results));if(n&&e){let M=r.id(t,"sheet-title");r.portal(ze({ctx:r,id:a,class:"pxd-sheet",onClose:T,props:{id:a,"aria-labelledby":M}},p("div",{class:"pxd-sheet-header"},p("h2",{id:M,class:"pxd-sheet-title"},i),Ce(T,{class:"pxd-icon-button","aria-label":"Close"},V("close"))),p("div",{class:"pxd-sheet-body pxd-stack"},...A()),p("div",{class:"pxd-sheet-footer"},x.length>0&&p("button",{type:"button",class:"pxd-button pxd-button-secondary",onClick:w},"Clear all"),Ce(T,{class:"pxd-button pxd-button-primary"},b?`Show ${b}`:"Show results"))))}return p("div",{class:`pxd-filter-panel${n?" pxd-filter-compact":""}`,...c,ref:M=>M&&l.observeWidth(M,`${t.id}:filter`,P=>d(P<vo))},n?R:p("div",{class:"pxd-filter-layout"},p("section",{class:"pxd-filter-sidebar","aria-label":i},Te(r,"pxd-filter-title",i),p("div",{class:"pxd-stack"},...A())),R))}function us(t,r){let s=r.b,l=r.r,n=r.frame,[d,e]=r.state(t,"compact",!1),[o,c]=r.state(t,"open",!1),[a,i]=r.state(t,"toggled",()=>({})),u=t.kind??"main",f=n&&n.navigationId===t.id&&u==="main"?n.navigation:void 0,m=s.value(t.current),x=f&&n?.current?.key!==void 0?n.current.key:m,y=t.label!==void 0?s.text(t.label):no(u),h=r.a11y(t),b=r.id(t,"drawer"),w=$=>{c(!1),n?.setDrawerOpen(!1),l.dispatch($.action,s.scope,t.id)},T=$=>{let k=$.badge!==void 0?s.value($.badge):void 0;return k?p("span",{class:"pxd-nav-badge"},k,p("span",{class:"pxd-sr-only"}," needing attention")):null};if(u==="breadcrumb")return p("nav",{class:"pxd-nav-breadcrumb","aria-label":y,...h},p("ol",null,...t.items.map(($,k)=>{let v=k===t.items.length-1,S=$.key===x||x===void 0&&v;return p("li",{key:$.key},S?p("span",{class:"pxd-nav-breadcrumb-current","aria-current":"page"},s.text($.label)):p("button",{type:"button",class:"pxd-link",onClick:()=>w($)},s.text($.label)))})));if(u==="toc")return p("nav",{class:"pxd-nav-toc","aria-label":y,...h},p("p",{class:"pxd-nav-toc-label","aria-hidden":"true"},y),p("ol",null,...t.items.map($=>{let k=$.key===x;return p("li",{key:$.key},p("a",{href:`#${$.key}`,class:`pxd-nav-toc-link${k?" pxd-nav-current":""}`,"aria-current":k?"true":void 0,onClick:()=>l.dispatch($.action,s.scope,t.id)},s.text($.label)))})));if(u==="local")return p("nav",{class:"pxd-nav-local","aria-label":y,...h},p("ul",null,...t.items.map($=>{let k=$.key===x;return p("li",{key:$.key},p("button",{type:"button",class:`pxd-nav-local-item${k?" pxd-nav-current":""}`,"aria-current":k?"page":void 0,onClick:()=>w($)},$.icon&&V($.icon,16),p("span",{class:"pxd-nav-label"},s.text($.label)),T($)))})));let A=so(t.items,s.text),R=u==="nested",M=$=>$.label&&$.label in a?a[$.label]:!$.label||$.items.some(k=>k.key===x),P=$=>p("ul",null,...$.map(k=>{let v=k.key===x;return p("li",{key:k.key},p("button",{type:"button",class:`pxd-nav-item${v?" pxd-nav-current":""}`,"aria-current":v?"page":void 0,onClick:()=>w(k)},k.icon&&V(k.icon,18),p("span",{class:"pxd-nav-label"},s.text(k.label)),T(k)))})),N=p("nav",{class:`pxd-nav${R?" pxd-nav-nested":""}${f==="side"?" pxd-nav-side":""}`,"aria-label":y,...f==="side"?h:{}},...A.map(($,k)=>p("div",{class:"pxd-nav-group",key:k},$.label&&(R?p("button",{type:"button",class:"pxd-nav-group-toggle","aria-expanded":M($),onClick:()=>i({...a,[$.label]:!M($)})},V(M($)?"sortUp":"sortDown",16),p("span",{class:"pxd-nav-group-label"},$.label)):p("p",{class:"pxd-nav-group-label"},$.label)),(!R||M($))&&P($.items))));if(f==="side")return N;if(f==="rail"||f==="bar"){let $=f==="bar"?t.items.slice(0,5):t.items;return p("nav",{class:`pxd-nav-${f}`,"aria-label":y,...h},p("ul",null,...$.map(k=>{let v=k.key===x,S=s.text(k.label);return p("li",{key:k.key},p("button",{type:"button",class:`pxd-nav-${f}-item${v?" pxd-nav-current":""}`,"aria-current":v?"page":void 0,onClick:()=>w(k)},p("span",{class:`pxd-nav-${f}-icon`},k.icon?V(k.icon,24):p("span",{class:"pxd-nav-glyph","aria-hidden":"true"},S.slice(0,1)),T(k)),p("span",{class:"pxd-nav-label"},S)))})))}let E=($,k,v)=>{if(!$)return;let S=r.id(t,"drawer-title");r.portal(ze({ctx:r,id:b,class:"pxd-nav-drawer",onClose:k,props:{id:b,"aria-labelledby":S,...v}},p("div",{class:"pxd-sheet-header"},p("h2",{id:S,class:"pxd-sheet-title"},y),Ce(k,{class:"pxd-icon-button","aria-label":"Close"},V("close"))),N))};return f==="drawer"&&n?(E(n.drawerOpen,()=>n.setDrawerOpen(!1),h),null):(E(d&&o,()=>c(!1),{}),p("div",{class:"pxd-nav-wrap",...h,ref:$=>{if(!$||u!=="main"||f)return;let k=$.closest(".pxd-surface")??$;l.observeWidth(k,`${t.id}:nav`,v=>e(v<900))}},d?p("button",{type:"button",class:"pxd-icon-button pxd-nav-menu","aria-label":`${y} menu`,"aria-haspopup":"dialog","aria-expanded":o,"aria-controls":o?b:void 0,"data-state":o?"open":"closed",onClick:()=>c(!0)},V("menu")):N))}function _n(t,r,s){r.action&&t.r.dispatch({event:{name:r.action.event.name,context:Le(r,t.r.data,t.scope,s)}},{pointer:""},r.id)}function ms(t,r){let s=r.b,l=s.text(t.label),n=t.kind??"label",d=n==="status"?t.tone??"neutral":"neutral",e=r.a11y(t),o=`pxd-tag pxd-tag-${n} pxd-tag-${d}${t.remove?" pxd-tag-removable":""}`;return n==="count"?p("span",{class:o,title:l,...e},p("span",{class:"pxd-sr-only"},`${l}: `),p("span",{class:"pxd-tag-number"},s.text(t.count,{type:"number"}))):p("span",{class:o,title:l,...e},p("span",{class:"pxd-tag-text"},l),t.remove&&p("button",{type:"button",class:"pxd-tag-remove","aria-label":`Remove ${l}`,onClick:()=>r.r.dispatch(t.remove,s.scope,t.id)},V("close",12)))}function xs(t,r){let s=r.b,l=r.r,n=r.id(t,"name"),d=r.id(t,"detail"),e=r.a11y(t),o=t.kind??"person",c=t.size??"default",a=kr[c]??kr.default,i=s.text(t.name),u=t.detail!==void 0?s.text(t.detail):void 0,f={"--polyxd-identity-size":`${a}px`},m=`pxd-identity pxd-identity-${c} pxd-identity-${o}${t.group?" pxd-identity-group":""}`,x,y=i;if(t.group){let b=Y(t.group.path,s.scope),w=pe(X(l.data,b)).map((M,P)=>{let N={pointer:ie(b,P)},E=$=>$?X(l.data,Y($,N)):void 0;return{name:String(E(t.group.namePath)??""),image:E(t.group.imagePath)}}),T=t.group.max??4,A=w.slice(0,T),R=w.slice(T);y||(y=Ua(w,T)),x=p("span",{class:"pxd-identity-faces"},...A.map((M,P)=>p("span",{class:"pxd-identity-face",key:P},xe(r,{value:M.image,name:M.name,size:a}),p("span",{class:"pxd-sr-only"},M.name))),R.length>0&&p("span",{class:"pxd-identity-face pxd-identity-more",role:"img",title:R.map(M=>M.name).join(", "),"aria-label":`${R.length} more: ${R.map(M=>M.name).join(", ")}`},p("span",{"aria-hidden":"true"},`+${R.length}`)))}else x=xe(r,{value:s.value(t.image),name:i,size:a});let h=[x,p("span",{class:"pxd-identity-text"},p("span",{class:"pxd-identity-name",id:n},y),u&&p("span",{class:"pxd-identity-detail",id:d},u))];return t.action?p("button",{type:"button",class:`${m} pxd-identity-button`,style:f,"aria-labelledby":n,"aria-describedby":u?d:void 0,onClick:()=>l.dispatch(t.action,s.scope,t.id),...e},...h):p("div",{class:m,style:f,role:"group","aria-labelledby":n,"aria-describedby":u?d:void 0,...e},...h)}function gs(t,r){let s=r.b,l=r.id(t,"label"),n=r.a11y(t),d=t.kind??"bar",e=s.text(t.label),o=t.caption!==void 0?s.text(t.caption):void 0,c=Ba({kind:d,thresholds:t.thresholds,tone:t.tone,format:se(t.format,r.r.data,s.scope)},s.value(t.value),t.max!==void 0?s.value(t.max):void 0,!!s.value(t.indeterminate),o,r.r.locale),a=d==="meter"?"meter":"progressbar",i=`pxd-gauge pxd-gauge-${d}${c.tone&&c.tone!=="neutral"?` pxd-gauge-${c.tone}`:""}${c.indeterminate?" pxd-gauge-indeterminate":""}`,u=p("div",{class:"pxd-gauge-header"},p("span",{class:"pxd-gauge-label",id:l},e),p("span",{class:"pxd-gauge-readout"},!c.indeterminate&&p("span",{class:"pxd-gauge-value"},c.readout),o&&p("span",{class:"pxd-gauge-caption"},o),c.hint&&p("span",{class:"pxd-gauge-hint"},c.hint)));return d==="ring"?p("div",{class:i,...n},p("div",{class:"pxd-gauge-ring-graphic",role:a,"aria-labelledby":l,...c.valueProps},p("svg",{class:"pxd-gauge-ring-svg",viewBox:"0 0 36 36","aria-hidden":"true",focusable:"false"},p("circle",{class:"pxd-gauge-ring-track",cx:"18",cy:"18",r:"16",fill:"none","stroke-width":"4"}),p("circle",{class:"pxd-gauge-ring-fill",cx:"18",cy:"18",r:"16",fill:"none","stroke-width":"4",pathLength:100,"stroke-dasharray":c.indeterminate?"25 100":`${c.percent} 100`,"stroke-linecap":"round"}))),u):p("div",{class:i,...n},u,p("div",{class:"pxd-gauge-track",role:a,"aria-labelledby":l,...c.valueProps},p("div",{class:"pxd-gauge-fill",style:c.indeterminate?void 0:{width:`${c.percent}%`}})))}function fs(t){let r=Math.round(Math.max(0,Math.min(1,t))*100);return p("span",{class:"pxd-rating-star-shape","aria-hidden":"true"},p("svg",{class:"pxd-rating-star-empty",viewBox:"0 0 24 24",focusable:"false"},p("path",{d:$r})),p("span",{class:"pxd-rating-star-fill",style:{width:`${r}%`}},p("svg",{viewBox:"0 0 24 24",focusable:"false"},p("path",{d:$r}))))}function ys(t,r){let s=r.b,l=r.r,n=r.id(t,"label"),d=r.id(t,"help"),[e,o]=r.state(t,"hover",null),c=r.a11y(t),a=t.max??5,i=s.text(t.label),u=s.value(t.value),f=u==null||u===""?void 0:Number(u),m=f!==void 0&&Number.isFinite(f)?Math.max(0,Math.min(a,f)):void 0,x=!!s.value(t.readOnly),y=t.count!==void 0?s.value(t.count):void 0,h=y!=null?te(y,{type:"number"},l.locale):void 0,b=t.help!==void 0?s.text(t.help):void 0,w=m!==void 0?te(m,{type:"number",precision:Number.isInteger(m)?0:1},l.locale):void 0,T=y!=null?`from ${h} ${Number(y)===1?"rating":"ratings"}`:void 0;if(x)return p("div",{class:"pxd-rating pxd-rating-readonly",...c},p("span",{class:"pxd-rating-label"},i),p("span",{class:"pxd-rating-stars",role:"img","aria-label":Ha(w,a)},...Array.from({length:a},(P,N)=>fs((m??0)-N))),p("span",{class:"pxd-rating-readout"},w&&p("span",{class:"pxd-rating-value","aria-hidden":"true"},w),h&&p("span",{class:"pxd-rating-count"},p("span",{"aria-hidden":"true"},`(${h})`),p("span",{class:"pxd-sr-only"},T))));let A=m!==void 0?Math.round(m):0,R=e??A,M=P=>{let N=Number(P);s.write(t.value,N),_n(r,t,N)};return p("div",{class:"pxd-field pxd-rating",...c},p("div",{class:"pxd-field-label",id:n},i,t.required&&p("span",{class:"pxd-required","aria-hidden":"true"},"*")),b&&p("p",{class:"pxd-field-help",id:d},b),p("div",{class:"pxd-rating-row"},_e({class:"pxd-rating-stars",orientation:"horizontal","aria-labelledby":n,"aria-describedby":b?d:void 0,"aria-required":t.required||void 0,value:A?String(A):"",onValueChange:M,onMouseleave:()=>o(null)},...Array.from({length:a},(P,N)=>N+1).map(P=>Ke({key:P,value:String(P),group:A?String(A):"",first:P===1,onSelect:()=>M(String(P)),class:`pxd-rating-star${P<=R?" pxd-rating-star-on":""}`,"aria-label":_a(P),"data-orientation":"horizontal",onMouseenter:()=>o(P),onFocus:()=>o(null)},fs(P<=R?1:0)))),p("span",{class:"pxd-rating-readout","aria-hidden":"true"},w&&p("span",{class:"pxd-rating-value"},w),h&&p("span",{class:"pxd-rating-count"},`(${h})`)),T&&p("span",{class:"pxd-sr-only"},T)))}var Hn=2e3;function hs(t,r){let s=r.b,l=r.id(t,"label"),n=r.a11y(t),d=s.text(t.text),e=t.label!==void 0?s.text(t.label):void 0,o=!!s.value(t.secret),c=t.copyable!==!1,[a,i]=r.state(t,"revealed",!1),[u,f]=r.state(t,"status",""),[m]=r.state(t,"timer",()=>({id:null})),x=A=>{f(A),m.id&&clearTimeout(m.id),m.id=setTimeout(()=>f(""),Hn)},y=()=>{let A=typeof navigator<"u"?navigator.clipboard:void 0;if(!A?.writeText)return x("Couldn't copy");A.writeText(d).then(()=>x("Copied"),()=>x("Couldn't copy"))},h=o&&!a,b=h?Fa(d):d,w=e??"code",T=e??(t.language?`${t.language} code`:"Code");return p("section",{class:`pxd-code${t.wrap?" pxd-code-wrap":""}${o?" pxd-code-secret":""}`,"aria-labelledby":e!==void 0?l:void 0,"aria-label":e===void 0?T:void 0,...n},p("div",{class:"pxd-code-header"},e!==void 0&&p("span",{class:"pxd-code-label",id:l},e),p("div",{class:"pxd-code-controls"},o&&p("button",{type:"button",class:"pxd-button pxd-button-tertiary pxd-code-control","aria-label":`${a?"Hide":"Show"} ${w}`,onClick:()=>i(!a)},a?"Hide":"Show"),c&&p("button",{type:"button",class:"pxd-button pxd-button-tertiary pxd-code-control","aria-label":`Copy ${w}`,onClick:y},u==="Copied"&&V("check",16),u==="Copied"?"Copied":"Copy"),p("span",{class:"pxd-sr-only",role:"status","aria-live":"polite"},u))),p("pre",{class:"pxd-code-pre",tabindex:"0","data-language":t.language,"data-masked":h||void 0},p("code",{class:t.language?`language-${t.language}`:void 0,translate:"no"},b)))}var bs=()=>p("svg",{class:"pxd-action-menu-chevron",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},p("path",{d:"m6 9 6 6 6-6"}));function vs(t,r){let s=r.b,l=r.r,n=r.a11y(t),d=t.kind??"overflow",e=s.text(t.label),o=n["aria-label"]??e,c=r.id(t,"menu"),[a,i]=r.state(t,"menu",qe),[u,f]=r.state(t,"context",qe),m=(t.children??[]).map(R=>l.byId.get(R)).filter(R=>!!R&&(R.visible===void 0||s.value(R.visible)!==!1)),{usual:x,danger:y,divider:h}=ar(m),b=R=>({key:R.id,label:[s.text(R.label)],class:`pxd-menu-item${R.tone==="danger"?" pxd-menu-item-danger":""}`,disabled:R.disabled!==void 0?!!s.value(R.disabled):void 0,onSelect:()=>l.dispatch(R.action,s.scope,R.id),props:{"data-pxd-id":R.id,"data-pxd-component":R.component}}),w=[...x.map(b),...h?["separator"]:[],...y.map(b)];We(r,c,a,i,w,{class:"pxd-menu pxd-action-menu"});let T=(R,M,...P)=>p("button",{type:"button",...it(c,a,i,M,R)},...P),A=()=>T({class:"pxd-icon-button pxd-action-menu-trigger pxd-action-menu-overflow",...n,"aria-label":o},"end",V("dots",18));if(d==="dropdown")return T({class:"pxd-button pxd-button-secondary pxd-action-menu-trigger pxd-action-menu-dropdown",...n,"aria-label":n["aria-label"]},"end",e,bs());if(d==="split"){let M=(t.primary?l.byId.get(t.primary):void 0)?.emphasis??"secondary";return p("div",{class:"pxd-split",role:"group",...n,"aria-label":o},t.primary&&r.render(t.primary),T({class:`pxd-button pxd-button-${M} pxd-action-menu-trigger pxd-split-menu`,"aria-label":`${e}: more options`},"end",bs()))}return d==="context"?(We(r,`${c}-context`,u,f,w,{class:"pxd-menu pxd-action-menu","aria-label":o}),p("span",{class:"pxd-context-target","data-state":u.open?"open":"closed",style:{WebkitTouchCallout:"none"},onContextmenu:R=>{R.preventDefault(),f({open:!0,x:R.clientX,y:R.clientY,align:"start"})}},A())):A()}function ws(t,r){let s=r.b,l=r.r,n=r.a11y(t),d=Math.min(r.heading,6),e=r.id(t,"title"),o=r.id(t,"panel"),c=t.kind??"dialog",a=t.size??"default",i=t.dismissible!==!1,u=Ae(t.open),[f,m]=r.state(t,"open",!0),x=u?!!s.value(t.open):f&&t.open!==!1,y=()=>{u?s.write(t.open,!1):m(!1),l.dispatch({event:{name:"ui.dismiss"}},s.scope,t.id)},h=s.text(t.title),b=`pxd-panel pxd-panel-${c} pxd-panel-size-${a}`,w=r.with({heading:d+1}),T=()=>p("div",{class:"pxd-panel-body pxd-stack"},...De(w,t.children)),A=()=>t.actions&&p("div",{class:"pxd-panel-footer"},r.render(t.actions));if(c==="popover")return x&&zi(r,o,`.pxd-panel-anchor[data-pxd-anchor="${CSS.escape(t.id)}"]`,y,i,{class:b,"aria-labelledby":e,...n},p("div",{class:"pxd-panel-header"},p(`h${d}`,{id:e,class:"pxd-panel-title"},h),i&&p("button",{type:"button",class:"pxd-icon-button pxd-panel-close","aria-label":"Close",onClick:y},V("close"))),T(),A(),p("span",{style:{position:"absolute",left:"50%",top:"100%",transform:"translateX(-50%)"}},p("svg",{class:"pxd-panel-arrow",width:16,height:8,viewBox:"0 0 30 10",preserveAspectRatio:"none"},p("polygon",{points:"0,0 30,0 15,10"})))),p("span",{class:"pxd-panel-anchor","data-pxd-anchor":t.id});if(!x)return null;let R=c==="sheet"&&i?Fn(y):{};return r.portal(ze({ctx:r,id:o,class:b,overlayClass:"pxd-overlay pxd-panel-backdrop",dismissible:i,onClose:y,props:{"aria-labelledby":e,...n}},p("div",{class:"pxd-panel-header",...R},c==="sheet"&&p("span",{class:"pxd-panel-grip","aria-hidden":"true"}),p(`h${d}`,{id:e,class:"pxd-panel-title"},h),i&&Ce(y,{class:"pxd-icon-button pxd-panel-close","aria-label":"Close"},V("close"))),T(),A())),null}function Fn(t){let r=null,s=n=>n.currentTarget.closest("dialog"),l=n=>{r=null;let d=s(n);d&&(d.style.transform="",d.style.transition="")};return{onPointerdown:n=>{n.pointerType==="mouse"&&n.button!==0||(r=n.clientY,n.currentTarget.setPointerCapture(n.pointerId))},onPointermove:n=>{let d=s(n);if(r===null||!d)return;let e=Math.max(0,n.clientY-r);d.style.transition="none",d.style.transform=`translateY(${e}px)`},onPointerup:n=>{if(r===null)return;let d=n.clientY-r,e=s(n);l(n),d>80&&(e?.open&&e.close(),t())},onPointercancel:l}}var st=(...t)=>t.filter(Boolean).join(" ")||void 0,jo=t=>t.target.value,Eo=t=>{typeof t.ref=="string"&&t.ref.startsWith("blob:")&&URL.revokeObjectURL(t.ref)};function $s(t,r){let s=r.b,l=r.r,n=r.id(t),d=r.id(t,"help"),e=r.id(t,"error"),[o,c]=r.state(t,"error",null),[a,i]=r.state(t,"dragging",!1),u=s.value(t.value),f=Array.isArray(u)?u:[],m=Array.isArray(t.accept)?t.accept:[],x=t.maxSize,y=!!t.multiple,h=s.text(t.label),b=[t.help!==void 0?s.text(t.help):"",ja(m,x,y,l.locale)].filter(Boolean).join(" ")||void 0,w=A=>{if(!A)return;let R=Array.from(A),M=[],P=[];for(let N of y?R:R.slice(0,1)){let E=Ea(N,m,x,l.locale);E?P.push(E):M.push({name:N.name,size:N.size,type:N.type,ref:URL.createObjectURL(N)})}if(c(P.length?P.join(" "):null),M.length!==0)if(y){let N=M.filter(E=>!f.some($=>$.name===E.name&&$.size===E.size));M.filter(E=>!N.includes(E)).forEach(Eo),N.length&&s.write(t.value,[...f,...N])}else f.forEach(Eo),s.write(t.value,M)},T=A=>{Eo(f[A]),s.write(t.value,f.filter((R,M)=>M!==A)),c(null)};return p("div",{class:"pxd-field pxd-file"},p("label",{class:"pxd-field-label",for:n},h,t.required&&He()),b&&p("p",{class:"pxd-field-help",id:d},b),p("div",{class:"pxd-dropzone","data-dragging":a||void 0,onDrop:A=>{A.preventDefault(),i(!1),w(A.dataTransfer?.files??null)},onDragover:A=>{A.preventDefault(),a||i(!0)},onDragleave:A=>{A.currentTarget.contains(A.relatedTarget)||i(!1)}},p("input",{id:n,class:"pxd-dropzone-input",type:"file",accept:m.length?m.join(","):void 0,multiple:y,required:t.required&&f.length===0,"aria-describedby":st(b&&d,o&&e),"aria-invalid":o?!0:void 0,onChange:A=>{let R=A.target;w(R.files),R.value=""},...r.a11y(t)}),p("span",{class:"pxd-dropzone-icon","aria-hidden":"true"},V("file",24)),p("span",{class:"pxd-dropzone-text"},p("span",{class:"pxd-dropzone-action"},y?"Choose files":"Choose a file"),p("span",{class:"pxd-dropzone-hint"},y?"or drop them here":"or drop it here"))),o&&p("p",{class:"pxd-field-error",id:e,role:"alert"},o),f.length>0&&p("ul",{class:"pxd-file-list"},...f.map((A,R)=>p("li",{class:"pxd-file-item",key:`${A.name}-${A.size}-${R}`},p("span",{class:"pxd-file-icon","aria-hidden":"true"},V("file",18)),p("span",{class:"pxd-file-text"},p("span",{class:"pxd-file-name"},A.name),p("span",{class:"pxd-file-size"},tt(A.size,l.locale)),typeof A.progress=="number"&&A.progress<1&&p("progress",{class:"pxd-file-progress",value:A.progress,max:1,"aria-label":`Uploading ${A.name}`})),p("button",{type:"button",class:"pxd-file-remove","aria-label":`Remove ${A.name}`,onClick:()=>T(R)},V("close",18))))))}var Fe="__other";function Ps(t,r){let s=r.b,l=r.id(t,"label"),n=r.id(t,"help"),d=r.id(t,"picker"),e=r.id(t,"text"),o=r.id(t,"alpha"),c=t.format??"hex",a=!!t.alpha,i=s.text(t.label),u=t.help!==void 0?s.text(t.help):void 0,f=s.value(t.value),m=f==null?"":String(f),x=Be(m),[y,h]=r.state(t,"draft",null),[b,w]=r.state(t,"other",!1),T=r.a11y(t),A=t.swatches?Re({...t,options:t.swatches},r.r.data,s.scope,s.text):[],R=A.length>0,M=I=>s.write(t.value,wr(I,c,a)),P=I=>{h(I);let j=Be(I);j&&M(j)},N=A.findIndex(I=>x?Da(Be(I.value),x,a):String(I.value)===m&&m!==""),E=b?Fe:N>=0?String(N):m?Fe:"",$=!R||E===Fe,k=Math.round((x?.a??1)*100),v=()=>p("div",{class:"pxd-color-picker"},p("input",{id:d,class:"pxd-color-native",type:"color",value:qa(x),"aria-label":`${i}: pick`,"aria-describedby":st(u&&n),onInput:I=>{let j=Be(jo(I));j&&(h(null),M({...j,a:x?.a??1}))}}),p("input",{id:e,class:"pxd-input pxd-input-mono pxd-color-text",type:"text",inputmode:"text",autocomplete:"off",spellcheck:"false",placeholder:Ta(c),value:y??m,"aria-label":`${i}: value`,"aria-describedby":st(u&&n),"aria-invalid":y!==null&&y!==""&&!Be(y)?!0:void 0,required:!R&&t.required,onInput:I=>P(jo(I)),onBlur:()=>h(null)}),a&&p("label",{class:"pxd-color-alpha",for:o},p("span",{class:"pxd-color-alpha-label"},"Opacity"),p("input",{id:o,type:"range",min:0,max:100,step:1,value:String(k),disabled:!x,"aria-valuetext":`${k}%`,onInput:I=>{x&&(h(null),M({...x,a:Number(jo(I))/100}))}}),p("output",{class:"pxd-color-alpha-value",for:o,"aria-hidden":"true"},`${k}%`)));if(!R)return p("div",{class:"pxd-field pxd-color",role:"group","aria-labelledby":l,"aria-describedby":st(u&&n),...T},p("div",{class:"pxd-field-label",id:l},i,t.required&&He()),u&&p("p",{class:"pxd-field-help",id:n},u),v());let S=I=>{if(I===Fe)return w(!0);w(!1),h(null);let j=A[Number(I)],C=Be(j.value);s.write(t.value,C?wr(C,c,a):j.value)};return p("div",{class:"pxd-field pxd-color",...T},p("div",{class:"pxd-field-label",id:l},i,t.required&&He()),u&&p("p",{class:"pxd-field-help",id:n},u),_e({class:"pxd-swatches","aria-labelledby":l,"aria-describedby":st(u&&n),"aria-required":t.required||void 0,value:E,orientation:"horizontal",onValueChange:S},...A.map((I,j)=>Ke({key:String(j),value:String(j),group:E,first:j===0,onSelect:()=>S(String(j)),class:"pxd-swatch",title:I.label,"data-orientation":"horizontal"},p("span",{class:"pxd-swatch-color",style:{background:String(I.value)},"aria-hidden":"true"}),p("span",{class:"pxd-swatch-name"},I.label))),Ke({key:Fe,value:Fe,group:E,onSelect:()=>S(Fe),class:"pxd-swatch pxd-swatch-other",title:"Other","data-orientation":"horizontal"},p("span",{class:"pxd-swatch-color",style:E===Fe&&x?{background:m}:void 0,"aria-hidden":"true"}),p("span",{class:"pxd-swatch-name"},"Other"))),$&&v())}var ks=(t,r)=>Array.from({length:r},(s,l)=>t[l]??"");function Ss(t,r){let s=r.b,l=r.id(t,"label"),n=r.id(t,"help"),d=$e(Number(t.length)||6,4,12),e=(t.kind??"numeric")==="numeric",o=t.required??!0,c=s.text(t.label),a=t.help!==void 0?s.text(t.help):void 0,i=s.value(t.value),u=i==null?"":String(i),[f]=r.state(t,"code",()=>({chars:ks(u,d),seen:u,fired:null}));u!==f.seen&&(f.seen=u,u!==f.chars.join("")&&(f.chars=ks(u,d)));let m=f.chars,x=r.a11y(t),y=()=>Array.from(r.r.root?.querySelectorAll(`[data-pxd-id="${CSS.escape(t.id)}"] .pxd-code-box`)??[]),h=E=>E.replace(e?/[^0-9]/g:/[^0-9a-zA-Z]/g,""),b=E=>y()[$e(E,0,d-1)]?.focus(),w=E=>{f.chars=E;let $=E.join("");f.seen=$,s.write(t.value,$),t.action&&E.every(Boolean)&&$!==f.fired&&(f.fired=$,r.r.dispatch({event:{name:t.action.event.name,context:Le(t,r.r.data,s.scope,$)}},{pointer:""},t.id)),r.r.schedule()},T=(E,$)=>{let k=h($);if(!k)return;let v=[...m],S=E;for(let I of k){if(S>=d)break;v[S++]=I}w(v),b(S)},A=(E,$)=>{let k=m[E],v=$.target.value;if(k&&v.length>1&&(v=v.startsWith(k)?v.slice(k.length):v.endsWith(k)?v.slice(0,-k.length):v),v===""){let S=[...m];return S[E]="",w(S)}T(h(v).length>=d?0:E,v)},R=(E,$)=>{if($.key==="Backspace"&&!m[E]&&E>0){$.preventDefault();let k=[...m];k[E-1]="",w(k),b(E-1)}else $.key==="ArrowLeft"?($.preventDefault(),b(E-1)):$.key==="ArrowRight"&&($.preventDefault(),b(E+1))},M=(E,$)=>{$.preventDefault();let k=$.clipboardData?.getData("text")??"";T(h(k).length>=d?0:E,k)},P=d>6?d%4===0?4:3:d,N=[];for(let E=0;E<d;E+=P)N.push(Array.from({length:Math.min(P,d-E)},($,k)=>E+k));return p("div",{class:"pxd-field pxd-code",role:"group","aria-labelledby":l,"aria-describedby":st(a&&n),...x},p("div",{class:"pxd-field-label",id:l},c,o&&He()),a&&p("p",{class:"pxd-field-help",id:n},a),p("div",{class:"pxd-code-boxes"},...N.map((E,$)=>p("div",{class:"pxd-code-group",key:$},...E.map(k=>p("input",{key:k,class:"pxd-code-box",type:"text",inputmode:e?"numeric":"text",pattern:e?"[0-9]*":"[0-9A-Za-z]*",autocomplete:k===0?"one-time-code":"off",autocapitalize:e?void 0:"characters",spellcheck:"false","aria-label":`Digit ${k+1} of ${d}`,value:m[k],"data-filled":m[k]?"":void 0,required:o,onFocus:v=>v.target.select(),onInput:v=>A(k,v),onKeydown:v=>R(k,v),onPaste:v=>M(k,v)}))))))}var zs=40;function As(t,r){let s=r.b,l=r.r,n=r.id(t,"caption"),d=t.selection??"none",e=d!=="none"&&!!t.selected,o=t.expanded?pe(s.value(t.expanded)):void 0,[c,a]=r.state(t,"expanded",null),i=o?new Set(o):c,u=e?s.value(t.selected):void 0,f=H=>Array.isArray(u)?u.includes(H):u!==void 0&&u===H,{rows:m,indexByKey:x,topValues:y}=xo(t,l.data,s.scope,i),[h,b]=r.state(t,"focus",null),w=(h!==null?x.get(h):void 0)??0,[T]=r.state(t,"pending",()=>({index:null})),A=m.length>zr,[R,M]=r.state(t,"geometry",()=>({rowHeight:zs,viewportHeight:zs*12,scrollTop:0})),{start:P,end:N}=ho(m.length,R.scrollTop,R.rowHeight,R.viewportHeight),E=()=>l.root?.querySelector(`[data-pxd-id="${CSS.escape(t.id)}"] .pxd-tree-list`),$=H=>{if(!m.length)return;let G=Math.max(0,Math.min(m.length-1,H));b(m[G].key);let O=E()?.querySelector(`[data-index="${G}"]`);if(O)return O.focus();T.index=G;let _=E()?.parentElement;if(A&&_?.classList.contains("pxd-tree-viewport")){let J=Math.max(0,G*R.rowHeight-(R.viewportHeight-R.rowHeight)/2);_.scrollTop=J,M({...R,scrollTop:J})}};r.after(()=>{if(T.index===null)return;let H=E()?.querySelector(`[data-index="${T.index}"]`);if(H&&(T.index=null,H.focus()),A){let G=E()?.querySelector(".pxd-tree-item"),O=E()?.parentElement,_=G&&G.offsetHeight>0?G.offsetHeight:R.rowHeight,J=O?.clientHeight||R.viewportHeight;(_!==R.rowHeight||J!==R.viewportHeight)&&M({...R,rowHeight:_,viewportHeight:J})}});let k=(H,G)=>{if(t.expanded){let _=o??[];s.write(t.expanded,G?[..._,...H.filter(J=>!_.includes(J))]:_.filter(J=>!H.includes(J)));return}let O=new Set(c??y);for(let _ of H)G?O.add(_):O.delete(_);a(O)},v=H=>k([H.value],!H.expanded),S=H=>{if(!e)return;if(d==="single")return s.write(t.selected,H.value);let G=Array.isArray(u)?u:[];s.write(t.selected,G.includes(H.value)?G.filter(O=>O!==H.value):[...G,H.value])},I=H=>{S(H),t.action&&l.dispatch(t.action,H.scope,t.id)},[j]=r.state(t,"typed",()=>({buffer:"",at:0})),C=H=>{let G=Date.now();j.buffer=G-j.at<mo?j.buffer+H.toLowerCase():H.toLowerCase(),j.at=G;let O=go(m,w,j.buffer);O>=0&&$(O)},U=H=>{let G=m[w],O=yo(m,w,H);!G||!O||(H.preventDefault(),H.stopPropagation(),"focus"in O?$(O.focus):"toggle"in O?v(G):"activate"in O?I(G):"select"in O?S(G):"expandSiblings"in O?k(m.filter(_=>_.parent===G.parent&&_.hasChildren).map(_=>_.value),!0):"typeAhead"in O&&C(O.typeAhead))},B=s.text(t.label),L=A?{paddingTop:P*R.rowHeight,paddingBottom:(m.length-N)*R.rowHeight}:void 0,W=p("ul",{role:"tree",class:"pxd-tree-list","aria-labelledby":n,"aria-multiselectable":d==="multiple"?!0:void 0,style:L,onKeydown:U},...m.slice(P,N).map((H,G)=>{let O=P+G,_=e?f(H.value):void 0;return p("li",{key:H.key,role:"treeitem",class:`pxd-tree-item${_?" pxd-tree-item-selected":""}`,style:{"--polyxd-tree-depth":H.level-1},"data-index":O,tabindex:O===w?"0":"-1","aria-level":H.level,"aria-setsize":H.setsize,"aria-posinset":H.posinset,"aria-expanded":H.hasChildren?H.expanded:void 0,"aria-selected":_,onFocus:J=>{J.target===J.currentTarget&&b(H.key)},onClick:J=>{J.stopPropagation(),$(O),e?S(H):H.hasChildren&&v(H)},onDblclick:J=>{J.stopPropagation(),t.action?l.dispatch(t.action,H.scope,t.id):H.hasChildren&&v(H)}},p("div",{class:"pxd-tree-row"},H.hasChildren?p("button",{type:"button",class:`pxd-tree-expander${H.expanded?" pxd-tree-expander-open":""}`,tabindex:"-1","aria-hidden":"true",onClick:J=>{J.stopPropagation(),$(O),v(H)},onDblclick:J=>J.stopPropagation()},V("chevronRight",16)):p("span",{class:"pxd-tree-expander pxd-tree-expander-leaf","aria-hidden":"true"}),p("span",{class:"pxd-tree-text"},H.label),H.detail!==void 0&&p("span",{class:"pxd-tree-detail"},H.detail)))}));return p("div",{class:"pxd-tree",...r.a11y(t)},p("div",{class:"pxd-tree-caption",id:n},B),A?p("div",{class:"pxd-tree-viewport",onScroll:H=>M({...R,scrollTop:H.currentTarget.scrollTop})},W):W)}var nt={Section:Ai,Group:Ii,Card:qi,Disclosure:Di,Views:Ti,Navigation:us,Text:Oi,Metric:Li,DetailList:Vi,Collection:Zi,Table:Hi,Chart:Gi,Media:Ki,Status:Wi,TextInput:Qi,Choice:ts,Toggle:rs,DateInput:as,RangeInput:os,Form:is,Action:ss,ActionBar:ls,Steps:ns,Confirm:ds,Comparison:ps,FilterPanel:cs,Tag:ms,Identity:xs,Progress:gs,Rating:ys,Code:hs,Tree:As,ActionMenu:vs,Panel:ws,FileInput:$s,ColorInput:Ps,CodeInput:Ss,Columns:Ci,Split:Ni,Frame:ji,AppBar:Ei,Footer:Ri,Outlet:Bi,Custom:_i};var Ye=class{surface;props;host;root=null;portalEl=null;components;states=new Map;effects=[];portals=[];modals=0;scheduled=!1;unsubscribe;observers=new Map;drawing=!1;disposers=[];constructor(r,s){this.host=r,this.props=s,this.components={...nt,...s.components??{}},this.surface=this.makeSurface(s),this.unsubscribe=this.surface.subscribe(()=>this.schedule())}makeSurface(r){return Ao(r.document,{data:r.data,locale:r.locale??"en-GB",derive:r.derive,onAction:s=>this.props.onAction?.(s),onDataChange:s=>this.props.onDataChange?.(s),onDismiss:()=>this.props.onDismiss?.()})}get locale(){return this.surface.locale}get doc(){return this.surface.document}get data(){return this.surface.data}get byId(){return this.surface.byId}get disclosure(){return this.props.disclosure??"progressive"}update(r){let s=this.props;if(this.props=r,this.components={...nt,...r.components??{}},r.document!==s.document||(r.locale??"en-GB")!==s.locale)this.unsubscribe(),this.states.clear(),this.surface=this.makeSurface(r),this.unsubscribe=this.surface.subscribe(()=>this.schedule());else if(r.data&&r.data!==s.data&&r.document.surface.kind==="shell"){this.surface.replaceData(r.data);return}this.schedule()}dispose(){this.unsubscribe();for(let r of this.disposers)r();for(let r of this.observers.values())r.disconnect();Do(this.host)}onDispose(r){this.disposers.push(r)}schedule(){this.scheduled||(this.scheduled=!0,queueMicrotask(()=>{this.scheduled=!1,this.draw()}))}observeWidth(r,s,l){if(!r||this.observers.has(r)||typeof ResizeObserver>"u")return;let n=()=>l(r.getBoundingClientRect().width),d=new ResizeObserver(n);d.observe(r),this.observers.set(r,d),n()}unobserve(r){this.observers.get(r)?.disconnect(),this.observers.delete(r)}bindings(r){let s=this.surface;return{scope:r,value:l=>oe(l,s.data,r),text:(l,n)=>{let d=oe(l,s.data,r);return n?te(d,se(n,s.data,r),s.locale):d==null?"":String(d)},pointer:l=>Y(l.path,r),write:(l,n)=>s.setValue(Y(l.path,r),n),context:l=>Ee(l,s.data,r)}}dispatch(r,s,l){this.surface.dispatch(r,s,l)}ctx(r){let s=this,l=(d,e)=>`${r.scope.pointer}#${d.id}:${e}`,n={r:s,scope:r.scope,heading:r.heading,steps:r.steps,frame:r.frame,b:s.bindings(r.scope),render:(d,e)=>s.renderNode(d,e?n.with({scope:e}):n),a11y:d=>Io(d,e=>{let o=oe(e,s.data,r.scope);return o===void 0?void 0:String(o)}),id:(d,e="")=>`pxd-${(r.scope.pointer+"-"+d.id+(e?"-"+e:"")).replace(/[^A-Za-z0-9_-]+/g,"_")}`,state:(d,e,o)=>{let c=l(d,e);s.states.has(c)||s.states.set(c,typeof o=="function"?o():o);let a=i=>{let u=s.states.get(c),f=typeof i=="function"?i(u):i;Object.is(f,u)||(s.states.set(c,f),s.schedule())};return[s.states.get(c),a]},after:d=>s.effects.push(d),portal:d=>s.portals.push(d),with:d=>s.ctx({...r,...d})};return n}renderNode(r,s){let l=this.byId.get(r);if(!l||l.visible!==void 0&&oe(l.visible,this.data,s.scope)===!1)return null;let n=this.components[l.component];if(!n)return p("div",{class:"pxd-unknown",role:"note"},`Unsupported component \u201C${l.component}\u201D`);let d=n(l,s);return d instanceof Element?ot(d,l.id):d}draw(){if(this.drawing)return this.schedule();this.drawing=!0,this.effects=[],this.portals=[],this.modals=0;try{let r=this.surfaceTree();ir(this.host,[r]),this.root=this.host.querySelector(":scope > .pxd-surface"),this.portalEl=this.root?.querySelector(":scope > .pxd-portal")??null;let s=this.effects;this.effects=[];for(let l of s)l()}finally{this.drawing=!1}}surfaceTree(){let r=this.doc,s=this.props,l=this.ctx({scope:ge,heading:2}),n=this.byId.get(r.root)?.component==="Confirm",d=r.surface.kind==="shell",e=Br(r),o=d?l.render(r.root):p("div",{class:"pxd-surface-main"},!n&&this.header(l),l.render(r.root)),c=e?l.render(e.id):null,a=p("div",{class:"pxd-portal"},...this.portals),i=this.modals>0?"true":void 0;for(let u of[c,o])u&&typeof u=="object"&&"props"in u&&(u.props["aria-hidden"]=i);return p("div",{class:["pxd-surface",d?"pxd-surface-shell":null,r.surface.presentation==="panel"?"pxd-surface-panel":null,e?"pxd-surface-with-nav":null,s.className].filter(Boolean).join(" "),"data-pxd-theme":s.theme,"data-pxd-mode":s.mode,"data-pxd-density":s.density,"data-pxd-surface":r.surface.id,lang:this.locale},c,o,a)}header(r){let{title:s,subtitle:l,breadcrumbs:n,badge:d,avatar:e,actions:o}=this.doc.surface,c=i=>String(oe(i,this.data,ge)??"");return!l&&!n&&!d&&!e&&!o?p("h1",{class:"pxd-surface-title"},s):p("header",{class:"pxd-page-header"},n&&p("nav",{class:"pxd-breadcrumbs","aria-label":"Breadcrumb"},p("ol",null,n.map((i,u)=>p("li",{key:u},i.action?p("button",{type:"button",class:"pxd-link",onClick:()=>this.dispatch(i.action,ge,this.doc.surface.id)},c(i.label)):c(i.label))))),p("div",{class:"pxd-page-header-main"},e!==void 0&&xe(r,{value:c(e),name:s,size:48}),p("div",{class:"pxd-page-header-text"},p("h1",{class:"pxd-surface-title"},s,d&&p("span",{class:`pxd-badge pxd-tone-${d.tone??"neutral"}`},c(d.text))),l!==void 0&&p("p",{class:"pxd-surface-subtitle"},c(l))),o&&p("div",{class:"pxd-page-header-actions"},r.render(o))))}};var Un=["theme","mode","density","locale","disclosure"],dr=class extends HTMLElement{static get observedAttributes(){return[...Un]}#e=null;#t=null;#r;#i;#s;#n;#o=!1;onAction=null;onDataChange=null;onDismiss=null;get document(){return this.#t}set document(r){this.#t=r,this.#a()}get data(){return this.#r}set data(r){this.#r=r,this.#a()}get derive(){return this.#i}set derive(r){this.#i=r,this.#a()}get resolveMedia(){return this.#s}set resolveMedia(r){this.#s=r,this.#a()}get components(){return this.#n}set components(r){this.#n=r,this.#a()}get theme(){return this.getAttribute("theme")??void 0}set theme(r){r===void 0?this.removeAttribute("theme"):this.setAttribute("theme",r)}get mode(){return this.getAttribute("mode")??void 0}set mode(r){r===void 0?this.removeAttribute("mode"):this.setAttribute("mode",r)}get density(){return this.getAttribute("density")??void 0}set density(r){r===void 0?this.removeAttribute("density"):this.setAttribute("density",r)}get locale(){return this.getAttribute("locale")??void 0}set locale(r){r===void 0?this.removeAttribute("locale"):this.setAttribute("locale",r)}get disclosure(){return this.getAttribute("disclosure")??void 0}set disclosure(r){r===void 0?this.removeAttribute("disclosure"):this.setAttribute("disclosure",r)}get surfaceData(){return this.#e?.data}connectedCallback(){this.#a()}disconnectedCallback(){this.#e?.dispose(),this.#e=null}attributeChangedCallback(){this.#a()}props(){return this.#t?{document:this.#t,data:this.#r,derive:this.#i,resolveMedia:this.#s,components:this.#n,theme:this.theme,mode:this.mode,density:this.density,locale:this.locale,disclosure:this.disclosure,onAction:r=>{this.onAction?.(r),this.dispatchEvent(new CustomEvent("polyxd-action",{detail:r,bubbles:!0,composed:!0}))},onDataChange:r=>{this.onDataChange?.(r),this.dispatchEvent(new CustomEvent("polyxd-datachange",{detail:r,bubbles:!0,composed:!0}))},onDismiss:()=>{this.onDismiss?.(),this.dispatchEvent(new CustomEvent("polyxd-dismiss",{bubbles:!0,composed:!0}))}}:null}#a(){this.#o||(this.#o=!0,queueMicrotask(()=>{if(this.#o=!1,!this.isConnected)return;let r=this.props();r&&(this.#e?this.#e.update(r):(this.#e=new Ye(this,r),this.#e.draw()))}))}flush(){let r=this.props();!r||!this.isConnected||(this.#o=!1,this.#e?(this.#e.update(r),this.#e.draw()):(this.#e=new Ye(this,r),this.#e.draw()))}},Cr=class extends dr{#e=null;#t;#r=!1;get outlet(){return this.#e}set outlet(r){this.#e=r,this.flushSoon()}get current(){return this.#t}set current(r){this.#t=r,this.flushSoon()}get loading(){return this.#r}set loading(r){this.#r=r,this.flushSoon()}connectedCallback(){if(!this.#e&&this.childElementCount>0&&!this.querySelector(":scope > .pxd-surface")){let r=document.createElement("div");r.append(...Array.from(this.childNodes)),this.#e=r}super.connectedCallback()}flushSoon(){queueMicrotask(()=>this.isConnected&&this.flush())}props(){let r=super.props();if(!r)return null;let s=r.document.surface.title;return this.#t&&s&&(document.title=this.#t.title?`${this.#t.title} \xB7 ${s}`:s),{...r,outlet:this.#e,current:this.#t,loading:this.#r}}};function qr(){typeof customElements>"u"||(customElements.get("polyxd-surface")||customElements.define("polyxd-surface",dr),customElements.get("polyxd-frame")||customElements.define("polyxd-frame",Cr))}function pr(t,r){let s=new Ye(t,r);s.draw();let l=r;return{update:n=>{l={...l,...n},s.update(l),s.draw()},unmount:()=>s.dispose(),get data(){return s.data}}}var Ro="0.3.0";var Bo={"Card.media":["Media"],"Card.children":["Text","Metric","DetailList","Group","Media","Status","Toggle","Action","ActionBar","Tag","Identity","Progress","Rating","Code","ActionMenu"],"Collection.empty":["Status"],"Table.empty":["Status"],"Status.action":["Action","ActionBar"],"Form.aside":["DetailList","Card","Group"],"FilterPanel.children":["Choice","RangeInput","Toggle","DateInput","TextInput","Rating","ColorInput"],"FilterPanel.results":["Collection","Table"],"ActionBar.children":["Action"],"Confirm.summary":["DetailList"],"Table.toolbar":["ActionBar"],"Table.bulkActions":["ActionBar"],"Table.rowActions":["ActionBar"],"Table.detail":["DetailList","Group","Card","Text","Metric","Status","Media","Collection"],"Collection.bulkActions":["ActionBar"],"Table.search":["TextInput"],"Surface.actions":["ActionBar"],"Panel.children":["Section","Group","Text","Metric","DetailList","Media","Status","Form","Choice","TextInput","Toggle","DateInput","RangeInput","Collection","Table","Tree","Tag","Identity","Progress","Rating","Code","FileInput","ColorInput","CodeInput","Disclosure","Views","Card"],"Panel.actions":["ActionBar"],"ActionMenu.children":["Action"],"ActionMenu.primary":["Action"],"Frame.header":["AppBar"],"Frame.navigation":["Navigation"],"Frame.main":["Outlet","Group"],"Frame.aside":["Group","Section","Card","Status","Text","DetailList","Collection","Disclosure","Navigation","Custom"],"Frame.footer":["Footer"],"Frame.banner":["Status"],"AppBar.leading":["Action"],"AppBar.search":["TextInput","Action"],"AppBar.actions":["ActionBar"],"AppBar.account":["Identity","ActionMenu"],"Footer.aside":["Choice","Tag","Text"],"Outlet.loading":["Status","Progress","Text","Group"],"Custom.fallback":["Text","Media","Status","Metric","Tag","Identity","Code","Progress","Group","Card"],"Columns.children":["Section","Group","Card","Text","Metric","DetailList","Media","Status","Form","Collection","Table","Tree","Chart","Disclosure","Views","Steps","Comparison","FilterPanel","Navigation","Tag","Identity","Progress","Code","Custom"],"Split.primary":["Collection","Table","Tree"],"Split.detail":["Group","Section","Card","DetailList","Text","Form","Views","Table","Collection","Media","Code"],"Split.empty":["Status"]};var Is={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://polyxd.com/schema/0.3/ui.schema.json",title:"Polyxd UI document",description:"A just-in-time interface: a flat list of semantic components (A2UI-style adjacency list) plus the surface it belongs to. Data comes from the host via bindings; actions are declared capability intents. Generated file: edit components/*.json and schema/common.defs.json instead.",type:"object",required:["specVersion","surface","root","components"],properties:{$schema:{type:"string",description:"The schema this document follows, so editors validate and complete it: https://polyxd.com/schema/0.3/ui.schema.json"},specVersion:{type:"string",pattern:"^0\\.[123]\\.[0-9]+$"},surface:{type:"object",required:["id","title"],properties:{id:{$ref:"#/$defs/Id"},title:{type:"string",description:"Short title for the surface (page title / dialog title)"},intent:{$ref:"#/$defs/Key",description:"What the user is trying to do, as a stable key (e.g. 'money.send'); memory is organised by intent"},pattern:{type:"string",description:"Id of the pattern this surface follows, when one applies"},journey:{type:"string",description:"Id of the journey this surface is a step of, when one applies"},subtitle:{$ref:"#/$defs/DynamicString",description:"One line under the title: what this record or page is; may be bound to data"},breadcrumbs:{type:"array",maxItems:4,items:{type:"object",required:["label"],properties:{label:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},description:"Where this surface sits, ending with its parent (the title is the last step)"},badge:{type:"object",required:["text"],properties:{text:{$ref:"#/$defs/DynamicString"},tone:{$ref:"#/$defs/Tone"}},additionalProperties:!1,description:"Status of the thing this surface is about, e.g. 'Past due'"},avatar:{$ref:"#/$defs/DynamicString",description:"Initials or a media reference for the entity this surface is about"},actions:{$ref:"#/$defs/Id",description:"ActionBar in the header: what you can do to this record"},presentation:{enum:["page","panel"],default:"page",description:"'panel' opens beside what it came from (a side sheet over a list) and is full screen on compact surfaces"},dismissible:{type:"boolean",default:!0},kind:{enum:["surface","shell"],default:"surface",description:"'shell' is the product's frame (a Frame at the root with an Outlet for screens); it is always authored. 'surface' is a screen, panel or dialog that lives inside a shell"},origin:{enum:["generated","authored"],description:"How the document came to be: written by a generator for a request, or authored by a person as a screen of the product. Both are verified the same way; the mark a renderer shows can say which"}},additionalProperties:!1},root:{$ref:"#/$defs/Id",description:"Id of the top-level component"},components:{type:"array",minItems:1,items:{$ref:"#/$defs/Component"}},data:{type:"object",description:"Host data snapshot. Supplied by the host (or a test fixture), never by the model."}},additionalProperties:!1,$defs:{Id:{type:"string",pattern:"^[A-Za-z][A-Za-z0-9_-]*$",description:"Component id, unique within the document"},Key:{type:"string",pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$",description:"Stable semantic key (e.g. 'fee', 'recipient.name'). The same thing gets the same key across generations; interface memory uses it to keep placement, order and labels consistent."},Path:{type:"string",pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$",description:"RFC 6901 JSON Pointer into host-provided data. Absolute ('/account/balance') or, inside a template, relative to the current item ('amount')."},Binding:{type:"object",required:["path"],properties:{path:{$ref:"#/$defs/Path"}},additionalProperties:!1,description:"A value read from (and, for inputs, written to) host data. Data always comes from the host; the model never invents it."},DynamicString:{oneOf:[{type:"string"},{$ref:"#/$defs/Binding"}]},DynamicNumber:{oneOf:[{type:"number"},{$ref:"#/$defs/Binding"}]},DynamicBoolean:{oneOf:[{type:"boolean"},{$ref:"#/$defs/Binding"}]},DynamicValue:{oneOf:[{type:["string","number","boolean"]},{$ref:"#/$defs/Binding"}]},Format:{type:"object",required:["type"],properties:{type:{enum:["text","number","currency","percent","date","time","datetime","relativeTime","duration","color","bytes"]},currency:{$ref:"#/$defs/DynamicString",description:"ISO 4217 code, required for type 'currency'"},precision:{type:"integer",minimum:0,maximum:6}},additionalProperties:!1,description:"How to present a value. The renderer localizes it; the model never pre-formats numbers or dates into strings."},Tone:{enum:["neutral","info","success","warning","danger"]},Accessibility:{type:"object",properties:{label:{$ref:"#/$defs/DynamicString",description:"Accessible name, when the visible label is absent or insufficient"},description:{$ref:"#/$defs/DynamicString"},live:{enum:["off","polite","assertive"]},hidden:{type:"boolean",description:"Hide from assistive technology (decorative only)"}},additionalProperties:!1,description:"Same fields as A2UI v1.0 'accessibility'. Components already carry roles and names from their semantics; use this only to add to them."},Capability:{type:"string",pattern:"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)+$",description:"Name of a host-registered capability (e.g. 'transfer.confirm'). The 'ui.' namespace is reserved for renderer-handled actions: ui.dismiss, ui.back, ui.next."},Action:{type:"object",required:["event"],properties:{event:{type:"object",required:["name"],properties:{name:{$ref:"#/$defs/Capability"},context:{type:"object",additionalProperties:{$ref:"#/$defs/DynamicValue"},description:"Values sent with the event, usually bindings to inputs or to the current template item"}},additionalProperties:!1}},additionalProperties:!1,description:"A declared intent. The host binds it to a handler; generated UI never runs code. Same shape as A2UI 'action.event'."},ActionSpec:{type:"object",required:["label","action"],properties:{label:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},ChildList:{type:"array",items:{$ref:"#/$defs/Id"},minItems:1,description:"Ordered child component ids"},Template:{type:"object",required:["path","componentId"],properties:{path:{$ref:"#/$defs/Path",description:"Array in host data to repeat over"},componentId:{$ref:"#/$defs/Id",description:"Component rendered once per item; relative paths inside it resolve against the item"}},additionalProperties:!1,description:"Same shape as A2UI templated children"},Options:{oneOf:[{type:"array",minItems:2,items:{type:"object",required:["value","label"],properties:{value:{type:["string","number","boolean"]},label:{$ref:"#/$defs/DynamicString"},description:{$ref:"#/$defs/DynamicString"}},additionalProperties:!1}},{type:"object",required:["path","valuePath","labelPath"],properties:{path:{$ref:"#/$defs/Path"},valuePath:{$ref:"#/$defs/Path"},labelPath:{$ref:"#/$defs/Path"},descriptionPath:{$ref:"#/$defs/Path"},avatarPath:{$ref:"#/$defs/Path",description:"Initials or a media reference per option: renders people and places with a face"},imagePath:{$ref:"#/$defs/Path"},recentPath:{$ref:"#/$defs/Path",description:"Boolean per option: shown in a 'Recent' row above the full list"}},additionalProperties:!1}],description:"Either a fixed list, or options read from host data"},ComponentAction:{type:"object",description:"A button that triggers a host capability.",required:["id","component","label","action"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Action"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Verb-first label saying what happens ('Send \xA320', not 'OK')"},action:{$ref:"#/$defs/Action"},emphasis:{enum:["primary","secondary","tertiary"],default:"secondary"},tone:{enum:["default","danger"],default:"default"},disabled:{$ref:"#/$defs/DynamicBoolean"},description:{$ref:"#/$defs/DynamicString",description:"A second line under the label saying what the action does, for menu-like actions"},copy:{$ref:"#/$defs/DynamicString",description:"For the renderer action ui.copy: the text put on the clipboard; otherwise the action context's 'text' is copied"},shortcut:{type:"string",pattern:"^((mod|ctrl|alt|shift)\\+){0,3}([a-z0-9]|enter|escape|space|tab|backspace|delete|arrowup|arrowdown|arrowleft|arrowright|home|end|f[1-9]|f1[0-2]|slash|comma|period)$",description:`Keyboard shortcut that triggers the action while the surface has focus, e.g. "mod+enter" or "shift+d". 'mod' is Command on Apple platforms and Control elsewhere. The renderer shows the hint beside the label and never binds it outside the surface.`}},additionalProperties:!1},ComponentActionBar:{type:"object",description:"The set of actions for a surface or section; the renderer places it where that platform expects.",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ActionBar"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList",description:"Action component ids, in order of importance"}},additionalProperties:!1},ComponentActionMenu:{type:"object",description:"Secondary actions behind one control: an overflow menu, a dropdown, a split button or a context menu.",required:["id","component","label","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ActionMenu"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"The control's name: 'More actions' for an overflow, or the verb for a dropdown ('Export')"},kind:{enum:["overflow","dropdown","split","context"],default:"overflow",description:"'overflow' is the '\u2026' control; 'dropdown' is a labelled button that opens the menu; 'split' pairs a primary action with a menu of alternatives; 'context' opens on right-click or long-press of the component it belongs to"},children:{$ref:"#/$defs/ChildList",description:"The Actions in the menu, in order; a danger-toned one goes last and is separated"},primary:{$ref:"#/$defs/Id",description:"For 'split': the Action that runs when the main part is pressed"}},additionalProperties:!1},ComponentAppBar:{type:"object",description:"The bar at the top of the product: brand or title, a leading action, search, trailing actions and the account.",required:["id","component","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"AppBar"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"The product's name, or the current screen's title on compact layouts"},brand:{$ref:"#/$defs/DynamicString",description:"A media reference for the logo, or initials; rendered before the title"},leading:{$ref:"#/$defs/Id",description:"An Action at the start: back, or the menu button the renderer adds itself when the navigation is a drawer"},search:{$ref:"#/$defs/Id",description:"A TextInput of kind 'search' (or a command palette opener: an Action with a shortcut)"},actions:{$ref:"#/$defs/Id",description:"An ActionBar at the end: notifications, help, the primary action of the product"},account:{$ref:"#/$defs/Id",description:"An Identity (the signed-in person) or an ActionMenu opened from it"},variant:{enum:["standard","large","compact"],default:"standard",description:"'large' puts the title under the bar on its own line on wide screens; 'compact' is 48px for dense tools"},sticky:{type:"boolean",default:!0}},additionalProperties:!1},ComponentCard:{type:"object",description:"One self-contained entity (an account, an order, a place), optionally actionable as a whole.",required:["id","component","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Card"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Name of the entity"},subtitle:{$ref:"#/$defs/DynamicString"},media:{$ref:"#/$defs/Id",description:"Optional Media component id"},badge:{type:"object",required:["text"],properties:{text:{$ref:"#/$defs/DynamicString"},tone:{$ref:"#/$defs/Tone"}},additionalProperties:!1},children:{$ref:"#/$defs/ChildList"},action:{$ref:"#/$defs/Action",description:"Activating the card as a whole (e.g. open details)"},progress:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding",description:"Number from 0 to 1 in host data"},label:{$ref:"#/$defs/DynamicString",description:"Optional text, e.g. '120 of 320 pages'; the percentage is shown otherwise"}},additionalProperties:!1,description:"Progress through the entity (reading, a course, a goal)"}},additionalProperties:!1},ComponentChart:{type:"object",description:"A visual summary of data, always paired with a text summary.",required:["id","component","intent","data","title","summary","x","series"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Chart"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},intent:{enum:["trend","comparison","composition","distribution","relationship","flow","hierarchy","matrix","range"],description:"What the chart should communicate; the renderer picks the chart type. 'relationship' between two measures; 'flow' of amounts from each x value into the series; 'hierarchy' of parts by size; 'matrix' of x values against series; 'range' from the first series to the second"},data:{$ref:"#/$defs/Binding",description:"Array of data points in host data"},title:{$ref:"#/$defs/DynamicString"},summary:{$ref:"#/$defs/DynamicString",description:"Text alternative stating the takeaway (required)"},x:{type:"object",required:["path","label"],properties:{path:{$ref:"#/$defs/Path"},label:{$ref:"#/$defs/DynamicString"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1},series:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["path","label"],properties:{key:{$ref:"#/$defs/Key"},path:{$ref:"#/$defs/Path"},label:{$ref:"#/$defs/DynamicString"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1}}},additionalProperties:!1},ComponentChoice:{type:"object",description:"Pick one or several options from a known set. The renderer chooses the control.",required:["id","component","label","options","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Choice"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},options:{$ref:"#/$defs/Options"},value:{$ref:"#/$defs/Binding",description:"Two-way binding into host data"},mode:{enum:["single","multiple"],default:"single"},help:{$ref:"#/$defs/DynamicString"},required:{type:"boolean",default:!1}},additionalProperties:!1},ComponentCode:{type:"object",description:"Code, a command or preformatted text, shown as written and copyable.",required:["id","component","text"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Code"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},text:{$ref:"#/$defs/DynamicString",description:"The code itself, usually bound to host data (an API key, a command, a snippet)"},label:{$ref:"#/$defs/DynamicString",description:"What it is, shown above: 'Install', 'Your API key'"},language:{type:"string",description:"A language name for highlighting, when the renderer has it: 'bash', 'json', 'ts'"},copyable:{type:"boolean",default:!0,description:"A Copy control beside it"},wrap:{type:"boolean",default:!1,description:"Wrap long lines instead of scrolling sideways"},secret:{$ref:"#/$defs/DynamicBoolean",default:!1,description:"Masked until revealed: a key shown once"}},additionalProperties:!1},ComponentCodeInput:{type:"object",description:"A one-time code or PIN, typed into one box per character.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"CodeInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"'Enter the code we emailed you'"},value:{$ref:"#/$defs/Binding",description:"The code so far in host data, as a string"},length:{type:"integer",minimum:4,maximum:12,default:6},kind:{enum:["numeric","alphanumeric"],default:"numeric"},help:{$ref:"#/$defs/DynamicString",description:"Where the code came from and how long it lasts"},required:{$ref:"#/$defs/DynamicBoolean",default:!0},action:{$ref:"#/$defs/Action",description:"Runs when every character is in, so the person needn't press a button; context binds to value"}},additionalProperties:!1},ComponentCollection:{type:"object",description:"A list of items from host data, each rendered with the same template.",required:["id","component","items","label"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Collection"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{$ref:"#/$defs/Template"},label:{$ref:"#/$defs/DynamicString",description:"What the list contains, e.g. 'Recent payments'"},empty:{$ref:"#/$defs/Id",description:"Status component shown when there are no items"},selection:{enum:["none","single","multiple"],default:"none"},selected:{$ref:"#/$defs/Binding",description:"Selected item value(s) in host data when selection is not 'none'"},layout:{enum:["auto","list","grid","timeline","carousel","calendar"],default:"auto",description:"'grid' for visual items (products, books); 'list' for rows; 'timeline' for dated activity; 'carousel' for a row people page through; 'calendar' places items on a month grid by 'datePath'; 'auto' lets the renderer choose from the item template"},datePath:{$ref:"#/$defs/Path",description:"For 'calendar': relative path in each item to the ISO date that places it"},page:{type:"object",properties:{index:{$ref:"#/$defs/Binding",description:"1-based page number in host data"},size:{$ref:"#/$defs/Binding"},total:{$ref:"#/$defs/Binding",description:"Total number of items, all pages"},action:{$ref:"#/$defs/Action",description:"Sent when someone changes page or page size"}},additionalProperties:!1,description:"Paging state, owned by the host"},bulkActions:{$ref:"#/$defs/Id",description:"ActionBar shown while items are selected (selection 'multiple')"},reorderable:{type:"boolean",default:!1,description:"People can drag items, or move them with the keyboard, into a new order"},order:{$ref:"#/$defs/Binding",description:"Item values (ids) in the order people put them, written when reorderable"}},additionalProperties:!1},ComponentColorInput:{type:"object",description:"Pick a colour: from swatches the host offers, or any colour.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ColorInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"The colour in host data, as CSS text in the chosen format"},swatches:{$ref:"#/$defs/Options",description:"Named colours to pick from (value is the colour, label its name); without them the full picker shows"},format:{enum:["hex","rgb","hsl"],default:"hex"},alpha:{type:"boolean",default:!1,description:"Let the person set opacity too"},help:{$ref:"#/$defs/DynamicString"},required:{$ref:"#/$defs/DynamicBoolean",default:!1}},additionalProperties:!1},ComponentColumns:{type:"object",description:"Side-by-side columns that collapse to a stack on compact layouts: a main column with a narrower one beside it, or equal halves.",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Columns"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList",description:"One component per column, in reading order"},layout:{enum:["two-thirds","one-third","halves","thirds","sidebar-start","sidebar-end"],default:"two-thirds",description:"'two-thirds' is a wide first column (GOV.UK's default); 'one-third' the reverse; 'halves' and 'thirds' equal; 'sidebar-*' a fixed 18rem column at that edge"},collapse:{enum:["compact","medium","never"],default:"compact",description:"The width below which the columns stack"},align:{enum:["start","center","stretch"],default:"stretch"}},additionalProperties:!1},ComponentComparison:{type:"object",description:"Compare a few options across the same attributes, and choose one.",required:["id","component","items","itemTitle","attributes"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Comparison"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{$ref:"#/$defs/Binding",description:"Array of options in host data (2\u20134 recommended)"},itemTitle:{$ref:"#/$defs/Path",description:"Relative path to each item's name"},attributes:{type:"array",minItems:1,maxItems:8,items:{type:"object",required:["key","label","path"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},path:{$ref:"#/$defs/Path"},format:{$ref:"#/$defs/Format"},better:{enum:["higher","lower","none"],default:"none"},group:{$ref:"#/$defs/DynamicString",description:"Heading that groups related attributes (e.g. 'Storage', 'Support')"}},additionalProperties:!1}},choose:{$ref:"#/$defs/ActionSpec",description:"Action per item; context bindings resolve against the item"},recommended:{$ref:"#/$defs/DynamicString",description:"Optional value of the recommended item's title, with a reason in 'summary'"},summary:{$ref:"#/$defs/DynamicString"},recommendedReason:{$ref:"#/$defs/DynamicString",description:"Why the recommended item fits, shown on its badge (one short sentence)"}},additionalProperties:!1},ComponentConfirm:{type:"object",description:"Asks the user to confirm a consequential or destructive action, showing what will happen.",required:["id","component","title","severity","confirm"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Confirm"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Question naming the action ('Send \xA3250 to Alex?')"},message:{$ref:"#/$defs/DynamicString"},consequence:{$ref:"#/$defs/DynamicString",description:"What happens and whether it can be undone"},summary:{$ref:"#/$defs/Id",description:"Optional DetailList summarising what is being confirmed"},severity:{enum:["consequential","destructive"]},confirm:{$ref:"#/$defs/ActionSpec"},cancel:{$ref:"#/$defs/ActionSpec",description:"Defaults to 'Cancel' \u2192 ui.dismiss"},typeToConfirm:{$ref:"#/$defs/DynamicString",description:"Text the user must type before confirming (for irreversible, high-impact actions)"},amount:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1,description:"The amount being committed, shown large at the top"},subject:{type:"object",required:["title"],properties:{title:{$ref:"#/$defs/DynamicString"},subtitle:{$ref:"#/$defs/DynamicString"},avatar:{$ref:"#/$defs/DynamicString",description:"Initials, or a media reference in host data"}},additionalProperties:!1,description:"Who or what the action is for, shown with a face or picture"},consequences:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["title"],properties:{title:{$ref:"#/$defs/DynamicString"},detail:{$ref:"#/$defs/DynamicString"},icon:{enum:["lock","trash","clock","tag","info","alert","mail","shield"]}},additionalProperties:!1},description:"What will happen, as a short list (for destructive actions)"}},additionalProperties:!1},ComponentCustom:{type:"object",description:"A slot for a component the host implements itself: a logo, a brand moment, a bespoke widget. The document names it and gives it props; the product renders it, and a fallback stands in when it can't.",required:["id","component","name","fallback"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Custom"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},name:{type:"string",pattern:"^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$",description:"The host's name for the component, namespaced: 'brand.logo', 'store.map'"},props:{type:"object",description:"What the host component takes; values may be bindings",additionalProperties:!0},fallback:{$ref:"#/$defs/Id",description:"What renders when the host has no component of that name: a Text, a Media, a Status. Required, so the document stands on its own"},label:{$ref:"#/$defs/DynamicString",description:"An accessible name for the slot when the host component is decorative or complex"}},additionalProperties:!1},ComponentDateInput:{type:"object",description:"A date, time, date-time or date range.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"DateInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"ISO 8601 value(s) in host data"},kind:{enum:["date","time","datetime","dateRange","month","year"],default:"date",description:"'month' stores YYYY-MM and 'year' stores YYYY"},multiple:{type:"boolean",default:!1,description:"Several dates rather than one; the value is a list"},min:{$ref:"#/$defs/DynamicString"},max:{$ref:"#/$defs/DynamicString"},help:{$ref:"#/$defs/DynamicString"},required:{type:"boolean",default:!1}},additionalProperties:!1},ComponentDetailList:{type:"object",description:"Label/value pairs describing one thing (a summary, a receipt, a review step).",required:["id","component","items"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"DetailList"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{type:"array",minItems:1,items:{type:"object",required:["label","value"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/DynamicValue"},format:{$ref:"#/$defs/Format"},total:{type:"boolean",description:"The total row of a receipt, shown emphasised after a divider"}},additionalProperties:!1}},title:{$ref:"#/$defs/DynamicString"},variant:{enum:["default","receipt"],default:"default",description:"'receipt' for money: values right-aligned in tabular figures, with an optional total row"},layout:{enum:["rows","grid"],default:"rows",description:"'grid' packs many short fields into columns (record pages); 'rows' keeps one per line"},rowAction:{$ref:"#/$defs/Action",description:"Offered per row as a 'Change' link named after the row (GOV.UK summary list); the row's key is sent as 'key' with the context"}},additionalProperties:!1},ComponentDisclosure:{type:"object",description:"Progressive disclosure: secondary content hidden behind a toggle.",required:["id","component","summary","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Disclosure"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},summary:{$ref:"#/$defs/DynamicString",description:"Always-visible label describing what is hidden"},children:{$ref:"#/$defs/ChildList"},open:{type:"boolean",default:!1}},additionalProperties:!1},ComponentFileInput:{type:"object",description:"Choose or drop files to attach or upload.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"FileInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"The chosen files in host data: a list of { name, size, type, ref }, written by the renderer; the host uploads them"},accept:{type:"array",items:{type:"string"},description:"Allowed types as extensions or MIME types: ['.pdf', 'image/*']"},multiple:{type:"boolean",default:!1},maxSize:{type:"integer",minimum:1,description:"Largest file, in bytes; the renderer refuses larger ones with a message"},help:{$ref:"#/$defs/DynamicString",description:"What to attach and why; the accepted types and size are said by the renderer"},required:{$ref:"#/$defs/DynamicBoolean",default:!1}},additionalProperties:!1},ComponentFilterPanel:{type:"object",description:"Filters for a list of results, with the result count.",required:["id","component","children","results"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"FilterPanel"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Defaults to 'Filters'"},children:{$ref:"#/$defs/ChildList",description:"The filter inputs (Choice, RangeInput, Toggle, DateInput, TextInput)"},results:{$ref:"#/$defs/Id",description:"The Collection or Table the filters narrow"},resultCount:{$ref:"#/$defs/Binding",description:"Number of results with the current filters, from host data"},clear:{$ref:"#/$defs/Action",description:"Optional action that resets the filters on the host"}},additionalProperties:!1},ComponentFooter:{type:"object",description:"The bar at the bottom of the product: link groups, the legal line, locale or status.",required:["id","component","legal"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Footer"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},groups:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["key","label","items"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},items:{type:"array",minItems:1,maxItems:12,items:{type:"object",required:["key","label","action"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1}}},additionalProperties:!1},description:"Columns of links, each under a heading"},legal:{$ref:"#/$defs/DynamicString",description:"The line at the very bottom: copyright, licence, company details"},aside:{$ref:"#/$defs/Id",description:"Something at the end of the legal row: a locale Choice, a status Tag, a Text"}},additionalProperties:!1},ComponentForm:{type:"object",description:"Collects inputs and submits them together.",required:["id","component","children","submit"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Form"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList"},submit:{$ref:"#/$defs/ActionSpec"},cancel:{$ref:"#/$defs/ActionSpec",description:"Optional; defaults to ui.dismiss when omitted and the surface is dismissible"},aside:{$ref:"#/$defs/Id",description:"Optional summary (DetailList, Card or Group) kept beside the form, e.g. the running total"},layout:{enum:["stacked","horizontal"],default:"stacked",description:"'horizontal' puts label and help on the left and the control on the right (settings pages), on wide surfaces"}},additionalProperties:!1},ComponentFrame:{type:"object",description:"The product's frame: the regions around its screens (header, navigation, main, aside, footer, banner), with an outlet where screens and generated surfaces appear.",required:["id","component","main"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Frame"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},header:{$ref:"#/$defs/Id",description:"An AppBar"},navigation:{$ref:"#/$defs/Id",description:"A Navigation of kind 'main'; its placement decides rail, bar, drawer or side"},main:{$ref:"#/$defs/Id",description:"The outlet: a component the host replaces with the current screen. Usually an Outlet; may be a Group holding a fixed screen"},aside:{$ref:"#/$defs/Id",description:"A secondary column beside main on wide layouts (help, context, activity)"},footer:{$ref:"#/$defs/Id",description:"A Footer"},banner:{$ref:"#/$defs/Id",description:"A Status shown above everything (a phase banner, an outage, a trial ending)"},skipTarget:{type:"boolean",default:!0,description:"The renderer adds a skip link to main"},width:{enum:["full","contained"],default:"contained",description:"'contained' centres main at measure.max \xD7 1.6; 'full' lets dense tools use the whole viewport"}},additionalProperties:!1},ComponentGroup:{type:"object",description:"Visually groups closely related items without a heading (proximity).",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Group"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList"},label:{$ref:"#/$defs/DynamicString",description:"Accessible name for the group when it isn't obvious from its content"},arrangement:{enum:["auto","inline","grid"],default:"auto",description:"Hint only. 'inline' for a few short peers (e.g. metrics); renderers stack on narrow screens."}},additionalProperties:!1},ComponentIdentity:{type:"object",description:"A person, team or organisation: picture, name and details, or several of them together.",required:["id","component","name"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Identity"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},name:{$ref:"#/$defs/DynamicString",description:"Always bound to host data: a name is never invented"},detail:{$ref:"#/$defs/DynamicString",description:"One line under the name: a role, an email, a team, a status"},image:{$ref:"#/$defs/DynamicString",description:"A media reference from host data, resolved by the host as Media's is; initials from the name are shown without one"},kind:{enum:["person","team","organization"],default:"person",description:"A person's picture is round; a team's or organisation's is square"},size:{enum:["small","default","large"],default:"default"},action:{$ref:"#/$defs/Action",description:"Activating the identity as a whole, e.g. open the person's record"},group:{type:"object",required:["path","namePath"],properties:{path:{$ref:"#/$defs/Path",description:"A list of people in host data, shown as overlapping pictures with a '+N' for the rest"},namePath:{$ref:"#/$defs/Path",description:"Relative to each entry"},imagePath:{$ref:"#/$defs/Path",description:"Relative to each entry"},max:{type:"integer",minimum:1,maximum:8,default:4,description:"Pictures shown before '+N'"}},additionalProperties:!1,description:"Several identities as one element ('Rhea, Tom and 3 others'). name is then the group's accessible summary"}},additionalProperties:!1},ComponentMedia:{type:"object",description:"An image, video, audio clip, gallery or QR code supplied by the host.",required:["id","component"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Media"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},src:{$ref:"#/$defs/Binding",description:"Image, video or audio reference in host data; generated UI never contains URLs"},alt:{$ref:"#/$defs/DynamicString",description:"Required unless decorative. For a gallery it names the set; for a QR code it says what the code opens"},decorative:{type:"boolean",default:!1},aspect:{enum:["square","landscape","portrait","auto"],default:"auto"},kind:{enum:["image","video","audio","gallery","qr"],default:"image",description:"'video' and 'audio' play with native controls; 'gallery' is several images from 'items'; 'qr' encodes 'value' as a QR code"},poster:{$ref:"#/$defs/DynamicString",description:"For 'video': media reference for the frame shown before play"},transcript:{$ref:"#/$defs/DynamicString",description:"For 'video' and 'audio': the words, offered under the player"},items:{$ref:"#/$defs/Binding",description:"For 'gallery': array of images in host data"},imagePath:{$ref:"#/$defs/Path",description:"For 'gallery': relative path in each item to its image reference"},altPath:{$ref:"#/$defs/Path",description:"For 'gallery': relative path in each item to its alt text"},value:{$ref:"#/$defs/DynamicString",description:"For 'qr': the text encoded, e.g. a payment link from host data"}},additionalProperties:!1},ComponentMetric:{type:"object",description:"A key figure with a label, and optionally its change.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Metric"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Always bound to host data"},format:{$ref:"#/$defs/Format"},change:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding"},format:{$ref:"#/$defs/Format"},favorable:{enum:["increase","decrease","none"],default:"increase",description:"Which direction is good, so color follows meaning, not sign"}},additionalProperties:!1},caption:{$ref:"#/$defs/DynamicString"}},additionalProperties:!1},ComponentNavigation:{type:"object",description:"The product's main navigation.",required:["id","component","items","current"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Navigation"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Names the navigation, e.g. 'Main'"},items:{type:"array",minItems:2,maxItems:20,items:{type:"object",required:["key","label","action"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},group:{$ref:"#/$defs/DynamicString",description:"Heading that groups items (e.g. 'Billing')"},icon:{enum:["home","search","inbox","book","tag","clock","shield","lock","mail","settings","chart","people","card","file","orders","products","customers","discounts","analytics","calendar","bell","help","folder","star","grid","layers"]},badge:{$ref:"#/$defs/Binding",description:"Count needing attention, e.g. overdue invoices"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1}},current:{$ref:"#/$defs/Binding",description:"Key of the current item in host data"},kind:{enum:["main","breadcrumb","nested","toc","local"],default:"main",description:"'main' is the product's sections; 'breadcrumb' the ordered trail to here; 'nested' groups that expand; 'toc' the sections of this page (items link to anchors named by their keys); 'local' the sections of one area, as tabs"},placement:{enum:["auto","side","rail","bar","drawer"],default:"auto",description:"For kind 'main' inside a Frame: where it lives. 'auto' is a side column on wide layouts, a rail on medium and a bottom bar (\u2264 5 items) or a drawer on compact; the others fix it"}},additionalProperties:!1},ComponentOutlet:{type:"object",description:"Where the current screen renders inside a Frame: the host fills it with a screen document or a generated surface.",required:["id","component"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Outlet"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Names the region for assistive tech when the screen has no title yet"},loading:{$ref:"#/$defs/Id",description:"What shows while a screen is on its way; the renderer's skeleton when absent"}},additionalProperties:!1},ComponentPanel:{type:"object",description:"Content over the current view: a dialog, a drawer, a bottom sheet or a popover, opened from an action and dismissed to return.",required:["id","component","title","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Panel"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},kind:{enum:["dialog","drawer","sheet","popover"],default:"dialog",description:"'dialog' centres and blocks; 'drawer' slides from the side for a form or a record; 'sheet' rises from the bottom on phones; 'popover' floats by its opener for a small choice"},title:{$ref:"#/$defs/DynamicString"},children:{$ref:"#/$defs/ChildList",description:"What the panel holds"},actions:{$ref:"#/$defs/Id",description:"An ActionBar in the panel's footer: its primary action and a Cancel"},open:{$ref:"#/$defs/DynamicBoolean",description:"Bound to host data: true shows the panel; the renderer writes false on dismiss. Open when absent"},dismissible:{type:"boolean",default:!0,description:"Escape, the close control and the backdrop dismiss it; false for a panel that must be completed"},size:{enum:["small","default","large"],default:"default"}},additionalProperties:!1},ComponentProgress:{type:"object",description:"How far along something is, or how much of a bounded amount is used: a bar, a ring or a meter.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Progress"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What is being measured: 'Storage used', 'Upload', 'Goal'"},value:{$ref:"#/$defs/DynamicNumber",description:"Bound to host data. A fraction from 0 to 1, or an amount when max is given"},max:{$ref:"#/$defs/DynamicNumber",description:"The whole, when value is an amount rather than a fraction: 200 for '180 of 200 GB'"},kind:{enum:["bar","ring","meter"],default:"bar",description:"'bar' and 'ring' show progress towards done; 'meter' shows a measured amount within bounds, with tone by threshold"},caption:{$ref:"#/$defs/DynamicString",description:"Text beside the readout: '180 of 200 GB', '3 days left'. The readout itself is derived from value"},format:{$ref:"#/$defs/Format",description:"How the readout is shown; percent without it"},tone:{$ref:"#/$defs/Tone",description:"Fixed tone; a meter without one takes warning past thresholds.warning and danger past thresholds.danger"},thresholds:{type:"object",properties:{warning:{type:"number",minimum:0,maximum:1},danger:{type:"number",minimum:0,maximum:1}},additionalProperties:!1,description:"Fractions at which a meter changes tone"},indeterminate:{$ref:"#/$defs/DynamicBoolean",description:"The task is running and how far along isn't known"}},additionalProperties:!1},ComponentRangeInput:{type:"object",description:"A number, or a range between two numbers, within known bounds.",required:["id","component","label","value","min","max"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"RangeInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Number in host data, or [min, max] when mode is 'range'"},min:{type:"number"},max:{type:"number"},step:{type:"number",exclusiveMinimum:0},format:{$ref:"#/$defs/Format"},mode:{enum:["single","range"],default:"single",description:"'range' picks a lower and upper bound; value is then [min, max]"}},additionalProperties:!1},ComponentRating:{type:"object",description:"A score out of N: given by the person, or shown as others gave it.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Rating"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What is rated: 'Your rating', 'Average rating'"},value:{$ref:"#/$defs/Binding",description:"The score in host data; written when the person can rate"},max:{type:"integer",minimum:2,maximum:10,default:5},readOnly:{$ref:"#/$defs/DynamicBoolean",default:!1,description:"Show a score rather than take one"},count:{$ref:"#/$defs/DynamicNumber",description:"How many ratings the score is from, shown after it: '4.6 (212)'"},help:{$ref:"#/$defs/DynamicString"},required:{$ref:"#/$defs/DynamicBoolean",default:!1},action:{$ref:"#/$defs/Action",description:"Runs when a rating is given, with context bound to value"}},additionalProperties:!1},ComponentSection:{type:"object",description:"A titled region of the surface that groups related content under a heading.",required:["id","component","title","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Section"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Heading for the section"},description:{$ref:"#/$defs/DynamicString",description:"Optional one-line explanation under the heading"},children:{$ref:"#/$defs/ChildList"}},additionalProperties:!1},ComponentSplit:{type:"object",description:"Master and detail side by side: a list that stays while the chosen item's detail shows beside it; on compact layouts the detail replaces the list.",required:["id","component","primary","detail","selected"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Split"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},primary:{$ref:"#/$defs/Id",description:"The list: a Collection or a Table with selection 'single'"},detail:{$ref:"#/$defs/Id",description:"What shows for the selected item; its bindings resolve against the selected item's scope"},selected:{$ref:"#/$defs/Binding",description:"The selected item's value in host data, shared with the primary's 'selected'"},empty:{$ref:"#/$defs/Id",description:"A Status shown in the detail pane while nothing is selected"},ratio:{enum:["narrow","balanced","wide"],default:"narrow",description:"The list's share: about a third, half, or two thirds"},resizable:{type:"boolean",default:!1}},additionalProperties:!1},ComponentStatus:{type:"object",description:"Feedback about state: info, success, warning, error, empty or loading.",required:["id","component","kind","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Status"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},kind:{enum:["info","success","warning","error","empty","loading","undo"]},title:{$ref:"#/$defs/DynamicString"},message:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Id",description:"Optional Action (or ActionBar for a primary and a secondary) to recover or continue, e.g. 'Try again'; for 'undo', the Undo action"},icon:{enum:["lock","trash","clock","tag","info","alert","mail","shield","search","book","inbox","check"],description:"Optional icon for empty states; the renderer picks one by kind otherwise"},variant:{enum:["default","inline"],default:"default",description:"'inline' is a notice inside a page (a warning above a record) rather than a block of its own"}},additionalProperties:!1},ComponentSteps:{type:"object",description:"A task split into ordered steps with visible progress.",required:["id","component","steps","finish"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Steps"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},steps:{type:"array",minItems:2,maxItems:7,items:{type:"object",required:["key","title","content"],properties:{key:{$ref:"#/$defs/Key"},title:{$ref:"#/$defs/DynamicString"},content:{$ref:"#/$defs/Id"},status:{$ref:"#/$defs/DynamicString",description:"For 'tasklist': 'todo', 'inProgress', 'done' or 'blocked', usually bound to host data"}},additionalProperties:!1}},kind:{enum:["wizard","tasklist","guide"],default:"wizard",description:"'wizard' shows one step at a time in order; 'tasklist' lists tasks people do in any order, each with its status; 'guide' is numbered instructions with no state"},current:{$ref:"#/$defs/DynamicNumber",description:"Index of the current step (default 0)"},finish:{$ref:"#/$defs/ActionSpec"}},additionalProperties:!1},ComponentTable:{type:"object",description:"Tabular data: many items sharing the same attributes.",required:["id","component","rows","caption","columns"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Table"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},rows:{$ref:"#/$defs/Binding",description:"Array of row objects in host data"},caption:{$ref:"#/$defs/DynamicString",description:"What the table shows (required for accessibility)"},columns:{type:"array",minItems:1,maxItems:8,items:{type:"object",required:["key","label","path"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},path:{$ref:"#/$defs/Path",description:"Relative to the row"},format:{$ref:"#/$defs/Format"},kind:{enum:["text","number","currency","date","status","entity","link"],default:"text",description:"What the cell holds; drives alignment, tabular figures and status tags"},align:{enum:["start","end"],description:"Overrides the alignment the kind implies"},tones:{type:"object",additionalProperties:{$ref:"#/$defs/Tone"},description:`For 'status': value \u2192 tone, e.g. {"Past due": "danger"}`},sortable:{type:"boolean",description:"Whether people can sort by this column"},avatarPath:{$ref:"#/$defs/Path",description:"For 'entity': relative path to the picture or initials"},secondaryPath:{$ref:"#/$defs/Path",description:"For 'entity': a second line, e.g. an email address"}},additionalProperties:!1}},rowAction:{$ref:"#/$defs/Action",description:"Activated per row; context bindings resolve against the row"},empty:{$ref:"#/$defs/Id",description:"Status component shown when there are no rows"},sort:{type:"object",required:["column"],properties:{column:{$ref:"#/$defs/Binding",description:"Key of the sorted column in host data"},direction:{$ref:"#/$defs/Binding",description:"'ascending' or 'descending' in host data"},action:{$ref:"#/$defs/Action",description:"Sent when someone sorts, so the host can re-query"}},additionalProperties:!1,description:"Sorting state, owned by the host"},selection:{enum:["none","multiple"],default:"none",description:"'multiple' adds a checkbox column and a select-all"},selected:{$ref:"#/$defs/Binding",description:"Array of selected row values in host data"},rowValuePath:{$ref:"#/$defs/Path",description:"Relative path to each row's id, used for selection"},bulkActions:{$ref:"#/$defs/Id",description:"ActionBar shown instead of the toolbar while rows are selected"},rowActions:{$ref:"#/$defs/Id",description:"ActionBar offered per row, in a menu named after the row"},expandable:{type:"boolean",default:!1,description:"Rows open to show 'detail' beneath them"},detail:{$ref:"#/$defs/Id",description:"Component rendered under an expanded row; relative paths inside it resolve against the row"},toolbar:{$ref:"#/$defs/Id",description:"ActionBar above the table (e.g. New, Import, Export)"},search:{$ref:"#/$defs/Id",description:"TextInput (kind 'search') above the table"},views:{type:"array",minItems:2,maxItems:8,items:{type:"object",required:["key","label"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},count:{$ref:"#/$defs/Binding"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},description:"Saved views (All, Mine, Past due\u2026), shown as tabs with counts"},view:{$ref:"#/$defs/Binding",description:"Key of the selected saved view in host data"},page:{type:"object",properties:{index:{$ref:"#/$defs/Binding",description:"1-based page number in host data"},size:{$ref:"#/$defs/Binding"},total:{$ref:"#/$defs/Binding",description:"Total number of rows, all pages"},action:{$ref:"#/$defs/Action",description:"Sent when someone changes page or page size"}},additionalProperties:!1,description:"Paging state, owned by the host"}},additionalProperties:!1},ComponentTag:{type:"object",description:"A short label, status or count attached to something else.",required:["id","component","label"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Tag"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"The word or two it shows: 'Past due', 'Beta', 'Design'"},kind:{enum:["label","status","count"],default:"label",description:"'status' is the state of the thing it sits on and is coloured by tone; 'count' is a number, with the label as its accessible name"},tone:{$ref:"#/$defs/Tone",default:"neutral",description:"Meaning, not decoration: a status tag's tone says whether the state is fine, a warning or a problem"},count:{$ref:"#/$defs/DynamicNumber",description:"For kind 'count': the number, bound to host data"},remove:{$ref:"#/$defs/Action",description:"Present when the person can take the tag off (a filter chip, a chosen recipient): the capability that removes it"}},additionalProperties:!1},ComponentText:{type:"object",description:"A run of text.",required:["id","component","text"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Text"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},text:{$ref:"#/$defs/DynamicString"},variant:{enum:["body","supporting","caption","rich","list","quote"],default:"body",description:"'rich' allows **bold**, *italic*, `code` and [links](href) in the text; 'list' is a bulleted or numbered list of 'items'; 'quote' is a quotation with an optional 'cite'"},format:{$ref:"#/$defs/Format",description:"Only when 'text' is bound to a non-string value"},items:{$ref:"#/$defs/Binding",description:"For 'list': array in host data, one entry per item; 'text' introduces the list"},itemPath:{$ref:"#/$defs/Path",description:"For 'list': relative path in each entry to the text shown, when the entries are objects"},ordered:{type:"boolean",default:!1,description:"For 'list': numbered rather than bulleted"},cite:{$ref:"#/$defs/DynamicString",description:"For 'quote': who or what is quoted"}},additionalProperties:!1},ComponentTextInput:{type:"object",description:"A single text-like value: text, number, email, phone, currency, search or long text.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"TextInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Two-way binding into host data"},kind:{enum:["text","multiline","number","currency","email","phone","url","search","suggestions","richtext","tags","mentions","code","masked","inline"],default:"text",description:"'suggestions' offers completions from 'options' while leaving any text allowed; 'richtext' is short formatted text (bold, italic, lists) stored as markdown-ish text; 'tags' is a list of short values entered one at a time; 'mentions' offers 'options' after an @; 'code' is monospace with no autocorrection; 'masked' follows 'mask'; 'inline' reads as text until it is clicked"},options:{$ref:"#/$defs/Options",description:"For 'suggestions' and 'mentions': the completions offered"},mask:{type:"string",description:"For 'masked': # for a digit, A for a letter, * for either, anything else typed for you, e.g. '#### #### #### ####'"},currency:{$ref:"#/$defs/DynamicString",description:"ISO 4217 code when kind is 'currency'"},help:{$ref:"#/$defs/DynamicString",description:"Hint shown below the label (not a placeholder)"},required:{type:"boolean",default:!1},validation:{type:"object",properties:{min:{type:"number"},max:{type:"number"},minLength:{type:"integer",minimum:0},maxLength:{type:"integer",minimum:1},message:{$ref:"#/$defs/DynamicString",description:"Error message shown when validation fails"}},additionalProperties:!1},autocomplete:{type:"string",description:"HTML autocomplete token hint (e.g. 'email', 'postal-code')"},placeholder:{$ref:"#/$defs/DynamicString",description:"Only for kind 'search', shown inside the field. Never a substitute for the label."},size:{enum:["default","hero"],default:"default",description:"'hero' for the one number a surface is about (an amount to send): large and centred"}},additionalProperties:!1},ComponentToggle:{type:"object",description:"An on/off setting.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Toggle"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Boolean in host data"},description:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action",description:"Set when the change applies immediately (a setting); omit inside a Form"}},additionalProperties:!1},ComponentTree:{type:"object",description:"A hierarchy people expand, browse and pick from: folders, an org chart, nested categories.",required:["id","component","label","items","labelPath","childrenPath"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Tree"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What the tree holds, e.g. 'Folders'"},items:{$ref:"#/$defs/Binding",description:"The top-level nodes in host data: a list"},labelPath:{$ref:"#/$defs/Path",description:"Relative to each node: the text shown"},childrenPath:{$ref:"#/$defs/Path",description:"Relative to each node: its list of child nodes, absent or empty for a leaf"},valuePath:{$ref:"#/$defs/Path",description:"Relative to each node: what selection writes; the label when absent"},detailPath:{$ref:"#/$defs/Path",description:"Relative to each node: a count or note shown after the label"},selection:{enum:["none","single","multiple"],default:"none"},selected:{$ref:"#/$defs/Binding",description:"Selected node value(s) in host data when selection is not 'none'"},expanded:{$ref:"#/$defs/Binding",description:"Values of the nodes shown open; the first level is open without it"},action:{$ref:"#/$defs/Action",description:"Activating a node, e.g. open that folder; context may bind to the node's fields"}},additionalProperties:!1},ComponentViews:{type:"object",description:"Switch between alternative views of the same subject (tabs).",required:["id","component","views"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Views"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},views:{type:"array",minItems:2,maxItems:6,items:{type:"object",required:["key","label","content"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},content:{$ref:"#/$defs/Id"},count:{$ref:"#/$defs/Binding",description:"How many items the view holds, shown beside its label"}},additionalProperties:!1}},selected:{$ref:"#/$defs/Binding",description:"Key of the selected view in host data"},variant:{enum:["tabs","segmented"],default:"tabs",description:"'tabs' for sections of a record; 'segmented' for switching how the same thing is shown"}},additionalProperties:!1},Component:{type:"object",required:["component"],discriminator:{propertyName:"component"},oneOf:[{$ref:"#/$defs/ComponentAction"},{$ref:"#/$defs/ComponentActionBar"},{$ref:"#/$defs/ComponentActionMenu"},{$ref:"#/$defs/ComponentAppBar"},{$ref:"#/$defs/ComponentCard"},{$ref:"#/$defs/ComponentChart"},{$ref:"#/$defs/ComponentChoice"},{$ref:"#/$defs/ComponentCode"},{$ref:"#/$defs/ComponentCodeInput"},{$ref:"#/$defs/ComponentCollection"},{$ref:"#/$defs/ComponentColorInput"},{$ref:"#/$defs/ComponentColumns"},{$ref:"#/$defs/ComponentComparison"},{$ref:"#/$defs/ComponentConfirm"},{$ref:"#/$defs/ComponentCustom"},{$ref:"#/$defs/ComponentDateInput"},{$ref:"#/$defs/ComponentDetailList"},{$ref:"#/$defs/ComponentDisclosure"},{$ref:"#/$defs/ComponentFileInput"},{$ref:"#/$defs/ComponentFilterPanel"},{$ref:"#/$defs/ComponentFooter"},{$ref:"#/$defs/ComponentForm"},{$ref:"#/$defs/ComponentFrame"},{$ref:"#/$defs/ComponentGroup"},{$ref:"#/$defs/ComponentIdentity"},{$ref:"#/$defs/ComponentMedia"},{$ref:"#/$defs/ComponentMetric"},{$ref:"#/$defs/ComponentNavigation"},{$ref:"#/$defs/ComponentOutlet"},{$ref:"#/$defs/ComponentPanel"},{$ref:"#/$defs/ComponentProgress"},{$ref:"#/$defs/ComponentRangeInput"},{$ref:"#/$defs/ComponentRating"},{$ref:"#/$defs/ComponentSection"},{$ref:"#/$defs/ComponentSplit"},{$ref:"#/$defs/ComponentStatus"},{$ref:"#/$defs/ComponentSteps"},{$ref:"#/$defs/ComponentTable"},{$ref:"#/$defs/ComponentTag"},{$ref:"#/$defs/ComponentText"},{$ref:"#/$defs/ComponentTextInput"},{$ref:"#/$defs/ComponentToggle"},{$ref:"#/$defs/ComponentTree"},{$ref:"#/$defs/ComponentViews"}]}}},Cs=["AppBar","Custom","Footer","Frame","Outlet"];var Ko=jr,Dr={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://polyxd.com/schema/0.3/ui.schema.json",title:"Polyxd UI document",description:"A just-in-time interface: a flat list of semantic components (A2UI-style adjacency list) plus the surface it belongs to. Data comes from the host via bindings; actions are declared capability intents. Generated file: edit components/*.json and schema/common.defs.json instead.",type:"object",required:["specVersion","surface","root","components"],properties:{$schema:{type:"string",description:"The schema this document follows, so editors validate and complete it: https://polyxd.com/schema/0.3/ui.schema.json"},specVersion:{type:"string",pattern:"^0\\.[123]\\.[0-9]+$"},surface:{type:"object",required:["id","title"],properties:{id:{$ref:"#/$defs/Id"},title:{type:"string",description:"Short title for the surface (page title / dialog title)"},intent:{$ref:"#/$defs/Key",description:"What the user is trying to do, as a stable key (e.g. 'money.send'); memory is organised by intent"},pattern:{type:"string",description:"Id of the pattern this surface follows, when one applies"},journey:{type:"string",description:"Id of the journey this surface is a step of, when one applies"},subtitle:{$ref:"#/$defs/DynamicString",description:"One line under the title: what this record or page is; may be bound to data"},breadcrumbs:{type:"array",maxItems:4,items:{type:"object",required:["label"],properties:{label:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},description:"Where this surface sits, ending with its parent (the title is the last step)"},badge:{type:"object",required:["text"],properties:{text:{$ref:"#/$defs/DynamicString"},tone:{$ref:"#/$defs/Tone"}},additionalProperties:!1,description:"Status of the thing this surface is about, e.g. 'Past due'"},avatar:{$ref:"#/$defs/DynamicString",description:"Initials or a media reference for the entity this surface is about"},actions:{$ref:"#/$defs/Id",description:"ActionBar in the header: what you can do to this record"},presentation:{enum:["page","panel"],default:"page",description:"'panel' opens beside what it came from (a side sheet over a list) and is full screen on compact surfaces"},dismissible:{type:"boolean",default:!0},kind:{enum:["surface","shell"],default:"surface",description:"'shell' is the product's frame (a Frame at the root with an Outlet for screens); it is always authored. 'surface' is a screen, panel or dialog that lives inside a shell"},origin:{enum:["generated","authored"],description:"How the document came to be: written by a generator for a request, or authored by a person as a screen of the product. Both are verified the same way; the mark a renderer shows can say which"}},additionalProperties:!1},root:{$ref:"#/$defs/Id",description:"Id of the top-level component"},components:{type:"array",minItems:1,items:{$ref:"#/$defs/Component"}},data:{type:"object",description:"Host data snapshot. Supplied by the host (or a test fixture), never by the model."}},additionalProperties:!1,$defs:{Id:{type:"string",pattern:"^[A-Za-z][A-Za-z0-9_-]*$",description:"Component id, unique within the document"},Key:{type:"string",pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$",description:"Stable semantic key (e.g. 'fee', 'recipient.name'). The same thing gets the same key across generations; interface memory uses it to keep placement, order and labels consistent."},Path:{type:"string",pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$",description:"RFC 6901 JSON Pointer into host-provided data. Absolute ('/account/balance') or, inside a template, relative to the current item ('amount')."},Binding:{type:"object",required:["path"],properties:{path:{$ref:"#/$defs/Path"}},additionalProperties:!1,description:"A value read from (and, for inputs, written to) host data. Data always comes from the host; the model never invents it."},DynamicString:{oneOf:[{type:"string"},{$ref:"#/$defs/Binding"}]},DynamicNumber:{oneOf:[{type:"number"},{$ref:"#/$defs/Binding"}]},DynamicBoolean:{oneOf:[{type:"boolean"},{$ref:"#/$defs/Binding"}]},DynamicValue:{oneOf:[{type:["string","number","boolean"]},{$ref:"#/$defs/Binding"}]},Format:{type:"object",required:["type"],properties:{type:{enum:["text","number","currency","percent","date","time","datetime","relativeTime","duration","color","bytes"]},currency:{$ref:"#/$defs/DynamicString",description:"ISO 4217 code, required for type 'currency'"},precision:{type:"integer",minimum:0,maximum:6}},additionalProperties:!1,description:"How to present a value. The renderer localizes it; the model never pre-formats numbers or dates into strings."},Tone:{enum:["neutral","info","success","warning","danger"]},Accessibility:{type:"object",properties:{label:{$ref:"#/$defs/DynamicString",description:"Accessible name, when the visible label is absent or insufficient"},description:{$ref:"#/$defs/DynamicString"},live:{enum:["off","polite","assertive"]},hidden:{type:"boolean",description:"Hide from assistive technology (decorative only)"}},additionalProperties:!1,description:"Same fields as A2UI v1.0 'accessibility'. Components already carry roles and names from their semantics; use this only to add to them."},Capability:{type:"string",pattern:"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)+$",description:"Name of a host-registered capability (e.g. 'transfer.confirm'). The 'ui.' namespace is reserved for renderer-handled actions: ui.dismiss, ui.back, ui.next."},Action:{type:"object",required:["event"],properties:{event:{type:"object",required:["name"],properties:{name:{$ref:"#/$defs/Capability"},context:{type:"object",additionalProperties:{$ref:"#/$defs/DynamicValue"},description:"Values sent with the event, usually bindings to inputs or to the current template item"}},additionalProperties:!1}},additionalProperties:!1,description:"A declared intent. The host binds it to a handler; generated UI never runs code. Same shape as A2UI 'action.event'."},ActionSpec:{type:"object",required:["label","action"],properties:{label:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},ChildList:{type:"array",items:{$ref:"#/$defs/Id"},minItems:1,description:"Ordered child component ids"},Template:{type:"object",required:["path","componentId"],properties:{path:{$ref:"#/$defs/Path",description:"Array in host data to repeat over"},componentId:{$ref:"#/$defs/Id",description:"Component rendered once per item; relative paths inside it resolve against the item"}},additionalProperties:!1,description:"Same shape as A2UI templated children"},Options:{oneOf:[{type:"array",minItems:2,items:{type:"object",required:["value","label"],properties:{value:{type:["string","number","boolean"]},label:{$ref:"#/$defs/DynamicString"},description:{$ref:"#/$defs/DynamicString"}},additionalProperties:!1}},{type:"object",required:["path","valuePath","labelPath"],properties:{path:{$ref:"#/$defs/Path"},valuePath:{$ref:"#/$defs/Path"},labelPath:{$ref:"#/$defs/Path"},descriptionPath:{$ref:"#/$defs/Path"},avatarPath:{$ref:"#/$defs/Path",description:"Initials or a media reference per option: renders people and places with a face"},imagePath:{$ref:"#/$defs/Path"},recentPath:{$ref:"#/$defs/Path",description:"Boolean per option: shown in a 'Recent' row above the full list"}},additionalProperties:!1}],description:"Either a fixed list, or options read from host data"},ComponentAction:{type:"object",description:"A button that triggers a host capability.",required:["id","component","label","action"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Action"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Verb-first label saying what happens ('Send \xA320', not 'OK')"},action:{$ref:"#/$defs/Action"},emphasis:{enum:["primary","secondary","tertiary"],default:"secondary"},tone:{enum:["default","danger"],default:"default"},disabled:{$ref:"#/$defs/DynamicBoolean"},description:{$ref:"#/$defs/DynamicString",description:"A second line under the label saying what the action does, for menu-like actions"},copy:{$ref:"#/$defs/DynamicString",description:"For the renderer action ui.copy: the text put on the clipboard; otherwise the action context's 'text' is copied"},shortcut:{type:"string",pattern:"^((mod|ctrl|alt|shift)\\+){0,3}([a-z0-9]|enter|escape|space|tab|backspace|delete|arrowup|arrowdown|arrowleft|arrowright|home|end|f[1-9]|f1[0-2]|slash|comma|period)$",description:`Keyboard shortcut that triggers the action while the surface has focus, e.g. "mod+enter" or "shift+d". 'mod' is Command on Apple platforms and Control elsewhere. The renderer shows the hint beside the label and never binds it outside the surface.`}},additionalProperties:!1},ComponentActionBar:{type:"object",description:"The set of actions for a surface or section; the renderer places it where that platform expects.",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ActionBar"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList",description:"Action component ids, in order of importance"}},additionalProperties:!1},ComponentActionMenu:{type:"object",description:"Secondary actions behind one control: an overflow menu, a dropdown, a split button or a context menu.",required:["id","component","label","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ActionMenu"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"The control's name: 'More actions' for an overflow, or the verb for a dropdown ('Export')"},kind:{enum:["overflow","dropdown","split","context"],default:"overflow",description:"'overflow' is the '\u2026' control; 'dropdown' is a labelled button that opens the menu; 'split' pairs a primary action with a menu of alternatives; 'context' opens on right-click or long-press of the component it belongs to"},children:{$ref:"#/$defs/ChildList",description:"The Actions in the menu, in order; a danger-toned one goes last and is separated"},primary:{$ref:"#/$defs/Id",description:"For 'split': the Action that runs when the main part is pressed"}},additionalProperties:!1},ComponentAppBar:{type:"object",description:"The bar at the top of the product: brand or title, a leading action, search, trailing actions and the account.",required:["id","component","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"AppBar"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"The product's name, or the current screen's title on compact layouts"},brand:{$ref:"#/$defs/DynamicString",description:"A media reference for the logo, or initials; rendered before the title"},leading:{$ref:"#/$defs/Id",description:"An Action at the start: back, or the menu button the renderer adds itself when the navigation is a drawer"},search:{$ref:"#/$defs/Id",description:"A TextInput of kind 'search' (or a command palette opener: an Action with a shortcut)"},actions:{$ref:"#/$defs/Id",description:"An ActionBar at the end: notifications, help, the primary action of the product"},account:{$ref:"#/$defs/Id",description:"An Identity (the signed-in person) or an ActionMenu opened from it"},variant:{enum:["standard","large","compact"],default:"standard",description:"'large' puts the title under the bar on its own line on wide screens; 'compact' is 48px for dense tools"},sticky:{type:"boolean",default:!0}},additionalProperties:!1},ComponentCard:{type:"object",description:"One self-contained entity (an account, an order, a place), optionally actionable as a whole.",required:["id","component","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Card"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Name of the entity"},subtitle:{$ref:"#/$defs/DynamicString"},media:{$ref:"#/$defs/Id",description:"Optional Media component id"},badge:{type:"object",required:["text"],properties:{text:{$ref:"#/$defs/DynamicString"},tone:{$ref:"#/$defs/Tone"}},additionalProperties:!1},children:{$ref:"#/$defs/ChildList"},action:{$ref:"#/$defs/Action",description:"Activating the card as a whole (e.g. open details)"},progress:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding",description:"Number from 0 to 1 in host data"},label:{$ref:"#/$defs/DynamicString",description:"Optional text, e.g. '120 of 320 pages'; the percentage is shown otherwise"}},additionalProperties:!1,description:"Progress through the entity (reading, a course, a goal)"}},additionalProperties:!1},ComponentChart:{type:"object",description:"A visual summary of data, always paired with a text summary.",required:["id","component","intent","data","title","summary","x","series"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Chart"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},intent:{enum:["trend","comparison","composition","distribution","relationship","flow","hierarchy","matrix","range"],description:"What the chart should communicate; the renderer picks the chart type. 'relationship' between two measures; 'flow' of amounts from each x value into the series; 'hierarchy' of parts by size; 'matrix' of x values against series; 'range' from the first series to the second"},data:{$ref:"#/$defs/Binding",description:"Array of data points in host data"},title:{$ref:"#/$defs/DynamicString"},summary:{$ref:"#/$defs/DynamicString",description:"Text alternative stating the takeaway (required)"},x:{type:"object",required:["path","label"],properties:{path:{$ref:"#/$defs/Path"},label:{$ref:"#/$defs/DynamicString"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1},series:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["path","label"],properties:{key:{$ref:"#/$defs/Key"},path:{$ref:"#/$defs/Path"},label:{$ref:"#/$defs/DynamicString"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1}}},additionalProperties:!1},ComponentChoice:{type:"object",description:"Pick one or several options from a known set. The renderer chooses the control.",required:["id","component","label","options","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Choice"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},options:{$ref:"#/$defs/Options"},value:{$ref:"#/$defs/Binding",description:"Two-way binding into host data"},mode:{enum:["single","multiple"],default:"single"},help:{$ref:"#/$defs/DynamicString"},required:{type:"boolean",default:!1}},additionalProperties:!1},ComponentCode:{type:"object",description:"Code, a command or preformatted text, shown as written and copyable.",required:["id","component","text"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Code"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},text:{$ref:"#/$defs/DynamicString",description:"The code itself, usually bound to host data (an API key, a command, a snippet)"},label:{$ref:"#/$defs/DynamicString",description:"What it is, shown above: 'Install', 'Your API key'"},language:{type:"string",description:"A language name for highlighting, when the renderer has it: 'bash', 'json', 'ts'"},copyable:{type:"boolean",default:!0,description:"A Copy control beside it"},wrap:{type:"boolean",default:!1,description:"Wrap long lines instead of scrolling sideways"},secret:{$ref:"#/$defs/DynamicBoolean",default:!1,description:"Masked until revealed: a key shown once"}},additionalProperties:!1},ComponentCodeInput:{type:"object",description:"A one-time code or PIN, typed into one box per character.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"CodeInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"'Enter the code we emailed you'"},value:{$ref:"#/$defs/Binding",description:"The code so far in host data, as a string"},length:{type:"integer",minimum:4,maximum:12,default:6},kind:{enum:["numeric","alphanumeric"],default:"numeric"},help:{$ref:"#/$defs/DynamicString",description:"Where the code came from and how long it lasts"},required:{$ref:"#/$defs/DynamicBoolean",default:!0},action:{$ref:"#/$defs/Action",description:"Runs when every character is in, so the person needn't press a button; context binds to value"}},additionalProperties:!1},ComponentCollection:{type:"object",description:"A list of items from host data, each rendered with the same template.",required:["id","component","items","label"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Collection"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{$ref:"#/$defs/Template"},label:{$ref:"#/$defs/DynamicString",description:"What the list contains, e.g. 'Recent payments'"},empty:{$ref:"#/$defs/Id",description:"Status component shown when there are no items"},selection:{enum:["none","single","multiple"],default:"none"},selected:{$ref:"#/$defs/Binding",description:"Selected item value(s) in host data when selection is not 'none'"},layout:{enum:["auto","list","grid","timeline","carousel","calendar"],default:"auto",description:"'grid' for visual items (products, books); 'list' for rows; 'timeline' for dated activity; 'carousel' for a row people page through; 'calendar' places items on a month grid by 'datePath'; 'auto' lets the renderer choose from the item template"},datePath:{$ref:"#/$defs/Path",description:"For 'calendar': relative path in each item to the ISO date that places it"},page:{type:"object",properties:{index:{$ref:"#/$defs/Binding",description:"1-based page number in host data"},size:{$ref:"#/$defs/Binding"},total:{$ref:"#/$defs/Binding",description:"Total number of items, all pages"},action:{$ref:"#/$defs/Action",description:"Sent when someone changes page or page size"}},additionalProperties:!1,description:"Paging state, owned by the host"},bulkActions:{$ref:"#/$defs/Id",description:"ActionBar shown while items are selected (selection 'multiple')"},reorderable:{type:"boolean",default:!1,description:"People can drag items, or move them with the keyboard, into a new order"},order:{$ref:"#/$defs/Binding",description:"Item values (ids) in the order people put them, written when reorderable"}},additionalProperties:!1},ComponentColorInput:{type:"object",description:"Pick a colour: from swatches the host offers, or any colour.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ColorInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"The colour in host data, as CSS text in the chosen format"},swatches:{$ref:"#/$defs/Options",description:"Named colours to pick from (value is the colour, label its name); without them the full picker shows"},format:{enum:["hex","rgb","hsl"],default:"hex"},alpha:{type:"boolean",default:!1,description:"Let the person set opacity too"},help:{$ref:"#/$defs/DynamicString"},required:{$ref:"#/$defs/DynamicBoolean",default:!1}},additionalProperties:!1},ComponentColumns:{type:"object",description:"Side-by-side columns that collapse to a stack on compact layouts: a main column with a narrower one beside it, or equal halves.",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Columns"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList",description:"One component per column, in reading order"},layout:{enum:["two-thirds","one-third","halves","thirds","sidebar-start","sidebar-end"],default:"two-thirds",description:"'two-thirds' is a wide first column (GOV.UK's default); 'one-third' the reverse; 'halves' and 'thirds' equal; 'sidebar-*' a fixed 18rem column at that edge"},collapse:{enum:["compact","medium","never"],default:"compact",description:"The width below which the columns stack"},align:{enum:["start","center","stretch"],default:"stretch"}},additionalProperties:!1},ComponentComparison:{type:"object",description:"Compare a few options across the same attributes, and choose one.",required:["id","component","items","itemTitle","attributes"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Comparison"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{$ref:"#/$defs/Binding",description:"Array of options in host data (2\u20134 recommended)"},itemTitle:{$ref:"#/$defs/Path",description:"Relative path to each item's name"},attributes:{type:"array",minItems:1,maxItems:8,items:{type:"object",required:["key","label","path"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},path:{$ref:"#/$defs/Path"},format:{$ref:"#/$defs/Format"},better:{enum:["higher","lower","none"],default:"none"},group:{$ref:"#/$defs/DynamicString",description:"Heading that groups related attributes (e.g. 'Storage', 'Support')"}},additionalProperties:!1}},choose:{$ref:"#/$defs/ActionSpec",description:"Action per item; context bindings resolve against the item"},recommended:{$ref:"#/$defs/DynamicString",description:"Optional value of the recommended item's title, with a reason in 'summary'"},summary:{$ref:"#/$defs/DynamicString"},recommendedReason:{$ref:"#/$defs/DynamicString",description:"Why the recommended item fits, shown on its badge (one short sentence)"}},additionalProperties:!1},ComponentConfirm:{type:"object",description:"Asks the user to confirm a consequential or destructive action, showing what will happen.",required:["id","component","title","severity","confirm"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Confirm"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Question naming the action ('Send \xA3250 to Alex?')"},message:{$ref:"#/$defs/DynamicString"},consequence:{$ref:"#/$defs/DynamicString",description:"What happens and whether it can be undone"},summary:{$ref:"#/$defs/Id",description:"Optional DetailList summarising what is being confirmed"},severity:{enum:["consequential","destructive"]},confirm:{$ref:"#/$defs/ActionSpec"},cancel:{$ref:"#/$defs/ActionSpec",description:"Defaults to 'Cancel' \u2192 ui.dismiss"},typeToConfirm:{$ref:"#/$defs/DynamicString",description:"Text the user must type before confirming (for irreversible, high-impact actions)"},amount:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1,description:"The amount being committed, shown large at the top"},subject:{type:"object",required:["title"],properties:{title:{$ref:"#/$defs/DynamicString"},subtitle:{$ref:"#/$defs/DynamicString"},avatar:{$ref:"#/$defs/DynamicString",description:"Initials, or a media reference in host data"}},additionalProperties:!1,description:"Who or what the action is for, shown with a face or picture"},consequences:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["title"],properties:{title:{$ref:"#/$defs/DynamicString"},detail:{$ref:"#/$defs/DynamicString"},icon:{enum:["lock","trash","clock","tag","info","alert","mail","shield"]}},additionalProperties:!1},description:"What will happen, as a short list (for destructive actions)"}},additionalProperties:!1},ComponentCustom:{type:"object",description:"A slot for a component the host implements itself: a logo, a brand moment, a bespoke widget. The document names it and gives it props; the product renders it, and a fallback stands in when it can't.",required:["id","component","name","fallback"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Custom"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},name:{type:"string",pattern:"^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$",description:"The host's name for the component, namespaced: 'brand.logo', 'store.map'"},props:{type:"object",description:"What the host component takes; values may be bindings",additionalProperties:!0},fallback:{$ref:"#/$defs/Id",description:"What renders when the host has no component of that name: a Text, a Media, a Status. Required, so the document stands on its own"},label:{$ref:"#/$defs/DynamicString",description:"An accessible name for the slot when the host component is decorative or complex"}},additionalProperties:!1},ComponentDateInput:{type:"object",description:"A date, time, date-time or date range.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"DateInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"ISO 8601 value(s) in host data"},kind:{enum:["date","time","datetime","dateRange","month","year"],default:"date",description:"'month' stores YYYY-MM and 'year' stores YYYY"},multiple:{type:"boolean",default:!1,description:"Several dates rather than one; the value is a list"},min:{$ref:"#/$defs/DynamicString"},max:{$ref:"#/$defs/DynamicString"},help:{$ref:"#/$defs/DynamicString"},required:{type:"boolean",default:!1}},additionalProperties:!1},ComponentDetailList:{type:"object",description:"Label/value pairs describing one thing (a summary, a receipt, a review step).",required:["id","component","items"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"DetailList"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{type:"array",minItems:1,items:{type:"object",required:["label","value"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/DynamicValue"},format:{$ref:"#/$defs/Format"},total:{type:"boolean",description:"The total row of a receipt, shown emphasised after a divider"}},additionalProperties:!1}},title:{$ref:"#/$defs/DynamicString"},variant:{enum:["default","receipt"],default:"default",description:"'receipt' for money: values right-aligned in tabular figures, with an optional total row"},layout:{enum:["rows","grid"],default:"rows",description:"'grid' packs many short fields into columns (record pages); 'rows' keeps one per line"},rowAction:{$ref:"#/$defs/Action",description:"Offered per row as a 'Change' link named after the row (GOV.UK summary list); the row's key is sent as 'key' with the context"}},additionalProperties:!1},ComponentDisclosure:{type:"object",description:"Progressive disclosure: secondary content hidden behind a toggle.",required:["id","component","summary","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Disclosure"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},summary:{$ref:"#/$defs/DynamicString",description:"Always-visible label describing what is hidden"},children:{$ref:"#/$defs/ChildList"},open:{type:"boolean",default:!1}},additionalProperties:!1},ComponentFileInput:{type:"object",description:"Choose or drop files to attach or upload.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"FileInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"The chosen files in host data: a list of { name, size, type, ref }, written by the renderer; the host uploads them"},accept:{type:"array",items:{type:"string"},description:"Allowed types as extensions or MIME types: ['.pdf', 'image/*']"},multiple:{type:"boolean",default:!1},maxSize:{type:"integer",minimum:1,description:"Largest file, in bytes; the renderer refuses larger ones with a message"},help:{$ref:"#/$defs/DynamicString",description:"What to attach and why; the accepted types and size are said by the renderer"},required:{$ref:"#/$defs/DynamicBoolean",default:!1}},additionalProperties:!1},ComponentFilterPanel:{type:"object",description:"Filters for a list of results, with the result count.",required:["id","component","children","results"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"FilterPanel"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Defaults to 'Filters'"},children:{$ref:"#/$defs/ChildList",description:"The filter inputs (Choice, RangeInput, Toggle, DateInput, TextInput)"},results:{$ref:"#/$defs/Id",description:"The Collection or Table the filters narrow"},resultCount:{$ref:"#/$defs/Binding",description:"Number of results with the current filters, from host data"},clear:{$ref:"#/$defs/Action",description:"Optional action that resets the filters on the host"}},additionalProperties:!1},ComponentFooter:{type:"object",description:"The bar at the bottom of the product: link groups, the legal line, locale or status.",required:["id","component","legal"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Footer"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},groups:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["key","label","items"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},items:{type:"array",minItems:1,maxItems:12,items:{type:"object",required:["key","label","action"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1}}},additionalProperties:!1},description:"Columns of links, each under a heading"},legal:{$ref:"#/$defs/DynamicString",description:"The line at the very bottom: copyright, licence, company details"},aside:{$ref:"#/$defs/Id",description:"Something at the end of the legal row: a locale Choice, a status Tag, a Text"}},additionalProperties:!1},ComponentForm:{type:"object",description:"Collects inputs and submits them together.",required:["id","component","children","submit"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Form"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList"},submit:{$ref:"#/$defs/ActionSpec"},cancel:{$ref:"#/$defs/ActionSpec",description:"Optional; defaults to ui.dismiss when omitted and the surface is dismissible"},aside:{$ref:"#/$defs/Id",description:"Optional summary (DetailList, Card or Group) kept beside the form, e.g. the running total"},layout:{enum:["stacked","horizontal"],default:"stacked",description:"'horizontal' puts label and help on the left and the control on the right (settings pages), on wide surfaces"}},additionalProperties:!1},ComponentFrame:{type:"object",description:"The product's frame: the regions around its screens (header, navigation, main, aside, footer, banner), with an outlet where screens and generated surfaces appear.",required:["id","component","main"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Frame"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},header:{$ref:"#/$defs/Id",description:"An AppBar"},navigation:{$ref:"#/$defs/Id",description:"A Navigation of kind 'main'; its placement decides rail, bar, drawer or side"},main:{$ref:"#/$defs/Id",description:"The outlet: a component the host replaces with the current screen. Usually an Outlet; may be a Group holding a fixed screen"},aside:{$ref:"#/$defs/Id",description:"A secondary column beside main on wide layouts (help, context, activity)"},footer:{$ref:"#/$defs/Id",description:"A Footer"},banner:{$ref:"#/$defs/Id",description:"A Status shown above everything (a phase banner, an outage, a trial ending)"},skipTarget:{type:"boolean",default:!0,description:"The renderer adds a skip link to main"},width:{enum:["full","contained"],default:"contained",description:"'contained' centres main at measure.max \xD7 1.6; 'full' lets dense tools use the whole viewport"}},additionalProperties:!1},ComponentGroup:{type:"object",description:"Visually groups closely related items without a heading (proximity).",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Group"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList"},label:{$ref:"#/$defs/DynamicString",description:"Accessible name for the group when it isn't obvious from its content"},arrangement:{enum:["auto","inline","grid"],default:"auto",description:"Hint only. 'inline' for a few short peers (e.g. metrics); renderers stack on narrow screens."}},additionalProperties:!1},ComponentIdentity:{type:"object",description:"A person, team or organisation: picture, name and details, or several of them together.",required:["id","component","name"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Identity"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},name:{$ref:"#/$defs/DynamicString",description:"Always bound to host data: a name is never invented"},detail:{$ref:"#/$defs/DynamicString",description:"One line under the name: a role, an email, a team, a status"},image:{$ref:"#/$defs/DynamicString",description:"A media reference from host data, resolved by the host as Media's is; initials from the name are shown without one"},kind:{enum:["person","team","organization"],default:"person",description:"A person's picture is round; a team's or organisation's is square"},size:{enum:["small","default","large"],default:"default"},action:{$ref:"#/$defs/Action",description:"Activating the identity as a whole, e.g. open the person's record"},group:{type:"object",required:["path","namePath"],properties:{path:{$ref:"#/$defs/Path",description:"A list of people in host data, shown as overlapping pictures with a '+N' for the rest"},namePath:{$ref:"#/$defs/Path",description:"Relative to each entry"},imagePath:{$ref:"#/$defs/Path",description:"Relative to each entry"},max:{type:"integer",minimum:1,maximum:8,default:4,description:"Pictures shown before '+N'"}},additionalProperties:!1,description:"Several identities as one element ('Rhea, Tom and 3 others'). name is then the group's accessible summary"}},additionalProperties:!1},ComponentMedia:{type:"object",description:"An image, video, audio clip, gallery or QR code supplied by the host.",required:["id","component"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Media"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},src:{$ref:"#/$defs/Binding",description:"Image, video or audio reference in host data; generated UI never contains URLs"},alt:{$ref:"#/$defs/DynamicString",description:"Required unless decorative. For a gallery it names the set; for a QR code it says what the code opens"},decorative:{type:"boolean",default:!1},aspect:{enum:["square","landscape","portrait","auto"],default:"auto"},kind:{enum:["image","video","audio","gallery","qr"],default:"image",description:"'video' and 'audio' play with native controls; 'gallery' is several images from 'items'; 'qr' encodes 'value' as a QR code"},poster:{$ref:"#/$defs/DynamicString",description:"For 'video': media reference for the frame shown before play"},transcript:{$ref:"#/$defs/DynamicString",description:"For 'video' and 'audio': the words, offered under the player"},items:{$ref:"#/$defs/Binding",description:"For 'gallery': array of images in host data"},imagePath:{$ref:"#/$defs/Path",description:"For 'gallery': relative path in each item to its image reference"},altPath:{$ref:"#/$defs/Path",description:"For 'gallery': relative path in each item to its alt text"},value:{$ref:"#/$defs/DynamicString",description:"For 'qr': the text encoded, e.g. a payment link from host data"}},additionalProperties:!1},ComponentMetric:{type:"object",description:"A key figure with a label, and optionally its change.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Metric"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Always bound to host data"},format:{$ref:"#/$defs/Format"},change:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding"},format:{$ref:"#/$defs/Format"},favorable:{enum:["increase","decrease","none"],default:"increase",description:"Which direction is good, so color follows meaning, not sign"}},additionalProperties:!1},caption:{$ref:"#/$defs/DynamicString"}},additionalProperties:!1},ComponentNavigation:{type:"object",description:"The product's main navigation.",required:["id","component","items","current"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Navigation"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Names the navigation, e.g. 'Main'"},items:{type:"array",minItems:2,maxItems:20,items:{type:"object",required:["key","label","action"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},group:{$ref:"#/$defs/DynamicString",description:"Heading that groups items (e.g. 'Billing')"},icon:{enum:["home","search","inbox","book","tag","clock","shield","lock","mail","settings","chart","people","card","file","orders","products","customers","discounts","analytics","calendar","bell","help","folder","star","grid","layers"]},badge:{$ref:"#/$defs/Binding",description:"Count needing attention, e.g. overdue invoices"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1}},current:{$ref:"#/$defs/Binding",description:"Key of the current item in host data"},kind:{enum:["main","breadcrumb","nested","toc","local"],default:"main",description:"'main' is the product's sections; 'breadcrumb' the ordered trail to here; 'nested' groups that expand; 'toc' the sections of this page (items link to anchors named by their keys); 'local' the sections of one area, as tabs"},placement:{enum:["auto","side","rail","bar","drawer"],default:"auto",description:"For kind 'main' inside a Frame: where it lives. 'auto' is a side column on wide layouts, a rail on medium and a bottom bar (\u2264 5 items) or a drawer on compact; the others fix it"}},additionalProperties:!1},ComponentOutlet:{type:"object",description:"Where the current screen renders inside a Frame: the host fills it with a screen document or a generated surface.",required:["id","component"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Outlet"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Names the region for assistive tech when the screen has no title yet"},loading:{$ref:"#/$defs/Id",description:"What shows while a screen is on its way; the renderer's skeleton when absent"}},additionalProperties:!1},ComponentPanel:{type:"object",description:"Content over the current view: a dialog, a drawer, a bottom sheet or a popover, opened from an action and dismissed to return.",required:["id","component","title","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Panel"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},kind:{enum:["dialog","drawer","sheet","popover"],default:"dialog",description:"'dialog' centres and blocks; 'drawer' slides from the side for a form or a record; 'sheet' rises from the bottom on phones; 'popover' floats by its opener for a small choice"},title:{$ref:"#/$defs/DynamicString"},children:{$ref:"#/$defs/ChildList",description:"What the panel holds"},actions:{$ref:"#/$defs/Id",description:"An ActionBar in the panel's footer: its primary action and a Cancel"},open:{$ref:"#/$defs/DynamicBoolean",description:"Bound to host data: true shows the panel; the renderer writes false on dismiss. Open when absent"},dismissible:{type:"boolean",default:!0,description:"Escape, the close control and the backdrop dismiss it; false for a panel that must be completed"},size:{enum:["small","default","large"],default:"default"}},additionalProperties:!1},ComponentProgress:{type:"object",description:"How far along something is, or how much of a bounded amount is used: a bar, a ring or a meter.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Progress"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What is being measured: 'Storage used', 'Upload', 'Goal'"},value:{$ref:"#/$defs/DynamicNumber",description:"Bound to host data. A fraction from 0 to 1, or an amount when max is given"},max:{$ref:"#/$defs/DynamicNumber",description:"The whole, when value is an amount rather than a fraction: 200 for '180 of 200 GB'"},kind:{enum:["bar","ring","meter"],default:"bar",description:"'bar' and 'ring' show progress towards done; 'meter' shows a measured amount within bounds, with tone by threshold"},caption:{$ref:"#/$defs/DynamicString",description:"Text beside the readout: '180 of 200 GB', '3 days left'. The readout itself is derived from value"},format:{$ref:"#/$defs/Format",description:"How the readout is shown; percent without it"},tone:{$ref:"#/$defs/Tone",description:"Fixed tone; a meter without one takes warning past thresholds.warning and danger past thresholds.danger"},thresholds:{type:"object",properties:{warning:{type:"number",minimum:0,maximum:1},danger:{type:"number",minimum:0,maximum:1}},additionalProperties:!1,description:"Fractions at which a meter changes tone"},indeterminate:{$ref:"#/$defs/DynamicBoolean",description:"The task is running and how far along isn't known"}},additionalProperties:!1},ComponentRangeInput:{type:"object",description:"A number, or a range between two numbers, within known bounds.",required:["id","component","label","value","min","max"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"RangeInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Number in host data, or [min, max] when mode is 'range'"},min:{type:"number"},max:{type:"number"},step:{type:"number",exclusiveMinimum:0},format:{$ref:"#/$defs/Format"},mode:{enum:["single","range"],default:"single",description:"'range' picks a lower and upper bound; value is then [min, max]"}},additionalProperties:!1},ComponentRating:{type:"object",description:"A score out of N: given by the person, or shown as others gave it.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Rating"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What is rated: 'Your rating', 'Average rating'"},value:{$ref:"#/$defs/Binding",description:"The score in host data; written when the person can rate"},max:{type:"integer",minimum:2,maximum:10,default:5},readOnly:{$ref:"#/$defs/DynamicBoolean",default:!1,description:"Show a score rather than take one"},count:{$ref:"#/$defs/DynamicNumber",description:"How many ratings the score is from, shown after it: '4.6 (212)'"},help:{$ref:"#/$defs/DynamicString"},required:{$ref:"#/$defs/DynamicBoolean",default:!1},action:{$ref:"#/$defs/Action",description:"Runs when a rating is given, with context bound to value"}},additionalProperties:!1},ComponentSection:{type:"object",description:"A titled region of the surface that groups related content under a heading.",required:["id","component","title","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Section"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Heading for the section"},description:{$ref:"#/$defs/DynamicString",description:"Optional one-line explanation under the heading"},children:{$ref:"#/$defs/ChildList"}},additionalProperties:!1},ComponentSplit:{type:"object",description:"Master and detail side by side: a list that stays while the chosen item's detail shows beside it; on compact layouts the detail replaces the list.",required:["id","component","primary","detail","selected"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Split"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},primary:{$ref:"#/$defs/Id",description:"The list: a Collection or a Table with selection 'single'"},detail:{$ref:"#/$defs/Id",description:"What shows for the selected item; its bindings resolve against the selected item's scope"},selected:{$ref:"#/$defs/Binding",description:"The selected item's value in host data, shared with the primary's 'selected'"},empty:{$ref:"#/$defs/Id",description:"A Status shown in the detail pane while nothing is selected"},ratio:{enum:["narrow","balanced","wide"],default:"narrow",description:"The list's share: about a third, half, or two thirds"},resizable:{type:"boolean",default:!1}},additionalProperties:!1},ComponentStatus:{type:"object",description:"Feedback about state: info, success, warning, error, empty or loading.",required:["id","component","kind","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Status"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},kind:{enum:["info","success","warning","error","empty","loading","undo"]},title:{$ref:"#/$defs/DynamicString"},message:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Id",description:"Optional Action (or ActionBar for a primary and a secondary) to recover or continue, e.g. 'Try again'; for 'undo', the Undo action"},icon:{enum:["lock","trash","clock","tag","info","alert","mail","shield","search","book","inbox","check"],description:"Optional icon for empty states; the renderer picks one by kind otherwise"},variant:{enum:["default","inline"],default:"default",description:"'inline' is a notice inside a page (a warning above a record) rather than a block of its own"}},additionalProperties:!1},ComponentSteps:{type:"object",description:"A task split into ordered steps with visible progress.",required:["id","component","steps","finish"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Steps"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},steps:{type:"array",minItems:2,maxItems:7,items:{type:"object",required:["key","title","content"],properties:{key:{$ref:"#/$defs/Key"},title:{$ref:"#/$defs/DynamicString"},content:{$ref:"#/$defs/Id"},status:{$ref:"#/$defs/DynamicString",description:"For 'tasklist': 'todo', 'inProgress', 'done' or 'blocked', usually bound to host data"}},additionalProperties:!1}},kind:{enum:["wizard","tasklist","guide"],default:"wizard",description:"'wizard' shows one step at a time in order; 'tasklist' lists tasks people do in any order, each with its status; 'guide' is numbered instructions with no state"},current:{$ref:"#/$defs/DynamicNumber",description:"Index of the current step (default 0)"},finish:{$ref:"#/$defs/ActionSpec"}},additionalProperties:!1},ComponentTable:{type:"object",description:"Tabular data: many items sharing the same attributes.",required:["id","component","rows","caption","columns"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Table"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},rows:{$ref:"#/$defs/Binding",description:"Array of row objects in host data"},caption:{$ref:"#/$defs/DynamicString",description:"What the table shows (required for accessibility)"},columns:{type:"array",minItems:1,maxItems:8,items:{type:"object",required:["key","label","path"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},path:{$ref:"#/$defs/Path",description:"Relative to the row"},format:{$ref:"#/$defs/Format"},kind:{enum:["text","number","currency","date","status","entity","link"],default:"text",description:"What the cell holds; drives alignment, tabular figures and status tags"},align:{enum:["start","end"],description:"Overrides the alignment the kind implies"},tones:{type:"object",additionalProperties:{$ref:"#/$defs/Tone"},description:`For 'status': value \u2192 tone, e.g. {"Past due": "danger"}`},sortable:{type:"boolean",description:"Whether people can sort by this column"},avatarPath:{$ref:"#/$defs/Path",description:"For 'entity': relative path to the picture or initials"},secondaryPath:{$ref:"#/$defs/Path",description:"For 'entity': a second line, e.g. an email address"}},additionalProperties:!1}},rowAction:{$ref:"#/$defs/Action",description:"Activated per row; context bindings resolve against the row"},empty:{$ref:"#/$defs/Id",description:"Status component shown when there are no rows"},sort:{type:"object",required:["column"],properties:{column:{$ref:"#/$defs/Binding",description:"Key of the sorted column in host data"},direction:{$ref:"#/$defs/Binding",description:"'ascending' or 'descending' in host data"},action:{$ref:"#/$defs/Action",description:"Sent when someone sorts, so the host can re-query"}},additionalProperties:!1,description:"Sorting state, owned by the host"},selection:{enum:["none","multiple"],default:"none",description:"'multiple' adds a checkbox column and a select-all"},selected:{$ref:"#/$defs/Binding",description:"Array of selected row values in host data"},rowValuePath:{$ref:"#/$defs/Path",description:"Relative path to each row's id, used for selection"},bulkActions:{$ref:"#/$defs/Id",description:"ActionBar shown instead of the toolbar while rows are selected"},rowActions:{$ref:"#/$defs/Id",description:"ActionBar offered per row, in a menu named after the row"},expandable:{type:"boolean",default:!1,description:"Rows open to show 'detail' beneath them"},detail:{$ref:"#/$defs/Id",description:"Component rendered under an expanded row; relative paths inside it resolve against the row"},toolbar:{$ref:"#/$defs/Id",description:"ActionBar above the table (e.g. New, Import, Export)"},search:{$ref:"#/$defs/Id",description:"TextInput (kind 'search') above the table"},views:{type:"array",minItems:2,maxItems:8,items:{type:"object",required:["key","label"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},count:{$ref:"#/$defs/Binding"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},description:"Saved views (All, Mine, Past due\u2026), shown as tabs with counts"},view:{$ref:"#/$defs/Binding",description:"Key of the selected saved view in host data"},page:{type:"object",properties:{index:{$ref:"#/$defs/Binding",description:"1-based page number in host data"},size:{$ref:"#/$defs/Binding"},total:{$ref:"#/$defs/Binding",description:"Total number of rows, all pages"},action:{$ref:"#/$defs/Action",description:"Sent when someone changes page or page size"}},additionalProperties:!1,description:"Paging state, owned by the host"}},additionalProperties:!1},ComponentTag:{type:"object",description:"A short label, status or count attached to something else.",required:["id","component","label"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Tag"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"The word or two it shows: 'Past due', 'Beta', 'Design'"},kind:{enum:["label","status","count"],default:"label",description:"'status' is the state of the thing it sits on and is coloured by tone; 'count' is a number, with the label as its accessible name"},tone:{$ref:"#/$defs/Tone",default:"neutral",description:"Meaning, not decoration: a status tag's tone says whether the state is fine, a warning or a problem"},count:{$ref:"#/$defs/DynamicNumber",description:"For kind 'count': the number, bound to host data"},remove:{$ref:"#/$defs/Action",description:"Present when the person can take the tag off (a filter chip, a chosen recipient): the capability that removes it"}},additionalProperties:!1},ComponentText:{type:"object",description:"A run of text.",required:["id","component","text"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Text"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},text:{$ref:"#/$defs/DynamicString"},variant:{enum:["body","supporting","caption","rich","list","quote"],default:"body",description:"'rich' allows **bold**, *italic*, `code` and [links](href) in the text; 'list' is a bulleted or numbered list of 'items'; 'quote' is a quotation with an optional 'cite'"},format:{$ref:"#/$defs/Format",description:"Only when 'text' is bound to a non-string value"},items:{$ref:"#/$defs/Binding",description:"For 'list': array in host data, one entry per item; 'text' introduces the list"},itemPath:{$ref:"#/$defs/Path",description:"For 'list': relative path in each entry to the text shown, when the entries are objects"},ordered:{type:"boolean",default:!1,description:"For 'list': numbered rather than bulleted"},cite:{$ref:"#/$defs/DynamicString",description:"For 'quote': who or what is quoted"}},additionalProperties:!1},ComponentTextInput:{type:"object",description:"A single text-like value: text, number, email, phone, currency, search or long text.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"TextInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Two-way binding into host data"},kind:{enum:["text","multiline","number","currency","email","phone","url","search","suggestions","richtext","tags","mentions","code","masked","inline"],default:"text",description:"'suggestions' offers completions from 'options' while leaving any text allowed; 'richtext' is short formatted text (bold, italic, lists) stored as markdown-ish text; 'tags' is a list of short values entered one at a time; 'mentions' offers 'options' after an @; 'code' is monospace with no autocorrection; 'masked' follows 'mask'; 'inline' reads as text until it is clicked"},options:{$ref:"#/$defs/Options",description:"For 'suggestions' and 'mentions': the completions offered"},mask:{type:"string",description:"For 'masked': # for a digit, A for a letter, * for either, anything else typed for you, e.g. '#### #### #### ####'"},currency:{$ref:"#/$defs/DynamicString",description:"ISO 4217 code when kind is 'currency'"},help:{$ref:"#/$defs/DynamicString",description:"Hint shown below the label (not a placeholder)"},required:{type:"boolean",default:!1},validation:{type:"object",properties:{min:{type:"number"},max:{type:"number"},minLength:{type:"integer",minimum:0},maxLength:{type:"integer",minimum:1},message:{$ref:"#/$defs/DynamicString",description:"Error message shown when validation fails"}},additionalProperties:!1},autocomplete:{type:"string",description:"HTML autocomplete token hint (e.g. 'email', 'postal-code')"},placeholder:{$ref:"#/$defs/DynamicString",description:"Only for kind 'search', shown inside the field. Never a substitute for the label."},size:{enum:["default","hero"],default:"default",description:"'hero' for the one number a surface is about (an amount to send): large and centred"}},additionalProperties:!1},ComponentToggle:{type:"object",description:"An on/off setting.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Toggle"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Boolean in host data"},description:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action",description:"Set when the change applies immediately (a setting); omit inside a Form"}},additionalProperties:!1},ComponentTree:{type:"object",description:"A hierarchy people expand, browse and pick from: folders, an org chart, nested categories.",required:["id","component","label","items","labelPath","childrenPath"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Tree"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What the tree holds, e.g. 'Folders'"},items:{$ref:"#/$defs/Binding",description:"The top-level nodes in host data: a list"},labelPath:{$ref:"#/$defs/Path",description:"Relative to each node: the text shown"},childrenPath:{$ref:"#/$defs/Path",description:"Relative to each node: its list of child nodes, absent or empty for a leaf"},valuePath:{$ref:"#/$defs/Path",description:"Relative to each node: what selection writes; the label when absent"},detailPath:{$ref:"#/$defs/Path",description:"Relative to each node: a count or note shown after the label"},selection:{enum:["none","single","multiple"],default:"none"},selected:{$ref:"#/$defs/Binding",description:"Selected node value(s) in host data when selection is not 'none'"},expanded:{$ref:"#/$defs/Binding",description:"Values of the nodes shown open; the first level is open without it"},action:{$ref:"#/$defs/Action",description:"Activating a node, e.g. open that folder; context may bind to the node's fields"}},additionalProperties:!1},ComponentViews:{type:"object",description:"Switch between alternative views of the same subject (tabs).",required:["id","component","views"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Views"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},views:{type:"array",minItems:2,maxItems:6,items:{type:"object",required:["key","label","content"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},content:{$ref:"#/$defs/Id"},count:{$ref:"#/$defs/Binding",description:"How many items the view holds, shown beside its label"}},additionalProperties:!1}},selected:{$ref:"#/$defs/Binding",description:"Key of the selected view in host data"},variant:{enum:["tabs","segmented"],default:"tabs",description:"'tabs' for sections of a record; 'segmented' for switching how the same thing is shown"}},additionalProperties:!1},Component:{type:"object",required:["component"],discriminator:{propertyName:"component"},oneOf:[{$ref:"#/$defs/ComponentAction"},{$ref:"#/$defs/ComponentActionBar"},{$ref:"#/$defs/ComponentActionMenu"},{$ref:"#/$defs/ComponentAppBar"},{$ref:"#/$defs/ComponentCard"},{$ref:"#/$defs/ComponentChart"},{$ref:"#/$defs/ComponentChoice"},{$ref:"#/$defs/ComponentCode"},{$ref:"#/$defs/ComponentCodeInput"},{$ref:"#/$defs/ComponentCollection"},{$ref:"#/$defs/ComponentColorInput"},{$ref:"#/$defs/ComponentColumns"},{$ref:"#/$defs/ComponentComparison"},{$ref:"#/$defs/ComponentConfirm"},{$ref:"#/$defs/ComponentCustom"},{$ref:"#/$defs/ComponentDateInput"},{$ref:"#/$defs/ComponentDetailList"},{$ref:"#/$defs/ComponentDisclosure"},{$ref:"#/$defs/ComponentFileInput"},{$ref:"#/$defs/ComponentFilterPanel"},{$ref:"#/$defs/ComponentFooter"},{$ref:"#/$defs/ComponentForm"},{$ref:"#/$defs/ComponentFrame"},{$ref:"#/$defs/ComponentGroup"},{$ref:"#/$defs/ComponentIdentity"},{$ref:"#/$defs/ComponentMedia"},{$ref:"#/$defs/ComponentMetric"},{$ref:"#/$defs/ComponentNavigation"},{$ref:"#/$defs/ComponentOutlet"},{$ref:"#/$defs/ComponentPanel"},{$ref:"#/$defs/ComponentProgress"},{$ref:"#/$defs/ComponentRangeInput"},{$ref:"#/$defs/ComponentRating"},{$ref:"#/$defs/ComponentSection"},{$ref:"#/$defs/ComponentSplit"},{$ref:"#/$defs/ComponentStatus"},{$ref:"#/$defs/ComponentSteps"},{$ref:"#/$defs/ComponentTable"},{$ref:"#/$defs/ComponentTag"},{$ref:"#/$defs/ComponentText"},{$ref:"#/$defs/ComponentTextInput"},{$ref:"#/$defs/ComponentToggle"},{$ref:"#/$defs/ComponentTree"},{$ref:"#/$defs/ComponentViews"}]}}};var cr={enum:["neutral","info","success","warning","danger"]},On=new RegExp("^0\\.[123]\\.[0-9]+$","u"),F=new RegExp("^[A-Za-z][A-Za-z0-9_-]*$","u"),K=new RegExp("^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$","u"),Q=Object.prototype.hasOwnProperty;var ae=new RegExp("^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$","u");function q(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=q.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.path===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(a!=="path"){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.path!==void 0){let a=t.path;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return q.errors=e,o===0}q.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function g(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=g.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);let a=o,i=!1,u=null,f=o;if(typeof t!="string"){let h={instancePath:r,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[h]:e.push(h),o++}var x=f===o;x&&(i=!0,u=0);let m=o;q(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length);var x=m===o;if(x&&i)i=!1,u=[u,1];else if(x){i=!0,u=1;var y=!0}if(i)o=a,e!==null&&(a?e.length=a:e=null);else{let h={instancePath:r,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:u},message:"must match exactly one schema in oneOf"};e===null?e=[h]:e.push(h),o++}return g.errors=e,c.props=y,o===0}g.evaluated={dynamicProps:!0,dynamicItems:!1};var Ln=new RegExp("^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)+$","u"),Vn={oneOf:[{type:["string","number","boolean"]},{$ref:"#/$defs/Binding"}]};function Me(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Me.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);let a=o,i=!1,u=null,f=o;if(typeof t!="string"&&typeof t!="number"&&typeof t!="boolean"){let h={instancePath:r,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:Vn.oneOf[0].type},message:"must be string,number,boolean"};e===null?e=[h]:e.push(h),o++}var x=f===o;x&&(i=!0,u=0);let m=o;q(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length);var x=m===o;if(x&&i)i=!1,u=[u,1];else if(x){i=!0,u=1;var y=!0}if(i)o=a,e!==null&&(a?e.length=a:e=null);else{let h={instancePath:r,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:u},message:"must match exactly one schema in oneOf"};e===null?e=[h]:e.push(h),o++}return Me.errors=e,c.props=y,o===0}Me.evaluated={dynamicProps:!0,dynamicItems:!1};function Z(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Z.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.event===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"event"},message:"must have required property 'event'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(a!=="event"){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.event!==void 0){let a=t.event;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.name===void 0){let i={instancePath:r+"/event",schemaPath:"#/properties/event/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!(i==="name"||i==="context")){let u={instancePath:r+"/event",schemaPath:"#/properties/event/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}if(a.name!==void 0){let i=a.name;if(typeof i=="string"){if(!Ln.test(i)){let u={instancePath:r+"/event/name",schemaPath:"#/$defs/Capability/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)+$"},message:'must match pattern "^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)+$"'};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/event/name",schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[u]:e.push(u),o++}}if(a.context!==void 0){let i=a.context;if(i&&typeof i=="object"&&!Array.isArray(i))for(let u in i)Me(i[u],{instancePath:r+"/event/context/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:i,parentDataProperty:u,rootData:n,dynamicAnchors:d})||(e=e===null?Me.errors:e.concat(Me.errors),o=e.length);else{let u={instancePath:r+"/event/context",schemaPath:"#/properties/event/properties/context/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[u]:e.push(u),o++}}}else{let i={instancePath:r+"/event",schemaPath:"#/properties/event/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Z.errors=e,o===0}Z.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var _o={type:"object",description:"A button that triggers a host capability.",required:["id","component","label","action"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Action"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Verb-first label saying what happens ('Send \xA320', not 'OK')"},action:{$ref:"#/$defs/Action"},emphasis:{enum:["primary","secondary","tertiary"],default:"secondary"},tone:{enum:["default","danger"],default:"default"},disabled:{$ref:"#/$defs/DynamicBoolean"},description:{$ref:"#/$defs/DynamicString",description:"A second line under the label saying what the action does, for menu-like actions"},copy:{$ref:"#/$defs/DynamicString",description:"For the renderer action ui.copy: the text put on the clipboard; otherwise the action context's 'text' is copied"},shortcut:{type:"string",pattern:"^((mod|ctrl|alt|shift)\\+){0,3}([a-z0-9]|enter|escape|space|tab|backspace|delete|arrowup|arrowdown|arrowleft|arrowright|home|end|f[1-9]|f1[0-2]|slash|comma|period)$",description:`Keyboard shortcut that triggers the action while the surface has focus, e.g. "mod+enter" or "shift+d". 'mod' is Command on Apple platforms and Control elsewhere. The renderer shows the hint beside the label and never binds it outside the surface.`}},additionalProperties:!1},Zn=new RegExp("^((mod|ctrl|alt|shift)\\+){0,3}([a-z0-9]|enter|escape|space|tab|backspace|delete|arrowup|arrowdown|arrowleft|arrowright|home|end|f[1-9]|f1[0-2]|slash|comma|period)$","u"),Kn={type:"object",properties:{label:{$ref:"#/$defs/DynamicString",description:"Accessible name, when the visible label is absent or insufficient"},description:{$ref:"#/$defs/DynamicString"},live:{enum:["off","polite","assertive"]},hidden:{type:"boolean",description:"Hide from assistive technology (decorative only)"}},additionalProperties:!1,description:"Same fields as A2UI v1.0 'accessibility'. Components already carry roles and names from their semantics; use this only to add to them."};function D(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=D.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(let a in t)if(!(a==="label"||a==="description"||a==="live"||a==="hidden")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.description!==void 0&&(g(t.description,{instancePath:r+"/description",parentData:t,parentDataProperty:"description",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.live!==void 0){let a=t.live;if(!(a==="off"||a==="polite"||a==="assertive")){let i={instancePath:r+"/live",schemaPath:"#/properties/live/enum",keyword:"enum",params:{allowedValues:Kn.properties.live.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.hidden!==void 0&&typeof t.hidden!="boolean"){let a={instancePath:r+"/hidden",schemaPath:"#/properties/hidden/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return D.errors=e,o===0}D.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function z(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=z.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);let a=o,i=!1,u=null,f=o;if(typeof t!="boolean"){let h={instancePath:r,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[h]:e.push(h),o++}var x=f===o;x&&(i=!0,u=0);let m=o;q(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length);var x=m===o;if(x&&i)i=!1,u=[u,1];else if(x){i=!0,u=1;var y=!0}if(i)o=a,e!==null&&(a?e.length=a:e=null);else{let h={instancePath:r,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:u},message:"must match exactly one schema in oneOf"};e===null?e=[h]:e.push(h),o++}return z.errors=e,c.props=y,o===0}z.evaluated={dynamicProps:!0,dynamicItems:!1};function dt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=dt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.action===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"action"},message:"must have required property 'action'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(_o.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Action"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Action"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.action!==void 0&&(Z(t.action,{instancePath:r+"/action",parentData:t,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length)),t.emphasis!==void 0){let a=t.emphasis;if(!(a==="primary"||a==="secondary"||a==="tertiary")){let i={instancePath:r+"/emphasis",schemaPath:"#/properties/emphasis/enum",keyword:"enum",params:{allowedValues:_o.properties.emphasis.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.tone!==void 0){let a=t.tone;if(!(a==="default"||a==="danger")){let i={instancePath:r+"/tone",schemaPath:"#/properties/tone/enum",keyword:"enum",params:{allowedValues:_o.properties.tone.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.disabled!==void 0&&(z(t.disabled,{instancePath:r+"/disabled",parentData:t,parentDataProperty:"disabled",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.description!==void 0&&(g(t.description,{instancePath:r+"/description",parentData:t,parentDataProperty:"description",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.copy!==void 0&&(g(t.copy,{instancePath:r+"/copy",parentData:t,parentDataProperty:"copy",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.shortcut!==void 0){let a=t.shortcut;if(typeof a=="string"){if(!Zn.test(a)){let i={instancePath:r+"/shortcut",schemaPath:"#/properties/shortcut/pattern",keyword:"pattern",params:{pattern:"^((mod|ctrl|alt|shift)\\+){0,3}([a-z0-9]|enter|escape|space|tab|backspace|delete|arrowup|arrowdown|arrowleft|arrowright|home|end|f[1-9]|f1[0-2]|slash|comma|period)$"},message:'must match pattern "^((mod|ctrl|alt|shift)\\+){0,3}([a-z0-9]|enter|escape|space|tab|backspace|delete|arrowup|arrowdown|arrowleft|arrowright|home|end|f[1-9]|f1[0-2]|slash|comma|period)$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/shortcut",schemaPath:"#/properties/shortcut/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return dt.errors=e,o===0}dt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function re(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=re.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){if(t.length<1){let i={instancePath:r,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};e===null?e=[i]:e.push(i),o++}let a=t.length;for(let i=0;i<a;i++){let u=t[i];if(typeof u=="string"){if(!F.test(u)){let f={instancePath:r+"/"+i,schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[f]:e.push(f),o++}}else{let f={instancePath:r+"/"+i,schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[f]:e.push(f),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[a]:e.push(a),o++}return re.errors=e,o===0}re.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1};function pt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=pt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.children===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="id"||a==="component"||a==="key"||a==="accessibility"||a==="visible"||a==="children")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="ActionBar"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"ActionBar"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return pt.errors=e,o===0}pt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var qs={type:"object",description:"Secondary actions behind one control: an overflow menu, a dropdown, a split button or a context menu.",required:["id","component","label","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ActionMenu"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"The control's name: 'More actions' for an overflow, or the verb for a dropdown ('Export')"},kind:{enum:["overflow","dropdown","split","context"],default:"overflow",description:"'overflow' is the '\u2026' control; 'dropdown' is a labelled button that opens the menu; 'split' pairs a primary action with a menu of alternatives; 'context' opens on right-click or long-press of the component it belongs to"},children:{$ref:"#/$defs/ChildList",description:"The Actions in the menu, in order; a danger-toned one goes last and is separated"},primary:{$ref:"#/$defs/Id",description:"For 'split': the Action that runs when the main part is pressed"}},additionalProperties:!1};function lt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=lt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.children===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(qs.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="ActionMenu"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"ActionMenu"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.kind!==void 0){let a=t.kind;if(!(a==="overflow"||a==="dropdown"||a==="split"||a==="context")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:qs.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length)),t.primary!==void 0){let a=t.primary;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/primary",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/primary",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return lt.errors=e,o===0}lt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Ds={type:"object",description:"The bar at the top of the product: brand or title, a leading action, search, trailing actions and the account.",required:["id","component","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"AppBar"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"The product's name, or the current screen's title on compact layouts"},brand:{$ref:"#/$defs/DynamicString",description:"A media reference for the logo, or initials; rendered before the title"},leading:{$ref:"#/$defs/Id",description:"An Action at the start: back, or the menu button the renderer adds itself when the navigation is a drawer"},search:{$ref:"#/$defs/Id",description:"A TextInput of kind 'search' (or a command palette opener: an Action with a shortcut)"},actions:{$ref:"#/$defs/Id",description:"An ActionBar at the end: notifications, help, the primary action of the product"},account:{$ref:"#/$defs/Id",description:"An Identity (the signed-in person) or an ActionMenu opened from it"},variant:{enum:["standard","large","compact"],default:"standard",description:"'large' puts the title under the bar on its own line on wide screens; 'compact' is 48px for dense tools"},sticky:{type:"boolean",default:!0}},additionalProperties:!1};function ct(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=ct.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.title===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Ds.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="AppBar"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"AppBar"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.title!==void 0&&(g(t.title,{instancePath:r+"/title",parentData:t,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.brand!==void 0&&(g(t.brand,{instancePath:r+"/brand",parentData:t,parentDataProperty:"brand",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.leading!==void 0){let a=t.leading;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/leading",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/leading",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.search!==void 0){let a=t.search;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/search",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/search",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.actions!==void 0){let a=t.actions;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/actions",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/actions",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.account!==void 0){let a=t.account;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/account",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/account",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.variant!==void 0){let a=t.variant;if(!(a==="standard"||a==="large"||a==="compact")){let i={instancePath:r+"/variant",schemaPath:"#/properties/variant/enum",keyword:"enum",params:{allowedValues:Ds.properties.variant.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.sticky!==void 0&&typeof t.sticky!="boolean"){let a={instancePath:r+"/sticky",schemaPath:"#/properties/sticky/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return ct.errors=e,o===0}ct.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Wn={type:"object",description:"One self-contained entity (an account, an order, a place), optionally actionable as a whole.",required:["id","component","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Card"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Name of the entity"},subtitle:{$ref:"#/$defs/DynamicString"},media:{$ref:"#/$defs/Id",description:"Optional Media component id"},badge:{type:"object",required:["text"],properties:{text:{$ref:"#/$defs/DynamicString"},tone:{$ref:"#/$defs/Tone"}},additionalProperties:!1},children:{$ref:"#/$defs/ChildList"},action:{$ref:"#/$defs/Action",description:"Activating the card as a whole (e.g. open details)"},progress:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding",description:"Number from 0 to 1 in host data"},label:{$ref:"#/$defs/DynamicString",description:"Optional text, e.g. '120 of 320 pages'; the percentage is shown otherwise"}},additionalProperties:!1,description:"Progress through the entity (reading, a course, a goal)"}},additionalProperties:!1};function ut(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=ut.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.title===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Wn.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Card"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Card"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.title!==void 0&&(g(t.title,{instancePath:r+"/title",parentData:t,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.subtitle!==void 0&&(g(t.subtitle,{instancePath:r+"/subtitle",parentData:t,parentDataProperty:"subtitle",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.media!==void 0){let a=t.media;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/media",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/media",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.badge!==void 0){let a=t.badge;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){let i={instancePath:r+"/badge",schemaPath:"#/properties/badge/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!(i==="text"||i==="tone")){let u={instancePath:r+"/badge",schemaPath:"#/properties/badge/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}if(a.text!==void 0&&(g(a.text,{instancePath:r+"/badge/text",parentData:a,parentDataProperty:"text",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),a.tone!==void 0){let i=a.tone;if(!(i==="neutral"||i==="info"||i==="success"||i==="warning"||i==="danger")){let u={instancePath:r+"/badge/tone",schemaPath:"#/$defs/Tone/enum",keyword:"enum",params:{allowedValues:cr.enum},message:"must be equal to one of the allowed values"};e===null?e=[u]:e.push(u),o++}}}else{let i={instancePath:r+"/badge",schemaPath:"#/properties/badge/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}if(t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length)),t.action!==void 0&&(Z(t.action,{instancePath:r+"/action",parentData:t,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length)),t.progress!==void 0){let a=t.progress;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.value===void 0){let i={instancePath:r+"/progress",schemaPath:"#/properties/progress/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!(i==="value"||i==="label")){let u={instancePath:r+"/progress",schemaPath:"#/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}a.value!==void 0&&(q(a.value,{instancePath:r+"/progress/value",parentData:a,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),a.label!==void 0&&(g(a.label,{instancePath:r+"/progress/label",parentData:a,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let i={instancePath:r+"/progress",schemaPath:"#/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return ut.errors=e,o===0}ut.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Ts={type:"object",description:"A visual summary of data, always paired with a text summary.",required:["id","component","intent","data","title","summary","x","series"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Chart"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},intent:{enum:["trend","comparison","composition","distribution","relationship","flow","hierarchy","matrix","range"],description:"What the chart should communicate; the renderer picks the chart type. 'relationship' between two measures; 'flow' of amounts from each x value into the series; 'hierarchy' of parts by size; 'matrix' of x values against series; 'range' from the first series to the second"},data:{$ref:"#/$defs/Binding",description:"Array of data points in host data"},title:{$ref:"#/$defs/DynamicString"},summary:{$ref:"#/$defs/DynamicString",description:"Text alternative stating the takeaway (required)"},x:{type:"object",required:["path","label"],properties:{path:{$ref:"#/$defs/Path"},label:{$ref:"#/$defs/DynamicString"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1},series:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["path","label"],properties:{key:{$ref:"#/$defs/Key"},path:{$ref:"#/$defs/Path"},label:{$ref:"#/$defs/DynamicString"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1}}},additionalProperties:!1},Gn={type:"object",required:["type"],properties:{type:{enum:["text","number","currency","percent","date","time","datetime","relativeTime","duration","color","bytes"]},currency:{$ref:"#/$defs/DynamicString",description:"ISO 4217 code, required for type 'currency'"},precision:{type:"integer",minimum:0,maximum:6}},additionalProperties:!1,description:"How to present a value. The renderer localizes it; the model never pre-formats numbers or dates into strings."};function ee(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=ee.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="type"||a==="currency"||a==="precision")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.type!==void 0){let a=t.type;if(!(a==="text"||a==="number"||a==="currency"||a==="percent"||a==="date"||a==="time"||a==="datetime"||a==="relativeTime"||a==="duration"||a==="color"||a==="bytes")){let i={instancePath:r+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Gn.properties.type.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.currency!==void 0&&(g(t.currency,{instancePath:r+"/currency",parentData:t,parentDataProperty:"currency",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.precision!==void 0){let a=t.precision;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a))){let i={instancePath:r+"/precision",schemaPath:"#/properties/precision/type",keyword:"type",params:{type:"integer"},message:"must be integer"};e===null?e=[i]:e.push(i),o++}if(typeof a=="number"){if(a>6||isNaN(a)){let i={instancePath:r+"/precision",schemaPath:"#/properties/precision/maximum",keyword:"maximum",params:{comparison:"<=",limit:6},message:"must be <= 6"};e===null?e=[i]:e.push(i),o++}if(a<0||isNaN(a)){let i={instancePath:r+"/precision",schemaPath:"#/properties/precision/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};e===null?e=[i]:e.push(i),o++}}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return ee.errors=e,o===0}ee.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function ft(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=ft.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.intent===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"intent"},message:"must have required property 'intent'"};e===null?e=[a]:e.push(a),o++}if(t.data===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"data"},message:"must have required property 'data'"};e===null?e=[a]:e.push(a),o++}if(t.title===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[a]:e.push(a),o++}if(t.summary===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"summary"},message:"must have required property 'summary'"};e===null?e=[a]:e.push(a),o++}if(t.x===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"x"},message:"must have required property 'x'"};e===null?e=[a]:e.push(a),o++}if(t.series===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"series"},message:"must have required property 'series'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Ts.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Chart"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Chart"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.intent!==void 0){let a=t.intent;if(!(a==="trend"||a==="comparison"||a==="composition"||a==="distribution"||a==="relationship"||a==="flow"||a==="hierarchy"||a==="matrix"||a==="range")){let i={instancePath:r+"/intent",schemaPath:"#/properties/intent/enum",keyword:"enum",params:{allowedValues:Ts.properties.intent.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.data!==void 0&&(q(t.data,{instancePath:r+"/data",parentData:t,parentDataProperty:"data",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.title!==void 0&&(g(t.title,{instancePath:r+"/title",parentData:t,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.summary!==void 0&&(g(t.summary,{instancePath:r+"/summary",parentData:t,parentDataProperty:"summary",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.x!==void 0){let a=t.x;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.path===void 0){let i={instancePath:r+"/x",schemaPath:"#/properties/x/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};e===null?e=[i]:e.push(i),o++}if(a.label===void 0){let i={instancePath:r+"/x",schemaPath:"#/properties/x/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!(i==="path"||i==="label"||i==="format")){let u={instancePath:r+"/x",schemaPath:"#/properties/x/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}if(a.path!==void 0){let i=a.path;if(typeof i=="string"){if(!ae.test(i)){let u={instancePath:r+"/x/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/x/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[u]:e.push(u),o++}}a.label!==void 0&&(g(a.label,{instancePath:r+"/x/label",parentData:a,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),a.format!==void 0&&(ee(a.format,{instancePath:r+"/x/format",parentData:a,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length))}else{let i={instancePath:r+"/x",schemaPath:"#/properties/x/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}if(t.series!==void 0){let a=t.series;if(Array.isArray(a)){if(a.length>6){let u={instancePath:r+"/series",schemaPath:"#/properties/series/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items"};e===null?e=[u]:e.push(u),o++}if(a.length<1){let u={instancePath:r+"/series",schemaPath:"#/properties/series/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.path===void 0){let m={instancePath:r+"/series/"+u,schemaPath:"#/properties/series/items/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};e===null?e=[m]:e.push(m),o++}if(f.label===void 0){let m={instancePath:r+"/series/"+u,schemaPath:"#/properties/series/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!(m==="key"||m==="path"||m==="label"||m==="format")){let x={instancePath:r+"/series/"+u,schemaPath:"#/properties/series/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.key!==void 0){let m=f.key;if(typeof m=="string"){if(!K.test(m)){let x={instancePath:r+"/series/"+u+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/series/"+u+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.path!==void 0){let m=f.path;if(typeof m=="string"){if(!ae.test(m)){let x={instancePath:r+"/series/"+u+"/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/series/"+u+"/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}f.label!==void 0&&(g(f.label,{instancePath:r+"/series/"+u+"/label",parentData:f,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.format!==void 0&&(ee(f.format,{instancePath:r+"/series/"+u+"/format",parentData:f,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length))}else{let m={instancePath:r+"/series/"+u,schemaPath:"#/properties/series/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/series",schemaPath:"#/properties/series/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return ft.errors=e,o===0}ft.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Ns={type:"object",description:"Pick one or several options from a known set. The renderer chooses the control.",required:["id","component","label","options","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Choice"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},options:{$ref:"#/$defs/Options"},value:{$ref:"#/$defs/Binding",description:"Two-way binding into host data"},mode:{enum:["single","multiple"],default:"single"},help:{$ref:"#/$defs/DynamicString"},required:{type:"boolean",default:!1}},additionalProperties:!1},Yn={oneOf:[{type:"array",minItems:2,items:{type:"object",required:["value","label"],properties:{value:{type:["string","number","boolean"]},label:{$ref:"#/$defs/DynamicString"},description:{$ref:"#/$defs/DynamicString"}},additionalProperties:!1}},{type:"object",required:["path","valuePath","labelPath"],properties:{path:{$ref:"#/$defs/Path"},valuePath:{$ref:"#/$defs/Path"},labelPath:{$ref:"#/$defs/Path"},descriptionPath:{$ref:"#/$defs/Path"},avatarPath:{$ref:"#/$defs/Path",description:"Initials or a media reference per option: renders people and places with a face"},imagePath:{$ref:"#/$defs/Path"},recentPath:{$ref:"#/$defs/Path",description:"Boolean per option: shown in a 'Recent' row above the full list"}},additionalProperties:!1}],description:"Either a fixed list, or options read from host data"};function ve(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=ve.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);let a=o,i=!1,u=null,f=o;if(Array.isArray(t)){if(t.length<2){let w={instancePath:r,schemaPath:"#/oneOf/0/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};e===null?e=[w]:e.push(w),o++}let b=t.length;for(let w=0;w<b;w++){let T=t[w];if(T&&typeof T=="object"&&!Array.isArray(T)){if(T.value===void 0){let A={instancePath:r+"/"+w,schemaPath:"#/oneOf/0/items/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[A]:e.push(A),o++}if(T.label===void 0){let A={instancePath:r+"/"+w,schemaPath:"#/oneOf/0/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[A]:e.push(A),o++}for(let A in T)if(!(A==="value"||A==="label"||A==="description")){let R={instancePath:r+"/"+w,schemaPath:"#/oneOf/0/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:A},message:"must NOT have additional properties"};e===null?e=[R]:e.push(R),o++}if(T.value!==void 0){let A=T.value;if(typeof A!="string"&&typeof A!="number"&&typeof A!="boolean"){let R={instancePath:r+"/"+w+"/value",schemaPath:"#/oneOf/0/items/properties/value/type",keyword:"type",params:{type:Yn.oneOf[0].items.properties.value.type},message:"must be string,number,boolean"};e===null?e=[R]:e.push(R),o++}}T.label!==void 0&&(g(T.label,{instancePath:r+"/"+w+"/label",parentData:T,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),T.description!==void 0&&(g(T.description,{instancePath:r+"/"+w+"/description",parentData:T,parentDataProperty:"description",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let A={instancePath:r+"/"+w,schemaPath:"#/oneOf/0/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[A]:e.push(A),o++}}}else{let b={instancePath:r,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[b]:e.push(b),o++}var y=f===o;if(y){i=!0,u=0;var m=!0}let x=o;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.path===void 0){let b={instancePath:r,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};e===null?e=[b]:e.push(b),o++}if(t.valuePath===void 0){let b={instancePath:r,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"valuePath"},message:"must have required property 'valuePath'"};e===null?e=[b]:e.push(b),o++}if(t.labelPath===void 0){let b={instancePath:r,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"labelPath"},message:"must have required property 'labelPath'"};e===null?e=[b]:e.push(b),o++}for(let b in t)if(!(b==="path"||b==="valuePath"||b==="labelPath"||b==="descriptionPath"||b==="avatarPath"||b==="imagePath"||b==="recentPath")){let w={instancePath:r,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"};e===null?e=[w]:e.push(w),o++}if(t.path!==void 0){let b=t.path;if(typeof b=="string"){if(!ae.test(b)){let w={instancePath:r+"/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[w]:e.push(w),o++}}else{let w={instancePath:r+"/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[w]:e.push(w),o++}}if(t.valuePath!==void 0){let b=t.valuePath;if(typeof b=="string"){if(!ae.test(b)){let w={instancePath:r+"/valuePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[w]:e.push(w),o++}}else{let w={instancePath:r+"/valuePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[w]:e.push(w),o++}}if(t.labelPath!==void 0){let b=t.labelPath;if(typeof b=="string"){if(!ae.test(b)){let w={instancePath:r+"/labelPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[w]:e.push(w),o++}}else{let w={instancePath:r+"/labelPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[w]:e.push(w),o++}}if(t.descriptionPath!==void 0){let b=t.descriptionPath;if(typeof b=="string"){if(!ae.test(b)){let w={instancePath:r+"/descriptionPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[w]:e.push(w),o++}}else{let w={instancePath:r+"/descriptionPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[w]:e.push(w),o++}}if(t.avatarPath!==void 0){let b=t.avatarPath;if(typeof b=="string"){if(!ae.test(b)){let w={instancePath:r+"/avatarPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[w]:e.push(w),o++}}else{let w={instancePath:r+"/avatarPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[w]:e.push(w),o++}}if(t.imagePath!==void 0){let b=t.imagePath;if(typeof b=="string"){if(!ae.test(b)){let w={instancePath:r+"/imagePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[w]:e.push(w),o++}}else{let w={instancePath:r+"/imagePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[w]:e.push(w),o++}}if(t.recentPath!==void 0){let b=t.recentPath;if(typeof b=="string"){if(!ae.test(b)){let w={instancePath:r+"/recentPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[w]:e.push(w),o++}}else{let w={instancePath:r+"/recentPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[w]:e.push(w),o++}}}else{let b={instancePath:r,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[b]:e.push(b),o++}var y=x===o;if(y&&i)i=!1,u=[u,1];else if(y){i=!0,u=1;var h=!0}if(i)o=a,e!==null&&(a?e.length=a:e=null);else{let b={instancePath:r,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:u},message:"must match exactly one schema in oneOf"};e===null?e=[b]:e.push(b),o++}return ve.errors=e,c.props=h,c.items=m,o===0}ve.evaluated={dynamicProps:!0,dynamicItems:!0};function mt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=mt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.options===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"options"},message:"must have required property 'options'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Ns.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Choice"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Choice"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.options!==void 0&&(ve(t.options,{instancePath:r+"/options",parentData:t,parentDataProperty:"options",rootData:n,dynamicAnchors:d})||(e=e===null?ve.errors:e.concat(ve.errors),o=e.length)),t.value!==void 0&&(q(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.mode!==void 0){let a=t.mode;if(!(a==="single"||a==="multiple")){let i={instancePath:r+"/mode",schemaPath:"#/properties/mode/enum",keyword:"enum",params:{allowedValues:Ns.properties.mode.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.help!==void 0&&(g(t.help,{instancePath:r+"/help",parentData:t,parentDataProperty:"help",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.required!==void 0&&typeof t.required!="boolean"){let a={instancePath:r+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return mt.errors=e,o===0}mt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Jn={type:"object",description:"Code, a command or preformatted text, shown as written and copyable.",required:["id","component","text"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Code"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},text:{$ref:"#/$defs/DynamicString",description:"The code itself, usually bound to host data (an API key, a command, a snippet)"},label:{$ref:"#/$defs/DynamicString",description:"What it is, shown above: 'Install', 'Your API key'"},language:{type:"string",description:"A language name for highlighting, when the renderer has it: 'bash', 'json', 'ts'"},copyable:{type:"boolean",default:!0,description:"A Copy control beside it"},wrap:{type:"boolean",default:!1,description:"Wrap long lines instead of scrolling sideways"},secret:{$ref:"#/$defs/DynamicBoolean",default:!1,description:"Masked until revealed: a key shown once"}},additionalProperties:!1};function xt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=xt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.text===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Jn.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Code"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Code"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.text!==void 0&&(g(t.text,{instancePath:r+"/text",parentData:t,parentDataProperty:"text",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.language!==void 0&&typeof t.language!="string"){let a={instancePath:r+"/language",schemaPath:"#/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[a]:e.push(a),o++}if(t.copyable!==void 0&&typeof t.copyable!="boolean"){let a={instancePath:r+"/copyable",schemaPath:"#/properties/copyable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}if(t.wrap!==void 0&&typeof t.wrap!="boolean"){let a={instancePath:r+"/wrap",schemaPath:"#/properties/wrap/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}t.secret!==void 0&&(z(t.secret,{instancePath:r+"/secret",parentData:t,parentDataProperty:"secret",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return xt.errors=e,o===0}xt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Ms={type:"object",description:"A one-time code or PIN, typed into one box per character.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"CodeInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"'Enter the code we emailed you'"},value:{$ref:"#/$defs/Binding",description:"The code so far in host data, as a string"},length:{type:"integer",minimum:4,maximum:12,default:6},kind:{enum:["numeric","alphanumeric"],default:"numeric"},help:{$ref:"#/$defs/DynamicString",description:"Where the code came from and how long it lasts"},required:{$ref:"#/$defs/DynamicBoolean",default:!0},action:{$ref:"#/$defs/Action",description:"Runs when every character is in, so the person needn't press a button; context binds to value"}},additionalProperties:!1};function gt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=gt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Ms.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="CodeInput"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"CodeInput"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(q(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.length!==void 0){let a=t.length;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a))){let i={instancePath:r+"/length",schemaPath:"#/properties/length/type",keyword:"type",params:{type:"integer"},message:"must be integer"};e===null?e=[i]:e.push(i),o++}if(typeof a=="number"){if(a>12||isNaN(a)){let i={instancePath:r+"/length",schemaPath:"#/properties/length/maximum",keyword:"maximum",params:{comparison:"<=",limit:12},message:"must be <= 12"};e===null?e=[i]:e.push(i),o++}if(a<4||isNaN(a)){let i={instancePath:r+"/length",schemaPath:"#/properties/length/minimum",keyword:"minimum",params:{comparison:">=",limit:4},message:"must be >= 4"};e===null?e=[i]:e.push(i),o++}}}if(t.kind!==void 0){let a=t.kind;if(!(a==="numeric"||a==="alphanumeric")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Ms.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}t.help!==void 0&&(g(t.help,{instancePath:r+"/help",parentData:t,parentDataProperty:"help",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.required!==void 0&&(z(t.required,{instancePath:r+"/required",parentData:t,parentDataProperty:"required",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.action!==void 0&&(Z(t.action,{instancePath:r+"/action",parentData:t,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return gt.errors=e,o===0}gt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Ho={type:"object",description:"A list of items from host data, each rendered with the same template.",required:["id","component","items","label"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Collection"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{$ref:"#/$defs/Template"},label:{$ref:"#/$defs/DynamicString",description:"What the list contains, e.g. 'Recent payments'"},empty:{$ref:"#/$defs/Id",description:"Status component shown when there are no items"},selection:{enum:["none","single","multiple"],default:"none"},selected:{$ref:"#/$defs/Binding",description:"Selected item value(s) in host data when selection is not 'none'"},layout:{enum:["auto","list","grid","timeline","carousel","calendar"],default:"auto",description:"'grid' for visual items (products, books); 'list' for rows; 'timeline' for dated activity; 'carousel' for a row people page through; 'calendar' places items on a month grid by 'datePath'; 'auto' lets the renderer choose from the item template"},datePath:{$ref:"#/$defs/Path",description:"For 'calendar': relative path in each item to the ISO date that places it"},page:{type:"object",properties:{index:{$ref:"#/$defs/Binding",description:"1-based page number in host data"},size:{$ref:"#/$defs/Binding"},total:{$ref:"#/$defs/Binding",description:"Total number of items, all pages"},action:{$ref:"#/$defs/Action",description:"Sent when someone changes page or page size"}},additionalProperties:!1,description:"Paging state, owned by the host"},bulkActions:{$ref:"#/$defs/Id",description:"ActionBar shown while items are selected (selection 'multiple')"},reorderable:{type:"boolean",default:!1,description:"People can drag items, or move them with the keyboard, into a new order"},order:{$ref:"#/$defs/Binding",description:"Item values (ids) in the order people put them, written when reorderable"}},additionalProperties:!1};function yt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=yt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.path===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};e===null?e=[a]:e.push(a),o++}if(t.componentId===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"componentId"},message:"must have required property 'componentId'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="path"||a==="componentId")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.path!==void 0){let a=t.path;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.componentId!==void 0){let a=t.componentId;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/componentId",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/componentId",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return yt.errors=e,o===0}yt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function ht(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=ht.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.items===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Ho.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Collection"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Collection"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.items!==void 0&&(yt(t.items,{instancePath:r+"/items",parentData:t,parentDataProperty:"items",rootData:n,dynamicAnchors:d})||(e=e===null?yt.errors:e.concat(yt.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.empty!==void 0){let a=t.empty;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/empty",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/empty",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.selection!==void 0){let a=t.selection;if(!(a==="none"||a==="single"||a==="multiple")){let i={instancePath:r+"/selection",schemaPath:"#/properties/selection/enum",keyword:"enum",params:{allowedValues:Ho.properties.selection.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.selected!==void 0&&(q(t.selected,{instancePath:r+"/selected",parentData:t,parentDataProperty:"selected",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.layout!==void 0){let a=t.layout;if(!(a==="auto"||a==="list"||a==="grid"||a==="timeline"||a==="carousel"||a==="calendar")){let i={instancePath:r+"/layout",schemaPath:"#/properties/layout/enum",keyword:"enum",params:{allowedValues:Ho.properties.layout.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.datePath!==void 0){let a=t.datePath;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/datePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/datePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.page!==void 0){let a=t.page;if(a&&typeof a=="object"&&!Array.isArray(a)){for(let i in a)if(!(i==="index"||i==="size"||i==="total"||i==="action")){let u={instancePath:r+"/page",schemaPath:"#/properties/page/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}a.index!==void 0&&(q(a.index,{instancePath:r+"/page/index",parentData:a,parentDataProperty:"index",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),a.size!==void 0&&(q(a.size,{instancePath:r+"/page/size",parentData:a,parentDataProperty:"size",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),a.total!==void 0&&(q(a.total,{instancePath:r+"/page/total",parentData:a,parentDataProperty:"total",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),a.action!==void 0&&(Z(a.action,{instancePath:r+"/page/action",parentData:a,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length))}else{let i={instancePath:r+"/page",schemaPath:"#/properties/page/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}if(t.bulkActions!==void 0){let a=t.bulkActions;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/bulkActions",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/bulkActions",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.reorderable!==void 0&&typeof t.reorderable!="boolean"){let a={instancePath:r+"/reorderable",schemaPath:"#/properties/reorderable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}t.order!==void 0&&(q(t.order,{instancePath:r+"/order",parentData:t,parentDataProperty:"order",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return ht.errors=e,o===0}ht.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var js={type:"object",description:"Pick a colour: from swatches the host offers, or any colour.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ColorInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"The colour in host data, as CSS text in the chosen format"},swatches:{$ref:"#/$defs/Options",description:"Named colours to pick from (value is the colour, label its name); without them the full picker shows"},format:{enum:["hex","rgb","hsl"],default:"hex"},alpha:{type:"boolean",default:!1,description:"Let the person set opacity too"},help:{$ref:"#/$defs/DynamicString"},required:{$ref:"#/$defs/DynamicBoolean",default:!1}},additionalProperties:!1};function bt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=bt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(js.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="ColorInput"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"ColorInput"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(q(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.swatches!==void 0&&(ve(t.swatches,{instancePath:r+"/swatches",parentData:t,parentDataProperty:"swatches",rootData:n,dynamicAnchors:d})||(e=e===null?ve.errors:e.concat(ve.errors),o=e.length)),t.format!==void 0){let a=t.format;if(!(a==="hex"||a==="rgb"||a==="hsl")){let i={instancePath:r+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:js.properties.format.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.alpha!==void 0&&typeof t.alpha!="boolean"){let a={instancePath:r+"/alpha",schemaPath:"#/properties/alpha/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}t.help!==void 0&&(g(t.help,{instancePath:r+"/help",parentData:t,parentDataProperty:"help",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.required!==void 0&&(z(t.required,{instancePath:r+"/required",parentData:t,parentDataProperty:"required",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return bt.errors=e,o===0}bt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Tr={type:"object",description:"Side-by-side columns that collapse to a stack on compact layouts: a main column with a narrower one beside it, or equal halves.",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Columns"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList",description:"One component per column, in reading order"},layout:{enum:["two-thirds","one-third","halves","thirds","sidebar-start","sidebar-end"],default:"two-thirds",description:"'two-thirds' is a wide first column (GOV.UK's default); 'one-third' the reverse; 'halves' and 'thirds' equal; 'sidebar-*' a fixed 18rem column at that edge"},collapse:{enum:["compact","medium","never"],default:"compact",description:"The width below which the columns stack"},align:{enum:["start","center","stretch"],default:"stretch"}},additionalProperties:!1};function vt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=vt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.children===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Tr.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Columns"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Columns"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length)),t.layout!==void 0){let a=t.layout;if(!(a==="two-thirds"||a==="one-third"||a==="halves"||a==="thirds"||a==="sidebar-start"||a==="sidebar-end")){let i={instancePath:r+"/layout",schemaPath:"#/properties/layout/enum",keyword:"enum",params:{allowedValues:Tr.properties.layout.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.collapse!==void 0){let a=t.collapse;if(!(a==="compact"||a==="medium"||a==="never")){let i={instancePath:r+"/collapse",schemaPath:"#/properties/collapse/enum",keyword:"enum",params:{allowedValues:Tr.properties.collapse.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.align!==void 0){let a=t.align;if(!(a==="start"||a==="center"||a==="stretch")){let i={instancePath:r+"/align",schemaPath:"#/properties/align/enum",keyword:"enum",params:{allowedValues:Tr.properties.align.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return vt.errors=e,o===0}vt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Es={type:"object",description:"Compare a few options across the same attributes, and choose one.",required:["id","component","items","itemTitle","attributes"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Comparison"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{$ref:"#/$defs/Binding",description:"Array of options in host data (2\u20134 recommended)"},itemTitle:{$ref:"#/$defs/Path",description:"Relative path to each item's name"},attributes:{type:"array",minItems:1,maxItems:8,items:{type:"object",required:["key","label","path"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},path:{$ref:"#/$defs/Path"},format:{$ref:"#/$defs/Format"},better:{enum:["higher","lower","none"],default:"none"},group:{$ref:"#/$defs/DynamicString",description:"Heading that groups related attributes (e.g. 'Storage', 'Support')"}},additionalProperties:!1}},choose:{$ref:"#/$defs/ActionSpec",description:"Action per item; context bindings resolve against the item"},recommended:{$ref:"#/$defs/DynamicString",description:"Optional value of the recommended item's title, with a reason in 'summary'"},summary:{$ref:"#/$defs/DynamicString"},recommendedReason:{$ref:"#/$defs/DynamicString",description:"Why the recommended item fits, shown on its badge (one short sentence)"}},additionalProperties:!1};function ce(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=ce.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.action===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"action"},message:"must have required property 'action'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="label"||a==="action")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.action!==void 0&&(Z(t.action,{instancePath:r+"/action",parentData:t,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return ce.errors=e,o===0}ce.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function wt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=wt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.items===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};e===null?e=[a]:e.push(a),o++}if(t.itemTitle===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"itemTitle"},message:"must have required property 'itemTitle'"};e===null?e=[a]:e.push(a),o++}if(t.attributes===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"attributes"},message:"must have required property 'attributes'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Es.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Comparison"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Comparison"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.items!==void 0&&(q(t.items,{instancePath:r+"/items",parentData:t,parentDataProperty:"items",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.itemTitle!==void 0){let a=t.itemTitle;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/itemTitle",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/itemTitle",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.attributes!==void 0){let a=t.attributes;if(Array.isArray(a)){if(a.length>8){let u={instancePath:r+"/attributes",schemaPath:"#/properties/attributes/maxItems",keyword:"maxItems",params:{limit:8},message:"must NOT have more than 8 items"};e===null?e=[u]:e.push(u),o++}if(a.length<1){let u={instancePath:r+"/attributes",schemaPath:"#/properties/attributes/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.key===void 0){let m={instancePath:r+"/attributes/"+u,schemaPath:"#/properties/attributes/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};e===null?e=[m]:e.push(m),o++}if(f.label===void 0){let m={instancePath:r+"/attributes/"+u,schemaPath:"#/properties/attributes/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[m]:e.push(m),o++}if(f.path===void 0){let m={instancePath:r+"/attributes/"+u,schemaPath:"#/properties/attributes/items/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!(m==="key"||m==="label"||m==="path"||m==="format"||m==="better"||m==="group")){let x={instancePath:r+"/attributes/"+u,schemaPath:"#/properties/attributes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.key!==void 0){let m=f.key;if(typeof m=="string"){if(!K.test(m)){let x={instancePath:r+"/attributes/"+u+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/attributes/"+u+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.label!==void 0&&(g(f.label,{instancePath:r+"/attributes/"+u+"/label",parentData:f,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.path!==void 0){let m=f.path;if(typeof m=="string"){if(!ae.test(m)){let x={instancePath:r+"/attributes/"+u+"/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/attributes/"+u+"/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.format!==void 0&&(ee(f.format,{instancePath:r+"/attributes/"+u+"/format",parentData:f,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length)),f.better!==void 0){let m=f.better;if(!(m==="higher"||m==="lower"||m==="none")){let x={instancePath:r+"/attributes/"+u+"/better",schemaPath:"#/properties/attributes/items/properties/better/enum",keyword:"enum",params:{allowedValues:Es.properties.attributes.items.properties.better.enum},message:"must be equal to one of the allowed values"};e===null?e=[x]:e.push(x),o++}}f.group!==void 0&&(g(f.group,{instancePath:r+"/attributes/"+u+"/group",parentData:f,parentDataProperty:"group",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let m={instancePath:r+"/attributes/"+u,schemaPath:"#/properties/attributes/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/attributes",schemaPath:"#/properties/attributes/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}t.choose!==void 0&&(ce(t.choose,{instancePath:r+"/choose",parentData:t,parentDataProperty:"choose",rootData:n,dynamicAnchors:d})||(e=e===null?ce.errors:e.concat(ce.errors),o=e.length)),t.recommended!==void 0&&(g(t.recommended,{instancePath:r+"/recommended",parentData:t,parentDataProperty:"recommended",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.summary!==void 0&&(g(t.summary,{instancePath:r+"/summary",parentData:t,parentDataProperty:"summary",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.recommendedReason!==void 0&&(g(t.recommendedReason,{instancePath:r+"/recommendedReason",parentData:t,parentDataProperty:"recommendedReason",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return wt.errors=e,o===0}wt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Fo={type:"object",description:"Asks the user to confirm a consequential or destructive action, showing what will happen.",required:["id","component","title","severity","confirm"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Confirm"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Question naming the action ('Send \xA3250 to Alex?')"},message:{$ref:"#/$defs/DynamicString"},consequence:{$ref:"#/$defs/DynamicString",description:"What happens and whether it can be undone"},summary:{$ref:"#/$defs/Id",description:"Optional DetailList summarising what is being confirmed"},severity:{enum:["consequential","destructive"]},confirm:{$ref:"#/$defs/ActionSpec"},cancel:{$ref:"#/$defs/ActionSpec",description:"Defaults to 'Cancel' \u2192 ui.dismiss"},typeToConfirm:{$ref:"#/$defs/DynamicString",description:"Text the user must type before confirming (for irreversible, high-impact actions)"},amount:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1,description:"The amount being committed, shown large at the top"},subject:{type:"object",required:["title"],properties:{title:{$ref:"#/$defs/DynamicString"},subtitle:{$ref:"#/$defs/DynamicString"},avatar:{$ref:"#/$defs/DynamicString",description:"Initials, or a media reference in host data"}},additionalProperties:!1,description:"Who or what the action is for, shown with a face or picture"},consequences:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["title"],properties:{title:{$ref:"#/$defs/DynamicString"},detail:{$ref:"#/$defs/DynamicString"},icon:{enum:["lock","trash","clock","tag","info","alert","mail","shield"]}},additionalProperties:!1},description:"What will happen, as a short list (for destructive actions)"}},additionalProperties:!1};function kt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=kt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.title===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[a]:e.push(a),o++}if(t.severity===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"severity"},message:"must have required property 'severity'"};e===null?e=[a]:e.push(a),o++}if(t.confirm===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"confirm"},message:"must have required property 'confirm'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Fo.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Confirm"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Confirm"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.title!==void 0&&(g(t.title,{instancePath:r+"/title",parentData:t,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.message!==void 0&&(g(t.message,{instancePath:r+"/message",parentData:t,parentDataProperty:"message",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.consequence!==void 0&&(g(t.consequence,{instancePath:r+"/consequence",parentData:t,parentDataProperty:"consequence",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.summary!==void 0){let a=t.summary;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/summary",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/summary",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.severity!==void 0){let a=t.severity;if(!(a==="consequential"||a==="destructive")){let i={instancePath:r+"/severity",schemaPath:"#/properties/severity/enum",keyword:"enum",params:{allowedValues:Fo.properties.severity.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.confirm!==void 0&&(ce(t.confirm,{instancePath:r+"/confirm",parentData:t,parentDataProperty:"confirm",rootData:n,dynamicAnchors:d})||(e=e===null?ce.errors:e.concat(ce.errors),o=e.length)),t.cancel!==void 0&&(ce(t.cancel,{instancePath:r+"/cancel",parentData:t,parentDataProperty:"cancel",rootData:n,dynamicAnchors:d})||(e=e===null?ce.errors:e.concat(ce.errors),o=e.length)),t.typeToConfirm!==void 0&&(g(t.typeToConfirm,{instancePath:r+"/typeToConfirm",parentData:t,parentDataProperty:"typeToConfirm",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.amount!==void 0){let a=t.amount;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.value===void 0){let i={instancePath:r+"/amount",schemaPath:"#/properties/amount/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!(i==="value"||i==="format")){let u={instancePath:r+"/amount",schemaPath:"#/properties/amount/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}a.value!==void 0&&(q(a.value,{instancePath:r+"/amount/value",parentData:a,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),a.format!==void 0&&(ee(a.format,{instancePath:r+"/amount/format",parentData:a,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length))}else{let i={instancePath:r+"/amount",schemaPath:"#/properties/amount/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}if(t.subject!==void 0){let a=t.subject;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.title===void 0){let i={instancePath:r+"/subject",schemaPath:"#/properties/subject/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!(i==="title"||i==="subtitle"||i==="avatar")){let u={instancePath:r+"/subject",schemaPath:"#/properties/subject/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}a.title!==void 0&&(g(a.title,{instancePath:r+"/subject/title",parentData:a,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),a.subtitle!==void 0&&(g(a.subtitle,{instancePath:r+"/subject/subtitle",parentData:a,parentDataProperty:"subtitle",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),a.avatar!==void 0&&(g(a.avatar,{instancePath:r+"/subject/avatar",parentData:a,parentDataProperty:"avatar",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let i={instancePath:r+"/subject",schemaPath:"#/properties/subject/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}if(t.consequences!==void 0){let a=t.consequences;if(Array.isArray(a)){if(a.length>6){let u={instancePath:r+"/consequences",schemaPath:"#/properties/consequences/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items"};e===null?e=[u]:e.push(u),o++}if(a.length<1){let u={instancePath:r+"/consequences",schemaPath:"#/properties/consequences/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.title===void 0){let m={instancePath:r+"/consequences/"+u,schemaPath:"#/properties/consequences/items/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!(m==="title"||m==="detail"||m==="icon")){let x={instancePath:r+"/consequences/"+u,schemaPath:"#/properties/consequences/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.title!==void 0&&(g(f.title,{instancePath:r+"/consequences/"+u+"/title",parentData:f,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.detail!==void 0&&(g(f.detail,{instancePath:r+"/consequences/"+u+"/detail",parentData:f,parentDataProperty:"detail",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.icon!==void 0){let m=f.icon;if(!(m==="lock"||m==="trash"||m==="clock"||m==="tag"||m==="info"||m==="alert"||m==="mail"||m==="shield")){let x={instancePath:r+"/consequences/"+u+"/icon",schemaPath:"#/properties/consequences/items/properties/icon/enum",keyword:"enum",params:{allowedValues:Fo.properties.consequences.items.properties.icon.enum},message:"must be equal to one of the allowed values"};e===null?e=[x]:e.push(x),o++}}}else{let m={instancePath:r+"/consequences/"+u,schemaPath:"#/properties/consequences/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/consequences",schemaPath:"#/properties/consequences/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return kt.errors=e,o===0}kt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Xn={type:"object",description:"A slot for a component the host implements itself: a logo, a brand moment, a bespoke widget. The document names it and gives it props; the product renders it, and a fallback stands in when it can't.",required:["id","component","name","fallback"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Custom"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},name:{type:"string",pattern:"^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$",description:"The host's name for the component, namespaced: 'brand.logo', 'store.map'"},props:{type:"object",description:"What the host component takes; values may be bindings",additionalProperties:!0},fallback:{$ref:"#/$defs/Id",description:"What renders when the host has no component of that name: a Text, a Media, a Status. Required, so the document stands on its own"},label:{$ref:"#/$defs/DynamicString",description:"An accessible name for the slot when the host component is decorative or complex"}},additionalProperties:!1},Qn=new RegExp("^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$","u");function $t(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=$t.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.name===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};e===null?e=[a]:e.push(a),o++}if(t.fallback===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"fallback"},message:"must have required property 'fallback'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Xn.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Custom"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Custom"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.name!==void 0){let a=t.name;if(typeof a=="string"){if(!Qn.test(a)){let i={instancePath:r+"/name",schemaPath:"#/properties/name/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$"},message:'must match pattern "^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.props!==void 0){let a=t.props;if(!(a&&typeof a=="object"&&!Array.isArray(a))){let i={instancePath:r+"/props",schemaPath:"#/properties/props/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}if(t.fallback!==void 0){let a=t.fallback;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/fallback",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/fallback",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return $t.errors=e,o===0}$t.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Rs={type:"object",description:"A date, time, date-time or date range.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"DateInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"ISO 8601 value(s) in host data"},kind:{enum:["date","time","datetime","dateRange","month","year"],default:"date",description:"'month' stores YYYY-MM and 'year' stores YYYY"},multiple:{type:"boolean",default:!1,description:"Several dates rather than one; the value is a list"},min:{$ref:"#/$defs/DynamicString"},max:{$ref:"#/$defs/DynamicString"},help:{$ref:"#/$defs/DynamicString"},required:{type:"boolean",default:!1}},additionalProperties:!1};function Pt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Pt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Rs.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="DateInput"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"DateInput"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(q(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.kind!==void 0){let a=t.kind;if(!(a==="date"||a==="time"||a==="datetime"||a==="dateRange"||a==="month"||a==="year")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Rs.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.multiple!==void 0&&typeof t.multiple!="boolean"){let a={instancePath:r+"/multiple",schemaPath:"#/properties/multiple/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}if(t.min!==void 0&&(g(t.min,{instancePath:r+"/min",parentData:t,parentDataProperty:"min",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.max!==void 0&&(g(t.max,{instancePath:r+"/max",parentData:t,parentDataProperty:"max",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.help!==void 0&&(g(t.help,{instancePath:r+"/help",parentData:t,parentDataProperty:"help",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.required!==void 0&&typeof t.required!="boolean"){let a={instancePath:r+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Pt.errors=e,o===0}Pt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Uo={type:"object",description:"Label/value pairs describing one thing (a summary, a receipt, a review step).",required:["id","component","items"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"DetailList"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{type:"array",minItems:1,items:{type:"object",required:["label","value"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/DynamicValue"},format:{$ref:"#/$defs/Format"},total:{type:"boolean",description:"The total row of a receipt, shown emphasised after a divider"}},additionalProperties:!1}},title:{$ref:"#/$defs/DynamicString"},variant:{enum:["default","receipt"],default:"default",description:"'receipt' for money: values right-aligned in tabular figures, with an optional total row"},layout:{enum:["rows","grid"],default:"rows",description:"'grid' packs many short fields into columns (record pages); 'rows' keeps one per line"},rowAction:{$ref:"#/$defs/Action",description:"Offered per row as a 'Change' link named after the row (GOV.UK summary list); the row's key is sent as 'key' with the context"}},additionalProperties:!1};function St(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=St.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.items===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Uo.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="DetailList"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"DetailList"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.items!==void 0){let a=t.items;if(Array.isArray(a)){if(a.length<1){let u={instancePath:r+"/items",schemaPath:"#/properties/items/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.label===void 0){let m={instancePath:r+"/items/"+u,schemaPath:"#/properties/items/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[m]:e.push(m),o++}if(f.value===void 0){let m={instancePath:r+"/items/"+u,schemaPath:"#/properties/items/items/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!(m==="key"||m==="label"||m==="value"||m==="format"||m==="total")){let x={instancePath:r+"/items/"+u,schemaPath:"#/properties/items/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.key!==void 0){let m=f.key;if(typeof m=="string"){if(!K.test(m)){let x={instancePath:r+"/items/"+u+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/items/"+u+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.label!==void 0&&(g(f.label,{instancePath:r+"/items/"+u+"/label",parentData:f,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.value!==void 0&&(Me(f.value,{instancePath:r+"/items/"+u+"/value",parentData:f,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?Me.errors:e.concat(Me.errors),o=e.length)),f.format!==void 0&&(ee(f.format,{instancePath:r+"/items/"+u+"/format",parentData:f,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length)),f.total!==void 0&&typeof f.total!="boolean"){let m={instancePath:r+"/items/"+u+"/total",schemaPath:"#/properties/items/items/properties/total/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[m]:e.push(m),o++}}else{let m={instancePath:r+"/items/"+u,schemaPath:"#/properties/items/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}if(t.title!==void 0&&(g(t.title,{instancePath:r+"/title",parentData:t,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.variant!==void 0){let a=t.variant;if(!(a==="default"||a==="receipt")){let i={instancePath:r+"/variant",schemaPath:"#/properties/variant/enum",keyword:"enum",params:{allowedValues:Uo.properties.variant.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.layout!==void 0){let a=t.layout;if(!(a==="rows"||a==="grid")){let i={instancePath:r+"/layout",schemaPath:"#/properties/layout/enum",keyword:"enum",params:{allowedValues:Uo.properties.layout.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}t.rowAction!==void 0&&(Z(t.rowAction,{instancePath:r+"/rowAction",parentData:t,parentDataProperty:"rowAction",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return St.errors=e,o===0}St.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function zt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=zt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.summary===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"summary"},message:"must have required property 'summary'"};e===null?e=[a]:e.push(a),o++}if(t.children===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="id"||a==="component"||a==="key"||a==="accessibility"||a==="visible"||a==="summary"||a==="children"||a==="open")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Disclosure"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Disclosure"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.summary!==void 0&&(g(t.summary,{instancePath:r+"/summary",parentData:t,parentDataProperty:"summary",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length)),t.open!==void 0&&typeof t.open!="boolean"){let a={instancePath:r+"/open",schemaPath:"#/properties/open/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return zt.errors=e,o===0}zt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var ed={type:"object",description:"Choose or drop files to attach or upload.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"FileInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"The chosen files in host data: a list of { name, size, type, ref }, written by the renderer; the host uploads them"},accept:{type:"array",items:{type:"string"},description:"Allowed types as extensions or MIME types: ['.pdf', 'image/*']"},multiple:{type:"boolean",default:!1},maxSize:{type:"integer",minimum:1,description:"Largest file, in bytes; the renderer refuses larger ones with a message"},help:{$ref:"#/$defs/DynamicString",description:"What to attach and why; the accepted types and size are said by the renderer"},required:{$ref:"#/$defs/DynamicBoolean",default:!1}},additionalProperties:!1};function At(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=At.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(ed.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="FileInput"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"FileInput"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(q(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.accept!==void 0){let a=t.accept;if(Array.isArray(a)){let i=a.length;for(let u=0;u<i;u++)if(typeof a[u]!="string"){let f={instancePath:r+"/accept/"+u,schemaPath:"#/properties/accept/items/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[f]:e.push(f),o++}}else{let i={instancePath:r+"/accept",schemaPath:"#/properties/accept/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}if(t.multiple!==void 0&&typeof t.multiple!="boolean"){let a={instancePath:r+"/multiple",schemaPath:"#/properties/multiple/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}if(t.maxSize!==void 0){let a=t.maxSize;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a))){let i={instancePath:r+"/maxSize",schemaPath:"#/properties/maxSize/type",keyword:"type",params:{type:"integer"},message:"must be integer"};e===null?e=[i]:e.push(i),o++}if(typeof a=="number"&&(a<1||isNaN(a))){let i={instancePath:r+"/maxSize",schemaPath:"#/properties/maxSize/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};e===null?e=[i]:e.push(i),o++}}t.help!==void 0&&(g(t.help,{instancePath:r+"/help",parentData:t,parentDataProperty:"help",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.required!==void 0&&(z(t.required,{instancePath:r+"/required",parentData:t,parentDataProperty:"required",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return At.errors=e,o===0}At.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var td={type:"object",description:"Filters for a list of results, with the result count.",required:["id","component","children","results"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"FilterPanel"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Defaults to 'Filters'"},children:{$ref:"#/$defs/ChildList",description:"The filter inputs (Choice, RangeInput, Toggle, DateInput, TextInput)"},results:{$ref:"#/$defs/Id",description:"The Collection or Table the filters narrow"},resultCount:{$ref:"#/$defs/Binding",description:"Number of results with the current filters, from host data"},clear:{$ref:"#/$defs/Action",description:"Optional action that resets the filters on the host"}},additionalProperties:!1};function It(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=It.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.children===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};e===null?e=[a]:e.push(a),o++}if(t.results===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"results"},message:"must have required property 'results'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(td.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="FilterPanel"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"FilterPanel"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length)),t.results!==void 0){let a=t.results;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/results",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/results",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}t.resultCount!==void 0&&(q(t.resultCount,{instancePath:r+"/resultCount",parentData:t,parentDataProperty:"resultCount",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.clear!==void 0&&(Z(t.clear,{instancePath:r+"/clear",parentData:t,parentDataProperty:"clear",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return It.errors=e,o===0}It.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Ct(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Ct.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.legal===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"legal"},message:"must have required property 'legal'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="id"||a==="component"||a==="key"||a==="accessibility"||a==="visible"||a==="groups"||a==="legal"||a==="aside")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Footer"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Footer"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.groups!==void 0){let a=t.groups;if(Array.isArray(a)){if(a.length>6){let u={instancePath:r+"/groups",schemaPath:"#/properties/groups/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items"};e===null?e=[u]:e.push(u),o++}if(a.length<1){let u={instancePath:r+"/groups",schemaPath:"#/properties/groups/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.key===void 0){let m={instancePath:r+"/groups/"+u,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};e===null?e=[m]:e.push(m),o++}if(f.label===void 0){let m={instancePath:r+"/groups/"+u,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[m]:e.push(m),o++}if(f.items===void 0){let m={instancePath:r+"/groups/"+u,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!(m==="key"||m==="label"||m==="items")){let x={instancePath:r+"/groups/"+u,schemaPath:"#/properties/groups/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.key!==void 0){let m=f.key;if(typeof m=="string"){if(!K.test(m)){let x={instancePath:r+"/groups/"+u+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/groups/"+u+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.label!==void 0&&(g(f.label,{instancePath:r+"/groups/"+u+"/label",parentData:f,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.items!==void 0){let m=f.items;if(Array.isArray(m)){if(m.length>12){let y={instancePath:r+"/groups/"+u+"/items",schemaPath:"#/properties/groups/items/properties/items/maxItems",keyword:"maxItems",params:{limit:12},message:"must NOT have more than 12 items"};e===null?e=[y]:e.push(y),o++}if(m.length<1){let y={instancePath:r+"/groups/"+u+"/items",schemaPath:"#/properties/groups/items/properties/items/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};e===null?e=[y]:e.push(y),o++}let x=m.length;for(let y=0;y<x;y++){let h=m[y];if(h&&typeof h=="object"&&!Array.isArray(h)){if(h.key===void 0){let b={instancePath:r+"/groups/"+u+"/items/"+y,schemaPath:"#/properties/groups/items/properties/items/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};e===null?e=[b]:e.push(b),o++}if(h.label===void 0){let b={instancePath:r+"/groups/"+u+"/items/"+y,schemaPath:"#/properties/groups/items/properties/items/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[b]:e.push(b),o++}if(h.action===void 0){let b={instancePath:r+"/groups/"+u+"/items/"+y,schemaPath:"#/properties/groups/items/properties/items/items/required",keyword:"required",params:{missingProperty:"action"},message:"must have required property 'action'"};e===null?e=[b]:e.push(b),o++}for(let b in h)if(!(b==="key"||b==="label"||b==="action")){let w={instancePath:r+"/groups/"+u+"/items/"+y,schemaPath:"#/properties/groups/items/properties/items/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"};e===null?e=[w]:e.push(w),o++}if(h.key!==void 0){let b=h.key;if(typeof b=="string"){if(!K.test(b)){let w={instancePath:r+"/groups/"+u+"/items/"+y+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[w]:e.push(w),o++}}else{let w={instancePath:r+"/groups/"+u+"/items/"+y+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[w]:e.push(w),o++}}h.label!==void 0&&(g(h.label,{instancePath:r+"/groups/"+u+"/items/"+y+"/label",parentData:h,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),h.action!==void 0&&(Z(h.action,{instancePath:r+"/groups/"+u+"/items/"+y+"/action",parentData:h,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length))}else{let b={instancePath:r+"/groups/"+u+"/items/"+y,schemaPath:"#/properties/groups/items/properties/items/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[b]:e.push(b),o++}}}else{let x={instancePath:r+"/groups/"+u+"/items",schemaPath:"#/properties/groups/items/properties/items/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[x]:e.push(x),o++}}}else{let m={instancePath:r+"/groups/"+u,schemaPath:"#/properties/groups/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/groups",schemaPath:"#/properties/groups/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}if(t.legal!==void 0&&(g(t.legal,{instancePath:r+"/legal",parentData:t,parentDataProperty:"legal",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.aside!==void 0){let a=t.aside;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/aside",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/aside",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Ct.errors=e,o===0}Ct.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Bs={type:"object",description:"Collects inputs and submits them together.",required:["id","component","children","submit"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Form"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList"},submit:{$ref:"#/$defs/ActionSpec"},cancel:{$ref:"#/$defs/ActionSpec",description:"Optional; defaults to ui.dismiss when omitted and the surface is dismissible"},aside:{$ref:"#/$defs/Id",description:"Optional summary (DetailList, Card or Group) kept beside the form, e.g. the running total"},layout:{enum:["stacked","horizontal"],default:"stacked",description:"'horizontal' puts label and help on the left and the control on the right (settings pages), on wide surfaces"}},additionalProperties:!1};function qt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=qt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.children===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};e===null?e=[a]:e.push(a),o++}if(t.submit===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"submit"},message:"must have required property 'submit'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Bs.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Form"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Form"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length)),t.submit!==void 0&&(ce(t.submit,{instancePath:r+"/submit",parentData:t,parentDataProperty:"submit",rootData:n,dynamicAnchors:d})||(e=e===null?ce.errors:e.concat(ce.errors),o=e.length)),t.cancel!==void 0&&(ce(t.cancel,{instancePath:r+"/cancel",parentData:t,parentDataProperty:"cancel",rootData:n,dynamicAnchors:d})||(e=e===null?ce.errors:e.concat(ce.errors),o=e.length)),t.aside!==void 0){let a=t.aside;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/aside",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/aside",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.layout!==void 0){let a=t.layout;if(!(a==="stacked"||a==="horizontal")){let i={instancePath:r+"/layout",schemaPath:"#/properties/layout/enum",keyword:"enum",params:{allowedValues:Bs.properties.layout.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return qt.errors=e,o===0}qt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var _s={type:"object",description:"The product's frame: the regions around its screens (header, navigation, main, aside, footer, banner), with an outlet where screens and generated surfaces appear.",required:["id","component","main"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Frame"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},header:{$ref:"#/$defs/Id",description:"An AppBar"},navigation:{$ref:"#/$defs/Id",description:"A Navigation of kind 'main'; its placement decides rail, bar, drawer or side"},main:{$ref:"#/$defs/Id",description:"The outlet: a component the host replaces with the current screen. Usually an Outlet; may be a Group holding a fixed screen"},aside:{$ref:"#/$defs/Id",description:"A secondary column beside main on wide layouts (help, context, activity)"},footer:{$ref:"#/$defs/Id",description:"A Footer"},banner:{$ref:"#/$defs/Id",description:"A Status shown above everything (a phase banner, an outage, a trial ending)"},skipTarget:{type:"boolean",default:!0,description:"The renderer adds a skip link to main"},width:{enum:["full","contained"],default:"contained",description:"'contained' centres main at measure.max \xD7 1.6; 'full' lets dense tools use the whole viewport"}},additionalProperties:!1};function Dt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Dt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.main===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"main"},message:"must have required property 'main'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(_s.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Frame"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Frame"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.header!==void 0){let a=t.header;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/header",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/header",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.navigation!==void 0){let a=t.navigation;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/navigation",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/navigation",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.main!==void 0){let a=t.main;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/main",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/main",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.aside!==void 0){let a=t.aside;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/aside",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/aside",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.footer!==void 0){let a=t.footer;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/footer",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/footer",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.banner!==void 0){let a=t.banner;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/banner",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/banner",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.skipTarget!==void 0&&typeof t.skipTarget!="boolean"){let a={instancePath:r+"/skipTarget",schemaPath:"#/properties/skipTarget/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}if(t.width!==void 0){let a=t.width;if(!(a==="full"||a==="contained")){let i={instancePath:r+"/width",schemaPath:"#/properties/width/enum",keyword:"enum",params:{allowedValues:_s.properties.width.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Dt.errors=e,o===0}Dt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var rd={type:"object",description:"Visually groups closely related items without a heading (proximity).",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Group"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList"},label:{$ref:"#/$defs/DynamicString",description:"Accessible name for the group when it isn't obvious from its content"},arrangement:{enum:["auto","inline","grid"],default:"auto",description:"Hint only. 'inline' for a few short peers (e.g. metrics); renderers stack on narrow screens."}},additionalProperties:!1};function Tt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Tt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.children===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="id"||a==="component"||a==="key"||a==="accessibility"||a==="visible"||a==="children"||a==="label"||a==="arrangement")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Group"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Group"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.arrangement!==void 0){let a=t.arrangement;if(!(a==="auto"||a==="inline"||a==="grid")){let i={instancePath:r+"/arrangement",schemaPath:"#/properties/arrangement/enum",keyword:"enum",params:{allowedValues:rd.properties.arrangement.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Tt.errors=e,o===0}Tt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Oo={type:"object",description:"A person, team or organisation: picture, name and details, or several of them together.",required:["id","component","name"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Identity"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},name:{$ref:"#/$defs/DynamicString",description:"Always bound to host data: a name is never invented"},detail:{$ref:"#/$defs/DynamicString",description:"One line under the name: a role, an email, a team, a status"},image:{$ref:"#/$defs/DynamicString",description:"A media reference from host data, resolved by the host as Media's is; initials from the name are shown without one"},kind:{enum:["person","team","organization"],default:"person",description:"A person's picture is round; a team's or organisation's is square"},size:{enum:["small","default","large"],default:"default"},action:{$ref:"#/$defs/Action",description:"Activating the identity as a whole, e.g. open the person's record"},group:{type:"object",required:["path","namePath"],properties:{path:{$ref:"#/$defs/Path",description:"A list of people in host data, shown as overlapping pictures with a '+N' for the rest"},namePath:{$ref:"#/$defs/Path",description:"Relative to each entry"},imagePath:{$ref:"#/$defs/Path",description:"Relative to each entry"},max:{type:"integer",minimum:1,maximum:8,default:4,description:"Pictures shown before '+N'"}},additionalProperties:!1,description:"Several identities as one element ('Rhea, Tom and 3 others'). name is then the group's accessible summary"}},additionalProperties:!1};function Nt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Nt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.name===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Oo.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Identity"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Identity"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.name!==void 0&&(g(t.name,{instancePath:r+"/name",parentData:t,parentDataProperty:"name",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.detail!==void 0&&(g(t.detail,{instancePath:r+"/detail",parentData:t,parentDataProperty:"detail",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.image!==void 0&&(g(t.image,{instancePath:r+"/image",parentData:t,parentDataProperty:"image",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.kind!==void 0){let a=t.kind;if(!(a==="person"||a==="team"||a==="organization")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Oo.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.size!==void 0){let a=t.size;if(!(a==="small"||a==="default"||a==="large")){let i={instancePath:r+"/size",schemaPath:"#/properties/size/enum",keyword:"enum",params:{allowedValues:Oo.properties.size.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.action!==void 0&&(Z(t.action,{instancePath:r+"/action",parentData:t,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length)),t.group!==void 0){let a=t.group;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.path===void 0){let i={instancePath:r+"/group",schemaPath:"#/properties/group/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};e===null?e=[i]:e.push(i),o++}if(a.namePath===void 0){let i={instancePath:r+"/group",schemaPath:"#/properties/group/required",keyword:"required",params:{missingProperty:"namePath"},message:"must have required property 'namePath'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!(i==="path"||i==="namePath"||i==="imagePath"||i==="max")){let u={instancePath:r+"/group",schemaPath:"#/properties/group/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}if(a.path!==void 0){let i=a.path;if(typeof i=="string"){if(!ae.test(i)){let u={instancePath:r+"/group/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/group/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[u]:e.push(u),o++}}if(a.namePath!==void 0){let i=a.namePath;if(typeof i=="string"){if(!ae.test(i)){let u={instancePath:r+"/group/namePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/group/namePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[u]:e.push(u),o++}}if(a.imagePath!==void 0){let i=a.imagePath;if(typeof i=="string"){if(!ae.test(i)){let u={instancePath:r+"/group/imagePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/group/imagePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[u]:e.push(u),o++}}if(a.max!==void 0){let i=a.max;if(!(typeof i=="number"&&!(i%1)&&!isNaN(i))){let u={instancePath:r+"/group/max",schemaPath:"#/properties/group/properties/max/type",keyword:"type",params:{type:"integer"},message:"must be integer"};e===null?e=[u]:e.push(u),o++}if(typeof i=="number"){if(i>8||isNaN(i)){let u={instancePath:r+"/group/max",schemaPath:"#/properties/group/properties/max/maximum",keyword:"maximum",params:{comparison:"<=",limit:8},message:"must be <= 8"};e===null?e=[u]:e.push(u),o++}if(i<1||isNaN(i)){let u={instancePath:r+"/group/max",schemaPath:"#/properties/group/properties/max/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};e===null?e=[u]:e.push(u),o++}}}}else{let i={instancePath:r+"/group",schemaPath:"#/properties/group/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Nt.errors=e,o===0}Nt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Lo={type:"object",description:"An image, video, audio clip, gallery or QR code supplied by the host.",required:["id","component"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Media"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},src:{$ref:"#/$defs/Binding",description:"Image, video or audio reference in host data; generated UI never contains URLs"},alt:{$ref:"#/$defs/DynamicString",description:"Required unless decorative. For a gallery it names the set; for a QR code it says what the code opens"},decorative:{type:"boolean",default:!1},aspect:{enum:["square","landscape","portrait","auto"],default:"auto"},kind:{enum:["image","video","audio","gallery","qr"],default:"image",description:"'video' and 'audio' play with native controls; 'gallery' is several images from 'items'; 'qr' encodes 'value' as a QR code"},poster:{$ref:"#/$defs/DynamicString",description:"For 'video': media reference for the frame shown before play"},transcript:{$ref:"#/$defs/DynamicString",description:"For 'video' and 'audio': the words, offered under the player"},items:{$ref:"#/$defs/Binding",description:"For 'gallery': array of images in host data"},imagePath:{$ref:"#/$defs/Path",description:"For 'gallery': relative path in each item to its image reference"},altPath:{$ref:"#/$defs/Path",description:"For 'gallery': relative path in each item to its alt text"},value:{$ref:"#/$defs/DynamicString",description:"For 'qr': the text encoded, e.g. a payment link from host data"}},additionalProperties:!1};function Mt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Mt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Lo.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Media"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Media"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.src!==void 0&&(q(t.src,{instancePath:r+"/src",parentData:t,parentDataProperty:"src",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.alt!==void 0&&(g(t.alt,{instancePath:r+"/alt",parentData:t,parentDataProperty:"alt",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.decorative!==void 0&&typeof t.decorative!="boolean"){let a={instancePath:r+"/decorative",schemaPath:"#/properties/decorative/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}if(t.aspect!==void 0){let a=t.aspect;if(!(a==="square"||a==="landscape"||a==="portrait"||a==="auto")){let i={instancePath:r+"/aspect",schemaPath:"#/properties/aspect/enum",keyword:"enum",params:{allowedValues:Lo.properties.aspect.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.kind!==void 0){let a=t.kind;if(!(a==="image"||a==="video"||a==="audio"||a==="gallery"||a==="qr")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Lo.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.poster!==void 0&&(g(t.poster,{instancePath:r+"/poster",parentData:t,parentDataProperty:"poster",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.transcript!==void 0&&(g(t.transcript,{instancePath:r+"/transcript",parentData:t,parentDataProperty:"transcript",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.items!==void 0&&(q(t.items,{instancePath:r+"/items",parentData:t,parentDataProperty:"items",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.imagePath!==void 0){let a=t.imagePath;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/imagePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/imagePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.altPath!==void 0){let a=t.altPath;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/altPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/altPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}t.value!==void 0&&(g(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Mt.errors=e,o===0}Mt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Hs={type:"object",description:"A key figure with a label, and optionally its change.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Metric"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Always bound to host data"},format:{$ref:"#/$defs/Format"},change:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding"},format:{$ref:"#/$defs/Format"},favorable:{enum:["increase","decrease","none"],default:"increase",description:"Which direction is good, so color follows meaning, not sign"}},additionalProperties:!1},caption:{$ref:"#/$defs/DynamicString"}},additionalProperties:!1};function jt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=jt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Hs.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Metric"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Metric"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(q(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.format!==void 0&&(ee(t.format,{instancePath:r+"/format",parentData:t,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length)),t.change!==void 0){let a=t.change;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.value===void 0){let i={instancePath:r+"/change",schemaPath:"#/properties/change/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!(i==="value"||i==="format"||i==="favorable")){let u={instancePath:r+"/change",schemaPath:"#/properties/change/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}if(a.value!==void 0&&(q(a.value,{instancePath:r+"/change/value",parentData:a,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),a.format!==void 0&&(ee(a.format,{instancePath:r+"/change/format",parentData:a,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length)),a.favorable!==void 0){let i=a.favorable;if(!(i==="increase"||i==="decrease"||i==="none")){let u={instancePath:r+"/change/favorable",schemaPath:"#/properties/change/properties/favorable/enum",keyword:"enum",params:{allowedValues:Hs.properties.change.properties.favorable.enum},message:"must be equal to one of the allowed values"};e===null?e=[u]:e.push(u),o++}}}else{let i={instancePath:r+"/change",schemaPath:"#/properties/change/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}t.caption!==void 0&&(g(t.caption,{instancePath:r+"/caption",parentData:t,parentDataProperty:"caption",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return jt.errors=e,o===0}jt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Nr={type:"object",description:"The product's main navigation.",required:["id","component","items","current"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Navigation"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Names the navigation, e.g. 'Main'"},items:{type:"array",minItems:2,maxItems:20,items:{type:"object",required:["key","label","action"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},group:{$ref:"#/$defs/DynamicString",description:"Heading that groups items (e.g. 'Billing')"},icon:{enum:["home","search","inbox","book","tag","clock","shield","lock","mail","settings","chart","people","card","file","orders","products","customers","discounts","analytics","calendar","bell","help","folder","star","grid","layers"]},badge:{$ref:"#/$defs/Binding",description:"Count needing attention, e.g. overdue invoices"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1}},current:{$ref:"#/$defs/Binding",description:"Key of the current item in host data"},kind:{enum:["main","breadcrumb","nested","toc","local"],default:"main",description:"'main' is the product's sections; 'breadcrumb' the ordered trail to here; 'nested' groups that expand; 'toc' the sections of this page (items link to anchors named by their keys); 'local' the sections of one area, as tabs"},placement:{enum:["auto","side","rail","bar","drawer"],default:"auto",description:"For kind 'main' inside a Frame: where it lives. 'auto' is a side column on wide layouts, a rail on medium and a bottom bar (\u2264 5 items) or a drawer on compact; the others fix it"}},additionalProperties:!1};function Et(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Et.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.items===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};e===null?e=[a]:e.push(a),o++}if(t.current===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"current"},message:"must have required property 'current'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Nr.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Navigation"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Navigation"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.items!==void 0){let a=t.items;if(Array.isArray(a)){if(a.length>20){let u={instancePath:r+"/items",schemaPath:"#/properties/items/maxItems",keyword:"maxItems",params:{limit:20},message:"must NOT have more than 20 items"};e===null?e=[u]:e.push(u),o++}if(a.length<2){let u={instancePath:r+"/items",schemaPath:"#/properties/items/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.key===void 0){let m={instancePath:r+"/items/"+u,schemaPath:"#/properties/items/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};e===null?e=[m]:e.push(m),o++}if(f.label===void 0){let m={instancePath:r+"/items/"+u,schemaPath:"#/properties/items/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[m]:e.push(m),o++}if(f.action===void 0){let m={instancePath:r+"/items/"+u,schemaPath:"#/properties/items/items/required",keyword:"required",params:{missingProperty:"action"},message:"must have required property 'action'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!(m==="key"||m==="label"||m==="group"||m==="icon"||m==="badge"||m==="action")){let x={instancePath:r+"/items/"+u,schemaPath:"#/properties/items/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.key!==void 0){let m=f.key;if(typeof m=="string"){if(!K.test(m)){let x={instancePath:r+"/items/"+u+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/items/"+u+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.label!==void 0&&(g(f.label,{instancePath:r+"/items/"+u+"/label",parentData:f,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.group!==void 0&&(g(f.group,{instancePath:r+"/items/"+u+"/group",parentData:f,parentDataProperty:"group",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.icon!==void 0){let m=f.icon;if(!(m==="home"||m==="search"||m==="inbox"||m==="book"||m==="tag"||m==="clock"||m==="shield"||m==="lock"||m==="mail"||m==="settings"||m==="chart"||m==="people"||m==="card"||m==="file"||m==="orders"||m==="products"||m==="customers"||m==="discounts"||m==="analytics"||m==="calendar"||m==="bell"||m==="help"||m==="folder"||m==="star"||m==="grid"||m==="layers")){let x={instancePath:r+"/items/"+u+"/icon",schemaPath:"#/properties/items/items/properties/icon/enum",keyword:"enum",params:{allowedValues:Nr.properties.items.items.properties.icon.enum},message:"must be equal to one of the allowed values"};e===null?e=[x]:e.push(x),o++}}f.badge!==void 0&&(q(f.badge,{instancePath:r+"/items/"+u+"/badge",parentData:f,parentDataProperty:"badge",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),f.action!==void 0&&(Z(f.action,{instancePath:r+"/items/"+u+"/action",parentData:f,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length))}else{let m={instancePath:r+"/items/"+u,schemaPath:"#/properties/items/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}if(t.current!==void 0&&(q(t.current,{instancePath:r+"/current",parentData:t,parentDataProperty:"current",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.kind!==void 0){let a=t.kind;if(!(a==="main"||a==="breadcrumb"||a==="nested"||a==="toc"||a==="local")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Nr.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.placement!==void 0){let a=t.placement;if(!(a==="auto"||a==="side"||a==="rail"||a==="bar"||a==="drawer")){let i={instancePath:r+"/placement",schemaPath:"#/properties/placement/enum",keyword:"enum",params:{allowedValues:Nr.properties.placement.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Et.errors=e,o===0}Et.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Rt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Rt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="id"||a==="component"||a==="key"||a==="accessibility"||a==="visible"||a==="label"||a==="loading")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Outlet"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Outlet"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.loading!==void 0){let a=t.loading;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/loading",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/loading",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Rt.errors=e,o===0}Rt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Vo={type:"object",description:"Content over the current view: a dialog, a drawer, a bottom sheet or a popover, opened from an action and dismissed to return.",required:["id","component","title","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Panel"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},kind:{enum:["dialog","drawer","sheet","popover"],default:"dialog",description:"'dialog' centres and blocks; 'drawer' slides from the side for a form or a record; 'sheet' rises from the bottom on phones; 'popover' floats by its opener for a small choice"},title:{$ref:"#/$defs/DynamicString"},children:{$ref:"#/$defs/ChildList",description:"What the panel holds"},actions:{$ref:"#/$defs/Id",description:"An ActionBar in the panel's footer: its primary action and a Cancel"},open:{$ref:"#/$defs/DynamicBoolean",description:"Bound to host data: true shows the panel; the renderer writes false on dismiss. Open when absent"},dismissible:{type:"boolean",default:!0,description:"Escape, the close control and the backdrop dismiss it; false for a panel that must be completed"},size:{enum:["small","default","large"],default:"default"}},additionalProperties:!1};function Bt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Bt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.title===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[a]:e.push(a),o++}if(t.children===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Vo.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Panel"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Panel"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.kind!==void 0){let a=t.kind;if(!(a==="dialog"||a==="drawer"||a==="sheet"||a==="popover")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Vo.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.title!==void 0&&(g(t.title,{instancePath:r+"/title",parentData:t,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length)),t.actions!==void 0){let a=t.actions;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/actions",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/actions",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.open!==void 0&&(z(t.open,{instancePath:r+"/open",parentData:t,parentDataProperty:"open",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.dismissible!==void 0&&typeof t.dismissible!="boolean"){let a={instancePath:r+"/dismissible",schemaPath:"#/properties/dismissible/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}if(t.size!==void 0){let a=t.size;if(!(a==="small"||a==="default"||a==="large")){let i={instancePath:r+"/size",schemaPath:"#/properties/size/enum",keyword:"enum",params:{allowedValues:Vo.properties.size.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Bt.errors=e,o===0}Bt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Fs={type:"object",description:"How far along something is, or how much of a bounded amount is used: a bar, a ring or a meter.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Progress"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What is being measured: 'Storage used', 'Upload', 'Goal'"},value:{$ref:"#/$defs/DynamicNumber",description:"Bound to host data. A fraction from 0 to 1, or an amount when max is given"},max:{$ref:"#/$defs/DynamicNumber",description:"The whole, when value is an amount rather than a fraction: 200 for '180 of 200 GB'"},kind:{enum:["bar","ring","meter"],default:"bar",description:"'bar' and 'ring' show progress towards done; 'meter' shows a measured amount within bounds, with tone by threshold"},caption:{$ref:"#/$defs/DynamicString",description:"Text beside the readout: '180 of 200 GB', '3 days left'. The readout itself is derived from value"},format:{$ref:"#/$defs/Format",description:"How the readout is shown; percent without it"},tone:{$ref:"#/$defs/Tone",description:"Fixed tone; a meter without one takes warning past thresholds.warning and danger past thresholds.danger"},thresholds:{type:"object",properties:{warning:{type:"number",minimum:0,maximum:1},danger:{type:"number",minimum:0,maximum:1}},additionalProperties:!1,description:"Fractions at which a meter changes tone"},indeterminate:{$ref:"#/$defs/DynamicBoolean",description:"The task is running and how far along isn't known"}},additionalProperties:!1};function me(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=me.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);let a=o,i=!1,u=null,f=o;if(typeof t!="number"){let h={instancePath:r,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"number"},message:"must be number"};e===null?e=[h]:e.push(h),o++}var x=f===o;x&&(i=!0,u=0);let m=o;q(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length);var x=m===o;if(x&&i)i=!1,u=[u,1];else if(x){i=!0,u=1;var y=!0}if(i)o=a,e!==null&&(a?e.length=a:e=null);else{let h={instancePath:r,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:u},message:"must match exactly one schema in oneOf"};e===null?e=[h]:e.push(h),o++}return me.errors=e,c.props=y,o===0}me.evaluated={dynamicProps:!0,dynamicItems:!1};function _t(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=_t.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Fs.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Progress"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Progress"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(me(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?me.errors:e.concat(me.errors),o=e.length)),t.max!==void 0&&(me(t.max,{instancePath:r+"/max",parentData:t,parentDataProperty:"max",rootData:n,dynamicAnchors:d})||(e=e===null?me.errors:e.concat(me.errors),o=e.length)),t.kind!==void 0){let a=t.kind;if(!(a==="bar"||a==="ring"||a==="meter")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Fs.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.caption!==void 0&&(g(t.caption,{instancePath:r+"/caption",parentData:t,parentDataProperty:"caption",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.format!==void 0&&(ee(t.format,{instancePath:r+"/format",parentData:t,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length)),t.tone!==void 0){let a=t.tone;if(!(a==="neutral"||a==="info"||a==="success"||a==="warning"||a==="danger")){let i={instancePath:r+"/tone",schemaPath:"#/$defs/Tone/enum",keyword:"enum",params:{allowedValues:cr.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.thresholds!==void 0){let a=t.thresholds;if(a&&typeof a=="object"&&!Array.isArray(a)){for(let i in a)if(!(i==="warning"||i==="danger")){let u={instancePath:r+"/thresholds",schemaPath:"#/properties/thresholds/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}if(a.warning!==void 0){let i=a.warning;if(typeof i=="number"){if(i>1||isNaN(i)){let u={instancePath:r+"/thresholds/warning",schemaPath:"#/properties/thresholds/properties/warning/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1"};e===null?e=[u]:e.push(u),o++}if(i<0||isNaN(i)){let u={instancePath:r+"/thresholds/warning",schemaPath:"#/properties/thresholds/properties/warning/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/thresholds/warning",schemaPath:"#/properties/thresholds/properties/warning/type",keyword:"type",params:{type:"number"},message:"must be number"};e===null?e=[u]:e.push(u),o++}}if(a.danger!==void 0){let i=a.danger;if(typeof i=="number"){if(i>1||isNaN(i)){let u={instancePath:r+"/thresholds/danger",schemaPath:"#/properties/thresholds/properties/danger/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1"};e===null?e=[u]:e.push(u),o++}if(i<0||isNaN(i)){let u={instancePath:r+"/thresholds/danger",schemaPath:"#/properties/thresholds/properties/danger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/thresholds/danger",schemaPath:"#/properties/thresholds/properties/danger/type",keyword:"type",params:{type:"number"},message:"must be number"};e===null?e=[u]:e.push(u),o++}}}else{let i={instancePath:r+"/thresholds",schemaPath:"#/properties/thresholds/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}t.indeterminate!==void 0&&(z(t.indeterminate,{instancePath:r+"/indeterminate",parentData:t,parentDataProperty:"indeterminate",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return _t.errors=e,o===0}_t.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Us={type:"object",description:"A number, or a range between two numbers, within known bounds.",required:["id","component","label","value","min","max"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"RangeInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Number in host data, or [min, max] when mode is 'range'"},min:{type:"number"},max:{type:"number"},step:{type:"number",exclusiveMinimum:0},format:{$ref:"#/$defs/Format"},mode:{enum:["single","range"],default:"single",description:"'range' picks a lower and upper bound; value is then [min, max]"}},additionalProperties:!1};function Ht(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Ht.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}if(t.min===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"min"},message:"must have required property 'min'"};e===null?e=[a]:e.push(a),o++}if(t.max===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"max"},message:"must have required property 'max'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Us.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="RangeInput"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"RangeInput"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(q(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.min!==void 0&&typeof t.min!="number"){let a={instancePath:r+"/min",schemaPath:"#/properties/min/type",keyword:"type",params:{type:"number"},message:"must be number"};e===null?e=[a]:e.push(a),o++}if(t.max!==void 0&&typeof t.max!="number"){let a={instancePath:r+"/max",schemaPath:"#/properties/max/type",keyword:"type",params:{type:"number"},message:"must be number"};e===null?e=[a]:e.push(a),o++}if(t.step!==void 0){let a=t.step;if(typeof a=="number"){if(a<=0||isNaN(a)){let i={instancePath:r+"/step",schemaPath:"#/properties/step/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0"};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/step",schemaPath:"#/properties/step/type",keyword:"type",params:{type:"number"},message:"must be number"};e===null?e=[i]:e.push(i),o++}}if(t.format!==void 0&&(ee(t.format,{instancePath:r+"/format",parentData:t,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length)),t.mode!==void 0){let a=t.mode;if(!(a==="single"||a==="range")){let i={instancePath:r+"/mode",schemaPath:"#/properties/mode/enum",keyword:"enum",params:{allowedValues:Us.properties.mode.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Ht.errors=e,o===0}Ht.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var ad={type:"object",description:"A score out of N: given by the person, or shown as others gave it.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Rating"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What is rated: 'Your rating', 'Average rating'"},value:{$ref:"#/$defs/Binding",description:"The score in host data; written when the person can rate"},max:{type:"integer",minimum:2,maximum:10,default:5},readOnly:{$ref:"#/$defs/DynamicBoolean",default:!1,description:"Show a score rather than take one"},count:{$ref:"#/$defs/DynamicNumber",description:"How many ratings the score is from, shown after it: '4.6 (212)'"},help:{$ref:"#/$defs/DynamicString"},required:{$ref:"#/$defs/DynamicBoolean",default:!1},action:{$ref:"#/$defs/Action",description:"Runs when a rating is given, with context bound to value"}},additionalProperties:!1};function Ft(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Ft.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(ad.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Rating"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Rating"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(q(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.max!==void 0){let a=t.max;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a))){let i={instancePath:r+"/max",schemaPath:"#/properties/max/type",keyword:"type",params:{type:"integer"},message:"must be integer"};e===null?e=[i]:e.push(i),o++}if(typeof a=="number"){if(a>10||isNaN(a)){let i={instancePath:r+"/max",schemaPath:"#/properties/max/maximum",keyword:"maximum",params:{comparison:"<=",limit:10},message:"must be <= 10"};e===null?e=[i]:e.push(i),o++}if(a<2||isNaN(a)){let i={instancePath:r+"/max",schemaPath:"#/properties/max/minimum",keyword:"minimum",params:{comparison:">=",limit:2},message:"must be >= 2"};e===null?e=[i]:e.push(i),o++}}}t.readOnly!==void 0&&(z(t.readOnly,{instancePath:r+"/readOnly",parentData:t,parentDataProperty:"readOnly",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.count!==void 0&&(me(t.count,{instancePath:r+"/count",parentData:t,parentDataProperty:"count",rootData:n,dynamicAnchors:d})||(e=e===null?me.errors:e.concat(me.errors),o=e.length)),t.help!==void 0&&(g(t.help,{instancePath:r+"/help",parentData:t,parentDataProperty:"help",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.required!==void 0&&(z(t.required,{instancePath:r+"/required",parentData:t,parentDataProperty:"required",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.action!==void 0&&(Z(t.action,{instancePath:r+"/action",parentData:t,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Ft.errors=e,o===0}Ft.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Ut(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Ut.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.title===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[a]:e.push(a),o++}if(t.children===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="id"||a==="component"||a==="key"||a==="accessibility"||a==="visible"||a==="title"||a==="description"||a==="children")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Section"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Section"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.title!==void 0&&(g(t.title,{instancePath:r+"/title",parentData:t,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.description!==void 0&&(g(t.description,{instancePath:r+"/description",parentData:t,parentDataProperty:"description",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Ut.errors=e,o===0}Ut.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Os={type:"object",description:"Master and detail side by side: a list that stays while the chosen item's detail shows beside it; on compact layouts the detail replaces the list.",required:["id","component","primary","detail","selected"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Split"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},primary:{$ref:"#/$defs/Id",description:"The list: a Collection or a Table with selection 'single'"},detail:{$ref:"#/$defs/Id",description:"What shows for the selected item; its bindings resolve against the selected item's scope"},selected:{$ref:"#/$defs/Binding",description:"The selected item's value in host data, shared with the primary's 'selected'"},empty:{$ref:"#/$defs/Id",description:"A Status shown in the detail pane while nothing is selected"},ratio:{enum:["narrow","balanced","wide"],default:"narrow",description:"The list's share: about a third, half, or two thirds"},resizable:{type:"boolean",default:!1}},additionalProperties:!1};function Ot(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Ot.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.primary===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"primary"},message:"must have required property 'primary'"};e===null?e=[a]:e.push(a),o++}if(t.detail===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"detail"},message:"must have required property 'detail'"};e===null?e=[a]:e.push(a),o++}if(t.selected===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"selected"},message:"must have required property 'selected'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Os.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Split"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Split"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.primary!==void 0){let a=t.primary;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/primary",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/primary",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.detail!==void 0){let a=t.detail;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/detail",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/detail",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.selected!==void 0&&(q(t.selected,{instancePath:r+"/selected",parentData:t,parentDataProperty:"selected",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.empty!==void 0){let a=t.empty;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/empty",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/empty",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.ratio!==void 0){let a=t.ratio;if(!(a==="narrow"||a==="balanced"||a==="wide")){let i={instancePath:r+"/ratio",schemaPath:"#/properties/ratio/enum",keyword:"enum",params:{allowedValues:Os.properties.ratio.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.resizable!==void 0&&typeof t.resizable!="boolean"){let a={instancePath:r+"/resizable",schemaPath:"#/properties/resizable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Ot.errors=e,o===0}Ot.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Mr={type:"object",description:"Feedback about state: info, success, warning, error, empty or loading.",required:["id","component","kind","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Status"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},kind:{enum:["info","success","warning","error","empty","loading","undo"]},title:{$ref:"#/$defs/DynamicString"},message:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Id",description:"Optional Action (or ActionBar for a primary and a secondary) to recover or continue, e.g. 'Try again'; for 'undo', the Undo action"},icon:{enum:["lock","trash","clock","tag","info","alert","mail","shield","search","book","inbox","check"],description:"Optional icon for empty states; the renderer picks one by kind otherwise"},variant:{enum:["default","inline"],default:"default",description:"'inline' is a notice inside a page (a warning above a record) rather than a block of its own"}},additionalProperties:!1};function Lt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Lt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.kind===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"kind"},message:"must have required property 'kind'"};e===null?e=[a]:e.push(a),o++}if(t.title===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Mr.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Status"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Status"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.kind!==void 0){let a=t.kind;if(!(a==="info"||a==="success"||a==="warning"||a==="error"||a==="empty"||a==="loading"||a==="undo")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Mr.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.title!==void 0&&(g(t.title,{instancePath:r+"/title",parentData:t,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.message!==void 0&&(g(t.message,{instancePath:r+"/message",parentData:t,parentDataProperty:"message",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.action!==void 0){let a=t.action;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/action",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/action",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.icon!==void 0){let a=t.icon;if(!(a==="lock"||a==="trash"||a==="clock"||a==="tag"||a==="info"||a==="alert"||a==="mail"||a==="shield"||a==="search"||a==="book"||a==="inbox"||a==="check")){let i={instancePath:r+"/icon",schemaPath:"#/properties/icon/enum",keyword:"enum",params:{allowedValues:Mr.properties.icon.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.variant!==void 0){let a=t.variant;if(!(a==="default"||a==="inline")){let i={instancePath:r+"/variant",schemaPath:"#/properties/variant/enum",keyword:"enum",params:{allowedValues:Mr.properties.variant.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Lt.errors=e,o===0}Lt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Ls={type:"object",description:"A task split into ordered steps with visible progress.",required:["id","component","steps","finish"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Steps"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},steps:{type:"array",minItems:2,maxItems:7,items:{type:"object",required:["key","title","content"],properties:{key:{$ref:"#/$defs/Key"},title:{$ref:"#/$defs/DynamicString"},content:{$ref:"#/$defs/Id"},status:{$ref:"#/$defs/DynamicString",description:"For 'tasklist': 'todo', 'inProgress', 'done' or 'blocked', usually bound to host data"}},additionalProperties:!1}},kind:{enum:["wizard","tasklist","guide"],default:"wizard",description:"'wizard' shows one step at a time in order; 'tasklist' lists tasks people do in any order, each with its status; 'guide' is numbered instructions with no state"},current:{$ref:"#/$defs/DynamicNumber",description:"Index of the current step (default 0)"},finish:{$ref:"#/$defs/ActionSpec"}},additionalProperties:!1};function Vt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Vt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.steps===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"steps"},message:"must have required property 'steps'"};e===null?e=[a]:e.push(a),o++}if(t.finish===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"finish"},message:"must have required property 'finish'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Ls.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Steps"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Steps"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.steps!==void 0){let a=t.steps;if(Array.isArray(a)){if(a.length>7){let u={instancePath:r+"/steps",schemaPath:"#/properties/steps/maxItems",keyword:"maxItems",params:{limit:7},message:"must NOT have more than 7 items"};e===null?e=[u]:e.push(u),o++}if(a.length<2){let u={instancePath:r+"/steps",schemaPath:"#/properties/steps/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.key===void 0){let m={instancePath:r+"/steps/"+u,schemaPath:"#/properties/steps/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};e===null?e=[m]:e.push(m),o++}if(f.title===void 0){let m={instancePath:r+"/steps/"+u,schemaPath:"#/properties/steps/items/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[m]:e.push(m),o++}if(f.content===void 0){let m={instancePath:r+"/steps/"+u,schemaPath:"#/properties/steps/items/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!(m==="key"||m==="title"||m==="content"||m==="status")){let x={instancePath:r+"/steps/"+u,schemaPath:"#/properties/steps/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.key!==void 0){let m=f.key;if(typeof m=="string"){if(!K.test(m)){let x={instancePath:r+"/steps/"+u+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/steps/"+u+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.title!==void 0&&(g(f.title,{instancePath:r+"/steps/"+u+"/title",parentData:f,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.content!==void 0){let m=f.content;if(typeof m=="string"){if(!F.test(m)){let x={instancePath:r+"/steps/"+u+"/content",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/steps/"+u+"/content",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}f.status!==void 0&&(g(f.status,{instancePath:r+"/steps/"+u+"/status",parentData:f,parentDataProperty:"status",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let m={instancePath:r+"/steps/"+u,schemaPath:"#/properties/steps/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}if(t.kind!==void 0){let a=t.kind;if(!(a==="wizard"||a==="tasklist"||a==="guide")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Ls.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}t.current!==void 0&&(me(t.current,{instancePath:r+"/current",parentData:t,parentDataProperty:"current",rootData:n,dynamicAnchors:d})||(e=e===null?me.errors:e.concat(me.errors),o=e.length)),t.finish!==void 0&&(ce(t.finish,{instancePath:r+"/finish",parentData:t,parentDataProperty:"finish",rootData:n,dynamicAnchors:d})||(e=e===null?ce.errors:e.concat(ce.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Vt.errors=e,o===0}Vt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var lr={type:"object",description:"Tabular data: many items sharing the same attributes.",required:["id","component","rows","caption","columns"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Table"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},rows:{$ref:"#/$defs/Binding",description:"Array of row objects in host data"},caption:{$ref:"#/$defs/DynamicString",description:"What the table shows (required for accessibility)"},columns:{type:"array",minItems:1,maxItems:8,items:{type:"object",required:["key","label","path"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},path:{$ref:"#/$defs/Path",description:"Relative to the row"},format:{$ref:"#/$defs/Format"},kind:{enum:["text","number","currency","date","status","entity","link"],default:"text",description:"What the cell holds; drives alignment, tabular figures and status tags"},align:{enum:["start","end"],description:"Overrides the alignment the kind implies"},tones:{type:"object",additionalProperties:{$ref:"#/$defs/Tone"},description:`For 'status': value \u2192 tone, e.g. {"Past due": "danger"}`},sortable:{type:"boolean",description:"Whether people can sort by this column"},avatarPath:{$ref:"#/$defs/Path",description:"For 'entity': relative path to the picture or initials"},secondaryPath:{$ref:"#/$defs/Path",description:"For 'entity': a second line, e.g. an email address"}},additionalProperties:!1}},rowAction:{$ref:"#/$defs/Action",description:"Activated per row; context bindings resolve against the row"},empty:{$ref:"#/$defs/Id",description:"Status component shown when there are no rows"},sort:{type:"object",required:["column"],properties:{column:{$ref:"#/$defs/Binding",description:"Key of the sorted column in host data"},direction:{$ref:"#/$defs/Binding",description:"'ascending' or 'descending' in host data"},action:{$ref:"#/$defs/Action",description:"Sent when someone sorts, so the host can re-query"}},additionalProperties:!1,description:"Sorting state, owned by the host"},selection:{enum:["none","multiple"],default:"none",description:"'multiple' adds a checkbox column and a select-all"},selected:{$ref:"#/$defs/Binding",description:"Array of selected row values in host data"},rowValuePath:{$ref:"#/$defs/Path",description:"Relative path to each row's id, used for selection"},bulkActions:{$ref:"#/$defs/Id",description:"ActionBar shown instead of the toolbar while rows are selected"},rowActions:{$ref:"#/$defs/Id",description:"ActionBar offered per row, in a menu named after the row"},expandable:{type:"boolean",default:!1,description:"Rows open to show 'detail' beneath them"},detail:{$ref:"#/$defs/Id",description:"Component rendered under an expanded row; relative paths inside it resolve against the row"},toolbar:{$ref:"#/$defs/Id",description:"ActionBar above the table (e.g. New, Import, Export)"},search:{$ref:"#/$defs/Id",description:"TextInput (kind 'search') above the table"},views:{type:"array",minItems:2,maxItems:8,items:{type:"object",required:["key","label"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},count:{$ref:"#/$defs/Binding"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},description:"Saved views (All, Mine, Past due\u2026), shown as tabs with counts"},view:{$ref:"#/$defs/Binding",description:"Key of the selected saved view in host data"},page:{type:"object",properties:{index:{$ref:"#/$defs/Binding",description:"1-based page number in host data"},size:{$ref:"#/$defs/Binding"},total:{$ref:"#/$defs/Binding",description:"Total number of rows, all pages"},action:{$ref:"#/$defs/Action",description:"Sent when someone changes page or page size"}},additionalProperties:!1,description:"Paging state, owned by the host"}},additionalProperties:!1};function Zt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Zt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.rows===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rows"},message:"must have required property 'rows'"};e===null?e=[a]:e.push(a),o++}if(t.caption===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"caption"},message:"must have required property 'caption'"};e===null?e=[a]:e.push(a),o++}if(t.columns===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columns"},message:"must have required property 'columns'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(lr.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Table"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Table"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.rows!==void 0&&(q(t.rows,{instancePath:r+"/rows",parentData:t,parentDataProperty:"rows",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.caption!==void 0&&(g(t.caption,{instancePath:r+"/caption",parentData:t,parentDataProperty:"caption",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.columns!==void 0){let a=t.columns;if(Array.isArray(a)){if(a.length>8){let u={instancePath:r+"/columns",schemaPath:"#/properties/columns/maxItems",keyword:"maxItems",params:{limit:8},message:"must NOT have more than 8 items"};e===null?e=[u]:e.push(u),o++}if(a.length<1){let u={instancePath:r+"/columns",schemaPath:"#/properties/columns/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.key===void 0){let m={instancePath:r+"/columns/"+u,schemaPath:"#/properties/columns/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};e===null?e=[m]:e.push(m),o++}if(f.label===void 0){let m={instancePath:r+"/columns/"+u,schemaPath:"#/properties/columns/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[m]:e.push(m),o++}if(f.path===void 0){let m={instancePath:r+"/columns/"+u,schemaPath:"#/properties/columns/items/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!Q.call(lr.properties.columns.items.properties,m)){let x={instancePath:r+"/columns/"+u,schemaPath:"#/properties/columns/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.key!==void 0){let m=f.key;if(typeof m=="string"){if(!K.test(m)){let x={instancePath:r+"/columns/"+u+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/columns/"+u+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.label!==void 0&&(g(f.label,{instancePath:r+"/columns/"+u+"/label",parentData:f,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.path!==void 0){let m=f.path;if(typeof m=="string"){if(!ae.test(m)){let x={instancePath:r+"/columns/"+u+"/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/columns/"+u+"/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.format!==void 0&&(ee(f.format,{instancePath:r+"/columns/"+u+"/format",parentData:f,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length)),f.kind!==void 0){let m=f.kind;if(!(m==="text"||m==="number"||m==="currency"||m==="date"||m==="status"||m==="entity"||m==="link")){let x={instancePath:r+"/columns/"+u+"/kind",schemaPath:"#/properties/columns/items/properties/kind/enum",keyword:"enum",params:{allowedValues:lr.properties.columns.items.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[x]:e.push(x),o++}}if(f.align!==void 0){let m=f.align;if(!(m==="start"||m==="end")){let x={instancePath:r+"/columns/"+u+"/align",schemaPath:"#/properties/columns/items/properties/align/enum",keyword:"enum",params:{allowedValues:lr.properties.columns.items.properties.align.enum},message:"must be equal to one of the allowed values"};e===null?e=[x]:e.push(x),o++}}if(f.tones!==void 0){let m=f.tones;if(m&&typeof m=="object"&&!Array.isArray(m))for(let x in m){let y=m[x];if(!(y==="neutral"||y==="info"||y==="success"||y==="warning"||y==="danger")){let h={instancePath:r+"/columns/"+u+"/tones/"+x.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Tone/enum",keyword:"enum",params:{allowedValues:cr.enum},message:"must be equal to one of the allowed values"};e===null?e=[h]:e.push(h),o++}}else{let x={instancePath:r+"/columns/"+u+"/tones",schemaPath:"#/properties/columns/items/properties/tones/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[x]:e.push(x),o++}}if(f.sortable!==void 0&&typeof f.sortable!="boolean"){let m={instancePath:r+"/columns/"+u+"/sortable",schemaPath:"#/properties/columns/items/properties/sortable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[m]:e.push(m),o++}if(f.avatarPath!==void 0){let m=f.avatarPath;if(typeof m=="string"){if(!ae.test(m)){let x={instancePath:r+"/columns/"+u+"/avatarPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/columns/"+u+"/avatarPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.secondaryPath!==void 0){let m=f.secondaryPath;if(typeof m=="string"){if(!ae.test(m)){let x={instancePath:r+"/columns/"+u+"/secondaryPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/columns/"+u+"/secondaryPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}}else{let m={instancePath:r+"/columns/"+u,schemaPath:"#/properties/columns/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/columns",schemaPath:"#/properties/columns/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}if(t.rowAction!==void 0&&(Z(t.rowAction,{instancePath:r+"/rowAction",parentData:t,parentDataProperty:"rowAction",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length)),t.empty!==void 0){let a=t.empty;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/empty",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/empty",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.sort!==void 0){let a=t.sort;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.column===void 0){let i={instancePath:r+"/sort",schemaPath:"#/properties/sort/required",keyword:"required",params:{missingProperty:"column"},message:"must have required property 'column'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!(i==="column"||i==="direction"||i==="action")){let u={instancePath:r+"/sort",schemaPath:"#/properties/sort/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}a.column!==void 0&&(q(a.column,{instancePath:r+"/sort/column",parentData:a,parentDataProperty:"column",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),a.direction!==void 0&&(q(a.direction,{instancePath:r+"/sort/direction",parentData:a,parentDataProperty:"direction",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),a.action!==void 0&&(Z(a.action,{instancePath:r+"/sort/action",parentData:a,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length))}else{let i={instancePath:r+"/sort",schemaPath:"#/properties/sort/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}if(t.selection!==void 0){let a=t.selection;if(!(a==="none"||a==="multiple")){let i={instancePath:r+"/selection",schemaPath:"#/properties/selection/enum",keyword:"enum",params:{allowedValues:lr.properties.selection.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.selected!==void 0&&(q(t.selected,{instancePath:r+"/selected",parentData:t,parentDataProperty:"selected",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.rowValuePath!==void 0){let a=t.rowValuePath;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/rowValuePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/rowValuePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.bulkActions!==void 0){let a=t.bulkActions;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/bulkActions",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/bulkActions",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.rowActions!==void 0){let a=t.rowActions;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/rowActions",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/rowActions",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.expandable!==void 0&&typeof t.expandable!="boolean"){let a={instancePath:r+"/expandable",schemaPath:"#/properties/expandable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}if(t.detail!==void 0){let a=t.detail;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/detail",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/detail",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.toolbar!==void 0){let a=t.toolbar;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/toolbar",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/toolbar",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.search!==void 0){let a=t.search;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/search",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/search",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.views!==void 0){let a=t.views;if(Array.isArray(a)){if(a.length>8){let u={instancePath:r+"/views",schemaPath:"#/properties/views/maxItems",keyword:"maxItems",params:{limit:8},message:"must NOT have more than 8 items"};e===null?e=[u]:e.push(u),o++}if(a.length<2){let u={instancePath:r+"/views",schemaPath:"#/properties/views/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.key===void 0){let m={instancePath:r+"/views/"+u,schemaPath:"#/properties/views/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};e===null?e=[m]:e.push(m),o++}if(f.label===void 0){let m={instancePath:r+"/views/"+u,schemaPath:"#/properties/views/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!(m==="key"||m==="label"||m==="count"||m==="action")){let x={instancePath:r+"/views/"+u,schemaPath:"#/properties/views/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.key!==void 0){let m=f.key;if(typeof m=="string"){if(!K.test(m)){let x={instancePath:r+"/views/"+u+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/views/"+u+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}f.label!==void 0&&(g(f.label,{instancePath:r+"/views/"+u+"/label",parentData:f,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.count!==void 0&&(q(f.count,{instancePath:r+"/views/"+u+"/count",parentData:f,parentDataProperty:"count",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),f.action!==void 0&&(Z(f.action,{instancePath:r+"/views/"+u+"/action",parentData:f,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length))}else{let m={instancePath:r+"/views/"+u,schemaPath:"#/properties/views/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/views",schemaPath:"#/properties/views/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}if(t.view!==void 0&&(q(t.view,{instancePath:r+"/view",parentData:t,parentDataProperty:"view",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.page!==void 0){let a=t.page;if(a&&typeof a=="object"&&!Array.isArray(a)){for(let i in a)if(!(i==="index"||i==="size"||i==="total"||i==="action")){let u={instancePath:r+"/page",schemaPath:"#/properties/page/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}a.index!==void 0&&(q(a.index,{instancePath:r+"/page/index",parentData:a,parentDataProperty:"index",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),a.size!==void 0&&(q(a.size,{instancePath:r+"/page/size",parentData:a,parentDataProperty:"size",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),a.total!==void 0&&(q(a.total,{instancePath:r+"/page/total",parentData:a,parentDataProperty:"total",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),a.action!==void 0&&(Z(a.action,{instancePath:r+"/page/action",parentData:a,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length))}else{let i={instancePath:r+"/page",schemaPath:"#/properties/page/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Zt.errors=e,o===0}Zt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Vs={type:"object",description:"A short label, status or count attached to something else.",required:["id","component","label"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Tag"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"The word or two it shows: 'Past due', 'Beta', 'Design'"},kind:{enum:["label","status","count"],default:"label",description:"'status' is the state of the thing it sits on and is coloured by tone; 'count' is a number, with the label as its accessible name"},tone:{$ref:"#/$defs/Tone",default:"neutral",description:"Meaning, not decoration: a status tag's tone says whether the state is fine, a warning or a problem"},count:{$ref:"#/$defs/DynamicNumber",description:"For kind 'count': the number, bound to host data"},remove:{$ref:"#/$defs/Action",description:"Present when the person can take the tag off (a filter chip, a chosen recipient): the capability that removes it"}},additionalProperties:!1};function Kt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Kt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Vs.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Tag"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Tag"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.kind!==void 0){let a=t.kind;if(!(a==="label"||a==="status"||a==="count")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Vs.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.tone!==void 0){let a=t.tone;if(!(a==="neutral"||a==="info"||a==="success"||a==="warning"||a==="danger")){let i={instancePath:r+"/tone",schemaPath:"#/$defs/Tone/enum",keyword:"enum",params:{allowedValues:cr.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}t.count!==void 0&&(me(t.count,{instancePath:r+"/count",parentData:t,parentDataProperty:"count",rootData:n,dynamicAnchors:d})||(e=e===null?me.errors:e.concat(me.errors),o=e.length)),t.remove!==void 0&&(Z(t.remove,{instancePath:r+"/remove",parentData:t,parentDataProperty:"remove",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Kt.errors=e,o===0}Kt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Zs={type:"object",description:"A run of text.",required:["id","component","text"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Text"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},text:{$ref:"#/$defs/DynamicString"},variant:{enum:["body","supporting","caption","rich","list","quote"],default:"body",description:"'rich' allows **bold**, *italic*, `code` and [links](href) in the text; 'list' is a bulleted or numbered list of 'items'; 'quote' is a quotation with an optional 'cite'"},format:{$ref:"#/$defs/Format",description:"Only when 'text' is bound to a non-string value"},items:{$ref:"#/$defs/Binding",description:"For 'list': array in host data, one entry per item; 'text' introduces the list"},itemPath:{$ref:"#/$defs/Path",description:"For 'list': relative path in each entry to the text shown, when the entries are objects"},ordered:{type:"boolean",default:!1,description:"For 'list': numbered rather than bulleted"},cite:{$ref:"#/$defs/DynamicString",description:"For 'quote': who or what is quoted"}},additionalProperties:!1};function Wt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Wt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.text===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Zs.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Text"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Text"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.text!==void 0&&(g(t.text,{instancePath:r+"/text",parentData:t,parentDataProperty:"text",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.variant!==void 0){let a=t.variant;if(!(a==="body"||a==="supporting"||a==="caption"||a==="rich"||a==="list"||a==="quote")){let i={instancePath:r+"/variant",schemaPath:"#/properties/variant/enum",keyword:"enum",params:{allowedValues:Zs.properties.variant.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.format!==void 0&&(ee(t.format,{instancePath:r+"/format",parentData:t,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length)),t.items!==void 0&&(q(t.items,{instancePath:r+"/items",parentData:t,parentDataProperty:"items",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.itemPath!==void 0){let a=t.itemPath;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/itemPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/itemPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.ordered!==void 0&&typeof t.ordered!="boolean"){let a={instancePath:r+"/ordered",schemaPath:"#/properties/ordered/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}t.cite!==void 0&&(g(t.cite,{instancePath:r+"/cite",parentData:t,parentDataProperty:"cite",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Wt.errors=e,o===0}Wt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Zo={type:"object",description:"A single text-like value: text, number, email, phone, currency, search or long text.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"TextInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Two-way binding into host data"},kind:{enum:["text","multiline","number","currency","email","phone","url","search","suggestions","richtext","tags","mentions","code","masked","inline"],default:"text",description:"'suggestions' offers completions from 'options' while leaving any text allowed; 'richtext' is short formatted text (bold, italic, lists) stored as markdown-ish text; 'tags' is a list of short values entered one at a time; 'mentions' offers 'options' after an @; 'code' is monospace with no autocorrection; 'masked' follows 'mask'; 'inline' reads as text until it is clicked"},options:{$ref:"#/$defs/Options",description:"For 'suggestions' and 'mentions': the completions offered"},mask:{type:"string",description:"For 'masked': # for a digit, A for a letter, * for either, anything else typed for you, e.g. '#### #### #### ####'"},currency:{$ref:"#/$defs/DynamicString",description:"ISO 4217 code when kind is 'currency'"},help:{$ref:"#/$defs/DynamicString",description:"Hint shown below the label (not a placeholder)"},required:{type:"boolean",default:!1},validation:{type:"object",properties:{min:{type:"number"},max:{type:"number"},minLength:{type:"integer",minimum:0},maxLength:{type:"integer",minimum:1},message:{$ref:"#/$defs/DynamicString",description:"Error message shown when validation fails"}},additionalProperties:!1},autocomplete:{type:"string",description:"HTML autocomplete token hint (e.g. 'email', 'postal-code')"},placeholder:{$ref:"#/$defs/DynamicString",description:"Only for kind 'search', shown inside the field. Never a substitute for the label."},size:{enum:["default","hero"],default:"default",description:"'hero' for the one number a surface is about (an amount to send): large and centred"}},additionalProperties:!1};function Gt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Gt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Zo.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="TextInput"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"TextInput"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(q(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.kind!==void 0){let a=t.kind;if(!(a==="text"||a==="multiline"||a==="number"||a==="currency"||a==="email"||a==="phone"||a==="url"||a==="search"||a==="suggestions"||a==="richtext"||a==="tags"||a==="mentions"||a==="code"||a==="masked"||a==="inline")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Zo.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.options!==void 0&&(ve(t.options,{instancePath:r+"/options",parentData:t,parentDataProperty:"options",rootData:n,dynamicAnchors:d})||(e=e===null?ve.errors:e.concat(ve.errors),o=e.length)),t.mask!==void 0&&typeof t.mask!="string"){let a={instancePath:r+"/mask",schemaPath:"#/properties/mask/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[a]:e.push(a),o++}if(t.currency!==void 0&&(g(t.currency,{instancePath:r+"/currency",parentData:t,parentDataProperty:"currency",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.help!==void 0&&(g(t.help,{instancePath:r+"/help",parentData:t,parentDataProperty:"help",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.required!==void 0&&typeof t.required!="boolean"){let a={instancePath:r+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}if(t.validation!==void 0){let a=t.validation;if(a&&typeof a=="object"&&!Array.isArray(a)){for(let i in a)if(!(i==="min"||i==="max"||i==="minLength"||i==="maxLength"||i==="message")){let u={instancePath:r+"/validation",schemaPath:"#/properties/validation/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}if(a.min!==void 0&&typeof a.min!="number"){let i={instancePath:r+"/validation/min",schemaPath:"#/properties/validation/properties/min/type",keyword:"type",params:{type:"number"},message:"must be number"};e===null?e=[i]:e.push(i),o++}if(a.max!==void 0&&typeof a.max!="number"){let i={instancePath:r+"/validation/max",schemaPath:"#/properties/validation/properties/max/type",keyword:"type",params:{type:"number"},message:"must be number"};e===null?e=[i]:e.push(i),o++}if(a.minLength!==void 0){let i=a.minLength;if(!(typeof i=="number"&&!(i%1)&&!isNaN(i))){let u={instancePath:r+"/validation/minLength",schemaPath:"#/properties/validation/properties/minLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"};e===null?e=[u]:e.push(u),o++}if(typeof i=="number"&&(i<0||isNaN(i))){let u={instancePath:r+"/validation/minLength",schemaPath:"#/properties/validation/properties/minLength/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};e===null?e=[u]:e.push(u),o++}}if(a.maxLength!==void 0){let i=a.maxLength;if(!(typeof i=="number"&&!(i%1)&&!isNaN(i))){let u={instancePath:r+"/validation/maxLength",schemaPath:"#/properties/validation/properties/maxLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"};e===null?e=[u]:e.push(u),o++}if(typeof i=="number"&&(i<1||isNaN(i))){let u={instancePath:r+"/validation/maxLength",schemaPath:"#/properties/validation/properties/maxLength/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};e===null?e=[u]:e.push(u),o++}}a.message!==void 0&&(g(a.message,{instancePath:r+"/validation/message",parentData:a,parentDataProperty:"message",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let i={instancePath:r+"/validation",schemaPath:"#/properties/validation/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}if(t.autocomplete!==void 0&&typeof t.autocomplete!="string"){let a={instancePath:r+"/autocomplete",schemaPath:"#/properties/autocomplete/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[a]:e.push(a),o++}if(t.placeholder!==void 0&&(g(t.placeholder,{instancePath:r+"/placeholder",parentData:t,parentDataProperty:"placeholder",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.size!==void 0){let a=t.size;if(!(a==="default"||a==="hero")){let i={instancePath:r+"/size",schemaPath:"#/properties/size/enum",keyword:"enum",params:{allowedValues:Zo.properties.size.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Gt.errors=e,o===0}Gt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var od={type:"object",description:"An on/off setting.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Toggle"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Boolean in host data"},description:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action",description:"Set when the change applies immediately (a setting); omit inside a Form"}},additionalProperties:!1};function Yt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Yt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(od.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Toggle"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Toggle"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(q(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.description!==void 0&&(g(t.description,{instancePath:r+"/description",parentData:t,parentDataProperty:"description",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.action!==void 0&&(Z(t.action,{instancePath:r+"/action",parentData:t,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Yt.errors=e,o===0}Yt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Ks={type:"object",description:"A hierarchy people expand, browse and pick from: folders, an org chart, nested categories.",required:["id","component","label","items","labelPath","childrenPath"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Tree"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What the tree holds, e.g. 'Folders'"},items:{$ref:"#/$defs/Binding",description:"The top-level nodes in host data: a list"},labelPath:{$ref:"#/$defs/Path",description:"Relative to each node: the text shown"},childrenPath:{$ref:"#/$defs/Path",description:"Relative to each node: its list of child nodes, absent or empty for a leaf"},valuePath:{$ref:"#/$defs/Path",description:"Relative to each node: what selection writes; the label when absent"},detailPath:{$ref:"#/$defs/Path",description:"Relative to each node: a count or note shown after the label"},selection:{enum:["none","single","multiple"],default:"none"},selected:{$ref:"#/$defs/Binding",description:"Selected node value(s) in host data when selection is not 'none'"},expanded:{$ref:"#/$defs/Binding",description:"Values of the nodes shown open; the first level is open without it"},action:{$ref:"#/$defs/Action",description:"Activating a node, e.g. open that folder; context may bind to the node's fields"}},additionalProperties:!1};function Jt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Jt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.items===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};e===null?e=[a]:e.push(a),o++}if(t.labelPath===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"labelPath"},message:"must have required property 'labelPath'"};e===null?e=[a]:e.push(a),o++}if(t.childrenPath===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"childrenPath"},message:"must have required property 'childrenPath'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Ks.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Tree"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Tree"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.items!==void 0&&(q(t.items,{instancePath:r+"/items",parentData:t,parentDataProperty:"items",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.labelPath!==void 0){let a=t.labelPath;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/labelPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/labelPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.childrenPath!==void 0){let a=t.childrenPath;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/childrenPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/childrenPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.valuePath!==void 0){let a=t.valuePath;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/valuePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/valuePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.detailPath!==void 0){let a=t.detailPath;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/detailPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/detailPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.selection!==void 0){let a=t.selection;if(!(a==="none"||a==="single"||a==="multiple")){let i={instancePath:r+"/selection",schemaPath:"#/properties/selection/enum",keyword:"enum",params:{allowedValues:Ks.properties.selection.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}t.selected!==void 0&&(q(t.selected,{instancePath:r+"/selected",parentData:t,parentDataProperty:"selected",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.expanded!==void 0&&(q(t.expanded,{instancePath:r+"/expanded",parentData:t,parentDataProperty:"expanded",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.action!==void 0&&(Z(t.action,{instancePath:r+"/action",parentData:t,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Jt.errors=e,o===0}Jt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var id={type:"object",description:"Switch between alternative views of the same subject (tabs).",required:["id","component","views"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Views"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},views:{type:"array",minItems:2,maxItems:6,items:{type:"object",required:["key","label","content"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},content:{$ref:"#/$defs/Id"},count:{$ref:"#/$defs/Binding",description:"How many items the view holds, shown beside its label"}},additionalProperties:!1}},selected:{$ref:"#/$defs/Binding",description:"Key of the selected view in host data"},variant:{enum:["tabs","segmented"],default:"tabs",description:"'tabs' for sections of a record; 'segmented' for switching how the same thing is shown"}},additionalProperties:!1};function Xt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Xt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.views===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"views"},message:"must have required property 'views'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="id"||a==="component"||a==="key"||a==="accessibility"||a==="visible"||a==="views"||a==="selected"||a==="variant")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Views"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Views"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!K.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(D(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?D.errors:e.concat(D.errors),o=e.length)),t.visible!==void 0&&(z(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?z.errors:e.concat(z.errors),o=e.length)),t.views!==void 0){let a=t.views;if(Array.isArray(a)){if(a.length>6){let u={instancePath:r+"/views",schemaPath:"#/properties/views/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items"};e===null?e=[u]:e.push(u),o++}if(a.length<2){let u={instancePath:r+"/views",schemaPath:"#/properties/views/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.key===void 0){let m={instancePath:r+"/views/"+u,schemaPath:"#/properties/views/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};e===null?e=[m]:e.push(m),o++}if(f.label===void 0){let m={instancePath:r+"/views/"+u,schemaPath:"#/properties/views/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[m]:e.push(m),o++}if(f.content===void 0){let m={instancePath:r+"/views/"+u,schemaPath:"#/properties/views/items/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!(m==="key"||m==="label"||m==="content"||m==="count")){let x={instancePath:r+"/views/"+u,schemaPath:"#/properties/views/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.key!==void 0){let m=f.key;if(typeof m=="string"){if(!K.test(m)){let x={instancePath:r+"/views/"+u+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/views/"+u+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.label!==void 0&&(g(f.label,{instancePath:r+"/views/"+u+"/label",parentData:f,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.content!==void 0){let m=f.content;if(typeof m=="string"){if(!F.test(m)){let x={instancePath:r+"/views/"+u+"/content",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/views/"+u+"/content",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}f.count!==void 0&&(q(f.count,{instancePath:r+"/views/"+u+"/count",parentData:f,parentDataProperty:"count",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length))}else{let m={instancePath:r+"/views/"+u,schemaPath:"#/properties/views/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/views",schemaPath:"#/properties/views/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}if(t.selected!==void 0&&(q(t.selected,{instancePath:r+"/selected",parentData:t,parentDataProperty:"selected",rootData:n,dynamicAnchors:d})||(e=e===null?q.errors:e.concat(q.errors),o=e.length)),t.variant!==void 0){let a=t.variant;if(!(a==="tabs"||a==="segmented")){let i={instancePath:r+"/variant",schemaPath:"#/properties/variant/enum",keyword:"enum",params:{allowedValues:id.properties.variant.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Xt.errors=e,o===0}Xt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Qt(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Qt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.component===void 0){let u={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[u]:e.push(u),o++}let i=t.component;if(typeof i=="string")if(i==="Action"){dt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?dt.errors:e.concat(dt.errors),o=e.length);var a=!0}else if(i==="ActionBar")pt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?pt.errors:e.concat(pt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="ActionMenu")lt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?lt.errors:e.concat(lt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="AppBar")ct(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?ct.errors:e.concat(ct.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Card")ut(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?ut.errors:e.concat(ut.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Chart")ft(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?ft.errors:e.concat(ft.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Choice")mt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?mt.errors:e.concat(mt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Code")xt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?xt.errors:e.concat(xt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="CodeInput")gt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?gt.errors:e.concat(gt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Collection")ht(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?ht.errors:e.concat(ht.errors),o=e.length),a!==!0&&(a=!0);else if(i==="ColorInput")bt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?bt.errors:e.concat(bt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Columns")vt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?vt.errors:e.concat(vt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Comparison")wt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?wt.errors:e.concat(wt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Confirm")kt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?kt.errors:e.concat(kt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Custom")$t(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?$t.errors:e.concat($t.errors),o=e.length),a!==!0&&(a=!0);else if(i==="DateInput")Pt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Pt.errors:e.concat(Pt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="DetailList")St(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?St.errors:e.concat(St.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Disclosure")zt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?zt.errors:e.concat(zt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="FileInput")At(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?At.errors:e.concat(At.errors),o=e.length),a!==!0&&(a=!0);else if(i==="FilterPanel")It(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?It.errors:e.concat(It.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Footer")Ct(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Ct.errors:e.concat(Ct.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Form")qt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?qt.errors:e.concat(qt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Frame")Dt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Dt.errors:e.concat(Dt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Group")Tt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Tt.errors:e.concat(Tt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Identity")Nt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Nt.errors:e.concat(Nt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Media")Mt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Mt.errors:e.concat(Mt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Metric")jt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?jt.errors:e.concat(jt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Navigation")Et(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Et.errors:e.concat(Et.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Outlet")Rt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Rt.errors:e.concat(Rt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Panel")Bt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Bt.errors:e.concat(Bt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Progress")_t(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?_t.errors:e.concat(_t.errors),o=e.length),a!==!0&&(a=!0);else if(i==="RangeInput")Ht(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Ht.errors:e.concat(Ht.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Rating")Ft(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Ft.errors:e.concat(Ft.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Section")Ut(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Ut.errors:e.concat(Ut.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Split")Ot(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Ot.errors:e.concat(Ot.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Status")Lt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Lt.errors:e.concat(Lt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Steps")Vt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Vt.errors:e.concat(Vt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Table")Zt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Zt.errors:e.concat(Zt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Tag")Kt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Kt.errors:e.concat(Kt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Text")Wt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Wt.errors:e.concat(Wt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="TextInput")Gt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Gt.errors:e.concat(Gt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Toggle")Yt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Yt.errors:e.concat(Yt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Tree")Jt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Jt.errors:e.concat(Jt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Views")Xt(t,{instancePath:r,parentData:s,parentDataProperty:l,rootData:n,dynamicAnchors:d})||(e=e===null?Xt.errors:e.concat(Xt.errors),o=e.length),a!==!0&&(a=!0);else{let u={instancePath:r,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"component",tagValue:i},message:'value of tag "component" must be in oneOf'};e===null?e=[u]:e.push(u),o++}else{let u={instancePath:r,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"component",tagValue:i},message:'tag "component" must be string'};e===null?e=[u]:e.push(u),o++}}else{let i={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}return Qt.errors=e,c.props=a,o===0}Qt.evaluated={dynamicProps:!0,dynamicItems:!1};function jr(t,{instancePath:r="",parentData:s,parentDataProperty:l,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=jr.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.specVersion===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"specVersion"},message:"must have required property 'specVersion'"};e===null?e=[a]:e.push(a),o++}if(t.surface===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"surface"},message:"must have required property 'surface'"};e===null?e=[a]:e.push(a),o++}if(t.root===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"root"},message:"must have required property 'root'"};e===null?e=[a]:e.push(a),o++}if(t.components===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"components"},message:"must have required property 'components'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="$schema"||a==="specVersion"||a==="surface"||a==="root"||a==="components"||a==="data")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.$schema!==void 0&&typeof t.$schema!="string"){let a={instancePath:r+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[a]:e.push(a),o++}if(t.specVersion!==void 0){let a=t.specVersion;if(typeof a=="string"){if(!On.test(a)){let i={instancePath:r+"/specVersion",schemaPath:"#/properties/specVersion/pattern",keyword:"pattern",params:{pattern:"^0\\.[123]\\.[0-9]+$"},message:'must match pattern "^0\\.[123]\\.[0-9]+$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/specVersion",schemaPath:"#/properties/specVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.surface!==void 0){let a=t.surface;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.id===void 0){let i={instancePath:r+"/surface",schemaPath:"#/properties/surface/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[i]:e.push(i),o++}if(a.title===void 0){let i={instancePath:r+"/surface",schemaPath:"#/properties/surface/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!Q.call(Dr.properties.surface.properties,i)){let u={instancePath:r+"/surface",schemaPath:"#/properties/surface/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}if(a.id!==void 0){let i=a.id;if(typeof i=="string"){if(!F.test(i)){let u={instancePath:r+"/surface/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/surface/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[u]:e.push(u),o++}}if(a.title!==void 0&&typeof a.title!="string"){let i={instancePath:r+"/surface/title",schemaPath:"#/properties/surface/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}if(a.intent!==void 0){let i=a.intent;if(typeof i=="string"){if(!K.test(i)){let u={instancePath:r+"/surface/intent",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/surface/intent",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[u]:e.push(u),o++}}if(a.pattern!==void 0&&typeof a.pattern!="string"){let i={instancePath:r+"/surface/pattern",schemaPath:"#/properties/surface/properties/pattern/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}if(a.journey!==void 0&&typeof a.journey!="string"){let i={instancePath:r+"/surface/journey",schemaPath:"#/properties/surface/properties/journey/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}if(a.subtitle!==void 0&&(g(a.subtitle,{instancePath:r+"/surface/subtitle",parentData:a,parentDataProperty:"subtitle",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),a.breadcrumbs!==void 0){let i=a.breadcrumbs;if(Array.isArray(i)){if(i.length>4){let f={instancePath:r+"/surface/breadcrumbs",schemaPath:"#/properties/surface/properties/breadcrumbs/maxItems",keyword:"maxItems",params:{limit:4},message:"must NOT have more than 4 items"};e===null?e=[f]:e.push(f),o++}let u=i.length;for(let f=0;f<u;f++){let m=i[f];if(m&&typeof m=="object"&&!Array.isArray(m)){if(m.label===void 0){let x={instancePath:r+"/surface/breadcrumbs/"+f,schemaPath:"#/properties/surface/properties/breadcrumbs/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[x]:e.push(x),o++}for(let x in m)if(!(x==="label"||x==="action")){let y={instancePath:r+"/surface/breadcrumbs/"+f,schemaPath:"#/properties/surface/properties/breadcrumbs/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"};e===null?e=[y]:e.push(y),o++}m.label!==void 0&&(g(m.label,{instancePath:r+"/surface/breadcrumbs/"+f+"/label",parentData:m,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),m.action!==void 0&&(Z(m.action,{instancePath:r+"/surface/breadcrumbs/"+f+"/action",parentData:m,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?Z.errors:e.concat(Z.errors),o=e.length))}else{let x={instancePath:r+"/surface/breadcrumbs/"+f,schemaPath:"#/properties/surface/properties/breadcrumbs/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[x]:e.push(x),o++}}}else{let u={instancePath:r+"/surface/breadcrumbs",schemaPath:"#/properties/surface/properties/breadcrumbs/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[u]:e.push(u),o++}}if(a.badge!==void 0){let i=a.badge;if(i&&typeof i=="object"&&!Array.isArray(i)){if(i.text===void 0){let u={instancePath:r+"/surface/badge",schemaPath:"#/properties/surface/properties/badge/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'"};e===null?e=[u]:e.push(u),o++}for(let u in i)if(!(u==="text"||u==="tone")){let f={instancePath:r+"/surface/badge",schemaPath:"#/properties/surface/properties/badge/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:u},message:"must NOT have additional properties"};e===null?e=[f]:e.push(f),o++}if(i.text!==void 0&&(g(i.text,{instancePath:r+"/surface/badge/text",parentData:i,parentDataProperty:"text",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),i.tone!==void 0){let u=i.tone;if(!(u==="neutral"||u==="info"||u==="success"||u==="warning"||u==="danger")){let f={instancePath:r+"/surface/badge/tone",schemaPath:"#/$defs/Tone/enum",keyword:"enum",params:{allowedValues:cr.enum},message:"must be equal to one of the allowed values"};e===null?e=[f]:e.push(f),o++}}}else{let u={instancePath:r+"/surface/badge",schemaPath:"#/properties/surface/properties/badge/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[u]:e.push(u),o++}}if(a.avatar!==void 0&&(g(a.avatar,{instancePath:r+"/surface/avatar",parentData:a,parentDataProperty:"avatar",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),a.actions!==void 0){let i=a.actions;if(typeof i=="string"){if(!F.test(i)){let u={instancePath:r+"/surface/actions",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/surface/actions",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[u]:e.push(u),o++}}if(a.presentation!==void 0){let i=a.presentation;if(!(i==="page"||i==="panel")){let u={instancePath:r+"/surface/presentation",schemaPath:"#/properties/surface/properties/presentation/enum",keyword:"enum",params:{allowedValues:Dr.properties.surface.properties.presentation.enum},message:"must be equal to one of the allowed values"};e===null?e=[u]:e.push(u),o++}}if(a.dismissible!==void 0&&typeof a.dismissible!="boolean"){let i={instancePath:r+"/surface/dismissible",schemaPath:"#/properties/surface/properties/dismissible/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[i]:e.push(i),o++}if(a.kind!==void 0){let i=a.kind;if(!(i==="surface"||i==="shell")){let u={instancePath:r+"/surface/kind",schemaPath:"#/properties/surface/properties/kind/enum",keyword:"enum",params:{allowedValues:Dr.properties.surface.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[u]:e.push(u),o++}}if(a.origin!==void 0){let i=a.origin;if(!(i==="generated"||i==="authored")){let u={instancePath:r+"/surface/origin",schemaPath:"#/properties/surface/properties/origin/enum",keyword:"enum",params:{allowedValues:Dr.properties.surface.properties.origin.enum},message:"must be equal to one of the allowed values"};e===null?e=[u]:e.push(u),o++}}}else{let i={instancePath:r+"/surface",schemaPath:"#/properties/surface/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}if(t.root!==void 0){let a=t.root;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/root",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/root",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.components!==void 0){let a=t.components;if(Array.isArray(a)){if(a.length<1){let u={instancePath:r+"/components",schemaPath:"#/properties/components/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++)Qt(a[u],{instancePath:r+"/components/"+u,parentData:a,parentDataProperty:u,rootData:n,dynamicAnchors:d})||(e=e===null?Qt.errors:e.concat(Qt.errors),o=e.length)}else{let i={instancePath:r+"/components",schemaPath:"#/properties/components/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}if(t.data!==void 0){let a=t.data;if(!(a&&typeof a=="object"&&!Array.isArray(a))){let i={instancePath:r+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return jr.errors=e,o===0}jr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Go=Is,sd={Table:["columns","rowAction","rowValuePath"],Tree:["labelPath","childrenPath","valuePath","detailPath","action"],Chart:["x","series"],Comparison:["itemTitle","attributes","choose"],Collection:["datePath"],Text:["itemPath"],Media:["imagePath","altPath"],DetailList:["rowAction"]},nd={Views:["views"],Steps:["steps"]},Ws=new Set(["ui.dismiss","ui.back","ui.next","ui.copy"]),Gs={Collection:"items",Table:"rows",Comparison:"items",Chart:"data",Choice:"options",Tree:"items",Text:"items",Media:"items"},dd=new Set(["TextInput","Choice","Toggle","DateInput","RangeInput","Rating","FileInput","ColorInput","CodeInput"]),Ys=t=>{let r=t;for(;r?.$ref;)r=Go.$defs[r.$ref.replace("#/$defs/","")];return r},pd=t=>t?.$ref?.replace("#/$defs/","");function fr(t,r,s,l,n){let d=pd(t);if(d==="Id"&&typeof r=="string")return void n.ids.push({id:r,at:s,prop:l.prop,panel:l.panel});if(d==="Path"&&typeof r=="string")return void n.paths.push({path:r,at:s,itemScoped:l.itemScoped,list:l.itemScoped?l.list:void 0});if(d==="Capability"&&typeof r=="string")return void n.actions.push({name:r,at:s});if(l.prop==="group"&&r&&!Array.isArray(r)&&typeof r=="object"&&"path"in r){let o=r;n.paths.push({path:o.path,at:`${s}/path`,itemScoped:l.itemScoped});for(let c of["namePath","imagePath"])o[c]&&n.paths.push({path:o[c],at:`${s}/${c}`,itemScoped:!0,list:{path:o.path}});return}if(d==="Options"&&r&&!Array.isArray(r)&&typeof r=="object"){let o=r;n.paths.push({path:o.path,at:`${s}/path`,itemScoped:l.itemScoped});for(let c of["valuePath","labelPath","descriptionPath","avatarPath","imagePath","recentPath"])o[c]&&n.paths.push({path:o[c],at:`${s}/${c}`,itemScoped:!0,list:{path:o.path}});return}let e=Ys(t);if(e){if(e.oneOf){let o=e.oneOf.find(c=>{let a=Ys(c);return Array.isArray(r)?a.type==="array":r&&typeof r=="object"?a.type==="object":a.type!=="object"&&a.type!=="array"});o&&fr(o,r,s,l,n);return}if(Array.isArray(r)&&e.items)r.forEach((o,c)=>fr(e.items,o,`${s}/${c}`,l,n));else if(r&&typeof r=="object"&&!Array.isArray(r))for(let[o,c]of Object.entries(r)){let a=e.properties?.[o]??(typeof e.additionalProperties=="object"?e.additionalProperties:void 0);a&&fr(a,c,`${s}/${o}`,l,n)}}}function ur(t,r){if(!r.startsWith("/"))return;let s=t;for(let l of r.slice(1).split("/").map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))){if(s===null||typeof s!="object"||!(l in s))return;s=s[l]}return s}function Wo(t,r){let s=r.path.startsWith("/")?[t]:r.parent?Wo(t,r.parent):[],l=r.path.startsWith("/")?r.path:`/${r.path}`;return s.flatMap(n=>{let d=ur(n,l);return Array.isArray(d)?d:[]})}function Xs(t,r,s="",l=0){return l>4||!t||typeof t!="object"||Array.isArray(t)?[]:Object.entries(t).flatMap(([n,d])=>[...n===r?[`${s}/${n}`]:[],...Xs(d,r,`${s}/${n}`,l+1)])}var Js=t=>t.keyword==="additionalProperties"?`unknown property "${t.params.additionalProperty}"`:t.keyword==="const"&&t.instancePath.endsWith("/component")?`unknown component "${t.data}"`:t.keyword==="discriminator"?"unknown or missing component type":t.message??t.keyword;function Yo(t,r={}){let s=[],l=(P,N)=>s.push({severity:"error",at:P,message:N}),n=(P,N)=>s.push({severity:"warning",at:P,message:N});if(!Ko(t)){let P=Ko.errors??[],N=P.filter($=>!P.some(k=>k!==$&&k.instancePath.startsWith($.instancePath+"/"))),E=new Set;for(let $ of N){let k=`${$.instancePath||"/"}: ${Js($)}`;E.has(k)||(E.add(k),l($.instancePath||"/",Js($)))}return{valid:!1,issues:s}}let d=t,e=new Map;d.components.forEach((P,N)=>{e.has(P.id)?l(`/components/${N}/id`,`duplicate id "${P.id}"`):e.set(P.id,{c:P,index:N})}),e.has(d.root)||l("/root",`root "${d.root}" is not a component id`);let o=new Map;for(let[P,{c:N,index:E}]of e){let $={ids:[],paths:[],actions:[]},k=Go.$defs[`Component${N.component}`];for(let[v,S]of Object.entries(N)){if(v==="id"||v==="component")continue;let I=sd[N.component]?.includes(v)??!1,j=N[Gs[N.component]]?.path,C=I&&typeof j=="string"?{path:j}:void 0;nd[N.component]?.includes(v)&&Array.isArray(S)?S.forEach((B,L)=>fr(k.properties[v].items,B,`/components/${E}/${v}/${L}`,{prop:v,itemScoped:I,panel:`${P}#${L}`,list:C},$)):fr(k.properties[v],S,`/components/${E}/${v}`,{prop:v,itemScoped:I,list:C},$)}o.set(P,$)}for(let[P,N]of o){let E=e.get(P).c;for(let $ of N.ids){let k=e.get($.id);if(!k){l($.at,`references unknown component "${$.id}"`);continue}$.id===P&&l($.at,"component references itself");let v=Bo[`${E.component}.${$.prop}`];v&&!v.includes(k.c.component)&&l($.at,`${E.component}.${$.prop} must reference ${v.join(" or ")}, not ${k.c.component}`)}for(let $ of N.actions)$.name.startsWith("ui.")&&!Ws.has($.name)&&l($.at,`"${$.name}" is not a renderer action (${[...Ws].join(", ")})`)}for(let[,{c:P,index:N}]of e)P.component==="TextInput"&&P.placeholder!==void 0&&P.kind!=="search"&&n(`/components/${N}/placeholder`,"placeholders are only for search fields; use the label and help text"),P.component==="Media"&&!P.decorative&&P.alt===void 0&&l(`/components/${N}`,"Media needs alt text unless it is decorative");let c=new Map,a=new Set,i=new Set,u=new Map,f=[],m=(P,N,E,$,k)=>{let v=e.get(P);if(!v)return;if($.includes(P))return l(`/components/${v.index}`,`cycle: ${[...$,P].join(" \u2192 ")}`);a.add(P),E&&i.add(P),k&&u.set(P,k);let{c:S,index:I}=v,j=N;S.component==="Confirm"&&(j=[...N,`${P}#dialog`]),S.component==="Action"&&S.emphasis==="primary"&&f.push({at:`/components/${I}`,stack:j}),S.component==="Form"&&f.push({at:`/components/${I}/submit`,stack:j}),S.component==="Steps"&&f.push({at:`/components/${I}/finish`,stack:[...j,`${P}#${S.steps.length-1}`]});for(let C of o.get(P).ids){if(!e.has(C.id)||C.id===P)continue;let U=C.prop==="items"&&S.component==="Collection"||(C.prop==="rowActions"||C.prop==="detail")&&S.component==="Table",B=c.get(C.id);if(B&&B!==P){l(C.at,`"${C.id}" already has parent "${B}"; a component can appear in only one place`);continue}c.set(C.id,P);let L=U?S[S.component==="Table"?"rows":"items"]?.path:void 0,W=typeof L=="string"?{path:L,parent:L.startsWith("/")?void 0:k}:k;m(C.id,C.panel?[...j,C.panel]:j,E||U,[...$,P],W)}};e.has(d.root)&&m(d.root,[],!1,[]),typeof d.surface?.actions=="string"&&e.has(d.surface.actions)&&m(d.surface.actions,[],!1,[]);for(let[P,{c:N}]of e)N.component==="Navigation"&&!a.has(P)&&m(P,[],!1,[]);for(let[P,{index:N}]of e)a.has(P)||n(`/components/${N}`,`"${P}" is not reachable from root "${d.root}"`);let x=(P,N,E)=>s.push({severity:P,at:N,message:E,code:"shell:structure"}),y=d.surface?.kind==="shell",h=[...e].filter(([,{c:P}])=>Cs.includes(P.component));if(y){d.surface?.origin!=="authored"&&x("error","/surface/origin",'a shell is authored; set surface.origin to "authored"');let P=e.get(d.root)?.c.component;P&&P!=="Frame"&&x("error","/root",`a shell's root is a Frame, not ${P}`);let N=[...e].filter(([,{c:v}])=>v.component==="Outlet");N.length===0&&x("error","/components","a shell has exactly one Outlet, reachable from the Frame's main; this one has none");for(let[,{index:v}]of N.slice(1))x("error",`/components/${v}`,"a shell has exactly one Outlet; this is another");let E=new Set,$=P==="Frame"?e.get(d.root).c.main:void 0,k=v=>{if(!(typeof v!="string"||E.has(v)||!e.has(v))){E.add(v);for(let S of o.get(v).ids)k(S.id)}};typeof $=="string"&&k($);for(let[v,{index:S}]of N.slice(0,1))typeof $=="string"&&!E.has(v)&&x("error",`/components/${S}`,`the Outlet "${v}" is not reachable from the Frame's main "${$}"`)}else for(let[,{c:P,index:N}]of h)x("error",`/components/${N}`,`${P.component} belongs in a shell document: set surface.kind to "shell"`);for(let[P,{c:N,index:E}]of e){if(N.component!=="Navigation"||N.placement===void 0)continue;let $=c.get(P);(!$||e.get($)?.c.component!=="Frame")&&x("warning",`/components/${E}/placement`,"Navigation.placement only applies to a Frame's navigation; here nothing reads it")}let b=Math.max(1,r.emphasisBudget??1),w=(P,N)=>P.every((E,$)=>N[$]===E),T=(P,N)=>w(P.stack,N.stack)||w(N.stack,P.stack);for(let P=0;P<f.length;P++){let N=f.filter((E,$)=>$>=P&&T(f[P],E));if(N.length>b){let E=N[b];l(E.at,b===1?`more than one primary action visible at once (also ${N[0].at})`:`more than ${b} primary actions visible at once (also ${N.slice(0,b).map($=>$.at).join(", ")})`);break}}if(d.data!==void 0)for(let[,{c:P,index:N}]of e){let E=Gs[P.component],$=E&&P[E]&&typeof P[E]=="object"?P[E].path:void 0;if(typeof $!="string"||!$.startsWith("/"))continue;let k=ur(d.data,$);k!==void 0&&!Array.isArray(k)&&l(`/components/${N}/${E}/path`,`${P.component}.${E} must point at a list; "${$}" is ${k===null?"null":typeof k} in data`)}let A=(P,N)=>s.push({severity:r.missingData??"warning",at:P,message:N,code:"data:missing-path"}),R=[];for(let[,{c:P}]of e)dd.has(P.component)&&typeof P.value?.path=="string"&&P.value.path.startsWith("/")&&R.push(P.value.path);let M=P=>R.some(N=>N===P||N.startsWith(`${P}/`)||P.startsWith(`${N}/`));for(let[P,N]of o){let E=i.has(P);for(let $ of N.paths)if($.path.startsWith("/")){if(d.data!==void 0&&ur(d.data,$.path)===void 0&&!M($.path)){let k=E?u.get(P):void 0,v=$.path.slice($.path.lastIndexOf("/")+1),S=k&&Wo(d.data,k).some(j=>ur(j,`/${v}`)!==void 0),I=S?void 0:Xs(d.data,v).slice(0,1)[0];A($.at,`path "${$.path}" does not exist in data`+(S?`: inside a repeated item, the item's own field is "${v}", without the slash`:I?` (did you mean "${I}"?)`:""))}}else{if(!$.itemScoped&&!E){l($.at,`relative path "${$.path}" used outside a repeated item`);continue}let k=$.list??u.get(P);if(d.data===void 0||!k)continue;let v=Wo(d.data,k);if(v.length&&v.every(S=>ur(S,`/${$.path}`)===void 0)){let S=Object.keys(v.find(I=>I&&typeof I=="object")??{});A($.at,`"${$.path}" is not a field of the items in ${k.path}${S.length?` (they have ${S.join(", ")})`:""}`)}}}return{valid:!s.some(P=>P.severity==="error"),issues:s}}var ld={Section:["children"],Group:["children"],Card:["children"],Disclosure:["children"],Form:["children"],ActionBar:["children"],FilterPanel:["children"],Panel:["children"],ActionMenu:["children"],Columns:["children"]},cd={Card:["media"],Collection:["empty","bulkActions"],Table:["empty","toolbar","bulkActions","rowActions","search","detail"],Status:["action"],Confirm:["summary"],Form:["aside"],FilterPanel:["results"],Panel:["actions"],ActionMenu:["primary"],Split:["primary","detail","empty"],Frame:["banner","header","navigation","main","aside","footer"],AppBar:["leading","search","actions","account"],Footer:["aside"],Outlet:["loading"],Custom:["fallback"]},ud={Views:"views",Steps:"steps"},fd=/^[A-Za-z][A-Za-z0-9_-]*$/,md=t=>t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").replace(/^([^a-z])/,"c-$1")||"c";function Jo(t){let r=[],s=new Set,l=f=>{let m=typeof f.id=="string"&&fd.test(f.id)?f.id:md(f.key??f.component??"c"),x=m;for(let y=2;s.has(x);y++)x=`${m}-${y}`;return s.add(x),x},n=f=>{if(!f||typeof f!="object"||typeof f.component!="string")throw new Error("expected a component object");let m=l(f),x={...f,id:m};r.push(x);for(let h of ld[f.component]??[])Array.isArray(f[h])&&(x[h]=f[h].map(n));for(let h of cd[f.component]??[])f[h]&&typeof f[h]=="object"&&(x[h]=n(f[h]));f.component==="Collection"&&f.items&&typeof f.items=="object"&&"item"in f.items&&(x.items={path:f.items.path,componentId:n(f.items.item)});let y=ud[f.component];return y&&Array.isArray(f[y])&&(x[y]=f[y].map(h=>({...h,content:h.content&&typeof h.content=="object"?n(h.content):h.content}))),m},{root:d,navigation:e,surface:o,...c}=t,a=n(d),i=e?n(e):void 0,u={...c,root:a,components:r};if(o){let f=o.actions&&typeof o.actions=="object"?n(o.actions):o.actions;u.surface=f===void 0?o:{...o,actions:f}}return u}var Xo=t=>!!t&&typeof t.root=="object"&&t.root!==null;var xd=["antd","bootstrap","brutalist","carbon","chakra","civic","editorial","finance","fluent","glass","govuk","health","mantine","material3","mono","neon","pastel","polaris","primer","radix","shadcn","sketch","spectrum","terminal","wireframe"],Qo=t=>"data:image/svg+xml;utf8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><rect width="10" height="10" fill="#999"/><title>'+String(t).replace(/[<&]/g,"")+"</title></svg>");qr();var Qs={mount:(t,r)=>pr(t,{resolveMedia:Qo,...r}),defineElements:qr,registry:nt,Skeleton:sr,h:p,render:ir,getPointer:X,setPointer:Je,validateDocument:Yo,flattenTree:Jo,isTree:Xo,themes:xd,specVersion:Ro,placeholderMedia:Qo};if(typeof window<"u"){window.PolyxdWeb=Qs;let t=document.getElementById("root");if(window.__PXD__&&t){window.__pxdActions=[],window.__pxdDismissed=0;let{document:r,theme:s,mode:l}=window.__PXD__,n={document:r,theme:s,mode:l,onAction:d=>window.__pxdActions.push(d),resolveMedia:Qo};if(r.surface.kind==="shell"){let d=document.createElement("div");d.innerHTML='<h1 class="pxd-surface-title">Screen</h1><p>The current screen renders here.</p>',pr(t,{...n,outlet:d,current:{key:r.components.find(e=>e.component==="Navigation")?.items?.[0]?.key,title:"Screen"}})}else pr(t,{...n,onDismiss:()=>window.__pxdDismissed+=1});requestAnimationFrame(()=>requestAnimationFrame(()=>window.__pxdReady=!0))}}var gd=Qs;return nn(yd);})();
7
+ `;default:return s()}}function is(t){let r=[],s=/\*\*([^*]+)\*\*|\*([^*]+)\*/g,p=0;for(let n=s.exec(t);n;n=s.exec(t)){n.index>p&&r.push(document.createTextNode(t.slice(p,n.index)));let d=document.createElement(n[1]?"strong":"em");d.textContent=n[1]??n[2],r.push(d),p=n.index+n[0].length}return p<t.length&&r.push(document.createTextNode(t.slice(p))),r}function Zn(t){let r=[],s=null;for(let p of t.split(`
8
+ `)){let n=/^(-|\d+\.)\s+(.*)$/.exec(p);if(n){let e=n[1]==="-"?"ul":"ol";(!s||s.tagName.toLowerCase()!==e)&&(s=document.createElement(e),r.push(s));let o=document.createElement("li");o.append(...is(n[2])),s.append(o);continue}s=null;let d=document.createElement("div");p?d.append(...is(p)):d.append(document.createElement("br")),r.push(d)}return r}function Kn(t,r,s,p){let n=r.b,d=String(n.value(t.value)??""),e=m=>n.write(t.value,ps(m).replace(/\n+$/,"")),o=m=>x=>{x.preventDefault();let y=x.currentTarget.closest(".pxd-richtext")?.querySelector(".pxd-richtext-area");y&&(y.focus(),document.execCommand(m),e(y))},{id:c,class:a,required:i,autocomplete:u,...f}=p;return Ee(s,l("div",{class:"pxd-richtext"},l("div",{class:"pxd-richtext-toolbar",role:"toolbar","aria-label":"Formatting"},l("button",{type:"button",class:"pxd-richtext-control","aria-label":"Bold",onMousedown:o("bold")},l("strong",null,"B")),l("button",{type:"button",class:"pxd-richtext-control","aria-label":"Italic",onMousedown:o("italic")},l("em",null,"I")),l("button",{type:"button",class:"pxd-richtext-control","aria-label":"Bulleted list",onMousedown:o("insertUnorderedList")},Z("menu",16))),l("div",{...f,id:c,class:"pxd-input pxd-richtext-area",contenteditable:"true",role:"textbox","aria-multiline":"true","aria-label":s.label,ref:m=>{let x=m;!x||x.dataset.ready||(x.dataset.ready="1",x.replaceChildren(...Zn(d)))},onInput:m=>e(m.currentTarget),onBlur:m=>e(m.currentTarget)})))}function Wn(t,r,s,p){let n=r.b,d=String(n.value(t.value)??""),[e,o]=r.state(t,"inline",null),c=()=>{e!==null&&n.write(t.value,e),o(null)};return e===null?l("div",{class:"pxd-inline-edit"},l("span",{class:"pxd-field-label"},s.label),l("button",{type:"button",class:"pxd-inline-value","aria-label":`Edit ${s.label}`,onClick:()=>o(d)},l("span",{class:d?void 0:"pxd-inline-empty"},d||"Not set"),l("span",{class:"pxd-inline-hint","aria-hidden":"true"},"Edit"))):Ee(s,l("input",{...p,type:"text",value:e,ref:a=>a&&!a.dataset.focused&&(a.dataset.focused="1",a.focus()),onInput:a=>o(fe(a)),onBlur:c,onKeydown:a=>{a.key==="Enter"?(a.preventDefault(),c()):a.key==="Escape"&&o(null)}}))}var ss=(t,r,s)=>l("div",{class:"pxd-option-text"},l("label",{for:t},r),s&&l("span",{class:"pxd-option-description",id:`${t}-desc`},s)),Ge=(t,...r)=>l("span",{"data-state":"checked",class:t,style:{pointerEvents:"none"}},...r);function ls(t,r){let s=r.b,p=r.id(t,"label"),n=r.id(t,"help"),d=Re(t,r.r.data,s.scope,s.text),[e,o]=r.state(t,"query",""),c=Or(d,t.mode),{multiple:a,withFaces:i,searchable:u}=c,f=c.control==="chips",m=s.value(t.value),x=Ce,y=v=>Kr(p,v),h=t.help!==void 0?s.text(t.help):void 0,b=r.a11y(t),w=s.text(t.label),D=l("div",{class:"pxd-field-label",id:p},w,t.required&&He()),z=h&&l("p",{class:"pxd-field-help",id:n},h),R=u&&l("div",{class:"pxd-search pxd-search-compact"},Z("search"),l("input",{type:"search",class:"pxd-search-input",placeholder:Zr(i),"aria-label":`Search ${w}`,value:e,onInput:v=>o(fe(v))})),q=v=>hr(v,e);if(a){let v=$=>Lr(m,$),k=$=>s.write(t.value,Vr(m,$));if(f)return l("div",{class:"pxd-field pxd-choice",role:"group","aria-labelledby":p,"aria-describedby":h?n:void 0,...b},D,z,l("div",{class:"pxd-chips"},...d.map($=>Se({key:x($.value),class:"pxd-chip",checked:v($.value),onCheckedChange:()=>k($.value),indicator:Ge("pxd-chip-check",Z("check",18))},$.label))));if(i){let{recent:$,rest:j}=br(d,e);return l("fieldset",{class:"pxd-field pxd-choice pxd-people","aria-describedby":h?n:void 0,...b},l("legend",{class:"pxd-field-label",id:p},w),z,R,l("div",{class:"pxd-people-group"},$.length>0&&l("div",{class:"pxd-people-recent"},...$.map(A=>Se({key:x(A.value),class:"pxd-person-tile",checked:v(A.value),onCheckedChange:()=>k(A.value),"aria-label":A.label,indicator:null},l("span",{class:"pxd-person-face"},ge(r,{value:A.avatar,name:A.label,size:56}),v(A.value)&&Ge("pxd-person-tick",Z("check",14))),l("span",{class:"pxd-person-name","aria-hidden":"true"},A.label.split(" ")[0])))),l("div",{class:"pxd-people-list"},...j.map(A=>{let C=y(A.value);return Se({key:x(A.value),id:C,class:"pxd-person-row",checked:v(A.value),onCheckedChange:()=>k(A.value),"aria-labelledby":`${C}-name`,"aria-describedby":A.description?`${C}-desc`:void 0,indicator:null},ge(r,{value:A.avatar,name:A.label}),l("span",{class:"pxd-person-text"},l("span",{id:`${C}-name`},A.label),A.description&&l("span",{class:"pxd-option-description",id:`${C}-desc`},A.description)),v(A.value)&&Ge("pxd-person-check",Z("check")))}))))}return l("fieldset",{class:"pxd-field pxd-choice","aria-describedby":h?n:void 0,...b},l("legend",{class:"pxd-field-label",id:p},w),z,R,l("div",{class:`pxd-choice-list${u?" pxd-choice-scroll":""}`},...d.filter(q).map($=>{let j=y($.value);return l("div",{class:"pxd-choice-option",key:x($.value)},$.avatar!==void 0&&ge(r,{value:$.avatar,name:$.label,size:32}),Se({id:j,class:"pxd-checkbox",checked:v($.value),onCheckedChange:()=>k($.value),"aria-describedby":$.description?`${j}-desc`:void 0,indicator:Ge("pxd-checkbox-indicator","\u2713")}),ss(j,$.label,$.description))})))}let P=m==null?"":x(m),N=v=>s.write(t.value,d.find(k=>x(k.value)===v)?.value),M=(v,k,$,j,...A)=>Ke({key:x(v.value),value:x(v.value),group:P,first:k===0,onSelect:()=>N(x(v.value)),indicator:j,...$},...A);if(f)return l("div",{class:"pxd-field pxd-choice",...b},D,z,_e({class:"pxd-chips","aria-labelledby":p,"aria-describedby":h?n:void 0,"aria-required":t.required||void 0,value:P,onValueChange:N,orientation:"horizontal"},...d.map((v,k)=>M(v,k,{class:"pxd-chip","data-orientation":"horizontal"},Ge("pxd-chip-check",Z("check",18)),v.label))));if(i){let{recent:v,rest:k}=br(d,e);return l("div",{class:"pxd-field pxd-choice pxd-people",...b},D,z,R,_e({"aria-labelledby":p,"aria-describedby":h?n:void 0,"aria-required":t.required||void 0,value:P,onValueChange:N,class:"pxd-people-group"},v.length>0&&l("div",{class:"pxd-people-recent",role:"presentation"},...v.map(($,j)=>M($,j,{class:"pxd-person-tile","aria-label":$.label},null,ge(r,{value:$.avatar,name:$.label,size:56}),l("span",{class:"pxd-person-name","aria-hidden":"true"},$.label.split(" ")[0])))),l("div",{class:"pxd-people-list",role:"presentation"},...k.map(($,j)=>{let A=y($.value);return M($,v.length+j,{id:A,class:"pxd-person-row","aria-labelledby":`${A}-name`,"aria-describedby":$.description?`${A}-desc`:void 0},null,ge(r,{value:$.avatar,name:$.label}),l("span",{class:"pxd-person-text"},l("span",{id:`${A}-name`},$.label),$.description&&l("span",{class:"pxd-option-description",id:`${A}-desc`},$.description)),P===x($.value)&&Ge("pxd-person-check",Z("check")))}))))}return l("div",{class:"pxd-field pxd-choice",...b},D,z,R,_e({class:`pxd-choice-list${u?" pxd-choice-scroll":""}`,"aria-labelledby":p,"aria-describedby":h?n:void 0,"aria-required":t.required||void 0,value:P,onValueChange:N,orientation:"vertical"},...d.filter(q).map((v,k)=>{let $=y(v.value);return l("div",{class:"pxd-choice-option",key:x(v.value)},M(v,k,{id:$,class:"pxd-radio","aria-describedby":v.description?`${$}-desc`:void 0,"data-orientation":"vertical"},l("span",{"data-state":"checked",class:"pxd-radio-indicator",style:{pointerEvents:"none"}})),ss($,v.label,v.description))})))}function cs(t,r){let s=r.b,p=r.id(t),n=r.id(t,"desc"),d=!!s.value(t.value),e=t.description!==void 0?s.text(t.description):void 0,o=a=>{s.write(t.value,a),t.action&&r.r.dispatch({event:{name:t.action.event.name,context:Ve(t,r.r.data,s.scope,a)}},{pointer:""},t.id)},c=r.a11y(t);return l("div",{class:"pxd-toggle"},t.action?Ni({id:p,class:"pxd-switch",checked:d,onCheckedChange:o,"aria-describedby":e?n:void 0,...c}):Se({id:p,class:"pxd-checkbox",checked:d,onCheckedChange:a=>o(a===!0),"aria-describedby":e?n:void 0,...c,indicator:Ge("pxd-checkbox-indicator","\u2713")}),l("div",{class:"pxd-toggle-text"},l("label",{for:p,class:"pxd-toggle-label"},s.text(t.label)),e&&l("p",{class:"pxd-field-help",id:n},e)))}var ns={date:"date",time:"time",datetime:"datetime-local",month:"month"};function us(t,r){let s=r.b,p=r.r,n=r.id(t),d=r.id(t,"help"),e=t.kind??"date",o=t.help!==void 0?s.text(t.help):void 0,c=s.value(t.value),a=t.min!==void 0?s.text(t.min):void 0,i=t.max!==void 0?s.text(t.max):void 0,u=r.a11y(t),f=s.text(t.label);if(t.multiple&&e!=="dateRange"){let m=Array.isArray(c)?c.map(String):[],x=b=>te(b,{type:e==="month"?"date":e==="time"?"time":e==="datetime"?"datetime":"date"},p.locale),y=b=>b&&!m.includes(b)&&s.write(t.value,[...m,b].sort()),h=b=>{let w=b.currentTarget;y(w.value),w.value=""};return l("fieldset",{class:"pxd-field pxd-date-multiple",...u},l("legend",{class:"pxd-field-label"},f,t.required&&He()),o&&l("p",{class:"pxd-field-help",id:d},o),m.length>0&&l("ul",{class:"pxd-tags-list","aria-label":`Chosen ${f}`},...m.map(b=>l("li",{key:b,class:"pxd-tag-chip"},e==="year"||e==="month"?b:x(b),l("button",{type:"button",class:"pxd-tag-remove","aria-label":`Remove ${b}`,onClick:()=>s.write(t.value,m.filter(w=>w!==b))},Z("close",14))))),l("label",{class:"pxd-date-add",for:n},l("span",{class:"pxd-sr-only"},"Add a date"),e==="year"?l("input",{id:n,class:"pxd-input pxd-input-year",inputmode:"numeric",pattern:"[0-9]{4}",maxlength:4,placeholder:"YYYY","aria-describedby":o?d:void 0,onKeydown:b=>b.key==="Enter"&&(b.preventDefault(),h(b)),onBlur:h}):l("input",{id:n,class:"pxd-input pxd-input-date",type:ns[e],min:a,max:i,"aria-describedby":o?d:void 0,onChange:h})))}if(e==="year")return Ee({label:f,help:o,required:t.required,id:n,helpId:d},l("input",{id:n,class:"pxd-input pxd-input-year",inputmode:"numeric",pattern:"[0-9]{4}",maxlength:4,placeholder:"YYYY",value:c??"",min:a,max:i,required:t.required,"aria-describedby":o?d:void 0,onInput:m=>s.write(t.value,fe(m).replace(/\D/g,"").slice(0,4)||null),...u}));if(e==="dateRange"){let[m,x]=Array.isArray(c)?c:[],y=(h,b)=>{let w=[m??null,x??null];w[h]=b||null,s.write(t.value,w)};return l("fieldset",{class:"pxd-field",...u},l("legend",{class:"pxd-field-label"},f),o&&l("p",{class:"pxd-field-help"},o),l("div",{class:"pxd-date-range"},l("label",null,"From",l("input",{class:"pxd-input",type:"date",value:m??"",min:a,max:i,required:t.required,onChange:h=>y(0,fe(h))})),l("label",null,"To",l("input",{class:"pxd-input",type:"date",value:x??"",min:m??a,max:i,required:t.required,onChange:h=>y(1,fe(h))}))))}return Ee({label:f,help:o,required:t.required,id:n,helpId:d},l("input",{id:n,class:`pxd-input pxd-input-date${e==="month"?" pxd-input-month":""}`,type:ns[e],value:c??"",min:a,max:i,required:t.required,"aria-describedby":o?d:void 0,onChange:m=>s.write(t.value,fe(m)||null),...u}))}function fs(t,r){let s=r.b,p=r.r,n=r.id(t,"label"),d=r.id(t,"min"),e=r.id(t,"max"),o=i=>te(i,se(t.format??{type:"number"},p.data,s.scope),p.locale),c=r.a11y(t);if(t.mode==="range"){let i=s.value(t.value),[u,f]=Array.isArray(i)?i.map(Number):[t.min,t.max],m=(x,y)=>s.write(t.value,[Math.max(t.min,Math.min(x,y)),Math.min(t.max,Math.max(x,y))]);return l("div",{class:"pxd-field pxd-range",role:"group","aria-labelledby":n,...c},l("div",{class:"pxd-range-header"},l("span",{class:"pxd-field-label",id:n},s.text(t.label)),l("output",{class:"pxd-range-value","aria-live":"polite"},`${o(u)} \u2013 ${o(f)}`)),Ho({min:t.min,max:t.max,step:t.step??1,values:[u,f],minStepsBetweenThumbs:1,onValueChange:([x,y])=>m(x,y),thumbs:[{"aria-label":"Minimum","aria-valuetext":o(u)},{"aria-label":"Maximum","aria-valuetext":o(f)}]}),l("div",{class:"pxd-range-fields"},l("label",{for:d},l("span",null,"Minimum"),l("input",{id:d,class:"pxd-input",inputmode:"numeric",value:String(u),onInput:x=>m(Number(fe(x))||t.min,f)})),l("span",{"aria-hidden":"true"},"\u2013"),l("label",{for:e},l("span",null,"Maximum"),l("input",{id:e,class:"pxd-input",inputmode:"numeric",value:String(f),onInput:x=>m(u,Number(fe(x))||t.max)}))))}let a=Number(s.value(t.value)??t.min);return l("div",{class:"pxd-field pxd-range",...c},l("div",{class:"pxd-range-header"},l("span",{class:"pxd-field-label",id:n},s.text(t.label)),l("output",{class:"pxd-range-value","aria-live":"polite"},o(a))),Ho({min:t.min,max:t.max,step:t.step??1,values:[a],onValueChange:([i])=>s.write(t.value,i),thumbs:[{"aria-labelledby":n,"aria-valuetext":o(a)}]}),l("div",{class:"pxd-range-bounds","aria-hidden":"true"},l("span",null,o(t.min)),l("span",null,o(t.max))))}function Gn(t){return(t.labels?.[0]?.textContent??t.getAttribute("aria-label")??t.closest(".pxd-field")?.querySelector(".pxd-field-label, legend")?.textContent??"").replace(/\*\s*$/,"").trim()}function Yn(t,r){let s=new Set,p=[];for(let n of Array.from(t.elements))if(!(!n.willValidate||n.validity.valid)){if(n.type==="radio"&&n.name){if(s.has(n.name))continue;s.add(n.name)}n.id||(n.id=`${r}-${p.length}`),p.push(n)}return p}function ms(t,r){let s=r.b,p=r.r,n=Math.min(r.heading,6),d=r.id(t,"summary"),[e,o]=r.state(t,"problems",()=>[]),[c]=r.state(t,"marked",()=>({current:[]})),a=(t.children??[]).some(y=>p.byId.get(y)?.required),i=()=>{for(let y of c.current)y.removeAttribute("aria-invalid"),y.pxdDescribed?y.setAttribute("aria-describedby",y.pxdDescribed):y.removeAttribute("aria-describedby"),y.pxdNote?.remove(),y.pxdNote=void 0;c.current=[]},u=y=>{for(let h of y){h.setAttribute("aria-invalid","true");let b=h.closest(".pxd-field");if(b&&!b.querySelector(".pxd-field-error")){let w=b.ownerDocument.createElement("p");w.className="pxd-field-error",w.id=`${h.id}-error`,w.textContent=h.validationMessage,b.append(w),h.pxdNote=w,h.pxdDescribed=h.getAttribute("aria-describedby"),h.setAttribute("aria-describedby",[h.pxdDescribed,w.id].filter(Boolean).join(" "))}}c.current=y},f=y=>{let h=document.getElementById(y);h&&(h.scrollIntoView({block:"center"}),h.focus(),document.activeElement!==h&&h.closest(".pxd-field")?.querySelector("[role='radio'], button, input:not([aria-hidden]), textarea, select")?.focus())},[m,x]=r.state(t,"announced",null);return e!==m&&(x(e),e.length&&r.after(()=>p.root?.querySelector(`[data-pxd-id="${CSS.escape(t.id)}"] .pxd-error-summary`)?.focus())),l("form",{class:`pxd-form${t.aside?" pxd-form-with-aside":""}${t.layout==="horizontal"?" pxd-form-horizontal":""}`,novalidate:!0,onSubmit:y=>{y.preventDefault();let h=y.currentTarget;if(i(),!h.checkValidity()){let b=Yn(h,d);return u(b),o(b.map(w=>({id:w.id,label:Gn(w),message:w.validationMessage})))}o([]),p.dispatch(t.submit.action,s.scope,t.id)},...r.a11y(t)},t.aside&&l("aside",{class:"pxd-form-aside"},r.render(t.aside)),l("div",{class:"pxd-stack pxd-form-fields"},e.length>0&&l("section",{class:"pxd-error-summary",role:"alert",tabindex:"-1","aria-labelledby":d},l(`h${n}`,{id:d,class:"pxd-error-summary-title"},"Check these fields before continuing"),l("ul",{class:"pxd-error-summary-list"},...e.map(y=>l("li",{key:y.id},l("a",{href:`#${y.id}`,class:"pxd-link",onClick:h=>(h.preventDefault(),f(y.id))},y.label?`${y.label}: ${y.message}`:y.message))))),a&&l("p",{class:"pxd-required-legend"},l("span",{class:"pxd-required","aria-hidden":"true"},"*")," ","Required"),...Te(r,t.children)),l("div",{class:"pxd-action-bar"},l("button",{type:"submit",class:"pxd-button pxd-button-primary"},s.text(t.submit.label)),t.cancel&&l("button",{type:"button",class:"pxd-button pxd-button-secondary",onClick:()=>p.dispatch(t.cancel.action,s.scope,t.id)},s.text(t.cancel.label))))}var Jn=()=>Pa(navigator.userAgentData?.platform??navigator.platform??"");function xs(t,r){let s=r.b,p=r.r,n=r.id(t,"desc"),[d,e]=r.state(t,"copied",!1),o=t.disabled!==void 0?!!s.value(t.disabled):!1,c=t.tone==="danger"?" pxd-button-danger":"",a=t.description!==void 0?s.text(t.description):void 0,i=typeof t.shortcut=="string"&&t.shortcut?wa(t.shortcut,Jn()):void 0,u=()=>{let x=t.action.event.name;if(x==="ui.back"&&r.steps)return r.steps.back();if(x==="ui.next"&&r.steps)return r.steps.next();if(x==="ui.copy"){let y=ba(t,p.data,s.scope,s.text),h=()=>{e(!0),setTimeout(()=>e(!1),2e3)};typeof navigator<"u"&&navigator.clipboard?.writeText?navigator.clipboard.writeText(y).then(h,()=>{}):h()}p.dispatch(t.action,s.scope,t.id)},f=p.doc.surface.kind==="shell",m=x=>{let y=x;y&&(y.pxdKey&&document.removeEventListener("keydown",y.pxdKey),!(!i||o)&&(y.pxdKey=h=>{let b=p.root;h.defaultPrevented||h.repeat||!b||!y.isConnected||!f&&!b.contains(document.activeElement)&&!(h.target instanceof HTMLElement&&b.contains(h.target))||ka(i,h)&&($a(i)&&Ti(h.target)||(h.preventDefault(),y.click()))},document.addEventListener("keydown",y.pxdKey),p.onDispose(()=>y.pxdKey&&document.removeEventListener("keydown",y.pxdKey))))};return l("button",{type:"button",class:`pxd-button pxd-button-${t.emphasis??"secondary"}${c}${a?" pxd-button-described":""}`,disabled:o,"aria-describedby":a?n:void 0,"aria-keyshortcuts":i?.aria,onClick:u,...r.a11y(t),ref:m},l("span",{class:"pxd-button-label"},d?"Copied":s.text(t.label)),i&&l("span",{class:"pxd-kbd-hint","aria-hidden":"true"},...i.hint.map((x,y)=>l("kbd",{key:y,class:"pxd-kbd"},x))),a&&l("span",{class:"pxd-button-description",id:n},a),t.action.event.name==="ui.copy"&&l("span",{class:"pxd-sr-only","aria-live":"polite"},d?"Copied":""))}function gs(t,r){let s=r.b,p=r.r,[n,d]=r.state(t,"task",null),e=t.current!==void 0?s.value(t.current):void 0,[o,c]=r.state(t,"step",()=>Yr(e,t.steps.length)),a=t.kind??"wizard",i=l("div",{class:"pxd-action-bar"},l("button",{type:"button",class:"pxd-button pxd-button-primary",onClick:()=>p.dispatch(t.finish.action,s.scope,t.id)},s.text(t.finish.label)));if(a==="guide")return l("div",{class:"pxd-steps pxd-guide",...r.a11y(t)},l("ol",{class:"pxd-guide-list"},...t.steps.map((w,D)=>l("li",{key:w.key,class:"pxd-guide-step"},l("span",{class:"pxd-guide-number","aria-hidden":"true"},D+1),l("div",{class:"pxd-guide-body"},Ne(r,"pxd-guide-title",s.text(w.title)),r.render(w.content))))),i);if(a==="tasklist"){let w=z=>Qr(z.status!==void 0?s.text(z.status):"todo"),D=t.steps.filter(z=>w(z).label==="Completed").length;return l("div",{class:"pxd-steps pxd-tasklist",...r.a11y(t)},l("p",{class:"pxd-steps-progress"},ta(D,t.steps.length)),l("ul",{class:"pxd-tasklist-list"},...t.steps.map(z=>{let R=n===z.key,{label:q,tone:P}=w(z),N=q==="Cannot start yet";return l("li",{key:z.key,class:`pxd-task${R?" pxd-task-open":""}`},l("div",{class:"pxd-task-row"},l("button",{type:"button",class:"pxd-task-title","aria-expanded":R,disabled:N,onClick:()=>d(ea(n,z.key))},s.text(z.title)),l("span",{class:`pxd-badge pxd-tone-${P} pxd-task-status`},q)),R&&l("div",{class:"pxd-task-content"},r.render(z.content)))})),i)}let u=t.steps.length,f=typeof e=="number"&&t.current?.path?{index:Math.max(0,Math.min(u-1,e)),total:u}:{...o,total:u},m=w=>{let D=Gr(f,{type:"go",index:w});t.current?.path?s.write(t.current,D.index):c(D)},x=f.index,y=t.steps[x],h=Jr(f),b=r.with({steps:{back:()=>m(x-1),next:()=>m(x+1)}});return l("div",{class:"pxd-steps",...r.a11y(t)},l("p",{class:"pxd-steps-progress"},Xr(f)),l("ol",{class:"pxd-steps-list"},...t.steps.map((w,D)=>l("li",{key:w.key,"aria-current":D===x?"step":void 0,class:D<x?"pxd-step-done":D===x?"pxd-step-current":void 0},s.text(w.title)))),l("form",{class:"pxd-steps-content",onSubmit:w=>{w.preventDefault(),h?p.dispatch(t.finish.action,s.scope,t.id):m(x+1)}},Ne(b,"pxd-steps-title",s.text(y.title)),b.render(y.content),l("div",{class:"pxd-action-bar"},l("button",{type:"submit",class:"pxd-button pxd-button-primary"},h?s.text(t.finish.label):"Continue"),x>0&&l("button",{type:"button",class:"pxd-button pxd-button-secondary",onClick:()=>m(x-1)},"Back"))))}function ys(t,r){let s=r.b,p=r.r,n=p.doc.root===t.id,[d,e]=r.state(t,"open",!0),[o,c]=r.state(t,"typed",""),a=r.id(t,"title"),i=r.id(t,"desc"),u=t.typeToConfirm!==void 0?s.text(t.typeToConfirm):void 0,f=!u||o.trim()===u,m=t.severity==="destructive",x=r.a11y(t),y=()=>{n||e(!1),p.dispatch(t.cancel?.action??{event:{name:"ui.dismiss"}},s.scope,t.id)},h=()=>f&&p.dispatch(t.confirm.action,s.scope,t.id),b=t.subject&&l("div",{class:"pxd-dialog-subject"},ge(r,{value:t.subject.avatar!==void 0?s.value(t.subject.avatar):void 0,name:s.text(t.subject.title),size:56}),l("div",null,l("div",{class:"pxd-dialog-subject-title"},s.text(t.subject.title)),t.subject.subtitle!==void 0&&l("div",{class:"pxd-dialog-subject-sub"},s.text(t.subject.subtitle)))),w=t.amount&&l("div",{class:"pxd-dialog-amount"},s.text(t.amount.value,t.amount.format)),D=Array.isArray(t.consequences)&&l("ul",{class:"pxd-consequences"},...t.consequences.map((v,k)=>l("li",{key:k},l("span",{class:"pxd-consequence-icon"},Z(v.icon??"info")),l("span",null,l("span",{class:"pxd-consequence-title"},s.text(v.title)),v.detail!==void 0&&l("span",{class:"pxd-consequence-detail"},s.text(v.detail)))))),z=l("div",{class:"pxd-dialog-description",id:i},t.message!==void 0&&l("p",null,s.text(t.message))),R=t.consequence!==void 0&&l("p",{class:"pxd-dialog-consequence",id:`${i}-consequence`},Z("info",18),l("span",null,s.text(t.consequence))),q=(v,k)=>[D,t.summary&&r.render(t.summary),u&&l("div",{class:"pxd-field"},l("label",{class:"pxd-field-label",for:`${t.id}-type`},"Type ",l("strong",null,u)," to confirm"),l("input",{id:`${t.id}-type`,class:"pxd-input",autocomplete:"off",value:o,onInput:$=>c($.target.value)})),R,l("div",{class:"pxd-action-bar"},v,k)],P=l("button",{type:"button",class:`pxd-button pxd-button-primary${m?" pxd-button-danger":""}`,disabled:!f,onClick:h},s.text(t.confirm.label)),N=t.cancel?s.text(t.cancel.label):"Cancel",M=t.consequence!==void 0?`${i} ${i}-consequence`:i;if(n){let[v,k]=r.state(t,"focused",!1);return v||(k(!0),r.after(()=>p.root?.querySelector(`[data-pxd-id="${CSS.escape(t.id)}"] > .pxd-action-bar > .pxd-button-secondary`)?.focus({preventScroll:!0}))),l("div",{role:"alertdialog","aria-modal":"false","aria-labelledby":a,"aria-describedby":M,class:`pxd-dialog pxd-dialog-inline${m?" pxd-dialog-destructive":""}`,onKeydown:$=>$.key==="Escape"&&y(),...x},l("h1",{class:"pxd-dialog-title",id:a},s.text(t.title)),w,b,z,...q(P,l("button",{type:"button",class:"pxd-button pxd-button-secondary",onClick:y},N)))}return d&&r.portal(ze({ctx:r,id:r.id(t,"dialog"),role:"alertdialog",class:`pxd-dialog${m?" pxd-dialog-destructive":""}`,onClose:y,props:{"aria-labelledby":a,"aria-describedby":M,...x}},l("h2",{id:a,class:"pxd-dialog-title"},s.text(t.title)),w,b,z,...q(P,l("button",{type:"button",class:"pxd-button pxd-button-secondary",autofocus:!0,onClick:y},N)))),null}function hs(t,r){let s=r.b,p=r.r,n=Y(t.items.path,s.scope),d=pe(J(p.data,n)),e=d.map((x,y)=>({pointer:ie(n,y)})),o=(x,y)=>J(p.data,Y(x,e[y])),c=t.recommended!==void 0?s.text(t.recommended):void 0,a=t.recommendedReason!==void 0?s.text(t.recommendedReason):void 0,i=so(t.attributes,d.length,o),u=no(t.attributes,s.text),f=po(d.map((x,y)=>String(o(t.itemTitle,y)??"")),c),m=(x,y)=>{let h=o(x.path,y);return typeof h=="boolean"?h?l("span",{class:"pxd-yes"},Z("check",18),l("span",{class:"pxd-sr-only"},"Included")):l("span",{class:"pxd-no"},Z("dash",18),l("span",{class:"pxd-sr-only"},"Not included")):te(h,se(x.format,p.data,s.scope),p.locale)};return l("div",{class:"pxd-comparison",...r.a11y(t)},t.summary!==void 0&&l("p",{class:"pxd-comparison-summary"},s.text(t.summary)),l("ul",{class:"pxd-comparison-items"},...f.map(x=>{let y=String(o(t.itemTitle,x)??""),h=c===y;return l("li",{key:x,class:`pxd-comparison-item${h?" pxd-recommended":""}`},h&&l("p",{class:"pxd-recommendation"},l("span",{class:"pxd-badge pxd-tone-info"},"Recommended"),a&&l("span",{class:"pxd-recommendation-reason"},a)),Ne(r,"pxd-comparison-title",y),...u.map((b,w)=>l("div",{class:"pxd-comparison-group",key:w},b.label&&l("p",{class:"pxd-comparison-group-label"},b.label),l("dl",null,...b.attributes.map(D=>l("div",{class:"pxd-detail-row",key:D.key},l("dt",null,s.text(D.label)),l("dd",null,m(D,x),i.get(D.key)===x&&l("span",{class:"pxd-best"}," Best"))))))),t.choose&&l("button",{type:"button",class:`pxd-button ${h?"pxd-button-primary":"pxd-button-secondary"}`,onClick:()=>p.dispatch(t.choose.action,e[x],t.id)},`${s.text(t.choose.label)} `,l("span",{class:"pxd-sr-only"},y)))})))}function bs(t,r){let s=r.r,p=t.children??[],[n,d]=r.state(t,"shown",p.length),[e]=r.state(t,"widths",()=>new Map),[o]=r.state(t,"measured",()=>({trigger:44,width:-1})),[c,a]=r.state(t,"menu",De),i=Co(p,s.byId),u=r.id(t,"more"),f=h=>{if(p.length<=2||getComputedStyle(h).flexDirection==="column")return d(p.length);for(let D of h.querySelectorAll(":scope > [data-pxd-id]"))D.offsetWidth&&e.set(D.dataset.pxdId,D.offsetWidth);let b=h.querySelector(":scope > .pxd-action-bar-more");b?.offsetWidth&&(o.trigger=b.offsetWidth);let w=parseFloat(getComputedStyle(h).columnGap)||0;d(qo(p,D=>e.get(D)??0,w,h.clientWidth,o.trigger,i))},m=h=>{h&&s.observeWidth(h,`${t.id}:bar`,b=>{b!==o.width&&(o.width=b,f(h))})};r.after(()=>{let h=s.root?.querySelector(`[data-pxd-id="${CSS.escape(t.id)}"].pxd-action-bar`);h&&f(h)});let x=p.slice(0,Math.min(n,p.length)),y=p.slice(x.length);return y.length&&We(r,u,c,a,Xn(r,y),{class:"pxd-menu pxd-action-menu"}),l("div",{class:"pxd-action-bar",role:"group","aria-label":"Actions",...r.a11y(t),ref:m},...x.map(h=>r.render(h)),y.length>0&&l("button",{type:"button",...it(u,c,a,"start",{class:"pxd-icon-button pxd-action-menu-trigger pxd-action-menu-overflow pxd-action-bar-more","aria-label":Io})},Z("dots",18)))}function Xn(t,r){let s=t.b,p=r.map(c=>t.r.byId.get(c)).filter(c=>!!c&&c.component==="Action"&&(c.visible===void 0||s.value(c.visible)!==!1)),{usual:n,danger:d,divider:e}=or(p),o=c=>({key:c.id,label:[s.text(c.label)],class:`pxd-menu-item${c.tone==="danger"?" pxd-menu-item-danger":""}`,disabled:c.disabled!==void 0?!!s.value(c.disabled):void 0,onSelect:()=>t.r.dispatch(c.action,s.scope,c.id),props:{"data-pxd-id":c.id,"data-pxd-component":c.component}});return[...n.map(o),...e?["separator"]:[],...d.map(o)]}function vs(t,r){let s=r.b,p=r.r,[n,d]=r.state(t,"compact",!1),[e,o]=r.state(t,"open",!1),c=r.a11y(t),a=r.id(t,"sheet"),i=t.label!==void 0?s.text(t.label):"Filters",u=(t.children??[]).map(q=>p.byId.get(q)).filter(Boolean),f=u.filter(q=>q.component==="TextInput"&&q.kind==="search"),m=u.filter(q=>!f.includes(q)),x=$o(m,p.data,s.scope,p.locale,s.text),y=q=>p.surface.write(q.binding,q.cleared,s.scope),h=t.resultCount!==void 0?s.value(t.resultCount):void 0,b=So(h,p.locale),w=()=>{for(let q of x)y(q);t.clear&&p.dispatch(t.clear,s.scope,t.id)},D=()=>o(!1),z=()=>m.map(q=>r.render(q.id)),R=l("div",{class:"pxd-filter-results"},...f.map(q=>r.render(q.id)),l("div",{class:"pxd-filter-status"},n&&l("button",{type:"button",class:"pxd-chip pxd-filter-trigger","aria-haspopup":"dialog","aria-expanded":e,"aria-controls":e?a:void 0,"data-state":e?"open":"closed",onClick:()=>o(!0)},Z("filter",18),i,x.length>0&&l("span",{"aria-hidden":"true"},` \xB7 ${x.length}`),x.length>0&&l("span",{class:"pxd-sr-only"},`, ${x.length} active`)),b&&l("p",{class:"pxd-filter-count","aria-live":"polite"},b)),x.length>0&&l("ul",{class:"pxd-filter-chips","aria-label":"Active filters"},...x.map(q=>l("li",{key:q.key},l("button",{type:"button",class:"pxd-chip pxd-filter-chip",onClick:()=>y(q),"aria-label":`Remove filter: ${q.label}`},q.label,Z("close",16)))),l("li",null,l("button",{type:"button",class:"pxd-button pxd-button-tertiary pxd-filter-clear",onClick:w},"Clear all"))),r.render(t.results));if(n&&e){let q=r.id(t,"sheet-title");r.portal(ze({ctx:r,id:a,class:"pxd-sheet",onClose:D,props:{id:a,"aria-labelledby":q}},l("div",{class:"pxd-sheet-header"},l("h2",{id:q,class:"pxd-sheet-title"},i),qe(D,{class:"pxd-icon-button","aria-label":"Close"},Z("close"))),l("div",{class:"pxd-sheet-body pxd-stack"},...z()),l("div",{class:"pxd-sheet-footer"},x.length>0&&l("button",{type:"button",class:"pxd-button pxd-button-secondary",onClick:w},"Clear all"),qe(D,{class:"pxd-button pxd-button-primary"},b?`Show ${b}`:"Show results"))))}return l("div",{class:`pxd-filter-panel${n?" pxd-filter-compact":""}`,...c,ref:q=>q&&p.observeWidth(q,`${t.id}:filter`,P=>d(P<Po))},n?R:l("div",{class:"pxd-filter-layout"},l("section",{class:"pxd-filter-sidebar","aria-label":i},Ne(r,"pxd-filter-title",i),l("div",{class:"pxd-stack"},...z())),R))}function ws(t,r){let s=r.b,p=r.r,n=r.frame,[d,e]=r.state(t,"compact",!1),[o,c]=r.state(t,"open",!1),[a,i]=r.state(t,"toggled",()=>({})),u=t.kind??"main",f=n&&n.navigationId===t.id&&u==="main"?n.navigation:void 0,m=s.value(t.current),x=f&&n?.current?.key!==void 0?n.current.key:m,y=t.label!==void 0?s.text(t.label):co(u),h=r.a11y(t),b=r.id(t,"drawer"),w=v=>{c(!1),n?.setDrawerOpen(!1),p.dispatch(v.action,s.scope,t.id)},D=v=>{let k=v.badge!==void 0?s.value(v.badge):void 0;return k?l("span",{class:"pxd-nav-badge"},k,l("span",{class:"pxd-sr-only"}," needing attention")):null};if(u==="breadcrumb")return l("nav",{class:"pxd-nav-breadcrumb","aria-label":y,...h},l("ol",null,...t.items.map((v,k)=>{let $=k===t.items.length-1,j=v.key===x||x===void 0&&$;return l("li",{key:v.key},j?l("span",{class:"pxd-nav-breadcrumb-current","aria-current":"page"},s.text(v.label)):l("button",{type:"button",class:"pxd-link",onClick:()=>w(v)},s.text(v.label)))})));if(u==="toc")return l("nav",{class:"pxd-nav-toc","aria-label":y,...h},l("p",{class:"pxd-nav-toc-label","aria-hidden":"true"},y),l("ol",null,...t.items.map(v=>{let k=v.key===x;return l("li",{key:v.key},l("a",{href:`#${v.key}`,class:`pxd-nav-toc-link${k?" pxd-nav-current":""}`,"aria-current":k?"true":void 0,onClick:()=>p.dispatch(v.action,s.scope,t.id)},s.text(v.label)))})));if(u==="local")return l("nav",{class:"pxd-nav-local","aria-label":y,...h},l("ul",null,...t.items.map(v=>{let k=v.key===x;return l("li",{key:v.key},l("button",{type:"button",class:`pxd-nav-local-item${k?" pxd-nav-current":""}`,"aria-current":k?"page":void 0,onClick:()=>w(v)},v.icon&&Z(v.icon,16),l("span",{class:"pxd-nav-label"},s.text(v.label)),D(v)))})));let z=lo(t.items,s.text),R=u==="nested",q=v=>v.label&&v.label in a?a[v.label]:!v.label||v.items.some(k=>k.key===x),P=v=>l("ul",null,...v.map(k=>{let $=k.key===x;return l("li",{key:k.key},l("button",{type:"button",class:`pxd-nav-item${$?" pxd-nav-current":""}`,"aria-current":$?"page":void 0,onClick:()=>w(k)},k.icon&&Z(k.icon,18),l("span",{class:"pxd-nav-label"},s.text(k.label)),D(k)))})),N=l("nav",{class:`pxd-nav${R?" pxd-nav-nested":""}${f==="side"?" pxd-nav-side":""}`,"aria-label":y,...f==="side"?h:{}},...z.map((v,k)=>l("div",{class:"pxd-nav-group",key:k},v.label&&(R?l("button",{type:"button",class:"pxd-nav-group-toggle","aria-expanded":q(v),onClick:()=>i({...a,[v.label]:!q(v)})},Z(q(v)?"sortUp":"sortDown",16),l("span",{class:"pxd-nav-group-label"},v.label)):l("p",{class:"pxd-nav-group-label"},v.label)),(!R||q(v))&&P(v.items))));if(f==="side")return N;if(f==="rail"||f==="bar"){let v=f==="bar"?t.items.slice(0,5):t.items;return l("nav",{class:`pxd-nav-${f}`,"aria-label":y,...h},l("ul",null,...v.map(k=>{let $=k.key===x,j=s.text(k.label);return l("li",{key:k.key},l("button",{type:"button",class:`pxd-nav-${f}-item${$?" pxd-nav-current":""}`,"aria-current":$?"page":void 0,onClick:()=>w(k)},l("span",{class:`pxd-nav-${f}-icon`},k.icon?Z(k.icon,24):l("span",{class:"pxd-nav-glyph","aria-hidden":"true"},j.slice(0,1)),D(k)),l("span",{class:"pxd-nav-label"},j)))})))}let M=(v,k,$)=>{if(!v)return;let j=r.id(t,"drawer-title");r.portal(ze({ctx:r,id:b,class:"pxd-nav-drawer",onClose:k,props:{id:b,"aria-labelledby":j,...$}},l("div",{class:"pxd-sheet-header"},l("h2",{id:j,class:"pxd-sheet-title"},y),qe(k,{class:"pxd-icon-button","aria-label":"Close"},Z("close"))),N))};return f==="drawer"&&n?(M(n.drawerOpen,()=>n.setDrawerOpen(!1),h),null):(M(d&&o,()=>c(!1),{}),l("div",{class:"pxd-nav-wrap",...h,ref:v=>{if(!v||u!=="main"||f)return;let k=v.closest(".pxd-surface")??v;p.observeWidth(k,`${t.id}:nav`,$=>e($<900))}},d?l("button",{type:"button",class:"pxd-icon-button pxd-nav-menu","aria-label":`${y} menu`,"aria-haspopup":"dialog","aria-expanded":o,"aria-controls":o?b:void 0,"data-state":o?"open":"closed",onClick:()=>c(!0)},Z("menu")):N))}function Qn(t,r,s){r.action&&t.r.dispatch({event:{name:r.action.event.name,context:Ve(r,t.r.data,t.scope,s)}},{pointer:""},r.id)}function $s(t,r){let s=r.b,p=s.text(t.label),n=t.kind??"label",d=n==="status"?t.tone??"neutral":"neutral",e=r.a11y(t),o=`pxd-tag pxd-tag-${n} pxd-tag-${d}${t.remove?" pxd-tag-removable":""}`;return n==="count"?l("span",{class:o,title:p,...e},l("span",{class:"pxd-sr-only"},`${p}: `),l("span",{class:"pxd-tag-number"},s.text(t.count,{type:"number"}))):l("span",{class:o,title:p,...e},l("span",{class:"pxd-tag-text"},p),t.remove&&l("button",{type:"button",class:"pxd-tag-remove","aria-label":`Remove ${p}`,onClick:()=>r.r.dispatch(t.remove,s.scope,t.id)},Z("close",12)))}function Ps(t,r){let s=r.b,p=r.r,n=r.id(t,"name"),d=r.id(t,"detail"),e=r.a11y(t),o=t.kind??"person",c=t.size??"default",a=Sr[c]??Sr.default,i=s.text(t.name),u=t.detail!==void 0?s.text(t.detail):void 0,f={"--polyxd-identity-size":`${a}px`},m=`pxd-identity pxd-identity-${c} pxd-identity-${o}${t.group?" pxd-identity-group":""}`,x,y=i;if(t.group){let b=Y(t.group.path,s.scope),w=pe(J(p.data,b)).map((q,P)=>{let N={pointer:ie(b,P)},M=v=>v?J(p.data,Y(v,N)):void 0;return{name:String(M(t.group.namePath)??""),image:M(t.group.imagePath)}}),D=t.group.max??4,z=w.slice(0,D),R=w.slice(D);y||(y=La(w,D)),x=l("span",{class:"pxd-identity-faces"},...z.map((q,P)=>l("span",{class:"pxd-identity-face",key:P},ge(r,{value:q.image,name:q.name,size:a}),l("span",{class:"pxd-sr-only"},q.name))),R.length>0&&l("span",{class:"pxd-identity-face pxd-identity-more",role:"img",title:R.map(q=>q.name).join(", "),"aria-label":`${R.length} more: ${R.map(q=>q.name).join(", ")}`},l("span",{"aria-hidden":"true"},`+${R.length}`)))}else x=ge(r,{value:s.value(t.image),name:i,size:a});let h=[x,l("span",{class:"pxd-identity-text"},l("span",{class:"pxd-identity-name",id:n},y),u&&l("span",{class:"pxd-identity-detail",id:d},u))];return t.action?l("button",{type:"button",class:`${m} pxd-identity-button`,style:f,"aria-labelledby":n,"aria-describedby":u?d:void 0,onClick:()=>p.dispatch(t.action,s.scope,t.id),...e},...h):l("div",{class:m,style:f,role:"group","aria-labelledby":n,"aria-describedby":u?d:void 0,...e},...h)}function Ss(t,r){let s=r.b,p=r.id(t,"label"),n=r.a11y(t),d=t.kind??"bar",e=s.text(t.label),o=t.caption!==void 0?s.text(t.caption):void 0,c=Fa({kind:d,thresholds:t.thresholds,tone:t.tone,format:se(t.format,r.r.data,s.scope)},s.value(t.value),t.max!==void 0?s.value(t.max):void 0,!!s.value(t.indeterminate),o,r.r.locale),a=d==="meter"?"meter":"progressbar",i=`pxd-gauge pxd-gauge-${d}${c.tone&&c.tone!=="neutral"?` pxd-gauge-${c.tone}`:""}${c.indeterminate?" pxd-gauge-indeterminate":""}`,u=l("div",{class:"pxd-gauge-header"},l("span",{class:"pxd-gauge-label",id:p},e),l("span",{class:"pxd-gauge-readout"},!c.indeterminate&&l("span",{class:"pxd-gauge-value"},c.readout),o&&l("span",{class:"pxd-gauge-caption"},o),c.hint&&l("span",{class:"pxd-gauge-hint"},c.hint)));return d==="ring"?l("div",{class:i,...n},l("div",{class:"pxd-gauge-ring-graphic",role:a,"aria-labelledby":p,...c.valueProps},l("svg",{class:"pxd-gauge-ring-svg",viewBox:"0 0 36 36","aria-hidden":"true",focusable:"false"},l("circle",{class:"pxd-gauge-ring-track",cx:"18",cy:"18",r:"16",fill:"none","stroke-width":"4"}),l("circle",{class:"pxd-gauge-ring-fill",cx:"18",cy:"18",r:"16",fill:"none","stroke-width":"4",pathLength:100,"stroke-dasharray":c.indeterminate?"25 100":`${c.percent} 100`,"stroke-linecap":"round"}))),u):l("div",{class:i,...n},u,l("div",{class:"pxd-gauge-track",role:a,"aria-labelledby":p,...c.valueProps},l("div",{class:"pxd-gauge-fill",style:c.indeterminate?void 0:{width:`${c.percent}%`}})))}function ks(t){let r=Math.round(Math.max(0,Math.min(1,t))*100);return l("span",{class:"pxd-rating-star-shape","aria-hidden":"true"},l("svg",{class:"pxd-rating-star-empty",viewBox:"0 0 24 24",focusable:"false"},l("path",{d:zr})),l("span",{class:"pxd-rating-star-fill",style:{width:`${r}%`}},l("svg",{viewBox:"0 0 24 24",focusable:"false"},l("path",{d:zr}))))}function zs(t,r){let s=r.b,p=r.r,n=r.id(t,"label"),d=r.id(t,"help"),[e,o]=r.state(t,"hover",null),c=r.a11y(t),a=t.max??5,i=s.text(t.label),u=s.value(t.value),f=u==null||u===""?void 0:Number(u),m=f!==void 0&&Number.isFinite(f)?Math.max(0,Math.min(a,f)):void 0,x=!!s.value(t.readOnly),y=t.count!==void 0?s.value(t.count):void 0,h=y!=null?te(y,{type:"number"},p.locale):void 0,b=t.help!==void 0?s.text(t.help):void 0,w=m!==void 0?te(m,{type:"number",precision:Number.isInteger(m)?0:1},p.locale):void 0,D=y!=null?`from ${h} ${Number(y)===1?"rating":"ratings"}`:void 0;if(x)return l("div",{class:"pxd-rating pxd-rating-readonly",...c},l("span",{class:"pxd-rating-label"},i),l("span",{class:"pxd-rating-stars",role:"img","aria-label":Oa(w,a)},...Array.from({length:a},(P,N)=>ks((m??0)-N))),l("span",{class:"pxd-rating-readout"},w&&l("span",{class:"pxd-rating-value","aria-hidden":"true"},w),h&&l("span",{class:"pxd-rating-count"},l("span",{"aria-hidden":"true"},`(${h})`),l("span",{class:"pxd-sr-only"},D))));let z=m!==void 0?Math.round(m):0,R=e??z,q=P=>{let N=Number(P);s.write(t.value,N),Qn(r,t,N)};return l("div",{class:"pxd-field pxd-rating",...c},l("div",{class:"pxd-field-label",id:n},i,t.required&&l("span",{class:"pxd-required","aria-hidden":"true"},"*")),b&&l("p",{class:"pxd-field-help",id:d},b),l("div",{class:"pxd-rating-row"},_e({class:"pxd-rating-stars",orientation:"horizontal","aria-labelledby":n,"aria-describedby":b?d:void 0,"aria-required":t.required||void 0,value:z?String(z):"",onValueChange:q,onMouseleave:()=>o(null)},...Array.from({length:a},(P,N)=>N+1).map(P=>Ke({key:P,value:String(P),group:z?String(z):"",first:P===1,onSelect:()=>q(String(P)),class:`pxd-rating-star${P<=R?" pxd-rating-star-on":""}`,"aria-label":Ua(P),"data-orientation":"horizontal",onMouseenter:()=>o(P),onFocus:()=>o(null)},ks(P<=R?1:0)))),l("span",{class:"pxd-rating-readout","aria-hidden":"true"},w&&l("span",{class:"pxd-rating-value"},w),h&&l("span",{class:"pxd-rating-count"},`(${h})`)),D&&l("span",{class:"pxd-sr-only"},D)))}var ed=2e3;function As(t,r){let s=r.b,p=r.id(t,"label"),n=r.a11y(t),d=s.text(t.text),e=t.label!==void 0?s.text(t.label):void 0,o=!!s.value(t.secret),c=t.copyable!==!1,[a,i]=r.state(t,"revealed",!1),[u,f]=r.state(t,"status",""),[m]=r.state(t,"timer",()=>({id:null})),x=z=>{f(z),m.id&&clearTimeout(m.id),m.id=setTimeout(()=>f(""),ed)},y=()=>{let z=typeof navigator<"u"?navigator.clipboard:void 0;if(!z?.writeText)return x("Couldn't copy");z.writeText(d).then(()=>x("Copied"),()=>x("Couldn't copy"))},h=o&&!a,b=h?Va(d):d,w=e??"code",D=e??(t.language?`${t.language} code`:"Code");return l("section",{class:`pxd-code${t.wrap?" pxd-code-wrap":""}${o?" pxd-code-secret":""}`,"aria-labelledby":e!==void 0?p:void 0,"aria-label":e===void 0?D:void 0,...n},l("div",{class:"pxd-code-header"},e!==void 0&&l("span",{class:"pxd-code-label",id:p},e),l("div",{class:"pxd-code-controls"},o&&l("button",{type:"button",class:"pxd-button pxd-button-tertiary pxd-code-control","aria-label":`${a?"Hide":"Show"} ${w}`,onClick:()=>i(!a)},a?"Hide":"Show"),c&&l("button",{type:"button",class:"pxd-button pxd-button-tertiary pxd-code-control","aria-label":`Copy ${w}`,onClick:y},u==="Copied"&&Z("check",16),u==="Copied"?"Copied":"Copy"),l("span",{class:"pxd-sr-only",role:"status","aria-live":"polite"},u))),l("pre",{class:"pxd-code-pre",tabindex:"0","data-language":t.language,"data-masked":h||void 0},l("code",{class:t.language?`language-${t.language}`:void 0,translate:"no"},b)))}var Is=()=>l("svg",{class:"pxd-action-menu-chevron",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},l("path",{d:"m6 9 6 6 6-6"}));function Cs(t,r){let s=r.b,p=r.r,n=r.a11y(t),d=t.kind??"overflow",e=s.text(t.label),o=n["aria-label"]??e,c=r.id(t,"menu"),[a,i]=r.state(t,"menu",De),[u,f]=r.state(t,"context",De),m=(t.children??[]).map(R=>p.byId.get(R)).filter(R=>!!R&&(R.visible===void 0||s.value(R.visible)!==!1)),{usual:x,danger:y,divider:h}=or(m),b=R=>({key:R.id,label:[s.text(R.label)],class:`pxd-menu-item${R.tone==="danger"?" pxd-menu-item-danger":""}`,disabled:R.disabled!==void 0?!!s.value(R.disabled):void 0,onSelect:()=>p.dispatch(R.action,s.scope,R.id),props:{"data-pxd-id":R.id,"data-pxd-component":R.component}}),w=[...x.map(b),...h?["separator"]:[],...y.map(b)];We(r,c,a,i,w,{class:"pxd-menu pxd-action-menu"});let D=(R,q,...P)=>l("button",{type:"button",...it(c,a,i,q,R)},...P),z=()=>D({class:"pxd-icon-button pxd-action-menu-trigger pxd-action-menu-overflow",...n,"aria-label":o},"end",Z("dots",18));if(d==="dropdown")return D({class:"pxd-button pxd-button-secondary pxd-action-menu-trigger pxd-action-menu-dropdown",...n,"aria-label":n["aria-label"]},"end",e,Is());if(d==="split"){let q=(t.primary?p.byId.get(t.primary):void 0)?.emphasis??"secondary";return l("div",{class:"pxd-split",role:"group",...n,"aria-label":o},t.primary&&r.render(t.primary),D({class:`pxd-button pxd-button-${q} pxd-action-menu-trigger pxd-split-menu`,"aria-label":`${e}: more options`},"end",Is()))}return d==="context"?(We(r,`${c}-context`,u,f,w,{class:"pxd-menu pxd-action-menu","aria-label":o}),l("span",{class:"pxd-context-target","data-state":u.open?"open":"closed",style:{WebkitTouchCallout:"none"},onContextmenu:R=>{R.preventDefault(),f({open:!0,x:R.clientX,y:R.clientY,align:"start"})}},z())):z()}function qs(t,r){let s=r.b,p=r.r,n=r.a11y(t),d=Math.min(r.heading,6),e=r.id(t,"title"),o=r.id(t,"panel"),c=t.kind??"dialog",a=t.size??"default",i=t.dismissible!==!1,u=Ie(t.open),[f,m]=r.state(t,"open",!0),x=u?!!s.value(t.open):f&&t.open!==!1,y=()=>{u?s.write(t.open,!1):m(!1),p.dispatch({event:{name:"ui.dismiss"}},s.scope,t.id)},h=s.text(t.title),b=`pxd-panel pxd-panel-${c} pxd-panel-size-${a}`,w=r.with({heading:d+1}),D=()=>l("div",{class:"pxd-panel-body pxd-stack"},...Te(w,t.children)),z=()=>t.actions&&l("div",{class:"pxd-panel-footer"},r.render(t.actions));if(c==="popover")return x&&Mi(r,o,`.pxd-panel-anchor[data-pxd-anchor="${CSS.escape(t.id)}"]`,y,i,{class:b,"aria-labelledby":e,...n},l("div",{class:"pxd-panel-header"},l(`h${d}`,{id:e,class:"pxd-panel-title"},h),i&&l("button",{type:"button",class:"pxd-icon-button pxd-panel-close","aria-label":"Close",onClick:y},Z("close"))),D(),z(),l("span",{style:{position:"absolute",left:"50%",top:"100%",transform:"translateX(-50%)"}},l("svg",{class:"pxd-panel-arrow",width:16,height:8,viewBox:"0 0 30 10",preserveAspectRatio:"none"},l("polygon",{points:"0,0 30,0 15,10"})))),l("span",{class:"pxd-panel-anchor","data-pxd-anchor":t.id});if(!x)return null;let R=c==="sheet"&&i?td(y):{};return r.portal(ze({ctx:r,id:o,class:b,overlayClass:"pxd-overlay pxd-panel-backdrop",dismissible:i,onClose:y,props:{"aria-labelledby":e,...n}},l("div",{class:"pxd-panel-header",...R},c==="sheet"&&l("span",{class:"pxd-panel-grip","aria-hidden":"true"}),l(`h${d}`,{id:e,class:"pxd-panel-title"},h),i&&qe(y,{class:"pxd-icon-button pxd-panel-close","aria-label":"Close"},Z("close"))),D(),z())),null}function td(t){let r=null,s=n=>n.currentTarget.closest("dialog"),p=n=>{r=null;let d=s(n);d&&(d.style.transform="",d.style.transition="")};return{onPointerdown:n=>{n.pointerType==="mouse"&&n.button!==0||(r=n.clientY,n.currentTarget.setPointerCapture(n.pointerId))},onPointermove:n=>{let d=s(n);if(r===null||!d)return;let e=Math.max(0,n.clientY-r);d.style.transition="none",d.style.transform=`translateY(${e}px)`},onPointerup:n=>{if(r===null)return;let d=n.clientY-r,e=s(n);p(n),d>80&&(e?.open&&e.close(),t())},onPointercancel:p}}var st=(...t)=>t.filter(Boolean).join(" ")||void 0,Oo=t=>t.target.value,Vo=t=>{typeof t.ref=="string"&&t.ref.startsWith("blob:")&&URL.revokeObjectURL(t.ref)};function Ts(t,r){let s=r.b,p=r.r,n=r.id(t),d=r.id(t,"help"),e=r.id(t,"error"),[o,c]=r.state(t,"error",null),[a,i]=r.state(t,"dragging",!1),u=s.value(t.value),f=Array.isArray(u)?u:[],m=Array.isArray(t.accept)?t.accept:[],x=t.maxSize,y=!!t.multiple,h=s.text(t.label),b=[t.help!==void 0?s.text(t.help):"",Ba(m,x,y,p.locale)].filter(Boolean).join(" ")||void 0,w=z=>{if(!z)return;let R=Array.from(z),q=[],P=[];for(let N of y?R:R.slice(0,1)){let M=_a(N,m,x,p.locale);M?(P.push(M),p.events?.inputError(t,Mo(N,x))):q.push({name:N.name,size:N.size,type:N.type,ref:URL.createObjectURL(N)})}if(c(P.length?P.join(" "):null),q.length!==0)if(y){let N=q.filter(M=>!f.some(v=>v.name===M.name&&v.size===M.size));q.filter(M=>!N.includes(M)).forEach(Vo),N.length&&s.write(t.value,[...f,...N])}else f.forEach(Vo),s.write(t.value,q)},D=z=>{Vo(f[z]),s.write(t.value,f.filter((R,q)=>q!==z)),c(null)};return l("div",{class:"pxd-field pxd-file"},l("label",{class:"pxd-field-label",for:n},h,t.required&&He()),b&&l("p",{class:"pxd-field-help",id:d},b),l("div",{class:"pxd-dropzone","data-dragging":a||void 0,onDrop:z=>{z.preventDefault(),i(!1),w(z.dataTransfer?.files??null)},onDragover:z=>{z.preventDefault(),a||i(!0)},onDragleave:z=>{z.currentTarget.contains(z.relatedTarget)||i(!1)}},l("input",{id:n,class:"pxd-dropzone-input",type:"file",accept:m.length?m.join(","):void 0,multiple:y,required:t.required&&f.length===0,"aria-describedby":st(b&&d,o&&e),"aria-invalid":o?!0:void 0,onChange:z=>{let R=z.target;w(R.files),R.value=""},...r.a11y(t)}),l("span",{class:"pxd-dropzone-icon","aria-hidden":"true"},Z("file",24)),l("span",{class:"pxd-dropzone-text"},l("span",{class:"pxd-dropzone-action"},y?"Choose files":"Choose a file"),l("span",{class:"pxd-dropzone-hint"},y?"or drop them here":"or drop it here"))),o&&l("p",{class:"pxd-field-error",id:e,role:"alert"},o),f.length>0&&l("ul",{class:"pxd-file-list"},...f.map((z,R)=>l("li",{class:"pxd-file-item",key:`${z.name}-${z.size}-${R}`},l("span",{class:"pxd-file-icon","aria-hidden":"true"},Z("file",18)),l("span",{class:"pxd-file-text"},l("span",{class:"pxd-file-name"},z.name),l("span",{class:"pxd-file-size"},tt(z.size,p.locale)),typeof z.progress=="number"&&z.progress<1&&l("progress",{class:"pxd-file-progress",value:z.progress,max:1,"aria-label":`Uploading ${z.name}`})),l("button",{type:"button",class:"pxd-file-remove","aria-label":`Remove ${z.name}`,onClick:()=>D(R)},Z("close",18))))))}var Fe="__other";function Ns(t,r){let s=r.b,p=r.id(t,"label"),n=r.id(t,"help"),d=r.id(t,"picker"),e=r.id(t,"text"),o=r.id(t,"alpha"),c=t.format??"hex",a=!!t.alpha,i=s.text(t.label),u=t.help!==void 0?s.text(t.help):void 0,f=s.value(t.value),m=f==null?"":String(f),x=Be(m),[y,h]=r.state(t,"draft",null),[b,w]=r.state(t,"other",!1),D=r.a11y(t),z=t.swatches?Re({...t,options:t.swatches},r.r.data,s.scope,s.text):[],R=z.length>0,q=A=>s.write(t.value,Pr(A,c,a)),P=A=>{h(A);let C=Be(A);C&&q(C)},N=z.findIndex(A=>x?Ea(Be(A.value),x,a):String(A.value)===m&&m!==""),M=b?Fe:N>=0?String(N):m?Fe:"",v=!R||M===Fe,k=Math.round((x?.a??1)*100),$=()=>l("div",{class:"pxd-color-picker"},l("input",{id:d,class:"pxd-color-native",type:"color",value:Na(x),"aria-label":`${i}: pick`,"aria-describedby":st(u&&n),onInput:A=>{let C=Be(Oo(A));C&&(h(null),q({...C,a:x?.a??1}))}}),l("input",{id:e,class:"pxd-input pxd-input-mono pxd-color-text",type:"text",inputmode:"text",autocomplete:"off",spellcheck:"false",placeholder:Ma(c),value:y??m,"aria-label":`${i}: value`,"aria-describedby":st(u&&n),"aria-invalid":y!==null&&y!==""&&!Be(y)?!0:void 0,required:!R&&t.required,onInput:A=>P(Oo(A)),onBlur:()=>h(null)}),a&&l("label",{class:"pxd-color-alpha",for:o},l("span",{class:"pxd-color-alpha-label"},"Opacity"),l("input",{id:o,type:"range",min:0,max:100,step:1,value:String(k),disabled:!x,"aria-valuetext":`${k}%`,onInput:A=>{x&&(h(null),q({...x,a:Number(Oo(A))/100}))}}),l("output",{class:"pxd-color-alpha-value",for:o,"aria-hidden":"true"},`${k}%`)));if(!R)return l("div",{class:"pxd-field pxd-color",role:"group","aria-labelledby":p,"aria-describedby":st(u&&n),...D},l("div",{class:"pxd-field-label",id:p},i,t.required&&He()),u&&l("p",{class:"pxd-field-help",id:n},u),$());let j=A=>{if(A===Fe)return w(!0);w(!1),h(null);let C=z[Number(A)],S=Be(C.value);s.write(t.value,S?Pr(S,c,a):C.value)};return l("div",{class:"pxd-field pxd-color",...D},l("div",{class:"pxd-field-label",id:p},i,t.required&&He()),u&&l("p",{class:"pxd-field-help",id:n},u),_e({class:"pxd-swatches","aria-labelledby":p,"aria-describedby":st(u&&n),"aria-required":t.required||void 0,value:M,orientation:"horizontal",onValueChange:j},...z.map((A,C)=>Ke({key:String(C),value:String(C),group:M,first:C===0,onSelect:()=>j(String(C)),class:"pxd-swatch",title:A.label,"data-orientation":"horizontal"},l("span",{class:"pxd-swatch-color",style:{background:String(A.value)},"aria-hidden":"true"}),l("span",{class:"pxd-swatch-name"},A.label))),Ke({key:Fe,value:Fe,group:M,onSelect:()=>j(Fe),class:"pxd-swatch pxd-swatch-other",title:"Other","data-orientation":"horizontal"},l("span",{class:"pxd-swatch-color",style:M===Fe&&x?{background:m}:void 0,"aria-hidden":"true"}),l("span",{class:"pxd-swatch-name"},"Other"))),v&&$())}var Ds=(t,r)=>Array.from({length:r},(s,p)=>t[p]??"");function Es(t,r){let s=r.b,p=r.id(t,"label"),n=r.id(t,"help"),d=we(Number(t.length)||6,4,12),e=(t.kind??"numeric")==="numeric",o=t.required??!0,c=s.text(t.label),a=t.help!==void 0?s.text(t.help):void 0,i=s.value(t.value),u=i==null?"":String(i),[f]=r.state(t,"code",()=>({chars:Ds(u,d),seen:u,fired:null}));u!==f.seen&&(f.seen=u,u!==f.chars.join("")&&(f.chars=Ds(u,d)));let m=f.chars,x=r.a11y(t),y=()=>Array.from(r.r.root?.querySelectorAll(`[data-pxd-id="${CSS.escape(t.id)}"] .pxd-code-box`)??[]),h=M=>M.replace(e?/[^0-9]/g:/[^0-9a-zA-Z]/g,""),b=M=>y()[we(M,0,d-1)]?.focus(),w=M=>{f.chars=M;let v=M.join("");f.seen=v,s.write(t.value,v),t.action&&M.every(Boolean)&&v!==f.fired&&(f.fired=v,r.r.dispatch({event:{name:t.action.event.name,context:Ve(t,r.r.data,s.scope,v)}},{pointer:""},t.id)),r.r.schedule()},D=(M,v)=>{let k=h(v);if(!k)return;let $=[...m],j=M;for(let A of k){if(j>=d)break;$[j++]=A}w($),b(j)},z=(M,v)=>{let k=m[M],$=v.target.value;if(k&&$.length>1&&($=$.startsWith(k)?$.slice(k.length):$.endsWith(k)?$.slice(0,-k.length):$),$===""){let j=[...m];return j[M]="",w(j)}D(h($).length>=d?0:M,$)},R=(M,v)=>{if(v.key==="Backspace"&&!m[M]&&M>0){v.preventDefault();let k=[...m];k[M-1]="",w(k),b(M-1)}else v.key==="ArrowLeft"?(v.preventDefault(),b(M-1)):v.key==="ArrowRight"&&(v.preventDefault(),b(M+1))},q=(M,v)=>{v.preventDefault();let k=v.clipboardData?.getData("text")??"";D(h(k).length>=d?0:M,k)},P=d>6?d%4===0?4:3:d,N=[];for(let M=0;M<d;M+=P)N.push(Array.from({length:Math.min(P,d-M)},(v,k)=>M+k));return l("div",{class:"pxd-field pxd-code",role:"group","aria-labelledby":p,"aria-describedby":st(a&&n),...x},l("div",{class:"pxd-field-label",id:p},c,o&&He()),a&&l("p",{class:"pxd-field-help",id:n},a),l("div",{class:"pxd-code-boxes"},...N.map((M,v)=>l("div",{class:"pxd-code-group",key:v},...M.map(k=>l("input",{key:k,class:"pxd-code-box",type:"text",inputmode:e?"numeric":"text",pattern:e?"[0-9]*":"[0-9A-Za-z]*",autocomplete:k===0?"one-time-code":"off",autocapitalize:e?void 0:"characters",spellcheck:"false","aria-label":`Digit ${k+1} of ${d}`,value:m[k],"data-filled":m[k]?"":void 0,required:o,onFocus:$=>$.target.select(),onInput:$=>z(k,$),onKeydown:$=>R(k,$),onPaste:$=>q(k,$)}))))))}var Ms=40;function js(t,r){let s=r.b,p=r.r,n=r.id(t,"caption"),d=t.selection??"none",e=d!=="none"&&!!t.selected,o=t.expanded?pe(s.value(t.expanded)):void 0,[c,a]=r.state(t,"expanded",null),i=o?new Set(o):c,u=e?s.value(t.selected):void 0,f=H=>Array.isArray(u)?u.includes(H):u!==void 0&&u===H,{rows:m,indexByKey:x,topValues:y}=bo(t,p.data,s.scope,i),[h,b]=r.state(t,"focus",null),w=(h!==null?x.get(h):void 0)??0,[D]=r.state(t,"pending",()=>({index:null})),z=m.length>Cr,[R,q]=r.state(t,"geometry",()=>({rowHeight:Ms,viewportHeight:Ms*12,scrollTop:0})),{start:P,end:N}=ko(m.length,R.scrollTop,R.rowHeight,R.viewportHeight),M=()=>p.root?.querySelector(`[data-pxd-id="${CSS.escape(t.id)}"] .pxd-tree-list`),v=H=>{if(!m.length)return;let L=Math.max(0,Math.min(m.length-1,H));b(m[L].key);let _=M()?.querySelector(`[data-index="${L}"]`);if(_)return _.focus();D.index=L;let B=M()?.parentElement;if(z&&B?.classList.contains("pxd-tree-viewport")){let X=Math.max(0,L*R.rowHeight-(R.viewportHeight-R.rowHeight)/2);B.scrollTop=X,q({...R,scrollTop:X})}};r.after(()=>{if(D.index===null)return;let H=M()?.querySelector(`[data-index="${D.index}"]`);if(H&&(D.index=null,H.focus()),z){let L=M()?.querySelector(".pxd-tree-item"),_=M()?.parentElement,B=L&&L.offsetHeight>0?L.offsetHeight:R.rowHeight,X=_?.clientHeight||R.viewportHeight;(B!==R.rowHeight||X!==R.viewportHeight)&&q({...R,rowHeight:B,viewportHeight:X})}});let k=(H,L)=>{if(t.expanded){let B=o??[];s.write(t.expanded,L?[...B,...H.filter(X=>!B.includes(X))]:B.filter(X=>!H.includes(X)));return}let _=new Set(c??y);for(let B of H)L?_.add(B):_.delete(B);a(_)},$=H=>k([H.value],!H.expanded),j=H=>{if(!e)return;if(d==="single")return s.write(t.selected,H.value);let L=Array.isArray(u)?u:[];s.write(t.selected,L.includes(H.value)?L.filter(_=>_!==H.value):[...L,H.value])},A=H=>{j(H),t.action&&p.dispatch(t.action,H.scope,t.id)},[C]=r.state(t,"typed",()=>({buffer:"",at:0})),S=H=>{let L=Date.now();C.buffer=L-C.at<ho?C.buffer+H.toLowerCase():H.toLowerCase(),C.at=L;let _=vo(m,w,C.buffer);_>=0&&v(_)},U=H=>{let L=m[w],_=wo(m,w,H);!L||!_||(H.preventDefault(),H.stopPropagation(),"focus"in _?v(_.focus):"toggle"in _?$(L):"activate"in _?A(L):"select"in _?j(L):"expandSiblings"in _?k(m.filter(B=>B.parent===L.parent&&B.hasChildren).map(B=>B.value),!0):"typeAhead"in _&&S(_.typeAhead))},K=s.text(t.label),O=z?{paddingTop:P*R.rowHeight,paddingBottom:(m.length-N)*R.rowHeight}:void 0,V=l("ul",{role:"tree",class:"pxd-tree-list","aria-labelledby":n,"aria-multiselectable":d==="multiple"?!0:void 0,style:O,onKeydown:U},...m.slice(P,N).map((H,L)=>{let _=P+L,B=e?f(H.value):void 0;return l("li",{key:H.key,role:"treeitem",class:`pxd-tree-item${B?" pxd-tree-item-selected":""}`,style:{"--polyxd-tree-depth":H.level-1},"data-index":_,tabindex:_===w?"0":"-1","aria-level":H.level,"aria-setsize":H.setsize,"aria-posinset":H.posinset,"aria-expanded":H.hasChildren?H.expanded:void 0,"aria-selected":B,onFocus:X=>{X.target===X.currentTarget&&b(H.key)},onClick:X=>{X.stopPropagation(),v(_),e?j(H):H.hasChildren&&$(H)},onDblclick:X=>{X.stopPropagation(),t.action?p.dispatch(t.action,H.scope,t.id):H.hasChildren&&$(H)}},l("div",{class:"pxd-tree-row"},H.hasChildren?l("button",{type:"button",class:`pxd-tree-expander${H.expanded?" pxd-tree-expander-open":""}`,tabindex:"-1","aria-hidden":"true",onClick:X=>{X.stopPropagation(),v(_),$(H)},onDblclick:X=>X.stopPropagation()},Z("chevronRight",16)):l("span",{class:"pxd-tree-expander pxd-tree-expander-leaf","aria-hidden":"true"}),l("span",{class:"pxd-tree-text"},H.label),H.detail!==void 0&&l("span",{class:"pxd-tree-detail"},H.detail)))}));return l("div",{class:"pxd-tree",...r.a11y(t)},l("div",{class:"pxd-tree-caption",id:n},K),z?l("div",{class:"pxd-tree-viewport",onScroll:H=>q({...R,scrollTop:H.currentTarget.scrollTop})},V):V)}var nt={Section:ji,Group:Ri,Card:_i,Disclosure:Hi,Views:Fi,Navigation:ws,Text:Xi,Metric:Qi,DetailList:es,Collection:ts,Table:Gi,Chart:os,Media:rs,Status:as,TextInput:ds,Choice:ls,Toggle:cs,DateInput:us,RangeInput:fs,Form:ms,Action:xs,ActionBar:bs,Steps:gs,Confirm:ys,Comparison:hs,FilterPanel:vs,Tag:$s,Identity:Ps,Progress:Ss,Rating:zs,Code:As,Tree:js,ActionMenu:Cs,Panel:qs,FileInput:Ts,ColorInput:Ns,CodeInput:Es,Columns:Bi,Split:Ui,Frame:Vi,AppBar:Li,Footer:Zi,Outlet:Ki,Custom:Wi};var Ye=class{surface;props;host;root=null;portalEl=null;components;states=new Map;effects=[];portals=[];modals=0;scheduled=!1;unsubscribe;observers=new Map;drawing=!1;disposers=[];events;statuses=new Map;statusesBefore=new Map;constructor(r,s){this.host=r,this.props=s,this.components={...nt,...s.components??{}},this.surface=this.makeSurface(s),this.events=this.makeEvents(s),this.unsubscribe=this.surface.subscribe(()=>this.schedule());let p=n=>{if(!this.events)return;let d=n.target,e=d?.closest?.("[data-pxd-id]")?.getAttribute("data-pxd-id");e&&this.events.inputError(this.byId.get(e)??e,Eo(d?.validity))};r.addEventListener("invalid",p,!0),this.disposers.push(()=>r.removeEventListener("invalid",p,!0))}makeSurface(r){let s=this;return Do(r.document,{data:r.data,locale:r.locale??"en-GB",derive:r.derive,onAction:p=>this.props.onAction?.(p),onDataChange:p=>this.props.onDataChange?.(p),onDismiss:()=>this.props.onDismiss?.(),get events(){return s.events}})}makeEvents(r){return r.onEvent?jo(r.document,s=>this.props.onEvent?.(s),r.events):void 0}statusDrawn(r,s){this.events&&this.statuses.set(`${s.pointer}#${r.id}`,r)}get locale(){return this.surface.locale}get doc(){return this.surface.document}get data(){return this.surface.data}get byId(){return this.surface.byId}get disclosure(){return this.props.disclosure??"progressive"}update(r){let s=this.props;this.props=r,this.components={...nt,...r.components??{}};let p=r.document!==s.document;if(p&&(this.events?.unmounted(!1),this.events=void 0),!!r.onEvent!=!!this.events&&(this.events=this.makeEvents(r),this.statusesBefore.clear()),p||(r.locale??"en-GB")!==s.locale)this.unsubscribe(),this.states.clear(),this.surface=this.makeSurface(r),this.unsubscribe=this.surface.subscribe(()=>this.schedule());else if(r.data&&r.data!==s.data&&r.document.surface.kind==="shell"){this.surface.replaceData(r.data);return}this.schedule()}dispose(){this.events?.unmounted(!1),this.events=void 0,this.unsubscribe();for(let r of this.disposers)r();for(let r of this.observers.values())r.disconnect();_o(this.host)}onDispose(r){this.disposers.push(r)}schedule(){this.scheduled||(this.scheduled=!0,queueMicrotask(()=>{this.scheduled=!1,this.draw()}))}observeWidth(r,s,p){if(!r||this.observers.has(r)||typeof ResizeObserver>"u")return;let n=()=>p(r.getBoundingClientRect().width),d=new ResizeObserver(n);d.observe(r),this.observers.set(r,d),n()}unobserve(r){this.observers.get(r)?.disconnect(),this.observers.delete(r)}bindings(r){let s=this.surface;return{scope:r,value:p=>oe(p,s.data,r),text:(p,n)=>{let d=oe(p,s.data,r);return n?te(d,se(n,s.data,r),s.locale):d==null?"":String(d)},pointer:p=>Y(p.path,r),write:(p,n)=>s.setValue(Y(p.path,r),n),context:p=>je(p,s.data,r)}}dispatch(r,s,p){this.surface.dispatch(r,s,p)}ctx(r){let s=this,p=(d,e)=>`${r.scope.pointer}#${d.id}:${e}`,n={r:s,scope:r.scope,heading:r.heading,steps:r.steps,frame:r.frame,b:s.bindings(r.scope),render:(d,e)=>s.renderNode(d,e?n.with({scope:e}):n),a11y:d=>To(d,e=>{let o=oe(e,s.data,r.scope);return o===void 0?void 0:String(o)}),id:(d,e="")=>`pxd-${(r.scope.pointer+"-"+d.id+(e?"-"+e:"")).replace(/[^A-Za-z0-9_-]+/g,"_")}`,state:(d,e,o)=>{let c=p(d,e);s.states.has(c)||s.states.set(c,typeof o=="function"?o():o);let a=i=>{let u=s.states.get(c),f=typeof i=="function"?i(u):i;Object.is(f,u)||(s.states.set(c,f),s.schedule())};return[s.states.get(c),a]},after:d=>s.effects.push(d),portal:d=>s.portals.push(d),with:d=>s.ctx({...r,...d})};return n}renderNode(r,s){let p=this.byId.get(r);if(!p||p.visible!==void 0&&oe(p.visible,this.data,s.scope)===!1)return null;let n=this.components[p.component];if(!n)return l("div",{class:"pxd-unknown",role:"note"},`Unsupported component \u201C${p.component}\u201D`);let d=n(p,s);return d instanceof Element?ot(d,p.id):d}draw(){if(this.drawing)return this.schedule();this.drawing=!0,this.effects=[],this.portals=[],this.modals=0,this.statuses=new Map;try{let r=this.surfaceTree();sr(this.host,[r]),this.root=this.host.querySelector(":scope > .pxd-surface"),this.portalEl=this.root?.querySelector(":scope > .pxd-portal")??null;let s=this.effects;this.effects=[];for(let p of s)p();if(this.events){this.events.shown();for(let[p,n]of this.statuses)this.statusesBefore.has(p)||this.events.statusShown(n);this.statusesBefore=this.statuses}}finally{this.drawing=!1}}feedback(r,s){this.events?.feedback(r,s)}regenerated(r){this.events?.regenerated(r)}surfaceTree(){let r=this.doc,s=this.props,p=this.ctx({scope:ye,heading:2}),n=this.byId.get(r.root)?.component==="Confirm",d=r.surface.kind==="shell",e=Fr(r),o=d?p.render(r.root):l("div",{class:"pxd-surface-main"},!n&&this.header(p),p.render(r.root)),c=e?p.render(e.id):null,a=l("div",{class:"pxd-portal"},...this.portals),i=this.modals>0?"true":void 0;for(let u of[c,o])u&&typeof u=="object"&&"props"in u&&(u.props["aria-hidden"]=i);return l("div",{class:["pxd-surface",d?"pxd-surface-shell":null,r.surface.presentation==="panel"?"pxd-surface-panel":null,e?"pxd-surface-with-nav":null,s.className].filter(Boolean).join(" "),"data-pxd-theme":s.theme,"data-pxd-mode":s.mode,"data-pxd-density":s.density,"data-pxd-surface":r.surface.id,lang:this.locale},c,o,a)}header(r){let{title:s,subtitle:p,breadcrumbs:n,badge:d,avatar:e,actions:o}=this.doc.surface,c=i=>String(oe(i,this.data,ye)??"");return!p&&!n&&!d&&!e&&!o?l("h1",{class:"pxd-surface-title"},s):l("header",{class:"pxd-page-header"},n&&l("nav",{class:"pxd-breadcrumbs","aria-label":"Breadcrumb"},l("ol",null,n.map((i,u)=>l("li",{key:u},i.action?l("button",{type:"button",class:"pxd-link",onClick:()=>this.dispatch(i.action,ye,this.doc.surface.id)},c(i.label)):c(i.label))))),l("div",{class:"pxd-page-header-main"},e!==void 0&&ge(r,{value:c(e),name:s,size:48}),l("div",{class:"pxd-page-header-text"},l("h1",{class:"pxd-surface-title"},s,d&&l("span",{class:`pxd-badge pxd-tone-${d.tone??"neutral"}`},c(d.text))),p!==void 0&&l("p",{class:"pxd-surface-subtitle"},c(p))),o&&l("div",{class:"pxd-page-header-actions"},r.render(o))))}};var rd=["theme","mode","density","locale","disclosure"],pr=class extends HTMLElement{static get observedAttributes(){return[...rd]}#e=null;#t=null;#a;#n;#d;#p;#o=!1;#i=null;#s;#l=!1;onAction=null;onDataChange=null;onDismiss=null;get onEvent(){return this.#i}set onEvent(r){this.#i=r,this.#r()}get events(){return this.#s}set events(r){this.#s=r,this.#r()}addEventListener(r,s,p){super.addEventListener(r,s,p),r==="polyxd-event"&&!this.#l&&(this.#l=!0,this.#r())}feedback(r,s){this.#e?.feedback(r,s)}regenerated(r){this.#e?.regenerated(r)}get document(){return this.#t}set document(r){this.#t=r,this.#r()}get data(){return this.#a}set data(r){this.#a=r,this.#r()}get derive(){return this.#n}set derive(r){this.#n=r,this.#r()}get resolveMedia(){return this.#d}set resolveMedia(r){this.#d=r,this.#r()}get components(){return this.#p}set components(r){this.#p=r,this.#r()}get theme(){return this.getAttribute("theme")??void 0}set theme(r){r===void 0?this.removeAttribute("theme"):this.setAttribute("theme",r)}get mode(){return this.getAttribute("mode")??void 0}set mode(r){r===void 0?this.removeAttribute("mode"):this.setAttribute("mode",r)}get density(){return this.getAttribute("density")??void 0}set density(r){r===void 0?this.removeAttribute("density"):this.setAttribute("density",r)}get locale(){return this.getAttribute("locale")??void 0}set locale(r){r===void 0?this.removeAttribute("locale"):this.setAttribute("locale",r)}get disclosure(){return this.getAttribute("disclosure")??void 0}set disclosure(r){r===void 0?this.removeAttribute("disclosure"):this.setAttribute("disclosure",r)}get surfaceData(){return this.#e?.data}connectedCallback(){this.#r()}disconnectedCallback(){this.#e?.dispose(),this.#e=null}attributeChangedCallback(){this.#r()}props(){return this.#t?{document:this.#t,data:this.#a,derive:this.#n,resolveMedia:this.#d,components:this.#p,theme:this.theme,mode:this.mode,density:this.density,locale:this.locale,disclosure:this.disclosure,onAction:r=>{this.onAction?.(r),this.dispatchEvent(new CustomEvent("polyxd-action",{detail:r,bubbles:!0,composed:!0}))},onDataChange:r=>{this.onDataChange?.(r),this.dispatchEvent(new CustomEvent("polyxd-datachange",{detail:r,bubbles:!0,composed:!0}))},onDismiss:()=>{this.onDismiss?.(),this.dispatchEvent(new CustomEvent("polyxd-dismiss",{bubbles:!0,composed:!0}))},events:this.#s,onEvent:this.#i||this.#s||this.#l?r=>{this.#i?.(r),this.dispatchEvent(new CustomEvent("polyxd-event",{detail:r,bubbles:!0,composed:!0}))}:void 0}:null}#r(){this.#o||(this.#o=!0,queueMicrotask(()=>{if(this.#o=!1,!this.isConnected)return;let r=this.props();r&&(this.#e?this.#e.update(r):(this.#e=new Ye(this,r),this.#e.draw()))}))}flush(){let r=this.props();!r||!this.isConnected||(this.#o=!1,this.#e?(this.#e.update(r),this.#e.draw()):(this.#e=new Ye(this,r),this.#e.draw()))}},Nr=class extends pr{#e=null;#t;#a=!1;get outlet(){return this.#e}set outlet(r){this.#e=r,this.flushSoon()}get current(){return this.#t}set current(r){this.#t=r,this.flushSoon()}get loading(){return this.#a}set loading(r){this.#a=r,this.flushSoon()}connectedCallback(){if(!this.#e&&this.childElementCount>0&&!this.querySelector(":scope > .pxd-surface")){let r=document.createElement("div");r.append(...Array.from(this.childNodes)),this.#e=r}super.connectedCallback()}flushSoon(){queueMicrotask(()=>this.isConnected&&this.flush())}props(){let r=super.props();if(!r)return null;let s=r.document.surface.title;return this.#t&&s&&(document.title=this.#t.title?`${this.#t.title} \xB7 ${s}`:s),{...r,outlet:this.#e,current:this.#t,loading:this.#a}}};function Er(){typeof customElements>"u"||(customElements.get("polyxd-surface")||customElements.define("polyxd-surface",pr),customElements.get("polyxd-frame")||customElements.define("polyxd-frame",Nr))}function lr(t,r){let s=new Ye(t,r);s.draw();let p=r;return{update:n=>{p={...p,...n},s.update(p),s.draw()},unmount:()=>s.dispose(),get data(){return s.data},feedback:(n,d)=>s.feedback(n,d),regenerated:n=>s.regenerated(n)}}var Lo="0.3.0";var Zo={"Card.media":["Media"],"Card.children":["Text","Metric","DetailList","Group","Media","Status","Toggle","Action","ActionBar","Tag","Identity","Progress","Rating","Code","ActionMenu"],"Collection.empty":["Status"],"Table.empty":["Status"],"Status.action":["Action","ActionBar"],"Form.aside":["DetailList","Card","Group"],"FilterPanel.children":["Choice","RangeInput","Toggle","DateInput","TextInput","Rating","ColorInput"],"FilterPanel.results":["Collection","Table"],"ActionBar.children":["Action"],"Confirm.summary":["DetailList"],"Table.toolbar":["ActionBar"],"Table.bulkActions":["ActionBar"],"Table.rowActions":["ActionBar"],"Table.detail":["DetailList","Group","Card","Text","Metric","Status","Media","Collection"],"Collection.bulkActions":["ActionBar"],"Table.search":["TextInput"],"Surface.actions":["ActionBar"],"Panel.children":["Section","Group","Text","Metric","DetailList","Media","Status","Form","Choice","TextInput","Toggle","DateInput","RangeInput","Collection","Table","Tree","Tag","Identity","Progress","Rating","Code","FileInput","ColorInput","CodeInput","Disclosure","Views","Card"],"Panel.actions":["ActionBar"],"ActionMenu.children":["Action"],"ActionMenu.primary":["Action"],"Frame.header":["AppBar"],"Frame.navigation":["Navigation"],"Frame.main":["Outlet","Group"],"Frame.aside":["Group","Section","Card","Status","Text","DetailList","Collection","Disclosure","Navigation","Custom"],"Frame.footer":["Footer"],"Frame.banner":["Status"],"AppBar.leading":["Action"],"AppBar.search":["TextInput","Action"],"AppBar.actions":["ActionBar"],"AppBar.account":["Identity","ActionMenu"],"Footer.aside":["Choice","Tag","Text"],"Outlet.loading":["Status","Progress","Text","Group"],"Custom.fallback":["Text","Media","Status","Metric","Tag","Identity","Code","Progress","Group","Card"],"Columns.children":["Section","Group","Card","Text","Metric","DetailList","Media","Status","Form","Collection","Table","Tree","Chart","Disclosure","Views","Steps","Comparison","FilterPanel","Navigation","Tag","Identity","Progress","Code","Custom"],"Split.primary":["Collection","Table","Tree"],"Split.detail":["Group","Section","Card","DetailList","Text","Form","Views","Table","Collection","Media","Code"],"Split.empty":["Status"]};var Rs={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://polyxd.com/schema/0.3/ui.schema.json",title:"Polyxd UI document",description:"A just-in-time interface: a flat list of semantic components (A2UI-style adjacency list) plus the surface it belongs to. Data comes from the host via bindings; actions are declared capability intents. Generated file: edit components/*.json and schema/common.defs.json instead.",type:"object",required:["specVersion","surface","root","components"],properties:{$schema:{type:"string",description:"The schema this document follows, so editors validate and complete it: https://polyxd.com/schema/0.3/ui.schema.json"},specVersion:{type:"string",pattern:"^0\\.[123]\\.[0-9]+$"},surface:{type:"object",required:["id","title"],properties:{id:{$ref:"#/$defs/Id"},title:{type:"string",description:"Short title for the surface (page title / dialog title)"},intent:{$ref:"#/$defs/Key",description:"What the user is trying to do, as a stable key (e.g. 'money.send'); memory is organised by intent"},pattern:{type:"string",description:"Id of the pattern this surface follows, when one applies"},journey:{type:"string",description:"Id of the journey this surface is a step of, when one applies"},subtitle:{$ref:"#/$defs/DynamicString",description:"One line under the title: what this record or page is; may be bound to data"},breadcrumbs:{type:"array",maxItems:4,items:{type:"object",required:["label"],properties:{label:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},description:"Where this surface sits, ending with its parent (the title is the last step)"},badge:{type:"object",required:["text"],properties:{text:{$ref:"#/$defs/DynamicString"},tone:{$ref:"#/$defs/Tone"}},additionalProperties:!1,description:"Status of the thing this surface is about, e.g. 'Past due'"},avatar:{$ref:"#/$defs/DynamicString",description:"Initials or a media reference for the entity this surface is about"},actions:{$ref:"#/$defs/Id",description:"ActionBar in the header: what you can do to this record"},presentation:{enum:["page","panel"],default:"page",description:"'panel' opens beside what it came from (a side sheet over a list) and is full screen on compact surfaces"},dismissible:{type:"boolean",default:!0},kind:{enum:["surface","shell"],default:"surface",description:"'shell' is the product's frame (a Frame at the root with an Outlet for screens); it is always authored. 'surface' is a screen, panel or dialog that lives inside a shell"},origin:{enum:["generated","authored"],description:"How the document came to be: written by a generator for a request, or authored by a person as a screen of the product. Both are verified the same way; the mark a renderer shows can say which"}},additionalProperties:!1},root:{$ref:"#/$defs/Id",description:"Id of the top-level component"},components:{type:"array",minItems:1,items:{$ref:"#/$defs/Component"}},data:{type:"object",description:"Host data snapshot. Supplied by the host (or a test fixture), never by the model."}},additionalProperties:!1,$defs:{Id:{type:"string",pattern:"^[A-Za-z][A-Za-z0-9_-]*$",description:"Component id, unique within the document"},Key:{type:"string",pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$",description:"Stable semantic key (e.g. 'fee', 'recipient.name'). The same thing gets the same key across generations; interface memory uses it to keep placement, order and labels consistent."},Path:{type:"string",pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$",description:"RFC 6901 JSON Pointer into host-provided data. Absolute ('/account/balance') or, inside a template, relative to the current item ('amount')."},Binding:{type:"object",required:["path"],properties:{path:{$ref:"#/$defs/Path"}},additionalProperties:!1,description:"A value read from (and, for inputs, written to) host data. Data always comes from the host; the model never invents it."},DynamicString:{oneOf:[{type:"string"},{$ref:"#/$defs/Binding"}]},DynamicNumber:{oneOf:[{type:"number"},{$ref:"#/$defs/Binding"}]},DynamicBoolean:{oneOf:[{type:"boolean"},{$ref:"#/$defs/Binding"}]},DynamicValue:{oneOf:[{type:["string","number","boolean"]},{$ref:"#/$defs/Binding"}]},Format:{type:"object",required:["type"],properties:{type:{enum:["text","number","currency","percent","date","time","datetime","relativeTime","duration","color","bytes"]},currency:{$ref:"#/$defs/DynamicString",description:"ISO 4217 code, required for type 'currency'"},precision:{type:"integer",minimum:0,maximum:6}},additionalProperties:!1,description:"How to present a value. The renderer localizes it; the model never pre-formats numbers or dates into strings."},Tone:{enum:["neutral","info","success","warning","danger"]},Accessibility:{type:"object",properties:{label:{$ref:"#/$defs/DynamicString",description:"Accessible name, when the visible label is absent or insufficient"},description:{$ref:"#/$defs/DynamicString"},live:{enum:["off","polite","assertive"]},hidden:{type:"boolean",description:"Hide from assistive technology (decorative only)"}},additionalProperties:!1,description:"Same fields as A2UI v1.0 'accessibility'. Components already carry roles and names from their semantics; use this only to add to them."},Capability:{type:"string",pattern:"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)+$",description:"Name of a host-registered capability (e.g. 'transfer.confirm'). The 'ui.' namespace is reserved for renderer-handled actions: ui.dismiss, ui.back, ui.next."},Action:{type:"object",required:["event"],properties:{event:{type:"object",required:["name"],properties:{name:{$ref:"#/$defs/Capability"},context:{type:"object",additionalProperties:{$ref:"#/$defs/DynamicValue"},description:"Values sent with the event, usually bindings to inputs or to the current template item"}},additionalProperties:!1}},additionalProperties:!1,description:"A declared intent. The host binds it to a handler; generated UI never runs code. Same shape as A2UI 'action.event'."},ActionSpec:{type:"object",required:["label","action"],properties:{label:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},ChildList:{type:"array",items:{$ref:"#/$defs/Id"},minItems:1,description:"Ordered child component ids"},Template:{type:"object",required:["path","componentId"],properties:{path:{$ref:"#/$defs/Path",description:"Array in host data to repeat over"},componentId:{$ref:"#/$defs/Id",description:"Component rendered once per item; relative paths inside it resolve against the item"}},additionalProperties:!1,description:"Same shape as A2UI templated children"},Options:{oneOf:[{type:"array",minItems:2,items:{type:"object",required:["value","label"],properties:{value:{type:["string","number","boolean"]},label:{$ref:"#/$defs/DynamicString"},description:{$ref:"#/$defs/DynamicString"}},additionalProperties:!1}},{type:"object",required:["path","valuePath","labelPath"],properties:{path:{$ref:"#/$defs/Path"},valuePath:{$ref:"#/$defs/Path"},labelPath:{$ref:"#/$defs/Path"},descriptionPath:{$ref:"#/$defs/Path"},avatarPath:{$ref:"#/$defs/Path",description:"Initials or a media reference per option: renders people and places with a face"},imagePath:{$ref:"#/$defs/Path"},recentPath:{$ref:"#/$defs/Path",description:"Boolean per option: shown in a 'Recent' row above the full list"}},additionalProperties:!1}],description:"Either a fixed list, or options read from host data"},ComponentAction:{type:"object",description:"A button that triggers a host capability.",required:["id","component","label","action"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Action"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Verb-first label saying what happens ('Send \xA320', not 'OK')"},action:{$ref:"#/$defs/Action"},emphasis:{enum:["primary","secondary","tertiary"],default:"secondary"},tone:{enum:["default","danger"],default:"default"},disabled:{$ref:"#/$defs/DynamicBoolean"},description:{$ref:"#/$defs/DynamicString",description:"A second line under the label saying what the action does, for menu-like actions"},copy:{$ref:"#/$defs/DynamicString",description:"For the renderer action ui.copy: the text put on the clipboard; otherwise the action context's 'text' is copied"},shortcut:{type:"string",pattern:"^((mod|ctrl|alt|shift)\\+){0,3}([a-z0-9]|enter|escape|space|tab|backspace|delete|arrowup|arrowdown|arrowleft|arrowright|home|end|f[1-9]|f1[0-2]|slash|comma|period)$",description:`Keyboard shortcut that triggers the action while the surface has focus, e.g. "mod+enter" or "shift+d". 'mod' is Command on Apple platforms and Control elsewhere. The renderer shows the hint beside the label and never binds it outside the surface.`}},additionalProperties:!1},ComponentActionBar:{type:"object",description:"The set of actions for a surface or section; the renderer places it where that platform expects.",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ActionBar"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList",description:"Action component ids, in order of importance"}},additionalProperties:!1},ComponentActionMenu:{type:"object",description:"Secondary actions behind one control: an overflow menu, a dropdown, a split button or a context menu.",required:["id","component","label","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ActionMenu"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"The control's name: 'More actions' for an overflow, or the verb for a dropdown ('Export')"},kind:{enum:["overflow","dropdown","split","context"],default:"overflow",description:"'overflow' is the '\u2026' control; 'dropdown' is a labelled button that opens the menu; 'split' pairs a primary action with a menu of alternatives; 'context' opens on right-click or long-press of the component it belongs to"},children:{$ref:"#/$defs/ChildList",description:"The Actions in the menu, in order; a danger-toned one goes last and is separated"},primary:{$ref:"#/$defs/Id",description:"For 'split': the Action that runs when the main part is pressed"}},additionalProperties:!1},ComponentAppBar:{type:"object",description:"The bar at the top of the product: brand or title, a leading action, search, trailing actions and the account.",required:["id","component","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"AppBar"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"The product's name, or the current screen's title on compact layouts"},brand:{$ref:"#/$defs/DynamicString",description:"A media reference for the logo, or initials; rendered before the title"},leading:{$ref:"#/$defs/Id",description:"An Action at the start: back, or the menu button the renderer adds itself when the navigation is a drawer"},search:{$ref:"#/$defs/Id",description:"A TextInput of kind 'search' (or a command palette opener: an Action with a shortcut)"},actions:{$ref:"#/$defs/Id",description:"An ActionBar at the end: notifications, help, the primary action of the product"},account:{$ref:"#/$defs/Id",description:"An Identity (the signed-in person) or an ActionMenu opened from it"},variant:{enum:["standard","large","compact"],default:"standard",description:"'large' puts the title under the bar on its own line on wide screens; 'compact' is 48px for dense tools"},sticky:{type:"boolean",default:!0}},additionalProperties:!1},ComponentCard:{type:"object",description:"One self-contained entity (an account, an order, a place), optionally actionable as a whole.",required:["id","component","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Card"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Name of the entity"},subtitle:{$ref:"#/$defs/DynamicString"},media:{$ref:"#/$defs/Id",description:"Optional Media component id"},badge:{type:"object",required:["text"],properties:{text:{$ref:"#/$defs/DynamicString"},tone:{$ref:"#/$defs/Tone"}},additionalProperties:!1},children:{$ref:"#/$defs/ChildList"},action:{$ref:"#/$defs/Action",description:"Activating the card as a whole (e.g. open details)"},progress:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding",description:"Number from 0 to 1 in host data"},label:{$ref:"#/$defs/DynamicString",description:"Optional text, e.g. '120 of 320 pages'; the percentage is shown otherwise"}},additionalProperties:!1,description:"Progress through the entity (reading, a course, a goal)"}},additionalProperties:!1},ComponentChart:{type:"object",description:"A visual summary of data, always paired with a text summary.",required:["id","component","intent","data","title","summary","x","series"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Chart"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},intent:{enum:["trend","comparison","composition","distribution","relationship","flow","hierarchy","matrix","range"],description:"What the chart should communicate; the renderer picks the chart type. 'relationship' between two measures; 'flow' of amounts from each x value into the series; 'hierarchy' of parts by size; 'matrix' of x values against series; 'range' from the first series to the second"},data:{$ref:"#/$defs/Binding",description:"Array of data points in host data"},title:{$ref:"#/$defs/DynamicString"},summary:{$ref:"#/$defs/DynamicString",description:"Text alternative stating the takeaway (required)"},x:{type:"object",required:["path","label"],properties:{path:{$ref:"#/$defs/Path"},label:{$ref:"#/$defs/DynamicString"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1},series:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["path","label"],properties:{key:{$ref:"#/$defs/Key"},path:{$ref:"#/$defs/Path"},label:{$ref:"#/$defs/DynamicString"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1}}},additionalProperties:!1},ComponentChoice:{type:"object",description:"Pick one or several options from a known set. The renderer chooses the control.",required:["id","component","label","options","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Choice"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},options:{$ref:"#/$defs/Options"},value:{$ref:"#/$defs/Binding",description:"Two-way binding into host data"},mode:{enum:["single","multiple"],default:"single"},help:{$ref:"#/$defs/DynamicString"},required:{type:"boolean",default:!1}},additionalProperties:!1},ComponentCode:{type:"object",description:"Code, a command or preformatted text, shown as written and copyable.",required:["id","component","text"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Code"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},text:{$ref:"#/$defs/DynamicString",description:"The code itself, usually bound to host data (an API key, a command, a snippet)"},label:{$ref:"#/$defs/DynamicString",description:"What it is, shown above: 'Install', 'Your API key'"},language:{type:"string",description:"A language name for highlighting, when the renderer has it: 'bash', 'json', 'ts'"},copyable:{type:"boolean",default:!0,description:"A Copy control beside it"},wrap:{type:"boolean",default:!1,description:"Wrap long lines instead of scrolling sideways"},secret:{$ref:"#/$defs/DynamicBoolean",default:!1,description:"Masked until revealed: a key shown once"}},additionalProperties:!1},ComponentCodeInput:{type:"object",description:"A one-time code or PIN, typed into one box per character.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"CodeInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"'Enter the code we emailed you'"},value:{$ref:"#/$defs/Binding",description:"The code so far in host data, as a string"},length:{type:"integer",minimum:4,maximum:12,default:6},kind:{enum:["numeric","alphanumeric"],default:"numeric"},help:{$ref:"#/$defs/DynamicString",description:"Where the code came from and how long it lasts"},required:{$ref:"#/$defs/DynamicBoolean",default:!0},action:{$ref:"#/$defs/Action",description:"Runs when every character is in, so the person needn't press a button; context binds to value"}},additionalProperties:!1},ComponentCollection:{type:"object",description:"A list of items from host data, each rendered with the same template.",required:["id","component","items","label"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Collection"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{$ref:"#/$defs/Template"},label:{$ref:"#/$defs/DynamicString",description:"What the list contains, e.g. 'Recent payments'"},empty:{$ref:"#/$defs/Id",description:"Status component shown when there are no items"},selection:{enum:["none","single","multiple"],default:"none"},selected:{$ref:"#/$defs/Binding",description:"Selected item value(s) in host data when selection is not 'none'"},layout:{enum:["auto","list","grid","timeline","carousel","calendar"],default:"auto",description:"'grid' for visual items (products, books); 'list' for rows; 'timeline' for dated activity; 'carousel' for a row people page through; 'calendar' places items on a month grid by 'datePath'; 'auto' lets the renderer choose from the item template"},datePath:{$ref:"#/$defs/Path",description:"For 'calendar': relative path in each item to the ISO date that places it"},page:{type:"object",properties:{index:{$ref:"#/$defs/Binding",description:"1-based page number in host data"},size:{$ref:"#/$defs/Binding"},total:{$ref:"#/$defs/Binding",description:"Total number of items, all pages"},action:{$ref:"#/$defs/Action",description:"Sent when someone changes page or page size"}},additionalProperties:!1,description:"Paging state, owned by the host"},bulkActions:{$ref:"#/$defs/Id",description:"ActionBar shown while items are selected (selection 'multiple')"},reorderable:{type:"boolean",default:!1,description:"People can drag items, or move them with the keyboard, into a new order"},order:{$ref:"#/$defs/Binding",description:"Item values (ids) in the order people put them, written when reorderable"}},additionalProperties:!1},ComponentColorInput:{type:"object",description:"Pick a colour: from swatches the host offers, or any colour.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ColorInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"The colour in host data, as CSS text in the chosen format"},swatches:{$ref:"#/$defs/Options",description:"Named colours to pick from (value is the colour, label its name); without them the full picker shows"},format:{enum:["hex","rgb","hsl"],default:"hex"},alpha:{type:"boolean",default:!1,description:"Let the person set opacity too"},help:{$ref:"#/$defs/DynamicString"},required:{$ref:"#/$defs/DynamicBoolean",default:!1}},additionalProperties:!1},ComponentColumns:{type:"object",description:"Side-by-side columns that collapse to a stack on compact layouts: a main column with a narrower one beside it, or equal halves.",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Columns"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList",description:"One component per column, in reading order"},layout:{enum:["two-thirds","one-third","halves","thirds","sidebar-start","sidebar-end"],default:"two-thirds",description:"'two-thirds' is a wide first column (GOV.UK's default); 'one-third' the reverse; 'halves' and 'thirds' equal; 'sidebar-*' a fixed 18rem column at that edge"},collapse:{enum:["compact","medium","never"],default:"compact",description:"The width below which the columns stack"},align:{enum:["start","center","stretch"],default:"stretch"}},additionalProperties:!1},ComponentComparison:{type:"object",description:"Compare a few options across the same attributes, and choose one.",required:["id","component","items","itemTitle","attributes"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Comparison"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{$ref:"#/$defs/Binding",description:"Array of options in host data (2\u20134 recommended)"},itemTitle:{$ref:"#/$defs/Path",description:"Relative path to each item's name"},attributes:{type:"array",minItems:1,maxItems:8,items:{type:"object",required:["key","label","path"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},path:{$ref:"#/$defs/Path"},format:{$ref:"#/$defs/Format"},better:{enum:["higher","lower","none"],default:"none"},group:{$ref:"#/$defs/DynamicString",description:"Heading that groups related attributes (e.g. 'Storage', 'Support')"}},additionalProperties:!1}},choose:{$ref:"#/$defs/ActionSpec",description:"Action per item; context bindings resolve against the item"},recommended:{$ref:"#/$defs/DynamicString",description:"Optional value of the recommended item's title, with a reason in 'summary'"},summary:{$ref:"#/$defs/DynamicString"},recommendedReason:{$ref:"#/$defs/DynamicString",description:"Why the recommended item fits, shown on its badge (one short sentence)"}},additionalProperties:!1},ComponentConfirm:{type:"object",description:"Asks the user to confirm a consequential or destructive action, showing what will happen.",required:["id","component","title","severity","confirm"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Confirm"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Question naming the action ('Send \xA3250 to Alex?')"},message:{$ref:"#/$defs/DynamicString"},consequence:{$ref:"#/$defs/DynamicString",description:"What happens and whether it can be undone"},summary:{$ref:"#/$defs/Id",description:"Optional DetailList summarising what is being confirmed"},severity:{enum:["consequential","destructive"]},confirm:{$ref:"#/$defs/ActionSpec"},cancel:{$ref:"#/$defs/ActionSpec",description:"Defaults to 'Cancel' \u2192 ui.dismiss"},typeToConfirm:{$ref:"#/$defs/DynamicString",description:"Text the user must type before confirming (for irreversible, high-impact actions)"},amount:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1,description:"The amount being committed, shown large at the top"},subject:{type:"object",required:["title"],properties:{title:{$ref:"#/$defs/DynamicString"},subtitle:{$ref:"#/$defs/DynamicString"},avatar:{$ref:"#/$defs/DynamicString",description:"Initials, or a media reference in host data"}},additionalProperties:!1,description:"Who or what the action is for, shown with a face or picture"},consequences:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["title"],properties:{title:{$ref:"#/$defs/DynamicString"},detail:{$ref:"#/$defs/DynamicString"},icon:{enum:["lock","trash","clock","tag","info","alert","mail","shield"]}},additionalProperties:!1},description:"What will happen, as a short list (for destructive actions)"}},additionalProperties:!1},ComponentCustom:{type:"object",description:"A slot for a component the host implements itself: a logo, a brand moment, a bespoke widget. The document names it and gives it props; the product renders it, and a fallback stands in when it can't.",required:["id","component","name","fallback"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Custom"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},name:{type:"string",pattern:"^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$",description:"The host's name for the component, namespaced: 'brand.logo', 'store.map'"},props:{type:"object",description:"What the host component takes; values may be bindings",additionalProperties:!0},fallback:{$ref:"#/$defs/Id",description:"What renders when the host has no component of that name: a Text, a Media, a Status. Required, so the document stands on its own"},label:{$ref:"#/$defs/DynamicString",description:"An accessible name for the slot when the host component is decorative or complex"}},additionalProperties:!1},ComponentDateInput:{type:"object",description:"A date, time, date-time or date range.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"DateInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"ISO 8601 value(s) in host data"},kind:{enum:["date","time","datetime","dateRange","month","year"],default:"date",description:"'month' stores YYYY-MM and 'year' stores YYYY"},multiple:{type:"boolean",default:!1,description:"Several dates rather than one; the value is a list"},min:{$ref:"#/$defs/DynamicString"},max:{$ref:"#/$defs/DynamicString"},help:{$ref:"#/$defs/DynamicString"},required:{type:"boolean",default:!1}},additionalProperties:!1},ComponentDetailList:{type:"object",description:"Label/value pairs describing one thing (a summary, a receipt, a review step).",required:["id","component","items"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"DetailList"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{type:"array",minItems:1,items:{type:"object",required:["label","value"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/DynamicValue"},format:{$ref:"#/$defs/Format"},total:{type:"boolean",description:"The total row of a receipt, shown emphasised after a divider"}},additionalProperties:!1}},title:{$ref:"#/$defs/DynamicString"},variant:{enum:["default","receipt"],default:"default",description:"'receipt' for money: values right-aligned in tabular figures, with an optional total row"},layout:{enum:["rows","grid"],default:"rows",description:"'grid' packs many short fields into columns (record pages); 'rows' keeps one per line"},rowAction:{$ref:"#/$defs/Action",description:"Offered per row as a 'Change' link named after the row (GOV.UK summary list); the row's key is sent as 'key' with the context"}},additionalProperties:!1},ComponentDisclosure:{type:"object",description:"Progressive disclosure: secondary content hidden behind a toggle.",required:["id","component","summary","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Disclosure"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},summary:{$ref:"#/$defs/DynamicString",description:"Always-visible label describing what is hidden"},children:{$ref:"#/$defs/ChildList"},open:{type:"boolean",default:!1}},additionalProperties:!1},ComponentFileInput:{type:"object",description:"Choose or drop files to attach or upload.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"FileInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"The chosen files in host data: a list of { name, size, type, ref }, written by the renderer; the host uploads them"},accept:{type:"array",items:{type:"string"},description:"Allowed types as extensions or MIME types: ['.pdf', 'image/*']"},multiple:{type:"boolean",default:!1},maxSize:{type:"integer",minimum:1,description:"Largest file, in bytes; the renderer refuses larger ones with a message"},help:{$ref:"#/$defs/DynamicString",description:"What to attach and why; the accepted types and size are said by the renderer"},required:{$ref:"#/$defs/DynamicBoolean",default:!1}},additionalProperties:!1},ComponentFilterPanel:{type:"object",description:"Filters for a list of results, with the result count.",required:["id","component","children","results"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"FilterPanel"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Defaults to 'Filters'"},children:{$ref:"#/$defs/ChildList",description:"The filter inputs (Choice, RangeInput, Toggle, DateInput, TextInput)"},results:{$ref:"#/$defs/Id",description:"The Collection or Table the filters narrow"},resultCount:{$ref:"#/$defs/Binding",description:"Number of results with the current filters, from host data"},clear:{$ref:"#/$defs/Action",description:"Optional action that resets the filters on the host"}},additionalProperties:!1},ComponentFooter:{type:"object",description:"The bar at the bottom of the product: link groups, the legal line, locale or status.",required:["id","component","legal"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Footer"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},groups:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["key","label","items"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},items:{type:"array",minItems:1,maxItems:12,items:{type:"object",required:["key","label","action"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1}}},additionalProperties:!1},description:"Columns of links, each under a heading"},legal:{$ref:"#/$defs/DynamicString",description:"The line at the very bottom: copyright, licence, company details"},aside:{$ref:"#/$defs/Id",description:"Something at the end of the legal row: a locale Choice, a status Tag, a Text"}},additionalProperties:!1},ComponentForm:{type:"object",description:"Collects inputs and submits them together.",required:["id","component","children","submit"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Form"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList"},submit:{$ref:"#/$defs/ActionSpec"},cancel:{$ref:"#/$defs/ActionSpec",description:"Optional; defaults to ui.dismiss when omitted and the surface is dismissible"},aside:{$ref:"#/$defs/Id",description:"Optional summary (DetailList, Card or Group) kept beside the form, e.g. the running total"},layout:{enum:["stacked","horizontal"],default:"stacked",description:"'horizontal' puts label and help on the left and the control on the right (settings pages), on wide surfaces"}},additionalProperties:!1},ComponentFrame:{type:"object",description:"The product's frame: the regions around its screens (header, navigation, main, aside, footer, banner), with an outlet where screens and generated surfaces appear.",required:["id","component","main"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Frame"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},header:{$ref:"#/$defs/Id",description:"An AppBar"},navigation:{$ref:"#/$defs/Id",description:"A Navigation of kind 'main'; its placement decides rail, bar, drawer or side"},main:{$ref:"#/$defs/Id",description:"The outlet: a component the host replaces with the current screen. Usually an Outlet; may be a Group holding a fixed screen"},aside:{$ref:"#/$defs/Id",description:"A secondary column beside main on wide layouts (help, context, activity)"},footer:{$ref:"#/$defs/Id",description:"A Footer"},banner:{$ref:"#/$defs/Id",description:"A Status shown above everything (a phase banner, an outage, a trial ending)"},skipTarget:{type:"boolean",default:!0,description:"The renderer adds a skip link to main"},width:{enum:["full","contained"],default:"contained",description:"'contained' centres main at measure.max \xD7 1.6; 'full' lets dense tools use the whole viewport"}},additionalProperties:!1},ComponentGroup:{type:"object",description:"Visually groups closely related items without a heading (proximity).",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Group"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList"},label:{$ref:"#/$defs/DynamicString",description:"Accessible name for the group when it isn't obvious from its content"},arrangement:{enum:["auto","inline","grid"],default:"auto",description:"Hint only. 'inline' for a few short peers (e.g. metrics); renderers stack on narrow screens."}},additionalProperties:!1},ComponentIdentity:{type:"object",description:"A person, team or organisation: picture, name and details, or several of them together.",required:["id","component","name"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Identity"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},name:{$ref:"#/$defs/DynamicString",description:"Always bound to host data: a name is never invented"},detail:{$ref:"#/$defs/DynamicString",description:"One line under the name: a role, an email, a team, a status"},image:{$ref:"#/$defs/DynamicString",description:"A media reference from host data, resolved by the host as Media's is; initials from the name are shown without one"},kind:{enum:["person","team","organization"],default:"person",description:"A person's picture is round; a team's or organisation's is square"},size:{enum:["small","default","large"],default:"default"},action:{$ref:"#/$defs/Action",description:"Activating the identity as a whole, e.g. open the person's record"},group:{type:"object",required:["path","namePath"],properties:{path:{$ref:"#/$defs/Path",description:"A list of people in host data, shown as overlapping pictures with a '+N' for the rest"},namePath:{$ref:"#/$defs/Path",description:"Relative to each entry"},imagePath:{$ref:"#/$defs/Path",description:"Relative to each entry"},max:{type:"integer",minimum:1,maximum:8,default:4,description:"Pictures shown before '+N'"}},additionalProperties:!1,description:"Several identities as one element ('Rhea, Tom and 3 others'). name is then the group's accessible summary"}},additionalProperties:!1},ComponentMedia:{type:"object",description:"An image, video, audio clip, gallery or QR code supplied by the host.",required:["id","component"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Media"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},src:{$ref:"#/$defs/Binding",description:"Image, video or audio reference in host data; generated UI never contains URLs"},alt:{$ref:"#/$defs/DynamicString",description:"Required unless decorative. For a gallery it names the set; for a QR code it says what the code opens"},decorative:{type:"boolean",default:!1},aspect:{enum:["square","landscape","portrait","auto"],default:"auto"},kind:{enum:["image","video","audio","gallery","qr"],default:"image",description:"'video' and 'audio' play with native controls; 'gallery' is several images from 'items'; 'qr' encodes 'value' as a QR code"},poster:{$ref:"#/$defs/DynamicString",description:"For 'video': media reference for the frame shown before play"},transcript:{$ref:"#/$defs/DynamicString",description:"For 'video' and 'audio': the words, offered under the player"},items:{$ref:"#/$defs/Binding",description:"For 'gallery': array of images in host data"},imagePath:{$ref:"#/$defs/Path",description:"For 'gallery': relative path in each item to its image reference"},altPath:{$ref:"#/$defs/Path",description:"For 'gallery': relative path in each item to its alt text"},value:{$ref:"#/$defs/DynamicString",description:"For 'qr': the text encoded, e.g. a payment link from host data"}},additionalProperties:!1},ComponentMetric:{type:"object",description:"A key figure with a label, and optionally its change.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Metric"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Always bound to host data"},format:{$ref:"#/$defs/Format"},change:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding"},format:{$ref:"#/$defs/Format"},favorable:{enum:["increase","decrease","none"],default:"increase",description:"Which direction is good, so color follows meaning, not sign"}},additionalProperties:!1},caption:{$ref:"#/$defs/DynamicString"}},additionalProperties:!1},ComponentNavigation:{type:"object",description:"The product's main navigation.",required:["id","component","items","current"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Navigation"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Names the navigation, e.g. 'Main'"},items:{type:"array",minItems:2,maxItems:20,items:{type:"object",required:["key","label","action"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},group:{$ref:"#/$defs/DynamicString",description:"Heading that groups items (e.g. 'Billing')"},icon:{enum:["home","search","inbox","book","tag","clock","shield","lock","mail","settings","chart","people","card","file","orders","products","customers","discounts","analytics","calendar","bell","help","folder","star","grid","layers"]},badge:{$ref:"#/$defs/Binding",description:"Count needing attention, e.g. overdue invoices"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1}},current:{$ref:"#/$defs/Binding",description:"Key of the current item in host data"},kind:{enum:["main","breadcrumb","nested","toc","local"],default:"main",description:"'main' is the product's sections; 'breadcrumb' the ordered trail to here; 'nested' groups that expand; 'toc' the sections of this page (items link to anchors named by their keys); 'local' the sections of one area, as tabs"},placement:{enum:["auto","side","rail","bar","drawer"],default:"auto",description:"For kind 'main' inside a Frame: where it lives. 'auto' is a side column on wide layouts, a rail on medium and a bottom bar (\u2264 5 items) or a drawer on compact; the others fix it"}},additionalProperties:!1},ComponentOutlet:{type:"object",description:"Where the current screen renders inside a Frame: the host fills it with a screen document or a generated surface.",required:["id","component"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Outlet"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Names the region for assistive tech when the screen has no title yet"},loading:{$ref:"#/$defs/Id",description:"What shows while a screen is on its way; the renderer's skeleton when absent"}},additionalProperties:!1},ComponentPanel:{type:"object",description:"Content over the current view: a dialog, a drawer, a bottom sheet or a popover, opened from an action and dismissed to return.",required:["id","component","title","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Panel"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},kind:{enum:["dialog","drawer","sheet","popover"],default:"dialog",description:"'dialog' centres and blocks; 'drawer' slides from the side for a form or a record; 'sheet' rises from the bottom on phones; 'popover' floats by its opener for a small choice"},title:{$ref:"#/$defs/DynamicString"},children:{$ref:"#/$defs/ChildList",description:"What the panel holds"},actions:{$ref:"#/$defs/Id",description:"An ActionBar in the panel's footer: its primary action and a Cancel"},open:{$ref:"#/$defs/DynamicBoolean",description:"Bound to host data: true shows the panel; the renderer writes false on dismiss. Open when absent"},dismissible:{type:"boolean",default:!0,description:"Escape, the close control and the backdrop dismiss it; false for a panel that must be completed"},size:{enum:["small","default","large"],default:"default"}},additionalProperties:!1},ComponentProgress:{type:"object",description:"How far along something is, or how much of a bounded amount is used: a bar, a ring or a meter.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Progress"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What is being measured: 'Storage used', 'Upload', 'Goal'"},value:{$ref:"#/$defs/DynamicNumber",description:"Bound to host data. A fraction from 0 to 1, or an amount when max is given"},max:{$ref:"#/$defs/DynamicNumber",description:"The whole, when value is an amount rather than a fraction: 200 for '180 of 200 GB'"},kind:{enum:["bar","ring","meter"],default:"bar",description:"'bar' and 'ring' show progress towards done; 'meter' shows a measured amount within bounds, with tone by threshold"},caption:{$ref:"#/$defs/DynamicString",description:"Text beside the readout: '180 of 200 GB', '3 days left'. The readout itself is derived from value"},format:{$ref:"#/$defs/Format",description:"How the readout is shown; percent without it"},tone:{$ref:"#/$defs/Tone",description:"Fixed tone; a meter without one takes warning past thresholds.warning and danger past thresholds.danger"},thresholds:{type:"object",properties:{warning:{type:"number",minimum:0,maximum:1},danger:{type:"number",minimum:0,maximum:1}},additionalProperties:!1,description:"Fractions at which a meter changes tone"},indeterminate:{$ref:"#/$defs/DynamicBoolean",description:"The task is running and how far along isn't known"}},additionalProperties:!1},ComponentRangeInput:{type:"object",description:"A number, or a range between two numbers, within known bounds.",required:["id","component","label","value","min","max"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"RangeInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Number in host data, or [min, max] when mode is 'range'"},min:{type:"number"},max:{type:"number"},step:{type:"number",exclusiveMinimum:0},format:{$ref:"#/$defs/Format"},mode:{enum:["single","range"],default:"single",description:"'range' picks a lower and upper bound; value is then [min, max]"}},additionalProperties:!1},ComponentRating:{type:"object",description:"A score out of N: given by the person, or shown as others gave it.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Rating"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What is rated: 'Your rating', 'Average rating'"},value:{$ref:"#/$defs/Binding",description:"The score in host data; written when the person can rate"},max:{type:"integer",minimum:2,maximum:10,default:5},readOnly:{$ref:"#/$defs/DynamicBoolean",default:!1,description:"Show a score rather than take one"},count:{$ref:"#/$defs/DynamicNumber",description:"How many ratings the score is from, shown after it: '4.6 (212)'"},help:{$ref:"#/$defs/DynamicString"},required:{$ref:"#/$defs/DynamicBoolean",default:!1},action:{$ref:"#/$defs/Action",description:"Runs when a rating is given, with context bound to value"}},additionalProperties:!1},ComponentSection:{type:"object",description:"A titled region of the surface that groups related content under a heading.",required:["id","component","title","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Section"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Heading for the section"},description:{$ref:"#/$defs/DynamicString",description:"Optional one-line explanation under the heading"},children:{$ref:"#/$defs/ChildList"}},additionalProperties:!1},ComponentSplit:{type:"object",description:"Master and detail side by side: a list that stays while the chosen item's detail shows beside it; on compact layouts the detail replaces the list.",required:["id","component","primary","detail","selected"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Split"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},primary:{$ref:"#/$defs/Id",description:"The list: a Collection or a Table with selection 'single'"},detail:{$ref:"#/$defs/Id",description:"What shows for the selected item; its bindings resolve against the selected item's scope"},selected:{$ref:"#/$defs/Binding",description:"The selected item's value in host data, shared with the primary's 'selected'"},empty:{$ref:"#/$defs/Id",description:"A Status shown in the detail pane while nothing is selected"},ratio:{enum:["narrow","balanced","wide"],default:"narrow",description:"The list's share: about a third, half, or two thirds"},resizable:{type:"boolean",default:!1}},additionalProperties:!1},ComponentStatus:{type:"object",description:"Feedback about state: info, success, warning, error, empty or loading.",required:["id","component","kind","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Status"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},kind:{enum:["info","success","warning","error","empty","loading","undo"]},title:{$ref:"#/$defs/DynamicString"},message:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Id",description:"Optional Action (or ActionBar for a primary and a secondary) to recover or continue, e.g. 'Try again'; for 'undo', the Undo action"},icon:{enum:["lock","trash","clock","tag","info","alert","mail","shield","search","book","inbox","check"],description:"Optional icon for empty states; the renderer picks one by kind otherwise"},variant:{enum:["default","inline"],default:"default",description:"'inline' is a notice inside a page (a warning above a record) rather than a block of its own"}},additionalProperties:!1},ComponentSteps:{type:"object",description:"A task split into ordered steps with visible progress.",required:["id","component","steps","finish"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Steps"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},steps:{type:"array",minItems:2,maxItems:7,items:{type:"object",required:["key","title","content"],properties:{key:{$ref:"#/$defs/Key"},title:{$ref:"#/$defs/DynamicString"},content:{$ref:"#/$defs/Id"},status:{$ref:"#/$defs/DynamicString",description:"For 'tasklist': 'todo', 'inProgress', 'done' or 'blocked', usually bound to host data"}},additionalProperties:!1}},kind:{enum:["wizard","tasklist","guide"],default:"wizard",description:"'wizard' shows one step at a time in order; 'tasklist' lists tasks people do in any order, each with its status; 'guide' is numbered instructions with no state"},current:{$ref:"#/$defs/DynamicNumber",description:"Index of the current step (default 0)"},finish:{$ref:"#/$defs/ActionSpec"}},additionalProperties:!1},ComponentTable:{type:"object",description:"Tabular data: many items sharing the same attributes.",required:["id","component","rows","caption","columns"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Table"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},rows:{$ref:"#/$defs/Binding",description:"Array of row objects in host data"},caption:{$ref:"#/$defs/DynamicString",description:"What the table shows (required for accessibility)"},columns:{type:"array",minItems:1,maxItems:8,items:{type:"object",required:["key","label","path"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},path:{$ref:"#/$defs/Path",description:"Relative to the row"},format:{$ref:"#/$defs/Format"},kind:{enum:["text","number","currency","date","status","entity","link"],default:"text",description:"What the cell holds; drives alignment, tabular figures and status tags"},align:{enum:["start","end"],description:"Overrides the alignment the kind implies"},tones:{type:"object",additionalProperties:{$ref:"#/$defs/Tone"},description:`For 'status': value \u2192 tone, e.g. {"Past due": "danger"}`},sortable:{type:"boolean",description:"Whether people can sort by this column"},avatarPath:{$ref:"#/$defs/Path",description:"For 'entity': relative path to the picture or initials"},secondaryPath:{$ref:"#/$defs/Path",description:"For 'entity': a second line, e.g. an email address"}},additionalProperties:!1}},rowAction:{$ref:"#/$defs/Action",description:"Activated per row; context bindings resolve against the row"},empty:{$ref:"#/$defs/Id",description:"Status component shown when there are no rows"},sort:{type:"object",required:["column"],properties:{column:{$ref:"#/$defs/Binding",description:"Key of the sorted column in host data"},direction:{$ref:"#/$defs/Binding",description:"'ascending' or 'descending' in host data"},action:{$ref:"#/$defs/Action",description:"Sent when someone sorts, so the host can re-query"}},additionalProperties:!1,description:"Sorting state, owned by the host"},selection:{enum:["none","multiple"],default:"none",description:"'multiple' adds a checkbox column and a select-all"},selected:{$ref:"#/$defs/Binding",description:"Array of selected row values in host data"},rowValuePath:{$ref:"#/$defs/Path",description:"Relative path to each row's id, used for selection"},bulkActions:{$ref:"#/$defs/Id",description:"ActionBar shown instead of the toolbar while rows are selected"},rowActions:{$ref:"#/$defs/Id",description:"ActionBar offered per row, in a menu named after the row"},expandable:{type:"boolean",default:!1,description:"Rows open to show 'detail' beneath them"},detail:{$ref:"#/$defs/Id",description:"Component rendered under an expanded row; relative paths inside it resolve against the row"},toolbar:{$ref:"#/$defs/Id",description:"ActionBar above the table (e.g. New, Import, Export)"},search:{$ref:"#/$defs/Id",description:"TextInput (kind 'search') above the table"},views:{type:"array",minItems:2,maxItems:8,items:{type:"object",required:["key","label"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},count:{$ref:"#/$defs/Binding"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},description:"Saved views (All, Mine, Past due\u2026), shown as tabs with counts"},view:{$ref:"#/$defs/Binding",description:"Key of the selected saved view in host data"},page:{type:"object",properties:{index:{$ref:"#/$defs/Binding",description:"1-based page number in host data"},size:{$ref:"#/$defs/Binding"},total:{$ref:"#/$defs/Binding",description:"Total number of rows, all pages"},action:{$ref:"#/$defs/Action",description:"Sent when someone changes page or page size"}},additionalProperties:!1,description:"Paging state, owned by the host"}},additionalProperties:!1},ComponentTag:{type:"object",description:"A short label, status or count attached to something else.",required:["id","component","label"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Tag"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"The word or two it shows: 'Past due', 'Beta', 'Design'"},kind:{enum:["label","status","count"],default:"label",description:"'status' is the state of the thing it sits on and is coloured by tone; 'count' is a number, with the label as its accessible name"},tone:{$ref:"#/$defs/Tone",default:"neutral",description:"Meaning, not decoration: a status tag's tone says whether the state is fine, a warning or a problem"},count:{$ref:"#/$defs/DynamicNumber",description:"For kind 'count': the number, bound to host data"},remove:{$ref:"#/$defs/Action",description:"Present when the person can take the tag off (a filter chip, a chosen recipient): the capability that removes it"}},additionalProperties:!1},ComponentText:{type:"object",description:"A run of text.",required:["id","component","text"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Text"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},text:{$ref:"#/$defs/DynamicString"},variant:{enum:["body","supporting","caption","rich","list","quote"],default:"body",description:"'rich' allows **bold**, *italic*, `code` and [links](href) in the text; 'list' is a bulleted or numbered list of 'items'; 'quote' is a quotation with an optional 'cite'"},format:{$ref:"#/$defs/Format",description:"Only when 'text' is bound to a non-string value"},items:{$ref:"#/$defs/Binding",description:"For 'list': array in host data, one entry per item; 'text' introduces the list"},itemPath:{$ref:"#/$defs/Path",description:"For 'list': relative path in each entry to the text shown, when the entries are objects"},ordered:{type:"boolean",default:!1,description:"For 'list': numbered rather than bulleted"},cite:{$ref:"#/$defs/DynamicString",description:"For 'quote': who or what is quoted"}},additionalProperties:!1},ComponentTextInput:{type:"object",description:"A single text-like value: text, number, email, phone, currency, search or long text.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"TextInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Two-way binding into host data"},kind:{enum:["text","multiline","number","currency","email","phone","url","search","suggestions","richtext","tags","mentions","code","masked","inline"],default:"text",description:"'suggestions' offers completions from 'options' while leaving any text allowed; 'richtext' is short formatted text (bold, italic, lists) stored as markdown-ish text; 'tags' is a list of short values entered one at a time; 'mentions' offers 'options' after an @; 'code' is monospace with no autocorrection; 'masked' follows 'mask'; 'inline' reads as text until it is clicked"},options:{$ref:"#/$defs/Options",description:"For 'suggestions' and 'mentions': the completions offered"},mask:{type:"string",description:"For 'masked': # for a digit, A for a letter, * for either, anything else typed for you, e.g. '#### #### #### ####'"},currency:{$ref:"#/$defs/DynamicString",description:"ISO 4217 code when kind is 'currency'"},help:{$ref:"#/$defs/DynamicString",description:"Hint shown below the label (not a placeholder)"},required:{type:"boolean",default:!1},validation:{type:"object",properties:{min:{type:"number"},max:{type:"number"},minLength:{type:"integer",minimum:0},maxLength:{type:"integer",minimum:1},message:{$ref:"#/$defs/DynamicString",description:"Error message shown when validation fails"}},additionalProperties:!1},autocomplete:{type:"string",description:"HTML autocomplete token hint (e.g. 'email', 'postal-code')"},placeholder:{$ref:"#/$defs/DynamicString",description:"Only for kind 'search', shown inside the field. Never a substitute for the label."},size:{enum:["default","hero"],default:"default",description:"'hero' for the one number a surface is about (an amount to send): large and centred"}},additionalProperties:!1},ComponentToggle:{type:"object",description:"An on/off setting.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Toggle"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Boolean in host data"},description:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action",description:"Set when the change applies immediately (a setting); omit inside a Form"}},additionalProperties:!1},ComponentTree:{type:"object",description:"A hierarchy people expand, browse and pick from: folders, an org chart, nested categories.",required:["id","component","label","items","labelPath","childrenPath"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Tree"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What the tree holds, e.g. 'Folders'"},items:{$ref:"#/$defs/Binding",description:"The top-level nodes in host data: a list"},labelPath:{$ref:"#/$defs/Path",description:"Relative to each node: the text shown"},childrenPath:{$ref:"#/$defs/Path",description:"Relative to each node: its list of child nodes, absent or empty for a leaf"},valuePath:{$ref:"#/$defs/Path",description:"Relative to each node: what selection writes; the label when absent"},detailPath:{$ref:"#/$defs/Path",description:"Relative to each node: a count or note shown after the label"},selection:{enum:["none","single","multiple"],default:"none"},selected:{$ref:"#/$defs/Binding",description:"Selected node value(s) in host data when selection is not 'none'"},expanded:{$ref:"#/$defs/Binding",description:"Values of the nodes shown open; the first level is open without it"},action:{$ref:"#/$defs/Action",description:"Activating a node, e.g. open that folder; context may bind to the node's fields"}},additionalProperties:!1},ComponentViews:{type:"object",description:"Switch between alternative views of the same subject (tabs).",required:["id","component","views"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Views"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},views:{type:"array",minItems:2,maxItems:6,items:{type:"object",required:["key","label","content"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},content:{$ref:"#/$defs/Id"},count:{$ref:"#/$defs/Binding",description:"How many items the view holds, shown beside its label"}},additionalProperties:!1}},selected:{$ref:"#/$defs/Binding",description:"Key of the selected view in host data"},variant:{enum:["tabs","segmented"],default:"tabs",description:"'tabs' for sections of a record; 'segmented' for switching how the same thing is shown"}},additionalProperties:!1},Component:{type:"object",required:["component"],discriminator:{propertyName:"component"},oneOf:[{$ref:"#/$defs/ComponentAction"},{$ref:"#/$defs/ComponentActionBar"},{$ref:"#/$defs/ComponentActionMenu"},{$ref:"#/$defs/ComponentAppBar"},{$ref:"#/$defs/ComponentCard"},{$ref:"#/$defs/ComponentChart"},{$ref:"#/$defs/ComponentChoice"},{$ref:"#/$defs/ComponentCode"},{$ref:"#/$defs/ComponentCodeInput"},{$ref:"#/$defs/ComponentCollection"},{$ref:"#/$defs/ComponentColorInput"},{$ref:"#/$defs/ComponentColumns"},{$ref:"#/$defs/ComponentComparison"},{$ref:"#/$defs/ComponentConfirm"},{$ref:"#/$defs/ComponentCustom"},{$ref:"#/$defs/ComponentDateInput"},{$ref:"#/$defs/ComponentDetailList"},{$ref:"#/$defs/ComponentDisclosure"},{$ref:"#/$defs/ComponentFileInput"},{$ref:"#/$defs/ComponentFilterPanel"},{$ref:"#/$defs/ComponentFooter"},{$ref:"#/$defs/ComponentForm"},{$ref:"#/$defs/ComponentFrame"},{$ref:"#/$defs/ComponentGroup"},{$ref:"#/$defs/ComponentIdentity"},{$ref:"#/$defs/ComponentMedia"},{$ref:"#/$defs/ComponentMetric"},{$ref:"#/$defs/ComponentNavigation"},{$ref:"#/$defs/ComponentOutlet"},{$ref:"#/$defs/ComponentPanel"},{$ref:"#/$defs/ComponentProgress"},{$ref:"#/$defs/ComponentRangeInput"},{$ref:"#/$defs/ComponentRating"},{$ref:"#/$defs/ComponentSection"},{$ref:"#/$defs/ComponentSplit"},{$ref:"#/$defs/ComponentStatus"},{$ref:"#/$defs/ComponentSteps"},{$ref:"#/$defs/ComponentTable"},{$ref:"#/$defs/ComponentTag"},{$ref:"#/$defs/ComponentText"},{$ref:"#/$defs/ComponentTextInput"},{$ref:"#/$defs/ComponentToggle"},{$ref:"#/$defs/ComponentTree"},{$ref:"#/$defs/ComponentViews"}]}}},Bs=["AppBar","Custom","Footer","Frame","Outlet"];var ti=_r,Mr={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://polyxd.com/schema/0.3/ui.schema.json",title:"Polyxd UI document",description:"A just-in-time interface: a flat list of semantic components (A2UI-style adjacency list) plus the surface it belongs to. Data comes from the host via bindings; actions are declared capability intents. Generated file: edit components/*.json and schema/common.defs.json instead.",type:"object",required:["specVersion","surface","root","components"],properties:{$schema:{type:"string",description:"The schema this document follows, so editors validate and complete it: https://polyxd.com/schema/0.3/ui.schema.json"},specVersion:{type:"string",pattern:"^0\\.[123]\\.[0-9]+$"},surface:{type:"object",required:["id","title"],properties:{id:{$ref:"#/$defs/Id"},title:{type:"string",description:"Short title for the surface (page title / dialog title)"},intent:{$ref:"#/$defs/Key",description:"What the user is trying to do, as a stable key (e.g. 'money.send'); memory is organised by intent"},pattern:{type:"string",description:"Id of the pattern this surface follows, when one applies"},journey:{type:"string",description:"Id of the journey this surface is a step of, when one applies"},subtitle:{$ref:"#/$defs/DynamicString",description:"One line under the title: what this record or page is; may be bound to data"},breadcrumbs:{type:"array",maxItems:4,items:{type:"object",required:["label"],properties:{label:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},description:"Where this surface sits, ending with its parent (the title is the last step)"},badge:{type:"object",required:["text"],properties:{text:{$ref:"#/$defs/DynamicString"},tone:{$ref:"#/$defs/Tone"}},additionalProperties:!1,description:"Status of the thing this surface is about, e.g. 'Past due'"},avatar:{$ref:"#/$defs/DynamicString",description:"Initials or a media reference for the entity this surface is about"},actions:{$ref:"#/$defs/Id",description:"ActionBar in the header: what you can do to this record"},presentation:{enum:["page","panel"],default:"page",description:"'panel' opens beside what it came from (a side sheet over a list) and is full screen on compact surfaces"},dismissible:{type:"boolean",default:!0},kind:{enum:["surface","shell"],default:"surface",description:"'shell' is the product's frame (a Frame at the root with an Outlet for screens); it is always authored. 'surface' is a screen, panel or dialog that lives inside a shell"},origin:{enum:["generated","authored"],description:"How the document came to be: written by a generator for a request, or authored by a person as a screen of the product. Both are verified the same way; the mark a renderer shows can say which"}},additionalProperties:!1},root:{$ref:"#/$defs/Id",description:"Id of the top-level component"},components:{type:"array",minItems:1,items:{$ref:"#/$defs/Component"}},data:{type:"object",description:"Host data snapshot. Supplied by the host (or a test fixture), never by the model."}},additionalProperties:!1,$defs:{Id:{type:"string",pattern:"^[A-Za-z][A-Za-z0-9_-]*$",description:"Component id, unique within the document"},Key:{type:"string",pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$",description:"Stable semantic key (e.g. 'fee', 'recipient.name'). The same thing gets the same key across generations; interface memory uses it to keep placement, order and labels consistent."},Path:{type:"string",pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$",description:"RFC 6901 JSON Pointer into host-provided data. Absolute ('/account/balance') or, inside a template, relative to the current item ('amount')."},Binding:{type:"object",required:["path"],properties:{path:{$ref:"#/$defs/Path"}},additionalProperties:!1,description:"A value read from (and, for inputs, written to) host data. Data always comes from the host; the model never invents it."},DynamicString:{oneOf:[{type:"string"},{$ref:"#/$defs/Binding"}]},DynamicNumber:{oneOf:[{type:"number"},{$ref:"#/$defs/Binding"}]},DynamicBoolean:{oneOf:[{type:"boolean"},{$ref:"#/$defs/Binding"}]},DynamicValue:{oneOf:[{type:["string","number","boolean"]},{$ref:"#/$defs/Binding"}]},Format:{type:"object",required:["type"],properties:{type:{enum:["text","number","currency","percent","date","time","datetime","relativeTime","duration","color","bytes"]},currency:{$ref:"#/$defs/DynamicString",description:"ISO 4217 code, required for type 'currency'"},precision:{type:"integer",minimum:0,maximum:6}},additionalProperties:!1,description:"How to present a value. The renderer localizes it; the model never pre-formats numbers or dates into strings."},Tone:{enum:["neutral","info","success","warning","danger"]},Accessibility:{type:"object",properties:{label:{$ref:"#/$defs/DynamicString",description:"Accessible name, when the visible label is absent or insufficient"},description:{$ref:"#/$defs/DynamicString"},live:{enum:["off","polite","assertive"]},hidden:{type:"boolean",description:"Hide from assistive technology (decorative only)"}},additionalProperties:!1,description:"Same fields as A2UI v1.0 'accessibility'. Components already carry roles and names from their semantics; use this only to add to them."},Capability:{type:"string",pattern:"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)+$",description:"Name of a host-registered capability (e.g. 'transfer.confirm'). The 'ui.' namespace is reserved for renderer-handled actions: ui.dismiss, ui.back, ui.next."},Action:{type:"object",required:["event"],properties:{event:{type:"object",required:["name"],properties:{name:{$ref:"#/$defs/Capability"},context:{type:"object",additionalProperties:{$ref:"#/$defs/DynamicValue"},description:"Values sent with the event, usually bindings to inputs or to the current template item"}},additionalProperties:!1}},additionalProperties:!1,description:"A declared intent. The host binds it to a handler; generated UI never runs code. Same shape as A2UI 'action.event'."},ActionSpec:{type:"object",required:["label","action"],properties:{label:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},ChildList:{type:"array",items:{$ref:"#/$defs/Id"},minItems:1,description:"Ordered child component ids"},Template:{type:"object",required:["path","componentId"],properties:{path:{$ref:"#/$defs/Path",description:"Array in host data to repeat over"},componentId:{$ref:"#/$defs/Id",description:"Component rendered once per item; relative paths inside it resolve against the item"}},additionalProperties:!1,description:"Same shape as A2UI templated children"},Options:{oneOf:[{type:"array",minItems:2,items:{type:"object",required:["value","label"],properties:{value:{type:["string","number","boolean"]},label:{$ref:"#/$defs/DynamicString"},description:{$ref:"#/$defs/DynamicString"}},additionalProperties:!1}},{type:"object",required:["path","valuePath","labelPath"],properties:{path:{$ref:"#/$defs/Path"},valuePath:{$ref:"#/$defs/Path"},labelPath:{$ref:"#/$defs/Path"},descriptionPath:{$ref:"#/$defs/Path"},avatarPath:{$ref:"#/$defs/Path",description:"Initials or a media reference per option: renders people and places with a face"},imagePath:{$ref:"#/$defs/Path"},recentPath:{$ref:"#/$defs/Path",description:"Boolean per option: shown in a 'Recent' row above the full list"}},additionalProperties:!1}],description:"Either a fixed list, or options read from host data"},ComponentAction:{type:"object",description:"A button that triggers a host capability.",required:["id","component","label","action"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Action"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Verb-first label saying what happens ('Send \xA320', not 'OK')"},action:{$ref:"#/$defs/Action"},emphasis:{enum:["primary","secondary","tertiary"],default:"secondary"},tone:{enum:["default","danger"],default:"default"},disabled:{$ref:"#/$defs/DynamicBoolean"},description:{$ref:"#/$defs/DynamicString",description:"A second line under the label saying what the action does, for menu-like actions"},copy:{$ref:"#/$defs/DynamicString",description:"For the renderer action ui.copy: the text put on the clipboard; otherwise the action context's 'text' is copied"},shortcut:{type:"string",pattern:"^((mod|ctrl|alt|shift)\\+){0,3}([a-z0-9]|enter|escape|space|tab|backspace|delete|arrowup|arrowdown|arrowleft|arrowright|home|end|f[1-9]|f1[0-2]|slash|comma|period)$",description:`Keyboard shortcut that triggers the action while the surface has focus, e.g. "mod+enter" or "shift+d". 'mod' is Command on Apple platforms and Control elsewhere. The renderer shows the hint beside the label and never binds it outside the surface.`}},additionalProperties:!1},ComponentActionBar:{type:"object",description:"The set of actions for a surface or section; the renderer places it where that platform expects.",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ActionBar"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList",description:"Action component ids, in order of importance"}},additionalProperties:!1},ComponentActionMenu:{type:"object",description:"Secondary actions behind one control: an overflow menu, a dropdown, a split button or a context menu.",required:["id","component","label","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ActionMenu"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"The control's name: 'More actions' for an overflow, or the verb for a dropdown ('Export')"},kind:{enum:["overflow","dropdown","split","context"],default:"overflow",description:"'overflow' is the '\u2026' control; 'dropdown' is a labelled button that opens the menu; 'split' pairs a primary action with a menu of alternatives; 'context' opens on right-click or long-press of the component it belongs to"},children:{$ref:"#/$defs/ChildList",description:"The Actions in the menu, in order; a danger-toned one goes last and is separated"},primary:{$ref:"#/$defs/Id",description:"For 'split': the Action that runs when the main part is pressed"}},additionalProperties:!1},ComponentAppBar:{type:"object",description:"The bar at the top of the product: brand or title, a leading action, search, trailing actions and the account.",required:["id","component","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"AppBar"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"The product's name, or the current screen's title on compact layouts"},brand:{$ref:"#/$defs/DynamicString",description:"A media reference for the logo, or initials; rendered before the title"},leading:{$ref:"#/$defs/Id",description:"An Action at the start: back, or the menu button the renderer adds itself when the navigation is a drawer"},search:{$ref:"#/$defs/Id",description:"A TextInput of kind 'search' (or a command palette opener: an Action with a shortcut)"},actions:{$ref:"#/$defs/Id",description:"An ActionBar at the end: notifications, help, the primary action of the product"},account:{$ref:"#/$defs/Id",description:"An Identity (the signed-in person) or an ActionMenu opened from it"},variant:{enum:["standard","large","compact"],default:"standard",description:"'large' puts the title under the bar on its own line on wide screens; 'compact' is 48px for dense tools"},sticky:{type:"boolean",default:!0}},additionalProperties:!1},ComponentCard:{type:"object",description:"One self-contained entity (an account, an order, a place), optionally actionable as a whole.",required:["id","component","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Card"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Name of the entity"},subtitle:{$ref:"#/$defs/DynamicString"},media:{$ref:"#/$defs/Id",description:"Optional Media component id"},badge:{type:"object",required:["text"],properties:{text:{$ref:"#/$defs/DynamicString"},tone:{$ref:"#/$defs/Tone"}},additionalProperties:!1},children:{$ref:"#/$defs/ChildList"},action:{$ref:"#/$defs/Action",description:"Activating the card as a whole (e.g. open details)"},progress:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding",description:"Number from 0 to 1 in host data"},label:{$ref:"#/$defs/DynamicString",description:"Optional text, e.g. '120 of 320 pages'; the percentage is shown otherwise"}},additionalProperties:!1,description:"Progress through the entity (reading, a course, a goal)"}},additionalProperties:!1},ComponentChart:{type:"object",description:"A visual summary of data, always paired with a text summary.",required:["id","component","intent","data","title","summary","x","series"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Chart"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},intent:{enum:["trend","comparison","composition","distribution","relationship","flow","hierarchy","matrix","range"],description:"What the chart should communicate; the renderer picks the chart type. 'relationship' between two measures; 'flow' of amounts from each x value into the series; 'hierarchy' of parts by size; 'matrix' of x values against series; 'range' from the first series to the second"},data:{$ref:"#/$defs/Binding",description:"Array of data points in host data"},title:{$ref:"#/$defs/DynamicString"},summary:{$ref:"#/$defs/DynamicString",description:"Text alternative stating the takeaway (required)"},x:{type:"object",required:["path","label"],properties:{path:{$ref:"#/$defs/Path"},label:{$ref:"#/$defs/DynamicString"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1},series:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["path","label"],properties:{key:{$ref:"#/$defs/Key"},path:{$ref:"#/$defs/Path"},label:{$ref:"#/$defs/DynamicString"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1}}},additionalProperties:!1},ComponentChoice:{type:"object",description:"Pick one or several options from a known set. The renderer chooses the control.",required:["id","component","label","options","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Choice"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},options:{$ref:"#/$defs/Options"},value:{$ref:"#/$defs/Binding",description:"Two-way binding into host data"},mode:{enum:["single","multiple"],default:"single"},help:{$ref:"#/$defs/DynamicString"},required:{type:"boolean",default:!1}},additionalProperties:!1},ComponentCode:{type:"object",description:"Code, a command or preformatted text, shown as written and copyable.",required:["id","component","text"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Code"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},text:{$ref:"#/$defs/DynamicString",description:"The code itself, usually bound to host data (an API key, a command, a snippet)"},label:{$ref:"#/$defs/DynamicString",description:"What it is, shown above: 'Install', 'Your API key'"},language:{type:"string",description:"A language name for highlighting, when the renderer has it: 'bash', 'json', 'ts'"},copyable:{type:"boolean",default:!0,description:"A Copy control beside it"},wrap:{type:"boolean",default:!1,description:"Wrap long lines instead of scrolling sideways"},secret:{$ref:"#/$defs/DynamicBoolean",default:!1,description:"Masked until revealed: a key shown once"}},additionalProperties:!1},ComponentCodeInput:{type:"object",description:"A one-time code or PIN, typed into one box per character.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"CodeInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"'Enter the code we emailed you'"},value:{$ref:"#/$defs/Binding",description:"The code so far in host data, as a string"},length:{type:"integer",minimum:4,maximum:12,default:6},kind:{enum:["numeric","alphanumeric"],default:"numeric"},help:{$ref:"#/$defs/DynamicString",description:"Where the code came from and how long it lasts"},required:{$ref:"#/$defs/DynamicBoolean",default:!0},action:{$ref:"#/$defs/Action",description:"Runs when every character is in, so the person needn't press a button; context binds to value"}},additionalProperties:!1},ComponentCollection:{type:"object",description:"A list of items from host data, each rendered with the same template.",required:["id","component","items","label"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Collection"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{$ref:"#/$defs/Template"},label:{$ref:"#/$defs/DynamicString",description:"What the list contains, e.g. 'Recent payments'"},empty:{$ref:"#/$defs/Id",description:"Status component shown when there are no items"},selection:{enum:["none","single","multiple"],default:"none"},selected:{$ref:"#/$defs/Binding",description:"Selected item value(s) in host data when selection is not 'none'"},layout:{enum:["auto","list","grid","timeline","carousel","calendar"],default:"auto",description:"'grid' for visual items (products, books); 'list' for rows; 'timeline' for dated activity; 'carousel' for a row people page through; 'calendar' places items on a month grid by 'datePath'; 'auto' lets the renderer choose from the item template"},datePath:{$ref:"#/$defs/Path",description:"For 'calendar': relative path in each item to the ISO date that places it"},page:{type:"object",properties:{index:{$ref:"#/$defs/Binding",description:"1-based page number in host data"},size:{$ref:"#/$defs/Binding"},total:{$ref:"#/$defs/Binding",description:"Total number of items, all pages"},action:{$ref:"#/$defs/Action",description:"Sent when someone changes page or page size"}},additionalProperties:!1,description:"Paging state, owned by the host"},bulkActions:{$ref:"#/$defs/Id",description:"ActionBar shown while items are selected (selection 'multiple')"},reorderable:{type:"boolean",default:!1,description:"People can drag items, or move them with the keyboard, into a new order"},order:{$ref:"#/$defs/Binding",description:"Item values (ids) in the order people put them, written when reorderable"}},additionalProperties:!1},ComponentColorInput:{type:"object",description:"Pick a colour: from swatches the host offers, or any colour.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ColorInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"The colour in host data, as CSS text in the chosen format"},swatches:{$ref:"#/$defs/Options",description:"Named colours to pick from (value is the colour, label its name); without them the full picker shows"},format:{enum:["hex","rgb","hsl"],default:"hex"},alpha:{type:"boolean",default:!1,description:"Let the person set opacity too"},help:{$ref:"#/$defs/DynamicString"},required:{$ref:"#/$defs/DynamicBoolean",default:!1}},additionalProperties:!1},ComponentColumns:{type:"object",description:"Side-by-side columns that collapse to a stack on compact layouts: a main column with a narrower one beside it, or equal halves.",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Columns"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList",description:"One component per column, in reading order"},layout:{enum:["two-thirds","one-third","halves","thirds","sidebar-start","sidebar-end"],default:"two-thirds",description:"'two-thirds' is a wide first column (GOV.UK's default); 'one-third' the reverse; 'halves' and 'thirds' equal; 'sidebar-*' a fixed 18rem column at that edge"},collapse:{enum:["compact","medium","never"],default:"compact",description:"The width below which the columns stack"},align:{enum:["start","center","stretch"],default:"stretch"}},additionalProperties:!1},ComponentComparison:{type:"object",description:"Compare a few options across the same attributes, and choose one.",required:["id","component","items","itemTitle","attributes"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Comparison"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{$ref:"#/$defs/Binding",description:"Array of options in host data (2\u20134 recommended)"},itemTitle:{$ref:"#/$defs/Path",description:"Relative path to each item's name"},attributes:{type:"array",minItems:1,maxItems:8,items:{type:"object",required:["key","label","path"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},path:{$ref:"#/$defs/Path"},format:{$ref:"#/$defs/Format"},better:{enum:["higher","lower","none"],default:"none"},group:{$ref:"#/$defs/DynamicString",description:"Heading that groups related attributes (e.g. 'Storage', 'Support')"}},additionalProperties:!1}},choose:{$ref:"#/$defs/ActionSpec",description:"Action per item; context bindings resolve against the item"},recommended:{$ref:"#/$defs/DynamicString",description:"Optional value of the recommended item's title, with a reason in 'summary'"},summary:{$ref:"#/$defs/DynamicString"},recommendedReason:{$ref:"#/$defs/DynamicString",description:"Why the recommended item fits, shown on its badge (one short sentence)"}},additionalProperties:!1},ComponentConfirm:{type:"object",description:"Asks the user to confirm a consequential or destructive action, showing what will happen.",required:["id","component","title","severity","confirm"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Confirm"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Question naming the action ('Send \xA3250 to Alex?')"},message:{$ref:"#/$defs/DynamicString"},consequence:{$ref:"#/$defs/DynamicString",description:"What happens and whether it can be undone"},summary:{$ref:"#/$defs/Id",description:"Optional DetailList summarising what is being confirmed"},severity:{enum:["consequential","destructive"]},confirm:{$ref:"#/$defs/ActionSpec"},cancel:{$ref:"#/$defs/ActionSpec",description:"Defaults to 'Cancel' \u2192 ui.dismiss"},typeToConfirm:{$ref:"#/$defs/DynamicString",description:"Text the user must type before confirming (for irreversible, high-impact actions)"},amount:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1,description:"The amount being committed, shown large at the top"},subject:{type:"object",required:["title"],properties:{title:{$ref:"#/$defs/DynamicString"},subtitle:{$ref:"#/$defs/DynamicString"},avatar:{$ref:"#/$defs/DynamicString",description:"Initials, or a media reference in host data"}},additionalProperties:!1,description:"Who or what the action is for, shown with a face or picture"},consequences:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["title"],properties:{title:{$ref:"#/$defs/DynamicString"},detail:{$ref:"#/$defs/DynamicString"},icon:{enum:["lock","trash","clock","tag","info","alert","mail","shield"]}},additionalProperties:!1},description:"What will happen, as a short list (for destructive actions)"}},additionalProperties:!1},ComponentCustom:{type:"object",description:"A slot for a component the host implements itself: a logo, a brand moment, a bespoke widget. The document names it and gives it props; the product renders it, and a fallback stands in when it can't.",required:["id","component","name","fallback"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Custom"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},name:{type:"string",pattern:"^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$",description:"The host's name for the component, namespaced: 'brand.logo', 'store.map'"},props:{type:"object",description:"What the host component takes; values may be bindings",additionalProperties:!0},fallback:{$ref:"#/$defs/Id",description:"What renders when the host has no component of that name: a Text, a Media, a Status. Required, so the document stands on its own"},label:{$ref:"#/$defs/DynamicString",description:"An accessible name for the slot when the host component is decorative or complex"}},additionalProperties:!1},ComponentDateInput:{type:"object",description:"A date, time, date-time or date range.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"DateInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"ISO 8601 value(s) in host data"},kind:{enum:["date","time","datetime","dateRange","month","year"],default:"date",description:"'month' stores YYYY-MM and 'year' stores YYYY"},multiple:{type:"boolean",default:!1,description:"Several dates rather than one; the value is a list"},min:{$ref:"#/$defs/DynamicString"},max:{$ref:"#/$defs/DynamicString"},help:{$ref:"#/$defs/DynamicString"},required:{type:"boolean",default:!1}},additionalProperties:!1},ComponentDetailList:{type:"object",description:"Label/value pairs describing one thing (a summary, a receipt, a review step).",required:["id","component","items"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"DetailList"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{type:"array",minItems:1,items:{type:"object",required:["label","value"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/DynamicValue"},format:{$ref:"#/$defs/Format"},total:{type:"boolean",description:"The total row of a receipt, shown emphasised after a divider"}},additionalProperties:!1}},title:{$ref:"#/$defs/DynamicString"},variant:{enum:["default","receipt"],default:"default",description:"'receipt' for money: values right-aligned in tabular figures, with an optional total row"},layout:{enum:["rows","grid"],default:"rows",description:"'grid' packs many short fields into columns (record pages); 'rows' keeps one per line"},rowAction:{$ref:"#/$defs/Action",description:"Offered per row as a 'Change' link named after the row (GOV.UK summary list); the row's key is sent as 'key' with the context"}},additionalProperties:!1},ComponentDisclosure:{type:"object",description:"Progressive disclosure: secondary content hidden behind a toggle.",required:["id","component","summary","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Disclosure"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},summary:{$ref:"#/$defs/DynamicString",description:"Always-visible label describing what is hidden"},children:{$ref:"#/$defs/ChildList"},open:{type:"boolean",default:!1}},additionalProperties:!1},ComponentFileInput:{type:"object",description:"Choose or drop files to attach or upload.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"FileInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"The chosen files in host data: a list of { name, size, type, ref }, written by the renderer; the host uploads them"},accept:{type:"array",items:{type:"string"},description:"Allowed types as extensions or MIME types: ['.pdf', 'image/*']"},multiple:{type:"boolean",default:!1},maxSize:{type:"integer",minimum:1,description:"Largest file, in bytes; the renderer refuses larger ones with a message"},help:{$ref:"#/$defs/DynamicString",description:"What to attach and why; the accepted types and size are said by the renderer"},required:{$ref:"#/$defs/DynamicBoolean",default:!1}},additionalProperties:!1},ComponentFilterPanel:{type:"object",description:"Filters for a list of results, with the result count.",required:["id","component","children","results"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"FilterPanel"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Defaults to 'Filters'"},children:{$ref:"#/$defs/ChildList",description:"The filter inputs (Choice, RangeInput, Toggle, DateInput, TextInput)"},results:{$ref:"#/$defs/Id",description:"The Collection or Table the filters narrow"},resultCount:{$ref:"#/$defs/Binding",description:"Number of results with the current filters, from host data"},clear:{$ref:"#/$defs/Action",description:"Optional action that resets the filters on the host"}},additionalProperties:!1},ComponentFooter:{type:"object",description:"The bar at the bottom of the product: link groups, the legal line, locale or status.",required:["id","component","legal"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Footer"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},groups:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["key","label","items"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},items:{type:"array",minItems:1,maxItems:12,items:{type:"object",required:["key","label","action"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1}}},additionalProperties:!1},description:"Columns of links, each under a heading"},legal:{$ref:"#/$defs/DynamicString",description:"The line at the very bottom: copyright, licence, company details"},aside:{$ref:"#/$defs/Id",description:"Something at the end of the legal row: a locale Choice, a status Tag, a Text"}},additionalProperties:!1},ComponentForm:{type:"object",description:"Collects inputs and submits them together.",required:["id","component","children","submit"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Form"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList"},submit:{$ref:"#/$defs/ActionSpec"},cancel:{$ref:"#/$defs/ActionSpec",description:"Optional; defaults to ui.dismiss when omitted and the surface is dismissible"},aside:{$ref:"#/$defs/Id",description:"Optional summary (DetailList, Card or Group) kept beside the form, e.g. the running total"},layout:{enum:["stacked","horizontal"],default:"stacked",description:"'horizontal' puts label and help on the left and the control on the right (settings pages), on wide surfaces"}},additionalProperties:!1},ComponentFrame:{type:"object",description:"The product's frame: the regions around its screens (header, navigation, main, aside, footer, banner), with an outlet where screens and generated surfaces appear.",required:["id","component","main"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Frame"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},header:{$ref:"#/$defs/Id",description:"An AppBar"},navigation:{$ref:"#/$defs/Id",description:"A Navigation of kind 'main'; its placement decides rail, bar, drawer or side"},main:{$ref:"#/$defs/Id",description:"The outlet: a component the host replaces with the current screen. Usually an Outlet; may be a Group holding a fixed screen"},aside:{$ref:"#/$defs/Id",description:"A secondary column beside main on wide layouts (help, context, activity)"},footer:{$ref:"#/$defs/Id",description:"A Footer"},banner:{$ref:"#/$defs/Id",description:"A Status shown above everything (a phase banner, an outage, a trial ending)"},skipTarget:{type:"boolean",default:!0,description:"The renderer adds a skip link to main"},width:{enum:["full","contained"],default:"contained",description:"'contained' centres main at measure.max \xD7 1.6; 'full' lets dense tools use the whole viewport"}},additionalProperties:!1},ComponentGroup:{type:"object",description:"Visually groups closely related items without a heading (proximity).",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Group"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList"},label:{$ref:"#/$defs/DynamicString",description:"Accessible name for the group when it isn't obvious from its content"},arrangement:{enum:["auto","inline","grid"],default:"auto",description:"Hint only. 'inline' for a few short peers (e.g. metrics); renderers stack on narrow screens."}},additionalProperties:!1},ComponentIdentity:{type:"object",description:"A person, team or organisation: picture, name and details, or several of them together.",required:["id","component","name"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Identity"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},name:{$ref:"#/$defs/DynamicString",description:"Always bound to host data: a name is never invented"},detail:{$ref:"#/$defs/DynamicString",description:"One line under the name: a role, an email, a team, a status"},image:{$ref:"#/$defs/DynamicString",description:"A media reference from host data, resolved by the host as Media's is; initials from the name are shown without one"},kind:{enum:["person","team","organization"],default:"person",description:"A person's picture is round; a team's or organisation's is square"},size:{enum:["small","default","large"],default:"default"},action:{$ref:"#/$defs/Action",description:"Activating the identity as a whole, e.g. open the person's record"},group:{type:"object",required:["path","namePath"],properties:{path:{$ref:"#/$defs/Path",description:"A list of people in host data, shown as overlapping pictures with a '+N' for the rest"},namePath:{$ref:"#/$defs/Path",description:"Relative to each entry"},imagePath:{$ref:"#/$defs/Path",description:"Relative to each entry"},max:{type:"integer",minimum:1,maximum:8,default:4,description:"Pictures shown before '+N'"}},additionalProperties:!1,description:"Several identities as one element ('Rhea, Tom and 3 others'). name is then the group's accessible summary"}},additionalProperties:!1},ComponentMedia:{type:"object",description:"An image, video, audio clip, gallery or QR code supplied by the host.",required:["id","component"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Media"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},src:{$ref:"#/$defs/Binding",description:"Image, video or audio reference in host data; generated UI never contains URLs"},alt:{$ref:"#/$defs/DynamicString",description:"Required unless decorative. For a gallery it names the set; for a QR code it says what the code opens"},decorative:{type:"boolean",default:!1},aspect:{enum:["square","landscape","portrait","auto"],default:"auto"},kind:{enum:["image","video","audio","gallery","qr"],default:"image",description:"'video' and 'audio' play with native controls; 'gallery' is several images from 'items'; 'qr' encodes 'value' as a QR code"},poster:{$ref:"#/$defs/DynamicString",description:"For 'video': media reference for the frame shown before play"},transcript:{$ref:"#/$defs/DynamicString",description:"For 'video' and 'audio': the words, offered under the player"},items:{$ref:"#/$defs/Binding",description:"For 'gallery': array of images in host data"},imagePath:{$ref:"#/$defs/Path",description:"For 'gallery': relative path in each item to its image reference"},altPath:{$ref:"#/$defs/Path",description:"For 'gallery': relative path in each item to its alt text"},value:{$ref:"#/$defs/DynamicString",description:"For 'qr': the text encoded, e.g. a payment link from host data"}},additionalProperties:!1},ComponentMetric:{type:"object",description:"A key figure with a label, and optionally its change.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Metric"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Always bound to host data"},format:{$ref:"#/$defs/Format"},change:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding"},format:{$ref:"#/$defs/Format"},favorable:{enum:["increase","decrease","none"],default:"increase",description:"Which direction is good, so color follows meaning, not sign"}},additionalProperties:!1},caption:{$ref:"#/$defs/DynamicString"}},additionalProperties:!1},ComponentNavigation:{type:"object",description:"The product's main navigation.",required:["id","component","items","current"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Navigation"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Names the navigation, e.g. 'Main'"},items:{type:"array",minItems:2,maxItems:20,items:{type:"object",required:["key","label","action"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},group:{$ref:"#/$defs/DynamicString",description:"Heading that groups items (e.g. 'Billing')"},icon:{enum:["home","search","inbox","book","tag","clock","shield","lock","mail","settings","chart","people","card","file","orders","products","customers","discounts","analytics","calendar","bell","help","folder","star","grid","layers"]},badge:{$ref:"#/$defs/Binding",description:"Count needing attention, e.g. overdue invoices"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1}},current:{$ref:"#/$defs/Binding",description:"Key of the current item in host data"},kind:{enum:["main","breadcrumb","nested","toc","local"],default:"main",description:"'main' is the product's sections; 'breadcrumb' the ordered trail to here; 'nested' groups that expand; 'toc' the sections of this page (items link to anchors named by their keys); 'local' the sections of one area, as tabs"},placement:{enum:["auto","side","rail","bar","drawer"],default:"auto",description:"For kind 'main' inside a Frame: where it lives. 'auto' is a side column on wide layouts, a rail on medium and a bottom bar (\u2264 5 items) or a drawer on compact; the others fix it"}},additionalProperties:!1},ComponentOutlet:{type:"object",description:"Where the current screen renders inside a Frame: the host fills it with a screen document or a generated surface.",required:["id","component"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Outlet"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Names the region for assistive tech when the screen has no title yet"},loading:{$ref:"#/$defs/Id",description:"What shows while a screen is on its way; the renderer's skeleton when absent"}},additionalProperties:!1},ComponentPanel:{type:"object",description:"Content over the current view: a dialog, a drawer, a bottom sheet or a popover, opened from an action and dismissed to return.",required:["id","component","title","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Panel"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},kind:{enum:["dialog","drawer","sheet","popover"],default:"dialog",description:"'dialog' centres and blocks; 'drawer' slides from the side for a form or a record; 'sheet' rises from the bottom on phones; 'popover' floats by its opener for a small choice"},title:{$ref:"#/$defs/DynamicString"},children:{$ref:"#/$defs/ChildList",description:"What the panel holds"},actions:{$ref:"#/$defs/Id",description:"An ActionBar in the panel's footer: its primary action and a Cancel"},open:{$ref:"#/$defs/DynamicBoolean",description:"Bound to host data: true shows the panel; the renderer writes false on dismiss. Open when absent"},dismissible:{type:"boolean",default:!0,description:"Escape, the close control and the backdrop dismiss it; false for a panel that must be completed"},size:{enum:["small","default","large"],default:"default"}},additionalProperties:!1},ComponentProgress:{type:"object",description:"How far along something is, or how much of a bounded amount is used: a bar, a ring or a meter.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Progress"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What is being measured: 'Storage used', 'Upload', 'Goal'"},value:{$ref:"#/$defs/DynamicNumber",description:"Bound to host data. A fraction from 0 to 1, or an amount when max is given"},max:{$ref:"#/$defs/DynamicNumber",description:"The whole, when value is an amount rather than a fraction: 200 for '180 of 200 GB'"},kind:{enum:["bar","ring","meter"],default:"bar",description:"'bar' and 'ring' show progress towards done; 'meter' shows a measured amount within bounds, with tone by threshold"},caption:{$ref:"#/$defs/DynamicString",description:"Text beside the readout: '180 of 200 GB', '3 days left'. The readout itself is derived from value"},format:{$ref:"#/$defs/Format",description:"How the readout is shown; percent without it"},tone:{$ref:"#/$defs/Tone",description:"Fixed tone; a meter without one takes warning past thresholds.warning and danger past thresholds.danger"},thresholds:{type:"object",properties:{warning:{type:"number",minimum:0,maximum:1},danger:{type:"number",minimum:0,maximum:1}},additionalProperties:!1,description:"Fractions at which a meter changes tone"},indeterminate:{$ref:"#/$defs/DynamicBoolean",description:"The task is running and how far along isn't known"}},additionalProperties:!1},ComponentRangeInput:{type:"object",description:"A number, or a range between two numbers, within known bounds.",required:["id","component","label","value","min","max"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"RangeInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Number in host data, or [min, max] when mode is 'range'"},min:{type:"number"},max:{type:"number"},step:{type:"number",exclusiveMinimum:0},format:{$ref:"#/$defs/Format"},mode:{enum:["single","range"],default:"single",description:"'range' picks a lower and upper bound; value is then [min, max]"}},additionalProperties:!1},ComponentRating:{type:"object",description:"A score out of N: given by the person, or shown as others gave it.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Rating"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What is rated: 'Your rating', 'Average rating'"},value:{$ref:"#/$defs/Binding",description:"The score in host data; written when the person can rate"},max:{type:"integer",minimum:2,maximum:10,default:5},readOnly:{$ref:"#/$defs/DynamicBoolean",default:!1,description:"Show a score rather than take one"},count:{$ref:"#/$defs/DynamicNumber",description:"How many ratings the score is from, shown after it: '4.6 (212)'"},help:{$ref:"#/$defs/DynamicString"},required:{$ref:"#/$defs/DynamicBoolean",default:!1},action:{$ref:"#/$defs/Action",description:"Runs when a rating is given, with context bound to value"}},additionalProperties:!1},ComponentSection:{type:"object",description:"A titled region of the surface that groups related content under a heading.",required:["id","component","title","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Section"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Heading for the section"},description:{$ref:"#/$defs/DynamicString",description:"Optional one-line explanation under the heading"},children:{$ref:"#/$defs/ChildList"}},additionalProperties:!1},ComponentSplit:{type:"object",description:"Master and detail side by side: a list that stays while the chosen item's detail shows beside it; on compact layouts the detail replaces the list.",required:["id","component","primary","detail","selected"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Split"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},primary:{$ref:"#/$defs/Id",description:"The list: a Collection or a Table with selection 'single'"},detail:{$ref:"#/$defs/Id",description:"What shows for the selected item; its bindings resolve against the selected item's scope"},selected:{$ref:"#/$defs/Binding",description:"The selected item's value in host data, shared with the primary's 'selected'"},empty:{$ref:"#/$defs/Id",description:"A Status shown in the detail pane while nothing is selected"},ratio:{enum:["narrow","balanced","wide"],default:"narrow",description:"The list's share: about a third, half, or two thirds"},resizable:{type:"boolean",default:!1}},additionalProperties:!1},ComponentStatus:{type:"object",description:"Feedback about state: info, success, warning, error, empty or loading.",required:["id","component","kind","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Status"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},kind:{enum:["info","success","warning","error","empty","loading","undo"]},title:{$ref:"#/$defs/DynamicString"},message:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Id",description:"Optional Action (or ActionBar for a primary and a secondary) to recover or continue, e.g. 'Try again'; for 'undo', the Undo action"},icon:{enum:["lock","trash","clock","tag","info","alert","mail","shield","search","book","inbox","check"],description:"Optional icon for empty states; the renderer picks one by kind otherwise"},variant:{enum:["default","inline"],default:"default",description:"'inline' is a notice inside a page (a warning above a record) rather than a block of its own"}},additionalProperties:!1},ComponentSteps:{type:"object",description:"A task split into ordered steps with visible progress.",required:["id","component","steps","finish"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Steps"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},steps:{type:"array",minItems:2,maxItems:7,items:{type:"object",required:["key","title","content"],properties:{key:{$ref:"#/$defs/Key"},title:{$ref:"#/$defs/DynamicString"},content:{$ref:"#/$defs/Id"},status:{$ref:"#/$defs/DynamicString",description:"For 'tasklist': 'todo', 'inProgress', 'done' or 'blocked', usually bound to host data"}},additionalProperties:!1}},kind:{enum:["wizard","tasklist","guide"],default:"wizard",description:"'wizard' shows one step at a time in order; 'tasklist' lists tasks people do in any order, each with its status; 'guide' is numbered instructions with no state"},current:{$ref:"#/$defs/DynamicNumber",description:"Index of the current step (default 0)"},finish:{$ref:"#/$defs/ActionSpec"}},additionalProperties:!1},ComponentTable:{type:"object",description:"Tabular data: many items sharing the same attributes.",required:["id","component","rows","caption","columns"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Table"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},rows:{$ref:"#/$defs/Binding",description:"Array of row objects in host data"},caption:{$ref:"#/$defs/DynamicString",description:"What the table shows (required for accessibility)"},columns:{type:"array",minItems:1,maxItems:8,items:{type:"object",required:["key","label","path"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},path:{$ref:"#/$defs/Path",description:"Relative to the row"},format:{$ref:"#/$defs/Format"},kind:{enum:["text","number","currency","date","status","entity","link"],default:"text",description:"What the cell holds; drives alignment, tabular figures and status tags"},align:{enum:["start","end"],description:"Overrides the alignment the kind implies"},tones:{type:"object",additionalProperties:{$ref:"#/$defs/Tone"},description:`For 'status': value \u2192 tone, e.g. {"Past due": "danger"}`},sortable:{type:"boolean",description:"Whether people can sort by this column"},avatarPath:{$ref:"#/$defs/Path",description:"For 'entity': relative path to the picture or initials"},secondaryPath:{$ref:"#/$defs/Path",description:"For 'entity': a second line, e.g. an email address"}},additionalProperties:!1}},rowAction:{$ref:"#/$defs/Action",description:"Activated per row; context bindings resolve against the row"},empty:{$ref:"#/$defs/Id",description:"Status component shown when there are no rows"},sort:{type:"object",required:["column"],properties:{column:{$ref:"#/$defs/Binding",description:"Key of the sorted column in host data"},direction:{$ref:"#/$defs/Binding",description:"'ascending' or 'descending' in host data"},action:{$ref:"#/$defs/Action",description:"Sent when someone sorts, so the host can re-query"}},additionalProperties:!1,description:"Sorting state, owned by the host"},selection:{enum:["none","multiple"],default:"none",description:"'multiple' adds a checkbox column and a select-all"},selected:{$ref:"#/$defs/Binding",description:"Array of selected row values in host data"},rowValuePath:{$ref:"#/$defs/Path",description:"Relative path to each row's id, used for selection"},bulkActions:{$ref:"#/$defs/Id",description:"ActionBar shown instead of the toolbar while rows are selected"},rowActions:{$ref:"#/$defs/Id",description:"ActionBar offered per row, in a menu named after the row"},expandable:{type:"boolean",default:!1,description:"Rows open to show 'detail' beneath them"},detail:{$ref:"#/$defs/Id",description:"Component rendered under an expanded row; relative paths inside it resolve against the row"},toolbar:{$ref:"#/$defs/Id",description:"ActionBar above the table (e.g. New, Import, Export)"},search:{$ref:"#/$defs/Id",description:"TextInput (kind 'search') above the table"},views:{type:"array",minItems:2,maxItems:8,items:{type:"object",required:["key","label"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},count:{$ref:"#/$defs/Binding"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},description:"Saved views (All, Mine, Past due\u2026), shown as tabs with counts"},view:{$ref:"#/$defs/Binding",description:"Key of the selected saved view in host data"},page:{type:"object",properties:{index:{$ref:"#/$defs/Binding",description:"1-based page number in host data"},size:{$ref:"#/$defs/Binding"},total:{$ref:"#/$defs/Binding",description:"Total number of rows, all pages"},action:{$ref:"#/$defs/Action",description:"Sent when someone changes page or page size"}},additionalProperties:!1,description:"Paging state, owned by the host"}},additionalProperties:!1},ComponentTag:{type:"object",description:"A short label, status or count attached to something else.",required:["id","component","label"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Tag"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"The word or two it shows: 'Past due', 'Beta', 'Design'"},kind:{enum:["label","status","count"],default:"label",description:"'status' is the state of the thing it sits on and is coloured by tone; 'count' is a number, with the label as its accessible name"},tone:{$ref:"#/$defs/Tone",default:"neutral",description:"Meaning, not decoration: a status tag's tone says whether the state is fine, a warning or a problem"},count:{$ref:"#/$defs/DynamicNumber",description:"For kind 'count': the number, bound to host data"},remove:{$ref:"#/$defs/Action",description:"Present when the person can take the tag off (a filter chip, a chosen recipient): the capability that removes it"}},additionalProperties:!1},ComponentText:{type:"object",description:"A run of text.",required:["id","component","text"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Text"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},text:{$ref:"#/$defs/DynamicString"},variant:{enum:["body","supporting","caption","rich","list","quote"],default:"body",description:"'rich' allows **bold**, *italic*, `code` and [links](href) in the text; 'list' is a bulleted or numbered list of 'items'; 'quote' is a quotation with an optional 'cite'"},format:{$ref:"#/$defs/Format",description:"Only when 'text' is bound to a non-string value"},items:{$ref:"#/$defs/Binding",description:"For 'list': array in host data, one entry per item; 'text' introduces the list"},itemPath:{$ref:"#/$defs/Path",description:"For 'list': relative path in each entry to the text shown, when the entries are objects"},ordered:{type:"boolean",default:!1,description:"For 'list': numbered rather than bulleted"},cite:{$ref:"#/$defs/DynamicString",description:"For 'quote': who or what is quoted"}},additionalProperties:!1},ComponentTextInput:{type:"object",description:"A single text-like value: text, number, email, phone, currency, search or long text.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"TextInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Two-way binding into host data"},kind:{enum:["text","multiline","number","currency","email","phone","url","search","suggestions","richtext","tags","mentions","code","masked","inline"],default:"text",description:"'suggestions' offers completions from 'options' while leaving any text allowed; 'richtext' is short formatted text (bold, italic, lists) stored as markdown-ish text; 'tags' is a list of short values entered one at a time; 'mentions' offers 'options' after an @; 'code' is monospace with no autocorrection; 'masked' follows 'mask'; 'inline' reads as text until it is clicked"},options:{$ref:"#/$defs/Options",description:"For 'suggestions' and 'mentions': the completions offered"},mask:{type:"string",description:"For 'masked': # for a digit, A for a letter, * for either, anything else typed for you, e.g. '#### #### #### ####'"},currency:{$ref:"#/$defs/DynamicString",description:"ISO 4217 code when kind is 'currency'"},help:{$ref:"#/$defs/DynamicString",description:"Hint shown below the label (not a placeholder)"},required:{type:"boolean",default:!1},validation:{type:"object",properties:{min:{type:"number"},max:{type:"number"},minLength:{type:"integer",minimum:0},maxLength:{type:"integer",minimum:1},message:{$ref:"#/$defs/DynamicString",description:"Error message shown when validation fails"}},additionalProperties:!1},autocomplete:{type:"string",description:"HTML autocomplete token hint (e.g. 'email', 'postal-code')"},placeholder:{$ref:"#/$defs/DynamicString",description:"Only for kind 'search', shown inside the field. Never a substitute for the label."},size:{enum:["default","hero"],default:"default",description:"'hero' for the one number a surface is about (an amount to send): large and centred"}},additionalProperties:!1},ComponentToggle:{type:"object",description:"An on/off setting.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Toggle"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Boolean in host data"},description:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action",description:"Set when the change applies immediately (a setting); omit inside a Form"}},additionalProperties:!1},ComponentTree:{type:"object",description:"A hierarchy people expand, browse and pick from: folders, an org chart, nested categories.",required:["id","component","label","items","labelPath","childrenPath"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Tree"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What the tree holds, e.g. 'Folders'"},items:{$ref:"#/$defs/Binding",description:"The top-level nodes in host data: a list"},labelPath:{$ref:"#/$defs/Path",description:"Relative to each node: the text shown"},childrenPath:{$ref:"#/$defs/Path",description:"Relative to each node: its list of child nodes, absent or empty for a leaf"},valuePath:{$ref:"#/$defs/Path",description:"Relative to each node: what selection writes; the label when absent"},detailPath:{$ref:"#/$defs/Path",description:"Relative to each node: a count or note shown after the label"},selection:{enum:["none","single","multiple"],default:"none"},selected:{$ref:"#/$defs/Binding",description:"Selected node value(s) in host data when selection is not 'none'"},expanded:{$ref:"#/$defs/Binding",description:"Values of the nodes shown open; the first level is open without it"},action:{$ref:"#/$defs/Action",description:"Activating a node, e.g. open that folder; context may bind to the node's fields"}},additionalProperties:!1},ComponentViews:{type:"object",description:"Switch between alternative views of the same subject (tabs).",required:["id","component","views"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Views"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},views:{type:"array",minItems:2,maxItems:6,items:{type:"object",required:["key","label","content"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},content:{$ref:"#/$defs/Id"},count:{$ref:"#/$defs/Binding",description:"How many items the view holds, shown beside its label"}},additionalProperties:!1}},selected:{$ref:"#/$defs/Binding",description:"Key of the selected view in host data"},variant:{enum:["tabs","segmented"],default:"tabs",description:"'tabs' for sections of a record; 'segmented' for switching how the same thing is shown"}},additionalProperties:!1},Component:{type:"object",required:["component"],discriminator:{propertyName:"component"},oneOf:[{$ref:"#/$defs/ComponentAction"},{$ref:"#/$defs/ComponentActionBar"},{$ref:"#/$defs/ComponentActionMenu"},{$ref:"#/$defs/ComponentAppBar"},{$ref:"#/$defs/ComponentCard"},{$ref:"#/$defs/ComponentChart"},{$ref:"#/$defs/ComponentChoice"},{$ref:"#/$defs/ComponentCode"},{$ref:"#/$defs/ComponentCodeInput"},{$ref:"#/$defs/ComponentCollection"},{$ref:"#/$defs/ComponentColorInput"},{$ref:"#/$defs/ComponentColumns"},{$ref:"#/$defs/ComponentComparison"},{$ref:"#/$defs/ComponentConfirm"},{$ref:"#/$defs/ComponentCustom"},{$ref:"#/$defs/ComponentDateInput"},{$ref:"#/$defs/ComponentDetailList"},{$ref:"#/$defs/ComponentDisclosure"},{$ref:"#/$defs/ComponentFileInput"},{$ref:"#/$defs/ComponentFilterPanel"},{$ref:"#/$defs/ComponentFooter"},{$ref:"#/$defs/ComponentForm"},{$ref:"#/$defs/ComponentFrame"},{$ref:"#/$defs/ComponentGroup"},{$ref:"#/$defs/ComponentIdentity"},{$ref:"#/$defs/ComponentMedia"},{$ref:"#/$defs/ComponentMetric"},{$ref:"#/$defs/ComponentNavigation"},{$ref:"#/$defs/ComponentOutlet"},{$ref:"#/$defs/ComponentPanel"},{$ref:"#/$defs/ComponentProgress"},{$ref:"#/$defs/ComponentRangeInput"},{$ref:"#/$defs/ComponentRating"},{$ref:"#/$defs/ComponentSection"},{$ref:"#/$defs/ComponentSplit"},{$ref:"#/$defs/ComponentStatus"},{$ref:"#/$defs/ComponentSteps"},{$ref:"#/$defs/ComponentTable"},{$ref:"#/$defs/ComponentTag"},{$ref:"#/$defs/ComponentText"},{$ref:"#/$defs/ComponentTextInput"},{$ref:"#/$defs/ComponentToggle"},{$ref:"#/$defs/ComponentTree"},{$ref:"#/$defs/ComponentViews"}]}}};var ur={enum:["neutral","info","success","warning","danger"]},ad=new RegExp("^0\\.[123]\\.[0-9]+$","u"),F=new RegExp("^[A-Za-z][A-Za-z0-9_-]*$","u"),G=new RegExp("^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$","u"),Q=Object.prototype.hasOwnProperty;var ae=new RegExp("^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$","u");function T(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=T.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.path===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(a!=="path"){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.path!==void 0){let a=t.path;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return T.errors=e,o===0}T.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function g(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=g.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);let a=o,i=!1,u=null,f=o;if(typeof t!="string"){let h={instancePath:r,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[h]:e.push(h),o++}var x=f===o;x&&(i=!0,u=0);let m=o;T(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length);var x=m===o;if(x&&i)i=!1,u=[u,1];else if(x){i=!0,u=1;var y=!0}if(i)o=a,e!==null&&(a?e.length=a:e=null);else{let h={instancePath:r,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:u},message:"must match exactly one schema in oneOf"};e===null?e=[h]:e.push(h),o++}return g.errors=e,c.props=y,o===0}g.evaluated={dynamicProps:!0,dynamicItems:!1};var od=new RegExp("^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)+$","u"),id={oneOf:[{type:["string","number","boolean"]},{$ref:"#/$defs/Binding"}]};function Me(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Me.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);let a=o,i=!1,u=null,f=o;if(typeof t!="string"&&typeof t!="number"&&typeof t!="boolean"){let h={instancePath:r,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:id.oneOf[0].type},message:"must be string,number,boolean"};e===null?e=[h]:e.push(h),o++}var x=f===o;x&&(i=!0,u=0);let m=o;T(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length);var x=m===o;if(x&&i)i=!1,u=[u,1];else if(x){i=!0,u=1;var y=!0}if(i)o=a,e!==null&&(a?e.length=a:e=null);else{let h={instancePath:r,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:u},message:"must match exactly one schema in oneOf"};e===null?e=[h]:e.push(h),o++}return Me.errors=e,c.props=y,o===0}Me.evaluated={dynamicProps:!0,dynamicItems:!1};function W(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=W.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.event===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"event"},message:"must have required property 'event'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(a!=="event"){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.event!==void 0){let a=t.event;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.name===void 0){let i={instancePath:r+"/event",schemaPath:"#/properties/event/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!(i==="name"||i==="context")){let u={instancePath:r+"/event",schemaPath:"#/properties/event/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}if(a.name!==void 0){let i=a.name;if(typeof i=="string"){if(!od.test(i)){let u={instancePath:r+"/event/name",schemaPath:"#/$defs/Capability/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)+$"},message:'must match pattern "^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)+$"'};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/event/name",schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[u]:e.push(u),o++}}if(a.context!==void 0){let i=a.context;if(i&&typeof i=="object"&&!Array.isArray(i))for(let u in i)Me(i[u],{instancePath:r+"/event/context/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:i,parentDataProperty:u,rootData:n,dynamicAnchors:d})||(e=e===null?Me.errors:e.concat(Me.errors),o=e.length);else{let u={instancePath:r+"/event/context",schemaPath:"#/properties/event/properties/context/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[u]:e.push(u),o++}}}else{let i={instancePath:r+"/event",schemaPath:"#/properties/event/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return W.errors=e,o===0}W.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Ko={type:"object",description:"A button that triggers a host capability.",required:["id","component","label","action"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Action"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Verb-first label saying what happens ('Send \xA320', not 'OK')"},action:{$ref:"#/$defs/Action"},emphasis:{enum:["primary","secondary","tertiary"],default:"secondary"},tone:{enum:["default","danger"],default:"default"},disabled:{$ref:"#/$defs/DynamicBoolean"},description:{$ref:"#/$defs/DynamicString",description:"A second line under the label saying what the action does, for menu-like actions"},copy:{$ref:"#/$defs/DynamicString",description:"For the renderer action ui.copy: the text put on the clipboard; otherwise the action context's 'text' is copied"},shortcut:{type:"string",pattern:"^((mod|ctrl|alt|shift)\\+){0,3}([a-z0-9]|enter|escape|space|tab|backspace|delete|arrowup|arrowdown|arrowleft|arrowright|home|end|f[1-9]|f1[0-2]|slash|comma|period)$",description:`Keyboard shortcut that triggers the action while the surface has focus, e.g. "mod+enter" or "shift+d". 'mod' is Command on Apple platforms and Control elsewhere. The renderer shows the hint beside the label and never binds it outside the surface.`}},additionalProperties:!1},sd=new RegExp("^((mod|ctrl|alt|shift)\\+){0,3}([a-z0-9]|enter|escape|space|tab|backspace|delete|arrowup|arrowdown|arrowleft|arrowright|home|end|f[1-9]|f1[0-2]|slash|comma|period)$","u"),nd={type:"object",properties:{label:{$ref:"#/$defs/DynamicString",description:"Accessible name, when the visible label is absent or insufficient"},description:{$ref:"#/$defs/DynamicString"},live:{enum:["off","polite","assertive"]},hidden:{type:"boolean",description:"Hide from assistive technology (decorative only)"}},additionalProperties:!1,description:"Same fields as A2UI v1.0 'accessibility'. Components already carry roles and names from their semantics; use this only to add to them."};function E(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=E.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){for(let a in t)if(!(a==="label"||a==="description"||a==="live"||a==="hidden")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.description!==void 0&&(g(t.description,{instancePath:r+"/description",parentData:t,parentDataProperty:"description",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.live!==void 0){let a=t.live;if(!(a==="off"||a==="polite"||a==="assertive")){let i={instancePath:r+"/live",schemaPath:"#/properties/live/enum",keyword:"enum",params:{allowedValues:nd.properties.live.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.hidden!==void 0&&typeof t.hidden!="boolean"){let a={instancePath:r+"/hidden",schemaPath:"#/properties/hidden/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return E.errors=e,o===0}E.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function I(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=I.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);let a=o,i=!1,u=null,f=o;if(typeof t!="boolean"){let h={instancePath:r,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[h]:e.push(h),o++}var x=f===o;x&&(i=!0,u=0);let m=o;T(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length);var x=m===o;if(x&&i)i=!1,u=[u,1];else if(x){i=!0,u=1;var y=!0}if(i)o=a,e!==null&&(a?e.length=a:e=null);else{let h={instancePath:r,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:u},message:"must match exactly one schema in oneOf"};e===null?e=[h]:e.push(h),o++}return I.errors=e,c.props=y,o===0}I.evaluated={dynamicProps:!0,dynamicItems:!1};function dt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=dt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.action===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"action"},message:"must have required property 'action'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Ko.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Action"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Action"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.action!==void 0&&(W(t.action,{instancePath:r+"/action",parentData:t,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length)),t.emphasis!==void 0){let a=t.emphasis;if(!(a==="primary"||a==="secondary"||a==="tertiary")){let i={instancePath:r+"/emphasis",schemaPath:"#/properties/emphasis/enum",keyword:"enum",params:{allowedValues:Ko.properties.emphasis.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.tone!==void 0){let a=t.tone;if(!(a==="default"||a==="danger")){let i={instancePath:r+"/tone",schemaPath:"#/properties/tone/enum",keyword:"enum",params:{allowedValues:Ko.properties.tone.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.disabled!==void 0&&(I(t.disabled,{instancePath:r+"/disabled",parentData:t,parentDataProperty:"disabled",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.description!==void 0&&(g(t.description,{instancePath:r+"/description",parentData:t,parentDataProperty:"description",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.copy!==void 0&&(g(t.copy,{instancePath:r+"/copy",parentData:t,parentDataProperty:"copy",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.shortcut!==void 0){let a=t.shortcut;if(typeof a=="string"){if(!sd.test(a)){let i={instancePath:r+"/shortcut",schemaPath:"#/properties/shortcut/pattern",keyword:"pattern",params:{pattern:"^((mod|ctrl|alt|shift)\\+){0,3}([a-z0-9]|enter|escape|space|tab|backspace|delete|arrowup|arrowdown|arrowleft|arrowright|home|end|f[1-9]|f1[0-2]|slash|comma|period)$"},message:'must match pattern "^((mod|ctrl|alt|shift)\\+){0,3}([a-z0-9]|enter|escape|space|tab|backspace|delete|arrowup|arrowdown|arrowleft|arrowright|home|end|f[1-9]|f1[0-2]|slash|comma|period)$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/shortcut",schemaPath:"#/properties/shortcut/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return dt.errors=e,o===0}dt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function re(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=re.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),Array.isArray(t)){if(t.length<1){let i={instancePath:r,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};e===null?e=[i]:e.push(i),o++}let a=t.length;for(let i=0;i<a;i++){let u=t[i];if(typeof u=="string"){if(!F.test(u)){let f={instancePath:r+"/"+i,schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[f]:e.push(f),o++}}else{let f={instancePath:r+"/"+i,schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[f]:e.push(f),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[a]:e.push(a),o++}return re.errors=e,o===0}re.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1};function pt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=pt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.children===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="id"||a==="component"||a==="key"||a==="accessibility"||a==="visible"||a==="children")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="ActionBar"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"ActionBar"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return pt.errors=e,o===0}pt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var _s={type:"object",description:"Secondary actions behind one control: an overflow menu, a dropdown, a split button or a context menu.",required:["id","component","label","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ActionMenu"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"The control's name: 'More actions' for an overflow, or the verb for a dropdown ('Export')"},kind:{enum:["overflow","dropdown","split","context"],default:"overflow",description:"'overflow' is the '\u2026' control; 'dropdown' is a labelled button that opens the menu; 'split' pairs a primary action with a menu of alternatives; 'context' opens on right-click or long-press of the component it belongs to"},children:{$ref:"#/$defs/ChildList",description:"The Actions in the menu, in order; a danger-toned one goes last and is separated"},primary:{$ref:"#/$defs/Id",description:"For 'split': the Action that runs when the main part is pressed"}},additionalProperties:!1};function lt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=lt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.children===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(_s.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="ActionMenu"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"ActionMenu"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.kind!==void 0){let a=t.kind;if(!(a==="overflow"||a==="dropdown"||a==="split"||a==="context")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:_s.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length)),t.primary!==void 0){let a=t.primary;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/primary",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/primary",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return lt.errors=e,o===0}lt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Hs={type:"object",description:"The bar at the top of the product: brand or title, a leading action, search, trailing actions and the account.",required:["id","component","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"AppBar"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"The product's name, or the current screen's title on compact layouts"},brand:{$ref:"#/$defs/DynamicString",description:"A media reference for the logo, or initials; rendered before the title"},leading:{$ref:"#/$defs/Id",description:"An Action at the start: back, or the menu button the renderer adds itself when the navigation is a drawer"},search:{$ref:"#/$defs/Id",description:"A TextInput of kind 'search' (or a command palette opener: an Action with a shortcut)"},actions:{$ref:"#/$defs/Id",description:"An ActionBar at the end: notifications, help, the primary action of the product"},account:{$ref:"#/$defs/Id",description:"An Identity (the signed-in person) or an ActionMenu opened from it"},variant:{enum:["standard","large","compact"],default:"standard",description:"'large' puts the title under the bar on its own line on wide screens; 'compact' is 48px for dense tools"},sticky:{type:"boolean",default:!0}},additionalProperties:!1};function ct(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=ct.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.title===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Hs.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="AppBar"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"AppBar"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.title!==void 0&&(g(t.title,{instancePath:r+"/title",parentData:t,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.brand!==void 0&&(g(t.brand,{instancePath:r+"/brand",parentData:t,parentDataProperty:"brand",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.leading!==void 0){let a=t.leading;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/leading",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/leading",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.search!==void 0){let a=t.search;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/search",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/search",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.actions!==void 0){let a=t.actions;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/actions",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/actions",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.account!==void 0){let a=t.account;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/account",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/account",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.variant!==void 0){let a=t.variant;if(!(a==="standard"||a==="large"||a==="compact")){let i={instancePath:r+"/variant",schemaPath:"#/properties/variant/enum",keyword:"enum",params:{allowedValues:Hs.properties.variant.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.sticky!==void 0&&typeof t.sticky!="boolean"){let a={instancePath:r+"/sticky",schemaPath:"#/properties/sticky/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return ct.errors=e,o===0}ct.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var dd={type:"object",description:"One self-contained entity (an account, an order, a place), optionally actionable as a whole.",required:["id","component","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Card"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Name of the entity"},subtitle:{$ref:"#/$defs/DynamicString"},media:{$ref:"#/$defs/Id",description:"Optional Media component id"},badge:{type:"object",required:["text"],properties:{text:{$ref:"#/$defs/DynamicString"},tone:{$ref:"#/$defs/Tone"}},additionalProperties:!1},children:{$ref:"#/$defs/ChildList"},action:{$ref:"#/$defs/Action",description:"Activating the card as a whole (e.g. open details)"},progress:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding",description:"Number from 0 to 1 in host data"},label:{$ref:"#/$defs/DynamicString",description:"Optional text, e.g. '120 of 320 pages'; the percentage is shown otherwise"}},additionalProperties:!1,description:"Progress through the entity (reading, a course, a goal)"}},additionalProperties:!1};function ut(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=ut.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.title===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(dd.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Card"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Card"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.title!==void 0&&(g(t.title,{instancePath:r+"/title",parentData:t,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.subtitle!==void 0&&(g(t.subtitle,{instancePath:r+"/subtitle",parentData:t,parentDataProperty:"subtitle",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.media!==void 0){let a=t.media;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/media",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/media",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.badge!==void 0){let a=t.badge;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){let i={instancePath:r+"/badge",schemaPath:"#/properties/badge/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!(i==="text"||i==="tone")){let u={instancePath:r+"/badge",schemaPath:"#/properties/badge/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}if(a.text!==void 0&&(g(a.text,{instancePath:r+"/badge/text",parentData:a,parentDataProperty:"text",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),a.tone!==void 0){let i=a.tone;if(!(i==="neutral"||i==="info"||i==="success"||i==="warning"||i==="danger")){let u={instancePath:r+"/badge/tone",schemaPath:"#/$defs/Tone/enum",keyword:"enum",params:{allowedValues:ur.enum},message:"must be equal to one of the allowed values"};e===null?e=[u]:e.push(u),o++}}}else{let i={instancePath:r+"/badge",schemaPath:"#/properties/badge/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}if(t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length)),t.action!==void 0&&(W(t.action,{instancePath:r+"/action",parentData:t,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length)),t.progress!==void 0){let a=t.progress;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.value===void 0){let i={instancePath:r+"/progress",schemaPath:"#/properties/progress/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!(i==="value"||i==="label")){let u={instancePath:r+"/progress",schemaPath:"#/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}a.value!==void 0&&(T(a.value,{instancePath:r+"/progress/value",parentData:a,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),a.label!==void 0&&(g(a.label,{instancePath:r+"/progress/label",parentData:a,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let i={instancePath:r+"/progress",schemaPath:"#/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return ut.errors=e,o===0}ut.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Fs={type:"object",description:"A visual summary of data, always paired with a text summary.",required:["id","component","intent","data","title","summary","x","series"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Chart"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},intent:{enum:["trend","comparison","composition","distribution","relationship","flow","hierarchy","matrix","range"],description:"What the chart should communicate; the renderer picks the chart type. 'relationship' between two measures; 'flow' of amounts from each x value into the series; 'hierarchy' of parts by size; 'matrix' of x values against series; 'range' from the first series to the second"},data:{$ref:"#/$defs/Binding",description:"Array of data points in host data"},title:{$ref:"#/$defs/DynamicString"},summary:{$ref:"#/$defs/DynamicString",description:"Text alternative stating the takeaway (required)"},x:{type:"object",required:["path","label"],properties:{path:{$ref:"#/$defs/Path"},label:{$ref:"#/$defs/DynamicString"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1},series:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["path","label"],properties:{key:{$ref:"#/$defs/Key"},path:{$ref:"#/$defs/Path"},label:{$ref:"#/$defs/DynamicString"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1}}},additionalProperties:!1},pd={type:"object",required:["type"],properties:{type:{enum:["text","number","currency","percent","date","time","datetime","relativeTime","duration","color","bytes"]},currency:{$ref:"#/$defs/DynamicString",description:"ISO 4217 code, required for type 'currency'"},precision:{type:"integer",minimum:0,maximum:6}},additionalProperties:!1,description:"How to present a value. The renderer localizes it; the model never pre-formats numbers or dates into strings."};function ee(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=ee.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="type"||a==="currency"||a==="precision")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.type!==void 0){let a=t.type;if(!(a==="text"||a==="number"||a==="currency"||a==="percent"||a==="date"||a==="time"||a==="datetime"||a==="relativeTime"||a==="duration"||a==="color"||a==="bytes")){let i={instancePath:r+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:pd.properties.type.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.currency!==void 0&&(g(t.currency,{instancePath:r+"/currency",parentData:t,parentDataProperty:"currency",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.precision!==void 0){let a=t.precision;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a))){let i={instancePath:r+"/precision",schemaPath:"#/properties/precision/type",keyword:"type",params:{type:"integer"},message:"must be integer"};e===null?e=[i]:e.push(i),o++}if(typeof a=="number"){if(a>6||isNaN(a)){let i={instancePath:r+"/precision",schemaPath:"#/properties/precision/maximum",keyword:"maximum",params:{comparison:"<=",limit:6},message:"must be <= 6"};e===null?e=[i]:e.push(i),o++}if(a<0||isNaN(a)){let i={instancePath:r+"/precision",schemaPath:"#/properties/precision/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};e===null?e=[i]:e.push(i),o++}}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return ee.errors=e,o===0}ee.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function ft(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=ft.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.intent===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"intent"},message:"must have required property 'intent'"};e===null?e=[a]:e.push(a),o++}if(t.data===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"data"},message:"must have required property 'data'"};e===null?e=[a]:e.push(a),o++}if(t.title===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[a]:e.push(a),o++}if(t.summary===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"summary"},message:"must have required property 'summary'"};e===null?e=[a]:e.push(a),o++}if(t.x===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"x"},message:"must have required property 'x'"};e===null?e=[a]:e.push(a),o++}if(t.series===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"series"},message:"must have required property 'series'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Fs.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Chart"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Chart"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.intent!==void 0){let a=t.intent;if(!(a==="trend"||a==="comparison"||a==="composition"||a==="distribution"||a==="relationship"||a==="flow"||a==="hierarchy"||a==="matrix"||a==="range")){let i={instancePath:r+"/intent",schemaPath:"#/properties/intent/enum",keyword:"enum",params:{allowedValues:Fs.properties.intent.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.data!==void 0&&(T(t.data,{instancePath:r+"/data",parentData:t,parentDataProperty:"data",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.title!==void 0&&(g(t.title,{instancePath:r+"/title",parentData:t,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.summary!==void 0&&(g(t.summary,{instancePath:r+"/summary",parentData:t,parentDataProperty:"summary",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.x!==void 0){let a=t.x;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.path===void 0){let i={instancePath:r+"/x",schemaPath:"#/properties/x/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};e===null?e=[i]:e.push(i),o++}if(a.label===void 0){let i={instancePath:r+"/x",schemaPath:"#/properties/x/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!(i==="path"||i==="label"||i==="format")){let u={instancePath:r+"/x",schemaPath:"#/properties/x/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}if(a.path!==void 0){let i=a.path;if(typeof i=="string"){if(!ae.test(i)){let u={instancePath:r+"/x/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/x/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[u]:e.push(u),o++}}a.label!==void 0&&(g(a.label,{instancePath:r+"/x/label",parentData:a,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),a.format!==void 0&&(ee(a.format,{instancePath:r+"/x/format",parentData:a,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length))}else{let i={instancePath:r+"/x",schemaPath:"#/properties/x/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}if(t.series!==void 0){let a=t.series;if(Array.isArray(a)){if(a.length>6){let u={instancePath:r+"/series",schemaPath:"#/properties/series/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items"};e===null?e=[u]:e.push(u),o++}if(a.length<1){let u={instancePath:r+"/series",schemaPath:"#/properties/series/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.path===void 0){let m={instancePath:r+"/series/"+u,schemaPath:"#/properties/series/items/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};e===null?e=[m]:e.push(m),o++}if(f.label===void 0){let m={instancePath:r+"/series/"+u,schemaPath:"#/properties/series/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!(m==="key"||m==="path"||m==="label"||m==="format")){let x={instancePath:r+"/series/"+u,schemaPath:"#/properties/series/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.key!==void 0){let m=f.key;if(typeof m=="string"){if(!G.test(m)){let x={instancePath:r+"/series/"+u+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/series/"+u+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.path!==void 0){let m=f.path;if(typeof m=="string"){if(!ae.test(m)){let x={instancePath:r+"/series/"+u+"/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/series/"+u+"/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}f.label!==void 0&&(g(f.label,{instancePath:r+"/series/"+u+"/label",parentData:f,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.format!==void 0&&(ee(f.format,{instancePath:r+"/series/"+u+"/format",parentData:f,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length))}else{let m={instancePath:r+"/series/"+u,schemaPath:"#/properties/series/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/series",schemaPath:"#/properties/series/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return ft.errors=e,o===0}ft.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Us={type:"object",description:"Pick one or several options from a known set. The renderer chooses the control.",required:["id","component","label","options","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Choice"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},options:{$ref:"#/$defs/Options"},value:{$ref:"#/$defs/Binding",description:"Two-way binding into host data"},mode:{enum:["single","multiple"],default:"single"},help:{$ref:"#/$defs/DynamicString"},required:{type:"boolean",default:!1}},additionalProperties:!1},ld={oneOf:[{type:"array",minItems:2,items:{type:"object",required:["value","label"],properties:{value:{type:["string","number","boolean"]},label:{$ref:"#/$defs/DynamicString"},description:{$ref:"#/$defs/DynamicString"}},additionalProperties:!1}},{type:"object",required:["path","valuePath","labelPath"],properties:{path:{$ref:"#/$defs/Path"},valuePath:{$ref:"#/$defs/Path"},labelPath:{$ref:"#/$defs/Path"},descriptionPath:{$ref:"#/$defs/Path"},avatarPath:{$ref:"#/$defs/Path",description:"Initials or a media reference per option: renders people and places with a face"},imagePath:{$ref:"#/$defs/Path"},recentPath:{$ref:"#/$defs/Path",description:"Boolean per option: shown in a 'Recent' row above the full list"}},additionalProperties:!1}],description:"Either a fixed list, or options read from host data"};function ve(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=ve.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);let a=o,i=!1,u=null,f=o;if(Array.isArray(t)){if(t.length<2){let w={instancePath:r,schemaPath:"#/oneOf/0/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};e===null?e=[w]:e.push(w),o++}let b=t.length;for(let w=0;w<b;w++){let D=t[w];if(D&&typeof D=="object"&&!Array.isArray(D)){if(D.value===void 0){let z={instancePath:r+"/"+w,schemaPath:"#/oneOf/0/items/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[z]:e.push(z),o++}if(D.label===void 0){let z={instancePath:r+"/"+w,schemaPath:"#/oneOf/0/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[z]:e.push(z),o++}for(let z in D)if(!(z==="value"||z==="label"||z==="description")){let R={instancePath:r+"/"+w,schemaPath:"#/oneOf/0/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:z},message:"must NOT have additional properties"};e===null?e=[R]:e.push(R),o++}if(D.value!==void 0){let z=D.value;if(typeof z!="string"&&typeof z!="number"&&typeof z!="boolean"){let R={instancePath:r+"/"+w+"/value",schemaPath:"#/oneOf/0/items/properties/value/type",keyword:"type",params:{type:ld.oneOf[0].items.properties.value.type},message:"must be string,number,boolean"};e===null?e=[R]:e.push(R),o++}}D.label!==void 0&&(g(D.label,{instancePath:r+"/"+w+"/label",parentData:D,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),D.description!==void 0&&(g(D.description,{instancePath:r+"/"+w+"/description",parentData:D,parentDataProperty:"description",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let z={instancePath:r+"/"+w,schemaPath:"#/oneOf/0/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[z]:e.push(z),o++}}}else{let b={instancePath:r,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[b]:e.push(b),o++}var y=f===o;if(y){i=!0,u=0;var m=!0}let x=o;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.path===void 0){let b={instancePath:r,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};e===null?e=[b]:e.push(b),o++}if(t.valuePath===void 0){let b={instancePath:r,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"valuePath"},message:"must have required property 'valuePath'"};e===null?e=[b]:e.push(b),o++}if(t.labelPath===void 0){let b={instancePath:r,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"labelPath"},message:"must have required property 'labelPath'"};e===null?e=[b]:e.push(b),o++}for(let b in t)if(!(b==="path"||b==="valuePath"||b==="labelPath"||b==="descriptionPath"||b==="avatarPath"||b==="imagePath"||b==="recentPath")){let w={instancePath:r,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"};e===null?e=[w]:e.push(w),o++}if(t.path!==void 0){let b=t.path;if(typeof b=="string"){if(!ae.test(b)){let w={instancePath:r+"/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[w]:e.push(w),o++}}else{let w={instancePath:r+"/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[w]:e.push(w),o++}}if(t.valuePath!==void 0){let b=t.valuePath;if(typeof b=="string"){if(!ae.test(b)){let w={instancePath:r+"/valuePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[w]:e.push(w),o++}}else{let w={instancePath:r+"/valuePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[w]:e.push(w),o++}}if(t.labelPath!==void 0){let b=t.labelPath;if(typeof b=="string"){if(!ae.test(b)){let w={instancePath:r+"/labelPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[w]:e.push(w),o++}}else{let w={instancePath:r+"/labelPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[w]:e.push(w),o++}}if(t.descriptionPath!==void 0){let b=t.descriptionPath;if(typeof b=="string"){if(!ae.test(b)){let w={instancePath:r+"/descriptionPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[w]:e.push(w),o++}}else{let w={instancePath:r+"/descriptionPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[w]:e.push(w),o++}}if(t.avatarPath!==void 0){let b=t.avatarPath;if(typeof b=="string"){if(!ae.test(b)){let w={instancePath:r+"/avatarPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[w]:e.push(w),o++}}else{let w={instancePath:r+"/avatarPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[w]:e.push(w),o++}}if(t.imagePath!==void 0){let b=t.imagePath;if(typeof b=="string"){if(!ae.test(b)){let w={instancePath:r+"/imagePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[w]:e.push(w),o++}}else{let w={instancePath:r+"/imagePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[w]:e.push(w),o++}}if(t.recentPath!==void 0){let b=t.recentPath;if(typeof b=="string"){if(!ae.test(b)){let w={instancePath:r+"/recentPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[w]:e.push(w),o++}}else{let w={instancePath:r+"/recentPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[w]:e.push(w),o++}}}else{let b={instancePath:r,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[b]:e.push(b),o++}var y=x===o;if(y&&i)i=!1,u=[u,1];else if(y){i=!0,u=1;var h=!0}if(i)o=a,e!==null&&(a?e.length=a:e=null);else{let b={instancePath:r,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:u},message:"must match exactly one schema in oneOf"};e===null?e=[b]:e.push(b),o++}return ve.errors=e,c.props=h,c.items=m,o===0}ve.evaluated={dynamicProps:!0,dynamicItems:!0};function mt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=mt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.options===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"options"},message:"must have required property 'options'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Us.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Choice"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Choice"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.options!==void 0&&(ve(t.options,{instancePath:r+"/options",parentData:t,parentDataProperty:"options",rootData:n,dynamicAnchors:d})||(e=e===null?ve.errors:e.concat(ve.errors),o=e.length)),t.value!==void 0&&(T(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.mode!==void 0){let a=t.mode;if(!(a==="single"||a==="multiple")){let i={instancePath:r+"/mode",schemaPath:"#/properties/mode/enum",keyword:"enum",params:{allowedValues:Us.properties.mode.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.help!==void 0&&(g(t.help,{instancePath:r+"/help",parentData:t,parentDataProperty:"help",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.required!==void 0&&typeof t.required!="boolean"){let a={instancePath:r+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return mt.errors=e,o===0}mt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var cd={type:"object",description:"Code, a command or preformatted text, shown as written and copyable.",required:["id","component","text"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Code"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},text:{$ref:"#/$defs/DynamicString",description:"The code itself, usually bound to host data (an API key, a command, a snippet)"},label:{$ref:"#/$defs/DynamicString",description:"What it is, shown above: 'Install', 'Your API key'"},language:{type:"string",description:"A language name for highlighting, when the renderer has it: 'bash', 'json', 'ts'"},copyable:{type:"boolean",default:!0,description:"A Copy control beside it"},wrap:{type:"boolean",default:!1,description:"Wrap long lines instead of scrolling sideways"},secret:{$ref:"#/$defs/DynamicBoolean",default:!1,description:"Masked until revealed: a key shown once"}},additionalProperties:!1};function xt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=xt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.text===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(cd.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Code"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Code"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.text!==void 0&&(g(t.text,{instancePath:r+"/text",parentData:t,parentDataProperty:"text",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.language!==void 0&&typeof t.language!="string"){let a={instancePath:r+"/language",schemaPath:"#/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[a]:e.push(a),o++}if(t.copyable!==void 0&&typeof t.copyable!="boolean"){let a={instancePath:r+"/copyable",schemaPath:"#/properties/copyable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}if(t.wrap!==void 0&&typeof t.wrap!="boolean"){let a={instancePath:r+"/wrap",schemaPath:"#/properties/wrap/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}t.secret!==void 0&&(I(t.secret,{instancePath:r+"/secret",parentData:t,parentDataProperty:"secret",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return xt.errors=e,o===0}xt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Os={type:"object",description:"A one-time code or PIN, typed into one box per character.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"CodeInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"'Enter the code we emailed you'"},value:{$ref:"#/$defs/Binding",description:"The code so far in host data, as a string"},length:{type:"integer",minimum:4,maximum:12,default:6},kind:{enum:["numeric","alphanumeric"],default:"numeric"},help:{$ref:"#/$defs/DynamicString",description:"Where the code came from and how long it lasts"},required:{$ref:"#/$defs/DynamicBoolean",default:!0},action:{$ref:"#/$defs/Action",description:"Runs when every character is in, so the person needn't press a button; context binds to value"}},additionalProperties:!1};function gt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=gt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Os.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="CodeInput"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"CodeInput"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(T(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.length!==void 0){let a=t.length;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a))){let i={instancePath:r+"/length",schemaPath:"#/properties/length/type",keyword:"type",params:{type:"integer"},message:"must be integer"};e===null?e=[i]:e.push(i),o++}if(typeof a=="number"){if(a>12||isNaN(a)){let i={instancePath:r+"/length",schemaPath:"#/properties/length/maximum",keyword:"maximum",params:{comparison:"<=",limit:12},message:"must be <= 12"};e===null?e=[i]:e.push(i),o++}if(a<4||isNaN(a)){let i={instancePath:r+"/length",schemaPath:"#/properties/length/minimum",keyword:"minimum",params:{comparison:">=",limit:4},message:"must be >= 4"};e===null?e=[i]:e.push(i),o++}}}if(t.kind!==void 0){let a=t.kind;if(!(a==="numeric"||a==="alphanumeric")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Os.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}t.help!==void 0&&(g(t.help,{instancePath:r+"/help",parentData:t,parentDataProperty:"help",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.required!==void 0&&(I(t.required,{instancePath:r+"/required",parentData:t,parentDataProperty:"required",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.action!==void 0&&(W(t.action,{instancePath:r+"/action",parentData:t,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return gt.errors=e,o===0}gt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Wo={type:"object",description:"A list of items from host data, each rendered with the same template.",required:["id","component","items","label"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Collection"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{$ref:"#/$defs/Template"},label:{$ref:"#/$defs/DynamicString",description:"What the list contains, e.g. 'Recent payments'"},empty:{$ref:"#/$defs/Id",description:"Status component shown when there are no items"},selection:{enum:["none","single","multiple"],default:"none"},selected:{$ref:"#/$defs/Binding",description:"Selected item value(s) in host data when selection is not 'none'"},layout:{enum:["auto","list","grid","timeline","carousel","calendar"],default:"auto",description:"'grid' for visual items (products, books); 'list' for rows; 'timeline' for dated activity; 'carousel' for a row people page through; 'calendar' places items on a month grid by 'datePath'; 'auto' lets the renderer choose from the item template"},datePath:{$ref:"#/$defs/Path",description:"For 'calendar': relative path in each item to the ISO date that places it"},page:{type:"object",properties:{index:{$ref:"#/$defs/Binding",description:"1-based page number in host data"},size:{$ref:"#/$defs/Binding"},total:{$ref:"#/$defs/Binding",description:"Total number of items, all pages"},action:{$ref:"#/$defs/Action",description:"Sent when someone changes page or page size"}},additionalProperties:!1,description:"Paging state, owned by the host"},bulkActions:{$ref:"#/$defs/Id",description:"ActionBar shown while items are selected (selection 'multiple')"},reorderable:{type:"boolean",default:!1,description:"People can drag items, or move them with the keyboard, into a new order"},order:{$ref:"#/$defs/Binding",description:"Item values (ids) in the order people put them, written when reorderable"}},additionalProperties:!1};function yt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=yt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.path===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};e===null?e=[a]:e.push(a),o++}if(t.componentId===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"componentId"},message:"must have required property 'componentId'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="path"||a==="componentId")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.path!==void 0){let a=t.path;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.componentId!==void 0){let a=t.componentId;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/componentId",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/componentId",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return yt.errors=e,o===0}yt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function ht(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=ht.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.items===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Wo.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Collection"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Collection"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.items!==void 0&&(yt(t.items,{instancePath:r+"/items",parentData:t,parentDataProperty:"items",rootData:n,dynamicAnchors:d})||(e=e===null?yt.errors:e.concat(yt.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.empty!==void 0){let a=t.empty;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/empty",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/empty",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.selection!==void 0){let a=t.selection;if(!(a==="none"||a==="single"||a==="multiple")){let i={instancePath:r+"/selection",schemaPath:"#/properties/selection/enum",keyword:"enum",params:{allowedValues:Wo.properties.selection.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.selected!==void 0&&(T(t.selected,{instancePath:r+"/selected",parentData:t,parentDataProperty:"selected",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.layout!==void 0){let a=t.layout;if(!(a==="auto"||a==="list"||a==="grid"||a==="timeline"||a==="carousel"||a==="calendar")){let i={instancePath:r+"/layout",schemaPath:"#/properties/layout/enum",keyword:"enum",params:{allowedValues:Wo.properties.layout.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.datePath!==void 0){let a=t.datePath;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/datePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/datePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.page!==void 0){let a=t.page;if(a&&typeof a=="object"&&!Array.isArray(a)){for(let i in a)if(!(i==="index"||i==="size"||i==="total"||i==="action")){let u={instancePath:r+"/page",schemaPath:"#/properties/page/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}a.index!==void 0&&(T(a.index,{instancePath:r+"/page/index",parentData:a,parentDataProperty:"index",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),a.size!==void 0&&(T(a.size,{instancePath:r+"/page/size",parentData:a,parentDataProperty:"size",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),a.total!==void 0&&(T(a.total,{instancePath:r+"/page/total",parentData:a,parentDataProperty:"total",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),a.action!==void 0&&(W(a.action,{instancePath:r+"/page/action",parentData:a,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length))}else{let i={instancePath:r+"/page",schemaPath:"#/properties/page/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}if(t.bulkActions!==void 0){let a=t.bulkActions;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/bulkActions",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/bulkActions",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.reorderable!==void 0&&typeof t.reorderable!="boolean"){let a={instancePath:r+"/reorderable",schemaPath:"#/properties/reorderable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}t.order!==void 0&&(T(t.order,{instancePath:r+"/order",parentData:t,parentDataProperty:"order",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return ht.errors=e,o===0}ht.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Vs={type:"object",description:"Pick a colour: from swatches the host offers, or any colour.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ColorInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"The colour in host data, as CSS text in the chosen format"},swatches:{$ref:"#/$defs/Options",description:"Named colours to pick from (value is the colour, label its name); without them the full picker shows"},format:{enum:["hex","rgb","hsl"],default:"hex"},alpha:{type:"boolean",default:!1,description:"Let the person set opacity too"},help:{$ref:"#/$defs/DynamicString"},required:{$ref:"#/$defs/DynamicBoolean",default:!1}},additionalProperties:!1};function bt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=bt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Vs.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="ColorInput"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"ColorInput"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(T(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.swatches!==void 0&&(ve(t.swatches,{instancePath:r+"/swatches",parentData:t,parentDataProperty:"swatches",rootData:n,dynamicAnchors:d})||(e=e===null?ve.errors:e.concat(ve.errors),o=e.length)),t.format!==void 0){let a=t.format;if(!(a==="hex"||a==="rgb"||a==="hsl")){let i={instancePath:r+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:Vs.properties.format.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.alpha!==void 0&&typeof t.alpha!="boolean"){let a={instancePath:r+"/alpha",schemaPath:"#/properties/alpha/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}t.help!==void 0&&(g(t.help,{instancePath:r+"/help",parentData:t,parentDataProperty:"help",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.required!==void 0&&(I(t.required,{instancePath:r+"/required",parentData:t,parentDataProperty:"required",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return bt.errors=e,o===0}bt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var jr={type:"object",description:"Side-by-side columns that collapse to a stack on compact layouts: a main column with a narrower one beside it, or equal halves.",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Columns"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList",description:"One component per column, in reading order"},layout:{enum:["two-thirds","one-third","halves","thirds","sidebar-start","sidebar-end"],default:"two-thirds",description:"'two-thirds' is a wide first column (GOV.UK's default); 'one-third' the reverse; 'halves' and 'thirds' equal; 'sidebar-*' a fixed 18rem column at that edge"},collapse:{enum:["compact","medium","never"],default:"compact",description:"The width below which the columns stack"},align:{enum:["start","center","stretch"],default:"stretch"}},additionalProperties:!1};function vt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=vt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.children===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(jr.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Columns"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Columns"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length)),t.layout!==void 0){let a=t.layout;if(!(a==="two-thirds"||a==="one-third"||a==="halves"||a==="thirds"||a==="sidebar-start"||a==="sidebar-end")){let i={instancePath:r+"/layout",schemaPath:"#/properties/layout/enum",keyword:"enum",params:{allowedValues:jr.properties.layout.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.collapse!==void 0){let a=t.collapse;if(!(a==="compact"||a==="medium"||a==="never")){let i={instancePath:r+"/collapse",schemaPath:"#/properties/collapse/enum",keyword:"enum",params:{allowedValues:jr.properties.collapse.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.align!==void 0){let a=t.align;if(!(a==="start"||a==="center"||a==="stretch")){let i={instancePath:r+"/align",schemaPath:"#/properties/align/enum",keyword:"enum",params:{allowedValues:jr.properties.align.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return vt.errors=e,o===0}vt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Ls={type:"object",description:"Compare a few options across the same attributes, and choose one.",required:["id","component","items","itemTitle","attributes"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Comparison"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{$ref:"#/$defs/Binding",description:"Array of options in host data (2\u20134 recommended)"},itemTitle:{$ref:"#/$defs/Path",description:"Relative path to each item's name"},attributes:{type:"array",minItems:1,maxItems:8,items:{type:"object",required:["key","label","path"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},path:{$ref:"#/$defs/Path"},format:{$ref:"#/$defs/Format"},better:{enum:["higher","lower","none"],default:"none"},group:{$ref:"#/$defs/DynamicString",description:"Heading that groups related attributes (e.g. 'Storage', 'Support')"}},additionalProperties:!1}},choose:{$ref:"#/$defs/ActionSpec",description:"Action per item; context bindings resolve against the item"},recommended:{$ref:"#/$defs/DynamicString",description:"Optional value of the recommended item's title, with a reason in 'summary'"},summary:{$ref:"#/$defs/DynamicString"},recommendedReason:{$ref:"#/$defs/DynamicString",description:"Why the recommended item fits, shown on its badge (one short sentence)"}},additionalProperties:!1};function ce(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=ce.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.action===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"action"},message:"must have required property 'action'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="label"||a==="action")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.action!==void 0&&(W(t.action,{instancePath:r+"/action",parentData:t,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return ce.errors=e,o===0}ce.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function wt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=wt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.items===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};e===null?e=[a]:e.push(a),o++}if(t.itemTitle===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"itemTitle"},message:"must have required property 'itemTitle'"};e===null?e=[a]:e.push(a),o++}if(t.attributes===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"attributes"},message:"must have required property 'attributes'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Ls.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Comparison"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Comparison"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.items!==void 0&&(T(t.items,{instancePath:r+"/items",parentData:t,parentDataProperty:"items",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.itemTitle!==void 0){let a=t.itemTitle;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/itemTitle",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/itemTitle",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.attributes!==void 0){let a=t.attributes;if(Array.isArray(a)){if(a.length>8){let u={instancePath:r+"/attributes",schemaPath:"#/properties/attributes/maxItems",keyword:"maxItems",params:{limit:8},message:"must NOT have more than 8 items"};e===null?e=[u]:e.push(u),o++}if(a.length<1){let u={instancePath:r+"/attributes",schemaPath:"#/properties/attributes/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.key===void 0){let m={instancePath:r+"/attributes/"+u,schemaPath:"#/properties/attributes/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};e===null?e=[m]:e.push(m),o++}if(f.label===void 0){let m={instancePath:r+"/attributes/"+u,schemaPath:"#/properties/attributes/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[m]:e.push(m),o++}if(f.path===void 0){let m={instancePath:r+"/attributes/"+u,schemaPath:"#/properties/attributes/items/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!(m==="key"||m==="label"||m==="path"||m==="format"||m==="better"||m==="group")){let x={instancePath:r+"/attributes/"+u,schemaPath:"#/properties/attributes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.key!==void 0){let m=f.key;if(typeof m=="string"){if(!G.test(m)){let x={instancePath:r+"/attributes/"+u+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/attributes/"+u+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.label!==void 0&&(g(f.label,{instancePath:r+"/attributes/"+u+"/label",parentData:f,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.path!==void 0){let m=f.path;if(typeof m=="string"){if(!ae.test(m)){let x={instancePath:r+"/attributes/"+u+"/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/attributes/"+u+"/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.format!==void 0&&(ee(f.format,{instancePath:r+"/attributes/"+u+"/format",parentData:f,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length)),f.better!==void 0){let m=f.better;if(!(m==="higher"||m==="lower"||m==="none")){let x={instancePath:r+"/attributes/"+u+"/better",schemaPath:"#/properties/attributes/items/properties/better/enum",keyword:"enum",params:{allowedValues:Ls.properties.attributes.items.properties.better.enum},message:"must be equal to one of the allowed values"};e===null?e=[x]:e.push(x),o++}}f.group!==void 0&&(g(f.group,{instancePath:r+"/attributes/"+u+"/group",parentData:f,parentDataProperty:"group",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let m={instancePath:r+"/attributes/"+u,schemaPath:"#/properties/attributes/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/attributes",schemaPath:"#/properties/attributes/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}t.choose!==void 0&&(ce(t.choose,{instancePath:r+"/choose",parentData:t,parentDataProperty:"choose",rootData:n,dynamicAnchors:d})||(e=e===null?ce.errors:e.concat(ce.errors),o=e.length)),t.recommended!==void 0&&(g(t.recommended,{instancePath:r+"/recommended",parentData:t,parentDataProperty:"recommended",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.summary!==void 0&&(g(t.summary,{instancePath:r+"/summary",parentData:t,parentDataProperty:"summary",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.recommendedReason!==void 0&&(g(t.recommendedReason,{instancePath:r+"/recommendedReason",parentData:t,parentDataProperty:"recommendedReason",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return wt.errors=e,o===0}wt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Go={type:"object",description:"Asks the user to confirm a consequential or destructive action, showing what will happen.",required:["id","component","title","severity","confirm"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Confirm"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Question naming the action ('Send \xA3250 to Alex?')"},message:{$ref:"#/$defs/DynamicString"},consequence:{$ref:"#/$defs/DynamicString",description:"What happens and whether it can be undone"},summary:{$ref:"#/$defs/Id",description:"Optional DetailList summarising what is being confirmed"},severity:{enum:["consequential","destructive"]},confirm:{$ref:"#/$defs/ActionSpec"},cancel:{$ref:"#/$defs/ActionSpec",description:"Defaults to 'Cancel' \u2192 ui.dismiss"},typeToConfirm:{$ref:"#/$defs/DynamicString",description:"Text the user must type before confirming (for irreversible, high-impact actions)"},amount:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1,description:"The amount being committed, shown large at the top"},subject:{type:"object",required:["title"],properties:{title:{$ref:"#/$defs/DynamicString"},subtitle:{$ref:"#/$defs/DynamicString"},avatar:{$ref:"#/$defs/DynamicString",description:"Initials, or a media reference in host data"}},additionalProperties:!1,description:"Who or what the action is for, shown with a face or picture"},consequences:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["title"],properties:{title:{$ref:"#/$defs/DynamicString"},detail:{$ref:"#/$defs/DynamicString"},icon:{enum:["lock","trash","clock","tag","info","alert","mail","shield"]}},additionalProperties:!1},description:"What will happen, as a short list (for destructive actions)"}},additionalProperties:!1};function kt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=kt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.title===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[a]:e.push(a),o++}if(t.severity===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"severity"},message:"must have required property 'severity'"};e===null?e=[a]:e.push(a),o++}if(t.confirm===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"confirm"},message:"must have required property 'confirm'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Go.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Confirm"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Confirm"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.title!==void 0&&(g(t.title,{instancePath:r+"/title",parentData:t,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.message!==void 0&&(g(t.message,{instancePath:r+"/message",parentData:t,parentDataProperty:"message",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.consequence!==void 0&&(g(t.consequence,{instancePath:r+"/consequence",parentData:t,parentDataProperty:"consequence",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.summary!==void 0){let a=t.summary;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/summary",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/summary",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.severity!==void 0){let a=t.severity;if(!(a==="consequential"||a==="destructive")){let i={instancePath:r+"/severity",schemaPath:"#/properties/severity/enum",keyword:"enum",params:{allowedValues:Go.properties.severity.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.confirm!==void 0&&(ce(t.confirm,{instancePath:r+"/confirm",parentData:t,parentDataProperty:"confirm",rootData:n,dynamicAnchors:d})||(e=e===null?ce.errors:e.concat(ce.errors),o=e.length)),t.cancel!==void 0&&(ce(t.cancel,{instancePath:r+"/cancel",parentData:t,parentDataProperty:"cancel",rootData:n,dynamicAnchors:d})||(e=e===null?ce.errors:e.concat(ce.errors),o=e.length)),t.typeToConfirm!==void 0&&(g(t.typeToConfirm,{instancePath:r+"/typeToConfirm",parentData:t,parentDataProperty:"typeToConfirm",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.amount!==void 0){let a=t.amount;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.value===void 0){let i={instancePath:r+"/amount",schemaPath:"#/properties/amount/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!(i==="value"||i==="format")){let u={instancePath:r+"/amount",schemaPath:"#/properties/amount/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}a.value!==void 0&&(T(a.value,{instancePath:r+"/amount/value",parentData:a,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),a.format!==void 0&&(ee(a.format,{instancePath:r+"/amount/format",parentData:a,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length))}else{let i={instancePath:r+"/amount",schemaPath:"#/properties/amount/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}if(t.subject!==void 0){let a=t.subject;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.title===void 0){let i={instancePath:r+"/subject",schemaPath:"#/properties/subject/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!(i==="title"||i==="subtitle"||i==="avatar")){let u={instancePath:r+"/subject",schemaPath:"#/properties/subject/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}a.title!==void 0&&(g(a.title,{instancePath:r+"/subject/title",parentData:a,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),a.subtitle!==void 0&&(g(a.subtitle,{instancePath:r+"/subject/subtitle",parentData:a,parentDataProperty:"subtitle",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),a.avatar!==void 0&&(g(a.avatar,{instancePath:r+"/subject/avatar",parentData:a,parentDataProperty:"avatar",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let i={instancePath:r+"/subject",schemaPath:"#/properties/subject/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}if(t.consequences!==void 0){let a=t.consequences;if(Array.isArray(a)){if(a.length>6){let u={instancePath:r+"/consequences",schemaPath:"#/properties/consequences/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items"};e===null?e=[u]:e.push(u),o++}if(a.length<1){let u={instancePath:r+"/consequences",schemaPath:"#/properties/consequences/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.title===void 0){let m={instancePath:r+"/consequences/"+u,schemaPath:"#/properties/consequences/items/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!(m==="title"||m==="detail"||m==="icon")){let x={instancePath:r+"/consequences/"+u,schemaPath:"#/properties/consequences/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.title!==void 0&&(g(f.title,{instancePath:r+"/consequences/"+u+"/title",parentData:f,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.detail!==void 0&&(g(f.detail,{instancePath:r+"/consequences/"+u+"/detail",parentData:f,parentDataProperty:"detail",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.icon!==void 0){let m=f.icon;if(!(m==="lock"||m==="trash"||m==="clock"||m==="tag"||m==="info"||m==="alert"||m==="mail"||m==="shield")){let x={instancePath:r+"/consequences/"+u+"/icon",schemaPath:"#/properties/consequences/items/properties/icon/enum",keyword:"enum",params:{allowedValues:Go.properties.consequences.items.properties.icon.enum},message:"must be equal to one of the allowed values"};e===null?e=[x]:e.push(x),o++}}}else{let m={instancePath:r+"/consequences/"+u,schemaPath:"#/properties/consequences/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/consequences",schemaPath:"#/properties/consequences/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return kt.errors=e,o===0}kt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var ud={type:"object",description:"A slot for a component the host implements itself: a logo, a brand moment, a bespoke widget. The document names it and gives it props; the product renders it, and a fallback stands in when it can't.",required:["id","component","name","fallback"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Custom"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},name:{type:"string",pattern:"^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$",description:"The host's name for the component, namespaced: 'brand.logo', 'store.map'"},props:{type:"object",description:"What the host component takes; values may be bindings",additionalProperties:!0},fallback:{$ref:"#/$defs/Id",description:"What renders when the host has no component of that name: a Text, a Media, a Status. Required, so the document stands on its own"},label:{$ref:"#/$defs/DynamicString",description:"An accessible name for the slot when the host component is decorative or complex"}},additionalProperties:!1},fd=new RegExp("^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$","u");function $t(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=$t.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.name===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};e===null?e=[a]:e.push(a),o++}if(t.fallback===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"fallback"},message:"must have required property 'fallback'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(ud.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Custom"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Custom"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.name!==void 0){let a=t.name;if(typeof a=="string"){if(!fd.test(a)){let i={instancePath:r+"/name",schemaPath:"#/properties/name/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$"},message:'must match pattern "^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.props!==void 0){let a=t.props;if(!(a&&typeof a=="object"&&!Array.isArray(a))){let i={instancePath:r+"/props",schemaPath:"#/properties/props/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}if(t.fallback!==void 0){let a=t.fallback;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/fallback",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/fallback",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return $t.errors=e,o===0}$t.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Zs={type:"object",description:"A date, time, date-time or date range.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"DateInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"ISO 8601 value(s) in host data"},kind:{enum:["date","time","datetime","dateRange","month","year"],default:"date",description:"'month' stores YYYY-MM and 'year' stores YYYY"},multiple:{type:"boolean",default:!1,description:"Several dates rather than one; the value is a list"},min:{$ref:"#/$defs/DynamicString"},max:{$ref:"#/$defs/DynamicString"},help:{$ref:"#/$defs/DynamicString"},required:{type:"boolean",default:!1}},additionalProperties:!1};function Pt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Pt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Zs.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="DateInput"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"DateInput"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(T(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.kind!==void 0){let a=t.kind;if(!(a==="date"||a==="time"||a==="datetime"||a==="dateRange"||a==="month"||a==="year")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Zs.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.multiple!==void 0&&typeof t.multiple!="boolean"){let a={instancePath:r+"/multiple",schemaPath:"#/properties/multiple/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}if(t.min!==void 0&&(g(t.min,{instancePath:r+"/min",parentData:t,parentDataProperty:"min",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.max!==void 0&&(g(t.max,{instancePath:r+"/max",parentData:t,parentDataProperty:"max",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.help!==void 0&&(g(t.help,{instancePath:r+"/help",parentData:t,parentDataProperty:"help",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.required!==void 0&&typeof t.required!="boolean"){let a={instancePath:r+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Pt.errors=e,o===0}Pt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Yo={type:"object",description:"Label/value pairs describing one thing (a summary, a receipt, a review step).",required:["id","component","items"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"DetailList"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{type:"array",minItems:1,items:{type:"object",required:["label","value"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/DynamicValue"},format:{$ref:"#/$defs/Format"},total:{type:"boolean",description:"The total row of a receipt, shown emphasised after a divider"}},additionalProperties:!1}},title:{$ref:"#/$defs/DynamicString"},variant:{enum:["default","receipt"],default:"default",description:"'receipt' for money: values right-aligned in tabular figures, with an optional total row"},layout:{enum:["rows","grid"],default:"rows",description:"'grid' packs many short fields into columns (record pages); 'rows' keeps one per line"},rowAction:{$ref:"#/$defs/Action",description:"Offered per row as a 'Change' link named after the row (GOV.UK summary list); the row's key is sent as 'key' with the context"}},additionalProperties:!1};function St(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=St.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.items===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Yo.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="DetailList"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"DetailList"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.items!==void 0){let a=t.items;if(Array.isArray(a)){if(a.length<1){let u={instancePath:r+"/items",schemaPath:"#/properties/items/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.label===void 0){let m={instancePath:r+"/items/"+u,schemaPath:"#/properties/items/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[m]:e.push(m),o++}if(f.value===void 0){let m={instancePath:r+"/items/"+u,schemaPath:"#/properties/items/items/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!(m==="key"||m==="label"||m==="value"||m==="format"||m==="total")){let x={instancePath:r+"/items/"+u,schemaPath:"#/properties/items/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.key!==void 0){let m=f.key;if(typeof m=="string"){if(!G.test(m)){let x={instancePath:r+"/items/"+u+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/items/"+u+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.label!==void 0&&(g(f.label,{instancePath:r+"/items/"+u+"/label",parentData:f,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.value!==void 0&&(Me(f.value,{instancePath:r+"/items/"+u+"/value",parentData:f,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?Me.errors:e.concat(Me.errors),o=e.length)),f.format!==void 0&&(ee(f.format,{instancePath:r+"/items/"+u+"/format",parentData:f,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length)),f.total!==void 0&&typeof f.total!="boolean"){let m={instancePath:r+"/items/"+u+"/total",schemaPath:"#/properties/items/items/properties/total/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[m]:e.push(m),o++}}else{let m={instancePath:r+"/items/"+u,schemaPath:"#/properties/items/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}if(t.title!==void 0&&(g(t.title,{instancePath:r+"/title",parentData:t,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.variant!==void 0){let a=t.variant;if(!(a==="default"||a==="receipt")){let i={instancePath:r+"/variant",schemaPath:"#/properties/variant/enum",keyword:"enum",params:{allowedValues:Yo.properties.variant.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.layout!==void 0){let a=t.layout;if(!(a==="rows"||a==="grid")){let i={instancePath:r+"/layout",schemaPath:"#/properties/layout/enum",keyword:"enum",params:{allowedValues:Yo.properties.layout.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}t.rowAction!==void 0&&(W(t.rowAction,{instancePath:r+"/rowAction",parentData:t,parentDataProperty:"rowAction",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return St.errors=e,o===0}St.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function zt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=zt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.summary===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"summary"},message:"must have required property 'summary'"};e===null?e=[a]:e.push(a),o++}if(t.children===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="id"||a==="component"||a==="key"||a==="accessibility"||a==="visible"||a==="summary"||a==="children"||a==="open")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Disclosure"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Disclosure"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.summary!==void 0&&(g(t.summary,{instancePath:r+"/summary",parentData:t,parentDataProperty:"summary",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length)),t.open!==void 0&&typeof t.open!="boolean"){let a={instancePath:r+"/open",schemaPath:"#/properties/open/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return zt.errors=e,o===0}zt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var md={type:"object",description:"Choose or drop files to attach or upload.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"FileInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"The chosen files in host data: a list of { name, size, type, ref }, written by the renderer; the host uploads them"},accept:{type:"array",items:{type:"string"},description:"Allowed types as extensions or MIME types: ['.pdf', 'image/*']"},multiple:{type:"boolean",default:!1},maxSize:{type:"integer",minimum:1,description:"Largest file, in bytes; the renderer refuses larger ones with a message"},help:{$ref:"#/$defs/DynamicString",description:"What to attach and why; the accepted types and size are said by the renderer"},required:{$ref:"#/$defs/DynamicBoolean",default:!1}},additionalProperties:!1};function At(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=At.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(md.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="FileInput"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"FileInput"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(T(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.accept!==void 0){let a=t.accept;if(Array.isArray(a)){let i=a.length;for(let u=0;u<i;u++)if(typeof a[u]!="string"){let f={instancePath:r+"/accept/"+u,schemaPath:"#/properties/accept/items/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[f]:e.push(f),o++}}else{let i={instancePath:r+"/accept",schemaPath:"#/properties/accept/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}if(t.multiple!==void 0&&typeof t.multiple!="boolean"){let a={instancePath:r+"/multiple",schemaPath:"#/properties/multiple/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}if(t.maxSize!==void 0){let a=t.maxSize;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a))){let i={instancePath:r+"/maxSize",schemaPath:"#/properties/maxSize/type",keyword:"type",params:{type:"integer"},message:"must be integer"};e===null?e=[i]:e.push(i),o++}if(typeof a=="number"&&(a<1||isNaN(a))){let i={instancePath:r+"/maxSize",schemaPath:"#/properties/maxSize/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};e===null?e=[i]:e.push(i),o++}}t.help!==void 0&&(g(t.help,{instancePath:r+"/help",parentData:t,parentDataProperty:"help",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.required!==void 0&&(I(t.required,{instancePath:r+"/required",parentData:t,parentDataProperty:"required",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return At.errors=e,o===0}At.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var xd={type:"object",description:"Filters for a list of results, with the result count.",required:["id","component","children","results"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"FilterPanel"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Defaults to 'Filters'"},children:{$ref:"#/$defs/ChildList",description:"The filter inputs (Choice, RangeInput, Toggle, DateInput, TextInput)"},results:{$ref:"#/$defs/Id",description:"The Collection or Table the filters narrow"},resultCount:{$ref:"#/$defs/Binding",description:"Number of results with the current filters, from host data"},clear:{$ref:"#/$defs/Action",description:"Optional action that resets the filters on the host"}},additionalProperties:!1};function It(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=It.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.children===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};e===null?e=[a]:e.push(a),o++}if(t.results===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"results"},message:"must have required property 'results'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(xd.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="FilterPanel"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"FilterPanel"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length)),t.results!==void 0){let a=t.results;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/results",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/results",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}t.resultCount!==void 0&&(T(t.resultCount,{instancePath:r+"/resultCount",parentData:t,parentDataProperty:"resultCount",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.clear!==void 0&&(W(t.clear,{instancePath:r+"/clear",parentData:t,parentDataProperty:"clear",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return It.errors=e,o===0}It.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Ct(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Ct.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.legal===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"legal"},message:"must have required property 'legal'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="id"||a==="component"||a==="key"||a==="accessibility"||a==="visible"||a==="groups"||a==="legal"||a==="aside")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Footer"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Footer"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.groups!==void 0){let a=t.groups;if(Array.isArray(a)){if(a.length>6){let u={instancePath:r+"/groups",schemaPath:"#/properties/groups/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items"};e===null?e=[u]:e.push(u),o++}if(a.length<1){let u={instancePath:r+"/groups",schemaPath:"#/properties/groups/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.key===void 0){let m={instancePath:r+"/groups/"+u,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};e===null?e=[m]:e.push(m),o++}if(f.label===void 0){let m={instancePath:r+"/groups/"+u,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[m]:e.push(m),o++}if(f.items===void 0){let m={instancePath:r+"/groups/"+u,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!(m==="key"||m==="label"||m==="items")){let x={instancePath:r+"/groups/"+u,schemaPath:"#/properties/groups/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.key!==void 0){let m=f.key;if(typeof m=="string"){if(!G.test(m)){let x={instancePath:r+"/groups/"+u+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/groups/"+u+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.label!==void 0&&(g(f.label,{instancePath:r+"/groups/"+u+"/label",parentData:f,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.items!==void 0){let m=f.items;if(Array.isArray(m)){if(m.length>12){let y={instancePath:r+"/groups/"+u+"/items",schemaPath:"#/properties/groups/items/properties/items/maxItems",keyword:"maxItems",params:{limit:12},message:"must NOT have more than 12 items"};e===null?e=[y]:e.push(y),o++}if(m.length<1){let y={instancePath:r+"/groups/"+u+"/items",schemaPath:"#/properties/groups/items/properties/items/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};e===null?e=[y]:e.push(y),o++}let x=m.length;for(let y=0;y<x;y++){let h=m[y];if(h&&typeof h=="object"&&!Array.isArray(h)){if(h.key===void 0){let b={instancePath:r+"/groups/"+u+"/items/"+y,schemaPath:"#/properties/groups/items/properties/items/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};e===null?e=[b]:e.push(b),o++}if(h.label===void 0){let b={instancePath:r+"/groups/"+u+"/items/"+y,schemaPath:"#/properties/groups/items/properties/items/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[b]:e.push(b),o++}if(h.action===void 0){let b={instancePath:r+"/groups/"+u+"/items/"+y,schemaPath:"#/properties/groups/items/properties/items/items/required",keyword:"required",params:{missingProperty:"action"},message:"must have required property 'action'"};e===null?e=[b]:e.push(b),o++}for(let b in h)if(!(b==="key"||b==="label"||b==="action")){let w={instancePath:r+"/groups/"+u+"/items/"+y,schemaPath:"#/properties/groups/items/properties/items/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"};e===null?e=[w]:e.push(w),o++}if(h.key!==void 0){let b=h.key;if(typeof b=="string"){if(!G.test(b)){let w={instancePath:r+"/groups/"+u+"/items/"+y+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[w]:e.push(w),o++}}else{let w={instancePath:r+"/groups/"+u+"/items/"+y+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[w]:e.push(w),o++}}h.label!==void 0&&(g(h.label,{instancePath:r+"/groups/"+u+"/items/"+y+"/label",parentData:h,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),h.action!==void 0&&(W(h.action,{instancePath:r+"/groups/"+u+"/items/"+y+"/action",parentData:h,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length))}else{let b={instancePath:r+"/groups/"+u+"/items/"+y,schemaPath:"#/properties/groups/items/properties/items/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[b]:e.push(b),o++}}}else{let x={instancePath:r+"/groups/"+u+"/items",schemaPath:"#/properties/groups/items/properties/items/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[x]:e.push(x),o++}}}else{let m={instancePath:r+"/groups/"+u,schemaPath:"#/properties/groups/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/groups",schemaPath:"#/properties/groups/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}if(t.legal!==void 0&&(g(t.legal,{instancePath:r+"/legal",parentData:t,parentDataProperty:"legal",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.aside!==void 0){let a=t.aside;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/aside",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/aside",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Ct.errors=e,o===0}Ct.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Ks={type:"object",description:"Collects inputs and submits them together.",required:["id","component","children","submit"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Form"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList"},submit:{$ref:"#/$defs/ActionSpec"},cancel:{$ref:"#/$defs/ActionSpec",description:"Optional; defaults to ui.dismiss when omitted and the surface is dismissible"},aside:{$ref:"#/$defs/Id",description:"Optional summary (DetailList, Card or Group) kept beside the form, e.g. the running total"},layout:{enum:["stacked","horizontal"],default:"stacked",description:"'horizontal' puts label and help on the left and the control on the right (settings pages), on wide surfaces"}},additionalProperties:!1};function qt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=qt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.children===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};e===null?e=[a]:e.push(a),o++}if(t.submit===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"submit"},message:"must have required property 'submit'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Ks.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Form"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Form"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length)),t.submit!==void 0&&(ce(t.submit,{instancePath:r+"/submit",parentData:t,parentDataProperty:"submit",rootData:n,dynamicAnchors:d})||(e=e===null?ce.errors:e.concat(ce.errors),o=e.length)),t.cancel!==void 0&&(ce(t.cancel,{instancePath:r+"/cancel",parentData:t,parentDataProperty:"cancel",rootData:n,dynamicAnchors:d})||(e=e===null?ce.errors:e.concat(ce.errors),o=e.length)),t.aside!==void 0){let a=t.aside;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/aside",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/aside",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.layout!==void 0){let a=t.layout;if(!(a==="stacked"||a==="horizontal")){let i={instancePath:r+"/layout",schemaPath:"#/properties/layout/enum",keyword:"enum",params:{allowedValues:Ks.properties.layout.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return qt.errors=e,o===0}qt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Ws={type:"object",description:"The product's frame: the regions around its screens (header, navigation, main, aside, footer, banner), with an outlet where screens and generated surfaces appear.",required:["id","component","main"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Frame"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},header:{$ref:"#/$defs/Id",description:"An AppBar"},navigation:{$ref:"#/$defs/Id",description:"A Navigation of kind 'main'; its placement decides rail, bar, drawer or side"},main:{$ref:"#/$defs/Id",description:"The outlet: a component the host replaces with the current screen. Usually an Outlet; may be a Group holding a fixed screen"},aside:{$ref:"#/$defs/Id",description:"A secondary column beside main on wide layouts (help, context, activity)"},footer:{$ref:"#/$defs/Id",description:"A Footer"},banner:{$ref:"#/$defs/Id",description:"A Status shown above everything (a phase banner, an outage, a trial ending)"},skipTarget:{type:"boolean",default:!0,description:"The renderer adds a skip link to main"},width:{enum:["full","contained"],default:"contained",description:"'contained' centres main at measure.max \xD7 1.6; 'full' lets dense tools use the whole viewport"}},additionalProperties:!1};function Dt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Dt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.main===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"main"},message:"must have required property 'main'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Ws.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Frame"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Frame"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.header!==void 0){let a=t.header;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/header",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/header",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.navigation!==void 0){let a=t.navigation;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/navigation",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/navigation",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.main!==void 0){let a=t.main;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/main",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/main",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.aside!==void 0){let a=t.aside;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/aside",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/aside",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.footer!==void 0){let a=t.footer;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/footer",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/footer",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.banner!==void 0){let a=t.banner;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/banner",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/banner",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.skipTarget!==void 0&&typeof t.skipTarget!="boolean"){let a={instancePath:r+"/skipTarget",schemaPath:"#/properties/skipTarget/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}if(t.width!==void 0){let a=t.width;if(!(a==="full"||a==="contained")){let i={instancePath:r+"/width",schemaPath:"#/properties/width/enum",keyword:"enum",params:{allowedValues:Ws.properties.width.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Dt.errors=e,o===0}Dt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var gd={type:"object",description:"Visually groups closely related items without a heading (proximity).",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Group"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList"},label:{$ref:"#/$defs/DynamicString",description:"Accessible name for the group when it isn't obvious from its content"},arrangement:{enum:["auto","inline","grid"],default:"auto",description:"Hint only. 'inline' for a few short peers (e.g. metrics); renderers stack on narrow screens."}},additionalProperties:!1};function Tt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Tt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.children===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="id"||a==="component"||a==="key"||a==="accessibility"||a==="visible"||a==="children"||a==="label"||a==="arrangement")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Group"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Group"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.arrangement!==void 0){let a=t.arrangement;if(!(a==="auto"||a==="inline"||a==="grid")){let i={instancePath:r+"/arrangement",schemaPath:"#/properties/arrangement/enum",keyword:"enum",params:{allowedValues:gd.properties.arrangement.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Tt.errors=e,o===0}Tt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Jo={type:"object",description:"A person, team or organisation: picture, name and details, or several of them together.",required:["id","component","name"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Identity"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},name:{$ref:"#/$defs/DynamicString",description:"Always bound to host data: a name is never invented"},detail:{$ref:"#/$defs/DynamicString",description:"One line under the name: a role, an email, a team, a status"},image:{$ref:"#/$defs/DynamicString",description:"A media reference from host data, resolved by the host as Media's is; initials from the name are shown without one"},kind:{enum:["person","team","organization"],default:"person",description:"A person's picture is round; a team's or organisation's is square"},size:{enum:["small","default","large"],default:"default"},action:{$ref:"#/$defs/Action",description:"Activating the identity as a whole, e.g. open the person's record"},group:{type:"object",required:["path","namePath"],properties:{path:{$ref:"#/$defs/Path",description:"A list of people in host data, shown as overlapping pictures with a '+N' for the rest"},namePath:{$ref:"#/$defs/Path",description:"Relative to each entry"},imagePath:{$ref:"#/$defs/Path",description:"Relative to each entry"},max:{type:"integer",minimum:1,maximum:8,default:4,description:"Pictures shown before '+N'"}},additionalProperties:!1,description:"Several identities as one element ('Rhea, Tom and 3 others'). name is then the group's accessible summary"}},additionalProperties:!1};function Nt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Nt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.name===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Jo.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Identity"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Identity"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.name!==void 0&&(g(t.name,{instancePath:r+"/name",parentData:t,parentDataProperty:"name",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.detail!==void 0&&(g(t.detail,{instancePath:r+"/detail",parentData:t,parentDataProperty:"detail",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.image!==void 0&&(g(t.image,{instancePath:r+"/image",parentData:t,parentDataProperty:"image",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.kind!==void 0){let a=t.kind;if(!(a==="person"||a==="team"||a==="organization")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Jo.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.size!==void 0){let a=t.size;if(!(a==="small"||a==="default"||a==="large")){let i={instancePath:r+"/size",schemaPath:"#/properties/size/enum",keyword:"enum",params:{allowedValues:Jo.properties.size.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.action!==void 0&&(W(t.action,{instancePath:r+"/action",parentData:t,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length)),t.group!==void 0){let a=t.group;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.path===void 0){let i={instancePath:r+"/group",schemaPath:"#/properties/group/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};e===null?e=[i]:e.push(i),o++}if(a.namePath===void 0){let i={instancePath:r+"/group",schemaPath:"#/properties/group/required",keyword:"required",params:{missingProperty:"namePath"},message:"must have required property 'namePath'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!(i==="path"||i==="namePath"||i==="imagePath"||i==="max")){let u={instancePath:r+"/group",schemaPath:"#/properties/group/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}if(a.path!==void 0){let i=a.path;if(typeof i=="string"){if(!ae.test(i)){let u={instancePath:r+"/group/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/group/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[u]:e.push(u),o++}}if(a.namePath!==void 0){let i=a.namePath;if(typeof i=="string"){if(!ae.test(i)){let u={instancePath:r+"/group/namePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/group/namePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[u]:e.push(u),o++}}if(a.imagePath!==void 0){let i=a.imagePath;if(typeof i=="string"){if(!ae.test(i)){let u={instancePath:r+"/group/imagePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/group/imagePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[u]:e.push(u),o++}}if(a.max!==void 0){let i=a.max;if(!(typeof i=="number"&&!(i%1)&&!isNaN(i))){let u={instancePath:r+"/group/max",schemaPath:"#/properties/group/properties/max/type",keyword:"type",params:{type:"integer"},message:"must be integer"};e===null?e=[u]:e.push(u),o++}if(typeof i=="number"){if(i>8||isNaN(i)){let u={instancePath:r+"/group/max",schemaPath:"#/properties/group/properties/max/maximum",keyword:"maximum",params:{comparison:"<=",limit:8},message:"must be <= 8"};e===null?e=[u]:e.push(u),o++}if(i<1||isNaN(i)){let u={instancePath:r+"/group/max",schemaPath:"#/properties/group/properties/max/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};e===null?e=[u]:e.push(u),o++}}}}else{let i={instancePath:r+"/group",schemaPath:"#/properties/group/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Nt.errors=e,o===0}Nt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Xo={type:"object",description:"An image, video, audio clip, gallery or QR code supplied by the host.",required:["id","component"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Media"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},src:{$ref:"#/$defs/Binding",description:"Image, video or audio reference in host data; generated UI never contains URLs"},alt:{$ref:"#/$defs/DynamicString",description:"Required unless decorative. For a gallery it names the set; for a QR code it says what the code opens"},decorative:{type:"boolean",default:!1},aspect:{enum:["square","landscape","portrait","auto"],default:"auto"},kind:{enum:["image","video","audio","gallery","qr"],default:"image",description:"'video' and 'audio' play with native controls; 'gallery' is several images from 'items'; 'qr' encodes 'value' as a QR code"},poster:{$ref:"#/$defs/DynamicString",description:"For 'video': media reference for the frame shown before play"},transcript:{$ref:"#/$defs/DynamicString",description:"For 'video' and 'audio': the words, offered under the player"},items:{$ref:"#/$defs/Binding",description:"For 'gallery': array of images in host data"},imagePath:{$ref:"#/$defs/Path",description:"For 'gallery': relative path in each item to its image reference"},altPath:{$ref:"#/$defs/Path",description:"For 'gallery': relative path in each item to its alt text"},value:{$ref:"#/$defs/DynamicString",description:"For 'qr': the text encoded, e.g. a payment link from host data"}},additionalProperties:!1};function Et(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Et.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Xo.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Media"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Media"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.src!==void 0&&(T(t.src,{instancePath:r+"/src",parentData:t,parentDataProperty:"src",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.alt!==void 0&&(g(t.alt,{instancePath:r+"/alt",parentData:t,parentDataProperty:"alt",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.decorative!==void 0&&typeof t.decorative!="boolean"){let a={instancePath:r+"/decorative",schemaPath:"#/properties/decorative/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}if(t.aspect!==void 0){let a=t.aspect;if(!(a==="square"||a==="landscape"||a==="portrait"||a==="auto")){let i={instancePath:r+"/aspect",schemaPath:"#/properties/aspect/enum",keyword:"enum",params:{allowedValues:Xo.properties.aspect.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.kind!==void 0){let a=t.kind;if(!(a==="image"||a==="video"||a==="audio"||a==="gallery"||a==="qr")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Xo.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.poster!==void 0&&(g(t.poster,{instancePath:r+"/poster",parentData:t,parentDataProperty:"poster",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.transcript!==void 0&&(g(t.transcript,{instancePath:r+"/transcript",parentData:t,parentDataProperty:"transcript",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.items!==void 0&&(T(t.items,{instancePath:r+"/items",parentData:t,parentDataProperty:"items",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.imagePath!==void 0){let a=t.imagePath;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/imagePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/imagePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.altPath!==void 0){let a=t.altPath;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/altPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/altPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}t.value!==void 0&&(g(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Et.errors=e,o===0}Et.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Gs={type:"object",description:"A key figure with a label, and optionally its change.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Metric"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Always bound to host data"},format:{$ref:"#/$defs/Format"},change:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding"},format:{$ref:"#/$defs/Format"},favorable:{enum:["increase","decrease","none"],default:"increase",description:"Which direction is good, so color follows meaning, not sign"}},additionalProperties:!1},caption:{$ref:"#/$defs/DynamicString"}},additionalProperties:!1};function Mt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Mt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Gs.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Metric"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Metric"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(T(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.format!==void 0&&(ee(t.format,{instancePath:r+"/format",parentData:t,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length)),t.change!==void 0){let a=t.change;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.value===void 0){let i={instancePath:r+"/change",schemaPath:"#/properties/change/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!(i==="value"||i==="format"||i==="favorable")){let u={instancePath:r+"/change",schemaPath:"#/properties/change/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}if(a.value!==void 0&&(T(a.value,{instancePath:r+"/change/value",parentData:a,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),a.format!==void 0&&(ee(a.format,{instancePath:r+"/change/format",parentData:a,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length)),a.favorable!==void 0){let i=a.favorable;if(!(i==="increase"||i==="decrease"||i==="none")){let u={instancePath:r+"/change/favorable",schemaPath:"#/properties/change/properties/favorable/enum",keyword:"enum",params:{allowedValues:Gs.properties.change.properties.favorable.enum},message:"must be equal to one of the allowed values"};e===null?e=[u]:e.push(u),o++}}}else{let i={instancePath:r+"/change",schemaPath:"#/properties/change/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}t.caption!==void 0&&(g(t.caption,{instancePath:r+"/caption",parentData:t,parentDataProperty:"caption",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Mt.errors=e,o===0}Mt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Rr={type:"object",description:"The product's main navigation.",required:["id","component","items","current"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Navigation"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Names the navigation, e.g. 'Main'"},items:{type:"array",minItems:2,maxItems:20,items:{type:"object",required:["key","label","action"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},group:{$ref:"#/$defs/DynamicString",description:"Heading that groups items (e.g. 'Billing')"},icon:{enum:["home","search","inbox","book","tag","clock","shield","lock","mail","settings","chart","people","card","file","orders","products","customers","discounts","analytics","calendar","bell","help","folder","star","grid","layers"]},badge:{$ref:"#/$defs/Binding",description:"Count needing attention, e.g. overdue invoices"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1}},current:{$ref:"#/$defs/Binding",description:"Key of the current item in host data"},kind:{enum:["main","breadcrumb","nested","toc","local"],default:"main",description:"'main' is the product's sections; 'breadcrumb' the ordered trail to here; 'nested' groups that expand; 'toc' the sections of this page (items link to anchors named by their keys); 'local' the sections of one area, as tabs"},placement:{enum:["auto","side","rail","bar","drawer"],default:"auto",description:"For kind 'main' inside a Frame: where it lives. 'auto' is a side column on wide layouts, a rail on medium and a bottom bar (\u2264 5 items) or a drawer on compact; the others fix it"}},additionalProperties:!1};function jt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=jt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.items===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};e===null?e=[a]:e.push(a),o++}if(t.current===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"current"},message:"must have required property 'current'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Rr.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Navigation"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Navigation"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.items!==void 0){let a=t.items;if(Array.isArray(a)){if(a.length>20){let u={instancePath:r+"/items",schemaPath:"#/properties/items/maxItems",keyword:"maxItems",params:{limit:20},message:"must NOT have more than 20 items"};e===null?e=[u]:e.push(u),o++}if(a.length<2){let u={instancePath:r+"/items",schemaPath:"#/properties/items/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.key===void 0){let m={instancePath:r+"/items/"+u,schemaPath:"#/properties/items/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};e===null?e=[m]:e.push(m),o++}if(f.label===void 0){let m={instancePath:r+"/items/"+u,schemaPath:"#/properties/items/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[m]:e.push(m),o++}if(f.action===void 0){let m={instancePath:r+"/items/"+u,schemaPath:"#/properties/items/items/required",keyword:"required",params:{missingProperty:"action"},message:"must have required property 'action'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!(m==="key"||m==="label"||m==="group"||m==="icon"||m==="badge"||m==="action")){let x={instancePath:r+"/items/"+u,schemaPath:"#/properties/items/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.key!==void 0){let m=f.key;if(typeof m=="string"){if(!G.test(m)){let x={instancePath:r+"/items/"+u+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/items/"+u+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.label!==void 0&&(g(f.label,{instancePath:r+"/items/"+u+"/label",parentData:f,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.group!==void 0&&(g(f.group,{instancePath:r+"/items/"+u+"/group",parentData:f,parentDataProperty:"group",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.icon!==void 0){let m=f.icon;if(!(m==="home"||m==="search"||m==="inbox"||m==="book"||m==="tag"||m==="clock"||m==="shield"||m==="lock"||m==="mail"||m==="settings"||m==="chart"||m==="people"||m==="card"||m==="file"||m==="orders"||m==="products"||m==="customers"||m==="discounts"||m==="analytics"||m==="calendar"||m==="bell"||m==="help"||m==="folder"||m==="star"||m==="grid"||m==="layers")){let x={instancePath:r+"/items/"+u+"/icon",schemaPath:"#/properties/items/items/properties/icon/enum",keyword:"enum",params:{allowedValues:Rr.properties.items.items.properties.icon.enum},message:"must be equal to one of the allowed values"};e===null?e=[x]:e.push(x),o++}}f.badge!==void 0&&(T(f.badge,{instancePath:r+"/items/"+u+"/badge",parentData:f,parentDataProperty:"badge",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),f.action!==void 0&&(W(f.action,{instancePath:r+"/items/"+u+"/action",parentData:f,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length))}else{let m={instancePath:r+"/items/"+u,schemaPath:"#/properties/items/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}if(t.current!==void 0&&(T(t.current,{instancePath:r+"/current",parentData:t,parentDataProperty:"current",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.kind!==void 0){let a=t.kind;if(!(a==="main"||a==="breadcrumb"||a==="nested"||a==="toc"||a==="local")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Rr.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.placement!==void 0){let a=t.placement;if(!(a==="auto"||a==="side"||a==="rail"||a==="bar"||a==="drawer")){let i={instancePath:r+"/placement",schemaPath:"#/properties/placement/enum",keyword:"enum",params:{allowedValues:Rr.properties.placement.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return jt.errors=e,o===0}jt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Rt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Rt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="id"||a==="component"||a==="key"||a==="accessibility"||a==="visible"||a==="label"||a==="loading")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Outlet"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Outlet"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.loading!==void 0){let a=t.loading;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/loading",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/loading",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Rt.errors=e,o===0}Rt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Qo={type:"object",description:"Content over the current view: a dialog, a drawer, a bottom sheet or a popover, opened from an action and dismissed to return.",required:["id","component","title","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Panel"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},kind:{enum:["dialog","drawer","sheet","popover"],default:"dialog",description:"'dialog' centres and blocks; 'drawer' slides from the side for a form or a record; 'sheet' rises from the bottom on phones; 'popover' floats by its opener for a small choice"},title:{$ref:"#/$defs/DynamicString"},children:{$ref:"#/$defs/ChildList",description:"What the panel holds"},actions:{$ref:"#/$defs/Id",description:"An ActionBar in the panel's footer: its primary action and a Cancel"},open:{$ref:"#/$defs/DynamicBoolean",description:"Bound to host data: true shows the panel; the renderer writes false on dismiss. Open when absent"},dismissible:{type:"boolean",default:!0,description:"Escape, the close control and the backdrop dismiss it; false for a panel that must be completed"},size:{enum:["small","default","large"],default:"default"}},additionalProperties:!1};function Bt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Bt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.title===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[a]:e.push(a),o++}if(t.children===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Qo.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Panel"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Panel"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.kind!==void 0){let a=t.kind;if(!(a==="dialog"||a==="drawer"||a==="sheet"||a==="popover")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Qo.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.title!==void 0&&(g(t.title,{instancePath:r+"/title",parentData:t,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length)),t.actions!==void 0){let a=t.actions;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/actions",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/actions",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.open!==void 0&&(I(t.open,{instancePath:r+"/open",parentData:t,parentDataProperty:"open",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.dismissible!==void 0&&typeof t.dismissible!="boolean"){let a={instancePath:r+"/dismissible",schemaPath:"#/properties/dismissible/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}if(t.size!==void 0){let a=t.size;if(!(a==="small"||a==="default"||a==="large")){let i={instancePath:r+"/size",schemaPath:"#/properties/size/enum",keyword:"enum",params:{allowedValues:Qo.properties.size.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Bt.errors=e,o===0}Bt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Ys={type:"object",description:"How far along something is, or how much of a bounded amount is used: a bar, a ring or a meter.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Progress"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What is being measured: 'Storage used', 'Upload', 'Goal'"},value:{$ref:"#/$defs/DynamicNumber",description:"Bound to host data. A fraction from 0 to 1, or an amount when max is given"},max:{$ref:"#/$defs/DynamicNumber",description:"The whole, when value is an amount rather than a fraction: 200 for '180 of 200 GB'"},kind:{enum:["bar","ring","meter"],default:"bar",description:"'bar' and 'ring' show progress towards done; 'meter' shows a measured amount within bounds, with tone by threshold"},caption:{$ref:"#/$defs/DynamicString",description:"Text beside the readout: '180 of 200 GB', '3 days left'. The readout itself is derived from value"},format:{$ref:"#/$defs/Format",description:"How the readout is shown; percent without it"},tone:{$ref:"#/$defs/Tone",description:"Fixed tone; a meter without one takes warning past thresholds.warning and danger past thresholds.danger"},thresholds:{type:"object",properties:{warning:{type:"number",minimum:0,maximum:1},danger:{type:"number",minimum:0,maximum:1}},additionalProperties:!1,description:"Fractions at which a meter changes tone"},indeterminate:{$ref:"#/$defs/DynamicBoolean",description:"The task is running and how far along isn't known"}},additionalProperties:!1};function me(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=me.evaluated;c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0);let a=o,i=!1,u=null,f=o;if(typeof t!="number"){let h={instancePath:r,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"number"},message:"must be number"};e===null?e=[h]:e.push(h),o++}var x=f===o;x&&(i=!0,u=0);let m=o;T(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length);var x=m===o;if(x&&i)i=!1,u=[u,1];else if(x){i=!0,u=1;var y=!0}if(i)o=a,e!==null&&(a?e.length=a:e=null);else{let h={instancePath:r,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:u},message:"must match exactly one schema in oneOf"};e===null?e=[h]:e.push(h),o++}return me.errors=e,c.props=y,o===0}me.evaluated={dynamicProps:!0,dynamicItems:!1};function _t(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=_t.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Ys.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Progress"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Progress"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(me(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?me.errors:e.concat(me.errors),o=e.length)),t.max!==void 0&&(me(t.max,{instancePath:r+"/max",parentData:t,parentDataProperty:"max",rootData:n,dynamicAnchors:d})||(e=e===null?me.errors:e.concat(me.errors),o=e.length)),t.kind!==void 0){let a=t.kind;if(!(a==="bar"||a==="ring"||a==="meter")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Ys.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.caption!==void 0&&(g(t.caption,{instancePath:r+"/caption",parentData:t,parentDataProperty:"caption",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.format!==void 0&&(ee(t.format,{instancePath:r+"/format",parentData:t,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length)),t.tone!==void 0){let a=t.tone;if(!(a==="neutral"||a==="info"||a==="success"||a==="warning"||a==="danger")){let i={instancePath:r+"/tone",schemaPath:"#/$defs/Tone/enum",keyword:"enum",params:{allowedValues:ur.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.thresholds!==void 0){let a=t.thresholds;if(a&&typeof a=="object"&&!Array.isArray(a)){for(let i in a)if(!(i==="warning"||i==="danger")){let u={instancePath:r+"/thresholds",schemaPath:"#/properties/thresholds/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}if(a.warning!==void 0){let i=a.warning;if(typeof i=="number"){if(i>1||isNaN(i)){let u={instancePath:r+"/thresholds/warning",schemaPath:"#/properties/thresholds/properties/warning/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1"};e===null?e=[u]:e.push(u),o++}if(i<0||isNaN(i)){let u={instancePath:r+"/thresholds/warning",schemaPath:"#/properties/thresholds/properties/warning/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/thresholds/warning",schemaPath:"#/properties/thresholds/properties/warning/type",keyword:"type",params:{type:"number"},message:"must be number"};e===null?e=[u]:e.push(u),o++}}if(a.danger!==void 0){let i=a.danger;if(typeof i=="number"){if(i>1||isNaN(i)){let u={instancePath:r+"/thresholds/danger",schemaPath:"#/properties/thresholds/properties/danger/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1"};e===null?e=[u]:e.push(u),o++}if(i<0||isNaN(i)){let u={instancePath:r+"/thresholds/danger",schemaPath:"#/properties/thresholds/properties/danger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/thresholds/danger",schemaPath:"#/properties/thresholds/properties/danger/type",keyword:"type",params:{type:"number"},message:"must be number"};e===null?e=[u]:e.push(u),o++}}}else{let i={instancePath:r+"/thresholds",schemaPath:"#/properties/thresholds/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}t.indeterminate!==void 0&&(I(t.indeterminate,{instancePath:r+"/indeterminate",parentData:t,parentDataProperty:"indeterminate",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return _t.errors=e,o===0}_t.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Js={type:"object",description:"A number, or a range between two numbers, within known bounds.",required:["id","component","label","value","min","max"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"RangeInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Number in host data, or [min, max] when mode is 'range'"},min:{type:"number"},max:{type:"number"},step:{type:"number",exclusiveMinimum:0},format:{$ref:"#/$defs/Format"},mode:{enum:["single","range"],default:"single",description:"'range' picks a lower and upper bound; value is then [min, max]"}},additionalProperties:!1};function Ht(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Ht.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}if(t.min===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"min"},message:"must have required property 'min'"};e===null?e=[a]:e.push(a),o++}if(t.max===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"max"},message:"must have required property 'max'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Js.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="RangeInput"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"RangeInput"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(T(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.min!==void 0&&typeof t.min!="number"){let a={instancePath:r+"/min",schemaPath:"#/properties/min/type",keyword:"type",params:{type:"number"},message:"must be number"};e===null?e=[a]:e.push(a),o++}if(t.max!==void 0&&typeof t.max!="number"){let a={instancePath:r+"/max",schemaPath:"#/properties/max/type",keyword:"type",params:{type:"number"},message:"must be number"};e===null?e=[a]:e.push(a),o++}if(t.step!==void 0){let a=t.step;if(typeof a=="number"){if(a<=0||isNaN(a)){let i={instancePath:r+"/step",schemaPath:"#/properties/step/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0"};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/step",schemaPath:"#/properties/step/type",keyword:"type",params:{type:"number"},message:"must be number"};e===null?e=[i]:e.push(i),o++}}if(t.format!==void 0&&(ee(t.format,{instancePath:r+"/format",parentData:t,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length)),t.mode!==void 0){let a=t.mode;if(!(a==="single"||a==="range")){let i={instancePath:r+"/mode",schemaPath:"#/properties/mode/enum",keyword:"enum",params:{allowedValues:Js.properties.mode.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Ht.errors=e,o===0}Ht.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var yd={type:"object",description:"A score out of N: given by the person, or shown as others gave it.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Rating"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What is rated: 'Your rating', 'Average rating'"},value:{$ref:"#/$defs/Binding",description:"The score in host data; written when the person can rate"},max:{type:"integer",minimum:2,maximum:10,default:5},readOnly:{$ref:"#/$defs/DynamicBoolean",default:!1,description:"Show a score rather than take one"},count:{$ref:"#/$defs/DynamicNumber",description:"How many ratings the score is from, shown after it: '4.6 (212)'"},help:{$ref:"#/$defs/DynamicString"},required:{$ref:"#/$defs/DynamicBoolean",default:!1},action:{$ref:"#/$defs/Action",description:"Runs when a rating is given, with context bound to value"}},additionalProperties:!1};function Ft(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Ft.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(yd.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Rating"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Rating"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(T(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.max!==void 0){let a=t.max;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a))){let i={instancePath:r+"/max",schemaPath:"#/properties/max/type",keyword:"type",params:{type:"integer"},message:"must be integer"};e===null?e=[i]:e.push(i),o++}if(typeof a=="number"){if(a>10||isNaN(a)){let i={instancePath:r+"/max",schemaPath:"#/properties/max/maximum",keyword:"maximum",params:{comparison:"<=",limit:10},message:"must be <= 10"};e===null?e=[i]:e.push(i),o++}if(a<2||isNaN(a)){let i={instancePath:r+"/max",schemaPath:"#/properties/max/minimum",keyword:"minimum",params:{comparison:">=",limit:2},message:"must be >= 2"};e===null?e=[i]:e.push(i),o++}}}t.readOnly!==void 0&&(I(t.readOnly,{instancePath:r+"/readOnly",parentData:t,parentDataProperty:"readOnly",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.count!==void 0&&(me(t.count,{instancePath:r+"/count",parentData:t,parentDataProperty:"count",rootData:n,dynamicAnchors:d})||(e=e===null?me.errors:e.concat(me.errors),o=e.length)),t.help!==void 0&&(g(t.help,{instancePath:r+"/help",parentData:t,parentDataProperty:"help",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.required!==void 0&&(I(t.required,{instancePath:r+"/required",parentData:t,parentDataProperty:"required",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.action!==void 0&&(W(t.action,{instancePath:r+"/action",parentData:t,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Ft.errors=e,o===0}Ft.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Ut(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Ut.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.title===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[a]:e.push(a),o++}if(t.children===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="id"||a==="component"||a==="key"||a==="accessibility"||a==="visible"||a==="title"||a==="description"||a==="children")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Section"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Section"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.title!==void 0&&(g(t.title,{instancePath:r+"/title",parentData:t,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.description!==void 0&&(g(t.description,{instancePath:r+"/description",parentData:t,parentDataProperty:"description",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.children!==void 0&&(re(t.children,{instancePath:r+"/children",parentData:t,parentDataProperty:"children",rootData:n,dynamicAnchors:d})||(e=e===null?re.errors:e.concat(re.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Ut.errors=e,o===0}Ut.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Xs={type:"object",description:"Master and detail side by side: a list that stays while the chosen item's detail shows beside it; on compact layouts the detail replaces the list.",required:["id","component","primary","detail","selected"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Split"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},primary:{$ref:"#/$defs/Id",description:"The list: a Collection or a Table with selection 'single'"},detail:{$ref:"#/$defs/Id",description:"What shows for the selected item; its bindings resolve against the selected item's scope"},selected:{$ref:"#/$defs/Binding",description:"The selected item's value in host data, shared with the primary's 'selected'"},empty:{$ref:"#/$defs/Id",description:"A Status shown in the detail pane while nothing is selected"},ratio:{enum:["narrow","balanced","wide"],default:"narrow",description:"The list's share: about a third, half, or two thirds"},resizable:{type:"boolean",default:!1}},additionalProperties:!1};function Ot(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Ot.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.primary===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"primary"},message:"must have required property 'primary'"};e===null?e=[a]:e.push(a),o++}if(t.detail===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"detail"},message:"must have required property 'detail'"};e===null?e=[a]:e.push(a),o++}if(t.selected===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"selected"},message:"must have required property 'selected'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Xs.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Split"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Split"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.primary!==void 0){let a=t.primary;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/primary",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/primary",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.detail!==void 0){let a=t.detail;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/detail",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/detail",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.selected!==void 0&&(T(t.selected,{instancePath:r+"/selected",parentData:t,parentDataProperty:"selected",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.empty!==void 0){let a=t.empty;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/empty",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/empty",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.ratio!==void 0){let a=t.ratio;if(!(a==="narrow"||a==="balanced"||a==="wide")){let i={instancePath:r+"/ratio",schemaPath:"#/properties/ratio/enum",keyword:"enum",params:{allowedValues:Xs.properties.ratio.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.resizable!==void 0&&typeof t.resizable!="boolean"){let a={instancePath:r+"/resizable",schemaPath:"#/properties/resizable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Ot.errors=e,o===0}Ot.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Br={type:"object",description:"Feedback about state: info, success, warning, error, empty or loading.",required:["id","component","kind","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Status"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},kind:{enum:["info","success","warning","error","empty","loading","undo"]},title:{$ref:"#/$defs/DynamicString"},message:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Id",description:"Optional Action (or ActionBar for a primary and a secondary) to recover or continue, e.g. 'Try again'; for 'undo', the Undo action"},icon:{enum:["lock","trash","clock","tag","info","alert","mail","shield","search","book","inbox","check"],description:"Optional icon for empty states; the renderer picks one by kind otherwise"},variant:{enum:["default","inline"],default:"default",description:"'inline' is a notice inside a page (a warning above a record) rather than a block of its own"}},additionalProperties:!1};function Vt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Vt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.kind===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"kind"},message:"must have required property 'kind'"};e===null?e=[a]:e.push(a),o++}if(t.title===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Br.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Status"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Status"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.kind!==void 0){let a=t.kind;if(!(a==="info"||a==="success"||a==="warning"||a==="error"||a==="empty"||a==="loading"||a==="undo")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Br.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.title!==void 0&&(g(t.title,{instancePath:r+"/title",parentData:t,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.message!==void 0&&(g(t.message,{instancePath:r+"/message",parentData:t,parentDataProperty:"message",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.action!==void 0){let a=t.action;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/action",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/action",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.icon!==void 0){let a=t.icon;if(!(a==="lock"||a==="trash"||a==="clock"||a==="tag"||a==="info"||a==="alert"||a==="mail"||a==="shield"||a==="search"||a==="book"||a==="inbox"||a==="check")){let i={instancePath:r+"/icon",schemaPath:"#/properties/icon/enum",keyword:"enum",params:{allowedValues:Br.properties.icon.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.variant!==void 0){let a=t.variant;if(!(a==="default"||a==="inline")){let i={instancePath:r+"/variant",schemaPath:"#/properties/variant/enum",keyword:"enum",params:{allowedValues:Br.properties.variant.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Vt.errors=e,o===0}Vt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Qs={type:"object",description:"A task split into ordered steps with visible progress.",required:["id","component","steps","finish"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Steps"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},steps:{type:"array",minItems:2,maxItems:7,items:{type:"object",required:["key","title","content"],properties:{key:{$ref:"#/$defs/Key"},title:{$ref:"#/$defs/DynamicString"},content:{$ref:"#/$defs/Id"},status:{$ref:"#/$defs/DynamicString",description:"For 'tasklist': 'todo', 'inProgress', 'done' or 'blocked', usually bound to host data"}},additionalProperties:!1}},kind:{enum:["wizard","tasklist","guide"],default:"wizard",description:"'wizard' shows one step at a time in order; 'tasklist' lists tasks people do in any order, each with its status; 'guide' is numbered instructions with no state"},current:{$ref:"#/$defs/DynamicNumber",description:"Index of the current step (default 0)"},finish:{$ref:"#/$defs/ActionSpec"}},additionalProperties:!1};function Lt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Lt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.steps===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"steps"},message:"must have required property 'steps'"};e===null?e=[a]:e.push(a),o++}if(t.finish===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"finish"},message:"must have required property 'finish'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(Qs.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Steps"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Steps"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.steps!==void 0){let a=t.steps;if(Array.isArray(a)){if(a.length>7){let u={instancePath:r+"/steps",schemaPath:"#/properties/steps/maxItems",keyword:"maxItems",params:{limit:7},message:"must NOT have more than 7 items"};e===null?e=[u]:e.push(u),o++}if(a.length<2){let u={instancePath:r+"/steps",schemaPath:"#/properties/steps/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.key===void 0){let m={instancePath:r+"/steps/"+u,schemaPath:"#/properties/steps/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};e===null?e=[m]:e.push(m),o++}if(f.title===void 0){let m={instancePath:r+"/steps/"+u,schemaPath:"#/properties/steps/items/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[m]:e.push(m),o++}if(f.content===void 0){let m={instancePath:r+"/steps/"+u,schemaPath:"#/properties/steps/items/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!(m==="key"||m==="title"||m==="content"||m==="status")){let x={instancePath:r+"/steps/"+u,schemaPath:"#/properties/steps/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.key!==void 0){let m=f.key;if(typeof m=="string"){if(!G.test(m)){let x={instancePath:r+"/steps/"+u+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/steps/"+u+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.title!==void 0&&(g(f.title,{instancePath:r+"/steps/"+u+"/title",parentData:f,parentDataProperty:"title",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.content!==void 0){let m=f.content;if(typeof m=="string"){if(!F.test(m)){let x={instancePath:r+"/steps/"+u+"/content",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/steps/"+u+"/content",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}f.status!==void 0&&(g(f.status,{instancePath:r+"/steps/"+u+"/status",parentData:f,parentDataProperty:"status",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let m={instancePath:r+"/steps/"+u,schemaPath:"#/properties/steps/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}if(t.kind!==void 0){let a=t.kind;if(!(a==="wizard"||a==="tasklist"||a==="guide")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Qs.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}t.current!==void 0&&(me(t.current,{instancePath:r+"/current",parentData:t,parentDataProperty:"current",rootData:n,dynamicAnchors:d})||(e=e===null?me.errors:e.concat(me.errors),o=e.length)),t.finish!==void 0&&(ce(t.finish,{instancePath:r+"/finish",parentData:t,parentDataProperty:"finish",rootData:n,dynamicAnchors:d})||(e=e===null?ce.errors:e.concat(ce.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Lt.errors=e,o===0}Lt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var cr={type:"object",description:"Tabular data: many items sharing the same attributes.",required:["id","component","rows","caption","columns"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Table"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},rows:{$ref:"#/$defs/Binding",description:"Array of row objects in host data"},caption:{$ref:"#/$defs/DynamicString",description:"What the table shows (required for accessibility)"},columns:{type:"array",minItems:1,maxItems:8,items:{type:"object",required:["key","label","path"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},path:{$ref:"#/$defs/Path",description:"Relative to the row"},format:{$ref:"#/$defs/Format"},kind:{enum:["text","number","currency","date","status","entity","link"],default:"text",description:"What the cell holds; drives alignment, tabular figures and status tags"},align:{enum:["start","end"],description:"Overrides the alignment the kind implies"},tones:{type:"object",additionalProperties:{$ref:"#/$defs/Tone"},description:`For 'status': value \u2192 tone, e.g. {"Past due": "danger"}`},sortable:{type:"boolean",description:"Whether people can sort by this column"},avatarPath:{$ref:"#/$defs/Path",description:"For 'entity': relative path to the picture or initials"},secondaryPath:{$ref:"#/$defs/Path",description:"For 'entity': a second line, e.g. an email address"}},additionalProperties:!1}},rowAction:{$ref:"#/$defs/Action",description:"Activated per row; context bindings resolve against the row"},empty:{$ref:"#/$defs/Id",description:"Status component shown when there are no rows"},sort:{type:"object",required:["column"],properties:{column:{$ref:"#/$defs/Binding",description:"Key of the sorted column in host data"},direction:{$ref:"#/$defs/Binding",description:"'ascending' or 'descending' in host data"},action:{$ref:"#/$defs/Action",description:"Sent when someone sorts, so the host can re-query"}},additionalProperties:!1,description:"Sorting state, owned by the host"},selection:{enum:["none","multiple"],default:"none",description:"'multiple' adds a checkbox column and a select-all"},selected:{$ref:"#/$defs/Binding",description:"Array of selected row values in host data"},rowValuePath:{$ref:"#/$defs/Path",description:"Relative path to each row's id, used for selection"},bulkActions:{$ref:"#/$defs/Id",description:"ActionBar shown instead of the toolbar while rows are selected"},rowActions:{$ref:"#/$defs/Id",description:"ActionBar offered per row, in a menu named after the row"},expandable:{type:"boolean",default:!1,description:"Rows open to show 'detail' beneath them"},detail:{$ref:"#/$defs/Id",description:"Component rendered under an expanded row; relative paths inside it resolve against the row"},toolbar:{$ref:"#/$defs/Id",description:"ActionBar above the table (e.g. New, Import, Export)"},search:{$ref:"#/$defs/Id",description:"TextInput (kind 'search') above the table"},views:{type:"array",minItems:2,maxItems:8,items:{type:"object",required:["key","label"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},count:{$ref:"#/$defs/Binding"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},description:"Saved views (All, Mine, Past due\u2026), shown as tabs with counts"},view:{$ref:"#/$defs/Binding",description:"Key of the selected saved view in host data"},page:{type:"object",properties:{index:{$ref:"#/$defs/Binding",description:"1-based page number in host data"},size:{$ref:"#/$defs/Binding"},total:{$ref:"#/$defs/Binding",description:"Total number of rows, all pages"},action:{$ref:"#/$defs/Action",description:"Sent when someone changes page or page size"}},additionalProperties:!1,description:"Paging state, owned by the host"}},additionalProperties:!1};function Zt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Zt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.rows===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rows"},message:"must have required property 'rows'"};e===null?e=[a]:e.push(a),o++}if(t.caption===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"caption"},message:"must have required property 'caption'"};e===null?e=[a]:e.push(a),o++}if(t.columns===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columns"},message:"must have required property 'columns'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(cr.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Table"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Table"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.rows!==void 0&&(T(t.rows,{instancePath:r+"/rows",parentData:t,parentDataProperty:"rows",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.caption!==void 0&&(g(t.caption,{instancePath:r+"/caption",parentData:t,parentDataProperty:"caption",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.columns!==void 0){let a=t.columns;if(Array.isArray(a)){if(a.length>8){let u={instancePath:r+"/columns",schemaPath:"#/properties/columns/maxItems",keyword:"maxItems",params:{limit:8},message:"must NOT have more than 8 items"};e===null?e=[u]:e.push(u),o++}if(a.length<1){let u={instancePath:r+"/columns",schemaPath:"#/properties/columns/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.key===void 0){let m={instancePath:r+"/columns/"+u,schemaPath:"#/properties/columns/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};e===null?e=[m]:e.push(m),o++}if(f.label===void 0){let m={instancePath:r+"/columns/"+u,schemaPath:"#/properties/columns/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[m]:e.push(m),o++}if(f.path===void 0){let m={instancePath:r+"/columns/"+u,schemaPath:"#/properties/columns/items/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!Q.call(cr.properties.columns.items.properties,m)){let x={instancePath:r+"/columns/"+u,schemaPath:"#/properties/columns/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.key!==void 0){let m=f.key;if(typeof m=="string"){if(!G.test(m)){let x={instancePath:r+"/columns/"+u+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/columns/"+u+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.label!==void 0&&(g(f.label,{instancePath:r+"/columns/"+u+"/label",parentData:f,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.path!==void 0){let m=f.path;if(typeof m=="string"){if(!ae.test(m)){let x={instancePath:r+"/columns/"+u+"/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/columns/"+u+"/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.format!==void 0&&(ee(f.format,{instancePath:r+"/columns/"+u+"/format",parentData:f,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length)),f.kind!==void 0){let m=f.kind;if(!(m==="text"||m==="number"||m==="currency"||m==="date"||m==="status"||m==="entity"||m==="link")){let x={instancePath:r+"/columns/"+u+"/kind",schemaPath:"#/properties/columns/items/properties/kind/enum",keyword:"enum",params:{allowedValues:cr.properties.columns.items.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[x]:e.push(x),o++}}if(f.align!==void 0){let m=f.align;if(!(m==="start"||m==="end")){let x={instancePath:r+"/columns/"+u+"/align",schemaPath:"#/properties/columns/items/properties/align/enum",keyword:"enum",params:{allowedValues:cr.properties.columns.items.properties.align.enum},message:"must be equal to one of the allowed values"};e===null?e=[x]:e.push(x),o++}}if(f.tones!==void 0){let m=f.tones;if(m&&typeof m=="object"&&!Array.isArray(m))for(let x in m){let y=m[x];if(!(y==="neutral"||y==="info"||y==="success"||y==="warning"||y==="danger")){let h={instancePath:r+"/columns/"+u+"/tones/"+x.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Tone/enum",keyword:"enum",params:{allowedValues:ur.enum},message:"must be equal to one of the allowed values"};e===null?e=[h]:e.push(h),o++}}else{let x={instancePath:r+"/columns/"+u+"/tones",schemaPath:"#/properties/columns/items/properties/tones/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[x]:e.push(x),o++}}if(f.sortable!==void 0&&typeof f.sortable!="boolean"){let m={instancePath:r+"/columns/"+u+"/sortable",schemaPath:"#/properties/columns/items/properties/sortable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[m]:e.push(m),o++}if(f.avatarPath!==void 0){let m=f.avatarPath;if(typeof m=="string"){if(!ae.test(m)){let x={instancePath:r+"/columns/"+u+"/avatarPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/columns/"+u+"/avatarPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.secondaryPath!==void 0){let m=f.secondaryPath;if(typeof m=="string"){if(!ae.test(m)){let x={instancePath:r+"/columns/"+u+"/secondaryPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/columns/"+u+"/secondaryPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}}else{let m={instancePath:r+"/columns/"+u,schemaPath:"#/properties/columns/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/columns",schemaPath:"#/properties/columns/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}if(t.rowAction!==void 0&&(W(t.rowAction,{instancePath:r+"/rowAction",parentData:t,parentDataProperty:"rowAction",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length)),t.empty!==void 0){let a=t.empty;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/empty",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/empty",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.sort!==void 0){let a=t.sort;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.column===void 0){let i={instancePath:r+"/sort",schemaPath:"#/properties/sort/required",keyword:"required",params:{missingProperty:"column"},message:"must have required property 'column'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!(i==="column"||i==="direction"||i==="action")){let u={instancePath:r+"/sort",schemaPath:"#/properties/sort/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}a.column!==void 0&&(T(a.column,{instancePath:r+"/sort/column",parentData:a,parentDataProperty:"column",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),a.direction!==void 0&&(T(a.direction,{instancePath:r+"/sort/direction",parentData:a,parentDataProperty:"direction",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),a.action!==void 0&&(W(a.action,{instancePath:r+"/sort/action",parentData:a,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length))}else{let i={instancePath:r+"/sort",schemaPath:"#/properties/sort/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}if(t.selection!==void 0){let a=t.selection;if(!(a==="none"||a==="multiple")){let i={instancePath:r+"/selection",schemaPath:"#/properties/selection/enum",keyword:"enum",params:{allowedValues:cr.properties.selection.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.selected!==void 0&&(T(t.selected,{instancePath:r+"/selected",parentData:t,parentDataProperty:"selected",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.rowValuePath!==void 0){let a=t.rowValuePath;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/rowValuePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/rowValuePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.bulkActions!==void 0){let a=t.bulkActions;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/bulkActions",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/bulkActions",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.rowActions!==void 0){let a=t.rowActions;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/rowActions",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/rowActions",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.expandable!==void 0&&typeof t.expandable!="boolean"){let a={instancePath:r+"/expandable",schemaPath:"#/properties/expandable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}if(t.detail!==void 0){let a=t.detail;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/detail",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/detail",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.toolbar!==void 0){let a=t.toolbar;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/toolbar",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/toolbar",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.search!==void 0){let a=t.search;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/search",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/search",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.views!==void 0){let a=t.views;if(Array.isArray(a)){if(a.length>8){let u={instancePath:r+"/views",schemaPath:"#/properties/views/maxItems",keyword:"maxItems",params:{limit:8},message:"must NOT have more than 8 items"};e===null?e=[u]:e.push(u),o++}if(a.length<2){let u={instancePath:r+"/views",schemaPath:"#/properties/views/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.key===void 0){let m={instancePath:r+"/views/"+u,schemaPath:"#/properties/views/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};e===null?e=[m]:e.push(m),o++}if(f.label===void 0){let m={instancePath:r+"/views/"+u,schemaPath:"#/properties/views/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!(m==="key"||m==="label"||m==="count"||m==="action")){let x={instancePath:r+"/views/"+u,schemaPath:"#/properties/views/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.key!==void 0){let m=f.key;if(typeof m=="string"){if(!G.test(m)){let x={instancePath:r+"/views/"+u+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/views/"+u+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}f.label!==void 0&&(g(f.label,{instancePath:r+"/views/"+u+"/label",parentData:f,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.count!==void 0&&(T(f.count,{instancePath:r+"/views/"+u+"/count",parentData:f,parentDataProperty:"count",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),f.action!==void 0&&(W(f.action,{instancePath:r+"/views/"+u+"/action",parentData:f,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length))}else{let m={instancePath:r+"/views/"+u,schemaPath:"#/properties/views/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/views",schemaPath:"#/properties/views/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}if(t.view!==void 0&&(T(t.view,{instancePath:r+"/view",parentData:t,parentDataProperty:"view",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.page!==void 0){let a=t.page;if(a&&typeof a=="object"&&!Array.isArray(a)){for(let i in a)if(!(i==="index"||i==="size"||i==="total"||i==="action")){let u={instancePath:r+"/page",schemaPath:"#/properties/page/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}a.index!==void 0&&(T(a.index,{instancePath:r+"/page/index",parentData:a,parentDataProperty:"index",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),a.size!==void 0&&(T(a.size,{instancePath:r+"/page/size",parentData:a,parentDataProperty:"size",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),a.total!==void 0&&(T(a.total,{instancePath:r+"/page/total",parentData:a,parentDataProperty:"total",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),a.action!==void 0&&(W(a.action,{instancePath:r+"/page/action",parentData:a,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length))}else{let i={instancePath:r+"/page",schemaPath:"#/properties/page/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Zt.errors=e,o===0}Zt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var en={type:"object",description:"A short label, status or count attached to something else.",required:["id","component","label"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Tag"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"The word or two it shows: 'Past due', 'Beta', 'Design'"},kind:{enum:["label","status","count"],default:"label",description:"'status' is the state of the thing it sits on and is coloured by tone; 'count' is a number, with the label as its accessible name"},tone:{$ref:"#/$defs/Tone",default:"neutral",description:"Meaning, not decoration: a status tag's tone says whether the state is fine, a warning or a problem"},count:{$ref:"#/$defs/DynamicNumber",description:"For kind 'count': the number, bound to host data"},remove:{$ref:"#/$defs/Action",description:"Present when the person can take the tag off (a filter chip, a chosen recipient): the capability that removes it"}},additionalProperties:!1};function Kt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Kt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(en.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Tag"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Tag"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.kind!==void 0){let a=t.kind;if(!(a==="label"||a==="status"||a==="count")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:en.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.tone!==void 0){let a=t.tone;if(!(a==="neutral"||a==="info"||a==="success"||a==="warning"||a==="danger")){let i={instancePath:r+"/tone",schemaPath:"#/$defs/Tone/enum",keyword:"enum",params:{allowedValues:ur.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}t.count!==void 0&&(me(t.count,{instancePath:r+"/count",parentData:t,parentDataProperty:"count",rootData:n,dynamicAnchors:d})||(e=e===null?me.errors:e.concat(me.errors),o=e.length)),t.remove!==void 0&&(W(t.remove,{instancePath:r+"/remove",parentData:t,parentDataProperty:"remove",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Kt.errors=e,o===0}Kt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var tn={type:"object",description:"A run of text.",required:["id","component","text"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Text"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},text:{$ref:"#/$defs/DynamicString"},variant:{enum:["body","supporting","caption","rich","list","quote"],default:"body",description:"'rich' allows **bold**, *italic*, `code` and [links](href) in the text; 'list' is a bulleted or numbered list of 'items'; 'quote' is a quotation with an optional 'cite'"},format:{$ref:"#/$defs/Format",description:"Only when 'text' is bound to a non-string value"},items:{$ref:"#/$defs/Binding",description:"For 'list': array in host data, one entry per item; 'text' introduces the list"},itemPath:{$ref:"#/$defs/Path",description:"For 'list': relative path in each entry to the text shown, when the entries are objects"},ordered:{type:"boolean",default:!1,description:"For 'list': numbered rather than bulleted"},cite:{$ref:"#/$defs/DynamicString",description:"For 'quote': who or what is quoted"}},additionalProperties:!1};function Wt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Wt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.text===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(tn.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Text"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Text"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.text!==void 0&&(g(t.text,{instancePath:r+"/text",parentData:t,parentDataProperty:"text",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.variant!==void 0){let a=t.variant;if(!(a==="body"||a==="supporting"||a==="caption"||a==="rich"||a==="list"||a==="quote")){let i={instancePath:r+"/variant",schemaPath:"#/properties/variant/enum",keyword:"enum",params:{allowedValues:tn.properties.variant.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.format!==void 0&&(ee(t.format,{instancePath:r+"/format",parentData:t,parentDataProperty:"format",rootData:n,dynamicAnchors:d})||(e=e===null?ee.errors:e.concat(ee.errors),o=e.length)),t.items!==void 0&&(T(t.items,{instancePath:r+"/items",parentData:t,parentDataProperty:"items",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.itemPath!==void 0){let a=t.itemPath;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/itemPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/itemPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.ordered!==void 0&&typeof t.ordered!="boolean"){let a={instancePath:r+"/ordered",schemaPath:"#/properties/ordered/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}t.cite!==void 0&&(g(t.cite,{instancePath:r+"/cite",parentData:t,parentDataProperty:"cite",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Wt.errors=e,o===0}Wt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var ei={type:"object",description:"A single text-like value: text, number, email, phone, currency, search or long text.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"TextInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Two-way binding into host data"},kind:{enum:["text","multiline","number","currency","email","phone","url","search","suggestions","richtext","tags","mentions","code","masked","inline"],default:"text",description:"'suggestions' offers completions from 'options' while leaving any text allowed; 'richtext' is short formatted text (bold, italic, lists) stored as markdown-ish text; 'tags' is a list of short values entered one at a time; 'mentions' offers 'options' after an @; 'code' is monospace with no autocorrection; 'masked' follows 'mask'; 'inline' reads as text until it is clicked"},options:{$ref:"#/$defs/Options",description:"For 'suggestions' and 'mentions': the completions offered"},mask:{type:"string",description:"For 'masked': # for a digit, A for a letter, * for either, anything else typed for you, e.g. '#### #### #### ####'"},currency:{$ref:"#/$defs/DynamicString",description:"ISO 4217 code when kind is 'currency'"},help:{$ref:"#/$defs/DynamicString",description:"Hint shown below the label (not a placeholder)"},required:{type:"boolean",default:!1},validation:{type:"object",properties:{min:{type:"number"},max:{type:"number"},minLength:{type:"integer",minimum:0},maxLength:{type:"integer",minimum:1},message:{$ref:"#/$defs/DynamicString",description:"Error message shown when validation fails"}},additionalProperties:!1},autocomplete:{type:"string",description:"HTML autocomplete token hint (e.g. 'email', 'postal-code')"},placeholder:{$ref:"#/$defs/DynamicString",description:"Only for kind 'search', shown inside the field. Never a substitute for the label."},size:{enum:["default","hero"],default:"default",description:"'hero' for the one number a surface is about (an amount to send): large and centred"}},additionalProperties:!1};function Gt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Gt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(ei.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="TextInput"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"TextInput"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(T(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.kind!==void 0){let a=t.kind;if(!(a==="text"||a==="multiline"||a==="number"||a==="currency"||a==="email"||a==="phone"||a==="url"||a==="search"||a==="suggestions"||a==="richtext"||a==="tags"||a==="mentions"||a==="code"||a==="masked"||a==="inline")){let i={instancePath:r+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:ei.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}if(t.options!==void 0&&(ve(t.options,{instancePath:r+"/options",parentData:t,parentDataProperty:"options",rootData:n,dynamicAnchors:d})||(e=e===null?ve.errors:e.concat(ve.errors),o=e.length)),t.mask!==void 0&&typeof t.mask!="string"){let a={instancePath:r+"/mask",schemaPath:"#/properties/mask/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[a]:e.push(a),o++}if(t.currency!==void 0&&(g(t.currency,{instancePath:r+"/currency",parentData:t,parentDataProperty:"currency",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.help!==void 0&&(g(t.help,{instancePath:r+"/help",parentData:t,parentDataProperty:"help",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.required!==void 0&&typeof t.required!="boolean"){let a={instancePath:r+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[a]:e.push(a),o++}if(t.validation!==void 0){let a=t.validation;if(a&&typeof a=="object"&&!Array.isArray(a)){for(let i in a)if(!(i==="min"||i==="max"||i==="minLength"||i==="maxLength"||i==="message")){let u={instancePath:r+"/validation",schemaPath:"#/properties/validation/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}if(a.min!==void 0&&typeof a.min!="number"){let i={instancePath:r+"/validation/min",schemaPath:"#/properties/validation/properties/min/type",keyword:"type",params:{type:"number"},message:"must be number"};e===null?e=[i]:e.push(i),o++}if(a.max!==void 0&&typeof a.max!="number"){let i={instancePath:r+"/validation/max",schemaPath:"#/properties/validation/properties/max/type",keyword:"type",params:{type:"number"},message:"must be number"};e===null?e=[i]:e.push(i),o++}if(a.minLength!==void 0){let i=a.minLength;if(!(typeof i=="number"&&!(i%1)&&!isNaN(i))){let u={instancePath:r+"/validation/minLength",schemaPath:"#/properties/validation/properties/minLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"};e===null?e=[u]:e.push(u),o++}if(typeof i=="number"&&(i<0||isNaN(i))){let u={instancePath:r+"/validation/minLength",schemaPath:"#/properties/validation/properties/minLength/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};e===null?e=[u]:e.push(u),o++}}if(a.maxLength!==void 0){let i=a.maxLength;if(!(typeof i=="number"&&!(i%1)&&!isNaN(i))){let u={instancePath:r+"/validation/maxLength",schemaPath:"#/properties/validation/properties/maxLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"};e===null?e=[u]:e.push(u),o++}if(typeof i=="number"&&(i<1||isNaN(i))){let u={instancePath:r+"/validation/maxLength",schemaPath:"#/properties/validation/properties/maxLength/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};e===null?e=[u]:e.push(u),o++}}a.message!==void 0&&(g(a.message,{instancePath:r+"/validation/message",parentData:a,parentDataProperty:"message",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length))}else{let i={instancePath:r+"/validation",schemaPath:"#/properties/validation/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}if(t.autocomplete!==void 0&&typeof t.autocomplete!="string"){let a={instancePath:r+"/autocomplete",schemaPath:"#/properties/autocomplete/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[a]:e.push(a),o++}if(t.placeholder!==void 0&&(g(t.placeholder,{instancePath:r+"/placeholder",parentData:t,parentDataProperty:"placeholder",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.size!==void 0){let a=t.size;if(!(a==="default"||a==="hero")){let i={instancePath:r+"/size",schemaPath:"#/properties/size/enum",keyword:"enum",params:{allowedValues:ei.properties.size.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Gt.errors=e,o===0}Gt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var hd={type:"object",description:"An on/off setting.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Toggle"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Boolean in host data"},description:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action",description:"Set when the change applies immediately (a setting); omit inside a Form"}},additionalProperties:!1};function Yt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Yt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.value===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(hd.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Toggle"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Toggle"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.value!==void 0&&(T(t.value,{instancePath:r+"/value",parentData:t,parentDataProperty:"value",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.description!==void 0&&(g(t.description,{instancePath:r+"/description",parentData:t,parentDataProperty:"description",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.action!==void 0&&(W(t.action,{instancePath:r+"/action",parentData:t,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Yt.errors=e,o===0}Yt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var rn={type:"object",description:"A hierarchy people expand, browse and pick from: folders, an org chart, nested categories.",required:["id","component","label","items","labelPath","childrenPath"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Tree"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What the tree holds, e.g. 'Folders'"},items:{$ref:"#/$defs/Binding",description:"The top-level nodes in host data: a list"},labelPath:{$ref:"#/$defs/Path",description:"Relative to each node: the text shown"},childrenPath:{$ref:"#/$defs/Path",description:"Relative to each node: its list of child nodes, absent or empty for a leaf"},valuePath:{$ref:"#/$defs/Path",description:"Relative to each node: what selection writes; the label when absent"},detailPath:{$ref:"#/$defs/Path",description:"Relative to each node: a count or note shown after the label"},selection:{enum:["none","single","multiple"],default:"none"},selected:{$ref:"#/$defs/Binding",description:"Selected node value(s) in host data when selection is not 'none'"},expanded:{$ref:"#/$defs/Binding",description:"Values of the nodes shown open; the first level is open without it"},action:{$ref:"#/$defs/Action",description:"Activating a node, e.g. open that folder; context may bind to the node's fields"}},additionalProperties:!1};function Jt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Jt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.label===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[a]:e.push(a),o++}if(t.items===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};e===null?e=[a]:e.push(a),o++}if(t.labelPath===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"labelPath"},message:"must have required property 'labelPath'"};e===null?e=[a]:e.push(a),o++}if(t.childrenPath===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"childrenPath"},message:"must have required property 'childrenPath'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!Q.call(rn.properties,a)){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Tree"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Tree"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.label!==void 0&&(g(t.label,{instancePath:r+"/label",parentData:t,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),t.items!==void 0&&(T(t.items,{instancePath:r+"/items",parentData:t,parentDataProperty:"items",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.labelPath!==void 0){let a=t.labelPath;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/labelPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/labelPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.childrenPath!==void 0){let a=t.childrenPath;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/childrenPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/childrenPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.valuePath!==void 0){let a=t.valuePath;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/valuePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/valuePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.detailPath!==void 0){let a=t.detailPath;if(typeof a=="string"){if(!ae.test(a)){let i={instancePath:r+"/detailPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/detailPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.selection!==void 0){let a=t.selection;if(!(a==="none"||a==="single"||a==="multiple")){let i={instancePath:r+"/selection",schemaPath:"#/properties/selection/enum",keyword:"enum",params:{allowedValues:rn.properties.selection.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}t.selected!==void 0&&(T(t.selected,{instancePath:r+"/selected",parentData:t,parentDataProperty:"selected",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.expanded!==void 0&&(T(t.expanded,{instancePath:r+"/expanded",parentData:t,parentDataProperty:"expanded",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.action!==void 0&&(W(t.action,{instancePath:r+"/action",parentData:t,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length))}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Jt.errors=e,o===0}Jt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var bd={type:"object",description:"Switch between alternative views of the same subject (tabs).",required:["id","component","views"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Views"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},views:{type:"array",minItems:2,maxItems:6,items:{type:"object",required:["key","label","content"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},content:{$ref:"#/$defs/Id"},count:{$ref:"#/$defs/Binding",description:"How many items the view holds, shown beside its label"}},additionalProperties:!1}},selected:{$ref:"#/$defs/Binding",description:"Key of the selected view in host data"},variant:{enum:["tabs","segmented"],default:"tabs",description:"'tabs' for sections of a record; 'segmented' for switching how the same thing is shown"}},additionalProperties:!1};function Xt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Xt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.id===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[a]:e.push(a),o++}if(t.component===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[a]:e.push(a),o++}if(t.views===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"views"},message:"must have required property 'views'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="id"||a==="component"||a==="key"||a==="accessibility"||a==="visible"||a==="views"||a==="selected"||a==="variant")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.id!==void 0){let a=t.id;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.component!==void 0&&t.component!=="Views"){let a={instancePath:r+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Views"},message:"must be equal to constant"};e===null?e=[a]:e.push(a),o++}if(t.key!==void 0){let a=t.key;if(typeof a=="string"){if(!G.test(a)){let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.accessibility!==void 0&&(E(t.accessibility,{instancePath:r+"/accessibility",parentData:t,parentDataProperty:"accessibility",rootData:n,dynamicAnchors:d})||(e=e===null?E.errors:e.concat(E.errors),o=e.length)),t.visible!==void 0&&(I(t.visible,{instancePath:r+"/visible",parentData:t,parentDataProperty:"visible",rootData:n,dynamicAnchors:d})||(e=e===null?I.errors:e.concat(I.errors),o=e.length)),t.views!==void 0){let a=t.views;if(Array.isArray(a)){if(a.length>6){let u={instancePath:r+"/views",schemaPath:"#/properties/views/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items"};e===null?e=[u]:e.push(u),o++}if(a.length<2){let u={instancePath:r+"/views",schemaPath:"#/properties/views/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++){let f=a[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.key===void 0){let m={instancePath:r+"/views/"+u,schemaPath:"#/properties/views/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};e===null?e=[m]:e.push(m),o++}if(f.label===void 0){let m={instancePath:r+"/views/"+u,schemaPath:"#/properties/views/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[m]:e.push(m),o++}if(f.content===void 0){let m={instancePath:r+"/views/"+u,schemaPath:"#/properties/views/items/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};e===null?e=[m]:e.push(m),o++}for(let m in f)if(!(m==="key"||m==="label"||m==="content"||m==="count")){let x={instancePath:r+"/views/"+u,schemaPath:"#/properties/views/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};e===null?e=[x]:e.push(x),o++}if(f.key!==void 0){let m=f.key;if(typeof m=="string"){if(!G.test(m)){let x={instancePath:r+"/views/"+u+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/views/"+u+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}if(f.label!==void 0&&(g(f.label,{instancePath:r+"/views/"+u+"/label",parentData:f,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),f.content!==void 0){let m=f.content;if(typeof m=="string"){if(!F.test(m)){let x={instancePath:r+"/views/"+u+"/content",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[x]:e.push(x),o++}}else{let x={instancePath:r+"/views/"+u+"/content",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[x]:e.push(x),o++}}f.count!==void 0&&(T(f.count,{instancePath:r+"/views/"+u+"/count",parentData:f,parentDataProperty:"count",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length))}else{let m={instancePath:r+"/views/"+u,schemaPath:"#/properties/views/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[m]:e.push(m),o++}}}else{let i={instancePath:r+"/views",schemaPath:"#/properties/views/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}if(t.selected!==void 0&&(T(t.selected,{instancePath:r+"/selected",parentData:t,parentDataProperty:"selected",rootData:n,dynamicAnchors:d})||(e=e===null?T.errors:e.concat(T.errors),o=e.length)),t.variant!==void 0){let a=t.variant;if(!(a==="tabs"||a==="segmented")){let i={instancePath:r+"/variant",schemaPath:"#/properties/variant/enum",keyword:"enum",params:{allowedValues:bd.properties.variant.enum},message:"must be equal to one of the allowed values"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return Xt.errors=e,o===0}Xt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Qt(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=Qt.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.component===void 0){let u={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};e===null?e=[u]:e.push(u),o++}let i=t.component;if(typeof i=="string")if(i==="Action"){dt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?dt.errors:e.concat(dt.errors),o=e.length);var a=!0}else if(i==="ActionBar")pt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?pt.errors:e.concat(pt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="ActionMenu")lt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?lt.errors:e.concat(lt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="AppBar")ct(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?ct.errors:e.concat(ct.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Card")ut(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?ut.errors:e.concat(ut.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Chart")ft(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?ft.errors:e.concat(ft.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Choice")mt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?mt.errors:e.concat(mt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Code")xt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?xt.errors:e.concat(xt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="CodeInput")gt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?gt.errors:e.concat(gt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Collection")ht(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?ht.errors:e.concat(ht.errors),o=e.length),a!==!0&&(a=!0);else if(i==="ColorInput")bt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?bt.errors:e.concat(bt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Columns")vt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?vt.errors:e.concat(vt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Comparison")wt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?wt.errors:e.concat(wt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Confirm")kt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?kt.errors:e.concat(kt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Custom")$t(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?$t.errors:e.concat($t.errors),o=e.length),a!==!0&&(a=!0);else if(i==="DateInput")Pt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Pt.errors:e.concat(Pt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="DetailList")St(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?St.errors:e.concat(St.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Disclosure")zt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?zt.errors:e.concat(zt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="FileInput")At(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?At.errors:e.concat(At.errors),o=e.length),a!==!0&&(a=!0);else if(i==="FilterPanel")It(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?It.errors:e.concat(It.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Footer")Ct(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Ct.errors:e.concat(Ct.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Form")qt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?qt.errors:e.concat(qt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Frame")Dt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Dt.errors:e.concat(Dt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Group")Tt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Tt.errors:e.concat(Tt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Identity")Nt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Nt.errors:e.concat(Nt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Media")Et(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Et.errors:e.concat(Et.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Metric")Mt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Mt.errors:e.concat(Mt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Navigation")jt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?jt.errors:e.concat(jt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Outlet")Rt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Rt.errors:e.concat(Rt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Panel")Bt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Bt.errors:e.concat(Bt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Progress")_t(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?_t.errors:e.concat(_t.errors),o=e.length),a!==!0&&(a=!0);else if(i==="RangeInput")Ht(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Ht.errors:e.concat(Ht.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Rating")Ft(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Ft.errors:e.concat(Ft.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Section")Ut(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Ut.errors:e.concat(Ut.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Split")Ot(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Ot.errors:e.concat(Ot.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Status")Vt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Vt.errors:e.concat(Vt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Steps")Lt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Lt.errors:e.concat(Lt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Table")Zt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Zt.errors:e.concat(Zt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Tag")Kt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Kt.errors:e.concat(Kt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Text")Wt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Wt.errors:e.concat(Wt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="TextInput")Gt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Gt.errors:e.concat(Gt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Toggle")Yt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Yt.errors:e.concat(Yt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Tree")Jt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Jt.errors:e.concat(Jt.errors),o=e.length),a!==!0&&(a=!0);else if(i==="Views")Xt(t,{instancePath:r,parentData:s,parentDataProperty:p,rootData:n,dynamicAnchors:d})||(e=e===null?Xt.errors:e.concat(Xt.errors),o=e.length),a!==!0&&(a=!0);else{let u={instancePath:r,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"component",tagValue:i},message:'value of tag "component" must be in oneOf'};e===null?e=[u]:e.push(u),o++}else{let u={instancePath:r,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"component",tagValue:i},message:'tag "component" must be string'};e===null?e=[u]:e.push(u),o++}}else{let i={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}return Qt.errors=e,c.props=a,o===0}Qt.evaluated={dynamicProps:!0,dynamicItems:!1};function _r(t,{instancePath:r="",parentData:s,parentDataProperty:p,rootData:n=t,dynamicAnchors:d={}}={}){let e=null,o=0,c=_r.evaluated;if(c.dynamicProps&&(c.props=void 0),c.dynamicItems&&(c.items=void 0),t&&typeof t=="object"&&!Array.isArray(t)){if(t.specVersion===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"specVersion"},message:"must have required property 'specVersion'"};e===null?e=[a]:e.push(a),o++}if(t.surface===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"surface"},message:"must have required property 'surface'"};e===null?e=[a]:e.push(a),o++}if(t.root===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"root"},message:"must have required property 'root'"};e===null?e=[a]:e.push(a),o++}if(t.components===void 0){let a={instancePath:r,schemaPath:"#/required",keyword:"required",params:{missingProperty:"components"},message:"must have required property 'components'"};e===null?e=[a]:e.push(a),o++}for(let a in t)if(!(a==="$schema"||a==="specVersion"||a==="surface"||a==="root"||a==="components"||a==="data")){let i={instancePath:r,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};e===null?e=[i]:e.push(i),o++}if(t.$schema!==void 0&&typeof t.$schema!="string"){let a={instancePath:r+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[a]:e.push(a),o++}if(t.specVersion!==void 0){let a=t.specVersion;if(typeof a=="string"){if(!ad.test(a)){let i={instancePath:r+"/specVersion",schemaPath:"#/properties/specVersion/pattern",keyword:"pattern",params:{pattern:"^0\\.[123]\\.[0-9]+$"},message:'must match pattern "^0\\.[123]\\.[0-9]+$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/specVersion",schemaPath:"#/properties/specVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.surface!==void 0){let a=t.surface;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.id===void 0){let i={instancePath:r+"/surface",schemaPath:"#/properties/surface/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};e===null?e=[i]:e.push(i),o++}if(a.title===void 0){let i={instancePath:r+"/surface",schemaPath:"#/properties/surface/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};e===null?e=[i]:e.push(i),o++}for(let i in a)if(!Q.call(Mr.properties.surface.properties,i)){let u={instancePath:r+"/surface",schemaPath:"#/properties/surface/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"};e===null?e=[u]:e.push(u),o++}if(a.id!==void 0){let i=a.id;if(typeof i=="string"){if(!F.test(i)){let u={instancePath:r+"/surface/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/surface/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[u]:e.push(u),o++}}if(a.title!==void 0&&typeof a.title!="string"){let i={instancePath:r+"/surface/title",schemaPath:"#/properties/surface/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}if(a.intent!==void 0){let i=a.intent;if(typeof i=="string"){if(!G.test(i)){let u={instancePath:r+"/surface/intent",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/surface/intent",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[u]:e.push(u),o++}}if(a.pattern!==void 0&&typeof a.pattern!="string"){let i={instancePath:r+"/surface/pattern",schemaPath:"#/properties/surface/properties/pattern/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}if(a.journey!==void 0&&typeof a.journey!="string"){let i={instancePath:r+"/surface/journey",schemaPath:"#/properties/surface/properties/journey/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}if(a.subtitle!==void 0&&(g(a.subtitle,{instancePath:r+"/surface/subtitle",parentData:a,parentDataProperty:"subtitle",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),a.breadcrumbs!==void 0){let i=a.breadcrumbs;if(Array.isArray(i)){if(i.length>4){let f={instancePath:r+"/surface/breadcrumbs",schemaPath:"#/properties/surface/properties/breadcrumbs/maxItems",keyword:"maxItems",params:{limit:4},message:"must NOT have more than 4 items"};e===null?e=[f]:e.push(f),o++}let u=i.length;for(let f=0;f<u;f++){let m=i[f];if(m&&typeof m=="object"&&!Array.isArray(m)){if(m.label===void 0){let x={instancePath:r+"/surface/breadcrumbs/"+f,schemaPath:"#/properties/surface/properties/breadcrumbs/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};e===null?e=[x]:e.push(x),o++}for(let x in m)if(!(x==="label"||x==="action")){let y={instancePath:r+"/surface/breadcrumbs/"+f,schemaPath:"#/properties/surface/properties/breadcrumbs/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"};e===null?e=[y]:e.push(y),o++}m.label!==void 0&&(g(m.label,{instancePath:r+"/surface/breadcrumbs/"+f+"/label",parentData:m,parentDataProperty:"label",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),m.action!==void 0&&(W(m.action,{instancePath:r+"/surface/breadcrumbs/"+f+"/action",parentData:m,parentDataProperty:"action",rootData:n,dynamicAnchors:d})||(e=e===null?W.errors:e.concat(W.errors),o=e.length))}else{let x={instancePath:r+"/surface/breadcrumbs/"+f,schemaPath:"#/properties/surface/properties/breadcrumbs/items/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[x]:e.push(x),o++}}}else{let u={instancePath:r+"/surface/breadcrumbs",schemaPath:"#/properties/surface/properties/breadcrumbs/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[u]:e.push(u),o++}}if(a.badge!==void 0){let i=a.badge;if(i&&typeof i=="object"&&!Array.isArray(i)){if(i.text===void 0){let u={instancePath:r+"/surface/badge",schemaPath:"#/properties/surface/properties/badge/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'"};e===null?e=[u]:e.push(u),o++}for(let u in i)if(!(u==="text"||u==="tone")){let f={instancePath:r+"/surface/badge",schemaPath:"#/properties/surface/properties/badge/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:u},message:"must NOT have additional properties"};e===null?e=[f]:e.push(f),o++}if(i.text!==void 0&&(g(i.text,{instancePath:r+"/surface/badge/text",parentData:i,parentDataProperty:"text",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),i.tone!==void 0){let u=i.tone;if(!(u==="neutral"||u==="info"||u==="success"||u==="warning"||u==="danger")){let f={instancePath:r+"/surface/badge/tone",schemaPath:"#/$defs/Tone/enum",keyword:"enum",params:{allowedValues:ur.enum},message:"must be equal to one of the allowed values"};e===null?e=[f]:e.push(f),o++}}}else{let u={instancePath:r+"/surface/badge",schemaPath:"#/properties/surface/properties/badge/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[u]:e.push(u),o++}}if(a.avatar!==void 0&&(g(a.avatar,{instancePath:r+"/surface/avatar",parentData:a,parentDataProperty:"avatar",rootData:n,dynamicAnchors:d})||(e=e===null?g.errors:e.concat(g.errors),o=e.length)),a.actions!==void 0){let i=a.actions;if(typeof i=="string"){if(!F.test(i)){let u={instancePath:r+"/surface/actions",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[u]:e.push(u),o++}}else{let u={instancePath:r+"/surface/actions",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[u]:e.push(u),o++}}if(a.presentation!==void 0){let i=a.presentation;if(!(i==="page"||i==="panel")){let u={instancePath:r+"/surface/presentation",schemaPath:"#/properties/surface/properties/presentation/enum",keyword:"enum",params:{allowedValues:Mr.properties.surface.properties.presentation.enum},message:"must be equal to one of the allowed values"};e===null?e=[u]:e.push(u),o++}}if(a.dismissible!==void 0&&typeof a.dismissible!="boolean"){let i={instancePath:r+"/surface/dismissible",schemaPath:"#/properties/surface/properties/dismissible/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};e===null?e=[i]:e.push(i),o++}if(a.kind!==void 0){let i=a.kind;if(!(i==="surface"||i==="shell")){let u={instancePath:r+"/surface/kind",schemaPath:"#/properties/surface/properties/kind/enum",keyword:"enum",params:{allowedValues:Mr.properties.surface.properties.kind.enum},message:"must be equal to one of the allowed values"};e===null?e=[u]:e.push(u),o++}}if(a.origin!==void 0){let i=a.origin;if(!(i==="generated"||i==="authored")){let u={instancePath:r+"/surface/origin",schemaPath:"#/properties/surface/properties/origin/enum",keyword:"enum",params:{allowedValues:Mr.properties.surface.properties.origin.enum},message:"must be equal to one of the allowed values"};e===null?e=[u]:e.push(u),o++}}}else{let i={instancePath:r+"/surface",schemaPath:"#/properties/surface/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}if(t.root!==void 0){let a=t.root;if(typeof a=="string"){if(!F.test(a)){let i={instancePath:r+"/root",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};e===null?e=[i]:e.push(i),o++}}else{let i={instancePath:r+"/root",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};e===null?e=[i]:e.push(i),o++}}if(t.components!==void 0){let a=t.components;if(Array.isArray(a)){if(a.length<1){let u={instancePath:r+"/components",schemaPath:"#/properties/components/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};e===null?e=[u]:e.push(u),o++}let i=a.length;for(let u=0;u<i;u++)Qt(a[u],{instancePath:r+"/components/"+u,parentData:a,parentDataProperty:u,rootData:n,dynamicAnchors:d})||(e=e===null?Qt.errors:e.concat(Qt.errors),o=e.length)}else{let i={instancePath:r+"/components",schemaPath:"#/properties/components/type",keyword:"type",params:{type:"array"},message:"must be array"};e===null?e=[i]:e.push(i),o++}}if(t.data!==void 0){let a=t.data;if(!(a&&typeof a=="object"&&!Array.isArray(a))){let i={instancePath:r+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[i]:e.push(i),o++}}}else{let a={instancePath:r,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};e===null?e=[a]:e.push(a),o++}return _r.errors=e,o===0}_r.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var ai=Rs,vd={Table:["columns","rowAction","rowValuePath"],Tree:["labelPath","childrenPath","valuePath","detailPath","action"],Chart:["x","series"],Comparison:["itemTitle","attributes","choose"],Collection:["datePath"],Text:["itemPath"],Media:["imagePath","altPath"],DetailList:["rowAction"]},wd={Views:["views"],Steps:["steps"]},an=new Set(["ui.dismiss","ui.back","ui.next","ui.copy"]),on={Collection:"items",Table:"rows",Comparison:"items",Chart:"data",Choice:"options",Tree:"items",Text:"items",Media:"items"},kd=new Set(["TextInput","Choice","Toggle","DateInput","RangeInput","Rating","FileInput","ColorInput","CodeInput"]),sn=t=>{let r=t;for(;r?.$ref;)r=ai.$defs[r.$ref.replace("#/$defs/","")];return r},$d=t=>t?.$ref?.replace("#/$defs/","");function mr(t,r,s,p,n){let d=$d(t);if(d==="Id"&&typeof r=="string")return void n.ids.push({id:r,at:s,prop:p.prop,panel:p.panel});if(d==="Path"&&typeof r=="string")return void n.paths.push({path:r,at:s,itemScoped:p.itemScoped,list:p.itemScoped?p.list:void 0});if(d==="Capability"&&typeof r=="string")return void n.actions.push({name:r,at:s});if(p.prop==="group"&&r&&!Array.isArray(r)&&typeof r=="object"&&"path"in r){let o=r;n.paths.push({path:o.path,at:`${s}/path`,itemScoped:p.itemScoped});for(let c of["namePath","imagePath"])o[c]&&n.paths.push({path:o[c],at:`${s}/${c}`,itemScoped:!0,list:{path:o.path}});return}if(d==="Options"&&r&&!Array.isArray(r)&&typeof r=="object"){let o=r;n.paths.push({path:o.path,at:`${s}/path`,itemScoped:p.itemScoped});for(let c of["valuePath","labelPath","descriptionPath","avatarPath","imagePath","recentPath"])o[c]&&n.paths.push({path:o[c],at:`${s}/${c}`,itemScoped:!0,list:{path:o.path}});return}let e=sn(t);if(e){if(e.oneOf){let o=e.oneOf.find(c=>{let a=sn(c);return Array.isArray(r)?a.type==="array":r&&typeof r=="object"?a.type==="object":a.type!=="object"&&a.type!=="array"});o&&mr(o,r,s,p,n);return}if(Array.isArray(r)&&e.items)r.forEach((o,c)=>mr(e.items,o,`${s}/${c}`,p,n));else if(r&&typeof r=="object"&&!Array.isArray(r))for(let[o,c]of Object.entries(r)){let a=e.properties?.[o]??(typeof e.additionalProperties=="object"?e.additionalProperties:void 0);a&&mr(a,c,`${s}/${o}`,p,n)}}}function fr(t,r){if(!r.startsWith("/"))return;let s=t;for(let p of r.slice(1).split("/").map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))){if(s===null||typeof s!="object"||!(p in s))return;s=s[p]}return s}function ri(t,r){let s=r.path.startsWith("/")?[t]:r.parent?ri(t,r.parent):[],p=r.path.startsWith("/")?r.path:`/${r.path}`;return s.flatMap(n=>{let d=fr(n,p);return Array.isArray(d)?d:[]})}function dn(t,r,s="",p=0){return p>4||!t||typeof t!="object"||Array.isArray(t)?[]:Object.entries(t).flatMap(([n,d])=>[...n===r?[`${s}/${n}`]:[],...dn(d,r,`${s}/${n}`,p+1)])}var nn=t=>t.keyword==="additionalProperties"?`unknown property "${t.params.additionalProperty}"`:t.keyword==="const"&&t.instancePath.endsWith("/component")?`unknown component "${t.data}"`:t.keyword==="discriminator"?"unknown or missing component type":t.message??t.keyword;function oi(t,r={}){let s=[],p=(P,N)=>s.push({severity:"error",at:P,message:N}),n=(P,N)=>s.push({severity:"warning",at:P,message:N});if(!ti(t)){let P=ti.errors??[],N=P.filter(v=>!P.some(k=>k!==v&&k.instancePath.startsWith(v.instancePath+"/"))),M=new Set;for(let v of N){let k=`${v.instancePath||"/"}: ${nn(v)}`;M.has(k)||(M.add(k),p(v.instancePath||"/",nn(v)))}return{valid:!1,issues:s}}let d=t,e=new Map;d.components.forEach((P,N)=>{e.has(P.id)?p(`/components/${N}/id`,`duplicate id "${P.id}"`):e.set(P.id,{c:P,index:N})}),e.has(d.root)||p("/root",`root "${d.root}" is not a component id`);let o=new Map;for(let[P,{c:N,index:M}]of e){let v={ids:[],paths:[],actions:[]},k=ai.$defs[`Component${N.component}`];for(let[$,j]of Object.entries(N)){if($==="id"||$==="component")continue;let A=vd[N.component]?.includes($)??!1,C=N[on[N.component]]?.path,S=A&&typeof C=="string"?{path:C}:void 0;wd[N.component]?.includes($)&&Array.isArray(j)?j.forEach((K,O)=>mr(k.properties[$].items,K,`/components/${M}/${$}/${O}`,{prop:$,itemScoped:A,panel:`${P}#${O}`,list:S},v)):mr(k.properties[$],j,`/components/${M}/${$}`,{prop:$,itemScoped:A,list:S},v)}o.set(P,v)}for(let[P,N]of o){let M=e.get(P).c;for(let v of N.ids){let k=e.get(v.id);if(!k){p(v.at,`references unknown component "${v.id}"`);continue}v.id===P&&p(v.at,"component references itself");let $=Zo[`${M.component}.${v.prop}`];$&&!$.includes(k.c.component)&&p(v.at,`${M.component}.${v.prop} must reference ${$.join(" or ")}, not ${k.c.component}`)}for(let v of N.actions)v.name.startsWith("ui.")&&!an.has(v.name)&&p(v.at,`"${v.name}" is not a renderer action (${[...an].join(", ")})`)}for(let[,{c:P,index:N}]of e)P.component==="TextInput"&&P.placeholder!==void 0&&P.kind!=="search"&&n(`/components/${N}/placeholder`,"placeholders are only for search fields; use the label and help text"),P.component==="Media"&&!P.decorative&&P.alt===void 0&&p(`/components/${N}`,"Media needs alt text unless it is decorative");let c=new Map,a=new Set,i=new Set,u=new Map,f=[],m=(P,N,M,v,k)=>{let $=e.get(P);if(!$)return;if(v.includes(P))return p(`/components/${$.index}`,`cycle: ${[...v,P].join(" \u2192 ")}`);a.add(P),M&&i.add(P),k&&u.set(P,k);let{c:j,index:A}=$,C=N;j.component==="Confirm"&&(C=[...N,`${P}#dialog`]),j.component==="Action"&&j.emphasis==="primary"&&f.push({at:`/components/${A}`,stack:C}),j.component==="Form"&&f.push({at:`/components/${A}/submit`,stack:C}),j.component==="Steps"&&f.push({at:`/components/${A}/finish`,stack:[...C,`${P}#${j.steps.length-1}`]});for(let S of o.get(P).ids){if(!e.has(S.id)||S.id===P)continue;let U=S.prop==="items"&&j.component==="Collection"||(S.prop==="rowActions"||S.prop==="detail")&&j.component==="Table",K=c.get(S.id);if(K&&K!==P){p(S.at,`"${S.id}" already has parent "${K}"; a component can appear in only one place`);continue}c.set(S.id,P);let O=U?j[j.component==="Table"?"rows":"items"]?.path:void 0,V=typeof O=="string"?{path:O,parent:O.startsWith("/")?void 0:k}:k;m(S.id,S.panel?[...C,S.panel]:C,M||U,[...v,P],V)}};e.has(d.root)&&m(d.root,[],!1,[]),typeof d.surface?.actions=="string"&&e.has(d.surface.actions)&&m(d.surface.actions,[],!1,[]);for(let[P,{c:N}]of e)N.component==="Navigation"&&!a.has(P)&&m(P,[],!1,[]);for(let[P,{index:N}]of e)a.has(P)||n(`/components/${N}`,`"${P}" is not reachable from root "${d.root}"`);let x=(P,N,M)=>s.push({severity:P,at:N,message:M,code:"shell:structure"}),y=d.surface?.kind==="shell",h=[...e].filter(([,{c:P}])=>Bs.includes(P.component));if(y){d.surface?.origin!=="authored"&&x("error","/surface/origin",'a shell is authored; set surface.origin to "authored"');let P=e.get(d.root)?.c.component;P&&P!=="Frame"&&x("error","/root",`a shell's root is a Frame, not ${P}`);let N=[...e].filter(([,{c:$}])=>$.component==="Outlet");N.length===0&&x("error","/components","a shell has exactly one Outlet, reachable from the Frame's main; this one has none");for(let[,{index:$}]of N.slice(1))x("error",`/components/${$}`,"a shell has exactly one Outlet; this is another");let M=new Set,v=P==="Frame"?e.get(d.root).c.main:void 0,k=$=>{if(!(typeof $!="string"||M.has($)||!e.has($))){M.add($);for(let j of o.get($).ids)k(j.id)}};typeof v=="string"&&k(v);for(let[$,{index:j}]of N.slice(0,1))typeof v=="string"&&!M.has($)&&x("error",`/components/${j}`,`the Outlet "${$}" is not reachable from the Frame's main "${v}"`)}else for(let[,{c:P,index:N}]of h)x("error",`/components/${N}`,`${P.component} belongs in a shell document: set surface.kind to "shell"`);for(let[P,{c:N,index:M}]of e){if(N.component!=="Navigation"||N.placement===void 0)continue;let v=c.get(P);(!v||e.get(v)?.c.component!=="Frame")&&x("warning",`/components/${M}/placement`,"Navigation.placement only applies to a Frame's navigation; here nothing reads it")}let b=Math.max(1,r.emphasisBudget??1),w=(P,N)=>P.every((M,v)=>N[v]===M),D=(P,N)=>w(P.stack,N.stack)||w(N.stack,P.stack);for(let P=0;P<f.length;P++){let N=f.filter((M,v)=>v>=P&&D(f[P],M));if(N.length>b){let M=N[b];p(M.at,b===1?`more than one primary action visible at once (also ${N[0].at})`:`more than ${b} primary actions visible at once (also ${N.slice(0,b).map(v=>v.at).join(", ")})`);break}}if(d.data!==void 0)for(let[,{c:P,index:N}]of e){let M=on[P.component],v=M&&P[M]&&typeof P[M]=="object"?P[M].path:void 0;if(typeof v!="string"||!v.startsWith("/"))continue;let k=fr(d.data,v);k!==void 0&&!Array.isArray(k)&&p(`/components/${N}/${M}/path`,`${P.component}.${M} must point at a list; "${v}" is ${k===null?"null":typeof k} in data`)}let z=(P,N)=>s.push({severity:r.missingData??"warning",at:P,message:N,code:"data:missing-path"}),R=[];for(let[,{c:P}]of e)kd.has(P.component)&&typeof P.value?.path=="string"&&P.value.path.startsWith("/")&&R.push(P.value.path);let q=P=>R.some(N=>N===P||N.startsWith(`${P}/`)||P.startsWith(`${N}/`));for(let[P,N]of o){let M=i.has(P);for(let v of N.paths)if(v.path.startsWith("/")){if(d.data!==void 0&&fr(d.data,v.path)===void 0&&!q(v.path)){let k=M?u.get(P):void 0,$=v.path.slice(v.path.lastIndexOf("/")+1),j=k&&ri(d.data,k).some(C=>fr(C,`/${$}`)!==void 0),A=j?void 0:dn(d.data,$).slice(0,1)[0];z(v.at,`path "${v.path}" does not exist in data`+(j?`: inside a repeated item, the item's own field is "${$}", without the slash`:A?` (did you mean "${A}"?)`:""))}}else{if(!v.itemScoped&&!M){p(v.at,`relative path "${v.path}" used outside a repeated item`);continue}let k=v.list??u.get(P);if(d.data===void 0||!k)continue;let $=ri(d.data,k);if($.length&&$.every(j=>fr(j,`/${v.path}`)===void 0)){let j=Object.keys($.find(A=>A&&typeof A=="object")??{});z(v.at,`"${v.path}" is not a field of the items in ${k.path}${j.length?` (they have ${j.join(", ")})`:""}`)}}}return{valid:!s.some(P=>P.severity==="error"),issues:s}}var Pd={Section:["children"],Group:["children"],Card:["children"],Disclosure:["children"],Form:["children"],ActionBar:["children"],FilterPanel:["children"],Panel:["children"],ActionMenu:["children"],Columns:["children"]},Sd={Card:["media"],Collection:["empty","bulkActions"],Table:["empty","toolbar","bulkActions","rowActions","search","detail"],Status:["action"],Confirm:["summary"],Form:["aside"],FilterPanel:["results"],Panel:["actions"],ActionMenu:["primary"],Split:["primary","detail","empty"],Frame:["banner","header","navigation","main","aside","footer"],AppBar:["leading","search","actions","account"],Footer:["aside"],Outlet:["loading"],Custom:["fallback"]},zd={Views:"views",Steps:"steps"},Ad=/^[A-Za-z][A-Za-z0-9_-]*$/,Id=t=>t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").replace(/^([^a-z])/,"c-$1")||"c";function ii(t){let r=[],s=new Set,p=f=>{let m=typeof f.id=="string"&&Ad.test(f.id)?f.id:Id(f.key??f.component??"c"),x=m;for(let y=2;s.has(x);y++)x=`${m}-${y}`;return s.add(x),x},n=f=>{if(!f||typeof f!="object"||typeof f.component!="string")throw new Error("expected a component object");let m=p(f),x={...f,id:m};r.push(x);for(let h of Pd[f.component]??[])Array.isArray(f[h])&&(x[h]=f[h].map(n));for(let h of Sd[f.component]??[])f[h]&&typeof f[h]=="object"&&(x[h]=n(f[h]));f.component==="Collection"&&f.items&&typeof f.items=="object"&&"item"in f.items&&(x.items={path:f.items.path,componentId:n(f.items.item)});let y=zd[f.component];return y&&Array.isArray(f[y])&&(x[y]=f[y].map(h=>({...h,content:h.content&&typeof h.content=="object"?n(h.content):h.content}))),m},{root:d,navigation:e,surface:o,...c}=t,a=n(d),i=e?n(e):void 0,u={...c,root:a,components:r};if(o){let f=o.actions&&typeof o.actions=="object"?n(o.actions):o.actions;u.surface=f===void 0?o:{...o,actions:f}}return u}var si=t=>!!t&&typeof t.root=="object"&&t.root!==null;var Cd=["antd","bootstrap","brutalist","carbon","chakra","civic","editorial","finance","fluent","glass","govuk","health","mantine","material3","mono","neon","pastel","polaris","primer","radix","shadcn","sketch","spectrum","terminal","wireframe"],ni=t=>"data:image/svg+xml;utf8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><rect width="10" height="10" fill="#999"/><title>'+String(t).replace(/[<&]/g,"")+"</title></svg>");Er();var pn={mount:(t,r)=>lr(t,{resolveMedia:ni,...r}),defineElements:Er,registry:nt,Skeleton:nr,h:l,render:sr,getPointer:J,setPointer:Je,validateDocument:oi,flattenTree:ii,isTree:si,themes:Cd,specVersion:Lo,placeholderMedia:ni};if(typeof window<"u"){window.PolyxdWeb=pn;let t=document.getElementById("root");if(window.__PXD__&&t){window.__pxdActions=[],window.__pxdDismissed=0,window.__pxdEvents=[];let{document:r,theme:s,mode:p}=window.__PXD__,n={document:r,theme:s,mode:p,onAction:d=>window.__pxdActions.push(d),onEvent:d=>window.__pxdEvents.push(d),resolveMedia:ni};if(r.surface.kind==="shell"){let d=document.createElement("div");d.innerHTML='<h1 class="pxd-surface-title">Screen</h1><p>The current screen renders here.</p>',lr(t,{...n,outlet:d,current:{key:r.components.find(e=>e.component==="Navigation")?.items?.[0]?.key,title:"Screen"}})}else lr(t,{...n,onDismiss:()=>window.__pxdDismissed+=1});requestAnimationFrame(()=>requestAnimationFrame(()=>window.__pxdReady=!0))}}var qd=pn;return gn(Dd);})();